@payloadcms/ui 3.0.0-beta.133 → 3.0.0-beta.135
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/assets/payload-favicon-dark.png +0 -0
- package/dist/assets/payload-favicon-light.png +0 -0
- package/dist/assets/payload-favicon.svg +4 -4
- package/dist/assets/payload-logo-dark.svg +1 -23
- package/dist/assets/payload-logo-light.svg +1 -23
- package/dist/assets/static-og-image.png +0 -0
- package/dist/elements/RelationshipTable/index.d.ts +1 -0
- package/dist/elements/RelationshipTable/index.d.ts.map +1 -1
- package/dist/elements/RelationshipTable/index.js +3 -2
- package/dist/elements/RelationshipTable/index.js.map +1 -1
- package/dist/elements/RenderServerComponent/index.d.ts +0 -6
- package/dist/elements/RenderServerComponent/index.d.ts.map +1 -1
- package/dist/elements/RenderServerComponent/index.js +1 -24
- package/dist/elements/RenderServerComponent/index.js.map +1 -1
- package/dist/elements/WhereBuilder/Condition/DefaultFilter/index.js +1 -1
- package/dist/elements/WhereBuilder/Condition/DefaultFilter/index.js.map +1 -1
- package/dist/exports/client/index.js +22 -22
- package/dist/exports/client/index.js.map +4 -4
- package/dist/exports/shared/index.d.ts +1 -0
- package/dist/exports/shared/index.d.ts.map +1 -1
- package/dist/exports/shared/index.js +2 -2
- package/dist/exports/shared/index.js.map +4 -4
- package/dist/fields/Checkbox/index.d.ts.map +1 -1
- package/dist/fields/Checkbox/index.js +71 -183
- package/dist/fields/Checkbox/index.js.map +1 -1
- package/dist/fields/Code/index.d.ts.map +1 -1
- package/dist/fields/Code/index.js +68 -170
- package/dist/fields/Code/index.js.map +1 -1
- package/dist/fields/Collapsible/index.d.ts.map +1 -1
- package/dist/fields/Collapsible/index.js +100 -207
- package/dist/fields/Collapsible/index.js.map +1 -1
- package/dist/fields/DateTime/index.d.ts.map +1 -1
- package/dist/fields/DateTime/index.js +72 -162
- package/dist/fields/DateTime/index.js.map +1 -1
- package/dist/fields/Email/index.d.ts.map +1 -1
- package/dist/fields/Email/index.js +72 -161
- package/dist/fields/Email/index.js.map +1 -1
- package/dist/fields/Group/index.d.ts.map +1 -1
- package/dist/fields/Group/index.js +64 -152
- package/dist/fields/Group/index.js.map +1 -1
- package/dist/fields/JSON/index.d.ts.map +1 -1
- package/dist/fields/JSON/index.js +7 -10
- package/dist/fields/JSON/index.js.map +1 -1
- package/dist/fields/Join/index.d.ts.map +1 -1
- package/dist/fields/Join/index.js +5 -2
- package/dist/fields/Join/index.js.map +1 -1
- package/dist/fields/Number/index.d.ts.map +1 -1
- package/dist/fields/Number/index.js +143 -275
- package/dist/fields/Number/index.js.map +1 -1
- package/dist/fields/Password/index.d.ts.map +1 -1
- package/dist/fields/Password/index.js +79 -166
- package/dist/fields/Password/index.js.map +1 -1
- package/dist/fields/Point/index.d.ts.map +1 -1
- package/dist/fields/Point/index.js +110 -235
- package/dist/fields/Point/index.js.map +1 -1
- package/dist/fields/RadioGroup/index.d.ts.map +1 -1
- package/dist/fields/RadioGroup/index.js +93 -209
- package/dist/fields/RadioGroup/index.js.map +1 -1
- package/dist/fields/Relationship/index.d.ts.map +1 -1
- package/dist/fields/Relationship/index.js +7 -10
- package/dist/fields/Relationship/index.js.map +1 -1
- package/dist/fields/Select/Input.d.ts +0 -1
- package/dist/fields/Select/Input.d.ts.map +1 -1
- package/dist/fields/Select/Input.js +45 -50
- package/dist/fields/Select/Input.js.map +1 -1
- package/dist/fields/Select/index.d.ts.map +1 -1
- package/dist/fields/Select/index.js +7 -7
- package/dist/fields/Select/index.js.map +1 -1
- package/dist/fields/Text/Input.d.ts.map +1 -1
- package/dist/fields/Text/Input.js +31 -36
- package/dist/fields/Text/Input.js.map +1 -1
- package/dist/fields/Text/index.d.ts +1 -1
- package/dist/fields/Text/index.d.ts.map +1 -1
- package/dist/fields/Text/index.js +93 -171
- package/dist/fields/Text/index.js.map +1 -1
- package/dist/fields/Text/types.d.ts +0 -1
- package/dist/fields/Text/types.d.ts.map +1 -1
- package/dist/fields/Text/types.js.map +1 -1
- package/dist/fields/Textarea/Input.d.ts.map +1 -1
- package/dist/fields/Textarea/Input.js +26 -31
- package/dist/fields/Textarea/Input.js.map +1 -1
- package/dist/fields/Textarea/index.d.ts.map +1 -1
- package/dist/fields/Textarea/index.js +62 -112
- package/dist/fields/Textarea/index.js.map +1 -1
- package/dist/fields/Textarea/types.d.ts +0 -1
- package/dist/fields/Textarea/types.d.ts.map +1 -1
- package/dist/fields/Textarea/types.js.map +1 -1
- package/dist/fields/Upload/Input.d.ts +0 -1
- package/dist/fields/Upload/Input.d.ts.map +1 -1
- package/dist/fields/Upload/Input.js +41 -46
- package/dist/fields/Upload/Input.js.map +1 -1
- package/dist/fields/Upload/index.d.ts.map +1 -1
- package/dist/fields/Upload/index.js +63 -135
- package/dist/fields/Upload/index.js.map +1 -1
- package/dist/fields/mergeFieldStyles.d.ts +3 -0
- package/dist/fields/mergeFieldStyles.d.ts.map +1 -0
- package/dist/fields/mergeFieldStyles.js +13 -0
- package/dist/fields/mergeFieldStyles.js.map +1 -0
- package/dist/forms/Form/index.d.ts.map +1 -1
- package/dist/forms/Form/index.js +3 -3
- package/dist/forms/Form/index.js.map +1 -1
- package/dist/forms/Submit/index.d.ts.map +1 -1
- package/dist/forms/Submit/index.js +7 -2
- package/dist/forms/Submit/index.js.map +1 -1
- package/dist/forms/fieldSchemasToFormState/addFieldStatePromise.d.ts.map +1 -1
- package/dist/forms/fieldSchemasToFormState/addFieldStatePromise.js +3 -0
- package/dist/forms/fieldSchemasToFormState/addFieldStatePromise.js.map +1 -1
- package/dist/forms/fieldSchemasToFormState/renderField.d.ts.map +1 -1
- package/dist/forms/fieldSchemasToFormState/renderField.js +40 -9
- package/dist/forms/fieldSchemasToFormState/renderField.js.map +1 -1
- package/dist/forms/fieldSchemasToFormState/types.d.ts +4 -1
- package/dist/forms/fieldSchemasToFormState/types.d.ts.map +1 -1
- package/dist/forms/fieldSchemasToFormState/types.js.map +1 -1
- package/dist/graphics/Icon/index.d.ts.map +1 -1
- package/dist/graphics/Icon/index.js +2 -2
- package/dist/graphics/Icon/index.js.map +1 -1
- package/dist/graphics/Logo/index.d.ts.map +1 -1
- package/dist/graphics/Logo/index.js +30 -21
- package/dist/graphics/Logo/index.js.map +1 -1
- package/dist/utilities/buildFormState.d.ts +0 -4
- package/dist/utilities/buildFormState.d.ts.map +1 -1
- package/dist/utilities/buildFormState.js +1 -15
- package/dist/utilities/buildFormState.js.map +1 -1
- package/dist/utilities/buildTableState.d.ts +2 -1
- package/dist/utilities/buildTableState.d.ts.map +1 -1
- package/dist/utilities/buildTableState.js +7 -4
- package/dist/utilities/buildTableState.js.map +1 -1
- package/package.json +15 -5
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { c as _c } from "react/compiler-runtime";
|
|
4
3
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { getTranslation } from '@payloadcms/translations';
|
|
6
|
-
import React, { useCallback } from 'react';
|
|
5
|
+
import React, { useCallback, useMemo } from 'react';
|
|
7
6
|
import { DatePickerField } from '../../elements/DatePicker/index.js';
|
|
8
7
|
import { RenderCustomComponent } from '../../elements/RenderCustomComponent/index.js';
|
|
9
8
|
import { FieldDescription } from '../../fields/FieldDescription/index.js';
|
|
@@ -12,182 +11,93 @@ import { FieldLabel } from '../../fields/FieldLabel/index.js';
|
|
|
12
11
|
import { useField } from '../../forms/useField/index.js';
|
|
13
12
|
import { withCondition } from '../../forms/withCondition/index.js';
|
|
14
13
|
import { useTranslation } from '../../providers/Translation/index.js';
|
|
15
|
-
import {
|
|
14
|
+
import { mergeFieldStyles } from '../mergeFieldStyles.js';
|
|
16
15
|
import './index.scss';
|
|
16
|
+
import { fieldBaseClass } from '../shared/index.js';
|
|
17
17
|
const baseClass = 'date-time-field';
|
|
18
18
|
const DateTimeFieldComponent = props => {
|
|
19
|
-
const $ = _c(38);
|
|
20
19
|
const {
|
|
21
|
-
field
|
|
20
|
+
field,
|
|
21
|
+
field: {
|
|
22
|
+
admin: {
|
|
23
|
+
className,
|
|
24
|
+
date: datePickerProps,
|
|
25
|
+
description,
|
|
26
|
+
placeholder
|
|
27
|
+
} = {},
|
|
28
|
+
label,
|
|
29
|
+
localized,
|
|
30
|
+
required
|
|
31
|
+
},
|
|
22
32
|
path,
|
|
23
33
|
readOnly,
|
|
24
34
|
validate
|
|
25
35
|
} = props;
|
|
26
|
-
const {
|
|
27
|
-
admin: t1,
|
|
28
|
-
label,
|
|
29
|
-
localized,
|
|
30
|
-
required
|
|
31
|
-
} = t0;
|
|
32
|
-
let t2;
|
|
33
|
-
if ($[0] !== t1) {
|
|
34
|
-
t2 = t1 === undefined ? {} : t1;
|
|
35
|
-
$[0] = t1;
|
|
36
|
-
$[1] = t2;
|
|
37
|
-
} else {
|
|
38
|
-
t2 = $[1];
|
|
39
|
-
}
|
|
40
|
-
const {
|
|
41
|
-
className,
|
|
42
|
-
date: datePickerProps,
|
|
43
|
-
description,
|
|
44
|
-
placeholder,
|
|
45
|
-
style,
|
|
46
|
-
width
|
|
47
|
-
} = t2;
|
|
48
36
|
const {
|
|
49
37
|
i18n
|
|
50
38
|
} = useTranslation();
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
$[2] = validate;
|
|
62
|
-
$[3] = required;
|
|
63
|
-
$[4] = t3;
|
|
64
|
-
} else {
|
|
65
|
-
t3 = $[4];
|
|
66
|
-
}
|
|
67
|
-
const memoizedValidate = t3;
|
|
68
|
-
let t4;
|
|
69
|
-
if ($[5] !== path || $[6] !== memoizedValidate) {
|
|
70
|
-
t4 = {
|
|
71
|
-
path,
|
|
72
|
-
validate: memoizedValidate
|
|
73
|
-
};
|
|
74
|
-
$[5] = path;
|
|
75
|
-
$[6] = memoizedValidate;
|
|
76
|
-
$[7] = t4;
|
|
77
|
-
} else {
|
|
78
|
-
t4 = $[7];
|
|
79
|
-
}
|
|
39
|
+
const memoizedValidate = useCallback((value, options) => {
|
|
40
|
+
if (typeof validate === 'function') {
|
|
41
|
+
return validate(value, {
|
|
42
|
+
...options,
|
|
43
|
+
required
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}, [validate, required]);
|
|
80
47
|
const {
|
|
81
|
-
customComponents:
|
|
48
|
+
customComponents: {
|
|
49
|
+
AfterInput,
|
|
50
|
+
BeforeInput,
|
|
51
|
+
Description,
|
|
52
|
+
Error,
|
|
53
|
+
Label
|
|
54
|
+
} = {},
|
|
82
55
|
setValue,
|
|
83
56
|
showError,
|
|
84
57
|
value: value_0
|
|
85
|
-
} = useField(
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
$[12] = t8;
|
|
109
|
-
$[13] = t9;
|
|
110
|
-
} else {
|
|
111
|
-
t9 = $[13];
|
|
112
|
-
}
|
|
113
|
-
const t10 = t9.join(" ");
|
|
114
|
-
let t11;
|
|
115
|
-
if ($[14] !== style || $[15] !== width || $[16] !== label || $[17] !== localized || $[18] !== required || $[19] !== Label || $[20] !== path || $[21] !== showError || $[22] !== Error || $[23] !== readOnly || $[24] !== setValue || $[25] !== placeholder || $[26] !== i18n || $[27] !== datePickerProps || $[28] !== value_0 || $[29] !== BeforeInput || $[30] !== AfterInput || $[31] !== description || $[32] !== Description || $[33] !== t10) {
|
|
116
|
-
let t12;
|
|
117
|
-
if ($[35] !== readOnly || $[36] !== setValue) {
|
|
118
|
-
t12 = incomingDate => {
|
|
119
|
-
if (!readOnly) {
|
|
120
|
-
setValue(incomingDate?.toISOString() || null);
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
$[35] = readOnly;
|
|
124
|
-
$[36] = setValue;
|
|
125
|
-
$[37] = t12;
|
|
126
|
-
} else {
|
|
127
|
-
t12 = $[37];
|
|
128
|
-
}
|
|
129
|
-
t11 = _jsxs("div", {
|
|
130
|
-
className: t10,
|
|
131
|
-
style: {
|
|
132
|
-
...style,
|
|
133
|
-
width
|
|
134
|
-
},
|
|
135
|
-
children: [_jsx(RenderCustomComponent, {
|
|
136
|
-
CustomComponent: Label,
|
|
137
|
-
Fallback: _jsx(FieldLabel, {
|
|
138
|
-
label,
|
|
139
|
-
localized,
|
|
140
|
-
required
|
|
141
|
-
})
|
|
142
|
-
}), _jsxs("div", {
|
|
143
|
-
className: `${fieldBaseClass}__wrap`,
|
|
144
|
-
id: `field-${path.replace(/\./g, "__")}`,
|
|
145
|
-
children: [_jsx(RenderCustomComponent, {
|
|
146
|
-
CustomComponent: Error,
|
|
147
|
-
Fallback: _jsx(FieldError, {
|
|
148
|
-
path,
|
|
149
|
-
showError
|
|
150
|
-
})
|
|
151
|
-
}), BeforeInput, _jsx(DatePickerField, {
|
|
152
|
-
...datePickerProps,
|
|
153
|
-
onChange: t12,
|
|
154
|
-
placeholder: getTranslation(placeholder, i18n),
|
|
155
|
-
readOnly,
|
|
156
|
-
value: value_0
|
|
157
|
-
}), AfterInput]
|
|
158
|
-
}), _jsx(RenderCustomComponent, {
|
|
159
|
-
CustomComponent: Description,
|
|
160
|
-
Fallback: _jsx(FieldDescription, {
|
|
161
|
-
description,
|
|
162
|
-
path
|
|
58
|
+
} = useField({
|
|
59
|
+
path,
|
|
60
|
+
validate: memoizedValidate
|
|
61
|
+
});
|
|
62
|
+
const styles = useMemo(() => mergeFieldStyles(field), [field]);
|
|
63
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
64
|
+
className: [fieldBaseClass, baseClass, className, showError && `${baseClass}--has-error`, readOnly && 'read-only'].filter(Boolean).join(' '),
|
|
65
|
+
style: styles,
|
|
66
|
+
children: [/*#__PURE__*/_jsx(RenderCustomComponent, {
|
|
67
|
+
CustomComponent: Label,
|
|
68
|
+
Fallback: /*#__PURE__*/_jsx(FieldLabel, {
|
|
69
|
+
label: label,
|
|
70
|
+
localized: localized,
|
|
71
|
+
required: required
|
|
72
|
+
})
|
|
73
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
74
|
+
className: `${fieldBaseClass}__wrap`,
|
|
75
|
+
id: `field-${path.replace(/\./g, '__')}`,
|
|
76
|
+
children: [/*#__PURE__*/_jsx(RenderCustomComponent, {
|
|
77
|
+
CustomComponent: Error,
|
|
78
|
+
Fallback: /*#__PURE__*/_jsx(FieldError, {
|
|
79
|
+
path: path,
|
|
80
|
+
showError: showError
|
|
163
81
|
})
|
|
164
|
-
})
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
$[31] = description;
|
|
184
|
-
$[32] = Description;
|
|
185
|
-
$[33] = t10;
|
|
186
|
-
$[34] = t11;
|
|
187
|
-
} else {
|
|
188
|
-
t11 = $[34];
|
|
189
|
-
}
|
|
190
|
-
return t11;
|
|
82
|
+
}), BeforeInput, /*#__PURE__*/_jsx(DatePickerField, {
|
|
83
|
+
...datePickerProps,
|
|
84
|
+
onChange: incomingDate => {
|
|
85
|
+
if (!readOnly) {
|
|
86
|
+
setValue(incomingDate?.toISOString() || null);
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
placeholder: getTranslation(placeholder, i18n),
|
|
90
|
+
readOnly: readOnly,
|
|
91
|
+
value: value_0
|
|
92
|
+
}), AfterInput]
|
|
93
|
+
}), /*#__PURE__*/_jsx(RenderCustomComponent, {
|
|
94
|
+
CustomComponent: Description,
|
|
95
|
+
Fallback: /*#__PURE__*/_jsx(FieldDescription, {
|
|
96
|
+
description: description,
|
|
97
|
+
path: path
|
|
98
|
+
})
|
|
99
|
+
})]
|
|
100
|
+
});
|
|
191
101
|
};
|
|
192
102
|
export const DateTimeField = withCondition(DateTimeFieldComponent);
|
|
193
103
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["
|
|
1
|
+
{"version":3,"file":"index.js","names":["getTranslation","React","useCallback","useMemo","DatePickerField","RenderCustomComponent","FieldDescription","FieldError","FieldLabel","useField","withCondition","useTranslation","mergeFieldStyles","fieldBaseClass","baseClass","DateTimeFieldComponent","props","field","admin","className","date","datePickerProps","description","placeholder","label","localized","required","path","readOnly","validate","i18n","memoizedValidate","value","options","customComponents","AfterInput","BeforeInput","Description","Error","Label","setValue","showError","styles","_jsxs","filter","Boolean","join","style","_jsx","CustomComponent","Fallback","id","replace","onChange","incomingDate","toISOString","DateTimeField"],"sources":["../../../src/fields/DateTime/index.tsx"],"sourcesContent":["'use client'\nimport type { DateFieldClientComponent, DateFieldValidation } from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport React, { useCallback, useMemo } from 'react'\n\nimport { DatePickerField } from '../../elements/DatePicker/index.js'\nimport { RenderCustomComponent } from '../../elements/RenderCustomComponent/index.js'\nimport { FieldDescription } from '../../fields/FieldDescription/index.js'\nimport { FieldError } from '../../fields/FieldError/index.js'\nimport { FieldLabel } from '../../fields/FieldLabel/index.js'\nimport { useField } from '../../forms/useField/index.js'\nimport { withCondition } from '../../forms/withCondition/index.js'\nimport { useTranslation } from '../../providers/Translation/index.js'\nimport { mergeFieldStyles } from '../mergeFieldStyles.js'\nimport './index.scss'\nimport { fieldBaseClass } from '../shared/index.js'\n\nconst baseClass = 'date-time-field'\n\nconst DateTimeFieldComponent: DateFieldClientComponent = (props) => {\n const {\n field,\n field: {\n admin: { className, date: datePickerProps, description, placeholder } = {},\n label,\n localized,\n required,\n },\n path,\n readOnly,\n validate,\n } = props\n\n const { i18n } = useTranslation()\n\n const memoizedValidate: DateFieldValidation = useCallback(\n (value, options) => {\n if (typeof validate === 'function') {\n return validate(value, { ...options, required })\n }\n },\n [validate, required],\n )\n\n const {\n customComponents: { AfterInput, BeforeInput, Description, Error, Label } = {},\n setValue,\n showError,\n value,\n } = useField<Date>({\n path,\n validate: memoizedValidate,\n })\n\n const styles = useMemo(() => mergeFieldStyles(field), [field])\n\n return (\n <div\n className={[\n fieldBaseClass,\n baseClass,\n className,\n showError && `${baseClass}--has-error`,\n readOnly && 'read-only',\n ]\n .filter(Boolean)\n .join(' ')}\n style={styles}\n >\n <RenderCustomComponent\n CustomComponent={Label}\n Fallback={<FieldLabel label={label} localized={localized} required={required} />}\n />\n <div className={`${fieldBaseClass}__wrap`} id={`field-${path.replace(/\\./g, '__')}`}>\n <RenderCustomComponent\n CustomComponent={Error}\n Fallback={<FieldError path={path} showError={showError} />}\n />\n {BeforeInput}\n <DatePickerField\n {...datePickerProps}\n onChange={(incomingDate) => {\n if (!readOnly) {\n setValue(incomingDate?.toISOString() || null)\n }\n }}\n placeholder={getTranslation(placeholder, i18n)}\n readOnly={readOnly}\n value={value}\n />\n {AfterInput}\n </div>\n <RenderCustomComponent\n CustomComponent={Description}\n Fallback={<FieldDescription description={description} path={path} />}\n />\n </div>\n )\n}\n\nexport const DateTimeField = withCondition(DateTimeFieldComponent)\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/Email/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAGV,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAGhB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/Email/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAGV,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAGhB,OAAO,KAA+B,MAAM,OAAO,CAAA;AAUnD,OAAO,cAAc,CAAA;AAuFrB,eAAO,MAAM,UAAU;;;;;+EAAqC,CAAA"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { c as _c } from "react/compiler-runtime";
|
|
4
3
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { getTranslation } from '@payloadcms/translations';
|
|
6
|
-
import React, { useCallback } from 'react';
|
|
5
|
+
import React, { useCallback, useMemo } from 'react';
|
|
7
6
|
import { RenderCustomComponent } from '../../elements/RenderCustomComponent/index.js';
|
|
8
7
|
import { FieldDescription } from '../../fields/FieldDescription/index.js';
|
|
9
8
|
import { FieldError } from '../../fields/FieldError/index.js';
|
|
@@ -11,180 +10,92 @@ import { useField } from '../../forms/useField/index.js';
|
|
|
11
10
|
import { withCondition } from '../../forms/withCondition/index.js';
|
|
12
11
|
import { useTranslation } from '../../providers/Translation/index.js';
|
|
13
12
|
import { FieldLabel } from '../FieldLabel/index.js';
|
|
14
|
-
import {
|
|
13
|
+
import { mergeFieldStyles } from '../mergeFieldStyles.js';
|
|
15
14
|
import './index.scss';
|
|
15
|
+
import { fieldBaseClass } from '../shared/index.js';
|
|
16
16
|
const EmailFieldComponent = props => {
|
|
17
|
-
const $ = _c(37);
|
|
18
17
|
const {
|
|
19
|
-
field
|
|
18
|
+
field,
|
|
19
|
+
field: {
|
|
20
|
+
admin: {
|
|
21
|
+
autoComplete,
|
|
22
|
+
className,
|
|
23
|
+
description,
|
|
24
|
+
placeholder
|
|
25
|
+
} = {},
|
|
26
|
+
label,
|
|
27
|
+
localized,
|
|
28
|
+
required
|
|
29
|
+
} = {},
|
|
20
30
|
path,
|
|
21
31
|
readOnly,
|
|
22
32
|
validate
|
|
23
33
|
} = props;
|
|
24
|
-
let t1;
|
|
25
|
-
if ($[0] !== t0) {
|
|
26
|
-
t1 = t0 === undefined ? {} : t0;
|
|
27
|
-
$[0] = t0;
|
|
28
|
-
$[1] = t1;
|
|
29
|
-
} else {
|
|
30
|
-
t1 = $[1];
|
|
31
|
-
}
|
|
32
|
-
const {
|
|
33
|
-
admin: t2,
|
|
34
|
-
label,
|
|
35
|
-
localized,
|
|
36
|
-
required
|
|
37
|
-
} = t1;
|
|
38
|
-
let t3;
|
|
39
|
-
if ($[2] !== t2) {
|
|
40
|
-
t3 = t2 === undefined ? {} : t2;
|
|
41
|
-
$[2] = t2;
|
|
42
|
-
$[3] = t3;
|
|
43
|
-
} else {
|
|
44
|
-
t3 = $[3];
|
|
45
|
-
}
|
|
46
|
-
const {
|
|
47
|
-
autoComplete,
|
|
48
|
-
className,
|
|
49
|
-
description,
|
|
50
|
-
placeholder,
|
|
51
|
-
style,
|
|
52
|
-
width
|
|
53
|
-
} = t3;
|
|
54
34
|
const {
|
|
55
35
|
i18n
|
|
56
36
|
} = useTranslation();
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
$[4] = validate;
|
|
68
|
-
$[5] = required;
|
|
69
|
-
$[6] = t4;
|
|
70
|
-
} else {
|
|
71
|
-
t4 = $[6];
|
|
72
|
-
}
|
|
73
|
-
const memoizedValidate = t4;
|
|
74
|
-
let t5;
|
|
75
|
-
if ($[7] !== path || $[8] !== memoizedValidate) {
|
|
76
|
-
t5 = {
|
|
77
|
-
path,
|
|
78
|
-
validate: memoizedValidate
|
|
79
|
-
};
|
|
80
|
-
$[7] = path;
|
|
81
|
-
$[8] = memoizedValidate;
|
|
82
|
-
$[9] = t5;
|
|
83
|
-
} else {
|
|
84
|
-
t5 = $[9];
|
|
85
|
-
}
|
|
37
|
+
const memoizedValidate = useCallback((value, options) => {
|
|
38
|
+
if (typeof validate === 'function') {
|
|
39
|
+
return validate(value, {
|
|
40
|
+
...options,
|
|
41
|
+
required
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}, [validate, required]);
|
|
86
45
|
const {
|
|
87
|
-
customComponents:
|
|
46
|
+
customComponents: {
|
|
47
|
+
AfterInput,
|
|
48
|
+
BeforeInput,
|
|
49
|
+
Description,
|
|
50
|
+
Error,
|
|
51
|
+
Label
|
|
52
|
+
} = {},
|
|
88
53
|
setValue,
|
|
89
54
|
showError,
|
|
90
55
|
value: value_0
|
|
91
|
-
} = useField(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
$[14] = t9;
|
|
115
|
-
$[15] = t10;
|
|
116
|
-
} else {
|
|
117
|
-
t10 = $[15];
|
|
118
|
-
}
|
|
119
|
-
const t11 = t10.join(" ");
|
|
120
|
-
let t12;
|
|
121
|
-
if ($[16] !== style || $[17] !== width || $[18] !== label || $[19] !== localized || $[20] !== path || $[21] !== required || $[22] !== Label || $[23] !== showError || $[24] !== Error || $[25] !== placeholder || $[26] !== i18n || $[27] !== value_0 || $[28] !== autoComplete || $[29] !== readOnly || $[30] !== setValue || $[31] !== BeforeInput || $[32] !== AfterInput || $[33] !== description || $[34] !== Description || $[35] !== t11) {
|
|
122
|
-
t12 = _jsxs("div", {
|
|
123
|
-
className: t11,
|
|
124
|
-
style: {
|
|
125
|
-
...style,
|
|
126
|
-
width
|
|
127
|
-
},
|
|
128
|
-
children: [_jsx(RenderCustomComponent, {
|
|
129
|
-
CustomComponent: Label,
|
|
130
|
-
Fallback: _jsx(FieldLabel, {
|
|
131
|
-
label,
|
|
132
|
-
localized,
|
|
133
|
-
path,
|
|
134
|
-
required
|
|
135
|
-
})
|
|
136
|
-
}), _jsxs("div", {
|
|
137
|
-
className: `${fieldBaseClass}__wrap`,
|
|
138
|
-
children: [_jsx(RenderCustomComponent, {
|
|
139
|
-
CustomComponent: Error,
|
|
140
|
-
Fallback: _jsx(FieldError, {
|
|
141
|
-
path,
|
|
142
|
-
showError
|
|
143
|
-
})
|
|
144
|
-
}), BeforeInput, _jsx("input", {
|
|
145
|
-
autoComplete,
|
|
146
|
-
disabled: readOnly,
|
|
147
|
-
id: `field-${path.replace(/\./g, "__")}`,
|
|
148
|
-
name: path,
|
|
149
|
-
onChange: setValue,
|
|
150
|
-
placeholder: getTranslation(placeholder, i18n),
|
|
151
|
-
required,
|
|
152
|
-
type: "email",
|
|
153
|
-
value: value_0 || ""
|
|
154
|
-
}), AfterInput]
|
|
155
|
-
}), _jsx(RenderCustomComponent, {
|
|
156
|
-
CustomComponent: Description,
|
|
157
|
-
Fallback: _jsx(FieldDescription, {
|
|
158
|
-
description,
|
|
159
|
-
path
|
|
56
|
+
} = useField({
|
|
57
|
+
path,
|
|
58
|
+
validate: memoizedValidate
|
|
59
|
+
});
|
|
60
|
+
const styles = useMemo(() => mergeFieldStyles(field), [field]);
|
|
61
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
62
|
+
className: [fieldBaseClass, 'email', className, showError && 'error', readOnly && 'read-only'].filter(Boolean).join(' '),
|
|
63
|
+
style: styles,
|
|
64
|
+
children: [/*#__PURE__*/_jsx(RenderCustomComponent, {
|
|
65
|
+
CustomComponent: Label,
|
|
66
|
+
Fallback: /*#__PURE__*/_jsx(FieldLabel, {
|
|
67
|
+
label: label,
|
|
68
|
+
localized: localized,
|
|
69
|
+
path: path,
|
|
70
|
+
required: required
|
|
71
|
+
})
|
|
72
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
73
|
+
className: `${fieldBaseClass}__wrap`,
|
|
74
|
+
children: [/*#__PURE__*/_jsx(RenderCustomComponent, {
|
|
75
|
+
CustomComponent: Error,
|
|
76
|
+
Fallback: /*#__PURE__*/_jsx(FieldError, {
|
|
77
|
+
path: path,
|
|
78
|
+
showError: showError
|
|
160
79
|
})
|
|
161
|
-
})
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
$[33] = description;
|
|
181
|
-
$[34] = Description;
|
|
182
|
-
$[35] = t11;
|
|
183
|
-
$[36] = t12;
|
|
184
|
-
} else {
|
|
185
|
-
t12 = $[36];
|
|
186
|
-
}
|
|
187
|
-
return t12;
|
|
80
|
+
}), BeforeInput, /*#__PURE__*/_jsx("input", {
|
|
81
|
+
autoComplete: autoComplete,
|
|
82
|
+
disabled: readOnly,
|
|
83
|
+
id: `field-${path.replace(/\./g, '__')}`,
|
|
84
|
+
name: path,
|
|
85
|
+
onChange: setValue,
|
|
86
|
+
placeholder: getTranslation(placeholder, i18n),
|
|
87
|
+
required: required,
|
|
88
|
+
type: "email",
|
|
89
|
+
value: value_0 || ''
|
|
90
|
+
}), AfterInput]
|
|
91
|
+
}), /*#__PURE__*/_jsx(RenderCustomComponent, {
|
|
92
|
+
CustomComponent: Description,
|
|
93
|
+
Fallback: /*#__PURE__*/_jsx(FieldDescription, {
|
|
94
|
+
description: description,
|
|
95
|
+
path: path
|
|
96
|
+
})
|
|
97
|
+
})]
|
|
98
|
+
});
|
|
188
99
|
};
|
|
189
100
|
export const EmailField = withCondition(EmailFieldComponent);
|
|
190
101
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["
|
|
1
|
+
{"version":3,"file":"index.js","names":["getTranslation","React","useCallback","useMemo","RenderCustomComponent","FieldDescription","FieldError","useField","withCondition","useTranslation","FieldLabel","mergeFieldStyles","fieldBaseClass","EmailFieldComponent","props","field","admin","autoComplete","className","description","placeholder","label","localized","required","path","readOnly","validate","i18n","memoizedValidate","value","options","customComponents","AfterInput","BeforeInput","Description","Error","Label","setValue","showError","styles","_jsxs","filter","Boolean","join","style","_jsx","CustomComponent","Fallback","disabled","id","replace","name","onChange","type","EmailField"],"sources":["../../../src/fields/Email/index.tsx"],"sourcesContent":["'use client'\nimport type {\n EmailFieldClientComponent,\n EmailFieldClientProps,\n EmailFieldValidation,\n} from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport React, { useCallback, useMemo } from 'react'\n\nimport { RenderCustomComponent } from '../../elements/RenderCustomComponent/index.js'\nimport { FieldDescription } from '../../fields/FieldDescription/index.js'\nimport { FieldError } from '../../fields/FieldError/index.js'\nimport { useField } from '../../forms/useField/index.js'\nimport { withCondition } from '../../forms/withCondition/index.js'\nimport { useTranslation } from '../../providers/Translation/index.js'\nimport { FieldLabel } from '../FieldLabel/index.js'\nimport { mergeFieldStyles } from '../mergeFieldStyles.js'\nimport './index.scss'\nimport { fieldBaseClass } from '../shared/index.js'\n\nconst EmailFieldComponent: EmailFieldClientComponent = (props) => {\n const {\n field,\n field: {\n admin: {\n autoComplete,\n className,\n description,\n placeholder,\n } = {} as EmailFieldClientProps['field']['admin'],\n label,\n localized,\n required,\n } = {} as EmailFieldClientProps['field'],\n path,\n readOnly,\n validate,\n } = props\n\n const { i18n } = useTranslation()\n\n const memoizedValidate: EmailFieldValidation = useCallback(\n (value, options) => {\n if (typeof validate === 'function') {\n return validate(value, { ...options, required })\n }\n },\n [validate, required],\n )\n\n const {\n customComponents: { AfterInput, BeforeInput, Description, Error, Label } = {},\n setValue,\n showError,\n value,\n } = useField({\n path,\n validate: memoizedValidate,\n })\n\n const styles = useMemo(() => mergeFieldStyles(field), [field])\n\n return (\n <div\n className={[fieldBaseClass, 'email', className, showError && 'error', readOnly && 'read-only']\n .filter(Boolean)\n .join(' ')}\n style={styles}\n >\n <RenderCustomComponent\n CustomComponent={Label}\n Fallback={\n <FieldLabel label={label} localized={localized} path={path} required={required} />\n }\n />\n <div className={`${fieldBaseClass}__wrap`}>\n <RenderCustomComponent\n CustomComponent={Error}\n Fallback={<FieldError path={path} showError={showError} />}\n />\n {BeforeInput}\n {/* disable eslint here because the label is dynamic */}\n {/* eslint-disable-next-line jsx-a11y/control-has-associated-label */}\n <input\n autoComplete={autoComplete}\n disabled={readOnly}\n id={`field-${path.replace(/\\./g, '__')}`}\n name={path}\n onChange={setValue}\n placeholder={getTranslation(placeholder, i18n)}\n required={required}\n type=\"email\"\n value={(value as string) || ''}\n />\n {AfterInput}\n </div>\n <RenderCustomComponent\n CustomComponent={Description}\n Fallback={<FieldDescription description={description} path={path} />}\n />\n </div>\n )\n}\n\nexport const EmailField = withCondition(EmailFieldComponent)\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/Group/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAGxD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/Group/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAGxD,OAAO,KAAkB,MAAM,OAAO,CAAA;AAetC,OAAO,cAAc,CAAA;AAErB,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAIvD,eAAO,MAAM,mBAAmB,EAAE,yBAmFjC,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAA;AAElC,eAAO,MAAM,UAAU;;+EAAqC,CAAA"}
|