@sero-ai/ui 0.4.0 → 0.4.1
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/.turbo/turbo-build.log +311 -324
- package/CHANGELOG.md +22 -2
- package/LICENSE +201 -0
- package/dist/components/dashboard/catalog.cjs +1 -322
- package/dist/components/dashboard/catalog.d.cts +1 -2
- package/dist/components/dashboard/catalog.d.ts +1 -2
- package/dist/components/dashboard/catalog.js +0 -322
- package/dist/components/dashboard/catalog.json +312 -0
- package/dist/components/dashboard/index.d.cts +1 -1
- package/dist/components/dashboard/index.d.ts +1 -1
- package/dist/components/dashboard/status.cjs +6 -2
- package/dist/components/dashboard/status.js +7 -3
- package/dist/components/dashboard/tone.cjs +9 -1
- package/dist/components/dashboard/tone.d.cts +7 -1
- package/dist/components/dashboard/tone.d.ts +7 -1
- package/dist/components/dashboard/tone.js +8 -0
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/reference.cjs +1251 -3
- package/dist/reference.d.cts +11 -5
- package/dist/reference.d.ts +11 -5
- package/dist/reference.js +1224 -6
- package/package.json +52 -69
- package/scripts/ensure-pnpm-publish.mjs +23 -0
- package/scripts/smoke-dist.mjs +68 -0
- package/src/components/dashboard/__tests__/catalog.test.ts +7 -2
- package/src/components/dashboard/__tests__/state.test.tsx +19 -2
- package/src/components/dashboard/catalog.json +312 -0
- package/src/components/dashboard/catalog.ts +6 -328
- package/src/components/dashboard/index.ts +2 -2
- package/src/components/dashboard/status.tsx +15 -2
- package/src/components/dashboard/tone.ts +13 -0
- package/src/index.ts +3 -1
- package/tsup.config.ts +13 -3
- package/tsup.reference.config.ts +15 -0
- package/dist/components/reference/ActivityExample.cjs +0 -47
- package/dist/components/reference/ActivityExample.d.cts +0 -5
- package/dist/components/reference/ActivityExample.d.ts +0 -5
- package/dist/components/reference/ActivityExample.js +0 -47
- package/dist/components/reference/ResourceExample.cjs +0 -54
- package/dist/components/reference/ResourceExample.d.cts +0 -5
- package/dist/components/reference/ResourceExample.d.ts +0 -5
- package/dist/components/reference/ResourceExample.js +0 -54
- package/dist/components/reference/SchedulerExample.cjs +0 -68
- package/dist/components/reference/SchedulerExample.d.cts +0 -5
- package/dist/components/reference/SchedulerExample.d.ts +0 -5
- package/dist/components/reference/SchedulerExample.js +0 -68
- package/dist/components/reference/StarterExample.cjs +0 -34
- package/dist/components/reference/StarterExample.d.cts +0 -5
- package/dist/components/reference/StarterExample.d.ts +0 -5
- package/dist/components/reference/StarterExample.js +0 -34
- package/dist/components/reference/index.cjs +0 -10
- package/dist/components/reference/index.d.cts +0 -5
- package/dist/components/reference/index.d.ts +0 -5
- package/dist/components/reference/index.js +0 -10
- package/dist/dashboard-catalog.cjs +0 -8
- package/dist/dashboard-catalog.d.cts +0 -1
- package/dist/dashboard-catalog.d.ts +0 -1
- package/dist/dashboard-catalog.js +0 -8
- package/src/dashboard-catalog.ts +0 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @sero-ai/ui changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.1
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- **Publishes built `dist/` again.** 0.4.0 was accidentally published with its
|
|
8
|
+
raw TypeScript source (a bare `npm publish`, which ignores the `publishConfig`
|
|
9
|
+
dist overrides). 0.4.1 ships the compiled JS and `.d.ts` — and a
|
|
10
|
+
`prepublishOnly` guard now fails fast if the package is published with
|
|
11
|
+
anything other than `pnpm`.
|
|
12
|
+
- **Public entrypoints resolve under Node ESM, not just bundlers.** The
|
|
13
|
+
catalogue is plain data at `@sero-ai/ui/dashboard-catalog.json` (was a `.ts`
|
|
14
|
+
re-export that failed to resolve under Node); `DashboardComponentCatalogEntry`
|
|
15
|
+
is re-exported from the package root. The `reference` entry is bundled into a
|
|
16
|
+
single self-contained module (was a directory import that failed under Node).
|
|
17
|
+
`pnpm smoke` checks the built artifact so this can't silently regress.
|
|
18
|
+
- **`Status` bare dots** carry a visually-hidden tone label (overridable via
|
|
19
|
+
`aria-label`) so assistive tech announces their state instead of an empty
|
|
20
|
+
live region.
|
|
21
|
+
|
|
3
22
|
## 0.4.0
|
|
4
23
|
|
|
5
24
|
### Added
|
|
@@ -16,8 +35,9 @@
|
|
|
16
35
|
`ListSkeleton`, `ActivitySkeleton`
|
|
17
36
|
- Actions: `IconButton`
|
|
18
37
|
- Shared `Tone` vocabulary and `Gap` spacing scale
|
|
19
|
-
- **Dashboard component catalogue** metadata
|
|
20
|
-
|
|
38
|
+
- **Dashboard component catalogue** metadata on a stable subpath for discovery
|
|
39
|
+
tooling and agent workflows. (Moved to a `dashboard-catalog.json` file in
|
|
40
|
+
0.4.1.)
|
|
21
41
|
- `Badge` gained semantic status tones: `success`, `warning`, `info`.
|
|
22
42
|
- **Glass styling for dashboard widgets.** A `.glass` token scope (canonical
|
|
23
43
|
`--glass-*` tokens, light + dark) makes the dashboard components render as
|
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
https://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Dan Carter and contributors
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
https://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -1,322 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// ── Layout and structure ──────────────────────────────────────
|
|
3
|
-
{
|
|
4
|
-
name: "WidgetContent",
|
|
5
|
-
category: "layout",
|
|
6
|
-
kind: "composite",
|
|
7
|
-
summary: "Full-height widget frame with standard padding and a container-query boundary.",
|
|
8
|
-
useWhen: "As the outermost element of every dashboard widget.",
|
|
9
|
-
related: ["Stack", "Inline"],
|
|
10
|
-
status: "stable",
|
|
11
|
-
example: '<WidgetContent><Stack gap="sm">\u2026</Stack></WidgetContent>'
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
name: "Stack",
|
|
15
|
-
category: "layout",
|
|
16
|
-
kind: "composite",
|
|
17
|
-
summary: "Vertical layout with semantic spacing, alignment and optional scrolling.",
|
|
18
|
-
useWhen: "For the primary top-to-bottom content flow inside a widget.",
|
|
19
|
-
related: ["Inline", "WidgetContent"],
|
|
20
|
-
status: "stable",
|
|
21
|
-
example: '<Stack gap="sm" scroll>\u2026</Stack>'
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
name: "Inline",
|
|
25
|
-
category: "layout",
|
|
26
|
-
kind: "composite",
|
|
27
|
-
summary: "Horizontal layout with spacing, alignment, wrap and justify.",
|
|
28
|
-
useWhen: "For a row of items such as a header with a trailing action.",
|
|
29
|
-
related: ["Stack"],
|
|
30
|
-
status: "stable",
|
|
31
|
-
example: '<Inline justify="between" align="center">\u2026</Inline>'
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: "Grid",
|
|
35
|
-
category: "layout",
|
|
36
|
-
kind: "composite",
|
|
37
|
-
summary: "Responsive grid with bounded columns and gap.",
|
|
38
|
-
useWhen: "For metric and summary layouts that reflow by width.",
|
|
39
|
-
related: ["MetricGroup"],
|
|
40
|
-
status: "stable",
|
|
41
|
-
example: '<Grid columns="auto" minColumnWidth={120}>\u2026</Grid>'
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
name: "Section",
|
|
45
|
-
category: "layout",
|
|
46
|
-
kind: "composite",
|
|
47
|
-
summary: "Compact section with optional heading, description and trailing action.",
|
|
48
|
-
useWhen: "To group related content under a labelled heading.",
|
|
49
|
-
related: ["Divider", "Heading"],
|
|
50
|
-
status: "stable",
|
|
51
|
-
example: '<Section heading="Summary" action={\u2026}>\u2026</Section>'
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
name: "Divider",
|
|
55
|
-
category: "layout",
|
|
56
|
-
kind: "composite",
|
|
57
|
-
summary: "Compact horizontal or vertical divider built on Separator.",
|
|
58
|
-
useWhen: "To separate sections without a heavy border.",
|
|
59
|
-
related: ["Section"],
|
|
60
|
-
status: "stable",
|
|
61
|
-
example: '<Divider spacing="sm" />'
|
|
62
|
-
},
|
|
63
|
-
// ── Typography and media ──────────────────────────────────────
|
|
64
|
-
{
|
|
65
|
-
name: "Text",
|
|
66
|
-
category: "typography",
|
|
67
|
-
kind: "composite",
|
|
68
|
-
summary: "Semantic text variants (body, label, supporting, muted, numeric) with truncation.",
|
|
69
|
-
useWhen: "For any text, instead of ad-hoc font-size utilities.",
|
|
70
|
-
related: ["Heading"],
|
|
71
|
-
status: "stable",
|
|
72
|
-
example: '<Text variant="label">Jobs</Text>'
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
name: "Heading",
|
|
76
|
-
category: "typography",
|
|
77
|
-
kind: "composite",
|
|
78
|
-
summary: "Compact heading levels and sizes that keep correct HTML semantics.",
|
|
79
|
-
useWhen: "For section and view titles.",
|
|
80
|
-
related: ["Section", "Text"],
|
|
81
|
-
status: "stable",
|
|
82
|
-
example: '<Heading level={2} size="md">Overview</Heading>'
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
name: "Icon",
|
|
86
|
-
category: "typography",
|
|
87
|
-
kind: "composite",
|
|
88
|
-
summary: "Consistent icon wrapper for size, tone and accessibility.",
|
|
89
|
-
useWhen: "To render an icon component with a shared size and tone.",
|
|
90
|
-
related: ["IconButton"],
|
|
91
|
-
status: "stable",
|
|
92
|
-
example: '<Icon icon={Clock} size="sm" tone="warning" />'
|
|
93
|
-
},
|
|
94
|
-
// ── Data display ──────────────────────────────────────────────
|
|
95
|
-
{
|
|
96
|
-
name: "Metric",
|
|
97
|
-
category: "data-display",
|
|
98
|
-
kind: "composite",
|
|
99
|
-
summary: "Label + value with optional icon, supporting text and trend.",
|
|
100
|
-
useWhen: "To show a single number inline.",
|
|
101
|
-
related: ["MetricCard", "MetricGroup"],
|
|
102
|
-
status: "stable",
|
|
103
|
-
example: '<Metric label="Jobs" value={6} />'
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
name: "MetricCard",
|
|
107
|
-
category: "data-display",
|
|
108
|
-
kind: "composite",
|
|
109
|
-
summary: "A contained surface for a Metric or compact summary.",
|
|
110
|
-
useWhen: "To give a metric its own bounded card.",
|
|
111
|
-
related: ["Metric", "MetricGroup"],
|
|
112
|
-
status: "stable",
|
|
113
|
-
example: '<MetricCard><Metric label="Jobs" value={6} /></MetricCard>'
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
name: "MetricGroup",
|
|
117
|
-
category: "data-display",
|
|
118
|
-
kind: "composite",
|
|
119
|
-
summary: "Arranges multiple metrics responsively in a bounded grid.",
|
|
120
|
-
useWhen: "To show several metrics that reflow by width.",
|
|
121
|
-
related: ["Metric", "Grid"],
|
|
122
|
-
status: "stable",
|
|
123
|
-
example: "<MetricGroup><Metric \u2026 /><Metric \u2026 /></MetricGroup>"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
name: "Status",
|
|
127
|
-
category: "data-display",
|
|
128
|
-
kind: "composite",
|
|
129
|
-
summary: "Semantic status dot, label or pill with neutral/success/warning/error/info tones.",
|
|
130
|
-
useWhen: "To show a health or state indicator. Map domain status onto a tone.",
|
|
131
|
-
related: ["Badge"],
|
|
132
|
-
status: "stable",
|
|
133
|
-
example: '<Status tone="success">Active</Status>'
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
name: "Badge",
|
|
137
|
-
category: "data-display",
|
|
138
|
-
kind: "primitive",
|
|
139
|
-
summary: "Existing badge primitive, extended with success/warning/info tones.",
|
|
140
|
-
useWhen: "For compact counts, tags and category labels.",
|
|
141
|
-
related: ["Status"],
|
|
142
|
-
status: "stable",
|
|
143
|
-
example: '<Badge variant="success">Passed</Badge>'
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
name: "KeyValue",
|
|
147
|
-
category: "data-display",
|
|
148
|
-
kind: "composite",
|
|
149
|
-
summary: "A single label/value row with predictable alignment and truncation.",
|
|
150
|
-
useWhen: "For metadata, totals and configuration summaries.",
|
|
151
|
-
related: ["KeyValueList"],
|
|
152
|
-
status: "stable",
|
|
153
|
-
example: '<KeyValue label="Region" value="eu-west-1" mono />'
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
name: "KeyValueList",
|
|
157
|
-
category: "data-display",
|
|
158
|
-
kind: "composite",
|
|
159
|
-
summary: "A vertical list of KeyValue rows.",
|
|
160
|
-
useWhen: "For a block of metadata pairs.",
|
|
161
|
-
related: ["KeyValue"],
|
|
162
|
-
status: "stable",
|
|
163
|
-
example: "<KeyValueList><KeyValue \u2026 /></KeyValueList>"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
name: "ItemList",
|
|
167
|
-
category: "data-display",
|
|
168
|
-
kind: "composite",
|
|
169
|
-
summary: "Compact rows with leading media, text, trailing metadata, actions and overflow.",
|
|
170
|
-
useWhen: "For entity lists (files, notes, results).",
|
|
171
|
-
related: ["ItemListItem", "ActivityList"],
|
|
172
|
-
status: "stable",
|
|
173
|
-
example: "<ItemList overflowCount={3}><ItemListItem \u2026 /></ItemList>"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
name: "ItemListItem",
|
|
177
|
-
category: "data-display",
|
|
178
|
-
kind: "composite",
|
|
179
|
-
summary: "A single compact list row with media, primary/secondary text and actions.",
|
|
180
|
-
useWhen: "As the row inside an ItemList.",
|
|
181
|
-
related: ["ItemList"],
|
|
182
|
-
status: "stable",
|
|
183
|
-
example: '<ItemListItem primary="Report.pdf" trailing="2h" />'
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
name: "ActivityList",
|
|
187
|
-
category: "data-display",
|
|
188
|
-
kind: "composite",
|
|
189
|
-
summary: "A chronological list for recent events with a shared overflow footer.",
|
|
190
|
-
useWhen: "For time-ordered activity or upcoming events.",
|
|
191
|
-
related: ["ActivityListItem", "ItemList"],
|
|
192
|
-
status: "stable",
|
|
193
|
-
example: "<ActivityList><ActivityListItem \u2026 /></ActivityList>"
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
name: "ActivityListItem",
|
|
197
|
-
category: "data-display",
|
|
198
|
-
kind: "composite",
|
|
199
|
-
summary: "An event row with a status marker or icon, label, timestamp and detail.",
|
|
200
|
-
useWhen: "As the row inside an ActivityList.",
|
|
201
|
-
related: ["ActivityList", "Status"],
|
|
202
|
-
status: "stable",
|
|
203
|
-
example: '<ActivityListItem label="Backup" timestamp="08:00" tone="success" />'
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
name: "ProgressRing",
|
|
207
|
-
category: "data-display",
|
|
208
|
-
kind: "composite",
|
|
209
|
-
summary: "Accessible circular progress / donut gauge, no charting dependency.",
|
|
210
|
-
useWhen: "For a bounded value such as a success rate or usage percentage.",
|
|
211
|
-
related: ["Metric"],
|
|
212
|
-
status: "stable",
|
|
213
|
-
example: '<ProgressRing value={75} label="Success rate" tone="success" />'
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
name: "StaleIndicator",
|
|
217
|
-
category: "data-display",
|
|
218
|
-
kind: "composite",
|
|
219
|
-
summary: "Compact hint that data may be out of date, with optional refresh action.",
|
|
220
|
-
useWhen: "When displayed data can lag its source.",
|
|
221
|
-
related: ["DataBoundary"],
|
|
222
|
-
status: "stable",
|
|
223
|
-
example: '<StaleIndicator lastUpdated="Updated 5m ago" onRefresh={\u2026} />'
|
|
224
|
-
},
|
|
225
|
-
// ── Runtime states and feedback ───────────────────────────────
|
|
226
|
-
{
|
|
227
|
-
name: "DataBoundary",
|
|
228
|
-
category: "state",
|
|
229
|
-
kind: "composite",
|
|
230
|
-
summary: "Selects presentation for loading / ready / empty / stale / error states.",
|
|
231
|
-
useWhen: "To switch a widget's content by data state without owning fetching.",
|
|
232
|
-
related: ["EmptyState", "MetricSkeleton", "StaleIndicator"],
|
|
233
|
-
status: "stable",
|
|
234
|
-
example: "<DataBoundary state={state} loading={\u2026} empty={\u2026} error={\u2026}>\u2026</DataBoundary>"
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
name: "EmptyState",
|
|
238
|
-
category: "state",
|
|
239
|
-
kind: "composite",
|
|
240
|
-
summary: "Compact empty state built on the Empty primitives.",
|
|
241
|
-
useWhen: "When there is nothing to show yet.",
|
|
242
|
-
related: ["DataBoundary"],
|
|
243
|
-
status: "stable",
|
|
244
|
-
example: '<EmptyState icon={Inbox} title="No activity yet" />'
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
name: "Alert",
|
|
248
|
-
category: "state",
|
|
249
|
-
kind: "primitive",
|
|
250
|
-
summary: "Existing alert primitive for inline warnings and errors.",
|
|
251
|
-
useWhen: "For a persistent inline message inside a widget or view.",
|
|
252
|
-
related: ["DataBoundary"],
|
|
253
|
-
status: "stable",
|
|
254
|
-
example: '<Alert variant="destructive">Failed to load</Alert>'
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
name: "MetricSkeleton",
|
|
258
|
-
category: "state",
|
|
259
|
-
kind: "composite",
|
|
260
|
-
summary: "Loading placeholder for a row of metrics.",
|
|
261
|
-
useWhen: "As the `loading` fallback for metric layouts.",
|
|
262
|
-
related: ["DataBoundary", "ListSkeleton"],
|
|
263
|
-
status: "stable",
|
|
264
|
-
example: "<MetricSkeleton count={3} />"
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
name: "ListSkeleton",
|
|
268
|
-
category: "state",
|
|
269
|
-
kind: "composite",
|
|
270
|
-
summary: "Loading placeholder for a list of rows.",
|
|
271
|
-
useWhen: "As the `loading` fallback for item lists.",
|
|
272
|
-
related: ["DataBoundary", "ItemList"],
|
|
273
|
-
status: "stable",
|
|
274
|
-
example: "<ListSkeleton count={4} />"
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
name: "ActivitySkeleton",
|
|
278
|
-
category: "state",
|
|
279
|
-
kind: "composite",
|
|
280
|
-
summary: "Loading placeholder for an activity list.",
|
|
281
|
-
useWhen: "As the `loading` fallback for activity feeds.",
|
|
282
|
-
related: ["DataBoundary", "ActivityList"],
|
|
283
|
-
status: "stable",
|
|
284
|
-
example: "<ActivitySkeleton count={4} />"
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
name: "Skeleton",
|
|
288
|
-
category: "state",
|
|
289
|
-
kind: "primitive",
|
|
290
|
-
summary: "Existing skeleton primitive for bespoke loading shapes.",
|
|
291
|
-
useWhen: "When the prebuilt skeleton patterns do not fit.",
|
|
292
|
-
related: ["MetricSkeleton", "ListSkeleton", "ActivitySkeleton"],
|
|
293
|
-
status: "stable",
|
|
294
|
-
example: '<Skeleton className="h-4 w-24" />'
|
|
295
|
-
},
|
|
296
|
-
// ── Actions ───────────────────────────────────────────────────
|
|
297
|
-
{
|
|
298
|
-
name: "Button",
|
|
299
|
-
category: "action",
|
|
300
|
-
kind: "primitive",
|
|
301
|
-
summary: "Existing button primitive, the standard text-action control.",
|
|
302
|
-
useWhen: "For a labelled action.",
|
|
303
|
-
related: ["IconButton"],
|
|
304
|
-
status: "stable",
|
|
305
|
-
example: '<Button size="sm">Open</Button>'
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
name: "IconButton",
|
|
309
|
-
category: "action",
|
|
310
|
-
kind: "composite",
|
|
311
|
-
summary: "Small icon-only button with a required accessible label.",
|
|
312
|
-
useWhen: "For a compact action such as refresh or dismiss.",
|
|
313
|
-
related: ["Button", "Icon"],
|
|
314
|
-
status: "stable",
|
|
315
|
-
example: '<IconButton icon={RotateCw} label="Refresh" size="xs" />'
|
|
316
|
-
}
|
|
317
|
-
];
|
|
318
|
-
var catalog_default = dashboardComponentCatalog;
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
exports.dashboardComponentCatalog = dashboardComponentCatalog; exports.default = catalog_default;
|
|
1
|
+
"use strict";
|
|
@@ -9,6 +9,5 @@ interface DashboardComponentCatalogEntry {
|
|
|
9
9
|
status: "stable" | "experimental";
|
|
10
10
|
example?: string;
|
|
11
11
|
}
|
|
12
|
-
declare const dashboardComponentCatalog: DashboardComponentCatalogEntry[];
|
|
13
12
|
|
|
14
|
-
export {
|
|
13
|
+
export type { DashboardComponentCatalogEntry };
|
|
@@ -9,6 +9,5 @@ interface DashboardComponentCatalogEntry {
|
|
|
9
9
|
status: "stable" | "experimental";
|
|
10
10
|
example?: string;
|
|
11
11
|
}
|
|
12
|
-
declare const dashboardComponentCatalog: DashboardComponentCatalogEntry[];
|
|
13
12
|
|
|
14
|
-
export {
|
|
13
|
+
export type { DashboardComponentCatalogEntry };
|