@itcase/ui 1.0.96 → 1.0.99
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/components/Button.js +1 -1
- package/dist/components/Checkbox.js +11 -6
- package/dist/components/Chips.js +6 -2
- package/dist/components/Choice.js +25 -12
- package/dist/components/DadataHintField.js +1 -1
- package/dist/components/DatePicker.js +7746 -8885
- package/dist/components/FormField.js +3 -3
- package/dist/components/Grid.js +2 -1
- package/dist/components/Group.js +9 -1
- package/dist/components/Input.js +6 -1
- package/dist/components/InputPassword.js +6 -1
- package/dist/components/Label.js +254 -35
- package/dist/components/RadioButton.js +12 -7
- package/dist/components/Segmented.js +22 -6
- package/dist/components/Select.js +8520 -46
- package/dist/components/Swiper.js +23 -13
- package/dist/components/Text.js +13 -1
- package/dist/components/Textarea.js +6 -1
- package/dist/components/Title.js +11 -3
- package/dist/components/Tooltip.js +115 -14
- package/dist/css/components/Avatar/Avatar.css +7 -0
- package/dist/css/components/Cell/Cell.css +1 -0
- package/dist/css/components/Chips/Chips.css +7 -7
- package/dist/css/components/DatePicker/DatePicker.css +33 -84
- package/dist/css/components/Grid/Grid.css +8 -0
- package/dist/css/components/Group/Group.css +8 -0
- package/dist/css/components/Label/Label.css +9 -1
- package/dist/css/components/Swiper/Swiper.css +3 -3
- package/dist/css/components/Tooltip/Tooltip.css +37 -3
- package/dist/css/styles/align/align_vertical.css +4 -4
- package/dist/css/styles/border-color/border-color.css +1 -2
- package/dist/css/styles/border-color/border-color_hover.css +22 -0
- package/dist/css/styles/fill/fill.css +2 -4
- package/dist/css/styles/fill/fill_active.css +2 -2
- package/dist/css/styles/fill/fill_disabled.css +2 -2
- package/dist/css/styles/fill/fill_hover.css +2 -2
- package/dist/css/styles/fill-gradient/fill-gradient.css +1 -1
- package/dist/css/styles/hover/hover-fill-color.css +1 -1
- package/dist/css/styles/hover/hover-item-color.css +1 -1
- package/dist/css/styles/hover/hover-text-color.css +1 -1
- package/dist/css/styles/mediaqueries.css +0 -14
- package/dist/css/styles/text-color/text-color.css +2 -3
- package/dist/css/styles/text-color/text-color_active.css +1 -1
- package/dist/css/styles/text-color/text-color_hover.css +23 -0
- package/dist/css/styles/text-gradient/text-gradient.css +0 -3
- package/dist/floating-ui.dom-D_Zct5p2.js +1401 -0
- package/dist/stories/Avatar.stories.js +179 -0
- package/dist/stories/Cell.stories.js +317 -0
- package/package.json +32 -30
- package/dist/SelectContainer-umrbJtB5.js +0 -8728
- package/dist/css/styles/border-color-hover/border-color-hover.css +0 -21
- package/dist/css/styles/text-color-hover/text-color-hover.css +0 -21
- package/dist/defineProperty-ujK-k7aM.js +0 -166
- /package/dist/{_commonjsHelpers-rI13D0F7.js → _commonjsHelpers-CFO10eej.js} +0 -0
- /package/dist/css/styles/{border-color-focus/border-color-focus.css → border-color/border-color_focus.css} +0 -0
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { Avatar } from '@itcase/ui/components/Avatar'
|
|
2
|
+
import {
|
|
3
|
+
fillHoverProps,
|
|
4
|
+
fillProps,
|
|
5
|
+
iconFillSizeProps,
|
|
6
|
+
iconSizeProps,
|
|
7
|
+
shapeProps,
|
|
8
|
+
sizePXProps,
|
|
9
|
+
textColorProps,
|
|
10
|
+
textSizeProps,
|
|
11
|
+
textWeightProps,
|
|
12
|
+
} from '@itcase/ui/constants'
|
|
13
|
+
|
|
14
|
+
export default {
|
|
15
|
+
title: 'Atoms / Avatar',
|
|
16
|
+
component: Avatar,
|
|
17
|
+
argTypes: {
|
|
18
|
+
advancedProps: { control: 'boolean' },
|
|
19
|
+
className: {
|
|
20
|
+
if: { arg: 'advancedProps' },
|
|
21
|
+
},
|
|
22
|
+
children: {
|
|
23
|
+
if: { arg: 'advancedProps' },
|
|
24
|
+
},
|
|
25
|
+
src: {
|
|
26
|
+
type: 'select',
|
|
27
|
+
options: ['assets/avatar/woman.png', 'assets/avatar/man.png'],
|
|
28
|
+
if: { arg: 'type', eq: 'image' },
|
|
29
|
+
},
|
|
30
|
+
onClick: {
|
|
31
|
+
if: { arg: 'advancedProps' },
|
|
32
|
+
},
|
|
33
|
+
shape: {
|
|
34
|
+
control: 'inline-radio',
|
|
35
|
+
options: shapeProps,
|
|
36
|
+
},
|
|
37
|
+
iconSrc: {
|
|
38
|
+
control: 'select',
|
|
39
|
+
options: [null, 'assets/40/close.svg'],
|
|
40
|
+
},
|
|
41
|
+
textSize: {
|
|
42
|
+
control: 'select',
|
|
43
|
+
options: textSizeProps,
|
|
44
|
+
if: { arg: 'type', eq: 'text' },
|
|
45
|
+
},
|
|
46
|
+
textColor: {
|
|
47
|
+
control: 'select',
|
|
48
|
+
options: textColorProps,
|
|
49
|
+
if: { arg: 'type', eq: 'text' },
|
|
50
|
+
},
|
|
51
|
+
textWeight: {
|
|
52
|
+
control: 'select',
|
|
53
|
+
options: textWeightProps,
|
|
54
|
+
if: { arg: 'type', eq: 'text' },
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
iconFill: {
|
|
58
|
+
control: 'select',
|
|
59
|
+
options: fillProps,
|
|
60
|
+
if: { arg: 'iconSrc', neq: null },
|
|
61
|
+
},
|
|
62
|
+
iconFillHover: {
|
|
63
|
+
options: fillHoverProps,
|
|
64
|
+
control: 'select',
|
|
65
|
+
if: { arg: 'iconSrc', neq: null },
|
|
66
|
+
},
|
|
67
|
+
iconItemFill: {
|
|
68
|
+
options: fillProps,
|
|
69
|
+
control: 'select',
|
|
70
|
+
if: { arg: 'iconSrc', neq: null },
|
|
71
|
+
},
|
|
72
|
+
iconSize: {
|
|
73
|
+
options: iconSizeProps,
|
|
74
|
+
control: 'inline-radio',
|
|
75
|
+
if: { arg: 'iconSrc', neq: null },
|
|
76
|
+
},
|
|
77
|
+
iconShape: {
|
|
78
|
+
options: shapeProps,
|
|
79
|
+
control: 'inline-radio',
|
|
80
|
+
if: { arg: 'iconSrc', neq: null },
|
|
81
|
+
},
|
|
82
|
+
iconFillSize: {
|
|
83
|
+
options: iconFillSizeProps,
|
|
84
|
+
control: 'inline-radio',
|
|
85
|
+
if: { arg: 'iconSrc', neq: null },
|
|
86
|
+
},
|
|
87
|
+
fill: {
|
|
88
|
+
options: fillProps,
|
|
89
|
+
control: 'select',
|
|
90
|
+
if: { arg: 'type', eq: 'text' },
|
|
91
|
+
},
|
|
92
|
+
size: {
|
|
93
|
+
options: sizePXProps,
|
|
94
|
+
control: 'inline-radio',
|
|
95
|
+
},
|
|
96
|
+
type: {
|
|
97
|
+
options: ['image', 'text'],
|
|
98
|
+
control: 'inline-radio',
|
|
99
|
+
},
|
|
100
|
+
firstName: {
|
|
101
|
+
if: { arg: 'type', eq: 'text' },
|
|
102
|
+
},
|
|
103
|
+
secondName: {
|
|
104
|
+
if: { arg: 'type', eq: 'text' },
|
|
105
|
+
},
|
|
106
|
+
mode: {
|
|
107
|
+
options: [null, 'skeleton'],
|
|
108
|
+
control: 'inline-radio',
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
args: {
|
|
112
|
+
advancedProps: false,
|
|
113
|
+
onClick: '',
|
|
114
|
+
className: '',
|
|
115
|
+
children: [],
|
|
116
|
+
shape: 'circular',
|
|
117
|
+
fill: 'surfaceTertiary',
|
|
118
|
+
size: 96,
|
|
119
|
+
},
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
const ImageProps = {
|
|
123
|
+
src: 'assets/avatar/woman.png',
|
|
124
|
+
type: 'image',
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
const IconProps = {
|
|
128
|
+
iconSrc: 'assets/40/close.svg',
|
|
129
|
+
iconSize: 40,
|
|
130
|
+
iconFill: 'accentPrimary',
|
|
131
|
+
iconFillHover: 'accentPrimaryHover',
|
|
132
|
+
iconFillSize: 40,
|
|
133
|
+
iconItemFill: 'accentItemPrimary',
|
|
134
|
+
iconItemFillHover: 'accentItemPrimaryHover',
|
|
135
|
+
iconShape: 'circular',
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export const Default = {
|
|
139
|
+
args: {
|
|
140
|
+
...ImageProps,
|
|
141
|
+
...IconProps,
|
|
142
|
+
},
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export const Image = {
|
|
146
|
+
args: {
|
|
147
|
+
...ImageProps,
|
|
148
|
+
},
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export const ImageWithIcon = {
|
|
152
|
+
args: {
|
|
153
|
+
...ImageProps,
|
|
154
|
+
...IconProps,
|
|
155
|
+
},
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export const Text = {
|
|
159
|
+
args: {
|
|
160
|
+
firstName: 'John',
|
|
161
|
+
secondName: 'Doe',
|
|
162
|
+
textWeight: 600,
|
|
163
|
+
type: 'text',
|
|
164
|
+
},
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export const TextWithIcon = {
|
|
168
|
+
args: {
|
|
169
|
+
...Text.args,
|
|
170
|
+
...IconProps,
|
|
171
|
+
},
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export const SkeletonMode = {
|
|
175
|
+
args: {
|
|
176
|
+
...Text.args,
|
|
177
|
+
mode: 'skeleton',
|
|
178
|
+
},
|
|
179
|
+
}
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
import { Cell } from '@itcase/ui/components/Cell'
|
|
2
|
+
import {
|
|
3
|
+
fillHoverProps,
|
|
4
|
+
fillProps,
|
|
5
|
+
iconFillSizeProps,
|
|
6
|
+
shapeProps,
|
|
7
|
+
sizeProps,
|
|
8
|
+
strokeColorProps,
|
|
9
|
+
textColorProps,
|
|
10
|
+
textSizeProps,
|
|
11
|
+
textWeightProps,
|
|
12
|
+
textWrapProps,
|
|
13
|
+
widthProps,
|
|
14
|
+
} from '@itcase/ui/constants'
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
title: 'Atoms / Cell',
|
|
18
|
+
component: Cell,
|
|
19
|
+
argTypes: {
|
|
20
|
+
advancedProps: { control: 'boolean' },
|
|
21
|
+
after: {
|
|
22
|
+
if: { arg: 'advancedProps' },
|
|
23
|
+
},
|
|
24
|
+
before: {
|
|
25
|
+
if: { arg: 'advancedProps' },
|
|
26
|
+
},
|
|
27
|
+
children: {
|
|
28
|
+
if: { arg: 'advancedProps' },
|
|
29
|
+
},
|
|
30
|
+
className: {
|
|
31
|
+
if: { arg: 'advancedProps' },
|
|
32
|
+
},
|
|
33
|
+
isActive: {
|
|
34
|
+
if: { arg: 'advancedProps' },
|
|
35
|
+
},
|
|
36
|
+
isDisabled: {
|
|
37
|
+
if: { arg: 'advancedProps' },
|
|
38
|
+
},
|
|
39
|
+
onClick: {
|
|
40
|
+
if: { arg: 'advancedProps' },
|
|
41
|
+
},
|
|
42
|
+
onMouseEnter: {
|
|
43
|
+
if: { arg: 'advancedProps' },
|
|
44
|
+
},
|
|
45
|
+
zeroPadding: { control: 'boolean' },
|
|
46
|
+
zeroGap: { control: 'boolean' },
|
|
47
|
+
reverse: { control: 'boolean' },
|
|
48
|
+
size: {
|
|
49
|
+
options: [null, 's', 'm', 'l', 'xl'],
|
|
50
|
+
control: 'inline-radio',
|
|
51
|
+
},
|
|
52
|
+
width: {
|
|
53
|
+
options: widthProps,
|
|
54
|
+
control: 'inline-radio',
|
|
55
|
+
if: { arg: 'advancedProps' },
|
|
56
|
+
},
|
|
57
|
+
direction: {
|
|
58
|
+
options: ['vertical', 'horizontal'],
|
|
59
|
+
control: 'inline-radio',
|
|
60
|
+
},
|
|
61
|
+
fill: {
|
|
62
|
+
options: fillProps,
|
|
63
|
+
control: 'select',
|
|
64
|
+
},
|
|
65
|
+
fillHover: {
|
|
66
|
+
options: fillHoverProps,
|
|
67
|
+
control: 'select',
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
// titleText
|
|
71
|
+
|
|
72
|
+
titleTextSize: {
|
|
73
|
+
options: textSizeProps,
|
|
74
|
+
control: 'inline-radio',
|
|
75
|
+
},
|
|
76
|
+
titleTextColor: {
|
|
77
|
+
options: textColorProps,
|
|
78
|
+
control: 'select',
|
|
79
|
+
},
|
|
80
|
+
titleTextWeight: {
|
|
81
|
+
options: textWeightProps,
|
|
82
|
+
control: 'select',
|
|
83
|
+
if: { arg: 'advancedProps' },
|
|
84
|
+
},
|
|
85
|
+
titleTextWrap: {
|
|
86
|
+
options: textWrapProps,
|
|
87
|
+
control: 'inline-radio',
|
|
88
|
+
if: { arg: 'advancedProps' },
|
|
89
|
+
},
|
|
90
|
+
|
|
91
|
+
// titleLabel
|
|
92
|
+
|
|
93
|
+
showTitleLabel: { control: 'boolean' },
|
|
94
|
+
titleLabelAppearance: {
|
|
95
|
+
options: [
|
|
96
|
+
null,
|
|
97
|
+
'accent',
|
|
98
|
+
'primary',
|
|
99
|
+
'secondary',
|
|
100
|
+
'surfacePrimary',
|
|
101
|
+
'surfaceSecondary',
|
|
102
|
+
'surfaceTertiary',
|
|
103
|
+
],
|
|
104
|
+
control: 'inline-radio',
|
|
105
|
+
if: { arg: 'showTitleLabel' },
|
|
106
|
+
},
|
|
107
|
+
titleLabelTextSize: {
|
|
108
|
+
options: textSizeProps,
|
|
109
|
+
control: 'inline-radio',
|
|
110
|
+
if: { arg: 'showTitleLabel' },
|
|
111
|
+
},
|
|
112
|
+
titleLabelShape: {
|
|
113
|
+
options: shapeProps,
|
|
114
|
+
control: 'inline-radio',
|
|
115
|
+
if: { arg: 'showTitleLabel' },
|
|
116
|
+
},
|
|
117
|
+
titleLabelSize: {
|
|
118
|
+
options: sizeProps,
|
|
119
|
+
control: 'inline-radio',
|
|
120
|
+
if: { arg: 'showTitleLabel' },
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
// titleIcon
|
|
124
|
+
|
|
125
|
+
titleIconSrc: {
|
|
126
|
+
options: [null, 'assets/24/ChevronTop.svg'],
|
|
127
|
+
control: 'inline-radio',
|
|
128
|
+
},
|
|
129
|
+
titleIconFill: {
|
|
130
|
+
options: fillProps,
|
|
131
|
+
control: 'select',
|
|
132
|
+
if: { arg: 'titleIconSrc' },
|
|
133
|
+
},
|
|
134
|
+
titleIconFillSize: {
|
|
135
|
+
options: iconFillSizeProps,
|
|
136
|
+
control: 'inline-radio',
|
|
137
|
+
if: { arg: 'titleIconSrc' },
|
|
138
|
+
},
|
|
139
|
+
titleIconItemFill: {
|
|
140
|
+
options: fillProps,
|
|
141
|
+
control: 'select',
|
|
142
|
+
if: { arg: 'titleIconSrc' },
|
|
143
|
+
},
|
|
144
|
+
titleIconStroke: {
|
|
145
|
+
options: strokeColorProps,
|
|
146
|
+
control: 'select',
|
|
147
|
+
if: { arg: 'titleIconSrc' },
|
|
148
|
+
},
|
|
149
|
+
titleIconShape: {
|
|
150
|
+
options: shapeProps,
|
|
151
|
+
control: 'inline-radio',
|
|
152
|
+
if: { arg: 'titleIconSrc' },
|
|
153
|
+
},
|
|
154
|
+
|
|
155
|
+
// valueText
|
|
156
|
+
|
|
157
|
+
valueTextSize: {
|
|
158
|
+
options: textSizeProps,
|
|
159
|
+
control: 'inline-radio',
|
|
160
|
+
},
|
|
161
|
+
valueTextColor: {
|
|
162
|
+
options: textColorProps,
|
|
163
|
+
control: 'select',
|
|
164
|
+
},
|
|
165
|
+
valueTextWeight: {
|
|
166
|
+
options: textWeightProps,
|
|
167
|
+
control: 'select',
|
|
168
|
+
if: { arg: 'advancedProps' },
|
|
169
|
+
},
|
|
170
|
+
valueTextWrap: {
|
|
171
|
+
options: textWrapProps,
|
|
172
|
+
control: 'inline-radio',
|
|
173
|
+
if: { arg: 'advancedProps' },
|
|
174
|
+
},
|
|
175
|
+
|
|
176
|
+
// valueLabel
|
|
177
|
+
|
|
178
|
+
showValueLabel: { control: 'boolean' },
|
|
179
|
+
valueLabelAppearance: {
|
|
180
|
+
options: [
|
|
181
|
+
null,
|
|
182
|
+
'accent',
|
|
183
|
+
'primary',
|
|
184
|
+
'secondary',
|
|
185
|
+
'surfacePrimary',
|
|
186
|
+
'surfaceSecondary',
|
|
187
|
+
'surfaceTertiary',
|
|
188
|
+
],
|
|
189
|
+
control: 'inline-radio',
|
|
190
|
+
if: { arg: 'showValueLabel' },
|
|
191
|
+
},
|
|
192
|
+
valueLabelTextSize: {
|
|
193
|
+
options: textSizeProps,
|
|
194
|
+
control: 'inline-radio',
|
|
195
|
+
if: { arg: 'showValueLabel' },
|
|
196
|
+
},
|
|
197
|
+
valueLabelShape: {
|
|
198
|
+
options: shapeProps,
|
|
199
|
+
control: 'inline-radio',
|
|
200
|
+
if: { arg: 'showValueLabel' },
|
|
201
|
+
},
|
|
202
|
+
valueLabelSize: {
|
|
203
|
+
options: sizeProps,
|
|
204
|
+
control: 'inline-radio',
|
|
205
|
+
if: { arg: 'showValueLabel' },
|
|
206
|
+
},
|
|
207
|
+
|
|
208
|
+
// valueIcon
|
|
209
|
+
|
|
210
|
+
valueIconSrc: {
|
|
211
|
+
options: [null, 'assets/24/ChevronDown.svg'],
|
|
212
|
+
control: 'inline-radio',
|
|
213
|
+
},
|
|
214
|
+
valueIconFill: {
|
|
215
|
+
options: fillProps,
|
|
216
|
+
control: 'select',
|
|
217
|
+
if: { arg: 'valueIconSrc' },
|
|
218
|
+
},
|
|
219
|
+
valueIconFillSize: {
|
|
220
|
+
options: iconFillSizeProps,
|
|
221
|
+
control: 'inline-radio',
|
|
222
|
+
if: { arg: 'valueIconSrc' },
|
|
223
|
+
},
|
|
224
|
+
valueIconItemFill: {
|
|
225
|
+
options: fillProps,
|
|
226
|
+
control: 'select',
|
|
227
|
+
if: { arg: 'valueIconSrc' },
|
|
228
|
+
},
|
|
229
|
+
valueIconStroke: {
|
|
230
|
+
options: strokeColorProps,
|
|
231
|
+
control: 'select',
|
|
232
|
+
if: { arg: 'valueIconSrc' },
|
|
233
|
+
},
|
|
234
|
+
valueIconShape: {
|
|
235
|
+
options: shapeProps,
|
|
236
|
+
control: 'inline-radio',
|
|
237
|
+
if: { arg: 'valueIconSrc' },
|
|
238
|
+
},
|
|
239
|
+
mode: {
|
|
240
|
+
options: [null, 'skeleton'],
|
|
241
|
+
control: 'inline-radio',
|
|
242
|
+
},
|
|
243
|
+
},
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export const Default = {
|
|
247
|
+
args: {
|
|
248
|
+
title: 'Title',
|
|
249
|
+
titleTextColor: 'surfaceTextPrimary',
|
|
250
|
+
titleTextSize: 'm',
|
|
251
|
+
value: 'Value',
|
|
252
|
+
valueTextColor: 'surfaceTextPrimary',
|
|
253
|
+
valueTextSize: 'm',
|
|
254
|
+
valueTextWeight: 600,
|
|
255
|
+
direction: 'horizontal',
|
|
256
|
+
zeroPadding: false,
|
|
257
|
+
zeroGap: false,
|
|
258
|
+
reverse: false,
|
|
259
|
+
showTitleLabel: false,
|
|
260
|
+
showValueLabel: false,
|
|
261
|
+
},
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export const Horizontal = {
|
|
265
|
+
args: {
|
|
266
|
+
...Default.args,
|
|
267
|
+
direction: 'horizontal',
|
|
268
|
+
},
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export const Vertical = {
|
|
272
|
+
args: {
|
|
273
|
+
...Default.args,
|
|
274
|
+
direction: 'vertical',
|
|
275
|
+
},
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export const WithLabels = {
|
|
279
|
+
args: {
|
|
280
|
+
...Default.args,
|
|
281
|
+
showTitleLabel: true,
|
|
282
|
+
showValueLabel: true,
|
|
283
|
+
titleLabel: 'titleLabel',
|
|
284
|
+
valueLabel: 'valueLabel',
|
|
285
|
+
titleLabelAppearance: 'accent',
|
|
286
|
+
titleLabelTextSize: 's',
|
|
287
|
+
titleLabelShape: 'rounded',
|
|
288
|
+
titleLabelSize: 's',
|
|
289
|
+
valueLabelAppearance: 'accent',
|
|
290
|
+
valueLabelTextSize: 's',
|
|
291
|
+
valueLabelShape: 'rounded',
|
|
292
|
+
valueLabelSize: 's',
|
|
293
|
+
},
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export const WithIcons = {
|
|
297
|
+
args: {
|
|
298
|
+
...Default.args,
|
|
299
|
+
titleIconSrc: 'assets/24/ChevronDown.svg',
|
|
300
|
+
titleIconFill: 'accentPrimary',
|
|
301
|
+
titleIconFillSize: 32,
|
|
302
|
+
titleIconItemFill: 'surfacePrimary',
|
|
303
|
+
titleIconShape: 'circular',
|
|
304
|
+
valueIconSrc: 'assets/24/ChevronDown.svg',
|
|
305
|
+
valueIconFill: 'accentPrimary',
|
|
306
|
+
valueIconFillSize: 32,
|
|
307
|
+
valueIconItemFill: 'surfacePrimary',
|
|
308
|
+
valueIconShape: 'circular',
|
|
309
|
+
},
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export const SkeletonMode = {
|
|
313
|
+
args: {
|
|
314
|
+
...Default.args,
|
|
315
|
+
mode: 'skeleton',
|
|
316
|
+
},
|
|
317
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.99",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"./constants": "./dist/constants.js",
|
|
16
16
|
"./constants/*": "./dist/constants/*.js",
|
|
17
17
|
"./context/*": "./dist/context/*.js",
|
|
18
|
-
"./hooks/*": "./dist/hooks/*.js"
|
|
18
|
+
"./hooks/*": "./dist/hooks/*.js",
|
|
19
|
+
"./stories/*": "./dist/stories/*.js"
|
|
19
20
|
},
|
|
20
21
|
"scripts": {
|
|
21
22
|
"build": "npm run build-js && npm run build-css",
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
"build-css": "rm -rf dist/css && postcss 'src/components/**/!(css)/*.css' 'src/styles/!(.css)/**/*.css' 'src/styles/{mediaqueries,mixin_global,mixin_elevation,mixin_fill-gradient}.css' --base src --dir dist/css/ --env production",
|
|
24
25
|
"dev-js": "rollup -c -w",
|
|
25
26
|
"dev-css": "postcss 'src/components/**/!(css)/*.css' 'src/styles/!(.css)/**/*.css' 'src/styles/{mediaqueries,mixin_global,mixin_elevation,mixin_fill-gradient}.css' --base src --dir dist/css/ --env production -w --verbose",
|
|
26
|
-
"prepare": "
|
|
27
|
+
"prepare": "husky",
|
|
27
28
|
"prepack": "npm run build",
|
|
28
29
|
"semantic-release": "semantic-release"
|
|
29
30
|
},
|
|
@@ -40,8 +41,8 @@
|
|
|
40
41
|
"registry": "https://registry.npmjs.org/"
|
|
41
42
|
},
|
|
42
43
|
"dependencies": {
|
|
43
|
-
"@itcase/common": "^1.1.
|
|
44
|
-
"clsx": "^2.
|
|
44
|
+
"@itcase/common": "^1.1.12",
|
|
45
|
+
"clsx": "^2.1.0",
|
|
45
46
|
"html5-boilerplate": "^9.0.0",
|
|
46
47
|
"js-cookie": "^3.0.5",
|
|
47
48
|
"lodash": "^4.17.21",
|
|
@@ -52,23 +53,23 @@
|
|
|
52
53
|
"react-dadata": "^2.23.1",
|
|
53
54
|
"react-date-range": "^1.4.0",
|
|
54
55
|
"react-dom": "^18.2.0",
|
|
55
|
-
"react-inlinesvg": "^4.1.
|
|
56
|
+
"react-inlinesvg": "^4.1.1",
|
|
56
57
|
"react-modern-drawer": "^1.2.2",
|
|
57
58
|
"react-otp-input": "^3.1.1",
|
|
58
59
|
"react-paginate": "^8.2.0",
|
|
59
60
|
"react-responsive": "^9.0.2",
|
|
60
61
|
"react-scrollbars-custom": "^4.1.1",
|
|
61
62
|
"react-select": "^5.8.0",
|
|
62
|
-
"swiper": "^11.0.
|
|
63
|
+
"swiper": "^11.0.6",
|
|
63
64
|
"uuid": "^9.0.1"
|
|
64
65
|
},
|
|
65
66
|
"devDependencies": {
|
|
66
|
-
"@babel/core": "^7.23.
|
|
67
|
-
"@babel/eslint-parser": "^7.23.
|
|
68
|
-
"@babel/preset-env": "^7.23.
|
|
67
|
+
"@babel/core": "^7.23.9",
|
|
68
|
+
"@babel/eslint-parser": "^7.23.10",
|
|
69
|
+
"@babel/preset-env": "^7.23.9",
|
|
69
70
|
"@babel/preset-react": "^7.23.3",
|
|
70
|
-
"@commitlint/cli": "^18.
|
|
71
|
-
"@commitlint/config-conventional": "^18.
|
|
71
|
+
"@commitlint/cli": "^18.6.1",
|
|
72
|
+
"@commitlint/config-conventional": "^18.6.2",
|
|
72
73
|
"@rollup/plugin-babel": "^6.0.4",
|
|
73
74
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
74
75
|
"@rollup/plugin-json": "^6.1.0",
|
|
@@ -81,51 +82,52 @@
|
|
|
81
82
|
"babel-plugin-inline-react-svg": "^2.0.2",
|
|
82
83
|
"babel-plugin-react-docgen": "^4.2.1",
|
|
83
84
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
84
|
-
"eslint": "8.
|
|
85
|
+
"eslint": "8.57.0",
|
|
85
86
|
"eslint-config-prettier": "^9.1.0",
|
|
86
87
|
"eslint-config-standard": "^17.1.0",
|
|
87
88
|
"eslint-plugin-babel": "^5.3.1",
|
|
88
89
|
"eslint-plugin-import": "^2.29.1",
|
|
89
|
-
"eslint-plugin-n": "^16.
|
|
90
|
+
"eslint-plugin-n": "^16.6.2",
|
|
90
91
|
"eslint-plugin-node": "^11.1.0",
|
|
91
|
-
"eslint-plugin-prettier": "^5.1.
|
|
92
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
92
93
|
"eslint-plugin-promise": "^6.1.1",
|
|
93
94
|
"eslint-plugin-react": "^7.33.2",
|
|
94
95
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
95
96
|
"eslint-plugin-standard": "^5.0.0",
|
|
96
|
-
"husky": "^
|
|
97
|
-
"lint-staged": "^15.2.
|
|
98
|
-
"npm": "^10.
|
|
99
|
-
"postcss": "^8.4.
|
|
97
|
+
"husky": "^9.0.11",
|
|
98
|
+
"lint-staged": "^15.2.2",
|
|
99
|
+
"npm": "^10.4.0",
|
|
100
|
+
"postcss": "^8.4.35",
|
|
100
101
|
"postcss-aspect-ratio-polyfill": "^2.0.0",
|
|
101
102
|
"postcss-cli": "^11.0.0",
|
|
102
103
|
"postcss-combine-duplicated-selectors": "^10.0.3",
|
|
103
104
|
"postcss-csso": "^6.0.1",
|
|
104
|
-
"postcss-dark-theme-class": "^1.1
|
|
105
|
-
"postcss-discard-duplicates": "^6.0.
|
|
105
|
+
"postcss-dark-theme-class": "^1.2.1",
|
|
106
|
+
"postcss-discard-duplicates": "^6.0.2",
|
|
106
107
|
"postcss-each": "^1.1.0",
|
|
107
108
|
"postcss-easings": "^4.0.0",
|
|
108
109
|
"postcss-flexbugs-fixes": "^5.0.2",
|
|
109
110
|
"postcss-hexrgba": "^2.1.0",
|
|
110
|
-
"postcss-import": "^
|
|
111
|
+
"postcss-import": "^16.0.1",
|
|
111
112
|
"postcss-import-ext-glob": "^2.1.1",
|
|
112
113
|
"postcss-mixins": "^9.0.4",
|
|
113
114
|
"postcss-nested": "^6.0.1",
|
|
114
115
|
"postcss-nested-ancestors": "^3.0.0",
|
|
115
116
|
"postcss-normalize": "^10.0.1",
|
|
116
117
|
"postcss-prepend-imports": "^1.0.1",
|
|
117
|
-
"postcss-preset-env": "^9.
|
|
118
|
-
"postcss-pxtorem": "^6.
|
|
118
|
+
"postcss-preset-env": "^9.4.0",
|
|
119
|
+
"postcss-pxtorem": "^6.1.0",
|
|
119
120
|
"postcss-responsive-type": "github:ITCase/postcss-responsive-type",
|
|
120
121
|
"postcss-sort-media-queries": "^5.2.0",
|
|
121
|
-
"prettier": "^3.
|
|
122
|
-
"react-datepicker": "^
|
|
123
|
-
"rollup": "^4.
|
|
122
|
+
"prettier": "^3.2.5",
|
|
123
|
+
"react-datepicker": "^6.1.0",
|
|
124
|
+
"rollup": "^4.12.0",
|
|
125
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
124
126
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
125
|
-
"semantic-release": "^
|
|
126
|
-
"stylelint": "^16.1
|
|
127
|
+
"semantic-release": "^23.0.2",
|
|
128
|
+
"stylelint": "^16.2.1",
|
|
127
129
|
"stylelint-config-standard": "^36.0.0",
|
|
128
|
-
"stylelint-no-unsupported-browser-features": "^
|
|
130
|
+
"stylelint-no-unsupported-browser-features": "^8.0.1",
|
|
129
131
|
"stylelint-order": "^6.0.4"
|
|
130
132
|
}
|
|
131
133
|
}
|