@dataimago/ui 0.1.0-alpha.3 → 0.1.0-alpha.34

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,37 @@
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.
17
24
 
18
25
  ```tsx
19
- import { Button } from '@dataimago/ui';
26
+ import { BrandAnimation, Button, Logo, NavbarLogo } from '@dataimago/ui';
20
27
 
21
28
  <Button variant="primary">Generate</Button>
22
29
  <Button variant="secondary" size="sm">Cancel</Button>
30
+ <Logo name="dataimago_dash_ai" variant="PATH" title="dataimago-ai" />
31
+ <NavbarLogo name="dataimago-ai" />
32
+ <BrandAnimation name="dataimago-ai" />
23
33
  ```
24
34
 
25
- Additional components get harvested from consumer prototypes (`dataimago-ai`, `dissertation.ai`, etc.) via the prototype-in-consumer workflow.
35
+ 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
36
 
27
37
  ## Building
28
38
 
@@ -46,3 +56,7 @@ use semantic CSS variables rather than app-local Tailwind classes. When the dev
46
56
  server is running, the Storybook MCP addon is available at
47
57
  `http://localhost:6006/mcp` for AI-assisted component discovery and story
48
58
  testing.
59
+
60
+ Accessibility checks are progressively hardened: current stories surface a11y
61
+ findings for review, and the gate should move to blocking only after the existing
62
+ story set is clean.
package/dist/index.cjs CHANGED
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  "use strict";
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
@@ -30,10 +31,25 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
31
  // src/index.ts
31
32
  var index_exports = {};
32
33
  __export(index_exports, {
34
+ BrandAnimation: () => BrandAnimation,
33
35
  Button: () => Button,
36
+ CopulaLockup: () => CopulaLockup,
37
+ Logo: () => Logo,
34
38
  LogoMonogram: () => LogoMonogram,
35
39
  LogoMonogramBg: () => LogoMonogramBg,
36
- LogoWordmark: () => LogoWordmark
40
+ LogoWordmark: () => LogoWordmark,
41
+ NavbarLogo: () => NavbarLogo,
42
+ THEME_ATTRIBUTE: () => THEME_ATTRIBUTE,
43
+ THEME_STORAGE_KEY: () => THEME_STORAGE_KEY,
44
+ ThemeScript: () => ThemeScript,
45
+ ThemeToggle: () => ThemeToggle,
46
+ nextThemePreference: () => nextThemePreference,
47
+ readThemePreference: () => readThemePreference,
48
+ resolveTheme: () => resolveTheme,
49
+ setThemePreference: () => setThemePreference,
50
+ themeInitScript: () => themeInitScript,
51
+ useResolvedTheme: () => useResolvedTheme,
52
+ useThemePreference: () => useThemePreference
37
53
  });
38
54
  module.exports = __toCommonJS(index_exports);
39
55
 
@@ -180,7 +196,7 @@ function LogoMonogramBg({
180
196
  height: "100%",
181
197
  rx: "40",
182
198
  ry: "40",
183
- fill: "var(--color-interactive-accent, #b54a27)"
199
+ fill: "var(--color-interactive-accent, #1f618d)"
184
200
  }
185
201
  ),
186
202
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
@@ -228,7 +244,7 @@ function LogoWordmark({
228
244
  height: "100%",
229
245
  rx: "5",
230
246
  ry: "5",
231
- fill: "var(--color-interactive-accent, #b54a27)"
247
+ fill: "var(--color-interactive-accent, #1f618d)"
232
248
  }
233
249
  ),
234
250
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
@@ -249,11 +265,421 @@ function LogoWordmark({
249
265
  }
250
266
  );
251
267
  }
268
+
269
+ // src/brand/Logo.tsx
270
+ var import_brand = require("@dataimago/brand");
271
+
272
+ // src/brand/decorative.ts
273
+ function silenceSvg(markup) {
274
+ return markup.replace(/<title\b[^>]*>[\s\S]*?<\/title>/gi, "").replace(/<svg\b([^>]*)>/i, (_m, attrs) => {
275
+ const kept = attrs.replace(/\srole="[^"]*"/i, "").replace(/\saria-label="[^"]*"/i, "").replace(/\saria-labelledby="[^"]*"/i, "");
276
+ return `<svg${kept} aria-hidden="true" focusable="false">`;
277
+ });
278
+ }
279
+ function isDecorative(ariaHidden) {
280
+ return ariaHidden === true || ariaHidden === "true";
281
+ }
282
+
283
+ // src/brand/Logo.tsx
284
+ var import_jsx_runtime5 = require("react/jsx-runtime");
285
+ function Logo({ name, variant = "PATH", width, style, ...rest }) {
286
+ const key = `${name}_${variant}`;
287
+ let markup = import_brand.svgs[key];
288
+ if (!markup) {
289
+ console.warn(`[@dataimago/ui] <Logo>: unknown mark "${key}".`);
290
+ return null;
291
+ }
292
+ if (width != null) {
293
+ markup = markup.replace(/\swidth="[^"]*"/, ` width="${width}"`).replace(/\sheight="[^"]*"/, "");
294
+ }
295
+ if (isDecorative(rest["aria-hidden"])) markup = silenceSvg(markup);
296
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
297
+ "span",
298
+ {
299
+ style: { display: "inline-flex", ...style },
300
+ dangerouslySetInnerHTML: { __html: markup },
301
+ ...rest
302
+ }
303
+ );
304
+ }
305
+
306
+ // src/brand/CopulaLockup.tsx
307
+ var import_brand2 = require("@dataimago/brand");
308
+ var import_jsx_runtime6 = require("react/jsx-runtime");
309
+ var BADGE = 16 / 32;
310
+ var GAP = 19.7 / 32;
311
+ var CROP = 10 / 32;
312
+ var VISUALLY_HIDDEN = {
313
+ border: 0,
314
+ clip: "rect(0 0 0 0)",
315
+ height: 1,
316
+ margin: -1,
317
+ overflow: "hidden",
318
+ padding: 0,
319
+ position: "absolute",
320
+ whiteSpace: "nowrap",
321
+ width: 1
322
+ };
323
+ var round = (n) => Math.round(n * 100) / 100;
324
+ function pathEntry(id) {
325
+ return import_brand2.manifest.find((e) => e.id === id && e.variant === "PATH");
326
+ }
327
+ var plainLink = ({ children, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("a", { ...props, children });
328
+ function CopulaLockup({
329
+ property,
330
+ propertyLabel,
331
+ propertyHref = "/",
332
+ dataimago = "shown",
333
+ brandHref = "https://dataimago.ai",
334
+ height = 32,
335
+ linkClassName,
336
+ renderLink = plainLink,
337
+ style,
338
+ ...rest
339
+ }) {
340
+ const prop = pathEntry(property);
341
+ const brand = pathEntry("dataimago");
342
+ if (!prop || !brand) {
343
+ console.warn(`[@dataimago/ui] <CopulaLockup>: unknown mark "${property}".`);
344
+ return null;
345
+ }
346
+ const shown = dataimago === "shown";
347
+ const badge = BADGE * height;
348
+ const reach = GAP * height - badge / 2;
349
+ const crop = -CROP * height;
350
+ const width = (e) => round(e.w * height / e.h);
351
+ const trailing = (prop.w - prop.ink.x2) * height / prop.h;
352
+ const leading = brand.ink.x1 * height / brand.h;
353
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
354
+ "span",
355
+ {
356
+ style: { alignItems: "center", display: "inline-flex", flexWrap: "wrap", rowGap: 4, ...style },
357
+ ...rest,
358
+ children: [
359
+ renderLink({
360
+ href: propertyHref,
361
+ "aria-label": propertyLabel,
362
+ className: linkClassName,
363
+ // The crop only centres the cap-height band on the badge; alone (hidden),
364
+ // the mark keeps its full box so nothing next to it can overlap it.
365
+ style: {
366
+ display: "inline-flex",
367
+ marginBlock: shown ? crop : 0,
368
+ marginRight: shown ? round(reach - trailing) : 0
369
+ },
370
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Logo, { name: property, "aria-hidden": true, width: width(prop) })
371
+ }),
372
+ shown ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
373
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { style: { display: "inline-flex" }, children: [
374
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Logo, { name: "is_badge", variant: "CUTOUT", "aria-hidden": true, width: round(badge) }),
375
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { style: VISUALLY_HIDDEN, children: "is" })
376
+ ] }),
377
+ renderLink({
378
+ href: brandHref,
379
+ "aria-label": "dataimago",
380
+ className: linkClassName,
381
+ style: { display: "inline-flex", marginBlock: crop, marginLeft: round(reach - leading) },
382
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Logo, { name: "dataimago", "aria-hidden": true, width: width(brand) })
383
+ })
384
+ ] }) : null
385
+ ]
386
+ }
387
+ );
388
+ }
389
+
390
+ // src/brand/BrandAnimation.tsx
391
+ var React2 = __toESM(require("react"), 1);
392
+ var import_brand3 = require("@dataimago/brand");
393
+ var import_jsx_runtime7 = require("react/jsx-runtime");
394
+ function usePrefersReducedMotion() {
395
+ const [reduced, setReduced] = React2.useState(true);
396
+ React2.useEffect(() => {
397
+ const mq = window.matchMedia("(prefers-reduced-motion: reduce)");
398
+ setReduced(mq.matches);
399
+ const onChange = (e) => setReduced(e.matches);
400
+ mq.addEventListener("change", onChange);
401
+ return () => mq.removeEventListener("change", onChange);
402
+ }, []);
403
+ return reduced;
404
+ }
405
+ function BrandAnimation({
406
+ name,
407
+ width,
408
+ style,
409
+ ...rest
410
+ }) {
411
+ const reduced = usePrefersReducedMotion();
412
+ const entry = import_brand3.animationManifest.find((a) => a.id === name);
413
+ let markup = import_brand3.animations[name];
414
+ if (!entry || !markup) {
415
+ console.warn(`[@dataimago/ui] <BrandAnimation>: unknown animation "${name}".`);
416
+ return null;
417
+ }
418
+ if (reduced) {
419
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
420
+ Logo,
421
+ {
422
+ name: entry.poster.id,
423
+ variant: entry.poster.variant,
424
+ width,
425
+ style,
426
+ ...rest
427
+ }
428
+ );
429
+ }
430
+ if (width != null) {
431
+ markup = markup.replace(/\swidth="[^"]*"/, ` width="${width}"`).replace(/\sheight="[^"]*"/, "");
432
+ }
433
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
434
+ "span",
435
+ {
436
+ style: { display: "inline-flex", ...style },
437
+ dangerouslySetInnerHTML: { __html: markup },
438
+ ...rest
439
+ }
440
+ );
441
+ }
442
+
443
+ // src/brand/NavbarLogo.tsx
444
+ var React3 = __toESM(require("react"), 1);
445
+ var import_brand4 = require("@dataimago/brand");
446
+ var import_jsx_runtime8 = require("react/jsx-runtime");
447
+ function usePrefersReducedMotion2() {
448
+ const [reduced, setReduced] = React3.useState(true);
449
+ React3.useEffect(() => {
450
+ const mq = window.matchMedia("(prefers-reduced-motion: reduce)");
451
+ setReduced(mq.matches);
452
+ const onChange = (e) => setReduced(e.matches);
453
+ mq.addEventListener("change", onChange);
454
+ return () => mq.removeEventListener("change", onChange);
455
+ }, []);
456
+ return reduced;
457
+ }
458
+ function NavbarLogo({ name, width, style, ...rest }) {
459
+ const reduced = usePrefersReducedMotion2();
460
+ const entry = import_brand4.navbarManifest.find((n) => n.id === name);
461
+ let markup = import_brand4.navbarLogos[name];
462
+ if (!entry || !markup) {
463
+ console.warn(`[@dataimago/ui] <NavbarLogo>: unknown navbar mark "${name}".`);
464
+ return null;
465
+ }
466
+ if (reduced) {
467
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
468
+ Logo,
469
+ {
470
+ name: entry.poster.id,
471
+ variant: entry.poster.variant,
472
+ width,
473
+ style,
474
+ ...rest
475
+ }
476
+ );
477
+ }
478
+ if (width != null) {
479
+ markup = markup.replace(/\swidth="[^"]*"/, ` width="${width}"`).replace(/\sheight="[^"]*"/, "");
480
+ }
481
+ if (isDecorative(rest["aria-hidden"])) markup = silenceSvg(markup);
482
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
483
+ "span",
484
+ {
485
+ style: { display: "inline-flex", ...style },
486
+ dangerouslySetInnerHTML: { __html: markup },
487
+ ...rest
488
+ }
489
+ );
490
+ }
491
+
492
+ // src/theme/ThemeToggle.tsx
493
+ var React5 = __toESM(require("react"), 1);
494
+
495
+ // src/theme/theme.ts
496
+ var React4 = __toESM(require("react"), 1);
497
+ var THEME_STORAGE_KEY = "dataimago-theme";
498
+ var THEME_ATTRIBUTE = "data-bs-theme";
499
+ var CHANGE_EVENT = "dataimago:themechange";
500
+ var themeInitScript = `(function(){try{var p=localStorage.getItem(${JSON.stringify(THEME_STORAGE_KEY)});if(p==='light'||p==='dark'){document.documentElement.setAttribute(${JSON.stringify(THEME_ATTRIBUTE)},p);}}catch(e){}})();`;
501
+ function isPreference(value) {
502
+ return value === "system" || value === "light" || value === "dark";
503
+ }
504
+ function readThemePreference() {
505
+ if (typeof window === "undefined") return "system";
506
+ try {
507
+ const stored = window.localStorage.getItem(THEME_STORAGE_KEY);
508
+ return isPreference(stored) ? stored : "system";
509
+ } catch {
510
+ return "system";
511
+ }
512
+ }
513
+ function applyAttribute(preference) {
514
+ const root = document.documentElement;
515
+ if (preference === "system") root.removeAttribute(THEME_ATTRIBUTE);
516
+ else root.setAttribute(THEME_ATTRIBUTE, preference);
517
+ }
518
+ function setThemePreference(preference) {
519
+ if (typeof window === "undefined") return;
520
+ try {
521
+ if (preference === "system") window.localStorage.removeItem(THEME_STORAGE_KEY);
522
+ else window.localStorage.setItem(THEME_STORAGE_KEY, preference);
523
+ } catch {
524
+ }
525
+ applyAttribute(preference);
526
+ window.dispatchEvent(new Event(CHANGE_EVENT));
527
+ }
528
+ function resolveTheme() {
529
+ if (typeof document === "undefined") return "light";
530
+ const forced = document.documentElement.getAttribute(THEME_ATTRIBUTE);
531
+ if (forced === "light" || forced === "dark") return forced;
532
+ return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
533
+ }
534
+ function syncAttribute() {
535
+ applyAttribute(readThemePreference());
536
+ }
537
+ function subscribePreference(onChange) {
538
+ syncAttribute();
539
+ const onStorage = (e) => {
540
+ if (e.key !== null && e.key !== THEME_STORAGE_KEY) return;
541
+ applyAttribute(readThemePreference());
542
+ onChange();
543
+ };
544
+ window.addEventListener(CHANGE_EVENT, onChange);
545
+ window.addEventListener("storage", onStorage);
546
+ return () => {
547
+ window.removeEventListener(CHANGE_EVENT, onChange);
548
+ window.removeEventListener("storage", onStorage);
549
+ };
550
+ }
551
+ function subscribeResolved(onChange) {
552
+ const observer = new MutationObserver(onChange);
553
+ observer.observe(document.documentElement, {
554
+ attributes: true,
555
+ attributeFilter: [THEME_ATTRIBUTE]
556
+ });
557
+ const media = window.matchMedia("(prefers-color-scheme: dark)");
558
+ media.addEventListener("change", onChange);
559
+ window.addEventListener(CHANGE_EVENT, onChange);
560
+ syncAttribute();
561
+ return () => {
562
+ observer.disconnect();
563
+ media.removeEventListener("change", onChange);
564
+ window.removeEventListener(CHANGE_EVENT, onChange);
565
+ };
566
+ }
567
+ function useThemePreference() {
568
+ const preference = React4.useSyncExternalStore(
569
+ subscribePreference,
570
+ readThemePreference,
571
+ () => "system"
572
+ );
573
+ return [preference, setThemePreference];
574
+ }
575
+ function useResolvedTheme() {
576
+ return React4.useSyncExternalStore(subscribeResolved, resolveTheme, () => "light");
577
+ }
578
+
579
+ // src/theme/ThemeToggle.tsx
580
+ var import_jsx_runtime9 = require("react/jsx-runtime");
581
+ var DEFAULT_LABELS = {
582
+ name: "Theme",
583
+ system: "System",
584
+ light: "Light",
585
+ dark: "Dark"
586
+ };
587
+ function systemTheme() {
588
+ return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
589
+ }
590
+ function nextThemePreference(shown, system) {
591
+ const next = shown === "dark" ? "light" : "dark";
592
+ return next === system ? "system" : next;
593
+ }
594
+ var noSubscribe = () => () => {
595
+ };
596
+ function useHydrated() {
597
+ return React5.useSyncExternalStore(noSubscribe, () => true, () => false);
598
+ }
599
+ function Icon({ theme }) {
600
+ const common = {
601
+ width: 20,
602
+ height: 20,
603
+ viewBox: "0 0 24 24",
604
+ fill: "none",
605
+ stroke: "currentColor",
606
+ strokeWidth: 1.75,
607
+ strokeLinecap: "round",
608
+ strokeLinejoin: "round",
609
+ "aria-hidden": true,
610
+ focusable: false
611
+ };
612
+ if (theme === "dark") {
613
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("svg", { ...common, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }) });
614
+ }
615
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("svg", { ...common, children: [
616
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("circle", { cx: "12", cy: "12", r: "4" }),
617
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", { d: "M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41" })
618
+ ] });
619
+ }
620
+ function ThemeToggle({ labels, className = "", style, ...rest }) {
621
+ const [preference, setPreference] = useThemePreference();
622
+ const resolved = useResolvedTheme();
623
+ const hydrated = useHydrated();
624
+ const shown = hydrated ? resolved : void 0;
625
+ const text = { ...DEFAULT_LABELS, ...labels };
626
+ const label = shown ? `${text.name}: ${text[shown]}${preference === "system" ? ` (${text.system})` : ""}` : text.name;
627
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
628
+ "button",
629
+ {
630
+ ...rest,
631
+ className: ["di-ui-theme-toggle", className].filter(Boolean).join(" "),
632
+ "aria-label": label,
633
+ title: label,
634
+ "data-theme-preference": preference,
635
+ "data-theme": shown,
636
+ style: {
637
+ alignItems: "center",
638
+ background: "var(--di-theme-toggle-bg, transparent)",
639
+ border: 0,
640
+ borderRadius: "var(--radius-md, 0.5rem)",
641
+ color: "var(--di-theme-toggle-fg, inherit)",
642
+ cursor: "pointer",
643
+ display: "inline-flex",
644
+ height: "48px",
645
+ justifyContent: "center",
646
+ padding: 0,
647
+ transition: "background-color 150ms ease",
648
+ width: "48px",
649
+ ...style
650
+ },
651
+ type: "button",
652
+ onClick: () => setPreference(nextThemePreference(resolveTheme(), systemTheme())),
653
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { style: { display: "inline-flex", visibility: shown ? "visible" : "hidden" }, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { theme: shown ?? "light" }) })
654
+ }
655
+ );
656
+ }
657
+
658
+ // src/theme/ThemeScript.tsx
659
+ var import_jsx_runtime10 = require("react/jsx-runtime");
660
+ function ThemeScript({ nonce }) {
661
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("script", { nonce, dangerouslySetInnerHTML: { __html: themeInitScript } });
662
+ }
252
663
  // Annotate the CommonJS export names for ESM import in node:
253
664
  0 && (module.exports = {
665
+ BrandAnimation,
254
666
  Button,
667
+ CopulaLockup,
668
+ Logo,
255
669
  LogoMonogram,
256
670
  LogoMonogramBg,
257
- LogoWordmark
671
+ LogoWordmark,
672
+ NavbarLogo,
673
+ THEME_ATTRIBUTE,
674
+ THEME_STORAGE_KEY,
675
+ ThemeScript,
676
+ ThemeToggle,
677
+ nextThemePreference,
678
+ readThemePreference,
679
+ resolveTheme,
680
+ setThemePreference,
681
+ themeInitScript,
682
+ useResolvedTheme,
683
+ useThemePreference
258
684
  });
259
685
  //# sourceMappingURL=index.cjs.map