@dataimago/ui 0.1.0-alpha.4 → 0.1.0-alpha.43

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 CHANGED
@@ -2,27 +2,49 @@
2
2
 
3
3
  React components for the dataimago ethical AI design system.
4
4
 
5
- > **Registry:** published to **public npm** (`registry.npmjs.org`) under the `@dataimago` scope alongside `@dataimago/tokens` and `@dataimago/css`. No scoped `.npmrc` or `GITHUB_PACKAGES_TOKEN` is required — a plain `pnpm install @dataimago/ui` works.
5
+ > **Registry:** published to **public npm** (`registry.npmjs.org`) under the `@dataimago` scope alongside the rest of the design-system packages. No scoped `.npmrc` or `GITHUB_PACKAGES_TOKEN` is required — a plain `pnpm install @dataimago/ui` works.
6
6
 
7
7
  ## Peer dependencies
8
8
 
9
9
  - `react` ≥ 18
10
10
  - `react-dom` ≥ 18
11
+ - `@dataimago/brand` ≥ 0.1.0-alpha.0
11
12
  - `@dataimago/tokens` ≥ 0.1.0-alpha.0
12
13
  - `@dataimago/css` ≥ 0.1.0-alpha.0 (visual styling consumes the semantic CSS variables emitted by this package)
13
14
 
14
- ## Alpha scope
15
+ ## Alpha scope and exports
15
16
 
16
- Just one smoke component for now:
17
+ Current public exports:
18
+
19
+ - `<Button>` — smoke-level button using semantic CSS variables.
20
+ - `<LogoMonogram>`, `<LogoMonogramBg>`, `<LogoWordmark>` — legacy outlined SVG brand marks.
21
+ - `<Logo>` — manifest-driven mark renderer backed by `@dataimago/brand`.
22
+ - `<BrandAnimation>` — decorative brand animation with reduced-motion poster fallback.
23
+ - `<NavbarLogo>` — animated navbar mark with reduced-motion poster fallback.
24
+ - `<CaptionedVideo>` — a video with the video-foundry's caption treatment drawn over it (frosted panel, word tone, MathML), from a release's `captions.<lang>.json`; the WebVTT file stays as the hidden native track and the fallback text. Fullscreen takes the whole player so the captions come along. `<CaptionLayer>` draws one moment of it (pure presentation), and the caption functions (`pageAt`, `wordTone`, `captionLook`, …) match the foundry's burned-in treatment (the foundry imports them once this ships; #407). Needs `@dataimago/css` loaded for the palette, `--font-family-sans` and the self-hosted Noto Sans Math. `poster` is required and nothing autoplays. Under `prefers-reduced-motion: reduce` the player plays `reducedSrc` if given; otherwise it says the video is animated throughout and offers `storyboard` (a link) first, and plays the full cut only if the reader chooses it.
17
25
 
18
26
  ```tsx
19
- import { Button } from '@dataimago/ui';
27
+ <CaptionedVideo
28
+ src="/research/liwld/video/liwld-draft-16x9.mp4"
29
+ poster="/research/liwld/video/liwld-draft-16x9.poster.png"
30
+ captions="/research/liwld/video/liwld-draft-16x9.captions.en.json"
31
+ fallbackCaptions="/research/liwld/video/liwld-draft-16x9.captions.en.vtt"
32
+ chapters="/research/liwld/video/liwld-draft-16x9.chapters.en.vtt"
33
+ title="Growth without linkage"
34
+ />
35
+ ```
36
+
37
+ ```tsx
38
+ import { BrandAnimation, Button, Logo, NavbarLogo } from '@dataimago/ui';
20
39
 
21
40
  <Button variant="primary">Generate</Button>
22
41
  <Button variant="secondary" size="sm">Cancel</Button>
42
+ <Logo name="dataimago_dash_ai" variant="PATH" title="dataimago-ai" />
43
+ <NavbarLogo name="dataimago-ai" />
44
+ <BrandAnimation name="dataimago-ai" />
23
45
  ```
24
46
 
25
- Additional components get harvested from consumer prototypes (`dataimago-ai`, `dissertation.ai`, etc.) via the prototype-in-consumer workflow.
47
+ Additional components get harvested from consumer prototypes (`dataimago-ai`, `dissertation-ai`, etc.) via the prototype-in-consumer workflow. Broad new primitives are deferred until the substrate is stable and L1/L2 usage identifies reusable candidates.
26
48
 
27
49
  ## Building
28
50
 
@@ -46,3 +68,7 @@ use semantic CSS variables rather than app-local Tailwind classes. When the dev
46
68
  server is running, the Storybook MCP addon is available at
47
69
  `http://localhost:6006/mcp` for AI-assisted component discovery and story
48
70
  testing.
71
+
72
+ Accessibility checks are progressively hardened: current stories surface a11y
73
+ findings for review, and the gate should move to blocking only after the existing
74
+ story set is clean.