@photon-ai/pho-ui 4.19.0 → 4.20.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,49 +1,49 @@
1
1
  "use client";
2
- import { t as r } from "./cn-CPbhpG1q.js";
2
+ import { t as e } from "./cn-CPbhpG1q.js";
3
3
  import "react";
4
- import { jsx as e } from "react/jsx-runtime";
4
+ import { jsx as r } from "react/jsx-runtime";
5
5
  var i = "border-pho-secondary bg-pho-primary overflow-hidden rounded-lg border";
6
6
  function n({ className: t, ...a }) {
7
- return /* @__PURE__ */ e("div", {
8
- className: r(i, "flex flex-col gap-4 pt-5 pb-4", "has-[>[data-stat-group]:first-child]:pt-0 has-[>[data-stat]:first-child]:pt-0", "has-[>[data-stat-group]:last-child]:pb-0 has-[>[data-stat]:last-child]:pb-0", "has-[>:first-child:has([data-chart])]:pt-0", t),
7
+ return /* @__PURE__ */ r("div", {
8
+ className: e(i, "flex flex-col gap-4 pt-5 pb-4", "has-[>[data-stat-group]:first-child]:pt-0 has-[>[data-stat]:first-child]:pt-0", "has-[>[data-stat-group]:last-child]:pb-0 has-[>[data-stat]:last-child]:pb-0", "has-[>:first-child:has([data-chart])]:pt-0", t),
9
9
  ...a
10
10
  });
11
11
  }
12
12
  function o({ className: t, ...a }) {
13
- return /* @__PURE__ */ e("div", {
14
- className: r("grid grid-cols-[minmax(0,1fr)_minmax(0,auto)] items-baseline gap-x-4 gap-y-0 px-5", t),
13
+ return /* @__PURE__ */ r("div", {
14
+ className: e("grid grid-cols-[minmax(0,1fr)_minmax(0,auto)] items-baseline gap-x-4 gap-y-0 px-5", t),
15
15
  ...a
16
16
  });
17
17
  }
18
18
  function d({ className: t, children: a, ...s }) {
19
- return /* @__PURE__ */ e("h3", {
20
- className: r("text-display-xs text-pho-primary min-w-0 font-medium", t),
19
+ return /* @__PURE__ */ r("h3", {
20
+ className: e("font-heading text-display-xs text-pho-primary min-w-0 font-medium", t),
21
21
  ...s,
22
22
  children: a
23
23
  });
24
24
  }
25
25
  function p({ className: t, ...a }) {
26
- return /* @__PURE__ */ e("div", {
26
+ return /* @__PURE__ */ r("div", {
27
27
  "data-card-value": "",
28
- className: r("text-display-sm text-pho-primary min-w-0 justify-self-end truncate font-medium tabular-nums", t),
28
+ className: e("font-heading text-display-sm text-pho-primary min-w-0 justify-self-end truncate font-medium tabular-nums", t),
29
29
  ...a
30
30
  });
31
31
  }
32
32
  function l({ className: t, ...a }) {
33
- return /* @__PURE__ */ e("p", {
34
- className: r("text-pho-description text-display-xs col-span-2 font-normal", t),
33
+ return /* @__PURE__ */ r("p", {
34
+ className: e("text-pho-description text-display-xs col-span-2 font-normal", t),
35
35
  ...a
36
36
  });
37
37
  }
38
38
  function c({ className: t, ...a }) {
39
- return /* @__PURE__ */ e("div", {
40
- className: r("px-5", t),
39
+ return /* @__PURE__ */ r("div", {
40
+ className: e("px-5", t),
41
41
  ...a
42
42
  });
43
43
  }
44
44
  function m({ className: t, ...a }) {
45
- return /* @__PURE__ */ e("div", {
46
- className: r("flex items-center gap-2 px-5", t),
45
+ return /* @__PURE__ */ r("div", {
46
+ className: e("flex items-center gap-2 px-5", t),
47
47
  ...a
48
48
  });
49
49
  }
@@ -61,4 +61,4 @@ export {
61
61
  i as t
62
62
  };
63
63
 
64
- //# sourceMappingURL=card-zyRAihYE.js.map
64
+ //# sourceMappingURL=card-Bg2V2B0x.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-Bg2V2B0x.js","names":["cn","jsx","CARD_SURFACE","Root","className","props","Header","Title","children","Value","Description","Content","Footer","Card"],"sources":["../../src/components/card/card.tsx"],"sourcesContent":["import { type ComponentProps, type Ref } from \"react\";\nimport { cn } from \"../../utils/cn\";\n\n/**\n * Design notes:\n * - A card is a flat bordered panel on the page surface — hairline border,\n * primary background, no shadow. Elevation shadows stay on floating layers\n * (menus, dialogs); see the same rule on Input and Select.\n * - Radius sits at the `lg` stop (16px) like Dialog — a standalone content\n * panel reads bigger than a control, so it takes the panel radius rather\n * than the control default (`base`). `overflow-hidden` clips with it:\n * a flush `Stat.Group` (opaque tiles, `pt-0`) would otherwise paint\n * square over the curve. The same clip is what makes an edge-to-edge\n * image or table follow the panel, the way `BasicPage.Card` already does.\n * - Vertical rhythm: `pt-5` / `pb-4`, `gap-4` between parts. Parts carry\n * `px-5`, so a child without padding (an image, a table, a `Separator`)\n * runs edge-to-edge on its own. A `Stat` / `Stat.Group` already pads\n * its tiles — when it is the first or last child the matching inset\n * drops so the row sits flush on the card edge. A chart as the first\n * child drops the top inset the same way; the plot keeps its own\n * bottom band.\n * - No size or color axes. A card is chrome, not a signal — content sets the\n * tone. Sizing belongs to the layout that places the card.\n */\n\n/** Surface chrome — exported for hosts that need the look on another element. */\nexport const CARD_SURFACE =\n \"border-pho-secondary bg-pho-primary overflow-hidden rounded-lg border\";\n\n/** The panel: bordered surface, vertical rhythm between parts. */\nfunction Root({\n className,\n ...props\n}: ComponentProps<\"div\"> & { ref?: Ref<HTMLDivElement> }) {\n return (\n <div\n className={cn(\n CARD_SURFACE,\n \"flex flex-col gap-4 pt-5 pb-4\",\n // Stat tiles pad themselves; a chart's plot already insets.\n \"has-[>[data-stat-group]:first-child]:pt-0 has-[>[data-stat]:first-child]:pt-0\",\n \"has-[>[data-stat-group]:last-child]:pb-0 has-[>[data-stat]:last-child]:pb-0\",\n \"has-[>:first-child:has([data-chart])]:pt-0\",\n className,\n )}\n {...props}\n />\n );\n}\n\n/**\n * Title row + optional description. The title and a trailing `Value`\n * share the first line; the description sits on the next with no row\n * gap — title and subtitle read as one block.\n */\nfunction Header({\n className,\n ...props\n}: ComponentProps<\"div\"> & { ref?: Ref<HTMLDivElement> }) {\n return (\n <div\n className={cn(\n \"grid grid-cols-[minmax(0,1fr)_minmax(0,auto)] items-baseline gap-x-4 gap-y-0 px-5\",\n className,\n )}\n {...props}\n />\n );\n}\n\n/**\n * Card heading — an `<h3>` so it nests under page (`h1`) and section (`h2`)\n * headings without skipping levels.\n */\nfunction Title({\n className,\n children,\n ...props\n}: ComponentProps<\"h3\"> & { ref?: Ref<HTMLHeadingElement> }) {\n return (\n <h3\n className={cn(\n \"font-heading text-display-xs text-pho-primary min-w-0 font-medium\",\n className,\n )}\n {...props}\n >\n {children}\n </h3>\n );\n}\n\n/**\n * A count or figure at the end of the title row. One display step above\n * the title, primary ink — the number is the loud thing on the line.\n */\nfunction Value({\n className,\n ...props\n}: ComponentProps<\"div\"> & { ref?: Ref<HTMLDivElement> }) {\n return (\n <div\n data-card-value=\"\"\n className={cn(\n \"font-heading text-display-sm text-pho-primary min-w-0 justify-self-end truncate font-medium tabular-nums\",\n className,\n )}\n {...props}\n />\n );\n}\n\n/** Supporting copy under the title — Dialog's description: same step, description ink. */\nfunction Description({\n className,\n ...props\n}: ComponentProps<\"p\"> & { ref?: Ref<HTMLParagraphElement> }) {\n return (\n <p\n className={cn(\n \"text-pho-description text-display-xs col-span-2 font-normal\",\n className,\n )}\n {...props}\n />\n );\n}\n\n/** The card body. Carries the horizontal padding; bring your own layout. */\nfunction Content({\n className,\n ...props\n}: ComponentProps<\"div\"> & { ref?: Ref<HTMLDivElement> }) {\n return <div className={cn(\"px-5\", className)} {...props} />;\n}\n\n/**\n * Trailing row — actions, a status line. Unopinionated about justification;\n * add `justify-end` for a dialog-style action bar.\n */\nfunction Footer({\n className,\n ...props\n}: ComponentProps<\"div\"> & { ref?: Ref<HTMLDivElement> }) {\n return (\n <div className={cn(\"flex items-center gap-2 px-5\", className)} {...props} />\n );\n}\n\n/**\n * Card — a bordered content panel: header (title + description), body,\n * optional footer. It's static chrome with no interactivity of its own.\n * For a label/control list use `BasicPage.Card`; for a featured\n * block on the page surface use `BasicPage.Callout`.\n *\n * ```tsx\n * <Card.Root>\n * <Card.Header>\n * <Card.Title>Usage</Card.Title>\n * <Card.Value>1.2k</Card.Value>\n * <Card.Description>Since Aug 1.</Card.Description>\n * </Card.Header>\n * <Card.Content>…</Card.Content>\n * <Card.Footer className=\"justify-end\">\n * <Button size=\"sm\">Upgrade</Button>\n * </Card.Footer>\n * </Card.Root>\n * ```\n */\nexport const Card = {\n Root,\n Header,\n Title,\n Value,\n Description,\n Content,\n Footer,\n};\n"],"mappings":";;;;AA0BA,IAAaE,IACX;AAGF,SAASC,EAAK,EACZ,WAAAC,GACA,GAAGC,EAAA,GACqD;AACxD,SACE,gBAAAJ,EAAC,OAAD;AAAA,IACE,WAAWD,EACTE,GACA,iCAEA,iFACA,+EACA,8CACAE,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAOA,SAASC,EAAO,EACd,WAAAF,GACA,GAAGC,EAAA,GACqD;AACxD,SACE,gBAAAJ,EAAC,OAAD;AAAA,IACE,WAAWD,EACT,qFACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAMA,SAASE,EAAM,EACb,WAAAH,GACA,UAAAI,GACA,GAAGH,EAAA,GACwD;AAC3D,SACE,gBAAAJ,EAAC,MAAD;AAAA,IACE,WAAWD,EACT,qEACAI,CACF;AAAA,IACA,GAAIC;AAAA,IAEH,UAAAG;AAAA,EACC,CAAA;AAER;AAMA,SAASC,EAAM,EACb,WAAAL,GACA,GAAGC,EAAA,GACqD;AACxD,SACE,gBAAAJ,EAAC,OAAD;AAAA,IACE,mBAAgB;AAAA,IAChB,WAAWD,EACT,4GACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAGA,SAASK,EAAY,EACnB,WAAAN,GACA,GAAGC,EAAA,GACyD;AAC5D,SACE,gBAAAJ,EAAC,KAAD;AAAA,IACE,WAAWD,EACT,+DACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAGA,SAASM,EAAQ,EACf,WAAAP,GACA,GAAGC,EAAA,GACqD;AACxD,SAAO,gBAAAJ,EAAC,OAAD;AAAA,IAAK,WAAWD,EAAG,QAAQI,CAAS;AAAA,IAAG,GAAIC;AAAA,EAAQ,CAAA;AAC5D;AAMA,SAASO,EAAO,EACd,WAAAR,GACA,GAAGC,EAAA,GACqD;AACxD,SACE,gBAAAJ,EAAC,OAAD;AAAA,IAAK,WAAWD,EAAG,gCAAgCI,CAAS;AAAA,IAAG,GAAIC;AAAA,EAAQ,CAAA;AAE/E;AAsBA,IAAaQ,IAAO;AAAA,EAClB,MAAAV;AAAA,EACA,QAAAG;AAAA,EACA,OAAAC;AAAA,EACA,OAAAE;AAAA,EACA,aAAAC;AAAA,EACA,SAAAC;AAAA,EACA,QAAAC;AACF"}
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { t as c } from "./cn-CPbhpG1q.js";
3
3
  import { t as p } from "./createReactComponent-yKZn9MIX.js";
4
- import { r as h } from "./badge-CVViIYj_.js";
4
+ import { r as x } from "./badge-CVViIYj_.js";
5
5
  import "react";
6
6
  import { jsx as a, jsxs as i } from "react/jsx-runtime";
7
7
  var y = [["path", {
@@ -31,19 +31,19 @@ function _(t) {
31
31
  function k(t, e) {
32
32
  return t === "flat" || e === "none" ? "muted" : t === e ? "success" : "error";
33
33
  }
34
- function m({ label: t, value: e, delta: r, deltaDirection: o, deltaGood: d = "up", note: s, className: f, ...x }) {
35
- const n = r == null ? null : o ?? _(r), g = typeof r == "number" ? `${v.format(r).replace("-", "−")}%` : r, l = n === "up" ? b : n === "down" ? w : null;
34
+ function m({ label: t, value: e, delta: r, deltaDirection: o, deltaGood: d = "up", note: s, className: f, ...g }) {
35
+ const n = r == null ? null : o ?? _(r), h = typeof r == "number" ? `${v.format(r).replace("-", "−")}%` : r, l = n === "up" ? b : n === "down" ? w : null;
36
36
  return /* @__PURE__ */ i("div", {
37
37
  "data-stat": "",
38
38
  className: c("flex min-w-0 flex-col gap-1 px-5 py-4", f),
39
- ...x,
39
+ ...g,
40
40
  children: [
41
41
  /* @__PURE__ */ i("div", {
42
42
  className: "flex items-start justify-between gap-3",
43
43
  children: [/* @__PURE__ */ a("span", {
44
44
  className: "text-pho-secondary min-w-0 truncate text-base",
45
45
  children: t
46
- }), r != null && n != null && /* @__PURE__ */ i(h, {
46
+ }), r != null && n != null && /* @__PURE__ */ i(x, {
47
47
  size: "sm",
48
48
  contrast: "low",
49
49
  color: k(n, d),
@@ -52,11 +52,11 @@ function m({ label: t, value: e, delta: r, deltaDirection: o, deltaGood: d = "up
52
52
  children: [l && /* @__PURE__ */ a(l, {
53
53
  "aria-hidden": !0,
54
54
  className: "size-3"
55
- }), g]
55
+ }), h]
56
56
  })]
57
57
  }),
58
58
  /* @__PURE__ */ a("span", {
59
- className: "text-display-md text-pho-primary min-w-0 truncate font-medium",
59
+ className: "font-heading text-display-md text-pho-primary min-w-0 truncate font-medium",
60
60
  children: e
61
61
  }),
62
62
  s != null && /* @__PURE__ */ a("span", {
@@ -82,4 +82,4 @@ export {
82
82
  m as t
83
83
  };
84
84
 
85
- //# sourceMappingURL=stat-BXBfMQ9Q.js.map
85
+ //# sourceMappingURL=stat-VxA1SvS_.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"stat-BXBfMQ9Q.js","names":["__iconNode","cn","createReactComponent","Badge","jsx","jsxs","__iconNode$1","IconTrendingDown","__iconNode","IconTrendingUp","percent","directionOf","delta","trimmed","first","body","deltaColor","direction","good","Stat","label","value","deltaDirection","deltaGood","note","className","props","text","Arrow","StatGroup","variant"],"sources":["../../../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconTrendingDown.mjs","../../../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconTrendingUp.mjs","../../src/components/stat/stat.tsx"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.49.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M3 7l6 6l4 -4l8 8\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M21 10l0 7l-7 0\", \"key\": \"svg-1\" }]];\nconst IconTrendingDown = createReactComponent(\"outline\", \"trending-down\", \"TrendingDown\", __iconNode);\n\nexport { __iconNode, IconTrendingDown as default };\n","/**\n * @license @tabler/icons-react v3.49.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M3 17l6 -6l4 4l8 -8\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M14 7l7 0l0 7\", \"key\": \"svg-1\" }]];\nconst IconTrendingUp = createReactComponent(\"outline\", \"trending-up\", \"TrendingUp\", __iconNode);\n\nexport { __iconNode, IconTrendingUp as default };\n","import { type ComponentProps, type ReactNode } from \"react\";\nimport { IconTrendingDown, IconTrendingUp } from \"@tabler/icons-react\";\nimport { Badge, type BadgeColor } from \"../badge\";\nimport { cn } from \"../../utils/cn\";\n\n/**\n * Stat — a figure with its name: a label, a value, and, when it\n * matters, how the value moved and against what.\n *\n * Design notes:\n * - The value is the loud element: display size, medium weight, the\n * font's proportional figures (tabular digits make a big `121` look\n * loose). Label and note stay in the UI inks; nothing else competes.\n * - The delta is a low-contrast `Badge` beside the label, with an arrow so\n * the direction never rides on colour alone. Its ink says whether the\n * move is good news: `deltaGood` names the good direction, because a\n * drop in bounce rate is green and a drop in visitors is red.\n * - A tile has no chrome of its own. Alone, it sits in whatever card holds\n * it; in a `Stat.Group` the tiles share one frame and hairlines.\n */\n\nexport type StatDirection = \"up\" | \"down\" | \"flat\";\n\nexport interface StatProps extends Omit<ComponentProps<\"div\">, \"children\"> {\n /** What the figure counts — \"Visitors\", \"Active chats\". */\n label: ReactNode;\n /** The figure, already formatted — \"20.8K\", \"8m 32s\", \"1:1\". */\n value: ReactNode;\n /**\n * How the value moved: a number is a percentage change and renders\n * signed with one decimal (\"−42.0%\"); a string renders as written and\n * its sign sets the direction.\n */\n delta?: number | string;\n /** The delta's direction, when the string can't say. Derived otherwise. */\n deltaDirection?: StatDirection;\n /**\n * Which direction is good news: `up` (visitors, revenue), `down` (bounce\n * rate, latency), `none` when a move is just information. @default \"up\"\n */\n deltaGood?: \"up\" | \"down\" | \"none\";\n /** What the delta is against — \"vs. 36.2K prior\". */\n note?: ReactNode;\n}\n\nconst percent = new Intl.NumberFormat(\"en-US\", {\n minimumFractionDigits: 1,\n maximumFractionDigits: 1,\n signDisplay: \"exceptZero\",\n});\n\n/**\n * A leading sign — ASCII or the true minus — sets a string delta's direction.\n * A signed zero (\"+0%\", \"−0.0%\") is still flat: a caller's formatter may\n * sign every value, and zero has not moved.\n */\nfunction directionOf(delta: number | string): StatDirection {\n if (typeof delta === \"number\") {\n return delta > 0 ? \"up\" : delta < 0 ? \"down\" : \"flat\";\n }\n const trimmed = delta.trim();\n const first = trimmed.charAt(0);\n const signed = first === \"+\" || first === \"-\" || first === \"−\";\n if (!signed) return \"flat\";\n const body = trimmed.slice(1).trim();\n if (Number.parseFloat(body) === 0 && !/[1-9]/.test(body)) return \"flat\";\n return first === \"+\" ? \"up\" : \"down\";\n}\n\nfunction deltaColor(\n direction: StatDirection,\n good: NonNullable<StatProps[\"deltaGood\"]>,\n): BadgeColor {\n if (direction === \"flat\" || good === \"none\") return \"muted\";\n return direction === good ? \"success\" : \"error\";\n}\n\nexport function Stat({\n label,\n value,\n delta,\n deltaDirection,\n deltaGood = \"up\",\n note,\n className,\n ...props\n}: StatProps) {\n const direction =\n delta == null ? null : (deltaDirection ?? directionOf(delta));\n const text =\n typeof delta === \"number\"\n ? // The true minus, so the sign reads at badge size.\n `${percent.format(delta).replace(\"-\", \"−\")}%`\n : delta;\n const Arrow =\n direction === \"up\"\n ? IconTrendingUp\n : direction === \"down\"\n ? IconTrendingDown\n : null;\n return (\n <div\n data-stat=\"\"\n className={cn(\"flex min-w-0 flex-col gap-1 px-5 py-4\", className)}\n {...props}\n >\n <div className=\"flex items-start justify-between gap-3\">\n <span className=\"text-pho-secondary min-w-0 truncate text-base\">\n {label}\n </span>\n {delta != null && direction != null && (\n <Badge\n size=\"sm\"\n contrast=\"low\"\n color={deltaColor(direction, deltaGood)}\n className=\"shrink-0 tabular-nums\"\n data-direction={direction}\n >\n {Arrow && <Arrow aria-hidden className=\"size-3\" />}\n {text}\n </Badge>\n )}\n </div>\n <span className=\"text-display-md text-pho-primary min-w-0 truncate font-medium\">\n {value}\n </span>\n {note != null && (\n <span className=\"text-pho-description truncate text-xs\">{note}</span>\n )}\n </div>\n );\n}\n\nStat.displayName = \"Stat\";\n\nexport interface StatGroupProps extends ComponentProps<\"div\"> {\n /**\n * `card` frames the row as a card of its own; `plain` keeps only the\n * hairlines between tiles, for a row inside a card or under a chart.\n * @default \"card\"\n */\n variant?: \"card\" | \"plain\";\n}\n\n/**\n * A row of tiles that reads as one card: hairlines between tiles, and\n * between rows once the tiles wrap on a narrow width. Each tile takes an\n * equal share of its row, never narrower than 12rem; a tile that wraps\n * alone stretches across its line, so the frame never shows a hole.\n */\nexport function StatGroup({\n variant = \"card\",\n className,\n ...props\n}: StatGroupProps) {\n return (\n <div\n // A row of figures is a group, not a form's fieldset: the role, and\n // the caller's `aria-label`, name it for assistive tech.\n // oxlint-disable-next-line jsx-a11y/prefer-tag-over-role\n role=\"group\"\n data-stat-group=\"\"\n className={cn(\n // The hairlines are the gap: the frame's secondary shows through\n // 1px between tiles, so wrapping rows get a rule too. Flex, not\n // grid: a grid's empty cells on the last row would show through.\n \"bg-pho-secondary [&>*]:bg-pho-primary flex flex-wrap gap-px [&>*]:min-w-0 [&>*]:flex-[1_1_12rem]\",\n variant === \"card\" &&\n \"border-pho-secondary rounded-base overflow-hidden border\",\n className,\n )}\n {...props}\n />\n );\n}\n\nStatGroup.displayName = \"Stat.Group\";\nStat.Group = StatGroup;\n"],"ignoreList":[0,1],"mappings":";;;;;;AASA,IAAMA,IAAa,CAAC,CAAC,QAAQ;AAAA,EAAE,GAAK;AAAA,EAAqB,KAAO;AAAQ,CAAC,GAAG,CAAC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s","__iconNode$1","IconTrendingDown","__iconNode","IconTrendingUp","percent","directionOf","delta","trimmed","first","body","deltaColor","direction","good","Stat","label","value","deltaDirection","deltaGood","note","className","props","text","Arrow","StatGroup","variant"],"sources":["../../../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconTrendingDown.mjs","../../../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconTrendingUp.mjs","../../src/components/stat/stat.tsx"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.49.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M3 7l6 6l4 -4l8 8\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M21 10l0 7l-7 0\", \"key\": \"svg-1\" }]];\nconst IconTrendingDown = createReactComponent(\"outline\", \"trending-down\", \"TrendingDown\", __iconNode);\n\nexport { __iconNode, IconTrendingDown as default };\n","/**\n * @license @tabler/icons-react v3.49.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M3 17l6 -6l4 4l8 -8\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M14 7l7 0l0 7\", \"key\": \"svg-1\" }]];\nconst IconTrendingUp = createReactComponent(\"outline\", \"trending-up\", \"TrendingUp\", __iconNode);\n\nexport { __iconNode, IconTrendingUp as default };\n","import { type ComponentProps, type ReactNode } from \"react\";\nimport { IconTrendingDown, IconTrendingUp } from \"@tabler/icons-react\";\nimport { Badge, type BadgeColor } from \"../badge\";\nimport { cn } from \"../../utils/cn\";\n\n/**\n * Stat — a figure with its name: a label, a value, and, when it\n * matters, how the value moved and against what.\n *\n * Design notes:\n * - The value is the loud element: display size, medium weight, the\n * font's proportional figures (tabular digits make a big `121` look\n * loose). Label and note stay in the UI inks; nothing else competes.\n * - The delta is a low-contrast `Badge` beside the label, with an arrow so\n * the direction never rides on colour alone. Its ink says whether the\n * move is good news: `deltaGood` names the good direction, because a\n * drop in bounce rate is green and a drop in visitors is red.\n * - A tile has no chrome of its own. Alone, it sits in whatever card holds\n * it; in a `Stat.Group` the tiles share one frame and hairlines.\n */\n\nexport type StatDirection = \"up\" | \"down\" | \"flat\";\n\nexport interface StatProps extends Omit<ComponentProps<\"div\">, \"children\"> {\n /** What the figure counts — \"Visitors\", \"Active chats\". */\n label: ReactNode;\n /** The figure, already formatted — \"20.8K\", \"8m 32s\", \"1:1\". */\n value: ReactNode;\n /**\n * How the value moved: a number is a percentage change and renders\n * signed with one decimal (\"−42.0%\"); a string renders as written and\n * its sign sets the direction.\n */\n delta?: number | string;\n /** The delta's direction, when the string can't say. Derived otherwise. */\n deltaDirection?: StatDirection;\n /**\n * Which direction is good news: `up` (visitors, revenue), `down` (bounce\n * rate, latency), `none` when a move is just information. @default \"up\"\n */\n deltaGood?: \"up\" | \"down\" | \"none\";\n /** What the delta is against — \"vs. 36.2K prior\". */\n note?: ReactNode;\n}\n\nconst percent = new Intl.NumberFormat(\"en-US\", {\n minimumFractionDigits: 1,\n maximumFractionDigits: 1,\n signDisplay: \"exceptZero\",\n});\n\n/**\n * A leading sign — ASCII or the true minus — sets a string delta's direction.\n * A signed zero (\"+0%\", \"−0.0%\") is still flat: a caller's formatter may\n * sign every value, and zero has not moved.\n */\nfunction directionOf(delta: number | string): StatDirection {\n if (typeof delta === \"number\") {\n return delta > 0 ? \"up\" : delta < 0 ? \"down\" : \"flat\";\n }\n const trimmed = delta.trim();\n const first = trimmed.charAt(0);\n const signed = first === \"+\" || first === \"-\" || first === \"−\";\n if (!signed) return \"flat\";\n const body = trimmed.slice(1).trim();\n if (Number.parseFloat(body) === 0 && !/[1-9]/.test(body)) return \"flat\";\n return first === \"+\" ? \"up\" : \"down\";\n}\n\nfunction deltaColor(\n direction: StatDirection,\n good: NonNullable<StatProps[\"deltaGood\"]>,\n): BadgeColor {\n if (direction === \"flat\" || good === \"none\") return \"muted\";\n return direction === good ? \"success\" : \"error\";\n}\n\nexport function Stat({\n label,\n value,\n delta,\n deltaDirection,\n deltaGood = \"up\",\n note,\n className,\n ...props\n}: StatProps) {\n const direction =\n delta == null ? null : (deltaDirection ?? directionOf(delta));\n const text =\n typeof delta === \"number\"\n ? // The true minus, so the sign reads at badge size.\n `${percent.format(delta).replace(\"-\", \"−\")}%`\n : delta;\n const Arrow =\n direction === \"up\"\n ? IconTrendingUp\n : direction === \"down\"\n ? IconTrendingDown\n : null;\n return (\n <div\n data-stat=\"\"\n className={cn(\"flex min-w-0 flex-col gap-1 px-5 py-4\", className)}\n {...props}\n >\n <div className=\"flex items-start justify-between gap-3\">\n <span className=\"text-pho-secondary min-w-0 truncate text-base\">\n {label}\n </span>\n {delta != null && direction != null && (\n <Badge\n size=\"sm\"\n contrast=\"low\"\n color={deltaColor(direction, deltaGood)}\n className=\"shrink-0 tabular-nums\"\n data-direction={direction}\n >\n {Arrow && <Arrow aria-hidden className=\"size-3\" />}\n {text}\n </Badge>\n )}\n </div>\n <span className=\"font-heading text-display-md text-pho-primary min-w-0 truncate font-medium\">\n {value}\n </span>\n {note != null && (\n <span className=\"text-pho-description truncate text-xs\">{note}</span>\n )}\n </div>\n );\n}\n\nStat.displayName = \"Stat\";\n\nexport interface StatGroupProps extends ComponentProps<\"div\"> {\n /**\n * `card` frames the row as a card of its own; `plain` keeps only the\n * hairlines between tiles, for a row inside a card or under a chart.\n * @default \"card\"\n */\n variant?: \"card\" | \"plain\";\n}\n\n/**\n * A row of tiles that reads as one card: hairlines between tiles, and\n * between rows once the tiles wrap on a narrow width. Each tile takes an\n * equal share of its row, never narrower than 12rem; a tile that wraps\n * alone stretches across its line, so the frame never shows a hole.\n */\nexport function StatGroup({\n variant = \"card\",\n className,\n ...props\n}: StatGroupProps) {\n return (\n <div\n // A row of figures is a group, not a form's fieldset: the role, and\n // the caller's `aria-label`, name it for assistive tech.\n // oxlint-disable-next-line jsx-a11y/prefer-tag-over-role\n role=\"group\"\n data-stat-group=\"\"\n className={cn(\n // The hairlines are the gap: the frame's secondary shows through\n // 1px between tiles, so wrapping rows get a rule too. Flex, not\n // grid: a grid's empty cells on the last row would show through.\n \"bg-pho-secondary [&>*]:bg-pho-primary flex flex-wrap gap-px [&>*]:min-w-0 [&>*]:flex-[1_1_12rem]\",\n variant === \"card\" &&\n \"border-pho-secondary rounded-base overflow-hidden border\",\n className,\n )}\n {...props}\n />\n );\n}\n\nStatGroup.displayName = \"Stat.Group\";\nStat.Group = StatGroup;\n"],"ignoreList":[0,1],"mappings":";;;;;;AASA,IAAMA,IAAa,CAAC,CAAC,QAAQ;AAAA,EAAE,GAAK;AAAA,EAAqB,KAAO;AAAQ,CAAC,GAAG,CAAC,QAAQ;AAAA,EAAE,GAAK;AAAA,EAAmB,KAAO;AAAQ,CAAC,CAAC,GAC1HO,IAAmBL,EAAqB,WAAW,iBAAiB,gBAAgBF,CAAU,GCD9FQ,IAAa,CAAC,CAAC,QAAQ;AAAA,EAAE,GAAK;AAAA,EAAuB,KAAO;AAAQ,CAAC,GAAG,CAAC,QAAQ;AAAA,EAAE,GAAK;AAAA,EAAiB,KAAO;AAAQ,CAAC,CAAC,GAC1HC,IAAiBP,EAAqB,WAAW,eAAe,cAAcM,CAAU,GCmCxFE,IAAU,IAAI,KAAK,aAAa,SAAS;AAAA,EAC7C,uBAAuB;AAAA,EACvB,uBAAuB;AAAA,EACvB,aAAa;AACf,CAAC;AAOD,SAASC,EAAYC,GAAuC;AAC1D,MAAI,OAAOA,KAAU,SACnB,QAAOA,IAAQ,IAAI,OAAOA,IAAQ,IAAI,SAAS;AAEjD,QAAMC,IAAUD,EAAM,KAAK,GACrBE,IAAQD,EAAQ,OAAO,CAAC;AAE9B,MAAI,EADWC,MAAU,OAAOA,MAAU,OAAOA,MA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EAAC,QAAD;AAAA,QAAM,WAAU;AAAA,QACb,UAAAiB;AAAA,MACG,CAAA;AAAA,MACLG,KAAQ,QACP,gBAAApB,EAAC,QAAD;AAAA,QAAM,WAAU;AAAA,QAAyC,UAAAoB;AAAA,MAAW,CAAA;AAAA,IAEnE;AAAA,E;AAET;AAEAL,EAAK,cAAc;AAiBnB,SAAgBU,EAAU,EACxB,SAAAC,IAAU,QACV,WAAAL,GACA,GAAGC,EAAA,GACc;AACjB,SACE,gBAAAtB,EAAC,OAAD;AAAA,IAIE,MAAK;AAAA,IACL,mBAAgB;AAAA,IAChB,WAAWH,EAIT,oGACA6B,MAAY,UACV,4DACFL,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAEAG,EAAU,cAAc;AACxBV,EAAK,QAAQU"}
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { n as t, t as a } from "../chunks/card-zyRAihYE.js";
2
+ import { n as t, t as a } from "../chunks/card-Bg2V2B0x.js";
3
3
  export {
4
4
  a as CARD_SURFACE,
5
5
  t as Card
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { n as a, t as o } from "../chunks/stat-BXBfMQ9Q.js";
2
+ import { n as a, t as o } from "../chunks/stat-VxA1SvS_.js";
3
3
  export {
4
4
  o as Stat,
5
5
  a as StatGroup
package/dist/index.js CHANGED
@@ -18,15 +18,15 @@ import { a as ps, c as Rs, d as ls, i as Cs, l as us, n as Bs, o as fs, r as Ns,
18
18
  import { t as Os } from "./chunks/input-DWnb33UF.js";
19
19
  import { i as gs, n as Vs, r as hs, t as Gs } from "./chunks/filter-bar-qqCZf1x4.js";
20
20
  import { i as Ms } from "./chunks/data-table-CAz_8HQw.js";
21
- import { n as Fs, t as vs } from "./chunks/stat-BXBfMQ9Q.js";
21
+ import { n as Fs, t as vs } from "./chunks/stat-VxA1SvS_.js";
22
22
  import { t as ws } from "./chunks/calendar-DDWITGo4.js";
23
23
  import { t as ys } from "./chunks/close-button-Ck4rY1Fp.js";
24
24
  import { t as Ks } from "./chunks/input-group-C3upo2OU.js";
25
- import { n as zs, t as Xs } from "./chunks/card-zyRAihYE.js";
25
+ import { n as zs, t as Xs } from "./chunks/card-Bg2V2B0x.js";
26
26
  import { n as Zs, t as js } from "./chunks/dialog-DORIrfyJ.js";
27
27
  import { i as Qs, n as qs, r as $s, t as at } from "./chunks/status-view-I_Y6eEyX.js";
28
28
  import { t as tt } from "./chunks/description-list-Duhhralt.js";
29
- import { a as ot, c as et, d as it, f as St, i as Et, l as _t, m as nt, n as mt, o as At, p as It, r as Tt, s as pt, t as Rt, u as lt } from "./chunks/basic-page-Cp7CccNN.js";
29
+ import { a as ot, c as et, d as it, f as St, i as Et, l as _t, m as nt, n as mt, o as At, p as It, r as Tt, s as pt, t as Rt, u as lt } from "./chunks/basic-page-DTomHxEo.js";
30
30
  import { a as ut, i as Bt, n as ft, o as Nt, r as Lt, s as Pt, t as ct } from "./chunks/chart-Btnw7KXV.js";
31
31
  import "./components/chart.js";
32
32
  import { t as dt } from "./chunks/bar-chart-ZNuOoH7c.js";
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { i as s } from "../chunks/data-table-CAz_8HQw.js";
3
- import { a as E, c as a, d as C, f as S, i as I, l as e, m as o, n as B, o as P, p as N, r, s as t, t as D, u as R } from "../chunks/basic-page-Cp7CccNN.js";
3
+ import { a as E, c as a, d as C, f as S, i as I, l as e, m as o, n as B, o as P, p as N, r, s as t, t as D, u as R } from "../chunks/basic-page-DTomHxEo.js";
4
4
  export {
5
5
  D as AUTO_SAVE_DELAY_MS,
6
6
  B as BASIC_PAGE_CALLOUT,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photon-ai/pho-ui",
3
- "version": "4.19.0",
3
+ "version": "4.20.0",
4
4
  "description": "Photon Design System — Photon's React component library, built on Base UI",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -1,8 +1,11 @@
1
1
  /**
2
2
  * Photon brand fonts. PolySans (commercial) is served from the shared asset
3
3
  * CDN (assets.photon.codes — public R2, versioned path, immutable caching,
4
- * CORS enabled). Azeret Mono is an open Google Font and comes from the Google
5
- * Fonts CDN, which serves subsetted woff2 per script with `unicode-range`.
4
+ * CORS enabled). Inter and Azeret Mono are open Google Fonts, declared below
5
+ * against the Google Fonts CDN (fonts.gstatic.com), one face per script
6
+ * subset with its `unicode-range`. They are spelled out rather than pulled in
7
+ * with an `@import` of Google's stylesheet: once this file is bundled into an
8
+ * app's CSS that `@import` follows other rules, and the bundler drops it.
6
9
  * Import this and the fonts just work; no files to copy.
7
10
  *
8
11
  * If your app must self-host (air-gapped, strict CSP without `font-src`
@@ -10,15 +13,14 @@
10
13
  * this import and declare the same @font-face rules against your own /fonts/
11
14
  * paths — the theme only references the family names.
12
15
  *
13
- * Roles (per photon.codes): PolySans is the voice — body at 400, UI/headings/
14
- * hero slogans at 550 (`font-medium`); the `font-display` utility enables
15
- * `ss02`. Azeret Mono for code and small
16
- * labels — always normal case: the system bans all-caps small text for
17
- * eyebrows, section titles, and descriptions. Instrument Serif (often
16
+ * Roles: Inter is the text — body at 400, UI controls, navigation, and links
17
+ * at 600 (`font-medium`). PolySans is the headings — page, section, card,
18
+ * and step titles at Median 600 (`font-heading`); the `font-display`
19
+ * utility adds `ss02` for dialog and hero titles. Azeret Mono for code and
20
+ * small labels — always normal case: the system bans all-caps small text
21
+ * for eyebrows, section titles, and descriptions. Instrument Serif (often
18
22
  * italic) is the editorial accent.
19
23
  */
20
- @import "https://fonts.googleapis.com/css2?family=Azeret+Mono:wght@100..900&display=swap";
21
-
22
24
  @font-face {
23
25
  font-family: "PolySans";
24
26
  src: url("https://assets.photon.codes/pho-ui/v1/PolySansVF.woff2")
@@ -45,3 +47,59 @@
45
47
  font-style: italic;
46
48
  font-display: swap;
47
49
  }
50
+
51
+ /* Inter, latin */
52
+ @font-face {
53
+ font-family: "Inter";
54
+ src: url("https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcviYwY.woff2")
55
+ format("woff2");
56
+ font-weight: 100 900;
57
+ font-style: normal;
58
+ font-display: swap;
59
+ unicode-range:
60
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
61
+ U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
62
+ U+2215, U+FEFF, U+FFFD;
63
+ }
64
+
65
+ /* Inter, latin-ext */
66
+ @font-face {
67
+ font-family: "Inter";
68
+ src: url("https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcvsYwYL8g.woff2")
69
+ format("woff2");
70
+ font-weight: 100 900;
71
+ font-style: normal;
72
+ font-display: swap;
73
+ unicode-range:
74
+ U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
75
+ U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
76
+ U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
77
+ }
78
+
79
+ /* Azeret Mono, latin */
80
+ @font-face {
81
+ font-family: "Azeret Mono";
82
+ src: url("https://fonts.gstatic.com/s/azeretmono/v21/3XFuErsiyJsY9O_Gepph-HHhZfk.woff2")
83
+ format("woff2");
84
+ font-weight: 100 900;
85
+ font-style: normal;
86
+ font-display: swap;
87
+ unicode-range:
88
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
89
+ U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
90
+ U+2215, U+FEFF, U+FFFD;
91
+ }
92
+
93
+ /* Azeret Mono, latin-ext */
94
+ @font-face {
95
+ font-family: "Azeret Mono";
96
+ src: url("https://fonts.gstatic.com/s/azeretmono/v21/3XFuErsiyJsY9O_Gepph-HHvZfnk3Q.woff2")
97
+ format("woff2");
98
+ font-weight: 100 900;
99
+ font-style: normal;
100
+ font-display: swap;
101
+ unicode-range:
102
+ U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
103
+ U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
104
+ U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
105
+ }
@@ -25,12 +25,18 @@
25
25
 
26
26
  @theme static {
27
27
  /* ============================== Fonts ============================== */
28
+ /* Two voices: Inter carries the text (body, UI controls, navigation,
29
+ links: the default `font-sans`), PolySans carries the headings (page,
30
+ section, card, and step titles: `font-heading`). */
28
31
  --font-sans:
32
+ "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial,
33
+ sans-serif;
34
+ --font-heading:
29
35
  "PolySans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
30
36
  Arial, sans-serif;
31
- --font-display: var(--font-sans);
37
+ --font-display: var(--font-heading);
32
38
  /* PolySans stylistic set 2 — the alternate display glyphs photon.codes
33
- enables on headings. `font-display` = family + ss02; pair it with the
39
+ enables on headings. `font-display` = PolySans + ss02; pair it with the
34
40
  text-display-* sizes on titles. */
35
41
  --font-display--font-feature-settings: "ss02";
36
42
  /* Serif accent — the site's italicized editorial voice. */
@@ -182,12 +188,13 @@
182
188
  /* ========================== Font weights ========================== */
183
189
  /* CLOSED set — three stops only; nothing else generates a utility:
184
190
  font-light (300) display/marketing lines · font-normal (400) body ·
185
- font-medium (550) UI controls, headings, and hero slogans (unified
186
- former 500 + 600). font-semibold is gone — use font-medium. */
191
+ font-medium (600) UI controls, headings, and hero slogans: Inter Semi
192
+ Bold in text, PolySans Median in headings. font-semibold is gone — use
193
+ font-medium. */
187
194
  --font-weight-*: initial;
188
195
  --font-weight-light: 300;
189
196
  --font-weight-normal: 400;
190
- --font-weight-medium: 550;
197
+ --font-weight-medium: 600;
191
198
 
192
199
  /* ============================= Radius ============================= */
193
200
  /* CLOSED set — three stops + Tailwind's rounded-full for pills: