@nadicodeai/ui 6.3.1 → 6.3.2
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/components/table.js +1 -1
- package/dist/styles/globals.css +5 -0
- package/docs/contract.md +7 -2
- package/package.json +2 -2
package/dist/components/table.js
CHANGED
|
@@ -15,7 +15,7 @@ function TableFooter({ className, ...props }) {
|
|
|
15
15
|
return (_jsx("tfoot", { "data-slot": "table-footer", className: cn("border-t border-border bg-muted/50 font-medium [&>tr]:last:border-b-0", className), ...props }));
|
|
16
16
|
}
|
|
17
17
|
function TableRow({ className, ...props }) {
|
|
18
|
-
return (_jsx("tr", { "data-slot": "table-row", className: cn("border-b border-border transition-colors hover:bg-
|
|
18
|
+
return (_jsx("tr", { "data-slot": "table-row", className: cn("border-b border-border transition-colors motion-reduce:transition-none in-[tbody]:hover:bg-accent in-[tbody]:has-[:focus-visible]:bg-accent in-[tbody]:has-aria-expanded:bg-accent data-[state=selected]:bg-muted", className), ...props }));
|
|
19
19
|
}
|
|
20
20
|
function TableHead({ className, ...props }) {
|
|
21
21
|
return (_jsx("th", { "data-slot": "table-head", className: cn("h-9 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0", className), ...props }));
|
package/dist/styles/globals.css
CHANGED
|
@@ -33,6 +33,11 @@
|
|
|
33
33
|
@apply border-border outline-ring;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
button:not(:disabled, [aria-disabled="true"], [data-disabled]),
|
|
37
|
+
[role="button"]:not(:disabled, [aria-disabled="true"], [data-disabled]) {
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
}
|
|
40
|
+
|
|
36
41
|
html {
|
|
37
42
|
@apply font-sans;
|
|
38
43
|
}
|
package/docs/contract.md
CHANGED
|
@@ -86,7 +86,11 @@ must fit their available width without horizontal scrolling: preserve identity
|
|
|
86
86
|
and actions in columns and place supporting facts in native detail rows before
|
|
87
87
|
the full schema becomes cramped. Test the table container itself, not only the
|
|
88
88
|
document width; retaining the overflow safety boundary must not conceal a
|
|
89
|
-
layout defect.
|
|
89
|
+
layout defect. Body rows use the full `bg-accent` fill on hover, keyboard focus
|
|
90
|
+
within, and while a descendant menu is expanded. Headers and footers do not gain
|
|
91
|
+
the body-row hover treatment. Keep cell backgrounds transparent so they do not
|
|
92
|
+
hide the shared highlight. The design system's interaction states own the
|
|
93
|
+
cross-product table and action affordances.
|
|
90
94
|
|
|
91
95
|
`CollectionScope` chooses the parent of one record collection. It places the
|
|
92
96
|
scope selector and optional detail action above the collection toolbar. Empty
|
|
@@ -101,7 +105,8 @@ Its caption names the table. Callers supply data and labels, not column-hiding C
|
|
|
101
105
|
### Record action menus
|
|
102
106
|
|
|
103
107
|
`ActionMenu` is the shared three-dot composition of `Button` and `DropdownMenu`:
|
|
104
|
-
a ghost icon trigger, horizontal ellipsis, and end-aligned popup.
|
|
108
|
+
a ghost icon trigger, horizontal ellipsis, and end-aligned popup. The shared
|
|
109
|
+
stylesheet gives enabled buttons a pointer cursor, including this trigger. It inherits the
|
|
105
110
|
menu's glass, elevation, motion, keyboard behavior, and focus return. Supply
|
|
106
111
|
`label` as a localized, record-specific accessible name; `triggerId` supports
|
|
107
112
|
focus return from an app-owned confirmation, and `children` supplies menu items.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nadicodeai/ui",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@assistant-ui/react": "0.15.18",
|
|
71
71
|
"@assistant-ui/react-markdown": "0.14.14",
|
|
72
72
|
"@base-ui/react": "^1.8.0",
|
|
73
|
-
"@nadicodeai/design-system": "6.3.
|
|
73
|
+
"@nadicodeai/design-system": "6.3.2",
|
|
74
74
|
"@paper-design/shaders": "0.0.80",
|
|
75
75
|
"class-variance-authority": "^0.7.1",
|
|
76
76
|
"clsx": "^2.1.1",
|