@itcase/ui 1.9.24 → 1.9.25

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 (107) hide show
  1. package/dist/{Avatar_cjs_DRZE113U.js → Avatar_cjs_CS01fvh-.js} +11 -5
  2. package/dist/{Avatar_es_Cmq4xAG6.js → Avatar_es_DRObE1DB.js} +11 -5
  3. package/dist/{ChipsGroup_cjs_D0bGehZY.js → ChipsGroup_cjs_Sn3uiCSJ.js} +33 -33
  4. package/dist/{ChipsGroup_es_DWvsJ5bu.js → ChipsGroup_es_CbzUWqG9.js} +33 -33
  5. package/dist/{DatePicker_cjs_Cm50AX0J.js → DatePicker_cjs_Bfiav-tb.js} +1 -1
  6. package/dist/{DatePicker_es_B-WPA9y9.js → DatePicker_es_CtbVXMmy.js} +1 -1
  7. package/dist/{Group_cjs_393FExUN.js → Group_cjs_DNI9PTBq.js} +1 -1
  8. package/dist/{Group_es_BtE98Vb5.js → Group_es_nBtACpoG.js} +1 -1
  9. package/dist/{SelectContainer_cjs_CsHj-fP_.js → SelectContainer_cjs_CdLyIuwj.js} +1 -1
  10. package/dist/{SelectContainer_es_Bc4Laoir.js → SelectContainer_es_DGTrm8OT.js} +1 -1
  11. package/dist/cjs/components/Avatar.js +1 -1
  12. package/dist/cjs/components/AvatarStack.js +2 -2
  13. package/dist/cjs/components/Button.js +1 -1
  14. package/dist/cjs/components/Cell.js +12 -16
  15. package/dist/cjs/components/Chips.js +1 -1
  16. package/dist/cjs/components/Code.js +17 -17
  17. package/dist/cjs/components/CookiesWarning.js +1 -1
  18. package/dist/cjs/components/DatePeriod.js +5 -5
  19. package/dist/cjs/components/DatePicker.js +2 -2
  20. package/dist/cjs/components/Group.js +1 -1
  21. package/dist/cjs/components/Notification.js +1 -1
  22. package/dist/cjs/components/Response.js +2 -2
  23. package/dist/cjs/components/Select.js +2 -2
  24. package/dist/cjs/components/Swiper.js +1 -1
  25. package/dist/cjs/components/Textarea.js +9 -21
  26. package/dist/cjs/components/Video.js +1 -1
  27. package/dist/cjs/components/Warning.js +2 -2
  28. package/dist/components/Avatar.js +1 -1
  29. package/dist/components/AvatarStack.js +2 -2
  30. package/dist/components/Button.js +1 -1
  31. package/dist/components/Cell.js +12 -16
  32. package/dist/components/Chips.js +1 -1
  33. package/dist/components/Code.js +17 -17
  34. package/dist/components/CookiesWarning.js +1 -1
  35. package/dist/components/DatePeriod.js +5 -5
  36. package/dist/components/DatePicker.js +2 -2
  37. package/dist/components/Group.js +1 -1
  38. package/dist/components/Notification.js +1 -1
  39. package/dist/components/Response.js +2 -2
  40. package/dist/components/Select.js +2 -2
  41. package/dist/components/Swiper.js +1 -1
  42. package/dist/components/Textarea.js +9 -21
  43. package/dist/components/Video.js +1 -1
  44. package/dist/components/Warning.js +2 -2
  45. package/dist/css/styles/bundles.css +6 -6
  46. package/dist/snippets/Group.snippets.json +1 -1
  47. package/dist/types/components/Button/Button.d.ts +1 -1
  48. package/dist/types/components/Button/Button.interface.d.ts +1 -1
  49. package/dist/types/components/Cell/Cell.appearance.d.ts +2 -2
  50. package/dist/types/components/Cell/Cell.interface.d.ts +67 -56
  51. package/dist/types/components/Cell/appearance/cellSize.d.ts +2 -58
  52. package/dist/types/components/Cell/appearance/cellStyle.d.ts +2 -13
  53. package/dist/types/components/Cell/appearance/cellSurface.d.ts +2 -54
  54. package/dist/types/components/Chips/Chips.interface.d.ts +83 -21
  55. package/dist/types/components/Chips/ChipsGroup.d.ts +2 -1
  56. package/dist/types/components/Chips/appearance/chipsAccent.d.ts +2 -23
  57. package/dist/types/components/Chips/appearance/chipsDanger.d.ts +2 -16
  58. package/dist/types/components/Chips/appearance/chipsDisabled.d.ts +2 -13
  59. package/dist/types/components/Chips/appearance/chipsError.d.ts +2 -16
  60. package/dist/types/components/Chips/appearance/chipsInfo.d.ts +2 -16
  61. package/dist/types/components/Chips/appearance/chipsPrimary.d.ts +2 -16
  62. package/dist/types/components/Chips/appearance/chipsSecondary.d.ts +2 -16
  63. package/dist/types/components/Chips/appearance/chipsShape.d.ts +2 -24
  64. package/dist/types/components/Chips/appearance/chipsSize.d.ts +2 -44
  65. package/dist/types/components/Chips/appearance/chipsStyle.d.ts +2 -13
  66. package/dist/types/components/Chips/appearance/chipsSuccess.d.ts +2 -16
  67. package/dist/types/components/Chips/appearance/chipsSurface.d.ts +2 -45
  68. package/dist/types/components/Chips/appearance/chipsWarning.d.ts +2 -16
  69. package/dist/types/components/Code/Code.appearance.d.ts +2 -2
  70. package/dist/types/components/Code/Code.interface.d.ts +32 -33
  71. package/dist/types/components/Code/appearance/codeDefault.d.ts +2 -10
  72. package/dist/types/components/Code/appearance/codeDisabled.d.ts +2 -11
  73. package/dist/types/components/Code/appearance/codeError.d.ts +2 -11
  74. package/dist/types/components/Code/appearance/codeRequire.d.ts +2 -11
  75. package/dist/types/components/Code/appearance/codeShape.d.ts +2 -24
  76. package/dist/types/components/Code/appearance/codeSize.d.ts +2 -12
  77. package/dist/types/components/Code/appearance/codeStyle.d.ts +2 -15
  78. package/dist/types/components/Code/appearance/codeSuccess.d.ts +2 -11
  79. package/dist/types/components/Dot/Dot.interface.d.ts +5 -5
  80. package/dist/types/components/Group/Group.appearance.d.ts +2 -2
  81. package/dist/types/components/Group/Group.d.ts +53 -2
  82. package/dist/types/components/Group/Group.interface.d.ts +48 -36
  83. package/dist/types/components/Textarea/Textarea.appearance.d.ts +2 -2
  84. package/dist/types/components/Textarea/Textarea.interface.d.ts +25 -22
  85. package/dist/types/components/Textarea/appearance/textareaDefault.d.ts +2 -36
  86. package/dist/types/components/Textarea/appearance/textareaDisabled.d.ts +2 -19
  87. package/dist/types/components/Textarea/appearance/textareaError.d.ts +2 -19
  88. package/dist/types/components/Textarea/appearance/textareaRequire.d.ts +2 -19
  89. package/dist/types/components/Textarea/appearance/textareaShape.d.ts +2 -24
  90. package/dist/types/components/Textarea/appearance/textareaSize.d.ts +2 -30
  91. package/dist/types/components/Textarea/appearance/textareaStyle.d.ts +2 -15
  92. package/dist/types/components/Textarea/appearance/textareaSuccess.d.ts +2 -20
  93. package/dist/types/components/Title/Title.appearance.d.ts +513 -456
  94. package/dist/types/components/Title/Title.interface.d.ts +11 -9
  95. package/dist/types/components/Video/Video.interface.d.ts +3 -6
  96. package/dist/types/components/Warning/Warning.appearance.d.ts +1276 -121
  97. package/dist/types/components/Warning/Warning.interface.d.ts +38 -34
  98. package/dist/types/components/Warning/appearance/warningAccent.d.ts +2 -22
  99. package/dist/types/components/Warning/appearance/warningError.d.ts +2 -22
  100. package/dist/types/components/Warning/appearance/warningInfo.d.ts +2 -22
  101. package/dist/types/components/Warning/appearance/warningShape.d.ts +2 -24
  102. package/dist/types/components/Warning/appearance/warningSize.d.ts +2 -10
  103. package/dist/types/components/Warning/appearance/warningStyle.d.ts +2 -13
  104. package/dist/types/components/Warning/appearance/warningWarning.d.ts +2 -22
  105. package/package.json +1 -1
  106. package/dist/{Button_cjs_BRShPZw4.js → Button_cjs_DPs7uj_n.js} +1 -1
  107. package/dist/{Button_es_CvRcO3xM.js → Button_es_ljlle2Pu.js} +1 -1
@@ -4,7 +4,7 @@ import { L as Loader } from '../Loader_es_BvTBRuay.js';
4
4
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { B as Button } from '../Button_es_CvRcO3xM.js';
7
+ import { B as Button } from '../Button_es_ljlle2Pu.js';
8
8
  import { I as Icon } from '../Icon_es_CtZHchZc.js';
9
9
  import { T as Text } from '../Text_es_CU9KR5AE.js';
10
10
  import { icons24 } from '@itcase/icons/default';
@@ -6,8 +6,8 @@ import { urlWithAssetPrefix } from '../hoc/urlWithAssetPrefix.js';
6
6
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
8
  import { useStyles } from '../hooks/useStyles/useStyles.js';
9
- import { B as Button } from '../Button_es_CvRcO3xM.js';
10
- import { G as Group } from '../Group_es_BtE98Vb5.js';
9
+ import { B as Button } from '../Button_es_ljlle2Pu.js';
10
+ import { G as Group } from '../Group_es_nBtACpoG.js';
11
11
  import { T as Text } from '../Text_es_CU9KR5AE.js';
12
12
  import '@itcase/common';
13
13
  import '../context/UrlAssetPrefix.js';
@@ -1,4 +1,4 @@
1
- export { a as Select, S as SelectClearIndicator, b as SelectControl, c as SelectDropdownIndicator, d as SelectGroupHeading, e as SelectIndicatorsContainer, f as SelectInput, g as SelectMenu, h as SelectMultiValueContainer, i as SelectMultiValueLabel, j as SelectMultiValueRemove, k as SelectOption, l as SelectPlaceholder, m as SelectSingleValue, n as SelectValueContainer, s as selectConfig } from '../SelectContainer_es_Bc4Laoir.js';
1
+ export { a as Select, S as SelectClearIndicator, b as SelectControl, c as SelectDropdownIndicator, d as SelectGroupHeading, e as SelectIndicatorsContainer, f as SelectInput, g as SelectMenu, h as SelectMultiValueContainer, i as SelectMultiValueLabel, j as SelectMultiValueRemove, k as SelectOption, l as SelectPlaceholder, m as SelectSingleValue, n as SelectValueContainer, s as selectConfig } from '../SelectContainer_es_DGTrm8OT.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
@@ -18,7 +18,7 @@ import 'react-responsive';
18
18
  import '../utils/setViewportProperty.js';
19
19
  import '../hooks.js';
20
20
  import '../hooks/useStyles/styleAttributes.js';
21
- import '../Group_es_BtE98Vb5.js';
21
+ import '../Group_es_nBtACpoG.js';
22
22
  import '../hooks/useStyles/useStyles.js';
23
23
  import 'lodash/maxBy';
24
24
  import '../Text_es_CU9KR5AE.js';
@@ -2,7 +2,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import React, { useRef, useCallback, useImperativeHandle, useEffect, useState } from 'react';
3
3
  import clsx from 'clsx';
4
4
  import { Swiper as Swiper$1, SwiperSlide } from 'swiper/react';
5
- import { G as Group } from '../Group_es_BtE98Vb5.js';
5
+ import { G as Group } from '../Group_es_nBtACpoG.js';
6
6
  import { T as Text } from '../Text_es_CU9KR5AE.js';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
8
  import { useStyles } from '../hooks/useStyles/useStyles.js';
@@ -22,32 +22,28 @@ const textareaAppearanceDefault = {
22
22
  fillHover: 'surfaceTertiary',
23
23
  borderColor: 'surfaceBorderTertiary',
24
24
  borderColorHover: 'surfaceBorderQuaternary',
25
- iconBeforeFill: 'surfaceItemQuaternary',
26
25
  iconClearFill: 'surfaceItemPrimary',
27
26
  placeholderTextColor: 'surfaceTextQuaternary',
28
27
  },
29
- defaultSecondary: {
28
+ defaultQuaternary: {
30
29
  fill: 'surfacePrimary',
31
- fillHover: 'surfaceTertiary',
32
30
  borderColor: 'surfaceBorderTertiary',
33
31
  borderColorHover: 'surfaceBorderQuaternary',
34
- iconBeforeFill: 'surfaceItemQuaternary',
35
32
  iconClearFill: 'surfaceItemPrimary',
36
33
  placeholderTextColor: 'surfaceTextQuaternary',
37
34
  },
38
- defaultTertiary: {
35
+ defaultSecondary: {
39
36
  fill: 'surfacePrimary',
37
+ fillHover: 'surfaceTertiary',
40
38
  borderColor: 'surfaceBorderTertiary',
41
39
  borderColorHover: 'surfaceBorderQuaternary',
42
- iconBeforeFill: 'surfaceItemQuaternary',
43
40
  iconClearFill: 'surfaceItemPrimary',
44
41
  placeholderTextColor: 'surfaceTextQuaternary',
45
42
  },
46
- defaultQuaternary: {
43
+ defaultTertiary: {
47
44
  fill: 'surfacePrimary',
48
45
  borderColor: 'surfaceBorderTertiary',
49
46
  borderColorHover: 'surfaceBorderQuaternary',
50
- iconBeforeFill: 'surfaceItemQuaternary',
51
47
  iconClearFill: 'surfaceItemPrimary',
52
48
  placeholderTextColor: 'surfaceTextQuaternary',
53
49
  },
@@ -59,7 +55,6 @@ const textareaAppearanceDisabled = {
59
55
  borderColor: 'errorBorderQuaternary',
60
56
  borderColorHover: 'errorBorderQuaternary',
61
57
  textColor: 'surfaceTextQuaternary',
62
- iconBeforeFill: 'errorItemQuaternary',
63
58
  iconClearFill: 'errorItemPrimary',
64
59
  placeholderTextColor: 'surfaceTextQuaternary',
65
60
  },
@@ -67,7 +62,6 @@ const textareaAppearanceDisabled = {
67
62
  fill: 'surfaceSecondary',
68
63
  borderColor: 'surfaceBorderTertiary',
69
64
  borderColorHover: 'surfaceBorderQuaternary',
70
- iconBeforeFill: 'surfaceItemQuaternary',
71
65
  iconClearFill: 'surfaceItemPrimary',
72
66
  placeholderTextColor: 'surfaceTextSecondary',
73
67
  },
@@ -77,17 +71,15 @@ const textareaAppearanceError = {
77
71
  errorPrimary: {
78
72
  fill: 'errorTertiary',
79
73
  borderColor: 'errorBorderQuaternary',
80
- borderColorHover: 'errorBorderQuaternary',
74
+ borderColorHover: 'errorBorderHoverQuaternary',
81
75
  textColor: 'surfaceTextPrimary',
82
- iconBeforeFill: 'errorItemQuaternary',
83
76
  iconClearFill: 'errorItemPrimary',
84
77
  placeholderTextColor: 'surfaceTextQuaternary',
85
78
  },
86
79
  errorSecondary: {
87
80
  fill: 'errorSecondary',
88
81
  borderColor: 'errorBorderTertiary',
89
- borderColorHover: 'errorBorderQuaternary',
90
- iconBeforeFill: 'errorItemQuaternary',
82
+ borderColorHover: 'errorBorderHoverQuaternary',
91
83
  iconClearFill: 'errorItemPrimary',
92
84
  placeholderTextColor: 'errorTextSecondary',
93
85
  },
@@ -99,7 +91,6 @@ const textareaAppearanceRequire = {
99
91
  borderColor: 'warningBorderQuaternary',
100
92
  borderColorHover: 'warningBorderQuaternary',
101
93
  textColor: 'surfaceTextPrimary',
102
- iconBeforeFill: 'warningItemQuaternary',
103
94
  iconClearFill: 'warningItemPrimary',
104
95
  placeholderTextColor: 'surfaceTextQuaternary',
105
96
  },
@@ -107,7 +98,6 @@ const textareaAppearanceRequire = {
107
98
  fill: 'surfaceSecondary',
108
99
  borderColor: 'surfaceBorderTertiary',
109
100
  borderColorHover: 'surfaceBorderQuaternary',
110
- iconBeforeFill: 'surfaceItemQuaternary',
111
101
  iconClearFill: 'surfaceItemPrimary',
112
102
  placeholderTextColor: 'surfaceTextSecondary',
113
103
  },
@@ -188,11 +178,10 @@ const textareaAppearanceStyle = {
188
178
  const textareaAppearanceSuccess = {
189
179
  successPrimary: {
190
180
  fill: 'successTertiary',
191
- fillHover: 'successTertiary',
181
+ fillHover: 'successHoverTertiary',
192
182
  borderColor: 'successBorderQuaternary',
193
183
  borderColorHover: 'successBorderQuaternary',
194
184
  textColor: 'surfaceTextPrimary',
195
- iconBeforeFill: 'successItemQuaternary',
196
185
  iconClearFill: 'successItemPrimary',
197
186
  placeholderTextColor: 'surfaceTextQuaternary',
198
187
  },
@@ -200,7 +189,6 @@ const textareaAppearanceSuccess = {
200
189
  fill: 'surfaceSecondary',
201
190
  borderColor: 'surfaceBorderTertiary',
202
191
  borderColorHover: 'surfaceBorderQuaternary',
203
- iconBeforeFill: 'surfaceItemQuaternary',
204
192
  iconClearFill: 'surfaceItemPrimary',
205
193
  placeholderTextColor: 'surfaceTextSecondary',
206
194
  },
@@ -224,12 +212,12 @@ const textareaConfig = {
224
212
  },
225
213
  };
226
214
  function Textarea(props) {
227
- const { id, className, appearance, isDisabled, placeholder, value, onBlur, onChange, onFocus, onKeyDown, } = props;
215
+ const { id, appearance, className, placeholder, value, isDisabled, onBlur, onChange, onFocus, onKeyDown, } = props;
228
216
  const appearanceConfig = useAppearanceConfig(appearance, textareaConfig, isDisabled);
229
217
  const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
230
218
  const { fillClass, fillHoverClass, borderColorClass, borderHoverClass, borderWidthClass, textColorClass, textSizeClass, textWeightClass, caretClass, placeholderTextColorClass, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
231
219
  return (jsx("div", { className: clsx('textarea', className, sizeClass && `textarea_size_${sizeClass}`), children: jsx("textarea", { id: id, className: clsx('textarea__input', (textSizeClass || textColorClass || textWeightClass) && 'text', caretClass && `caret-color_${caretClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderHoverClass && `border-color_hover_${borderHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, placeholderTextColorClass &&
232
- `placeholder-text-color_${placeholderTextColorClass}`, textSizeClass && `text_size_${textSizeClass}`, textColorClass && `text-color_${textColorClass}`, textWeightClass && `text-weight_${textWeightClass}`, widthClass && `width_${widthClass}`), disabled: isDisabled && 'disabled', placeholder: placeholder, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown }) }));
220
+ `placeholder-text-color_${placeholderTextColorClass}`, textSizeClass && `text_size_${textSizeClass}`, textColorClass && `text-color_${textColorClass}`, textWeightClass && `text-weight_${textWeightClass}`, widthClass && `width_${widthClass}`), disabled: isDisabled, placeholder: placeholder, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown }) }));
233
221
  }
234
222
 
235
223
  export { Textarea, textareaAppearance, textareaConfig };
@@ -18,7 +18,7 @@ import '../hooks/useStyles/styleAttributes.js';
18
18
  function Video(props) {
19
19
  const { id, className, position, mp4, ogv, poster, webm, children } = props;
20
20
  const { styles: videoStyles } = useStyles(props);
21
- return (jsxs("div", { id: id, className: clsx('video', className, poster && `video_poster`, position && `video_position_${position}`), style: videoStyles, children: [jsxs("video", { className: "video__wrapper", autoPlay: true, loop: true, muted: true, playsInline: false, poster: poster, children: [webm && jsx("source", { type: "video/webm", src: webm, codecs: "vp8, vorbis" }), ogv && jsx("source", { type: "video/ogg", src: ogv, codecs: "theora, vorbis" }), mp4 && (jsx("source", { type: "video/mp4", src: mp4, codecs: "avc1.42E01E, mp4a.40.2" }))] }), children] }));
21
+ return (jsxs("div", { id: id, className: clsx('video', className, poster && `video_poster`, position && `video_position_${position}`), style: videoStyles, children: [jsxs("video", { className: "video__wrapper", autoPlay: true, loop: true, muted: true, playsInline: false, poster: poster, children: [webm && jsx("source", { type: 'video/webm; codecs="vp8, vorbis"', src: webm }), ogv && jsx("source", { type: 'video/ogg; codecs="theora, vorbi"', src: ogv }), mp4 && (jsx("source", { type: 'video/mp4; codecs="avc1.42E01E, mp4a.40.2"', src: mp4 }))] }), children] }));
22
22
  }
23
23
 
24
24
  export { Video };
@@ -184,14 +184,14 @@ const warningConfig = {
184
184
  },
185
185
  };
186
186
  function Warning(props) {
187
- const { appearance, className, label, description, isSkeleton } = props;
187
+ const { appearance, className, label, description, isSkeleton, children } = props;
188
188
  const appearanceConfig = useAppearanceConfig(appearance, warningConfig);
189
189
  const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
190
190
  const { fillClass, labelTextColor, labelTextSize, labelTextWeight, descriptionTextColor, descriptionTextSize, borderColorClass, iconAfter, iconAfterFill, iconAfterFillIcon, iconAfterSize, iconAfterSrc, iconBefore, iconBeforeFill, iconBeforeFillIcon, iconBeforeSize, iconBeforeSrc, shapeClass, shapeStrengthClass, sizeClass, } = propsGenerator;
191
191
  // @ts-ignore
192
192
  const { styles: warningStyles } = useStyles(props);
193
193
  const [isVisible, setIsVisible] = useState(true);
194
- return (jsx(Fragment, { children: isVisible && (jsxs("div", { className: clsx(className, 'warning', fillClass && `fill_${fillClass}`, sizeClass && `warning_size_${sizeClass}`, borderColorClass && `border-color_${borderColorClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, isSkeleton && `warning_skeleton`), style: warningStyles, children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { fill: iconBeforeFill, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, SvgImage: iconBefore })), jsxs("div", { className: 'warning__content', children: [label && (jsx(Text, { size: labelTextSize, textColor: labelTextColor, textWeight: labelTextWeight, children: label })), description && (jsx(Text, { size: descriptionTextSize, textColor: descriptionTextColor, children: description }))] }), (iconAfter || iconAfterSrc) && (jsx(Icon, { fill: iconAfterFill, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, SvgImage: iconAfter, onClick: () => setIsVisible(false) }))] })) }));
194
+ return (jsx(Fragment, { children: isVisible && (jsxs("div", { className: clsx(className, 'warning', fillClass && `fill_${fillClass}`, sizeClass && `warning_size_${sizeClass}`, borderColorClass && `border-color_${borderColorClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, isSkeleton && `warning_skeleton`), style: warningStyles, children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { fill: iconBeforeFill, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, SvgImage: iconBefore })), jsxs("div", { className: 'warning__content', children: [label && (jsx(Text, { size: labelTextSize, textColor: labelTextColor, textWeight: labelTextWeight, children: label })), description && (jsx(Text, { size: descriptionTextSize, textColor: descriptionTextColor, children: description })), children] }), (iconAfter || iconAfterSrc) && (jsx(Icon, { fill: iconAfterFill, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, SvgImage: iconAfter, onClick: () => setIsVisible(false) }))] })) }));
195
195
  }
196
196
 
197
197
  export { Warning, warningAppearance, warningConfig };
@@ -64762,8 +64762,8 @@ h2.react-datepicker__current-month {
64762
64762
  align-items: flex-start;
64763
64763
  &-reverse {
64764
64764
  display: flex;
64765
- align-items: flex-start;
64766
64765
  flex-direction: row-reverse;
64766
+ align-items: flex-start;
64767
64767
  }
64768
64768
  }
64769
64769
  &_vertical {
@@ -64772,29 +64772,29 @@ h2.react-datepicker__current-month {
64772
64772
  align-items: flex-start;
64773
64773
  &-reverse {
64774
64774
  display: flex;
64775
- align-items: flex-start;
64776
64775
  flex-direction: column-reverse;
64776
+ align-items: flex-start;
64777
64777
  }
64778
64778
  }
64779
64779
  &_row {
64780
64780
  display: flex;
64781
- align-items: flex-start;
64782
64781
  flex-direction: row;
64782
+ align-items: flex-start;
64783
64783
  }
64784
64784
  &_row-reverse {
64785
64785
  display: flex;
64786
- align-items: flex-start;
64787
64786
  flex-direction: row-reverse;
64787
+ align-items: flex-start;
64788
64788
  }
64789
64789
  &_column {
64790
64790
  display: flex;
64791
- align-items: flex-start;
64792
64791
  flex-direction: column;
64792
+ align-items: flex-start;
64793
64793
  }
64794
64794
  &_column-reverse {
64795
64795
  display: flex;
64796
- align-items: flex-start;
64797
64796
  flex-direction: column-reverse;
64797
+ align-items: flex-start;
64798
64798
  }
64799
64799
  }
64800
64800
  }
@@ -2,7 +2,7 @@
2
2
  "Group": {
3
3
  "prefix": "group",
4
4
  "body": [
5
- "<Group width=\"${1|fill,auto}\" direction=\"${2|horizontal,vertical,row-reverse,column-reverse|}\">",
5
+ "<Group width=\"${1|fill,auto|}\" direction=\"${2|horizontal,vertical,row-reverse,column-reverse|}\">",
6
6
  " $3",
7
7
  "</Group>"
8
8
  ],
@@ -58,7 +58,7 @@ declare const Button: React.ForwardRefExoticComponent<{
58
58
  href?: string;
59
59
  htmlType?: string;
60
60
  isDisabled?: boolean;
61
- isLoading: boolean;
61
+ isLoading?: boolean;
62
62
  isSkeleton?: boolean;
63
63
  label?: string;
64
64
  labelTextTruncate?: boolean;
@@ -62,7 +62,7 @@ type ButtonProps = ButtonAppearanceProps & StyleAttributes & {
62
62
  href?: string;
63
63
  htmlType?: string;
64
64
  isDisabled?: boolean;
65
- isLoading: boolean;
65
+ isLoading?: boolean;
66
66
  isSkeleton?: boolean;
67
67
  label?: string;
68
68
  labelTextTruncate?: boolean;
@@ -1,2 +1,2 @@
1
- import { CellAppearanceType } from './Cell.interface';
2
- export declare const cellAppearance: CellAppearanceType;
1
+ import { CellAppearance } from './Cell.interface';
2
+ export declare const cellAppearance: CellAppearance;
@@ -1,75 +1,86 @@
1
- import { ElementType, ReactNode } from 'react';
2
- import { AppearanceKeysDefault, DirectionProps, FillProps, IconFillSizeProps, ItemColorProps, ShapeProps, SizeProps, TextAlignProps, TextColorProps, TextSizeProps, TextWeightProps, TextWrapProps } from '@itcase/types';
1
+ import { ReactNode } from 'react';
2
+ import { AppearanceKeysDefault, AppearanceSizeKey, AppearanceStyleKey, BorderColorProps, CompositeAppearanceDefaultSizeStyleKey, DirectionProps, FillActiveHoverProps, FillHoverProps, FillProps, ItemColorProps, ShapeProps, SizeProps, TextColorProps } from '@itcase/types';
3
3
  import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
4
- export interface CellThemeColor {
5
- }
6
- type AppearanceKeys = AppearanceKeysDefault & {};
7
- export type CellAppearanceType = {
8
- [key in AppearanceKeys]?: CellThemeColor;
9
- };
10
- export interface CellConfig {
11
- [key: number | string | symbol]: any;
12
- appearance: CellAppearanceType | undefined;
13
- setAppearance: (newComponent: CellAppearanceType) => void;
14
- }
15
- export interface CellProps extends CellThemeColor, StyleAttributes {
16
- [key: number | string | symbol]: any;
17
- after?: ReactNode;
18
- appearance?: AppearanceKeys;
19
- before?: ReactNode;
20
- className?: string;
4
+ import { IconProps } from '../Icon/Icon.interface';
5
+ import { LabelProps } from '../Label/Label.interface';
6
+ import { TextProps } from '../Text/Text.interface';
7
+ type CellAppearanceProps = {
8
+ borderColor?: BorderColorProps;
9
+ borderColorActive?: BorderColorProps;
10
+ borderColorActiveHover?: BorderColorProps;
11
+ borderColorHover?: BorderColorProps;
21
12
  direction?: DirectionProps;
22
- mode?: string;
23
- reverse?: boolean;
24
- showTitleLabel?: boolean;
25
- showValueLabel?: boolean;
13
+ fill?: FillProps;
14
+ fillActive?: FillProps;
15
+ fillActiveHover?: FillActiveHoverProps;
16
+ fillHover?: FillHoverProps;
17
+ labelTextColor?: TextColorProps;
18
+ shape?: ShapeProps;
26
19
  size?: SizeProps;
27
- title?: any;
28
- titleIcon?: ElementType;
29
- titleIconFill?: FillProps;
20
+ titleIconFill?: IconProps['fill'];
30
21
  titleIconFillHover?: ItemColorProps;
31
- titleIconFillSize?: IconFillSizeProps;
22
+ titleIconFillSize?: IconProps['fillSize'];
32
23
  titleIconItemFill?: ItemColorProps;
33
- titleIconShape?: ShapeProps;
34
- titleIconSrc?: string;
35
- titleLabel?: string;
36
- titleLabelAppearance?: AppearanceKeys;
24
+ titleIconShape?: IconProps['shape'];
25
+ titleIconSrc?: IconProps['imageSrc'];
26
+ titleLabelAppearance?: LabelProps['appearance'];
27
+ titleLabelAppearanceSize?: AppearanceSizeKey;
37
28
  titleLabelShape?: ShapeProps;
38
29
  titleLabelSize?: SizeProps;
39
- titleLabelTextSize?: TextSizeProps;
40
- titleTag?: ElementType;
30
+ titleLabelTextSize?: TextProps['size'];
41
31
  titleTextColor?: TextColorProps;
42
- titleTextSize?: TextSizeProps;
43
- titleTextTruncate?: boolean;
44
- titleTextWeight?: TextWeightProps;
45
- titleTextWrap?: TextWrapProps;
46
- value?: any;
47
- valueIcon?: ElementType;
48
- valueIconFill?: FillProps;
32
+ titleTextSize?: TextProps['size'];
33
+ titleTextTruncate?: TextProps['textTruncate'];
34
+ titleTextWeight?: TextProps['textWeight'];
35
+ titleTextWrap?: TextProps['textWrap'];
36
+ valueIconFill?: IconProps['fill'];
49
37
  valueIconFillHover?: ItemColorProps;
50
- valueIconFillSize?: IconFillSizeProps;
38
+ valueIconFillSize?: IconProps['fillSize'];
51
39
  valueIconItemFill?: ItemColorProps;
52
- valueIconShape?: ShapeProps;
53
- valueIconSrc?: string;
40
+ valueIconShape?: IconProps['shape'];
41
+ valueIconSrc?: IconProps['imageSrc'];
54
42
  valueLabel?: string;
55
- valueLabelAppearance?: AppearanceKeys;
43
+ valueLabelAppearance?: LabelProps['appearance'];
44
+ valueLabelAppearanceSize?: AppearanceSizeKey;
56
45
  valueLabelShape?: ShapeProps;
57
46
  valueLabelSize?: SizeProps;
58
- valueLabelTextSize?: TextSizeProps;
59
- valueTag?: ElementType;
60
- valueTextAlign?: TextAlignProps;
61
- valueTextColor?: TextColorProps;
62
- valueTextSize?: TextSizeProps;
63
- valueTextTruncate?: boolean;
64
- valueTextWeight?: TextWeightProps;
65
- valueTextWrap?: TextWrapProps;
47
+ valueLabelTextSize?: TextProps['size'];
48
+ valueTextAlign?: TextProps['textAlign'];
49
+ valueTextColor?: TextProps['textColor'];
50
+ valueTextSize?: TextProps['size'];
51
+ valueTextTruncate?: TextProps['textTruncate'];
52
+ valueTextWeight?: TextProps['textWeight'];
53
+ valueTextWrap?: TextProps['textWrap'];
66
54
  zeroGap?: boolean;
67
55
  zeroPadding?: boolean;
56
+ };
57
+ type CellProps = CellAppearanceProps & StyleAttributes & {
58
+ after?: string;
59
+ appearance?: CompositeAppearanceDefaultSizeStyleKey;
60
+ before?: string;
61
+ className?: string;
68
62
  isActive?: boolean;
69
- isDisabled?: boolean;
70
63
  isEqual?: boolean;
64
+ isSameWidth?: boolean;
71
65
  onClick?: () => void;
72
66
  onMouseEnter?: () => void;
73
- set?: string;
74
- }
75
- export {};
67
+ reverse?: boolean;
68
+ showTitleLabel?: boolean;
69
+ showValueLabel?: boolean;
70
+ title?: string;
71
+ titleIcon?: IconProps['SvgImage'];
72
+ titleLabel?: string;
73
+ titleTag?: ReactNode;
74
+ value?: string;
75
+ valueIcon?: IconProps['SvgImage'];
76
+ valueTag?: TextProps['tag'];
77
+ };
78
+ type AppearanceKeys = AppearanceKeysDefault | AppearanceSizeKey | AppearanceStyleKey;
79
+ type CellAppearance = {
80
+ [key in AppearanceKeys]?: CellAppearanceProps;
81
+ };
82
+ type CellConfig = {
83
+ appearance: CellAppearance;
84
+ setAppearance: (appearanceConfig: CellAppearance) => void;
85
+ };
86
+ export type { CellAppearance, CellConfig, CellProps };
@@ -1,59 +1,3 @@
1
- declare const cellAppearanceSize: {
2
- sizeXL: {
3
- size: string;
4
- titleLabelAppearanceSize: string;
5
- titleTextSize: string;
6
- valueLabelAppearanceSize: string;
7
- valueTextSize: string;
8
- };
9
- sizeL: {
10
- size: string;
11
- titleLabelAppearanceSize: string;
12
- titleTextSize: string;
13
- valueLabelAppearanceSize: string;
14
- valueTextSize: string;
15
- };
16
- sizeM: {
17
- size: string;
18
- titleLabelAppearanceSize: string;
19
- titleTextSize: string;
20
- valueLabelAppearanceSize: string;
21
- valueTextSize: string;
22
- };
23
- sizeS: {
24
- size: string;
25
- titleLabelAppearanceSize: string;
26
- titleTextSize: string;
27
- valueLabelAppearanceSize: string;
28
- valueTextSize: string;
29
- };
30
- sizeEqualL: {
31
- size: string;
32
- titleLabelAppearanceSize: string;
33
- titleTextSize: string;
34
- valueLabelAppearanceSize: string;
35
- valueTextSize: string;
36
- };
37
- sizeEqualM: {
38
- size: string;
39
- titleLabelAppearanceSize: string;
40
- titleTextSize: string;
41
- valueLabelAppearanceSize: string;
42
- valueTextSize: string;
43
- };
44
- sizeEqualS: {
45
- size: string;
46
- titleLabelAppearanceSize: string;
47
- titleTextSize: string;
48
- valueLabelAppearanceSize: string;
49
- valueTextSize: string;
50
- };
51
- sizeEqualXL: {
52
- size: string;
53
- titleLabelAppearanceSize: string;
54
- titleTextSize: string;
55
- valueLabelAppearanceSize: string;
56
- valueTextSize: string;
57
- };
58
- };
1
+ import { CellAppearance } from '../Cell.interface';
2
+ declare const cellAppearanceSize: CellAppearance;
59
3
  export { cellAppearanceSize };
@@ -1,14 +1,3 @@
1
- declare const cellAppearanceStyle: {
2
- solid: {
3
- borderColor: string;
4
- };
5
- outlined: {
6
- fill: string;
7
- };
8
- full: {};
9
- ghost: {
10
- fill: string;
11
- borderColor: string;
12
- };
13
- };
1
+ import { CellAppearance } from '../Cell.interface';
2
+ declare const cellAppearanceStyle: CellAppearance;
14
3
  export { cellAppearanceStyle };
@@ -1,55 +1,3 @@
1
- declare const cellAppearanceSurface: {
2
- surfacePrimary: {
3
- fill: string;
4
- fillHover: string;
5
- titleIconItemFill: string;
6
- titleLabelAppearance: string;
7
- titleTextColor: string;
8
- titleTextSize: string;
9
- labelTextColor: string;
10
- borderColor: string;
11
- valueIconItemFill: string;
12
- valueLabelAppearance: string;
13
- valueTextColor: string;
14
- };
15
- surfaceSecondary: {
16
- fill: string;
17
- fillHover: string;
18
- titleIconItemFill: string;
19
- titleLabelAppearance: string;
20
- titleTextColor: string;
21
- titleTextSize: string;
22
- labelTextColor: string;
23
- borderColor: string;
24
- valueIconItemFill: string;
25
- valueLabelAppearance: string;
26
- valueTextColor: string;
27
- };
28
- surfaceTertiary: {
29
- fill: string;
30
- fillHover: string;
31
- titleIconItemFill: string;
32
- titleLabelAppearance: string;
33
- titleTextColor: string;
34
- titleTextSize: string;
35
- labelTextColor: string;
36
- borderColor: string;
37
- valueIconItemFill: string;
38
- valueLabelAppearance: string;
39
- valueTextColor: string;
40
- };
41
- surfaceQuaternary: {
42
- fill: string;
43
- fillHover: string;
44
- titleIconItemFill: string;
45
- titleLabelAppearance: string;
46
- titleTextColor: string;
47
- titleTextSize: string;
48
- labelTextColor: string;
49
- borderColor: string;
50
- valueIconItemFill: string;
51
- valueLabelAppearance: string;
52
- valueTextColor: string;
53
- };
54
- };
1
+ import { CellAppearance } from '../Cell.interface';
2
+ declare const cellAppearanceSurface: CellAppearance;
55
3
  export { cellAppearanceSurface };