@itcase/ui 1.3.24 → 1.3.26

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 (199) hide show
  1. package/dist/{Badge-Bcj5H3vs.js → Badge-CcaG-4ly.js} +49 -8
  2. package/dist/{Badge-DxHwStfq.js → Badge-CoHPvO35.js} +49 -8
  3. package/dist/{Button-BSygAkO5.js → Button-BFX_EEum.js} +6 -6
  4. package/dist/{Button-Bn8Mjoeh.js → Button-BSzqA8CB.js} +6 -6
  5. package/dist/{DropdownItem-CExjlJjQ.js → DropdownItem-Bq-oPnWX.js} +4 -4
  6. package/dist/{DropdownItem-DFE1HsyX.js → DropdownItem-FNOztnTT.js} +4 -4
  7. package/dist/{Group-CIIZoSm5.js → Group-B9L2NTgM.js} +1 -1
  8. package/dist/{Group-pMTTxQH4.js → Group-D6CXN4hS.js} +1 -1
  9. package/dist/{Icon-DotE-03d.js → Icon-BZa8B7te.js} +3 -3
  10. package/dist/{Icon-ByLHEhHL.js → Icon-B_bS-o4g.js} +2 -2
  11. package/dist/{Input-Ck5IbuH6.js → Input-BrV5_NoV.js} +1 -1
  12. package/dist/{Input-zkYoZhQk.js → Input-ffioh1sj.js} +1 -1
  13. package/dist/{Label-9O3dQlUa.js → Label-DQyB2ThM.js} +6 -6
  14. package/dist/{Label-GEBQXoVJ.js → Label-HKRKV3mn.js} +6 -6
  15. package/dist/{Link-CoAhRbFg.js → Link-CxWmYMyL.js} +1 -1
  16. package/dist/{Link-C53o3P6_.js → Link-DN2LhPjD.js} +4 -4
  17. package/dist/{Loader-D_53c71f.js → Loader-Dn036JwE.js} +2 -2
  18. package/dist/{Loader-Cm98w6lJ.js → Loader-K_DJmah6.js} +2 -2
  19. package/dist/{MenuItem-Cu6wlj-X.js → MenuItem-CLDNk2l8.js} +3 -3
  20. package/dist/{MenuItem-Ybh5Mpoi.js → MenuItem-amqx61Y0.js} +3 -3
  21. package/dist/{Scrollbar-DkJr3S-w.js → Scrollbar-Bo7z7ELm.js} +1 -1
  22. package/dist/{Scrollbar-CL9V8d1X.js → Scrollbar-CKbA0jQU.js} +1 -1
  23. package/dist/{Text-COHpLTYr.js → Text-Beslj4Ns.js} +1 -1
  24. package/dist/{Text-D9sEeRE4.js → Text-JayJa3hj.js} +1 -1
  25. package/dist/{Title-Cl95USIn.js → Title-CHgrIarR.js} +1 -1
  26. package/dist/{Title-BduD-TXE.js → Title-DBaHcpvB.js} +1 -1
  27. package/dist/{Tooltip-BsbXMzGd.js → Tooltip-1Jbub0K6.js} +4 -4
  28. package/dist/{Tooltip-CyZCVyba.js → Tooltip-CNua1g76.js} +4 -4
  29. package/dist/cjs/components/Accordion.js +8 -7
  30. package/dist/cjs/components/Avatar.js +10 -9
  31. package/dist/cjs/components/Badge.js +4 -3
  32. package/dist/cjs/components/Breadcrumbs.js +7 -6
  33. package/dist/cjs/components/Button.js +8 -7
  34. package/dist/cjs/components/Caption.js +1 -0
  35. package/dist/cjs/components/Card.js +3 -2
  36. package/dist/cjs/components/Cell.js +10 -9
  37. package/dist/cjs/components/Checkbox.js +4 -3
  38. package/dist/cjs/components/Checkmark.js +65 -0
  39. package/dist/cjs/components/Chips.js +5 -4
  40. package/dist/cjs/components/Choice.js +11 -10
  41. package/dist/cjs/components/Code.js +4 -3
  42. package/dist/cjs/components/CookiesWarning.js +11 -10
  43. package/dist/cjs/components/DadataHintField.js +2 -1
  44. package/dist/cjs/components/DatePicker.js +17 -16
  45. package/dist/cjs/components/Divider.js +1 -0
  46. package/dist/cjs/components/Dot.js +1 -0
  47. package/dist/cjs/components/Dropdown.js +4 -3
  48. package/dist/cjs/components/Flex.js +3 -2
  49. package/dist/cjs/components/Grid.js +3 -2
  50. package/dist/cjs/components/Group.js +2 -1
  51. package/dist/cjs/components/HTMLContent.js +1 -0
  52. package/dist/cjs/components/HeroTitle.js +2 -1
  53. package/dist/cjs/components/Icon.js +6 -5
  54. package/dist/cjs/components/Image.js +1 -0
  55. package/dist/cjs/components/Input.js +2 -1
  56. package/dist/cjs/components/InputMask.js +2 -1
  57. package/dist/cjs/components/InputPassword.js +6 -5
  58. package/dist/cjs/components/Label.js +5 -4
  59. package/dist/cjs/components/Link.js +2 -1
  60. package/dist/cjs/components/List.js +2 -1
  61. package/dist/cjs/components/Loader.js +3 -2
  62. package/dist/cjs/components/Logo.js +3 -2
  63. package/dist/cjs/components/Menu.js +5 -4
  64. package/dist/cjs/components/MenuItem.js +4 -3
  65. package/dist/cjs/components/Modal.js +6 -5
  66. package/dist/cjs/components/ModalSheetBottom.js +1 -0
  67. package/dist/cjs/components/Notification.js +4 -5
  68. package/dist/cjs/components/Overlay.js +1 -0
  69. package/dist/cjs/components/Pagination.js +29 -28
  70. package/dist/cjs/components/Panel.js +3 -2
  71. package/dist/cjs/components/Radio.js +4 -3
  72. package/dist/cjs/components/RangeSlider.js +1 -0
  73. package/dist/cjs/components/Response.js +82 -57
  74. package/dist/cjs/components/SVGContent.js +1 -0
  75. package/dist/cjs/components/ScrollOnDrag.js +1 -0
  76. package/dist/cjs/components/ScrollToView.js +2 -1
  77. package/dist/cjs/components/Scrollbar.js +1 -1
  78. package/dist/cjs/components/Search.js +10 -9
  79. package/dist/cjs/components/Segmented.js +14 -13
  80. package/dist/cjs/components/Select.js +28 -12
  81. package/dist/cjs/components/SiteMenu.js +7 -6
  82. package/dist/cjs/components/Swiper.js +9 -8
  83. package/dist/cjs/components/Tab.js +10 -9
  84. package/dist/cjs/components/Text.js +2 -1
  85. package/dist/cjs/components/Textarea.js +1 -0
  86. package/dist/cjs/components/Tile.js +5 -4
  87. package/dist/cjs/components/Title.js +2 -1
  88. package/dist/cjs/components/Tooltip.js +4 -3
  89. package/dist/cjs/components/Video.js +1 -0
  90. package/dist/cjs/components/Wrapper.js +2 -1
  91. package/dist/cjs/context/Notifications.js +6 -6
  92. package/dist/cjs/context/UIContext.js +6 -1
  93. package/dist/cjs/hooks/useDeviceTargetClass.js +1 -0
  94. package/dist/cjs/hooks/useDeviceTargetClassGenerator.interface.js +1 -0
  95. package/dist/cjs/hooks/useDeviceTargetClassGenerator.js +5 -4
  96. package/dist/cjs/hooks/useMediaQueries.js +0 -12
  97. package/dist/cjs/hooks/useStyles.js +1 -0
  98. package/dist/cjs/hooks.js +0 -1
  99. package/dist/cjs/utils/setViewportProperty.js +8 -0
  100. package/dist/cjs/utils.js +7 -0
  101. package/dist/components/Accordion.js +9 -8
  102. package/dist/components/Avatar.js +11 -10
  103. package/dist/components/Badge.js +4 -3
  104. package/dist/components/Breadcrumbs.js +8 -7
  105. package/dist/components/Button.js +9 -8
  106. package/dist/components/Caption.js +2 -1
  107. package/dist/components/Card.js +4 -3
  108. package/dist/components/Cell.js +11 -10
  109. package/dist/components/Checkbox.js +5 -4
  110. package/dist/components/Checkmark.js +61 -0
  111. package/dist/components/Chips.js +6 -5
  112. package/dist/components/Choice.js +12 -11
  113. package/dist/components/Code.js +5 -4
  114. package/dist/components/CookiesWarning.js +12 -11
  115. package/dist/components/DadataHintField.js +3 -2
  116. package/dist/components/DatePicker.js +18 -17
  117. package/dist/components/Divider.js +2 -1
  118. package/dist/components/Dot.js +2 -1
  119. package/dist/components/Dropdown.js +5 -4
  120. package/dist/components/Flex.js +4 -3
  121. package/dist/components/Grid.js +4 -3
  122. package/dist/components/Group.js +3 -2
  123. package/dist/components/HTMLContent.js +2 -1
  124. package/dist/components/HeroTitle.js +3 -2
  125. package/dist/components/Icon.js +7 -6
  126. package/dist/components/Image.js +2 -1
  127. package/dist/components/Input.js +3 -2
  128. package/dist/components/InputMask.js +3 -2
  129. package/dist/components/InputPassword.js +7 -6
  130. package/dist/components/Label.js +6 -5
  131. package/dist/components/Link.js +3 -2
  132. package/dist/components/List.js +3 -2
  133. package/dist/components/Loader.js +4 -3
  134. package/dist/components/Logo.js +4 -3
  135. package/dist/components/Menu.js +6 -5
  136. package/dist/components/MenuItem.js +5 -4
  137. package/dist/components/Modal.js +7 -6
  138. package/dist/components/ModalSheetBottom.js +2 -1
  139. package/dist/components/Notification.js +5 -6
  140. package/dist/components/Overlay.js +2 -1
  141. package/dist/components/Pagination.js +30 -29
  142. package/dist/components/Panel.js +4 -3
  143. package/dist/components/Radio.js +5 -4
  144. package/dist/components/RangeSlider.js +2 -1
  145. package/dist/components/Response.js +83 -58
  146. package/dist/components/SVGContent.js +2 -1
  147. package/dist/components/ScrollOnDrag.js +2 -1
  148. package/dist/components/ScrollToView.js +3 -2
  149. package/dist/components/Scrollbar.js +1 -1
  150. package/dist/components/Search.js +11 -10
  151. package/dist/components/Segmented.js +15 -14
  152. package/dist/components/Select.js +29 -13
  153. package/dist/components/SiteMenu.js +8 -7
  154. package/dist/components/Swiper.js +10 -9
  155. package/dist/components/Tab.js +11 -10
  156. package/dist/components/Text.js +3 -2
  157. package/dist/components/Textarea.js +2 -1
  158. package/dist/components/Tile.js +6 -5
  159. package/dist/components/Title.js +3 -2
  160. package/dist/components/Tooltip.js +5 -4
  161. package/dist/components/Video.js +1 -0
  162. package/dist/components/Wrapper.js +3 -2
  163. package/dist/context/Notifications.js +7 -7
  164. package/dist/context/UIContext.js +7 -2
  165. package/dist/css/components/Checkmark/Checkmark.css +30 -0
  166. package/dist/css/components/Checkmark/Checkmark.tokens.css +16 -0
  167. package/dist/css/components/Code/Code.css +2 -1
  168. package/dist/css/components/Dropdown/Dropdown.css +1 -1
  169. package/dist/css/components/Notification/Notification.css +6 -2
  170. package/dist/css/components/Notification/css/__item/notification__item_set_form.css +6 -2
  171. package/dist/css/components/Pagination/Pagination.css +4 -4
  172. package/dist/css/components/Pagination/css/__item/pagination__item_state_active.css +4 -4
  173. package/dist/css/components/Response/Response.css +10 -2
  174. package/dist/css/components/Swiper/Swiper.css +2 -2
  175. package/dist/css/components/Switch/Switch.css +1 -1
  176. package/dist/css/components/Tile/Tile.css +1 -1
  177. package/dist/css/tokens/colors.css +9 -0
  178. package/dist/hooks/useDeviceTargetClass.js +1 -0
  179. package/dist/hooks/useDeviceTargetClassGenerator.interface.js +1 -1
  180. package/dist/hooks/useDeviceTargetClassGenerator.js +6 -5
  181. package/dist/hooks/useMediaQueries.js +0 -12
  182. package/dist/hooks/useStyles.js +1 -0
  183. package/dist/hooks.js +1 -1
  184. package/dist/stories/Checkmark.mdx +11 -0
  185. package/dist/stories/Overview.mdx +5 -5
  186. package/dist/stories/Playground.mdx +4 -4
  187. package/dist/{tslib.es6-5FtW-kfi.js → tslib.es6-Bwu1Cn-t.js} +1 -1
  188. package/dist/types/components/Badge/stories/args.d.ts +69 -0
  189. package/dist/types/components/Checkmark/Checkmark.appearance.d.ts +2 -0
  190. package/dist/types/components/Checkmark/Checkmark.d.ts +4 -0
  191. package/dist/types/components/Checkmark/Checkmark.interface.d.ts +29 -0
  192. package/dist/types/components/Checkmark/index.d.ts +2 -0
  193. package/dist/types/components/Notification/Notification.interface.d.ts +3 -3
  194. package/dist/types/components/Select/index.d.ts +15 -15
  195. package/dist/types/utils/index.d.ts +2 -0
  196. package/dist/types/utils/setViewportProperty.d.ts +2 -0
  197. package/dist/utils/setViewportProperty.js +6 -0
  198. package/dist/utils.js +1 -0
  199. package/package.json +29 -53
@@ -1,4 +1,4 @@
1
- import { b as __spreadArray } from '../tslib.es6-5FtW-kfi.js';
1
+ import { a as __spreadArray } from '../tslib.es6-Bwu1Cn-t.js';
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import React, { useCallback, useState, useMemo } from 'react';
4
4
  import clsx from 'clsx';
@@ -7,19 +7,20 @@ import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGene
7
7
  import { useStyles } from '../hooks/useStyles.js';
8
8
  import { icon16 } from '@itcase/icons/default';
9
9
  import { D as Divider } from '../Divider-DBvDCUqP.js';
10
- import { I as Icon } from '../Icon-DotE-03d.js';
11
- import { T as Text } from '../Text-D9sEeRE4.js';
10
+ import { I as Icon } from '../Icon-BZa8B7te.js';
11
+ import { T as Text } from '../Text-JayJa3hj.js';
12
12
  import 'lodash/camelCase';
13
13
  import '../context/UIContext.js';
14
14
  import '../hooks/useMediaQueries.js';
15
15
  import 'react-responsive';
16
+ import '../utils/setViewportProperty.js';
16
17
  import 'lodash/maxBy';
17
18
  import 'lodash/upperFirst';
18
19
  import '../hooks/styleAttributes.js';
19
20
  import 'react-inlinesvg';
20
- import '../Link-C53o3P6_.js';
21
- import '../Tooltip-BsbXMzGd.js';
22
- import '../Title-Cl95USIn.js';
21
+ import '../Link-DN2LhPjD.js';
22
+ import '../Tooltip-1Jbub0K6.js';
23
+ import '../Title-CHgrIarR.js';
23
24
 
24
25
  var accordionAppearance = {
25
26
  dev: {},
@@ -35,7 +36,7 @@ var accordionItemConfig = {
35
36
  },
36
37
  };
37
38
  function AccordionItem(props) {
38
- var id = props.id, children = props.children, isExpanded = props.isExpanded, afterContent = props.afterContent, appearance = props.appearance, beforeContent = props.beforeContent, className = props.className, content = props.content, contentTextColor = props.contentTextColor, contentTextSize = props.contentTextSize, contentTextWeight = props.contentTextWeight, dividerDirection = props.dividerDirection, dividerFill = props.dividerFill, dividerSize = props.dividerSize, icon = props.icon, _a = props.iconFill, iconFill = _a === undefined ? 'surfaceItemAccent' : _a, showDivider = props.showDivider, size = props.size, title = props.title, titleTextColor = props.titleTextColor, titleTextSize = props.titleTextSize, titleTextWeight = props.titleTextWeight, onClick = props.onClick;
39
+ var id = props.id, children = props.children, isExpanded = props.isExpanded, afterContent = props.afterContent, appearance = props.appearance, beforeContent = props.beforeContent, className = props.className, content = props.content, contentTextColor = props.contentTextColor, contentTextSize = props.contentTextSize, contentTextWeight = props.contentTextWeight, dividerDirection = props.dividerDirection, dividerFill = props.dividerFill, dividerSize = props.dividerSize, icon = props.icon, _a = props.iconFill, iconFill = _a === void 0 ? 'surfaceItemAccent' : _a, showDivider = props.showDivider, size = props.size, title = props.title, titleTextColor = props.titleTextColor, titleTextSize = props.titleTextSize, titleTextWeight = props.titleTextWeight, onClick = props.onClick;
39
40
  var onClickTitle = useCallback(function () {
40
41
  // "!isExpanded" - is next state of expanded
41
42
  var thisItemData = {
@@ -63,7 +64,7 @@ var accordionConfig = {
63
64
  },
64
65
  };
65
66
  function Accordion(props) {
66
- var children = props.children, isMultiple = props.isMultiple, appearance = props.appearance, className = props.className, _a = props.initial, initial = _a === undefined ? [] : _a, items = props.items, onClickItem = props.onClickItem;
67
+ var children = props.children, isMultiple = props.isMultiple, appearance = props.appearance, className = props.className, _a = props.initial, initial = _a === void 0 ? [] : _a, items = props.items, onClickItem = props.onClickItem;
67
68
  var _b = useState(function () { return castArray(initial); }), expandedItems = _b[0], setExpandedItems = _b[1];
68
69
  var onClickAccordionItem = useCallback(function (targetItem) {
69
70
  setExpandedItems(function (prevState) {
@@ -2,23 +2,24 @@ import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { useMemo } from 'react';
3
3
  import clsx from 'clsx';
4
4
  import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
5
- import { I as Icon } from '../Icon-DotE-03d.js';
5
+ import { I as Icon } from '../Icon-BZa8B7te.js';
6
6
  import { I as Image } from '../Image-D-QHhsrC.js';
7
- import { T as Text } from '../Text-D9sEeRE4.js';
8
- import '../tslib.es6-5FtW-kfi.js';
7
+ import { T as Text } from '../Text-JayJa3hj.js';
8
+ import '../tslib.es6-Bwu1Cn-t.js';
9
9
  import 'lodash/camelCase';
10
10
  import 'lodash/castArray';
11
11
  import '../context/UIContext.js';
12
12
  import '../hooks/useMediaQueries.js';
13
13
  import 'react-responsive';
14
+ import '../utils/setViewportProperty.js';
14
15
  import 'react-inlinesvg';
15
16
  import '../hooks/useStyles.js';
16
17
  import 'lodash/maxBy';
17
18
  import 'lodash/upperFirst';
18
19
  import '../hooks/styleAttributes.js';
19
- import '../Link-C53o3P6_.js';
20
- import '../Tooltip-BsbXMzGd.js';
21
- import '../Title-Cl95USIn.js';
20
+ import '../Link-DN2LhPjD.js';
21
+ import '../Tooltip-1Jbub0K6.js';
22
+ import '../Title-CHgrIarR.js';
22
23
 
23
24
  var avatarAppearance = {
24
25
  dev: {},
@@ -31,17 +32,17 @@ var avatarConfig = {
31
32
  },
32
33
  };
33
34
  function Avatar(props) {
34
- var after = props.after, appearance = props.appearance, before = props.before, className = props.className, Dot = props.Dot, _a = props.firstName, firstName = _a === undefined ? '' : _a, icon = props.icon, iconFill = props.iconFill, iconFillHover = props.iconFillHover, iconFillSize = props.iconFillSize, iconItemFill = props.iconItemFill, iconShape = props.iconShape, iconSize = props.iconSize, iconSrc = props.iconSrc, mode = props.mode, _b = props.secondName, secondName = _b === undefined ? '' : _b, _c = props.size, size = _c === undefined ? '96' : _c, src = props.src, _d = props.textColor, textColor = _d === undefined ? 'surfaceTextTertiary' : _d, _e = props.textSize, textSize = _e === undefined ? 'l' : _e, _f = props.textWeight, textWeight = _f === undefined ? '600' : _f, type = props.type, onClick = props.onClick;
35
+ var after = props.after, appearance = props.appearance, before = props.before, className = props.className, Dot = props.Dot, _a = props.firstName, firstName = _a === void 0 ? '' : _a, icon = props.icon, iconFill = props.iconFill, iconFillHover = props.iconFillHover, iconFillSize = props.iconFillSize, iconItemFill = props.iconItemFill, iconShape = props.iconShape, iconSize = props.iconSize, iconSrc = props.iconSrc, mode = props.mode, _b = props.secondName, secondName = _b === void 0 ? '' : _b, _c = props.size, size = _c === void 0 ? '96' : _c, src = props.src, _d = props.textColor, textColor = _d === void 0 ? 'surfaceTextTertiary' : _d, _e = props.textSize, textSize = _e === void 0 ? 'l' : _e, _f = props.textWeight, textWeight = _f === void 0 ? '600' : _f, type = props.type, onClick = props.onClick;
35
36
  var avatarChars = useMemo(function () {
36
- var firstChar = ((firstName === null || firstName === undefined ? undefined : firstName[0]) || '').toUpperCase();
37
- var secondChar = ((secondName === null || secondName === undefined ? undefined : secondName[0]) || '').toUpperCase();
37
+ var firstChar = ((firstName === null || firstName === void 0 ? void 0 : firstName[0]) || '').toUpperCase();
38
+ var secondChar = ((secondName === null || secondName === void 0 ? void 0 : secondName[0]) || '').toUpperCase();
38
39
  return "".concat(firstChar).concat(secondChar);
39
40
  }, [firstName, secondName]);
40
41
  // @ts-expect-error
41
42
  var appearanceConfig = avatarConfig.appearance && avatarConfig.appearance[appearance];
42
43
  var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
43
44
  var fillClass = classGenerator.fillClass, fillHoverClass = classGenerator.fillHoverClass, shapeClass = classGenerator.shapeClass;
44
- return (jsx("div", { className: clsx(className, 'avatar', shapeClass && "avatar_shape_".concat(shapeClass), mode && "avatar_mode_".concat(mode), size && "avatar_size_".concat(size), type && "avatar_type_".concat(type), Dot && 'avatar_status', onClick && 'cursor_type_pointer'), onClick: onClick, children: jsxs("div", { className: clsx('avatar__wrapper', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), children: [before, src ? (jsx(Image, { className: "avatar__image", shape: "geometric", src: src })) : (jsx(Text, { className: "avatar__name", size: textSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.textSize), textColor: textColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.textColor), textWeight: textWeight || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.textWeight), children: avatarChars })), (icon || iconSrc) && (jsx(Icon, { className: "avatar__icon", fill: iconFill || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconFill), fillHover: iconFillHover || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconFillHover), fillSize: iconFillSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconFillSize), iconFill: iconItemFill || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconItemFill), iconSize: iconSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconSize), imageSrc: iconSrc || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconSrc), shape: iconShape || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconShape), SvgImage: icon || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.icon) })), Dot, after] }) }));
45
+ return (jsx("div", { className: clsx(className, 'avatar', shapeClass && "avatar_shape_".concat(shapeClass), mode && "avatar_mode_".concat(mode), size && "avatar_size_".concat(size), type && "avatar_type_".concat(type), Dot && 'avatar_status', onClick && 'cursor_type_pointer'), onClick: onClick, children: jsxs("div", { className: clsx('avatar__wrapper', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), children: [before, src ? (jsx(Image, { className: "avatar__image", shape: "geometric", src: src })) : (jsx(Text, { className: "avatar__name", size: textSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textSize), textColor: textColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textColor), textWeight: textWeight || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textWeight), children: avatarChars })), (icon || iconSrc) && (jsx(Icon, { className: "avatar__icon", fill: iconFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconFill), fillHover: iconFillHover || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconFillHover), fillSize: iconFillSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconFillSize), iconFill: iconItemFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconItemFill), iconSize: iconSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconSize), imageSrc: iconSrc || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconSrc), shape: iconShape || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconShape), SvgImage: icon || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.icon) })), Dot, after] }) }));
45
46
  }
46
47
 
47
48
  export { Avatar, avatarAppearance, avatarConfig };
@@ -1,16 +1,17 @@
1
- export { B as Badge, b as badgeAppearance, a as badgeConfig } from '../Badge-Bcj5H3vs.js';
1
+ export { B as Badge, b as badgeAppearance, a as badgeConfig } from '../Badge-CcaG-4ly.js';
2
+ import '../tslib.es6-Bwu1Cn-t.js';
2
3
  import 'react/jsx-runtime';
3
4
  import 'clsx';
4
5
  import '../hooks/useDeviceTargetClassGenerator.js';
5
- import '../tslib.es6-5FtW-kfi.js';
6
6
  import 'react';
7
7
  import 'lodash/camelCase';
8
8
  import 'lodash/castArray';
9
9
  import '../context/UIContext.js';
10
10
  import '../hooks/useMediaQueries.js';
11
11
  import 'react-responsive';
12
+ import '../utils/setViewportProperty.js';
12
13
  import '../hooks/useStyles.js';
13
14
  import 'lodash/maxBy';
14
15
  import 'lodash/upperFirst';
15
16
  import '../hooks/styleAttributes.js';
16
- import '../Text-D9sEeRE4.js';
17
+ import '../Text-JayJa3hj.js';
@@ -1,26 +1,27 @@
1
- import { a as __rest, _ as __assign } from '../tslib.es6-5FtW-kfi.js';
1
+ import { b as __rest, _ as __assign } from '../tslib.es6-Bwu1Cn-t.js';
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { useMemo } from 'react';
4
4
  import clsx from 'clsx';
5
5
  import camelCase from 'lodash/camelCase';
6
6
  import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
7
7
  import { useStyles } from '../hooks/useStyles.js';
8
- import { I as Icon } from '../Icon-DotE-03d.js';
9
- import { a as LinkWrapper } from '../Link-C53o3P6_.js';
10
- import { T as Text } from '../Text-D9sEeRE4.js';
8
+ import { I as Icon } from '../Icon-BZa8B7te.js';
9
+ import { L as LinkWrapper } from '../Link-DN2LhPjD.js';
10
+ import { T as Text } from '../Text-JayJa3hj.js';
11
11
  import 'lodash/castArray';
12
12
  import '../context/UIContext.js';
13
13
  import '../hooks/useMediaQueries.js';
14
14
  import 'react-responsive';
15
+ import '../utils/setViewportProperty.js';
15
16
  import 'lodash/maxBy';
16
17
  import 'lodash/upperFirst';
17
18
  import '../hooks/styleAttributes.js';
18
19
  import 'react-inlinesvg';
19
- import '../Tooltip-BsbXMzGd.js';
20
- import '../Title-Cl95USIn.js';
20
+ import '../Tooltip-1Jbub0K6.js';
21
+ import '../Title-CHgrIarR.js';
21
22
 
22
23
  function BreadcrumbsItem(props) {
23
- var children = props.children, cursor = props.cursor, className = props.className, href = props.href, iconAfter = props.iconAfter, iconAfterBgFill = props.iconAfterBgFill, iconAfterFill = props.iconAfterFill, iconAfterSize = props.iconAfterSize, _a = props.set, set = _a === undefined ? 'default' : _a, text = props.text, textColor = props.textColor, textColorHover = props.textColorHover, textSize = props.textSize, onClick = props.onClick;
24
+ var children = props.children, cursor = props.cursor, className = props.className, href = props.href, iconAfter = props.iconAfter, iconAfterBgFill = props.iconAfterBgFill, iconAfterFill = props.iconAfterFill, iconAfterSize = props.iconAfterSize, _a = props.set, set = _a === void 0 ? 'default' : _a, text = props.text, textColor = props.textColor, textColorHover = props.textColorHover, textSize = props.textSize, onClick = props.onClick;
24
25
  var classGenerator = useDeviceTargetClassGenerator(props);
25
26
  var fillClass = classGenerator.fillClass, positionClass = classGenerator.positionClass, shapeClass = classGenerator.shapeClass, underlineClass = classGenerator.underlineClass;
26
27
  // @ts-expect-error
@@ -1,22 +1,23 @@
1
- export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button-Bn8Mjoeh.js';
1
+ export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button-BSzqA8CB.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
5
5
  import '../hooks/useDeviceTargetClassGenerator.js';
6
- import '../tslib.es6-5FtW-kfi.js';
6
+ import '../tslib.es6-Bwu1Cn-t.js';
7
7
  import 'lodash/camelCase';
8
8
  import 'lodash/castArray';
9
9
  import '../context/UIContext.js';
10
10
  import '../hooks/useMediaQueries.js';
11
11
  import 'react-responsive';
12
+ import '../utils/setViewportProperty.js';
12
13
  import '../hooks/useStyles.js';
13
14
  import 'lodash/maxBy';
14
15
  import 'lodash/upperFirst';
15
16
  import '../hooks/styleAttributes.js';
16
- import '../Icon-DotE-03d.js';
17
+ import '../Icon-BZa8B7te.js';
17
18
  import 'react-inlinesvg';
18
- import '../Link-C53o3P6_.js';
19
- import '../Tooltip-BsbXMzGd.js';
20
- import '../Text-D9sEeRE4.js';
21
- import '../Title-Cl95USIn.js';
22
- import '../Loader-Cm98w6lJ.js';
19
+ import '../Link-DN2LhPjD.js';
20
+ import '../Tooltip-1Jbub0K6.js';
21
+ import '../Text-JayJa3hj.js';
22
+ import '../Title-CHgrIarR.js';
23
+ import '../Loader-K_DJmah6.js';
@@ -2,13 +2,14 @@ import { jsx } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
3
  import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
4
4
  import { useStyles } from '../hooks/useStyles.js';
5
- import '../tslib.es6-5FtW-kfi.js';
5
+ import '../tslib.es6-Bwu1Cn-t.js';
6
6
  import 'react';
7
7
  import 'lodash/camelCase';
8
8
  import 'lodash/castArray';
9
9
  import '../context/UIContext.js';
10
10
  import '../hooks/useMediaQueries.js';
11
11
  import 'react-responsive';
12
+ import '../utils/setViewportProperty.js';
12
13
  import 'lodash/maxBy';
13
14
  import 'lodash/upperFirst';
14
15
  import '../hooks/styleAttributes.js';
@@ -2,21 +2,22 @@ import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
3
  import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
4
4
  import { I as Image } from '../Image-D-QHhsrC.js';
5
- import { T as Text } from '../Text-D9sEeRE4.js';
6
- import '../tslib.es6-5FtW-kfi.js';
5
+ import { T as Text } from '../Text-JayJa3hj.js';
6
+ import '../tslib.es6-Bwu1Cn-t.js';
7
7
  import 'react';
8
8
  import 'lodash/camelCase';
9
9
  import 'lodash/castArray';
10
10
  import '../context/UIContext.js';
11
11
  import '../hooks/useMediaQueries.js';
12
12
  import 'react-responsive';
13
+ import '../utils/setViewportProperty.js';
13
14
  import '../hooks/useStyles.js';
14
15
  import 'lodash/maxBy';
15
16
  import 'lodash/upperFirst';
16
17
  import '../hooks/styleAttributes.js';
17
18
 
18
19
  function Card(props) {
19
- var children = props.children, className = props.className, image = props.image, _a = props.imageShape, imageShape = _a === undefined ? 'rounded' : _a, size = props.size, src = props.src, text = props.text, _b = props.textColor, textColor = _b === undefined ? 'surfaceTextPrimary' : _b, _c = props.textSize, textSize = _c === undefined ? 'p' : _c, textTag = props.textTag, title = props.title, _d = props.titleColor, titleColor = _d === undefined ? 'surfaceTextPrimary' : _d, _e = props.titleSize, titleSize = _e === undefined ? 'h5' : _e, _f = props.titleTag, titleTag = _f === undefined ? 'span' : _f, type = props.type, onClick = props.onClick;
20
+ var children = props.children, className = props.className, image = props.image, _a = props.imageShape, imageShape = _a === void 0 ? 'rounded' : _a, size = props.size, src = props.src, text = props.text, _b = props.textColor, textColor = _b === void 0 ? 'surfaceTextPrimary' : _b, _c = props.textSize, textSize = _c === void 0 ? 'p' : _c, textTag = props.textTag, title = props.title, _d = props.titleColor, titleColor = _d === void 0 ? 'surfaceTextPrimary' : _d, _e = props.titleSize, titleSize = _e === void 0 ? 'h5' : _e, _f = props.titleTag, titleTag = _f === void 0 ? 'span' : _f, type = props.type, onClick = props.onClick;
20
21
  var classGenerator = useDeviceTargetClassGenerator(props);
21
22
  var shapeClass = classGenerator.shapeClass, widthClass = classGenerator.widthClass;
22
23
  return (jsx("div", { className: clsx(className, 'card', shapeClass && "card_shape_".concat(shapeClass), size && "card_size_".concat(size), type && "card_type_".concat(type), widthClass && "resize-horizontal_".concat(widthClass)), onClick: onClick, children: jsxs("div", { className: "card__wrapper", children: [image, src && jsx(Image, { className: "card__image", shape: imageShape, src: src }), jsxs("div", { className: "card__data", children: [title && (jsx(Text, { className: "card__data-title", size: titleSize, tag: titleTag, textColor: titleColor, children: title })), text && (jsx(Text, { className: "card__data-desc", size: textSize, tag: textTag, textColor: textColor, children: text }))] }), children] }) }));
@@ -2,23 +2,24 @@ import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
3
  import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
4
4
  import { useStyles } from '../hooks/useStyles.js';
5
- import { I as Icon } from '../Icon-DotE-03d.js';
6
- import { L as Label } from '../Label-9O3dQlUa.js';
7
- import { T as Text } from '../Text-D9sEeRE4.js';
8
- import '../tslib.es6-5FtW-kfi.js';
5
+ import { I as Icon } from '../Icon-BZa8B7te.js';
6
+ import { L as Label } from '../Label-DQyB2ThM.js';
7
+ import { T as Text } from '../Text-JayJa3hj.js';
8
+ import '../tslib.es6-Bwu1Cn-t.js';
9
9
  import 'react';
10
10
  import 'lodash/camelCase';
11
11
  import 'lodash/castArray';
12
12
  import '../context/UIContext.js';
13
13
  import '../hooks/useMediaQueries.js';
14
14
  import 'react-responsive';
15
+ import '../utils/setViewportProperty.js';
15
16
  import 'lodash/maxBy';
16
17
  import 'lodash/upperFirst';
17
18
  import '../hooks/styleAttributes.js';
18
19
  import 'react-inlinesvg';
19
- import '../Link-C53o3P6_.js';
20
- import '../Tooltip-BsbXMzGd.js';
21
- import '../Title-Cl95USIn.js';
20
+ import '../Link-DN2LhPjD.js';
21
+ import '../Tooltip-1Jbub0K6.js';
22
+ import '../Title-CHgrIarR.js';
22
23
 
23
24
  var cellAppearance = {
24
25
  dev: {},
@@ -31,14 +32,14 @@ var cellConfig = {
31
32
  },
32
33
  };
33
34
  function Cell(props) {
34
- var isActive = props.isActive, _a = props.isDisabled, isDisabled = _a === undefined ? false : _a, isEqual = props.isEqual, after = props.after, appearance = props.appearance, before = props.before, className = props.className, mode = props.mode, reverse = props.reverse, set = props.set, showTitleLabel = props.showTitleLabel, showValueLabel = props.showValueLabel, size = props.size, title = props.title, titleIcon = props.titleIcon, titleIconFill = props.titleIconFill, titleIconFillHover = props.titleIconFillHover, titleIconFillSize = props.titleIconFillSize, titleIconItemFill = props.titleIconItemFill, titleIconShape = props.titleIconShape, titleIconSrc = props.titleIconSrc, titleLabel = props.titleLabel, titleLabelAppearance = props.titleLabelAppearance, titleLabelShape = props.titleLabelShape, titleLabelSize = props.titleLabelSize, titleLabelTextSize = props.titleLabelTextSize, titleTag = props.titleTag, titleTextColor = props.titleTextColor, titleTextSize = props.titleTextSize, titleTextTruncate = props.titleTextTruncate, titleTextWeight = props.titleTextWeight, titleTextWrap = props.titleTextWrap, value = props.value, valueIcon = props.valueIcon, valueIconFill = props.valueIconFill, valueIconFillHover = props.valueIconFillHover, valueIconFillSize = props.valueIconFillSize, valueIconItemFill = props.valueIconItemFill, valueIconShape = props.valueIconShape, valueIconSrc = props.valueIconSrc, valueLabel = props.valueLabel, valueLabelAppearance = props.valueLabelAppearance, valueLabelShape = props.valueLabelShape, valueLabelSize = props.valueLabelSize, valueLabelTextSize = props.valueLabelTextSize, valueTag = props.valueTag, valueTextAlign = props.valueTextAlign, valueTextColor = props.valueTextColor, valueTextSize = props.valueTextSize, valueTextTruncate = props.valueTextTruncate, valueTextWeight = props.valueTextWeight, valueTextWrap = props.valueTextWrap, zeroGap = props.zeroGap, zeroPadding = props.zeroPadding, onClick = props.onClick, onMouseEnter = props.onMouseEnter;
35
+ var isActive = props.isActive, _a = props.isDisabled, isDisabled = _a === void 0 ? false : _a, isEqual = props.isEqual, after = props.after, appearance = props.appearance, before = props.before, className = props.className, mode = props.mode, reverse = props.reverse, set = props.set, showTitleLabel = props.showTitleLabel, showValueLabel = props.showValueLabel, size = props.size, title = props.title, titleIcon = props.titleIcon, titleIconFill = props.titleIconFill, titleIconFillHover = props.titleIconFillHover, titleIconFillSize = props.titleIconFillSize, titleIconItemFill = props.titleIconItemFill, titleIconShape = props.titleIconShape, titleIconSrc = props.titleIconSrc, titleLabel = props.titleLabel, titleLabelAppearance = props.titleLabelAppearance, titleLabelShape = props.titleLabelShape, titleLabelSize = props.titleLabelSize, titleLabelTextSize = props.titleLabelTextSize, titleTag = props.titleTag, titleTextColor = props.titleTextColor, titleTextSize = props.titleTextSize, titleTextTruncate = props.titleTextTruncate, titleTextWeight = props.titleTextWeight, titleTextWrap = props.titleTextWrap, value = props.value, valueIcon = props.valueIcon, valueIconFill = props.valueIconFill, valueIconFillHover = props.valueIconFillHover, valueIconFillSize = props.valueIconFillSize, valueIconItemFill = props.valueIconItemFill, valueIconShape = props.valueIconShape, valueIconSrc = props.valueIconSrc, valueLabel = props.valueLabel, valueLabelAppearance = props.valueLabelAppearance, valueLabelShape = props.valueLabelShape, valueLabelSize = props.valueLabelSize, valueLabelTextSize = props.valueLabelTextSize, valueTag = props.valueTag, valueTextAlign = props.valueTextAlign, valueTextColor = props.valueTextColor, valueTextSize = props.valueTextSize, valueTextTruncate = props.valueTextTruncate, valueTextWeight = props.valueTextWeight, valueTextWrap = props.valueTextWrap, zeroGap = props.zeroGap, zeroPadding = props.zeroPadding, onClick = props.onClick, onMouseEnter = props.onMouseEnter;
35
36
  // @ts-expect-error
36
37
  var appearanceConfig = cellConfig.appearance && cellConfig.appearance[appearance];
37
38
  var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
38
39
  var bgFillActiveClass = classGenerator.bgFillActiveClass, bgFillClass = classGenerator.bgFillClass, bgFillDisabledClass = classGenerator.bgFillDisabledClass, bgFillHoverClass = classGenerator.bgFillHoverClass, bgShapeClass = classGenerator.bgShapeClass, directionClass = classGenerator.directionClass, fillActiveClass = classGenerator.fillActiveClass, fillClass = classGenerator.fillClass, fillDisabledClass = classGenerator.fillDisabledClass, fillHoverClass = classGenerator.fillHoverClass, gapClass = classGenerator.gapClass, shapeClass = classGenerator.shapeClass, widthClass = classGenerator.widthClass;
39
40
  // @ts-expect-error
40
- var cellStyles = useStyles(props).styles;
41
- return (jsxs("div", { className: clsx(className, 'cell', mode && "cell_mode_".concat(mode), size && "cell_size_".concat(size), set && "cell_set_".concat(set), bgFillClass && "fill_".concat(bgFillClass), bgFillHoverClass && "fill_hover_".concat(bgFillHoverClass), isActive && bgFillActiveClass && "fill_active_".concat(bgFillActiveClass), isDisabled && bgFillDisabledClass && "fill_disabled_".concat(bgFillDisabledClass), bgShapeClass && "cell_shape_".concat(bgShapeClass), widthClass && "width_".concat(widthClass), gapClass && "gap_".concat(gapClass), zeroPadding && 'cell_reset-padding', zeroGap && 'cell_reset-gap', reverse && 'cell_reverse'), style: cellStyles, onClick: onClick, onMouseEnter: onMouseEnter, children: [before && jsx("div", { className: "cell__before", children: before }), jsxs("div", { className: clsx('cell__wrapper', directionClass && "cell__wrapper_direction_".concat(directionClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), isActive && fillActiveClass && "fill_active_".concat(fillActiveClass), isDisabled && fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), shapeClass && "cell__wrapper_shape_".concat(shapeClass), isEqual && 'cell__wrapper-equal'), children: [title && (jsxs("div", { className: "cell__data", children: [jsx(Text, { className: "cell__title", size: titleTextSize, tag: titleTag, textColor: titleTextColor, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title }), (titleIcon || titleIconSrc) && (jsx(Icon, { className: "cell__icon", fill: titleIconFill, fillSize: titleIconFillSize, iconFill: titleIconItemFill, iconFillHover: titleIconFillHover, imageSrc: titleIconSrc, shape: titleIconShape, SvgImage: titleIcon })), showTitleLabel && (jsx(Label, { labelTextSize: titleLabelTextSize, appearance: titleLabelAppearance, label: titleLabel, shape: titleLabelShape, size: titleLabelSize }))] })), value && (jsxs("div", { className: "cell__data", children: [jsx(Text, { className: "cell__value", size: valueTextSize, tag: valueTag, textAlign: valueTextAlign, textColor: valueTextColor, textTruncate: valueTextTruncate, textWeight: valueTextWeight, textWrap: valueTextWrap, children: value }), (valueIcon || valueIconSrc) && (jsx(Icon, { className: "cell__icon", fill: valueIconFill, fillSize: valueIconFillSize, iconFill: valueIconItemFill, iconFillHover: valueIconFillHover, imageSrc: valueIconSrc, shape: valueIconShape, SvgImage: valueIcon })), showValueLabel && (jsx(Label, { labelTextSize: valueLabelTextSize, appearance: valueLabelAppearance, label: valueLabel, shape: valueLabelShape, size: valueLabelSize }))] }))] }), after && jsx("div", { className: "cell__after", children: after })] }));
41
+ var _b = useStyles(props), dataStyles = _b.data, cellStyles = _b.styles;
42
+ return (jsxs("div", { className: clsx(className, 'cell', mode && "cell_mode_".concat(mode), size && "cell_size_".concat(size), set && "cell_set_".concat(set), bgFillClass && "fill_".concat(bgFillClass), bgFillHoverClass && "fill_hover_".concat(bgFillHoverClass), isActive && bgFillActiveClass && "fill_active_".concat(bgFillActiveClass), isDisabled && bgFillDisabledClass && "fill_disabled_".concat(bgFillDisabledClass), bgShapeClass && "cell_shape_".concat(bgShapeClass), widthClass && "width_".concat(widthClass), gapClass && "gap_".concat(gapClass), zeroPadding && 'cell_reset-padding', zeroGap && 'cell_reset-gap', reverse && 'cell_reverse'), style: cellStyles, onClick: onClick, onMouseEnter: onMouseEnter, children: [before && jsx("div", { className: "cell__before", children: before }), jsxs("div", { className: clsx('cell__wrapper', directionClass && "cell__wrapper_direction_".concat(directionClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), isActive && fillActiveClass && "fill_active_".concat(fillActiveClass), isDisabled && fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), shapeClass && "cell__wrapper_shape_".concat(shapeClass), isEqual && 'cell__wrapper-equal'), children: [title && (jsxs("div", { className: "cell__data", style: dataStyles, children: [jsx(Text, { className: "cell__title", size: titleTextSize, tag: titleTag, textColor: titleTextColor, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title }), (titleIcon || titleIconSrc) && (jsx(Icon, { className: "cell__icon", fill: titleIconFill, fillSize: titleIconFillSize, iconFill: titleIconItemFill, iconFillHover: titleIconFillHover, imageSrc: titleIconSrc, shape: titleIconShape, SvgImage: titleIcon })), showTitleLabel && (jsx(Label, { labelTextSize: titleLabelTextSize, appearance: titleLabelAppearance, label: titleLabel, shape: titleLabelShape, size: titleLabelSize }))] })), value && (jsxs("div", { className: "cell__data", style: dataStyles, children: [jsx(Text, { className: "cell__value", size: valueTextSize, tag: valueTag, textAlign: valueTextAlign, textColor: valueTextColor, textTruncate: valueTextTruncate, textWeight: valueTextWeight, textWrap: valueTextWrap, children: value }), (valueIcon || valueIconSrc) && (jsx(Icon, { className: "cell__icon", fill: valueIconFill, fillSize: valueIconFillSize, iconFill: valueIconItemFill, iconFillHover: valueIconFillHover, imageSrc: valueIconSrc, shape: valueIconShape, SvgImage: valueIcon })), showValueLabel && (jsx(Label, { labelTextSize: valueLabelTextSize, appearance: valueLabelAppearance, label: valueLabel, shape: valueLabelShape, size: valueLabelSize }))] }))] }), after && jsx("div", { className: "cell__after", children: after })] }));
42
43
  }
43
44
 
44
45
  export { Cell, cellAppearance, cellConfig };
@@ -1,14 +1,15 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
3
  import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
4
- import { T as Text } from '../Text-D9sEeRE4.js';
5
- import '../tslib.es6-5FtW-kfi.js';
4
+ import { T as Text } from '../Text-JayJa3hj.js';
5
+ import '../tslib.es6-Bwu1Cn-t.js';
6
6
  import 'react';
7
7
  import 'lodash/camelCase';
8
8
  import 'lodash/castArray';
9
9
  import '../context/UIContext.js';
10
10
  import '../hooks/useMediaQueries.js';
11
11
  import 'react-responsive';
12
+ import '../utils/setViewportProperty.js';
12
13
  import '../hooks/useStyles.js';
13
14
  import 'lodash/maxBy';
14
15
  import 'lodash/upperFirst';
@@ -46,7 +47,7 @@ var checkboxConfig = {
46
47
  },
47
48
  };
48
49
  function Checkbox(props) {
49
- var id = props.id, after = props.after, appearance = props.appearance, before = props.before, checked = props.checked, className = props.className, desc = props.desc, descTextColor = props.descTextColor, descTextSize = props.descTextSize, descTextWeight = props.descTextWeight, disabled = props.disabled, label = props.label, labelTextColor = props.labelTextColor, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, _a = props.Tag, Tag = _a === undefined ? 'label' : _a, value = props.value, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
50
+ var id = props.id, after = props.after, appearance = props.appearance, before = props.before, checked = props.checked, className = props.className, desc = props.desc, descTextColor = props.descTextColor, descTextSize = props.descTextSize, descTextWeight = props.descTextWeight, disabled = props.disabled, label = props.label, labelTextColor = props.labelTextColor, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, _a = props.Tag, Tag = _a === void 0 ? 'label' : _a, value = props.value, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
50
51
  var appearanceConfig = checkboxConfig.appearance && checkboxConfig.appearance[appearance];
51
52
  var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
52
53
  var fillClass = classGenerator.fillClass, shapeClass = classGenerator.shapeClass, stateBorderWidthClass = classGenerator.stateBorderWidthClass, stateShapeClass = classGenerator.stateShapeClass, widthClass = classGenerator.widthClass;
@@ -59,7 +60,7 @@ function Checkbox(props) {
59
60
  var stateBorderColorDisabledClass = classGenerator.getClass(checked ? 'stateBorderColorDisabledChecked' : 'stateBorderColorDisabled', { prefix: 'border-color_' });
60
61
  return (jsxs(Tag, { className: clsx(className, 'checkbox', fillClass && "fill_".concat(fillClass), shapeClass && "checkbox_shape_".concat(shapeClass), widthClass && "width_".concat(widthClass)), htmlFor: Tag === 'label' && id, children: [before, jsxs("div", { className: clsx('checkbox__item', stateCheckmarkFillClass), children: [jsx("input", { className: "checkbox__input", checked: checked, disabled: disabled,
61
62
  // @ts-expect-error
62
- id: id, type: "checkbox", value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus }), 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" }), jsx("div", { className: "checkbox__state-checkmark", children: "\u00A0" })] }), label && (jsx(Text, { className: "checkbox__label", size: labelTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.labelTextSize), textColor: labelTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.labelTextColor), textWeight: labelTextWeight, children: label })), desc && (jsx(Text, { className: "checkbox__desc", size: descTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.descTextSize), textColor: descTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.descTextColor), textWeight: descTextWeight, children: desc })), after && jsx("div", { className: "checkbox__after", children: after })] }));
63
+ id: id, type: "checkbox", value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus }), 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" }), jsx("div", { className: "checkbox__state-checkmark", children: "\u00A0" })] }), label && (jsx(Text, { className: "checkbox__label", size: labelTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextSize), textColor: labelTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextColor), textWeight: labelTextWeight, children: label })), desc && (jsx(Text, { className: "checkbox__desc", size: descTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.descTextSize), textColor: descTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.descTextColor), textWeight: descTextWeight, children: desc })), after && jsx("div", { className: "checkbox__after", children: after })] }));
63
64
  }
64
65
 
65
66
  export { Checkbox, checkboxAppearance, checkboxConfig, checkboxState };
@@ -0,0 +1,61 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import clsx from 'clsx';
3
+ import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
4
+ import { useStyles } from '../hooks/useStyles.js';
5
+ import { I as Icon } from '../Icon-BZa8B7te.js';
6
+ import '../tslib.es6-Bwu1Cn-t.js';
7
+ import 'react';
8
+ import 'lodash/camelCase';
9
+ import 'lodash/castArray';
10
+ import '../context/UIContext.js';
11
+ import '../hooks/useMediaQueries.js';
12
+ import 'react-responsive';
13
+ import '../utils/setViewportProperty.js';
14
+ import 'lodash/maxBy';
15
+ import 'lodash/upperFirst';
16
+ import '../hooks/styleAttributes.js';
17
+ import 'react-inlinesvg';
18
+ import '../Link-DN2LhPjD.js';
19
+ import '../Tooltip-1Jbub0K6.js';
20
+ import '../Text-JayJa3hj.js';
21
+ import '../Title-CHgrIarR.js';
22
+
23
+ var checkmarkAppearance = {
24
+ accent: {
25
+ borderWidth: '4',
26
+ borderColor: 'accentBorderQuaternary',
27
+ fill: 'accentPrimary',
28
+ iconFill: 'surfaceItemInverse',
29
+ },
30
+ disabled: {
31
+ borderWidth: '4',
32
+ borderColor: 'surfaceBorderTertiary',
33
+ fill: 'surfaceItemSecondary',
34
+ iconFill: 'surfaceItemQuaternary',
35
+ },
36
+ surface: {
37
+ borderWidth: '4',
38
+ borderColor: 'surfaceBorderTertiary',
39
+ fill: 'surfacePrimary',
40
+ iconFill: 'surfaceItemPrimary',
41
+ },
42
+ };
43
+
44
+ var checkmarkConfig = {
45
+ appearance: checkmarkAppearance,
46
+ setAppearance: function (newComponent) {
47
+ checkmarkConfig.appearance = newComponent;
48
+ },
49
+ };
50
+ function Checkmark(props) {
51
+ var isChecked = props.isChecked, _a = props.isDisabled, isDisabled = _a === void 0 ? false : _a, appearance = props.appearance, className = props.className, iconChecked = props.iconChecked, iconFill = props.iconFill, iconSize = props.iconSize, onClick = props.onClick;
52
+ // @ts-expect-error
53
+ var appearanceConfig = checkmarkConfig.appearance && checkmarkConfig.appearance[appearance];
54
+ var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
55
+ var borderColorClass = classGenerator.borderColorClass, borderWidthClass = classGenerator.borderWidthClass, fillClass = classGenerator.fillClass, sizeClass = classGenerator.sizeClass;
56
+ // @ts-expect-error
57
+ var checkmarkStyles = useStyles(props).styles;
58
+ return (jsx("div", { className: clsx(className, 'checkmark', sizeClass && "checkmark_size_".concat(sizeClass), fillClass && "fill_".concat(fillClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), isDisabled), style: checkmarkStyles, onClick: onClick, children: isChecked && (jsx(Icon, { className: "checkmark__svg", iconFill: iconFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconFill), imageSrc: isChecked ? iconChecked : null, size: iconSize, SvgImage: isChecked ? iconChecked : null })) }));
59
+ }
60
+
61
+ export { Checkmark, checkmarkAppearance, checkmarkConfig };
@@ -2,14 +2,15 @@ import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
3
  import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
4
4
  import { useStyles } from '../hooks/useStyles.js';
5
- import { T as Text } from '../Text-D9sEeRE4.js';
6
- import '../tslib.es6-5FtW-kfi.js';
5
+ import { T as Text } from '../Text-JayJa3hj.js';
6
+ import '../tslib.es6-Bwu1Cn-t.js';
7
7
  import 'react';
8
8
  import 'lodash/camelCase';
9
9
  import 'lodash/castArray';
10
10
  import '../context/UIContext.js';
11
11
  import '../hooks/useMediaQueries.js';
12
12
  import 'react-responsive';
13
+ import '../utils/setViewportProperty.js';
13
14
  import 'lodash/maxBy';
14
15
  import 'lodash/upperFirst';
15
16
  import '../hooks/styleAttributes.js';
@@ -60,7 +61,7 @@ var chipsConfig = {
60
61
  },
61
62
  };
62
63
  function Chips(props) {
63
- var children = props.children, isActive = props.isActive, appearance = props.appearance, className = props.className, _a = props.label, label = _a === undefined ? '' : _a, labelTextActiveColor = props.labelTextActiveColor, labelTextColor = props.labelTextColor, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, type = props.type, onClick = props.onClick;
64
+ var children = props.children, isActive = props.isActive, appearance = props.appearance, className = props.className, _a = props.label, label = _a === void 0 ? '' : _a, labelTextActiveColor = props.labelTextActiveColor, labelTextColor = props.labelTextColor, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, type = props.type, onClick = props.onClick;
64
65
  // @ts-expect-error
65
66
  var appearanceConfig = chipsConfig.appearance && chipsConfig.appearance[appearance];
66
67
  var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
@@ -70,8 +71,8 @@ function Chips(props) {
70
71
  return (jsx("div", { className: clsx(className, 'chips', isActive && 'chips_state_active', isActive
71
72
  ? fillActiveClass && "fill_active_".concat(fillActiveClass)
72
73
  : fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "chips_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "chips_size_".concat(sizeClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), type && "chips_type_".concat(type), cursorClass && "cursor_".concat(cursorClass), onClick && 'cursor_type_pointer'), style: chipsStyles, onClick: onClick, children: jsxs("div", { className: "chips__inner", children: [typeof label === 'string' ? (jsx(Text, { className: "chips__label", size: labelTextSize, textWeight: labelTextWeight, textColor: isActive
73
- ? labelTextActiveColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.labelTextActiveColor)
74
- : labelTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.labelTextColor), children: label })) : (jsx("div", { className: "chips__label", children: label })), children] }) }));
74
+ ? labelTextActiveColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextActiveColor)
75
+ : labelTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextColor), children: label })) : (jsx("div", { className: "chips__label", children: label })), children] }) }));
75
76
  }
76
77
 
77
78
  export { Chips, chipsAppearance, chipsConfig };
@@ -2,23 +2,24 @@ import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { useRef, useMemo, createRef, useCallback } from 'react';
3
3
  import clsx from 'clsx';
4
4
  import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
5
- import { I as Icon } from '../Icon-DotE-03d.js';
6
- import { L as Loader } from '../Loader-Cm98w6lJ.js';
7
- import { T as Text } from '../Text-D9sEeRE4.js';
8
- import '../tslib.es6-5FtW-kfi.js';
5
+ import { I as Icon } from '../Icon-BZa8B7te.js';
6
+ import { L as Loader } from '../Loader-K_DJmah6.js';
7
+ import { T as Text } from '../Text-JayJa3hj.js';
8
+ import '../tslib.es6-Bwu1Cn-t.js';
9
9
  import 'lodash/camelCase';
10
10
  import 'lodash/castArray';
11
11
  import '../context/UIContext.js';
12
12
  import '../hooks/useMediaQueries.js';
13
13
  import 'react-responsive';
14
+ import '../utils/setViewportProperty.js';
14
15
  import 'react-inlinesvg';
15
16
  import '../hooks/useStyles.js';
16
17
  import 'lodash/maxBy';
17
18
  import 'lodash/upperFirst';
18
19
  import '../hooks/styleAttributes.js';
19
- import '../Link-C53o3P6_.js';
20
- import '../Tooltip-BsbXMzGd.js';
21
- import '../Title-Cl95USIn.js';
20
+ import '../Link-DN2LhPjD.js';
21
+ import '../Tooltip-1Jbub0K6.js';
22
+ import '../Title-CHgrIarR.js';
22
23
 
23
24
  var choiceAppearance = {
24
25
  accent: {
@@ -51,7 +52,7 @@ var choiceConfig = {
51
52
  },
52
53
  };
53
54
  function Choice(props) {
54
- var _a = props.isCheckbox, isCheckbox = _a === undefined ? false : _a, _b = props.isDisabled, isDisabled = _b === undefined ? false : _b, _c = props.isLoading, isLoading = _c === undefined ? false : _c, _d = props.active, active = _d === undefined ? { value: undefined } : _d, activeIcon = props.activeIcon, activeIconItemFill = props.activeIconItemFill, after = props.after, appearance = props.appearance, before = props.before, className = props.className, icon = props.icon, iconFillDisabled = props.iconFillDisabled, iconItemFill = props.iconItemFill, iconSize = props.iconSize, labelTextActiveColor = props.labelTextActiveColor, labelTextActiveColorDisabled = props.labelTextActiveColorDisabled, labelTextColor = props.labelTextColor, labelTextColorDisabled = props.labelTextColorDisabled, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, name = props.name, _e = props.options, options = _e === undefined ? [] : _e, set = props.set, setActiveSegment = props.setActiveSegment, _f = props.size, size = _f === undefined ? 'normal' : _f, type = props.type;
55
+ var _a = props.isCheckbox, isCheckbox = _a === void 0 ? false : _a, _b = props.isDisabled, isDisabled = _b === void 0 ? false : _b, _c = props.isLoading, isLoading = _c === void 0 ? false : _c, _d = props.active, active = _d === void 0 ? { value: undefined } : _d, activeIcon = props.activeIcon, activeIconItemFill = props.activeIconItemFill, after = props.after, appearance = props.appearance, before = props.before, className = props.className, icon = props.icon, iconFillDisabled = props.iconFillDisabled, iconItemFill = props.iconItemFill, iconSize = props.iconSize, labelTextActiveColor = props.labelTextActiveColor, labelTextActiveColorDisabled = props.labelTextActiveColorDisabled, labelTextColor = props.labelTextColor, labelTextColorDisabled = props.labelTextColorDisabled, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, name = props.name, _e = props.options, options = _e === void 0 ? [] : _e, set = props.set, setActiveSegment = props.setActiveSegment, _f = props.size, size = _f === void 0 ? 'normal' : _f, type = props.type;
55
56
  var controlRef = useRef(null);
56
57
  var optionsRefs = useMemo(function () { return new Map(options.map(function (item) { return [item.value, createRef()]; })); }, [options]);
57
58
  var onChange = useCallback(function (event, item) {
@@ -75,12 +76,12 @@ function Choice(props) {
75
76
  : fillActiveDisabledClass && "fill_active_disabled_".concat(fillActiveDisabledClass)
76
77
  : !isDisabled
77
78
  ? fillClass && "fill_".concat(fillClass)
78
- : fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), isActive && isDisabled && 'choice__item_active_state_disabled', isActive && 'choice__item_active'), ref: optionsRefs.get(item.value), children: [jsx("input", { className: "choice__item-radio", name: name, checked: isActive, disabled: isDisabled, id: "".concat(name, "-").concat(item.value), type: isCheckbox ? 'checkbox' : 'radio', value: item.value, onChange: function (event) { return onChange(event, item); } }), jsxs("label", { className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: "".concat(name, "-").concat(item.value), children: [before, item.label && (jsx(Text, { size: labelTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.labelTextSize), textWeight: labelTextWeight, textColor: isActive
79
+ : fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), isActive && isDisabled && 'choice__item_active_state_disabled', isActive && 'choice__item_active'), ref: optionsRefs.get(item.value), children: [jsx("input", { className: "choice__item-radio", name: name, checked: isActive, disabled: isDisabled, id: "".concat(name, "-").concat(item.value), type: isCheckbox ? 'checkbox' : 'radio', value: item.value, onChange: function (event) { return onChange(event, item); } }), jsxs("label", { className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: "".concat(name, "-").concat(item.value), children: [before, item.label && (jsx(Text, { size: labelTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextSize), textWeight: labelTextWeight, textColor: isActive
79
80
  ? !isDisabled
80
- ? labelTextActiveColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.labelTextActiveColor)
81
+ ? labelTextActiveColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextActiveColor)
81
82
  : labelTextActiveColorDisabled
82
83
  : !isDisabled
83
- ? labelTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.labelTextColor)
84
+ ? labelTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextColor)
84
85
  : labelTextColorDisabled, children: item.label })), (icon || activeIcon) && (jsx(Icon, { className: "choice__item-icon", iconFillDisabled: isDisabled ? iconFillDisabled : undefined, iconSize: iconSize, SvgImage: isActive ? activeIcon : icon, iconFill: isActive
85
86
  ? activeIconItemFill || item.activeIconItemFill
86
87
  : iconItemFill || item.iconItemFill })), after] })] }, "".concat(name, "-").concat(item.value)));
@@ -1,4 +1,4 @@
1
- import { _ as __assign } from '../tslib.es6-5FtW-kfi.js';
1
+ import { _ as __assign } from '../tslib.es6-Bwu1Cn-t.js';
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { useState, useEffect } from 'react';
4
4
  import clsx from 'clsx';
@@ -9,6 +9,7 @@ import 'lodash/castArray';
9
9
  import '../context/UIContext.js';
10
10
  import '../hooks/useMediaQueries.js';
11
11
  import 'react-responsive';
12
+ import '../utils/setViewportProperty.js';
12
13
 
13
14
  var codeAppearance = {
14
15
  dev: {},
@@ -21,16 +22,16 @@ var codeConfig = {
21
22
  },
22
23
  };
23
24
  function Code(props) {
24
- var after = props.after, appearance = props.appearance, before = props.before, className = props.className, inputAutoFocus = props.inputAutoFocus, _a = props.inputCount, inputCount = _a === undefined ? 6 : _a, _b = props.inputPlaceholder, inputPlaceholder = _b === undefined ? 0 : _b, _c = props.inputType, inputType = _c === undefined ? 'number' : _c, separatorComponent = props.separatorComponent, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
25
+ var after = props.after, appearance = props.appearance, before = props.before, className = props.className, inputAutoFocus = props.inputAutoFocus, _a = props.inputCount, inputCount = _a === void 0 ? 6 : _a, _b = props.inputPlaceholder, inputPlaceholder = _b === void 0 ? 0 : _b, _c = props.inputType, inputType = _c === void 0 ? 'number' : _c, separatorComponent = props.separatorComponent, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
25
26
  var _d = useState(''), otp = _d[0], setOtp = _d[1];
26
27
  // @ts-expect-error
27
28
  var appearanceConfig = codeConfig.appearance && codeConfig.appearance[appearance];
28
29
  var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
29
30
  var gapClass = classGenerator.gapClass, inputBorderColorClass = classGenerator.inputBorderColorClass, inputBorderColorHoverClass = classGenerator.inputBorderColorHoverClass, inputBorderFocusColorClass = classGenerator.inputBorderFocusColorClass, inputBorderWidthClass = classGenerator.inputBorderWidthClass, inputCaretColorClass = classGenerator.inputCaretColorClass, inputFillClass = classGenerator.inputFillClass, inputFillHoverClass = classGenerator.inputFillHoverClass, inputPlaceholderTextColorClass = classGenerator.inputPlaceholderTextColorClass, inputShapeClass = classGenerator.inputShapeClass, inputSizeClass = classGenerator.inputSizeClass, inputTextColorClass = classGenerator.inputTextColorClass, inputTextSizeClass = classGenerator.inputTextSizeClass, inputTextWeightClass = classGenerator.inputTextWeightClass, widthClass = classGenerator.widthClass;
30
31
  // NOTE: too many dependencies for "useCallback" and possible too many checks
31
- var renderInput = function (otpInputProps) {
32
+ var renderInput = function (otpInputProps, index) {
32
33
  return (jsx("input", __assign({}, otpInputProps, { className: clsx('code__input', inputCaretColorClass && "caret-color_".concat(inputCaretColorClass), inputFillClass && "fill_".concat(inputFillClass), inputFillHoverClass && "fill_hover_".concat(inputFillHoverClass), inputPlaceholderTextColorClass &&
33
- "placeholder-text-color_".concat(inputPlaceholderTextColorClass), inputShapeClass && "code__input_shape_".concat(inputShapeClass), inputTextSizeClass && "text_size_".concat(inputTextSizeClass), inputTextColorClass && "text-color_".concat(inputTextColorClass), inputTextWeightClass && "text-weight_".concat(inputTextWeightClass), inputBorderWidthClass && "border-width_".concat(inputBorderWidthClass), inputBorderColorClass && "border-color_".concat(inputBorderColorClass), inputBorderColorHoverClass && "border-color_hover_".concat(inputBorderColorHoverClass), inputBorderFocusColorClass && "border-color_focus_".concat(inputBorderFocusColorClass), inputSizeClass && "code__input_size_".concat(inputSizeClass), widthClass && "width_".concat(widthClass)), autoComplete: "one-time-code", onBlur: function (event) {
34
+ "placeholder-text-color_".concat(inputPlaceholderTextColorClass), inputShapeClass && "code__input_shape_".concat(inputShapeClass), inputTextSizeClass && "text_size_".concat(inputTextSizeClass), inputTextColorClass && "text-color_".concat(inputTextColorClass), inputTextWeightClass && "text-weight_".concat(inputTextWeightClass), inputBorderWidthClass && "border-width_".concat(inputBorderWidthClass), inputBorderColorClass && "border-color_".concat(inputBorderColorClass), inputBorderColorHoverClass && "border-color_hover_".concat(inputBorderColorHoverClass), inputBorderFocusColorClass && "border-color_focus_".concat(inputBorderFocusColorClass), inputSizeClass && "code__input_size_".concat(inputSizeClass), widthClass && "width_".concat(widthClass)), name: "code-".concat(index), autoComplete: "one-time-code", onBlur: function (event) {
34
35
  onBlur && onBlur(event);
35
36
  otpInputProps.onBlur(event);
36
37
  }, onFocus: function (event) {