@itcase/ui 1.9.24 → 1.9.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.
- package/dist/{Avatar_cjs_DRZE113U.js → Avatar_cjs_CS01fvh-.js} +11 -5
- package/dist/{Avatar_es_Cmq4xAG6.js → Avatar_es_DRObE1DB.js} +11 -5
- package/dist/{ChipsGroup_cjs_D0bGehZY.js → ChipsGroup_cjs_Sn3uiCSJ.js} +33 -33
- package/dist/{ChipsGroup_es_DWvsJ5bu.js → ChipsGroup_es_CbzUWqG9.js} +33 -33
- package/dist/{DatePicker_cjs_Cm50AX0J.js → DatePicker_cjs_Bfiav-tb.js} +1 -1
- package/dist/{DatePicker_es_B-WPA9y9.js → DatePicker_es_CtbVXMmy.js} +1 -1
- package/dist/{Divider_cjs_DrmV2ezS.js → Divider_cjs_BZn2epqW.js} +2 -2
- package/dist/{Divider_es_BiYozVBS.js → Divider_es_DNJg0mQR.js} +2 -2
- package/dist/{DropdownItem_cjs_CawN_Tz7.js → DropdownItem_cjs_Capn0Iu7.js} +1 -1
- package/dist/{DropdownItem_es_BauhVrYj.js → DropdownItem_es_CTw07zF3.js} +1 -1
- package/dist/{Group_cjs_393FExUN.js → Group_cjs_DNI9PTBq.js} +1 -1
- package/dist/{Group_es_BtE98Vb5.js → Group_es_nBtACpoG.js} +1 -1
- package/dist/{SelectContainer_cjs_CsHj-fP_.js → SelectContainer_cjs_doMatESV.js} +2 -2
- package/dist/{SelectContainer_es_Bc4Laoir.js → SelectContainer_es_2ZX3VSMS.js} +2 -2
- package/dist/cjs/components/Accordion.js +1 -1
- package/dist/cjs/components/Avatar.js +1 -1
- package/dist/cjs/components/AvatarStack.js +2 -2
- package/dist/cjs/components/Button.js +1 -1
- package/dist/cjs/components/Cell.js +12 -16
- package/dist/cjs/components/Chips.js +1 -1
- package/dist/cjs/components/Code.js +17 -17
- package/dist/cjs/components/CookiesWarning.js +1 -1
- package/dist/cjs/components/DatePeriod.js +6 -6
- package/dist/cjs/components/DatePicker.js +2 -2
- package/dist/cjs/components/Divider.js +1 -1
- package/dist/cjs/components/Drawer.js +1 -1
- package/dist/cjs/components/Dropdown.js +2 -2
- package/dist/cjs/components/Group.js +1 -1
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Pagination.js +2 -2
- package/dist/cjs/components/Response.js +2 -2
- package/dist/cjs/components/Select.js +3 -3
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/cjs/components/Textarea.js +9 -21
- package/dist/cjs/components/Video.js +1 -1
- package/dist/cjs/components/Warning.js +2 -2
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Avatar.js +1 -1
- package/dist/components/AvatarStack.js +2 -2
- package/dist/components/Button.js +1 -1
- package/dist/components/Cell.js +12 -16
- package/dist/components/Chips.js +1 -1
- package/dist/components/Code.js +17 -17
- package/dist/components/CookiesWarning.js +1 -1
- package/dist/components/DatePeriod.js +6 -6
- package/dist/components/DatePicker.js +2 -2
- package/dist/components/Divider.js +1 -1
- package/dist/components/Drawer.js +1 -1
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/Group.js +1 -1
- package/dist/components/Notification.js +1 -1
- package/dist/components/Pagination.js +2 -2
- package/dist/components/Response.js +2 -2
- package/dist/components/Select.js +3 -3
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab.js +1 -1
- package/dist/components/Textarea.js +9 -21
- package/dist/components/Video.js +1 -1
- package/dist/components/Warning.js +2 -2
- package/dist/css/styles/bundles.css +6 -6
- package/dist/snippets/Group.snippets.json +1 -1
- package/dist/types/components/Button/Button.d.ts +1 -1
- package/dist/types/components/Button/Button.interface.d.ts +1 -1
- package/dist/types/components/Cell/Cell.appearance.d.ts +2 -2
- package/dist/types/components/Cell/Cell.interface.d.ts +67 -56
- package/dist/types/components/Cell/appearance/cellSize.d.ts +2 -58
- package/dist/types/components/Cell/appearance/cellStyle.d.ts +2 -13
- package/dist/types/components/Cell/appearance/cellSurface.d.ts +2 -54
- package/dist/types/components/Chips/Chips.interface.d.ts +83 -21
- package/dist/types/components/Chips/ChipsGroup.d.ts +2 -1
- package/dist/types/components/Chips/appearance/chipsAccent.d.ts +2 -23
- package/dist/types/components/Chips/appearance/chipsDanger.d.ts +2 -16
- package/dist/types/components/Chips/appearance/chipsDisabled.d.ts +2 -13
- package/dist/types/components/Chips/appearance/chipsError.d.ts +2 -16
- package/dist/types/components/Chips/appearance/chipsInfo.d.ts +2 -16
- package/dist/types/components/Chips/appearance/chipsPrimary.d.ts +2 -16
- package/dist/types/components/Chips/appearance/chipsSecondary.d.ts +2 -16
- package/dist/types/components/Chips/appearance/chipsShape.d.ts +2 -24
- package/dist/types/components/Chips/appearance/chipsSize.d.ts +2 -44
- package/dist/types/components/Chips/appearance/chipsStyle.d.ts +2 -13
- package/dist/types/components/Chips/appearance/chipsSuccess.d.ts +2 -16
- package/dist/types/components/Chips/appearance/chipsSurface.d.ts +2 -45
- package/dist/types/components/Chips/appearance/chipsWarning.d.ts +2 -16
- package/dist/types/components/Code/Code.appearance.d.ts +2 -2
- package/dist/types/components/Code/Code.interface.d.ts +32 -33
- package/dist/types/components/Code/appearance/codeDefault.d.ts +2 -10
- package/dist/types/components/Code/appearance/codeDisabled.d.ts +2 -11
- package/dist/types/components/Code/appearance/codeError.d.ts +2 -11
- package/dist/types/components/Code/appearance/codeRequire.d.ts +2 -11
- package/dist/types/components/Code/appearance/codeShape.d.ts +2 -24
- package/dist/types/components/Code/appearance/codeSize.d.ts +2 -12
- package/dist/types/components/Code/appearance/codeStyle.d.ts +2 -15
- package/dist/types/components/Code/appearance/codeSuccess.d.ts +2 -11
- package/dist/types/components/Divider/Divider.interface.d.ts +1 -0
- package/dist/types/components/Dot/Dot.interface.d.ts +5 -5
- package/dist/types/components/Group/Group.appearance.d.ts +2 -2
- package/dist/types/components/Group/Group.d.ts +53 -2
- package/dist/types/components/Group/Group.interface.d.ts +48 -36
- package/dist/types/components/Textarea/Textarea.appearance.d.ts +2 -2
- package/dist/types/components/Textarea/Textarea.interface.d.ts +25 -22
- package/dist/types/components/Textarea/appearance/textareaDefault.d.ts +2 -36
- package/dist/types/components/Textarea/appearance/textareaDisabled.d.ts +2 -19
- package/dist/types/components/Textarea/appearance/textareaError.d.ts +2 -19
- package/dist/types/components/Textarea/appearance/textareaRequire.d.ts +2 -19
- package/dist/types/components/Textarea/appearance/textareaShape.d.ts +2 -24
- package/dist/types/components/Textarea/appearance/textareaSize.d.ts +2 -30
- package/dist/types/components/Textarea/appearance/textareaStyle.d.ts +2 -15
- package/dist/types/components/Textarea/appearance/textareaSuccess.d.ts +2 -20
- package/dist/types/components/Title/Title.appearance.d.ts +513 -456
- package/dist/types/components/Title/Title.interface.d.ts +11 -9
- package/dist/types/components/Video/Video.interface.d.ts +3 -6
- package/dist/types/components/Warning/Warning.appearance.d.ts +1276 -121
- package/dist/types/components/Warning/Warning.interface.d.ts +38 -34
- package/dist/types/components/Warning/appearance/warningAccent.d.ts +2 -22
- package/dist/types/components/Warning/appearance/warningError.d.ts +2 -22
- package/dist/types/components/Warning/appearance/warningInfo.d.ts +2 -22
- package/dist/types/components/Warning/appearance/warningShape.d.ts +2 -24
- package/dist/types/components/Warning/appearance/warningSize.d.ts +2 -10
- package/dist/types/components/Warning/appearance/warningStyle.d.ts +2 -13
- package/dist/types/components/Warning/appearance/warningWarning.d.ts +2 -22
- package/package.json +1 -1
- package/dist/{Button_cjs_BRShPZw4.js → Button_cjs_DPs7uj_n.js} +1 -1
- package/dist/{Button_es_CvRcO3xM.js → Button_es_ljlle2Pu.js} +1 -1
package/dist/components/Cell.js
CHANGED
|
@@ -101,50 +101,46 @@ const cellAppearanceStyle = {
|
|
|
101
101
|
const cellAppearanceSurface = {
|
|
102
102
|
surfacePrimary: {
|
|
103
103
|
fill: 'surfacePrimary',
|
|
104
|
-
fillHover: '
|
|
104
|
+
fillHover: 'surfaceHoverPrimary',
|
|
105
105
|
titleIconItemFill: 'surfaceItemPrimary',
|
|
106
106
|
titleLabelAppearance: 'accentPrimary',
|
|
107
107
|
titleTextColor: 'surfaceTextPrimary',
|
|
108
|
-
titleTextSize: 'surfaceTextPrimary',
|
|
109
108
|
labelTextColor: 'surfaceTextPrimary',
|
|
110
109
|
borderColor: 'surfaceBorderPrimary',
|
|
111
110
|
valueIconItemFill: 'surfaceItemPrimary',
|
|
112
111
|
valueLabelAppearance: 'accentPrimary',
|
|
113
112
|
valueTextColor: 'surfaceTextPrimary',
|
|
114
113
|
},
|
|
115
|
-
|
|
116
|
-
fill: '
|
|
117
|
-
fillHover: '
|
|
114
|
+
surfaceQuaternary: {
|
|
115
|
+
fill: 'surfaceQuaternary',
|
|
116
|
+
fillHover: 'surfaceHoverQuaternary',
|
|
118
117
|
titleIconItemFill: 'surfaceItemPrimary',
|
|
119
118
|
titleLabelAppearance: 'accentPrimary',
|
|
120
119
|
titleTextColor: 'surfaceTextPrimary',
|
|
121
|
-
titleTextSize: 'surfaceTextPrimary',
|
|
122
120
|
labelTextColor: 'surfaceTextPrimary',
|
|
123
121
|
borderColor: 'surfaceBorderPrimary',
|
|
124
122
|
valueIconItemFill: 'surfaceItemPrimary',
|
|
125
123
|
valueLabelAppearance: 'accentPrimary',
|
|
126
124
|
valueTextColor: 'surfaceTextPrimary',
|
|
127
125
|
},
|
|
128
|
-
|
|
129
|
-
fill: '
|
|
130
|
-
fillHover: '
|
|
126
|
+
surfaceSecondary: {
|
|
127
|
+
fill: 'surfaceSecondary',
|
|
128
|
+
fillHover: 'surfaceHoverSecondary',
|
|
131
129
|
titleIconItemFill: 'surfaceItemPrimary',
|
|
132
130
|
titleLabelAppearance: 'accentPrimary',
|
|
133
131
|
titleTextColor: 'surfaceTextPrimary',
|
|
134
|
-
titleTextSize: 'surfaceTextPrimary',
|
|
135
132
|
labelTextColor: 'surfaceTextPrimary',
|
|
136
133
|
borderColor: 'surfaceBorderPrimary',
|
|
137
134
|
valueIconItemFill: 'surfaceItemPrimary',
|
|
138
135
|
valueLabelAppearance: 'accentPrimary',
|
|
139
136
|
valueTextColor: 'surfaceTextPrimary',
|
|
140
137
|
},
|
|
141
|
-
|
|
142
|
-
fill: '
|
|
143
|
-
fillHover: '
|
|
138
|
+
surfaceTertiary: {
|
|
139
|
+
fill: 'surfaceTertiary',
|
|
140
|
+
fillHover: 'surfaceHoverTertiary',
|
|
144
141
|
titleIconItemFill: 'surfaceItemPrimary',
|
|
145
142
|
titleLabelAppearance: 'accentPrimary',
|
|
146
143
|
titleTextColor: 'surfaceTextPrimary',
|
|
147
|
-
titleTextSize: 'surfaceTextPrimary',
|
|
148
144
|
labelTextColor: 'surfaceTextPrimary',
|
|
149
145
|
borderColor: 'surfaceBorderPrimary',
|
|
150
146
|
valueIconItemFill: 'surfaceItemPrimary',
|
|
@@ -166,7 +162,7 @@ const cellConfig = {
|
|
|
166
162
|
},
|
|
167
163
|
};
|
|
168
164
|
function Cell(props) {
|
|
169
|
-
const {
|
|
165
|
+
const { appearance, className, title, titleIcon, titleLabel, titleTag, showTitleLabel, showValueLabel, value, valueIcon, valueTag, before, after, isActive, isEqual, isSameWidth, onClick, onMouseEnter, } = props;
|
|
170
166
|
const appearanceConfig = useAppearanceConfig(appearance, cellConfig);
|
|
171
167
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
172
168
|
const { directionClass, fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, titleIconFill, titleIconFillHover, titleIconFillSize, titleIconItemFill, titleIconShape, titleIconSrc, titleLabelAppearance, titleLabelAppearanceSize, titleLabelShape, titleLabelSize, titleLabelTextSize, titleTextColor, titleTextSize, titleTextTruncate, titleTextWeight, titleTextWrap, borderColorActiveClass, borderColorActiveHoverClass, borderColorClass, borderColorHoverClass, reverseClass, shapeClass, sizeClass, valueIconFill, valueIconFillHover, valueIconFillSize, valueIconItemFill, valueIconShape, valueIconSrc, valueLabel, valueLabelAppearance, valueLabelAppearanceSize, valueLabelShape, valueLabelSize, valueLabelTextSize, valueTextAlign, valueTextColor, valueTextSize, valueTextTruncate, valueTextWeight, valueTextWrap, widthClass, zeroGap, zeroPadding, } = propsGenerator;
|
|
@@ -183,7 +179,7 @@ function Cell(props) {
|
|
|
183
179
|
? borderColorHoverClass &&
|
|
184
180
|
`border-color_hover_${borderColorHoverClass}`
|
|
185
181
|
: borderColorActiveHoverClass &&
|
|
186
|
-
`border-color_active_hover_${borderColorActiveHoverClass}`, reverseClass && `cell_reverse_${reverseClass}`, shapeClass && `cell_shape_${shapeClass}`, widthClass && `width_${widthClass}`, zeroPadding && 'cell_reset-padding', zeroGap && 'cell_reset-gap'), style: cellStyles, onClick: onClick, onMouseEnter: onMouseEnter, children: [before && jsx("div", { className: "cell__before", children: before }), jsxs("div", { className: clsx('cell__wrapper', directionClass && `cell__wrapper_direction_${directionClass}`, isEqual && 'cell__wrapper-equal', isSameWidth && 'cell__wrapper-same-width'), children: [title && (jsxs("div", { className: "cell__data", style: dataStyles, children: [jsx(Text, { className: "cell__title", size: titleTextSize, textColor: titleTextColor, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, tag: titleTag, children: title }), (titleIcon || titleIconSrc) && (jsx(Icon, { className: "cell__title-icon", fill: titleIconFill, fillSize: titleIconFillSize, iconFill: titleIconItemFill, iconFillHover: titleIconFillHover, imageSrc: titleIconSrc, shape: titleIconShape, SvgImage: titleIcon })), (showTitleLabel || titleLabel) && (jsx(Label, {
|
|
182
|
+
`border-color_active_hover_${borderColorActiveHoverClass}`, reverseClass && `cell_reverse_${reverseClass}`, shapeClass && `cell_shape_${shapeClass}`, widthClass && `width_${widthClass}`, zeroPadding && 'cell_reset-padding', zeroGap && 'cell_reset-gap'), style: cellStyles, onClick: onClick, onMouseEnter: onMouseEnter, children: [before && jsx("div", { className: "cell__before", children: before }), jsxs("div", { className: clsx('cell__wrapper', directionClass && `cell__wrapper_direction_${directionClass}`, isEqual && 'cell__wrapper-equal', isSameWidth && 'cell__wrapper-same-width'), children: [title && (jsxs("div", { className: "cell__data", style: dataStyles, children: [jsx(Text, { className: "cell__title", size: titleTextSize, textColor: titleTextColor, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, tag: titleTag, children: title }), (titleIcon || titleIconSrc) && (jsx(Icon, { className: "cell__title-icon", fill: titleIconFill, fillSize: titleIconFillSize, iconFill: titleIconItemFill, iconFillHover: titleIconFillHover, imageSrc: titleIconSrc, shape: titleIconShape, SvgImage: titleIcon })), (showTitleLabel || titleLabel) && (jsx(Label, { appearance: `${titleLabelAppearance} ${titleLabelAppearanceSize}`, className: "cell__title-label", size: titleLabelSize, label: titleLabel, labelTextSize: titleLabelTextSize, shape: titleLabelShape }))] })), value && (jsxs("div", { className: "cell__data", style: dataStyles, children: [jsx(Text, { className: "cell__value", size: valueTextSize, textAlign: valueTextAlign, textColor: valueTextColor, textTruncate: valueTextTruncate, textWeight: valueTextWeight, textWrap: valueTextWrap, tag: valueTag, children: value }), (valueIcon || valueIconSrc) && (jsx(Icon, { className: "cell__value-icon", fill: valueIconFill, fillSize: valueIconFillSize, iconFill: valueIconItemFill, iconFillHover: valueIconFillHover, imageSrc: valueIconSrc, shape: valueIconShape, SvgImage: valueIcon })), (showValueLabel || valueLabel) && (jsx(Label, { appearance: `${valueLabelAppearance} ${valueLabelAppearanceSize}`, className: "cell__value-label", size: valueLabelSize, label: valueLabel, labelTextSize: valueLabelTextSize, shape: valueLabelShape }))] }))] }), after && jsx("div", { className: "cell__after", children: after })] }));
|
|
187
183
|
}
|
|
188
184
|
|
|
189
185
|
export { Cell, cellAppearance, cellConfig };
|
package/dist/components/Chips.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../
|
|
1
|
+
export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_CbzUWqG9.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
package/dist/components/Code.js
CHANGED
|
@@ -46,7 +46,7 @@ const codeAppearanceError = {
|
|
|
46
46
|
inputBorderColorHover: 'errorBorderSecondary',
|
|
47
47
|
inputCaretColor: 'surfaceItemPrimary',
|
|
48
48
|
inputFill: 'errorTertiary',
|
|
49
|
-
inputFillHover: '
|
|
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
|
-
|
|
75
|
-
shape: 'rounded',
|
|
76
|
-
shapeStrength: '0_5m',
|
|
77
|
-
},
|
|
78
|
-
roundedM: {
|
|
74
|
+
roundedXL: {
|
|
79
75
|
shape: 'rounded',
|
|
80
|
-
shapeStrength: '
|
|
76
|
+
shapeStrength: '2m',
|
|
81
77
|
},
|
|
82
78
|
roundedL: {
|
|
83
79
|
shape: 'rounded',
|
|
84
80
|
shapeStrength: '1_5m',
|
|
85
81
|
},
|
|
86
|
-
|
|
82
|
+
roundedM: {
|
|
87
83
|
shape: 'rounded',
|
|
88
|
-
shapeStrength: '
|
|
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
|
-
|
|
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
|
-
|
|
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: '
|
|
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 {
|
|
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 '../
|
|
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 '../
|
|
9
|
-
import { D as DatePickerInput } from '../
|
|
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 '../
|
|
12
|
+
import { a as SelectContainer } from '../SelectContainer_es_2ZX3VSMS.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 '../
|
|
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 '../
|
|
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';
|
|
@@ -37,7 +37,7 @@ import 'react-inlinesvg';
|
|
|
37
37
|
import '../hoc/urlWithAssetPrefix.js';
|
|
38
38
|
import '../context/UrlAssetPrefix.js';
|
|
39
39
|
import 'react-select/creatable';
|
|
40
|
-
import '../
|
|
40
|
+
import '../Divider_es_DNJg0mQR.js';
|
|
41
41
|
|
|
42
42
|
const datePeriodAppearanceShape = {
|
|
43
43
|
circular: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../
|
|
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 '../
|
|
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 { D as Divider, a as dividerAppearance, d as dividerConfig } from '../
|
|
1
|
+
export { D as Divider, a as dividerAppearance, d as dividerConfig } from '../Divider_es_DNJg0mQR.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import ReactDrawer from 'react-modern-drawer';
|
|
5
5
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
|
-
import { D as Divider } from '../
|
|
7
|
+
import { D as Divider } from '../Divider_es_DNJg0mQR.js';
|
|
8
8
|
import { I as Icon, b as Title } from '../Icon_es_CtZHchZc.js';
|
|
9
9
|
import { T as Text } from '../Text_es_CU9KR5AE.js';
|
|
10
10
|
import { icons24 } from '@itcase/icons/default';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../
|
|
1
|
+
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem_es_CTw07zF3.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -24,4 +24,4 @@ import '../hoc/urlWithAssetPrefix.js';
|
|
|
24
24
|
import '../context/UrlAssetPrefix.js';
|
|
25
25
|
import '../Link_es_P2b6ya7P.js';
|
|
26
26
|
import '../Text_es_CU9KR5AE.js';
|
|
27
|
-
import '../
|
|
27
|
+
import '../Divider_es_DNJg0mQR.js';
|
package/dist/components/Group.js
CHANGED
|
@@ -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 '../
|
|
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,7 +6,7 @@ import ReactPaginate from 'react-paginate';
|
|
|
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 { D as Dropdown, a as DropdownItem } from '../
|
|
9
|
+
import { D as Dropdown, a as DropdownItem } from '../DropdownItem_es_CTw07zF3.js';
|
|
10
10
|
import { I as Icon } from '../Icon_es_CtZHchZc.js';
|
|
11
11
|
import { T as Text } from '../Text_es_CU9KR5AE.js';
|
|
12
12
|
import { icons14, icons24, icons16 } from '@itcase/icons/default';
|
|
@@ -23,7 +23,7 @@ import '../utils/setViewportProperty.js';
|
|
|
23
23
|
import '../hooks.js';
|
|
24
24
|
import '../hooks/useStyles/styleAttributes.js';
|
|
25
25
|
import 'lodash/maxBy';
|
|
26
|
-
import '../
|
|
26
|
+
import '../Divider_es_DNJg0mQR.js';
|
|
27
27
|
import 'react-inlinesvg';
|
|
28
28
|
import '../hoc/urlWithAssetPrefix.js';
|
|
29
29
|
import '../context/UrlAssetPrefix.js';
|
|
@@ -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 '../
|
|
10
|
-
import { G as Group } from '../
|
|
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 '../
|
|
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_2ZX3VSMS.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 '../
|
|
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';
|
|
@@ -29,4 +29,4 @@ import '../hoc/urlWithAssetPrefix.js';
|
|
|
29
29
|
import '../context/UrlAssetPrefix.js';
|
|
30
30
|
import '../Link_es_P2b6ya7P.js';
|
|
31
31
|
import '../Loader_es_BvTBRuay.js';
|
|
32
|
-
import '../
|
|
32
|
+
import '../Divider_es_DNJg0mQR.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 '../
|
|
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';
|
package/dist/components/Tab.js
CHANGED
|
@@ -6,7 +6,7 @@ import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceC
|
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
8
|
import { B as Badge, I as Icon } from '../Icon_es_CtZHchZc.js';
|
|
9
|
-
import { D as Divider } from '../
|
|
9
|
+
import { D as Divider } from '../Divider_es_DNJg0mQR.js';
|
|
10
10
|
import { L as Link } from '../Link_es_P2b6ya7P.js';
|
|
11
11
|
import { T as Text } from '../Text_es_CU9KR5AE.js';
|
|
12
12
|
import '../hooks/useActiveClasses/useActiveClasses.helpers.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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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,
|
|
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
|
|
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 };
|
package/dist/components/Video.js
CHANGED
|
@@ -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:
|
|
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
|
],
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const cellAppearance:
|
|
1
|
+
import { CellAppearance } from './Cell.interface';
|
|
2
|
+
export declare const cellAppearance: CellAppearance;
|