@itcase/ui 1.9.24 → 1.9.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/dist/{Avatar_cjs_DRZE113U.js → Avatar_cjs_CS01fvh-.js} +11 -5
  2. package/dist/{Avatar_es_Cmq4xAG6.js → Avatar_es_DRObE1DB.js} +11 -5
  3. package/dist/{ChipsGroup_cjs_D0bGehZY.js → ChipsGroup_cjs_Sn3uiCSJ.js} +33 -33
  4. package/dist/{ChipsGroup_es_DWvsJ5bu.js → ChipsGroup_es_CbzUWqG9.js} +33 -33
  5. package/dist/{DatePicker_cjs_Cm50AX0J.js → DatePicker_cjs_Bfiav-tb.js} +1 -1
  6. package/dist/{DatePicker_es_B-WPA9y9.js → DatePicker_es_CtbVXMmy.js} +1 -1
  7. package/dist/{Group_cjs_393FExUN.js → Group_cjs_DNI9PTBq.js} +1 -1
  8. package/dist/{Group_es_BtE98Vb5.js → Group_es_nBtACpoG.js} +1 -1
  9. package/dist/{SelectContainer_cjs_CsHj-fP_.js → SelectContainer_cjs_CdLyIuwj.js} +1 -1
  10. package/dist/{SelectContainer_es_Bc4Laoir.js → SelectContainer_es_DGTrm8OT.js} +1 -1
  11. package/dist/cjs/components/Avatar.js +1 -1
  12. package/dist/cjs/components/AvatarStack.js +2 -2
  13. package/dist/cjs/components/Button.js +1 -1
  14. package/dist/cjs/components/Cell.js +12 -16
  15. package/dist/cjs/components/Chips.js +1 -1
  16. package/dist/cjs/components/Code.js +17 -17
  17. package/dist/cjs/components/CookiesWarning.js +1 -1
  18. package/dist/cjs/components/DatePeriod.js +5 -5
  19. package/dist/cjs/components/DatePicker.js +2 -2
  20. package/dist/cjs/components/Group.js +1 -1
  21. package/dist/cjs/components/Notification.js +1 -1
  22. package/dist/cjs/components/Response.js +2 -2
  23. package/dist/cjs/components/Select.js +2 -2
  24. package/dist/cjs/components/Swiper.js +1 -1
  25. package/dist/cjs/components/Textarea.js +9 -21
  26. package/dist/cjs/components/Video.js +1 -1
  27. package/dist/cjs/components/Warning.js +2 -2
  28. package/dist/components/Avatar.js +1 -1
  29. package/dist/components/AvatarStack.js +2 -2
  30. package/dist/components/Button.js +1 -1
  31. package/dist/components/Cell.js +12 -16
  32. package/dist/components/Chips.js +1 -1
  33. package/dist/components/Code.js +17 -17
  34. package/dist/components/CookiesWarning.js +1 -1
  35. package/dist/components/DatePeriod.js +5 -5
  36. package/dist/components/DatePicker.js +2 -2
  37. package/dist/components/Group.js +1 -1
  38. package/dist/components/Notification.js +1 -1
  39. package/dist/components/Response.js +2 -2
  40. package/dist/components/Select.js +2 -2
  41. package/dist/components/Swiper.js +1 -1
  42. package/dist/components/Textarea.js +9 -21
  43. package/dist/components/Video.js +1 -1
  44. package/dist/components/Warning.js +2 -2
  45. package/dist/css/styles/bundles.css +6 -6
  46. package/dist/snippets/Group.snippets.json +1 -1
  47. package/dist/types/components/Button/Button.d.ts +1 -1
  48. package/dist/types/components/Button/Button.interface.d.ts +1 -1
  49. package/dist/types/components/Cell/Cell.appearance.d.ts +2 -2
  50. package/dist/types/components/Cell/Cell.interface.d.ts +67 -56
  51. package/dist/types/components/Cell/appearance/cellSize.d.ts +2 -58
  52. package/dist/types/components/Cell/appearance/cellStyle.d.ts +2 -13
  53. package/dist/types/components/Cell/appearance/cellSurface.d.ts +2 -54
  54. package/dist/types/components/Chips/Chips.interface.d.ts +83 -21
  55. package/dist/types/components/Chips/ChipsGroup.d.ts +2 -1
  56. package/dist/types/components/Chips/appearance/chipsAccent.d.ts +2 -23
  57. package/dist/types/components/Chips/appearance/chipsDanger.d.ts +2 -16
  58. package/dist/types/components/Chips/appearance/chipsDisabled.d.ts +2 -13
  59. package/dist/types/components/Chips/appearance/chipsError.d.ts +2 -16
  60. package/dist/types/components/Chips/appearance/chipsInfo.d.ts +2 -16
  61. package/dist/types/components/Chips/appearance/chipsPrimary.d.ts +2 -16
  62. package/dist/types/components/Chips/appearance/chipsSecondary.d.ts +2 -16
  63. package/dist/types/components/Chips/appearance/chipsShape.d.ts +2 -24
  64. package/dist/types/components/Chips/appearance/chipsSize.d.ts +2 -44
  65. package/dist/types/components/Chips/appearance/chipsStyle.d.ts +2 -13
  66. package/dist/types/components/Chips/appearance/chipsSuccess.d.ts +2 -16
  67. package/dist/types/components/Chips/appearance/chipsSurface.d.ts +2 -45
  68. package/dist/types/components/Chips/appearance/chipsWarning.d.ts +2 -16
  69. package/dist/types/components/Code/Code.appearance.d.ts +2 -2
  70. package/dist/types/components/Code/Code.interface.d.ts +32 -33
  71. package/dist/types/components/Code/appearance/codeDefault.d.ts +2 -10
  72. package/dist/types/components/Code/appearance/codeDisabled.d.ts +2 -11
  73. package/dist/types/components/Code/appearance/codeError.d.ts +2 -11
  74. package/dist/types/components/Code/appearance/codeRequire.d.ts +2 -11
  75. package/dist/types/components/Code/appearance/codeShape.d.ts +2 -24
  76. package/dist/types/components/Code/appearance/codeSize.d.ts +2 -12
  77. package/dist/types/components/Code/appearance/codeStyle.d.ts +2 -15
  78. package/dist/types/components/Code/appearance/codeSuccess.d.ts +2 -11
  79. package/dist/types/components/Dot/Dot.interface.d.ts +5 -5
  80. package/dist/types/components/Group/Group.appearance.d.ts +2 -2
  81. package/dist/types/components/Group/Group.d.ts +53 -2
  82. package/dist/types/components/Group/Group.interface.d.ts +48 -36
  83. package/dist/types/components/Textarea/Textarea.appearance.d.ts +2 -2
  84. package/dist/types/components/Textarea/Textarea.interface.d.ts +25 -22
  85. package/dist/types/components/Textarea/appearance/textareaDefault.d.ts +2 -36
  86. package/dist/types/components/Textarea/appearance/textareaDisabled.d.ts +2 -19
  87. package/dist/types/components/Textarea/appearance/textareaError.d.ts +2 -19
  88. package/dist/types/components/Textarea/appearance/textareaRequire.d.ts +2 -19
  89. package/dist/types/components/Textarea/appearance/textareaShape.d.ts +2 -24
  90. package/dist/types/components/Textarea/appearance/textareaSize.d.ts +2 -30
  91. package/dist/types/components/Textarea/appearance/textareaStyle.d.ts +2 -15
  92. package/dist/types/components/Textarea/appearance/textareaSuccess.d.ts +2 -20
  93. package/dist/types/components/Title/Title.appearance.d.ts +513 -456
  94. package/dist/types/components/Title/Title.interface.d.ts +11 -9
  95. package/dist/types/components/Video/Video.interface.d.ts +3 -6
  96. package/dist/types/components/Warning/Warning.appearance.d.ts +1276 -121
  97. package/dist/types/components/Warning/Warning.interface.d.ts +38 -34
  98. package/dist/types/components/Warning/appearance/warningAccent.d.ts +2 -22
  99. package/dist/types/components/Warning/appearance/warningError.d.ts +2 -22
  100. package/dist/types/components/Warning/appearance/warningInfo.d.ts +2 -22
  101. package/dist/types/components/Warning/appearance/warningShape.d.ts +2 -24
  102. package/dist/types/components/Warning/appearance/warningSize.d.ts +2 -10
  103. package/dist/types/components/Warning/appearance/warningStyle.d.ts +2 -13
  104. package/dist/types/components/Warning/appearance/warningWarning.d.ts +2 -22
  105. package/package.json +1 -1
  106. package/dist/{Button_cjs_BRShPZw4.js → Button_cjs_DPs7uj_n.js} +1 -1
  107. package/dist/{Button_es_CvRcO3xM.js → Button_es_ljlle2Pu.js} +1 -1
@@ -1,10 +1,18 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
- import { AlignDirectionProps, AlignProps, AppearanceKeysDefault, BorderColorProps, BorderTypeProps, CompositeAppearanceKey, FillHoverProps, FillProps, ShapeProps, SizeProps, TextColorProps, TextSizeProps, TextWeightProps } from '@itcase/types';
2
+ import { AlignDirectionProps, AlignProps, AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceKey, DirectionProps, FillActiveHoverProps, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps, TextColorProps, WrapProps } from '@itcase/types';
3
3
  import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
4
- interface ChipsThemeColor {
5
- [key: number | string | symbol]: any;
4
+ import { BadgeProps } from '../Badge/Badge.interface';
5
+ import { IconProps } from '../Icon/Icon.interface';
6
+ import { TextProps } from '../Text/Text.interface';
7
+ type ChipsAppearanceProps = {
6
8
  align?: AlignProps;
7
9
  alignDirection?: AlignDirectionProps;
10
+ badgeAppearance?: BadgeProps['appearance'];
11
+ badgeShape?: BadgeProps['shape'];
12
+ badgeSize?: BadgeProps['size'];
13
+ badgeTextColor?: BadgeProps['textColor'];
14
+ badgeTextSize?: BadgeProps['textSize'];
15
+ badgeValue?: BadgeProps['value'];
8
16
  borderColor?: BorderColorProps;
9
17
  borderColorDesktop?: BorderColorProps;
10
18
  borderColorMobile?: BorderColorProps;
@@ -15,33 +23,87 @@ interface ChipsThemeColor {
15
23
  borderTypeTablet?: BorderTypeProps;
16
24
  fill?: FillProps;
17
25
  fillActive?: FillProps;
26
+ fillActiveHover?: FillActiveHoverProps;
18
27
  fillHover?: FillHoverProps;
19
- labelTextActiveColor?: TextColorProps;
28
+ iconAfter?: IconProps['SvgImage'];
29
+ iconAfterFill?: IconProps['fill'];
30
+ iconAfterFillActiveIcon?: IconProps['iconFillIcon'];
31
+ iconAfterFillIcon?: IconProps['iconFillIcon'];
32
+ iconAfterFillSize?: IconProps['fillSize'];
33
+ iconAfterShape?: IconProps['shape'];
34
+ iconAfterSize?: IconProps['iconSize'];
35
+ iconAfterSrc?: IconProps['imageSrc'];
36
+ iconBefore?: IconProps['SvgImage'];
37
+ iconBeforeFill?: IconProps['fill'];
38
+ iconBeforeFillActiveIcon?: IconProps['iconFillIcon'];
39
+ iconBeforeFillIcon?: IconProps['iconFillIcon'];
40
+ iconBeforeFillSize?: IconProps['fillSize'];
41
+ iconBeforeShape?: IconProps['shape'];
42
+ iconBeforeSize?: IconProps['iconSize'];
43
+ iconBeforeSrc?: IconProps['imageSrc'];
44
+ labelTextActiveColor?: TextProps['textColorActive'];
45
+ labelTextActiveColorHover?: TextProps['textColorActiveHover'];
20
46
  labelTextColor?: TextColorProps;
21
- labelTextSize?: TextSizeProps;
22
- labelTextWeight?: TextWeightProps;
47
+ labelTextColorHover?: TextProps['textColorHover'];
48
+ labelTextSize?: TextProps['size'];
49
+ labelTextWeight?: TextProps['textWeight'];
50
+ labelTextWrap?: TextProps['textWrap'];
23
51
  shape?: ShapeProps;
52
+ shapeStrength?: ShapeStrengthProps;
24
53
  size?: SizeProps;
25
- }
26
- type ChipsAppearance = {
27
- [key in AppearanceKeysDefault]?: ChipsThemeColor;
28
54
  };
29
- interface ChipsConfig {
30
- [key: number | string | symbol]: any;
31
- appearance: ChipsAppearance | undefined;
32
- setAppearance: (newComponent: ChipsAppearance) => void;
33
- }
34
- interface ChipsProps extends ChipsThemeColor, StyleAttributes {
35
- [key: number | string | symbol]: any;
55
+ type ChipsProps = ChipsAppearanceProps & StyleAttributes & {
36
56
  appearance?: CompositeAppearanceKey;
37
57
  children?: ReactNode;
38
58
  className?: string;
39
59
  cursor?: string;
60
+ dataTestId?: string;
61
+ dataTour?: string;
62
+ isActive?: boolean;
63
+ isDisabled?: boolean;
64
+ isSkeleton?: boolean;
40
65
  label?: string;
66
+ onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
67
+ onClickIconAfter?: () => void;
68
+ onClickIconBefore?: () => void;
41
69
  style?: CSSProperties;
42
70
  type?: string;
43
- isActive?: boolean;
44
- isSkeleton?: boolean;
45
- onClick?: () => void;
46
- }
47
- export type { ChipsThemeColor, ChipsAppearance, ChipsConfig, ChipsProps };
71
+ };
72
+ type ChipsGroupListItem = {
73
+ id?: string;
74
+ iconAfter?: ChipsProps['iconAfter'];
75
+ iconBefore?: ChipsProps['iconBefore'];
76
+ isActive?: ChipsProps['isActive'];
77
+ isDisabled?: ChipsProps['isDisabled'];
78
+ label?: ChipsProps['label'];
79
+ };
80
+ type ChipsGroupAppearanceProps = {
81
+ align?: AlignProps;
82
+ alignDirection?: AlignDirectionProps;
83
+ borderColor?: BorderColorProps;
84
+ borderType?: BorderTypeProps;
85
+ borderWidth?: BorderWidthProps;
86
+ chipsAppearance?: ChipsProps['appearance'];
87
+ direction?: DirectionProps;
88
+ fill?: FillProps;
89
+ wrap?: WrapProps;
90
+ };
91
+ type ChipsGroupProps = ChipsGroupAppearanceProps & StyleAttributes & {
92
+ children?: ChipsProps['children'];
93
+ chipsList?: ChipsGroupListItem[];
94
+ className?: ChipsProps['className'];
95
+ dataTestId?: ChipsProps['dataTestId'];
96
+ dataTour?: ChipsProps['dataTour'];
97
+ horizontalScroll?: boolean;
98
+ onClick?: (item: ChipsGroupListItem, event: React.MouseEvent<HTMLDivElement>) => void;
99
+ style?: ChipsProps['style'];
100
+ };
101
+ type ChipsAppearanceKey = AppearanceKeysDefault | AppearanceShapeKey | AppearanceSizeKey | AppearanceStyleKey;
102
+ type ChipsAppearance = {
103
+ [key in ChipsAppearanceKey]?: ChipsAppearanceProps;
104
+ };
105
+ type ChipsConfig = {
106
+ appearance: ChipsAppearance;
107
+ setAppearance: (appearanceConfig: ChipsAppearance) => void;
108
+ };
109
+ export type { ChipsAppearance, ChipsConfig, ChipsGroupProps, ChipsProps };
@@ -1,2 +1,3 @@
1
- declare function ChipsGroup(props: any): import("react/jsx-runtime").JSX.Element;
1
+ import { ChipsGroupProps } from './Chips.interface';
2
+ declare function ChipsGroup(props: ChipsGroupProps): import("react/jsx-runtime").JSX.Element;
2
3
  export { ChipsGroup };
@@ -1,24 +1,3 @@
1
- declare const chipsAppearanceAccent: {
2
- accentMutedPrimary: {
3
- fill: string;
4
- fillHover: string;
5
- labelTextColor: string;
6
- borderColor: string;
7
- iconAfterFillIcon: string;
8
- iconBeforeFillIcon: string;
9
- };
10
- accentPrimary: {
11
- fill: string;
12
- fillActive: string;
13
- fillActiveHover: string;
14
- fillHover: string;
15
- labelTextActiveColor: string;
16
- labelTextColor: string;
17
- borderColor: string;
18
- iconAfterFillActiveIcon: string;
19
- iconAfterFillIcon: string;
20
- iconBeforeFillActiveIcon: string;
21
- iconBeforeFillIcon: string;
22
- };
23
- };
1
+ import { ChipsAppearance } from '../Chips.interface';
2
+ declare const chipsAppearanceAccent: ChipsAppearance;
24
3
  export { chipsAppearanceAccent };
@@ -1,17 +1,3 @@
1
- declare const chipsAppearanceDanger: {
2
- dangerMutedPrimary: {
3
- fill: string;
4
- labelTextColor: string;
5
- borderColor: string;
6
- iconAfterFillIcon: string;
7
- iconBeforeFillIcon: string;
8
- };
9
- dangerPrimary: {
10
- fill: string;
11
- labelTextColor: string;
12
- borderColor: string;
13
- iconAfterFillIcon: string;
14
- iconBeforeFillIcon: string;
15
- };
16
- };
1
+ import { ChipsAppearance } from '../Chips.interface';
2
+ declare const chipsAppearanceDanger: ChipsAppearance;
17
3
  export { chipsAppearanceDanger };
@@ -1,14 +1,3 @@
1
- declare const chipsAppearanceDisabled: {
2
- disabled: {
3
- fill: string;
4
- fillHover: string;
5
- labelTextActiveColor: string;
6
- labelTextActiveColorHover: string;
7
- labelTextColor: string;
8
- labelTextColorHover: string;
9
- borderColor: string;
10
- iconAfterFillIcon: string;
11
- iconBeforeFillIcon: string;
12
- };
13
- };
1
+ import { ChipsAppearance } from '../Chips.interface';
2
+ declare const chipsAppearanceDisabled: ChipsAppearance;
14
3
  export { chipsAppearanceDisabled };
@@ -1,17 +1,3 @@
1
- declare const chipsAppearanceError: {
2
- errorMutedPrimary: {
3
- fill: string;
4
- labelTextColor: string;
5
- borderColor: string;
6
- iconAfterFillIcon: string;
7
- iconBeforeFillIcon: string;
8
- };
9
- errorPrimary: {
10
- fill: string;
11
- labelTextColor: string;
12
- borderColor: string;
13
- iconAfterFillIcon: string;
14
- iconBeforeFillIcon: string;
15
- };
16
- };
1
+ import { ChipsAppearance } from '../Chips.interface';
2
+ declare const chipsAppearanceError: ChipsAppearance;
17
3
  export { chipsAppearanceError };
@@ -1,17 +1,3 @@
1
- declare const chipsAppearanceInfo: {
2
- infoMutedPrimary: {
3
- fill: string;
4
- labelTextColor: string;
5
- borderColor: string;
6
- iconAfterFillIcon: string;
7
- iconBeforeFillIcon: string;
8
- };
9
- infoPrimary: {
10
- fill: string;
11
- labelTextColor: string;
12
- borderColor: string;
13
- iconAfterFillIcon: string;
14
- iconBeforeFillIcon: string;
15
- };
16
- };
1
+ import { ChipsAppearance } from '../Chips.interface';
2
+ declare const chipsAppearanceInfo: ChipsAppearance;
17
3
  export { chipsAppearanceInfo };
@@ -1,17 +1,3 @@
1
- declare const chipsAppearancePrimary: {
2
- primaryMutedPrimary: {
3
- fill: string;
4
- labelTextColor: string;
5
- borderColor: string;
6
- iconAfterFillIcon: string;
7
- iconBeforeFillIcon: string;
8
- };
9
- primaryPrimary: {
10
- fill: string;
11
- labelTextColor: string;
12
- borderColor: string;
13
- iconAfterFillIcon: string;
14
- iconBeforeFillIcon: string;
15
- };
16
- };
1
+ import { ChipsAppearance } from '../Chips.interface';
2
+ declare const chipsAppearancePrimary: ChipsAppearance;
17
3
  export { chipsAppearancePrimary };
@@ -1,17 +1,3 @@
1
- declare const chipsAppearanceSecondary: {
2
- secondaryMutedPrimary: {
3
- fill: string;
4
- labelTextColor: string;
5
- borderColor: string;
6
- iconAfterFillIcon: string;
7
- iconBeforeFillIcon: string;
8
- };
9
- secondaryPrimary: {
10
- fill: string;
11
- labelTextColor: string;
12
- borderColor: string;
13
- iconAfterFillIcon: string;
14
- iconBeforeFillIcon: string;
15
- };
16
- };
1
+ import { ChipsAppearance } from '../Chips.interface';
2
+ declare const chipsAppearanceSecondary: ChipsAppearance;
17
3
  export { chipsAppearanceSecondary };
@@ -1,25 +1,3 @@
1
- declare const chipsAppearanceShape: {
2
- circular: {
3
- shape: string;
4
- };
5
- rounded: {
6
- shape: string;
7
- };
8
- roundedS: {
9
- shape: string;
10
- shapeStrength: string;
11
- };
12
- roundedM: {
13
- shape: string;
14
- shapeStrength: string;
15
- };
16
- roundedL: {
17
- shape: string;
18
- shapeStrength: string;
19
- };
20
- roundedXL: {
21
- shape: string;
22
- shapeStrength: string;
23
- };
24
- };
1
+ import { ChipsAppearance } from '../Chips.interface';
2
+ declare const chipsAppearanceShape: ChipsAppearance;
25
3
  export { chipsAppearanceShape };
@@ -1,45 +1,3 @@
1
- declare const chipsAppearanceSize: {
2
- sizeXXL: {
3
- size: string;
4
- labelTextSize: string;
5
- iconAfterSize: number;
6
- iconBeforeSize: number;
7
- };
8
- sizeXL: {
9
- size: string;
10
- labelTextSize: string;
11
- iconAfterSize: number;
12
- iconBeforeSize: number;
13
- };
14
- sizeL: {
15
- size: string;
16
- labelTextSize: string;
17
- iconAfterSize: number;
18
- iconBeforeSize: number;
19
- };
20
- sizeM: {
21
- size: string;
22
- labelTextSize: string;
23
- iconAfterSize: number;
24
- iconBeforeSize: number;
25
- };
26
- sizeS: {
27
- size: string;
28
- labelTextSize: string;
29
- iconAfterSize: number;
30
- iconBeforeSize: number;
31
- };
32
- sizeXS: {
33
- size: string;
34
- labelTextSize: string;
35
- iconAfterSize: number;
36
- iconBeforeSize: number;
37
- };
38
- sizeXXS: {
39
- size: string;
40
- labelTextSize: string;
41
- iconAfterSize: number;
42
- iconBeforeSize: number;
43
- };
44
- };
1
+ import { ChipsAppearance } from '../Chips.interface';
2
+ declare const chipsAppearanceSize: ChipsAppearance;
45
3
  export { chipsAppearanceSize };
@@ -1,14 +1,3 @@
1
- declare const chipsAppearanceStyle: {
2
- solid: {
3
- borderColor: string;
4
- };
5
- outlined: {
6
- fill: string;
7
- };
8
- full: {};
9
- ghost: {
10
- fill: string;
11
- borderColor: string;
12
- };
13
- };
1
+ import { ChipsAppearance } from '../Chips.interface';
2
+ declare const chipsAppearanceStyle: ChipsAppearance;
14
3
  export { chipsAppearanceStyle };
@@ -1,17 +1,3 @@
1
- declare const chipsAppearanceSuccess: {
2
- successMutedPrimary: {
3
- fill: string;
4
- labelTextColor: string;
5
- borderColor: string;
6
- iconAfterFillIcon: string;
7
- iconBeforeFillIcon: string;
8
- };
9
- successPrimary: {
10
- fill: string;
11
- labelTextColor: string;
12
- borderColor: string;
13
- iconAfterFillIcon: string;
14
- iconBeforeFillIcon: string;
15
- };
16
- };
1
+ import { ChipsAppearance } from '../Chips.interface';
2
+ declare const chipsAppearanceSuccess: ChipsAppearance;
17
3
  export { chipsAppearanceSuccess };
@@ -1,46 +1,3 @@
1
- declare const chipsAppearanceSurface: {
2
- surfaceMutedPrimary: {
3
- fill: string;
4
- labelTextColor: string;
5
- borderColor: string;
6
- iconAfterFillIcon: string;
7
- iconBeforeFillIcon: string;
8
- };
9
- surfacePrimary: {
10
- fill: string;
11
- fillActive: string;
12
- fillActiveHover: string;
13
- fillHover: string;
14
- labelTextActiveColor: string;
15
- labelTextColor: string;
16
- labelTextColorHover: string;
17
- borderColor: string;
18
- activeIconItemFill: string;
19
- badgeAppearance: string;
20
- iconAfterFillActiveIcon: string;
21
- iconAfterFillIcon: string;
22
- iconBeforeFillActiveIcon: string;
23
- iconBeforeFillIcon: string;
24
- };
25
- surfaceSecondary: {
26
- fill: string;
27
- fillActive: string;
28
- fillActiveHover: string;
29
- fillHover: string;
30
- labelTextActiveColor: string;
31
- labelTextColor: string;
32
- labelTextColorHover: string;
33
- borderColor: string;
34
- iconAfterFillActiveIcon: string;
35
- iconAfterFillIcon: string;
36
- iconBeforeFillActiveIcon: string;
37
- iconBeforeFillIcon: string;
38
- };
39
- surfaceTertiary: {
40
- fill: string;
41
- fillHover: string;
42
- labelTextColor: string;
43
- borderColor: string;
44
- };
45
- };
1
+ import { ChipsAppearance } from '../Chips.interface';
2
+ declare const chipsAppearanceSurface: ChipsAppearance;
46
3
  export { chipsAppearanceSurface };
@@ -1,17 +1,3 @@
1
- declare const chipsAppearanceWarning: {
2
- warningMutedPrimary: {
3
- fill: string;
4
- labelTextColor: string;
5
- borderColor: string;
6
- iconAfterFillIcon: string;
7
- iconBeforeFillIcon: string;
8
- };
9
- warningPrimary: {
10
- fill: string;
11
- labelTextColor: string;
12
- borderColor: string;
13
- iconAfterFillIcon: string;
14
- iconBeforeFillIcon: string;
15
- };
16
- };
1
+ import { ChipsAppearance } from '../Chips.interface';
2
+ declare const chipsAppearanceWarning: ChipsAppearance;
17
3
  export { chipsAppearanceWarning };
@@ -1,2 +1,2 @@
1
- import { CodeAppearanceType } from './Code.interface';
2
- export declare const codeAppearance: CodeAppearanceType;
1
+ import { CodeAppearance } from './Code.interface';
2
+ export declare const codeAppearance: CodeAppearance;
@@ -1,56 +1,55 @@
1
1
  import { FocusEvent, ReactNode } from 'react';
2
2
  import { AllowedInputTypes } from 'react-otp-input';
3
- import { AppearanceKeysDefault, BorderColorHoverProps, BorderColorProps, BorderWidthProps, FillHoverProps, FillProps, ItemColorProps, ShapeProps, SizeProps, TextColorProps, TextSizeProps, TextWeightProps, WidthProps } from '@itcase/types';
3
+ import { AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderWidthProps, FillHoverProps, FillProps, ItemColorProps, ShapeProps, ShapeStrengthProps, SizeProps, TextColorProps, TextSizeProps, TextWeightProps, WidthProps } from '@itcase/types';
4
4
  import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
5
- export interface CodeThemeColor {
6
- [key: number | string | symbol]: any;
5
+ import { LabelProps } from '../Label/Label.interface';
6
+ type CodeAppearanceProps = {
7
7
  borderColor?: BorderColorProps;
8
8
  fill?: FillProps;
9
9
  fillHover?: FillHoverProps;
10
- labelTextColor?: TextColorProps;
11
- labelTextSize?: TextSizeProps;
12
- shape?: ShapeProps;
13
- }
14
- type AppearanceKeys = AppearanceKeysDefault & {};
15
- export type CodeAppearanceType = {
16
- [key in AppearanceKeys]?: CodeThemeColor;
17
- };
18
- export interface CodeConfig {
19
- [key: number | string | symbol]: any;
20
- appearance: CodeAppearanceType | undefined;
21
- setAppearance: (newComponent: CodeAppearanceType) => void;
22
- }
23
- export interface CodeProps extends CodeThemeColor, StyleAttributes {
24
- [key: number | string | symbol]: any;
25
- after?: ReactNode;
26
- appearance?: AppearanceKeys;
27
- before?: ReactNode;
28
- className?: string;
29
- gap?: string;
30
- initialValue?: string;
31
- inputAutoFocus?: boolean;
32
10
  inputBorderColor?: BorderColorProps;
33
11
  inputBorderColorHover?: BorderColorHoverProps;
34
12
  inputBorderFocusColor?: BorderColorProps;
35
13
  inputBorderWidth?: BorderWidthProps;
36
14
  inputCaretColor?: ItemColorProps;
37
- inputCount?: number;
38
15
  inputFill?: FillProps;
39
16
  inputFillHover?: FillHoverProps;
40
- inputPlaceholder?: string;
41
17
  inputPlaceholderTextColor?: TextColorProps;
42
18
  inputShape?: ShapeProps;
43
19
  inputSize?: SizeProps;
44
20
  inputTextColor?: TextColorProps;
45
21
  inputTextSize?: TextSizeProps;
46
22
  inputTextWeight?: TextWeightProps;
47
- inputType?: AllowedInputTypes | undefined;
48
- otp?: number | string;
49
- separatorComponent?: ReactNode;
23
+ labelTextColor?: LabelProps['labelTextColor'];
24
+ labelTextSize?: LabelProps['labelTextSize'];
25
+ shape?: ShapeProps;
26
+ shapeStrength?: ShapeStrengthProps;
27
+ size?: SizeProps;
50
28
  width?: WidthProps;
51
- isSkeleton: boolean;
29
+ };
30
+ type CodeProps = CodeAppearanceProps & StyleAttributes & {
31
+ after?: ReactNode;
32
+ appearance?: AppearanceKeys;
33
+ before?: ReactNode;
34
+ className?: string;
35
+ initialValue?: string;
36
+ inputAutoFocus?: boolean;
37
+ inputCount?: number;
38
+ inputPlaceholder?: string;
39
+ inputType?: AllowedInputTypes;
40
+ isDisabled?: boolean;
41
+ isSkeleton?: boolean;
52
42
  onBlur?: (arg0: FocusEvent) => void;
53
43
  onChange?: (otp: string) => void;
54
44
  onFocus?: (arg0: FocusEvent) => void;
55
- }
56
- export {};
45
+ separatorComponent?: ReactNode;
46
+ };
47
+ type AppearanceKeys = AppearanceKeysDefault | AppearanceShapeKey | AppearanceSizeKey | AppearanceStyleKey;
48
+ type CodeAppearance = {
49
+ [key in AppearanceKeys]?: CodeAppearanceProps;
50
+ };
51
+ type CodeConfig = {
52
+ appearance: CodeAppearance;
53
+ setAppearance: (appearanceConfig: CodeAppearance) => void;
54
+ };
55
+ export type { CodeAppearance, CodeConfig, CodeProps };
@@ -1,11 +1,3 @@
1
- declare const codeAppearanceDefault: {
2
- defaultPrimary: {
3
- inputBorderColor: string;
4
- inputCaretColor: string;
5
- inputFill: string;
6
- inputFillHover: string;
7
- inputPlaceholderTextColor: string;
8
- inputTextColor: string;
9
- };
10
- };
1
+ import { CodeAppearance } from '../Code.interface';
2
+ declare const codeAppearanceDefault: CodeAppearance;
11
3
  export { codeAppearanceDefault };
@@ -1,12 +1,3 @@
1
- declare const codeAppearanceDisabled: {
2
- disabledPrimary: {
3
- inputBorderColor: string;
4
- inputBorderColorHover: string;
5
- inputCaretColor: string;
6
- inputFill: string;
7
- inputFillHover: string;
8
- inputPlaceholderTextColor: string;
9
- inputTextColor: string;
10
- };
11
- };
1
+ import { CodeAppearance } from '../Code.interface';
2
+ declare const codeAppearanceDisabled: CodeAppearance;
12
3
  export { codeAppearanceDisabled };
@@ -1,12 +1,3 @@
1
- declare const codeAppearanceError: {
2
- errorPrimary: {
3
- inputBorderColor: string;
4
- inputBorderColorHover: string;
5
- inputCaretColor: string;
6
- inputFill: string;
7
- inputFillHover: string;
8
- inputPlaceholderTextColor: string;
9
- inputTextColor: string;
10
- };
11
- };
1
+ import { CodeAppearance } from '../Code.interface';
2
+ declare const codeAppearanceError: CodeAppearance;
12
3
  export { codeAppearanceError };
@@ -1,12 +1,3 @@
1
- declare const codeAppearanceRequire: {
2
- requirePrimary: {
3
- inputBorderColor: string;
4
- inputBorderColorHover: string;
5
- inputCaretColor: string;
6
- inputFill: string;
7
- inputFillHover: string;
8
- inputPlaceholderTextColor: string;
9
- inputTextColor: string;
10
- };
11
- };
1
+ import { CodeAppearance } from '../Code.interface';
2
+ declare const codeAppearanceRequire: CodeAppearance;
12
3
  export { codeAppearanceRequire };
@@ -1,25 +1,3 @@
1
- declare const codeAppearanceShape: {
2
- circular: {
3
- shape: string;
4
- };
5
- rounded: {
6
- shape: string;
7
- };
8
- roundedS: {
9
- shape: string;
10
- shapeStrength: string;
11
- };
12
- roundedM: {
13
- shape: string;
14
- shapeStrength: string;
15
- };
16
- roundedL: {
17
- shape: string;
18
- shapeStrength: string;
19
- };
20
- roundedXL: {
21
- shape: string;
22
- shapeStrength: string;
23
- };
24
- };
1
+ import { CodeAppearance } from '../Code.interface';
2
+ declare const codeAppearanceShape: CodeAppearance;
25
3
  export { codeAppearanceShape };
@@ -1,13 +1,3 @@
1
- declare const codeAppearanceSize: {
2
- sizeL: {
3
- size: string;
4
- inputSize: string;
5
- inputTextSize: string;
6
- };
7
- sizeM: {
8
- size: string;
9
- inputSize: string;
10
- inputTextSize: string;
11
- };
12
- };
1
+ import { CodeAppearance } from '../Code.interface';
2
+ declare const codeAppearanceSize: CodeAppearance;
13
3
  export { codeAppearanceSize };