@frontile/theme 0.18.0-beta.0 → 0.18.0-beta.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.
- package/declarations/components/table.d.ts +3 -3
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -67,8 +67,8 @@ declare const table: import("tailwind-variants").TVReturnType<{
|
|
|
67
67
|
true: {};
|
|
68
68
|
};
|
|
69
69
|
}, {
|
|
70
|
-
base: string[];
|
|
71
70
|
wrapper: string[];
|
|
71
|
+
toolbar: string[];
|
|
72
72
|
table: string[];
|
|
73
73
|
thead: string[];
|
|
74
74
|
tbody: string[];
|
|
@@ -207,8 +207,8 @@ declare const table: import("tailwind-variants").TVReturnType<{
|
|
|
207
207
|
true: {};
|
|
208
208
|
};
|
|
209
209
|
}, {
|
|
210
|
-
base: string[];
|
|
211
210
|
wrapper: string[];
|
|
211
|
+
toolbar: string[];
|
|
212
212
|
table: string[];
|
|
213
213
|
thead: string[];
|
|
214
214
|
tbody: string[];
|
|
@@ -292,8 +292,8 @@ declare const table: import("tailwind-variants").TVReturnType<{
|
|
|
292
292
|
true: {};
|
|
293
293
|
};
|
|
294
294
|
}, {
|
|
295
|
-
base: string[];
|
|
296
295
|
wrapper: string[];
|
|
296
|
+
toolbar: string[];
|
|
297
297
|
table: string[];
|
|
298
298
|
thead: string[];
|
|
299
299
|
tbody: string[];
|
package/dist/index.js
CHANGED
|
@@ -1051,7 +1051,7 @@ const command = tv({
|
|
|
1051
1051
|
// hairline box; `neutral-muted` is one step up and visible in both schemes.
|
|
1052
1052
|
'[&_[data-component=listbox-item][data-active=true]]:bg-neutral-muted', '[&_[data-component=listbox-item][data-active=true]]:text-neutral-bolder',
|
|
1053
1053
|
// row text
|
|
1054
|
-
'[&_[data-
|
|
1054
|
+
'[&_[data-component=listbox-item]_[data-part=label]]:text-body-sm', '[&_[data-component=listbox-item]_[data-part=label]]:font-medium',
|
|
1055
1055
|
// leading icons are sized and muted unless the consumer says otherwise
|
|
1056
1056
|
'[&_[data-component=listbox-item]_svg:not([class*=size-])]:size-4', '[&_[data-component=listbox-item]_svg]:shrink-0', '[&_[data-component=listbox-item]_svg:not([class*=text-])]:text-neutral',
|
|
1057
1057
|
// group headings
|
|
@@ -1722,7 +1722,12 @@ const spinner = tv({
|
|
|
1722
1722
|
|
|
1723
1723
|
const table = tv({
|
|
1724
1724
|
slots: {
|
|
1725
|
-
base:
|
|
1725
|
+
// No `base` slot: Table has no single wrapping root element of its own --
|
|
1726
|
+
// `wrapper` (below) is the outermost rendered element, and nothing ever
|
|
1727
|
+
// called `.base()`. `w-full caption-bottom font-body text-body-2xs` was
|
|
1728
|
+
// dead here (never applied by any renderer); it is not carried over to
|
|
1729
|
+
// any other slot, since restoring it would be a visual change out of
|
|
1730
|
+
// scope for this migration -- see Task 12's brief.
|
|
1726
1731
|
wrapper: ['relative', 'isolate', 'overflow-auto', 'rounded-default',
|
|
1727
1732
|
// `surface-table` rather than `surface-card`, which the table otherwise
|
|
1728
1733
|
// looks exactly like: every sticky part of the table paints over the rows
|
|
@@ -1731,6 +1736,8 @@ const table = tv({
|
|
|
1731
1736
|
// veil renders, with the alpha already resolved. Override
|
|
1732
1737
|
// `--color-surface-table` to sit a table on a different background.
|
|
1733
1738
|
'bg-surface-table'],
|
|
1739
|
+
// The optional controls strip above the table (e.g. column visibility).
|
|
1740
|
+
toolbar: ['px-4', 'pt-3'],
|
|
1734
1741
|
table: ['w-full', 'table-auto'],
|
|
1735
1742
|
thead: ['relative', 'bg-surface-overlay-subtle'],
|
|
1736
1743
|
tbody: ['divide-y', 'divide-surface-overlay-subtle',
|