@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/common/Badge/Badge.d.ts +3 -1
- package/dist/common/Badge/Badge.d.ts.map +1 -1
- package/dist/common/Button/Button.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +32 -28
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
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) =>
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
className: "
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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",
|
|
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}`,
|
|
208
|
-
...
|
|
209
|
-
children: [
|
|
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
|