@itcase/ui 1.8.125 → 1.8.127
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.
- package/dist/{Avatar_cjs_AwXEUY8j.js → Avatar_cjs_CLpFeKt-.js} +2 -2
- package/dist/{Avatar_es_BtlaCRc5.js → Avatar_es_BQf7U0hA.js} +2 -2
- package/dist/{Button_cjs_C34BU1BK.js → Button_cjs_D4f7urKp.js} +3 -3
- package/dist/{Button_es_DnlzLBUT.js → Button_es_C7L4CT4f.js} +3 -3
- package/dist/{ChipsGroup_cjs_DfAKN5CA.js → ChipsGroup_cjs_BCdLcqbz.js} +2 -2
- package/dist/{ChipsGroup_es_DBKY2UyF.js → ChipsGroup_es_DMfjXntS.js} +2 -2
- package/dist/{DatePicker_cjs_DfbeIL2m.js → DatePicker_cjs_xV-NFl1J.js} +4 -4
- package/dist/{DatePicker_es_BIJNx427.js → DatePicker_es_Da_ZC57A.js} +4 -4
- package/dist/{DropdownItem_cjs_vHuzXW9M.js → DropdownItem_cjs_DUPMlJr_.js} +2 -2
- package/dist/{DropdownItem_es_DVHWWgnU.js → DropdownItem_es_DbC3VzEL.js} +2 -2
- package/dist/{Icon_cjs_BVLGzj7Y.js → Icon_cjs_DN4Kc8La.js} +5 -5
- package/dist/{Icon_es_DkVkzTha.js → Icon_es_B7IBHqyf.js} +5 -5
- package/dist/{Label_cjs_DwAmukik.js → Label_cjs_D5_n3Yvg.js} +2 -2
- package/dist/{Label_es_B2kcstsG.js → Label_es_Dror143Q.js} +2 -2
- package/dist/{Loader_cjs_DIDsIq3J.js → Loader_cjs_CRiUlTC3.js} +1 -1
- package/dist/{Loader_es_CmSggwbR.js → Loader_es_Dq2-7sn2.js} +1 -1
- package/dist/{Text_cjs_BDTjOTVB.js → Text_cjs_DaH5tVvz.js} +2 -2
- package/dist/{Text_es_CnymlElo.js → Text_es_RDU9GLCV.js} +2 -2
- package/dist/cjs/components/Accordion.js +2 -2
- package/dist/cjs/components/Avatar.js +3 -3
- package/dist/cjs/components/AvatarStack.js +3 -3
- package/dist/cjs/components/Badge.js +2 -2
- package/dist/cjs/components/Breadcrumbs.js +2 -2
- package/dist/cjs/components/Button.js +4 -4
- package/dist/cjs/components/Cell.js +3 -3
- package/dist/cjs/components/Checkbox.js +1 -1
- package/dist/cjs/components/Chips.js +3 -3
- package/dist/cjs/components/Choice.js +3 -3
- package/dist/cjs/components/CookiesWarning.js +4 -4
- package/dist/cjs/components/DatePeriod.js +7 -7
- package/dist/cjs/components/DatePicker.js +6 -6
- package/dist/cjs/components/Drawer.js +2 -2
- package/dist/cjs/components/Dropdown.js +3 -3
- package/dist/cjs/components/HeroTitle.js +2 -2
- package/dist/cjs/components/Icon.js +2 -2
- package/dist/cjs/components/InputPassword.js +2 -2
- package/dist/cjs/components/Label.js +3 -3
- package/dist/cjs/components/Loader.js +2 -2
- package/dist/cjs/components/MenuItem.js +39 -13
- package/dist/cjs/components/Modal.js +6 -6
- package/dist/cjs/components/ModalSheetBottom.js +2 -2
- package/dist/cjs/components/Notification.js +2 -2
- package/dist/cjs/components/Pagination.js +3 -3
- package/dist/cjs/components/Radio.js +1 -1
- package/dist/cjs/components/Response.js +5 -5
- package/dist/cjs/components/Search.js +2 -2
- package/dist/cjs/components/Segmented.js +2 -2
- package/dist/cjs/components/Select.js +3 -3
- package/dist/cjs/components/Swiper.js +2 -2
- package/dist/cjs/components/Switch.js +1 -1
- package/dist/cjs/components/Tab.js +2 -2
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Tile.js +2 -2
- package/dist/cjs/components/Title.js +2 -2
- package/dist/cjs/components/Tooltip.js +2 -2
- package/dist/cjs/components/Warning.js +2 -2
- package/dist/components/Accordion.js +2 -2
- package/dist/components/Avatar.js +3 -3
- package/dist/components/AvatarStack.js +3 -3
- package/dist/components/Badge.js +2 -2
- package/dist/components/Breadcrumbs.js +2 -2
- package/dist/components/Button.js +4 -4
- package/dist/components/Cell.js +3 -3
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Chips.js +3 -3
- package/dist/components/Choice.js +3 -3
- package/dist/components/CookiesWarning.js +4 -4
- package/dist/components/DatePeriod.js +7 -7
- package/dist/components/DatePicker.js +6 -6
- package/dist/components/Drawer.js +2 -2
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/HeroTitle.js +2 -2
- package/dist/components/Icon.js +2 -2
- package/dist/components/InputPassword.js +2 -2
- package/dist/components/Label.js +3 -3
- package/dist/components/Loader.js +2 -2
- package/dist/components/MenuItem.js +39 -13
- package/dist/components/Modal.js +6 -6
- package/dist/components/ModalSheetBottom.js +2 -2
- package/dist/components/Notification.js +2 -2
- package/dist/components/Pagination.js +3 -3
- package/dist/components/Radio.js +1 -1
- package/dist/components/Response.js +5 -5
- package/dist/components/Search.js +2 -2
- package/dist/components/Segmented.js +2 -2
- package/dist/components/Select.js +3 -3
- package/dist/components/Swiper.js +2 -2
- package/dist/components/Switch.js +1 -1
- package/dist/components/Tab.js +2 -2
- package/dist/components/Text.js +1 -1
- package/dist/components/Tile.js +2 -2
- package/dist/components/Title.js +2 -2
- package/dist/components/Tooltip.js +2 -2
- package/dist/components/Warning.js +2 -2
- package/dist/css/components/HeroTitle/HeroTitle.css +0 -1
- package/dist/css/components/Modal/Modal.css +1 -1
- package/dist/css/styles/bundle.css +1 -1
- package/dist/css/styles/centering/centering.css +2 -2
- package/dist/types/components/MenuItem/MenuItem.appearance.d.ts +2496 -2
- package/dist/types/components/MenuItem/MenuItem.interface.d.ts +67 -59
- package/dist/types/components/MenuItem/appearance/menuItemAccent.d.ts +2 -26
- package/dist/types/components/MenuItem/appearance/menuItemError.d.ts +2 -18
- package/dist/types/components/MenuItem/appearance/menuItemShape.d.ts +3 -0
- package/dist/types/components/MenuItem/appearance/menuItemSize.d.ts +2 -44
- package/dist/types/components/MenuItem/appearance/menuItemStyle.d.ts +2 -13
- package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +2 -43
- package/dist/types/components/Modal/Modal.appearance.d.ts +58 -0
- package/dist/types/components/Modal/Modal.d.ts +1 -0
- package/dist/types/components/Modal/Modal.interface.d.ts +1 -0
- package/dist/types/components/Text/Text.appearance.d.ts +58 -58
- package/dist/types/components/Text/Text.interface.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,68 +1,76 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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?:
|
|
18
|
-
fillActiveHover?:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
appearance
|
|
44
|
-
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
-
|
|
2
|
-
|
|
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
|
-
|
|
2
|
-
|
|
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 };
|
|
@@ -1,45 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
|
|
2
|
-
|
|
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
|
-
|
|
2
|
-
|
|
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 };
|