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.esm.js
CHANGED
|
@@ -1621,7 +1621,7 @@ const Checkbox = React.forwardRef(({ label, errorText, size = "medium", validati
|
|
|
1621
1621
|
},
|
|
1622
1622
|
large: {
|
|
1623
1623
|
gap: "gap-3",
|
|
1624
|
-
labelSize: "text-body-
|
|
1624
|
+
labelSize: "text-body-medium-regular",
|
|
1625
1625
|
iconSize: 14,
|
|
1626
1626
|
},
|
|
1627
1627
|
};
|
|
@@ -2013,7 +2013,7 @@ const FormHeader = React.forwardRef(({ label, size = "medium", isOptional = fals
|
|
|
2013
2013
|
},
|
|
2014
2014
|
};
|
|
2015
2015
|
const config = sizeConfig[size];
|
|
2016
|
-
return (jsxs("div", { ref: ref, className: cn("flex items-center justify-between px-1", config.gap, className), children: [jsxs("div", { className: cn("flex items-center", config.gap), children: [jsxs("label", { htmlFor: htmlFor, className: cn("flex items-center", labelClassName), children: [jsx("span", { className: cn(config.textClassName, "text-surface-neutral-subtle"), children: label }), isRequired && (jsx("span", { className: cn(config.textClassName, "text-color-negative ml-0.5"), children: "*" })), isOptional && (jsx("span", { className: cn(config.textClassNameRegular, "text-surface-neutral-muted
|
|
2016
|
+
return (jsxs("div", { ref: ref, className: cn("flex items-center justify-between px-1", config.gap, className), children: [jsxs("div", { className: cn("flex items-center", config.gap), children: [jsxs("label", { htmlFor: htmlFor, className: cn("flex items-center", labelClassName), children: [jsx("span", { className: cn(config.textClassName, "text-surface-neutral-subtle"), children: label }), isRequired && (jsx("span", { className: cn(config.textClassName, "text-color-negative ml-0.5"), children: "*" })), isOptional && (jsx("span", { className: cn(config.textClassNameRegular, "text-surface-ink-neutral-muted ml-1"), children: "(optional)" }))] }), infoDescription && (jsx(Tooltip, { description: infoDescription, heading: infoHeading, children: jsx(Icon, { name: "info", size: config.iconSize }) }))] }), LinkComponent
|
|
2017
2017
|
? LinkComponent
|
|
2018
2018
|
: linkText && (jsx(Link, { href: linkHref, onClick: onLinkClick, type: "action", color: "primary", size: size === "large" ? "small" : "xsmall", leadingIcon: linkLeadingIcon, trailingIcon: linkTrailingIcon, children: linkText }))] }));
|
|
2019
2019
|
});
|
|
@@ -3677,7 +3677,7 @@ const switchVariants = cva("relative inline-flex items-center shrink-0 cursor-po
|
|
|
3677
3677
|
isDisabled: false,
|
|
3678
3678
|
},
|
|
3679
3679
|
});
|
|
3680
|
-
const switchThumbVariants = cva("inline-block rounded-full bg-
|
|
3680
|
+
const switchThumbVariants = cva("inline-block rounded-full bg-white shadow-sm transition-transform duration-200", {
|
|
3681
3681
|
variants: {
|
|
3682
3682
|
size: {
|
|
3683
3683
|
small: "h-[8px] w-[8px]",
|
|
@@ -3762,11 +3762,11 @@ const Switch = React.forwardRef(({ label, size = "medium", isDisabled = false, c
|
|
|
3762
3762
|
},
|
|
3763
3763
|
medium: {
|
|
3764
3764
|
gap: "gap-2.5",
|
|
3765
|
-
labelSize: "text-body-
|
|
3765
|
+
labelSize: "text-body-small-regular",
|
|
3766
3766
|
},
|
|
3767
3767
|
large: {
|
|
3768
3768
|
gap: "gap-3",
|
|
3769
|
-
labelSize: "text-body-
|
|
3769
|
+
labelSize: "text-body-medium-regular",
|
|
3770
3770
|
},
|
|
3771
3771
|
};
|
|
3772
3772
|
const config = sizeConfig[size];
|
|
@@ -3802,7 +3802,7 @@ const tableVariants = cva("w-full border-collapse", {
|
|
|
3802
3802
|
size: "medium",
|
|
3803
3803
|
},
|
|
3804
3804
|
});
|
|
3805
|
-
const tableHeaderVariants = cva("text-body-medium-regular text-left text-surface-ink-neutral-normal border-b border-surface-outline-neutral-muted", {
|
|
3805
|
+
const tableHeaderVariants = cva("text-body-medium-regular text-left text-surface-ink-neutral-normal border-b border-surface-outline-neutral-muted box-border", {
|
|
3806
3806
|
variants: {
|
|
3807
3807
|
size: {
|
|
3808
3808
|
small: "px-3 py-2 h-[32px]",
|
|
@@ -3815,7 +3815,7 @@ const tableHeaderVariants = cva("text-body-medium-regular text-left text-surface
|
|
|
3815
3815
|
size: "medium",
|
|
3816
3816
|
},
|
|
3817
3817
|
});
|
|
3818
|
-
const tableCellVariants = cva("text-body-medium-regular border-b border-surface-outline-neutral-muted text-surface-ink-neutral-normal transition-colors duration-150", {
|
|
3818
|
+
const tableCellVariants = cva("text-body-medium-regular border-b border-surface-outline-neutral-muted text-surface-ink-neutral-normal transition-colors duration-150 box-border", {
|
|
3819
3819
|
variants: {
|
|
3820
3820
|
size: {
|
|
3821
3821
|
small: "px-3 py-2 h-[40px]",
|