@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.
Files changed (145) hide show
  1. package/dist/{Avatar_cjs_33OrnLtt.js → Avatar_cjs_DRaNGlad.js} +1 -1
  2. package/dist/{Avatar_es_B3LiV8MM.js → Avatar_es_Ck1RiTgB.js} +1 -1
  3. package/dist/{Button_cjs_C05Joa8j.js → Button_cjs_CnBP4mKv.js} +1 -1
  4. package/dist/{Button_es_CO_dwo-N.js → Button_es_WG0yV-rp.js} +1 -1
  5. package/dist/{ChipsGroup_cjs_DN9BoTKe.js → ChipsGroup_cjs_BCnPa9xv.js} +1 -1
  6. package/dist/{ChipsGroup_es_D9aK8Roh.js → ChipsGroup_es_1854brF_.js} +1 -1
  7. package/dist/{DatePicker_cjs_B_OWDm9X.js → DatePicker_cjs_Cbv3ffoB.js} +3 -3
  8. package/dist/{DatePicker_es_BCbmUdl0.js → DatePicker_es_DGck2HRu.js} +3 -3
  9. package/dist/{DropdownItem_cjs_DPoFy70W.js → DropdownItem_cjs_C3BV7axh.js} +1 -1
  10. package/dist/{DropdownItem_es_CVztMEm0.js → DropdownItem_es_VDp5tKZr.js} +1 -1
  11. package/dist/{Label_cjs_BefEcq6i.js → Label_cjs_CqSZcFNk.js} +63 -63
  12. package/dist/{Label_es_Dl_DrMOh.js → Label_es_s3M2-dON.js} +63 -63
  13. package/dist/{Tooltip_cjs_pBGCcXLZ.js → Tooltip_cjs_BE4fABOp.js} +34 -5
  14. package/dist/{Tooltip_es_frBCZDrO.js → Tooltip_es_BPMRrd2L.js} +34 -5
  15. package/dist/cjs/components/Accordion.js +1 -1
  16. package/dist/cjs/components/Avatar.js +2 -2
  17. package/dist/cjs/components/AvatarStack.js +2 -2
  18. package/dist/cjs/components/Badge.js +1 -1
  19. package/dist/cjs/components/Breadcrumbs.js +1 -1
  20. package/dist/cjs/components/Button.js +2 -2
  21. package/dist/cjs/components/Cell.js +2 -2
  22. package/dist/cjs/components/Chips.js +2 -2
  23. package/dist/cjs/components/Choice/stories/__mock__.js +11 -0
  24. package/dist/cjs/components/Choice.js +59 -17
  25. package/dist/cjs/components/CookiesWarning.js +2 -2
  26. package/dist/cjs/components/DatePeriod.js +5 -5
  27. package/dist/cjs/components/DatePicker.js +4 -4
  28. package/dist/cjs/components/Drawer.js +1 -1
  29. package/dist/cjs/components/Dropdown.js +2 -2
  30. package/dist/cjs/components/HeroTitle.js +1 -1
  31. package/dist/cjs/components/Icon.js +1 -1
  32. package/dist/cjs/components/InputPassword.js +1 -1
  33. package/dist/cjs/components/Label.js +2 -2
  34. package/dist/cjs/components/MenuItem.js +38 -68
  35. package/dist/cjs/components/Modal.js +1 -1
  36. package/dist/cjs/components/Notification.js +1 -1
  37. package/dist/cjs/components/Pagination.js +2 -2
  38. package/dist/cjs/components/Response.js +2 -2
  39. package/dist/cjs/components/Search.js +4 -4
  40. package/dist/cjs/components/Segmented.js +21 -44
  41. package/dist/cjs/components/Select.js +1 -1
  42. package/dist/cjs/components/Swiper.js +1 -1
  43. package/dist/cjs/components/Tab.js +1 -1
  44. package/dist/cjs/components/Tile.js +1 -1
  45. package/dist/cjs/components/Title.js +1 -1
  46. package/dist/cjs/components/Tooltip.js +1 -1
  47. package/dist/components/Accordion.js +1 -1
  48. package/dist/components/Avatar.js +2 -2
  49. package/dist/components/AvatarStack.js +2 -2
  50. package/dist/components/Badge.js +1 -1
  51. package/dist/components/Breadcrumbs.js +1 -1
  52. package/dist/components/Button.js +2 -2
  53. package/dist/components/Cell.js +2 -2
  54. package/dist/components/Chips.js +2 -2
  55. package/dist/components/Choice/stories/__mock__.js +9 -0
  56. package/dist/components/Choice.js +59 -17
  57. package/dist/components/CookiesWarning.js +2 -2
  58. package/dist/components/DatePeriod.js +5 -5
  59. package/dist/components/DatePicker.js +4 -4
  60. package/dist/components/Drawer.js +1 -1
  61. package/dist/components/Dropdown.js +2 -2
  62. package/dist/components/HeroTitle.js +1 -1
  63. package/dist/components/Icon.js +1 -1
  64. package/dist/components/InputPassword.js +1 -1
  65. package/dist/components/Label.js +2 -2
  66. package/dist/components/MenuItem.js +38 -68
  67. package/dist/components/Modal.js +1 -1
  68. package/dist/components/Notification.js +1 -1
  69. package/dist/components/Pagination.js +2 -2
  70. package/dist/components/Response.js +2 -2
  71. package/dist/components/Search.js +4 -4
  72. package/dist/components/Segmented.js +21 -44
  73. package/dist/components/Select.js +1 -1
  74. package/dist/components/Swiper.js +1 -1
  75. package/dist/components/Tab.js +1 -1
  76. package/dist/components/Tile.js +1 -1
  77. package/dist/components/Title.js +1 -1
  78. package/dist/components/Tooltip.js +1 -1
  79. package/dist/css/components/Choice/Choice.css +27 -19
  80. package/dist/css/components/MenuItem/MenuItem.css +45 -8
  81. package/dist/stories/ChoiceOverview.mdx +2 -2
  82. package/dist/stories/ChoicePlayground.mdx +3 -3
  83. package/dist/types/components/Accordion/appearance/accordionSize.d.ts +7 -7
  84. package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +1 -1
  85. package/dist/types/components/Cell/stories/__mock__/index.d.ts +2 -2
  86. package/dist/types/components/Choice/Choice.interface.d.ts +1 -0
  87. package/dist/types/components/Choice/appearance/choiceDefault.d.ts +10 -0
  88. package/dist/types/components/Choice/appearance/choiceDisabled.d.ts +10 -0
  89. package/dist/types/components/Choice/appearance/choiceError.d.ts +10 -0
  90. package/dist/types/components/Choice/appearance/choiceRequire.d.ts +11 -0
  91. package/dist/types/components/Choice/appearance/choiceStyle.d.ts +6 -4
  92. package/dist/types/components/Choice/appearance/choiceSuccess.d.ts +11 -0
  93. package/dist/types/components/Choice/stories/__mock__/index.d.ts +4 -0
  94. package/dist/types/components/DatePicker/DatePicker.appearance.d.ts +6 -6
  95. package/dist/types/components/DatePicker/appearance/datePickerSize.d.ts +6 -6
  96. package/dist/types/components/Drawer/appearance/drawerSurface.d.ts +1 -1
  97. package/dist/types/components/Icon/appearance/iconDanger.d.ts +6 -0
  98. package/dist/types/components/Icon/appearance/iconError.d.ts +6 -0
  99. package/dist/types/components/Icon/appearance/iconPrimary.d.ts +5 -0
  100. package/dist/types/components/Icon/appearance/iconSecondary.d.ts +5 -0
  101. package/dist/types/components/Icon/appearance/iconStyle.d.ts +6 -5
  102. package/dist/types/components/Icon/appearance/iconWarning.d.ts +6 -0
  103. package/dist/types/components/Label/appearance/labelAccent.d.ts +1 -1
  104. package/dist/types/components/Label/appearance/labelDanger.d.ts +1 -1
  105. package/dist/types/components/Label/appearance/labelError.d.ts +7 -7
  106. package/dist/types/components/Label/appearance/labelPrimary.d.ts +1 -1
  107. package/dist/types/components/Label/appearance/labelSecondary.d.ts +1 -1
  108. package/dist/types/components/Label/appearance/labelSuccess.d.ts +1 -1
  109. package/dist/types/components/Label/appearance/labelSurface.d.ts +8 -8
  110. package/dist/types/components/Label/appearance/labelWarning.d.ts +1 -1
  111. package/dist/types/components/MenuItem/MenuItem.interface.d.ts +1 -0
  112. package/dist/types/components/MenuItem/appearance/menuItemAccent.d.ts +5 -8
  113. package/dist/types/components/MenuItem/appearance/menuItemError.d.ts +3 -3
  114. package/dist/types/components/MenuItem/appearance/menuItemSize.d.ts +0 -15
  115. package/dist/types/components/MenuItem/appearance/menuItemStyle.d.ts +1 -3
  116. package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +3 -5
  117. package/dist/types/components/Notification/appearance/notificationDefault.d.ts +1 -1
  118. package/dist/types/components/Notification/appearance/notificationError.d.ts +1 -1
  119. package/dist/types/components/Notification/appearance/notificationSuccess.d.ts +1 -1
  120. package/dist/types/components/Notification/appearance/notificationWarning.d.ts +1 -1
  121. package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +1 -1
  122. package/dist/types/components/Search/appearance/searchSize.d.ts +12 -12
  123. package/dist/types/components/Segmented/appearance/{segmentedSurface.d.ts → segmentedDefault.d.ts} +4 -4
  124. package/dist/types/components/Select/SelectLoadingIndicator.d.ts +1 -2
  125. package/dist/types/components/Tab/stories/__mock__/index.d.ts +1 -1
  126. package/dist/types/hooks/useDeviceTargetClass.d.ts +5 -0
  127. package/package.json +12 -12
  128. package/dist/types/components/Choice/appearance/choiceAccent.d.ts +0 -10
  129. package/dist/types/components/Label/appearance/labelGradient.d.ts +0 -9
  130. package/dist/types/components/MenuItem/appearance/menuItemPrimary.d.ts +0 -8
  131. package/dist/types/components/Pagination/appearance/paginationAccent.d.ts +0 -21
  132. package/dist/types/components/Pagination/appearance/paginationDanger.d.ts +0 -7
  133. package/dist/types/components/Pagination/appearance/paginationError.d.ts +0 -11
  134. package/dist/types/components/Pagination/appearance/paginationInfo.d.ts +0 -21
  135. package/dist/types/components/Pagination/appearance/paginationPrimary.d.ts +0 -8
  136. package/dist/types/components/Pagination/appearance/paginationSecondary.d.ts +0 -8
  137. package/dist/types/components/Pagination/appearance/paginationSize.d.ts +0 -48
  138. package/dist/types/components/Pagination/appearance/paginationStyle.d.ts +0 -16
  139. package/dist/types/components/Pagination/appearance/paginationSuccess.d.ts +0 -11
  140. package/dist/types/components/Pagination/appearance/paginationWarning.d.ts +0 -11
  141. package/dist/types/components/Segmented/appearance/segmentedAccent.d.ts +0 -19
  142. package/dist/types/components/Segmented/appearance/segmentedFalse.d.ts +0 -4
  143. package/dist/types/config/forms/datepicker.d.ts +0 -18
  144. package/dist/types/config/forms/index.d.ts +0 -3
  145. 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 segmentedAppearanceAccent = {
22
- accent: {
23
- fill: 'accentPrimary',
24
- fillHover: 'accentPrimaryHover',
25
- },
26
- accentPrimary: {
27
- fill: 'accentPrimary',
28
- fillHover: 'accentPrimaryHover',
29
- borderColor: 'accentBorderPrimary',
30
- },
31
- accentSecondary: {
32
- fill: 'accentPrimary',
33
- fillHover: 'accentPrimaryHover',
34
- labelTextColor: 'accentTextSecondary',
35
- labelTextColorHover: 'accentTextSecondary',
36
- borderColor: 'accentBorderPrimary',
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(__assign(__assign({}, segmentedAppearanceFalse), segmentedAppearanceDisabled), segmentedAppearanceSize), segmentedAppearanceStyle), segmentedAppearanceAccent), segmentedAppearanceError), segmentedAppearanceSuccess), segmentedAppearanceSurface), segmentedAppearanceWarning);
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 '../Tooltip_es_frBCZDrO.js';
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 '../Tooltip_es_frBCZDrO.js';
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';
@@ -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 '../Tooltip_es_frBCZDrO.js';
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';
@@ -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 '../Tooltip_es_frBCZDrO.js';
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';
@@ -1,4 +1,4 @@
1
- export { b as Title, d as titleAppearance, c as titleConfig } from '../Tooltip_es_frBCZDrO.js';
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 '../Tooltip_es_frBCZDrO.js';
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 10px;
159
- --choice-item-size-m-padding: 0px 10px;
160
- --choice-item-size-l-padding: 0px 10px;
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: 0 4px;
65
- --menu-item-size-xs-padding: 0 4px;
66
- --menu-item-size-s-padding: 3px 4px;
67
- --menu-item-size-m-padding: 4px 12px;
68
- --menu-item-size-l-padding: 6px 6px;
69
- --menu-item-size-xl-padding: 10px 8px;
70
- --menu-item-size-xxl-padding: 12px 10px;
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/Choice.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.Default} />
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/Choice.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.Default} />
10
- <Controls of={ChoiceStories.Default} />
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: string;
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: string;
14
+ icon: any;
15
15
  };
16
16
  sizeL: {
17
17
  size: string;
18
18
  titleTextSize: string;
19
19
  badgeAppearanceSize: string;
20
- icon: string;
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: string;
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: string;
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: string;
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: string;
48
+ icon: any;
49
49
  };
50
50
  };
51
51
  export { accordionAppearanceSize };
@@ -4,7 +4,7 @@ declare const breadcrumbsListMock: {
4
4
  key: number;
5
5
  text: string;
6
6
  href: string;
7
- icon: string;
7
+ icon: any;
8
8
  }[];
9
9
  };
10
10
  export { breadcrumbsListMock };
@@ -1,9 +1,9 @@
1
1
  declare const cellMock: {
2
2
  title: string;
3
- titleIcon: string;
3
+ titleIcon: any;
4
4
  titleLabel: string;
5
5
  value: string;
6
- valueIcon: string;
6
+ valueIcon: any;
7
7
  valueLabel: string;
8
8
  };
9
9
  export { cellMock };
@@ -56,6 +56,7 @@ interface ChoiceProps extends ChoiceThemeColor, StyleAttributes {
56
56
  isCheckbox?: boolean;
57
57
  isDisabled?: boolean;
58
58
  isLoading?: boolean;
59
+ isSkeleton?: boolean;
59
60
  set?: string;
60
61
  setActiveSegment?: (item: any, isChecked?: boolean) => void;
61
62
  }
@@ -0,0 +1,10 @@
1
+ declare const choiceAppearanceDefault: {
2
+ defaultPrimary: {
3
+ fill: string;
4
+ labelTextColor: string;
5
+ borderColor: string;
6
+ iconAfterFill: string;
7
+ iconBeforeFill: string;
8
+ };
9
+ };
10
+ export { choiceAppearanceDefault };
@@ -0,0 +1,10 @@
1
+ declare const choiceAppearanceDisabled: {
2
+ disabledPrimary: {
3
+ fill: string;
4
+ labelTextColor: string;
5
+ borderColor: string;
6
+ iconAfterFill: string;
7
+ iconBeforeFill: string;
8
+ };
9
+ };
10
+ export { choiceAppearanceDisabled };
@@ -0,0 +1,10 @@
1
+ declare const choiceAppearanceError: {
2
+ errorPrimary: {
3
+ fill: string;
4
+ labelTextColor: string;
5
+ borderColor: string;
6
+ iconAfterFill: string;
7
+ iconBeforeFill: string;
8
+ };
9
+ };
10
+ export { choiceAppearanceError };
@@ -0,0 +1,11 @@
1
+ declare const choiceAppearanceRequire: {
2
+ requirePrimary: {
3
+ fill: string;
4
+ fillItemActive: string;
5
+ labelTextColor: string;
6
+ borderColor: string;
7
+ iconAfterFill: string;
8
+ iconBeforeFill: string;
9
+ };
10
+ };
11
+ export { choiceAppearanceRequire };
@@ -1,13 +1,15 @@
1
1
  declare const choiceAppearanceStyle: {
2
- solid: {
2
+ full: {
3
3
  borderColor: string;
4
4
  };
5
- outlined: {
5
+ ghost: {
6
6
  fill: string;
7
+ borderColor: string;
7
8
  };
8
- full: {};
9
- ghost: {
9
+ outlined: {
10
10
  fill: string;
11
+ };
12
+ solid: {
11
13
  borderColor: string;
12
14
  };
13
15
  };
@@ -0,0 +1,11 @@
1
+ declare const choiceAppearanceSuccess: {
2
+ successPrimary: {
3
+ fill: string;
4
+ fillItemActive: string;
5
+ labelTextColor: string;
6
+ borderColor: string;
7
+ iconAfterFill: string;
8
+ iconBeforeFill: string;
9
+ };
10
+ };
11
+ export { choiceAppearanceSuccess };
@@ -0,0 +1,4 @@
1
+ export declare const options: {
2
+ label: string;
3
+ value: number;
4
+ }[];
@@ -21,16 +21,16 @@ export declare const datePickerAppearance: {
21
21
  daySize: string;
22
22
  dayTextSize: string;
23
23
  iconFillSize: number;
24
- iconLeft: string;
25
- iconRight: string;
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: string;
33
- iconRight: string;
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: string;
44
- iconRight: string;
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: string;
8
- iconRight: string;
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: string;
16
- iconRight: string;
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: string;
27
- iconRight: string;
26
+ iconLeft: any;
27
+ iconRight: any;
28
28
  };
29
29
  };
30
30
  export { datePickerSize };
@@ -7,7 +7,7 @@ declare const drawerAppearanceSurface: {
7
7
  descTextColor: string;
8
8
  descTextSize: string;
9
9
  iconSize: number;
10
- closeIcon: string;
10
+ closeIcon: any;
11
11
  closeIconFillIcon: string;
12
12
  };
13
13
  surfaceQuaternary: {
@@ -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 };
@@ -5,5 +5,11 @@ declare const iconAppearanceError: {
5
5
  labelTextColor: string;
6
6
  labelTextColorHover: string;
7
7
  };
8
+ errorPrimary: {
9
+ fill: string;
10
+ fillHover: string;
11
+ labelTextColor: string;
12
+ labelTextColorHover: string;
13
+ };
8
14
  };
9
15
  export { iconAppearanceError };
@@ -4,5 +4,10 @@ declare const iconAppearancePrimary: {
4
4
  fillHover: string;
5
5
  labelTextColor: string;
6
6
  };
7
+ primaryPrimary: {
8
+ fill: string;
9
+ fillHover: string;
10
+ labelTextColor: string;
11
+ };
7
12
  };
8
13
  export { iconAppearancePrimary };
@@ -4,5 +4,10 @@ declare const iconAppearanceSecondary: {
4
4
  fillHover: string;
5
5
  labelTextColor: string;
6
6
  };
7
+ secondaryPrimary: {
8
+ fill: string;
9
+ fillHover: string;
10
+ labelTextColor: string;
11
+ };
7
12
  };
8
13
  export { iconAppearanceSecondary };
@@ -1,14 +1,15 @@
1
1
  declare const iconAppearanceStyle: {
2
- solid: {
2
+ full: {
3
3
  borderColor: string;
4
4
  };
5
- outlined: {
5
+ ghost: {
6
6
  fill: string;
7
+ borderColor: string;
7
8
  };
8
- full: {};
9
- ghost: {
9
+ outlined: {
10
10
  fill: string;
11
- fillHover: string;
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 };
@@ -4,7 +4,7 @@ declare const labelAppearanceAccent: {
4
4
  labelTextColor: string;
5
5
  labelTextColorHover: string;
6
6
  };
7
- accentMuted: {
7
+ accentMutedPrimary: {
8
8
  fill: string;
9
9
  labelTextColor: string;
10
10
  labelTextColorHover: string;