@itcase/ui 1.8.126 → 1.8.128

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 (109) hide show
  1. package/dist/{Avatar_cjs_AwXEUY8j.js → Avatar_cjs_D-M9sW20.js} +2 -2
  2. package/dist/{Avatar_es_BtlaCRc5.js → Avatar_es_BTvbT36l.js} +2 -2
  3. package/dist/{Button_cjs_C34BU1BK.js → Button_cjs_BxoEdSG6.js} +3 -3
  4. package/dist/{Button_es_DnlzLBUT.js → Button_es_B-SYHL6T.js} +3 -3
  5. package/dist/{ChipsGroup_cjs_DfAKN5CA.js → ChipsGroup_cjs_BMkiDYau.js} +2 -2
  6. package/dist/{ChipsGroup_es_DBKY2UyF.js → ChipsGroup_es_Czu95rkL.js} +2 -2
  7. package/dist/{DatePicker_cjs_DfbeIL2m.js → DatePicker_cjs_jhKYHjBs.js} +4 -4
  8. package/dist/{DatePicker_es_BIJNx427.js → DatePicker_es_D2nmwYIx.js} +4 -4
  9. package/dist/{DropdownItem_cjs_vHuzXW9M.js → DropdownItem_cjs_FsiEMPDs.js} +2 -2
  10. package/dist/{DropdownItem_es_DVHWWgnU.js → DropdownItem_es_BBKtNngp.js} +2 -2
  11. package/dist/{Icon_cjs_BVLGzj7Y.js → Icon_cjs_DKzT-zmQ.js} +15 -8
  12. package/dist/{Icon_es_DkVkzTha.js → Icon_es_5JUPM7bP.js} +15 -8
  13. package/dist/{Label_cjs_DwAmukik.js → Label_cjs_D2YMjCoS.js} +2 -2
  14. package/dist/{Label_es_B2kcstsG.js → Label_es_B5uGQwNN.js} +2 -2
  15. package/dist/{Loader_cjs_DIDsIq3J.js → Loader_cjs_CRiUlTC3.js} +1 -1
  16. package/dist/{Loader_es_CmSggwbR.js → Loader_es_Dq2-7sn2.js} +1 -1
  17. package/dist/{Text_cjs_BDTjOTVB.js → Text_cjs_DaH5tVvz.js} +2 -2
  18. package/dist/{Text_es_CnymlElo.js → Text_es_RDU9GLCV.js} +2 -2
  19. package/dist/cjs/components/Accordion.js +2 -2
  20. package/dist/cjs/components/Avatar.js +3 -3
  21. package/dist/cjs/components/AvatarStack.js +3 -3
  22. package/dist/cjs/components/Badge.js +2 -2
  23. package/dist/cjs/components/Breadcrumbs.js +2 -2
  24. package/dist/cjs/components/Button.js +4 -4
  25. package/dist/cjs/components/Cell.js +3 -3
  26. package/dist/cjs/components/Checkbox.js +1 -1
  27. package/dist/cjs/components/Chips.js +3 -3
  28. package/dist/cjs/components/Choice.js +3 -3
  29. package/dist/cjs/components/CookiesWarning.js +4 -4
  30. package/dist/cjs/components/DatePeriod.js +7 -7
  31. package/dist/cjs/components/DatePicker.js +6 -6
  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 +2 -2
  35. package/dist/cjs/components/Icon.js +2 -2
  36. package/dist/cjs/components/InputPassword.js +2 -2
  37. package/dist/cjs/components/Label.js +3 -3
  38. package/dist/cjs/components/Loader.js +2 -2
  39. package/dist/cjs/components/MenuItem.js +47 -16
  40. package/dist/cjs/components/Modal.js +3 -3
  41. package/dist/cjs/components/ModalSheetBottom.js +2 -2
  42. package/dist/cjs/components/Notification.js +2 -2
  43. package/dist/cjs/components/Pagination.js +3 -3
  44. package/dist/cjs/components/Radio.js +1 -1
  45. package/dist/cjs/components/Response.js +4 -4
  46. package/dist/cjs/components/Search.js +2 -2
  47. package/dist/cjs/components/Segmented.js +2 -2
  48. package/dist/cjs/components/Select.js +3 -3
  49. package/dist/cjs/components/Swiper.js +2 -2
  50. package/dist/cjs/components/Switch.js +1 -1
  51. package/dist/cjs/components/Tab.js +2 -2
  52. package/dist/cjs/components/Text.js +1 -1
  53. package/dist/cjs/components/Tile.js +2 -2
  54. package/dist/cjs/components/Title.js +2 -2
  55. package/dist/cjs/components/Tooltip.js +2 -2
  56. package/dist/cjs/components/Warning.js +2 -2
  57. package/dist/components/Accordion.js +2 -2
  58. package/dist/components/Avatar.js +3 -3
  59. package/dist/components/AvatarStack.js +3 -3
  60. package/dist/components/Badge.js +2 -2
  61. package/dist/components/Breadcrumbs.js +2 -2
  62. package/dist/components/Button.js +4 -4
  63. package/dist/components/Cell.js +3 -3
  64. package/dist/components/Checkbox.js +1 -1
  65. package/dist/components/Chips.js +3 -3
  66. package/dist/components/Choice.js +3 -3
  67. package/dist/components/CookiesWarning.js +4 -4
  68. package/dist/components/DatePeriod.js +7 -7
  69. package/dist/components/DatePicker.js +6 -6
  70. package/dist/components/Drawer.js +2 -2
  71. package/dist/components/Dropdown.js +3 -3
  72. package/dist/components/HeroTitle.js +2 -2
  73. package/dist/components/Icon.js +2 -2
  74. package/dist/components/InputPassword.js +2 -2
  75. package/dist/components/Label.js +3 -3
  76. package/dist/components/Loader.js +2 -2
  77. package/dist/components/MenuItem.js +47 -16
  78. package/dist/components/Modal.js +3 -3
  79. package/dist/components/ModalSheetBottom.js +2 -2
  80. package/dist/components/Notification.js +2 -2
  81. package/dist/components/Pagination.js +3 -3
  82. package/dist/components/Radio.js +1 -1
  83. package/dist/components/Response.js +4 -4
  84. package/dist/components/Search.js +2 -2
  85. package/dist/components/Segmented.js +2 -2
  86. package/dist/components/Select.js +3 -3
  87. package/dist/components/Swiper.js +2 -2
  88. package/dist/components/Switch.js +1 -1
  89. package/dist/components/Tab.js +2 -2
  90. package/dist/components/Text.js +1 -1
  91. package/dist/components/Tile.js +2 -2
  92. package/dist/components/Title.js +2 -2
  93. package/dist/components/Tooltip.js +2 -2
  94. package/dist/components/Warning.js +2 -2
  95. package/dist/css/components/MenuItem/MenuItem.css +18 -14
  96. package/dist/css/components/Tooltip/Tooltip.css +1 -1
  97. package/dist/css/styles/bundle.css +1 -1
  98. package/dist/css/styles/centering/centering.css +2 -2
  99. package/dist/types/components/MenuItem/MenuItem.appearance.d.ts +2496 -2
  100. package/dist/types/components/MenuItem/MenuItem.interface.d.ts +67 -59
  101. package/dist/types/components/MenuItem/appearance/menuItemAccent.d.ts +2 -26
  102. package/dist/types/components/MenuItem/appearance/menuItemError.d.ts +2 -18
  103. package/dist/types/components/MenuItem/appearance/menuItemShape.d.ts +3 -0
  104. package/dist/types/components/MenuItem/appearance/menuItemSize.d.ts +2 -44
  105. package/dist/types/components/MenuItem/appearance/menuItemStyle.d.ts +2 -13
  106. package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +2 -43
  107. package/dist/types/components/Text/Text.appearance.d.ts +58 -58
  108. package/dist/types/components/Text/Text.interface.d.ts +1 -1
  109. package/package.json +1 -1
@@ -1,68 +1,76 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
- import { AlignDirectionProps, AlignProps, AppearanceKeysDefault, DirectionProps, FillHoverProps, FillProps, JustifyContentProps, ShapeProps, SizeProps, TextColorActiveProps, TextColorHoverProps, TextColorProps, TextGradientProps, TextSizeProps, TextStyleProps, TextWeightProps, TextWrapProps, UnderlineProps, WidthProps } from '@itcase/types';
2
+ import { AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorProps, CompositeAppearanceSizePxKey, FillActiveHoverProps, FillActiveProps, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, TextSizeProps, TextTagProps } from '@itcase/types';
3
3
  import { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface';
4
- export interface MenuItemThemeColor {
5
- [key: number | string | symbol]: any;
6
- align?: AlignProps;
7
- alignDirection?: AlignDirectionProps;
8
- descTextColor?: TextColorProps;
9
- descTextColorHover?: TextColorHoverProps;
10
- descTextGradient?: TextGradientProps;
11
- descTextSize?: TextSizeProps;
12
- descTextStyle?: TextStyleProps;
13
- descTextWeight?: TextWeightProps;
14
- descTextWrap?: TextWrapProps;
15
- direction?: DirectionProps;
4
+ import { IconProps } from '../Icon/Icon.interface';
5
+ import { TextProps } from '../Text/Text.interface';
6
+ import { TooltipProps } from '../Tooltip/Tooltip.interface';
7
+ type MenuItemAppearanceProps = {
8
+ borderColor?: BorderColorProps;
9
+ cursor?: string;
16
10
  fill?: FillProps;
17
- fillActive?: FillProps;
18
- fillActiveHover?: FillHoverProps;
19
- fillDisabled?: FillProps;
20
- fillHover?: FillHoverProps;
21
- justifyContent?: JustifyContentProps;
22
- linkFill?: FillProps;
11
+ fillActive?: FillActiveProps;
12
+ fillActiveHover?: FillActiveHoverProps;
13
+ fillHover?: FillHoverProps | FillProps;
14
+ iconAfter?: IconProps['SvgImage'];
15
+ iconAfterFill?: IconProps['fill'];
16
+ iconAfterFillIcon?: IconProps['iconFill'] | IconProps['iconFillIcon'];
17
+ iconAfterFillSize?: IconProps['fillSize'];
18
+ iconAfterShape?: IconProps['shape'];
19
+ iconAfterSize?: IconProps['iconSize'];
20
+ iconAfterSrc?: IconProps['imageSrc'];
21
+ iconBadgeShape?: IconProps['badgeShape'];
22
+ iconBadgeSize?: IconProps['badgeSize'];
23
+ iconBadgeTextColor?: IconProps['badgeTextColor'];
24
+ iconBadgeTextSize?: IconProps['badgeTextSize'];
25
+ iconBefore?: IconProps['SvgImage'];
26
+ iconBeforeFill?: IconProps['fill'];
27
+ iconBeforeFillIcon?: IconProps['iconFill'] | IconProps['iconFillIcon'];
28
+ iconBeforeFillSize?: IconProps['fillSize'];
29
+ iconBeforeShape?: IconProps['shape'];
30
+ iconBeforeSize?: IconProps['iconSize'];
31
+ iconBeforeSrc?: IconProps['imageSrc'];
32
+ labelStyle?: TextProps['textStyle'];
33
+ labelTextActiveColor?: TextProps['textColorActive'];
34
+ labelTextActiveHoverColor?: TextProps['textColorActiveHover'];
35
+ labelTextColor?: TextProps['textColor'];
36
+ labelTextColorHover?: TextProps['textColorHover'];
37
+ labelTextSize?: TextProps['size'];
38
+ labelWeight?: TextProps['textWeight'];
39
+ labelWrap?: TextProps['textWrap'];
23
40
  shape?: ShapeProps;
24
- size?: SizeProps;
25
- textColor?: TextColorProps;
26
- textColorActive?: TextColorActiveProps;
27
- textColorGradient?: TextGradientProps;
28
- textColorHover?: TextColorHoverProps;
29
- textGradient?: TextGradientProps;
30
- textSize?: TextSizeProps;
31
- textStyle?: TextStyleProps;
32
- textWeight?: TextWeightProps;
33
- textWrap?: TextWrapProps;
34
- underline?: UnderlineProps;
35
- width?: WidthProps;
36
- }
37
- type AppearanceKeys = AppearanceKeysDefault & {};
38
- export type MenuItemAppearanceType = {
39
- [key in AppearanceKeys]?: MenuItemThemeColor;
41
+ shapeStrength?: ShapeStrengthProps;
42
+ size?: TextSizeProps;
43
+ tooltipFill?: TooltipProps['fill'];
44
+ tooltipShape?: TooltipProps['shape'];
45
+ tooltipShapeStrength?: TooltipProps['shapeStrength'];
46
+ tooltipText?: TooltipProps['shapeStrength'];
47
+ tooltipTextColor?: TooltipProps['textColor'];
48
+ tooltipTitleTextColor?: TooltipProps['titleTextColor'];
40
49
  };
41
- export interface MenuItemConfig {
42
- [key: number | string | symbol]: any;
43
- appearance: MenuItemAppearanceType | undefined;
44
- setAppearance: (newComponent: MenuItemAppearanceType) => void;
45
- }
46
- export interface MenuItemProps extends MenuItemThemeColor, StyleAttributes {
47
- [key: number | string | symbol]: any;
48
- after?: ReactNode;
49
- appearance?: AppearanceKeys;
50
- before?: ReactNode;
50
+ type MenuItemProps = MenuItemAppearanceProps & StyleAttributes & {
51
+ after?: string;
52
+ appearance?: CompositeAppearanceSizePxKey;
53
+ before?: string;
51
54
  children?: ReactNode;
52
55
  className?: string;
53
- desc?: string;
54
- href?: string;
55
- label?: string;
56
- link?: string;
57
- rel?: string;
58
- showTooltip: boolean;
59
- style?: CSSProperties;
60
- target?: string;
61
- type?: string;
62
- isActive?: undefined;
63
- isHover?: boolean;
56
+ dataTestId?: string;
57
+ dataTour?: string;
58
+ htmlFor?: string;
59
+ iconBadgeValue?: IconProps['badgeValue'];
60
+ isActive: boolean;
61
+ isDisabled?: boolean;
64
62
  isSkeleton?: boolean;
65
63
  onClick?: () => void;
66
- set?: string;
67
- }
68
- export {};
64
+ onDoubleClick?: () => void;
65
+ style?: CSSProperties;
66
+ tag: TextTagProps;
67
+ };
68
+ type MenuItemAppearanceKey = AppearanceKeysDefault | AppearanceShapeKey | AppearanceSizeKey | AppearanceStyleKey;
69
+ type MenuItemAppearance = {
70
+ [key in MenuItemAppearanceKey]?: MenuItemAppearanceProps;
71
+ };
72
+ type MenuItemConfig = {
73
+ appearance: MenuItemAppearance;
74
+ setAppearance: (appearanceConfig: MenuItemAppearance) => void;
75
+ };
76
+ export type { MenuItemAppearance, MenuItemConfig, MenuItemProps };
@@ -1,27 +1,3 @@
1
- declare const menuItemAppearanceAccent: {
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
- fillHover: string;
13
- labelTextColor: string;
14
- borderColor: string;
15
- iconAfterFillIcon: string;
16
- iconBeforeFillIcon: string;
17
- };
18
- accentSecondary: {
19
- fill: string;
20
- fillHover: string;
21
- labelTextColor: string;
22
- labelTextColorHover: string;
23
- iconAfterFillIcon: string;
24
- iconBeforeFillIcon: string;
25
- };
26
- };
1
+ import { MenuItemAppearance } from '../MenuItem.interface';
2
+ declare const menuItemAppearanceAccent: MenuItemAppearance;
27
3
  export { menuItemAppearanceAccent };
@@ -1,19 +1,3 @@
1
- declare const menuItemAppearanceError: {
2
- errorMutedPrimary: {
3
- fill: string;
4
- labelTextColor: string;
5
- labelTextColorHover: string;
6
- iconAfterFillIcon: string;
7
- iconBeforeFillIcon: string;
8
- };
9
- errorPrimary: {
10
- fill: string;
11
- fillHover: string;
12
- labelTextColor: string;
13
- labelTextColorHover: string;
14
- borderColor: string;
15
- iconAfterFillIcon: string;
16
- iconBeforeFillIcon: string;
17
- };
18
- };
1
+ import { MenuItemAppearance } from '../MenuItem.interface';
2
+ declare const menuItemAppearanceError: MenuItemAppearance;
19
3
  export { menuItemAppearanceError };
@@ -0,0 +1,3 @@
1
+ import { MenuItemAppearance } from '../MenuItem.interface';
2
+ declare const menuItemAppearanceShape: MenuItemAppearance;
3
+ export { menuItemAppearanceShape };
@@ -1,45 +1,3 @@
1
- declare const menuItemAppearanceSize: {
2
- sizeXXL: {
3
- size: string;
4
- labelTextSize: string;
5
- iconAfterSize: string;
6
- iconBeforeSize: string;
7
- };
8
- sizeXL: {
9
- size: string;
10
- labelTextSize: string;
11
- iconAfterSize: string;
12
- iconBeforeSize: string;
13
- };
14
- sizeL: {
15
- size: string;
16
- labelTextSize: string;
17
- iconAfterSize: string;
18
- iconBeforeSize: string;
19
- };
20
- sizeM: {
21
- size: string;
22
- labelTextSize: string;
23
- iconAfterSize: string;
24
- iconBeforeSize: string;
25
- };
26
- sizeS: {
27
- size: string;
28
- labelTextSize: string;
29
- iconAfterSize: string;
30
- iconBeforeSize: string;
31
- };
32
- sizeXS: {
33
- size: string;
34
- labelTextSize: string;
35
- iconAfterSize: string;
36
- iconBeforeSize: string;
37
- };
38
- sizeXXS: {
39
- size: string;
40
- labelTextSize: string;
41
- iconAfterSize: string;
42
- iconBeforeSize: string;
43
- };
44
- };
1
+ import { MenuItemAppearance } from '../MenuItem.interface';
2
+ declare const menuItemAppearanceSize: MenuItemAppearance;
45
3
  export { menuItemAppearanceSize };
@@ -1,14 +1,3 @@
1
- declare const menuItemAppearanceStyle: {
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 { MenuItemAppearance } from '../MenuItem.interface';
2
+ declare const menuItemAppearanceStyle: MenuItemAppearance;
14
3
  export { menuItemAppearanceStyle };
@@ -1,44 +1,3 @@
1
- declare const menuItemAppearanceSurface: {
2
- surfaceMutedPrimary: {
3
- fill: string;
4
- fillActive: string;
5
- fillActiveHover: string;
6
- labelTextColor: string;
7
- iconAfterFillIcon: string;
8
- iconBeforeFillIcon: string;
9
- };
10
- surfacePrimary: {
11
- fill: string;
12
- fillActive: string;
13
- fillActiveHover: string;
14
- fillHover: string;
15
- labelTextActiveColor: string;
16
- labelTextActiveHoverColor: string;
17
- labelTextColor: string;
18
- labelTextHoverColor: string;
19
- borderColor: string;
20
- iconAfterFillIcon: string;
21
- iconBeforeFillIcon: string;
22
- };
23
- surfaceSecondary: {
24
- fill: string;
25
- fillActive: string;
26
- fillActiveHover: string;
27
- fillHover: string;
28
- labelTextColor: string;
29
- borderColor: string;
30
- iconAfterFillIcon: string;
31
- iconBeforeFillIcon: string;
32
- };
33
- surfaceTertiary: {
34
- fill: string;
35
- fillHover: string;
36
- labelTextColor: string;
37
- };
38
- surfaceQuaternary: {
39
- fill: string;
40
- fillHover: string;
41
- labelTextColor: string;
42
- };
43
- };
1
+ import { MenuItemAppearance } from '../MenuItem.interface';
2
+ declare const menuItemAppearanceSurface: MenuItemAppearance;
44
3
  export { menuItemAppearanceSurface };