@eqtylab/equality 2.3.0 → 2.3.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/checkbox.module.module.css.module.css +5 -2
- package/dist/index.cjs +3 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -475,7 +475,7 @@ interface IconButtonProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonEl
|
|
|
475
475
|
target?: string;
|
|
476
476
|
download?: string | boolean;
|
|
477
477
|
}
|
|
478
|
-
declare function IconButton({ className, size, variant, name, label, href, target, download, disabled, ...props }: IconButtonProps): react_jsx_runtime.JSX.Element
|
|
478
|
+
declare function IconButton({ className, size, variant, name, label, href, target, download, disabled, ...props }: IconButtonProps): react_jsx_runtime.JSX.Element;
|
|
479
479
|
|
|
480
480
|
interface InfoCardProps {
|
|
481
481
|
label: string;
|
|
@@ -905,7 +905,7 @@ declare const TruncatedDescription: ({ className, description, maxLength, }: Tru
|
|
|
905
905
|
|
|
906
906
|
declare const iconVariants: (props?: ({
|
|
907
907
|
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
908
|
-
background?: "
|
|
908
|
+
background?: "circle" | "square" | "transparent" | null | undefined;
|
|
909
909
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
910
910
|
declare const iconElevationVariants: (props?: ({
|
|
911
911
|
elevation?: string | number | null | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -475,7 +475,7 @@ interface IconButtonProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonEl
|
|
|
475
475
|
target?: string;
|
|
476
476
|
download?: string | boolean;
|
|
477
477
|
}
|
|
478
|
-
declare function IconButton({ className, size, variant, name, label, href, target, download, disabled, ...props }: IconButtonProps): react_jsx_runtime.JSX.Element
|
|
478
|
+
declare function IconButton({ className, size, variant, name, label, href, target, download, disabled, ...props }: IconButtonProps): react_jsx_runtime.JSX.Element;
|
|
479
479
|
|
|
480
480
|
interface InfoCardProps {
|
|
481
481
|
label: string;
|
|
@@ -905,7 +905,7 @@ declare const TruncatedDescription: ({ className, description, maxLength, }: Tru
|
|
|
905
905
|
|
|
906
906
|
declare const iconVariants: (props?: ({
|
|
907
907
|
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
908
|
-
background?: "
|
|
908
|
+
background?: "circle" | "square" | "transparent" | null | undefined;
|
|
909
909
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
910
910
|
declare const iconElevationVariants: (props?: ({
|
|
911
911
|
elevation?: string | number | null | undefined;
|
package/dist/index.js
CHANGED
|
@@ -986,10 +986,7 @@ var Checkbox = React16.forwardRef(
|
|
|
986
986
|
ref,
|
|
987
987
|
className: cn(styles13.checkbox, styles13[size], className),
|
|
988
988
|
...props,
|
|
989
|
-
children: /* @__PURE__ */
|
|
990
|
-
Icon3 ? /* @__PURE__ */ jsx(Icon3, { className: styles13.check }) : /* @__PURE__ */ jsx(CheckIcon, { className: styles13.check }),
|
|
991
|
-
" "
|
|
992
|
-
] })
|
|
989
|
+
children: /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, { className: styles13.indicator, children: Icon3 ? /* @__PURE__ */ jsx(Icon3, { className: styles13.check }) : /* @__PURE__ */ jsx(CheckIcon, { className: styles13.check }) })
|
|
993
990
|
}
|
|
994
991
|
)
|
|
995
992
|
);
|
|
@@ -1032,8 +1029,7 @@ function IconButton({
|
|
|
1032
1029
|
const iconSize = iconSizeMap[size || "sm"];
|
|
1033
1030
|
const IconComponent = Icon3;
|
|
1034
1031
|
if (!Icon3) {
|
|
1035
|
-
|
|
1036
|
-
return null;
|
|
1032
|
+
throw new Error(`Icon "${name}" not found in lucide-react`);
|
|
1037
1033
|
}
|
|
1038
1034
|
const content = /* @__PURE__ */ jsx(IconComponent, { size: iconSize });
|
|
1039
1035
|
if (href && !disabled) {
|
|
@@ -2823,7 +2819,7 @@ var SearchBar = ({
|
|
|
2823
2819
|
suffix: searchQuery && /* @__PURE__ */ jsx(
|
|
2824
2820
|
IconButton,
|
|
2825
2821
|
{
|
|
2826
|
-
name: "
|
|
2822
|
+
name: "X",
|
|
2827
2823
|
onClick: handleClear,
|
|
2828
2824
|
className: styles44["clear-button"],
|
|
2829
2825
|
label: "Clear search"
|