@designa8/vibedesign-openai-internal-v1-2-176b 0.1.21 → 0.1.22
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/README.md +1 -1
- package/dist/styles.css +3 -0
- package/package.json +1 -1
- package/src/molecules/TableRow/preview.tsx +32 -11
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @designa8/vibedesign-openai-internal-v1-2-176b
|
|
2
2
|
|
|
3
|
-
Complete design system generated by Atoms Design, version **0.1.
|
|
3
|
+
Complete design system generated by Atoms Design, version **0.1.22**.
|
|
4
4
|
Tokens, atoms, molecules, organisms, and templates — import from the package root;
|
|
5
5
|
never hardcode visual values in consumer code.
|
|
6
6
|
|
package/dist/styles.css
CHANGED
package/package.json
CHANGED
|
@@ -4,9 +4,9 @@ import { Badge } from "../../atoms/Badge";
|
|
|
4
4
|
import { Checkbox } from "../../atoms/Checkbox";
|
|
5
5
|
|
|
6
6
|
const rows = [
|
|
7
|
-
{ id: "r1",
|
|
8
|
-
{ id: "r2",
|
|
9
|
-
{ id: "r3",
|
|
7
|
+
{ id: "r1", project: "Marketing site", environment: "Production", owner: "Maya Chen", updated: "Mar 12, 10:50 AM" },
|
|
8
|
+
{ id: "r2", project: "Docs portal", environment: "Staging", owner: "Priya Raman", updated: "Mar 12, 9:12 AM" },
|
|
9
|
+
{ id: "r3", project: "Checkout service", environment: "Preview", owner: "Tom Okafor", updated: "Mar 11, 4:31 PM" },
|
|
10
10
|
];
|
|
11
11
|
|
|
12
12
|
export default function TableRowPreview() {
|
|
@@ -17,10 +17,13 @@ export default function TableRowPreview() {
|
|
|
17
17
|
const toggle = (id: string) =>
|
|
18
18
|
setChecked((prev) => (prev.includes(id) ? prev.filter((x) => x !== id) : [...prev, id]));
|
|
19
19
|
|
|
20
|
+
const openedRow = rows.find((r) => r.id === opened);
|
|
21
|
+
|
|
20
22
|
return (
|
|
21
23
|
<div className="w-full max-w-3xl mx-auto space-y-lg p-lg bg-canvas text-ink">
|
|
22
24
|
<section className="space-y-sm">
|
|
23
25
|
<h2 className="text-body-lg text-ink">Selectable rows</h2>
|
|
26
|
+
<p className="text-body-sm text-muted">Northwind · web team workspace</p>
|
|
24
27
|
<div className="overflow-hidden rounded-md border border-hairline bg-surface">
|
|
25
28
|
<div className="overflow-x-auto">
|
|
26
29
|
<table className="w-full border-collapse">
|
|
@@ -30,20 +33,20 @@ export default function TableRowPreview() {
|
|
|
30
33
|
key={r.id}
|
|
31
34
|
selected={selected === r.id}
|
|
32
35
|
onSelect={() => setSelected(r.id)}
|
|
33
|
-
cells={[r.
|
|
36
|
+
cells={[r.project, r.environment, { content: r.updated, align: "right" }]}
|
|
34
37
|
/>
|
|
35
38
|
))}
|
|
36
39
|
<TableRow
|
|
37
40
|
cells={[
|
|
38
|
-
"
|
|
41
|
+
"Design system",
|
|
39
42
|
{
|
|
40
43
|
content: (
|
|
41
44
|
<Badge tone="success" variant="dot" size="sm">
|
|
42
|
-
|
|
45
|
+
Live
|
|
43
46
|
</Badge>
|
|
44
47
|
),
|
|
45
48
|
},
|
|
46
|
-
{ content: "
|
|
49
|
+
{ content: "Mar 10, 2:05 PM", align: "right" },
|
|
47
50
|
]}
|
|
48
51
|
/>
|
|
49
52
|
</tbody>
|
|
@@ -54,9 +57,24 @@ export default function TableRowPreview() {
|
|
|
54
57
|
|
|
55
58
|
<section className="space-y-sm">
|
|
56
59
|
<h2 className="text-body-lg text-ink">Row click (checkbox keeps its own click)</h2>
|
|
60
|
+
<p className="text-body-sm text-muted">Fieldstone · web team workspace</p>
|
|
57
61
|
<div className="overflow-hidden rounded-md border border-hairline bg-surface">
|
|
58
62
|
<div className="overflow-x-auto">
|
|
59
63
|
<table className="w-full border-collapse">
|
|
64
|
+
<thead>
|
|
65
|
+
<tr className="border-b border-hairline-soft bg-surface-soft">
|
|
66
|
+
<th scope="col" className="w-12 pl-lg py-sm" aria-label="Select" />
|
|
67
|
+
<th scope="col" className="px-base py-sm text-left text-body-sm text-muted">
|
|
68
|
+
Project
|
|
69
|
+
</th>
|
|
70
|
+
<th scope="col" className="px-base py-sm text-left text-body-sm text-muted">
|
|
71
|
+
Owner
|
|
72
|
+
</th>
|
|
73
|
+
<th scope="col" className="px-base pr-lg py-sm text-right text-body-sm text-muted">
|
|
74
|
+
Updated
|
|
75
|
+
</th>
|
|
76
|
+
</tr>
|
|
77
|
+
</thead>
|
|
60
78
|
<tbody>
|
|
61
79
|
{rows.map((r) => (
|
|
62
80
|
<TableRow
|
|
@@ -68,14 +86,15 @@ export default function TableRowPreview() {
|
|
|
68
86
|
content: (
|
|
69
87
|
<Checkbox
|
|
70
88
|
size="sm"
|
|
71
|
-
aria-label={`Select ${r.
|
|
89
|
+
aria-label={`Select ${r.project}`}
|
|
72
90
|
checked={checked.includes(r.id)}
|
|
73
91
|
onCheckedChange={() => toggle(r.id)}
|
|
74
92
|
/>
|
|
75
93
|
),
|
|
76
94
|
},
|
|
77
|
-
r.
|
|
78
|
-
r.
|
|
95
|
+
r.project,
|
|
96
|
+
{ content: r.owner, tone: "secondary" },
|
|
97
|
+
{ content: r.updated, align: "right" },
|
|
79
98
|
]}
|
|
80
99
|
/>
|
|
81
100
|
))}
|
|
@@ -84,7 +103,9 @@ export default function TableRowPreview() {
|
|
|
84
103
|
</div>
|
|
85
104
|
</div>
|
|
86
105
|
<p className="text-body-sm text-muted" aria-live="polite">
|
|
87
|
-
{
|
|
106
|
+
{openedRow
|
|
107
|
+
? `Opened ${openedRow.project} — click the checkbox to select without opening.`
|
|
108
|
+
: "Click a row, or focus one and press Enter."}
|
|
88
109
|
</p>
|
|
89
110
|
</section>
|
|
90
111
|
</div>
|