@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
|
@@ -1,41 +1,45 @@
|
|
|
1
|
-
import type { CSSProperties,
|
|
2
|
-
import { AppearanceKeysDefault, BorderColorProps,
|
|
3
|
-
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorProps, CompositeAppearanceKey, FillProps, ShapeProps, ShapeStrengthProps, TextColorProps, TextSizeProps } from '@itcase/types';
|
|
3
|
+
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
|
+
import { IconProps } from '../Icon/Icon.interface';
|
|
5
|
+
import { TextProps } from '../Text/Text.interface';
|
|
6
|
+
type WarningAppearanceProps = {
|
|
4
7
|
borderColor?: BorderColorProps;
|
|
5
|
-
descriptionTextColor
|
|
6
|
-
descriptionTextSize
|
|
8
|
+
descriptionTextColor?: TextColorProps;
|
|
9
|
+
descriptionTextSize?: TextSizeProps;
|
|
7
10
|
fill?: FillProps;
|
|
8
|
-
iconAfter
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
11
|
+
iconAfter?: IconProps['SvgImage'];
|
|
12
|
+
iconAfterFill?: IconProps['fill'];
|
|
13
|
+
iconAfterFillIcon?: IconProps['iconFillIcon'];
|
|
14
|
+
iconAfterSize?: IconProps['iconSize'];
|
|
15
|
+
iconAfterSrc?: IconProps['imageSrc'];
|
|
16
|
+
iconBefore?: IconProps['SvgImage'];
|
|
17
|
+
iconBeforeFill?: IconProps['fill'];
|
|
18
|
+
iconBeforeFillIcon?: IconProps['iconFillIcon'];
|
|
19
|
+
iconBeforeSize?: IconProps['iconSize'];
|
|
20
|
+
iconBeforeSrc?: IconProps['imageSrc'];
|
|
21
|
+
labelTextColor?: TextProps['textColor'];
|
|
22
|
+
labelTextSize?: TextProps['size'];
|
|
23
|
+
labelTextWeight?: TextProps['textWeight'];
|
|
24
|
+
shape?: ShapeProps;
|
|
25
|
+
shapeStrength?: ShapeStrengthProps;
|
|
26
|
+
size?: TextSizeProps;
|
|
24
27
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
interface WarningProps {
|
|
31
|
-
appearance?: string;
|
|
32
|
-
className: string;
|
|
28
|
+
type WarningProps = StyleAttributes & WarningAppearanceProps & {
|
|
29
|
+
appearance?: CompositeAppearanceKey;
|
|
30
|
+
children?: ReactNode;
|
|
31
|
+
className?: string;
|
|
33
32
|
description?: string;
|
|
34
|
-
|
|
35
|
-
iconBeforeSrc?: string;
|
|
33
|
+
isSkeleton?: boolean;
|
|
36
34
|
label?: string;
|
|
37
|
-
shape?: ShapeProps;
|
|
38
35
|
style?: CSSProperties;
|
|
39
|
-
|
|
36
|
+
};
|
|
37
|
+
type WarningAppearanceKey = AppearanceKeysDefault | AppearanceShapeKey | AppearanceSizeKey | AppearanceStyleKey;
|
|
38
|
+
type WarningAppearance = {
|
|
39
|
+
[key in WarningAppearanceKey]?: WarningAppearanceProps;
|
|
40
|
+
};
|
|
41
|
+
interface WarningConfig {
|
|
42
|
+
appearance: WarningAppearance;
|
|
43
|
+
setAppearance: (appearanceConfig: WarningAppearance) => void;
|
|
40
44
|
}
|
|
41
|
-
export { WarningConfig, WarningProps };
|
|
45
|
+
export type { WarningAppearance, WarningConfig, WarningProps };
|
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
fill: string;
|
|
4
|
-
labelTextColor: string;
|
|
5
|
-
descriptionTextColor: string;
|
|
6
|
-
borderColor: string;
|
|
7
|
-
iconAfter: string;
|
|
8
|
-
iconAfterFillIcon: string;
|
|
9
|
-
iconBefore: string;
|
|
10
|
-
iconBeforeFillIcon: string;
|
|
11
|
-
};
|
|
12
|
-
accentPrimary: {
|
|
13
|
-
fill: string;
|
|
14
|
-
labelTextColor: string;
|
|
15
|
-
descriptionTextColor: string;
|
|
16
|
-
borderColor: string;
|
|
17
|
-
iconAfter: string;
|
|
18
|
-
iconAfterFillIcon: string;
|
|
19
|
-
iconBefore: string;
|
|
20
|
-
iconBeforeFillIcon: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
1
|
+
import { WarningAppearance } from '../Warning.interface';
|
|
2
|
+
declare const warningAppearanceAccent: WarningAppearance;
|
|
23
3
|
export { warningAppearanceAccent };
|
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
fill: string;
|
|
4
|
-
labelTextColor: string;
|
|
5
|
-
descriptionTextColor: string;
|
|
6
|
-
borderColor: string;
|
|
7
|
-
iconAfter: string;
|
|
8
|
-
iconAfterFillIcon: string;
|
|
9
|
-
iconBefore: string;
|
|
10
|
-
iconBeforeFillIcon: string;
|
|
11
|
-
};
|
|
12
|
-
errorPrimary: {
|
|
13
|
-
fill: string;
|
|
14
|
-
labelTextColor: string;
|
|
15
|
-
descriptionTextColor: string;
|
|
16
|
-
borderColor: string;
|
|
17
|
-
iconAfter: string;
|
|
18
|
-
iconAfterFillIcon: string;
|
|
19
|
-
iconBefore: string;
|
|
20
|
-
iconBeforeFillIcon: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
1
|
+
import { WarningAppearance } from '../Warning.interface';
|
|
2
|
+
declare const warningAppearanceError: WarningAppearance;
|
|
23
3
|
export { warningAppearanceError };
|
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
fill: string;
|
|
4
|
-
labelTextColor: string;
|
|
5
|
-
descriptionTextColor: string;
|
|
6
|
-
borderColor: string;
|
|
7
|
-
iconAfter: string;
|
|
8
|
-
iconAfterFillIcon: string;
|
|
9
|
-
iconBefore: string;
|
|
10
|
-
iconBeforeFillIcon: string;
|
|
11
|
-
};
|
|
12
|
-
infoPrimary: {
|
|
13
|
-
fill: string;
|
|
14
|
-
labelTextColor: string;
|
|
15
|
-
descriptionTextColor: string;
|
|
16
|
-
borderColor: string;
|
|
17
|
-
iconAfter: string;
|
|
18
|
-
iconAfterFillIcon: string;
|
|
19
|
-
iconBefore: string;
|
|
20
|
-
iconBeforeFillIcon: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
1
|
+
import { WarningAppearance } from '../Warning.interface';
|
|
2
|
+
declare const warningAppearanceInfo: WarningAppearance;
|
|
23
3
|
export { warningAppearanceInfo };
|
|
@@ -1,25 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
shape: string;
|
|
4
|
-
};
|
|
5
|
-
rounded: {
|
|
6
|
-
shape: string;
|
|
7
|
-
};
|
|
8
|
-
roundedXL: {
|
|
9
|
-
shape: string;
|
|
10
|
-
shapeStrength: string;
|
|
11
|
-
};
|
|
12
|
-
roundedL: {
|
|
13
|
-
shape: string;
|
|
14
|
-
shapeStrength: string;
|
|
15
|
-
};
|
|
16
|
-
roundedM: {
|
|
17
|
-
shape: string;
|
|
18
|
-
shapeStrength: string;
|
|
19
|
-
};
|
|
20
|
-
roundedS: {
|
|
21
|
-
shape: string;
|
|
22
|
-
shapeStrength: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
1
|
+
import { WarningAppearance } from '../Warning.interface';
|
|
2
|
+
declare const warningAppearanceShape: WarningAppearance;
|
|
25
3
|
export { warningAppearanceShape };
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
size: string;
|
|
4
|
-
labelTextSize: string;
|
|
5
|
-
labelTextWeight: string;
|
|
6
|
-
descriptionTextSize: string;
|
|
7
|
-
iconAfterSize: string;
|
|
8
|
-
iconBeforeSize: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
1
|
+
import { WarningAppearance } from '../Warning.interface';
|
|
2
|
+
declare const warningAppearanceSize: WarningAppearance;
|
|
11
3
|
export { warningAppearanceSize };
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
borderColor: string;
|
|
4
|
-
};
|
|
5
|
-
outlined: {
|
|
6
|
-
fill: string;
|
|
7
|
-
};
|
|
8
|
-
full: {};
|
|
9
|
-
ghost: {
|
|
10
|
-
fill: string;
|
|
11
|
-
borderColor: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
1
|
+
import { WarningAppearance } from '../Warning.interface';
|
|
2
|
+
declare const warningAppearanceStyle: WarningAppearance;
|
|
14
3
|
export { warningAppearanceStyle };
|
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
fill: string;
|
|
4
|
-
labelTextColor: string;
|
|
5
|
-
descriptionTextColor: string;
|
|
6
|
-
borderColor: string;
|
|
7
|
-
iconAfter: string;
|
|
8
|
-
iconAfterFillIcon: string;
|
|
9
|
-
iconBefore: string;
|
|
10
|
-
iconBeforeFillIcon: string;
|
|
11
|
-
};
|
|
12
|
-
warningPrimary: {
|
|
13
|
-
fill: string;
|
|
14
|
-
labelTextColor: string;
|
|
15
|
-
descriptionTextColor: string;
|
|
16
|
-
borderColor: string;
|
|
17
|
-
iconAfter: string;
|
|
18
|
-
iconAfterFillIcon: string;
|
|
19
|
-
iconBefore: string;
|
|
20
|
-
iconBeforeFillIcon: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
1
|
+
import { WarningAppearance } from '../Warning.interface';
|
|
2
|
+
declare const warningAppearanceWarning: WarningAppearance;
|
|
23
3
|
export { warningAppearanceWarning };
|
package/package.json
CHANGED
|
@@ -85,9 +85,9 @@ const buttonAppearanceError = {
|
|
|
85
85
|
errorMutedPrimary: {
|
|
86
86
|
fill: 'errorTertiary',
|
|
87
87
|
fillHover: 'errorHover',
|
|
88
|
-
borderColor: 'errorBorderSecondary',
|
|
89
88
|
labelTextColor: 'errorTextQuaternary',
|
|
90
89
|
labelTextColorHover: 'errorTextQuaternary',
|
|
90
|
+
borderColor: 'errorBorderSecondary',
|
|
91
91
|
iconAfterFillIcon: 'errorItemQuaternary',
|
|
92
92
|
iconBeforeFillIcon: 'errorItemQuaternary',
|
|
93
93
|
iconFillIcon: 'errorItemQuaternary',
|
|
@@ -83,9 +83,9 @@ const buttonAppearanceError = {
|
|
|
83
83
|
errorMutedPrimary: {
|
|
84
84
|
fill: 'errorTertiary',
|
|
85
85
|
fillHover: 'errorHover',
|
|
86
|
-
borderColor: 'errorBorderSecondary',
|
|
87
86
|
labelTextColor: 'errorTextQuaternary',
|
|
88
87
|
labelTextColorHover: 'errorTextQuaternary',
|
|
88
|
+
borderColor: 'errorBorderSecondary',
|
|
89
89
|
iconAfterFillIcon: 'errorItemQuaternary',
|
|
90
90
|
iconBeforeFillIcon: 'errorItemQuaternary',
|
|
91
91
|
iconFillIcon: 'errorItemQuaternary',
|