@locus-ui/components 0.0.1 → 0.0.12

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.d.mts CHANGED
@@ -691,6 +691,23 @@ declare const Accordion: React$1.FC<AccordionRootProps> & {
691
691
  Content: React$1.FC<AccordionContentProps>;
692
692
  };
693
693
 
694
+ declare const BadgeRootPropsDefs: {
695
+ /**
696
+ * Sets the variant style of the badge ("solid", "outlined", "muted", or "clear").
697
+ */
698
+ readonly variant: {
699
+ type: "enum";
700
+ values: readonly ["solid", "outlined", "muted", "clear"];
701
+ dataAttr: string;
702
+ };
703
+ };
704
+ type BadgeRootInternalProps = GetPropDefTypes<typeof BadgeRootPropsDefs>;
705
+
706
+ interface AllBadgeRootProps extends BadgeRootInternalProps, ColorProp, MarginProps, PaddingProps, RadiusProps, SizeProp {
707
+ }
708
+ type BadgeRootProps = AllBadgeRootProps & React.HTMLAttributes<HTMLDivElement>;
709
+ declare const Badge: React.FC<BadgeRootProps>;
710
+
694
711
  interface BoxExternalProps extends MarginProps, PaddingProps, SpacingProp, RadiusProps, RoundnessProp {
695
712
  }
696
713
  /**
@@ -1233,4 +1250,4 @@ declare function useTheme(): ThemeContextValue;
1233
1250
 
1234
1251
  declare function ThemeControl(): react_jsx_runtime.JSX.Element;
1235
1252
 
1236
- export { Accordion, Box, Button, Checkbox, Container, Portal, Select, Separator, Text, Theme, type ThemeAppearance, ThemeControl, type ThemeRadius, type ThemeRoundness, type ThemeSpacing, useTheme };
1253
+ export { Accordion, Badge, Box, Button, Checkbox, Container, Portal, Select, Separator, Text, Theme, type ThemeAppearance, ThemeControl, type ThemeRadius, type ThemeRoundness, type ThemeSpacing, useTheme };
package/dist/index.d.ts CHANGED
@@ -691,6 +691,23 @@ declare const Accordion: React$1.FC<AccordionRootProps> & {
691
691
  Content: React$1.FC<AccordionContentProps>;
692
692
  };
693
693
 
694
+ declare const BadgeRootPropsDefs: {
695
+ /**
696
+ * Sets the variant style of the badge ("solid", "outlined", "muted", or "clear").
697
+ */
698
+ readonly variant: {
699
+ type: "enum";
700
+ values: readonly ["solid", "outlined", "muted", "clear"];
701
+ dataAttr: string;
702
+ };
703
+ };
704
+ type BadgeRootInternalProps = GetPropDefTypes<typeof BadgeRootPropsDefs>;
705
+
706
+ interface AllBadgeRootProps extends BadgeRootInternalProps, ColorProp, MarginProps, PaddingProps, RadiusProps, SizeProp {
707
+ }
708
+ type BadgeRootProps = AllBadgeRootProps & React.HTMLAttributes<HTMLDivElement>;
709
+ declare const Badge: React.FC<BadgeRootProps>;
710
+
694
711
  interface BoxExternalProps extends MarginProps, PaddingProps, SpacingProp, RadiusProps, RoundnessProp {
695
712
  }
696
713
  /**
@@ -1233,4 +1250,4 @@ declare function useTheme(): ThemeContextValue;
1233
1250
 
1234
1251
  declare function ThemeControl(): react_jsx_runtime.JSX.Element;
1235
1252
 
1236
- export { Accordion, Box, Button, Checkbox, Container, Portal, Select, Separator, Text, Theme, type ThemeAppearance, ThemeControl, type ThemeRadius, type ThemeRoundness, type ThemeSpacing, useTheme };
1253
+ export { Accordion, Badge, Box, Button, Checkbox, Container, Portal, Select, Separator, Text, Theme, type ThemeAppearance, ThemeControl, type ThemeRadius, type ThemeRoundness, type ThemeSpacing, useTheme };
package/dist/index.js CHANGED
@@ -971,6 +971,46 @@ var Accordion = Object.assign(AccordionRoot, {
971
971
  Content: AccordionContent
972
972
  });
973
973
 
974
+ // src/components/badge/badge.tsx
975
+
976
+
977
+ // src/components/badge/badge.props.ts
978
+ var BadgeVariants = ["solid", "outlined", "muted", "clear"];
979
+ var BadgeRootPropsDefs = {
980
+ /**
981
+ * Sets the variant style of the badge ("solid", "outlined", "muted", or "clear").
982
+ */
983
+ variant: {
984
+ type: "enum",
985
+ values: BadgeVariants,
986
+ dataAttr: "variant"
987
+ }
988
+ };
989
+
990
+ // src/components/badge/badge.tsx
991
+
992
+ var Badge = (props) => {
993
+ const { color, variant, className, dataAttrs, ...rest } = getComponentProps(
994
+ props,
995
+ BadgeRootPropsDefs,
996
+ MarginPropDefs,
997
+ PaddingPropDefs,
998
+ RadiusPropDefs,
999
+ SizePropDef
1000
+ );
1001
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1002
+ "div",
1003
+ {
1004
+ className: _clsx2.default.call(void 0, "badge", className),
1005
+ "data-color": _nullishCoalesce(color, () => ( true)),
1006
+ "data-variant": variant,
1007
+ ...dataAttrs,
1008
+ ...rest,
1009
+ children: props.children
1010
+ }
1011
+ );
1012
+ };
1013
+
974
1014
  // src/components/box/box.tsx
975
1015
 
976
1016
 
@@ -3023,5 +3063,6 @@ function ThemeControl() {
3023
3063
 
3024
3064
 
3025
3065
 
3026
- exports.Accordion = Accordion; exports.Box = Box; exports.Button = Button; exports.Checkbox = Checkbox; exports.Container = Container; exports.Portal = Portal; exports.Select = Select; exports.Separator = Separator; exports.Text = Text; exports.Theme = Theme; exports.ThemeControl = ThemeControl; exports.useTheme = useTheme;
3066
+
3067
+ exports.Accordion = Accordion; exports.Badge = Badge; exports.Box = Box; exports.Button = Button; exports.Checkbox = Checkbox; exports.Container = Container; exports.Portal = Portal; exports.Select = Select; exports.Separator = Separator; exports.Text = Text; exports.Theme = Theme; exports.ThemeControl = ThemeControl; exports.useTheme = useTheme;
3027
3068
  //# sourceMappingURL=index.js.map