@eqtylab/equality 1.1.5 → 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 +15 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -7
- package/dist/index.d.ts +13 -7
- package/dist/index.js +15 -5
- 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?: ({
|
|
54
|
-
variant?: "
|
|
53
|
+
declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
|
|
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
|
-
|
|
58
|
-
|
|
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?: ({
|
|
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';
|
|
@@ -157,7 +163,7 @@ declare const BgGradient: ({ theme, placement, }: {
|
|
|
157
163
|
}) => react_jsx_runtime.JSX.Element;
|
|
158
164
|
|
|
159
165
|
declare const buttonVariants: (props?: ({
|
|
160
|
-
variant?: "
|
|
166
|
+
variant?: "danger" | "link" | "navigation" | "primary" | "secondary" | "tertiary" | null | undefined;
|
|
161
167
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
162
168
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
163
169
|
type ButtonBaseProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'prefix'>;
|
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?: ({
|
|
54
|
-
variant?: "
|
|
53
|
+
declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
|
|
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
|
-
|
|
58
|
-
|
|
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?: ({
|
|
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';
|
|
@@ -157,7 +163,7 @@ declare const BgGradient: ({ theme, placement, }: {
|
|
|
157
163
|
}) => react_jsx_runtime.JSX.Element;
|
|
158
164
|
|
|
159
165
|
declare const buttonVariants: (props?: ({
|
|
160
|
-
variant?: "
|
|
166
|
+
variant?: "danger" | "link" | "navigation" | "primary" | "secondary" | "tertiary" | null | undefined;
|
|
161
167
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
162
168
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
163
169
|
type ButtonBaseProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'prefix'>;
|
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;
|
|
@@ -3111,7 +3121,7 @@ var getStatusConfig = (status) => {
|
|
|
3111
3121
|
};
|
|
3112
3122
|
case "non-compliant":
|
|
3113
3123
|
return {
|
|
3114
|
-
icon: "
|
|
3124
|
+
icon: "TriangleAlert",
|
|
3115
3125
|
className: styles59["badge--non-compliant"],
|
|
3116
3126
|
label: "Non-compliant"
|
|
3117
3127
|
};
|