@particle-academy/react-fancy 5.6.0 → 5.7.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/dist/index.cjs CHANGED
@@ -7029,8 +7029,8 @@ var IndexList = react.forwardRef(
7029
7029
  "data-react-fancy-index-row": "",
7030
7030
  className: "relative flex items-baseline gap-4 border-b border-zinc-200 py-3 last:border-b-0 dark:border-zinc-800",
7031
7031
  children: [
7032
- item.num != null && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 font-mono text-xs tabular-nums text-zinc-400 dark:text-zinc-500", children: item.num }),
7033
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1 truncate font-medium text-zinc-900 dark:text-zinc-100", children: item.href ? /* @__PURE__ */ jsxRuntime.jsx(
7032
+ item.num != null && /* @__PURE__ */ jsxRuntime.jsx("span", { "data-react-fancy-index-num": "", className: "shrink-0 font-mono text-xs tabular-nums text-zinc-400 dark:text-zinc-500", children: item.num }),
7033
+ /* @__PURE__ */ jsxRuntime.jsx("span", { "data-react-fancy-index-title": "", className: "min-w-0 flex-1 truncate font-medium text-zinc-900 dark:text-zinc-100", children: item.href ? /* @__PURE__ */ jsxRuntime.jsx(
7034
7034
  Link,
7035
7035
  {
7036
7036
  href: item.href,
@@ -7038,8 +7038,8 @@ var IndexList = react.forwardRef(
7038
7038
  children: item.title
7039
7039
  }
7040
7040
  ) : item.title }),
7041
- item.meta != null && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 truncate text-sm text-zinc-500 dark:text-zinc-400", children: item.meta }),
7042
- item.value != null && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ml-auto shrink-0 font-mono text-xs tabular-nums text-zinc-500 dark:text-zinc-400", children: item.value })
7041
+ item.meta != null && /* @__PURE__ */ jsxRuntime.jsx("span", { "data-react-fancy-index-meta": "", className: "shrink-0 truncate text-sm text-zinc-500 dark:text-zinc-400", children: item.meta }),
7042
+ item.value != null && /* @__PURE__ */ jsxRuntime.jsx("span", { "data-react-fancy-index-value": "", className: "ml-auto shrink-0 font-mono text-xs tabular-nums text-zinc-500 dark:text-zinc-400", children: item.value })
7043
7043
  ]
7044
7044
  },
7045
7045
  item.id ?? i
@@ -7047,6 +7047,40 @@ var IndexList = react.forwardRef(
7047
7047
  }
7048
7048
  );
7049
7049
  IndexList.displayName = "IndexList";
7050
+ var PullQuote = react.forwardRef(
7051
+ ({ attribution, source, citeUrl, rule = false, className, children, ...props }, ref) => {
7052
+ return /* @__PURE__ */ jsxRuntime.jsxs(
7053
+ "blockquote",
7054
+ {
7055
+ ref,
7056
+ cite: citeUrl,
7057
+ "data-react-fancy-pull-quote": "",
7058
+ className: cn(
7059
+ "m-0 text-2xl font-medium leading-snug tracking-tight text-zinc-900 dark:text-zinc-100",
7060
+ rule && "border-y border-zinc-200 py-6 dark:border-zinc-800",
7061
+ className
7062
+ ),
7063
+ ...props,
7064
+ children: [
7065
+ /* @__PURE__ */ jsxRuntime.jsx("p", { "data-react-fancy-pull-quote-text": "", className: "m-0", children }),
7066
+ (attribution != null || source != null) && /* @__PURE__ */ jsxRuntime.jsxs(
7067
+ "footer",
7068
+ {
7069
+ "data-react-fancy-pull-quote-attribution": "",
7070
+ className: "mt-3 text-sm font-normal tracking-normal text-zinc-500 dark:text-zinc-400",
7071
+ children: [
7072
+ attribution != null && /* @__PURE__ */ jsxRuntime.jsx("cite", { className: "not-italic", children: attribution }),
7073
+ attribution != null && source != null && /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": true, children: " \xB7 " }),
7074
+ source
7075
+ ]
7076
+ }
7077
+ )
7078
+ ]
7079
+ }
7080
+ );
7081
+ }
7082
+ );
7083
+ PullQuote.displayName = "PullQuote";
7050
7084
  var StatBand = react.forwardRef(
7051
7085
  ({ columns = 4, className, style, children, ...props }, ref) => {
7052
7086
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -7074,6 +7108,7 @@ var StatRoot = react.forwardRef(
7074
7108
  /* @__PURE__ */ jsxRuntime.jsx(
7075
7109
  "div",
7076
7110
  {
7111
+ "data-react-fancy-stat-value": "",
7077
7112
  className: cn(
7078
7113
  "font-semibold leading-none tracking-tight text-zinc-900 tabular-nums dark:text-zinc-100",
7079
7114
  valueClasses[size]
@@ -7081,7 +7116,14 @@ var StatRoot = react.forwardRef(
7081
7116
  children: value
7082
7117
  }
7083
7118
  ),
7084
- label != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-1.5 font-mono text-xs uppercase tracking-wide text-zinc-500 dark:text-zinc-400", children: label })
7119
+ label != null && /* @__PURE__ */ jsxRuntime.jsx(
7120
+ "div",
7121
+ {
7122
+ "data-react-fancy-stat-label": "",
7123
+ className: "mt-1.5 font-mono text-xs uppercase tracking-wide text-zinc-500 dark:text-zinc-400",
7124
+ children: label
7125
+ }
7126
+ )
7085
7127
  ] }) });
7086
7128
  }
7087
7129
  );
@@ -16682,6 +16724,7 @@ exports.Portal = Portal;
16682
16724
  exports.Profile = Profile;
16683
16725
  exports.Progress = Progress;
16684
16726
  exports.PromptInput = PromptInput;
16727
+ exports.PullQuote = PullQuote;
16685
16728
  exports.RadioGroup = RadioGroup;
16686
16729
  exports.ReasonTag = ReasonTag;
16687
16730
  exports.SKIN_TONES = SKIN_TONES;