@gataca/design-system 1.0.35 → 1.1.0
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/components/index.web.d.ts +1 -0
- package/dist/components/web/Menus/MenuItem/MenuItem.web.d.ts +4 -0
- package/dist/components/web/Menus/MenuItem/MenuItem_styles.web.d.ts +21 -0
- package/dist/components/web/Menus/MenuItem/MenuItem_types.web.d.ts +55 -0
- package/dist/components/web/Menus/MenuItem/index.web.d.ts +2 -0
- package/dist/index.web.js +1 -1
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
|
@@ -27,6 +27,7 @@ export { default as Alert } from './web/Alerts/Alert/index.web';
|
|
|
27
27
|
export { default as Tooltip } from './web/Tooltips/Tooltip/index.web';
|
|
28
28
|
export { default as Popover } from './web/Popover/index.web';
|
|
29
29
|
export { default as TextField } from './web/TextField/TextField/index.web';
|
|
30
|
+
export { default as MenuItem } from './web/Menus/MenuItem/index.web';
|
|
30
31
|
export { default as IconGroup } from './web/Icons/IconGroup/index.web';
|
|
31
32
|
export { default as Illustration } from './web/Illustrations/index.web';
|
|
32
33
|
export { default as GatacaLogoHorIcon } from './web/Icons/icons/brand/gatacaLogoHor';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const styles: () => {
|
|
3
|
+
menuItem: React.CSSProperties;
|
|
4
|
+
menuItem__left: {
|
|
5
|
+
display: string;
|
|
6
|
+
flexDirection: "row";
|
|
7
|
+
gap: number;
|
|
8
|
+
justifyContent: "space-between";
|
|
9
|
+
alignItems: "center";
|
|
10
|
+
flex: number;
|
|
11
|
+
};
|
|
12
|
+
menuItem__right: {
|
|
13
|
+
display: string;
|
|
14
|
+
flexDirection: "row";
|
|
15
|
+
gap: number;
|
|
16
|
+
justifyContent: "space-between";
|
|
17
|
+
alignItems: "center";
|
|
18
|
+
marginLeft: string;
|
|
19
|
+
};
|
|
20
|
+
title: React.CSSProperties;
|
|
21
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ChipProps } from '../../Chips/Chip/Chip.types.web';
|
|
2
|
+
import { IconSize, IconStyle } from '../../Icons/icon_types';
|
|
3
|
+
import { IndicatorProps } from '../../Indicator/Indicator/indicator_types.web';
|
|
4
|
+
export type MenuItemState = 'enable' | 'active' | 'disable' | 'hover';
|
|
5
|
+
export type MenuItemType = 'main' | 'sub-menu';
|
|
6
|
+
export interface MenuItemProps {
|
|
7
|
+
id?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
state: MenuItemState;
|
|
10
|
+
type: MenuItemType;
|
|
11
|
+
title: string;
|
|
12
|
+
leadingIcon?: {
|
|
13
|
+
Icon: React.FC<{
|
|
14
|
+
size: IconSize;
|
|
15
|
+
color: string;
|
|
16
|
+
style: IconStyle;
|
|
17
|
+
}>;
|
|
18
|
+
size?: IconSize;
|
|
19
|
+
color?: string;
|
|
20
|
+
style?: IconStyle;
|
|
21
|
+
};
|
|
22
|
+
warningIcon?: {
|
|
23
|
+
Icon: React.FC<{
|
|
24
|
+
size: IconSize;
|
|
25
|
+
style: IconStyle;
|
|
26
|
+
color: string;
|
|
27
|
+
}>;
|
|
28
|
+
size?: IconSize;
|
|
29
|
+
style?: IconStyle;
|
|
30
|
+
color?: string;
|
|
31
|
+
};
|
|
32
|
+
indicator?: IndicatorProps;
|
|
33
|
+
chip?: ChipProps;
|
|
34
|
+
trailingIcon?: {
|
|
35
|
+
Icon: React.FC<{
|
|
36
|
+
size: IconSize;
|
|
37
|
+
color: string;
|
|
38
|
+
}>;
|
|
39
|
+
size?: IconSize;
|
|
40
|
+
color?: string;
|
|
41
|
+
};
|
|
42
|
+
containerStyle?: any;
|
|
43
|
+
}
|
|
44
|
+
export declare enum stateLeadingIconColors {
|
|
45
|
+
'enable' = "neutral1000",
|
|
46
|
+
'active' = "primary700",
|
|
47
|
+
'disable' = "neutral700",
|
|
48
|
+
'hover' = "neutral1000"
|
|
49
|
+
}
|
|
50
|
+
export declare enum backgroundColorByState {
|
|
51
|
+
'enable' = "neutral100",
|
|
52
|
+
'active' = "primary100",
|
|
53
|
+
'disable' = "neutral100",
|
|
54
|
+
'hover' = "neutral200"
|
|
55
|
+
}
|