@fiestaboard/ui 5.2.0 → 5.4.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.
Files changed (69) hide show
  1. package/README.md +18 -0
  2. package/dist/components/board/board-display.d.ts +13 -1
  3. package/dist/components/board/board-display.js +103 -101
  4. package/dist/components/board/board-display.js.map +1 -1
  5. package/dist/components/board/static-board-display.d.ts +6 -1
  6. package/dist/components/board/static-board-display.js +36 -34
  7. package/dist/components/board/static-board-display.js.map +1 -1
  8. package/dist/components/chrome/nav-list.d.ts +53 -0
  9. package/dist/components/chrome/nav-list.js +84 -0
  10. package/dist/components/chrome/nav-list.js.map +1 -0
  11. package/dist/components/containment/icon-tile.d.ts +67 -0
  12. package/dist/components/containment/icon-tile.js +44 -0
  13. package/dist/components/containment/icon-tile.js.map +1 -0
  14. package/dist/components/containment/json-tree.js +1 -1
  15. package/dist/components/containment/json-tree.js.map +1 -1
  16. package/dist/components/containment/media-frame.d.ts +28 -0
  17. package/dist/components/containment/media-frame.js +40 -0
  18. package/dist/components/containment/media-frame.js.map +1 -0
  19. package/dist/components/containment/scroll-area.d.ts +17 -0
  20. package/dist/components/containment/scroll-area.js +2 -2
  21. package/dist/components/containment/scroll-area.js.map +1 -1
  22. package/dist/components/containment/tabs.js +2 -2
  23. package/dist/components/containment/tabs.js.map +1 -1
  24. package/dist/components/editor/formula/formula-editor-panel.js +2 -2
  25. package/dist/components/editor/formula/formula-editor-panel.js.map +1 -1
  26. package/dist/components/editor/template-editor-toolbar.d.ts +27 -3
  27. package/dist/components/editor/template-editor-toolbar.js +99 -96
  28. package/dist/components/editor/template-editor-toolbar.js.map +1 -1
  29. package/dist/components/forms/button.d.ts +1 -1
  30. package/dist/components/forms/button.js +2 -0
  31. package/dist/components/forms/button.js.map +1 -1
  32. package/dist/components/forms/selection-group.d.ts +82 -0
  33. package/dist/components/forms/selection-group.js +51 -0
  34. package/dist/components/forms/selection-group.js.map +1 -0
  35. package/dist/components/forms/swatch.d.ts +81 -0
  36. package/dist/components/forms/swatch.js +91 -0
  37. package/dist/components/forms/swatch.js.map +1 -0
  38. package/dist/components/forms/timezone-picker.d.ts +163 -0
  39. package/dist/components/forms/timezone-picker.js +158 -0
  40. package/dist/components/forms/timezone-picker.js.map +1 -0
  41. package/dist/components/forms/toggle-card.d.ts +45 -35
  42. package/dist/components/forms/toggle-card.js +187 -122
  43. package/dist/components/forms/toggle-card.js.map +1 -1
  44. package/dist/components/forms/toggle.d.ts +1 -1
  45. package/dist/components/layout/flex.d.ts +1 -1
  46. package/dist/components/layout/grid.d.ts +1 -1
  47. package/dist/components/layout/stack.d.ts +1 -1
  48. package/dist/components/overlays/lightbox.d.ts +37 -0
  49. package/dist/components/overlays/lightbox.js +54 -0
  50. package/dist/components/overlays/lightbox.js.map +1 -0
  51. package/dist/components/overlays/overlay-close.js +1 -1
  52. package/dist/components/overlays/overlay-close.js.map +1 -1
  53. package/dist/components/plugin/board-showcase.js +1 -1
  54. package/dist/components/plugin/board-showcase.js.map +1 -1
  55. package/dist/components/typography/heading.d.ts +1 -1
  56. package/dist/components/typography/text-link.d.ts +27 -3
  57. package/dist/components/typography/text-link.js +1 -1
  58. package/dist/components/typography/text-link.js.map +1 -1
  59. package/dist/components/typography/text.d.ts +1 -1
  60. package/dist/components/wizard/wizard-shell.d.ts +6 -1
  61. package/dist/components/wizard/wizard-shell.js +38 -35
  62. package/dist/components/wizard/wizard-shell.js.map +1 -1
  63. package/dist/index.d.ts +6 -0
  64. package/dist/index.js +104 -98
  65. package/dist/lib/board-characters.d.ts +33 -7
  66. package/dist/lib/board-characters.js +14 -11
  67. package/dist/lib/board-characters.js.map +1 -1
  68. package/dist/theme.css +85 -4
  69. package/package.json +9 -2
@@ -0,0 +1,54 @@
1
+ "use client";
2
+ import { cn as e } from "../../lib/utils.js";
3
+ import { OverlayClose as t } from "./overlay-close.js";
4
+ import * as n from "react";
5
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
6
+ import { Dialog as a } from "@base-ui/react/dialog";
7
+ //#region src/components/overlays/lightbox.tsx
8
+ var o = a.Root;
9
+ function s({ asChild: e = !1, children: t, ...i }) {
10
+ return /* @__PURE__ */ r(a.Trigger, {
11
+ "data-slot": "lightbox-trigger",
12
+ ...e ? { render: n.Children.only(t) } : { children: t },
13
+ ...i
14
+ });
15
+ }
16
+ var c = a.Portal;
17
+ function l({ asChild: e = !1, children: t, ...i }) {
18
+ return /* @__PURE__ */ r(a.Close, {
19
+ "data-slot": "lightbox-close",
20
+ ...e ? { render: n.Children.only(t) } : { children: t },
21
+ ...i
22
+ });
23
+ }
24
+ function u({ className: t, ...n }) {
25
+ return /* @__PURE__ */ r(a.Backdrop, {
26
+ "data-slot": "lightbox-overlay",
27
+ className: e("fixed inset-0 z-[var(--z-modal)] bg-black/85 data-[open]:animate-in data-[ending-style]:animate-out data-[ending-style]:fade-out-0 data-[open]:fade-in-0", t),
28
+ ...n
29
+ });
30
+ }
31
+ function d({ className: n, children: o, "aria-label": s = "Media viewer", ...l }) {
32
+ return /* @__PURE__ */ i(c, { children: [/* @__PURE__ */ r(u, {}), /* @__PURE__ */ i(a.Popup, {
33
+ "data-slot": "lightbox-content",
34
+ "aria-label": s,
35
+ className: e("fixed left-[50%] top-[50%] z-[var(--z-modal)] flex max-h-[92svh] max-w-[92vw] translate-x-[-50%] translate-y-[-50%] flex-col items-center gap-3 pt-12 outline-none duration-base data-[open]:animate-in data-[ending-style]:animate-out data-[ending-style]:fade-out-0 data-[open]:fade-in-0 data-[ending-style]:zoom-out-95 data-[open]:zoom-in-95", "[&_img]:max-h-[78svh] [&_img]:max-w-[92vw] [&_img]:rounded-lg [&_img]:object-contain [&_img]:shadow-modal [&_video]:max-h-[78svh] [&_video]:max-w-[92vw] [&_video]:rounded-lg [&_video]:object-contain [&_video]:shadow-modal", n),
36
+ ...l,
37
+ children: [o, /* @__PURE__ */ r(t, {
38
+ "data-slot": "lightbox-close",
39
+ size: "md",
40
+ className: "right-0 top-0 bg-white/15 text-white hover:bg-white/25"
41
+ })]
42
+ })] });
43
+ }
44
+ function f({ className: t, ...n }) {
45
+ return /* @__PURE__ */ r("div", {
46
+ "data-slot": "lightbox-footer",
47
+ className: e("flex flex-wrap items-center justify-center gap-2 text-white", t),
48
+ ...n
49
+ });
50
+ }
51
+ //#endregion
52
+ export { o as Lightbox, l as LightboxClose, d as LightboxContent, f as LightboxFooter, u as LightboxOverlay, c as LightboxPortal, s as LightboxTrigger };
53
+
54
+ //# sourceMappingURL=lightbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lightbox.js","names":[],"sources":["../../../src/components/overlays/lightbox.tsx"],"mappings":";;;;;;;AAuBA,IAAM,IAAW,EAAkB;AAEnC,SAAS,EAAgB,EACvB,aAAU,IACV,aACA,GAAG,KAC8E;CACjF,OACE,kBAAC,EAAkB,SAAnB;EACE,aAAU;EACV,GAAK,IAAU,EAAE,QAAQ,EAAM,SAAS,KAAK,CAAQ,EAAwB,IAAI,EAAE,YAAS;EAC5F,GAAI;CACL,CAAA;AAEL;AAEA,IAAM,IAAiB,EAAkB;AAEzC,SAAS,EAAc,EACrB,aAAU,IACV,aACA,GAAG,KAC4E;CAC/E,OACE,kBAAC,EAAkB,OAAnB;EACE,aAAU;EACV,GAAK,IAAU,EAAE,QAAQ,EAAM,SAAS,KAAK,CAAQ,EAAwB,IAAI,EAAE,YAAS;EAC5F,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAgB,EAAE,cAAW,GAAG,KAAkE;CACzG,OACE,kBAAC,EAAkB,UAAnB;EACE,aAAU;EAWV,WAAW,EACT,4JACA,CACF;EACA,GAAI;CACL,CAAA;AAEL;AAYA,SAAS,EAAgB,EACvB,cACA,aACA,cAAc,IAAY,gBAC1B,GAAG,KACoB;CACvB,OACE,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD,CAAkB,CAAA,GAUlB,kBAAC,EAAkB,OAAnB;EACE,aAAU;EACV,cAAY;EACZ,WAAW,EAIT,uVAUA,iOACA,CACF;EACA,GAAI;EApBN,UAAA,CAsBG,GAmCD,kBAAC,GAAD;GACE,aAAU;GACV,MAAK;GACL,WAAU;EACX,CAAA,CACsB;CACX,CAAA,CAAA,EAAA,CAAA;AAEpB;AAEA,SAAS,EAAe,EAAE,cAAW,GAAG,KAAsC;CAC5E,OACE,kBAAC,OAAD;EACE,aAAU;EAKV,WAAW,EAAG,+DAA+D,CAAS;EACtF,GAAI;CACL,CAAA;AAEL"}
@@ -6,7 +6,7 @@ import { jsx as n, jsxs as r } from "react/jsx-runtime";
6
6
  import { cva as i } from "class-variance-authority";
7
7
  import { Dialog as a } from "@base-ui/react/dialog";
8
8
  //#region src/components/overlays/overlay-close.tsx
9
- var o = i("absolute right-4 top-4 flex items-center justify-center rounded-full bg-muted/80 transition-colors hover:bg-muted outline-none focus-visible:ring-ring/50 focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50", {
9
+ var o = i("absolute right-4 top-4 flex items-center justify-center rounded-full bg-muted/80 transition-colors hover:bg-muted focus-ring disabled:pointer-events-none disabled:opacity-50", {
10
10
  variants: { size: {
11
11
  sm: "size-8 [&_svg]:size-4",
12
12
  md: "size-10 [&_svg]:size-5"
@@ -1 +1 @@
1
- {"version":3,"file":"overlay-close.js","names":[],"sources":["../../../src/components/overlays/overlay-close.tsx"],"mappings":";;;;;;;;AAgBA,IAAM,IAAuB,EAC3B,uOACA;CACE,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;CACN,EACF;CACA,iBAAiB,EACf,MAAM,KACR;AACF,CACF;AAkBA,SAAS,EAAa,EAAE,SAAM,cAAW,WAAQ,SAAS,GAAG,KAA4B;CACvF,OACE,kBAAC,EAAgB,OAAjB;EAAuB,WAAW,EAAG,EAAqB,EAAE,QAAK,CAAC,GAAG,CAAS;EAAG,GAAI;EAArF,UAAA,CACE,kBAAC,GAAD,CAAI,CAAA,GACJ,kBAAC,QAAD;GAAM,WAAU;GAAW,UAAA;EAAY,CAAA,CAClB;;AAE3B"}
1
+ {"version":3,"file":"overlay-close.js","names":[],"sources":["../../../src/components/overlays/overlay-close.tsx"],"mappings":";;;;;;;;AAgBA,IAAM,IAAuB,EAC3B,iLACA;CACE,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;CACN,EACF;CACA,iBAAiB,EACf,MAAM,KACR;AACF,CACF;AAkBA,SAAS,EAAa,EAAE,SAAM,cAAW,WAAQ,SAAS,GAAG,KAA4B;CACvF,OACE,kBAAC,EAAgB,OAAjB;EAAuB,WAAW,EAAG,EAAqB,EAAE,QAAK,CAAC,GAAG,CAAS;EAAG,GAAI;EAArF,UAAA,CACE,kBAAC,GAAD,CAAI,CAAA,GACJ,kBAAC,QAAD;GAAM,WAAU;GAAW,UAAA;EAAY,CAAA,CAClB;;AAE3B"}
@@ -60,7 +60,7 @@ function m({ previews: o, previewLabel: m, size: h = "md", boardType: g, default
60
60
  type: "button",
61
61
  "aria-pressed": n,
62
62
  onClick: () => T(t),
63
- className: e("border px-4 py-1.5 text-xs font-medium transition-colors", "first:rounded-l-full last:rounded-r-full [&:not(:last-child)]:border-r-0", "outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50", n ? "border-primary bg-primary font-semibold text-primary-foreground" : "text-muted-foreground hover:border-brand hover:text-brand"),
63
+ className: e("border px-4 py-1.5 text-xs font-medium transition-colors", "first:rounded-l-full last:rounded-r-full [&:not(:last-child)]:border-r-0", "focus-ring", n ? "border-primary bg-primary font-semibold text-primary-foreground" : "text-muted-foreground hover:border-brand hover:text-brand"),
64
64
  children: t === "black" ? x.blackBoard : x.whiteBoard
65
65
  }, t);
66
66
  })
@@ -1 +1 @@
1
- {"version":3,"file":"board-showcase.js","names":[],"sources":["../../../src/components/plugin/board-showcase.tsx"],"mappings":";;;;;;;;AAiCA,IAAa,IAA+C;CAC1D,GAAG;CACH,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,YAAY;AACd,GAsBM,IACJ;AAIF,SAAgB,EAAc,EAC5B,aACA,iBACA,UAAO,MACP,cACA,sBAAmB,SACnB,sBACA,WACA,gBACqB;CACrB,IAAM,IAAI;EAAE,GAAG;EAAyB,GAAG;CAAO,GAC5C,CAAC,GAAuB,KAA4B,EAA4B,CAAgB,GAChG,IAAkB,KAAa;CAErC,SAAS,EAAgB,GAAyB;EAEhD,AADI,MAAc,KAAA,KAAW,EAAyB,CAAI,GAC1D,IAAoB,CAAI;CAC1B;CAEA,IAAI,EAAS,WAAW,GAAG,OAAO;CAElC,IAAM,IAAY,EAAc,GAAU,CAAC;CAE3C,OACE,kBAAC,OAAD;EAAK,aAAU;EAAiB,WAAW,EAAG,oCAAoC,CAAS;EAA3F,UAAA,CACE,kBAAC,GAAD;GAAM,cAAc;GAAG,WAAU;GAAjC,UAAA,CACG,EAAS,SAAS,KACjB,kBAAC,GAAD;IAAU,cAAY,EAAE;IAAY,WAAU;IAC3C,UAAA,EAAU,KAAK,GAAO,MACrB,kBAAC,GAAD;KAAyB,OAAO;KAAO,WAAW;KAC/C,UAAA;IACU,GAFK,CAEL,CACd;GACO,CAAA,GAGX,EAAS,KAAK,GAAS,MACtB,kBAAC,GAAD;IAEE,OAAO;IACP,WAAU;IAEV,UAAA,kBAAC,GAAD;KACE,SAAS,EAAe,CAAO;KACzB;KACN,WAAW;KACX,YAAY,EAAQ,eAAe;KACnC,WAAW,EAAQ,cAAc;KACjC,WAAW,EAAQ,cAAc;KACnB;IACf,CAAA;GACU,GAbN,EAAU,EAaJ,CACd,CACG;EAEN,CAAA,GAAA,kBAAC,OAAD;GAAK,MAAK;GAAQ,cAAY,EAAE;GAAY,WAAU;GAClD,UAAA,CAAC,SAAS,OAAO,CAAC,CAAW,KAAK,MAAU;IAC5C,IAAM,IAAS,MAAoB;IACnC,OACE,kBAAC,UAAD;KAEE,MAAK;KACL,gBAAc;KACd,eAAe,EAAgB,CAAK;KACpC,WAAW,EACT,4DACA,4EACA,oEACA,IACI,oEACA,2DACN;KAEC,UAAA,MAAU,UAAU,EAAE,aAAa,EAAE;IAChC,GAdD,CAcC;GAEZ,CAAC;EACE,CAAA,CACF;;AAET"}
1
+ {"version":3,"file":"board-showcase.js","names":[],"sources":["../../../src/components/plugin/board-showcase.tsx"],"mappings":";;;;;;;;AAiCA,IAAa,IAA+C;CAC1D,GAAG;CACH,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,YAAY;AACd,GAsBM,IACJ;AAIF,SAAgB,EAAc,EAC5B,aACA,iBACA,UAAO,MACP,cACA,sBAAmB,SACnB,sBACA,WACA,gBACqB;CACrB,IAAM,IAAI;EAAE,GAAG;EAAyB,GAAG;CAAO,GAC5C,CAAC,GAAuB,KAA4B,EAA4B,CAAgB,GAChG,IAAkB,KAAa;CAErC,SAAS,EAAgB,GAAyB;EAEhD,AADI,MAAc,KAAA,KAAW,EAAyB,CAAI,GAC1D,IAAoB,CAAI;CAC1B;CAEA,IAAI,EAAS,WAAW,GAAG,OAAO;CAElC,IAAM,IAAY,EAAc,GAAU,CAAC;CAE3C,OACE,kBAAC,OAAD;EAAK,aAAU;EAAiB,WAAW,EAAG,oCAAoC,CAAS;EAA3F,UAAA,CACE,kBAAC,GAAD;GAAM,cAAc;GAAG,WAAU;GAAjC,UAAA,CACG,EAAS,SAAS,KACjB,kBAAC,GAAD;IAAU,cAAY,EAAE;IAAY,WAAU;IAC3C,UAAA,EAAU,KAAK,GAAO,MACrB,kBAAC,GAAD;KAAyB,OAAO;KAAO,WAAW;KAC/C,UAAA;IACU,GAFK,CAEL,CACd;GACO,CAAA,GAGX,EAAS,KAAK,GAAS,MACtB,kBAAC,GAAD;IAEE,OAAO;IACP,WAAU;IAEV,UAAA,kBAAC,GAAD;KACE,SAAS,EAAe,CAAO;KACzB;KACN,WAAW;KACX,YAAY,EAAQ,eAAe;KACnC,WAAW,EAAQ,cAAc;KACjC,WAAW,EAAQ,cAAc;KACnB;IACf,CAAA;GACU,GAbN,EAAU,EAaJ,CACd,CACG;EAEN,CAAA,GAAA,kBAAC,OAAD;GAAK,MAAK;GAAQ,cAAY,EAAE;GAAY,WAAU;GAClD,UAAA,CAAC,SAAS,OAAO,CAAC,CAAW,KAAK,MAAU;IAC5C,IAAM,IAAS,MAAoB;IACnC,OACE,kBAAC,UAAD;KAEE,MAAK;KACL,gBAAc;KACd,eAAe,EAAgB,CAAK;KACpC,WAAW,EACT,4DACA,4EACA,cACA,IACI,oEACA,2DACN;KAEC,UAAA,MAAU,UAAU,EAAE,aAAa,EAAE;IAChC,GAdD,CAcC;GAEZ,CAAC;EACE,CAAA,CACF;;AAET"}
@@ -1,7 +1,7 @@
1
1
  import { type VariantProps } from "class-variance-authority";
2
2
  import * as React from "react";
3
3
  declare const headingVariants: (props?: ({
4
- tone?: "default" | "destructive" | "muted" | null | undefined;
4
+ tone?: "muted" | "default" | "destructive" | null | undefined;
5
5
  size?: "base" | "sm" | "lg" | "xl" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement>, VariantProps<typeof headingVariants> {
@@ -1,9 +1,33 @@
1
1
  import * as React from "react";
2
2
  /**
3
- * Inline text anchor with the canonical link treatment, always underlined at
4
- * rest (satisfies WCAG 1.4.1 / axe link-in-text-block), and the unified 3px
5
- * soft focus ring. For router navigation, keep using the router's `Link`
3
+ * Inline text anchor with the canonical link treatment: always underlined at
4
+ * rest (WCAG 1.4.1 / axe `link-in-text-block`), brand pigment, and the shared
5
+ * two-tone focus ring. For router navigation, keep using the router's `Link`
6
6
  * component; this primitive is for plain anchors.
7
+ *
8
+ * ## Pigment: `text-brand`, never `text-primary` (#238)
9
+ *
10
+ * `--primary` is the literal #f5a623 tile. It measures **1.83:1** on a light
11
+ * page — legal as a button field with board ink on it, illegal as a sentence.
12
+ * `--brand` is the same hue at the ink plateau: **5.09:1** light, **9.63:1**
13
+ * dark on `--background`. This is the pigment `Button`'s `link` variant
14
+ * already uses, and the two are deliberately the same so a link does not
15
+ * change colour depending on which component drew it.
16
+ *
17
+ * The underline is permanent rather than on hover because colour alone cannot
18
+ * distinguish a link from body copy: `--brand` against `--foreground` is
19
+ * 1.86:1 in dark, under G183's 3:1.
20
+ *
21
+ * ## Focus: the shared `focus-ring` class (#238)
22
+ *
23
+ * The previous recipe was `outline-none focus-visible:ring-[3px]
24
+ * focus-visible:ring-ring/50`, which is now a two-part failure. `--ring`
25
+ * follows `--primary`, so since 4.0.0 the band is the tile; composited in
26
+ * gamma space a 50% band of it measures **1.36:1** against a light page,
27
+ * against SC 2.4.11's 3:1. And `outline-none` suppressed the UA outline that
28
+ * would otherwise have covered for it, so the link had no visible focus
29
+ * indicator at all. `focus-ring` bounds the orange band with board-ink
30
+ * hairlines (16:1 on light surfaces) — see the recipe in theme.css.
7
31
  */
8
32
  declare function TextLink({ className, ...props }: React.ComponentProps<"a">): React.JSX.Element;
9
33
  export { TextLink };
@@ -5,7 +5,7 @@ import { jsx as t } from "react/jsx-runtime";
5
5
  function n({ className: n, ...r }) {
6
6
  return /* @__PURE__ */ t("a", {
7
7
  "data-slot": "text-link",
8
- className: e("rounded-sm text-primary underline underline-offset-4 outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50", n),
8
+ className: e("focus-ring rounded-sm text-brand underline underline-offset-4", n),
9
9
  ...r
10
10
  });
11
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"text-link.js","names":[],"sources":["../../../src/components/typography/text-link.tsx"],"mappings":";;;;AAUA,SAAS,EAAS,EAAE,cAAW,GAAG,KAAoC;CACpE,OACE,kBAAC,KAAD;EACE,aAAU;EACV,WAAW,EACT,yHACA,CACF;EACA,GAAI;CACL,CAAA;AAEL"}
1
+ {"version":3,"file":"text-link.js","names":[],"sources":["../../../src/components/typography/text-link.tsx"],"mappings":";;;;AAkCA,SAAS,EAAS,EAAE,cAAW,GAAG,KAAoC;CACpE,OACE,kBAAC,KAAD;EACE,aAAU;EACV,WAAW,EAAG,iEAAiE,CAAS;EACxF,GAAI;CACL,CAAA;AAEL"}
@@ -2,7 +2,7 @@ import { type VariantProps } from "class-variance-authority";
2
2
  import * as React from "react";
3
3
  declare const textVariants: (props?: ({
4
4
  size?: "base" | "sm" | "lg" | "xs" | null | undefined;
5
- tone?: "default" | "destructive" | "info" | "success" | "warning" | "muted" | null | undefined;
5
+ tone?: "muted" | "default" | "destructive" | "info" | "success" | "warning" | null | undefined;
6
6
  weight?: "normal" | "medium" | "semibold" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  interface TextProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof textVariants> {
@@ -1,5 +1,10 @@
1
1
  export interface WizardShellProps {
2
- /** Brand mark for the header medallion — an <img>, an inline SVG, anything. */
2
+ /**
3
+ * Brand mark for the header medallion — an <img>, an inline SVG, anything.
4
+ * Rendered inside a decorative {@link IconTile}, so it is hidden from
5
+ * assistive technology: the `wordmark` beside it is the lockup's name and
6
+ * announcing both would say the product twice.
7
+ */
3
8
  icon?: React.ReactNode;
4
9
  /**
5
10
  * Wordmark rendered beside the mark. Together they are the product lockup —
@@ -1,62 +1,65 @@
1
1
  import { cn as e } from "../../lib/utils.js";
2
- import { WizardProgress as t } from "./wizard-progress.js";
3
- import { BoardBackdrop as n } from "../board/board-backdrop.js";
4
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
2
+ import { IconTile as t } from "../containment/icon-tile.js";
3
+ import { WizardProgress as n } from "./wizard-progress.js";
4
+ import { BoardBackdrop as r } from "../board/board-backdrop.js";
5
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
6
  //#region src/components/wizard/wizard-shell.tsx
6
- function a({ icon: a, wordmark: o, title: s, description: c, aside: l, steps: u, current: d, progressLabel: f, stepTitle: p, stepDescription: m, children: h, footer: g, backdropPhrases: _, className: v }) {
7
- return /* @__PURE__ */ i("div", {
8
- className: e("bg-background fixed inset-0 z-50 overflow-y-auto", v),
9
- children: [_?.length ? /* @__PURE__ */ r(n, {
10
- phrases: _,
7
+ function o({ icon: o, wordmark: s, title: c, description: l, aside: u, steps: d, current: f, progressLabel: p, stepTitle: m, stepDescription: h, children: g, footer: _, backdropPhrases: v, className: y }) {
8
+ return /* @__PURE__ */ a("div", {
9
+ className: e("bg-background fixed inset-0 z-50 overflow-y-auto", y),
10
+ children: [v?.length ? /* @__PURE__ */ i(r, {
11
+ phrases: v,
11
12
  fixed: !0
12
- }) : null, /* @__PURE__ */ r("div", {
13
+ }) : null, /* @__PURE__ */ i("div", {
13
14
  className: "relative flex min-h-full items-start justify-center px-4 py-6 sm:px-6 sm:py-10",
14
- children: /* @__PURE__ */ i("div", {
15
+ children: /* @__PURE__ */ a("div", {
15
16
  className: e("bg-card border-border w-full max-w-lg rounded-2xl border p-6 sm:p-8", "shadow-[var(--elevation-modal)]"),
16
17
  children: [
17
- /* @__PURE__ */ i("header", {
18
+ /* @__PURE__ */ a("header", {
18
19
  className: "pb-6",
19
20
  children: [
20
- /* @__PURE__ */ i("div", {
21
+ /* @__PURE__ */ a("div", {
21
22
  className: "flex items-center justify-between gap-4",
22
- children: [/* @__PURE__ */ i("span", {
23
+ children: [/* @__PURE__ */ a("span", {
23
24
  className: "flex min-w-0 items-center gap-3",
24
- children: [a ? /* @__PURE__ */ r("span", {
25
- className: "bg-board-surface-dark flex size-12 shrink-0 items-center justify-center overflow-hidden rounded-xl ring-1 ring-white/10 sm:size-14",
26
- children: a
27
- }) : null, o]
28
- }), l]
25
+ children: [o ? /* @__PURE__ */ i(t, {
26
+ size: "lg",
27
+ tone: "board",
28
+ className: "sm:size-14",
29
+ children: o
30
+ }) : null, s]
31
+ }), u]
29
32
  }),
30
- /* @__PURE__ */ r("h1", {
33
+ /* @__PURE__ */ i("h1", {
31
34
  className: "mt-5 text-2xl font-semibold tracking-tight text-balance sm:text-3xl",
32
- children: s
35
+ children: c
33
36
  }),
34
- c ? /* @__PURE__ */ r("p", {
37
+ l ? /* @__PURE__ */ i("p", {
35
38
  className: "text-muted-foreground mt-2 text-sm sm:text-base",
36
- children: c
39
+ children: l
37
40
  }) : null
38
41
  ]
39
42
  }),
40
- /* @__PURE__ */ r(t, {
41
- steps: u,
42
- current: d,
43
- label: f,
43
+ /* @__PURE__ */ i(n, {
44
+ steps: d,
45
+ current: f,
46
+ label: p,
44
47
  className: "pb-7"
45
48
  }),
46
- /* @__PURE__ */ i("div", {
49
+ /* @__PURE__ */ a("div", {
47
50
  className: "mb-6",
48
- children: [/* @__PURE__ */ r("h2", {
51
+ children: [/* @__PURE__ */ i("h2", {
49
52
  className: "text-xl font-semibold tracking-tight sm:text-2xl",
50
- children: p
51
- }), m ? /* @__PURE__ */ r("p", {
52
- className: "text-muted-foreground mt-1",
53
53
  children: m
54
+ }), h ? /* @__PURE__ */ i("p", {
55
+ className: "text-muted-foreground mt-1",
56
+ children: h
54
57
  }) : null]
55
58
  }),
56
- h,
57
- g ? /* @__PURE__ */ r("div", {
59
+ g,
60
+ _ ? /* @__PURE__ */ i("div", {
58
61
  className: "border-border mt-8 flex items-center justify-between border-t pt-6",
59
- children: g
62
+ children: _
60
63
  }) : null
61
64
  ]
62
65
  })
@@ -64,6 +67,6 @@ function a({ icon: a, wordmark: o, title: s, description: c, aside: l, steps: u,
64
67
  });
65
68
  }
66
69
  //#endregion
67
- export { a as WizardShell };
70
+ export { o as WizardShell };
68
71
 
69
72
  //# sourceMappingURL=wizard-shell.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"wizard-shell.js","names":[],"sources":["../../../src/components/wizard/wizard-shell.tsx"],"mappings":";;;;;AAsEA,SAAgB,EAAY,EAC1B,SACA,aACA,UACA,gBACA,UACA,UACA,YACA,kBACA,cACA,oBACA,aACA,WACA,oBACA,gBACmB;CACnB,OACE,kBAAC,OAAD;EAAK,WAAW,EAAG,oDAAoD,CAAS;EAAhF,UAAA,CAGG,GAAiB,SAAS,kBAAC,GAAD;GAAe,SAAS;GAAiB,OAAA;EAAO,CAAA,IAAI,MAC/E,kBAAC,OAAD;GAAK,WAAU;GACb,UAAA,kBAAC,OAAD;IACE,WAAW,EACT,uEACA,iCACF;IAJF,UAAA;KAME,kBAAC,UAAD;MAAQ,WAAU;MAAlB,UAAA;OAYE,kBAAC,OAAD;QAAK,WAAU;QAAf,UAAA,CACE,kBAAC,QAAD;SAAM,WAAU;SAAhB,UAAA,CACG,IACC,kBAAC,QAAD;UAAM,WAAU;UACb,UAAA;SACG,CAAA,IACJ,MACH,CACG;QACL,CAAA,GAAA,CACE;;OACL,kBAAC,MAAD;QAAI,WAAU;QAAuE,UAAA;OAAU,CAAA;OAC9F,IAAc,kBAAC,KAAD;QAAG,WAAU;QAAmD,UAAA;OAAe,CAAA,IAAI;MAC5F;;KAER,kBAAC,GAAD;MAAuB;MAAgB;MAAS,OAAO;MAAe,WAAU;KAAQ,CAAA;KAExF,kBAAC,OAAD;MAAK,WAAU;MAAf,UAAA,CACE,kBAAC,MAAD;OAAI,WAAU;OAAoD,UAAA;MAAc,CAAA,GAC/E,IAAkB,kBAAC,KAAD;OAAG,WAAU;OAA8B,UAAA;MAAmB,CAAA,IAAI,IAClF;;KAEJ;KAEA,IACC,kBAAC,OAAD;MAAK,WAAU;MAAsE,UAAA;KAAY,CAAA,IAC/F;IACD;;EACF,CAAA,CACF;;AAET"}
1
+ {"version":3,"file":"wizard-shell.js","names":[],"sources":["../../../src/components/wizard/wizard-shell.tsx"],"mappings":";;;;;;AA4EA,SAAgB,EAAY,EAC1B,SACA,aACA,UACA,gBACA,UACA,UACA,YACA,kBACA,cACA,oBACA,aACA,WACA,oBACA,gBACmB;CACnB,OACE,kBAAC,OAAD;EAAK,WAAW,EAAG,oDAAoD,CAAS;EAAhF,UAAA,CAGG,GAAiB,SAAS,kBAAC,GAAD;GAAe,SAAS;GAAiB,OAAA;EAAO,CAAA,IAAI,MAC/E,kBAAC,OAAD;GAAK,WAAU;GACb,UAAA,kBAAC,OAAD;IACE,WAAW,EACT,uEACA,iCACF;IAJF,UAAA;KAME,kBAAC,UAAD;MAAQ,WAAU;MAAlB,UAAA;OAcE,kBAAC,OAAD;QAAK,WAAU;QAAf,UAAA,CACE,kBAAC,QAAD;SAAM,WAAU;SAAhB,UAAA,CACG,IAIC,kBAAC,GAAD;UAAU,MAAK;UAAK,MAAK;UAAQ,WAAU;UACxC,UAAA;SACO,CAAA,IACR,MACH,CACG;QACL,CAAA,GAAA,CACE;;OACL,kBAAC,MAAD;QAAI,WAAU;QAAuE,UAAA;OAAU,CAAA;OAC9F,IAAc,kBAAC,KAAD;QAAG,WAAU;QAAmD,UAAA;OAAe,CAAA,IAAI;MAC5F;;KAER,kBAAC,GAAD;MAAuB;MAAgB;MAAS,OAAO;MAAe,WAAU;KAAQ,CAAA;KAExF,kBAAC,OAAD;MAAK,WAAU;MAAf,UAAA,CACE,kBAAC,MAAD;OAAI,WAAU;OAAoD,UAAA;MAAc,CAAA,GAC/E,IAAkB,kBAAC,KAAD;OAAG,WAAU;OAA8B,UAAA;MAAmB,CAAA,IAAI,IAClF;;KAEJ;KAEA,IACC,kBAAC,OAAD;MAAK,WAAU;MAAsE,UAAA;KAAY,CAAA,IAC/F;IACD;;EACF,CAAA,CACF;;AAET"}
package/dist/index.d.ts CHANGED
@@ -9,7 +9,9 @@
9
9
  export * from "./components/containment/accordion";
10
10
  export * from "./components/containment/card";
11
11
  export * from "./components/containment/collapsible";
12
+ export * from "./components/containment/icon-tile";
12
13
  export * from "./components/containment/json-tree";
14
+ export * from "./components/containment/media-frame";
13
15
  export * from "./components/feedback/alert";
14
16
  export * from "./components/feedback/badge";
15
17
  export * from "./components/feedback/chip";
@@ -25,6 +27,7 @@ export * from "./components/layout/grid";
25
27
  export * from "./components/overlays/alert-dialog";
26
28
  export * from "./components/overlays/dialog";
27
29
  export * from "./components/overlays/dropdown-menu";
30
+ export * from "./components/overlays/lightbox";
28
31
  export * from "./components/overlays/popover";
29
32
  export * from "./components/typography/code";
30
33
  export * from "./components/typography/heading";
@@ -38,9 +41,11 @@ export * from "./components/feedback/spinner";
38
41
  export * from "./components/feedback/status-dot";
39
42
  export * from "./components/forms/select";
40
43
  export * from "./components/forms/slider";
44
+ export * from "./components/forms/swatch";
41
45
  export * from "./components/forms/switch";
42
46
  export * from "./components/forms/textarea";
43
47
  export * from "./components/forms/time-picker";
48
+ export * from "./components/forms/timezone-picker";
44
49
  export * from "./components/forms/toggle";
45
50
  export * from "./components/forms/toggle-card";
46
51
  export * from "./components/layout/stack";
@@ -55,6 +60,7 @@ export * from "./components/chrome/fiesta-icon";
55
60
  export * from "./components/chrome/fiesta-logo";
56
61
  export * from "./components/chrome/language-selector";
57
62
  export * from "./components/chrome/main-content";
63
+ export * from "./components/chrome/nav-list";
58
64
  export * from "./components/chrome/page-header";
59
65
  export * from "./components/chrome/page-layout";
60
66
  export * from "./components/chrome/page-toolbar";