@movable/ui 2.0.0 → 2.0.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 +22 -10
- package/lib/index.mjs +1693 -1689
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -32,6 +32,11 @@ import { ToggleButtonProps } from '@mui/material';
|
|
|
32
32
|
import { UseControllerProps } from 'react-hook-form';
|
|
33
33
|
import { VariantType as VariantType_2 } from 'notistack';
|
|
34
34
|
|
|
35
|
+
declare type ActionButtonPropType = {
|
|
36
|
+
primary?: PrimaryButtonType;
|
|
37
|
+
close?: closeButtonType;
|
|
38
|
+
};
|
|
39
|
+
|
|
35
40
|
declare type ActionPropType = Omit<ButtonProps, 'variant'> & {
|
|
36
41
|
label: string;
|
|
37
42
|
variant?: 'primary' | 'warning' | 'destructive';
|
|
@@ -57,6 +62,10 @@ declare type ButtonPropsType = ButtonProps & {
|
|
|
57
62
|
label: ReactNode;
|
|
58
63
|
};
|
|
59
64
|
|
|
65
|
+
declare type closeButtonType = {
|
|
66
|
+
onClick: (e?: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
67
|
+
};
|
|
68
|
+
|
|
60
69
|
export declare function DemoComponent({ stringToDisplay }: DemoComponentProps): JSX_2.Element;
|
|
61
70
|
|
|
62
71
|
declare type DemoComponentProps = {
|
|
@@ -168,6 +177,10 @@ declare type InkEmptyStateProps = {
|
|
|
168
177
|
sx?: SxProps<Theme>;
|
|
169
178
|
};
|
|
170
179
|
|
|
180
|
+
export declare function InkFormSelect<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ control, name, rules, helperText, onChange, onBlur, ...rest }: InkFormSelectProps<TFieldValues, TName>): JSX_2.Element;
|
|
181
|
+
|
|
182
|
+
declare type InkFormSelectProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> = InkSelectProps & UseControllerProps<TFieldValues, TName>;
|
|
183
|
+
|
|
171
184
|
export declare function InkPageHeader({ Breadcrumbs, Subtitle, Metadata, Chips, ButtonGroup, Tabs, sx, }: InkPageHeaderProps): JSX_2.Element;
|
|
172
185
|
|
|
173
186
|
declare type InkPageHeaderProps = {
|
|
@@ -207,7 +220,7 @@ export declare type InkRadioTilesProps = {
|
|
|
207
220
|
disabled?: boolean;
|
|
208
221
|
};
|
|
209
222
|
|
|
210
|
-
export declare function InkSelect
|
|
223
|
+
export declare function InkSelect({ id, name, label, menuOptions, inputProps, helperText, sx, variant, required, placeholder, children, ...rest }: InkSelectProps): JSX_2.Element;
|
|
211
224
|
|
|
212
225
|
export declare class inkSelect {
|
|
213
226
|
baseAttribute: string;
|
|
@@ -231,16 +244,10 @@ export declare class inkSelect {
|
|
|
231
244
|
openMenu(): void;
|
|
232
245
|
}
|
|
233
246
|
|
|
234
|
-
declare type InkSelectProps
|
|
235
|
-
id: string;
|
|
236
|
-
label?: string;
|
|
247
|
+
declare type InkSelectProps = {
|
|
237
248
|
menuOptions?: MenuOption[];
|
|
238
|
-
variant?: 'filled' | 'outlined';
|
|
239
|
-
placeholder?: string;
|
|
240
249
|
helperText?: string;
|
|
241
|
-
|
|
242
|
-
sx?: SxProps<Theme>;
|
|
243
|
-
} & UseControllerProps<TFieldValues, TName> & MuiSelectProps;
|
|
250
|
+
} & MuiSelectProps;
|
|
244
251
|
|
|
245
252
|
declare type InkSnackbarActionButtonProps = ButtonProps_2 & {
|
|
246
253
|
label: string;
|
|
@@ -330,7 +337,7 @@ export declare function InkWorkflowHeader({ label, Stepper, ButtonGroup, }: InkW
|
|
|
330
337
|
declare type InkWorkflowHeaderProps = {
|
|
331
338
|
label: string;
|
|
332
339
|
Stepper?: JSX.Element;
|
|
333
|
-
ButtonGroup
|
|
340
|
+
ButtonGroup?: JSX.Element | ActionButtonPropType;
|
|
334
341
|
};
|
|
335
342
|
|
|
336
343
|
declare type LayoutDetailsProps = GridProps & {
|
|
@@ -376,6 +383,11 @@ declare type PageHeaderActionButtonsProps = {
|
|
|
376
383
|
dropdownAction?: DropdownActionType;
|
|
377
384
|
};
|
|
378
385
|
|
|
386
|
+
declare type PrimaryButtonType = ButtonProps & {
|
|
387
|
+
label: string;
|
|
388
|
+
loading?: boolean;
|
|
389
|
+
};
|
|
390
|
+
|
|
379
391
|
export declare function SnackbarActionButton({ closeSnackbar, label, ...buttonProps }: InkSnackbarActionButtonProps): JSX_2.Element;
|
|
380
392
|
|
|
381
393
|
declare type VariantType = 'page' | 'paper' | 'search' | 'data';
|