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