@itcase/ui 1.8.42 → 1.8.44

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 (172) hide show
  1. package/dist/{Avatar_cjs_BbeDJ-No.js → Avatar_cjs_Bp8wjwGw.js} +8 -10
  2. package/dist/{Avatar_es_B1Ao9Im_.js → Avatar_es_BIKf0hNV.js} +7 -9
  3. package/dist/{Button_cjs_Bzx1GdT5.js → Button_cjs_Chn18eOU.js} +104 -10
  4. package/dist/{Button_es_DhCLxWhq.js → Button_es_XnWb2XF3.js} +103 -9
  5. package/dist/{ChipsGroup_cjs_p99H-9a8.js → ChipsGroup_cjs_Deoz_rju.js} +9 -9
  6. package/dist/{ChipsGroup_es_CWq3TR_1.js → ChipsGroup_es_C1Qi_5A1.js} +8 -8
  7. package/dist/{DatePicker_cjs_Cq8vqj3E.js → DatePicker_cjs_B24qHiks.js} +13 -16
  8. package/dist/{DatePicker_es_DYs71cnU.js → DatePicker_es_BuC8mEcK.js} +10 -13
  9. package/dist/{Divider_cjs_BmCJj3TN.js → Divider_cjs_rxMMBfLC.js} +3 -5
  10. package/dist/{Divider_es_kY-30pft.js → Divider_es_CiRU0sTz.js} +3 -5
  11. package/dist/{DropdownItem_cjs_B1gGciTB.js → DropdownItem_cjs_DuqySfbd.js} +6 -8
  12. package/dist/{DropdownItem_es_JVT4f6Nb.js → DropdownItem_es_BBxfR35q.js} +5 -7
  13. package/dist/{Group_cjs_Cwt0gWk4.js → Group_cjs_CDLfU5D2.js} +5 -8
  14. package/dist/{Group_es_CYW2Hquh.js → Group_es_DSZxyI1e.js} +5 -8
  15. package/dist/{Tooltip_cjs_BBwH8sjA.js → Icon_cjs_DRZih-pc.js} +588 -599
  16. package/dist/{Tooltip_es_Y2aoFQW7.js → Icon_es_k9bHSLyL.js} +588 -599
  17. package/dist/{Input_cjs_CPmXkQGd.js → Input_cjs_BGLd0EQu.js} +3 -5
  18. package/dist/{Input_es_D9Y1Rj5Y.js → Input_es_D2mNCqiH.js} +3 -5
  19. package/dist/{Label_cjs_Mb8j2bLu.js → Label_cjs_D70CHJDE.js} +6 -8
  20. package/dist/{Label_es_CIDBUVgO.js → Label_es_HXrap3A4.js} +5 -7
  21. package/dist/{Link_cjs_DbRGq2Yk.js → Link_cjs_BqT6eVl6.js} +2 -4
  22. package/dist/{Link_es_DxtZLeKY.js → Link_es_BnUIX0QT.js} +2 -4
  23. package/dist/{Loader_cjs_Ca4i0sER.js → Loader_cjs_BShrE-Nb.js} +5 -7
  24. package/dist/{Loader_es_GYOr0UTX.js → Loader_es_BDb87cdb.js} +5 -7
  25. package/dist/{Overlay_cjs_CFOtnzDU.js → Overlay_cjs_BMrkRg7M.js} +3 -5
  26. package/dist/{Overlay_es_DczPjVL9.js → Overlay_es_D_izIIUB.js} +3 -5
  27. package/dist/{Text_cjs_C9fOm0nd.js → Text_cjs_BlNeIm_v.js} +5 -7
  28. package/dist/{Text_es_BfLRfj-5.js → Text_es_Ffjr5J1k.js} +5 -7
  29. package/dist/cjs/components/Accordion.js +7 -9
  30. package/dist/cjs/components/Avatar.js +9 -8
  31. package/dist/cjs/components/AvatarStack.js +8 -10
  32. package/dist/cjs/components/Badge.js +11 -10
  33. package/dist/cjs/components/Breadcrumbs.js +6 -8
  34. package/dist/cjs/components/Button.js +11 -10
  35. package/dist/cjs/components/Cell.js +8 -10
  36. package/dist/cjs/components/Checkbox.js +4 -6
  37. package/dist/cjs/components/Checkmark.js +3 -5
  38. package/dist/cjs/components/Chips.js +4 -4
  39. package/dist/cjs/components/Choice.js +9 -11
  40. package/dist/cjs/components/Code.js +3 -5
  41. package/dist/cjs/components/CookiesWarning.js +12 -14
  42. package/dist/cjs/components/Dadata.js +2 -1
  43. package/dist/cjs/components/DatePeriod.js +12 -15
  44. package/dist/cjs/components/DatePicker.js +9 -8
  45. package/dist/cjs/components/Divider.js +4 -3
  46. package/dist/cjs/components/Drawer.js +13 -15
  47. package/dist/cjs/components/Dropdown.js +6 -5
  48. package/dist/cjs/components/Group.js +3 -2
  49. package/dist/cjs/components/HeroTitle.js +7 -9
  50. package/dist/cjs/components/Icon.js +11 -10
  51. package/dist/cjs/components/Input.js +3 -2
  52. package/dist/cjs/components/InputPassword.js +9 -11
  53. package/dist/cjs/components/Label.js +6 -5
  54. package/dist/cjs/components/Link.js +2 -1
  55. package/dist/cjs/components/List.js +4 -6
  56. package/dist/cjs/components/Loader.js +5 -4
  57. package/dist/cjs/components/Logo.js +4 -6
  58. package/dist/cjs/components/MenuItem.js +31 -10
  59. package/dist/cjs/components/Modal.js +10 -12
  60. package/dist/cjs/components/Notification.js +7 -9
  61. package/dist/cjs/components/Overlay.js +4 -3
  62. package/dist/cjs/components/Pagination.js +10 -12
  63. package/dist/cjs/components/Radio.js +4 -6
  64. package/dist/cjs/components/Response.js +8 -10
  65. package/dist/cjs/components/Search.js +7 -9
  66. package/dist/cjs/components/Segmented.js +12 -14
  67. package/dist/cjs/components/Select.js +15 -22
  68. package/dist/cjs/components/Swiper.js +5 -4
  69. package/dist/cjs/components/Switch.js +4 -6
  70. package/dist/cjs/components/Tab.js +8 -10
  71. package/dist/cjs/components/Text.js +4 -3
  72. package/dist/cjs/components/Textarea.js +3 -5
  73. package/dist/cjs/components/Tile.js +7 -9
  74. package/dist/cjs/components/Title.js +11 -10
  75. package/dist/cjs/components/Tooltip.js +11 -10
  76. package/dist/cjs/components/Warning.js +168 -0
  77. package/dist/cjs/hooks/useAppearanceConfig/useAppearanceConfig.js +4 -6
  78. package/dist/components/Accordion.js +6 -8
  79. package/dist/components/Avatar.js +9 -8
  80. package/dist/components/AvatarStack.js +8 -10
  81. package/dist/components/Badge.js +8 -7
  82. package/dist/components/Breadcrumbs.js +5 -7
  83. package/dist/components/Button.js +11 -10
  84. package/dist/components/Cell.js +7 -9
  85. package/dist/components/Checkbox.js +4 -6
  86. package/dist/components/Checkmark.js +3 -5
  87. package/dist/components/Chips.js +4 -4
  88. package/dist/components/Choice.js +7 -9
  89. package/dist/components/Code.js +3 -5
  90. package/dist/components/CookiesWarning.js +12 -14
  91. package/dist/components/Dadata.js +2 -1
  92. package/dist/components/DatePeriod.js +12 -15
  93. package/dist/components/DatePicker.js +9 -8
  94. package/dist/components/Divider.js +4 -3
  95. package/dist/components/Drawer.js +12 -14
  96. package/dist/components/Dropdown.js +6 -5
  97. package/dist/components/Group.js +3 -2
  98. package/dist/components/HeroTitle.js +6 -8
  99. package/dist/components/Icon.js +8 -7
  100. package/dist/components/Input.js +3 -2
  101. package/dist/components/InputPassword.js +8 -10
  102. package/dist/components/Label.js +6 -5
  103. package/dist/components/Link.js +2 -1
  104. package/dist/components/List.js +4 -6
  105. package/dist/components/Loader.js +5 -4
  106. package/dist/components/Logo.js +4 -6
  107. package/dist/components/MenuItem.js +29 -8
  108. package/dist/components/Modal.js +9 -11
  109. package/dist/components/Notification.js +6 -8
  110. package/dist/components/Overlay.js +4 -3
  111. package/dist/components/Pagination.js +8 -10
  112. package/dist/components/Radio.js +4 -6
  113. package/dist/components/Response.js +8 -10
  114. package/dist/components/Search.js +5 -7
  115. package/dist/components/Segmented.js +10 -12
  116. package/dist/components/Select.js +11 -18
  117. package/dist/components/Swiper.js +4 -3
  118. package/dist/components/Switch.js +4 -6
  119. package/dist/components/Tab.js +7 -9
  120. package/dist/components/Text.js +4 -3
  121. package/dist/components/Textarea.js +3 -5
  122. package/dist/components/Tile.js +6 -8
  123. package/dist/components/Title.js +8 -7
  124. package/dist/components/Tooltip.js +8 -7
  125. package/dist/components/Warning.js +164 -0
  126. package/dist/css/components/MenuItem/MenuItem.css +2 -2
  127. package/dist/css/components/Warning/Warning.css +52 -0
  128. package/dist/css/mixins/mixin_utils.css +16 -0
  129. package/dist/hooks/useAppearanceConfig/useAppearanceConfig.js +4 -6
  130. package/dist/stories/Overview.mdx +6 -6
  131. package/dist/stories/Playground.mdx +5 -5
  132. package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSize.d.ts +7 -7
  133. package/dist/types/components/Button/appearance/buttonAccent.d.ts +11 -0
  134. package/dist/types/components/Button/appearance/buttonDanger.d.ts +11 -0
  135. package/dist/types/components/Button/appearance/buttonError.d.ts +11 -0
  136. package/dist/types/components/Button/appearance/buttonInfo.d.ts +11 -0
  137. package/dist/types/components/Button/appearance/buttonPrimary.d.ts +10 -0
  138. package/dist/types/components/Button/appearance/buttonSecondary.d.ts +10 -0
  139. package/dist/types/components/Button/appearance/buttonSuccess.d.ts +11 -0
  140. package/dist/types/components/Button/appearance/buttonSurface.d.ts +10 -0
  141. package/dist/types/components/Button/appearance/buttonWarning.d.ts +11 -0
  142. package/dist/types/components/Chips/stories/__mock__/index.d.ts +1 -1
  143. package/dist/types/components/Choice/stories/__mock__/index.d.ts +3 -3
  144. package/dist/types/components/CookiesWarning/CookiesWarning.d.ts +1 -0
  145. package/dist/types/components/DatePicker/DatePicker.appearance.d.ts +6 -6
  146. package/dist/types/components/DatePicker/appearance/datePickerSize.d.ts +6 -6
  147. package/dist/types/components/Drawer/appearance/drawerSurface.d.ts +1 -1
  148. package/dist/types/components/Dropdown/stories/__mock__/index.d.ts +6 -6
  149. package/dist/types/components/MenuItem/appearance/menuItemAccent.d.ts +8 -0
  150. package/dist/types/components/MenuItem/appearance/menuItemError.d.ts +7 -0
  151. package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +8 -0
  152. package/dist/types/components/Notification/appearance/notificationDefault.d.ts +1 -1
  153. package/dist/types/components/Notification/appearance/notificationError.d.ts +1 -1
  154. package/dist/types/components/Notification/appearance/notificationInfo.d.ts +1 -1
  155. package/dist/types/components/Notification/appearance/notificationSuccess.d.ts +1 -1
  156. package/dist/types/components/Notification/appearance/notificationWarning.d.ts +1 -1
  157. package/dist/types/components/Pagination/appearance/paginationSize.d.ts +16 -16
  158. package/dist/types/components/Search/appearance/searchSize.d.ts +12 -12
  159. package/dist/types/components/Segmented/stories/__mock__/index.d.ts +8 -8
  160. package/dist/types/components/Tab/stories/__mock__/index.d.ts +1 -1
  161. package/dist/types/components/Warning/Warning.appearance.d.ts +101 -0
  162. package/dist/types/components/Warning/Warning.d.ts +4 -0
  163. package/dist/types/components/Warning/Warning.interface.d.ts +41 -0
  164. package/dist/types/components/Warning/appearance/warningAccent.d.ts +23 -0
  165. package/dist/types/components/Warning/appearance/warningError.d.ts +23 -0
  166. package/dist/types/components/Warning/appearance/warningInfo.d.ts +23 -0
  167. package/dist/types/components/Warning/appearance/warningSize.d.ts +11 -0
  168. package/dist/types/components/Warning/appearance/warningStyle.d.ts +14 -0
  169. package/dist/types/components/Warning/appearance/warningWarning.d.ts +23 -0
  170. package/dist/types/components/Warning/index.d.ts +2 -0
  171. package/dist/types/hooks/useAppearanceConfig/useAppearanceConfig.d.ts +1 -3
  172. package/package.json +13 -12
@@ -1,8 +1,9 @@
1
- import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
2
1
  import { jsx } from 'react/jsx-runtime';
3
2
  import clsx from 'clsx';
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 { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
6
7
  import 'react';
7
8
  import 'lodash/camelCase';
8
9
  import 'lodash/castArray';
@@ -98,10 +99,7 @@ var checkmarkConfig = {
98
99
  };
99
100
  function Checkmark(props) {
100
101
  var className = props.className, appearance = props.appearance, _a = props.isDisabled, isDisabled = _a === void 0 ? false : _a, isChecked = props.isChecked, onClick = props.onClick;
101
- var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
102
- var _a;
103
- return (__assign(__assign({}, resultConfig), (_a = checkmarkConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
104
- }, {});
102
+ var appearanceConfig = useAppearanceConfig(appearance, checkmarkConfig);
105
103
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
106
104
  var fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorActiveClass = propsGenerator.borderColorActiveClass, borderColorActiveHoverClass = propsGenerator.borderColorActiveHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderWidthClass = propsGenerator.borderWidthClass, checkmarkFillClass = propsGenerator.checkmarkFillClass, sizeClass = propsGenerator.sizeClass;
107
105
  // @ts-expect-error
@@ -1,4 +1,4 @@
1
- export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_CWq3TR_1.js';
1
+ export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_C1Qi_5A1.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'clsx';
4
4
  import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
@@ -18,9 +18,9 @@ import '../utils/setViewportProperty.js';
18
18
  import '../hooks/useStyles/useStyles.js';
19
19
  import 'lodash/maxBy';
20
20
  import '../hooks/useStyles/styleAttributes.js';
21
- import '../Tooltip_es_Y2aoFQW7.js';
22
- import '../Text_es_BfLRfj-5.js';
21
+ import '../Icon_es_k9bHSLyL.js';
23
22
  import 'react-inlinesvg';
24
23
  import '../hoc/urlWithAssetPrefix.js';
25
24
  import '../context/UrlAssetPrefix.js';
26
- import '../Link_es_DxtZLeKY.js';
25
+ import '../Link_es_BnUIX0QT.js';
26
+ import '../Text_es_Ffjr5J1k.js';
@@ -1,12 +1,13 @@
1
- import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
2
1
  import { jsxs, jsx } from 'react/jsx-runtime';
3
2
  import React, { useRef, useMemo, createRef, useCallback } from 'react';
4
3
  import clsx from 'clsx';
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 '../Tooltip_es_Y2aoFQW7.js';
8
- import { L as Loader } from '../Loader_es_GYOr0UTX.js';
9
- import { T as Text } from '../Text_es_BfLRfj-5.js';
7
+ import { I as Icon } from '../Icon_es_k9bHSLyL.js';
8
+ import { L as Loader } from '../Loader_es_BDb87cdb.js';
9
+ import { T as Text } from '../Text_es_Ffjr5J1k.js';
10
+ import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
10
11
  import 'lodash/camelCase';
11
12
  import 'lodash/castArray';
12
13
  import 'lodash/upperFirst';
@@ -22,7 +23,7 @@ import '../hooks/useStyles/styleAttributes.js';
22
23
  import 'react-inlinesvg';
23
24
  import '../hoc/urlWithAssetPrefix.js';
24
25
  import '../context/UrlAssetPrefix.js';
25
- import '../Link_es_DxtZLeKY.js';
26
+ import '../Link_es_BnUIX0QT.js';
26
27
 
27
28
  var choiceAppearanceDefault = {
28
29
  defaultPrimary: {
@@ -167,10 +168,7 @@ function Choice(props) {
167
168
  var isChecked = isCheckbox ? event.target.checked : true;
168
169
  setActiveSegment && setActiveSegment(item, isChecked);
169
170
  }, [isCheckbox, setActiveSegment]);
170
- var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
171
- var _a;
172
- return (__assign(__assign({}, resultConfig), (_a = choiceConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
173
- }, {});
171
+ var appearanceConfig = useAppearanceConfig(appearance, choiceConfig);
174
172
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
175
173
  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, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconAfterFillDisabled = propsGenerator.iconAfterFillDisabled, iconBeforeFillDisabled = propsGenerator.iconBeforeFillDisabled, iconFillDisabled = propsGenerator.iconFillDisabled, 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, shapeItemClass = propsGenerator.shapeItemClass, wrapClass = propsGenerator.wrapClass;
176
174
  var styles = useStyles(props).styles;
@@ -3,6 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { useState, useEffect } from 'react';
4
4
  import clsx from 'clsx';
5
5
  import OtpInput from 'react-otp-input';
6
+ import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
6
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
8
  import 'lodash/camelCase';
8
9
  import 'lodash/castArray';
@@ -114,10 +115,7 @@ var codeConfig = {
114
115
  function Code(props) {
115
116
  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;
116
117
  var _c = useState(''), otp = _c[0], setOtp = _c[1];
117
- var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
118
- var _a;
119
- return (__assign(__assign({}, resultConfig), (_a = codeConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
120
- }, {});
118
+ var appearanceConfig = useAppearanceConfig(appearance, codeConfig);
121
119
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
122
120
  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, inputShapeClass = propsGenerator.inputShapeClass, inputSizeClass = propsGenerator.inputSizeClass, inputTextColorClass = propsGenerator.inputTextColorClass, inputTextSizeClass = propsGenerator.inputTextSizeClass, inputTextWeightClass = propsGenerator.inputTextWeightClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
123
121
  // NOTE: too many dependencies for "useCallback" and possible too many checks
@@ -125,7 +123,7 @@ function Code(props) {
125
123
  return (jsx("input", __assign({}, otpInputProps, { className: clsx('code__input', inputCaretColorClass && "caret-color_".concat(inputCaretColorClass), inputFillClass && "fill_".concat(inputFillClass), inputFillHoverClass && "fill_hover_".concat(inputFillHoverClass), inputPlaceholderTextColorClass &&
126
124
  "placeholder-text-color_".concat(inputPlaceholderTextColorClass), inputShapeClass && "code__input_shape_".concat(inputShapeClass), inputTextSizeClass && "text_size_".concat(inputTextSizeClass), inputTextColorClass && "text-color_".concat(inputTextColorClass), inputTextWeightClass && "text-weight_".concat(inputTextWeightClass), inputBorderWidthClass && "border-width_".concat(inputBorderWidthClass), inputBorderColorClass && "border-color_".concat(inputBorderColorClass), inputBorderColorHoverClass &&
127
125
  "border-color_hover_".concat(inputBorderColorHoverClass), inputBorderFocusColorClass &&
128
- "border-color_focus_".concat(inputBorderFocusColorClass), inputSizeClass && "code__input_size_".concat(inputSizeClass), widthClass && "width_".concat(widthClass), isSkeleton && "code__input_skeleton"), placeholder: inputPlaceholder, name: "code-".concat(index), autoComplete: "one-time-code", onBlur: function (event) {
126
+ "border-color_focus_".concat(inputBorderFocusColorClass), inputSizeClass && "code__input_size_".concat(inputSizeClass), widthClass && "width_".concat(widthClass), isSkeleton && "code__input_skeleton"), name: "code-".concat(index), autoComplete: "one-time-code", placeholder: inputPlaceholder, onBlur: function (event) {
129
127
  onBlur && onBlur(event);
130
128
  otpInputProps.onBlur(event);
131
129
  }, onFocus: function (event) {
@@ -1,11 +1,12 @@
1
- import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
2
1
  import { jsx, jsxs } from 'react/jsx-runtime';
3
2
  import { useRef, useMemo, useCallback, useEffect } from 'react';
4
3
  import clsx from 'clsx';
5
4
  import Cookies from 'js-cookie';
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_DhCLxWhq.js';
8
- import { T as Text } from '../Text_es_BfLRfj-5.js';
7
+ import { B as Button } from '../Button_es_XnWb2XF3.js';
8
+ import { T as Text } from '../Text_es_Ffjr5J1k.js';
9
+ import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
9
10
  import 'lodash/camelCase';
10
11
  import 'lodash/castArray';
11
12
  import 'lodash/upperFirst';
@@ -16,15 +17,15 @@ import '../context/UIContext.js';
16
17
  import '../hooks/useMediaQueries/useMediaQueries.js';
17
18
  import 'react-responsive';
18
19
  import '../utils/setViewportProperty.js';
19
- import '../Tooltip_es_Y2aoFQW7.js';
20
- import '../hooks/useStyles/useStyles.js';
21
- import 'lodash/maxBy';
22
- import '../hooks/useStyles/styleAttributes.js';
20
+ import '../Icon_es_k9bHSLyL.js';
23
21
  import 'react-inlinesvg';
24
22
  import '../hoc/urlWithAssetPrefix.js';
25
23
  import '../context/UrlAssetPrefix.js';
26
- import '../Link_es_DxtZLeKY.js';
27
- import '../Loader_es_GYOr0UTX.js';
24
+ import '../hooks/useStyles/useStyles.js';
25
+ import 'lodash/maxBy';
26
+ import '../hooks/useStyles/styleAttributes.js';
27
+ import '../Link_es_BnUIX0QT.js';
28
+ import '../Loader_es_BDb87cdb.js';
28
29
 
29
30
  var cookiesWarningAppearanceDefault = {
30
31
  defaultPrimary: {
@@ -69,12 +70,9 @@ function CookiesWarning(props) {
69
70
  window.removeEventListener('scroll', closeCookiesWarning, true);
70
71
  }
71
72
  }, [isOpen]);
72
- var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
73
- var _a;
74
- return (__assign(__assign({}, resultConfig), (_a = cookiesWarningConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
75
- }, {});
73
+ var appearanceConfig = useAppearanceConfig(appearance, cookiesWarningConfig);
76
74
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
77
- var fillClass = propsGenerator.fillClass, messageTextSize = propsGenerator.messageTextSize, messageTextColor = propsGenerator.messageTextColor, buttonAppearance = propsGenerator.buttonAppearance, buttonFill = propsGenerator.buttonFill, buttonFillHover = propsGenerator.buttonFillHover, buttonLabel = propsGenerator.buttonLabel, buttonLabelSize = propsGenerator.buttonLabelSize, buttonLabelTextColor = propsGenerator.buttonLabelTextColor, buttonShape = propsGenerator.buttonShape, buttonSize = propsGenerator.buttonSize, elevationClass = propsGenerator.elevationClass, buttonWidth = propsGenerator.buttonWidth;
75
+ var fillClass = propsGenerator.fillClass, messageTextColor = propsGenerator.messageTextColor, messageTextSize = propsGenerator.messageTextSize, buttonAppearance = propsGenerator.buttonAppearance, buttonFill = propsGenerator.buttonFill, buttonFillHover = propsGenerator.buttonFillHover, buttonLabel = propsGenerator.buttonLabel, buttonLabelSize = propsGenerator.buttonLabelSize, buttonLabelTextColor = propsGenerator.buttonLabelTextColor, buttonShape = propsGenerator.buttonShape, buttonSize = propsGenerator.buttonSize, buttonWidth = propsGenerator.buttonWidth, elevationClass = propsGenerator.elevationClass;
78
76
  return (isOpen && (jsx("div", { className: clsx('cookies-warning', className, fillClass && "fill_".concat(fillClass), elevationClass && "elevation_".concat(elevationClass)), ref: cookiesWarningRef, children: jsxs("div", { className: "cookies-warning__inner", children: [jsx(Text, { size: messageTextSize, textColor: messageTextColor, children: message }), jsx(Button, { appearance: buttonAppearance, width: buttonWidth, size: buttonSize, fill: buttonFill, fillHover: buttonFillHover, labelTextColor: buttonLabelTextColor, labelTextSize: buttonLabelSize, shape: buttonShape, onClick: closeCookiesWarning, children: buttonLabel })] }) })));
79
77
  }
80
78
 
@@ -3,7 +3,8 @@ 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_D9Y1Rj5Y.js';
6
+ import { I as Input } from '../Input_es_D2mNCqiH.js';
7
+ import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
7
8
  import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
9
  import 'lodash/camelCase';
9
10
  import 'lodash/castArray';
@@ -1,11 +1,12 @@
1
- import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
2
1
  import { jsx, jsxs } from 'react/jsx-runtime';
3
2
  import { useCallback } from 'react';
4
3
  import clsx from 'clsx';
5
4
  import { DATE_PERIOD_INTERVALS } from '@itcase/common';
6
- import { D as DatePickerInput } from '../DatePicker_es_DYs71cnU.js';
5
+ import { D as DatePickerInput } from '../DatePicker_es_BuC8mEcK.js';
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_CWq3TR_1.js';
8
+ import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_C1Qi_5A1.js';
9
+ import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
9
10
  import 'date-fns/locale';
10
11
  import 'react-datepicker';
11
12
  import '../hooks/useStyles/useStyles.js';
@@ -19,19 +20,18 @@ import '../hooks/useMediaQueries/useMediaQueries.js';
19
20
  import 'react-responsive';
20
21
  import '../utils/setViewportProperty.js';
21
22
  import '../hooks/useStyles/styleAttributes.js';
22
- import '../Button_es_DhCLxWhq.js';
23
- import '../Tooltip_es_Y2aoFQW7.js';
24
- import '../Text_es_BfLRfj-5.js';
23
+ import '../Button_es_XnWb2XF3.js';
24
+ import '../Icon_es_k9bHSLyL.js';
25
25
  import 'react-inlinesvg';
26
26
  import '../hoc/urlWithAssetPrefix.js';
27
27
  import '../context/UrlAssetPrefix.js';
28
- import '../Link_es_DxtZLeKY.js';
29
- import '../Loader_es_GYOr0UTX.js';
30
- import '../Input_es_D9Y1Rj5Y.js';
31
- import '../Label_es_CIDBUVgO.js';
28
+ import '../Link_es_BnUIX0QT.js';
29
+ import '../Text_es_Ffjr5J1k.js';
30
+ import '../Loader_es_BDb87cdb.js';
31
+ import '../Input_es_D2mNCqiH.js';
32
+ import '../Label_es_HXrap3A4.js';
32
33
  import '@itcase/icons/default';
33
34
  import 'lodash/castArray';
34
- import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
35
35
 
36
36
  var datePeriodAppearanceSize = {
37
37
  sizeL: {
@@ -79,10 +79,7 @@ var datePeriodConfig = {
79
79
  };
80
80
  function DatePeriod(props) {
81
81
  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;
82
- var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
83
- var _a;
84
- return (__assign(__assign({}, resultConfig), (_a = datePeriodConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
85
- }, {});
82
+ var appearanceConfig = useAppearanceConfig(appearance, datePeriodConfig);
86
83
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
87
84
  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;
88
85
  var onClickPeriodChips = useCallback(function (selectedPeriodItem) {
@@ -1,10 +1,11 @@
1
- export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_DYs71cnU.js';
1
+ export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_BuC8mEcK.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
5
  import 'clsx';
6
6
  import 'date-fns/locale';
7
7
  import 'react-datepicker';
8
+ import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
8
9
  import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
9
10
  import 'lodash/camelCase';
10
11
  import 'lodash/castArray';
@@ -19,14 +20,14 @@ import '../utils/setViewportProperty.js';
19
20
  import '../hooks/useStyles/useStyles.js';
20
21
  import 'lodash/maxBy';
21
22
  import '../hooks/useStyles/styleAttributes.js';
22
- import '../Button_es_DhCLxWhq.js';
23
- import '../Tooltip_es_Y2aoFQW7.js';
24
- import '../Text_es_BfLRfj-5.js';
23
+ import '../Button_es_XnWb2XF3.js';
24
+ import '../Icon_es_k9bHSLyL.js';
25
25
  import 'react-inlinesvg';
26
26
  import '../hoc/urlWithAssetPrefix.js';
27
27
  import '../context/UrlAssetPrefix.js';
28
- import '../Link_es_DxtZLeKY.js';
29
- import '../Loader_es_GYOr0UTX.js';
30
- import '../Input_es_D9Y1Rj5Y.js';
31
- import '../Label_es_CIDBUVgO.js';
28
+ import '../Link_es_BnUIX0QT.js';
29
+ import '../Text_es_Ffjr5J1k.js';
30
+ import '../Loader_es_BDb87cdb.js';
31
+ import '../Input_es_D2mNCqiH.js';
32
+ import '../Label_es_HXrap3A4.js';
32
33
  import '@itcase/icons/default';
@@ -1,9 +1,10 @@
1
- export { D as Divider, a as dividerAppearance, d as dividerConfig } from '../Divider_es_kY-30pft.js';
2
- import '../tslib.es6_es_Bwu1Cn-t.js';
1
+ export { D as Divider, a as dividerAppearance, d as dividerConfig } from '../Divider_es_CiRU0sTz.js';
3
2
  import 'react/jsx-runtime';
4
3
  import 'clsx';
5
- import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
4
+ import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
5
+ import '../tslib.es6_es_Bwu1Cn-t.js';
6
6
  import 'react';
7
+ import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
8
  import 'lodash/camelCase';
8
9
  import 'lodash/castArray';
9
10
  import 'lodash/upperFirst';
@@ -1,28 +1,29 @@
1
- import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
2
1
  import { jsxs, jsx } from 'react/jsx-runtime';
3
2
  import { useRef, useEffect } from 'react';
4
3
  import clsx from 'clsx';
5
4
  import ReactDrawer from 'react-modern-drawer';
6
- import { I as Icon, b as Title } from '../Tooltip_es_Y2aoFQW7.js';
7
- import { T as Text } from '../Text_es_BfLRfj-5.js';
5
+ import { I as Icon, b as Title } from '../Icon_es_k9bHSLyL.js';
6
+ import { T as Text } from '../Text_es_Ffjr5J1k.js';
7
+ import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
8
8
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
9
+ import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
9
10
  import { icons24 } from '@itcase/icons/default';
11
+ import 'react-inlinesvg';
12
+ import '../hoc/urlWithAssetPrefix.js';
13
+ import '@itcase/common';
14
+ import '../context/UrlAssetPrefix.js';
10
15
  import '../hooks/useStyles/useStyles.js';
11
16
  import 'lodash/camelCase';
12
17
  import 'lodash/maxBy';
13
18
  import 'lodash/upperFirst';
14
19
  import '../context/Notifications.js';
15
20
  import 'uuid';
16
- import '@itcase/common';
17
21
  import '../context/UIContext.js';
18
22
  import '../hooks/useMediaQueries/useMediaQueries.js';
19
23
  import 'react-responsive';
20
24
  import '../utils/setViewportProperty.js';
21
25
  import '../hooks/useStyles/styleAttributes.js';
22
- import 'react-inlinesvg';
23
- import '../hoc/urlWithAssetPrefix.js';
24
- import '../context/UrlAssetPrefix.js';
25
- import '../Link_es_DxtZLeKY.js';
26
+ import '../Link_es_BnUIX0QT.js';
26
27
  import 'lodash/castArray';
27
28
 
28
29
  var drawerAppearanceSurface = {
@@ -65,14 +66,11 @@ var drawerConfig = {
65
66
  },
66
67
  };
67
68
  function Drawer(props) {
68
- var className = props.className, type = props.type, close = props.close, appearance = props.appearance, dataTestId = props.dataTestId, dataTour = props.dataTour, title = props.title, desc = props.desc, enableOverlay = props.enableOverlay, before = props.before, after = props.after, isOpenModal = props.isOpenModal, onClickClose = props.onClickClose, onClose = props.onClose, children = props.children;
69
+ var className = props.className, type = props.type, appearance = props.appearance, title = props.title, desc = props.desc, dataTestId = props.dataTestId, dataTour = props.dataTour, enableOverlay = props.enableOverlay, before = props.before, after = props.after, close = props.close, isOpenModal = props.isOpenModal, onClickClose = props.onClickClose, onClose = props.onClose, children = props.children;
69
70
  var prevIsOpenModalRef = useRef(null);
70
- var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
71
- var _a;
72
- return (__assign(__assign({}, resultConfig), (_a = drawerConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
73
- }, {});
71
+ var appearanceConfig = useAppearanceConfig(appearance, drawerConfig);
74
72
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
75
- var direction = propsGenerator.direction, size = propsGenerator.size, titleTextSize = propsGenerator.titleTextSize, titleTextColor = propsGenerator.titleTextColor, closeIcon = propsGenerator.closeIcon, closeIconSrc = propsGenerator.closeIconSrc, closeIconFill = propsGenerator.closeIconFill, closeIconFillSize = propsGenerator.closeIconFillSize, closeIconFillIcon = propsGenerator.closeIconFillIcon, closeIconSize = propsGenerator.closeIconSize, closeIconShape = propsGenerator.closeIconShape, descTextSize = propsGenerator.descTextSize, descTextColor = propsGenerator.descTextColor;
73
+ var direction = propsGenerator.direction, size = propsGenerator.size, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, closeIcon = propsGenerator.closeIcon, closeIconFill = propsGenerator.closeIconFill, closeIconFillIcon = propsGenerator.closeIconFillIcon, closeIconFillSize = propsGenerator.closeIconFillSize, closeIconShape = propsGenerator.closeIconShape, closeIconSize = propsGenerator.closeIconSize, closeIconSrc = propsGenerator.closeIconSrc;
76
74
  useEffect(function () {
77
75
  if (onClose && prevIsOpenModalRef.current === true && !isOpenModal) {
78
76
  onClose();
@@ -1,4 +1,4 @@
1
- export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem_es_JVT4f6Nb.js';
1
+ export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem_es_BBxfR35q.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
@@ -17,10 +17,11 @@ import '../utils/setViewportProperty.js';
17
17
  import '../hooks/useStyles/useStyles.js';
18
18
  import 'lodash/maxBy';
19
19
  import '../hooks/useStyles/styleAttributes.js';
20
- import '../Tooltip_es_Y2aoFQW7.js';
21
- import '../Text_es_BfLRfj-5.js';
20
+ import '../Icon_es_k9bHSLyL.js';
22
21
  import 'react-inlinesvg';
23
22
  import '../hoc/urlWithAssetPrefix.js';
24
23
  import '../context/UrlAssetPrefix.js';
25
- import '../Link_es_DxtZLeKY.js';
26
- import '../Divider_es_kY-30pft.js';
24
+ import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
25
+ import '../Link_es_BnUIX0QT.js';
26
+ import '../Text_es_Ffjr5J1k.js';
27
+ import '../Divider_es_CiRU0sTz.js';
@@ -1,8 +1,9 @@
1
- export { G as Group, a as groupAppearance, g as groupConfig } from '../Group_es_CYW2Hquh.js';
2
- import '../tslib.es6_es_Bwu1Cn-t.js';
1
+ export { G as Group, a as groupAppearance, g as groupConfig } from '../Group_es_DSZxyI1e.js';
3
2
  import 'react/jsx-runtime';
4
3
  import 'react';
5
4
  import 'clsx';
5
+ import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
6
+ import '../tslib.es6_es_Bwu1Cn-t.js';
6
7
  import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
8
  import 'lodash/camelCase';
8
9
  import 'lodash/castArray';
@@ -1,10 +1,11 @@
1
- import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
2
1
  import { jsxs, jsx } from 'react/jsx-runtime';
3
2
  import { useMemo } from 'react';
4
3
  import clsx from 'clsx';
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 '../Tooltip_es_Y2aoFQW7.js';
7
+ import { I as Icon } from '../Icon_es_k9bHSLyL.js';
8
+ import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
8
9
  import 'lodash/camelCase';
9
10
  import 'lodash/castArray';
10
11
  import 'lodash/upperFirst';
@@ -17,11 +18,11 @@ import 'react-responsive';
17
18
  import '../utils/setViewportProperty.js';
18
19
  import 'lodash/maxBy';
19
20
  import '../hooks/useStyles/styleAttributes.js';
20
- import '../Text_es_BfLRfj-5.js';
21
21
  import 'react-inlinesvg';
22
22
  import '../hoc/urlWithAssetPrefix.js';
23
23
  import '../context/UrlAssetPrefix.js';
24
- import '../Link_es_DxtZLeKY.js';
24
+ import '../Link_es_BnUIX0QT.js';
25
+ import '../Text_es_Ffjr5J1k.js';
25
26
 
26
27
  var heroTitleAppearanceSize = {
27
28
  sizeH1: {
@@ -60,10 +61,7 @@ var heroTitleConfig = {
60
61
  };
61
62
  function HeroTitle(props) {
62
63
  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;
63
- var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
64
- var _a;
65
- return (__assign(__assign({}, resultConfig), (_a = heroTitleConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
66
- }, {});
64
+ var appearanceConfig = useAppearanceConfig(appearance, heroTitleConfig);
67
65
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
68
66
  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;
69
67
  // @ts-expect-error
@@ -1,15 +1,19 @@
1
- export { I as Icon, e as iconAppearance, i as iconConfig } from '../Tooltip_es_Y2aoFQW7.js';
1
+ export { I as Icon, e as iconAppearance, i as iconConfig } from '../Icon_es_k9bHSLyL.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
5
  import 'clsx';
6
+ import 'react-inlinesvg';
7
+ import '../hoc/urlWithAssetPrefix.js';
8
+ import '@itcase/common';
9
+ import '../context/UrlAssetPrefix.js';
10
+ import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
6
11
  import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
12
  import 'lodash/camelCase';
8
13
  import 'lodash/castArray';
9
14
  import 'lodash/upperFirst';
10
15
  import '../context/Notifications.js';
11
16
  import 'uuid';
12
- import '@itcase/common';
13
17
  import '../context/UIContext.js';
14
18
  import '../hooks/useMediaQueries/useMediaQueries.js';
15
19
  import 'react-responsive';
@@ -17,8 +21,5 @@ import '../utils/setViewportProperty.js';
17
21
  import '../hooks/useStyles/useStyles.js';
18
22
  import 'lodash/maxBy';
19
23
  import '../hooks/useStyles/styleAttributes.js';
20
- import '../Text_es_BfLRfj-5.js';
21
- import 'react-inlinesvg';
22
- import '../hoc/urlWithAssetPrefix.js';
23
- import '../context/UrlAssetPrefix.js';
24
- import '../Link_es_DxtZLeKY.js';
24
+ import '../Link_es_BnUIX0QT.js';
25
+ import '../Text_es_Ffjr5J1k.js';
@@ -1,8 +1,9 @@
1
- export { I as Input, a as inputAppearance, i as inputConfig } from '../Input_es_D9Y1Rj5Y.js';
2
- import '../tslib.es6_es_Bwu1Cn-t.js';
1
+ export { I as Input, a as inputAppearance, i as inputConfig } from '../Input_es_D2mNCqiH.js';
3
2
  import 'react/jsx-runtime';
4
3
  import 'react';
5
4
  import 'clsx';
5
+ import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
6
+ import '../tslib.es6_es_Bwu1Cn-t.js';
6
7
  import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
8
  import 'lodash/camelCase';
8
9
  import 'lodash/castArray';
@@ -2,8 +2,9 @@ import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { useState, useMemo, useCallback } from 'react';
4
4
  import clsx from 'clsx';
5
+ import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
5
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
- import { I as Icon } from '../Tooltip_es_Y2aoFQW7.js';
7
+ import { I as Icon } from '../Icon_es_k9bHSLyL.js';
7
8
  import 'lodash/camelCase';
8
9
  import 'lodash/castArray';
9
10
  import 'lodash/upperFirst';
@@ -14,14 +15,14 @@ import '../context/UIContext.js';
14
15
  import '../hooks/useMediaQueries/useMediaQueries.js';
15
16
  import 'react-responsive';
16
17
  import '../utils/setViewportProperty.js';
17
- import '../hooks/useStyles/useStyles.js';
18
- import 'lodash/maxBy';
19
- import '../hooks/useStyles/styleAttributes.js';
20
- import '../Text_es_BfLRfj-5.js';
21
18
  import 'react-inlinesvg';
22
19
  import '../hoc/urlWithAssetPrefix.js';
23
20
  import '../context/UrlAssetPrefix.js';
24
- import '../Link_es_DxtZLeKY.js';
21
+ import '../hooks/useStyles/useStyles.js';
22
+ import 'lodash/maxBy';
23
+ import '../hooks/useStyles/styleAttributes.js';
24
+ import '../Link_es_BnUIX0QT.js';
25
+ import '../Text_es_Ffjr5J1k.js';
25
26
 
26
27
  var inputPasswordAppearanceDefault = {
27
28
  defaultPrimary: {
@@ -226,10 +227,7 @@ function InputPassword(props) {
226
227
  // () => state && inputPasswordConfig.state && inputPasswordConfig.state[state],
227
228
  // [state, inputPasswordConfig],
228
229
  // )
229
- var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
230
- var _a;
231
- return (__assign(__assign({}, resultConfig), (_a = inputPasswordConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
232
- }, {});
230
+ var appearanceConfig = useAppearanceConfig(appearance, inputPasswordConfig);
233
231
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
234
232
  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;
235
233
  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 &&
@@ -1,8 +1,9 @@
1
- export { L as Label, a as labelAppearance, l as labelConfig } from '../Label_es_CIDBUVgO.js';
2
- import '../tslib.es6_es_Bwu1Cn-t.js';
1
+ export { L as Label, a as labelAppearance, l as labelConfig } from '../Label_es_HXrap3A4.js';
3
2
  import 'react/jsx-runtime';
4
3
  import 'react';
5
4
  import 'clsx';
5
+ import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
6
+ import '../tslib.es6_es_Bwu1Cn-t.js';
6
7
  import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
8
  import 'lodash/camelCase';
8
9
  import 'lodash/castArray';
@@ -17,9 +18,9 @@ import '../utils/setViewportProperty.js';
17
18
  import '../hooks/useStyles/useStyles.js';
18
19
  import 'lodash/maxBy';
19
20
  import '../hooks/useStyles/styleAttributes.js';
20
- import '../Tooltip_es_Y2aoFQW7.js';
21
- import '../Text_es_BfLRfj-5.js';
21
+ import '../Icon_es_k9bHSLyL.js';
22
22
  import 'react-inlinesvg';
23
23
  import '../hoc/urlWithAssetPrefix.js';
24
24
  import '../context/UrlAssetPrefix.js';
25
- import '../Link_es_DxtZLeKY.js';
25
+ import '../Link_es_BnUIX0QT.js';
26
+ import '../Text_es_Ffjr5J1k.js';
@@ -1,8 +1,9 @@
1
- export { L as Link, a as LinkWrapper, b as linkAppearance, l as linkConfig } from '../Link_es_DxtZLeKY.js';
1
+ export { L as Link, a as LinkWrapper, b as linkAppearance, l as linkConfig } from '../Link_es_BnUIX0QT.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
5
  import 'clsx';
6
+ import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
6
7
  import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
8
  import 'lodash/camelCase';
8
9
  import 'lodash/castArray';
@@ -1,9 +1,10 @@
1
- import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
2
1
  import { jsx, jsxs } from 'react/jsx-runtime';
3
2
  import clsx from 'clsx';
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 { L as Link } from '../Link_es_DxtZLeKY.js';
6
+ import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
7
+ import { L as Link } from '../Link_es_BnUIX0QT.js';
7
8
  import 'react';
8
9
  import 'lodash/camelCase';
9
10
  import 'lodash/castArray';
@@ -222,10 +223,7 @@ var listConfig = {
222
223
  appearance: listAppearance};
223
224
  function List(props) {
224
225
  var className = props.className, type = props.type, appearance = props.appearance, style = props.style, children = props.children;
225
- var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
226
- var _a;
227
- return (__assign(__assign({}, resultConfig), (_a = listConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
228
- }, {});
226
+ var appearanceConfig = useAppearanceConfig(appearance, listConfig);
229
227
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
230
228
  var directionClass = propsGenerator.directionClass, bulletFillClass = propsGenerator.bulletFillClass, bulletSizeClass = propsGenerator.bulletSizeClass, bulletTextColorClass = propsGenerator.bulletTextColorClass, sizeClass = propsGenerator.sizeClass;
231
229
  // @ts-expect-error
@@ -1,9 +1,10 @@
1
- export { L as Loader, a as loaderAppearance, l as loaderConfig } from '../Loader_es_GYOr0UTX.js';
2
- import '../tslib.es6_es_Bwu1Cn-t.js';
1
+ export { L as Loader, a as loaderAppearance, l as loaderConfig } from '../Loader_es_BDb87cdb.js';
3
2
  import 'react/jsx-runtime';
4
3
  import 'clsx';
5
- import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
4
+ import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
5
+ import '../tslib.es6_es_Bwu1Cn-t.js';
6
6
  import 'react';
7
+ import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
8
  import 'lodash/camelCase';
8
9
  import 'lodash/castArray';
9
10
  import 'lodash/upperFirst';
@@ -17,4 +18,4 @@ import '../utils/setViewportProperty.js';
17
18
  import '../hooks/useStyles/useStyles.js';
18
19
  import 'lodash/maxBy';
19
20
  import '../hooks/useStyles/styleAttributes.js';
20
- import '../Text_es_BfLRfj-5.js';
21
+ import '../Text_es_Ffjr5J1k.js';