@ngrok/mantle 0.79.3 → 0.80.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 (193) hide show
  1. package/dist/accordion.d.ts +169 -12
  2. package/dist/accordion.js +1 -1
  3. package/dist/agent.json +1 -1
  4. package/dist/alert-dialog.d.ts +496 -30
  5. package/dist/alert-dialog.js +1 -1
  6. package/dist/alert.d.ts +129 -9
  7. package/dist/alert.js +1 -1
  8. package/dist/anchor-_2meGDfj.js +1 -0
  9. package/dist/anchor.d.ts +2 -2
  10. package/dist/anchor.js +1 -1
  11. package/dist/as-child-D23mGo4f.d.ts +49 -0
  12. package/dist/badge.d.ts +44 -5
  13. package/dist/badge.js +1 -1
  14. package/dist/breadcrumb.d.ts +214 -14
  15. package/dist/breadcrumb.js +1 -1
  16. package/dist/button-5WsvzIQ6.js +1 -0
  17. package/dist/{button-DcXOWUYo.d.ts → button-BPMwa2jN.d.ts} +3 -3
  18. package/dist/button-D9n09xUg.js +1 -0
  19. package/dist/button.d.ts +3 -3
  20. package/dist/button.js +1 -1
  21. package/dist/calendar.d.ts +0 -3
  22. package/dist/calendar.js +1 -1
  23. package/dist/card.d.ts +146 -9
  24. package/dist/card.js +1 -1
  25. package/dist/centered-layout.d.ts +224 -8
  26. package/dist/centered-layout.js +1 -1
  27. package/dist/checkbox-Cq17y0-R.js +1 -0
  28. package/dist/checkbox.d.ts +12 -10
  29. package/dist/checkbox.js +1 -1
  30. package/dist/choice-Cc8dA5r8.js +1 -0
  31. package/dist/choice-Ct0KK8jw.d.ts +269 -0
  32. package/dist/choice.d.ts +1 -252
  33. package/dist/choice.js +1 -1
  34. package/dist/code-block.d.ts +270 -50
  35. package/dist/code-block.js +6 -6
  36. package/dist/code.d.ts +3 -2
  37. package/dist/code.js +1 -1
  38. package/dist/combobox.d.ts +190 -11
  39. package/dist/combobox.js +1 -1
  40. package/dist/command.d.ts +285 -81
  41. package/dist/command.js +1 -1
  42. package/dist/compose-refs-BdBMM9ga.js +1 -0
  43. package/dist/data-table.d.ts +33 -5
  44. package/dist/data-table.js +1 -1
  45. package/dist/description-list.d.ts +79 -6
  46. package/dist/description-list.js +1 -1
  47. package/dist/dialog-CQ2C6vkE.js +1 -0
  48. package/dist/dialog.d.ts +239 -18
  49. package/dist/dialog.js +1 -1
  50. package/dist/dropdown-menu-CSCDdA3K.js +1 -0
  51. package/dist/{dropdown-menu-DP_Ne9Mr.d.ts → dropdown-menu-CoyozLzy.d.ts} +170 -29
  52. package/dist/dropdown-menu.d.ts +2 -2
  53. package/dist/dropdown-menu.js +1 -1
  54. package/dist/empty.d.ts +1 -1
  55. package/dist/empty.js +1 -1
  56. package/dist/field.d.ts +596 -45
  57. package/dist/field.js +1 -1
  58. package/dist/flag.d.ts +0 -3
  59. package/dist/flag.js +1 -1
  60. package/dist/hooks.d.ts +3 -4
  61. package/dist/hooks.js +1 -1
  62. package/dist/hover-card.d.ts +54 -4
  63. package/dist/hover-card.js +1 -1
  64. package/dist/{icon-Cevjo93X.d.ts → icon-BDqpcZ-n.d.ts} +1 -1
  65. package/dist/icon-CGgMKpJg.js +1 -0
  66. package/dist/{icon-button-BvQvT790.d.ts → icon-button-C1AfGnQx.d.ts} +6 -60
  67. package/dist/icon-button-DiOhreJD.js +1 -0
  68. package/dist/icon.d.ts +2 -2
  69. package/dist/icon.js +1 -1
  70. package/dist/icons.d.ts +5 -13
  71. package/dist/icons.js +1 -1
  72. package/dist/{in-view-nkSOdED2.d.ts → in-view-DDEGUKDR.d.ts} +17 -9
  73. package/dist/index-B8mIWKIU.d.ts +211 -0
  74. package/dist/{index-Rv8RL7xy.d.ts → index-BtwKJTLq.d.ts} +1 -1
  75. package/dist/{index-BSAizFod.d.ts → index-C2jj8U4a.d.ts} +5 -5
  76. package/dist/index-CdPXa9h1.d.ts +1 -0
  77. package/dist/{index-D47aqlpz.d.ts → index-DA4ig3gj.d.ts} +1 -1
  78. package/dist/input-CVyAVbim.js +1 -0
  79. package/dist/{types-C19IR7jf.d.ts → input-DV9M6K4v.d.ts} +42 -2
  80. package/dist/input.d.ts +4 -55
  81. package/dist/input.js +1 -1
  82. package/dist/{label-v2-bv98k.d.ts → label-C6YH9skg.d.ts} +8 -6
  83. package/dist/label-D-D11mlp.js +1 -0
  84. package/dist/label.d.ts +1 -1
  85. package/dist/label.js +1 -1
  86. package/dist/list.d.ts +150 -6
  87. package/dist/list.js +1 -1
  88. package/dist/llms.txt +1 -1
  89. package/dist/main.d.ts +20 -4
  90. package/dist/main.js +1 -1
  91. package/dist/media-object.d.ts +27 -4
  92. package/dist/media-object.js +1 -1
  93. package/dist/multi-select.d.ts +312 -15
  94. package/dist/multi-select.js +1 -1
  95. package/dist/otp-input.d.ts +129 -5
  96. package/dist/otp-input.js +1 -1
  97. package/dist/pagination.d.ts +70 -6
  98. package/dist/pagination.js +1 -1
  99. package/dist/popover-CBMADtjV.js +1 -0
  100. package/dist/popover.d.ts +1 -181
  101. package/dist/popover.js +1 -1
  102. package/dist/primitive-CJRIlrLz.d.ts +31 -0
  103. package/dist/primitive-DCPHJsRs.js +1 -0
  104. package/dist/progress.js +1 -1
  105. package/dist/qr-code.d.ts +113 -5
  106. package/dist/qr-code.js +1 -1
  107. package/dist/radio-group.d.ts +128 -23
  108. package/dist/radio-group.js +1 -1
  109. package/dist/sandboxed-on-click.d.ts +2 -2
  110. package/dist/sandboxed-on-click.js +1 -1
  111. package/dist/select-SR_9-bxA.js +1 -0
  112. package/dist/select-idm1jy7y.d.ts +600 -0
  113. package/dist/select.d.ts +1 -1
  114. package/dist/select.js +1 -1
  115. package/dist/selectable-list.d.ts +252 -298
  116. package/dist/selectable-list.js +1 -1
  117. package/dist/separator-B5UmkVRL.d.ts +75 -0
  118. package/dist/separator-bpE_kooz.js +1 -0
  119. package/dist/separator.d.ts +1 -52
  120. package/dist/separator.js +1 -1
  121. package/dist/sheet.d.ts +295 -21
  122. package/dist/sheet.js +1 -1
  123. package/dist/skeleton-CsbUHbBA.js +1 -0
  124. package/dist/skeleton.d.ts +4 -7
  125. package/dist/skeleton.js +1 -1
  126. package/dist/skip-to-main-link.d.ts +24 -4
  127. package/dist/skip-to-main-link.js +1 -1
  128. package/dist/slot-CDk0Bb9z.js +1 -0
  129. package/dist/slot.d.ts +1 -1
  130. package/dist/slot.js +1 -1
  131. package/dist/{sort-BPX2Fk9t.js → sort-B_DDQcVD.js} +1 -1
  132. package/dist/split-button.d.ts +28 -13
  133. package/dist/split-button.js +1 -1
  134. package/dist/{svg-only-BFeFS1aa.d.ts → svg-only-CdI_v82i.d.ts} +1 -1
  135. package/dist/svg-only-d-nMCfAI.js +1 -0
  136. package/dist/switch.d.ts +9 -6
  137. package/dist/switch.js +1 -1
  138. package/dist/table-DUSvU_Jw.d.ts +875 -0
  139. package/dist/table-GDkapNFi.js +1 -0
  140. package/dist/table.d.ts +1 -1
  141. package/dist/table.js +1 -1
  142. package/dist/tabs.d.ts +135 -21
  143. package/dist/tabs.js +1 -1
  144. package/dist/text-area.d.ts +1 -1
  145. package/dist/text-area.js +1 -1
  146. package/dist/theme-provider-BftkIiZn.js +1 -0
  147. package/dist/theme-switcher.d.ts +110 -29
  148. package/dist/theme-switcher.js +1 -1
  149. package/dist/theme-wVnzzx2F.js +1 -0
  150. package/dist/theme.d.ts +53 -14
  151. package/dist/theme.js +1 -1
  152. package/dist/toast-DKgMRv4F.js +1 -0
  153. package/dist/toast.d.ts +98 -10
  154. package/dist/toast.js +1 -1
  155. package/dist/tooltip.d.ts +28 -1
  156. package/dist/tooltip.js +1 -1
  157. package/dist/{traffic-policy-file-0g5RXFqu.js → traffic-policy-file-CF1lbWtp.js} +1 -1
  158. package/dist/types.d.ts +2 -2
  159. package/dist/utils.d.ts +1 -1
  160. package/dist/utils.js +1 -1
  161. package/dist/virtual-UrzmaSQm.js +1 -0
  162. package/dist/well.d.ts +3 -3
  163. package/dist/well.js +1 -1
  164. package/package.json +3 -3
  165. package/dist/anchor-C_tjSVy6.js +0 -1
  166. package/dist/as-child-CYEVu1WY.d.ts +0 -23
  167. package/dist/button-5t6-JS_I.js +0 -1
  168. package/dist/button-ClC60Nzg.js +0 -1
  169. package/dist/checkbox-DJ2xl7Rc.js +0 -1
  170. package/dist/choice-DOdyNzFC.js +0 -1
  171. package/dist/compose-refs-Cjf2gfB8.js +0 -1
  172. package/dist/dialog-vxLIvB8M.js +0 -1
  173. package/dist/dropdown-menu-Bt1aKF1g.js +0 -1
  174. package/dist/icon-CDtYjF_H.js +0 -1
  175. package/dist/icon-button-DV2-GZHf.js +0 -1
  176. package/dist/index-g2rfwNCH.d.ts +0 -1
  177. package/dist/input-Ct1YOqSy.js +0 -1
  178. package/dist/label-BMlHW_2D.js +0 -1
  179. package/dist/popover-D5WxxnBY.js +0 -1
  180. package/dist/primitive-C64-m48O.d.ts +0 -13
  181. package/dist/primitive-IKruV2iB.js +0 -1
  182. package/dist/select-Bwt2YduR.d.ts +0 -345
  183. package/dist/select-D-5u0Blc.js +0 -1
  184. package/dist/separator-kBnnv3Cw.js +0 -1
  185. package/dist/skeleton-Bu3tgNcW.js +0 -1
  186. package/dist/slot-DmPrjM7N.js +0 -1
  187. package/dist/svg-only-DDx6FtJd.js +0 -1
  188. package/dist/table-CPH2md2-.js +0 -1
  189. package/dist/table-CwFHXC-G.d.ts +0 -414
  190. package/dist/theme-D3MDng6U.js +0 -1
  191. package/dist/theme-provider-C9zpDyJW.js +0 -1
  192. package/dist/toast-BsCjaMVS.js +0 -1
  193. package/dist/virtual-DZMBu7Ch.js +0 -1
@@ -0,0 +1,600 @@
1
+ import { o as WithValidation } from "./validation-7QeiTFwl.js";
2
+ import { n as Separator } from "./separator-B5UmkVRL.js";
3
+ import { ComponentProps, FocusEvent, PropsWithChildren, ReactNode, Ref, SelectHTMLAttributes } from "react";
4
+ import * as SelectPrimitive from "@radix-ui/react-select";
5
+ //#region src/components/select/select.d.ts
6
+ type WithAriaInvalid = Pick<SelectHTMLAttributes<HTMLSelectElement>, "aria-invalid">;
7
+ type SelectProps = PropsWithChildren & {
8
+ autoComplete?: string;
9
+ defaultOpen?: boolean;
10
+ defaultValue?: string;
11
+ dir?: "ltr" | "rtl";
12
+ disabled?: boolean;
13
+ form?: string;
14
+ id?: string;
15
+ name?: string;
16
+ /**
17
+ * Event handler called when Select blurs.
18
+ * @note this is a no-op for now until we can guarantee that it works identically to a native select onBlur
19
+ */
20
+ onBlur?: (event: FocusEvent<HTMLButtonElement>) => void;
21
+ /**
22
+ * Event handler called when the value changes.
23
+ * @deprecated Use `onValueChange` instead.
24
+ */
25
+ onChange?: (value: string) => void;
26
+ onOpenChange?(open: boolean): void;
27
+ onValueChange?(value: string): void;
28
+ open?: boolean;
29
+ /**
30
+ * Ref for the trigger button.
31
+ */
32
+ ref?: Ref<HTMLButtonElement>;
33
+ required?: boolean;
34
+ value?: string;
35
+ } & WithValidation & WithAriaInvalid;
36
+ /**
37
+ * Displays a list of options for the user to pick from—triggered by a button.
38
+ *
39
+ * Use Select for a small, finite list of options (~2-15) where the user picks exactly one
40
+ * and search/filtering is unnecessary. For larger lists or async/searchable data, use
41
+ * Combobox. For picking multiple options, use MultiSelect.
42
+ *
43
+ * Pass `validation` here when the entire select has an explicit state. That
44
+ * root state is forwarded to `Select.Trigger` and takes precedence over the
45
+ * ambient `validation` from `Field.Item`. Note: rendered `Field.Errors` /
46
+ * `Field.ErrorList` set `aria-invalid="true"` on the trigger via
47
+ * `Field.Control`'s wiring, which still forces the trigger into the error
48
+ * state — suppress the inferred error by passing `validation` on `Field.Item`
49
+ * if a non-error `Select.Root` state needs to win in that case.
50
+ *
51
+ * `Select.Content` renders at Tailwind `z-50`, Mantle's shared floating
52
+ * z-index. When multiple shared layers are open, the most recently mounted
53
+ * layer renders on top.
54
+ *
55
+ * @see https://mantle.ngrok.com/components/forms/select#selectroot
56
+ *
57
+ * @example
58
+ * ```tsx
59
+ * <Select.Root>
60
+ * <Select.Trigger>
61
+ * <Select.Value placeholder="Select a fruit" />
62
+ * </Select.Trigger>
63
+ * <Select.Content>
64
+ * <Select.Group>
65
+ * <Select.Label>Fruits</Select.Label>
66
+ * <Select.Item value="apple">Apple</Select.Item>
67
+ * <Select.Item value="banana">Banana</Select.Item>
68
+ * <Select.Item value="cherry">Cherry</Select.Item>
69
+ * </Select.Group>
70
+ * <Select.Separator />
71
+ * <Select.Group>
72
+ * <Select.Label>Veggies</Select.Label>
73
+ * <Select.Item value="carrot">Carrot</Select.Item>
74
+ * <Select.Item value="cucumber">Cucumber</Select.Item>
75
+ * </Select.Group>
76
+ * </Select.Content>
77
+ * </Select.Root>
78
+ * ```
79
+ */
80
+ declare const Root: {
81
+ ({ "aria-invalid": _ariaInvalid, children, id, validation, onBlur, onValueChange, onChange, ref, ...props }: SelectProps): import("react").JSX.Element;
82
+ displayName: string;
83
+ };
84
+ /**
85
+ * A group of related options within a select menu. Similar to an html `<optgroup>` element.
86
+ * Use in conjunction with Select.Label to ensure good accessibility via automatic labelling.
87
+ *
88
+ * @see https://mantle.ngrok.com/components/forms/select#selectgroup
89
+ *
90
+ * @example
91
+ * ```tsx
92
+ * <Select.Root>
93
+ * <Select.Trigger>
94
+ * <Select.Value placeholder="Select a fruit" />
95
+ * </Select.Trigger>
96
+ * <Select.Content>
97
+ * <Select.Group>
98
+ * <Select.Label>Fruits</Select.Label>
99
+ * <Select.Item value="apple">Apple</Select.Item>
100
+ * <Select.Item value="banana">Banana</Select.Item>
101
+ * <Select.Item value="cherry">Cherry</Select.Item>
102
+ * </Select.Group>
103
+ * <Select.Separator />
104
+ * <Select.Group>
105
+ * <Select.Label>Veggies</Select.Label>
106
+ * <Select.Item value="carrot">Carrot</Select.Item>
107
+ * <Select.Item value="cucumber">Cucumber</Select.Item>
108
+ * </Select.Group>
109
+ * </Select.Content>
110
+ * </Select.Root>
111
+ * ```
112
+ */
113
+ declare const Group: {
114
+ ({ className, ref, ...props }: ComponentProps<typeof SelectPrimitive.Group>): import("react").JSX.Element;
115
+ displayName: string;
116
+ };
117
+ type SelectTriggerProps = ComponentProps<typeof SelectPrimitive.Trigger> & WithAriaInvalid & WithValidation;
118
+ /**
119
+ * The button that toggles the select. The Select.Content will position itself adjacent to the trigger.
120
+ * When composing with `Field.Item`, wrap `Select.Root` in `Field.Control` —
121
+ * the generated `id`, `name`, and `aria-invalid` flow onto `Select.Root` (so
122
+ * the hidden form input gets the field name), and the trigger reads
123
+ * `aria-describedby` / `aria-errormessage` from `FieldControlContext`.
124
+ *
125
+ * @see https://mantle.ngrok.com/components/forms/select#selecttrigger
126
+ *
127
+ * @example
128
+ * ```tsx
129
+ * <Select.Root>
130
+ * <Select.Trigger>
131
+ * <Select.Value placeholder="Select a fruit" />
132
+ * </Select.Trigger>
133
+ * <Select.Content>
134
+ * <Select.Group>
135
+ * <Select.Label>Fruits</Select.Label>
136
+ * <Select.Item value="apple">Apple</Select.Item>
137
+ * <Select.Item value="banana">Banana</Select.Item>
138
+ * <Select.Item value="cherry">Cherry</Select.Item>
139
+ * </Select.Group>
140
+ * <Select.Separator />
141
+ * <Select.Group>
142
+ * <Select.Label>Veggies</Select.Label>
143
+ * <Select.Item value="carrot">Carrot</Select.Item>
144
+ * <Select.Item value="cucumber">Cucumber</Select.Item>
145
+ * </Select.Group>
146
+ * </Select.Content>
147
+ * </Select.Root>
148
+ * ```
149
+ */
150
+ declare const Trigger: {
151
+ ({ "aria-invalid": ariaInValidProp, className, children, id: propId, ref, validation: propValidation, ...props }: SelectTriggerProps): import("react").JSX.Element;
152
+ displayName: string;
153
+ };
154
+ type SelectContentProps = ComponentProps<typeof SelectPrimitive.Content> & {
155
+ /**
156
+ * The width of the content. Defaults to the width of the trigger.
157
+ * If set to "content", the content will use the intrinsic content width; it will be the width of the longest/widest item.
158
+ * @default "trigger"
159
+ */
160
+ width?: "trigger" | "content";
161
+ };
162
+ /**
163
+ * The component that pops out when the select is open as a portal adjacent to the trigger button.
164
+ * It contains a scrolling viewport of the select items.
165
+ *
166
+ * `Select.Content` renders at Tailwind `z-50`, Mantle's shared floating
167
+ * z-index. When multiple shared layers are open, the most recently mounted
168
+ * layer renders on top.
169
+ *
170
+ * @see https://mantle.ngrok.com/components/forms/select#selectcontent
171
+ *
172
+ * @example
173
+ * ```tsx
174
+ * <Select.Root>
175
+ * <Select.Trigger>
176
+ * <Select.Value placeholder="Select a fruit" />
177
+ * </Select.Trigger>
178
+ * <Select.Content>
179
+ * <Select.Group>
180
+ * <Select.Label>Fruits</Select.Label>
181
+ * <Select.Item value="apple">Apple</Select.Item>
182
+ * <Select.Item value="banana">Banana</Select.Item>
183
+ * <Select.Item value="cherry">Cherry</Select.Item>
184
+ * </Select.Group>
185
+ * <Select.Separator />
186
+ * <Select.Group>
187
+ * <Select.Label>Veggies</Select.Label>
188
+ * <Select.Item value="carrot">Carrot</Select.Item>
189
+ * <Select.Item value="cucumber">Cucumber</Select.Item>
190
+ * </Select.Group>
191
+ * </Select.Content>
192
+ * </Select.Root>
193
+ * ```
194
+ */
195
+ declare const Content: {
196
+ ({ className, children, position, ref, width, ...props }: SelectContentProps): import("react").JSX.Element;
197
+ displayName: string;
198
+ };
199
+ /**
200
+ * Used to render the label of a group. It won't be focusable using arrow keys.
201
+ *
202
+ * @see https://mantle.ngrok.com/components/forms/select#selectlabel
203
+ *
204
+ * @example
205
+ * ```tsx
206
+ * <Select.Root>
207
+ * <Select.Trigger>
208
+ * <Select.Value placeholder="Select a fruit" />
209
+ * </Select.Trigger>
210
+ * <Select.Content>
211
+ * <Select.Group>
212
+ * <Select.Label>Fruits</Select.Label>
213
+ * <Select.Item value="apple">Apple</Select.Item>
214
+ * <Select.Item value="banana">Banana</Select.Item>
215
+ * <Select.Item value="cherry">Cherry</Select.Item>
216
+ * </Select.Group>
217
+ * <Select.Separator />
218
+ * <Select.Group>
219
+ * <Select.Label>Veggies</Select.Label>
220
+ * <Select.Item value="carrot">Carrot</Select.Item>
221
+ * <Select.Item value="cucumber">Cucumber</Select.Item>
222
+ * </Select.Group>
223
+ * </Select.Content>
224
+ * </Select.Root>
225
+ * ```
226
+ */
227
+ declare const Label: {
228
+ ({ className, ref, ...props }: ComponentProps<typeof SelectPrimitive.Label>): import("react").JSX.Element;
229
+ displayName: string;
230
+ };
231
+ type SelectItemProps = ComponentProps<typeof SelectPrimitive.Item> & {
232
+ icon?: ReactNode;
233
+ };
234
+ /**
235
+ * An option within a select menu. Similar to an html `<option>` element.
236
+ * Has a required `value` prop that will be passed to the `onChange` handler of the `Select` component when this item is selected.
237
+ * Displays the children as the option's text.
238
+ *
239
+ * @see https://mantle.ngrok.com/components/forms/select#selectitem
240
+ *
241
+ * @example
242
+ * ```tsx
243
+ * <Select.Root>
244
+ * <Select.Trigger>
245
+ * <Select.Value placeholder="Select a fruit" />
246
+ * </Select.Trigger>
247
+ * <Select.Content>
248
+ * <Select.Group>
249
+ * <Select.Label>Fruits</Select.Label>
250
+ * <Select.Item value="apple">Apple</Select.Item>
251
+ * <Select.Item value="banana">Banana</Select.Item>
252
+ * <Select.Item value="cherry">Cherry</Select.Item>
253
+ * </Select.Group>
254
+ * <Select.Separator />
255
+ * <Select.Group>
256
+ * <Select.Label>Veggies</Select.Label>
257
+ * <Select.Item value="carrot">Carrot</Select.Item>
258
+ * <Select.Item value="cucumber">Cucumber</Select.Item>
259
+ * </Select.Group>
260
+ * </Select.Content>
261
+ * </Select.Root>
262
+ * ```
263
+ */
264
+ declare const Item: {
265
+ ({ className, children, icon, ref, ...props }: SelectItemProps): import("react").JSX.Element;
266
+ displayName: string;
267
+ };
268
+ /**
269
+ * Used to visually separate items or groups of items in the select content.
270
+ *
271
+ * @see https://mantle.ngrok.com/components/forms/select#selectseparator
272
+ *
273
+ * @example
274
+ * ```tsx
275
+ * <Select.Root>
276
+ * <Select.Trigger>
277
+ * <Select.Value placeholder="Select a fruit" />
278
+ * </Select.Trigger>
279
+ * <Select.Content>
280
+ * <Select.Group>
281
+ * <Select.Label>Fruits</Select.Label>
282
+ * <Select.Item value="apple">Apple</Select.Item>
283
+ * <Select.Item value="banana">Banana</Select.Item>
284
+ * <Select.Item value="cherry">Cherry</Select.Item>
285
+ * </Select.Group>
286
+ * <Select.Separator />
287
+ * <Select.Group>
288
+ * <Select.Label>Veggies</Select.Label>
289
+ * <Select.Item value="carrot">Carrot</Select.Item>
290
+ * <Select.Item value="cucumber">Cucumber</Select.Item>
291
+ * </Select.Group>
292
+ * </Select.Content>
293
+ * </Select.Root>
294
+ * ```
295
+ */
296
+ declare const SelectSeparatorComponent: {
297
+ ({ className, ref, ...props }: ComponentProps<typeof Separator>): import("react").JSX.Element;
298
+ displayName: string;
299
+ };
300
+ /**
301
+ * Displays a list of options for the user to pick from—triggered by a button.
302
+ *
303
+ * Use Select for a small, finite list of options (~2-15) where the user picks exactly one
304
+ * and search/filtering is unnecessary. For larger lists or async/searchable data, use
305
+ * Combobox. For picking multiple options, use MultiSelect.
306
+ *
307
+ * `Select.Content` renders at Tailwind `z-50`, Mantle's shared floating
308
+ * z-index. When multiple shared layers are open, the most recently mounted
309
+ * layer renders on top.
310
+ *
311
+ * @see https://mantle.ngrok.com/components/forms/select
312
+ *
313
+ * @example
314
+ * Composition:
315
+ * ```
316
+ * Select.Root
317
+ * ├── Select.Trigger
318
+ * │ └── Select.Value
319
+ * └── Select.Content
320
+ * ├── Select.Group
321
+ * │ ├── Select.Label
322
+ * │ └── Select.Item
323
+ * └── Select.Separator
324
+ * ```
325
+ *
326
+ * @example
327
+ * ```tsx
328
+ * <Select.Root>
329
+ * <Select.Trigger>
330
+ * <Select.Value placeholder="Select a fruit" />
331
+ * </Select.Trigger>
332
+ * <Select.Content>
333
+ * <Select.Group>
334
+ * <Select.Label>Fruits</Select.Label>
335
+ * <Select.Item value="apple">Apple</Select.Item>
336
+ * <Select.Item value="banana">Banana</Select.Item>
337
+ * <Select.Item value="cherry">Cherry</Select.Item>
338
+ * </Select.Group>
339
+ * <Select.Separator />
340
+ * <Select.Group>
341
+ * <Select.Label>Veggies</Select.Label>
342
+ * <Select.Item value="carrot">Carrot</Select.Item>
343
+ * <Select.Item value="cucumber">Cucumber</Select.Item>
344
+ * </Select.Group>
345
+ * </Select.Content>
346
+ * </Select.Root>
347
+ * ```
348
+ */
349
+ declare const Select: {
350
+ /**
351
+ * Displays a list of options for the user to pick from—triggered by a button.
352
+ *
353
+ * Use Select for a small, finite list of options (~2-15) where the user picks exactly one
354
+ * and search/filtering is unnecessary. For larger lists or async/searchable data, use
355
+ * Combobox. For picking multiple options, use MultiSelect.
356
+ *
357
+ * `Select.Content` renders at Tailwind `z-50`, Mantle's shared floating
358
+ * z-index. When multiple shared layers are open, the most recently mounted
359
+ * layer renders on top.
360
+ *
361
+ * @see https://mantle.ngrok.com/components/forms/select#selectroot
362
+ *
363
+ * @example
364
+ * ```tsx
365
+ * <Select.Root>
366
+ * <Select.Trigger>
367
+ * <Select.Value placeholder="Select a fruit" />
368
+ * </Select.Trigger>
369
+ * <Select.Content>
370
+ * <Select.Group>
371
+ * <Select.Label>Fruits</Select.Label>
372
+ * <Select.Item value="apple">Apple</Select.Item>
373
+ * <Select.Item value="banana">Banana</Select.Item>
374
+ * <Select.Item value="cherry">Cherry</Select.Item>
375
+ * </Select.Group>
376
+ * <Select.Separator />
377
+ * <Select.Group>
378
+ * <Select.Label>Veggies</Select.Label>
379
+ * <Select.Item value="carrot">Carrot</Select.Item>
380
+ * <Select.Item value="cucumber">Cucumber</Select.Item>
381
+ * </Select.Group>
382
+ * </Select.Content>
383
+ * </Select.Root>
384
+ * ```
385
+ */
386
+ readonly Root: typeof Root;
387
+ /**
388
+ * The component that pops out when the select is open as a portal adjacent to the trigger button.
389
+ * It contains a scrolling viewport of the select items.
390
+ *
391
+ * `Select.Content` renders at Tailwind `z-50`, Mantle's shared floating
392
+ * z-index. When multiple shared layers are open, the most recently mounted
393
+ * layer renders on top.
394
+ *
395
+ * @see https://mantle.ngrok.com/components/forms/select#selectcontent
396
+ *
397
+ * @example
398
+ * ```tsx
399
+ * <Select.Root>
400
+ * <Select.Trigger>
401
+ * <Select.Value placeholder="Select a fruit" />
402
+ * </Select.Trigger>
403
+ * <Select.Content>
404
+ * <Select.Group>
405
+ * <Select.Label>Fruits</Select.Label>
406
+ * <Select.Item value="apple">Apple</Select.Item>
407
+ * <Select.Item value="banana">Banana</Select.Item>
408
+ * <Select.Item value="cherry">Cherry</Select.Item>
409
+ * </Select.Group>
410
+ * <Select.Separator />
411
+ * <Select.Group>
412
+ * <Select.Label>Veggies</Select.Label>
413
+ * <Select.Item value="carrot">Carrot</Select.Item>
414
+ * <Select.Item value="cucumber">Cucumber</Select.Item>
415
+ * </Select.Group>
416
+ * </Select.Content>
417
+ * </Select.Root>
418
+ * ```
419
+ */
420
+ readonly Content: typeof Content;
421
+ /**
422
+ * A group of related options within a select menu. Similar to an html `<optgroup>` element.
423
+ * Use in conjunction with Select.Label to ensure good accessibility via automatic labelling.
424
+ *
425
+ * @see https://mantle.ngrok.com/components/forms/select#selectgroup
426
+ *
427
+ * @example
428
+ * ```tsx
429
+ * <Select.Root>
430
+ * <Select.Trigger>
431
+ * <Select.Value placeholder="Select a fruit" />
432
+ * </Select.Trigger>
433
+ * <Select.Content>
434
+ * <Select.Group>
435
+ * <Select.Label>Fruits</Select.Label>
436
+ * <Select.Item value="apple">Apple</Select.Item>
437
+ * <Select.Item value="banana">Banana</Select.Item>
438
+ * <Select.Item value="cherry">Cherry</Select.Item>
439
+ * </Select.Group>
440
+ * <Select.Separator />
441
+ * <Select.Group>
442
+ * <Select.Label>Veggies</Select.Label>
443
+ * <Select.Item value="carrot">Carrot</Select.Item>
444
+ * <Select.Item value="cucumber">Cucumber</Select.Item>
445
+ * </Select.Group>
446
+ * </Select.Content>
447
+ * </Select.Root>
448
+ * ```
449
+ */
450
+ readonly Group: typeof Group;
451
+ /**
452
+ * An option within a select menu. Similar to an html `<option>` element.
453
+ * Has a required `value` prop that will be passed to the `onChange` handler of the `Select` component when this item is selected.
454
+ * Displays the children as the option's text.
455
+ *
456
+ * @see https://mantle.ngrok.com/components/forms/select#selectitem
457
+ *
458
+ * @example
459
+ * ```tsx
460
+ * <Select.Root>
461
+ * <Select.Trigger>
462
+ * <Select.Value placeholder="Select a fruit" />
463
+ * </Select.Trigger>
464
+ * <Select.Content>
465
+ * <Select.Group>
466
+ * <Select.Label>Fruits</Select.Label>
467
+ * <Select.Item value="apple">Apple</Select.Item>
468
+ * <Select.Item value="banana">Banana</Select.Item>
469
+ * <Select.Item value="cherry">Cherry</Select.Item>
470
+ * </Select.Group>
471
+ * <Select.Separator />
472
+ * <Select.Group>
473
+ * <Select.Label>Veggies</Select.Label>
474
+ * <Select.Item value="carrot">Carrot</Select.Item>
475
+ * <Select.Item value="cucumber">Cucumber</Select.Item>
476
+ * </Select.Group>
477
+ * </Select.Content>
478
+ * </Select.Root>
479
+ * ```
480
+ */
481
+ readonly Item: typeof Item;
482
+ /**
483
+ * Used to render the label of a group. It won't be focusable using arrow keys.
484
+ *
485
+ * @see https://mantle.ngrok.com/components/forms/select#selectlabel
486
+ *
487
+ * @example
488
+ * ```tsx
489
+ * <Select.Root>
490
+ * <Select.Trigger>
491
+ * <Select.Value placeholder="Select a fruit" />
492
+ * </Select.Trigger>
493
+ * <Select.Content>
494
+ * <Select.Group>
495
+ * <Select.Label>Fruits</Select.Label>
496
+ * <Select.Item value="apple">Apple</Select.Item>
497
+ * <Select.Item value="banana">Banana</Select.Item>
498
+ * <Select.Item value="cherry">Cherry</Select.Item>
499
+ * </Select.Group>
500
+ * <Select.Separator />
501
+ * <Select.Group>
502
+ * <Select.Label>Veggies</Select.Label>
503
+ * <Select.Item value="carrot">Carrot</Select.Item>
504
+ * <Select.Item value="cucumber">Cucumber</Select.Item>
505
+ * </Select.Group>
506
+ * </Select.Content>
507
+ * </Select.Root>
508
+ * ```
509
+ */
510
+ readonly Label: typeof Label;
511
+ /**
512
+ * Used to visually separate items or groups of items in the select content.
513
+ *
514
+ * @see https://mantle.ngrok.com/components/forms/select#selectseparator
515
+ *
516
+ * @example
517
+ * ```tsx
518
+ * <Select.Root>
519
+ * <Select.Trigger>
520
+ * <Select.Value placeholder="Select a fruit" />
521
+ * </Select.Trigger>
522
+ * <Select.Content>
523
+ * <Select.Group>
524
+ * <Select.Label>Fruits</Select.Label>
525
+ * <Select.Item value="apple">Apple</Select.Item>
526
+ * <Select.Item value="banana">Banana</Select.Item>
527
+ * <Select.Item value="cherry">Cherry</Select.Item>
528
+ * </Select.Group>
529
+ * <Select.Separator />
530
+ * <Select.Group>
531
+ * <Select.Label>Veggies</Select.Label>
532
+ * <Select.Item value="carrot">Carrot</Select.Item>
533
+ * <Select.Item value="cucumber">Cucumber</Select.Item>
534
+ * </Select.Group>
535
+ * </Select.Content>
536
+ * </Select.Root>
537
+ * ```
538
+ */
539
+ readonly Separator: typeof SelectSeparatorComponent;
540
+ /**
541
+ * The button that toggles the select. The Select.Content will position itself adjacent to the trigger.
542
+ *
543
+ * @see https://mantle.ngrok.com/components/forms/select#selecttrigger
544
+ *
545
+ * @example
546
+ * ```tsx
547
+ * <Select.Root>
548
+ * <Select.Trigger>
549
+ * <Select.Value placeholder="Select a fruit" />
550
+ * </Select.Trigger>
551
+ * <Select.Content>
552
+ * <Select.Group>
553
+ * <Select.Label>Fruits</Select.Label>
554
+ * <Select.Item value="apple">Apple</Select.Item>
555
+ * <Select.Item value="banana">Banana</Select.Item>
556
+ * <Select.Item value="cherry">Cherry</Select.Item>
557
+ * </Select.Group>
558
+ * <Select.Separator />
559
+ * <Select.Group>
560
+ * <Select.Label>Veggies</Select.Label>
561
+ * <Select.Item value="carrot">Carrot</Select.Item>
562
+ * <Select.Item value="cucumber">Cucumber</Select.Item>
563
+ * </Select.Group>
564
+ * </Select.Content>
565
+ * </Select.Root>
566
+ * ```
567
+ */
568
+ readonly Trigger: typeof Trigger;
569
+ /**
570
+ * The part that reflects the selected value. By default the selected item's text will be rendered. if you require more control, you can instead control the select and pass your own children. It should not be styled to ensure correct positioning. An optional placeholder prop is also available for when the select has no value.
571
+ *
572
+ * @see https://mantle.ngrok.com/components/forms/select#selectvalue
573
+ *
574
+ * @example
575
+ * ```tsx
576
+ * <Select.Root>
577
+ * <Select.Trigger>
578
+ * <Select.Value placeholder="Select a fruit" />
579
+ * </Select.Trigger>
580
+ * <Select.Content>
581
+ * <Select.Group>
582
+ * <Select.Label>Fruits</Select.Label>
583
+ * <Select.Item value="apple">Apple</Select.Item>
584
+ * <Select.Item value="banana">Banana</Select.Item>
585
+ * <Select.Item value="cherry">Cherry</Select.Item>
586
+ * </Select.Group>
587
+ * <Select.Separator />
588
+ * <Select.Group>
589
+ * <Select.Label>Veggies</Select.Label>
590
+ * <Select.Item value="carrot">Carrot</Select.Item>
591
+ * <Select.Item value="cucumber">Cucumber</Select.Item>
592
+ * </Select.Group>
593
+ * </Select.Content>
594
+ * </Select.Root>
595
+ * ```
596
+ */
597
+ readonly Value: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & import("react").RefAttributes<HTMLSpanElement>>;
598
+ };
599
+ //#endregion
600
+ export { Select as t };
package/dist/select.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as Select } from "./select-Bwt2YduR.js";
1
+ import { t as Select } from "./select-idm1jy7y.js";
2
2
  export { Select };
package/dist/select.js CHANGED
@@ -1 +1 @@
1
- import{t as e}from"./select-D-5u0Blc.js";export{e as Select};
1
+ import{t as e}from"./select-SR_9-bxA.js";export{e as Select};