@itcase/ui 1.8.34 → 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_C-VbK2J4.js → DatePicker_cjs_DffhgUnQ.js} +26 -30
- package/dist/{DatePicker_es_CIEHQyHC.js → DatePicker_es_GmkagjKf.js} +27 -31
- package/dist/{DropdownItem_cjs_D-zoX7Ik.js → DropdownItem_cjs_DxBpJAi9.js} +5 -3
- package/dist/{DropdownItem_es_BMnIhUSe.js → DropdownItem_es_Loneq6M7.js} +5 -3
- 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_BWbVsB-u.js → Label_cjs_C88e2CIP.js} +59 -131
- package/dist/{Label_es_ouC2i_iI.js → Label_es_Bn2aRjLl.js} +59 -131
- 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 +10 -8
- 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 +10 -8
- 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/Dropdown/Dropdown.css +7 -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 +10 -9
- 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/chipsSize.d.ts +34 -0
- package/dist/types/components/Chips/appearance/chipsStyle.d.ts +9 -9
- 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/labelAccent.d.ts +0 -8
- package/dist/types/components/Label/appearance/labelDanger.d.ts +0 -12
- package/dist/types/components/Label/appearance/labelDisable.d.ts +2 -4
- package/dist/types/components/Label/appearance/labelError.d.ts +0 -8
- package/dist/types/components/Label/appearance/labelInfo.d.ts +0 -5
- package/dist/types/components/Label/appearance/labelPrimary.d.ts +0 -10
- package/dist/types/components/Label/appearance/labelSecondary.d.ts +0 -10
- package/dist/types/components/Label/appearance/labelSize.d.ts +6 -0
- package/dist/types/components/Label/appearance/labelStyle.d.ts +4 -4
- package/dist/types/components/Label/appearance/labelSuccess.d.ts +0 -8
- package/dist/types/components/Label/appearance/labelSurface.d.ts +0 -6
- package/dist/types/components/Label/appearance/labelWarning.d.ts +0 -9
- 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_DdWjvr_S.js +0 -168
- package/dist/ChipsGroup_es_CXS0aeon.js +0 -163
|
@@ -4,27 +4,20 @@ import { useRef, useCallback } from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
7
|
-
import { I as Icon, T as Tooltip } from './
|
|
7
|
+
import { I as Icon, T as Tooltip } from './Tooltip_es_LV5ZNg3B.js';
|
|
8
8
|
import { T as Text } from './Text_es_BfLRfj-5.js';
|
|
9
9
|
|
|
10
10
|
var labelAppearanceAccent = {
|
|
11
|
-
accent: {
|
|
12
|
-
fill: 'accentPrimary',
|
|
13
|
-
labelTextColor: 'accentTextPrimary',
|
|
14
|
-
labelTextColorHover: 'accentTextPrimary',
|
|
15
|
-
},
|
|
16
11
|
accentMutedPrimary: {
|
|
17
|
-
fill: '
|
|
18
|
-
labelTextColor: '
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
iconBeforeFillIcon: 'accentItemQuaternary',
|
|
12
|
+
fill: 'accentMutedPrimary',
|
|
13
|
+
labelTextColor: 'accentMutedTextQuaternary',
|
|
14
|
+
borderColor: 'accentMutedBorderSecondary',
|
|
15
|
+
iconAfterFillIcon: 'accentMutedItemQuaternary',
|
|
16
|
+
iconBeforeFillIcon: 'accentMutedItemQuaternary',
|
|
23
17
|
},
|
|
24
18
|
accentPrimary: {
|
|
25
19
|
fill: 'accentPrimary',
|
|
26
20
|
labelTextColor: 'accentTextPrimary',
|
|
27
|
-
labelTextColorHover: 'accentTextPrimary',
|
|
28
21
|
borderColor: 'accentBorderSecondary',
|
|
29
22
|
iconAfterFillIcon: 'accentItemPrimary',
|
|
30
23
|
iconBeforeFillIcon: 'accentItemPrimary',
|
|
@@ -32,33 +25,20 @@ var labelAppearanceAccent = {
|
|
|
32
25
|
accentTertiary: {
|
|
33
26
|
fill: 'accentTertiary',
|
|
34
27
|
labelTextColor: 'accentTextPrimary',
|
|
35
|
-
labelTextColorHover: 'accentTextPrimary',
|
|
36
28
|
},
|
|
37
29
|
};
|
|
38
30
|
|
|
39
31
|
var labelAppearanceDanger = {
|
|
40
|
-
danger: {
|
|
41
|
-
fill: 'dangerPrimary',
|
|
42
|
-
fillHover: 'dangerPrimaryHover',
|
|
43
|
-
labelTextColor: 'dangerTextPrimary',
|
|
44
|
-
labelTextColorHover: 'dangerTextSecondary',
|
|
45
|
-
borderColor: 'dangerBorderSecondary',
|
|
46
|
-
iconAfterFillIcon: 'dangerItemPrimary',
|
|
47
|
-
iconBeforeFillIcon: 'dangerItemPrimary',
|
|
48
|
-
},
|
|
49
32
|
dangerMutedPrimary: {
|
|
50
|
-
fill: '
|
|
51
|
-
labelTextColor: '
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
iconBeforeFillIcon: 'dangerItemQuaternary',
|
|
33
|
+
fill: 'dangerMutedPrimary',
|
|
34
|
+
labelTextColor: 'dangerMutedTextQuaternary',
|
|
35
|
+
borderColor: 'dangerMutedBorderQuaternary',
|
|
36
|
+
iconAfterFillIcon: 'dangerMutedItemQuaternary',
|
|
37
|
+
iconBeforeFillIcon: 'dangerMutedItemQuaternary',
|
|
56
38
|
},
|
|
57
39
|
dangerPrimary: {
|
|
58
40
|
fill: 'dangerPrimary',
|
|
59
|
-
fillHover: 'dangerPrimaryHover',
|
|
60
41
|
labelTextColor: 'dangerTextPrimary',
|
|
61
|
-
labelTextColorHover: 'dangerTextSecondary',
|
|
62
42
|
borderColor: 'dangerBorderSecondary',
|
|
63
43
|
iconAfterFillIcon: 'dangerItemPrimary',
|
|
64
44
|
iconBeforeFillIcon: 'dangerItemPrimary',
|
|
@@ -66,44 +46,34 @@ var labelAppearanceDanger = {
|
|
|
66
46
|
};
|
|
67
47
|
|
|
68
48
|
var labelAppearanceDisable = {
|
|
49
|
+
disableMutedPrimary: {
|
|
50
|
+
fill: 'disableMutedPrimary',
|
|
51
|
+
labelTextColor: 'disableMutedTextPrimary',
|
|
52
|
+
borderColor: 'disableMutedBorderSecondary',
|
|
53
|
+
iconAfterFillIcon: 'disableMutedItemPrimary',
|
|
54
|
+
iconBeforeFillIcon: 'disableMutedItemPrimary',
|
|
55
|
+
},
|
|
69
56
|
disablePrimary: {
|
|
70
57
|
fill: 'disablePrimary',
|
|
71
58
|
labelTextColor: 'disableTextPrimary',
|
|
72
|
-
labelTextColorHover: 'disableTextPrimary',
|
|
73
59
|
borderColor: 'disableBorderPrimary',
|
|
74
60
|
iconAfterFillIcon: 'disableItemPrimary',
|
|
75
61
|
iconBeforeFillIcon: 'disableItemPrimary',
|
|
76
62
|
},
|
|
77
|
-
disableMuted: {
|
|
78
|
-
fill: 'disableMuted',
|
|
79
|
-
labelTextColor: 'disableMutedTextPrimary',
|
|
80
|
-
labelTextColorHover: 'disableMutedTextPrimary',
|
|
81
|
-
borderColor: 'disableMutedBorderSecondary',
|
|
82
|
-
iconAfterFillIcon: 'disableMutedItemPrimary',
|
|
83
|
-
iconBeforeFillIcon: 'disableMutedItemPrimary',
|
|
84
|
-
},
|
|
85
63
|
};
|
|
86
64
|
|
|
87
65
|
var labelAppearanceError = {
|
|
88
|
-
error: {
|
|
89
|
-
fill: 'errorPrimary',
|
|
90
|
-
fillHover: 'errorPrimaryHover',
|
|
91
|
-
labelTextColor: 'errorTextPrimary',
|
|
92
|
-
labelTextColorHover: 'errorTextPrimary',
|
|
93
|
-
},
|
|
94
66
|
errorMutedPrimary: {
|
|
95
|
-
fill: '
|
|
96
|
-
labelTextColor: '
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
iconBeforeFillIcon: 'errorItemQuaternary',
|
|
67
|
+
fill: 'errorMutedPrimary',
|
|
68
|
+
labelTextColor: 'errorMutedTextQuaternary',
|
|
69
|
+
borderColor: 'errorMutedBorderSecondary',
|
|
70
|
+
iconAfterFillIcon: 'errorMutedItemQuaternary',
|
|
71
|
+
iconBeforeFillIcon: 'errorMutedItemQuaternary',
|
|
101
72
|
},
|
|
102
73
|
errorPrimary: {
|
|
103
74
|
fill: 'errorPrimary',
|
|
104
75
|
fillHover: 'errorPrimaryHover',
|
|
105
76
|
labelTextColor: 'errorTextPrimary',
|
|
106
|
-
labelTextColorHover: 'errorTextPrimary',
|
|
107
77
|
borderColor: 'errorBorderSecondary',
|
|
108
78
|
iconAfterFillIcon: 'errorItemPrimary',
|
|
109
79
|
iconBeforeFillIcon: 'errorItemPrimary',
|
|
@@ -112,27 +82,22 @@ var labelAppearanceError = {
|
|
|
112
82
|
|
|
113
83
|
var labelAppearanceInfo = {
|
|
114
84
|
infoMutedPrimary: {
|
|
115
|
-
fill: '
|
|
85
|
+
fill: 'infoMutedPrimary',
|
|
116
86
|
labelTextColor: 'infoMutedTextPrimary',
|
|
117
|
-
labelTextColorHover: 'infoMutedTextPrimary',
|
|
118
87
|
borderColor: 'infoMutedBorderSecondary',
|
|
119
88
|
iconAfterFillIcon: 'infoMutedItemPrimary',
|
|
120
89
|
iconBeforeFillIcon: 'infoMutedItemPrimary',
|
|
121
90
|
},
|
|
122
91
|
infoPrimary: {
|
|
123
92
|
fill: 'infoPrimary',
|
|
124
|
-
fillHover: 'infoPrimaryHover',
|
|
125
93
|
labelTextColor: 'infoTextPrimary',
|
|
126
|
-
labelTextColorHover: 'infoTextPrimary',
|
|
127
94
|
borderColor: 'infoBorderPrimary',
|
|
128
95
|
iconAfterFillIcon: 'infoItemPrimary',
|
|
129
96
|
iconBeforeFillIcon: 'infoItemPrimary',
|
|
130
97
|
},
|
|
131
98
|
infoSecondary: {
|
|
132
99
|
fill: 'infoPrimary',
|
|
133
|
-
fillHover: 'infoPrimaryHover',
|
|
134
100
|
labelTextColor: 'infoTextPrimary',
|
|
135
|
-
labelTextColorHover: 'infoTextSecondary',
|
|
136
101
|
borderColor: 'infoBorderSecondary',
|
|
137
102
|
iconAfterFillIcon: 'infoItemPrimary',
|
|
138
103
|
iconBeforeFillIcon: 'infoItemPrimary',
|
|
@@ -140,26 +105,16 @@ var labelAppearanceInfo = {
|
|
|
140
105
|
};
|
|
141
106
|
|
|
142
107
|
var labelAppearancePrimary = {
|
|
143
|
-
primary: {
|
|
144
|
-
fill: 'primaryPrimary',
|
|
145
|
-
labelTextColor: 'primaryTextPrimary',
|
|
146
|
-
labelTextColorHover: 'primaryTextPrimary',
|
|
147
|
-
borderColor: 'primaryBorderSecondary',
|
|
148
|
-
iconAfterFillIcon: 'dangerItemPrimary',
|
|
149
|
-
iconBeforeFillIcon: 'dangerItemPrimary',
|
|
150
|
-
},
|
|
151
108
|
primaryMutedPrimary: {
|
|
152
|
-
fill: '
|
|
153
|
-
labelTextColor: '
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
iconBeforeFillIcon: 'primaryItemSecondary',
|
|
109
|
+
fill: 'primaryMutedPrimary',
|
|
110
|
+
labelTextColor: 'primaryMutedTextSecondary',
|
|
111
|
+
borderColor: 'primaryMutedBorderTertiary',
|
|
112
|
+
iconAfterFillIcon: 'primaryMutedItemSecondary',
|
|
113
|
+
iconBeforeFillIcon: 'primaryMutedItemSecondary',
|
|
158
114
|
},
|
|
159
115
|
primaryPrimary: {
|
|
160
116
|
fill: 'primaryPrimary',
|
|
161
117
|
labelTextColor: 'primaryTextPrimary',
|
|
162
|
-
labelTextColorHover: 'primaryTextPrimary',
|
|
163
118
|
borderColor: 'primaryBorderSecondary',
|
|
164
119
|
iconAfterFillIcon: 'dangerItemPrimary',
|
|
165
120
|
iconBeforeFillIcon: 'dangerItemPrimary',
|
|
@@ -167,26 +122,16 @@ var labelAppearancePrimary = {
|
|
|
167
122
|
};
|
|
168
123
|
|
|
169
124
|
var labelAppearanceSecondary = {
|
|
170
|
-
secondary: {
|
|
171
|
-
fill: 'secondaryPrimary',
|
|
172
|
-
labelTextColor: 'secondaryTextPrimary',
|
|
173
|
-
labelTextColorHover: 'secondaryTextPrimary',
|
|
174
|
-
borderColor: 'secondaryBorderPrimary',
|
|
175
|
-
iconAfterFillIcon: 'secondaryItemPrimary',
|
|
176
|
-
iconBeforeFillIcon: 'secondaryItemPrimary',
|
|
177
|
-
},
|
|
178
125
|
secondaryMutedPrimary: {
|
|
179
|
-
fill: '
|
|
180
|
-
labelTextColor: '
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
iconBeforeFillIcon: 'secondaryItemQuaternary',
|
|
126
|
+
fill: 'secondaryMutedPrimary',
|
|
127
|
+
labelTextColor: 'secondaryMutedTextQuaternary',
|
|
128
|
+
borderColor: 'secondaryMutedBorderDisabled',
|
|
129
|
+
iconAfterFillIcon: 'secondaryMutedItemQuaternary',
|
|
130
|
+
iconBeforeFillIcon: 'secondaryMutedItemQuaternary',
|
|
185
131
|
},
|
|
186
132
|
secondaryPrimary: {
|
|
187
133
|
fill: 'secondaryPrimary',
|
|
188
134
|
labelTextColor: 'secondaryTextPrimary',
|
|
189
|
-
labelTextColorHover: 'secondaryTextPrimary',
|
|
190
135
|
borderColor: 'secondaryBorderPrimary',
|
|
191
136
|
iconAfterFillIcon: 'secondaryItemPrimary',
|
|
192
137
|
iconBeforeFillIcon: 'secondaryItemPrimary',
|
|
@@ -203,6 +148,7 @@ var labelAppearanceSize = {
|
|
|
203
148
|
iconBeforeSize: 24,
|
|
204
149
|
},
|
|
205
150
|
sizeXL: {
|
|
151
|
+
size: 'xl',
|
|
206
152
|
labelTextSize: 'l',
|
|
207
153
|
iconAfterFillSize: 24,
|
|
208
154
|
iconAfterSize: 24,
|
|
@@ -210,6 +156,7 @@ var labelAppearanceSize = {
|
|
|
210
156
|
iconBeforeSize: 24,
|
|
211
157
|
},
|
|
212
158
|
sizeL: {
|
|
159
|
+
size: 'l',
|
|
213
160
|
labelTextSize: 'l',
|
|
214
161
|
iconAfterFillSize: 24,
|
|
215
162
|
iconAfterSize: 24,
|
|
@@ -217,6 +164,7 @@ var labelAppearanceSize = {
|
|
|
217
164
|
iconBeforeSize: 24,
|
|
218
165
|
},
|
|
219
166
|
sizeM: {
|
|
167
|
+
size: 'm',
|
|
220
168
|
labelTextSize: 'm',
|
|
221
169
|
iconAfterFillSize: 24,
|
|
222
170
|
iconAfterSize: 24,
|
|
@@ -224,6 +172,7 @@ var labelAppearanceSize = {
|
|
|
224
172
|
iconBeforeSize: 24,
|
|
225
173
|
},
|
|
226
174
|
sizeS: {
|
|
175
|
+
size: 's',
|
|
227
176
|
labelTextSize: 's',
|
|
228
177
|
iconAfterFillSize: 20,
|
|
229
178
|
iconAfterSize: 20,
|
|
@@ -231,6 +180,7 @@ var labelAppearanceSize = {
|
|
|
231
180
|
iconBeforeSize: 20,
|
|
232
181
|
},
|
|
233
182
|
sizeXS: {
|
|
183
|
+
size: 'xs',
|
|
234
184
|
labelTextSize: 'xs',
|
|
235
185
|
iconAfterFillSize: 16,
|
|
236
186
|
iconAfterSize: 16,
|
|
@@ -238,6 +188,7 @@ var labelAppearanceSize = {
|
|
|
238
188
|
iconBeforeSize: 16,
|
|
239
189
|
},
|
|
240
190
|
sizeXXS: {
|
|
191
|
+
size: 'xxs',
|
|
241
192
|
labelTextSize: 'xs',
|
|
242
193
|
iconAfterFillSize: 14,
|
|
243
194
|
iconAfterSize: 14,
|
|
@@ -247,39 +198,31 @@ var labelAppearanceSize = {
|
|
|
247
198
|
};
|
|
248
199
|
|
|
249
200
|
var labelAppearanceStyle = {
|
|
250
|
-
|
|
251
|
-
ghost: {
|
|
252
|
-
fill: 'none',
|
|
201
|
+
solid: {
|
|
253
202
|
borderColor: 'none',
|
|
254
203
|
},
|
|
255
204
|
outlined: {
|
|
256
205
|
fill: 'none',
|
|
257
206
|
},
|
|
258
|
-
|
|
207
|
+
full: {},
|
|
208
|
+
ghost: {
|
|
209
|
+
fill: 'none',
|
|
259
210
|
borderColor: 'none',
|
|
260
211
|
},
|
|
261
212
|
};
|
|
262
213
|
|
|
263
214
|
var labelAppearanceSuccess = {
|
|
264
|
-
success: {
|
|
265
|
-
fill: 'successPrimary',
|
|
266
|
-
fillHover: 'successPrimaryHover',
|
|
267
|
-
labelTextColor: 'successTextSecondary',
|
|
268
|
-
labelTextColorHover: 'successTextSecondary',
|
|
269
|
-
},
|
|
270
215
|
successMutedPrimary: {
|
|
271
|
-
fill: '
|
|
272
|
-
labelTextColor: '
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
iconBeforeFillIcon: 'successItemQuaternary',
|
|
216
|
+
fill: 'successMutedPrimary',
|
|
217
|
+
labelTextColor: 'successMutedTextPrimary',
|
|
218
|
+
borderColor: 'successMutedBorderSecondary',
|
|
219
|
+
iconAfterFillIcon: 'successMutedItemPrimary',
|
|
220
|
+
iconBeforeFillIcon: 'successMutedItemPrimary',
|
|
277
221
|
},
|
|
278
222
|
successPrimary: {
|
|
279
223
|
fill: 'successPrimary',
|
|
280
224
|
fillHover: 'successPrimaryHover',
|
|
281
225
|
labelTextColor: 'successTextPrimary',
|
|
282
|
-
labelTextColorHover: 'successTextSecondary',
|
|
283
226
|
borderColor: 'successBorderSecondary',
|
|
284
227
|
iconAfterFillIcon: 'successItemPrimary',
|
|
285
228
|
iconBeforeFillIcon: 'successItemPrimary',
|
|
@@ -288,18 +231,15 @@ var labelAppearanceSuccess = {
|
|
|
288
231
|
|
|
289
232
|
var labelAppearanceSurface = {
|
|
290
233
|
surfaceMutedPrimary: {
|
|
291
|
-
fill: '
|
|
292
|
-
labelTextColor: '
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
iconBeforeFillIcon: 'surfaceItemQuaternary',
|
|
234
|
+
fill: 'surfaceMutedPrimary',
|
|
235
|
+
labelTextColor: 'surfaceMutedTextQuaternary',
|
|
236
|
+
borderColor: 'surfaceMutedBorderQuaternary',
|
|
237
|
+
iconAfterFillIcon: 'surfaceMutedItemQuaternary',
|
|
238
|
+
iconBeforeFillIcon: 'surfaceMutedItemQuaternary',
|
|
297
239
|
},
|
|
298
240
|
surfacePrimary: {
|
|
299
241
|
fill: 'surfacePrimary',
|
|
300
|
-
fillHover: 'surfacePrimaryHover',
|
|
301
242
|
labelTextColor: 'surfaceTextPrimary',
|
|
302
|
-
labelTextColorHover: 'surfaceTextPrimary',
|
|
303
243
|
borderColor: 'surfaceBorderQuaternary',
|
|
304
244
|
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
305
245
|
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
@@ -307,40 +247,28 @@ var labelAppearanceSurface = {
|
|
|
307
247
|
surfaceSecondary: {
|
|
308
248
|
fill: 'surfaceSecondary',
|
|
309
249
|
labelTextColor: 'surfaceTextPrimary',
|
|
310
|
-
labelTextColorHover: 'surfaceTextPrimary',
|
|
311
250
|
},
|
|
312
251
|
surfaceTertiary: {
|
|
313
252
|
fill: 'surfaceTertiary',
|
|
314
253
|
labelTextColor: 'surfaceTextPrimary',
|
|
315
|
-
labelTextColorHover: 'surfaceTextPrimary',
|
|
316
254
|
},
|
|
317
255
|
surfaceQuaternary: {
|
|
318
256
|
fill: 'surfaceQuaternary',
|
|
319
257
|
labelTextColor: 'surfaceTextInverse',
|
|
320
|
-
labelTextColorHover: 'surfaceTextInverse',
|
|
321
258
|
},
|
|
322
259
|
};
|
|
323
260
|
|
|
324
261
|
var labelAppearanceWarning = {
|
|
325
|
-
warning: {
|
|
326
|
-
fill: 'warningPrimary',
|
|
327
|
-
fillHover: 'warningPrimaryHover',
|
|
328
|
-
labelTextColor: 'warningTextSecondary',
|
|
329
|
-
labelTextColorHover: 'warningTextSecondary',
|
|
330
|
-
},
|
|
331
262
|
warningMutedPrimary: {
|
|
332
|
-
fill: '
|
|
333
|
-
labelTextColor: '
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
iconBeforeFillIcon: 'warningItemSecondary',
|
|
263
|
+
fill: 'warningMutedPrimary',
|
|
264
|
+
labelTextColor: 'warningMutedTextSecondary',
|
|
265
|
+
borderColor: 'warningMutedBorderSecondary',
|
|
266
|
+
iconAfterFillIcon: 'warningMutedItemSecondary',
|
|
267
|
+
iconBeforeFillIcon: 'warningMutedItemSecondary',
|
|
338
268
|
},
|
|
339
269
|
warningPrimary: {
|
|
340
270
|
fill: 'warningPrimary',
|
|
341
|
-
fillHover: 'warningPrimaryHover',
|
|
342
271
|
labelTextColor: 'warningTextPrimary',
|
|
343
|
-
labelTextColorHover: 'warningTextSecondary',
|
|
344
272
|
borderColor: 'warningBorderSecondary',
|
|
345
273
|
iconAfterFillIcon: 'warningItemPrimary',
|
|
346
274
|
iconBeforeFillIcon: 'warningItemPrimary',
|
|
@@ -105,10 +105,12 @@ function Loader(props) {
|
|
|
105
105
|
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = loaderConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
106
106
|
}, {});
|
|
107
107
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
108
|
-
var fillClass = propsGenerator.fillClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, heightClass = propsGenerator.heightClass, itemFillClass = propsGenerator.itemFillClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
108
|
+
var fillClass = propsGenerator.fillClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, heightClass = propsGenerator.heightClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, itemFillClass = propsGenerator.itemFillClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
109
109
|
// @ts-expect-error
|
|
110
110
|
var loader = useStyles.useStyles(props).styles;
|
|
111
|
-
return (jsxRuntime.jsxs("div", { className: clsx('loader', className, widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), fillClass && "fill_".concat(fillClass), sizeClass && "loader_size_".concat(sizeClass), isSkeleton && "loader_skeleton", type && "loader_type_".concat(type), shapeClass && "
|
|
111
|
+
return (jsxRuntime.jsxs("div", { className: clsx('loader', className, widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), fillClass && "fill_".concat(fillClass), sizeClass && "loader_size_".concat(sizeClass), isSkeleton && "loader_skeleton", type && "loader_type_".concat(type), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass
|
|
112
|
+
? "shape-strength_".concat(shapeStrengthClass)
|
|
113
|
+
: shapeClass === 'rounded' && 'shape-strength_default'), style: loader, children: [children || (jsxRuntime.jsxs("div", { className: "loader__inner", children: [jsxRuntime.jsx("span", { className: clsx('loader__item', itemFillClass && "fill_".concat(itemFillClass)) }), jsxRuntime.jsx("span", { className: clsx('loader__item', itemFillClass && "fill_".concat(itemFillClass)) }), jsxRuntime.jsx("span", { className: clsx('loader__item', itemFillClass && "fill_".concat(itemFillClass)) })] })), text && (jsxRuntime.jsx(Text.Text, { className: "loader__text", size: textSize, textColor: textColor, children: text }))] }));
|
|
112
114
|
}
|
|
113
115
|
|
|
114
116
|
exports.Loader = Loader;
|
|
@@ -103,10 +103,12 @@ function Loader(props) {
|
|
|
103
103
|
return (__assign(__assign({}, resultConfig), (_a = loaderConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
104
104
|
}, {});
|
|
105
105
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
106
|
-
var fillClass = propsGenerator.fillClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, heightClass = propsGenerator.heightClass, itemFillClass = propsGenerator.itemFillClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
106
|
+
var fillClass = propsGenerator.fillClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, heightClass = propsGenerator.heightClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, itemFillClass = propsGenerator.itemFillClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
107
107
|
// @ts-expect-error
|
|
108
108
|
var loader = useStyles(props).styles;
|
|
109
|
-
return (jsxs("div", { className: clsx('loader', className, widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), fillClass && "fill_".concat(fillClass), sizeClass && "loader_size_".concat(sizeClass), isSkeleton && "loader_skeleton", type && "loader_type_".concat(type), shapeClass && "
|
|
109
|
+
return (jsxs("div", { className: clsx('loader', className, widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), fillClass && "fill_".concat(fillClass), sizeClass && "loader_size_".concat(sizeClass), isSkeleton && "loader_skeleton", type && "loader_type_".concat(type), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass
|
|
110
|
+
? "shape-strength_".concat(shapeStrengthClass)
|
|
111
|
+
: shapeClass === 'rounded' && 'shape-strength_default'), style: loader, children: [children || (jsxs("div", { className: "loader__inner", children: [jsx("span", { className: clsx('loader__item', itemFillClass && "fill_".concat(itemFillClass)) }), jsx("span", { className: clsx('loader__item', itemFillClass && "fill_".concat(itemFillClass)) }), jsx("span", { className: clsx('loader__item', itemFillClass && "fill_".concat(itemFillClass)) })] })), text && (jsx(Text, { className: "loader__text", size: textSize, textColor: textColor, children: text }))] }));
|
|
110
112
|
}
|
|
111
113
|
|
|
112
114
|
export { Loader as L, loaderAppearance as a, loaderConfig as l };
|
|
@@ -1067,10 +1067,12 @@ var Tooltip = React.forwardRef(function Tooltip(props, ref) {
|
|
|
1067
1067
|
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = tooltipConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
1068
1068
|
}, {});
|
|
1069
1069
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
1070
|
-
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, alignmentClass = propsGenerator.alignmentClass, alignPosition = propsGenerator.alignPosition, fillClass = propsGenerator.fillClass, titleSize = propsGenerator.titleSize, titleTextColor = propsGenerator.titleTextColor, titleTextWeight = propsGenerator.titleTextWeight, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, textWeight = propsGenerator.textWeight, arrowPosition = propsGenerator.arrowPosition, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
1070
|
+
var alignClass = propsGenerator.alignClass, centeringClass = propsGenerator.centeringClass, alignDirectionClass = propsGenerator.alignDirectionClass, alignmentClass = propsGenerator.alignmentClass, alignPosition = propsGenerator.alignPosition, fillClass = propsGenerator.fillClass, titleSize = propsGenerator.titleSize, titleTextColor = propsGenerator.titleTextColor, titleTextWeight = propsGenerator.titleTextWeight, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, textWeight = propsGenerator.textWeight, arrowPosition = propsGenerator.arrowPosition, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
1071
1071
|
// @ts-expect-error
|
|
1072
1072
|
var tooltipStyles = useStyles.useStyles(props).styles;
|
|
1073
|
-
return (jsxRuntime.jsxs("div", { className: clsx(className, 'tooltip', isTooltipVisible ? 'tooltip_state_open' : 'tooltip_state_close', fillClass && "fill_".concat(fillClass), shapeClass && "tooltip_shape_".concat(shapeClass), alignPosition && "tooltip_align-position_".concat(alignPosition), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), elevationClass && "elevation_".concat(elevationClass),
|
|
1073
|
+
return (jsxRuntime.jsxs("div", { className: clsx(className, 'tooltip', isTooltipVisible ? 'tooltip_state_open' : 'tooltip_state_close', fillClass && "fill_".concat(fillClass), shapeClass && "tooltip_shape_".concat(shapeClass), alignPosition && "tooltip_align-position_".concat(alignPosition), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), elevationClass && "elevation_".concat(elevationClass), centeringClass && "centering_".concat(centeringClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass
|
|
1074
|
+
? "shape-strength_".concat(shapeStrengthClass)
|
|
1075
|
+
: shapeClass === 'rounded' && 'shape-strength_default', alignmentClass && "alignment_".concat(alignmentClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "tooltip_size_".concat(sizeClass), isSkeleton && 'tooltip_skeleton', widthClass && "width_".concat(widthClass)), ref: tooltipElementRef, style: tooltipStyles, onAnimationEnd: onAnimationEnd, children: [jsxRuntime.jsx("div", { className: clsx('tooltip__arrow', arrowPosition && "tooltip__arrow_position_".concat(arrowPosition), fillClass && "fill_".concat(fillClass)), children: "\u00A0" }), before, jsxRuntime.jsxs("div", { className: "tooltip__inner", children: [title && (jsxRuntime.jsx(Title, { className: "tooltip__title text", size: titleSize, textColor: titleTextColor, textWeight: titleTextWeight, children: title })), text && (jsxRuntime.jsx(Text.Text, { className: "tooltip__text", size: textSize, textColor: textColor, textWeight: textWeight, children: text })), children] }), after] }));
|
|
1074
1076
|
});
|
|
1075
1077
|
|
|
1076
1078
|
exports.Badge = Badge;
|
|
@@ -1065,10 +1065,12 @@ var Tooltip = React.forwardRef(function Tooltip(props, ref) {
|
|
|
1065
1065
|
return (__assign(__assign({}, resultConfig), (_a = tooltipConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
1066
1066
|
}, {});
|
|
1067
1067
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
1068
|
-
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, alignmentClass = propsGenerator.alignmentClass, alignPosition = propsGenerator.alignPosition, fillClass = propsGenerator.fillClass, titleSize = propsGenerator.titleSize, titleTextColor = propsGenerator.titleTextColor, titleTextWeight = propsGenerator.titleTextWeight, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, textWeight = propsGenerator.textWeight, arrowPosition = propsGenerator.arrowPosition, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
1068
|
+
var alignClass = propsGenerator.alignClass, centeringClass = propsGenerator.centeringClass, alignDirectionClass = propsGenerator.alignDirectionClass, alignmentClass = propsGenerator.alignmentClass, alignPosition = propsGenerator.alignPosition, fillClass = propsGenerator.fillClass, titleSize = propsGenerator.titleSize, titleTextColor = propsGenerator.titleTextColor, titleTextWeight = propsGenerator.titleTextWeight, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, textWeight = propsGenerator.textWeight, arrowPosition = propsGenerator.arrowPosition, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
1069
1069
|
// @ts-expect-error
|
|
1070
1070
|
var tooltipStyles = useStyles(props).styles;
|
|
1071
|
-
return (jsxs("div", { className: clsx(className, 'tooltip', isTooltipVisible ? 'tooltip_state_open' : 'tooltip_state_close', fillClass && "fill_".concat(fillClass), shapeClass && "tooltip_shape_".concat(shapeClass), alignPosition && "tooltip_align-position_".concat(alignPosition), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), elevationClass && "elevation_".concat(elevationClass),
|
|
1071
|
+
return (jsxs("div", { className: clsx(className, 'tooltip', isTooltipVisible ? 'tooltip_state_open' : 'tooltip_state_close', fillClass && "fill_".concat(fillClass), shapeClass && "tooltip_shape_".concat(shapeClass), alignPosition && "tooltip_align-position_".concat(alignPosition), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), elevationClass && "elevation_".concat(elevationClass), centeringClass && "centering_".concat(centeringClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass
|
|
1072
|
+
? "shape-strength_".concat(shapeStrengthClass)
|
|
1073
|
+
: shapeClass === 'rounded' && 'shape-strength_default', alignmentClass && "alignment_".concat(alignmentClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "tooltip_size_".concat(sizeClass), isSkeleton && 'tooltip_skeleton', widthClass && "width_".concat(widthClass)), ref: tooltipElementRef, style: tooltipStyles, onAnimationEnd: onAnimationEnd, children: [jsx("div", { className: clsx('tooltip__arrow', arrowPosition && "tooltip__arrow_position_".concat(arrowPosition), fillClass && "fill_".concat(fillClass)), children: "\u00A0" }), before, jsxs("div", { className: "tooltip__inner", children: [title && (jsx(Title, { className: "tooltip__title text", size: titleSize, textColor: titleTextColor, textWeight: titleTextWeight, children: title })), text && (jsx(Text, { className: "tooltip__text", size: textSize, textColor: textColor, textWeight: textWeight, children: text })), children] }), after] }));
|
|
1072
1074
|
});
|
|
1073
1075
|
|
|
1074
1076
|
export { Badge as B, Icon as I, Tooltip as T, tooltipAppearance as a, Title as b, titleConfig as c, titleAppearance as d, iconAppearance as e, badgeAppearance as f, badgeConfig as g, iconConfig as i, tooltipConfig as t };
|
|
@@ -7,7 +7,7 @@ var clsx = require('clsx');
|
|
|
7
7
|
var castArray = require('lodash/castArray');
|
|
8
8
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
9
9
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
10
|
-
var Tooltip = require('../../
|
|
10
|
+
var Tooltip = require('../../Tooltip_cjs_oS1iOamX.js');
|
|
11
11
|
var Divider = require('../../Divider_cjs_BmCJj3TN.js');
|
|
12
12
|
var Text = require('../../Text_cjs_C9fOm0nd.js');
|
|
13
13
|
var _default = require('@itcase/icons/default');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Avatar = require('../../
|
|
3
|
+
var Avatar = require('../../Avatar_cjs_DBoMi2WA.js');
|
|
4
4
|
require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
5
5
|
require('react/jsx-runtime');
|
|
6
6
|
require('react');
|
|
@@ -16,7 +16,7 @@ require('../context/UIContext.js');
|
|
|
16
16
|
require('../hooks/useMediaQueries/useMediaQueries.js');
|
|
17
17
|
require('react-responsive');
|
|
18
18
|
require('../utils/setViewportProperty.js');
|
|
19
|
-
require('../../
|
|
19
|
+
require('../../Tooltip_cjs_oS1iOamX.js');
|
|
20
20
|
require('../hooks/useStyles/useStyles.js');
|
|
21
21
|
require('lodash/maxBy');
|
|
22
22
|
require('../hooks/useStyles/styleAttributes.js');
|
|
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
8
|
-
var Avatar = require('../../
|
|
8
|
+
var Avatar = require('../../Avatar_cjs_DBoMi2WA.js');
|
|
9
9
|
var Group = require('../../Group_cjs_Cwt0gWk4.js');
|
|
10
10
|
var Text = require('../../Text_cjs_C9fOm0nd.js');
|
|
11
11
|
require('react');
|
|
@@ -21,7 +21,7 @@ require('react-responsive');
|
|
|
21
21
|
require('../utils/setViewportProperty.js');
|
|
22
22
|
require('lodash/maxBy');
|
|
23
23
|
require('../hooks/useStyles/styleAttributes.js');
|
|
24
|
-
require('../../
|
|
24
|
+
require('../../Tooltip_cjs_oS1iOamX.js');
|
|
25
25
|
require('react-inlinesvg');
|
|
26
26
|
require('../../Link_cjs_DbRGq2Yk.js');
|
|
27
27
|
require('../../Image_cjs_CCWqbNn4.js');
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib_es6 = require('../../../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
4
|
+
var am = require('@itcase/icons/am');
|
|
4
5
|
|
|
5
6
|
var breadcrumbsListMock = {
|
|
6
7
|
breadcrumbsList: [
|
|
@@ -9,37 +10,43 @@ var breadcrumbsListMock = {
|
|
|
9
10
|
key: 1,
|
|
10
11
|
text: 'Text 123',
|
|
11
12
|
href: '/',
|
|
12
|
-
icon:
|
|
13
|
+
icon: am.icon24.ChevronRightSmall,
|
|
13
14
|
},
|
|
14
15
|
{
|
|
15
16
|
id: '2',
|
|
16
17
|
key: 2,
|
|
17
18
|
text: 'Text 123',
|
|
18
19
|
href: '/',
|
|
19
|
-
icon:
|
|
20
|
+
icon: am.icon24.ChevronRightSmall,
|
|
20
21
|
},
|
|
21
22
|
{
|
|
22
23
|
id: '3',
|
|
23
24
|
key: 3,
|
|
24
25
|
text: 'Text 123',
|
|
25
26
|
href: '/',
|
|
26
|
-
icon:
|
|
27
|
+
icon: am.icon24.ChevronRightSmall,
|
|
27
28
|
},
|
|
28
29
|
{
|
|
29
30
|
id: '4',
|
|
30
31
|
key: 4,
|
|
31
32
|
text: 'Text 123',
|
|
32
33
|
href: '/',
|
|
33
|
-
icon:
|
|
34
|
+
icon: am.icon24.ChevronRightSmall,
|
|
34
35
|
},
|
|
35
36
|
{
|
|
36
37
|
id: '5',
|
|
37
38
|
key: 5,
|
|
38
39
|
text: 'Text 123',
|
|
39
40
|
href: '/',
|
|
40
|
-
icon:
|
|
41
|
+
icon: am.icon24.ChevronRightSmall,
|
|
41
42
|
},
|
|
42
43
|
],
|
|
43
44
|
};
|
|
45
|
+
var breadcrumbsListMockSize = {
|
|
46
|
+
xl: breadcrumbsListMock.breadcrumbsList.map(function (item) { return (tslib_es6.__assign(tslib_es6.__assign({}, item), { icon: am.icon24.ChevronRightSmall })); }),
|
|
47
|
+
l: breadcrumbsListMock.breadcrumbsList.map(function (item) { return (tslib_es6.__assign(tslib_es6.__assign({}, item), { icon: am.icon24.ChevronRightSmall })); }),
|
|
48
|
+
m: breadcrumbsListMock.breadcrumbsList.map(function (item) { return (tslib_es6.__assign({}, item)); }),
|
|
49
|
+
};
|
|
44
50
|
|
|
45
51
|
exports.breadcrumbsListMock = breadcrumbsListMock;
|
|
52
|
+
exports.breadcrumbsListMockSize = breadcrumbsListMockSize;
|