@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,75 +1,86 @@
1
- import { ElementType, ReactNode } from 'react';
2
- import { AppearanceKeysDefault, DirectionProps, FillProps, IconFillSizeProps, ItemColorProps, ShapeProps, SizeProps, TextAlignProps, TextColorProps, TextSizeProps, TextWeightProps, TextWrapProps } from '@itcase/types';
1
+ import { ReactNode } from 'react';
2
+ import { AppearanceKeysDefault, AppearanceSizeKey, AppearanceStyleKey, BorderColorProps, CompositeAppearanceDefaultSizeStyleKey, DirectionProps, FillActiveHoverProps, FillHoverProps, FillProps, ItemColorProps, ShapeProps, SizeProps, TextColorProps } from '@itcase/types';
3
3
  import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
4
- export interface CellThemeColor {
5
- }
6
- type AppearanceKeys = AppearanceKeysDefault & {};
7
- export type CellAppearanceType = {
8
- [key in AppearanceKeys]?: CellThemeColor;
9
- };
10
- export interface CellConfig {
11
- [key: number | string | symbol]: any;
12
- appearance: CellAppearanceType | undefined;
13
- setAppearance: (newComponent: CellAppearanceType) => void;
14
- }
15
- export interface CellProps extends CellThemeColor, StyleAttributes {
16
- [key: number | string | symbol]: any;
17
- after?: ReactNode;
18
- appearance?: AppearanceKeys;
19
- before?: ReactNode;
20
- className?: string;
4
+ import { IconProps } from '../Icon/Icon.interface';
5
+ import { LabelProps } from '../Label/Label.interface';
6
+ import { TextProps } from '../Text/Text.interface';
7
+ type CellAppearanceProps = {
8
+ borderColor?: BorderColorProps;
9
+ borderColorActive?: BorderColorProps;
10
+ borderColorActiveHover?: BorderColorProps;
11
+ borderColorHover?: BorderColorProps;
21
12
  direction?: DirectionProps;
22
- mode?: string;
23
- reverse?: boolean;
24
- showTitleLabel?: boolean;
25
- showValueLabel?: boolean;
13
+ fill?: FillProps;
14
+ fillActive?: FillProps;
15
+ fillActiveHover?: FillActiveHoverProps;
16
+ fillHover?: FillHoverProps;
17
+ labelTextColor?: TextColorProps;
18
+ shape?: ShapeProps;
26
19
  size?: SizeProps;
27
- title?: any;
28
- titleIcon?: ElementType;
29
- titleIconFill?: FillProps;
20
+ titleIconFill?: IconProps['fill'];
30
21
  titleIconFillHover?: ItemColorProps;
31
- titleIconFillSize?: IconFillSizeProps;
22
+ titleIconFillSize?: IconProps['fillSize'];
32
23
  titleIconItemFill?: ItemColorProps;
33
- titleIconShape?: ShapeProps;
34
- titleIconSrc?: string;
35
- titleLabel?: string;
36
- titleLabelAppearance?: AppearanceKeys;
24
+ titleIconShape?: IconProps['shape'];
25
+ titleIconSrc?: IconProps['imageSrc'];
26
+ titleLabelAppearance?: LabelProps['appearance'];
27
+ titleLabelAppearanceSize?: AppearanceSizeKey;
37
28
  titleLabelShape?: ShapeProps;
38
29
  titleLabelSize?: SizeProps;
39
- titleLabelTextSize?: TextSizeProps;
40
- titleTag?: ElementType;
30
+ titleLabelTextSize?: TextProps['size'];
41
31
  titleTextColor?: TextColorProps;
42
- titleTextSize?: TextSizeProps;
43
- titleTextTruncate?: boolean;
44
- titleTextWeight?: TextWeightProps;
45
- titleTextWrap?: TextWrapProps;
46
- value?: any;
47
- valueIcon?: ElementType;
48
- valueIconFill?: FillProps;
32
+ titleTextSize?: TextProps['size'];
33
+ titleTextTruncate?: TextProps['textTruncate'];
34
+ titleTextWeight?: TextProps['textWeight'];
35
+ titleTextWrap?: TextProps['textWrap'];
36
+ valueIconFill?: IconProps['fill'];
49
37
  valueIconFillHover?: ItemColorProps;
50
- valueIconFillSize?: IconFillSizeProps;
38
+ valueIconFillSize?: IconProps['fillSize'];
51
39
  valueIconItemFill?: ItemColorProps;
52
- valueIconShape?: ShapeProps;
53
- valueIconSrc?: string;
40
+ valueIconShape?: IconProps['shape'];
41
+ valueIconSrc?: IconProps['imageSrc'];
54
42
  valueLabel?: string;
55
- valueLabelAppearance?: AppearanceKeys;
43
+ valueLabelAppearance?: LabelProps['appearance'];
44
+ valueLabelAppearanceSize?: AppearanceSizeKey;
56
45
  valueLabelShape?: ShapeProps;
57
46
  valueLabelSize?: SizeProps;
58
- valueLabelTextSize?: TextSizeProps;
59
- valueTag?: ElementType;
60
- valueTextAlign?: TextAlignProps;
61
- valueTextColor?: TextColorProps;
62
- valueTextSize?: TextSizeProps;
63
- valueTextTruncate?: boolean;
64
- valueTextWeight?: TextWeightProps;
65
- valueTextWrap?: TextWrapProps;
47
+ valueLabelTextSize?: TextProps['size'];
48
+ valueTextAlign?: TextProps['textAlign'];
49
+ valueTextColor?: TextProps['textColor'];
50
+ valueTextSize?: TextProps['size'];
51
+ valueTextTruncate?: TextProps['textTruncate'];
52
+ valueTextWeight?: TextProps['textWeight'];
53
+ valueTextWrap?: TextProps['textWrap'];
66
54
  zeroGap?: boolean;
67
55
  zeroPadding?: boolean;
56
+ };
57
+ type CellProps = CellAppearanceProps & StyleAttributes & {
58
+ after?: string;
59
+ appearance?: CompositeAppearanceDefaultSizeStyleKey;
60
+ before?: string;
61
+ className?: string;
68
62
  isActive?: boolean;
69
- isDisabled?: boolean;
70
63
  isEqual?: boolean;
64
+ isSameWidth?: boolean;
71
65
  onClick?: () => void;
72
66
  onMouseEnter?: () => void;
73
- set?: string;
74
- }
75
- export {};
67
+ reverse?: boolean;
68
+ showTitleLabel?: boolean;
69
+ showValueLabel?: boolean;
70
+ title?: string;
71
+ titleIcon?: IconProps['SvgImage'];
72
+ titleLabel?: string;
73
+ titleTag?: ReactNode;
74
+ value?: string;
75
+ valueIcon?: IconProps['SvgImage'];
76
+ valueTag?: TextProps['tag'];
77
+ };
78
+ type AppearanceKeys = AppearanceKeysDefault | AppearanceSizeKey | AppearanceStyleKey;
79
+ type CellAppearance = {
80
+ [key in AppearanceKeys]?: CellAppearanceProps;
81
+ };
82
+ type CellConfig = {
83
+ appearance: CellAppearance;
84
+ setAppearance: (appearanceConfig: CellAppearance) => void;
85
+ };
86
+ export type { CellAppearance, CellConfig, CellProps };
@@ -1,59 +1,3 @@
1
- declare const cellAppearanceSize: {
2
- sizeXL: {
3
- size: string;
4
- titleLabelAppearanceSize: string;
5
- titleTextSize: string;
6
- valueLabelAppearanceSize: string;
7
- valueTextSize: string;
8
- };
9
- sizeL: {
10
- size: string;
11
- titleLabelAppearanceSize: string;
12
- titleTextSize: string;
13
- valueLabelAppearanceSize: string;
14
- valueTextSize: string;
15
- };
16
- sizeM: {
17
- size: string;
18
- titleLabelAppearanceSize: string;
19
- titleTextSize: string;
20
- valueLabelAppearanceSize: string;
21
- valueTextSize: string;
22
- };
23
- sizeS: {
24
- size: string;
25
- titleLabelAppearanceSize: string;
26
- titleTextSize: string;
27
- valueLabelAppearanceSize: string;
28
- valueTextSize: string;
29
- };
30
- sizeEqualL: {
31
- size: string;
32
- titleLabelAppearanceSize: string;
33
- titleTextSize: string;
34
- valueLabelAppearanceSize: string;
35
- valueTextSize: string;
36
- };
37
- sizeEqualM: {
38
- size: string;
39
- titleLabelAppearanceSize: string;
40
- titleTextSize: string;
41
- valueLabelAppearanceSize: string;
42
- valueTextSize: string;
43
- };
44
- sizeEqualS: {
45
- size: string;
46
- titleLabelAppearanceSize: string;
47
- titleTextSize: string;
48
- valueLabelAppearanceSize: string;
49
- valueTextSize: string;
50
- };
51
- sizeEqualXL: {
52
- size: string;
53
- titleLabelAppearanceSize: string;
54
- titleTextSize: string;
55
- valueLabelAppearanceSize: string;
56
- valueTextSize: string;
57
- };
58
- };
1
+ import { CellAppearance } from '../Cell.interface';
2
+ declare const cellAppearanceSize: CellAppearance;
59
3
  export { cellAppearanceSize };
@@ -1,14 +1,3 @@
1
- declare const cellAppearanceStyle: {
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 { CellAppearance } from '../Cell.interface';
2
+ declare const cellAppearanceStyle: CellAppearance;
14
3
  export { cellAppearanceStyle };
@@ -1,55 +1,3 @@
1
- declare const cellAppearanceSurface: {
2
- surfacePrimary: {
3
- fill: string;
4
- fillHover: string;
5
- titleIconItemFill: string;
6
- titleLabelAppearance: string;
7
- titleTextColor: string;
8
- titleTextSize: string;
9
- labelTextColor: string;
10
- borderColor: string;
11
- valueIconItemFill: string;
12
- valueLabelAppearance: string;
13
- valueTextColor: string;
14
- };
15
- surfaceSecondary: {
16
- fill: string;
17
- fillHover: string;
18
- titleIconItemFill: string;
19
- titleLabelAppearance: string;
20
- titleTextColor: string;
21
- titleTextSize: string;
22
- labelTextColor: string;
23
- borderColor: string;
24
- valueIconItemFill: string;
25
- valueLabelAppearance: string;
26
- valueTextColor: string;
27
- };
28
- surfaceTertiary: {
29
- fill: string;
30
- fillHover: string;
31
- titleIconItemFill: string;
32
- titleLabelAppearance: string;
33
- titleTextColor: string;
34
- titleTextSize: string;
35
- labelTextColor: string;
36
- borderColor: string;
37
- valueIconItemFill: string;
38
- valueLabelAppearance: string;
39
- valueTextColor: string;
40
- };
41
- surfaceQuaternary: {
42
- fill: string;
43
- fillHover: string;
44
- titleIconItemFill: string;
45
- titleLabelAppearance: string;
46
- titleTextColor: string;
47
- titleTextSize: string;
48
- labelTextColor: string;
49
- borderColor: string;
50
- valueIconItemFill: string;
51
- valueLabelAppearance: string;
52
- valueTextColor: string;
53
- };
54
- };
1
+ import { CellAppearance } from '../Cell.interface';
2
+ declare const cellAppearanceSurface: CellAppearance;
55
3
  export { cellAppearanceSurface };
@@ -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 };