period-ui 0.4.4 → 0.4.6
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/components/atoms/base-input/base-input.d.ts +8 -0
- package/dist/components/atoms/base-input/base-input.d.ts.map +1 -1
- package/dist/components/atoms/base-input/base-input.js +4 -3
- package/dist/components/atoms/base-input/base-input.js.map +1 -1
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +5 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/molecules/form/form-password-field/form-password-field.d.ts +11 -0
- package/dist/components/molecules/form/form-password-field/form-password-field.d.ts.map +1 -0
- package/dist/components/molecules/form/form-password-field/form-password-field.js +24 -0
- package/dist/components/molecules/form/form-password-field/form-password-field.js.map +1 -0
- package/dist/components/molecules/form/form-password-field/index.d.ts +2 -0
- package/dist/components/molecules/form/form-password-field/index.d.ts.map +1 -0
- package/dist/components/molecules/form/form-password-field/index.js +18 -0
- package/dist/components/molecules/form/form-password-field/index.js.map +1 -0
- package/dist/components/molecules/form/form-phone-field/form-phone-field.d.ts +11 -0
- package/dist/components/molecules/form/form-phone-field/form-phone-field.d.ts.map +1 -0
- package/dist/components/molecules/form/form-phone-field/form-phone-field.js +24 -0
- package/dist/components/molecules/form/form-phone-field/form-phone-field.js.map +1 -0
- package/dist/components/molecules/form/form-phone-field/index.d.ts +2 -0
- package/dist/components/molecules/form/form-phone-field/index.d.ts.map +1 -0
- package/dist/components/molecules/form/form-phone-field/index.js +18 -0
- package/dist/components/molecules/form/form-phone-field/index.js.map +1 -0
- package/dist/components/molecules/password-field/index.d.ts +2 -0
- package/dist/components/molecules/password-field/index.d.ts.map +1 -0
- package/dist/components/molecules/password-field/index.js +18 -0
- package/dist/components/molecules/password-field/index.js.map +1 -0
- package/dist/components/molecules/password-field/password-field.d.ts +10 -0
- package/dist/components/molecules/password-field/password-field.d.ts.map +1 -0
- package/dist/components/molecules/password-field/password-field.js +14 -0
- package/dist/components/molecules/password-field/password-field.js.map +1 -0
- package/dist/components/molecules/phone-field/index.d.ts +2 -0
- package/dist/components/molecules/phone-field/index.d.ts.map +1 -0
- package/dist/components/molecules/phone-field/index.js +18 -0
- package/dist/components/molecules/phone-field/index.js.map +1 -0
- package/dist/components/molecules/phone-field/phone-field.d.ts +8 -0
- package/dist/components/molecules/phone-field/phone-field.d.ts.map +1 -0
- package/dist/components/molecules/phone-field/phone-field.js +10 -0
- package/dist/components/molecules/phone-field/phone-field.js.map +1 -0
- package/dist/components/molecules/text-field/components/text-field-input.d.ts +3 -0
- package/dist/components/molecules/text-field/components/text-field-input.d.ts.map +1 -1
- package/dist/components/molecules/text-field/components/text-field-input.js +2 -2
- package/dist/components/molecules/text-field/components/text-field-input.js.map +1 -1
- package/dist/components/molecules/text-field/text-field.d.ts +3 -0
- package/dist/components/molecules/text-field/text-field.d.ts.map +1 -1
- package/dist/components/molecules/text-field/text-field.js +4 -2
- package/dist/components/molecules/text-field/text-field.js.map +1 -1
- package/dist/components/organisms/document-field/document-field-constants.d.ts +5 -0
- package/dist/components/organisms/document-field/document-field-constants.d.ts.map +1 -0
- package/dist/components/organisms/document-field/document-field-constants.js +21 -0
- package/dist/components/organisms/document-field/document-field-constants.js.map +1 -0
- package/dist/components/organisms/document-field/document-field-types.d.ts +7 -0
- package/dist/components/organisms/document-field/document-field-types.d.ts.map +1 -0
- package/dist/components/organisms/document-field/document-field-types.js +11 -0
- package/dist/components/organisms/document-field/document-field-types.js.map +1 -0
- package/dist/components/organisms/document-field/document-field-validation.d.ts +17 -0
- package/dist/components/organisms/document-field/document-field-validation.d.ts.map +1 -0
- package/dist/components/organisms/document-field/document-field-validation.js +61 -0
- package/dist/components/organisms/document-field/document-field-validation.js.map +1 -0
- package/dist/components/organisms/document-field/document-field.d.ts +29 -0
- package/dist/components/organisms/document-field/document-field.d.ts.map +1 -0
- package/dist/components/organisms/document-field/document-field.js +25 -0
- package/dist/components/organisms/document-field/document-field.js.map +1 -0
- package/dist/components/organisms/document-field/index.d.ts +5 -0
- package/dist/components/organisms/document-field/index.d.ts.map +1 -0
- package/dist/components/organisms/document-field/index.js +21 -0
- package/dist/components/organisms/document-field/index.js.map +1 -0
- package/dist/components/organisms/document-field/use-document-field.d.ts +17 -0
- package/dist/components/organisms/document-field/use-document-field.d.ts.map +1 -0
- package/dist/components/organisms/document-field/use-document-field.js +34 -0
- package/dist/components/organisms/document-field/use-document-field.js.map +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6390 -5930
- package/package.json +1 -1
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.DOCUMENT_TYPE_PATTERNS = void 0;
|
|
27
|
+
exports.stripDocumentNumber = stripDocumentNumber;
|
|
28
|
+
exports.isValidDocumentNumber = isValidDocumentNumber;
|
|
29
|
+
exports.documentValidationSchema = documentValidationSchema;
|
|
30
|
+
const Yup = __importStar(require("yup"));
|
|
31
|
+
const document_field_types_1 = require("./document-field-types");
|
|
32
|
+
exports.DOCUMENT_TYPE_PATTERNS = {
|
|
33
|
+
[document_field_types_1.DocumentType.PHYSICAL]: /^\d{9}$/,
|
|
34
|
+
[document_field_types_1.DocumentType.LEGAL]: /^\d{4}[A-Za-z0-9]{6}$/,
|
|
35
|
+
[document_field_types_1.DocumentType.NITE]: /^\d{10}$/,
|
|
36
|
+
[document_field_types_1.DocumentType.DIMEX]: /^\d{11,12}$/,
|
|
37
|
+
};
|
|
38
|
+
function stripDocumentNumber(value) {
|
|
39
|
+
return value.replace(/\s+/g, '');
|
|
40
|
+
}
|
|
41
|
+
function isValidDocumentNumber(type, value) {
|
|
42
|
+
if (!type) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
return exports.DOCUMENT_TYPE_PATTERNS[type].test(stripDocumentNumber(value));
|
|
46
|
+
}
|
|
47
|
+
function documentValidationSchema(messages, fieldNames = {}) {
|
|
48
|
+
const typeName = fieldNames.typeName ?? 'documentType';
|
|
49
|
+
const numberName = fieldNames.numberName ?? 'documentNumber';
|
|
50
|
+
return {
|
|
51
|
+
[typeName]: Yup.string().required(messages.typeRequired),
|
|
52
|
+
[numberName]: Yup.string()
|
|
53
|
+
.trim()
|
|
54
|
+
.required(messages.numberRequired)
|
|
55
|
+
.test('document-number-format', messages.numberFormat, function validate(value) {
|
|
56
|
+
const selectedType = this.parent[typeName];
|
|
57
|
+
return isValidDocumentNumber(selectedType, value ?? '');
|
|
58
|
+
}),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=document-field-validation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-field-validation.js","sourceRoot":"","sources":["../../../../src/components/organisms/document-field/document-field-validation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,kDAEC;AAED,sDAMC;AAaD,4DAkBC;AAnDD,yCAA2B;AAC3B,iEAAsD;AAEzC,QAAA,sBAAsB,GAAiC;IAClE,CAAC,mCAAY,CAAC,QAAQ,CAAC,EAAE,SAAS;IAClC,CAAC,mCAAY,CAAC,KAAK,CAAC,EAAE,uBAAuB;IAC7C,CAAC,mCAAY,CAAC,IAAI,CAAC,EAAE,UAAU;IAC/B,CAAC,mCAAY,CAAC,KAAK,CAAC,EAAE,aAAa;CACpC,CAAC;AAEF,SAAgB,mBAAmB,CAAC,KAAa;IAC/C,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AACnC,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAA8B,EAAE,KAAa;IACjF,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,8BAAsB,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC;AACvE,CAAC;AAaD,SAAgB,wBAAwB,CACtC,QAAoC,EACpC,aAA2C,EAAE;IAE7C,MAAM,QAAQ,GAAG,UAAU,CAAC,QAAQ,IAAI,cAAc,CAAC;IACvD,MAAM,UAAU,GAAG,UAAU,CAAC,UAAU,IAAI,gBAAgB,CAAC;IAE7D,OAAO;QACL,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,CAAC;QACxD,CAAC,UAAU,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE;aACvB,IAAI,EAAE;aACN,QAAQ,CAAC,QAAQ,CAAC,cAAc,CAAC;aACjC,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,YAAY,EAAE,SAAS,QAAQ,CAAC,KAAK;YAC5E,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAA6B,CAAC;YAEvE,OAAO,qBAAqB,CAAC,YAAY,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;QAC1D,CAAC,CAAC;KACL,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { FormRenderProps } from '../../../components';
|
|
3
|
+
import { FormInputWidth } from '../../../containers';
|
|
4
|
+
import { DocumentType } from './document-field-types';
|
|
5
|
+
export type DocumentTypeOption = {
|
|
6
|
+
type: DocumentType;
|
|
7
|
+
label: string;
|
|
8
|
+
};
|
|
9
|
+
export type FormDocumentFieldProps = {
|
|
10
|
+
formProps: FormRenderProps<any>;
|
|
11
|
+
typeOptions: DocumentTypeOption[];
|
|
12
|
+
typeLabel: string;
|
|
13
|
+
numberLabel: string;
|
|
14
|
+
typeName?: string;
|
|
15
|
+
numberName?: string;
|
|
16
|
+
numberPlaceholder?: string;
|
|
17
|
+
typeHelperText?: string;
|
|
18
|
+
numberHelperText?: string;
|
|
19
|
+
typeErrorText?: string;
|
|
20
|
+
numberErrorText?: string;
|
|
21
|
+
isRequired?: boolean;
|
|
22
|
+
isDisabled?: boolean;
|
|
23
|
+
typeInputWidth?: FormInputWidth;
|
|
24
|
+
numberInputWidth?: FormInputWidth;
|
|
25
|
+
numberTrailingElement?: ReactNode;
|
|
26
|
+
containerClassName?: string;
|
|
27
|
+
};
|
|
28
|
+
export declare function FormDocumentField({ formProps, typeOptions, typeLabel, numberLabel, typeName, numberName, numberPlaceholder, typeHelperText, numberHelperText, typeErrorText, numberErrorText, isRequired, isDisabled, typeInputWidth, numberInputWidth, numberTrailingElement, containerClassName, }: FormDocumentFieldProps): JSX.Element;
|
|
29
|
+
//# sourceMappingURL=document-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-field.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/document-field/document-field.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAEL,eAAe,EAGhB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAe,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAElE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAGtD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IAEnC,SAAS,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC;IAChC,WAAW,EAAE,kBAAkB,EAAE,CAAC;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,gBAAgB,CAAC,EAAE,cAAc,CAAC;IAClC,qBAAqB,CAAC,EAAE,SAAS,CAAC;IAClC,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,EAChC,SAAS,EACT,WAAW,EACX,SAAS,EACT,WAAW,EACX,QAAyB,EACzB,UAA6B,EAC7B,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,UAAiB,EACjB,UAAkB,EAClB,cAA0C,EAC1C,gBAA4C,EAC5C,qBAAqB,EACrB,kBAAkB,GACnB,EAAE,sBAAsB,GAAG,GAAG,CAAC,OAAO,CAoFtC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormDocumentField = FormDocumentField;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const components_1 = require("../../../components");
|
|
6
|
+
const containers_1 = require("../../../containers");
|
|
7
|
+
const tailwind_utils_1 = require("../../../utils/tailwind-utils");
|
|
8
|
+
const document_field_types_1 = require("./document-field-types");
|
|
9
|
+
const use_document_field_1 = require("./use-document-field");
|
|
10
|
+
function FormDocumentField({ formProps, typeOptions, typeLabel, numberLabel, typeName = 'documentType', numberName = 'documentNumber', numberPlaceholder, typeHelperText, numberHelperText, typeErrorText, numberErrorText, isRequired = true, isDisabled = false, typeInputWidth = containers_1.FormInputWidth.TWO_COLUMN, numberInputWidth = containers_1.FormInputWidth.TWO_COLUMN, numberTrailingElement, containerClassName, }) {
|
|
11
|
+
const { selectedType, numberMaskOptions, isNumberDisabled, handleTypeChange, handleNumberChange, handleNumberBlur, } = (0, use_document_field_1.useDocumentField)({ typeName, numberName, formProps });
|
|
12
|
+
const selectOptions = typeOptions.map((option) => ({
|
|
13
|
+
label: option.label,
|
|
14
|
+
value: option.type,
|
|
15
|
+
}));
|
|
16
|
+
const numberValue = formProps.values[numberName] ?? '';
|
|
17
|
+
const numberInputMode = selectedType === document_field_types_1.DocumentType.LEGAL ? 'text' : 'numeric';
|
|
18
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, tailwind_utils_1.tailwind)('flex flex-col gap-8', containerClassName), children: [(0, jsx_runtime_1.jsx)(containers_1.FormControl, { label: typeLabel, helperText: typeHelperText, formName: typeName, formProps: formProps, isRequired: isRequired, isDisabled: isDisabled, inputWidth: typeInputWidth, errorText: typeErrorText || formProps.errors[typeName], associateLabelWithInput: false, children: ({ isErrorVisible, inputId, labelId, describedBy }) => ((0, jsx_runtime_1.jsx)(components_1.Select, { id: inputId, ariaLabelledBy: labelId, ariaDescribedBy: describedBy, isDisabled: isDisabled, isErrorVisible: isErrorVisible, options: selectOptions, initialValues: selectedType, onOptionChange: (values) => {
|
|
19
|
+
const [selectedValue] = values;
|
|
20
|
+
if (selectedValue) {
|
|
21
|
+
handleTypeChange(selectedValue);
|
|
22
|
+
}
|
|
23
|
+
} })) }), (0, jsx_runtime_1.jsx)(containers_1.FormControl, { label: numberLabel, helperText: numberHelperText, formName: numberName, formProps: formProps, isRequired: isRequired, isDisabled: isDisabled || isNumberDisabled, inputWidth: numberInputWidth, errorText: numberErrorText || formProps.errors[numberName], children: ({ isErrorVisible, inputId, describedBy }) => ((0, jsx_runtime_1.jsx)(components_1.TextField, { id: inputId, "aria-describedby": describedBy, type: "text", inputMode: numberInputMode, placeholder: numberPlaceholder, value: numberValue, maskOptions: numberMaskOptions, isRequired: isRequired, isDisabled: isDisabled || isNumberDisabled, isErrorVisible: isErrorVisible, trailingElement: numberTrailingElement, onChange: (event) => handleNumberChange(event.target.value), onBlur: handleNumberBlur }, `document-number-${selectedType ?? 'empty'}`)) })] }));
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=document-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-field.js","sourceRoot":"","sources":["../../../../src/components/organisms/document-field/document-field.tsx"],"names":[],"mappings":";;AAsCA,8CAsGC;;AA3ID,oDAK6B;AAC7B,oDAAkE;AAClE,kEAAyD;AACzD,iEAAsD;AACtD,6DAAwD;AA4BxD,SAAgB,iBAAiB,CAAC,EAChC,SAAS,EACT,WAAW,EACX,SAAS,EACT,WAAW,EACX,QAAQ,GAAG,cAAc,EACzB,UAAU,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AO,EAAE,CAgBjD,CACH,GACW,IACV,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/document-field/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./document-field"), exports);
|
|
18
|
+
__exportStar(require("./document-field-types"), exports);
|
|
19
|
+
__exportStar(require("./document-field-constants"), exports);
|
|
20
|
+
__exportStar(require("./document-field-validation"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/organisms/document-field/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,yDAAuC;AACvC,6DAA2C;AAC3C,8DAA4C"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FormRenderProps, MaskOptions } from '../../../components';
|
|
2
|
+
import { DocumentType } from './document-field-types';
|
|
3
|
+
export type UseDocumentFieldParams = {
|
|
4
|
+
typeName: string;
|
|
5
|
+
numberName: string;
|
|
6
|
+
formProps: FormRenderProps<any>;
|
|
7
|
+
};
|
|
8
|
+
export type UseDocumentFieldResult = {
|
|
9
|
+
selectedType?: DocumentType;
|
|
10
|
+
numberMaskOptions?: MaskOptions;
|
|
11
|
+
isNumberDisabled: boolean;
|
|
12
|
+
handleTypeChange: (type: DocumentType) => void;
|
|
13
|
+
handleNumberChange: (value: string) => void;
|
|
14
|
+
handleNumberBlur: () => void;
|
|
15
|
+
};
|
|
16
|
+
export declare function useDocumentField({ typeName, numberName, formProps, }: UseDocumentFieldParams): UseDocumentFieldResult;
|
|
17
|
+
//# sourceMappingURL=use-document-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-document-field.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/document-field/use-document-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEnE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAGtD,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IAEnB,SAAS,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,iBAAiB,CAAC,EAAE,WAAW,CAAC;IAChC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,gBAAgB,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IAC/C,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,UAAU,EACV,SAAS,GACV,EAAE,sBAAsB,GAAG,sBAAsB,CAiCjD"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useDocumentField = useDocumentField;
|
|
4
|
+
const document_field_constants_1 = require("./document-field-constants");
|
|
5
|
+
const document_field_validation_1 = require("./document-field-validation");
|
|
6
|
+
function useDocumentField({ typeName, numberName, formProps, }) {
|
|
7
|
+
const selectedType = formProps.values[typeName];
|
|
8
|
+
const numberMaskOptions = selectedType ? document_field_constants_1.DOCUMENT_TYPE_MASKS[selectedType] : undefined;
|
|
9
|
+
const isNumberDisabled = !selectedType;
|
|
10
|
+
function handleTypeChange(type) {
|
|
11
|
+
void formProps.setFieldValue(typeName, type);
|
|
12
|
+
void formProps.setFieldValue(numberName, '');
|
|
13
|
+
void formProps.setFieldTouched(numberName, false, false);
|
|
14
|
+
}
|
|
15
|
+
function handleNumberChange(value) {
|
|
16
|
+
const cleanValue = (0, document_field_validation_1.stripDocumentNumber)(value);
|
|
17
|
+
if (cleanValue === formProps.values[numberName]) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
void formProps.setFieldValue(numberName, cleanValue);
|
|
21
|
+
}
|
|
22
|
+
function handleNumberBlur() {
|
|
23
|
+
void formProps.setFieldTouched(numberName, true, true);
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
selectedType,
|
|
27
|
+
numberMaskOptions,
|
|
28
|
+
isNumberDisabled,
|
|
29
|
+
handleTypeChange,
|
|
30
|
+
handleNumberChange,
|
|
31
|
+
handleNumberBlur,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=use-document-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-document-field.js","sourceRoot":"","sources":["../../../../src/components/organisms/document-field/use-document-field.ts"],"names":[],"mappings":";;AAqBA,4CAqCC;AAzDD,yEAAiE;AAEjE,2EAAkE;AAkBlE,SAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,UAAU,EACV,SAAS,GACc;IACvB,MAAM,YAAY,GAAG,SAAS,CAAC,MAAM,CAAC,QAAQ,CAA6B,CAAC;IAC5E,MAAM,iBAAiB,GAAG,YAAY,CAAC,CAAC,CAAC,8CAAmB,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACvF,MAAM,gBAAgB,GAAG,CAAC,YAAY,CAAC;IAEvC,SAAS,gBAAgB,CAAC,IAAkB;QAC1C,KAAK,SAAS,CAAC,aAAa,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QAC7C,KAAK,SAAS,CAAC,aAAa,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;QAC7C,KAAK,SAAS,CAAC,eAAe,CAAC,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC3D,CAAC;IAED,SAAS,kBAAkB,CAAC,KAAa;QACvC,MAAM,UAAU,GAAG,IAAA,+CAAmB,EAAC,KAAK,CAAC,CAAC;QAE9C,IAAI,UAAU,KAAM,SAAS,CAAC,MAAM,CAAC,UAAU,CAAwB,EAAE,CAAC;YACxE,OAAO;QACT,CAAC;QAED,KAAK,SAAS,CAAC,aAAa,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IACvD,CAAC;IAED,SAAS,gBAAgB;QACvB,KAAK,SAAS,CAAC,eAAe,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;IAED,OAAO;QACL,YAAY;QACZ,iBAAiB;QACjB,gBAAgB;QAChB,gBAAgB;QAChB,kBAAkB;QAClB,gBAAgB;KACjB,CAAC;AACJ,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ export declare const _periodUI_marker = true;
|
|
|
2
2
|
export { Signature } from './components';
|
|
3
3
|
export type { SignatureProps, SignatureRef, SignatureData, SignatureImageFormat, SignatureImageSource, } from './components';
|
|
4
4
|
export { Badge, BadgeVariant, BilloIcon, IconColor, IconSymbol, IconSize, Button, ButtonVariant, Checkbox, RadioButton, CheckboxVariant, Chip, ChipList, DropDownMenu, MenuItemVariant, IconButton, IconButtonVariant, SearchBar, Text, TextVariant, TextColors, TextButton, TextButtonVariant, PopOver, PopOverPosition, Tooltip, ToolTipType, ProgressIndicator, ProgressIndicatorVariant, SpinnerVariant, AccordionItem, Accordion, Divider, DividerVariant, DatePicker, DatePickerVariants, } from './components';
|
|
5
|
-
export { Form, Drawer, DrawerVariant, DrawerDirection, Modal, ModalVariant, FilterVariant, Select, TextField, FormSelect, FilterModal, FormCheckBox, FormTextField, StatusSelector, StatusSelectorVariant, FormRadioButton, FormDatePicker, Callout, CalloutVariant, EmptyState, ThreeDotMenu, } from './components';
|
|
6
|
-
export { DropdownButton } from './components';
|
|
5
|
+
export { Form, Drawer, DrawerVariant, DrawerDirection, Modal, ModalVariant, FilterVariant, Select, TextField, PasswordField, PhoneField, FormPasswordField, FormPhoneField, FormSelect, FilterModal, FormCheckBox, FormTextField, StatusSelector, StatusSelectorVariant, FormRadioButton, FormDatePicker, Callout, CalloutVariant, EmptyState, ThreeDotMenu, } from './components';
|
|
6
|
+
export { DropdownButton, FormDocumentField, DocumentType, DOCUMENT_TYPE_MASKS, DOCUMENT_TYPE_ORDER, DOCUMENT_TYPE_PATTERNS, documentValidationSchema, isValidDocumentNumber, stripDocumentNumber, } from './components';
|
|
7
7
|
export { FormControl, FormInputWidth } from './containers';
|
|
8
8
|
export type { FormControlProps } from './containers';
|
|
9
|
-
export type { BadgeProps, ButtonProps, ToolTipProps, ChipProps, CheckboxProps, DatePickerProps, CheckboxMultiOptions, CheckBoxFilterOptions, DropDownMenuOptionProps, RadioButtonFilterOptions, StatusSelectorOptionProps, DrawerProps, ModalProps, FiltersOptions, FilterModalProps, FooterContentProps, ExtendableContentProps, FormErrors, FormConfig, FormHelpers, FormNames, FormRenderProps, FormSchema, TextFieldProps, FormSelectProps, FormTextFieldProps, FormDatePickerProps, EmptyStateProps, EmptyStateAction, ThreeDotMenuProps, DropdownButtonProps, } from './components';
|
|
9
|
+
export type { BadgeProps, ButtonProps, ToolTipProps, ChipProps, CheckboxProps, DatePickerProps, CheckboxMultiOptions, CheckBoxFilterOptions, DropDownMenuOptionProps, RadioButtonFilterOptions, StatusSelectorOptionProps, DrawerProps, ModalProps, FiltersOptions, FilterModalProps, FooterContentProps, ExtendableContentProps, FormErrors, FormConfig, FormHelpers, FormNames, FormRenderProps, FormSchema, TextFieldProps, MaskOptions, PasswordFieldProps, PhoneFieldProps, FormSelectProps, FormTextFieldProps, FormPasswordFieldProps, FormPhoneFieldProps, FormDatePickerProps, EmptyStateProps, EmptyStateAction, ThreeDotMenuProps, DropdownButtonProps, FormDocumentFieldProps, DocumentTypeOption, DocumentValidationMessages, DocumentValidationFieldNames, } from './components';
|
|
10
10
|
export type { MultiOptions } from './types/general';
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAGrC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,YAAY,EACV,cAAc,EACd,YAAY,EACZ,aAAa,EACb,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,KAAK,EACL,YAAY,EACZ,SAAS,EACT,SAAS,EACT,UAAU,EACV,QAAQ,EACR,MAAM,EACN,aAAa,EACb,QAAQ,EACR,WAAW,EACX,eAAe,EACf,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,UAAU,EACV,iBAAiB,EACjB,SAAS,EACT,IAAI,EACJ,WAAW,EACX,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,OAAO,EACP,eAAe,EACf,OAAO,EACP,WAAW,EACX,iBAAiB,EACjB,wBAAwB,EACxB,cAAc,EACd,aAAa,EACb,SAAS,EACT,OAAO,EACP,cAAc,EACd,UAAU,EACV,kBAAkB,GACnB,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,IAAI,EACJ,MAAM,EACN,aAAa,EACb,eAAe,EACf,KAAK,EACL,YAAY,EACZ,aAAa,EACb,MAAM,EACN,SAAS,EACT,UAAU,EACV,WAAW,EACX,YAAY,EACZ,aAAa,EACb,cAAc,EACd,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,OAAO,EACP,cAAc,EACd,UAAU,EACV,YAAY,GACb,MAAM,cAAc,CAAC;AAGtB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAGrC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,YAAY,EACV,cAAc,EACd,YAAY,EACZ,aAAa,EACb,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,KAAK,EACL,YAAY,EACZ,SAAS,EACT,SAAS,EACT,UAAU,EACV,QAAQ,EACR,MAAM,EACN,aAAa,EACb,QAAQ,EACR,WAAW,EACX,eAAe,EACf,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,UAAU,EACV,iBAAiB,EACjB,SAAS,EACT,IAAI,EACJ,WAAW,EACX,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,OAAO,EACP,eAAe,EACf,OAAO,EACP,WAAW,EACX,iBAAiB,EACjB,wBAAwB,EACxB,cAAc,EACd,aAAa,EACb,SAAS,EACT,OAAO,EACP,cAAc,EACd,UAAU,EACV,kB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package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.FormInputWidth = exports.FormControl = exports.DropdownButton = exports.ThreeDotMenu = exports.EmptyState = exports.CalloutVariant = exports.Callout = exports.FormDatePicker = exports.FormRadioButton = exports.StatusSelectorVariant = exports.StatusSelector = exports.FormTextField = void 0;
|
|
3
|
+
exports.FormPasswordField = exports.PhoneField = exports.PasswordField = exports.TextField = exports.Select = exports.FilterVariant = exports.ModalVariant = exports.Modal = exports.DrawerDirection = exports.DrawerVariant = exports.Drawer = exports.Form = exports.DatePickerVariants = exports.DatePicker = exports.DividerVariant = exports.Divider = exports.Accordion = exports.AccordionItem = exports.SpinnerVariant = exports.ProgressIndicatorVariant = exports.ProgressIndicator = exports.ToolTipType = exports.Tooltip = exports.PopOverPosition = exports.PopOver = exports.TextButtonVariant = exports.TextButton = exports.TextColors = exports.TextVariant = exports.Text = exports.SearchBar = exports.IconButtonVariant = exports.IconButton = exports.MenuItemVariant = exports.DropDownMenu = exports.ChipList = exports.Chip = exports.CheckboxVariant = exports.RadioButton = exports.Checkbox = exports.ButtonVariant = exports.Button = exports.IconSize = exports.IconSymbol = exports.IconColor = exports.BilloIcon = exports.BadgeVariant = exports.Badge = exports.Signature = exports._periodUI_marker = void 0;
|
|
4
|
+
exports.FormInputWidth = exports.FormControl = exports.stripDocumentNumber = exports.isValidDocumentNumber = exports.documentValidationSchema = exports.DOCUMENT_TYPE_PATTERNS = exports.DOCUMENT_TYPE_ORDER = exports.DOCUMENT_TYPE_MASKS = exports.DocumentType = exports.FormDocumentField = exports.DropdownButton = exports.ThreeDotMenu = exports.EmptyState = exports.CalloutVariant = exports.Callout = exports.FormDatePicker = exports.FormRadioButton = exports.StatusSelectorVariant = exports.StatusSelector = exports.FormTextField = exports.FormCheckBox = exports.FilterModal = exports.FormSelect = exports.FormPhoneField = void 0;
|
|
5
5
|
exports._periodUI_marker = true;
|
|
6
6
|
var components_1 = require("./components");
|
|
7
7
|
Object.defineProperty(exports, "Signature", { enumerable: true, get: function () { return components_1.Signature; } });
|
|
@@ -52,6 +52,10 @@ Object.defineProperty(exports, "ModalVariant", { enumerable: true, get: function
|
|
|
52
52
|
Object.defineProperty(exports, "FilterVariant", { enumerable: true, get: function () { return components_3.FilterVariant; } });
|
|
53
53
|
Object.defineProperty(exports, "Select", { enumerable: true, get: function () { return components_3.Select; } });
|
|
54
54
|
Object.defineProperty(exports, "TextField", { enumerable: true, get: function () { return components_3.TextField; } });
|
|
55
|
+
Object.defineProperty(exports, "PasswordField", { enumerable: true, get: function () { return components_3.PasswordField; } });
|
|
56
|
+
Object.defineProperty(exports, "PhoneField", { enumerable: true, get: function () { return components_3.PhoneField; } });
|
|
57
|
+
Object.defineProperty(exports, "FormPasswordField", { enumerable: true, get: function () { return components_3.FormPasswordField; } });
|
|
58
|
+
Object.defineProperty(exports, "FormPhoneField", { enumerable: true, get: function () { return components_3.FormPhoneField; } });
|
|
55
59
|
Object.defineProperty(exports, "FormSelect", { enumerable: true, get: function () { return components_3.FormSelect; } });
|
|
56
60
|
Object.defineProperty(exports, "FilterModal", { enumerable: true, get: function () { return components_3.FilterModal; } });
|
|
57
61
|
Object.defineProperty(exports, "FormCheckBox", { enumerable: true, get: function () { return components_3.FormCheckBox; } });
|
|
@@ -66,6 +70,14 @@ Object.defineProperty(exports, "EmptyState", { enumerable: true, get: function (
|
|
|
66
70
|
Object.defineProperty(exports, "ThreeDotMenu", { enumerable: true, get: function () { return components_3.ThreeDotMenu; } });
|
|
67
71
|
var components_4 = require("./components");
|
|
68
72
|
Object.defineProperty(exports, "DropdownButton", { enumerable: true, get: function () { return components_4.DropdownButton; } });
|
|
73
|
+
Object.defineProperty(exports, "FormDocumentField", { enumerable: true, get: function () { return components_4.FormDocumentField; } });
|
|
74
|
+
Object.defineProperty(exports, "DocumentType", { enumerable: true, get: function () { return components_4.DocumentType; } });
|
|
75
|
+
Object.defineProperty(exports, "DOCUMENT_TYPE_MASKS", { enumerable: true, get: function () { return components_4.DOCUMENT_TYPE_MASKS; } });
|
|
76
|
+
Object.defineProperty(exports, "DOCUMENT_TYPE_ORDER", { enumerable: true, get: function () { return components_4.DOCUMENT_TYPE_ORDER; } });
|
|
77
|
+
Object.defineProperty(exports, "DOCUMENT_TYPE_PATTERNS", { enumerable: true, get: function () { return components_4.DOCUMENT_TYPE_PATTERNS; } });
|
|
78
|
+
Object.defineProperty(exports, "documentValidationSchema", { enumerable: true, get: function () { return components_4.documentValidationSchema; } });
|
|
79
|
+
Object.defineProperty(exports, "isValidDocumentNumber", { enumerable: true, get: function () { return components_4.isValidDocumentNumber; } });
|
|
80
|
+
Object.defineProperty(exports, "stripDocumentNumber", { enumerable: true, get: function () { return components_4.stripDocumentNumber; } });
|
|
69
81
|
var containers_1 = require("./containers");
|
|
70
82
|
Object.defineProperty(exports, "FormControl", { enumerable: true, get: function () { return containers_1.FormControl; } });
|
|
71
83
|
Object.defineProperty(exports, "FormInputWidth", { enumerable: true, get: function () { return containers_1.FormInputWidth; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AACa,QAAA,gBAAgB,GAAG,IAAI,CAAC;AAGrC,2CAAyC;AAAhC,uGAAA,SAAS,OAAA;AAUlB,2CAqCsB;AApCpB,mGAAA,KAAK,OAAA;AACL,0GAAA,YAAY,OAAA;AACZ,uGAAA,SAAS,OAAA;AACT,uGAAA,SAAS,OAAA;AACT,wGAAA,UAAU,OAAA;AACV,sGAAA,QAAQ,OAAA;AACR,oGAAA,MAAM,OAAA;AACN,2GAAA,aAAa,OAAA;AACb,sGAAA,QAAQ,OAAA;AACR,yGAAA,WAAW,OAAA;AACX,6GAAA,eAAe,OAAA;AACf,kGAAA,IAAI,OAAA;AACJ,sGAAA,QAAQ,OAAA;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