@itcase/ui 1.8.110 → 1.8.112

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 (166) hide show
  1. package/dist/{Avatar_cjs_joB9qjwk.js → Avatar_cjs_CQhA8iu9.js} +2 -2
  2. package/dist/{Avatar_es_C3HGSiHU.js → Avatar_es__NA_FQGM.js} +2 -2
  3. package/dist/{Button_cjs_mau_55Fl.js → Button_cjs_B2eZhvoC.js} +5 -5
  4. package/dist/{Button_es_D_IlkeBp.js → Button_es_C8qinRU4.js} +5 -5
  5. package/dist/{ChipsGroup_cjs_D454M1-p.js → ChipsGroup_cjs_ChJ71i_A.js} +2 -2
  6. package/dist/{ChipsGroup_es_BKG5mK5N.js → ChipsGroup_es_Dj0Lu5zm.js} +2 -2
  7. package/dist/{DatePicker_cjs_C9rI2uTl.js → DatePicker_cjs_CpN9wFK4.js} +5 -5
  8. package/dist/{DatePicker_es_Bi6lgbTb.js → DatePicker_es_B6WjNDiN.js} +5 -5
  9. package/dist/{DropdownItem_cjs_D2hHKA5E.js → DropdownItem_cjs_DUIefLij.js} +2 -2
  10. package/dist/{DropdownItem_es_D9JBMV70.js → DropdownItem_es_uFi08Joi.js} +2 -2
  11. package/dist/{Icon_cjs_ZerVip3X.js → Icon_cjs_D-UNVTqI.js} +6 -6
  12. package/dist/{Icon_es_C76te22j.js → Icon_es_Cstv1LFr.js} +6 -6
  13. package/dist/{Input_cjs_TC7DOpvh.js → Input_cjs_D18gXu6j.js} +14 -30
  14. package/dist/{Input_es_RtN2gtZq.js → Input_es_CHuhHbMo.js} +14 -30
  15. package/dist/{Label_cjs_CaTh_laL.js → Label_cjs_BvS_ANE3.js} +4 -4
  16. package/dist/{Label_es_CoIII7Ty.js → Label_es_C4Icioi8.js} +4 -4
  17. package/dist/{Link_cjs_BqT6eVl6.js → Link_cjs_C5UsZUiF.js} +2 -2
  18. package/dist/{Link_es_BnUIX0QT.js → Link_es_XiqbdwLp.js} +2 -2
  19. package/dist/{Loader_cjs_c6yF7akz.js → Loader_cjs_Cme6Hi0B.js} +3 -3
  20. package/dist/{Loader_es_C8ETXkiZ.js → Loader_es_ByhTIMxS.js} +3 -3
  21. package/dist/{Text_cjs_DpRclhwc.js → Text_cjs_0EINiUq4.js} +7 -4
  22. package/dist/{Text_es_CtCwsa3V.js → Text_es_CwV9rjFD.js} +7 -4
  23. package/dist/cjs/components/Accordion.js +3 -3
  24. package/dist/cjs/components/Avatar.js +4 -4
  25. package/dist/cjs/components/AvatarStack.js +4 -4
  26. package/dist/cjs/components/Badge.js +3 -3
  27. package/dist/cjs/components/Breadcrumbs.js +3 -3
  28. package/dist/cjs/components/Button.js +5 -5
  29. package/dist/cjs/components/Cell.js +4 -4
  30. package/dist/cjs/components/Checkbox.js +29 -22
  31. package/dist/cjs/components/Chips.js +4 -4
  32. package/dist/cjs/components/Choice.js +23 -21
  33. package/dist/cjs/components/Code.js +3 -3
  34. package/dist/cjs/components/CookiesWarning.js +5 -5
  35. package/dist/cjs/components/Dadata.js +1 -1
  36. package/dist/cjs/components/DatePeriod.js +11 -11
  37. package/dist/cjs/components/DatePicker.js +8 -8
  38. package/dist/cjs/components/Drawer.js +3 -3
  39. package/dist/cjs/components/Dropdown.js +4 -4
  40. package/dist/cjs/components/HeroTitle.js +5 -5
  41. package/dist/cjs/components/Icon.js +3 -3
  42. package/dist/cjs/components/Input.js +1 -1
  43. package/dist/cjs/components/InputPassword.js +6 -10
  44. package/dist/cjs/components/Label.js +4 -4
  45. package/dist/cjs/components/Link.js +1 -1
  46. package/dist/cjs/components/List.js +1 -1
  47. package/dist/cjs/components/Loader.js +2 -2
  48. package/dist/cjs/components/Logo.js +1 -1
  49. package/dist/cjs/components/MenuItem.js +4 -4
  50. package/dist/cjs/components/Modal.js +6 -6
  51. package/dist/cjs/components/ModalSheetBottom.js +5 -5
  52. package/dist/cjs/components/Notification.js +3 -3
  53. package/dist/cjs/components/Pagination.js +6 -6
  54. package/dist/cjs/components/Radio.js +58 -36
  55. package/dist/cjs/components/Response.js +5 -5
  56. package/dist/cjs/components/Search.js +5 -5
  57. package/dist/cjs/components/Segmented.js +12 -11
  58. package/dist/cjs/components/Select.js +104 -78
  59. package/dist/cjs/components/Swiper.js +3 -3
  60. package/dist/cjs/components/Switch.js +2 -2
  61. package/dist/cjs/components/Tab.js +4 -4
  62. package/dist/cjs/components/Text.js +1 -1
  63. package/dist/cjs/components/Textarea.js +31 -26
  64. package/dist/cjs/components/Tile.js +3 -3
  65. package/dist/cjs/components/Title.js +3 -3
  66. package/dist/cjs/components/Tooltip.js +3 -3
  67. package/dist/cjs/components/Warning.js +3 -3
  68. package/dist/cjs/hooks/useAppearanceConfig/useAppearanceConfig.js +8 -4
  69. package/dist/components/Accordion.js +3 -3
  70. package/dist/components/Avatar.js +4 -4
  71. package/dist/components/AvatarStack.js +4 -4
  72. package/dist/components/Badge.js +3 -3
  73. package/dist/components/Breadcrumbs.js +3 -3
  74. package/dist/components/Button.js +5 -5
  75. package/dist/components/Cell.js +4 -4
  76. package/dist/components/Checkbox.js +29 -22
  77. package/dist/components/Chips.js +4 -4
  78. package/dist/components/Choice.js +23 -21
  79. package/dist/components/Code.js +3 -3
  80. package/dist/components/CookiesWarning.js +5 -5
  81. package/dist/components/Dadata.js +1 -1
  82. package/dist/components/DatePeriod.js +11 -11
  83. package/dist/components/DatePicker.js +8 -8
  84. package/dist/components/Drawer.js +3 -3
  85. package/dist/components/Dropdown.js +4 -4
  86. package/dist/components/HeroTitle.js +5 -5
  87. package/dist/components/Icon.js +3 -3
  88. package/dist/components/Input.js +1 -1
  89. package/dist/components/InputPassword.js +6 -10
  90. package/dist/components/Label.js +4 -4
  91. package/dist/components/Link.js +1 -1
  92. package/dist/components/List.js +1 -1
  93. package/dist/components/Loader.js +2 -2
  94. package/dist/components/Logo.js +1 -1
  95. package/dist/components/MenuItem.js +4 -4
  96. package/dist/components/Modal.js +6 -6
  97. package/dist/components/ModalSheetBottom.js +5 -5
  98. package/dist/components/Notification.js +3 -3
  99. package/dist/components/Pagination.js +6 -6
  100. package/dist/components/Radio.js +58 -36
  101. package/dist/components/Response.js +5 -5
  102. package/dist/components/Search.js +5 -5
  103. package/dist/components/Segmented.js +12 -11
  104. package/dist/components/Select.js +104 -78
  105. package/dist/components/Swiper.js +3 -3
  106. package/dist/components/Switch.js +2 -2
  107. package/dist/components/Tab.js +4 -4
  108. package/dist/components/Text.js +1 -1
  109. package/dist/components/Textarea.js +31 -26
  110. package/dist/components/Tile.js +3 -3
  111. package/dist/components/Title.js +3 -3
  112. package/dist/components/Tooltip.js +3 -3
  113. package/dist/components/Warning.js +3 -3
  114. package/dist/css/components/Checkbox/Checkbox.css +440 -25
  115. package/dist/css/components/Choice/Choice.css +12 -1
  116. package/dist/css/components/Choice/css/__item/choice__item.css +1 -1
  117. package/dist/css/components/Choice/css/__item/choice__item_size.css +5 -0
  118. package/dist/css/components/DatePicker/DatePicker.css +18 -18
  119. package/dist/css/components/Group/Group.css +5 -0
  120. package/dist/css/components/Input/Input.css +10 -7
  121. package/dist/css/components/Radio/Radio.css +436 -5
  122. package/dist/css/components/Segmented/Segmented.css +15 -17
  123. package/dist/css/components/Segmented/css/__item/segmaented__item.css +12 -0
  124. package/dist/css/components/Select/Select.css +12 -1
  125. package/dist/css/components/Select/css/__placeholder/select__placeholder.css +3 -0
  126. package/dist/css/components/Select/css/__single-value/select__single-value.css +5 -0
  127. package/dist/css/components/Textarea/Textarea.css +7 -6
  128. package/dist/css/styles/bundle.css +36 -46
  129. package/dist/css/styles/fill/fill.css +0 -3
  130. package/dist/css/styles/text-align/text-align.css +1 -1
  131. package/dist/css/styles/text-weight/text-weight.css +35 -42
  132. package/dist/hooks/useAppearanceConfig/useAppearanceConfig.js +8 -4
  133. package/dist/types/components/Checkbox/appearance/checkboxStyle.d.ts +8 -2
  134. package/dist/types/components/Choice/appearance/choiceDefault.d.ts +1 -0
  135. package/dist/types/components/Choice/appearance/choiceDisabled.d.ts +3 -1
  136. package/dist/types/components/Code/Code.interface.d.ts +1 -0
  137. package/dist/types/components/Input/appearance/inputDefault.d.ts +2 -2
  138. package/dist/types/components/Input/appearance/inputDisabled.d.ts +1 -0
  139. package/dist/types/components/Input/appearance/inputRequire.d.ts +1 -0
  140. package/dist/types/components/Input/appearance/inputStyle.d.ts +1 -0
  141. package/dist/types/components/Radio/Radio.appearance.d.ts +37 -16
  142. package/dist/types/components/Radio/appearance/radioDefault.d.ts +7 -4
  143. package/dist/types/components/Radio/appearance/radioDisabled.d.ts +4 -2
  144. package/dist/types/components/Radio/appearance/radioError.d.ts +4 -2
  145. package/dist/types/components/Radio/appearance/radioRequire.d.ts +4 -2
  146. package/dist/types/components/Radio/appearance/radioShape.d.ts +4 -4
  147. package/dist/types/components/Radio/appearance/radioStyle.d.ts +10 -0
  148. package/dist/types/components/Radio/appearance/radioSuccess.d.ts +4 -2
  149. package/dist/types/components/Segmented/appearance/segmentedWarning.d.ts +1 -0
  150. package/dist/types/components/Select/appearance/selectDefault.d.ts +5 -5
  151. package/dist/types/components/Select/appearance/selectDisabled.d.ts +0 -1
  152. package/dist/types/components/Select/appearance/selectError.d.ts +16 -8
  153. package/dist/types/components/Select/appearance/selectRequire.d.ts +16 -8
  154. package/dist/types/components/Select/appearance/selectShape.d.ts +4 -4
  155. package/dist/types/components/Select/appearance/selectSize.d.ts +3 -0
  156. package/dist/types/components/Select/appearance/selectStyle.d.ts +5 -4
  157. package/dist/types/components/Select/appearance/selectSuccess.d.ts +16 -10
  158. package/dist/types/components/Textarea/appearance/textareaDefault.d.ts +7 -5
  159. package/dist/types/components/Textarea/appearance/textareaDisabled.d.ts +2 -2
  160. package/dist/types/components/Textarea/appearance/textareaError.d.ts +2 -2
  161. package/dist/types/components/Textarea/appearance/textareaRequire.d.ts +2 -2
  162. package/dist/types/components/Textarea/appearance/textareaShape.d.ts +4 -4
  163. package/dist/types/components/Textarea/appearance/textareaStyle.d.ts +4 -2
  164. package/dist/types/components/Textarea/appearance/textareaSuccess.d.ts +3 -2
  165. package/dist/types/hooks/useAppearanceConfig/useAppearanceConfig.d.ts +1 -1
  166. package/package.json +3 -3
@@ -4,9 +4,9 @@ import clsx from 'clsx';
4
4
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { I as Icon } from '../Icon_es_C76te22j.js';
8
- import { L as Loader } from '../Loader_es_C8ETXkiZ.js';
9
- import { T as Text } from '../Text_es_CtCwsa3V.js';
7
+ import { I as Icon } from '../Icon_es_Cstv1LFr.js';
8
+ import { L as Loader } from '../Loader_es_ByhTIMxS.js';
9
+ import { T as Text } from '../Text_es_CwV9rjFD.js';
10
10
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
11
11
  import 'lodash/camelCase';
12
12
  import 'lodash/castArray';
@@ -24,15 +24,16 @@ import 'lodash/maxBy';
24
24
  import 'react-inlinesvg';
25
25
  import '../hoc/urlWithAssetPrefix.js';
26
26
  import '../context/UrlAssetPrefix.js';
27
- import '../Link_es_BnUIX0QT.js';
27
+ import '../Link_es_XiqbdwLp.js';
28
28
 
29
29
  var choiceAppearanceDefault = {
30
30
  defaultPrimary: {
31
31
  fill: 'surfaceSecondary',
32
- fillItem: 'surfaceItemSecondary',
33
- fillItemActive: 'surfaceItemQuaternary',
34
- fillItemHover: 'surfaceItemHover',
35
- labelTextActiveColor: 'surfaceTextInverse',
32
+ fillItem: 'surfaceSecondary',
33
+ fillItemActive: 'accentPrimary',
34
+ fillItemActiveHover: 'accentHoverPrimary',
35
+ fillItemHover: 'surfaceTertiary',
36
+ labelTextActiveColor: 'accentTextPrimary',
36
37
  labelTextColor: 'surfaceTextPrimary',
37
38
  borderColor: 'surfaceBorderQuaternary',
38
39
  iconAfterFill: 'surfaceItemQuaternary',
@@ -46,12 +47,14 @@ var choiceAppearanceDefault = {
46
47
 
47
48
  var choiceAppearanceDisabled = {
48
49
  disabledPrimary: {
49
- fill: 'surfaceTertiary',
50
- fillItem: 'surfaceTertiary',
51
- fillItemActive: 'surfaceItemTertiary',
52
- labelTextActiveColor: 'surfaceTextQuaternary',
50
+ fill: 'surfaceDisabled',
51
+ fillItem: 'surfaceDisabled',
52
+ fillItemActive: 'surfaceDisabled',
53
+ fillItemActiveHover: 'surfaceDisabled',
54
+ fillItemHover: 'surfaceTertiary',
53
55
  labelTextColor: 'surfaceTextQuaternary',
54
- borderColor: 'surfaceBorderPrimary',
56
+ labelTextActiveColor: 'surfaceTextQuaternary',
57
+ borderColor: 'surfaceBorderDisabled',
55
58
  iconAfterFill: 'surfaceItemPrimary',
56
59
  iconAfterFillActive: 'surfaceItemDisabled',
57
60
  iconBeforeFill: 'surfaceItemPrimary',
@@ -194,7 +197,7 @@ function Choice(props) {
194
197
  var isChecked = isCheckbox ? event.target.checked : true;
195
198
  setActiveSegment && setActiveSegment(item, isChecked);
196
199
  }, [isCheckbox, setActiveSegment]);
197
- var appearanceConfig = useAppearanceConfig(appearance, choiceConfig);
200
+ var appearanceConfig = useAppearanceConfig(appearance, choiceConfig, isDisabled);
198
201
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
199
202
  var size = propsGenerator.size, fillClass = propsGenerator.fillClass, fillItemActiveClass = propsGenerator.fillItemActiveClass, fillItemActiveDisabledClass = propsGenerator.fillItemActiveDisabledClass, fillItemActiveHoverClass = propsGenerator.fillItemActiveHoverClass, fillItemClass = propsGenerator.fillItemClass, fillItemDisabledClass = propsGenerator.fillItemDisabledClass, fillItemHoverClass = propsGenerator.fillItemHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextColor = propsGenerator.labelTextColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, iconAfterFillDisabled = propsGenerator.iconAfterFillDisabled, iconBeforeFillDisabled = propsGenerator.iconBeforeFillDisabled, iconFillDisabled = propsGenerator.iconFillDisabled, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillActive = propsGenerator.iconAfterFillActive, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillActive = propsGenerator.iconBeforeFillActive, iconBeforeSize = propsGenerator.iconBeforeSize, iconFill = propsGenerator.iconFill, iconFillActive = propsGenerator.iconFillActive, iconSize = propsGenerator.iconSize, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, wrapClass = propsGenerator.wrapClass;
200
203
  var styles = useStyles(props).styles;
@@ -202,14 +205,13 @@ function Choice(props) {
202
205
  var isActive = typeof active === 'object'
203
206
  ? String(item.value) === String(active.value)
204
207
  : String(item.value) === String(active);
205
- return (jsxs("div", { className: clsx('choice__item', size && "choice__item_size_".concat(size), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), !isDisabled
208
+ return (jsxs("div", { className: clsx('choice__item', size && "choice__item_size_".concat(size), (item.icon || item.iconActive) && 'choice__item_icon', shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), !isActive && !isDisabled
206
209
  ? fillItemClass && "fill_".concat(fillItemClass)
207
210
  : fillItemDisabledClass &&
208
- "fill_disabled_".concat(fillItemDisabledClass), !isDisabled &&
209
- fillItemHoverClass &&
210
- "fill_hover_".concat(fillItemHoverClass), isActive &&
211
- fillItemActiveHoverClass &&
212
- "fill_active_hover_".concat(fillItemActiveHoverClass), isActive
211
+ "fill_disabled_".concat(fillItemDisabledClass), !isActive && !isDisabled
212
+ ? fillItemHoverClass && "fill_hover_".concat(fillItemHoverClass)
213
+ : fillItemActiveHoverClass &&
214
+ "fill_active_hover_".concat(fillItemActiveHoverClass), isActive
213
215
  ? !isDisabled
214
216
  ? fillItemActiveClass &&
215
217
  "fill_active_".concat(fillItemActiveClass)
@@ -218,7 +220,7 @@ function Choice(props) {
218
220
  : !isDisabled
219
221
  ? fillItemClass && "fill_".concat(fillItemClass)
220
222
  : fillItemDisabledClass &&
221
- "fill_disabled_".concat(fillItemDisabledClass), !isActive && isDisabled && 'choice__item_state_disabled', (item.icon || item.iconActive) && 'asdasdasdasd', isActive &&
223
+ "fill_disabled_".concat(fillItemDisabledClass), !isActive && isDisabled && 'choice__item_state_disabled', isActive &&
222
224
  isDisabled &&
223
225
  'choice__item_active_state_disabled', isActive && 'choice__item_active'), ref: optionsRefs.get(item.value), children: [jsx("input", { id: "".concat(name, "-").concat(item.value), className: "choice__item-radio", type: isCheckbox ? 'checkbox' : 'radio', name: name, disabled: isDisabled, checked: isActive, value: item.value, onChange: function (event) { return onChange(event, item); } }), jsxs("label", { className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: "".concat(name, "-").concat(item.value), children: [itemBefore, (item.iconBefore || item.iconBeforeActive) && (jsx(Icon, { className: "choice__item-icon", iconFillDisabled: iconBeforeFillDisabled, isDisabled: isDisabled, iconFill: iconBeforeFill, iconFillActive: iconBeforeFillActive, iconSize: iconBeforeSize, SvgImage: isActive
224
226
  ? item.iconBeforeActive || item.iconBefore
@@ -140,9 +140,9 @@ var codeConfig = {
140
140
  },
141
141
  };
142
142
  function Code(props) {
143
- var className = props.className, appearance = props.appearance, inputAutoFocus = props.inputAutoFocus, _a = props.inputCount, inputCount = _a === void 0 ? 6 : _a, inputPlaceholder = props.inputPlaceholder, _b = props.inputType, inputType = _b === void 0 ? 'number' : _b, separatorComponent = props.separatorComponent, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
144
- var _c = useState(''), otp = _c[0], setOtp = _c[1];
145
- var appearanceConfig = useAppearanceConfig(appearance, codeConfig);
143
+ var className = props.className, appearance = props.appearance, _a = props.initialValue, initialValue = _a === void 0 ? '' : _a, isDisabled = props.isDisabled, inputAutoFocus = props.inputAutoFocus, _b = props.inputCount, inputCount = _b === void 0 ? 6 : _b, inputPlaceholder = props.inputPlaceholder, _c = props.inputType, inputType = _c === void 0 ? 'number' : _c, separatorComponent = props.separatorComponent, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
144
+ var _d = useState(initialValue), otp = _d[0], setOtp = _d[1];
145
+ var appearanceConfig = useAppearanceConfig(appearance, codeConfig, isDisabled);
146
146
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
147
147
  var inputBorderColorClass = propsGenerator.inputBorderColorClass, inputBorderColorHoverClass = propsGenerator.inputBorderColorHoverClass, inputBorderFocusColorClass = propsGenerator.inputBorderFocusColorClass, inputBorderWidthClass = propsGenerator.inputBorderWidthClass, inputCaretColorClass = propsGenerator.inputCaretColorClass, inputFillClass = propsGenerator.inputFillClass, inputFillHoverClass = propsGenerator.inputFillHoverClass, inputPlaceholderTextColorClass = propsGenerator.inputPlaceholderTextColorClass, inputSizeClass = propsGenerator.inputSizeClass, inputTextColorClass = propsGenerator.inputTextColorClass, inputTextSizeClass = propsGenerator.inputTextSizeClass, inputTextWeightClass = propsGenerator.inputTextWeightClass, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
148
148
  // NOTE: too many dependencies for "useCallback" and possible too many checks
@@ -4,8 +4,8 @@ import clsx from 'clsx';
4
4
  import Cookies from 'js-cookie';
5
5
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
- import { B as Button } from '../Button_es_D_IlkeBp.js';
8
- import { T as Text } from '../Text_es_CtCwsa3V.js';
7
+ import { B as Button } from '../Button_es_C8qinRU4.js';
8
+ import { T as Text } from '../Text_es_CwV9rjFD.js';
9
9
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
10
10
  import 'lodash/camelCase';
11
11
  import 'lodash/castArray';
@@ -19,14 +19,14 @@ import 'react-responsive';
19
19
  import '../utils/setViewportProperty.js';
20
20
  import '../hooks.js';
21
21
  import '../hooks/useStyles/styleAttributes.js';
22
- import '../Icon_es_C76te22j.js';
22
+ import '../Icon_es_Cstv1LFr.js';
23
23
  import 'react-inlinesvg';
24
24
  import '../hoc/urlWithAssetPrefix.js';
25
25
  import '../context/UrlAssetPrefix.js';
26
26
  import '../hooks/useStyles/useStyles.js';
27
27
  import 'lodash/maxBy';
28
- import '../Link_es_BnUIX0QT.js';
29
- import '../Loader_es_C8ETXkiZ.js';
28
+ import '../Link_es_XiqbdwLp.js';
29
+ import '../Loader_es_ByhTIMxS.js';
30
30
 
31
31
  var cookiesWarningAppearanceDefault = {
32
32
  defaultPrimary: {
@@ -3,7 +3,7 @@ import { jsx } from 'react/jsx-runtime';
3
3
  import { useMemo } from 'react';
4
4
  import clsx from 'clsx';
5
5
  import { PartySuggestions } from 'react-dadata';
6
- import { I as Input } from '../Input_es_RtN2gtZq.js';
6
+ import { I as Input } from '../Input_es_CHuhHbMo.js';
7
7
  import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
8
8
  import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
9
9
  import 'lodash/camelCase';
@@ -2,10 +2,10 @@ import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { useCallback } from 'react';
3
3
  import clsx from 'clsx';
4
4
  import { DATE_PERIOD_INTERVALS } from '@itcase/common';
5
- import { D as DatePickerInput } from '../DatePicker_es_Bi6lgbTb.js';
5
+ import { D as DatePickerInput } from '../DatePicker_es_B6WjNDiN.js';
6
6
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
- import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_BKG5mK5N.js';
8
+ import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_Dj0Lu5zm.js';
9
9
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
10
10
  import 'date-fns/locale';
11
11
  import 'react-datepicker';
@@ -21,16 +21,16 @@ import 'react-responsive';
21
21
  import '../utils/setViewportProperty.js';
22
22
  import '../hooks.js';
23
23
  import '../hooks/useStyles/styleAttributes.js';
24
- import '../Button_es_D_IlkeBp.js';
25
- import '../Icon_es_C76te22j.js';
24
+ import '../Button_es_C8qinRU4.js';
25
+ import '../Icon_es_Cstv1LFr.js';
26
26
  import 'react-inlinesvg';
27
27
  import '../hoc/urlWithAssetPrefix.js';
28
28
  import '../context/UrlAssetPrefix.js';
29
- import '../Link_es_BnUIX0QT.js';
30
- import '../Text_es_CtCwsa3V.js';
31
- import '../Loader_es_C8ETXkiZ.js';
32
- import '../Input_es_RtN2gtZq.js';
33
- import '../Label_es_CoIII7Ty.js';
29
+ import '../Link_es_XiqbdwLp.js';
30
+ import '../Text_es_CwV9rjFD.js';
31
+ import '../Loader_es_ByhTIMxS.js';
32
+ import '../Input_es_CHuhHbMo.js';
33
+ import '../Label_es_C4Icioi8.js';
34
34
  import '@itcase/icons/default';
35
35
  import 'lodash/castArray';
36
36
 
@@ -79,8 +79,8 @@ var datePeriodConfig = {
79
79
  },
80
80
  };
81
81
  function DatePeriod(props) {
82
- var className = props.className, appearance = props.appearance, _a = props.datePeriodIntervalsList, datePeriodIntervalsList = _a === void 0 ? Object.values(DATE_PERIOD_INTERVALS) : _a, datePeriodValueEnd = props.datePeriodValueEnd, datePeriodValueStart = props.datePeriodValueStart, monthsShown = props.monthsShown, isSkeleton = props.isSkeleton, onChangeDatePeriod = props.onChangeDatePeriod, onKeyDown = props.onKeyDown;
83
- var appearanceConfig = useAppearanceConfig(appearance, datePeriodConfig);
82
+ var className = props.className, appearance = props.appearance, _a = props.datePeriodIntervalsList, datePeriodIntervalsList = _a === void 0 ? Object.values(DATE_PERIOD_INTERVALS) : _a, datePeriodValueEnd = props.datePeriodValueEnd, datePeriodValueStart = props.datePeriodValueStart, monthsShown = props.monthsShown, isSkeleton = props.isSkeleton, isDisabled = props.isDisabled, onChangeDatePeriod = props.onChangeDatePeriod, onKeyDown = props.onKeyDown;
83
+ var appearanceConfig = useAppearanceConfig(appearance, datePeriodConfig, isDisabled);
84
84
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
85
85
  var _b = propsGenerator, fillClass = _b.fillClass, chipsAppearance = _b.chipsAppearance, chipsAppearanceSize = _b.chipsAppearanceSize, chipsShape = _b.chipsShape, datePickerAppearance = _b.datePickerAppearance, datePickerAppearanceSize = _b.datePickerAppearanceSize, datePickerInputAppearance = _b.datePickerInputAppearance, datePickerInputFillHover = _b.datePickerInputFillHover, datePickerInputSize = _b.datePickerInputSize, datePickerInputTextSize = _b.datePickerInputTextSize, shapeClass = _b.shapeClass, sizeClass = _b.sizeClass;
86
86
  var onClickPeriodChips = useCallback(function (selectedPeriodItem) {
@@ -1,4 +1,4 @@
1
- export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_Bi6lgbTb.js';
1
+ export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_B6WjNDiN.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -21,14 +21,14 @@ import '../hooks.js';
21
21
  import '../hooks/useStyles/styleAttributes.js';
22
22
  import '../hooks/useStyles/useStyles.js';
23
23
  import 'lodash/maxBy';
24
- import '../Button_es_D_IlkeBp.js';
25
- import '../Icon_es_C76te22j.js';
24
+ import '../Button_es_C8qinRU4.js';
25
+ import '../Icon_es_Cstv1LFr.js';
26
26
  import 'react-inlinesvg';
27
27
  import '../hoc/urlWithAssetPrefix.js';
28
28
  import '../context/UrlAssetPrefix.js';
29
- import '../Link_es_BnUIX0QT.js';
30
- import '../Text_es_CtCwsa3V.js';
31
- import '../Loader_es_C8ETXkiZ.js';
32
- import '../Input_es_RtN2gtZq.js';
33
- import '../Label_es_CoIII7Ty.js';
29
+ import '../Link_es_XiqbdwLp.js';
30
+ import '../Text_es_CwV9rjFD.js';
31
+ import '../Loader_es_ByhTIMxS.js';
32
+ import '../Input_es_CHuhHbMo.js';
33
+ import '../Label_es_C4Icioi8.js';
34
34
  import '@itcase/icons/default';
@@ -3,8 +3,8 @@ import { useRef, useEffect } from 'react';
3
3
  import clsx from 'clsx';
4
4
  import ReactDrawer from 'react-modern-drawer';
5
5
  import { D as Divider } from '../Divider_es_CCLBFIx6.js';
6
- import { I as Icon, b as Title } from '../Icon_es_C76te22j.js';
7
- import { T as Text } from '../Text_es_CtCwsa3V.js';
6
+ import { I as Icon, b as Title } from '../Icon_es_Cstv1LFr.js';
7
+ import { T as Text } from '../Text_es_CwV9rjFD.js';
8
8
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
9
9
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
10
10
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
@@ -25,7 +25,7 @@ import '../hooks/useStyles/styleAttributes.js';
25
25
  import 'react-inlinesvg';
26
26
  import '../hoc/urlWithAssetPrefix.js';
27
27
  import '../context/UrlAssetPrefix.js';
28
- import '../Link_es_BnUIX0QT.js';
28
+ import '../Link_es_XiqbdwLp.js';
29
29
  import 'lodash/castArray';
30
30
 
31
31
  var drawerAppearanceSize = {
@@ -1,4 +1,4 @@
1
- export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem_es_D9JBMV70.js';
1
+ export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem_es_uFi08Joi.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
@@ -18,11 +18,11 @@ import '../hooks.js';
18
18
  import '../hooks/useStyles/styleAttributes.js';
19
19
  import '../hooks/useStyles/useStyles.js';
20
20
  import 'lodash/maxBy';
21
- import '../Icon_es_C76te22j.js';
21
+ import '../Icon_es_Cstv1LFr.js';
22
22
  import 'react-inlinesvg';
23
23
  import '../hoc/urlWithAssetPrefix.js';
24
24
  import '../context/UrlAssetPrefix.js';
25
25
  import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
26
- import '../Link_es_BnUIX0QT.js';
27
- import '../Text_es_CtCwsa3V.js';
26
+ import '../Link_es_XiqbdwLp.js';
27
+ import '../Text_es_CwV9rjFD.js';
28
28
  import '../Divider_es_CCLBFIx6.js';
@@ -4,7 +4,7 @@ import clsx from 'clsx';
4
4
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { I as Icon } from '../Icon_es_C76te22j.js';
7
+ import { I as Icon } from '../Icon_es_Cstv1LFr.js';
8
8
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
9
9
  import 'lodash/camelCase';
10
10
  import 'lodash/castArray';
@@ -22,8 +22,8 @@ import 'lodash/maxBy';
22
22
  import 'react-inlinesvg';
23
23
  import '../hoc/urlWithAssetPrefix.js';
24
24
  import '../context/UrlAssetPrefix.js';
25
- import '../Link_es_BnUIX0QT.js';
26
- import '../Text_es_CtCwsa3V.js';
25
+ import '../Link_es_XiqbdwLp.js';
26
+ import '../Text_es_CwV9rjFD.js';
27
27
 
28
28
  var heroTitleAppearanceSize = {
29
29
  sizeH1: {
@@ -61,8 +61,8 @@ var heroTitleConfig = {
61
61
  },
62
62
  };
63
63
  function HeroTitle(props) {
64
- var className = props.className, appearance = props.appearance, text = props.text, afterWrapper = props.afterWrapper, beforeWrapper = props.beforeWrapper, dataTour = props.dataTour, _a = props.tag, tag = _a === void 0 ? 'span' : _a, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onClick = props.onClick, children = props.children;
65
- var appearanceConfig = useAppearanceConfig(appearance, heroTitleConfig);
64
+ var className = props.className, appearance = props.appearance, text = props.text, afterWrapper = props.afterWrapper, beforeWrapper = props.beforeWrapper, dataTour = props.dataTour, _a = props.tag, tag = _a === void 0 ? 'span' : _a, before = props.before, after = props.after, isDisabled = props.isDisabled, isSkeleton = props.isSkeleton, onClick = props.onClick, children = props.children;
65
+ var appearanceConfig = useAppearanceConfig(appearance, heroTitleConfig, isDisabled);
66
66
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
67
67
  var directionClass = propsGenerator.directionClass, size = propsGenerator.size, fillClass = propsGenerator.fillClass, textAlignClass = propsGenerator.textAlignClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorGradientClass = propsGenerator.textColorGradientClass, textColorHoverClass = propsGenerator.textColorHoverClass, textStyleClass = propsGenerator.textStyleClass, textTruncateClass = propsGenerator.textTruncateClass, textWeightClass = propsGenerator.textWeightClass, textWrap = propsGenerator.textWrap, dataTestId = propsGenerator.dataTestId, heightClass = propsGenerator.heightClass, 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, svgFillClass = propsGenerator.svgFillClass, svgFillHoverClass = propsGenerator.svgFillHoverClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass, wrapperDirectionClass = propsGenerator.wrapperDirectionClass;
68
68
  // @ts-expect-error
@@ -1,4 +1,4 @@
1
- export { I as Icon, e as iconAppearance, i as iconConfig } from '../Icon_es_C76te22j.js';
1
+ export { I as Icon, e as iconAppearance, i as iconConfig } from '../Icon_es_Cstv1LFr.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -22,5 +22,5 @@ import '../hooks.js';
22
22
  import '../hooks/useStyles/styleAttributes.js';
23
23
  import '../hooks/useStyles/useStyles.js';
24
24
  import 'lodash/maxBy';
25
- import '../Link_es_BnUIX0QT.js';
26
- import '../Text_es_CtCwsa3V.js';
25
+ import '../Link_es_XiqbdwLp.js';
26
+ import '../Text_es_CwV9rjFD.js';
@@ -1,4 +1,4 @@
1
- export { I as Input, a as inputAppearance, i as inputConfig } from '../Input_es_RtN2gtZq.js';
1
+ export { I as Input, a as inputAppearance, i as inputConfig } from '../Input_es_CHuhHbMo.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
@@ -4,7 +4,7 @@ import { useState, useMemo, useCallback } from 'react';
4
4
  import clsx from 'clsx';
5
5
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
- import { I as Icon } from '../Icon_es_C76te22j.js';
7
+ import { I as Icon } from '../Icon_es_Cstv1LFr.js';
8
8
  import 'lodash/camelCase';
9
9
  import 'lodash/castArray';
10
10
  import 'lodash/upperFirst';
@@ -22,8 +22,8 @@ import '../hoc/urlWithAssetPrefix.js';
22
22
  import '../context/UrlAssetPrefix.js';
23
23
  import '../hooks/useStyles/useStyles.js';
24
24
  import 'lodash/maxBy';
25
- import '../Link_es_BnUIX0QT.js';
26
- import '../Text_es_CtCwsa3V.js';
25
+ import '../Link_es_XiqbdwLp.js';
26
+ import '../Text_es_CwV9rjFD.js';
27
27
 
28
28
  var inputPasswordAppearanceDefault = {
29
29
  defaultPrimary: {
@@ -213,7 +213,7 @@ var inputPasswordConfig = {
213
213
  },
214
214
  };
215
215
  function InputPassword(props) {
216
- var id = props.id, className = props.className, appearance = props.appearance, disabled = props.disabled, iconFill = props.iconFill, iconFillHover = props.iconFillHover, iconRevealableHide = props.iconRevealableHide, iconRevealableShow = props.iconRevealableShow, iconShape = props.iconShape, iconSize = props.iconSize, imageRevealableHide = props.imageRevealableHide, imageRevealableShow = props.imageRevealableShow, placeholder = props.placeholder,
216
+ var id = props.id, className = props.className, appearance = props.appearance, isDisabled = props.isDisabled, iconFill = props.iconFill, iconFillHover = props.iconFillHover, iconRevealableHide = props.iconRevealableHide, iconRevealableShow = props.iconRevealableShow, iconShape = props.iconShape, iconSize = props.iconSize, imageRevealableHide = props.imageRevealableHide, imageRevealableShow = props.imageRevealableShow, placeholder = props.placeholder,
217
217
  // state,
218
218
  value = props.value, isRevealable = props.isRevealable, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, onKeyDown = props.onKeyDown;
219
219
  var _a = useState(false), isRevealed = _a[0], setIsRevealed = _a[1];
@@ -224,15 +224,11 @@ function InputPassword(props) {
224
224
  e.preventDefault();
225
225
  setIsRevealed(function (prev) { return !prev; });
226
226
  }, [setIsRevealed]);
227
- // const stateConfig = useMemo(
228
- // () => state && inputPasswordConfig.state && inputPasswordConfig.state[state],
229
- // [state, inputPasswordConfig],
230
- // )
231
- var appearanceConfig = useAppearanceConfig(appearance, inputPasswordConfig);
227
+ var appearanceConfig = useAppearanceConfig(appearance, inputPasswordConfig, isDisabled);
232
228
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
233
229
  var fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderWidthClass = propsGenerator.borderWidthClass, textColorClass = propsGenerator.textColorClass, textSizeClass = propsGenerator.textSizeClass, textWeightClass = propsGenerator.textWeightClass, caretClass = propsGenerator.caretClass, placeholderTextColorClass = propsGenerator.placeholderTextColorClass, shapeClass = propsGenerator.shapeClass, _b = propsGenerator.sizeClass, sizeClass = _b === void 0 ? 'm' : _b, widthClass = propsGenerator.widthClass;
234
230
  return (jsxs("div", { className: "input-password", children: [jsx("input", { id: String(id), className: clsx(className, 'input-password__input', (textSizeClass || textColorClass || textWeightClass) && 'text', caretClass && "caret-color_".concat(caretClass), fillClass && "fill_".concat(fillClass), shapeClass && "input-password__input_shape_".concat(shapeClass), textSizeClass && "text_size_".concat(textSizeClass), textWeightClass && "text-weight_".concat(textWeightClass), widthClass && "width_".concat(widthClass), borderWidthClass && "border-width_".concat(borderWidthClass), sizeClass && "input-password__input_size_".concat(sizeClass), borderColorClass && "border-color_".concat(borderColorClass), placeholderTextColorClass &&
235
- "placeholder-text-color_".concat(placeholderTextColorClass), textColorClass && "text-color_".concat(textColorClass)), type: inputType, disabled: disabled, placeholder: placeholder, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown }), isRevealable && (jsx(Icon, { className: "input-password__icon", size: iconSize, iconFill: iconFill, iconFillHover: iconFillHover, imageSrc: isRevealed ? imageRevealableHide : imageRevealableShow, shape: iconShape, SvgImage: isRevealed ? iconRevealableHide : iconRevealableShow, onClick: revealeHandler }))] }));
231
+ "placeholder-text-color_".concat(placeholderTextColorClass), textColorClass && "text-color_".concat(textColorClass)), type: inputType, disabled: isDisabled, placeholder: placeholder, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown }), isRevealable && (jsx(Icon, { className: "input-password__icon", size: iconSize, iconFill: iconFill, iconFillHover: iconFillHover, imageSrc: isRevealed ? imageRevealableHide : imageRevealableShow, shape: iconShape, SvgImage: isRevealed ? iconRevealableHide : iconRevealableShow, onClick: revealeHandler }))] }));
236
232
  }
237
233
 
238
234
  export { InputPassword, inputPasswordAppearance, inputPasswordConfig };
@@ -1,4 +1,4 @@
1
- export { L as Label, a as labelAppearance, l as labelConfig } from '../Label_es_CoIII7Ty.js';
1
+ export { L as Label, a as labelAppearance, l as labelConfig } from '../Label_es_C4Icioi8.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
@@ -19,9 +19,9 @@ import '../hooks.js';
19
19
  import '../hooks/useStyles/styleAttributes.js';
20
20
  import '../hooks/useStyles/useStyles.js';
21
21
  import 'lodash/maxBy';
22
- import '../Icon_es_C76te22j.js';
22
+ import '../Icon_es_Cstv1LFr.js';
23
23
  import 'react-inlinesvg';
24
24
  import '../hoc/urlWithAssetPrefix.js';
25
25
  import '../context/UrlAssetPrefix.js';
26
- import '../Link_es_BnUIX0QT.js';
27
- import '../Text_es_CtCwsa3V.js';
26
+ import '../Link_es_XiqbdwLp.js';
27
+ import '../Text_es_CwV9rjFD.js';
@@ -1,4 +1,4 @@
1
- export { L as Link, a as LinkWrapper, b as linkAppearance, l as linkConfig } from '../Link_es_BnUIX0QT.js';
1
+ export { L as Link, a as LinkWrapper, b as linkAppearance, l as linkConfig } from '../Link_es_XiqbdwLp.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -4,7 +4,7 @@ import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceC
4
4
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
5
5
  import { useStyles } from '../hooks/useStyles/useStyles.js';
6
6
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
7
- import { L as Link } from '../Link_es_BnUIX0QT.js';
7
+ import { L as Link } from '../Link_es_XiqbdwLp.js';
8
8
  import 'react';
9
9
  import 'lodash/camelCase';
10
10
  import 'lodash/castArray';
@@ -1,4 +1,4 @@
1
- export { L as Loader, a as loaderAppearance, l as loaderConfig } from '../Loader_es_C8ETXkiZ.js';
1
+ export { L as Loader, a as loaderAppearance, l as loaderConfig } from '../Loader_es_ByhTIMxS.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'clsx';
4
4
  import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
@@ -19,4 +19,4 @@ import '../hooks.js';
19
19
  import '../hooks/useStyles/styleAttributes.js';
20
20
  import '../hooks/useStyles/useStyles.js';
21
21
  import 'lodash/maxBy';
22
- import '../Text_es_CtCwsa3V.js';
22
+ import '../Text_es_CwV9rjFD.js';
@@ -4,7 +4,7 @@ import { urlWithAssetPrefix } from '../hoc/urlWithAssetPrefix.js';
4
4
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { a as LinkWrapper } from '../Link_es_BnUIX0QT.js';
7
+ import { a as LinkWrapper } from '../Link_es_XiqbdwLp.js';
8
8
  import '../tslib.es6_es_Bwu1Cn-t.js';
9
9
  import 'react';
10
10
  import '@itcase/common';
@@ -4,9 +4,9 @@ import clsx from 'clsx';
4
4
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { I as Icon, T as Tooltip } from '../Icon_es_C76te22j.js';
8
- import { L as Link } from '../Link_es_BnUIX0QT.js';
9
- import { T as Text } from '../Text_es_CtCwsa3V.js';
7
+ import { I as Icon, T as Tooltip } from '../Icon_es_Cstv1LFr.js';
8
+ import { L as Link } from '../Link_es_XiqbdwLp.js';
9
+ import { T as Text } from '../Text_es_CwV9rjFD.js';
10
10
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
11
11
  import 'lodash/camelCase';
12
12
  import 'lodash/castArray';
@@ -197,7 +197,7 @@ function MenuItem(props) {
197
197
  (_a = tooltipRef.current) === null || _a === void 0 ? void 0 : _a.closeTooltip();
198
198
  }
199
199
  }, [showTooltip]);
200
- var appearanceConfig = useAppearanceConfig(appearance, menuItemConfig);
200
+ var appearanceConfig = useAppearanceConfig(appearance, menuItemConfig, isDisabled);
201
201
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
202
202
  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, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextColorDisabled = propsGenerator.labelTextColorDisabled, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextSize = propsGenerator.labelTextSize, labelWeight = propsGenerator.labelWeight, labelWrap = propsGenerator.labelWrap, borderColorClass = propsGenerator.borderColorClass, 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, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, tooltipFill = propsGenerator.tooltipFill, tooltipShapeStrength = propsGenerator.tooltipShapeStrength, tooltipText = propsGenerator.tooltipText, tooltipTextColor = propsGenerator.tooltipTextColor, tooltipTitleTextColor = propsGenerator.tooltipTitleTextColor, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass, isSkeleton = propsGenerator.isSkeleton;
203
203
  // @ts-expect-error
@@ -5,11 +5,11 @@ import ReactDOM from 'react-dom';
5
5
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
7
  import { useStyles } from '../hooks/useStyles/useStyles.js';
8
- import { b as Title, I as Icon } from '../Icon_es_C76te22j.js';
8
+ import { b as Title, I as Icon } from '../Icon_es_Cstv1LFr.js';
9
9
  import { O as Overlay } from '../Overlay_es_DF3DAdxS.js';
10
10
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
11
11
  import { icons24, icons32, icons40 } from '@itcase/icons/default';
12
- import { L as Loader } from '../Loader_es_C8ETXkiZ.js';
12
+ import { L as Loader } from '../Loader_es_ByhTIMxS.js';
13
13
  import 'lodash/camelCase';
14
14
  import 'lodash/castArray';
15
15
  import 'lodash/upperFirst';
@@ -26,8 +26,8 @@ import 'lodash/maxBy';
26
26
  import 'react-inlinesvg';
27
27
  import '../hoc/urlWithAssetPrefix.js';
28
28
  import '../context/UrlAssetPrefix.js';
29
- import '../Link_es_BnUIX0QT.js';
30
- import '../Text_es_CtCwsa3V.js';
29
+ import '../Link_es_XiqbdwLp.js';
30
+ import '../Text_es_CwV9rjFD.js';
31
31
 
32
32
  var modalAppearanceShape = {
33
33
  circular: {
@@ -133,7 +133,7 @@ var getOrCreateModalElement = function (modalQuerySelector, className) {
133
133
  };
134
134
  // Modal component that is an abstraction around the portal API.
135
135
  var Modal = React.forwardRef(function Modal(props, ref) {
136
- var id = props.id, dataTestId = props.dataTestId, dataTour = props.dataTour, className = props.className, appearance = props.appearance, title = props.title, contentClassName = props.contentClassName, _a = props.modalQuerySelector, modalQuerySelector = _a === void 0 ? '#modal-global' : _a, _b = props.scroll, scroll = _b === void 0 ? false : _b, _c = props.stickyHeader, stickyHeader = _c === void 0 ? false : _c, _d = props.isCloseOnBlur, isCloseOnBlur = _d === void 0 ? true : _d, _e = props.isOpen, initialIsOpen = _e === void 0 ? false : _e, _f = props.isOverlay, isOverlay = _f === void 0 ? true : _f, _g = props.isScrollOnOpen, isScrollOnOpen = _g === void 0 ? true : _g, _h = props.isSetFocusOnOpen, isSetFocusOnOpen = _h === void 0 ? true : _h, isSkeleton = props.isSkeleton, onClickOverlay = props.onClickOverlay, onCloseModal = props.onCloseModal, onOpenModal = props.onOpenModal, children = props.children;
136
+ var id = props.id, dataTestId = props.dataTestId, dataTour = props.dataTour, className = props.className, appearance = props.appearance, title = props.title, contentClassName = props.contentClassName, _a = props.modalQuerySelector, modalQuerySelector = _a === void 0 ? '#modal-global' : _a, _b = props.scroll, scroll = _b === void 0 ? false : _b, _c = props.stickyHeader, stickyHeader = _c === void 0 ? false : _c, _d = props.isCloseOnBlur, isCloseOnBlur = _d === void 0 ? true : _d, _e = props.isOpen, initialIsOpen = _e === void 0 ? false : _e, _f = props.isOverlay, isOverlay = _f === void 0 ? true : _f, isDisabled = props.isDisabled, _g = props.isScrollOnOpen, isScrollOnOpen = _g === void 0 ? true : _g, _h = props.isSetFocusOnOpen, isSetFocusOnOpen = _h === void 0 ? true : _h, isSkeleton = props.isSkeleton, onClickOverlay = props.onClickOverlay, onCloseModal = props.onCloseModal, onOpenModal = props.onOpenModal, children = props.children;
137
137
  // Query DOM element
138
138
  var _j = useState(null), modalElement = _j[0], setModalElement = _j[1];
139
139
  var _k = useState(initialIsOpen), isOpen = _k[0], setIsOpen = _k[1];
@@ -215,7 +215,7 @@ var Modal = React.forwardRef(function Modal(props, ref) {
215
215
  }, [addModalProps, className, modalQuerySelector]);
216
216
  // Save ref things
217
217
  useImperativeHandle(ref, function () { return ({ modalElement: modalElement, openModal: openModal, closeModal: closeModal, isOpen: isOpen }); }, [isOpen, openModal, closeModal, modalElement]);
218
- var appearanceConfig = useAppearanceConfig(appearance, modalConfig);
218
+ var appearanceConfig = useAppearanceConfig(appearance, modalConfig, isDisabled);
219
219
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
220
220
  var fillClass = propsGenerator.fillClass, titleTextColor = propsGenerator.titleTextColor, titleTextColorHover = propsGenerator.titleTextColorHover, titleTextSize = propsGenerator.titleTextSize, titleTextTruncate = propsGenerator.titleTextTruncate, titleTextWeight = propsGenerator.titleTextWeight, titleTextWidth = propsGenerator.titleTextWidth, titleTextWrap = propsGenerator.titleTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, elevationClass = propsGenerator.elevationClass, overlayFill = propsGenerator.overlayFill, overlayOpacity = propsGenerator.overlayOpacity, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, closeIconAppearance = propsGenerator.closeIconAppearance, closeIconAppearanceSize = propsGenerator.closeIconAppearanceSize, closeIconFillSize = propsGenerator.closeIconFillSize, closeIconImage = propsGenerator.closeIconImage, closeIconShape = propsGenerator.closeIconShape, closeIconSize = propsGenerator.closeIconSize;
221
221
  // @ts-expect-error
@@ -5,7 +5,7 @@ import { Sheet } from 'react-modal-sheet';
5
5
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
7
  import { useStyles } from '../hooks/useStyles/useStyles.js';
8
- import { b as Title } from '../Icon_es_C76te22j.js';
8
+ import { b as Title } from '../Icon_es_Cstv1LFr.js';
9
9
  import 'lodash/camelCase';
10
10
  import 'lodash/castArray';
11
11
  import 'lodash/upperFirst';
@@ -23,8 +23,8 @@ import 'clsx';
23
23
  import 'react-inlinesvg';
24
24
  import '../hoc/urlWithAssetPrefix.js';
25
25
  import '../context/UrlAssetPrefix.js';
26
- import '../Link_es_BnUIX0QT.js';
27
- import '../Text_es_CtCwsa3V.js';
26
+ import '../Link_es_XiqbdwLp.js';
27
+ import '../Text_es_CwV9rjFD.js';
28
28
 
29
29
  var modalSheetBottomAppearance = {
30
30
  sizeL: {
@@ -43,7 +43,7 @@ var modalSheetBottomAppearance = {
43
43
  var modalSheetBottomConfig = {
44
44
  appearance: modalSheetBottomAppearance};
45
45
  var ModalSheetBottom = React.forwardRef(function Modal(props, ref) {
46
- var dataTestId = props.dataTestId, dataTour = props.dataTour, appearance = props.appearance, initialIsOpen = props.initialIsOpen, title = props.title, closeButton = props.closeButton, onCloseModalSheetBottom = props.onCloseModalSheetBottom, onOpenModalSheetBottom = props.onOpenModalSheetBottom, children = props.children;
46
+ var dataTestId = props.dataTestId, dataTour = props.dataTour, appearance = props.appearance, initialIsOpen = props.initialIsOpen, title = props.title, isDisabled = props.isDisabled, closeButton = props.closeButton, onCloseModalSheetBottom = props.onCloseModalSheetBottom, onOpenModalSheetBottom = props.onOpenModalSheetBottom, children = props.children;
47
47
  var _a = useState(initialIsOpen), isOpen = _a[0], setIsOpen = _a[1];
48
48
  var openModalSheetBottom = useCallback(function () {
49
49
  setIsOpen(true);
@@ -59,7 +59,7 @@ var ModalSheetBottom = React.forwardRef(function Modal(props, ref) {
59
59
  closeModal: closeModalSheetBottom,
60
60
  isOpen: isOpen,
61
61
  }); }, [isOpen, openModalSheetBottom, closeModalSheetBottom]);
62
- var appearanceConfig = useAppearanceConfig(appearance, modalSheetBottomConfig);
62
+ var appearanceConfig = useAppearanceConfig(appearance, modalSheetBottomConfig, isDisabled);
63
63
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
64
64
  var titleTextColor = propsGenerator.titleTextColor, titleTextColorHover = propsGenerator.titleTextColorHover, titleTextSize = propsGenerator.titleTextSize, titleTextTruncate = propsGenerator.titleTextTruncate, titleTextWeight = propsGenerator.titleTextWeight, titleTextWidth = propsGenerator.titleTextWidth, titleTextWrap = propsGenerator.titleTextWrap;
65
65
  // @ts-expect-error
@@ -3,8 +3,8 @@ import clsx from 'clsx';
3
3
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
4
4
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
5
5
  import { useStyles } from '../hooks/useStyles/useStyles.js';
6
- import { I as Icon } from '../Icon_es_C76te22j.js';
7
- import { T as Text } from '../Text_es_CtCwsa3V.js';
6
+ import { I as Icon } from '../Icon_es_Cstv1LFr.js';
7
+ import { T as Text } from '../Text_es_CwV9rjFD.js';
8
8
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
9
9
  import { icons20 } from '@itcase/icons/default';
10
10
  import { useNotifications, useNotificationsAPI } from '../context/Notifications.js';
@@ -24,7 +24,7 @@ import 'lodash/maxBy';
24
24
  import 'react-inlinesvg';
25
25
  import '../hoc/urlWithAssetPrefix.js';
26
26
  import '../context/UrlAssetPrefix.js';
27
- import '../Link_es_BnUIX0QT.js';
27
+ import '../Link_es_XiqbdwLp.js';
28
28
 
29
29
  var notificationAppearanceDefault = {
30
30
  defaultPrimary: {