@almanaclabs/blaze-ui 0.16.1 → 0.17.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.
@@ -1,12 +1,18 @@
1
1
  import { Button as ButtonPrimitive } from '@base-ui/react/button';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import * as React from 'react';
4
- declare const buttonVariants: (props?: ({
4
+ declare const buttonVariantStyles: (props?: ({
5
5
  variant?: "primary" | "secondary" | "tertiary" | "subtle" | "destructive" | "link" | "soft" | null | undefined;
6
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "icon-xs" | "icon-sm" | "icon-md" | "icon-lg" | "icon-xl" | null | undefined;
6
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | "page" | "row" | "icon-xs" | "icon-sm" | "icon-md" | "icon-lg" | "icon-xl" | null | undefined;
7
7
  shape?: "default" | "pill" | null | undefined;
8
8
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
- export type ButtonProps = ButtonPrimitive.Props & VariantProps<typeof buttonVariants>;
9
+ /**
10
+ * The button's classes for a non-button element, such as a link. Conflicting
11
+ * classes are merged (a size's weight and radius win over the base), so the
12
+ * result matches `Button`.
13
+ */
14
+ declare function buttonVariants(props?: Parameters<typeof buttonVariantStyles>[0]): string;
15
+ export type ButtonProps = ButtonPrimitive.Props & VariantProps<typeof buttonVariantStyles>;
10
16
  export declare function ButtonLabel({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
11
17
  export declare function Button({ className, variant, size, shape, children, ...props }: ButtonProps): React.JSX.Element;
12
18
  export { buttonVariants };
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACjE,OAAO,EAAO,KAAK,YAAY,EAAE,MAA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import { Button as r } from "@base-ui/react/button";
5
5
  import { cva as i } from "class-variance-authority";
6
6
  import { jsx as a } from "react/jsx-runtime";
7
7
  //#region src/components/button/button.tsx
8
- var o = "bg-primary text-primary-foreground hover:bg-[var(--primary-hover)] aria-expanded:bg-[var(--primary-hover)]", s = "border-border bg-card text-foreground hover:border-foreground/15 hover:bg-card aria-expanded:border-foreground/15 aria-expanded:bg-card", c = "bg-transparent text-foreground hover:bg-muted aria-expanded:bg-muted dark:hover:bg-muted/50", l = `${e.xs} gap-0.5 [--icon-stroke-width:var(--icon-stroke-14)] has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 [&_svg:not([class*='size-'])]:size-[14px]`, u = `${e.sm} gap-1 [--icon-stroke-width:var(--icon-stroke-15)] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-[15px]`, d = `${e.md} gap-[5px] [--icon-stroke-width:var(--icon-stroke-15)] has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-[15px]`, f = `${e.lg} gap-1.5 [--icon-stroke-width:var(--icon-stroke-18)] has-data-[icon=inline-end]:pr-[9px] has-data-[icon=inline-start]:pl-[9px] [&_svg:not([class*='size-'])]:size-[18px]`, p = `${e.xl} rounded-lg gap-2 [--icon-stroke-width:var(--icon-stroke-24)] has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3 [&_svg:not([class*='size-'])]:size-6`, m = i("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding font-semibold whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-border-subtle active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-40 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/10 dark:aria-invalid:border-destructive/60 dark:aria-invalid:ring-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
8
+ var o = "bg-primary text-primary-foreground hover:bg-[var(--primary-hover)] aria-expanded:bg-[var(--primary-hover)]", s = "border-border bg-card text-foreground hover:border-foreground/15 hover:bg-card aria-expanded:border-foreground/15 aria-expanded:bg-card", c = "bg-transparent text-foreground hover:bg-muted aria-expanded:bg-muted dark:hover:bg-muted/50", l = `${e.xs} gap-0.5 [--icon-stroke-width:var(--icon-stroke-14)] has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 [&_svg:not([class*='size-'])]:size-[14px]`, u = `${e.sm} gap-1 [--icon-stroke-width:var(--icon-stroke-15)] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-[15px]`, d = `${e.md} gap-[5px] [--icon-stroke-width:var(--icon-stroke-15)] has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-[15px]`, f = `${e.lg} gap-1.5 [--icon-stroke-width:var(--icon-stroke-18)] has-data-[icon=inline-end]:pr-[9px] has-data-[icon=inline-start]:pl-[9px] [&_svg:not([class*='size-'])]:size-[18px]`, p = "h-9 rounded-full px-5 gap-1.5 type-content font-normal [--icon-stroke-width:var(--icon-stroke-16)] has-data-[icon=inline-end]:pr-4 has-data-[icon=inline-start]:pl-4 [&_svg:not([class*='size-'])]:size-4", m = "h-8 rounded-full px-4 gap-1 type-small font-normal [--icon-stroke-width:var(--icon-stroke-15)] has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3 [&_svg:not([class*='size-'])]:size-[15px]", h = `${e.xl} rounded-lg gap-2 [--icon-stroke-width:var(--icon-stroke-24)] has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3 [&_svg:not([class*='size-'])]:size-6`, g = i("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding font-semibold whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-border-subtle active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-40 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/10 dark:aria-invalid:border-destructive/60 dark:aria-invalid:ring-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
9
9
  variants: {
10
10
  variant: {
11
11
  primary: o,
@@ -21,7 +21,9 @@ var o = "bg-primary text-primary-foreground hover:bg-[var(--primary-hover)] aria
21
21
  sm: u,
22
22
  md: d,
23
23
  lg: f,
24
- xl: p,
24
+ xl: h,
25
+ page: p,
26
+ row: m,
25
27
  "icon-xs": "size-6 rounded-[6px] [--icon-stroke-width:var(--icon-stroke-14)] [&_svg:not([class*='size-'])]:size-[14px]",
26
28
  "icon-sm": "size-7 rounded-[6px] [--icon-stroke-width:var(--icon-stroke-15)] [&_svg:not([class*='size-'])]:size-[15px]",
27
29
  "icon-md": "size-8 rounded-[8px] [--icon-stroke-width:var(--icon-stroke-15)] [&_svg:not([class*='size-'])]:size-[15px]",
@@ -35,30 +37,33 @@ var o = "bg-primary text-primary-foreground hover:bg-[var(--primary-hover)] aria
35
37
  },
36
38
  defaultVariants: {
37
39
  variant: "primary",
38
- size: "xl",
40
+ size: "page",
39
41
  shape: "default"
40
42
  }
41
43
  });
42
- function h({ className: e, ...n }) {
44
+ function _(e) {
45
+ return t(g(e));
46
+ }
47
+ function v({ className: e, ...n }) {
43
48
  return /* @__PURE__ */ a("span", {
44
49
  "data-slot": "button-label",
45
50
  className: t("inline-flex min-w-0 items-center justify-center", e),
46
51
  ...n
47
52
  });
48
53
  }
49
- function g(e) {
54
+ function y(e) {
50
55
  if (typeof e == "string") {
51
56
  let t = e.trim();
52
- return t ? /* @__PURE__ */ a(h, { children: t }) : null;
57
+ return t ? /* @__PURE__ */ a(v, { children: t }) : null;
53
58
  }
54
- return typeof e == "number" ? /* @__PURE__ */ a(h, { children: e }) : e;
59
+ return typeof e == "number" ? /* @__PURE__ */ a(v, { children: e }) : e;
55
60
  }
56
- function _({ className: e, variant: i = "primary", size: o = "xl", shape: s = "default", children: c, ...l }) {
57
- let u = t(m({
61
+ function b({ className: e, variant: i = "primary", size: o = "page", shape: s = "default", children: c, ...l }) {
62
+ let u = _({
58
63
  variant: i,
59
64
  size: o,
60
65
  shape: s
61
- }));
66
+ });
62
67
  return /* @__PURE__ */ a(r, {
63
68
  "data-slot": "button",
64
69
  "data-variant": i,
@@ -66,8 +71,8 @@ function _({ className: e, variant: i = "primary", size: o = "xl", shape: s = "d
66
71
  "data-shape": s,
67
72
  className: typeof e == "function" ? (n) => t(u, e(n)) : t(u, e),
68
73
  ...l,
69
- children: n.Children.map(c, g)
74
+ children: n.Children.map(c, y)
70
75
  });
71
76
  }
72
77
  //#endregion
73
- export { _ as Button, h as ButtonLabel, m as buttonVariants };
78
+ export { b as Button, v as ButtonLabel, _ as buttonVariants };
@@ -22,8 +22,14 @@ function u({ className: t, classNames: r, showOutsideDays: u = !0, captionLayout
22
22
  months: e("relative flex flex-col gap-4 md:flex-row", v.months),
23
23
  month: e("flex w-full flex-col gap-4", v.month),
24
24
  nav: e("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1", v.nav),
25
- button_previous: e(n({ variant: p }), "size-(--cell-size) p-0 select-none aria-disabled:opacity-50", v.button_previous),
26
- button_next: e(n({ variant: p }), "size-(--cell-size) p-0 select-none aria-disabled:opacity-50", v.button_next),
25
+ button_previous: e(n({
26
+ variant: p,
27
+ size: "xl"
28
+ }), "size-(--cell-size) p-0 select-none aria-disabled:opacity-50", v.button_previous),
29
+ button_next: e(n({
30
+ variant: p,
31
+ size: "xl"
32
+ }), "size-(--cell-size) p-0 select-none aria-disabled:opacity-50", v.button_next),
27
33
  month_caption: e("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)", v.month_caption),
28
34
  dropdowns: e("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium", v.dropdowns),
29
35
  dropdown_root: e("relative rounded-(--cell-radius)", v.dropdown_root),
@@ -15,12 +15,18 @@ export interface DenseTableProps extends Omit<React.ComponentProps<'div'>, 'chil
15
15
  children: React.ReactNode;
16
16
  /** Names the table for assistive technology. */
17
17
  'aria-label'?: string;
18
+ /**
19
+ * `card` sits on a bordered white card with compact rows. `flush` has no
20
+ * frame and roomier 17px rows, for a table that is the page section
21
+ * itself, as on the Blaze 4 overview pages (ADR 0029).
22
+ */
23
+ variant?: 'card' | 'flush';
18
24
  }
19
25
  /**
20
26
  * A data-heavy table on a white card: compact rows, small muted headers and
21
27
  * right-aligned numbers, for scanning many figures at once.
22
28
  */
23
- declare function DenseTable({ columns, children, className, 'aria-label': ariaLabel, ...props }: DenseTableProps): React.JSX.Element;
29
+ declare function DenseTable({ columns, children, className, variant, 'aria-label': ariaLabel, ...props }: DenseTableProps): React.JSX.Element;
24
30
  declare const DenseTableRow: typeof TableRow;
25
31
  export interface DenseTableCellProps extends React.ComponentProps<'td'> {
26
32
  /** Right-aligned tabular figures in medium weight. */
@@ -1 +1 @@
1
- {"version":3,"file":"dense-table.d.ts","sourceRoot":"","sources":["../../../src/components/dense-table/dense-table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAML,QAAQ,EACT,MAAM,oBAAoB,CAAA;AAG3B,MAAM,WAAW,gBAAgB;IAC/B,iFAAiF;IACjF,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,mDAAmD;IACnD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAC3B,UAAU,CACX;IACC,OAAO,EAAE,SAAS,gBAAgB,EAAE,CAAA;IACpC,uDAAuD;IACvD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED;;;GAGG;AACH,iBAAS,UAAU,CAAC,EAClB,OAAO,EACP,QAAQ,EACR,SAAS,EACT,YAAY,EAAE,SAAS,EACvB,GAAG,KAAK,EACT,EAAE,eAAe,qBAmCjB;AAED,QAAA,MAAM,aAAa,iBAAW,CAAA;AAE9B,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC;IACrE,sDAAsD;IACtD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,qEAAqE;IACrE,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACrB,uFAAuF;IACvF,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,0FAA0F;AAC1F,iBAAS,cAAc,CAAC,EACtB,OAAe,EACf,GAAG,EACH,IAAe,EACf,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,mBAAmB,qBAkBrB;AAED,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,CAAA"}
1
+ {"version":3,"file":"dense-table.d.ts","sourceRoot":"","sources":["../../../src/components/dense-table/dense-table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAML,QAAQ,EACT,MAAM,oBAAoB,CAAA;AAG3B,MAAM,WAAW,gBAAgB;IAC/B,iFAAiF;IACjF,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,mDAAmD;IACnD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAC3B,UAAU,CACX;IACC,OAAO,EAAE,SAAS,gBAAgB,EAAE,CAAA;IACpC,uDAAuD;IACvD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAC3B;AAID;;;GAGG;AACH,iBAAS,UAAU,CAAC,EAClB,OAAO,EACP,QAAQ,EACR,SAAS,EACT,OAAgB,EAChB,YAAY,EAAE,SAAS,EACvB,GAAG,KAAK,EACT,EAAE,eAAe,qBAyCjB;AAED,QAAA,MAAM,aAAa,iBAAW,CAAA;AAE9B,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC;IACrE,sDAAsD;IACtD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,qEAAqE;IACrE,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACrB,uFAAuF;IACvF,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,0FAA0F;AAC1F,iBAAS,cAAc,CAAC,EACtB,OAAe,EACf,GAAG,EACH,IAAe,EACf,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,mBAAmB,qBAsBrB;AAED,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,CAAA"}
@@ -1,41 +1,47 @@
1
1
  import { cn as e } from "../../lib/utils.js";
2
2
  import { Table as t, TableBody as n, TableCell as r, TableHead as i, TableHeader as a, TableRow as o } from "../table/table.js";
3
- import "react";
4
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
3
+ import * as s from "react";
4
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
5
5
  //#region src/components/dense-table/dense-table.tsx
6
- function l({ columns: r, children: l, className: u, "aria-label": d, ...f }) {
7
- return /* @__PURE__ */ s("div", {
6
+ var u = s.createContext("card");
7
+ function d({ columns: r, children: s, className: d, variant: f = "card", "aria-label": p, ...m }) {
8
+ return /* @__PURE__ */ c("div", {
8
9
  "data-slot": "dense-table",
9
- className: e("overflow-x-auto rounded-xl border border-border bg-card px-2", u),
10
- ...f,
11
- children: /* @__PURE__ */ c(t, {
10
+ "data-variant": f,
11
+ className: e("overflow-x-auto", f === "card" && "rounded-xl border border-border bg-card px-2", d),
12
+ ...m,
13
+ children: /* @__PURE__ */ l(t, {
12
14
  density: "compact",
13
- "aria-label": d,
14
- children: [/* @__PURE__ */ s(a, { children: /* @__PURE__ */ s(o, { children: r.map((t, n) => /* @__PURE__ */ c(i, {
15
+ "aria-label": p,
16
+ children: [/* @__PURE__ */ c(a, { children: /* @__PURE__ */ c(o, { children: r.map((t, n) => /* @__PURE__ */ l(i, {
15
17
  "data-numeric": t.numeric ? "" : void 0,
16
18
  className: e("type-meta font-medium text-muted-foreground", t.numeric && "text-right", t.className),
17
- children: [t.label, t.srLabel ? /* @__PURE__ */ s("span", {
19
+ children: [t.label, t.srLabel ? /* @__PURE__ */ c("span", {
18
20
  className: "sr-only",
19
21
  children: t.srLabel
20
22
  }) : null]
21
- }, n)) }) }), /* @__PURE__ */ s(n, { children: l })]
23
+ }, n)) }) }), /* @__PURE__ */ c(n, { children: /* @__PURE__ */ c(u.Provider, {
24
+ value: f,
25
+ children: s
26
+ }) })]
22
27
  })
23
28
  });
24
29
  }
25
- var u = o;
26
- function d({ numeric: t = !1, sub: n, wrap: i = !t, className: a, children: o, ...l }) {
27
- return /* @__PURE__ */ c(r, {
30
+ var f = o;
31
+ function p({ numeric: t = !1, sub: n, wrap: i = !t, className: a, children: o, ...d }) {
32
+ let f = s.useContext(u) === "flush";
33
+ return /* @__PURE__ */ l(r, {
28
34
  "data-numeric": t ? "" : void 0,
29
- className: e("type-body align-top", t && "text-right tabular-nums", i && "whitespace-normal", a),
30
- ...l,
31
- children: [t ? /* @__PURE__ */ s("span", {
35
+ className: e(f ? "type-item-title py-3 align-middle group-data-[density=compact]/table:py-3" : "type-body align-top", t && "text-right tabular-nums", i && "whitespace-normal", a),
36
+ ...d,
37
+ children: [t ? /* @__PURE__ */ c("span", {
32
38
  className: "font-medium",
33
39
  children: o
34
- }) : o, n ? /* @__PURE__ */ s("span", {
40
+ }) : o, n ? /* @__PURE__ */ c("span", {
35
41
  className: "type-meta block text-muted-foreground",
36
42
  children: n
37
43
  }) : null]
38
44
  });
39
45
  }
40
46
  //#endregion
41
- export { l as DenseTable, d as DenseTableCell, u as DenseTableRow };
47
+ export { d as DenseTable, p as DenseTableCell, f as DenseTableRow };
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAMjE,iBAAS,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,CAAC,IAAI,CAAC,KAAK,qBAEvD;AAED,iBAAS,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,CAAC,OAAO,CAAC,KAAK,qBAEjE;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,CAAC,MAAM,CAAC,KAAK,qBAE/D;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,CAAC,KAAK,CAAC,KAAK,qBAE7D;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,eAAe,CAAC,QAAQ,CAAC,KAAK,qBAWhC;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,eAAsB,EACtB,GAAG,KAAK,EACT,EAAE,eAAe,CAAC,KAAK,CAAC,KAAK,GAAG;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,qBA+BA;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,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qBAWhC;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,eAAsB,EACtB,GAAG,KAAK,EACT,EAAE,eAAe,CAAC,KAAK,CAAC,KAAK,GAAG;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,qBA+BA;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQzE;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,eAAuB,EACvB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,qBAoBA;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,CAAC,KAAK,CAAC,KAAK,qBAWxE;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,eAAe,CAAC,WAAW,CAAC,KAAK,qBAWnC;AAED,OAAO,EACL,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,GACd,CAAA"}
@@ -69,7 +69,10 @@ function p({ className: i, showCloseButton: o = !1, children: s, ...c }) {
69
69
  className: e("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end", i),
70
70
  ...c,
71
71
  children: [s, o && /* @__PURE__ */ n(a.Close, {
72
- render: /* @__PURE__ */ n(t, { variant: "secondary" }),
72
+ render: /* @__PURE__ */ n(t, {
73
+ variant: "secondary",
74
+ size: "xl"
75
+ }),
73
76
  children: "Close"
74
77
  })]
75
78
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almanaclabs/blaze-ui",
3
- "version": "0.16.1",
3
+ "version": "0.17.0",
4
4
  "description": "Shared React components and design tokens for Blaze",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -180,6 +180,11 @@
180
180
  --type-body-size: 0.9375rem;
181
181
  --type-body-line-height: 1.45;
182
182
  --type-body-letter-spacing: 0;
183
+ /* Regular 14px and 13px text for secondary lines and notes (ADR 0029). */
184
+ --type-small-size: 0.875rem;
185
+ --type-small-line-height: 1.45;
186
+ --type-detail-size: 0.8125rem;
187
+ --type-detail-line-height: 1.4;
183
188
  --type-meta-size: 0.75rem;
184
189
  --type-meta-line-height: 1.4;
185
190
  --type-meta-letter-spacing: 0;
@@ -735,6 +740,16 @@
735
740
  letter-spacing: var(--type-body-letter-spacing);
736
741
  }
737
742
 
743
+ .type-small {
744
+ font-size: var(--type-small-size);
745
+ line-height: var(--type-small-line-height);
746
+ }
747
+
748
+ .type-detail {
749
+ font-size: var(--type-detail-size);
750
+ line-height: var(--type-detail-line-height);
751
+ }
752
+
738
753
  .type-meta {
739
754
  font-size: var(--type-meta-size);
740
755
  line-height: var(--type-meta-line-height);