mainstack-design-system 0.5.1 → 0.5.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.
|
@@ -61287,9 +61287,13 @@ const u3e = ({
|
|
|
61287
61287
|
Failed: {
|
|
61288
61288
|
bgColor: ae.red50,
|
|
61289
61289
|
textColor: ae.red600
|
|
61290
|
+
},
|
|
61291
|
+
Default: {
|
|
61292
|
+
bgColor: ae.gray50,
|
|
61293
|
+
textColor: ae.gray400
|
|
61290
61294
|
}
|
|
61291
|
-
}, V4e = ({ status: e, icon: n }) => {
|
|
61292
|
-
var
|
|
61295
|
+
}, V4e = ({ status: e, icon: n, label: a = "" }) => {
|
|
61296
|
+
var i, l, f;
|
|
61293
61297
|
return /* @__PURE__ */ Ge(
|
|
61294
61298
|
Zt,
|
|
61295
61299
|
{
|
|
@@ -61301,11 +61305,11 @@ const u3e = ({
|
|
|
61301
61305
|
px: "10px",
|
|
61302
61306
|
width: "fit-content",
|
|
61303
61307
|
rounded: "100px",
|
|
61304
|
-
bg: (
|
|
61305
|
-
color: (
|
|
61308
|
+
bg: (i = vg[e]) == null ? void 0 : i.bgColor,
|
|
61309
|
+
color: (l = vg[e]) == null ? void 0 : l.textColor,
|
|
61306
61310
|
alignItems: "center",
|
|
61307
61311
|
children: [
|
|
61308
|
-
/* @__PURE__ */ m(St.span, { children: e }),
|
|
61312
|
+
/* @__PURE__ */ m(St.span, { children: e === "Default" ? a : e }),
|
|
61309
61313
|
n && /* @__PURE__ */ m(
|
|
61310
61314
|
St.span,
|
|
61311
61315
|
{
|
|
@@ -61314,7 +61318,7 @@ const u3e = ({
|
|
|
61314
61318
|
display: "flex",
|
|
61315
61319
|
justifyContent: "center",
|
|
61316
61320
|
alignItems: "center",
|
|
61317
|
-
color: (
|
|
61321
|
+
color: (f = vg[e]) == null ? void 0 : f.textColor,
|
|
61318
61322
|
children: n
|
|
61319
61323
|
}
|
|
61320
61324
|
)
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/** @format */
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
export interface ITagsUpdate {
|
|
4
|
-
status: "Successful" | "Pending" | "Failed";
|
|
4
|
+
status: "Successful" | "Pending" | "Failed" | "Default";
|
|
5
|
+
label?: string;
|
|
5
6
|
icon?: ReactNode;
|
|
6
7
|
}
|
|
7
|
-
declare const TagsUpdate: ({ status, icon }: ITagsUpdate) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const TagsUpdate: ({ status, icon, label }: ITagsUpdate) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export default TagsUpdate;
|