@itcase/ui 1.8.30 → 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_DN9BoTKe.js → ChipsGroup_cjs_BCnPa9xv.js} +1 -1
- package/dist/{ChipsGroup_es_D9aK8Roh.js → ChipsGroup_es_1854brF_.js} +1 -1
- package/dist/{DatePicker_cjs_B_OWDm9X.js → DatePicker_cjs_Cbv3ffoB.js} +3 -3
- package/dist/{DatePicker_es_BCbmUdl0.js → DatePicker_es_DGck2HRu.js} +3 -3
- 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 +1 -1
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/AvatarStack.js +2 -2
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Breadcrumbs.js +1 -1
- package/dist/cjs/components/Button.js +2 -2
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips.js +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 +5 -5
- 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 +1 -1
- package/dist/components/Avatar.js +2 -2
- package/dist/components/AvatarStack.js +2 -2
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumbs.js +1 -1
- package/dist/components/Button.js +2 -2
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips.js +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 +5 -5
- 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/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 +7 -7
- 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/DatePicker/DatePicker.appearance.d.ts +6 -6
- package/dist/types/components/DatePicker/appearance/datePickerSize.d.ts +6 -6
- 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
|
@@ -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';
|
|
@@ -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} />
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Canvas, Controls, Meta } 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 / Playground" />
|
|
6
6
|
|
|
7
7
|
# Playground
|
|
8
8
|
|
|
9
|
-
<Canvas sourceState="shown" of={ChoiceStories.
|
|
10
|
-
<Controls of={ChoiceStories.
|
|
9
|
+
<Canvas sourceState="shown" of={ChoiceStories.Demo} />
|
|
10
|
+
<Controls of={ChoiceStories.Demo} />
|
|
@@ -4,48 +4,48 @@ declare const accordionAppearanceSize: {
|
|
|
4
4
|
titleTextSize: string;
|
|
5
5
|
badgeAppearanceSize: string;
|
|
6
6
|
contentTextSize: string;
|
|
7
|
-
icon:
|
|
7
|
+
icon: any;
|
|
8
8
|
};
|
|
9
9
|
sizeXL: {
|
|
10
10
|
size: string;
|
|
11
11
|
titleTextSize: string;
|
|
12
12
|
badgeAppearanceSize: string;
|
|
13
13
|
contentTextSize: string;
|
|
14
|
-
icon:
|
|
14
|
+
icon: any;
|
|
15
15
|
};
|
|
16
16
|
sizeL: {
|
|
17
17
|
size: string;
|
|
18
18
|
titleTextSize: string;
|
|
19
19
|
badgeAppearanceSize: string;
|
|
20
|
-
icon:
|
|
20
|
+
icon: any;
|
|
21
21
|
};
|
|
22
22
|
sizeM: {
|
|
23
23
|
size: string;
|
|
24
24
|
titleTextSize: string;
|
|
25
25
|
badgeAppearanceSize: string;
|
|
26
26
|
contentTextSize: string;
|
|
27
|
-
icon:
|
|
27
|
+
icon: any;
|
|
28
28
|
};
|
|
29
29
|
sizeS: {
|
|
30
30
|
size: string;
|
|
31
31
|
titleTextSize: string;
|
|
32
32
|
badgeAppearanceSize: string;
|
|
33
33
|
contentTextSize: string;
|
|
34
|
-
icon:
|
|
34
|
+
icon: any;
|
|
35
35
|
};
|
|
36
36
|
sizeXS: {
|
|
37
37
|
size: string;
|
|
38
38
|
titleTextSize: string;
|
|
39
39
|
badgeAppearanceSize: string;
|
|
40
40
|
contentTextSize: string;
|
|
41
|
-
icon:
|
|
41
|
+
icon: any;
|
|
42
42
|
};
|
|
43
43
|
sizeXXS: {
|
|
44
44
|
size: string;
|
|
45
45
|
titleTextSize: string;
|
|
46
46
|
badgeAppearanceSize: string;
|
|
47
47
|
contentTextSize: string;
|
|
48
|
-
icon:
|
|
48
|
+
icon: any;
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
51
|
export { accordionAppearanceSize };
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
declare const choiceAppearanceStyle: {
|
|
2
|
-
|
|
2
|
+
full: {
|
|
3
3
|
borderColor: string;
|
|
4
4
|
};
|
|
5
|
-
|
|
5
|
+
ghost: {
|
|
6
6
|
fill: string;
|
|
7
|
+
borderColor: string;
|
|
7
8
|
};
|
|
8
|
-
|
|
9
|
-
ghost: {
|
|
9
|
+
outlined: {
|
|
10
10
|
fill: string;
|
|
11
|
+
};
|
|
12
|
+
solid: {
|
|
11
13
|
borderColor: string;
|
|
12
14
|
};
|
|
13
15
|
};
|
|
@@ -21,16 +21,16 @@ export declare const datePickerAppearance: {
|
|
|
21
21
|
daySize: string;
|
|
22
22
|
dayTextSize: string;
|
|
23
23
|
iconFillSize: number;
|
|
24
|
-
iconLeft:
|
|
25
|
-
iconRight:
|
|
24
|
+
iconLeft: any;
|
|
25
|
+
iconRight: any;
|
|
26
26
|
};
|
|
27
27
|
sizeM: {
|
|
28
28
|
size: string;
|
|
29
29
|
daySize: string;
|
|
30
30
|
dayTextSize: string;
|
|
31
31
|
iconFillSize: number;
|
|
32
|
-
iconLeft:
|
|
33
|
-
iconRight:
|
|
32
|
+
iconLeft: any;
|
|
33
|
+
iconRight: any;
|
|
34
34
|
iconSize: number;
|
|
35
35
|
monthTextSize: string;
|
|
36
36
|
yearTextSize: string;
|
|
@@ -40,8 +40,8 @@ export declare const datePickerAppearance: {
|
|
|
40
40
|
daySize: string;
|
|
41
41
|
dayTextSize: string;
|
|
42
42
|
iconFillSize: number;
|
|
43
|
-
iconLeft:
|
|
44
|
-
iconRight:
|
|
43
|
+
iconLeft: any;
|
|
44
|
+
iconRight: any;
|
|
45
45
|
};
|
|
46
46
|
surfacePrimary: {
|
|
47
47
|
dayTextColor: string;
|
|
@@ -4,16 +4,16 @@ declare const datePickerSize: {
|
|
|
4
4
|
daySize: string;
|
|
5
5
|
dayTextSize: string;
|
|
6
6
|
iconFillSize: number;
|
|
7
|
-
iconLeft:
|
|
8
|
-
iconRight:
|
|
7
|
+
iconLeft: any;
|
|
8
|
+
iconRight: any;
|
|
9
9
|
};
|
|
10
10
|
sizeM: {
|
|
11
11
|
size: string;
|
|
12
12
|
daySize: string;
|
|
13
13
|
dayTextSize: string;
|
|
14
14
|
iconFillSize: number;
|
|
15
|
-
iconLeft:
|
|
16
|
-
iconRight:
|
|
15
|
+
iconLeft: any;
|
|
16
|
+
iconRight: any;
|
|
17
17
|
iconSize: number;
|
|
18
18
|
monthTextSize: string;
|
|
19
19
|
yearTextSize: string;
|
|
@@ -23,8 +23,8 @@ declare const datePickerSize: {
|
|
|
23
23
|
daySize: string;
|
|
24
24
|
dayTextSize: string;
|
|
25
25
|
iconFillSize: number;
|
|
26
|
-
iconLeft:
|
|
27
|
-
iconRight:
|
|
26
|
+
iconLeft: any;
|
|
27
|
+
iconRight: any;
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
export { datePickerSize };
|
|
@@ -5,5 +5,11 @@ declare const iconAppearanceDanger: {
|
|
|
5
5
|
labelTextColor: string;
|
|
6
6
|
labelTextColorHover: string;
|
|
7
7
|
};
|
|
8
|
+
dangerPrimary: {
|
|
9
|
+
fill: string;
|
|
10
|
+
fillHover: string;
|
|
11
|
+
labelTextColor: string;
|
|
12
|
+
labelTextColorHover: string;
|
|
13
|
+
};
|
|
8
14
|
};
|
|
9
15
|
export { iconAppearanceDanger };
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
declare const iconAppearanceStyle: {
|
|
2
|
-
|
|
2
|
+
full: {
|
|
3
3
|
borderColor: string;
|
|
4
4
|
};
|
|
5
|
-
|
|
5
|
+
ghost: {
|
|
6
6
|
fill: string;
|
|
7
|
+
borderColor: string;
|
|
7
8
|
};
|
|
8
|
-
|
|
9
|
-
ghost: {
|
|
9
|
+
outlined: {
|
|
10
10
|
fill: string;
|
|
11
|
-
|
|
11
|
+
};
|
|
12
|
+
solid: {
|
|
12
13
|
borderColor: string;
|
|
13
14
|
};
|
|
14
15
|
};
|
|
@@ -5,5 +5,11 @@ declare const iconAppearanceWarning: {
|
|
|
5
5
|
labelTextColor: string;
|
|
6
6
|
labelTextColorHover: string;
|
|
7
7
|
};
|
|
8
|
+
warningPrimary: {
|
|
9
|
+
fill: string;
|
|
10
|
+
fillHover: string;
|
|
11
|
+
labelTextColor: string;
|
|
12
|
+
labelTextColorHover: string;
|
|
13
|
+
};
|
|
8
14
|
};
|
|
9
15
|
export { iconAppearanceWarning };
|