infinity-ui-elements 1.8.17 → 1.8.19
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/index.esm.js +7 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1642,7 +1642,7 @@ const Checkbox = React__namespace.forwardRef(({ label, errorText, size = "medium
|
|
|
1642
1642
|
},
|
|
1643
1643
|
large: {
|
|
1644
1644
|
gap: "gap-3",
|
|
1645
|
-
labelSize: "text-body-
|
|
1645
|
+
labelSize: "text-body-medium-regular",
|
|
1646
1646
|
iconSize: 14,
|
|
1647
1647
|
},
|
|
1648
1648
|
};
|
|
@@ -2034,7 +2034,7 @@ const FormHeader = React__namespace.forwardRef(({ label, size = "medium", isOpti
|
|
|
2034
2034
|
},
|
|
2035
2035
|
};
|
|
2036
2036
|
const config = sizeConfig[size];
|
|
2037
|
-
return (jsxRuntime.jsxs("div", { ref: ref, className: cn("flex items-center justify-between px-1", config.gap, className), children: [jsxRuntime.jsxs("div", { className: cn("flex items-center", config.gap), children: [jsxRuntime.jsxs("label", { htmlFor: htmlFor, className: cn("flex items-center", labelClassName), children: [jsxRuntime.jsx("span", { className: cn(config.textClassName, "text-surface-neutral-subtle"), children: label }), isRequired && (jsxRuntime.jsx("span", { className: cn(config.textClassName, "text-color-negative ml-0.5"), children: "*" })), isOptional && (jsxRuntime.jsx("span", { className: cn(config.textClassNameRegular, "text-surface-neutral-muted
|
|
2037
|
+
return (jsxRuntime.jsxs("div", { ref: ref, className: cn("flex items-center justify-between px-1", config.gap, className), children: [jsxRuntime.jsxs("div", { className: cn("flex items-center", config.gap), children: [jsxRuntime.jsxs("label", { htmlFor: htmlFor, className: cn("flex items-center", labelClassName), children: [jsxRuntime.jsx("span", { className: cn(config.textClassName, "text-surface-neutral-subtle"), children: label }), isRequired && (jsxRuntime.jsx("span", { className: cn(config.textClassName, "text-color-negative ml-0.5"), children: "*" })), isOptional && (jsxRuntime.jsx("span", { className: cn(config.textClassNameRegular, "text-surface-ink-neutral-muted ml-1"), children: "(optional)" }))] }), infoDescription && (jsxRuntime.jsx(Tooltip, { description: infoDescription, heading: infoHeading, children: jsxRuntime.jsx(Icon, { name: "info", size: config.iconSize }) }))] }), LinkComponent
|
|
2038
2038
|
? LinkComponent
|
|
2039
2039
|
: linkText && (jsxRuntime.jsx(Link, { href: linkHref, onClick: onLinkClick, type: "action", color: "primary", size: size === "large" ? "small" : "xsmall", leadingIcon: linkLeadingIcon, trailingIcon: linkTrailingIcon, children: linkText }))] }));
|
|
2040
2040
|
});
|
|
@@ -3698,7 +3698,7 @@ const switchVariants = classVarianceAuthority.cva("relative inline-flex items-ce
|
|
|
3698
3698
|
isDisabled: false,
|
|
3699
3699
|
},
|
|
3700
3700
|
});
|
|
3701
|
-
const switchThumbVariants = classVarianceAuthority.cva("inline-block rounded-full bg-
|
|
3701
|
+
const switchThumbVariants = classVarianceAuthority.cva("inline-block rounded-full bg-white shadow-sm transition-transform duration-200", {
|
|
3702
3702
|
variants: {
|
|
3703
3703
|
size: {
|
|
3704
3704
|
small: "h-[8px] w-[8px]",
|
|
@@ -3783,11 +3783,11 @@ const Switch = React__namespace.forwardRef(({ label, size = "medium", isDisabled
|
|
|
3783
3783
|
},
|
|
3784
3784
|
medium: {
|
|
3785
3785
|
gap: "gap-2.5",
|
|
3786
|
-
labelSize: "text-body-
|
|
3786
|
+
labelSize: "text-body-small-regular",
|
|
3787
3787
|
},
|
|
3788
3788
|
large: {
|
|
3789
3789
|
gap: "gap-3",
|
|
3790
|
-
labelSize: "text-body-
|
|
3790
|
+
labelSize: "text-body-medium-regular",
|
|
3791
3791
|
},
|
|
3792
3792
|
};
|
|
3793
3793
|
const config = sizeConfig[size];
|
|
@@ -3823,7 +3823,7 @@ const tableVariants = classVarianceAuthority.cva("w-full border-collapse", {
|
|
|
3823
3823
|
size: "medium",
|
|
3824
3824
|
},
|
|
3825
3825
|
});
|
|
3826
|
-
const tableHeaderVariants = classVarianceAuthority.cva("text-body-medium-regular text-left text-surface-ink-neutral-normal border-b border-surface-outline-neutral-muted", {
|
|
3826
|
+
const tableHeaderVariants = classVarianceAuthority.cva("text-body-medium-regular text-left text-surface-ink-neutral-normal border-b border-surface-outline-neutral-muted box-border", {
|
|
3827
3827
|
variants: {
|
|
3828
3828
|
size: {
|
|
3829
3829
|
small: "px-3 py-2 h-[32px]",
|
|
@@ -3836,7 +3836,7 @@ const tableHeaderVariants = classVarianceAuthority.cva("text-body-medium-regular
|
|
|
3836
3836
|
size: "medium",
|
|
3837
3837
|
},
|
|
3838
3838
|
});
|
|
3839
|
-
const tableCellVariants = classVarianceAuthority.cva("text-body-medium-regular border-b border-surface-outline-neutral-muted text-surface-ink-neutral-normal transition-colors duration-150", {
|
|
3839
|
+
const tableCellVariants = classVarianceAuthority.cva("text-body-medium-regular border-b border-surface-outline-neutral-muted text-surface-ink-neutral-normal transition-colors duration-150 box-border", {
|
|
3840
3840
|
variants: {
|
|
3841
3841
|
size: {
|
|
3842
3842
|
small: "px-3 py-2 h-[40px]",
|