@itcase/ui 1.8.29 → 1.8.31
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_33OrnLtt.js → Avatar_cjs_DRaNGlad.js} +1 -1
- package/dist/{Avatar_es_B3LiV8MM.js → Avatar_es_Ck1RiTgB.js} +1 -1
- package/dist/{Button_cjs_C05Joa8j.js → Button_cjs_CnBP4mKv.js} +1 -1
- package/dist/{Button_es_CO_dwo-N.js → Button_es_WG0yV-rp.js} +1 -1
- package/dist/{ChipsGroup_cjs_Cm_pVx8z.js → ChipsGroup_cjs_BCnPa9xv.js} +2 -4
- package/dist/{ChipsGroup_es_CLpRB95W.js → ChipsGroup_es_1854brF_.js} +2 -4
- package/dist/{DatePicker_cjs_0y_2FcnF.js → DatePicker_cjs_Cbv3ffoB.js} +3 -6
- package/dist/{DatePicker_es_bY1aXemt.js → DatePicker_es_DGck2HRu.js} +3 -6
- package/dist/{DropdownItem_cjs_DPoFy70W.js → DropdownItem_cjs_C3BV7axh.js} +1 -1
- package/dist/{DropdownItem_es_CVztMEm0.js → DropdownItem_es_VDp5tKZr.js} +1 -1
- package/dist/{Label_cjs_BefEcq6i.js → Label_cjs_CqSZcFNk.js} +63 -63
- package/dist/{Label_es_Dl_DrMOh.js → Label_es_s3M2-dON.js} +63 -63
- package/dist/{Tooltip_cjs_pBGCcXLZ.js → Tooltip_cjs_BE4fABOp.js} +34 -5
- package/dist/{Tooltip_es_frBCZDrO.js → Tooltip_es_BPMRrd2L.js} +34 -5
- package/dist/cjs/components/Accordion.js +28 -12
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/AvatarStack.js +2 -2
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Breadcrumbs.js +1 -1
- package/dist/cjs/components/Button.js +2 -2
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips.js +2 -2
- package/dist/cjs/components/Choice/stories/__mock__.js +11 -0
- package/dist/cjs/components/Choice.js +59 -17
- package/dist/cjs/components/CookiesWarning.js +2 -2
- package/dist/cjs/components/DatePeriod.js +14 -14
- package/dist/cjs/components/DatePicker.js +4 -4
- package/dist/cjs/components/Drawer.js +1 -1
- 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/InputPassword.js +1 -1
- package/dist/cjs/components/Label.js +2 -2
- package/dist/cjs/components/MenuItem.js +38 -68
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Pagination.js +2 -2
- package/dist/cjs/components/Response.js +2 -2
- package/dist/cjs/components/Search.js +4 -4
- package/dist/cjs/components/Segmented.js +21 -44
- 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/Tile.js +1 -1
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/components/Accordion.js +28 -12
- package/dist/components/Avatar.js +2 -2
- package/dist/components/AvatarStack.js +2 -2
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumbs.js +1 -1
- package/dist/components/Button.js +2 -2
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips.js +2 -2
- package/dist/components/Choice/stories/__mock__.js +9 -0
- package/dist/components/Choice.js +59 -17
- package/dist/components/CookiesWarning.js +2 -2
- package/dist/components/DatePeriod.js +14 -14
- package/dist/components/DatePicker.js +4 -4
- package/dist/components/Drawer.js +1 -1
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/HeroTitle.js +1 -1
- package/dist/components/Icon.js +1 -1
- package/dist/components/InputPassword.js +1 -1
- package/dist/components/Label.js +2 -2
- package/dist/components/MenuItem.js +38 -68
- package/dist/components/Modal.js +1 -1
- package/dist/components/Notification.js +1 -1
- package/dist/components/Pagination.js +2 -2
- package/dist/components/Response.js +2 -2
- package/dist/components/Search.js +4 -4
- package/dist/components/Segmented.js +21 -44
- package/dist/components/Select.js +1 -1
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab.js +1 -1
- package/dist/components/Tile.js +1 -1
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/css/components/Accordion/Accordion.css +27 -7
- package/dist/css/components/Badge/Badge.css +1 -1
- package/dist/css/components/Choice/Choice.css +27 -19
- package/dist/css/components/MenuItem/MenuItem.css +45 -8
- package/dist/stories/ChoiceOverview.mdx +2 -2
- package/dist/stories/ChoicePlayground.mdx +3 -3
- package/dist/types/components/Accordion/appearance/accordionSize.d.ts +14 -7
- package/dist/types/components/Accordion/appearance/accordionSurface.d.ts +11 -2
- package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +1 -1
- package/dist/types/components/Cell/stories/__mock__/index.d.ts +2 -2
- package/dist/types/components/Choice/Choice.interface.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceDefault.d.ts +10 -0
- package/dist/types/components/Choice/appearance/choiceDisabled.d.ts +10 -0
- package/dist/types/components/Choice/appearance/choiceError.d.ts +10 -0
- package/dist/types/components/Choice/appearance/choiceRequire.d.ts +11 -0
- package/dist/types/components/Choice/appearance/choiceStyle.d.ts +6 -4
- package/dist/types/components/Choice/appearance/choiceSuccess.d.ts +11 -0
- package/dist/types/components/Choice/stories/__mock__/index.d.ts +4 -0
- package/dist/types/components/DatePeriod/appearance/datePeriodSize.d.ts +4 -2
- package/dist/types/components/DatePeriod/appearance/datePeriodSurface.d.ts +0 -2
- package/dist/types/components/DatePicker/DatePicker.appearance.d.ts +6 -8
- package/dist/types/components/DatePicker/appearance/datePickerSize.d.ts +6 -6
- package/dist/types/components/DatePicker/appearance/datePickerSurface.d.ts +0 -2
- package/dist/types/components/Drawer/appearance/drawerSurface.d.ts +1 -1
- package/dist/types/components/Icon/appearance/iconDanger.d.ts +6 -0
- package/dist/types/components/Icon/appearance/iconError.d.ts +6 -0
- package/dist/types/components/Icon/appearance/iconPrimary.d.ts +5 -0
- package/dist/types/components/Icon/appearance/iconSecondary.d.ts +5 -0
- package/dist/types/components/Icon/appearance/iconStyle.d.ts +6 -5
- package/dist/types/components/Icon/appearance/iconWarning.d.ts +6 -0
- package/dist/types/components/Label/appearance/labelAccent.d.ts +1 -1
- package/dist/types/components/Label/appearance/labelDanger.d.ts +1 -1
- package/dist/types/components/Label/appearance/labelError.d.ts +7 -7
- package/dist/types/components/Label/appearance/labelPrimary.d.ts +1 -1
- package/dist/types/components/Label/appearance/labelSecondary.d.ts +1 -1
- package/dist/types/components/Label/appearance/labelSuccess.d.ts +1 -1
- package/dist/types/components/Label/appearance/labelSurface.d.ts +8 -8
- package/dist/types/components/Label/appearance/labelWarning.d.ts +1 -1
- package/dist/types/components/MenuItem/MenuItem.interface.d.ts +1 -0
- package/dist/types/components/MenuItem/appearance/menuItemAccent.d.ts +5 -8
- package/dist/types/components/MenuItem/appearance/menuItemError.d.ts +3 -3
- package/dist/types/components/MenuItem/appearance/menuItemSize.d.ts +0 -15
- package/dist/types/components/MenuItem/appearance/menuItemStyle.d.ts +1 -3
- package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +3 -5
- package/dist/types/components/Notification/appearance/notificationDefault.d.ts +1 -1
- package/dist/types/components/Notification/appearance/notificationError.d.ts +1 -1
- package/dist/types/components/Notification/appearance/notificationSuccess.d.ts +1 -1
- package/dist/types/components/Notification/appearance/notificationWarning.d.ts +1 -1
- package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +1 -1
- package/dist/types/components/Search/appearance/searchSize.d.ts +12 -12
- package/dist/types/components/Segmented/appearance/{segmentedSurface.d.ts → segmentedDefault.d.ts} +4 -4
- package/dist/types/components/Select/SelectLoadingIndicator.d.ts +1 -2
- package/dist/types/components/Tab/stories/__mock__/index.d.ts +1 -1
- package/dist/types/hooks/useDeviceTargetClass.d.ts +5 -0
- package/package.json +12 -12
- package/dist/types/components/Choice/appearance/choiceAccent.d.ts +0 -10
- package/dist/types/components/Label/appearance/labelGradient.d.ts +0 -9
- package/dist/types/components/MenuItem/appearance/menuItemPrimary.d.ts +0 -8
- package/dist/types/components/Pagination/appearance/paginationAccent.d.ts +0 -21
- package/dist/types/components/Pagination/appearance/paginationDanger.d.ts +0 -7
- package/dist/types/components/Pagination/appearance/paginationError.d.ts +0 -11
- package/dist/types/components/Pagination/appearance/paginationInfo.d.ts +0 -21
- package/dist/types/components/Pagination/appearance/paginationPrimary.d.ts +0 -8
- package/dist/types/components/Pagination/appearance/paginationSecondary.d.ts +0 -8
- package/dist/types/components/Pagination/appearance/paginationSize.d.ts +0 -48
- package/dist/types/components/Pagination/appearance/paginationStyle.d.ts +0 -16
- package/dist/types/components/Pagination/appearance/paginationSuccess.d.ts +0 -11
- package/dist/types/components/Pagination/appearance/paginationWarning.d.ts +0 -11
- package/dist/types/components/Segmented/appearance/segmentedAccent.d.ts +0 -19
- package/dist/types/components/Segmented/appearance/segmentedFalse.d.ts +0 -4
- package/dist/types/config/forms/datepicker.d.ts +0 -18
- package/dist/types/config/forms/index.d.ts +0 -3
- package/dist/types/config/forms/input.d.ts +0 -14
|
@@ -4,7 +4,7 @@ import React 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 '../
|
|
7
|
+
import { I as Icon } from '../Tooltip_es_BPMRrd2L.js';
|
|
8
8
|
import { L as Link } from '../Link_es_DxtZLeKY.js';
|
|
9
9
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
@@ -22,102 +22,76 @@ import '../hooks/useStyles/styleAttributes.js';
|
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
|
|
24
24
|
var menuItemAppearanceAccent = {
|
|
25
|
-
accent: {
|
|
26
|
-
fill: 'accentPrimary',
|
|
27
|
-
fillHover: 'accentPrimaryHover',
|
|
28
|
-
},
|
|
29
25
|
accentPrimary: {
|
|
30
26
|
fill: 'accentPrimary',
|
|
31
27
|
fillHover: 'accentPrimaryHover',
|
|
32
|
-
|
|
28
|
+
labelTextColor: 'accentTextPrimary',
|
|
29
|
+
iconAfterFillIcon: 'accentItemPrimary',
|
|
30
|
+
iconBeforeFillIcon: 'accentItemPrimary',
|
|
33
31
|
},
|
|
34
32
|
accentSecondary: {
|
|
35
33
|
fill: 'accentPrimary',
|
|
36
34
|
fillHover: 'accentPrimaryHover',
|
|
37
35
|
labelTextColor: 'accentTextSecondary',
|
|
38
36
|
labelTextColorHover: 'accentTextSecondary',
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
loaderItemFill: 'accentItemPrimary',
|
|
37
|
+
iconAfterFillIcon: 'accentItemSecondary',
|
|
38
|
+
iconBeforeFillIcon: 'accentItemSecondary',
|
|
42
39
|
},
|
|
43
40
|
};
|
|
44
41
|
|
|
45
42
|
var menuItemAppearanceError = {
|
|
46
|
-
|
|
43
|
+
errorPrimary: {
|
|
47
44
|
fill: 'errorPrimary',
|
|
48
45
|
fillHover: 'errorPrimaryHover',
|
|
49
46
|
labelTextColor: 'errorTextPrimary',
|
|
50
47
|
labelTextColorHover: 'errorTextPrimary',
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
},
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
var menuItemAppearancePrimary = {
|
|
57
|
-
primary: {
|
|
58
|
-
fill: 'primaryPrimary',
|
|
59
|
-
fillHover: 'primaryPrimaryHover',
|
|
60
|
-
labelTextColor: 'primaryTextPrimary',
|
|
48
|
+
iconAfterFillIcon: 'errorItemPrimary',
|
|
49
|
+
iconBeforeFillIcon: 'errorItemPrimary',
|
|
61
50
|
},
|
|
62
51
|
};
|
|
63
52
|
|
|
64
53
|
var menuItemAppearanceSize = {
|
|
65
54
|
sizeXXL: {
|
|
66
55
|
size: 'xxl',
|
|
67
|
-
labelTextSize: '
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
iconBeforeFillSize: '48',
|
|
71
|
-
iconBeforeSize: '14',
|
|
56
|
+
labelTextSize: 'l',
|
|
57
|
+
iconAfterSize: '20',
|
|
58
|
+
iconBeforeSize: '20',
|
|
72
59
|
},
|
|
73
60
|
sizeXL: {
|
|
74
61
|
size: 'xl',
|
|
75
62
|
labelTextSize: 'l',
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
iconBeforeFillSize: '40',
|
|
79
|
-
iconBeforeSize: '40',
|
|
63
|
+
iconAfterSize: '20',
|
|
64
|
+
iconBeforeSize: '20',
|
|
80
65
|
},
|
|
81
66
|
sizeL: {
|
|
82
67
|
size: 'l',
|
|
83
|
-
labelTextSize: '
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
iconAfterSize: '32',
|
|
87
|
-
iconBeforeFillSize: '32',
|
|
88
|
-
iconBeforeSize: '32',
|
|
68
|
+
labelTextSize: 's',
|
|
69
|
+
iconAfterSize: '16',
|
|
70
|
+
iconBeforeSize: '16',
|
|
89
71
|
},
|
|
90
72
|
sizeM: {
|
|
91
73
|
size: 'm',
|
|
92
|
-
labelTextSize: '
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
iconBeforeFillSize: '28',
|
|
96
|
-
iconBeforeSize: '28',
|
|
74
|
+
labelTextSize: 's',
|
|
75
|
+
iconAfterSize: '16',
|
|
76
|
+
iconBeforeSize: '16',
|
|
97
77
|
},
|
|
98
78
|
sizeS: {
|
|
99
79
|
size: 's',
|
|
100
|
-
labelTextSize: '
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
iconBeforeFillSize: '24',
|
|
104
|
-
iconBeforeSize: '24',
|
|
80
|
+
labelTextSize: 'xs',
|
|
81
|
+
iconAfterSize: '12',
|
|
82
|
+
iconBeforeSize: '12',
|
|
105
83
|
},
|
|
106
84
|
sizeXS: {
|
|
107
85
|
size: 'xs',
|
|
108
86
|
labelTextSize: 'xs',
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
iconBeforeFillSize: '20',
|
|
112
|
-
iconBeforeSize: '20',
|
|
87
|
+
iconAfterSize: '12',
|
|
88
|
+
iconBeforeSize: '12',
|
|
113
89
|
},
|
|
114
90
|
sizeXXS: {
|
|
115
91
|
size: 'xxs',
|
|
116
|
-
labelTextSize: '
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
iconBeforeFillSize: '16',
|
|
120
|
-
iconBeforeSize: '16',
|
|
92
|
+
labelTextSize: 'xxs',
|
|
93
|
+
iconAfterSize: '12',
|
|
94
|
+
iconBeforeSize: '12',
|
|
121
95
|
},
|
|
122
96
|
};
|
|
123
97
|
|
|
@@ -128,9 +102,7 @@ var menuItemAppearanceStyle = {
|
|
|
128
102
|
outlined: {
|
|
129
103
|
fill: 'none',
|
|
130
104
|
},
|
|
131
|
-
full: {
|
|
132
|
-
borderColor: 'none',
|
|
133
|
-
},
|
|
105
|
+
full: {},
|
|
134
106
|
ghost: {
|
|
135
107
|
fill: 'none',
|
|
136
108
|
borderColor: 'none',
|
|
@@ -140,18 +112,11 @@ var menuItemAppearanceStyle = {
|
|
|
140
112
|
var menuItemAppearanceSurface = {
|
|
141
113
|
surfacePrimary: {
|
|
142
114
|
fill: 'surfacePrimary',
|
|
143
|
-
|
|
144
|
-
fillActiveHover: 'surfaceSecondary',
|
|
145
|
-
fillHover: 'surfaceSecondary',
|
|
115
|
+
fillHover: 'surfacePrimaryHover',
|
|
146
116
|
labelTextColor: 'surfaceTextPrimary',
|
|
147
117
|
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
148
118
|
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
149
119
|
},
|
|
150
|
-
surfaceQuaternary: {
|
|
151
|
-
fill: 'surfaceQuaternary',
|
|
152
|
-
fillHover: 'surfaceQuaternaryHover',
|
|
153
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
154
|
-
},
|
|
155
120
|
surfaceSecondary: {
|
|
156
121
|
fill: 'surfaceSecondary',
|
|
157
122
|
fillHover: 'surfaceSecondaryHover',
|
|
@@ -162,9 +127,14 @@ var menuItemAppearanceSurface = {
|
|
|
162
127
|
fillHover: 'surfaceTertiaryHover',
|
|
163
128
|
labelTextColor: 'surfaceTextPrimary',
|
|
164
129
|
},
|
|
130
|
+
surfaceQuaternary: {
|
|
131
|
+
fill: 'surfaceQuaternary',
|
|
132
|
+
fillHover: 'surfaceQuaternaryHover',
|
|
133
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
134
|
+
},
|
|
165
135
|
};
|
|
166
136
|
|
|
167
|
-
var menuItemAppearance = __assign(__assign(__assign(__assign(__assign(
|
|
137
|
+
var menuItemAppearance = __assign(__assign(__assign(__assign(__assign({}, menuItemAppearanceSize), menuItemAppearanceStyle), menuItemAppearanceAccent), menuItemAppearanceError), menuItemAppearanceSurface);
|
|
168
138
|
|
|
169
139
|
var menuItemConfig = {
|
|
170
140
|
appearance: menuItemAppearance,
|
|
@@ -179,7 +149,7 @@ function MenuItem(props) {
|
|
|
179
149
|
return (__assign(__assign({}, resultConfig), (_a = menuItemConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
180
150
|
}, {});
|
|
181
151
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
182
|
-
var directionClass = propsGenerator.directionClass, justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelStyle = propsGenerator.labelStyle, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveColorDisabled = propsGenerator.labelTextActiveColorDisabled, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextActiveHoverColorDisabled = propsGenerator.labelTextActiveHoverColorDisabled, labelTextColor = propsGenerator.labelTextColor, labelTextColorDisabled = propsGenerator.labelTextColorDisabled, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextHoverColorDisabled = propsGenerator.labelTextHoverColorDisabled, labelTextSize = propsGenerator.labelTextSize, labelWeight = propsGenerator.labelWeight, labelWrap = propsGenerator.labelWrap, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBadgeAppearance = propsGenerator.iconBadgeAppearance, iconBadgeShape = propsGenerator.iconBadgeShape, iconBadgeSize = propsGenerator.iconBadgeSize, iconBadgeTextColor = propsGenerator.iconBadgeTextColor, iconBadgeTextSize = propsGenerator.iconBadgeTextSize, iconBadgeValue = propsGenerator.iconBadgeValue, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass;
|
|
152
|
+
var directionClass = propsGenerator.directionClass, justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelStyle = propsGenerator.labelStyle, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveColorDisabled = propsGenerator.labelTextActiveColorDisabled, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextActiveHoverColorDisabled = propsGenerator.labelTextActiveHoverColorDisabled, labelTextColor = propsGenerator.labelTextColor, labelTextColorDisabled = propsGenerator.labelTextColorDisabled, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextHoverColorDisabled = propsGenerator.labelTextHoverColorDisabled, labelTextSize = propsGenerator.labelTextSize, labelWeight = propsGenerator.labelWeight, labelWrap = propsGenerator.labelWrap, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBadgeAppearance = propsGenerator.iconBadgeAppearance, iconBadgeShape = propsGenerator.iconBadgeShape, iconBadgeSize = propsGenerator.iconBadgeSize, iconBadgeTextColor = propsGenerator.iconBadgeTextColor, iconBadgeTextSize = propsGenerator.iconBadgeTextSize, iconBadgeValue = propsGenerator.iconBadgeValue, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass, isSkeleton = propsGenerator.isSkeleton;
|
|
183
153
|
// @ts-expect-error
|
|
184
154
|
var menuItem = useStyles(props).styles;
|
|
185
155
|
return (jsx("div", { className: clsx('menu-item', isActive && 'menu-item_state_active', isDisabled && "menu-item_state_disabled", directionClass && "menu-item_direction_".concat(directionClass), className, sizeClass && "menu-item_size_".concat(sizeClass), !isActive
|
|
@@ -187,7 +157,7 @@ function MenuItem(props) {
|
|
|
187
157
|
: fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
|
|
188
158
|
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
189
159
|
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "menu-item_shape_".concat(shapeClass), typeClass && "menu-item_type_".concat(typeClass), widthClass && "width_".concat(widthClass), justifyContentClass &&
|
|
190
|
-
"menu-item_justify-content_".concat(justifyContentClass)), style: menuItem, onClick: onClick, onMouseEnter: onMouseEnter, children: jsxs(Link, { className: clsx('menu-item__wrapper', alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass)), href: link || href, LinkComponent: LinkComponent, rel: rel, target: target, underline: underline, children: [before, children || (jsxs(React.Fragment, { children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { className: clsx('menu-item__icon_before', iconBadgeValue && 'menu-item__icon_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'menu-item__icon_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), label && (jsx(Text, { className: "menu-item__label", size: labelTextSize, textColor: isActive
|
|
160
|
+
"menu-item_justify-content_".concat(justifyContentClass), isSkeleton && "menu-item_skeleton"), style: menuItem, onClick: onClick, onMouseEnter: onMouseEnter, children: jsxs(Link, { className: clsx('menu-item__wrapper', alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass)), href: link || href, LinkComponent: LinkComponent, rel: rel, target: target, underline: underline, children: [before, children || (jsxs(React.Fragment, { children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { className: clsx('menu-item__icon_before', iconBadgeValue && 'menu-item__icon_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'menu-item__icon_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), label && (jsx(Text, { className: "menu-item__label", size: labelTextSize, textColor: isActive
|
|
191
161
|
? !isDisabled
|
|
192
162
|
? labelTextActiveColor
|
|
193
163
|
: labelTextActiveColorDisabled
|
package/dist/components/Modal.js
CHANGED
|
@@ -6,7 +6,7 @@ import ReactDOM from 'react-dom';
|
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
8
|
import { O as Overlay } from '../Overlay_es_DczPjVL9.js';
|
|
9
|
-
import { b as Title } from '../
|
|
9
|
+
import { b as Title } from '../Tooltip_es_BPMRrd2L.js';
|
|
10
10
|
import { L as Loader } from '../Loader_es_B2auu_rc.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
12
12
|
import 'lodash/castArray';
|
|
@@ -3,7 +3,7 @@ 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 '../
|
|
6
|
+
import { I as Icon } from '../Tooltip_es_BPMRrd2L.js';
|
|
7
7
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
8
8
|
import { icon20 } from '@itcase/icons/default';
|
|
9
9
|
import { useNotifications, useNotificationsAPI } from '../context/Notifications.js';
|
|
@@ -6,8 +6,8 @@ import ceil from 'lodash/ceil';
|
|
|
6
6
|
import ReactPaginate from 'react-paginate';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
9
|
-
import { D as Dropdown, a as DropdownItem } from '../
|
|
10
|
-
import { I as Icon } from '../
|
|
9
|
+
import { D as Dropdown, a as DropdownItem } from '../DropdownItem_es_VDp5tKZr.js';
|
|
10
|
+
import { I as Icon } from '../Tooltip_es_BPMRrd2L.js';
|
|
11
11
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
12
12
|
import { icon32, icon24 } from '@itcase/icons/default';
|
|
13
13
|
import 'lodash/camelCase';
|
|
@@ -5,7 +5,7 @@ import clsx from 'clsx';
|
|
|
5
5
|
import SVG from 'react-inlinesvg';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
|
-
import { B as Button } from '../
|
|
8
|
+
import { B as Button } from '../Button_es_WG0yV-rp.js';
|
|
9
9
|
import { G as Group } from '../Group_es_CYW2Hquh.js';
|
|
10
10
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
@@ -20,7 +20,7 @@ import 'react-responsive';
|
|
|
20
20
|
import '../utils/setViewportProperty.js';
|
|
21
21
|
import 'lodash/maxBy';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
|
-
import '../
|
|
23
|
+
import '../Tooltip_es_BPMRrd2L.js';
|
|
24
24
|
import '../Link_es_DxtZLeKY.js';
|
|
25
25
|
import '../Loader_es_B2auu_rc.js';
|
|
26
26
|
|
|
@@ -5,7 +5,7 @@ import React, { useCallback } from 'react';
|
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
|
-
import { I as Icon } from '../
|
|
8
|
+
import { I as Icon } from '../Tooltip_es_BPMRrd2L.js';
|
|
9
9
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
10
10
|
import { S as Scrollbar } from '../Scrollbar_es_CThJeCLF.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
@@ -55,9 +55,9 @@ var searchAppearanceError = {
|
|
|
55
55
|
fill: 'errorTertiary',
|
|
56
56
|
borderColor: 'errorBorderQuaternary',
|
|
57
57
|
borderHover: 'errorBorderQuaternaryHover',
|
|
58
|
-
iconAfterFill: '
|
|
59
|
-
iconBeforeFill: '
|
|
60
|
-
iconClearFill: '
|
|
58
|
+
iconAfterFill: 'errorItemSecondary',
|
|
59
|
+
iconBeforeFill: 'errorItemSecondary',
|
|
60
|
+
iconClearFill: 'errorItemSecondary',
|
|
61
61
|
inputTextColor: 'surfaceTextPrimary',
|
|
62
62
|
placeholderTextColor: 'surfaceTextQuaternary',
|
|
63
63
|
},
|
|
@@ -18,22 +18,26 @@ import '../hooks/useStyles/useStyles.js';
|
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
20
|
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
fill: '
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
21
|
+
var segmentedAppearanceDefault = {
|
|
22
|
+
defaultPrimary: {
|
|
23
|
+
fill: 'surfacePrimary',
|
|
24
|
+
fillActive: 'accentPrimary',
|
|
25
|
+
fillActiveHover: 'accentPrimary',
|
|
26
|
+
fillHover: 'surfaceSecondary',
|
|
27
|
+
labelTextActiveColor: 'accentTextPrimary',
|
|
28
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
29
|
+
indicatorFill: 'accentPrimary',
|
|
30
|
+
shape: 'rounded',
|
|
31
|
+
},
|
|
32
|
+
defaultSecondary: {
|
|
33
|
+
fill: 'surfaceSecondary',
|
|
34
|
+
fillActive: 'accentPrimary',
|
|
35
|
+
fillActiveHover: 'accentPrimary',
|
|
36
|
+
fillHover: 'surfaceSecondary',
|
|
37
|
+
labelTextActiveColor: 'accentTextPrimary',
|
|
38
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
39
|
+
indicatorFill: 'accentPrimary',
|
|
40
|
+
shape: 'rounded',
|
|
37
41
|
},
|
|
38
42
|
};
|
|
39
43
|
|
|
@@ -64,10 +68,6 @@ var segmentedAppearanceError = {
|
|
|
64
68
|
},
|
|
65
69
|
};
|
|
66
70
|
|
|
67
|
-
var segmentedAppearanceFalse = {
|
|
68
|
-
false: {},
|
|
69
|
-
};
|
|
70
|
-
|
|
71
71
|
var segmentedAppearanceSize = {
|
|
72
72
|
sizeL: {
|
|
73
73
|
size: 'l',
|
|
@@ -116,29 +116,6 @@ var segmentedAppearanceSuccess = {
|
|
|
116
116
|
},
|
|
117
117
|
};
|
|
118
118
|
|
|
119
|
-
var segmentedAppearanceSurface = {
|
|
120
|
-
surfacePrimary: {
|
|
121
|
-
fill: 'surfacePrimary',
|
|
122
|
-
fillActive: 'accentPrimary',
|
|
123
|
-
fillActiveHover: 'accentPrimary',
|
|
124
|
-
fillHover: 'surfaceSecondary',
|
|
125
|
-
labelTextActiveColor: 'accentTextPrimary',
|
|
126
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
127
|
-
indicatorFill: 'accentPrimary',
|
|
128
|
-
shape: 'rounded',
|
|
129
|
-
},
|
|
130
|
-
surfaceSecondary: {
|
|
131
|
-
fill: 'surfaceSecondary',
|
|
132
|
-
fillActive: 'accentPrimary',
|
|
133
|
-
fillActiveHover: 'accentPrimary',
|
|
134
|
-
fillHover: 'surfaceSecondary',
|
|
135
|
-
labelTextActiveColor: 'accentTextPrimary',
|
|
136
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
137
|
-
indicatorFill: 'accentPrimary',
|
|
138
|
-
shape: 'rounded',
|
|
139
|
-
},
|
|
140
|
-
};
|
|
141
|
-
|
|
142
119
|
var segmentedAppearanceWarning = {
|
|
143
120
|
warning: {
|
|
144
121
|
fill: 'warningPrimary',
|
|
@@ -148,7 +125,7 @@ var segmentedAppearanceWarning = {
|
|
|
148
125
|
},
|
|
149
126
|
};
|
|
150
127
|
|
|
151
|
-
var segmentedAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(
|
|
128
|
+
var segmentedAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, segmentedAppearanceDisabled), segmentedAppearanceSize), segmentedAppearanceStyle), segmentedAppearanceError), segmentedAppearanceSuccess), segmentedAppearanceDefault), segmentedAppearanceWarning);
|
|
152
129
|
|
|
153
130
|
var segmentedConfig = {
|
|
154
131
|
appearance: segmentedAppearance,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import Select, { components } from 'react-select';
|
|
4
|
-
import { I as Icon, B as Badge } from '../
|
|
4
|
+
import { I as Icon, B as Badge } from '../Tooltip_es_BPMRrd2L.js';
|
|
5
5
|
import React, { useRef, useCallback, useEffect, useMemo } from 'react';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import CreatableSelect from 'react-select/creatable';
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { Swiper as Swiper$1, SwiperSlide } from 'swiper/react';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { b as Title } from '../
|
|
7
|
+
import { b as Title } from '../Tooltip_es_BPMRrd2L.js';
|
|
8
8
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
package/dist/components/Tab.js
CHANGED
|
@@ -4,7 +4,7 @@ import React 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 { B as Badge, I as Icon } from '../
|
|
7
|
+
import { B as Badge, I as Icon } from '../Tooltip_es_BPMRrd2L.js';
|
|
8
8
|
import { D as Divider } from '../Divider_es_kY-30pft.js';
|
|
9
9
|
import { L as Link } from '../Link_es_DxtZLeKY.js';
|
|
10
10
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
package/dist/components/Tile.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } 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 { b as Title, B as Badge, I as Icon } from '../
|
|
6
|
+
import { b as Title, B as Badge, I as Icon } from '../Tooltip_es_BPMRrd2L.js';
|
|
7
7
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
8
8
|
import 'react';
|
|
9
9
|
import 'lodash/camelCase';
|
package/dist/components/Title.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as Title, d as titleAppearance, c as titleConfig } from '../
|
|
1
|
+
export { b as Title, d as titleAppearance, c as titleConfig } from '../Tooltip_es_BPMRrd2L.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../
|
|
1
|
+
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Tooltip_es_BPMRrd2L.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -42,6 +42,18 @@
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
+
.accordion-item {
|
|
46
|
+
&&_zero-padding {
|
|
47
|
+
^&__header {
|
|
48
|
+
padding: 0;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
&&_zero-gap {
|
|
52
|
+
^&__wrapper {
|
|
53
|
+
padding: 0;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
45
57
|
.accordion-item {
|
|
46
58
|
width: 100%;
|
|
47
59
|
display: flex;
|
|
@@ -50,14 +62,22 @@
|
|
|
50
62
|
&__header {
|
|
51
63
|
width: 100%;
|
|
52
64
|
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
^&__title {
|
|
67
|
+
position: relative;
|
|
68
|
+
}
|
|
53
69
|
}
|
|
54
|
-
&
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
70
|
+
&__action {
|
|
71
|
+
display: flex;
|
|
72
|
+
gap: 12px;
|
|
73
|
+
^&__badge {
|
|
74
|
+
position: relative;
|
|
75
|
+
}
|
|
76
|
+
^&__icon {
|
|
77
|
+
align-self: flex-start;
|
|
78
|
+
transform-origin: 50% 50%;
|
|
79
|
+
transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
|
|
80
|
+
}
|
|
61
81
|
}
|
|
62
82
|
&__content {
|
|
63
83
|
width: 100%;
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
--badge-type-icon-size-s-max-width: 20px;
|
|
123
123
|
--badge-type-icon-size-s-max-height: 20px;
|
|
124
124
|
|
|
125
|
-
--badge-size-xs-padding: 0
|
|
125
|
+
--badge-size-xs-padding: 0;
|
|
126
126
|
--badge-size-xs-min-width: 16px;
|
|
127
127
|
--badge-size-xs-min-height: 16px;
|
|
128
128
|
--badge-size-xs-gap: 2px;
|
|
@@ -75,22 +75,6 @@
|
|
|
75
75
|
align-items: center;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
.choice {
|
|
79
|
-
&_set {
|
|
80
|
-
&_form {
|
|
81
|
-
^^&__item {
|
|
82
|
-
min-width: auto;
|
|
83
|
-
border: 1px solid var(--color-surface-border-tertiary);
|
|
84
|
-
border-radius: 6px;
|
|
85
|
-
&-label {
|
|
86
|
-
flex-direction: row-reverse;
|
|
87
|
-
align-items: center;
|
|
88
|
-
gap: 4px;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
78
|
.choice {
|
|
95
79
|
&_shape {
|
|
96
80
|
&_rounded {
|
|
@@ -135,6 +119,30 @@
|
|
|
135
119
|
}
|
|
136
120
|
}
|
|
137
121
|
}
|
|
122
|
+
.choice {
|
|
123
|
+
&&_skeleton {
|
|
124
|
+
background-size: 200% !important;
|
|
125
|
+
border: none;
|
|
126
|
+
animation: choiceSkeleton 3s infinite linear !important;
|
|
127
|
+
background-image: linear-gradient(
|
|
128
|
+
90deg,
|
|
129
|
+
var(--color-surface-fill-secondary),
|
|
130
|
+
var(--color-surface-fill-tertiary),
|
|
131
|
+
var(--color-surface-fill-secondary)
|
|
132
|
+
) !important;
|
|
133
|
+
& * {
|
|
134
|
+
opacity: 0%;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
@keyframes choiceSkeleton {
|
|
139
|
+
0% {
|
|
140
|
+
background-position: 200%;
|
|
141
|
+
}
|
|
142
|
+
100% {
|
|
143
|
+
background-position: -200%;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
138
146
|
:root {
|
|
139
147
|
--choice-size-s-height: 28px;
|
|
140
148
|
--choice-size-m-height: 36px;
|
|
@@ -155,9 +163,9 @@
|
|
|
155
163
|
|
|
156
164
|
--choice-shape-rounded: 8px;
|
|
157
165
|
|
|
158
|
-
--choice-item-size-s-padding: 0px
|
|
159
|
-
--choice-item-size-m-padding: 0px
|
|
160
|
-
--choice-item-size-l-padding: 0px
|
|
166
|
+
--choice-item-size-s-padding: 0px 6px;
|
|
167
|
+
--choice-item-size-m-padding: 0px 12px;
|
|
168
|
+
--choice-item-size-l-padding: 0px 12px;
|
|
161
169
|
|
|
162
170
|
--choice-item-icon-padding: 0;
|
|
163
171
|
--choice-item-shape-rounded: 8px;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
.menu-item {
|
|
2
|
+
display: flex;
|
|
2
3
|
align-items: center;
|
|
3
4
|
&__wrapper {
|
|
4
5
|
width: 100%;
|
|
@@ -50,6 +51,9 @@
|
|
|
50
51
|
&_size {
|
|
51
52
|
@each $size in xxl, xl, l, m, s, xs, xxs {
|
|
52
53
|
&_$(size) {
|
|
54
|
+
min-height: var(--menu-item-size-$(size)-min-height);
|
|
55
|
+
padding: var(--menu-item-size-$(size)-padding);
|
|
56
|
+
gap: var(--menu-item-size-$(size)-gap);
|
|
53
57
|
^^&__wrapper {
|
|
54
58
|
min-height: var(--menu-item-size-$(size)-min-height);
|
|
55
59
|
padding: var(--menu-item-size-$(size)-padding);
|
|
@@ -60,17 +64,50 @@
|
|
|
60
64
|
}
|
|
61
65
|
}
|
|
62
66
|
|
|
67
|
+
.menu-item {
|
|
68
|
+
&&_skeleton {
|
|
69
|
+
background-size: 200% !important;
|
|
70
|
+
border: none;
|
|
71
|
+
animation: menuItemSkeleton 3s infinite linear !important;
|
|
72
|
+
background-image: linear-gradient(
|
|
73
|
+
90deg,
|
|
74
|
+
var(--color-surface-fill-secondary),
|
|
75
|
+
var(--color-surface-fill-tertiary),
|
|
76
|
+
var(--color-surface-fill-secondary)
|
|
77
|
+
) !important;
|
|
78
|
+
& * {
|
|
79
|
+
opacity: 0%;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@keyframes menuItemSkeleton {
|
|
85
|
+
0% {
|
|
86
|
+
background-position: 200%;
|
|
87
|
+
}
|
|
88
|
+
100% {
|
|
89
|
+
background-position: -200%;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
63
93
|
:root {
|
|
64
|
-
--menu-item-size-xxs-padding:
|
|
65
|
-
--menu-item-size-xs-padding:
|
|
66
|
-
--menu-item-size-s-padding:
|
|
67
|
-
--menu-item-size-m-padding:
|
|
68
|
-
--menu-item-size-l-padding:
|
|
69
|
-
--menu-item-size-xl-padding: 10px
|
|
70
|
-
--menu-item-size-xxl-padding:
|
|
94
|
+
--menu-item-size-xxs-padding: 2px;
|
|
95
|
+
--menu-item-size-xs-padding: 4px;
|
|
96
|
+
--menu-item-size-s-padding: 6px;
|
|
97
|
+
--menu-item-size-m-padding: 6px;
|
|
98
|
+
--menu-item-size-l-padding: 8px;
|
|
99
|
+
--menu-item-size-xl-padding: 10px;
|
|
100
|
+
--menu-item-size-xxl-padding: 14px;
|
|
101
|
+
|
|
102
|
+
--menu-item-size-xxs-gap: 4px;
|
|
103
|
+
--menu-item-size-xs-gap: 4px;
|
|
104
|
+
--menu-item-size-s-gap: 6px;
|
|
105
|
+
--menu-item-size-m-gap: 6px;
|
|
106
|
+
--menu-item-size-l-gap: 8px;
|
|
107
|
+
--menu-item-size-xl-gap: 8px;
|
|
108
|
+
--menu-item-size-xxl-gap: 8px;
|
|
71
109
|
|
|
72
110
|
--menu-item-size-m-min-height: 32px;
|
|
73
|
-
--menu-item-size-m-gap: 8px;
|
|
74
111
|
|
|
75
112
|
--menu-item-shape-rounded: 20px;
|
|
76
113
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/blocks'
|
|
2
2
|
|
|
3
|
-
import * as ChoiceStories from '../stories/
|
|
3
|
+
import * as ChoiceStories from '../stories/ChoiceDemo.stories'
|
|
4
4
|
|
|
5
5
|
<Meta title="Atoms / Choice / Overview" />
|
|
6
6
|
|
|
@@ -8,4 +8,4 @@ import * as ChoiceStories from '../stories/Choice.stories'
|
|
|
8
8
|
|
|
9
9
|
`Choice` — это меню с вариантами выбора.
|
|
10
10
|
|
|
11
|
-
<Story of={ChoiceStories.
|
|
11
|
+
<Story of={ChoiceStories.Demo} />
|