@smart-factor/gem-ui-components 0.0.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 +29 -0
- package/dist/Drawer-STwjDQmP.js +8723 -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 +15 -0
- package/dist/components/FixedActionsBottomPanel/FixedActionsBottomPanel.stories.d.ts +9 -0
- package/dist/components/FixedActionsBottomPanel/FixedActionsBottomPanel.styles.d.ts +6 -0
- package/dist/components/FormComponents/ContextualSearch/ContextualSearch.d.ts +24 -0
- package/dist/components/FormComponents/ContextualSearch/ContextualSearch.stories.d.ts +10 -0
- package/dist/components/FormComponents/ContextualSearch/ContextualSearchOption.d.ts +13 -0
- package/dist/components/FormComponents/ContextualSearch/getTransformOnChange.d.ts +4 -0
- package/dist/components/FormComponents/ContextualSearch/getTransformValue.d.ts +3 -0
- package/dist/components/FormComponents/ContextualSearch/index.d.ts +2 -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 +8 -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 +29 -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 +8 -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 +9 -0
- package/dist/components/ResizableWrapper/ResizableWrapper.stories.d.ts +7 -0
- package/dist/components/ResizableWrapper/ResizableWrapper.styles.d.ts +10 -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 +13 -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/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 +12 -0
- package/dist/components/TableComponents/TableWithPagination/TableWrapper.d.ts +8 -0
- package/dist/components/TableComponents/TableWithPagination/types.d.ts +51 -0
- package/dist/components/TableComponents/index.d.ts +4 -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/consts/data-grid.d.ts +122 -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 +23 -0
- package/dist/main.js +59502 -0
- package/dist/providers/GemUIComponentsProvider.d.ts +4 -0
- package/dist/providers/ToasterProvider.d.ts +1 -0
- package/dist/theme/theme.d.ts +13 -0
- package/package.json +96 -0
|
@@ -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 | undefined) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const DropzoneField: <T extends FieldValues>({ name, label, control, isImage, errorMessage, 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,15 @@
|
|
|
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
|
+
secondaryIcon?: ReactNode;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function FixedActionsBottomPanel({ primaryLabel, primaryLoading, primaryOnClick, secondaryLabel, secondaryLoading, secondaryIcon, secondaryOnClick, cancelOnClick, offset, disabled, }: FixedActionsBottomPanelProps): import('react').ReactPortal;
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
|
@@ -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,24 @@
|
|
|
1
|
+
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
2
|
+
import { AutocompleteInputChangeReason, TextFieldVariants } from '@mui/material';
|
|
3
|
+
|
|
4
|
+
export interface IContextualSearchOption {
|
|
5
|
+
value: unknown;
|
|
6
|
+
label: string;
|
|
7
|
+
secondaryLabel?: string;
|
|
8
|
+
title?: string | string[];
|
|
9
|
+
}
|
|
10
|
+
export interface ContextualSearchProps<T extends FieldValues> {
|
|
11
|
+
name: Path<T>;
|
|
12
|
+
control: Control<T>;
|
|
13
|
+
options: IContextualSearchOption[];
|
|
14
|
+
label: string;
|
|
15
|
+
multiple?: boolean;
|
|
16
|
+
required?: boolean;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
loading?: boolean;
|
|
19
|
+
variant?: TextFieldVariants;
|
|
20
|
+
fullWidth?: boolean;
|
|
21
|
+
onAddNewEntry?: () => void;
|
|
22
|
+
onInputChange?: (event: React.SyntheticEvent<Element, Event>, value: string, reason: AutocompleteInputChangeReason) => void;
|
|
23
|
+
}
|
|
24
|
+
export declare const ContextualSearch: <T extends FieldValues>(props: ContextualSearchProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { ContextualSearch } from './ContextualSearch';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof ContextualSearch>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof meta>;
|
|
7
|
+
export declare const Single: Story;
|
|
8
|
+
export declare const Multiple: Story;
|
|
9
|
+
export declare const WithEntryAdd: Story;
|
|
10
|
+
export declare const WithLoading: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
type ContextualSearchOptionTitle = string | string[] | undefined;
|
|
4
|
+
type ContextualSearchOption = {
|
|
5
|
+
label: string;
|
|
6
|
+
secondaryLabel?: string;
|
|
7
|
+
title?: ContextualSearchOptionTitle;
|
|
8
|
+
};
|
|
9
|
+
type ContextualSearchOptionProps = React.HTMLAttributes<HTMLLIElement> & {
|
|
10
|
+
option: ContextualSearchOption;
|
|
11
|
+
};
|
|
12
|
+
export declare const ContextualSearchOption: FC<ContextualSearchOptionProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SyntheticEvent } from 'react';
|
|
2
|
+
import { IContextualSearchOption } from './ContextualSearch';
|
|
3
|
+
|
|
4
|
+
export declare const getTransformOnChange: (multiple?: boolean) => (onChange: (...event: unknown[]) => void) => (_e: SyntheticEvent<Element, Event>, option: IContextualSearchOption | IContextualSearchOption[] | null) => void;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IContextualSearchOption } from './ContextualSearch';
|
|
2
|
+
|
|
3
|
+
export declare const getTransformValue: (options: IContextualSearchOption[], multiple?: boolean) => (value: IContextualSearchOption['value'] | IContextualSearchOption['value'][] | null) => IContextualSearchOption | IContextualSearchOption[] | null;
|
|
@@ -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
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Control, FieldValues, Path, PathValue } from 'react-hook-form';
|
|
2
|
+
import { TextFieldProps } from '@mui/material';
|
|
3
|
+
|
|
4
|
+
export type InputProps<T extends FieldValues> = {
|
|
5
|
+
name: Path<T>;
|
|
6
|
+
control: Control<T>;
|
|
7
|
+
defaultValue?: PathValue<T, Path<T>>;
|
|
8
|
+
errorMessage?: string;
|
|
9
|
+
dataTestId?: string;
|
|
10
|
+
} & TextFieldProps;
|
|
11
|
+
export declare const Input: <T extends FieldValues>({ name, control, defaultValue, errorMessage: errorMessageProps, dataTestId, ...textFieldProps }: InputProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { InputProps } from './Input';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<InputProps<any>>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<InputProps<any>>;
|
|
7
|
+
export declare const Docs: Story;
|
|
8
|
+
export declare const Default: Story;
|
|
9
|
+
export declare const Error: Story;
|
|
10
|
+
export declare const DifferentType: Story;
|
|
11
|
+
export declare const Multiline: Story;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const StyledInput: import('@emotion/styled').StyledComponent<{
|
|
2
|
+
variant?: import('@mui/material').TextFieldVariants | undefined;
|
|
3
|
+
} & Omit<import('@mui/material').OutlinedTextFieldProps | import('@mui/material').FilledTextFieldProps | import('@mui/material').StandardTextFieldProps, "variant"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Control, FieldValues, Path, PathValue } from 'react-hook-form';
|
|
3
|
+
|
|
4
|
+
export interface RadioChipOption {
|
|
5
|
+
value: string | number | boolean;
|
|
6
|
+
label: ReactNode;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface RadioChipsProps<T extends FieldValues> {
|
|
10
|
+
name: Path<T>;
|
|
11
|
+
label?: string;
|
|
12
|
+
control: Control<T>;
|
|
13
|
+
options: RadioChipOption[];
|
|
14
|
+
defaultValue?: PathValue<T, Path<T>>;
|
|
15
|
+
errorMessage?: string;
|
|
16
|
+
required?: boolean;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
dataTestId?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const RadioChips: <T extends FieldValues>({ name, label, control, defaultValue, options, errorMessage: errorMessageProps, required, disabled, dataTestId, }: RadioChipsProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { RadioChips } from './RadioChips';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof RadioChips>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof meta>;
|
|
7
|
+
export declare const Docs: Story;
|
|
8
|
+
export declare const Default: Story;
|
|
9
|
+
export declare const WithDefaultValue: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledFormLabel: import('@emotion/styled').StyledComponent<import('@mui/material').FormLabelBaseProps & import('@mui/material').FormLabelOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLLabelElement | null) => void) | import('react').RefObject<HTMLLabelElement> | null | undefined;
|
|
4
|
+
}, keyof import('@mui/material/OverridableComponent').CommonProps | "children" | "disabled" | "sx" | "tabIndex" | "form" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "required" | "htmlFor" | "filled" | "error" | "focused"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
5
|
+
export declare const StyledChip: import('@emotion/styled').StyledComponent<import('@mui/material').ChipOwnProps & 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" | "children" | "disabled" | "sx" | "tabIndex" | "label" | "color" | "size" | "variant" | "icon" | "onDelete" | "avatar" | "clickable" | "deleteIcon" | "skipFocusWhenDisabled"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
8
|
+
isFirst: boolean;
|
|
9
|
+
isActive: boolean;
|
|
10
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface SearchInputProps {
|
|
2
|
+
setSearch: (newValue: string) => void;
|
|
3
|
+
placeholder: string;
|
|
4
|
+
search: string;
|
|
5
|
+
onChange?: () => void;
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function SearchInput({ isLoading, placeholder, search, setSearch, onChange, }: SearchInputProps): import("react/jsx-runtime").JSX.Element;
|