@yimingliao/cms 0.0.130 → 0.0.132
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/export/client/index.js +8 -7
- package/dist/src/client/infrastructure/contexts/admin.js +5 -4
- package/dist/src/client/infrastructure/contexts/theme.js +5 -5
- package/dist/src/client/infrastructure/toast/error-display.js +15 -3
- package/dist/src/client/interfaces/components/admin-initializer.js +1 -0
- package/dist/src/client/interfaces/components/shadcn/avatar.js +5 -4
- package/dist/src/client/interfaces/components/shadcn/button.js +3 -2
- package/dist/src/client/interfaces/components/shadcn/card.js +9 -8
- package/dist/src/client/interfaces/components/shadcn/collapsible.js +4 -3
- package/dist/src/client/interfaces/components/shadcn/dropdown-menu.js +36 -29
- package/dist/src/client/interfaces/components/shadcn/input-group.js +8 -7
- package/dist/src/client/interfaces/components/shadcn/input.js +3 -2
- package/dist/src/client/interfaces/components/shadcn/label.js +3 -2
- package/dist/src/client/interfaces/components/shadcn/pagination.js +21 -18
- package/dist/src/client/interfaces/components/shadcn/select.js +47 -40
- package/dist/src/client/interfaces/components/shadcn/separator.js +3 -2
- package/dist/src/client/interfaces/components/shadcn/sheet.js +36 -27
- package/dist/src/client/interfaces/components/shadcn/sidebar.js +120 -105
- package/dist/src/client/interfaces/components/shadcn/skeleton.js +2 -1
- package/dist/src/client/interfaces/components/shadcn/spinner.js +2 -1
- package/dist/src/client/interfaces/components/shadcn/textarea.js +3 -2
- package/dist/src/client/interfaces/components/shadcn/tooltip.js +13 -10
- package/dist/src/client/interfaces/components/ui/blocks/list-cards-container/list-cards-container.js +35 -23
- package/dist/src/client/interfaces/components/ui/blocks/list-cards-container/page-size-selector.js +21 -14
- package/dist/src/client/interfaces/components/ui/blocks/list-cards-container/pagination.js +35 -26
- package/dist/src/client/interfaces/components/ui/blocks/page-header/page-header-title.js +10 -1
- package/dist/src/client/interfaces/components/ui/blocks/page-header/page-header.js +22 -15
- package/dist/src/client/interfaces/components/ui/blocks/page-header/presets/batch-create.js +2 -1
- package/dist/src/client/interfaces/components/ui/blocks/page-header/presets/batch.js +19 -14
- package/dist/src/client/interfaces/components/ui/blocks/page-header/presets/create.js +2 -1
- package/dist/src/client/interfaces/components/ui/blocks/page-header/presets/edit.js +2 -1
- package/dist/src/client/interfaces/components/ui/blocks/page-header/presets/index.js +34 -29
- package/dist/src/client/interfaces/components/ui/blocks/page-header/presets/show.js +43 -37
- package/dist/src/client/interfaces/components/ui/blocks/page-header/presets/trash.js +24 -18
- package/dist/src/client/interfaces/components/ui/buttons/button.js +9 -4
- package/dist/src/client/interfaces/components/ui/buttons/return-button.js +6 -4
- package/dist/src/client/interfaces/components/ui/features/expandable-list/expand-bar.js +9 -6
- package/dist/src/client/interfaces/components/ui/features/expandable-list/expandable-list-content.js +15 -8
- package/dist/src/client/interfaces/components/ui/features/expandable-list/expandable-list.js +22 -17
- package/dist/src/client/interfaces/components/ui/form/containers/fields-container.js +5 -4
- package/dist/src/client/interfaces/components/ui/form/containers/main-fields.js +5 -4
- package/dist/src/client/interfaces/components/ui/form/containers/side-fields.js +5 -4
- package/dist/src/client/interfaces/components/ui/form/control-fields/control-fields-display.js +81 -57
- package/dist/src/client/interfaces/components/ui/form/control-fields/control-fields-input.js +115 -91
- package/dist/src/client/interfaces/components/ui/form/control-fields/control-fields.js +4 -3
- package/dist/src/client/interfaces/components/ui/form/field-body.js +32 -28
- package/dist/src/client/interfaces/components/ui/form/field.js +12 -1
- package/dist/src/client/interfaces/components/ui/form/form.js +3 -1
- package/dist/src/client/interfaces/components/ui/form/index-field.js +50 -42
- package/dist/src/client/interfaces/components/ui/form/slug-field.js +46 -38
- package/dist/src/client/interfaces/components/ui/inputs/array-input.js +64 -52
- package/dist/src/client/interfaces/components/ui/inputs/checkbox.js +42 -38
- package/dist/src/client/interfaces/components/ui/inputs/input.js +21 -17
- package/dist/src/client/interfaces/components/ui/inputs/password-input.js +7 -5
- package/dist/src/client/interfaces/components/ui/inputs/search-input.js +7 -5
- package/dist/src/client/interfaces/components/ui/inputs/select.js +20 -13
- package/dist/src/client/interfaces/components/ui/inputs/textarea.js +4 -2
- package/dist/src/client/interfaces/components/ui/layouts/content-container.js +6 -4
- package/dist/src/client/interfaces/components/ui/layouts/layout-skeleton.js +21 -7
- package/dist/src/client/interfaces/components/ui/layouts/navbar/i18n-selector.js +8 -1
- package/dist/src/client/interfaces/components/ui/layouts/navbar/nav-user.js +60 -34
- package/dist/src/client/interfaces/components/ui/layouts/navbar/navbar.js +39 -26
- package/dist/src/client/interfaces/components/ui/layouts/navbar/sign-out-button.js +7 -2
- package/dist/src/client/interfaces/components/ui/layouts/navbar/theme-selector.js +22 -1
- package/dist/src/client/interfaces/components/ui/layouts/sidebar/nav-main.js +43 -27
- package/dist/src/client/interfaces/pages/auth/change-password/page.js +148 -0
- package/dist/src/client/interfaces/pages/auth/email-unverified/page.js +102 -0
- package/dist/src/client/interfaces/pages/auth/forgot-password/page.js +98 -0
- package/dist/src/client/interfaces/pages/auth/reset-password/page.js +120 -0
- package/dist/src/client/interfaces/pages/auth/sign-in/page.js +108 -0
- package/dist/src/client/interfaces/pages/auth/{verify-email.js → verify-email/page.js} +8 -7
- package/dist/types/src/client/interfaces/components/admin-initializer.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/ui/blocks/list-cards-container/page-size-selector.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/ui/blocks/page-header/page-header.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/ui/buttons/button.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/ui/buttons/return-button.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/ui/features/expandable-list/expandable-list-content.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/ui/form/control-fields/control-fields-display.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/ui/form/control-fields/control-fields-input.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/ui/form/field-body.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/ui/form/form.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/ui/form/index-field.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/ui/form/slug-field.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/ui/inputs/array-input.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/ui/inputs/checkbox.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/ui/inputs/input.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/ui/inputs/password-input.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/ui/inputs/search-input.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/ui/inputs/select.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/ui/inputs/textarea.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/ui/layouts/content-container.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/ui/layouts/layout-skeleton.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/ui/layouts/navbar/sign-out-button.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/pages/auth/{change-password.d.ts → change-password/page.d.ts} +3 -3
- package/dist/types/src/client/interfaces/pages/auth/change-password/page.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/pages/auth/{email-unverified.d.ts → email-unverified/page.d.ts} +3 -3
- package/dist/types/src/client/interfaces/pages/auth/email-unverified/page.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/pages/auth/{forgot-password.d.ts → forgot-password/page.d.ts} +3 -3
- package/dist/types/src/client/interfaces/pages/auth/forgot-password/page.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/pages/auth/index.d.ts +6 -6
- package/dist/types/src/client/interfaces/pages/auth/index.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/pages/auth/{reset-password.d.ts → reset-password/page.d.ts} +3 -3
- package/dist/types/src/client/interfaces/pages/auth/reset-password/page.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/pages/auth/{sign-in.d.ts → sign-in/page.d.ts} +3 -3
- package/dist/types/src/client/interfaces/pages/auth/sign-in/page.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/pages/auth/{verify-email.d.ts → verify-email/page.d.ts} +3 -3
- package/dist/types/src/client/interfaces/pages/auth/verify-email/page.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/src/client/interfaces/pages/auth/change-password.js +0 -137
- package/dist/src/client/interfaces/pages/auth/email-unverified.js +0 -84
- package/dist/src/client/interfaces/pages/auth/forgot-password.js +0 -83
- package/dist/src/client/interfaces/pages/auth/reset-password.js +0 -111
- package/dist/src/client/interfaces/pages/auth/sign-in.js +0 -99
- package/dist/types/src/client/interfaces/pages/auth/change-password.d.ts.map +0 -1
- package/dist/types/src/client/interfaces/pages/auth/email-unverified.d.ts.map +0 -1
- package/dist/types/src/client/interfaces/pages/auth/forgot-password.d.ts.map +0 -1
- package/dist/types/src/client/interfaces/pages/auth/reset-password.d.ts.map +0 -1
- package/dist/types/src/client/interfaces/pages/auth/sign-in.d.ts.map +0 -1
- package/dist/types/src/client/interfaces/pages/auth/verify-email.d.ts.map +0 -1
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useTranslator } from 'intor/react';
|
|
3
|
+
import { Mail } from 'lucide-react';
|
|
4
|
+
import { useRouter } from 'next/navigation';
|
|
5
|
+
import { useEffect } from 'react';
|
|
6
|
+
import { PATHS } from '../../../../../constants/paths/index.js';
|
|
7
|
+
import '../../../../../constants/redirect-paths.js';
|
|
8
|
+
import 'ua-parser-js';
|
|
9
|
+
import 'clsx';
|
|
10
|
+
import 'tailwind-merge';
|
|
11
|
+
import { useCountdown } from '../../../../applications/ui/use-count-down.js';
|
|
12
|
+
import 'sonner';
|
|
13
|
+
import '@tanstack/react-query';
|
|
14
|
+
import 'mime-types';
|
|
15
|
+
import { useAdmin } from '../../../../infrastructure/contexts/admin.js';
|
|
16
|
+
import 'next-themes';
|
|
17
|
+
import '@radix-ui/react-avatar';
|
|
18
|
+
import '../../../components/shadcn/button.js';
|
|
19
|
+
import { Card, CardHeader, CardTitle, CardContent, CardDescription } from '../../../components/shadcn/card.js';
|
|
20
|
+
import '@radix-ui/react-collapsible';
|
|
21
|
+
import '@radix-ui/react-dropdown-menu';
|
|
22
|
+
import { InputGroup, InputGroupAddon, InputGroupInput } from '../../../components/shadcn/input-group.js';
|
|
23
|
+
import { Label } from '../../../components/shadcn/label.js';
|
|
24
|
+
import '@radix-ui/react-select';
|
|
25
|
+
import '@radix-ui/react-separator';
|
|
26
|
+
import '@radix-ui/react-dialog';
|
|
27
|
+
import '../../../components/shadcn/sidebar.js';
|
|
28
|
+
import { Spinner } from '../../../components/shadcn/spinner.js';
|
|
29
|
+
import '@radix-ui/react-tooltip';
|
|
30
|
+
import 'next/link';
|
|
31
|
+
import { Button } from '../../../components/ui/buttons/button.js';
|
|
32
|
+
import 'intor/next';
|
|
33
|
+
import { Form } from '../../../components/ui/form/form.js';
|
|
34
|
+
|
|
35
|
+
function createEmailUnverifiedPage({
|
|
36
|
+
useCommand,
|
|
37
|
+
emailUnverifiedAction
|
|
38
|
+
}) {
|
|
39
|
+
return function EmailUnverifiedPage() {
|
|
40
|
+
const { t } = useTranslator();
|
|
41
|
+
const router = useRouter();
|
|
42
|
+
const { admin, isLoading } = useAdmin();
|
|
43
|
+
const { timeLeft, isCounting, startCountdown } = useCountdown(30);
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
if (!admin && !isLoading) {
|
|
46
|
+
router.replace(PATHS.auth.signIn.path);
|
|
47
|
+
}
|
|
48
|
+
if (admin?.emailVerifiedAt) {
|
|
49
|
+
router.replace(PATHS.main.dashboard.path);
|
|
50
|
+
}
|
|
51
|
+
}, [admin, isLoading, router]);
|
|
52
|
+
const { execute, isPending } = useCommand(
|
|
53
|
+
() => emailUnverifiedAction({ formData: { email: admin?.email ?? "" } }),
|
|
54
|
+
{ onSuccess: () => startCountdown() }
|
|
55
|
+
);
|
|
56
|
+
const buttonText = !isCounting ? t("auth.email-unverified.button.send-email.text") : /* @__PURE__ */ jsxs("span", { children: [
|
|
57
|
+
t("auth.email-unverified.button.please-wait.text"),
|
|
58
|
+
/* @__PURE__ */ jsx("span", { className: "ml-1 inline-block w-5 text-end", children: timeLeft }),
|
|
59
|
+
"\xA0",
|
|
60
|
+
t("auth.email-unverified.button.second.text"),
|
|
61
|
+
"\xA0",
|
|
62
|
+
t("auth.email-unverified.button.send-again.text")
|
|
63
|
+
] });
|
|
64
|
+
return /* @__PURE__ */ jsx(
|
|
65
|
+
Form,
|
|
66
|
+
{
|
|
67
|
+
className: "mx-auto w-96",
|
|
68
|
+
style: { marginTop: "56px" },
|
|
69
|
+
onSubmit: () => void execute(),
|
|
70
|
+
children: /* @__PURE__ */ jsxs(Card, { children: [
|
|
71
|
+
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "mx-auto", children: t("auth.email-unverified.text") }) }),
|
|
72
|
+
/* @__PURE__ */ jsxs(CardContent, { className: "relative flex flex-col gap-6", children: [
|
|
73
|
+
/* @__PURE__ */ jsxs(InputGroup, { children: [
|
|
74
|
+
/* @__PURE__ */ jsx(InputGroupAddon, { children: /* @__PURE__ */ jsx(Label, { htmlFor: "email", className: "text-foreground", children: /* @__PURE__ */ jsx(Mail, { className: "size-4" }) }) }),
|
|
75
|
+
isLoading ? /* @__PURE__ */ jsx("div", { className: "px-2", children: /* @__PURE__ */ jsx(Spinner, {}) }) : /* @__PURE__ */ jsx(
|
|
76
|
+
InputGroupInput,
|
|
77
|
+
{
|
|
78
|
+
id: "email",
|
|
79
|
+
placeholder: "shadcn@vercel.com",
|
|
80
|
+
disabled: true,
|
|
81
|
+
value: admin?.email
|
|
82
|
+
}
|
|
83
|
+
)
|
|
84
|
+
] }),
|
|
85
|
+
/* @__PURE__ */ jsx(CardDescription, { children: /* @__PURE__ */ jsx("p", { className: "text-sm whitespace-pre-line", children: t("auth.email-unverified.notice.text") }) }),
|
|
86
|
+
/* @__PURE__ */ jsx(
|
|
87
|
+
Button,
|
|
88
|
+
{
|
|
89
|
+
type: "submit",
|
|
90
|
+
isLoading: isLoading || isPending,
|
|
91
|
+
isDisabled: isCounting,
|
|
92
|
+
children: buttonText
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
] })
|
|
96
|
+
] })
|
|
97
|
+
}
|
|
98
|
+
);
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export { createEmailUnverifiedPage };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useTranslator } from 'intor/react';
|
|
3
|
+
import Link from 'next/link';
|
|
4
|
+
import { useState } from 'react';
|
|
5
|
+
import { PATHS } from '../../../../../constants/paths/index.js';
|
|
6
|
+
import '../../../../../constants/redirect-paths.js';
|
|
7
|
+
import 'ua-parser-js';
|
|
8
|
+
import 'clsx';
|
|
9
|
+
import 'tailwind-merge';
|
|
10
|
+
import { useCountdown } from '../../../../applications/ui/use-count-down.js';
|
|
11
|
+
import 'next/navigation';
|
|
12
|
+
import '@radix-ui/react-avatar';
|
|
13
|
+
import '../../../components/shadcn/button.js';
|
|
14
|
+
import { Card, CardHeader, CardTitle, CardContent } from '../../../components/shadcn/card.js';
|
|
15
|
+
import '@radix-ui/react-collapsible';
|
|
16
|
+
import '@radix-ui/react-dropdown-menu';
|
|
17
|
+
import 'lucide-react';
|
|
18
|
+
import '../../../components/shadcn/input-group.js';
|
|
19
|
+
import '@radix-ui/react-label';
|
|
20
|
+
import '@radix-ui/react-select';
|
|
21
|
+
import '@radix-ui/react-separator';
|
|
22
|
+
import '@radix-ui/react-dialog';
|
|
23
|
+
import '../../../components/shadcn/sidebar.js';
|
|
24
|
+
import '@radix-ui/react-tooltip';
|
|
25
|
+
import 'sonner';
|
|
26
|
+
import '@tanstack/react-query';
|
|
27
|
+
import 'mime-types';
|
|
28
|
+
import '../../../../infrastructure/contexts/admin.js';
|
|
29
|
+
import 'next-themes';
|
|
30
|
+
import { Button } from '../../../components/ui/buttons/button.js';
|
|
31
|
+
import 'intor/next';
|
|
32
|
+
import { Input } from '../../../components/ui/inputs/input.js';
|
|
33
|
+
import { Form } from '../../../components/ui/form/form.js';
|
|
34
|
+
import { Field } from '../../../components/ui/form/field.js';
|
|
35
|
+
|
|
36
|
+
function createForgotPasswordPage({
|
|
37
|
+
useCommand,
|
|
38
|
+
forgotPasswordAction
|
|
39
|
+
}) {
|
|
40
|
+
return function ForgotPasswordPage() {
|
|
41
|
+
const { t } = useTranslator();
|
|
42
|
+
const { timeLeft, isCounting, startCountdown } = useCountdown(30);
|
|
43
|
+
const [formData, setFormData] = useState({
|
|
44
|
+
email: ""
|
|
45
|
+
});
|
|
46
|
+
const { execute, isPending, errors } = useCommand(
|
|
47
|
+
() => forgotPasswordAction({ formData: { email: formData.email } }),
|
|
48
|
+
{ onSuccess: () => startCountdown() }
|
|
49
|
+
);
|
|
50
|
+
const buttonText = !isCounting ? t("auth.forgot-password.button.send-email.text") : /* @__PURE__ */ jsxs("span", { children: [
|
|
51
|
+
t("auth.forgot-password.button.please-wait.text"),
|
|
52
|
+
/* @__PURE__ */ jsx("span", { className: "ml-1 inline-block w-5 text-end", children: timeLeft }),
|
|
53
|
+
"\xA0",
|
|
54
|
+
t("auth.forgot-password.button.second.text"),
|
|
55
|
+
"\xA0",
|
|
56
|
+
t("auth.forgot-password.button.send-again.text")
|
|
57
|
+
] });
|
|
58
|
+
return /* @__PURE__ */ jsx(
|
|
59
|
+
Form,
|
|
60
|
+
{
|
|
61
|
+
className: "mx-auto w-96",
|
|
62
|
+
style: { marginTop: "56px" },
|
|
63
|
+
onSubmit: () => void execute(),
|
|
64
|
+
children: /* @__PURE__ */ jsxs(Card, { children: [
|
|
65
|
+
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "mx-auto", children: t("auth.forgot-password.text") }) }),
|
|
66
|
+
/* @__PURE__ */ jsxs(CardContent, { className: "relative flex flex-col gap-6", children: [
|
|
67
|
+
/* @__PURE__ */ jsx(Field, { htmlFor: "email", label: t("auth.forgot-password.email.text"), children: /* @__PURE__ */ jsx(
|
|
68
|
+
Input,
|
|
69
|
+
{
|
|
70
|
+
id: "email",
|
|
71
|
+
placeholder: t("auth.forgot-password.email.placeholder.text"),
|
|
72
|
+
autoComplete: "email",
|
|
73
|
+
fieldName: "email",
|
|
74
|
+
value: formData.email,
|
|
75
|
+
setFormData,
|
|
76
|
+
isDisabled: isPending || isCounting,
|
|
77
|
+
isError: errors.includes("email")
|
|
78
|
+
}
|
|
79
|
+
) }),
|
|
80
|
+
/* @__PURE__ */ jsx(
|
|
81
|
+
Button,
|
|
82
|
+
{
|
|
83
|
+
size: "xs",
|
|
84
|
+
variant: "link",
|
|
85
|
+
className: "w-fit",
|
|
86
|
+
isDisabled: isPending,
|
|
87
|
+
children: /* @__PURE__ */ jsx(Link, { href: PATHS.auth.signIn.path, children: t("auth.forgot-password.anchor.text") })
|
|
88
|
+
}
|
|
89
|
+
),
|
|
90
|
+
/* @__PURE__ */ jsx(Button, { type: "submit", isLoading: isPending, isDisabled: isCounting, children: buttonText })
|
|
91
|
+
] })
|
|
92
|
+
] })
|
|
93
|
+
}
|
|
94
|
+
);
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export { createForgotPasswordPage };
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { useTranslator } from 'intor/react';
|
|
3
|
+
import Link from 'next/link';
|
|
4
|
+
import { useRouter, useSearchParams } from 'next/navigation';
|
|
5
|
+
import { useState } from 'react';
|
|
6
|
+
import { PATHS } from '../../../../../constants/paths/index.js';
|
|
7
|
+
import '../../../../../constants/redirect-paths.js';
|
|
8
|
+
import 'ua-parser-js';
|
|
9
|
+
import 'clsx';
|
|
10
|
+
import 'tailwind-merge';
|
|
11
|
+
import '@radix-ui/react-avatar';
|
|
12
|
+
import '../../../components/shadcn/button.js';
|
|
13
|
+
import { Card, CardHeader, CardTitle, CardContent } from '../../../components/shadcn/card.js';
|
|
14
|
+
import '@radix-ui/react-collapsible';
|
|
15
|
+
import '@radix-ui/react-dropdown-menu';
|
|
16
|
+
import 'lucide-react';
|
|
17
|
+
import '../../../components/shadcn/input-group.js';
|
|
18
|
+
import '@radix-ui/react-label';
|
|
19
|
+
import '@radix-ui/react-select';
|
|
20
|
+
import '@radix-ui/react-separator';
|
|
21
|
+
import '@radix-ui/react-dialog';
|
|
22
|
+
import '../../../components/shadcn/sidebar.js';
|
|
23
|
+
import '@radix-ui/react-tooltip';
|
|
24
|
+
import 'sonner';
|
|
25
|
+
import '@tanstack/react-query';
|
|
26
|
+
import 'mime-types';
|
|
27
|
+
import '../../../../infrastructure/contexts/admin.js';
|
|
28
|
+
import 'next-themes';
|
|
29
|
+
import { Button } from '../../../components/ui/buttons/button.js';
|
|
30
|
+
import 'intor/next';
|
|
31
|
+
import { PasswordInput } from '../../../components/ui/inputs/password-input.js';
|
|
32
|
+
import { Form } from '../../../components/ui/form/form.js';
|
|
33
|
+
import { Field } from '../../../components/ui/form/field.js';
|
|
34
|
+
|
|
35
|
+
function createResetPasswordPage({
|
|
36
|
+
useCommand,
|
|
37
|
+
resetPasswordAction
|
|
38
|
+
}) {
|
|
39
|
+
return function ResetPasswordPage() {
|
|
40
|
+
const { t } = useTranslator();
|
|
41
|
+
const router = useRouter();
|
|
42
|
+
const passwordResetToken = useSearchParams().get("passwordResetToken") ?? "";
|
|
43
|
+
const [formData, setFormData] = useState({
|
|
44
|
+
newPassword: "",
|
|
45
|
+
newPasswordConfirm: ""
|
|
46
|
+
});
|
|
47
|
+
const { execute, isRedirecting, errors } = useCommand(
|
|
48
|
+
() => resetPasswordAction({ formData: { passwordResetToken, ...formData } }),
|
|
49
|
+
{ onSuccess: () => router.push(PATHS.auth.signIn.path) }
|
|
50
|
+
);
|
|
51
|
+
return /* @__PURE__ */ jsx(
|
|
52
|
+
Form,
|
|
53
|
+
{
|
|
54
|
+
className: "mx-auto w-96",
|
|
55
|
+
style: { marginTop: "56px" },
|
|
56
|
+
onSubmit: () => void execute(),
|
|
57
|
+
children: /* @__PURE__ */ jsxs(Card, { children: [
|
|
58
|
+
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "mx-auto", children: t("auth.reset-password.text") }) }),
|
|
59
|
+
/* @__PURE__ */ jsxs(CardContent, { className: "relative flex flex-col gap-6", children: [
|
|
60
|
+
/* @__PURE__ */ jsx(
|
|
61
|
+
Field,
|
|
62
|
+
{
|
|
63
|
+
htmlFor: "newPassword",
|
|
64
|
+
label: t("auth.reset-password.new-password.text"),
|
|
65
|
+
children: /* @__PURE__ */ jsx(
|
|
66
|
+
PasswordInput,
|
|
67
|
+
{
|
|
68
|
+
id: "newPassword",
|
|
69
|
+
placeholder: t(
|
|
70
|
+
"auth.reset-password.new-password.placeholder.text"
|
|
71
|
+
),
|
|
72
|
+
fieldName: "newPassword",
|
|
73
|
+
value: formData.newPassword,
|
|
74
|
+
setFormData,
|
|
75
|
+
isDisabled: isRedirecting,
|
|
76
|
+
isError: errors.includes("newPassword")
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
/* @__PURE__ */ jsx(
|
|
82
|
+
Field,
|
|
83
|
+
{
|
|
84
|
+
htmlFor: "newPasswordConfirm",
|
|
85
|
+
label: t("auth.reset-password.new-password-confirm.text"),
|
|
86
|
+
children: /* @__PURE__ */ jsx(
|
|
87
|
+
PasswordInput,
|
|
88
|
+
{
|
|
89
|
+
id: "newPasswordConfirm",
|
|
90
|
+
placeholder: t(
|
|
91
|
+
`auth.reset-password.new-password-confirm.placeholder.text`
|
|
92
|
+
),
|
|
93
|
+
fieldName: "newPasswordConfirm",
|
|
94
|
+
value: formData.newPasswordConfirm,
|
|
95
|
+
setFormData,
|
|
96
|
+
isDisabled: isRedirecting,
|
|
97
|
+
isError: errors.includes("newPasswordConfirm")
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
}
|
|
101
|
+
),
|
|
102
|
+
/* @__PURE__ */ jsx(
|
|
103
|
+
Button,
|
|
104
|
+
{
|
|
105
|
+
size: "xs",
|
|
106
|
+
variant: "link",
|
|
107
|
+
className: "w-fit",
|
|
108
|
+
isDisabled: isRedirecting,
|
|
109
|
+
children: /* @__PURE__ */ jsx(Link, { href: PATHS.auth.signIn.path, children: t("auth.reset-password.anchor.text") })
|
|
110
|
+
}
|
|
111
|
+
),
|
|
112
|
+
/* @__PURE__ */ jsx(Button, { type: "submit", isLoading: isRedirecting, children: t("auth.reset-password.button.text") })
|
|
113
|
+
] })
|
|
114
|
+
] })
|
|
115
|
+
}
|
|
116
|
+
);
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export { createResetPasswordPage };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { useTranslator } from 'intor/react';
|
|
3
|
+
import Link from 'next/link';
|
|
4
|
+
import { useState } from 'react';
|
|
5
|
+
import { PATHS } from '../../../../../constants/paths/index.js';
|
|
6
|
+
import '../../../../../constants/redirect-paths.js';
|
|
7
|
+
import { useDeviceInfo } from '../../../../applications/auth/sign-in/use-device-info.js';
|
|
8
|
+
import 'clsx';
|
|
9
|
+
import 'tailwind-merge';
|
|
10
|
+
import 'next/navigation';
|
|
11
|
+
import 'sonner';
|
|
12
|
+
import '@tanstack/react-query';
|
|
13
|
+
import 'mime-types';
|
|
14
|
+
import { useAdmin } from '../../../../infrastructure/contexts/admin.js';
|
|
15
|
+
import 'next-themes';
|
|
16
|
+
import '@radix-ui/react-avatar';
|
|
17
|
+
import '../../../components/shadcn/button.js';
|
|
18
|
+
import { Card, CardHeader, CardTitle, CardContent } from '../../../components/shadcn/card.js';
|
|
19
|
+
import '@radix-ui/react-collapsible';
|
|
20
|
+
import '@radix-ui/react-dropdown-menu';
|
|
21
|
+
import 'lucide-react';
|
|
22
|
+
import '../../../components/shadcn/input-group.js';
|
|
23
|
+
import '@radix-ui/react-label';
|
|
24
|
+
import '@radix-ui/react-select';
|
|
25
|
+
import '@radix-ui/react-separator';
|
|
26
|
+
import '@radix-ui/react-dialog';
|
|
27
|
+
import '../../../components/shadcn/sidebar.js';
|
|
28
|
+
import '@radix-ui/react-tooltip';
|
|
29
|
+
import { Button } from '../../../components/ui/buttons/button.js';
|
|
30
|
+
import 'intor/next';
|
|
31
|
+
import { Input } from '../../../components/ui/inputs/input.js';
|
|
32
|
+
import { PasswordInput } from '../../../components/ui/inputs/password-input.js';
|
|
33
|
+
import { Form } from '../../../components/ui/form/form.js';
|
|
34
|
+
import { Field } from '../../../components/ui/form/field.js';
|
|
35
|
+
|
|
36
|
+
function createSignInPage({
|
|
37
|
+
useCommand,
|
|
38
|
+
signInAction
|
|
39
|
+
}) {
|
|
40
|
+
return function SignInPage() {
|
|
41
|
+
const { t } = useTranslator();
|
|
42
|
+
const { setAdmin } = useAdmin();
|
|
43
|
+
const deviceInfo = useDeviceInfo();
|
|
44
|
+
const [formData, setFormData] = useState({
|
|
45
|
+
email: "",
|
|
46
|
+
password: ""
|
|
47
|
+
});
|
|
48
|
+
const { execute, isRedirecting, errors } = useCommand(
|
|
49
|
+
() => signInAction({
|
|
50
|
+
formData,
|
|
51
|
+
deviceInfo: deviceInfo ?? {}
|
|
52
|
+
}),
|
|
53
|
+
{ onSuccess: (data) => setAdmin(data?.admin || null) }
|
|
54
|
+
);
|
|
55
|
+
return /* @__PURE__ */ jsx(
|
|
56
|
+
Form,
|
|
57
|
+
{
|
|
58
|
+
className: "mx-auto w-96",
|
|
59
|
+
style: { marginTop: "56px" },
|
|
60
|
+
onSubmit: () => void execute(),
|
|
61
|
+
children: /* @__PURE__ */ jsxs(Card, { children: [
|
|
62
|
+
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "mx-auto", children: t("auth.sign-in.text") }) }),
|
|
63
|
+
/* @__PURE__ */ jsxs(CardContent, { className: "relative flex flex-col gap-6", children: [
|
|
64
|
+
/* @__PURE__ */ jsx(Field, { htmlFor: "email", label: t("auth.sign-in.email.text"), children: /* @__PURE__ */ jsx(
|
|
65
|
+
Input,
|
|
66
|
+
{
|
|
67
|
+
id: "email",
|
|
68
|
+
type: "email",
|
|
69
|
+
placeholder: t("auth.sign-in.email.placeholder.text"),
|
|
70
|
+
autoComplete: "email",
|
|
71
|
+
fieldName: "email",
|
|
72
|
+
value: formData.email,
|
|
73
|
+
setFormData,
|
|
74
|
+
isDisabled: isRedirecting,
|
|
75
|
+
isError: errors.includes("email")
|
|
76
|
+
}
|
|
77
|
+
) }),
|
|
78
|
+
/* @__PURE__ */ jsx(Field, { htmlFor: "password", label: t("auth.sign-in.password.text"), children: /* @__PURE__ */ jsx(
|
|
79
|
+
PasswordInput,
|
|
80
|
+
{
|
|
81
|
+
id: "password",
|
|
82
|
+
placeholder: t("auth.sign-in.password.placeholder.text"),
|
|
83
|
+
fieldName: "password",
|
|
84
|
+
value: formData.password,
|
|
85
|
+
setFormData,
|
|
86
|
+
isDisabled: isRedirecting,
|
|
87
|
+
isError: errors.includes("password")
|
|
88
|
+
}
|
|
89
|
+
) }),
|
|
90
|
+
/* @__PURE__ */ jsx(
|
|
91
|
+
Button,
|
|
92
|
+
{
|
|
93
|
+
size: "xs",
|
|
94
|
+
variant: "link",
|
|
95
|
+
className: "w-fit",
|
|
96
|
+
isDisabled: isRedirecting,
|
|
97
|
+
children: /* @__PURE__ */ jsx(Link, { href: PATHS.auth.forgotPassword.path, children: t("auth.sign-in.anchor.text") })
|
|
98
|
+
}
|
|
99
|
+
),
|
|
100
|
+
/* @__PURE__ */ jsx(Button, { type: "submit", isLoading: isRedirecting, children: t("auth.sign-in.button.text") })
|
|
101
|
+
] })
|
|
102
|
+
] })
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export { createSignInPage };
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
1
2
|
import { useRouter, useSearchParams } from 'next/navigation';
|
|
2
3
|
import { useEffect } from 'react';
|
|
3
|
-
import { PATHS } from '
|
|
4
|
-
import '
|
|
4
|
+
import { PATHS } from '../../../../../constants/paths/index.js';
|
|
5
|
+
import '../../../../../constants/redirect-paths.js';
|
|
5
6
|
import '@radix-ui/react-avatar';
|
|
6
7
|
import 'ua-parser-js';
|
|
7
8
|
import 'clsx';
|
|
8
9
|
import 'tailwind-merge';
|
|
9
|
-
import '
|
|
10
|
+
import '../../../components/shadcn/button.js';
|
|
10
11
|
import '@radix-ui/react-collapsible';
|
|
11
12
|
import '@radix-ui/react-dropdown-menu';
|
|
12
13
|
import 'lucide-react';
|
|
13
|
-
import '
|
|
14
|
+
import '../../../components/shadcn/input-group.js';
|
|
14
15
|
import '@radix-ui/react-label';
|
|
15
16
|
import '@radix-ui/react-select';
|
|
16
17
|
import '@radix-ui/react-separator';
|
|
17
18
|
import '@radix-ui/react-dialog';
|
|
18
|
-
import '
|
|
19
|
-
import { Spinner } from '
|
|
19
|
+
import '../../../components/shadcn/sidebar.js';
|
|
20
|
+
import { Spinner } from '../../../components/shadcn/spinner.js';
|
|
20
21
|
import '@radix-ui/react-tooltip';
|
|
21
22
|
|
|
22
23
|
function createVerifyEmailPage({
|
|
@@ -44,7 +45,7 @@ function createVerifyEmailPage({
|
|
|
44
45
|
}
|
|
45
46
|
})();
|
|
46
47
|
}, [email, emailVerificationToken]);
|
|
47
|
-
return /* @__PURE__ */
|
|
48
|
+
return /* @__PURE__ */ jsx("div", { className: "flex-center relative flex-1 flex-col", children: /* @__PURE__ */ jsx(Spinner, { className: "size-10" }) });
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
51
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-initializer.d.ts","sourceRoot":"","sources":["../../../../../../src/client/interfaces/components/admin-initializer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"admin-initializer.d.ts","sourceRoot":"","sources":["../../../../../../src/client/interfaces/components/admin-initializer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAI9E,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,QAAQ,EACR,YAAY,GACb,EAAE;IACD,QAAQ,EAAE,MAAM,iBAAiB,CAAC;IAClC,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;IAC5C,YAAY,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;CACrD,cA2BA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-size-selector.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/ui/blocks/list-cards-container/page-size-selector.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"page-size-selector.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/ui/blocks/list-cards-container/page-size-selector.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAItD,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,WAAW,EACX,OAAO,GACR,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAC9C,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;CAC3C,2CAwBA"}
|
package/dist/types/src/client/interfaces/components/ui/blocks/page-header/page-header.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-header.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/ui/blocks/page-header/page-header.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"page-header.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/ui/blocks/page-header/page-header.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAGV,OAAO,EACR,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,qBAAqB,CAAC;AAS7B,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iBAAiB,CAAC,EAAE,WAAW,CAAC;IAChC,iBAAiB,CAAC,EAAE,WAAW,CAAC;IAChC,yBAAyB,CAAC,EAAE,WAAW,CAAC;IACxC,eAAe,CAAC,EAAE,WAAW,CAAC;IAC9B,eAAe,CAAC,EAAE,WAAW,CAAC;IAC9B,kBAAkB,CAAC,EAAE,WAAW,CAAC;IACjC,gBAAgB,CAAC,EAAE,WAAW,CAAC;IAC/B,kBAAkB,CAAC,EAAE,WAAW,CAAC;IACjC,kBAAkB,CAAC,EAAE,WAAW,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAgBD,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,2CAuChD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/buttons/button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/buttons/button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,EAEL,KAAK,WAAW,IAAI,iBAAiB,EAEtC,MAAM,cAAc,CAAC;AAEtB,MAAM,WAAW,WAAY,SAAQ,iBAAiB,EAAE,QAAQ;IAC9D,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAClC;AAED,wBAAgB,MAAM,CAAC,EACrB,IAAI,EACJ,IAAI,EACJ,UAAkB,EAElB,UAAkB,EAClB,SAAiB,EAEjB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,WAAW,2CA6Bb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"return-button.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/buttons/return-button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"return-button.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/buttons/return-button.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAEpD,UAAU,iBAAkB,SAAQ,WAAW;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,OAAc,EAEd,UAAkB,EAElB,IAAI,EACJ,OAAe,EACf,YAAoB,EACpB,aAAqB,EAErB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,iBAAiB,2CA0CnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expandable-list-content.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/ui/features/expandable-list/expandable-list-content.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"expandable-list-content.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/ui/features/expandable-list/expandable-list-content.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,UAAU,0BAA0B,CAAC,CAAC;IACpC,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;IACf,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAID,wBAAgB,qBAAqB,CAAC,EACpC,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,gBAAgB,EAChB,QAAQ,GACT,EAAE,0BAA0B,CAAC,MAAM,GAAG,MAAM,CAAC,2CA0C7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-fields-display.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/ui/form/control-fields/control-fields-display.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"control-fields-display.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/ui/form/control-fields/control-fields-display.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAS9E,UAAU,yBAAyB,CACjC,CAAC,SAAS,QAAQ,CAClB,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC9B,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC3C;AAED,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,QAAQ,EAAE,EACvD,MAAM,EAEN,QAAQ,EAER,SAAiB,GAClB,EAAE,yBAAyB,CAAC,CAAC,CAAC,kDA8G9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-fields-input.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/ui/form/control-fields/control-fields-input.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"control-fields-input.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/ui/form/control-fields/control-fields-input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAgB9E,UAAU,uBAAuB,CAC/B,CAAC,SAAS,QAAQ,CAClB,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC9B,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC1C,WAAW,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CACvC;AAED,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,QAAQ,EAAE,EACrD,MAAW,EAEX,WAAgB,EAEhB,QAAQ,EACR,WAAW,EAEX,SAAiB,EACjB,UAAkB,EAClB,MAAM,GACP,EAAE,uBAAuB,CAAC,CAAC,CAAC,kDAsJ5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-body.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/form/field-body.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"field-body.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/form/field-body.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAK5C,UAAU,cAAe,SAAQ,cAAc,CAAC,cAAc,CAAC,EAAE,QAAQ;IACvE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,wBAAgB,SAAS,CAAC,EAExB,SAAiB,EACjB,UAAkB,EAClB,OAAe,EAEf,SAAS,EACT,mBAAmB,EACnB,iBAAiB,EACjB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,cAAc,2CAsDhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/form/form.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/form/form.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,OAAO,CAAC;AAGzD,wBAAgB,IAAI,CAAC,EACnB,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,MAAM,CAAC,2CAQxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-field.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/form/index-field.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index-field.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/form/index-field.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,QAAQ,EACb,KAAK,mBAAmB,EACzB,MAAM,uBAAuB,CAAC;AAM/B,UAAU,eAAe,CAAC,CAAC,SAAS,QAAQ,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC1E,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,wBAAgB,UAAU,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,EACxD,eAAe,EACf,cAAkB,EAAE,sBAAsB;AAE1C,QAAQ,EACR,WAAW,EAEX,SAAiB,EACjB,UAAkB,EAClB,OAAe,EACf,SAAiB,EAEjB,EAAE,GACH,EAAE,eAAe,CAAC,CAAC,CAAC,2CAgEpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slug-field.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/form/slug-field.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"slug-field.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/form/slug-field.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,QAAQ,EACb,KAAK,mBAAmB,EACzB,MAAM,uBAAuB,CAAC;AAM/B,UAAU,cAAc,CAAC,CAAC,SAAS,QAAQ,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IACzE,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,wBAAgB,SAAS,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,EACvD,aAAa,EAEb,QAAQ,EACR,WAAW,EAEX,SAAiB,EACjB,UAAkB,EAClB,OAAe,EACf,SAAiB,EAEjB,EAAE,GACH,EAAE,cAAc,CAAC,CAAC,CAAC,2CAiEnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array-input.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/inputs/array-input.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"array-input.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/inputs/array-input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAO5C,UAAU,eAAe,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,CACrD,SAAQ,cAAc,CAAC,UAAU,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC;IAC1D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,wBAAgB,UAAU,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,EAExD,QAAQ,EACR,SAAS,EACT,WAAW,EAEX,SAAiB,EACjB,UAAkB,EAClB,WAAmB,EACnB,MAAM,EAEN,WAAgB,EAChB,GAAG,KAAK,EACT,EAAE,eAAe,CAAC,CAAC,CAAC,2CA2FpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/inputs/checkbox.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/inputs/checkbox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAIjD,UAAU,aAAa,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,CACnD,SAAQ,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC;IACrE,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,EAEtD,SAAS,EACT,QAAQ,EACR,WAAW,EAEX,SAAiB,EACjB,UAAkB,EAElB,SAAiB,EACjB,SAAc,EACd,GAAG,KAAK,EACT,EAAE,aAAa,CAAC,CAAC,CAAC,2CA4DlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/inputs/input.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/inputs/input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAS5C,MAAM,WAAW,UAAU,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,CACvD,SAAQ,cAAc,CAAC,OAAO,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC;IACvD,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,wBAAgB,KAAK,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,EAEnD,SAAS,EACT,WAAW,EAEX,SAAiB,EACjB,UAAkB,EAClB,OAAe,EAEf,SAAS,EACT,mBAAmB,EACnB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,UAAU,CAAC,CAAC,CAAC,2CA0Bf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password-input.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/inputs/password-input.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"password-input.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/inputs/password-input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAMxD,wBAAgB,aAAa,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,EAC3D,GAAG,KAAK,EACT,EAAE,UAAU,CAAC,CAAC,CAAC,2CAiBf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-input.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/inputs/search-input.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"search-input.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/inputs/search-input.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAoB,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAE7E,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAEjD,UAAU,gBAAiB,SAAQ,UAAU;IAC3C,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;CACnD;AAED,wBAAgB,WAAW,CAAC,EAC1B,YAAiB,EACjB,eAAe,EACf,SAAiB,EACjB,UAAkB,EAClB,GAAG,KAAK,EACT,EAAE,gBAAgB,2CAoClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/inputs/select.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/inputs/select.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAYvD,UAAU,WAAW,CAAC,CAAC,SAAS,QAAQ,CACtC,SAAQ,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC;IAC3E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,wBAAgB,MAAM,CAAC,CAAC,SAAS,QAAQ,EAAE,EAEzC,SAAS,EACT,WAAW,EAEX,UAAkB,EAClB,SAAiB,EAEjB,WAAW,EACX,KAAK,EACL,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,WAAW,CAAC,CAAC,CAAC,2CAwBhB;AAED,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,UAAkB,EAClB,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;CACrB,2CAMA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/inputs/textarea.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/inputs/textarea.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAAe,cAAc,EAAE,MAAM,OAAO,CAAC;AASzD,UAAU,aAAa,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,CACnD,SAAQ,cAAc,CAAC,UAAU,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC;CAAG;AAE/D,wBAAgB,QAAQ,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,EAEtD,SAAS,EACT,WAAW,EAEX,SAAiB,EACjB,UAAkB,EAClB,OAAe,EAEf,GAAG,KAAK,EACT,EAAE,aAAa,CAAC,CAAC,CAAC,2CAwClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-container.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/layouts/content-container.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"content-container.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/layouts/content-container.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvD,UAAU,qBAAsB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACpE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,SAAc,EACd,QAAQ,EACR,UAAkB,EAClB,WAAW,EACX,GAAG,KAAK,EACT,EAAE,qBAAqB,2CA0BvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout-skeleton.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/layouts/layout-skeleton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"layout-skeleton.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/layouts/layout-skeleton.tsx"],"names":[],"mappings":"AAKA,wBAAgB,cAAc,4CAyB7B"}
|
package/dist/types/src/client/interfaces/components/ui/layouts/navbar/sign-out-button.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sign-out-button.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/ui/layouts/navbar/sign-out-button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sign-out-button.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/ui/layouts/navbar/sign-out-button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAMpE,OAAO,EAAY,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGhF,wBAAgB,mBAAmB,CAAC,EAClC,UAAU,EACV,aAAa,GACd,EAAE;IACD,UAAU,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;IAChD,aAAa,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;CACvD,iDA+BA"}
|