@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.
Files changed (124) 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/{Divider_cjs_DrmV2ezS.js → Divider_cjs_BZn2epqW.js} +2 -2
  8. package/dist/{Divider_es_BiYozVBS.js → Divider_es_DNJg0mQR.js} +2 -2
  9. package/dist/{DropdownItem_cjs_CawN_Tz7.js → DropdownItem_cjs_Capn0Iu7.js} +1 -1
  10. package/dist/{DropdownItem_es_BauhVrYj.js → DropdownItem_es_CTw07zF3.js} +1 -1
  11. package/dist/{Group_cjs_393FExUN.js → Group_cjs_DNI9PTBq.js} +1 -1
  12. package/dist/{Group_es_BtE98Vb5.js → Group_es_nBtACpoG.js} +1 -1
  13. package/dist/{SelectContainer_cjs_CsHj-fP_.js → SelectContainer_cjs_doMatESV.js} +2 -2
  14. package/dist/{SelectContainer_es_Bc4Laoir.js → SelectContainer_es_2ZX3VSMS.js} +2 -2
  15. package/dist/cjs/components/Accordion.js +1 -1
  16. package/dist/cjs/components/Avatar.js +1 -1
  17. package/dist/cjs/components/AvatarStack.js +2 -2
  18. package/dist/cjs/components/Button.js +1 -1
  19. package/dist/cjs/components/Cell.js +12 -16
  20. package/dist/cjs/components/Chips.js +1 -1
  21. package/dist/cjs/components/Code.js +17 -17
  22. package/dist/cjs/components/CookiesWarning.js +1 -1
  23. package/dist/cjs/components/DatePeriod.js +6 -6
  24. package/dist/cjs/components/DatePicker.js +2 -2
  25. package/dist/cjs/components/Divider.js +1 -1
  26. package/dist/cjs/components/Drawer.js +1 -1
  27. package/dist/cjs/components/Dropdown.js +2 -2
  28. package/dist/cjs/components/Group.js +1 -1
  29. package/dist/cjs/components/Notification.js +1 -1
  30. package/dist/cjs/components/Pagination.js +2 -2
  31. package/dist/cjs/components/Response.js +2 -2
  32. package/dist/cjs/components/Select.js +3 -3
  33. package/dist/cjs/components/Swiper.js +1 -1
  34. package/dist/cjs/components/Tab.js +1 -1
  35. package/dist/cjs/components/Textarea.js +9 -21
  36. package/dist/cjs/components/Video.js +1 -1
  37. package/dist/cjs/components/Warning.js +2 -2
  38. package/dist/components/Accordion.js +1 -1
  39. package/dist/components/Avatar.js +1 -1
  40. package/dist/components/AvatarStack.js +2 -2
  41. package/dist/components/Button.js +1 -1
  42. package/dist/components/Cell.js +12 -16
  43. package/dist/components/Chips.js +1 -1
  44. package/dist/components/Code.js +17 -17
  45. package/dist/components/CookiesWarning.js +1 -1
  46. package/dist/components/DatePeriod.js +6 -6
  47. package/dist/components/DatePicker.js +2 -2
  48. package/dist/components/Divider.js +1 -1
  49. package/dist/components/Drawer.js +1 -1
  50. package/dist/components/Dropdown.js +2 -2
  51. package/dist/components/Group.js +1 -1
  52. package/dist/components/Notification.js +1 -1
  53. package/dist/components/Pagination.js +2 -2
  54. package/dist/components/Response.js +2 -2
  55. package/dist/components/Select.js +3 -3
  56. package/dist/components/Swiper.js +1 -1
  57. package/dist/components/Tab.js +1 -1
  58. package/dist/components/Textarea.js +9 -21
  59. package/dist/components/Video.js +1 -1
  60. package/dist/components/Warning.js +2 -2
  61. package/dist/css/styles/bundles.css +6 -6
  62. package/dist/snippets/Group.snippets.json +1 -1
  63. package/dist/types/components/Button/Button.d.ts +1 -1
  64. package/dist/types/components/Button/Button.interface.d.ts +1 -1
  65. package/dist/types/components/Cell/Cell.appearance.d.ts +2 -2
  66. package/dist/types/components/Cell/Cell.interface.d.ts +67 -56
  67. package/dist/types/components/Cell/appearance/cellSize.d.ts +2 -58
  68. package/dist/types/components/Cell/appearance/cellStyle.d.ts +2 -13
  69. package/dist/types/components/Cell/appearance/cellSurface.d.ts +2 -54
  70. package/dist/types/components/Chips/Chips.interface.d.ts +83 -21
  71. package/dist/types/components/Chips/ChipsGroup.d.ts +2 -1
  72. package/dist/types/components/Chips/appearance/chipsAccent.d.ts +2 -23
  73. package/dist/types/components/Chips/appearance/chipsDanger.d.ts +2 -16
  74. package/dist/types/components/Chips/appearance/chipsDisabled.d.ts +2 -13
  75. package/dist/types/components/Chips/appearance/chipsError.d.ts +2 -16
  76. package/dist/types/components/Chips/appearance/chipsInfo.d.ts +2 -16
  77. package/dist/types/components/Chips/appearance/chipsPrimary.d.ts +2 -16
  78. package/dist/types/components/Chips/appearance/chipsSecondary.d.ts +2 -16
  79. package/dist/types/components/Chips/appearance/chipsShape.d.ts +2 -24
  80. package/dist/types/components/Chips/appearance/chipsSize.d.ts +2 -44
  81. package/dist/types/components/Chips/appearance/chipsStyle.d.ts +2 -13
  82. package/dist/types/components/Chips/appearance/chipsSuccess.d.ts +2 -16
  83. package/dist/types/components/Chips/appearance/chipsSurface.d.ts +2 -45
  84. package/dist/types/components/Chips/appearance/chipsWarning.d.ts +2 -16
  85. package/dist/types/components/Code/Code.appearance.d.ts +2 -2
  86. package/dist/types/components/Code/Code.interface.d.ts +32 -33
  87. package/dist/types/components/Code/appearance/codeDefault.d.ts +2 -10
  88. package/dist/types/components/Code/appearance/codeDisabled.d.ts +2 -11
  89. package/dist/types/components/Code/appearance/codeError.d.ts +2 -11
  90. package/dist/types/components/Code/appearance/codeRequire.d.ts +2 -11
  91. package/dist/types/components/Code/appearance/codeShape.d.ts +2 -24
  92. package/dist/types/components/Code/appearance/codeSize.d.ts +2 -12
  93. package/dist/types/components/Code/appearance/codeStyle.d.ts +2 -15
  94. package/dist/types/components/Code/appearance/codeSuccess.d.ts +2 -11
  95. package/dist/types/components/Divider/Divider.interface.d.ts +1 -0
  96. package/dist/types/components/Dot/Dot.interface.d.ts +5 -5
  97. package/dist/types/components/Group/Group.appearance.d.ts +2 -2
  98. package/dist/types/components/Group/Group.d.ts +53 -2
  99. package/dist/types/components/Group/Group.interface.d.ts +48 -36
  100. package/dist/types/components/Textarea/Textarea.appearance.d.ts +2 -2
  101. package/dist/types/components/Textarea/Textarea.interface.d.ts +25 -22
  102. package/dist/types/components/Textarea/appearance/textareaDefault.d.ts +2 -36
  103. package/dist/types/components/Textarea/appearance/textareaDisabled.d.ts +2 -19
  104. package/dist/types/components/Textarea/appearance/textareaError.d.ts +2 -19
  105. package/dist/types/components/Textarea/appearance/textareaRequire.d.ts +2 -19
  106. package/dist/types/components/Textarea/appearance/textareaShape.d.ts +2 -24
  107. package/dist/types/components/Textarea/appearance/textareaSize.d.ts +2 -30
  108. package/dist/types/components/Textarea/appearance/textareaStyle.d.ts +2 -15
  109. package/dist/types/components/Textarea/appearance/textareaSuccess.d.ts +2 -20
  110. package/dist/types/components/Title/Title.appearance.d.ts +513 -456
  111. package/dist/types/components/Title/Title.interface.d.ts +11 -9
  112. package/dist/types/components/Video/Video.interface.d.ts +3 -6
  113. package/dist/types/components/Warning/Warning.appearance.d.ts +1276 -121
  114. package/dist/types/components/Warning/Warning.interface.d.ts +38 -34
  115. package/dist/types/components/Warning/appearance/warningAccent.d.ts +2 -22
  116. package/dist/types/components/Warning/appearance/warningError.d.ts +2 -22
  117. package/dist/types/components/Warning/appearance/warningInfo.d.ts +2 -22
  118. package/dist/types/components/Warning/appearance/warningShape.d.ts +2 -24
  119. package/dist/types/components/Warning/appearance/warningSize.d.ts +2 -10
  120. package/dist/types/components/Warning/appearance/warningStyle.d.ts +2 -13
  121. package/dist/types/components/Warning/appearance/warningWarning.d.ts +2 -22
  122. package/package.json +1 -1
  123. package/dist/{Button_cjs_BRShPZw4.js → Button_cjs_DPs7uj_n.js} +1 -1
  124. package/dist/{Button_es_CvRcO3xM.js → Button_es_ljlle2Pu.js} +1 -1
@@ -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 };
@@ -1,16 +1,3 @@
1
- declare const codeAppearanceStyle: {
2
- full: {
3
- inputBorderColor: string;
4
- };
5
- ghost: {
6
- inputBorderColor: string;
7
- inputFill: string;
8
- };
9
- outlined: {
10
- inputFill: string;
11
- };
12
- solid: {
13
- inputBorderColor: string;
14
- };
15
- };
1
+ import { CodeAppearance } from '../Code.interface';
2
+ declare const codeAppearanceStyle: CodeAppearance;
16
3
  export { codeAppearanceStyle };
@@ -1,12 +1,3 @@
1
- declare const codeAppearanceSuccess: {
2
- successPrimary: {
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 codeAppearanceSuccess: CodeAppearance;
12
3
  export { codeAppearanceSuccess };
@@ -21,6 +21,7 @@ type DividerProps = DividerAppearanceProps & StyleAttributes & {
21
21
  isActive?: boolean;
22
22
  isDisabled?: boolean;
23
23
  isSkeleton?: boolean;
24
+ print?: boolean;
24
25
  style?: CSSProperties;
25
26
  };
26
27
  type DividerAppearanceKey = AppearanceKeysDefault | AppearanceShapeKey | AppearanceSizeKey | AppearanceStyleKey;
@@ -1,7 +1,7 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
2
  import { BorderColorProps, BorderTypeProps, FillProps, ShapeProps, SizeProps } from '@itcase/types';
3
3
  import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
4
- export interface DotThemeColor {
4
+ type DotAppearance = {
5
5
  borderColor?: BorderColorProps;
6
6
  borderColorDesktop?: BorderColorProps;
7
7
  borderColorMobile?: BorderColorProps;
@@ -19,10 +19,10 @@ export interface DotThemeColor {
19
19
  shapeMobile?: ShapeProps;
20
20
  shapeTablet?: ShapeProps;
21
21
  size?: SizeProps;
22
- }
23
- export interface DotProps extends DotThemeColor, StyleAttributes {
24
- [key: number | string | symbol]: any;
22
+ };
23
+ type DotProps = DotAppearance & StyleAttributes & {
25
24
  children?: ReactNode;
26
25
  className?: string;
27
26
  style?: CSSProperties;
28
- }
27
+ };
28
+ export type { DotAppearance, DotProps };
@@ -1,2 +1,2 @@
1
- import { Appearance } from './Group.interface';
2
- export declare const groupAppearance: Appearance;
1
+ import { GroupAppearance } from './Group.interface';
2
+ export declare const groupAppearance: GroupAppearance;
@@ -1,5 +1,56 @@
1
1
  import React from 'react';
2
- import type { GroupConfig, GroupProps } from './Group.interface';
2
+ import type { GroupConfig } from './Group.interface';
3
3
  declare const groupConfig: GroupConfig;
4
- declare const Group: React.ForwardRefExoticComponent<Omit<GroupProps, "ref"> & React.RefAttributes<unknown>>;
4
+ declare const Group: React.ForwardRefExoticComponent<{
5
+ align?: import("@itcase/types").AlignProps;
6
+ alignDirection?: AlignDirectionProps;
7
+ border?: import("@itcase/types").BorderColorProps;
8
+ borderColor?: import("@itcase/types").BorderColorProps;
9
+ borderColorActive?: import("@itcase/types").BorderColorProps;
10
+ borderColorActiveHover?: import("@itcase/types").BorderColorProps;
11
+ borderColorHover?: import("@itcase/types").BorderColorProps;
12
+ borderType?: import("@itcase/types").BorderTypeProps;
13
+ borderWidth?: import("@itcase/types").BorderWidthProps;
14
+ columns?: number;
15
+ direction?: import("@itcase/types").DirectionProps;
16
+ elevation?: import("@itcase/types").ElevationProps;
17
+ fill?: import("@itcase/types").FillProps;
18
+ fillActive?: import("@itcase/types").FillProps;
19
+ fillActiveHover?: import("@itcase/types").FillActiveHoverProps;
20
+ fillDisabled?: import("@itcase/types").FillProps;
21
+ fillHover?: import("@itcase/types").FillHoverProps;
22
+ flexGrow?: FlexGrowProps;
23
+ height?: import("@itcase/types").HeightProps;
24
+ hoverFilter?: string;
25
+ iconFillHover?: import("../Icon/Icon.interface").IconProps["fillHover"];
26
+ justifyContent?: import("@itcase/types").JustifyContentProps;
27
+ labelTextColor?: import("../Label/Label.interface").LabelProps["labelTextColor"];
28
+ shape?: import("@itcase/types").ShapeProps;
29
+ shapeStrength?: import("@itcase/types").ShapeStrengthProps;
30
+ stacking?: import("@itcase/types").StackingProps;
31
+ textColor?: import("../Text/Text.interface").TextProps["textColor"];
32
+ textColorActive?: import("../Text/Text.interface").TextProps["textColorActive"];
33
+ textColorHover?: import("../Text/Text.interface").TextProps["textColorHover"];
34
+ width?: import("@itcase/types").WidthProps;
35
+ wrap?: import("@itcase/types").WrapProps;
36
+ } & import("../../hooks/useStyles/styleAttributes.interface").StyleAttributes & {
37
+ id?: number | string;
38
+ appearance?: import("@itcase/types").CompositeAppearanceDefaultKey;
39
+ children?: React.ReactNode;
40
+ className?: string;
41
+ dataTestId?: string;
42
+ dataTour?: string;
43
+ easing?: boolean;
44
+ htmlFor?: string;
45
+ isActive?: boolean;
46
+ isDisabled?: boolean;
47
+ name?: string;
48
+ onClick?: () => void;
49
+ onMouseDown?: () => void;
50
+ print?: boolean;
51
+ scroll?: boolean | import("@itcase/types").DirectionProps;
52
+ set?: string;
53
+ style?: React.CSSProperties;
54
+ tag?: React.ElementType;
55
+ } & React.RefAttributes<HTMLDivElement>>;
5
56
  export { Group, groupConfig };
@@ -1,56 +1,68 @@
1
1
  import { CSSProperties, ElementType, ReactNode } from 'react';
2
- import { AlignDirectionProps, AlignProps, AppearanceKeysDefault, BorderColorProps, BorderTypeProps, DirectionProps, ElevationProps, FillHoverProps, FillProps, FlexGrowProps, HeightProps, ItemColorProps, JustifyContentProps, ShapeProps, StackingProps, TextColorProps, WidthProps, WrapProps } from '@itcase/types';
2
+ import { AlignDirectionProps, AlignProps, AppearanceKeysDefault, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceDefaultKey, DirectionProps, ElevationProps, FillActiveHoverProps, FillHoverProps, FillProps, FlexGrowProps, HeightProps, JustifyContentProps, ShapeProps, ShapeStrengthProps, StackingProps, WidthProps, WrapProps } from '@itcase/types';
3
3
  import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
4
- interface ThemeColor {
5
- [key: number | string | symbol]: any;
6
- border?: string;
7
- borderColor?: string;
8
- borderWidth?: string;
9
- direction?: DirectionProps;
10
- fill?: string;
11
- fillHover?: string;
12
- labelTextColor?: TextColorProps;
13
- }
14
- type AppearanceKeys = AppearanceKeysDefault & {};
15
- export type Appearance = {
16
- [key in AppearanceKeys]: ThemeColor;
17
- };
18
- export interface GroupConfig {
19
- [key: number | string | symbol]: any;
20
- appearance: Appearance | undefined;
21
- setAppearance: (newComponent: Appearance) => void;
22
- }
23
- export interface GroupProps extends StyleAttributes {
24
- id?: number | string;
25
- [key: number | string | symbol]: any;
4
+ import { IconProps } from '../Icon/Icon.interface';
5
+ import { LabelProps } from '../Label/Label.interface';
6
+ import { TextProps } from '../Text/Text.interface';
7
+ type GroupAppearanceProps = {
26
8
  align?: AlignProps;
27
9
  alignDirection?: AlignDirectionProps;
28
- appearance?: AppearanceKeys;
10
+ border?: BorderColorProps;
29
11
  borderColor?: BorderColorProps;
12
+ borderColorActive?: BorderColorProps;
13
+ borderColorActiveHover?: BorderColorProps;
14
+ borderColorHover?: BorderColorProps;
30
15
  borderType?: BorderTypeProps;
31
- children?: ReactNode;
32
- className?: string;
16
+ borderWidth?: BorderWidthProps;
33
17
  columns?: number;
34
- dataTour?: string;
35
18
  direction?: DirectionProps;
36
19
  elevation?: ElevationProps;
37
20
  fill?: FillProps;
21
+ fillActive?: FillProps;
22
+ fillActiveHover?: FillActiveHoverProps;
23
+ fillDisabled?: FillProps;
38
24
  fillHover?: FillHoverProps;
39
25
  flexGrow?: FlexGrowProps;
40
26
  height?: HeightProps;
41
- horizontalScroll?: boolean;
42
- htmlFor?: string;
43
- iconFillHover?: ItemColorProps;
27
+ hoverFilter?: string;
28
+ iconFillHover?: IconProps['fillHover'];
44
29
  justifyContent?: JustifyContentProps;
45
- name?: string;
30
+ labelTextColor?: LabelProps['labelTextColor'];
46
31
  shape?: ShapeProps;
32
+ shapeStrength?: ShapeStrengthProps;
47
33
  stacking?: StackingProps;
48
- style?: CSSProperties;
49
- tag?: ElementType;
34
+ textColor?: TextProps['textColor'];
35
+ textColorActive?: TextProps['textColorActive'];
36
+ textColorHover?: TextProps['textColorHover'];
50
37
  width?: WidthProps;
51
38
  wrap?: WrapProps;
52
- isTextHover?: boolean;
39
+ };
40
+ type GroupProps = GroupAppearanceProps & StyleAttributes & {
41
+ id?: number | string;
42
+ appearance?: CompositeAppearanceDefaultKey;
43
+ children?: ReactNode;
44
+ className?: string;
45
+ dataTestId?: string;
46
+ dataTour?: string;
47
+ easing?: boolean;
48
+ htmlFor?: string;
49
+ isActive?: boolean;
50
+ isDisabled?: boolean;
51
+ name?: string;
53
52
  onClick?: () => void;
53
+ onMouseDown?: () => void;
54
+ print?: boolean;
55
+ scroll?: boolean | DirectionProps;
54
56
  set?: string;
55
- }
56
- export {};
57
+ style?: CSSProperties;
58
+ tag?: ElementType;
59
+ };
60
+ type AppearanceKeys = AppearanceKeysDefault & {};
61
+ type GroupAppearance = {
62
+ [key in AppearanceKeys]: GroupAppearanceProps;
63
+ };
64
+ type GroupConfig = {
65
+ appearance: GroupAppearance;
66
+ setAppearance: (appearanceConfig: GroupAppearance) => void;
67
+ };
68
+ export type { GroupAppearance, GroupConfig, GroupProps };
@@ -1,2 +1,2 @@
1
- import { TextareaAppearanceType } from './Textarea.interface';
2
- export declare const textareaAppearance: TextareaAppearanceType;
1
+ import { TextareaAppearance } from './Textarea.interface';
2
+ export declare const textareaAppearance: TextareaAppearance;
@@ -1,38 +1,41 @@
1
- import { AppearanceKeysDefault, BorderColorHoverProps, BorderColorProps, FillProps, ItemColorProps, ShapeProps, SizeProps, TextColorProps, TextSizeProps, TextWeightProps, WidthProps } from '@itcase/types';
1
+ import { AppearanceKeysDefault, AppearanceShapeKey, AppearanceStyleKey, AppearanceTitleSizeKey, BorderColorHoverProps, BorderColorProps, BorderWidthProps, FillHoverProps, FillProps, ItemColorProps, ShapeProps, ShapeStrengthProps, SizeProps, TextColorProps, WidthProps } from '@itcase/types';
2
2
  import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
3
- export interface TextareaThemeColor {
4
- [key: number | string | symbol]: any;
3
+ import { TextProps } from '../Text/Text.interface';
4
+ type TextareaAppearanceProps = {
5
5
  borderColor?: BorderColorProps;
6
+ borderColorHover?: BorderColorHoverProps;
6
7
  borderHover?: BorderColorHoverProps;
8
+ borderWidth?: BorderWidthProps;
7
9
  caret?: ItemColorProps;
8
10
  fill?: FillProps;
11
+ fillHover?: FillHoverProps;
9
12
  placeholderTextColor?: TextColorProps;
10
13
  shape?: ShapeProps;
14
+ shapeStrength?: ShapeStrengthProps;
11
15
  size?: SizeProps;
12
- textColor?: TextColorProps;
13
- textSize?: TextSizeProps;
14
- textWeight?: TextWeightProps;
16
+ textColor?: TextProps['textColor'];
17
+ textSize?: TextProps['size'];
18
+ textWeight?: TextProps['textWeight'];
15
19
  width?: WidthProps;
16
- }
17
- type AppearanceKeys = AppearanceKeysDefault & {};
18
- export type TextareaAppearanceType = {
19
- [key in AppearanceKeys]?: TextareaThemeColor;
20
20
  };
21
- export interface TextareaConfig {
22
- [key: number | string | symbol]: any;
23
- appearance: TextareaAppearanceType | undefined;
24
- setAppearance: (newComponent: TextareaAppearanceType) => void;
25
- }
26
- export interface TextareaProps extends TextareaThemeColor, StyleAttributes {
21
+ type TextareaProps = StyleAttributes & TextareaAppearanceProps & {
27
22
  id?: string;
28
- [key: number | string | symbol]: any;
29
23
  appearance?: AppearanceKeys;
30
24
  className?: string;
31
- disabled?: boolean;
32
- placeholder?: string;
33
- value?: string;
25
+ isDisabled?: boolean;
34
26
  onBlur?: () => void;
35
27
  onChange?: () => void;
28
+ onFocus?: () => void;
36
29
  onKeyDown?: () => void;
37
- }
38
- export {};
30
+ placeholder?: string;
31
+ value?: string;
32
+ };
33
+ type AppearanceKeys = AppearanceKeysDefault | AppearanceShapeKey | AppearanceStyleKey | AppearanceTitleSizeKey;
34
+ type TextareaAppearance = {
35
+ [key in AppearanceKeys]?: TextareaAppearanceProps;
36
+ };
37
+ type TextareaConfig = {
38
+ appearance: TextareaAppearance;
39
+ setAppearance: (appearanceConfig: TextareaAppearance) => void;
40
+ };
41
+ export type { TextareaAppearance, TextareaConfig, TextareaProps };
@@ -1,37 +1,3 @@
1
- declare const textareaAppearanceDefault: {
2
- defaultPrimary: {
3
- fill: string;
4
- fillHover: string;
5
- borderColor: string;
6
- borderColorHover: string;
7
- iconBeforeFill: string;
8
- iconClearFill: string;
9
- placeholderTextColor: string;
10
- };
11
- defaultSecondary: {
12
- fill: string;
13
- fillHover: string;
14
- borderColor: string;
15
- borderColorHover: string;
16
- iconBeforeFill: string;
17
- iconClearFill: string;
18
- placeholderTextColor: string;
19
- };
20
- defaultTertiary: {
21
- fill: string;
22
- borderColor: string;
23
- borderColorHover: string;
24
- iconBeforeFill: string;
25
- iconClearFill: string;
26
- placeholderTextColor: string;
27
- };
28
- defaultQuaternary: {
29
- fill: string;
30
- borderColor: string;
31
- borderColorHover: string;
32
- iconBeforeFill: string;
33
- iconClearFill: string;
34
- placeholderTextColor: string;
35
- };
36
- };
1
+ import { TextareaAppearance } from '../Textarea.interface';
2
+ declare const textareaAppearanceDefault: TextareaAppearance;
37
3
  export { textareaAppearanceDefault };