@itcase/ui 1.8.21 → 1.8.22
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_CiQ14ufF.js → Avatar_cjs_DSXs1Yrg.js} +2 -21
- package/dist/{Avatar_es_No9vSqji.js → Avatar_es_DByUaJL6.js} +2 -21
- package/dist/{Button_cjs_CnStmeGt.js → Button_cjs_CukkOE-v.js} +5 -4
- package/dist/{Button_es_BV1bepl1.js → Button_es_DXcCJuNX.js} +5 -4
- package/dist/{ChipsGroup_cjs_CL00pWKy.js → ChipsGroup_cjs_9wrMZrzL.js} +1 -1
- package/dist/{ChipsGroup_es_Ciln2otW.js → ChipsGroup_es_CjGZ-ulT.js} +1 -1
- package/dist/{DatePicker_cjs_DGgkpGbI.js → DatePicker_cjs_BriuTQqj.js} +3 -3
- package/dist/{DatePicker_es_BIOyGm22.js → DatePicker_es_DzY_fVii.js} +3 -3
- package/dist/{DropdownItem_cjs_DT-zspEr.js → DropdownItem_cjs_DY61IdLK.js} +1 -1
- package/dist/{DropdownItem_es_BJLFqVuH.js → DropdownItem_es_D8mY9vFZ.js} +1 -1
- package/dist/{Label_cjs_Cqcf6ffp.js → Label_cjs_CnwET26s.js} +11 -3
- package/dist/{Label_es_CeNdA70T.js → Label_es_Dc18d1gY.js} +11 -3
- package/dist/{Link_cjs_BlXrJ15R.js → Link_cjs_DbRGq2Yk.js} +9 -9
- package/dist/{Link_es_CyJn7NFb.js → Link_es_DxtZLeKY.js} +9 -9
- package/dist/{Tooltip_cjs_Cq5kuaIK.js → Tooltip_cjs_PkuRdzzy.js} +3 -3
- package/dist/{Tooltip_es_D0PSqI2c.js → Tooltip_es_BaGfb-qC.js} +3 -3
- package/dist/cjs/components/Accordion.js +2 -2
- package/dist/cjs/components/Avatar.js +3 -3
- package/dist/cjs/components/AvatarStack.js +5 -5
- package/dist/cjs/components/Badge.js +2 -2
- package/dist/cjs/components/Breadcrumbs.js +3 -3
- package/dist/cjs/components/Button.js +3 -3
- package/dist/cjs/components/Cell.js +15 -149
- package/dist/cjs/components/Chips.js +3 -3
- package/dist/cjs/components/Choice.js +2 -2
- package/dist/cjs/components/Code.js +2 -8
- package/dist/cjs/components/CookiesWarning.js +3 -3
- package/dist/cjs/components/DatePeriod.js +6 -6
- package/dist/cjs/components/DatePicker.js +5 -5
- package/dist/cjs/components/Dropdown.js +3 -3
- package/dist/cjs/components/Icon.js +2 -2
- package/dist/cjs/components/InputPassword.js +71 -129
- package/dist/cjs/components/Label.js +3 -3
- package/dist/cjs/components/Link.js +1 -1
- package/dist/cjs/components/List.js +1 -1
- package/dist/cjs/components/Logo.js +1 -1
- package/dist/cjs/components/MenuItem.js +29 -9
- package/dist/cjs/components/Modal.js +2 -2
- package/dist/cjs/components/Pagination.js +3 -3
- package/dist/cjs/components/Response/img.js +33 -0
- package/dist/cjs/components/Response.js +81 -213
- package/dist/cjs/components/Search.js +2 -2
- package/dist/cjs/components/Select.js +2 -2
- package/dist/cjs/components/Swiper.js +2 -2
- package/dist/cjs/components/Tab.js +2 -2
- package/dist/cjs/components/Tile.js +10 -172
- package/dist/cjs/components/Title.js +2 -2
- package/dist/cjs/components/Tooltip.js +2 -2
- package/dist/components/Accordion.js +2 -2
- package/dist/components/Avatar.js +3 -3
- package/dist/components/AvatarStack.js +5 -5
- package/dist/components/Badge.js +2 -2
- package/dist/components/Breadcrumbs.js +3 -3
- package/dist/components/Button.js +3 -3
- package/dist/components/Cell.js +15 -149
- package/dist/components/Chips.js +3 -3
- package/dist/components/Choice.js +2 -2
- package/dist/components/Code.js +2 -8
- package/dist/components/CookiesWarning.js +3 -3
- package/dist/components/DatePeriod.js +6 -6
- package/dist/components/DatePicker.js +5 -5
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/Icon.js +2 -2
- package/dist/components/InputPassword.js +71 -129
- package/dist/components/Label.js +3 -3
- package/dist/components/Link.js +1 -1
- package/dist/components/List.js +1 -1
- package/dist/components/Logo.js +1 -1
- package/dist/components/MenuItem.js +29 -9
- package/dist/components/Modal.js +2 -2
- package/dist/components/Pagination.js +3 -3
- package/dist/components/Response/img.js +31 -0
- package/dist/components/Response.js +81 -213
- package/dist/components/Search.js +2 -2
- package/dist/components/Select.js +2 -2
- package/dist/components/Swiper.js +2 -2
- package/dist/components/Tab.js +2 -2
- package/dist/components/Tile.js +10 -172
- package/dist/components/Title.js +2 -2
- package/dist/components/Tooltip.js +2 -2
- package/dist/css/components/AvatarStack/AvatarStack.css +2 -15
- package/dist/css/components/Code/Code.css +3 -6
- package/dist/css/components/Label/Label.css +4 -4
- package/dist/css/components/MenuItem/MenuItem.css +19 -43
- package/dist/css/components/Response/Response.css +6 -3
- package/dist/css/components/Tab/Tab.css +14 -31
- package/dist/css/components/Tile/Tile.css +7 -5
- package/dist/css/styles/svg-color/svg_fill.css +5 -5
- package/dist/stories/Plsyground.mdx +0 -1
- package/dist/stories/index.stories.js +5 -8
- package/dist/types/components/Avatar/appearance/avatarAccent.d.ts +0 -4
- package/dist/types/components/Avatar/appearance/avatarDanger.d.ts +0 -1
- package/dist/types/components/Avatar/appearance/avatarInfo.d.ts +0 -4
- package/dist/types/components/Avatar/appearance/avatarPrimary.d.ts +0 -1
- package/dist/types/components/Avatar/appearance/avatarSecondary.d.ts +0 -1
- package/dist/types/components/Avatar/appearance/avatarSuccess.d.ts +1 -3
- package/dist/types/components/Avatar/appearance/avatarSurface.d.ts +0 -6
- package/dist/types/components/Button/appearance/buttonAccent.d.ts +1 -0
- package/dist/types/components/Cell/appearance/cellSize.d.ts +8 -44
- package/dist/types/components/Code/appearance/codeSize.d.ts +2 -8
- package/dist/types/components/{Response/appearance/responseDisabled.d.ts → InputPassword/appearance/inputPasswordDefault.d.ts} +9 -5
- package/dist/types/components/InputPassword/appearance/inputPasswordError.d.ts +15 -6
- package/dist/types/components/InputPassword/appearance/inputPasswordSize.d.ts +7 -7
- package/dist/types/components/InputPassword/appearance/inputPasswordSuccess.d.ts +15 -6
- package/dist/types/components/Label/appearance/labelAccent.d.ts +7 -0
- package/dist/types/components/Label/appearance/labelSize.d.ts +1 -0
- package/dist/types/components/Link/Link.interface.d.ts +1 -1
- package/dist/types/components/MenuItem/appearance/menuItemSize.d.ts +1 -0
- package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +4 -2
- package/dist/types/components/Response/appearance/responceConfirm.d.ts +13 -0
- package/dist/types/components/Response/appearance/responceFail.d.ts +13 -0
- package/dist/types/components/Response/appearance/responceNothingFound.d.ts +13 -0
- package/dist/types/components/Response/appearance/responceRefresh.d.ts +13 -0
- package/dist/types/components/Response/appearance/responseError.d.ts +6 -4
- package/dist/types/components/Response/appearance/responseSuccess.d.ts +6 -4
- package/dist/types/components/Response/appearance/responseUnableLoadData.d.ts +13 -0
- package/dist/types/components/Response/appearance/responseWarning.d.ts +6 -4
- package/dist/types/components/Response/img/index.d.ts +12 -0
- package/dist/types/components/Tile/appearance/tileSize.d.ts +0 -8
- package/dist/types/components/Tile/appearance/tileSurface.d.ts +0 -1
- package/package.json +1 -1
- package/dist/cjs/components/InputMask.js +0 -65
- package/dist/cjs/components/Panel.js +0 -44
- package/dist/components/InputMask.js +0 -62
- package/dist/components/Panel.js +0 -41
- package/dist/css/components/InputMask/InputMask.css +0 -77
- package/dist/css/components/Panel/Panel.css +0 -107
- package/dist/stories/Accordion.mdx +0 -11
- package/dist/stories/AccordionItem.mdx +0 -15
- package/dist/stories/Breadcrumbs.mdx +0 -15
- package/dist/stories/BreadcrumbsItem.mdx +0 -17
- package/dist/stories/Dot.mdx +0 -19
- package/dist/stories/Drawer.mdx +0 -11
- package/dist/stories/Dropdown.mdx +0 -12
- package/dist/stories/DropdownItem.mdx +0 -19
- package/dist/stories/Image.mdx +0 -15
- package/dist/stories/Input.mdx +0 -31
- package/dist/stories/InputPassword.mdx +0 -15
- package/dist/stories/Label.mdx +0 -11
- package/dist/stories/ListItem.mdx +0 -11
- package/dist/stories/Logo.mdx +0 -24
- package/dist/stories/MenuItem.mdx +0 -15
- package/dist/stories/Modal.mdx +0 -15
- package/dist/stories/Notification.mdx +0 -23
- package/dist/stories/Radio.mdx +0 -28
- package/dist/stories/Response.mdx +0 -11
- package/dist/stories/SearchInput.mdx +0 -19
- package/dist/stories/Switch.mdx +0 -23
- package/dist/stories/Tab.mdx +0 -27
- package/dist/stories/Text.mdx +0 -35
- package/dist/types/components/Cell/appearance/cellAccent.d.ts +0 -21
- package/dist/types/components/Cell/appearance/cellDanger.d.ts +0 -7
- package/dist/types/components/Cell/appearance/cellError.d.ts +0 -11
- package/dist/types/components/Cell/appearance/cellInfo.d.ts +0 -21
- package/dist/types/components/Cell/appearance/cellPrimary.d.ts +0 -8
- package/dist/types/components/Cell/appearance/cellSecondary.d.ts +0 -8
- package/dist/types/components/Cell/appearance/cellSuccess.d.ts +0 -11
- package/dist/types/components/Cell/appearance/cellWarning.d.ts +0 -11
- package/dist/types/components/InputMask/InputMask.d.ts +0 -5
- package/dist/types/components/InputMask/InputMask.interface.d.ts +0 -54
- package/dist/types/components/InputMask/index.d.ts +0 -1
- package/dist/types/components/InputPassword/appearance/inputPasswordAccent.d.ts +0 -20
- package/dist/types/components/InputPassword/appearance/inputPasswordDanger.d.ts +0 -7
- package/dist/types/components/InputPassword/appearance/inputPasswordInfo.d.ts +0 -21
- package/dist/types/components/InputPassword/appearance/inputPasswordPrimary.d.ts +0 -8
- package/dist/types/components/InputPassword/appearance/inputPasswordSecondary.d.ts +0 -8
- package/dist/types/components/InputPassword/appearance/inputPasswordSurface.d.ts +0 -25
- package/dist/types/components/InputPassword/appearance/inputPasswordWarning.d.ts +0 -11
- package/dist/types/components/Panel/Panel.d.ts +0 -5
- package/dist/types/components/Panel/Panel.interface.d.ts +0 -58
- package/dist/types/components/Panel/index.d.ts +0 -1
- package/dist/types/components/Response/appearance/responseAccent.d.ts +0 -20
- package/dist/types/components/Response/appearance/responseDanger.d.ts +0 -7
- package/dist/types/components/Response/appearance/responseInfo.d.ts +0 -21
- package/dist/types/components/Response/appearance/responsePrimary.d.ts +0 -8
- package/dist/types/components/Response/appearance/responseRequire.d.ts +0 -20
- package/dist/types/components/Response/appearance/responseSecondary.d.ts +0 -8
- package/dist/types/components/Response/appearance/responseSize.d.ts +0 -59
- package/dist/types/components/Response/appearance/responseStyle.d.ts +0 -16
- package/dist/types/components/Response/appearance/responseSurface.d.ts +0 -25
- package/dist/types/components/Tile/appearance/tileAccent.d.ts +0 -20
- package/dist/types/components/Tile/appearance/tileDanger.d.ts +0 -7
- package/dist/types/components/Tile/appearance/tileDisabled.d.ts +0 -20
- package/dist/types/components/Tile/appearance/tileError.d.ts +0 -11
- package/dist/types/components/Tile/appearance/tileInfo.d.ts +0 -21
- package/dist/types/components/Tile/appearance/tilePrimary.d.ts +0 -8
- package/dist/types/components/Tile/appearance/tileRequire.d.ts +0 -20
- package/dist/types/components/Tile/appearance/tileSecondary.d.ts +0 -8
- package/dist/types/components/Tile/appearance/tileStyle.d.ts +0 -16
- package/dist/types/components/Tile/appearance/tileSuccess.d.ts +0 -11
- package/dist/types/components/Tile/appearance/tileWarning.d.ts +0 -11
|
@@ -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 Tooltip = require('../../
|
|
8
|
+
var Tooltip = require('../../Tooltip_cjs_PkuRdzzy.js');
|
|
9
9
|
var Text = require('../../Text_cjs_DPhKj3wf.js');
|
|
10
10
|
require('react');
|
|
11
11
|
require('lodash/camelCase');
|
|
@@ -21,132 +21,9 @@ require('../utils/setViewportProperty.js');
|
|
|
21
21
|
require('lodash/maxBy');
|
|
22
22
|
require('../hooks/useStyles/styleAttributes.js');
|
|
23
23
|
require('react-inlinesvg');
|
|
24
|
-
require('../../
|
|
25
|
-
|
|
26
|
-
var tileAppearanceAccent = {
|
|
27
|
-
accent: {
|
|
28
|
-
fill: 'accentPrimary',
|
|
29
|
-
fillHover: 'accentPrimaryHover',
|
|
30
|
-
},
|
|
31
|
-
accentPrimary: {
|
|
32
|
-
fill: 'accentPrimary',
|
|
33
|
-
fillHover: 'accentPrimaryHover',
|
|
34
|
-
borderColor: 'accentBorderPrimary',
|
|
35
|
-
},
|
|
36
|
-
accentSecondary: {
|
|
37
|
-
fill: 'accentPrimary',
|
|
38
|
-
fillHover: 'accentPrimaryHover',
|
|
39
|
-
labelTextColor: 'accentTextSecondary',
|
|
40
|
-
labelTextColorHover: 'accentTextSecondary',
|
|
41
|
-
borderColor: 'accentBorderPrimary',
|
|
42
|
-
loaderItemFill: 'accentItemPrimary',
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
var tileAppearanceDanger = {
|
|
47
|
-
danger: {
|
|
48
|
-
fill: 'dangerPrimary',
|
|
49
|
-
fillHover: 'dangerPrimaryHover',
|
|
50
|
-
},
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
var tileAppearanceDisabled = {
|
|
54
|
-
disabledPrimary: {
|
|
55
|
-
fill: 'surfaceFillDisabled',
|
|
56
|
-
borderColor: 'errorBorderQuaternary',
|
|
57
|
-
borderHover: 'errorBorderQuaternary',
|
|
58
|
-
textColor: 'surfaceTextQuaternary',
|
|
59
|
-
iconBeforeFill: 'errorItemQuaternary',
|
|
60
|
-
iconClearFill: 'errorItemPrimary',
|
|
61
|
-
placeholderTextColor: 'surfaceTextQuaternary',
|
|
62
|
-
},
|
|
63
|
-
disabledSecondary: {
|
|
64
|
-
fill: 'surfaceSecondary',
|
|
65
|
-
borderColor: 'surfaceBorderTertiary',
|
|
66
|
-
borderHover: 'surfaceBorderQuaternary',
|
|
67
|
-
iconBeforeFill: 'surfaceItemQuaternary',
|
|
68
|
-
iconClearFill: 'surfaceItemPrimary',
|
|
69
|
-
placeholderTextColor: 'surfaceTextSecondary',
|
|
70
|
-
},
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
var tileAppearanceError = {
|
|
74
|
-
error: {
|
|
75
|
-
fill: 'errorPrimary',
|
|
76
|
-
fillHover: 'errorPrimaryHover',
|
|
77
|
-
labelTextColor: 'errorTextPrimary',
|
|
78
|
-
labelTextColorHover: 'errorTextPrimary',
|
|
79
|
-
loaderFill: 'errorPrimary',
|
|
80
|
-
loaderItemFill: 'errorItemPrimary',
|
|
81
|
-
},
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
var tileAppearanceInfo = {
|
|
85
|
-
info: {
|
|
86
|
-
fill: 'accentPrimary',
|
|
87
|
-
fillHover: 'accentPrimaryHover',
|
|
88
|
-
labelTextColor: 'accentTextPrimary',
|
|
89
|
-
labelTextColorHover: 'accentTextPrimary',
|
|
90
|
-
borderColor: 'accentBorderPrimary',
|
|
91
|
-
loaderFill: 'accentPrimary',
|
|
92
|
-
loaderItemFill: 'accentItemPrimary',
|
|
93
|
-
},
|
|
94
|
-
infoSecondary: {
|
|
95
|
-
fill: 'accentPrimary',
|
|
96
|
-
fillHover: 'accentPrimaryHover',
|
|
97
|
-
labelTextColor: 'accentTextSecondary',
|
|
98
|
-
labelTextColorHover: 'accentTextSecondary',
|
|
99
|
-
borderColor: 'accentBorderPrimary',
|
|
100
|
-
loaderFill: 'accentPrimary',
|
|
101
|
-
loaderItemFill: 'accentItemPrimary',
|
|
102
|
-
},
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
var tileAppearancePrimary = {
|
|
106
|
-
primary: {
|
|
107
|
-
fill: 'primaryPrimary',
|
|
108
|
-
fillHover: 'primaryPrimaryHover',
|
|
109
|
-
labelTextColor: 'primaryTextPrimary',
|
|
110
|
-
},
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
var tileAppearanceRequire = {
|
|
114
|
-
requirePrimary: {
|
|
115
|
-
fill: 'warningTertiary',
|
|
116
|
-
borderColor: 'warningBorderQuaternary',
|
|
117
|
-
borderHover: 'warningBorderQuaternary',
|
|
118
|
-
textColor: 'surfaceTextPrimary',
|
|
119
|
-
iconBeforeFill: 'warningItemQuaternary',
|
|
120
|
-
iconClearFill: 'warningItemPrimary',
|
|
121
|
-
placeholderTextColor: 'surfaceTextQuaternary',
|
|
122
|
-
},
|
|
123
|
-
requireSecondary: {
|
|
124
|
-
fill: 'surfaceSecondary',
|
|
125
|
-
borderColor: 'surfaceBorderTertiary',
|
|
126
|
-
borderHover: 'surfaceBorderQuaternary',
|
|
127
|
-
iconBeforeFill: 'surfaceItemQuaternary',
|
|
128
|
-
iconClearFill: 'surfaceItemPrimary',
|
|
129
|
-
placeholderTextColor: 'surfaceTextSecondary',
|
|
130
|
-
},
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
var tileAppearanceSecondary = {
|
|
134
|
-
secondary: {
|
|
135
|
-
fill: 'secondaryPrimary',
|
|
136
|
-
fillHover: 'secondaryPrimaryHover',
|
|
137
|
-
labelTextColor: 'secondaryTextPrimary',
|
|
138
|
-
},
|
|
139
|
-
};
|
|
24
|
+
require('../../Link_cjs_DbRGq2Yk.js');
|
|
140
25
|
|
|
141
26
|
var tileAppearanceSize = {
|
|
142
|
-
sizeXXL: {
|
|
143
|
-
size: 'xxl',
|
|
144
|
-
labelTextSize: 'xxl',
|
|
145
|
-
iconAfterFillSize: '24',
|
|
146
|
-
iconAfterSize: '24',
|
|
147
|
-
iconBeforeFillSize: '24',
|
|
148
|
-
iconBeforeSize: '24',
|
|
149
|
-
},
|
|
150
27
|
sizeXL: {
|
|
151
28
|
size: 'xl',
|
|
152
29
|
labelTextSize: 'l',
|
|
@@ -190,37 +67,10 @@ var tileAppearanceSize = {
|
|
|
190
67
|
sizeXXS: {
|
|
191
68
|
size: 'xxs',
|
|
192
69
|
labelTextSize: 'xs',
|
|
193
|
-
iconAfterFillSize: '
|
|
194
|
-
iconAfterSize: '
|
|
195
|
-
iconBeforeFillSize: '
|
|
196
|
-
iconBeforeSize: '
|
|
197
|
-
},
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
var tileAppearanceStyle = {
|
|
201
|
-
full: {
|
|
202
|
-
borderColor: '0',
|
|
203
|
-
},
|
|
204
|
-
ghost: {
|
|
205
|
-
fill: 'none',
|
|
206
|
-
borderColor: '0',
|
|
207
|
-
},
|
|
208
|
-
outlined: {
|
|
209
|
-
fill: 'none',
|
|
210
|
-
},
|
|
211
|
-
solid: {
|
|
212
|
-
borderColor: '0',
|
|
213
|
-
},
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
var tileAppearanceSuccess = {
|
|
217
|
-
success: {
|
|
218
|
-
fill: 'successPrimary',
|
|
219
|
-
fillHover: 'successPrimaryHover',
|
|
220
|
-
labelTextColor: 'successTextSecondary',
|
|
221
|
-
labelTextColorHover: 'successTextSecondary',
|
|
222
|
-
loaderFill: 'successPrimary',
|
|
223
|
-
loaderItemFill: 'successItemPrimary',
|
|
70
|
+
iconAfterFillSize: '16',
|
|
71
|
+
iconAfterSize: '16',
|
|
72
|
+
iconBeforeFillSize: '16',
|
|
73
|
+
iconBeforeSize: '16',
|
|
224
74
|
},
|
|
225
75
|
};
|
|
226
76
|
|
|
@@ -239,7 +89,6 @@ var tileAppearanceSurface = {
|
|
|
239
89
|
fill: 'surfaceSecondary',
|
|
240
90
|
fillHover: 'surfaceSecondaryHover',
|
|
241
91
|
labelTextColor: 'surfaceTextPrimary',
|
|
242
|
-
loaderFill: 'surfaceSecondary',
|
|
243
92
|
loaderItemFill: 'surfaceItemPrimary',
|
|
244
93
|
},
|
|
245
94
|
surfaceTertiary: {
|
|
@@ -249,18 +98,7 @@ var tileAppearanceSurface = {
|
|
|
249
98
|
},
|
|
250
99
|
};
|
|
251
100
|
|
|
252
|
-
var
|
|
253
|
-
warning: {
|
|
254
|
-
fill: 'warningPrimary',
|
|
255
|
-
fillHover: 'warningPrimaryHover',
|
|
256
|
-
labelTextColor: 'warningTextSecondary',
|
|
257
|
-
labelTextColorHover: 'warningTextSecondary',
|
|
258
|
-
loaderFill: 'warningPrimary',
|
|
259
|
-
loaderItemFill: 'warningItemPrimary',
|
|
260
|
-
},
|
|
261
|
-
};
|
|
262
|
-
|
|
263
|
-
var tileAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, tileAppearanceSize), tileAppearanceDisabled), tileAppearanceRequire), tileAppearanceStyle), tileAppearanceAccent), tileAppearanceDanger), tileAppearanceError), tileAppearanceInfo), tileAppearancePrimary), tileAppearanceSecondary), tileAppearanceSuccess), tileAppearanceSurface), tileAppearanceWarning);
|
|
101
|
+
var tileAppearance = tslib_es6.__assign(tslib_es6.__assign({}, tileAppearanceSize), tileAppearanceSurface);
|
|
264
102
|
|
|
265
103
|
var tileConfig = {
|
|
266
104
|
appearance: tileAppearance,
|
|
@@ -269,16 +107,16 @@ var tileConfig = {
|
|
|
269
107
|
},
|
|
270
108
|
};
|
|
271
109
|
function Tile(props) {
|
|
272
|
-
var className = props.className, type = props.type, appearance = props.appearance, direction = props.direction,
|
|
110
|
+
var className = props.className, type = props.type, appearance = props.appearance, direction = props.direction, title = props.title, text = props.text, badge = props.badge, badgeAppearance = props.badgeAppearance, reverse = props.reverse, before = props.before, after = props.after, onClick = props.onClick, children = props.children;
|
|
273
111
|
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
274
112
|
var _a;
|
|
275
113
|
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = tileConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
276
114
|
}, {});
|
|
277
115
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
278
|
-
var alignClass = propsGenerator.alignClass, _a = propsGenerator.alignDirectionClass, alignDirectionClass = _a === void 0 ? 'vertical' : _a, fillClass = propsGenerator.fillClass, titleTextAlign = propsGenerator.titleTextAlign, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, titleTextWeight = propsGenerator.titleTextWeight, titleTextWrap = propsGenerator.titleTextWrap, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, textWrap = propsGenerator.textWrap, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, dataTestId = propsGenerator.dataTestId, dataTour = propsGenerator.dataTour, shapeClass = propsGenerator.shapeClass;
|
|
116
|
+
var alignClass = propsGenerator.alignClass, _a = propsGenerator.alignDirectionClass, alignDirectionClass = _a === void 0 ? 'vertical' : _a, fillClass = propsGenerator.fillClass, titleTextAlign = propsGenerator.titleTextAlign, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, titleTextWeight = propsGenerator.titleTextWeight, titleTextWrap = propsGenerator.titleTextWrap, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, textWrap = propsGenerator.textWrap, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, dataTestId = propsGenerator.dataTestId, dataTour = propsGenerator.dataTour, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass;
|
|
279
117
|
// @ts-expect-error
|
|
280
118
|
var tileStyles = useStyles.useStyles(props).styles;
|
|
281
|
-
return (jsxRuntime.jsx("div", { className: clsx('tile', className, fillClass && "fill_".concat(fillClass), shapeClass && "tile_shape_".concat(shapeClass), alignClass && "align_".concat(alignClass), alignDirectionClass && "align_".concat(alignDirectionClass), direction && "direction_".concat(direction), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), reverse && 'tile_reverse',
|
|
119
|
+
return (jsxRuntime.jsx("div", { className: clsx('tile', className, fillClass && "fill_".concat(fillClass), shapeClass && "tile_shape_".concat(shapeClass), alignClass && "align_".concat(alignClass), alignDirectionClass && "align_".concat(alignDirectionClass), direction && "direction_".concat(direction), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), reverse && 'tile_reverse', sizeClass && "tile_size_".concat(sizeClass), type && "tile_type_".concat(type), badge && "tile_state_badge"), "data-testid": dataTestId, "data-tour": dataTour, style: tileStyles, onClick: onClick, children: jsxRuntime.jsxs("div", { className: clsx('tile__wrapper', alignClass, alignDirectionClass), children: [before, title && (jsxRuntime.jsx(Tooltip.Title, { className: "tile__title", size: titleTextSize, textAlign: titleTextAlign, textColor: titleTextColor, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), text && (jsxRuntime.jsx(Text.Text, { className: "tile__text", size: textSize, textColor: textColor, textWrap: textWrap, children: text })), badge && (jsxRuntime.jsx(Tooltip.Badge, { className: "tile__badge", appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, value: badge })), children, after] }) }));
|
|
282
120
|
}
|
|
283
121
|
|
|
284
122
|
exports.Tile = Tile;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Tooltip = require('../../
|
|
3
|
+
var Tooltip = require('../../Tooltip_cjs_PkuRdzzy.js');
|
|
4
4
|
require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
5
5
|
require('react/jsx-runtime');
|
|
6
6
|
require('react');
|
|
@@ -21,7 +21,7 @@ require('lodash/maxBy');
|
|
|
21
21
|
require('../hooks/useStyles/styleAttributes.js');
|
|
22
22
|
require('../../Text_cjs_DPhKj3wf.js');
|
|
23
23
|
require('react-inlinesvg');
|
|
24
|
-
require('../../
|
|
24
|
+
require('../../Link_cjs_DbRGq2Yk.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Tooltip = require('../../
|
|
3
|
+
var Tooltip = require('../../Tooltip_cjs_PkuRdzzy.js');
|
|
4
4
|
require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
5
5
|
require('react/jsx-runtime');
|
|
6
6
|
require('react');
|
|
@@ -21,7 +21,7 @@ require('lodash/maxBy');
|
|
|
21
21
|
require('../hooks/useStyles/styleAttributes.js');
|
|
22
22
|
require('../../Text_cjs_DPhKj3wf.js');
|
|
23
23
|
require('react-inlinesvg');
|
|
24
|
-
require('../../
|
|
24
|
+
require('../../Link_cjs_DbRGq2Yk.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
@@ -7,7 +7,7 @@ import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDev
|
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
8
|
import { icon16 } from '@itcase/icons/default';
|
|
9
9
|
import { D as Divider } from '../Divider_es_BdU9qjKa.js';
|
|
10
|
-
import { I as Icon } from '../
|
|
10
|
+
import { I as Icon } from '../Tooltip_es_BaGfb-qC.js';
|
|
11
11
|
import { T as Text } from '../Text_es_BRb3qqKM.js';
|
|
12
12
|
import 'lodash/camelCase';
|
|
13
13
|
import 'lodash/upperFirst';
|
|
@@ -21,7 +21,7 @@ import '../utils/setViewportProperty.js';
|
|
|
21
21
|
import 'lodash/maxBy';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
23
|
import 'react-inlinesvg';
|
|
24
|
-
import '../
|
|
24
|
+
import '../Link_es_DxtZLeKY.js';
|
|
25
25
|
|
|
26
26
|
var accordionAppearanceSize = {
|
|
27
27
|
sizeXXL: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Avatar, b as avatarAppearance, a as avatarConfig } from '../
|
|
1
|
+
export { A as Avatar, b as avatarAppearance, a as avatarConfig } from '../Avatar_es_DByUaJL6.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -14,11 +14,11 @@ import '../context/UIContext.js';
|
|
|
14
14
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
15
15
|
import 'react-responsive';
|
|
16
16
|
import '../utils/setViewportProperty.js';
|
|
17
|
-
import '../
|
|
17
|
+
import '../Tooltip_es_BaGfb-qC.js';
|
|
18
18
|
import '../hooks/useStyles/useStyles.js';
|
|
19
19
|
import 'lodash/maxBy';
|
|
20
20
|
import '../hooks/useStyles/styleAttributes.js';
|
|
21
21
|
import '../Text_es_BRb3qqKM.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
|
-
import '../
|
|
23
|
+
import '../Link_es_DxtZLeKY.js';
|
|
24
24
|
import '../Image_es_DZUVp0FS.js';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
4
|
-
import { A as Avatar } from '../
|
|
4
|
+
import { A as Avatar } from '../Avatar_es_DByUaJL6.js';
|
|
5
|
+
import { G as Group } from '../Group_es_CYW2Hquh.js';
|
|
5
6
|
import { T as Text } from '../Text_es_BRb3qqKM.js';
|
|
6
7
|
import 'react';
|
|
7
8
|
import 'lodash/camelCase';
|
|
@@ -18,16 +19,15 @@ import '../utils/setViewportProperty.js';
|
|
|
18
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
19
20
|
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
20
21
|
import 'lodash/castArray';
|
|
21
|
-
import '../
|
|
22
|
+
import '../Tooltip_es_BaGfb-qC.js';
|
|
22
23
|
import 'react-inlinesvg';
|
|
23
|
-
import '../
|
|
24
|
+
import '../Link_es_DxtZLeKY.js';
|
|
24
25
|
import '../Image_es_DZUVp0FS.js';
|
|
25
26
|
|
|
26
27
|
function AvatarStack(props) {
|
|
27
28
|
var className = props.className, _a = props.direction, direction = _a === void 0 ? 'horizontal' : _a; props.textSize; var avatarSize = props.avatarSize, avatarsList = props.avatarsList, _b = props.showCountUsers, showCountUsers = _b === void 0 ? 3 : _b;
|
|
28
|
-
// @ts-expect-error
|
|
29
29
|
var avatarStackStyles = useStyles(props).styles;
|
|
30
|
-
return (avatarsList.length && (jsxs("div", { className: clsx(className, 'avatar-stack', direction && "group_direction_".concat(direction)), style: avatarStackStyles, children: [avatarsList.slice(0, showCountUsers).map(function (item) { return (jsx(Avatar, { appearance: "size".concat(avatarSize), className: "avatar-stack__item", src: item.
|
|
30
|
+
return (avatarsList.length && (jsxs("div", { className: clsx(className, 'avatar-stack', direction && "group_direction_".concat(direction)), style: avatarStackStyles, children: [avatarsList.slice(0, showCountUsers).map(function (item) { return (jsx(Avatar, { appearance: "size".concat(avatarSize, " surfaceSecondary"), className: "avatar-stack__item", size: avatarSize, src: item.src, textSize: "l", firstName: item.firstName, secondName: item.lastName, shape: "circular" }, item.id)); }), avatarsList.length > showCountUsers && (jsx(Group, { width: avatarSize, height: avatarSize, fill: "surfaceSecondary", className: "avatar-stack__item avatar-stack__item-text", children: jsxs(Text, { size: "xs", textColor: "surfaceTextPrimary", textWeight: "600", children: ["+", avatarsList.length - showCountUsers] }) }))] })));
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
export { AvatarStack };
|
package/dist/components/Badge.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as Badge, f as badgeAppearance, g as badgeConfig } from '../
|
|
1
|
+
export { B as Badge, f as badgeAppearance, g as badgeConfig } from '../Tooltip_es_BaGfb-qC.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -19,4 +19,4 @@ import 'lodash/maxBy';
|
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
20
|
import '../Text_es_BRb3qqKM.js';
|
|
21
21
|
import 'react-inlinesvg';
|
|
22
|
-
import '../
|
|
22
|
+
import '../Link_es_DxtZLeKY.js';
|
|
@@ -4,8 +4,8 @@ import { useMemo } 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 } from '../
|
|
8
|
-
import { a as LinkWrapper } from '../
|
|
7
|
+
import { I as Icon } from '../Tooltip_es_BaGfb-qC.js';
|
|
8
|
+
import { a as LinkWrapper } from '../Link_es_DxtZLeKY.js';
|
|
9
9
|
import { T as Text } from '../Text_es_BRb3qqKM.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
11
11
|
import 'lodash/castArray';
|
|
@@ -212,7 +212,7 @@ function BreadcrumbsItem(props) {
|
|
|
212
212
|
var fillClass = propsGenerator.fillClass, text = propsGenerator.text, textColor = propsGenerator.textColor, textColorHover = propsGenerator.textColorHover, textSize = propsGenerator.textSize, cursor = propsGenerator.cursor, iconAfter = propsGenerator.iconAfter, iconAfterBgFill = propsGenerator.iconAfterBgFill, iconAfterFill = propsGenerator.iconAfterFill, iconAfterSize = propsGenerator.iconAfterSize, shapeClass = propsGenerator.shapeClass, underlineClass = propsGenerator.underlineClass;
|
|
213
213
|
// @ts-expect-error
|
|
214
214
|
var itemStyles = useStyles(props).styles;
|
|
215
|
-
return (jsxs(LinkWrapper, { className: clsx(className, 'breadcrumbs__item', fillClass && "fill_".concat(fillClass), shapeClass && "breadcrumbs__item_shape_".concat(shapeClass), underlineClass && "text-decoration_".concat(underlineClass), onClick && (cursor || 'cursor_type_pointer')),
|
|
215
|
+
return (jsxs(LinkWrapper, { className: clsx(className, 'breadcrumbs__item', fillClass && "fill_".concat(fillClass), shapeClass && "breadcrumbs__item_shape_".concat(shapeClass), underlineClass && "text-decoration_".concat(underlineClass), onClick && (cursor || 'cursor_type_pointer')), href: href, LinkComponent: "div", style: itemStyles, onClick: onClick, children: [jsx(Text, { className: "breadcrumbs__item-text", size: textSize, textColor: textColor, textColorHover: textColorHover, children: text || children }), iconAfter && (jsx(Icon, { className: "breadcrumbs__item-icon", size: iconAfterSize, fill: iconAfterFill, bgFill: iconAfterBgFill, SvgImage: iconAfter }))] }));
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
var breadcrumbsConfig = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { B as Button, a as buttonAppearance, b as buttonConfig } from '../
|
|
1
|
+
export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button_es_DXcCJuNX.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'clsx';
|
|
6
|
-
import '../
|
|
6
|
+
import '../Tooltip_es_BaGfb-qC.js';
|
|
7
7
|
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
|
@@ -20,5 +20,5 @@ import 'lodash/maxBy';
|
|
|
20
20
|
import '../hooks/useStyles/styleAttributes.js';
|
|
21
21
|
import '../Text_es_BRb3qqKM.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
|
-
import '../
|
|
23
|
+
import '../Link_es_DxtZLeKY.js';
|
|
24
24
|
import '../Loader_es_DEYowVdU.js';
|
package/dist/components/Cell.js
CHANGED
|
@@ -3,8 +3,8 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { I as Icon } from '../
|
|
7
|
-
import { L as Label } from '../
|
|
6
|
+
import { I as Icon } from '../Tooltip_es_BaGfb-qC.js';
|
|
7
|
+
import { L as Label } from '../Label_es_Dc18d1gY.js';
|
|
8
8
|
import { T as Text } from '../Text_es_BRb3qqKM.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import 'lodash/camelCase';
|
|
@@ -20,140 +20,28 @@ import '../utils/setViewportProperty.js';
|
|
|
20
20
|
import 'lodash/maxBy';
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
|
-
import '../
|
|
24
|
-
|
|
25
|
-
var cellAppearanceAccent = {
|
|
26
|
-
accent: {
|
|
27
|
-
fill: 'accentPrimary',
|
|
28
|
-
fillHover: 'accentPrimaryHover',
|
|
29
|
-
},
|
|
30
|
-
accentPrimary: {
|
|
31
|
-
fill: 'accentPrimary',
|
|
32
|
-
fillHover: 'accentPrimaryHover',
|
|
33
|
-
borderColor: 'accentBorderPrimary',
|
|
34
|
-
},
|
|
35
|
-
accentSecondary: {
|
|
36
|
-
fill: 'accentPrimary',
|
|
37
|
-
fillHover: 'accentPrimaryHover',
|
|
38
|
-
labelTextColor: 'accentTextSecondary',
|
|
39
|
-
labelTextColorHover: 'accentTextSecondary',
|
|
40
|
-
borderColor: 'accentBorderPrimary',
|
|
41
|
-
loaderFill: 'accentPrimary',
|
|
42
|
-
loaderItemFill: 'accentItemPrimary',
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
var cellAppearanceDanger = {
|
|
47
|
-
danger: {
|
|
48
|
-
fill: 'dangerPrimary',
|
|
49
|
-
fillHover: 'dangerPrimaryHover',
|
|
50
|
-
},
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
var cellAppearanceError = {
|
|
54
|
-
error: {
|
|
55
|
-
fill: 'errorPrimary',
|
|
56
|
-
fillHover: 'errorPrimaryHover',
|
|
57
|
-
labelTextColor: 'errorTextPrimary',
|
|
58
|
-
labelTextColorHover: 'errorTextPrimary',
|
|
59
|
-
loaderFill: 'errorPrimary',
|
|
60
|
-
loaderItemFill: 'errorItemPrimary',
|
|
61
|
-
},
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
var cellAppearanceInfo = {
|
|
65
|
-
info: {
|
|
66
|
-
fill: 'accentPrimary',
|
|
67
|
-
fillHover: 'accentPrimaryHover',
|
|
68
|
-
labelTextColor: 'accentTextPrimary',
|
|
69
|
-
labelTextColorHover: 'accentTextPrimary',
|
|
70
|
-
borderColor: 'accentBorderPrimary',
|
|
71
|
-
loaderFill: 'accentPrimary',
|
|
72
|
-
loaderItemFill: 'accentItemPrimary',
|
|
73
|
-
},
|
|
74
|
-
infoSecondary: {
|
|
75
|
-
fill: 'accentPrimary',
|
|
76
|
-
fillHover: 'accentPrimaryHover',
|
|
77
|
-
labelTextColor: 'accentTextSecondary',
|
|
78
|
-
labelTextColorHover: 'accentTextSecondary',
|
|
79
|
-
borderColor: 'accentBorderPrimary',
|
|
80
|
-
loaderFill: 'accentPrimary',
|
|
81
|
-
loaderItemFill: 'accentItemPrimary',
|
|
82
|
-
},
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
var cellAppearancePrimary = {
|
|
86
|
-
primary: {
|
|
87
|
-
fill: 'primaryPrimary',
|
|
88
|
-
fillHover: 'primaryPrimaryHover',
|
|
89
|
-
labelTextColor: 'primaryTextPrimary',
|
|
90
|
-
},
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
var cellAppearanceSecondary = {
|
|
94
|
-
secondary: {
|
|
95
|
-
fill: 'secondaryPrimary',
|
|
96
|
-
fillHover: 'secondaryPrimaryHover',
|
|
97
|
-
labelTextColor: 'secondaryTextPrimary',
|
|
98
|
-
},
|
|
99
|
-
};
|
|
23
|
+
import '../Link_es_DxtZLeKY.js';
|
|
100
24
|
|
|
101
25
|
var cellAppearanceSize = {
|
|
102
|
-
sizeXXL: {
|
|
103
|
-
size: 'xxl',
|
|
104
|
-
labelTextSize: 'xxl',
|
|
105
|
-
iconAfterFillSize: '24',
|
|
106
|
-
iconAfterSize: '24',
|
|
107
|
-
iconBeforeFillSize: '24',
|
|
108
|
-
iconBeforeSize: '24',
|
|
109
|
-
},
|
|
110
26
|
sizeXL: {
|
|
111
27
|
size: 'xl',
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
iconAfterSize: '24',
|
|
115
|
-
iconBeforeFillSize: '24',
|
|
116
|
-
iconBeforeSize: '24',
|
|
28
|
+
titleTextSize: 'l',
|
|
29
|
+
valueTextSize: 's',
|
|
117
30
|
},
|
|
118
31
|
sizeL: {
|
|
119
32
|
size: 'l',
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
iconAfterSize: '24',
|
|
123
|
-
iconBeforeFillSize: '24',
|
|
124
|
-
iconBeforeSize: '24',
|
|
33
|
+
titleTextSize: 'l',
|
|
34
|
+
valueTextSize: 's',
|
|
125
35
|
},
|
|
126
36
|
sizeM: {
|
|
127
37
|
size: 'm',
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
iconAfterSize: '24',
|
|
131
|
-
iconBeforeFillSize: '24',
|
|
132
|
-
iconBeforeSize: '24',
|
|
38
|
+
titleTextSize: 'm',
|
|
39
|
+
valueTextSize: 's',
|
|
133
40
|
},
|
|
134
41
|
sizeS: {
|
|
135
42
|
size: 's',
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
iconAfterSize: '20',
|
|
139
|
-
iconBeforeFillSize: '20',
|
|
140
|
-
iconBeforeSize: '20',
|
|
141
|
-
},
|
|
142
|
-
sizeXS: {
|
|
143
|
-
size: 'xs',
|
|
144
|
-
labelTextSize: 'xs',
|
|
145
|
-
iconAfterFillSize: '16',
|
|
146
|
-
iconAfterSize: '16',
|
|
147
|
-
iconBeforeFillSize: '16',
|
|
148
|
-
iconBeforeSize: '16',
|
|
149
|
-
},
|
|
150
|
-
sizeXXS: {
|
|
151
|
-
size: 'xxs',
|
|
152
|
-
labelTextSize: 'xs',
|
|
153
|
-
iconAfterFillSize: '14',
|
|
154
|
-
iconAfterSize: '14',
|
|
155
|
-
iconBeforeFillSize: '14',
|
|
156
|
-
iconBeforeSize: '14',
|
|
43
|
+
titleTextSize: 's',
|
|
44
|
+
valueTextSize: 'xs',
|
|
157
45
|
},
|
|
158
46
|
};
|
|
159
47
|
|
|
@@ -173,17 +61,6 @@ var cellAppearanceStyle = {
|
|
|
173
61
|
},
|
|
174
62
|
};
|
|
175
63
|
|
|
176
|
-
var cellAppearanceSuccess = {
|
|
177
|
-
success: {
|
|
178
|
-
fill: 'successPrimary',
|
|
179
|
-
fillHover: 'successPrimaryHover',
|
|
180
|
-
labelTextColor: 'successTextSecondary',
|
|
181
|
-
labelTextColorHover: 'successTextSecondary',
|
|
182
|
-
loaderFill: 'successPrimary',
|
|
183
|
-
loaderItemFill: 'successItemPrimary',
|
|
184
|
-
},
|
|
185
|
-
};
|
|
186
|
-
|
|
187
64
|
var cellAppearanceSurface = {
|
|
188
65
|
surfacePrimary: {
|
|
189
66
|
fill: 'surfacePrimary',
|
|
@@ -209,18 +86,7 @@ var cellAppearanceSurface = {
|
|
|
209
86
|
},
|
|
210
87
|
};
|
|
211
88
|
|
|
212
|
-
var
|
|
213
|
-
warning: {
|
|
214
|
-
fill: 'warningPrimary',
|
|
215
|
-
fillHover: 'warningPrimaryHover',
|
|
216
|
-
labelTextColor: 'warningTextSecondary',
|
|
217
|
-
labelTextColorHover: 'warningTextSecondary',
|
|
218
|
-
loaderFill: 'warningPrimary',
|
|
219
|
-
loaderItemFill: 'warningItemPrimary',
|
|
220
|
-
},
|
|
221
|
-
};
|
|
222
|
-
|
|
223
|
-
var cellAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, cellAppearanceSize), cellAppearanceStyle), cellAppearanceAccent), cellAppearanceDanger), cellAppearanceError), cellAppearanceInfo), cellAppearancePrimary), cellAppearanceSecondary), cellAppearanceSuccess), cellAppearanceSurface), cellAppearanceWarning);
|
|
89
|
+
var cellAppearance = __assign(__assign(__assign({}, cellAppearanceSize), cellAppearanceStyle), cellAppearanceSurface);
|
|
224
90
|
|
|
225
91
|
var cellConfig = {
|
|
226
92
|
appearance: cellAppearance,
|
|
@@ -229,7 +95,7 @@ var cellConfig = {
|
|
|
229
95
|
},
|
|
230
96
|
};
|
|
231
97
|
function Cell(props) {
|
|
232
|
-
var className = props.className, appearance = props.appearance,
|
|
98
|
+
var className = props.className, appearance = props.appearance, title = props.title, titleIcon = props.titleIcon, titleIconFill = props.titleIconFill, titleIconFillHover = props.titleIconFillHover, titleIconFillSize = props.titleIconFillSize, titleIconItemFill = props.titleIconItemFill, titleIconShape = props.titleIconShape, titleIconSrc = props.titleIconSrc, titleLabel = props.titleLabel, titleLabelAppearance = props.titleLabelAppearance, titleLabelShape = props.titleLabelShape, titleLabelSize = props.titleLabelSize,
|
|
233
99
|
// titleLabelTextSize,
|
|
234
100
|
titleTag = props.titleTag, titleTextColor = props.titleTextColor,
|
|
235
101
|
// titleTextSize,
|
|
@@ -249,11 +115,11 @@ function Cell(props) {
|
|
|
249
115
|
// Properties for current device media queries
|
|
250
116
|
titleLabelTextSize = propsGenerator.titleLabelTextSize, titleTextSize = propsGenerator.titleTextSize, valueLabelTextSize = propsGenerator.valueLabelTextSize, valueTextSize = propsGenerator.valueTextSize,
|
|
251
117
|
// Classes for current device media queries
|
|
252
|
-
bgFillActiveClass = propsGenerator.bgFillActiveClass, bgFillClass = propsGenerator.bgFillClass, bgFillDisabledClass = propsGenerator.bgFillDisabledClass, bgFillHoverClass = propsGenerator.bgFillHoverClass, bgShapeClass = propsGenerator.bgShapeClass, directionClass = propsGenerator.directionClass, fillActiveClass = propsGenerator.fillActiveClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, shapeClass = propsGenerator.shapeClass, widthClass = propsGenerator.widthClass;
|
|
118
|
+
bgFillActiveClass = propsGenerator.bgFillActiveClass, bgFillClass = propsGenerator.bgFillClass, bgFillDisabledClass = propsGenerator.bgFillDisabledClass, bgFillHoverClass = propsGenerator.bgFillHoverClass, bgShapeClass = propsGenerator.bgShapeClass, directionClass = propsGenerator.directionClass, fillActiveClass = propsGenerator.fillActiveClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, shapeClass = propsGenerator.shapeClass, widthClass = propsGenerator.widthClass, sizeClass = propsGenerator.sizeClass;
|
|
253
119
|
/* eslint-enable perfectionist/sort-objects */
|
|
254
120
|
// @ts-expect-error
|
|
255
121
|
var _b = useStyles(props), dataStyles = _b.data, cellStyles = _b.styles;
|
|
256
|
-
return (jsxs("div", { className: clsx(className, 'cell', mode && "cell_mode_".concat(mode),
|
|
122
|
+
return (jsxs("div", { className: clsx(className, 'cell', mode && "cell_mode_".concat(mode), sizeClass && "cell_size_".concat(sizeClass), set && "cell_set_".concat(set), bgFillClass && "fill_".concat(bgFillClass), bgFillHoverClass && "fill_hover_".concat(bgFillHoverClass), isActive && bgFillActiveClass && "fill_active_".concat(bgFillActiveClass), isDisabled &&
|
|
257
123
|
bgFillDisabledClass &&
|
|
258
124
|
"fill_disabled_".concat(bgFillDisabledClass), bgShapeClass && "cell_shape_".concat(bgShapeClass), widthClass && !(cellStyles === null || cellStyles === void 0 ? void 0 : cellStyles.width) && "width_".concat(widthClass), zeroPadding && 'cell_reset-padding', zeroGap && 'cell_reset-gap', reverse && 'cell_reverse'), style: cellStyles, onClick: onClick, onMouseEnter: onMouseEnter, children: [before && jsx("div", { className: "cell__before", children: before }), jsxs("div", { className: clsx('cell__wrapper', directionClass && "cell__wrapper_direction_".concat(directionClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), isActive && fillActiveClass && "fill_active_".concat(fillActiveClass), isDisabled &&
|
|
259
125
|
fillDisabledClass &&
|
package/dist/components/Chips.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../
|
|
1
|
+
export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_CjGZ-ulT.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -17,7 +17,7 @@ import '../utils/setViewportProperty.js';
|
|
|
17
17
|
import '../hooks/useStyles/useStyles.js';
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
-
import '../
|
|
20
|
+
import '../Tooltip_es_BaGfb-qC.js';
|
|
21
21
|
import '../Text_es_BRb3qqKM.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
|
-
import '../
|
|
23
|
+
import '../Link_es_DxtZLeKY.js';
|