@ngrok/mantle 0.32.3 → 0.40.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) 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-CGUSOD4E.js → chunk-HSTG2BTX.js} +1 -1
  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.js +1 -1
  72. package/dist/toast.d.ts +77 -61
  73. package/dist/toast.js +1 -1
  74. package/dist/tooltip.d.ts +72 -49
  75. package/dist/tooltip.js +1 -1
  76. package/dist/tooltip.js.map +1 -1
  77. package/package.json +4 -5
  78. package/dist/chunk-3X4AKTRA.js.map +0 -1
  79. package/dist/chunk-CGUSOD4E.js.map +0 -1
  80. package/dist/chunk-ERBZR6SY.js.map +0 -1
  81. package/dist/chunk-IDCDPWR4.js +0 -2
  82. package/dist/chunk-IDCDPWR4.js.map +0 -1
  83. package/dist/chunk-IVXZIYX4.js.map +0 -1
  84. package/dist/chunk-JIRNFNH5.js +0 -2
  85. package/dist/chunk-JIRNFNH5.js.map +0 -1
package/dist/table.d.ts CHANGED
@@ -1,437 +1,396 @@
1
1
  import * as react from 'react';
2
2
 
3
3
  /**
4
- * The `<TableRoot>` is the root container element for all `<Table>`s.
5
- * It provides styling and additional functionality, such as horizontal overflow
6
- * detection.
4
+ * A structured way to display data in rows and columns. The API matches the
5
+ * HTML table element 1:1.
7
6
  *
8
- * Must be used as the parent of a `<Table>`.
7
+ * @see https://mantle.ngrok.com/components/table
9
8
  *
10
9
  * @example
11
10
  * ```tsx
12
- * <TableRoot>
13
- * <Table>
14
- * <TableCaption>A list of your recent invoices.</TableCaption>
15
- * <TableHead>
16
- * <TableRow>
17
- * <TableHeader className="w-[100px]">Invoice</TableHeader>
18
- * <TableHeader>Status</TableHeader>
19
- * <TableHeader>Method</TableHeader>
20
- * <TableHeader className="text-right">Amount</TableHeader>
21
- * </TableRow>
22
- * </TableHead>
23
- * <TableBody>
11
+ * <Table.Root>
12
+ * <Table.Element>
13
+ * <Table.Caption>A list of your recent invoices.</Table.Caption>
14
+ * <Table.Head>
15
+ * <Table.Row>
16
+ * <Table.Header className="w-[100px]">Invoice</Table.Header>
17
+ * <Table.Header>Status</Table.Header>
18
+ * <Table.Header>Method</Table.Header>
19
+ * <Table.Header className="text-right">Amount</Table.Header>
20
+ * </Table.Row>
21
+ * </Table.Head>
22
+ * <Table.Body>
24
23
  * {invoices.map((invoice) => (
25
- * <TableRow key={invoice.invoice}>
26
- * <TableCell className="font-medium">{invoice.invoice}</TableCell>
27
- * <TableCell>{invoice.paymentStatus}</TableCell>
28
- * <TableCell>{invoice.paymentMethod}</TableCell>
29
- * <TableCell className="text-right">{invoice.totalAmount}</TableCell>
30
- * </TableRow>
24
+ * <Table.Row key={invoice.invoice}>
25
+ * <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
26
+ * <Table.Cell>{invoice.paymentStatus}</Table.Cell>
27
+ * <Table.Cell>{invoice.paymentMethod}</Table.Cell>
28
+ * <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
29
+ * </Table.Row>
31
30
  * ))}
32
- * </TableBody>
33
- * <TableFoot>
34
- * <TableRow>
35
- * <TableCell colSpan={3}>Total</TableCell>
36
- * <TableCell className="text-right">$2,500.00</TableCell>
37
- * </TableRow>
38
- * </TableFoot>
39
- * </Table>
40
- * </TableRoot>
31
+ * </Table.Body>
32
+ * <Table.Foot>
33
+ * <Table.Row>
34
+ * <Table.Cell colSpan={3}>Total</Table.Cell>
35
+ * <Table.Cell className="text-right">$2,500.00</Table.Cell>
36
+ * </Table.Row>
37
+ * </Table.Foot>
38
+ * </Table.Element>
39
+ * </Table.Root>
41
40
  * ```
42
- *
43
- * @see https://mantle.ngrok.com/components/table#api-table-root
44
- */
45
- declare const TableRoot: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
46
- /**
47
- * The `<Table>` is a structured way to display data in rows and columns. The API
48
- * matches the HTML `<table>` element 1:1.
49
- *
50
- * Permitted content in this order:
51
- * 1. optional: `<TableCaption>`
52
- * 2. 0 or more: `<colgroup>` elements
53
- * 3. optional: `<TableHead>`
54
- * 4. either one of the following:
55
- * - 0 or more: `<TableBody>`
56
- * - 0 or more: `<TableRow>`
57
- * 5. optional: `<TableFoot>`
58
- *
59
- * @description
60
- * Establishes a table formatting context. Elements inside the `<Table>`
61
- * generate rectangular boxes. Each box occupies a number of table cells
62
- * according to the following rules:
63
- * 1. The row boxes fill the table in the source code order from top to bottom.
64
- * Each row box occupies one row of cells.
65
- * 2. A row group box occupies one or more row boxes.
66
- * 3. Column boxes are placed next to each other in source code order.
67
- * Depending on the value of the dir attribute, the columns are laid in
68
- * left-to-right or right-to-left direction. A column box occupies one or
69
- * more columns of table cells.
70
- * 4. A column group box occupies one or more column boxes.
71
- * 5. A cell box may span over multiple rows and columns. User agents trim
72
- * cells to fit in the available number of rows and columns.
73
- * Table cells do have padding. Boxes that make up a table do not have margins.
74
- * For more in depth information, see the [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table).
75
- *
76
- * @example
77
- * ```tsx
78
- * <TableRoot>
79
- * <Table>
80
- * <TableCaption>A list of your recent invoices.</TableCaption>
81
- * <TableHead>
82
- * <TableRow>
83
- * <TableHeader className="w-[100px]">Invoice</TableHeader>
84
- * <TableHeader>Status</TableHeader>
85
- * <TableHeader>Method</TableHeader>
86
- * <TableHeader className="text-right">Amount</TableHeader>
87
- * </TableRow>
88
- * </TableHead>
89
- * <TableBody>
90
- * {invoices.map((invoice) => (
91
- * <TableRow key={invoice.invoice}>
92
- * <TableCell className="font-medium">{invoice.invoice}</TableCell>
93
- * <TableCell>{invoice.paymentStatus}</TableCell>
94
- * <TableCell>{invoice.paymentMethod}</TableCell>
95
- * <TableCell className="text-right">{invoice.totalAmount}</TableCell>
96
- * </TableRow>
97
- * ))}
98
- * </TableBody>
99
- * <TableFoot>
100
- * <TableRow>
101
- * <TableCell colSpan={3}>Total</TableCell>
102
- * <TableCell className="text-right">$2,500.00</TableCell>
103
- * </TableRow>
104
- * </TableFoot>
105
- * </Table>
106
- * </TableRoot>
107
- * ```
108
- *
109
- * @see https://mantle.ngrok.com/components/table#api-table
110
- */
111
- declare const Table: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & react.RefAttributes<HTMLTableElement>>;
112
- /**
113
- * The `<TableHead>` is a container for the table's column headers.
114
- * Encapsulates a set of `<TableRow>`s, indicating that they comprise the head
115
- * of a table with information about the table's columns. This is usually in the
116
- * form of column headers (`<TableHeader>`).
117
- *
118
- * Must be used as a child of a `<Table>`. It should only come after any
119
- * `<TableCaption>` or `<colgroup>` and before any `<TableBody>` or `<TableFoot>`.
120
- *
121
- * Permitted Content:
122
- * 1. 0 or more: `<TableRow>`
123
- *
124
- * @example
125
- * ```tsx
126
- * <TableRoot>
127
- * <Table>
128
- * <TableCaption>A list of your recent invoices.</TableCaption>
129
- * <TableHead>
130
- * <TableRow>
131
- * <TableHeader className="w-[100px]">Invoice</TableHeader>
132
- * <TableHeader>Status</TableHeader>
133
- * <TableHeader>Method</TableHeader>
134
- * <TableHeader className="text-right">Amount</TableHeader>
135
- * </TableRow>
136
- * </TableHead>
137
- * <TableBody>
138
- * {invoices.map((invoice) => (
139
- * <TableRow key={invoice.invoice}>
140
- * <TableCell className="font-medium">{invoice.invoice}</TableCell>
141
- * <TableCell>{invoice.paymentStatus}</TableCell>
142
- * <TableCell>{invoice.paymentMethod}</TableCell>
143
- * <TableCell className="text-right">{invoice.totalAmount}</TableCell>
144
- * </TableRow>
145
- * ))}
146
- * </TableBody>
147
- * <TableFoot>
148
- * <TableRow>
149
- * <TableCell colSpan={3}>Total</TableCell>
150
- * <TableCell className="text-right">$2,500.00</TableCell>
151
- * </TableRow>
152
- * </TableFoot>
153
- * </Table>
154
- * </TableRoot>
155
- * ```
156
- *
157
- * @see https://mantle.ngrok.com/components/table#api-table-header
158
- */
159
- declare const TableHead: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & react.RefAttributes<HTMLTableSectionElement>>;
160
- /**
161
- * The `<TableBody>` encapsulates a set of `<TableRow>`s, indicating that they
162
- * comprise the body of a table's (main) data.
163
- *
164
- * Must be used as a child of a `<Table>` and only come after any
165
- * `<TableCaption>`, `<colgroup>`, or `<TableHead>`.
166
- *
167
- * Permitted Content:
168
- * 1. 0 or more: `<TableRow>`
169
- *
170
- * @example
171
- * ```tsx
172
- * <TableRoot>
173
- * <Table>
174
- * <TableCaption>A list of your recent invoices.</TableCaption>
175
- * <TableHead>
176
- * <TableRow>
177
- * <TableHeader className="w-[100px]">Invoice</TableHeader>
178
- * <TableHeader>Status</TableHeader>
179
- * <TableHeader>Method</TableHeader>
180
- * <TableHeader className="text-right">Amount</TableHeader>
181
- * </TableRow>
182
- * </TableHead>
183
- * <TableBody>
184
- * {invoices.map((invoice) => (
185
- * <TableRow key={invoice.invoice}>
186
- * <TableCell className="font-medium">{invoice.invoice}</TableCell>
187
- * <TableCell>{invoice.paymentStatus}</TableCell>
188
- * <TableCell>{invoice.paymentMethod}</TableCell>
189
- * <TableCell className="text-right">{invoice.totalAmount}</TableCell>
190
- * </TableRow>
191
- * ))}
192
- * </TableBody>
193
- * <TableFoot>
194
- * <TableRow>
195
- * <TableCell colSpan={3}>Total</TableCell>
196
- * <TableCell className="text-right">$2,500.00</TableCell>
197
- * </TableRow>
198
- * </TableFoot>
199
- * </Table>
200
- * </TableRoot>
201
- * ```
202
- *
203
- * @see https://mantle.ngrok.com/components/table#api-table-body
204
- */
205
- declare const TableBody: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & react.RefAttributes<HTMLTableSectionElement>>;
206
- /**
207
- * The `<TableFoot>` encapsulates a set of `<TableRow>`s, indicating that they
208
- * comprise the foot of a table with information about the table's columns. This
209
- * is usually a summary of the columns, e.g., a sum of the given numbers in a
210
- * column.
211
- *
212
- * Must be used as a child of a `<Table>` and only come after any
213
- * `<TableCaption>`, `<colgroup>`, `<TableHead>`, and `<TableBody>`.
214
- *
215
- * Permitted Content:
216
- * 1. 0 or more: `<TableRow>` elements
217
- *
218
- * @example
219
- * ```tsx
220
- * <TableRoot>
221
- * <Table>
222
- * <TableCaption>A list of your recent invoices.</TableCaption>
223
- * <TableHead>
224
- * <TableRow>
225
- * <TableHeader className="w-[100px]">Invoice</TableHeader>
226
- * <TableHeader>Status</TableHeader>
227
- * <TableHeader>Method</TableHeader>
228
- * <TableHeader className="text-right">Amount</TableHeader>
229
- * </TableRow>
230
- * </TableHead>
231
- * <TableBody>
232
- * {invoices.map((invoice) => (
233
- * <TableRow key={invoice.invoice}>
234
- * <TableCell className="font-medium">{invoice.invoice}</TableCell>
235
- * <TableCell>{invoice.paymentStatus}</TableCell>
236
- * <TableCell>{invoice.paymentMethod}</TableCell>
237
- * <TableCell className="text-right">{invoice.totalAmount}</TableCell>
238
- * </TableRow>
239
- * ))}
240
- * </TableBody>
241
- * <TableFoot>
242
- * <TableRow>
243
- * <TableCell colSpan={3}>Total</TableCell>
244
- * <TableCell className="text-right">$2,500.00</TableCell>
245
- * </TableRow>
246
- * </TableFoot>
247
- * </Table>
248
- * </TableRoot>
249
- * ```
250
- *
251
- * @see https://mantle.ngrok.com/components/table#api-table-foot
252
- */
253
- declare const TableFoot: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & react.RefAttributes<HTMLTableSectionElement>>;
254
- /**
255
- * The `<TableRow>` defines a row of cells in a table. The row's cells can then
256
- * be established using a mix of `<TableCell>` and `<TableHeader>` components.
257
- *
258
- * Must be used as a child of a `<TableHead>`, `<TableBody>`, or `<TableFoot>`.
259
- *
260
- * Permitted Content:
261
- * 1. 0 or more: `<TableHeader>` or `<TableCell>`
262
- *
263
- * @example
264
- * ```tsx
265
- * <TableRoot>
266
- * <Table>
267
- * <TableCaption>A list of your recent invoices.</TableCaption>
268
- * <TableHead>
269
- * <TableRow>
270
- * <TableHeader className="w-[100px]">Invoice</TableHeader>
271
- * <TableHeader>Status</TableHeader>
272
- * <TableHeader>Method</TableHeader>
273
- * <TableHeader className="text-right">Amount</TableHeader>
274
- * </TableRow>
275
- * </TableHead>
276
- * <TableBody>
277
- * {invoices.map((invoice) => (
278
- * <TableRow key={invoice.invoice}>
279
- * <TableCell className="font-medium">{invoice.invoice}</TableCell>
280
- * <TableCell>{invoice.paymentStatus}</TableCell>
281
- * <TableCell>{invoice.paymentMethod}</TableCell>
282
- * <TableCell className="text-right">{invoice.totalAmount}</TableCell>
283
- * </TableRow>
284
- * ))}
285
- * </TableBody>
286
- * <TableFoot>
287
- * <TableRow>
288
- * <TableCell colSpan={3}>Total</TableCell>
289
- * <TableCell className="text-right">$2,500.00</TableCell>
290
- * </TableRow>
291
- * </TableFoot>
292
- * </Table>
293
- * </TableRoot>
294
- * ```
295
- *
296
- * @see https://mantle.ngrok.com/components/table#api-table-row
297
- */
298
- declare const TableRow: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & react.RefAttributes<HTMLTableRowElement>>;
299
- /**
300
- * The `<TableHeader>` defines a cell as the header of a group of table cells
301
- * and may be used as a child of a `<TableRow>`. The exact nature of this group
302
- * is defined by the scope and headers attributes.
303
- *
304
- * Must be used as a child of a `<TableRow>`.
305
- *
306
- * Permitted Content:
307
- * 1. Flow content, but with no header, footer, sectioning content, or heading
308
- * content descendants.
309
- *
310
- * @example
311
- * ```tsx
312
- * <TableRoot>
313
- * <Table>
314
- * <TableCaption>A list of your recent invoices.</TableCaption>
315
- * <TableHead>
316
- * <TableRow>
317
- * <TableHeader className="w-[100px]">Invoice</TableHeader>
318
- * <TableHeader>Status</TableHeader>
319
- * <TableHeader>Method</TableHeader>
320
- * <TableHeader className="text-right">Amount</TableHeader>
321
- * </TableRow>
322
- * </TableHead>
323
- * <TableBody>
324
- * {invoices.map((invoice) => (
325
- * <TableRow key={invoice.invoice}>
326
- * <TableCell className="font-medium">{invoice.invoice}</TableCell>
327
- * <TableCell>{invoice.paymentStatus}</TableCell>
328
- * <TableCell>{invoice.paymentMethod}</TableCell>
329
- * <TableCell className="text-right">{invoice.totalAmount}</TableCell>
330
- * </TableRow>
331
- * ))}
332
- * </TableBody>
333
- * <TableFoot>
334
- * <TableRow>
335
- * <TableCell colSpan={3}>Total</TableCell>
336
- * <TableCell className="text-right">$2,500.00</TableCell>
337
- * </TableRow>
338
- * </TableFoot>
339
- * </Table>
340
- * </TableRoot>
341
- * ```
342
- *
343
- * @see https://mantle.ngrok.com/components/table#api-table-header
344
- */
345
- declare const TableHeader: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & react.RefAttributes<HTMLTableHeaderCellElement>>;
346
- /**
347
- * The `<TableCell>` defines a cell of a table that contains data and may be
348
- * used as a child of a `<TableRow>`.
349
- *
350
- * Must be used as a child of a `<TableRow>`.
351
- *
352
- * Permitted Content:
353
- * 1. Flow content
354
- *
355
- * @example
356
- * ```tsx
357
- * <TableRoot>
358
- * <Table>
359
- * <TableCaption>A list of your recent invoices.</TableCaption>
360
- * <TableHead>
361
- * <TableRow>
362
- * <TableHeader className="w-[100px]">Invoice</TableHeader>
363
- * <TableHeader>Status</TableHeader>
364
- * <TableHeader>Method</TableHeader>
365
- * <TableHeader className="text-right">Amount</TableHeader>
366
- * </TableRow>
367
- * </TableHead>
368
- * <TableBody>
369
- * {invoices.map((invoice) => (
370
- * <TableRow key={invoice.invoice}>
371
- * <TableCell className="font-medium">{invoice.invoice}</TableCell>
372
- * <TableCell>{invoice.paymentStatus}</TableCell>
373
- * <TableCell>{invoice.paymentMethod}</TableCell>
374
- * <TableCell className="text-right">{invoice.totalAmount}</TableCell>
375
- * </TableRow>
376
- * ))}
377
- * </TableBody>
378
- * <TableFoot>
379
- * <TableRow>
380
- * <TableCell colSpan={3}>Total</TableCell>
381
- * <TableCell className="text-right">$2,500.00</TableCell>
382
- * </TableRow>
383
- * </TableFoot>
384
- * </Table>
385
- * </TableRoot>
386
- * ```
387
- *
388
- * @see https://mantle.ngrok.com/components/table#api-table-cell
389
- */
390
- declare const TableCell: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref"> & react.RefAttributes<HTMLTableDataCellElement>>;
391
- /**
392
- * The optional `<TableCaption>` specifies the caption (or title) of a table,
393
- * providing the table an accessible description.
394
- *
395
- * If used, must be the first child of a `<Table>`.
396
- *
397
- * Permitted Content:
398
- * 1. Flow content
399
- *
400
- * @example
401
- * ```tsx
402
- * <TableRoot>
403
- * <Table>
404
- * <TableCaption>A list of your recent invoices.</TableCaption>
405
- * <TableHead>
406
- * <TableRow>
407
- * <TableHeader className="w-[100px]">Invoice</TableHeader>
408
- * <TableHeader>Status</TableHeader>
409
- * <TableHeader>Method</TableHeader>
410
- * <TableHeader className="text-right">Amount</TableHeader>
411
- * </TableRow>
412
- * </TableHead>
413
- * <TableBody>
414
- * {invoices.map((invoice) => (
415
- * <TableRow key={invoice.invoice}>
416
- * <TableCell className="font-medium">{invoice.invoice}</TableCell>
417
- * <TableCell>{invoice.paymentStatus}</TableCell>
418
- * <TableCell>{invoice.paymentMethod}</TableCell>
419
- * <TableCell className="text-right">{invoice.totalAmount}</TableCell>
420
- * </TableRow>
421
- * ))}
422
- * </TableBody>
423
- * <TableFoot>
424
- * <TableRow>
425
- * <TableCell colSpan={3}>Total</TableCell>
426
- * <TableCell className="text-right">$2,500.00</TableCell>
427
- * </TableRow>
428
- * </TableFoot>
429
- * </Table>
430
- * </TableRoot>
431
- * ```
432
- *
433
- * @see https://mantle.ngrok.com/components/table#api-table-caption
434
41
  */
435
- declare const TableCaption: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & react.RefAttributes<HTMLElement>>;
42
+ declare const Table: {
43
+ /**
44
+ * The body section of the table. Encapsulates a set of table rows comprising the body of a table's main data.
45
+ *
46
+ * @see https://mantle.ngrok.com/components/table#api-table-body
47
+ *
48
+ * @example
49
+ * ```tsx
50
+ * <Table.Root>
51
+ * <Table.Element>
52
+ * <Table.Caption>A list of your recent invoices.</Table.Caption>
53
+ * <Table.Head>
54
+ * <Table.Row>
55
+ * <Table.Header className="w-[100px]">Invoice</Table.Header>
56
+ * <Table.Header>Status</Table.Header>
57
+ * <Table.Header>Method</Table.Header>
58
+ * <Table.Header className="text-right">Amount</Table.Header>
59
+ * </Table.Row>
60
+ * </Table.Head>
61
+ * <Table.Body>
62
+ * {invoices.map((invoice) => (
63
+ * <Table.Row key={invoice.invoice}>
64
+ * <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
65
+ * <Table.Cell>{invoice.paymentStatus}</Table.Cell>
66
+ * <Table.Cell>{invoice.paymentMethod}</Table.Cell>
67
+ * <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
68
+ * </Table.Row>
69
+ * ))}
70
+ * </Table.Body>
71
+ * <Table.Foot>
72
+ * <Table.Row>
73
+ * <Table.Cell colSpan={3}>Total</Table.Cell>
74
+ * <Table.Cell className="text-right">$2,500.00</Table.Cell>
75
+ * </Table.Row>
76
+ * </Table.Foot>
77
+ * </Table.Element>
78
+ * </Table.Root>
79
+ * ```
80
+ */
81
+ readonly Body: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & react.RefAttributes<HTMLTableSectionElement>>;
82
+ /**
83
+ * An optional caption that specifies the caption (or title) of a table, providing an accessible description.
84
+ *
85
+ * @see https://mantle.ngrok.com/components/table#api-table-caption
86
+ *
87
+ * @example
88
+ * ```tsx
89
+ * <Table.Root>
90
+ * <Table.Element>
91
+ * <Table.Caption>A list of your recent invoices.</Table.Caption>
92
+ * <Table.Head>
93
+ * <Table.Row>
94
+ * <Table.Header className="w-[100px]">Invoice</Table.Header>
95
+ * <Table.Header>Status</Table.Header>
96
+ * <Table.Header>Method</Table.Header>
97
+ * <Table.Header className="text-right">Amount</Table.Header>
98
+ * </Table.Row>
99
+ * </Table.Head>
100
+ * <Table.Body>
101
+ * {invoices.map((invoice) => (
102
+ * <Table.Row key={invoice.invoice}>
103
+ * <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
104
+ * <Table.Cell>{invoice.paymentStatus}</Table.Cell>
105
+ * <Table.Cell>{invoice.paymentMethod}</Table.Cell>
106
+ * <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
107
+ * </Table.Row>
108
+ * ))}
109
+ * </Table.Body>
110
+ * <Table.Foot>
111
+ * <Table.Row>
112
+ * <Table.Cell colSpan={3}>Total</Table.Cell>
113
+ * <Table.Cell className="text-right">$2,500.00</Table.Cell>
114
+ * </Table.Row>
115
+ * </Table.Foot>
116
+ * </Table.Element>
117
+ * </Table.Root>
118
+ * ```
119
+ */
120
+ readonly Caption: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & react.RefAttributes<HTMLElement>>;
121
+ /**
122
+ * A cell that contains data and may be used as a child of a table row.
123
+ *
124
+ * @see https://mantle.ngrok.com/components/table#api-table-cell
125
+ *
126
+ * @example
127
+ * ```tsx
128
+ * <Table.Root>
129
+ * <Table.Element>
130
+ * <Table.Caption>A list of your recent invoices.</Table.Caption>
131
+ * <Table.Head>
132
+ * <Table.Row>
133
+ * <Table.Header className="w-[100px]">Invoice</Table.Header>
134
+ * <Table.Header>Status</Table.Header>
135
+ * <Table.Header>Method</Table.Header>
136
+ * <Table.Header className="text-right">Amount</Table.Header>
137
+ * </Table.Row>
138
+ * </Table.Head>
139
+ * <Table.Body>
140
+ * {invoices.map((invoice) => (
141
+ * <Table.Row key={invoice.invoice}>
142
+ * <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
143
+ * <Table.Cell>{invoice.paymentStatus}</Table.Cell>
144
+ * <Table.Cell>{invoice.paymentMethod}</Table.Cell>
145
+ * <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
146
+ * </Table.Row>
147
+ * ))}
148
+ * </Table.Body>
149
+ * <Table.Foot>
150
+ * <Table.Row>
151
+ * <Table.Cell colSpan={3}>Total</Table.Cell>
152
+ * <Table.Cell className="text-right">$2,500.00</Table.Cell>
153
+ * </Table.Row>
154
+ * </Table.Foot>
155
+ * </Table.Element>
156
+ * </Table.Root>
157
+ * ```
158
+ */
159
+ readonly Cell: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref"> & react.RefAttributes<HTMLTableDataCellElement>>;
160
+ /**
161
+ * A structured way to display data in rows and columns. The API matches the HTML table element 1:1.
162
+ *
163
+ * @see https://mantle.ngrok.com/components/table#api-table-element
164
+ *
165
+ * @example
166
+ * ```tsx
167
+ * <Table.Root>
168
+ * <Table.Element>
169
+ * <Table.Caption>A list of your recent invoices.</Table.Caption>
170
+ * <Table.Head>
171
+ * <Table.Row>
172
+ * <Table.Header className="w-[100px]">Invoice</Table.Header>
173
+ * <Table.Header>Status</Table.Header>
174
+ * <Table.Header>Method</Table.Header>
175
+ * <Table.Header className="text-right">Amount</Table.Header>
176
+ * </Table.Row>
177
+ * </Table.Head>
178
+ * <Table.Body>
179
+ * {invoices.map((invoice) => (
180
+ * <Table.Row key={invoice.invoice}>
181
+ * <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
182
+ * <Table.Cell>{invoice.paymentStatus}</Table.Cell>
183
+ * <Table.Cell>{invoice.paymentMethod}</Table.Cell>
184
+ * <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
185
+ * </Table.Row>
186
+ * ))}
187
+ * </Table.Body>
188
+ * <Table.Foot>
189
+ * <Table.Row>
190
+ * <Table.Cell colSpan={3}>Total</Table.Cell>
191
+ * <Table.Cell className="text-right">$2,500.00</Table.Cell>
192
+ * </Table.Row>
193
+ * </Table.Foot>
194
+ * </Table.Element>
195
+ * </Table.Root>
196
+ * ```
197
+ */
198
+ readonly Element: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & react.RefAttributes<HTMLTableElement>>;
199
+ /**
200
+ * The foot section of a table. Encapsulates a set of table rows comprising the foot with summary information.
201
+ *
202
+ * @see https://mantle.ngrok.com/components/table#api-table-foot
203
+ *
204
+ * @example
205
+ * ```tsx
206
+ * <Table.Root>
207
+ * <Table.Element>
208
+ * <Table.Caption>A list of your recent invoices.</Table.Caption>
209
+ * <Table.Head>
210
+ * <Table.Row>
211
+ * <Table.Header className="w-[100px]">Invoice</Table.Header>
212
+ * <Table.Header>Status</Table.Header>
213
+ * <Table.Header>Method</Table.Header>
214
+ * <Table.Header className="text-right">Amount</Table.Header>
215
+ * </Table.Row>
216
+ * </Table.Head>
217
+ * <Table.Body>
218
+ * {invoices.map((invoice) => (
219
+ * <Table.Row key={invoice.invoice}>
220
+ * <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
221
+ * <Table.Cell>{invoice.paymentStatus}</Table.Cell>
222
+ * <Table.Cell>{invoice.paymentMethod}</Table.Cell>
223
+ * <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
224
+ * </Table.Row>
225
+ * ))}
226
+ * </Table.Body>
227
+ * <Table.Foot>
228
+ * <Table.Row>
229
+ * <Table.Cell colSpan={3}>Total</Table.Cell>
230
+ * <Table.Cell className="text-right">$2,500.00</Table.Cell>
231
+ * </Table.Row>
232
+ * </Table.Foot>
233
+ * </Table.Element>
234
+ * </Table.Root>
235
+ * ```
236
+ */
237
+ readonly Foot: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & react.RefAttributes<HTMLTableSectionElement>>;
238
+ /**
239
+ * The head section of a table. Contains the table's column headers information.
240
+ *
241
+ * @see https://mantle.ngrok.com/components/table#api-table-header
242
+ *
243
+ * @example
244
+ * ```tsx
245
+ * <Table.Root>
246
+ * <Table.Element>
247
+ * <Table.Caption>A list of your recent invoices.</Table.Caption>
248
+ * <Table.Head>
249
+ * <Table.Row>
250
+ * <Table.Header className="w-[100px]">Invoice</Table.Header>
251
+ * <Table.Header>Status</Table.Header>
252
+ * <Table.Header>Method</Table.Header>
253
+ * <Table.Header className="text-right">Amount</Table.Header>
254
+ * </Table.Row>
255
+ * </Table.Head>
256
+ * <Table.Body>
257
+ * {invoices.map((invoice) => (
258
+ * <Table.Row key={invoice.invoice}>
259
+ * <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
260
+ * <Table.Cell>{invoice.paymentStatus}</Table.Cell>
261
+ * <Table.Cell>{invoice.paymentMethod}</Table.Cell>
262
+ * <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
263
+ * </Table.Row>
264
+ * ))}
265
+ * </Table.Body>
266
+ * <Table.Foot>
267
+ * <Table.Row>
268
+ * <Table.Cell colSpan={3}>Total</Table.Cell>
269
+ * <Table.Cell className="text-right">$2,500.00</Table.Cell>
270
+ * </Table.Row>
271
+ * </Table.Foot>
272
+ * </Table.Element>
273
+ * </Table.Root>
274
+ * ```
275
+ */
276
+ readonly Head: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & react.RefAttributes<HTMLTableSectionElement>>;
277
+ /**
278
+ * A cell that defines the header of a group of table cells as a child of a table row.
279
+ *
280
+ * @see https://mantle.ngrok.com/components/table#api-table-header
281
+ *
282
+ * @example
283
+ * ```tsx
284
+ * <Table.Root>
285
+ * <Table.Element>
286
+ * <Table.Caption>A list of your recent invoices.</Table.Caption>
287
+ * <Table.Head>
288
+ * <Table.Row>
289
+ * <Table.Header className="w-[100px]">Invoice</Table.Header>
290
+ * <Table.Header>Status</Table.Header>
291
+ * <Table.Header>Method</Table.Header>
292
+ * <Table.Header className="text-right">Amount</Table.Header>
293
+ * </Table.Row>
294
+ * </Table.Head>
295
+ * <Table.Body>
296
+ * {invoices.map((invoice) => (
297
+ * <Table.Row key={invoice.invoice}>
298
+ * <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
299
+ * <Table.Cell>{invoice.paymentStatus}</Table.Cell>
300
+ * <Table.Cell>{invoice.paymentMethod}</Table.Cell>
301
+ * <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
302
+ * </Table.Row>
303
+ * ))}
304
+ * </Table.Body>
305
+ * <Table.Foot>
306
+ * <Table.Row>
307
+ * <Table.Cell colSpan={3}>Total</Table.Cell>
308
+ * <Table.Cell className="text-right">$2,500.00</Table.Cell>
309
+ * </Table.Row>
310
+ * </Table.Foot>
311
+ * </Table.Element>
312
+ * </Table.Root>
313
+ * ```
314
+ */
315
+ readonly Header: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & react.RefAttributes<HTMLTableHeaderCellElement>>;
316
+ /**
317
+ * The root container element for all tables. Provides styling and additional functionality like horizontal overflow detection.
318
+ *
319
+ * @see https://mantle.ngrok.com/components/table#api-table-root
320
+ *
321
+ * @example
322
+ * ```tsx
323
+ * <Table.Root>
324
+ * <Table.Element>
325
+ * <Table.Caption>A list of your recent invoices.</Table.Caption>
326
+ * <Table.Head>
327
+ * <Table.Row>
328
+ * <Table.Header className="w-[100px]">Invoice</Table.Header>
329
+ * <Table.Header>Status</Table.Header>
330
+ * <Table.Header>Method</Table.Header>
331
+ * <Table.Header className="text-right">Amount</Table.Header>
332
+ * </Table.Row>
333
+ * </Table.Head>
334
+ * <Table.Body>
335
+ * {invoices.map((invoice) => (
336
+ * <Table.Row key={invoice.invoice}>
337
+ * <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
338
+ * <Table.Cell>{invoice.paymentStatus}</Table.Cell>
339
+ * <Table.Cell>{invoice.paymentMethod}</Table.Cell>
340
+ * <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
341
+ * </Table.Row>
342
+ * ))}
343
+ * </Table.Body>
344
+ * <Table.Foot>
345
+ * <Table.Row>
346
+ * <Table.Cell colSpan={3}>Total</Table.Cell>
347
+ * <Table.Cell className="text-right">$2,500.00</Table.Cell>
348
+ * </Table.Row>
349
+ * </Table.Foot>
350
+ * </Table.Element>
351
+ * </Table.Root>
352
+ * ```
353
+ */
354
+ readonly Root: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
355
+ /**
356
+ * Defines a row of cells in a table. Contains a mix of table cells and table headers.
357
+ *
358
+ * @see https://mantle.ngrok.com/components/table#api-table-row
359
+ *
360
+ * @example
361
+ * ```tsx
362
+ * <Table.Root>
363
+ * <Table.Element>
364
+ * <Table.Caption>A list of your recent invoices.</Table.Caption>
365
+ * <Table.Head>
366
+ * <Table.Row>
367
+ * <Table.Header className="w-[100px]">Invoice</Table.Header>
368
+ * <Table.Header>Status</Table.Header>
369
+ * <Table.Header>Method</Table.Header>
370
+ * <Table.Header className="text-right">Amount</Table.Header>
371
+ * </Table.Row>
372
+ * </Table.Head>
373
+ * <Table.Body>
374
+ * {invoices.map((invoice) => (
375
+ * <Table.Row key={invoice.invoice}>
376
+ * <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
377
+ * <Table.Cell>{invoice.paymentStatus}</Table.Cell>
378
+ * <Table.Cell>{invoice.paymentMethod}</Table.Cell>
379
+ * <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
380
+ * </Table.Row>
381
+ * ))}
382
+ * </Table.Body>
383
+ * <Table.Foot>
384
+ * <Table.Row>
385
+ * <Table.Cell colSpan={3}>Total</Table.Cell>
386
+ * <Table.Cell className="text-right">$2,500.00</Table.Cell>
387
+ * </Table.Row>
388
+ * </Table.Foot>
389
+ * </Table.Element>
390
+ * </Table.Root>
391
+ * ```
392
+ */
393
+ readonly Row: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & react.RefAttributes<HTMLTableRowElement>>;
394
+ };
436
395
 
437
- export { Table, TableBody, TableCaption, TableCell, TableFoot, TableHead, TableHeader, TableRoot, TableRow };
396
+ export { Table };