@itcase/ui 1.3.25 → 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 (186) 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 +8 -7
  37. package/dist/cjs/components/Checkbox.js +4 -3
  38. package/dist/cjs/components/Checkmark.js +8 -7
  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 -3
  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 +14 -13
  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 +11 -10
  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 +9 -8
  109. package/dist/components/Checkbox.js +5 -4
  110. package/dist/components/Checkmark.js +9 -8
  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 -4
  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 +15 -14
  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 +12 -11
  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 +2 -2
  166. package/dist/css/components/Checkmark/Checkmark.tokens.css +16 -0
  167. package/dist/css/components/Swiper/Swiper.css +2 -2
  168. package/dist/css/tokens/colors.css +9 -0
  169. package/dist/hooks/useDeviceTargetClass.js +1 -0
  170. package/dist/hooks/useDeviceTargetClassGenerator.interface.js +1 -1
  171. package/dist/hooks/useDeviceTargetClassGenerator.js +6 -5
  172. package/dist/hooks/useMediaQueries.js +0 -12
  173. package/dist/hooks/useStyles.js +1 -0
  174. package/dist/hooks.js +1 -1
  175. package/dist/stories/Avatar.mdx +1 -1
  176. package/dist/stories/Checkmark.mdx +11 -0
  177. package/dist/stories/Overview.mdx +5 -5
  178. package/dist/stories/Playground.mdx +4 -4
  179. package/dist/{tslib.es6-5FtW-kfi.js → tslib.es6-Bwu1Cn-t.js} +1 -1
  180. package/dist/types/components/Badge/stories/args.d.ts +69 -0
  181. package/dist/types/components/Select/index.d.ts +15 -15
  182. package/dist/types/utils/index.d.ts +2 -0
  183. package/dist/types/utils/setViewportProperty.d.ts +2 -0
  184. package/dist/utils/setViewportProperty.js +6 -0
  185. package/dist/utils.js +1 -0
  186. package/package.json +29 -53
@@ -1,14 +1,15 @@
1
- export { T as Text, a as textAppearance, t as textConfig } from '../Text-D9sEeRE4.js';
1
+ export { T as Text, a as textAppearance, t as textConfig } from '../Text-JayJa3hj.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'clsx';
4
4
  import '../hooks/useDeviceTargetClassGenerator.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 '../hooks/useStyles.js';
13
14
  import 'lodash/maxBy';
14
15
  import 'lodash/upperFirst';
@@ -1,13 +1,14 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
3
  import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
4
- import '../tslib.es6-5FtW-kfi.js';
4
+ import '../tslib.es6-Bwu1Cn-t.js';
5
5
  import 'react';
6
6
  import 'lodash/camelCase';
7
7
  import 'lodash/castArray';
8
8
  import '../context/UIContext.js';
9
9
  import '../hooks/useMediaQueries.js';
10
10
  import 'react-responsive';
11
+ import '../utils/setViewportProperty.js';
11
12
 
12
13
  var textareaAppearance = {
13
14
  dev: {
@@ -2,16 +2,17 @@ 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 { B as Badge } from '../Badge-Bcj5H3vs.js';
6
- import { T as Text } from '../Text-D9sEeRE4.js';
7
- import { T as Title } from '../Title-Cl95USIn.js';
8
- import '../tslib.es6-5FtW-kfi.js';
5
+ import { B as Badge } from '../Badge-CcaG-4ly.js';
6
+ import { T as Text } from '../Text-JayJa3hj.js';
7
+ import { T as Title } from '../Title-CHgrIarR.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';
@@ -34,7 +35,7 @@ function Tile(props) {
34
35
  var alignClass = classGenerator.alignClass, alignDirectionClass = classGenerator.alignDirectionClass, borderColorClass = classGenerator.borderColorClass, borderColorHoverClass = classGenerator.borderColorHoverClass, borderTypeClass = classGenerator.borderTypeClass, borderWidthClass = classGenerator.borderWidthClass, fillClass = classGenerator.fillClass, shapeClass = classGenerator.shapeClass;
35
36
  // @ts-expect-error
36
37
  var tileStyles = useStyles(props).styles;
37
- return (jsx("div", { className: clsx('tile', className, fillClass && "fill_".concat(fillClass), shapeClass && "tile_shape_".concat(shapeClass), alignClass && "align_".concat(alignClass), alignDirectionClass && "align_".concat(alignDirectionClass), direction && "direction_".concat(direction), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), reverse && 'tile_reverse', size && "tile_size_".concat(size), type && "tile_type_".concat(type), badge && "tile_state_badge"), style: tileStyles, onClick: onClick, children: jsxs("div", { className: clsx('tile__wrapper', alignClass, alignDirectionClass), children: [before, title && (jsx(Title, { className: "tile__title", size: titleTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.titleTextSize), textAlign: titleTextAlign, textColor: titleTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.titleTextColor), textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), text && (jsx(Text, { className: "tile__text", size: textSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.textSize), textColor: textColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.textColor), textWrap: textWrap, children: text })), badge && (jsx(Badge, { className: "tile__badge", appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, value: badge })), children, after] }) }));
38
+ return (jsx("div", { className: clsx('tile', className, fillClass && "fill_".concat(fillClass), shapeClass && "tile_shape_".concat(shapeClass), alignClass && "align_".concat(alignClass), alignDirectionClass && "align_".concat(alignDirectionClass), direction && "direction_".concat(direction), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), reverse && 'tile_reverse', size && "tile_size_".concat(size), type && "tile_type_".concat(type), badge && "tile_state_badge"), style: tileStyles, onClick: onClick, children: jsxs("div", { className: clsx('tile__wrapper', alignClass, alignDirectionClass), children: [before, title && (jsx(Title, { className: "tile__title", size: titleTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextSize), textAlign: titleTextAlign, textColor: titleTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextColor), textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), text && (jsx(Text, { className: "tile__text", size: textSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textSize), textColor: textColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textColor), textWrap: textWrap, children: text })), badge && (jsx(Badge, { className: "tile__badge", appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, value: badge })), children, after] }) }));
38
39
  }
39
40
  Tile.defaultProps = {
40
41
  alignDirection: 'vertical',
@@ -1,12 +1,13 @@
1
- export { T as Title, a as titleAppearance, t as titleConfig } from '../Title-Cl95USIn.js';
1
+ export { T as Title, a as titleAppearance, t as titleConfig } from '../Title-CHgrIarR.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
5
5
  import '../context/UIContext.js';
6
6
  import '../hooks/useMediaQueries.js';
7
7
  import 'react-responsive';
8
+ import '../utils/setViewportProperty.js';
8
9
  import '../hooks/useDeviceTargetClassGenerator.js';
9
- import '../tslib.es6-5FtW-kfi.js';
10
+ import '../tslib.es6-Bwu1Cn-t.js';
10
11
  import 'lodash/camelCase';
11
12
  import 'lodash/castArray';
12
13
  import '../hooks/useStyles.js';
@@ -1,17 +1,18 @@
1
- export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Tooltip-BsbXMzGd.js';
1
+ export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Tooltip-1Jbub0K6.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 '../Text-D9sEeRE4.js';
17
- import '../Title-Cl95USIn.js';
17
+ import '../Text-JayJa3hj.js';
18
+ import '../Title-CHgrIarR.js';
@@ -8,6 +8,7 @@ import 'lodash/upperFirst';
8
8
  import '../context/UIContext.js';
9
9
  import '../hooks/useMediaQueries.js';
10
10
  import 'react-responsive';
11
+ import '../utils/setViewportProperty.js';
11
12
  import '../hooks/styleAttributes.js';
12
13
 
13
14
  function Video(props) {
@@ -2,19 +2,20 @@ 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 '../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';
15
16
 
16
17
  function Wrapper(props) {
17
- var id = props.id, children = props.children, after = props.after, before = props.before, _a = props.className, className = _a === undefined ? 'wrapper' : _a, _b = props.tag, Tag = _b === undefined ? 'div' : _b, type = props.type;
18
+ var id = props.id, children = props.children, after = props.after, before = props.before, _a = props.className, className = _a === void 0 ? 'wrapper' : _a, _b = props.tag, Tag = _b === void 0 ? 'div' : _b, type = props.type;
18
19
  var classGenerator = useDeviceTargetClassGenerator(props);
19
20
  var alignClass = classGenerator.alignClass, alignDirectionClass = classGenerator.alignDirectionClass, fillClass = classGenerator.fillClass, horizontalResizingClass = classGenerator.horizontalResizingClass, positionClass = classGenerator.positionClass, verticalResizingClass = classGenerator.verticalResizingClass, wrapperPositionClass = classGenerator.wrapperPositionClass;
20
21
  // @ts-expect-error
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { b as __spreadArray } from '../tslib.es6-5FtW-kfi.js';
2
+ import { a as __spreadArray } from '../tslib.es6-Bwu1Cn-t.js';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import { createContext, useState, useCallback, useMemo, useEffect, useContext } from 'react';
5
5
  import { v4 } from 'uuid';
@@ -17,7 +17,7 @@ var NotificationsAPIContext = createContext({
17
17
  showNotification: function (notification, onClose) { },
18
18
  });
19
19
  function NotificationsProvider(props) {
20
- var children = props.children, _a = props.initialNotificationsList, initialNotificationsList = _a === undefined ? [] : _a;
20
+ var children = props.children, _a = props.initialNotificationsList, initialNotificationsList = _a === void 0 ? [] : _a;
21
21
  var _b = useState(function () {
22
22
  // We need to set id to every notification item and original list also be have new id's
23
23
  return (initialNotificationsList || []).map(function (notificationItem) {
@@ -110,11 +110,11 @@ function createNotification(notification, onClose) {
110
110
  text = notification;
111
111
  }
112
112
  else if (typeof notification === 'object') {
113
- id = (_a = notification.id) !== null && _a !== undefined ? _a : id;
114
- title = (_b = notification.title) !== null && _b !== undefined ? _b : title;
115
- text = (_c = notification.text) !== null && _c !== undefined ? _c : text;
116
- status = (_d = notification.status) !== null && _d !== undefined ? _d : status;
117
- closeByTime = (_e = notification.closeByTime) !== null && _e !== undefined ? _e : closeByTime;
113
+ id = (_a = notification.id) !== null && _a !== void 0 ? _a : id;
114
+ title = (_b = notification.title) !== null && _b !== void 0 ? _b : title;
115
+ text = (_c = notification.text) !== null && _c !== void 0 ? _c : text;
116
+ status = (_d = notification.status) !== null && _d !== void 0 ? _d : status;
117
+ closeByTime = (_e = notification.closeByTime) !== null && _e !== void 0 ? _e : closeByTime;
118
118
  }
119
119
  switch (status) {
120
120
  case 'success':
@@ -1,7 +1,8 @@
1
1
  'use client';
2
2
  import { jsx } from 'react/jsx-runtime';
3
- import { createContext, memo, useState, useMemo, useContext } from 'react';
3
+ import { createContext, memo, useState, useMemo, useEffect, useContext } from 'react';
4
4
  import { useMediaQueries } from '../hooks/useMediaQueries.js';
5
+ import { setViewportProperty } from '../utils/setViewportProperty.js';
5
6
  import 'react-responsive';
6
7
 
7
8
  var UserDeviceContext = createContext({
@@ -20,9 +21,13 @@ function useSiteMenuContext() {
20
21
  return useContext(SiteMenuContext);
21
22
  }
22
23
  var UIProvider = memo(function UIProvider(props) {
23
- var children = props.children, _a = props.userDeviceState, userDeviceState = _a === undefined ? {} : _a;
24
+ var children = props.children, _a = props.userDeviceState, userDeviceState = _a === void 0 ? {} : _a;
24
25
  var _b = useState(false), isSiteMenuOpen = _b[0], setIsSiteMenuOpen = _b[1];
25
26
  var siteMenuContextState = useMemo(function () { return ({ isSiteMenuOpen: isSiteMenuOpen, setIsSiteMenuOpen: setIsSiteMenuOpen }); }, [isSiteMenuOpen]);
27
+ useEffect(function () {
28
+ setViewportProperty();
29
+ window.addEventListener('resize', setViewportProperty);
30
+ }, []);
26
31
  var mediaQueriesDevices = useMediaQueries(userDeviceState);
27
32
  return (jsx(UserDeviceContext.Provider, { value: mediaQueriesDevices, children: jsx(SiteMenuContext.Provider, { value: siteMenuContextState, children: children }) }));
28
33
  });
@@ -12,8 +12,8 @@
12
12
  justify-content: center;
13
13
  align-items: center;
14
14
  & > svg {
15
- width: 70%;
16
- height: 70%;
15
+ width: 60%;
16
+ height: 60%;
17
17
  }
18
18
  }
19
19
  }
@@ -0,0 +1,16 @@
1
+ :root {
2
+ --checkmark-width-size-xxs: 16px;
3
+ --checkmark-height-size-xxs: 16px;
4
+ --checkmark-width-size-xs: 24px;
5
+ --checkmark-height-size-xs: 24px;
6
+ --checkmark-width-size-s: 32px;
7
+ --checkmark-height-size-s: 32px;
8
+ --checkmark-width-size-m: 40px;
9
+ --checkmark-height-size-m: 40px;
10
+ --checkmark-width-size-l: 48px;
11
+ --checkmark-height-size-l: 48px;
12
+ --checkmark-width-size-xl: 56px;
13
+ --checkmark-height-size-xl: 56px;
14
+ --checkmark-width-size-xxl: 64px;
15
+ --checkmark-height-size-xxl: 64px;
16
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Swiper 11.2.1
2
+ * Swiper 11.2.4
3
3
  * Most modern mobile touch slider and framework with hardware accelerated transitions
4
4
  * https://swiperjs.com
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: January 10, 2025
10
+ * Released on: February 14, 2025
11
11
  */
12
12
 
13
13
  /* FONT_START */
@@ -88,11 +88,20 @@
88
88
 
89
89
  --color-success-item-primary: hsla(0, 0%, 100%, 1);
90
90
 
91
+ --color-success-primary: hsla(107, 100%, 34%, 1);
91
92
  --color-success-text-primary: hsla(107, 100%, 34%, 1);
92
93
  --color-success-text-secondary: hsla(0, 0%, 100%, 1);
93
94
 
94
95
  --color-success-border-primary: hsla(107, 100%, 34%, 1);
95
96
 
97
+ --color-warning-primary: hsla(43, 68%, 50%, 1);
98
+ --color-warning-text-primary: hsla(43, 68%, 50%, 1);
99
+ --color-warning-text-secondary: hsla(0, 0%, 100%, 1);
100
+
101
+ --color-danger-primary: hsla(349, 96%, 44%, 1);
102
+ --color-danger-text-primary: hsla(349, 96%, 44%, 1);
103
+ --color-danger-text-secondary: hsla(0, 0%, 100%, 1);
104
+
96
105
  --color-error-primary: hsla(6, 99%, 57%, 1);
97
106
  --color-error-text-primary: hsla(0, 0%, 100%, 1);
98
107
  --color-error-text-secondary: hsla(6, 99%, 57%, 1);
@@ -5,6 +5,7 @@ import { useUserDeviceContext } from '../context/UIContext.js';
5
5
  import 'react/jsx-runtime';
6
6
  import './useMediaQueries.js';
7
7
  import 'react-responsive';
8
+ import '../utils/setViewportProperty.js';
8
9
 
9
10
  function useDeviceTargetClass(componentProps, hookProps) {
10
11
  /** Generate a class depending on the user's device.
@@ -1 +1 @@
1
-
1
+ 'use strict';
@@ -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 { useMemo } from 'react';
3
3
  import camelCase from 'lodash/camelCase';
4
4
  import castArray from 'lodash/castArray';
@@ -6,6 +6,7 @@ import { useUserDeviceContext } from '../context/UIContext.js';
6
6
  import 'react/jsx-runtime';
7
7
  import './useMediaQueries.js';
8
8
  import 'react-responsive';
9
+ import '../utils/setViewportProperty.js';
9
10
 
10
11
  function useDeviceTargetClassGenerator(componentProps, appearanceConfig) {
11
12
  /** Generate a class depending on the user's device.
@@ -35,8 +36,8 @@ function useDeviceTargetClassGenerator(componentProps, appearanceConfig) {
35
36
  var deviceTargetClassGenerator = useMemo(function () {
36
37
  var classGenerator = {
37
38
  getClass: function (propsKey, params) {
38
- if (params === undefined) { params = {}; }
39
- var _a = params.prefix, prefix = _a === undefined ? '' : _a, _b = params.replace, replace = _b === undefined ? [/([A-Z])/g, '-$1'] : _b;
39
+ if (params === void 0) { params = {}; }
40
+ var _a = params.prefix, prefix = _a === void 0 ? '' : _a, _b = params.replace, replace = _b === void 0 ? [/([A-Z])/g, '-$1'] : _b;
40
41
  // prettier-ignore
41
42
  var deviceBasePart = ((isMobile && 'Mobile') ||
42
43
  (isTablet && 'Tablet') ||
@@ -44,8 +45,8 @@ function useDeviceTargetClassGenerator(componentProps, appearanceConfig) {
44
45
  '');
45
46
  var valueForDevice = componentProps["".concat(propsKey).concat(deviceBasePart)];
46
47
  var valueDefault = componentProps[propsKey];
47
- var appearanceForDevice = appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig["".concat(propsKey).concat(deviceBasePart)];
48
- var appearanceDefault = appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig[propsKey];
48
+ var appearanceForDevice = appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig["".concat(propsKey).concat(deviceBasePart)];
49
+ var appearanceDefault = appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig[propsKey];
49
50
  // prettier-ignore
50
51
  var targetClassValue = (
51
52
  // Value for device from props is first priority
@@ -3,21 +3,9 @@ import { useMediaQuery } from 'react-responsive';
3
3
  var tablet = "48em";
4
4
  var mediaQueries = {
5
5
  "mobile-tiny": "15em",
6
- "mobile-small": "20em",
7
- "mobile-medium": "23.435em",
8
- "mobile-normal": "24.375em",
9
- "mobile-large": "26.75em",
10
- "mobile-extra-large": "30em",
11
6
  "mobile-super-extra-large": "40em",
12
7
  tablet: tablet,
13
- "tablet-small": "40em",
14
- "tablet-large": "60em",
15
8
  "desktop-small": "60em",
16
- "desktop-medium": "64em",
17
- "desktop-normal": "72.5em",
18
- "desktop-large": "80em",
19
- "desktop-extra-large": "90em",
20
- "desktop-super-extra-large": "120em",
21
9
  "desktop-huge": "160em"
22
10
  };
23
11
 
@@ -7,6 +7,7 @@ import styleAttributes from './styleAttributes.js';
7
7
  import 'react/jsx-runtime';
8
8
  import './useMediaQueries.js';
9
9
  import 'react-responsive';
10
+ import '../utils/setViewportProperty.js';
10
11
 
11
12
  let DEVICE_TYPES = [];
12
13
  const removeDeviceType = originalKey => {
package/dist/hooks.js CHANGED
@@ -1 +1 @@
1
- 'use strict';
1
+
@@ -1,6 +1,6 @@
1
1
  import { Canvas, Meta } from '@storybook/blocks'
2
2
 
3
- import * as AvatarStories from './Avatar.stories.js'
3
+ import * as AvatarStories from './Avatar.stories.tsx'
4
4
 
5
5
  <Meta of={AvatarStories} />
6
6
 
@@ -0,0 +1,11 @@
1
+ import { Canvas, Meta } from '@storybook/blocks'
2
+
3
+ import * as CheckmarkStories from './Checkmark.stories.tsx'
4
+
5
+ <Meta of={CheckmarkStories} />
6
+
7
+ # Checkmark
8
+
9
+ ## Refused
10
+
11
+ <Canvas sourceState="shown" of={CheckmarkStories.Refused} />
@@ -1,11 +1,11 @@
1
1
  import { Meta, Story } from '@storybook/blocks'
2
2
 
3
- import * as TooltipStories from './Tooltip.stories.tsx'
3
+ import * as TitleStories from './Title.stories.tsx'
4
4
 
5
- <Meta title="Atoms / Tooltip / Overview" />
5
+ <Meta title="Atoms / Title / Overview" />
6
6
 
7
- # Tooltip
7
+ # Title
8
8
 
9
- `Tooltip` - это небольшой фрагмент контекстной информации, который появляется, когда пользователи наводят курсор мыши на элемент пользовательского интерфейса.
9
+ `Title` отображает заголовки.
10
10
 
11
- <Story of={TooltipStories.surfacePrimary} />
11
+ <Story of={TitleStories.SizeH3} />
@@ -1,10 +1,10 @@
1
1
  import { Canvas, Controls, Meta } from '@storybook/blocks'
2
2
 
3
- import * as TooltipStories from './Tooltip.stories.tsx'
3
+ import * as TitleStories from './Title.stories.tsx'
4
4
 
5
- <Meta title="Atoms / Tooltip / Playground" />
5
+ <Meta title="Atoms / Title / Playground" />
6
6
 
7
7
  # Playground
8
8
 
9
- <Canvas sourceState="shown" of={TooltipStories.surfacePrimary} />
10
- <Controls of={TooltipStories.surfacePrimary} />
9
+ <Canvas sourceState="shown" of={TitleStories.SizeH4} />
10
+ <Controls of={TitleStories.SizeH4} />
@@ -53,4 +53,4 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
53
53
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
54
54
  };
55
55
 
56
- export { __assign as _, __rest as a, __spreadArray as b };
56
+ export { __assign as _, __spreadArray as a, __rest as b };
@@ -0,0 +1,69 @@
1
+ export declare const argTypes: {
2
+ children: {
3
+ if: {
4
+ arg: string;
5
+ };
6
+ };
7
+ borderWidth: {
8
+ control: string;
9
+ options: readonly [undefined, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"];
10
+ };
11
+ borderColor: {
12
+ control: string;
13
+ options: readonly [undefined, "accentBorderPrimary", "accentBorderSecondary", "accentBorderTertiary", "accentBorderQuaternary", "accentBorderDisabled", "primaryBorderPrimary", "primaryBorderSecondary", "primaryBorderTertiary", "primaryBorderQuaternary", "primaryBorderDisabled", "secondaryBorderPrimary", "secondaryBorderSecondary", "secondaryBorderTertiary", "secondaryBorderQuaternary", "secondaryBorderDisabled", "tertiaryBorderPrimary", "tertiaryBorderSecondary", "tertiaryBorderTertiary", "tertiaryBorderQuaternary", "tertiaryBorderDisabled", "surfaceBorderPrimary", "surfaceBorderSecondary", "surfaceBorderTertiary", "surfaceBorderQuaternary", "surfaceBorderDisabled", "surfaceBorderInverse", "errorBorderPrimary", "errorBorderSecondary", "errorBorderDisabled", "successBorderPrimary", "successBorderSecondary", "successBorderDisabled"];
14
+ };
15
+ advancedProps: {
16
+ control: string;
17
+ };
18
+ after: {
19
+ if: {
20
+ arg: string;
21
+ };
22
+ };
23
+ appearance: {
24
+ control: string;
25
+ options: (string | null)[];
26
+ };
27
+ borderColorHover: {
28
+ control: string;
29
+ options: readonly [undefined, "accentBorderPrimary", "accentBorderPrimaryHover", "primaryBorderPrimary", "secondaryBorderPrimary", "tertiaryBorderPrimary", "surfaceBorderPrimary", "surfaceBorderSecondary", "surfaceBorderTertiary", "errorBorderPrimary", "errorBorderPrimaryHover", "successBorderPrimary", "surfaceBorderQuaternary"];
30
+ };
31
+ borderType: {
32
+ control: string;
33
+ options: readonly [undefined, "outline", "solid", "none"];
34
+ };
35
+ className: {
36
+ if: {
37
+ arg: string;
38
+ };
39
+ };
40
+ fill: {
41
+ control: string;
42
+ options: readonly [undefined, "accentPrimary", "accentSecondary", "accentTertiary", "primaryPrimary", "primarySecondary", "primaryTertiary", "secondaryPrimary", "secondarySecondary", "secondaryTertiary", "tertiaryPrimary", "tertiarySecondary", "tertiaryTertiary", "surfaceAccent", "surfaceItemPrimary", "surfacePrimary", "surfaceQuaternary", "surfaceQuinary", "surfaceSecondary", "surfaceTertiary", "errorPrimary", "errorSecondary", "successPrimary", "successSecondary", "gradientPrimary"];
43
+ };
44
+ mode: {
45
+ control: string;
46
+ options: (string | null)[];
47
+ };
48
+ shape: {
49
+ control: string;
50
+ options: readonly [undefined, "geometric", "rounded", "circular"];
51
+ };
52
+ size: {
53
+ control: string;
54
+ options: readonly [undefined, "xxs", "xs", "s", "m", "l", "xl", "xxl"];
55
+ };
56
+ textColor: {
57
+ control: string;
58
+ options: readonly [undefined, false, "accentTextPrimary", "accentTextSecondary", "accentTextTertiary", "primaryTextPrimary", "primaryTextSecondary", "primaryTextTertiary", "secondaryTextPrimary", "secondaryTextSecondary", "secondaryTextTertiary", "tertiaryTextPrimary", "tertiaryTextSecondary", "surfaceTextAccent", "surfaceTextActive", "surfaceTextDisabled", "surfaceTextFocus", "surfaceTextHover", "surfaceTextInverse", "surfaceTextPrimary", "surfaceTextQuaternary", "surfaceTextSecondary", "surfaceTextTertiary", "errorTextPrimary", "errorTextSecondary", "successTextPrimary", "successTextSecondary", "dangerTextPrimary", "dangerTextSecondary"];
59
+ };
60
+ textSize: {
61
+ control: string;
62
+ options: readonly [undefined, "xxs", "xs", "s", "m", "l", "xl", "xxl"];
63
+ };
64
+ type: {
65
+ if: {
66
+ arg: string;
67
+ };
68
+ };
69
+ };
@@ -1,16 +1,16 @@
1
- import { SelectClearIndicator } from './SelectClearIndicator.js';
2
- import { selectConfig, SelectContainer } from './SelectContainer.js';
3
- import { SelectControl } from './SelectControl.js';
4
- import { SelectDropdownIndicator } from './SelectDropdownIndicator.js';
5
- import { SelectGroupHeading } from './SelectGroupHeading.js';
6
- import { SelectIndicatorsContainer } from './SelectIndicatorsContainer.js';
7
- import { SelectInput } from './SelectInput.js';
8
- import { SelectMenu } from './SelectMenu.js';
9
- import { SelectMultiValueContainer } from './SelectMultiValueContainer.js';
10
- import { SelectMultiValueLabel } from './SelectMultiValueLabel.js';
11
- import { SelectMultiValueRemove } from './SelectMultiValueRemove.js';
12
- import { SelectOption } from './SelectOption.js';
13
- import { SelectPlaceholder } from './SelectPlaceholder.js';
14
- import { SelectSingleValue } from './SelectSingleValue.js';
15
- import { SelectValueContainer } from './SelectValueContainer.js';
1
+ import { SelectClearIndicator } from './SelectClearIndicator.tsx';
2
+ import { selectConfig, SelectContainer } from './SelectContainer.tsx';
3
+ import { SelectControl } from './SelectControl.tsx';
4
+ import { SelectDropdownIndicator } from './SelectDropdownIndicator.tsx';
5
+ import { SelectGroupHeading } from './SelectGroupHeading.tsx';
6
+ import { SelectIndicatorsContainer } from './SelectIndicatorsContainer.tsx';
7
+ import { SelectInput } from './SelectInput.tsx';
8
+ import { SelectMenu } from './SelectMenu.tsx';
9
+ import { SelectMultiValueContainer } from './SelectMultiValueContainer.tsx';
10
+ import { SelectMultiValueLabel } from './SelectMultiValueLabel.tsx';
11
+ import { SelectMultiValueRemove } from './SelectMultiValueRemove.tsx';
12
+ import { SelectOption } from './SelectOption.tsx';
13
+ import { SelectPlaceholder } from './SelectPlaceholder.tsx';
14
+ import { SelectSingleValue } from './SelectSingleValue.tsx';
15
+ import { SelectValueContainer } from './SelectValueContainer.tsx';
16
16
  export { SelectClearIndicator, SelectContainer as Select, SelectControl, SelectDropdownIndicator, SelectGroupHeading, SelectIndicatorsContainer, SelectInput, SelectMenu, SelectMultiValueContainer, SelectMultiValueLabel, SelectMultiValueRemove, SelectOption, SelectPlaceholder, SelectSingleValue, SelectValueContainer, selectConfig, };
@@ -0,0 +1,2 @@
1
+ import { setViewportProperty } from './setViewportProperty';
2
+ export { setViewportProperty };
@@ -0,0 +1,2 @@
1
+ declare const setViewportProperty: () => void;
2
+ export { setViewportProperty };
@@ -0,0 +1,6 @@
1
+ var setViewportProperty = function () {
2
+ var vh = window.innerHeight * 0.01;
3
+ document.documentElement.style.setProperty('--vh', "".concat(vh, "px"));
4
+ };
5
+
6
+ export { setViewportProperty };
package/dist/utils.js ADDED
@@ -0,0 +1 @@
1
+ export { setViewportProperty } from './utils/setViewportProperty.js';