@alexandregme/zljs 1.3.0 → 1.4.0

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.ts CHANGED
@@ -191,9 +191,10 @@ interface TextProps {
191
191
  children: string | number;
192
192
  as?: "p" | "span";
193
193
  variant?: TextVariant;
194
+ color?: SemanticColor;
194
195
  }
195
196
 
196
- declare const Text: ({ children, as: Tag, variant, }: TextProps) => react.JSX.Element;
197
+ declare const Text: ({ children, as: Tag, variant, color, }: TextProps) => react.JSX.Element;
197
198
 
198
199
  interface SidebarItem {
199
200
  icon: IconName;
package/dist/index.js CHANGED
@@ -650,6 +650,14 @@ var text = tv8({
650
650
  body: "text-base",
651
651
  caption: "text-sm",
652
652
  display: "text-3xl font-bold"
653
+ },
654
+ color: {
655
+ primary: "text-blue-600",
656
+ success: "text-green-700",
657
+ danger: "text-red-600",
658
+ warning: "text-yellow-700",
659
+ info: "text-sky-700",
660
+ none: ""
653
661
  }
654
662
  },
655
663
  defaultVariants: {
@@ -662,9 +670,10 @@ import { jsx as jsx12 } from "react/jsx-runtime";
662
670
  var Text = ({
663
671
  children,
664
672
  as: Tag2 = "p",
665
- variant = "body"
673
+ variant = "body",
674
+ color
666
675
  }) => {
667
- return /* @__PURE__ */ jsx12(Tag2, { "data-testid": "text", className: text({ variant }), children });
676
+ return /* @__PURE__ */ jsx12(Tag2, { "data-testid": "text", className: text({ variant, color }), children });
668
677
  };
669
678
 
670
679
  // core/stats-card/stats-card.styles.ts
@@ -816,10 +825,10 @@ var heading = tv11({
816
825
  },
817
826
  color: {
818
827
  primary: "text-blue-600",
819
- success: "text-green-600",
828
+ success: "text-green-700",
820
829
  danger: "text-red-600",
821
- warning: "text-yellow-600",
822
- info: "text-sky-600",
830
+ warning: "text-yellow-700",
831
+ info: "text-sky-700",
823
832
  none: ""
824
833
  }
825
834
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexandregme/zljs",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Opinionated, accessible React component library for enterprise apps (Next.js, Tailwind CSS v4).",
5
5
  "keywords": [
6
6
  "react",