@channel.io/bezier-react 2.2.2 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/Toast/Toast.js.map +1 -1
- package/dist/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -1
- package/dist/cjs/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -1
- package/dist/cjs/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -1
- package/dist/cjs/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +2 -2
- package/dist/cjs/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -1
- package/dist/cjs/styles.css +1 -1
- package/dist/esm/components/Toast/Toast.mjs.map +1 -1
- package/dist/esm/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.map +1 -1
- package/dist/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.map +1 -1
- package/dist/esm/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs.map +1 -1
- package/dist/esm/node_modules/react-remove-scroll/dist/es2015/handleScroll.mjs +2 -2
- package/dist/esm/node_modules/react-remove-scroll/dist/es2015/handleScroll.mjs.map +1 -1
- package/dist/esm/styles.css +1 -1
- package/package.json +3 -2
- package/src/components/AlphaAvatar/AlphaAvatar.stories.tsx +12 -1
- package/src/components/AlphaAvatarGroup/AlphaAvatarGroup.stories.tsx +6 -0
- package/src/components/AlphaButton/AlphaButton.stories.tsx +6 -0
- package/src/components/AlphaFloatingButton/AlphaFloatingButton.stories.tsx +6 -0
- package/src/components/AlphaFloatingIconButton/AlphaFloatingIconButton.stories.tsx +6 -0
- package/src/components/AlphaFloatingIconButton/FloatingIconButton.module.scss +4 -0
- package/src/components/AlphaLoader/AlphaLoader.stories.tsx +6 -0
- package/src/components/AlphaToggleButton/AlphaToggleButton.stories.tsx +6 -0
- package/src/components/AlphaToggleButtonGroup/AlphaToggleButtonGroup.stories.tsx +6 -0
- package/src/components/Checkbox/Checkbox.module.scss +10 -10
- package/src/components/RadioGroup/RadioGroup.module.scss +6 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@channel.io/bezier-react",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"description": "React components library that implements Bezier design system.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@babel/preset-env": "^7.23.9",
|
|
64
64
|
"@babel/preset-react": "^7.23.3",
|
|
65
65
|
"@babel/preset-typescript": "^7.23.3",
|
|
66
|
-
"@channel.io/bezier-icons": "0.
|
|
66
|
+
"@channel.io/bezier-icons": "0.32.0",
|
|
67
67
|
"@chromatic-com/storybook": "^1",
|
|
68
68
|
"@rollup/plugin-alias": "^5.1.0",
|
|
69
69
|
"@rollup/plugin-babel": "^6.0.4",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"@storybook/addon-a11y": "^8.1.10",
|
|
74
74
|
"@storybook/addon-actions": "^8.1.10",
|
|
75
75
|
"@storybook/addon-controls": "^8.1.10",
|
|
76
|
+
"@storybook/addon-designs": "^8.0.3",
|
|
76
77
|
"@storybook/addon-docs": "^8.1.10",
|
|
77
78
|
"@storybook/addon-measure": "^8.1.10",
|
|
78
79
|
"@storybook/addon-outline": "^8.1.10",
|
|
@@ -28,7 +28,6 @@ const Template: StoryFn<AvatarProps> = (args) => <Avatar {...args} />
|
|
|
28
28
|
|
|
29
29
|
export const Primary: StoryObj<AvatarProps> = {
|
|
30
30
|
render: Template,
|
|
31
|
-
|
|
32
31
|
args: {
|
|
33
32
|
avatarUrl: MOCK_AVATAR_URL,
|
|
34
33
|
name: 'Channel',
|
|
@@ -37,6 +36,12 @@ export const Primary: StoryObj<AvatarProps> = {
|
|
|
37
36
|
disabled: false,
|
|
38
37
|
smoothCorners: true,
|
|
39
38
|
},
|
|
39
|
+
parameters: {
|
|
40
|
+
design: {
|
|
41
|
+
type: 'link',
|
|
42
|
+
url: 'https://www.figma.com/design/aJJF4bU82uR0jAsmWp5wlE/Navigation?node-id=0-1&t=9HAqBVHxkd1tUwxF-1',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
40
45
|
}
|
|
41
46
|
|
|
42
47
|
const TemplateWithCustomStatus: StoryFn<AvatarProps> = (args) => (
|
|
@@ -60,4 +65,10 @@ export const WithCustomStatus: StoryObj<AvatarProps> = {
|
|
|
60
65
|
showBorder: false,
|
|
61
66
|
disabled: false,
|
|
62
67
|
},
|
|
68
|
+
parameters: {
|
|
69
|
+
design: {
|
|
70
|
+
type: 'link',
|
|
71
|
+
url: 'https://www.figma.com/design/aJJF4bU82uR0jAsmWp5wlE/Navigation?node-id=0-1&t=9HAqBVHxkd1tUwxF-1',
|
|
72
|
+
},
|
|
73
|
+
},
|
|
63
74
|
}
|
|
@@ -52,4 +52,10 @@ export const Primary: StoryObj<AvatarGroupProps> = {
|
|
|
52
52
|
size: '30',
|
|
53
53
|
spacing: 4,
|
|
54
54
|
},
|
|
55
|
+
parameters: {
|
|
56
|
+
design: {
|
|
57
|
+
type: 'link',
|
|
58
|
+
url: 'https://www.figma.com/design/aJJF4bU82uR0jAsmWp5wlE/Navigation?node-id=1-1389&t=63YtY9eXtdx4ujrv-0',
|
|
59
|
+
},
|
|
60
|
+
},
|
|
55
61
|
}
|
|
@@ -26,4 +26,10 @@ export const Primary: StoryObj<AlphaButtonProps> = {
|
|
|
26
26
|
variant: 'primary',
|
|
27
27
|
color: 'blue',
|
|
28
28
|
},
|
|
29
|
+
parameters: {
|
|
30
|
+
design: {
|
|
31
|
+
type: 'link',
|
|
32
|
+
url: 'https://www.figma.com/design/8J76noM3T1Sp5cNPhnYQiG/Action?node-id=0-1&t=WwfuBAWI872yYPf8-1',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
29
35
|
}
|
|
@@ -26,4 +26,10 @@ export const Primary: StoryObj<AlphaFloatingButtonProps> = {
|
|
|
26
26
|
variant: 'primary',
|
|
27
27
|
color: 'blue',
|
|
28
28
|
},
|
|
29
|
+
parameters: {
|
|
30
|
+
design: {
|
|
31
|
+
type: 'link',
|
|
32
|
+
url: 'https://www.figma.com/design/8J76noM3T1Sp5cNPhnYQiG/Action?node-id=112-2766&t=7KmMal05dj8QL5kK-1',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
29
35
|
}
|
|
@@ -25,4 +25,10 @@ export const Primary: StoryObj<AlphaFloatingIconButtonProps> = {
|
|
|
25
25
|
variant: 'primary',
|
|
26
26
|
color: 'blue',
|
|
27
27
|
},
|
|
28
|
+
parameters: {
|
|
29
|
+
design: {
|
|
30
|
+
type: 'link',
|
|
31
|
+
url: 'https://www.figma.com/design/8J76noM3T1Sp5cNPhnYQiG/Action?node-id=112-2766&t=7KmMal05dj8QL5kK-1',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
28
34
|
}
|
|
@@ -161,6 +161,10 @@ $chromatic-colors: 'blue', 'red', 'green', 'cobalt', 'orange', 'pink', 'purple';
|
|
|
161
161
|
|
|
162
162
|
/* internal components */
|
|
163
163
|
& :where(.ButtonContent) {
|
|
164
|
+
display: flex;
|
|
165
|
+
align-items: center;
|
|
166
|
+
justify-content: center;
|
|
167
|
+
|
|
164
168
|
&:where(.loading) {
|
|
165
169
|
visibility: hidden;
|
|
166
170
|
}
|
|
@@ -24,4 +24,10 @@ export const Primary = {
|
|
|
24
24
|
value: 'invite',
|
|
25
25
|
variant: 'primary',
|
|
26
26
|
},
|
|
27
|
+
parameters: {
|
|
28
|
+
design: {
|
|
29
|
+
type: 'link',
|
|
30
|
+
url: 'https://www.figma.com/design/fPXP9zfjZU9NyARnhTWL6o/Input?node-id=426-1255&t=tGbZuTTPrTF5lobw-0',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
27
33
|
} satisfies StoryObj<typeof meta>
|
|
@@ -68,6 +68,12 @@ export const Primary = {
|
|
|
68
68
|
shape: 'rectangle',
|
|
69
69
|
fullWidth: false,
|
|
70
70
|
},
|
|
71
|
+
parameters: {
|
|
72
|
+
design: {
|
|
73
|
+
type: 'link',
|
|
74
|
+
url: 'https://www.figma.com/design/fPXP9zfjZU9NyARnhTWL6o/Input?node-id=426-1255&t=tGbZuTTPrTF5lobw-0',
|
|
75
|
+
},
|
|
76
|
+
},
|
|
71
77
|
} satisfies StoryObj<typeof meta>
|
|
72
78
|
|
|
73
79
|
export default meta
|
|
@@ -12,6 +12,16 @@
|
|
|
12
12
|
.Checkbox {
|
|
13
13
|
cursor: inherit;
|
|
14
14
|
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
|
|
19
|
+
margin: 1px;
|
|
20
|
+
|
|
21
|
+
background-color: var(--bg-white-normal);
|
|
22
|
+
border-radius: 7px;
|
|
23
|
+
box-shadow: inset 0 0 0 2px var(--bdr-black-dark);
|
|
24
|
+
|
|
15
25
|
/* stylelint-disable-next-line order/order */
|
|
16
26
|
@include dimension.square(18px);
|
|
17
27
|
|
|
@@ -25,16 +35,6 @@
|
|
|
25
35
|
}
|
|
26
36
|
}
|
|
27
37
|
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
|
|
32
|
-
margin: 1px;
|
|
33
|
-
|
|
34
|
-
background-color: var(--bg-white-normal);
|
|
35
|
-
border-radius: 7px;
|
|
36
|
-
box-shadow: inset 0 0 0 2px var(--bdr-black-dark);
|
|
37
|
-
|
|
38
38
|
&:where([data-disabled]) {
|
|
39
39
|
background-color: var(--bg-black-dark);
|
|
40
40
|
box-shadow: none;
|
|
@@ -19,11 +19,6 @@ $inner-indicator-size: 8px;
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.RadioGroupItem {
|
|
22
|
-
@include interaction.touchable-hover {
|
|
23
|
-
@include outer-indicator-focus-styles;
|
|
24
|
-
@include inner-indicator-focus-styles;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
22
|
position: relative;
|
|
28
23
|
|
|
29
24
|
display: flex;
|
|
@@ -33,6 +28,12 @@ $inner-indicator-size: 8px;
|
|
|
33
28
|
|
|
34
29
|
outline: none;
|
|
35
30
|
|
|
31
|
+
/* stylelint-disable-next-line order/order */
|
|
32
|
+
@include interaction.touchable-hover {
|
|
33
|
+
@include outer-indicator-focus-styles;
|
|
34
|
+
@include inner-indicator-focus-styles;
|
|
35
|
+
}
|
|
36
|
+
|
|
36
37
|
/* Outer Indicator */
|
|
37
38
|
&::before {
|
|
38
39
|
@include dimension.square($outer-indicator-size);
|