@lctafrica/ui 1.0.5 → 1.0.6

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,3 +1,4 @@
1
+ import { ReactNode } from 'react';
1
2
  export type BadgeSize = "sm" | "md" | "lg";
2
3
  export type BadgeIndicator = "default" | "dot-Icon" | "x-Icon";
3
4
  export declare const BADGE_COLORS: readonly ["red", "blue", "green", "yellow", "gray", "purple", "pink", "orange"];
@@ -8,11 +9,12 @@ export declare const badgeGroupVariants: (props?: ({
8
9
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
10
  export type BadgeProps = {
10
11
  color?: BadgeColor;
11
- text: string;
12
+ text?: string;
12
13
  size?: BadgeSize;
13
14
  indicator?: BadgeIndicator;
14
15
  containerClassName?: string;
15
16
  textClassName?: string;
17
+ children?: ReactNode;
16
18
  };
17
- declare function Badge({ color, text, size, indicator, containerClassName, textClassName, }: BadgeProps): import("react/jsx-runtime").JSX.Element;
19
+ declare function Badge({ color, text, size, indicator, containerClassName, textClassName, children, }: BadgeProps): import("react/jsx-runtime").JSX.Element;
18
20
  export { Badge };
@@ -8,3 +8,4 @@ export declare const Sizes: Story;
8
8
  export declare const WithIcon: Story;
9
9
  export declare const Statuses: Story;
10
10
  export declare const Variants: Story;
11
+ export declare const WithChildren: Story;