@axenstudio/axen-form 0.1.1
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/README.md +665 -0
- package/dist/adapters/yupAdapter.cjs +61 -0
- package/dist/adapters/yupAdapter.d.ts +21 -0
- package/dist/adapters/yupAdapter.d.ts.map +1 -0
- package/dist/adapters/yupAdapter.js +61 -0
- package/dist/adapters/zodAdapter.cjs +59 -0
- package/dist/adapters/zodAdapter.d.ts +22 -0
- package/dist/adapters/zodAdapter.d.ts.map +1 -0
- package/dist/adapters/zodAdapter.js +59 -0
- package/dist/core/dateUtils.cjs +69 -0
- package/dist/core/dateUtils.d.ts +28 -0
- package/dist/core/dateUtils.d.ts.map +1 -0
- package/dist/core/dateUtils.js +69 -0
- package/dist/core/formStore.cjs +184 -0
- package/dist/core/formStore.d.ts +39 -0
- package/dist/core/formStore.d.ts.map +1 -0
- package/dist/core/formStore.js +184 -0
- package/dist/core/numberUtils.cjs +59 -0
- package/dist/core/numberUtils.d.ts +26 -0
- package/dist/core/numberUtils.d.ts.map +1 -0
- package/dist/core/numberUtils.js +59 -0
- package/dist/core/pathUtils.cjs +44 -0
- package/dist/core/pathUtils.d.ts +15 -0
- package/dist/core/pathUtils.d.ts.map +1 -0
- package/dist/core/pathUtils.js +44 -0
- package/dist/core/payloadUtils.cjs +26 -0
- package/dist/core/payloadUtils.d.ts +22 -0
- package/dist/core/payloadUtils.d.ts.map +1 -0
- package/dist/core/payloadUtils.js +26 -0
- package/dist/core/validation.cjs +41 -0
- package/dist/core/validation.d.ts +7 -0
- package/dist/core/validation.d.ts.map +1 -0
- package/dist/core/validation.js +41 -0
- package/dist/fields/AutocompleteField/AutocompleteField.cjs +242 -0
- package/dist/fields/AutocompleteField/AutocompleteField.d.ts +6 -0
- package/dist/fields/AutocompleteField/AutocompleteField.d.ts.map +1 -0
- package/dist/fields/AutocompleteField/AutocompleteField.js +242 -0
- package/dist/fields/AutocompleteField/AutocompleteField.module.css +168 -0
- package/dist/fields/AutocompleteField/AutocompleteField.module.css.cjs +44 -0
- package/dist/fields/AutocompleteField/AutocompleteField.module.css.js +44 -0
- package/dist/fields/AutocompleteMultiField/AutocompleteMultiField.cjs +286 -0
- package/dist/fields/AutocompleteMultiField/AutocompleteMultiField.d.ts +6 -0
- package/dist/fields/AutocompleteMultiField/AutocompleteMultiField.d.ts.map +1 -0
- package/dist/fields/AutocompleteMultiField/AutocompleteMultiField.js +286 -0
- package/dist/fields/AutocompletePredictField/AutocompletePredictField.cjs +289 -0
- package/dist/fields/AutocompletePredictField/AutocompletePredictField.d.ts +10 -0
- package/dist/fields/AutocompletePredictField/AutocompletePredictField.d.ts.map +1 -0
- package/dist/fields/AutocompletePredictField/AutocompletePredictField.js +289 -0
- package/dist/fields/CheckboxField/CheckboxField.cjs +60 -0
- package/dist/fields/CheckboxField/CheckboxField.d.ts +3 -0
- package/dist/fields/CheckboxField/CheckboxField.d.ts.map +1 -0
- package/dist/fields/CheckboxField/CheckboxField.js +60 -0
- package/dist/fields/CheckboxField/CheckboxField.module.css +29 -0
- package/dist/fields/CheckboxField/CheckboxField.module.css.cjs +11 -0
- package/dist/fields/CheckboxField/CheckboxField.module.css.js +11 -0
- package/dist/fields/ColorField/ColorField.cjs +69 -0
- package/dist/fields/ColorField/ColorField.d.ts +3 -0
- package/dist/fields/ColorField/ColorField.d.ts.map +1 -0
- package/dist/fields/ColorField/ColorField.js +69 -0
- package/dist/fields/ColorField/ColorField.module.css +33 -0
- package/dist/fields/ColorField/ColorField.module.css.cjs +14 -0
- package/dist/fields/ColorField/ColorField.module.css.js +14 -0
- package/dist/fields/CurrencyField/CurrencyField.cjs +120 -0
- package/dist/fields/CurrencyField/CurrencyField.d.ts +10 -0
- package/dist/fields/CurrencyField/CurrencyField.d.ts.map +1 -0
- package/dist/fields/CurrencyField/CurrencyField.js +120 -0
- package/dist/fields/DateField/DateField.cjs +70 -0
- package/dist/fields/DateField/DateField.d.ts +7 -0
- package/dist/fields/DateField/DateField.d.ts.map +1 -0
- package/dist/fields/DateField/DateField.js +70 -0
- package/dist/fields/DateTimeField/DateTimeField.cjs +71 -0
- package/dist/fields/DateTimeField/DateTimeField.d.ts +8 -0
- package/dist/fields/DateTimeField/DateTimeField.d.ts.map +1 -0
- package/dist/fields/DateTimeField/DateTimeField.js +71 -0
- package/dist/fields/EmailField/EmailField.cjs +57 -0
- package/dist/fields/EmailField/EmailField.d.ts +3 -0
- package/dist/fields/EmailField/EmailField.d.ts.map +1 -0
- package/dist/fields/EmailField/EmailField.js +57 -0
- package/dist/fields/NumberField/NumberField.cjs +110 -0
- package/dist/fields/NumberField/NumberField.d.ts +10 -0
- package/dist/fields/NumberField/NumberField.d.ts.map +1 -0
- package/dist/fields/NumberField/NumberField.js +110 -0
- package/dist/fields/PasswordField/PasswordField.cjs +77 -0
- package/dist/fields/PasswordField/PasswordField.d.ts +3 -0
- package/dist/fields/PasswordField/PasswordField.d.ts.map +1 -0
- package/dist/fields/PasswordField/PasswordField.js +77 -0
- package/dist/fields/PasswordField/PasswordField.module.css +41 -0
- package/dist/fields/PasswordField/PasswordField.module.css.cjs +14 -0
- package/dist/fields/PasswordField/PasswordField.module.css.js +14 -0
- package/dist/fields/PhoneField/PhoneField.cjs +58 -0
- package/dist/fields/PhoneField/PhoneField.d.ts +3 -0
- package/dist/fields/PhoneField/PhoneField.d.ts.map +1 -0
- package/dist/fields/PhoneField/PhoneField.js +58 -0
- package/dist/fields/RadioField/RadioField.cjs +66 -0
- package/dist/fields/RadioField/RadioField.d.ts +3 -0
- package/dist/fields/RadioField/RadioField.d.ts.map +1 -0
- package/dist/fields/RadioField/RadioField.js +66 -0
- package/dist/fields/RadioField/RadioField.module.css +34 -0
- package/dist/fields/RadioField/RadioField.module.css.cjs +14 -0
- package/dist/fields/RadioField/RadioField.module.css.js +14 -0
- package/dist/fields/SelectField/SelectField.cjs +58 -0
- package/dist/fields/SelectField/SelectField.d.ts +3 -0
- package/dist/fields/SelectField/SelectField.d.ts.map +1 -0
- package/dist/fields/SelectField/SelectField.js +58 -0
- package/dist/fields/SliderField/SliderField.cjs +79 -0
- package/dist/fields/SliderField/SliderField.d.ts +7 -0
- package/dist/fields/SliderField/SliderField.d.ts.map +1 -0
- package/dist/fields/SliderField/SliderField.js +79 -0
- package/dist/fields/SliderField/SliderField.module.css +76 -0
- package/dist/fields/SliderField/SliderField.module.css.cjs +14 -0
- package/dist/fields/SliderField/SliderField.module.css.js +14 -0
- package/dist/fields/SwitchField/SwitchField.cjs +65 -0
- package/dist/fields/SwitchField/SwitchField.d.ts +3 -0
- package/dist/fields/SwitchField/SwitchField.d.ts.map +1 -0
- package/dist/fields/SwitchField/SwitchField.js +65 -0
- package/dist/fields/SwitchField/SwitchField.module.css +79 -0
- package/dist/fields/SwitchField/SwitchField.module.css.cjs +17 -0
- package/dist/fields/SwitchField/SwitchField.module.css.js +17 -0
- package/dist/fields/TextField/TextField.cjs +56 -0
- package/dist/fields/TextField/TextField.d.ts +3 -0
- package/dist/fields/TextField/TextField.d.ts.map +1 -0
- package/dist/fields/TextField/TextField.js +56 -0
- package/dist/fields/TextareaField/TextareaField.cjs +57 -0
- package/dist/fields/TextareaField/TextareaField.d.ts +5 -0
- package/dist/fields/TextareaField/TextareaField.d.ts.map +1 -0
- package/dist/fields/TextareaField/TextareaField.js +57 -0
- package/dist/fields/TimeField/TimeField.cjs +67 -0
- package/dist/fields/TimeField/TimeField.d.ts +6 -0
- package/dist/fields/TimeField/TimeField.d.ts.map +1 -0
- package/dist/fields/TimeField/TimeField.js +67 -0
- package/dist/fields/defaultComponentMap.cjs +43 -0
- package/dist/fields/defaultComponentMap.d.ts +7 -0
- package/dist/fields/defaultComponentMap.d.ts.map +1 -0
- package/dist/fields/defaultComponentMap.js +43 -0
- package/dist/fields/fieldBase.module.css +201 -0
- package/dist/fields/fieldBase.module.css.cjs +50 -0
- package/dist/fields/fieldBase.module.css.js +50 -0
- package/dist/fields/fieldUtils.cjs +26 -0
- package/dist/fields/fieldUtils.d.ts +24 -0
- package/dist/fields/fieldUtils.d.ts.map +1 -0
- package/dist/fields/fieldUtils.js +26 -0
- package/dist/index.cjs +99 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +99 -0
- package/dist/layout/Box/Box.cjs +70 -0
- package/dist/layout/Box/Box.d.ts +6 -0
- package/dist/layout/Box/Box.d.ts.map +1 -0
- package/dist/layout/Box/Box.js +70 -0
- package/dist/layout/Box/Box.module.css +3 -0
- package/dist/layout/Box/Box.module.css.cjs +8 -0
- package/dist/layout/Box/Box.module.css.js +8 -0
- package/dist/layout/Divider/Divider.cjs +20 -0
- package/dist/layout/Divider/Divider.d.ts +6 -0
- package/dist/layout/Divider/Divider.d.ts.map +1 -0
- package/dist/layout/Divider/Divider.js +20 -0
- package/dist/layout/Divider/Divider.module.css +25 -0
- package/dist/layout/Divider/Divider.module.css.cjs +14 -0
- package/dist/layout/Divider/Divider.module.css.js +14 -0
- package/dist/layout/Grid/Grid.cjs +106 -0
- package/dist/layout/Grid/Grid.d.ts +7 -0
- package/dist/layout/Grid/Grid.d.ts.map +1 -0
- package/dist/layout/Grid/Grid.js +106 -0
- package/dist/layout/Grid/Grid.module.css +43 -0
- package/dist/layout/Grid/Grid.module.css.cjs +23 -0
- package/dist/layout/Grid/Grid.module.css.js +23 -0
- package/dist/layout/Spacer/Spacer.cjs +30 -0
- package/dist/layout/Spacer/Spacer.d.ts +21 -0
- package/dist/layout/Spacer/Spacer.d.ts.map +1 -0
- package/dist/layout/Spacer/Spacer.js +30 -0
- package/dist/layout/Stack/Stack.cjs +52 -0
- package/dist/layout/Stack/Stack.d.ts +7 -0
- package/dist/layout/Stack/Stack.d.ts.map +1 -0
- package/dist/layout/Stack/Stack.js +52 -0
- package/dist/layout/Stack/Stack.module.css +3 -0
- package/dist/layout/Stack/Stack.module.css.cjs +8 -0
- package/dist/layout/Stack/Stack.module.css.js +8 -0
- package/dist/layout/index.d.ts +6 -0
- package/dist/layout/index.d.ts.map +1 -0
- package/dist/react/AxenArrayField.cjs +80 -0
- package/dist/react/AxenArrayField.d.ts +15 -0
- package/dist/react/AxenArrayField.d.ts.map +1 -0
- package/dist/react/AxenArrayField.js +80 -0
- package/dist/react/AxenField.cjs +62 -0
- package/dist/react/AxenField.d.ts +13 -0
- package/dist/react/AxenField.d.ts.map +1 -0
- package/dist/react/AxenField.js +62 -0
- package/dist/react/AxenForm.cjs +134 -0
- package/dist/react/AxenForm.d.ts +7 -0
- package/dist/react/AxenForm.d.ts.map +1 -0
- package/dist/react/AxenForm.js +134 -0
- package/dist/react/FormContext.cjs +13 -0
- package/dist/react/FormContext.d.ts +11 -0
- package/dist/react/FormContext.d.ts.map +1 -0
- package/dist/react/FormContext.js +13 -0
- package/dist/react/useAxenForm.cjs +88 -0
- package/dist/react/useAxenForm.d.ts +8 -0
- package/dist/react/useAxenForm.d.ts.map +1 -0
- package/dist/react/useAxenForm.js +88 -0
- package/dist/react/useField.cjs +41 -0
- package/dist/react/useField.d.ts +13 -0
- package/dist/react/useField.d.ts.map +1 -0
- package/dist/react/useField.js +41 -0
- package/dist/react/useFieldArray.cjs +74 -0
- package/dist/react/useFieldArray.d.ts +5 -0
- package/dist/react/useFieldArray.d.ts.map +1 -0
- package/dist/react/useFieldArray.js +74 -0
- package/dist/types.d.ts +226 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +87 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const fieldBase_module = require("../fieldBase.module.css.cjs");
|
|
5
|
+
const fieldUtils = require("../fieldUtils.cjs");
|
|
6
|
+
function TextareaField({
|
|
7
|
+
name,
|
|
8
|
+
value,
|
|
9
|
+
onChange,
|
|
10
|
+
onBlur,
|
|
11
|
+
error,
|
|
12
|
+
helperText,
|
|
13
|
+
label,
|
|
14
|
+
placeholder,
|
|
15
|
+
disabled,
|
|
16
|
+
readOnly,
|
|
17
|
+
required,
|
|
18
|
+
rows
|
|
19
|
+
}) {
|
|
20
|
+
const aria = fieldUtils.ariaProps(name, { error, helperText, required, label });
|
|
21
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: fieldBase_module.default.wrapper, children: [
|
|
22
|
+
label && /* @__PURE__ */ jsxRuntime.jsx(
|
|
23
|
+
"label",
|
|
24
|
+
{
|
|
25
|
+
id: fieldUtils.labelId(name),
|
|
26
|
+
htmlFor: name,
|
|
27
|
+
className: fieldUtils.cx(fieldBase_module.default.label, required && fieldBase_module.default.labelRequired),
|
|
28
|
+
children: label
|
|
29
|
+
}
|
|
30
|
+
),
|
|
31
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
32
|
+
"textarea",
|
|
33
|
+
{
|
|
34
|
+
...aria,
|
|
35
|
+
name,
|
|
36
|
+
value: value ?? "",
|
|
37
|
+
onChange,
|
|
38
|
+
onBlur,
|
|
39
|
+
placeholder,
|
|
40
|
+
disabled,
|
|
41
|
+
readOnly,
|
|
42
|
+
rows: rows ?? 4,
|
|
43
|
+
className: fieldUtils.cx(fieldBase_module.default.input, fieldBase_module.default.textarea, error && fieldBase_module.default.inputError)
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
helperText && /* @__PURE__ */ jsxRuntime.jsx(
|
|
47
|
+
"span",
|
|
48
|
+
{
|
|
49
|
+
id: fieldUtils.helperId(name),
|
|
50
|
+
className: fieldUtils.cx(fieldBase_module.default.helperText, error && fieldBase_module.default.helperTextError),
|
|
51
|
+
role: error ? "alert" : void 0,
|
|
52
|
+
children: helperText
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
] });
|
|
56
|
+
}
|
|
57
|
+
exports.TextareaField = TextareaField;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FieldComponentProps } from '../../types';
|
|
2
|
+
export declare function TextareaField({ name, value, onChange, onBlur, error, helperText, label, placeholder, disabled, readOnly, required, rows, }: FieldComponentProps & {
|
|
3
|
+
rows?: number;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
//# sourceMappingURL=TextareaField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextareaField.d.ts","sourceRoot":"","sources":["../../../src/fields/TextareaField/TextareaField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAIvD,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,MAAM,EACN,KAAK,EACL,UAAU,EACV,KAAK,EACL,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,IAAI,GACL,EAAE,mBAAmB,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,2CAqCzC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import styles from "../fieldBase.module.css.js";
|
|
3
|
+
import { ariaProps, cx, labelId, helperId } from "../fieldUtils.js";
|
|
4
|
+
function TextareaField({
|
|
5
|
+
name,
|
|
6
|
+
value,
|
|
7
|
+
onChange,
|
|
8
|
+
onBlur,
|
|
9
|
+
error,
|
|
10
|
+
helperText,
|
|
11
|
+
label,
|
|
12
|
+
placeholder,
|
|
13
|
+
disabled,
|
|
14
|
+
readOnly,
|
|
15
|
+
required,
|
|
16
|
+
rows
|
|
17
|
+
}) {
|
|
18
|
+
const aria = ariaProps(name, { error, helperText, required, label });
|
|
19
|
+
return /* @__PURE__ */ jsxs("div", { className: styles.wrapper, children: [
|
|
20
|
+
label && /* @__PURE__ */ jsx(
|
|
21
|
+
"label",
|
|
22
|
+
{
|
|
23
|
+
id: labelId(name),
|
|
24
|
+
htmlFor: name,
|
|
25
|
+
className: cx(styles.label, required && styles.labelRequired),
|
|
26
|
+
children: label
|
|
27
|
+
}
|
|
28
|
+
),
|
|
29
|
+
/* @__PURE__ */ jsx(
|
|
30
|
+
"textarea",
|
|
31
|
+
{
|
|
32
|
+
...aria,
|
|
33
|
+
name,
|
|
34
|
+
value: value ?? "",
|
|
35
|
+
onChange,
|
|
36
|
+
onBlur,
|
|
37
|
+
placeholder,
|
|
38
|
+
disabled,
|
|
39
|
+
readOnly,
|
|
40
|
+
rows: rows ?? 4,
|
|
41
|
+
className: cx(styles.input, styles.textarea, error && styles.inputError)
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
helperText && /* @__PURE__ */ jsx(
|
|
45
|
+
"span",
|
|
46
|
+
{
|
|
47
|
+
id: helperId(name),
|
|
48
|
+
className: cx(styles.helperText, error && styles.helperTextError),
|
|
49
|
+
role: error ? "alert" : void 0,
|
|
50
|
+
children: helperText
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
] });
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
TextareaField
|
|
57
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const dateUtils = require("../../core/dateUtils.cjs");
|
|
5
|
+
const fieldBase_module = require("../fieldBase.module.css.cjs");
|
|
6
|
+
const fieldUtils = require("../fieldUtils.cjs");
|
|
7
|
+
function TimeField({
|
|
8
|
+
name,
|
|
9
|
+
value,
|
|
10
|
+
onChange,
|
|
11
|
+
onBlur,
|
|
12
|
+
error,
|
|
13
|
+
helperText,
|
|
14
|
+
label,
|
|
15
|
+
placeholder,
|
|
16
|
+
disabled,
|
|
17
|
+
readOnly,
|
|
18
|
+
required,
|
|
19
|
+
locale,
|
|
20
|
+
ampm
|
|
21
|
+
}) {
|
|
22
|
+
const aria = fieldUtils.ariaProps(name, { error, helperText, required, label });
|
|
23
|
+
const resolvedLocale = locale ?? dateUtils.getDefaultLocale();
|
|
24
|
+
const timeValue = typeof value === "string" ? value : "";
|
|
25
|
+
const displayText = timeValue ? dateUtils.formatTimeLocale(timeValue, resolvedLocale, ampm) : "";
|
|
26
|
+
const handleChange = (e) => {
|
|
27
|
+
onChange(e);
|
|
28
|
+
};
|
|
29
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: fieldBase_module.default.wrapper, children: [
|
|
30
|
+
label && /* @__PURE__ */ jsxRuntime.jsx(
|
|
31
|
+
"label",
|
|
32
|
+
{
|
|
33
|
+
id: fieldUtils.labelId(name),
|
|
34
|
+
htmlFor: name,
|
|
35
|
+
className: fieldUtils.cx(fieldBase_module.default.label, required && fieldBase_module.default.labelRequired),
|
|
36
|
+
children: label
|
|
37
|
+
}
|
|
38
|
+
),
|
|
39
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
40
|
+
"input",
|
|
41
|
+
{
|
|
42
|
+
...aria,
|
|
43
|
+
type: "time",
|
|
44
|
+
name,
|
|
45
|
+
value: timeValue,
|
|
46
|
+
onChange: handleChange,
|
|
47
|
+
onBlur,
|
|
48
|
+
placeholder,
|
|
49
|
+
disabled,
|
|
50
|
+
readOnly,
|
|
51
|
+
lang: resolvedLocale,
|
|
52
|
+
className: fieldUtils.cx(fieldBase_module.default.input, error && fieldBase_module.default.inputError)
|
|
53
|
+
}
|
|
54
|
+
),
|
|
55
|
+
displayText && /* @__PURE__ */ jsxRuntime.jsx("span", { className: fieldBase_module.default.helperText, "aria-hidden": "true", children: displayText }),
|
|
56
|
+
helperText && /* @__PURE__ */ jsxRuntime.jsx(
|
|
57
|
+
"span",
|
|
58
|
+
{
|
|
59
|
+
id: fieldUtils.helperId(name),
|
|
60
|
+
className: fieldUtils.cx(fieldBase_module.default.helperText, error && fieldBase_module.default.helperTextError),
|
|
61
|
+
role: error ? "alert" : void 0,
|
|
62
|
+
children: helperText
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
] });
|
|
66
|
+
}
|
|
67
|
+
exports.TimeField = TimeField;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FieldComponentProps } from '../../types';
|
|
2
|
+
export declare function TimeField({ name, value, onChange, onBlur, error, helperText, label, placeholder, disabled, readOnly, required, locale, ampm, }: Readonly<FieldComponentProps & {
|
|
3
|
+
locale?: string;
|
|
4
|
+
ampm?: boolean;
|
|
5
|
+
}>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=TimeField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimeField.d.ts","sourceRoot":"","sources":["../../../src/fields/TimeField/TimeField.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAIvD,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,MAAM,EACN,KAAK,EACL,UAAU,EACV,KAAK,EACL,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,IAAI,GACL,EAAE,QAAQ,CAAC,mBAAmB,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,2CAuDrE"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { formatTimeLocale, getDefaultLocale } from "../../core/dateUtils.js";
|
|
3
|
+
import styles from "../fieldBase.module.css.js";
|
|
4
|
+
import { ariaProps, cx, labelId, helperId } from "../fieldUtils.js";
|
|
5
|
+
function TimeField({
|
|
6
|
+
name,
|
|
7
|
+
value,
|
|
8
|
+
onChange,
|
|
9
|
+
onBlur,
|
|
10
|
+
error,
|
|
11
|
+
helperText,
|
|
12
|
+
label,
|
|
13
|
+
placeholder,
|
|
14
|
+
disabled,
|
|
15
|
+
readOnly,
|
|
16
|
+
required,
|
|
17
|
+
locale,
|
|
18
|
+
ampm
|
|
19
|
+
}) {
|
|
20
|
+
const aria = ariaProps(name, { error, helperText, required, label });
|
|
21
|
+
const resolvedLocale = locale ?? getDefaultLocale();
|
|
22
|
+
const timeValue = typeof value === "string" ? value : "";
|
|
23
|
+
const displayText = timeValue ? formatTimeLocale(timeValue, resolvedLocale, ampm) : "";
|
|
24
|
+
const handleChange = (e) => {
|
|
25
|
+
onChange(e);
|
|
26
|
+
};
|
|
27
|
+
return /* @__PURE__ */ jsxs("div", { className: styles.wrapper, children: [
|
|
28
|
+
label && /* @__PURE__ */ jsx(
|
|
29
|
+
"label",
|
|
30
|
+
{
|
|
31
|
+
id: labelId(name),
|
|
32
|
+
htmlFor: name,
|
|
33
|
+
className: cx(styles.label, required && styles.labelRequired),
|
|
34
|
+
children: label
|
|
35
|
+
}
|
|
36
|
+
),
|
|
37
|
+
/* @__PURE__ */ jsx(
|
|
38
|
+
"input",
|
|
39
|
+
{
|
|
40
|
+
...aria,
|
|
41
|
+
type: "time",
|
|
42
|
+
name,
|
|
43
|
+
value: timeValue,
|
|
44
|
+
onChange: handleChange,
|
|
45
|
+
onBlur,
|
|
46
|
+
placeholder,
|
|
47
|
+
disabled,
|
|
48
|
+
readOnly,
|
|
49
|
+
lang: resolvedLocale,
|
|
50
|
+
className: cx(styles.input, error && styles.inputError)
|
|
51
|
+
}
|
|
52
|
+
),
|
|
53
|
+
displayText && /* @__PURE__ */ jsx("span", { className: styles.helperText, "aria-hidden": "true", children: displayText }),
|
|
54
|
+
helperText && /* @__PURE__ */ jsx(
|
|
55
|
+
"span",
|
|
56
|
+
{
|
|
57
|
+
id: helperId(name),
|
|
58
|
+
className: cx(styles.helperText, error && styles.helperTextError),
|
|
59
|
+
role: error ? "alert" : void 0,
|
|
60
|
+
children: helperText
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
] });
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
TimeField
|
|
67
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const AutocompleteField = require("./AutocompleteField/AutocompleteField.cjs");
|
|
4
|
+
const AutocompleteMultiField = require("./AutocompleteMultiField/AutocompleteMultiField.cjs");
|
|
5
|
+
const AutocompletePredictField = require("./AutocompletePredictField/AutocompletePredictField.cjs");
|
|
6
|
+
const CheckboxField = require("./CheckboxField/CheckboxField.cjs");
|
|
7
|
+
const ColorField = require("./ColorField/ColorField.cjs");
|
|
8
|
+
const CurrencyField = require("./CurrencyField/CurrencyField.cjs");
|
|
9
|
+
const DateField = require("./DateField/DateField.cjs");
|
|
10
|
+
const DateTimeField = require("./DateTimeField/DateTimeField.cjs");
|
|
11
|
+
const EmailField = require("./EmailField/EmailField.cjs");
|
|
12
|
+
const NumberField = require("./NumberField/NumberField.cjs");
|
|
13
|
+
const PasswordField = require("./PasswordField/PasswordField.cjs");
|
|
14
|
+
const PhoneField = require("./PhoneField/PhoneField.cjs");
|
|
15
|
+
const RadioField = require("./RadioField/RadioField.cjs");
|
|
16
|
+
const SelectField = require("./SelectField/SelectField.cjs");
|
|
17
|
+
const SliderField = require("./SliderField/SliderField.cjs");
|
|
18
|
+
const SwitchField = require("./SwitchField/SwitchField.cjs");
|
|
19
|
+
const TextareaField = require("./TextareaField/TextareaField.cjs");
|
|
20
|
+
const TextField = require("./TextField/TextField.cjs");
|
|
21
|
+
const TimeField = require("./TimeField/TimeField.cjs");
|
|
22
|
+
const defaultComponentMap = {
|
|
23
|
+
text: TextField.TextField,
|
|
24
|
+
email: EmailField.EmailField,
|
|
25
|
+
password: PasswordField.PasswordField,
|
|
26
|
+
phone: PhoneField.PhoneField,
|
|
27
|
+
textarea: TextareaField.TextareaField,
|
|
28
|
+
number: NumberField.NumberField,
|
|
29
|
+
currency: CurrencyField.CurrencyField,
|
|
30
|
+
slider: SliderField.SliderField,
|
|
31
|
+
date: DateField.DateField,
|
|
32
|
+
time: TimeField.TimeField,
|
|
33
|
+
datetime: DateTimeField.DateTimeField,
|
|
34
|
+
select: SelectField.SelectField,
|
|
35
|
+
checkbox: CheckboxField.CheckboxField,
|
|
36
|
+
radio: RadioField.RadioField,
|
|
37
|
+
switch: SwitchField.SwitchField,
|
|
38
|
+
autocomplete: AutocompleteField.AutocompleteField,
|
|
39
|
+
"autocomplete-multi": AutocompleteMultiField.AutocompleteMultiField,
|
|
40
|
+
"autocomplete-predict": AutocompletePredictField.AutocompletePredictField,
|
|
41
|
+
color: ColorField.ColorField
|
|
42
|
+
};
|
|
43
|
+
exports.defaultComponentMap = defaultComponentMap;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FieldTypeComponentMap } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Default component map — maps all 20 built-in field types to their components.
|
|
4
|
+
* Pass to AxenForm's `components` prop or use as base to extend with custom types.
|
|
5
|
+
*/
|
|
6
|
+
export declare const defaultComponentMap: FieldTypeComponentMap;
|
|
7
|
+
//# sourceMappingURL=defaultComponentMap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultComponentMap.d.ts","sourceRoot":"","sources":["../../src/fields/defaultComponentMap.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAuB,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAsB3E;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,qBAoBjC,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { AutocompleteField } from "./AutocompleteField/AutocompleteField.js";
|
|
2
|
+
import { AutocompleteMultiField } from "./AutocompleteMultiField/AutocompleteMultiField.js";
|
|
3
|
+
import { AutocompletePredictField } from "./AutocompletePredictField/AutocompletePredictField.js";
|
|
4
|
+
import { CheckboxField } from "./CheckboxField/CheckboxField.js";
|
|
5
|
+
import { ColorField } from "./ColorField/ColorField.js";
|
|
6
|
+
import { CurrencyField } from "./CurrencyField/CurrencyField.js";
|
|
7
|
+
import { DateField } from "./DateField/DateField.js";
|
|
8
|
+
import { DateTimeField } from "./DateTimeField/DateTimeField.js";
|
|
9
|
+
import { EmailField } from "./EmailField/EmailField.js";
|
|
10
|
+
import { NumberField } from "./NumberField/NumberField.js";
|
|
11
|
+
import { PasswordField } from "./PasswordField/PasswordField.js";
|
|
12
|
+
import { PhoneField } from "./PhoneField/PhoneField.js";
|
|
13
|
+
import { RadioField } from "./RadioField/RadioField.js";
|
|
14
|
+
import { SelectField } from "./SelectField/SelectField.js";
|
|
15
|
+
import { SliderField } from "./SliderField/SliderField.js";
|
|
16
|
+
import { SwitchField } from "./SwitchField/SwitchField.js";
|
|
17
|
+
import { TextareaField } from "./TextareaField/TextareaField.js";
|
|
18
|
+
import { TextField } from "./TextField/TextField.js";
|
|
19
|
+
import { TimeField } from "./TimeField/TimeField.js";
|
|
20
|
+
const defaultComponentMap = {
|
|
21
|
+
text: TextField,
|
|
22
|
+
email: EmailField,
|
|
23
|
+
password: PasswordField,
|
|
24
|
+
phone: PhoneField,
|
|
25
|
+
textarea: TextareaField,
|
|
26
|
+
number: NumberField,
|
|
27
|
+
currency: CurrencyField,
|
|
28
|
+
slider: SliderField,
|
|
29
|
+
date: DateField,
|
|
30
|
+
time: TimeField,
|
|
31
|
+
datetime: DateTimeField,
|
|
32
|
+
select: SelectField,
|
|
33
|
+
checkbox: CheckboxField,
|
|
34
|
+
radio: RadioField,
|
|
35
|
+
switch: SwitchField,
|
|
36
|
+
autocomplete: AutocompleteField,
|
|
37
|
+
"autocomplete-multi": AutocompleteMultiField,
|
|
38
|
+
"autocomplete-predict": AutocompletePredictField,
|
|
39
|
+
color: ColorField
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
defaultComponentMap
|
|
43
|
+
};
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
/* ═══════════════════════════════════════════════
|
|
2
|
+
axen-form Field Base Styles
|
|
3
|
+
Shared styles for all field components
|
|
4
|
+
A11y-aware + Responsive
|
|
5
|
+
═══════════════════════════════════════════════ */
|
|
6
|
+
|
|
7
|
+
/* ── Field Wrapper ───────────────────────────── */
|
|
8
|
+
._wrapper_7lsag_8 {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
width: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* ── Label ───────────────────────────────────── */
|
|
15
|
+
._label_7lsag_15 {
|
|
16
|
+
display: block;
|
|
17
|
+
font-size: var(--axen-font-size-sm);
|
|
18
|
+
font-weight: var(--axen-font-weight-medium);
|
|
19
|
+
color: var(--axen-color-text);
|
|
20
|
+
margin-bottom: var(--axen-label-margin-bottom);
|
|
21
|
+
line-height: var(--axen-line-height);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
._labelRequired_7lsag_24::after {
|
|
25
|
+
content: ' *';
|
|
26
|
+
color: var(--axen-color-error);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* ── Input Base ──────────────────────────────── */
|
|
30
|
+
._input_7lsag_30 {
|
|
31
|
+
display: block;
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: var(--axen-field-height);
|
|
34
|
+
min-height: var(--axen-field-min-height);
|
|
35
|
+
padding: var(--axen-field-padding-y) var(--axen-field-padding-x);
|
|
36
|
+
font-family: var(--axen-font-family);
|
|
37
|
+
font-size: var(--axen-font-size-md);
|
|
38
|
+
line-height: var(--axen-line-height);
|
|
39
|
+
color: var(--axen-color-text);
|
|
40
|
+
background-color: var(--axen-color-bg);
|
|
41
|
+
border: var(--axen-border-width) solid var(--axen-color-border);
|
|
42
|
+
border-radius: var(--axen-border-radius);
|
|
43
|
+
transition:
|
|
44
|
+
border-color var(--axen-transition-fast),
|
|
45
|
+
box-shadow var(--axen-transition-fast);
|
|
46
|
+
outline: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
._input_7lsag_30::placeholder {
|
|
50
|
+
color: var(--axen-color-text-disabled);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
._input_7lsag_30:hover:not(:disabled):not(:read-only) {
|
|
54
|
+
border-color: var(--axen-color-border-hover);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Focus-visible ring (A11y: keyboard-only focus indicator) */
|
|
58
|
+
._input_7lsag_30:focus-visible {
|
|
59
|
+
border-color: var(--axen-color-border-focus);
|
|
60
|
+
box-shadow: var(--axen-shadow-focus);
|
|
61
|
+
outline: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
._input_7lsag_30:disabled {
|
|
65
|
+
background-color: var(--axen-color-bg-disabled);
|
|
66
|
+
color: var(--axen-color-text-disabled);
|
|
67
|
+
cursor: not-allowed;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
._input_7lsag_30:read-only {
|
|
71
|
+
background-color: var(--axen-color-bg-disabled);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* ── Error State ─────────────────────────────── */
|
|
75
|
+
._inputError_7lsag_75 {
|
|
76
|
+
border-color: var(--axen-color-error);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
._inputError_7lsag_75:focus-visible {
|
|
80
|
+
border-color: var(--axen-color-error);
|
|
81
|
+
box-shadow: 0 0 0 var(--axen-focus-ring-width) rgba(211, 47, 47, 0.3);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* ── Helper Text ─────────────────────────────── */
|
|
85
|
+
._helperText_7lsag_85 {
|
|
86
|
+
display: block;
|
|
87
|
+
font-size: var(--axen-font-size-xs);
|
|
88
|
+
color: var(--axen-color-text-secondary);
|
|
89
|
+
margin-top: var(--axen-helper-margin-top);
|
|
90
|
+
line-height: var(--axen-line-height);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
._helperTextError_7lsag_93 {
|
|
94
|
+
color: var(--axen-color-error);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* ── Textarea ────────────────────────────────── */
|
|
98
|
+
._textarea_7lsag_98 {
|
|
99
|
+
height: auto;
|
|
100
|
+
min-height: calc(var(--axen-field-min-height) * 2);
|
|
101
|
+
resize: vertical;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* ── Select ──────────────────────────────────── */
|
|
105
|
+
._select_7lsag_105 {
|
|
106
|
+
appearance: none;
|
|
107
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
|
|
108
|
+
background-repeat: no-repeat;
|
|
109
|
+
background-position: right 0.75rem center;
|
|
110
|
+
padding-right: 2rem;
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* ── Input with prefix/suffix ────────────────── */
|
|
115
|
+
._inputGroup_7lsag_115 {
|
|
116
|
+
display: flex;
|
|
117
|
+
align-items: stretch;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
._inputPrefix_7lsag_120,
|
|
121
|
+
._inputSuffix_7lsag_121 {
|
|
122
|
+
display: flex;
|
|
123
|
+
align-items: center;
|
|
124
|
+
padding: 0 var(--axen-space-sm);
|
|
125
|
+
font-size: var(--axen-font-size-sm);
|
|
126
|
+
color: var(--axen-color-text-secondary);
|
|
127
|
+
background-color: var(--axen-color-bg-hover);
|
|
128
|
+
border: var(--axen-border-width) solid var(--axen-color-border);
|
|
129
|
+
white-space: nowrap;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
._inputPrefix_7lsag_120 {
|
|
133
|
+
border-right: none;
|
|
134
|
+
border-radius: var(--axen-border-radius) 0 0 var(--axen-border-radius);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
._inputSuffix_7lsag_121 {
|
|
138
|
+
border-left: none;
|
|
139
|
+
border-radius: 0 var(--axen-border-radius) var(--axen-border-radius) 0;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
._inputGroupInput_7lsag_142 {
|
|
143
|
+
border-radius: 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
._inputPrefix_7lsag_120 + ._inputGroupInput_7lsag_142 {
|
|
147
|
+
border-top-left-radius: 0;
|
|
148
|
+
border-bottom-left-radius: 0;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
._inputGroupInput_7lsag_142:has(+ ._inputSuffix_7lsag_121) {
|
|
152
|
+
border-top-right-radius: 0;
|
|
153
|
+
border-bottom-right-radius: 0;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* ── Checkbox/Radio/Switch shared ────────────── */
|
|
157
|
+
._inlineWrapper_7lsag_157 {
|
|
158
|
+
display: flex;
|
|
159
|
+
align-items: center;
|
|
160
|
+
gap: var(--axen-space-sm);
|
|
161
|
+
min-height: var(--axen-field-min-height);
|
|
162
|
+
cursor: pointer;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
._inlineWrapper_7lsag_157:has(:disabled) {
|
|
166
|
+
cursor: not-allowed;
|
|
167
|
+
opacity: 0.6;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
._inlineLabel_7lsag_170 {
|
|
171
|
+
font-size: var(--axen-font-size-md);
|
|
172
|
+
color: var(--axen-color-text);
|
|
173
|
+
user-select: none;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/* ── Responsive: mobile touch targets ────────── */
|
|
177
|
+
@media (max-width: 599px) {
|
|
178
|
+
._input_7lsag_30 {
|
|
179
|
+
font-size: 16px; /* Prevent iOS zoom on focus */
|
|
180
|
+
min-height: 48px;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
._inlineWrapper_7lsag_157 {
|
|
184
|
+
min-height: 48px;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/* ── High Contrast Mode ──────────────────────── */
|
|
189
|
+
@media (prefers-contrast: more) {
|
|
190
|
+
._input_7lsag_30 {
|
|
191
|
+
border-width: 2px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
._inputError_7lsag_75 {
|
|
195
|
+
border-width: 3px;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
._helperTextError_7lsag_93 {
|
|
199
|
+
font-weight: var(--axen-font-weight-bold);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const wrapper = "_wrapper_7lsag_8";
|
|
4
|
+
const label = "_label_7lsag_15";
|
|
5
|
+
const labelRequired = "_labelRequired_7lsag_24";
|
|
6
|
+
const input = "_input_7lsag_30";
|
|
7
|
+
const inputError = "_inputError_7lsag_75";
|
|
8
|
+
const helperText = "_helperText_7lsag_85";
|
|
9
|
+
const helperTextError = "_helperTextError_7lsag_93";
|
|
10
|
+
const textarea = "_textarea_7lsag_98";
|
|
11
|
+
const select = "_select_7lsag_105";
|
|
12
|
+
const inputGroup = "_inputGroup_7lsag_115";
|
|
13
|
+
const inputPrefix = "_inputPrefix_7lsag_120";
|
|
14
|
+
const inputSuffix = "_inputSuffix_7lsag_121";
|
|
15
|
+
const inputGroupInput = "_inputGroupInput_7lsag_142";
|
|
16
|
+
const inlineWrapper = "_inlineWrapper_7lsag_157";
|
|
17
|
+
const inlineLabel = "_inlineLabel_7lsag_170";
|
|
18
|
+
const styles = {
|
|
19
|
+
wrapper,
|
|
20
|
+
label,
|
|
21
|
+
labelRequired,
|
|
22
|
+
input,
|
|
23
|
+
inputError,
|
|
24
|
+
helperText,
|
|
25
|
+
helperTextError,
|
|
26
|
+
textarea,
|
|
27
|
+
select,
|
|
28
|
+
inputGroup,
|
|
29
|
+
inputPrefix,
|
|
30
|
+
inputSuffix,
|
|
31
|
+
inputGroupInput,
|
|
32
|
+
inlineWrapper,
|
|
33
|
+
inlineLabel
|
|
34
|
+
};
|
|
35
|
+
exports.default = styles;
|
|
36
|
+
exports.helperText = helperText;
|
|
37
|
+
exports.helperTextError = helperTextError;
|
|
38
|
+
exports.inlineLabel = inlineLabel;
|
|
39
|
+
exports.inlineWrapper = inlineWrapper;
|
|
40
|
+
exports.input = input;
|
|
41
|
+
exports.inputError = inputError;
|
|
42
|
+
exports.inputGroup = inputGroup;
|
|
43
|
+
exports.inputGroupInput = inputGroupInput;
|
|
44
|
+
exports.inputPrefix = inputPrefix;
|
|
45
|
+
exports.inputSuffix = inputSuffix;
|
|
46
|
+
exports.label = label;
|
|
47
|
+
exports.labelRequired = labelRequired;
|
|
48
|
+
exports.select = select;
|
|
49
|
+
exports.textarea = textarea;
|
|
50
|
+
exports.wrapper = wrapper;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
const wrapper = "_wrapper_7lsag_8";
|
|
2
|
+
const label = "_label_7lsag_15";
|
|
3
|
+
const labelRequired = "_labelRequired_7lsag_24";
|
|
4
|
+
const input = "_input_7lsag_30";
|
|
5
|
+
const inputError = "_inputError_7lsag_75";
|
|
6
|
+
const helperText = "_helperText_7lsag_85";
|
|
7
|
+
const helperTextError = "_helperTextError_7lsag_93";
|
|
8
|
+
const textarea = "_textarea_7lsag_98";
|
|
9
|
+
const select = "_select_7lsag_105";
|
|
10
|
+
const inputGroup = "_inputGroup_7lsag_115";
|
|
11
|
+
const inputPrefix = "_inputPrefix_7lsag_120";
|
|
12
|
+
const inputSuffix = "_inputSuffix_7lsag_121";
|
|
13
|
+
const inputGroupInput = "_inputGroupInput_7lsag_142";
|
|
14
|
+
const inlineWrapper = "_inlineWrapper_7lsag_157";
|
|
15
|
+
const inlineLabel = "_inlineLabel_7lsag_170";
|
|
16
|
+
const styles = {
|
|
17
|
+
wrapper,
|
|
18
|
+
label,
|
|
19
|
+
labelRequired,
|
|
20
|
+
input,
|
|
21
|
+
inputError,
|
|
22
|
+
helperText,
|
|
23
|
+
helperTextError,
|
|
24
|
+
textarea,
|
|
25
|
+
select,
|
|
26
|
+
inputGroup,
|
|
27
|
+
inputPrefix,
|
|
28
|
+
inputSuffix,
|
|
29
|
+
inputGroupInput,
|
|
30
|
+
inlineWrapper,
|
|
31
|
+
inlineLabel
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
styles as default,
|
|
35
|
+
helperText,
|
|
36
|
+
helperTextError,
|
|
37
|
+
inlineLabel,
|
|
38
|
+
inlineWrapper,
|
|
39
|
+
input,
|
|
40
|
+
inputError,
|
|
41
|
+
inputGroup,
|
|
42
|
+
inputGroupInput,
|
|
43
|
+
inputPrefix,
|
|
44
|
+
inputSuffix,
|
|
45
|
+
label,
|
|
46
|
+
labelRequired,
|
|
47
|
+
select,
|
|
48
|
+
textarea,
|
|
49
|
+
wrapper
|
|
50
|
+
};
|