@nswds/app 1.78.0 → 1.78.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 +0 -40
- package/dist/index.cjs +111 -68
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +37 -49
- package/dist/index.d.ts +37 -49
- package/dist/index.js +111 -68
- package/dist/index.js.map +1 -1
- package/dist/styles.css +0 -40
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/globals.css
CHANGED
|
@@ -2617,12 +2617,6 @@
|
|
|
2617
2617
|
background-color: color-mix(in oklab, var(--color-black) 50%, transparent);
|
|
2618
2618
|
}
|
|
2619
2619
|
}
|
|
2620
|
-
.bg-black\/80 {
|
|
2621
|
-
background-color: color-mix(in srgb, #000 80%, transparent);
|
|
2622
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
2623
|
-
background-color: color-mix(in oklab, var(--color-black) 80%, transparent);
|
|
2624
|
-
}
|
|
2625
|
-
}
|
|
2626
2620
|
.bg-blue-50 {
|
|
2627
2621
|
background-color: var(--color-blue-50);
|
|
2628
2622
|
}
|
|
@@ -7959,11 +7953,6 @@
|
|
|
7959
7953
|
--tw-exit-translate-x: -100%;
|
|
7960
7954
|
}
|
|
7961
7955
|
}
|
|
7962
|
-
.data-\[state\=closed\]\:slide-out-to-left-1\/2 {
|
|
7963
|
-
&[data-state="closed"] {
|
|
7964
|
-
--tw-exit-translate-x: -50%;
|
|
7965
|
-
}
|
|
7966
|
-
}
|
|
7967
7956
|
.data-\[state\=closed\]\:slide-out-to-right {
|
|
7968
7957
|
&[data-state="closed"] {
|
|
7969
7958
|
--tw-exit-translate-x: 100%;
|
|
@@ -7979,11 +7968,6 @@
|
|
|
7979
7968
|
--tw-exit-translate-y: -0.5rem;
|
|
7980
7969
|
}
|
|
7981
7970
|
}
|
|
7982
|
-
.data-\[state\=closed\]\:slide-out-to-top-\[48\%\] {
|
|
7983
|
-
&[data-state="closed"] {
|
|
7984
|
-
--tw-exit-translate-y: -48%;
|
|
7985
|
-
}
|
|
7986
|
-
}
|
|
7987
7971
|
.data-\[state\=closed\]\:zoom-out-95 {
|
|
7988
7972
|
&[data-state="closed"] {
|
|
7989
7973
|
--tw-exit-scale: .95;
|
|
@@ -8167,11 +8151,6 @@
|
|
|
8167
8151
|
--tw-enter-translate-x: -100%;
|
|
8168
8152
|
}
|
|
8169
8153
|
}
|
|
8170
|
-
.data-\[state\=open\]\:slide-in-from-left-1\/2 {
|
|
8171
|
-
&[data-state="open"] {
|
|
8172
|
-
--tw-enter-translate-x: -50%;
|
|
8173
|
-
}
|
|
8174
|
-
}
|
|
8175
8154
|
.data-\[state\=open\]\:slide-in-from-right {
|
|
8176
8155
|
&[data-state="open"] {
|
|
8177
8156
|
--tw-enter-translate-x: 100%;
|
|
@@ -8187,11 +8166,6 @@
|
|
|
8187
8166
|
--tw-enter-translate-y: -0.5rem;
|
|
8188
8167
|
}
|
|
8189
8168
|
}
|
|
8190
|
-
.data-\[state\=open\]\:slide-in-from-top-\[48\%\] {
|
|
8191
|
-
&[data-state="open"] {
|
|
8192
|
-
--tw-enter-translate-y: -48%;
|
|
8193
|
-
}
|
|
8194
|
-
}
|
|
8195
8169
|
.data-\[state\=open\]\:zoom-in-90 {
|
|
8196
8170
|
&[data-state="open"] {
|
|
8197
8171
|
--tw-enter-scale: .9;
|
|
@@ -8720,15 +8694,6 @@
|
|
|
8720
8694
|
gap: calc(var(--spacing) * 4);
|
|
8721
8695
|
}
|
|
8722
8696
|
}
|
|
8723
|
-
.sm\:space-x-2 {
|
|
8724
|
-
@media (width >= 40rem) {
|
|
8725
|
-
:where(& > :not(:last-child)) {
|
|
8726
|
-
--tw-space-x-reverse: 0;
|
|
8727
|
-
margin-inline-start: calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));
|
|
8728
|
-
margin-inline-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)));
|
|
8729
|
-
}
|
|
8730
|
-
}
|
|
8731
|
-
}
|
|
8732
8697
|
.sm\:divide-x {
|
|
8733
8698
|
@media (width >= 40rem) {
|
|
8734
8699
|
:where(& > :not(:last-child)) {
|
|
@@ -8750,11 +8715,6 @@
|
|
|
8750
8715
|
}
|
|
8751
8716
|
}
|
|
8752
8717
|
}
|
|
8753
|
-
.sm\:rounded-lg {
|
|
8754
|
-
@media (width >= 40rem) {
|
|
8755
|
-
border-radius: var(--radius-lg);
|
|
8756
|
-
}
|
|
8757
|
-
}
|
|
8758
8718
|
.sm\:border-x {
|
|
8759
8719
|
@media (width >= 40rem) {
|
|
8760
8720
|
border-inline-style: var(--tw-border-style);
|
package/dist/index.cjs
CHANGED
|
@@ -4556,89 +4556,132 @@ function TouchTarget({ children }) {
|
|
|
4556
4556
|
children
|
|
4557
4557
|
] });
|
|
4558
4558
|
}
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
AlertDialogPrimitive__namespace.
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
}
|
|
4572
|
-
));
|
|
4573
|
-
AlertDialogOverlay.displayName = AlertDialogPrimitive__namespace.Overlay.displayName;
|
|
4574
|
-
var AlertDialogContent = React5__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(AlertDialogPortal, { children: [
|
|
4575
|
-
/* @__PURE__ */ jsxRuntime.jsx(AlertDialogOverlay, {}),
|
|
4576
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4577
|
-
AlertDialogPrimitive__namespace.Content,
|
|
4559
|
+
function AlertDialog(props) {
|
|
4560
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AlertDialogPrimitive__namespace.Root, { "data-slot": "alert-dialog", ...props });
|
|
4561
|
+
}
|
|
4562
|
+
function AlertDialogTrigger(props) {
|
|
4563
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AlertDialogPrimitive__namespace.Trigger, { "data-slot": "alert-dialog-trigger", ...props });
|
|
4564
|
+
}
|
|
4565
|
+
function AlertDialogPortal(props) {
|
|
4566
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AlertDialogPrimitive__namespace.Portal, { "data-slot": "alert-dialog-portal", ...props });
|
|
4567
|
+
}
|
|
4568
|
+
var AlertDialogOverlay = React5__namespace.forwardRef(function AlertDialogOverlay2({ className, ...props }, ref) {
|
|
4569
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4570
|
+
AlertDialogPrimitive__namespace.Overlay,
|
|
4578
4571
|
{
|
|
4579
4572
|
ref,
|
|
4573
|
+
"data-slot": "alert-dialog-overlay",
|
|
4580
4574
|
className: cn(
|
|
4581
|
-
"fixed
|
|
4575
|
+
"fixed inset-0 z-50 bg-black/50",
|
|
4576
|
+
"data-[state=closed]:animate-out data-[state=open]:animate-in",
|
|
4577
|
+
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
4582
4578
|
className
|
|
4583
4579
|
),
|
|
4584
4580
|
...props
|
|
4585
4581
|
}
|
|
4586
|
-
)
|
|
4587
|
-
|
|
4588
|
-
AlertDialogContent
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
)
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
)
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4582
|
+
);
|
|
4583
|
+
});
|
|
4584
|
+
var AlertDialogContent = React5__namespace.forwardRef(function AlertDialogContent2({ className, ...props }, ref) {
|
|
4585
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(AlertDialogPortal, { children: [
|
|
4586
|
+
/* @__PURE__ */ jsxRuntime.jsx(AlertDialogOverlay, {}),
|
|
4587
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4588
|
+
AlertDialogPrimitive__namespace.Content,
|
|
4589
|
+
{
|
|
4590
|
+
ref,
|
|
4591
|
+
"data-slot": "alert-dialog-content",
|
|
4592
|
+
className: cn(
|
|
4593
|
+
"fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
4594
|
+
"data-[state=closed]:animate-out data-[state=open]:animate-in",
|
|
4595
|
+
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
4596
|
+
"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
|
|
4597
|
+
className
|
|
4598
|
+
),
|
|
4599
|
+
...props
|
|
4600
|
+
}
|
|
4601
|
+
)
|
|
4602
|
+
] });
|
|
4603
|
+
});
|
|
4604
|
+
function AlertDialogHeader(props) {
|
|
4605
|
+
const { className, ...rest } = props;
|
|
4606
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4607
|
+
"div",
|
|
4608
|
+
{
|
|
4609
|
+
"data-slot": "alert-dialog-header",
|
|
4610
|
+
className: cn("flex flex-col gap-2 text-center sm:text-left", className),
|
|
4611
|
+
...rest
|
|
4612
|
+
}
|
|
4613
|
+
);
|
|
4614
|
+
}
|
|
4615
|
+
function AlertDialogFooter(props) {
|
|
4616
|
+
const { className, ...rest } = props;
|
|
4617
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4618
|
+
"div",
|
|
4619
|
+
{
|
|
4620
|
+
"data-slot": "alert-dialog-footer",
|
|
4621
|
+
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
4622
|
+
...rest
|
|
4623
|
+
}
|
|
4624
|
+
);
|
|
4625
|
+
}
|
|
4626
|
+
var AlertDialogTitle = React5__namespace.forwardRef(function AlertDialogTitle2({ className, ...props }, ref) {
|
|
4627
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4628
|
+
AlertDialogPrimitive__namespace.Title,
|
|
4629
|
+
{
|
|
4630
|
+
ref,
|
|
4631
|
+
"data-slot": "alert-dialog-title",
|
|
4632
|
+
className: cn("text-lg font-semibold", className),
|
|
4633
|
+
...props
|
|
4634
|
+
}
|
|
4635
|
+
);
|
|
4636
|
+
});
|
|
4637
|
+
var AlertDialogDescription = React5__namespace.forwardRef(function AlertDialogDescription2({ className, ...props }, ref) {
|
|
4638
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4639
|
+
AlertDialogPrimitive__namespace.Description,
|
|
4640
|
+
{
|
|
4641
|
+
ref,
|
|
4642
|
+
"data-slot": "alert-dialog-description",
|
|
4643
|
+
className: cn("text-sm text-muted-foreground", className),
|
|
4644
|
+
...props
|
|
4645
|
+
}
|
|
4646
|
+
);
|
|
4647
|
+
});
|
|
4648
|
+
var AlertDialogAction = React5__namespace.forwardRef(function AlertDialogAction2({ className, variant, size, color: color2, ...props }, ref) {
|
|
4649
|
+
const variants = {
|
|
4650
|
+
...variant && { variant },
|
|
4651
|
+
...size && { size },
|
|
4652
|
+
...typeof color2 !== "undefined" && { color: color2 }
|
|
4653
|
+
};
|
|
4654
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4655
|
+
AlertDialogPrimitive__namespace.Action,
|
|
4656
|
+
{
|
|
4657
|
+
ref,
|
|
4658
|
+
className: cn(buttonVariants(variants), className),
|
|
4659
|
+
...props
|
|
4660
|
+
}
|
|
4661
|
+
);
|
|
4662
|
+
});
|
|
4663
|
+
var AlertDialogCancel = React5__namespace.forwardRef(function AlertDialogCancel2({
|
|
4618
4664
|
className,
|
|
4619
4665
|
variant,
|
|
4620
|
-
color: color2,
|
|
4621
4666
|
size,
|
|
4667
|
+
/* color if defined */
|
|
4668
|
+
color: color2,
|
|
4622
4669
|
...props
|
|
4623
|
-
}) {
|
|
4670
|
+
}, ref) {
|
|
4671
|
+
const variants = {
|
|
4672
|
+
variant: variant ?? "outline",
|
|
4673
|
+
...size && { size },
|
|
4674
|
+
...typeof color2 !== "undefined" && { color: color2 }
|
|
4675
|
+
};
|
|
4624
4676
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4625
|
-
AlertDialogPrimitive__namespace.
|
|
4677
|
+
AlertDialogPrimitive__namespace.Cancel,
|
|
4626
4678
|
{
|
|
4627
|
-
|
|
4679
|
+
ref,
|
|
4680
|
+
className: cn(buttonVariants(variants), className),
|
|
4628
4681
|
...props
|
|
4629
4682
|
}
|
|
4630
4683
|
);
|
|
4631
|
-
}
|
|
4632
|
-
AlertDialogAction.displayName = AlertDialogPrimitive__namespace.Action.displayName;
|
|
4633
|
-
var AlertDialogCancel = React5__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4634
|
-
AlertDialogPrimitive__namespace.Cancel,
|
|
4635
|
-
{
|
|
4636
|
-
ref,
|
|
4637
|
-
className: cn(buttonVariants({ variant: "outline" }), "mt-2 sm:mt-0", className),
|
|
4638
|
-
...props
|
|
4639
|
-
}
|
|
4640
|
-
));
|
|
4641
|
-
AlertDialogCancel.displayName = AlertDialogPrimitive__namespace.Cancel.displayName;
|
|
4684
|
+
});
|
|
4642
4685
|
var useOnWindowResize = (handler) => {
|
|
4643
4686
|
React5__namespace.useEffect(() => {
|
|
4644
4687
|
const handleResize = () => {
|
|
@@ -17484,7 +17527,7 @@ function FormatToggle({ format, setFormat }) {
|
|
|
17484
17527
|
|
|
17485
17528
|
// package.json
|
|
17486
17529
|
var package_default = {
|
|
17487
|
-
version: "1.
|
|
17530
|
+
version: "1.78.0"};
|
|
17488
17531
|
var SluggerContext = React5__namespace.default.createContext(null);
|
|
17489
17532
|
function flattenText(nodes) {
|
|
17490
17533
|
if (nodes == null || typeof nodes === "boolean") return "";
|