@nswds/app 1.111.1 → 1.112.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 +48 -0
- package/dist/index.cjs +18 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +18 -5
- package/dist/index.js.map +1 -1
- package/dist/styles.css +48 -0
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/globals.css
CHANGED
|
@@ -4952,6 +4952,21 @@
|
|
|
4952
4952
|
.\[--btn-hover-overlay\:var\(--footer-social-hover-bg\)\] {
|
|
4953
4953
|
--btn-hover-overlay: var(--footer-social-hover-bg);
|
|
4954
4954
|
}
|
|
4955
|
+
.\[--btn-icon-size\:--spacing\(5\)\] {
|
|
4956
|
+
--btn-icon-size: calc(var(--spacing) * 5);
|
|
4957
|
+
}
|
|
4958
|
+
.\[--btn-icon-size\:--spacing\(6\)\] {
|
|
4959
|
+
--btn-icon-size: calc(var(--spacing) * 6);
|
|
4960
|
+
}
|
|
4961
|
+
.\[--btn-icon-size\:--spacing\(7\)\] {
|
|
4962
|
+
--btn-icon-size: calc(var(--spacing) * 7);
|
|
4963
|
+
}
|
|
4964
|
+
.\[--btn-icon-size\:--spacing\(8\)\] {
|
|
4965
|
+
--btn-icon-size: calc(var(--spacing) * 8);
|
|
4966
|
+
}
|
|
4967
|
+
.\[--btn-icon-size\:--spacing\(9\)\] {
|
|
4968
|
+
--btn-icon-size: calc(var(--spacing) * 9);
|
|
4969
|
+
}
|
|
4955
4970
|
.\[--btn-icon\:var\(--footer-social\)\] {
|
|
4956
4971
|
--btn-icon: var(--footer-social);
|
|
4957
4972
|
}
|
|
@@ -8495,6 +8510,14 @@
|
|
|
8495
8510
|
}
|
|
8496
8511
|
}
|
|
8497
8512
|
}
|
|
8513
|
+
.\*\:data-\[slot\=icon\]\:size-\(--btn-icon-size\) {
|
|
8514
|
+
:is(& > *) {
|
|
8515
|
+
&[data-slot="icon"] {
|
|
8516
|
+
width: var(--btn-icon-size);
|
|
8517
|
+
height: var(--btn-icon-size);
|
|
8518
|
+
}
|
|
8519
|
+
}
|
|
8520
|
+
}
|
|
8498
8521
|
.\*\:data-\[slot\=icon\]\:size-4 {
|
|
8499
8522
|
:is(& > *) {
|
|
8500
8523
|
&[data-slot="icon"] {
|
|
@@ -10032,6 +10055,31 @@
|
|
|
10032
10055
|
--anchor-offset: -1.375rem;
|
|
10033
10056
|
}
|
|
10034
10057
|
}
|
|
10058
|
+
.sm\:\[--btn-icon-size\:--spacing\(4\)\] {
|
|
10059
|
+
@media (width >= 40rem) {
|
|
10060
|
+
--btn-icon-size: calc(var(--spacing) * 4);
|
|
10061
|
+
}
|
|
10062
|
+
}
|
|
10063
|
+
.sm\:\[--btn-icon-size\:--spacing\(5\)\] {
|
|
10064
|
+
@media (width >= 40rem) {
|
|
10065
|
+
--btn-icon-size: calc(var(--spacing) * 5);
|
|
10066
|
+
}
|
|
10067
|
+
}
|
|
10068
|
+
.sm\:\[--btn-icon-size\:--spacing\(6\)\] {
|
|
10069
|
+
@media (width >= 40rem) {
|
|
10070
|
+
--btn-icon-size: calc(var(--spacing) * 6);
|
|
10071
|
+
}
|
|
10072
|
+
}
|
|
10073
|
+
.sm\:\[--btn-icon-size\:--spacing\(7\)\] {
|
|
10074
|
+
@media (width >= 40rem) {
|
|
10075
|
+
--btn-icon-size: calc(var(--spacing) * 7);
|
|
10076
|
+
}
|
|
10077
|
+
}
|
|
10078
|
+
.sm\:\[--btn-icon-size\:--spacing\(8\)\] {
|
|
10079
|
+
@media (width >= 40rem) {
|
|
10080
|
+
--btn-icon-size: calc(var(--spacing) * 8);
|
|
10081
|
+
}
|
|
10082
|
+
}
|
|
10035
10083
|
.sm\:duration-300 {
|
|
10036
10084
|
@media (width >= 40rem) {
|
|
10037
10085
|
animation-duration: 300ms;
|
package/dist/index.cjs
CHANGED
|
@@ -4237,7 +4237,7 @@ var styles = {
|
|
|
4237
4237
|
// Disabled
|
|
4238
4238
|
"data-disabled:opacity-50 data-disabled:pointer-events-none",
|
|
4239
4239
|
// Icon
|
|
4240
|
-
"*:data-[slot=icon]:-mx-0.25 *:data-[slot=icon]:my-0.25 sm:*:data-[slot=icon]:my-0.5 *:data-[slot=icon]:size-
|
|
4240
|
+
"*:data-[slot=icon]:-mx-0.25 *:data-[slot=icon]:my-0.25 sm:*:data-[slot=icon]:my-0.5 *:data-[slot=icon]:size-(--btn-icon-size) *:data-[slot=icon]:shrink-0 *:data-[slot=icon]:self-center *:data-[slot=icon]:text-(--btn-icon) forced-colors:[--btn-icon:ButtonText] forced-colors:data-hover:[--btn-icon:ButtonText]"
|
|
4241
4241
|
],
|
|
4242
4242
|
solid: [
|
|
4243
4243
|
// Text color
|
|
@@ -4501,6 +4501,12 @@ var styles = {
|
|
|
4501
4501
|
sm: "px-[calc(--spacing(4)-1px)] py-[calc(--spacing(3)-1px)] sm:px-[calc(--spacing(3.5)-1px)] sm:py-[calc(--spacing(2)-1px)]",
|
|
4502
4502
|
lg: "px-[calc(--spacing(6)-1px)] py-[calc(--spacing(5)-1px)] sm:px-[calc(--spacing(5.5)-1px)] sm:py-[calc(--spacing(4)-1px)]",
|
|
4503
4503
|
icon: "w-10 h-10 flex-none"
|
|
4504
|
+
},
|
|
4505
|
+
iconSize: {
|
|
4506
|
+
default: "[--btn-icon-size:--spacing(6)] sm:[--btn-icon-size:--spacing(5)]",
|
|
4507
|
+
sm: "[--btn-icon-size:--spacing(5)] sm:[--btn-icon-size:--spacing(4)]",
|
|
4508
|
+
lg: "[--btn-icon-size:--spacing(7)] sm:[--btn-icon-size:--spacing(6)]",
|
|
4509
|
+
xl: "[--btn-icon-size:--spacing(8)] sm:[--btn-icon-size:--spacing(7)]"
|
|
4504
4510
|
}
|
|
4505
4511
|
};
|
|
4506
4512
|
var buttonVariants = classVarianceAuthority.cva(styles.base, {
|
|
@@ -4529,16 +4535,23 @@ var buttonVariants = classVarianceAuthority.cva(styles.base, {
|
|
|
4529
4535
|
sm: styles.size.sm,
|
|
4530
4536
|
lg: styles.size.lg,
|
|
4531
4537
|
icon: styles.size.icon
|
|
4538
|
+
},
|
|
4539
|
+
iconSize: {
|
|
4540
|
+
default: styles.iconSize.default,
|
|
4541
|
+
sm: styles.iconSize.sm,
|
|
4542
|
+
lg: styles.iconSize.lg,
|
|
4543
|
+
xl: styles.iconSize.xl
|
|
4532
4544
|
}
|
|
4533
4545
|
},
|
|
4534
4546
|
defaultVariants: {
|
|
4535
4547
|
variant: "solid",
|
|
4536
4548
|
color: "primary",
|
|
4537
|
-
size: "default"
|
|
4549
|
+
size: "default",
|
|
4550
|
+
iconSize: "default"
|
|
4538
4551
|
}
|
|
4539
4552
|
});
|
|
4540
|
-
var Button2 = React5.forwardRef(function Button3({ className, variant, color: color2, size, children, ...props }, ref) {
|
|
4541
|
-
const classes = cn(buttonVariants({ variant, color: color2, size }), className);
|
|
4553
|
+
var Button2 = React5.forwardRef(function Button3({ className, variant, color: color2, size, iconSize, children, ...props }, ref) {
|
|
4554
|
+
const classes = cn(buttonVariants({ variant, color: color2, size, iconSize }), className);
|
|
4542
4555
|
return "href" in props ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
4543
4556
|
Link,
|
|
4544
4557
|
{
|
|
@@ -18822,7 +18835,7 @@ function FormatToggle({ format, setFormat }) {
|
|
|
18822
18835
|
|
|
18823
18836
|
// package.json
|
|
18824
18837
|
var package_default = {
|
|
18825
|
-
version: "1.
|
|
18838
|
+
version: "1.111.1"};
|
|
18826
18839
|
var SluggerContext = React5__namespace.default.createContext(null);
|
|
18827
18840
|
function flattenText(nodes) {
|
|
18828
18841
|
if (nodes == null || typeof nodes === "boolean") return "";
|