@eqtylab/equality 1.1.6 → 1.1.7
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.cjs +14 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -4
- package/dist/index.d.ts +10 -4
- package/dist/index.js +14 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -50,14 +50,20 @@ declare const AlertDialogFooter: {
|
|
|
50
50
|
};
|
|
51
51
|
declare const AlertDialogTitle: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
52
52
|
declare const AlertDialogDescription: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
53
|
-
declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
53
|
+
declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
|
|
54
54
|
variant?: "danger" | "link" | "navigation" | "primary" | "secondary" | "tertiary" | null | undefined;
|
|
55
55
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
56
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string> &
|
|
57
|
-
|
|
56
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
57
|
+
prefix?: React$1.ReactNode;
|
|
58
|
+
suffix?: React$1.ReactNode;
|
|
59
|
+
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
60
|
+
declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
|
|
58
61
|
variant?: "danger" | "link" | "navigation" | "primary" | "secondary" | "tertiary" | null | undefined;
|
|
59
62
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
60
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string> &
|
|
63
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
64
|
+
prefix?: React$1.ReactNode;
|
|
65
|
+
suffix?: React$1.ReactNode;
|
|
66
|
+
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
61
67
|
|
|
62
68
|
interface AvatarProps extends React$1.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root> {
|
|
63
69
|
size?: 'sm' | 'md' | 'lg' | 'xl';
|
package/dist/index.d.ts
CHANGED
|
@@ -50,14 +50,20 @@ declare const AlertDialogFooter: {
|
|
|
50
50
|
};
|
|
51
51
|
declare const AlertDialogTitle: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
52
52
|
declare const AlertDialogDescription: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
53
|
-
declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
53
|
+
declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
|
|
54
54
|
variant?: "danger" | "link" | "navigation" | "primary" | "secondary" | "tertiary" | null | undefined;
|
|
55
55
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
56
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string> &
|
|
57
|
-
|
|
56
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
57
|
+
prefix?: React$1.ReactNode;
|
|
58
|
+
suffix?: React$1.ReactNode;
|
|
59
|
+
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
60
|
+
declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
|
|
58
61
|
variant?: "danger" | "link" | "navigation" | "primary" | "secondary" | "tertiary" | null | undefined;
|
|
59
62
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
60
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string> &
|
|
63
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
64
|
+
prefix?: React$1.ReactNode;
|
|
65
|
+
suffix?: React$1.ReactNode;
|
|
66
|
+
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
61
67
|
|
|
62
68
|
interface AvatarProps extends React$1.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root> {
|
|
63
69
|
size?: 'sm' | 'md' | 'lg' | 'xl';
|
package/dist/index.js
CHANGED
|
@@ -227,21 +227,31 @@ var AlertDialogDescription = React15.forwardRef(({ className, ...props }, ref) =
|
|
|
227
227
|
}
|
|
228
228
|
));
|
|
229
229
|
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
230
|
-
var AlertDialogAction = React15.forwardRef(({ className, variant = "primary", size = "sm", ...props }, ref) => /* @__PURE__ */
|
|
230
|
+
var AlertDialogAction = React15.forwardRef(({ className, variant = "primary", size = "sm", prefix, suffix, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
231
231
|
AlertDialogPrimitive.Action,
|
|
232
232
|
{
|
|
233
233
|
ref,
|
|
234
234
|
className: cn(buttonVariants({ variant, size }), className),
|
|
235
|
-
...props
|
|
235
|
+
...props,
|
|
236
|
+
children: [
|
|
237
|
+
prefix,
|
|
238
|
+
children,
|
|
239
|
+
suffix
|
|
240
|
+
]
|
|
236
241
|
}
|
|
237
242
|
));
|
|
238
243
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
239
|
-
var AlertDialogCancel = React15.forwardRef(({ className, variant = "tertiary", size = "sm", ...props }, ref) => /* @__PURE__ */
|
|
244
|
+
var AlertDialogCancel = React15.forwardRef(({ className, variant = "tertiary", size = "sm", prefix, suffix, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
240
245
|
AlertDialogPrimitive.Cancel,
|
|
241
246
|
{
|
|
242
247
|
ref,
|
|
243
248
|
className: cn(buttonVariants({ variant, size }), styles3["alert-dialog-cancel"], className),
|
|
244
|
-
...props
|
|
249
|
+
...props,
|
|
250
|
+
children: [
|
|
251
|
+
prefix,
|
|
252
|
+
children,
|
|
253
|
+
suffix
|
|
254
|
+
]
|
|
245
255
|
}
|
|
246
256
|
));
|
|
247
257
|
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|