@nswds/app 1.111.1 → 1.112.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 +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 +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -76,6 +76,7 @@ declare const buttonVariants$2: (props?: ({
|
|
|
76
76
|
variant?: "solid" | "soft" | "surface" | "outline" | "ghost" | null | undefined;
|
|
77
77
|
color?: "primary/grey" | "light" | "primary/white" | "white" | "grey" | "primary" | "secondary" | "tertiary" | "accent" | "danger" | null | undefined;
|
|
78
78
|
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
79
|
+
iconSize?: "default" | "sm" | "lg" | "xl" | null | undefined;
|
|
79
80
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
80
81
|
type ButtonProps = VariantProps<typeof buttonVariants$2> & {
|
|
81
82
|
className?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -76,6 +76,7 @@ declare const buttonVariants$2: (props?: ({
|
|
|
76
76
|
variant?: "solid" | "soft" | "surface" | "outline" | "ghost" | null | undefined;
|
|
77
77
|
color?: "primary/grey" | "light" | "primary/white" | "white" | "grey" | "primary" | "secondary" | "tertiary" | "accent" | "danger" | null | undefined;
|
|
78
78
|
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
79
|
+
iconSize?: "default" | "sm" | "lg" | "xl" | null | undefined;
|
|
79
80
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
80
81
|
type ButtonProps = VariantProps<typeof buttonVariants$2> & {
|
|
81
82
|
className?: string;
|
package/dist/index.js
CHANGED
|
@@ -4183,7 +4183,7 @@ var styles = {
|
|
|
4183
4183
|
// Disabled
|
|
4184
4184
|
"data-disabled:opacity-50 data-disabled:pointer-events-none",
|
|
4185
4185
|
// Icon
|
|
4186
|
-
"*:data-[slot=icon]:-mx-0.25 *:data-[slot=icon]:my-0.25 sm:*:data-[slot=icon]:my-0.5 *:data-[slot=icon]:size-
|
|
4186
|
+
"*: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]"
|
|
4187
4187
|
],
|
|
4188
4188
|
solid: [
|
|
4189
4189
|
// Text color
|
|
@@ -4447,6 +4447,12 @@ var styles = {
|
|
|
4447
4447
|
sm: "px-[calc(--spacing(4)-1px)] py-[calc(--spacing(3)-1px)] sm:px-[calc(--spacing(3.5)-1px)] sm:py-[calc(--spacing(2)-1px)]",
|
|
4448
4448
|
lg: "px-[calc(--spacing(6)-1px)] py-[calc(--spacing(5)-1px)] sm:px-[calc(--spacing(5.5)-1px)] sm:py-[calc(--spacing(4)-1px)]",
|
|
4449
4449
|
icon: "w-10 h-10 flex-none"
|
|
4450
|
+
},
|
|
4451
|
+
iconSize: {
|
|
4452
|
+
default: "[--btn-icon-size:--spacing(6)] sm:[--btn-icon-size:--spacing(5)]",
|
|
4453
|
+
sm: "[--btn-icon-size:--spacing(5)] sm:[--btn-icon-size:--spacing(4)]",
|
|
4454
|
+
lg: "[--btn-icon-size:--spacing(7)] sm:[--btn-icon-size:--spacing(6)]",
|
|
4455
|
+
xl: "[--btn-icon-size:--spacing(8)] sm:[--btn-icon-size:--spacing(7)]"
|
|
4450
4456
|
}
|
|
4451
4457
|
};
|
|
4452
4458
|
var buttonVariants = cva(styles.base, {
|
|
@@ -4475,16 +4481,23 @@ var buttonVariants = cva(styles.base, {
|
|
|
4475
4481
|
sm: styles.size.sm,
|
|
4476
4482
|
lg: styles.size.lg,
|
|
4477
4483
|
icon: styles.size.icon
|
|
4484
|
+
},
|
|
4485
|
+
iconSize: {
|
|
4486
|
+
default: styles.iconSize.default,
|
|
4487
|
+
sm: styles.iconSize.sm,
|
|
4488
|
+
lg: styles.iconSize.lg,
|
|
4489
|
+
xl: styles.iconSize.xl
|
|
4478
4490
|
}
|
|
4479
4491
|
},
|
|
4480
4492
|
defaultVariants: {
|
|
4481
4493
|
variant: "solid",
|
|
4482
4494
|
color: "primary",
|
|
4483
|
-
size: "default"
|
|
4495
|
+
size: "default",
|
|
4496
|
+
iconSize: "default"
|
|
4484
4497
|
}
|
|
4485
4498
|
});
|
|
4486
|
-
var Button2 = forwardRef(function Button3({ className, variant, color: color2, size, children, ...props }, ref) {
|
|
4487
|
-
const classes = cn(buttonVariants({ variant, color: color2, size }), className);
|
|
4499
|
+
var Button2 = forwardRef(function Button3({ className, variant, color: color2, size, iconSize, children, ...props }, ref) {
|
|
4500
|
+
const classes = cn(buttonVariants({ variant, color: color2, size, iconSize }), className);
|
|
4488
4501
|
return "href" in props ? /* @__PURE__ */ jsx(
|
|
4489
4502
|
Link,
|
|
4490
4503
|
{
|
|
@@ -18768,7 +18781,7 @@ function FormatToggle({ format, setFormat }) {
|
|
|
18768
18781
|
|
|
18769
18782
|
// package.json
|
|
18770
18783
|
var package_default = {
|
|
18771
|
-
version: "1.
|
|
18784
|
+
version: "1.111.1"};
|
|
18772
18785
|
var SluggerContext = React5__default.createContext(null);
|
|
18773
18786
|
function flattenText(nodes) {
|
|
18774
18787
|
if (nodes == null || typeof nodes === "boolean") return "";
|