@itcase/ui 1.8.35 → 1.8.36
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/{Avatar_cjs_kADy_b4o.js → Avatar_cjs_DBoMi2WA.js} +1 -1
- package/dist/{Avatar_es_DbGpnL99.js → Avatar_es_DHREqfOD.js} +1 -1
- package/dist/{Button_cjs_CW6ENTbm.js → Button_cjs_djJUZATX.js} +2 -2
- package/dist/{Button_es_DTUagqgU.js → Button_es_X1DzVhok.js} +2 -2
- package/dist/ChipsGroup_cjs_5xsEchPo.js +314 -0
- package/dist/ChipsGroup_es_4TOkv-fm.js +309 -0
- package/dist/{DatePicker_cjs_Bx5_lZNT.js → DatePicker_cjs_DffhgUnQ.js} +4 -4
- package/dist/{DatePicker_es_A1FcasHs.js → DatePicker_es_GmkagjKf.js} +4 -4
- package/dist/{DropdownItem_cjs_tH2DBClp.js → DropdownItem_cjs_DxBpJAi9.js} +1 -1
- package/dist/{DropdownItem_es_BeVv-pDA.js → DropdownItem_es_Loneq6M7.js} +1 -1
- package/dist/{Input_cjs_arr_wxD2.js → Input_cjs_CPmXkQGd.js} +1 -0
- package/dist/{Input_es_BW6cZThr.js → Input_es_D9Y1Rj5Y.js} +1 -0
- package/dist/{Label_cjs_CP4b6Mg2.js → Label_cjs_C88e2CIP.js} +49 -49
- package/dist/{Label_es_DFSiy5sL.js → Label_es_Bn2aRjLl.js} +49 -49
- package/dist/{Loader_cjs_CCrbD8Em.js → Loader_cjs_Ca4i0sER.js} +4 -2
- package/dist/{Loader_es_B2auu_rc.js → Loader_es_GYOr0UTX.js} +4 -2
- package/dist/{Tooltip_cjs_DinScDnC.js → Tooltip_cjs_oS1iOamX.js} +4 -2
- package/dist/{Tooltip_es_B0nm9irO.js → Tooltip_es_LV5ZNg3B.js} +4 -2
- package/dist/cjs/components/Accordion.js +1 -1
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/AvatarStack.js +2 -2
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Breadcrumbs/stories/__mock__.js +13 -6
- package/dist/cjs/components/Breadcrumbs.js +17 -18
- package/dist/cjs/components/Button.js +3 -3
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips/stories/__mock__.js +31 -0
- package/dist/cjs/components/Chips.js +4 -4
- package/dist/cjs/components/Choice/stories/__mock__.js +15 -15
- package/dist/cjs/components/Choice.js +7 -7
- package/dist/cjs/components/CookiesWarning.js +3 -3
- package/dist/cjs/components/Dadata.js +1 -1
- package/dist/cjs/components/DatePeriod.js +7 -7
- package/dist/cjs/components/DatePicker.js +6 -6
- package/dist/cjs/components/Drawer.js +1 -1
- package/dist/cjs/components/Dropdown/stories/__mock__.js +3 -2
- package/dist/cjs/components/Dropdown.js +2 -2
- package/dist/cjs/components/HeroTitle.js +1 -1
- package/dist/cjs/components/Icon.js +1 -1
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputPassword.js +1 -1
- package/dist/cjs/components/Label.js +2 -2
- package/dist/cjs/components/Loader.js +1 -1
- package/dist/cjs/components/MenuItem.js +12 -5
- package/dist/cjs/components/Modal.js +2 -2
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Pagination.js +2 -4
- package/dist/cjs/components/Response.js +3 -3
- package/dist/cjs/components/ScrollOnDrag.js +5 -3
- package/dist/cjs/components/Search.js +1 -1
- package/dist/cjs/components/Segmented/stories/__mock__.js +24 -9
- package/dist/cjs/components/Segmented.js +80 -51
- package/dist/cjs/components/Select.js +1 -1
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/cjs/components/Textarea.js +8 -9
- package/dist/cjs/components/Tile.js +1 -1
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/cjs/hooks/useStyles/styleAttributes.js +1 -1
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Avatar.js +2 -2
- package/dist/components/AvatarStack.js +2 -2
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumbs/stories/__mock__.js +13 -7
- package/dist/components/Breadcrumbs.js +17 -18
- package/dist/components/Button.js +3 -3
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips/stories/__mock__.js +29 -0
- package/dist/components/Chips.js +4 -4
- package/dist/components/Choice/stories/__mock__.js +15 -15
- package/dist/components/Choice.js +7 -7
- package/dist/components/CookiesWarning.js +3 -3
- package/dist/components/Dadata.js +1 -1
- package/dist/components/DatePeriod.js +7 -7
- package/dist/components/DatePicker.js +6 -6
- package/dist/components/Drawer.js +1 -1
- package/dist/components/Dropdown/stories/__mock__.js +3 -2
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/HeroTitle.js +1 -1
- package/dist/components/Icon.js +1 -1
- package/dist/components/Input.js +1 -1
- package/dist/components/InputPassword.js +1 -1
- package/dist/components/Label.js +2 -2
- package/dist/components/Loader.js +1 -1
- package/dist/components/MenuItem.js +12 -5
- package/dist/components/Modal.js +2 -2
- package/dist/components/Notification.js +1 -1
- package/dist/components/Pagination.js +3 -5
- package/dist/components/Response.js +3 -3
- package/dist/components/ScrollOnDrag.js +7 -5
- package/dist/components/Search.js +1 -1
- package/dist/components/Segmented/stories/__mock__.js +23 -11
- package/dist/components/Segmented.js +80 -51
- package/dist/components/Select.js +1 -1
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab.js +1 -1
- package/dist/components/Textarea.js +8 -9
- package/dist/components/Tile.js +1 -1
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/css/components/Breadcrumbs/Breadcrumbs.css +15 -6
- package/dist/css/components/Chips/Chips.css +40 -14
- package/dist/css/components/Loader/Loader.css +1 -19
- package/dist/css/components/MenuItem/MenuItem.css +22 -30
- package/dist/css/components/ScrollOnDrag/ScrollOnDrag.css +230 -4
- package/dist/css/components/Segmented/Segmented.css +53 -6
- package/dist/css/components/Segmented/css/__item/segmaented__item.css +31 -0
- package/dist/css/styles/centering/centering.css +17 -0
- package/dist/css/styles/shape-strength/shape-strength.css +6 -0
- package/dist/hooks/useStyles/styleAttributes.js +1 -1
- package/dist/stories/ChipsOverview.mdx +26 -14
- package/dist/stories/ChipsPlayground.mdx +3 -3
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsStyle.d.ts +5 -5
- package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +24 -1
- package/dist/types/components/Chips/Chips.interface.d.ts +1 -0
- package/dist/types/components/Chips/appearance/chipsAccent.d.ts +9 -1
- package/dist/types/components/Chips/appearance/chipsDanger.d.ts +16 -1
- package/dist/types/components/Chips/appearance/chipsError.d.ts +16 -1
- package/dist/types/components/Chips/appearance/chipsInfo.d.ts +16 -1
- package/dist/types/components/Chips/appearance/chipsPrimary.d.ts +11 -2
- package/dist/types/components/Chips/appearance/chipsSecondary.d.ts +10 -2
- package/dist/types/components/Chips/appearance/chipsStyle.d.ts +3 -1
- package/dist/types/components/Chips/appearance/chipsSuccess.d.ts +16 -1
- package/dist/types/components/Chips/appearance/chipsSurface.d.ts +11 -1
- package/dist/types/components/Chips/appearance/chipsWarning.d.ts +16 -1
- package/dist/types/components/Chips/stories/__mock__/index.d.ts +14 -0
- package/dist/types/components/Choice/appearance/choiceStyle.d.ts +5 -5
- package/dist/types/components/Choice/stories/__mock__/index.d.ts +3 -9
- package/dist/types/components/Input/appearance/inputDefault.d.ts +1 -0
- package/dist/types/components/Label/appearance/labelDisable.d.ts +2 -2
- package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +5 -0
- package/dist/types/components/Segmented/Segmented.interface.d.ts +5 -2
- package/dist/types/components/Segmented/appearance/segmentedDefault.d.ts +8 -11
- package/dist/types/components/Segmented/appearance/segmentedDisabled.d.ts +9 -11
- package/dist/types/components/Segmented/appearance/segmentedError.d.ts +9 -2
- package/dist/types/components/Segmented/appearance/segmentedSize.d.ts +5 -0
- package/dist/types/components/Segmented/appearance/segmentedStyle.d.ts +5 -3
- package/dist/types/components/Segmented/appearance/segmentedSuccess.d.ts +8 -0
- package/dist/types/components/Segmented/appearance/segmentedWarning.d.ts +9 -1
- package/dist/types/components/Segmented/stories/__mock__/index.d.ts +30 -8
- package/dist/types/components/Textarea/appearance/textareaDefault.d.ts +1 -0
- package/dist/types/components/Textarea/appearance/textareaStyle.d.ts +4 -4
- package/dist/types/context/UIContext.d.ts +3 -5
- package/package.json +3 -2
- package/dist/ChipsGroup_cjs_j3QOma3U.js +0 -200
- package/dist/ChipsGroup_es_DF1fhn97.js +0 -195
|
@@ -7,21 +7,22 @@
|
|
|
7
7
|
width: 100%;
|
|
8
8
|
&.indiana-scroll-container {
|
|
9
9
|
overflow: auto;
|
|
10
|
+
cursor: grab;
|
|
10
11
|
&--dragging {
|
|
11
12
|
scroll-behavior: auto;
|
|
12
13
|
}
|
|
13
14
|
&--hide-scrollbars {
|
|
14
|
-
overflow: hidden;
|
|
15
|
+
/* overflow: hidden;
|
|
15
16
|
overflow: -moz-scrollbars-none;
|
|
16
17
|
-ms-overflow-style: none;
|
|
17
|
-
scrollbar-width: none;
|
|
18
|
-
&::-webkit-scrollbar {
|
|
18
|
+
scrollbar-width: none; */
|
|
19
|
+
/* &::-webkit-scrollbar {
|
|
19
20
|
width: 0 !important;
|
|
20
21
|
height: 0 !important;
|
|
21
22
|
background: transparent !important;
|
|
22
23
|
display: none !important;
|
|
23
24
|
appearance: none !important;
|
|
24
|
-
}
|
|
25
|
+
} */
|
|
25
26
|
}
|
|
26
27
|
&--native-scroll {
|
|
27
28
|
overflow: auto;
|
|
@@ -29,3 +30,228 @@
|
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
}
|
|
33
|
+
|
|
34
|
+
[data-simplebar] {
|
|
35
|
+
width: 100%;
|
|
36
|
+
position: relative;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
flex-wrap: wrap;
|
|
39
|
+
justify-content: flex-start;
|
|
40
|
+
align-content: flex-start;
|
|
41
|
+
align-items: flex-start;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.simplebar-wrapper {
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
width: inherit;
|
|
47
|
+
height: inherit;
|
|
48
|
+
max-width: inherit;
|
|
49
|
+
max-height: inherit;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.simplebar-mask {
|
|
53
|
+
direction: inherit;
|
|
54
|
+
position: absolute;
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
padding: 0;
|
|
57
|
+
margin: 0;
|
|
58
|
+
left: 0;
|
|
59
|
+
top: 0;
|
|
60
|
+
bottom: 0;
|
|
61
|
+
right: 0;
|
|
62
|
+
width: auto !important;
|
|
63
|
+
height: auto !important;
|
|
64
|
+
z-index: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.simplebar-offset {
|
|
68
|
+
direction: inherit !important;
|
|
69
|
+
box-sizing: inherit !important;
|
|
70
|
+
resize: none !important;
|
|
71
|
+
position: absolute;
|
|
72
|
+
top: 0;
|
|
73
|
+
left: 0;
|
|
74
|
+
bottom: 0;
|
|
75
|
+
right: 0;
|
|
76
|
+
padding: 0;
|
|
77
|
+
margin: 0;
|
|
78
|
+
-webkit-overflow-scrolling: touch;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.simplebar-content-wrapper {
|
|
82
|
+
direction: inherit;
|
|
83
|
+
box-sizing: border-box !important;
|
|
84
|
+
position: relative;
|
|
85
|
+
display: block;
|
|
86
|
+
height: 100%; /* Required for horizontal native scrollbar to not appear if parent is taller than natural height */
|
|
87
|
+
width: auto;
|
|
88
|
+
max-width: 100%; /* Not required for horizontal scroll to trigger */
|
|
89
|
+
max-height: 100%; /* Needed for vertical scroll to trigger */
|
|
90
|
+
overflow: auto;
|
|
91
|
+
scrollbar-width: none;
|
|
92
|
+
-ms-overflow-style: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.simplebar-content-wrapper::-webkit-scrollbar,
|
|
96
|
+
.simplebar-hide-scrollbar::-webkit-scrollbar {
|
|
97
|
+
display: none;
|
|
98
|
+
width: 0;
|
|
99
|
+
height: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.simplebar-content:before,
|
|
103
|
+
.simplebar-content:after {
|
|
104
|
+
content: ' ';
|
|
105
|
+
display: table;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.simplebar-placeholder {
|
|
109
|
+
max-height: 100%;
|
|
110
|
+
max-width: 100%;
|
|
111
|
+
width: 100%;
|
|
112
|
+
pointer-events: none;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.simplebar-height-auto-observer-wrapper {
|
|
116
|
+
box-sizing: inherit !important;
|
|
117
|
+
height: 100%;
|
|
118
|
+
width: 100%;
|
|
119
|
+
max-width: 1px;
|
|
120
|
+
position: relative;
|
|
121
|
+
float: left;
|
|
122
|
+
max-height: 1px;
|
|
123
|
+
overflow: hidden;
|
|
124
|
+
z-index: -1;
|
|
125
|
+
padding: 0;
|
|
126
|
+
margin: 0;
|
|
127
|
+
pointer-events: none;
|
|
128
|
+
flex-grow: inherit;
|
|
129
|
+
flex-shrink: 0;
|
|
130
|
+
flex-basis: 0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.simplebar-height-auto-observer {
|
|
134
|
+
box-sizing: inherit;
|
|
135
|
+
display: block;
|
|
136
|
+
opacity: 0;
|
|
137
|
+
position: absolute;
|
|
138
|
+
top: 0;
|
|
139
|
+
left: 0;
|
|
140
|
+
height: 1000%;
|
|
141
|
+
width: 1000%;
|
|
142
|
+
min-height: 1px;
|
|
143
|
+
min-width: 1px;
|
|
144
|
+
overflow: hidden;
|
|
145
|
+
pointer-events: none;
|
|
146
|
+
z-index: -1;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.simplebar-track {
|
|
150
|
+
z-index: 1;
|
|
151
|
+
position: absolute;
|
|
152
|
+
right: 0;
|
|
153
|
+
bottom: 0;
|
|
154
|
+
pointer-events: none;
|
|
155
|
+
overflow: hidden;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
[data-simplebar].simplebar-dragging {
|
|
159
|
+
pointer-events: none;
|
|
160
|
+
|
|
161
|
+
user-select: none;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
[data-simplebar].simplebar-dragging .simplebar-content {
|
|
165
|
+
pointer-events: none;
|
|
166
|
+
|
|
167
|
+
user-select: none;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
[data-simplebar].simplebar-dragging .simplebar-track {
|
|
171
|
+
pointer-events: all;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.simplebar-scrollbar {
|
|
175
|
+
position: absolute;
|
|
176
|
+
left: 0;
|
|
177
|
+
right: 0;
|
|
178
|
+
min-height: 10px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.simplebar-scrollbar:before {
|
|
182
|
+
position: absolute;
|
|
183
|
+
content: '';
|
|
184
|
+
background: black;
|
|
185
|
+
border-radius: 7px;
|
|
186
|
+
left: 2px;
|
|
187
|
+
right: 2px;
|
|
188
|
+
opacity: 0;
|
|
189
|
+
transition: opacity 0.2s 0.5s linear;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.simplebar-scrollbar.simplebar-visible:before {
|
|
193
|
+
opacity: 0.5;
|
|
194
|
+
transition-delay: 0s;
|
|
195
|
+
transition-duration: 0s;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.simplebar-track.simplebar-vertical {
|
|
199
|
+
top: 0;
|
|
200
|
+
width: 11px;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.simplebar-scrollbar:before {
|
|
204
|
+
top: 2px;
|
|
205
|
+
bottom: 2px;
|
|
206
|
+
left: 2px;
|
|
207
|
+
right: 2px;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.simplebar-track.simplebar-horizontal {
|
|
211
|
+
left: 0;
|
|
212
|
+
height: 11px;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.simplebar-track.simplebar-horizontal .simplebar-scrollbar {
|
|
216
|
+
right: auto;
|
|
217
|
+
left: 0;
|
|
218
|
+
top: 0;
|
|
219
|
+
bottom: 0;
|
|
220
|
+
min-height: 0;
|
|
221
|
+
min-width: 10px;
|
|
222
|
+
width: auto;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* Rtl support */
|
|
226
|
+
|
|
227
|
+
[data-simplebar-direction='rtl'] .simplebar-track.simplebar-vertical {
|
|
228
|
+
right: auto;
|
|
229
|
+
left: 0;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.simplebar-dummy-scrollbar-size {
|
|
233
|
+
direction: rtl;
|
|
234
|
+
position: fixed;
|
|
235
|
+
opacity: 0;
|
|
236
|
+
visibility: hidden;
|
|
237
|
+
height: 500px;
|
|
238
|
+
width: 500px;
|
|
239
|
+
overflow-y: hidden;
|
|
240
|
+
overflow-x: scroll;
|
|
241
|
+
-ms-overflow-style: scrollbar !important;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.simplebar-dummy-scrollbar-size > div {
|
|
245
|
+
width: 200%;
|
|
246
|
+
height: 200%;
|
|
247
|
+
margin: 10px 0;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.simplebar-hide-scrollbar {
|
|
251
|
+
position: fixed;
|
|
252
|
+
left: 0;
|
|
253
|
+
visibility: hidden;
|
|
254
|
+
overflow-y: scroll;
|
|
255
|
+
scrollbar-width: none;
|
|
256
|
+
-ms-overflow-style: none;
|
|
257
|
+
}
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
&::after {
|
|
33
|
-
width: 1px;
|
|
33
|
+
/* width: 1px; */
|
|
34
34
|
height: 100%;
|
|
35
35
|
background: var(--color-surface-border-tertiary);
|
|
36
36
|
content: '';
|
|
@@ -91,7 +91,9 @@
|
|
|
91
91
|
&_$(size) {
|
|
92
92
|
^^&__item {
|
|
93
93
|
&-label {
|
|
94
|
+
min-height: var(--segmented-item-size-$(size)-min-height);
|
|
94
95
|
padding: var(--segmented-item-size-$(size)-padding);
|
|
96
|
+
gap: var(--segmented-item-size-$(size)-gap);
|
|
95
97
|
}
|
|
96
98
|
}
|
|
97
99
|
}
|
|
@@ -138,13 +140,58 @@
|
|
|
138
140
|
background-position: -200%;
|
|
139
141
|
}
|
|
140
142
|
}
|
|
143
|
+
.segmented__item {
|
|
144
|
+
position: relative;
|
|
145
|
+
display: flex;
|
|
146
|
+
|
|
147
|
+
/*
|
|
148
|
+
&:not(:last-child) {
|
|
149
|
+
border-right: var(--chioce-item-border-right);
|
|
150
|
+
}
|
|
151
|
+
*/
|
|
152
|
+
& input {
|
|
153
|
+
width: 100%;
|
|
154
|
+
height: 100%;
|
|
155
|
+
margin: 0;
|
|
156
|
+
border: 0;
|
|
157
|
+
position: absolute;
|
|
158
|
+
inset: 0 0 0 0;
|
|
159
|
+
z-index: 2;
|
|
160
|
+
opacity: 0%;
|
|
161
|
+
cursor: pointer;
|
|
162
|
+
}
|
|
163
|
+
&-label {
|
|
164
|
+
width: 100%;
|
|
165
|
+
text-align: center;
|
|
166
|
+
position: relative;
|
|
167
|
+
display: flex;
|
|
168
|
+
align-items: center;
|
|
169
|
+
z-index: 3;
|
|
170
|
+
transition: color 0.5s ease;
|
|
171
|
+
cursor: pointer;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
141
174
|
:root {
|
|
142
|
-
--segmented-item-size-l-padding:
|
|
143
|
-
--segmented-item-size-m-padding:
|
|
144
|
-
--segmented-item-size-s-padding: 8px
|
|
145
|
-
--segmented-item-size-xs-padding:
|
|
146
|
-
--segmented-item-size-xxs-padding: 4px
|
|
175
|
+
--segmented-item-size-l-padding: 0 12px;
|
|
176
|
+
--segmented-item-size-m-padding: 0 10px;
|
|
177
|
+
--segmented-item-size-s-padding: 0 8px;
|
|
178
|
+
--segmented-item-size-xs-padding: 0 8px;
|
|
179
|
+
--segmented-item-size-xxs-padding: 0 4px;
|
|
180
|
+
|
|
181
|
+
--segmented-item-size-l-gap: 12px;
|
|
182
|
+
--segmented-item-size-m-gap: 8px;
|
|
183
|
+
--segmented-item-size-s-gap: 8px;
|
|
184
|
+
--segmented-item-size-xs-gap: 4px;
|
|
185
|
+
--segmented-item-size-xxs-gap: 4px;
|
|
147
186
|
|
|
148
187
|
--segmented-active-width: 0;
|
|
149
188
|
--segmented-active-x-pos: 0;
|
|
189
|
+
|
|
190
|
+
--segmented-item-size-l-min-height: 40px;
|
|
191
|
+
--segmented-item-size-m-min-height: 36px;
|
|
192
|
+
--segmented-item-size-s-min-height: 28px;
|
|
193
|
+
--segmented-item-size-xs-min-height: 20px;
|
|
194
|
+
--segmented-item-size-xxs-min-height: 16px;
|
|
195
|
+
|
|
196
|
+
--segmented-shape-rounded: 8px;
|
|
150
197
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
.segmented__item {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
&:not(:last-child) {
|
|
7
|
+
border-right: var(--chioce-item-border-right);
|
|
8
|
+
}
|
|
9
|
+
*/
|
|
10
|
+
& input {
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
margin: 0;
|
|
14
|
+
border: 0;
|
|
15
|
+
position: absolute;
|
|
16
|
+
inset: 0 0 0 0;
|
|
17
|
+
z-index: 2;
|
|
18
|
+
opacity: 0%;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
}
|
|
21
|
+
&-label {
|
|
22
|
+
width: 100%;
|
|
23
|
+
text-align: center;
|
|
24
|
+
position: relative;
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
z-index: 3;
|
|
28
|
+
transition: color 0.5s ease;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.centering {
|
|
2
|
+
&_horizontal {
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
}
|
|
6
|
+
&_vertical {
|
|
7
|
+
position: absolute;
|
|
8
|
+
top: 50%;
|
|
9
|
+
transform: translateY(-50%);
|
|
10
|
+
}
|
|
11
|
+
&_both {
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: 50%;
|
|
14
|
+
left: 50%;
|
|
15
|
+
transform: translate(-50%, -50%);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -2,7 +2,7 @@ var styleAttributes = [
|
|
|
2
2
|
/**
|
|
3
3
|
* Layout
|
|
4
4
|
*/
|
|
5
|
-
'alignContent', 'alignItems', 'alignSelf', 'aspectRatio', 'border', 'borderBottomWidth', 'borderEndWidth', 'borderLeftWidth', 'borderRightWidth', 'borderStartWidth', 'borderTopWidth', 'borderWidth', 'bottom', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'gap', 'rowGap', 'columnGap', 'columnWidth', 'height', 'justifyContent', 'left', 'margin', 'marginBottom', 'marginEnd', 'marginHorizontal', 'marginLeft', 'marginRight', 'marginStart', 'marginTop', 'marginVertical', 'maxHeight', 'maxWidth', 'minHeight', 'minWidth', 'overflow', 'padding', 'paddingBottom', 'paddingEnd', 'paddingHorizontal', 'paddingLeft', 'paddingRight', 'paddingStart', 'paddingTop', 'paddingVertical', 'position', 'right', 'top', ['width', {
|
|
5
|
+
'alignContent', 'alignItems', 'alignSelf', 'aspectRatio', 'border', 'borderBottomWidth', 'borderEndWidth', 'borderLeftWidth', 'borderRightWidth', 'borderStartWidth', 'borderTopWidth', 'borderWidth', 'bottom', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'gap', 'rowGap', 'columnGap', 'columnWidth', 'height', 'justifyContent', 'left', 'margin', 'marginBottom', 'marginEnd', 'marginHorizontal', 'marginLeft', 'marginRight', 'marginStart', 'marginTop', 'marginVertical', 'maxHeight', 'maxWidth', 'minHeight', 'minWidth', 'overflow', 'overflowY', 'overflowX', 'padding', 'paddingBottom', 'paddingEnd', 'paddingHorizontal', 'paddingLeft', 'paddingRight', 'paddingStart', 'paddingTop', 'paddingVertical', 'position', 'right', 'top', ['width', {
|
|
6
6
|
validate: value => {
|
|
7
7
|
// Pass only number value for "width" style.
|
|
8
8
|
// If width have custom value, like "fill", we must set class by this value.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta, Story, Canvas } from '@storybook/blocks'
|
|
2
2
|
|
|
3
|
-
import * as ChipsStories from '../stories/
|
|
3
|
+
import * as ChipsStories from '../stories/ChipsDefault.stories'
|
|
4
4
|
|
|
5
5
|
<Meta title="Atoms / Chips / Overview" />
|
|
6
6
|
|
|
@@ -9,29 +9,41 @@ import * as ChipsStories from '../stories/ChipsAppearance.stories'
|
|
|
9
9
|
`Chips` — это компактная альтернатива чекбоксам. Они позволяют пользователям выбирать несколько вариантов одновременно и в основном применяются на мобильных устройствах для переключений фильтров.
|
|
10
10
|
Данный компонент может быть использован в компоненте множественного выбора (SelectMulti).
|
|
11
11
|
|
|
12
|
-
<Canvas sourceState="shown"of={ChipsStories.
|
|
12
|
+
<Canvas sourceState="shown"of={ChipsStories.SurfacePrimary} />
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
##
|
|
15
|
+
## SurfacePrimary
|
|
16
16
|
|
|
17
|
-
<Canvas sourceState="shown" of={ChipsStories.
|
|
17
|
+
<Canvas sourceState="shown" of={ChipsStories.SurfacePrimary} />
|
|
18
18
|
|
|
19
|
-
##
|
|
19
|
+
## AccentPrimary
|
|
20
20
|
|
|
21
|
-
<Canvas sourceState="shown" of={ChipsStories.
|
|
21
|
+
<Canvas sourceState="shown" of={ChipsStories.AccentPrimary} />
|
|
22
22
|
|
|
23
|
-
##
|
|
23
|
+
## ErrorPrimary
|
|
24
24
|
|
|
25
|
-
<Canvas sourceState="shown" of={ChipsStories.
|
|
25
|
+
<Canvas sourceState="shown" of={ChipsStories.ErrorPrimary} />
|
|
26
26
|
|
|
27
|
-
##
|
|
27
|
+
## PrimaryPrimary
|
|
28
28
|
|
|
29
|
-
<Canvas sourceState="shown" of={ChipsStories.
|
|
29
|
+
<Canvas sourceState="shown" of={ChipsStories.PrimaryPrimary} />
|
|
30
|
+
|
|
31
|
+
## SecondaryPrimary
|
|
32
|
+
|
|
33
|
+
<Canvas sourceState="shown" of={ChipsStories.SecondaryPrimary} />
|
|
34
|
+
|
|
35
|
+
## SuccessPrimary
|
|
36
|
+
|
|
37
|
+
<Canvas sourceState="shown" of={ChipsStories.SuccessPrimary} />
|
|
38
|
+
|
|
39
|
+
## DangerPrimary
|
|
40
|
+
|
|
41
|
+
<Canvas sourceState="shown" of={ChipsStories.DangerPrimary} />
|
|
30
42
|
|
|
31
|
-
##
|
|
43
|
+
## WarningPrimary
|
|
32
44
|
|
|
33
|
-
<Canvas sourceState="shown" of={ChipsStories.
|
|
45
|
+
<Canvas sourceState="shown" of={ChipsStories.WarningPrimary} />
|
|
34
46
|
|
|
35
|
-
##
|
|
47
|
+
## InfoPrimary
|
|
36
48
|
|
|
37
|
-
<Canvas sourceState="shown" of={ChipsStories.
|
|
49
|
+
<Canvas sourceState="shown" of={ChipsStories.InfoPrimary} />
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Canvas, Controls, Meta } from '@storybook/blocks'
|
|
2
2
|
|
|
3
|
-
import * as ChipsStories from '../stories/
|
|
3
|
+
import * as ChipsStories from '../stories/ChipsDefault.stories'
|
|
4
4
|
|
|
5
5
|
<Meta title="Atoms / Chips / Playground" />
|
|
6
6
|
|
|
7
7
|
# Playground
|
|
8
8
|
|
|
9
|
-
<Canvas sourceState="shown" of={ChipsStories.
|
|
10
|
-
<Controls of={ChipsStories.
|
|
9
|
+
<Canvas sourceState="shown" of={ChipsStories.SurfacePrimary} />
|
|
10
|
+
<Controls of={ChipsStories.SurfacePrimary} />
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
declare const breadcrumbsAppearanceStyle: {
|
|
2
|
-
|
|
2
|
+
solid: {
|
|
3
3
|
borderColor: string;
|
|
4
4
|
};
|
|
5
|
-
|
|
5
|
+
outlined: {
|
|
6
6
|
fill: string;
|
|
7
|
+
};
|
|
8
|
+
full: {
|
|
7
9
|
borderColor: string;
|
|
8
10
|
};
|
|
9
|
-
|
|
11
|
+
ghost: {
|
|
10
12
|
fill: string;
|
|
11
|
-
};
|
|
12
|
-
solid: {
|
|
13
13
|
borderColor: string;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
@@ -7,4 +7,27 @@ declare const breadcrumbsListMock: {
|
|
|
7
7
|
icon: any;
|
|
8
8
|
}[];
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
declare const breadcrumbsListMockSize: {
|
|
11
|
+
xl: {
|
|
12
|
+
icon: any;
|
|
13
|
+
id: string;
|
|
14
|
+
key: number;
|
|
15
|
+
text: string;
|
|
16
|
+
href: string;
|
|
17
|
+
}[];
|
|
18
|
+
l: {
|
|
19
|
+
icon: any;
|
|
20
|
+
id: string;
|
|
21
|
+
key: number;
|
|
22
|
+
text: string;
|
|
23
|
+
href: string;
|
|
24
|
+
}[];
|
|
25
|
+
m: {
|
|
26
|
+
id: string;
|
|
27
|
+
key: number;
|
|
28
|
+
text: string;
|
|
29
|
+
href: string;
|
|
30
|
+
icon: any;
|
|
31
|
+
}[];
|
|
32
|
+
};
|
|
33
|
+
export { breadcrumbsListMock, breadcrumbsListMockSize };
|
|
@@ -41,6 +41,7 @@ interface ChipsProps extends ChipsThemeColor, StyleAttributes {
|
|
|
41
41
|
style?: CSSProperties;
|
|
42
42
|
type?: string;
|
|
43
43
|
isActive?: boolean;
|
|
44
|
+
isSkeleton?: boolean;
|
|
44
45
|
onClick?: () => void;
|
|
45
46
|
}
|
|
46
47
|
export type { ChipsThemeColor, ChipsAppearance, ChipsConfig, ChipsProps };
|
|
@@ -5,11 +5,19 @@ declare const chipsAppearanceAccent: {
|
|
|
5
5
|
labelTextColor: string;
|
|
6
6
|
borderColor: string;
|
|
7
7
|
};
|
|
8
|
+
accentMutedPrimary: {
|
|
9
|
+
fill: string;
|
|
10
|
+
labelTextColor: string;
|
|
11
|
+
borderColor: string;
|
|
12
|
+
iconAfterFillIcon: string;
|
|
13
|
+
iconBeforeFillIcon: string;
|
|
14
|
+
};
|
|
8
15
|
accentPrimary: {
|
|
9
16
|
fill: string;
|
|
10
|
-
fillHover: string;
|
|
11
17
|
labelTextColor: string;
|
|
12
18
|
borderColor: string;
|
|
19
|
+
iconAfterFillIcon: string;
|
|
20
|
+
iconBeforeFillIcon: string;
|
|
13
21
|
};
|
|
14
22
|
};
|
|
15
23
|
export { chipsAppearanceAccent };
|
|
@@ -1,2 +1,17 @@
|
|
|
1
|
-
declare const chipsAppearanceDanger: {
|
|
1
|
+
declare const chipsAppearanceDanger: {
|
|
2
|
+
dangerMutedPrimary: {
|
|
3
|
+
fill: string;
|
|
4
|
+
labelTextColor: string;
|
|
5
|
+
borderColor: string;
|
|
6
|
+
iconAfterFillIcon: string;
|
|
7
|
+
iconBeforeFillIcon: string;
|
|
8
|
+
};
|
|
9
|
+
dangerPrimary: {
|
|
10
|
+
fill: string;
|
|
11
|
+
labelTextColor: string;
|
|
12
|
+
borderColor: string;
|
|
13
|
+
iconAfterFillIcon: string;
|
|
14
|
+
iconBeforeFillIcon: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
2
17
|
export { chipsAppearanceDanger };
|
|
@@ -1,2 +1,17 @@
|
|
|
1
|
-
declare const chipsAppearanceError: {
|
|
1
|
+
declare const chipsAppearanceError: {
|
|
2
|
+
errorMutedPrimary: {
|
|
3
|
+
fill: string;
|
|
4
|
+
labelTextColor: string;
|
|
5
|
+
borderColor: string;
|
|
6
|
+
iconAfterFillIcon: string;
|
|
7
|
+
iconBeforeFillIcon: string;
|
|
8
|
+
};
|
|
9
|
+
errorPrimary: {
|
|
10
|
+
fill: string;
|
|
11
|
+
labelTextColor: string;
|
|
12
|
+
borderColor: string;
|
|
13
|
+
iconAfterFillIcon: string;
|
|
14
|
+
iconBeforeFillIcon: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
2
17
|
export { chipsAppearanceError };
|
|
@@ -1,2 +1,17 @@
|
|
|
1
|
-
declare const chipsAppearanceInfo: {
|
|
1
|
+
declare const chipsAppearanceInfo: {
|
|
2
|
+
infoMutedPrimary: {
|
|
3
|
+
fill: string;
|
|
4
|
+
labelTextColor: string;
|
|
5
|
+
borderColor: string;
|
|
6
|
+
iconAfterFillIcon: string;
|
|
7
|
+
iconBeforeFillIcon: string;
|
|
8
|
+
};
|
|
9
|
+
infoPrimary: {
|
|
10
|
+
fill: string;
|
|
11
|
+
labelTextColor: string;
|
|
12
|
+
borderColor: string;
|
|
13
|
+
iconAfterFillIcon: string;
|
|
14
|
+
iconBeforeFillIcon: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
2
17
|
export { chipsAppearanceInfo };
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
declare const chipsAppearancePrimary: {
|
|
2
|
-
|
|
2
|
+
primaryMutedPrimary: {
|
|
3
3
|
fill: string;
|
|
4
|
-
fillHover: string;
|
|
5
4
|
labelTextColor: string;
|
|
5
|
+
borderColor: string;
|
|
6
|
+
iconAfterFillIcon: string;
|
|
7
|
+
iconBeforeFillIcon: string;
|
|
8
|
+
};
|
|
9
|
+
primaryPrimary: {
|
|
10
|
+
fill: string;
|
|
11
|
+
labelTextColor: string;
|
|
12
|
+
borderColor: string;
|
|
13
|
+
iconAfterFillIcon: string;
|
|
14
|
+
iconBeforeFillIcon: string;
|
|
6
15
|
};
|
|
7
16
|
};
|
|
8
17
|
export { chipsAppearancePrimary };
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
declare const chipsAppearanceSecondary: {
|
|
2
|
-
|
|
2
|
+
secondaryMutedPrimary: {
|
|
3
3
|
fill: string;
|
|
4
|
-
fillHover: string;
|
|
5
4
|
labelTextColor: string;
|
|
6
5
|
borderColor: string;
|
|
6
|
+
iconAfterFillIcon: string;
|
|
7
|
+
iconBeforeFillIcon: string;
|
|
8
|
+
};
|
|
9
|
+
secondaryPrimary: {
|
|
10
|
+
fill: string;
|
|
11
|
+
labelTextColor: string;
|
|
12
|
+
borderColor: string;
|
|
13
|
+
iconAfterFillIcon: string;
|
|
14
|
+
iconBeforeFillIcon: string;
|
|
7
15
|
};
|
|
8
16
|
};
|
|
9
17
|
export { chipsAppearanceSecondary };
|