@syscore/ui-library 2.0.0-beta-publish-workflow-beta.3 → 2.0.0-beta-publish-workflow-beta.4
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/client/components/ui/table.tsx +30 -0
- package/client/global.css +11 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.es.js +8 -0
- package/package.json +1 -1
|
@@ -141,6 +141,19 @@ const TableHeaderCell = React.forwardRef<HTMLTableCellElement, TableCellProps>(
|
|
|
141
141
|
);
|
|
142
142
|
TableHeaderCell.displayName = "TableHeaderCell";
|
|
143
143
|
|
|
144
|
+
/**
|
|
145
|
+
* Compatibility alias for the shadcn table's `TableHead`, which this component
|
|
146
|
+
* set replaced. Identical to `TableHeaderCell` — the label may be passed as
|
|
147
|
+
* `label` or as children — so existing markup keeps compiling. Prefer
|
|
148
|
+
* `TableHeaderCell` in new code.
|
|
149
|
+
*
|
|
150
|
+
* @deprecated Use `TableHeaderCell`.
|
|
151
|
+
*/
|
|
152
|
+
const TableHead = React.forwardRef<HTMLTableCellElement, TableCellProps>(
|
|
153
|
+
(props, ref) => <TableHeaderCell ref={ref} {...props} />,
|
|
154
|
+
);
|
|
155
|
+
TableHead.displayName = "TableHead";
|
|
156
|
+
|
|
144
157
|
/**
|
|
145
158
|
* Figma `Placement=Intermediates | Bottom`: white fill, Mazzard Medium 16/21.
|
|
146
159
|
*
|
|
@@ -204,6 +217,21 @@ const TableAction = React.forwardRef<
|
|
|
204
217
|
));
|
|
205
218
|
TableAction.displayName = "TableAction";
|
|
206
219
|
|
|
220
|
+
/**
|
|
221
|
+
* Compatibility component for the shadcn table's `TableCaption`. Figma does not
|
|
222
|
+
* specify a caption, so it is styled as quiet gray/500 body text below the
|
|
223
|
+
* table. Kept so existing markup keeps compiling.
|
|
224
|
+
*
|
|
225
|
+
* @deprecated Not part of the Figma component set.
|
|
226
|
+
*/
|
|
227
|
+
const TableCaption = React.forwardRef<
|
|
228
|
+
HTMLTableCaptionElement,
|
|
229
|
+
React.HTMLAttributes<HTMLTableCaptionElement>
|
|
230
|
+
>(({ className, ...props }, ref) => (
|
|
231
|
+
<caption ref={ref} className={cn("table-caption", className)} {...props} />
|
|
232
|
+
));
|
|
233
|
+
TableCaption.displayName = "TableCaption";
|
|
234
|
+
|
|
207
235
|
export {
|
|
208
236
|
Table,
|
|
209
237
|
TableHeader,
|
|
@@ -214,6 +242,8 @@ export {
|
|
|
214
242
|
TableCell,
|
|
215
243
|
TableTag,
|
|
216
244
|
TableAction,
|
|
245
|
+
TableHead,
|
|
246
|
+
TableCaption,
|
|
217
247
|
};
|
|
218
248
|
|
|
219
249
|
export type {
|
package/client/global.css
CHANGED
|
@@ -5683,6 +5683,17 @@ body {
|
|
|
5683
5683
|
height: var(--table-action-icon-size);
|
|
5684
5684
|
}
|
|
5685
5685
|
|
|
5686
|
+
/* Compatibility with the shadcn table's caption; Figma does not specify one. */
|
|
5687
|
+
.table-caption {
|
|
5688
|
+
caption-side: bottom;
|
|
5689
|
+
margin-top: var(--space-md);
|
|
5690
|
+
color: var(--color-gray-500);
|
|
5691
|
+
font-family: var(--font-mazzard);
|
|
5692
|
+
font-size: 14px;
|
|
5693
|
+
line-height: 19.6px;
|
|
5694
|
+
text-align: left;
|
|
5695
|
+
}
|
|
5696
|
+
|
|
5686
5697
|
/* Dropdown (Figma: Dropdown) */
|
|
5687
5698
|
.dropdown {
|
|
5688
5699
|
box-sizing: border-box;
|