@movable/ui 2.10.0 → 2.11.0
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/lib/components/Chip/InkChip.d.ts +9 -0
- package/lib/components/Chip/index.d.ts +1 -0
- package/lib/components/ChipGroup/InkChipGroup.d.ts +9 -0
- package/lib/components/ChipGroup/index.d.ts +1 -0
- package/lib/components/DemoComponent.d.ts +5 -0
- package/lib/components/Dialog/ActionButtonHelper.d.ts +4 -0
- package/lib/components/Dialog/DialogIcons.d.ts +5 -0
- package/lib/components/Dialog/InkDialog.d.ts +23 -0
- package/lib/components/Dialog/index.d.ts +1 -0
- package/lib/components/Header/HeaderMetadata.d.ts +10 -0
- package/lib/components/Header/HeaderSubtitle.d.ts +5 -0
- package/lib/components/Header/InkPageHeader.d.ts +12 -0
- package/lib/components/Header/InkWorkflowHeader.d.ts +19 -0
- package/lib/components/Header/InternalUseOnlyLabel.d.ts +6 -0
- package/lib/components/Header/LinkBreadcrumbs.d.ts +14 -0
- package/lib/components/Header/PageHeaderActionButtons.d.ts +23 -0
- package/lib/components/Header/StickyHeader.d.ts +9 -0
- package/lib/components/Header/index.d.ts +6 -0
- package/lib/components/InkAttributeList/InkAttribute.d.ts +10 -0
- package/lib/components/InkAttributeList/InkAttributeList.d.ts +8 -0
- package/lib/components/InkAttributeList/index.d.ts +3 -0
- package/lib/components/InkCheckboxGroup/InkCheckboxGroup.d.ts +22 -0
- package/lib/components/InkCheckboxGroup/InkFormCheckboxGroup.d.ts +5 -0
- package/lib/components/InkCheckboxGroup/index.d.ts +3 -0
- package/lib/components/InkDrawer/HeaderIcon.d.ts +7 -0
- package/lib/components/InkDrawer/InkDrawer.d.ts +28 -0
- package/lib/components/InkDrawer/index.d.ts +1 -0
- package/lib/components/InkEmptyState/EmptyStateIcon.d.ts +8 -0
- package/lib/components/InkEmptyState/InkEmptyState.d.ts +17 -0
- package/lib/components/InkEmptyState/VariantStyles.d.ts +10 -0
- package/lib/components/InkEmptyState/index.d.ts +1 -0
- package/lib/components/InkEmptyTableMessage/InkEmptyTableMessage.d.ts +7 -0
- package/lib/components/InkEmptyTableMessage/index.d.ts +1 -0
- package/lib/components/InkFormSelect/InkFormSelect.d.ts +5 -0
- package/lib/components/InkFormSelect/MockFormSelect.d.ts +9 -0
- package/lib/components/InkFormSelect/index.d.ts +1 -0
- package/lib/components/InkImage/InkImage.d.ts +8 -0
- package/lib/components/InkImage/index.d.ts +2 -0
- package/lib/components/InkRadioTiles/InkRadioTiles.d.ts +24 -0
- package/lib/components/InkRadioTiles/index.d.ts +1 -0
- package/lib/components/InkSelect/InkSelect.d.ts +2 -0
- package/lib/components/InkSelect/InkSelectTest.d.ts +9 -0
- package/lib/components/InkSelect/MenuOptionsTest.d.ts +4 -0
- package/lib/components/InkSelect/index.d.ts +2 -0
- package/lib/components/InkSelect/types.d.ts +20 -0
- package/lib/components/InkSelect/useMenuHelper.d.ts +3 -0
- package/lib/components/InkSnackbar/InkSnackbarAlert.d.ts +12 -0
- package/lib/components/InkSnackbar/InkSnackbarContent.d.ts +3 -0
- package/lib/components/InkSnackbar/InkSnackbarContentProps.d.ts +8 -0
- package/lib/components/InkSnackbar/InkSnackbarProvider.d.ts +3 -0
- package/lib/components/InkSnackbar/SnackbarActionButton.d.ts +7 -0
- package/lib/components/InkSnackbar/index.d.ts +6 -0
- package/lib/components/InkTextField/InkFormTextField.d.ts +7 -0
- package/lib/components/InkTextField/InkTextField.d.ts +5 -0
- package/lib/components/InkTextField/index.d.ts +3 -0
- package/lib/components/InkToggleIcon/InkToggleIcon.d.ts +9 -0
- package/lib/components/InkToggleIcon/index.d.ts +1 -0
- package/lib/components/InkToggleIconGroup/InkToggleIconGroup.d.ts +14 -0
- package/lib/components/InkToggleIconGroup/index.d.ts +1 -0
- package/lib/components/InkToggleText/InkToggleText.d.ts +9 -0
- package/lib/components/InkToggleText/index.d.ts +1 -0
- package/lib/components/InkToggleTextGroup/InkToggleTextGroup.d.ts +15 -0
- package/lib/components/InkToggleTextGroup/index.d.ts +1 -0
- package/lib/components/PersistentFilterDrawer/InkPersistentFilterDrawer.d.ts +18 -0
- package/lib/components/PersistentFilterDrawer/index.d.ts +1 -0
- package/lib/components/Switch/InkSwitch.d.ts +8 -0
- package/lib/components/Switch/index.d.ts +1 -0
- package/lib/components/index.d.ts +21 -0
- package/lib/components/surfaces/InkPaper.d.ts +9 -0
- package/lib/components/surfaces/index.d.ts +1 -0
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/useCopyToClipboard.d.ts +4 -0
- package/lib/index.d.ts +17 -4
- package/lib/index.mjs +11799 -6510
- package/lib/index.mjs.map +1 -1
- package/lib/layouts/DetailsLayout.d.ts +7 -0
- package/lib/layouts/IndexLayout.d.ts +7 -0
- package/lib/layouts/WorkflowLayout.d.ts +7 -0
- package/lib/layouts/index.d.ts +3 -0
- package/lib/layouts/mocks/MockDetailsBody.d.ts +1 -0
- package/lib/layouts/mocks/MockIndexBody.d.ts +1 -0
- package/lib/layouts/mocks/MockInkPageHeader.d.ts +4 -0
- package/lib/layouts/mocks/MockWorkflowBody.d.ts +1 -0
- package/lib/layouts/mocks/MockWorkflowHeader.d.ts +1 -0
- package/lib/layouts/mocks/index.d.ts +5 -0
- package/lib/page-objects/index.d.ts +5 -0
- package/lib/page-objects/ink-checkbox-group.d.ts +19 -0
- package/lib/page-objects/ink-dialog.d.ts +21 -0
- package/lib/page-objects/ink-image.d.ts +12 -0
- package/lib/page-objects/ink-select.d.ts +22 -0
- package/lib/page-objects/ink-snackbar-alert.d.ts +12 -0
- package/lib/page-objects/ink-text-field.d.ts +24 -0
- package/lib/theme/components/Alert.d.ts +60 -0
- package/lib/theme/components/DataGrid.d.ts +45 -0
- package/lib/theme/components/autocomplete.d.ts +62 -0
- package/lib/theme/components/chip.d.ts +296 -0
- package/lib/theme/components/dialog.d.ts +32 -0
- package/lib/theme/components/drawer.d.ts +10 -0
- package/lib/theme/components/form.d.ts +255 -0
- package/lib/theme/components/snackbar.d.ts +13 -0
- package/lib/theme/components/stepper.d.ts +894 -0
- package/lib/theme/components/surfaces/card.d.ts +61 -0
- package/lib/theme/components/surfaces/index.d.ts +3 -0
- package/lib/theme/components/surfaces/paper.d.ts +26 -0
- package/lib/theme/components/typography.d.ts +18 -0
- package/lib/theme/palette.d.ts +237 -0
- package/lib/theme.d.ts +258 -0
- package/lib/utils/PageWrapper.d.ts +8 -0
- package/lib/utils/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BoxProps } from '@mui/material';
|
|
2
|
+
import { DrawerProps } from '@mui/material/Drawer';
|
|
3
|
+
import { PropsWithChildren } from 'react';
|
|
4
|
+
type IFilterDrawer = DrawerProps & {
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
handleDrawerClose: () => void;
|
|
7
|
+
drawerWidth?: number;
|
|
8
|
+
leftOffset?: string;
|
|
9
|
+
filterContent: JSX.Element;
|
|
10
|
+
bottomFilter?: JSX.Element;
|
|
11
|
+
headerLabel?: string;
|
|
12
|
+
isComponentLevelDrawer?: boolean;
|
|
13
|
+
mainProps?: BoxProps;
|
|
14
|
+
};
|
|
15
|
+
export declare const defaultFilterDrawerWidth = 280;
|
|
16
|
+
export declare function InkPersistentFilterDrawer({ isOpen, handleDrawerClose, children, drawerWidth, leftOffset, //primary nav width when closed and when open
|
|
17
|
+
filterContent, bottomFilter, headerLabel, sx, isComponentLevelDrawer, mainProps, }: PropsWithChildren<IFilterDrawer>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InkPersistentFilterDrawer } from './InkPersistentFilterDrawer';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SwitchProps } from '@mui/material';
|
|
2
|
+
type InkSwitchProps = {
|
|
3
|
+
id: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
labelPlacement?: 'start' | 'end' | 'top' | 'bottom';
|
|
6
|
+
} & SwitchProps;
|
|
7
|
+
export declare function InkSwitch({ id, label, labelPlacement, sx, ...rest }: InkSwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InkSwitch } from './InkSwitch';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { DemoComponent } from './DemoComponent';
|
|
2
|
+
export { InkChip } from './Chip';
|
|
3
|
+
export { InkChipGroup } from './ChipGroup';
|
|
4
|
+
export { InkDialog, type InkDialogProps } from './Dialog';
|
|
5
|
+
export { InkPersistentFilterDrawer } from './PersistentFilterDrawer';
|
|
6
|
+
export { HeaderMetadata, LinkBreadcrumbs, InkPageHeader, InkWorkflowHeader, PageHeaderActionButtons, HeaderSubtitle, } from './Header';
|
|
7
|
+
export { InkPaper, type InkPaperProps } from './surfaces';
|
|
8
|
+
export { InkRadioTiles, type InkRadioTilesProps } from './InkRadioTiles';
|
|
9
|
+
export { InkSwitch } from './Switch';
|
|
10
|
+
export { InkToggleText } from './InkToggleText';
|
|
11
|
+
export { InkToggleTextGroup } from './InkToggleTextGroup';
|
|
12
|
+
export { InkToggleIcon } from './InkToggleIcon';
|
|
13
|
+
export { InkToggleIconGroup, type InkToggleIconGroupProps, } from './InkToggleIconGroup';
|
|
14
|
+
export { InkEmptyState } from './InkEmptyState';
|
|
15
|
+
export { InkSelect, type MenuOption } from './InkSelect';
|
|
16
|
+
export { InkFormSelect } from './InkFormSelect';
|
|
17
|
+
export * from './InkSnackbar';
|
|
18
|
+
export { InkAttributeList } from './InkAttributeList';
|
|
19
|
+
export { InkImage } from './InkImage';
|
|
20
|
+
export { InkDrawer } from './InkDrawer';
|
|
21
|
+
export * from './InkTextField';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PaperProps } from '@mui/material/Paper';
|
|
2
|
+
export type InkPaperProps = PaperProps & {
|
|
3
|
+
Header: string | JSX.Element;
|
|
4
|
+
Description?: string | JSX.Element;
|
|
5
|
+
Icon?: JSX.Element;
|
|
6
|
+
CTA?: JSX.Element;
|
|
7
|
+
shouldShowFullDescription?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare function InkPaper({ Header, Description, Icon, CTA, children, shouldShowFullDescription, ...props }: InkPaperProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InkPaper';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as useCopyToClipboard } from './useCopyToClipboard';
|
package/lib/index.d.ts
CHANGED
|
@@ -5,8 +5,7 @@ import { ButtonProps } from '@mui/material';
|
|
|
5
5
|
import { ButtonProps as ButtonProps_2 } from '@mui/material/Button';
|
|
6
6
|
import { ChipProps } from '@mui/material';
|
|
7
7
|
import { CustomContentProps } from 'notistack';
|
|
8
|
-
import {
|
|
9
|
-
import { DialogProps } from '@mui/material/Dialog';
|
|
8
|
+
import type { DialogProps } from '@mui/material/Dialog';
|
|
10
9
|
import { DrawerProps } from '@mui/material/Drawer';
|
|
11
10
|
import { DrawerProps as DrawerProps_2 } from '@mui/material';
|
|
12
11
|
import { FieldPath } from 'react-hook-form';
|
|
@@ -24,6 +23,7 @@ import { MenuProps } from '@mui/material';
|
|
|
24
23
|
import { OverridableComponent } from '@mui/material/OverridableComponent';
|
|
25
24
|
import { PaperProps } from '@mui/material/Paper';
|
|
26
25
|
import { PropsWithChildren } from 'react';
|
|
26
|
+
import { default as React_2 } from 'react';
|
|
27
27
|
import { ReactNode } from 'react';
|
|
28
28
|
import { Ref } from 'react';
|
|
29
29
|
import { RefAttributes } from 'react';
|
|
@@ -32,6 +32,7 @@ import { SnackbarProviderProps } from 'notistack';
|
|
|
32
32
|
import { SvgIconTypeMap } from '@mui/material';
|
|
33
33
|
import { SwitchProps } from '@mui/material';
|
|
34
34
|
import { SxProps } from '@mui/material';
|
|
35
|
+
import { TextFieldProps } from '@mui/material/TextField';
|
|
35
36
|
import { Theme } from '@mui/material';
|
|
36
37
|
import { ToggleButtonGroupProps } from '@mui/material';
|
|
37
38
|
import { ToggleButtonProps } from '@mui/material';
|
|
@@ -214,7 +215,7 @@ export declare type InkDialogProps = DialogProps & {
|
|
|
214
215
|
Content?: JSX.Element;
|
|
215
216
|
Actions?: JSX.Element;
|
|
216
217
|
hideCloseButton?: boolean;
|
|
217
|
-
onClose: (e?:
|
|
218
|
+
onClose: (e?: React_2.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
218
219
|
ActionsProp?: ActionsPropType;
|
|
219
220
|
};
|
|
220
221
|
|
|
@@ -237,6 +238,12 @@ export declare function InkFormSelect<TFieldValues extends FieldValues, TName ex
|
|
|
237
238
|
|
|
238
239
|
declare type InkFormSelectProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> = InkSelectProps & UseControllerProps<TFieldValues, TName>;
|
|
239
240
|
|
|
241
|
+
export declare const InkFormTextField: <TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ control, name, label, rules, helperText, onBlur, ...rest }: InkFormTextFieldProps<TFieldValues, TName>) => JSX_2.Element;
|
|
242
|
+
|
|
243
|
+
declare type InkFormTextFieldProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> = {
|
|
244
|
+
label: string;
|
|
245
|
+
} & UseControllerProps<TFieldValues, TName> & TextFieldProps;
|
|
246
|
+
|
|
240
247
|
export declare function InkImage({ src, alt, sx, imageSx, fallbackText, ...rest }: InkImageProps): JSX_2.Element;
|
|
241
248
|
|
|
242
249
|
declare type InkImageProps = BoxProps_2 & {
|
|
@@ -276,7 +283,7 @@ export declare const InkRadioTiles: ({ name, options, value, ref, direction, car
|
|
|
276
283
|
export declare type InkRadioTilesProps = {
|
|
277
284
|
name: string;
|
|
278
285
|
options: Option_2[];
|
|
279
|
-
onChange: (e:
|
|
286
|
+
onChange: (e: React_2.ChangeEvent<HTMLInputElement>) => void;
|
|
280
287
|
onBlur?: () => void;
|
|
281
288
|
value: string | number;
|
|
282
289
|
ref?: Ref<HTMLDivElement>;
|
|
@@ -350,6 +357,12 @@ declare type InkSwitchProps = {
|
|
|
350
357
|
labelPlacement?: 'start' | 'end' | 'top' | 'bottom';
|
|
351
358
|
} & SwitchProps;
|
|
352
359
|
|
|
360
|
+
export declare function InkTextField({ name, minRows, sx, ...rest }: InkTextFieldProps): JSX_2.Element;
|
|
361
|
+
|
|
362
|
+
export declare type InkTextFieldProps = TextFieldProps & {
|
|
363
|
+
name: string;
|
|
364
|
+
};
|
|
365
|
+
|
|
353
366
|
export declare function InkToggleIcon({ value, size, ariaLabel, icon, ...rest }: InkToggleIconProps): JSX_2.Element;
|
|
354
367
|
|
|
355
368
|
export declare function InkToggleIconGroup({ id, toggleButtons, ariaLabel, size, single, value, enforceValueSet, onChange, sx, ...rest }: InkToggleIconGroupProps): JSX_2.Element;
|