@smart-factor/gem-ui-components 0.0.37 → 0.0.38
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/package.json +1 -1
- package/dist/Drawer-D8kHnT0B.js +0 -2111
- package/dist/Stack-Dr1yNuib.js +0 -6617
- package/dist/Tree-B4Bd33fe.js +0 -2958
- package/dist/components/AccordionSummary/AccordionSummary.d.ts +0 -7
- package/dist/components/AccordionSummary/AccordionSummary.stories.d.ts +0 -8
- package/dist/components/AccordionSummary/AccordionSummary.styles.d.ts +0 -7
- package/dist/components/Button/Button.d.ts +0 -8
- package/dist/components/Button/Button.stories.d.ts +0 -8
- package/dist/components/Button/Button.styles.d.ts +0 -6
- package/dist/components/Button/ButtonAdd.d.ts +0 -3
- package/dist/components/ButtonWithIcon/ButtonWithIcon.d.ts +0 -10
- package/dist/components/ButtonWithIcon/ButtonWithIcon.stories.d.ts +0 -7
- package/dist/components/Dialog/Dialog.d.ts +0 -3
- package/dist/components/Dialog/Dialog.stories.d.ts +0 -7
- package/dist/components/Dialog/Dialog.styles.d.ts +0 -11
- package/dist/components/Dialog/index.d.ts +0 -2
- package/dist/components/Dialog/types.d.ts +0 -9
- package/dist/components/Drawer/Drawer.d.ts +0 -15
- package/dist/components/Drawer/Drawer.stories.d.ts +0 -8
- package/dist/components/Drawer/DrawerContent.d.ts +0 -6
- package/dist/components/Drawer/DrawerFooter.d.ts +0 -6
- package/dist/components/Drawer/DrawerHeader.d.ts +0 -7
- package/dist/components/Drawer/index.d.ts +0 -1
- package/dist/components/Drawer/index.js +0 -4
- package/dist/components/Dropzone/Dropzone.d.ts +0 -7
- package/dist/components/Dropzone/Dropzone.stories.d.ts +0 -9
- package/dist/components/Dropzone/Dropzone.styles.d.ts +0 -17
- package/dist/components/Dropzone/DropzoneField.d.ts +0 -12
- package/dist/components/Dropzone/const.d.ts +0 -12
- package/dist/components/Dropzone/index.d.ts +0 -3
- package/dist/components/ElementsPicker/ElementsPicker.d.ts +0 -8
- package/dist/components/ElementsPicker/ElementsPicker.stories.d.ts +0 -8
- package/dist/components/ElementsPicker/ElementsPickerElement.d.ts +0 -9
- package/dist/components/ElementsPicker/index.d.ts +0 -2
- package/dist/components/FixedActionsBottomPanel/FixedActionsBottomPanel.d.ts +0 -15
- package/dist/components/FixedActionsBottomPanel/FixedActionsBottomPanel.stories.d.ts +0 -9
- package/dist/components/FixedActionsBottomPanel/FixedActionsBottomPanel.styles.d.ts +0 -6
- package/dist/components/FormComponents/Autocomplete/Autocomplete.d.ts +0 -4
- package/dist/components/FormComponents/Autocomplete/Autocomplete.stories.d.ts +0 -11
- package/dist/components/FormComponents/Autocomplete/Autocomplete.styles.d.ts +0 -7
- package/dist/components/FormComponents/Autocomplete/index.d.ts +0 -2
- package/dist/components/FormComponents/Autocomplete/types.d.ts +0 -33
- package/dist/components/FormComponents/ContextualSearch/ContextualSearch.d.ts +0 -40
- package/dist/components/FormComponents/ContextualSearch/ContextualSearch.stories.d.ts +0 -15
- package/dist/components/FormComponents/ContextualSearch/ContextualSearch.styles.d.ts +0 -4
- package/dist/components/FormComponents/ContextualSearch/ContextualSearchControlled.d.ts +0 -9
- package/dist/components/FormComponents/ContextualSearch/ContextualSearchListListbox.d.ts +0 -7
- package/dist/components/FormComponents/ContextualSearch/index.d.ts +0 -2
- package/dist/components/FormComponents/ContextualSearch/mock.d.ts +0 -13
- package/dist/components/FormComponents/DatePicker/DatePicker.d.ts +0 -12
- package/dist/components/FormComponents/DatePicker/DatePicker.stories.d.ts +0 -9
- package/dist/components/FormComponents/DatePicker/DatePicker.styles.d.ts +0 -7
- package/dist/components/FormComponents/DateTimePicker/DateTimePicker.d.ts +0 -12
- package/dist/components/FormComponents/DateTimePicker/DateTimePicker.stories.d.ts +0 -9
- package/dist/components/FormComponents/DateTimePicker/DateTimePicker.styles.d.ts +0 -7
- package/dist/components/FormComponents/Input/Input.d.ts +0 -11
- package/dist/components/FormComponents/Input/Input.stories.d.ts +0 -11
- package/dist/components/FormComponents/Input/Input.styles.d.ts +0 -3
- package/dist/components/FormComponents/RadioChips/RadioChips.d.ts +0 -21
- package/dist/components/FormComponents/RadioChips/RadioChips.stories.d.ts +0 -9
- package/dist/components/FormComponents/RadioChips/RadioChips.styles.d.ts +0 -10
- package/dist/components/FormComponents/SearchInput/SearchInput.d.ts +0 -11
- package/dist/components/FormComponents/SearchInput/SearchInput.stories.d.ts +0 -9
- package/dist/components/FormComponents/SearchInput/SearchInput.styles.d.ts +0 -1
- package/dist/components/FormComponents/Select/Select.d.ts +0 -30
- package/dist/components/FormComponents/Select/Select.stories.d.ts +0 -11
- package/dist/components/FormComponents/Select/Select.styles.d.ts +0 -4
- package/dist/components/FormComponents/index.d.ts +0 -9
- package/dist/components/LoadingBackdrop/LoadingBackdrop.d.ts +0 -7
- package/dist/components/LoadingBackdrop/LoadingBackdrop.stories.d.ts +0 -7
- package/dist/components/LoadingBackdrop/index.d.ts +0 -1
- package/dist/components/ResizableWrapper/ResizableWrapper.d.ts +0 -11
- package/dist/components/ResizableWrapper/ResizableWrapper.stories.d.ts +0 -7
- package/dist/components/ResizableWrapper/ResizableWrapper.styles.d.ts +0 -10
- package/dist/components/SimpleAutocomplete/SimpleAutocomplete.d.ts +0 -3
- package/dist/components/SimpleAutocomplete/SimpleAutocomplete.stories.d.ts +0 -11
- package/dist/components/SimpleAutocomplete/index.d.ts +0 -1
- package/dist/components/SimpleInput/SimpleInput.d.ts +0 -9
- package/dist/components/SimpleInput/SimpleInput.stories.d.ts +0 -7
- package/dist/components/SimpleSelect/SimpleSelect.d.ts +0 -14
- package/dist/components/SimpleSelect/SimpleSelect.stories.d.ts +0 -7
- package/dist/components/Stepper/Stepper.d.ts +0 -13
- package/dist/components/Stepper/Stepper.stories.d.ts +0 -7
- package/dist/components/Stepper/Stepper.styles.d.ts +0 -9
- package/dist/components/StickyContainer/StickyContainer.d.ts +0 -7
- package/dist/components/StickyContainer/StickyContainer.stories.d.ts +0 -7
- package/dist/components/StickyContainer/StickyContainer.styles.d.ts +0 -7
- package/dist/components/TableComponents/ContextMenu/ContextMenu.d.ts +0 -6
- package/dist/components/TableComponents/ContextMenu/ContextMenu.stories.d.ts +0 -7
- package/dist/components/TableComponents/ContextMenu/ContextMenu.styles.d.ts +0 -1
- package/dist/components/TableComponents/ContextMenu/ContextMenuContext.d.ts +0 -7
- package/dist/components/TableComponents/ContextMenu/ContextMenuItem.d.ts +0 -8
- package/dist/components/TableComponents/ContextMenu/ContextMenuPropsContext/ContextMenuPropsContext.d.ts +0 -6
- package/dist/components/TableComponents/ContextMenu/ContextMenuPropsContext/useContextMenuProps.d.ts +0 -3
- package/dist/components/TableComponents/ContextMenu/index.d.ts +0 -2
- package/dist/components/TableComponents/TableActions/TableActions.d.ts +0 -7
- package/dist/components/TableComponents/TableActions/TableActions.stories.d.ts +0 -7
- package/dist/components/TableComponents/TableActions/index.d.ts +0 -2
- package/dist/components/TableComponents/TableExportButton/TableExportButton.d.ts +0 -9
- package/dist/components/TableComponents/TableExportButton/index.d.ts +0 -1
- package/dist/components/TableComponents/TableRecord/TableRecord.d.ts +0 -8
- package/dist/components/TableComponents/TableRecord/index.d.ts +0 -1
- package/dist/components/TableComponents/TableWithPagination/TableWithPagination.d.ts +0 -4
- package/dist/components/TableComponents/TableWithPagination/TableWithPagination.stories.d.ts +0 -13
- package/dist/components/TableComponents/TableWithPagination/TableWithPaginationExport.d.ts +0 -0
- package/dist/components/TableComponents/TableWithPagination/TableWrapper.d.ts +0 -8
- package/dist/components/TableComponents/TableWithPagination/types.d.ts +0 -52
- package/dist/components/TableComponents/index.d.ts +0 -5
- package/dist/components/TabsPanel/TabsPanel.d.ts +0 -14
- package/dist/components/TabsPanel/TabsPanel.stories.d.ts +0 -7
- package/dist/components/TabsPanel/TabsPanel.styles.d.ts +0 -8
- package/dist/components/Toast/Toast.stories.d.ts +0 -7
- package/dist/components/Toast/Toast.styles.d.ts +0 -12
- package/dist/components/Toast/ToastContent.d.ts +0 -4
- package/dist/components/Toast/errorToast.d.ts +0 -1
- package/dist/components/Toast/index.d.ts +0 -2
- package/dist/components/Toast/successToast.d.ts +0 -1
- package/dist/components/Tree/Tree.d.ts +0 -18
- package/dist/components/Tree/Tree.stories.d.ts +0 -7
- package/dist/components/Tree/index.d.ts +0 -1
- package/dist/components/Tree/index.js +0 -4
- package/dist/consts/data-grid.d.ts +0 -122
- package/dist/helpers/columns/getBooleanColumn.d.ts +0 -6
- package/dist/helpers/columns/getDateColumn.d.ts +0 -6
- package/dist/helpers/columns/getNumericColumn.d.ts +0 -6
- package/dist/helpers/columns/getStaticColumn.d.ts +0 -6
- package/dist/helpers/columns/getStringColumn.d.ts +0 -6
- package/dist/helpers/columns/index.d.ts +0 -5
- package/dist/helpers/date/formatDate.d.ts +0 -3
- package/dist/helpers/date/index.d.ts +0 -1
- package/dist/helpers/index.d.ts +0 -2
- package/dist/hooks/index.d.ts +0 -4
- package/dist/hooks/useContextMenu.d.ts +0 -8
- package/dist/hooks/useDataGridState.d.ts +0 -9
- package/dist/hooks/useGetFileUrl.d.ts +0 -5
- package/dist/hooks/useKeepDefinedValue.d.ts +0 -1
- package/dist/hooks/useScrollPosition.d.ts +0 -2
- package/dist/main.d.ts +0 -27
- package/dist/main.js +0 -39237
- package/dist/providers/GemUIComponentsProvider.d.ts +0 -4
- package/dist/providers/ToasterProvider.d.ts +0 -1
- package/dist/theme/theme.d.ts +0 -19
- package/dist/types/function.d.ts +0 -1
|
@@ -1,11 +0,0 @@
|
|
|
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;
|
|
@@ -1,3 +0,0 @@
|
|
|
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>, {}, {}>;
|
|
@@ -1,21 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
}, {}, {}>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SizingProps } from '@mui/system';
|
|
2
|
-
|
|
3
|
-
export interface SearchInputProps {
|
|
4
|
-
setSearch: (newValue: string) => void;
|
|
5
|
-
placeholder: string;
|
|
6
|
-
search: string;
|
|
7
|
-
onChange?: () => void;
|
|
8
|
-
isLoading?: boolean;
|
|
9
|
-
width?: SizingProps['width'];
|
|
10
|
-
}
|
|
11
|
-
export declare function SearchInput({ isLoading, placeholder, search, setSearch, onChange, width, }: SearchInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { SearchInput } from '..';
|
|
2
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
declare const meta: Meta<typeof SearchInput>;
|
|
5
|
-
export default meta;
|
|
6
|
-
type Story = StoryObj<typeof meta>;
|
|
7
|
-
export declare const Docs: Story;
|
|
8
|
-
export declare const Loading: Story;
|
|
9
|
-
export declare const WithSearchTerm: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const StyledInput: import('@emotion/styled').StyledComponent<import('@mui/material').InputProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { Control, FieldValues, Path, PathValue } from 'react-hook-form';
|
|
3
|
-
import { SelectChangeEvent, SelectProps as MuiSelectProps } from '@mui/material';
|
|
4
|
-
|
|
5
|
-
export interface SelectValueOption {
|
|
6
|
-
value: string | number;
|
|
7
|
-
label: ReactNode;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
}
|
|
10
|
-
type OnChangeHandler<T> = (event: SelectChangeEvent<PathValue<T, Path<T>>[]>, child: ReactNode) => void;
|
|
11
|
-
interface SelectProps<T extends FieldValues> {
|
|
12
|
-
name: Path<T>;
|
|
13
|
-
control: Control<T>;
|
|
14
|
-
label: string;
|
|
15
|
-
options: SelectValueOption[];
|
|
16
|
-
defaultValue?: PathValue<T, Path<T>>;
|
|
17
|
-
errorMessage?: string;
|
|
18
|
-
multiple?: boolean;
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
required?: boolean;
|
|
21
|
-
dataTestId?: string;
|
|
22
|
-
leadingOption?: ReactNode;
|
|
23
|
-
renderValue?: (value: PathValue<T, Path<T>> | PathValue<T, Path<T>>[]) => ReactNode;
|
|
24
|
-
onChange?: OnChangeHandler<T>;
|
|
25
|
-
variant?: MuiSelectProps['variant'];
|
|
26
|
-
size?: MuiSelectProps['size'];
|
|
27
|
-
clearable?: boolean;
|
|
28
|
-
}
|
|
29
|
-
export declare const Select: <T extends FieldValues>({ name, control, label, defaultValue: defaultValueProp, options, errorMessage: errorMessageProps, multiple, disabled, required, dataTestId, renderValue, onChange: onChangeProps, variant, size, clearable, }: SelectProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { Select } from './Select';
|
|
3
|
-
|
|
4
|
-
declare const meta: Meta<typeof Select>;
|
|
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 Error: Story;
|
|
10
|
-
export declare const WithDefaultValue: Story;
|
|
11
|
-
export declare const MultiSelect: Story;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const StyledSelectWrapper: import('@emotion/styled').StyledComponent<import('@mui/material').FormControlOwnProps & 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" | "children" | "disabled" | "sx" | "color" | "margin" | "required" | "size" | "fullWidth" | "variant" | "error" | "focused" | "hiddenLabel"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './Autocomplete';
|
|
2
|
-
export { ContextualSearch, ContextualSearchControlled, } from './ContextualSearch';
|
|
3
|
-
export { DatePicker } from './DatePicker/DatePicker';
|
|
4
|
-
export { DateTimePicker } from './DateTimePicker/DateTimePicker';
|
|
5
|
-
export { Input } from './Input/Input';
|
|
6
|
-
export { RadioChips } from './RadioChips/RadioChips';
|
|
7
|
-
export { SearchInput } from './SearchInput/SearchInput';
|
|
8
|
-
export type { SelectValueOption } from './Select/Select';
|
|
9
|
-
export { Select } from './Select/Select';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { LoadingBackdrop } from './LoadingBackdrop';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SizingProps } from '@mui/system';
|
|
2
|
-
|
|
3
|
-
export interface ResizableWrapperProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
isOpen: boolean;
|
|
6
|
-
customCloseWidth?: number;
|
|
7
|
-
customOpenWidth?: SizingProps['width'];
|
|
8
|
-
customCloseHeight?: SizingProps['width'];
|
|
9
|
-
direction: 'horizontal' | 'vertical';
|
|
10
|
-
}
|
|
11
|
-
export declare const ResizableWrapper: ({ direction, children, isOpen, customCloseWidth, customCloseHeight, customOpenWidth, }: ResizableWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Content: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & 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/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
5
|
-
export declare const StyledResizableWrapper: import('@emotion/styled').StyledComponent<import('@mui/material').StackOwnProps & 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
|
-
}, keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
8
|
-
width: number | string;
|
|
9
|
-
height: number | string;
|
|
10
|
-
}, {}, {}>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { BaseAutocompleteProps, BaseOption } from '../FormComponents/Autocomplete/types';
|
|
2
|
-
|
|
3
|
-
export declare const SimpleAutocomplete: <B extends BaseOption>({ options, loading, label, placeholder, size, disabled, required, multiple, freeSolo, clearIcon, testId, value, onChange, getOptionLabel, onInputChange, inputValue, filterOptions, ...props }: BaseAutocompleteProps<B>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { BaseAutocompleteProps, BaseOption } from '../FormComponents/Autocomplete/types';
|
|
3
|
-
import { SimpleAutocomplete } from './SimpleAutocomplete';
|
|
4
|
-
|
|
5
|
-
declare const meta: Meta<typeof SimpleAutocomplete>;
|
|
6
|
-
export default meta;
|
|
7
|
-
type Story = StoryObj<BaseAutocompleteProps<BaseOption>>;
|
|
8
|
-
export declare const StringOptions: Story;
|
|
9
|
-
export declare const ObjectOptions: Story;
|
|
10
|
-
export declare const MultipleSelection: Story;
|
|
11
|
-
export declare const DisabledState: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SimpleAutocomplete } from './SimpleAutocomplete';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { TextFieldProps } from '@mui/material';
|
|
2
|
-
import { SelectInputProps } from '@mui/material/Select/SelectInput';
|
|
3
|
-
|
|
4
|
-
export type SimpleInputProps<T extends SelectInputProps['value']> = {
|
|
5
|
-
value: T;
|
|
6
|
-
onChange(newValue: T): void;
|
|
7
|
-
errorMessage?: string | null;
|
|
8
|
-
} & TextFieldProps;
|
|
9
|
-
export declare const SimpleInput: <T extends unknown>({ id, value, label, onChange, type, sx, errorMessage, }: SimpleInputProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SimpleInput, SimpleInputProps } from './SimpleInput';
|
|
2
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
declare const meta: Meta<typeof SimpleInput>;
|
|
5
|
-
export default meta;
|
|
6
|
-
type Story = StoryObj<SimpleInputProps<string>>;
|
|
7
|
-
export declare const Docs: Story;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SelectInputProps } from '@mui/material/Select/SelectInput';
|
|
2
|
-
|
|
3
|
-
export interface SimpleSelectProps<T extends SelectInputProps['value']> {
|
|
4
|
-
id: string;
|
|
5
|
-
value: T;
|
|
6
|
-
onChange(newValue: T): void;
|
|
7
|
-
label: string;
|
|
8
|
-
menuItems: {
|
|
9
|
-
value: string | number;
|
|
10
|
-
label: string;
|
|
11
|
-
}[];
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare const SimpleSelect: <T extends unknown>({ id, value, label, onChange, menuItems, disabled, }: SimpleSelectProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SimpleSelect, SimpleSelectProps } from './SimpleSelect';
|
|
2
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
declare const meta: Meta<typeof SimpleSelect>;
|
|
5
|
-
export default meta;
|
|
6
|
-
type Story = StoryObj<SimpleSelectProps<string>>;
|
|
7
|
-
export declare const Docs: Story;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface StepperStep<T> {
|
|
3
|
-
label: string;
|
|
4
|
-
value: T;
|
|
5
|
-
}
|
|
6
|
-
export interface StepperProps<T extends number> {
|
|
7
|
-
steps: StepperStep<T>[];
|
|
8
|
-
activeStep: T;
|
|
9
|
-
setActiveStep: (newStep: T) => void;
|
|
10
|
-
stepsContent?: React.ReactNode[];
|
|
11
|
-
noHeader?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const Stepper: <T extends number>({ steps, activeStep, setActiveStep, stepsContent, noHeader, }: StepperProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const StyledStepButton: import('@emotion/styled').StyledComponent<import('@mui/material').StepButtonOwnProps & 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" | "icon" | "optional"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
5
|
-
export declare const StyledStepper: import('@emotion/styled').StyledComponent<import('@mui/material').StepperOwnProps & 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" | "sx" | "elevation" | "orientation" | "variant" | "square" | "activeStep" | "alternativeLabel" | "connector" | "nonLinear"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
8
|
-
noHeader?: boolean | undefined;
|
|
9
|
-
}, {}, {}>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { StackProps } from '@mui/material';
|
|
2
|
-
|
|
3
|
-
export interface StickyContainerProps extends StackProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
withBoxShadow?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare function StickyContainer({ children, top, withBoxShadow, ...rest }: StickyContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const StyledStickyContainer: 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
|
-
withBoxShadow?: boolean | undefined;
|
|
6
|
-
isScrolled: boolean;
|
|
7
|
-
}, {}, {}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const StyledMenu: import('@emotion/styled').StyledComponent<import('@mui/material').MenuProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { MenuItemProps } from '@mui/material';
|
|
2
|
-
|
|
3
|
-
type ContextMenuItemLinkProps = MenuItemProps & {
|
|
4
|
-
to: string;
|
|
5
|
-
};
|
|
6
|
-
type ContextMenuItemProps = MenuItemProps | ContextMenuItemLinkProps;
|
|
7
|
-
export declare function ContextMenuItem(props: ContextMenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { GridApiPro } from '@mui/x-data-grid-pro';
|
|
3
|
-
|
|
4
|
-
interface TableExportButtonProps {
|
|
5
|
-
gridApiRef: React.MutableRefObject<GridApiPro>;
|
|
6
|
-
exportDataAsExcel?: (gridApiRef: React.MutableRefObject<GridApiPro>) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const TableExportButton: FC<TableExportButtonProps>;
|
|
9
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TableExportButton } from './TableExportButton';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TableRecord } from './TableRecord';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
2
|
-
import { TableWithPaginationProps } from './types';
|
|
3
|
-
|
|
4
|
-
export declare const TableWithPagination: <T extends GridValidRowModel>({ rowsData, paginationAndSortState, setPaginationAndSortState, isLoading, columns, offset, tableKey, filterModel, onFilterModelChange, pinnedColumns, exportDataAsExcel, }: TableWithPaginationProps<T>) => import("react/jsx-runtime").JSX.Element;
|
package/dist/components/TableComponents/TableWithPagination/TableWithPagination.stories.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
2
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
import { TableWithPagination } from './TableWithPagination';
|
|
4
|
-
import { TableWithPaginationProps } from './types';
|
|
5
|
-
|
|
6
|
-
declare const meta: Meta<typeof TableWithPagination>;
|
|
7
|
-
export default meta;
|
|
8
|
-
type Story = StoryObj<TableWithPaginationProps<GridValidRowModel>>;
|
|
9
|
-
export declare const Docs: Story;
|
|
10
|
-
export declare const Default: Story;
|
|
11
|
-
export declare const Loading: Story;
|
|
12
|
-
export declare const Empty: Story;
|
|
13
|
-
export declare const WithExcelExport: Story;
|
|
File without changes
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { GridApiPro, GridCallbackDetails, GridColDef, GridColumnPinningState, GridFilterModel, GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
3
|
-
|
|
4
|
-
interface SortState {
|
|
5
|
-
field: string;
|
|
6
|
-
direction: 'asc' | 'desc' | '';
|
|
7
|
-
}
|
|
8
|
-
export interface PaginationAndSortState {
|
|
9
|
-
page: number;
|
|
10
|
-
size: number;
|
|
11
|
-
sort: SortState;
|
|
12
|
-
}
|
|
13
|
-
export interface SortObject {
|
|
14
|
-
sorted?: boolean;
|
|
15
|
-
unsorted?: boolean;
|
|
16
|
-
empty?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export interface PageableObject {
|
|
19
|
-
offset?: number;
|
|
20
|
-
sort?: SortObject;
|
|
21
|
-
pageSize?: number;
|
|
22
|
-
pageNumber?: number;
|
|
23
|
-
paged?: boolean;
|
|
24
|
-
unpaged?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export interface GenericPageDataDto<T> {
|
|
27
|
-
total_elements?: number;
|
|
28
|
-
total_pages?: number;
|
|
29
|
-
size?: number;
|
|
30
|
-
content?: T[];
|
|
31
|
-
number?: number;
|
|
32
|
-
sort?: SortObject;
|
|
33
|
-
pageable?: PageableObject;
|
|
34
|
-
first?: boolean;
|
|
35
|
-
last?: boolean;
|
|
36
|
-
number_of_elements?: number;
|
|
37
|
-
empty?: boolean;
|
|
38
|
-
}
|
|
39
|
-
export interface TableWithPaginationProps<T extends GridValidRowModel> {
|
|
40
|
-
rowsData: GenericPageDataDto<T> | undefined;
|
|
41
|
-
isLoading: boolean;
|
|
42
|
-
columns: GridColDef<T>[];
|
|
43
|
-
tableKey: string;
|
|
44
|
-
offset?: number;
|
|
45
|
-
pinnedColumns?: GridColumnPinningState;
|
|
46
|
-
paginationAndSortState: PaginationAndSortState;
|
|
47
|
-
setPaginationAndSortState: Dispatch<SetStateAction<PaginationAndSortState>>;
|
|
48
|
-
filterModel?: GridFilterModel;
|
|
49
|
-
onFilterModelChange?: (model: GridFilterModel, details: GridCallbackDetails<'filter'>) => void;
|
|
50
|
-
exportDataAsExcel?: (gridApiRef: React.MutableRefObject<GridApiPro>) => void;
|
|
51
|
-
}
|
|
52
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { ContextMenu, ContextMenuItem } from './ContextMenu';
|
|
2
|
-
export { TableActions } from './TableActions/TableActions';
|
|
3
|
-
export { TableRecord } from './TableRecord/TableRecord';
|
|
4
|
-
export { TableWithPagination } from './TableWithPagination/TableWithPagination';
|
|
5
|
-
export type { GenericPageDataDto } from './TableWithPagination/types';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TabProps as TabPropsMUI } from '@mui/material';
|
|
2
|
-
|
|
3
|
-
export interface TabProps extends TabPropsMUI {
|
|
4
|
-
label: string;
|
|
5
|
-
icon?: JSX.Element;
|
|
6
|
-
}
|
|
7
|
-
export interface TabsPanelProps {
|
|
8
|
-
tabs: TabProps[];
|
|
9
|
-
children: JSX.Element[];
|
|
10
|
-
onChange?: (value: number) => void;
|
|
11
|
-
defaultTab?: number;
|
|
12
|
-
extraComponent?: JSX.Element;
|
|
13
|
-
}
|
|
14
|
-
export declare const TabsPanel: ({ tabs, children, onChange, defaultTab, extraComponent, }: TabsPanelProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TabProps } from './TabsPanel';
|
|
2
|
-
|
|
3
|
-
export declare const StyledTab: import('@emotion/styled').StyledComponent<TabProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
4
|
-
export declare const StyledTabs: import('@emotion/styled').StyledComponent<import('@mui/material').TabsOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
5
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
6
|
-
}, "className" | "style" | "classes" | "action" | "children" | "sx" | "aria-label" | "aria-labelledby" | "onChange" | "orientation" | "value" | "variant" | "slots" | "slotProps" | "allowScrollButtonsMobile" | "centered" | "indicatorColor" | "ScrollButtonComponent" | "scrollButtons" | "selectionFollowsFocus" | "TabIndicatorProps" | "TabScrollButtonProps" | "textColor" | "visibleScrollbar"> & {
|
|
7
|
-
component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
8
|
-
} & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|