@ngrok/mantle 0.25.1 → 0.26.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/calendar.js +1 -1
- package/dist/calendar.js.map +1 -1
- package/dist/chunk-FHW7SSNY.js +2 -0
- package/dist/chunk-FHW7SSNY.js.map +1 -0
- package/dist/chunk-GOXG4BVJ.js +2 -0
- package/dist/chunk-GOXG4BVJ.js.map +1 -0
- package/dist/chunk-GYPSB3OK.js +2 -0
- package/dist/chunk-GYPSB3OK.js.map +1 -0
- package/dist/chunk-QMAGKYIX.js +2 -0
- package/dist/chunk-QMAGKYIX.js.map +1 -0
- package/dist/chunk-WGF5NYWL.js +2 -0
- package/dist/chunk-WGF5NYWL.js.map +1 -0
- package/dist/code-block.js +3 -3
- package/dist/code-block.js.map +1 -1
- package/dist/data-table.d.ts +41 -0
- package/dist/data-table.js +1 -1
- package/dist/data-table.js.map +1 -1
- package/dist/direction-A0wepfUT.d.ts +143 -0
- package/dist/icons.d.ts +37 -0
- package/dist/icons.js +2 -0
- package/dist/icons.js.map +1 -0
- package/dist/pagination.js +1 -1
- package/dist/popover.d.ts +11 -1
- package/dist/popover.js +1 -1
- package/dist/popover.js.map +1 -1
- package/dist/select.d.ts +22 -6
- package/dist/select.js +1 -1
- package/dist/sorting.d.ts +18 -0
- package/dist/sorting.js +2 -0
- package/dist/sorting.js.map +1 -0
- package/dist/table.d.ts +375 -10
- package/dist/table.js +1 -1
- package/dist/table.js.map +1 -1
- package/package.json +25 -15
- package/dist/chunk-7FIV4E5C.js +0 -2
- package/dist/chunk-7FIV4E5C.js.map +0 -1
package/dist/table.d.ts
CHANGED
|
@@ -1,13 +1,378 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { HTMLAttributes, TdHTMLAttributes, ThHTMLAttributes } from 'react';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
/**
|
|
4
|
+
* The `<Table>` is a structured way to display data in rows and columns. The API
|
|
5
|
+
* matches the HTML `<table>` element 1:1.
|
|
6
|
+
*
|
|
7
|
+
* Permitted content in this order:
|
|
8
|
+
* 1. optional: `<TableCaption>`
|
|
9
|
+
* 2. 0 or more: `<colgroup>` elements
|
|
10
|
+
* 3. optional: `<TableHead>`
|
|
11
|
+
* 4. either one of the following:
|
|
12
|
+
* - 0 or more: `<TableBody>`
|
|
13
|
+
* - 0 or more: `<TableRow>`
|
|
14
|
+
* 5. optional: `<TableFoot>`
|
|
15
|
+
*
|
|
16
|
+
* @description
|
|
17
|
+
* Establishes a table formatting context. Elements inside the `<Table>`
|
|
18
|
+
* generate rectangular boxes. Each box occupies a number of table cells
|
|
19
|
+
* according to the following rules:
|
|
20
|
+
* 1. The row boxes fill the table in the source code order from top to bottom.
|
|
21
|
+
* Each row box occupies one row of cells.
|
|
22
|
+
* 2. A row group box occupies one or more row boxes.
|
|
23
|
+
* 3. Column boxes are placed next to each other in source code order.
|
|
24
|
+
* Depending on the value of the dir attribute, the columns are laid in
|
|
25
|
+
* left-to-right or right-to-left direction. A column box occupies one or
|
|
26
|
+
* more columns of table cells.
|
|
27
|
+
* 4. A column group box occupies one or more column boxes.
|
|
28
|
+
* 5. A cell box may span over multiple rows and columns. User agents trim
|
|
29
|
+
* cells to fit in the available number of rows and columns.
|
|
30
|
+
* Table cells do have padding. Boxes that make up a table do not have margins.
|
|
31
|
+
* For more in depth information, see the [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table).
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```tsx
|
|
35
|
+
* <Table>
|
|
36
|
+
* <TableCaption>A list of your recent invoices.</TableCaption>
|
|
37
|
+
* <TableHead>
|
|
38
|
+
* <TableRow>
|
|
39
|
+
* <TableHeader className="w-[100px]">Invoice</TableHeader>
|
|
40
|
+
* <TableHeader>Status</TableHeader>
|
|
41
|
+
* <TableHeader>Method</TableHeader>
|
|
42
|
+
* <TableHeader className="text-right">Amount</TableHeader>
|
|
43
|
+
* </TableRow>
|
|
44
|
+
* </TableHead>
|
|
45
|
+
* <TableBody>
|
|
46
|
+
* {invoices.map((invoice) => (
|
|
47
|
+
* <TableRow key={invoice.invoice}>
|
|
48
|
+
* <TableCell className="font-medium">{invoice.invoice}</TableCell>
|
|
49
|
+
* <TableCell>{invoice.paymentStatus}</TableCell>
|
|
50
|
+
* <TableCell>{invoice.paymentMethod}</TableCell>
|
|
51
|
+
* <TableCell className="text-right">{invoice.totalAmount}</TableCell>
|
|
52
|
+
* </TableRow>
|
|
53
|
+
* ))}
|
|
54
|
+
* </TableBody>
|
|
55
|
+
* <TableFoot>
|
|
56
|
+
* <TableRow>
|
|
57
|
+
* <TableCell colSpan={3}>Total</TableCell>
|
|
58
|
+
* <TableCell className="text-right">$2,500.00</TableCell>
|
|
59
|
+
* </TableRow>
|
|
60
|
+
* </TableFoot>
|
|
61
|
+
* </Table>
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* @see https://mantle.ngrok.com/components/table#api-table
|
|
65
|
+
*/
|
|
66
|
+
declare const Table: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & react.RefAttributes<HTMLTableElement>>;
|
|
67
|
+
/**
|
|
68
|
+
* The `<TableHead>` is a container for the table's column headers.
|
|
69
|
+
* Encapsulates a set of `<TableRow>`s, indicating that they comprise the head
|
|
70
|
+
* of a table with information about the table's columns. This is usually in the
|
|
71
|
+
* form of column headers (`<TableHeader>`).
|
|
72
|
+
*
|
|
73
|
+
* Must be used as a child of a `<Table>`. It should only come after any
|
|
74
|
+
* `<TableCaption>` or `<colgroup>` and before any `<TableBody>` or `<TableFoot>`.
|
|
75
|
+
*
|
|
76
|
+
* Permitted Content:
|
|
77
|
+
* 1. 0 or more: `<TableRow>`
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```tsx
|
|
81
|
+
* <Table>
|
|
82
|
+
* <TableCaption>A list of your recent invoices.</TableCaption>
|
|
83
|
+
* <TableHead>
|
|
84
|
+
* <TableRow>
|
|
85
|
+
* <TableHeader className="w-[100px]">Invoice</TableHeader>
|
|
86
|
+
* <TableHeader>Status</TableHeader>
|
|
87
|
+
* <TableHeader>Method</TableHeader>
|
|
88
|
+
* <TableHeader className="text-right">Amount</TableHeader>
|
|
89
|
+
* </TableRow>
|
|
90
|
+
* </TableHead>
|
|
91
|
+
* <TableBody>
|
|
92
|
+
* {invoices.map((invoice) => (
|
|
93
|
+
* <TableRow key={invoice.invoice}>
|
|
94
|
+
* <TableCell className="font-medium">{invoice.invoice}</TableCell>
|
|
95
|
+
* <TableCell>{invoice.paymentStatus}</TableCell>
|
|
96
|
+
* <TableCell>{invoice.paymentMethod}</TableCell>
|
|
97
|
+
* <TableCell className="text-right">{invoice.totalAmount}</TableCell>
|
|
98
|
+
* </TableRow>
|
|
99
|
+
* ))}
|
|
100
|
+
* </TableBody>
|
|
101
|
+
* <TableFoot>
|
|
102
|
+
* <TableRow>
|
|
103
|
+
* <TableCell colSpan={3}>Total</TableCell>
|
|
104
|
+
* <TableCell className="text-right">$2,500.00</TableCell>
|
|
105
|
+
* </TableRow>
|
|
106
|
+
* </TableFoot>
|
|
107
|
+
* </Table>
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* @see https://mantle.ngrok.com/components/table#api-table-header
|
|
111
|
+
*/
|
|
112
|
+
declare const TableHead: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & react.RefAttributes<HTMLTableSectionElement>>;
|
|
113
|
+
/**
|
|
114
|
+
* The `<TableBody>` encapsulates a set of `<TableRow>`s, indicating that they
|
|
115
|
+
* comprise the body of a table's (main) data.
|
|
116
|
+
*
|
|
117
|
+
* Must be used as a child of a `<Table>` and only come after any
|
|
118
|
+
* `<TableCaption>`, `<colgroup>`, or `<TableHead>`.
|
|
119
|
+
*
|
|
120
|
+
* Permitted Content:
|
|
121
|
+
* 1. 0 or more: `<TableRow>`
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* ```tsx
|
|
125
|
+
* <Table>
|
|
126
|
+
* <TableCaption>A list of your recent invoices.</TableCaption>
|
|
127
|
+
* <TableHead>
|
|
128
|
+
* <TableRow>
|
|
129
|
+
* <TableHeader className="w-[100px]">Invoice</TableHeader>
|
|
130
|
+
* <TableHeader>Status</TableHeader>
|
|
131
|
+
* <TableHeader>Method</TableHeader>
|
|
132
|
+
* <TableHeader className="text-right">Amount</TableHeader>
|
|
133
|
+
* </TableRow>
|
|
134
|
+
* </TableHead>
|
|
135
|
+
* <TableBody>
|
|
136
|
+
* {invoices.map((invoice) => (
|
|
137
|
+
* <TableRow key={invoice.invoice}>
|
|
138
|
+
* <TableCell className="font-medium">{invoice.invoice}</TableCell>
|
|
139
|
+
* <TableCell>{invoice.paymentStatus}</TableCell>
|
|
140
|
+
* <TableCell>{invoice.paymentMethod}</TableCell>
|
|
141
|
+
* <TableCell className="text-right">{invoice.totalAmount}</TableCell>
|
|
142
|
+
* </TableRow>
|
|
143
|
+
* ))}
|
|
144
|
+
* </TableBody>
|
|
145
|
+
* <TableFoot>
|
|
146
|
+
* <TableRow>
|
|
147
|
+
* <TableCell colSpan={3}>Total</TableCell>
|
|
148
|
+
* <TableCell className="text-right">$2,500.00</TableCell>
|
|
149
|
+
* </TableRow>
|
|
150
|
+
* </TableFoot>
|
|
151
|
+
* </Table>
|
|
152
|
+
* ```
|
|
153
|
+
*
|
|
154
|
+
* @see https://mantle.ngrok.com/components/table#api-table-body
|
|
155
|
+
*/
|
|
156
|
+
declare const TableBody: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & react.RefAttributes<HTMLTableSectionElement>>;
|
|
157
|
+
/**
|
|
158
|
+
* The `<TableFoot>` encapsulates a set of `<TableRow>`s, indicating that they
|
|
159
|
+
* comprise the foot of a table with information about the table's columns. This
|
|
160
|
+
* is usually a summary of the columns, e.g., a sum of the given numbers in a
|
|
161
|
+
* column.
|
|
162
|
+
*
|
|
163
|
+
* Must be used as a child of a `<Table>` and only come after any
|
|
164
|
+
* `<TableCaption>`, `<colgroup>`, `<TableHead>`, and `<TableBody>`.
|
|
165
|
+
*
|
|
166
|
+
* Permitted Content:
|
|
167
|
+
* 1. 0 or more: `<TableRow>` elements
|
|
168
|
+
*
|
|
169
|
+
* @example
|
|
170
|
+
* ```tsx
|
|
171
|
+
* <Table>
|
|
172
|
+
* <TableCaption>A list of your recent invoices.</TableCaption>
|
|
173
|
+
* <TableHead>
|
|
174
|
+
* <TableRow>
|
|
175
|
+
* <TableHeader className="w-[100px]">Invoice</TableHeader>
|
|
176
|
+
* <TableHeader>Status</TableHeader>
|
|
177
|
+
* <TableHeader>Method</TableHeader>
|
|
178
|
+
* <TableHeader className="text-right">Amount</TableHeader>
|
|
179
|
+
* </TableRow>
|
|
180
|
+
* </TableHead>
|
|
181
|
+
* <TableBody>
|
|
182
|
+
* {invoices.map((invoice) => (
|
|
183
|
+
* <TableRow key={invoice.invoice}>
|
|
184
|
+
* <TableCell className="font-medium">{invoice.invoice}</TableCell>
|
|
185
|
+
* <TableCell>{invoice.paymentStatus}</TableCell>
|
|
186
|
+
* <TableCell>{invoice.paymentMethod}</TableCell>
|
|
187
|
+
* <TableCell className="text-right">{invoice.totalAmount}</TableCell>
|
|
188
|
+
* </TableRow>
|
|
189
|
+
* ))}
|
|
190
|
+
* </TableBody>
|
|
191
|
+
* <TableFoot>
|
|
192
|
+
* <TableRow>
|
|
193
|
+
* <TableCell colSpan={3}>Total</TableCell>
|
|
194
|
+
* <TableCell className="text-right">$2,500.00</TableCell>
|
|
195
|
+
* </TableRow>
|
|
196
|
+
* </TableFoot>
|
|
197
|
+
* </Table>
|
|
198
|
+
* ```
|
|
199
|
+
*
|
|
200
|
+
* @see https://mantle.ngrok.com/components/table#api-table-foot
|
|
201
|
+
*/
|
|
202
|
+
declare const TableFoot: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & react.RefAttributes<HTMLTableSectionElement>>;
|
|
203
|
+
/**
|
|
204
|
+
* The `<TableRow>` defines a row of cells in a table. The row's cells can then
|
|
205
|
+
* be established using a mix of `<TableCell>` and `<TableHeader>` components.
|
|
206
|
+
*
|
|
207
|
+
* Must be used as a child of a `<TableHead>`, `<TableBody>`, or `<TableFoot>`.
|
|
208
|
+
*
|
|
209
|
+
* Permitted Content:
|
|
210
|
+
* 1. 0 or more: `<TableHeader>` or `<TableCell>`
|
|
211
|
+
*
|
|
212
|
+
* @example
|
|
213
|
+
* ```tsx
|
|
214
|
+
* <Table>
|
|
215
|
+
* <TableCaption>A list of your recent invoices.</TableCaption>
|
|
216
|
+
* <TableHead>
|
|
217
|
+
* <TableRow>
|
|
218
|
+
* <TableHeader className="w-[100px]">Invoice</TableHeader>
|
|
219
|
+
* <TableHeader>Status</TableHeader>
|
|
220
|
+
* <TableHeader>Method</TableHeader>
|
|
221
|
+
* <TableHeader className="text-right">Amount</TableHeader>
|
|
222
|
+
* </TableRow>
|
|
223
|
+
* </TableHead>
|
|
224
|
+
* <TableBody>
|
|
225
|
+
* {invoices.map((invoice) => (
|
|
226
|
+
* <TableRow key={invoice.invoice}>
|
|
227
|
+
* <TableCell className="font-medium">{invoice.invoice}</TableCell>
|
|
228
|
+
* <TableCell>{invoice.paymentStatus}</TableCell>
|
|
229
|
+
* <TableCell>{invoice.paymentMethod}</TableCell>
|
|
230
|
+
* <TableCell className="text-right">{invoice.totalAmount}</TableCell>
|
|
231
|
+
* </TableRow>
|
|
232
|
+
* ))}
|
|
233
|
+
* </TableBody>
|
|
234
|
+
* <TableFoot>
|
|
235
|
+
* <TableRow>
|
|
236
|
+
* <TableCell colSpan={3}>Total</TableCell>
|
|
237
|
+
* <TableCell className="text-right">$2,500.00</TableCell>
|
|
238
|
+
* </TableRow>
|
|
239
|
+
* </TableFoot>
|
|
240
|
+
* </Table>
|
|
241
|
+
* ```
|
|
242
|
+
*
|
|
243
|
+
* @see https://mantle.ngrok.com/components/table#api-table-row
|
|
244
|
+
*/
|
|
245
|
+
declare const TableRow: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & react.RefAttributes<HTMLTableRowElement>>;
|
|
246
|
+
/**
|
|
247
|
+
* The `<TableHeader>` defines a cell as the header of a group of table cells
|
|
248
|
+
* and may be used as a child of a `<TableRow>`. The exact nature of this group
|
|
249
|
+
* is defined by the scope and headers attributes.
|
|
250
|
+
*
|
|
251
|
+
* Must be used as a child of a `<TableRow>`.
|
|
252
|
+
*
|
|
253
|
+
* Permitted Content:
|
|
254
|
+
* 1. Flow content, but with no header, footer, sectioning content, or heading
|
|
255
|
+
* content descendants.
|
|
256
|
+
*
|
|
257
|
+
* @example
|
|
258
|
+
* ```tsx
|
|
259
|
+
* <Table>
|
|
260
|
+
* <TableCaption>A list of your recent invoices.</TableCaption>
|
|
261
|
+
* <TableHead>
|
|
262
|
+
* <TableRow>
|
|
263
|
+
* <TableHeader className="w-[100px]">Invoice</TableHeader>
|
|
264
|
+
* <TableHeader>Status</TableHeader>
|
|
265
|
+
* <TableHeader>Method</TableHeader>
|
|
266
|
+
* <TableHeader className="text-right">Amount</TableHeader>
|
|
267
|
+
* </TableRow>
|
|
268
|
+
* </TableHead>
|
|
269
|
+
* <TableBody>
|
|
270
|
+
* {invoices.map((invoice) => (
|
|
271
|
+
* <TableRow key={invoice.invoice}>
|
|
272
|
+
* <TableCell className="font-medium">{invoice.invoice}</TableCell>
|
|
273
|
+
* <TableCell>{invoice.paymentStatus}</TableCell>
|
|
274
|
+
* <TableCell>{invoice.paymentMethod}</TableCell>
|
|
275
|
+
* <TableCell className="text-right">{invoice.totalAmount}</TableCell>
|
|
276
|
+
* </TableRow>
|
|
277
|
+
* ))}
|
|
278
|
+
* </TableBody>
|
|
279
|
+
* <TableFoot>
|
|
280
|
+
* <TableRow>
|
|
281
|
+
* <TableCell colSpan={3}>Total</TableCell>
|
|
282
|
+
* <TableCell className="text-right">$2,500.00</TableCell>
|
|
283
|
+
* </TableRow>
|
|
284
|
+
* </TableFoot>
|
|
285
|
+
* </Table>
|
|
286
|
+
* ```
|
|
287
|
+
*
|
|
288
|
+
* @see https://mantle.ngrok.com/components/table#api-table-header
|
|
289
|
+
*/
|
|
290
|
+
declare const TableHeader: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & react.RefAttributes<HTMLTableHeaderCellElement>>;
|
|
291
|
+
/**
|
|
292
|
+
* The `<TableCell>` defines a cell of a table that contains data and may be
|
|
293
|
+
* used as a child of a `<TableRow>`.
|
|
294
|
+
*
|
|
295
|
+
* Must be used as a child of a `<TableRow>`.
|
|
296
|
+
*
|
|
297
|
+
* Permitted Content:
|
|
298
|
+
* 1. Flow content
|
|
299
|
+
*
|
|
300
|
+
* @example
|
|
301
|
+
* ```tsx
|
|
302
|
+
* <Table>
|
|
303
|
+
* <TableCaption>A list of your recent invoices.</TableCaption>
|
|
304
|
+
* <TableHead>
|
|
305
|
+
* <TableRow>
|
|
306
|
+
* <TableHeader className="w-[100px]">Invoice</TableHeader>
|
|
307
|
+
* <TableHeader>Status</TableHeader>
|
|
308
|
+
* <TableHeader>Method</TableHeader>
|
|
309
|
+
* <TableHeader className="text-right">Amount</TableHeader>
|
|
310
|
+
* </TableRow>
|
|
311
|
+
* </TableHead>
|
|
312
|
+
* <TableBody>
|
|
313
|
+
* {invoices.map((invoice) => (
|
|
314
|
+
* <TableRow key={invoice.invoice}>
|
|
315
|
+
* <TableCell className="font-medium">{invoice.invoice}</TableCell>
|
|
316
|
+
* <TableCell>{invoice.paymentStatus}</TableCell>
|
|
317
|
+
* <TableCell>{invoice.paymentMethod}</TableCell>
|
|
318
|
+
* <TableCell className="text-right">{invoice.totalAmount}</TableCell>
|
|
319
|
+
* </TableRow>
|
|
320
|
+
* ))}
|
|
321
|
+
* </TableBody>
|
|
322
|
+
* <TableFoot>
|
|
323
|
+
* <TableRow>
|
|
324
|
+
* <TableCell colSpan={3}>Total</TableCell>
|
|
325
|
+
* <TableCell className="text-right">$2,500.00</TableCell>
|
|
326
|
+
* </TableRow>
|
|
327
|
+
* </TableFoot>
|
|
328
|
+
* </Table>
|
|
329
|
+
* ```
|
|
330
|
+
*
|
|
331
|
+
* @see https://mantle.ngrok.com/components/table#api-table-cell
|
|
332
|
+
*/
|
|
333
|
+
declare const TableCell: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref"> & react.RefAttributes<HTMLTableDataCellElement>>;
|
|
334
|
+
/**
|
|
335
|
+
* The optional `<TableCaption>` specifies the caption (or title) of a table,
|
|
336
|
+
* providing the table an accessible description.
|
|
337
|
+
*
|
|
338
|
+
* If used, must be the first child of a `<Table>`.
|
|
339
|
+
*
|
|
340
|
+
* Permitted Content:
|
|
341
|
+
* 1. Flow content
|
|
342
|
+
*
|
|
343
|
+
* @example
|
|
344
|
+
* ```tsx
|
|
345
|
+
* <Table>
|
|
346
|
+
* <TableCaption>A list of your recent invoices.</TableCaption>
|
|
347
|
+
* <TableHead>
|
|
348
|
+
* <TableRow>
|
|
349
|
+
* <TableHeader className="w-[100px]">Invoice</TableHeader>
|
|
350
|
+
* <TableHeader>Status</TableHeader>
|
|
351
|
+
* <TableHeader>Method</TableHeader>
|
|
352
|
+
* <TableHeader className="text-right">Amount</TableHeader>
|
|
353
|
+
* </TableRow>
|
|
354
|
+
* </TableHead>
|
|
355
|
+
* <TableBody>
|
|
356
|
+
* {invoices.map((invoice) => (
|
|
357
|
+
* <TableRow key={invoice.invoice}>
|
|
358
|
+
* <TableCell className="font-medium">{invoice.invoice}</TableCell>
|
|
359
|
+
* <TableCell>{invoice.paymentStatus}</TableCell>
|
|
360
|
+
* <TableCell>{invoice.paymentMethod}</TableCell>
|
|
361
|
+
* <TableCell className="text-right">{invoice.totalAmount}</TableCell>
|
|
362
|
+
* </TableRow>
|
|
363
|
+
* ))}
|
|
364
|
+
* </TableBody>
|
|
365
|
+
* <TableFoot>
|
|
366
|
+
* <TableRow>
|
|
367
|
+
* <TableCell colSpan={3}>Total</TableCell>
|
|
368
|
+
* <TableCell className="text-right">$2,500.00</TableCell>
|
|
369
|
+
* </TableRow>
|
|
370
|
+
* </TableFoot>
|
|
371
|
+
* </Table>
|
|
372
|
+
* ```
|
|
373
|
+
*
|
|
374
|
+
* @see https://mantle.ngrok.com/components/table#api-table-caption
|
|
375
|
+
*/
|
|
376
|
+
declare const TableCaption: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & react.RefAttributes<HTMLElement>>;
|
|
12
377
|
|
|
13
|
-
export { Table, TableBody, TableCaption, TableCell,
|
|
378
|
+
export { Table, TableBody, TableCaption, TableCell, TableFoot, TableHead, TableHeader, TableRow };
|
package/dist/table.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as e,b as a,c as l,d as b,e as T,f as o,g as d,h as r}from"./chunk-QMAGKYIX.js";import"./chunk-AZ56JGNY.js";export{e as Table,l as TableBody,r as TableCaption,d as TableCell,b as TableFoot,a as TableHead,o as TableHeader,T as TableRow};
|
|
2
2
|
//# sourceMappingURL=table.js.map
|
package/dist/table.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "mantle is ngrok's UI library and design system.",
|
|
4
4
|
"author": "ngrok",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.26.0",
|
|
7
7
|
"homepage": "https://mantle.ngrok.com",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@ariakit/react": "0.4.17",
|
|
29
|
-
"@headlessui/react": "2.2.
|
|
30
|
-
"@radix-ui/react-accordion": "1.2.
|
|
31
|
-
"@radix-ui/react-dialog": "1.1.
|
|
32
|
-
"@radix-ui/react-dropdown-menu": "2.1.
|
|
33
|
-
"@radix-ui/react-hover-card": "1.1.
|
|
34
|
-
"@radix-ui/react-popover": "1.1.
|
|
35
|
-
"@radix-ui/react-select": "2.
|
|
29
|
+
"@headlessui/react": "2.2.2",
|
|
30
|
+
"@radix-ui/react-accordion": "1.2.7",
|
|
31
|
+
"@radix-ui/react-dialog": "1.1.10",
|
|
32
|
+
"@radix-ui/react-dropdown-menu": "2.1.11",
|
|
33
|
+
"@radix-ui/react-hover-card": "1.1.10",
|
|
34
|
+
"@radix-ui/react-popover": "1.1.10",
|
|
35
|
+
"@radix-ui/react-select": "2.2.2",
|
|
36
36
|
"@radix-ui/react-slot": "1.2.0",
|
|
37
|
-
"@radix-ui/react-switch": "1.
|
|
38
|
-
"@radix-ui/react-tabs": "1.1.
|
|
39
|
-
"@radix-ui/react-tooltip": "1.2.
|
|
37
|
+
"@radix-ui/react-switch": "1.2.2",
|
|
38
|
+
"@radix-ui/react-tabs": "1.1.8",
|
|
39
|
+
"@radix-ui/react-tooltip": "1.2.3",
|
|
40
40
|
"@tanstack/react-table": "8.21.3",
|
|
41
41
|
"@uidotdev/usehooks": "2.4.1",
|
|
42
42
|
"class-variance-authority": "0.7.1",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@types/prismjs": "1.26.5",
|
|
59
59
|
"@types/react": "18.3.20",
|
|
60
60
|
"@types/react-dom": "18.3.6",
|
|
61
|
-
"@vitejs/plugin-react": "4.4.
|
|
61
|
+
"@vitejs/plugin-react": "4.4.1",
|
|
62
62
|
"autoprefixer": "10.4.21",
|
|
63
63
|
"browserslist": "4.24.4",
|
|
64
64
|
"date-fns": "4.1.0",
|
|
@@ -66,11 +66,11 @@
|
|
|
66
66
|
"postcss": "8.5.3",
|
|
67
67
|
"react": "18.3.1",
|
|
68
68
|
"react-dom": "18.3.1",
|
|
69
|
-
"react-router": "7.5.
|
|
69
|
+
"react-router": "7.5.1",
|
|
70
70
|
"tailwindcss": "3.4.17",
|
|
71
71
|
"tsup": "8.4.0",
|
|
72
72
|
"typescript": "5.8.3",
|
|
73
|
-
"zod": "3.24.
|
|
73
|
+
"zod": "3.24.3",
|
|
74
74
|
"@cfg/tsconfig": "1.0.0"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"react": "^18.3.1",
|
|
81
81
|
"react-dom": "^18.3.1",
|
|
82
82
|
"tailwindcss": "^3.4.17",
|
|
83
|
-
"zod": "^3.24.
|
|
83
|
+
"zod": "^3.24.3"
|
|
84
84
|
},
|
|
85
85
|
"exports": {
|
|
86
86
|
"./mantle.css": "./assets/mantle.css",
|
|
@@ -197,6 +197,11 @@
|
|
|
197
197
|
"import": "./dist/icon.js",
|
|
198
198
|
"types": "./dist/icon.d.ts"
|
|
199
199
|
},
|
|
200
|
+
"./icons": {
|
|
201
|
+
"@ngrok/mantle/source": "./src/components/icons/index.ts",
|
|
202
|
+
"import": "./dist/icons.js",
|
|
203
|
+
"types": "./dist/icons.d.ts"
|
|
204
|
+
},
|
|
200
205
|
"./inline-code": {
|
|
201
206
|
"@ngrok/mantle/source": "./src/components/inline-code/index.ts",
|
|
202
207
|
"import": "./dist/inline-code.js",
|
|
@@ -301,6 +306,11 @@
|
|
|
301
306
|
"@ngrok/mantle/source": "./src/types/index.ts",
|
|
302
307
|
"import": "./dist/types.js",
|
|
303
308
|
"types": "./dist/types.d.ts"
|
|
309
|
+
},
|
|
310
|
+
"./utils/sorting": {
|
|
311
|
+
"@ngrok/mantle/source": "./src/utils/sorting/index.ts",
|
|
312
|
+
"import": "./dist/sorting.js",
|
|
313
|
+
"types": "./dist/sorting.d.ts"
|
|
304
314
|
}
|
|
305
315
|
},
|
|
306
316
|
"scripts": {
|
package/dist/chunk-7FIV4E5C.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as S}from"./chunk-MF2QITTY.js";import{b as g}from"./chunk-UXH22BMO.js";import{a as r}from"./chunk-AZ56JGNY.js";import{CaretDown as P}from"@phosphor-icons/react/CaretDown";import{CaretUp as R}from"@phosphor-icons/react/CaretUp";import{Check as I}from"@phosphor-icons/react/Check";import*as e from"@radix-ui/react-select";import{createContext as N,forwardRef as n,useContext as T}from"react";import{jsx as i,jsxs as u}from"react/jsx-runtime";var h=N({}),B=n(({"aria-invalid":o,children:a,id:t,validation:l,onBlur:s,onChange:d,...p},c)=>i(e.Root,{...p,onValueChange:d,children:i(h.Provider,{value:{"aria-invalid":o,id:t,validation:l,onBlur:s,ref:c},children:a})}));B.displayName="Select";var F=e.Group,G=e.Value,W=n(({"aria-invalid":o,className:a,children:t,id:l,validation:s,...d},p)=>{let c=T(h),m=c["aria-invalid"]??o,x=m!=null&&m!=="false",f=c.validation??s,v=x?"error":typeof f=="function"?f():f,C=m??v==="error",w=c.id??l;return u(e.Trigger,{"aria-invalid":C,className:r("h-9 text-sm","border-form bg-form text-strong placeholder:text-placeholder hover:bg-form-hover hover:text-strong flex w-full items-center justify-between gap-1.5 rounded-md border px-3 py-2 disabled:pointer-events-none disabled:opacity-50 [&>span]:line-clamp-1 [&>span]:text-left","hover:border-neutral-400","focus:outline-none focus:ring-4 aria-expanded:ring-4","focus:border-accent-600 focus:ring-focus-accent aria-expanded:border-accent-600 aria-expanded:ring-focus-accent","data-validation-success:border-success-600 data-validation-success:focus:border-success-600 data-validation-success:focus:ring-focus-success data-validation-success:aria-expanded:border-success-600 data-validation-success:aria-expanded:ring-focus-success","data-validation-warning:border-warning-600 data-validation-warning:focus:border-warning-600 data-validation-warning:focus:ring-focus-warning data-validation-warning:aria-expanded:border-warning-600 data-validation-warning:aria-expanded:ring-focus-warning","data-validation-error:border-danger-600 data-validation-error:focus:border-danger-600 data-validation-error:focus:ring-focus-danger data-validation-error:aria-expanded:border-danger-600 data-validation-error:aria-expanded:ring-focus-danger",a),"data-validation":v||void 0,id:w,ref:S(p,c.ref),...d,children:[t,i(e.Icon,{asChild:!0,children:i(P,{className:"size-4 shrink-0",weight:"bold"})})]})});W.displayName="SelectTrigger";var y=n(({className:o,...a},t)=>i(e.ScrollUpButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",o),...a,children:i(R,{className:"size-4 shrink-0",weight:"bold"})}));y.displayName="SelectScrollUpButton";var b=n(({className:o,...a},t)=>i(e.ScrollDownButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",o),...a,children:i(P,{className:"size-4 shrink-0",weight:"bold"})}));b.displayName="SelectScrollDownButton";var L=n(({className:o,children:a,position:t="popper",width:l="trigger",...s},d)=>i(e.Portal,{children:u(e.Content,{ref:d,className:r("border-popover 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 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md","bg-popover",t==="popper"&&"data-side-bottom:translate-y-2 data-side-left:-translate-x-2 data-side-right:translate-x-2 data-side-top:-translate-y-2 max-h-[var(--radix-select-content-available-height)]",l==="trigger"&&"w-[var(--radix-select-trigger-width)]",o),position:t,...s,children:[i(y,{}),i(e.Viewport,{className:r("p-1",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full"),children:a}),i(b,{})]})}));L.displayName="SelectContent";var k=n(({className:o,...a},t)=>i(e.Label,{ref:t,className:r("px-2 py-1.5 text-sm font-semibold",o),...a}));k.displayName="SelectLabel";var V=n(({className:o,children:a,...t},l)=>u(e.Item,{ref:l,className:r("relative flex w-full cursor-pointer select-none items-center rounded py-1.5 pl-2 pr-8 text-sm outline-none","focus:bg-popover-hover","data-disabled:pointer-events-none data-disabled:opacity-50","data-state-checked:bg-filled-accent data-state-checked:text-on-filled","focus:data-state-checked:bg-filled-accent",o),...t,children:[i(e.ItemText,{children:a}),i(e.ItemIndicator,{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:i(I,{className:"size-4 shrink-0",weight:"bold"})})]}));V.displayName="SelectItem";var E=n(({className:o,...a},t)=>i(g,{ref:t,className:r("-mx-1 my-1 h-px w-auto",o),...a}));E.displayName="SelectSeparator";export{B as a,F as b,G as c,W as d,L as e,k as f,V as g,E as h};
|
|
2
|
-
//# sourceMappingURL=chunk-7FIV4E5C.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/select/select.tsx"],"sourcesContent":["import { CaretDown } from \"@phosphor-icons/react/CaretDown\";\nimport { CaretUp } from \"@phosphor-icons/react/CaretUp\";\nimport { Check } from \"@phosphor-icons/react/Check\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport type {\n\tComponentProps,\n\tComponentPropsWithoutRef,\n\tComponentRef,\n\tFocusEvent,\n\tRef,\n\tSelectHTMLAttributes,\n} from \"react\";\nimport { createContext, forwardRef, useContext } from \"react\";\nimport { composeRefs } from \"../../utils/compose-refs/compose-refs.js\";\nimport { cx } from \"../../utils/cx/cx.js\";\nimport type { WithValidation } from \"../input/types.js\";\nimport { Separator } from \"../separator/separator.js\";\n\ntype WithAriaInvalid = Pick<\n\tSelectHTMLAttributes<HTMLSelectElement>,\n\t\"aria-invalid\"\n>;\ntype SelectContextType = WithValidation &\n\tWithAriaInvalid & {\n\t\t/**\n\t\t * Ref for the trigger button.\n\t\t */\n\t\tref?: Ref<HTMLButtonElement>;\n\t\t/**\n\t\t * Event handler called when Select blurs.\n\t\t * @note this is a no-op for now until we can guarantee that it works identically to a native select onBlur\n\t\t */\n\t\tonBlur?: (event: FocusEvent<HTMLButtonElement>) => void;\n\t} & Pick<ComponentProps<\"button\">, \"id\">;\n\nconst SelectContext = createContext<SelectContextType>({});\n\ntype SelectProps = Omit<\n\tComponentPropsWithoutRef<typeof SelectPrimitive.Root>,\n\t\"onValueChange\"\n> &\n\tWithValidation &\n\tWithAriaInvalid & {\n\t\t/**\n\t\t * Event handler called when the value changes.\n\t\t */\n\t\tonChange?: (value: string) => void;\n\t\t/**\n\t\t * Event handler called when Select blurs.\n\t\t * @note this is a no-op for now until we can guarantee that it works identically to a native select onBlur\n\t\t */\n\t\tonBlur?: (event: FocusEvent<HTMLButtonElement>) => void;\n\t} & Pick<ComponentProps<\"button\">, \"id\">;\n\n/**\n * Displays a list of options for the user to pick from—triggered by a button.\n *\n * @example\n * <Select>\n * <SelectTrigger>\n * <SelectValue placeholder=\"Select a fruit\" />\n * </SelectTrigger>\n * <SelectContent>\n * <SelectGroup>\n * <SelectLabel>Fruits</SelectLabel>\n * <SelectItem value=\"apple\">Apple</SelectItem>\n * <SelectItem value=\"banana\">Banana</SelectItem>\n * <SelectItem value=\"cherry\">Cherry</SelectItem>\n * </SelectGroup>\n * <SelectSeparator />\n * <SelectGroup>\n * <SelectLabel>Veggies</SelectLabel>\n * <SelectItem value=\"carrot\">Carrot</SelectItem>\n * <SelectItem value=\"cucumber\">Cucumber</SelectItem>\n * </SelectGroup>\n * </SelectContent>\n * </Select>\n *\n * @see https://mantle.ngrok.com/components/select#api-select\n */\nconst Select = forwardRef<HTMLButtonElement, SelectProps>(\n\t(\n\t\t{\n\t\t\t\"aria-invalid\": _ariaInvalid,\n\t\t\tchildren,\n\t\t\tid,\n\t\t\tvalidation,\n\t\t\tonBlur,\n\t\t\tonChange,\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\treturn (\n\t\t\t<SelectPrimitive.Root {...props} onValueChange={onChange}>\n\t\t\t\t<SelectContext.Provider\n\t\t\t\t\tvalue={{ \"aria-invalid\": _ariaInvalid, id, validation, onBlur, ref }}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</SelectContext.Provider>\n\t\t\t</SelectPrimitive.Root>\n\t\t);\n\t},\n);\nSelect.displayName = \"Select\";\n\n/**\n * A group of related options within a select menu. Similar to an html `<optgroup>` element.\n * Use in conjunction with SelectLabel to ensure good accessibility via automatic labelling.\n *\n * @example\n * <Select>\n * <SelectTrigger>\n * <SelectValue placeholder=\"Select a fruit\" />\n * </SelectTrigger>\n * <SelectContent>\n * <SelectGroup>\n * <SelectLabel>Fruits</SelectLabel>\n * <SelectItem value=\"apple\">Apple</SelectItem>\n * <SelectItem value=\"banana\">Banana</SelectItem>\n * <SelectItem value=\"cherry\">Cherry</SelectItem>\n * </SelectGroup>\n * <SelectGroup>\n * <SelectLabel>Veggies</SelectLabel>\n * <SelectItem value=\"carrot\">Carrot</SelectItem>\n * <SelectItem value=\"cucumber\">Cucumber</SelectItem>\n * </SelectGroup>\n * </SelectContent>\n * </Select>\n *\n * @see https://mantle.ngrok.com/components/select#api-select-group\n */\nconst SelectGroup = SelectPrimitive.Group;\n\n/**\n * 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.\n *\n * @example\n * <Select>\n * <SelectTrigger>\n * <SelectValue placeholder=\"Select a fruit\" />\n * </SelectTrigger>\n * <SelectContent>\n * <SelectItem value=\"apple\">Apple</SelectItem>\n * <SelectItem value=\"banana\">Banana</SelectItem>\n * <SelectItem value=\"cherry\">Cherry</SelectItem>\n * </SelectContent>\n * </Select>\n *\n * @see https://mantle.ngrok.com/components/select#api-select-value\n */\nconst SelectValue = SelectPrimitive.Value;\n\ntype SelectTriggerProps = ComponentPropsWithoutRef<\n\ttypeof SelectPrimitive.Trigger\n> &\n\tWithAriaInvalid &\n\tWithValidation;\n\n/**\n * The button that toggles the select. The SelectContent will position itself adjacent to the trigger.\n *\n * @example\n * <Select>\n * <SelectTrigger>\n * <SelectValue placeholder=\"Select a fruit\" />\n * </SelectTrigger>\n * <SelectContent>\n * <SelectItem value=\"apple\">Apple</SelectItem>\n * <SelectItem value=\"banana\">Banana</SelectItem>\n * <SelectItem value=\"cherry\">Cherry</SelectItem>\n * </SelectContent>\n * </Select>\n *\n * @see https://mantle.ngrok.com/components/select#api-select-trigger\n */\nconst SelectTrigger = forwardRef<\n\tComponentRef<typeof SelectPrimitive.Trigger>,\n\tSelectTriggerProps\n>(\n\t(\n\t\t{\n\t\t\t\"aria-invalid\": ariaInValidProp,\n\t\t\tclassName,\n\t\t\tchildren,\n\t\t\tid: propId,\n\t\t\tvalidation: propValidation,\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\tconst ctx = useContext(SelectContext);\n\t\tconst _ariaInvalid = ctx[\"aria-invalid\"] ?? ariaInValidProp;\n\t\tconst isInvalid = _ariaInvalid != null && _ariaInvalid !== \"false\";\n\t\tconst _validation = ctx.validation ?? propValidation;\n\t\tconst validation = isInvalid\n\t\t\t? \"error\"\n\t\t\t: typeof _validation === \"function\"\n\t\t\t\t? _validation()\n\t\t\t\t: _validation;\n\t\tconst ariaInvalid = _ariaInvalid ?? validation === \"error\";\n\t\tconst id = ctx.id ?? propId;\n\n\t\treturn (\n\t\t\t<SelectPrimitive.Trigger\n\t\t\t\taria-invalid={ariaInvalid}\n\t\t\t\tclassName={cx(\n\t\t\t\t\t\"h-9 text-sm\",\n\t\t\t\t\t\"border-form bg-form text-strong placeholder:text-placeholder hover:bg-form-hover hover:text-strong flex w-full items-center justify-between gap-1.5 rounded-md border px-3 py-2 disabled:pointer-events-none disabled:opacity-50 [&>span]:line-clamp-1 [&>span]:text-left\",\n\t\t\t\t\t\"hover:border-neutral-400\",\n\t\t\t\t\t\"focus:outline-none focus:ring-4 aria-expanded:ring-4\",\n\t\t\t\t\t\"focus:border-accent-600 focus:ring-focus-accent aria-expanded:border-accent-600 aria-expanded:ring-focus-accent\",\n\t\t\t\t\t\"data-validation-success:border-success-600 data-validation-success:focus:border-success-600 data-validation-success:focus:ring-focus-success data-validation-success:aria-expanded:border-success-600 data-validation-success:aria-expanded:ring-focus-success\",\n\t\t\t\t\t\"data-validation-warning:border-warning-600 data-validation-warning:focus:border-warning-600 data-validation-warning:focus:ring-focus-warning data-validation-warning:aria-expanded:border-warning-600 data-validation-warning:aria-expanded:ring-focus-warning\",\n\t\t\t\t\t\"data-validation-error:border-danger-600 data-validation-error:focus:border-danger-600 data-validation-error:focus:ring-focus-danger data-validation-error:aria-expanded:border-danger-600 data-validation-error:aria-expanded:ring-focus-danger\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tdata-validation={validation || undefined}\n\t\t\t\tid={id}\n\t\t\t\tref={composeRefs(ref, ctx.ref)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t\t<SelectPrimitive.Icon asChild>\n\t\t\t\t\t<CaretDown className=\"size-4 shrink-0\" weight=\"bold\" />\n\t\t\t\t</SelectPrimitive.Icon>\n\t\t\t</SelectPrimitive.Trigger>\n\t\t);\n\t},\n);\nSelectTrigger.displayName = \"SelectTrigger\";\n\n/**\n * The button that scrolls the select content up.\n * @private\n */\nconst SelectScrollUpButton = forwardRef<\n\tComponentRef<typeof SelectPrimitive.ScrollUpButton>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n\t<SelectPrimitive.ScrollUpButton\n\t\tref={ref}\n\t\tclassName={cx(\n\t\t\t\"flex cursor-default items-center justify-center py-1\",\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t<CaretUp className=\"size-4 shrink-0\" weight=\"bold\" />\n\t</SelectPrimitive.ScrollUpButton>\n));\nSelectScrollUpButton.displayName = \"SelectScrollUpButton\";\n\n/**\n * The button that scrolls the select content down.\n * @private\n */\nconst SelectScrollDownButton = forwardRef<\n\tComponentRef<typeof SelectPrimitive.ScrollDownButton>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n\t<SelectPrimitive.ScrollDownButton\n\t\tref={ref}\n\t\tclassName={cx(\n\t\t\t\"flex cursor-default items-center justify-center py-1\",\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t<CaretDown className=\"size-4 shrink-0\" weight=\"bold\" />\n\t</SelectPrimitive.ScrollDownButton>\n));\nSelectScrollDownButton.displayName = \"SelectScrollDownButton\";\n\ntype SelectContentProps = ComponentPropsWithoutRef<\n\ttypeof SelectPrimitive.Content\n> & {\n\t/**\n\t * The width of the content. Defaults to the width of the trigger.\n\t * If set to \"content\", the content will use the intrinsic content width; it will be the width of the longest/widest item.\n\t * @default \"trigger\"\n\t */\n\twidth?: \"trigger\" | \"content\";\n};\n\n/**\n * The component that pops out when the select is open as a portal adjacent to the trigger button.\n * It contains a scrolling viewport of the select items.\n *\n * @example\n * <Select>\n * <SelectTrigger>\n * <SelectValue placeholder=\"Select a fruit\" />\n * </SelectTrigger>\n * <SelectContent>\n * <SelectItem value=\"apple\">Apple</SelectItem>\n * <SelectItem value=\"banana\">Banana</SelectItem>\n * <SelectItem value=\"cherry\">Cherry</SelectItem>\n * </SelectContent>\n * </Select>\n *\n * @see https://mantle.ngrok.com/components/select#api-select-content\n */\nconst SelectContent = forwardRef<\n\tComponentRef<typeof SelectPrimitive.Content>,\n\tSelectContentProps\n>(\n\t(\n\t\t{ className, children, position = \"popper\", width = \"trigger\", ...props },\n\t\tref,\n\t) => (\n\t\t<SelectPrimitive.Portal>\n\t\t\t<SelectPrimitive.Content\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cx(\n\t\t\t\t\t\"border-popover 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 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md\",\n\t\t\t\t\t\"bg-popover\",\n\t\t\t\t\tposition === \"popper\" &&\n\t\t\t\t\t\t\"data-side-bottom:translate-y-2 data-side-left:-translate-x-2 data-side-right:translate-x-2 data-side-top:-translate-y-2 max-h-[var(--radix-select-content-available-height)]\",\n\t\t\t\t\twidth === \"trigger\" && \"w-[var(--radix-select-trigger-width)]\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tposition={position}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t<SelectScrollUpButton />\n\t\t\t\t<SelectPrimitive.Viewport\n\t\t\t\t\tclassName={cx(\n\t\t\t\t\t\t\"p-1\",\n\t\t\t\t\t\tposition === \"popper\" &&\n\t\t\t\t\t\t\t\"h-[var(--radix-select-trigger-height)] w-full\",\n\t\t\t\t\t)}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</SelectPrimitive.Viewport>\n\t\t\t\t<SelectScrollDownButton />\n\t\t\t</SelectPrimitive.Content>\n\t\t</SelectPrimitive.Portal>\n\t),\n);\nSelectContent.displayName = \"SelectContent\";\n\n/**\n * Used to render the label of a group. It won't be focusable using arrow keys.\n *\n * @example\n * <Select>\n * <SelectTrigger>\n * <SelectValue placeholder=\"Select a fruit\" />\n * </SelectTrigger>\n * <SelectContent>\n * <SelectGroup>\n * <SelectLabel>Fruits</SelectLabel>\n * <SelectItem value=\"apple\">Apple</SelectItem>\n * <SelectItem value=\"banana\">Banana</SelectItem>\n * <SelectItem value=\"cherry\">Cherry</SelectItem>\n * </SelectGroup>\n * <SelectGroup>\n * <SelectLabel>Veggies</SelectLabel>\n * <SelectItem value=\"carrot\">Carrot</SelectItem>\n * <SelectItem value=\"cucumber\">Cucumber</SelectItem>\n * </SelectGroup>\n * </SelectContent>\n * </Select>\n *\n * @see https://mantle.ngrok.com/components/select#api-select-label\n */\nconst SelectLabel = forwardRef<\n\tComponentRef<typeof SelectPrimitive.Label>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n\t<SelectPrimitive.Label\n\t\tref={ref}\n\t\tclassName={cx(\"px-2 py-1.5 text-sm font-semibold\", className)}\n\t\t{...props}\n\t/>\n));\nSelectLabel.displayName = \"SelectLabel\";\n\n/**\n * An option within a select menu. Similar to an html `<option>` element.\n * Has a required `value` prop that will be passed to the `onChange` handler of the `Select` component when this item is selected.\n * Displays the children as the option's text.\n *\n * @example\n * <Select>\n * <SelectTrigger>\n * <SelectValue placeholder=\"Select a fruit\" />\n * </SelectTrigger>\n * <SelectContent>\n * <SelectItem value=\"apple\">Apple</SelectItem>\n * <SelectItem value=\"banana\">Banana</SelectItem>\n * <SelectItem value=\"cherry\">Cherry</SelectItem>\n * </SelectContent>\n * </Select>\n *\n * @see https://mantle.ngrok.com/components/select#api-select-item\n */\nconst SelectItem = forwardRef<\n\tComponentRef<typeof SelectPrimitive.Item>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n\t<SelectPrimitive.Item\n\t\tref={ref}\n\t\tclassName={cx(\n\t\t\t\"relative flex w-full cursor-pointer select-none items-center rounded py-1.5 pl-2 pr-8 text-sm outline-none\",\n\t\t\t\"focus:bg-popover-hover\",\n\t\t\t\"data-disabled:pointer-events-none data-disabled:opacity-50\",\n\t\t\t\"data-state-checked:bg-filled-accent data-state-checked:text-on-filled\",\n\t\t\t\"focus:data-state-checked:bg-filled-accent\",\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t<SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n\t\t<SelectPrimitive.ItemIndicator className=\"absolute right-2 flex h-3.5 w-3.5 items-center justify-center\">\n\t\t\t<Check className=\"size-4 shrink-0\" weight=\"bold\" />\n\t\t</SelectPrimitive.ItemIndicator>\n\t</SelectPrimitive.Item>\n));\nSelectItem.displayName = \"SelectItem\";\n\n/**\n * Used to visually separate items or groups of items in the select content.\n *\n * @example\n * <Select>\n * <SelectTrigger>\n * <SelectValue placeholder=\"Select a fruit\" />\n * </SelectTrigger>\n * <SelectContent>\n * <SelectGroup>\n * <SelectLabel>Fruits</SelectLabel>\n * <SelectItem value=\"apple\">Apple</SelectItem>\n * <SelectItem value=\"banana\">Banana</SelectItem>\n * <SelectItem value=\"cherry\">Cherry</SelectItem>\n * </SelectGroup>\n * <SelectSeparator />\n * <SelectGroup>\n * <SelectLabel>Veggies</SelectLabel>\n * <SelectItem value=\"carrot\">Carrot</SelectItem>\n * <SelectItem value=\"cucumber\">Cucumber</SelectItem>\n * </SelectGroup>\n * </SelectContent>\n * </Select>\n *\n * @see https://mantle.ngrok.com/components/select#api-select-separator\n */\nconst SelectSeparator = forwardRef<\n\tComponentRef<typeof Separator>,\n\tComponentPropsWithoutRef<typeof Separator>\n>(({ className, ...props }, ref) => (\n\t<Separator\n\t\tref={ref}\n\t\tclassName={cx(\"-mx-1 my-1 h-px w-auto\", className)}\n\t\t{...props}\n\t/>\n));\nSelectSeparator.displayName = \"SelectSeparator\";\n\nexport {\n\t//,\n\tSelect,\n\tSelectContent,\n\tSelectGroup,\n\tSelectItem,\n\tSelectLabel,\n\tSelectSeparator,\n\tSelectTrigger,\n\tSelectValue,\n};\n"],"mappings":"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","names":["CaretDown","CaretUp","Check","SelectPrimitive","createContext","forwardRef","useContext","jsx","jsxs","SelectContext","createContext","Select","forwardRef","_ariaInvalid","children","id","validation","onBlur","onChange","props","ref","SelectGroup","SelectValue","SelectTrigger","ariaInValidProp","className","propId","propValidation","ctx","useContext","isInvalid","_validation","ariaInvalid","cx","composeRefs","CaretDown","SelectScrollUpButton","CaretUp","SelectScrollDownButton","SelectContent","position","width","SelectLabel","SelectItem","Check","SelectSeparator","Separator"]}
|