@smart-factor/gem-ui-components 0.0.38 → 0.0.40
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/dist/Drawer-D8kHnT0B.js +2111 -0
- package/dist/Stack-Dr1yNuib.js +6617 -0
- package/dist/Tree-B4Bd33fe.js +2958 -0
- package/dist/components/AccordionSummary/AccordionSummary.d.ts +7 -0
- package/dist/components/AccordionSummary/AccordionSummary.stories.d.ts +8 -0
- package/dist/components/AccordionSummary/AccordionSummary.styles.d.ts +7 -0
- package/dist/components/Button/Button.d.ts +8 -0
- package/dist/components/Button/Button.stories.d.ts +8 -0
- package/dist/components/Button/Button.styles.d.ts +6 -0
- package/dist/components/Button/ButtonAdd.d.ts +3 -0
- package/dist/components/ButtonWithIcon/ButtonWithIcon.d.ts +10 -0
- package/dist/components/ButtonWithIcon/ButtonWithIcon.stories.d.ts +7 -0
- package/dist/components/Dialog/Dialog.d.ts +3 -0
- package/dist/components/Dialog/Dialog.stories.d.ts +7 -0
- package/dist/components/Dialog/Dialog.styles.d.ts +11 -0
- package/dist/components/Dialog/index.d.ts +2 -0
- package/dist/components/Dialog/types.d.ts +9 -0
- package/dist/components/Drawer/Drawer.d.ts +15 -0
- package/dist/components/Drawer/Drawer.stories.d.ts +8 -0
- package/dist/components/Drawer/DrawerContent.d.ts +6 -0
- package/dist/components/Drawer/DrawerFooter.d.ts +6 -0
- package/dist/components/Drawer/DrawerHeader.d.ts +7 -0
- package/dist/components/Drawer/index.d.ts +1 -0
- package/dist/components/Drawer/index.js +4 -0
- package/dist/components/Dropzone/Dropzone.d.ts +7 -0
- package/dist/components/Dropzone/Dropzone.stories.d.ts +9 -0
- package/dist/components/Dropzone/Dropzone.styles.d.ts +17 -0
- package/dist/components/Dropzone/DropzoneField.d.ts +12 -0
- package/dist/components/Dropzone/const.d.ts +12 -0
- package/dist/components/Dropzone/index.d.ts +3 -0
- package/dist/components/ElementsPicker/ElementsPicker.d.ts +8 -0
- package/dist/components/ElementsPicker/ElementsPicker.stories.d.ts +8 -0
- package/dist/components/ElementsPicker/ElementsPickerElement.d.ts +9 -0
- package/dist/components/ElementsPicker/index.d.ts +2 -0
- package/dist/components/FixedActionsBottomPanel/FixedActionsBottomPanel.d.ts +18 -0
- package/dist/components/FixedActionsBottomPanel/FixedActionsBottomPanel.stories.d.ts +13 -0
- package/dist/components/FixedActionsBottomPanel/FixedActionsBottomPanel.styles.d.ts +6 -0
- package/dist/components/FormComponents/Autocomplete/Autocomplete.d.ts +4 -0
- package/dist/components/FormComponents/Autocomplete/Autocomplete.stories.d.ts +11 -0
- package/dist/components/FormComponents/Autocomplete/Autocomplete.styles.d.ts +7 -0
- package/dist/components/FormComponents/Autocomplete/index.d.ts +2 -0
- package/dist/components/FormComponents/Autocomplete/types.d.ts +33 -0
- package/dist/components/FormComponents/ContextualSearch/ContextualSearch.d.ts +40 -0
- package/dist/components/FormComponents/ContextualSearch/ContextualSearch.stories.d.ts +15 -0
- package/dist/components/FormComponents/ContextualSearch/ContextualSearch.styles.d.ts +4 -0
- package/dist/components/FormComponents/ContextualSearch/ContextualSearchControlled.d.ts +9 -0
- package/dist/components/FormComponents/ContextualSearch/ContextualSearchListListbox.d.ts +7 -0
- package/dist/components/FormComponents/ContextualSearch/index.d.ts +2 -0
- package/dist/components/FormComponents/ContextualSearch/mock.d.ts +13 -0
- package/dist/components/FormComponents/DatePicker/DatePicker.d.ts +12 -0
- package/dist/components/FormComponents/DatePicker/DatePicker.stories.d.ts +9 -0
- package/dist/components/FormComponents/DatePicker/DatePicker.styles.d.ts +7 -0
- package/dist/components/FormComponents/DateTimePicker/DateTimePicker.d.ts +12 -0
- package/dist/components/FormComponents/DateTimePicker/DateTimePicker.stories.d.ts +9 -0
- package/dist/components/FormComponents/DateTimePicker/DateTimePicker.styles.d.ts +7 -0
- package/dist/components/FormComponents/Input/Input.d.ts +11 -0
- package/dist/components/FormComponents/Input/Input.stories.d.ts +11 -0
- package/dist/components/FormComponents/Input/Input.styles.d.ts +3 -0
- package/dist/components/FormComponents/RadioChips/RadioChips.d.ts +21 -0
- package/dist/components/FormComponents/RadioChips/RadioChips.stories.d.ts +9 -0
- package/dist/components/FormComponents/RadioChips/RadioChips.styles.d.ts +10 -0
- package/dist/components/FormComponents/SearchInput/SearchInput.d.ts +11 -0
- package/dist/components/FormComponents/SearchInput/SearchInput.stories.d.ts +9 -0
- package/dist/components/FormComponents/SearchInput/SearchInput.styles.d.ts +1 -0
- package/dist/components/FormComponents/Select/Select.d.ts +30 -0
- package/dist/components/FormComponents/Select/Select.stories.d.ts +11 -0
- package/dist/components/FormComponents/Select/Select.styles.d.ts +4 -0
- package/dist/components/FormComponents/index.d.ts +9 -0
- package/dist/components/LoadingBackdrop/LoadingBackdrop.d.ts +7 -0
- package/dist/components/LoadingBackdrop/LoadingBackdrop.stories.d.ts +7 -0
- package/dist/components/LoadingBackdrop/index.d.ts +1 -0
- package/dist/components/ResizableWrapper/ResizableWrapper.d.ts +11 -0
- package/dist/components/ResizableWrapper/ResizableWrapper.stories.d.ts +7 -0
- package/dist/components/ResizableWrapper/ResizableWrapper.styles.d.ts +10 -0
- package/dist/components/SimpleAutocomplete/SimpleAutocomplete.d.ts +3 -0
- package/dist/components/SimpleAutocomplete/SimpleAutocomplete.stories.d.ts +11 -0
- package/dist/components/SimpleAutocomplete/index.d.ts +1 -0
- package/dist/components/SimpleInput/SimpleInput.d.ts +9 -0
- package/dist/components/SimpleInput/SimpleInput.stories.d.ts +7 -0
- package/dist/components/SimpleSelect/SimpleSelect.d.ts +14 -0
- package/dist/components/SimpleSelect/SimpleSelect.stories.d.ts +7 -0
- package/dist/components/Stepper/Stepper.d.ts +13 -0
- package/dist/components/Stepper/Stepper.stories.d.ts +7 -0
- package/dist/components/Stepper/Stepper.styles.d.ts +9 -0
- package/dist/components/StickyContainer/StickyContainer.d.ts +7 -0
- package/dist/components/StickyContainer/StickyContainer.stories.d.ts +7 -0
- package/dist/components/StickyContainer/StickyContainer.styles.d.ts +7 -0
- package/dist/components/TableComponents/ContextMenu/ContextMenu.d.ts +6 -0
- package/dist/components/TableComponents/ContextMenu/ContextMenu.stories.d.ts +7 -0
- package/dist/components/TableComponents/ContextMenu/ContextMenu.styles.d.ts +1 -0
- package/dist/components/TableComponents/ContextMenu/ContextMenuContext.d.ts +7 -0
- package/dist/components/TableComponents/ContextMenu/ContextMenuItem.d.ts +8 -0
- package/dist/components/TableComponents/ContextMenu/ContextMenuPropsContext/ContextMenuPropsContext.d.ts +6 -0
- package/dist/components/TableComponents/ContextMenu/ContextMenuPropsContext/useContextMenuProps.d.ts +3 -0
- package/dist/components/TableComponents/ContextMenu/index.d.ts +2 -0
- package/dist/components/TableComponents/TableActions/TableActions.d.ts +7 -0
- package/dist/components/TableComponents/TableActions/TableActions.stories.d.ts +7 -0
- package/dist/components/TableComponents/TableActions/index.d.ts +2 -0
- package/dist/components/TableComponents/TableExportButton/TableExportButton.d.ts +9 -0
- package/dist/components/TableComponents/TableExportButton/index.d.ts +1 -0
- package/dist/components/TableComponents/TableRecord/TableRecord.d.ts +8 -0
- package/dist/components/TableComponents/TableRecord/index.d.ts +1 -0
- package/dist/components/TableComponents/TableWithPagination/TableWithPagination.d.ts +4 -0
- package/dist/components/TableComponents/TableWithPagination/TableWithPagination.stories.d.ts +13 -0
- package/dist/components/TableComponents/TableWithPagination/TableWithPaginationExport.d.ts +0 -0
- package/dist/components/TableComponents/TableWithPagination/TableWrapper.d.ts +8 -0
- package/dist/components/TableComponents/TableWithPagination/types.d.ts +52 -0
- package/dist/components/TableComponents/index.d.ts +5 -0
- package/dist/components/TabsPanel/TabsPanel.d.ts +14 -0
- package/dist/components/TabsPanel/TabsPanel.stories.d.ts +7 -0
- package/dist/components/TabsPanel/TabsPanel.styles.d.ts +8 -0
- package/dist/components/Toast/Toast.stories.d.ts +7 -0
- package/dist/components/Toast/Toast.styles.d.ts +12 -0
- package/dist/components/Toast/ToastContent.d.ts +4 -0
- package/dist/components/Toast/errorToast.d.ts +1 -0
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/components/Toast/successToast.d.ts +1 -0
- package/dist/components/Tree/Tree.d.ts +18 -0
- package/dist/components/Tree/Tree.stories.d.ts +7 -0
- package/dist/components/Tree/index.d.ts +1 -0
- package/dist/components/Tree/index.js +4 -0
- package/dist/consts/data-grid.d.ts +122 -0
- package/dist/helpers/columns/getBooleanColumn.d.ts +6 -0
- package/dist/helpers/columns/getDateColumn.d.ts +6 -0
- package/dist/helpers/columns/getNumericColumn.d.ts +6 -0
- package/dist/helpers/columns/getStaticColumn.d.ts +6 -0
- package/dist/helpers/columns/getStringColumn.d.ts +6 -0
- package/dist/helpers/columns/index.d.ts +5 -0
- package/dist/helpers/date/formatDate.d.ts +3 -0
- package/dist/helpers/date/index.d.ts +1 -0
- package/dist/helpers/index.d.ts +2 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/useContextMenu.d.ts +8 -0
- package/dist/hooks/useDataGridState.d.ts +9 -0
- package/dist/hooks/useGetFileUrl.d.ts +5 -0
- package/dist/hooks/useKeepDefinedValue.d.ts +1 -0
- package/dist/hooks/useScrollPosition.d.ts +2 -0
- package/dist/main.d.ts +27 -0
- package/dist/main.js +39250 -0
- package/dist/providers/GemUIComponentsProvider.d.ts +4 -0
- package/dist/providers/ToasterProvider.d.ts +1 -0
- package/dist/theme/theme.d.ts +19 -0
- package/dist/types/function.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { AccordionSummaryProps as MuiAccordionSummaryProps } from '@mui/material';
|
|
3
|
+
|
|
4
|
+
export type AccordionSummaryProps = Omit<MuiAccordionSummaryProps, 'expandIcon'> & {
|
|
5
|
+
isSub?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const AccordionSummary: FC<AccordionSummaryProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AccordionSummary } from './AccordionSummary';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof AccordionSummary>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof meta>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const Subdirectory: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledAccordionSummary: import('@emotion/styled').StyledComponent<import('@mui/material').AccordionSummaryOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
+
}, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "expandIcon"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
5
|
+
export declare const StyledAccordionSummarySub: import('@emotion/styled').StyledComponent<import('@mui/material').AccordionSummaryOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
7
|
+
}, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "expandIcon"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ButtonProps as ButtonPropsMUI } from '@mui/material';
|
|
2
|
+
|
|
3
|
+
export interface ButtonProps extends ButtonPropsMUI {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
width?: string;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function Button({ children, width, disabled, loading, ...rest }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Button } from './Button';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof Button>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof meta>;
|
|
7
|
+
export declare const Docs: Story;
|
|
8
|
+
export declare const WithLoading: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledButton: import('@emotion/styled').StyledComponent<import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import('react').RefObject<HTMLButtonElement> | null | undefined;
|
|
4
|
+
}, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "href" | "color" | "size" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon" | "variant"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
5
|
+
width?: string | undefined;
|
|
6
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ButtonProps } from '../Button/Button';
|
|
2
|
+
|
|
3
|
+
export interface ButtonWithIconProps extends ButtonProps {
|
|
4
|
+
Icon: React.ReactNode;
|
|
5
|
+
variant: ButtonProps['variant'];
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
iconPosition: 'end' | 'start';
|
|
8
|
+
width?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const ButtonWithIcon: ({ children, Icon, variant, width, onClick, iconPosition, ...rest }: ButtonWithIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledDialog: import('@emotion/styled').StyledComponent<import('@mui/material').DialogProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
3
|
+
export declare const StyledHeaderWrapper: import('@emotion/styled').StyledComponent<import('@mui/material').StackOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
5
|
+
}, keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
6
|
+
export declare const StyledDialogTitle: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
7
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import('react').RefObject<HTMLSpanElement> | null | undefined;
|
|
8
|
+
}, "className" | "style" | "classes" | "children" | "sx" | "p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "align" | "variant" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
9
|
+
export declare const StyledDialogSubtitle: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
10
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import('react').RefObject<HTMLSpanElement> | null | undefined;
|
|
11
|
+
}, "className" | "style" | "classes" | "children" | "sx" | "p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "align" | "variant" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DialogProps as MuiDialogProps } from '@mui/material';
|
|
2
|
+
|
|
3
|
+
export interface DialogHeaderProps {
|
|
4
|
+
title: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
disableBackdropClick?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export type DialogProps = MuiDialogProps & DialogHeaderProps;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DrawerProps as MuiDrawerProps } from '@mui/material';
|
|
2
|
+
import { DrawerContentProps } from './DrawerContent';
|
|
3
|
+
import { DrawerFooterProps } from './DrawerFooter';
|
|
4
|
+
import { DrawerHeaderProps } from './DrawerHeader';
|
|
5
|
+
|
|
6
|
+
export type DrawerProps = MuiDrawerProps & {
|
|
7
|
+
width?: number;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const Drawer: {
|
|
11
|
+
({ anchor, children, width, loading, ...restProps }: DrawerProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
Header: import('react').FC<DrawerHeaderProps>;
|
|
13
|
+
Content: import('react').FC<DrawerContentProps>;
|
|
14
|
+
Footer: import('react').FC<DrawerFooterProps>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Drawer } from './Drawer';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof Drawer>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof meta>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const WithLoader: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Drawer } from './Drawer';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface DropzoneProps {
|
|
2
|
+
onChange: (file: File[] | undefined) => void;
|
|
3
|
+
file?: File;
|
|
4
|
+
isImage?: boolean;
|
|
5
|
+
errorMessage?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const Dropzone: ({ onChange, file, isImage, errorMessage, }: DropzoneProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Dropzone } from './Dropzone';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof Dropzone>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof meta>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const Error: Story;
|
|
9
|
+
export declare const FileUploaded: Story;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const FileNameText: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import('react').RefObject<HTMLSpanElement> | null | undefined;
|
|
4
|
+
}, "className" | "style" | "classes" | "children" | "sx" | "p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "align" | "variant" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
5
|
+
export declare const HighlightedDropzoneText: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
6
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import('react').RefObject<HTMLSpanElement> | null | undefined;
|
|
7
|
+
}, "className" | "style" | "classes" | "children" | "sx" | "p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "align" | "variant" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
8
|
+
export declare const UploadedFileIconWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
9
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
+
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
11
|
+
export declare const StyledImage: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
12
|
+
export declare const StyledDropzoneWrapper: import('@emotion/styled').StyledComponent<import('@mui/material').StackOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
13
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
14
|
+
}, keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
15
|
+
isUploaded: boolean;
|
|
16
|
+
isError: boolean;
|
|
17
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
2
|
+
|
|
3
|
+
interface DropFieldProps<T extends FieldValues> {
|
|
4
|
+
name: Path<T>;
|
|
5
|
+
control: Control<T>;
|
|
6
|
+
label?: string;
|
|
7
|
+
isImage?: boolean;
|
|
8
|
+
errorMessage?: string;
|
|
9
|
+
onChange: (file: File | null) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const DropzoneField: <T extends FieldValues>({ name, label, control, isImage, onChange: propsOnChange, ...rest }: DropFieldProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const UPLOADED_FILE_MAX_SIZE = 50000000000;
|
|
2
|
+
export declare const ACCEPTED_FILE_TYPES: {
|
|
3
|
+
'image/png': string[];
|
|
4
|
+
'image/jpg': string[];
|
|
5
|
+
'image/jpeg': string[];
|
|
6
|
+
'image/heic': string[];
|
|
7
|
+
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': string[];
|
|
8
|
+
'application/vnd.ms-excel': string[];
|
|
9
|
+
'application/msword': string[];
|
|
10
|
+
'application/vnd.openxmlformats-officedocument.wordprocessingml.document': string[];
|
|
11
|
+
'application/pdf': string[];
|
|
12
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ToggleButtonGroupProps } from '@mui/material';
|
|
3
|
+
|
|
4
|
+
export type ElementsPickerProps = ToggleButtonGroupProps & {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
errorMessage?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const ElementsPicker: import('react').ForwardRefExoticComponent<Omit<ElementsPickerProps, "ref"> & import('react').RefAttributes<unknown>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ElementsPicker } from './ElementsPicker';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof ElementsPicker>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof meta>;
|
|
7
|
+
export declare const Exclusive: Story;
|
|
8
|
+
export declare const NonExclusive: Story;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface FixedActionsBottomPanelProps {
|
|
4
|
+
cancelOnClick?: () => void;
|
|
5
|
+
offset: number;
|
|
6
|
+
primaryLabel?: string;
|
|
7
|
+
primaryLoading?: boolean;
|
|
8
|
+
primaryOnClick?: () => void;
|
|
9
|
+
secondaryLabel?: string;
|
|
10
|
+
secondaryLoading?: boolean;
|
|
11
|
+
secondaryOnClick?: () => void;
|
|
12
|
+
tertiaryLabel?: string;
|
|
13
|
+
tertiaryLoading?: boolean;
|
|
14
|
+
tertiaryOnClick?: () => void;
|
|
15
|
+
tertiaryIcon?: ReactNode;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare function FixedActionsBottomPanel({ primaryLabel, primaryLoading, primaryOnClick, secondaryLabel, secondaryLoading, secondaryOnClick, tertiaryLabel, tertiaryLoading, tertiaryIcon, tertiaryOnClick, cancelOnClick, offset, disabled, }: FixedActionsBottomPanelProps): import('react').ReactPortal;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FixedActionsBottomPanel } from './FixedActionsBottomPanel';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof FixedActionsBottomPanel>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof meta>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const WithPrimary: Story;
|
|
9
|
+
export declare const WithSecondary: Story;
|
|
10
|
+
export declare const WithTertiary: Story;
|
|
11
|
+
export declare const WithCustomTertiaryIcon: Story;
|
|
12
|
+
export declare const WithLoading: Story;
|
|
13
|
+
export declare const Disabled: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const FixedActionsBottomPanelWrapper: import('@emotion/styled').StyledComponent<import('@mui/material').StackOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
+
}, keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
5
|
+
offset: number;
|
|
6
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
|
+
import { AutocompleteProps, BaseOption } from './types';
|
|
3
|
+
|
|
4
|
+
export declare const Autocomplete: <T extends FieldValues, B extends BaseOption>({ name, control, multiple, options, idGetter, ...props }: AutocompleteProps<T, B>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import { Autocomplete } from './Autocomplete';
|
|
4
|
+
import { AutocompleteProps, BaseOption } from './types';
|
|
5
|
+
|
|
6
|
+
declare const meta: Meta<typeof Autocomplete>;
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<AutocompleteProps<FieldValues, BaseOption>>;
|
|
9
|
+
export declare const StringOptions: Story;
|
|
10
|
+
export declare const ObjectOptions: Story;
|
|
11
|
+
export declare const MultipleSelection: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AutocompleteProps } from '@mui/material';
|
|
2
|
+
|
|
3
|
+
type StyledAutocompleteProps<T> = AutocompleteProps<T, boolean, boolean, boolean> & {
|
|
4
|
+
isError?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const StyledAutocomplete: <T>(props: StyledAutocompleteProps<T>) => JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { SyntheticEvent } from 'react';
|
|
2
|
+
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
3
|
+
import { AutocompleteChangeDetails, AutocompleteChangeReason } from '@mui/material';
|
|
4
|
+
|
|
5
|
+
export type BaseOption = string | {
|
|
6
|
+
id?: any;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
export interface BaseAutocompleteProps<B extends Partial<BaseOption>> {
|
|
10
|
+
options: B[];
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
label: string;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
size?: 'small' | 'medium';
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
required?: boolean;
|
|
17
|
+
multiple?: boolean;
|
|
18
|
+
freeSolo?: boolean;
|
|
19
|
+
clearIcon?: React.ReactNode;
|
|
20
|
+
['data-testId']?: string;
|
|
21
|
+
testId?: string;
|
|
22
|
+
idGetter?: (option: B) => any;
|
|
23
|
+
value?: B | B[] | null;
|
|
24
|
+
onChange?: (event: SyntheticEvent<Element, Event>, value: string | B | (string | B)[] | null, reason: AutocompleteChangeReason, details?: AutocompleteChangeDetails<B> | undefined) => void;
|
|
25
|
+
getOptionLabel: (option: string | B) => string;
|
|
26
|
+
onInputChange?: (event: SyntheticEvent<Element, Event>, value: string) => void;
|
|
27
|
+
inputValue?: string;
|
|
28
|
+
filterOptions?: (options: B[]) => B[];
|
|
29
|
+
}
|
|
30
|
+
export interface AutocompleteProps<T extends FieldValues, B extends Partial<BaseOption>> extends Omit<BaseAutocompleteProps<B>, 'value' | 'onChange'> {
|
|
31
|
+
name: Path<T>;
|
|
32
|
+
control: Control<T>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { FilterOptionsState } from '@mui/material';
|
|
3
|
+
|
|
4
|
+
interface ContextualSearchBaseProps<T> {
|
|
5
|
+
options: T[];
|
|
6
|
+
isOptionEqualToValue: (option: T, value: T) => boolean;
|
|
7
|
+
renderOption: (option: T) => ReactNode;
|
|
8
|
+
label: string;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
fullWidth?: boolean;
|
|
13
|
+
listBoxMaxHeight?: number | `${number}px`;
|
|
14
|
+
onLastOptionInView: () => void;
|
|
15
|
+
onInputChange: (event: React.SyntheticEvent<Element, Event>, value: string) => void;
|
|
16
|
+
onAddNewEntry?: () => void;
|
|
17
|
+
errorMessage?: string;
|
|
18
|
+
getOptionKey: (option: T) => string | number;
|
|
19
|
+
getOptionLabel: (option: T) => string;
|
|
20
|
+
filterOptions?: (options: T[], state: FilterOptionsState<T>) => T[];
|
|
21
|
+
}
|
|
22
|
+
type ContextualSearchPropsByMultiple<T> = {
|
|
23
|
+
multiple: false;
|
|
24
|
+
value: T | null;
|
|
25
|
+
onChange: (value: T | null) => void;
|
|
26
|
+
} | {
|
|
27
|
+
multiple: true;
|
|
28
|
+
value: T[];
|
|
29
|
+
onChange: (value: T[]) => void;
|
|
30
|
+
};
|
|
31
|
+
type ContextualSearchPropsByType = {
|
|
32
|
+
listboxType: 'default';
|
|
33
|
+
listboxPortalId?: string;
|
|
34
|
+
} | {
|
|
35
|
+
listboxType: 'list';
|
|
36
|
+
listboxPortalId: string;
|
|
37
|
+
};
|
|
38
|
+
export type ContextualSearchProps<T> = ContextualSearchBaseProps<T> & ContextualSearchPropsByMultiple<T> & ContextualSearchPropsByType;
|
|
39
|
+
export declare function ContextualSearch<T>({ listboxType, ...props }: ContextualSearchProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { ContextualSearchProps } from './ContextualSearch';
|
|
3
|
+
import { ContextualSearchStoryOption } from './mock';
|
|
4
|
+
|
|
5
|
+
type StoryArgs = ContextualSearchProps<ContextualSearchStoryOption> & {
|
|
6
|
+
loadingSize?: number;
|
|
7
|
+
};
|
|
8
|
+
declare const meta: Meta<StoryArgs>;
|
|
9
|
+
export default meta;
|
|
10
|
+
type Story = StoryObj<StoryArgs>;
|
|
11
|
+
export declare const Single: Story;
|
|
12
|
+
export declare const Multiple: Story;
|
|
13
|
+
export declare const Loading: Story;
|
|
14
|
+
export declare const WithEntryAdd: Story;
|
|
15
|
+
export declare const List: Story;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledAutocomplete: import('@emotion/styled').StyledComponent<import('@mui/material').AutocompleteProps<unknown, boolean | undefined, boolean | undefined, boolean | undefined, import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
3
|
+
isError?: boolean | undefined;
|
|
4
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
2
|
+
import { ContextualSearchProps } from './ContextualSearch';
|
|
3
|
+
|
|
4
|
+
type ContextualSearchControlledProps<T, R extends FieldValues> = ContextualSearchProps<T> & {
|
|
5
|
+
control: Control<R>;
|
|
6
|
+
name: Path<R>;
|
|
7
|
+
};
|
|
8
|
+
export declare function ContextualSearchControlled<T, R extends FieldValues>(props: ContextualSearchControlledProps<T, R>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AutocompleteProps } from '@mui/material';
|
|
2
|
+
|
|
3
|
+
type ContextualSearchListListbox<T> = AutocompleteProps<T, boolean, false, false, 'div'>['ListboxProps'] & {
|
|
4
|
+
listboxPortalId: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function ContextualSearchListListbox<T>(props: ContextualSearchListListbox<T>): import('react').ReactPortal;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type ContextualSearchStoryOption = {
|
|
3
|
+
id: number;
|
|
4
|
+
label: string;
|
|
5
|
+
secondaryLabel: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function useLazyOptions(size?: number): {
|
|
8
|
+
options: ContextualSearchStoryOption[];
|
|
9
|
+
loading: boolean;
|
|
10
|
+
onLastOptionInView: () => Promise<void>;
|
|
11
|
+
onSearchTextChange: import('react').Dispatch<import('react').SetStateAction<string>>;
|
|
12
|
+
};
|
|
13
|
+
export declare function getOptions(): ContextualSearchStoryOption[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Control, FieldValues, Path, PathValue } from 'react-hook-form';
|
|
2
|
+
|
|
3
|
+
export interface DatePickerProps<T extends FieldValues> {
|
|
4
|
+
name: Path<T>;
|
|
5
|
+
control: Control<T>;
|
|
6
|
+
label: string;
|
|
7
|
+
defaultValue?: PathValue<T, Path<T>>;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
dataTestId?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const DatePicker: <T extends FieldValues>({ name, control, label, defaultValue, disabled, required, dataTestId, }: DatePickerProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { DatePicker } from './DatePicker';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof DatePicker>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof meta>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const Error: Story;
|
|
9
|
+
export declare const WithDefaultValue: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledFormHelperText: import('@emotion/styled').StyledComponent<import('@mui/material').FormHelperTextOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLParagraphElement | null) => void) | import('react').RefObject<HTMLParagraphElement> | null | undefined;
|
|
4
|
+
}, "className" | "style" | "classes" | "children" | "disabled" | "sx" | "margin" | "required" | "variant" | "filled" | "error" | "focused"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
5
|
+
export declare const StyledDatePicker: import('@emotion/styled').StyledComponent<import('@mui/x-date-pickers').DatePickerProps<import('dayjs').Dayjs, boolean> & import('react').RefAttributes<HTMLDivElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
6
|
+
isError?: boolean | undefined;
|
|
7
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Control, FieldValues, Path, PathValue } from 'react-hook-form';
|
|
2
|
+
|
|
3
|
+
export interface DateTimePickerProps<T extends FieldValues> {
|
|
4
|
+
name: Path<T>;
|
|
5
|
+
control: Control<T>;
|
|
6
|
+
label: string;
|
|
7
|
+
defaultValue?: PathValue<T, Path<T>>;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
dataTestId?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const DateTimePicker: <T extends FieldValues>({ name, control, label, defaultValue, disabled, required, dataTestId, }: DateTimePickerProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { DateTimePicker } from './DateTimePicker';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof DateTimePicker>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof meta>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const Error: Story;
|
|
9
|
+
export declare const WithDefaultValue: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledFormHelperText: import('@emotion/styled').StyledComponent<import('@mui/material').FormHelperTextOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLParagraphElement | null) => void) | import('react').RefObject<HTMLParagraphElement> | null | undefined;
|
|
4
|
+
}, "className" | "style" | "classes" | "children" | "disabled" | "sx" | "margin" | "required" | "variant" | "filled" | "error" | "focused"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
5
|
+
export declare const StyledDateTimePicker: import('@emotion/styled').StyledComponent<import('@mui/x-date-pickers').DateTimePickerProps<import('dayjs').Dayjs, boolean> & import('react').RefAttributes<HTMLDivElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
6
|
+
isError?: boolean | undefined;
|
|
7
|
+
}, {}, {}>;
|