@itcase/ui 1.8.122 → 1.8.123

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 (65) hide show
  1. package/dist/{Avatar_cjs_kuE0Rueg.js → Avatar_cjs_CLJnKU39.js} +1 -1
  2. package/dist/{Avatar_es_lx7s4Vla.js → Avatar_es_BgN-fbOj.js} +1 -1
  3. package/dist/{Button_cjs_i0Dn1pkl.js → Button_cjs_Ce97psFT.js} +3 -3
  4. package/dist/{Button_es_CtH5EKJd.js → Button_es_CZss7cXh.js} +3 -3
  5. package/dist/{DatePicker_cjs_DsIAoi01.js → DatePicker_cjs_BzEtDAb8.js} +2 -2
  6. package/dist/{DatePicker_es_BP5BrEr-.js → DatePicker_es_DRyCMO0I.js} +2 -2
  7. package/dist/{Image_cjs_B6YlGx8G.js → Image_cjs_DRhhc66R.js} +2 -1
  8. package/dist/{Image_es_BvYo_cHH.js → Image_es_BpMidmve.js} +2 -1
  9. package/dist/{Input_cjs_Du73R-wm.js → Input_cjs_DRPK_RHK.js} +3 -3
  10. package/dist/{Input_es_CiDHjDqJ.js → Input_es_Cv5nEb_n.js} +3 -3
  11. package/dist/cjs/components/Avatar.js +2 -2
  12. package/dist/cjs/components/AvatarStack.js +2 -2
  13. package/dist/cjs/components/Button.js +1 -1
  14. package/dist/cjs/components/CookiesWarning.js +1 -1
  15. package/dist/cjs/components/Dadata.js +1 -1
  16. package/dist/cjs/components/DatePeriod.js +6 -6
  17. package/dist/cjs/components/DatePicker.js +3 -3
  18. package/dist/cjs/components/Grid.js +3 -3
  19. package/dist/cjs/components/Image.js +1 -1
  20. package/dist/cjs/components/Input.js +1 -1
  21. package/dist/cjs/components/InputPassword.js +88 -66
  22. package/dist/cjs/components/Response.js +58 -51
  23. package/dist/cjs/components/Segmented.js +5 -5
  24. package/dist/cjs/components/Tab.js +29 -45
  25. package/dist/components/Avatar.js +2 -2
  26. package/dist/components/AvatarStack.js +2 -2
  27. package/dist/components/Button.js +1 -1
  28. package/dist/components/CookiesWarning.js +1 -1
  29. package/dist/components/Dadata.js +1 -1
  30. package/dist/components/DatePeriod.js +6 -6
  31. package/dist/components/DatePicker.js +3 -3
  32. package/dist/components/Grid.js +3 -3
  33. package/dist/components/Image.js +1 -1
  34. package/dist/components/Input.js +1 -1
  35. package/dist/components/InputPassword.js +88 -66
  36. package/dist/components/Response.js +58 -51
  37. package/dist/components/Segmented.js +5 -5
  38. package/dist/components/Tab.js +29 -45
  39. package/dist/css/components/Checkmark/Checkmark.css +2 -0
  40. package/dist/css/components/DatePeriod/DatePeriod.css +3 -0
  41. package/dist/css/components/Input/Input.css +0 -8
  42. package/dist/css/components/InputPassword/InputPassword.css +34 -43
  43. package/dist/types/components/InputPassword/InputPassword.appearance.d.ts +179 -2
  44. package/dist/types/components/InputPassword/appearance/inputPasswordDefault.d.ts +7 -4
  45. package/dist/types/components/InputPassword/appearance/inputPasswordDisabled.d.ts +6 -4
  46. package/dist/types/components/InputPassword/appearance/inputPasswordError.d.ts +6 -4
  47. package/dist/types/components/InputPassword/appearance/inputPasswordRequire.d.ts +6 -4
  48. package/dist/types/components/InputPassword/appearance/inputPasswordShape.d.ts +25 -0
  49. package/dist/types/components/InputPassword/appearance/inputPasswordSize.d.ts +14 -28
  50. package/dist/types/components/InputPassword/appearance/inputPasswordStyle.d.ts +5 -5
  51. package/dist/types/components/InputPassword/appearance/inputPasswordSuccess.d.ts +6 -4
  52. package/dist/types/components/Response/Response.constant.d.ts +32 -35
  53. package/dist/types/components/Response/appearance/responseConfirm.d.ts +1 -0
  54. package/dist/types/components/Response/appearance/responseDanger.d.ts +1 -0
  55. package/dist/types/components/Response/appearance/responseEmpty.d.ts +1 -0
  56. package/dist/types/components/Response/appearance/responseError.d.ts +1 -0
  57. package/dist/types/components/Response/appearance/responseFail.d.ts +1 -0
  58. package/dist/types/components/Response/appearance/responseNothingFound.d.ts +1 -0
  59. package/dist/types/components/Response/appearance/responseRefresh.d.ts +1 -0
  60. package/dist/types/components/Response/appearance/responseSuccess.d.ts +1 -0
  61. package/dist/types/components/Response/appearance/responseUnableLoadData.d.ts +1 -0
  62. package/dist/types/components/Response/appearance/responseWarning.d.ts +1 -0
  63. package/dist/types/components/Tab/appearance/tabSize.d.ts +0 -14
  64. package/dist/types/components/Tab/appearance/tabSurface.d.ts +7 -7
  65. package/package.json +13 -13
@@ -47,56 +47,42 @@ var tabAppearanceSize = {
47
47
  sizeXXL: {
48
48
  size: 'xxl',
49
49
  labelTextSize: 's',
50
- badgeAppearanceSize: 'sizeXL',
51
- badgeSize: 'xs',
52
- badgeTextSize: 'xs',
50
+ badgeAppearanceSize: 'sizeXS',
53
51
  dividerSize: 's',
54
52
  },
55
53
  sizeXL: {
56
54
  size: 'xl',
57
55
  labelTextSize: 's',
58
- badgeAppearanceSize: 'sizeXL',
59
- badgeSize: 'xs',
60
- badgeTextSize: 'xs',
56
+ badgeAppearanceSize: 'sizeXS',
61
57
  dividerSize: 's',
62
58
  },
63
59
  sizeL: {
64
60
  size: 'l',
65
61
  labelTextSize: 's',
66
- badgeAppearanceSize: 'sizeXL',
67
- badgeSize: 'xs',
68
- badgeTextSize: 'xs',
62
+ badgeAppearanceSize: 'sizeXS',
69
63
  dividerSize: 's',
70
64
  },
71
65
  sizeM: {
72
66
  size: 'm',
73
67
  labelTextSize: 's',
74
- badgeAppearanceSize: 'sizeXL',
75
- badgeSize: 'xs',
76
- badgeTextSize: 'xs',
68
+ badgeAppearanceSize: 'sizeXS',
77
69
  dividerSize: 's',
78
70
  },
79
71
  sizeS: {
80
72
  size: 's',
81
73
  labelTextSize: 's',
82
- badgeAppearanceSize: 'sizeXL',
83
- badgeSize: 'xs',
84
- badgeTextSize: 'xs',
74
+ badgeAppearanceSize: 'sizeXS',
85
75
  dividerSize: 's',
86
76
  },
87
77
  sizeXS: {
88
78
  size: 'xs',
89
79
  labelTextSize: 'xs',
90
- badgeAppearanceSize: 'sizeXL',
91
- badgeSize: 'xs',
92
- badgeTextSize: 'xs',
80
+ badgeAppearanceSize: 'sizeXS',
93
81
  },
94
82
  sizeXXS: {
95
83
  size: 'xxs',
96
84
  labelTextSize: 'xs',
97
- badgeAppearanceSize: 'sizeXL',
98
- badgeSize: 'xxs',
99
- badgeTextSize: 'xxs',
85
+ badgeAppearanceSize: 'sizeXXS',
100
86
  dividerSize: 's',
101
87
  },
102
88
  };
@@ -140,12 +126,26 @@ var tabAppearanceSurface = {
140
126
  fillHover: 'surfaceSecondary',
141
127
  labelTextColor: 'surfaceTextPrimary',
142
128
  labelTextColorActive: 'surfaceTextAccent',
129
+ borderColor: 'surfaceBorderPrimary',
130
+ borderColorActive: 'surfaceBorderPrimary',
131
+ badgeAppearance: 'accentPrimary solid circular',
132
+ dividerFillActive: 'accentPrimary',
143
133
  dividerFillDisabled: 'accentDisabled',
134
+ iconFillIcon: 'surfaceItemPrimary',
135
+ },
136
+ surfaceQuaternary: {
137
+ fill: 'surfaceQuaternary',
138
+ fillActive: 'accentPrimary',
139
+ fillActiveHover: 'surfaceTertiary',
140
+ fillDisabled: 'surfaceDisabled',
141
+ fillHover: 'surfaceQuaternary',
142
+ labelTextColor: 'surfaceTextInverse',
143
+ labelTextColorActive: 'surfaceTextInverse',
144
144
  borderColor: 'surfaceBorderPrimary',
145
145
  borderColorActive: 'surfaceBorderPrimary',
146
- badgeAppearance: 'accentPrimary',
147
146
  badgeAppearance: 'accentPrimary solid circular',
148
147
  dividerFillActive: 'accentPrimary',
148
+ dividerFillDisabled: 'accentDisabled',
149
149
  iconFillIcon: 'surfaceItemPrimary',
150
150
  },
151
151
  surfaceSecondary: {
@@ -156,12 +156,11 @@ var tabAppearanceSurface = {
156
156
  fillHover: 'surfaceTertiary',
157
157
  labelTextColor: 'surfaceTextPrimary',
158
158
  labelTextColorActive: 'surfaceTextAccent',
159
- dividerFillDisabled: 'accentDisabled',
160
159
  borderColor: 'surfaceBorderPrimary',
161
160
  borderColorActive: 'surfaceBorderPrimary',
162
- badgeAppearance: 'accentPrimary',
163
161
  badgeAppearance: 'accentPrimary solid circular',
164
162
  dividerFillActive: 'accentPrimary',
163
+ dividerFillDisabled: 'accentDisabled',
165
164
  iconFillIcon: 'surfaceItemPrimary',
166
165
  },
167
166
  surfaceTertiary: {
@@ -172,28 +171,11 @@ var tabAppearanceSurface = {
172
171
  fillHover: 'surfaceSecondary',
173
172
  labelTextColor: 'surfaceTextPrimary',
174
173
  labelTextColorActive: 'surfaceTextAccent',
175
- dividerFillDisabled: 'accentDisabled',
176
174
  borderColor: 'surfaceBorderPrimary',
177
175
  borderColorActive: 'surfaceBorderPrimary',
178
- badgeAppearance: 'accentPrimary',
179
176
  badgeAppearance: 'accentPrimary solid circular',
180
177
  dividerFillActive: 'accentPrimary',
181
- iconFillIcon: 'surfaceItemPrimary',
182
- },
183
- surfaceQuaternary: {
184
- fill: 'surfaceQuaternary',
185
- fillActive: 'accentPrimary',
186
- fillActiveHover: 'surfaceTertiary',
187
- fillDisabled: 'surfaceDisabled',
188
- fillHover: 'surfaceQuaternary',
189
- labelTextColor: 'surfaceTextInverse',
190
- labelTextColorActive: 'surfaceTextInverse',
191
178
  dividerFillDisabled: 'accentDisabled',
192
- borderColor: 'surfaceBorderPrimary',
193
- borderColorActive: 'surfaceBorderPrimary',
194
- badgeAppearance: 'accentPrimary',
195
- badgeAppearance: 'accentPrimary solid circular',
196
- dividerFillActive: 'accentPrimary',
197
179
  iconFillIcon: 'surfaceItemPrimary',
198
180
  },
199
181
  };
@@ -220,18 +202,20 @@ var tabConfig = {
220
202
  },
221
203
  };
222
204
  function Tab(props) {
223
- var dataTour = props.dataTour, className = props.className, appearance = props.appearance, label = props.label, _a = props.isDisabled, isDisabled = _a === void 0 ? false : _a, badgeValue = props.badgeValue, href = props.href, link = props.link, rel = props.rel, target = props.target, before = props.before, after = props.after, _b = props.isActive, isActive = _b === void 0 ? false : _b, isSkeleton = props.isSkeleton, onClick = props.onClick, onMouseEnter = props.onMouseEnter, children = props.children;
205
+ var appearance = props.appearance, className = props.className, dataTestId = props.dataTestId, dataTour = props.dataTour, label = props.label, badgeValue = props.badgeValue, href = props.href, link = props.link, rel = props.rel, target = props.target, before = props.before, after = props.after, _a = props.isActive, isActive = _a === void 0 ? false : _a, _b = props.isDisabled, isDisabled = _b === void 0 ? false : _b, isSkeleton = props.isSkeleton, onClick = props.onClick, onMouseEnter = props.onMouseEnter, children = props.children;
224
206
  var appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, tabConfig, isDisabled);
225
207
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
226
208
  var rootClasses = useActiveClasses.useActiveClasses({
227
- isDisabled: isDisabled,
228
209
  propsGenerator: propsGenerator,
229
210
  isActive: isActive,
211
+ isDisabled: isDisabled,
230
212
  }).rootClasses;
231
- var justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, labelTextAlign = propsGenerator.labelTextAlign, labelTextColor = propsGenerator.labelTextColor, labelTextColorActive = propsGenerator.labelTextColorActive, labelTextColorActiveHover = propsGenerator.labelTextColorActiveHover, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextStyle = propsGenerator.labelTextStyle, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, dividerFillDisabled = propsGenerator.dividerFillDisabled, badgeAppearance = propsGenerator.badgeAppearance, badgeAppearanceSize = propsGenerator.badgeAppearanceSize, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, dividerFill = propsGenerator.dividerFill, dividerFillActive = propsGenerator.dividerFillActive, dividerFillActiveHover = propsGenerator.dividerFillActiveHover, dividerFillHover = propsGenerator.dividerFillHover, dividerSize = propsGenerator.dividerSize, icon = propsGenerator.icon, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, linkFill = propsGenerator.linkFill, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
213
+ var justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, labelTextAlign = propsGenerator.labelTextAlign, labelTextColor = propsGenerator.labelTextColor, labelTextColorActive = propsGenerator.labelTextColorActive, labelTextColorActiveHover = propsGenerator.labelTextColorActiveHover, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextStyle = propsGenerator.labelTextStyle, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, badgeAppearance = propsGenerator.badgeAppearance, badgeAppearanceSize = propsGenerator.badgeAppearanceSize, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, dividerFill = propsGenerator.dividerFill, dividerFillActive = propsGenerator.dividerFillActive, dividerFillActiveHover = propsGenerator.dividerFillActiveHover, dividerFillDisabled = propsGenerator.dividerFillDisabled, dividerFillHover = propsGenerator.dividerFillHover, dividerSize = propsGenerator.dividerSize, icon = propsGenerator.icon, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, linkFill = propsGenerator.linkFill, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
232
214
  // @ts-expect-error
233
215
  var tab = useStyles.useStyles(props).styles;
234
- return (jsxRuntime.jsx("div", { dataTour: dataTour, className: clsx('tab', className, rootClasses, isActive && 'tab_state_active', isDisabled && 'tab_state_disabled', sizeClass && "tab_size_".concat(sizeClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), widthClass && "width_".concat(widthClass), justifyContentClass && "tab_justify-content_".concat(justifyContentClass), isSkeleton && "tab_skeleton", onClick && 'cursor_type_pointer'), style: tab, onClick: onClick, onMouseEnter: onMouseEnter, children: jsxRuntime.jsxs(Link.Link, { className: clsx('tab__link', alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), !isDisabled && 'cursor_type_pointer'), fill: linkFill, href: link || href, rel: rel, target: target, children: [before, children || (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsxs("div", { className: "tab__wrapper", children: [label && (jsxRuntime.jsx(Text.Text, { className: "tab__label", size: labelTextSize, isDisabled: isDisabled, textAlign: labelTextAlign, textColor: labelTextColor, textColorActive: labelTextColorActive, textColorHover: labelTextColorHover, textColorHoverActive: labelTextColorActiveHover, textStyle: labelTextStyle, textWeight: labelTextWeight, textWrap: labelTextWrap, isActive: isActive, children: label })), Boolean(badgeValue) && (jsxRuntime.jsx(Icon.Badge, { appearance: "".concat(badgeAppearance, " ").concat(badgeAppearanceSize), size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), (icon || iconSrc) && (jsxRuntime.jsx(Icon.Icon, { className: clsx('tab__icon_after'), fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon }))] }), jsxRuntime.jsx(Divider.Divider, { className: clsx('tab__divider'), width: "fill", direction: "horizontal", size: dividerSize, fill: dividerFill, fillActive: dividerFillActive, fillActiveHover: dividerFillActiveHover, fillDisabled: dividerFillDisabled, fillHover: dividerFillHover, zIndex: "1", isDisabled: isDisabled, isActive: isActive })] })), after] }) }));
216
+ console.log(badgeAppearance);
217
+ console.log(badgeAppearanceSize);
218
+ return (jsxRuntime.jsx("div", { className: clsx('tab', className, rootClasses, isActive && 'tab_state_active', isDisabled && 'tab_state_disabled', sizeClass && "tab_size_".concat(sizeClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), widthClass && "width_".concat(widthClass), justifyContentClass && "tab_justify-content_".concat(justifyContentClass), isSkeleton && "tab_skeleton", onClick && 'cursor_type_pointer'), "data-test-id": dataTestId && "".concat(dataTestId, "Tab"), "data-tour": dataTour, style: tab, onClick: onClick, onMouseEnter: onMouseEnter, children: jsxRuntime.jsxs(Link.Link, { className: clsx('tab__link', alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), !isDisabled && 'cursor_type_pointer'), fill: linkFill, href: link || href, rel: rel, target: target, children: [before, children || (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsxs("div", { className: "tab__wrapper", children: [label && (jsxRuntime.jsx(Text.Text, { className: "tab__label", size: labelTextSize, textAlign: labelTextAlign, textColor: labelTextColor, textColorActive: labelTextColorActive, textColorHover: labelTextColorHover, textColorHoverActive: labelTextColorActiveHover, textStyle: labelTextStyle, textWeight: labelTextWeight, textWrap: labelTextWrap, isActive: isActive, isDisabled: isDisabled, children: label })), Boolean(badgeValue) && (jsxRuntime.jsx(Icon.Badge, { appearance: "".concat(badgeAppearance, " ").concat(badgeAppearanceSize), size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), (icon || iconSrc) && (jsxRuntime.jsx(Icon.Icon, { className: clsx('tab__icon_after'), fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon }))] }), jsxRuntime.jsx(Divider.Divider, { className: clsx('tab__divider'), width: "fill", direction: "horizontal", size: dividerSize, fill: dividerFill, fillActive: dividerFillActive, fillActiveHover: dividerFillActiveHover, fillDisabled: dividerFillDisabled, fillHover: dividerFillHover, zIndex: "1", isActive: isActive, isDisabled: isDisabled })] })), after] }) }));
235
219
  }
236
220
 
237
221
  function TabGroup(props) {
@@ -1,4 +1,4 @@
1
- export { A as Avatar, b as avatarAppearance, a as avatarConfig } from '../Avatar_es_lx7s4Vla.js';
1
+ export { A as Avatar, b as avatarAppearance, a as avatarConfig } from '../Avatar_es_BgN-fbOj.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
@@ -25,4 +25,4 @@ import '../hooks/useStyles/useStyles.js';
25
25
  import 'lodash/maxBy';
26
26
  import '../Link_es_XiqbdwLp.js';
27
27
  import '../Text_es_CwV9rjFD.js';
28
- import '../Image_es_BvYo_cHH.js';
28
+ import '../Image_es_BpMidmve.js';
@@ -3,7 +3,7 @@ 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 { A as Avatar } from '../Avatar_es_lx7s4Vla.js';
6
+ import { A as Avatar } from '../Avatar_es_BgN-fbOj.js';
7
7
  import { G as Group } from '../Group_es_DRqIIM9m.js';
8
8
  import { T as Text } from '../Text_es_CwV9rjFD.js';
9
9
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
@@ -26,7 +26,7 @@ import 'react-inlinesvg';
26
26
  import '../hoc/urlWithAssetPrefix.js';
27
27
  import '../context/UrlAssetPrefix.js';
28
28
  import '../Link_es_XiqbdwLp.js';
29
- import '../Image_es_BvYo_cHH.js';
29
+ import '../Image_es_BpMidmve.js';
30
30
 
31
31
  var avatarStackAppearanceSize = {
32
32
  size16: {
@@ -1,4 +1,4 @@
1
- export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button_es_CtH5EKJd.js';
1
+ export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button_es_CZss7cXh.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
@@ -4,7 +4,7 @@ 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_CtH5EKJd.js';
7
+ import { B as Button } from '../Button_es_CZss7cXh.js';
8
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';
@@ -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_CiDHjDqJ.js';
6
+ import { I as Input } from '../Input_es_Cv5nEb_n.js';
7
7
  import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
8
8
  import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
9
9
  import 'lodash/camelCase';
@@ -2,7 +2,7 @@ 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_BP5BrEr-.js';
5
+ import { D as DatePickerInput } from '../DatePicker_es_DRyCMO0I.js';
6
6
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
8
  import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_ayPPUwQ7.js';
@@ -21,7 +21,7 @@ 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_CtH5EKJd.js';
24
+ import '../Button_es_CZss7cXh.js';
25
25
  import '../Icon_es_BrwLifge.js';
26
26
  import 'react-inlinesvg';
27
27
  import '../hoc/urlWithAssetPrefix.js';
@@ -29,7 +29,7 @@ import '../context/UrlAssetPrefix.js';
29
29
  import '../Link_es_XiqbdwLp.js';
30
30
  import '../Text_es_CwV9rjFD.js';
31
31
  import '../Loader_es_BUSqFrCd.js';
32
- import '../Input_es_CiDHjDqJ.js';
32
+ import '../Input_es_Cv5nEb_n.js';
33
33
  import '../Label_es_SULlg9bL.js';
34
34
  import '@itcase/icons/default';
35
35
  import 'lodash/castArray';
@@ -79,7 +79,7 @@ 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, isDisabled = props.isDisabled, onChangeDatePeriod = props.onChangeDatePeriod, onKeyDown = props.onKeyDown;
82
+ var appearance = props.appearance, className = props.className, _a = props.datePeriodIntervalsList, datePeriodIntervalsList = _a === void 0 ? Object.values(DATE_PERIOD_INTERVALS) : _a, datePeriodValueEnd = props.datePeriodValueEnd, datePeriodValueStart = props.datePeriodValueStart, monthsShown = props.monthsShown, isDisabled = props.isDisabled, isSkeleton = props.isSkeleton, onChangeDatePeriod = props.onChangeDatePeriod, onKeyDown = props.onKeyDown;
83
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;
@@ -108,7 +108,7 @@ function DatePeriod(props) {
108
108
  // },
109
109
  // [onChangeDatePeriod],
110
110
  // )
111
- return (jsx("div", { className: clsx(className, 'date-period', shapeClass && "date-period_shape_".concat(shapeClass), sizeClass && "date-period_size_".concat(sizeClass), isSkeleton && "date-period_skeleton", fillClass && "fill_".concat(fillClass), 'cursor_type_pointer'), children: jsxs(ChipsGroup, { direction: "horizontal", children: [datePeriodIntervalsList.map(function (datePeriodItem) { return (jsx(Chips, { appearance: "".concat(chipsAppearance, " ").concat(chipsAppearanceSize), label: datePeriodItem.label, shape: chipsShape, isActive: checkIsChipsActive(datePeriodItem), onClick: function () { return onClickPeriodChips(datePeriodItem); } }, datePeriodItem.value)); }), jsx(DatePickerInput, { datePickerProps: {
111
+ return (jsx("div", { className: clsx(className, 'date-period', shapeClass && "date-period_shape_".concat(shapeClass), sizeClass && "date-period_size_".concat(sizeClass), isSkeleton && "date-period_skeleton", fillClass && "fill_".concat(fillClass), 'cursor_type_pointer'), children: jsxs(ChipsGroup, { direction: "horizontal", children: [datePeriodIntervalsList.map(function (datePeriodItem) { return (jsx(Chips, { appearance: "".concat(chipsAppearance, " ").concat(chipsAppearanceSize), label: datePeriodItem.label, shape: chipsShape, isActive: checkIsChipsActive(datePeriodItem), onClick: function () { return onClickPeriodChips(datePeriodItem); } }, datePeriodItem.value)); }), jsx(DatePickerInput, { className: "date-period__datepicker", datePickerProps: {
112
112
  appearance: "".concat(datePickerAppearance, " ").concat(datePickerAppearanceSize),
113
113
  dateFormat: 'dd/MM/yyyy',
114
114
  monthsShown: monthsShown,
@@ -118,8 +118,8 @@ function DatePeriod(props) {
118
118
  isStartDefaultNull: true,
119
119
  onKeyDown: onKeyDown,
120
120
  }, endValue: datePeriodValueEnd, inputProps: {
121
- className: "date-period__datepicker-input date-period__datepicker-input_size_".concat(datePickerInputSize),
122
121
  appearance: "".concat(datePickerInputAppearance, " ghost"),
122
+ className: "date-period__datepicker-input date-period__datepicker-input_size_".concat(datePickerInputSize),
123
123
  fillHover: datePickerInputFillHover,
124
124
  textSize: datePickerInputTextSize,
125
125
  placeholder: 'Выбрать период',
@@ -1,4 +1,4 @@
1
- export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_BP5BrEr-.js';
1
+ export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_DRyCMO0I.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -21,7 +21,7 @@ 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_CtH5EKJd.js';
24
+ import '../Button_es_CZss7cXh.js';
25
25
  import '../Icon_es_BrwLifge.js';
26
26
  import 'react-inlinesvg';
27
27
  import '../hoc/urlWithAssetPrefix.js';
@@ -29,6 +29,6 @@ import '../context/UrlAssetPrefix.js';
29
29
  import '../Link_es_XiqbdwLp.js';
30
30
  import '../Text_es_CwV9rjFD.js';
31
31
  import '../Loader_es_BUSqFrCd.js';
32
- import '../Input_es_CiDHjDqJ.js';
32
+ import '../Input_es_Cv5nEb_n.js';
33
33
  import '../Label_es_SULlg9bL.js';
34
34
  import '@itcase/icons/default';
@@ -19,12 +19,12 @@ import '../hooks/useStyles/styleAttributes.js';
19
19
  import 'lodash/maxBy';
20
20
 
21
21
  function Grid(props) {
22
- var id = props.id, className = props.className, type = props.type, dataTour = props.dataTour, horizontalResizing = props.horizontalResizing, horizontalScroll = props.horizontalScroll, _a = props.tag, Tag = _a === void 0 ? 'div' : _a, useGridSystem = props.useGridSystem, verticalResizing = props.verticalResizing, before = props.before, after = props.after, onClick = props.onClick, onDoubleClick = props.onDoubleClick, children = props.children;
22
+ var id = props.id, className = props.className, dataTour = props.dataTour, type = props.type, horizontalResizing = props.horizontalResizing, horizontalScroll = props.horizontalScroll, _a = props.tag, Tag = _a === void 0 ? 'div' : _a, useGridSystem = props.useGridSystem, verticalResizing = props.verticalResizing, before = props.before, after = props.after, onClick = props.onClick, onDoubleClick = props.onDoubleClick, children = props.children;
23
23
  var propsGenerator = useDevicePropsGenerator(props);
24
- var justifyContentClass = propsGenerator.justifyContentClass, justifyItemsClass = propsGenerator.justifyItemsClass, alignContentClass = propsGenerator.alignContentClass, alignItemsClass = propsGenerator.alignItemsClass, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, columnGapClass = propsGenerator.columnGapClass, columnsClass = propsGenerator.columnsClass, heightClass = propsGenerator.heightClass, rowGapClass = propsGenerator.rowGapClass, rowsClass = propsGenerator.rowsClass, widthClass = propsGenerator.widthClass;
24
+ var justifyContentClass = propsGenerator.justifyContentClass, justifyItemsClass = propsGenerator.justifyItemsClass, alignContentClass = propsGenerator.alignContentClass, alignItemsClass = propsGenerator.alignItemsClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, columnGapClass = propsGenerator.columnGapClass, columnsClass = propsGenerator.columnsClass, heightClass = propsGenerator.heightClass, rowGapClass = propsGenerator.rowGapClass, rowsClass = propsGenerator.rowsClass, widthClass = propsGenerator.widthClass;
25
25
  // @ts-expect-error
26
26
  var gridStyles = useStyles(props).styles;
27
- return (jsxs(Tag, { id: id, className: clsx(className, 'grid', widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), useGridSystem && "grid_state_system", horizontalScroll && "grid_scroll_horizontal", type && "grid_type_".concat(type), columnsClass && "grid_columns_".concat(columnsClass), rowsClass && "grid_rows_".concat(rowsClass), rowGapClass && "grid_row-gap_".concat(rowGapClass), columnGapClass && "grid_column-gap_".concat(columnGapClass), alignContentClass && "grid_align-content_".concat(alignContentClass), alignItemsClass && "grid_align-items_".concat(alignItemsClass), borderColorClass && "border-color_".concat(borderColorClass), justifyContentClass && "grid_justify-content_".concat(justifyContentClass), justifyItemsClass && "grid_justify-items_".concat(justifyItemsClass), fillClass && "fill_".concat(fillClass), horizontalResizing && "grid_horizontal-resizing_".concat(horizontalResizing), verticalResizing && "grid_vertical-resizing_".concat(verticalResizing)), dataTour: dataTour, style: gridStyles, onClick: onClick, onDoubleClick: onDoubleClick, children: [before && jsx("div", { className: "grid__before", children: before }), children, after && jsx("div", { className: "grid__after", children: after })] }));
27
+ return (jsxs(Tag, { id: id, className: clsx(className, 'grid', widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), useGridSystem && "grid_state_system", horizontalScroll && "grid_scroll_horizontal", type && "grid_type_".concat(type), columnsClass && "grid_columns_".concat(columnsClass), rowsClass && "grid_rows_".concat(rowsClass), rowGapClass && "grid_row-gap_".concat(rowGapClass), columnGapClass && "grid_column-gap_".concat(columnGapClass), alignContentClass && "grid_align-content_".concat(alignContentClass), alignItemsClass && "grid_align-items_".concat(alignItemsClass), borderColorClass && "border-color_".concat(borderColorClass), justifyContentClass && "grid_justify-content_".concat(justifyContentClass), justifyItemsClass && "grid_justify-items_".concat(justifyItemsClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), horizontalResizing && "grid_horizontal-resizing_".concat(horizontalResizing), verticalResizing && "grid_vertical-resizing_".concat(verticalResizing)), dataTour: dataTour, style: gridStyles, onClick: onClick, onDoubleClick: onDoubleClick, children: [before && jsx("div", { className: "grid__before", children: before }), children, after && jsx("div", { className: "grid__after", children: after })] }));
28
28
  }
29
29
 
30
30
  function GridItem(props) {
@@ -1,4 +1,4 @@
1
- export { I as Image } from '../Image_es_BvYo_cHH.js';
1
+ export { I as Image } from '../Image_es_BpMidmve.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
@@ -1,4 +1,4 @@
1
- export { I as Input, a as inputAppearance, i as inputConfig } from '../Input_es_CiDHjDqJ.js';
1
+ export { I as Input, a as inputAppearance, i as inputConfig } from '../Input_es_Cv5nEb_n.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';