@itcase/ui 1.9.23 → 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_CFzdSMKV.js → Group_cjs_DNI9PTBq.js} +3 -3
  8. package/dist/{Group_es_BwTj-yH-.js → Group_es_nBtACpoG.js} +3 -3
  9. package/dist/{SelectContainer_cjs_tjM35jHG.js → SelectContainer_cjs_CdLyIuwj.js} +1 -1
  10. package/dist/{SelectContainer_es_BKIz5i19.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 +25 -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
@@ -46,7 +46,7 @@ const codeAppearanceError = {
46
46
  inputBorderColorHover: 'errorBorderSecondary',
47
47
  inputCaretColor: 'surfaceItemPrimary',
48
48
  inputFill: 'errorTertiary',
49
- inputFillHover: 'errorTertiary',
49
+ inputFillHover: 'errorHoverTertiary',
50
50
  inputPlaceholderTextColor: 'surfaceTextQuaternary',
51
51
  inputTextColor: 'surfaceTextPrimary',
52
52
  },
@@ -71,21 +71,21 @@ const codeAppearanceShape = {
71
71
  rounded: {
72
72
  shape: 'rounded',
73
73
  },
74
- roundedS: {
75
- shape: 'rounded',
76
- shapeStrength: '0_5m',
77
- },
78
- roundedM: {
74
+ roundedXL: {
79
75
  shape: 'rounded',
80
- shapeStrength: '1m',
76
+ shapeStrength: '2m',
81
77
  },
82
78
  roundedL: {
83
79
  shape: 'rounded',
84
80
  shapeStrength: '1_5m',
85
81
  },
86
- roundedXL: {
82
+ roundedM: {
87
83
  shape: 'rounded',
88
- shapeStrength: '2m',
84
+ shapeStrength: '1m',
85
+ },
86
+ roundedS: {
87
+ shape: 'rounded',
88
+ shapeStrength: '0_5m',
89
89
  },
90
90
  };
91
91
 
@@ -103,19 +103,19 @@ const codeAppearanceSize = {
103
103
  };
104
104
 
105
105
  const codeAppearanceStyle = {
106
- full: {
107
- inputBorderColor: 'none',
108
- },
109
- ghost: {
106
+ solid: {
110
107
  inputBorderColor: 'none',
111
- inputFill: 'none',
112
108
  },
113
109
  outlined: {
114
110
  inputFill: 'none',
115
111
  },
116
- solid: {
112
+ full: {
117
113
  inputBorderColor: 'none',
118
114
  },
115
+ ghost: {
116
+ inputBorderColor: 'none',
117
+ inputFill: 'none',
118
+ },
119
119
  };
120
120
 
121
121
  const codeAppearanceSuccess = {
@@ -124,7 +124,7 @@ const codeAppearanceSuccess = {
124
124
  inputBorderColorHover: 'successBorderSecondary',
125
125
  inputCaretColor: 'surfaceItemPrimary',
126
126
  inputFill: 'successTertiary',
127
- inputFillHover: 'successTertiary',
127
+ inputFillHover: 'successHoverTertiary',
128
128
  inputPlaceholderTextColor: 'surfaceTextQuaternary',
129
129
  inputTextColor: 'surfaceTextPrimary',
130
130
  },
@@ -148,7 +148,7 @@ const codeConfig = {
148
148
  },
149
149
  };
150
150
  function Code(props) {
151
- const { className, appearance, initialValue = '', isDisabled, inputAutoFocus, inputCount = 6, inputPlaceholder, inputType = 'number', separatorComponent, before, after, isSkeleton, onBlur, onChange, onFocus, } = props;
151
+ const { appearance, className, initialValue = '', inputAutoFocus, inputCount = 6, inputPlaceholder, inputType = 'number', separatorComponent, before, after, isDisabled, isSkeleton, onBlur, onChange, onFocus, } = props;
152
152
  const [otp, setOtp] = useState(initialValue);
153
153
  const appearanceConfig = useAppearanceConfig(appearance, codeConfig, isDisabled);
154
154
  const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
@@ -4,7 +4,7 @@ import clsx from 'clsx';
4
4
  import Cookies from 'js-cookie';
5
5
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
- import { B as Button } from '../Button_es_CvRcO3xM.js';
7
+ import { B as Button } from '../Button_es_ljlle2Pu.js';
8
8
  import { T as Text } from '../Text_es_CU9KR5AE.js';
9
9
  import 'lodash/camelCase';
10
10
  import 'lodash/castArray';
@@ -5,17 +5,17 @@ import { DateTime } from 'luxon';
5
5
  import { DATE_PERIOD_INTERVALS } from '@itcase/common';
6
6
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
- import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_DWvsJ5bu.js';
9
- import { D as DatePickerInput } from '../DatePicker_es_B-WPA9y9.js';
8
+ import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_CbzUWqG9.js';
9
+ import { D as DatePickerInput } from '../DatePicker_es_CtbVXMmy.js';
10
10
  import 'react-select';
11
11
  import '../Icon_es_CtZHchZc.js';
12
- import { a as SelectContainer } from '../SelectContainer_es_BKIz5i19.js';
12
+ import { a as SelectContainer } from '../SelectContainer_es_DGTrm8OT.js';
13
13
  import 'lodash/camelCase';
14
14
  import 'lodash/maxBy';
15
15
  import 'lodash/upperFirst';
16
16
  import '../context/Notifications.js';
17
17
  import '../context/UIContext.js';
18
- import '../Group_es_BwTj-yH-.js';
18
+ import '../Group_es_nBtACpoG.js';
19
19
  import 'lodash/castArray';
20
20
  import '../hooks.js';
21
21
  import '../hooks/useStyles/styleAttributes.js';
@@ -27,7 +27,7 @@ import '../hooks/useStyles/useStyles.js';
27
27
  import '../Text_es_CU9KR5AE.js';
28
28
  import 'date-fns/locale';
29
29
  import 'react-datepicker';
30
- import '../Button_es_CvRcO3xM.js';
30
+ import '../Button_es_ljlle2Pu.js';
31
31
  import '../Link_es_P2b6ya7P.js';
32
32
  import '../Loader_es_BvTBRuay.js';
33
33
  import '../Input_es_I8GPoibb.js';
@@ -1,4 +1,4 @@
1
- export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_B-WPA9y9.js';
1
+ export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_CtbVXMmy.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
@@ -20,7 +20,7 @@ import '../hooks.js';
20
20
  import '../hooks/useStyles/styleAttributes.js';
21
21
  import '../hooks/useStyles/useStyles.js';
22
22
  import 'lodash/maxBy';
23
- import '../Button_es_CvRcO3xM.js';
23
+ import '../Button_es_ljlle2Pu.js';
24
24
  import '../Icon_es_CtZHchZc.js';
25
25
  import 'react-inlinesvg';
26
26
  import '../hoc/urlWithAssetPrefix.js';
@@ -1,4 +1,4 @@
1
- export { G as Group, a as groupAppearance, g as groupConfig } from '../Group_es_BwTj-yH-.js';
1
+ export { G as Group, a as groupAppearance, g as groupConfig } from '../Group_es_nBtACpoG.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
@@ -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_BwTj-yH-.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_BKIz5i19.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_BwTj-yH-.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_BwTj-yH-.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 };
@@ -35599,6 +35599,25 @@ textarea.fill {
35599
35599
  }
35600
35600
  }
35601
35601
  }
35602
+ .hover-filter {
35603
+ &_brightness {
35604
+ &09 {
35605
+ &:hover {
35606
+ filter: brightness(0.9);
35607
+ }
35608
+ }
35609
+ &1 {
35610
+ &:hover {
35611
+ filter: brightness(1);
35612
+ }
35613
+ }
35614
+ &11 {
35615
+ &:hover {
35616
+ filter: brightness(1.1);
35617
+ }
35618
+ }
35619
+ }
35620
+ }
35602
35621
  .hover-item-color {
35603
35622
  &_accent {
35604
35623
  &-item {
@@ -64743,8 +64762,8 @@ h2.react-datepicker__current-month {
64743
64762
  align-items: flex-start;
64744
64763
  &-reverse {
64745
64764
  display: flex;
64746
- align-items: flex-start;
64747
64765
  flex-direction: row-reverse;
64766
+ align-items: flex-start;
64748
64767
  }
64749
64768
  }
64750
64769
  &_vertical {
@@ -64753,29 +64772,29 @@ h2.react-datepicker__current-month {
64753
64772
  align-items: flex-start;
64754
64773
  &-reverse {
64755
64774
  display: flex;
64756
- align-items: flex-start;
64757
64775
  flex-direction: column-reverse;
64776
+ align-items: flex-start;
64758
64777
  }
64759
64778
  }
64760
64779
  &_row {
64761
64780
  display: flex;
64762
- align-items: flex-start;
64763
64781
  flex-direction: row;
64782
+ align-items: flex-start;
64764
64783
  }
64765
64784
  &_row-reverse {
64766
64785
  display: flex;
64767
- align-items: flex-start;
64768
64786
  flex-direction: row-reverse;
64787
+ align-items: flex-start;
64769
64788
  }
64770
64789
  &_column {
64771
64790
  display: flex;
64772
- align-items: flex-start;
64773
64791
  flex-direction: column;
64792
+ align-items: flex-start;
64774
64793
  }
64775
64794
  &_column-reverse {
64776
64795
  display: flex;
64777
- align-items: flex-start;
64778
64796
  flex-direction: column-reverse;
64797
+ align-items: flex-start;
64779
64798
  }
64780
64799
  }
64781
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 };