@itcase/ui 1.8.45 → 1.8.51

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 (101) hide show
  1. package/README.md +1 -0
  2. package/dist/{Avatar_cjs_Bp8wjwGw.js → Avatar_cjs_BQNgRkQo.js} +2 -2
  3. package/dist/{Avatar_es_BIKf0hNV.js → Avatar_es_DzMM4D-9.js} +2 -2
  4. package/dist/{Button_cjs_Chn18eOU.js → Button_cjs_C8P5a38-.js} +28 -12
  5. package/dist/{Button_es_XnWb2XF3.js → Button_es_CwtOu3lT.js} +28 -12
  6. package/dist/{ChipsGroup_cjs_Deoz_rju.js → ChipsGroup_cjs_CVCYLe2C.js} +2 -2
  7. package/dist/{ChipsGroup_es_C1Qi_5A1.js → ChipsGroup_es_BrX6_qHH.js} +2 -2
  8. package/dist/{DatePicker_cjs_B24qHiks.js → DatePicker_cjs_CKmX_JOf.js} +4 -4
  9. package/dist/{DatePicker_es_BuC8mEcK.js → DatePicker_es_BRH4AHbV.js} +4 -4
  10. package/dist/{DropdownItem_cjs_DuqySfbd.js → DropdownItem_cjs_DFScS1ls.js} +2 -2
  11. package/dist/{DropdownItem_es_BBxfR35q.js → DropdownItem_es_BnKPMQwa.js} +2 -2
  12. package/dist/{Icon_cjs_DRZih-pc.js → Icon_cjs_CKWWo53f.js} +1 -1
  13. package/dist/{Icon_es_k9bHSLyL.js → Icon_es_B7IMj2rG.js} +1 -1
  14. package/dist/{Label_cjs_D70CHJDE.js → Label_cjs_DNAubjXm.js} +2 -2
  15. package/dist/{Label_es_HXrap3A4.js → Label_es_DnV8akSC.js} +2 -2
  16. package/dist/{Loader_cjs_BShrE-Nb.js → Loader_cjs_D_n5PrK5.js} +1 -1
  17. package/dist/{Loader_es_BDb87cdb.js → Loader_es_DXVVV9LE.js} +1 -1
  18. package/dist/{Text_cjs_BlNeIm_v.js → Text_cjs_C-Ux7Tz5.js} +6 -4
  19. package/dist/{Text_es_Ffjr5J1k.js → Text_es_BdFAdf7M.js} +6 -4
  20. package/dist/cjs/components/Accordion.js +2 -2
  21. package/dist/cjs/components/Avatar.js +3 -3
  22. package/dist/cjs/components/AvatarStack.js +3 -3
  23. package/dist/cjs/components/Badge.js +2 -2
  24. package/dist/cjs/components/Breadcrumbs.js +2 -2
  25. package/dist/cjs/components/Button.js +4 -4
  26. package/dist/cjs/components/Cell.js +22 -20
  27. package/dist/cjs/components/Checkbox.js +1 -1
  28. package/dist/cjs/components/Chips.js +3 -3
  29. package/dist/cjs/components/Choice.js +3 -3
  30. package/dist/cjs/components/CookiesWarning.js +4 -4
  31. package/dist/cjs/components/DatePeriod.js +7 -7
  32. package/dist/cjs/components/DatePicker.js +6 -6
  33. package/dist/cjs/components/Drawer.js +2 -2
  34. package/dist/cjs/components/Dropdown.js +3 -3
  35. package/dist/cjs/components/HeroTitle.js +2 -2
  36. package/dist/cjs/components/Icon.js +2 -2
  37. package/dist/cjs/components/InputPassword.js +2 -2
  38. package/dist/cjs/components/Label.js +3 -3
  39. package/dist/cjs/components/Loader.js +2 -2
  40. package/dist/cjs/components/Logo.js +2 -3
  41. package/dist/cjs/components/MenuItem.js +4 -16
  42. package/dist/cjs/components/Modal.js +3 -3
  43. package/dist/cjs/components/Notification.js +2 -2
  44. package/dist/cjs/components/Pagination.js +3 -3
  45. package/dist/cjs/components/Radio.js +1 -1
  46. package/dist/cjs/components/Response.js +4 -4
  47. package/dist/cjs/components/Search.js +2 -2
  48. package/dist/cjs/components/Segmented.js +2 -2
  49. package/dist/cjs/components/Select.js +2 -2
  50. package/dist/cjs/components/Swiper.js +2 -2
  51. package/dist/cjs/components/Switch.js +1 -1
  52. package/dist/cjs/components/Tab.js +2 -2
  53. package/dist/cjs/components/Text.js +1 -1
  54. package/dist/cjs/components/Tile.js +2 -2
  55. package/dist/cjs/components/Title.js +2 -2
  56. package/dist/cjs/components/Tooltip.js +2 -2
  57. package/dist/cjs/components/Warning.js +2 -2
  58. package/dist/components/Accordion.js +2 -2
  59. package/dist/components/Avatar.js +3 -3
  60. package/dist/components/AvatarStack.js +3 -3
  61. package/dist/components/Badge.js +2 -2
  62. package/dist/components/Breadcrumbs.js +2 -2
  63. package/dist/components/Button.js +4 -4
  64. package/dist/components/Cell.js +22 -20
  65. package/dist/components/Checkbox.js +1 -1
  66. package/dist/components/Chips.js +3 -3
  67. package/dist/components/Choice.js +3 -3
  68. package/dist/components/CookiesWarning.js +4 -4
  69. package/dist/components/DatePeriod.js +7 -7
  70. package/dist/components/DatePicker.js +6 -6
  71. package/dist/components/Drawer.js +2 -2
  72. package/dist/components/Dropdown.js +3 -3
  73. package/dist/components/HeroTitle.js +2 -2
  74. package/dist/components/Icon.js +2 -2
  75. package/dist/components/InputPassword.js +2 -2
  76. package/dist/components/Label.js +3 -3
  77. package/dist/components/Loader.js +2 -2
  78. package/dist/components/Logo.js +2 -3
  79. package/dist/components/MenuItem.js +4 -16
  80. package/dist/components/Modal.js +3 -3
  81. package/dist/components/Notification.js +2 -2
  82. package/dist/components/Pagination.js +3 -3
  83. package/dist/components/Radio.js +1 -1
  84. package/dist/components/Response.js +4 -4
  85. package/dist/components/Search.js +2 -2
  86. package/dist/components/Segmented.js +2 -2
  87. package/dist/components/Select.js +2 -2
  88. package/dist/components/Swiper.js +2 -2
  89. package/dist/components/Switch.js +1 -1
  90. package/dist/components/Tab.js +2 -2
  91. package/dist/components/Text.js +1 -1
  92. package/dist/components/Tile.js +2 -2
  93. package/dist/components/Title.js +2 -2
  94. package/dist/components/Tooltip.js +2 -2
  95. package/dist/components/Warning.js +2 -2
  96. package/dist/css/components/Cell/Cell.css +10 -0
  97. package/dist/css/styles/fill-gradient/fill-gradient.css +8 -3
  98. package/dist/css/styles/shape-strength/shape-strength.css +3 -11
  99. package/dist/types/components/Button/appearance/buttonShape.d.ts +22 -0
  100. package/dist/types/components/Cell/appearance/cellSurface.d.ts +4 -0
  101. package/package.json +11 -12
package/README.md CHANGED
@@ -1,2 +1,3 @@
1
1
  # UI components
2
2
 
3
+
@@ -5,9 +5,9 @@ var React = require('react');
5
5
  var clsx = require('clsx');
6
6
  var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
7
7
  var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
8
- var Icon = require('./Icon_cjs_DRZih-pc.js');
8
+ var Icon = require('./Icon_cjs_CKWWo53f.js');
9
9
  var Image = require('./Image_cjs_2zEjohYE.js');
10
- var Text = require('./Text_cjs_BlNeIm_v.js');
10
+ var Text = require('./Text_cjs_C-Ux7Tz5.js');
11
11
  var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
12
12
 
13
13
  var avatarAppearanceDefault = {
@@ -3,9 +3,9 @@ import { useMemo } from 'react';
3
3
  import clsx from 'clsx';
4
4
  import { useAppearanceConfig } from './hooks/useAppearanceConfig/useAppearanceConfig.js';
5
5
  import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
- import { I as Icon, B as Badge } from './Icon_es_k9bHSLyL.js';
6
+ import { I as Icon, B as Badge } from './Icon_es_B7IMj2rG.js';
7
7
  import { I as Image } from './Image_es_ChF-63wh.js';
8
- import { T as Text } from './Text_es_Ffjr5J1k.js';
8
+ import { T as Text } from './Text_es_BdFAdf7M.js';
9
9
  import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
10
10
 
11
11
  var avatarAppearanceDefault = {
@@ -3,10 +3,10 @@
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var React = require('react');
5
5
  var clsx = require('clsx');
6
- var Icon = require('./Icon_cjs_DRZih-pc.js');
6
+ var Icon = require('./Icon_cjs_CKWWo53f.js');
7
7
  var Link = require('./Link_cjs_BqT6eVl6.js');
8
- var Loader = require('./Loader_cjs_BShrE-Nb.js');
9
- var Text = require('./Text_cjs_BlNeIm_v.js');
8
+ var Loader = require('./Loader_cjs_D_n5PrK5.js');
9
+ var Text = require('./Text_cjs_C-Ux7Tz5.js');
10
10
  var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
11
11
  var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
12
12
  var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
@@ -215,6 +215,28 @@ var buttonAppearanceSecondary = {
215
215
  },
216
216
  };
217
217
 
218
+ var buttonAppearanceShape = {
219
+ rounded: {
220
+ shape: 'rounded',
221
+ },
222
+ roundedS: {
223
+ shape: 'rounded',
224
+ shapeStrength: '0_5m',
225
+ },
226
+ roundedM: {
227
+ shape: 'rounded',
228
+ shapeStrength: '1m',
229
+ },
230
+ roundedL: {
231
+ shape: 'rounded',
232
+ shapeStrength: '1_5m',
233
+ },
234
+ roundedXL: {
235
+ shape: 'rounded',
236
+ shapeStrength: '2m',
237
+ },
238
+ };
239
+
218
240
  var buttonAppearanceSize = {
219
241
  sizeXXL: {
220
242
  size: 'xxl',
@@ -412,7 +434,7 @@ var buttonAppearanceWarning = {
412
434
  },
413
435
  };
414
436
 
415
- var buttonAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, buttonAppearanceSize), buttonAppearanceStyle), buttonAppearanceAccent), buttonAppearanceDanger), buttonAppearanceError), buttonAppearanceInfo), buttonAppearancePrimary), buttonAppearanceSecondary), buttonAppearanceSuccess), buttonAppearanceSurface), buttonAppearanceWarning);
437
+ var buttonAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, buttonAppearanceSize), buttonAppearanceShape), buttonAppearanceStyle), buttonAppearanceAccent), buttonAppearanceDanger), buttonAppearanceError), buttonAppearanceInfo), buttonAppearancePrimary), buttonAppearanceSecondary), buttonAppearanceSuccess), buttonAppearanceSurface), buttonAppearanceWarning);
416
438
 
417
439
  var buttonConfig = {
418
440
  appearance: buttonAppearance,
@@ -424,11 +446,7 @@ var Button = React.forwardRef(function Button(props, ref) {
424
446
  var className = props.className, appearance = props.appearance, label = props.label, isDisabled = props.isDisabled, Badge = props.Badge, dataTestId = props.dataTestId, dataTour = props.dataTour, href = props.href, _a = props.htmlType, htmlType = _a === void 0 ? 'button' : _a, link = props.link, rel = props.rel, target = props.target, before = props.before, after = props.after, _b = props.isLoading, isLoading = _b === void 0 ? false : _b, onClick = props.onClick, onMouseDown = props.onMouseDown, children = props.children;
425
447
  var appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, buttonConfig);
426
448
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
427
- var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextTruncate = propsGenerator.labelTextTruncate, labelTextWeight = propsGenerator.labelTextWeight, labelTextWidth = propsGenerator.labelTextWidth, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, elevationClass = propsGenerator.elevationClass, icon = propsGenerator.icon, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, loaderAppearance = propsGenerator.loaderAppearance, loaderFill = propsGenerator.loaderFill, loaderItemFill = propsGenerator.loaderItemFill, loaderShapeClass = propsGenerator.loaderShapeClass, loaderSize = propsGenerator.loaderSize, _c = propsGenerator.loaderType, loaderType = _c === void 0 ? 'simple' : _c, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, isSkeleton = propsGenerator.isSkeleton;
428
- var shapeStrengthClass = propsGenerator.getClassName('shapeStrength', {
429
- replace: [/\./, '-'],
430
- });
431
- // const a = propsGenerator.
449
+ var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextTruncate = propsGenerator.labelTextTruncate, labelTextWeight = propsGenerator.labelTextWeight, labelTextWidth = propsGenerator.labelTextWidth, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, elevationClass = propsGenerator.elevationClass, icon = propsGenerator.icon, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, loaderAppearance = propsGenerator.loaderAppearance, loaderFill = propsGenerator.loaderFill, loaderItemFill = propsGenerator.loaderItemFill, loaderShapeClass = propsGenerator.loaderShapeClass, loaderSize = propsGenerator.loaderSize, _c = propsGenerator.loaderType, loaderType = _c === void 0 ? 'simple' : _c, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, isSkeleton = propsGenerator.isSkeleton;
432
450
  var _d = useStyles.useStyles(props), labelStyles = _d.label, buttonStyles = _d.styles;
433
451
  var buttonTypeClass = after ||
434
452
  before ||
@@ -444,9 +462,7 @@ var Button = React.forwardRef(function Button(props, ref) {
444
462
  ? 'buttom_type_label'
445
463
  : buttonTypeClass
446
464
  ? 'button_type_icon'
447
- : '', borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass
448
- ? "shape-strength_".concat(shapeStrengthClass)
449
- : shapeClass === 'rounded' && 'shape-strength_default', sizeClass && "button_size_".concat(sizeClass), widthClass && "button_width_".concat(widthClass), elevationClass && "elevation_".concat(elevationClass), onClick && 'cursor_type_pointer', isDisabled && 'cursor_type_default', Badge && 'button_type_badge', isLoading && 'button_state_loading', isSkeleton && "button_skeleton"), type: htmlType, disabled: isDisabled, "data-testid": dataTestId && "".concat(dataTestId, "Button"), "data-tour": dataTour, href: link || href, LinkComponent: "button", rel: rel, style: buttonStyles, target: target, onClick: onClick, onMouseDown: onMouseDown, children: jsxRuntime.jsxs("div", { className: "button__wrapper", ref: ref, children: [isLoading && (jsxRuntime.jsx(Loader.Loader, { className: clsx(className, 'button__loader', loaderShapeClass), type: loaderType, appearance: loaderAppearance, size: loaderSize, fill: loaderFill, itemFill: loaderItemFill })), before, (iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), (icon || iconSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon", size: iconSize, fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), (children || label) && (jsxRuntime.jsx(Text.Text, { className: "button__label", width: labelTextWidth, size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textTruncate: labelTextTruncate, textWeight: labelTextWeight, textWrap: labelTextWrap, style: labelStyles, children: children || label })), (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), Badge, after] }) }));
465
+ : '', borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), sizeClass && "button_size_".concat(sizeClass), widthClass && "button_width_".concat(widthClass), elevationClass && "elevation_".concat(elevationClass), onClick && 'cursor_type_pointer', isDisabled && 'cursor_type_default', Badge && 'button_type_badge', isLoading && 'button_state_loading', isSkeleton && "button_skeleton"), type: htmlType, disabled: isDisabled, "data-testid": dataTestId && "".concat(dataTestId, "Button"), "data-tour": dataTour, href: link || href, LinkComponent: "button", rel: rel, style: buttonStyles, target: target, onClick: onClick, onMouseDown: onMouseDown, children: jsxRuntime.jsxs("div", { className: "button__wrapper", ref: ref, children: [isLoading && (jsxRuntime.jsx(Loader.Loader, { className: clsx(className, 'button__loader', loaderShapeClass), type: loaderType, appearance: loaderAppearance, size: loaderSize, fill: loaderFill, itemFill: loaderItemFill })), before, (iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), (icon || iconSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon", size: iconSize, fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), (children || label) && (jsxRuntime.jsx(Text.Text, { className: "button__label", width: labelTextWidth, size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textTruncate: labelTextTruncate, textWeight: labelTextWeight, textWrap: labelTextWrap, style: labelStyles, children: children || label })), (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), Badge, after] }) }));
450
466
  });
451
467
 
452
468
  exports.Button = Button;
@@ -1,10 +1,10 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import React from 'react';
3
3
  import clsx from 'clsx';
4
- import { I as Icon } from './Icon_es_k9bHSLyL.js';
4
+ import { I as Icon } from './Icon_es_B7IMj2rG.js';
5
5
  import { a as LinkWrapper } from './Link_es_BnUIX0QT.js';
6
- import { L as Loader } from './Loader_es_BDb87cdb.js';
7
- import { T as Text } from './Text_es_Ffjr5J1k.js';
6
+ import { L as Loader } from './Loader_es_DXVVV9LE.js';
7
+ import { T as Text } from './Text_es_BdFAdf7M.js';
8
8
  import { useAppearanceConfig } from './hooks/useAppearanceConfig/useAppearanceConfig.js';
9
9
  import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
10
10
  import { useStyles } from './hooks/useStyles/useStyles.js';
@@ -213,6 +213,28 @@ var buttonAppearanceSecondary = {
213
213
  },
214
214
  };
215
215
 
216
+ var buttonAppearanceShape = {
217
+ rounded: {
218
+ shape: 'rounded',
219
+ },
220
+ roundedS: {
221
+ shape: 'rounded',
222
+ shapeStrength: '0_5m',
223
+ },
224
+ roundedM: {
225
+ shape: 'rounded',
226
+ shapeStrength: '1m',
227
+ },
228
+ roundedL: {
229
+ shape: 'rounded',
230
+ shapeStrength: '1_5m',
231
+ },
232
+ roundedXL: {
233
+ shape: 'rounded',
234
+ shapeStrength: '2m',
235
+ },
236
+ };
237
+
216
238
  var buttonAppearanceSize = {
217
239
  sizeXXL: {
218
240
  size: 'xxl',
@@ -410,7 +432,7 @@ var buttonAppearanceWarning = {
410
432
  },
411
433
  };
412
434
 
413
- var buttonAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, buttonAppearanceSize), buttonAppearanceStyle), buttonAppearanceAccent), buttonAppearanceDanger), buttonAppearanceError), buttonAppearanceInfo), buttonAppearancePrimary), buttonAppearanceSecondary), buttonAppearanceSuccess), buttonAppearanceSurface), buttonAppearanceWarning);
435
+ var buttonAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, buttonAppearanceSize), buttonAppearanceShape), buttonAppearanceStyle), buttonAppearanceAccent), buttonAppearanceDanger), buttonAppearanceError), buttonAppearanceInfo), buttonAppearancePrimary), buttonAppearanceSecondary), buttonAppearanceSuccess), buttonAppearanceSurface), buttonAppearanceWarning);
414
436
 
415
437
  var buttonConfig = {
416
438
  appearance: buttonAppearance,
@@ -422,11 +444,7 @@ var Button = React.forwardRef(function Button(props, ref) {
422
444
  var className = props.className, appearance = props.appearance, label = props.label, isDisabled = props.isDisabled, Badge = props.Badge, dataTestId = props.dataTestId, dataTour = props.dataTour, href = props.href, _a = props.htmlType, htmlType = _a === void 0 ? 'button' : _a, link = props.link, rel = props.rel, target = props.target, before = props.before, after = props.after, _b = props.isLoading, isLoading = _b === void 0 ? false : _b, onClick = props.onClick, onMouseDown = props.onMouseDown, children = props.children;
423
445
  var appearanceConfig = useAppearanceConfig(appearance, buttonConfig);
424
446
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
425
- var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextTruncate = propsGenerator.labelTextTruncate, labelTextWeight = propsGenerator.labelTextWeight, labelTextWidth = propsGenerator.labelTextWidth, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, elevationClass = propsGenerator.elevationClass, icon = propsGenerator.icon, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, loaderAppearance = propsGenerator.loaderAppearance, loaderFill = propsGenerator.loaderFill, loaderItemFill = propsGenerator.loaderItemFill, loaderShapeClass = propsGenerator.loaderShapeClass, loaderSize = propsGenerator.loaderSize, _c = propsGenerator.loaderType, loaderType = _c === void 0 ? 'simple' : _c, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, isSkeleton = propsGenerator.isSkeleton;
426
- var shapeStrengthClass = propsGenerator.getClassName('shapeStrength', {
427
- replace: [/\./, '-'],
428
- });
429
- // const a = propsGenerator.
447
+ var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextTruncate = propsGenerator.labelTextTruncate, labelTextWeight = propsGenerator.labelTextWeight, labelTextWidth = propsGenerator.labelTextWidth, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, elevationClass = propsGenerator.elevationClass, icon = propsGenerator.icon, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, loaderAppearance = propsGenerator.loaderAppearance, loaderFill = propsGenerator.loaderFill, loaderItemFill = propsGenerator.loaderItemFill, loaderShapeClass = propsGenerator.loaderShapeClass, loaderSize = propsGenerator.loaderSize, _c = propsGenerator.loaderType, loaderType = _c === void 0 ? 'simple' : _c, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, isSkeleton = propsGenerator.isSkeleton;
430
448
  var _d = useStyles(props), labelStyles = _d.label, buttonStyles = _d.styles;
431
449
  var buttonTypeClass = after ||
432
450
  before ||
@@ -442,9 +460,7 @@ var Button = React.forwardRef(function Button(props, ref) {
442
460
  ? 'buttom_type_label'
443
461
  : buttonTypeClass
444
462
  ? 'button_type_icon'
445
- : '', borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass
446
- ? "shape-strength_".concat(shapeStrengthClass)
447
- : shapeClass === 'rounded' && 'shape-strength_default', sizeClass && "button_size_".concat(sizeClass), widthClass && "button_width_".concat(widthClass), elevationClass && "elevation_".concat(elevationClass), onClick && 'cursor_type_pointer', isDisabled && 'cursor_type_default', Badge && 'button_type_badge', isLoading && 'button_state_loading', isSkeleton && "button_skeleton"), type: htmlType, disabled: isDisabled, "data-testid": dataTestId && "".concat(dataTestId, "Button"), "data-tour": dataTour, href: link || href, LinkComponent: "button", rel: rel, style: buttonStyles, target: target, onClick: onClick, onMouseDown: onMouseDown, children: jsxs("div", { className: "button__wrapper", ref: ref, children: [isLoading && (jsx(Loader, { className: clsx(className, 'button__loader', loaderShapeClass), type: loaderType, appearance: loaderAppearance, size: loaderSize, fill: loaderFill, itemFill: loaderItemFill })), before, (iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "button__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), (icon || iconSrc) && (jsx(Icon, { className: "button__icon", size: iconSize, fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), (children || label) && (jsx(Text, { className: "button__label", width: labelTextWidth, size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textTruncate: labelTextTruncate, textWeight: labelTextWeight, textWrap: labelTextWrap, style: labelStyles, children: children || label })), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: "button__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), Badge, after] }) }));
463
+ : '', borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), sizeClass && "button_size_".concat(sizeClass), widthClass && "button_width_".concat(widthClass), elevationClass && "elevation_".concat(elevationClass), onClick && 'cursor_type_pointer', isDisabled && 'cursor_type_default', Badge && 'button_type_badge', isLoading && 'button_state_loading', isSkeleton && "button_skeleton"), type: htmlType, disabled: isDisabled, "data-testid": dataTestId && "".concat(dataTestId, "Button"), "data-tour": dataTour, href: link || href, LinkComponent: "button", rel: rel, style: buttonStyles, target: target, onClick: onClick, onMouseDown: onMouseDown, children: jsxs("div", { className: "button__wrapper", ref: ref, children: [isLoading && (jsx(Loader, { className: clsx(className, 'button__loader', loaderShapeClass), type: loaderType, appearance: loaderAppearance, size: loaderSize, fill: loaderFill, itemFill: loaderItemFill })), before, (iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "button__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), (icon || iconSrc) && (jsx(Icon, { className: "button__icon", size: iconSize, fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), (children || label) && (jsx(Text, { className: "button__label", width: labelTextWidth, size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textTruncate: labelTextTruncate, textWeight: labelTextWeight, textWrap: labelTextWrap, style: labelStyles, children: children || label })), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: "button__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), Badge, after] }) }));
448
464
  });
449
465
 
450
466
  export { Button as B, buttonAppearance as a, buttonConfig as b };
@@ -5,8 +5,8 @@ var clsx = require('clsx');
5
5
  var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
6
6
  var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
7
7
  var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
8
- var Icon = require('./Icon_cjs_DRZih-pc.js');
9
- var Text = require('./Text_cjs_BlNeIm_v.js');
8
+ var Icon = require('./Icon_cjs_CKWWo53f.js');
9
+ var Text = require('./Text_cjs_C-Ux7Tz5.js');
10
10
  var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
11
11
 
12
12
  var chipsAppearanceAccent = {
@@ -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, B as Badge } from './Icon_es_k9bHSLyL.js';
7
- import { T as Text } from './Text_es_Ffjr5J1k.js';
6
+ import { I as Icon, B as Badge } from './Icon_es_B7IMj2rG.js';
7
+ import { T as Text } from './Text_es_BdFAdf7M.js';
8
8
  import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
9
9
 
10
10
  var chipsAppearanceAccent = {
@@ -9,11 +9,11 @@ var DatePicker = require('react-datepicker');
9
9
  var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
10
10
  var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
11
11
  var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
12
- var Button = require('./Button_cjs_Chn18eOU.js');
13
- var Icon = require('./Icon_cjs_DRZih-pc.js');
12
+ var Button = require('./Button_cjs_C8P5a38-.js');
13
+ var Icon = require('./Icon_cjs_CKWWo53f.js');
14
14
  var Input = require('./Input_cjs_BGLd0EQu.js');
15
- var Label = require('./Label_cjs_D70CHJDE.js');
16
- var Text = require('./Text_cjs_BlNeIm_v.js');
15
+ var Label = require('./Label_cjs_DNAubjXm.js');
16
+ var Text = require('./Text_cjs_C-Ux7Tz5.js');
17
17
  var _default = require('@itcase/icons/default');
18
18
 
19
19
  var datePickerSize = {
@@ -7,11 +7,11 @@ import DatePicker from 'react-datepicker';
7
7
  import { useAppearanceConfig } from './hooks/useAppearanceConfig/useAppearanceConfig.js';
8
8
  import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
9
9
  import { useStyles } from './hooks/useStyles/useStyles.js';
10
- import { B as Button } from './Button_es_XnWb2XF3.js';
11
- import { I as Icon } from './Icon_es_k9bHSLyL.js';
10
+ import { B as Button } from './Button_es_CwtOu3lT.js';
11
+ import { I as Icon } from './Icon_es_B7IMj2rG.js';
12
12
  import { I as Input } from './Input_es_D2mNCqiH.js';
13
- import { L as Label } from './Label_es_HXrap3A4.js';
14
- import { T as Text } from './Text_es_Ffjr5J1k.js';
13
+ import { L as Label } from './Label_es_DnV8akSC.js';
14
+ import { T as Text } from './Text_es_BdFAdf7M.js';
15
15
  import { icons14 } from '@itcase/icons/default';
16
16
 
17
17
  var datePickerSize = {
@@ -5,10 +5,10 @@ var React = require('react');
5
5
  var clsx = require('clsx');
6
6
  var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
7
7
  var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
8
- var Icon = require('./Icon_cjs_DRZih-pc.js');
8
+ var Icon = require('./Icon_cjs_CKWWo53f.js');
9
9
  var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
10
10
  var Divider = require('./Divider_cjs_rxMMBfLC.js');
11
- var Text = require('./Text_cjs_BlNeIm_v.js');
11
+ var Text = require('./Text_cjs_C-Ux7Tz5.js');
12
12
  var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
13
13
 
14
14
  function Dropdown(props) {
@@ -3,10 +3,10 @@ import React, { useRef, useState, useCallback, useEffect } from 'react';
3
3
  import clsx from 'clsx';
4
4
  import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
5
5
  import { useStyles } from './hooks/useStyles/useStyles.js';
6
- import { I as Icon, B as Badge } from './Icon_es_k9bHSLyL.js';
6
+ import { I as Icon, B as Badge } from './Icon_es_B7IMj2rG.js';
7
7
  import { useAppearanceConfig } from './hooks/useAppearanceConfig/useAppearanceConfig.js';
8
8
  import { D as Divider } from './Divider_es_CiRU0sTz.js';
9
- import { T as Text } from './Text_es_Ffjr5J1k.js';
9
+ import { T as Text } from './Text_es_BdFAdf7M.js';
10
10
  import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
11
11
 
12
12
  function Dropdown(props) {
@@ -10,7 +10,7 @@ var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearance
10
10
  var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
11
11
  var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
12
12
  var Link = require('./Link_cjs_BqT6eVl6.js');
13
- var Text = require('./Text_cjs_BlNeIm_v.js');
13
+ var Text = require('./Text_cjs_C-Ux7Tz5.js');
14
14
 
15
15
  var badgeAppearanceAccent = {
16
16
  accent: {
@@ -8,7 +8,7 @@ import { useAppearanceConfig } from './hooks/useAppearanceConfig/useAppearanceCo
8
8
  import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
9
9
  import { useStyles } from './hooks/useStyles/useStyles.js';
10
10
  import { a as LinkWrapper } from './Link_es_BnUIX0QT.js';
11
- import { T as Text } from './Text_es_Ffjr5J1k.js';
11
+ import { T as Text } from './Text_es_BdFAdf7M.js';
12
12
 
13
13
  var badgeAppearanceAccent = {
14
14
  accent: {
@@ -6,8 +6,8 @@ var clsx = require('clsx');
6
6
  var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
7
7
  var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
8
8
  var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
9
- var Icon = require('./Icon_cjs_DRZih-pc.js');
10
- var Text = require('./Text_cjs_BlNeIm_v.js');
9
+ var Icon = require('./Icon_cjs_CKWWo53f.js');
10
+ var Text = require('./Text_cjs_C-Ux7Tz5.js');
11
11
  var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
12
12
 
13
13
  var labelAppearanceAccent = {
@@ -4,8 +4,8 @@ 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_k9bHSLyL.js';
8
- import { T as Text } from './Text_es_Ffjr5J1k.js';
7
+ import { I as Icon, T as Tooltip } from './Icon_es_B7IMj2rG.js';
8
+ import { T as Text } from './Text_es_BdFAdf7M.js';
9
9
  import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
10
10
 
11
11
  var labelAppearanceAccent = {
@@ -5,7 +5,7 @@ var clsx = require('clsx');
5
5
  var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
6
6
  var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
7
7
  var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
8
- var Text = require('./Text_cjs_BlNeIm_v.js');
8
+ var Text = require('./Text_cjs_C-Ux7Tz5.js');
9
9
  var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
10
10
 
11
11
  var loaderAppearanceAccent = {
@@ -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 { T as Text } from './Text_es_Ffjr5J1k.js';
6
+ import { T as Text } from './Text_es_BdFAdf7M.js';
7
7
  import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
8
8
 
9
9
  var loaderAppearanceAccent = {
@@ -40,15 +40,17 @@ var textConfig = {
40
40
  },
41
41
  };
42
42
  function Text(props) {
43
- var className = props.className, appearance = props.appearance, cursor = props.cursor, dataTestId = props.dataTestId, dataTour = props.dataTour, htmlFor = props.htmlFor, _a = props.tag, Tag = _a === void 0 ? 'span' : _a, before = props.before, after = props.after, isActive = props.isActive, isSkeleton = props.isSkeleton, onClick = props.onClick, onDoubleClick = props.onDoubleClick, children = props.children;
43
+ var className = props.className, appearance = props.appearance, isDisabled = props.isDisabled, cursor = props.cursor, dataTestId = props.dataTestId, dataTour = props.dataTour, htmlFor = props.htmlFor, _a = props.tag, Tag = _a === void 0 ? 'span' : _a, before = props.before, after = props.after, isActive = props.isActive, isSkeleton = props.isSkeleton, onClick = props.onClick, onDoubleClick = props.onDoubleClick, children = props.children;
44
44
  var appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, textConfig);
45
45
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
46
- var textAlignClass = propsGenerator.textAlignClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorGradientClass = propsGenerator.textColorGradientClass, textColorHoverActiveClass = propsGenerator.textColorHoverActiveClass, textColorHoverClass = propsGenerator.textColorHoverClass, textStyleClass = propsGenerator.textStyleClass, textTruncateClass = propsGenerator.textTruncateClass, textWeightClass = propsGenerator.textWeightClass, textWrapClass = propsGenerator.textWrapClass, cursorClass = propsGenerator.cursorClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
46
+ var textAlignClass = propsGenerator.textAlignClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorDisabledClass = propsGenerator.textColorDisabledClass, textColorGradientClass = propsGenerator.textColorGradientClass, textColorHoverActiveClass = propsGenerator.textColorHoverActiveClass, textColorHoverClass = propsGenerator.textColorHoverClass, textStyleClass = propsGenerator.textStyleClass, textTruncateClass = propsGenerator.textTruncateClass, textWeightClass = propsGenerator.textWeightClass, textWrapClass = propsGenerator.textWrapClass, cursorClass = propsGenerator.cursorClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
47
47
  // @ts-expect-error
48
48
  var textStyles = useStyles.useStyles(props).styles;
49
- return (jsxRuntime.jsxs(Tag, { className: clsx(className, 'text', sizeClass && "text_size_".concat(sizeClass), textWeightClass && "text-weight_".concat(textWeightClass), textAlignClass && "text-align_".concat(textAlignClass), !isActive
49
+ return (jsxRuntime.jsxs(Tag, { className: clsx(className, 'text', sizeClass && "text_size_".concat(sizeClass), textWeightClass && "text-weight_".concat(textWeightClass), textAlignClass && "text-align_".concat(textAlignClass), isDisabled &&
50
+ textColorDisabledClass &&
51
+ "text-color_".concat(textColorDisabledClass), !isActive && !isDisabled
50
52
  ? textColorClass && "text-color_".concat(textColorClass)
51
- : textColorActiveClass && "text-color_active_".concat(textColorActiveClass), !isActive
53
+ : textColorActiveClass && "text-color_active_".concat(textColorActiveClass), !isActive && !isDisabled
52
54
  ? textColorHoverClass && "text-color_hover_".concat(textColorHoverClass)
53
55
  : textColorHoverActiveClass &&
54
56
  "text-color_hover_active_".concat(textColorActiveClass), textColorGradientClass && "text-gradient_".concat(textColorGradientClass), textStyleClass && "text-style_".concat(textStyleClass), textWrapClass && "word-wrap_".concat(textWrapClass), textTruncateClass && "text-truncate_".concat(textTruncateClass), isSkeleton && 'text_skeleton', widthClass && "width_".concat(widthClass), cursorClass && "cursor_".concat(cursorClass), onClick && (cursor || 'cursor_type_pointer')), "data-test-id": dataTestId, "data-tour": dataTour, htmlFor: htmlFor, style: textStyles, onClick: onClick, onDoubleClick: onDoubleClick, children: [before, children, after] }));
@@ -38,15 +38,17 @@ var textConfig = {
38
38
  },
39
39
  };
40
40
  function Text(props) {
41
- var className = props.className, appearance = props.appearance, cursor = props.cursor, dataTestId = props.dataTestId, dataTour = props.dataTour, htmlFor = props.htmlFor, _a = props.tag, Tag = _a === void 0 ? 'span' : _a, before = props.before, after = props.after, isActive = props.isActive, isSkeleton = props.isSkeleton, onClick = props.onClick, onDoubleClick = props.onDoubleClick, children = props.children;
41
+ var className = props.className, appearance = props.appearance, isDisabled = props.isDisabled, cursor = props.cursor, dataTestId = props.dataTestId, dataTour = props.dataTour, htmlFor = props.htmlFor, _a = props.tag, Tag = _a === void 0 ? 'span' : _a, before = props.before, after = props.after, isActive = props.isActive, isSkeleton = props.isSkeleton, onClick = props.onClick, onDoubleClick = props.onDoubleClick, children = props.children;
42
42
  var appearanceConfig = useAppearanceConfig(appearance, textConfig);
43
43
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
44
- var textAlignClass = propsGenerator.textAlignClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorGradientClass = propsGenerator.textColorGradientClass, textColorHoverActiveClass = propsGenerator.textColorHoverActiveClass, textColorHoverClass = propsGenerator.textColorHoverClass, textStyleClass = propsGenerator.textStyleClass, textTruncateClass = propsGenerator.textTruncateClass, textWeightClass = propsGenerator.textWeightClass, textWrapClass = propsGenerator.textWrapClass, cursorClass = propsGenerator.cursorClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
44
+ var textAlignClass = propsGenerator.textAlignClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorDisabledClass = propsGenerator.textColorDisabledClass, textColorGradientClass = propsGenerator.textColorGradientClass, textColorHoverActiveClass = propsGenerator.textColorHoverActiveClass, textColorHoverClass = propsGenerator.textColorHoverClass, textStyleClass = propsGenerator.textStyleClass, textTruncateClass = propsGenerator.textTruncateClass, textWeightClass = propsGenerator.textWeightClass, textWrapClass = propsGenerator.textWrapClass, cursorClass = propsGenerator.cursorClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
45
45
  // @ts-expect-error
46
46
  var textStyles = useStyles(props).styles;
47
- return (jsxs(Tag, { className: clsx(className, 'text', sizeClass && "text_size_".concat(sizeClass), textWeightClass && "text-weight_".concat(textWeightClass), textAlignClass && "text-align_".concat(textAlignClass), !isActive
47
+ return (jsxs(Tag, { className: clsx(className, 'text', sizeClass && "text_size_".concat(sizeClass), textWeightClass && "text-weight_".concat(textWeightClass), textAlignClass && "text-align_".concat(textAlignClass), isDisabled &&
48
+ textColorDisabledClass &&
49
+ "text-color_".concat(textColorDisabledClass), !isActive && !isDisabled
48
50
  ? textColorClass && "text-color_".concat(textColorClass)
49
- : textColorActiveClass && "text-color_active_".concat(textColorActiveClass), !isActive
51
+ : textColorActiveClass && "text-color_active_".concat(textColorActiveClass), !isActive && !isDisabled
50
52
  ? textColorHoverClass && "text-color_hover_".concat(textColorHoverClass)
51
53
  : textColorHoverActiveClass &&
52
54
  "text-color_hover_active_".concat(textColorActiveClass), textColorGradientClass && "text-gradient_".concat(textColorGradientClass), textStyleClass && "text-style_".concat(textStyleClass), textWrapClass && "word-wrap_".concat(textWrapClass), textTruncateClass && "text-truncate_".concat(textTruncateClass), isSkeleton && 'text_skeleton', widthClass && "width_".concat(widthClass), cursorClass && "cursor_".concat(cursorClass), onClick && (cursor || 'cursor_type_pointer')), "data-test-id": dataTestId, "data-tour": dataTour, htmlFor: htmlFor, style: textStyles, onClick: onClick, onDoubleClick: onDoubleClick, children: [before, children, after] }));
@@ -8,9 +8,9 @@ var castArray = require('lodash/castArray');
8
8
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
9
9
  var useStyles = require('../hooks/useStyles/useStyles.js');
10
10
  var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
11
- var Icon = require('../../Icon_cjs_DRZih-pc.js');
11
+ var Icon = require('../../Icon_cjs_CKWWo53f.js');
12
12
  var Divider = require('../../Divider_cjs_rxMMBfLC.js');
13
- var Text = require('../../Text_cjs_BlNeIm_v.js');
13
+ var Text = require('../../Text_cjs_C-Ux7Tz5.js');
14
14
  var _default = require('@itcase/icons/default');
15
15
  require('lodash/camelCase');
16
16
  require('lodash/upperFirst');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var Avatar = require('../../Avatar_cjs_Bp8wjwGw.js');
3
+ var Avatar = require('../../Avatar_cjs_BQNgRkQo.js');
4
4
  require('react/jsx-runtime');
5
5
  require('react');
6
6
  require('clsx');
@@ -17,7 +17,7 @@ require('../context/UIContext.js');
17
17
  require('../hooks/useMediaQueries/useMediaQueries.js');
18
18
  require('react-responsive');
19
19
  require('../utils/setViewportProperty.js');
20
- require('../../Icon_cjs_DRZih-pc.js');
20
+ require('../../Icon_cjs_CKWWo53f.js');
21
21
  require('react-inlinesvg');
22
22
  require('../hoc/urlWithAssetPrefix.js');
23
23
  require('../context/UrlAssetPrefix.js');
@@ -25,7 +25,7 @@ require('../hooks/useStyles/useStyles.js');
25
25
  require('lodash/maxBy');
26
26
  require('../hooks/useStyles/styleAttributes.js');
27
27
  require('../../Link_cjs_BqT6eVl6.js');
28
- require('../../Text_cjs_BlNeIm_v.js');
28
+ require('../../Text_cjs_C-Ux7Tz5.js');
29
29
  require('../../Image_cjs_2zEjohYE.js');
30
30
 
31
31
 
@@ -5,9 +5,9 @@ var clsx = require('clsx');
5
5
  var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
6
6
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
7
7
  var useStyles = require('../hooks/useStyles/useStyles.js');
8
- var Avatar = require('../../Avatar_cjs_Bp8wjwGw.js');
8
+ var Avatar = require('../../Avatar_cjs_BQNgRkQo.js');
9
9
  var Group = require('../../Group_cjs_CDLfU5D2.js');
10
- var Text = require('../../Text_cjs_BlNeIm_v.js');
10
+ var Text = require('../../Text_cjs_C-Ux7Tz5.js');
11
11
  var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
12
12
  require('react');
13
13
  require('lodash/camelCase');
@@ -22,7 +22,7 @@ require('react-responsive');
22
22
  require('../utils/setViewportProperty.js');
23
23
  require('lodash/maxBy');
24
24
  require('../hooks/useStyles/styleAttributes.js');
25
- require('../../Icon_cjs_DRZih-pc.js');
25
+ require('../../Icon_cjs_CKWWo53f.js');
26
26
  require('react-inlinesvg');
27
27
  require('../hoc/urlWithAssetPrefix.js');
28
28
  require('../context/UrlAssetPrefix.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var Icon = require('../../Icon_cjs_DRZih-pc.js');
3
+ var Icon = require('../../Icon_cjs_CKWWo53f.js');
4
4
  require('../../tslib.es6_cjs_CCZ3TN_7.js');
5
5
  require('react/jsx-runtime');
6
6
  require('react');
@@ -24,7 +24,7 @@ require('../hooks/useStyles/useStyles.js');
24
24
  require('lodash/maxBy');
25
25
  require('../hooks/useStyles/styleAttributes.js');
26
26
  require('../../Link_cjs_BqT6eVl6.js');
27
- require('../../Text_cjs_BlNeIm_v.js');
27
+ require('../../Text_cjs_C-Ux7Tz5.js');
28
28
 
29
29
 
30
30
 
@@ -6,9 +6,9 @@ var clsx = require('clsx');
6
6
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
7
7
  var useStyles = require('../hooks/useStyles/useStyles.js');
8
8
  var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
9
- var Icon = require('../../Icon_cjs_DRZih-pc.js');
9
+ var Icon = require('../../Icon_cjs_CKWWo53f.js');
10
10
  var Link = require('../../Link_cjs_BqT6eVl6.js');
11
- var Text = require('../../Text_cjs_BlNeIm_v.js');
11
+ var Text = require('../../Text_cjs_C-Ux7Tz5.js');
12
12
  var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
13
13
  var _default = require('@itcase/icons/default');
14
14
  require('lodash/camelCase');
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var Button = require('../../Button_cjs_Chn18eOU.js');
3
+ var Button = require('../../Button_cjs_C8P5a38-.js');
4
4
  require('react/jsx-runtime');
5
5
  require('react');
6
6
  require('clsx');
7
- require('../../Icon_cjs_DRZih-pc.js');
7
+ require('../../Icon_cjs_CKWWo53f.js');
8
8
  require('../../tslib.es6_cjs_CCZ3TN_7.js');
9
9
  require('react-inlinesvg');
10
10
  require('../hoc/urlWithAssetPrefix.js');
@@ -25,8 +25,8 @@ require('../hooks/useStyles/useStyles.js');
25
25
  require('lodash/maxBy');
26
26
  require('../hooks/useStyles/styleAttributes.js');
27
27
  require('../../Link_cjs_BqT6eVl6.js');
28
- require('../../Text_cjs_BlNeIm_v.js');
29
- require('../../Loader_cjs_BShrE-Nb.js');
28
+ require('../../Text_cjs_C-Ux7Tz5.js');
29
+ require('../../Loader_cjs_D_n5PrK5.js');
30
30
 
31
31
 
32
32