@ngrok/mantle 0.79.2 → 0.80.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion.d.ts +169 -12
- package/dist/accordion.js +1 -1
- package/dist/agent.json +1 -1
- package/dist/alert-dialog.d.ts +496 -30
- package/dist/alert-dialog.js +1 -1
- package/dist/alert.d.ts +129 -9
- package/dist/alert.js +1 -1
- package/dist/anchor-_2meGDfj.js +1 -0
- package/dist/anchor.d.ts +2 -2
- package/dist/anchor.js +1 -1
- package/dist/as-child-D23mGo4f.d.ts +49 -0
- package/dist/badge.d.ts +44 -5
- package/dist/badge.js +1 -1
- package/dist/breadcrumb.d.ts +214 -14
- package/dist/breadcrumb.js +1 -1
- package/dist/button-5WsvzIQ6.js +1 -0
- package/dist/{button-DcXOWUYo.d.ts → button-BPMwa2jN.d.ts} +3 -3
- package/dist/button-D9n09xUg.js +1 -0
- package/dist/button.d.ts +3 -3
- package/dist/button.js +1 -1
- package/dist/calendar.d.ts +0 -3
- package/dist/calendar.js +1 -1
- package/dist/card.d.ts +146 -9
- package/dist/card.js +1 -1
- package/dist/centered-layout.d.ts +224 -8
- package/dist/centered-layout.js +1 -1
- package/dist/checkbox-Cq17y0-R.js +1 -0
- package/dist/checkbox.d.ts +12 -10
- package/dist/checkbox.js +1 -1
- package/dist/choice-Cc8dA5r8.js +1 -0
- package/dist/choice-Ct0KK8jw.d.ts +269 -0
- package/dist/choice.d.ts +1 -252
- package/dist/choice.js +1 -1
- package/dist/code-block.d.ts +270 -50
- package/dist/code-block.js +6 -6
- package/dist/code-block_highlight-utils.js +1 -1
- package/dist/code.d.ts +3 -2
- package/dist/code.js +1 -1
- package/dist/combobox.d.ts +190 -11
- package/dist/combobox.js +1 -1
- package/dist/command.d.ts +285 -81
- package/dist/command.js +1 -1
- package/dist/compose-refs-BdBMM9ga.js +1 -0
- package/dist/data-table.d.ts +33 -5
- package/dist/data-table.js +1 -1
- package/dist/description-list.d.ts +79 -6
- package/dist/description-list.js +1 -1
- package/dist/dialog-CQ2C6vkE.js +1 -0
- package/dist/dialog.d.ts +239 -18
- package/dist/dialog.js +1 -1
- package/dist/dropdown-menu-CSCDdA3K.js +1 -0
- package/dist/{dropdown-menu-DP_Ne9Mr.d.ts → dropdown-menu-CoyozLzy.d.ts} +170 -29
- package/dist/dropdown-menu.d.ts +2 -2
- package/dist/dropdown-menu.js +1 -1
- package/dist/empty.d.ts +1 -1
- package/dist/empty.js +1 -1
- package/dist/field.d.ts +596 -45
- package/dist/field.js +1 -1
- package/dist/flag.d.ts +0 -3
- package/dist/flag.js +1 -1
- package/dist/hooks.d.ts +3 -4
- package/dist/hooks.js +1 -1
- package/dist/hover-card.d.ts +54 -4
- package/dist/hover-card.js +1 -1
- package/dist/{icon-Cevjo93X.d.ts → icon-BDqpcZ-n.d.ts} +1 -1
- package/dist/icon-CGgMKpJg.js +1 -0
- package/dist/{icon-button-B7uEj1qq.d.ts → icon-button-C1AfGnQx.d.ts} +11 -60
- package/dist/icon-button-DiOhreJD.js +1 -0
- package/dist/icon.d.ts +2 -2
- package/dist/icon.js +1 -1
- package/dist/icons.d.ts +5 -13
- package/dist/icons.js +1 -1
- package/dist/{in-view-nkSOdED2.d.ts → in-view-DDEGUKDR.d.ts} +17 -9
- package/dist/index-B8mIWKIU.d.ts +211 -0
- package/dist/{index-Rv8RL7xy.d.ts → index-BtwKJTLq.d.ts} +1 -1
- package/dist/{index-BivvYYs-.d.ts → index-C2jj8U4a.d.ts} +8 -5
- package/dist/index-CdPXa9h1.d.ts +1 -0
- package/dist/{index-D47aqlpz.d.ts → index-DA4ig3gj.d.ts} +1 -1
- package/dist/input-CVyAVbim.js +1 -0
- package/dist/{types-C19IR7jf.d.ts → input-DV9M6K4v.d.ts} +42 -2
- package/dist/input.d.ts +4 -55
- package/dist/input.js +1 -1
- package/dist/{label-v2-bv98k.d.ts → label-C6YH9skg.d.ts} +8 -6
- package/dist/label-D-D11mlp.js +1 -0
- package/dist/label.d.ts +1 -1
- package/dist/label.js +1 -1
- package/dist/list.d.ts +150 -6
- package/dist/list.js +1 -1
- package/dist/llms.txt +1 -1
- package/dist/main.d.ts +20 -4
- package/dist/main.js +1 -1
- package/dist/mantle.css +21 -7
- package/dist/media-object.d.ts +27 -4
- package/dist/media-object.js +1 -1
- package/dist/multi-select.d.ts +312 -15
- package/dist/multi-select.js +1 -1
- package/dist/otp-input.d.ts +129 -5
- package/dist/otp-input.js +1 -1
- package/dist/pagination.d.ts +70 -6
- package/dist/pagination.js +1 -1
- package/dist/popover-CBMADtjV.js +1 -0
- package/dist/popover.d.ts +1 -181
- package/dist/popover.js +1 -1
- package/dist/primitive-CJRIlrLz.d.ts +31 -0
- package/dist/primitive-DCPHJsRs.js +1 -0
- package/dist/progress.js +1 -1
- package/dist/qr-code.d.ts +113 -5
- package/dist/qr-code.js +1 -1
- package/dist/radio-group.d.ts +128 -23
- package/dist/radio-group.js +1 -1
- package/dist/{resolve-pre-rendered-props-C3e5Auo3.js → resolve-pre-rendered-props-C9uaM9-V.js} +1 -1
- package/dist/sandboxed-on-click.d.ts +2 -2
- package/dist/sandboxed-on-click.js +1 -1
- package/dist/select-SR_9-bxA.js +1 -0
- package/dist/select-idm1jy7y.d.ts +600 -0
- package/dist/select.d.ts +1 -1
- package/dist/select.js +1 -1
- package/dist/selectable-list.d.ts +252 -298
- package/dist/selectable-list.js +1 -1
- package/dist/separator-B5UmkVRL.d.ts +75 -0
- package/dist/separator-bpE_kooz.js +1 -0
- package/dist/separator.d.ts +1 -52
- package/dist/separator.js +1 -1
- package/dist/sheet.d.ts +295 -21
- package/dist/sheet.js +1 -1
- package/dist/skeleton-CsbUHbBA.js +1 -0
- package/dist/skeleton.d.ts +4 -7
- package/dist/skeleton.js +1 -1
- package/dist/skip-to-main-link.d.ts +24 -4
- package/dist/skip-to-main-link.js +1 -1
- package/dist/slot-CDk0Bb9z.js +1 -0
- package/dist/slot.d.ts +1 -1
- package/dist/slot.js +1 -1
- package/dist/{sort-BPX2Fk9t.js → sort-B_DDQcVD.js} +1 -1
- package/dist/split-button.d.ts +28 -13
- package/dist/split-button.js +1 -1
- package/dist/{svg-only-BFeFS1aa.d.ts → svg-only-CdI_v82i.d.ts} +1 -1
- package/dist/svg-only-d-nMCfAI.js +1 -0
- package/dist/switch.d.ts +9 -6
- package/dist/switch.js +1 -1
- package/dist/table-DUSvU_Jw.d.ts +875 -0
- package/dist/table-GDkapNFi.js +1 -0
- package/dist/table.d.ts +1 -1
- package/dist/table.js +1 -1
- package/dist/tabs.d.ts +139 -12
- package/dist/tabs.js +1 -1
- package/dist/text-area.d.ts +1 -1
- package/dist/text-area.js +1 -1
- package/dist/theme-provider-BftkIiZn.js +1 -0
- package/dist/theme-switcher.d.ts +110 -29
- package/dist/theme-switcher.js +1 -1
- package/dist/theme-wVnzzx2F.js +1 -0
- package/dist/theme.d.ts +53 -14
- package/dist/theme.js +1 -1
- package/dist/toast-DKgMRv4F.js +1 -0
- package/dist/toast.d.ts +98 -10
- package/dist/toast.js +1 -1
- package/dist/tooltip.d.ts +28 -1
- package/dist/tooltip.js +1 -1
- package/dist/{traffic-policy-file-0g5RXFqu.js → traffic-policy-file-CF1lbWtp.js} +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/dist/virtual-UrzmaSQm.js +1 -0
- package/dist/well.d.ts +3 -3
- package/dist/well.js +1 -1
- package/package.json +5 -5
- package/dist/anchor-C_tjSVy6.js +0 -1
- package/dist/as-child-CYEVu1WY.d.ts +0 -23
- package/dist/button-5t6-JS_I.js +0 -1
- package/dist/button-ClC60Nzg.js +0 -1
- package/dist/checkbox-DJ2xl7Rc.js +0 -1
- package/dist/choice-DOdyNzFC.js +0 -1
- package/dist/compose-refs-Cjf2gfB8.js +0 -1
- package/dist/dialog-ZCgG41hx.js +0 -1
- package/dist/dropdown-menu-Bt1aKF1g.js +0 -1
- package/dist/icon-CDtYjF_H.js +0 -1
- package/dist/icon-button-DV2-GZHf.js +0 -1
- package/dist/index-g2rfwNCH.d.ts +0 -1
- package/dist/input-Ct1YOqSy.js +0 -1
- package/dist/label-BMlHW_2D.js +0 -1
- package/dist/popover-D5WxxnBY.js +0 -1
- package/dist/primitive-C64-m48O.d.ts +0 -13
- package/dist/primitive-M-kZdNIS.js +0 -1
- package/dist/select-Bwt2YduR.d.ts +0 -345
- package/dist/select-D-5u0Blc.js +0 -1
- package/dist/separator-kBnnv3Cw.js +0 -1
- package/dist/skeleton-Bu3tgNcW.js +0 -1
- package/dist/slot-DmPrjM7N.js +0 -1
- package/dist/svg-only-DDx6FtJd.js +0 -1
- package/dist/table-CPH2md2-.js +0 -1
- package/dist/table-CwFHXC-G.d.ts +0 -414
- package/dist/theme-D8kZCOzM.js +0 -1
- package/dist/theme-provider-Djj_jBo6.js +0 -1
- package/dist/toast-D3ntBmn4.js +0 -1
- package/dist/virtual-DZMBu7Ch.js +0 -1
|
@@ -0,0 +1,875 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
//#region src/components/table/table.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* The `<Table.Root>` is the root container element for all `Table`s.
|
|
5
|
+
* It provides styling and additional functionality, such as horizontal overflow
|
|
6
|
+
* detection.
|
|
7
|
+
*
|
|
8
|
+
* Must be used as the parent of a `<Table.Element>`.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <Table.Root>
|
|
13
|
+
* <Table.Element>
|
|
14
|
+
* <Table.Caption>A list of your recent invoices.</Table.Caption>
|
|
15
|
+
* <Table.Head>
|
|
16
|
+
* <Table.Row>
|
|
17
|
+
* <Table.Header className="w-25">Invoice</Table.Header>
|
|
18
|
+
* <Table.Header>Status</Table.Header>
|
|
19
|
+
* <Table.Header>Method</Table.Header>
|
|
20
|
+
* <Table.Header className="text-right">Amount</Table.Header>
|
|
21
|
+
* </Table.Row>
|
|
22
|
+
* </Table.Head>
|
|
23
|
+
* <Table.Body>
|
|
24
|
+
* {invoices.map((invoice) => (
|
|
25
|
+
* <Table.Row key={invoice.invoice}>
|
|
26
|
+
* <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
|
|
27
|
+
* <Table.Cell>{invoice.paymentStatus}</Table.Cell>
|
|
28
|
+
* <Table.Cell>{invoice.paymentMethod}</Table.Cell>
|
|
29
|
+
* <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
|
|
30
|
+
* </Table.Row>
|
|
31
|
+
* ))}
|
|
32
|
+
* </Table.Body>
|
|
33
|
+
* <Table.Foot>
|
|
34
|
+
* <Table.Row>
|
|
35
|
+
* <Table.Cell colSpan={3}>Total</Table.Cell>
|
|
36
|
+
* <Table.Cell className="text-right">$2,500.00</Table.Cell>
|
|
37
|
+
* </Table.Row>
|
|
38
|
+
* </Table.Foot>
|
|
39
|
+
* </Table.Element>
|
|
40
|
+
* </Table.Root>
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* @see https://mantle.ngrok.com/components/data-display/table#tableroot
|
|
44
|
+
*/
|
|
45
|
+
declare const Root: {
|
|
46
|
+
({ children, className, ref, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
47
|
+
displayName: string;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* The `<Table.Element>` is a structured way to display data in rows and columns. The API
|
|
51
|
+
* matches the HTML `<table>` element 1:1.
|
|
52
|
+
*
|
|
53
|
+
* Permitted content in this order:
|
|
54
|
+
* 1. optional: `<Table.Caption>`
|
|
55
|
+
* 2. 0 or more: `<colgroup>` elements
|
|
56
|
+
* 3. optional: `<Table.Head>`
|
|
57
|
+
* 4. either one of the following:
|
|
58
|
+
* - 0 or more: `<Table.Body>`
|
|
59
|
+
* - 0 or more: `<Table.Row>`
|
|
60
|
+
* 5. optional: `<Table.Foot>`
|
|
61
|
+
*
|
|
62
|
+
* @description
|
|
63
|
+
* Establishes a table formatting context. Elements inside the `<Table.Element>`
|
|
64
|
+
* generate rectangular boxes. Each box occupies a number of table cells
|
|
65
|
+
* according to the following rules:
|
|
66
|
+
* 1. The row boxes fill the table in the source code order from top to bottom.
|
|
67
|
+
* Each row box occupies one row of cells.
|
|
68
|
+
* 2. A row group box occupies one or more row boxes.
|
|
69
|
+
* 3. Column boxes are placed next to each other in source code order.
|
|
70
|
+
* Depending on the value of the dir attribute, the columns are laid in
|
|
71
|
+
* left-to-right or right-to-left direction. A column box occupies one or
|
|
72
|
+
* more columns of table cells.
|
|
73
|
+
* 4. A column group box occupies one or more column boxes.
|
|
74
|
+
* 5. A cell box may span over multiple rows and columns. User agents trim
|
|
75
|
+
* cells to fit in the available number of rows and columns.
|
|
76
|
+
* Table cells do have padding. Boxes that make up a table do not have margins.
|
|
77
|
+
* For more in depth information, see the [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table).
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```tsx
|
|
81
|
+
* <Table.Root>
|
|
82
|
+
* <Table.Element>
|
|
83
|
+
* <Table.Caption>A list of your recent invoices.</Table.Caption>
|
|
84
|
+
* <Table.Head>
|
|
85
|
+
* <Table.Row>
|
|
86
|
+
* <Table.Header className="w-25">Invoice</Table.Header>
|
|
87
|
+
* <Table.Header>Status</Table.Header>
|
|
88
|
+
* <Table.Header>Method</Table.Header>
|
|
89
|
+
* <Table.Header className="text-right">Amount</Table.Header>
|
|
90
|
+
* </Table.Row>
|
|
91
|
+
* </Table.Head>
|
|
92
|
+
* <Table.Body>
|
|
93
|
+
* {invoices.map((invoice) => (
|
|
94
|
+
* <Table.Row key={invoice.invoice}>
|
|
95
|
+
* <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
|
|
96
|
+
* <Table.Cell>{invoice.paymentStatus}</Table.Cell>
|
|
97
|
+
* <Table.Cell>{invoice.paymentMethod}</Table.Cell>
|
|
98
|
+
* <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
|
|
99
|
+
* </Table.Row>
|
|
100
|
+
* ))}
|
|
101
|
+
* </Table.Body>
|
|
102
|
+
* <Table.Foot>
|
|
103
|
+
* <Table.Row>
|
|
104
|
+
* <Table.Cell colSpan={3}>Total</Table.Cell>
|
|
105
|
+
* <Table.Cell className="text-right">$2,500.00</Table.Cell>
|
|
106
|
+
* </Table.Row>
|
|
107
|
+
* </Table.Foot>
|
|
108
|
+
* </Table.Element>
|
|
109
|
+
* </Table.Root>
|
|
110
|
+
* ```
|
|
111
|
+
*
|
|
112
|
+
* @see https://mantle.ngrok.com/components/data-display/table#tableelement
|
|
113
|
+
*/
|
|
114
|
+
declare const Element: {
|
|
115
|
+
({ children, className, ref, ...props }: ComponentProps<"table">): import("react").JSX.Element;
|
|
116
|
+
displayName: string;
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* The `<Table.Head>` is a container for the table's column headers.
|
|
120
|
+
* Encapsulates a set of `<Table.Row>`s, indicating that they comprise the head
|
|
121
|
+
* of a table with information about the table's columns. This is usually in the
|
|
122
|
+
* form of column headers (`<Table.Header>`).
|
|
123
|
+
*
|
|
124
|
+
* Must be used as a child of a `<Table.Element>`. It should only come after any
|
|
125
|
+
* `<Table.Caption>` or `<colgroup>` and before any `<Table.Body>` or `<Table.Foot>`.
|
|
126
|
+
*
|
|
127
|
+
* Permitted Content:
|
|
128
|
+
* 1. 0 or more: `<Table.Row>`
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* ```tsx
|
|
132
|
+
* <Table.Root>
|
|
133
|
+
* <Table.Element>
|
|
134
|
+
* <Table.Caption>A list of your recent invoices.</Table.Caption>
|
|
135
|
+
* <Table.Head>
|
|
136
|
+
* <Table.Row>
|
|
137
|
+
* <Table.Header className="w-25">Invoice</Table.Header>
|
|
138
|
+
* <Table.Header>Status</Table.Header>
|
|
139
|
+
* <Table.Header>Method</Table.Header>
|
|
140
|
+
* <Table.Header className="text-right">Amount</Table.Header>
|
|
141
|
+
* </Table.Row>
|
|
142
|
+
* </Table.Head>
|
|
143
|
+
* <Table.Body>
|
|
144
|
+
* {invoices.map((invoice) => (
|
|
145
|
+
* <Table.Row key={invoice.invoice}>
|
|
146
|
+
* <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
|
|
147
|
+
* <Table.Cell>{invoice.paymentStatus}</Table.Cell>
|
|
148
|
+
* <Table.Cell>{invoice.paymentMethod}</Table.Cell>
|
|
149
|
+
* <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
|
|
150
|
+
* </Table.Row>
|
|
151
|
+
* ))}
|
|
152
|
+
* </Table.Body>
|
|
153
|
+
* <Table.Foot>
|
|
154
|
+
* <Table.Row>
|
|
155
|
+
* <Table.Cell colSpan={3}>Total</Table.Cell>
|
|
156
|
+
* <Table.Cell className="text-right">$2,500.00</Table.Cell>
|
|
157
|
+
* </Table.Row>
|
|
158
|
+
* </Table.Foot>
|
|
159
|
+
* </Table.Element>
|
|
160
|
+
* </Table.Root>
|
|
161
|
+
* ```
|
|
162
|
+
*
|
|
163
|
+
* @see https://mantle.ngrok.com/components/data-display/table#tableheader
|
|
164
|
+
*/
|
|
165
|
+
declare const Head: {
|
|
166
|
+
({ children, className, ref, ...props }: ComponentProps<"thead">): import("react").JSX.Element;
|
|
167
|
+
displayName: string;
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* The `<Table.Body>` encapsulates a set of `<Table.Row>`s, indicating that they
|
|
171
|
+
* comprise the body of a table's (main) data.
|
|
172
|
+
*
|
|
173
|
+
* Must be used as a child of a `<Table.Element>` and only come after any
|
|
174
|
+
* `<Table.Caption>`, `<colgroup>`, or `<Table.Head>`.
|
|
175
|
+
*
|
|
176
|
+
* Permitted Content:
|
|
177
|
+
* 1. 0 or more: `<Table.Row>`
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
* ```tsx
|
|
181
|
+
* <Table.Root>
|
|
182
|
+
* <Table.Element>
|
|
183
|
+
* <Table.Caption>A list of your recent invoices.</Table.Caption>
|
|
184
|
+
* <Table.Head>
|
|
185
|
+
* <Table.Row>
|
|
186
|
+
* <Table.Header className="w-25">Invoice</Table.Header>
|
|
187
|
+
* <Table.Header>Status</Table.Header>
|
|
188
|
+
* <Table.Header>Method</Table.Header>
|
|
189
|
+
* <Table.Header className="text-right">Amount</Table.Header>
|
|
190
|
+
* </Table.Row>
|
|
191
|
+
* </Table.Head>
|
|
192
|
+
* <Table.Body>
|
|
193
|
+
* {invoices.map((invoice) => (
|
|
194
|
+
* <Table.Row key={invoice.invoice}>
|
|
195
|
+
* <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
|
|
196
|
+
* <Table.Cell>{invoice.paymentStatus}</Table.Cell>
|
|
197
|
+
* <Table.Cell>{invoice.paymentMethod}</Table.Cell>
|
|
198
|
+
* <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
|
|
199
|
+
* </Table.Row>
|
|
200
|
+
* ))}
|
|
201
|
+
* </Table.Body>
|
|
202
|
+
* <Table.Foot>
|
|
203
|
+
* <Table.Row>
|
|
204
|
+
* <Table.Cell colSpan={3}>Total</Table.Cell>
|
|
205
|
+
* <Table.Cell className="text-right">$2,500.00</Table.Cell>
|
|
206
|
+
* </Table.Row>
|
|
207
|
+
* </Table.Foot>
|
|
208
|
+
* </Table.Element>
|
|
209
|
+
* </Table.Root>
|
|
210
|
+
* ```
|
|
211
|
+
*
|
|
212
|
+
* @see https://mantle.ngrok.com/components/data-display/table#tablebody
|
|
213
|
+
*/
|
|
214
|
+
declare const Body: {
|
|
215
|
+
({ children, className, ref, ...props }: ComponentProps<"tbody">): import("react").JSX.Element;
|
|
216
|
+
displayName: string;
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
* The `<Table.Foot>` encapsulates a set of `<Table.Row>`s, indicating that they
|
|
220
|
+
* comprise the foot of a table with information about the table's columns. This
|
|
221
|
+
* is usually a summary of the columns, e.g., a sum of the given numbers in a
|
|
222
|
+
* column.
|
|
223
|
+
*
|
|
224
|
+
* Must be used as a child of a `<Table.Element>` and only come after any
|
|
225
|
+
* `<Table.Caption>`, `<colgroup>`, `<Table.Head>`, and `<Table.Body>`.
|
|
226
|
+
*
|
|
227
|
+
* Permitted Content:
|
|
228
|
+
* 1. 0 or more: `<Table.Row>` elements
|
|
229
|
+
*
|
|
230
|
+
* @example
|
|
231
|
+
* ```tsx
|
|
232
|
+
* <Table.Root>
|
|
233
|
+
* <Table.Element>
|
|
234
|
+
* <Table.Caption>A list of your recent invoices.</Table.Caption>
|
|
235
|
+
* <Table.Head>
|
|
236
|
+
* <Table.Row>
|
|
237
|
+
* <Table.Header className="w-25">Invoice</Table.Header>
|
|
238
|
+
* <Table.Header>Status</Table.Header>
|
|
239
|
+
* <Table.Header>Method</Table.Header>
|
|
240
|
+
* <Table.Header className="text-right">Amount</Table.Header>
|
|
241
|
+
* </Table.Row>
|
|
242
|
+
* </Table.Head>
|
|
243
|
+
* <Table.Body>
|
|
244
|
+
* {invoices.map((invoice) => (
|
|
245
|
+
* <Table.Row key={invoice.invoice}>
|
|
246
|
+
* <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
|
|
247
|
+
* <Table.Cell>{invoice.paymentStatus}</Table.Cell>
|
|
248
|
+
* <Table.Cell>{invoice.paymentMethod}</Table.Cell>
|
|
249
|
+
* <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
|
|
250
|
+
* </Table.Row>
|
|
251
|
+
* ))}
|
|
252
|
+
* </Table.Body>
|
|
253
|
+
* <Table.Foot>
|
|
254
|
+
* <Table.Row>
|
|
255
|
+
* <Table.Cell colSpan={3}>Total</Table.Cell>
|
|
256
|
+
* <Table.Cell className="text-right">$2,500.00</Table.Cell>
|
|
257
|
+
* </Table.Row>
|
|
258
|
+
* </Table.Foot>
|
|
259
|
+
* </Table.Element>
|
|
260
|
+
* </Table.Root>
|
|
261
|
+
* ```
|
|
262
|
+
*
|
|
263
|
+
* @see https://mantle.ngrok.com/components/data-display/table#tablefoot
|
|
264
|
+
*/
|
|
265
|
+
declare const Foot: {
|
|
266
|
+
({ children, className, ref, ...props }: ComponentProps<"tfoot">): import("react").JSX.Element;
|
|
267
|
+
displayName: string;
|
|
268
|
+
};
|
|
269
|
+
/**
|
|
270
|
+
* The `<Table.Row>` defines a row of cells in a table. The row's cells can then
|
|
271
|
+
* be established using a mix of `<Table.Cell>` and `<Table.Header>` components.
|
|
272
|
+
*
|
|
273
|
+
* Must be used as a child of a `<Table.Head>`, `<Table.Body>`, or `<Table.Foot>`.
|
|
274
|
+
*
|
|
275
|
+
* Permitted Content:
|
|
276
|
+
* 1. 0 or more: `<Table.Header>` or `<Table.Cell>`
|
|
277
|
+
*
|
|
278
|
+
* @example
|
|
279
|
+
* ```tsx
|
|
280
|
+
* <Table.Root>
|
|
281
|
+
* <Table.Element>
|
|
282
|
+
* <Table.Caption>A list of your recent invoices.</Table.Caption>
|
|
283
|
+
* <Table.Head>
|
|
284
|
+
* <Table.Row>
|
|
285
|
+
* <Table.Header className="w-25">Invoice</Table.Header>
|
|
286
|
+
* <Table.Header>Status</Table.Header>
|
|
287
|
+
* <Table.Header>Method</Table.Header>
|
|
288
|
+
* <Table.Header className="text-right">Amount</Table.Header>
|
|
289
|
+
* </Table.Row>
|
|
290
|
+
* </Table.Head>
|
|
291
|
+
* <Table.Body>
|
|
292
|
+
* {invoices.map((invoice) => (
|
|
293
|
+
* <Table.Row key={invoice.invoice}>
|
|
294
|
+
* <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
|
|
295
|
+
* <Table.Cell>{invoice.paymentStatus}</Table.Cell>
|
|
296
|
+
* <Table.Cell>{invoice.paymentMethod}</Table.Cell>
|
|
297
|
+
* <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
|
|
298
|
+
* </Table.Row>
|
|
299
|
+
* ))}
|
|
300
|
+
* </Table.Body>
|
|
301
|
+
* <Table.Foot>
|
|
302
|
+
* <Table.Row>
|
|
303
|
+
* <Table.Cell colSpan={3}>Total</Table.Cell>
|
|
304
|
+
* <Table.Cell className="text-right">$2,500.00</Table.Cell>
|
|
305
|
+
* </Table.Row>
|
|
306
|
+
* </Table.Foot>
|
|
307
|
+
* </Table.Element>
|
|
308
|
+
* </Table.Root>
|
|
309
|
+
* ```
|
|
310
|
+
*
|
|
311
|
+
* @see https://mantle.ngrok.com/components/data-display/table#tablerow
|
|
312
|
+
*/
|
|
313
|
+
declare const Row: {
|
|
314
|
+
({ children, className, ref, ...props }: ComponentProps<"tr">): import("react").JSX.Element;
|
|
315
|
+
displayName: string;
|
|
316
|
+
};
|
|
317
|
+
/**
|
|
318
|
+
* The `<Table.Header>` defines a cell as the header of a group of table cells
|
|
319
|
+
* and may be used as a child of a `<Table.Row>`. The exact nature of this group
|
|
320
|
+
* is defined by the scope and headers attributes.
|
|
321
|
+
*
|
|
322
|
+
* Must be used as a child of a `<Table.Row>`.
|
|
323
|
+
*
|
|
324
|
+
* Permitted Content:
|
|
325
|
+
* 1. Flow content, but with no header, footer, sectioning content, or heading
|
|
326
|
+
* content descendants.
|
|
327
|
+
*
|
|
328
|
+
* @example
|
|
329
|
+
* ```tsx
|
|
330
|
+
* <Table.Root>
|
|
331
|
+
* <Table.Element>
|
|
332
|
+
* <Table.Caption>A list of your recent invoices.</Table.Caption>
|
|
333
|
+
* <Table.Head>
|
|
334
|
+
* <Table.Row>
|
|
335
|
+
* <Table.Header className="w-25">Invoice</Table.Header>
|
|
336
|
+
* <Table.Header>Status</Table.Header>
|
|
337
|
+
* <Table.Header>Method</Table.Header>
|
|
338
|
+
* <Table.Header className="text-right">Amount</Table.Header>
|
|
339
|
+
* </Table.Row>
|
|
340
|
+
* </Table.Head>
|
|
341
|
+
* <Table.Body>
|
|
342
|
+
* {invoices.map((invoice) => (
|
|
343
|
+
* <Table.Row key={invoice.invoice}>
|
|
344
|
+
* <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
|
|
345
|
+
* <Table.Cell>{invoice.paymentStatus}</Table.Cell>
|
|
346
|
+
* <Table.Cell>{invoice.paymentMethod}</Table.Cell>
|
|
347
|
+
* <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
|
|
348
|
+
* </Table.Row>
|
|
349
|
+
* ))}
|
|
350
|
+
* </Table.Body>
|
|
351
|
+
* <Table.Foot>
|
|
352
|
+
* <Table.Row>
|
|
353
|
+
* <Table.Cell colSpan={3}>Total</Table.Cell>
|
|
354
|
+
* <Table.Cell className="text-right">$2,500.00</Table.Cell>
|
|
355
|
+
* </Table.Row>
|
|
356
|
+
* </Table.Foot>
|
|
357
|
+
* </Table.Element>
|
|
358
|
+
* </Table.Root>
|
|
359
|
+
* ```
|
|
360
|
+
*
|
|
361
|
+
* @see https://mantle.ngrok.com/components/data-display/table#tableheader
|
|
362
|
+
*/
|
|
363
|
+
declare const Header: {
|
|
364
|
+
({ children, className, ref, ...props }: ComponentProps<"th">): import("react").JSX.Element;
|
|
365
|
+
displayName: string;
|
|
366
|
+
};
|
|
367
|
+
/**
|
|
368
|
+
* The `<Table.Cell>` defines a cell of a table that contains data and may be
|
|
369
|
+
* used as a child of a `<Table.Row>`.
|
|
370
|
+
*
|
|
371
|
+
* Must be used as a child of a `<Table.Row>`.
|
|
372
|
+
*
|
|
373
|
+
* Permitted Content:
|
|
374
|
+
* 1. Flow content
|
|
375
|
+
*
|
|
376
|
+
* @example
|
|
377
|
+
* ```tsx
|
|
378
|
+
* <Table.Root>
|
|
379
|
+
* <Table.Element>
|
|
380
|
+
* <Table.Caption>A list of your recent invoices.</Table.Caption>
|
|
381
|
+
* <Table.Head>
|
|
382
|
+
* <Table.Row>
|
|
383
|
+
* <Table.Header className="w-25">Invoice</Table.Header>
|
|
384
|
+
* <Table.Header>Status</Table.Header>
|
|
385
|
+
* <Table.Header>Method</Table.Header>
|
|
386
|
+
* <Table.Header className="text-right">Amount</Table.Header>
|
|
387
|
+
* </Table.Row>
|
|
388
|
+
* </Table.Head>
|
|
389
|
+
* <Table.Body>
|
|
390
|
+
* {invoices.map((invoice) => (
|
|
391
|
+
* <Table.Row key={invoice.invoice}>
|
|
392
|
+
* <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
|
|
393
|
+
* <Table.Cell>{invoice.paymentStatus}</Table.Cell>
|
|
394
|
+
* <Table.Cell>{invoice.paymentMethod}</Table.Cell>
|
|
395
|
+
* <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
|
|
396
|
+
* </Table.Row>
|
|
397
|
+
* ))}
|
|
398
|
+
* </Table.Body>
|
|
399
|
+
* <Table.Foot>
|
|
400
|
+
* <Table.Row>
|
|
401
|
+
* <Table.Cell colSpan={3}>Total</Table.Cell>
|
|
402
|
+
* <Table.Cell className="text-right">$2,500.00</Table.Cell>
|
|
403
|
+
* </Table.Row>
|
|
404
|
+
* </Table.Foot>
|
|
405
|
+
* </Table.Element>
|
|
406
|
+
* </Table.Root>
|
|
407
|
+
* ```
|
|
408
|
+
*
|
|
409
|
+
* @see https://mantle.ngrok.com/components/data-display/table#tablecell
|
|
410
|
+
*/
|
|
411
|
+
declare const Cell: {
|
|
412
|
+
({ children, className, ref, ...props }: ComponentProps<"td">): import("react").JSX.Element;
|
|
413
|
+
displayName: string;
|
|
414
|
+
};
|
|
415
|
+
/**
|
|
416
|
+
* The optional `<Table.Caption>` specifies the caption (or title) of a table,
|
|
417
|
+
* providing the table an accessible description.
|
|
418
|
+
*
|
|
419
|
+
* If used, must be the first child of a `<Table.Element>`.
|
|
420
|
+
*
|
|
421
|
+
* Permitted Content:
|
|
422
|
+
* 1. Flow content
|
|
423
|
+
*
|
|
424
|
+
* @example
|
|
425
|
+
* ```tsx
|
|
426
|
+
* <Table.Root>
|
|
427
|
+
* <Table.Element>
|
|
428
|
+
* <Table.Caption>A list of your recent invoices.</Table.Caption>
|
|
429
|
+
* <Table.Head>
|
|
430
|
+
* <Table.Row>
|
|
431
|
+
* <Table.Header className="w-25">Invoice</Table.Header>
|
|
432
|
+
* <Table.Header>Status</Table.Header>
|
|
433
|
+
* <Table.Header>Method</Table.Header>
|
|
434
|
+
* <Table.Header className="text-right">Amount</Table.Header>
|
|
435
|
+
* </Table.Row>
|
|
436
|
+
* </Table.Head>
|
|
437
|
+
* <Table.Body>
|
|
438
|
+
* {invoices.map((invoice) => (
|
|
439
|
+
* <Table.Row key={invoice.invoice}>
|
|
440
|
+
* <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
|
|
441
|
+
* <Table.Cell>{invoice.paymentStatus}</Table.Cell>
|
|
442
|
+
* <Table.Cell>{invoice.paymentMethod}</Table.Cell>
|
|
443
|
+
* <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
|
|
444
|
+
* </Table.Row>
|
|
445
|
+
* ))}
|
|
446
|
+
* </Table.Body>
|
|
447
|
+
* <Table.Foot>
|
|
448
|
+
* <Table.Row>
|
|
449
|
+
* <Table.Cell colSpan={3}>Total</Table.Cell>
|
|
450
|
+
* <Table.Cell className="text-right">$2,500.00</Table.Cell>
|
|
451
|
+
* </Table.Row>
|
|
452
|
+
* </Table.Foot>
|
|
453
|
+
* </Table.Element>
|
|
454
|
+
* </Table.Root>
|
|
455
|
+
* ```
|
|
456
|
+
*
|
|
457
|
+
* @see https://mantle.ngrok.com/components/data-display/table#tablecaption
|
|
458
|
+
*/
|
|
459
|
+
declare const Caption: {
|
|
460
|
+
({ children, className, ref, ...props }: ComponentProps<"caption">): import("react").JSX.Element;
|
|
461
|
+
displayName: string;
|
|
462
|
+
};
|
|
463
|
+
/**
|
|
464
|
+
* Use `Table` for STATIC, layout-driven tabular data — read-only data dumps,
|
|
465
|
+
* simple key/value displays, plain markup tables. The API matches the HTML
|
|
466
|
+
* `<table>` element 1:1, with no built-in sorting, filtering, or pagination.
|
|
467
|
+
*
|
|
468
|
+
* For INTERACTIVE tabular data with sorting / filtering / pagination / row
|
|
469
|
+
* selection, use `DataTable` (built on TanStack Table) instead.
|
|
470
|
+
*
|
|
471
|
+
* @see https://mantle.ngrok.com/components/data-display/table
|
|
472
|
+
*
|
|
473
|
+
* @example
|
|
474
|
+
* Composition:
|
|
475
|
+
* ```
|
|
476
|
+
* Table.Root
|
|
477
|
+
* └── Table.Element
|
|
478
|
+
* ├── Table.Caption
|
|
479
|
+
* ├── Table.Head
|
|
480
|
+
* │ └── Table.Row
|
|
481
|
+
* │ └── Table.Header
|
|
482
|
+
* ├── Table.Body
|
|
483
|
+
* │ └── Table.Row
|
|
484
|
+
* │ └── Table.Cell
|
|
485
|
+
* └── Table.Foot
|
|
486
|
+
* ```
|
|
487
|
+
*
|
|
488
|
+
* @example
|
|
489
|
+
* ```tsx
|
|
490
|
+
* <Table.Root>
|
|
491
|
+
* <Table.Element>
|
|
492
|
+
* <Table.Caption>A list of your recent invoices.</Table.Caption>
|
|
493
|
+
* <Table.Head>
|
|
494
|
+
* <Table.Row>
|
|
495
|
+
* <Table.Header className="w-25">Invoice</Table.Header>
|
|
496
|
+
* <Table.Header>Status</Table.Header>
|
|
497
|
+
* <Table.Header>Method</Table.Header>
|
|
498
|
+
* <Table.Header className="text-right">Amount</Table.Header>
|
|
499
|
+
* </Table.Row>
|
|
500
|
+
* </Table.Head>
|
|
501
|
+
* <Table.Body>
|
|
502
|
+
* {invoices.map((invoice) => (
|
|
503
|
+
* <Table.Row key={invoice.invoice}>
|
|
504
|
+
* <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
|
|
505
|
+
* <Table.Cell>{invoice.paymentStatus}</Table.Cell>
|
|
506
|
+
* <Table.Cell>{invoice.paymentMethod}</Table.Cell>
|
|
507
|
+
* <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
|
|
508
|
+
* </Table.Row>
|
|
509
|
+
* ))}
|
|
510
|
+
* </Table.Body>
|
|
511
|
+
* <Table.Foot>
|
|
512
|
+
* <Table.Row>
|
|
513
|
+
* <Table.Cell colSpan={3}>Total</Table.Cell>
|
|
514
|
+
* <Table.Cell className="text-right">$2,500.00</Table.Cell>
|
|
515
|
+
* </Table.Row>
|
|
516
|
+
* </Table.Foot>
|
|
517
|
+
* </Table.Element>
|
|
518
|
+
* </Table.Root>
|
|
519
|
+
* ```
|
|
520
|
+
*/
|
|
521
|
+
declare const Table: {
|
|
522
|
+
/**
|
|
523
|
+
* The body section of the table. Encapsulates a set of table rows comprising the body of a table's main data.
|
|
524
|
+
*
|
|
525
|
+
* @see https://mantle.ngrok.com/components/data-display/table#tablebody
|
|
526
|
+
*
|
|
527
|
+
* @example
|
|
528
|
+
* ```tsx
|
|
529
|
+
* <Table.Root>
|
|
530
|
+
* <Table.Element>
|
|
531
|
+
* <Table.Caption>A list of your recent invoices.</Table.Caption>
|
|
532
|
+
* <Table.Head>
|
|
533
|
+
* <Table.Row>
|
|
534
|
+
* <Table.Header className="w-25">Invoice</Table.Header>
|
|
535
|
+
* <Table.Header>Status</Table.Header>
|
|
536
|
+
* <Table.Header>Method</Table.Header>
|
|
537
|
+
* <Table.Header className="text-right">Amount</Table.Header>
|
|
538
|
+
* </Table.Row>
|
|
539
|
+
* </Table.Head>
|
|
540
|
+
* <Table.Body>
|
|
541
|
+
* {invoices.map((invoice) => (
|
|
542
|
+
* <Table.Row key={invoice.invoice}>
|
|
543
|
+
* <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
|
|
544
|
+
* <Table.Cell>{invoice.paymentStatus}</Table.Cell>
|
|
545
|
+
* <Table.Cell>{invoice.paymentMethod}</Table.Cell>
|
|
546
|
+
* <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
|
|
547
|
+
* </Table.Row>
|
|
548
|
+
* ))}
|
|
549
|
+
* </Table.Body>
|
|
550
|
+
* <Table.Foot>
|
|
551
|
+
* <Table.Row>
|
|
552
|
+
* <Table.Cell colSpan={3}>Total</Table.Cell>
|
|
553
|
+
* <Table.Cell className="text-right">$2,500.00</Table.Cell>
|
|
554
|
+
* </Table.Row>
|
|
555
|
+
* </Table.Foot>
|
|
556
|
+
* </Table.Element>
|
|
557
|
+
* </Table.Root>
|
|
558
|
+
* ```
|
|
559
|
+
*/
|
|
560
|
+
readonly Body: typeof Body;
|
|
561
|
+
/**
|
|
562
|
+
* An optional caption that specifies the caption (or title) of a table, providing an accessible description.
|
|
563
|
+
*
|
|
564
|
+
* @see https://mantle.ngrok.com/components/data-display/table#tablecaption
|
|
565
|
+
*
|
|
566
|
+
* @example
|
|
567
|
+
* ```tsx
|
|
568
|
+
* <Table.Root>
|
|
569
|
+
* <Table.Element>
|
|
570
|
+
* <Table.Caption>A list of your recent invoices.</Table.Caption>
|
|
571
|
+
* <Table.Head>
|
|
572
|
+
* <Table.Row>
|
|
573
|
+
* <Table.Header className="w-25">Invoice</Table.Header>
|
|
574
|
+
* <Table.Header>Status</Table.Header>
|
|
575
|
+
* <Table.Header>Method</Table.Header>
|
|
576
|
+
* <Table.Header className="text-right">Amount</Table.Header>
|
|
577
|
+
* </Table.Row>
|
|
578
|
+
* </Table.Head>
|
|
579
|
+
* <Table.Body>
|
|
580
|
+
* {invoices.map((invoice) => (
|
|
581
|
+
* <Table.Row key={invoice.invoice}>
|
|
582
|
+
* <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
|
|
583
|
+
* <Table.Cell>{invoice.paymentStatus}</Table.Cell>
|
|
584
|
+
* <Table.Cell>{invoice.paymentMethod}</Table.Cell>
|
|
585
|
+
* <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
|
|
586
|
+
* </Table.Row>
|
|
587
|
+
* ))}
|
|
588
|
+
* </Table.Body>
|
|
589
|
+
* <Table.Foot>
|
|
590
|
+
* <Table.Row>
|
|
591
|
+
* <Table.Cell colSpan={3}>Total</Table.Cell>
|
|
592
|
+
* <Table.Cell className="text-right">$2,500.00</Table.Cell>
|
|
593
|
+
* </Table.Row>
|
|
594
|
+
* </Table.Foot>
|
|
595
|
+
* </Table.Element>
|
|
596
|
+
* </Table.Root>
|
|
597
|
+
* ```
|
|
598
|
+
*/
|
|
599
|
+
readonly Caption: typeof Caption;
|
|
600
|
+
/**
|
|
601
|
+
* A cell that contains data and may be used as a child of a table row.
|
|
602
|
+
*
|
|
603
|
+
* @see https://mantle.ngrok.com/components/data-display/table#tablecell
|
|
604
|
+
*
|
|
605
|
+
* @example
|
|
606
|
+
* ```tsx
|
|
607
|
+
* <Table.Root>
|
|
608
|
+
* <Table.Element>
|
|
609
|
+
* <Table.Caption>A list of your recent invoices.</Table.Caption>
|
|
610
|
+
* <Table.Head>
|
|
611
|
+
* <Table.Row>
|
|
612
|
+
* <Table.Header className="w-25">Invoice</Table.Header>
|
|
613
|
+
* <Table.Header>Status</Table.Header>
|
|
614
|
+
* <Table.Header>Method</Table.Header>
|
|
615
|
+
* <Table.Header className="text-right">Amount</Table.Header>
|
|
616
|
+
* </Table.Row>
|
|
617
|
+
* </Table.Head>
|
|
618
|
+
* <Table.Body>
|
|
619
|
+
* {invoices.map((invoice) => (
|
|
620
|
+
* <Table.Row key={invoice.invoice}>
|
|
621
|
+
* <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
|
|
622
|
+
* <Table.Cell>{invoice.paymentStatus}</Table.Cell>
|
|
623
|
+
* <Table.Cell>{invoice.paymentMethod}</Table.Cell>
|
|
624
|
+
* <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
|
|
625
|
+
* </Table.Row>
|
|
626
|
+
* ))}
|
|
627
|
+
* </Table.Body>
|
|
628
|
+
* <Table.Foot>
|
|
629
|
+
* <Table.Row>
|
|
630
|
+
* <Table.Cell colSpan={3}>Total</Table.Cell>
|
|
631
|
+
* <Table.Cell className="text-right">$2,500.00</Table.Cell>
|
|
632
|
+
* </Table.Row>
|
|
633
|
+
* </Table.Foot>
|
|
634
|
+
* </Table.Element>
|
|
635
|
+
* </Table.Root>
|
|
636
|
+
* ```
|
|
637
|
+
*/
|
|
638
|
+
readonly Cell: typeof Cell;
|
|
639
|
+
/**
|
|
640
|
+
* A structured way to display data in rows and columns. The API matches the HTML table element 1:1.
|
|
641
|
+
*
|
|
642
|
+
* @see https://mantle.ngrok.com/components/data-display/table#tableelement
|
|
643
|
+
*
|
|
644
|
+
* @example
|
|
645
|
+
* ```tsx
|
|
646
|
+
* <Table.Root>
|
|
647
|
+
* <Table.Element>
|
|
648
|
+
* <Table.Caption>A list of your recent invoices.</Table.Caption>
|
|
649
|
+
* <Table.Head>
|
|
650
|
+
* <Table.Row>
|
|
651
|
+
* <Table.Header className="w-25">Invoice</Table.Header>
|
|
652
|
+
* <Table.Header>Status</Table.Header>
|
|
653
|
+
* <Table.Header>Method</Table.Header>
|
|
654
|
+
* <Table.Header className="text-right">Amount</Table.Header>
|
|
655
|
+
* </Table.Row>
|
|
656
|
+
* </Table.Head>
|
|
657
|
+
* <Table.Body>
|
|
658
|
+
* {invoices.map((invoice) => (
|
|
659
|
+
* <Table.Row key={invoice.invoice}>
|
|
660
|
+
* <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
|
|
661
|
+
* <Table.Cell>{invoice.paymentStatus}</Table.Cell>
|
|
662
|
+
* <Table.Cell>{invoice.paymentMethod}</Table.Cell>
|
|
663
|
+
* <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
|
|
664
|
+
* </Table.Row>
|
|
665
|
+
* ))}
|
|
666
|
+
* </Table.Body>
|
|
667
|
+
* <Table.Foot>
|
|
668
|
+
* <Table.Row>
|
|
669
|
+
* <Table.Cell colSpan={3}>Total</Table.Cell>
|
|
670
|
+
* <Table.Cell className="text-right">$2,500.00</Table.Cell>
|
|
671
|
+
* </Table.Row>
|
|
672
|
+
* </Table.Foot>
|
|
673
|
+
* </Table.Element>
|
|
674
|
+
* </Table.Root>
|
|
675
|
+
* ```
|
|
676
|
+
*/
|
|
677
|
+
readonly Element: typeof Element;
|
|
678
|
+
/**
|
|
679
|
+
* The foot section of a table. Encapsulates a set of table rows comprising the foot with summary information.
|
|
680
|
+
*
|
|
681
|
+
* @see https://mantle.ngrok.com/components/data-display/table#tablefoot
|
|
682
|
+
*
|
|
683
|
+
* @example
|
|
684
|
+
* ```tsx
|
|
685
|
+
* <Table.Root>
|
|
686
|
+
* <Table.Element>
|
|
687
|
+
* <Table.Caption>A list of your recent invoices.</Table.Caption>
|
|
688
|
+
* <Table.Head>
|
|
689
|
+
* <Table.Row>
|
|
690
|
+
* <Table.Header className="w-25">Invoice</Table.Header>
|
|
691
|
+
* <Table.Header>Status</Table.Header>
|
|
692
|
+
* <Table.Header>Method</Table.Header>
|
|
693
|
+
* <Table.Header className="text-right">Amount</Table.Header>
|
|
694
|
+
* </Table.Row>
|
|
695
|
+
* </Table.Head>
|
|
696
|
+
* <Table.Body>
|
|
697
|
+
* {invoices.map((invoice) => (
|
|
698
|
+
* <Table.Row key={invoice.invoice}>
|
|
699
|
+
* <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
|
|
700
|
+
* <Table.Cell>{invoice.paymentStatus}</Table.Cell>
|
|
701
|
+
* <Table.Cell>{invoice.paymentMethod}</Table.Cell>
|
|
702
|
+
* <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
|
|
703
|
+
* </Table.Row>
|
|
704
|
+
* ))}
|
|
705
|
+
* </Table.Body>
|
|
706
|
+
* <Table.Foot>
|
|
707
|
+
* <Table.Row>
|
|
708
|
+
* <Table.Cell colSpan={3}>Total</Table.Cell>
|
|
709
|
+
* <Table.Cell className="text-right">$2,500.00</Table.Cell>
|
|
710
|
+
* </Table.Row>
|
|
711
|
+
* </Table.Foot>
|
|
712
|
+
* </Table.Element>
|
|
713
|
+
* </Table.Root>
|
|
714
|
+
* ```
|
|
715
|
+
*/
|
|
716
|
+
readonly Foot: typeof Foot;
|
|
717
|
+
/**
|
|
718
|
+
* The head section of a table. Contains the table's column headers information.
|
|
719
|
+
*
|
|
720
|
+
* @see https://mantle.ngrok.com/components/data-display/table#tableheader
|
|
721
|
+
*
|
|
722
|
+
* @example
|
|
723
|
+
* ```tsx
|
|
724
|
+
* <Table.Root>
|
|
725
|
+
* <Table.Element>
|
|
726
|
+
* <Table.Caption>A list of your recent invoices.</Table.Caption>
|
|
727
|
+
* <Table.Head>
|
|
728
|
+
* <Table.Row>
|
|
729
|
+
* <Table.Header className="w-25">Invoice</Table.Header>
|
|
730
|
+
* <Table.Header>Status</Table.Header>
|
|
731
|
+
* <Table.Header>Method</Table.Header>
|
|
732
|
+
* <Table.Header className="text-right">Amount</Table.Header>
|
|
733
|
+
* </Table.Row>
|
|
734
|
+
* </Table.Head>
|
|
735
|
+
* <Table.Body>
|
|
736
|
+
* {invoices.map((invoice) => (
|
|
737
|
+
* <Table.Row key={invoice.invoice}>
|
|
738
|
+
* <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
|
|
739
|
+
* <Table.Cell>{invoice.paymentStatus}</Table.Cell>
|
|
740
|
+
* <Table.Cell>{invoice.paymentMethod}</Table.Cell>
|
|
741
|
+
* <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
|
|
742
|
+
* </Table.Row>
|
|
743
|
+
* ))}
|
|
744
|
+
* </Table.Body>
|
|
745
|
+
* <Table.Foot>
|
|
746
|
+
* <Table.Row>
|
|
747
|
+
* <Table.Cell colSpan={3}>Total</Table.Cell>
|
|
748
|
+
* <Table.Cell className="text-right">$2,500.00</Table.Cell>
|
|
749
|
+
* </Table.Row>
|
|
750
|
+
* </Table.Foot>
|
|
751
|
+
* </Table.Element>
|
|
752
|
+
* </Table.Root>
|
|
753
|
+
* ```
|
|
754
|
+
*/
|
|
755
|
+
readonly Head: typeof Head;
|
|
756
|
+
/**
|
|
757
|
+
* A cell that defines the header of a group of table cells as a child of a table row.
|
|
758
|
+
*
|
|
759
|
+
* @see https://mantle.ngrok.com/components/data-display/table#tableheader
|
|
760
|
+
*
|
|
761
|
+
* @example
|
|
762
|
+
* ```tsx
|
|
763
|
+
* <Table.Root>
|
|
764
|
+
* <Table.Element>
|
|
765
|
+
* <Table.Caption>A list of your recent invoices.</Table.Caption>
|
|
766
|
+
* <Table.Head>
|
|
767
|
+
* <Table.Row>
|
|
768
|
+
* <Table.Header className="w-25">Invoice</Table.Header>
|
|
769
|
+
* <Table.Header>Status</Table.Header>
|
|
770
|
+
* <Table.Header>Method</Table.Header>
|
|
771
|
+
* <Table.Header className="text-right">Amount</Table.Header>
|
|
772
|
+
* </Table.Row>
|
|
773
|
+
* </Table.Head>
|
|
774
|
+
* <Table.Body>
|
|
775
|
+
* {invoices.map((invoice) => (
|
|
776
|
+
* <Table.Row key={invoice.invoice}>
|
|
777
|
+
* <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
|
|
778
|
+
* <Table.Cell>{invoice.paymentStatus}</Table.Cell>
|
|
779
|
+
* <Table.Cell>{invoice.paymentMethod}</Table.Cell>
|
|
780
|
+
* <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
|
|
781
|
+
* </Table.Row>
|
|
782
|
+
* ))}
|
|
783
|
+
* </Table.Body>
|
|
784
|
+
* <Table.Foot>
|
|
785
|
+
* <Table.Row>
|
|
786
|
+
* <Table.Cell colSpan={3}>Total</Table.Cell>
|
|
787
|
+
* <Table.Cell className="text-right">$2,500.00</Table.Cell>
|
|
788
|
+
* </Table.Row>
|
|
789
|
+
* </Table.Foot>
|
|
790
|
+
* </Table.Element>
|
|
791
|
+
* </Table.Root>
|
|
792
|
+
* ```
|
|
793
|
+
*/
|
|
794
|
+
readonly Header: typeof Header;
|
|
795
|
+
/**
|
|
796
|
+
* The root container element for all tables. Provides styling and additional functionality like horizontal overflow detection.
|
|
797
|
+
*
|
|
798
|
+
* @see https://mantle.ngrok.com/components/data-display/table#tableroot
|
|
799
|
+
*
|
|
800
|
+
* @example
|
|
801
|
+
* ```tsx
|
|
802
|
+
* <Table.Root>
|
|
803
|
+
* <Table.Element>
|
|
804
|
+
* <Table.Caption>A list of your recent invoices.</Table.Caption>
|
|
805
|
+
* <Table.Head>
|
|
806
|
+
* <Table.Row>
|
|
807
|
+
* <Table.Header className="w-25">Invoice</Table.Header>
|
|
808
|
+
* <Table.Header>Status</Table.Header>
|
|
809
|
+
* <Table.Header>Method</Table.Header>
|
|
810
|
+
* <Table.Header className="text-right">Amount</Table.Header>
|
|
811
|
+
* </Table.Row>
|
|
812
|
+
* </Table.Head>
|
|
813
|
+
* <Table.Body>
|
|
814
|
+
* {invoices.map((invoice) => (
|
|
815
|
+
* <Table.Row key={invoice.invoice}>
|
|
816
|
+
* <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
|
|
817
|
+
* <Table.Cell>{invoice.paymentStatus}</Table.Cell>
|
|
818
|
+
* <Table.Cell>{invoice.paymentMethod}</Table.Cell>
|
|
819
|
+
* <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
|
|
820
|
+
* </Table.Row>
|
|
821
|
+
* ))}
|
|
822
|
+
* </Table.Body>
|
|
823
|
+
* <Table.Foot>
|
|
824
|
+
* <Table.Row>
|
|
825
|
+
* <Table.Cell colSpan={3}>Total</Table.Cell>
|
|
826
|
+
* <Table.Cell className="text-right">$2,500.00</Table.Cell>
|
|
827
|
+
* </Table.Row>
|
|
828
|
+
* </Table.Foot>
|
|
829
|
+
* </Table.Element>
|
|
830
|
+
* </Table.Root>
|
|
831
|
+
* ```
|
|
832
|
+
*/
|
|
833
|
+
readonly Root: typeof Root;
|
|
834
|
+
/**
|
|
835
|
+
* Defines a row of cells in a table. Contains a mix of table cells and table headers.
|
|
836
|
+
*
|
|
837
|
+
* @see https://mantle.ngrok.com/components/data-display/table#tablerow
|
|
838
|
+
*
|
|
839
|
+
* @example
|
|
840
|
+
* ```tsx
|
|
841
|
+
* <Table.Root>
|
|
842
|
+
* <Table.Element>
|
|
843
|
+
* <Table.Caption>A list of your recent invoices.</Table.Caption>
|
|
844
|
+
* <Table.Head>
|
|
845
|
+
* <Table.Row>
|
|
846
|
+
* <Table.Header className="w-25">Invoice</Table.Header>
|
|
847
|
+
* <Table.Header>Status</Table.Header>
|
|
848
|
+
* <Table.Header>Method</Table.Header>
|
|
849
|
+
* <Table.Header className="text-right">Amount</Table.Header>
|
|
850
|
+
* </Table.Row>
|
|
851
|
+
* </Table.Head>
|
|
852
|
+
* <Table.Body>
|
|
853
|
+
* {invoices.map((invoice) => (
|
|
854
|
+
* <Table.Row key={invoice.invoice}>
|
|
855
|
+
* <Table.Cell className="font-medium">{invoice.invoice}</Table.Cell>
|
|
856
|
+
* <Table.Cell>{invoice.paymentStatus}</Table.Cell>
|
|
857
|
+
* <Table.Cell>{invoice.paymentMethod}</Table.Cell>
|
|
858
|
+
* <Table.Cell className="text-right">{invoice.totalAmount}</Table.Cell>
|
|
859
|
+
* </Table.Row>
|
|
860
|
+
* ))}
|
|
861
|
+
* </Table.Body>
|
|
862
|
+
* <Table.Foot>
|
|
863
|
+
* <Table.Row>
|
|
864
|
+
* <Table.Cell colSpan={3}>Total</Table.Cell>
|
|
865
|
+
* <Table.Cell className="text-right">$2,500.00</Table.Cell>
|
|
866
|
+
* </Table.Row>
|
|
867
|
+
* </Table.Foot>
|
|
868
|
+
* </Table.Element>
|
|
869
|
+
* </Table.Root>
|
|
870
|
+
* ```
|
|
871
|
+
*/
|
|
872
|
+
readonly Row: typeof Row;
|
|
873
|
+
};
|
|
874
|
+
//#endregion
|
|
875
|
+
export { Table as t };
|