@itcase/ui 1.4.2 → 1.4.6

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 (155) hide show
  1. package/dist/{Badge-CGHosmYx.js → Badge-C68XnlcL.js} +3 -4
  2. package/dist/{Badge-BX4N91_C.js → Badge-C6SNRExV.js} +3 -4
  3. package/dist/{Button-BtAUGGPc.js → Button-Bsrw4D7p.js} +3 -3
  4. package/dist/{Button-HKkjJ38v.js → Button-WZZpsxTk.js} +3 -3
  5. package/dist/{Group-Chtnas-J.js → Group-Cq4AQPqb.js} +2 -4
  6. package/dist/{Group-DiMnEfge.js → Group-Dz8xytje.js} +2 -4
  7. package/dist/{Label-XTFwl1aq.js → Label-DF2a2Mlx.js} +2 -2
  8. package/dist/{Label-Dpeq55TV.js → Label-I9WNpCXa.js} +2 -2
  9. package/dist/{Loader-CsPvc-9g.js → Loader-D4_r7LML.js} +6 -6
  10. package/dist/{Loader-CBEbIRnd.js → Loader-DpYaDhe9.js} +6 -6
  11. package/dist/cjs/components/Badge.js +1 -1
  12. package/dist/cjs/components/Button.js +2 -2
  13. package/dist/cjs/components/Cell.js +1 -1
  14. package/dist/cjs/components/Checkbox.js +12 -10
  15. package/dist/cjs/components/Checkmark.js +36 -9
  16. package/dist/cjs/components/Chips.js +3 -3
  17. package/dist/cjs/components/Choice.js +19 -11
  18. package/dist/cjs/components/CookiesWarning.js +3 -3
  19. package/dist/cjs/components/DatePicker.js +3 -3
  20. package/dist/cjs/components/Group.js +1 -1
  21. package/dist/cjs/components/Label.js +1 -1
  22. package/dist/cjs/components/Loader.js +1 -1
  23. package/dist/cjs/components/MenuItem.js +39 -11
  24. package/dist/cjs/components/Modal.js +21 -13
  25. package/dist/cjs/components/Panel.js +1 -1
  26. package/dist/cjs/components/Response.js +90 -105
  27. package/dist/cjs/components/Select.js +2 -2
  28. package/dist/cjs/components/Tab.js +1 -1
  29. package/dist/cjs/components/Tile.js +1 -1
  30. package/dist/components/Badge.js +1 -1
  31. package/dist/components/Button.js +2 -2
  32. package/dist/components/Cell.js +1 -1
  33. package/dist/components/Checkbox.js +12 -10
  34. package/dist/components/Checkmark.js +36 -9
  35. package/dist/components/Chips.js +3 -3
  36. package/dist/components/Choice.js +19 -11
  37. package/dist/components/CookiesWarning.js +3 -3
  38. package/dist/components/DatePicker.js +3 -3
  39. package/dist/components/Group.js +1 -1
  40. package/dist/components/Label.js +1 -1
  41. package/dist/components/Loader.js +1 -1
  42. package/dist/components/MenuItem.js +40 -8
  43. package/dist/components/Modal.js +21 -13
  44. package/dist/components/Panel.js +1 -1
  45. package/dist/components/Response.js +90 -105
  46. package/dist/components/Select.js +2 -2
  47. package/dist/components/Tab.js +1 -1
  48. package/dist/components/Tile.js +1 -1
  49. package/dist/css/components/Badge/Badge.css +50 -0
  50. package/dist/css/components/Button/Button.css +24 -0
  51. package/dist/css/components/Checkbox/Checkbox.css +25 -2
  52. package/dist/css/components/Checkmark/Checkmark.css +6 -8
  53. package/dist/css/components/Label/Label.css +11 -13
  54. package/dist/css/components/Loader/Loader.css +40 -3
  55. package/dist/css/components/Response/Response.css +5 -12
  56. package/dist/css/components/Video/Video.css +0 -14
  57. package/dist/css/styles/svg-color/svg_path_fill.css +1 -2
  58. package/dist/stories/Cell.mdx +1 -17
  59. package/dist/types/components/Checkmark/appearance/checkmarkAccent.d.ts +9 -0
  60. package/dist/types/components/Checkmark/appearance/checkmarkDisabled.d.ts +9 -0
  61. package/dist/types/components/Checkmark/appearance/checkmarkStyle.d.ts +16 -0
  62. package/dist/types/components/Checkmark/appearance/checkmarkSurface.d.ts +11 -0
  63. package/dist/types/components/Flex/stories/args.d.ts +8 -8
  64. package/dist/types/components/Grid/stories/args.d.ts +5 -5
  65. package/dist/types/components/Group/stories/args.d.ts +5 -5
  66. package/dist/types/components/Loader/appearance/loaderAccent.d.ts +1 -1
  67. package/dist/types/components/Loader/appearance/loaderPrimary.d.ts +1 -1
  68. package/dist/types/components/Loader/appearance/loaderSecondary.d.ts +1 -1
  69. package/dist/types/components/Modal/Modal.appearance.d.ts +2 -2
  70. package/dist/types/components/Modal/Modal.interface.d.ts +3 -3
  71. package/dist/types/components/Modal/appearance/modalSurface.d.ts +7 -0
  72. package/dist/types/components/Response/Response.interface.d.ts +12 -10
  73. package/dist/types/components/Tab/stories/args.d.ts +13 -13
  74. package/dist/types/types/componentProps/align.d.ts +1 -1
  75. package/dist/types/types/componentProps/alignDirection.d.ts +1 -1
  76. package/dist/types/types/componentProps/alignment.d.ts +1 -1
  77. package/dist/types/types/componentProps/appearanceKeys.d.ts +1 -1
  78. package/dist/types/types/componentProps/borderColor.d.ts +1 -1
  79. package/dist/types/types/componentProps/borderColorHover.d.ts +1 -1
  80. package/dist/types/types/componentProps/borderType.d.ts +1 -1
  81. package/dist/types/types/componentProps/borderWidth.d.ts +1 -1
  82. package/dist/types/types/componentProps/elevation.d.ts +1 -1
  83. package/dist/types/types/componentProps/fill.d.ts +1 -1
  84. package/dist/types/types/componentProps/fillGradient.d.ts +1 -1
  85. package/dist/types/types/componentProps/fillHover.d.ts +1 -1
  86. package/dist/types/types/componentProps/fillType.d.ts +1 -1
  87. package/dist/types/types/componentProps/flexAlign.d.ts +1 -1
  88. package/dist/types/types/componentProps/flexGrow.d.ts +1 -1
  89. package/dist/types/types/componentProps/flexJustifyContent.d.ts +1 -1
  90. package/dist/types/types/componentProps/flexWrap.d.ts +1 -1
  91. package/dist/types/types/componentProps/gridAlign.d.ts +1 -1
  92. package/dist/types/types/componentProps/gridAlignSelf.d.ts +1 -1
  93. package/dist/types/types/componentProps/gridJustifyItems.d.ts +1 -1
  94. package/dist/types/types/componentProps/gridJustifySelf.d.ts +1 -1
  95. package/dist/types/types/componentProps/height.d.ts +1 -1
  96. package/dist/types/types/componentProps/horizontalContentAlign.d.ts +1 -1
  97. package/dist/types/types/componentProps/horizontalResizeMode.d.ts +1 -1
  98. package/dist/types/types/componentProps/iconFillSize.d.ts +1 -1
  99. package/dist/types/types/componentProps/iconSize.d.ts +1 -1
  100. package/dist/types/types/componentProps/itemColor.d.ts +1 -1
  101. package/dist/types/types/componentProps/justifyContent.d.ts +1 -1
  102. package/dist/types/types/componentProps/overflow.d.ts +1 -1
  103. package/dist/types/types/componentProps/position.d.ts +1 -1
  104. package/dist/types/types/componentProps/resizeMode.d.ts +1 -1
  105. package/dist/types/types/componentProps/shape.d.ts +1 -1
  106. package/dist/types/types/componentProps/size.d.ts +1 -1
  107. package/dist/types/types/componentProps/sizeOption.d.ts +1 -1
  108. package/dist/types/types/componentProps/sizePX.d.ts +1 -1
  109. package/dist/types/types/componentProps/stacking.d.ts +1 -1
  110. package/dist/types/types/componentProps/state.d.ts +1 -1
  111. package/dist/types/types/componentProps/svgFill.d.ts +1 -1
  112. package/dist/types/types/componentProps/textAlign.d.ts +1 -1
  113. package/dist/types/types/componentProps/textGradient.d.ts +1 -1
  114. package/dist/types/types/componentProps/textSize.d.ts +1 -1
  115. package/dist/types/types/componentProps/textStyle.d.ts +1 -1
  116. package/dist/types/types/componentProps/textTag.d.ts +1 -1
  117. package/dist/types/types/componentProps/textWeight.d.ts +1 -1
  118. package/dist/types/types/componentProps/textWrap.d.ts +1 -1
  119. package/dist/types/types/componentProps/titleSize.d.ts +4 -2
  120. package/dist/types/types/componentProps/type.d.ts +1 -1
  121. package/dist/types/types/componentProps/underline.d.ts +1 -1
  122. package/dist/types/types/componentProps/verticalContentAlign.d.ts +1 -1
  123. package/dist/types/types/componentProps/verticalResizeMode.d.ts +1 -1
  124. package/dist/types/types/componentProps/width.d.ts +1 -1
  125. package/dist/types/types/componentProps/wrap.d.ts +1 -1
  126. package/dist/types/types/index.d.ts +0 -2
  127. package/package.json +12 -12
  128. package/dist/MenuItem-Cjlnmfwh.js +0 -40
  129. package/dist/MenuItem-PJkuGghn.js +0 -44
  130. package/dist/cjs/components/Menu.js +0 -45
  131. package/dist/components/Menu.js +0 -41
  132. package/dist/css/components/Menu/Menu.css +0 -65
  133. package/dist/stories/Checkbox.mdx +0 -23
  134. package/dist/stories/Checkmark.mdx +0 -15
  135. package/dist/stories/Chips.mdx +0 -31
  136. package/dist/stories/DevMode.mdx +0 -9
  137. package/dist/stories/Label.mdx +0 -31
  138. package/dist/stories/Loader.mdx +0 -31
  139. package/dist/stories/Message.mdx +0 -15
  140. package/dist/stories/Response.mdx +0 -23
  141. package/dist/stories/Tile.mdx +0 -19
  142. package/dist/stories/WithTooltip.mdx +0 -9
  143. package/dist/types/components/Button/stories/args.d.ts +0 -200
  144. package/dist/types/components/Chips/stories/args.d.ts +0 -45
  145. package/dist/types/components/Menu/Menu.appearance.d.ts +0 -2
  146. package/dist/types/components/Menu/Menu.d.ts +0 -4
  147. package/dist/types/components/Menu/Menu.interface.d.ts +0 -35
  148. package/dist/types/components/Menu/index.d.ts +0 -2
  149. package/dist/types/components/Response/stories/args.d.ts +0 -174
  150. package/dist/types/types/componentProps/captionPosition.d.ts +0 -3
  151. package/dist/types/types/componentProps/emojiSize.d.ts +0 -3
  152. /package/dist/stories/{colors.mdx → Colors.mdx} +0 -0
  153. /package/dist/stories/{elevation.mdx → Elevation.mdx} +0 -0
  154. /package/dist/stories/{settings.mdx → Settings.mdx} +0 -0
  155. /package/dist/stories/{typography.mdx → Typography.mdx} +0 -0
@@ -218,7 +218,7 @@ var badgeConfig = {
218
218
  },
219
219
  };
220
220
  function Badge(props) {
221
- var className = props.className, appearance = props.appearance, children = props.children, dot = props.dot, icon = props.icon, iconSrc = props.iconSrc, value = props.value, isSkeleton = props.isSkeleton;
221
+ var className = props.className, appearance = props.appearance, dot = props.dot, icon = props.icon, iconSrc = props.iconSrc, value = props.value, isSkeleton = props.isSkeleton, children = props.children;
222
222
  var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultApperance, appearance) {
223
223
  var _a;
224
224
  return (__assign(__assign({}, resultApperance), (_a = badgeConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearance]));
@@ -238,9 +238,8 @@ function Badge(props) {
238
238
  : dot
239
239
  ? 'badge_type_dot'
240
240
  : 'badge_type_fill';
241
- return (jsxs("div", { className: clsx(className, 'badge', borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass &&
242
- "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), positionClass && "position_".concat(positionClass), sizeClass && "badge_size_".concat(sizeClass), shapeClass && "badge_shape_".concat(shapeClass), badgeTypeClass, isSkeleton && "badge_skeleton"), style: badgeStyles, children: [dot && (jsx("div", { className: clsx('badge__dot', dotFillClass && "svg_fill_".concat(dotFillClass)), children: jsx("svg", { width: "6", height: "6", viewBox: "0 0 6 6", xmlns: "http://www.w3.org/2000/svg", children: jsx("rect", { width: "6", height: "6", rx: "50" }) }) })), icon && (jsx(Icon, { className: "badge__icon", iconFill: iconFill, imageSrc: iconSrc, shape: iconShape, size: iconSize, SvgImage: icon })), children ||
243
- (value && (jsx(Text, { className: "badge__value", textColor: textColor, size: textSize, children: value })))] }));
241
+ return (jsxs("div", { className: clsx(className, 'badge', borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), positionClass && "position_".concat(positionClass), sizeClass && "badge_size_".concat(sizeClass), shapeClass && "badge_shape_".concat(shapeClass), badgeTypeClass, isSkeleton && "badge_skeleton"), style: badgeStyles, children: [dot && (jsx("div", { className: clsx('badge__dot', dotFillClass && "svg_fill_".concat(dotFillClass)), children: jsx("svg", { width: "6", height: "6", viewBox: "0 0 6 6", xmlns: "http://www.w3.org/2000/svg", children: jsx("rect", { width: "6", height: "6", rx: "50" }) }) })), icon && (jsx(Icon, { className: "badge__icon", size: iconSize, iconFill: iconFill, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), children ||
242
+ (value && (jsx(Text, { className: "badge__value", size: textSize, textColor: textColor, children: value })))] }));
244
243
  }
245
244
 
246
245
  export { Badge as B, badgeConfig as a, badgeAppearance as b };
@@ -220,7 +220,7 @@ var badgeConfig = {
220
220
  },
221
221
  };
222
222
  function Badge(props) {
223
- var className = props.className, appearance = props.appearance, children = props.children, dot = props.dot, icon = props.icon, iconSrc = props.iconSrc, value = props.value, isSkeleton = props.isSkeleton;
223
+ var className = props.className, appearance = props.appearance, dot = props.dot, icon = props.icon, iconSrc = props.iconSrc, value = props.value, isSkeleton = props.isSkeleton, children = props.children;
224
224
  var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultApperance, appearance) {
225
225
  var _a;
226
226
  return (tslib_es6.__assign(tslib_es6.__assign({}, resultApperance), (_a = badgeConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearance]));
@@ -240,9 +240,8 @@ function Badge(props) {
240
240
  : dot
241
241
  ? 'badge_type_dot'
242
242
  : 'badge_type_fill';
243
- return (jsxRuntime.jsxs("div", { className: clsx(className, 'badge', borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass &&
244
- "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), positionClass && "position_".concat(positionClass), sizeClass && "badge_size_".concat(sizeClass), shapeClass && "badge_shape_".concat(shapeClass), badgeTypeClass, isSkeleton && "badge_skeleton"), style: badgeStyles, children: [dot && (jsxRuntime.jsx("div", { className: clsx('badge__dot', dotFillClass && "svg_fill_".concat(dotFillClass)), children: jsxRuntime.jsx("svg", { width: "6", height: "6", viewBox: "0 0 6 6", xmlns: "http://www.w3.org/2000/svg", children: jsxRuntime.jsx("rect", { width: "6", height: "6", rx: "50" }) }) })), icon && (jsxRuntime.jsx(Icon.Icon, { className: "badge__icon", iconFill: iconFill, imageSrc: iconSrc, shape: iconShape, size: iconSize, SvgImage: icon })), children ||
245
- (value && (jsxRuntime.jsx(Text.Text, { className: "badge__value", textColor: textColor, size: textSize, children: value })))] }));
243
+ return (jsxRuntime.jsxs("div", { className: clsx(className, 'badge', borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), positionClass && "position_".concat(positionClass), sizeClass && "badge_size_".concat(sizeClass), shapeClass && "badge_shape_".concat(shapeClass), badgeTypeClass, isSkeleton && "badge_skeleton"), style: badgeStyles, children: [dot && (jsxRuntime.jsx("div", { className: clsx('badge__dot', dotFillClass && "svg_fill_".concat(dotFillClass)), children: jsxRuntime.jsx("svg", { width: "6", height: "6", viewBox: "0 0 6 6", xmlns: "http://www.w3.org/2000/svg", children: jsxRuntime.jsx("rect", { width: "6", height: "6", rx: "50" }) }) })), icon && (jsxRuntime.jsx(Icon.Icon, { className: "badge__icon", size: iconSize, iconFill: iconFill, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), children ||
244
+ (value && (jsxRuntime.jsx(Text.Text, { className: "badge__value", size: textSize, textColor: textColor, children: value })))] }));
246
245
  }
247
246
 
248
247
  exports.Badge = Badge;
@@ -6,7 +6,7 @@ import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevi
6
6
  import { useStyles } from './hooks/useStyles/useStyles.js';
7
7
  import { I as Icon } from './Icon-htF_V35Y.js';
8
8
  import { L as LinkWrapper } from './Link-BhJ5BdyS.js';
9
- import { L as Loader } from './Loader-CsPvc-9g.js';
9
+ import { L as Loader } from './Loader-D4_r7LML.js';
10
10
  import { T as Text } from './Text-C6NSmetx.js';
11
11
 
12
12
  var buttonAppearanceAccent = {
@@ -259,7 +259,7 @@ var Button = React.forwardRef(function Button(props, ref) {
259
259
  }
260
260
  var _isLoading = isLoading !== null && isLoading !== void 0 ? isLoading : loading;
261
261
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
262
- var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextSizeMobile = propsGenerator.labelTextSizeMobile, labelTextTruncate = propsGenerator.labelTextTruncate, labelTextWeight = propsGenerator.labelTextWeight, labelTextWidth = propsGenerator.labelTextWidth, labelTextWrap = propsGenerator.labelTextWrap, elevationClass = propsGenerator.elevationClass, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, loaderFill = propsGenerator.loaderFill, loaderItemFill = propsGenerator.loaderItemFill, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
262
+ var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextSizeMobile = propsGenerator.labelTextSizeMobile, labelTextTruncate = propsGenerator.labelTextTruncate, labelTextWeight = propsGenerator.labelTextWeight, labelTextWidth = propsGenerator.labelTextWidth, labelTextWrap = propsGenerator.labelTextWrap, elevationClass = propsGenerator.elevationClass, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, loaderFill = propsGenerator.loaderFill, loaderItemFill = propsGenerator.loaderItemFill, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, isSkeleton = propsGenerator.isSkeleton;
263
263
  var shapeStrengthClass = propsGenerator.getClassName('shapeStrength', {
264
264
  replace: [/\./, '-'],
265
265
  });
@@ -281,7 +281,7 @@ var Button = React.forwardRef(function Button(props, ref) {
281
281
  ? 'button_type_icon'
282
282
  : '', 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
283
283
  ? "shape-strength_".concat(shapeStrengthClass)
284
- : 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'), type: htmlType, disabled: isDisabled, "data-testid": dataTestId && "".concat(dataTestId, "Button"), "data-tour": dataTour, DefaultComponent: "button", href: link || href, 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', shapeClass), type: loadertype, fill: loaderFill, itemFill: loaderItemFill })), before, (iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "button__icon_before", fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, size: iconBeforeSize, SvgImage: iconBefore })), (icon || iconSrc) && (jsx(Icon, { className: "button__icon", fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, imageSrc: iconSrc, shape: iconShape, size: iconSize, SvgImage: icon })), (children || label || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.label)) && (jsx(Text, { className: "button__label", width: labelTextWidth, textColor: labelTextColor, textColorHover: labelTextColorHover, textTruncate: labelTextTruncate, textWeight: labelTextWeight, textWrap: labelTextWrap, size: labelTextSize, sizeMobile: labelTextSizeMobile, style: labelStyles, children: children || label })), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: "button__icon_after", fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, size: iconAfterSize, SvgImage: iconAfter })), Badge, after] }) }));
284
+ : 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, DefaultComponent: "button", href: link || href, 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', shapeClass), type: loadertype, fill: loaderFill, itemFill: loaderItemFill })), before, (iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "button__icon_before", fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, size: iconBeforeSize, SvgImage: iconBefore })), (icon || iconSrc) && (jsx(Icon, { className: "button__icon", fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, imageSrc: iconSrc, shape: iconShape, size: iconSize, SvgImage: icon })), (children || label || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.label)) && (jsx(Text, { className: "button__label", width: labelTextWidth, textColor: labelTextColor, textColorHover: labelTextColorHover, textTruncate: labelTextTruncate, textWeight: labelTextWeight, textWrap: labelTextWrap, size: labelTextSize, sizeMobile: labelTextSizeMobile, style: labelStyles, children: children || label })), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: "button__icon_after", fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, size: iconAfterSize, SvgImage: iconAfter })), Badge, after] }) }));
285
285
  });
286
286
 
287
287
  export { Button as B, buttonAppearance as a, buttonConfig as b };
@@ -8,7 +8,7 @@ var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDe
8
8
  var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
9
9
  var Icon = require('./Icon-GVGrUu_Z.js');
10
10
  var Link = require('./Link-B38Hn4G2.js');
11
- var Loader = require('./Loader-CBEbIRnd.js');
11
+ var Loader = require('./Loader-DpYaDhe9.js');
12
12
  var Text = require('./Text-C49zj3jO.js');
13
13
 
14
14
  var buttonAppearanceAccent = {
@@ -261,7 +261,7 @@ var Button = React.forwardRef(function Button(props, ref) {
261
261
  }
262
262
  var _isLoading = isLoading !== null && isLoading !== void 0 ? isLoading : loading;
263
263
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
264
- var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextSizeMobile = propsGenerator.labelTextSizeMobile, labelTextTruncate = propsGenerator.labelTextTruncate, labelTextWeight = propsGenerator.labelTextWeight, labelTextWidth = propsGenerator.labelTextWidth, labelTextWrap = propsGenerator.labelTextWrap, elevationClass = propsGenerator.elevationClass, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, loaderFill = propsGenerator.loaderFill, loaderItemFill = propsGenerator.loaderItemFill, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
264
+ var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextSizeMobile = propsGenerator.labelTextSizeMobile, labelTextTruncate = propsGenerator.labelTextTruncate, labelTextWeight = propsGenerator.labelTextWeight, labelTextWidth = propsGenerator.labelTextWidth, labelTextWrap = propsGenerator.labelTextWrap, elevationClass = propsGenerator.elevationClass, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, loaderFill = propsGenerator.loaderFill, loaderItemFill = propsGenerator.loaderItemFill, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, isSkeleton = propsGenerator.isSkeleton;
265
265
  var shapeStrengthClass = propsGenerator.getClassName('shapeStrength', {
266
266
  replace: [/\./, '-'],
267
267
  });
@@ -283,7 +283,7 @@ var Button = React.forwardRef(function Button(props, ref) {
283
283
  ? 'button_type_icon'
284
284
  : '', 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
285
285
  ? "shape-strength_".concat(shapeStrengthClass)
286
- : 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'), type: htmlType, disabled: isDisabled, "data-testid": dataTestId && "".concat(dataTestId, "Button"), "data-tour": dataTour, DefaultComponent: "button", href: link || href, 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', shapeClass), type: loadertype, fill: loaderFill, itemFill: loaderItemFill })), before, (iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon_before", fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, size: iconBeforeSize, SvgImage: iconBefore })), (icon || iconSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon", fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, imageSrc: iconSrc, shape: iconShape, size: iconSize, SvgImage: icon })), (children || label || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.label)) && (jsxRuntime.jsx(Text.Text, { className: "button__label", width: labelTextWidth, textColor: labelTextColor, textColorHover: labelTextColorHover, textTruncate: labelTextTruncate, textWeight: labelTextWeight, textWrap: labelTextWrap, size: labelTextSize, sizeMobile: labelTextSizeMobile, style: labelStyles, children: children || label })), (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon_after", fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, size: iconAfterSize, SvgImage: iconAfter })), Badge, after] }) }));
286
+ : 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, DefaultComponent: "button", href: link || href, 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', shapeClass), type: loadertype, fill: loaderFill, itemFill: loaderItemFill })), before, (iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon_before", fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, size: iconBeforeSize, SvgImage: iconBefore })), (icon || iconSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon", fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, imageSrc: iconSrc, shape: iconShape, size: iconSize, SvgImage: icon })), (children || label || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.label)) && (jsxRuntime.jsx(Text.Text, { className: "button__label", width: labelTextWidth, textColor: labelTextColor, textColorHover: labelTextColorHover, textTruncate: labelTextTruncate, textWeight: labelTextWeight, textWrap: labelTextWrap, size: labelTextSize, sizeMobile: labelTextSizeMobile, style: labelStyles, children: children || label })), (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon_after", fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, size: iconAfterSize, SvgImage: iconAfter })), Badge, after] }) }));
287
287
  });
288
288
 
289
289
  exports.Button = Button;
@@ -23,16 +23,14 @@ var groupConfig = {
23
23
  },
24
24
  };
25
25
  var Group = React.forwardRef(function Group(props, ref) {
26
- var id = props.id, className = props.className, name = props.name, appearance = props.appearance, children = props.children, dataTestId = props.dataTestId, dataTour = props.dataTour, horizontalScroll = props.horizontalScroll, htmlFor = props.htmlFor, style = props.style, _a = props.tag, Tag = _a === void 0 ? 'div' : _a, onClick = props.onClick;
27
- // @ts-expect-error
26
+ var id = props.id, className = props.className, name = props.name, appearance = props.appearance, dataTestId = props.dataTestId, dataTour = props.dataTour, horizontalScroll = props.horizontalScroll, htmlFor = props.htmlFor, style = props.style, _a = props.tag, Tag = _a === void 0 ? 'div' : _a, onClick = props.onClick, children = props.children;
28
27
  var appearanceConfig = groupConfig.appearance && groupConfig.appearance[appearance];
29
28
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
30
29
  var directionClass = propsGenerator.directionClass, flexGrowClass = propsGenerator.flexGrowClass, justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorHoverClass = propsGenerator.textColorHoverClass, columnsClass = propsGenerator.columnsClass, contentAlignClass = propsGenerator.contentAlignClass, elevationClass = propsGenerator.elevationClass, heightClass = propsGenerator.heightClass, iconFillHoverClass = propsGenerator.iconFillHoverClass, shapeClass = propsGenerator.shapeClass, stackingClass = propsGenerator.stackingClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
31
30
  // @ts-expect-error
32
31
  var _b = useStyles.useStyles(props), groupStyles = _b.styles, groupWrapperStyles = _b.wrapper;
33
32
  return (jsxRuntime.jsx(Tag, { id: id, className: clsx(className, 'group', widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), columnsClass && "group_columns_".concat(columnsClass), contentAlignClass && "group_content-align_".concat(contentAlignClass), alignDirectionClass && "align_".concat(alignDirectionClass), directionClass && "group_direction_".concat(directionClass), alignClass && "align_".concat(alignClass), textColorClass && "group_text-color_".concat(textColorClass), textColorActiveClass &&
34
- "group_text-color_active_".concat(textColorActiveClass), textColorHoverClass &&
35
- "group_text-color_hover_".concat(textColorHoverClass), iconFillHoverClass && "group_icon_fill_hover_".concat(iconFillHoverClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), horizontalScroll && 'group_type_horizontal_scroll', stackingClass && "group_stacking_".concat(stackingClass), wrapClass && "group_wrap_".concat(wrapClass), flexGrowClass && "flex-grow_".concat(flexGrowClass), shapeClass && "group_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), elevationClass && "elevation_".concat(elevationClass), justifyContentClass && "justify-content_".concat(justifyContentClass), onClick && 'cursor_type_pointer'), name: name, "data-testid": dataTestId, "data-tour": dataTour, htmlFor: htmlFor, ref: ref, style: Object.assign({}, groupStyles, style), onClick: onClick, children: horizontalScroll ? (jsxRuntime.jsx("div", { className: "group__wrapper", style: groupWrapperStyles, children: children })) : (children) }));
33
+ "group_text-color_active_".concat(textColorActiveClass), textColorHoverClass && "group_text-color_hover_".concat(textColorHoverClass), iconFillHoverClass && "group_icon_fill_hover_".concat(iconFillHoverClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), horizontalScroll && 'group_type_horizontal_scroll', stackingClass && "group_stacking_".concat(stackingClass), wrapClass && "group_wrap_".concat(wrapClass), flexGrowClass && "flex-grow_".concat(flexGrowClass), shapeClass && "group_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), elevationClass && "elevation_".concat(elevationClass), justifyContentClass && "justify-content_".concat(justifyContentClass), onClick && 'cursor_type_pointer'), name: name, "data-testid": dataTestId, "data-tour": dataTour, htmlFor: htmlFor, ref: ref, style: Object.assign({}, groupStyles, style), onClick: onClick, children: horizontalScroll ? (jsxRuntime.jsx("div", { className: "group__wrapper", style: groupWrapperStyles, children: children })) : (children) }));
36
34
  });
37
35
 
38
36
  exports.Group = Group;
@@ -21,16 +21,14 @@ var groupConfig = {
21
21
  },
22
22
  };
23
23
  var Group = React.forwardRef(function Group(props, ref) {
24
- var id = props.id, className = props.className, name = props.name, appearance = props.appearance, children = props.children, dataTestId = props.dataTestId, dataTour = props.dataTour, horizontalScroll = props.horizontalScroll, htmlFor = props.htmlFor, style = props.style, _a = props.tag, Tag = _a === void 0 ? 'div' : _a, onClick = props.onClick;
25
- // @ts-expect-error
24
+ var id = props.id, className = props.className, name = props.name, appearance = props.appearance, dataTestId = props.dataTestId, dataTour = props.dataTour, horizontalScroll = props.horizontalScroll, htmlFor = props.htmlFor, style = props.style, _a = props.tag, Tag = _a === void 0 ? 'div' : _a, onClick = props.onClick, children = props.children;
26
25
  var appearanceConfig = groupConfig.appearance && groupConfig.appearance[appearance];
27
26
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
28
27
  var directionClass = propsGenerator.directionClass, flexGrowClass = propsGenerator.flexGrowClass, justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorHoverClass = propsGenerator.textColorHoverClass, columnsClass = propsGenerator.columnsClass, contentAlignClass = propsGenerator.contentAlignClass, elevationClass = propsGenerator.elevationClass, heightClass = propsGenerator.heightClass, iconFillHoverClass = propsGenerator.iconFillHoverClass, shapeClass = propsGenerator.shapeClass, stackingClass = propsGenerator.stackingClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
29
28
  // @ts-expect-error
30
29
  var _b = useStyles(props), groupStyles = _b.styles, groupWrapperStyles = _b.wrapper;
31
30
  return (jsx(Tag, { id: id, className: clsx(className, 'group', widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), columnsClass && "group_columns_".concat(columnsClass), contentAlignClass && "group_content-align_".concat(contentAlignClass), alignDirectionClass && "align_".concat(alignDirectionClass), directionClass && "group_direction_".concat(directionClass), alignClass && "align_".concat(alignClass), textColorClass && "group_text-color_".concat(textColorClass), textColorActiveClass &&
32
- "group_text-color_active_".concat(textColorActiveClass), textColorHoverClass &&
33
- "group_text-color_hover_".concat(textColorHoverClass), iconFillHoverClass && "group_icon_fill_hover_".concat(iconFillHoverClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), horizontalScroll && 'group_type_horizontal_scroll', stackingClass && "group_stacking_".concat(stackingClass), wrapClass && "group_wrap_".concat(wrapClass), flexGrowClass && "flex-grow_".concat(flexGrowClass), shapeClass && "group_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), elevationClass && "elevation_".concat(elevationClass), justifyContentClass && "justify-content_".concat(justifyContentClass), onClick && 'cursor_type_pointer'), name: name, "data-testid": dataTestId, "data-tour": dataTour, htmlFor: htmlFor, ref: ref, style: Object.assign({}, groupStyles, style), onClick: onClick, children: horizontalScroll ? (jsx("div", { className: "group__wrapper", style: groupWrapperStyles, children: children })) : (children) }));
31
+ "group_text-color_active_".concat(textColorActiveClass), textColorHoverClass && "group_text-color_hover_".concat(textColorHoverClass), iconFillHoverClass && "group_icon_fill_hover_".concat(iconFillHoverClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), horizontalScroll && 'group_type_horizontal_scroll', stackingClass && "group_stacking_".concat(stackingClass), wrapClass && "group_wrap_".concat(wrapClass), flexGrowClass && "flex-grow_".concat(flexGrowClass), shapeClass && "group_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), elevationClass && "elevation_".concat(elevationClass), justifyContentClass && "justify-content_".concat(justifyContentClass), onClick && 'cursor_type_pointer'), name: name, "data-testid": dataTestId, "data-tour": dataTour, htmlFor: htmlFor, ref: ref, style: Object.assign({}, groupStyles, style), onClick: onClick, children: horizontalScroll ? (jsx("div", { className: "group__wrapper", style: groupWrapperStyles, children: children })) : (children) }));
34
32
  });
35
33
 
36
34
  export { Group as G, groupAppearance as a, groupConfig as g };
@@ -211,7 +211,7 @@ var labelConfig = {
211
211
  },
212
212
  };
213
213
  function Label(props) {
214
- var className = props.className, type = props.type, appearance = props.appearance, children = props.children, label = props.label, labelTextWrap = props.labelTextWrap, cursor = props.cursor, dataTour = props.dataTour, mode = props.mode, showTooltip = props.showTooltip, tooltipAlignment = props.tooltipAlignment, tooltipAppearance = props.tooltipAppearance, tooltipArrowPosition = props.tooltipArrowPosition, tooltipContent = props.tooltipContent, tooltipText = props.tooltipText, tooltipTextSize = props.tooltipTextSize, tooltipTitle = props.tooltipTitle, tooltipTitleSize = props.tooltipTitleSize, before = props.before, after = props.after, set = props.set, onClick = props.onClick;
214
+ var className = props.className, type = props.type, appearance = props.appearance, children = props.children, label = props.label, labelTextWrap = props.labelTextWrap, cursor = props.cursor, dataTour = props.dataTour, mode = props.mode, showTooltip = props.showTooltip, tooltipAlignment = props.tooltipAlignment, tooltipAppearance = props.tooltipAppearance, tooltipArrowPosition = props.tooltipArrowPosition, tooltipContent = props.tooltipContent, tooltipText = props.tooltipText, tooltipTextSize = props.tooltipTextSize, tooltipTitle = props.tooltipTitle, tooltipTitleSize = props.tooltipTitleSize, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onClick = props.onClick;
215
215
  var tooltipRef = React.useRef(null);
216
216
  var onMouseEnterLabel = React.useCallback(function () {
217
217
  var _a;
@@ -229,7 +229,7 @@ function Label(props) {
229
229
  var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
230
230
  // @ts-expect-error
231
231
  var labelStyles = useStyles.useStyles(props).styles;
232
- return (jsxRuntime.jsxs("div", { className: clsx(className, 'label', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "label_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "label_size_".concat(sizeClass), wrapClass && "'word-wrap_".concat(wrapClass), widthClass && "label_width_".concat(widthClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), type && "label_type_".concat(type), set && "label_set_".concat(set), mode && "label_mode_".concat(mode), onClick && (cursor || 'cursor_type_pointer')), "data-tour": dataTour, style: labelStyles, onClick: onClick, onMouseEnter: onMouseEnterLabel, onMouseLeave: onMouseLeaveLabel, children: [before, jsxRuntime.jsxs("div", { className: "label__inner", children: [typeof label === 'string' ? (jsxRuntime.jsx(Text.Text, { className: "label__text", textColor: labelTextColor, textColorHover: labelTextColorHover, textWeight: labelTextWeight, textWrap: labelTextWrap, size: labelTextSize, children: label })) : (jsxRuntime.jsx("div", { className: "label__text", children: label })), children, showTooltip && (jsxRuntime.jsx(Tooltip.Tooltip, { className: "label__tooltip", appearance: tooltipAppearance, alignment: tooltipAlignment, text: tooltipText, textSize: tooltipTextSize, title: tooltipTitle, titleSize: tooltipTitleSize, arrowPosition: tooltipArrowPosition, ref: tooltipRef, children: tooltipContent }))] }), after] }));
232
+ return (jsxRuntime.jsxs("div", { className: clsx(className, 'label', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "label_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "label_size_".concat(sizeClass), wrapClass && "'word-wrap_".concat(wrapClass), widthClass && "label_width_".concat(widthClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), type && "label_type_".concat(type), mode && "label_mode_".concat(mode), isSkeleton && "label_skeleton", onClick && (cursor || 'cursor_type_pointer')), "data-tour": dataTour, style: labelStyles, onClick: onClick, onMouseEnter: onMouseEnterLabel, onMouseLeave: onMouseLeaveLabel, children: [before, jsxRuntime.jsxs("div", { className: "label__inner", children: [typeof label === 'string' ? (jsxRuntime.jsx(Text.Text, { className: "label__text", textColor: labelTextColor, textColorHover: labelTextColorHover, textWeight: labelTextWeight, textWrap: labelTextWrap, size: labelTextSize, children: label })) : (jsxRuntime.jsx("div", { className: "label__text", children: label })), children, showTooltip && (jsxRuntime.jsx(Tooltip.Tooltip, { className: "label__tooltip", appearance: tooltipAppearance, alignment: tooltipAlignment, text: tooltipText, textSize: tooltipTextSize, title: tooltipTitle, titleSize: tooltipTitleSize, arrowPosition: tooltipArrowPosition, ref: tooltipRef, children: tooltipContent }))] }), after] }));
233
233
  }
234
234
 
235
235
  exports.Label = Label;
@@ -209,7 +209,7 @@ var labelConfig = {
209
209
  },
210
210
  };
211
211
  function Label(props) {
212
- var className = props.className, type = props.type, appearance = props.appearance, children = props.children, label = props.label, labelTextWrap = props.labelTextWrap, cursor = props.cursor, dataTour = props.dataTour, mode = props.mode, showTooltip = props.showTooltip, tooltipAlignment = props.tooltipAlignment, tooltipAppearance = props.tooltipAppearance, tooltipArrowPosition = props.tooltipArrowPosition, tooltipContent = props.tooltipContent, tooltipText = props.tooltipText, tooltipTextSize = props.tooltipTextSize, tooltipTitle = props.tooltipTitle, tooltipTitleSize = props.tooltipTitleSize, before = props.before, after = props.after, set = props.set, onClick = props.onClick;
212
+ var className = props.className, type = props.type, appearance = props.appearance, children = props.children, label = props.label, labelTextWrap = props.labelTextWrap, cursor = props.cursor, dataTour = props.dataTour, mode = props.mode, showTooltip = props.showTooltip, tooltipAlignment = props.tooltipAlignment, tooltipAppearance = props.tooltipAppearance, tooltipArrowPosition = props.tooltipArrowPosition, tooltipContent = props.tooltipContent, tooltipText = props.tooltipText, tooltipTextSize = props.tooltipTextSize, tooltipTitle = props.tooltipTitle, tooltipTitleSize = props.tooltipTitleSize, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onClick = props.onClick;
213
213
  var tooltipRef = useRef(null);
214
214
  var onMouseEnterLabel = useCallback(function () {
215
215
  var _a;
@@ -227,7 +227,7 @@ function Label(props) {
227
227
  var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
228
228
  // @ts-expect-error
229
229
  var labelStyles = useStyles(props).styles;
230
- return (jsxs("div", { className: clsx(className, 'label', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "label_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "label_size_".concat(sizeClass), wrapClass && "'word-wrap_".concat(wrapClass), widthClass && "label_width_".concat(widthClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), type && "label_type_".concat(type), set && "label_set_".concat(set), mode && "label_mode_".concat(mode), onClick && (cursor || 'cursor_type_pointer')), "data-tour": dataTour, style: labelStyles, onClick: onClick, onMouseEnter: onMouseEnterLabel, onMouseLeave: onMouseLeaveLabel, children: [before, jsxs("div", { className: "label__inner", children: [typeof label === 'string' ? (jsx(Text, { className: "label__text", textColor: labelTextColor, textColorHover: labelTextColorHover, textWeight: labelTextWeight, textWrap: labelTextWrap, size: labelTextSize, children: label })) : (jsx("div", { className: "label__text", children: label })), children, showTooltip && (jsx(Tooltip, { className: "label__tooltip", appearance: tooltipAppearance, alignment: tooltipAlignment, text: tooltipText, textSize: tooltipTextSize, title: tooltipTitle, titleSize: tooltipTitleSize, arrowPosition: tooltipArrowPosition, ref: tooltipRef, children: tooltipContent }))] }), after] }));
230
+ return (jsxs("div", { className: clsx(className, 'label', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "label_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "label_size_".concat(sizeClass), wrapClass && "'word-wrap_".concat(wrapClass), widthClass && "label_width_".concat(widthClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), type && "label_type_".concat(type), mode && "label_mode_".concat(mode), isSkeleton && "label_skeleton", onClick && (cursor || 'cursor_type_pointer')), "data-tour": dataTour, style: labelStyles, onClick: onClick, onMouseEnter: onMouseEnterLabel, onMouseLeave: onMouseLeaveLabel, children: [before, jsxs("div", { className: "label__inner", children: [typeof label === 'string' ? (jsx(Text, { className: "label__text", textColor: labelTextColor, textColorHover: labelTextColorHover, textWeight: labelTextWeight, textWrap: labelTextWrap, size: labelTextSize, children: label })) : (jsx("div", { className: "label__text", children: label })), children, showTooltip && (jsx(Tooltip, { className: "label__tooltip", appearance: tooltipAppearance, alignment: tooltipAlignment, text: tooltipText, textSize: tooltipTextSize, title: tooltipTitle, titleSize: tooltipTitleSize, arrowPosition: tooltipArrowPosition, ref: tooltipRef, children: tooltipContent }))] }), after] }));
231
231
  }
232
232
 
233
233
  export { Label as L, labelAppearance as a, labelConfig as l };
@@ -6,21 +6,21 @@ import { useStyles } from './hooks/useStyles/useStyles.js';
6
6
  import { T as Text } from './Text-C6NSmetx.js';
7
7
 
8
8
  var loaderAppearanceAccent = {
9
- accent: {
9
+ accentPrimary: {
10
10
  fill: 'accentPrimary',
11
11
  itemFill: 'accentItemPrimary',
12
12
  },
13
13
  };
14
14
 
15
15
  var loaderAppearancePrimary = {
16
- primary: {
16
+ primaryPrimary: {
17
17
  fill: 'primaryPrimary',
18
18
  itemFill: 'primaryItemPrimary',
19
19
  },
20
20
  };
21
21
 
22
22
  var loaderAppearanceSecondary = {
23
- secondary: {
23
+ secondaryPrimary: {
24
24
  fill: 'secondaryPrimary',
25
25
  itemFill: 'secondaryItemPrimary',
26
26
  },
@@ -50,16 +50,16 @@ var loaderConfig = {
50
50
  },
51
51
  };
52
52
  function Loader(props) {
53
- var className = props.className, type = props.type, appearance = props.appearance, children = props.children, text = props.text;
53
+ var className = props.className, type = props.type, appearance = props.appearance, children = props.children, text = props.text, isSkeleton = props.isSkeleton;
54
54
  var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultApperance, appearance) {
55
55
  var _a;
56
56
  return (__assign(__assign({}, resultApperance), (_a = loaderConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearance]));
57
57
  }, {});
58
58
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
59
- var fillClass = propsGenerator.fillClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, heightClass = propsGenerator.heightClass, itemFillClass = propsGenerator.itemFillClass, positionClass = propsGenerator.positionClass, widthClass = propsGenerator.widthClass;
59
+ var fillClass = propsGenerator.fillClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, heightClass = propsGenerator.heightClass, itemFillClass = propsGenerator.itemFillClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
60
60
  // @ts-expect-error
61
61
  var loader = useStyles(props).styles;
62
- return (jsxs("div", { className: clsx('loader', positionClass && "position_".concat(positionClass), widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), fillClass && "fill_".concat(fillClass), className, type && "loader_type_".concat(type)), style: loader, children: [children || (jsxs("div", { className: "loader__inner", children: [jsx("span", { className: clsx('loader__item', itemFillClass && "fill_".concat(itemFillClass)) }), jsx("span", { className: clsx('loader__item', itemFillClass && "fill_".concat(itemFillClass)) }), jsx("span", { className: clsx('loader__item', itemFillClass && "fill_".concat(itemFillClass)) })] })), text && (jsx(Text, { className: "loader__text", textColor: textColor, size: textSize, children: text }))] }));
62
+ return (jsxs("div", { className: clsx('loader', className, widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), fillClass && "fill_".concat(fillClass), sizeClass && "loader_size_".concat(sizeClass), isSkeleton && "loader_skeleton", type && "loader_type_".concat(type)), style: loader, children: [children || (jsxs("div", { className: "loader__inner", children: [jsx("span", { className: clsx('loader__item', itemFillClass && "fill_".concat(itemFillClass)) }), jsx("span", { className: clsx('loader__item', itemFillClass && "fill_".concat(itemFillClass)) }), jsx("span", { className: clsx('loader__item', itemFillClass && "fill_".concat(itemFillClass)) })] })), text && (jsx(Text, { className: "loader__text", textColor: textColor, size: textSize, children: text }))] }));
63
63
  }
64
64
 
65
65
  export { Loader as L, loaderAppearance as a, loaderConfig as l };
@@ -8,21 +8,21 @@ var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
8
8
  var Text = require('./Text-C49zj3jO.js');
9
9
 
10
10
  var loaderAppearanceAccent = {
11
- accent: {
11
+ accentPrimary: {
12
12
  fill: 'accentPrimary',
13
13
  itemFill: 'accentItemPrimary',
14
14
  },
15
15
  };
16
16
 
17
17
  var loaderAppearancePrimary = {
18
- primary: {
18
+ primaryPrimary: {
19
19
  fill: 'primaryPrimary',
20
20
  itemFill: 'primaryItemPrimary',
21
21
  },
22
22
  };
23
23
 
24
24
  var loaderAppearanceSecondary = {
25
- secondary: {
25
+ secondaryPrimary: {
26
26
  fill: 'secondaryPrimary',
27
27
  itemFill: 'secondaryItemPrimary',
28
28
  },
@@ -52,16 +52,16 @@ var loaderConfig = {
52
52
  },
53
53
  };
54
54
  function Loader(props) {
55
- var className = props.className, type = props.type, appearance = props.appearance, children = props.children, text = props.text;
55
+ var className = props.className, type = props.type, appearance = props.appearance, children = props.children, text = props.text, isSkeleton = props.isSkeleton;
56
56
  var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultApperance, appearance) {
57
57
  var _a;
58
58
  return (tslib_es6.__assign(tslib_es6.__assign({}, resultApperance), (_a = loaderConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearance]));
59
59
  }, {});
60
60
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
61
- var fillClass = propsGenerator.fillClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, heightClass = propsGenerator.heightClass, itemFillClass = propsGenerator.itemFillClass, positionClass = propsGenerator.positionClass, widthClass = propsGenerator.widthClass;
61
+ var fillClass = propsGenerator.fillClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, heightClass = propsGenerator.heightClass, itemFillClass = propsGenerator.itemFillClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
62
62
  // @ts-expect-error
63
63
  var loader = useStyles.useStyles(props).styles;
64
- return (jsxRuntime.jsxs("div", { className: clsx('loader', positionClass && "position_".concat(positionClass), widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), fillClass && "fill_".concat(fillClass), className, type && "loader_type_".concat(type)), style: loader, children: [children || (jsxRuntime.jsxs("div", { className: "loader__inner", children: [jsxRuntime.jsx("span", { className: clsx('loader__item', itemFillClass && "fill_".concat(itemFillClass)) }), jsxRuntime.jsx("span", { className: clsx('loader__item', itemFillClass && "fill_".concat(itemFillClass)) }), jsxRuntime.jsx("span", { className: clsx('loader__item', itemFillClass && "fill_".concat(itemFillClass)) })] })), text && (jsxRuntime.jsx(Text.Text, { className: "loader__text", textColor: textColor, size: textSize, children: text }))] }));
64
+ return (jsxRuntime.jsxs("div", { className: clsx('loader', className, widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), fillClass && "fill_".concat(fillClass), sizeClass && "loader_size_".concat(sizeClass), isSkeleton && "loader_skeleton", type && "loader_type_".concat(type)), style: loader, children: [children || (jsxRuntime.jsxs("div", { className: "loader__inner", children: [jsxRuntime.jsx("span", { className: clsx('loader__item', itemFillClass && "fill_".concat(itemFillClass)) }), jsxRuntime.jsx("span", { className: clsx('loader__item', itemFillClass && "fill_".concat(itemFillClass)) }), jsxRuntime.jsx("span", { className: clsx('loader__item', itemFillClass && "fill_".concat(itemFillClass)) })] })), text && (jsxRuntime.jsx(Text.Text, { className: "loader__text", textColor: textColor, size: textSize, children: text }))] }));
65
65
  }
66
66
 
67
67
  exports.Loader = Loader;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var Badge = require('../../Badge-BX4N91_C.js');
3
+ var Badge = require('../../Badge-C6SNRExV.js');
4
4
  require('../../tslib.es6-CCZ3TN_7.js');
5
5
  require('react/jsx-runtime');
6
6
  require('clsx');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var Button = require('../../Button-HKkjJ38v.js');
3
+ var Button = require('../../Button-WZZpsxTk.js');
4
4
  require('../../tslib.es6-CCZ3TN_7.js');
5
5
  require('react/jsx-runtime');
6
6
  require('react');
@@ -22,7 +22,7 @@ require('../../Link-B38Hn4G2.js');
22
22
  require('../../Tooltip-DpBQQoNo.js');
23
23
  require('../../Text-C49zj3jO.js');
24
24
  require('../../Title-BWWyRwLY.js');
25
- require('../../Loader-CBEbIRnd.js');
25
+ require('../../Loader-DpYaDhe9.js');
26
26
 
27
27
 
28
28
 
@@ -5,7 +5,7 @@ var clsx = require('clsx');
5
5
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
6
6
  var useStyles = require('../hooks/useStyles/useStyles.js');
7
7
  var Icon = require('../../Icon-GVGrUu_Z.js');
8
- var Label = require('../../Label-XTFwl1aq.js');
8
+ var Label = require('../../Label-DF2a2Mlx.js');
9
9
  var Text = require('../../Text-C49zj3jO.js');
10
10
  require('../../tslib.es6-CCZ3TN_7.js');
11
11
  require('react');
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
+ var tslib_es6 = require('../../tslib.es6-CCZ3TN_7.js');
3
4
  var jsxRuntime = require('react/jsx-runtime');
4
5
  var clsx = require('clsx');
5
6
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
6
7
  var Text = require('../../Text-C49zj3jO.js');
7
- require('../../tslib.es6-CCZ3TN_7.js');
8
8
  require('react');
9
9
  require('lodash/camelCase');
10
10
  require('lodash/castArray');
@@ -39,18 +39,20 @@ var checkboxState = {
39
39
 
40
40
  var checkboxConfig = {
41
41
  appearance: checkboxAppearance,
42
- setAppearance: function (newComponent) {
43
- checkboxConfig.appearance = newComponent;
44
- },
45
42
  state: checkboxState,
46
- // eslint-disable-next-line perfectionist/sort-objects
47
- setState: function (newComponent) {
48
- checkboxConfig.state = newComponent;
43
+ setAppearance: function (appearanceConfig) {
44
+ checkboxConfig.appearance = appearanceConfig;
45
+ },
46
+ setState: function (appearanceConfig) {
47
+ checkboxConfig.state = appearanceConfig;
49
48
  },
50
49
  };
51
50
  function Checkbox(props) {
52
- var id = props.id, after = props.after, appearance = props.appearance, before = props.before, checked = props.checked, className = props.className, desc = props.desc, descTextColor = props.descTextColor, descTextSize = props.descTextSize, descTextWeight = props.descTextWeight, disabled = props.disabled, label = props.label, labelTextColor = props.labelTextColor, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, _a = props.Tag, Tag = _a === void 0 ? 'label' : _a, value = props.value, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
53
- var appearanceConfig = checkboxConfig.appearance && checkboxConfig.appearance[appearance];
51
+ var id = props.id, className = props.className, appearance = props.appearance, label = props.label, labelTextColor = props.labelTextColor, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, desc = props.desc, descTextColor = props.descTextColor, descTextSize = props.descTextSize, descTextWeight = props.descTextWeight, disabled = props.disabled, checked = props.checked, _a = props.Tag, Tag = _a === void 0 ? 'label' : _a, value = props.value, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
52
+ var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultAppearance, appearance) {
53
+ var _a;
54
+ return (tslib_es6.__assign(tslib_es6.__assign({}, resultAppearance), (_a = checkboxConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearance]));
55
+ }, {});
54
56
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
55
57
  var fillClass = propsGenerator.fillClass, shapeClass = propsGenerator.shapeClass, stateBorderWidthClass = propsGenerator.stateBorderWidthClass, stateShapeClass = propsGenerator.stateShapeClass, widthClass = propsGenerator.widthClass;
56
58
  var stateFillClass = propsGenerator.getClassName(checked ? 'stateFillChecked' : 'stateFill', {
@@ -60,7 +62,7 @@ function Checkbox(props) {
60
62
  var stateCheckmarkFillClass = propsGenerator.getClassName(disabled ? 'stateCheckmarkFillDisabled' : 'stateCheckmarkFill', { prefix: 'checkbox_checkmark_fill_' });
61
63
  var stateBorderColorClass = propsGenerator.getClassName(checked ? 'stateBorderColorChecked' : 'stateBorderColor', { prefix: 'border-color_' });
62
64
  var stateBorderColorDisabledClass = propsGenerator.getClassName(checked ? 'stateBorderColorDisabledChecked' : 'stateBorderColorDisabled', { prefix: 'border-color_' });
63
- return (jsxRuntime.jsxs(Tag, { className: clsx(className, 'checkbox', fillClass && "fill_".concat(fillClass), shapeClass && "checkbox_shape_".concat(shapeClass), widthClass && "width_".concat(widthClass)), htmlFor: Tag === 'label' && id, children: [before, jsxRuntime.jsxs("div", { className: clsx('checkbox__item', stateCheckmarkFillClass), children: [jsxRuntime.jsx("input", { className: "checkbox__input", checked: checked, disabled: disabled,
65
+ return (jsxRuntime.jsxs(Tag, { className: clsx(className, 'checkbox', fillClass && "fill_".concat(fillClass), shapeClass && "checkbox_shape_".concat(shapeClass), widthClass && "width_".concat(widthClass), isSkeleton && "checkbox_skeleton"), htmlFor: Tag === 'label' && id, children: [before, jsxRuntime.jsxs("div", { className: clsx('checkbox__item', stateCheckmarkFillClass), children: [jsxRuntime.jsx("input", { className: "checkbox__input", checked: checked, disabled: disabled,
64
66
  // @ts-expect-error
65
67
  id: id, type: "checkbox", value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus }), jsxRuntime.jsx("div", { className: clsx('checkbox__state', disabled ? stateFillDisabledClass : stateFillClass, disabled ? stateBorderColorDisabledClass : stateBorderColorClass, stateShapeClass && "checkbox__state_shape_".concat(stateShapeClass), stateBorderWidthClass && "border-width_".concat(stateBorderWidthClass)), children: "\u00A0" }), jsxRuntime.jsx("div", { className: "checkbox__state-checkmark", children: "\u00A0" })] }), label && (jsxRuntime.jsx(Text.Text, { className: "checkbox__label", size: labelTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextSize), textColor: labelTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextColor), textWeight: labelTextWeight, children: label })), desc && (jsxRuntime.jsx(Text.Text, { className: "checkbox__desc", size: descTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.descTextSize), textColor: descTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.descTextColor), textWeight: descTextWeight, children: desc })), after && jsxRuntime.jsx("div", { className: "checkbox__after", children: after })] }));
66
68
  }
@@ -16,27 +16,53 @@ require('../utils/setViewportProperty.js');
16
16
  require('lodash/maxBy');
17
17
  require('../hooks/useStyles/styleAttributes.js');
18
18
 
19
- var checkmarkAppearance = {
19
+ var checkmarkAppearanceAccent = {
20
20
  accent: {
21
21
  fill: 'accentPrimary',
22
22
  borderColor: 'accentBorderPrimary',
23
- borderWidth: '4',
23
+ borderWidth: '2',
24
24
  checkmarkFill: 'accentItemPrimary',
25
25
  },
26
+ };
27
+
28
+ var checkmarkAppearanceDisabled = {
26
29
  disabled: {
27
- fill: 'surfaceItemSecondary',
28
- borderColor: 'surfaceBorderTertiary',
29
- borderWidth: '4',
30
- checkmarkFill: '#surfaceItemSecondary',
30
+ fill: 'surfaceDisabled',
31
+ borderColor: 'surfaceBorderDisabled',
32
+ borderWidth: '2',
33
+ checkmarkFill: 'surfaceItemDisabled',
34
+ },
35
+ };
36
+
37
+ var checkmarkAppearanceStyle = {
38
+ full: {
39
+ borderColor: null,
31
40
  },
41
+ ghost: {
42
+ fill: null,
43
+ borderColor: null,
44
+ },
45
+ outlined: {
46
+ fill: null,
47
+ },
48
+ solid: {
49
+ borderColor: null,
50
+ },
51
+ };
52
+
53
+ var checkmarkAppearanceSurface = {
32
54
  surface: {
33
55
  fill: 'surfacePrimary',
56
+ fillHover: 'surfaceHover',
34
57
  borderColor: 'surfaceBorderTertiary',
35
- borderWidth: '4',
58
+ borderColorHover: 'surfaceBorderPrimary',
59
+ borderWidth: '2',
36
60
  checkmarkFill: 'surfaceItemPrimary',
37
61
  },
38
62
  };
39
63
 
64
+ var checkmarkAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, checkmarkAppearanceAccent), checkmarkAppearanceDisabled), checkmarkAppearanceStyle), checkmarkAppearanceSurface);
65
+
40
66
  var checkmarkConfig = {
41
67
  appearance: checkmarkAppearance,
42
68
  setAppearance: function (appearanceConfig) {
@@ -50,10 +76,11 @@ function Checkmark(props) {
50
76
  return (tslib_es6.__assign(tslib_es6.__assign({}, resultApperance), (_a = checkmarkConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearance]));
51
77
  }, {});
52
78
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
53
- var fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderWidthClass = propsGenerator.borderWidthClass, checkmarkFillClass = propsGenerator.checkmarkFillClass, sizeClass = propsGenerator.sizeClass;
79
+ var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderWidthClass = propsGenerator.borderWidthClass, checkmarkFillClass = propsGenerator.checkmarkFillClass, sizeClass = propsGenerator.sizeClass;
54
80
  // @ts-expect-error
55
81
  var checkmarkStyles = useStyles.useStyles(props).styles;
56
- return (jsxRuntime.jsx("div", { className: clsx(className, 'checkmark', sizeClass && "checkmark_size_".concat(sizeClass), fillClass && "fill_".concat(fillClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), isDisabled), style: checkmarkStyles, onClick: onClick, children: isChecked && (jsxRuntime.jsx("div", { className: clsx('checkmark__icon', "svg_fill_".concat(checkmarkFillClass)), children: jsxRuntime.jsx("svg", { width: "32", height: "24", fill: "none", viewBox: "0 0 32 24", xmlns: "http://www.w3.org/2000/svg", children: jsxRuntime.jsx("path", { fill: "none", d: "M28.0896 0.706312L11.4967 18.1772L3.9104 10.1895C3.01576 9.24775 1.56549 9.24775 0.670845 10.1895C-0.223615 11.1315 -0.223615 12.6585 0.670845 13.6005L9.87695 23.2936C10.3243 23.7644 10.9105 24 11.4967 24C12.083 24 12.6692 23.7644 13.1165 23.2936L31.3292 4.11744C32.2236 3.17547 32.2236 1.64848 31.3292 0.706504C30.4345 -0.235469 28.9841 -0.235469 28.0896 0.706312Z" }) }) })) }));
82
+ return (jsxRuntime.jsx("div", { className: clsx(className, 'checkmark', sizeClass && "checkmark_size_".concat(sizeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_".concat(fillHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderColorHoverClass &&
83
+ "border-color_hover_".concat(borderColorHoverClass), borderColorClass && "border-color_".concat(borderColorClass), isDisabled), style: checkmarkStyles, onClick: onClick, children: isChecked && (jsxRuntime.jsx("div", { className: clsx('checkmark__icon', "svg_fill_".concat(checkmarkFillClass)), children: jsxRuntime.jsx("svg", { width: "32", height: "24", fill: "none", viewBox: "0 0 32 24", xmlns: "http://www.w3.org/2000/svg", children: jsxRuntime.jsx("path", { fill: "none", d: "M28.0896 0.706312L11.4967 18.1772L3.9104 10.1895C3.01576 9.24775 1.56549 9.24775 0.670845 10.1895C-0.223615 11.1315 -0.223615 12.6585 0.670845 13.6005L9.87695 23.2936C10.3243 23.7644 10.9105 24 11.4967 24C12.083 24 12.6692 23.7644 13.1165 23.2936L31.3292 4.11744C32.2236 3.17547 32.2236 1.64848 31.3292 0.706504C30.4345 -0.235469 28.9841 -0.235469 28.0896 0.706312Z" }) }) })) }));
57
84
  }
58
85
 
59
86
  exports.Checkmark = Checkmark;
@@ -68,18 +68,18 @@ var chipsConfig = {
68
68
  },
69
69
  };
70
70
  function Chips(props) {
71
- var className = props.className, appearance = props.appearance, children = props.children, _a = props.label, label = _a === void 0 ? '' : _a, dataTestId = props.dataTestId, dataTour = props.dataTour, iconAfter = props.iconAfter, iconAfterSrc = props.iconAfterSrc, iconBefore = props.iconBefore, iconBeforeSrc = props.iconBeforeSrc, isActive = props.isActive, onClick = props.onClick;
71
+ var className = props.className, appearance = props.appearance, _a = props.label, label = _a === void 0 ? '' : _a, dataTestId = props.dataTestId, dataTour = props.dataTour, iconAfter = props.iconAfter, iconAfterSrc = props.iconAfterSrc, iconBefore = props.iconBefore, iconBeforeSrc = props.iconBeforeSrc, isActive = props.isActive, onClick = props.onClick, children = props.children;
72
72
  var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultApperance, appearance) {
73
73
  var _a;
74
74
  return (tslib_es6.__assign(tslib_es6.__assign({}, resultApperance), (_a = chipsConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearance]));
75
75
  }, {});
76
76
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
77
- var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextColor = propsGenerator.labelTextColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, cursorClass = propsGenerator.cursorClass, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, isDisabled = propsGenerator.isDisabled;
77
+ var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextColor = propsGenerator.labelTextColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, cursorClass = propsGenerator.cursorClass, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, isDisabled = propsGenerator.isDisabled;
78
78
  // @ts-expect-error
79
79
  var chipsStyles = useStyles.useStyles(props).styles;
80
80
  return (jsxRuntime.jsx("div", { className: clsx(className, 'chips', isActive && 'chips_state_active', isActive
81
81
  ? fillActiveClass && "fill_active_".concat(fillActiveClass)
82
- : fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "chips_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "chips_size_".concat(sizeClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), isDisabled && "chips_state_disabled", cursorClass && "cursor_".concat(cursorClass), onClick && 'cursor_type_pointer'), "data-testid": dataTestId && "".concat(dataTestId, "Button"), "data-tour": dataTour, style: chipsStyles, onClick: onClick, children: jsxRuntime.jsxs("div", { className: "chips__inner", children: [(iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "chips__icon_before", fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, size: iconBeforeSize, SvgImage: iconBefore })), typeof label === 'string' ? (jsxRuntime.jsx(Text.Text, { className: "chips__label", textColor: isActive ? labelTextActiveColor : labelTextColor, textWeight: labelTextWeight, textWrap: labelTextWrap, size: labelTextSize, children: label })) : (jsxRuntime.jsx("div", { className: "chips__label", children: label })), children, (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "chips__icon_after", fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, size: iconAfterSize, SvgImage: iconAfter }))] }) }));
82
+ : fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "chips_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "chips_size_".concat(sizeClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), isDisabled && "chips_state_disabled", cursorClass && "cursor_".concat(cursorClass), onClick && 'cursor_type_pointer'), "data-testid": dataTestId && "".concat(dataTestId, "Button"), "data-tour": dataTour, style: chipsStyles, onClick: !isDisabled ? onClick : undefined, children: jsxRuntime.jsxs("div", { className: "chips__inner", children: [(iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "chips__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), typeof label === 'string' ? (jsxRuntime.jsx(Text.Text, { className: "chips__label", size: labelTextSize, textColor: isActive ? labelTextActiveColor : labelTextColor, textWeight: labelTextWeight, textWrap: labelTextWrap, children: label })) : (jsxRuntime.jsx("div", { className: "chips__label", children: label })), children, (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "chips__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] }) }));
83
83
  }
84
84
 
85
85
  exports.Chips = Chips;