@itcase/ui 1.8.23 → 1.8.25
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/{Button_cjs_MfWRETXI.js → Button_cjs_CYUpbdMO.js} +133 -52
- package/dist/{Button_es_zW2pQTwL.js → Button_es_Dp6yFZgn.js} +133 -52
- package/dist/{ChipsGroup_cjs_CTh6644i.js → ChipsGroup_cjs_Ct-NrPmJ.js} +2 -1
- package/dist/{ChipsGroup_es_BFxBhYNB.js → ChipsGroup_es_BNuhlSG6.js} +2 -1
- package/dist/{DatePicker_cjs_uDJmwWkk.js → DatePicker_cjs_DamcZFbX.js} +2 -2
- package/dist/{DatePicker_es_5r0isX1_.js → DatePicker_es_Bm_onmmb.js} +2 -2
- package/dist/{Divider_cjs_DzFVtGkF.js → Divider_cjs_DhqcldLH.js} +6 -2
- package/dist/{Divider_es_BdU9qjKa.js → Divider_es_BEYLRagS.js} +6 -2
- package/dist/{DropdownItem_cjs_C6Jx7-kx.js → DropdownItem_cjs_B_7anyaJ.js} +1 -1
- package/dist/{DropdownItem_es_UdkGGVtg.js → DropdownItem_es_B4EZYdJA.js} +1 -1
- package/dist/{Label_cjs_jN0dxo1q.js → Label_cjs_ByGAWJcj.js} +168 -28
- package/dist/{Label_es_CFQzN-2m.js → Label_es_BtwZ3a2V.js} +168 -28
- package/dist/{Loader_cjs_3VRzFLI2.js → Loader_cjs___VikiqS.js} +36 -1
- package/dist/{Loader_es_DEYowVdU.js → Loader_es_DHKB6tTw.js} +36 -1
- package/dist/cjs/components/Accordion.js +1 -1
- package/dist/cjs/components/Breadcrumbs/stories/__mock__.js +45 -0
- package/dist/cjs/components/Breadcrumbs.js +46 -57
- package/dist/cjs/components/Button.js +2 -2
- package/dist/cjs/components/Cell.js +1 -1
- package/dist/cjs/components/Chips.js +1 -1
- package/dist/cjs/components/Choice.js +1 -1
- package/dist/cjs/components/CookiesWarning.js +2 -2
- package/dist/cjs/components/DatePeriod.js +81 -14
- package/dist/cjs/components/DatePicker.js +4 -4
- package/dist/cjs/components/Divider.js +1 -1
- package/dist/cjs/components/Dropdown.js +2 -2
- package/dist/cjs/components/Label.js +1 -1
- package/dist/cjs/components/Loader.js +1 -1
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Pagination.js +2 -2
- package/dist/cjs/components/Response.js +27 -36
- package/dist/cjs/components/Select.js +1 -1
- package/dist/cjs/components/Tab/stories/__mock__.js +14 -0
- package/dist/cjs/components/Tab.js +133 -39
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Breadcrumbs/stories/__mock__.js +43 -0
- package/dist/components/Breadcrumbs.js +46 -57
- package/dist/components/Button.js +2 -2
- package/dist/components/Cell.js +1 -1
- package/dist/components/Chips.js +1 -1
- package/dist/components/Choice.js +1 -1
- package/dist/components/CookiesWarning.js +2 -2
- package/dist/components/DatePeriod.js +81 -15
- package/dist/components/DatePicker.js +4 -4
- package/dist/components/Divider.js +1 -1
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/Label.js +1 -1
- package/dist/components/Loader.js +1 -1
- package/dist/components/Modal.js +1 -1
- package/dist/components/Pagination.js +2 -2
- package/dist/components/Response.js +27 -36
- package/dist/components/Select.js +1 -1
- package/dist/components/Tab/stories/__mock__.js +12 -0
- package/dist/components/Tab.js +134 -40
- package/dist/css/components/Breadcrumbs/Breadcrumbs.css +22 -0
- package/dist/css/components/Button/Button.css +4 -4
- package/dist/css/components/Label/Label.css +10 -9
- package/dist/css/components/Loader/Loader.css +21 -2
- package/dist/stories/Plsyground.mdx +1 -3
- package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +2 -3
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSize.d.ts +28 -35
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSurface.d.ts +4 -3
- package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +10 -0
- package/dist/types/components/Button/appearance/buttonAccent.d.ts +7 -6
- package/dist/types/components/Button/appearance/buttonDanger.d.ts +8 -4
- package/dist/types/components/Button/appearance/buttonError.d.ts +14 -2
- package/dist/types/components/Button/appearance/buttonInfo.d.ts +19 -4
- package/dist/types/components/Button/appearance/buttonPrimary.d.ts +13 -0
- package/dist/types/components/Button/appearance/buttonSecondary.d.ts +13 -0
- package/dist/types/components/Button/appearance/buttonSize.d.ts +7 -0
- package/dist/types/components/Button/appearance/buttonStyle.d.ts +0 -2
- package/dist/types/components/Button/appearance/buttonSuccess.d.ts +14 -2
- package/dist/types/components/Button/appearance/buttonSurface.d.ts +11 -8
- package/dist/types/components/Button/appearance/buttonWarning.d.ts +8 -4
- package/dist/types/components/Chips/Chips.interface.d.ts +2 -2
- package/dist/types/components/DatePeriod/DatePeriod.interface.d.ts +30 -37
- package/dist/types/components/DatePeriod/datePeriodIntervals.d.ts +3 -0
- package/dist/types/components/DatePeriod/index.d.ts +1 -0
- package/dist/types/components/Label/appearance/labelAccent.d.ts +10 -1
- package/dist/types/components/Label/appearance/labelDanger.d.ts +20 -0
- package/dist/types/components/Label/appearance/labelDisable.d.ts +19 -0
- package/dist/types/components/Label/appearance/labelError.d.ts +13 -2
- package/dist/types/components/Label/appearance/labelInfo.d.ts +14 -2
- package/dist/types/components/Label/appearance/labelPrimary.d.ts +19 -0
- package/dist/types/components/Label/appearance/labelSecondary.d.ts +19 -0
- package/dist/types/components/Label/appearance/labelStyle.d.ts +0 -2
- package/dist/types/components/Label/appearance/labelSuccess.d.ts +11 -0
- package/dist/types/components/Label/appearance/labelSurface.d.ts +14 -3
- package/dist/types/components/Label/appearance/labelWarning.d.ts +11 -0
- package/dist/types/components/Loader/appearance/loaderDanger.d.ts +7 -0
- package/dist/types/components/Loader/appearance/loaderError.d.ts +7 -0
- package/dist/types/components/Loader/appearance/loaderInfo.d.ts +7 -0
- package/dist/types/components/Loader/appearance/loaderSuccess.d.ts +7 -0
- package/dist/types/components/Loader/appearance/loaderWarning.d.ts +7 -0
- package/dist/types/components/Response/appearance/responceConfirm.d.ts +2 -3
- package/dist/types/components/Response/appearance/responceFail.d.ts +2 -3
- package/dist/types/components/Response/appearance/responceNothingFound.d.ts +2 -3
- package/dist/types/components/Response/appearance/responceRefresh.d.ts +2 -3
- package/dist/types/components/Response/appearance/responseError.d.ts +2 -3
- package/dist/types/components/Response/appearance/responseSuccess.d.ts +2 -3
- package/dist/types/components/Response/appearance/responseUnableLoadData.d.ts +2 -3
- package/dist/types/components/Response/appearance/responseWarning.d.ts +2 -3
- package/dist/types/components/Tab/appearance/tabError.d.ts +13 -0
- package/dist/types/components/Tab/appearance/tabSize.d.ts +41 -0
- package/dist/types/components/Tab/appearance/tabStyle.d.ts +2 -2
- package/dist/types/components/Tab/appearance/tabSuccess.d.ts +13 -0
- package/dist/types/components/Tab/appearance/tabSurface.d.ts +29 -24
- package/dist/types/components/Tab/appearance/tabWarning.d.ts +13 -0
- package/dist/types/components/Tab/stories/__mock__/index.d.ts +22 -0
- package/dist/types/hooks/useDevicePropsGenerator/useDevicePropsGenerator.interface.d.ts +4 -1
- package/package.json +8 -6
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { I as Icon } from './Tooltip_es_D1w1s33u.js';
|
|
6
6
|
import { a as LinkWrapper } from './Link_es_DxtZLeKY.js';
|
|
7
|
-
import { L as Loader } from './
|
|
7
|
+
import { L as Loader } from './Loader_es_DHKB6tTw.js';
|
|
8
8
|
import { T as Text } from './Text_es_BRb3qqKM.js';
|
|
9
9
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
10
10
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
@@ -19,8 +19,7 @@ var buttonAppearanceAccent = {
|
|
|
19
19
|
iconAfterFillIcon: 'accentItemPrimary',
|
|
20
20
|
iconBeforeFillIcon: 'accentItemPrimary',
|
|
21
21
|
iconFillIcon: 'accentItemPrimary',
|
|
22
|
-
|
|
23
|
-
loaderItemFill: 'accentItemPrimary',
|
|
22
|
+
loaderAppearance: 'accentPrimary',
|
|
24
23
|
},
|
|
25
24
|
accentPrimary: {
|
|
26
25
|
fill: 'accentPrimary',
|
|
@@ -30,8 +29,8 @@ var buttonAppearanceAccent = {
|
|
|
30
29
|
borderColor: 'accentBorderPrimary',
|
|
31
30
|
iconAfterFillIcon: 'accentItemPrimary',
|
|
32
31
|
iconBeforeFillIcon: 'accentItemPrimary',
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
iconFillIcon: 'accentItemPrimary',
|
|
33
|
+
loaderAppearance: 'accentPrimary',
|
|
35
34
|
},
|
|
36
35
|
accentSecondary: {
|
|
37
36
|
fill: 'accentPrimary',
|
|
@@ -39,8 +38,10 @@ var buttonAppearanceAccent = {
|
|
|
39
38
|
labelTextColor: 'accentTextSecondary',
|
|
40
39
|
labelTextColorHover: 'accentTextSecondary',
|
|
41
40
|
borderColor: 'accentBorderPrimary',
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
iconAfterFillIcon: 'accentItemPrimary',
|
|
42
|
+
iconBeforeFillIcon: 'accentItemPrimary',
|
|
43
|
+
iconFillIcon: 'accentItemPrimary',
|
|
44
|
+
loaderAppearance: 'accentPrimary',
|
|
44
45
|
},
|
|
45
46
|
};
|
|
46
47
|
|
|
@@ -50,16 +51,20 @@ var buttonAppearanceDanger = {
|
|
|
50
51
|
fillHover: 'dangerHover',
|
|
51
52
|
labelTextColor: 'dangerTextSecondary',
|
|
52
53
|
labelTextColorHover: 'dangerTextSecondary',
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
iconAfterFillIcon: 'dangerItemPrimary',
|
|
55
|
+
iconBeforeFillIcon: 'dangerItemPrimary',
|
|
56
|
+
iconFillIcon: 'dangerItemPrimary',
|
|
57
|
+
loaderAppearance: 'dangerPrimary',
|
|
55
58
|
},
|
|
56
59
|
dangerPrimary: {
|
|
57
60
|
fill: 'dangerPrimary',
|
|
58
61
|
fillHover: 'dangerHover',
|
|
59
62
|
labelTextColor: 'dangerTextPrimary',
|
|
60
63
|
labelTextColorHover: 'dangerTextPrimary',
|
|
61
|
-
|
|
62
|
-
|
|
64
|
+
iconAfterFillIcon: 'dangerItemPrimary',
|
|
65
|
+
iconBeforeFillIcon: 'dangerItemPrimary',
|
|
66
|
+
iconFillIcon: 'dangerItemPrimary',
|
|
67
|
+
loaderAppearance: 'dangerPrimary',
|
|
63
68
|
},
|
|
64
69
|
};
|
|
65
70
|
|
|
@@ -69,29 +74,56 @@ var buttonAppearanceError = {
|
|
|
69
74
|
fillHover: 'errorHover',
|
|
70
75
|
labelTextColor: 'errorTextPrimary',
|
|
71
76
|
labelTextColorHover: 'errorTextPrimary',
|
|
72
|
-
|
|
73
|
-
|
|
77
|
+
iconAfterFillIcon: 'errorItemPrimary',
|
|
78
|
+
iconBeforeFillIcon: 'errorItemPrimary',
|
|
79
|
+
iconFillIcon: 'errorItemPrimary',
|
|
80
|
+
loaderAppearance: 'errorPrimary',
|
|
81
|
+
},
|
|
82
|
+
errorPrimary: {
|
|
83
|
+
fill: 'errorPrimary',
|
|
84
|
+
fillHover: 'errorHover',
|
|
85
|
+
labelTextColor: 'errorTextPrimary',
|
|
86
|
+
labelTextColorHover: 'errorTextPrimary',
|
|
87
|
+
iconAfterFillIcon: 'errorItemPrimary',
|
|
88
|
+
iconBeforeFillIcon: 'errorItemPrimary',
|
|
89
|
+
iconFillIcon: 'errorItemPrimary',
|
|
90
|
+
loaderAppearance: 'errorPrimary',
|
|
74
91
|
},
|
|
75
92
|
};
|
|
76
93
|
|
|
77
94
|
var buttonAppearanceInfo = {
|
|
78
95
|
info: {
|
|
79
|
-
fill: '
|
|
80
|
-
fillHover: '
|
|
81
|
-
labelTextColor: '
|
|
82
|
-
labelTextColorHover: '
|
|
83
|
-
borderColor: '
|
|
84
|
-
|
|
85
|
-
|
|
96
|
+
fill: 'infoPrimary',
|
|
97
|
+
fillHover: 'infoPrimaryHover',
|
|
98
|
+
labelTextColor: 'infoTextPrimary',
|
|
99
|
+
labelTextColorHover: 'infoTextPrimary',
|
|
100
|
+
borderColor: 'infoBorderPrimary',
|
|
101
|
+
iconAfterFillIcon: 'infoItemPrimary',
|
|
102
|
+
iconBeforeFillIcon: 'infoItemPrimary',
|
|
103
|
+
iconFillIcon: 'infoItemPrimary',
|
|
104
|
+
loaderAppearance: 'infoPrimary',
|
|
105
|
+
},
|
|
106
|
+
infoPrimary: {
|
|
107
|
+
fill: 'infoPrimary',
|
|
108
|
+
fillHover: 'infoPrimaryHover',
|
|
109
|
+
labelTextColor: 'infoTextPrimary',
|
|
110
|
+
labelTextColorHover: 'infoTextPrimary',
|
|
111
|
+
borderColor: 'infoBorderPrimary',
|
|
112
|
+
iconAfterFillIcon: 'infoItemPrimary',
|
|
113
|
+
iconBeforeFillIcon: 'infoItemPrimary',
|
|
114
|
+
iconFillIcon: 'infoItemPrimary',
|
|
115
|
+
loaderAppearance: 'infoPrimary',
|
|
86
116
|
},
|
|
87
117
|
infoSecondary: {
|
|
88
|
-
fill: '
|
|
89
|
-
fillHover: '
|
|
90
|
-
labelTextColor: '
|
|
91
|
-
labelTextColorHover: '
|
|
92
|
-
borderColor: '
|
|
93
|
-
|
|
94
|
-
|
|
118
|
+
fill: 'infoPrimary',
|
|
119
|
+
fillHover: 'infoPrimaryHover',
|
|
120
|
+
labelTextColor: 'infoTextSecondary',
|
|
121
|
+
labelTextColorHover: 'infoTextSecondary',
|
|
122
|
+
borderColor: 'infoBorderPrimary',
|
|
123
|
+
iconAfterFillIcon: 'infoItemPrimary',
|
|
124
|
+
iconBeforeFillIcon: 'infoItemPrimary',
|
|
125
|
+
iconFillIcon: 'infoItemPrimary',
|
|
126
|
+
loaderAppearance: 'infoPrimary',
|
|
95
127
|
},
|
|
96
128
|
};
|
|
97
129
|
|
|
@@ -100,6 +132,19 @@ var buttonAppearancePrimary = {
|
|
|
100
132
|
fill: 'primaryPrimary',
|
|
101
133
|
fillHover: 'primaryPrimaryHover',
|
|
102
134
|
labelTextColor: 'primaryTextPrimary',
|
|
135
|
+
iconAfterFillIcon: 'primaryItemPrimary',
|
|
136
|
+
iconBeforeFillIcon: 'primaryItemPrimary',
|
|
137
|
+
iconFillIcon: 'primaryItemPrimary',
|
|
138
|
+
loaderAppearance: 'primaryPrimary',
|
|
139
|
+
},
|
|
140
|
+
primaryPrimary: {
|
|
141
|
+
fill: 'primaryPrimary',
|
|
142
|
+
fillHover: 'primaryPrimaryHover',
|
|
143
|
+
labelTextColor: 'primaryTextPrimary',
|
|
144
|
+
iconAfterFillIcon: 'primaryItemPrimary',
|
|
145
|
+
iconBeforeFillIcon: 'primaryItemPrimary',
|
|
146
|
+
iconFillIcon: 'primaryItemPrimary',
|
|
147
|
+
loaderAppearance: 'primaryPrimary',
|
|
103
148
|
},
|
|
104
149
|
};
|
|
105
150
|
|
|
@@ -108,6 +153,19 @@ var buttonAppearanceSecondary = {
|
|
|
108
153
|
fill: 'secondaryPrimary',
|
|
109
154
|
fillHover: 'secondaryPrimaryHover',
|
|
110
155
|
labelTextColor: 'secondaryTextPrimary',
|
|
156
|
+
iconAfterFillIcon: 'secondaryItemPrimary',
|
|
157
|
+
iconBeforeFillIcon: 'secondaryItemPrimary',
|
|
158
|
+
iconFillIcon: 'secondaryItemPrimary',
|
|
159
|
+
loaderAppearance: 'secondaryPrimary',
|
|
160
|
+
},
|
|
161
|
+
secondaryPrimary: {
|
|
162
|
+
fill: 'secondaryPrimary',
|
|
163
|
+
fillHover: 'secondaryPrimaryHover',
|
|
164
|
+
labelTextColor: 'secondaryTextPrimary',
|
|
165
|
+
iconAfterFillIcon: 'secondaryItemPrimary',
|
|
166
|
+
iconBeforeFillIcon: 'secondaryItemPrimary',
|
|
167
|
+
iconFillIcon: 'secondaryItemPrimary',
|
|
168
|
+
loaderAppearance: 'secondaryPrimary',
|
|
111
169
|
},
|
|
112
170
|
};
|
|
113
171
|
|
|
@@ -119,6 +177,7 @@ var buttonAppearanceSize = {
|
|
|
119
177
|
iconAfterSize: 24,
|
|
120
178
|
iconBeforeFillSize: 24,
|
|
121
179
|
iconBeforeSize: 24,
|
|
180
|
+
loaderSize: 'l',
|
|
122
181
|
},
|
|
123
182
|
sizeXL: {
|
|
124
183
|
size: 'xl',
|
|
@@ -127,6 +186,7 @@ var buttonAppearanceSize = {
|
|
|
127
186
|
iconAfterSize: 24,
|
|
128
187
|
iconBeforeFillSize: 24,
|
|
129
188
|
iconBeforeSize: 24,
|
|
189
|
+
loaderSize: 'l',
|
|
130
190
|
},
|
|
131
191
|
sizeL: {
|
|
132
192
|
size: 'l',
|
|
@@ -135,6 +195,7 @@ var buttonAppearanceSize = {
|
|
|
135
195
|
iconAfterSize: 24,
|
|
136
196
|
iconBeforeFillSize: 24,
|
|
137
197
|
iconBeforeSize: 24,
|
|
198
|
+
loaderSize: 'l',
|
|
138
199
|
},
|
|
139
200
|
sizeM: {
|
|
140
201
|
size: 'm',
|
|
@@ -143,6 +204,7 @@ var buttonAppearanceSize = {
|
|
|
143
204
|
iconAfterSize: 24,
|
|
144
205
|
iconBeforeFillSize: 24,
|
|
145
206
|
iconBeforeSize: 24,
|
|
207
|
+
loaderSize: 'l',
|
|
146
208
|
},
|
|
147
209
|
sizeS: {
|
|
148
210
|
size: 's',
|
|
@@ -151,6 +213,7 @@ var buttonAppearanceSize = {
|
|
|
151
213
|
iconAfterSize: 20,
|
|
152
214
|
iconBeforeFillSize: 20,
|
|
153
215
|
iconBeforeSize: 20,
|
|
216
|
+
loaderSize: 'l',
|
|
154
217
|
},
|
|
155
218
|
sizeXS: {
|
|
156
219
|
size: 'xs',
|
|
@@ -159,6 +222,7 @@ var buttonAppearanceSize = {
|
|
|
159
222
|
iconAfterSize: 16,
|
|
160
223
|
iconBeforeFillSize: 16,
|
|
161
224
|
iconBeforeSize: 16,
|
|
225
|
+
loaderSize: 'l',
|
|
162
226
|
},
|
|
163
227
|
sizeXXS: {
|
|
164
228
|
size: 'xxs',
|
|
@@ -167,6 +231,7 @@ var buttonAppearanceSize = {
|
|
|
167
231
|
iconAfterSize: 14,
|
|
168
232
|
iconBeforeFillSize: 14,
|
|
169
233
|
iconBeforeSize: 14,
|
|
234
|
+
loaderSize: 'l',
|
|
170
235
|
},
|
|
171
236
|
};
|
|
172
237
|
|
|
@@ -174,12 +239,10 @@ var buttonAppearanceStyle = {
|
|
|
174
239
|
full: {},
|
|
175
240
|
ghost: {
|
|
176
241
|
fill: 'none',
|
|
177
|
-
fillHover: 'none',
|
|
178
242
|
borderColor: '0',
|
|
179
243
|
},
|
|
180
244
|
outlined: {
|
|
181
245
|
fill: 'none',
|
|
182
|
-
fillHover: 'none',
|
|
183
246
|
},
|
|
184
247
|
solid: {
|
|
185
248
|
borderColor: '0',
|
|
@@ -190,10 +253,22 @@ var buttonAppearanceSuccess = {
|
|
|
190
253
|
success: {
|
|
191
254
|
fill: 'successPrimary',
|
|
192
255
|
fillHover: 'successHover',
|
|
193
|
-
labelTextColor: '
|
|
194
|
-
labelTextColorHover: '
|
|
195
|
-
|
|
196
|
-
|
|
256
|
+
labelTextColor: 'successTextPrimary',
|
|
257
|
+
labelTextColorHover: 'successTextPrimary',
|
|
258
|
+
iconAfterFillIcon: 'successItemPrimary',
|
|
259
|
+
iconBeforeFillIcon: 'successItemPrimary',
|
|
260
|
+
iconFillIcon: 'successItemPrimary',
|
|
261
|
+
loaderAppearance: 'successPrimary',
|
|
262
|
+
},
|
|
263
|
+
successPrimary: {
|
|
264
|
+
fill: 'successPrimary',
|
|
265
|
+
fillHover: 'successHover',
|
|
266
|
+
labelTextColor: 'successTextPrimary',
|
|
267
|
+
labelTextColorHover: 'successTextPrimary',
|
|
268
|
+
iconAfterFillIcon: 'successItemPrimary',
|
|
269
|
+
iconBeforeFillIcon: 'successItemPrimary',
|
|
270
|
+
iconFillIcon: 'successItemPrimary',
|
|
271
|
+
loaderAppearance: 'successPrimary',
|
|
197
272
|
},
|
|
198
273
|
};
|
|
199
274
|
|
|
@@ -202,25 +277,28 @@ var buttonAppearanceSurface = {
|
|
|
202
277
|
fill: 'surfacePrimary',
|
|
203
278
|
fillHover: 'surfaceSecondary',
|
|
204
279
|
labelTextColor: 'surfaceTextPrimary',
|
|
280
|
+
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
281
|
+
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
205
282
|
iconFillIcon: 'surfaceItemPrimary',
|
|
283
|
+
loaderAppearance: 'surfacePrimary',
|
|
206
284
|
},
|
|
207
285
|
surfaceSecondary: {
|
|
208
286
|
fill: 'surfaceSecondary',
|
|
209
287
|
fillHover: 'surfaceSecondaryHover',
|
|
210
288
|
labelTextColor: 'surfaceTextPrimary',
|
|
211
|
-
|
|
212
|
-
|
|
289
|
+
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
290
|
+
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
291
|
+
iconFillIcon: 'surfaceItemPrimary',
|
|
292
|
+
loaderAppearance: 'surfacePrimary',
|
|
213
293
|
},
|
|
214
294
|
surfaceTertiary: {
|
|
215
295
|
fill: 'surfaceTertiary',
|
|
216
296
|
fillHover: 'surfaceTertiaryHover',
|
|
217
297
|
labelTextColor: 'surfaceTextPrimary',
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
223
|
-
labelTextColorHover: 'surfaceTextHover',
|
|
298
|
+
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
299
|
+
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
300
|
+
iconFillIcon: 'surfaceItemPrimary',
|
|
301
|
+
loaderAppearance: 'surfacePrimary',
|
|
224
302
|
},
|
|
225
303
|
};
|
|
226
304
|
|
|
@@ -228,18 +306,22 @@ var buttonAppearanceWarning = {
|
|
|
228
306
|
warning: {
|
|
229
307
|
fill: 'warningPrimary',
|
|
230
308
|
fillHover: 'warningHover',
|
|
231
|
-
labelTextColor: '
|
|
232
|
-
labelTextColorHover: '
|
|
233
|
-
|
|
234
|
-
|
|
309
|
+
labelTextColor: 'warningTextPrimary',
|
|
310
|
+
labelTextColorHover: 'warningTextPrimary',
|
|
311
|
+
iconAfterFillIcon: 'warningItemPrimary',
|
|
312
|
+
iconBeforeFillIcon: 'warningItemPrimary',
|
|
313
|
+
iconFillIcon: 'warningItemPrimary',
|
|
314
|
+
loaderAppearance: 'warningPrimary',
|
|
235
315
|
},
|
|
236
316
|
warningPrimary: {
|
|
237
317
|
fill: 'warningPrimary',
|
|
238
318
|
fillHover: 'warningHover',
|
|
239
|
-
labelTextColor: '
|
|
240
|
-
labelTextColorHover: '
|
|
241
|
-
|
|
242
|
-
|
|
319
|
+
labelTextColor: 'warningTextPrimary',
|
|
320
|
+
labelTextColorHover: 'warningTextPrimary',
|
|
321
|
+
iconAfterFillIcon: 'warningItemPrimary',
|
|
322
|
+
iconBeforeFillIcon: 'warningItemPrimary',
|
|
323
|
+
iconFillIcon: 'warningItemPrimary',
|
|
324
|
+
loaderAppearance: 'warningPrimary',
|
|
243
325
|
},
|
|
244
326
|
};
|
|
245
327
|
|
|
@@ -258,12 +340,11 @@ var Button = React.forwardRef(function Button(props, ref) {
|
|
|
258
340
|
return (__assign(__assign({}, resultConfig), (_a = buttonConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
259
341
|
}, {});
|
|
260
342
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
261
|
-
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextTruncate = propsGenerator.labelTextTruncate, labelTextWeight = propsGenerator.labelTextWeight, labelTextWidth = propsGenerator.labelTextWidth, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, elevationClass = propsGenerator.elevationClass, icon = propsGenerator.icon, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, loaderFill = propsGenerator.loaderFill, loaderItemFill = propsGenerator.loaderItemFill, loaderShapeClass = propsGenerator.loaderShapeClass, _c = propsGenerator.
|
|
343
|
+
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextTruncate = propsGenerator.labelTextTruncate, labelTextWeight = propsGenerator.labelTextWeight, labelTextWidth = propsGenerator.labelTextWidth, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, elevationClass = propsGenerator.elevationClass, icon = propsGenerator.icon, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, loaderAppearance = propsGenerator.loaderAppearance, loaderFill = propsGenerator.loaderFill, loaderItemFill = propsGenerator.loaderItemFill, loaderShapeClass = propsGenerator.loaderShapeClass, loaderSize = propsGenerator.loaderSize, _c = propsGenerator.loaderType, loaderType = _c === void 0 ? 'simple' : _c, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, isSkeleton = propsGenerator.isSkeleton;
|
|
262
344
|
var shapeStrengthClass = propsGenerator.getClassName('shapeStrength', {
|
|
263
345
|
replace: [/\./, '-'],
|
|
264
346
|
});
|
|
265
347
|
// const a = propsGenerator.
|
|
266
|
-
// @ts-expect-error
|
|
267
348
|
var _d = useStyles(props), labelStyles = _d.label, buttonStyles = _d.styles;
|
|
268
349
|
var buttonTypeClass = after ||
|
|
269
350
|
before ||
|
|
@@ -281,7 +362,7 @@ var Button = React.forwardRef(function Button(props, ref) {
|
|
|
281
362
|
? 'button_type_icon'
|
|
282
363
|
: '', borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass
|
|
283
364
|
? "shape-strength_".concat(shapeStrengthClass)
|
|
284
|
-
: shapeClass === 'rounded' && 'shape-strength_default', sizeClass && "button_size_".concat(sizeClass), widthClass && "button_width_".concat(widthClass), elevationClass && "elevation_".concat(elevationClass), onClick && 'cursor_type_pointer', isDisabled && 'cursor_type_default', Badge && 'button_type_badge', isLoading && 'button_state_loading', isSkeleton && "button_skeleton"), type: htmlType, disabled: isDisabled, "data-testid": dataTestId && "".concat(dataTestId, "Button"), "data-tour": dataTour, href: link || href, LinkComponent: "button", rel: rel, style: buttonStyles, target: target, onClick: onClick, onMouseDown: onMouseDown, children: jsxs("div", { className: "button__wrapper", ref: ref, children: [isLoading && (jsx(Loader, { className: clsx(className, 'button__loader', loaderShapeClass), type:
|
|
365
|
+
: shapeClass === 'rounded' && 'shape-strength_default', sizeClass && "button_size_".concat(sizeClass), widthClass && "button_width_".concat(widthClass), elevationClass && "elevation_".concat(elevationClass), onClick && 'cursor_type_pointer', isDisabled && 'cursor_type_default', Badge && 'button_type_badge', isLoading && 'button_state_loading', isSkeleton && "button_skeleton"), type: htmlType, disabled: isDisabled, "data-testid": dataTestId && "".concat(dataTestId, "Button"), "data-tour": dataTour, href: link || href, LinkComponent: "button", rel: rel, style: buttonStyles, target: target, onClick: onClick, onMouseDown: onMouseDown, children: jsxs("div", { className: "button__wrapper", ref: ref, children: [isLoading && (jsx(Loader, { className: clsx(className, 'button__loader', loaderShapeClass), type: loaderType, appearance: loaderAppearance, size: loaderSize, fill: loaderFill, itemFill: loaderItemFill })), before, (iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "button__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), (icon || iconSrc) && (jsx(Icon, { className: "button__icon", size: iconSize, fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), (children || label) && (jsx(Text, { className: "button__label", width: labelTextWidth, size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textTruncate: labelTextTruncate, textWeight: labelTextWeight, textWrap: labelTextWrap, style: labelStyles, children: children || label })), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: "button__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), Badge, after] }) }));
|
|
285
366
|
});
|
|
286
367
|
|
|
287
368
|
export { Button as B, buttonAppearance as a, buttonConfig as b };
|
|
@@ -52,6 +52,7 @@ var chipsAppearanceSecondary = {
|
|
|
52
52
|
},
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
+
/* eslint-disable perfectionist/sort-objects */
|
|
55
56
|
var chipsAppearanceSize = {
|
|
56
57
|
sizeM: {
|
|
57
58
|
size: 'm',
|
|
@@ -146,7 +147,7 @@ function Chips(props) {
|
|
|
146
147
|
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
147
148
|
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "chips_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "chips_size_".concat(sizeClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), isDisabled && "chips_state_disabled", cursorClass && "cursor_".concat(cursorClass), onClick && 'cursor_type_pointer'), "data-testid": dataTestId && "".concat(dataTestId, "Chips"), "data-tour": dataTour, style: chipsStyles, onClick: !isDisabled ? onClick : undefined, children: jsxRuntime.jsxs("div", { className: "chips__inner", children: [(iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Tooltip.Icon, { className: "chips__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), typeof label === 'string' ? (jsxRuntime.jsx(Text.Text, { className: "chips__label", size: labelTextSize, textColor: labelTextColor, textColorActive: isActive && labelTextActiveColor, textColorHover: !isDisabled && !isActive
|
|
148
149
|
? labelTextHoverColor
|
|
149
|
-
: labelTextActiveHoverColor, textWeight: labelTextWeight, textWrap: labelTextWrap, children: label })) : (jsxRuntime.jsx("div", { className: "chips__label", children: label })), children, (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Tooltip.Icon, { className: "chips__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), badgeValue && (jsxRuntime.jsx(Tooltip.Badge, { className: "chips__badge", appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor,
|
|
150
|
+
: labelTextActiveHoverColor, textWeight: labelTextWeight, textWrap: labelTextWrap, children: label })) : (jsxRuntime.jsx("div", { className: "chips__label", children: label })), children, (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Tooltip.Icon, { className: "chips__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), badgeValue && (jsxRuntime.jsx(Tooltip.Badge, { className: "chips__badge", appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue }))] }) }));
|
|
150
151
|
}
|
|
151
152
|
|
|
152
153
|
function ChipsGroup(props) {
|
|
@@ -50,6 +50,7 @@ var chipsAppearanceSecondary = {
|
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
+
/* eslint-disable perfectionist/sort-objects */
|
|
53
54
|
var chipsAppearanceSize = {
|
|
54
55
|
sizeM: {
|
|
55
56
|
size: 'm',
|
|
@@ -144,7 +145,7 @@ function Chips(props) {
|
|
|
144
145
|
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
145
146
|
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "chips_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "chips_size_".concat(sizeClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), isDisabled && "chips_state_disabled", cursorClass && "cursor_".concat(cursorClass), onClick && 'cursor_type_pointer'), "data-testid": dataTestId && "".concat(dataTestId, "Chips"), "data-tour": dataTour, style: chipsStyles, onClick: !isDisabled ? onClick : undefined, children: jsxs("div", { className: "chips__inner", children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "chips__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), typeof label === 'string' ? (jsx(Text, { className: "chips__label", size: labelTextSize, textColor: labelTextColor, textColorActive: isActive && labelTextActiveColor, textColorHover: !isDisabled && !isActive
|
|
146
147
|
? labelTextHoverColor
|
|
147
|
-
: labelTextActiveHoverColor, textWeight: labelTextWeight, textWrap: labelTextWrap, children: label })) : (jsx("div", { className: "chips__label", children: label })), children, (iconAfter || iconAfterSrc) && (jsx(Icon, { className: "chips__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), badgeValue && (jsx(Badge, { className: "chips__badge", appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor,
|
|
148
|
+
: labelTextActiveHoverColor, textWeight: labelTextWeight, textWrap: labelTextWrap, children: label })) : (jsx("div", { className: "chips__label", children: label })), children, (iconAfter || iconAfterSrc) && (jsx(Icon, { className: "chips__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), badgeValue && (jsx(Badge, { className: "chips__badge", appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue }))] }) }));
|
|
148
149
|
}
|
|
149
150
|
|
|
150
151
|
function ChipsGroup(props) {
|
|
@@ -8,10 +8,10 @@ var locale = require('date-fns/locale');
|
|
|
8
8
|
var DatePicker = require('react-datepicker');
|
|
9
9
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
10
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
11
|
-
var Button = require('./
|
|
11
|
+
var Button = require('./Button_cjs_CYUpbdMO.js');
|
|
12
12
|
var Tooltip = require('./Tooltip_cjs_CaocDcQ5.js');
|
|
13
13
|
var Input = require('./Input_cjs_BAVggtkk.js');
|
|
14
|
-
var Label = require('./
|
|
14
|
+
var Label = require('./Label_cjs_ByGAWJcj.js');
|
|
15
15
|
var Text = require('./Text_cjs_DPhKj3wf.js');
|
|
16
16
|
var _default = require('@itcase/icons/default');
|
|
17
17
|
|
|
@@ -6,10 +6,10 @@ import { ru } from 'date-fns/locale';
|
|
|
6
6
|
import DatePicker from 'react-datepicker';
|
|
7
7
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
9
|
-
import { B as Button } from './
|
|
9
|
+
import { B as Button } from './Button_es_Dp6yFZgn.js';
|
|
10
10
|
import { I as Icon } from './Tooltip_es_D1w1s33u.js';
|
|
11
11
|
import { I as Input } from './Input_es_CNduH28G.js';
|
|
12
|
-
import { L as Label } from './
|
|
12
|
+
import { L as Label } from './Label_es_BtwZ3a2V.js';
|
|
13
13
|
import { T as Text } from './Text_es_BRb3qqKM.js';
|
|
14
14
|
import { icon14 } from '@itcase/icons/default';
|
|
15
15
|
|
|
@@ -138,7 +138,7 @@ var dividerConfig = {
|
|
|
138
138
|
},
|
|
139
139
|
};
|
|
140
140
|
function Divider(props) {
|
|
141
|
-
var className = props.className, appearance = props.appearance;
|
|
141
|
+
var className = props.className, appearance = props.appearance, isDisabled = props.isDisabled, isActive = props.isActive;
|
|
142
142
|
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
143
143
|
var _a;
|
|
144
144
|
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = dividerConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
@@ -147,7 +147,11 @@ function Divider(props) {
|
|
|
147
147
|
var directionClass = propsGenerator.directionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, _a = propsGenerator.sizeClass, sizeClass = _a === void 0 ? 'xs' : _a, widthClass = propsGenerator.widthClass;
|
|
148
148
|
// @ts-expect-error
|
|
149
149
|
var hrStyles = useStyles.useStyles(props).styles;
|
|
150
|
-
return (jsxRuntime.jsx("hr", { className: clsx(className, 'divider', widthClass && "width_".concat(widthClass), directionClass && "divider_direction_".concat(directionClass), sizeClass && "divider_size_".concat(sizeClass),
|
|
150
|
+
return (jsxRuntime.jsx("hr", { className: clsx(className, 'divider', widthClass && "width_".concat(widthClass), directionClass && "divider_direction_".concat(directionClass), sizeClass && "divider_size_".concat(sizeClass), !isActive
|
|
151
|
+
? fillClass && "fill_".concat(fillClass)
|
|
152
|
+
: fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
|
|
153
|
+
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
154
|
+
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), isDisabled && fillDisabledClass && "fill_disabled_".concat(fillDisabledClass)), style: hrStyles }));
|
|
151
155
|
}
|
|
152
156
|
|
|
153
157
|
exports.Divider = Divider;
|
|
@@ -136,7 +136,7 @@ var dividerConfig = {
|
|
|
136
136
|
},
|
|
137
137
|
};
|
|
138
138
|
function Divider(props) {
|
|
139
|
-
var className = props.className, appearance = props.appearance;
|
|
139
|
+
var className = props.className, appearance = props.appearance, isDisabled = props.isDisabled, isActive = props.isActive;
|
|
140
140
|
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
141
141
|
var _a;
|
|
142
142
|
return (__assign(__assign({}, resultConfig), (_a = dividerConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
@@ -145,7 +145,11 @@ function Divider(props) {
|
|
|
145
145
|
var directionClass = propsGenerator.directionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, _a = propsGenerator.sizeClass, sizeClass = _a === void 0 ? 'xs' : _a, widthClass = propsGenerator.widthClass;
|
|
146
146
|
// @ts-expect-error
|
|
147
147
|
var hrStyles = useStyles(props).styles;
|
|
148
|
-
return (jsx("hr", { className: clsx(className, 'divider', widthClass && "width_".concat(widthClass), directionClass && "divider_direction_".concat(directionClass), sizeClass && "divider_size_".concat(sizeClass),
|
|
148
|
+
return (jsx("hr", { className: clsx(className, 'divider', widthClass && "width_".concat(widthClass), directionClass && "divider_direction_".concat(directionClass), sizeClass && "divider_size_".concat(sizeClass), !isActive
|
|
149
|
+
? fillClass && "fill_".concat(fillClass)
|
|
150
|
+
: fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
|
|
151
|
+
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
152
|
+
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), isDisabled && fillDisabledClass && "fill_disabled_".concat(fillDisabledClass)), style: hrStyles }));
|
|
149
153
|
}
|
|
150
154
|
|
|
151
155
|
export { Divider as D, dividerAppearance as a, dividerConfig as d };
|
|
@@ -6,7 +6,7 @@ var clsx = require('clsx');
|
|
|
6
6
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
8
8
|
var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
|
|
9
|
-
var Divider = require('./
|
|
9
|
+
var Divider = require('./Divider_cjs_DhqcldLH.js');
|
|
10
10
|
var Tooltip = require('./Tooltip_cjs_CaocDcQ5.js');
|
|
11
11
|
var Text = require('./Text_cjs_DPhKj3wf.js');
|
|
12
12
|
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
6
6
|
import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
|
|
7
|
-
import { D as Divider } from './
|
|
7
|
+
import { D as Divider } from './Divider_es_BEYLRagS.js';
|
|
8
8
|
import { I as Icon } from './Tooltip_es_D1w1s33u.js';
|
|
9
9
|
import { T as Text } from './Text_es_BRb3qqKM.js';
|
|
10
10
|
|