Giter VIP home page Giter VIP logo

gio-design's Introduction

GrowingIO Design

一套 React UI 组件库和 GrowingIO 设计系统。

Commitizen friendly Continuous Deployment codecov NPM Downloads of Month NPM Version FOSSA Status License

开始

安装依赖:

yarn install

生成组件库:

yarn build

watch 模式:

yarn watch

启动预览网站:

yarn start

License

FOSSA Status

统计

Alt


Powered by Vercel

gio-design's People

Contributors

1eeing avatar berber1016 avatar christingliu avatar danny548326 avatar dependabot[bot] avatar dingweijing avatar gavin-hao avatar gh2049 avatar hiker90 avatar huntergithub avatar huqiyao avatar huskylengcb avatar iahu avatar itiisennsinn avatar itiiss avatar jack0pan avatar leehoncn avatar lkangle avatar markstock7 avatar moenniglee avatar nnmax avatar phyzess avatar quesle avatar semantic-release-bot avatar shiliqian avatar tongchuliu avatar tuxingzhi avatar worldi avatar zhuzilv avatar zzt1224 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gio-design's Issues

Breadcrumb 组件更新 tokens

Reference doesn't exist: color.text.breadcrumb.normal.value tries to reference palette.dark.1.value, which is not defined
Reference doesn't exist: color.text.breadcrumb.click.value tries to reference palette.dark.1.value, which is not defined

Tag 组件更新 tokens

Reference doesn't exist: color.background.tag.status.warning.value tries to reference palette.orange.3.value, which is not defined
Reference doesn't exist: color.text.tag.sign.regular.value tries to reference palette.dark.1.value, which is not defined
Reference doesn't exist: color.text.tag.sign.ready.value tries to reference palette.orange.2.value, which is not defined
Reference doesn't exist: color.text.tag.status.table.normal.value tries to reference palette.dark.1.value, which is not defined
Reference doesn't exist: color.text.tag.filter.light.value tries to reference palette.dark.1.value, which is not defined

Aavatar 头像重叠展示最后一项数字问题

重叠展示时,默认展示 5 个,最后一个用来展示被隐藏的头像个数,但是 + 位置会引起歧义。
2+ 应该表示多于两个,这里是隐藏两个,所以应该用 +2

Popconfirm 组件更新 tokens

Reference doesn't exist: color.text.popconfirm.title.value tries to reference palette.dark.3.value, which is not defined
Reference doesn't exist: color.text.popconfirm.desc.value tries to reference palette.dark.1.value, which is not defined

Tree 组件更新 tokens

Reference doesn't exist: color.text.tree.normal.value tries to reference palette.dark.1.value, which is not defined
Reference doesn't exist: color.text.tree.switcher.value tries to reference palette.gray.10.value, which is not defined
Reference doesn't exist: color.text.tree.loading.value tries to reference palette.dark.1.value, which is not defined
Reference doesn't exist: color.text.tree.popconfirm.title.value tries to reference palette.dark.3.value, which is not defined
Reference doesn't exist: color.text.tree.popconfirm.desc.value tries to reference palette.dark.1.value, which is not defined

Button 组件更新 tokens

Reference doesn't exist: color.background.button.primary.disable.value tries to reference palette.gray.8.value, which is not defined
Reference doesn't exist: color.background.button.default.click.value tries to reference palette.gray.9.value, which is not defined
Reference doesn't exist: color.background.button.default.disable.value tries to reference palette.gray.8.value, which is not defined
Reference doesn't exist: color.background.button.assist.click.value tries to reference palette.gray.9.value, which is not defined
Re
Reference doesn't exist: color.border.button.primary.disable.value tries to reference palette.gray.8.value, which is not defined
Reference doesn't exist: color.border.button.default.click.value tries to reference palette.gray.9.value, which is not defined
Reference doesn't exist: color.border.button.default.disable.value tries to reference palette.gray.8.value, which is not defined
Reference doesn't exist: color.border.button.assist.click.value tries to reference palette.gray.9.value, which is not defined
R
Reference doesn't exist: color.text.button.default.normal.value tries to reference palette.dark.1.value, which is not defined
Reference doesn't exist: color.text.button.default.hover.value tries to reference palette.dark.1.value, which is not defined
Reference doesn't exist: color.text.button.default.click.value tries to reference palette.dark.1.value, which is not defined
Reference doesn't exist: color.text.button.assist.normal.value tries to reference palette.dark.1.value, which is not defined
Reference doesn't exist: color.text.button.assist.hover.value tries to reference palette.dark.1.value, which is not defined
Reference doesn't exist: color.text.button.assist.click.value tries to reference palette.dark.1.value, which is not defined

Toggles 组件使用的 tokens 更新

      "toggles": {
        "toggles": {
          "default": {
            "value": "{palette.white.value}"
          },
          "suffixContent": {
            "value": "{palette.dark.1}"
          }
        },
        "toggles-checked": {
          "value": "{palette.blue.6.value}"
        },
        "handle": {
          "value": "{palette.blue.7.value}"
        },
        "handle-checked": {
          "value": "{palette.white.value}"
        },
        "disable": {
          "toggles": {
            "default": {
              "value": "{palette.gray.3.value}"
            },
            "suffixContent": {
              "value": "{palette.gray.5.value}"
            },
            "checked": {
              "value": "rgba(18, 72, 233, 0.5)"
            },
            "handle": {
              "value": "{palette.gray.6.value}"
            }
          }
        }
      },

token 命名请按照规范来。

[Select] need default value

Is your feature request related to a problem? Please describe.
当 Select 被用于[更换资源]的场景时,需要 default Value 显示更改之前的值

Alert 组件更新 tokens

Reference doesn't exist: color.background.alert.info.icon.value tries to reference palette.blue.8.value, which is not defined
Reference doesn't exist: color.background.alert.warning.default.value tries to reference palette.orange.1.value, which is not defined
Reference doesn't exist: color.text.alert.content.value tries to reference palette.dark.1.value, which is not defined

Tabs 组件更新 tokens

Reference doesn't exist: color.text.tabs.normal.value tries to reference palette.dark.1.value, which is not defined

按钮组件相关问题

Describe the bug
图标组件升级后按钮组件需要更新:

  • 按钮中的图标没有剧中,
  • 加载中状态直接使用图标的 rotating 参数来控制,
  • LoadingBlackOutlinedLoadingWhiteOutlined 改成一个 LoadingOutlined,通过 color 来改变颜色。
{
  "size": {
    "font": {
      "button": {
        "large": {
          "value": "{size.font.14.value}"
        },
        "default": {
          "value": "{size.font.14.value}"
        },
        "small": {
          "value": "{size.font.14.value}"
        },
        "only-icon": {
          "large": {
            "value": "{size.font.18.value}"
          },
          "default": {
            "value": "{size.font.16.value}"
          },
          "small": {
            "value": "{size.font.14.value}"
          }
        }
      }
    }
  }
}

这些 tokens 删掉吧,直接用 @size-font-14 等这些变量就行了。

[Modal] 支持函数调用

Is your feature request related to a problem? Please describe.
在回调函数中触发弹窗的场景。支持函数调用很有必要。

[Upload] 支持默认图片

type='avatar'时,应该支持默认图片。目前支持文字形式的默认头像,支持默认图片来满足【更换头像】的需求。
type='card' 可不可以支持默认图片,其他type呢。
AvatarTrigger 组件名称错了。

Loading 组件更新 tokens

Reference doesn't exist: color.text.loading.value tries to reference palette.dark.1.value, which is not defined

[List] selected state optional.

Describe the bug
be used to Dropdown, list should no selected state. need onClick prop。

  1. 当被用于Dropdown 的时候,点击list item 后不应该有选中状态。

2. list 本身缺少一个 onClick 参数

Input组件 ref参数

description
给Input组件绑定一个ref时,ref.current不对

To Reproduce

const inputRef = useRef(null);

<Input ref={inputRef} />

Expected behavior
ref.current是一个dom节点
目前是Input这一个ReactNode

增加 Input 相关 tokens

增加 border 相关 tokens:

  • $color-border-input-normal
  • $color-border-input-hover
  • $color-border-input-active
  • $color-border-input-disable
  • $color-border-input-error

另外 input placeholder 颜色使用 @palette-gray-1,把 @palette-gray-8@palette-gray-12 都删除吧。

update font size tokens

Font Size Tokens

px rem
12 12/16 = .75
14 14/16 = .875
16 16/16 = 1
18 18/16 = 1.125
20 20/16 = 1.25
24 24/16 = 1.5
30 30/16 = 1.875
36 36/16 = 2.25
42 42/16 = 2.625
48 48/16 = 3

CheckBox margin 问题

Describe the bug

实现 checkbox 与文字的间距 应该设置文字的margin。这样不设置文字时 不会有不必要的间距影响 checkbox 位置。
截屏2020-09-01 下午4 16 29

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.