4-design / for-ui Goto Github PK
View Code? Open in Web Editor NEW株式会社スリーシェイクのデザインシステム「For Design System https://for-design-system.pages.dev 」のデザイントークンとコンポーネントライブラリを実装したパッケージ
Home Page: https://for-ui.pages.dev/
株式会社スリーシェイクのデザインシステム「For Design System https://for-design-system.pages.dev 」のデザイントークンとコンポーネントライブラリを実装したパッケージ
Home Page: https://for-ui.pages.dev/
ローディング時は選択できないのでhoverで色が変わるのはおかしい (あとhoverの色も要修正) のでその設定ができるようにする
MdExpendMore
を使うAtomとExamplesになっているのを修正
メジャーバージョンとマイナーバージョンの分岐を、
ブランチによって切り替えたい
Material Design特有のripple effectを外していきたい
:focus-visible
でoutlineをしっかりつける必要がある現状のtwin.macroとemotionを使った実装からMUIの仕組みに依存するように修正していく
現状Muiの各種コンポーネントのPropsをextendしており、例えば本来sizeのないChipにまでsizeがあったりする。必要ないものは省いたほうがいいのではないか
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@mui/base
, @mui/lab
, @mui/material
, @mui/types
)@types/react
, @types/react-dom
)@storybook/addon-actions
, @storybook/addon-backgrounds
, @storybook/addon-essentials
, @storybook/addon-links
, @storybook/addons
, @storybook/builder-vite
, @storybook/builder-webpack5
, @storybook/manager-webpack5
, @storybook/react
, @storybook/theming
)These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.
node
, @types/node
)@storybook/addon-actions
, @storybook/addon-backgrounds
, @storybook/addon-essentials
, @storybook/addon-links
, @storybook/addons
, @storybook/builder-vite
, @storybook/builder-webpack5
, @storybook/react
, @storybook/theming
)@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
).github/workflows/changeset.yml
actions/checkout v3
actions/setup-node v3
changesets/action v1
.github/workflows/ci.yml
actions/checkout v3
actions/setup-node v3
.github/workflows/example-ci.yml
actions/checkout v3
actions/setup-node v3
actions/checkout v3
actions/setup-node v3
.github/workflows/typos.yml
actions/checkout v3
example/nextjs-app/package.json
@4design/for-ui 1.1.9
@emotion/react 11.11.1
@emotion/styled 11.11.0
@mui/base 5.0.0-alpha.126
@mui/lab 5.0.0-alpha.127
@mui/material 5.12.1
react 18.2.0
react-dom 18.2.0
react-icons 4.10.1
@tanstack/react-table 8.9.3
@types/node 12.20.55
@types/react 18.2.20
@types/react-dom 18.2.7
@types/react-table 7.7.14
autoprefixer 10.4.15
next 13.4.19
postcss 8.4.31
tailwindcss 3.3.3
typescript 5.1.6
yalc 1.0.0-pre.53
node 16.20.2
example/vite-app/package.json
@4design/for-ui 1.1.9
@emotion/react 11.11.1
@emotion/styled 11.11.0
@mui/base 5.0.0-alpha.126
@mui/lab 5.0.0-alpha.127
@mui/material 5.12.1
react 18.2.0
react-dom 18.2.0
react-icons 4.10.1
react-router-dom 6.15.0
@types/react 18.2.20
@types/react-dom 18.2.7
@typescript-eslint/eslint-plugin 5.62.0
@typescript-eslint/parser 5.62.0
@vitejs/plugin-react 2.2.0
autoprefixer 10.4.15
postcss 8.4.31
prettier 3.0.1
tailwindcss 3.3.3
typescript 5.1.6
vite 3.2.7
yalc 1.0.0-pre.53
node 16.20.2
package.json
@changesets/changelog-github 0.4.8
@changesets/cli 2.26.2
eslint 8.47.0
eslint-import-resolver-typescript 3.6.0
html-webpack-plugin ^5.5.0
lint-staged 14.0.1
npm-run-all 4.1.5
prettier 3.0.1
turbo 1.10.12
typescript 5.1.6
node >=14.0.0
npm >=7.0.0
node 16.20.2
packages/eslint-config/package.json
@rushstack/eslint-patch ^1.1.3
@typescript-eslint/eslint-plugin 5.62.0
@typescript-eslint/parser 5.62.0
eslint-config-prettier 9.0.0
eslint-plugin-import 2.28.0
eslint-plugin-promise ^6.0.0
eslint-plugin-sonarjs ^0.20.0
eslint-plugin-tailwindcss 3.13.0
eslint-plugin-unicorn ^48.0.0
eslint-plugin-jsx-a11y ^6.5.1
eslint-plugin-mdx ^2.0.0
eslint-plugin-react 7.33.1
eslint-plugin-react-hooks ^4.5.0
eslint ^8
packages/for-ui/package.json
clsx 2.0.0
material-ui-popup-state 5.0.9
react-dropzone 14.2.3
react-number-format 5.3.0
react-transition-group 4.4.5
tailwind-merge 1.14.0
@emotion/react 11.11.1
@emotion/styled 11.11.0
@hookform/resolvers 3.2.0
@mdx-js/react 1.6.22
@mui/base 5.0.0-alpha.126
@mui/lab 5.0.0-alpha.127
@mui/material 5.12.1
@mui/types 7.2.4
@storybook/addon-actions 6.5.15
@storybook/addon-backgrounds 6.5.15
@storybook/addon-essentials 6.5.15
@storybook/addon-links 6.5.15
@storybook/addon-postcss 2.0.0
@storybook/addons 6.5.16
@storybook/builder-vite 0.2.6
@storybook/builder-webpack5 6.5.14
@storybook/manager-webpack5 6.5.14
@storybook/mdx2-csf 0.0.3
@storybook/react 6.5.15
@storybook/theming 6.5.16
@tanstack/react-table 8.9.3
@testing-library/jest-dom 5.17.0
@testing-library/react 14.0.0
@testing-library/user-event 14.4.3
@types/react 18.2.20
@types/react-dom 18.2.7
@types/testing-library__jest-dom 5.14.9
@vitejs/plugin-react 2.2.0
autoprefixer 10.4.15
babel-loader 9.1.0
jsdom 22.1.0
npm-run-all 4.1.5
postcss 8.4.30
react 18.2.0
react-dom 18.2.0
react-hook-form 7.45.4
react-icons 4.10.1
tailwindcss 3.3.3
typescript 5.1.6
vite 3.2.5
vitest 0.33.0
webpack 5.88.2
yup 1.2.0
@mui/base >=5.0.0-alpha.120
@mui/lab >=5.0.0-alpha.73
@mui/material >=5.9.3
@tanstack/react-table >=8.5.22
@types/react >=18.0.0
react >=18.0.0
react-icons >=4.3.0
tailwindcss >=3.0.0
node >=14.0.0
node 16.20.2
react ^18.2.0
react-dom ^18.2.0
packages/prettier-config/package.json
@trivago/prettier-plugin-sort-imports ^4.0.0
prettier-plugin-pkg 0.18.0
prettier-plugin-sh 0.13.1
prettier 3.0.1
prettier ^2 || ^3.0.0
これ何か変更すべきことってありますかね?
追加variable など
現状だと、
InputProps={{
startAdornment: (
<InputAdornment position="start">
<MdAlternateEmail size="24" css={[
css`fill: ${theme`iconColor.shade.medium.default`};`,
tw`ml-3 -mr-1`
]} />
</InputAdornment>
),
}}
こうする必要があるので、これを
leadingIcon={<MdAlternateEmail size="24" /> }
ぐらいで設定できるようにしたい
Radioコンポーネントでlabelなし状態の場合、disabled属性が渡されない
Before
<_Radio value={value} {...rest} />
After
<_Radio value={value} disabled={disabled} {...rest} />
Issueというよりは相談なのですが、
現在Securify側ではMUIを直接使わざるを得ない箇所があり、Nextアプリのdependenciesに指定しています。
3desing-ui側もdependenciesにMUIを追加しているかと思うのですが、その両方が原因となり、
添付画像のように二つのMUIがnode_modulesに含まれている状況です。
Next.jsのpeerDependenciesのように、3desing-ui側もpeerDependencies化が可能かと思うのですがどうでしょう?
(dependencies --> peer / devDependenciesに移動できれば一つのアプリで二つのMUIを使う状況を防止できるかと思います)
stylesはサービス固有のもののため、本来3design-uiに含めたいものではないものの、見本として必要である。
代替案として、rootディレクトリにstylesを移すことを提案する
@etchteam/storybook-addon-css-variables-theme
https://storybook.js.org/addons/@etchteam/storybook-addon-css-variables-theme
これを使うのが良さそう
Chipsコンポーネントの型定義の一部が利用側にコード側の意図に沿って伝番されないため、
例えばcolorの指定が外側から利用する際はdefault
のみの選択になっている
type ChipColorType = 'default' | 'negative' | 'white'
export type ChipProps = Exclude<
MuiChipProps,
'color' | 'onDelete' | 'icon' | 'deleteIcon' | 'size'
> & {
twin?: TwStyle[]
color?: ChipColorType
} & (
| {
leadingIcon: MuiChipProps['icon']
trailingIcon?: never
}
| {
leadingIcon?: never
trailingIcon?: MuiChipProps['deleteIcon']
onDelete?: MuiChipProps['onDelete']
}
)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.