@kosdev-code/base-ui-components 1.3.0 → 2.0.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/components/molecules/shell-menu/shell-menu.d.ts +3 -2
- package/components/molecules/shell-menu/shell-menu.d.ts.map +1 -1
- package/helpers/validation/password-validation.d.ts +3 -2
- package/helpers/validation/password-validation.d.ts.map +1 -1
- package/index.cjs +8 -7
- package/index.cjs.map +1 -1
- package/index.js +19 -12
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -3721,11 +3721,17 @@ var nd = /* @__PURE__ */ ((e) => (e.email = "email", e))(nd || {});
|
|
|
3721
3721
|
const zy = () => ({
|
|
3722
3722
|
email: (e) => td.test(e)
|
|
3723
3723
|
}), Dy = 12;
|
|
3724
|
-
var ao = /* @__PURE__ */ ((e) => (e.noDigit = "noDigit", e.noUpperCase = "noUpperCase", e.noSpecialCharacter = "noSpecialCharacter", e))(ao || {});
|
|
3725
|
-
const Oy = () => ({
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3724
|
+
var ao = /* @__PURE__ */ ((e) => (e.noDigit = "noDigit", e.noUpperCase = "noUpperCase", e.noSpecialCharacter = "noSpecialCharacter", e.tooSimilar = "tooSimilar", e))(ao || {});
|
|
3725
|
+
const Oy = (e, t) => ({
|
|
3726
|
+
...e ? {
|
|
3727
|
+
tooSimilar: (o, n) => {
|
|
3728
|
+
const r = n[t ?? "password_current"];
|
|
3729
|
+
return r ? o !== r : !0;
|
|
3730
|
+
}
|
|
3731
|
+
} : { tooSimilar: () => !0 },
|
|
3732
|
+
noDigit: (o) => new RegExp(/\d/).test(o),
|
|
3733
|
+
noSpecialCharacter: (o) => new RegExp(/[!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~]+/).test(o),
|
|
3734
|
+
noUpperCase: (o) => new RegExp(/[A-Z]+/).test(o)
|
|
3729
3735
|
}), rd = (e) => typeof e == "object" && e !== null && "message" in e && typeof e.message == "string", Ty = (e) => {
|
|
3730
3736
|
if (rd(e))
|
|
3731
3737
|
return e.message;
|
|
@@ -9084,22 +9090,23 @@ const [Ao, gh] = N(["option", "select"]), z0 = ({
|
|
|
9084
9090
|
cursor: default;
|
|
9085
9091
|
border-bottom: 0.5px solid ${l("color-grey60")};
|
|
9086
9092
|
pointer-events: none;
|
|
9087
|
-
`, [qo] = N(["shell-menu"]), T0 = ({
|
|
9093
|
+
`, [qo] = N(["shell-menu"]), T0 = ({ className: e, left: t, right: o }) => /* @__PURE__ */ C(bh, { className: e, children: [
|
|
9088
9094
|
/* @__PURE__ */ c(qn, { children: t }),
|
|
9089
|
-
!!
|
|
9095
|
+
!!o && /* @__PURE__ */ c(qn, { children: o })
|
|
9090
9096
|
] }), bh = g.div`
|
|
9091
|
-
width: 100%;
|
|
9092
|
-
display: flex;
|
|
9093
9097
|
align-items: center;
|
|
9098
|
+
column-gap: ${qo("section-gap")};
|
|
9099
|
+
display: flex;
|
|
9094
9100
|
height: 100%;
|
|
9095
9101
|
justify-content: space-between;
|
|
9096
9102
|
padding: 0px ${qo("padding-x")};
|
|
9097
|
-
|
|
9103
|
+
width: 100%;
|
|
9098
9104
|
`, qn = g.div`
|
|
9099
|
-
display: flex;
|
|
9100
9105
|
align-items: center;
|
|
9101
|
-
justify-content: flex-start;
|
|
9102
9106
|
column-gap: ${qo("link-gap")};
|
|
9107
|
+
display: flex;
|
|
9108
|
+
height: 100%;
|
|
9109
|
+
justify-content: flex-start;
|
|
9103
9110
|
`, [Zn] = N(["shell-menu"]), M0 = _(
|
|
9104
9111
|
({ text: e, onClick: t, isActive: o }) => /* @__PURE__ */ c(
|
|
9105
9112
|
yh,
|