@itcase/ui 1.8.93 → 1.8.95

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 (165) hide show
  1. package/dist/{Avatar_cjs_Dh7c9RmS.js → Avatar_cjs_BcGACdXb.js} +1 -1
  2. package/dist/{Avatar_es_D4xUwAOB.js → Avatar_es_CRe2Om1a.js} +1 -1
  3. package/dist/{Button_cjs_CQzbBsB0.js → Button_cjs_DojNe74O.js} +2 -2
  4. package/dist/{Button_es_Bj8CZ_bh.js → Button_es_DCM3C_2S.js} +2 -2
  5. package/dist/{ChipsGroup_cjs_7mHtHzNh.js → ChipsGroup_cjs_DFdZuX6w.js} +1 -1
  6. package/dist/{ChipsGroup_es_Cz_gDYsw.js → ChipsGroup_es_Dm-iGTBi.js} +1 -1
  7. package/dist/{DatePicker_cjs_CnFVTsC1.js → DatePicker_cjs_mrV_Qly2.js} +3 -3
  8. package/dist/{DatePicker_es_DTSHtynU.js → DatePicker_es_Di_4I2Xv.js} +3 -3
  9. package/dist/{Divider_cjs_rxMMBfLC.js → Divider_cjs_DUYtmwn2.js} +3 -3
  10. package/dist/{Divider_es_CiRU0sTz.js → Divider_es_CCLBFIx6.js} +3 -3
  11. package/dist/{DropdownItem_cjs_DrMFaKh6.js → DropdownItem_cjs_DNSMwZdV.js} +2 -2
  12. package/dist/{DropdownItem_es_Dp7-DGkV.js → DropdownItem_es_DURwA4mR.js} +2 -2
  13. package/dist/{Icon_cjs_CDMtlf1A.js → Icon_cjs_B-nskaAO.js} +25 -29
  14. package/dist/{Icon_es_MOmiy9nF.js → Icon_es_CTKPPrrC.js} +25 -29
  15. package/dist/{Label_cjs_BTLhlnJW.js → Label_cjs_B1fNYJak.js} +1 -1
  16. package/dist/{Label_es_DBPp2ots.js → Label_es_d9RioNNf.js} +1 -1
  17. package/dist/{Loader_cjs_mB_UCgBG.js → Loader_cjs_CMvh28cF.js} +3 -4
  18. package/dist/{Loader_es_Dfs_VYxV.js → Loader_es_DGMpRDMk.js} +3 -4
  19. package/dist/cjs/components/Accordion.js +6 -7
  20. package/dist/cjs/components/Avatar.js +2 -2
  21. package/dist/cjs/components/AvatarStack.js +2 -2
  22. package/dist/cjs/components/Badge.js +1 -1
  23. package/dist/cjs/components/Breadcrumbs.js +1 -1
  24. package/dist/cjs/components/Button.js +3 -3
  25. package/dist/cjs/components/Cell.js +2 -2
  26. package/dist/cjs/components/Chips.js +2 -2
  27. package/dist/cjs/components/Choice.js +2 -2
  28. package/dist/cjs/components/CookiesWarning.js +3 -3
  29. package/dist/cjs/components/DatePeriod.js +6 -6
  30. package/dist/cjs/components/DatePicker.js +5 -5
  31. package/dist/cjs/components/Divider.js +1 -1
  32. package/dist/cjs/components/Drawer.js +2 -2
  33. package/dist/cjs/components/Dropdown.js +3 -3
  34. package/dist/cjs/components/HeroTitle.js +1 -1
  35. package/dist/cjs/components/Icon.js +1 -1
  36. package/dist/cjs/components/InputPassword.js +1 -1
  37. package/dist/cjs/components/Label.js +2 -2
  38. package/dist/cjs/components/Loader.js +1 -1
  39. package/dist/cjs/components/MenuItem.js +1 -1
  40. package/dist/cjs/components/Modal.js +2 -2
  41. package/dist/cjs/components/ModalSheetBottom.js +8 -7
  42. package/dist/cjs/components/Notification.js +1 -1
  43. package/dist/cjs/components/Pagination.js +3 -3
  44. package/dist/cjs/components/Response.js +3 -3
  45. package/dist/cjs/components/Search.js +1 -1
  46. package/dist/cjs/components/Segmented.js +1 -1
  47. package/dist/cjs/components/Select.js +3 -3
  48. package/dist/cjs/components/Swiper.js +1 -1
  49. package/dist/cjs/components/Tab.js +2 -2
  50. package/dist/cjs/components/Tile.js +13 -13
  51. package/dist/cjs/components/Title.js +1 -1
  52. package/dist/cjs/components/Tooltip.js +1 -1
  53. package/dist/cjs/components/Warning.js +1 -1
  54. package/dist/cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +23 -18
  55. package/dist/components/Accordion.js +6 -7
  56. package/dist/components/Avatar.js +2 -2
  57. package/dist/components/AvatarStack.js +2 -2
  58. package/dist/components/Badge.js +1 -1
  59. package/dist/components/Breadcrumbs.js +1 -1
  60. package/dist/components/Button.js +3 -3
  61. package/dist/components/Cell.js +2 -2
  62. package/dist/components/Chips.js +2 -2
  63. package/dist/components/Choice.js +2 -2
  64. package/dist/components/CookiesWarning.js +3 -3
  65. package/dist/components/DatePeriod.js +6 -6
  66. package/dist/components/DatePicker.js +5 -5
  67. package/dist/components/Divider.js +1 -1
  68. package/dist/components/Drawer.js +2 -2
  69. package/dist/components/Dropdown.js +3 -3
  70. package/dist/components/HeroTitle.js +1 -1
  71. package/dist/components/Icon.js +1 -1
  72. package/dist/components/InputPassword.js +1 -1
  73. package/dist/components/Label.js +2 -2
  74. package/dist/components/Loader.js +1 -1
  75. package/dist/components/MenuItem.js +1 -1
  76. package/dist/components/Modal.js +2 -2
  77. package/dist/components/ModalSheetBottom.js +8 -7
  78. package/dist/components/Notification.js +1 -1
  79. package/dist/components/Pagination.js +3 -3
  80. package/dist/components/Response.js +3 -3
  81. package/dist/components/Search.js +1 -1
  82. package/dist/components/Segmented.js +1 -1
  83. package/dist/components/Select.js +3 -3
  84. package/dist/components/Swiper.js +1 -1
  85. package/dist/components/Tab.js +2 -2
  86. package/dist/components/Tile.js +13 -13
  87. package/dist/components/Title.js +1 -1
  88. package/dist/components/Tooltip.js +1 -1
  89. package/dist/components/Warning.js +1 -1
  90. package/dist/css/components/Accordion/Accordion.css +12 -36
  91. package/dist/css/components/Loader/Loader.css +0 -6
  92. package/dist/css/styles/align/align_horizontal.css +22 -40
  93. package/dist/css/styles/align/align_vertical.css +7 -25
  94. package/dist/css/styles/alignment/alignment.css +0 -8
  95. package/dist/css/styles/border-color/border-color.css +2 -3
  96. package/dist/css/styles/border-color/border-color_active.css +2 -3
  97. package/dist/css/styles/border-color/border-color_focus.css +2 -3
  98. package/dist/css/styles/border-color/border-color_hover.css +2 -3
  99. package/dist/css/styles/fill/fill_active.css +2 -4
  100. package/dist/css/styles/fill/fill_active_hover.css +2 -4
  101. package/dist/css/styles/fill/fill_hover.css +2 -3
  102. package/dist/css/styles/text-color/text-color_active.css +2 -4
  103. package/dist/css/styles/text-color/text-color_active_hover.css +2 -4
  104. package/dist/css/styles/text-color/text-color_hover.css +2 -4
  105. package/dist/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +23 -18
  106. package/dist/types/components/Accordion/Accordion.interface.d.ts +21 -39
  107. package/dist/types/components/Badge/Badge.appearance.d.ts +230 -2
  108. package/dist/types/components/Badge/Badge.interface.d.ts +26 -19
  109. package/dist/types/components/Badge/appearance/badgeShape.d.ts +4 -4
  110. package/dist/types/components/Divider/Divider.appearance.d.ts +814 -2
  111. package/dist/types/components/Divider/Divider.interface.d.ts +24 -36
  112. package/dist/types/components/Divider/appearance/dividerAccent.d.ts +2 -5
  113. package/dist/types/components/Divider/appearance/dividerError.d.ts +2 -5
  114. package/dist/types/components/Divider/appearance/dividerPrimary.d.ts +2 -5
  115. package/dist/types/components/Divider/appearance/dividerSecondary.d.ts +2 -5
  116. package/dist/types/components/Divider/appearance/dividerSize.d.ts +2 -11
  117. package/dist/types/components/Divider/appearance/dividerSuccess.d.ts +2 -5
  118. package/dist/types/components/Divider/appearance/dividerSurface.d.ts +2 -14
  119. package/dist/types/components/Divider/appearance/dividerWarning.d.ts +2 -5
  120. package/dist/types/components/Icon/Icon.appearance.d.ts +41 -2
  121. package/dist/types/components/Icon/Icon.d.ts +1 -0
  122. package/dist/types/components/Icon/Icon.interface.d.ts +59 -73
  123. package/dist/types/components/Icon/appearance/iconAccent.d.ts +2 -22
  124. package/dist/types/components/Icon/appearance/iconDanger.d.ts +2 -13
  125. package/dist/types/components/Icon/appearance/iconDisabled.d.ts +2 -12
  126. package/dist/types/components/Icon/appearance/iconError.d.ts +2 -15
  127. package/dist/types/components/Icon/appearance/iconInfo.d.ts +2 -18
  128. package/dist/types/components/Icon/appearance/iconPrimary.d.ts +2 -15
  129. package/dist/types/components/Icon/appearance/iconSecondary.d.ts +2 -13
  130. package/dist/types/components/Icon/appearance/iconShape.d.ts +2 -24
  131. package/dist/types/components/Icon/appearance/iconSize.d.ts +2 -142
  132. package/dist/types/components/Icon/appearance/iconStyle.d.ts +2 -13
  133. package/dist/types/components/Icon/appearance/iconSuccess.d.ts +2 -13
  134. package/dist/types/components/Icon/appearance/iconSurface.d.ts +2 -27
  135. package/dist/types/components/Icon/appearance/iconWarning.d.ts +2 -15
  136. package/dist/types/components/Image/Image.d.ts +2 -5
  137. package/dist/types/components/Loader/Loader.appearance.d.ts +466 -2
  138. package/dist/types/components/Loader/Loader.interface.d.ts +16 -16
  139. package/dist/types/components/Loader/appearance/loaderAccent.d.ts +2 -6
  140. package/dist/types/components/Loader/appearance/loaderDanger.d.ts +2 -6
  141. package/dist/types/components/Loader/appearance/loaderError.d.ts +2 -6
  142. package/dist/types/components/Loader/appearance/loaderInfo.d.ts +2 -6
  143. package/dist/types/components/Loader/appearance/loaderPrimary.d.ts +2 -6
  144. package/dist/types/components/Loader/appearance/loaderSecondary.d.ts +2 -6
  145. package/dist/types/components/Loader/appearance/loaderSize.d.ts +2 -11
  146. package/dist/types/components/Loader/appearance/loaderStyle.d.ts +2 -13
  147. package/dist/types/components/Loader/appearance/loaderSuccess.d.ts +2 -6
  148. package/dist/types/components/Loader/appearance/loaderSurface.d.ts +2 -14
  149. package/dist/types/components/Loader/appearance/loaderWarning.d.ts +2 -6
  150. package/dist/types/components/Logo/Logo.d.ts +2 -6
  151. package/dist/types/components/Response/Response.d.ts +2 -6
  152. package/dist/types/components/SVGContent/SVGContent.d.ts +2 -5
  153. package/dist/types/components/Tile/Tile.appearance.d.ts +60 -2
  154. package/dist/types/components/Tile/Tile.interface.d.ts +46 -28
  155. package/dist/types/components/Tile/appearance/tileShape.d.ts +2 -24
  156. package/dist/types/components/Tile/appearance/tileSize.d.ts +2 -50
  157. package/dist/types/components/Tile/appearance/tileStyle.d.ts +2 -13
  158. package/dist/types/components/Tile/appearance/tileSurface.d.ts +2 -38
  159. package/dist/types/hoc/urlWithAssetPrefix.d.ts +3 -2
  160. package/dist/types/hooks/useDevicePropsGenerator/useDevicePropsGenerator.d.ts +7 -2
  161. package/dist/types/hooks/useDevicePropsGenerator/useDevicePropsGenerator.interface.d.ts +1 -10
  162. package/dist/types/hooks/useStyles/styleAttributes.interface.d.ts +78 -102
  163. package/dist/types/types/index.d.ts +1 -0
  164. package/dist/types/types/utils.d.ts +9 -0
  165. package/package.json +6 -8
@@ -1,46 +1,34 @@
1
1
  import { CSSProperties } from 'react';
2
- import { AppearanceKeysDefault, DirectionProps, FillHoverProps, FillProps, SizeProps, WidthProps } from '@itcase/types';
2
+ import { AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorProps, CompositeAppearanceKey, DirectionProps, FillActiveHoverProps, FillActiveProps, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps, TextColorProps, TextSizeProps } from '@itcase/types';
3
3
  import { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface';
4
- export interface DividerThemeColor {
5
- [key: number | string | symbol]: any;
6
- className?: string;
4
+ type DividerAppearanceProps = {
5
+ borderColor?: BorderColorProps;
7
6
  direction?: DirectionProps;
8
- directionDesktop?: DirectionProps;
9
- directionMobile?: DirectionProps;
10
- directionTablet?: DirectionProps;
11
7
  fill?: FillProps;
12
- fillActive?: FillProps;
13
- fillActiveClass?: FillProps;
14
- fillActiveHover?: FillHoverProps;
15
- fillDesktop?: FillProps;
8
+ fillActive?: FillActiveProps;
9
+ fillActiveHover?: FillActiveHoverProps;
16
10
  fillDisabled?: FillProps;
17
11
  fillHover?: FillHoverProps;
18
- fillMobile?: FillProps;
19
- fillTablet?: FillProps;
12
+ shape?: ShapeProps;
13
+ shapeStrength?: ShapeStrengthProps;
20
14
  size?: SizeProps;
21
- sizeDesktop?: SizeProps;
22
- sizeMobile?: SizeProps;
23
- sizeTablet?: SizeProps;
24
- width?: WidthProps;
25
- widthDesktop?: WidthProps;
26
- widthMobile?: WidthProps;
27
- widthTablet?: WidthProps;
28
- }
29
- type AppearanceKeys = AppearanceKeysDefault & {};
30
- export type DividerAppearanceType = {
31
- [key in AppearanceKeys]?: DividerThemeColor;
15
+ textColor?: TextColorProps;
16
+ textSize?: TextSizeProps;
32
17
  };
33
- export interface DividerConfig {
34
- [key: number | string | symbol]: any;
35
- appearance: DividerAppearanceType | undefined;
36
- setAppearance: (newComponent: DividerAppearanceType) => void;
37
- }
38
- export interface DividerProps extends DividerThemeColor, StyleAttributes {
39
- [key: number | string | symbol]: any;
40
- appearance?: AppearanceKeys;
18
+ type DividerProps = DividerAppearanceProps & StyleAttributes & {
19
+ appearance?: CompositeAppearanceKey;
41
20
  className?: string;
42
- direction?: 'horizontal' | 'vertical';
43
- style?: CSSProperties;
21
+ isActive?: boolean;
22
+ isDisabled?: boolean;
44
23
  isSkeleton?: boolean;
45
- }
46
- export {};
24
+ style?: CSSProperties;
25
+ };
26
+ type DividerAppearanceKey = AppearanceKeysDefault | AppearanceShapeKey | AppearanceSizeKey | AppearanceStyleKey;
27
+ type DividerAppearance = {
28
+ [key in DividerAppearanceKey]?: DividerAppearanceProps;
29
+ };
30
+ type DividerConfig = {
31
+ appearance: DividerAppearance;
32
+ setAppearance: (appearanceConfig: DividerAppearance) => void;
33
+ };
34
+ export type { DividerAppearance, DividerConfig, DividerProps };
@@ -1,6 +1,3 @@
1
- declare const dividerAppearanceAccent: {
2
- accentPrimary: {
3
- fill: string;
4
- };
5
- };
1
+ import type { DividerAppearance } from '../Divider.interface';
2
+ declare const dividerAppearanceAccent: DividerAppearance;
6
3
  export { dividerAppearanceAccent };
@@ -1,6 +1,3 @@
1
- declare const dividerAppearanceError: {
2
- errorPrimary: {
3
- fill: string;
4
- };
5
- };
1
+ import type { DividerAppearance } from '../Divider.interface';
2
+ declare const dividerAppearanceError: DividerAppearance;
6
3
  export { dividerAppearanceError };
@@ -1,6 +1,3 @@
1
- declare const dividerAppearancePrimary: {
2
- primaryPrimary: {
3
- fill: string;
4
- };
5
- };
1
+ import type { DividerAppearance } from '../Divider.interface';
2
+ declare const dividerAppearancePrimary: DividerAppearance;
6
3
  export { dividerAppearancePrimary };
@@ -1,6 +1,3 @@
1
- declare const dividerAppearanceSecondary: {
2
- secondaryPrimary: {
3
- fill: string;
4
- };
5
- };
1
+ import type { DividerAppearance } from '../Divider.interface';
2
+ declare const dividerAppearanceSecondary: DividerAppearance;
6
3
  export { dividerAppearanceSecondary };
@@ -1,12 +1,3 @@
1
- declare const dividerAppearanceSize: {
2
- sizeL: {
3
- size: string;
4
- };
5
- sizeM: {
6
- size: string;
7
- };
8
- sizeS: {
9
- size: string;
10
- };
11
- };
1
+ import type { DividerAppearance } from '../Divider.interface';
2
+ declare const dividerAppearanceSize: DividerAppearance;
12
3
  export { dividerAppearanceSize };
@@ -1,6 +1,3 @@
1
- declare const dividerAppearanceSuccess: {
2
- successPrimary: {
3
- fill: string;
4
- };
5
- };
1
+ import type { DividerAppearance } from '../Divider.interface';
2
+ declare const dividerAppearanceSuccess: DividerAppearance;
6
3
  export { dividerAppearanceSuccess };
@@ -1,15 +1,3 @@
1
- declare const dividerAppearanceSurface: {
2
- surfacePrimary: {
3
- fill: string;
4
- };
5
- surfaceSecondary: {
6
- fill: string;
7
- };
8
- surfaceTertiary: {
9
- fill: string;
10
- };
11
- surfaceQuaternary: {
12
- fill: string;
13
- };
14
- };
1
+ import type { DividerAppearance } from '../Divider.interface';
2
+ declare const dividerAppearanceSurface: DividerAppearance;
15
3
  export { dividerAppearanceSurface };
@@ -1,6 +1,3 @@
1
- declare const dividerAppearanceWarning: {
2
- warningPrimary: {
3
- fill: string;
4
- };
5
- };
1
+ import type { DividerAppearance } from '../Divider.interface';
2
+ declare const dividerAppearanceWarning: DividerAppearance;
6
3
  export { dividerAppearanceWarning };
@@ -1,2 +1,41 @@
1
- import { IconAppearance } from './Icon.interface';
2
- export declare const iconAppearance: IconAppearance;
1
+ export declare const iconAppearance: {
2
+ alignment?: import("@itcase/types").AlignmentProps;
3
+ badgeAppearance?: import("@itcase/types").AppearanceKeysDefault;
4
+ badgeAppearanceSize?: import("@itcase/types").AppearanceSizeKey;
5
+ badgeShape?: import("@itcase/types").ShapeProps;
6
+ badgeSize?: import("@itcase/types").SizeProps;
7
+ badgeTextColor?: import("@itcase/types").TextColorProps;
8
+ badgeTextSize?: import("@itcase/types").TextSizeProps;
9
+ borderColor?: import("@itcase/types").BorderColorProps;
10
+ borderColorHover?: import("@itcase/types").BorderColorHoverProps;
11
+ borderType?: import("@itcase/types").BorderTypeProps;
12
+ borderWidth?: import("@itcase/types").BorderWidthProps;
13
+ centering?: import("@itcase/types").CenteringProps;
14
+ direction?: import("@itcase/types").DirectionProps;
15
+ fill?: import("@itcase/types").FillProps;
16
+ fillActive?: import("@itcase/types").FillActiveProps;
17
+ fillActiveHover?: import("@itcase/types").FillActiveHoverProps;
18
+ fillDisabled?: import("@itcase/types").FillDisabledProps;
19
+ fillHover?: import("@itcase/types").FillHoverProps;
20
+ fillSize?: import("@itcase/types").FillSizeProps;
21
+ iconAppearance?: import("@itcase/types").CompositeAppearanceKey;
22
+ iconFill?: import("@itcase/types").FillProps;
23
+ iconFillActive?: import("@itcase/types").FillActiveProps;
24
+ iconFillActiveHover?: import("@itcase/types").FillActiveHoverProps;
25
+ iconFillDisabled?: import("@itcase/types").FillDisabledProps;
26
+ iconFillHover?: import("@itcase/types").FillHoverProps;
27
+ iconFillIcon?: import("@itcase/types").ItemFillProps;
28
+ iconFillSize?: import("@itcase/types").FillSizeProps;
29
+ iconShape?: import("@itcase/types").ShapeProps;
30
+ iconSize?: import("@itcase/types").IconSizeProps;
31
+ shape?: import("@itcase/types").ShapeProps;
32
+ shapeStrength?: import("@itcase/types").ShapeStrengthProps;
33
+ size?: import("@itcase/types").SizeProps;
34
+ textColor?: import("@itcase/types").TextColorProps;
35
+ textSize?: import("@itcase/types").TextSizeProps;
36
+ titleTextColor?: import("@itcase/types").TextColorProps;
37
+ titleTextSize?: import("@itcase/types").TitleSizeProps;
38
+ tooltipAppearance?: import("@itcase/types").CompositeAppearanceKey;
39
+ tooltipTextSize?: import("@itcase/types").TitleSizeProps;
40
+ tooltipTitleSize?: import("@itcase/types").TextSizeProps;
41
+ };
@@ -3,6 +3,7 @@ import type { IconConfig } from '../Icon/Icon.interface';
3
3
  declare const iconConfig: IconConfig;
4
4
  declare const Icon: React.ForwardRefExoticComponent<{
5
5
  imageSrc?: string;
6
+ placeholderUrl?: string;
6
7
  src?: string;
7
8
  svgSrc?: string;
8
9
  } & React.RefAttributes<HTMLDivElement>>;
@@ -1,95 +1,81 @@
1
- import type { CSSProperties, MouseEventHandler, ReactNode } from 'react';
2
- import { AlignmentProps, AppearanceKeysDefault, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps, FillHoverProps, FillProps, IconFillSizeProps, IconSizeProps, ItemColorProps, ShapeProps, TextColorHoverProps, TextColorProps, TextSizeProps, TitleSizeProps } from '@itcase/types';
3
- import type { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface';
4
- interface IconThemeColor {
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ import { AlignmentProps, AlignProps, AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps, CenteringProps, CompositeAppearanceKey, DirectionProps, FillActiveHoverProps, FillActiveProps, FillDisabledProps, FillHoverProps, FillProps, FillSizeProps, IconSizeProps, ItemFillProps, ShapeProps, ShapeStrengthProps, SizeProps, TextColorProps, TextSizeProps, TitleSizeProps } from '@itcase/types';
3
+ import { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface';
4
+ type IconAppearanceProps = {
5
5
  alignment?: AlignmentProps;
6
- bgFill?: FillProps;
6
+ badgeAppearance?: AppearanceKeysDefault;
7
+ badgeAppearanceSize?: AppearanceSizeKey;
8
+ badgeShape?: ShapeProps;
9
+ badgeSize?: SizeProps;
10
+ badgeTextColor?: TextColorProps;
11
+ badgeTextSize?: TextSizeProps;
7
12
  borderColor?: BorderColorProps;
8
13
  borderColorHover?: BorderColorHoverProps;
9
14
  borderType?: BorderTypeProps;
10
15
  borderWidth?: BorderWidthProps;
11
- cursor?: string;
16
+ centering?: CenteringProps;
17
+ direction?: DirectionProps;
12
18
  fill?: FillProps;
13
- fillDisabled?: FillProps;
19
+ fillActive?: FillActiveProps;
20
+ fillActiveHover?: FillActiveHoverProps;
21
+ fillDisabled?: FillDisabledProps;
14
22
  fillHover?: FillHoverProps;
15
- fillSize?: IconFillSizeProps;
16
- iconAfterFill?: FillProps;
17
- iconAfterFillSize?: IconFillSizeProps;
18
- iconAfterShape?: ShapeProps;
19
- iconBeforeFill?: FillProps;
20
- iconBeforeFillSize?: IconFillSizeProps;
21
- iconBeforeShape?: ShapeProps;
22
- iconFill?: ItemColorProps;
23
- iconFillDisabled?: ItemColorProps;
24
- iconFillHover?: ItemColorProps;
25
- iconFillSize?: IconFillSizeProps;
23
+ fillSize?: FillSizeProps;
24
+ iconAppearance?: CompositeAppearanceKey;
25
+ iconFill?: FillProps;
26
+ iconFillActive?: FillActiveProps;
27
+ iconFillActiveHover?: FillActiveHoverProps;
28
+ iconFillDisabled?: FillDisabledProps;
29
+ iconFillHover?: FillHoverProps;
30
+ iconFillIcon?: ItemFillProps;
31
+ iconFillSize?: FillSizeProps;
26
32
  iconShape?: ShapeProps;
27
33
  iconSize?: IconSizeProps;
28
- label?: string;
29
- labelTextColor?: TextColorProps;
30
- labelTextColorHover?: TextColorHoverProps;
31
- labelTextSize?: TextSizeProps;
32
- loaderFill?: string;
33
- loaderItemFill?: string;
34
34
  shape?: ShapeProps;
35
- size?: IconSizeProps;
36
- }
37
- type IconAppearance = {
38
- [key in AppearanceKeysDefault]?: IconThemeColor;
35
+ shapeStrength?: ShapeStrengthProps;
36
+ size?: SizeProps;
37
+ textColor?: TextColorProps;
38
+ textSize?: TextSizeProps;
39
+ titleTextColor?: TextColorProps;
40
+ titleTextSize?: TitleSizeProps;
41
+ tooltipAppearance?: CompositeAppearanceKey;
42
+ tooltipTextSize?: TitleSizeProps;
43
+ tooltipTitleSize?: TextSizeProps;
39
44
  };
40
- interface IconConfig {
41
- appearance: IconAppearance | undefined;
42
- setAppearance: (newComponent: IconAppearance) => void;
43
- }
44
- interface IconProps extends IconThemeColor, StyleAttributes {
45
- id?: number | string;
46
- [key: number | string | symbol]: any;
45
+ type IconProps = IconAppearanceProps & StyleAttributes & {
46
+ id?: string;
47
47
  after?: ReactNode;
48
- Badge?: ReactNode;
48
+ align?: AlignProps;
49
+ appearance?: CompositeAppearanceKey;
50
+ badgeClass?: string;
51
+ badgeValue?: string;
49
52
  before?: ReactNode;
53
+ children?: ReactNode;
50
54
  className?: string;
55
+ dataTestId?: string;
51
56
  dataTour?: string;
52
- fillDesktop?: FillProps;
53
- fillMobile?: FillProps;
54
- fillSizeDesktop?: string;
55
- fillSizeMobile?: string;
56
- fillSizeTablet?: string;
57
- fillTablet?: FillProps;
58
- height?: string;
59
- href?: string;
60
- htmlType?: string;
61
57
  icon?: string;
62
- iconAfterSrc?: string;
63
- iconBeforeSrc?: string;
64
58
  iconSrc?: string;
65
- imageSrc?: string;
66
- link?: string;
67
- LinkComponent?: ReactNode;
68
- linkRel?: string;
69
- linkTarget?: string;
70
- loading?: boolean;
71
- rel?: string;
72
- shapeDesktop?: ShapeProps;
73
- shapeMobile?: ShapeProps;
74
- shapeTablet?: ShapeProps;
59
+ isActive?: boolean;
60
+ isDisabled?: boolean;
61
+ isSkeleton?: boolean;
62
+ onClick?: () => void;
63
+ onMouseEnter?: () => void;
64
+ onMouseLeave?: () => void;
75
65
  showTooltip?: boolean;
76
- sizeDesktop?: IconSizeProps;
77
- sizeMobile?: IconSizeProps;
78
- sizeTablet?: IconSizeProps;
79
66
  style?: CSSProperties;
80
- SvgImage?: any;
81
- target?: string;
82
- tooltipAppearance?: AppearanceKeysDefault;
83
- tooltipContent?: ReactNode;
67
+ text?: string;
68
+ title?: string;
84
69
  tooltipText?: string;
85
- tooltipTextSize?: TextSizeProps;
86
70
  tooltipTitle?: string;
87
- tooltipTitleSize?: TitleSizeProps;
88
71
  type?: string;
89
- width?: string;
90
- isDisabled?: boolean;
91
- onClick?: MouseEventHandler<HTMLDivElement>;
92
- onMouseEnter?: MouseEventHandler<HTMLDivElement>;
93
- onMouseLeave?: MouseEventHandler<HTMLDivElement>;
94
- }
95
- export type { IconThemeColor, IconAppearance, IconConfig, IconProps };
72
+ };
73
+ type IconAppearanceKey = AppearanceKeysDefault | AppearanceShapeKey | AppearanceSizeKey | AppearanceStyleKey;
74
+ type IconAppearance = {
75
+ [key in IconAppearanceKey]?: IconAppearanceProps;
76
+ };
77
+ type IconConfig = {
78
+ appearance: IconAppearance;
79
+ setAppearance: (appearanceConfig: IconAppearance) => void;
80
+ };
81
+ export type { IconAppearanceProps, IconAppearance, IconConfig, IconProps };
@@ -1,23 +1,3 @@
1
- declare const iconAppearanceAccent: {
2
- accent: {
3
- fill: string;
4
- fillHover: string;
5
- borderColor: string;
6
- badgeAppearance: string;
7
- iconFill: string;
8
- };
9
- accentPrimary: {
10
- fill: string;
11
- fillHover: string;
12
- borderColor: string;
13
- badgeAppearance: string;
14
- iconFill: string;
15
- };
16
- accentSecondary: {
17
- fill: string;
18
- fillHover: string;
19
- borderColor: string;
20
- iconFill: string;
21
- };
22
- };
1
+ import { IconAppearanceProps } from '../Icon.interface';
2
+ declare const iconAppearanceAccent: IconAppearanceProps;
23
3
  export { iconAppearanceAccent };
@@ -1,14 +1,3 @@
1
- declare const iconAppearanceDanger: {
2
- danger: {
3
- fill: string;
4
- fillHover: string;
5
- };
6
- dangerPrimary: {
7
- fill: string;
8
- fillHover: string;
9
- borderColor: string;
10
- badgeAppearance: string;
11
- iconFill: string;
12
- };
13
- };
1
+ import { IconAppearanceProps } from '../Icon.interface';
2
+ declare const iconAppearanceDanger: IconAppearanceProps;
14
3
  export { iconAppearanceDanger };
@@ -1,13 +1,3 @@
1
- declare const iconAppearanceDisabled: {
2
- danger: {
3
- fill: string;
4
- fillHover: string;
5
- };
6
- disabledPrimary: {
7
- fill: string;
8
- borderColor: string;
9
- badgeAppearance: string;
10
- iconFill: string;
11
- };
12
- };
1
+ import { IconAppearanceProps } from '../Icon.interface';
2
+ declare const iconAppearanceDisabled: IconAppearanceProps;
13
3
  export { iconAppearanceDisabled };
@@ -1,16 +1,3 @@
1
- declare const iconAppearanceError: {
2
- error: {
3
- fill: string;
4
- fillHover: string;
5
- badgeAppearance: string;
6
- iconFill: string;
7
- };
8
- errorPrimary: {
9
- fill: string;
10
- fillHover: string;
11
- borderColor: string;
12
- badgeAppearance: string;
13
- iconFill: string;
14
- };
15
- };
1
+ import { IconAppearanceProps } from '../Icon.interface';
2
+ declare const iconAppearanceError: IconAppearanceProps;
16
3
  export { iconAppearanceError };
@@ -1,19 +1,3 @@
1
- declare const iconAppearanceInfo: {
2
- info: {
3
- fill: string;
4
- fillHover: string;
5
- borderColor: string;
6
- };
7
- infoPrimary: {
8
- fill: string;
9
- borderColor: string;
10
- badgeAppearance: string;
11
- iconFill: string;
12
- };
13
- infoSecondary: {
14
- fill: string;
15
- fillHover: string;
16
- borderColor: string;
17
- };
18
- };
1
+ import { IconAppearanceProps } from '../Icon.interface';
2
+ declare const iconAppearanceInfo: IconAppearanceProps;
19
3
  export { iconAppearanceInfo };
@@ -1,16 +1,3 @@
1
- declare const iconAppearancePrimary: {
2
- primary: {
3
- fill: string;
4
- fillHover: string;
5
- badgeAppearance: string;
6
- iconFill: string;
7
- };
8
- primaryPrimary: {
9
- fill: string;
10
- fillHover: string;
11
- borderColor: string;
12
- badgeAppearance: string;
13
- iconFill: string;
14
- };
15
- };
1
+ import { IconAppearanceProps } from '../Icon.interface';
2
+ declare const iconAppearancePrimary: IconAppearanceProps;
16
3
  export { iconAppearancePrimary };
@@ -1,14 +1,3 @@
1
- declare const iconAppearanceSecondary: {
2
- secondary: {
3
- fill: string;
4
- fillHover: string;
5
- };
6
- secondaryPrimary: {
7
- fill: string;
8
- fillHover: string;
9
- borderColor: string;
10
- badgeAppearance: string;
11
- iconFill: string;
12
- };
13
- };
1
+ import { IconAppearanceProps } from '../Icon.interface';
2
+ declare const iconAppearanceSecondary: IconAppearanceProps;
14
3
  export { iconAppearanceSecondary };
@@ -1,25 +1,3 @@
1
- declare const iconAppearanceShape: {
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 { IconAppearanceProps } from '../Icon.interface';
2
+ declare const iconAppearanceShape: IconAppearanceProps;
25
3
  export { iconAppearanceShape };