@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.
Files changed (110) hide show
  1. package/lib/components/Chip/InkChip.d.ts +9 -0
  2. package/lib/components/Chip/index.d.ts +1 -0
  3. package/lib/components/ChipGroup/InkChipGroup.d.ts +9 -0
  4. package/lib/components/ChipGroup/index.d.ts +1 -0
  5. package/lib/components/DemoComponent.d.ts +5 -0
  6. package/lib/components/Dialog/ActionButtonHelper.d.ts +4 -0
  7. package/lib/components/Dialog/DialogIcons.d.ts +5 -0
  8. package/lib/components/Dialog/InkDialog.d.ts +23 -0
  9. package/lib/components/Dialog/index.d.ts +1 -0
  10. package/lib/components/Header/HeaderMetadata.d.ts +10 -0
  11. package/lib/components/Header/HeaderSubtitle.d.ts +5 -0
  12. package/lib/components/Header/InkPageHeader.d.ts +12 -0
  13. package/lib/components/Header/InkWorkflowHeader.d.ts +19 -0
  14. package/lib/components/Header/InternalUseOnlyLabel.d.ts +6 -0
  15. package/lib/components/Header/LinkBreadcrumbs.d.ts +14 -0
  16. package/lib/components/Header/PageHeaderActionButtons.d.ts +23 -0
  17. package/lib/components/Header/StickyHeader.d.ts +9 -0
  18. package/lib/components/Header/index.d.ts +6 -0
  19. package/lib/components/InkAttributeList/InkAttribute.d.ts +10 -0
  20. package/lib/components/InkAttributeList/InkAttributeList.d.ts +8 -0
  21. package/lib/components/InkAttributeList/index.d.ts +3 -0
  22. package/lib/components/InkCheckboxGroup/InkCheckboxGroup.d.ts +22 -0
  23. package/lib/components/InkCheckboxGroup/InkFormCheckboxGroup.d.ts +5 -0
  24. package/lib/components/InkCheckboxGroup/index.d.ts +3 -0
  25. package/lib/components/InkDrawer/HeaderIcon.d.ts +7 -0
  26. package/lib/components/InkDrawer/InkDrawer.d.ts +28 -0
  27. package/lib/components/InkDrawer/index.d.ts +1 -0
  28. package/lib/components/InkEmptyState/EmptyStateIcon.d.ts +8 -0
  29. package/lib/components/InkEmptyState/InkEmptyState.d.ts +17 -0
  30. package/lib/components/InkEmptyState/VariantStyles.d.ts +10 -0
  31. package/lib/components/InkEmptyState/index.d.ts +1 -0
  32. package/lib/components/InkEmptyTableMessage/InkEmptyTableMessage.d.ts +7 -0
  33. package/lib/components/InkEmptyTableMessage/index.d.ts +1 -0
  34. package/lib/components/InkFormSelect/InkFormSelect.d.ts +5 -0
  35. package/lib/components/InkFormSelect/MockFormSelect.d.ts +9 -0
  36. package/lib/components/InkFormSelect/index.d.ts +1 -0
  37. package/lib/components/InkImage/InkImage.d.ts +8 -0
  38. package/lib/components/InkImage/index.d.ts +2 -0
  39. package/lib/components/InkRadioTiles/InkRadioTiles.d.ts +24 -0
  40. package/lib/components/InkRadioTiles/index.d.ts +1 -0
  41. package/lib/components/InkSelect/InkSelect.d.ts +2 -0
  42. package/lib/components/InkSelect/InkSelectTest.d.ts +9 -0
  43. package/lib/components/InkSelect/MenuOptionsTest.d.ts +4 -0
  44. package/lib/components/InkSelect/index.d.ts +2 -0
  45. package/lib/components/InkSelect/types.d.ts +20 -0
  46. package/lib/components/InkSelect/useMenuHelper.d.ts +3 -0
  47. package/lib/components/InkSnackbar/InkSnackbarAlert.d.ts +12 -0
  48. package/lib/components/InkSnackbar/InkSnackbarContent.d.ts +3 -0
  49. package/lib/components/InkSnackbar/InkSnackbarContentProps.d.ts +8 -0
  50. package/lib/components/InkSnackbar/InkSnackbarProvider.d.ts +3 -0
  51. package/lib/components/InkSnackbar/SnackbarActionButton.d.ts +7 -0
  52. package/lib/components/InkSnackbar/index.d.ts +6 -0
  53. package/lib/components/InkTextField/InkFormTextField.d.ts +7 -0
  54. package/lib/components/InkTextField/InkTextField.d.ts +5 -0
  55. package/lib/components/InkTextField/index.d.ts +3 -0
  56. package/lib/components/InkToggleIcon/InkToggleIcon.d.ts +9 -0
  57. package/lib/components/InkToggleIcon/index.d.ts +1 -0
  58. package/lib/components/InkToggleIconGroup/InkToggleIconGroup.d.ts +14 -0
  59. package/lib/components/InkToggleIconGroup/index.d.ts +1 -0
  60. package/lib/components/InkToggleText/InkToggleText.d.ts +9 -0
  61. package/lib/components/InkToggleText/index.d.ts +1 -0
  62. package/lib/components/InkToggleTextGroup/InkToggleTextGroup.d.ts +15 -0
  63. package/lib/components/InkToggleTextGroup/index.d.ts +1 -0
  64. package/lib/components/PersistentFilterDrawer/InkPersistentFilterDrawer.d.ts +18 -0
  65. package/lib/components/PersistentFilterDrawer/index.d.ts +1 -0
  66. package/lib/components/Switch/InkSwitch.d.ts +8 -0
  67. package/lib/components/Switch/index.d.ts +1 -0
  68. package/lib/components/index.d.ts +21 -0
  69. package/lib/components/surfaces/InkPaper.d.ts +9 -0
  70. package/lib/components/surfaces/index.d.ts +1 -0
  71. package/lib/hooks/index.d.ts +1 -0
  72. package/lib/hooks/useCopyToClipboard.d.ts +4 -0
  73. package/lib/index.d.ts +17 -4
  74. package/lib/index.mjs +11799 -6510
  75. package/lib/index.mjs.map +1 -1
  76. package/lib/layouts/DetailsLayout.d.ts +7 -0
  77. package/lib/layouts/IndexLayout.d.ts +7 -0
  78. package/lib/layouts/WorkflowLayout.d.ts +7 -0
  79. package/lib/layouts/index.d.ts +3 -0
  80. package/lib/layouts/mocks/MockDetailsBody.d.ts +1 -0
  81. package/lib/layouts/mocks/MockIndexBody.d.ts +1 -0
  82. package/lib/layouts/mocks/MockInkPageHeader.d.ts +4 -0
  83. package/lib/layouts/mocks/MockWorkflowBody.d.ts +1 -0
  84. package/lib/layouts/mocks/MockWorkflowHeader.d.ts +1 -0
  85. package/lib/layouts/mocks/index.d.ts +5 -0
  86. package/lib/page-objects/index.d.ts +5 -0
  87. package/lib/page-objects/ink-checkbox-group.d.ts +19 -0
  88. package/lib/page-objects/ink-dialog.d.ts +21 -0
  89. package/lib/page-objects/ink-image.d.ts +12 -0
  90. package/lib/page-objects/ink-select.d.ts +22 -0
  91. package/lib/page-objects/ink-snackbar-alert.d.ts +12 -0
  92. package/lib/page-objects/ink-text-field.d.ts +24 -0
  93. package/lib/theme/components/Alert.d.ts +60 -0
  94. package/lib/theme/components/DataGrid.d.ts +45 -0
  95. package/lib/theme/components/autocomplete.d.ts +62 -0
  96. package/lib/theme/components/chip.d.ts +296 -0
  97. package/lib/theme/components/dialog.d.ts +32 -0
  98. package/lib/theme/components/drawer.d.ts +10 -0
  99. package/lib/theme/components/form.d.ts +255 -0
  100. package/lib/theme/components/snackbar.d.ts +13 -0
  101. package/lib/theme/components/stepper.d.ts +894 -0
  102. package/lib/theme/components/surfaces/card.d.ts +61 -0
  103. package/lib/theme/components/surfaces/index.d.ts +3 -0
  104. package/lib/theme/components/surfaces/paper.d.ts +26 -0
  105. package/lib/theme/components/typography.d.ts +18 -0
  106. package/lib/theme/palette.d.ts +237 -0
  107. package/lib/theme.d.ts +258 -0
  108. package/lib/utils/PageWrapper.d.ts +8 -0
  109. package/lib/utils/index.d.ts +1 -0
  110. 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';
@@ -0,0 +1,4 @@
1
+ type CopiedValue = string | null;
2
+ type CopyFn = (text: string) => Promise<boolean>;
3
+ export default function useCopyToClipboard(): [CopiedValue, CopyFn];
4
+ export {};
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 { default as default_2 } from 'react';
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?: default_2.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
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: default_2.ChangeEvent<HTMLInputElement>) => void;
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;