@eqtylab/equality 1.7.3 → 1.8.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/badge.module.module.css.module.css +20 -101
- package/dist/control-status-badge.module.module.css.module.css +22 -26
- package/dist/index.cjs +19 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -4
- package/dist/index.d.ts +7 -4
- package/dist/index.js +19 -2
- package/dist/index.js.map +1 -1
- package/dist/resource-badge.module.module.css.module.css +46 -46
- package/dist/table-components.module.module.css.module.css +15 -17
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -51,14 +51,14 @@ declare const AlertDialogFooter: {
|
|
|
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
53
|
declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
|
|
54
|
-
variant?: "
|
|
54
|
+
variant?: "link" | "danger" | "navigation" | "primary" | "secondary" | "tertiary" | null | undefined;
|
|
55
55
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
56
56
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
57
57
|
prefix?: React$1.ReactNode;
|
|
58
58
|
suffix?: React$1.ReactNode;
|
|
59
59
|
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
60
60
|
declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
|
|
61
|
-
variant?: "
|
|
61
|
+
variant?: "link" | "danger" | "navigation" | "primary" | "secondary" | "tertiary" | null | undefined;
|
|
62
62
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
63
63
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
64
64
|
prefix?: React$1.ReactNode;
|
|
@@ -166,7 +166,7 @@ declare const BgGradient: ({ theme, placement, }: {
|
|
|
166
166
|
}) => react_jsx_runtime.JSX.Element;
|
|
167
167
|
|
|
168
168
|
declare const buttonVariants: (props?: ({
|
|
169
|
-
variant?: "
|
|
169
|
+
variant?: "link" | "danger" | "navigation" | "primary" | "secondary" | "tertiary" | null | undefined;
|
|
170
170
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
171
171
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
172
172
|
type ButtonBaseProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'prefix'>;
|
|
@@ -192,8 +192,11 @@ type ResourceDisplayMode = BadgeDisplayMode;
|
|
|
192
192
|
interface ResourceBadgeProps {
|
|
193
193
|
type: ResourceType;
|
|
194
194
|
display?: ResourceDisplayMode;
|
|
195
|
+
closeable?: boolean;
|
|
196
|
+
handleClosable?: () => void;
|
|
197
|
+
children?: React$1.ReactNode;
|
|
195
198
|
}
|
|
196
|
-
declare const ResourceBadge: ({ type, display }: ResourceBadgeProps) => react_jsx_runtime.JSX.Element;
|
|
199
|
+
declare const ResourceBadge: ({ type, display, closeable, handleClosable, children, }: ResourceBadgeProps) => react_jsx_runtime.JSX.Element;
|
|
197
200
|
|
|
198
201
|
interface CardContentHeaderProps {
|
|
199
202
|
className?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -51,14 +51,14 @@ declare const AlertDialogFooter: {
|
|
|
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
53
|
declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
|
|
54
|
-
variant?: "
|
|
54
|
+
variant?: "link" | "danger" | "navigation" | "primary" | "secondary" | "tertiary" | null | undefined;
|
|
55
55
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
56
56
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
57
57
|
prefix?: React$1.ReactNode;
|
|
58
58
|
suffix?: React$1.ReactNode;
|
|
59
59
|
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
60
60
|
declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
|
|
61
|
-
variant?: "
|
|
61
|
+
variant?: "link" | "danger" | "navigation" | "primary" | "secondary" | "tertiary" | null | undefined;
|
|
62
62
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
63
63
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
64
64
|
prefix?: React$1.ReactNode;
|
|
@@ -166,7 +166,7 @@ declare const BgGradient: ({ theme, placement, }: {
|
|
|
166
166
|
}) => react_jsx_runtime.JSX.Element;
|
|
167
167
|
|
|
168
168
|
declare const buttonVariants: (props?: ({
|
|
169
|
-
variant?: "
|
|
169
|
+
variant?: "link" | "danger" | "navigation" | "primary" | "secondary" | "tertiary" | null | undefined;
|
|
170
170
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
171
171
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
172
172
|
type ButtonBaseProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'prefix'>;
|
|
@@ -192,8 +192,11 @@ type ResourceDisplayMode = BadgeDisplayMode;
|
|
|
192
192
|
interface ResourceBadgeProps {
|
|
193
193
|
type: ResourceType;
|
|
194
194
|
display?: ResourceDisplayMode;
|
|
195
|
+
closeable?: boolean;
|
|
196
|
+
handleClosable?: () => void;
|
|
197
|
+
children?: React$1.ReactNode;
|
|
195
198
|
}
|
|
196
|
-
declare const ResourceBadge: ({ type, display }: ResourceBadgeProps) => react_jsx_runtime.JSX.Element;
|
|
199
|
+
declare const ResourceBadge: ({ type, display, closeable, handleClosable, children, }: ResourceBadgeProps) => react_jsx_runtime.JSX.Element;
|
|
197
200
|
|
|
198
201
|
interface CardContentHeaderProps {
|
|
199
202
|
className?: string;
|
package/dist/index.js
CHANGED
|
@@ -631,9 +631,26 @@ var BgGradient = ({
|
|
|
631
631
|
}, [theme, placement, brandColors]);
|
|
632
632
|
return /* @__PURE__ */ jsx("canvas", { ref: canvasRef, className: styles8["bg-gradient"] });
|
|
633
633
|
};
|
|
634
|
-
var ResourceBadge = ({
|
|
634
|
+
var ResourceBadge = ({
|
|
635
|
+
type,
|
|
636
|
+
display = "both",
|
|
637
|
+
closeable,
|
|
638
|
+
handleClosable,
|
|
639
|
+
children
|
|
640
|
+
}) => {
|
|
635
641
|
const config = getTypeConfig(type);
|
|
636
|
-
return /* @__PURE__ */ jsx(
|
|
642
|
+
return /* @__PURE__ */ jsx(
|
|
643
|
+
Badge,
|
|
644
|
+
{
|
|
645
|
+
icon: config.icon,
|
|
646
|
+
display,
|
|
647
|
+
className: config.className,
|
|
648
|
+
variant: null,
|
|
649
|
+
closeable,
|
|
650
|
+
handleClosable,
|
|
651
|
+
children: children ?? config.label
|
|
652
|
+
}
|
|
653
|
+
);
|
|
637
654
|
};
|
|
638
655
|
var getTypeConfig = (type) => {
|
|
639
656
|
switch (type) {
|