@paygreen/pgui 2.9.2 → 2.10.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/README.md +1 -1
- package/dist/cjs/index.js +6642 -12987
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Card/index.d.ts +2 -2
- package/dist/cjs/types/components/ConfirmMenuItem/index.d.ts +2 -2
- package/dist/cjs/types/components/DataList/index.d.ts +5 -5
- package/dist/cjs/types/components/DayPicker/index.d.ts +5 -5
- package/dist/cjs/types/components/FormGroup/index.d.ts +2 -2
- package/dist/cjs/types/components/InputDayPicker/index.d.ts +5 -5
- package/dist/cjs/types/components/InputPhone/SearchOnList.d.ts +3 -3
- package/dist/cjs/types/components/InputPhone/index.d.ts +2 -2
- package/dist/cjs/types/components/InputRangePicker/index.d.ts +3 -3
- package/dist/cjs/types/components/ModalResponsive/index.d.ts +2 -2
- package/dist/cjs/types/components/Pagination/index.d.ts +2 -2
- package/dist/cjs/types/components/SearchInput/index.d.ts +2 -1
- package/dist/cjs/types/components/Select/index.d.ts +4 -4
- package/dist/cjs/types/components/Textarea/index.d.ts +2 -2
- package/dist/cjs/types/layout/BottomBar/index.d.ts +2 -2
- package/dist/cjs/types/layout/LayoutContainer/index.d.ts +2 -2
- package/dist/cjs/types/layout/SideNav/index.d.ts +8 -8
- package/dist/cjs/types/layout/TopBar/index.d.ts +5 -5
- package/dist/cjs/types/theme/components/button.d.ts +37 -9
- package/dist/cjs/types/theme/components/form.d.ts +8 -0
- package/dist/cjs/types/theme/components/index.d.ts +2 -0
- package/dist/cjs/types/theme/components/input.d.ts +5 -2
- package/dist/cjs/types/theme/components/menu.d.ts +8 -0
- package/dist/cjs/types/theme/components/number-input.d.ts +4 -1
- package/dist/cjs/types/theme/components/pin-input.d.ts +5 -2
- package/dist/cjs/types/theme/components/textarea.d.ts +5 -2
- package/dist/cjs/types/theme/foundations/colors.d.ts +7 -7
- package/dist/cjs/types/theme/foundations/index.d.ts +7 -7
- package/dist/cjs/types/theme/index.d.ts +0 -1
- package/dist/cjs/types/theme/rawStyle/index.d.ts +0 -1
- package/dist/cjs/types/theme/theme.d.ts +1 -2
- package/dist/esm/index.js +6647 -12992
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Card/index.d.ts +2 -2
- package/dist/esm/types/components/ConfirmMenuItem/index.d.ts +2 -2
- package/dist/esm/types/components/DataList/index.d.ts +5 -5
- package/dist/esm/types/components/DayPicker/index.d.ts +5 -5
- package/dist/esm/types/components/FormGroup/index.d.ts +2 -2
- package/dist/esm/types/components/InputDayPicker/index.d.ts +5 -5
- package/dist/esm/types/components/InputPhone/SearchOnList.d.ts +3 -3
- package/dist/esm/types/components/InputPhone/index.d.ts +2 -2
- package/dist/esm/types/components/InputRangePicker/index.d.ts +3 -3
- package/dist/esm/types/components/ModalResponsive/index.d.ts +2 -2
- package/dist/esm/types/components/Pagination/index.d.ts +2 -2
- package/dist/esm/types/components/SearchInput/index.d.ts +2 -1
- package/dist/esm/types/components/Select/index.d.ts +4 -4
- package/dist/esm/types/components/Textarea/index.d.ts +2 -2
- package/dist/esm/types/layout/BottomBar/index.d.ts +2 -2
- package/dist/esm/types/layout/LayoutContainer/index.d.ts +2 -2
- package/dist/esm/types/layout/SideNav/index.d.ts +8 -8
- package/dist/esm/types/layout/TopBar/index.d.ts +5 -5
- package/dist/esm/types/theme/components/button.d.ts +37 -9
- package/dist/esm/types/theme/components/form.d.ts +8 -0
- package/dist/esm/types/theme/components/index.d.ts +2 -0
- package/dist/esm/types/theme/components/input.d.ts +5 -2
- package/dist/esm/types/theme/components/menu.d.ts +8 -0
- package/dist/esm/types/theme/components/number-input.d.ts +4 -1
- package/dist/esm/types/theme/components/pin-input.d.ts +5 -2
- package/dist/esm/types/theme/components/textarea.d.ts +5 -2
- package/dist/esm/types/theme/foundations/colors.d.ts +7 -7
- package/dist/esm/types/theme/foundations/index.d.ts +7 -7
- package/dist/esm/types/theme/index.d.ts +0 -1
- package/dist/esm/types/theme/rawStyle/index.d.ts +0 -1
- package/dist/esm/types/theme/theme.d.ts +1 -2
- package/dist/index.d.ts +45 -45
- package/package.json +16 -15
- package/dist/cjs/types/theme/externals-css.d.ts +0 -1
- package/dist/cjs/types/theme/rawStyle/reactDayPicker.d.ts +0 -2
- package/dist/esm/types/theme/externals-css.d.ts +0 -1
- package/dist/esm/types/theme/rawStyle/reactDayPicker.d.ts +0 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { CardProps } from '@chakra-ui/react';
|
|
3
|
-
export declare const Card: (props: CardProps) => JSX.Element;
|
|
3
|
+
export declare const Card: (props: CardProps) => React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { HTMLChakraProps, MenuItemProps } from '@chakra-ui/react';
|
|
3
3
|
export type StyledMenuItemProps = HTMLChakraProps<'button'>;
|
|
4
|
-
export declare const MenuItem: import("@chakra-ui/system").ComponentWithAs<"button", MenuItemProps>;
|
|
4
|
+
export declare const MenuItem: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"button", MenuItemProps>;
|
|
5
5
|
type ConfirmMenuItemProps = MenuItemProps & {
|
|
6
6
|
confirmDelay?: number;
|
|
7
7
|
confirmColorScheme?: string;
|
|
@@ -9,5 +9,5 @@ type ConfirmMenuItemProps = MenuItemProps & {
|
|
|
9
9
|
confirmText?: React.ReactNode;
|
|
10
10
|
confirmIcon?: React.FC<React.PropsWithChildren<unknown>>;
|
|
11
11
|
};
|
|
12
|
-
export declare const ConfirmMenuItem: import("@chakra-ui/system").ComponentWithAs<"button", ConfirmMenuItemProps>;
|
|
12
|
+
export declare const ConfirmMenuItem: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"button", ConfirmMenuItemProps>;
|
|
13
13
|
export {};
|
|
@@ -13,19 +13,19 @@ export type DataListCellProps = FlexProps & {
|
|
|
13
13
|
colWidth?: string | number | Record<string, string | number>;
|
|
14
14
|
isVisible?: boolean | boolean[] | Record<string, boolean>;
|
|
15
15
|
};
|
|
16
|
-
export declare const DataListCell: ({ children, colName, colWidth, isVisible, ...rest }: DataListCellProps) => JSX.Element | null;
|
|
16
|
+
export declare const DataListCell: ({ children, colName, colWidth, isVisible, ...rest }: DataListCellProps) => React.JSX.Element | null;
|
|
17
17
|
export declare const DataListAccordion: ({ ...rest }: {
|
|
18
18
|
[x: string]: any;
|
|
19
|
-
}) => JSX.Element;
|
|
19
|
+
}) => React.JSX.Element;
|
|
20
20
|
export declare const DataListAccordionButton: ({ ...rest }: {
|
|
21
21
|
[x: string]: any;
|
|
22
|
-
}) => JSX.Element;
|
|
22
|
+
}) => React.JSX.Element;
|
|
23
23
|
export declare const DataListAccordionIcon: ({ ...rest }: {
|
|
24
24
|
[x: string]: any;
|
|
25
|
-
}) => JSX.Element;
|
|
25
|
+
}) => React.JSX.Element;
|
|
26
26
|
export declare const DataListAccordionPanel: ({ ...rest }: {
|
|
27
27
|
[x: string]: any;
|
|
28
|
-
}) => JSX.Element;
|
|
28
|
+
}) => React.JSX.Element;
|
|
29
29
|
export type DataListRowProps = FlexProps & {
|
|
30
30
|
isVisible?: boolean | boolean[] | Record<string, boolean>;
|
|
31
31
|
isDisabled?: boolean;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import 'dayjs/locale/en';
|
|
3
3
|
import 'dayjs/locale/fr';
|
|
4
4
|
export type DayPickerProps = {
|
|
5
|
-
defaultValue?: string | Date;
|
|
5
|
+
defaultValue?: string | Date | undefined;
|
|
6
6
|
onChange: (e: string | undefined) => void;
|
|
7
7
|
locale?: string;
|
|
8
8
|
customFormat?: string;
|
|
9
9
|
withTime?: boolean;
|
|
10
|
-
minDate?: Date |
|
|
11
|
-
maxDate?: Date |
|
|
10
|
+
minDate?: Date | undefined;
|
|
11
|
+
maxDate?: Date | undefined;
|
|
12
12
|
calendarFunc?: (date: any) => 'after-max-date' | 'before-min-date' | undefined;
|
|
13
13
|
fieldRef?: any;
|
|
14
14
|
};
|
|
15
|
-
export declare const DayPicker: ({ defaultValue, onChange, locale, customFormat, withTime, minDate, maxDate, calendarFunc, fieldRef, ...props }: DayPickerProps) => JSX.Element;
|
|
15
|
+
export declare const DayPicker: ({ defaultValue, onChange, locale, customFormat, withTime, minDate, maxDate, calendarFunc, fieldRef, ...props }: DayPickerProps) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { FormControlProps } from '@chakra-ui/react';
|
|
3
3
|
export type FormGroupProps = Omit<FormControlProps, 'onChange' | 'defaultValue' | 'label'> & {
|
|
4
4
|
children?: ReactNode;
|
|
@@ -9,4 +9,4 @@ export type FormGroupProps = Omit<FormControlProps, 'onChange' | 'defaultValue'
|
|
|
9
9
|
label?: ReactNode;
|
|
10
10
|
showError?: boolean;
|
|
11
11
|
};
|
|
12
|
-
export declare const FormGroup: ({ children, errorMessage, helper, id, isRequired, label, showError, ...props }: FormGroupProps) => JSX.Element;
|
|
12
|
+
export declare const FormGroup: ({ children, errorMessage, helper, id, isRequired, label, showError, ...props }: FormGroupProps) => React.JSX.Element;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Dispatch, SetStateAction } from 'react';
|
|
1
|
+
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
import { InputProps } from '@chakra-ui/react';
|
|
3
|
-
export type InputDayPickerProps = {
|
|
3
|
+
export type InputDayPickerProps = Omit<InputProps, 'minDate' | 'maxDate' | 'defaultValue'> & {
|
|
4
4
|
name: string;
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
onChange: Dispatch<SetStateAction<string | undefined | null>>;
|
|
7
7
|
value?: string | Date | null;
|
|
8
8
|
locale?: string;
|
|
9
|
-
variant?: '
|
|
9
|
+
variant?: 'filled' | 'outline';
|
|
10
10
|
format?: string;
|
|
11
11
|
withTime?: boolean;
|
|
12
12
|
minDate?: Date | null | undefined;
|
|
13
13
|
maxDate?: Date | null | undefined;
|
|
14
14
|
calendarFunc?: (date: any) => 'after-max-date' | 'before-min-date' | undefined;
|
|
15
15
|
isDisabled?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare const InputDayPicker: ({ name, placeholder, value, onChange, locale, variant, format, withTime, minDate, maxDate, calendarFunc, isDisabled, ...inputProps }: InputDayPickerProps) => JSX.Element;
|
|
16
|
+
};
|
|
17
|
+
export declare const InputDayPicker: ({ name, placeholder, value, onChange, locale, variant, format, withTime, minDate, maxDate, calendarFunc, isDisabled, ...inputProps }: InputDayPickerProps) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export type Country = {
|
|
3
3
|
name: string;
|
|
4
4
|
flag: string;
|
|
@@ -10,10 +10,10 @@ export type Props = {
|
|
|
10
10
|
data: Country[];
|
|
11
11
|
onChange: (args: Country) => void;
|
|
12
12
|
};
|
|
13
|
-
export declare const SearchOnList: ({ options, onChange, iconComponent:
|
|
13
|
+
export declare const SearchOnList: ({ options, onChange, iconComponent: IconComponent, locale, ...selectProps }: {
|
|
14
14
|
[x: string]: any;
|
|
15
15
|
options: any;
|
|
16
16
|
onChange: any;
|
|
17
17
|
iconComponent: any;
|
|
18
18
|
locale: any;
|
|
19
|
-
}) => JSX.Element;
|
|
19
|
+
}) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import 'react-phone-number-input/style.css';
|
|
3
3
|
export type InputPhoneProps = {
|
|
4
4
|
locale?: string;
|
|
@@ -9,4 +9,4 @@ export type InputPhoneProps = {
|
|
|
9
9
|
};
|
|
10
10
|
export declare const isValidPhone: (val: string) => boolean;
|
|
11
11
|
export declare const formatPhoneIntl: (val: string) => string;
|
|
12
|
-
export declare const InputPhone: ({ locale, value, placeholder, isDisabled, inputProps, ...props }: InputPhoneProps) => JSX.Element;
|
|
12
|
+
export declare const InputPhone: ({ locale, value, placeholder, isDisabled, inputProps, ...props }: InputPhoneProps) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dispatch, SetStateAction } from 'react';
|
|
1
|
+
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
export interface ValueProps {
|
|
3
3
|
from: Date | null | undefined;
|
|
4
4
|
to: Date | null | undefined;
|
|
@@ -12,6 +12,6 @@ export type InputRangePickerProps = {
|
|
|
12
12
|
format?: string;
|
|
13
13
|
value?: ValueProps;
|
|
14
14
|
withTime?: boolean;
|
|
15
|
-
variant?: '
|
|
15
|
+
variant?: 'filled' | 'outline';
|
|
16
16
|
};
|
|
17
|
-
export declare const InputRangePicker: ({ fromLabel, toLabel, value, onChange, minDate, maxDate, withTime, format, variant, ...props }: InputRangePickerProps) => JSX.Element;
|
|
17
|
+
export declare const InputRangePicker: ({ fromLabel, toLabel, value, onChange, minDate, maxDate, withTime, format, variant, ...props }: InputRangePickerProps) => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { DrawerProps, ModalProps } from '@chakra-ui/react';
|
|
3
3
|
type ModalResponsiveProps = ModalProps & DrawerProps;
|
|
4
|
-
export declare const ModalResponsive: ({ isOpen, onClose, finalFocusRef, children, ...rest }: ModalResponsiveProps) => JSX.Element;
|
|
4
|
+
export declare const ModalResponsive: ({ isOpen, onClose, finalFocusRef, children, ...rest }: ModalResponsiveProps) => React.JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -32,7 +32,7 @@ export declare const PaginationButtonLastPage: FC<PropsWithChildren<Omit<IconBut
|
|
|
32
32
|
export declare const PaginationButtonNextPage: FC<PropsWithChildren<Omit<IconButtonProps, 'aria-label'>>>;
|
|
33
33
|
export declare const PaginationInfo: ({ ...rest }: {
|
|
34
34
|
[x: string]: any;
|
|
35
|
-
}) => JSX.Element;
|
|
35
|
+
}) => React.JSX.Element;
|
|
36
36
|
export type PaginationProps = StackProps & {
|
|
37
37
|
setPage: (page: number) => void;
|
|
38
38
|
page?: number;
|
|
@@ -40,4 +40,4 @@ export type PaginationProps = StackProps & {
|
|
|
40
40
|
totalItems?: number;
|
|
41
41
|
isLoadingPage?: boolean;
|
|
42
42
|
};
|
|
43
|
-
export declare const Pagination: ({ setPage, page, pageSize, totalItems, isLoadingPage, children, ...rest }: PaginationProps) => JSX.Element;
|
|
43
|
+
export declare const Pagination: ({ setPage, page, pageSize, totalItems, isLoadingPage, children, ...rest }: PaginationProps) => React.JSX.Element;
|
|
@@ -5,7 +5,8 @@ type CustomProps = {
|
|
|
5
5
|
onChange?(value?: string): void;
|
|
6
6
|
delay?: number;
|
|
7
7
|
clearLabel?: string;
|
|
8
|
+
inputProps?: object;
|
|
8
9
|
};
|
|
9
10
|
type SearchInputProps = Overwrite<InputProps, CustomProps>;
|
|
10
|
-
export declare const SearchInput: import("@chakra-ui/system").ComponentWithAs<"input", SearchInputProps>;
|
|
11
|
+
export declare const SearchInput: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"input", SearchInputProps>;
|
|
11
12
|
export {};
|
|
@@ -13,7 +13,7 @@ export type SelectProps<Option, IsMulti extends boolean = false, Group extends G
|
|
|
13
13
|
loadOptions?: (input: unknown) => TODO;
|
|
14
14
|
defaultOptions?: unknown | boolean;
|
|
15
15
|
debounceDelay?: number;
|
|
16
|
-
variant?: '
|
|
16
|
+
variant?: 'filled' | 'outline';
|
|
17
17
|
} & Props<Option, IsMulti, Group> & Omit<BoxProps, 'defaultValue'>;
|
|
18
18
|
export declare const Select: <Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: {
|
|
19
19
|
isAsync?: boolean | undefined;
|
|
@@ -24,8 +24,8 @@ export declare const Select: <Option, IsMulti extends boolean = false, Group ext
|
|
|
24
24
|
loadOptions?: ((input: unknown) => TODO) | undefined;
|
|
25
25
|
defaultOptions?: unknown | boolean;
|
|
26
26
|
debounceDelay?: number | undefined;
|
|
27
|
-
variant?: "
|
|
28
|
-
} & Omit<Pick<import("react-select/dist/declarations/src/Select").Props<Option, IsMulti, Group>, "aria-label" | "form" | "
|
|
27
|
+
variant?: "outline" | "filled" | undefined;
|
|
28
|
+
} & Omit<Pick<import("react-select/dist/declarations/src/Select").Props<Option, IsMulti, Group>, "aria-label" | "form" | "name" | "value" | "autoFocus" | "className" | "id" | "aria-errormessage" | "aria-invalid" | "aria-labelledby" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "inputValue" | "theme" | "required" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom"> & {
|
|
29
29
|
placeholder?: React.ReactNode;
|
|
30
30
|
tabIndex?: number | undefined;
|
|
31
31
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
@@ -71,7 +71,7 @@ export declare const Select: <Option, IsMulti extends boolean = false, Group ext
|
|
|
71
71
|
}) => string) | undefined;
|
|
72
72
|
styles?: import("react-select").StylesConfig<Option, IsMulti, Group> | undefined;
|
|
73
73
|
tabSelectsValue?: boolean | undefined;
|
|
74
|
-
} & {}, "value" | "onChange" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<Option, IsMulti, Group>, "aria-label" | "form" | "
|
|
74
|
+
} & {}, "value" | "onChange" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<Option, IsMulti, Group>, "aria-label" | "form" | "name" | "value" | "autoFocus" | "className" | "id" | "aria-errormessage" | "aria-invalid" | "aria-labelledby" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "inputValue" | "theme" | "required" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom"> & {
|
|
75
75
|
placeholder?: React.ReactNode;
|
|
76
76
|
tabIndex?: number | undefined;
|
|
77
77
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { TextareaProps } from '@chakra-ui/react';
|
|
3
3
|
export declare const Textarea: ({ onFocus, onBlur, onMouseEnter, onMouseLeave, variant, borderRadius, ...rest }: TextareaProps & {
|
|
4
4
|
onFocus?: (() => void) | undefined;
|
|
5
5
|
onBlur?: (() => void) | undefined;
|
|
6
6
|
onMouseEnter?: (() => void) | undefined;
|
|
7
7
|
onMouseLeave?: (() => void) | undefined;
|
|
8
|
-
}) => JSX.Element;
|
|
8
|
+
}) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { FlexProps } from '@chakra-ui/react';
|
|
3
|
-
export declare const BottomBar: (props: FlexProps) => JSX.Element;
|
|
3
|
+
export declare const BottomBar: (props: FlexProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { FlexProps } from '@chakra-ui/react';
|
|
3
|
-
export declare const LayoutContainer: (props: FlexProps) => JSX.Element;
|
|
3
|
+
export declare const LayoutContainer: (props: FlexProps) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ButtonProps, DrawerContentProps, FlexProps, StackProps, TextProps } from '@chakra-ui/react';
|
|
3
3
|
export type SideNavProps = {
|
|
4
4
|
isMobileMenuOpen: boolean;
|
|
@@ -10,10 +10,10 @@ export type SideNavMenuItemProps = {
|
|
|
10
10
|
export type SideNavMenuProps = {
|
|
11
11
|
textProps?: TextProps;
|
|
12
12
|
} & StackProps;
|
|
13
|
-
export declare const SideNav: ({ isMobileMenuOpen, onMobileMenuClose, children, ...props }: SideNavProps) => JSX.Element;
|
|
14
|
-
export declare const SideNavContainer: (props: StackProps) => JSX.Element;
|
|
15
|
-
export declare const SideNavHeader: ({ children, ...rest }: FlexProps) => JSX.Element;
|
|
16
|
-
export declare const SideNavBody: ({ children, ...rest }: StackProps) => JSX.Element;
|
|
17
|
-
export declare const SideNavFooter: ({ children, ...rest }: FlexProps) => JSX.Element;
|
|
18
|
-
export declare const SideNavMenu: ({ title, children, textProps, ...rest }: SideNavMenuProps) => JSX.Element;
|
|
19
|
-
export declare const SideNavMenuItem: ({ isActive, children, ...rest }: SideNavMenuItemProps) => JSX.Element;
|
|
13
|
+
export declare const SideNav: ({ isMobileMenuOpen, onMobileMenuClose, children, ...props }: SideNavProps) => React.JSX.Element;
|
|
14
|
+
export declare const SideNavContainer: (props: StackProps) => React.JSX.Element;
|
|
15
|
+
export declare const SideNavHeader: ({ children, ...rest }: FlexProps) => React.JSX.Element;
|
|
16
|
+
export declare const SideNavBody: ({ children, ...rest }: StackProps) => React.JSX.Element;
|
|
17
|
+
export declare const SideNavFooter: ({ children, ...rest }: FlexProps) => React.JSX.Element;
|
|
18
|
+
export declare const SideNavMenu: ({ title, children, textProps, ...rest }: SideNavMenuProps) => React.JSX.Element;
|
|
19
|
+
export declare const SideNavMenuItem: ({ isActive, children, ...rest }: SideNavMenuItemProps) => React.JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ReactComponentElement } from 'react';
|
|
1
|
+
import React, { ReactComponentElement } from 'react';
|
|
2
2
|
import { FlexProps, StackProps } from '@chakra-ui/react';
|
|
3
3
|
export type TopBarBackActionProps = {
|
|
4
4
|
backAction?: () => void;
|
|
5
5
|
rightInformation?: ReactComponentElement<any>;
|
|
6
6
|
} & FlexProps;
|
|
7
|
-
export declare const TopBar: (props: StackProps) => JSX.Element;
|
|
8
|
-
export declare const TopBarFirstElement: (props: FlexProps) => JSX.Element;
|
|
9
|
-
export declare const TopBarLastElement: (props: StackProps) => JSX.Element;
|
|
10
|
-
export declare const TopBarBackAction: ({ backAction, title, rightInformation, ...rest }: TopBarBackActionProps) => JSX.Element;
|
|
7
|
+
export declare const TopBar: (props: StackProps) => React.JSX.Element;
|
|
8
|
+
export declare const TopBarFirstElement: (props: FlexProps) => React.JSX.Element;
|
|
9
|
+
export declare const TopBarLastElement: (props: StackProps) => React.JSX.Element;
|
|
10
|
+
export declare const TopBarBackAction: ({ backAction, title, rightInformation, ...rest }: TopBarBackActionProps) => React.JSX.Element;
|
|
@@ -7,12 +7,16 @@ declare const _default: {
|
|
|
7
7
|
'@primary': (props: any) => {
|
|
8
8
|
bg: string;
|
|
9
9
|
color: string;
|
|
10
|
+
borderWidth: string;
|
|
11
|
+
borderStyle: string;
|
|
12
|
+
borderColor: string;
|
|
10
13
|
_focus: {
|
|
11
14
|
boxShadow: string;
|
|
12
15
|
};
|
|
13
16
|
_hover: {
|
|
14
17
|
bg: string;
|
|
15
18
|
color: string;
|
|
19
|
+
textDecoration: string;
|
|
16
20
|
_disabled: {
|
|
17
21
|
bg: string;
|
|
18
22
|
};
|
|
@@ -24,12 +28,16 @@ declare const _default: {
|
|
|
24
28
|
'@secondary': (props: any) => {
|
|
25
29
|
bg: string;
|
|
26
30
|
color: string;
|
|
31
|
+
borderWidth: string;
|
|
32
|
+
borderStyle: string;
|
|
33
|
+
borderColor: string;
|
|
27
34
|
_focus: {
|
|
28
35
|
boxShadow: string;
|
|
29
36
|
};
|
|
30
37
|
_hover: {
|
|
31
38
|
bg: string;
|
|
32
39
|
color: string;
|
|
40
|
+
textDecoration: string;
|
|
33
41
|
_disabled: {
|
|
34
42
|
bg: string;
|
|
35
43
|
};
|
|
@@ -41,12 +49,16 @@ declare const _default: {
|
|
|
41
49
|
'@danger': (props: any) => {
|
|
42
50
|
bg: string;
|
|
43
51
|
color: string;
|
|
52
|
+
borderWidth: string;
|
|
53
|
+
borderStyle: string;
|
|
54
|
+
borderColor: string;
|
|
44
55
|
_focus: {
|
|
45
56
|
boxShadow: string;
|
|
46
57
|
};
|
|
47
58
|
_hover: {
|
|
48
59
|
bg: string;
|
|
49
60
|
color: string;
|
|
61
|
+
textDecoration: string;
|
|
50
62
|
_disabled: {
|
|
51
63
|
bg: string;
|
|
52
64
|
};
|
|
@@ -59,19 +71,25 @@ declare const _default: {
|
|
|
59
71
|
height: string;
|
|
60
72
|
margin: number;
|
|
61
73
|
padding: number;
|
|
62
|
-
_hover: {
|
|
63
|
-
textDecoration: string;
|
|
64
|
-
color: string;
|
|
65
|
-
};
|
|
66
|
-
_active: {
|
|
67
|
-
textDecoration: string;
|
|
68
|
-
color: string;
|
|
69
|
-
};
|
|
70
74
|
bg: string;
|
|
71
75
|
color: string;
|
|
76
|
+
borderWidth: string;
|
|
77
|
+
borderStyle: string;
|
|
78
|
+
borderColor: string;
|
|
72
79
|
_focus: {
|
|
73
80
|
boxShadow: string;
|
|
74
81
|
};
|
|
82
|
+
_hover: {
|
|
83
|
+
bg: string;
|
|
84
|
+
color: string;
|
|
85
|
+
textDecoration: string;
|
|
86
|
+
_disabled: {
|
|
87
|
+
bg: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
_active: {
|
|
91
|
+
bg: string;
|
|
92
|
+
};
|
|
75
93
|
};
|
|
76
94
|
'@linkNeutral': (props: any) => {
|
|
77
95
|
height: string;
|
|
@@ -79,10 +97,12 @@ declare const _default: {
|
|
|
79
97
|
padding: number;
|
|
80
98
|
_hover: {
|
|
81
99
|
textDecoration: string;
|
|
82
|
-
color: string;
|
|
83
100
|
};
|
|
84
101
|
bg: string;
|
|
85
102
|
color: string;
|
|
103
|
+
borderWidth: string;
|
|
104
|
+
borderStyle: string;
|
|
105
|
+
borderColor: string;
|
|
86
106
|
_focus: {
|
|
87
107
|
boxShadow: string;
|
|
88
108
|
};
|
|
@@ -93,12 +113,16 @@ declare const _default: {
|
|
|
93
113
|
'@white': (props: any) => {
|
|
94
114
|
bg: string;
|
|
95
115
|
color: string;
|
|
116
|
+
borderWidth: string;
|
|
117
|
+
borderStyle: string;
|
|
118
|
+
borderColor: string;
|
|
96
119
|
_focus: {
|
|
97
120
|
boxShadow: string;
|
|
98
121
|
};
|
|
99
122
|
_hover: {
|
|
100
123
|
bg: string;
|
|
101
124
|
color: string;
|
|
125
|
+
textDecoration: string;
|
|
102
126
|
_disabled: {
|
|
103
127
|
bg: string;
|
|
104
128
|
};
|
|
@@ -110,12 +134,16 @@ declare const _default: {
|
|
|
110
134
|
'@whiteNeutral': (props: any) => {
|
|
111
135
|
bg: string;
|
|
112
136
|
color: string;
|
|
137
|
+
borderWidth: string;
|
|
138
|
+
borderStyle: string;
|
|
139
|
+
borderColor: string;
|
|
113
140
|
_focus: {
|
|
114
141
|
boxShadow: string;
|
|
115
142
|
};
|
|
116
143
|
_hover: {
|
|
117
144
|
bg: string;
|
|
118
145
|
color: string;
|
|
146
|
+
textDecoration: string;
|
|
119
147
|
_disabled: {
|
|
120
148
|
bg: string;
|
|
121
149
|
};
|
|
@@ -2,7 +2,9 @@ export { default as Badge } from './badge';
|
|
|
2
2
|
export { default as Button } from './button';
|
|
3
3
|
export { default as Checkbox } from './checkbox';
|
|
4
4
|
export { default as Drawer } from './drawer';
|
|
5
|
+
export { default as Form } from './form';
|
|
5
6
|
export { default as Input } from './input';
|
|
7
|
+
export { default as Menu } from './menu';
|
|
6
8
|
export { default as NumberInput } from './number-input';
|
|
7
9
|
export { default as PinInput } from './pin-input';
|
|
8
10
|
export { default as Radio } from './radio';
|
|
@@ -9,6 +9,9 @@ declare const _default: {
|
|
|
9
9
|
field: {
|
|
10
10
|
bg: string;
|
|
11
11
|
borderColor: string;
|
|
12
|
+
_hover: {
|
|
13
|
+
bg: string;
|
|
14
|
+
};
|
|
12
15
|
_focus: {
|
|
13
16
|
borderColor: string;
|
|
14
17
|
};
|
|
@@ -23,17 +26,17 @@ declare const _default: {
|
|
|
23
26
|
filled: (props: any) => {
|
|
24
27
|
field: {
|
|
25
28
|
bg: string;
|
|
26
|
-
borderWidth: string;
|
|
27
29
|
borderColor: string;
|
|
30
|
+
borderWidth: string;
|
|
28
31
|
_hover: {
|
|
29
32
|
bg: string;
|
|
30
|
-
borderColor: string;
|
|
31
33
|
};
|
|
32
34
|
_focus: {
|
|
33
35
|
bg: string;
|
|
34
36
|
borderColor: string;
|
|
35
37
|
};
|
|
36
38
|
_focusVisible: {
|
|
39
|
+
bg: string;
|
|
37
40
|
boxShadow: string;
|
|
38
41
|
};
|
|
39
42
|
};
|
|
@@ -16,6 +16,9 @@ declare const _default: {
|
|
|
16
16
|
bg: string;
|
|
17
17
|
borderColor: string;
|
|
18
18
|
borderRadius: string;
|
|
19
|
+
_hover: {
|
|
20
|
+
bg: string;
|
|
21
|
+
};
|
|
19
22
|
_focus: {
|
|
20
23
|
borderColor: string;
|
|
21
24
|
};
|
|
@@ -35,13 +38,13 @@ declare const _default: {
|
|
|
35
38
|
borderRadius: string;
|
|
36
39
|
_hover: {
|
|
37
40
|
bg: string;
|
|
38
|
-
borderColor: string;
|
|
39
41
|
};
|
|
40
42
|
_focus: {
|
|
41
43
|
bg: string;
|
|
42
44
|
borderColor: string;
|
|
43
45
|
};
|
|
44
46
|
_focusVisible: {
|
|
47
|
+
bg: string;
|
|
45
48
|
boxShadow: string;
|
|
46
49
|
};
|
|
47
50
|
};
|
|
@@ -3,6 +3,9 @@ declare const _default: {
|
|
|
3
3
|
outline: (props: any) => {
|
|
4
4
|
bg: string;
|
|
5
5
|
borderColor: string;
|
|
6
|
+
_hover: {
|
|
7
|
+
bg: string;
|
|
8
|
+
};
|
|
6
9
|
_focus: {
|
|
7
10
|
borderColor: string;
|
|
8
11
|
};
|
|
@@ -12,17 +15,17 @@ declare const _default: {
|
|
|
12
15
|
};
|
|
13
16
|
filled: (props: any) => {
|
|
14
17
|
bg: string;
|
|
15
|
-
borderWidth: string;
|
|
16
18
|
borderColor: string;
|
|
19
|
+
borderWidth: string;
|
|
17
20
|
_hover: {
|
|
18
21
|
bg: string;
|
|
19
|
-
borderColor: string;
|
|
20
22
|
};
|
|
21
23
|
_focus: {
|
|
22
24
|
bg: string;
|
|
23
25
|
borderColor: string;
|
|
24
26
|
};
|
|
25
27
|
_focusVisible: {
|
|
28
|
+
bg: string;
|
|
26
29
|
boxShadow: string;
|
|
27
30
|
};
|
|
28
31
|
};
|
|
@@ -10,6 +10,9 @@ declare const _default: {
|
|
|
10
10
|
outline: (props: any) => {
|
|
11
11
|
bg: string;
|
|
12
12
|
borderColor: string;
|
|
13
|
+
_hover: {
|
|
14
|
+
bg: string;
|
|
15
|
+
};
|
|
13
16
|
_focus: {
|
|
14
17
|
borderColor: string;
|
|
15
18
|
};
|
|
@@ -19,17 +22,17 @@ declare const _default: {
|
|
|
19
22
|
};
|
|
20
23
|
filled: (props: any) => {
|
|
21
24
|
bg: string;
|
|
22
|
-
borderWidth: string;
|
|
23
25
|
borderColor: string;
|
|
26
|
+
borderWidth: string;
|
|
24
27
|
_hover: {
|
|
25
28
|
bg: string;
|
|
26
|
-
borderColor: string;
|
|
27
29
|
};
|
|
28
30
|
_focus: {
|
|
29
31
|
bg: string;
|
|
30
32
|
borderColor: string;
|
|
31
33
|
};
|
|
32
34
|
_focusVisible: {
|
|
35
|
+
bg: string;
|
|
33
36
|
boxShadow: string;
|
|
34
37
|
};
|
|
35
38
|
};
|
|
@@ -11,7 +11,7 @@ export declare const colors: {
|
|
|
11
11
|
800: string;
|
|
12
12
|
900: string;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
green: {
|
|
15
15
|
50: string;
|
|
16
16
|
100: string;
|
|
17
17
|
200: string;
|
|
@@ -23,6 +23,9 @@ export declare const colors: {
|
|
|
23
23
|
800: string;
|
|
24
24
|
900: string;
|
|
25
25
|
};
|
|
26
|
+
gradients: {
|
|
27
|
+
primary: string;
|
|
28
|
+
};
|
|
26
29
|
red: {
|
|
27
30
|
50: string;
|
|
28
31
|
100: string;
|
|
@@ -35,7 +38,8 @@ export declare const colors: {
|
|
|
35
38
|
800: string;
|
|
36
39
|
900: string;
|
|
37
40
|
};
|
|
38
|
-
|
|
41
|
+
background: string;
|
|
42
|
+
gray: {
|
|
39
43
|
50: string;
|
|
40
44
|
100: string;
|
|
41
45
|
200: string;
|
|
@@ -47,7 +51,7 @@ export declare const colors: {
|
|
|
47
51
|
800: string;
|
|
48
52
|
900: string;
|
|
49
53
|
};
|
|
50
|
-
|
|
54
|
+
orange: {
|
|
51
55
|
50: string;
|
|
52
56
|
100: string;
|
|
53
57
|
200: string;
|
|
@@ -59,8 +63,4 @@ export declare const colors: {
|
|
|
59
63
|
800: string;
|
|
60
64
|
900: string;
|
|
61
65
|
};
|
|
62
|
-
gradients: {
|
|
63
|
-
primary: string;
|
|
64
|
-
};
|
|
65
|
-
background: string;
|
|
66
66
|
};
|