@senvenli/react 0.3.2 → 0.3.3
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/manifests/data-table.json +1 -1
- package/manifests/index.json +2 -1
- package/manifests/sidebar.json +55 -2
- package/manifests/table.json +2 -2
- package/package.json +2 -2
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
"type": "Density",
|
|
212
212
|
"required": false,
|
|
213
213
|
"origin": "own",
|
|
214
|
-
"description": "`
|
|
214
|
+
"description": "`comfortable` (default, rows of at least 48px) or `compact` (36px rows) for a dense screen that needs every row in view.",
|
|
215
215
|
"schema": {
|
|
216
216
|
"type": "string",
|
|
217
217
|
"enum": [
|
package/manifests/index.json
CHANGED
package/manifests/sidebar.json
CHANGED
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"SidebarItem",
|
|
13
13
|
"SidebarSubmenu",
|
|
14
14
|
"SidebarSection",
|
|
15
|
-
"SidebarFooter"
|
|
15
|
+
"SidebarFooter",
|
|
16
|
+
"SidebarAccount"
|
|
16
17
|
],
|
|
17
18
|
"description": "The main navigation of an app: brand, sections with nested items and badges, a pinned footer, collapsible to icons.",
|
|
18
19
|
"keywords": [
|
|
@@ -60,6 +61,11 @@
|
|
|
60
61
|
"genui": {
|
|
61
62
|
"expose": false
|
|
62
63
|
},
|
|
64
|
+
"guidance": [
|
|
65
|
+
{
|
|
66
|
+
"rule": "Put the signed-in person in the footer with SidebarAccount (name, description, avatarSrc, items): a row that opens the account menu, and, collapsed, a square the size of a nav icon with the name as its tooltip, so sign-out stays reachable."
|
|
67
|
+
}
|
|
68
|
+
],
|
|
63
69
|
"source": [
|
|
64
70
|
"src/navigation/sidebar.tsx"
|
|
65
71
|
],
|
|
@@ -536,6 +542,51 @@
|
|
|
536
542
|
"origin": "own",
|
|
537
543
|
"description": "The account's Avatar before the rest; collapsed, the rail shows it alone. As the Sidebar's `avatar`."
|
|
538
544
|
}
|
|
545
|
+
],
|
|
546
|
+
"SidebarAccount": [
|
|
547
|
+
{
|
|
548
|
+
"name": "name",
|
|
549
|
+
"type": "string",
|
|
550
|
+
"required": true,
|
|
551
|
+
"origin": "own",
|
|
552
|
+
"description": "The person's name: the row's first line, the trigger's name and, collapsed, its tooltip.",
|
|
553
|
+
"schema": {
|
|
554
|
+
"type": "string"
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"name": "description",
|
|
559
|
+
"type": "string",
|
|
560
|
+
"required": false,
|
|
561
|
+
"origin": "own",
|
|
562
|
+
"description": "The second line: an email or a role.",
|
|
563
|
+
"schema": {
|
|
564
|
+
"type": "string"
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"name": "avatarSrc",
|
|
569
|
+
"type": "string",
|
|
570
|
+
"required": false,
|
|
571
|
+
"origin": "own",
|
|
572
|
+
"description": "A photo; the name's initials otherwise.",
|
|
573
|
+
"schema": {
|
|
574
|
+
"type": "string"
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"name": "items",
|
|
579
|
+
"type": "readonly MenuEntry[]",
|
|
580
|
+
"required": true,
|
|
581
|
+
"origin": "own",
|
|
582
|
+
"description": "The account menu: profile, settings, sign out (a `danger` item goes last)."
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
"name": "onAction",
|
|
586
|
+
"type": "(id: Key) => void",
|
|
587
|
+
"required": false,
|
|
588
|
+
"origin": "own"
|
|
589
|
+
}
|
|
539
590
|
]
|
|
540
591
|
},
|
|
541
592
|
"tokens": [
|
|
@@ -569,7 +620,9 @@
|
|
|
569
620
|
"collapseSidebar",
|
|
570
621
|
"expandSidebar",
|
|
571
622
|
"mainNavigation",
|
|
572
|
-
"
|
|
623
|
+
"morePeople",
|
|
624
|
+
"newTab",
|
|
625
|
+
"online"
|
|
573
626
|
],
|
|
574
627
|
"quality": {
|
|
575
628
|
"tests": true,
|
package/manifests/table.json
CHANGED
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
"comfortable",
|
|
146
146
|
"compact"
|
|
147
147
|
],
|
|
148
|
-
"description": "`
|
|
148
|
+
"description": "`comfortable` (default: rows of at least 48px, 12px above and below a value, 24px at the edges) or `compact` (36px rows) for dense working screens."
|
|
149
149
|
}
|
|
150
150
|
},
|
|
151
151
|
"required": [
|
|
@@ -299,7 +299,7 @@
|
|
|
299
299
|
"type": "Density",
|
|
300
300
|
"required": false,
|
|
301
301
|
"origin": "own",
|
|
302
|
-
"description": "`
|
|
302
|
+
"description": "`comfortable` (default: rows of at least 48px, 12px above and below a value, 24px at the edges) or `compact` (36px rows) for dense working screens.",
|
|
303
303
|
"schema": {
|
|
304
304
|
"type": "string",
|
|
305
305
|
"enum": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@senvenli/react",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Senvenli UI web components (React Aria Components + Tailwind v4).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Senvenli",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"clsx": "^2.1.1",
|
|
95
95
|
"recharts": "^3.11.0",
|
|
96
96
|
"tailwind-merge": "^3.5.0",
|
|
97
|
-
"@senvenli/tokens": "^0.3.
|
|
97
|
+
"@senvenli/tokens": "^0.3.3"
|
|
98
98
|
},
|
|
99
99
|
"peerDependencies": {
|
|
100
100
|
"lucide-react": "^1.34.0",
|