@vitnode/core 1.2.0-canary.51 → 1.2.0-canary.52
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/scripts/scripts.js +2 -2
- package/dist/src/api/middlewares/global.middleware.d.ts +2 -10
- package/dist/src/api/middlewares/global.middleware.d.ts.map +1 -1
- package/dist/src/api/models/email.d.ts +24 -8
- package/dist/src/api/models/email.d.ts.map +1 -1
- package/dist/src/api/models/email.js +27 -15
- package/dist/src/api/models/password.d.ts +4 -0
- package/dist/src/api/models/password.d.ts.map +1 -1
- package/dist/src/api/models/password.js +8 -0
- package/dist/src/api/models/session-admin.d.ts +1 -0
- package/dist/src/api/models/session-admin.d.ts.map +1 -1
- package/dist/src/api/models/session.d.ts +1 -0
- package/dist/src/api/models/session.d.ts.map +1 -1
- package/dist/src/api/models/sso.d.ts.map +1 -1
- package/dist/src/api/models/sso.js +8 -5
- package/dist/src/api/models/user/get-user-by-id.d.ts +1 -0
- package/dist/src/api/models/user/get-user-by-id.d.ts.map +1 -1
- package/dist/src/api/models/user/get-user-by-id.js +2 -1
- package/dist/src/api/models/user/sign-up.js +2 -2
- package/dist/src/api/models/user.d.ts +1 -0
- package/dist/src/api/models/user.d.ts.map +1 -1
- package/dist/src/api/modules/users/routes/change-password.route.d.ts +52 -0
- package/dist/src/api/modules/users/routes/change-password.route.d.ts.map +1 -0
- package/dist/src/api/modules/users/routes/change-password.route.js +58 -0
- package/dist/src/api/modules/users/routes/reset-passowrd.route.d.ts +42 -0
- package/dist/src/api/modules/users/routes/reset-passowrd.route.d.ts.map +1 -0
- package/dist/src/api/modules/users/routes/reset-passowrd.route.js +91 -0
- package/dist/src/api/modules/users/routes/sign-up.route.d.ts +6 -0
- package/dist/src/api/modules/users/routes/sign-up.route.d.ts.map +1 -1
- package/dist/src/api/modules/users/routes/sign-up.route.js +6 -0
- package/dist/src/api/modules/users/routes/test.route.d.ts.map +1 -1
- package/dist/src/api/modules/users/routes/test.route.js +0 -6
- package/dist/src/api/modules/users/sso/routes/callback.route.d.ts +4 -1
- package/dist/src/api/modules/users/sso/routes/callback.route.d.ts.map +1 -1
- package/dist/src/api/modules/users/sso/routes/callback.route.js +3 -0
- package/dist/src/api/modules/users/sso/sso.module.d.ts +4 -1
- package/dist/src/api/modules/users/sso/sso.module.d.ts.map +1 -1
- package/dist/src/api/modules/users/users.module.d.ts +93 -1
- package/dist/src/api/modules/users/users.module.d.ts.map +1 -1
- package/dist/src/api/modules/users/users.module.js +5 -1
- package/dist/src/app/login/reset-password/page.d.ts +9 -0
- package/dist/src/app/login/reset-password/page.d.ts.map +1 -0
- package/dist/src/app/login/reset-password/page.js +18 -0
- package/dist/src/components/form/auto-form.d.ts +2 -1
- package/dist/src/components/form/auto-form.d.ts.map +1 -1
- package/dist/src/components/form/auto-form.js +3 -2
- package/dist/src/components/form/common/label.d.ts +3 -1
- package/dist/src/components/form/common/label.d.ts.map +1 -1
- package/dist/src/components/form/common/label.js +14 -4
- package/dist/src/components/form/fields/checkbox.d.ts +1 -1
- package/dist/src/components/form/fields/checkbox.d.ts.map +1 -1
- package/dist/src/components/form/fields/checkbox.js +2 -1
- package/dist/src/components/form/fields/combobox-async.d.ts +1 -1
- package/dist/src/components/form/fields/combobox-async.d.ts.map +1 -1
- package/dist/src/components/form/fields/combobox-async.js +2 -1
- package/dist/src/components/form/fields/combobox.d.ts +1 -1
- package/dist/src/components/form/fields/combobox.d.ts.map +1 -1
- package/dist/src/components/form/fields/combobox.js +2 -1
- package/dist/src/components/form/fields/input.d.ts +1 -1
- package/dist/src/components/form/fields/input.d.ts.map +1 -1
- package/dist/src/components/form/fields/input.js +2 -1
- package/dist/src/components/form/fields/radio-group.d.ts +1 -1
- package/dist/src/components/form/fields/radio-group.d.ts.map +1 -1
- package/dist/src/components/form/fields/radio-group.js +2 -1
- package/dist/src/components/form/fields/select.d.ts +1 -1
- package/dist/src/components/form/fields/select.d.ts.map +1 -1
- package/dist/src/components/form/fields/select.js +2 -1
- package/dist/src/components/form/fields/switch.d.ts +1 -1
- package/dist/src/components/form/fields/switch.d.ts.map +1 -1
- package/dist/src/components/form/fields/switch.js +2 -1
- package/dist/src/components/form/fields/textarea.d.ts +1 -1
- package/dist/src/components/form/fields/textarea.d.ts.map +1 -1
- package/dist/src/components/form/fields/textarea.js +2 -1
- package/dist/src/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/src/components/ui/alert-dialog.js +1 -2
- package/dist/src/components/ui/alert.d.ts +1 -1
- package/dist/src/components/ui/badge.d.ts +1 -1
- package/dist/src/components/ui/button.d.ts +1 -1
- package/dist/src/components/ui/button.js +1 -1
- package/dist/src/components/ui/card.d.ts +1 -1
- package/dist/src/components/ui/card.d.ts.map +1 -1
- package/dist/src/components/ui/card.js +1 -2
- package/dist/src/components/ui/form.js +1 -1
- package/dist/src/components/ui/popover.d.ts +1 -1
- package/dist/src/components/ui/popover.d.ts.map +1 -1
- package/dist/src/components/ui/popover.js +2 -1
- package/dist/src/components/ui/tooltip.d.ts +1 -1
- package/dist/src/components/ui/tooltip.d.ts.map +1 -1
- package/dist/src/components/ui/tooltip.js +6 -7
- package/dist/src/database/users.d.ts +21 -2
- package/dist/src/database/users.d.ts.map +1 -1
- package/dist/src/database/users.js +5 -2
- package/dist/src/emails/default-template.d.ts +34 -22
- package/dist/src/emails/default-template.d.ts.map +1 -1
- package/dist/src/emails/default-template.js +57 -63
- package/dist/src/emails/reset-password.d.ts +56 -0
- package/dist/src/emails/reset-password.d.ts.map +1 -0
- package/dist/src/emails/reset-password.js +132 -0
- package/dist/src/emails/ui/button.d.ts +9 -0
- package/dist/src/emails/ui/button.d.ts.map +1 -0
- package/dist/src/emails/ui/button.js +36 -0
- package/dist/src/emails/ui/card.d.ts +8 -0
- package/dist/src/emails/ui/card.d.ts.map +1 -0
- package/dist/src/emails/ui/card.js +39 -0
- package/dist/src/hooks/use-captcha.d.ts.map +1 -1
- package/dist/src/hooks/use-captcha.js +47 -15
- package/dist/src/lib/fetcher/core.d.ts.map +1 -1
- package/dist/src/lib/fetcher/core.js +6 -1
- package/dist/src/views/admin/sign-in/sign-in-admin-view.js +2 -1
- package/dist/src/views/auth/password-reset/change-password-form/form.d.ts +5 -0
- package/dist/src/views/auth/password-reset/change-password-form/form.d.ts.map +1 -0
- package/dist/src/views/auth/password-reset/change-password-form/form.js +48 -0
- package/dist/src/views/auth/password-reset/change-password-form/mutation-api.d.ts +6 -0
- package/dist/src/views/auth/password-reset/change-password-form/mutation-api.d.ts.map +1 -0
- package/dist/src/views/auth/password-reset/change-password-form/mutation-api.js +22 -0
- package/dist/src/views/auth/password-reset/change-password-form/use-form.d.ts +11 -0
- package/dist/src/views/auth/password-reset/change-password-form/use-form.d.ts.map +1 -0
- package/dist/src/views/auth/password-reset/change-password-form/use-form.js +36 -0
- package/dist/src/views/auth/password-reset/form/form.d.ts +6 -0
- package/dist/src/views/auth/password-reset/form/form.d.ts.map +1 -0
- package/dist/src/views/auth/password-reset/form/form.js +104 -0
- package/dist/src/views/auth/password-reset/form/mutation-api.d.ts +7 -0
- package/dist/src/views/auth/password-reset/form/mutation-api.d.ts.map +1 -0
- package/dist/src/views/auth/password-reset/form/mutation-api.js +21 -0
- package/dist/src/views/auth/password-reset/form/use-form.d.ts +12 -0
- package/dist/src/views/auth/password-reset/form/use-form.d.ts.map +1 -0
- package/dist/src/views/auth/password-reset/form/use-form.js +33 -0
- package/dist/src/views/auth/password-reset/password-reset-view.d.ts +7 -0
- package/dist/src/views/auth/password-reset/password-reset-view.d.ts.map +1 -0
- package/dist/src/views/auth/password-reset/password-reset-view.js +37 -0
- package/dist/src/views/auth/sign-in/form/form.d.ts +2 -1
- package/dist/src/views/auth/sign-in/form/form.d.ts.map +1 -1
- package/dist/src/views/auth/sign-in/form/form.js +7 -2
- package/dist/src/views/auth/sign-in/sign-in-view.d.ts.map +1 -1
- package/dist/src/views/auth/sign-in/sign-in-view.js +10 -4
- package/dist/src/views/auth/{components → sign-up/components}/password-input.d.ts +2 -2
- package/dist/src/views/auth/sign-up/components/password-input.d.ts.map +1 -0
- package/dist/src/views/auth/{components → sign-up/components}/password-input.js +4 -4
- package/dist/src/views/auth/sign-up/form/form.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/form/form.js +2 -15
- package/dist/src/views/auth/sign-up/form/mutation-api.d.ts +1 -1
- package/dist/src/views/auth/sign-up/form/mutation-api.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/form/use-form.d.ts +1 -6
- package/dist/src/views/auth/sign-up/form/use-form.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/form/use-form.js +12 -9
- package/dist/src/views/auth/sign-up/sign-up-view.js +1 -1
- package/dist/src/views/auth/sso/callback/callback-sso-view.d.ts.map +1 -1
- package/dist/src/views/auth/sso/callback/callback-sso-view.js +19 -5
- package/dist/src/views/auth/sso/callback/client/client.d.ts +3 -1
- package/dist/src/views/auth/sso/callback/client/client.d.ts.map +1 -1
- package/dist/src/views/auth/sso/callback/client/client.js +32 -3
- package/dist/src/views/auth/sso/callback/client/mutation-api.d.ts.map +1 -1
- package/dist/src/views/auth/sso/callback/client/mutation-api.js +5 -0
- package/dist/src/views/error/error-view.d.ts +5 -3
- package/dist/src/views/error/error-view.d.ts.map +1 -1
- package/dist/src/views/error/error-view.js +24 -22
- package/dist/src/views/layouts/theme/header/header.js +1 -1
- package/dist/src/vitnode.config.d.ts +3 -0
- package/dist/src/vitnode.config.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +45 -44
- package/src/app/login/reset-password/page.tsx +27 -0
- package/src/locales/en.json +42 -2
- package/dist/src/views/auth/components/password-input.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAE/D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK7C,eAAO,MAAM,gBAAgB,GAAI,
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAE/D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK7C,eAAO,MAAM,gBAAgB,GAAI,iFAO9B,0BAA0B,GAC3B,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,EAAE,SAAS,CAAC,4CA4BvD,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { Checkbox } from "../../ui/checkbox.js";
|
|
|
3
3
|
import { FormControl, FormItem, FormMessage } from "../../ui/form.js";
|
|
4
4
|
import { AutoFormDesc } from "../common/desc.js";
|
|
5
5
|
import { AutoFormLabel } from "../common/label.js";
|
|
6
|
-
export const AutoFormCheckbox = ({ label, description, otherProps: { isOptional }, field, ...props })=>{
|
|
6
|
+
export const AutoFormCheckbox = ({ label, labelRight, description, otherProps: { isOptional }, field, ...props })=>{
|
|
7
7
|
return /*#__PURE__*/ _jsxs(FormItem, {
|
|
8
8
|
className: "flex flex-row items-start space-x-3 space-y-0 rounded-md border p-4",
|
|
9
9
|
children: [
|
|
@@ -23,6 +23,7 @@ export const AutoFormCheckbox = ({ label, description, otherProps: { isOptional
|
|
|
23
23
|
children: [
|
|
24
24
|
label && /*#__PURE__*/ _jsx(AutoFormLabel, {
|
|
25
25
|
isOptional: isOptional,
|
|
26
|
+
labelRight: labelRight,
|
|
26
27
|
children: label
|
|
27
28
|
}),
|
|
28
29
|
description && /*#__PURE__*/ _jsx(AutoFormDesc, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Button } from '../../../components/ui/button';
|
|
3
3
|
import type { ItemAutoFormComponentProps } from '../auto-form';
|
|
4
|
-
export declare const AutoFormComboboxAsync: ({ label, field, description, placeholder, className, id, otherProps: { isOptional }, searchPlaceholder, fetchData, ...props }: ItemAutoFormComponentProps & Omit<React.ComponentProps<typeof Button>, "role" | "variant"> & {
|
|
4
|
+
export declare const AutoFormComboboxAsync: ({ label, field, description, placeholder, className, labelRight, id, otherProps: { isOptional }, searchPlaceholder, fetchData, ...props }: ItemAutoFormComponentProps & Omit<React.ComponentProps<typeof Button>, "role" | "variant"> & {
|
|
5
5
|
fetchData: (params: {
|
|
6
6
|
search: string;
|
|
7
7
|
}) => Promise<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox-async.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/combobox-async.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAiBhD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAM/D,eAAO,MAAM,qBAAqB,GAAI
|
|
1
|
+
{"version":3,"file":"combobox-async.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/combobox-async.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAiBhD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAM/D,eAAO,MAAM,qBAAqB,GAAI,2IAYnC,0BAA0B,GAC3B,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG;IAC9D,SAAS,EAAE,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,KAClC,OAAO,CACL;QACE,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CACJ,GACD;QACE,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;IACR,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,4CAkGF,CAAC"}
|
|
@@ -12,7 +12,7 @@ import { cn } from "../../../lib/utils.js";
|
|
|
12
12
|
import { Skeleton } from "../../ui/skeleton.js";
|
|
13
13
|
import { AutoFormDesc } from "../common/desc.js";
|
|
14
14
|
import { AutoFormLabel } from "../common/label.js";
|
|
15
|
-
export const AutoFormComboboxAsync = ({ label, field, description, placeholder, className, id, otherProps: { isOptional }, searchPlaceholder, fetchData, ...props })=>{
|
|
15
|
+
export const AutoFormComboboxAsync = ({ label, field, description, placeholder, className, labelRight, id, otherProps: { isOptional }, searchPlaceholder, fetchData, ...props })=>{
|
|
16
16
|
const t = useTranslations('core.global');
|
|
17
17
|
const [search, setSearch] = React.useState('');
|
|
18
18
|
const { data, isLoading } = useQuery({
|
|
@@ -36,6 +36,7 @@ export const AutoFormComboboxAsync = ({ label, field, description, placeholder,
|
|
|
36
36
|
children: [
|
|
37
37
|
label && /*#__PURE__*/ _jsx(AutoFormLabel, {
|
|
38
38
|
isOptional: isOptional,
|
|
39
|
+
labelRight: labelRight,
|
|
39
40
|
children: label
|
|
40
41
|
}),
|
|
41
42
|
/*#__PURE__*/ _jsxs(Popover, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Button } from '../../../components/ui/button';
|
|
3
3
|
import type { ItemAutoFormComponentProps } from '../auto-form';
|
|
4
|
-
export declare const AutoFormCombobox: ({ label, field, description, placeholder, className, otherProps: { enum: enumValues, isOptional }, labels, searchPlaceholder, ...props }: ItemAutoFormComponentProps & Omit<React.ComponentProps<typeof Button>, "role" | "variant"> & {
|
|
4
|
+
export declare const AutoFormCombobox: ({ label, field, description, placeholder, className, otherProps: { enum: enumValues, isOptional }, labels, labelRight, searchPlaceholder, ...props }: ItemAutoFormComponentProps & Omit<React.ComponentProps<typeof Button>, "role" | "variant"> & {
|
|
5
5
|
labels?: {
|
|
6
6
|
label: string;
|
|
7
7
|
value: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/combobox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAiBhD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAK/D,eAAO,MAAM,gBAAgB,GAAI,
|
|
1
|
+
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/combobox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAiBhD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAK/D,eAAO,MAAM,gBAAgB,GAAI,sJAW9B,0BAA0B,GAC3B,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG;IAC9D,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,4CA6EF,CAAC"}
|
|
@@ -9,7 +9,7 @@ import { Popover, PopoverContent, PopoverTrigger } from "../../ui/popover.js";
|
|
|
9
9
|
import { cn } from "../../../lib/utils.js";
|
|
10
10
|
import { AutoFormDesc } from "../common/desc.js";
|
|
11
11
|
import { AutoFormLabel } from "../common/label.js";
|
|
12
|
-
export const AutoFormCombobox = ({ label, field, description, placeholder, className, otherProps: { enum: enumValues = [], isOptional }, labels = [], searchPlaceholder, ...props })=>{
|
|
12
|
+
export const AutoFormCombobox = ({ label, field, description, placeholder, className, otherProps: { enum: enumValues = [], isOptional }, labels = [], labelRight, searchPlaceholder, ...props })=>{
|
|
13
13
|
const t = useTranslations('core.global');
|
|
14
14
|
const values = enumValues.map((value)=>{
|
|
15
15
|
const label = labels.find((l)=>l.value === value)?.label;
|
|
@@ -23,6 +23,7 @@ export const AutoFormCombobox = ({ label, field, description, placeholder, class
|
|
|
23
23
|
children: [
|
|
24
24
|
label && /*#__PURE__*/ _jsx(AutoFormLabel, {
|
|
25
25
|
isOptional: isOptional,
|
|
26
|
+
labelRight: labelRight,
|
|
26
27
|
children: label
|
|
27
28
|
}),
|
|
28
29
|
/*#__PURE__*/ _jsxs(Popover, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ItemAutoFormComponentProps } from '../auto-form';
|
|
2
2
|
import { Input } from '../../ui/input';
|
|
3
|
-
export declare const AutoFormInput: ({ label, description, otherProps: { isOptional, maxLength, minLength, pattern, type }, field, ...props }: ItemAutoFormComponentProps & Omit<React.ComponentProps<typeof Input>, "value">) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const AutoFormInput: ({ label, labelRight, description, otherProps: { isOptional, maxLength, minLength, pattern, type }, field, ...props }: ItemAutoFormComponentProps & Omit<React.ComponentProps<typeof Input>, "value">) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAG/D,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAIvC,eAAO,MAAM,aAAa,GAAI,
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAG/D,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAIvC,eAAO,MAAM,aAAa,GAAI,sHAO3B,0BAA0B,GAC3B,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,EAAE,OAAO,CAAC,4CAgClD,CAAC"}
|
|
@@ -3,11 +3,12 @@ import { FormControl, FormItem, FormMessage } from "../../ui/form.js";
|
|
|
3
3
|
import { Input } from "../../ui/input.js";
|
|
4
4
|
import { AutoFormDesc } from "../common/desc.js";
|
|
5
5
|
import { AutoFormLabel } from "../common/label.js";
|
|
6
|
-
export const AutoFormInput = ({ label, description, otherProps: { isOptional, maxLength, minLength, pattern, type }, field, ...props })=>{
|
|
6
|
+
export const AutoFormInput = ({ label, labelRight, description, otherProps: { isOptional, maxLength, minLength, pattern, type }, field, ...props })=>{
|
|
7
7
|
return /*#__PURE__*/ _jsxs(FormItem, {
|
|
8
8
|
children: [
|
|
9
9
|
label && /*#__PURE__*/ _jsx(AutoFormLabel, {
|
|
10
10
|
isOptional: isOptional,
|
|
11
|
+
labelRight: labelRight,
|
|
11
12
|
children: label
|
|
12
13
|
}),
|
|
13
14
|
/*#__PURE__*/ _jsx(FormControl, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RadioGroup } from '../../../components/ui/radio-group';
|
|
3
3
|
import type { ItemAutoFormComponentProps } from '../auto-form';
|
|
4
|
-
export declare const AutoFormRadioGroup: ({ label, field, description, otherProps: { enum: enumValues, isOptional }, labels, ...props }: ItemAutoFormComponentProps & Omit<React.ComponentProps<typeof RadioGroup>, "value"> & {
|
|
4
|
+
export declare const AutoFormRadioGroup: ({ label, labelRight, field, description, otherProps: { enum: enumValues, isOptional }, labels, ...props }: ItemAutoFormComponentProps & Omit<React.ComponentProps<typeof RadioGroup>, "value"> & {
|
|
5
5
|
labels?: {
|
|
6
6
|
label: string;
|
|
7
7
|
value: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/radio-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAE,UAAU,EAAkB,MAAM,6BAA6B,CAAC;AAEzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAK/D,eAAO,MAAM,kBAAkB,GAAI
|
|
1
|
+
{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/radio-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAE,UAAU,EAAkB,MAAM,6BAA6B,CAAC;AAEzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAK/D,eAAO,MAAM,kBAAkB,GAAI,2GAQhC,0BAA0B,GAC3B,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,EAAE,OAAO,CAAC,GAAG;IACvD,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC7C,4CA2CF,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { FormControl, FormItem, FormLabel, FormMessage } from "../../ui/form.js"
|
|
|
4
4
|
import { RadioGroup, RadioGroupItem } from "../../ui/radio-group.js";
|
|
5
5
|
import { AutoFormDesc } from "../common/desc.js";
|
|
6
6
|
import { AutoFormLabel } from "../common/label.js";
|
|
7
|
-
export const AutoFormRadioGroup = ({ label, field, description, otherProps: { enum: enumValues = [], isOptional }, labels = [], ...props })=>{
|
|
7
|
+
export const AutoFormRadioGroup = ({ label, labelRight, field, description, otherProps: { enum: enumValues = [], isOptional }, labels = [], ...props })=>{
|
|
8
8
|
const values = enumValues.map((value)=>{
|
|
9
9
|
const label = labels.find((l)=>l.value === value)?.label;
|
|
10
10
|
return {
|
|
@@ -17,6 +17,7 @@ export const AutoFormRadioGroup = ({ label, field, description, otherProps: { en
|
|
|
17
17
|
children: [
|
|
18
18
|
label && /*#__PURE__*/ _jsx(AutoFormLabel, {
|
|
19
19
|
isOptional: isOptional,
|
|
20
|
+
labelRight: labelRight,
|
|
20
21
|
children: label
|
|
21
22
|
}),
|
|
22
23
|
/*#__PURE__*/ _jsx(FormControl, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Select } from '../../../components/ui/select';
|
|
3
3
|
import type { ItemAutoFormComponentProps } from '../auto-form';
|
|
4
|
-
export declare const AutoFormSelect: ({ label, field, description, otherProps: { enum: enumValues, isOptional }, placeholder, labels, ...props }: ItemAutoFormComponentProps & Omit<React.ComponentProps<typeof Select>, "value"> & {
|
|
4
|
+
export declare const AutoFormSelect: ({ label, field, description, otherProps: { enum: enumValues, isOptional }, placeholder, labelRight, labels, ...props }: ItemAutoFormComponentProps & Omit<React.ComponentProps<typeof Select>, "value"> & {
|
|
5
5
|
labels?: {
|
|
6
6
|
label: string;
|
|
7
7
|
value: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/select.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EACL,MAAM,EAKP,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAK/D,eAAO,MAAM,cAAc,GAAI,
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/select.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EACL,MAAM,EAKP,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAK/D,eAAO,MAAM,cAAc,GAAI,wHAS5B,0BAA0B,GAC3B,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,OAAO,CAAC,GAAG;IACnD,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,4CAwDF,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { FormControl, FormItem, FormMessage } from "../../ui/form.js";
|
|
|
5
5
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../../ui/select.js";
|
|
6
6
|
import { AutoFormDesc } from "../common/desc.js";
|
|
7
7
|
import { AutoFormLabel } from "../common/label.js";
|
|
8
|
-
export const AutoFormSelect = ({ label, field, description, otherProps: { enum: enumValues = [], isOptional }, placeholder, labels = [], ...props })=>{
|
|
8
|
+
export const AutoFormSelect = ({ label, field, description, otherProps: { enum: enumValues = [], isOptional }, placeholder, labelRight, labels = [], ...props })=>{
|
|
9
9
|
const t = useTranslations('core.global');
|
|
10
10
|
const values = enumValues.map((value)=>{
|
|
11
11
|
const label = labels.find((l)=>l.value === value)?.label;
|
|
@@ -20,6 +20,7 @@ export const AutoFormSelect = ({ label, field, description, otherProps: { enum:
|
|
|
20
20
|
children: [
|
|
21
21
|
label && /*#__PURE__*/ _jsx(AutoFormLabel, {
|
|
22
22
|
isOptional: isOptional,
|
|
23
|
+
labelRight: labelRight,
|
|
23
24
|
children: label
|
|
24
25
|
}),
|
|
25
26
|
/*#__PURE__*/ _jsx(FormControl, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Switch } from '../../../components/ui/switch';
|
|
2
2
|
import type { ItemAutoFormComponentProps } from '../auto-form';
|
|
3
|
-
export declare const AutoFormSwitch: ({ label, field, otherProps: { isOptional }, description, ...props }: ItemAutoFormComponentProps & Omit<React.ComponentProps<typeof Switch>, "checked">) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const AutoFormSwitch: ({ label, field, labelRight, otherProps: { isOptional }, description, ...props }: ItemAutoFormComponentProps & Omit<React.ComponentProps<typeof Switch>, "checked">) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/switch.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAK/D,eAAO,MAAM,cAAc,GAAI,
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/switch.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAK/D,eAAO,MAAM,cAAc,GAAI,iFAO5B,0BAA0B,GAC3B,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,SAAS,CAAC,4CA+BrD,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { FormControl, FormItem } from "../../ui/form.js";
|
|
|
3
3
|
import { Switch } from "../../ui/switch.js";
|
|
4
4
|
import { AutoFormDesc } from "../common/desc.js";
|
|
5
5
|
import { AutoFormLabel } from "../common/label.js";
|
|
6
|
-
export const AutoFormSwitch = ({ label, field, otherProps: { isOptional }, description, ...props })=>{
|
|
6
|
+
export const AutoFormSwitch = ({ label, field, labelRight, otherProps: { isOptional }, description, ...props })=>{
|
|
7
7
|
return /*#__PURE__*/ _jsxs(FormItem, {
|
|
8
8
|
className: "flex flex-row items-center justify-between rounded-lg border p-4",
|
|
9
9
|
children: [
|
|
@@ -13,6 +13,7 @@ export const AutoFormSwitch = ({ label, field, otherProps: { isOptional }, descr
|
|
|
13
13
|
label && /*#__PURE__*/ _jsx(AutoFormLabel, {
|
|
14
14
|
className: "text-base",
|
|
15
15
|
isOptional: isOptional,
|
|
16
|
+
labelRight: labelRight,
|
|
16
17
|
children: label
|
|
17
18
|
}),
|
|
18
19
|
description && /*#__PURE__*/ _jsx(AutoFormDesc, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Textarea } from '../../../components/ui/textarea';
|
|
3
3
|
import type { ItemAutoFormComponentProps } from '../auto-form';
|
|
4
|
-
export declare const AutoFormTextarea: ({ label, description, otherProps: { isOptional, maxLength, minLength }, field, ...props }: ItemAutoFormComponentProps & Omit<React.ComponentProps<typeof Textarea>, "value"> & {
|
|
4
|
+
export declare const AutoFormTextarea: ({ label, description, labelRight, otherProps: { isOptional, maxLength, minLength }, field, ...props }: ItemAutoFormComponentProps & Omit<React.ComponentProps<typeof Textarea>, "value"> & {
|
|
5
5
|
description?: React.ReactNode;
|
|
6
6
|
label?: React.ReactNode;
|
|
7
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAK/D,eAAO,MAAM,gBAAgB,GAAI,
|
|
1
|
+
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAK/D,eAAO,MAAM,gBAAgB,GAAI,uGAO9B,0BAA0B,GAC3B,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,EAAE,OAAO,CAAC,GAAG;IACrD,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACzB,4CA8BF,CAAC"}
|
|
@@ -4,11 +4,12 @@ import { FormControl, FormItem, FormMessage } from "../../ui/form.js";
|
|
|
4
4
|
import { Textarea } from "../../ui/textarea.js";
|
|
5
5
|
import { AutoFormDesc } from "../common/desc.js";
|
|
6
6
|
import { AutoFormLabel } from "../common/label.js";
|
|
7
|
-
export const AutoFormTextarea = ({ label, description, otherProps: { isOptional, maxLength, minLength }, field, ...props })=>{
|
|
7
|
+
export const AutoFormTextarea = ({ label, description, labelRight, otherProps: { isOptional, maxLength, minLength }, field, ...props })=>{
|
|
8
8
|
return /*#__PURE__*/ _jsxs(FormItem, {
|
|
9
9
|
children: [
|
|
10
10
|
label && /*#__PURE__*/ _jsx(AutoFormLabel, {
|
|
11
11
|
isOptional: isOptional,
|
|
12
|
+
labelRight: labelRight,
|
|
12
13
|
children: label
|
|
13
14
|
}),
|
|
14
15
|
/*#__PURE__*/ _jsx(FormControl, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAC/D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B,eAAO,MAAM,cAAc;UAPnB,OAAO;cACH,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;CAM6B,CAAC;AAElE,iBAAS,WAAW,CAAC,EACnB,YAAY,EACZ,IAAI,EAAE,QAAQ,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAC/D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B,eAAO,MAAM,cAAc;UAPnB,OAAO;cACH,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;CAM6B,CAAC;AAElE,iBAAS,WAAW,CAAC,EACnB,YAAY,EACZ,IAAI,EAAE,QAAQ,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,2CAoBxD;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,2CAI3D;AAED,iBAAS,iBAAiB,CAAC,EACzB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,2CAI1D;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,2CAW3D;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,2CAc3D;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQ7B;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAW7B;AAED,iBAAS,yBAAyB,CAAC,EACjC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,2CAc/C;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,KAAK,CAAC,2CAQzD;AAED,iBAAS,sBAAsB,CAAC,EAC9B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,WAAW,CAAC,2CAQ/D;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,2CAO1D;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,2CAO1D;AAED,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,yBAAyB,EACzB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,GACnB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const alertVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
4
|
+
variant?: "destructive" | "default" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
declare function Alert({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare function AlertTitle({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
4
|
+
variant?: "secondary" | "destructive" | "default" | "outline" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
|
|
7
7
|
asChild?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "link" | "
|
|
4
|
+
variant?: "link" | "secondary" | "destructive" | "default" | "destructiveGhost" | "outline" | "ghost" | null | undefined;
|
|
5
5
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export type ButtonProps = React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { ClientButton } from "./button-client.js";
|
|
5
|
-
const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer overflow-hidden", {
|
|
5
|
+
const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer overflow-hidden active:scale-[0.98]", {
|
|
6
6
|
variants: {
|
|
7
7
|
variant: {
|
|
8
8
|
default: 'bg-primary text-primary-foreground shadow-xs hover:bg-primary/90',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
declare function Card({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare function CardHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function CardTitle({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC,iBAAS,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWjE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWvE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQtE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQ5E;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWvE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQxE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQvE;AAED,OAAO,EACL,IAAI,EACJ,UAAU,EACV,WAAW,EACX,eAAe,EACf,UAAU,EACV,UAAU,EACV,SAAS,GACV,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
2
|
import { cn } from "../../lib/utils.js";
|
|
4
3
|
function Card({ className, ...props }) {
|
|
5
4
|
return /*#__PURE__*/ _jsx("div", {
|
|
@@ -17,7 +16,7 @@ function CardHeader({ className, ...props }) {
|
|
|
17
16
|
}
|
|
18
17
|
function CardTitle({ className, ...props }) {
|
|
19
18
|
return /*#__PURE__*/ _jsx("div", {
|
|
20
|
-
className: cn('font-semibold leading-none', className),
|
|
19
|
+
className: cn('text-xl font-semibold leading-none', className),
|
|
21
20
|
"data-slot": "card-title",
|
|
22
21
|
...props
|
|
23
22
|
});
|
|
@@ -123,7 +123,7 @@ function FormDescription({ className, ...props }) {
|
|
|
123
123
|
}
|
|
124
124
|
function FormMessage({ className, ...props }) {
|
|
125
125
|
const { error, formMessageId } = useFormField();
|
|
126
|
-
const body = error ?
|
|
126
|
+
const body = error ? error?.message ?? '' : props.children;
|
|
127
127
|
if (!body) {
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
@@ -2,7 +2,7 @@ import { Popover as PopoverPrimitive } from 'radix-ui';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function PopoverContent({ className, align, sideOffset, collisionPadding, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
|
|
8
8
|
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/popover.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,OAAO,CAAC,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAEpD;AAED,iBAAS,cAAc,CAAC,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAEvD;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,KAAgB,EAChB,UAAc,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/popover.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,OAAO,CAAC,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAEpD;AAED,iBAAS,cAAc,CAAC,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAEvD;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,KAAgB,EAChB,UAAc,EACd,gBAAoB,EACpB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAgBvD;AAED,iBAAS,aAAa,CAAC,EACrB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,2CAEtD;AAED,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -15,11 +15,12 @@ function PopoverTrigger({ ...props }) {
|
|
|
15
15
|
...props
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
-
function PopoverContent({ className, align = 'center', sideOffset = 4, ...props }) {
|
|
18
|
+
function PopoverContent({ className, align = 'center', sideOffset = 4, collisionPadding = 8, ...props }) {
|
|
19
19
|
return /*#__PURE__*/ _jsx(PopoverPrimitive.Portal, {
|
|
20
20
|
children: /*#__PURE__*/ _jsx(PopoverPrimitive.Content, {
|
|
21
21
|
align: align,
|
|
22
22
|
className: cn('bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-popover-content-transform-origin) outline-hidden z-50 w-72 rounded-md border p-4 shadow-md', className),
|
|
23
|
+
collisionPadding: collisionPadding,
|
|
23
24
|
"data-slot": "popover-content",
|
|
24
25
|
sideOffset: sideOffset,
|
|
25
26
|
...props
|
|
@@ -3,6 +3,6 @@ import * as React from 'react';
|
|
|
3
3
|
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function TooltipContent({ className, sideOffset, collisionPadding, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
8
8
|
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,eAAe,CAAC,EACvB,
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,eAAe,CAAC,EACvB,aAAmB,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,2CAQxD;AAED,iBAAS,OAAO,CAAC,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAEpD;AAED,iBAAS,cAAc,CAAC,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAEvD;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,UAAc,EACd,gBAAoB,EACpB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAkBvD;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { Tooltip as TooltipPrimitive } from "radix-ui";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { cn } from "../../lib/utils.js";
|
|
6
|
-
function TooltipProvider({ delayDuration =
|
|
6
|
+
function TooltipProvider({ delayDuration = 500, ...props }) {
|
|
7
7
|
return /*#__PURE__*/ _jsx(TooltipPrimitive.Provider, {
|
|
8
8
|
"data-slot": "tooltip-provider",
|
|
9
9
|
delayDuration: delayDuration,
|
|
@@ -11,11 +11,9 @@ function TooltipProvider({ delayDuration = 0, ...props }) {
|
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
function Tooltip({ ...props }) {
|
|
14
|
-
return /*#__PURE__*/ _jsx(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
...props
|
|
18
|
-
})
|
|
14
|
+
return /*#__PURE__*/ _jsx(TooltipPrimitive.Root, {
|
|
15
|
+
"data-slot": "tooltip",
|
|
16
|
+
...props
|
|
19
17
|
});
|
|
20
18
|
}
|
|
21
19
|
function TooltipTrigger({ ...props }) {
|
|
@@ -24,10 +22,11 @@ function TooltipTrigger({ ...props }) {
|
|
|
24
22
|
...props
|
|
25
23
|
});
|
|
26
24
|
}
|
|
27
|
-
function TooltipContent({ className, sideOffset = 0, children, ...props }) {
|
|
25
|
+
function TooltipContent({ className, sideOffset = 0, collisionPadding = 8, children, ...props }) {
|
|
28
26
|
return /*#__PURE__*/ _jsx(TooltipPrimitive.Portal, {
|
|
29
27
|
children: /*#__PURE__*/ _jsxs(TooltipPrimitive.Content, {
|
|
30
28
|
className: cn('bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-tooltip-content-transform-origin) z-50 w-fit text-balance rounded-md px-3 py-1.5 text-xs', className),
|
|
29
|
+
collisionPadding: collisionPadding,
|
|
31
30
|
"data-slot": "tooltip-content",
|
|
32
31
|
sideOffset: sideOffset,
|
|
33
32
|
...props,
|
|
@@ -437,6 +437,25 @@ export declare const core_users_confirm_emails: Omit<import("drizzle-orm/pg-core
|
|
|
437
437
|
identity: undefined;
|
|
438
438
|
generated: undefined;
|
|
439
439
|
}, {}, {}>;
|
|
440
|
+
ipAddress: import("drizzle-orm/pg-core").PgColumn<{
|
|
441
|
+
name: "ipAddress";
|
|
442
|
+
tableName: "core_users_confirm_emails";
|
|
443
|
+
dataType: "string";
|
|
444
|
+
columnType: "PgVarchar";
|
|
445
|
+
data: string;
|
|
446
|
+
driverParam: string;
|
|
447
|
+
notNull: true;
|
|
448
|
+
hasDefault: false;
|
|
449
|
+
isPrimaryKey: false;
|
|
450
|
+
isAutoincrement: false;
|
|
451
|
+
hasRuntimeDefault: false;
|
|
452
|
+
enumValues: [string, ...string[]];
|
|
453
|
+
baseColumn: never;
|
|
454
|
+
identity: undefined;
|
|
455
|
+
generated: undefined;
|
|
456
|
+
}, {}, {
|
|
457
|
+
length: 40;
|
|
458
|
+
}>;
|
|
440
459
|
};
|
|
441
460
|
dialect: "pg";
|
|
442
461
|
}>, "enableRLS">;
|
|
@@ -500,8 +519,8 @@ export declare const core_users_forgot_password: Omit<import("drizzle-orm/pg-cor
|
|
|
500
519
|
}, {}, {
|
|
501
520
|
length: 100;
|
|
502
521
|
}>;
|
|
503
|
-
|
|
504
|
-
name: "
|
|
522
|
+
ipAddress: import("drizzle-orm/pg-core").PgColumn<{
|
|
523
|
+
name: "ipAddress";
|
|
505
524
|
tableName: "core_users_forgot_password";
|
|
506
525
|
dataType: "string";
|
|
507
526
|
columnType: "PgVarchar";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/database/users.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA+BV,CAAC;AAEd,eAAO,MAAM,oBAAoB;;;;;;EAkB9B,CAAC;AAEJ,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAkBd,CAAC;AAEd,eAAO,MAAM,wBAAwB;;EAQpC,CAAC;AAEF,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/database/users.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA+BV,CAAC;AAEd,eAAO,MAAM,oBAAoB;;;;;;EAkB9B,CAAC;AAEJ,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAkBd,CAAC;AAEd,eAAO,MAAM,wBAAwB;;EAQpC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAezB,CAAC;AAEd,eAAO,MAAM,mCAAmC;;EAQ/C,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAgB1B,CAAC;AAEd,eAAO,MAAM,oCAAoC;;EAQhD,CAAC"}
|
|
@@ -104,7 +104,10 @@ export const core_users_confirm_emails = pgTable('core_users_confirm_emails', (t
|
|
|
104
104
|
length: 100
|
|
105
105
|
}).notNull().unique(),
|
|
106
106
|
createdAt: t.timestamp().notNull().defaultNow(),
|
|
107
|
-
expires: t.timestamp().notNull()
|
|
107
|
+
expires: t.timestamp().notNull(),
|
|
108
|
+
ipAddress: t.varchar({
|
|
109
|
+
length: 40
|
|
110
|
+
}).notNull()
|
|
108
111
|
})).enableRLS();
|
|
109
112
|
export const core_users_confirm_emails_relations = relations(core_users_confirm_emails, ({ one })=>({
|
|
110
113
|
user: one(core_users, {
|
|
@@ -124,7 +127,7 @@ export const core_users_forgot_password = pgTable('core_users_forgot_password',
|
|
|
124
127
|
token: t.varchar({
|
|
125
128
|
length: 100
|
|
126
129
|
}).notNull().unique(),
|
|
127
|
-
|
|
130
|
+
ipAddress: t.varchar({
|
|
128
131
|
length: 40
|
|
129
132
|
}).notNull(),
|
|
130
133
|
createdAt: t.timestamp().notNull().defaultNow(),
|
|
@@ -1,33 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
src: Blob | string;
|
|
1
|
+
import { type TailwindConfig } from '@react-email/components';
|
|
2
|
+
import type { EmailModelSendArgs } from '../api/models/email';
|
|
3
|
+
export interface DefaultTemplateEmailProps extends Pick<EmailModelSendArgs, 'user'> {
|
|
4
|
+
i18n: {
|
|
5
|
+
locale: string;
|
|
6
|
+
messages: Record<string, any>;
|
|
8
7
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
templateProps: {
|
|
9
|
+
head?: React.ReactNode;
|
|
10
|
+
logo?: {
|
|
11
|
+
src?: string;
|
|
12
|
+
text?: string;
|
|
13
|
+
};
|
|
14
|
+
metadata: {
|
|
15
|
+
shortTitle?: string;
|
|
16
|
+
title: string;
|
|
17
|
+
url: string;
|
|
18
|
+
};
|
|
19
|
+
previewText?: string;
|
|
20
|
+
tailwindConfig?: TailwindConfig;
|
|
14
21
|
};
|
|
15
|
-
previewText?: string;
|
|
16
22
|
}
|
|
17
|
-
declare function DefaultTemplateEmail({
|
|
23
|
+
declare function DefaultTemplateEmail({ children, i18n: { locale }, templateProps: { logo, metadata, previewText, head, tailwindConfig }, }: DefaultTemplateEmailProps & {
|
|
24
|
+
children: React.ReactNode;
|
|
25
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
18
26
|
declare namespace DefaultTemplateEmail {
|
|
19
27
|
var PreviewProps: {
|
|
20
28
|
children: string;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
29
|
+
templateProps: {
|
|
30
|
+
metadata: {
|
|
31
|
+
title: string;
|
|
32
|
+
shortTitle: string;
|
|
33
|
+
url: string;
|
|
34
|
+
};
|
|
35
|
+
logo: {
|
|
36
|
+
src: string;
|
|
37
|
+
};
|
|
25
38
|
};
|
|
26
|
-
|
|
27
|
-
|
|
39
|
+
i18n: {
|
|
40
|
+
messages: {};
|
|
41
|
+
locale: string;
|
|
28
42
|
};
|
|
29
|
-
messages: {};
|
|
30
|
-
locale: string;
|
|
31
43
|
};
|
|
32
44
|
}
|
|
33
45
|
export default DefaultTemplateEmail;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-template.d.ts","sourceRoot":"","sources":["../../../src/emails/default-template.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"default-template.d.ts","sourceRoot":"","sources":["../../../src/emails/default-template.tsx"],"names":[],"mappings":"AACA,OAAO,EAUL,KAAK,cAAc,EAEpB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAI7D,MAAM,WAAW,yBACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACxC,IAAI,EAAE;QACJ,MAAM,EAAE,MAAM,CAAC;QAEf,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAC/B,CAAC;IACF,aAAa,EAAE;QACb,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACvB,IAAI,CAAC,EAAE;YACL,GAAG,CAAC,EAAE,MAAM,CAAC;YACb,IAAI,CAAC,EAAE,MAAM,CAAC;SACf,CAAC;QACF,QAAQ,EAAE;YACR,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB,KAAK,EAAE,MAAM,CAAC;YACd,GAAG,EAAE,MAAM,CAAC;SACb,CAAC;QACF,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,cAAc,CAAC,EAAE,cAAc,CAAC;KACjC,CAAC;CACH;AAED,iBAAwB,oBAAoB,CAAC,EAC3C,QAAQ,EACR,IAAI,EAAE,EAAE,MAAM,EAAE,EAChB,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,cAAc,EAAE,GACrE,EAAE,yBAAyB,GAAG;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAwG3D;kBA5GuB,oBAAoB;;;;;;;;;;;;;;;;;;;eAApB,oBAAoB"}
|