@everlywell/ui-kit 0.0.1-alpha.1
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 +15 -0
- package/index.d.ts +15 -0
- package/index.js +104 -0
- package/index.mjs +3055 -0
- 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/actions/Button/Button.config.d.ts +95 -0
- package/lib/theme/actions/Button/Button.d.ts +3 -0
- 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 +96 -0
- package/lib/theme/index.d.ts +659 -0
- 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 +23 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Fonts';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ThemeProvider';
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { StyleFunctionProps } from '@chakra-ui/react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
baseStyle?: {
|
|
4
|
+
fontWeight: string;
|
|
5
|
+
lineHeight: string;
|
|
6
|
+
letterSpacing: string;
|
|
7
|
+
borderRadius: string;
|
|
8
|
+
_disabled: {
|
|
9
|
+
span: {
|
|
10
|
+
display: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
} | undefined;
|
|
14
|
+
sizes?: {
|
|
15
|
+
sm: {
|
|
16
|
+
fontSize: ("md" | "lg")[];
|
|
17
|
+
px: number[];
|
|
18
|
+
py: number[];
|
|
19
|
+
'&:has(> svg:only-child)': {
|
|
20
|
+
px: number;
|
|
21
|
+
py: number;
|
|
22
|
+
svg: {
|
|
23
|
+
fontSize: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
svg: {
|
|
27
|
+
fontSize: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
md: {
|
|
31
|
+
fontSize: ("lg" | "xl")[];
|
|
32
|
+
px: number[];
|
|
33
|
+
py: number[];
|
|
34
|
+
'&:has(> svg:only-child)': {
|
|
35
|
+
px: number[];
|
|
36
|
+
py: number[];
|
|
37
|
+
};
|
|
38
|
+
svg: {
|
|
39
|
+
fontSize: ("1.5rem" | "1.25rem")[];
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
wide: {
|
|
43
|
+
fontSize: string;
|
|
44
|
+
px: number;
|
|
45
|
+
py: number;
|
|
46
|
+
width: string;
|
|
47
|
+
'&:has(> svg:only-child)': {
|
|
48
|
+
px: number;
|
|
49
|
+
py: number;
|
|
50
|
+
};
|
|
51
|
+
svg: {
|
|
52
|
+
fontSize: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
} | undefined;
|
|
56
|
+
variants?: {
|
|
57
|
+
primary: (props: StyleFunctionProps) => {
|
|
58
|
+
bg: string;
|
|
59
|
+
color: string;
|
|
60
|
+
':hover, &.hover': {
|
|
61
|
+
bg: string;
|
|
62
|
+
};
|
|
63
|
+
':active, &.active': {
|
|
64
|
+
bg: string;
|
|
65
|
+
};
|
|
66
|
+
':disabled': {
|
|
67
|
+
bg: string;
|
|
68
|
+
color: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
secondary: (props: StyleFunctionProps) => {
|
|
72
|
+
color: string;
|
|
73
|
+
boxShadow: (theme: Record<string, any>) => string;
|
|
74
|
+
':hover, &.hover': {
|
|
75
|
+
color: string;
|
|
76
|
+
boxShadow: (theme: Record<string, any>) => string;
|
|
77
|
+
};
|
|
78
|
+
':active, &.active': {
|
|
79
|
+
color: string;
|
|
80
|
+
boxShadow: (theme: Record<string, any>) => string;
|
|
81
|
+
};
|
|
82
|
+
':disabled': {
|
|
83
|
+
color: string;
|
|
84
|
+
boxShadow: (theme: Record<string, any>) => string;
|
|
85
|
+
opacity: number;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
} | undefined;
|
|
89
|
+
defaultProps?: {
|
|
90
|
+
size?: "wide" | "sm" | "md" | undefined;
|
|
91
|
+
variant?: "primary" | "secondary" | undefined;
|
|
92
|
+
colorScheme?: string | undefined;
|
|
93
|
+
} | undefined;
|
|
94
|
+
};
|
|
95
|
+
export default _default;
|
|
@@ -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;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
declare const colors: {
|
|
2
|
+
white: {
|
|
3
|
+
base: string;
|
|
4
|
+
50: string;
|
|
5
|
+
100: string;
|
|
6
|
+
200: string;
|
|
7
|
+
300: string;
|
|
8
|
+
400: string;
|
|
9
|
+
500: string;
|
|
10
|
+
600: string;
|
|
11
|
+
700: string;
|
|
12
|
+
800: string;
|
|
13
|
+
900: string;
|
|
14
|
+
};
|
|
15
|
+
tints: {
|
|
16
|
+
black: string;
|
|
17
|
+
darkGrey: string;
|
|
18
|
+
uiGrey: string;
|
|
19
|
+
medGrey: string;
|
|
20
|
+
lightGrey: string;
|
|
21
|
+
darkCream: string;
|
|
22
|
+
cream: string;
|
|
23
|
+
lightCream: string;
|
|
24
|
+
white: string;
|
|
25
|
+
};
|
|
26
|
+
viridian: {
|
|
27
|
+
50: string;
|
|
28
|
+
100: string;
|
|
29
|
+
200: string;
|
|
30
|
+
300: string;
|
|
31
|
+
400: string;
|
|
32
|
+
500: string;
|
|
33
|
+
600: string;
|
|
34
|
+
700: string;
|
|
35
|
+
800: string;
|
|
36
|
+
900: string;
|
|
37
|
+
dark: string;
|
|
38
|
+
base: string;
|
|
39
|
+
light: string;
|
|
40
|
+
lighter: string;
|
|
41
|
+
wash: string;
|
|
42
|
+
};
|
|
43
|
+
sunshine: {
|
|
44
|
+
dark: string;
|
|
45
|
+
base: string;
|
|
46
|
+
light: string;
|
|
47
|
+
lighter: string;
|
|
48
|
+
wash: string;
|
|
49
|
+
};
|
|
50
|
+
terracotta: {
|
|
51
|
+
50: string;
|
|
52
|
+
100: string;
|
|
53
|
+
200: string;
|
|
54
|
+
300: string;
|
|
55
|
+
400: string;
|
|
56
|
+
500: string;
|
|
57
|
+
600: string;
|
|
58
|
+
700: string;
|
|
59
|
+
800: string;
|
|
60
|
+
900: string;
|
|
61
|
+
dark: string;
|
|
62
|
+
base: string;
|
|
63
|
+
light: string;
|
|
64
|
+
lighter: string;
|
|
65
|
+
wash: string;
|
|
66
|
+
};
|
|
67
|
+
violet: {
|
|
68
|
+
dark: string;
|
|
69
|
+
base: string;
|
|
70
|
+
light: string;
|
|
71
|
+
lighter: string;
|
|
72
|
+
wash: string;
|
|
73
|
+
};
|
|
74
|
+
eggplant: {
|
|
75
|
+
dark: string;
|
|
76
|
+
base: string;
|
|
77
|
+
light: string;
|
|
78
|
+
lighter: string;
|
|
79
|
+
wash: string;
|
|
80
|
+
};
|
|
81
|
+
moonlight: {
|
|
82
|
+
dark: string;
|
|
83
|
+
base: string;
|
|
84
|
+
light: string;
|
|
85
|
+
lighter: string;
|
|
86
|
+
wash: string;
|
|
87
|
+
};
|
|
88
|
+
sky: {
|
|
89
|
+
dark: string;
|
|
90
|
+
base: string;
|
|
91
|
+
light: string;
|
|
92
|
+
lighter: string;
|
|
93
|
+
wash: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
export default colors;
|