@nswds/app 1.109.3 → 1.110.1
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 +99 -48
- package/dist/index.cjs +144 -118
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -5
- package/dist/index.d.ts +12 -5
- package/dist/index.js +139 -113
- package/dist/index.js.map +1 -1
- package/dist/styles.css +120 -56
- package/dist/styles.css.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
2
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
|
-
import
|
|
3
|
+
import clsx13, { clsx } from 'clsx';
|
|
4
4
|
import { twMerge } from 'tailwind-merge';
|
|
5
5
|
import { cva } from 'class-variance-authority';
|
|
6
6
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
@@ -4499,7 +4499,7 @@ var Button2 = forwardRef(function Button3({ className, variant, color: color2, s
|
|
|
4499
4499
|
{
|
|
4500
4500
|
"data-variant": variant,
|
|
4501
4501
|
...props,
|
|
4502
|
-
className:
|
|
4502
|
+
className: clsx13(classes, "cursor-pointer"),
|
|
4503
4503
|
ref,
|
|
4504
4504
|
children: /* @__PURE__ */ jsx(TouchTarget, { children })
|
|
4505
4505
|
}
|
|
@@ -5958,7 +5958,7 @@ var BadgeButton = forwardRef(function BadgeButton2({
|
|
|
5958
5958
|
children,
|
|
5959
5959
|
...props
|
|
5960
5960
|
}, ref) {
|
|
5961
|
-
const classes =
|
|
5961
|
+
const classes = clsx13(className, focusOutline[color2], [
|
|
5962
5962
|
// Base
|
|
5963
5963
|
"group relative inline-flex rounded-sm",
|
|
5964
5964
|
// Focus
|
|
@@ -5980,7 +5980,7 @@ var BadgeButton = forwardRef(function BadgeButton2({
|
|
|
5980
5980
|
{
|
|
5981
5981
|
"data-variant": variant,
|
|
5982
5982
|
...props,
|
|
5983
|
-
className:
|
|
5983
|
+
className: clsx13(classes, "cursor-pointer"),
|
|
5984
5984
|
ref,
|
|
5985
5985
|
children: /* @__PURE__ */ jsx(TouchTarget, { children: /* @__PURE__ */ jsx(Badge, { variant, color: color2, size, children }) })
|
|
5986
5986
|
}
|
|
@@ -17816,7 +17816,7 @@ function DescriptionList({ className, ...props }) {
|
|
|
17816
17816
|
"dl",
|
|
17817
17817
|
{
|
|
17818
17818
|
...props,
|
|
17819
|
-
className:
|
|
17819
|
+
className: clsx13(
|
|
17820
17820
|
className,
|
|
17821
17821
|
"grid grid-cols-1 text-base/6 sm:grid-cols-[min(50%,--spacing(80))_auto] sm:text-sm/6"
|
|
17822
17822
|
)
|
|
@@ -17828,7 +17828,7 @@ function DescriptionTerm({ className, ...props }) {
|
|
|
17828
17828
|
"dt",
|
|
17829
17829
|
{
|
|
17830
17830
|
...props,
|
|
17831
|
-
className:
|
|
17831
|
+
className: clsx13(
|
|
17832
17832
|
className,
|
|
17833
17833
|
"col-start-1 border-t border-grey-950/5 pt-3 text-grey-600 first:border-none sm:border-t sm:border-grey-950/5 sm:py-3 dark:border-white/5 dark:text-grey-400 sm:dark:border-white/5"
|
|
17834
17834
|
)
|
|
@@ -17840,7 +17840,7 @@ function DescriptionDetails({ className, ...props }) {
|
|
|
17840
17840
|
"dd",
|
|
17841
17841
|
{
|
|
17842
17842
|
...props,
|
|
17843
|
-
className:
|
|
17843
|
+
className: clsx13(
|
|
17844
17844
|
className,
|
|
17845
17845
|
"pt-1 pb-3 text-grey-950 sm:border-t sm:border-grey-950/5 sm:py-3 sm:nth-2:border-none dark:text-white dark:sm:border-white/5"
|
|
17846
17846
|
)
|
|
@@ -18254,7 +18254,7 @@ function Fieldset2({
|
|
|
18254
18254
|
Headless4.Fieldset,
|
|
18255
18255
|
{
|
|
18256
18256
|
...props,
|
|
18257
|
-
className:
|
|
18257
|
+
className: clsx13(className, "*:data-[slot=text]:mt-1 [&>*+[data-slot=control]]:mt-6")
|
|
18258
18258
|
}
|
|
18259
18259
|
);
|
|
18260
18260
|
}
|
|
@@ -18267,7 +18267,7 @@ function Legend6({
|
|
|
18267
18267
|
{
|
|
18268
18268
|
"data-slot": "legend",
|
|
18269
18269
|
...props,
|
|
18270
|
-
className:
|
|
18270
|
+
className: clsx13(
|
|
18271
18271
|
className,
|
|
18272
18272
|
"text-base/6 font-semibold text-zinc-950 data-disabled:opacity-50 sm:text-sm/6 dark:text-white"
|
|
18273
18273
|
)
|
|
@@ -18275,7 +18275,7 @@ function Legend6({
|
|
|
18275
18275
|
);
|
|
18276
18276
|
}
|
|
18277
18277
|
function FieldGroup({ className, ...props }) {
|
|
18278
|
-
return /* @__PURE__ */ jsx("div", { "data-slot": "control", ...props, className:
|
|
18278
|
+
return /* @__PURE__ */ jsx("div", { "data-slot": "control", ...props, className: clsx13(className, "space-y-8") });
|
|
18279
18279
|
}
|
|
18280
18280
|
function Field2({
|
|
18281
18281
|
className,
|
|
@@ -18285,7 +18285,7 @@ function Field2({
|
|
|
18285
18285
|
Headless4.Field,
|
|
18286
18286
|
{
|
|
18287
18287
|
...props,
|
|
18288
|
-
className:
|
|
18288
|
+
className: clsx13(
|
|
18289
18289
|
className,
|
|
18290
18290
|
"[&>[data-slot=label]+[data-slot=control]]:mt-3",
|
|
18291
18291
|
"[&>[data-slot=label]+[data-slot=description]]:mt-1",
|
|
@@ -18306,7 +18306,7 @@ function FieldLabel({
|
|
|
18306
18306
|
{
|
|
18307
18307
|
"data-slot": "label",
|
|
18308
18308
|
...props,
|
|
18309
|
-
className:
|
|
18309
|
+
className: clsx13(
|
|
18310
18310
|
className,
|
|
18311
18311
|
"text-base/6 text-zinc-950 select-none data-disabled:opacity-50 sm:text-sm/6 dark:text-white"
|
|
18312
18312
|
)
|
|
@@ -18322,7 +18322,7 @@ function Description4({
|
|
|
18322
18322
|
{
|
|
18323
18323
|
"data-slot": "description",
|
|
18324
18324
|
...props,
|
|
18325
|
-
className:
|
|
18325
|
+
className: clsx13(
|
|
18326
18326
|
className,
|
|
18327
18327
|
"text-base/6 text-zinc-500 data-disabled:opacity-50 sm:text-sm/6 dark:text-zinc-400"
|
|
18328
18328
|
)
|
|
@@ -18338,7 +18338,7 @@ function ErrorMessage({
|
|
|
18338
18338
|
{
|
|
18339
18339
|
"data-slot": "error",
|
|
18340
18340
|
...props,
|
|
18341
|
-
className:
|
|
18341
|
+
className: clsx13(
|
|
18342
18342
|
className,
|
|
18343
18343
|
"text-base/6 text-red-600 data-disabled:opacity-50 sm:text-sm/6 dark:text-red-500"
|
|
18344
18344
|
)
|
|
@@ -18562,7 +18562,7 @@ var toggleVariants = cva(styles3.base, {
|
|
|
18562
18562
|
variants: {
|
|
18563
18563
|
variant: {
|
|
18564
18564
|
ghost: "",
|
|
18565
|
-
outline:
|
|
18565
|
+
outline: clsx13(styles3.outline)
|
|
18566
18566
|
},
|
|
18567
18567
|
size: {
|
|
18568
18568
|
default: "h-9 px-2 min-w-9",
|
|
@@ -18665,7 +18665,7 @@ function FormatToggle({ format, setFormat }) {
|
|
|
18665
18665
|
|
|
18666
18666
|
// package.json
|
|
18667
18667
|
var package_default = {
|
|
18668
|
-
version: "1.
|
|
18668
|
+
version: "1.109.2"};
|
|
18669
18669
|
var SluggerContext = React5__default.createContext(null);
|
|
18670
18670
|
function flattenText(nodes) {
|
|
18671
18671
|
if (nodes == null || typeof nodes === "boolean") return "";
|
|
@@ -18736,7 +18736,7 @@ function Heading({
|
|
|
18736
18736
|
...props,
|
|
18737
18737
|
id: computedId,
|
|
18738
18738
|
"data-anchor": true,
|
|
18739
|
-
className:
|
|
18739
|
+
className: clsx13(
|
|
18740
18740
|
className,
|
|
18741
18741
|
trimClasses[trim],
|
|
18742
18742
|
"m-0",
|
|
@@ -18749,7 +18749,7 @@ function Heading({
|
|
|
18749
18749
|
}
|
|
18750
18750
|
);
|
|
18751
18751
|
}
|
|
18752
|
-
function Logo(props) {
|
|
18752
|
+
function Logo({ logoType = "default", ...props }) {
|
|
18753
18753
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
18754
18754
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "NSW Government" }),
|
|
18755
18755
|
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 259 280", "aria-hidden": "true", ...props, children: [
|
|
@@ -18759,7 +18759,11 @@ function Logo(props) {
|
|
|
18759
18759
|
fillRule: "evenodd",
|
|
18760
18760
|
clipRule: "evenodd",
|
|
18761
18761
|
d: "M24.208 270.207h-5.045v-4.277l11.15.054v13.676H26.08v-2.491c-.266.278-.553.556-.86.833-.673.585-1.49 1.07-2.433 1.434-.96.373-2.143.564-3.513.564-2.33 0-4.385-.539-6.109-1.6-1.727-1.065-3.073-2.594-4.007-4.538-.926-1.927-1.395-4.231-1.395-6.85 0-2.657.494-4.994 1.47-6.946.971-1.96 2.363-3.498 4.132-4.571 1.768-1.065 3.849-1.604 6.183-1.604 1.515 0 2.915.245 4.156.725 1.255.485 2.36 1.157 3.273 1.985a9.61 9.61 0 0 1 2.192 2.852 8.196 8.196 0 0 1 .872 3.319l.021.435h-6.038l-.062-.339a5.22 5.22 0 0 0-.814-1.981 4.562 4.562 0 0 0-1.537-1.43c-.614-.352-1.345-.531-2.175-.531-1.005 0-1.931.261-2.741.775-.806.51-1.458 1.351-1.935 2.495-.486 1.169-.731 2.74-.731 4.679 0 1.579.162 2.897.482 3.925.311 1.011.739 1.819 1.266 2.403.523.581 1.117.991 1.773 1.219a6.036 6.036 0 0 0 2.089.369c.669 0 1.27-.112 1.79-.328.523-.224.98-.514 1.354-.866.377-.356.676-.746.884-1.152.216-.41.349-.816.399-1.21l.14-1.028Zm20.878-16.312c2.354 0 4.435.534 6.179 1.587 1.752 1.061 3.13 2.59 4.086 4.546.947 1.935 1.428 4.281 1.428 6.967 0 2.648-.473 4.969-1.412 6.9-.946 1.948-2.317 3.469-4.073 4.521-1.744 1.053-3.837 1.583-6.212 1.583-2.396 0-4.502-.534-6.254-1.583-1.753-1.044-3.135-2.557-4.099-4.505-.947-1.927-1.428-4.252-1.428-6.912 0-2.673.486-5.015 1.449-6.954.968-1.956 2.355-3.486 4.12-4.551 1.764-1.061 3.853-1.599 6.216-1.599Zm0 21.185c1.117 0 2.093-.265 2.898-.787.802-.523 1.433-1.372 1.881-2.516.453-1.185.686-2.772.686-4.712 0-1.993-.237-3.618-.698-4.832-.444-1.181-1.08-2.056-1.885-2.603-.814-.543-1.782-.82-2.878-.82-1.1 0-2.072.277-2.886.82-.81.543-1.453 1.422-1.906 2.611-.47 1.223-.706 2.843-.706 4.82 0 1.944.237 3.531.702 4.712.452 1.148 1.092 1.997 1.902 2.515.81.527 1.781.792 2.89.792Zm23.764-2.93-6.162-17.829H57.09l8.654 25.251h6.195l8.73-25.251h-5.607L68.85 272.15Zm30.312-2.827H88.863v5.206l12.043.016v5.027H83.103v-25.251h17.632l-.016 4.99H88.892v5.089h10.27v4.923Zm22.482-1.529c.685-.613 1.246-1.401 1.678-2.341.419-.933.635-2.081.635-3.419 0-1.497-.311-2.835-.93-3.983-.619-1.169-1.599-2.093-2.919-2.756-1.3-.647-2.973-.974-4.975-.974h-10.738v25.243h5.759v-9.404h4.24l3.991 9.404h6.046l-4.651-10.456c.673-.357 1.3-.8 1.864-1.314Zm-3.513-5.64c0 .999-.336 1.79-1.025 2.428-.69.63-1.649.949-2.857.949h-4.095v-6.606h4.456c1.038 0 1.873.286 2.545.875.657.576.976 1.347.976 2.354Zm15.159-7.833 10.527 15.23v-15.23h5.776v25.251h-5.086l-10.98-15.86v15.86h-5.759v-25.251h5.522Zm33.949 16.461-5.29-16.461h-7.894v25.251h5.809v-16.266l5.124 16.266h4.485l5.162-16.357v16.357h5.826v-25.251h-7.878l-5.344 16.461Zm33.727-1.459h-10.298v5.206l12.046.016v5.027h-17.806v-25.251h17.636l-.021 4.99h-11.818v5.089h10.261v4.923Zm21.494.228-10.523-15.23h-5.527v25.251h5.756v-15.86l10.979 15.86h5.087v-25.251h-5.772v15.23Zm15.586-10.004h-7.388v-5.226h20.402v5.226h-7.217v20.025h-5.797v-20.025Z",
|
|
18762
|
-
className:
|
|
18762
|
+
className: clsx13(
|
|
18763
|
+
logoType === "default" && "fill-nsw-blue-800 dark:fill-white",
|
|
18764
|
+
(logoType === "reversed" || logoType === "mono-white") && "fill-white",
|
|
18765
|
+
logoType === "mono-black" && "fill-black dark:fill-white"
|
|
18766
|
+
)
|
|
18763
18767
|
}
|
|
18764
18768
|
),
|
|
18765
18769
|
/* @__PURE__ */ jsx(
|
|
@@ -18768,21 +18772,33 @@ function Logo(props) {
|
|
|
18768
18772
|
fillRule: "evenodd",
|
|
18769
18773
|
clipRule: "evenodd",
|
|
18770
18774
|
d: "M146.699 209.236c-1.482-2.395-3.717-4.571-6.64-6.465-2.919-1.894-6.897-3.34-11.81-4.297l-13.678-2.814c-4.132-.891-6.981-2.043-8.468-3.419-1.449-1.343-2.184-3.129-2.184-5.309 0-1.388.316-2.652.943-3.759.623-1.111 1.528-2.093 2.687-2.922 1.166-.828 2.616-1.483 4.306-1.943 1.711-.469 3.633-.705 5.714-.705 2.74 0 5.211.361 7.346 1.078 2.109.713 3.857 1.881 5.194 3.481 1.338 1.6 2.16 3.775 2.442 6.465l.038.373h16.971l-.008-.427c-.075-4.575-1.371-8.773-3.85-12.474-2.483-3.705-6.141-6.681-10.879-8.852-4.726-2.164-10.623-3.262-17.528-3.262-5.801 0-11.117 1.011-15.805 3.009-4.7 2.002-8.475 4.89-11.212 8.587-2.749 3.717-4.12 8.164-4.078 13.224.112 6.175 1.99 11.186 5.577 14.903 3.576 3.697 8.476 6.158 14.567 7.306l13.795 2.81c2.529.502 4.825 1.16 6.823 1.96 1.96.784 3.525 1.803 4.651 3.03 1.1 1.197 1.657 2.772 1.657 4.67 0 2.114-.694 3.9-2.06 5.301-1.4 1.434-3.301 2.515-5.643 3.224-2.388.721-5.058 1.086-7.936 1.086-2.807 0-5.394-.435-7.686-1.297-2.28-.85-4.194-2.093-5.689-3.693-1.491-1.591-2.513-3.585-3.04-5.918l-.075-.327H83.846l.045.46c.407 4.045 1.666 7.629 3.738 10.659 2.068 3.009 4.717 5.545 7.873 7.551 3.148 1.993 6.677 3.514 10.494 4.513a46.33 46.33 0 0 0 11.693 1.5c6.466 0 12.2-1.019 17.046-3.034 4.867-2.022 8.717-4.807 11.449-8.276 2.753-3.493 4.148-7.476 4.148-11.848 0-2.064-.232-4.36-.697-6.822-.478-2.482-1.466-4.948-2.936-7.327ZM25.937 191.763l36.916 53.312H77.87v-79.724H61.072v51.282L25.754 165.53l-.125-.179H9.19v79.724h16.748v-53.312Zm196.637 24.577 14.388-50.987h16.457l-23.587 79.724h-13.367l-14.554-50.469-14.659 50.469h-13.147l-23.533-79.724h16.511l14.384 50.979 14.389-50.979h12.167l14.551 50.987Z",
|
|
18771
|
-
className:
|
|
18775
|
+
className: clsx13(
|
|
18776
|
+
logoType === "default" && "fill-nsw-blue-800 dark:fill-white",
|
|
18777
|
+
(logoType === "reversed" || logoType === "mono-white") && "fill-white",
|
|
18778
|
+
logoType === "mono-black" && "fill-black dark:fill-white"
|
|
18779
|
+
)
|
|
18772
18780
|
}
|
|
18773
18781
|
),
|
|
18774
18782
|
/* @__PURE__ */ jsx(
|
|
18775
18783
|
"path",
|
|
18776
18784
|
{
|
|
18777
18785
|
d: "M122.291 145.572c-19.75-2.424-38.934 3.904-72.69-5.263-3.447-.937-4.718 2.694-2.854 5.736 9.07 14.803 54.881 3.203 75.635 1.065.906-.095.814-1.426-.091-1.538ZM208.735 140.309c-33.756 9.167-52.941 2.839-72.691 5.263-.905.112-1 1.447-.091 1.538 20.759 2.138 66.566 13.738 75.635-1.065 1.864-3.042.594-6.673-2.853-5.736ZM59.882 119.132c-6.864-10.058-12.474-21.31-16.818-33.69-13.101 3.826-26.51 9.346-40.16 16.57a5.388 5.388 0 0 0-2.902 4.67 5.38 5.38 0 0 0 2.653 4.812c26.431 15.802 52.273 24.841 76.93 26.933-7.34-4.475-14.072-11.044-19.703-19.295ZM23.059 85.513a201.529 201.529 0 0 1 17.976-6.233c-2.126-6.896-3.87-14.12-5.249-21.658-6.827-.85-13.89-1.4-21.199-1.641-.062 0-.128-.004-.19-.004a5.391 5.391 0 0 0-4.647 2.602 5.383 5.383 0 0 0-.12 5.483c4.243 7.659 8.724 14.808 13.429 21.45ZM88.005 135.572c4.099 1.807 8.293 2.818 12.358 3.029-9.953-7.12-17.773-19.192-22.278-34.58-5.805-19.81-7.745-41.666-5.83-65.247-7.832-4.936-16.32-9.557-25.46-13.85a5.428 5.428 0 0 0-5.402.43 5.396 5.396 0 0 0-2.388 4.841c2.126 34.215 10.95 62.915 26.223 85.298 6.404 9.391 14.281 16.332 22.777 20.079ZM107.488 23.577A253.323 253.323 0 0 0 92.235 6.735c-1.063-1.078-2.433-1.65-3.85-1.65-.506 0-1.017.075-1.523.224-1.923.568-3.314 2.106-3.733 4.115-1.072 5.164-3.11 15.69-4.012 26.101 7.014 4.613 13.492 9.49 19.426 14.621 2.3-8.757 5.29-17.63 8.945-26.569ZM255.42 102.007c-13.65-7.223-27.058-12.744-40.16-16.569-4.343 12.38-9.953 23.631-16.818 33.689-5.63 8.255-12.362 14.82-19.708 19.296 24.658-2.093 50.5-11.132 76.931-26.934 1.715-1.024 2.707-2.822 2.653-4.811-.045-1.99-1.133-3.734-2.898-4.671ZM235.273 85.513c4.705-6.643 9.186-13.796 13.43-21.455.963-1.74.922-3.788-.121-5.483a5.4 5.4 0 0 0-4.837-2.598c-7.309.24-14.377.796-21.199 1.641-1.375 7.539-3.123 14.762-5.249 21.658a203.803 203.803 0 0 1 17.976 6.237ZM180.247 104.025c-4.505 15.384-12.329 27.46-22.278 34.58 4.065-.211 8.263-1.227 12.358-3.034 8.496-3.746 16.373-10.688 22.777-20.075 15.273-22.383 24.097-51.082 26.223-85.297a5.394 5.394 0 0 0-2.388-4.84 5.428 5.428 0 0 0-5.402-.432c-9.14 4.29-17.628 8.91-25.46 13.85 1.915 23.582-.029 45.434-5.83 65.248ZM179.214 35.52c-.901-10.406-2.94-20.932-4.011-26.1-.416-2.01-1.811-3.547-3.733-4.115a5.39 5.39 0 0 0-1.524-.224c-1.416 0-2.787.572-3.85 1.65-5.485 5.549-10.568 11.164-15.252 16.842 3.654 8.939 6.644 17.812 8.949 26.565 5.934-5.127 12.407-10.005 19.421-14.617ZM129.144 87.229c6.64-13.092 17.246-24.829 25.21-32.243-4.372-17.779-11.104-34.55-20.397-52.097C132.998 1.078 131.195 0 129.148 0s-3.845 1.082-4.808 2.889c-9.389 17.604-16.237 35.122-20.377 52.093 8.313 7.688 19.28 20.224 25.181 32.247Z",
|
|
18778
|
-
className:
|
|
18786
|
+
className: clsx13(
|
|
18787
|
+
(logoType === "default" || logoType === "reversed") && "fill-nsw-red-600 dark:fill-white",
|
|
18788
|
+
logoType === "mono-white" && "fill-white",
|
|
18789
|
+
logoType === "mono-black" && "fill-black dark:fill-white"
|
|
18790
|
+
)
|
|
18779
18791
|
}
|
|
18780
18792
|
),
|
|
18781
18793
|
/* @__PURE__ */ jsx(
|
|
18782
18794
|
"path",
|
|
18783
18795
|
{
|
|
18784
18796
|
d: "M153.541 133.686c6.885-4.833 13.77-13.254 18.139-24.97 8.458-22.681 9.334-47.945 8.122-65.823-15.331 10.215-39.665 31.55-47.975 54.36-3.911 10.734-5.734 25.355-2.72 33.511 1.259 3.411 3.401 5.997 6.345 7.227 4.46 1.865 11.312.456 18.089-4.305ZM125.713 95.261c-2.027-4.724-4.261-9.18-7.728-14.186-9.809-14.16-23.026-26.933-39.475-38.185-.17 2.652-2.57 31.297 5.851 59.304 6.408 21.302 17.354 29.98 23.354 33.333 6.038 3.369 11.561 4.165 18.039 2.557-6.565-8.935-5.747-27.27-.041-42.823Z",
|
|
18785
|
-
className:
|
|
18797
|
+
className: clsx13(
|
|
18798
|
+
(logoType === "default" || logoType === "reversed") && "fill-nsw-red-600 dark:fill-white",
|
|
18799
|
+
logoType === "mono-white" && "fill-white",
|
|
18800
|
+
logoType === "mono-black" && "fill-black dark:fill-white"
|
|
18801
|
+
)
|
|
18786
18802
|
}
|
|
18787
18803
|
)
|
|
18788
18804
|
] })
|
|
@@ -18871,7 +18887,8 @@ function Header2({
|
|
|
18871
18887
|
version = false,
|
|
18872
18888
|
hide = {},
|
|
18873
18889
|
altLogo,
|
|
18874
|
-
altDescriptor
|
|
18890
|
+
altDescriptor,
|
|
18891
|
+
className
|
|
18875
18892
|
}) {
|
|
18876
18893
|
const [isScrolled, setIsScrolled] = useState(false);
|
|
18877
18894
|
const {
|
|
@@ -18898,10 +18915,11 @@ function Header2({
|
|
|
18898
18915
|
"data-slot": "header",
|
|
18899
18916
|
"data-scrolled": isScrolled,
|
|
18900
18917
|
id: "nsw-header",
|
|
18901
|
-
className:
|
|
18918
|
+
className: clsx13(
|
|
18902
18919
|
"sticky top-0 z-50 hidden bg-white px-4 py-5 transition duration-500 sm:px-6 lg:flex lg:flex-none lg:flex-wrap lg:items-center lg:justify-between lg:px-12",
|
|
18903
18920
|
!hideShadow && "shadow-md shadow-slate-900/5 dark:shadow-none",
|
|
18904
|
-
isScrolled ? "dark:bg-slate-900/95 dark:backdrop-blur-sm dark:[@supports(backdrop-filter:blur(0))]:bg-slate-900/75" : "dark:bg-transparent"
|
|
18921
|
+
isScrolled ? "dark:bg-slate-900/95 dark:backdrop-blur-sm dark:[@supports(backdrop-filter:blur(0))]:bg-slate-900/75" : "dark:bg-transparent",
|
|
18922
|
+
className
|
|
18905
18923
|
),
|
|
18906
18924
|
children: [
|
|
18907
18925
|
/* @__PURE__ */ jsxs("div", { className: "relative flex grow basis-0 items-center", children: [
|
|
@@ -19814,7 +19832,7 @@ function Listbox2({
|
|
|
19814
19832
|
autoFocus,
|
|
19815
19833
|
"data-slot": "control",
|
|
19816
19834
|
"aria-label": ariaLabel,
|
|
19817
|
-
className:
|
|
19835
|
+
className: clsx13([
|
|
19818
19836
|
className,
|
|
19819
19837
|
// Basic layout
|
|
19820
19838
|
"group relative block w-full",
|
|
@@ -19838,7 +19856,7 @@ function Listbox2({
|
|
|
19838
19856
|
as: "span",
|
|
19839
19857
|
options,
|
|
19840
19858
|
placeholder: placeholder && /* @__PURE__ */ jsx("span", { className: "block truncate text-grey-500", children: placeholder }),
|
|
19841
|
-
className:
|
|
19859
|
+
className: clsx13([
|
|
19842
19860
|
"cursor-pointer",
|
|
19843
19861
|
// Basic layout
|
|
19844
19862
|
"relative block w-full appearance-none rounded-sm py-[calc(--spacing(4.5)-1px)] sm:py-[calc(--spacing(3.5)-1px)]",
|
|
@@ -19868,7 +19886,7 @@ function Listbox2({
|
|
|
19868
19886
|
{
|
|
19869
19887
|
transition: true,
|
|
19870
19888
|
anchor: "selection start",
|
|
19871
|
-
className:
|
|
19889
|
+
className: clsx13(
|
|
19872
19890
|
// Anchor positioning
|
|
19873
19891
|
"[--anchor-offset:-1.625rem] [--anchor-padding:--spacing(4)] sm:[--anchor-offset:-1.375rem]",
|
|
19874
19892
|
// Base styles
|
|
@@ -19894,7 +19912,7 @@ function ListboxOption2({
|
|
|
19894
19912
|
className,
|
|
19895
19913
|
...props
|
|
19896
19914
|
}) {
|
|
19897
|
-
const sharedClasses =
|
|
19915
|
+
const sharedClasses = clsx13(
|
|
19898
19916
|
// Base
|
|
19899
19917
|
"flex min-w-0 items-center",
|
|
19900
19918
|
// Icons
|
|
@@ -19906,12 +19924,12 @@ function ListboxOption2({
|
|
|
19906
19924
|
);
|
|
19907
19925
|
return /* @__PURE__ */ jsx(Headless4.ListboxOption, { as: Fragment$1, ...props, children: ({ selectedOption }) => {
|
|
19908
19926
|
if (selectedOption) {
|
|
19909
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
19927
|
+
return /* @__PURE__ */ jsx("div", { className: clsx13(className, sharedClasses), children });
|
|
19910
19928
|
}
|
|
19911
19929
|
return /* @__PURE__ */ jsxs(
|
|
19912
19930
|
"div",
|
|
19913
19931
|
{
|
|
19914
|
-
className:
|
|
19932
|
+
className: clsx13(
|
|
19915
19933
|
// Basic layout
|
|
19916
19934
|
"group/option grid cursor-pointer grid-cols-[--spacing(5)_1fr] items-baseline gap-x-2 rounded-sm py-2.5 pr-3.5 pl-2 sm:grid-cols-[--spacing(4)_1fr] sm:py-1.5 sm:pr-3 sm:pl-1.5",
|
|
19917
19935
|
// Typography
|
|
@@ -19942,7 +19960,7 @@ function ListboxOption2({
|
|
|
19942
19960
|
)
|
|
19943
19961
|
}
|
|
19944
19962
|
),
|
|
19945
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
19963
|
+
/* @__PURE__ */ jsx("span", { className: clsx13(className, sharedClasses, "col-start-2"), children })
|
|
19946
19964
|
]
|
|
19947
19965
|
}
|
|
19948
19966
|
);
|
|
@@ -19953,7 +19971,7 @@ function ListboxLabel({ className, ...props }) {
|
|
|
19953
19971
|
"span",
|
|
19954
19972
|
{
|
|
19955
19973
|
...props,
|
|
19956
|
-
className:
|
|
19974
|
+
className: clsx13(className, "ml-2.5 truncate first:ml-0 sm:ml-2 sm:first:ml-0")
|
|
19957
19975
|
}
|
|
19958
19976
|
);
|
|
19959
19977
|
}
|
|
@@ -19966,7 +19984,7 @@ function ListboxDescription({
|
|
|
19966
19984
|
"span",
|
|
19967
19985
|
{
|
|
19968
19986
|
...props,
|
|
19969
|
-
className:
|
|
19987
|
+
className: clsx13(
|
|
19970
19988
|
className,
|
|
19971
19989
|
"flex flex-1 overflow-hidden text-grey-500 group-data-focus/option:text-white before:w-2 before:min-w-0 before:shrink dark:text-grey-400"
|
|
19972
19990
|
),
|
|
@@ -20049,7 +20067,7 @@ function Text({ className, trim = "normal", size = 2, label = false, ...props })
|
|
|
20049
20067
|
{
|
|
20050
20068
|
"data-slot": "text",
|
|
20051
20069
|
...props,
|
|
20052
|
-
className:
|
|
20070
|
+
className: clsx13(className, trimClasses[trim], "text-grey-800 dark:text-grey-400", sizeClass)
|
|
20053
20071
|
}
|
|
20054
20072
|
);
|
|
20055
20073
|
}
|
|
@@ -20058,7 +20076,7 @@ function TextLink({ className, ...props }) {
|
|
|
20058
20076
|
Link,
|
|
20059
20077
|
{
|
|
20060
20078
|
...props,
|
|
20061
|
-
className:
|
|
20079
|
+
className: clsx13(
|
|
20062
20080
|
className,
|
|
20063
20081
|
"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"
|
|
20064
20082
|
)
|
|
@@ -20066,7 +20084,7 @@ function TextLink({ className, ...props }) {
|
|
|
20066
20084
|
);
|
|
20067
20085
|
}
|
|
20068
20086
|
function Strong({ className, ...props }) {
|
|
20069
|
-
return /* @__PURE__ */ jsx("strong", { ...props, className:
|
|
20087
|
+
return /* @__PURE__ */ jsx("strong", { ...props, className: clsx13(className, "font-medium text-grey-950 dark:text-white") });
|
|
20070
20088
|
}
|
|
20071
20089
|
function Code({ className, ...props }) {
|
|
20072
20090
|
const hasLanguageClass = typeof className === "string" && className.includes("language-");
|
|
@@ -20074,7 +20092,7 @@ function Code({ className, ...props }) {
|
|
|
20074
20092
|
"code",
|
|
20075
20093
|
{
|
|
20076
20094
|
...props,
|
|
20077
|
-
className:
|
|
20095
|
+
className: clsx13(
|
|
20078
20096
|
className,
|
|
20079
20097
|
!hasLanguageClass && "language-plaintext",
|
|
20080
20098
|
"text-sm sm:text-[0.8125rem]"
|
|
@@ -20645,7 +20663,7 @@ function MultiLevelPushMenu({
|
|
|
20645
20663
|
{
|
|
20646
20664
|
href: item.href,
|
|
20647
20665
|
onClick: (e) => handleItemClick(item, e),
|
|
20648
|
-
className:
|
|
20666
|
+
className: clsx13(
|
|
20649
20667
|
"relative flex w-full cursor-pointer items-center justify-between gap-x-6 border-l p-4 transition-colors hover:border-primary-800 hover:bg-primary-800/10",
|
|
20650
20668
|
pathname === item.href ? "border-primary-800 bg-primary-800/10 font-semibold text-primary-800" : "border-transparent text-grey-800",
|
|
20651
20669
|
isAnimating && "pointer-events-none"
|
|
@@ -20657,7 +20675,7 @@ function MultiLevelPushMenu({
|
|
|
20657
20675
|
{
|
|
20658
20676
|
onClick: (e) => handleItemClick(item, e),
|
|
20659
20677
|
disabled: isAnimating,
|
|
20660
|
-
className:
|
|
20678
|
+
className: clsx13(
|
|
20661
20679
|
"relative flex w-full cursor-pointer items-center justify-between gap-x-6 border-l p-4 transition-colors hover:border-primary-800 hover:bg-primary-800/10",
|
|
20662
20680
|
pathname === item.href ? "border-primary-800 bg-primary-800/10 font-semibold text-primary-800" : "border-transparent text-grey-800",
|
|
20663
20681
|
isAnimating && "pointer-events-none"
|
|
@@ -20724,7 +20742,7 @@ function MobileHeader({
|
|
|
20724
20742
|
/* @__PURE__ */ jsxs(
|
|
20725
20743
|
"div",
|
|
20726
20744
|
{
|
|
20727
|
-
className:
|
|
20745
|
+
className: clsx13(
|
|
20728
20746
|
"relative flex w-full items-center py-4",
|
|
20729
20747
|
menu && !search && "justify-start",
|
|
20730
20748
|
search && "justify-between",
|
|
@@ -20740,7 +20758,7 @@ function MobileHeader({
|
|
|
20740
20758
|
{
|
|
20741
20759
|
href: "/",
|
|
20742
20760
|
"aria-label": "Home page",
|
|
20743
|
-
className:
|
|
20761
|
+
className: clsx13(
|
|
20744
20762
|
"flex items-center",
|
|
20745
20763
|
menu && !search && "justify-start",
|
|
20746
20764
|
search && !menu && "flex-row justify-between",
|
|
@@ -20751,7 +20769,7 @@ function MobileHeader({
|
|
|
20751
20769
|
/* @__PURE__ */ jsxs(
|
|
20752
20770
|
"div",
|
|
20753
20771
|
{
|
|
20754
|
-
className:
|
|
20772
|
+
className: clsx13(
|
|
20755
20773
|
"flex flex-wrap items-center",
|
|
20756
20774
|
menu && !search && "justify-center text-left",
|
|
20757
20775
|
search && !menu && "justify-center text-left",
|
|
@@ -28762,7 +28780,7 @@ var featureBundle = {
|
|
|
28762
28780
|
// node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs
|
|
28763
28781
|
var motion = /* @__PURE__ */ createMotionProxy(featureBundle, createDomVisualElement);
|
|
28764
28782
|
function Navbar({ className, ...props }) {
|
|
28765
|
-
return /* @__PURE__ */ jsx("nav", { ...props, className:
|
|
28783
|
+
return /* @__PURE__ */ jsx("nav", { ...props, className: clsx13(className, "flex flex-1 items-center gap-4 py-2.5") });
|
|
28766
28784
|
}
|
|
28767
28785
|
function NavbarDivider({ className, ...props }) {
|
|
28768
28786
|
return /* @__PURE__ */ jsx(
|
|
@@ -28770,16 +28788,16 @@ function NavbarDivider({ className, ...props }) {
|
|
|
28770
28788
|
{
|
|
28771
28789
|
"aria-hidden": "true",
|
|
28772
28790
|
...props,
|
|
28773
|
-
className:
|
|
28791
|
+
className: clsx13(className, "h-6 w-px bg-zinc-950/10 dark:bg-white/10")
|
|
28774
28792
|
}
|
|
28775
28793
|
);
|
|
28776
28794
|
}
|
|
28777
28795
|
function NavbarSection({ className, ...props }) {
|
|
28778
28796
|
const id3 = useId();
|
|
28779
|
-
return /* @__PURE__ */ jsx(LayoutGroup, { id: id3, children: /* @__PURE__ */ jsx("div", { ...props, className:
|
|
28797
|
+
return /* @__PURE__ */ jsx(LayoutGroup, { id: id3, children: /* @__PURE__ */ jsx("div", { ...props, className: clsx13(className, "flex items-center gap-3") }) });
|
|
28780
28798
|
}
|
|
28781
28799
|
function NavbarSpacer({ className, ...props }) {
|
|
28782
|
-
return /* @__PURE__ */ jsx("div", { "aria-hidden": "true", ...props, className:
|
|
28800
|
+
return /* @__PURE__ */ jsx("div", { "aria-hidden": "true", ...props, className: clsx13(className, "-ml-4 flex-1") });
|
|
28783
28801
|
}
|
|
28784
28802
|
var NavbarItem = forwardRef(function NavbarItem2({
|
|
28785
28803
|
current,
|
|
@@ -28787,7 +28805,7 @@ var NavbarItem = forwardRef(function NavbarItem2({
|
|
|
28787
28805
|
children,
|
|
28788
28806
|
...props
|
|
28789
28807
|
}, ref) {
|
|
28790
|
-
const classes =
|
|
28808
|
+
const classes = clsx13(
|
|
28791
28809
|
// Base
|
|
28792
28810
|
"relative flex min-w-0 items-center gap-3 rounded-lg p-2 text-left text-base/6 font-medium text-zinc-950 sm:text-sm/5",
|
|
28793
28811
|
// Leading icon/icon-only
|
|
@@ -28805,7 +28823,7 @@ var NavbarItem = forwardRef(function NavbarItem2({
|
|
|
28805
28823
|
"dark:data-hover:bg-white/5 dark:data-hover:*:data-[slot=icon]:fill-white",
|
|
28806
28824
|
"dark:data-active:bg-white/5 dark:data-active:*:data-[slot=icon]:fill-white"
|
|
28807
28825
|
);
|
|
28808
|
-
return /* @__PURE__ */ jsxs("span", { className:
|
|
28826
|
+
return /* @__PURE__ */ jsxs("span", { className: clsx13(className, "relative"), children: [
|
|
28809
28827
|
current && /* @__PURE__ */ jsx(
|
|
28810
28828
|
motion.span,
|
|
28811
28829
|
{
|
|
@@ -28826,7 +28844,7 @@ var NavbarItem = forwardRef(function NavbarItem2({
|
|
|
28826
28844
|
Headless4.Button,
|
|
28827
28845
|
{
|
|
28828
28846
|
...props,
|
|
28829
|
-
className:
|
|
28847
|
+
className: clsx13("cursor-default", classes),
|
|
28830
28848
|
"data-current": current ? "true" : void 0,
|
|
28831
28849
|
ref,
|
|
28832
28850
|
children: /* @__PURE__ */ jsx(TouchTarget, { children })
|
|
@@ -28835,14 +28853,14 @@ var NavbarItem = forwardRef(function NavbarItem2({
|
|
|
28835
28853
|
] });
|
|
28836
28854
|
});
|
|
28837
28855
|
function NavbarLabel({ className, ...props }) {
|
|
28838
|
-
return /* @__PURE__ */ jsx("span", { ...props, className:
|
|
28856
|
+
return /* @__PURE__ */ jsx("span", { ...props, className: clsx13(className, "truncate") });
|
|
28839
28857
|
}
|
|
28840
28858
|
function Navigation({
|
|
28841
28859
|
className,
|
|
28842
28860
|
onLinkClick,
|
|
28843
28861
|
navigation
|
|
28844
28862
|
}) {
|
|
28845
|
-
return /* @__PURE__ */ jsx("nav", { className:
|
|
28863
|
+
return /* @__PURE__ */ jsx("nav", { className: clsx13("text-base lg:text-sm", className), children: /* @__PURE__ */ jsx("ul", { role: "list", className: "flex flex-col gap-9", children: navigation.map((section, index) => /* @__PURE__ */ jsxs("li", { children: [
|
|
28846
28864
|
section.links ? /* @__PURE__ */ jsx("h2", { className: "font-display font-medium text-grey-800 dark:text-white", children: section.title }) : /* @__PURE__ */ jsx("ul", { role: "list", className: "mt-2 flex flex-col gap-2 border-l lg:mt-4", children: /* @__PURE__ */ jsx("li", { className: "-ml-px flex flex-col items-start gap-2", children: /* @__PURE__ */ jsx(
|
|
28847
28865
|
NavigationLink,
|
|
28848
28866
|
{
|
|
@@ -28865,7 +28883,7 @@ function NavigationLink({
|
|
|
28865
28883
|
{
|
|
28866
28884
|
href,
|
|
28867
28885
|
onClick,
|
|
28868
|
-
className:
|
|
28886
|
+
className: clsx13(
|
|
28869
28887
|
"inline-block w-full cursor-pointer rounded-r-sm border-l py-1 pr-2 pl-4 text-left text-base/8 sm:text-sm/6",
|
|
28870
28888
|
"hover:border-grey-950 hover:bg-primary-800/10 hover:font-semibold hover:text-grey-950",
|
|
28871
28889
|
"dark:text-grey-400 dark:hover:border-grey-400 dark:hover:text-white",
|
|
@@ -29041,7 +29059,7 @@ function NotFound() {
|
|
|
29041
29059
|
}
|
|
29042
29060
|
var styles4 = {
|
|
29043
29061
|
base: [
|
|
29044
|
-
"group relative mx-auto flex items-stretch w-full max-w-md flex-col overflow-hidden rounded-
|
|
29062
|
+
"group relative mx-auto flex items-stretch w-full max-w-md flex-col overflow-hidden rounded-[var(--nsw-border-radius)] hover:cursor-pointer",
|
|
29045
29063
|
"bg-(--nsw-card-bg) text-(--nsw-card-text)",
|
|
29046
29064
|
"focus:outline focus:outline-2 focus:outline-offset-2 focus:outline-primary-600",
|
|
29047
29065
|
"transition-colors duration-150 ease-out motion-reduce:transition-none",
|
|
@@ -29053,17 +29071,17 @@ var styles4 = {
|
|
|
29053
29071
|
"",
|
|
29054
29072
|
'data-[has-image=false]:after:content-[""]',
|
|
29055
29073
|
"data-[has-image=false]:after:absolute data-[has-image=false]:after:inset-x-0 data-[has-image=false]:after:top-0 data-[has-image=false]:after:h-1",
|
|
29056
|
-
"data-[has-image=false]:after:pointer-events-none data-[has-image=false]:after:z-10 data-[has-image=false]:after:rounded-t-
|
|
29074
|
+
"data-[has-image=false]:after:pointer-events-none data-[has-image=false]:after:z-10 data-[has-image=false]:after:rounded-t-[inherit]",
|
|
29057
29075
|
"data-[has-image=false]:after:bg-[var(--nsw-card-top-border-base)]",
|
|
29058
29076
|
"data-[has-image=false]:hover:after:bg-[var(--nsw-card-top-border-hover)]"
|
|
29059
29077
|
],
|
|
29060
29078
|
headline: ["", ""],
|
|
29061
29079
|
colors: {
|
|
29062
29080
|
white: [
|
|
29063
|
-
"[--nsw-card-bg:white] [--nsw-card-border:var(--color-grey-200)] [--nsw-card-text:grey-800]
|
|
29081
|
+
"[--nsw-card-bg:white] [--nsw-card-border:var(--color-grey-200)] [--nsw-card-text:grey-800]",
|
|
29064
29082
|
"hover:[--nsw-card-bg:var(--color-primary-800)] hover:[--nsw-card-border:var(--color-primary-800)] hover:[--nsw-card-text:white]",
|
|
29065
29083
|
// Dark mode
|
|
29066
|
-
"dark:[--nsw-card-bg:var(--color-grey-850)] dark:[--nsw-card-border:var(--color-grey-700)] dark:[--nsw-card-text:var(--color-grey-100)]
|
|
29084
|
+
"dark:[--nsw-card-bg:var(--color-grey-850)] dark:[--nsw-card-border:var(--color-grey-700)] dark:[--nsw-card-text:var(--color-grey-100)]",
|
|
29067
29085
|
// Dark mode hover
|
|
29068
29086
|
"dark:hover:[--nsw-card-bg:var(--color-primary-600)] dark:hover:[--nsw-card-border:var(--color-primary-600)] dark:hover:[--nsw-card-text:white]",
|
|
29069
29087
|
// 🔧 top-border color pair for highlight (base + hover)
|
|
@@ -29225,33 +29243,34 @@ NSWCardArrow.displayName = "NSWCardArrow";
|
|
|
29225
29243
|
function NSWCardImg({
|
|
29226
29244
|
imgSrc,
|
|
29227
29245
|
imgAlt,
|
|
29246
|
+
border = false,
|
|
29247
|
+
highlight = false,
|
|
29228
29248
|
className,
|
|
29229
29249
|
...props
|
|
29230
29250
|
}) {
|
|
29231
|
-
return /* @__PURE__ */
|
|
29232
|
-
|
|
29233
|
-
|
|
29234
|
-
|
|
29235
|
-
|
|
29236
|
-
|
|
29237
|
-
|
|
29238
|
-
|
|
29239
|
-
|
|
29240
|
-
|
|
29241
|
-
|
|
29242
|
-
|
|
29243
|
-
|
|
29244
|
-
|
|
29245
|
-
|
|
29246
|
-
|
|
29247
|
-
"
|
|
29248
|
-
|
|
29249
|
-
|
|
29250
|
-
|
|
29251
|
-
|
|
29252
|
-
|
|
29253
|
-
|
|
29254
|
-
] });
|
|
29251
|
+
return /* @__PURE__ */ jsx(
|
|
29252
|
+
"div",
|
|
29253
|
+
{
|
|
29254
|
+
className: cn(
|
|
29255
|
+
"relative w-full",
|
|
29256
|
+
border && !highlight && "after:pointer-events-none after:absolute after:inset-0 after:rounded-[var(--nsw-border-radius)] after:rounded-b-none after:shadow-[inset_0_1px_0_var(--nsw-card-border),inset_1px_0_0_var(--nsw-card-border),inset_-1px_0_0_var(--nsw-card-border)] after:content-['']",
|
|
29257
|
+
!border && highlight && "after:pointer-events-none after:absolute after:inset-x-0 after:bottom-0 after:h-1 after:bg-[var(--nsw-card-top-border-base)] after:content-[''] group-hover:after:bg-[var(--nsw-card-top-border-hover)]",
|
|
29258
|
+
border && highlight && "shadow-[-1px_0_0_0_var(--nsw-card-border),1px_0_0_0_var(--nsw-card-border),0_-1px_0_0_var(--nsw-card-border),0_4px_0_0_var(--nsw-card-top-border-base)] group-hover:shadow-[-1px_0_0_0_var(--nsw-card-border),1px_0_0_0_var(--nsw-card-border),0_-1px_0_0_var(--nsw-card-border),0_4px_0_0_var(--nsw-card-top-border-hover)]",
|
|
29259
|
+
className
|
|
29260
|
+
),
|
|
29261
|
+
...props,
|
|
29262
|
+
children: /* @__PURE__ */ jsx(
|
|
29263
|
+
Image2,
|
|
29264
|
+
{
|
|
29265
|
+
alt: imgAlt,
|
|
29266
|
+
src: imgSrc,
|
|
29267
|
+
className: "aspect-video w-full object-cover sm:aspect-2/1 lg:aspect-3/2",
|
|
29268
|
+
width: 400,
|
|
29269
|
+
height: 300
|
|
29270
|
+
}
|
|
29271
|
+
)
|
|
29272
|
+
}
|
|
29273
|
+
);
|
|
29255
29274
|
}
|
|
29256
29275
|
NSWCardImg.displayName = "NSWCardImg";
|
|
29257
29276
|
function NSWCardIcon({
|
|
@@ -29273,6 +29292,7 @@ NSWCardIcon.displayName = "NSWCardIcon";
|
|
|
29273
29292
|
function NSWCard({
|
|
29274
29293
|
children,
|
|
29275
29294
|
topBorder = "var(--color-accent-600)",
|
|
29295
|
+
border = false,
|
|
29276
29296
|
className,
|
|
29277
29297
|
variant,
|
|
29278
29298
|
color: color2,
|
|
@@ -29284,9 +29304,14 @@ function NSWCard({
|
|
|
29284
29304
|
const isCardImg = (child) => React5.isValidElement(child) && (child.type === NSWCardImg || typeof child.type === "function" && child.type.displayName === "NSWCardImg");
|
|
29285
29305
|
const all = React5.Children.toArray(children);
|
|
29286
29306
|
const imageChildren = all.filter(isCardImg).map(
|
|
29287
|
-
(child) => React5.isValidElement(child) ? React5.cloneElement(
|
|
29288
|
-
|
|
29289
|
-
|
|
29307
|
+
(child) => React5.isValidElement(child) ? React5.cloneElement(
|
|
29308
|
+
child,
|
|
29309
|
+
{
|
|
29310
|
+
border,
|
|
29311
|
+
highlight: isHighlight,
|
|
29312
|
+
className: cn(child.props?.className)
|
|
29313
|
+
}
|
|
29314
|
+
) : child
|
|
29290
29315
|
);
|
|
29291
29316
|
const bodyChildren = all.filter((c) => !isCardImg(c));
|
|
29292
29317
|
const hasImage = imageChildren.length > 0;
|
|
@@ -29298,6 +29323,7 @@ function NSWCard({
|
|
|
29298
29323
|
"data-color": color2,
|
|
29299
29324
|
"data-size": size,
|
|
29300
29325
|
"data-has-image": hasImage ? "true" : "false",
|
|
29326
|
+
"data-border": border ? "true" : "false",
|
|
29301
29327
|
style: isHighlight && topBorder ? { ["--nsw-card-top-border-base"]: topBorder } : void 0,
|
|
29302
29328
|
className: classes,
|
|
29303
29329
|
...props,
|
|
@@ -29307,7 +29333,7 @@ function NSWCard({
|
|
|
29307
29333
|
"div",
|
|
29308
29334
|
{
|
|
29309
29335
|
className: cn(
|
|
29310
|
-
"h-full rounded-
|
|
29336
|
+
"h-full rounded-[inherit] border border-(--nsw-card-border)",
|
|
29311
29337
|
hasImage && "border-t-none rounded-t-none"
|
|
29312
29338
|
),
|
|
29313
29339
|
children: /* @__PURE__ */ jsx("div", { className: "flex h-full flex-col p-8", children: bodyChildren })
|
|
@@ -29319,7 +29345,7 @@ function NSWCard({
|
|
|
29319
29345
|
"div",
|
|
29320
29346
|
{
|
|
29321
29347
|
className: cn(
|
|
29322
|
-
"flex h-full flex-col rounded-
|
|
29348
|
+
"flex h-full flex-col rounded-[inherit] border border-(--nsw-card-border) p-8",
|
|
29323
29349
|
hasImage && "border-t-none rounded-t-none"
|
|
29324
29350
|
),
|
|
29325
29351
|
children: bodyChildren
|
|
@@ -29338,7 +29364,7 @@ function Wrapper({
|
|
|
29338
29364
|
return /* @__PURE__ */ jsx(
|
|
29339
29365
|
"div",
|
|
29340
29366
|
{
|
|
29341
|
-
className:
|
|
29367
|
+
className: clsx13("max-w-8xl mx-auto space-y-8 px-4 py-6 sm:px-6 lg:px-12", className),
|
|
29342
29368
|
...props,
|
|
29343
29369
|
children
|
|
29344
29370
|
}
|
|
@@ -29352,7 +29378,7 @@ function PageHeading({
|
|
|
29352
29378
|
return /* @__PURE__ */ jsx(
|
|
29353
29379
|
"header",
|
|
29354
29380
|
{
|
|
29355
|
-
className:
|
|
29381
|
+
className: clsx13(
|
|
29356
29382
|
"border-b border-grey-300 bg-white dark:border-grey-700 dark:bg-grey-900",
|
|
29357
29383
|
className
|
|
29358
29384
|
),
|
|
@@ -29379,7 +29405,7 @@ function Pagination({
|
|
|
29379
29405
|
children,
|
|
29380
29406
|
...props
|
|
29381
29407
|
}) {
|
|
29382
|
-
return /* @__PURE__ */ jsx("nav", { "aria-label": ariaLabel, className:
|
|
29408
|
+
return /* @__PURE__ */ jsx("nav", { "aria-label": ariaLabel, className: clsx13(containerStyles[variant], className), ...props, children: /* @__PURE__ */ jsx(PaginationVariantContext.Provider, { value: variant, children }) });
|
|
29383
29409
|
}
|
|
29384
29410
|
function PaginationPrevious({ href = null, className, children = "Previous" }) {
|
|
29385
29411
|
const variant = React5.useContext(PaginationVariantContext);
|
|
@@ -29402,7 +29428,7 @@ function PaginationPrevious({ href = null, className, children = "Previous" }) {
|
|
|
29402
29428
|
}
|
|
29403
29429
|
) });
|
|
29404
29430
|
}
|
|
29405
|
-
return /* @__PURE__ */ jsx("span", { className:
|
|
29431
|
+
return /* @__PURE__ */ jsx("span", { className: clsx13(className, "grow basis-0"), children: /* @__PURE__ */ jsxs(
|
|
29406
29432
|
Button2,
|
|
29407
29433
|
{
|
|
29408
29434
|
...href === null ? { disabled: true } : { href },
|
|
@@ -29436,7 +29462,7 @@ function PaginationNext({ href = null, className, children = "Next" }) {
|
|
|
29436
29462
|
}
|
|
29437
29463
|
) });
|
|
29438
29464
|
}
|
|
29439
|
-
return /* @__PURE__ */ jsx("span", { className:
|
|
29465
|
+
return /* @__PURE__ */ jsx("span", { className: clsx13(className, "flex grow basis-0 justify-end"), children: /* @__PURE__ */ jsxs(
|
|
29440
29466
|
Button2,
|
|
29441
29467
|
{
|
|
29442
29468
|
...href === null ? { disabled: true } : { href },
|
|
@@ -29452,9 +29478,9 @@ function PaginationNext({ href = null, className, children = "Next" }) {
|
|
|
29452
29478
|
function PaginationList({ className, ...props }) {
|
|
29453
29479
|
const variant = React5.useContext(PaginationVariantContext);
|
|
29454
29480
|
if (variant === "line") {
|
|
29455
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
29481
|
+
return /* @__PURE__ */ jsx("div", { className: clsx13(listStyles.line, className), ...props });
|
|
29456
29482
|
}
|
|
29457
|
-
return /* @__PURE__ */ jsx("span", { className:
|
|
29483
|
+
return /* @__PURE__ */ jsx("span", { className: clsx13(listStyles.default, className), ...props });
|
|
29458
29484
|
}
|
|
29459
29485
|
function PaginationPage({
|
|
29460
29486
|
href,
|
|
@@ -29486,7 +29512,7 @@ function PaginationPage({
|
|
|
29486
29512
|
"aria-current": current ? "page" : void 0,
|
|
29487
29513
|
variant: current ? "solid" : "ghost",
|
|
29488
29514
|
color: current ? "accent" : "light",
|
|
29489
|
-
className:
|
|
29515
|
+
className: clsx13(
|
|
29490
29516
|
className,
|
|
29491
29517
|
"leading-none before:absolute before:-inset-px before:rounded-sm",
|
|
29492
29518
|
"min-h-8 min-w-8 sm:px-[calc(--spacing(4))] sm:py-[calc(--spacing(3))]",
|
|
@@ -29507,7 +29533,7 @@ function PaginationGap({
|
|
|
29507
29533
|
"span",
|
|
29508
29534
|
{
|
|
29509
29535
|
"aria-hidden": "true",
|
|
29510
|
-
className:
|
|
29536
|
+
className: clsx13(
|
|
29511
29537
|
"inline-flex items-center border-t-2 border-transparent px-4 pt-4 text-sm font-medium text-grey-800 select-none",
|
|
29512
29538
|
className
|
|
29513
29539
|
),
|
|
@@ -29521,7 +29547,7 @@ function PaginationGap({
|
|
|
29521
29547
|
{
|
|
29522
29548
|
"aria-hidden": "true",
|
|
29523
29549
|
...props,
|
|
29524
|
-
className:
|
|
29550
|
+
className: clsx13(
|
|
29525
29551
|
className,
|
|
29526
29552
|
"w-9 text-center text-sm/6 font-semibold text-grey-950 select-none dark:text-white"
|
|
29527
29553
|
),
|
|
@@ -29541,7 +29567,7 @@ function PrevNextLinksPageLink({
|
|
|
29541
29567
|
Link13,
|
|
29542
29568
|
{
|
|
29543
29569
|
href,
|
|
29544
|
-
className:
|
|
29570
|
+
className: clsx13(
|
|
29545
29571
|
"flex items-center gap-x-1 text-base font-semibold text-slate-500 hover:text-slate-600 dark:text-slate-400 dark:hover:text-slate-300",
|
|
29546
29572
|
dir === "previous" && "flex-row-reverse"
|
|
29547
29573
|
),
|
|
@@ -29550,7 +29576,7 @@ function PrevNextLinksPageLink({
|
|
|
29550
29576
|
/* @__PURE__ */ jsx(
|
|
29551
29577
|
Icons.east,
|
|
29552
29578
|
{
|
|
29553
|
-
className:
|
|
29579
|
+
className: clsx13("size-5 flex-none fill-current", dir === "previous" && "-scale-x-100")
|
|
29554
29580
|
}
|
|
29555
29581
|
)
|
|
29556
29582
|
]
|
|
@@ -29824,7 +29850,7 @@ function Prose({
|
|
|
29824
29850
|
return /* @__PURE__ */ jsx(
|
|
29825
29851
|
Component2,
|
|
29826
29852
|
{
|
|
29827
|
-
className:
|
|
29853
|
+
className: clsx13(
|
|
29828
29854
|
className,
|
|
29829
29855
|
"prose max-w-none dark:!prose-invert",
|
|
29830
29856
|
// headings
|
|
@@ -30596,7 +30622,7 @@ function SidebarNavigation({
|
|
|
30596
30622
|
navigation
|
|
30597
30623
|
}) {
|
|
30598
30624
|
const pathname = usePathname();
|
|
30599
|
-
return /* @__PURE__ */ jsx("nav", { className:
|
|
30625
|
+
return /* @__PURE__ */ jsx("nav", { className: clsx13("text-base lg:text-sm", className), children: /* @__PURE__ */ jsx("ul", { role: "list", className: "flex flex-col gap-9", children: navigation.map((section, sectionIndex) => /* @__PURE__ */ jsxs("li", { children: [
|
|
30600
30626
|
section.links ? /* @__PURE__ */ jsx("h2", { className: "font-display font-medium text-foreground dark:text-white", children: section.title }) : /* @__PURE__ */ jsx(
|
|
30601
30627
|
"ul",
|
|
30602
30628
|
{
|
|
@@ -30631,7 +30657,7 @@ function SidebarLink({ link, pathname, onLinkClick, depth }) {
|
|
|
30631
30657
|
const hasChildren = Array.isArray(link.links) && link.links.length > 0;
|
|
30632
30658
|
const isActive = pathname === link.href;
|
|
30633
30659
|
const isActiveOrHasActiveDescendant = isLinkOrDescendantActive(link, pathname);
|
|
30634
|
-
const baseLinkClasses =
|
|
30660
|
+
const baseLinkClasses = clsx13(
|
|
30635
30661
|
"w-full cursor-pointer rounded-r-sm border-l py-1 pr-2 pl-4 text-left text-base/8 sm:text-sm/6",
|
|
30636
30662
|
"hover:border-grey-950 hover:bg-primary-800/10 hover:font-semibold hover:text-grey-950",
|
|
30637
30663
|
"dark:text-grey-400 dark:hover:border-grey-400 dark:hover:text-white",
|
|
@@ -30641,13 +30667,13 @@ function SidebarLink({ link, pathname, onLinkClick, depth }) {
|
|
|
30641
30667
|
/* @__PURE__ */ jsx(CollapsibleTrigger2, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
30642
30668
|
"button",
|
|
30643
30669
|
{
|
|
30644
|
-
className:
|
|
30670
|
+
className: clsx13(baseLinkClasses, "group flex items-center justify-between gap-1"),
|
|
30645
30671
|
children: [
|
|
30646
30672
|
/* @__PURE__ */ jsx("span", { children: link.title }),
|
|
30647
30673
|
/* @__PURE__ */ jsx(
|
|
30648
30674
|
Icons.chevron_right,
|
|
30649
30675
|
{
|
|
30650
|
-
className:
|
|
30676
|
+
className: clsx13(
|
|
30651
30677
|
"ml-2 size-5 transition-transform duration-200",
|
|
30652
30678
|
"group-data-[state=open]:rotate-90"
|
|
30653
30679
|
)
|
|
@@ -30656,7 +30682,7 @@ function SidebarLink({ link, pathname, onLinkClick, depth }) {
|
|
|
30656
30682
|
]
|
|
30657
30683
|
}
|
|
30658
30684
|
) }),
|
|
30659
|
-
/* @__PURE__ */ jsx(CollapsibleContent2, { children: /* @__PURE__ */ jsx("ul", { className:
|
|
30685
|
+
/* @__PURE__ */ jsx(CollapsibleContent2, { children: /* @__PURE__ */ jsx("ul", { className: clsx13("mt-2 ml-5 flex flex-col gap-1 border-l pl-0"), children: link.links && link.links.map((childLink) => /* @__PURE__ */ jsx(
|
|
30660
30686
|
SidebarLink,
|
|
30661
30687
|
{
|
|
30662
30688
|
link: childLink,
|
|
@@ -30985,7 +31011,7 @@ var StepIndicator = React5.forwardRef(
|
|
|
30985
31011
|
return /* @__PURE__ */ jsx("ul", { role: "list", ref, className: cn("w-full", className), ...props, children: array.map((step, stepIdx) => /* @__PURE__ */ jsx(
|
|
30986
31012
|
"li",
|
|
30987
31013
|
{
|
|
30988
|
-
className:
|
|
31014
|
+
className: clsx13(stepIdx !== array.length - 1 ? "pb-3" : "", "relative"),
|
|
30989
31015
|
children: step.href === pathname && !(step.status === "completed" || step.status === "error" || step.status === "saved" || step.status === "cannot-start") ? /* @__PURE__ */ jsx(Fragment, { children: step.status === "in-progress" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
30990
31016
|
stepIdx !== array.length - 1 ? /* @__PURE__ */ jsx(
|
|
30991
31017
|
"div",
|
|
@@ -31231,7 +31257,7 @@ function StepNavigation({
|
|
|
31231
31257
|
})),
|
|
31232
31258
|
[navigation, formStatus, getStatus]
|
|
31233
31259
|
);
|
|
31234
|
-
return /* @__PURE__ */ jsx("nav", { className:
|
|
31260
|
+
return /* @__PURE__ */ jsx("nav", { className: clsx13("text-base lg:text-sm", className), children: /* @__PURE__ */ jsx("ul", { role: "list", className: "space-y-9", children: navigationWithStatus.map((section) => /* @__PURE__ */ jsxs("li", { children: [
|
|
31235
31261
|
/* @__PURE__ */ jsx("h2", { className: "font-display font-medium text-slate-900 dark:text-white", children: section.title }),
|
|
31236
31262
|
/* @__PURE__ */ jsx(StepIndicator, { className: "mt-2 lg:mt-4", array: section.links })
|
|
31237
31263
|
] }, section.title)) }) });
|
|
@@ -31259,7 +31285,7 @@ function SwitchGroup({ className, ...props }) {
|
|
|
31259
31285
|
{
|
|
31260
31286
|
"data-slot": "control",
|
|
31261
31287
|
...props,
|
|
31262
|
-
className:
|
|
31288
|
+
className: clsx13(
|
|
31263
31289
|
className,
|
|
31264
31290
|
// Basic groups
|
|
31265
31291
|
"space-y-3 **:data-[slot=label]:font-normal",
|
|
@@ -31278,7 +31304,7 @@ function SwitchField({
|
|
|
31278
31304
|
{
|
|
31279
31305
|
"data-slot": "field",
|
|
31280
31306
|
...props,
|
|
31281
|
-
className:
|
|
31307
|
+
className: clsx13(
|
|
31282
31308
|
className,
|
|
31283
31309
|
// Base layout
|
|
31284
31310
|
"grid grid-cols-[1fr_auto] gap-x-8 gap-y-1 sm:grid-cols-[1fr_auto]",
|
|
@@ -31342,7 +31368,7 @@ function Switch2({
|
|
|
31342
31368
|
{
|
|
31343
31369
|
"data-slot": "control",
|
|
31344
31370
|
...props,
|
|
31345
|
-
className:
|
|
31371
|
+
className: clsx13(
|
|
31346
31372
|
className,
|
|
31347
31373
|
// Base styles
|
|
31348
31374
|
"group relative isolate inline-flex h-6 w-10 cursor-default rounded-full p-[3px] sm:h-5 sm:w-8",
|
|
@@ -31369,7 +31395,7 @@ function Switch2({
|
|
|
31369
31395
|
"span",
|
|
31370
31396
|
{
|
|
31371
31397
|
"aria-hidden": "true",
|
|
31372
|
-
className:
|
|
31398
|
+
className: clsx13(
|
|
31373
31399
|
// Basic layout
|
|
31374
31400
|
"pointer-events-none relative inline-block size-4.5 rounded-full sm:size-3.5",
|
|
31375
31401
|
// Transition
|
|
@@ -31478,7 +31504,7 @@ function TableOfContents({ tableOfContents }) {
|
|
|
31478
31504
|
"ol",
|
|
31479
31505
|
{
|
|
31480
31506
|
role: "list",
|
|
31481
|
-
className:
|
|
31507
|
+
className: clsx13(
|
|
31482
31508
|
"mt-3 flex flex-col gap-2",
|
|
31483
31509
|
"border-l border-grey-900/10 dark:border-white/10",
|
|
31484
31510
|
"text-sm/6 text-grey-700 dark:text-grey-400"
|
|
@@ -31489,7 +31515,7 @@ function TableOfContents({ tableOfContents }) {
|
|
|
31489
31515
|
{
|
|
31490
31516
|
href: `#${section.id}`,
|
|
31491
31517
|
prefetch: false,
|
|
31492
|
-
className:
|
|
31518
|
+
className: clsx13(
|
|
31493
31519
|
"-ml-px inline-block border-l pl-4",
|
|
31494
31520
|
"hover:border-primary-800 dark:hover:border-white",
|
|
31495
31521
|
isActive(section) ? "border-primary-800 font-semibold text-primary-800 dark:border-white dark:text-white" : "border-transparent"
|
|
@@ -31502,7 +31528,7 @@ function TableOfContents({ tableOfContents }) {
|
|
|
31502
31528
|
{
|
|
31503
31529
|
href: `#${subSection.id}`,
|
|
31504
31530
|
prefetch: false,
|
|
31505
|
-
className:
|
|
31531
|
+
className: clsx13(
|
|
31506
31532
|
"-ml-px inline-block border-l pl-8",
|
|
31507
31533
|
"hover:border-primary-800 dark:hover:border-white",
|
|
31508
31534
|
isActive(subSection) ? "border-primary-800 font-semibold text-primary-800 dark:border-white dark:text-white" : "border-transparent"
|