@bug-on/m3-expressive 1.0.0 → 1.1.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/CHANGELOG.md +29 -2
- package/README.md +20 -18
- package/dist/assets/material-symbols-self-hosted.css +27 -26
- package/dist/buttons.d.mts +1 -1
- package/dist/buttons.d.ts +1 -1
- package/dist/buttons.js.map +1 -1
- package/dist/buttons.mjs.map +1 -1
- package/dist/core.d.mts +44 -44
- package/dist/core.d.ts +44 -44
- package/dist/core.js.map +1 -1
- package/dist/core.mjs.map +1 -1
- package/dist/feedback.d.mts +54 -54
- package/dist/feedback.d.ts +54 -54
- package/dist/feedback.js.map +1 -1
- package/dist/feedback.mjs.map +1 -1
- package/dist/index.css +3 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/dist/layout.d.mts +40 -40
- package/dist/layout.d.ts +40 -40
- package/dist/layout.js +5 -5
- package/dist/layout.js.map +1 -1
- package/dist/layout.mjs +5 -5
- package/dist/layout.mjs.map +1 -1
- package/dist/material-symbols-self-hosted.css +27 -26
- package/dist/navigation.js.map +1 -1
- package/dist/navigation.mjs.map +1 -1
- package/dist/overlays.d.mts +2 -2
- package/dist/overlays.d.ts +2 -2
- package/dist/overlays.js +2 -2
- package/dist/overlays.js.map +1 -1
- package/dist/overlays.mjs +2 -2
- package/dist/overlays.mjs.map +1 -1
- package/dist/pickers.d.mts +241 -243
- package/dist/pickers.d.ts +241 -243
- package/dist/pickers.js +1 -1
- package/dist/pickers.js.map +1 -1
- package/dist/pickers.mjs +1 -1
- package/dist/pickers.mjs.map +1 -1
- package/dist/{side-sheet-modal-BY6VCC8p.d.mts → side-sheet-modal-64FGhDxL.d.mts} +20 -21
- package/dist/{side-sheet-modal-CglP6KYA.d.ts → side-sheet-modal-Bd5Qqvp9.d.ts} +20 -21
- package/dist/{split-button-trailing-uncheckable-MXj_kyNt.d.mts → split-button-trailing-uncheckable-BRPuTqi1.d.mts} +140 -151
- package/dist/{split-button-trailing-uncheckable-C5CLCIKP.d.ts → split-button-trailing-uncheckable-CjOFCoyW.d.ts} +140 -151
- package/dist/typography.css +5 -0
- package/package.json +4 -4
|
@@ -5,7 +5,7 @@ import { MotionStyle, useMotionValue, useTransform } from 'motion/react';
|
|
|
5
5
|
import { b as ScrollAreaProps } from './scroll-area-CVS6HyLl.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Root `Dialog` props. Wraps Radix `Dialog.Root` supporting controlled and uncontrolled open state.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* ```tsx
|
|
@@ -13,15 +13,15 @@ import { b as ScrollAreaProps } from './scroll-area-CVS6HyLl.mjs';
|
|
|
13
13
|
*
|
|
14
14
|
* <Dialog open={open} onOpenChange={setOpen}>
|
|
15
15
|
* <DialogTrigger asChild>
|
|
16
|
-
* <Button>
|
|
16
|
+
* <Button>Open Dialog</Button>
|
|
17
17
|
* </DialogTrigger>
|
|
18
18
|
* <DialogContent>
|
|
19
19
|
* <DialogHeader>
|
|
20
|
-
* <DialogTitle>
|
|
20
|
+
* <DialogTitle>Confirm Action</DialogTitle>
|
|
21
21
|
* </DialogHeader>
|
|
22
|
-
* <DialogBody>
|
|
22
|
+
* <DialogBody>Are you sure you want to proceed?</DialogBody>
|
|
23
23
|
* <DialogFooter>
|
|
24
|
-
* <Button onClick={() => setOpen(false)} variant="text"
|
|
24
|
+
* <Button onClick={() => setOpen(false)} variant="text">Cancel</Button>
|
|
25
25
|
* </DialogFooter>
|
|
26
26
|
* </DialogContent>
|
|
27
27
|
* </Dialog>
|
|
@@ -36,47 +36,46 @@ interface DialogProps {
|
|
|
36
36
|
children: React$1.ReactNode;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Props passed to standard container `DialogContent`.
|
|
40
40
|
*
|
|
41
41
|
* @see {@link DialogContent}
|
|
42
42
|
*/
|
|
43
43
|
interface DialogContentProps extends React$1.ComponentPropsWithoutRef<typeof RadixDialog.Content> {
|
|
44
|
-
/**
|
|
44
|
+
/** Hides the top-right close (X) button. @default false */
|
|
45
45
|
hideCloseButton?: boolean;
|
|
46
46
|
className?: string;
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Props for `DialogFullScreenContent` dedicated to Full-Screen dialog mode.
|
|
50
50
|
*
|
|
51
51
|
* @remarks
|
|
52
|
-
*
|
|
53
|
-
*
|
|
52
|
+
* Full-screen dialogs expand to cover the entire device screen and feature a Top App Bar
|
|
53
|
+
* with a title label, close button, and action confirmation button.
|
|
54
54
|
*
|
|
55
55
|
* @see {@link DialogFullScreenContent}
|
|
56
56
|
* @see https://m3.material.io/components/dialogs/guidelines#full-screen
|
|
57
57
|
*/
|
|
58
58
|
interface DialogFullScreenContentProps extends React$1.ComponentPropsWithoutRef<typeof RadixDialog.Content> {
|
|
59
|
-
/**
|
|
59
|
+
/** Title label displayed in the Top App Bar. */
|
|
60
60
|
title?: string;
|
|
61
|
-
/**
|
|
61
|
+
/** Label for the primary action button on the Top App Bar (e.g. "Save"). */
|
|
62
62
|
actionLabel?: string;
|
|
63
|
-
/**
|
|
63
|
+
/** Handler invoked when pressing the primary action button. */
|
|
64
64
|
onAction?: () => void;
|
|
65
|
-
/**
|
|
65
|
+
/** Renders a divider separating Top App Bar from scrollable body content. @default false */
|
|
66
66
|
showDivider?: boolean;
|
|
67
67
|
className?: string;
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
70
|
+
* Dialog component Root — wraps Radix `Dialog.Root`.
|
|
71
71
|
*
|
|
72
|
-
* @remarks
|
|
73
|
-
* Tuy thế bạn nếu không thích thì đừng có xài truyền mấy cái Props tay đôi trên, mà bỏ xài kiểu Untracked thông qua cái cục `DialogTrigger` là đủ.
|
|
72
|
+
* @remarks Supports controlled state via `open`/`onOpenChange`, or uncontrolled state using `DialogTrigger`.
|
|
74
73
|
*/
|
|
75
74
|
declare const Dialog: {
|
|
76
75
|
({ open, onOpenChange, children }: DialogProps): react_jsx_runtime.JSX.Element;
|
|
77
76
|
displayName: string;
|
|
78
77
|
};
|
|
79
|
-
/**
|
|
78
|
+
/** Trigger element that toggles the open state of the Dialog (supports `asChild`). */
|
|
80
79
|
declare const DialogTrigger: React$1.ForwardRefExoticComponent<RadixDialog.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
81
80
|
declare const DialogPortal: {
|
|
82
81
|
({ open, children, }: {
|
|
@@ -108,11 +107,11 @@ interface DrawerProps {
|
|
|
108
107
|
children: React$1.ReactNode;
|
|
109
108
|
}
|
|
110
109
|
interface DrawerContentProps extends Omit<React$1.ComponentPropsWithoutRef<typeof RadixDialog.Content>, "asChild"> {
|
|
111
|
-
/**
|
|
110
|
+
/** Max height (vh). Default 90vh */
|
|
112
111
|
maxHeight?: string;
|
|
113
|
-
/**
|
|
112
|
+
/** Hide drag handle */
|
|
114
113
|
hideHandle?: boolean;
|
|
115
|
-
/**
|
|
114
|
+
/** Hide close button */
|
|
116
115
|
hideCloseButton?: boolean;
|
|
117
116
|
className?: string;
|
|
118
117
|
}
|
|
@@ -5,7 +5,7 @@ import { MotionStyle, useMotionValue, useTransform } from 'motion/react';
|
|
|
5
5
|
import { b as ScrollAreaProps } from './scroll-area-CVS6HyLl.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Root `Dialog` props. Wraps Radix `Dialog.Root` supporting controlled and uncontrolled open state.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* ```tsx
|
|
@@ -13,15 +13,15 @@ import { b as ScrollAreaProps } from './scroll-area-CVS6HyLl.js';
|
|
|
13
13
|
*
|
|
14
14
|
* <Dialog open={open} onOpenChange={setOpen}>
|
|
15
15
|
* <DialogTrigger asChild>
|
|
16
|
-
* <Button>
|
|
16
|
+
* <Button>Open Dialog</Button>
|
|
17
17
|
* </DialogTrigger>
|
|
18
18
|
* <DialogContent>
|
|
19
19
|
* <DialogHeader>
|
|
20
|
-
* <DialogTitle>
|
|
20
|
+
* <DialogTitle>Confirm Action</DialogTitle>
|
|
21
21
|
* </DialogHeader>
|
|
22
|
-
* <DialogBody>
|
|
22
|
+
* <DialogBody>Are you sure you want to proceed?</DialogBody>
|
|
23
23
|
* <DialogFooter>
|
|
24
|
-
* <Button onClick={() => setOpen(false)} variant="text"
|
|
24
|
+
* <Button onClick={() => setOpen(false)} variant="text">Cancel</Button>
|
|
25
25
|
* </DialogFooter>
|
|
26
26
|
* </DialogContent>
|
|
27
27
|
* </Dialog>
|
|
@@ -36,47 +36,46 @@ interface DialogProps {
|
|
|
36
36
|
children: React$1.ReactNode;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Props passed to standard container `DialogContent`.
|
|
40
40
|
*
|
|
41
41
|
* @see {@link DialogContent}
|
|
42
42
|
*/
|
|
43
43
|
interface DialogContentProps extends React$1.ComponentPropsWithoutRef<typeof RadixDialog.Content> {
|
|
44
|
-
/**
|
|
44
|
+
/** Hides the top-right close (X) button. @default false */
|
|
45
45
|
hideCloseButton?: boolean;
|
|
46
46
|
className?: string;
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Props for `DialogFullScreenContent` dedicated to Full-Screen dialog mode.
|
|
50
50
|
*
|
|
51
51
|
* @remarks
|
|
52
|
-
*
|
|
53
|
-
*
|
|
52
|
+
* Full-screen dialogs expand to cover the entire device screen and feature a Top App Bar
|
|
53
|
+
* with a title label, close button, and action confirmation button.
|
|
54
54
|
*
|
|
55
55
|
* @see {@link DialogFullScreenContent}
|
|
56
56
|
* @see https://m3.material.io/components/dialogs/guidelines#full-screen
|
|
57
57
|
*/
|
|
58
58
|
interface DialogFullScreenContentProps extends React$1.ComponentPropsWithoutRef<typeof RadixDialog.Content> {
|
|
59
|
-
/**
|
|
59
|
+
/** Title label displayed in the Top App Bar. */
|
|
60
60
|
title?: string;
|
|
61
|
-
/**
|
|
61
|
+
/** Label for the primary action button on the Top App Bar (e.g. "Save"). */
|
|
62
62
|
actionLabel?: string;
|
|
63
|
-
/**
|
|
63
|
+
/** Handler invoked when pressing the primary action button. */
|
|
64
64
|
onAction?: () => void;
|
|
65
|
-
/**
|
|
65
|
+
/** Renders a divider separating Top App Bar from scrollable body content. @default false */
|
|
66
66
|
showDivider?: boolean;
|
|
67
67
|
className?: string;
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
70
|
+
* Dialog component Root — wraps Radix `Dialog.Root`.
|
|
71
71
|
*
|
|
72
|
-
* @remarks
|
|
73
|
-
* Tuy thế bạn nếu không thích thì đừng có xài truyền mấy cái Props tay đôi trên, mà bỏ xài kiểu Untracked thông qua cái cục `DialogTrigger` là đủ.
|
|
72
|
+
* @remarks Supports controlled state via `open`/`onOpenChange`, or uncontrolled state using `DialogTrigger`.
|
|
74
73
|
*/
|
|
75
74
|
declare const Dialog: {
|
|
76
75
|
({ open, onOpenChange, children }: DialogProps): react_jsx_runtime.JSX.Element;
|
|
77
76
|
displayName: string;
|
|
78
77
|
};
|
|
79
|
-
/**
|
|
78
|
+
/** Trigger element that toggles the open state of the Dialog (supports `asChild`). */
|
|
80
79
|
declare const DialogTrigger: React$1.ForwardRefExoticComponent<RadixDialog.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
81
80
|
declare const DialogPortal: {
|
|
82
81
|
({ open, children, }: {
|
|
@@ -108,11 +107,11 @@ interface DrawerProps {
|
|
|
108
107
|
children: React$1.ReactNode;
|
|
109
108
|
}
|
|
110
109
|
interface DrawerContentProps extends Omit<React$1.ComponentPropsWithoutRef<typeof RadixDialog.Content>, "asChild"> {
|
|
111
|
-
/**
|
|
110
|
+
/** Max height (vh). Default 90vh */
|
|
112
111
|
maxHeight?: string;
|
|
113
|
-
/**
|
|
112
|
+
/** Hide drag handle */
|
|
114
113
|
hideHandle?: boolean;
|
|
115
|
-
/**
|
|
114
|
+
/** Hide close button */
|
|
116
115
|
hideCloseButton?: boolean;
|
|
117
116
|
className?: string;
|
|
118
117
|
}
|