@alexandregme/zljs 1.3.1 → 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 +2 -1
- package/dist/index.js +11 -2
- package/package.json +1 -1
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
|