@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.
- package/README.md +1 -1
- package/dist/chunks/{basic-page-Cp7CccNN.js → basic-page-DTomHxEo.js} +7 -7
- package/dist/chunks/basic-page-DTomHxEo.js.map +1 -0
- package/dist/chunks/{card-zyRAihYE.js → card-Bg2V2B0x.js} +17 -17
- package/dist/chunks/card-Bg2V2B0x.js.map +1 -0
- package/dist/chunks/{stat-BXBfMQ9Q.js → stat-VxA1SvS_.js} +8 -8
- package/dist/chunks/{stat-BXBfMQ9Q.js.map → stat-VxA1SvS_.js.map} +1 -1
- package/dist/components/card.js +1 -1
- package/dist/components/stat.js +1 -1
- package/dist/index.js +3 -3
- package/dist/sections/basic-page.js +1 -1
- package/package.json +1 -1
- package/src/styles/fonts.css +67 -9
- package/src/styles/theme.css +12 -5
- package/dist/chunks/basic-page-Cp7CccNN.js.map +0 -1
- package/dist/chunks/card-zyRAihYE.js.map +0 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ In your app's CSS:
|
|
|
18
18
|
```css
|
|
19
19
|
@import "tailwindcss";
|
|
20
20
|
@import "@photon-ai/pho-ui/styles";
|
|
21
|
-
@import "@photon-ai/pho-ui/styles/fonts"; /* optional: PolySans + Azeret Mono */
|
|
21
|
+
@import "@photon-ai/pho-ui/styles/fonts"; /* optional: Inter + PolySans + Azeret Mono */
|
|
22
22
|
@source "../node_modules/@photon-ai/pho-ui/dist";
|
|
23
23
|
```
|
|
24
24
|
|
|
@@ -488,7 +488,7 @@ function Pt({ id: e, morphId: t, enter: n, trailing: r, className: l, children:
|
|
|
488
488
|
}), /* @__PURE__ */ b("h1", {
|
|
489
489
|
id: p,
|
|
490
490
|
"data-basic-page-title": "",
|
|
491
|
-
className: d("text-display-base text-pho-primary max-w-full min-w-0 scroll-mt-12 px-5 font-medium", !y && "min-h-[1lh]", h ? "whitespace-nowrap" : "truncate", y && "sr-only", l),
|
|
491
|
+
className: d("font-heading text-display-base text-pho-primary max-w-full min-w-0 scroll-mt-12 px-5 font-medium", !y && "min-h-[1lh]", h ? "whitespace-nowrap" : "truncate", y && "sr-only", l),
|
|
492
492
|
...o,
|
|
493
493
|
ref: (D) => {
|
|
494
494
|
A.current = D;
|
|
@@ -665,7 +665,7 @@ function $t({ id: e, className: t, children: n, ...r }) {
|
|
|
665
665
|
const l = Le(e, n);
|
|
666
666
|
return /* @__PURE__ */ a("h2", {
|
|
667
667
|
id: l,
|
|
668
|
-
className: d("text-display-xs text-pho-primary max-w-full min-w-0 scroll-mt-12 truncate px-5 font-medium", "mb-3 [[data-basic-page-callout]_&]:mb-0 [[data-basic-page-header]>&]:mb-0 [[data-basic-page-stack]>*>&]:mb-0 [[data-basic-page-stack]>*>[data-basic-page-form-body]>&]:mb-0", t),
|
|
668
|
+
className: d("font-heading text-display-xs text-pho-primary max-w-full min-w-0 scroll-mt-12 truncate px-5 font-medium", "mb-3 [[data-basic-page-callout]_&]:mb-0 [[data-basic-page-header]>&]:mb-0 [[data-basic-page-stack]>*>&]:mb-0 [[data-basic-page-stack]>*>[data-basic-page-form-body]>&]:mb-0", t),
|
|
669
669
|
...r,
|
|
670
670
|
children: n
|
|
671
671
|
});
|
|
@@ -752,7 +752,7 @@ function Qt({ id: e, className: t, children: n, ...r }) {
|
|
|
752
752
|
const l = Le(e, n);
|
|
753
753
|
return /* @__PURE__ */ a("h2", {
|
|
754
754
|
id: l,
|
|
755
|
-
className: d("text-display-xs text-pho-primary max-w-full min-w-0 scroll-mt-12 truncate font-medium", t),
|
|
755
|
+
className: d("font-heading text-display-xs text-pho-primary max-w-full min-w-0 scroll-mt-12 truncate font-medium", t),
|
|
756
756
|
...r,
|
|
757
757
|
children: n
|
|
758
758
|
});
|
|
@@ -1140,7 +1140,7 @@ function cn({ icon: e, aside: t, title: n, description: r, done: l, working: i,
|
|
|
1140
1140
|
}),
|
|
1141
1141
|
/* @__PURE__ */ b("div", {
|
|
1142
1142
|
"data-basic-page-step-title": "",
|
|
1143
|
-
className: d("text-display-xs col-start-2 row-start-1 min-w-0 font-medium transition-colors duration-200 ease-out", v ? "text-pho-description" : "text-pho-primary"),
|
|
1143
|
+
className: d("font-heading text-display-xs col-start-2 row-start-1 min-w-0 font-medium transition-colors duration-200 ease-out", v ? "text-pho-description" : "text-pho-primary"),
|
|
1144
1144
|
children: [y ? /* @__PURE__ */ b("span", {
|
|
1145
1145
|
className: "sr-only",
|
|
1146
1146
|
children: [y, " "]
|
|
@@ -1219,7 +1219,7 @@ function dn({ label: e, description: t, htmlFor: n, stacked: r = !1, className:
|
|
|
1219
1219
|
});
|
|
1220
1220
|
}
|
|
1221
1221
|
function un({ className: e, mono: t, copy: n, children: r, ...l }) {
|
|
1222
|
-
const i = k(ya), o = k(Ta), p = t ? "font-mono text-xs" : i ? "text-display-xs font-normal" : "text-base", s = typeof n == "string" ? n : n && typeof r == "string" ? r : null;
|
|
1222
|
+
const i = k(ya), o = k(Ta), p = t ? "font-mono text-xs" : i ? "font-heading text-display-xs font-normal" : "text-base", s = typeof n == "string" ? n : n && typeof r == "string" ? r : null;
|
|
1223
1223
|
return s ? /* @__PURE__ */ a("p", {
|
|
1224
1224
|
className: d("flex max-w-full min-w-0 items-center", e),
|
|
1225
1225
|
...l,
|
|
@@ -1228,7 +1228,7 @@ function un({ className: e, mono: t, copy: n, children: r, ...l }) {
|
|
|
1228
1228
|
label: o ?? "value",
|
|
1229
1229
|
size: "xs",
|
|
1230
1230
|
children: /* @__PURE__ */ a("span", {
|
|
1231
|
-
className: d("text-pho-description group-hover/copy:text-pho-description-hover transition-colors duration-100 ease-linear", !t && (i ? "font-
|
|
1231
|
+
className: d("text-pho-description group-hover/copy:text-pho-description-hover transition-colors duration-100 ease-linear", !t && (i ? "font-heading" : "font-sans"), p),
|
|
1232
1232
|
children: r
|
|
1233
1233
|
})
|
|
1234
1234
|
})
|
|
@@ -2232,4 +2232,4 @@ export {
|
|
|
2232
2232
|
Et as u
|
|
2233
2233
|
};
|
|
2234
2234
|
|
|
2235
|
-
//# sourceMappingURL=basic-page-
|
|
2235
|
+
//# sourceMappingURL=basic-page-DTomHxEo.js.map
|