@nswds/app 1.91.0 → 1.93.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/globals.css CHANGED
@@ -9718,6 +9718,11 @@
9718
9718
  }
9719
9719
  }
9720
9720
  }
9721
+ .dark\:bg-grey-600 {
9722
+ &:where([data-theme=dark], [data-theme=dark] *) {
9723
+ background-color: var(--color-grey-600);
9724
+ }
9725
+ }
9721
9726
  .dark\:bg-grey-700 {
9722
9727
  &:where([data-theme=dark], [data-theme=dark] *) {
9723
9728
  background-color: var(--color-grey-700);
@@ -12974,7 +12979,7 @@
12974
12979
  background-color: #111827;
12975
12980
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fillRule='evenodd'%3E%3Cg fill='%236b7280' fill-opacity='0.4'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
12976
12981
  }
12977
- .dark code[class*='language-'], .dark pre[class*='language-'] {
12982
+ .dark code[class*='language-'], .dark pre[class*='language-'], pre.dark[class*='language-'] {
12978
12983
  --tw-text-opacity: 1;
12979
12984
  color: rgb(241 126 184 / var(--tw-text-opacity, 1));
12980
12985
  }
@@ -12982,7 +12987,7 @@
12982
12987
  --tw-bg-opacity: 1;
12983
12988
  background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
12984
12989
  }
12985
- .dark .code-preview-wrapper + .code-syntax-wrapper > .code-syntax > .relative > [data-code-wrapper] > .highlight > pre[class*='language-'], .dark .highlight pre[class*='language-'], .dark :not(pre) > code[class*='language-'], .dark pre[class*='language-'] {
12990
+ .dark .code-preview-wrapper + .code-syntax-wrapper > .code-syntax > .relative > [data-code-wrapper] > .highlight > pre[class*='language-'], .dark .highlight pre[class*='language-'], .dark :not(pre) > code[class*='language-'], .dark pre[class*='language-'], pre.dark[class*='language-'] {
12986
12991
  --tw-bg-opacity: 1;
12987
12992
  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
12988
12993
  }
package/dist/index.cjs CHANGED
@@ -4210,8 +4210,23 @@ function AlertDescription({ className, ...props }) {
4210
4210
  }
4211
4211
  );
4212
4212
  }
4213
- var Link = React5.forwardRef(function Link2(props, ref) {
4214
- return /* @__PURE__ */ jsxRuntime.jsx(Headless4__namespace.DataInteractive, { children: /* @__PURE__ */ jsxRuntime.jsx(Link13__default.default, { ...props, ref }) });
4213
+ var linkVariants = classVarianceAuthority.cva("", {
4214
+ variants: {
4215
+ variant: {
4216
+ default: "",
4217
+ nsw: [
4218
+ "nsw:font-medium nsw:text-primary-800 nsw:underline nsw:decoration-current nsw:underline-offset-4",
4219
+ "nsw:dark:text-primary-200 nsw:hover:bg-primary-800/10 nsw:hover:decoration-2",
4220
+ "nsw:dark:hover:bg-primary-200/15"
4221
+ ]
4222
+ }
4223
+ },
4224
+ defaultVariants: {
4225
+ variant: "default"
4226
+ }
4227
+ });
4228
+ var Link = React5.forwardRef(function Link2({ className, variant, ...props }, ref) {
4229
+ return /* @__PURE__ */ jsxRuntime.jsx(Headless4__namespace.DataInteractive, { children: /* @__PURE__ */ jsxRuntime.jsx(Link13__default.default, { ...props, ref, className: cn(linkVariants({ variant }), className) }) });
4215
4230
  });
4216
4231
  var styles = {
4217
4232
  base: [
@@ -13587,17 +13602,27 @@ function CodeHighlight({
13587
13602
  language,
13588
13603
  className,
13589
13604
  withCopy = false,
13605
+ "data-theme": dataTheme,
13590
13606
  ...props
13591
13607
  }) {
13592
13608
  const highlightedCode = Prism__default.default.highlight(code.trim(), Prism__default.default.languages[language], language);
13593
13609
  const Component2 = withCopy ? PreWithCopy : "pre";
13594
- return /* @__PURE__ */ jsxRuntime.jsx(Component2, { className: tailwindMerge.twMerge(`language-${language}`, className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
13595
- "code",
13610
+ const themeClassName = dataTheme !== void 0 ? dataTheme === "dark" ? "dark" : "light" : void 0;
13611
+ return /* @__PURE__ */ jsxRuntime.jsx(
13612
+ Component2,
13596
13613
  {
13597
- className: `language-${language}`,
13598
- dangerouslySetInnerHTML: { __html: highlightedCode }
13614
+ className: tailwindMerge.twMerge(`language-${language}`, themeClassName, className),
13615
+ "data-theme": dataTheme,
13616
+ ...props,
13617
+ children: /* @__PURE__ */ jsxRuntime.jsx(
13618
+ "code",
13619
+ {
13620
+ className: `language-${language}`,
13621
+ dangerouslySetInnerHTML: { __html: highlightedCode }
13622
+ }
13623
+ )
13599
13624
  }
13600
- ) });
13625
+ );
13601
13626
  }
13602
13627
  function Popover({ ...props }) {
13603
13628
  return /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Root, { "data-slot": "popover", ...props });
@@ -14271,18 +14296,18 @@ function TooltipContent({
14271
14296
  function CodeDemoLoading() {
14272
14297
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-8 animate-pulse", children: [
14273
14298
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full rounded-t-xl border border-grey-200 bg-grey-50 p-4 dark:border-grey-600 dark:bg-grey-700", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-2 sm:grid-cols-3", children: [
14274
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-10 w-32 rounded bg-grey-200" }),
14275
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-10 w-32 rounded bg-grey-200" }),
14299
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-10 w-32 rounded bg-grey-200 dark:bg-grey-600" }),
14300
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-10 w-32 rounded bg-grey-200 dark:bg-grey-600" }),
14276
14301
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-end gap-3", children: [
14277
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-10 w-20 rounded bg-grey-200" }),
14278
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-10 w-16 rounded bg-grey-200" }),
14279
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-10 w-10 rounded bg-grey-200" })
14302
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-10 w-20 rounded bg-grey-200 dark:bg-grey-600" }),
14303
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-10 w-16 rounded bg-grey-200 dark:bg-grey-600" }),
14304
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-10 w-10 rounded bg-grey-200 dark:bg-grey-600" })
14280
14305
  ] })
14281
14306
  ] }) }),
14282
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex border-x border-grey-200 bg-white bg-gradient-to-r p-5 dark:border-grey-600 dark:bg-grey-900", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-64 w-full rounded bg-grey-200" }) }),
14307
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex border-x border-grey-200 bg-white bg-gradient-to-r p-5 dark:border-grey-600 dark:bg-grey-900", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-64 w-full rounded bg-grey-200 dark:bg-grey-600" }) }),
14283
14308
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border border-grey-200 dark:border-grey-600", children: [
14284
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex w-full rounded-t-md border-b border-grey-200 bg-grey-50 p-2 dark:border-grey-600 dark:bg-grey-700", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-8 w-24 rounded bg-grey-200" }) }),
14285
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-48 bg-grey-100" })
14309
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex w-full rounded-t-md border-b border-grey-200 bg-grey-50 p-2 dark:border-grey-600 dark:bg-grey-700", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-8 w-24 rounded bg-grey-200 dark:bg-grey-600" }) }),
14310
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-48 bg-grey-100 dark:bg-grey-800" })
14286
14311
  ] })
14287
14312
  ] });
14288
14313
  }
@@ -14438,6 +14463,7 @@ function CodeDemoContent({ data, showCode = true, controls = defaultControls })
14438
14463
  const codeItems = getCodeItems(code);
14439
14464
  const current = getCurrent(codeItems, tabIndex);
14440
14465
  const shouldExpand = getShouldExpand(current.code.trim());
14466
+ const codeTheme = isDarkMode === null ? void 0 : isDarkMode ? "dark" : "light";
14441
14467
  const variantLabels = React5__namespace.default.useMemo(() => {
14442
14468
  const explicit = data.labels ?? {};
14443
14469
  return Object.fromEntries(variants.map((v) => [v, explicit[v] ?? humaniseVariant(v)]));
@@ -14546,7 +14572,8 @@ function CodeDemoContent({ data, showCode = true, controls = defaultControls })
14546
14572
  {
14547
14573
  className: "!mb-0 !rounded-none",
14548
14574
  code: current.code,
14549
- language: current.language
14575
+ language: current.language,
14576
+ "data-theme": codeTheme
14550
14577
  }
14551
14578
  )
14552
14579
  }
@@ -14569,12 +14596,21 @@ function CodeDemo(props) {
14569
14596
  var IFrame = React5__namespace.default.forwardRef(
14570
14597
  ({ iframe, isRTL, isDarkMode }, ref) => {
14571
14598
  React5.useEffect(() => {
14572
- const document2 = ref?.current?.contentDocument;
14573
- const root = document2?.documentElement;
14574
- if (document2 && root) {
14599
+ const frame2 = ref?.current;
14600
+ if (!frame2) return;
14601
+ const applyFrameSettings = () => {
14602
+ const document2 = frame2.contentDocument;
14603
+ const root = document2?.documentElement;
14604
+ if (!document2 || !root) return;
14575
14605
  root.setAttribute("dir", isRTL ? "rtl" : "ltr");
14576
- root.classList.toggle("dark", !!isDarkMode);
14577
- }
14606
+ if (isDarkMode !== null) {
14607
+ root.setAttribute("data-theme", isDarkMode ? "dark" : "light");
14608
+ root.classList.toggle("dark", !!isDarkMode);
14609
+ }
14610
+ };
14611
+ applyFrameSettings();
14612
+ frame2.addEventListener("load", applyFrameSettings);
14613
+ return () => frame2.removeEventListener("load", applyFrameSettings);
14578
14614
  }, [isRTL, isDarkMode, ref]);
14579
14615
  if (typeof iframe === "number") {
14580
14616
  return /* @__PURE__ */ jsxRuntime.jsx("iframe", { ref, src: "", height: iframe, width: "100%", className: "w-full" });
@@ -14631,9 +14667,9 @@ function CodePreview({
14631
14667
  {
14632
14668
  className: tailwindMerge.twMerge(
14633
14669
  "code-responsive-wrapper w-full",
14634
- isDarkMode !== null && (isDarkMode ? "dark" : "light")
14670
+ isDarkMode !== null ? isDarkMode ? "dark" : "light" : void 0
14635
14671
  ),
14636
- "data-theme": isDarkMode !== null && (isDarkMode ? "dark" : "light"),
14672
+ "data-theme": isDarkMode !== null ? isDarkMode ? "dark" : "light" : void 0,
14637
14673
  children: /* @__PURE__ */ jsxRuntime.jsx(
14638
14674
  "div",
14639
14675
  {
@@ -17557,7 +17593,7 @@ function FormatToggle({ format, setFormat }) {
17557
17593
 
17558
17594
  // package.json
17559
17595
  var package_default = {
17560
- version: "1.90.0"};
17596
+ version: "1.92.0"};
17561
17597
  var SluggerContext = React5__namespace.default.createContext(null);
17562
17598
  function flattenText(nodes) {
17563
17599
  if (nodes == null || typeof nodes === "boolean") return "";
@@ -18866,6 +18902,118 @@ function ListboxDescription({
18866
18902
  }
18867
18903
  );
18868
18904
  }
18905
+ var theme = {
18906
+ size: {
18907
+ xs: "h-3 w-3",
18908
+ sm: "h-4 w-4",
18909
+ md: "h-6 w-6",
18910
+ lg: "h-8 w-8",
18911
+ xl: "h-10 w-10"
18912
+ }
18913
+ };
18914
+ function Spinner({ className, size = "md", ...props }) {
18915
+ return /* @__PURE__ */ jsxRuntime.jsx("span", { role: "status", ...props, children: /* @__PURE__ */ jsxRuntime.jsxs(
18916
+ "svg",
18917
+ {
18918
+ fill: "none",
18919
+ viewBox: "0 0 100 101",
18920
+ className: cn(
18921
+ "inline animate-spin text-grey-300",
18922
+ "fill-primary-800",
18923
+ theme.size[size],
18924
+ className
18925
+ ),
18926
+ children: [
18927
+ /* @__PURE__ */ jsxRuntime.jsx(
18928
+ "path",
18929
+ {
18930
+ d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",
18931
+ fill: "currentColor"
18932
+ }
18933
+ ),
18934
+ /* @__PURE__ */ jsxRuntime.jsx(
18935
+ "path",
18936
+ {
18937
+ d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",
18938
+ fill: "currentFill"
18939
+ }
18940
+ )
18941
+ ]
18942
+ }
18943
+ ) });
18944
+ }
18945
+ function Text({ className, trim = "normal", size = 2, label = false, ...props }) {
18946
+ const textSizeClasses = {
18947
+ 1: "text-[length:var(--font-size-1)] leading-[var(--line-height-28)] tracking-[var(--letter-spacing-0)]",
18948
+ 2: "text-[length:var(--font-size-2)] leading-[var(--line-height-24)] tracking-[var(--letter-spacing-0)]",
18949
+ 3: "text-[length:var(--font-size-3)] leading-[var(--line-height-20)] tracking-[var(--letter-spacing-0)]",
18950
+ 4: "text-[length:var(--font-size-4)] leading-[var(--line-height-20)] tracking-[var(--letter-spacing-0)]"
18951
+ };
18952
+ const labelSizeClasses = {
18953
+ 1: "text-[length:var(--font-size-1)] leading-[var(--line-height-24)] tracking-[var(--letter-spacing-0)]",
18954
+ 2: "text-[length:var(--font-size-2)] leading-[var(--line-height-20)] tracking-[var(--letter-spacing-0)]",
18955
+ 3: "text-[length:var(--font-size-3)] leading-[var(--line-height-16)] tracking-[var(--letter-spacing-0)]",
18956
+ 4: "text-[length:var(--font-size-4)] leading-[var(--line-height-16)] tracking-[var(--letter-spacing-0)]"
18957
+ };
18958
+ const sizeClass = label ? labelSizeClasses[size] : textSizeClasses[size];
18959
+ const trimClasses = {
18960
+ normal: ["before:content-none after:content-none"],
18961
+ start: [
18962
+ 'before:content-[""] before:table after:content-none',
18963
+ "before:mb-[calc(var(--leading-trim-start,var(--default-leading-trim-start))-var(--line-height,calc(1em*var(--default-line-height)))/2)]"
18964
+ ],
18965
+ end: [
18966
+ 'before:content-none after:content-[""] after:table',
18967
+ "after:mt-[calc(var(--leading-trim-end,var(--default-leading-trim-end))-var(--line-height,calc(1em*var(--default-line-height)))/2)]"
18968
+ ],
18969
+ both: [
18970
+ 'before:content-[""] before:table after:content-[""] after:table',
18971
+ "before:mb-[calc(var(--leading-trim-start,var(--default-leading-trim-start))-var(--line-height,calc(1em*var(--default-line-height)))/2)]",
18972
+ "after:mt-[calc(var(--leading-trim-end,var(--default-leading-trim-end))-var(--line-height,calc(1em*var(--default-line-height)))/2)]"
18973
+ ]
18974
+ };
18975
+ return /* @__PURE__ */ jsxRuntime.jsx(
18976
+ "p",
18977
+ {
18978
+ "data-slot": "text",
18979
+ ...props,
18980
+ className: clsx12__default.default(className, trimClasses[trim], "text-grey-800 dark:text-grey-400", sizeClass)
18981
+ }
18982
+ );
18983
+ }
18984
+ function TextLink({ className, ...props }) {
18985
+ return /* @__PURE__ */ jsxRuntime.jsx(
18986
+ Link,
18987
+ {
18988
+ ...props,
18989
+ className: clsx12__default.default(
18990
+ className,
18991
+ "text-primary-800 underline decoration-primary-800/50 data-hover:decoration-primary-800 dark:text-white dark:decoration-white/50 dark:data-hover:decoration-white"
18992
+ )
18993
+ }
18994
+ );
18995
+ }
18996
+ function Strong({ className, ...props }) {
18997
+ return /* @__PURE__ */ jsxRuntime.jsx("strong", { ...props, className: clsx12__default.default(className, "font-medium text-grey-950 dark:text-white") });
18998
+ }
18999
+ function Code({ className, ...props }) {
19000
+ return /* @__PURE__ */ jsxRuntime.jsx(
19001
+ "code",
19002
+ {
19003
+ ...props,
19004
+ className: clsx12__default.default(
19005
+ className,
19006
+ "rounded-sm border border-grey-950/10 bg-grey-950/[2.5%] px-0.5 text-sm font-medium text-grey-950 sm:text-[0.8125rem] dark:border-white/20 dark:bg-white/5 dark:text-white"
19007
+ )
19008
+ }
19009
+ );
19010
+ }
19011
+ function Loading() {
19012
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-screen items-center justify-center gap-4 bg-grey-50 dark:bg-grey-900", children: [
19013
+ /* @__PURE__ */ jsxRuntime.jsx(Spinner, { "aria-label": "Loading...", size: "lg" }),
19014
+ /* @__PURE__ */ jsxRuntime.jsx(Text, { children: "Loading..." })
19015
+ ] });
19016
+ }
18869
19017
  function useSelectorHeight(selector = "header") {
18870
19018
  const [height, setHeight] = React5.useState(0);
18871
19019
  const elementRef = React5.useRef(null);
@@ -19486,72 +19634,6 @@ function MultiLevelPushMenu({
19486
19634
  );
19487
19635
  }) }) });
19488
19636
  }
19489
- function Text({ className, trim = "normal", size = 2, label = false, ...props }) {
19490
- const textSizeClasses = {
19491
- 1: "text-[length:var(--font-size-1)] leading-[var(--line-height-28)] tracking-[var(--letter-spacing-0)]",
19492
- 2: "text-[length:var(--font-size-2)] leading-[var(--line-height-24)] tracking-[var(--letter-spacing-0)]",
19493
- 3: "text-[length:var(--font-size-3)] leading-[var(--line-height-20)] tracking-[var(--letter-spacing-0)]",
19494
- 4: "text-[length:var(--font-size-4)] leading-[var(--line-height-20)] tracking-[var(--letter-spacing-0)]"
19495
- };
19496
- const labelSizeClasses = {
19497
- 1: "text-[length:var(--font-size-1)] leading-[var(--line-height-24)] tracking-[var(--letter-spacing-0)]",
19498
- 2: "text-[length:var(--font-size-2)] leading-[var(--line-height-20)] tracking-[var(--letter-spacing-0)]",
19499
- 3: "text-[length:var(--font-size-3)] leading-[var(--line-height-16)] tracking-[var(--letter-spacing-0)]",
19500
- 4: "text-[length:var(--font-size-4)] leading-[var(--line-height-16)] tracking-[var(--letter-spacing-0)]"
19501
- };
19502
- const sizeClass = label ? labelSizeClasses[size] : textSizeClasses[size];
19503
- const trimClasses = {
19504
- normal: ["before:content-none after:content-none"],
19505
- start: [
19506
- 'before:content-[""] before:table after:content-none',
19507
- "before:mb-[calc(var(--leading-trim-start,var(--default-leading-trim-start))-var(--line-height,calc(1em*var(--default-line-height)))/2)]"
19508
- ],
19509
- end: [
19510
- 'before:content-none after:content-[""] after:table',
19511
- "after:mt-[calc(var(--leading-trim-end,var(--default-leading-trim-end))-var(--line-height,calc(1em*var(--default-line-height)))/2)]"
19512
- ],
19513
- both: [
19514
- 'before:content-[""] before:table after:content-[""] after:table',
19515
- "before:mb-[calc(var(--leading-trim-start,var(--default-leading-trim-start))-var(--line-height,calc(1em*var(--default-line-height)))/2)]",
19516
- "after:mt-[calc(var(--leading-trim-end,var(--default-leading-trim-end))-var(--line-height,calc(1em*var(--default-line-height)))/2)]"
19517
- ]
19518
- };
19519
- return /* @__PURE__ */ jsxRuntime.jsx(
19520
- "p",
19521
- {
19522
- "data-slot": "text",
19523
- ...props,
19524
- className: clsx12__default.default(className, trimClasses[trim], "text-grey-800 dark:text-grey-400", sizeClass)
19525
- }
19526
- );
19527
- }
19528
- function TextLink({ className, ...props }) {
19529
- return /* @__PURE__ */ jsxRuntime.jsx(
19530
- Link,
19531
- {
19532
- ...props,
19533
- className: clsx12__default.default(
19534
- className,
19535
- "text-primary-800 underline decoration-primary-800/50 data-hover:decoration-primary-800 dark:text-white dark:decoration-white/50 dark:data-hover:decoration-white"
19536
- )
19537
- }
19538
- );
19539
- }
19540
- function Strong({ className, ...props }) {
19541
- return /* @__PURE__ */ jsxRuntime.jsx("strong", { ...props, className: clsx12__default.default(className, "font-medium text-grey-950 dark:text-white") });
19542
- }
19543
- function Code({ className, ...props }) {
19544
- return /* @__PURE__ */ jsxRuntime.jsx(
19545
- "code",
19546
- {
19547
- ...props,
19548
- className: clsx12__default.default(
19549
- className,
19550
- "rounded-sm border border-grey-950/10 bg-grey-950/[2.5%] px-0.5 text-sm font-medium text-grey-950 sm:text-[0.8125rem] dark:border-white/20 dark:bg-white/5 dark:text-white"
19551
- )
19552
- }
19553
- );
19554
- }
19555
19637
  function MobileHeader({
19556
19638
  sitename,
19557
19639
  navigation,
@@ -29782,46 +29864,6 @@ var SparkBarChart = React5__namespace.default.forwardRef((props, forwardedRef) =
29782
29864
  );
29783
29865
  });
29784
29866
  SparkBarChart.displayName = "SparkBarChart";
29785
- var theme = {
29786
- size: {
29787
- xs: "h-3 w-3",
29788
- sm: "h-4 w-4",
29789
- md: "h-6 w-6",
29790
- lg: "h-8 w-8",
29791
- xl: "h-10 w-10"
29792
- }
29793
- };
29794
- function Spinner({ className, size = "md", ...props }) {
29795
- return /* @__PURE__ */ jsxRuntime.jsx("span", { role: "status", ...props, children: /* @__PURE__ */ jsxRuntime.jsxs(
29796
- "svg",
29797
- {
29798
- fill: "none",
29799
- viewBox: "0 0 100 101",
29800
- className: cn(
29801
- "inline animate-spin text-grey-300",
29802
- "fill-primary-800",
29803
- theme.size[size],
29804
- className
29805
- ),
29806
- children: [
29807
- /* @__PURE__ */ jsxRuntime.jsx(
29808
- "path",
29809
- {
29810
- d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",
29811
- fill: "currentColor"
29812
- }
29813
- ),
29814
- /* @__PURE__ */ jsxRuntime.jsx(
29815
- "path",
29816
- {
29817
- d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",
29818
- fill: "currentFill"
29819
- }
29820
- )
29821
- ]
29822
- }
29823
- ) });
29824
- }
29825
29867
  var StepIndicator = React5__namespace.forwardRef(
29826
29868
  ({ className, array, onLinkClick, ...props }, ref) => {
29827
29869
  const pathname = navigation.usePathname();
@@ -33897,6 +33939,7 @@ exports.ListboxDescription = ListboxDescription;
33897
33939
  exports.ListboxLabel = ListboxLabel;
33898
33940
  exports.ListboxOption = ListboxOption2;
33899
33941
  exports.Loader = Loader;
33942
+ exports.Loading = Loading;
33900
33943
  exports.Logo = Logo;
33901
33944
  exports.MainNavigation = MainNavigation;
33902
33945
  exports.Masthead = Masthead;