@lglab/compose-ui 0.27.0 → 0.29.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 (191) hide show
  1. package/dist/accordion.d.ts +49 -40
  2. package/dist/accordion.d.ts.map +1 -0
  3. package/dist/accordion.js +47 -45
  4. package/dist/accordion.js.map +1 -0
  5. package/dist/alert-dialog.d.ts +93 -87
  6. package/dist/alert-dialog.d.ts.map +1 -0
  7. package/dist/alert-dialog.js +94 -111
  8. package/dist/alert-dialog.js.map +1 -0
  9. package/dist/autocomplete.d.ts +99 -96
  10. package/dist/autocomplete.d.ts.map +1 -0
  11. package/dist/autocomplete.js +92 -116
  12. package/dist/autocomplete.js.map +1 -0
  13. package/dist/avatar.d.ts +56 -47
  14. package/dist/avatar.d.ts.map +1 -0
  15. package/dist/avatar.js +66 -79
  16. package/dist/avatar.js.map +1 -0
  17. package/dist/badge.d.ts +48 -0
  18. package/dist/badge.d.ts.map +1 -0
  19. package/dist/badge.js +196 -0
  20. package/dist/badge.js.map +1 -0
  21. package/dist/button.d.ts +26 -21
  22. package/dist/button.d.ts.map +1 -0
  23. package/dist/button.js +24 -24
  24. package/dist/button.js.map +1 -0
  25. package/dist/card.d.ts +105 -99
  26. package/dist/card.d.ts.map +1 -0
  27. package/dist/card.js +105 -66
  28. package/dist/card.js.map +1 -0
  29. package/dist/checkbox-group.d.ts +16 -12
  30. package/dist/checkbox-group.d.ts.map +1 -0
  31. package/dist/checkbox-group.js +18 -14
  32. package/dist/checkbox-group.js.map +1 -0
  33. package/dist/checkbox.d.ts +25 -19
  34. package/dist/checkbox.d.ts.map +1 -0
  35. package/dist/checkbox.js +26 -32
  36. package/dist/checkbox.js.map +1 -0
  37. package/dist/collapsible.d.ts +32 -26
  38. package/dist/collapsible.d.ts.map +1 -0
  39. package/dist/collapsible.js +32 -32
  40. package/dist/collapsible.js.map +1 -0
  41. package/dist/combobox.d.ts +191 -182
  42. package/dist/combobox.d.ts.map +1 -0
  43. package/dist/combobox.js +176 -250
  44. package/dist/combobox.js.map +1 -0
  45. package/dist/context-menu.d.ts +151 -138
  46. package/dist/context-menu.d.ts.map +1 -0
  47. package/dist/context-menu.js +151 -173
  48. package/dist/context-menu.js.map +1 -0
  49. package/dist/dialog.d.ts +101 -92
  50. package/dist/dialog.d.ts.map +1 -0
  51. package/dist/dialog.js +101 -105
  52. package/dist/dialog.js.map +1 -0
  53. package/dist/drawer.d.ts +109 -99
  54. package/dist/drawer.d.ts.map +1 -0
  55. package/dist/drawer.js +120 -111
  56. package/dist/drawer.js.map +1 -0
  57. package/dist/field.d.ts +61 -54
  58. package/dist/field.d.ts.map +1 -0
  59. package/dist/field.js +58 -27
  60. package/dist/field.js.map +1 -0
  61. package/dist/fieldset.d.ts +24 -19
  62. package/dist/fieldset.d.ts.map +1 -0
  63. package/dist/fieldset.js +26 -18
  64. package/dist/fieldset.js.map +1 -0
  65. package/dist/form.d.ts +16 -12
  66. package/dist/form.d.ts.map +1 -0
  67. package/dist/form.js +18 -8
  68. package/dist/form.js.map +1 -0
  69. package/dist/index.d.ts +44 -2077
  70. package/dist/index.js +44 -314
  71. package/dist/input.d.ts +16 -12
  72. package/dist/input.d.ts.map +1 -0
  73. package/dist/input.js +19 -9
  74. package/dist/input.js.map +1 -0
  75. package/dist/lib/arrow-svg.js +28 -0
  76. package/dist/lib/arrow-svg.js.map +1 -0
  77. package/dist/lib/button-variants.d.ts +6 -0
  78. package/dist/lib/button-variants.d.ts.map +1 -0
  79. package/dist/lib/button-variants.js +31 -0
  80. package/dist/lib/button-variants.js.map +1 -0
  81. package/dist/lib/control-variants.d.ts +6 -0
  82. package/dist/lib/control-variants.d.ts.map +1 -0
  83. package/dist/lib/control-variants.js +37 -0
  84. package/dist/lib/control-variants.js.map +1 -0
  85. package/dist/lib/form-variants.js +11 -0
  86. package/dist/lib/form-variants.js.map +1 -0
  87. package/dist/lib/tooltip-variants.d.ts +5 -0
  88. package/dist/lib/tooltip-variants.d.ts.map +1 -0
  89. package/dist/lib/tooltip-variants.js +36 -0
  90. package/dist/lib/tooltip-variants.js.map +1 -0
  91. package/dist/lib/utils.js +11 -0
  92. package/dist/lib/utils.js.map +1 -0
  93. package/dist/menu.d.ts +151 -138
  94. package/dist/menu.d.ts.map +1 -0
  95. package/dist/menu.js +151 -146
  96. package/dist/menu.js.map +1 -0
  97. package/dist/menubar.d.ts +168 -155
  98. package/dist/menubar.d.ts.map +1 -0
  99. package/dist/menubar.js +163 -169
  100. package/dist/menubar.js.map +1 -0
  101. package/dist/meter.d.ts +53 -43
  102. package/dist/meter.d.ts.map +1 -0
  103. package/dist/meter.js +59 -64
  104. package/dist/meter.js.map +1 -0
  105. package/dist/navigation-menu.d.ts +111 -96
  106. package/dist/navigation-menu.d.ts.map +1 -0
  107. package/dist/navigation-menu.js +117 -175
  108. package/dist/navigation-menu.js.map +1 -0
  109. package/dist/number-field.d.ts +64 -54
  110. package/dist/number-field.d.ts.map +1 -0
  111. package/dist/number-field.js +61 -69
  112. package/dist/number-field.js.map +1 -0
  113. package/dist/popover.d.ts +90 -82
  114. package/dist/popover.d.ts.map +1 -0
  115. package/dist/popover.js +85 -94
  116. package/dist/popover.js.map +1 -0
  117. package/dist/preview-card.d.ts +58 -54
  118. package/dist/preview-card.d.ts.map +1 -0
  119. package/dist/preview-card.js +57 -81
  120. package/dist/preview-card.js.map +1 -0
  121. package/dist/progress.d.ts +48 -40
  122. package/dist/progress.d.ts.map +1 -0
  123. package/dist/progress.js +46 -50
  124. package/dist/progress.js.map +1 -0
  125. package/dist/radio-group.d.ts +16 -12
  126. package/dist/radio-group.d.ts.map +1 -0
  127. package/dist/radio-group.js +18 -14
  128. package/dist/radio-group.js.map +1 -0
  129. package/dist/radio.d.ts +24 -19
  130. package/dist/radio.d.ts.map +1 -0
  131. package/dist/radio.js +25 -34
  132. package/dist/radio.js.map +1 -0
  133. package/dist/scroll-area.d.ts +57 -47
  134. package/dist/scroll-area.d.ts.map +1 -0
  135. package/dist/scroll-area.js +54 -56
  136. package/dist/scroll-area.js.map +1 -0
  137. package/dist/select.d.ts +146 -133
  138. package/dist/select.d.ts.map +1 -0
  139. package/dist/select.js +133 -167
  140. package/dist/select.js.map +1 -0
  141. package/dist/separator.d.ts +17 -12
  142. package/dist/separator.d.ts.map +1 -0
  143. package/dist/separator.js +19 -23
  144. package/dist/separator.js.map +1 -0
  145. package/dist/skeleton.d.ts +20 -0
  146. package/dist/skeleton.d.ts.map +1 -0
  147. package/dist/skeleton.js +27 -0
  148. package/dist/skeleton.js.map +1 -0
  149. package/dist/slider.d.ts +56 -47
  150. package/dist/slider.d.ts.map +1 -0
  151. package/dist/slider.js +53 -62
  152. package/dist/slider.js.map +1 -0
  153. package/dist/styles/default.css +26 -0
  154. package/dist/switch.d.ts +24 -19
  155. package/dist/switch.d.ts.map +1 -0
  156. package/dist/switch.js +23 -39
  157. package/dist/switch.js.map +1 -0
  158. package/dist/tabs.d.ts +60 -49
  159. package/dist/tabs.d.ts.map +1 -0
  160. package/dist/tabs.js +76 -84
  161. package/dist/tabs.js.map +1 -0
  162. package/dist/textarea.d.ts +15 -11
  163. package/dist/textarea.d.ts.map +1 -0
  164. package/dist/textarea.js +18 -14
  165. package/dist/textarea.js.map +1 -0
  166. package/dist/toast.d.ts +87 -81
  167. package/dist/toast.d.ts.map +1 -0
  168. package/dist/toast.js +79 -150
  169. package/dist/toast.js.map +1 -0
  170. package/dist/toggle-group.d.ts +34 -29
  171. package/dist/toggle-group.d.ts.map +1 -0
  172. package/dist/toggle-group.js +31 -34
  173. package/dist/toggle-group.js.map +1 -0
  174. package/dist/toggle.d.ts +24 -21
  175. package/dist/toggle.d.ts.map +1 -0
  176. package/dist/toggle.js +22 -15
  177. package/dist/toggle.js.map +1 -0
  178. package/dist/toolbar.d.ts +64 -56
  179. package/dist/toolbar.d.ts.map +1 -0
  180. package/dist/toolbar.js +57 -68
  181. package/dist/toolbar.js.map +1 -0
  182. package/dist/tooltip.d.ts +67 -62
  183. package/dist/tooltip.d.ts.map +1 -0
  184. package/dist/tooltip.js +65 -90
  185. package/dist/tooltip.js.map +1 -0
  186. package/package.json +12 -8
  187. package/dist/arrow-svg-C6zQTvgS.js +0 -40
  188. package/dist/button-variants-CbFMPwc8.js +0 -33
  189. package/dist/control-variants-Bwep4n0y.js +0 -37
  190. package/dist/form-variants-LJ8gIbk0.js +0 -9
  191. package/dist/utils-B6yFEsav.js +0 -8
package/dist/dialog.d.ts CHANGED
@@ -1,92 +1,101 @@
1
- import { Dialog } from '@base-ui/react/dialog';
2
- import { JSX } from 'react/jsx-runtime';
3
- import * as React_2 from 'react';
4
-
5
- declare type ButtonSize = 'sm' | 'default' | 'lg' | 'icon' | 'icon-sm' | 'icon-lg';
6
-
7
- declare type ButtonVariant = 'default' | 'secondary' | 'outline' | 'ghost' | 'destructive' | 'link';
8
-
9
- export declare const DialogBackdrop: {
10
- ({ className, ...props }: DialogBackdropProps): JSX.Element;
11
- displayName: string;
12
- };
13
-
14
- export declare type DialogBackdropProps = React_2.ComponentProps<typeof Dialog.Backdrop>;
15
-
16
- export declare const DialogClose: {
17
- ({ className, variant, size, ...props }: DialogCloseProps): JSX.Element;
18
- displayName: string;
19
- };
20
-
21
- export declare type DialogCloseProps = React_2.ComponentProps<typeof Dialog.Close> & {
22
- /** Visual style variant */
23
- variant?: ButtonVariant;
24
- /** Size of the close button */
25
- size?: ButtonSize;
26
- };
27
-
28
- export declare const DialogDescription: {
29
- ({ className, ...props }: DialogDescriptionProps): JSX.Element;
30
- displayName: string;
31
- };
32
-
33
- export declare type DialogDescriptionProps = React_2.ComponentProps<typeof Dialog.Description>;
34
-
35
- export declare const DialogFooter: {
36
- ({ className, ...props }: DialogFooterProps): JSX.Element;
37
- displayName: string;
38
- };
39
-
40
- export declare type DialogFooterProps = React_2.HTMLAttributes<HTMLDivElement>;
41
-
42
- export declare const DialogHeader: {
43
- ({ className, ...props }: DialogHeaderProps): JSX.Element;
44
- displayName: string;
45
- };
46
-
47
- export declare type DialogHeaderProps = React_2.HTMLAttributes<HTMLDivElement>;
48
-
49
- export declare const DialogPopup: {
50
- ({ className, size, ...props }: DialogPopupProps): JSX.Element;
51
- displayName: string;
52
- };
53
-
54
- export declare type DialogPopupProps = React_2.ComponentProps<typeof Dialog.Popup> & {
55
- /** Size of the dialog popup */
56
- size?: 'sm' | 'default' | 'lg' | 'xl' | 'full';
57
- };
58
-
59
- export declare const DialogPortal: {
60
- (props: DialogPortalProps): JSX.Element;
61
- displayName: string;
62
- };
63
-
64
- export declare type DialogPortalProps = React_2.ComponentProps<typeof Dialog.Portal>;
65
-
66
- export declare const DialogRoot: {
67
- (props: DialogRootProps): JSX.Element;
68
- displayName: string;
69
- };
70
-
71
- export declare type DialogRootProps = React_2.ComponentProps<typeof Dialog.Root>;
72
-
73
- export declare const DialogTitle: {
74
- ({ className, ...props }: DialogTitleProps): JSX.Element;
75
- displayName: string;
76
- };
77
-
78
- export declare type DialogTitleProps = React_2.ComponentProps<typeof Dialog.Title>;
79
-
80
- export declare const DialogTrigger: {
81
- ({ className, variant, size, ...props }: DialogTriggerProps): JSX.Element;
82
- displayName: string;
83
- };
84
-
85
- export declare type DialogTriggerProps = React_2.ComponentProps<typeof Dialog.Trigger> & {
86
- /** Visual style variant */
87
- variant?: ButtonVariant;
88
- /** Size of the trigger button */
89
- size?: ButtonSize;
90
- };
91
-
92
- export { }
1
+ import { ButtonSize, ButtonVariant } from "./lib/button-variants.js";
2
+ import * as React from "react";
3
+ import * as react_jsx_runtime188 from "react/jsx-runtime";
4
+ import { Dialog } from "@base-ui/react/dialog";
5
+
6
+ //#region src/components/dialog.d.ts
7
+ type DialogRootProps = React.ComponentProps<typeof Dialog.Root>;
8
+ declare const DialogRoot: {
9
+ (props: DialogRootProps): react_jsx_runtime188.JSX.Element;
10
+ displayName: string;
11
+ };
12
+ type DialogTriggerProps = React.ComponentProps<typeof Dialog.Trigger> & {
13
+ /** Visual style variant */
14
+ variant?: ButtonVariant;
15
+ /** Size of the trigger button */
16
+ size?: ButtonSize;
17
+ };
18
+ declare const DialogTrigger: {
19
+ ({
20
+ className,
21
+ variant,
22
+ size,
23
+ ...props
24
+ }: DialogTriggerProps): react_jsx_runtime188.JSX.Element;
25
+ displayName: string;
26
+ };
27
+ type DialogPortalProps = React.ComponentProps<typeof Dialog.Portal>;
28
+ declare const DialogPortal: {
29
+ (props: DialogPortalProps): react_jsx_runtime188.JSX.Element;
30
+ displayName: string;
31
+ };
32
+ type DialogBackdropProps = React.ComponentProps<typeof Dialog.Backdrop>;
33
+ declare const DialogBackdrop: {
34
+ ({
35
+ className,
36
+ ...props
37
+ }: DialogBackdropProps): react_jsx_runtime188.JSX.Element;
38
+ displayName: string;
39
+ };
40
+ type DialogPopupProps = React.ComponentProps<typeof Dialog.Popup> & {
41
+ /** Size of the dialog popup */
42
+ size?: 'sm' | 'default' | 'lg' | 'xl' | 'full';
43
+ };
44
+ declare const DialogPopup: {
45
+ ({
46
+ className,
47
+ size,
48
+ ...props
49
+ }: DialogPopupProps): react_jsx_runtime188.JSX.Element;
50
+ displayName: string;
51
+ };
52
+ type DialogTitleProps = React.ComponentProps<typeof Dialog.Title>;
53
+ declare const DialogTitle: {
54
+ ({
55
+ className,
56
+ ...props
57
+ }: DialogTitleProps): react_jsx_runtime188.JSX.Element;
58
+ displayName: string;
59
+ };
60
+ type DialogDescriptionProps = React.ComponentProps<typeof Dialog.Description>;
61
+ declare const DialogDescription: {
62
+ ({
63
+ className,
64
+ ...props
65
+ }: DialogDescriptionProps): react_jsx_runtime188.JSX.Element;
66
+ displayName: string;
67
+ };
68
+ type DialogCloseProps = React.ComponentProps<typeof Dialog.Close> & {
69
+ /** Visual style variant */
70
+ variant?: ButtonVariant;
71
+ /** Size of the close button */
72
+ size?: ButtonSize;
73
+ };
74
+ declare const DialogClose: {
75
+ ({
76
+ className,
77
+ variant,
78
+ size,
79
+ ...props
80
+ }: DialogCloseProps): react_jsx_runtime188.JSX.Element;
81
+ displayName: string;
82
+ };
83
+ type DialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;
84
+ declare const DialogHeader: {
85
+ ({
86
+ className,
87
+ ...props
88
+ }: DialogHeaderProps): react_jsx_runtime188.JSX.Element;
89
+ displayName: string;
90
+ };
91
+ type DialogFooterProps = React.HTMLAttributes<HTMLDivElement>;
92
+ declare const DialogFooter: {
93
+ ({
94
+ className,
95
+ ...props
96
+ }: DialogFooterProps): react_jsx_runtime188.JSX.Element;
97
+ displayName: string;
98
+ };
99
+ //#endregion
100
+ export { DialogBackdrop, type DialogBackdropProps, DialogClose, type DialogCloseProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogPopup, type DialogPopupProps, DialogPortal, type DialogPortalProps, DialogRoot, type DialogRootProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps };
101
+ //# sourceMappingURL=dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog.d.ts","names":[],"sources":["../src/components/dialog.tsx"],"sourcesContent":[],"mappings":";;;;;;KAiBK,eAAA,GAAkB,KAAA,CAAM,sBAAsB,MAAA,CAAW;cAExD;UAAqB,kBAAe,oBAAA,CAAA,GAAA,CAAA;EAFrC,WAAA,EAAA,MAAe;CAAA;KAYf,kBAAA,GAAqB,KAAA,CAAM,cAZ8B,CAAA,OAYR,MAAA,CAAW,OAZH,CAAA,GAAA;;EAAnB,OAAA,CAAA,EAc/B,aAd+B;EAErC;EAEL,IAAA,CAAA,EAYQ,UAZR;;cAeK,aAjBoC,EAAA;EAAA,CAAA;IAAA,SAAA;IAAA,OAAA;IAAA,IAAA;IAAA,GAAA;EAAA,CAAA,EAiBqB,kBAjBrB,CAAA,EAiBuC,oBAAA,CAAA,GAAA,CAAA,OAjBvC;EAUrC,WAAA,EAAA,MAAA;CAAkB;KAsBlB,iBAAA,GAAoB,KAAA,CAAM,cAtBkC,CAAA,OAsBZ,MAAA,CAAW,MAtBC,CAAA;cAwB3D,YAxB0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AAAA,cAsG9D,WAxDe,EAAA;EAAA,CAAA;IAAA,SAAA;IAAA,OAAA;IAAA,IAAA;IAAA,GAAA;EAAA,CAAA,EAwDwC,gBAxDxC,CAAA,EAwDwD,oBAAA,CAAA,GAAA,CAAA,OAxDxD;aAA0C,EAAA,MAAA;;KAuE1D,iBAAA,GAAoB,KAAA,CAAM,cAvEa,CAuEE,cAvEF,CAAA;AAAA,cAyEtC,YA7DL,EAAA;EAAA,CAAA;IAAA,SAAA;IAAA,GAAA;EAAA,CAAA,EA6D8C,iBA7D9C,CAAA,EA6D+D,oBAAA,CAAA,GAAA,CAAA,OA7D/D;;;KAuEI,iBAAA,GAAoB,KAAA,CAAM,cA9EqB,CA8EN,cA9EM,CAAA;cAgF9C,YAhF8D,EAAA;EAAA,CAAA;IAAA,SAAA;IAAA,GAAA;EAAA,CAAA,EAgFrB,iBAhFqB,CAAA,EAgFJ,oBAAA,CAAA,GAAA,CAAA,OAhFI;EAe/D,WAAA,EAAA,MAAgB;CAAA"}
package/dist/dialog.js CHANGED
@@ -1,106 +1,102 @@
1
- "use client";
2
- import { jsx as t } from "react/jsx-runtime";
3
- import { Dialog as o } from "@base-ui/react/dialog";
4
- import { cva as n } from "class-variance-authority";
5
- import { b as s } from "./button-variants-CbFMPwc8.js";
6
- import { c as l } from "./utils-B6yFEsav.js";
7
- const d = (a) => /* @__PURE__ */ t(o.Root, { ...a });
8
- d.displayName = "DialogRoot";
9
- const g = ({ className: a, variant: e, size: i, ...r }) => /* @__PURE__ */ t(
10
- o.Trigger,
11
- {
12
- className: l(s({ variant: e, size: i }), a),
13
- ...r
14
- }
15
- );
16
- g.displayName = "DialogTrigger";
17
- const c = (a) => /* @__PURE__ */ t(o.Portal, { ...a });
18
- c.displayName = "DialogPortal";
19
- const p = ({ className: a, ...e }) => /* @__PURE__ */ t(
20
- o.Backdrop,
21
- {
22
- className: l(
23
- "fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
24
- "transition-opacity duration-200",
25
- "data-starting-style:opacity-0 data-ending-style:opacity-0",
26
- a
27
- ),
28
- ...e
29
- }
30
- );
31
- p.displayName = "DialogBackdrop";
32
- const m = n(
33
- [
34
- "fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
35
- "w-full max-w-[calc(100vw-2rem)] rounded-lg border border-border bg-background p-6 shadow-lg",
36
- "transition-all duration-200",
37
- "data-[starting-style]:scale-95 data-[starting-style]:opacity-0",
38
- "data-[ending-style]:scale-95 data-[ending-style]:opacity-0",
39
- "top-[calc(50%+1.25rem*var(--nested-dialogs))] scale-[calc(1-0.1*var(--nested-dialogs))]",
40
- "data-[nested-dialog-open]:after:absolute data-[nested-dialog-open]:after:inset-0 data-[nested-dialog-open]:after:rounded-[inherit] data-[nested-dialog-open]:after:bg-black/5"
41
- ],
42
- {
43
- variants: {
44
- size: {
45
- sm: "w-sm",
46
- default: "w-lg",
47
- lg: "w-2xl",
48
- xl: "w-4xl",
49
- full: "h-[calc(100vh-2rem)]"
50
- }
51
- },
52
- defaultVariants: {
53
- size: "default"
54
- }
55
- }
56
- ), u = ({ className: a, size: e, ...i }) => /* @__PURE__ */ t(
57
- o.Popup,
58
- {
59
- className: l(m({ size: e }), a),
60
- ...i
61
- }
62
- );
63
- u.displayName = "DialogPopup";
64
- const f = ({ className: a, ...e }) => /* @__PURE__ */ t(
65
- o.Title,
66
- {
67
- className: l("text-lg font-medium leading-none tracking-tight", a),
68
- ...e
69
- }
70
- );
71
- f.displayName = "DialogTitle";
72
- const D = ({ className: a, ...e }) => /* @__PURE__ */ t(o.Description, { className: l("text-sm", a), ...e });
73
- D.displayName = "DialogDescription";
74
- const y = ({ className: a, variant: e, size: i, ...r }) => /* @__PURE__ */ t(
75
- o.Close,
76
- {
77
- className: l(s({ variant: e ?? "outline", size: i }), a),
78
- ...r
79
- }
80
- );
81
- y.displayName = "DialogClose";
82
- const N = ({ className: a, ...e }) => /* @__PURE__ */ t("div", { className: l("flex flex-col gap-1 mb-5", a), ...e });
83
- N.displayName = "DialogHeader";
84
- const x = ({ className: a, ...e }) => /* @__PURE__ */ t(
85
- "div",
86
- {
87
- className: l(
88
- "mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
89
- a
90
- ),
91
- ...e
92
- }
93
- );
94
- x.displayName = "DialogFooter";
95
- export {
96
- p as DialogBackdrop,
97
- y as DialogClose,
98
- D as DialogDescription,
99
- x as DialogFooter,
100
- N as DialogHeader,
101
- u as DialogPopup,
102
- c as DialogPortal,
103
- d as DialogRoot,
104
- f as DialogTitle,
105
- g as DialogTrigger
1
+ 'use client';
2
+
3
+ import { buttonVariants } from "./lib/button-variants.js";
4
+ import { cn } from "./lib/utils.js";
5
+ import "react";
6
+ import { cva } from "class-variance-authority";
7
+ import { jsx } from "react/jsx-runtime";
8
+ import { Dialog } from "@base-ui/react/dialog";
9
+
10
+ //#region src/components/dialog.tsx
11
+ const DialogRoot = (props) => {
12
+ return /* @__PURE__ */ jsx(Dialog.Root, { ...props });
106
13
  };
14
+ DialogRoot.displayName = "DialogRoot";
15
+ const DialogTrigger = ({ className, variant, size, ...props }) => {
16
+ return /* @__PURE__ */ jsx(Dialog.Trigger, {
17
+ className: cn(buttonVariants({
18
+ variant,
19
+ size
20
+ }), className),
21
+ ...props
22
+ });
23
+ };
24
+ DialogTrigger.displayName = "DialogTrigger";
25
+ const DialogPortal = (props) => {
26
+ return /* @__PURE__ */ jsx(Dialog.Portal, { ...props });
27
+ };
28
+ DialogPortal.displayName = "DialogPortal";
29
+ const DialogBackdrop = ({ className, ...props }) => {
30
+ return /* @__PURE__ */ jsx(Dialog.Backdrop, {
31
+ className: cn("fixed inset-0 z-50 bg-black/50 backdrop-blur-sm", "transition-opacity duration-200", "data-starting-style:opacity-0 data-ending-style:opacity-0", className),
32
+ ...props
33
+ });
34
+ };
35
+ DialogBackdrop.displayName = "DialogBackdrop";
36
+ const dialogPopupVariants = cva([
37
+ "fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
38
+ "w-full max-w-[calc(100vw-2rem)] rounded-lg border border-border bg-background p-6 shadow-lg",
39
+ "transition-all duration-200",
40
+ "data-[starting-style]:scale-95 data-[starting-style]:opacity-0",
41
+ "data-[ending-style]:scale-95 data-[ending-style]:opacity-0",
42
+ "top-[calc(50%+1.25rem*var(--nested-dialogs))] scale-[calc(1-0.1*var(--nested-dialogs))]",
43
+ "data-[nested-dialog-open]:after:absolute data-[nested-dialog-open]:after:inset-0 data-[nested-dialog-open]:after:rounded-[inherit] data-[nested-dialog-open]:after:bg-black/5"
44
+ ], {
45
+ variants: { size: {
46
+ sm: "w-sm",
47
+ default: "w-lg",
48
+ lg: "w-2xl",
49
+ xl: "w-4xl",
50
+ full: "h-[calc(100vh-2rem)]"
51
+ } },
52
+ defaultVariants: { size: "default" }
53
+ });
54
+ const DialogPopup = ({ className, size, ...props }) => {
55
+ return /* @__PURE__ */ jsx(Dialog.Popup, {
56
+ className: cn(dialogPopupVariants({ size }), className),
57
+ ...props
58
+ });
59
+ };
60
+ DialogPopup.displayName = "DialogPopup";
61
+ const DialogTitle = ({ className, ...props }) => {
62
+ return /* @__PURE__ */ jsx(Dialog.Title, {
63
+ className: cn("text-lg font-medium leading-none tracking-tight", className),
64
+ ...props
65
+ });
66
+ };
67
+ DialogTitle.displayName = "DialogTitle";
68
+ const DialogDescription = ({ className, ...props }) => {
69
+ return /* @__PURE__ */ jsx(Dialog.Description, {
70
+ className: cn("text-sm", className),
71
+ ...props
72
+ });
73
+ };
74
+ DialogDescription.displayName = "DialogDescription";
75
+ const DialogClose = ({ className, variant, size, ...props }) => {
76
+ return /* @__PURE__ */ jsx(Dialog.Close, {
77
+ className: cn(buttonVariants({
78
+ variant: variant ?? "outline",
79
+ size
80
+ }), className),
81
+ ...props
82
+ });
83
+ };
84
+ DialogClose.displayName = "DialogClose";
85
+ const DialogHeader = ({ className, ...props }) => {
86
+ return /* @__PURE__ */ jsx("div", {
87
+ className: cn("flex flex-col gap-1 mb-5", className),
88
+ ...props
89
+ });
90
+ };
91
+ DialogHeader.displayName = "DialogHeader";
92
+ const DialogFooter = ({ className, ...props }) => {
93
+ return /* @__PURE__ */ jsx("div", {
94
+ className: cn("mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
95
+ ...props
96
+ });
97
+ };
98
+ DialogFooter.displayName = "DialogFooter";
99
+
100
+ //#endregion
101
+ export { DialogBackdrop, DialogClose, DialogDescription, DialogFooter, DialogHeader, DialogPopup, DialogPortal, DialogRoot, DialogTitle, DialogTrigger };
102
+ //# sourceMappingURL=dialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog.js","names":["BaseDialog"],"sources":["../src/components/dialog.tsx"],"sourcesContent":["'use client'\n\nimport { Dialog as BaseDialog } from '@base-ui/react/dialog'\nimport { cva } from 'class-variance-authority'\nimport * as React from 'react'\n\nimport {\n type ButtonSize,\n type ButtonVariant,\n buttonVariants,\n} from '../lib/button-variants'\nimport { cn } from '../lib/utils'\n\n// ============================================================================\n// DialogRoot\n// ============================================================================\n\ntype DialogRootProps = React.ComponentProps<typeof BaseDialog.Root>\n\nconst DialogRoot = (props: DialogRootProps) => {\n return <BaseDialog.Root {...props} />\n}\n\nDialogRoot.displayName = 'DialogRoot'\n\n// ============================================================================\n// DialogTrigger\n// ============================================================================\n\ntype DialogTriggerProps = React.ComponentProps<typeof BaseDialog.Trigger> & {\n /** Visual style variant */\n variant?: ButtonVariant\n /** Size of the trigger button */\n size?: ButtonSize\n}\n\nconst DialogTrigger = ({ className, variant, size, ...props }: DialogTriggerProps) => {\n return (\n <BaseDialog.Trigger\n className={cn(buttonVariants({ variant, size }), className)}\n {...props}\n />\n )\n}\n\nDialogTrigger.displayName = 'DialogTrigger'\n\n// ============================================================================\n// DialogPortal\n// ============================================================================\n\ntype DialogPortalProps = React.ComponentProps<typeof BaseDialog.Portal>\n\nconst DialogPortal = (props: DialogPortalProps) => {\n return <BaseDialog.Portal {...props} />\n}\n\nDialogPortal.displayName = 'DialogPortal'\n\n// ============================================================================\n// DialogBackdrop\n// ============================================================================\n\ntype DialogBackdropProps = React.ComponentProps<typeof BaseDialog.Backdrop>\n\nconst DialogBackdrop = ({ className, ...props }: DialogBackdropProps) => {\n return (\n <BaseDialog.Backdrop\n className={cn(\n 'fixed inset-0 z-50 bg-black/50 backdrop-blur-sm',\n 'transition-opacity duration-200',\n 'data-starting-style:opacity-0 data-ending-style:opacity-0',\n className,\n )}\n {...props}\n />\n )\n}\n\nDialogBackdrop.displayName = 'DialogBackdrop'\n\n// ============================================================================\n// DialogPopup\n// ============================================================================\n\nconst dialogPopupVariants = cva(\n [\n 'fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2',\n 'w-full max-w-[calc(100vw-2rem)] rounded-lg border border-border bg-background p-6 shadow-lg',\n 'transition-all duration-200',\n 'data-[starting-style]:scale-95 data-[starting-style]:opacity-0',\n 'data-[ending-style]:scale-95 data-[ending-style]:opacity-0',\n 'top-[calc(50%+1.25rem*var(--nested-dialogs))] scale-[calc(1-0.1*var(--nested-dialogs))]',\n 'data-[nested-dialog-open]:after:absolute data-[nested-dialog-open]:after:inset-0 data-[nested-dialog-open]:after:rounded-[inherit] data-[nested-dialog-open]:after:bg-black/5',\n ],\n {\n variants: {\n size: {\n sm: 'w-sm',\n default: 'w-lg',\n lg: 'w-2xl',\n xl: 'w-4xl',\n full: 'h-[calc(100vh-2rem)]',\n },\n },\n defaultVariants: {\n size: 'default',\n },\n },\n)\n\ntype DialogPopupProps = React.ComponentProps<typeof BaseDialog.Popup> & {\n /** Size of the dialog popup */\n size?: 'sm' | 'default' | 'lg' | 'xl' | 'full'\n}\n\nconst DialogPopup = ({ className, size, ...props }: DialogPopupProps) => {\n return (\n <BaseDialog.Popup\n className={cn(dialogPopupVariants({ size }), className)}\n {...props}\n />\n )\n}\n\nDialogPopup.displayName = 'DialogPopup'\n\n// ============================================================================\n// DialogTitle\n// ============================================================================\n\ntype DialogTitleProps = React.ComponentProps<typeof BaseDialog.Title>\n\nconst DialogTitle = ({ className, ...props }: DialogTitleProps) => {\n return (\n <BaseDialog.Title\n className={cn('text-lg font-medium leading-none tracking-tight', className)}\n {...props}\n />\n )\n}\n\nDialogTitle.displayName = 'DialogTitle'\n\n// ============================================================================\n// DialogDescription\n// ============================================================================\n\ntype DialogDescriptionProps = React.ComponentProps<typeof BaseDialog.Description>\n\nconst DialogDescription = ({ className, ...props }: DialogDescriptionProps) => {\n return <BaseDialog.Description className={cn('text-sm', className)} {...props} />\n}\n\nDialogDescription.displayName = 'DialogDescription'\n\n// ============================================================================\n// DialogClose\n// ============================================================================\n\ntype DialogCloseProps = React.ComponentProps<typeof BaseDialog.Close> & {\n /** Visual style variant */\n variant?: ButtonVariant\n /** Size of the close button */\n size?: ButtonSize\n}\n\nconst DialogClose = ({ className, variant, size, ...props }: DialogCloseProps) => {\n return (\n <BaseDialog.Close\n className={cn(buttonVariants({ variant: variant ?? 'outline', size }), className)}\n {...props}\n />\n )\n}\n\nDialogClose.displayName = 'DialogClose'\n\n// ============================================================================\n// DialogHeader (Utility Component)\n// ============================================================================\n\ntype DialogHeaderProps = React.HTMLAttributes<HTMLDivElement>\n\nconst DialogHeader = ({ className, ...props }: DialogHeaderProps) => {\n return <div className={cn('flex flex-col gap-1 mb-5', className)} {...props} />\n}\n\nDialogHeader.displayName = 'DialogHeader'\n\n// ============================================================================\n// DialogFooter (Utility Component)\n// ============================================================================\n\ntype DialogFooterProps = React.HTMLAttributes<HTMLDivElement>\n\nconst DialogFooter = ({ className, ...props }: DialogFooterProps) => {\n return (\n <div\n className={cn(\n 'mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end',\n className,\n )}\n {...props}\n />\n )\n}\n\nDialogFooter.displayName = 'DialogFooter'\n\n// ============================================================================\n// Exports\n// ============================================================================\n\nexport {\n DialogRoot,\n DialogTrigger,\n DialogPortal,\n DialogBackdrop,\n DialogPopup,\n DialogTitle,\n DialogDescription,\n DialogClose,\n DialogHeader,\n DialogFooter,\n}\n\nexport type {\n DialogRootProps,\n DialogTriggerProps,\n DialogPortalProps,\n DialogBackdropProps,\n DialogPopupProps,\n DialogTitleProps,\n DialogDescriptionProps,\n DialogCloseProps,\n DialogHeaderProps,\n DialogFooterProps,\n}\n"],"mappings":";;;;;;;;;;AAmBA,MAAM,cAAc,UAA2B;AAC7C,QAAO,oBAACA,OAAW,QAAK,GAAI,QAAS;;AAGvC,WAAW,cAAc;AAazB,MAAM,iBAAiB,EAAE,WAAW,SAAS,MAAM,GAAG,YAAgC;AACpF,QACE,oBAACA,OAAW;EACV,WAAW,GAAG,eAAe;GAAE;GAAS;GAAM,CAAC,EAAE,UAAU;EAC3D,GAAI;GACJ;;AAIN,cAAc,cAAc;AAQ5B,MAAM,gBAAgB,UAA6B;AACjD,QAAO,oBAACA,OAAW,UAAO,GAAI,QAAS;;AAGzC,aAAa,cAAc;AAQ3B,MAAM,kBAAkB,EAAE,WAAW,GAAG,YAAiC;AACvE,QACE,oBAACA,OAAW;EACV,WAAW,GACT,mDACA,mCACA,6DACA,UACD;EACD,GAAI;GACJ;;AAIN,eAAe,cAAc;AAM7B,MAAM,sBAAsB,IAC1B;CACE;CACA;CACA;CACA;CACA;CACA;CACA;CACD,EACD;CACE,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,SAAS;EACT,IAAI;EACJ,IAAI;EACJ,MAAM;EACP,EACF;CACD,iBAAiB,EACf,MAAM,WACP;CACF,CACF;AAOD,MAAM,eAAe,EAAE,WAAW,MAAM,GAAG,YAA8B;AACvE,QACE,oBAACA,OAAW;EACV,WAAW,GAAG,oBAAoB,EAAE,MAAM,CAAC,EAAE,UAAU;EACvD,GAAI;GACJ;;AAIN,YAAY,cAAc;AAQ1B,MAAM,eAAe,EAAE,WAAW,GAAG,YAA8B;AACjE,QACE,oBAACA,OAAW;EACV,WAAW,GAAG,mDAAmD,UAAU;EAC3E,GAAI;GACJ;;AAIN,YAAY,cAAc;AAQ1B,MAAM,qBAAqB,EAAE,WAAW,GAAG,YAAoC;AAC7E,QAAO,oBAACA,OAAW;EAAY,WAAW,GAAG,WAAW,UAAU;EAAE,GAAI;GAAS;;AAGnF,kBAAkB,cAAc;AAahC,MAAM,eAAe,EAAE,WAAW,SAAS,MAAM,GAAG,YAA8B;AAChF,QACE,oBAACA,OAAW;EACV,WAAW,GAAG,eAAe;GAAE,SAAS,WAAW;GAAW;GAAM,CAAC,EAAE,UAAU;EACjF,GAAI;GACJ;;AAIN,YAAY,cAAc;AAQ1B,MAAM,gBAAgB,EAAE,WAAW,GAAG,YAA+B;AACnE,QAAO,oBAAC;EAAI,WAAW,GAAG,4BAA4B,UAAU;EAAE,GAAI;GAAS;;AAGjF,aAAa,cAAc;AAQ3B,MAAM,gBAAgB,EAAE,WAAW,GAAG,YAA+B;AACnE,QACE,oBAAC;EACC,WAAW,GACT,+DACA,UACD;EACD,GAAI;GACJ;;AAIN,aAAa,cAAc"}
package/dist/drawer.d.ts CHANGED
@@ -1,99 +1,109 @@
1
- import { Dialog } from '@base-ui/react/dialog';
2
- import { JSX } from 'react/jsx-runtime';
3
- import * as React_2 from 'react';
4
-
5
- declare type ButtonSize = 'sm' | 'default' | 'lg' | 'icon' | 'icon-sm' | 'icon-lg';
6
-
7
- declare type ButtonVariant = 'default' | 'secondary' | 'outline' | 'ghost' | 'destructive' | 'link';
8
-
9
- export declare const DrawerBackdrop: {
10
- ({ className, ...props }: DrawerBackdropProps): JSX.Element;
11
- displayName: string;
12
- };
13
-
14
- export declare type DrawerBackdropProps = React_2.ComponentProps<typeof Dialog.Backdrop>;
15
-
16
- export declare const DrawerClose: {
17
- ({ className, variant, size, ...props }: DrawerCloseProps): JSX.Element;
18
- displayName: string;
19
- };
20
-
21
- export declare type DrawerCloseProps = React_2.ComponentProps<typeof Dialog.Close> & {
22
- /** Visual style variant */
23
- variant?: ButtonVariant;
24
- /** Size of the close button */
25
- size?: ButtonSize;
26
- };
27
-
28
- export declare const DrawerContent: {
29
- ({ className, ...props }: DrawerContentProps): JSX.Element;
30
- displayName: string;
31
- };
32
-
33
- export declare type DrawerContentProps = React_2.HTMLAttributes<HTMLDivElement>;
34
-
35
- export declare const DrawerDescription: {
36
- ({ className, ...props }: DrawerDescriptionProps): JSX.Element;
37
- displayName: string;
38
- };
39
-
40
- export declare type DrawerDescriptionProps = React_2.ComponentProps<typeof Dialog.Description>;
41
-
42
- export declare const DrawerFooter: {
43
- ({ className, ...props }: DrawerFooterProps): JSX.Element;
44
- displayName: string;
45
- };
46
-
47
- export declare type DrawerFooterProps = React_2.HTMLAttributes<HTMLDivElement>;
48
-
49
- export declare const DrawerHeader: {
50
- ({ className, ...props }: DrawerHeaderProps): JSX.Element;
51
- displayName: string;
52
- };
53
-
54
- export declare type DrawerHeaderProps = React_2.HTMLAttributes<HTMLDivElement>;
55
-
56
- export declare const DrawerPopup: {
57
- ({ className, side, ...props }: DrawerPopupProps): JSX.Element;
58
- displayName: string;
59
- };
60
-
61
- export declare type DrawerPopupProps = React_2.ComponentProps<typeof Dialog.Popup> & {
62
- /** Side from which the drawer slides in */
63
- side?: 'top' | 'right' | 'bottom' | 'left';
64
- };
65
-
66
- export declare const DrawerPortal: {
67
- (props: DrawerPortalProps): JSX.Element;
68
- displayName: string;
69
- };
70
-
71
- export declare type DrawerPortalProps = React_2.ComponentProps<typeof Dialog.Portal>;
72
-
73
- export declare const DrawerRoot: {
74
- (props: DrawerRootProps): JSX.Element;
75
- displayName: string;
76
- };
77
-
78
- export declare type DrawerRootProps = React_2.ComponentProps<typeof Dialog.Root>;
79
-
80
- export declare const DrawerTitle: {
81
- ({ className, ...props }: DrawerTitleProps): JSX.Element;
82
- displayName: string;
83
- };
84
-
85
- export declare type DrawerTitleProps = React_2.ComponentProps<typeof Dialog.Title>;
86
-
87
- export declare const DrawerTrigger: {
88
- ({ className, variant, size, ...props }: DrawerTriggerProps): JSX.Element;
89
- displayName: string;
90
- };
91
-
92
- export declare type DrawerTriggerProps = React_2.ComponentProps<typeof Dialog.Trigger> & {
93
- /** Visual style variant */
94
- variant?: ButtonVariant;
95
- /** Size of the trigger button */
96
- size?: ButtonSize;
97
- };
98
-
99
- export { }
1
+ import { ButtonSize, ButtonVariant } from "./lib/button-variants.js";
2
+ import * as React from "react";
3
+ import * as react_jsx_runtime260 from "react/jsx-runtime";
4
+ import { Dialog } from "@base-ui/react/dialog";
5
+
6
+ //#region src/components/drawer.d.ts
7
+ type DrawerRootProps = React.ComponentProps<typeof Dialog.Root>;
8
+ declare const DrawerRoot: {
9
+ (props: DrawerRootProps): react_jsx_runtime260.JSX.Element;
10
+ displayName: string;
11
+ };
12
+ type DrawerTriggerProps = React.ComponentProps<typeof Dialog.Trigger> & {
13
+ /** Visual style variant */
14
+ variant?: ButtonVariant;
15
+ /** Size of the trigger button */
16
+ size?: ButtonSize;
17
+ };
18
+ declare const DrawerTrigger: {
19
+ ({
20
+ className,
21
+ variant,
22
+ size,
23
+ ...props
24
+ }: DrawerTriggerProps): react_jsx_runtime260.JSX.Element;
25
+ displayName: string;
26
+ };
27
+ type DrawerPortalProps = React.ComponentProps<typeof Dialog.Portal>;
28
+ declare const DrawerPortal: {
29
+ (props: DrawerPortalProps): react_jsx_runtime260.JSX.Element;
30
+ displayName: string;
31
+ };
32
+ type DrawerBackdropProps = React.ComponentProps<typeof Dialog.Backdrop>;
33
+ declare const DrawerBackdrop: {
34
+ ({
35
+ className,
36
+ ...props
37
+ }: DrawerBackdropProps): react_jsx_runtime260.JSX.Element;
38
+ displayName: string;
39
+ };
40
+ type DrawerPopupProps = React.ComponentProps<typeof Dialog.Popup> & {
41
+ /** Side from which the drawer slides in */
42
+ side?: 'top' | 'right' | 'bottom' | 'left';
43
+ };
44
+ declare const DrawerPopup: {
45
+ ({
46
+ className,
47
+ side,
48
+ ...props
49
+ }: DrawerPopupProps): react_jsx_runtime260.JSX.Element;
50
+ displayName: string;
51
+ };
52
+ type DrawerTitleProps = React.ComponentProps<typeof Dialog.Title>;
53
+ declare const DrawerTitle: {
54
+ ({
55
+ className,
56
+ ...props
57
+ }: DrawerTitleProps): react_jsx_runtime260.JSX.Element;
58
+ displayName: string;
59
+ };
60
+ type DrawerDescriptionProps = React.ComponentProps<typeof Dialog.Description>;
61
+ declare const DrawerDescription: {
62
+ ({
63
+ className,
64
+ ...props
65
+ }: DrawerDescriptionProps): react_jsx_runtime260.JSX.Element;
66
+ displayName: string;
67
+ };
68
+ type DrawerCloseProps = React.ComponentProps<typeof Dialog.Close> & {
69
+ /** Visual style variant */
70
+ variant?: ButtonVariant;
71
+ /** Size of the close button */
72
+ size?: ButtonSize;
73
+ };
74
+ declare const DrawerClose: {
75
+ ({
76
+ className,
77
+ variant,
78
+ size,
79
+ ...props
80
+ }: DrawerCloseProps): react_jsx_runtime260.JSX.Element;
81
+ displayName: string;
82
+ };
83
+ type DrawerHeaderProps = React.HTMLAttributes<HTMLDivElement>;
84
+ declare const DrawerHeader: {
85
+ ({
86
+ className,
87
+ ...props
88
+ }: DrawerHeaderProps): react_jsx_runtime260.JSX.Element;
89
+ displayName: string;
90
+ };
91
+ type DrawerContentProps = React.HTMLAttributes<HTMLDivElement>;
92
+ declare const DrawerContent: {
93
+ ({
94
+ className,
95
+ ...props
96
+ }: DrawerContentProps): react_jsx_runtime260.JSX.Element;
97
+ displayName: string;
98
+ };
99
+ type DrawerFooterProps = React.HTMLAttributes<HTMLDivElement>;
100
+ declare const DrawerFooter: {
101
+ ({
102
+ className,
103
+ ...props
104
+ }: DrawerFooterProps): react_jsx_runtime260.JSX.Element;
105
+ displayName: string;
106
+ };
107
+ //#endregion
108
+ export { DrawerBackdrop, type DrawerBackdropProps, DrawerClose, type DrawerCloseProps, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, DrawerPopup, type DrawerPopupProps, DrawerPortal, type DrawerPortalProps, DrawerRoot, type DrawerRootProps, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps };
109
+ //# sourceMappingUR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