@itcase/ui 1.8.35 → 1.8.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Avatar_cjs_kADy_b4o.js → Avatar_cjs_nMPCDjk8.js} +1 -1
- package/dist/{Avatar_es_DbGpnL99.js → Avatar_es_B73a6TzA.js} +1 -1
- package/dist/{Button_cjs_CW6ENTbm.js → Button_cjs_plv5-qcj.js} +11 -2
- package/dist/{Button_es_DTUagqgU.js → Button_es_BigB2Wz6.js} +11 -2
- package/dist/ChipsGroup_cjs_DrOhD-Fc.js +312 -0
- package/dist/ChipsGroup_es_B9m4l0wN.js +307 -0
- package/dist/{DatePicker_cjs_Bx5_lZNT.js → DatePicker_cjs_CmqgSNw7.js} +4 -4
- package/dist/{DatePicker_es_A1FcasHs.js → DatePicker_es_mk9wFTe9.js} +4 -4
- package/dist/{DropdownItem_cjs_tH2DBClp.js → DropdownItem_cjs_DQvByLbN.js} +1 -1
- package/dist/{DropdownItem_es_BeVv-pDA.js → DropdownItem_es_KppIfto7.js} +1 -1
- package/dist/{Input_cjs_arr_wxD2.js → Input_cjs_CPmXkQGd.js} +1 -0
- package/dist/{Input_es_BW6cZThr.js → Input_es_D9Y1Rj5Y.js} +1 -0
- package/dist/{Label_cjs_CP4b6Mg2.js → Label_cjs_BGJfyrOL.js} +15 -13
- package/dist/{Label_es_DFSiy5sL.js → Label_es_C4Px7b-N.js} +15 -13
- package/dist/{Loader_cjs_CCrbD8Em.js → Loader_cjs_Ca4i0sER.js} +4 -2
- package/dist/{Loader_es_B2auu_rc.js → Loader_es_GYOr0UTX.js} +4 -2
- package/dist/{Tooltip_cjs_DinScDnC.js → Tooltip_cjs_DHduWa-v.js} +76 -70
- package/dist/{Tooltip_es_B0nm9irO.js → Tooltip_es_ltCY-w4M.js} +76 -70
- package/dist/cjs/components/Accordion.js +1 -1
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/AvatarStack.js +2 -2
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Breadcrumbs/stories/__mock__.js +32 -41
- package/dist/cjs/components/Breadcrumbs.js +41 -124
- package/dist/cjs/components/Button.js +3 -3
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips/stories/__mock__.js +31 -0
- package/dist/cjs/components/Chips.js +4 -4
- package/dist/cjs/components/Choice/stories/__mock__.js +15 -15
- package/dist/cjs/components/Choice.js +20 -18
- package/dist/cjs/components/CookiesWarning.js +3 -3
- package/dist/cjs/components/Dadata.js +1 -1
- package/dist/cjs/components/DatePeriod.js +7 -7
- package/dist/cjs/components/DatePicker.js +6 -6
- package/dist/cjs/components/Drawer.js +1 -1
- package/dist/cjs/components/Dropdown/stories/__mock__.js +104 -33
- package/dist/cjs/components/Dropdown.js +2 -2
- package/dist/cjs/components/HeroTitle.js +1 -1
- package/dist/cjs/components/Icon.js +1 -1
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputPassword.js +1 -1
- package/dist/cjs/components/Label.js +2 -2
- package/dist/cjs/components/Loader.js +1 -1
- package/dist/cjs/components/MenuItem.js +17 -12
- package/dist/cjs/components/Modal.js +2 -2
- package/dist/cjs/components/Notification.js +3 -8
- package/dist/cjs/components/Pagination.js +2 -4
- package/dist/cjs/components/Response.js +3 -3
- package/dist/cjs/components/ScrollOnDrag.js +5 -3
- package/dist/cjs/components/Search.js +1 -1
- package/dist/cjs/components/Segmented/stories/__mock__.js +26 -11
- package/dist/cjs/components/Segmented.js +84 -52
- package/dist/cjs/components/Select.js +1 -1
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/cjs/components/Textarea.js +8 -9
- package/dist/cjs/components/Tile.js +1 -1
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/cjs/hooks/useStyles/styleAttributes.js +1 -1
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Avatar.js +2 -2
- package/dist/components/AvatarStack.js +2 -2
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumbs/stories/__mock__.js +32 -41
- package/dist/components/Breadcrumbs.js +41 -124
- package/dist/components/Button.js +3 -3
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips/stories/__mock__.js +29 -0
- package/dist/components/Chips.js +4 -4
- package/dist/components/Choice/stories/__mock__.js +15 -15
- package/dist/components/Choice.js +20 -18
- package/dist/components/CookiesWarning.js +3 -3
- package/dist/components/Dadata.js +1 -1
- package/dist/components/DatePeriod.js +7 -7
- package/dist/components/DatePicker.js +6 -6
- package/dist/components/Drawer.js +1 -1
- package/dist/components/Dropdown/stories/__mock__.js +102 -34
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/HeroTitle.js +1 -1
- package/dist/components/Icon.js +1 -1
- package/dist/components/Input.js +1 -1
- package/dist/components/InputPassword.js +1 -1
- package/dist/components/Label.js +2 -2
- package/dist/components/Loader.js +1 -1
- package/dist/components/MenuItem.js +17 -12
- package/dist/components/Modal.js +2 -2
- package/dist/components/Notification.js +3 -8
- package/dist/components/Pagination.js +3 -5
- package/dist/components/Response.js +3 -3
- package/dist/components/ScrollOnDrag.js +7 -5
- package/dist/components/Search.js +1 -1
- package/dist/components/Segmented/stories/__mock__.js +24 -12
- package/dist/components/Segmented.js +84 -52
- package/dist/components/Select.js +1 -1
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab.js +1 -1
- package/dist/components/Textarea.js +8 -9
- package/dist/components/Tile.js +1 -1
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/css/components/Breadcrumbs/Breadcrumbs.css +39 -6
- package/dist/css/components/Chips/Chips.css +40 -14
- package/dist/css/components/Icon/Icon.css +24 -0
- package/dist/css/components/Loader/Loader.css +1 -19
- package/dist/css/components/MenuItem/MenuItem.css +53 -30
- package/dist/css/components/Notification/Notification.css +0 -48
- package/dist/css/components/ScrollOnDrag/ScrollOnDrag.css +230 -4
- package/dist/css/components/Segmented/Segmented.css +64 -8
- package/dist/css/components/Segmented/css/__item/segmaented__item.css +28 -0
- package/dist/css/styles/centering/centering.css +17 -0
- package/dist/css/styles/shape-strength/shape-strength.css +6 -0
- package/dist/hooks/useStyles/styleAttributes.js +1 -1
- package/dist/stories/BreadcrumbsPlsyground.mdx +1 -1
- package/dist/stories/ChipsOverview.mdx +26 -14
- package/dist/stories/ChipsPlayground.mdx +3 -3
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsAccent.d.ts +2 -12
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSize.d.ts +7 -14
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsStyle.d.ts +4 -6
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSurface.d.ts +11 -8
- package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +5 -8
- package/dist/types/components/Button/appearance/buttonSurface.d.ts +9 -0
- package/dist/types/components/Chips/Chips.interface.d.ts +1 -0
- package/dist/types/components/Chips/appearance/chipsAccent.d.ts +9 -1
- package/dist/types/components/Chips/appearance/chipsDanger.d.ts +16 -1
- package/dist/types/components/Chips/appearance/chipsError.d.ts +16 -1
- package/dist/types/components/Chips/appearance/chipsInfo.d.ts +16 -1
- package/dist/types/components/Chips/appearance/chipsPrimary.d.ts +11 -2
- package/dist/types/components/Chips/appearance/chipsSecondary.d.ts +10 -2
- package/dist/types/components/Chips/appearance/chipsSuccess.d.ts +16 -1
- package/dist/types/components/Chips/appearance/chipsSurface.d.ts +11 -1
- package/dist/types/components/Chips/appearance/chipsWarning.d.ts +16 -1
- package/dist/types/components/Chips/stories/__mock__/index.d.ts +14 -0
- package/dist/types/components/Choice/appearance/choiceDefault.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceDisabled.d.ts +1 -1
- package/dist/types/components/Choice/appearance/choiceError.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceRequire.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceStyle.d.ts +4 -6
- package/dist/types/components/Choice/appearance/choiceSuccess.d.ts +1 -0
- package/dist/types/components/Choice/stories/__mock__/index.d.ts +3 -9
- package/dist/types/components/Dropdown/stories/__mock__/index.d.ts +87 -44
- package/dist/types/components/Icon/appearance/iconAccent.d.ts +2 -4
- package/dist/types/components/Icon/appearance/iconDanger.d.ts +2 -4
- package/dist/types/components/Icon/appearance/iconDisabled.d.ts +12 -0
- package/dist/types/components/Icon/appearance/iconError.d.ts +4 -4
- package/dist/types/components/Icon/appearance/iconInfo.d.ts +7 -4
- package/dist/types/components/Icon/appearance/iconPrimary.d.ts +4 -2
- package/dist/types/components/Icon/appearance/iconSecondary.d.ts +2 -2
- package/dist/types/components/Icon/appearance/iconStyle.d.ts +4 -6
- package/dist/types/components/Icon/appearance/iconSuccess.d.ts +0 -2
- package/dist/types/components/Icon/appearance/iconSurface.d.ts +0 -5
- package/dist/types/components/Icon/appearance/iconWarning.d.ts +4 -4
- package/dist/types/components/Input/appearance/inputDefault.d.ts +1 -0
- package/dist/types/components/Label/appearance/labelDisable.d.ts +2 -2
- package/dist/types/components/Label/appearance/labelPrimary.d.ts +1 -0
- package/dist/types/components/Label/appearance/labelSurface.d.ts +1 -0
- package/dist/types/components/MenuItem/appearance/menuItemStyle.d.ts +4 -6
- package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +5 -0
- package/dist/types/components/Notification/appearance/notificationDefault.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationError.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationInfo.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationSuccess.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationWarning.d.ts +0 -1
- package/dist/types/components/Segmented/Segmented.interface.d.ts +5 -2
- package/dist/types/components/Segmented/appearance/segmentedDefault.d.ts +8 -11
- package/dist/types/components/Segmented/appearance/segmentedDisabled.d.ts +8 -10
- package/dist/types/components/Segmented/appearance/segmentedError.d.ts +10 -1
- package/dist/types/components/Segmented/appearance/segmentedSize.d.ts +5 -0
- package/dist/types/components/Segmented/appearance/segmentedStyle.d.ts +3 -3
- package/dist/types/components/Segmented/appearance/segmentedSuccess.d.ts +10 -1
- package/dist/types/components/Segmented/appearance/segmentedWarning.d.ts +10 -1
- package/dist/types/components/Segmented/stories/__mock__/index.d.ts +31 -9
- package/dist/types/components/Textarea/appearance/textareaDefault.d.ts +1 -0
- package/dist/types/components/Textarea/appearance/textareaStyle.d.ts +4 -4
- package/dist/types/context/UIContext.d.ts +3 -5
- package/package.json +8 -7
- package/dist/ChipsGroup_cjs_j3QOma3U.js +0 -200
- package/dist/ChipsGroup_es_DF1fhn97.js +0 -195
- package/dist/css/components/Notification/css/__item/notification__item_status.css +0 -48
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsDanger.d.ts +0 -7
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsError.d.ts +0 -9
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsInfo.d.ts +0 -17
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsPrimary.d.ts +0 -8
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSecondary.d.ts +0 -8
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSuccess.d.ts +0 -9
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsWarning.d.ts +0 -9
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
.menu-item {
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
|
+
&:hover {
|
|
5
|
+
^&__tooltip {
|
|
6
|
+
visibility: visible !important;
|
|
7
|
+
animation-duration: 0.2s !important;
|
|
8
|
+
animation-name: menuTooltipShowAnimation !important;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
4
11
|
&__wrapper {
|
|
5
12
|
width: 100%;
|
|
13
|
+
position: relative;
|
|
6
14
|
display: flex;
|
|
7
15
|
align-items: center;
|
|
8
16
|
align-content: center;
|
|
@@ -11,6 +19,30 @@
|
|
|
11
19
|
align-items: center;
|
|
12
20
|
flex-grow: 1;
|
|
13
21
|
}
|
|
22
|
+
^&__tooltip {
|
|
23
|
+
visibility: hidden !important;
|
|
24
|
+
animation-duration: 0.2s !important;
|
|
25
|
+
animation-name: menuTooltipHideAnimation !important;
|
|
26
|
+
opacity: 100% !important;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@keyframes menuTooltipShowAnimation {
|
|
32
|
+
0% {
|
|
33
|
+
visibility: hidden;
|
|
34
|
+
}
|
|
35
|
+
100% {
|
|
36
|
+
visibility: visible;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@keyframes menuTooltipHideAnimation {
|
|
41
|
+
0% {
|
|
42
|
+
visibility: visible;
|
|
43
|
+
}
|
|
44
|
+
100% {
|
|
45
|
+
visibility: hidden;
|
|
14
46
|
}
|
|
15
47
|
}
|
|
16
48
|
|
|
@@ -36,28 +68,15 @@
|
|
|
36
68
|
}
|
|
37
69
|
}
|
|
38
70
|
|
|
39
|
-
.menu-item {
|
|
40
|
-
&_shape {
|
|
41
|
-
&_rounded {
|
|
42
|
-
border-radius: var(--menu-item-shape-rounded);
|
|
43
|
-
}
|
|
44
|
-
&_circular {
|
|
45
|
-
border-radius: 50%;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
71
|
.menu-item {
|
|
51
72
|
&_size {
|
|
52
73
|
@each $size in xxl, xl, l, m, s, xs, xxs {
|
|
53
74
|
&_$(size) {
|
|
54
75
|
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);
|
|
57
76
|
^^&__wrapper {
|
|
58
|
-
min-height: var(--menu-item-size-$(size)-min-height);
|
|
59
|
-
padding: var(--menu-item-size-$(size)-padding);
|
|
60
77
|
gap: var(--menu-item-size-$(size)-gap);
|
|
78
|
+
padding: var(--menu-item-size-$(size)-padding);
|
|
79
|
+
border-radius: var(--menu-item-size-$(size)-rounded);
|
|
61
80
|
}
|
|
62
81
|
}
|
|
63
82
|
}
|
|
@@ -91,23 +110,27 @@
|
|
|
91
110
|
}
|
|
92
111
|
|
|
93
112
|
:root {
|
|
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
113
|
--menu-item-size-xxl-padding: 14px;
|
|
114
|
+
--menu-item-size-xl-padding: 10px;
|
|
115
|
+
--menu-item-size-l-padding: 8px;
|
|
116
|
+
--menu-item-size-m-padding: 6px;
|
|
117
|
+
--menu-item-size-s-padding: 6px;
|
|
118
|
+
--menu-item-size-xs-padding: 4px;
|
|
119
|
+
--menu-item-size-xxs-padding: 2px;
|
|
101
120
|
|
|
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
121
|
--menu-item-size-xxl-gap: 8px;
|
|
122
|
+
--menu-item-size-xl-gap: 8px;
|
|
123
|
+
--menu-item-size-l-gap: 8px;
|
|
124
|
+
--menu-item-size-m-gap: 6px;
|
|
125
|
+
--menu-item-size-s-gap: 6px;
|
|
126
|
+
--menu-item-size-xs-gap: 4px;
|
|
127
|
+
--menu-item-size-xxs-gap: 4px;
|
|
109
128
|
|
|
110
|
-
--menu-item-size-
|
|
111
|
-
|
|
112
|
-
--menu-item-
|
|
129
|
+
--menu-item-size-xxl-min-height: 48px;
|
|
130
|
+
--menu-item-size-xl-min-height: 40px;
|
|
131
|
+
--menu-item-size-l-min-height: 32px;
|
|
132
|
+
--menu-item-size-m-min-height: 28px;
|
|
133
|
+
--menu-item-size-s-min-height: 24px;
|
|
134
|
+
--menu-item-size-xs-min-height: 20px;
|
|
135
|
+
--menu-item-size-xxs-min-height: 16px;
|
|
113
136
|
}
|
|
@@ -76,54 +76,6 @@
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
.notification__item {
|
|
80
|
-
&_status {
|
|
81
|
-
&_success {
|
|
82
|
-
/* background: var(--color-success-fill-primary);
|
|
83
|
-
^^&-wrapper {
|
|
84
|
-
^^^&-title {
|
|
85
|
-
color: var(--color-success-text-secondary);
|
|
86
|
-
}
|
|
87
|
-
^^^&-text {
|
|
88
|
-
color: var(--color-success-text-secondary);
|
|
89
|
-
}
|
|
90
|
-
} */
|
|
91
|
-
}
|
|
92
|
-
&_error {
|
|
93
|
-
/* background: var(--color-error-fill-primary);
|
|
94
|
-
^^&-wrapper {
|
|
95
|
-
^^^&-title {
|
|
96
|
-
color: var(--color-error-text-secondary);
|
|
97
|
-
}
|
|
98
|
-
^^^&-text {
|
|
99
|
-
color: var(--color-error-text-secondary);
|
|
100
|
-
}
|
|
101
|
-
} */
|
|
102
|
-
}
|
|
103
|
-
&_warning {
|
|
104
|
-
/* background: var(--color-primary-fill-primary);
|
|
105
|
-
^^&-wrapper {
|
|
106
|
-
^^^&-title {
|
|
107
|
-
color: var(--color-primary-text-primary);
|
|
108
|
-
}
|
|
109
|
-
^^^&-text {
|
|
110
|
-
color: var(--color-primary-text-primary);
|
|
111
|
-
}
|
|
112
|
-
} */
|
|
113
|
-
}
|
|
114
|
-
&_info {
|
|
115
|
-
/* background: var(--color-info-fill-primary);
|
|
116
|
-
^^&-wrapper {
|
|
117
|
-
^^^&-title {
|
|
118
|
-
color: var(--color-info-text-primary);
|
|
119
|
-
}
|
|
120
|
-
^^^&-text {
|
|
121
|
-
color: var(--color-info-text-primary);
|
|
122
|
-
}
|
|
123
|
-
} */
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
79
|
.notification__item {
|
|
128
80
|
min-width: 240px;
|
|
129
81
|
padding: 12px;
|
|
@@ -7,21 +7,22 @@
|
|
|
7
7
|
width: 100%;
|
|
8
8
|
&.indiana-scroll-container {
|
|
9
9
|
overflow: auto;
|
|
10
|
+
cursor: grab;
|
|
10
11
|
&--dragging {
|
|
11
12
|
scroll-behavior: auto;
|
|
12
13
|
}
|
|
13
14
|
&--hide-scrollbars {
|
|
14
|
-
overflow: hidden;
|
|
15
|
+
/* overflow: hidden;
|
|
15
16
|
overflow: -moz-scrollbars-none;
|
|
16
17
|
-ms-overflow-style: none;
|
|
17
|
-
scrollbar-width: none;
|
|
18
|
-
&::-webkit-scrollbar {
|
|
18
|
+
scrollbar-width: none; */
|
|
19
|
+
/* &::-webkit-scrollbar {
|
|
19
20
|
width: 0 !important;
|
|
20
21
|
height: 0 !important;
|
|
21
22
|
background: transparent !important;
|
|
22
23
|
display: none !important;
|
|
23
24
|
appearance: none !important;
|
|
24
|
-
}
|
|
25
|
+
} */
|
|
25
26
|
}
|
|
26
27
|
&--native-scroll {
|
|
27
28
|
overflow: auto;
|
|
@@ -29,3 +30,228 @@
|
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
}
|
|
33
|
+
|
|
34
|
+
[data-simplebar] {
|
|
35
|
+
width: 100%;
|
|
36
|
+
position: relative;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
flex-wrap: wrap;
|
|
39
|
+
justify-content: flex-start;
|
|
40
|
+
align-content: flex-start;
|
|
41
|
+
align-items: flex-start;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.simplebar-wrapper {
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
width: inherit;
|
|
47
|
+
height: inherit;
|
|
48
|
+
max-width: inherit;
|
|
49
|
+
max-height: inherit;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.simplebar-mask {
|
|
53
|
+
direction: inherit;
|
|
54
|
+
position: absolute;
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
padding: 0;
|
|
57
|
+
margin: 0;
|
|
58
|
+
left: 0;
|
|
59
|
+
top: 0;
|
|
60
|
+
bottom: 0;
|
|
61
|
+
right: 0;
|
|
62
|
+
width: auto !important;
|
|
63
|
+
height: auto !important;
|
|
64
|
+
z-index: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.simplebar-offset {
|
|
68
|
+
direction: inherit !important;
|
|
69
|
+
box-sizing: inherit !important;
|
|
70
|
+
resize: none !important;
|
|
71
|
+
position: absolute;
|
|
72
|
+
top: 0;
|
|
73
|
+
left: 0;
|
|
74
|
+
bottom: 0;
|
|
75
|
+
right: 0;
|
|
76
|
+
padding: 0;
|
|
77
|
+
margin: 0;
|
|
78
|
+
-webkit-overflow-scrolling: touch;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.simplebar-content-wrapper {
|
|
82
|
+
direction: inherit;
|
|
83
|
+
box-sizing: border-box !important;
|
|
84
|
+
position: relative;
|
|
85
|
+
display: block;
|
|
86
|
+
height: 100%; /* Required for horizontal native scrollbar to not appear if parent is taller than natural height */
|
|
87
|
+
width: auto;
|
|
88
|
+
max-width: 100%; /* Not required for horizontal scroll to trigger */
|
|
89
|
+
max-height: 100%; /* Needed for vertical scroll to trigger */
|
|
90
|
+
overflow: auto;
|
|
91
|
+
scrollbar-width: none;
|
|
92
|
+
-ms-overflow-style: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.simplebar-content-wrapper::-webkit-scrollbar,
|
|
96
|
+
.simplebar-hide-scrollbar::-webkit-scrollbar {
|
|
97
|
+
display: none;
|
|
98
|
+
width: 0;
|
|
99
|
+
height: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.simplebar-content:before,
|
|
103
|
+
.simplebar-content:after {
|
|
104
|
+
content: ' ';
|
|
105
|
+
display: table;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.simplebar-placeholder {
|
|
109
|
+
max-height: 100%;
|
|
110
|
+
max-width: 100%;
|
|
111
|
+
width: 100%;
|
|
112
|
+
pointer-events: none;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.simplebar-height-auto-observer-wrapper {
|
|
116
|
+
box-sizing: inherit !important;
|
|
117
|
+
height: 100%;
|
|
118
|
+
width: 100%;
|
|
119
|
+
max-width: 1px;
|
|
120
|
+
position: relative;
|
|
121
|
+
float: left;
|
|
122
|
+
max-height: 1px;
|
|
123
|
+
overflow: hidden;
|
|
124
|
+
z-index: -1;
|
|
125
|
+
padding: 0;
|
|
126
|
+
margin: 0;
|
|
127
|
+
pointer-events: none;
|
|
128
|
+
flex-grow: inherit;
|
|
129
|
+
flex-shrink: 0;
|
|
130
|
+
flex-basis: 0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.simplebar-height-auto-observer {
|
|
134
|
+
box-sizing: inherit;
|
|
135
|
+
display: block;
|
|
136
|
+
opacity: 0;
|
|
137
|
+
position: absolute;
|
|
138
|
+
top: 0;
|
|
139
|
+
left: 0;
|
|
140
|
+
height: 1000%;
|
|
141
|
+
width: 1000%;
|
|
142
|
+
min-height: 1px;
|
|
143
|
+
min-width: 1px;
|
|
144
|
+
overflow: hidden;
|
|
145
|
+
pointer-events: none;
|
|
146
|
+
z-index: -1;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.simplebar-track {
|
|
150
|
+
z-index: 1;
|
|
151
|
+
position: absolute;
|
|
152
|
+
right: 0;
|
|
153
|
+
bottom: 0;
|
|
154
|
+
pointer-events: none;
|
|
155
|
+
overflow: hidden;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
[data-simplebar].simplebar-dragging {
|
|
159
|
+
pointer-events: none;
|
|
160
|
+
|
|
161
|
+
user-select: none;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
[data-simplebar].simplebar-dragging .simplebar-content {
|
|
165
|
+
pointer-events: none;
|
|
166
|
+
|
|
167
|
+
user-select: none;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
[data-simplebar].simplebar-dragging .simplebar-track {
|
|
171
|
+
pointer-events: all;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.simplebar-scrollbar {
|
|
175
|
+
position: absolute;
|
|
176
|
+
left: 0;
|
|
177
|
+
right: 0;
|
|
178
|
+
min-height: 10px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.simplebar-scrollbar:before {
|
|
182
|
+
position: absolute;
|
|
183
|
+
content: '';
|
|
184
|
+
background: black;
|
|
185
|
+
border-radius: 7px;
|
|
186
|
+
left: 2px;
|
|
187
|
+
right: 2px;
|
|
188
|
+
opacity: 0;
|
|
189
|
+
transition: opacity 0.2s 0.5s linear;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.simplebar-scrollbar.simplebar-visible:before {
|
|
193
|
+
opacity: 0.5;
|
|
194
|
+
transition-delay: 0s;
|
|
195
|
+
transition-duration: 0s;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.simplebar-track.simplebar-vertical {
|
|
199
|
+
top: 0;
|
|
200
|
+
width: 11px;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.simplebar-scrollbar:before {
|
|
204
|
+
top: 2px;
|
|
205
|
+
bottom: 2px;
|
|
206
|
+
left: 2px;
|
|
207
|
+
right: 2px;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.simplebar-track.simplebar-horizontal {
|
|
211
|
+
left: 0;
|
|
212
|
+
height: 11px;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.simplebar-track.simplebar-horizontal .simplebar-scrollbar {
|
|
216
|
+
right: auto;
|
|
217
|
+
left: 0;
|
|
218
|
+
top: 0;
|
|
219
|
+
bottom: 0;
|
|
220
|
+
min-height: 0;
|
|
221
|
+
min-width: 10px;
|
|
222
|
+
width: auto;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* Rtl support */
|
|
226
|
+
|
|
227
|
+
[data-simplebar-direction='rtl'] .simplebar-track.simplebar-vertical {
|
|
228
|
+
right: auto;
|
|
229
|
+
left: 0;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.simplebar-dummy-scrollbar-size {
|
|
233
|
+
direction: rtl;
|
|
234
|
+
position: fixed;
|
|
235
|
+
opacity: 0;
|
|
236
|
+
visibility: hidden;
|
|
237
|
+
height: 500px;
|
|
238
|
+
width: 500px;
|
|
239
|
+
overflow-y: hidden;
|
|
240
|
+
overflow-x: scroll;
|
|
241
|
+
-ms-overflow-style: scrollbar !important;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.simplebar-dummy-scrollbar-size > div {
|
|
245
|
+
width: 200%;
|
|
246
|
+
height: 200%;
|
|
247
|
+
margin: 10px 0;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.simplebar-hide-scrollbar {
|
|
251
|
+
position: fixed;
|
|
252
|
+
left: 0;
|
|
253
|
+
visibility: hidden;
|
|
254
|
+
overflow-y: scroll;
|
|
255
|
+
scrollbar-width: none;
|
|
256
|
+
-ms-overflow-style: none;
|
|
257
|
+
}
|
|
@@ -24,13 +24,11 @@
|
|
|
24
24
|
width 0.3s ease;
|
|
25
25
|
}
|
|
26
26
|
^^&__item {
|
|
27
|
-
min-width: 120px;
|
|
28
|
-
border-radius: 6px;
|
|
29
27
|
position: relative;
|
|
30
28
|
display: flex;
|
|
31
29
|
align-items: center;
|
|
32
30
|
&::after {
|
|
33
|
-
width: 1px;
|
|
31
|
+
/* width: 1px; */
|
|
34
32
|
height: 100%;
|
|
35
33
|
background: var(--color-surface-border-tertiary);
|
|
36
34
|
content: '';
|
|
@@ -90,8 +88,12 @@
|
|
|
90
88
|
@each $size in normal, compact, xxl, xl, l, m, s, xs, xxs {
|
|
91
89
|
&_$(size) {
|
|
92
90
|
^^&__item {
|
|
91
|
+
min-width: var(--segmented-item-size-$(size)-min-width);
|
|
92
|
+
border-radius: var(--segmented-item-size-$(size)-border-radius);
|
|
93
93
|
&-label {
|
|
94
|
+
min-height: var(--segmented-item-size-$(size)-min-height);
|
|
94
95
|
padding: var(--segmented-item-size-$(size)-padding);
|
|
96
|
+
gap: var(--segmented-item-size-$(size)-gap);
|
|
95
97
|
}
|
|
96
98
|
}
|
|
97
99
|
}
|
|
@@ -138,13 +140,67 @@
|
|
|
138
140
|
background-position: -200%;
|
|
139
141
|
}
|
|
140
142
|
}
|
|
143
|
+
.segmented__item {
|
|
144
|
+
position: relative;
|
|
145
|
+
display: flex;
|
|
146
|
+
&_icon {
|
|
147
|
+
min-width: auto;
|
|
148
|
+
}
|
|
149
|
+
& input {
|
|
150
|
+
width: 100%;
|
|
151
|
+
height: 100%;
|
|
152
|
+
margin: 0;
|
|
153
|
+
border: 0;
|
|
154
|
+
position: absolute;
|
|
155
|
+
inset: 0 0 0 0;
|
|
156
|
+
z-index: 2;
|
|
157
|
+
opacity: 0%;
|
|
158
|
+
cursor: pointer;
|
|
159
|
+
}
|
|
160
|
+
&-label {
|
|
161
|
+
width: 100%;
|
|
162
|
+
text-align: center;
|
|
163
|
+
position: relative;
|
|
164
|
+
display: flex;
|
|
165
|
+
align-items: center;
|
|
166
|
+
z-index: 3;
|
|
167
|
+
transition: color 0.5s ease;
|
|
168
|
+
cursor: pointer;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
141
171
|
:root {
|
|
142
|
-
--segmented-item-size-l-padding:
|
|
143
|
-
--segmented-item-size-m-padding:
|
|
144
|
-
--segmented-item-size-s-padding: 8px
|
|
145
|
-
--segmented-item-size-xs-padding:
|
|
146
|
-
--segmented-item-size-xxs-padding: 4px
|
|
172
|
+
--segmented-item-size-l-padding: 0 12px;
|
|
173
|
+
--segmented-item-size-m-padding: 0 10px;
|
|
174
|
+
--segmented-item-size-s-padding: 0 8px;
|
|
175
|
+
--segmented-item-size-xs-padding: 0 8px;
|
|
176
|
+
--segmented-item-size-xxs-padding: 0 4px;
|
|
177
|
+
|
|
178
|
+
--segmented-item-size-l-min-width: 120px;
|
|
179
|
+
--segmented-item-size-m-min-width: 120px;
|
|
180
|
+
--segmented-item-size-s-min-width: 80px;
|
|
181
|
+
--segmented-item-size-xs-min-width: 80px;
|
|
182
|
+
--segmented-item-size-xxs-min-width: 60px;
|
|
183
|
+
|
|
184
|
+
--segmented-item-size-l-border-radius: 6px;
|
|
185
|
+
--segmented-item-size-m-border-radius: 6px;
|
|
186
|
+
--segmented-item-size-s-border-radius: 6px;
|
|
187
|
+
--segmented-item-size-xs-border-radius: 6px;
|
|
188
|
+
--segmented-item-size-xxs-border-radius: 6px;
|
|
189
|
+
|
|
190
|
+
--segmented-item-size-l-gap: 12px;
|
|
191
|
+
--segmented-item-size-m-gap: 8px;
|
|
192
|
+
--segmented-item-size-s-gap: 8px;
|
|
193
|
+
--segmented-item-size-xs-gap: 4px;
|
|
194
|
+
--segmented-item-size-xxs-gap: 4px;
|
|
147
195
|
|
|
148
196
|
--segmented-active-width: 0;
|
|
149
197
|
--segmented-active-x-pos: 0;
|
|
198
|
+
|
|
199
|
+
--segmented-item-size-l-min-height: 40px;
|
|
200
|
+
--segmented-item-size-m-min-height: 36px;
|
|
201
|
+
--segmented-item-size-s-min-height: 28px;
|
|
202
|
+
--segmented-item-size-xs-min-height: 20px;
|
|
203
|
+
--segmented-item-size-xxs-min-height: 16px;
|
|
204
|
+
|
|
205
|
+
--segmented-shape-rounded: 8px;
|
|
150
206
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.segmented__item {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
&_icon {
|
|
5
|
+
min-width: auto;
|
|
6
|
+
}
|
|
7
|
+
& input {
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 100%;
|
|
10
|
+
margin: 0;
|
|
11
|
+
border: 0;
|
|
12
|
+
position: absolute;
|
|
13
|
+
inset: 0 0 0 0;
|
|
14
|
+
z-index: 2;
|
|
15
|
+
opacity: 0%;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
}
|
|
18
|
+
&-label {
|
|
19
|
+
width: 100%;
|
|
20
|
+
text-align: center;
|
|
21
|
+
position: relative;
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
z-index: 3;
|
|
25
|
+
transition: color 0.5s ease;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.centering {
|
|
2
|
+
&_horizontal {
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
}
|
|
6
|
+
&_vertical {
|
|
7
|
+
position: absolute;
|
|
8
|
+
top: 50%;
|
|
9
|
+
transform: translateY(-50%);
|
|
10
|
+
}
|
|
11
|
+
&_both {
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: 50%;
|
|
14
|
+
left: 50%;
|
|
15
|
+
transform: translate(-50%, -50%);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -2,7 +2,7 @@ var styleAttributes = [
|
|
|
2
2
|
/**
|
|
3
3
|
* Layout
|
|
4
4
|
*/
|
|
5
|
-
'alignContent', 'alignItems', 'alignSelf', 'aspectRatio', 'border', 'borderBottomWidth', 'borderEndWidth', 'borderLeftWidth', 'borderRightWidth', 'borderStartWidth', 'borderTopWidth', 'borderWidth', 'bottom', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'gap', 'rowGap', 'columnGap', 'columnWidth', 'height', 'justifyContent', 'left', 'margin', 'marginBottom', 'marginEnd', 'marginHorizontal', 'marginLeft', 'marginRight', 'marginStart', 'marginTop', 'marginVertical', 'maxHeight', 'maxWidth', 'minHeight', 'minWidth', 'overflow', 'padding', 'paddingBottom', 'paddingEnd', 'paddingHorizontal', 'paddingLeft', 'paddingRight', 'paddingStart', 'paddingTop', 'paddingVertical', 'position', 'right', 'top', ['width', {
|
|
5
|
+
'alignContent', 'alignItems', 'alignSelf', 'aspectRatio', 'border', 'borderBottomWidth', 'borderEndWidth', 'borderLeftWidth', 'borderRightWidth', 'borderStartWidth', 'borderTopWidth', 'borderWidth', 'bottom', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'gap', 'rowGap', 'columnGap', 'columnWidth', 'height', 'justifyContent', 'left', 'margin', 'marginBottom', 'marginEnd', 'marginHorizontal', 'marginLeft', 'marginRight', 'marginStart', 'marginTop', 'marginVertical', 'maxHeight', 'maxWidth', 'minHeight', 'minWidth', 'overflow', 'overflowY', 'overflowX', 'padding', 'paddingBottom', 'paddingEnd', 'paddingHorizontal', 'paddingLeft', 'paddingRight', 'paddingStart', 'paddingTop', 'paddingVertical', 'position', 'right', 'top', ['width', {
|
|
6
6
|
validate: value => {
|
|
7
7
|
// Pass only number value for "width" style.
|
|
8
8
|
// If width have custom value, like "fill", we must set class by this value.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta, Story, Canvas } from '@storybook/blocks'
|
|
2
2
|
|
|
3
|
-
import * as ChipsStories from '../stories/
|
|
3
|
+
import * as ChipsStories from '../stories/ChipsDefault.stories'
|
|
4
4
|
|
|
5
5
|
<Meta title="Atoms / Chips / Overview" />
|
|
6
6
|
|
|
@@ -9,29 +9,41 @@ import * as ChipsStories from '../stories/ChipsAppearance.stories'
|
|
|
9
9
|
`Chips` — это компактная альтернатива чекбоксам. Они позволяют пользователям выбирать несколько вариантов одновременно и в основном применяются на мобильных устройствах для переключений фильтров.
|
|
10
10
|
Данный компонент может быть использован в компоненте множественного выбора (SelectMulti).
|
|
11
11
|
|
|
12
|
-
<Canvas sourceState="shown"of={ChipsStories.
|
|
12
|
+
<Canvas sourceState="shown"of={ChipsStories.SurfacePrimary} />
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
##
|
|
15
|
+
## SurfacePrimary
|
|
16
16
|
|
|
17
|
-
<Canvas sourceState="shown" of={ChipsStories.
|
|
17
|
+
<Canvas sourceState="shown" of={ChipsStories.SurfacePrimary} />
|
|
18
18
|
|
|
19
|
-
##
|
|
19
|
+
## AccentPrimary
|
|
20
20
|
|
|
21
|
-
<Canvas sourceState="shown" of={ChipsStories.
|
|
21
|
+
<Canvas sourceState="shown" of={ChipsStories.AccentPrimary} />
|
|
22
22
|
|
|
23
|
-
##
|
|
23
|
+
## ErrorPrimary
|
|
24
24
|
|
|
25
|
-
<Canvas sourceState="shown" of={ChipsStories.
|
|
25
|
+
<Canvas sourceState="shown" of={ChipsStories.ErrorPrimary} />
|
|
26
26
|
|
|
27
|
-
##
|
|
27
|
+
## PrimaryPrimary
|
|
28
28
|
|
|
29
|
-
<Canvas sourceState="shown" of={ChipsStories.
|
|
29
|
+
<Canvas sourceState="shown" of={ChipsStories.PrimaryPrimary} />
|
|
30
|
+
|
|
31
|
+
## SecondaryPrimary
|
|
32
|
+
|
|
33
|
+
<Canvas sourceState="shown" of={ChipsStories.SecondaryPrimary} />
|
|
34
|
+
|
|
35
|
+
## SuccessPrimary
|
|
36
|
+
|
|
37
|
+
<Canvas sourceState="shown" of={ChipsStories.SuccessPrimary} />
|
|
38
|
+
|
|
39
|
+
## DangerPrimary
|
|
40
|
+
|
|
41
|
+
<Canvas sourceState="shown" of={ChipsStories.DangerPrimary} />
|
|
30
42
|
|
|
31
|
-
##
|
|
43
|
+
## WarningPrimary
|
|
32
44
|
|
|
33
|
-
<Canvas sourceState="shown" of={ChipsStories.
|
|
45
|
+
<Canvas sourceState="shown" of={ChipsStories.WarningPrimary} />
|
|
34
46
|
|
|
35
|
-
##
|
|
47
|
+
## InfoPrimary
|
|
36
48
|
|
|
37
|
-
<Canvas sourceState="shown" of={ChipsStories.
|
|
49
|
+
<Canvas sourceState="shown" of={ChipsStories.InfoPrimary} />
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Canvas, Controls, Meta } from '@storybook/blocks'
|
|
2
2
|
|
|
3
|
-
import * as ChipsStories from '../stories/
|
|
3
|
+
import * as ChipsStories from '../stories/ChipsDefault.stories'
|
|
4
4
|
|
|
5
5
|
<Meta title="Atoms / Chips / Playground" />
|
|
6
6
|
|
|
7
7
|
# Playground
|
|
8
8
|
|
|
9
|
-
<Canvas sourceState="shown" of={ChipsStories.
|
|
10
|
-
<Controls of={ChipsStories.
|
|
9
|
+
<Canvas sourceState="shown" of={ChipsStories.SurfacePrimary} />
|
|
10
|
+
<Controls of={ChipsStories.SurfacePrimary} />
|