@paygreen/pgui 2.0.0 → 2.1.2
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/README.md +110 -0
- package/dist/cjs/index.js +42703 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/types/components/ActionsButton/index.d.ts +6 -0
- package/dist/cjs/types/components/DataList/index.d.ts +42 -0
- package/dist/cjs/types/components/FormGroup/index.d.ts +12 -0
- package/dist/cjs/types/components/Pagination/index.d.ts +43 -0
- package/dist/cjs/types/components/SearchInput/index.d.ts +11 -0
- package/dist/cjs/types/components/Select/index.d.ts +114 -0
- package/dist/cjs/types/components/index.d.ts +6 -0
- package/dist/cjs/types/index.d.ts +2 -0
- package/dist/cjs/types/theme/components/badge.d.ts +8 -0
- package/dist/cjs/types/theme/components/button.d.ts +141 -0
- package/dist/cjs/types/theme/components/index.d.ts +4 -0
- package/dist/cjs/types/theme/components/input.d.ts +48 -0
- package/dist/cjs/types/theme/components/tag.d.ts +9 -0
- package/dist/cjs/types/theme/foundations/colors.d.ts +65 -0
- package/dist/cjs/types/theme/foundations/index.d.ts +86 -0
- package/dist/cjs/types/theme/foundations/shadows.d.ts +10 -0
- package/dist/cjs/types/theme/foundations/typography.d.ts +10 -0
- package/dist/cjs/types/theme/index.d.ts +1 -0
- package/dist/cjs/types/theme/theme.d.ts +1 -0
- package/dist/esm/index.js +42654 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/types/components/ActionsButton/index.d.ts +6 -0
- package/dist/esm/types/components/DataList/index.d.ts +42 -0
- package/dist/esm/types/components/FormGroup/index.d.ts +12 -0
- package/dist/esm/types/components/Pagination/index.d.ts +43 -0
- package/dist/esm/types/components/SearchInput/index.d.ts +11 -0
- package/dist/esm/types/components/Select/index.d.ts +114 -0
- package/dist/esm/types/components/index.d.ts +6 -0
- package/dist/esm/types/index.d.ts +2 -0
- package/dist/esm/types/theme/components/badge.d.ts +8 -0
- package/dist/esm/types/theme/components/button.d.ts +141 -0
- package/dist/esm/types/theme/components/index.d.ts +4 -0
- package/dist/esm/types/theme/components/input.d.ts +48 -0
- package/dist/esm/types/theme/components/tag.d.ts +9 -0
- package/dist/esm/types/theme/foundations/colors.d.ts +65 -0
- package/dist/esm/types/theme/foundations/index.d.ts +86 -0
- package/dist/esm/types/theme/foundations/shadows.d.ts +10 -0
- package/dist/esm/types/theme/foundations/typography.d.ts +10 -0
- package/dist/esm/types/theme/index.d.ts +1 -0
- package/dist/esm/types/theme/theme.d.ts +1 -0
- package/dist/index.d.ts +233 -0
- package/package.json +85 -6
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { IconButtonProps } from '@chakra-ui/react';
|
|
3
|
+
export declare type ActionsButtonProps = Omit<IconButtonProps, 'aria-label'> & {
|
|
4
|
+
label: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const ActionsButton: FC<React.PropsWithChildren<ActionsButtonProps>>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { AccordionProps, FlexProps } from '@chakra-ui/react';
|
|
3
|
+
declare type DataListColumns = Record<string, DataListCellProps>;
|
|
4
|
+
declare type DataListContextValue = {
|
|
5
|
+
setColumns: React.Dispatch<React.SetStateAction<DataListColumns>>;
|
|
6
|
+
columns: DataListColumns;
|
|
7
|
+
isHover: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const DataListContext: React.Context<DataListContextValue>;
|
|
10
|
+
export declare const DataListHeaderContext: React.Context<boolean>;
|
|
11
|
+
export declare type DataListCellProps = FlexProps & {
|
|
12
|
+
colName?: string;
|
|
13
|
+
colWidth?: string | number | Record<string, string | number>;
|
|
14
|
+
isVisible?: boolean | boolean[] | Record<string, boolean>;
|
|
15
|
+
};
|
|
16
|
+
export declare const DataListCell: ({ children, colName, colWidth, isVisible, ...rest }: DataListCellProps) => JSX.Element | null;
|
|
17
|
+
export declare const DataListAccordion: ({ ...rest }: {
|
|
18
|
+
[x: string]: any;
|
|
19
|
+
}) => JSX.Element;
|
|
20
|
+
export declare const DataListAccordionButton: ({ ...rest }: {
|
|
21
|
+
[x: string]: any;
|
|
22
|
+
}) => JSX.Element;
|
|
23
|
+
export declare const DataListAccordionIcon: ({ ...rest }: {
|
|
24
|
+
[x: string]: any;
|
|
25
|
+
}) => JSX.Element;
|
|
26
|
+
export declare const DataListAccordionPanel: ({ ...rest }: {
|
|
27
|
+
[x: string]: any;
|
|
28
|
+
}) => JSX.Element;
|
|
29
|
+
export declare type DataListRowProps = FlexProps & {
|
|
30
|
+
isVisible?: boolean | boolean[] | Record<string, boolean>;
|
|
31
|
+
isDisabled?: boolean;
|
|
32
|
+
};
|
|
33
|
+
export declare const DataListRow: FC<React.PropsWithChildren<DataListRowProps>>;
|
|
34
|
+
export declare type DataListHeaderProps = DataListRowProps;
|
|
35
|
+
export declare const DataListHeader: FC<React.PropsWithChildren<DataListHeaderProps>>;
|
|
36
|
+
export declare type DataListFooterProps = DataListRowProps;
|
|
37
|
+
export declare const DataListFooter: FC<React.PropsWithChildren<DataListFooterProps>>;
|
|
38
|
+
export declare type DataListProps = AccordionProps & {
|
|
39
|
+
isHover?: boolean;
|
|
40
|
+
};
|
|
41
|
+
export declare const DataList: FC<React.PropsWithChildren<DataListProps>>;
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { FormControlProps } from '@chakra-ui/react';
|
|
3
|
+
export declare type FormGroupProps = Omit<FormControlProps, 'onChange' | 'defaultValue' | 'label'> & {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
errorMessage?: ReactNode;
|
|
6
|
+
helper?: ReactNode;
|
|
7
|
+
id?: string;
|
|
8
|
+
isRequired?: boolean;
|
|
9
|
+
label?: ReactNode;
|
|
10
|
+
showError?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const FormGroup: ({ children, errorMessage, helper, id, isRequired, label, showError, ...props }: FormGroupProps) => JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { IconButtonProps, StackProps } from '@chakra-ui/react';
|
|
3
|
+
export declare const getPaginationInfo: ({ page, pageSize, totalItems, }: {
|
|
4
|
+
page?: number | undefined;
|
|
5
|
+
pageSize?: number | undefined;
|
|
6
|
+
totalItems?: number | undefined;
|
|
7
|
+
}) => {
|
|
8
|
+
firstPage: number;
|
|
9
|
+
lastPage: number;
|
|
10
|
+
firstItemOnPage: number;
|
|
11
|
+
lastItemOnPage: number;
|
|
12
|
+
isFirstPage: boolean;
|
|
13
|
+
isLastPage: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare type PaginationContextValue<PageType = number> = {
|
|
16
|
+
page: PageType;
|
|
17
|
+
setPage: (page: PageType) => void;
|
|
18
|
+
firstPage: PageType;
|
|
19
|
+
isFirstPage: boolean;
|
|
20
|
+
lastPage: PageType;
|
|
21
|
+
isLastPage: boolean;
|
|
22
|
+
totalItems: number;
|
|
23
|
+
isLoadingPage: boolean;
|
|
24
|
+
pageSize: number;
|
|
25
|
+
firstItemOnPage: number;
|
|
26
|
+
lastItemOnPage: number;
|
|
27
|
+
};
|
|
28
|
+
export declare const PaginationContext: React.Context<PaginationContextValue<number>>;
|
|
29
|
+
export declare const PaginationButtonFirstPage: FC<React.PropsWithChildren<Omit<IconButtonProps, 'aria-label'>>>;
|
|
30
|
+
export declare const PaginationButtonPrevPage: FC<React.PropsWithChildren<Omit<IconButtonProps, 'aria-label'>>>;
|
|
31
|
+
export declare const PaginationButtonLastPage: FC<React.PropsWithChildren<Omit<IconButtonProps, 'aria-label'>>>;
|
|
32
|
+
export declare const PaginationButtonNextPage: FC<React.PropsWithChildren<Omit<IconButtonProps, 'aria-label'>>>;
|
|
33
|
+
export declare const PaginationInfo: ({ ...rest }: {
|
|
34
|
+
[x: string]: any;
|
|
35
|
+
}) => JSX.Element;
|
|
36
|
+
export declare type PaginationProps = StackProps & {
|
|
37
|
+
setPage: (page: number) => void;
|
|
38
|
+
page?: number;
|
|
39
|
+
pageSize?: number;
|
|
40
|
+
totalItems?: number;
|
|
41
|
+
isLoadingPage?: boolean;
|
|
42
|
+
};
|
|
43
|
+
export declare const Pagination: ({ setPage, page, pageSize, totalItems, isLoadingPage, ...rest }: PaginationProps) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InputProps } from '@chakra-ui/react';
|
|
2
|
+
declare type CustomProps = {
|
|
3
|
+
value?: string;
|
|
4
|
+
defaultValue?: string;
|
|
5
|
+
onChange?(value?: string): void;
|
|
6
|
+
delay?: number;
|
|
7
|
+
clearLabel?: string;
|
|
8
|
+
};
|
|
9
|
+
declare type SearchInputProps = Overwrite<InputProps, CustomProps>;
|
|
10
|
+
export declare const SearchInput: import("@chakra-ui/react").ComponentWithAs<"input", SearchInputProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { BoxProps } from '@chakra-ui/react';
|
|
3
|
+
import { GroupBase, Props } from 'react-select';
|
|
4
|
+
declare module 'react' {
|
|
5
|
+
function forwardRef<T, P = {}>(render: (props: P, ref: React.Ref<T>) => React.ReactElement | null): (props: P & React.RefAttributes<T>) => React.ReactElement | null;
|
|
6
|
+
}
|
|
7
|
+
export declare type SelectProps<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>> = {
|
|
8
|
+
isAsync?: boolean;
|
|
9
|
+
isCreatable?: boolean;
|
|
10
|
+
isError?: boolean;
|
|
11
|
+
size?: string;
|
|
12
|
+
formatCreateLabel?: (inputValue: string) => ReactNode;
|
|
13
|
+
loadOptions?: (input: unknown) => TODO;
|
|
14
|
+
defaultOptions?: unknown | boolean;
|
|
15
|
+
debounceDelay?: number;
|
|
16
|
+
} & Props<Option, IsMulti, Group> & Omit<BoxProps, 'defaultValue'>;
|
|
17
|
+
export declare const Select: <Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: {
|
|
18
|
+
isAsync?: boolean | undefined;
|
|
19
|
+
isCreatable?: boolean | undefined;
|
|
20
|
+
isError?: boolean | undefined;
|
|
21
|
+
size?: string | undefined;
|
|
22
|
+
formatCreateLabel?: ((inputValue: string) => ReactNode) | undefined;
|
|
23
|
+
loadOptions?: ((input: unknown) => TODO) | undefined;
|
|
24
|
+
defaultOptions?: unknown | boolean;
|
|
25
|
+
debounceDelay?: number | undefined;
|
|
26
|
+
} & Omit<Pick<import("react-select/dist/declarations/src/Select").Props<Option, IsMulti, Group>, "aria-label" | "form" | "autoFocus" | "name" | "value" | "className" | "id" | "aria-errormessage" | "aria-invalid" | "aria-labelledby" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputValue" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom" | "theme"> & {
|
|
27
|
+
placeholder?: React.ReactNode;
|
|
28
|
+
tabIndex?: number | undefined;
|
|
29
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
30
|
+
isLoading?: boolean | undefined;
|
|
31
|
+
isDisabled?: boolean | undefined;
|
|
32
|
+
components?: Partial<import("react-select/dist/declarations/src/components").SelectComponents<Option, IsMulti, Group>> | undefined;
|
|
33
|
+
pageSize?: number | undefined;
|
|
34
|
+
backspaceRemovesValue?: boolean | undefined;
|
|
35
|
+
blurInputOnSelect?: boolean | undefined;
|
|
36
|
+
captureMenuScroll?: boolean | undefined;
|
|
37
|
+
closeMenuOnSelect?: boolean | undefined;
|
|
38
|
+
closeMenuOnScroll?: boolean | ((event: Event) => boolean) | undefined;
|
|
39
|
+
controlShouldRenderValue?: boolean | undefined;
|
|
40
|
+
escapeClearsValue?: boolean | undefined;
|
|
41
|
+
filterOption?: ((option: import("react-select/dist/declarations/src/filters").FilterOptionOption<Option>, inputValue: string) => boolean) | null | undefined;
|
|
42
|
+
formatGroupLabel?: ((group: Group) => React.ReactNode) | undefined;
|
|
43
|
+
getOptionLabel?: import("react-select").GetOptionLabel<Option> | undefined;
|
|
44
|
+
getOptionValue?: import("react-select").GetOptionValue<Option> | undefined;
|
|
45
|
+
isOptionDisabled?: ((option: Option, selectValue: import("react-select").Options<Option>) => boolean) | undefined;
|
|
46
|
+
isMulti?: IsMulti | undefined;
|
|
47
|
+
isRtl?: boolean | undefined;
|
|
48
|
+
isSearchable?: boolean | undefined;
|
|
49
|
+
loadingMessage?: ((obj: {
|
|
50
|
+
inputValue: string;
|
|
51
|
+
}) => React.ReactNode) | undefined;
|
|
52
|
+
minMenuHeight?: number | undefined;
|
|
53
|
+
maxMenuHeight?: number | undefined;
|
|
54
|
+
menuIsOpen?: boolean | undefined;
|
|
55
|
+
menuPlacement?: import("react-select").MenuPlacement | undefined;
|
|
56
|
+
menuPosition?: import("react-select").MenuPosition | undefined;
|
|
57
|
+
menuShouldBlockScroll?: boolean | undefined;
|
|
58
|
+
menuShouldScrollIntoView?: boolean | undefined;
|
|
59
|
+
noOptionsMessage?: ((obj: {
|
|
60
|
+
inputValue: string;
|
|
61
|
+
}) => React.ReactNode) | undefined;
|
|
62
|
+
openMenuOnFocus?: boolean | undefined;
|
|
63
|
+
openMenuOnClick?: boolean | undefined;
|
|
64
|
+
options?: import("react-select").OptionsOrGroups<Option, Group> | undefined;
|
|
65
|
+
screenReaderStatus?: ((obj: {
|
|
66
|
+
count: number;
|
|
67
|
+
}) => string) | undefined;
|
|
68
|
+
styles?: import("react-select").StylesConfig<Option, IsMulti, Group> | undefined;
|
|
69
|
+
tabSelectsValue?: boolean | undefined;
|
|
70
|
+
} & {}, "value" | "onChange" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<Option, IsMulti, Group>, "aria-label" | "form" | "autoFocus" | "name" | "value" | "className" | "id" | "aria-errormessage" | "aria-invalid" | "aria-labelledby" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputValue" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom" | "theme"> & {
|
|
71
|
+
placeholder?: React.ReactNode;
|
|
72
|
+
tabIndex?: number | undefined;
|
|
73
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
74
|
+
isLoading?: boolean | undefined;
|
|
75
|
+
isDisabled?: boolean | undefined;
|
|
76
|
+
components?: Partial<import("react-select/dist/declarations/src/components").SelectComponents<Option, IsMulti, Group>> | undefined;
|
|
77
|
+
pageSize?: number | undefined;
|
|
78
|
+
backspaceRemovesValue?: boolean | undefined;
|
|
79
|
+
blurInputOnSelect?: boolean | undefined;
|
|
80
|
+
captureMenuScroll?: boolean | undefined;
|
|
81
|
+
closeMenuOnSelect?: boolean | undefined;
|
|
82
|
+
closeMenuOnScroll?: boolean | ((event: Event) => boolean) | undefined;
|
|
83
|
+
controlShouldRenderValue?: boolean | undefined;
|
|
84
|
+
escapeClearsValue?: boolean | undefined;
|
|
85
|
+
filterOption?: ((option: import("react-select/dist/declarations/src/filters").FilterOptionOption<Option>, inputValue: string) => boolean) | null | undefined;
|
|
86
|
+
formatGroupLabel?: ((group: Group) => React.ReactNode) | undefined;
|
|
87
|
+
getOptionLabel?: import("react-select").GetOptionLabel<Option> | undefined;
|
|
88
|
+
getOptionValue?: import("react-select").GetOptionValue<Option> | undefined;
|
|
89
|
+
isOptionDisabled?: ((option: Option, selectValue: import("react-select").Options<Option>) => boolean) | undefined;
|
|
90
|
+
isMulti?: IsMulti | undefined;
|
|
91
|
+
isRtl?: boolean | undefined;
|
|
92
|
+
isSearchable?: boolean | undefined;
|
|
93
|
+
loadingMessage?: ((obj: {
|
|
94
|
+
inputValue: string;
|
|
95
|
+
}) => React.ReactNode) | undefined;
|
|
96
|
+
minMenuHeight?: number | undefined;
|
|
97
|
+
maxMenuHeight?: number | undefined;
|
|
98
|
+
menuIsOpen?: boolean | undefined;
|
|
99
|
+
menuPlacement?: import("react-select").MenuPlacement | undefined;
|
|
100
|
+
menuPosition?: import("react-select").MenuPosition | undefined;
|
|
101
|
+
menuShouldBlockScroll?: boolean | undefined;
|
|
102
|
+
menuShouldScrollIntoView?: boolean | undefined;
|
|
103
|
+
noOptionsMessage?: ((obj: {
|
|
104
|
+
inputValue: string;
|
|
105
|
+
}) => React.ReactNode) | undefined;
|
|
106
|
+
openMenuOnFocus?: boolean | undefined;
|
|
107
|
+
openMenuOnClick?: boolean | undefined;
|
|
108
|
+
options?: import("react-select").OptionsOrGroups<Option, Group> | undefined;
|
|
109
|
+
screenReaderStatus?: ((obj: {
|
|
110
|
+
count: number;
|
|
111
|
+
}) => string) | undefined;
|
|
112
|
+
styles?: import("react-select").StylesConfig<Option, IsMulti, Group> | undefined;
|
|
113
|
+
tabSelectsValue?: boolean | undefined;
|
|
114
|
+
} & {}> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<Option> & Omit<BoxProps, "defaultValue"> & React.RefAttributes<HTMLElement>) => React.ReactElement | null;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
baseStyle: {
|
|
3
|
+
borderRadius: string;
|
|
4
|
+
fontWeight: string;
|
|
5
|
+
};
|
|
6
|
+
variants: {
|
|
7
|
+
'@primary': (props: any) => {
|
|
8
|
+
bg: string;
|
|
9
|
+
color: string;
|
|
10
|
+
_focus: {
|
|
11
|
+
boxShadow: string;
|
|
12
|
+
};
|
|
13
|
+
_hover: {
|
|
14
|
+
bg: string;
|
|
15
|
+
color: string;
|
|
16
|
+
_disabled: {
|
|
17
|
+
bg: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
_active: {
|
|
21
|
+
bg: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
'@secondary': (props: any) => {
|
|
25
|
+
bg: string;
|
|
26
|
+
color: string;
|
|
27
|
+
_focus: {
|
|
28
|
+
boxShadow: string;
|
|
29
|
+
};
|
|
30
|
+
_hover: {
|
|
31
|
+
bg: string;
|
|
32
|
+
color: string;
|
|
33
|
+
_disabled: {
|
|
34
|
+
bg: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
_active: {
|
|
38
|
+
bg: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
'@danger': (props: any) => {
|
|
42
|
+
bg: string;
|
|
43
|
+
color: string;
|
|
44
|
+
_focus: {
|
|
45
|
+
boxShadow: string;
|
|
46
|
+
};
|
|
47
|
+
_hover: {
|
|
48
|
+
bg: string;
|
|
49
|
+
color: string;
|
|
50
|
+
_disabled: {
|
|
51
|
+
bg: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
_active: {
|
|
55
|
+
bg: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
'@link': (props: any) => {
|
|
59
|
+
height: string;
|
|
60
|
+
margin: number;
|
|
61
|
+
padding: number;
|
|
62
|
+
_hover: {
|
|
63
|
+
textDecoration: string;
|
|
64
|
+
color: string;
|
|
65
|
+
};
|
|
66
|
+
_active: {
|
|
67
|
+
textDecoration: string;
|
|
68
|
+
color: string;
|
|
69
|
+
};
|
|
70
|
+
bg: string;
|
|
71
|
+
color: string;
|
|
72
|
+
_focus: {
|
|
73
|
+
boxShadow: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
'@linkNeutral': (props: any) => {
|
|
77
|
+
height: string;
|
|
78
|
+
margin: number;
|
|
79
|
+
padding: number;
|
|
80
|
+
_hover: {
|
|
81
|
+
textDecoration: string;
|
|
82
|
+
color: string;
|
|
83
|
+
};
|
|
84
|
+
bg: string;
|
|
85
|
+
color: string;
|
|
86
|
+
_focus: {
|
|
87
|
+
boxShadow: string;
|
|
88
|
+
};
|
|
89
|
+
_active: {
|
|
90
|
+
bg: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
'@white': (props: any) => {
|
|
94
|
+
borderWidth: string;
|
|
95
|
+
borderStyle: string;
|
|
96
|
+
borderColor: string;
|
|
97
|
+
bg: string;
|
|
98
|
+
color: string;
|
|
99
|
+
_focus: {
|
|
100
|
+
boxShadow: string;
|
|
101
|
+
};
|
|
102
|
+
_hover: {
|
|
103
|
+
bg: string;
|
|
104
|
+
color: string;
|
|
105
|
+
_disabled: {
|
|
106
|
+
bg: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
_active: {
|
|
110
|
+
bg: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
'@whiteNeutral': (props: any) => {
|
|
114
|
+
borderWidth: string;
|
|
115
|
+
borderStyle: string;
|
|
116
|
+
borderColor: string;
|
|
117
|
+
bg: string;
|
|
118
|
+
color: string;
|
|
119
|
+
_focus: {
|
|
120
|
+
boxShadow: string;
|
|
121
|
+
};
|
|
122
|
+
_hover: {
|
|
123
|
+
bg: string;
|
|
124
|
+
color: string;
|
|
125
|
+
_disabled: {
|
|
126
|
+
bg: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
_active: {
|
|
130
|
+
bg: string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
ghost: (props: any) => {
|
|
134
|
+
bg: string;
|
|
135
|
+
_hover: {
|
|
136
|
+
bg: string;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
export default _default;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
baseStyle: {
|
|
3
|
+
field: {
|
|
4
|
+
borderRadius: string;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
variants: {
|
|
8
|
+
outline: (props: any) => {
|
|
9
|
+
field: {
|
|
10
|
+
bg: string;
|
|
11
|
+
borderColor: string;
|
|
12
|
+
borderRadius: string;
|
|
13
|
+
_focus: {
|
|
14
|
+
borderColor: string;
|
|
15
|
+
};
|
|
16
|
+
_focusVisible: {
|
|
17
|
+
boxShadow: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
addon: {
|
|
21
|
+
borderRadius: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
filled: (props: any) => {
|
|
25
|
+
field: {
|
|
26
|
+
bg: string;
|
|
27
|
+
borderWidth: string;
|
|
28
|
+
borderColor: string;
|
|
29
|
+
borderRadius: string;
|
|
30
|
+
_hover: {
|
|
31
|
+
bg: string;
|
|
32
|
+
borderColor: string;
|
|
33
|
+
};
|
|
34
|
+
_focus: {
|
|
35
|
+
bg: string;
|
|
36
|
+
borderColor: string;
|
|
37
|
+
};
|
|
38
|
+
_focusVisible: {
|
|
39
|
+
boxShadow: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
addon: {
|
|
43
|
+
borderRadius: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export default _default;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export declare const colors: {
|
|
2
|
+
brand: {
|
|
3
|
+
50: string;
|
|
4
|
+
100: string;
|
|
5
|
+
200: string;
|
|
6
|
+
300: string;
|
|
7
|
+
400: string;
|
|
8
|
+
500: string;
|
|
9
|
+
600: string;
|
|
10
|
+
700: string;
|
|
11
|
+
800: string;
|
|
12
|
+
900: string;
|
|
13
|
+
};
|
|
14
|
+
gray: {
|
|
15
|
+
50: string;
|
|
16
|
+
100: string;
|
|
17
|
+
200: string;
|
|
18
|
+
300: string;
|
|
19
|
+
400: string;
|
|
20
|
+
500: string;
|
|
21
|
+
600: string;
|
|
22
|
+
700: string;
|
|
23
|
+
800: string;
|
|
24
|
+
900: string;
|
|
25
|
+
};
|
|
26
|
+
red: {
|
|
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
|
+
};
|
|
38
|
+
orange: {
|
|
39
|
+
50: string;
|
|
40
|
+
100: string;
|
|
41
|
+
200: string;
|
|
42
|
+
300: string;
|
|
43
|
+
400: string;
|
|
44
|
+
500: string;
|
|
45
|
+
600: string;
|
|
46
|
+
700: string;
|
|
47
|
+
800: string;
|
|
48
|
+
900: string;
|
|
49
|
+
};
|
|
50
|
+
green: {
|
|
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
|
+
};
|
|
62
|
+
gradients: {
|
|
63
|
+
primary: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
declare const foundations: {
|
|
2
|
+
shadows: {
|
|
3
|
+
xs: string;
|
|
4
|
+
sm: string;
|
|
5
|
+
base: string;
|
|
6
|
+
md: string;
|
|
7
|
+
lg: string;
|
|
8
|
+
xl: string;
|
|
9
|
+
'2xl': string;
|
|
10
|
+
layout: string;
|
|
11
|
+
};
|
|
12
|
+
fonts: {
|
|
13
|
+
heading: string;
|
|
14
|
+
body: string;
|
|
15
|
+
mono: string;
|
|
16
|
+
};
|
|
17
|
+
fontSizes: {
|
|
18
|
+
'2xs': string;
|
|
19
|
+
};
|
|
20
|
+
colors: {
|
|
21
|
+
brand: {
|
|
22
|
+
50: string;
|
|
23
|
+
100: string;
|
|
24
|
+
200: string;
|
|
25
|
+
300: string;
|
|
26
|
+
400: string;
|
|
27
|
+
500: string;
|
|
28
|
+
600: string;
|
|
29
|
+
700: string;
|
|
30
|
+
800: string;
|
|
31
|
+
900: string;
|
|
32
|
+
};
|
|
33
|
+
gray: {
|
|
34
|
+
50: string;
|
|
35
|
+
100: string;
|
|
36
|
+
200: string;
|
|
37
|
+
300: string;
|
|
38
|
+
400: string;
|
|
39
|
+
500: string;
|
|
40
|
+
600: string;
|
|
41
|
+
700: string;
|
|
42
|
+
800: string;
|
|
43
|
+
900: string;
|
|
44
|
+
};
|
|
45
|
+
red: {
|
|
46
|
+
50: string;
|
|
47
|
+
100: string;
|
|
48
|
+
200: string;
|
|
49
|
+
300: string;
|
|
50
|
+
400: string;
|
|
51
|
+
500: string;
|
|
52
|
+
600: string;
|
|
53
|
+
700: string;
|
|
54
|
+
800: string;
|
|
55
|
+
900: string;
|
|
56
|
+
};
|
|
57
|
+
orange: {
|
|
58
|
+
50: string;
|
|
59
|
+
100: string;
|
|
60
|
+
200: string;
|
|
61
|
+
300: string;
|
|
62
|
+
400: string;
|
|
63
|
+
500: string;
|
|
64
|
+
600: string;
|
|
65
|
+
700: string;
|
|
66
|
+
800: string;
|
|
67
|
+
900: string;
|
|
68
|
+
};
|
|
69
|
+
green: {
|
|
70
|
+
50: string;
|
|
71
|
+
100: string;
|
|
72
|
+
200: string;
|
|
73
|
+
300: string;
|
|
74
|
+
400: string;
|
|
75
|
+
500: string;
|
|
76
|
+
600: string;
|
|
77
|
+
700: string;
|
|
78
|
+
800: string;
|
|
79
|
+
900: string;
|
|
80
|
+
};
|
|
81
|
+
gradients: {
|
|
82
|
+
primary: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
export default foundations;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './theme';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const theme: any;
|