@particle-academy/react-fancy 5.6.1 → 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
@@ -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(
@@ -16690,6 +16724,7 @@ exports.Portal = Portal;
16690
16724
  exports.Profile = Profile;
16691
16725
  exports.Progress = Progress;
16692
16726
  exports.PromptInput = PromptInput;
16727
+ exports.PullQuote = PullQuote;
16693
16728
  exports.RadioGroup = RadioGroup;
16694
16729
  exports.ReasonTag = ReasonTag;
16695
16730
  exports.SKIN_TONES = SKIN_TONES;