@movable/ui 1.19.0 → 2.0.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/index.d.ts +646 -4
- package/package.json +3 -2
- package/lib/components/Chip/InkChip.d.ts +0 -8
- package/lib/components/Chip/index.d.ts +0 -1
- package/lib/components/ChipGroup/InkChipGroup.d.ts +0 -9
- package/lib/components/ChipGroup/index.d.ts +0 -1
- package/lib/components/DemoComponent.d.ts +0 -5
- package/lib/components/Dialog/ActionButtonHelper.d.ts +0 -4
- package/lib/components/Dialog/DialogIcons.d.ts +0 -5
- package/lib/components/Dialog/InkDialog.d.ts +0 -23
- package/lib/components/Dialog/index.d.ts +0 -1
- package/lib/components/Header/HeaderMetadata.d.ts +0 -10
- package/lib/components/Header/HeaderSubtitle.d.ts +0 -5
- package/lib/components/Header/InkPageHeader.d.ts +0 -12
- package/lib/components/Header/InkWorkflowHeader.d.ts +0 -7
- package/lib/components/Header/InternalUseOnlyLabel.d.ts +0 -6
- package/lib/components/Header/LinkBreadcrumbs.d.ts +0 -14
- package/lib/components/Header/PageHeaderActionButtons.d.ts +0 -23
- package/lib/components/Header/StickyHeader.d.ts +0 -9
- package/lib/components/Header/index.d.ts +0 -6
- package/lib/components/InkEmptyState/EmptyStateIcon.d.ts +0 -8
- package/lib/components/InkEmptyState/InkEmptyState.d.ts +0 -17
- package/lib/components/InkEmptyState/VariantStyles.d.ts +0 -10
- package/lib/components/InkEmptyState/index.d.ts +0 -1
- package/lib/components/InkEmptyTableMessage/InkEmptyTableMessage.d.ts +0 -7
- package/lib/components/InkEmptyTableMessage/index.d.ts +0 -1
- package/lib/components/InkRadioTiles/InkRadioTiles.d.ts +0 -24
- package/lib/components/InkRadioTiles/index.d.ts +0 -1
- package/lib/components/InkSelect/InkSelect.d.ts +0 -16
- package/lib/components/InkSelect/InkSelectTest.d.ts +0 -12
- package/lib/components/InkSelect/MenuOptionsTest.d.ts +0 -4
- package/lib/components/InkSelect/index.d.ts +0 -1
- package/lib/components/InkSelect/useMenuHelper.d.ts +0 -17
- package/lib/components/InkSnackbar/InkSnackbarAlert.d.ts +0 -12
- package/lib/components/InkSnackbar/InkSnackbarContent.d.ts +0 -3
- package/lib/components/InkSnackbar/InkSnackbarContentProps.d.ts +0 -8
- package/lib/components/InkSnackbar/InkSnackbarProvider.d.ts +0 -3
- package/lib/components/InkSnackbar/SnackbarActionButton.d.ts +0 -7
- package/lib/components/InkSnackbar/index.d.ts +0 -6
- package/lib/components/InkToggleIcon/InkToggleIcon.d.ts +0 -9
- package/lib/components/InkToggleIcon/index.d.ts +0 -1
- package/lib/components/InkToggleIconGroup/InkToggleIconGroup.d.ts +0 -14
- package/lib/components/InkToggleIconGroup/index.d.ts +0 -1
- package/lib/components/InkToggleText/InkToggleText.d.ts +0 -9
- package/lib/components/InkToggleText/index.d.ts +0 -1
- package/lib/components/InkToggleTextGroup/InkToggleTextGroup.d.ts +0 -15
- package/lib/components/InkToggleTextGroup/index.d.ts +0 -1
- package/lib/components/PersistentFilterDrawer/InkPersistentFilterDrawer.d.ts +0 -18
- package/lib/components/PersistentFilterDrawer/index.d.ts +0 -1
- package/lib/components/Switch/InkSwitch.d.ts +0 -8
- package/lib/components/Switch/index.d.ts +0 -1
- package/lib/components/index.d.ts +0 -16
- package/lib/components/surfaces/InkPaper.d.ts +0 -8
- package/lib/components/surfaces/index.d.ts +0 -1
- package/lib/layouts/DetailsLayout.d.ts +0 -7
- package/lib/layouts/index.d.ts +0 -1
- package/lib/layouts/mocks/MockDetailsBody.d.ts +0 -1
- package/lib/layouts/mocks/MockInkPageHeader.d.ts +0 -2
- package/lib/layouts/mocks/index.d.ts +0 -2
- package/lib/page-objects/index.d.ts +0 -3
- package/lib/page-objects/ink-dialog.d.ts +0 -21
- package/lib/page-objects/ink-select.d.ts +0 -22
- package/lib/page-objects/ink-snackbar-alert.d.ts +0 -12
- package/lib/theme/components/Alert.d.ts +0 -60
- package/lib/theme/components/DataGrid.d.ts +0 -45
- package/lib/theme/components/autocomplete.d.ts +0 -62
- package/lib/theme/components/chip.d.ts +0 -296
- package/lib/theme/components/dialog.d.ts +0 -32
- package/lib/theme/components/drawer.d.ts +0 -10
- package/lib/theme/components/form.d.ts +0 -248
- package/lib/theme/components/snackbar.d.ts +0 -13
- package/lib/theme/components/stepper.d.ts +0 -894
- package/lib/theme/components/surfaces/card.d.ts +0 -61
- package/lib/theme/components/surfaces/index.d.ts +0 -3
- package/lib/theme/components/surfaces/paper.d.ts +0 -26
- package/lib/theme/components/typography.d.ts +0 -18
- package/lib/theme/palette.d.ts +0 -237
- package/lib/theme.d.ts +0 -258
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,646 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { AlertProps } from '@mui/material/Alert';
|
|
2
|
+
import { BoxProps } from '@mui/material';
|
|
3
|
+
import { ButtonProps } from '@mui/material';
|
|
4
|
+
import { ButtonProps as ButtonProps_2 } from '@mui/material/Button';
|
|
5
|
+
import { ChipProps } from '@mui/material';
|
|
6
|
+
import { CustomContentProps } from 'notistack';
|
|
7
|
+
import { default as default_2 } from 'react';
|
|
8
|
+
import { DialogProps } from '@mui/material/Dialog';
|
|
9
|
+
import { DrawerProps } from '@mui/material/Drawer';
|
|
10
|
+
import { FieldPath } from 'react-hook-form';
|
|
11
|
+
import { FieldValues } from 'react-hook-form';
|
|
12
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
13
|
+
import { GridProps } from '@mui/material/Grid';
|
|
14
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
15
|
+
import { LinkProps } from '@mui/material';
|
|
16
|
+
import { MenuItemProps } from '@mui/material';
|
|
17
|
+
import { MenuProps } from '@mui/material';
|
|
18
|
+
import { OverridableComponent } from '@mui/material/OverridableComponent';
|
|
19
|
+
import { PaperProps } from '@mui/material/Paper';
|
|
20
|
+
import { PropsWithChildren } from 'react';
|
|
21
|
+
import { ReactNode } from 'react';
|
|
22
|
+
import { Ref } from 'react';
|
|
23
|
+
import { RefAttributes } from 'react';
|
|
24
|
+
import { SelectProps } from '@mui/material';
|
|
25
|
+
import { SnackbarProviderProps } from 'notistack';
|
|
26
|
+
import { SvgIconTypeMap } from '@mui/material';
|
|
27
|
+
import { SwitchProps } from '@mui/material';
|
|
28
|
+
import { SxProps } from '@mui/material';
|
|
29
|
+
import { Theme } from '@mui/material';
|
|
30
|
+
import { ToggleButtonGroupProps } from '@mui/material';
|
|
31
|
+
import { ToggleButtonProps } from '@mui/material';
|
|
32
|
+
import { UseControllerProps } from 'react-hook-form';
|
|
33
|
+
import { VariantType as VariantType_2 } from 'notistack';
|
|
34
|
+
|
|
35
|
+
declare type ActionPropType = Omit<ButtonProps, 'variant'> & {
|
|
36
|
+
label: string;
|
|
37
|
+
variant?: 'primary' | 'warning' | 'destructive';
|
|
38
|
+
loading?: boolean;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
declare type ActionsPropType = {
|
|
42
|
+
primary?: ActionPropType;
|
|
43
|
+
secondary?: ActionPropType;
|
|
44
|
+
cancel?: ActionPropType;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
declare type ActionType = {
|
|
48
|
+
title: string;
|
|
49
|
+
onClick: () => void;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
declare type BreadcrumbProps = {
|
|
53
|
+
breadcrumbs: HeaderLink[];
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
declare type ButtonPropsType = ButtonProps & {
|
|
57
|
+
label: ReactNode;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export declare function DemoComponent({ stringToDisplay }: DemoComponentProps): JSX_2.Element;
|
|
61
|
+
|
|
62
|
+
declare type DemoComponentProps = {
|
|
63
|
+
stringToDisplay: string;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export declare function DetailsLayout({ Header, children, ...rest }: LayoutDetailsProps): JSX_2.Element;
|
|
67
|
+
|
|
68
|
+
declare type DropdownActionType = {
|
|
69
|
+
label: ReactNode;
|
|
70
|
+
menuOptions: MenuOptionType[];
|
|
71
|
+
menuProps?: Partial<MenuProps>;
|
|
72
|
+
internalUseOnlyItems?: ReactNode[];
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
declare type HeaderLink = {
|
|
76
|
+
label: string;
|
|
77
|
+
path?: string;
|
|
78
|
+
onClick?: () => void;
|
|
79
|
+
LinkProps?: {
|
|
80
|
+
to: string;
|
|
81
|
+
} & LinkProps;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export declare function HeaderMetadata({ metadata }: MetaDataProps): JSX_2.Element;
|
|
85
|
+
|
|
86
|
+
declare type HeaderMetadataType = {
|
|
87
|
+
icon: string | JSX.Element;
|
|
88
|
+
label: string;
|
|
89
|
+
value: string | JSX.Element;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export declare function HeaderSubtitle({ subtitle }: HeaderSubtitleType): JSX_2.Element;
|
|
93
|
+
|
|
94
|
+
declare type HeaderSubtitleType = {
|
|
95
|
+
subtitle: string;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
declare type IFilterDrawer = DrawerProps & {
|
|
99
|
+
isOpen: boolean;
|
|
100
|
+
handleDrawerClose: () => void;
|
|
101
|
+
drawerWidth?: number;
|
|
102
|
+
leftOffset?: string;
|
|
103
|
+
filterContent: JSX.Element;
|
|
104
|
+
bottomFilter?: JSX.Element;
|
|
105
|
+
headerLabel?: string;
|
|
106
|
+
isComponentLevelDrawer?: boolean;
|
|
107
|
+
mainProps?: BoxProps;
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
export declare function InkChip({ maxWidth, chipProps, size, }: InkChipPropType): JSX_2.Element;
|
|
111
|
+
|
|
112
|
+
export declare function InkChipGroup({ chipList, numTagsToDisplay, size, maxChipWidth, }: InkChipGroupProps): JSX_2.Element;
|
|
113
|
+
|
|
114
|
+
declare type InkChipGroupProps = {
|
|
115
|
+
chipList: ChipProps[];
|
|
116
|
+
numTagsToDisplay?: number;
|
|
117
|
+
size?: 'small' | 'medium';
|
|
118
|
+
maxChipWidth?: number;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
declare type InkChipPropType = {
|
|
122
|
+
maxWidth?: number;
|
|
123
|
+
chipProps: ChipProps;
|
|
124
|
+
size?: 'small' | 'medium';
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
export declare function InkDialog({ Title, Content, Actions, onClose, hideCloseButton, ActionsProp, ...props }: InkDialogProps): JSX_2.Element;
|
|
128
|
+
|
|
129
|
+
export declare const inkDialog: InkDialogPageObject;
|
|
130
|
+
|
|
131
|
+
export declare class InkDialogPageObject {
|
|
132
|
+
BASE_ATTRIBUTE: string;
|
|
133
|
+
get element(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
134
|
+
get paper(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
135
|
+
get primaryAction(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
136
|
+
get secondaryAction(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
137
|
+
get cancelAction(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
138
|
+
get dialogTrigger(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
139
|
+
get closeTrigger(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
140
|
+
get title(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
141
|
+
isOpen(): void;
|
|
142
|
+
isClosed(): void;
|
|
143
|
+
openDialog(): void;
|
|
144
|
+
closeDialog(): void;
|
|
145
|
+
hasPrimaryAction(label: string): void;
|
|
146
|
+
hasSecondaryAction(label: string): void;
|
|
147
|
+
hasCancelAction(label: string): void;
|
|
148
|
+
hasTitle(title: string): void;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export declare type InkDialogProps = DialogProps & {
|
|
152
|
+
Title?: string | JSX.Element;
|
|
153
|
+
Content?: JSX.Element;
|
|
154
|
+
Actions?: JSX.Element;
|
|
155
|
+
hideCloseButton?: boolean;
|
|
156
|
+
onClose: (e?: default_2.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
157
|
+
ActionsProp?: ActionsPropType;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
export declare function InkEmptyState({ title, description, action, variant, icon, sx, }: InkEmptyStateProps): JSX_2.Element;
|
|
161
|
+
|
|
162
|
+
declare type InkEmptyStateProps = {
|
|
163
|
+
title?: string;
|
|
164
|
+
description?: string;
|
|
165
|
+
action?: ActionType;
|
|
166
|
+
variant: VariantType;
|
|
167
|
+
icon?: JSX.Element | OverridableComponent<SvgIconTypeMap<object, 'svg'>>;
|
|
168
|
+
sx?: SxProps<Theme>;
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
export declare function InkPageHeader({ Breadcrumbs, Subtitle, Metadata, Chips, ButtonGroup, Tabs, sx, }: InkPageHeaderProps): JSX_2.Element;
|
|
172
|
+
|
|
173
|
+
declare type InkPageHeaderProps = {
|
|
174
|
+
Breadcrumbs?: JSX.Element;
|
|
175
|
+
Subtitle?: JSX.Element;
|
|
176
|
+
Metadata?: JSX.Element;
|
|
177
|
+
ButtonGroup?: JSX.Element;
|
|
178
|
+
Chips?: JSX.Element;
|
|
179
|
+
Tabs?: JSX.Element;
|
|
180
|
+
sx?: SxProps<Theme>;
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
export declare function InkPaper({ Header, Description, Icon, CTA, children, ...props }: InkPaperProps): JSX_2.Element;
|
|
184
|
+
|
|
185
|
+
export declare type InkPaperProps = PaperProps & {
|
|
186
|
+
Header: string | JSX.Element;
|
|
187
|
+
Description?: string;
|
|
188
|
+
Icon?: JSX.Element;
|
|
189
|
+
CTA?: JSX.Element;
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
export declare function InkPersistentFilterDrawer({ isOpen, handleDrawerClose, children, drawerWidth, leftOffset, //primary nav width when closed and when open
|
|
193
|
+
filterContent, bottomFilter, headerLabel, sx, isComponentLevelDrawer, mainProps, }: PropsWithChildren<IFilterDrawer>): JSX_2.Element;
|
|
194
|
+
|
|
195
|
+
export declare const InkRadioTiles: ({ name, options, value, ref, direction, cardSx, fullWidth, disabled, onChange, onBlur, }: InkRadioTilesProps) => JSX_2.Element;
|
|
196
|
+
|
|
197
|
+
export declare type InkRadioTilesProps = {
|
|
198
|
+
name: string;
|
|
199
|
+
options: Option_2[];
|
|
200
|
+
onChange: (e: default_2.ChangeEvent<HTMLInputElement>) => void;
|
|
201
|
+
onBlur?: () => void;
|
|
202
|
+
value: string | number;
|
|
203
|
+
ref?: Ref<HTMLDivElement>;
|
|
204
|
+
direction?: 'row' | 'column';
|
|
205
|
+
cardSx?: SxProps<Theme>;
|
|
206
|
+
fullWidth?: boolean;
|
|
207
|
+
disabled?: boolean;
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
export declare function InkSelect<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ id, label, menuOptions, name, control, inputProps, rules, helperText, sx, variant, required, placeholder, onChange, onBlur, children, ...rest }: InkSelectProps<TFieldValues, TName> & MuiSelectProps): JSX_2.Element;
|
|
211
|
+
|
|
212
|
+
export declare class inkSelect {
|
|
213
|
+
baseAttribute: string;
|
|
214
|
+
name: string;
|
|
215
|
+
static create(name: string): inkSelect;
|
|
216
|
+
constructor(name: string);
|
|
217
|
+
get element(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
218
|
+
get menuElement(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
219
|
+
get label(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
220
|
+
get select(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
221
|
+
get input(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
222
|
+
get options(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
223
|
+
option(value: string): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
224
|
+
get helperText(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
225
|
+
hasHelperText(value: string): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
226
|
+
hasLabel(value: string): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
227
|
+
hasDisplayValue(value: string): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
228
|
+
hasValue(value: string): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
229
|
+
hasOption(label: string, value: string, index?: number): void;
|
|
230
|
+
closeMenu(): void;
|
|
231
|
+
openMenu(): void;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
declare type InkSelectProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> = {
|
|
235
|
+
id: string;
|
|
236
|
+
label?: string;
|
|
237
|
+
menuOptions?: MenuOption[];
|
|
238
|
+
variant?: 'filled' | 'outlined';
|
|
239
|
+
placeholder?: string;
|
|
240
|
+
helperText?: string;
|
|
241
|
+
required?: boolean;
|
|
242
|
+
sx?: SxProps<Theme>;
|
|
243
|
+
} & UseControllerProps<TFieldValues, TName> & MuiSelectProps;
|
|
244
|
+
|
|
245
|
+
declare type InkSnackbarActionButtonProps = ButtonProps_2 & {
|
|
246
|
+
label: string;
|
|
247
|
+
closeSnackbar: () => void;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
export declare const InkSnackbarAlert: ({ action, severity, alertProps, message, onClose, title, }: InkSnackbarAlertProps) => JSX_2.Element;
|
|
251
|
+
|
|
252
|
+
export declare type InkSnackbarAlertProps = {
|
|
253
|
+
message: InkSnackbarContentProps['message'];
|
|
254
|
+
severity: VariantType_2;
|
|
255
|
+
alertProps?: InkSnackbarContentProps['alertProps'];
|
|
256
|
+
title?: InkSnackbarContentProps['title'];
|
|
257
|
+
action?: InkSnackbarContentProps['action'];
|
|
258
|
+
onClose?: InkSnackbarContentProps['onClose'];
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
export declare const InkSnackbarContent: ForwardRefExoticComponent<InkSnackbarContentProps & RefAttributes<HTMLDivElement>>;
|
|
262
|
+
|
|
263
|
+
export declare interface InkSnackbarContentProps extends CustomContentProps {
|
|
264
|
+
alertProps?: AlertProps;
|
|
265
|
+
title?: string;
|
|
266
|
+
action?: AlertProps['action'];
|
|
267
|
+
onClose?: AlertProps['onClose'];
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export declare const InkSnackbarProvider: ({ children, maxSnack, anchorOrigin, ...rest }: SnackbarProviderProps) => JSX_2.Element;
|
|
271
|
+
|
|
272
|
+
export declare function InkSwitch({ id, label, labelPlacement, sx, ...rest }: InkSwitchProps): JSX_2.Element;
|
|
273
|
+
|
|
274
|
+
declare type InkSwitchProps = {
|
|
275
|
+
id: string;
|
|
276
|
+
label?: string;
|
|
277
|
+
labelPlacement?: 'start' | 'end' | 'top' | 'bottom';
|
|
278
|
+
} & SwitchProps;
|
|
279
|
+
|
|
280
|
+
export declare function InkToggleIcon({ value, size, ariaLabel, icon, ...rest }: InkToggleIconProps): JSX_2.Element;
|
|
281
|
+
|
|
282
|
+
export declare function InkToggleIconGroup({ id, toggleButtons, ariaLabel, size, single, value, enforceValueSet, onChange, sx, ...rest }: InkToggleIconGroupProps): JSX_2.Element;
|
|
283
|
+
|
|
284
|
+
export declare type InkToggleIconGroupProps = ToggleButtonGroupProps & {
|
|
285
|
+
id: string;
|
|
286
|
+
toggleButtons: {
|
|
287
|
+
value: string | number;
|
|
288
|
+
icon: JSX.Element;
|
|
289
|
+
disabled?: boolean;
|
|
290
|
+
}[];
|
|
291
|
+
ariaLabel?: string;
|
|
292
|
+
size?: 'x-small' | 'small' | 'medium' | 'large';
|
|
293
|
+
single?: boolean;
|
|
294
|
+
enforceValueSet?: boolean;
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
declare type InkToggleIconProps = ToggleButtonProps & {
|
|
298
|
+
ariaLabel?: string;
|
|
299
|
+
size?: 'x-small' | 'small' | 'medium' | 'large';
|
|
300
|
+
icon: JSX.Element;
|
|
301
|
+
value: string | number;
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
export declare function InkToggleText({ value, label, size, ariaLabel, ...rest }: InkToggleTextProps): JSX_2.Element;
|
|
305
|
+
|
|
306
|
+
export declare function InkToggleTextGroup({ id, toggleButtons, ariaLabel, value, size, single, enforceValueSet, sx, onChange, ...rest }: InkToggleTextGroupProps): JSX_2.Element;
|
|
307
|
+
|
|
308
|
+
declare type InkToggleTextGroupProps = ToggleButtonGroupProps & {
|
|
309
|
+
id: string;
|
|
310
|
+
toggleButtons: {
|
|
311
|
+
value: string | number;
|
|
312
|
+
label?: string;
|
|
313
|
+
disabled?: boolean;
|
|
314
|
+
}[];
|
|
315
|
+
ariaLabel?: string;
|
|
316
|
+
size?: 'x-small' | 'small' | 'medium' | 'large';
|
|
317
|
+
single?: boolean;
|
|
318
|
+
enforceValueSet?: boolean;
|
|
319
|
+
};
|
|
320
|
+
|
|
321
|
+
declare type InkToggleTextProps = ToggleButtonProps & {
|
|
322
|
+
ariaLabel?: string;
|
|
323
|
+
size?: 'x-small' | 'small' | 'medium' | 'large';
|
|
324
|
+
label?: string;
|
|
325
|
+
value: string | number;
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
export declare function InkWorkflowHeader({ label, Stepper, ButtonGroup, }: InkWorkflowHeaderProps): JSX_2.Element;
|
|
329
|
+
|
|
330
|
+
declare type InkWorkflowHeaderProps = {
|
|
331
|
+
label: string;
|
|
332
|
+
Stepper?: JSX.Element;
|
|
333
|
+
ButtonGroup: JSX.Element;
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
declare type LayoutDetailsProps = GridProps & {
|
|
337
|
+
Header: JSX.Element;
|
|
338
|
+
children: React.ReactNode;
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
export declare function LinkBreadcrumbs({ breadcrumbs }: BreadcrumbProps): JSX_2.Element;
|
|
342
|
+
|
|
343
|
+
export declare type MenuOption = MenuItemProps & {
|
|
344
|
+
label: string;
|
|
345
|
+
group?: string;
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
declare type MenuOptionType = {
|
|
349
|
+
label: ReactNode;
|
|
350
|
+
onClick: () => void;
|
|
351
|
+
menuItemProps?: Partial<MenuItemProps>;
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
declare type MetaDataProps = {
|
|
355
|
+
metadata: HeaderMetadataType[];
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
export declare const MovableUITheme: Theme;
|
|
359
|
+
|
|
360
|
+
declare type MuiSelectProps = SelectProps<string>;
|
|
361
|
+
|
|
362
|
+
declare interface Option_2 {
|
|
363
|
+
value: string;
|
|
364
|
+
icon?: JSX.Element;
|
|
365
|
+
title: string;
|
|
366
|
+
description?: string;
|
|
367
|
+
subDescription?: string;
|
|
368
|
+
disabled?: boolean;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
export declare function PageHeaderActionButtons({ primaryAction, secondaryAction, dropdownAction, }: PageHeaderActionButtonsProps): JSX_2.Element;
|
|
372
|
+
|
|
373
|
+
declare type PageHeaderActionButtonsProps = {
|
|
374
|
+
primaryAction?: ButtonPropsType;
|
|
375
|
+
secondaryAction?: ButtonPropsType;
|
|
376
|
+
dropdownAction?: DropdownActionType;
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
export declare function SnackbarActionButton({ closeSnackbar, label, ...buttonProps }: InkSnackbarActionButtonProps): JSX_2.Element;
|
|
380
|
+
|
|
381
|
+
declare type VariantType = 'page' | 'paper' | 'search' | 'data';
|
|
382
|
+
|
|
383
|
+
export { }
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
declare module '@mui/material/styles' {
|
|
387
|
+
interface Palette {
|
|
388
|
+
ai: Palette['primary'];
|
|
389
|
+
}
|
|
390
|
+
interface PaletteOptions {
|
|
391
|
+
ai?: PaletteOptions['primary'];
|
|
392
|
+
}
|
|
393
|
+
interface PaletteColor {
|
|
394
|
+
hover?: string;
|
|
395
|
+
selected?: string;
|
|
396
|
+
focus?: string;
|
|
397
|
+
focusVisible?: string;
|
|
398
|
+
outlinedBorder?: string;
|
|
399
|
+
}
|
|
400
|
+
interface Palette {
|
|
401
|
+
focusVisible: string;
|
|
402
|
+
blue50: string;
|
|
403
|
+
blue100: string;
|
|
404
|
+
blue200: string;
|
|
405
|
+
blue300: string;
|
|
406
|
+
blue400: string;
|
|
407
|
+
blue500: string;
|
|
408
|
+
blue600: string;
|
|
409
|
+
blue700: string;
|
|
410
|
+
blue800: string;
|
|
411
|
+
blue900: string;
|
|
412
|
+
blueA100: string;
|
|
413
|
+
blueA200: string;
|
|
414
|
+
blueA400: string;
|
|
415
|
+
blueA700: string;
|
|
416
|
+
blue1000: string;
|
|
417
|
+
green50: string;
|
|
418
|
+
green100: string;
|
|
419
|
+
green200: string;
|
|
420
|
+
green300: string;
|
|
421
|
+
green400: string;
|
|
422
|
+
green500: string;
|
|
423
|
+
green600: string;
|
|
424
|
+
green700: string;
|
|
425
|
+
green800: string;
|
|
426
|
+
green900: string;
|
|
427
|
+
green1000: string;
|
|
428
|
+
greenA100: string;
|
|
429
|
+
greenA200: string;
|
|
430
|
+
greenA400: string;
|
|
431
|
+
greenA700: string;
|
|
432
|
+
greenA900: string;
|
|
433
|
+
lightBlue50: string;
|
|
434
|
+
lightBlue100: string;
|
|
435
|
+
lightBlue200: string;
|
|
436
|
+
lightBlue300: string;
|
|
437
|
+
lightBlue400: string;
|
|
438
|
+
lightBlue500: string;
|
|
439
|
+
lightBlue600: string;
|
|
440
|
+
lightBlue700: string;
|
|
441
|
+
lightBlue800: string;
|
|
442
|
+
lightBlue900: string;
|
|
443
|
+
lightBlue1000: string;
|
|
444
|
+
lightBlueA100: string;
|
|
445
|
+
lightBlueA200: string;
|
|
446
|
+
lightBlueA400: string;
|
|
447
|
+
lightBlueA700: string;
|
|
448
|
+
lightGreen50: string;
|
|
449
|
+
lightGreen100: string;
|
|
450
|
+
lightGreen200: string;
|
|
451
|
+
lightGreen300: string;
|
|
452
|
+
lightGreen400: string;
|
|
453
|
+
lightGreen500: string;
|
|
454
|
+
lightGreen600: string;
|
|
455
|
+
lightGreen700: string;
|
|
456
|
+
lightGreen800: string;
|
|
457
|
+
lightGreen900: string;
|
|
458
|
+
neutral00: string;
|
|
459
|
+
neutral50: string;
|
|
460
|
+
neutral100: string;
|
|
461
|
+
neutral200: string;
|
|
462
|
+
neutral300: string;
|
|
463
|
+
neutral400: string;
|
|
464
|
+
neutral500: string;
|
|
465
|
+
neutral600: string;
|
|
466
|
+
neutral700: string;
|
|
467
|
+
neutral800: string;
|
|
468
|
+
neutral900: string;
|
|
469
|
+
neutralA100: string;
|
|
470
|
+
neutralA200: string;
|
|
471
|
+
neutralA400: string;
|
|
472
|
+
neutralA700: string;
|
|
473
|
+
orange50: string;
|
|
474
|
+
orange100: string;
|
|
475
|
+
orange200: string;
|
|
476
|
+
orange300: string;
|
|
477
|
+
orange400: string;
|
|
478
|
+
orange500: string;
|
|
479
|
+
orange600: string;
|
|
480
|
+
orange700: string;
|
|
481
|
+
orange800: string;
|
|
482
|
+
orange900: string;
|
|
483
|
+
orange1000: string;
|
|
484
|
+
orangeA100: string;
|
|
485
|
+
orangeA200: string;
|
|
486
|
+
orangeA400: string;
|
|
487
|
+
orangeA700: string;
|
|
488
|
+
purple50: string;
|
|
489
|
+
purple100: string;
|
|
490
|
+
purple200: string;
|
|
491
|
+
purple300: string;
|
|
492
|
+
purple400: string;
|
|
493
|
+
purple500: string;
|
|
494
|
+
purple600: string;
|
|
495
|
+
purple700: string;
|
|
496
|
+
purple800: string;
|
|
497
|
+
purple900: string;
|
|
498
|
+
purple1000: string;
|
|
499
|
+
purpleA100: string;
|
|
500
|
+
purpleA200: string;
|
|
501
|
+
purpleA400: string;
|
|
502
|
+
purpleA700: string;
|
|
503
|
+
yellow50: string;
|
|
504
|
+
yellow100: string;
|
|
505
|
+
yellow200: string;
|
|
506
|
+
yellow300: string;
|
|
507
|
+
yellow400: string;
|
|
508
|
+
yellow500: string;
|
|
509
|
+
yellow600: string;
|
|
510
|
+
yellow700: string;
|
|
511
|
+
yellow800: string;
|
|
512
|
+
yellow900: string;
|
|
513
|
+
yellow1000: string;
|
|
514
|
+
yellowA100: string;
|
|
515
|
+
yellowA200: string;
|
|
516
|
+
yellowA400: string;
|
|
517
|
+
yellowA700: string;
|
|
518
|
+
red50: string;
|
|
519
|
+
red100: string;
|
|
520
|
+
red200: string;
|
|
521
|
+
red300: string;
|
|
522
|
+
red400: string;
|
|
523
|
+
red500: string;
|
|
524
|
+
red600: string;
|
|
525
|
+
red700: string;
|
|
526
|
+
red800: string;
|
|
527
|
+
red900: string;
|
|
528
|
+
red1000: string;
|
|
529
|
+
redA100: string;
|
|
530
|
+
redA200: string;
|
|
531
|
+
redA400: string;
|
|
532
|
+
redA700: string;
|
|
533
|
+
cyan50: string;
|
|
534
|
+
cyan100: string;
|
|
535
|
+
cyan200: string;
|
|
536
|
+
cyan300: string;
|
|
537
|
+
cyan400: string;
|
|
538
|
+
cyan500: string;
|
|
539
|
+
cyan600: string;
|
|
540
|
+
cyan700: string;
|
|
541
|
+
cyan800: string;
|
|
542
|
+
cyan900: string;
|
|
543
|
+
cyan1000: string;
|
|
544
|
+
cyanA100: string;
|
|
545
|
+
cyanA200: string;
|
|
546
|
+
cyanA400: string;
|
|
547
|
+
cyanA700: string;
|
|
548
|
+
deepPurple50: string;
|
|
549
|
+
deepPurple100: string;
|
|
550
|
+
deepPurple200: string;
|
|
551
|
+
deepPurple300: string;
|
|
552
|
+
deepPurple400: string;
|
|
553
|
+
deepPurple500: string;
|
|
554
|
+
deepPurple600: string;
|
|
555
|
+
deepPurple700: string;
|
|
556
|
+
deepPurple800: string;
|
|
557
|
+
deepPurple900: string;
|
|
558
|
+
deepPurple1000: string;
|
|
559
|
+
deepPurpleA100: string;
|
|
560
|
+
deepPurpleA200: string;
|
|
561
|
+
deepPurpleA400: string;
|
|
562
|
+
deepPurpleA700: string;
|
|
563
|
+
}
|
|
564
|
+
interface PalletteOptions {
|
|
565
|
+
focusVisible: string;
|
|
566
|
+
neutral50: string;
|
|
567
|
+
neutral100: string;
|
|
568
|
+
neutral200: string;
|
|
569
|
+
neutral300: string;
|
|
570
|
+
neutral400: string;
|
|
571
|
+
neutral500: string;
|
|
572
|
+
neutral600: string;
|
|
573
|
+
neutral700: string;
|
|
574
|
+
neutral800: string;
|
|
575
|
+
neutral900: string;
|
|
576
|
+
neutralA100: string;
|
|
577
|
+
neutralA200: string;
|
|
578
|
+
neutralA400: string;
|
|
579
|
+
neutralA700: string;
|
|
580
|
+
blue50: string;
|
|
581
|
+
blue100: string;
|
|
582
|
+
blue200: string;
|
|
583
|
+
blue300: string;
|
|
584
|
+
blue400: string;
|
|
585
|
+
blue500: string;
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
declare module '@mui/material/Button' {
|
|
591
|
+
interface ButtonPropsColorOverrides {
|
|
592
|
+
ai: true;
|
|
593
|
+
}
|
|
594
|
+
interface ButtonPropsVariantOverrides {
|
|
595
|
+
card: true;
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
declare module '@mui/material/ToggleButton' {
|
|
601
|
+
interface ToggleButtonPropsSizeOverrides {
|
|
602
|
+
'x-small': true;
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
declare module '@mui/material/ToggleButtonGroup' {
|
|
608
|
+
interface ToggleButtonGroupPropsSizeOverrides {
|
|
609
|
+
'x-small': true;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
declare module '@mui/material/Icon' {
|
|
615
|
+
interface IconPropsSizeOverrides {
|
|
616
|
+
'x-small': true;
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
declare module '@mui/material/Alert' {
|
|
622
|
+
interface AlertPropsVariantOverrides {
|
|
623
|
+
snackbar: true;
|
|
624
|
+
standard: true;
|
|
625
|
+
filled: false;
|
|
626
|
+
outlined: false;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
declare module '@mui/material/Chip' {
|
|
632
|
+
interface ChipPropsVariantOverrides {
|
|
633
|
+
contrastFilled: true;
|
|
634
|
+
}
|
|
635
|
+
interface ChipPropsColorOverrides {
|
|
636
|
+
ai: true;
|
|
637
|
+
inProgress: true;
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
declare module 'notistack' {
|
|
643
|
+
interface EnqueueSnackbar {
|
|
644
|
+
(message: string, options?: InkSnackbarOptions): void;
|
|
645
|
+
}
|
|
646
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@movable/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Movable Ink's shared MUI components and MUI theme for our vite applications",
|
|
5
5
|
"module": "lib/index.mjs",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -90,7 +90,8 @@
|
|
|
90
90
|
"release-it": "^16.1.3",
|
|
91
91
|
"storybook": "^8.1.0",
|
|
92
92
|
"typescript": "^5.6.2",
|
|
93
|
-
"vite": "^5.4.3"
|
|
93
|
+
"vite": "^5.4.3",
|
|
94
|
+
"vite-plugin-dts": "^4.3.0"
|
|
94
95
|
},
|
|
95
96
|
"peerDependencies": {
|
|
96
97
|
"@emotion/react": "^11.11.1",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ChipProps } from '@mui/material';
|
|
2
|
-
type InkChipPropType = {
|
|
3
|
-
maxWidth?: number;
|
|
4
|
-
chipProps: ChipProps;
|
|
5
|
-
size?: 'small' | 'medium';
|
|
6
|
-
};
|
|
7
|
-
export declare function InkChip({ maxWidth, chipProps, size, }: InkChipPropType): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { InkChip } from './InkChip';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ChipProps } from '@mui/material';
|
|
2
|
-
type InkChipGroupProps = {
|
|
3
|
-
chipList: ChipProps[];
|
|
4
|
-
numTagsToDisplay?: number;
|
|
5
|
-
size?: 'small' | 'medium';
|
|
6
|
-
maxChipWidth?: number;
|
|
7
|
-
};
|
|
8
|
-
export declare function InkChipGroup({ chipList, numTagsToDisplay, size, maxChipWidth, }: InkChipGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { InkChipGroup } from './InkChipGroup';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ButtonProps } from '@mui/material';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
export declare const getButtonElements: (element: ReactNode) => ReactNode[];
|
|
4
|
-
export declare const addContainedVariantToPrimaryButton: <T extends React.ReactNode>(element: T, primaryButton: React.ReactElement<ButtonProps> | null) => React.ReactNode;
|