@everlywell/ui-kit 0.0.2 → 0.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/index.d.mts +13 -2
- package/index.d.ts +13 -2
- package/index.js +104 -1
- package/index.mjs +2927 -181
- package/lib/components/Fonts/Fonts.d.ts +2 -0
- package/lib/components/Fonts/index.d.ts +1 -0
- package/lib/components/ThemeProvider/ThemeProvider.d.ts +5 -0
- package/lib/components/ThemeProvider/index.d.ts +1 -0
- package/lib/theme/{forms/Button/config.d.ts → actions/Button/Button.config.d.ts} +26 -14
- package/lib/theme/actions/IconButton/IconButton.d.ts +11 -0
- package/lib/theme/actions/Menu/Menu.config.d.ts +92 -0
- package/lib/theme/actions/Menu/Menu.d.ts +3 -0
- package/lib/theme/foundations/colors.d.ts +39 -50
- package/lib/theme/index.d.ts +429 -112
- package/lib/theme/layout/Box/Box.d.ts +3 -0
- package/lib/theme/layout/Grid/Grid.d.ts +48 -0
- package/lib/theme/layout/Grid/GridItem.d.ts +5 -0
- package/lib/theme/layout/Grid/index.d.ts +2 -0
- package/lib/theme/layout/Show-Hide/Show-Hide.d.ts +5 -0
- package/lib/theme/media/Icon/Icon.config.d.ts +21 -0
- package/lib/theme/media/Icon/Icon.d.ts +14 -0
- package/lib/theme/navigation/Link/Link.config.d.ts +31 -0
- package/lib/theme/navigation/Link/Link.d.ts +3 -0
- package/lib/theme/overlay/Drawer/Drawer.config.d.ts +72 -0
- package/lib/theme/overlay/Drawer/Drawer.d.ts +3 -0
- package/lib/theme/typography/Heading/Heading.config.d.ts +48 -0
- package/lib/theme/typography/Heading/Heading.d.ts +3 -0
- package/lib/theme/typography/Text/Text.config.d.ts +37 -0
- package/lib/theme/typography/Text/Text.d.ts +3 -0
- package/package.json +12 -1
- /package/lib/theme/{forms → actions}/Button/Button.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Fonts';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ThemeProvider';
|
|
@@ -13,21 +13,30 @@ declare const _default: {
|
|
|
13
13
|
} | undefined;
|
|
14
14
|
sizes?: {
|
|
15
15
|
sm: {
|
|
16
|
-
fontSize:
|
|
16
|
+
fontSize: ("md" | "lg")[];
|
|
17
17
|
px: number[];
|
|
18
18
|
py: number[];
|
|
19
|
-
'
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
'&:has(> svg:only-child)': {
|
|
20
|
+
px: number;
|
|
21
|
+
py: number;
|
|
22
|
+
svg: {
|
|
23
|
+
fontSize: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
svg: {
|
|
27
|
+
fontSize: string;
|
|
22
28
|
};
|
|
23
29
|
};
|
|
24
30
|
md: {
|
|
25
|
-
fontSize:
|
|
31
|
+
fontSize: ("lg" | "xl")[];
|
|
26
32
|
px: number[];
|
|
27
33
|
py: number[];
|
|
34
|
+
'&:has(> svg:only-child)': {
|
|
35
|
+
px: number[];
|
|
36
|
+
py: number[];
|
|
37
|
+
};
|
|
28
38
|
svg: {
|
|
29
|
-
|
|
30
|
-
height: ("1.25rem" | "1.5rem")[];
|
|
39
|
+
fontSize: ("1.5rem" | "1.25rem")[];
|
|
31
40
|
};
|
|
32
41
|
};
|
|
33
42
|
wide: {
|
|
@@ -35,14 +44,17 @@ declare const _default: {
|
|
|
35
44
|
px: number;
|
|
36
45
|
py: number;
|
|
37
46
|
width: string;
|
|
38
|
-
'
|
|
39
|
-
|
|
40
|
-
|
|
47
|
+
'&:has(> svg:only-child)': {
|
|
48
|
+
px: number;
|
|
49
|
+
py: number;
|
|
50
|
+
};
|
|
51
|
+
svg: {
|
|
52
|
+
fontSize: string;
|
|
41
53
|
};
|
|
42
54
|
};
|
|
43
55
|
} | undefined;
|
|
44
56
|
variants?: {
|
|
45
|
-
|
|
57
|
+
primary: (props: StyleFunctionProps) => {
|
|
46
58
|
bg: string;
|
|
47
59
|
color: string;
|
|
48
60
|
':hover, &.hover': {
|
|
@@ -56,7 +68,7 @@ declare const _default: {
|
|
|
56
68
|
color: string;
|
|
57
69
|
};
|
|
58
70
|
};
|
|
59
|
-
|
|
71
|
+
secondary: (props: StyleFunctionProps) => {
|
|
60
72
|
color: string;
|
|
61
73
|
boxShadow: (theme: Record<string, any>) => string;
|
|
62
74
|
':hover, &.hover': {
|
|
@@ -75,8 +87,8 @@ declare const _default: {
|
|
|
75
87
|
};
|
|
76
88
|
} | undefined;
|
|
77
89
|
defaultProps?: {
|
|
78
|
-
size?: "
|
|
79
|
-
variant?: "
|
|
90
|
+
size?: "wide" | "sm" | "md" | undefined;
|
|
91
|
+
variant?: "primary" | "secondary" | undefined;
|
|
80
92
|
colorScheme?: string | undefined;
|
|
81
93
|
} | undefined;
|
|
82
94
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IconButtonProps as ChakraIconButtonProps, ThemingProps } from '@chakra-ui/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ICON_SET, IconKey } from '../../media/Icon/Icon';
|
|
4
|
+
export type IconButtonProps = Omit<ChakraIconButtonProps, 'icon'> & ThemingProps<'IconButton'> & {
|
|
5
|
+
icon: IconKey;
|
|
6
|
+
};
|
|
7
|
+
declare const IconButton: React.ForwardRefExoticComponent<Omit<ChakraIconButtonProps, "icon"> & ThemingProps<"IconButton"> & {
|
|
8
|
+
icon: IconKey;
|
|
9
|
+
} & React.RefAttributes<unknown>>;
|
|
10
|
+
export { ICON_SET };
|
|
11
|
+
export default IconButton;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
baseStyle?: {
|
|
3
|
+
button: {};
|
|
4
|
+
list: {
|
|
5
|
+
boxShadow: string;
|
|
6
|
+
backgroundColor: string;
|
|
7
|
+
border: string;
|
|
8
|
+
borderColor: string;
|
|
9
|
+
borderRadius: string;
|
|
10
|
+
};
|
|
11
|
+
item: {
|
|
12
|
+
fontWeight: string;
|
|
13
|
+
lineHeight: string;
|
|
14
|
+
color: string;
|
|
15
|
+
_hover: {
|
|
16
|
+
backgroundColor: string;
|
|
17
|
+
};
|
|
18
|
+
_disabled: {
|
|
19
|
+
backgroundColor: string;
|
|
20
|
+
color: string;
|
|
21
|
+
cursor: string;
|
|
22
|
+
};
|
|
23
|
+
_first: {
|
|
24
|
+
borderTopRadius: string;
|
|
25
|
+
};
|
|
26
|
+
_last: {
|
|
27
|
+
borderBottomRadius: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
groupTitle: {
|
|
31
|
+
color: string;
|
|
32
|
+
letterSpacing: string;
|
|
33
|
+
};
|
|
34
|
+
command: {
|
|
35
|
+
color: string;
|
|
36
|
+
};
|
|
37
|
+
divider: {
|
|
38
|
+
borderColor: string;
|
|
39
|
+
borderBottom: string;
|
|
40
|
+
};
|
|
41
|
+
} | undefined;
|
|
42
|
+
sizes?: {
|
|
43
|
+
sm: {
|
|
44
|
+
button: {};
|
|
45
|
+
item: {
|
|
46
|
+
fontSize: ("2xs" | "sm")[];
|
|
47
|
+
paddingY: string;
|
|
48
|
+
paddingX: string;
|
|
49
|
+
};
|
|
50
|
+
groupTitle: {
|
|
51
|
+
fontSize: ("md" | "lg")[];
|
|
52
|
+
paddingY: string;
|
|
53
|
+
paddingX: string;
|
|
54
|
+
};
|
|
55
|
+
divider: {
|
|
56
|
+
marginY: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
md: {
|
|
60
|
+
item: {
|
|
61
|
+
fontSize: ("3xs" | "lg")[];
|
|
62
|
+
paddingY: string;
|
|
63
|
+
paddingX: string;
|
|
64
|
+
};
|
|
65
|
+
groupTitle: {
|
|
66
|
+
fontSize: ("lg" | "xl")[];
|
|
67
|
+
paddingY: string;
|
|
68
|
+
paddingX: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
lg: {
|
|
72
|
+
item: {
|
|
73
|
+
fontSize: ("xl" | "2xl")[];
|
|
74
|
+
paddingX: string;
|
|
75
|
+
paddingY: string;
|
|
76
|
+
};
|
|
77
|
+
groupTitle: {
|
|
78
|
+
fontSize: ("3xl" | "4xl")[];
|
|
79
|
+
paddingX: string;
|
|
80
|
+
paddingY: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
} | undefined;
|
|
84
|
+
variants?: {} | undefined;
|
|
85
|
+
defaultProps?: {
|
|
86
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
87
|
+
variant?: undefined;
|
|
88
|
+
colorScheme?: string | undefined;
|
|
89
|
+
} | undefined;
|
|
90
|
+
parts: ("button" | "list" | "item" | "groupTitle" | "command" | "divider")[];
|
|
91
|
+
};
|
|
92
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Menu } from '@chakra-ui/react';
|
|
2
|
+
export { Menu, type MenuProps, MenuCommand, type MenuCommandProps, MenuButton, type MenuButtonProps, MenuList, type MenuListProps, MenuItem, type MenuItemProps, MenuItemOption, type MenuItemOptionProps, MenuGroup, type MenuGroupProps, MenuOptionGroup, type MenuOptionGroupProps, MenuDivider, type MenuDividerProps, } from '@chakra-ui/react';
|
|
3
|
+
export default Menu;
|
|
@@ -12,29 +12,18 @@ declare const colors: {
|
|
|
12
12
|
800: string;
|
|
13
13
|
900: string;
|
|
14
14
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
50: string;
|
|
18
|
-
100: string;
|
|
19
|
-
200: string;
|
|
20
|
-
300: string;
|
|
21
|
-
400: string;
|
|
22
|
-
500: string;
|
|
23
|
-
600: string;
|
|
24
|
-
700: string;
|
|
25
|
-
800: string;
|
|
26
|
-
900: string;
|
|
27
|
-
};
|
|
28
|
-
grayscale: {
|
|
15
|
+
tints: {
|
|
16
|
+
black: string;
|
|
29
17
|
darkGrey: string;
|
|
30
|
-
|
|
31
|
-
|
|
18
|
+
uiGrey: string;
|
|
19
|
+
medGrey: string;
|
|
32
20
|
lightGrey: string;
|
|
33
21
|
darkCream: string;
|
|
34
22
|
cream: string;
|
|
35
23
|
lightCream: string;
|
|
24
|
+
white: string;
|
|
36
25
|
};
|
|
37
|
-
|
|
26
|
+
viridian: {
|
|
38
27
|
50: string;
|
|
39
28
|
100: string;
|
|
40
29
|
200: string;
|
|
@@ -45,20 +34,20 @@ declare const colors: {
|
|
|
45
34
|
700: string;
|
|
46
35
|
800: string;
|
|
47
36
|
900: string;
|
|
48
|
-
wash: string;
|
|
49
|
-
lighter: string;
|
|
50
|
-
light: string;
|
|
51
|
-
base: string;
|
|
52
37
|
dark: string;
|
|
53
|
-
};
|
|
54
|
-
yellow: {
|
|
55
|
-
wash: string;
|
|
56
|
-
lighter: string;
|
|
57
|
-
light: string;
|
|
58
38
|
base: string;
|
|
39
|
+
light: string;
|
|
40
|
+
lighter: string;
|
|
41
|
+
wash: string;
|
|
42
|
+
};
|
|
43
|
+
sunshine: {
|
|
59
44
|
dark: string;
|
|
45
|
+
base: string;
|
|
46
|
+
light: string;
|
|
47
|
+
lighter: string;
|
|
48
|
+
wash: string;
|
|
60
49
|
};
|
|
61
|
-
|
|
50
|
+
terracotta: {
|
|
62
51
|
50: string;
|
|
63
52
|
100: string;
|
|
64
53
|
200: string;
|
|
@@ -69,39 +58,39 @@ declare const colors: {
|
|
|
69
58
|
700: string;
|
|
70
59
|
800: string;
|
|
71
60
|
900: string;
|
|
72
|
-
wash: string;
|
|
73
|
-
lighter: string;
|
|
74
|
-
light: string;
|
|
75
|
-
base: string;
|
|
76
61
|
dark: string;
|
|
77
|
-
};
|
|
78
|
-
lightBlue: {
|
|
79
|
-
wash: string;
|
|
80
|
-
lighter: string;
|
|
81
|
-
light: string;
|
|
82
62
|
base: string;
|
|
83
|
-
dark: string;
|
|
84
|
-
};
|
|
85
|
-
blue: {
|
|
86
|
-
wash: string;
|
|
87
|
-
lighter: string;
|
|
88
63
|
light: string;
|
|
89
|
-
base: string;
|
|
90
|
-
dark: string;
|
|
91
|
-
};
|
|
92
|
-
indigo: {
|
|
93
|
-
wash: string;
|
|
94
64
|
lighter: string;
|
|
95
|
-
|
|
96
|
-
base: string;
|
|
97
|
-
dark: string;
|
|
65
|
+
wash: string;
|
|
98
66
|
};
|
|
99
67
|
violet: {
|
|
100
|
-
|
|
68
|
+
dark: string;
|
|
69
|
+
base: string;
|
|
70
|
+
light: string;
|
|
101
71
|
lighter: string;
|
|
72
|
+
wash: string;
|
|
73
|
+
};
|
|
74
|
+
eggplant: {
|
|
75
|
+
dark: string;
|
|
76
|
+
base: string;
|
|
102
77
|
light: string;
|
|
78
|
+
lighter: string;
|
|
79
|
+
wash: string;
|
|
80
|
+
};
|
|
81
|
+
moonlight: {
|
|
82
|
+
dark: string;
|
|
103
83
|
base: string;
|
|
84
|
+
light: string;
|
|
85
|
+
lighter: string;
|
|
86
|
+
wash: string;
|
|
87
|
+
};
|
|
88
|
+
sky: {
|
|
104
89
|
dark: string;
|
|
90
|
+
base: string;
|
|
91
|
+
light: string;
|
|
92
|
+
lighter: string;
|
|
93
|
+
wash: string;
|
|
105
94
|
};
|
|
106
95
|
};
|
|
107
96
|
export default colors;
|