@shopito/design-system-fe 0.1.32 → 0.1.34

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.js CHANGED
@@ -43,30 +43,34 @@ var p = Object.create, m = Object.defineProperty, h = Object.getOwnPropertyDescr
43
43
  return n;
44
44
  }) : window.classNames = n;
45
45
  })();
46
- })))(), 1), T = n(({ variant: e = "primary", size: t = "md", loading: n = !1, fullWidth: r = !1, disabled: i, children: a, className: o = "", ...s }, c) => /* @__PURE__ */ d("button", {
47
- ref: c,
48
- disabled: i || n,
49
- className: (0, w.default)("btn", e && `btn-${e}`, t && `btn-${t}`, r && "w-full", o),
50
- ...s,
51
- children: [n && /* @__PURE__ */ d("svg", {
52
- className: "animate-spin h-4 w-4 shrink-0",
53
- xmlns: "http://www.w3.org/2000/svg",
54
- fill: "none",
55
- viewBox: "0 0 24 24",
56
- children: [/* @__PURE__ */ u("circle", {
57
- className: "opacity-25",
58
- cx: "12",
59
- cy: "12",
60
- r: "10",
61
- stroke: "currentColor",
62
- strokeWidth: "4"
63
- }), /* @__PURE__ */ u("path", {
64
- className: "opacity-75",
65
- fill: "currentColor",
66
- d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"
67
- })]
68
- }), a]
69
- }));
46
+ })))(), 1), T = n(({ variant: e = "primary", size: t = "md", loading: n = !1, fullWidth: r = !1, disabled: i, children: a, className: o = "", ...s }, c) => {
47
+ let l = i || n;
48
+ return /* @__PURE__ */ d("button", {
49
+ ref: c,
50
+ type: s.type || "button",
51
+ disabled: l,
52
+ className: (0, w.default)("btn", e && `btn-${e}`, t && `btn-${t}`, r && "w-full", o),
53
+ ...s,
54
+ children: [n && /* @__PURE__ */ d("svg", {
55
+ className: "animate-spin h-4 w-4 shrink-0",
56
+ xmlns: "http://www.w3.org/2000/svg",
57
+ fill: "none",
58
+ viewBox: "0 0 24 24",
59
+ children: [/* @__PURE__ */ u("circle", {
60
+ className: "opacity-25",
61
+ cx: "12",
62
+ cy: "12",
63
+ r: "10",
64
+ stroke: "currentColor",
65
+ strokeWidth: "4"
66
+ }), /* @__PURE__ */ u("path", {
67
+ className: "opacity-75",
68
+ fill: "currentColor",
69
+ d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"
70
+ })]
71
+ }), a]
72
+ });
73
+ });
70
74
  T.displayName = "Button";
71
75
  //#endregion
72
76
  //#region src/components/common/LoadingSpin/LoadingSpin.tsx
@@ -202,11 +206,11 @@ var A = ({ as: e, level: t = 1, color: n = "default", className: r = "", childre
202
206
  });
203
207
  //#endregion
204
208
  //#region src/components/common/Badge/Badge.tsx
205
- function M({ variant: e = "default", size: t = "md", dot: n = !1, className: r, children: i, ...a }) {
209
+ function M({ variant: e = "default", size: t = "md", position: n, dot: r = !1, className: i, children: a, ...o }) {
206
210
  return /* @__PURE__ */ d("span", {
207
- className: (0, w.default)("badge", `badge-${e}`, `badge-${t}`, r),
208
- ...a,
209
- children: [n && /* @__PURE__ */ u("span", { className: (0, w.default)("badge-dot", `badge-dot-${e}`) }), i]
211
+ className: (0, w.default)("badge", `badge-${e}`, `badge-${t}`, n && `badge-${n}`, i),
212
+ ...o,
213
+ children: [r && /* @__PURE__ */ u("span", { className: (0, w.default)("badge-dot", `badge-dot-${e}`) }), a]
210
214
  });
211
215
  }
212
216
  //#endregion