@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.
- package/dist/accordion.d.ts +72 -61
- package/dist/accordion.js +1 -1
- package/dist/accordion.js.map +1 -1
- package/dist/alert-dialog.d.ts +311 -462
- package/dist/alert-dialog.js +1 -1
- package/dist/alert-dialog.js.map +1 -1
- package/dist/alert.d.ts +113 -92
- package/dist/alert.js +1 -1
- package/dist/alert.js.map +1 -1
- package/dist/card.d.ts +112 -112
- package/dist/card.js +1 -1
- package/dist/card.js.map +1 -1
- package/dist/{chunk-IVXZIYX4.js → chunk-2ID2TLYD.js} +1 -1
- package/dist/chunk-2ID2TLYD.js.map +1 -0
- package/dist/{chunk-3X4AKTRA.js → chunk-4GGDPFNZ.js} +2 -2
- package/dist/chunk-4GGDPFNZ.js.map +1 -0
- package/dist/{chunk-ERBZR6SY.js → chunk-EYZYDUS2.js} +1 -1
- package/dist/chunk-EYZYDUS2.js.map +1 -0
- package/dist/chunk-F4N3P7B7.js +2 -0
- package/dist/chunk-F4N3P7B7.js.map +1 -0
- package/dist/{chunk-6RJ2G2DK.js → chunk-HSTG2BTX.js} +3 -3
- package/dist/chunk-HSTG2BTX.js.map +1 -0
- package/dist/chunk-UUXOG7WW.js +2 -0
- package/dist/chunk-UUXOG7WW.js.map +1 -0
- package/dist/code-block.d.ts +188 -178
- package/dist/code-block.js +3 -3
- package/dist/code-block.js.map +1 -1
- package/dist/combobox.d.ts +178 -141
- package/dist/combobox.js +1 -1
- package/dist/combobox.js.map +1 -1
- package/dist/data-table.d.ts +191 -30
- package/dist/data-table.js +1 -1
- package/dist/data-table.js.map +1 -1
- package/dist/dialog.d.ts +374 -264
- package/dist/dialog.js +1 -1
- package/dist/dialog.js.map +1 -1
- package/dist/dropdown-menu.d.ts +304 -102
- package/dist/dropdown-menu.js +1 -1
- package/dist/dropdown-menu.js.map +1 -1
- package/dist/hover-card.d.ts +94 -58
- package/dist/hover-card.js +1 -1
- package/dist/hover-card.js.map +1 -1
- package/dist/icons.js +1 -1
- package/dist/input.d.ts +11 -0
- package/dist/input.js +1 -1
- package/dist/media-object.d.ts +75 -46
- package/dist/media-object.js +1 -1
- package/dist/media-object.js.map +1 -1
- package/dist/pagination.d.ts +124 -62
- package/dist/pagination.js +1 -1
- package/dist/pagination.js.map +1 -1
- package/dist/popover.d.ts +124 -102
- package/dist/popover.js +1 -1
- package/dist/popover.js.map +1 -1
- package/dist/progress.d.ts +112 -35
- package/dist/progress.js +1 -1
- package/dist/progress.js.map +1 -1
- package/dist/radio-group.d.ts +234 -105
- package/dist/radio-group.js +1 -1
- package/dist/radio-group.js.map +1 -1
- package/dist/select.d.ts +242 -212
- package/dist/select.js +1 -1
- package/dist/sheet.d.ts +343 -575
- package/dist/sheet.js +1 -1
- package/dist/sheet.js.map +1 -1
- package/dist/table.d.ts +384 -425
- package/dist/table.js +1 -1
- package/dist/tabs.d.ts +105 -95
- package/dist/tabs.js +1 -1
- package/dist/tabs.js.map +1 -1
- package/dist/theme-provider.d.ts +26 -2
- package/dist/theme-provider.js +1 -1
- package/dist/toast.d.ts +77 -61
- package/dist/toast.js +1 -1
- package/dist/tooltip.d.ts +72 -49
- package/dist/tooltip.js +1 -1
- package/dist/tooltip.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-3X4AKTRA.js.map +0 -1
- package/dist/chunk-6RJ2G2DK.js.map +0 -1
- package/dist/chunk-ERBZR6SY.js.map +0 -1
- package/dist/chunk-IVXZIYX4.js.map +0 -1
- package/dist/chunk-JIRNFNH5.js +0 -2
- package/dist/chunk-JIRNFNH5.js.map +0 -1
- package/dist/chunk-NRMIFYYG.js +0 -2
- 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 {
|
|
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
|
|
11
|
+
* @see https://mantle.ngrok.com/components/select
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```tsx
|
|
15
|
-
* <Select>
|
|
16
|
-
* <
|
|
17
|
-
* <
|
|
18
|
-
* </
|
|
19
|
-
* <
|
|
20
|
-
* <
|
|
21
|
-
* <
|
|
22
|
-
* <
|
|
23
|
-
* <
|
|
24
|
-
* <
|
|
25
|
-
* </
|
|
26
|
-
* <
|
|
27
|
-
* <
|
|
28
|
-
* <
|
|
29
|
-
* <
|
|
30
|
-
* <
|
|
31
|
-
* </
|
|
32
|
-
* </
|
|
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:
|
|
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
|
-
*
|
|
49
|
-
*
|
|
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
|
-
|
|
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
|
-
*
|
|
54
|
-
*
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
*
|
|
149
|
-
*
|
|
150
|
-
*
|
|
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
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
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
|
|
263
|
+
export { Select };
|
package/dist/select.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e
|
|
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
|