@itcase/ui 1.8.9 → 1.8.10

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 (93) hide show
  1. package/dist/{Badge_cjs_DrG2tUjI.js → Badge_cjs_CeqDdbMs.js} +1 -1
  2. package/dist/{Badge_es_Bx0NsdST.js → Badge_es_uDX0eyDM.js} +1 -1
  3. package/dist/{Button_cjs_B7OmqizJ.js → Button_cjs_BKQLT7oE.js} +1 -1
  4. package/dist/{Button_es_CBbHMy1v.js → Button_es_H15aBFcg.js} +1 -1
  5. package/dist/{Icon_cjs_DSzfNqif.js → Icon_cjs_BaWMPaAR.js} +1 -1
  6. package/dist/{Icon_es_BBmoZ7_3.js → Icon_es_B0sySEUu.js} +1 -1
  7. package/dist/{Input_cjs_C8RWS1SD.js → Input_cjs_BAVggtkk.js} +5 -5
  8. package/dist/{Input_es_FXxp51gq.js → Input_es_CNduH28G.js} +5 -5
  9. package/dist/{Label_cjs_BCjB-mxC.js → Label_cjs_CbcENlSZ.js} +1 -1
  10. package/dist/{Label_es_CZpanSdR.js → Label_es_BCpDqP3q.js} +1 -1
  11. package/dist/{Title_cjs_iuyln-ab.js → Title_cjs_ByPcFb15.js} +4 -25
  12. package/dist/{Title_es_ke3YylFm.js → Title_es_eejUqSJf.js} +4 -25
  13. package/dist/{Tooltip_cjs_CTwksdFk.js → Tooltip_cjs_CY4HOzhz.js} +1 -1
  14. package/dist/{Tooltip_es_H976MIb7.js → Tooltip_es_B9hN4Zlm.js} +1 -1
  15. package/dist/cjs/components/Accordion.js +3 -3
  16. package/dist/cjs/components/Avatar.js +3 -3
  17. package/dist/cjs/components/Badge.js +4 -4
  18. package/dist/cjs/components/Breadcrumbs.js +3 -3
  19. package/dist/cjs/components/Button.js +4 -4
  20. package/dist/cjs/components/Cell.js +4 -4
  21. package/dist/cjs/components/Checkbox.js +150 -22
  22. package/dist/cjs/components/Chips.js +11 -5
  23. package/dist/cjs/components/Choice.js +3 -3
  24. package/dist/cjs/components/CookiesWarning.js +4 -4
  25. package/dist/cjs/components/DadataHintField.js +1 -1
  26. package/dist/cjs/components/DatePicker.js +65 -100
  27. package/dist/cjs/components/HeroTitle.js +9 -19
  28. package/dist/cjs/components/Icon.js +3 -3
  29. package/dist/cjs/components/Input.js +1 -1
  30. package/dist/cjs/components/InputPassword.js +3 -3
  31. package/dist/cjs/components/Label.js +3 -3
  32. package/dist/cjs/components/Modal.js +1 -1
  33. package/dist/cjs/components/Pagination.js +3 -3
  34. package/dist/cjs/components/Response.js +4 -4
  35. package/dist/cjs/components/Search.js +3 -3
  36. package/dist/cjs/components/Select.js +7 -7
  37. package/dist/cjs/components/Swiper.js +1 -1
  38. package/dist/cjs/components/Tab.js +4 -4
  39. package/dist/cjs/components/Tile.js +4 -4
  40. package/dist/cjs/components/Title.js +5 -5
  41. package/dist/cjs/components/Tooltip.js +2 -2
  42. package/dist/cjs/hooks/useStyles/useStyles.js +3 -0
  43. package/dist/components/Accordion.js +3 -3
  44. package/dist/components/Avatar.js +3 -3
  45. package/dist/components/Badge.js +4 -4
  46. package/dist/components/Breadcrumbs.js +3 -3
  47. package/dist/components/Button.js +4 -4
  48. package/dist/components/Cell.js +4 -4
  49. package/dist/components/Checkbox.js +151 -22
  50. package/dist/components/Chips.js +11 -5
  51. package/dist/components/Choice.js +3 -3
  52. package/dist/components/CookiesWarning.js +4 -4
  53. package/dist/components/DadataHintField.js +1 -1
  54. package/dist/components/DatePicker.js +65 -100
  55. package/dist/components/HeroTitle.js +9 -19
  56. package/dist/components/Icon.js +3 -3
  57. package/dist/components/Input.js +1 -1
  58. package/dist/components/InputPassword.js +3 -3
  59. package/dist/components/Label.js +3 -3
  60. package/dist/components/Modal.js +1 -1
  61. package/dist/components/Pagination.js +3 -3
  62. package/dist/components/Response.js +4 -4
  63. package/dist/components/Search.js +3 -3
  64. package/dist/components/Select.js +7 -7
  65. package/dist/components/Swiper.js +1 -1
  66. package/dist/components/Tab.js +4 -4
  67. package/dist/components/Tile.js +4 -4
  68. package/dist/components/Title.js +5 -5
  69. package/dist/components/Tooltip.js +2 -2
  70. package/dist/css/components/Checkbox/Checkbox.css +3 -0
  71. package/dist/css/components/HeroTitle/HeroTitle.css +20 -16
  72. package/dist/css/components/Select/Select.css +9 -0
  73. package/dist/css/components/Textarea/Textarea.css +2 -0
  74. package/dist/css/components/Title/Title.css +20 -16
  75. package/dist/css/styles/placeholder-text-color/placeholder-text-color.css +1 -1
  76. package/dist/hooks/useStyles/useStyles.js +3 -0
  77. package/dist/types/components/Checkbox/Checkbox.appearance.d.ts +1 -2
  78. package/dist/types/components/Checkbox/Checkbox.interface.d.ts +1 -2
  79. package/dist/types/components/Checkbox/appearance/checkboxDefault.d.ts +26 -0
  80. package/dist/types/components/Checkbox/appearance/checkboxDisabled.d.ts +20 -0
  81. package/dist/types/components/Checkbox/appearance/checkboxError.d.ts +20 -0
  82. package/dist/types/components/Checkbox/appearance/checkboxRequire.d.ts +20 -0
  83. package/dist/types/components/Checkbox/appearance/checkboxSize.d.ts +31 -0
  84. package/dist/types/components/Checkbox/appearance/checkboxStyle.d.ts +14 -0
  85. package/dist/types/components/Checkbox/appearance/checkboxSuccess.d.ts +20 -0
  86. package/dist/types/components/Checkbox/index.d.ts +1 -1
  87. package/dist/types/components/Chips/appearance/chipsSize.d.ts +6 -1
  88. package/dist/types/components/Chips/appearance/chipsSurface.d.ts +1 -0
  89. package/dist/types/components/DatePicker/DatePicker.appearance.d.ts +30 -55
  90. package/dist/types/components/DatePicker/appearance/datePickerSize.d.ts +18 -33
  91. package/dist/types/components/DatePicker/appearance/datePickerSurface.d.ts +12 -22
  92. package/dist/types/components/Input/appearance/inputDefault.d.ts +5 -5
  93. package/package.json +1 -1
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
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_DSzfNqif.js');
8
+ var Icon = require('./Icon_cjs_BaWMPaAR.js');
9
9
  var Text = require('./Text_cjs_D4xG0cKD.js');
10
10
 
11
11
  var badgeAppearanceAccent = {
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
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 } from './Icon_es_BBmoZ7_3.js';
6
+ import { I as Icon } from './Icon_es_B0sySEUu.js';
7
7
  import { T as Text } from './Text_es_FJGduy7Z.js';
8
8
 
9
9
  var badgeAppearanceAccent = {
@@ -4,7 +4,7 @@ var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
  var React = require('react');
6
6
  var clsx = require('clsx');
7
- var Icon = require('./Icon_cjs_DSzfNqif.js');
7
+ var Icon = require('./Icon_cjs_BaWMPaAR.js');
8
8
  var Link = require('./Link_cjs_yht44xJv.js');
9
9
  var Loader = require('./Loader_cjs_D753D3li.js');
10
10
  var Text = require('./Text_cjs_D4xG0cKD.js');
@@ -2,7 +2,7 @@ import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import React from 'react';
4
4
  import clsx from 'clsx';
5
- import { I as Icon } from './Icon_es_BBmoZ7_3.js';
5
+ import { I as Icon } from './Icon_es_B0sySEUu.js';
6
6
  import { a as LinkWrapper } from './Link_es_DkW06IM-.js';
7
7
  import { L as Loader } from './Loader_es_BE4nyzXi.js';
8
8
  import { T as Text } from './Text_es_FJGduy7Z.js';
@@ -8,7 +8,7 @@ var SVG = require('react-inlinesvg');
8
8
  var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
9
9
  var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
10
10
  var Link = require('./Link_cjs_yht44xJv.js');
11
- var Tooltip = require('./Tooltip_cjs_CTwksdFk.js');
11
+ var Tooltip = require('./Tooltip_cjs_CY4HOzhz.js');
12
12
 
13
13
  var iconAppearance = {
14
14
  accent: {
@@ -6,7 +6,7 @@ import SVG from 'react-inlinesvg';
6
6
  import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
7
  import { useStyles } from './hooks/useStyles/useStyles.js';
8
8
  import { a as LinkWrapper } from './Link_es_DkW06IM-.js';
9
- import { T as Tooltip } from './Tooltip_es_H976MIb7.js';
9
+ import { T as Tooltip } from './Tooltip_es_B9hN4Zlm.js';
10
10
 
11
11
  var iconAppearance = {
12
12
  accent: {
@@ -11,22 +11,22 @@ var inputAppearanceDefault = {
11
11
  fill: 'surfaceSecondary',
12
12
  borderColor: 'surfaceBorderTertiary',
13
13
  borderHover: 'surfaceBorderQuaternary',
14
- iconBeforeFill: 'surfaceItemQuaternary',
15
- iconClearFill: 'surfaceItemPrimary',
16
14
  textColor: 'surfaceTextPrimary',
17
15
  textColorDisabled: 'surfaceTextDisabled',
18
16
  caret: 'secondaryItemSecondary',
17
+ iconBeforeFill: 'surfaceItemQuaternary',
18
+ iconClearFill: 'surfaceItemPrimary',
19
19
  },
20
20
  defaultSecondary: {
21
21
  fill: 'surfacePrimary',
22
22
  borderColor: 'surfaceBorderTertiary',
23
23
  borderHover: 'surfaceBorderQuaternary',
24
- iconBeforeFill: 'surfaceItemQuaternary',
25
- iconClearFill: 'surfaceItemPrimary',
26
- placeholderTextColor: 'surfaceTextSecondary',
27
24
  textColor: 'surfaceTextPrimary',
28
25
  textColorDisabled: 'surfaceTextDisabled',
29
26
  caret: 'secondaryItemSecondary',
27
+ iconBeforeFill: 'surfaceItemQuaternary',
28
+ iconClearFill: 'surfaceItemPrimary',
29
+ placeholderTextColor: 'surfaceTextQuaternary',
30
30
  },
31
31
  };
32
32
 
@@ -9,22 +9,22 @@ var inputAppearanceDefault = {
9
9
  fill: 'surfaceSecondary',
10
10
  borderColor: 'surfaceBorderTertiary',
11
11
  borderHover: 'surfaceBorderQuaternary',
12
- iconBeforeFill: 'surfaceItemQuaternary',
13
- iconClearFill: 'surfaceItemPrimary',
14
12
  textColor: 'surfaceTextPrimary',
15
13
  textColorDisabled: 'surfaceTextDisabled',
16
14
  caret: 'secondaryItemSecondary',
15
+ iconBeforeFill: 'surfaceItemQuaternary',
16
+ iconClearFill: 'surfaceItemPrimary',
17
17
  },
18
18
  defaultSecondary: {
19
19
  fill: 'surfacePrimary',
20
20
  borderColor: 'surfaceBorderTertiary',
21
21
  borderHover: 'surfaceBorderQuaternary',
22
- iconBeforeFill: 'surfaceItemQuaternary',
23
- iconClearFill: 'surfaceItemPrimary',
24
- placeholderTextColor: 'surfaceTextSecondary',
25
22
  textColor: 'surfaceTextPrimary',
26
23
  textColorDisabled: 'surfaceTextDisabled',
27
24
  caret: 'secondaryItemSecondary',
25
+ iconBeforeFill: 'surfaceItemQuaternary',
26
+ iconClearFill: 'surfaceItemPrimary',
27
+ placeholderTextColor: 'surfaceTextQuaternary',
28
28
  },
29
29
  };
30
30
 
@@ -7,7 +7,7 @@ var clsx = require('clsx');
7
7
  var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
8
8
  var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
9
9
  var Text = require('./Text_cjs_D4xG0cKD.js');
10
- var Tooltip = require('./Tooltip_cjs_CTwksdFk.js');
10
+ var Tooltip = require('./Tooltip_cjs_CY4HOzhz.js');
11
11
 
12
12
  var labelAppearanceAccent = {
13
13
  accent: {
@@ -5,7 +5,7 @@ import clsx from 'clsx';
5
5
  import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from './hooks/useStyles/useStyles.js';
7
7
  import { T as Text } from './Text_es_FJGduy7Z.js';
8
- import { T as Tooltip } from './Tooltip_es_H976MIb7.js';
8
+ import { T as Tooltip } from './Tooltip_es_B9hN4Zlm.js';
9
9
 
10
10
  var labelAppearanceAccent = {
11
11
  accent: {
@@ -4,8 +4,6 @@ var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
  var React = require('react');
6
6
  var clsx = require('clsx');
7
- require('./cjs/context/Notifications.js');
8
- var UIContext = require('./cjs/context/UIContext.js');
9
7
  var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
10
8
  var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
11
9
 
@@ -22,41 +20,22 @@ var titleConfig = {
22
20
  },
23
21
  };
24
22
  function Title(props) {
25
- var className = props.className, appearance = props.appearance, _a = props.size, size = _a === void 0 ? 'h3' : _a, text = props.text, textWrap = props.textWrap, afterWrapper = props.afterWrapper, beforeWrapper = props.beforeWrapper, dataTour = props.dataTour, sizeDesktop = props.sizeDesktop, sizeMobile = props.sizeMobile, sizeTablet = props.sizeTablet, _b = props.tag, tag = _b === void 0 ? 'span' : _b, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onClick = props.onClick, children = props.children;
26
- var _c = UIContext.useUserDeviceContext(), isMobile = _c.isMobile, isTablet = _c.isTablet, isDesktop = _c.isDesktop;
23
+ var className = props.className, appearance = props.appearance, text = props.text, afterWrapper = props.afterWrapper, beforeWrapper = props.beforeWrapper, dataTour = props.dataTour, _a = props.tag, tag = _a === void 0 ? 'span' : _a, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onClick = props.onClick, children = props.children;
27
24
  var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
28
25
  var _a;
29
26
  return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = titleConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
30
27
  }, {});
31
28
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
32
- var directionClass = propsGenerator.directionClass, fillClass = propsGenerator.fillClass, textAlignClass = propsGenerator.textAlignClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorGradientClass = propsGenerator.textColorGradientClass, textColorHoverClass = propsGenerator.textColorHoverClass, textStyleClass = propsGenerator.textStyleClass, textTruncateClass = propsGenerator.textTruncateClass, textWeightClass = propsGenerator.textWeightClass, dataTestId = propsGenerator.dataTestId, heightClass = propsGenerator.heightClass, svgFillClass = propsGenerator.svgFillClass, svgFillHoverClass = propsGenerator.svgFillHoverClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass, wrapperDirectionClass = propsGenerator.wrapperDirectionClass;
29
+ var directionClass = propsGenerator.directionClass, size = propsGenerator.size, fillClass = propsGenerator.fillClass, textAlignClass = propsGenerator.textAlignClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorGradientClass = propsGenerator.textColorGradientClass, textColorHoverClass = propsGenerator.textColorHoverClass, textStyleClass = propsGenerator.textStyleClass, textTruncateClass = propsGenerator.textTruncateClass, textWeightClass = propsGenerator.textWeightClass, textWrap = propsGenerator.textWrap, dataTestId = propsGenerator.dataTestId, heightClass = propsGenerator.heightClass, svgFillClass = propsGenerator.svgFillClass, svgFillHoverClass = propsGenerator.svgFillHoverClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass, wrapperDirectionClass = propsGenerator.wrapperDirectionClass;
33
30
  // @ts-expect-error
34
- var _d = useStyles.useStyles(props), titleStyles = _d.styles, titleWrapperStyles = _d.wrapper;
31
+ var _b = useStyles.useStyles(props), titleStyles = _b.styles, titleWrapperStyles = _b.wrapper;
35
32
  // Element type (h1, h2, ..., h6)
36
33
  var Tag = React.useMemo(function () {
37
34
  if (tag) {
38
35
  return tag;
39
36
  }
40
- if (isMobile && sizeMobile) {
41
- return sizeMobile;
42
- }
43
- if (isTablet && sizeTablet) {
44
- return sizeTablet;
45
- }
46
- if (isDesktop && sizeDesktop) {
47
- return sizeDesktop;
48
- }
49
37
  return size ? size : 'span';
50
- }, [
51
- tag,
52
- isMobile,
53
- sizeMobile,
54
- isTablet,
55
- sizeTablet,
56
- isDesktop,
57
- sizeDesktop,
58
- size,
59
- ]);
38
+ }, [tag, size]);
60
39
  return (jsxRuntime.jsxs(Tag, { className: clsx(className, 'title', fillClass && "fill_".concat(fillClass), svgFillClass && "svg_fill_".concat(svgFillClass), svgFillHoverClass && "svg_fill_hover_".concat(svgFillHoverClass), widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), size && "title_size_".concat(size), directionClass && "title_direction_".concat(directionClass), 'text', textColorClass && "text-color_".concat(textColorClass), textColorActiveClass && "text-color_active_".concat(textColorActiveClass), textColorHoverClass && "text-color_hover_".concat(textColorHoverClass), typeClass && "title_type_".concat(typeClass), textColorGradientClass && "text-gradient_".concat(textColorGradientClass), textStyleClass && "text-style_".concat(textStyleClass), textWeightClass && "text-weight_".concat(textWeightClass), textWrap && "word-wrap_".concat(textWrap), isSkeleton && 'title_skeleton'), "data-testid": dataTestId, "data-tour": dataTour, style: titleStyles, onClick: onClick, children: [before, jsxRuntime.jsxs("span", { className: clsx(textAlignClass && "text-align_".concat(textAlignClass), wrapperDirectionClass && "title-direction_".concat(wrapperDirectionClass), 'title__wrapper', textTruncateClass && "text-truncate_".concat(textTruncateClass)), style: titleWrapperStyles, children: [beforeWrapper, children || text, afterWrapper] }), after] }));
61
40
  }
62
41
 
@@ -2,8 +2,6 @@ import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
2
2
  import { jsxs } from 'react/jsx-runtime';
3
3
  import { useMemo } from 'react';
4
4
  import clsx from 'clsx';
5
- import './context/Notifications.js';
6
- import { useUserDeviceContext } from './context/UIContext.js';
7
5
  import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
6
  import { useStyles } from './hooks/useStyles/useStyles.js';
9
7
 
@@ -20,41 +18,22 @@ var titleConfig = {
20
18
  },
21
19
  };
22
20
  function Title(props) {
23
- var className = props.className, appearance = props.appearance, _a = props.size, size = _a === void 0 ? 'h3' : _a, text = props.text, textWrap = props.textWrap, afterWrapper = props.afterWrapper, beforeWrapper = props.beforeWrapper, dataTour = props.dataTour, sizeDesktop = props.sizeDesktop, sizeMobile = props.sizeMobile, sizeTablet = props.sizeTablet, _b = props.tag, tag = _b === void 0 ? 'span' : _b, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onClick = props.onClick, children = props.children;
24
- var _c = useUserDeviceContext(), isMobile = _c.isMobile, isTablet = _c.isTablet, isDesktop = _c.isDesktop;
21
+ var className = props.className, appearance = props.appearance, text = props.text, afterWrapper = props.afterWrapper, beforeWrapper = props.beforeWrapper, dataTour = props.dataTour, _a = props.tag, tag = _a === void 0 ? 'span' : _a, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onClick = props.onClick, children = props.children;
25
22
  var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
26
23
  var _a;
27
24
  return (__assign(__assign({}, resultConfig), (_a = titleConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
28
25
  }, {});
29
26
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
30
- var directionClass = propsGenerator.directionClass, fillClass = propsGenerator.fillClass, textAlignClass = propsGenerator.textAlignClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorGradientClass = propsGenerator.textColorGradientClass, textColorHoverClass = propsGenerator.textColorHoverClass, textStyleClass = propsGenerator.textStyleClass, textTruncateClass = propsGenerator.textTruncateClass, textWeightClass = propsGenerator.textWeightClass, dataTestId = propsGenerator.dataTestId, heightClass = propsGenerator.heightClass, svgFillClass = propsGenerator.svgFillClass, svgFillHoverClass = propsGenerator.svgFillHoverClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass, wrapperDirectionClass = propsGenerator.wrapperDirectionClass;
27
+ var directionClass = propsGenerator.directionClass, size = propsGenerator.size, fillClass = propsGenerator.fillClass, textAlignClass = propsGenerator.textAlignClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorGradientClass = propsGenerator.textColorGradientClass, textColorHoverClass = propsGenerator.textColorHoverClass, textStyleClass = propsGenerator.textStyleClass, textTruncateClass = propsGenerator.textTruncateClass, textWeightClass = propsGenerator.textWeightClass, textWrap = propsGenerator.textWrap, dataTestId = propsGenerator.dataTestId, heightClass = propsGenerator.heightClass, svgFillClass = propsGenerator.svgFillClass, svgFillHoverClass = propsGenerator.svgFillHoverClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass, wrapperDirectionClass = propsGenerator.wrapperDirectionClass;
31
28
  // @ts-expect-error
32
- var _d = useStyles(props), titleStyles = _d.styles, titleWrapperStyles = _d.wrapper;
29
+ var _b = useStyles(props), titleStyles = _b.styles, titleWrapperStyles = _b.wrapper;
33
30
  // Element type (h1, h2, ..., h6)
34
31
  var Tag = useMemo(function () {
35
32
  if (tag) {
36
33
  return tag;
37
34
  }
38
- if (isMobile && sizeMobile) {
39
- return sizeMobile;
40
- }
41
- if (isTablet && sizeTablet) {
42
- return sizeTablet;
43
- }
44
- if (isDesktop && sizeDesktop) {
45
- return sizeDesktop;
46
- }
47
35
  return size ? size : 'span';
48
- }, [
49
- tag,
50
- isMobile,
51
- sizeMobile,
52
- isTablet,
53
- sizeTablet,
54
- isDesktop,
55
- sizeDesktop,
56
- size,
57
- ]);
36
+ }, [tag, size]);
58
37
  return (jsxs(Tag, { className: clsx(className, 'title', fillClass && "fill_".concat(fillClass), svgFillClass && "svg_fill_".concat(svgFillClass), svgFillHoverClass && "svg_fill_hover_".concat(svgFillHoverClass), widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), size && "title_size_".concat(size), directionClass && "title_direction_".concat(directionClass), 'text', textColorClass && "text-color_".concat(textColorClass), textColorActiveClass && "text-color_active_".concat(textColorActiveClass), textColorHoverClass && "text-color_hover_".concat(textColorHoverClass), typeClass && "title_type_".concat(typeClass), textColorGradientClass && "text-gradient_".concat(textColorGradientClass), textStyleClass && "text-style_".concat(textStyleClass), textWeightClass && "text-weight_".concat(textWeightClass), textWrap && "word-wrap_".concat(textWrap), isSkeleton && 'title_skeleton'), "data-testid": dataTestId, "data-tour": dataTour, style: titleStyles, onClick: onClick, children: [before, jsxs("span", { className: clsx(textAlignClass && "text-align_".concat(textAlignClass), wrapperDirectionClass && "title-direction_".concat(wrapperDirectionClass), 'title__wrapper', textTruncateClass && "text-truncate_".concat(textTruncateClass)), style: titleWrapperStyles, children: [beforeWrapper, children || text, afterWrapper] }), after] }));
59
38
  }
60
39
 
@@ -7,7 +7,7 @@ var clsx = require('clsx');
7
7
  var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
8
8
  var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
9
9
  var Text = require('./Text_cjs_D4xG0cKD.js');
10
- var Title = require('./Title_cjs_iuyln-ab.js');
10
+ var Title = require('./Title_cjs_ByPcFb15.js');
11
11
 
12
12
  var tooltipAppearance = {
13
13
  surfacePrimary: {
@@ -5,7 +5,7 @@ import clsx from 'clsx';
5
5
  import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from './hooks/useStyles/useStyles.js';
7
7
  import { T as Text } from './Text_es_FJGduy7Z.js';
8
- import { T as Title } from './Title_es_ke3YylFm.js';
8
+ import { T as Title } from './Title_es_eejUqSJf.js';
9
9
 
10
10
  var tooltipAppearance = {
11
11
  surfacePrimary: {
@@ -9,7 +9,7 @@ var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevic
9
9
  var useStyles = require('../hooks/useStyles/useStyles.js');
10
10
  var _default = require('@itcase/icons/default');
11
11
  var Divider = require('../../Divider_cjs_DakITdTv.js');
12
- var Icon = require('../../Icon_cjs_DSzfNqif.js');
12
+ var Icon = require('../../Icon_cjs_BaWMPaAR.js');
13
13
  var Text = require('../../Text_cjs_D4xG0cKD.js');
14
14
  require('lodash/camelCase');
15
15
  require('lodash/upperFirst');
@@ -24,8 +24,8 @@ require('lodash/maxBy');
24
24
  require('../hooks/useStyles/styleAttributes.js');
25
25
  require('react-inlinesvg');
26
26
  require('../../Link_cjs_yht44xJv.js');
27
- require('../../Tooltip_cjs_CTwksdFk.js');
28
- require('../../Title_cjs_iuyln-ab.js');
27
+ require('../../Tooltip_cjs_CY4HOzhz.js');
28
+ require('../../Title_cjs_ByPcFb15.js');
29
29
 
30
30
  var accordionAppearance = {
31
31
  dev: {},
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
5
5
  var React = require('react');
6
6
  var clsx = require('clsx');
7
7
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
8
- var Icon = require('../../Icon_cjs_DSzfNqif.js');
8
+ var Icon = require('../../Icon_cjs_BaWMPaAR.js');
9
9
  var Image = require('../../Image_cjs_DuIBtUq5.js');
10
10
  var Text = require('../../Text_cjs_D4xG0cKD.js');
11
11
  require('lodash/camelCase');
@@ -23,8 +23,8 @@ require('../hooks/useStyles/useStyles.js');
23
23
  require('lodash/maxBy');
24
24
  require('../hooks/useStyles/styleAttributes.js');
25
25
  require('../../Link_cjs_yht44xJv.js');
26
- require('../../Tooltip_cjs_CTwksdFk.js');
27
- require('../../Title_cjs_iuyln-ab.js');
26
+ require('../../Tooltip_cjs_CY4HOzhz.js');
27
+ require('../../Title_cjs_ByPcFb15.js');
28
28
 
29
29
  var avatarAppearance = {
30
30
  dev: {},
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var Badge = require('../../Badge_cjs_DrG2tUjI.js');
3
+ var Badge = require('../../Badge_cjs_CeqDdbMs.js');
4
4
  require('../../tslib.es6_cjs_CCZ3TN_7.js');
5
5
  require('react/jsx-runtime');
6
6
  require('clsx');
@@ -19,12 +19,12 @@ require('../utils/setViewportProperty.js');
19
19
  require('../hooks/useStyles/useStyles.js');
20
20
  require('lodash/maxBy');
21
21
  require('../hooks/useStyles/styleAttributes.js');
22
- require('../../Icon_cjs_DSzfNqif.js');
22
+ require('../../Icon_cjs_BaWMPaAR.js');
23
23
  require('react-inlinesvg');
24
24
  require('../../Link_cjs_yht44xJv.js');
25
- require('../../Tooltip_cjs_CTwksdFk.js');
25
+ require('../../Tooltip_cjs_CY4HOzhz.js');
26
26
  require('../../Text_cjs_D4xG0cKD.js');
27
- require('../../Title_cjs_iuyln-ab.js');
27
+ require('../../Title_cjs_ByPcFb15.js');
28
28
 
29
29
 
30
30
 
@@ -7,7 +7,7 @@ var clsx = require('clsx');
7
7
  var camelCase = require('lodash/camelCase');
8
8
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
9
9
  var useStyles = require('../hooks/useStyles/useStyles.js');
10
- var Icon = require('../../Icon_cjs_DSzfNqif.js');
10
+ var Icon = require('../../Icon_cjs_BaWMPaAR.js');
11
11
  var Link = require('../../Link_cjs_yht44xJv.js');
12
12
  var Text = require('../../Text_cjs_D4xG0cKD.js');
13
13
  require('lodash/castArray');
@@ -22,8 +22,8 @@ require('../utils/setViewportProperty.js');
22
22
  require('lodash/maxBy');
23
23
  require('../hooks/useStyles/styleAttributes.js');
24
24
  require('react-inlinesvg');
25
- require('../../Tooltip_cjs_CTwksdFk.js');
26
- require('../../Title_cjs_iuyln-ab.js');
25
+ require('../../Tooltip_cjs_CY4HOzhz.js');
26
+ require('../../Title_cjs_ByPcFb15.js');
27
27
 
28
28
  function BreadcrumbsItem(props) {
29
29
  var className = props.className, text = props.text, textColor = props.textColor, textColorHover = props.textColorHover, textSize = props.textSize, cursor = props.cursor, href = props.href, iconAfter = props.iconAfter, iconAfterBgFill = props.iconAfterBgFill, iconAfterFill = props.iconAfterFill, iconAfterSize = props.iconAfterSize, _a = props.set, set = _a === void 0 ? 'default' : _a, onClick = props.onClick, children = props.children;
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var Button = require('../../Button_cjs_B7OmqizJ.js');
3
+ var Button = require('../../Button_cjs_BKQLT7oE.js');
4
4
  require('../../tslib.es6_cjs_CCZ3TN_7.js');
5
5
  require('react/jsx-runtime');
6
6
  require('react');
7
7
  require('clsx');
8
- require('../../Icon_cjs_DSzfNqif.js');
8
+ require('../../Icon_cjs_BaWMPaAR.js');
9
9
  require('react-inlinesvg');
10
10
  require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
11
11
  require('lodash/camelCase');
@@ -22,9 +22,9 @@ require('../hooks/useStyles/useStyles.js');
22
22
  require('lodash/maxBy');
23
23
  require('../hooks/useStyles/styleAttributes.js');
24
24
  require('../../Link_cjs_yht44xJv.js');
25
- require('../../Tooltip_cjs_CTwksdFk.js');
25
+ require('../../Tooltip_cjs_CY4HOzhz.js');
26
26
  require('../../Text_cjs_D4xG0cKD.js');
27
- require('../../Title_cjs_iuyln-ab.js');
27
+ require('../../Title_cjs_ByPcFb15.js');
28
28
  require('../../Loader_cjs_D753D3li.js');
29
29
 
30
30
 
@@ -5,8 +5,8 @@ var jsxRuntime = require('react/jsx-runtime');
5
5
  var clsx = require('clsx');
6
6
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
7
7
  var useStyles = require('../hooks/useStyles/useStyles.js');
8
- var Icon = require('../../Icon_cjs_DSzfNqif.js');
9
- var Label = require('../../Label_cjs_BCjB-mxC.js');
8
+ var Icon = require('../../Icon_cjs_BaWMPaAR.js');
9
+ var Label = require('../../Label_cjs_CbcENlSZ.js');
10
10
  var Text = require('../../Text_cjs_D4xG0cKD.js');
11
11
  require('react');
12
12
  require('lodash/camelCase');
@@ -23,8 +23,8 @@ require('lodash/maxBy');
23
23
  require('../hooks/useStyles/styleAttributes.js');
24
24
  require('react-inlinesvg');
25
25
  require('../../Link_cjs_yht44xJv.js');
26
- require('../../Tooltip_cjs_CTwksdFk.js');
27
- require('../../Title_cjs_iuyln-ab.js');
26
+ require('../../Tooltip_cjs_CY4HOzhz.js');
27
+ require('../../Title_cjs_ByPcFb15.js');
28
28
 
29
29
  var cellAppearance = {
30
30
  dev: {},
@@ -20,44 +20,175 @@ require('../hooks/useStyles/useStyles.js');
20
20
  require('lodash/maxBy');
21
21
  require('../hooks/useStyles/styleAttributes.js');
22
22
 
23
- var checkboxAppearance = {
24
- dev: {
23
+ var checkboxAppearanceDefault = {
24
+ defaultPrimary: {
25
25
  labelTextColor: 'surfaceTextPrimary',
26
- labelTextSize: 'm',
27
- descTextColor: 'surfaceTextPrimary',
28
- descTextSize: 'm',
29
- stateBorderColor: 'surfaceBorderQuaternary',
30
- stateBorderWidth: '1',
26
+ descTextColor: 'surfaceTextTertiary',
27
+ errorStateBorderColor: 'errorBorderSecondary',
28
+ stateBorderColorDisabled: 'surfaceBorderTertiary',
29
+ stateBorderColorDisabledChecked: 'surfaceBorderTertiary',
30
+ stateCheckmarkFillDisabled: 'accentItemPrimary',
31
+ stateFillDisabled: 'surfaceTertiary',
32
+ stateFillDisabledChecked: 'surfaceTertiary',
33
+ requiredStateBorderColor: 'warningBorderPrimary',
34
+ stateBorderColor: 'surfaceBorderTertiary',
35
+ stateBorderColorChecked: 'surfaceBorderAccent',
31
36
  stateCheckmarkFill: 'accentItemPrimary',
32
37
  stateFillChecked: 'accentPrimary',
33
- stateShape: 'rounded',
38
+ },
39
+ defaultSecondary: {
40
+ fill: 'surfacePrimary',
41
+ borderColor: 'surfaceBorderTertiary',
42
+ borderHover: 'surfaceBorderQuaternary',
43
+ iconBeforeFill: 'surfaceItemQuaternary',
44
+ iconClearFill: 'surfaceItemPrimary',
45
+ placeholderTextColor: 'surfaceTextSecondary',
46
+ },
47
+ };
48
+
49
+ var checkboxAppearanceDisabled = {
50
+ disabledPrimary: {
51
+ fill: 'surfaceFillDisabled',
52
+ borderColor: 'errorBorderQuaternary',
53
+ borderHover: 'errorBorderQuaternary',
54
+ textColor: 'surfaceTextQuaternary',
55
+ iconBeforeFill: 'errorItemQuaternary',
56
+ iconClearFill: 'errorItemPrimary',
57
+ placeholderTextColor: 'surfaceTextQuaternary',
58
+ },
59
+ disabledSecondary: {
60
+ fill: 'surfaceSecondary',
61
+ borderColor: 'surfaceBorderTertiary',
62
+ borderHover: 'surfaceBorderQuaternary',
63
+ iconBeforeFill: 'surfaceItemQuaternary',
64
+ iconClearFill: 'surfaceItemPrimary',
65
+ placeholderTextColor: 'surfaceTextSecondary',
66
+ },
67
+ };
68
+
69
+ var checkboxAppearanceError = {
70
+ errorPrimary: {
71
+ fill: 'errorTertiary',
72
+ borderColor: 'errorBorderQuaternary',
73
+ borderHover: 'errorBorderQuaternary',
74
+ textColor: 'surfaceTextPrimary',
75
+ iconBeforeFill: 'errorItemQuaternary',
76
+ iconClearFill: 'errorItemPrimary',
77
+ placeholderTextColor: 'surfaceTextQuaternary',
78
+ },
79
+ errorSecondary: {
80
+ fill: 'errorSecondary',
81
+ borderColor: 'errorBorderTertiary',
82
+ borderHover: 'errorBorderQuaternary',
83
+ iconBeforeFill: 'errorItemQuaternary',
84
+ iconClearFill: 'errorItemPrimary',
85
+ placeholderTextColor: 'errorTextSecondary',
86
+ },
87
+ };
88
+
89
+ var checkboxAppearanceRequire = {
90
+ requirePrimary: {
91
+ fill: 'warningTertiary',
92
+ borderColor: 'warningBorderQuaternary',
93
+ borderHover: 'warningBorderQuaternary',
94
+ textColor: 'surfaceTextPrimary',
95
+ iconBeforeFill: 'warningItemQuaternary',
96
+ iconClearFill: 'warningItemPrimary',
97
+ placeholderTextColor: 'surfaceTextQuaternary',
98
+ },
99
+ requireSecondary: {
100
+ fill: 'surfaceSecondary',
101
+ borderColor: 'surfaceBorderTertiary',
102
+ borderHover: 'surfaceBorderQuaternary',
103
+ iconBeforeFill: 'surfaceItemQuaternary',
104
+ iconClearFill: 'surfaceItemPrimary',
105
+ placeholderTextColor: 'surfaceTextSecondary',
106
+ },
107
+ };
108
+
109
+ var checkboxAppearanceSize = {
110
+ sizeXXL: {
111
+ size: 'xxl',
112
+ textSize: 'l',
113
+ },
114
+ sizeXL: {
115
+ size: 'xl',
116
+ textSize: 's',
117
+ },
118
+ sizeL: {
119
+ size: 'l',
120
+ textSize: 's',
121
+ },
122
+ sizeM: {
123
+ labelTextSize: 'm',
124
+ descTextSize: 'xxs',
125
+ },
126
+ sizeS: {
127
+ size: 's',
128
+ textSize: 's',
129
+ },
130
+ sizeXS: {
131
+ size: 'xs',
132
+ textSize: 's',
133
+ },
134
+ sizeXXS: {
135
+ size: 'xxs',
136
+ textSize: 's',
34
137
  },
35
138
  };
36
- var checkboxState = {
37
- normal: {
38
- borderColor: 'surfaceBorderQuaternary',
39
- placeholderTextColor: 'secondaryTextSecondary',
139
+
140
+ var checkboxAppearanceStyle = {
141
+ full: {
142
+ /* border / fill */
143
+ },
144
+ ghost: {
145
+ fill: 'none',
146
+ borderWidth: '0',
147
+ },
148
+ outlined: {
149
+ fill: 'none',
150
+ },
151
+ solid: {
152
+ borderWidth: '0',
153
+ },
154
+ };
155
+
156
+ var checkboxAppearanceSuccess = {
157
+ successPrimary: {
158
+ fill: 'successTertiary',
159
+ borderColor: 'successBorderQuaternary',
160
+ borderHover: 'successBorderQuaternary',
161
+ textColor: 'surfaceTextPrimary',
162
+ iconBeforeFill: 'successItemQuaternary',
163
+ iconClearFill: 'successItemPrimary',
164
+ placeholderTextColor: 'surfaceTextQuaternary',
165
+ },
166
+ successSecondary: {
167
+ fill: 'surfaceSecondary',
168
+ borderColor: 'surfaceBorderTertiary',
169
+ borderHover: 'surfaceBorderQuaternary',
170
+ iconBeforeFill: 'surfaceItemQuaternary',
171
+ iconClearFill: 'surfaceItemPrimary',
172
+ placeholderTextColor: 'surfaceTextSecondary',
40
173
  },
41
174
  };
42
175
 
176
+ var checkboxAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, checkboxAppearanceDefault), checkboxAppearanceError), checkboxAppearanceSuccess), checkboxAppearanceRequire), checkboxAppearanceDisabled), checkboxAppearanceSize), checkboxAppearanceStyle);
177
+
43
178
  var checkboxConfig = {
44
179
  appearance: checkboxAppearance,
45
- state: checkboxState,
46
180
  setAppearance: function (appearanceConfig) {
47
181
  checkboxConfig.appearance = appearanceConfig;
48
182
  },
49
- setState: function (appearanceConfig) {
50
- checkboxConfig.state = appearanceConfig;
51
- },
52
183
  };
53
184
  function Checkbox(props) {
54
- 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;
185
+ var id = props.id, className = props.className, appearance = props.appearance, label = props.label, desc = props.desc, 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;
55
186
  var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
56
187
  var _a;
57
188
  return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = checkboxConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
58
189
  }, {});
59
190
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
60
- var fillClass = propsGenerator.fillClass, shapeClass = propsGenerator.shapeClass, stateBorderWidthClass = propsGenerator.stateBorderWidthClass, stateShapeClass = propsGenerator.stateShapeClass, widthClass = propsGenerator.widthClass;
191
+ var fillClass = propsGenerator.fillClass, labelTextColor = propsGenerator.labelTextColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, descTextWeight = propsGenerator.descTextWeight, shapeClass = propsGenerator.shapeClass, stateBorderWidthClass = propsGenerator.stateBorderWidthClass, stateShapeClass = propsGenerator.stateShapeClass, widthClass = propsGenerator.widthClass;
61
192
  var stateFillClass = propsGenerator.getClassName(checked ? 'stateFillChecked' : 'stateFill', {
62
193
  prefix: 'fill_',
63
194
  });
@@ -65,12 +196,9 @@ function Checkbox(props) {
65
196
  var stateCheckmarkFillClass = propsGenerator.getClassName(disabled ? 'stateCheckmarkFillDisabled' : 'stateCheckmarkFill', { prefix: 'checkbox_checkmark_fill_' });
66
197
  var stateBorderColorClass = propsGenerator.getClassName(checked ? 'stateBorderColorChecked' : 'stateBorderColor', { prefix: 'border-color_' });
67
198
  var stateBorderColorDisabledClass = propsGenerator.getClassName(checked ? 'stateBorderColorDisabledChecked' : 'stateBorderColorDisabled', { prefix: 'border-color_' });
68
- 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", {
69
- // @ts-expect-error
70
- id: id, className: "checkbox__input", type: "checkbox", disabled: disabled, checked: checked, 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, textColor: labelTextColor, textWeight: labelTextWeight, children: label })), desc && (jsxRuntime.jsx(Text.Text, { className: "checkbox__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc })), after && jsxRuntime.jsx("div", { className: "checkbox__after", children: after })] }));
199
+ 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", { id: id, className: "checkbox__input", type: "checkbox", disabled: disabled, checked: checked, 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, textColor: labelTextColor, textWeight: labelTextWeight, children: label })), desc && (jsxRuntime.jsx(Text.Text, { className: "checkbox__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc })), after && jsxRuntime.jsx("div", { className: "checkbox__after", children: after })] }));
71
200
  }
72
201
 
73
202
  exports.Checkbox = Checkbox;
74
203
  exports.checkboxAppearance = checkboxAppearance;
75
204
  exports.checkboxConfig = checkboxConfig;
76
- exports.checkboxState = checkboxState;