@wealthx/shadcn 1.5.29 → 1.5.30
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/.turbo/turbo-build.log +109 -109
- package/CHANGELOG.md +6 -0
- package/dist/{chunk-DWJHPNFL.mjs → chunk-4UT3RZ2D.mjs} +32 -16
- package/dist/{chunk-RNLIZRAK.mjs → chunk-C6R42PCL.mjs} +1 -1
- package/dist/{chunk-EVUY67CY.mjs → chunk-FTQ2AKZ2.mjs} +1 -1
- package/dist/{chunk-7T4TYUO3.mjs → chunk-H5ZD63NT.mjs} +31 -16
- package/dist/{chunk-SO4RB3XB.mjs → chunk-IEQX4UVP.mjs} +2 -2
- package/dist/chunk-IKVF4XE2.mjs +94 -0
- package/dist/{chunk-KPGARKFC.mjs → chunk-MS3GNXMB.mjs} +1 -1
- package/dist/{chunk-M32QNCD3.mjs → chunk-OSSS56CB.mjs} +1 -1
- package/dist/{chunk-36IN7YRM.mjs → chunk-SCGCGVDN.mjs} +1 -1
- package/dist/{chunk-KJQ3BVTB.mjs → chunk-X2NIDXFB.mjs} +1 -1
- package/dist/components/ui/backoffice-signup-steps.js +98 -48
- package/dist/components/ui/backoffice-signup-steps.mjs +4 -4
- package/dist/components/ui/bank-statement-generate-dialog.mjs +2 -2
- package/dist/components/ui/chat-widget.js +1 -1
- package/dist/components/ui/chat-widget.mjs +2 -2
- package/dist/components/ui/contact-alert-dialog/index.mjs +2 -2
- package/dist/components/ui/field.js +1 -1
- package/dist/components/ui/field.mjs +1 -1
- package/dist/components/ui/frontend-signup-steps.js +166 -90
- package/dist/components/ui/frontend-signup-steps.mjs +4 -5
- package/dist/components/ui/password-strength-tooltip.js +81 -107
- package/dist/components/ui/password-strength-tooltip.mjs +3 -2
- package/dist/components/ui/property-report-dialog.mjs +2 -2
- package/dist/components/ui/signup-form-primitives.js +117 -114
- package/dist/components/ui/signup-form-primitives.mjs +3 -4
- package/dist/components/ui/two-fa-setup-form.js +31 -16
- package/dist/components/ui/two-fa-setup-form.mjs +2 -2
- package/dist/index.js +133 -68
- package/dist/index.mjs +10 -10
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/ui/field.tsx +12 -12
- package/src/components/ui/password-strength-tooltip.tsx +89 -47
- package/src/components/ui/signup-form-primitives.tsx +34 -16
- package/src/components/ui/two-fa-setup-form.tsx +41 -31
- package/src/styles/styles-css.ts +1 -1
- package/dist/chunk-WHIW6KOB.mjs +0 -57
package/dist/chunk-WHIW6KOB.mjs
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Popover,
|
|
3
|
-
PopoverContent,
|
|
4
|
-
PopoverTrigger
|
|
5
|
-
} from "./chunk-HB5BKRMH.mjs";
|
|
6
|
-
|
|
7
|
-
// src/components/ui/password-strength-tooltip.tsx
|
|
8
|
-
import { Check, X } from "lucide-react";
|
|
9
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
var RULES = [
|
|
11
|
-
{ label: "Minimum 8 characters", test: (p) => p.length >= 8 },
|
|
12
|
-
{ label: "At least one uppercase letter", test: (p) => /[A-Z]/.test(p) },
|
|
13
|
-
{ label: "At least one lowercase letter", test: (p) => /[a-z]/.test(p) },
|
|
14
|
-
{ label: "At least one number", test: (p) => /\d/.test(p) },
|
|
15
|
-
{
|
|
16
|
-
label: "At least one special character",
|
|
17
|
-
test: (p) => /[^A-Za-z0-9]/.test(p)
|
|
18
|
-
}
|
|
19
|
-
];
|
|
20
|
-
function PasswordStrengthTooltip({
|
|
21
|
-
open = false,
|
|
22
|
-
password,
|
|
23
|
-
children,
|
|
24
|
-
side = "right"
|
|
25
|
-
}) {
|
|
26
|
-
return /* @__PURE__ */ jsxs(Popover, { open, children: [
|
|
27
|
-
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx("div", { children }) }),
|
|
28
|
-
/* @__PURE__ */ jsx(
|
|
29
|
-
PopoverContent,
|
|
30
|
-
{
|
|
31
|
-
side,
|
|
32
|
-
align: "start",
|
|
33
|
-
sideOffset: 8,
|
|
34
|
-
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
35
|
-
className: "w-auto max-w-[280px] font-sans",
|
|
36
|
-
children: /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-1.5", children: RULES.map((rule) => {
|
|
37
|
-
const valid = password ? rule.test(password) : false;
|
|
38
|
-
return /* @__PURE__ */ jsxs(
|
|
39
|
-
"div",
|
|
40
|
-
{
|
|
41
|
-
className: `flex items-center gap-1.5 text-[13px] leading-[18px] ${valid ? "text-success" : "text-destructive"}`,
|
|
42
|
-
children: [
|
|
43
|
-
valid ? /* @__PURE__ */ jsx(Check, { size: 14, className: "shrink-0" }) : /* @__PURE__ */ jsx(X, { size: 14, className: "shrink-0" }),
|
|
44
|
-
/* @__PURE__ */ jsx("span", { children: rule.label })
|
|
45
|
-
]
|
|
46
|
-
},
|
|
47
|
-
rule.label
|
|
48
|
-
);
|
|
49
|
-
}) })
|
|
50
|
-
}
|
|
51
|
-
)
|
|
52
|
-
] });
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export {
|
|
56
|
-
PasswordStrengthTooltip
|
|
57
|
-
};
|