@scbt-ecom/ui 0.30.2 → 0.31.0
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/{CustomLink-BerIdUpJ.js → CustomLink-DmltAHJD.js} +4 -4
- package/dist/{CustomLink-BerIdUpJ.js.map → CustomLink-DmltAHJD.js.map} +1 -1
- package/dist/mergeRefs-qDToYXtM.js +12 -0
- package/dist/mergeRefs-qDToYXtM.js.map +1 -0
- package/dist/shared/ui/formElements/controlled/index.d.ts +2 -2
- package/dist/shared/ui/formElements/uncontrolled/dayPicker/DayPicker.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/index.d.ts +3 -3
- package/dist/shared/ui/formElements/uncontrolled/select/Select.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/select/ui/SelectItem.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/textarea/Textarea.d.ts +1 -1
- package/dist/shared/ui/notification/ui/CustomToast.d.ts +1 -1
- package/dist/shared/utils/typeGuards.d.ts +1 -1
- package/dist/shared/validation/base/base.constants.d.ts +17 -0
- package/dist/shared/validation/base/date.validators.d.ts +48 -0
- package/dist/shared/validation/base/email.validators.d.ts +34 -0
- package/dist/shared/validation/base/index.d.ts +1 -0
- package/dist/shared/validation/base/number.validators.d.ts +37 -0
- package/dist/shared/validation/base/phone.validators.d.ts +48 -0
- package/dist/shared/validation/base/select.validators.d.ts +60 -0
- package/dist/shared/validation/base/string.validators.d.ts +45 -0
- package/dist/shared/validation/base/union.validators.d.ts +35 -0
- package/dist/{typeGuards-CaNkXs7N.js → typeGuards-B82KZ2oS.js} +3 -12
- package/dist/typeGuards-B82KZ2oS.js.map +1 -0
- package/dist/ui.js +408 -430
- package/dist/ui.js.map +1 -1
- package/dist/{parse-C_80L3wX.js → utils-b38KjjXe.js} +1060 -1030
- package/dist/utils-b38KjjXe.js.map +1 -0
- package/dist/utils.js +5 -4
- package/dist/utils.js.map +1 -1
- package/dist/validation.js +198 -39
- package/dist/validation.js.map +1 -1
- package/dist/widget.js +1 -1
- package/package.json +1 -1
- package/dist/parse-C_80L3wX.js.map +0 -1
- package/dist/shared/validation/index.d.ts +0 -3
- package/dist/typeGuards-CaNkXs7N.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as L, a as Wo } from "./cn-DIfn7EPB.js";
|
|
2
2
|
import * as d from "react";
|
|
3
3
|
import H, { forwardRef as nr, useLayoutEffect as $o, useEffect as Vo, useState as zo } from "react";
|
|
4
4
|
import * as rr from "react-dom";
|
|
@@ -629,7 +629,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
629
629
|
}
|
|
630
630
|
process.env.NODE_ENV === "production" ? Ut.exports = Uo() : Ut.exports = Yo();
|
|
631
631
|
var y = Ut.exports;
|
|
632
|
-
const jn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Dn = Wo, ze = (e, t) => (n) => {
|
|
632
|
+
const pc = ({ children: e, className: t, ...n }) => /* @__PURE__ */ y.jsx("section", { className: L("pb-16 desktop:pb-20", t), ...n, children: e }), hc = ({ children: e, offset: t = !0, className: n, ...r }) => /* @__PURE__ */ y.jsx("div", { className: L("m-auto w-full max-w-[636px] desktop:max-w-[1140px]", { "mobile:px-4": t }, n), ...r, children: e }), jn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Dn = Wo, ze = (e, t) => (n) => {
|
|
633
633
|
var r;
|
|
634
634
|
if ((t == null ? void 0 : t.variants) == null) return Dn(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
635
635
|
const { variants: o, defaultVariants: i } = t, a = Object.keys(o).map((l) => {
|
|
@@ -658,7 +658,7 @@ const jn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Dn = Wo, z
|
|
|
658
658
|
] : l;
|
|
659
659
|
}, []);
|
|
660
660
|
return Dn(e, a, u, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
661
|
-
},
|
|
661
|
+
}, Ko = (e) => {
|
|
662
662
|
switch (e) {
|
|
663
663
|
case "ghost":
|
|
664
664
|
case "secondary":
|
|
@@ -4488,4 +4488,4 @@ export {
|
|
|
4488
4488
|
pe as y,
|
|
4489
4489
|
Da as z
|
|
4490
4490
|
};
|
|
4491
|
-
//# sourceMappingURL=CustomLink-
|
|
4491
|
+
//# sourceMappingURL=CustomLink-DmltAHJD.js.map
|