@shopito/design-system-fe 0.1.10 → 0.1.12
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/Grid/Grid.d.ts.map +1 -1
- package/dist/common/Stack/Stack.d.ts +2 -1
- package/dist/common/Stack/Stack.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -5
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -527,7 +527,7 @@ function ce({ src: e, alt: t, name: n, size: r = "md", className: i, ...a }) {
|
|
|
527
527
|
}
|
|
528
528
|
//#endregion
|
|
529
529
|
//#region src/components/common/Stack/Stack.tsx
|
|
530
|
-
var le = ({ direction: e = "row", gap: t, alignItems: n = "start", justifyItems: r = "start",
|
|
530
|
+
var le = ({ direction: e = "row", gap: t, alignItems: n = "start", justifyItems: r = "start", justifyContent: i = "normal", children: a }) => /* @__PURE__ */ s("div", {
|
|
531
531
|
className: (0, x.default)("stack", `stack-${e}`, t && `gap-${t}`, {
|
|
532
532
|
start: "items-start",
|
|
533
533
|
end: "items-end",
|
|
@@ -539,8 +539,17 @@ var le = ({ direction: e = "row", gap: t, alignItems: n = "start", justifyItems:
|
|
|
539
539
|
end: "justify-items-end",
|
|
540
540
|
center: "justify-items-center",
|
|
541
541
|
stretch: "justify-items-stretch"
|
|
542
|
-
}[r]
|
|
543
|
-
|
|
542
|
+
}[r], {
|
|
543
|
+
normal: "justify-normal",
|
|
544
|
+
start: "justify-start",
|
|
545
|
+
end: "justify-end",
|
|
546
|
+
center: "justify-center",
|
|
547
|
+
between: "justify-between",
|
|
548
|
+
around: "justify-around",
|
|
549
|
+
evenly: "justify-evenly",
|
|
550
|
+
stretch: "justify-stretch"
|
|
551
|
+
}[i]),
|
|
552
|
+
children: a
|
|
544
553
|
}), ue = {
|
|
545
554
|
1: "grid-cols-1",
|
|
546
555
|
2: "grid-cols-2",
|
|
@@ -710,12 +719,12 @@ var le = ({ direction: e = "row", gap: t, alignItems: n = "start", justifyItems:
|
|
|
710
719
|
10: "xl:col-start-11",
|
|
711
720
|
11: "xl:col-start-12"
|
|
712
721
|
}, B = ({ children: e, cols: t = 12, gap: n, rowGap: r, colGap: i, as: a = "div", className: o }) => /* @__PURE__ */ s(a, {
|
|
713
|
-
className: (0, x.default)("grid", ue[t], n !== void 0 && de[n], r !== void 0 && fe[r], i !== void 0 && pe[i], o),
|
|
722
|
+
className: (0, x.default)("grid", "w-full", ue[t], n !== void 0 && de[n], r !== void 0 && fe[r], i !== void 0 && pe[i], o),
|
|
714
723
|
children: e
|
|
715
724
|
});
|
|
716
725
|
B.displayName = "Grid";
|
|
717
726
|
var V = ({ children: e, span: t, sm: n, md: r, lg: i, xl: a, offset: o, smOffset: c, mdOffset: l, lgOffset: u, xlOffset: d, className: f, ...p }) => /* @__PURE__ */ s("div", {
|
|
718
|
-
className: (0, x.default)(
|
|
727
|
+
className: (0, x.default)(t && me[t], n && F[n], r && I[r], i && L[i], a && R[a], o && z[o], c && he[c], l && ge[l], u && _e[u], d && ve[d], f),
|
|
719
728
|
...p,
|
|
720
729
|
children: e
|
|
721
730
|
});
|