@ngrok/mantle 0.32.2 → 0.40.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 (86) hide show
  1. package/dist/accordion.d.ts +72 -61
  2. package/dist/accordion.js +1 -1
  3. package/dist/accordion.js.map +1 -1
  4. package/dist/alert-dialog.d.ts +311 -462
  5. package/dist/alert-dialog.js +1 -1
  6. package/dist/alert-dialog.js.map +1 -1
  7. package/dist/alert.d.ts +113 -92
  8. package/dist/alert.js +1 -1
  9. package/dist/alert.js.map +1 -1
  10. package/dist/card.d.ts +112 -112
  11. package/dist/card.js +1 -1
  12. package/dist/card.js.map +1 -1
  13. package/dist/{chunk-IVXZIYX4.js → chunk-2ID2TLYD.js} +1 -1
  14. package/dist/chunk-2ID2TLYD.js.map +1 -0
  15. package/dist/{chunk-3X4AKTRA.js → chunk-4GGDPFNZ.js} +2 -2
  16. package/dist/chunk-4GGDPFNZ.js.map +1 -0
  17. package/dist/{chunk-ERBZR6SY.js → chunk-EYZYDUS2.js} +1 -1
  18. package/dist/chunk-EYZYDUS2.js.map +1 -0
  19. package/dist/chunk-F4N3P7B7.js +2 -0
  20. package/dist/chunk-F4N3P7B7.js.map +1 -0
  21. package/dist/{chunk-6RJ2G2DK.js → chunk-HSTG2BTX.js} +3 -3
  22. package/dist/chunk-HSTG2BTX.js.map +1 -0
  23. package/dist/chunk-UUXOG7WW.js +2 -0
  24. package/dist/chunk-UUXOG7WW.js.map +1 -0
  25. package/dist/code-block.d.ts +188 -178
  26. package/dist/code-block.js +3 -3
  27. package/dist/code-block.js.map +1 -1
  28. package/dist/combobox.d.ts +178 -141
  29. package/dist/combobox.js +1 -1
  30. package/dist/combobox.js.map +1 -1
  31. package/dist/data-table.d.ts +191 -30
  32. package/dist/data-table.js +1 -1
  33. package/dist/data-table.js.map +1 -1
  34. package/dist/dialog.d.ts +374 -264
  35. package/dist/dialog.js +1 -1
  36. package/dist/dialog.js.map +1 -1
  37. package/dist/dropdown-menu.d.ts +304 -102
  38. package/dist/dropdown-menu.js +1 -1
  39. package/dist/dropdown-menu.js.map +1 -1
  40. package/dist/hover-card.d.ts +94 -58
  41. package/dist/hover-card.js +1 -1
  42. package/dist/hover-card.js.map +1 -1
  43. package/dist/icons.js +1 -1
  44. package/dist/input.d.ts +11 -0
  45. package/dist/input.js +1 -1
  46. package/dist/media-object.d.ts +75 -46
  47. package/dist/media-object.js +1 -1
  48. package/dist/media-object.js.map +1 -1
  49. package/dist/pagination.d.ts +124 -62
  50. package/dist/pagination.js +1 -1
  51. package/dist/pagination.js.map +1 -1
  52. package/dist/popover.d.ts +124 -102
  53. package/dist/popover.js +1 -1
  54. package/dist/popover.js.map +1 -1
  55. package/dist/progress.d.ts +112 -35
  56. package/dist/progress.js +1 -1
  57. package/dist/progress.js.map +1 -1
  58. package/dist/radio-group.d.ts +234 -105
  59. package/dist/radio-group.js +1 -1
  60. package/dist/radio-group.js.map +1 -1
  61. package/dist/select.d.ts +242 -212
  62. package/dist/select.js +1 -1
  63. package/dist/sheet.d.ts +343 -575
  64. package/dist/sheet.js +1 -1
  65. package/dist/sheet.js.map +1 -1
  66. package/dist/table.d.ts +384 -425
  67. package/dist/table.js +1 -1
  68. package/dist/tabs.d.ts +105 -95
  69. package/dist/tabs.js +1 -1
  70. package/dist/tabs.js.map +1 -1
  71. package/dist/theme-provider.d.ts +26 -2
  72. package/dist/theme-provider.js +1 -1
  73. package/dist/toast.d.ts +77 -61
  74. package/dist/toast.js +1 -1
  75. package/dist/tooltip.d.ts +72 -49
  76. package/dist/tooltip.js +1 -1
  77. package/dist/tooltip.js.map +1 -1
  78. package/package.json +1 -1
  79. package/dist/chunk-3X4AKTRA.js.map +0 -1
  80. package/dist/chunk-6RJ2G2DK.js.map +0 -1
  81. package/dist/chunk-ERBZR6SY.js.map +0 -1
  82. package/dist/chunk-IVXZIYX4.js.map +0 -1
  83. package/dist/chunk-JIRNFNH5.js +0 -2
  84. package/dist/chunk-JIRNFNH5.js.map +0 -1
  85. package/dist/chunk-NRMIFYYG.js +0 -2
  86. package/dist/chunk-NRMIFYYG.js.map +0 -1
package/dist/select.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { W as WithAsChild } from './as-child-DJ7x3JFV.js';
2
2
  import * as react from 'react';
3
- import { SelectHTMLAttributes, ReactNode, FocusEvent } from 'react';
3
+ import { ReactNode, FocusEvent, SelectHTMLAttributes } from 'react';
4
4
  import * as SelectPrimitive from '@radix-ui/react-select';
5
5
  import { W as WithValidation } from './types-DehRoXC5.js';
6
6
 
@@ -8,226 +8,256 @@ type WithAriaInvalid = Pick<SelectHTMLAttributes<HTMLSelectElement>, "aria-inval
8
8
  /**
9
9
  * Displays a list of options for the user to pick from—triggered by a button.
10
10
  *
11
- * @see https://mantle.ngrok.com/components/select#api-select
11
+ * @see https://mantle.ngrok.com/components/select
12
12
  *
13
13
  * @example
14
14
  * ```tsx
15
- * <Select>
16
- * <SelectTrigger>
17
- * <SelectValue placeholder="Select a fruit" />
18
- * </SelectTrigger>
19
- * <SelectContent>
20
- * <SelectGroup>
21
- * <SelectLabel>Fruits</SelectLabel>
22
- * <SelectItem value="apple">Apple</SelectItem>
23
- * <SelectItem value="banana">Banana</SelectItem>
24
- * <SelectItem value="cherry">Cherry</SelectItem>
25
- * </SelectGroup>
26
- * <SelectSeparator />
27
- * <SelectGroup>
28
- * <SelectLabel>Veggies</SelectLabel>
29
- * <SelectItem value="carrot">Carrot</SelectItem>
30
- * <SelectItem value="cucumber">Cucumber</SelectItem>
31
- * </SelectGroup>
32
- * </SelectContent>
33
- * </Select>
15
+ * <Select.Root>
16
+ * <Select.Trigger>
17
+ * <Select.Value placeholder="Select a fruit" />
18
+ * </Select.Trigger>
19
+ * <Select.Content>
20
+ * <Select.Group>
21
+ * <Select.Label>Fruits</Select.Label>
22
+ * <Select.Item value="apple">Apple</Select.Item>
23
+ * <Select.Item value="banana">Banana</Select.Item>
24
+ * <Select.Item value="cherry">Cherry</Select.Item>
25
+ * </Select.Group>
26
+ * <Select.Separator />
27
+ * <Select.Group>
28
+ * <Select.Label>Veggies</Select.Label>
29
+ * <Select.Item value="carrot">Carrot</Select.Item>
30
+ * <Select.Item value="cucumber">Cucumber</Select.Item>
31
+ * </Select.Group>
32
+ * </Select.Content>
33
+ * </Select.Root>
34
34
  * ```
35
35
  */
36
- declare const Select: react.ForwardRefExoticComponent<{
37
- children?: ReactNode | undefined;
38
- } & {
39
- autoComplete?: string;
40
- defaultOpen?: boolean;
41
- defaultValue?: string;
42
- dir?: "ltr" | "rtl";
43
- disabled?: boolean;
44
- form?: string;
45
- id?: string;
46
- name?: string;
36
+ declare const Select: {
47
37
  /**
48
- * Event handler called when Select blurs.
49
- * @note this is a no-op for now until we can guarantee that it works identically to a native select onBlur
38
+ * Displays a list of options for the user to pick from—triggered by a button.
39
+ *
40
+ * @see https://mantle.ngrok.com/components/select#api-select
41
+ *
42
+ * @example
43
+ * ```tsx
44
+ * <Select.Root>
45
+ * <Select.Trigger>
46
+ * <Select.Value placeholder="Select a fruit" />
47
+ * </Select.Trigger>
48
+ * <Select.Content>
49
+ * <Select.Group>
50
+ * <Select.Label>Fruits</Select.Label>
51
+ * <Select.Item value="apple">Apple</Select.Item>
52
+ * <Select.Item value="banana">Banana</Select.Item>
53
+ * <Select.Item value="cherry">Cherry</Select.Item>
54
+ * </Select.Group>
55
+ * <Select.Separator />
56
+ * <Select.Group>
57
+ * <Select.Label>Veggies</Select.Label>
58
+ * <Select.Item value="carrot">Carrot</Select.Item>
59
+ * <Select.Item value="cucumber">Cucumber</Select.Item>
60
+ * </Select.Group>
61
+ * </Select.Content>
62
+ * </Select.Root>
63
+ * ```
50
64
  */
51
- onBlur?: (event: FocusEvent<HTMLButtonElement>) => void;
65
+ readonly Root: react.ForwardRefExoticComponent<{
66
+ children?: ReactNode | undefined;
67
+ } & {
68
+ autoComplete?: string;
69
+ defaultOpen?: boolean;
70
+ defaultValue?: string;
71
+ dir?: "ltr" | "rtl";
72
+ disabled?: boolean;
73
+ form?: string;
74
+ id?: string;
75
+ name?: string;
76
+ /**
77
+ * Event handler called when Select blurs.
78
+ * @note this is a no-op for now until we can guarantee that it works identically to a native select onBlur
79
+ */
80
+ onBlur?: (event: FocusEvent<HTMLButtonElement>) => void;
81
+ /**
82
+ * Event handler called when the value changes.
83
+ * @deprecated Use `onValueChange` instead.
84
+ */
85
+ onChange?: (value: string) => void;
86
+ onOpenChange?(open: boolean): void;
87
+ onValueChange?(value: string): void;
88
+ open?: boolean;
89
+ required?: boolean;
90
+ value?: string;
91
+ } & WithValidation & WithAriaInvalid & react.RefAttributes<HTMLButtonElement>>;
52
92
  /**
53
- * Event handler called when the value changes.
54
- * @deprecated Use `onValueChange` instead.
93
+ * The component that pops out when the select is open as a portal adjacent to the trigger button.
94
+ * It contains a scrolling viewport of the select items.
95
+ *
96
+ * @see https://mantle.ngrok.com/components/select#api-select-content
97
+ *
98
+ * @example
99
+ * <Select.Root>
100
+ * <Select.Trigger>
101
+ * <Select.Value placeholder="Select a fruit" />
102
+ * </Select.Trigger>
103
+ * <Select.Content>
104
+ * <Select.Item value="apple">Apple</Select.Item>
105
+ * <Select.Item value="banana">Banana</Select.Item>
106
+ * <Select.Item value="cherry">Cherry</Select.Item>
107
+ * </Select.Content>
108
+ * </Select.Root>
55
109
  */
56
- onChange?: (value: string) => void;
57
- onOpenChange?(open: boolean): void;
58
- onValueChange?(value: string): void;
59
- open?: boolean;
60
- required?: boolean;
61
- value?: string;
62
- } & WithValidation & WithAriaInvalid & react.RefAttributes<HTMLButtonElement>>;
63
- /**
64
- * A group of related options within a select menu. Similar to an html `<optgroup>` element.
65
- * Use in conjunction with SelectLabel to ensure good accessibility via automatic labelling.
66
- *
67
- * @example
68
- * <Select>
69
- * <SelectTrigger>
70
- * <SelectValue placeholder="Select a fruit" />
71
- * </SelectTrigger>
72
- * <SelectContent>
73
- * <SelectGroup>
74
- * <SelectLabel>Fruits</SelectLabel>
75
- * <SelectItem value="apple">Apple</SelectItem>
76
- * <SelectItem value="banana">Banana</SelectItem>
77
- * <SelectItem value="cherry">Cherry</SelectItem>
78
- * </SelectGroup>
79
- * <SelectGroup>
80
- * <SelectLabel>Veggies</SelectLabel>
81
- * <SelectItem value="carrot">Carrot</SelectItem>
82
- * <SelectItem value="cucumber">Cucumber</SelectItem>
83
- * </SelectGroup>
84
- * </SelectContent>
85
- * </Select>
86
- *
87
- * @see https://mantle.ngrok.com/components/select#api-select-group
88
- */
89
- declare const SelectGroup: react.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & react.RefAttributes<HTMLDivElement>>;
90
- /**
91
- * 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.
92
- *
93
- * @example
94
- * <Select>
95
- * <SelectTrigger>
96
- * <SelectValue placeholder="Select a fruit" />
97
- * </SelectTrigger>
98
- * <SelectContent>
99
- * <SelectItem value="apple">Apple</SelectItem>
100
- * <SelectItem value="banana">Banana</SelectItem>
101
- * <SelectItem value="cherry">Cherry</SelectItem>
102
- * </SelectContent>
103
- * </Select>
104
- *
105
- * @see https://mantle.ngrok.com/components/select#api-select-value
106
- */
107
- declare const SelectValue: react.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & react.RefAttributes<HTMLSpanElement>>;
108
- /**
109
- * The button that toggles the select. The SelectContent will position itself adjacent to the trigger.
110
- *
111
- * @see https://mantle.ngrok.com/components/select#api-select-trigger
112
- *
113
- * @example
114
- * ```tsx
115
- * <Select>
116
- * <SelectTrigger>
117
- * <SelectValue placeholder="Select a fruit" />
118
- * </SelectTrigger>
119
- * <SelectContent>
120
- * <SelectItem value="apple">Apple</SelectItem>
121
- * <SelectItem value="banana">Banana</SelectItem>
122
- * <SelectItem value="cherry">Cherry</SelectItem>
123
- * </SelectContent>
124
- * </Select>
125
- * ```
126
- */
127
- declare const SelectTrigger: react.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & react.RefAttributes<HTMLButtonElement>, "ref"> & WithAriaInvalid & WithValidation & react.RefAttributes<HTMLButtonElement>>;
128
- /**
129
- * The component that pops out when the select is open as a portal adjacent to the trigger button.
130
- * It contains a scrolling viewport of the select items.
131
- *
132
- * @example
133
- * <Select>
134
- * <SelectTrigger>
135
- * <SelectValue placeholder="Select a fruit" />
136
- * </SelectTrigger>
137
- * <SelectContent>
138
- * <SelectItem value="apple">Apple</SelectItem>
139
- * <SelectItem value="banana">Banana</SelectItem>
140
- * <SelectItem value="cherry">Cherry</SelectItem>
141
- * </SelectContent>
142
- * </Select>
143
- *
144
- * @see https://mantle.ngrok.com/components/select#api-select-content
145
- */
146
- declare const SelectContent: react.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
110
+ readonly Content: react.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
111
+ /**
112
+ * The width of the content. Defaults to the width of the trigger.
113
+ * If set to "content", the content will use the intrinsic content width; it will be the width of the longest/widest item.
114
+ * @default "trigger"
115
+ */
116
+ width?: "trigger" | "content";
117
+ } & react.RefAttributes<HTMLDivElement>>;
147
118
  /**
148
- * The width of the content. Defaults to the width of the trigger.
149
- * If set to "content", the content will use the intrinsic content width; it will be the width of the longest/widest item.
150
- * @default "trigger"
119
+ * A group of related options within a select menu. Similar to an html `<optgroup>` element.
120
+ * Use in conjunction with Select.Label to ensure good accessibility via automatic labelling.
121
+ *
122
+ * @see https://mantle.ngrok.com/components/select#api-select-group
123
+ *
124
+ * @example
125
+ * <Select.Root>
126
+ * <Select.Trigger>
127
+ * <Select.Value placeholder="Select a fruit" />
128
+ * </Select.Trigger>
129
+ * <Select.Content>
130
+ * <Select.Group>
131
+ * <Select.Label>Fruits</Select.Label>
132
+ * <Select.Item value="apple">Apple</Select.Item>
133
+ * <Select.Item value="banana">Banana</Select.Item>
134
+ * <Select.Item value="cherry">Cherry</Select.Item>
135
+ * </Select.Group>
136
+ * <Select.Group>
137
+ * <Select.Label>Veggies</Select.Label>
138
+ * <Select.Item value="carrot">Carrot</Select.Item>
139
+ * <Select.Item value="cucumber">Cucumber</Select.Item>
140
+ * </Select.Group>
141
+ * </Select.Content>
142
+ * </Select.Root>
151
143
  */
152
- width?: "trigger" | "content";
153
- } & react.RefAttributes<HTMLDivElement>>;
154
- /**
155
- * Used to render the label of a group. It won't be focusable using arrow keys.
156
- *
157
- * @example
158
- * <Select>
159
- * <SelectTrigger>
160
- * <SelectValue placeholder="Select a fruit" />
161
- * </SelectTrigger>
162
- * <SelectContent>
163
- * <SelectGroup>
164
- * <SelectLabel>Fruits</SelectLabel>
165
- * <SelectItem value="apple">Apple</SelectItem>
166
- * <SelectItem value="banana">Banana</SelectItem>
167
- * <SelectItem value="cherry">Cherry</SelectItem>
168
- * </SelectGroup>
169
- * <SelectGroup>
170
- * <SelectLabel>Veggies</SelectLabel>
171
- * <SelectItem value="carrot">Carrot</SelectItem>
172
- * <SelectItem value="cucumber">Cucumber</SelectItem>
173
- * </SelectGroup>
174
- * </SelectContent>
175
- * </Select>
176
- *
177
- * @see https://mantle.ngrok.com/components/select#api-select-label
178
- */
179
- declare const SelectLabel: react.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
180
- /**
181
- * An option within a select menu. Similar to an html `<option>` element.
182
- * Has a required `value` prop that will be passed to the `onChange` handler of the `Select` component when this item is selected.
183
- * Displays the children as the option's text.
184
- *
185
- * @example
186
- * <Select>
187
- * <SelectTrigger>
188
- * <SelectValue placeholder="Select a fruit" />
189
- * </SelectTrigger>
190
- * <SelectContent>
191
- * <SelectItem value="apple">Apple</SelectItem>
192
- * <SelectItem value="banana">Banana</SelectItem>
193
- * <SelectItem value="cherry">Cherry</SelectItem>
194
- * </SelectContent>
195
- * </Select>
196
- *
197
- * @see https://mantle.ngrok.com/components/select#api-select-item
198
- */
199
- declare const SelectItem: react.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
200
- icon?: ReactNode;
201
- } & react.RefAttributes<HTMLDivElement>>;
202
- /**
203
- * Used to visually separate items or groups of items in the select content.
204
- *
205
- * @example
206
- * <Select>
207
- * <SelectTrigger>
208
- * <SelectValue placeholder="Select a fruit" />
209
- * </SelectTrigger>
210
- * <SelectContent>
211
- * <SelectGroup>
212
- * <SelectLabel>Fruits</SelectLabel>
213
- * <SelectItem value="apple">Apple</SelectItem>
214
- * <SelectItem value="banana">Banana</SelectItem>
215
- * <SelectItem value="cherry">Cherry</SelectItem>
216
- * </SelectGroup>
217
- * <SelectSeparator />
218
- * <SelectGroup>
219
- * <SelectLabel>Veggies</SelectLabel>
220
- * <SelectItem value="carrot">Carrot</SelectItem>
221
- * <SelectItem value="cucumber">Cucumber</SelectItem>
222
- * </SelectGroup>
223
- * </SelectContent>
224
- * </Select>
225
- *
226
- * @see https://mantle.ngrok.com/components/select#api-select-separator
227
- */
228
- declare const SelectSeparator: react.ForwardRefExoticComponent<Omit<Omit<react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement> & WithAsChild & {
229
- orientation?: "horizontal" | "vertical";
230
- semantic?: boolean;
231
- }, "ref"> & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
144
+ readonly Group: react.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & react.RefAttributes<HTMLDivElement>>;
145
+ /**
146
+ * An option within a select menu. Similar to an html `<option>` element.
147
+ * Has a required `value` prop that will be passed to the `onChange` handler of the `Select` component when this item is selected.
148
+ * Displays the children as the option's text.
149
+ *
150
+ * @see https://mantle.ngrok.com/components/select#api-select-item
151
+ *
152
+ * @example
153
+ * <Select.Root>
154
+ * <Select.Trigger>
155
+ * <Select.Value placeholder="Select a fruit" />
156
+ * </Select.Trigger>
157
+ * <Select.Content>
158
+ * <Select.Item value="apple">Apple</Select.Item>
159
+ * <Select.Item value="banana">Banana</Select.Item>
160
+ * <Select.Item value="cherry">Cherry</Select.Item>
161
+ * </Select.Content>
162
+ * </Select.Root>
163
+ */
164
+ readonly Item: react.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
165
+ icon?: ReactNode;
166
+ } & react.RefAttributes<HTMLDivElement>>;
167
+ /**
168
+ * Used to render the label of a group. It won't be focusable using arrow keys.
169
+ *
170
+ * @see https://mantle.ngrok.com/components/select#api-select-label
171
+ *
172
+ * @example
173
+ * <Select.Root>
174
+ * <Select.Trigger>
175
+ * <Select.Value placeholder="Select a fruit" />
176
+ * </Select.Trigger>
177
+ * <Select.Content>
178
+ * <Select.Group>
179
+ * <Select.Label>Fruits</Select.Label>
180
+ * <Select.Item value="apple">Apple</Select.Item>
181
+ * <Select.Item value="banana">Banana</Select.Item>
182
+ * <Select.Item value="cherry">Cherry</Select.Item>
183
+ * </Select.Group>
184
+ * <Select.Group>
185
+ * <Select.Label>Veggies</Select.Label>
186
+ * <Select.Item value="carrot">Carrot</Select.Item>
187
+ * <Select.Item value="cucumber">Cucumber</Select.Item>
188
+ * </Select.Group>
189
+ * </Select.Content>
190
+ * </Select.Root>
191
+ */
192
+ readonly Label: react.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
193
+ /**
194
+ * Used to visually separate items or groups of items in the select content.
195
+ *
196
+ * @see https://mantle.ngrok.com/components/select#api-select-separator
197
+ *
198
+ * @example
199
+ * <Select.Root>
200
+ * <Select.Trigger>
201
+ * <Select.Value placeholder="Select a fruit" />
202
+ * </Select.Trigger>
203
+ * <Select.Content>
204
+ * <Select.Group>
205
+ * <Select.Label>Fruits</Select.Label>
206
+ * <Select.Item value="apple">Apple</Select.Item>
207
+ * <Select.Item value="banana">Banana</Select.Item>
208
+ * <Select.Item value="cherry">Cherry</Select.Item>
209
+ * </Select.Group>
210
+ * <Select.Separator />
211
+ * <Select.Group>
212
+ * <Select.Label>Veggies</Select.Label>
213
+ * <Select.Item value="carrot">Carrot</Select.Item>
214
+ * <Select.Item value="cucumber">Cucumber</Select.Item>
215
+ * </Select.Group>
216
+ * </Select.Content>
217
+ * </Select.Root>
218
+ */
219
+ readonly Separator: react.ForwardRefExoticComponent<Omit<Omit<react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement> & WithAsChild & {
220
+ orientation?: "horizontal" | "vertical";
221
+ semantic?: boolean;
222
+ }, "ref"> & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
223
+ /**
224
+ * The button that toggles the select. The Select.Content will position itself adjacent to the trigger.
225
+ *
226
+ * @see https://mantle.ngrok.com/components/select#api-select-trigger
227
+ *
228
+ * @example
229
+ * ```tsx
230
+ * <Select.Root>
231
+ * <Select.Trigger>
232
+ * <Select.Value placeholder="Select a fruit" />
233
+ * </Select.Trigger>
234
+ * <Select.Content>
235
+ * <Select.Item value="apple">Apple</Select.Item>
236
+ * <Select.Item value="banana">Banana</Select.Item>
237
+ * <Select.Item value="cherry">Cherry</Select.Item>
238
+ * </Select.Content>
239
+ * </Select.Root>
240
+ * ```
241
+ */
242
+ readonly Trigger: react.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & react.RefAttributes<HTMLButtonElement>, "ref"> & WithAriaInvalid & WithValidation & react.RefAttributes<HTMLButtonElement>>;
243
+ /**
244
+ * 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.
245
+ *
246
+ * @see https://mantle.ngrok.com/components/select#api-select-value
247
+ *
248
+ * @example
249
+ * <Select.Root>
250
+ * <Select.Trigger>
251
+ * <Select.Value placeholder="Select a fruit" />
252
+ * </Select.Trigger>
253
+ * <Select.Content>
254
+ * <Select.Item value="apple">Apple</Select.Item>
255
+ * <Select.Item value="banana">Banana</Select.Item>
256
+ * <Select.Item value="cherry">Cherry</Select.Item>
257
+ * </Select.Content>
258
+ * </Select.Root>
259
+ */
260
+ readonly Value: react.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & react.RefAttributes<HTMLSpanElement>>;
261
+ };
232
262
 
233
- export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue };
263
+ export { Select };
package/dist/select.js CHANGED
@@ -1,2 +1,2 @@
1
- import{a as e,b as t,c as l,d as S,e as c,f as r,g as o,h as a}from"./chunk-3X4AKTRA.js";import"./chunk-MF2QITTY.js";import"./chunk-J6ZF5J72.js";import"./chunk-I6T6YV2L.js";import"./chunk-NPTDRQT5.js";import"./chunk-AZ56JGNY.js";export{e as Select,c as SelectContent,t as SelectGroup,o as SelectItem,r as SelectLabel,a as SelectSeparator,S as SelectTrigger,l as SelectValue};
1
+ import{a as e}from"./chunk-4GGDPFNZ.js";import"./chunk-MF2QITTY.js";import"./chunk-J6ZF5J72.js";import"./chunk-I6T6YV2L.js";import"./chunk-NPTDRQT5.js";import"./chunk-AZ56JGNY.js";export{e as Select};
2
2
  //# sourceMappingURL=select.js.map