@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.
Files changed (49) hide show
  1. package/CHANGELOG.md +29 -2
  2. package/README.md +20 -18
  3. package/dist/assets/material-symbols-self-hosted.css +27 -26
  4. package/dist/buttons.d.mts +1 -1
  5. package/dist/buttons.d.ts +1 -1
  6. package/dist/buttons.js.map +1 -1
  7. package/dist/buttons.mjs.map +1 -1
  8. package/dist/core.d.mts +44 -44
  9. package/dist/core.d.ts +44 -44
  10. package/dist/core.js.map +1 -1
  11. package/dist/core.mjs.map +1 -1
  12. package/dist/feedback.d.mts +54 -54
  13. package/dist/feedback.d.ts +54 -54
  14. package/dist/feedback.js.map +1 -1
  15. package/dist/feedback.mjs.map +1 -1
  16. package/dist/index.css +3 -0
  17. package/dist/index.d.mts +2 -2
  18. package/dist/index.d.ts +2 -2
  19. package/dist/index.js +8 -8
  20. package/dist/index.js.map +1 -1
  21. package/dist/index.mjs +8 -8
  22. package/dist/index.mjs.map +1 -1
  23. package/dist/layout.d.mts +40 -40
  24. package/dist/layout.d.ts +40 -40
  25. package/dist/layout.js +5 -5
  26. package/dist/layout.js.map +1 -1
  27. package/dist/layout.mjs +5 -5
  28. package/dist/layout.mjs.map +1 -1
  29. package/dist/material-symbols-self-hosted.css +27 -26
  30. package/dist/navigation.js.map +1 -1
  31. package/dist/navigation.mjs.map +1 -1
  32. package/dist/overlays.d.mts +2 -2
  33. package/dist/overlays.d.ts +2 -2
  34. package/dist/overlays.js +2 -2
  35. package/dist/overlays.js.map +1 -1
  36. package/dist/overlays.mjs +2 -2
  37. package/dist/overlays.mjs.map +1 -1
  38. package/dist/pickers.d.mts +241 -243
  39. package/dist/pickers.d.ts +241 -243
  40. package/dist/pickers.js +1 -1
  41. package/dist/pickers.js.map +1 -1
  42. package/dist/pickers.mjs +1 -1
  43. package/dist/pickers.mjs.map +1 -1
  44. package/dist/{side-sheet-modal-BY6VCC8p.d.mts → side-sheet-modal-64FGhDxL.d.mts} +20 -21
  45. package/dist/{side-sheet-modal-CglP6KYA.d.ts → side-sheet-modal-Bd5Qqvp9.d.ts} +20 -21
  46. package/dist/{split-button-trailing-uncheckable-MXj_kyNt.d.mts → split-button-trailing-uncheckable-BRPuTqi1.d.mts} +140 -151
  47. package/dist/{split-button-trailing-uncheckable-C5CLCIKP.d.ts → split-button-trailing-uncheckable-CjOFCoyW.d.ts} +140 -151
  48. package/dist/typography.css +5 -0
  49. 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
- * Thuộc tính của cội gốc Root `Dialog`. Chức năng làm gương phản hồi của Radix `Dialog.Root` qua dạng controlled state đóng hay mở.
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>Bấm Mở Dialog</Button>
16
+ * <Button>Open Dialog</Button>
17
17
  * </DialogTrigger>
18
18
  * <DialogContent>
19
19
  * <DialogHeader>
20
- * <DialogTitle>Bạn có muốn phiêu lưu không?</DialogTitle>
20
+ * <DialogTitle>Confirm Action</DialogTitle>
21
21
  * </DialogHeader>
22
- * <DialogBody>Chuẩn bị lên đồ rời khỏi hang nào.</DialogBody>
22
+ * <DialogBody>Are you sure you want to proceed?</DialogBody>
23
23
  * <DialogFooter>
24
- * <Button onClick={() => setOpen(false)} variant="text">Đóng</Button>
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
- * Các props được tiêm vào component bao ngoài Container `DialogContent` thuộc dạng Normal Standard.
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
- /** hình đi đi nút Close dấu (X) góc phải trên. @default false */
44
+ /** Hides the top-right close (X) button. @default false */
45
45
  hideCloseButton?: boolean;
46
46
  className?: string;
47
47
  }
48
48
  /**
49
- * Thuộc tính Props của biến thể `DialogFullScreenContent` chuyên dụng dành riêng cho Mode Full-Screen tràn màn hình.
49
+ * Props for `DialogFullScreenContent` dedicated to Full-Screen dialog mode.
50
50
  *
51
51
  * @remarks
52
- * Những hộp thoại Full-screen biệt tài tự nới rộng xâm chiếm cả bề ngang dọc nguyên thiết bị. Nó còn thiết lập một đường Top App bar (thanh ngang đỉnh)
53
- * kẹp chung cả 1 nhãn title mô tả đỉnh, một nút icon X dẹp ở rìa, thêm luôn hẳn cái nút Confirm cực xịn xò.
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
- /** Nhãn Title nằm vùng khu vực thanh ngang Top Bar. */
59
+ /** Title label displayed in the Top App Bar. */
60
60
  title?: string;
61
- /** Chữ viết đính kèm bên trong cục Nút nhấn thao tác ngay trên góc Top App bar đó (VD: "Lưu lại", "Save"). */
61
+ /** Label for the primary action button on the Top App Bar (e.g. "Save"). */
62
62
  actionLabel?: string;
63
- /** Hàm handler phát động cờ để kích chạy tính năng lưu, xác nhận kia. */
63
+ /** Handler invoked when pressing the primary action button. */
64
64
  onAction?: () => void;
65
- /** Rạch một làn kẻ chia cách thân body nội dung cuộn bên dưới và dòng App bar cố thủ bên trên. @default false */
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
- * Gốc rễ Root của Component Dialog trạc lấp lên cái module `Dialog.Root` của nhà Radix.
70
+ * Dialog component Root — wraps Radix `Dialog.Root`.
71
71
  *
72
- * @remarks năng hoạt động chế độ Controlled (kiểm soát vòng đời ở Client) xài mảng `open`/`onOpenChange`.
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
- /** Bộ Trigger gieo phát đà giúp tắt bật cờ State đóng mở của Dialog con, dùng kèm kĩ năng nhét thông qua cái cầu `asChild`. */
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
- /** Chiều cao tối đa (vh). Mặc định 90vh */
110
+ /** Max height (vh). Default 90vh */
112
111
  maxHeight?: string;
113
- /** Ẩn drag handle */
112
+ /** Hide drag handle */
114
113
  hideHandle?: boolean;
115
- /** Ẩn nút đóng */
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
- * Thuộc tính của cội gốc Root `Dialog`. Chức năng làm gương phản hồi của Radix `Dialog.Root` qua dạng controlled state đóng hay mở.
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>Bấm Mở Dialog</Button>
16
+ * <Button>Open Dialog</Button>
17
17
  * </DialogTrigger>
18
18
  * <DialogContent>
19
19
  * <DialogHeader>
20
- * <DialogTitle>Bạn có muốn phiêu lưu không?</DialogTitle>
20
+ * <DialogTitle>Confirm Action</DialogTitle>
21
21
  * </DialogHeader>
22
- * <DialogBody>Chuẩn bị lên đồ rời khỏi hang nào.</DialogBody>
22
+ * <DialogBody>Are you sure you want to proceed?</DialogBody>
23
23
  * <DialogFooter>
24
- * <Button onClick={() => setOpen(false)} variant="text">Đóng</Button>
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
- * Các props được tiêm vào component bao ngoài Container `DialogContent` thuộc dạng Normal Standard.
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
- /** hình đi đi nút Close dấu (X) góc phải trên. @default false */
44
+ /** Hides the top-right close (X) button. @default false */
45
45
  hideCloseButton?: boolean;
46
46
  className?: string;
47
47
  }
48
48
  /**
49
- * Thuộc tính Props của biến thể `DialogFullScreenContent` chuyên dụng dành riêng cho Mode Full-Screen tràn màn hình.
49
+ * Props for `DialogFullScreenContent` dedicated to Full-Screen dialog mode.
50
50
  *
51
51
  * @remarks
52
- * Những hộp thoại Full-screen biệt tài tự nới rộng xâm chiếm cả bề ngang dọc nguyên thiết bị. Nó còn thiết lập một đường Top App bar (thanh ngang đỉnh)
53
- * kẹp chung cả 1 nhãn title mô tả đỉnh, một nút icon X dẹp ở rìa, thêm luôn hẳn cái nút Confirm cực xịn xò.
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
- /** Nhãn Title nằm vùng khu vực thanh ngang Top Bar. */
59
+ /** Title label displayed in the Top App Bar. */
60
60
  title?: string;
61
- /** Chữ viết đính kèm bên trong cục Nút nhấn thao tác ngay trên góc Top App bar đó (VD: "Lưu lại", "Save"). */
61
+ /** Label for the primary action button on the Top App Bar (e.g. "Save"). */
62
62
  actionLabel?: string;
63
- /** Hàm handler phát động cờ để kích chạy tính năng lưu, xác nhận kia. */
63
+ /** Handler invoked when pressing the primary action button. */
64
64
  onAction?: () => void;
65
- /** Rạch một làn kẻ chia cách thân body nội dung cuộn bên dưới và dòng App bar cố thủ bên trên. @default false */
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
- * Gốc rễ Root của Component Dialog trạc lấp lên cái module `Dialog.Root` của nhà Radix.
70
+ * Dialog component Root — wraps Radix `Dialog.Root`.
71
71
  *
72
- * @remarks năng hoạt động chế độ Controlled (kiểm soát vòng đời ở Client) xài mảng `open`/`onOpenChange`.
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
- /** Bộ Trigger gieo phát đà giúp tắt bật cờ State đóng mở của Dialog con, dùng kèm kĩ năng nhét thông qua cái cầu `asChild`. */
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
- /** Chiều cao tối đa (vh). Mặc định 90vh */
110
+ /** Max height (vh). Default 90vh */
112
111
  maxHeight?: string;
113
- /** Ẩn drag handle */
112
+ /** Hide drag handle */
114
113
  hideHandle?: boolean;
115
- /** Ẩn nút đóng */
114
+ /** Hide close button */
116
115
  hideCloseButton?: boolean;
117
116
  className?: string;
118
117
  }