@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.
Files changed (31) hide show
  1. package/index.d.mts +15 -0
  2. package/index.d.ts +15 -0
  3. package/index.js +104 -0
  4. package/index.mjs +3055 -0
  5. package/lib/components/Fonts/Fonts.d.ts +2 -0
  6. package/lib/components/Fonts/index.d.ts +1 -0
  7. package/lib/components/ThemeProvider/ThemeProvider.d.ts +5 -0
  8. package/lib/components/ThemeProvider/index.d.ts +1 -0
  9. package/lib/theme/actions/Button/Button.config.d.ts +95 -0
  10. package/lib/theme/actions/Button/Button.d.ts +3 -0
  11. package/lib/theme/actions/IconButton/IconButton.d.ts +11 -0
  12. package/lib/theme/actions/Menu/Menu.config.d.ts +92 -0
  13. package/lib/theme/actions/Menu/Menu.d.ts +3 -0
  14. package/lib/theme/foundations/colors.d.ts +96 -0
  15. package/lib/theme/index.d.ts +659 -0
  16. package/lib/theme/layout/Box/Box.d.ts +3 -0
  17. package/lib/theme/layout/Grid/Grid.d.ts +48 -0
  18. package/lib/theme/layout/Grid/GridItem.d.ts +5 -0
  19. package/lib/theme/layout/Grid/index.d.ts +2 -0
  20. package/lib/theme/layout/Show-Hide/Show-Hide.d.ts +5 -0
  21. package/lib/theme/media/Icon/Icon.config.d.ts +21 -0
  22. package/lib/theme/media/Icon/Icon.d.ts +14 -0
  23. package/lib/theme/navigation/Link/Link.config.d.ts +31 -0
  24. package/lib/theme/navigation/Link/Link.d.ts +3 -0
  25. package/lib/theme/overlay/Drawer/Drawer.config.d.ts +72 -0
  26. package/lib/theme/overlay/Drawer/Drawer.d.ts +3 -0
  27. package/lib/theme/typography/Heading/Heading.config.d.ts +48 -0
  28. package/lib/theme/typography/Heading/Heading.d.ts +3 -0
  29. package/lib/theme/typography/Text/Text.config.d.ts +37 -0
  30. package/lib/theme/typography/Text/Text.d.ts +3 -0
  31. package/package.json +23 -0
@@ -0,0 +1,2 @@
1
+ export { default as Grid, type GridProps } from './Grid';
2
+ export { default as GridItem, type GridItemProps } from './GridItem';
@@ -0,0 +1,5 @@
1
+ import { Show as ChakraShow, ShowProps as ChakraShowProps, Hide as ChakraHide, HideProps as ChakraHideProps } from '@chakra-ui/react';
2
+ export type ShowProps = ChakraShowProps;
3
+ export type HideProps = ChakraHideProps;
4
+ export declare const Show: typeof ChakraShow;
5
+ export declare const Hide: typeof ChakraHide;
@@ -0,0 +1,21 @@
1
+ declare const _default: {
2
+ baseStyle?: {} | undefined;
3
+ sizes?: {
4
+ sm: {
5
+ fontSize: string;
6
+ };
7
+ md: {
8
+ fontSize: string;
9
+ };
10
+ lg: {
11
+ fontSize: string;
12
+ };
13
+ } | undefined;
14
+ variants?: {} | undefined;
15
+ defaultProps?: {
16
+ size?: "sm" | "md" | "lg" | undefined;
17
+ variant?: undefined;
18
+ colorScheme?: string | undefined;
19
+ } | undefined;
20
+ };
21
+ export default _default;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { IconProps as ChakraIconProps, ThemingProps } from '@chakra-ui/react';
3
+ import * as icons from '@phosphor-icons/react';
4
+ declare const ICON_RED_LIST: readonly ["SSR", "Icon", "IconProps", "IconContext", "IconBase", "IconWeight"];
5
+ declare const ICON_GREEN_LIST: readonly [];
6
+ export type IconKey = Exclude<keyof typeof icons, (typeof ICON_RED_LIST)[number]> | (typeof ICON_GREEN_LIST)[number];
7
+ type IconType = Record<IconKey, React.ElementType>;
8
+ export declare const ICON_SET: IconType;
9
+ export type IconProps = ChakraIconProps & ThemingProps<'Icon'> & {
10
+ icon: IconKey;
11
+ isFilled?: boolean;
12
+ };
13
+ declare const Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
14
+ export default Icon;
@@ -0,0 +1,31 @@
1
+ declare const _default: {
2
+ baseStyle?: {
3
+ color: string;
4
+ fontWeight: string;
5
+ _hover: {
6
+ textDecoration: string;
7
+ cursor: string;
8
+ };
9
+ } | undefined;
10
+ sizes?: {
11
+ sm: {
12
+ fontSize: ("xs" | "sm")[];
13
+ lineHeight: string;
14
+ };
15
+ md: {
16
+ fontSize: ("sm" | "md")[];
17
+ lineHeight: string;
18
+ };
19
+ lg: {
20
+ fontSize: ("md" | "lg")[];
21
+ lineHeight: string;
22
+ };
23
+ } | undefined;
24
+ variants?: {} | undefined;
25
+ defaultProps?: {
26
+ size?: "sm" | "md" | "lg" | undefined;
27
+ variant?: undefined;
28
+ colorScheme?: string | undefined;
29
+ } | undefined;
30
+ };
31
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { Link as ChakraLink, LinkProps as ChakraLinkProps } from '@chakra-ui/react';
2
+ export type LinkProps = ChakraLinkProps;
3
+ export default ChakraLink;
@@ -0,0 +1,72 @@
1
+ declare const _default: {
2
+ baseStyle?: {
3
+ overlay: {
4
+ zIndex: string;
5
+ bg: (theme: Record<string, any>) => string;
6
+ };
7
+ dialogContainer: {
8
+ zIndex: string;
9
+ };
10
+ dialog: {
11
+ bg: string;
12
+ pt: number[];
13
+ display: string;
14
+ flexDirection: string;
15
+ alignItems: string;
16
+ gap: number;
17
+ boxShadow: string;
18
+ };
19
+ header: {
20
+ px: number;
21
+ display: string;
22
+ flexDirection: string;
23
+ justifyContent: string;
24
+ alignItems: string;
25
+ };
26
+ closeButton: {
27
+ bg: string;
28
+ borderRadius: string;
29
+ p: number;
30
+ _hover: {
31
+ bg: string;
32
+ };
33
+ '& .chakra-icon': {
34
+ p: number;
35
+ };
36
+ };
37
+ body: {
38
+ px: number;
39
+ flexGrow: number;
40
+ };
41
+ footer: {
42
+ py: number;
43
+ px: number;
44
+ };
45
+ } | undefined;
46
+ sizes?: {
47
+ partial: {
48
+ dialog: {
49
+ maxW: number;
50
+ };
51
+ };
52
+ full: {
53
+ dialog: {
54
+ maxW: string;
55
+ minH: string;
56
+ borderRadius: number;
57
+ };
58
+ };
59
+ } | undefined;
60
+ variants?: {
61
+ [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
62
+ keys: ("body" | "dialog" | "footer" | "header" | "overlay" | "dialogContainer" | "closeButton")[];
63
+ }>;
64
+ } | undefined;
65
+ defaultProps?: {
66
+ size?: "full" | "partial" | undefined;
67
+ variant?: string | number | undefined;
68
+ colorScheme?: string | undefined;
69
+ } | undefined;
70
+ parts: ("body" | "dialog" | "footer" | "header" | "overlay" | "dialogContainer" | "closeButton")[];
71
+ };
72
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { Drawer } from '@chakra-ui/react';
2
+ export { DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, DrawerHeader, DrawerOverlay, type DrawerProps, } from '@chakra-ui/react';
3
+ export default Drawer;
@@ -0,0 +1,48 @@
1
+ declare const _default: {
2
+ baseStyle?: {
3
+ fontFamily: string;
4
+ fontWeight: string;
5
+ color: string;
6
+ } | undefined;
7
+ sizes?: {
8
+ '3xl': {
9
+ fontSize: ("6xl" | "11xl")[];
10
+ lineHeight: string;
11
+ };
12
+ '2xl': {
13
+ fontSize: ("6xl" | "9xl")[];
14
+ lineHeight: string;
15
+ };
16
+ xl: {
17
+ fontSize: ("4xl" | "7xl")[];
18
+ lineHeight: string;
19
+ };
20
+ lg: {
21
+ fontFamily: string;
22
+ fontWeight: string;
23
+ fontSize: ("3xl" | "6xl")[];
24
+ lineHeight: string;
25
+ };
26
+ md: {
27
+ fontFamily: string;
28
+ fontWeight: string;
29
+ fontSize: ("2xl" | "4xl")[];
30
+ lineHeight: string;
31
+ };
32
+ sm: {
33
+ fontFamily: string;
34
+ fontWeight: string;
35
+ fontSize: ("lg" | "3xl")[];
36
+ lineHeight: string;
37
+ };
38
+ } | undefined;
39
+ variants?: {
40
+ [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
41
+ } | undefined;
42
+ defaultProps?: {
43
+ size?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | undefined;
44
+ variant?: string | number | undefined;
45
+ colorScheme?: string | undefined;
46
+ } | undefined;
47
+ };
48
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { Heading, HeadingProps as ChakraHeadingProps } from "@chakra-ui/react";
2
+ export type HeadingProps = ChakraHeadingProps;
3
+ export default Heading;
@@ -0,0 +1,37 @@
1
+ declare const _default: {
2
+ baseStyle?: {
3
+ fontFamily: string;
4
+ fontWeight: string;
5
+ lineHeight: string;
6
+ letterSpacing: string;
7
+ fontSize: string;
8
+ p: number;
9
+ } | undefined;
10
+ sizes?: {
11
+ xs: {
12
+ fontSize: ("2xs" | "xs")[];
13
+ };
14
+ sm: {
15
+ fontSize: ("xs" | "sm")[];
16
+ };
17
+ md: {
18
+ fontSize: ("sm" | "md")[];
19
+ };
20
+ lg: {
21
+ fontSize: ("md" | "lg")[];
22
+ };
23
+ xl: {
24
+ fontSize: ("lg" | "2xl")[];
25
+ lineHeight: ("shorter" | "short")[];
26
+ };
27
+ } | undefined;
28
+ variants?: {
29
+ [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
30
+ } | undefined;
31
+ defaultProps?: {
32
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
33
+ variant?: string | number | undefined;
34
+ colorScheme?: string | undefined;
35
+ } | undefined;
36
+ };
37
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { Text as ChakraText, TextProps as ChakraTextProps } from '@chakra-ui/react';
2
+ export type TextProps = ChakraTextProps;
3
+ export default ChakraText;
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@everlywell/ui-kit",
3
+ "version": "0.0.1-alpha.1",
4
+ "main": "./index.js",
5
+ "types": "./index.d.ts",
6
+ "exports": {
7
+ ".": {
8
+ "import": "./index.mjs",
9
+ "require": "./index.js"
10
+ }
11
+ },
12
+ "peerDependencies": {
13
+ "react": "18.x",
14
+ "react-dom": "18.x"
15
+ },
16
+ "dependencies": {
17
+ "@chakra-ui/react": "^2.8.1",
18
+ "@emotion/react": "11.11.3",
19
+ "@emotion/styled": "11.11.0",
20
+ "@phosphor-icons/react": "2.0.15",
21
+ "framer-motion": "^10.16.4"
22
+ }
23
+ }