@ngrok/mantle 0.80.0 → 0.81.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.
Files changed (175) hide show
  1. package/dist/accordion.d.ts +19 -37
  2. package/dist/accordion.js +1 -1
  3. package/dist/agent.json +5 -1
  4. package/dist/alert-dialog.d.ts +15 -48
  5. package/dist/alert-dialog.js +1 -1
  6. package/dist/alert.d.ts +167 -83
  7. package/dist/alert.js +1 -1
  8. package/dist/{anchor-_2meGDfj.js → anchor-DfeXTpKW.js} +1 -1
  9. package/dist/anchor.js +1 -1
  10. package/dist/area-chart.d.ts +505 -0
  11. package/dist/area-chart.js +1 -0
  12. package/dist/badge.js +1 -1
  13. package/dist/bar-chart.d.ts +492 -0
  14. package/dist/bar-chart.js +1 -0
  15. package/dist/breadcrumb.d.ts +6 -24
  16. package/dist/breadcrumb.js +1 -1
  17. package/dist/button-BAno7KIU.js +1 -0
  18. package/dist/{index-C2jj8U4a.d.ts → button-C-gMbPso.d.ts} +2 -2
  19. package/dist/{icon-button-C1AfGnQx.d.ts → button-C7vAl6lS.d.ts} +16 -3
  20. package/dist/{button-BPMwa2jN.d.ts → button-DARFK2KJ.d.ts} +1 -1
  21. package/dist/{button-5WsvzIQ6.js → button-DjpEKt2X.js} +1 -1
  22. package/dist/button-DvHMWAPl.js +1 -0
  23. package/dist/button.d.ts +5 -5
  24. package/dist/button.js +1 -1
  25. package/dist/calendar.js +1 -1
  26. package/dist/card.d.ts +5 -20
  27. package/dist/card.js +1 -1
  28. package/dist/centered-layout.d.ts +5 -20
  29. package/dist/centered-layout.js +1 -1
  30. package/dist/chart-1cVjAcj8.d.ts +334 -0
  31. package/dist/chart-Do2qkrxl.js +2 -0
  32. package/dist/checkbox-0EoxOyMA.js +1 -0
  33. package/dist/checkbox.d.ts +13 -1
  34. package/dist/checkbox.js +1 -1
  35. package/dist/choice-BHwFSSyv.js +1 -0
  36. package/dist/{choice-Ct0KK8jw.d.ts → choice-BNRQXszu.d.ts} +5 -20
  37. package/dist/choice.d.ts +1 -1
  38. package/dist/choice.js +1 -1
  39. package/dist/code-block.d.ts +60 -44
  40. package/dist/code-block.js +6 -6
  41. package/dist/code-block_highlight-utils.d.ts +1 -1
  42. package/dist/code-block_highlight-utils.js +1 -1
  43. package/dist/combobox.d.ts +9 -33
  44. package/dist/combobox.js +1 -1
  45. package/dist/command.d.ts +70 -18
  46. package/dist/command.js +1 -1
  47. package/dist/data-table.d.ts +6 -12
  48. package/dist/data-table.js +1 -1
  49. package/dist/description-list.d.ts +40 -32
  50. package/dist/description-list.js +1 -1
  51. package/dist/{primitive-CJRIlrLz.d.ts → dialog-BM4wPCft.d.ts} +9 -16
  52. package/dist/dialog-DWZWd5Jt.js +1 -0
  53. package/dist/dialog.d.ts +13 -43
  54. package/dist/dialog.js +1 -1
  55. package/dist/dropdown-menu-BbbQuae2.d.ts +1 -0
  56. package/dist/{dropdown-menu-CoyozLzy.d.ts → dropdown-menu-D6pMAY7I.d.ts} +156 -54
  57. package/dist/dropdown-menu-RyDWoKHx.js +1 -0
  58. package/dist/dropdown-menu.d.ts +2 -2
  59. package/dist/dropdown-menu.js +1 -1
  60. package/dist/empty.d.ts +6 -21
  61. package/dist/empty.js +1 -1
  62. package/dist/field-B1wqeZr4.js +1 -0
  63. package/dist/field.d.ts +26 -53
  64. package/dist/field.js +1 -1
  65. package/dist/flag.d.ts +1 -1
  66. package/dist/hooks.js +1 -1
  67. package/dist/hover-card.d.ts +3 -12
  68. package/dist/hover-card.js +1 -1
  69. package/dist/{svg-only-CdI_v82i.d.ts → icon-CX_gj6sW.d.ts} +1 -1
  70. package/dist/{icon-BDqpcZ-n.d.ts → icon-k4E9yNWD.d.ts} +1 -1
  71. package/dist/icon-lZ48P8Nn.js +1 -0
  72. package/dist/icon.d.ts +3 -3
  73. package/dist/icon.js +1 -1
  74. package/dist/icons-DLCs1hLP.js +1 -0
  75. package/dist/icons.d.ts +53 -2
  76. package/dist/icons.js +1 -1
  77. package/dist/input-BnlpQF0c.js +1 -0
  78. package/dist/{input-DV9M6K4v.d.ts → input-BuYDU6CF.d.ts} +1 -1
  79. package/dist/input.d.ts +2 -2
  80. package/dist/input.js +1 -1
  81. package/dist/line-chart.d.ts +491 -0
  82. package/dist/line-chart.js +1 -0
  83. package/dist/{virtual-UrzmaSQm.js → list-51KQvENW.js} +1 -1
  84. package/dist/list.d.ts +5 -20
  85. package/dist/list.js +1 -1
  86. package/dist/llms.txt +5 -1
  87. package/dist/mantle-dark-high-contrast.css +17 -0
  88. package/dist/mantle-dark.css +13 -0
  89. package/dist/mantle-light-high-contrast.css +15 -0
  90. package/dist/mantle.css +29 -0
  91. package/dist/media-object.d.ts +45 -12
  92. package/dist/media-object.js +1 -1
  93. package/dist/multi-select.d.ts +14 -53
  94. package/dist/multi-select.js +1 -1
  95. package/dist/otp-input.d.ts +5 -17
  96. package/dist/otp-input.js +1 -1
  97. package/dist/pagination.d.ts +11 -21
  98. package/dist/pagination.js +1 -1
  99. package/dist/{index-B8mIWKIU.d.ts → popover-CE4OlWkd.d.ts} +1 -4
  100. package/dist/popover-CQ9s7jG5.js +1 -0
  101. package/dist/popover.d.ts +1 -1
  102. package/dist/popover.js +1 -1
  103. package/dist/primitive-trJDqIXJ.js +1 -0
  104. package/dist/progress.d.ts +2 -8
  105. package/dist/progress.js +1 -1
  106. package/dist/qr-code.d.ts +4 -16
  107. package/dist/qr-code.js +1 -1
  108. package/dist/radio-group.d.ts +129 -40
  109. package/dist/radio-group.js +1 -1
  110. package/dist/sandboxed-on-click.d.ts +2 -2
  111. package/dist/scatter-plot.d.ts +495 -0
  112. package/dist/scatter-plot.js +1 -0
  113. package/dist/{select-idm1jy7y.d.ts → select-0z7HVS6r.d.ts} +8 -29
  114. package/dist/select-BCHWvmyC.js +1 -0
  115. package/dist/select.d.ts +1 -1
  116. package/dist/select.js +1 -1
  117. package/dist/selectable-list.d.ts +11 -38
  118. package/dist/selectable-list.js +1 -1
  119. package/dist/sheet.d.ts +22 -49
  120. package/dist/sheet.js +1 -1
  121. package/dist/skip-to-main-link.js +1 -1
  122. package/dist/slider.js +1 -1
  123. package/dist/slot.d.ts +1 -1
  124. package/dist/split-button.d.ts +155 -31
  125. package/dist/split-button.js +1 -1
  126. package/dist/switch.d.ts +1 -1
  127. package/dist/switch.js +1 -1
  128. package/dist/table-CGxJwtbL.js +1 -0
  129. package/dist/{table-DUSvU_Jw.d.ts → table-CZBYEmyK.d.ts} +11 -38
  130. package/dist/table.d.ts +1 -1
  131. package/dist/table.js +1 -1
  132. package/dist/tabs.d.ts +21 -36
  133. package/dist/tabs.js +1 -1
  134. package/dist/text-area.d.ts +2 -2
  135. package/dist/text-area.js +1 -1
  136. package/dist/theme-C26-Xolp.js +1 -0
  137. package/dist/{themes-CYNpplwN.d.ts → theme-FbfjYiD3.d.ts} +16 -0
  138. package/dist/theme-switcher.d.ts +6 -15
  139. package/dist/theme-switcher.js +1 -1
  140. package/dist/theme.d.ts +42 -2
  141. package/dist/theme.js +1 -1
  142. package/dist/toast.d.ts +9 -17
  143. package/dist/toast.js +1 -1
  144. package/dist/tooltip.d.ts +26 -8
  145. package/dist/tooltip.js +1 -1
  146. package/dist/types.js +1 -1
  147. package/package.json +20 -14
  148. package/dist/checkbox-Cq17y0-R.js +0 -1
  149. package/dist/choice-Cc8dA5r8.js +0 -1
  150. package/dist/dialog-CQ2C6vkE.js +0 -1
  151. package/dist/dropdown-menu-CSCDdA3K.js +0 -1
  152. package/dist/field-context-BR01g789.js +0 -1
  153. package/dist/icon-CGgMKpJg.js +0 -1
  154. package/dist/icon-button-DiOhreJD.js +0 -1
  155. package/dist/index-CdPXa9h1.d.ts +0 -1
  156. package/dist/input-CVyAVbim.js +0 -1
  157. package/dist/popover-CBMADtjV.js +0 -1
  158. package/dist/primitive-DCPHJsRs.js +0 -1
  159. package/dist/select-SR_9-bxA.js +0 -1
  160. package/dist/table-GDkapNFi.js +0 -1
  161. package/dist/theme-provider-BftkIiZn.js +0 -1
  162. package/dist/theme-wVnzzx2F.js +0 -1
  163. package/dist/toast-DKgMRv4F.js +0 -1
  164. /package/dist/{sizes-BCoI4bhP.d.ts → button-BCoI4bhP.d.ts} +0 -0
  165. /package/dist/{intents-DdSKSj1c.d.ts → button-DdSKSj1c.d.ts} +0 -0
  166. /package/dist/{resolve-pre-rendered-props-B6OlZrSI.d.ts → code-block-B6OlZrSI.d.ts} +0 -0
  167. /package/dist/{resolve-pre-rendered-props-C9uaM9-V.js → code-block-C9uaM9-V.js} +0 -0
  168. /package/dist/{validation-7QeiTFwl.d.ts → field-7QeiTFwl.d.ts} +0 -0
  169. /package/dist/{validation-Bpptk_9t.js → field-Bpptk_9t.js} +0 -0
  170. /package/dist/{types-D1RY5Tcj.d.ts → icon-D1RY5Tcj.d.ts} +0 -0
  171. /package/dist/{svg-only-d-nMCfAI.js → icon-d-nMCfAI.js} +0 -0
  172. /package/dist/{sort-B_DDQcVD.js → icons-B_DDQcVD.js} +0 -0
  173. /package/dist/{traffic-policy-file-CF1lbWtp.js → icons-CF1lbWtp.js} +0 -0
  174. /package/dist/{is-input-CXmS0OFN.js → input-CXmS0OFN.js} +0 -0
  175. /package/dist/{index-BtwKJTLq.d.ts → slot-BtwKJTLq.d.ts} +0 -0
package/dist/dialog.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { t as ButtonIntent } from "./intents-DdSKSj1c.js";
2
- import { a as Root, c as isDialogOverlayTarget, i as Overlay$1, n as Content$1, o as Title$1, r as Description$1, s as Trigger$1, t as Close$1 } from "./primitive-CJRIlrLz.js";
3
- import { n as IconButtonAppearance, r as IconButtonProps } from "./icon-button-C1AfGnQx.js";
1
+ import { t as ButtonIntent } from "./button-DdSKSj1c.js";
2
+ import { a as Root, c as isDialogOverlayTarget, i as Overlay$1, n as Content$1, o as Title$1, r as Description$1, s as Trigger$1, t as Close$1 } from "./dialog-BM4wPCft.js";
3
+ import { n as IconButtonProps, r as IconButtonAppearance } from "./button-C7vAl6lS.js";
4
4
  import { ComponentProps } from "react";
5
5
  //#region src/components/dialog/dialog.d.ts
6
6
  /**
@@ -33,10 +33,7 @@ import { ComponentProps } from "react";
33
33
  * </Dialog.Root>
34
34
  * ```
35
35
  */
36
- declare const Trigger: {
37
- (props: ComponentProps<typeof Trigger$1>): import("react").JSX.Element;
38
- displayName: string;
39
- };
36
+ declare const Trigger: (props: ComponentProps<typeof Trigger$1>) => import("react").JSX.Element;
40
37
  /**
41
38
  * A button that closes the dialog when clicked. Wrap an interactive element
42
39
  * with `asChild` to delegate the close behavior to your own button.
@@ -68,10 +65,7 @@ declare const Trigger: {
68
65
  * </Dialog.Root>
69
66
  * ```
70
67
  */
71
- declare const Close: {
72
- (props: ComponentProps<typeof Close$1>): import("react").JSX.Element;
73
- displayName: string;
74
- };
68
+ declare const Close: (props: ComponentProps<typeof Close$1>) => import("react").JSX.Element;
75
69
  /**
76
70
  * The backdrop overlay for the dialog. Sits between the page and the dialog
77
71
  * content and applies a blur and dim effect.
@@ -110,10 +104,7 @@ declare const Close: {
110
104
  * </Dialog.Root>
111
105
  * ```
112
106
  */
113
- declare const Overlay: {
114
- ({ className, ref, ...props }: ComponentProps<typeof Overlay$1>): import("react").JSX.Element;
115
- displayName: string;
116
- };
107
+ declare const Overlay: ({ className, ref, ...props }: ComponentProps<typeof Overlay$1>) => import("react").JSX.Element;
117
108
  type ContentProps = ComponentProps<typeof Content$1> & {
118
109
  /**
119
110
  * The preferred width of the `Dialog.Content` as a tailwind `max-w-` class.
@@ -160,10 +151,7 @@ type ContentProps = ComponentProps<typeof Content$1> & {
160
151
  * </Dialog.Root>
161
152
  * ```
162
153
  */
163
- declare const Content: {
164
- ({ children, className, preferredWidth, ref, ...props }: ContentProps): import("react").JSX.Element;
165
- displayName: string;
166
- };
154
+ declare const Content: ({ children, className, preferredWidth, ref, ...props }: ContentProps) => import("react").JSX.Element;
167
155
  /**
168
156
  * Contains the header content of the dialog, including the title and close button.
169
157
  *
@@ -194,10 +182,7 @@ declare const Content: {
194
182
  * </Dialog.Root>
195
183
  * ```
196
184
  */
197
- declare const Header: {
198
- ({ className, children, ...props }: ComponentProps<"div">): import("react").JSX.Element;
199
- displayName: string;
200
- };
185
+ declare const Header: ({ className, children, ...props }: ComponentProps<"div">) => import("react").JSX.Element;
201
186
  type CloseIconButtonProps = Partial<Omit<IconButtonProps, "appearance" | "icon" | "intent">> & {
202
187
  /**
203
188
  * The visual style of the close icon button. Optional here —
@@ -246,10 +231,7 @@ type CloseIconButtonProps = Partial<Omit<IconButtonProps, "appearance" | "icon"
246
231
  * </Dialog.Root>
247
232
  * ```
248
233
  */
249
- declare const CloseIconButton: {
250
- ({ size, type, label, appearance, intent, ...props }: CloseIconButtonProps): import("react").JSX.Element;
251
- displayName: string;
252
- };
234
+ declare const CloseIconButton: ({ size, type, label, appearance, intent, ...props }: CloseIconButtonProps) => import("react").JSX.Element;
253
235
  /**
254
236
  * Contains the main content of the dialog.
255
237
  *
@@ -280,10 +262,7 @@ declare const CloseIconButton: {
280
262
  * </Dialog.Root>
281
263
  * ```
282
264
  */
283
- declare const Body: {
284
- ({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
285
- displayName: string;
286
- };
265
+ declare const Body: ({ className, ...props }: ComponentProps<"div">) => import("react").JSX.Element;
287
266
  /**
288
267
  * Contains the footer content of the dialog, including action buttons.
289
268
  *
@@ -314,10 +293,7 @@ declare const Body: {
314
293
  * </Dialog.Root>
315
294
  * ```
316
295
  */
317
- declare const Footer: {
318
- ({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
319
- displayName: string;
320
- };
296
+ declare const Footer: ({ className, ...props }: ComponentProps<"div">) => import("react").JSX.Element;
321
297
  /**
322
298
  * An accessible name to be announced when the dialog is opened.
323
299
  *
@@ -348,10 +324,7 @@ declare const Footer: {
348
324
  * </Dialog.Root>
349
325
  * ```
350
326
  */
351
- declare const Title: {
352
- ({ className, ref, ...props }: ComponentProps<typeof Title$1>): import("react").JSX.Element;
353
- displayName: string;
354
- };
327
+ declare const Title: ({ className, ref, ...props }: ComponentProps<typeof Title$1>) => import("react").JSX.Element;
355
328
  /**
356
329
  * An accessible description to be announced when the dialog is opened.
357
330
  * Renders as a `div` by default, but can be changed to any other element using
@@ -384,10 +357,7 @@ declare const Title: {
384
357
  * </Dialog.Root>
385
358
  * ```
386
359
  */
387
- declare const Description: {
388
- ({ className, ref, ...props }: ComponentProps<typeof Description$1>): import("react").JSX.Element;
389
- displayName: string;
390
- };
360
+ declare const Description: ({ className, ref, ...props }: ComponentProps<typeof Description$1>) => import("react").JSX.Element;
391
361
  /**
392
362
  * A window overlaid on either the primary window or another dialog window. Use
393
363
  * Dialog for a focused modal that interrupts the user to gather input or
package/dist/dialog.js CHANGED
@@ -1 +1 @@
1
- import{l as e}from"./primitive-DCPHJsRs.js";import{t}from"./dialog-CQ2C6vkE.js";export{t as Dialog,e as isDialogOverlayTarget};
1
+ import{l as e}from"./primitive-trJDqIXJ.js";import{t}from"./dialog-DWZWd5Jt.js";export{t as Dialog,e as isDialogOverlayTarget};
@@ -0,0 +1 @@
1
+ import "./dropdown-menu-D6pMAY7I.js";
@@ -22,29 +22,70 @@ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
22
22
  * </DropdownMenu.Root>
23
23
  * ```
24
24
  */
25
- declare const Trigger: {
26
- (props: ComponentProps<typeof DropdownMenuPrimitive.Trigger>): import("react").JSX.Element;
27
- displayName: string;
28
- };
29
- declare const Group: {
30
- ({ className, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Group>): import("react").JSX.Element;
31
- displayName: string;
32
- };
33
- declare const RadioGroup: {
34
- ({ className, ...props }: ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): import("react").JSX.Element;
35
- displayName: string;
36
- };
25
+ declare const Trigger: (props: ComponentProps<typeof DropdownMenuPrimitive.Trigger>) => import("react").JSX.Element;
26
+ /**
27
+ * A group container for organizing related dropdown menu items.
28
+ *
29
+ * @see https://mantle.ngrok.com/components/overlays/dropdown-menu#dropdownmenugroup
30
+ *
31
+ * @example
32
+ * ```tsx
33
+ * <DropdownMenu.Root>
34
+ * <DropdownMenu.Trigger>Open</DropdownMenu.Trigger>
35
+ * <DropdownMenu.Content>
36
+ * <DropdownMenu.Group>
37
+ * <DropdownMenu.Label>Account</DropdownMenu.Label>
38
+ * <DropdownMenu.Item>Profile</DropdownMenu.Item>
39
+ * <DropdownMenu.Item>Settings</DropdownMenu.Item>
40
+ * </DropdownMenu.Group>
41
+ * </DropdownMenu.Content>
42
+ * </DropdownMenu.Root>
43
+ * ```
44
+ */
45
+ declare const Group: ({ className, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Group>) => import("react").JSX.Element;
46
+ /**
47
+ * A radio group container for exclusive selection within the dropdown menu.
48
+ *
49
+ * @see https://mantle.ngrok.com/components/overlays/dropdown-menu#dropdownmenuradiogroup
50
+ *
51
+ * @example
52
+ * ```tsx
53
+ * <DropdownMenu.Root>
54
+ * <DropdownMenu.Trigger>Open</DropdownMenu.Trigger>
55
+ * <DropdownMenu.Content>
56
+ * <DropdownMenu.RadioGroup value={value} onValueChange={setValue}>
57
+ * <DropdownMenu.RadioItem value="option1">Option 1</DropdownMenu.RadioItem>
58
+ * <DropdownMenu.RadioItem value="option2">Option 2</DropdownMenu.RadioItem>
59
+ * </DropdownMenu.RadioGroup>
60
+ * </DropdownMenu.Content>
61
+ * </DropdownMenu.Root>
62
+ * ```
63
+ */
64
+ declare const RadioGroup: ({ className, ...props }: ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>) => import("react").JSX.Element;
37
65
  /**
38
66
  * A trigger for a dropdown menu sub-menu.
39
67
  *
40
68
  * @see https://mantle.ngrok.com/components/overlays/dropdown-menu#dropdownmenusubtrigger
69
+ *
70
+ * @example
71
+ * ```tsx
72
+ * <DropdownMenu.Root>
73
+ * <DropdownMenu.Trigger>Open</DropdownMenu.Trigger>
74
+ * <DropdownMenu.Content>
75
+ * <DropdownMenu.Sub>
76
+ * <DropdownMenu.SubTrigger>Share</DropdownMenu.SubTrigger>
77
+ * <DropdownMenu.SubContent>
78
+ * <DropdownMenu.Item>Email</DropdownMenu.Item>
79
+ * <DropdownMenu.Item>Copy link</DropdownMenu.Item>
80
+ * </DropdownMenu.SubContent>
81
+ * </DropdownMenu.Sub>
82
+ * </DropdownMenu.Content>
83
+ * </DropdownMenu.Root>
84
+ * ```
41
85
  */
42
- declare const SubTrigger: {
43
- ({ className, inset, children, ...props }: ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
44
- inset?: boolean;
45
- }): import("react").JSX.Element;
46
- displayName: string;
47
- };
86
+ declare const SubTrigger: ({ className, inset, children, ...props }: ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
87
+ inset?: boolean;
88
+ }) => import("react").JSX.Element;
48
89
  /**
49
90
  * The content container for a dropdown menu sub-menu.
50
91
  *
@@ -53,11 +94,24 @@ declare const SubTrigger: {
53
94
  * mounted layer renders on top.
54
95
  *
55
96
  * @see https://mantle.ngrok.com/components/overlays/dropdown-menu#dropdownmenusubcontent
97
+ *
98
+ * @example
99
+ * ```tsx
100
+ * <DropdownMenu.Root>
101
+ * <DropdownMenu.Trigger>Open</DropdownMenu.Trigger>
102
+ * <DropdownMenu.Content>
103
+ * <DropdownMenu.Sub>
104
+ * <DropdownMenu.SubTrigger>Export</DropdownMenu.SubTrigger>
105
+ * <DropdownMenu.SubContent>
106
+ * <DropdownMenu.Item>Export as PDF</DropdownMenu.Item>
107
+ * <DropdownMenu.Item>Export as CSV</DropdownMenu.Item>
108
+ * </DropdownMenu.SubContent>
109
+ * </DropdownMenu.Sub>
110
+ * </DropdownMenu.Content>
111
+ * </DropdownMenu.Root>
112
+ * ```
56
113
  */
57
- declare const SubContent: {
58
- ({ className, loop, ...props }: ComponentProps<typeof DropdownMenuPrimitive.SubContent>): import("react").JSX.Element;
59
- displayName: string;
60
- };
114
+ declare const SubContent: ({ className, loop, ...props }: ComponentProps<typeof DropdownMenuPrimitive.SubContent>) => import("react").JSX.Element;
61
115
  type DropdownMenuContentProps = ComponentProps<typeof DropdownMenuPrimitive.Content> & WithDataSlot & {
62
116
  /**
63
117
  * Whether the DropdownMenuContent should match the width of the trigger or use the intrinsic content width.
@@ -88,10 +142,7 @@ type DropdownMenuContentProps = ComponentProps<typeof DropdownMenuPrimitive.Cont
88
142
  * </DropdownMenu.Root>
89
143
  * ```
90
144
  */
91
- declare const Content: {
92
- ({ className, "data-slot": dataSlot, onClick, loop, width, ...props }: DropdownMenuContentProps): import("react").JSX.Element;
93
- displayName: string;
94
- };
145
+ declare const Content: ({ className, "data-slot": dataSlot, onClick, loop, width, ...props }: DropdownMenuContentProps) => import("react").JSX.Element;
95
146
  /**
96
147
  * An item in the dropdown menu.
97
148
  *
@@ -112,21 +163,27 @@ declare const Content: {
112
163
  * </DropdownMenu.Root>
113
164
  * ```
114
165
  */
115
- declare const Item: {
116
- ({ className, inset, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Item> & {
117
- inset?: boolean;
118
- }): import("react").JSX.Element;
119
- displayName: string;
120
- };
166
+ declare const Item: ({ className, inset, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Item> & {
167
+ inset?: boolean;
168
+ }) => import("react").JSX.Element;
121
169
  /**
122
170
  * A menu item with a checkbox that can be controlled or uncontrolled.
123
171
  *
124
172
  * @see https://mantle.ngrok.com/components/overlays/dropdown-menu#dropdownmenucheckboxitem
173
+ *
174
+ * @example
175
+ * ```tsx
176
+ * <DropdownMenu.Root>
177
+ * <DropdownMenu.Trigger>Open</DropdownMenu.Trigger>
178
+ * <DropdownMenu.Content>
179
+ * <DropdownMenu.CheckboxItem checked={true} onCheckedChange={setChecked}>
180
+ * Show notifications
181
+ * </DropdownMenu.CheckboxItem>
182
+ * </DropdownMenu.Content>
183
+ * </DropdownMenu.Root>
184
+ * ```
125
185
  */
126
- declare const CheckboxItem: {
127
- ({ className, children, checked, ...props }: ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): import("react").JSX.Element;
128
- displayName: string;
129
- };
186
+ declare const CheckboxItem: ({ className, children, checked, ...props }: ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>) => import("react").JSX.Element;
130
187
  type DropdownMenuRadioItemProps = ComponentProps<typeof DropdownMenuPrimitive.RadioItem> & {
131
188
  name?: string;
132
189
  id?: string;
@@ -136,35 +193,80 @@ type DropdownMenuRadioItemProps = ComponentProps<typeof DropdownMenuPrimitive.Ra
136
193
  * Used within a RadioGroup to create a set of mutually exclusive options.
137
194
  *
138
195
  * @see https://mantle.ngrok.com/components/overlays/dropdown-menu#dropdownmenuradioitem
196
+ *
197
+ * @example
198
+ * ```tsx
199
+ * <DropdownMenu.Root>
200
+ * <DropdownMenu.Trigger>Open</DropdownMenu.Trigger>
201
+ * <DropdownMenu.Content>
202
+ * <DropdownMenu.RadioGroup value="small" onValueChange={setSize}>
203
+ * <DropdownMenu.RadioItem value="small">Small</DropdownMenu.RadioItem>
204
+ * <DropdownMenu.RadioItem value="medium">Medium</DropdownMenu.RadioItem>
205
+ * <DropdownMenu.RadioItem value="large">Large</DropdownMenu.RadioItem>
206
+ * </DropdownMenu.RadioGroup>
207
+ * </DropdownMenu.Content>
208
+ * </DropdownMenu.Root>
209
+ * ```
139
210
  */
140
- declare const RadioItem: {
141
- ({ className, children, ...props }: DropdownMenuRadioItemProps): import("react").JSX.Element;
142
- displayName: string;
143
- };
211
+ declare const RadioItem: ({ className, children, ...props }: DropdownMenuRadioItemProps) => import("react").JSX.Element;
144
212
  /**
145
213
  * A label for a group of dropdown menu items.
146
214
  *
147
215
  * @see https://mantle.ngrok.com/components/overlays/dropdown-menu#dropdownmenulabel
216
+ *
217
+ * @example
218
+ * ```tsx
219
+ * <DropdownMenu.Root>
220
+ * <DropdownMenu.Trigger>Open</DropdownMenu.Trigger>
221
+ * <DropdownMenu.Content>
222
+ * <DropdownMenu.Label>My Account</DropdownMenu.Label>
223
+ * <DropdownMenu.Item>Profile</DropdownMenu.Item>
224
+ * <DropdownMenu.Item>Settings</DropdownMenu.Item>
225
+ * </DropdownMenu.Content>
226
+ * </DropdownMenu.Root>
227
+ * ```
148
228
  */
149
- declare const Label: {
150
- ({ className, inset, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Label> & {
151
- inset?: boolean;
152
- }): import("react").JSX.Element;
153
- displayName: string;
154
- };
229
+ declare const Label: ({ className, inset, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Label> & {
230
+ inset?: boolean;
231
+ }) => import("react").JSX.Element;
155
232
  /**
156
233
  * A visual separator between dropdown menu items or groups.
157
234
  *
158
235
  * @see https://mantle.ngrok.com/components/overlays/dropdown-menu#dropdownmenuseparator
236
+ *
237
+ * @example
238
+ * ```tsx
239
+ * <DropdownMenu.Root>
240
+ * <DropdownMenu.Trigger>Open</DropdownMenu.Trigger>
241
+ * <DropdownMenu.Content>
242
+ * <DropdownMenu.Item>Edit</DropdownMenu.Item>
243
+ * <DropdownMenu.Item>Copy</DropdownMenu.Item>
244
+ * <DropdownMenu.Separator />
245
+ * <DropdownMenu.Item>Delete</DropdownMenu.Item>
246
+ * </DropdownMenu.Content>
247
+ * </DropdownMenu.Root>
248
+ * ```
159
249
  */
160
- declare const DropdownSeparator: {
161
- ({ className, ...props }: ComponentProps<typeof Separator>): import("react").JSX.Element;
162
- displayName: string;
163
- };
164
- declare const Shortcut: {
165
- ({ className, ...props }: ComponentProps<"span">): import("react").JSX.Element;
166
- displayName: string;
167
- };
250
+ declare const DropdownSeparator: ({ className, ...props }: ComponentProps<typeof Separator>) => import("react").JSX.Element;
251
+ /**
252
+ * A keyboard shortcut indicator for dropdown menu items.
253
+ *
254
+ * @see https://mantle.ngrok.com/components/overlays/dropdown-menu#dropdownmenushortcut
255
+ *
256
+ * @example
257
+ * ```tsx
258
+ * <DropdownMenu.Root>
259
+ * <DropdownMenu.Trigger>Open</DropdownMenu.Trigger>
260
+ * <DropdownMenu.Content>
261
+ * <DropdownMenu.Item>
262
+ * Save
263
+ * <DropdownMenu.Shortcut>⌘S</DropdownMenu.Shortcut>
264
+ * </DropdownMenu.Item>
265
+ * </DropdownMenu.Content>
266
+ * </DropdownMenu.Root>
267
+ * ```
268
+ */
269
+ declare const Shortcut: ({ className, ...props }: ComponentProps<"span">) => import("react").JSX.Element;
168
270
  /**
169
271
  * A menu of options or actions, triggered by a button.
170
272
  *
@@ -0,0 +1 @@
1
+ import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./icon-lZ48P8Nn.js";import{n}from"./slot-CDk0Bb9z.js";import{n as r}from"./separator-bpE_kooz.js";import{jsx as i,jsxs as a}from"react/jsx-runtime";import{CheckIcon as o}from"@phosphor-icons/react/Check";import{CaretRightIcon as s}from"@phosphor-icons/react/CaretRight";import*as c from"@radix-ui/react-dropdown-menu";const l=c.Root,u=e=>i(c.Trigger,{"data-slot":`dropdown-menu-trigger`,...e}),d=({className:t,...n})=>i(c.Group,{"data-slot":`dropdown-menu-group`,className:e(`space-y-px`,t),...n}),f=c.Portal,p={Root:l,CheckboxItem:({className:n,children:r,checked:s,...l})=>a(c.CheckboxItem,{"data-slot":`dropdown-menu-checkbox-item`,className:e(`text-strong data-disabled:pointer-events-none data-disabled:opacity-50 relative flex cursor-pointer select-none items-center gap-2 rounded-md py-1.5 pl-2 pr-9 text-sm font-normal outline-hidden`,`data-highlighted:bg-active-menu-item`,`aria-checked:bg-selected-menu-item`,`data-highlighted:aria-checked:bg-active-selected-menu-item!`,`[&>svg]:size-5 [&_svg]:shrink-0`,n),checked:s,...l,children:[i(`span`,{className:`absolute right-2 flex items-center`,children:i(c.ItemIndicator,{children:i(t,{svg:i(o,{weight:`bold`}),className:`size-4 text-accent-600`})})}),r]}),Content:({className:t,"data-slot":r,onClick:a,loop:o=!0,width:s,...l})=>i(f,{children:i(c.Content,{"data-slot":n(r,`dropdown-menu-content`),className:e(`scrollbar`,`text-popover-foreground border-popover bg-popover p-1.25 z-50 min-w-32 overflow-hidden rounded-md border shadow-xl outline-hidden space-y-px font-sans`,`data-side-bottom:slide-in-from-top-2 data-side-left:slide-in-from-right-2 data-side-right:slide-in-from-left-2 data-side-top:slide-in-from-bottom-2 data-state-closed:animate-out data-state-closed:fade-out-0 data-state-closed:zoom-out-95 data-state-open:animate-in data-state-open:fade-in-0 data-state-open:zoom-in-95`,`my-2 max-h-[calc(var(--radix-dropdown-menu-content-available-height)-16px)] overflow-auto`,s===`trigger`&&`w-(--radix-dropdown-menu-trigger-width)`,t),loop:o,onClick:e=>{e.stopPropagation(),a?.(e)},...l})}),Group:d,Item:({className:t,inset:n,...r})=>i(c.Item,{"data-slot":`dropdown-menu-item`,className:e(`relative flex cursor-pointer select-none items-center rounded-md px-2 py-1.5 text-strong text-sm font-normal outline-hidden transition-colors`,`data-highlighted:bg-active-menu-item`,`focus:bg-accent focus:text-accent-foreground`,`data-disabled:cursor-default data-disabled:opacity-50`,`[&>svg]:size-5 [&_svg]:shrink-0`,n&&`pl-8`,t),...r}),Label:({className:t,inset:n,...r})=>i(c.Label,{"data-slot":`dropdown-menu-label`,className:e(`px-2 py-1.5 text-sm font-medium`,n&&`pl-8`,t),...r}),RadioGroup:({className:t,...n})=>i(c.RadioGroup,{"data-slot":`dropdown-menu-radio-group`,className:e(`space-y-px`,t),...n}),RadioItem:({className:n,children:r,...s})=>a(c.RadioItem,{"data-slot":`dropdown-menu-radio-item`,className:e(`group/dropdown-menu-radio-item`,`text-strong data-disabled:pointer-events-none data-disabled:opacity-50 relative flex cursor-pointer select-none items-center gap-2 rounded-md py-1.5 px-2 text-sm font-normal outline-none`,`data-highlighted:bg-active-menu-item`,`aria-checked:bg-selected-menu-item aria-checked:pr-9`,`data-highlighted:aria-checked:bg-active-selected-menu-item!`,`[&>svg]:size-5 [&_svg]:shrink-0`,n),...s,children:[i(`span`,{className:`absolute right-2 items-center hidden group-aria-checked/dropdown-menu-radio-item:flex`,children:i(c.ItemIndicator,{children:i(t,{svg:i(o,{weight:`bold`}),className:`size-4 text-accent-600`})})}),r]}),Separator:({className:t,...n})=>i(r,{"data-slot":`dropdown-menu-separator`,className:e(`-mx-1.25 my-1 w-auto`,t),...n}),Shortcut:({className:t,...n})=>i(`span`,{"data-slot":`dropdown-menu-shortcut`,className:e(`ml-auto text-xs tracking-widest opacity-60`,t),...n}),Sub:c.Sub,SubContent:({className:t,loop:n=!0,...r})=>i(f,{children:i(c.SubContent,{"data-slot":`dropdown-menu-sub-content`,className:e(`scrollbar`,`text-popover-foreground border-popover bg-popover p-1.25 data-state-closed:animate-out data-state-closed:fade-out-0 data-state-closed:zoom-out-95 data-state-open:animate-in data-state-open:fade-in-0 data-state-open:zoom-in-95 data-side-bottom:slide-in-from-top-2 data-side-left:slide-in-from-right-2 data-side-right:slide-in-from-left-2 data-side-top:slide-in-from-bottom-2 z-50 min-w-32 overflow-hidden rounded-md border shadow-xl space-y-px font-sans`,`my-2 max-h-[calc(var(--radix-dropdown-menu-content-available-height)-16px)] overflow-auto`,t),loop:n,...r})}),SubTrigger:({className:n,inset:r,children:o,...l})=>a(c.SubTrigger,{"data-slot":`dropdown-menu-sub-trigger`,className:e(`focus:bg-accent data-state-open:bg-accent relative flex select-none items-center rounded-md py-1.5 pl-2 pr-9 text-sm outline-hidden`,`data-highlighted:bg-active-menu-item data-state-open:bg-active-menu-item`,`[&>svg]:size-5 [&_svg]:shrink-0`,r&&`pl-8`,n),...l,children:[o,i(`span`,{className:`absolute right-2 flex items-center`,children:i(t,{svg:i(s,{weight:`bold`}),className:`size-4`})})]}),Trigger:u};export{p as t};
@@ -1,3 +1,3 @@
1
- import { t as DropdownMenu } from "./dropdown-menu-CoyozLzy.js";
2
- import "./index-CdPXa9h1.js";
1
+ import { t as DropdownMenu } from "./dropdown-menu-D6pMAY7I.js";
2
+ import "./dropdown-menu-BbbQuae2.js";
3
3
  export { DropdownMenu };
@@ -1 +1 @@
1
- import{t as e}from"./dropdown-menu-CSCDdA3K.js";export{e as DropdownMenu};
1
+ import{t as e}from"./dropdown-menu-RyDWoKHx.js";export{e as DropdownMenu};
package/dist/empty.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { n as WithAsChild } from "./as-child-D23mGo4f.js";
2
- import { t as SvgAttributes } from "./types-D1RY5Tcj.js";
2
+ import { t as SvgAttributes } from "./icon-D1RY5Tcj.js";
3
3
  import { ComponentProps, HTMLAttributes, ReactNode } from "react";
4
4
  //#region src/components/empty/empty.d.ts
5
5
  /**
@@ -20,10 +20,7 @@ import { ComponentProps, HTMLAttributes, ReactNode } from "react";
20
20
  * </Empty.Root>
21
21
  * ```
22
22
  */
23
- declare const Root: {
24
- ({ asChild, children, className, ...props }: ComponentProps<"div"> & WithAsChild): import("react").JSX.Element;
25
- displayName: string;
26
- };
23
+ declare const Root: ({ asChild, children, className, ...props }: ComponentProps<"div"> & WithAsChild) => import("react").JSX.Element;
27
24
  type EmptyIconProps = Omit<SvgAttributes, "children"> & {
28
25
  /**
29
26
  * A single SVG icon element.
@@ -48,10 +45,7 @@ type EmptyIconProps = Omit<SvgAttributes, "children"> & {
48
45
  * </Empty.Root>
49
46
  * ```
50
47
  */
51
- declare const Icon: {
52
- ({ className, svg, ...props }: EmptyIconProps): import("react").JSX.Element;
53
- displayName: string;
54
- };
48
+ declare const Icon: ({ className, svg, ...props }: EmptyIconProps) => import("react").JSX.Element;
55
49
  /**
56
50
  * The heading text for the empty state. Renders as an `h3` by default. Use the
57
51
  * `asChild` prop to render as a different heading level (e.g. `h1`, `h2`).
@@ -74,10 +68,7 @@ declare const Icon: {
74
68
  * </Empty.Title>
75
69
  * ```
76
70
  */
77
- declare const Title: {
78
- ({ asChild, children, className, ...props }: HTMLAttributes<HTMLHeadingElement> & WithAsChild): import("react").JSX.Element;
79
- displayName: string;
80
- };
71
+ declare const Title: ({ asChild, children, className, ...props }: HTMLAttributes<HTMLHeadingElement> & WithAsChild) => import("react").JSX.Element;
81
72
  /**
82
73
  * Supporting descriptive text below the title. Renders as a `div` with
83
74
  * `space-y-4` so multiple paragraphs can be placed inside. Use the `asChild`
@@ -102,10 +93,7 @@ declare const Title: {
102
93
  * </Empty.Description>
103
94
  * ```
104
95
  */
105
- declare const Description: {
106
- ({ asChild, children, className, ...props }: ComponentProps<"div"> & WithAsChild): import("react").JSX.Element;
107
- displayName: string;
108
- };
96
+ declare const Description: ({ asChild, children, className, ...props }: ComponentProps<"div"> & WithAsChild) => import("react").JSX.Element;
109
97
  /**
110
98
  * A container for action buttons or links in the empty state.
111
99
  *
@@ -124,10 +112,7 @@ declare const Description: {
124
112
  * </Empty.Root>
125
113
  * ```
126
114
  */
127
- declare const Actions: {
128
- ({ asChild, children, className, ...props }: ComponentProps<"div"> & WithAsChild): import("react").JSX.Element;
129
- displayName: string;
130
- };
115
+ declare const Actions: ({ asChild, children, className, ...props }: ComponentProps<"div"> & WithAsChild) => import("react").JSX.Element;
131
116
  /**
132
117
  * Compound component for rendering empty states. Use with `Empty.Root`,
133
118
  * `Empty.Icon`, `Empty.Title`, `Empty.Description`, and `Empty.Actions`.
package/dist/empty.js CHANGED
@@ -1 +1 @@
1
- import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./svg-only-d-nMCfAI.js";import{t as n}from"./slot-CDk0Bb9z.js";import{jsx as r}from"react/jsx-runtime";const i=({asChild:t,children:i,className:a,...o})=>r(t?n:`div`,{"data-slot":`empty`,className:e(`mx-auto flex max-w-lg flex-col items-center p-6 text-center`,a),...o,children:i});i.displayName=`Empty`;const a=({className:n,svg:i,...a})=>r(t,{"data-slot":`empty-icon`,className:e(`mb-1 size-10 text-neutral-400`,n),svg:i,...a});a.displayName=`EmptyIcon`;const o=({asChild:t,children:i,className:a,...o})=>r(t?n:`h3`,{"data-slot":`empty-title`,className:e(`text-strong text-sm font-medium font-sans`,a),...o,children:i});o.displayName=`EmptyTitle`;const s=({asChild:t,children:i,className:a,...o})=>r(t?n:`div`,{"data-slot":`empty-description`,className:e(`text-muted space-y-4 text-sm font-sans`,a),...o,children:i});s.displayName=`EmptyDescription`;const c=({asChild:t,children:i,className:a,...o})=>r(t?n:`div`,{"data-slot":`empty-actions`,className:e(`mt-4 flex items-center gap-2`,a),...o,children:i});c.displayName=`EmptyActions`;const l={Root:i,Icon:a,Title:o,Description:s,Actions:c};export{l as Empty};
1
+ import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./icon-d-nMCfAI.js";import{t as n}from"./slot-CDk0Bb9z.js";import{jsx as r}from"react/jsx-runtime";const i={Root:({asChild:t,children:i,className:a,...o})=>r(t?n:`div`,{"data-slot":`empty`,className:e(`mx-auto flex max-w-lg flex-col items-center p-6 text-center`,a),...o,children:i}),Icon:({className:n,svg:i,...a})=>r(t,{"data-slot":`empty-icon`,className:e(`mb-1 size-10 text-neutral-400`,n),svg:i,...a}),Title:({asChild:t,children:i,className:a,...o})=>r(t?n:`h3`,{"data-slot":`empty-title`,className:e(`text-strong text-sm font-medium font-sans`,a),...o,children:i}),Description:({asChild:t,children:i,className:a,...o})=>r(t?n:`div`,{"data-slot":`empty-description`,className:e(`text-muted space-y-4 text-sm font-sans`,a),...o,children:i}),Actions:({asChild:t,children:i,className:a,...o})=>r(t?n:`div`,{"data-slot":`empty-actions`,className:e(`mt-4 flex items-center gap-2`,a),...o,children:i})};export{i as Empty};
@@ -0,0 +1 @@
1
+ import{r as e}from"./field-Bpptk_9t.js";import{createContext as t}from"react";const n=t(null),r=t(null),i=({context:t})=>{if(!t)return{ariaProps:{},validation:void 0};let n=e({defaultAriaInvalid:!1,validation:t.validation});return{ariaProps:{"aria-describedby":`${t.descriptionId} ${t.errorId}`,"aria-errormessage":n.isInvalid?t.errorId:void 0,"aria-invalid":n.ariaInvalid,id:t.controlId,name:t.name},validation:n.validation}};export{n,i as r,r as t};