@nadicodeai/ui 6.3.0 → 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
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 }));
|
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
/** Every helper that resolves the viewer and refuses an unauthorized one. */
|
|
23
23
|
const AUTH_CALLS = new Set([
|
|
24
24
|
"customerActionContext",
|
|
25
|
+
"accountActionContext",
|
|
26
|
+
"companyActionContext",
|
|
25
27
|
"getPortalSession",
|
|
26
28
|
"installationActionContext",
|
|
27
29
|
"partnerActionContext",
|
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",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"tailwindcss": "^4.3.3"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
|
-
"@iconify-json/logos": "^1.2.
|
|
102
|
+
"@iconify-json/logos": "^1.2.14",
|
|
103
103
|
"@iconify/utils": "^3.1.7",
|
|
104
104
|
"@nadicodeai/eslint-plugin": "*",
|
|
105
105
|
"@stryker-mutator/core": "10.0.0",
|
|
@@ -107,14 +107,14 @@
|
|
|
107
107
|
"@tailwindcss/postcss": "^4.3.3",
|
|
108
108
|
"@testing-library/react": "^16.3.3",
|
|
109
109
|
"@testing-library/user-event": "^14.6.7",
|
|
110
|
-
"@types/react": "19.
|
|
111
|
-
"@types/react-dom": "19.
|
|
110
|
+
"@types/react": "19.3.0",
|
|
111
|
+
"@types/react-dom": "19.3.0",
|
|
112
112
|
"axe-core": "^4.13.0",
|
|
113
113
|
"eslint": "^9.39.4",
|
|
114
114
|
"jsdom": "^30.0.1",
|
|
115
115
|
"postcss": "^8.5.28",
|
|
116
|
-
"react": "19.
|
|
117
|
-
"react-dom": "19.
|
|
116
|
+
"react": "19.3.0",
|
|
117
|
+
"react-dom": "19.3.0",
|
|
118
118
|
"shadcn": "4.21.0",
|
|
119
119
|
"tailwindcss": "^4.3.3",
|
|
120
120
|
"typescript": "^6",
|