@neynar/ui 0.3.1 → 0.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.
@@ -1 +1 @@
1
- {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../src/components/ui/typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,QAAA,MAAM,kBAAkB;;;;;;8EAmFtB,CAAC;AAEH,KAAK,iBAAiB,GAClB,WAAW,GACX,QAAQ,GACR,MAAM,GACN,UAAU,GACV,eAAe,GACf,SAAS,GACT,aAAa,GACb,UAAU,GACV,cAAc,GACd,WAAW,GACX,cAAc,GACd,WAAW,GACX,MAAM,CAAC;AAEX,KAAK,eAAe,GAChB,SAAS,GACT,OAAO,GACP,OAAO,GACP,QAAQ,GACR,aAAa,GACb,SAAS,GACT,SAAS,CAAC;AAoCd;;GAEG;AACH,KAAK,mBAAmB,GAAG;IACzB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,8DAA8D;IAC9D,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAAC,OAAO,CAAC,CAAC;IACzD,gDAAgD;IAChD,SAAS,CAAC,EAAE,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAAC,WAAW,CAAC,CAAC;IACjE,+CAA+C;IAC/C,MAAM,CAAC,EAAE,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAAC,QAAQ,CAAC,CAAC;IAC3D,8DAA8D;IAC9D,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACvB,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oFAAoF;IACpF,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;AAgCD,qCAAqC;AACrC,KAAK,eAAe,GAAG,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,2CAS3D;AAED,OAAO,EACL,UAAU,EACV,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,CAAC,EACD,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,MAAM,EACN,IAAI,EACJ,CAAC,EACD,UAAU,GACX,CAAC;AAEF,YAAY,EACV,eAAe,EACf,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,MAAM,EACN,SAAS,EACT,SAAS,EACT,UAAU,EACV,WAAW,EACX,SAAS,EACT,MAAM,EACN,eAAe,GAChB,CAAC;AAEF;;GAEG;AACH,YAAY,EAAE,YAAY,IAAI,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../src/components/ui/typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;;GAQG;AACH,KAAK,mBAAmB,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,IAAI;IACtD,iDAAiD;IACjD,EAAE,CAAC,EAAE,CAAC,CAAC;IACP,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,KAAK,eAAe,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,IAAI,mBAAmB,CAAC,CAAC,CAAC,GACxE,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAA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AAe,CAAC,CAAC,CAAC,2CAQpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,OAAO,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,MAAM,EAAE,EAC5D,SAAS,EACT,EAAE,EACF,GAAG,KAAK,EACT,EAAE,eAAe,CAAC,CAAC,CAAC,2CAQpB;AAGD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,MAAM,EAAE,EAC7D,SAAS,EACT,EAAE,EACF,GAAG,KAAK,EACT,EAAE,eAAe,CAAC,CAAC,CAAC,2CAQpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,MAAM,EAAE,EACzD,SAAS,EACT,EAAE,EACF,GAAG,KAAK,EACT,EAAE,eAAe,CAAC,CAAC,CAAC,2CAQpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,YAAY,EAAE,EACrE,SAAS,EACT,EAAE,EACF,GAAG,KAAK,EACT,EAAE,eAAe,CAAC,CAAC,CAAC,2CAQpB"}
package/dist/index.js CHANGED
@@ -8971,11 +8971,11 @@ function SelectScrollDownButton({
8971
8971
  }
8972
8972
  var U = 1, Y$1 = 0.9, H = 0.8, J = 0.17, p = 0.1, u = 0.999, $ = 0.9999;
8973
8973
  var k$2 = 0.99, m = /[\\\/_+.#"@\[\(\{&]/, B$1 = /[\\\/_+.#"@\[\(\{&]/g, K$1 = /[\s-]/, X = /[\s-]/g;
8974
- function G(_, C, h, P2, A2, f, O) {
8975
- if (f === C.length) return A2 === _.length ? U : k$2;
8976
- var T2 = `${A2},${f}`;
8974
+ function G(_, C, h, P2, A, f, O) {
8975
+ if (f === C.length) return A === _.length ? U : k$2;
8976
+ var T2 = `${A},${f}`;
8977
8977
  if (O[T2] !== void 0) return O[T2];
8978
- for (var L2 = P2.charAt(f), c2 = h.indexOf(L2, A2), S = 0, E, N2, R, M; c2 >= 0; ) E = G(_, C, h, P2, c2 + 1, f + 1, O), E > S && (c2 === A2 ? E *= U : m.test(_.charAt(c2 - 1)) ? (E *= H, R = _.slice(A2, c2 - 1).match(B$1), R && A2 > 0 && (E *= Math.pow(u, R.length))) : K$1.test(_.charAt(c2 - 1)) ? (E *= Y$1, M = _.slice(A2, c2 - 1).match(X), M && A2 > 0 && (E *= Math.pow(u, M.length))) : (E *= J, A2 > 0 && (E *= Math.pow(u, c2 - A2))), _.charAt(c2) !== C.charAt(f) && (E *= $)), (E < p && h.charAt(c2 - 1) === P2.charAt(f + 1) || P2.charAt(f + 1) === P2.charAt(f) && h.charAt(c2 - 1) !== P2.charAt(f)) && (N2 = G(_, C, h, P2, c2 + 1, f + 2, O), N2 * p > E && (E = N2 * p)), E > S && (S = E), c2 = h.indexOf(L2, c2 + 1);
8978
+ for (var L2 = P2.charAt(f), c2 = h.indexOf(L2, A), S = 0, E, N2, R, M; c2 >= 0; ) E = G(_, C, h, P2, c2 + 1, f + 1, O), E > S && (c2 === A ? E *= U : m.test(_.charAt(c2 - 1)) ? (E *= H, R = _.slice(A, c2 - 1).match(B$1), R && A > 0 && (E *= Math.pow(u, R.length))) : K$1.test(_.charAt(c2 - 1)) ? (E *= Y$1, M = _.slice(A, c2 - 1).match(X), M && A > 0 && (E *= Math.pow(u, M.length))) : (E *= J, A > 0 && (E *= Math.pow(u, c2 - A))), _.charAt(c2) !== C.charAt(f) && (E *= $)), (E < p && h.charAt(c2 - 1) === P2.charAt(f + 1) || P2.charAt(f + 1) === P2.charAt(f) && h.charAt(c2 - 1) !== P2.charAt(f)) && (N2 = G(_, C, h, P2, c2 + 1, f + 2, O), N2 * p > E && (E = N2 * p)), E > S && (S = E), c2 = h.indexOf(L2, c2 + 1);
8979
8979
  return O[T2] = S, S;
8980
8980
  }
8981
8981
  function D(_) {
@@ -9647,7 +9647,7 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
9647
9647
  let n = L(() => {
9648
9648
  var e, a2;
9649
9649
  return { search: "", value: (a2 = (e = r2.value) != null ? e : r2.defaultValue) != null ? a2 : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
9650
- }), u2 = L(() => /* @__PURE__ */ new Set()), c2 = L(() => /* @__PURE__ */ new Map()), d = L(() => /* @__PURE__ */ new Map()), f = L(() => /* @__PURE__ */ new Set()), p2 = pe(r2), { label: b, children: m2, value: R, onValueChange: x, filter: C, shouldFilter: S, loop: A2, disablePointerSelection: ge = false, vimBindings: j = true, ...O } = r2, $2 = useId$2(), q = useId$2(), _ = useId$2(), I = React.useRef(null), v = ke();
9650
+ }), u2 = L(() => /* @__PURE__ */ new Set()), c2 = L(() => /* @__PURE__ */ new Map()), d = L(() => /* @__PURE__ */ new Map()), f = L(() => /* @__PURE__ */ new Set()), p2 = pe(r2), { label: b, children: m2, value: R, onValueChange: x, filter: C, shouldFilter: S, loop: A, disablePointerSelection: ge = false, vimBindings: j = true, ...O } = r2, $2 = useId$2(), q = useId$2(), _ = useId$2(), I = React.useRef(null), v = ke();
9651
9651
  k$1(() => {
9652
9652
  if (R !== void 0) {
9653
9653
  let e = R.trim();
@@ -9824,7 +9824,7 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
9824
9824
  k$1(() => {
9825
9825
  if (!p2) return d.item(n, c2 == null ? void 0 : c2.id);
9826
9826
  }, [p2]);
9827
- let b = ve(n, u2, [r2.value, r2.children, u2], r2.keywords), m2 = ee(), R = P$1((v) => v.value && v.value === b.current), x = P$1((v) => p2 || d.filter() === false ? true : v.search ? v.filtered.items.get(n) > 0 : true);
9827
+ let b = ve(n, u2, [r2.value, r2.children, u2], r2.keywords), m2 = ee(), R = P((v) => v.value && v.value === b.current), x = P((v) => p2 || d.filter() === false ? true : v.search ? v.filtered.items.get(n) > 0 : true);
9828
9828
  React.useEffect(() => {
9829
9829
  let v = u2.current;
9830
9830
  if (!(!v || r2.disabled)) return v.addEventListener(Z, C), () => v.removeEventListener(Z, C);
@@ -9837,25 +9837,25 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
9837
9837
  m2.setState("value", b.current, true);
9838
9838
  }
9839
9839
  if (!x) return null;
9840
- let { disabled: A2, value: ge, onSelect: j, forceMount: O, keywords: $2, ...q } = r2;
9841
- return React.createElement(Primitive$1.div, { ref: composeRefs$2(u2, o), ...q, id: n, "cmdk-item": "", role: "option", "aria-disabled": !!A2, "aria-selected": !!R, "data-disabled": !!A2, "data-selected": !!R, onPointerMove: A2 || d.getDisablePointerSelection() ? void 0 : S, onClick: A2 ? void 0 : C }, r2.children);
9840
+ let { disabled: A, value: ge, onSelect: j, forceMount: O, keywords: $2, ...q } = r2;
9841
+ return React.createElement(Primitive$1.div, { ref: composeRefs$2(u2, o), ...q, id: n, "cmdk-item": "", role: "option", "aria-disabled": !!A, "aria-selected": !!R, "data-disabled": !!A, "data-selected": !!R, onPointerMove: A || d.getDisablePointerSelection() ? void 0 : S, onClick: A ? void 0 : C }, r2.children);
9842
9842
  }), Ee = React.forwardRef((r2, o) => {
9843
- let { heading: n, children: u2, forceMount: c2, ...d } = r2, f = useId$2(), p2 = React.useRef(null), b = React.useRef(null), m2 = useId$2(), R = K(), x = P$1((S) => c2 || R.filter() === false ? true : S.search ? S.filtered.groups.has(f) : true);
9843
+ let { heading: n, children: u2, forceMount: c2, ...d } = r2, f = useId$2(), p2 = React.useRef(null), b = React.useRef(null), m2 = useId$2(), R = K(), x = P((S) => c2 || R.filter() === false ? true : S.search ? S.filtered.groups.has(f) : true);
9844
9844
  k$1(() => R.group(f), []), ve(f, p2, [r2.value, r2.heading, b]);
9845
9845
  let C = React.useMemo(() => ({ id: f, forceMount: c2 }), [c2]);
9846
9846
  return React.createElement(Primitive$1.div, { ref: composeRefs$2(p2, o), ...d, "cmdk-group": "", role: "presentation", hidden: x ? void 0 : true }, n && React.createElement("div", { ref: b, "cmdk-group-heading": "", "aria-hidden": true, id: m2 }, n), B(r2, (S) => React.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n ? m2 : void 0 }, React.createElement(fe.Provider, { value: C }, S))));
9847
9847
  }), ye = React.forwardRef((r2, o) => {
9848
- let { alwaysRender: n, ...u2 } = r2, c2 = React.useRef(null), d = P$1((f) => !f.search);
9848
+ let { alwaysRender: n, ...u2 } = r2, c2 = React.useRef(null), d = P((f) => !f.search);
9849
9849
  return !n && !d ? null : React.createElement(Primitive$1.div, { ref: composeRefs$2(c2, o), ...u2, "cmdk-separator": "", role: "separator" });
9850
9850
  }), Se = React.forwardRef((r2, o) => {
9851
- let { onValueChange: n, ...u2 } = r2, c2 = r2.value != null, d = ee(), f = P$1((m2) => m2.search), p2 = P$1((m2) => m2.selectedItemId), b = K();
9851
+ let { onValueChange: n, ...u2 } = r2, c2 = r2.value != null, d = ee(), f = P((m2) => m2.search), p2 = P((m2) => m2.selectedItemId), b = K();
9852
9852
  return React.useEffect(() => {
9853
9853
  r2.value != null && d.setState("search", r2.value);
9854
9854
  }, [r2.value]), React.createElement(Primitive$1.input, { ref: o, ...u2, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: false, "aria-autocomplete": "list", role: "combobox", "aria-expanded": true, "aria-controls": b.listId, "aria-labelledby": b.labelId, "aria-activedescendant": p2, id: b.inputId, type: "text", value: c2 ? r2.value : f, onChange: (m2) => {
9855
9855
  c2 || d.setState("search", m2.target.value), n == null || n(m2.target.value);
9856
9856
  } });
9857
9857
  }), Ce = React.forwardRef((r2, o) => {
9858
- let { children: n, label: u2 = "Suggestions", ...c2 } = r2, d = React.useRef(null), f = React.useRef(null), p2 = P$1((m2) => m2.selectedItemId), b = K();
9858
+ let { children: n, label: u2 = "Suggestions", ...c2 } = r2, d = React.useRef(null), f = React.useRef(null), p2 = P((m2) => m2.selectedItemId), b = K();
9859
9859
  return React.useEffect(() => {
9860
9860
  if (f.current && d.current) {
9861
9861
  let m2 = f.current, R = d.current, x, C = new ResizeObserver(() => {
@@ -9872,7 +9872,7 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
9872
9872
  }), xe = React.forwardRef((r2, o) => {
9873
9873
  let { open: n, onOpenChange: u2, overlayClassName: c2, contentClassName: d, container: f, ...p2 } = r2;
9874
9874
  return React.createElement(Root$e, { open: n, onOpenChange: u2 }, React.createElement(Portal$9, { container: f }, React.createElement(Overlay$4, { "cmdk-overlay": "", className: c2 }), React.createElement(Content$7, { "aria-label": r2.label, "cmdk-dialog": "", className: d }, React.createElement(me, { ref: o, ...p2 }))));
9875
- }), Ie = React.forwardRef((r2, o) => P$1((u2) => u2.filtered.count === 0) ? React.createElement(Primitive$1.div, { ref: o, ...r2, "cmdk-empty": "", role: "presentation" }) : null), Pe = React.forwardRef((r2, o) => {
9875
+ }), Ie = React.forwardRef((r2, o) => P((u2) => u2.filtered.count === 0) ? React.createElement(Primitive$1.div, { ref: o, ...r2, "cmdk-empty": "", role: "presentation" }) : null), Pe = React.forwardRef((r2, o) => {
9876
9876
  let { progress: n, children: u2, label: c2 = "Loading...", ...d } = r2;
9877
9877
  return React.createElement(Primitive$1.div, { ref: o, ...d, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": c2 }, B(r2, (f) => React.createElement("div", { "aria-hidden": true }, f)));
9878
9878
  }), _e = Object.assign(me, { List: Ce, Item: he, Input: Se, Group: Ee, Separator: ye, Dialog: xe, Empty: Ie, Loading: Pe });
@@ -9901,7 +9901,7 @@ function L(r2) {
9901
9901
  let o = React.useRef();
9902
9902
  return o.current === void 0 && (o.current = r2()), o;
9903
9903
  }
9904
- function P$1(r2) {
9904
+ function P(r2) {
9905
9905
  let o = ee(), n = () => r2(o.snapshot());
9906
9906
  return React.useSyncExternalStore(o.subscribe, n, n);
9907
9907
  }
@@ -29467,188 +29467,142 @@ function DrawerDescription({
29467
29467
  }
29468
29468
  );
29469
29469
  }
29470
- const typographyVariants = cva("", {
29471
- variants: {
29472
- variant: {
29473
- microcopy: "text-xs",
29474
- detail: "text-sm",
29475
- body: "text-base leading-snug",
29476
- blogBody: "text-lg leading-loose",
29477
- paragraphLead: "text-lg",
29478
- eyebrow: "text-xl",
29479
- subHeadline: "text-2xl",
29480
- headline: "text-3xl",
29481
- sectionTitle: "text-4xl leading-relaxed",
29482
- pageTitle: "text-5xl leading-relaxed",
29483
- displayTitle: "text-6xl leading-snug",
29484
- heroTitle: "text-7xl leading-snug",
29485
- code: "text-base font-mono"
29486
- },
29487
- /**
29488
- * Color variants for different semantic meanings and visual hierarchy
29489
- *
29490
- * @variant default - Default text color that adapts to light/dark theme (text-foreground)
29491
- * @variant muted - Subdued text color for secondary information and descriptions (text-muted-foreground)
29492
- * @variant faint - Very subtle text color for minimal visual prominence (text-neynar-faint-foreground)
29493
- * @variant accent - Accent color for emphasis, highlights, and interactive elements (text-accent-foreground)
29494
- * @variant destructive - Red color for error messages, warnings, and destructive actions (text-destructive)
29495
- * @variant success - Green color for success messages, confirmations, and positive states (text-success)
29496
- * @variant warning - Orange/yellow color for warnings, cautions, and attention-seeking content (text-warning)
29497
- */
29498
- color: {
29499
- default: "text-foreground",
29500
- muted: "text-muted-foreground",
29501
- faint: "text-neynar-faint-foreground",
29502
- accent: "text-accent-foreground",
29503
- destructive: "text-destructive",
29504
- success: "text-success",
29505
- warning: "text-warning"
29506
- },
29507
- /**
29508
- * Text alignment options for layout control
29509
- *
29510
- * @variant left - Left-aligned text (default for LTR languages)
29511
- * @variant center - Center-aligned text for headings and callouts
29512
- * @variant right - Right-aligned text for numerical data and RTL content
29513
- * @variant justify - Justified text for formal documents and articles
29514
- */
29515
- align: {
29516
- left: "text-left",
29517
- center: "text-center",
29518
- right: "text-right",
29519
- justify: "text-justify"
29520
- },
29521
- /**
29522
- * Text transformation options for stylistic effects
29523
- *
29524
- * @variant uppercase - ALL CAPS for emphasis and labels
29525
- * @variant lowercase - all lowercase for stylistic consistency
29526
- * @variant capitalize - Title Case For Headings And Proper Nouns
29527
- */
29528
- transform: {
29529
- uppercase: "uppercase",
29530
- lowercase: "lowercase",
29531
- capitalize: "capitalize"
29532
- },
29533
- /**
29534
- * Font weight variations for visual hierarchy
29535
- *
29536
- * @variant normal - Normal font weight (400) for body text
29537
- * @variant medium - Medium font weight (500) for subtle emphasis
29538
- * @variant semibold - Semibold font weight (600) for headings and important text
29539
- * @variant bold - Bold font weight (700) for strong emphasis
29540
- */
29541
- weight: {
29542
- normal: "font-normal",
29543
- medium: "font-medium",
29544
- semibold: "font-semibold",
29545
- bold: "font-bold"
29546
- }
29547
- },
29548
- defaultVariants: {
29549
- variant: "body",
29550
- color: "default",
29551
- align: "left"
29552
- }
29553
- });
29554
- function Typography({
29470
+ function PageTitle({
29555
29471
  className,
29556
- variant,
29557
- color,
29558
- align,
29559
- transform,
29560
- weight,
29561
- as: Element2 = "p",
29562
- asChild = false,
29563
- italic = false,
29564
- underline = false,
29565
- strikethrough = false,
29566
- truncate = false,
29567
- srOnly = false,
29472
+ as,
29568
29473
  ...props2
29569
29474
  }) {
29570
- const Comp = asChild ? Slot$7 : Element2;
29475
+ const Component = as || "h1";
29571
29476
  return /* @__PURE__ */ jsx(
29572
- Comp,
29477
+ Component,
29573
29478
  {
29574
- "data-slot": "typography",
29575
- className: cn$1(
29576
- typographyVariants({ variant, color, align, transform, weight }),
29577
- {
29578
- italic,
29579
- underline,
29580
- "line-through": strikethrough,
29581
- "truncate overflow-hidden text-ellipsis whitespace-nowrap": truncate,
29582
- "sr-only": srOnly
29583
- },
29584
- className
29585
- ),
29479
+ className: cn$1("text-3xl font-bold leading-tight tracking-wide", className),
29586
29480
  ...props2
29587
29481
  }
29588
29482
  );
29589
29483
  }
29590
- function H1({ variant = "displayTitle", weight = "bold", ...props2 }) {
29591
- return /* @__PURE__ */ jsx(Typography, { variant, weight, as: "h1", ...props2 });
29592
- }
29593
- function H2({ variant = "sectionTitle", weight = "bold", ...props2 }) {
29594
- return /* @__PURE__ */ jsx(Typography, { variant, weight, as: "h2", ...props2 });
29595
- }
29596
- function H3({ variant = "headline", weight = "bold", ...props2 }) {
29597
- return /* @__PURE__ */ jsx(Typography, { variant, weight, as: "h3", ...props2 });
29598
- }
29599
- function H4({ variant = "subHeadline", weight = "bold", ...props2 }) {
29600
- return /* @__PURE__ */ jsx(Typography, { variant, weight, as: "h4", ...props2 });
29601
- }
29602
- function H5({ variant = "eyebrow", weight = "bold", ...props2 }) {
29603
- return /* @__PURE__ */ jsx(Typography, { variant, weight, as: "h5", ...props2 });
29604
- }
29605
- function H6({ variant = "body", weight = "bold", ...props2 }) {
29606
- return /* @__PURE__ */ jsx(Typography, { variant, weight, as: "h6", ...props2 });
29484
+ function SectionTitle({
29485
+ className,
29486
+ as,
29487
+ ...props2
29488
+ }) {
29489
+ const Component = as || "h2";
29490
+ return /* @__PURE__ */ jsx(
29491
+ Component,
29492
+ {
29493
+ className: cn$1("text-2xl font-semibold leading-tight tracking-wide", className),
29494
+ ...props2
29495
+ }
29496
+ );
29607
29497
  }
29608
- function P(props2) {
29609
- return /* @__PURE__ */ jsx(Typography, { as: "p", ...props2 });
29498
+ function SubsectionTitle({
29499
+ className,
29500
+ as,
29501
+ ...props2
29502
+ }) {
29503
+ const Component = as || "h3";
29504
+ return /* @__PURE__ */ jsx(
29505
+ Component,
29506
+ {
29507
+ className: cn$1("text-xl font-semibold leading-snug tracking-wide", className),
29508
+ ...props2
29509
+ }
29510
+ );
29610
29511
  }
29611
- function Span(props2) {
29612
- return /* @__PURE__ */ jsx(Typography, { as: "span", ...props2 });
29512
+ function BodyText({
29513
+ className,
29514
+ as,
29515
+ ...props2
29516
+ }) {
29517
+ const Component = as || "p";
29518
+ return /* @__PURE__ */ jsx(
29519
+ Component,
29520
+ {
29521
+ className: cn$1("text-base leading-relaxed tracking-wide", className),
29522
+ ...props2
29523
+ }
29524
+ );
29613
29525
  }
29614
- function Code(props2) {
29615
- return /* @__PURE__ */ jsx(Typography, { variant: "code", as: "code", ...props2 });
29526
+ function BodyTextLarge({
29527
+ className,
29528
+ as,
29529
+ ...props2
29530
+ }) {
29531
+ const Component = as || "p";
29532
+ return /* @__PURE__ */ jsx(
29533
+ Component,
29534
+ {
29535
+ className: cn$1("text-lg leading-relaxed tracking-wide", className),
29536
+ ...props2
29537
+ }
29538
+ );
29616
29539
  }
29617
- function Small({ variant = "detail", ...props2 }) {
29618
- return /* @__PURE__ */ jsx(Typography, { variant, as: "small", ...props2 });
29540
+ function BodyTextSmall({
29541
+ className,
29542
+ as,
29543
+ ...props2
29544
+ }) {
29545
+ const Component = as || "p";
29546
+ return /* @__PURE__ */ jsx(
29547
+ Component,
29548
+ {
29549
+ className: cn$1("text-sm leading-normal tracking-wide", className),
29550
+ ...props2
29551
+ }
29552
+ );
29619
29553
  }
29620
- function Strong(props2) {
29621
- return /* @__PURE__ */ jsx(Typography, { weight: "bold", as: "strong", ...props2 });
29554
+ function Caption({
29555
+ className,
29556
+ as,
29557
+ ...props2
29558
+ }) {
29559
+ const Component = as || "span";
29560
+ return /* @__PURE__ */ jsx(
29561
+ Component,
29562
+ {
29563
+ className: cn$1("text-sm text-muted-foreground leading-normal tracking-wide", className),
29564
+ ...props2
29565
+ }
29566
+ );
29622
29567
  }
29623
- function Lead({
29624
- variant = "paragraphLead",
29625
- color = "muted",
29568
+ function Overline({
29569
+ className,
29570
+ as,
29626
29571
  ...props2
29627
29572
  }) {
29628
- return /* @__PURE__ */ jsx(Typography, { variant, as: "p", color, ...props2 });
29573
+ const Component = as || "span";
29574
+ return /* @__PURE__ */ jsx(
29575
+ Component,
29576
+ {
29577
+ className: cn$1("text-xs font-medium uppercase tracking-wider", className),
29578
+ ...props2
29579
+ }
29580
+ );
29629
29581
  }
29630
- function A({ href, asChild = false, className, ...props2 }) {
29582
+ function Code({
29583
+ className,
29584
+ as,
29585
+ ...props2
29586
+ }) {
29587
+ const Component = as || "code";
29631
29588
  return /* @__PURE__ */ jsx(
29632
- Typography,
29589
+ Component,
29633
29590
  {
29634
- as: asChild ? void 0 : "a",
29635
- asChild,
29636
- className: cn$1(
29637
- "underline underline-offset-2 hover:text-primary transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary",
29638
- className
29639
- ),
29640
- ...href ? { href } : {},
29591
+ className: cn$1("font-mono text-sm bg-muted px-1 rounded", className),
29641
29592
  ...props2
29642
29593
  }
29643
29594
  );
29644
29595
  }
29645
- function Blockquote({ className, ...props2 }) {
29596
+ function Blockquote({
29597
+ className,
29598
+ as,
29599
+ ...props2
29600
+ }) {
29601
+ const Component = as || "blockquote";
29646
29602
  return /* @__PURE__ */ jsx(
29647
- Typography,
29603
+ Component,
29648
29604
  {
29649
- as: "blockquote",
29650
- italic: true,
29651
- className: cn$1("border-l-4 border-border pl-4 my-2", className),
29605
+ className: cn$1("border-l-4 border-border pl-4 italic tracking-wide", className),
29652
29606
  ...props2
29653
29607
  }
29654
29608
  );
@@ -40470,7 +40424,6 @@ function ThemeToggle({
40470
40424
  ] });
40471
40425
  }
40472
40426
  export {
40473
- A,
40474
40427
  Accordion,
40475
40428
  AccordionContent,
40476
40429
  AccordionItem,
@@ -40495,6 +40448,9 @@ export {
40495
40448
  AvatarImage,
40496
40449
  Badge,
40497
40450
  Blockquote,
40451
+ BodyText,
40452
+ BodyTextLarge,
40453
+ BodyTextSmall,
40498
40454
  Breadcrumb,
40499
40455
  BreadcrumbEllipsis,
40500
40456
  BreadcrumbItem,
@@ -40508,6 +40464,7 @@ export {
40508
40464
  ButtonGroupText,
40509
40465
  Calendar,
40510
40466
  CalendarDayButton,
40467
+ Caption,
40511
40468
  Card,
40512
40469
  CardAction,
40513
40470
  CardContent,
@@ -40611,12 +40568,6 @@ export {
40611
40568
  FieldSeparator,
40612
40569
  FieldSet,
40613
40570
  FieldTitle,
40614
- H1,
40615
- H2,
40616
- H3,
40617
- H4,
40618
- H5,
40619
- H6,
40620
40571
  HoverCard,
40621
40572
  HoverCardContent,
40622
40573
  HoverCardTrigger,
@@ -40640,7 +40591,6 @@ export {
40640
40591
  Kbd,
40641
40592
  KbdGroup,
40642
40593
  Label$2 as Label,
40643
- Lead,
40644
40594
  Menubar,
40645
40595
  MenubarCheckboxItem,
40646
40596
  MenubarContent,
@@ -40665,7 +40615,8 @@ export {
40665
40615
  NavigationMenuList,
40666
40616
  NavigationMenuTrigger,
40667
40617
  NavigationMenuViewport,
40668
- P,
40618
+ Overline,
40619
+ PageTitle,
40669
40620
  Pagination,
40670
40621
  PaginationContent,
40671
40622
  PaginationEllipsis,
@@ -40689,6 +40640,7 @@ export {
40689
40640
  ScrollAreaThumb,
40690
40641
  ScrollAreaViewport,
40691
40642
  ScrollBar,
40643
+ SectionTitle,
40692
40644
  Select$1 as Select,
40693
40645
  SelectContent,
40694
40646
  SelectGroup,
@@ -40733,11 +40685,9 @@ export {
40733
40685
  SidebarTrigger,
40734
40686
  Skeleton,
40735
40687
  Slider,
40736
- Small,
40737
- Span,
40738
40688
  Spinner,
40739
40689
  Stack,
40740
- Strong,
40690
+ SubsectionTitle,
40741
40691
  Switch,
40742
40692
  Table,
40743
40693
  TableBody,
@@ -40763,7 +40713,6 @@ export {
40763
40713
  TooltipContent,
40764
40714
  TooltipProvider,
40765
40715
  TooltipTrigger,
40766
- Typography,
40767
40716
  badgeVariants,
40768
40717
  buttonGroupVariants,
40769
40718
  buttonVariants,
@@ -40773,7 +40722,7 @@ export {
40773
40722
  toastFunction as toast,
40774
40723
  toggleVariants,
40775
40724
  useCarousel,
40776
- P$1 as useCommandState,
40725
+ P as useCommandState,
40777
40726
  useIsMobile,
40778
40727
  useSidebar,
40779
40728
  useTheme