@lctafrica/ui 1.1.1 → 1.1.2
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.
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
export type BadgeSize = "sm" | "md" | "lg";
|
|
3
|
-
export type BadgeIndicator = "default" | "dot-
|
|
3
|
+
export type BadgeIndicator = "default" | "dot-icon" | "x-icon";
|
|
4
4
|
export type BadgeColor = "red" | "blue" | "green" | "yellow" | "gray" | "purple" | "pink" | "orange";
|
|
5
5
|
export type BadgeProps = {
|
|
6
6
|
color?: BadgeColor;
|
|
7
|
-
|
|
7
|
+
label?: string;
|
|
8
8
|
size?: BadgeSize;
|
|
9
9
|
indicator?: BadgeIndicator;
|
|
10
10
|
containerClassName?: string;
|
|
11
11
|
textClassName?: string;
|
|
12
12
|
children?: ReactNode;
|
|
13
13
|
};
|
|
14
|
-
declare function Badge({ color,
|
|
14
|
+
declare function Badge({ color, label, size, indicator, containerClassName, textClassName, children, }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export { Badge };
|
package/dist/index.js
CHANGED
|
@@ -7915,7 +7915,7 @@ const ed = {
|
|
|
7915
7915
|
});
|
|
7916
7916
|
function DM({
|
|
7917
7917
|
color: e = "gray",
|
|
7918
|
-
|
|
7918
|
+
label: t,
|
|
7919
7919
|
size: r = "md",
|
|
7920
7920
|
indicator: o = "default",
|
|
7921
7921
|
containerClassName: n,
|
|
@@ -7933,7 +7933,7 @@ function DM({
|
|
|
7933
7933
|
"data-indicator": o,
|
|
7934
7934
|
className: T(Lw({ size: r, color: e }), n),
|
|
7935
7935
|
children: [
|
|
7936
|
-
o === "dot-
|
|
7936
|
+
o === "dot-icon" && /* @__PURE__ */ v(
|
|
7937
7937
|
"span",
|
|
7938
7938
|
{
|
|
7939
7939
|
className: T(
|
|
@@ -7955,7 +7955,7 @@ function DM({
|
|
|
7955
7955
|
}
|
|
7956
7956
|
),
|
|
7957
7957
|
a || /* @__PURE__ */ v("p", { className: T("font-medium leading-none", i), children: t }),
|
|
7958
|
-
o === "x-
|
|
7958
|
+
o === "x-icon" && /* @__PURE__ */ v(
|
|
7959
7959
|
"span",
|
|
7960
7960
|
{
|
|
7961
7961
|
"aria-hidden": !0,
|