@movable/ui 0.20.1 → 0.22.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/Dialog/InkDialog.d.ts +2 -1
- package/lib/components/InkRadioTiles/InkRadioTiles.d.ts +22 -0
- package/lib/components/InkRadioTiles/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 +2 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.mjs +1592 -1560
- package/lib/index.mjs.map +1 -1
- package/lib/theme/components/dialog.d.ts +0 -6
- package/lib/theme/components/stepper.d.ts +13 -8
- package/package.json +4 -1
|
@@ -4,6 +4,7 @@ export type InkDialogProps = DialogProps & {
|
|
|
4
4
|
Title?: string | JSX.Element;
|
|
5
5
|
Content?: JSX.Element;
|
|
6
6
|
Actions?: JSX.Element;
|
|
7
|
+
hideCloseButton?: boolean;
|
|
7
8
|
onClose: () => void;
|
|
8
9
|
};
|
|
9
|
-
export declare function InkDialog({ Title, Content, Actions, onClose, ...props }: InkDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function InkDialog({ Title, Content, Actions, onClose, hideCloseButton, ...props }: InkDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { Ref } from 'react';
|
|
2
|
+
import { SxProps, Theme } from '@mui/material';
|
|
3
|
+
interface Option {
|
|
4
|
+
value: string;
|
|
5
|
+
icon?: JSX.Element;
|
|
6
|
+
title: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
subDescription?: string;
|
|
9
|
+
}
|
|
10
|
+
type InkRadioTilesProps = {
|
|
11
|
+
name: string;
|
|
12
|
+
options: Option[];
|
|
13
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
14
|
+
onBlur?: () => void;
|
|
15
|
+
value: string | number;
|
|
16
|
+
ref?: Ref<HTMLDivElement>;
|
|
17
|
+
direction?: 'row' | 'column';
|
|
18
|
+
cardSx?: SxProps<Theme>;
|
|
19
|
+
fullWidth?: boolean;
|
|
20
|
+
};
|
|
21
|
+
export declare const InkRadioTiles: ({ name, options, onChange, onBlur, value, ref, direction, cardSx, fullWidth, }: InkRadioTilesProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InkRadioTiles } from './InkRadioTiles';
|
|
@@ -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';
|
|
@@ -2,3 +2,5 @@ export { DemoComponent } from './DemoComponent';
|
|
|
2
2
|
export { InkDialog } from './Dialog';
|
|
3
3
|
export { InkPersistentFilterDrawer } from './PersistentFilterDrawer';
|
|
4
4
|
export { HeaderMetadata, LinkBreadcrumbs, InkPageHeader, InkWorkflowHeader, PageHeaderActionButtons, HeaderSubtitle, } from './Header';
|
|
5
|
+
export { InkRadioTiles } from './InkRadioTiles';
|
|
6
|
+
export { InkSwitch } from './Switch';
|
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { DemoComponent, HeaderMetadata, LinkBreadcrumbs, InkPersistentFilterDrawer, InkPageHeader, InkWorkflowHeader, PageHeaderActionButtons, HeaderSubtitle, InkDialog, } from './components';
|
|
1
|
+
export { DemoComponent, HeaderMetadata, LinkBreadcrumbs, InkPersistentFilterDrawer, InkPageHeader, InkWorkflowHeader, PageHeaderActionButtons, HeaderSubtitle, InkDialog, InkRadioTiles, InkSwitch, } from './components';
|
|
2
2
|
export { inkDialog, InkDialogPageObject } from './page-objects';
|
|
3
3
|
export { default as MovableUITheme } from './theme';
|