@itcase/ui 1.8.39 → 1.8.41
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_mqB6k6yB.js → Avatar_cjs_BbeDJ-No.js} +1 -1
- package/dist/{Avatar_es_DKL6hUIM.js → Avatar_es_B1Ao9Im_.js} +1 -1
- package/dist/{Button_cjs_CwduBuCx.js → Button_cjs_CcE72qEn.js} +3 -14
- package/dist/{Button_es_CBUUZuP3.js → Button_es_Cv4k5QQw.js} +3 -14
- package/dist/{ChipsGroup_cjs_Dq-QQCR_.js → ChipsGroup_cjs_p99H-9a8.js} +48 -64
- package/dist/{ChipsGroup_es_DdU5NMpc.js → ChipsGroup_es_CWq3TR_1.js} +48 -64
- package/dist/{DatePicker_cjs_0MnhwJnY.js → DatePicker_cjs_BC_SxUN5.js} +3 -3
- package/dist/{DatePicker_es_D4P4DT8L.js → DatePicker_es_DVIxGUlK.js} +3 -3
- package/dist/{DropdownItem_cjs_BuT4hQS1.js → DropdownItem_cjs_B1gGciTB.js} +26 -9
- package/dist/{DropdownItem_es_CrwvBzq_.js → DropdownItem_es_JVT4f6Nb.js} +26 -9
- package/dist/{Label_cjs_CKR9noZi.js → Label_cjs_Mb8j2bLu.js} +1 -5
- package/dist/{Label_es_Cz9OKQAr.js → Label_es_CIDBUVgO.js} +1 -5
- package/dist/{Tooltip_cjs_CiY50iRK.js → Tooltip_cjs_BBwH8sjA.js} +9 -2
- package/dist/{Tooltip_es_Cc2orRUE.js → Tooltip_es_Y2aoFQW7.js} +9 -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.js +1 -1
- package/dist/cjs/components/Button.js +2 -2
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips.js +3 -2
- package/dist/cjs/components/Choice.js +1 -1
- package/dist/cjs/components/CookiesWarning.js +2 -2
- package/dist/cjs/components/DatePeriod.js +6 -5
- package/dist/cjs/components/DatePicker.js +4 -4
- package/dist/cjs/components/Drawer.js +1 -1
- package/dist/cjs/components/Dropdown/stories/__mock__.js +27 -4
- package/dist/cjs/components/Dropdown.js +3 -3
- package/dist/cjs/components/HeroTitle.js +1 -1
- package/dist/cjs/components/Icon.js +1 -1
- package/dist/cjs/components/InputPassword.js +1 -1
- package/dist/cjs/components/Label.js +2 -2
- package/dist/cjs/components/MenuItem.js +1 -1
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Pagination.js +66 -21
- package/dist/cjs/components/Radio.js +45 -65
- package/dist/cjs/components/Response.js +2 -2
- package/dist/cjs/components/Search.js +1 -1
- package/dist/cjs/components/Segmented.js +19 -2
- package/dist/cjs/components/Select.js +3 -3
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/cjs/components/Textarea.js +1 -1
- 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/useAppearanceConfig/useAppearanceConfig.js +29 -0
- package/dist/cjs/hooks/useAppearanceConfig.js +9 -0
- 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.js +1 -1
- package/dist/components/Button.js +2 -2
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips.js +3 -2
- package/dist/components/Choice.js +1 -1
- package/dist/components/CookiesWarning.js +2 -2
- package/dist/components/DatePeriod.js +6 -5
- package/dist/components/DatePicker.js +4 -4
- package/dist/components/Drawer.js +1 -1
- package/dist/components/Dropdown/stories/__mock__.js +26 -5
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/HeroTitle.js +1 -1
- package/dist/components/Icon.js +1 -1
- package/dist/components/InputPassword.js +1 -1
- package/dist/components/Label.js +2 -2
- package/dist/components/MenuItem.js +1 -1
- package/dist/components/Modal.js +1 -1
- package/dist/components/Notification.js +1 -1
- package/dist/components/Pagination.js +67 -22
- package/dist/components/Radio.js +45 -65
- package/dist/components/Response.js +2 -2
- package/dist/components/Search.js +1 -1
- package/dist/components/Segmented.js +19 -2
- package/dist/components/Select.js +3 -3
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab.js +1 -1
- package/dist/components/Textarea.js +1 -1
- 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/Button/Button.css +7 -4
- package/dist/css/components/Dropdown/Dropdown.css +24 -0
- package/dist/css/components/Pagination/Pagination.css +82 -30
- package/dist/css/components/Pagination/css/__item/pagination__item.css +8 -8
- package/dist/css/components/Pagination/css/__item/pagination__item_size.css +8 -0
- package/dist/css/components/Pagination/css/__item/pagination__item_state_active.css +16 -16
- package/dist/css/components/Radio/Radio.css +44 -5
- package/dist/css/components/Select/Select.css +1 -0
- package/dist/css/components/Select/css/__indicators/select__indicators.css +1 -0
- package/dist/css/components/Swiper/Swiper.css +2 -2
- package/dist/css/styles/fill/fill.css +2 -1
- package/dist/css/styles/fill/fill_active.css +3 -0
- package/dist/css/styles/fill/fill_active_hover.css +7 -0
- package/dist/css/styles/fill/fill_hover.css +5 -9
- package/dist/hooks/useAppearanceConfig/useAppearanceConfig.js +27 -0
- package/dist/hooks/useAppearanceConfig.js +3 -0
- package/dist/stories/ChipsOverview.mdx +10 -10
- package/dist/stories/ChipsPlayground.mdx +2 -2
- package/dist/stories/Components.mdx +378 -87
- package/dist/stories/useAppearanceConfig.mdx +83 -0
- package/dist/stories/useDevicePropsGenerator.mdx +6 -8
- package/dist/types/components/Button/appearance/buttonAccent.d.ts +0 -11
- package/dist/types/components/Chips/appearance/chipsDisabled.d.ts +2 -3
- package/dist/types/components/Dropdown/appearance/dropdownAccent.d.ts +5 -0
- package/dist/types/components/Dropdown/appearance/dropdownSize.d.ts +9 -0
- package/dist/types/components/Dropdown/appearance/dropdownSurface.d.ts +3 -0
- package/dist/types/components/Dropdown/stories/__mock__/index.d.ts +9 -12
- package/dist/types/components/Icon/appearance/iconDanger.d.ts +1 -0
- package/dist/types/components/Icon/appearance/iconDisabled.d.ts +1 -0
- package/dist/types/components/Icon/appearance/iconError.d.ts +1 -0
- package/dist/types/components/Icon/appearance/iconInfo.d.ts +0 -1
- package/dist/types/components/Icon/appearance/iconPrimary.d.ts +1 -0
- package/dist/types/components/Icon/appearance/iconSecondary.d.ts +1 -0
- package/dist/types/components/Icon/appearance/iconSuccess.d.ts +1 -0
- package/dist/types/components/Icon/appearance/iconSurface.d.ts +1 -0
- package/dist/types/components/Icon/appearance/iconWarning.d.ts +1 -0
- package/dist/types/components/Label/appearance/labelError.d.ts +0 -1
- package/dist/types/components/Label/appearance/labelGradient.d.ts +8 -0
- package/dist/types/components/Label/appearance/labelPrimary.d.ts +0 -1
- package/dist/types/components/Label/appearance/labelSuccess.d.ts +0 -1
- package/dist/types/components/Label/appearance/labelSurface.d.ts +0 -1
- package/dist/types/components/Pagination/appearance/paginationAccent.d.ts +22 -1
- package/dist/types/components/Pagination/appearance/paginationSize.d.ts +20 -1
- package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +4 -1
- package/dist/types/components/Radio/Radio.appearance.d.ts +28 -48
- package/dist/types/components/Radio/appearance/radioDefault.d.ts +2 -14
- package/dist/types/components/Radio/appearance/radioDisabled.d.ts +5 -5
- package/dist/types/components/Radio/appearance/radioError.d.ts +6 -5
- package/dist/types/components/Radio/appearance/radioRequire.d.ts +5 -13
- package/dist/types/components/Radio/appearance/radioStyle.d.ts +4 -6
- package/dist/types/components/Radio/appearance/radioSuccess.d.ts +6 -5
- package/dist/types/components/Segmented/appearance/segmentedDefault.d.ts +17 -0
- package/dist/types/components/Segmented/appearance/segmentedSize.d.ts +1 -1
- package/dist/types/components/Select/SelectLoadingIndicator.d.ts +2 -1
- package/dist/types/config/forms/datepicker.d.ts +18 -0
- package/dist/types/config/forms/index.d.ts +3 -0
- package/dist/types/config/forms/input.d.ts +14 -0
- package/dist/types/hooks/useAppearanceConfig/index.d.ts +1 -0
- package/dist/types/hooks/useAppearanceConfig/useAppearanceConfig.d.ts +7 -0
- package/dist/types/hooks/useDevicePropsGenerator/index.d.ts +1 -0
- package/package.json +17 -17
- package/dist/types/hooks/useDeviceTargetClass.d.ts +0 -5
|
@@ -30,8 +30,6 @@
|
|
|
30
30
|
@each $size in xxl, xl, l, m, s, xs, xxs {
|
|
31
31
|
&_size_$(size) {
|
|
32
32
|
^&__input {
|
|
33
|
-
min-width: var(--pagination-input-size-$(size)-min-width);
|
|
34
|
-
min-height: var(--pagination-input-size-$(size)-min-height);
|
|
35
33
|
padding: var(--pagination-input-size-$(size)-padding);
|
|
36
34
|
gap: var(--pagination-input-size-$(size)-gap);
|
|
37
35
|
}
|
|
@@ -48,13 +46,34 @@
|
|
|
48
46
|
}
|
|
49
47
|
}
|
|
50
48
|
}
|
|
49
|
+
.pagination {
|
|
50
|
+
&&_skeleton {
|
|
51
|
+
background-size: 200% !important;
|
|
52
|
+
border: none;
|
|
53
|
+
animation: paginationSkeleton 3s infinite linear !important;
|
|
54
|
+
background-image: linear-gradient(
|
|
55
|
+
90deg,
|
|
56
|
+
var(--color-surface-fill-secondary),
|
|
57
|
+
var(--color-surface-fill-tertiary),
|
|
58
|
+
var(--color-surface-fill-secondary)
|
|
59
|
+
) !important;
|
|
60
|
+
& * {
|
|
61
|
+
opacity: 0%;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
@keyframes paginationSkeleton {
|
|
66
|
+
0% {
|
|
67
|
+
background-position: 200%;
|
|
68
|
+
}
|
|
69
|
+
100% {
|
|
70
|
+
background-position: -200%;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
51
73
|
.pagination {
|
|
52
74
|
&__container {
|
|
53
75
|
margin: var(--paginator-margin);
|
|
54
76
|
^&__item {
|
|
55
|
-
width: var(--paginator-item-width);
|
|
56
|
-
height: var(--paginator-item-height);
|
|
57
|
-
background: var(--paginator-item-default-fill);
|
|
58
77
|
border: var(
|
|
59
78
|
--paginator-item-border,
|
|
60
79
|
solid 1px var(--paginator-item-default-border)
|
|
@@ -63,9 +82,6 @@
|
|
|
63
82
|
display: flex;
|
|
64
83
|
transition: var(--paginator-item-transition);
|
|
65
84
|
cursor: pointer;
|
|
66
|
-
&:hover {
|
|
67
|
-
background: var(--paginator-item-default-fill-hover);
|
|
68
|
-
}
|
|
69
85
|
&_break {
|
|
70
86
|
display: flex;
|
|
71
87
|
^&-link {
|
|
@@ -76,31 +92,37 @@
|
|
|
76
92
|
&-link {
|
|
77
93
|
width: 100%;
|
|
78
94
|
height: 100%;
|
|
79
|
-
color: var(--paginator-item-default-text);
|
|
80
95
|
display: flex;
|
|
81
96
|
justify-content: center;
|
|
82
97
|
align-items: center;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
border: solid 1px var(--paginator-item-active-border);
|
|
91
|
-
&&_state {
|
|
92
|
-
&_active {
|
|
93
|
-
background: var(--paginator-item-active-fill);
|
|
94
|
-
&:hover {
|
|
95
|
-
background: var(--paginator-item-active-fill-hover);
|
|
96
|
-
}
|
|
97
|
-
^^&-link {
|
|
98
|
-
color: var(--paginator-item-active-text);
|
|
98
|
+
|
|
99
|
+
&_size {
|
|
100
|
+
@each $size in xs, s, m, l {
|
|
101
|
+
&_$(size) {
|
|
102
|
+
@mixin text-$(size);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
99
105
|
}
|
|
100
106
|
}
|
|
101
107
|
}
|
|
102
108
|
}
|
|
103
109
|
}
|
|
110
|
+
/* .pagination { */
|
|
111
|
+
/* &__item { */
|
|
112
|
+
/* border: solid 1px var(--paginator-item-active-border); */
|
|
113
|
+
/* &&_state { */
|
|
114
|
+
/* &_active { */
|
|
115
|
+
/* background: var(--paginator-item-active-fill); */
|
|
116
|
+
/* &:hover { */
|
|
117
|
+
/* background: var(--paginator-item-active-fill-hover); */
|
|
118
|
+
/* } */
|
|
119
|
+
/* ^^&-link { */
|
|
120
|
+
/* color: var(--paginator-item-active-text); */
|
|
121
|
+
/* } */
|
|
122
|
+
/* } */
|
|
123
|
+
/* } */
|
|
124
|
+
/* } */
|
|
125
|
+
/* } */
|
|
104
126
|
.pagination {
|
|
105
127
|
&__item {
|
|
106
128
|
&&_state {
|
|
@@ -121,11 +143,34 @@
|
|
|
121
143
|
}
|
|
122
144
|
}
|
|
123
145
|
}
|
|
146
|
+
.pagination__item {
|
|
147
|
+
@each $size in l, m, s, xs {
|
|
148
|
+
&_size_$(size) {
|
|
149
|
+
width: var(--paginator-item-$(size)-width) !important;
|
|
150
|
+
height: var(--paginator-item-$(size)-height) !important;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
124
154
|
:root {
|
|
125
155
|
--paginator-margin: 0;
|
|
126
156
|
|
|
127
|
-
--paginator-item-width:
|
|
128
|
-
--paginator-item-height:
|
|
157
|
+
--paginator-item-l-width: 40px;
|
|
158
|
+
--paginator-item-l-height: 40px;
|
|
159
|
+
|
|
160
|
+
--paginator-item-m-width: 32px;
|
|
161
|
+
--paginator-item-m-height: 32px;
|
|
162
|
+
|
|
163
|
+
--paginator-item-s-width: 24px;
|
|
164
|
+
--paginator-item-s-height: 24px;
|
|
165
|
+
|
|
166
|
+
--paginator-item-xs-width: 20px;
|
|
167
|
+
--paginator-item-xs-height: 20px;
|
|
168
|
+
|
|
169
|
+
--paginator-item-l-padding: 0 12px;
|
|
170
|
+
--paginator-item-m-padding: 0 12px;
|
|
171
|
+
--paginator-item-s-padding: 0 8px;
|
|
172
|
+
--paginator-item-xs-padding: 0 6px;
|
|
173
|
+
|
|
129
174
|
--paginator-item-border: none;
|
|
130
175
|
--paginator-item-border-radius: 50%;
|
|
131
176
|
--pagination-input-color: none;
|
|
@@ -151,8 +196,15 @@
|
|
|
151
196
|
--paginator-item-disabled-text: var(--color-surface-text-primary);
|
|
152
197
|
--paginator-item-disabled-icon: var(--color-surface-item-disabled);
|
|
153
198
|
|
|
154
|
-
--pagination-input-size-
|
|
199
|
+
--pagination-input-size-l-padding: 10px 12px;
|
|
200
|
+
--pagination-input-size-l-gap: 4px;
|
|
201
|
+
|
|
202
|
+
--pagination-input-size-m-padding: 7px 12px;
|
|
155
203
|
--pagination-input-size-m-gap: 4px;
|
|
156
|
-
|
|
157
|
-
--pagination-input-size-
|
|
204
|
+
|
|
205
|
+
--pagination-input-size-s-padding: 4px 8px;
|
|
206
|
+
--pagination-input-size-s-gap: 2px;
|
|
207
|
+
|
|
208
|
+
--pagination-input-size-xs-padding: 2px 6px;
|
|
209
|
+
--pagination-input-size-xs-gap: 2px;
|
|
158
210
|
}
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
&__container {
|
|
3
3
|
margin: var(--paginator-margin);
|
|
4
4
|
^&__item {
|
|
5
|
-
width: var(--paginator-item-width);
|
|
6
|
-
height: var(--paginator-item-height);
|
|
7
|
-
background: var(--paginator-item-default-fill);
|
|
8
5
|
border: var(
|
|
9
6
|
--paginator-item-border,
|
|
10
7
|
solid 1px var(--paginator-item-default-border)
|
|
@@ -13,9 +10,6 @@
|
|
|
13
10
|
display: flex;
|
|
14
11
|
transition: var(--paginator-item-transition);
|
|
15
12
|
cursor: pointer;
|
|
16
|
-
&:hover {
|
|
17
|
-
background: var(--paginator-item-default-fill-hover);
|
|
18
|
-
}
|
|
19
13
|
&_break {
|
|
20
14
|
display: flex;
|
|
21
15
|
^&-link {
|
|
@@ -26,11 +20,17 @@
|
|
|
26
20
|
&-link {
|
|
27
21
|
width: 100%;
|
|
28
22
|
height: 100%;
|
|
29
|
-
color: var(--paginator-item-default-text);
|
|
30
23
|
display: flex;
|
|
31
24
|
justify-content: center;
|
|
32
25
|
align-items: center;
|
|
33
|
-
|
|
26
|
+
|
|
27
|
+
&_size {
|
|
28
|
+
@each $size in xs, s, m, l {
|
|
29
|
+
&_$(size) {
|
|
30
|
+
@mixin text-$(size);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
.pagination {
|
|
2
|
-
&__item {
|
|
3
|
-
border: solid 1px var(--paginator-item-active-border);
|
|
4
|
-
&&_state {
|
|
5
|
-
&_active {
|
|
6
|
-
background: var(--paginator-item-active-fill);
|
|
7
|
-
&:hover {
|
|
8
|
-
background: var(--paginator-item-active-fill-hover);
|
|
9
|
-
}
|
|
10
|
-
^^&-link {
|
|
11
|
-
color: var(--paginator-item-active-text);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
1
|
+
/* .pagination { */
|
|
2
|
+
/* &__item { */
|
|
3
|
+
/* border: solid 1px var(--paginator-item-active-border); */
|
|
4
|
+
/* &&_state { */
|
|
5
|
+
/* &_active { */
|
|
6
|
+
/* background: var(--paginator-item-active-fill); */
|
|
7
|
+
/* &:hover { */
|
|
8
|
+
/* background: var(--paginator-item-active-fill-hover); */
|
|
9
|
+
/* } */
|
|
10
|
+
/* ^^&-link { */
|
|
11
|
+
/* color: var(--paginator-item-active-text); */
|
|
12
|
+
/* } */
|
|
13
|
+
/* } */
|
|
14
|
+
/* } */
|
|
15
|
+
/* } */
|
|
16
|
+
/* } */
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
grid-template-rows: auto auto;
|
|
5
5
|
column-gap: 4px;
|
|
6
6
|
&__item {
|
|
7
|
-
min-width: 16px;
|
|
8
|
-
min-height: 16px;
|
|
9
7
|
font-size: 0;
|
|
10
8
|
line-height: 0;
|
|
11
9
|
margin: 2px 0 0 0;
|
|
@@ -15,8 +13,7 @@
|
|
|
15
13
|
cursor: pointer;
|
|
16
14
|
grid-row-start: span 2;
|
|
17
15
|
^&__input {
|
|
18
|
-
|
|
19
|
-
height: 100%;
|
|
16
|
+
inset: 0;
|
|
20
17
|
font-size: 0;
|
|
21
18
|
line-height: 0;
|
|
22
19
|
margin: 0;
|
|
@@ -54,8 +51,50 @@
|
|
|
54
51
|
}
|
|
55
52
|
}
|
|
56
53
|
}
|
|
57
|
-
|
|
54
|
+
.radio {
|
|
55
|
+
@each $size in m, xs, xxs {
|
|
56
|
+
&_size_$(size) {
|
|
57
|
+
^&__item {
|
|
58
|
+
min-width: var(--radio-$(size)-min-width);
|
|
59
|
+
min-height: var(--radio-$(size)-min-height);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
.radio {
|
|
65
|
+
&&_skeleton {
|
|
66
|
+
background-size: 200% !important;
|
|
67
|
+
border: none;
|
|
68
|
+
animation: radioSkeleton 3s infinite linear !important;
|
|
69
|
+
background-image: linear-gradient(
|
|
70
|
+
90deg,
|
|
71
|
+
var(--color-surface-fill-secondary),
|
|
72
|
+
var(--color-surface-fill-tertiary),
|
|
73
|
+
var(--color-surface-fill-secondary)
|
|
74
|
+
) !important;
|
|
75
|
+
& * {
|
|
76
|
+
opacity: 0%;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
@keyframes radioSkeleton {
|
|
81
|
+
0% {
|
|
82
|
+
background-position: 200%;
|
|
83
|
+
}
|
|
84
|
+
100% {
|
|
85
|
+
background-position: -200%;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
58
88
|
:root {
|
|
89
|
+
--radio-m-min-width: 16px;
|
|
90
|
+
--radio-m-min-height: 16px;
|
|
91
|
+
|
|
92
|
+
--radio-xs-min-width: 12px;
|
|
93
|
+
--radio-xs-min-height: 12px;
|
|
94
|
+
|
|
95
|
+
--radio-xxs-min-width: 10px;
|
|
96
|
+
--radio-xxs-min-height: 10px;
|
|
97
|
+
|
|
59
98
|
--radio-state-border-hover: var(--color-surface-border-tertiary);
|
|
60
99
|
--radio-success-border: var(--color-surface-border-tertiary);
|
|
61
100
|
--radio-shape-rounded: 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Swiper 11.2.
|
|
2
|
+
* Swiper 11.2.10
|
|
3
3
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
4
4
|
* https://swiperjs.com
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on:
|
|
10
|
+
* Released on: June 28, 2025
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
/* FONT_START */
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
background-color: transparent;
|
|
4
4
|
}
|
|
5
5
|
@each $type in accent, primary, secondary, tertiary, quaternary, surface,
|
|
6
|
-
error, success, warning, info, danger, gradient, disabled, hover,
|
|
6
|
+
error, success, warning, info, danger, gradient, disabled, active, hover,
|
|
7
|
+
inverse {
|
|
7
8
|
@each $color in primary, secondary, tertiary, quaternary, accent, disabled,
|
|
8
9
|
hover, inverse {
|
|
9
10
|
/* @each $alpha in 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 { */
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/* fill_hover_accent-hover-secondary */
|
|
2
|
+
/* --color-accent-fill-hover-primary */
|
|
1
3
|
.fill {
|
|
2
4
|
&_hover {
|
|
3
5
|
@each $type in accent, primary, secondary, tertiary, quaternary, surface,
|
|
@@ -42,19 +44,13 @@
|
|
|
42
44
|
}
|
|
43
45
|
}
|
|
44
46
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
&-primary {
|
|
48
|
-
&:hover {
|
|
49
|
-
background: var(--color-$(type)-fill-primary);
|
|
50
|
-
}
|
|
51
|
-
&-hover {
|
|
47
|
+
&-hover {
|
|
48
|
+
&-$(color) {
|
|
52
49
|
&:hover {
|
|
53
|
-
background: var(--color-$(type)-fill-
|
|
50
|
+
background: var(--color-$(type)-fill-hover-$(color));
|
|
54
51
|
}
|
|
55
52
|
}
|
|
56
53
|
}
|
|
57
|
-
*/
|
|
58
54
|
}
|
|
59
55
|
|
|
60
56
|
/* } */
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { _ as __assign } from '../../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
|
+
|
|
4
|
+
var useAppearanceConfig = function (appearance, componentConfig, isDisabled) {
|
|
5
|
+
var appearanceConfig = useMemo(function () {
|
|
6
|
+
var _a, _b;
|
|
7
|
+
if (appearance) {
|
|
8
|
+
var appearanceProps = appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
9
|
+
var _a;
|
|
10
|
+
return (__assign(__assign({}, resultConfig), (_a = componentConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
11
|
+
}, {});
|
|
12
|
+
if (isDisabled && ((_a = componentConfig === null || componentConfig === void 0 ? void 0 : componentConfig.appearance) === null || _a === void 0 ? void 0 : _a.disabled)) {
|
|
13
|
+
Object.assign(appearanceProps, componentConfig.appearance.disabled);
|
|
14
|
+
}
|
|
15
|
+
return appearanceProps;
|
|
16
|
+
}
|
|
17
|
+
if (isDisabled) {
|
|
18
|
+
return (_b = componentConfig.appearance) === null || _b === void 0 ? void 0 : _b.disabled;
|
|
19
|
+
}
|
|
20
|
+
return {};
|
|
21
|
+
}, [appearance, componentConfig === null || componentConfig === void 0 ? void 0 : componentConfig.appearance, isDisabled]);
|
|
22
|
+
return {
|
|
23
|
+
appearanceConfig: appearanceConfig,
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { useAppearanceConfig };
|
|
@@ -9,41 +9,41 @@ import * as ChipsStories from '../stories/ChipsDefault.stories'
|
|
|
9
9
|
`Chips` — это компактная альтернатива чекбоксам. Они позволяют пользователям выбирать несколько вариантов одновременно и в основном применяются на мобильных устройствах для переключений фильтров.
|
|
10
10
|
Данный компонент может быть использован в компоненте множественного выбора (SelectMulti).
|
|
11
11
|
|
|
12
|
-
<Canvas sourceState="shown"of={ChipsStories.
|
|
12
|
+
<Canvas sourceState="shown"of={ChipsStories.Surface} />
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
## SurfacePrimary
|
|
16
16
|
|
|
17
|
-
<Canvas sourceState="shown" of={ChipsStories.
|
|
17
|
+
<Canvas sourceState="shown" of={ChipsStories.Surface} />
|
|
18
18
|
|
|
19
19
|
## AccentPrimary
|
|
20
20
|
|
|
21
|
-
<Canvas sourceState="shown" of={ChipsStories.
|
|
21
|
+
<Canvas sourceState="shown" of={ChipsStories.Accent} />
|
|
22
22
|
|
|
23
23
|
## ErrorPrimary
|
|
24
24
|
|
|
25
|
-
<Canvas sourceState="shown" of={ChipsStories.
|
|
25
|
+
<Canvas sourceState="shown" of={ChipsStories.Error} />
|
|
26
26
|
|
|
27
27
|
## PrimaryPrimary
|
|
28
28
|
|
|
29
|
-
<Canvas sourceState="shown" of={ChipsStories.
|
|
29
|
+
<Canvas sourceState="shown" of={ChipsStories.Primary} />
|
|
30
30
|
|
|
31
31
|
## SecondaryPrimary
|
|
32
32
|
|
|
33
|
-
<Canvas sourceState="shown" of={ChipsStories.
|
|
33
|
+
<Canvas sourceState="shown" of={ChipsStories.Secondary} />
|
|
34
34
|
|
|
35
35
|
## SuccessPrimary
|
|
36
36
|
|
|
37
|
-
<Canvas sourceState="shown" of={ChipsStories.
|
|
37
|
+
<Canvas sourceState="shown" of={ChipsStories.Success} />
|
|
38
38
|
|
|
39
39
|
## DangerPrimary
|
|
40
40
|
|
|
41
|
-
<Canvas sourceState="shown" of={ChipsStories.
|
|
41
|
+
<Canvas sourceState="shown" of={ChipsStories.Danger} />
|
|
42
42
|
|
|
43
43
|
## WarningPrimary
|
|
44
44
|
|
|
45
|
-
<Canvas sourceState="shown" of={ChipsStories.
|
|
45
|
+
<Canvas sourceState="shown" of={ChipsStories.Warning} />
|
|
46
46
|
|
|
47
47
|
## InfoPrimary
|
|
48
48
|
|
|
49
|
-
<Canvas sourceState="shown" of={ChipsStories.
|
|
49
|
+
<Canvas sourceState="shown" of={ChipsStories.Info} />
|
|
@@ -6,5 +6,5 @@ import * as ChipsStories from '../stories/ChipsDefault.stories'
|
|
|
6
6
|
|
|
7
7
|
# Playground
|
|
8
8
|
|
|
9
|
-
<Canvas sourceState="shown" of={ChipsStories.
|
|
10
|
-
<Controls of={ChipsStories.
|
|
9
|
+
<Canvas sourceState="shown" of={ChipsStories.Surface} />
|
|
10
|
+
<Controls of={ChipsStories.Surface} />
|