eidotter 0.46.0 → 0.47.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/README.md +8 -5
- package/dist/components/Brand/components/Wordmark.d.ts +2 -1
- package/dist/components/Brand/components/Wordmark.js +3 -2
- package/dist/components/CalendarHeatmap/components/CalendarHeatmap.d.ts +2 -2
- package/dist/components/CalendarHeatmap/components/CalendarHeatmap.js +2 -2
- package/dist/components/ChecklistRow/components/ChecklistRow.d.ts +1 -1
- package/dist/components/ChecklistRow/components/ChecklistRow.js +1 -1
- package/dist/components/CopyButton/components/CopyButton.d.ts +1 -1
- package/dist/components/CopyButton/components/CopyButton.js +1 -1
- package/dist/components/DisplayMenu/components/DisplayMenu.d.ts +8 -5
- package/dist/components/DisplayMenu/components/DisplayMenu.js +69 -10
- package/dist/components/EmptyState/components/EmptyState.d.ts +1 -1
- package/dist/components/EmptyState/components/EmptyState.js +1 -1
- package/dist/components/Gauge/components/Gauge.js +1 -1
- package/dist/components/HoldToComplete/components/HoldToComplete.d.ts +1 -1
- package/dist/components/HoldToComplete/components/HoldToComplete.js +1 -1
- package/dist/components/LedgerRow/components/LedgerRow.d.ts +1 -1
- package/dist/components/LedgerRow/components/LedgerRow.js +1 -1
- package/dist/components/ProgressRing/components/ProgressRing.d.ts +1 -1
- package/dist/components/ProgressRing/components/ProgressRing.js +1 -1
- package/dist/components/RetroEffects/components/RetroEffects.d.ts +54 -0
- package/dist/components/RetroEffects/components/RetroEffects.js +124 -4
- package/dist/components/RetroEffects/components/index.d.ts +1 -1
- package/dist/components/RetroEffects/index.d.ts +1 -1
- package/dist/components/SectionHeading/components/SectionHeading.d.ts +1 -1
- package/dist/components/SectionHeading/components/SectionHeading.js +2 -2
- package/dist/components/Stat/components/Stat.js +1 -1
- package/dist/components/registry.d.ts +12 -1
- package/dist/components/registry.js +101 -98
- package/dist/eidotter.css +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.es.js +731 -603
- package/dist/index.umd.js +3 -3
- package/dist/terminal/cga-amber.json +94 -0
- package/dist/terminal/cga-mode4-p0.json +94 -0
- package/dist/terminal/cga-mode4-p1.json +94 -0
- package/dist/terminal/cga-mode5.json +94 -0
- package/dist/terminal/dos-86.json +94 -0
- package/dist/utils/displayTheme.d.ts +32 -4
- package/dist/utils/displayTheme.js +33 -7
- package/guidelines/README.md +14 -2
- package/guidelines/components.md +9 -0
- package/guidelines/design-principles.md +1 -0
- package/guidelines/figma-architecture.md +1 -2
- package/guidelines/terminal-target.md +44 -0
- package/llms.txt +19 -19
- package/migrations/0.47.0.md +209 -0
- package/migrations/README.md +2 -0
- package/package.json +12 -6
- package/src/styles/dos-utilities.css +13 -3
- package/src/styles/shadcn.css +37 -2
- package/src/styles/theme.amber-paper.css +11 -7
- package/src/styles/theme.cga-amber.css +7 -7
- package/src/styles/theme.cga-mode4-p0.css +7 -7
- package/src/styles/theme.cga-mode4-p1.css +7 -7
- package/src/styles/theme.cga-mode5.css +7 -7
- package/src/styles/theme.dos-86.css +79 -0
- package/src/styles/theme.light.css +7 -7
- package/src/styles/{theme.amber-mono.css → theme.pure-amber.css} +8 -8
- package/src/styles/tokens.css +65 -23
- package/tailwind.preset.cjs +4 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { RetroEffects } from './components/index.js';
|
|
2
|
-
export type { RetroEffectsProps, PowerState } from './components/index.js';
|
|
2
|
+
export type { RetroEffectsProps, PowerState, RetroEffectsPreset, RetroEffectsGlowMode } from './components/index.js';
|
|
@@ -19,7 +19,7 @@ export interface SectionHeadingProps {
|
|
|
19
19
|
* DOS-styled section heading — an uppercase `<h3>` label with an optional
|
|
20
20
|
* trailing `(count)` and tone-driven colour. Pure presentational.
|
|
21
21
|
*
|
|
22
|
-
* Ported from
|
|
22
|
+
* Ported from a private consumer (DMNC-855); that version hardcoded
|
|
23
23
|
* `text-cga-*` — this routes tones through `text-dos-*` semantic roles instead
|
|
24
24
|
* so the heading re-themes and stays AA-safe under amber-mono.
|
|
25
25
|
*/
|
|
@@ -10,9 +10,9 @@ const toneClasses = {
|
|
|
10
10
|
* DOS-styled section heading — an uppercase `<h3>` label with an optional
|
|
11
11
|
* trailing `(count)` and tone-driven colour. Pure presentational.
|
|
12
12
|
*
|
|
13
|
-
* Ported from
|
|
13
|
+
* Ported from a private consumer (DMNC-855); that version hardcoded
|
|
14
14
|
* `text-cga-*` — this routes tones through `text-dos-*` semantic roles instead
|
|
15
15
|
* so the heading re-themes and stays AA-safe under amber-mono.
|
|
16
16
|
*/
|
|
17
|
-
export const SectionHeading = ({ title, count, tone = 'default', children, className, }) => (_jsxs("h3", { className: cn('eidotter-section-heading', 'font-dos uppercase tracking-wider mb-2 text-dos-text-sm', toneClasses[tone], className), children: [title, count !== undefined && ` (${count})`, children] }));
|
|
17
|
+
export const SectionHeading = ({ title, count, tone = 'default', children, className, }) => (_jsxs("h3", { className: cn('eidotter-section-heading', 'font-dos-heading uppercase tracking-wider mb-2 text-dos-text-sm', toneClasses[tone], className), children: [title, count !== undefined && ` (${count})`, children] }));
|
|
18
18
|
SectionHeading.displayName = 'SectionHeading';
|
|
@@ -37,6 +37,6 @@ export const Stat = forwardRef(({ label, value, trend, trendValue, size = 'md',
|
|
|
37
37
|
});
|
|
38
38
|
const displayValue = scramble ? scrambledValue : String(value);
|
|
39
39
|
const s = sizeClasses[size] || sizeClasses.md;
|
|
40
|
-
return (_jsxs("div", { ref: ref, className: cn('flex flex-col font-dos', 'eidotter-stat', s.root, className), ...props, children: [_jsx("span", { className: cn('text-dos-text-brand uppercase tracking-wider leading-tight', s.label), children: label }), _jsxs("span", { className: cn('text-dos-text-accent font-bold leading-none tabular-nums', s.value), children: [displayValue, unit && (_jsxs("span", { className: "eidotter-stat__unit text-[0.5em] font-normal text-dos-text-brand", children: [' ', unit] }))] }), note && (_jsx("span", { className: `eidotter-stat__note text-dos-text-muted leading-tight ${s.trend}`, children: note })), target && (_jsx("span", { className: `eidotter-stat__target text-dos-text-brand leading-tight ${s.trend}`, children: target })), trend && (_jsxs("span", { className: cn('inline-flex items-center gap-1 leading-none', trendColorClasses[trend], s.trend), "aria-label": `Trend: ${trendLabels[trend]}${trendValue ? `, ${trendValue}` : ''}`, children: [_jsx("span", { className: "text-[0.8em]", "aria-hidden": "true", children: trendIcons[trend] }), trendValue && (_jsx("span", { className: "tabular-nums", children: trendValue }))] }))] }));
|
|
40
|
+
return (_jsxs("div", { ref: ref, className: cn('flex flex-col font-dos', 'eidotter-stat', s.root, className), ...props, children: [_jsx("span", { className: cn('text-dos-text-brand uppercase tracking-wider leading-tight', s.label), children: label }), _jsxs("span", { className: cn('font-dos-heading text-dos-text-accent font-bold leading-none tabular-nums', s.value), children: [displayValue, unit && (_jsxs("span", { className: "eidotter-stat__unit text-[0.5em] font-normal text-dos-text-brand", children: [' ', unit] }))] }), note && (_jsx("span", { className: `eidotter-stat__note text-dos-text-muted leading-tight ${s.trend}`, children: note })), target && (_jsx("span", { className: `eidotter-stat__target text-dos-text-brand leading-tight ${s.trend}`, children: target })), trend && (_jsxs("span", { className: cn('inline-flex items-center gap-1 leading-none', trendColorClasses[trend], s.trend), "aria-label": `Trend: ${trendLabels[trend]}${trendValue ? `, ${trendValue}` : ''}`, children: [_jsx("span", { className: "text-[0.8em]", "aria-hidden": "true", children: trendIcons[trend] }), trendValue && (_jsx("span", { className: "tabular-nums", children: trendValue }))] }))] }));
|
|
41
41
|
});
|
|
42
42
|
Stat.displayName = 'Stat';
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Projects the registry may name. This file ships in the public package and the
|
|
3
|
+
* public Storybook, so only eiDotter itself and the public sites appear here.
|
|
4
|
+
* A private project must never be added (guarded by registry.public-names.test.ts).
|
|
5
|
+
*/
|
|
6
|
+
export type ProjectId = 'eidotter' | 'rizomorf' | 'dmnctech' | 'eidotter-home' | 'dmnc-online';
|
|
2
7
|
export interface ProjectInfo {
|
|
3
8
|
displayName: string;
|
|
4
9
|
url?: string;
|
|
@@ -45,3 +50,9 @@ export declare function getComponentsByConsumer(projectId: ProjectId): string[];
|
|
|
45
50
|
export declare function getVariantsUsedBy(componentName: string, projectId: ProjectId): string[];
|
|
46
51
|
/** Returns a map of variant name → consumers[] for a component */
|
|
47
52
|
export declare function getVariantConsumerMap(componentName: string): Record<string, ProjectId[]>;
|
|
53
|
+
/**
|
|
54
|
+
* The provenance line printed above every Storybook story. Only names the registry
|
|
55
|
+
* is allowed to carry reach it, and an empty consumer list drops the "Used by" part
|
|
56
|
+
* instead of printing a dangling label.
|
|
57
|
+
*/
|
|
58
|
+
export declare function formatProvenanceLine(meta: ComponentMeta): string;
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
export const projects = {
|
|
2
2
|
eidotter: { displayName: 'eiDotter' },
|
|
3
|
-
spacewar: { displayName: 'Spacewar!' },
|
|
4
3
|
rizomorf: { displayName: 'rizomorf' },
|
|
5
|
-
'pomodoke-calendar': { displayName: 'PomoDoke Calendar' },
|
|
6
|
-
keepcoin: { displayName: 'KeepCoin' },
|
|
7
|
-
steuerdash: { displayName: 'Steuerdash' },
|
|
8
|
-
sella: { displayName: 'sella' },
|
|
9
|
-
lifelines: { displayName: 'Lifelines' },
|
|
10
|
-
betamorf: { displayName: 'betamorf' },
|
|
11
4
|
dmnctech: { displayName: 'dmnc.tech', url: 'https://dmnc.tech' },
|
|
12
|
-
|
|
13
|
-
'
|
|
14
|
-
dosbts: { displayName: 'DOSBTS' },
|
|
5
|
+
'eidotter-home': { displayName: 'eidotter.com', url: 'https://eidotter.com' },
|
|
6
|
+
'dmnc-online': { displayName: 'dmnc.online' },
|
|
15
7
|
};
|
|
16
8
|
// ---------------------------------------------------------------------------
|
|
17
9
|
// Registry data
|
|
@@ -19,7 +11,7 @@ export const projects = {
|
|
|
19
11
|
export const componentRegistry = {
|
|
20
12
|
Alert: {
|
|
21
13
|
origin: 'eidotter',
|
|
22
|
-
consumers: ['rizomorf'
|
|
14
|
+
consumers: ['rizomorf'],
|
|
23
15
|
since: '0.2.0',
|
|
24
16
|
variants: {
|
|
25
17
|
'color:brand': { description: 'Brand-accent message' },
|
|
@@ -29,9 +21,9 @@ export const componentRegistry = {
|
|
|
29
21
|
'color:warning': { description: 'Warning notice' },
|
|
30
22
|
'color:success': { description: 'Success confirmation' },
|
|
31
23
|
'type:info': { description: 'Informational message', deprecated: '0.16.0', since: '0.2.0', usedBy: ['rizomorf'] },
|
|
32
|
-
'type:success': { description: 'Success confirmation', deprecated: '0.16.0', since: '0.2.0'
|
|
33
|
-
'type:warning': { description: 'Warning notice', deprecated: '0.16.0', since: '0.2.0', usedBy: ['rizomorf'
|
|
34
|
-
'type:error': { description: 'Error message', deprecated: '0.16.0', since: '0.2.0'
|
|
24
|
+
'type:success': { description: 'Success confirmation', deprecated: '0.16.0', since: '0.2.0' },
|
|
25
|
+
'type:warning': { description: 'Warning notice', deprecated: '0.16.0', since: '0.2.0', usedBy: ['rizomorf'] },
|
|
26
|
+
'type:error': { description: 'Error message', deprecated: '0.16.0', since: '0.2.0' },
|
|
35
27
|
'type:default': { description: 'Deprecated: neutral message (use color)', deprecated: '0.16.0' },
|
|
36
28
|
'type:brand': { description: 'Deprecated: brand message (use color)', deprecated: '0.16.0' },
|
|
37
29
|
'size:floating': { description: 'Card-style floating alert (default)' },
|
|
@@ -91,13 +83,13 @@ export const componentRegistry = {
|
|
|
91
83
|
},
|
|
92
84
|
Badge: {
|
|
93
85
|
origin: 'eidotter',
|
|
94
|
-
consumers: ['rizomorf'
|
|
86
|
+
consumers: ['rizomorf'],
|
|
95
87
|
since: '0.3.0',
|
|
96
88
|
variants: {
|
|
97
89
|
'variant:default': { description: 'Neutral badge with muted styling', since: '0.3.0', usedBy: ['rizomorf'] },
|
|
98
|
-
'variant:success': { description: 'Green success indicator', since: '0.3.0'
|
|
99
|
-
'variant:warning': { description: 'Amber warning indicator', since: '0.3.0'
|
|
100
|
-
'variant:error': { description: 'Red error/critical indicator', since: '0.3.0'
|
|
90
|
+
'variant:success': { description: 'Green success indicator', since: '0.3.0' },
|
|
91
|
+
'variant:warning': { description: 'Amber warning indicator', since: '0.3.0' },
|
|
92
|
+
'variant:error': { description: 'Red error/critical indicator', since: '0.3.0' },
|
|
101
93
|
'variant:info': { description: 'Blue informational indicator', since: '0.3.0' },
|
|
102
94
|
'variant:accent': { description: 'Theme accent color badge', since: '0.3.0', usedBy: ['rizomorf'] },
|
|
103
95
|
'variant:brand': { description: 'Alias of accent' },
|
|
@@ -144,13 +136,13 @@ export const componentRegistry = {
|
|
|
144
136
|
},
|
|
145
137
|
Button: {
|
|
146
138
|
origin: 'eidotter',
|
|
147
|
-
consumers: ['
|
|
139
|
+
consumers: ['rizomorf'],
|
|
148
140
|
since: '0.2.0',
|
|
149
141
|
variants: {
|
|
150
|
-
'variant:primary': { description: 'Primary CTA with amber background', since: '0.2.0', usedBy: ['
|
|
151
|
-
'variant:secondary': { description: 'Secondary action with border only', since: '0.2.0', usedBy: ['rizomorf'
|
|
142
|
+
'variant:primary': { description: 'Primary CTA with amber background', since: '0.2.0', usedBy: ['rizomorf'] },
|
|
143
|
+
'variant:secondary': { description: 'Secondary action with border only', since: '0.2.0', usedBy: ['rizomorf'] },
|
|
152
144
|
'variant:tertiary': { description: 'Lower-emphasis action between secondary and ghost' },
|
|
153
|
-
'variant:destructive': { description: 'Destructive action; honest red under colour themes, amber-
|
|
145
|
+
'variant:destructive': { description: 'Destructive action; honest red under dos-86 (the default, fill #D00000) and the colour themes, amber under Pure Amber (pure-amber, formerly amber-mono)' },
|
|
154
146
|
'variant:ghost': { description: 'Minimal button with hover reveal', since: '0.2.0', usedBy: ['rizomorf'] },
|
|
155
147
|
'variant:link': { description: 'Inline link-style button', since: '0.2.0', usedBy: ['rizomorf'] },
|
|
156
148
|
'size:xs': { description: 'Extra-compact 1.5rem min-height (24px)' },
|
|
@@ -165,7 +157,7 @@ export const componentRegistry = {
|
|
|
165
157
|
platforms: {
|
|
166
158
|
react: { path: 'src/components/Button', status: 'canonical' },
|
|
167
159
|
swiftui: { path: 'platforms/swiftui/Sources/EiDotterUI/DOSButton.swift', status: 'planned', note: 'POC with primary variant only — not yet production-ready' },
|
|
168
|
-
spritekit: { status: 'token-only', note: '
|
|
160
|
+
spritekit: { status: 'token-only', note: 'A native consumer uses tokens only, no UIKit/SwiftUI button' },
|
|
169
161
|
},
|
|
170
162
|
changelog: [
|
|
171
163
|
{ version: '0.41.0', type: 'changed', description: 'Loading indicator uses the shared stepped blink keyframe (blink-loading removed, DMNC-1592)' },
|
|
@@ -181,11 +173,11 @@ export const componentRegistry = {
|
|
|
181
173
|
},
|
|
182
174
|
Card: {
|
|
183
175
|
origin: 'eidotter',
|
|
184
|
-
consumers: ['rizomorf'
|
|
176
|
+
consumers: ['rizomorf'],
|
|
185
177
|
since: '0.3.0',
|
|
186
178
|
variants: {
|
|
187
|
-
'variant:default': { description: 'Standard card with subtle border', since: '0.3.0', usedBy: ['rizomorf'
|
|
188
|
-
'variant:elevated': { description: 'Raised card with drop shadow', since: '0.3.0'
|
|
179
|
+
'variant:default': { description: 'Standard card with subtle border', since: '0.3.0', usedBy: ['rizomorf'] },
|
|
180
|
+
'variant:elevated': { description: 'Raised card with drop shadow', since: '0.3.0' },
|
|
189
181
|
'variant:bordered': { description: 'Strong border emphasis', since: '0.3.0' },
|
|
190
182
|
'variant:glow': { description: 'Phosphor glow border effect', since: '0.4.0', usedBy: ['rizomorf'] },
|
|
191
183
|
'variant:interactive': { description: 'Hover-reactive card for clickable surfaces', since: '0.4.0', usedBy: ['rizomorf'] },
|
|
@@ -209,11 +201,11 @@ export const componentRegistry = {
|
|
|
209
201
|
},
|
|
210
202
|
Checkbox: {
|
|
211
203
|
origin: 'eidotter',
|
|
212
|
-
consumers: [
|
|
204
|
+
consumers: [],
|
|
213
205
|
since: '0.3.0',
|
|
214
206
|
variants: {
|
|
215
207
|
'size:sm': { description: 'Compact 16px checkbox for dense forms', since: '0.16.0' },
|
|
216
|
-
'size:md': { description: 'Standard 20px checkbox', since: '0.3.0'
|
|
208
|
+
'size:md': { description: 'Standard 20px checkbox', since: '0.3.0' },
|
|
217
209
|
},
|
|
218
210
|
platforms: {
|
|
219
211
|
react: { path: 'src/components/Checkbox', status: 'canonical' },
|
|
@@ -278,11 +270,11 @@ export const componentRegistry = {
|
|
|
278
270
|
},
|
|
279
271
|
Input: {
|
|
280
272
|
origin: 'eidotter',
|
|
281
|
-
consumers: [
|
|
273
|
+
consumers: [],
|
|
282
274
|
since: '0.3.0',
|
|
283
275
|
variants: {
|
|
284
|
-
'variant:default': { description: 'Standard text input with amber focus border', since: '0.3.0'
|
|
285
|
-
'variant:error': { description: 'Error state — red border, errorMessage slot', since: '0.3.0'
|
|
276
|
+
'variant:default': { description: 'Standard text input with amber focus border', since: '0.3.0' },
|
|
277
|
+
'variant:error': { description: 'Error state — red border, errorMessage slot', since: '0.3.0' },
|
|
286
278
|
},
|
|
287
279
|
platforms: {
|
|
288
280
|
react: { path: 'src/components/Input', status: 'canonical' },
|
|
@@ -310,7 +302,7 @@ export const componentRegistry = {
|
|
|
310
302
|
},
|
|
311
303
|
Modal: {
|
|
312
304
|
origin: 'eidotter',
|
|
313
|
-
consumers: [
|
|
305
|
+
consumers: [],
|
|
314
306
|
since: '0.3.0',
|
|
315
307
|
originNote: 'DOS-styled dialog built on React Aria ModalOverlay/Modal/Dialog — focus trap, Esc to close, backdrop',
|
|
316
308
|
platforms: {
|
|
@@ -328,17 +320,17 @@ export const componentRegistry = {
|
|
|
328
320
|
},
|
|
329
321
|
Progress: {
|
|
330
322
|
origin: 'eidotter',
|
|
331
|
-
consumers: [
|
|
323
|
+
consumers: [],
|
|
332
324
|
since: '0.3.0',
|
|
333
325
|
variants: {
|
|
334
|
-
'variant:default': { description: 'Amber progress bar', since: '0.3.0'
|
|
326
|
+
'variant:default': { description: 'Amber progress bar', since: '0.3.0' },
|
|
335
327
|
'variant:success': { description: 'Green completion indicator', since: '0.3.0' },
|
|
336
328
|
'variant:warning': { description: 'Amber warning progress', since: '0.3.0' },
|
|
337
329
|
'variant:error': { description: 'Red error/failed progress', since: '0.3.0' },
|
|
338
330
|
'size:sm': { description: 'Compact single-row bar', since: '0.16.0' },
|
|
339
|
-
'size:md': { description: 'Standard bar height', since: '0.3.0'
|
|
331
|
+
'size:md': { description: 'Standard bar height', since: '0.3.0' },
|
|
340
332
|
'size:lg': { description: 'Tall bar for prominent display', since: '0.16.0' },
|
|
341
|
-
'trackStyle:block': { description: 'Solid block fill (default)', since: '0.3.0'
|
|
333
|
+
'trackStyle:block': { description: 'Solid block fill (default)', since: '0.3.0' },
|
|
342
334
|
'trackStyle:bordered': { description: 'Outline bar with fill inside', since: '0.3.0' },
|
|
343
335
|
'trackStyle:gradient': { description: 'Gradient fill for smooth visual', since: '0.3.0' },
|
|
344
336
|
'size:small': { description: 'Deprecated alias of size:sm', deprecated: '0.16.0' },
|
|
@@ -356,13 +348,13 @@ export const componentRegistry = {
|
|
|
356
348
|
],
|
|
357
349
|
},
|
|
358
350
|
RetroEffects: {
|
|
359
|
-
origin: '
|
|
360
|
-
consumers: ['
|
|
351
|
+
origin: 'eidotter',
|
|
352
|
+
consumers: ['rizomorf'],
|
|
361
353
|
since: '0.3.0',
|
|
362
|
-
originNote: 'CRT scanline/glow effects
|
|
354
|
+
originNote: 'CRT scanline/glow effects — compositor-only, prefers-reduced-motion safe',
|
|
363
355
|
platforms: {
|
|
364
356
|
react: { path: 'src/components/RetroEffects', status: 'canonical' },
|
|
365
|
-
spritekit: { status: 'planned', note: '
|
|
357
|
+
spritekit: { status: 'planned', note: 'Native consumers use a CRT shader natively; component is React-web-only' },
|
|
366
358
|
},
|
|
367
359
|
changelog: [
|
|
368
360
|
{ version: '0.30.0', type: 'added', description: 'bootOnce — gate CGA turn-on to once per browser tab/session via sessionStorage' },
|
|
@@ -373,18 +365,18 @@ export const componentRegistry = {
|
|
|
373
365
|
],
|
|
374
366
|
},
|
|
375
367
|
Select: {
|
|
376
|
-
origin: '
|
|
377
|
-
consumers: [
|
|
368
|
+
origin: 'eidotter',
|
|
369
|
+
consumers: [],
|
|
378
370
|
since: '0.36.0',
|
|
379
|
-
originNote: 'DOS-styled dropdown. MVP was a native <select> ported from
|
|
371
|
+
originNote: 'DOS-styled dropdown. MVP was a native <select> ported from a private consumer; rebuilt on React Aria Select/ComboBox in DMNC-593 with default/searchable/multi modes',
|
|
380
372
|
variants: {
|
|
381
|
-
'mode:default': { description: 'Single-select — React Aria Select (button + popover + listbox)', since: '0.38.0'
|
|
373
|
+
'mode:default': { description: 'Single-select — React Aria Select (button + popover + listbox)', since: '0.38.0' },
|
|
382
374
|
'searchable:true': { description: 'Type-to-filter ComboBox single-select', since: '0.38.0' },
|
|
383
375
|
'multiple:true': { description: 'Multi-select listbox; value/onChange use string arrays', since: '0.38.0' },
|
|
384
376
|
'variant:default': { description: 'Standard (valid) state' },
|
|
385
377
|
'variant:error': { description: 'Invalid state — red border + errorMessage slot', since: '0.38.0' },
|
|
386
378
|
'size:sm': { description: 'Compact trigger (28px min-height)', since: '0.38.0' },
|
|
387
|
-
'size:md': { description: 'Standard trigger (32px min-height)', since: '0.38.0'
|
|
379
|
+
'size:md': { description: 'Standard trigger (32px min-height)', since: '0.38.0' },
|
|
388
380
|
'size:lg': { description: 'Tall trigger (40px min-height)', since: '0.38.0' },
|
|
389
381
|
'size:small': { description: 'Deprecated alias of size:sm', deprecated: '0.16.0' },
|
|
390
382
|
'size:medium': { description: 'Deprecated alias of size:md', deprecated: '0.16.0' },
|
|
@@ -398,7 +390,7 @@ export const componentRegistry = {
|
|
|
398
390
|
{ version: '0.41.0', type: 'changed', description: 'Popover enter/exit use the shared eidotter-pop-in/out at 150ms (select-pop-in/out removed, DMNC-1592)' },
|
|
399
391
|
{ version: '0.41.0', type: 'changed', description: 'Keyboard focus ring: 2px amber outline at 2px offset on the trigger (searchable: when its input has focus-visible) (DMNC-1436)' },
|
|
400
392
|
{ version: '0.38.0', type: 'changed', description: 'Rebuild on React Aria (Select/ComboBox/ListBox) with phosphor glow; add searchable + multiple modes, label/description/error chrome, sizes. Backward-compatible value/options/onChange API (DMNC-593)' },
|
|
401
|
-
{ version: '0.36.0', type: 'added', description: 'Initial Select — native <select> MVP ported from
|
|
393
|
+
{ version: '0.36.0', type: 'added', description: 'Initial Select — native <select> MVP ported from a private consumer (DMNC-860)' },
|
|
402
394
|
],
|
|
403
395
|
},
|
|
404
396
|
Skeleton: {
|
|
@@ -411,16 +403,16 @@ export const componentRegistry = {
|
|
|
411
403
|
],
|
|
412
404
|
},
|
|
413
405
|
Stat: {
|
|
414
|
-
origin: '
|
|
415
|
-
consumers: [
|
|
406
|
+
origin: 'eidotter',
|
|
407
|
+
consumers: [],
|
|
416
408
|
since: '0.3.0',
|
|
417
409
|
originNote: 'Key-value metric display created for tax dashboard — optional trend arrow and TextScramble animation',
|
|
418
410
|
variants: {
|
|
419
411
|
'size:sm': { description: 'Compact metric for dense dashboards', since: '0.16.0' },
|
|
420
|
-
'size:md': { description: 'Standard metric display', since: '0.3.0'
|
|
421
|
-
'size:lg': { description: 'Hero metric for prominent KPIs', since: '0.16.0'
|
|
422
|
-
'trend:up': { description: 'Upward trend indicator (green arrow)', since: '0.3.0'
|
|
423
|
-
'trend:down': { description: 'Downward trend indicator (red arrow)', since: '0.3.0'
|
|
412
|
+
'size:md': { description: 'Standard metric display', since: '0.3.0' },
|
|
413
|
+
'size:lg': { description: 'Hero metric for prominent KPIs', since: '0.16.0' },
|
|
414
|
+
'trend:up': { description: 'Upward trend indicator (green arrow)', since: '0.3.0' },
|
|
415
|
+
'trend:down': { description: 'Downward trend indicator (red arrow)', since: '0.3.0' },
|
|
424
416
|
'trend:neutral': { description: 'No change indicator (muted dash)', since: '0.3.0' },
|
|
425
417
|
'size:small': { description: 'Deprecated alias of size:sm', deprecated: '0.16.0' },
|
|
426
418
|
'size:medium': { description: 'Deprecated alias of size:md', deprecated: '0.16.0' },
|
|
@@ -463,14 +455,14 @@ export const componentRegistry = {
|
|
|
463
455
|
},
|
|
464
456
|
FilterBar: {
|
|
465
457
|
origin: 'eidotter',
|
|
466
|
-
consumers: ['
|
|
458
|
+
consumers: ['rizomorf'],
|
|
467
459
|
since: '0.7.0',
|
|
468
460
|
originNote: 'Multi-select toggle group for faceted filtering — keyboard nav, showAll, per-item color',
|
|
469
461
|
variants: {
|
|
470
|
-
'mode:multi': { description: 'Multiple filters selectable simultaneously', since: '0.7.0', usedBy: ['
|
|
462
|
+
'mode:multi': { description: 'Multiple filters selectable simultaneously', since: '0.7.0', usedBy: ['rizomorf'] },
|
|
471
463
|
'mode:single': { description: 'Single active filter (radio behavior)', since: '0.7.0' },
|
|
472
464
|
'size:sm': { description: 'Compact filter chips', since: '0.16.0' },
|
|
473
|
-
'size:md': { description: 'Standard filter chips', since: '0.7.0', usedBy: ['
|
|
465
|
+
'size:md': { description: 'Standard filter chips', since: '0.7.0', usedBy: ['rizomorf'] },
|
|
474
466
|
'size:lg': { description: 'Large filter chips for touch targets', since: '0.16.0' },
|
|
475
467
|
'size:small': { description: 'Deprecated alias of size:sm', deprecated: '0.16.0' },
|
|
476
468
|
'size:medium': { description: 'Deprecated alias of size:md', deprecated: '0.16.0' },
|
|
@@ -487,13 +479,13 @@ export const componentRegistry = {
|
|
|
487
479
|
},
|
|
488
480
|
Tag: {
|
|
489
481
|
origin: 'eidotter',
|
|
490
|
-
consumers: ['
|
|
482
|
+
consumers: ['rizomorf'],
|
|
491
483
|
since: '0.7.0',
|
|
492
484
|
originNote: 'Interactive labels for tags, categories, and filter chips',
|
|
493
485
|
variants: {
|
|
494
486
|
'variant:default': { description: 'Standard tag with subtle background', since: '0.7.0', usedBy: ['rizomorf'] },
|
|
495
|
-
'variant:outlined': { description: 'Border-only tag', since: '0.7.0'
|
|
496
|
-
'variant:filled': { description: 'Solid background tag', since: '0.7.0', usedBy: ['rizomorf'
|
|
487
|
+
'variant:outlined': { description: 'Border-only tag', since: '0.7.0' },
|
|
488
|
+
'variant:filled': { description: 'Solid background tag', since: '0.7.0', usedBy: ['rizomorf'] },
|
|
497
489
|
'size:sm': { description: 'Compact tag for dense layouts' },
|
|
498
490
|
'size:md': { description: 'Standard tag size' },
|
|
499
491
|
'size:lg': { description: 'Large tag' },
|
|
@@ -514,13 +506,13 @@ export const componentRegistry = {
|
|
|
514
506
|
},
|
|
515
507
|
Tabs: {
|
|
516
508
|
origin: 'eidotter',
|
|
517
|
-
consumers: [
|
|
509
|
+
consumers: [],
|
|
518
510
|
since: '0.3.0',
|
|
519
511
|
variants: {
|
|
520
|
-
'variant:underline': { description: 'Underline indicator tab bar (default)', since: '0.3.0'
|
|
512
|
+
'variant:underline': { description: 'Underline indicator tab bar (default)', since: '0.3.0' },
|
|
521
513
|
'variant:pills': { description: 'Filled pill tabs', since: '0.3.0' },
|
|
522
514
|
'size:sm': { description: 'Compact tabs for dense layouts', since: '0.16.0' },
|
|
523
|
-
'size:md': { description: 'Standard tab height', since: '0.3.0'
|
|
515
|
+
'size:md': { description: 'Standard tab height', since: '0.3.0' },
|
|
524
516
|
'size:lg': { description: 'Large touch-friendly tabs', since: '0.16.0' },
|
|
525
517
|
'size:small': { description: 'Deprecated alias of size:sm', deprecated: '0.16.0' },
|
|
526
518
|
'size:medium': { description: 'Deprecated alias of size:md', deprecated: '0.16.0' },
|
|
@@ -567,24 +559,24 @@ export const componentRegistry = {
|
|
|
567
559
|
],
|
|
568
560
|
},
|
|
569
561
|
TimelineNode: {
|
|
570
|
-
origin: '
|
|
571
|
-
consumers: ['
|
|
562
|
+
origin: 'eidotter',
|
|
563
|
+
consumers: ['rizomorf'],
|
|
572
564
|
since: '0.4.0',
|
|
573
|
-
originNote: 'Timeline markers extracted from
|
|
565
|
+
originNote: 'Timeline markers extracted from a private consumer — sits on the axis line, content-box sizing',
|
|
574
566
|
variants: {
|
|
575
|
-
'shape:circle': { description: 'Circular node marker (default)', since: '0.4.0', usedBy: ['
|
|
567
|
+
'shape:circle': { description: 'Circular node marker (default)', since: '0.4.0', usedBy: ['rizomorf'] },
|
|
576
568
|
'shape:square': { description: 'Square node marker', since: '0.4.0' },
|
|
577
569
|
'shape:diamond': { description: 'Diamond (rotated square) node marker', since: '0.4.0' },
|
|
578
|
-
'variant:default': { description: 'Muted amber node', since: '0.4.0', usedBy: ['
|
|
579
|
-
'variant:primary': { description: 'Full-brightness amber node with phosphor glow', since: '0.4.0'
|
|
570
|
+
'variant:default': { description: 'Muted amber node', since: '0.4.0', usedBy: ['rizomorf'] },
|
|
571
|
+
'variant:primary': { description: 'Full-brightness amber node with phosphor glow', since: '0.4.0' },
|
|
580
572
|
'variant:secondary': { description: 'Dimmed node for secondary events', since: '0.4.0' },
|
|
581
573
|
'variant:accent': { description: 'CGA accent color node', since: '0.4.0' },
|
|
582
|
-
'labelPosition:right': { description: 'Label to the right of the node (default)', since: '0.4.0', usedBy: ['
|
|
574
|
+
'labelPosition:right': { description: 'Label to the right of the node (default)', since: '0.4.0', usedBy: ['rizomorf'] },
|
|
583
575
|
'labelPosition:left': { description: 'Label to the left of the node', since: '0.4.0' },
|
|
584
576
|
'labelPosition:top': { description: 'Label above the node', since: '0.4.0' },
|
|
585
577
|
'labelPosition:bottom': { description: 'Label below the node', since: '0.4.0' },
|
|
586
578
|
'size:sm': { description: 'Compact 8px node', since: '0.16.0' },
|
|
587
|
-
'size:md': { description: 'Standard 12px node', since: '0.4.0', usedBy: ['
|
|
579
|
+
'size:md': { description: 'Standard 12px node', since: '0.4.0', usedBy: ['rizomorf'] },
|
|
588
580
|
'size:lg': { description: 'Large 16px node for emphasis', since: '0.16.0' },
|
|
589
581
|
'size:small': { description: 'Deprecated alias of size:sm', deprecated: '0.16.0' },
|
|
590
582
|
'size:medium': { description: 'Deprecated alias of size:md', deprecated: '0.16.0' },
|
|
@@ -637,17 +629,17 @@ export const componentRegistry = {
|
|
|
637
629
|
],
|
|
638
630
|
},
|
|
639
631
|
TimelineContainer: {
|
|
640
|
-
origin: '
|
|
641
|
-
consumers: [
|
|
632
|
+
origin: 'eidotter',
|
|
633
|
+
consumers: [],
|
|
642
634
|
since: '0.8.0',
|
|
643
635
|
originNote: 'Multi-zoom timeline with year/month/day/hour views. Supports interactive, static, feed, and master-detail modes.',
|
|
644
636
|
variants: {
|
|
645
|
-
'mode:interactive': { description: 'Full drill-down with keyboard shortcuts and Ctrl+scroll zoom', since: '0.8.0'
|
|
637
|
+
'mode:interactive': { description: 'Full drill-down with keyboard shortcuts and Ctrl+scroll zoom', since: '0.8.0' },
|
|
646
638
|
'mode:static': { description: 'Read-only snapshot — no zoom or selection controls', since: '0.8.0' },
|
|
647
|
-
'mode:feed': { description: 'Paginated vertical list with LOAD MORE — append-safe', since: '0.21.0'
|
|
639
|
+
'mode:feed': { description: 'Paginated vertical list with LOAD MORE — append-safe', since: '0.21.0' },
|
|
648
640
|
'mode:master-detail': { description: 'Split-pane with list rail + detail panel', since: '0.34.0' },
|
|
649
641
|
'sortOrder:asc': { description: 'Oldest entries first', since: '0.8.0' },
|
|
650
|
-
'sortOrder:desc': { description: 'Newest entries first (default)', since: '0.8.0'
|
|
642
|
+
'sortOrder:desc': { description: 'Newest entries first (default)', since: '0.8.0' },
|
|
651
643
|
},
|
|
652
644
|
platforms: {
|
|
653
645
|
react: { path: 'src/components/TimelineContainer', status: 'canonical' },
|
|
@@ -657,7 +649,7 @@ export const componentRegistry = {
|
|
|
657
649
|
{ version: '0.21.0', type: 'added', description: 'feed mode — pageSize, onLoadMore, DOS-styled LOAD MORE button' },
|
|
658
650
|
{ version: '0.21.0', type: 'added', description: 'renderEntry prop — pluggable entry renderer with defaultRender() opt-in' },
|
|
659
651
|
{ version: '0.9.0', type: 'changed', description: 'Responsive layout with CSS container queries' },
|
|
660
|
-
{ version: '0.8.0', type: 'added', description: 'Initial TimelineContainer — year/month/day/hour drill-down, migrated from
|
|
652
|
+
{ version: '0.8.0', type: 'added', description: 'Initial TimelineContainer — year/month/day/hour drill-down, migrated from a private consumer' },
|
|
661
653
|
],
|
|
662
654
|
},
|
|
663
655
|
TextScramble: {
|
|
@@ -813,7 +805,7 @@ export const componentRegistry = {
|
|
|
813
805
|
origin: 'eidotter',
|
|
814
806
|
consumers: [],
|
|
815
807
|
since: '0.45.0',
|
|
816
|
-
originNote: 'One header control for display options (DMNC-1619): a trigger (pixel monitor glyph, label, chevron; icon only below 640px) opens a React Aria popover
|
|
808
|
+
originNote: 'One header control for display options (DMNC-1619): a trigger (pixel monitor glyph, label, chevron; icon only below 640px) opens a non-modal React Aria popover (a labelled group, DMNC-1629) with one row per option, each an eidotter Switch. Replaces switches side by side in Header end slots; consumers own the state. Rows come from displayMenuItems: DOS, LIGHT and, on a site that passes dosPure (DMNC-1643), PURE (DOS on and LIGHT off only; hidden, never disabled).',
|
|
817
809
|
variants: {
|
|
818
810
|
'labelDisplay:responsive': { description: 'Icon only below 640px, icon + label above (default)', since: '0.45.0' },
|
|
819
811
|
'labelDisplay:icon': { description: 'Always icon only (36px square)', since: '0.45.0' },
|
|
@@ -821,6 +813,7 @@ export const componentRegistry = {
|
|
|
821
813
|
},
|
|
822
814
|
platforms: { react: { path: 'src/components/DisplayMenu', status: 'canonical' } },
|
|
823
815
|
changelog: [
|
|
816
|
+
{ version: '0.46.1', type: 'changed', description: 'Non-modal panel (DMNC-1629): no scroll lock, scrim or aria-hiding of the page; Escape, outside press, the trigger, Tab out and page scroll close it, focus returns to the trigger; the panel is a labelled role=group, not a dialog' },
|
|
824
817
|
{ version: '0.46.0', type: 'changed', description: 'Trigger is a HeaderButton (same geometry, states and phone size as every header control); trigger styles moved to HeaderButton.css, the eidotter-display-menu class stays on the trigger' },
|
|
825
818
|
{ version: '0.45.1', type: 'changed', description: 'Opening the panel focuses the first enabled switch, so Space toggles it without a Tab' },
|
|
826
819
|
{ version: '0.45.0', type: 'added', description: 'Initial DisplayMenu: items ({ id, label, checked, onChange, disabled, hint }), label, labelDisplay, placement, className; stable classes eidotter-display-menu, __popover, __panel, __row, __switch, __hint (DMNC-1619)' },
|
|
@@ -888,12 +881,12 @@ export const componentRegistry = {
|
|
|
888
881
|
{ version: '0.41.0', type: 'changed', description: 'Fix: search input shows the 2px focus-visible ring instead of only a faint background tint (DMNC-1436)' },
|
|
889
882
|
],
|
|
890
883
|
},
|
|
891
|
-
// Ported from
|
|
884
|
+
// Ported from a private habit app (DMNC-1040)
|
|
892
885
|
ProgressRing: {
|
|
893
|
-
origin: '
|
|
894
|
-
consumers: [
|
|
886
|
+
origin: 'eidotter',
|
|
887
|
+
consumers: [],
|
|
895
888
|
since: '0.37.0',
|
|
896
|
-
originNote: '16-segment quantized progress ring (SVG). Powers
|
|
889
|
+
originNote: '16-segment quantized progress ring (SVG). Powers the hold-to-complete feedback ring.',
|
|
897
890
|
platforms: { react: { path: 'src/components/ProgressRing', status: 'canonical' } },
|
|
898
891
|
changelog: [
|
|
899
892
|
{ version: '0.40.0', type: 'changed', description: 'Add additive decorative prop (aria-hidden, no progressbar role) so Gauge owns meter semantics' },
|
|
@@ -901,8 +894,8 @@ export const componentRegistry = {
|
|
|
901
894
|
],
|
|
902
895
|
},
|
|
903
896
|
CalendarHeatmap: {
|
|
904
|
-
origin: '
|
|
905
|
-
consumers: [
|
|
897
|
+
origin: 'eidotter',
|
|
898
|
+
consumers: [],
|
|
906
899
|
since: '0.37.0',
|
|
907
900
|
originNote: 'Block-character month calendar heatmap (█ ░ · ▒). Domain-agnostic — takes a date→status map, not a domain object.',
|
|
908
901
|
variants: {
|
|
@@ -916,8 +909,8 @@ export const componentRegistry = {
|
|
|
916
909
|
],
|
|
917
910
|
},
|
|
918
911
|
HoldToComplete: {
|
|
919
|
-
origin: '
|
|
920
|
-
consumers: [
|
|
912
|
+
origin: 'eidotter',
|
|
913
|
+
consumers: [],
|
|
921
914
|
since: '0.37.0',
|
|
922
915
|
originNote: 'Press-and-hold-to-complete interaction with ProgressRing feedback. Pointer + keyboard, reduced-motion aware.',
|
|
923
916
|
platforms: { react: { path: 'src/components/HoldToComplete', status: 'canonical' } },
|
|
@@ -994,9 +987,9 @@ export const componentRegistry = {
|
|
|
994
987
|
},
|
|
995
988
|
Gauge: {
|
|
996
989
|
origin: 'eidotter',
|
|
997
|
-
consumers: [
|
|
990
|
+
consumers: [],
|
|
998
991
|
since: '0.40.0',
|
|
999
|
-
originNote: 'Ring gauge for one metabolic value. Carries the SCUM metabolism-screen dial pattern (value, target, provenance) as used in diabetes apps.
|
|
992
|
+
originNote: 'Ring gauge for one metabolic value. Carries the SCUM metabolism-screen dial pattern (value, target, provenance) as used in diabetes apps. Figma: Web DS / Health.',
|
|
1000
993
|
variants: {
|
|
1001
994
|
'size:sm': { description: 'Compact gauge', since: '0.40.0' },
|
|
1002
995
|
'size:md': { description: 'Standard gauge', since: '0.40.0' },
|
|
@@ -1023,9 +1016,9 @@ export const componentRegistry = {
|
|
|
1023
1016
|
},
|
|
1024
1017
|
Meter: {
|
|
1025
1018
|
origin: 'eidotter',
|
|
1026
|
-
consumers: [
|
|
1019
|
+
consumers: [],
|
|
1027
1020
|
since: '0.40.0',
|
|
1028
|
-
originNote: 'Single labelled meter bar with tick and tone/pattern pairing. Carries the SCUM stat-bar pattern (food, water, energy) for diabetes values such as carbs on board.
|
|
1021
|
+
originNote: 'Single labelled meter bar with tick and tone/pattern pairing. Carries the SCUM stat-bar pattern (food, water, energy) for diabetes values such as carbs on board. Figma: Web DS / Health.',
|
|
1029
1022
|
variants: {
|
|
1030
1023
|
'orientation:vertical': { description: 'Vertical bar with label beneath', since: '0.40.0' },
|
|
1031
1024
|
'orientation:horizontal': { description: 'Horizontal bar with label alongside', since: '0.40.0' },
|
|
@@ -1053,9 +1046,9 @@ export const componentRegistry = {
|
|
|
1053
1046
|
},
|
|
1054
1047
|
MeterGroup: {
|
|
1055
1048
|
origin: 'eidotter',
|
|
1056
|
-
consumers: [
|
|
1049
|
+
consumers: [],
|
|
1057
1050
|
since: '0.40.0',
|
|
1058
|
-
originNote: 'Layout wrapper for several Meters. Carries the SCUM metabolism-screen stat cluster pattern.
|
|
1051
|
+
originNote: 'Layout wrapper for several Meters. Carries the SCUM metabolism-screen stat cluster pattern. Figma: Web DS / Health.',
|
|
1059
1052
|
variants: {
|
|
1060
1053
|
'layout:row': { description: 'Meters in a single row', since: '0.40.0' },
|
|
1061
1054
|
'layout:grid': { description: 'Meters in a wrapping grid', since: '0.40.0' },
|
|
@@ -1071,9 +1064,9 @@ export const componentRegistry = {
|
|
|
1071
1064
|
},
|
|
1072
1065
|
RangeBar: {
|
|
1073
1066
|
origin: 'eidotter',
|
|
1074
|
-
consumers: [
|
|
1067
|
+
consumers: [],
|
|
1075
1068
|
since: '0.40.0',
|
|
1076
|
-
originNote: 'Banded range bar showing where a value sits against target segments, as in diabetes time-in-range displays. Carries the SCUM condition-bar pattern.
|
|
1069
|
+
originNote: 'Banded range bar showing where a value sits against target segments, as in diabetes time-in-range displays. Carries the SCUM condition-bar pattern. Figma: Web DS / Health.',
|
|
1077
1070
|
variants: {
|
|
1078
1071
|
'orientation:vertical': { description: 'Vertical track', since: '0.40.0' },
|
|
1079
1072
|
'orientation:horizontal': { description: 'Horizontal track', since: '0.40.0' },
|
|
@@ -1103,9 +1096,9 @@ export const componentRegistry = {
|
|
|
1103
1096
|
},
|
|
1104
1097
|
SeriesBars: {
|
|
1105
1098
|
origin: 'eidotter',
|
|
1106
|
-
consumers: [
|
|
1099
|
+
consumers: [],
|
|
1107
1100
|
since: '0.40.0',
|
|
1108
|
-
originNote: 'Bar series for per-period values such as daily carbs or time-in-range, as in diabetes reports. Carries the SCUM history-chart pattern.
|
|
1101
|
+
originNote: 'Bar series for per-period values such as daily carbs or time-in-range, as in diabetes reports. Carries the SCUM history-chart pattern. Figma: Web DS / Health.',
|
|
1109
1102
|
variants: {
|
|
1110
1103
|
'size:sm': { description: 'Short plot', since: '0.40.0' },
|
|
1111
1104
|
'size:md': { description: 'Standard plot', since: '0.40.0' },
|
|
@@ -1129,9 +1122,9 @@ export const componentRegistry = {
|
|
|
1129
1122
|
},
|
|
1130
1123
|
DecayStrip: {
|
|
1131
1124
|
origin: 'eidotter',
|
|
1132
|
-
consumers: [
|
|
1125
|
+
consumers: [],
|
|
1133
1126
|
since: '0.40.0',
|
|
1134
|
-
originNote: 'Stepped block strip of consumer-supplied remaining-amount samples with a now marker (active-on-board curve in diabetes apps). Carries the SCUM timed-effect pattern; no absorption math.
|
|
1127
|
+
originNote: 'Stepped block strip of consumer-supplied remaining-amount samples with a now marker (active-on-board curve in diabetes apps). Carries the SCUM timed-effect pattern; no absorption math. Figma: Web DS / Health.',
|
|
1135
1128
|
variants: {
|
|
1136
1129
|
'size:sm': { description: 'Compact strip', since: '0.40.0' },
|
|
1137
1130
|
'size:md': { description: 'Standard strip', since: '0.40.0' },
|
|
@@ -1153,9 +1146,9 @@ export const componentRegistry = {
|
|
|
1153
1146
|
},
|
|
1154
1147
|
VitalsStrip: {
|
|
1155
1148
|
origin: 'eidotter',
|
|
1156
|
-
consumers: [
|
|
1149
|
+
consumers: [],
|
|
1157
1150
|
since: '0.40.0',
|
|
1158
|
-
originNote: 'Server-safe row of vitals tiles with value, unit, secondary text and bands, and status. Carries the SCUM vitals header pattern for diabetes summaries.
|
|
1151
|
+
originNote: 'Server-safe row of vitals tiles with value, unit, secondary text and bands, and status. Carries the SCUM vitals header pattern for diabetes summaries. Figma: Web DS / Health.',
|
|
1159
1152
|
variants: {
|
|
1160
1153
|
'size:sm': { description: 'Compact tiles', since: '0.40.0' },
|
|
1161
1154
|
'size:md': { description: 'Standard tiles', since: '0.40.0' },
|
|
@@ -1217,3 +1210,13 @@ export function getVariantConsumerMap(componentName) {
|
|
|
1217
1210
|
}
|
|
1218
1211
|
return map;
|
|
1219
1212
|
}
|
|
1213
|
+
/**
|
|
1214
|
+
* The provenance line printed above every Storybook story. Only names the registry
|
|
1215
|
+
* is allowed to carry reach it, and an empty consumer list drops the "Used by" part
|
|
1216
|
+
* instead of printing a dangling label.
|
|
1217
|
+
*/
|
|
1218
|
+
export function formatProvenanceLine(meta) {
|
|
1219
|
+
const origin = `Origin: ${meta.origin}${meta.originNote ? ` — ${meta.originNote}` : ''}`;
|
|
1220
|
+
const consumers = meta.consumers.filter((id) => id in projects);
|
|
1221
|
+
return consumers.length ? `${origin} | Used by: ${consumers.join(', ')}` : origin;
|
|
1222
|
+
}
|