lucent-ui 0.37.0 → 0.39.0
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/{LucentProvider-F0EN_7TD.js → LucentProvider-Bm39MMvv.js} +550 -532
- package/dist/{LucentProvider-LqNc0AxD.cjs → LucentProvider-CzEDW5SL.cjs} +6 -6
- package/dist/devtools.cjs +1 -1
- package/dist/devtools.js +1 -1
- package/dist/index.cjs +87 -41
- package/dist/index.d.ts +92 -5
- package/dist/index.js +1528 -1293
- package/dist-server/server/http.js +126 -0
- package/dist-server/server/index.js +2 -293
- package/dist-server/server/logger.js +66 -0
- package/dist-server/server/tools.js +298 -0
- package/dist-server/src/components/atoms/Row/Row.manifest.js +10 -2
- package/dist-server/src/components/atoms/Stack/Stack.manifest.js +6 -2
- package/dist-server/src/components/atoms/Table/Table.manifest.js +4 -1
- package/dist-server/src/components/molecules/Breadcrumb/Breadcrumb.manifest.js +27 -0
- package/dist-server/src/components/molecules/DataTable/DataTable.manifest.js +3 -1
- package/dist-server/src/components/molecules/FileUpload/FileUpload.manifest.js +2 -0
- package/dist-server/src/components/molecules/PageHeader/PageHeader.manifest.js +144 -0
- package/dist-server/src/manifest/examples/button.manifest.js +39 -1
- package/dist-server/src/manifest/patterns/action-bar.pattern.js +34 -6
- package/package.json +2 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export const PATTERN = {
|
|
2
2
|
id: 'action-bar',
|
|
3
3
|
name: 'Action Bar',
|
|
4
|
-
description: 'Page-level or card-level header pairing a title with action buttons. Page headers use breadcrumb, large display title, and a divider below; card headers are compact with small text.',
|
|
4
|
+
description: 'Page-level or card-level header pairing a title with action buttons. Page headers use breadcrumb, large display title, and a divider below; card headers are compact with small text. Supports multi-action headers with secondary outline buttons preceding the primary CTA.',
|
|
5
5
|
category: 'action',
|
|
6
6
|
components: ['text', 'button', 'row', 'stack', 'breadcrumb', 'divider', 'card'],
|
|
7
7
|
structure: `
|
|
8
8
|
Page header:
|
|
9
9
|
Stack gap="4"
|
|
10
10
|
├── Breadcrumb ← navigation context
|
|
11
|
-
├── Row justify="between" align="end"
|
|
11
|
+
├── Row justify="between" align="end" wrap
|
|
12
12
|
│ ├── Stack gap="1"
|
|
13
13
|
│ │ ├── Text (h1, 3xl, bold, display) ← page title
|
|
14
14
|
│ │ └── Text (sm, secondary) ← subtitle
|
|
15
|
-
│ └── Row gap="2"
|
|
16
|
-
│ ├── Button (outline, sm)
|
|
17
|
-
│ └── Button (primary, sm)
|
|
15
|
+
│ └── Row gap="2" wrap ← actions (wraps below title on narrow screens)
|
|
16
|
+
│ ├── Button[] (outline, sm) ← secondary actions (0–3, leftmost)
|
|
17
|
+
│ └── Button (primary, sm) ← primary CTA (rightmost, always single)
|
|
18
18
|
└── Divider
|
|
19
19
|
|
|
20
20
|
Card header:
|
|
@@ -44,6 +44,28 @@ Row justify="between" align="start"
|
|
|
44
44
|
<Divider />
|
|
45
45
|
</Stack>`,
|
|
46
46
|
variants: [
|
|
47
|
+
{
|
|
48
|
+
title: 'Page header — detail view with secondary actions',
|
|
49
|
+
code: `<Stack gap="4">
|
|
50
|
+
<Breadcrumb items={[
|
|
51
|
+
{ label: 'Home', href: '#' },
|
|
52
|
+
{ label: 'Candidates', href: '#' },
|
|
53
|
+
{ label: 'Sana Khan' },
|
|
54
|
+
]} />
|
|
55
|
+
<Row justify="between" align="end" wrap gap="3">
|
|
56
|
+
<Stack gap="1">
|
|
57
|
+
<Text as="h1" size="3xl" weight="bold" family="display">Sana Khan</Text>
|
|
58
|
+
<Text size="sm" color="secondary">Senior Product Designer · Added 3 days ago</Text>
|
|
59
|
+
</Stack>
|
|
60
|
+
<Row gap="2" wrap>
|
|
61
|
+
<Button variant="outline" size="sm">Edit</Button>
|
|
62
|
+
<Button variant="outline" size="sm">Archive</Button>
|
|
63
|
+
<Button variant="primary" size="sm">Submit to opportunity</Button>
|
|
64
|
+
</Row>
|
|
65
|
+
</Row>
|
|
66
|
+
<Divider />
|
|
67
|
+
</Stack>`,
|
|
68
|
+
},
|
|
47
69
|
{
|
|
48
70
|
title: 'Page header — danger zone',
|
|
49
71
|
code: `<Stack gap="4">
|
|
@@ -87,5 +109,11 @@ Row justify="between" align="start"
|
|
|
87
109
|
'buttons to the baseline of the title block so they sit level with the subtitle. ' +
|
|
88
110
|
'Card headers are compact: sm semibold text with xs/ghost buttons that recede ' +
|
|
89
111
|
'visually. The primary action is always rightmost following natural reading order. ' +
|
|
90
|
-
'Both patterns use justify="between" to push title and actions to opposite edges.'
|
|
112
|
+
'Both patterns use justify="between" to push title and actions to opposite edges. ' +
|
|
113
|
+
'Multi-action page headers (e.g. detail views with Edit / Archive / Submit) follow ' +
|
|
114
|
+
'the three-zone CTA rule: 0–3 secondary actions render as variant="outline" to the ' +
|
|
115
|
+
'left of a single primary button, keeping them visually subordinate. Beyond 3 ' +
|
|
116
|
+
'secondary actions, reach for SplitButton or an overflow menu instead of widening ' +
|
|
117
|
+
'the row. Both the outer title/action Row and the inner action Row set wrap so the ' +
|
|
118
|
+
'buttons flow below the title on narrow viewports instead of overflowing.',
|
|
91
119
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lucent-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.39.0",
|
|
4
4
|
"description": "An AI-first React component library with machine-readable manifests.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"bin": {
|
|
23
23
|
"lucent-ui": "./dist-cli/cli/entry.js",
|
|
24
24
|
"lucent-mcp": "./dist-server/server/index.js",
|
|
25
|
+
"lucent-mcp-http": "./dist-server/server/http.js",
|
|
25
26
|
"lucent-manifest": "./dist-cli/cli/index.js"
|
|
26
27
|
},
|
|
27
28
|
"sideEffects": false,
|