@itcase/ui 1.7.0 → 1.8.1

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 (108) hide show
  1. package/dist/{Badge-BE28NFES.js → Badge-BY030Mwm.js} +1 -1
  2. package/dist/{Badge-C_6Iofu7.js → Badge-Df7Zxjnk.js} +1 -1
  3. package/dist/{Button-Df425Vot.js → Button-CWPTzaG2.js} +3 -3
  4. package/dist/{Button-sYpJIJPv.js → Button-DHOZJDHv.js} +3 -3
  5. package/dist/{DropdownItem-f29l8dds.js → DropdownItem-Cl1pYnVf.js} +4 -4
  6. package/dist/{DropdownItem-CdAS1E-G.js → DropdownItem-_bKQxzEZ.js} +4 -4
  7. package/dist/{Group-D5nvxHx0.js → Group-C8NUU6k5.js} +2 -2
  8. package/dist/{Group-NYDjw1CD.js → Group-utjnjUDZ.js} +2 -2
  9. package/dist/{Icon-BzIdIgGY.js → Icon-BF7i3XdQ.js} +1 -1
  10. package/dist/{Icon-dS-it4rs.js → Icon-D_BDlSSb.js} +1 -1
  11. package/dist/{Input-v52BiIsb.js → Input-BH6rNRqZ.js} +2 -2
  12. package/dist/{Input-C_HeI9UK.js → Input-BRhHPsGM.js} +2 -2
  13. package/dist/{Link-UmzWKcxT.js → Link-CZ8o5lGW.js} +1 -1
  14. package/dist/{Link-aBsZ1d0Q.js → Link-Cn7hiWmM.js} +1 -1
  15. package/dist/{Loader-CZVsMYl6.js → Loader-CjT6-r3I.js} +1 -1
  16. package/dist/{Loader-BnhUh-g6.js → Loader-Dquhwxz4.js} +1 -1
  17. package/dist/cjs/components/Accordion.js +2 -2
  18. package/dist/cjs/components/Avatar.js +2 -2
  19. package/dist/cjs/components/Badge.js +3 -3
  20. package/dist/cjs/components/Breadcrumbs.js +2 -2
  21. package/dist/cjs/components/Button.js +4 -4
  22. package/dist/cjs/components/Cell.js +2 -2
  23. package/dist/cjs/components/Chips.js +3 -3
  24. package/dist/cjs/components/Choice.js +56 -46
  25. package/dist/cjs/components/CookiesWarning.js +5 -5
  26. package/dist/cjs/components/DadataHintField.js +1 -1
  27. package/dist/cjs/components/DatePicker.js +15 -10
  28. package/dist/cjs/components/Drawer.js +3 -1
  29. package/dist/cjs/components/Dropdown.js +1 -1
  30. package/dist/cjs/components/Grid.js +5 -5
  31. package/dist/cjs/components/Group.js +1 -1
  32. package/dist/cjs/components/Icon.js +2 -2
  33. package/dist/cjs/components/Input.js +1 -1
  34. package/dist/cjs/components/InputMask.js +1 -1
  35. package/dist/cjs/components/InputPassword.js +2 -2
  36. package/dist/cjs/components/Link.js +1 -1
  37. package/dist/cjs/components/List.js +1 -1
  38. package/dist/cjs/components/Loader.js +1 -1
  39. package/dist/cjs/components/Logo.js +1 -1
  40. package/dist/cjs/components/MenuItem.js +1 -1
  41. package/dist/cjs/components/Modal.js +1 -1
  42. package/dist/cjs/components/Pagination.js +17 -49
  43. package/dist/cjs/components/Panel.js +1 -1
  44. package/dist/cjs/components/Response.js +5 -5
  45. package/dist/cjs/components/Search.js +2 -2
  46. package/dist/cjs/components/Select.js +4 -4
  47. package/dist/cjs/components/Tab.js +5 -5
  48. package/dist/cjs/components/Tile.js +3 -3
  49. package/dist/cjs/context/Notifications.js +3 -1
  50. package/dist/components/Accordion.js +2 -2
  51. package/dist/components/Avatar.js +2 -2
  52. package/dist/components/Badge.js +3 -3
  53. package/dist/components/Breadcrumbs.js +2 -2
  54. package/dist/components/Button.js +4 -4
  55. package/dist/components/Cell.js +2 -2
  56. package/dist/components/Chips.js +3 -3
  57. package/dist/components/Choice.js +57 -47
  58. package/dist/components/CookiesWarning.js +5 -5
  59. package/dist/components/DadataHintField.js +1 -1
  60. package/dist/components/DatePicker.js +15 -10
  61. package/dist/components/Drawer.js +3 -1
  62. package/dist/components/Dropdown.js +1 -1
  63. package/dist/components/Grid.js +5 -5
  64. package/dist/components/Group.js +1 -1
  65. package/dist/components/Icon.js +2 -2
  66. package/dist/components/Input.js +1 -1
  67. package/dist/components/InputMask.js +1 -1
  68. package/dist/components/InputPassword.js +2 -2
  69. package/dist/components/Link.js +1 -1
  70. package/dist/components/List.js +1 -1
  71. package/dist/components/Loader.js +1 -1
  72. package/dist/components/Logo.js +1 -1
  73. package/dist/components/MenuItem.js +1 -1
  74. package/dist/components/Modal.js +1 -1
  75. package/dist/components/Pagination.js +17 -49
  76. package/dist/components/Panel.js +1 -1
  77. package/dist/components/Response.js +5 -5
  78. package/dist/components/Search.js +2 -2
  79. package/dist/components/Select.js +4 -4
  80. package/dist/components/Tab.js +5 -5
  81. package/dist/components/Tile.js +3 -3
  82. package/dist/context/Notifications.js +3 -1
  83. package/dist/css/components/Choice/Choice.css +32 -40
  84. package/dist/css/components/Choice/css/__item/choice__item.css +5 -16
  85. package/dist/css/components/Choice/css/__item/choice__item_shape.css +11 -0
  86. package/dist/css/components/DatePicker/DatePicker.css +3 -6
  87. package/dist/css/components/Divider/Divider.css +10 -13
  88. package/dist/css/components/Dropdown/Dropdown.css +16 -25
  89. package/dist/css/components/Grid/Grid.css +50 -8
  90. package/dist/css/components/Grid/css/__item/grid__item_column.css +13 -1
  91. package/dist/css/components/Grid/css/__item/grid__item_justify-self.css +4 -1
  92. package/dist/css/components/Grid/css/__item/grid__item_row.css +2 -1
  93. package/dist/css/components/Group/Group.css +13 -4
  94. package/dist/css/components/Input/Input.css +3 -0
  95. package/dist/css/components/Link/Link.css +17 -0
  96. package/dist/css/components/Pagination/Pagination.css +10 -8
  97. package/dist/css/components/Pagination/css/__item/pagination__item.css +4 -5
  98. package/dist/css/styles/fill/fill_active.css +14 -0
  99. package/dist/css/styles/fill/fill_active_hover.css +50 -0
  100. package/dist/css/styles/fill/fill_hover.css +33 -0
  101. package/dist/types/components/Choice/appearance/choiceAccent.d.ts +11 -0
  102. package/dist/types/components/Choice/appearance/choiceSurface.d.ts +22 -0
  103. package/dist/types/components/DatePicker/DatePicker.appearance.d.ts +29 -2
  104. package/dist/types/components/DatePicker/appearance/datePickerSurface.d.ts +30 -0
  105. package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +34 -0
  106. package/dist/types/components/Tab/Tab.interface.d.ts +1 -2
  107. package/dist/types/context/Notifications.d.ts +3 -2
  108. package/package.json +16 -16
@@ -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-BzIdIgGY.js';
6
+ import { I as Icon } from './Icon-BF7i3XdQ.js';
7
7
  import { T as Text } from './Text-aaWArShm.js';
8
8
 
9
9
  var defaultAppearance = {
@@ -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-dS-it4rs.js');
8
+ var Icon = require('./Icon-D_BDlSSb.js');
9
9
  var Text = require('./Text-DwIx33-P.js');
10
10
 
11
11
  var defaultAppearance = {
@@ -4,9 +4,9 @@ var tslib_es6 = require('./tslib.es6-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-dS-it4rs.js');
8
- var Link = require('./Link-UmzWKcxT.js');
9
- var Loader = require('./Loader-CZVsMYl6.js');
7
+ var Icon = require('./Icon-D_BDlSSb.js');
8
+ var Link = require('./Link-CZ8o5lGW.js');
9
+ var Loader = require('./Loader-CjT6-r3I.js');
10
10
  var Text = require('./Text-DwIx33-P.js');
11
11
  var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
12
12
  var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
@@ -2,9 +2,9 @@ import { _ as __assign } from './tslib.es6-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-BzIdIgGY.js';
6
- import { a as LinkWrapper } from './Link-aBsZ1d0Q.js';
7
- import { L as Loader } from './Loader-BnhUh-g6.js';
5
+ import { I as Icon } from './Icon-BF7i3XdQ.js';
6
+ import { a as LinkWrapper } from './Link-Cn7hiWmM.js';
7
+ import { L as Loader } from './Loader-Dquhwxz4.js';
8
8
  import { T as Text } from './Text-aaWArShm.js';
9
9
  import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
10
10
  import { useStyles } from './hooks/useStyles/useStyles.js';
@@ -8,12 +8,12 @@ import { D as Divider } from './Divider-CUFKsm-9.js';
8
8
  import { T as Text } from './Text-aaWArShm.js';
9
9
 
10
10
  function Dropdown(props) {
11
- var className = props.className, _a = props.animationClose, animationClose = _a === void 0 ? 'dropdown_animation_close' : _a, _b = props.animationOpen, animationOpen = _b === void 0 ? 'dropdown_animation_open' : _b, before = props.before, after = props.after, isOpen = props.isOpen, _c = props.set, set = _c === void 0 ? 'normal' : _c, setIsOpen = props.setIsOpen, children = props.children;
11
+ var className = props.className, _a = props.animationClose, animationClose = _a === void 0 ? 'dropdown_animation_close' : _a, _b = props.animationOpen, animationOpen = _b === void 0 ? 'dropdown_animation_open' : _b, before = props.before, after = props.after, isOpen = props.isOpen, setIsOpen = props.setIsOpen, children = props.children;
12
12
  var dropdownRef = useRef(null);
13
13
  // const [isOpen, setIsOpen] = useState(false)
14
- var _d = useState({
14
+ var _c = useState({
15
15
  className: '',
16
- }), animationState = _d[0], setAnimationState = _d[1];
16
+ }), animationState = _c[0], setAnimationState = _c[1];
17
17
  var onAnimationEnd = useCallback(function () {
18
18
  // When component is change his visibility(display) in DOM,
19
19
  // animation of close can run unnecessary on showing element.
@@ -57,7 +57,7 @@ function Dropdown(props) {
57
57
  var propsGenerator = useDevicePropsGenerator(props);
58
58
  var alignmentClass = propsGenerator.alignmentClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass;
59
59
  var styles = useStyles(props).styles;
60
- return (jsxs("div", { className: clsx(className, 'dropdown', alignmentClass && "alignment_".concat(alignmentClass), set && "dropdown_set_".concat(set), shapeClass && "dropdown_shape_".concat(shapeClass), elevationClass && "elevation_".concat(elevationClass), isOpen ? 'dropdown_state_open' : 'dropdown_state_close', animationState.className), ref: dropdownRef, style: styles, children: [before, children && (jsx("div", { className: clsx('dropdown__wrapper', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)),
60
+ return (jsxs("div", { className: clsx(className, 'dropdown', alignmentClass && "alignment_".concat(alignmentClass), shapeClass && "dropdown_shape_".concat(shapeClass), elevationClass && "elevation_".concat(elevationClass), isOpen ? 'dropdown_state_open' : 'dropdown_state_close', animationState.className), ref: dropdownRef, style: styles, children: [before, children && (jsx("div", { className: clsx('dropdown__wrapper', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)),
61
61
  // Add "onAnimationEnd" only for wrapper for ignore dropdown button
62
62
  onAnimationEnd: onAnimationEnd, children: children })), after] }));
63
63
  }
@@ -10,12 +10,12 @@ var Divider = require('./Divider-BQIfjvPR.js');
10
10
  var Text = require('./Text-DwIx33-P.js');
11
11
 
12
12
  function Dropdown(props) {
13
- var className = props.className, _a = props.animationClose, animationClose = _a === void 0 ? 'dropdown_animation_close' : _a, _b = props.animationOpen, animationOpen = _b === void 0 ? 'dropdown_animation_open' : _b, before = props.before, after = props.after, isOpen = props.isOpen, _c = props.set, set = _c === void 0 ? 'normal' : _c, setIsOpen = props.setIsOpen, children = props.children;
13
+ var className = props.className, _a = props.animationClose, animationClose = _a === void 0 ? 'dropdown_animation_close' : _a, _b = props.animationOpen, animationOpen = _b === void 0 ? 'dropdown_animation_open' : _b, before = props.before, after = props.after, isOpen = props.isOpen, setIsOpen = props.setIsOpen, children = props.children;
14
14
  var dropdownRef = React.useRef(null);
15
15
  // const [isOpen, setIsOpen] = useState(false)
16
- var _d = React.useState({
16
+ var _c = React.useState({
17
17
  className: '',
18
- }), animationState = _d[0], setAnimationState = _d[1];
18
+ }), animationState = _c[0], setAnimationState = _c[1];
19
19
  var onAnimationEnd = React.useCallback(function () {
20
20
  // When component is change his visibility(display) in DOM,
21
21
  // animation of close can run unnecessary on showing element.
@@ -59,7 +59,7 @@ function Dropdown(props) {
59
59
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props);
60
60
  var alignmentClass = propsGenerator.alignmentClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass;
61
61
  var styles = useStyles.useStyles(props).styles;
62
- return (jsxRuntime.jsxs("div", { className: clsx(className, 'dropdown', alignmentClass && "alignment_".concat(alignmentClass), set && "dropdown_set_".concat(set), shapeClass && "dropdown_shape_".concat(shapeClass), elevationClass && "elevation_".concat(elevationClass), isOpen ? 'dropdown_state_open' : 'dropdown_state_close', animationState.className), ref: dropdownRef, style: styles, children: [before, children && (jsxRuntime.jsx("div", { className: clsx('dropdown__wrapper', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)),
62
+ return (jsxRuntime.jsxs("div", { className: clsx(className, 'dropdown', alignmentClass && "alignment_".concat(alignmentClass), shapeClass && "dropdown_shape_".concat(shapeClass), elevationClass && "elevation_".concat(elevationClass), isOpen ? 'dropdown_state_open' : 'dropdown_state_close', animationState.className), ref: dropdownRef, style: styles, children: [before, children && (jsxRuntime.jsx("div", { className: clsx('dropdown__wrapper', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)),
63
63
  // Add "onAnimationEnd" only for wrapper for ignore dropdown button
64
64
  onAnimationEnd: onAnimationEnd, children: children })), after] }));
65
65
  }
@@ -22,7 +22,7 @@ var groupConfig = {
22
22
  },
23
23
  };
24
24
  var Group = React.forwardRef(function Group(props, ref) {
25
- 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;
25
+ var id = props.id, className = props.className, name = props.name, appearance = props.appearance, dataTestId = props.dataTestId, dataTour = props.dataTour, htmlFor = props.htmlFor, scroll = props.scroll, style = props.style, _a = props.tag, Tag = _a === void 0 ? 'div' : _a, onClick = props.onClick, children = props.children;
26
26
  var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
27
27
  var _a;
28
28
  return (__assign(__assign({}, resultConfig), (_a = groupConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
@@ -32,7 +32,7 @@ var Group = React.forwardRef(function Group(props, ref) {
32
32
  // @ts-expect-error
33
33
  var _b = useStyles(props), groupStyles = _b.styles, groupWrapperStyles = _b.wrapper;
34
34
  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 &&
35
- "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) }));
35
+ "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), scroll && "group_scroll_".concat(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: scroll ? (jsx("div", { className: "group__wrapper", style: groupWrapperStyles, children: children })) : (children) }));
36
36
  });
37
37
 
38
38
  export { Group as G, groupAppearance as a, groupConfig as g };
@@ -24,7 +24,7 @@ var groupConfig = {
24
24
  },
25
25
  };
26
26
  var Group = React.forwardRef(function Group(props, ref) {
27
- 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;
27
+ var id = props.id, className = props.className, name = props.name, appearance = props.appearance, dataTestId = props.dataTestId, dataTour = props.dataTour, htmlFor = props.htmlFor, scroll = props.scroll, style = props.style, _a = props.tag, Tag = _a === void 0 ? 'div' : _a, onClick = props.onClick, children = props.children;
28
28
  var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
29
29
  var _a;
30
30
  return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = groupConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
@@ -34,7 +34,7 @@ var Group = React.forwardRef(function Group(props, ref) {
34
34
  // @ts-expect-error
35
35
  var _b = useStyles.useStyles(props), groupStyles = _b.styles, groupWrapperStyles = _b.wrapper;
36
36
  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 &&
37
- "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) }));
37
+ "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), scroll && "group_scroll_".concat(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: scroll ? (jsxRuntime.jsx("div", { className: "group__wrapper", style: groupWrapperStyles, children: children })) : (children) }));
38
38
  });
39
39
 
40
40
  exports.Group = Group;
@@ -5,7 +5,7 @@ import clsx from 'clsx';
5
5
  import SVG from 'react-inlinesvg';
6
6
  import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
7
  import { useStyles } from './hooks/useStyles/useStyles.js';
8
- import { a as LinkWrapper } from './Link-aBsZ1d0Q.js';
8
+ import { a as LinkWrapper } from './Link-Cn7hiWmM.js';
9
9
  import { T as Tooltip } from './Tooltip-DP32J5V6.js';
10
10
 
11
11
  var iconAppearance = {
@@ -7,7 +7,7 @@ var clsx = require('clsx');
7
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
- var Link = require('./Link-UmzWKcxT.js');
10
+ var Link = require('./Link-CZ8o5lGW.js');
11
11
  var Tooltip = require('./Tooltip-hznDyLwa.js');
12
12
 
13
13
  var iconAppearance = {
@@ -77,13 +77,13 @@ var Input = React.forwardRef(function Input(props, ref) {
77
77
  }, {});
78
78
  // const stateConfig = state && inputConfig.state && inputConfig.state[state]
79
79
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
80
- var fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, borderColorClass = propsGenerator.borderColorClass, borderColorDisabledClass = propsGenerator.borderColorDisabledClass, borderWidthClass = propsGenerator.borderWidthClass, borderWidthDisabledClass = propsGenerator.borderWidthDisabledClass, textColorClass = propsGenerator.textColorClass, textColorDisabledClass = propsGenerator.textColorDisabledClass, textSizeClass = propsGenerator.textSizeClass, textWeightClass = propsGenerator.textWeightClass, placeholderTextColorDisabledClass = propsGenerator.placeholderTextColorDisabledClass, caretClass = propsGenerator.caretClass, placeholderTextColorClass = propsGenerator.placeholderTextColorClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
80
+ var fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorDisabledClass = propsGenerator.borderColorDisabledClass, borderWidthClass = propsGenerator.borderWidthClass, borderWidthDisabledClass = propsGenerator.borderWidthDisabledClass, textColorClass = propsGenerator.textColorClass, textColorDisabledClass = propsGenerator.textColorDisabledClass, textSizeClass = propsGenerator.textSizeClass, textWeightClass = propsGenerator.textWeightClass, placeholderTextColorDisabledClass = propsGenerator.placeholderTextColorDisabledClass, caretClass = propsGenerator.caretClass, placeholderTextColorClass = propsGenerator.placeholderTextColorClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
81
81
  return (jsx("input", { id: String(id), className: clsx(className, 'input', type === 'number' && 'input_type_number', (textSizeClass || textColorClass || textWeightClass) && 'text', caretClass && "caret-color_".concat(caretClass), shapeClass && "input_shape_".concat(shapeClass), textSizeClass && "text_size_".concat(textSizeClass), textWeightClass && "text-weight_".concat(textWeightClass), widthClass && "width_".concat(widthClass), sizeClass && "input_size_".concat(sizeClass), textColorClass && "text-color_".concat(textColorClass), !isDisabled
82
82
  ? fillClass && "fill_".concat(fillClass)
83
83
  : fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), !isDisabled
84
84
  ? borderWidthClass && "border-width_".concat(borderWidthClass)
85
85
  : borderWidthDisabledClass &&
86
- "border-width_disabled_".concat(borderWidthDisabledClass), !isDisabled
86
+ "border-width_disabled_".concat(borderWidthDisabledClass), !isDisabled ? fillHoverClass && "fill_hover_".concat(fillHoverClass) : null, !isDisabled
87
87
  ? borderColorClass && "border-color_".concat(borderColorClass)
88
88
  : borderColorDisabledClass &&
89
89
  "border-color_disabled_".concat(borderColorDisabledClass), !isDisabled
@@ -79,13 +79,13 @@ var Input = React.forwardRef(function Input(props, ref) {
79
79
  }, {});
80
80
  // const stateConfig = state && inputConfig.state && inputConfig.state[state]
81
81
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
82
- var fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, borderColorClass = propsGenerator.borderColorClass, borderColorDisabledClass = propsGenerator.borderColorDisabledClass, borderWidthClass = propsGenerator.borderWidthClass, borderWidthDisabledClass = propsGenerator.borderWidthDisabledClass, textColorClass = propsGenerator.textColorClass, textColorDisabledClass = propsGenerator.textColorDisabledClass, textSizeClass = propsGenerator.textSizeClass, textWeightClass = propsGenerator.textWeightClass, placeholderTextColorDisabledClass = propsGenerator.placeholderTextColorDisabledClass, caretClass = propsGenerator.caretClass, placeholderTextColorClass = propsGenerator.placeholderTextColorClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
82
+ var fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorDisabledClass = propsGenerator.borderColorDisabledClass, borderWidthClass = propsGenerator.borderWidthClass, borderWidthDisabledClass = propsGenerator.borderWidthDisabledClass, textColorClass = propsGenerator.textColorClass, textColorDisabledClass = propsGenerator.textColorDisabledClass, textSizeClass = propsGenerator.textSizeClass, textWeightClass = propsGenerator.textWeightClass, placeholderTextColorDisabledClass = propsGenerator.placeholderTextColorDisabledClass, caretClass = propsGenerator.caretClass, placeholderTextColorClass = propsGenerator.placeholderTextColorClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
83
83
  return (jsxRuntime.jsx("input", { id: String(id), className: clsx(className, 'input', type === 'number' && 'input_type_number', (textSizeClass || textColorClass || textWeightClass) && 'text', caretClass && "caret-color_".concat(caretClass), shapeClass && "input_shape_".concat(shapeClass), textSizeClass && "text_size_".concat(textSizeClass), textWeightClass && "text-weight_".concat(textWeightClass), widthClass && "width_".concat(widthClass), sizeClass && "input_size_".concat(sizeClass), textColorClass && "text-color_".concat(textColorClass), !isDisabled
84
84
  ? fillClass && "fill_".concat(fillClass)
85
85
  : fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), !isDisabled
86
86
  ? borderWidthClass && "border-width_".concat(borderWidthClass)
87
87
  : borderWidthDisabledClass &&
88
- "border-width_disabled_".concat(borderWidthDisabledClass), !isDisabled
88
+ "border-width_disabled_".concat(borderWidthDisabledClass), !isDisabled ? fillHoverClass && "fill_hover_".concat(fillHoverClass) : null, !isDisabled
89
89
  ? borderColorClass && "border-color_".concat(borderColorClass)
90
90
  : borderColorDisabledClass &&
91
91
  "border-color_disabled_".concat(borderColorDisabledClass), !isDisabled
@@ -36,7 +36,7 @@ function Link(props) {
36
36
  textGradientClass ||
37
37
  textStyleClass ||
38
38
  textWeightClass) &&
39
- 'text', textColorClass && "text-color_".concat(textColorClass), textColorHoverClass && "text-color_hover_".concat(textColorHoverClass), textGradientClass && "text-gradient_".concat(textGradientClass), textStyleClass && "text-style_".concat(textStyleClass), textWeightClass && "text-weight_".concat(textWeightClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), shapeClass && "badge_shape_".concat(shapeClass)), Component: LinkComponent, href: href || link, rel: rel, style: Object.assign({}, styles, style), target: target, onClick: onClick, onMouseDown: onMouseDown, children: [before, children || text, after] }));
39
+ 'text', textColorClass && "text-color_".concat(textColorClass), textColorHoverClass && "text-color_hover_".concat(textColorHoverClass), textGradientClass && "text-gradient_".concat(textGradientClass), textStyleClass && "text-style_".concat(textStyleClass), textWeightClass && "text-weight_".concat(textWeightClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), shapeClass && "link_shape_".concat(shapeClass)), Component: LinkComponent, href: href || link, rel: rel, style: Object.assign({}, styles, style), target: target, onClick: onClick, onMouseDown: onMouseDown, children: [before, children || text, after] }));
40
40
  }
41
41
  // Wrapper with "Link" by condition
42
42
  function LinkWrapper(props) {
@@ -34,7 +34,7 @@ function Link(props) {
34
34
  textGradientClass ||
35
35
  textStyleClass ||
36
36
  textWeightClass) &&
37
- 'text', textColorClass && "text-color_".concat(textColorClass), textColorHoverClass && "text-color_hover_".concat(textColorHoverClass), textGradientClass && "text-gradient_".concat(textGradientClass), textStyleClass && "text-style_".concat(textStyleClass), textWeightClass && "text-weight_".concat(textWeightClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), shapeClass && "badge_shape_".concat(shapeClass)), Component: LinkComponent, href: href || link, rel: rel, style: Object.assign({}, styles, style), target: target, onClick: onClick, onMouseDown: onMouseDown, children: [before, children || text, after] }));
37
+ 'text', textColorClass && "text-color_".concat(textColorClass), textColorHoverClass && "text-color_hover_".concat(textColorHoverClass), textGradientClass && "text-gradient_".concat(textGradientClass), textStyleClass && "text-style_".concat(textStyleClass), textWeightClass && "text-weight_".concat(textWeightClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), shapeClass && "link_shape_".concat(shapeClass)), Component: LinkComponent, href: href || link, rel: rel, style: Object.assign({}, styles, style), target: target, onClick: onClick, onMouseDown: onMouseDown, children: [before, children || text, after] }));
38
38
  }
39
39
  // Wrapper with "Link" by condition
40
40
  function LinkWrapper(props) {
@@ -52,7 +52,7 @@ var loaderConfig = {
52
52
  },
53
53
  };
54
54
  function Loader(props) {
55
- var className = props.className, type = props.type, appearance = props.appearance, text = props.text, isSkeleton = props.isSkeleton, children = props.children;
55
+ var className = props.className, _a = props.type, type = _a === void 0 ? 'simple' : _a, appearance = props.appearance, text = props.text, isSkeleton = props.isSkeleton, children = props.children;
56
56
  var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
57
57
  var _a;
58
58
  return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = loaderConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
@@ -50,7 +50,7 @@ var loaderConfig = {
50
50
  },
51
51
  };
52
52
  function Loader(props) {
53
- var className = props.className, type = props.type, appearance = props.appearance, text = props.text, isSkeleton = props.isSkeleton, children = props.children;
53
+ var className = props.className, _a = props.type, type = _a === void 0 ? 'simple' : _a, appearance = props.appearance, text = props.text, isSkeleton = props.isSkeleton, children = props.children;
54
54
  var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
55
55
  var _a;
56
56
  return (__assign(__assign({}, resultConfig), (_a = loaderConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
@@ -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-BQIfjvPR.js');
12
- var Icon = require('../../Icon-dS-it4rs.js');
12
+ var Icon = require('../../Icon-D_BDlSSb.js');
13
13
  var Text = require('../../Text-DwIx33-P.js');
14
14
  require('lodash/camelCase');
15
15
  require('lodash/upperFirst');
@@ -23,7 +23,7 @@ require('../utils/setViewportProperty.js');
23
23
  require('lodash/maxBy');
24
24
  require('../hooks/useStyles/styleAttributes.js');
25
25
  require('react-inlinesvg');
26
- require('../../Link-UmzWKcxT.js');
26
+ require('../../Link-CZ8o5lGW.js');
27
27
  require('../../Tooltip-hznDyLwa.js');
28
28
  require('../../Title-ByfOyy-n.js');
29
29
 
@@ -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-dS-it4rs.js');
8
+ var Icon = require('../../Icon-D_BDlSSb.js');
9
9
  var Image = require('../../Image-DuIBtUq5.js');
10
10
  var Text = require('../../Text-DwIx33-P.js');
11
11
  require('lodash/camelCase');
@@ -22,7 +22,7 @@ require('react-inlinesvg');
22
22
  require('../hooks/useStyles/useStyles.js');
23
23
  require('lodash/maxBy');
24
24
  require('../hooks/useStyles/styleAttributes.js');
25
- require('../../Link-UmzWKcxT.js');
25
+ require('../../Link-CZ8o5lGW.js');
26
26
  require('../../Tooltip-hznDyLwa.js');
27
27
  require('../../Title-ByfOyy-n.js');
28
28
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var Badge = require('../../Badge-C_6Iofu7.js');
3
+ var Badge = require('../../Badge-Df7Zxjnk.js');
4
4
  require('../../tslib.es6-CCZ3TN_7.js');
5
5
  require('react/jsx-runtime');
6
6
  require('clsx');
@@ -19,9 +19,9 @@ 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-dS-it4rs.js');
22
+ require('../../Icon-D_BDlSSb.js');
23
23
  require('react-inlinesvg');
24
- require('../../Link-UmzWKcxT.js');
24
+ require('../../Link-CZ8o5lGW.js');
25
25
  require('../../Tooltip-hznDyLwa.js');
26
26
  require('../../Text-DwIx33-P.js');
27
27
  require('../../Title-ByfOyy-n.js');
@@ -7,8 +7,8 @@ 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-dS-it4rs.js');
11
- var Link = require('../../Link-UmzWKcxT.js');
10
+ var Icon = require('../../Icon-D_BDlSSb.js');
11
+ var Link = require('../../Link-CZ8o5lGW.js');
12
12
  var Text = require('../../Text-DwIx33-P.js');
13
13
  require('lodash/castArray');
14
14
  require('lodash/upperFirst');
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var Button = require('../../Button-Df425Vot.js');
3
+ var Button = require('../../Button-CWPTzaG2.js');
4
4
  require('../../tslib.es6-CCZ3TN_7.js');
5
5
  require('react/jsx-runtime');
6
6
  require('react');
7
7
  require('clsx');
8
- require('../../Icon-dS-it4rs.js');
8
+ require('../../Icon-D_BDlSSb.js');
9
9
  require('react-inlinesvg');
10
10
  require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
11
11
  require('lodash/camelCase');
@@ -21,11 +21,11 @@ require('../utils/setViewportProperty.js');
21
21
  require('../hooks/useStyles/useStyles.js');
22
22
  require('lodash/maxBy');
23
23
  require('../hooks/useStyles/styleAttributes.js');
24
- require('../../Link-UmzWKcxT.js');
24
+ require('../../Link-CZ8o5lGW.js');
25
25
  require('../../Tooltip-hznDyLwa.js');
26
26
  require('../../Text-DwIx33-P.js');
27
27
  require('../../Title-ByfOyy-n.js');
28
- require('../../Loader-CZVsMYl6.js');
28
+ require('../../Loader-CjT6-r3I.js');
29
29
 
30
30
 
31
31
 
@@ -5,7 +5,7 @@ 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-dS-it4rs.js');
8
+ var Icon = require('../../Icon-D_BDlSSb.js');
9
9
  var Label = require('../../Label-DsNZ-asS.js');
10
10
  var Text = require('../../Text-DwIx33-P.js');
11
11
  require('react');
@@ -22,7 +22,7 @@ require('../utils/setViewportProperty.js');
22
22
  require('lodash/maxBy');
23
23
  require('../hooks/useStyles/styleAttributes.js');
24
24
  require('react-inlinesvg');
25
- require('../../Link-UmzWKcxT.js');
25
+ require('../../Link-CZ8o5lGW.js');
26
26
  require('../../Tooltip-hznDyLwa.js');
27
27
  require('../../Title-ByfOyy-n.js');
28
28
 
@@ -6,7 +6,7 @@ var React = require('react');
6
6
  var clsx = require('clsx');
7
7
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
8
8
  var useStyles = require('../hooks/useStyles/useStyles.js');
9
- var Icon = require('../../Icon-dS-it4rs.js');
9
+ var Icon = require('../../Icon-D_BDlSSb.js');
10
10
  var Text = require('../../Text-DwIx33-P.js');
11
11
  require('lodash/camelCase');
12
12
  require('lodash/castArray');
@@ -21,7 +21,7 @@ require('../utils/setViewportProperty.js');
21
21
  require('lodash/maxBy');
22
22
  require('../hooks/useStyles/styleAttributes.js');
23
23
  require('react-inlinesvg');
24
- require('../../Link-UmzWKcxT.js');
24
+ require('../../Link-CZ8o5lGW.js');
25
25
  require('../../Tooltip-hznDyLwa.js');
26
26
  require('../../Title-ByfOyy-n.js');
27
27
 
@@ -135,7 +135,7 @@ function Chips(props) {
135
135
  ? "fill_".concat(fillClass)
136
136
  : "fill_active_".concat(fillActiveClass), !isActive
137
137
  ? fillHoverClass && "fill_hover_".concat(fillHoverClass)
138
- : fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), 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: labelTextColor, textColor: labelTextColor, textColorActive: isActive && labelTextActiveColor, textColorHover: !isDisabled && !isActive
138
+ : fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), 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, "Chips"), "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: labelTextColor, textColor: labelTextColor, textColorActive: isActive && labelTextActiveColor, textColorHover: !isDisabled && !isActive
139
139
  ? labelTextHoverColor
140
140
  : labelTextActiveHoverColor, 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 }))] }) }));
141
141
  }
@@ -6,8 +6,8 @@ var React = require('react');
6
6
  var clsx = require('clsx');
7
7
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
8
8
  var useStyles = require('../hooks/useStyles/useStyles.js');
9
- var Icon = require('../../Icon-dS-it4rs.js');
10
- var Loader = require('../../Loader-CZVsMYl6.js');
9
+ var Icon = require('../../Icon-D_BDlSSb.js');
10
+ var Loader = require('../../Loader-CjT6-r3I.js');
11
11
  var Text = require('../../Text-DwIx33-P.js');
12
12
  require('lodash/camelCase');
13
13
  require('lodash/castArray');
@@ -22,34 +22,45 @@ require('../utils/setViewportProperty.js');
22
22
  require('lodash/maxBy');
23
23
  require('../hooks/useStyles/styleAttributes.js');
24
24
  require('react-inlinesvg');
25
- require('../../Link-UmzWKcxT.js');
25
+ require('../../Link-CZ8o5lGW.js');
26
26
  require('../../Tooltip-hznDyLwa.js');
27
27
  require('../../Title-ByfOyy-n.js');
28
28
 
29
- var choiceAppearance = {
30
- accent: {
31
- size: 'normal',
29
+ var choiceAppearanceAccent = {
30
+ accentPrimary: {
32
31
  fill: 'surfacePrimary',
33
32
  fillActive: 'accentPrimary',
34
33
  labelTextActiveColor: 'accentTextPrimary',
35
34
  labelTextColor: 'surfaceTextPrimary',
36
35
  labelTextSize: 's',
37
36
  borderColor: 'surfaceBorderSecondary',
38
- shape: 'rounded',
39
37
  },
40
- dev: {
41
- size: 'normal',
38
+ };
39
+
40
+ var choiceAppearanceSurface = {
41
+ surfacePrimary: {
42
42
  fill: 'surfacePrimary',
43
- fillActive: 'surfaceTertiary',
44
- fillHover: 'surfacePrimaryHover',
43
+ fillItem: 'surfaceItemInverse',
44
+ fillItemActive: 'surfaceItemSecondary',
45
+ fillItemActiveHover: 'surfaceItemTertiary',
46
+ fillItemHover: 'surfaceItemSecondary',
47
+ labelTextActiveColor: 'surfaceTextPrimary',
48
+ labelTextColor: 'surfaceTextPrimary',
49
+ labelTextSize: 'm',
50
+ },
51
+ surfaceSecondary: {
52
+ fill: 'surfaceSecondary',
53
+ fillItem: 'surfacePrimary',
54
+ fillItemActive: 'surfacePrimary',
55
+ fillItemHover: 'surfacePrimary',
45
56
  labelTextActiveColor: 'surfaceTextPrimary',
46
57
  labelTextColor: 'surfaceTextPrimary',
47
58
  labelTextSize: 'm',
48
- borderColor: 'surfaceBorderTertiary',
49
- shape: 'rounded',
50
59
  },
51
60
  };
52
61
 
62
+ var choiceAppearance = tslib_es6.__assign(tslib_es6.__assign({}, choiceAppearanceAccent), choiceAppearanceSurface);
63
+
53
64
  var choiceConfig = {
54
65
  appearance: choiceAppearance,
55
66
  setAppearance: function (appearanceConfig) {
@@ -57,7 +68,7 @@ var choiceConfig = {
57
68
  },
58
69
  };
59
70
  function Choice(props) {
60
- var id = props.id, className = props.className, type = props.type, name = props.name, appearance = props.appearance, _a = props.size, size = _a === void 0 ? 'normal' : _a, labelTextActiveColor = props.labelTextActiveColor, labelTextActiveColorDisabled = props.labelTextActiveColorDisabled, labelTextColor = props.labelTextColor, labelTextColorDisabled = props.labelTextColorDisabled, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, iconFillDisabled = props.iconFillDisabled, _b = props.isDisabled, isDisabled = _b === void 0 ? false : _b, _c = props.active, active = _c === void 0 ? { value: undefined } : _c, activeIcon = props.activeIcon, activeIconItemFill = props.activeIconItemFill, dataTestId = props.dataTestId, dataTour = props.dataTour, icon = props.icon, iconItemFill = props.iconItemFill, iconSize = props.iconSize, _d = props.options, options = _d === void 0 ? [] : _d, before = props.before, after = props.after, _e = props.isCheckbox, isCheckbox = _e === void 0 ? false : _e, _f = props.isLoading, isLoading = _f === void 0 ? false : _f, set = props.set, setActiveSegment = props.setActiveSegment;
71
+ var id = props.id, className = props.className, type = props.type, name = props.name, appearance = props.appearance, size = props.size, _a = props.isDisabled, isDisabled = _a === void 0 ? false : _a, _b = props.active, active = _b === void 0 ? { value: undefined } : _b, activeIcon = props.activeIcon, dataTestId = props.dataTestId, dataTour = props.dataTour, icon = props.icon, itemAfter = props.itemAfter, itemBefore = props.itemBefore, _c = props.options, options = _c === void 0 ? [] : _c, before = props.before, after = props.after, _d = props.isCheckbox, isCheckbox = _d === void 0 ? false : _d, _e = props.isLoading, isLoading = _e === void 0 ? false : _e, setActiveSegment = props.setActiveSegment;
61
72
  var controlRef = React.useRef(null);
62
73
  var optionsRefs = React.useMemo(function () {
63
74
  return new Map(options.map(function (item) { return [item.value, React.createRef()]; }));
@@ -71,39 +82,38 @@ function Choice(props) {
71
82
  return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = choiceConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
72
83
  }, {});
73
84
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
74
- var fillActiveClass = propsGenerator.fillActiveClass, fillActiveDisabledClass = propsGenerator.fillActiveDisabledClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, shapeClass = propsGenerator.shapeClass, wrapClass = propsGenerator.wrapClass;
75
- // @ts-expect-error
85
+ var fillClass = propsGenerator.fillClass, fillItemActiveClass = propsGenerator.fillItemActiveClass, fillItemActiveDisabledClass = propsGenerator.fillItemActiveDisabledClass, fillItemActiveHoverClass = propsGenerator.fillItemActiveHoverClass, fillItemClass = propsGenerator.fillItemClass, fillItemDisabledClass = propsGenerator.fillItemDisabledClass, fillItemHoverClass = propsGenerator.fillItemHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveColorDisabled = propsGenerator.labelTextActiveColorDisabled, labelTextColor = propsGenerator.labelTextColor, labelTextColorDisabled = propsGenerator.labelTextColorDisabled, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconFillDisabled = propsGenerator.iconFillDisabled, activeIconItemFill = propsGenerator.activeIconItemFill, iconItemFill = propsGenerator.iconItemFill, iconSize = propsGenerator.iconSize, shapeClass = propsGenerator.shapeClass, shapeItemClass = propsGenerator.shapeItemClass, wrapClass = propsGenerator.wrapClass;
76
86
  var styles = useStyles.useStyles(props).styles;
77
- return (jsxRuntime.jsx("div", { id: id, className: clsx(className, 'choice', shapeClass && "choice_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), set && "choice_set_".concat(set), size && "choice_size_".concat(size), type && "choice_type_".concat(type), wrapClass && "choice_wrap_".concat(wrapClass)), "data-testid": dataTestId && "".concat(dataTestId, "Button"), "data-tour": dataTour, ref: controlRef, style: styles, children: isLoading ? (jsxRuntime.jsx(Loader.Loader, { width: "fill", height: "fill", fill: "surfacePrimary", itemFill: "surfaceItemAccent", set: "simple" })) : (jsxRuntime.jsx(React.Fragment, { children: options.map(function (item) {
78
- // prettier-ignore
79
- var isActive = typeof active === 'object'
80
- ? String(item.value) === String(active.value)
81
- : String(item.value) === String(active);
82
- return (jsxRuntime.jsxs("div", { className: clsx('choice__item', !isDisabled
83
- ? fillClass && "fill_".concat(fillClass)
84
- : fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), !isDisabled
85
- ? fillHoverClass && "fill_hover_".concat(fillHoverClass)
86
- : null, !isActive && isDisabled && 'choice__item_state_disabled', isActive
87
- ? !isDisabled
88
- ? fillActiveClass && "fill_active_".concat(fillActiveClass)
89
- : fillActiveDisabledClass &&
90
- "fill_active_disabled_".concat(fillActiveDisabledClass)
91
- : !isDisabled
92
- ? fillClass && "fill_".concat(fillClass)
93
- : fillDisabledClass &&
94
- "fill_disabled_".concat(fillDisabledClass), isActive &&
95
- isDisabled &&
96
- 'choice__item_active_state_disabled', isActive && 'choice__item_active'), ref: optionsRefs.get(item.value), children: [jsxRuntime.jsx("input", { id: "".concat(name, "-").concat(item.value), className: "choice__item-radio", type: isCheckbox ? 'checkbox' : 'radio', name: name, disabled: isDisabled, checked: isActive, value: item.value, onChange: function (event) { return onChange(event, item); } }), jsxRuntime.jsxs("label", { className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: "".concat(name, "-").concat(item.value), children: [before, item.label && (jsxRuntime.jsx(Text.Text, { size: labelTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextSize), textColor: isActive
97
- ? !isDisabled
98
- ? labelTextActiveColor ||
99
- (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextActiveColor)
100
- : labelTextActiveColorDisabled
101
- : !isDisabled
102
- ? labelTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextColor)
103
- : labelTextColorDisabled, textWeight: labelTextWeight, children: item.label })), (icon || activeIcon) && (jsxRuntime.jsx(Icon.Icon, { className: "choice__item-icon", iconFillDisabled: isDisabled ? iconFillDisabled : undefined, iconFill: isActive
104
- ? activeIconItemFill || item.activeIconItemFill
105
- : iconItemFill || item.iconItemFill, iconSize: iconSize, SvgImage: isActive ? activeIcon : icon })), after] })] }, "".concat(name, "-").concat(item.value)));
106
- }) })) }));
87
+ return (jsxRuntime.jsxs("div", { id: id, className: clsx(className, 'choice', fillClass && "fill_".concat(fillClass), shapeClass && "choice_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), size && "choice_size_".concat(size), type && "choice_type_".concat(type), wrapClass && "choice_wrap_".concat(wrapClass)), "data-testid": dataTestId && "".concat(dataTestId, "Choice"), "data-tour": dataTour, ref: controlRef, style: styles, children: [before && jsxRuntime.jsx("div", { className: "choice__before", children: before }), isLoading ? (jsxRuntime.jsx(Loader.Loader, { width: "fill", height: "fill", fill: "surfacePrimary", itemFill: "surfaceItemAccent" })) : (jsxRuntime.jsx(React.Fragment, { children: options.map(function (item) {
88
+ var isActive = typeof active === 'object'
89
+ ? String(item.value) === String(active.value)
90
+ : String(item.value) === String(active);
91
+ return (jsxRuntime.jsxs("div", { className: clsx('choice__item', !isDisabled
92
+ ? fillItemClass && "fill_".concat(fillItemClass)
93
+ : fillItemDisabledClass &&
94
+ "fill_disabled_".concat(fillItemDisabledClass), !isDisabled
95
+ ? fillItemHoverClass && "fill_hover_".concat(fillItemHoverClass)
96
+ : null, !isActive && isDisabled && 'choice__item_state_disabled', isActive &&
97
+ fillItemActiveHoverClass &&
98
+ "fill_active_hover_".concat(fillItemActiveHoverClass), isActive
99
+ ? !isDisabled
100
+ ? fillItemActiveClass &&
101
+ "fill_active_".concat(fillItemActiveClass)
102
+ : fillItemActiveDisabledClass &&
103
+ "fill_active_disabled_".concat(fillItemActiveDisabledClass)
104
+ : !isDisabled
105
+ ? fillItemClass && "fill_".concat(fillItemClass)
106
+ : fillItemDisabledClass &&
107
+ "fill_disabled_".concat(fillItemDisabledClass), isActive &&
108
+ isDisabled &&
109
+ 'choice__item_active_state_disabled', isActive && 'choice__item_active', shapeItemClass && "choice__item_shape_".concat(shapeItemClass)), ref: optionsRefs.get(item.value), children: [jsxRuntime.jsx("input", { id: "".concat(name, "-").concat(item.value), className: "choice__item-radio", type: isCheckbox ? 'checkbox' : 'radio', name: name, disabled: isDisabled, checked: isActive, value: item.value, onChange: function (event) { return onChange(event, item); } }), jsxRuntime.jsxs("label", { className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: "".concat(name, "-").concat(item.value), children: [itemBefore, item.label && (jsxRuntime.jsx(Text.Text, { size: labelTextSize, textColor: isActive
110
+ ? !isDisabled
111
+ ? labelTextActiveColor
112
+ : labelTextActiveColorDisabled
113
+ : !isDisabled
114
+ ? labelTextColor
115
+ : labelTextColorDisabled, textWeight: labelTextWeight, children: item.label })), (icon || activeIcon) && (jsxRuntime.jsx(Icon.Icon, { className: "choice__item-icon", iconFillDisabled: isDisabled ? iconFillDisabled : undefined, iconFill: isActive ? activeIconItemFill : iconItemFill, iconSize: iconSize, SvgImage: isActive ? activeIcon : icon })), itemAfter] })] }, "".concat(name, "-").concat(item.value)));
116
+ }) })), after && jsxRuntime.jsx("div", { className: "choice__after", children: after })] }));
107
117
  }
108
118
 
109
119
  exports.Choice = Choice;