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 a, i, l;
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: (a = vg[e]) == null ? void 0 : a.bgColor,
61305
- color: (i = vg[e]) == null ? void 0 : i.textColor,
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: (l = vg[e]) == null ? void 0 : l.textColor,
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;
@@ -5,4 +5,5 @@ declare const meta: Meta<typeof TagsUpdate>;
5
5
  export default meta;
6
6
  type Story = typeof meta;
7
7
  export declare const Default: Story;
8
+ export declare const WithLabel: Story;
8
9
  export declare const WithIcon: Story;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mainstack-design-system",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "type": "module",
5
5
  "main": "build/mainstack-design-system.js",
6
6
  "types": "build/src/index.d.ts",