@verifiedinc-public/shared-ui-elements 9.5.2 → 9.6.0
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/chart/MetricLastUpdated.mjs +1 -1
- package/dist/components/form/index.d.ts +0 -1
- package/dist/components/index.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/CredentialsDisplay.d.ts +0 -2
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/CredentialsDisplay.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/CredentialsDisplayContext.d.ts +0 -38
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/CredentialsDisplayContext.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/CredentialsDisplayItem.d.ts +0 -13
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/CredentialsDisplayItem.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/CredentialsDisplayItemContext.d.ts +0 -47
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/CredentialsDisplayItemContext.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/components/EditModeButton.d.ts +0 -2
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/components/EditModeButton.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/components/index.d.ts +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/hooks.d.ts +0 -8
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/hooks.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/types.d.ts +0 -67
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/types.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/extractChildrenFromCredentialFieldSet.d.ts +0 -9
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/extractChildrenFromCredentialFieldSet.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/extractTypesFromSchema.d.ts +0 -12
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/extractTypesFromSchema.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/filterRepeatedCredentials.d.ts +0 -7
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/filterRepeatedCredentials.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/findCorrectSchemaProperty.d.ts +0 -7
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/findCorrectSchemaProperty.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/findCredentialsByType.d.ts +0 -8
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/findCredentialsByType.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/getCredentialTypeDisplayInfo.d.ts +0 -8
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/getCredentialTypeDisplayInfo.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/getCredentialValues.d.ts +0 -9
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/getCredentialValues.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/getLastPathName.d.ts +0 -6
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/getLastPathName.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/getParentPath.d.ts +0 -6
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/getParentPath.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/getReferencedSchemaNames.d.ts +0 -8
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/getReferencedSchemaNames.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/hasMandatoryFieldEmpty.d.ts +0 -9
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/hasMandatoryFieldEmpty.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/index.d.ts +0 -19
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/isNewCredentialAgainstInstance.d.ts +0 -9
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/isNewCredentialAgainstInstance.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/isNewCredentialValues.d.ts +0 -6
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/isNewCredentialValues.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/isRequiredCredentialDisplayInfo.d.ts +0 -4
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/isRequiredCredentialDisplayInfo.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/isSomeFieldInputAllowed.d.ts +0 -6
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/isSomeFieldInputAllowed.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/isValidInputCredential.d.ts +0 -13
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/isValidInputCredential.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/makeCredentialDisplayInfoList.d.ts +0 -14
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/makeCredentialDisplayInfoList.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/sortCredentialsBySchema.d.ts +0 -2
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/sortCredentialsBySchema.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/transformToFormObject.d.ts +0 -6
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/transformToFormObject.mjs +0 -1
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/transformToFormSchema.d.ts +0 -15
- package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/transformToFormSchema.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/DataFieldAtomic.d.ts +0 -6
- package/dist/components/form/OneClickForm/components/DataField/DataFieldAtomic.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/DataFieldCheckbox.d.ts +0 -7
- package/dist/components/form/OneClickForm/components/DataField/DataFieldCheckbox.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/DataFieldClearAdornment.d.ts +0 -6
- package/dist/components/form/OneClickForm/components/DataField/DataFieldClearAdornment.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/DataFieldComposite.d.ts +0 -11
- package/dist/components/form/OneClickForm/components/DataField/DataFieldComposite.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/DataFieldDescription.d.ts +0 -1
- package/dist/components/form/OneClickForm/components/DataField/DataFieldDescription.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/DataFieldGroup.d.ts +0 -13
- package/dist/components/form/OneClickForm/components/DataField/DataFieldHeader/HeaderSelect/index.d.ts +0 -2
- package/dist/components/form/OneClickForm/components/DataField/DataFieldHeader/HeaderSelect/index.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/DataFieldHeader/HeaderSelect/styles.d.ts +0 -2
- package/dist/components/form/OneClickForm/components/DataField/DataFieldHeader/HeaderSelect/styles.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/DataFieldHeader/HeaderSelect/utils/getAddressFormat.d.ts +0 -2
- package/dist/components/form/OneClickForm/components/DataField/DataFieldHeader/HeaderSelect/utils/getAddressFormat.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/DataFieldHeader/HeaderSelect/utils/index.d.ts +0 -1
- package/dist/components/form/OneClickForm/components/DataField/DataFieldHeader/HeaderSelect/utils/renderInstance.d.ts +0 -3
- package/dist/components/form/OneClickForm/components/DataField/DataFieldHeader/HeaderSelect/utils/renderInstance.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/DataFieldHeader/index.d.ts +0 -12
- package/dist/components/form/OneClickForm/components/DataField/DataFieldHeader/index.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/DataFieldInputLabel.d.ts +0 -14
- package/dist/components/form/OneClickForm/components/DataField/DataFieldInputLabel.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/DataFieldInputModeHeader.d.ts +0 -11
- package/dist/components/form/OneClickForm/components/DataField/DataFieldLabel.d.ts +0 -6
- package/dist/components/form/OneClickForm/components/DataField/DataFieldLabel.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/DataFieldLabelText.d.ts +0 -11
- package/dist/components/form/OneClickForm/components/DataField/DataFieldLabelText.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/DataFieldLeftSide.d.ts +0 -7
- package/dist/components/form/OneClickForm/components/DataField/DataFieldLeftSide.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/DataFieldLegend.d.ts +0 -14
- package/dist/components/form/OneClickForm/components/DataField/DataFieldLegend.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/DataFieldPaper.d.ts +0 -13
- package/dist/components/form/OneClickForm/components/DataField/DataFieldRootStack.d.ts +0 -8
- package/dist/components/form/OneClickForm/components/DataField/DataFieldRootStack.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/DataFieldStack.d.ts +0 -8
- package/dist/components/form/OneClickForm/components/DataField/DataFieldStack.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/DataFieldValue.d.ts +0 -13
- package/dist/components/form/OneClickForm/components/DataField/DataFieldValue.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/formats/DataFieldImage.d.ts +0 -6
- package/dist/components/form/OneClickForm/components/DataField/formats/DataFieldImage.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/formats/DataFieldInputAddress.d.ts +0 -10
- package/dist/components/form/OneClickForm/components/DataField/formats/DataFieldInputSelect.d.ts +0 -9
- package/dist/components/form/OneClickForm/components/DataField/formats/DataFieldText.d.ts +0 -6
- package/dist/components/form/OneClickForm/components/DataField/formats/DataFieldText.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/formats/index.d.ts +0 -3
- package/dist/components/form/OneClickForm/components/DataField/index.d.ts +0 -10
- package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldAddressInput/autofill.hook.d.ts +0 -10
- package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldAddressInput/autofill.hook.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldAddressInput/hook.d.ts +0 -20
- package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldAddressInput/hook.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldAddressInput/index.d.ts +0 -6
- package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldAddressInput/index.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldAddressInput/types.d.ts +0 -25
- package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldDateInput.d.ts +0 -6
- package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldDateInput.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldImageInput.d.ts +0 -6
- package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldImageInput.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldPhoneInput.d.ts +0 -2
- package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldPhoneInput.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldSSNInput.d.ts +0 -6
- package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldSSNInput.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldSelectInput.d.ts +0 -5
- package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldSelectInput.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldTextInput.d.ts +0 -5
- package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldTextInput.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/inputs/index.d.ts +0 -7
- package/dist/components/form/OneClickForm/components/DataField/types.d.ts +0 -19
- package/dist/components/form/OneClickForm/components/DataField/types.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/utils/defaults.d.ts +0 -4
- package/dist/components/form/OneClickForm/components/DataField/utils/defaults.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/utils/getAutoCompleteAttributeValue.d.ts +0 -6
- package/dist/components/form/OneClickForm/components/DataField/utils/getAutoCompleteAttributeValue.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/utils/getCredentialLabel.d.ts +0 -7
- package/dist/components/form/OneClickForm/components/DataField/utils/getCredentialLabel.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/utils/getCredentialLabelInput.d.ts +0 -7
- package/dist/components/form/OneClickForm/components/DataField/utils/getCredentialLabelInput.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/utils/getCredentialSeparator.d.ts +0 -1
- package/dist/components/form/OneClickForm/components/DataField/utils/getCredentialSeparator.mjs +0 -1
- package/dist/components/form/OneClickForm/components/DataField/utils/hasSomeRequiredEmptyCredential.d.ts +0 -2
- package/dist/components/form/OneClickForm/components/DataField/utils/index.d.ts +0 -5
- package/dist/components/form/OneClickForm/components/shared/CountrySelector.d.ts +0 -10
- package/dist/components/form/OneClickForm/components/shared/DefaultInput.d.ts +0 -6
- package/dist/components/form/OneClickForm/components/shared/IMaskInput.d.ts +0 -15
- package/dist/components/form/OneClickForm/components/shared/Image.d.ts +0 -16
- package/dist/components/form/OneClickForm/components/shared/Image.mjs +0 -1
- package/dist/components/form/OneClickForm/components/shared/ImageEncoded.d.ts +0 -14
- package/dist/components/form/OneClickForm/components/shared/ImageEncoded.mjs +0 -1
- package/dist/components/form/OneClickForm/components/shared/InputMask.d.ts +0 -26
- package/dist/components/form/OneClickForm/components/shared/TextInput.d.ts +0 -15
- package/dist/components/form/OneClickForm/components/shared/TextMaskCustom.d.ts +0 -15
- package/dist/components/form/OneClickForm/components/shared/Textarea.d.ts +0 -14
- package/dist/components/form/OneClickForm/components/shared/When.d.ts +0 -17
- package/dist/components/form/OneClickForm/components/shared/When.mjs +0 -1
- package/dist/components/form/OneClickForm/components/validations/fragments/birthDate.d.ts +0 -6
- package/dist/components/form/OneClickForm/components/validations/fragments/birthDate.mjs +0 -1
- package/dist/components/form/OneClickForm/components/validations/fragments/credentials.d.ts +0 -7
- package/dist/components/form/OneClickForm/components/validations/fragments/credentials.mjs +0 -1
- package/dist/components/form/OneClickForm/components/validations/fragments/email.d.ts +0 -2
- package/dist/components/form/OneClickForm/components/validations/fragments/email.mjs +0 -1
- package/dist/components/form/OneClickForm/components/validations/fragments/otp.d.ts +0 -2
- package/dist/components/form/OneClickForm/components/validations/fragments/phone.d.ts +0 -3
- package/dist/components/form/OneClickForm/components/validations/fragments/uuid.d.ts +0 -2
- package/dist/components/form/OneClickForm/components/validations/schemas/date.schema.d.ts +0 -2
- package/dist/components/form/OneClickForm/components/validations/schemas/date.schema.mjs +0 -1
- package/dist/components/form/OneClickForm/constants/credentialTypes.d.ts +0 -9
- package/dist/components/form/OneClickForm/constants/credentialTypes.mjs +0 -1
- package/dist/components/form/OneClickForm/constants/index.d.ts +0 -1
- package/dist/components/form/OneClickForm/contexts/one-click-form-options.context.d.ts +0 -34
- package/dist/components/form/OneClickForm/contexts/one-click-form-options.context.mjs +0 -1
- package/dist/components/form/OneClickForm/hooks/useCanFillByQueryParam.d.ts +0 -5
- package/dist/components/form/OneClickForm/hooks/useCanFillByQueryParam.mjs +0 -1
- package/dist/components/form/OneClickForm/hooks/useDebounce.d.ts +0 -1
- package/dist/components/form/OneClickForm/hooks/useDebounceCallback.d.ts +0 -46
- package/dist/components/form/OneClickForm/hooks/useDebounceCallback.mjs +0 -1
- package/dist/components/form/OneClickForm/hooks/usePrevious.d.ts +0 -5
- package/dist/components/form/OneClickForm/hooks/useZipCodeLookup.d.ts +0 -11
- package/dist/components/form/OneClickForm/index.d.ts +0 -15
- package/dist/components/form/OneClickForm/index.mjs +0 -1
- package/dist/components/form/OneClickForm/styles/input.d.ts +0 -9
- package/dist/components/form/OneClickForm/styles/input.mjs +0 -1
- package/dist/components/form/OneClickForm/types/display-format.d.ts +0 -12
- package/dist/components/form/OneClickForm/types/display-format.mjs +0 -1
- package/dist/components/form/OneClickForm/types/input-format.d.ts +0 -9
- package/dist/components/form/OneClickForm/types/input-format.mjs +0 -1
- package/dist/components/form/OneClickForm/types/request.d.ts +0 -11
- package/dist/components/form/OneClickForm/utils/calendarDateFormatter.d.ts +0 -6
- package/dist/components/form/OneClickForm/utils/calendarDateFormatter.mjs +0 -1
- package/dist/components/form/OneClickForm/utils/compareCredentialData.d.ts +0 -1
- package/dist/components/form/OneClickForm/utils/compareCredentialData.mjs +0 -1
- package/dist/components/form/OneClickForm/utils/currencyRangeFormatter.d.ts +0 -6
- package/dist/components/form/OneClickForm/utils/currencyRangeFormatter.mjs +0 -1
- package/dist/components/form/OneClickForm/utils/date.d.ts +0 -36
- package/dist/components/form/OneClickForm/utils/date.mjs +0 -1
- package/dist/components/form/OneClickForm/utils/formatCredentialValue.d.ts +0 -8
- package/dist/components/form/OneClickForm/utils/formatCredentialValue.mjs +0 -1
- package/dist/components/form/OneClickForm/utils/image.d.ts +0 -2
- package/dist/components/form/OneClickForm/utils/image.mjs +0 -1
- package/dist/components/form/OneClickForm/utils/isAtomicBySchema.d.ts +0 -1
- package/dist/components/form/OneClickForm/utils/isAtomicBySchema.mjs +0 -1
- package/dist/components/form/OneClickForm/utils/isCompositeBySchema.d.ts +0 -1
- package/dist/components/form/OneClickForm/utils/isCompositeBySchema.mjs +0 -1
- package/dist/components/form/OneClickForm/utils/masks.d.ts +0 -3
- package/dist/components/form/OneClickForm/utils/observers.d.ts +0 -33
- package/dist/components/form/OneClickForm/utils/phone.d.ts +0 -31
- package/dist/components/form/OneClickForm/utils/phone.mjs +0 -1
- package/dist/components/form/OneClickForm/utils/phoneNumberFormatter.d.ts +0 -7
- package/dist/components/form/OneClickForm/utils/phoneNumberFormatter.mjs +0 -1
- package/dist/components/form/OneClickForm/utils/regex.d.ts +0 -1
- package/dist/components/form/OneClickForm/utils/regex.mjs +0 -1
- package/dist/components/form/OneClickForm/utils/ssnFormatter.d.ts +0 -7
- package/dist/components/form/OneClickForm/utils/ssnFormatter.mjs +0 -1
- package/dist/components/form/OneClickForm/utils/string.d.ts +0 -14
- package/dist/components/form/OneClickForm/utils/string.mjs +0 -1
- package/dist/components/form/OneClickForm/utils/when.d.ts +0 -10
- package/dist/components/form/OneClickForm/utils/when.mjs +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";import{memo as b}from"react";import x from"lodash/isEqual";import{Box as d,Autocomplete as C,Typography as I,TextField as v,useTheme as D,Paper as P}from"@mui/material";import m from"@mui/material/Unstable_Grid2";import{inputStyle as V}from"../../../../styles/input.mjs";import{useCredentialsDisplayItem as j}from"../../../CredentialsDisplay/CredentialsDisplayItemContext.mjs";import{useCredentialsDisplayItemValid as w}from"../../../CredentialsDisplay/hooks.mjs";import{DataFieldLabelText as A}from"../../DataFieldLabelText.mjs";import{DataFieldClearAdornment as O}from"../../DataFieldClearAdornment.mjs";import{useDataFieldAddressInput as T}from"./hook.mjs";import{jsx as i,jsxs as F}from"react/jsx-runtime";import{getAutoCompleteAttributeValue as k}from"../../utils/getAutoCompleteAttributeValue.mjs";function S(l){const o=D();return F(P,{...l,children:[l.children,i(d,{sx:a=>({display:"flex",justifyContent:"flex-end",p:1,pt:"1px",...a.applyStyles("dark",{opacity:.8})}),children:i("img",{src:o.palette.mode==="dark"?"https://maps.gstatic.com/mapfiles/api-3/images/powered-by-google-on-non-white3_hdpi.png":"https://maps.gstatic.com/mapfiles/api-3/images/powered-by-google-on-white3_hdpi.png",alt:"",width:"120",height:"14"})})]})}const q=b(function({credentialsDisplayItem:l}){const{value:o,inputValue:a,suggestions:c,isPending:r,isFetchingPlace:s,error:p,disabled:n,handleInputChange:u,handleOptionChange:f,handleClear:h}=T({credentialsDisplayItem:l});return i(d,{width:"100%",children:i(C,{disableClearable:!0,freeSolo:!0,isOptionEqualToValue:(e,t)=>e?.value===t?.value,getOptionLabel:e=>typeof e=="string"?e:e?.title,filterOptions:e=>e,options:r?[]:c.map(e=>({title:e.placePrediction.text.text??"",value:e.placePrediction.place??""})),autoComplete:!0,includeInputInList:!0,filterSelectedOptions:!0,noOptionsText:"No locations",value:o,inputValue:a,loading:r||s,disabled:s||n,onChange:(e,t)=>{e.preventDefault(),e.stopPropagation(),!n&&(!t||typeof t=="string"||f(t).catch(console.error))},onInputChange:(e,t)=>{u(t)},renderInput:e=>{var t;return i(v,{id:e.id,disabled:e.disabled,...V,label:i(A,{}),error:!!p,helperText:p||((t=l.credentialDisplayInfo.credentialRequest)==null?void 0:t.description),inputProps:{...e.inputProps,tabIndex:0,autoCapitalize:"off",autoComplete:k(l.objectController.field.value.type)},InputProps:{...e.InputProps,disableInjectingGlobalStyles:!0,endAdornment:i(O,{onClick:()=>{h()},disabled:n})},fullWidth:!0,multiline:!0})},renderOption:(e,t)=>{const{key:g,...y}=e;return i("li",{...y,children:i(m,{container:!0,sx:{alignItems:"flex-start"},children:i(m,{sx:{width:"100%",wordWrap:"break-word"},children:i(I,{variant:"body2",sx:{color:"text.secondary",textAlign:"left"},children:t?.title})})})},g)},PaperComponent:S})})},(l,o)=>x({itemValid:l.itemValid,objectController:l.credentialsDisplayItem.objectController},{itemValid:o.itemValid,objectController:o.credentialsDisplayItem.objectController}));function L(){const l=j(),o=w();return i(q,{credentialsDisplayItem:l,itemValid:o})}export{L as DataFieldAddressInput};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export type Option = {
|
|
2
|
-
title: string;
|
|
3
|
-
value: string;
|
|
4
|
-
};
|
|
5
|
-
export type Address = {
|
|
6
|
-
line1?: string;
|
|
7
|
-
city?: string;
|
|
8
|
-
state?: string;
|
|
9
|
-
zipCode?: string;
|
|
10
|
-
country: string;
|
|
11
|
-
};
|
|
12
|
-
export type PlaceAddressComponent = {
|
|
13
|
-
types: string[];
|
|
14
|
-
longText: string;
|
|
15
|
-
shortText: string;
|
|
16
|
-
languageCode: string;
|
|
17
|
-
};
|
|
18
|
-
export type PlaceSuggestion = {
|
|
19
|
-
placePrediction: {
|
|
20
|
-
text: {
|
|
21
|
-
text: string;
|
|
22
|
-
};
|
|
23
|
-
place: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldDateInput.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";import{memo as F,useState as U}from"react";import{Box as Y}from"@mui/material";import O from"lodash/isEqual";import{inputStyle as B}from"../../../styles/input.mjs";import{formatDateMMDDYYYY as M}from"../../../utils/date.mjs";import{useOneClickFormOptions as N}from"../../../contexts/one-click-form-options.context.mjs";import{USDateSchema as P}from"../../validations/schemas/date.schema.mjs";import{useCredentialsDisplayItemValid as A}from"../../CredentialsDisplay/hooks.mjs";import{useCredentialsDisplayItem as E}from"../../CredentialsDisplay/CredentialsDisplayItemContext.mjs";import{DataFieldLabelText as q}from"../DataFieldLabelText.mjs";import{DataFieldClearAdornment as L}from"../DataFieldClearAdornment.mjs";import{jsx as a}from"react/jsx-runtime";import{credentialTypes as R}from"../../../constants/credentialTypes.mjs";import{DateInput as z}from"../../../../DateInput/index.mjs";const G=F(function({credentialsDisplayItem:e,itemValid:t}){var s;const{options:{features:c}}=N(),{objectController:r,credentialDisplayInfo:u,handleChangeValueCredential:o}=e,{description:m}=u.credentialRequest??{},{isValid:d}=t,n=(s=r.fieldState.error)==null?void 0:s.message,f=n&&n.length>0?n:m,[D,p]=U(r.field.value.value?M(r.field.value.value):""),C=r.field.value.type===R.BirthDateCredential,l=new Date,b=1900,y=1,h=1,g=C?l.getUTCFullYear()-18:l.getUTCFullYear(),I=l.getUTCMonth()+1,v=l.getUTCDate(),V=new Date(b,y-1,h),k=new Date(g,I-1,v);return a(Y,{width:"100%",children:a(z,{...B,autoComplete:"bday",autoCorrect:"off",label:a(q,{}),value:D,error:!d,helperText:d?m:f,placeholder:"__/__/____",onChange:i=>{if(e.isDisabled)return;const T=P.safeParse(i),_=i.replace(/[^0-9]/g,"");if(p(i),_.length<=0)return o("");if(!T.success)return o("NaN");const[S,j,w]=i.split("/").map(Number),x=Date.UTC(w,S-1,j,12,0,0,0);o(String(x))},InputProps:{endAdornment:a(L,{onClick:()=>{e.isDisabled||p("")}})},pickerInputOverflow:!0,pickerDefaultSelectedDate:new Date("08/01/1989"),pickerClickOutsideBoundaryElement:c.datePickerClickOutsideBoundaryElement,minDate:V,maxDate:k,disabled:e.isDisabled})})},(e,t)=>O({itemValid:e.itemValid,objectController:e.credentialsDisplayItem.objectController},{itemValid:t.itemValid,objectController:t.credentialsDisplayItem.objectController}));function H(){const e=E(),t=A();return a(G,{credentialsDisplayItem:e,itemValid:t})}export{H as DataFieldDateInput};
|
package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldImageInput.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";import{memo as h,useRef as D}from"react";import{Stack as o,Box as I}from"@mui/material";import g from"lodash/isEqual";import{Button as v}from"../../../../../Button/index.mjs";import{useOneClickFormOptions as C}from"../../../contexts/one-click-form-options.context.mjs";import{handleLoadImageToBase64FromFile as x}from"../../../utils/image.mjs";import{When as c}from"../../shared/When.mjs";import{ImageEncoded as y}from"../../shared/ImageEncoded.mjs";import{useCredentialsDisplayItemValid as V}from"../../CredentialsDisplay/hooks.mjs";import{useCredentialsDisplayItem as j}from"../../CredentialsDisplay/CredentialsDisplayItemContext.mjs";import{jsx as i,jsxs as r}from"react/jsx-runtime";import{DataFieldInputLabel as F}from"../DataFieldInputLabel.mjs";import{DataFieldLabelText as k}from"../DataFieldLabelText.mjs";import{DataFieldLegend as w}from"../DataFieldLegend.mjs";const L=h(function({credentialsDisplayItem:e,itemValid:t}){var s,n;const{options:p}=C(),{objectController:u,credentialDisplayInfo:l,handleChangeValueCredential:f}=e,{isValid:b}=t,d=D(null);return r(o,{direction:"column",width:"100%",sx:{position:"relative",flex:1},children:[i(F,{label:i(k,{}),sx:{mt:-1.5}}),r(o,{sx:{position:"relative",borderRadius:1,overflow:"hidden"},children:[i(y,{servicePath:p.servicePaths.credentialImagePath,src:u.field.value.value,sx:{mx:"auto"}}),r(o,{direction:"column",alignItems:"center",justifyContent:"center",sx:{position:"absolute",inset:0,width:"100%",height:"100%",backgroundColor:e.isDisabled?"transparent":"rgba(0,0,0,0.6)"},children:[i(I,{ref:d,component:"input",type:"file",accept:"image/*",onChange:a=>{(async()=>{if(e.isDisabled)return;const m=await x(a);m&&f(m)})()},sx:{display:"none",visibility:"hidden"},disabled:e.isDisabled}),!e.isDisabled&&i(v,{color:"primary",type:"button",onClick:()=>{var a;e.isDisabled||(a=d.current)==null||a.click()},tabIndex:0,disabled:e.isDisabled,children:l.value?"Change Image":"Add Image"})]})]}),i(c,{value:b,children:i(c,{value:(s=l.credentialRequest)==null?void 0:s.description,children:i(w,{children:(n=l.credentialRequest)==null?void 0:n.description})})})]})},(e,t)=>g({itemValid:e.itemValid,objectController:e.credentialsDisplayItem.objectController},{itemValid:t.itemValid,objectController:t.credentialsDisplayItem.objectController}));function R(){const e=j(),t=V();return i(L,{credentialsDisplayItem:e,itemValid:t})}export{R as DataFieldImageInput};
|
package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldPhoneInput.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";import{memo as p,useEffect as h}from"react";import{Box as f}from"@mui/material";import C from"lodash/isEqual";import{PhoneInput as D}from"../../../../PhoneInput.mjs";import{useCredentialsDisplayItemValid as I}from"../../CredentialsDisplay/hooks.mjs";import{useCredentialsDisplayItem as V}from"../../CredentialsDisplay/CredentialsDisplayItemContext.mjs";import{jsx as l}from"react/jsx-runtime";import{DataFieldClearAdornment as b}from"../DataFieldClearAdornment.mjs";import{DataFieldLabelText as v}from"../DataFieldLabelText.mjs";const y=p(function({credentialsDisplayItem:e,itemValid:t}){var r;const{objectController:n,credentialDisplayInfo:s,handleChangeValueCredential:o}=e,{isValid:d}=t,m=n.field.value.value,c=a=>{o("")};return h(()=>{const a=new URL(window.location.href),i=new URLSearchParams(a.searchParams).get("phone");if(i){const u=setTimeout(()=>{o(i,{shouldValidate:!1})},10);return()=>clearInterval(u)}},[]),l(f,{width:"100%",children:l(D,{label:l(v,{}),size:"small",onChange:a=>{e.isDisabled||o(a,{shouldValidate:a.length>3})},helperText:(r=s.credentialRequest)==null?void 0:r.description,error:!d,handleChangeCountry:c,value:m,shouldHaveClearButton:!0,shouldHaveSelectCountryButton:!1,InputProps:{endAdornment:l(b,{})},disabled:e.isDisabled})})},(e,t)=>C({itemValid:e.itemValid,objectController:e.credentialsDisplayItem.objectController},{itemValid:t.itemValid,objectController:t.credentialsDisplayItem.objectController}));function g(){const e=V(),t=I();return l(y,{credentialsDisplayItem:e,itemValid:t})}export{g as DataFieldPhoneInput};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";import{memo as p}from"react";import{Box as u}from"@mui/material";import c from"lodash/isEqual";import{SSNInput as f}from"../../../../SSNInput.mjs";import{inputStyle as C}from"../../../styles/input.mjs";import{useCredentialsDisplayItemValid as D}from"../../CredentialsDisplay/hooks.mjs";import{useCredentialsDisplayItem as b}from"../../CredentialsDisplay/CredentialsDisplayItemContext.mjs";import{DataFieldLabelText as I}from"../DataFieldLabelText.mjs";import{DataFieldClearAdornment as V}from"../DataFieldClearAdornment.mjs";import{jsx as l}from"react/jsx-runtime";const h=p(function({credentialsDisplayItem:e,itemValid:t}){var a;const{objectController:o,credentialDisplayInfo:n,handleChangeValueCredential:s}=e,{isValid:m}=t,d=o.field.value.value,i=r=>{e.isDisabled||s(r.target.value,{shouldValidate:r.target.value.length>0})};return l(u,{width:"100%",children:l(f,{...C,label:l(I,{}),value:d,onChange:i,error:!m,helperText:(a=n.credentialRequest)==null?void 0:a.description,InputProps:{endAdornment:l(V,{onClick:()=>{i({target:{value:""}})}})},disabled:e.isDisabled})})},(e,t)=>c({itemValid:e.itemValid,objectController:e.credentialsDisplayItem.objectController},{itemValid:t.itemValid,objectController:t.credentialsDisplayItem.objectController}));function v(){const e=b(),t=D();return l(h,{credentialsDisplayItem:e,itemValid:t})}export{v as DataFieldSSNInput};
|
package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldSelectInput.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";import{useMemo as d,useEffect as c}from"react";import{Box as R,Autocomplete as S,TextField as V}from"@mui/material";import{inputStyle as q}from"../../../styles/input.mjs";import{useCanFillByQueryParam as w}from"../../../hooks/useCanFillByQueryParam.mjs";import{useCredentialsDisplay as L}from"../../CredentialsDisplay/CredentialsDisplayContext.mjs";import{useCredentialsDisplayItemValid as j}from"../../CredentialsDisplay/hooks.mjs";import{useCredentialsDisplayItem as B}from"../../CredentialsDisplay/CredentialsDisplayItemContext.mjs";import{DataFieldLabelText as E}from"../DataFieldLabelText.mjs";import{jsx as s}from"react/jsx-runtime";import{findCorrectSchemaProperty as U}from"../../CredentialsDisplay/utils/findCorrectSchemaProperty.mjs";import{isRequiredCredentialDisplayInfo as A}from"../../CredentialsDisplay/utils/isRequiredCredentialDisplayInfo.mjs";import{getLastPathName as D}from"../../CredentialsDisplay/utils/getLastPathName.mjs";function N(){var h,b,y;const{schema:g}=L(),p=B(),x=w(),{objectController:i,credentialDisplayInfo:m,parentFieldSet:I,handleChangeValueCredential:f,handleClearValueCredential:C}=p,{isValid:T}=j(),a=U(m.schema,g,I),t=d(()=>{var e;return(((e=a?.input)==null?void 0:e.options)||[]).map(l=>typeof l=="string"?{label:l,value:l}:l)},[(h=a?.input)==null?void 0:h.options]),v=d(()=>t.map(e=>({label:e.label,id:e.value})),[t]),o=d(()=>{var e,l;if((e=a?.input)!=null&&e.default&&A({mandatory:(l=m.credentialRequest)==null?void 0:l.mandatory})){const n=v.find(u=>{var r;return u.id===((r=a?.input)==null?void 0:r.default)});if(n)return{label:n.label,id:n.id}}},[(b=a?.input)==null?void 0:b.default,v]),F=d(()=>{const e=t.find(l=>l.value===i.field.value.value);return e!=null&&e.value?{label:e.label,id:e.value}:null},[t,i.field.value.value]),P={...q,label:s(E,{}),error:!T,helperText:(y=m.credentialRequest)==null?void 0:y.description,inputProps:{tabIndex:0},fullWidth:!0};return c(()=>{!t.some(e=>e.value===i.field.value.value)&&i.field.value.value&&C()},[i.field.value.value,t]),c(()=>{o!=null&&o.id&&f(o.id)},[]),c(()=>{const e=D(i.field.name);if(!x(e))return;const l=new URL(window.location.href),n=new URLSearchParams(l.searchParams).get(D(i.field.name));if(n&&!i.field.value.value){const u=t.find(r=>r.value===n||r.label===n);if(u){const r=setTimeout(()=>{f(u.value)},10);return()=>clearTimeout(r)}}},[]),s(R,{width:"100%",children:s(S,{disablePortal:!0,autoHighlight:!0,defaultValue:o,options:v,isOptionEqualToValue:(e,l)=>e?.id===l?.id,value:F,onChange:(e,l)=>{if(!p.isDisabled){if(!l){C();return}f(l?.id??"")}},renderInput:e=>s(V,{...e,...P,inputProps:{...e.inputProps,...P.inputProps}}),disabled:p.isDisabled})})}export{N as DataFieldSelectInput};
|
package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldTextInput.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";import{memo as C,useRef as h,useEffect as b}from"react";import{Box as D,TextField as V}from"@mui/material";import v from"lodash/isEqual";import{inputStyle as y}from"../../../styles/input.mjs";import{getLastPathName as s}from"../../CredentialsDisplay/utils/getLastPathName.mjs";import{useCanFillByQueryParam as I}from"../../../hooks/useCanFillByQueryParam.mjs";import{useCredentialsDisplayItemValid as x}from"../../CredentialsDisplay/hooks.mjs";import{useCredentialsDisplayItem as g}from"../../CredentialsDisplay/CredentialsDisplayItemContext.mjs";import{DataFieldLabelText as j}from"../DataFieldLabelText.mjs";import{DataFieldClearAdornment as P}from"../DataFieldClearAdornment.mjs";import{jsx as r}from"react/jsx-runtime";import{getAutoCompleteAttributeValue as w}from"../utils/getAutoCompleteAttributeValue.mjs";const F=C(function({credentialsDisplayItem:e,itemValid:t}){var n;const a=h(null),d=I(),{objectController:l,handleChangeValueCredential:m,handleChangeDebouncedValueCredential:u}=e;b(()=>{const i=s(l.field.name);if(!d(i))return;const p=new URL(window.location.href),o=new URLSearchParams(p.searchParams).get(s(l.field.name));if(o&&!l.field.value.value){const f=setTimeout(()=>{m(o,{shouldValidate:!1}),a.current&&(a.current.value=o)},10);return()=>clearInterval(f)}},[]);const c={inputRef:a,...y,autoComplete:w(l.field.value.type),label:r(j,{}),defaultValue:l.field.value.value||"",onChange:i=>{e.isDisabled||u(i.target.value)},error:!t.isValid,helperText:(n=e.credentialDisplayInfo.credentialRequest)==null?void 0:n.description,InputProps:{placeholder:"",endAdornment:r(P,{onClick:()=>{a.current&&(a.current.value="")}})},inputProps:{tabIndex:0,autoCorrect:"off",autoCapitalize:"off"},fullWidth:!0,disabled:e.isDisabled};return r(D,{width:"100%",children:r(V,{...c})})},(e,t)=>v({itemValid:e.itemValid,objectController:e.credentialsDisplayItem.objectController},{itemValid:t.itemValid,objectController:t.credentialsDisplayItem.objectController}));function T(){const e=g(),t=x();return r(F,{credentialsDisplayItem:e,itemValid:t})}export{T as DataFieldTextInput};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from './DataFieldTextInput';
|
|
2
|
-
export * from './DataFieldSelectInput';
|
|
3
|
-
export * from './DataFieldPhoneInput';
|
|
4
|
-
export * from './DataFieldDateInput';
|
|
5
|
-
export * from './DataFieldSSNInput';
|
|
6
|
-
export * from './DataFieldImageInput';
|
|
7
|
-
export * from './DataFieldAddressInput';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export type Address = {
|
|
2
|
-
line1?: string;
|
|
3
|
-
city?: string;
|
|
4
|
-
state?: string;
|
|
5
|
-
country?: string;
|
|
6
|
-
postcode?: string;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Possible input format that user can provide.
|
|
10
|
-
*/
|
|
11
|
-
export declare enum InputFormatEnum {
|
|
12
|
-
Text = "Text",
|
|
13
|
-
Date = "Date",
|
|
14
|
-
Select = "Select",
|
|
15
|
-
Email = "Email",
|
|
16
|
-
Phone = "Phone",
|
|
17
|
-
SSN = "SSN",
|
|
18
|
-
Image = "Image"
|
|
19
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var t=(a=>(a.Text="Text",a.Date="Date",a.Select="Select",a.Email="Email",a.Phone="Phone",a.SSN="SSN",a.Image="Image",a))(t||{});export{t as InputFormatEnum};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=150;export{o as DEBOUNCE_MS};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns the autocomplete attribute value based on the type of the field.
|
|
3
|
-
* @param type The type of the field.
|
|
4
|
-
* @returns The autocomplete attribute value.
|
|
5
|
-
*/
|
|
6
|
-
export declare function getAutoCompleteAttributeValue(type: string): "off" | "tel" | "email" | "address-line2" | "family-name" | "given-name" | "street-address address-level2 address-level1 postal-code";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function a(e){return e==="FirstNameCredential"?"given-name":e==="LastNameCredential"?"family-name":e==="EmailCredential"?"email":e==="PhoneCredential"?"tel":e==="AddressCredential"?"street-address address-level2 address-level1 postal-code":e==="Line2Credential"?"address-line2":"off"}export{a as getAutoCompleteAttributeValue};
|
package/dist/components/form/OneClickForm/components/DataField/utils/getCredentialLabel.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Gets the credential label based on the type.
|
|
3
|
-
* @param label The credential label
|
|
4
|
-
* @param type The credential type
|
|
5
|
-
* @returns The credential label
|
|
6
|
-
*/
|
|
7
|
-
export declare function getCredentialLabel(label: string | undefined, type: string): string | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";import{when as t}from"../../../utils/when.mjs";function o(e,n){return t(n,{SsnCredential:()=>"SSN",GovernmentIdDocumentImageCredential:()=>"Gov. Doc ID",else:()=>e})}export{o as getCredentialLabel};
|
package/dist/components/form/OneClickForm/components/DataField/utils/getCredentialLabelInput.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Gets the credential label based on the type.
|
|
3
|
-
* @param label The credential label
|
|
4
|
-
* @param type The credential type
|
|
5
|
-
* @returns The credential label
|
|
6
|
-
*/
|
|
7
|
-
export declare function getCredentialLabelInput(label: string | undefined, type: string): string | undefined;
|
package/dist/components/form/OneClickForm/components/DataField/utils/getCredentialLabelInput.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";import{when as t}from"../../../utils/when.mjs";function i(e,n){return t(n,{Line2Credential:()=>"Line 2",else:()=>e})}export{i as getCredentialLabelInput};
|
package/dist/components/form/OneClickForm/components/DataField/utils/getCredentialSeparator.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getCredentialSeparator: (type: string | undefined) => string | undefined;
|
package/dist/components/form/OneClickForm/components/DataField/utils/getCredentialSeparator.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";import{when as r}from"../../../utils/when.mjs";const t=e=>r(e,{AddressCredential:()=>", ",EmployerCredential:()=>"; ",else:()=>" "});export{t as getCredentialSeparator};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type CountrySelectorProps = {
|
|
2
|
-
value: string;
|
|
3
|
-
onChange(value: string): void;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* Component that renders and allows to manage the desired phone country format.
|
|
7
|
-
* @constructor
|
|
8
|
-
*/
|
|
9
|
-
export default function CountrySelector(props: Readonly<CountrySelectorProps>): import("react").JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type ChangeEvent = (event: {
|
|
2
|
-
target: {
|
|
3
|
-
name: string;
|
|
4
|
-
value: string;
|
|
5
|
-
};
|
|
6
|
-
}, nativeEvent?: InputEvent) => void;
|
|
7
|
-
interface InputMaskProps {
|
|
8
|
-
onChange: ChangeEvent;
|
|
9
|
-
name: string;
|
|
10
|
-
mask: string;
|
|
11
|
-
definitions?: Record<string, RegExp>;
|
|
12
|
-
useOnComplete?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare const IMaskInput: import('react').ForwardRefExoticComponent<InputMaskProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
15
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { BoxProps } from '@mui/material';
|
|
3
|
-
export interface ImageProps extends BoxProps {
|
|
4
|
-
src: string;
|
|
5
|
-
alt: string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Displays an image.
|
|
9
|
-
*
|
|
10
|
-
* Wraps an HTML `img` element with MUI's `Box` component
|
|
11
|
-
* so that styles can easily be set (including leveraging our theme) with the `sx` prop.
|
|
12
|
-
*
|
|
13
|
-
* As recommended by the MUI docs https://mui.com/system/basics/
|
|
14
|
-
*/
|
|
15
|
-
declare const Image: FC<ImageProps>;
|
|
16
|
-
export default Image;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";import{Box as r}from"@mui/material";import{jsx as s}from"react/jsx-runtime";const m=({src:o,alt:t,...a})=>s(r,{src:o,alt:t,...a,component:"img"});export{m as default};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SxProps } from '@mui/material';
|
|
2
|
-
type ImageEncodedProps = {
|
|
3
|
-
servicePath: string;
|
|
4
|
-
src: string;
|
|
5
|
-
alt?: string;
|
|
6
|
-
sx?: SxProps;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Image component that decodes the same by extracting our
|
|
10
|
-
* @param props
|
|
11
|
-
* @constructor
|
|
12
|
-
*/
|
|
13
|
-
export declare function ImageEncoded(props: ImageEncodedProps): import("react").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";import{Stack as d,Box as l,Skeleton as m}from"@mui/material";import{Image as u}from"@mui/icons-material";import{useQuery as h}from"@tanstack/react-query";import{When as s}from"./When.mjs";import f from"./Image.mjs";import{jsxs as x,jsx as a}from"react/jsx-runtime";function g(r){const c=e=>`/${r.servicePath}?query=${encodeURIComponent(e)}`,{data:t}=h({queryKey:[r.src],queryFn:async()=>{if(!r.src)return null;if(r.src.includes("data:image/"))return r.src;const e=await fetch(c(r.src)),{data:i}=await e.json();if(!i)throw new Error(`Image not found. source: ${r.src}`);return i},enabled:!!r.src,retry:!0}),o={alignSelf:"flex-start",maxWidth:"100%"},n={...o,width:"100%",aspectRatio:1};return x(d,{sx:r.sx,children:[a(s,{value:!t&&r.src,children:a(l,{className:"image-encoded-skeleton-container",sx:n,children:a(m,{variant:"rounded",width:"100%",height:"100%"})})}),a(s,{value:!t&&!r.src,children:a(u,{sx:{...n,height:"100%",fontSize:void 0,color:"grey.300"}})}),a(s,{value:t,children:e=>a(f,{src:e,alt:r.alt??"",sx:o})})]})}export{g as ImageEncoded};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ChangeEventHandler, ReactNode } from 'react';
|
|
2
|
-
type Selection = {
|
|
3
|
-
start: string;
|
|
4
|
-
end: string;
|
|
5
|
-
};
|
|
6
|
-
type State = {
|
|
7
|
-
value: string;
|
|
8
|
-
selection: Selection;
|
|
9
|
-
};
|
|
10
|
-
type BeforeMaskedStateChangeOptions = {
|
|
11
|
-
previousState: State;
|
|
12
|
-
currentState: State;
|
|
13
|
-
nextState: State;
|
|
14
|
-
};
|
|
15
|
-
type InputMaskProps = {
|
|
16
|
-
children: ReactNode;
|
|
17
|
-
mask: string | (RegExp | string)[];
|
|
18
|
-
value: string;
|
|
19
|
-
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
20
|
-
beforeMaskedStateChange?: (options: BeforeMaskedStateChangeOptions) => void;
|
|
21
|
-
maskPlaceholder?: string | null;
|
|
22
|
-
alwaysShowMask?: boolean;
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
};
|
|
25
|
-
export declare function InputMask(props: Readonly<InputMaskProps>): import("react").JSX.Element;
|
|
26
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { TextFieldProps } from '@mui/material';
|
|
3
|
-
/**
|
|
4
|
-
* A somewhat generic input for text
|
|
5
|
-
*
|
|
6
|
-
* TextInput is an abstraction over the MUI TextField component
|
|
7
|
-
* encapsulating props shared by inputs of this type.
|
|
8
|
-
* See the TextField component docs for additional props, options, etc. https://mui.com/components/text-fields/
|
|
9
|
-
*
|
|
10
|
-
* @param {TextFieldProps} props TextInput takes the same props as the MUI TextField component
|
|
11
|
-
* with a default values for type ('text') and id and label defaulting to the value of the name prop
|
|
12
|
-
* and the name prop (capitalized)
|
|
13
|
-
*/
|
|
14
|
-
declare const TextInput: FC<TextFieldProps>;
|
|
15
|
-
export default TextInput;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type ChangeEvent = (event: {
|
|
2
|
-
target: {
|
|
3
|
-
name: string;
|
|
4
|
-
value: string;
|
|
5
|
-
};
|
|
6
|
-
}, nativeEvent?: InputEvent) => void;
|
|
7
|
-
interface TextMaskCustomProps {
|
|
8
|
-
onChange: ChangeEvent;
|
|
9
|
-
name: string;
|
|
10
|
-
mask: string;
|
|
11
|
-
definitions?: Record<string, RegExp>;
|
|
12
|
-
useOnComplete?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare const TextMaskCustom: import('react').ForwardRefExoticComponent<TextMaskCustomProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
15
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TextFieldProps } from '@mui/material';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
/**
|
|
4
|
-
* A multiline textarea input
|
|
5
|
-
*
|
|
6
|
-
* Textarea is an abstraction over the MUI TextField component
|
|
7
|
-
* encapsulating props shared by inputs of this type
|
|
8
|
-
* see the TextField component docs for additional props, options, etc https://mui.com/components/text-fields/
|
|
9
|
-
*
|
|
10
|
-
* @param {TextFieldProps} props Textarea takes the same props as the MUI TextField component
|
|
11
|
-
* with multiline always set to true.
|
|
12
|
-
*/
|
|
13
|
-
declare const Textarea: FC<TextFieldProps>;
|
|
14
|
-
export default Textarea;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export type WhenProps<T = unknown> = {
|
|
3
|
-
value: T;
|
|
4
|
-
children: ReactNode | ((condition: NonNullable<T>) => ReactNode);
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* This component can be used when using value is truthy to render some other component,
|
|
8
|
-
* instead of using ternary operators you can use this.
|
|
9
|
-
*
|
|
10
|
-
* This is particularly useful when you have nested conditional rendering. Also, it allows for safer falsy conditions
|
|
11
|
-
* while in a ternary you can risk rendering falsy values in the react tree if you use `&&`.
|
|
12
|
-
* @param value
|
|
13
|
-
* @param children Children can be direct ReactNode or a function returning ReactNode, when a function,
|
|
14
|
-
* the value is being passed as param and is guarantee to be non-nullable excluding undefined and null from the inferred type.
|
|
15
|
-
* @constructor
|
|
16
|
-
*/
|
|
17
|
-
export declare function When<T>({ value, children }: WhenProps<T>): import("react").JSX.Element | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";import{jsx as r,Fragment as t}from"react/jsx-runtime";function i({value:n,children:e}){return n?typeof e=="function"?r(t,{children:e(n)}):r(t,{children:e}):null}export{i as When};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as zod from 'zod';
|
|
2
|
-
export declare const birthDateSchema: zod.ZodEffects<zod.ZodString, string, string>;
|
|
3
|
-
export declare const simpleBirthDateSchema: zod.ZodEffects<zod.ZodString, string, string>;
|
|
4
|
-
export declare const shortenBirthDateSchema: zod.ZodEffects<zod.ZodString, string, string>;
|
|
5
|
-
export declare const minimumDate1900Schema: zod.ZodEffects<zod.ZodString, string, string>;
|
|
6
|
-
export declare const minimumAge18Schema: zod.ZodEffects<zod.ZodString, string, string>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";import*as i from"zod";const a=t=>{const e=new Date,r=new Date("1900-01-01"),n=new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999),s=new Date(t);if(s>=r&&s<=n){const o=Date.parse(String(new Date(t)));return!isNaN(o)}return!1};i.string().refine(t=>/^\d{2}\/\d{2}\/\d{4}$/.test(t)?a(t):!1,"Date of Birth is invalid"),i.string().refine(t=>{if(/^\d{2}\d{2}\d{4}$/.test(t)){const e=`${t.slice(0,2)}/${t.slice(2,4)}/${t.slice(4,8)}`;return a(e)}return!1},"Date of Birth is invalid"),i.string().refine(t=>{if(/^\d{2}\d{2}$/.test(t)){const e=`${t.slice(0,2)}/${t.slice(2,4)}/1970`;return a(e)}return!1},"Date of Birth is invalid");const c=t=>{if(t==="NaN"||t==="")return!1;const e=parseInt(t,10);if(isNaN(e))return!1;const r=new Date(e);if(isNaN(r.getTime()))return!1;const n=Date.UTC(1900,0,1,0,0,0,0);return e>=n},f=t=>{if(t==="NaN"||t==="")return!1;const e=parseInt(t,10);if(isNaN(e))return!1;const r=new Date(e);if(isNaN(r.getTime()))return!1;const n=new Date,s=new Date(Date.UTC(n.getUTCFullYear()-18,n.getUTCMonth(),n.getUTCDate(),23,59,59,999));return r.getTime()<=s.getTime()},u=i.string().refine(t=>/^-?\d+$/.test(t)?c(t):!1,"Date must be from 1900 or later"),D=i.string().refine(t=>/^-?\d+$/.test(t)?f(t):!1,"Must be 18 years or older");export{D as minimumAge18Schema,u as minimumDate1900Schema};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SSNSchema } from '../../../../../../validations/ssn.schema';
|
|
2
|
-
import * as zod from 'zod';
|
|
3
|
-
export { SSNSchema };
|
|
4
|
-
export declare const timestampSchema: zod.ZodEffects<zod.ZodString, string, string>;
|
|
5
|
-
export declare const emailSchema: zod.ZodString;
|
|
6
|
-
export declare const phoneSchema: zod.ZodEffects<zod.ZodString, string, string>;
|
|
7
|
-
export declare const defaultTextSchema: zod.ZodString;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";import*as m from"zod";import{EmailFragmentSchema as e}from"./email.mjs";import{validatePhone as r}from"../../../utils/phone.mjs";const t=m.string().refine(a=>a?!isNaN(Number(a)):!1),i=e,s=m.string().refine(a=>r(a)),o=m.string().min(1);export{o as defaultTextSchema,i as emailSchema,s as phoneSchema,t as timestampSchema};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";import*as a from"zod";const i=a.string().min(1,"Email is required").email("Must be a valid email");export{i as EmailFragmentSchema};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";import*as r from"zod";const a=r.string().refine(t=>{if(/^\d{2}\/\d{2}\/\d{4}$/.test(t)){const e=Date.parse(String(new Date(t)));return!isNaN(e)}return!1},"Date is invalid");export{a as USDateSchema};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const credentialTypes: {
|
|
2
|
-
readonly SSNCredential: "SSNCredential";
|
|
3
|
-
readonly FullNameCredential: "FullNameCredential";
|
|
4
|
-
readonly AddressCredential: "AddressCredential";
|
|
5
|
-
readonly Line2Credential: "Line2Credential";
|
|
6
|
-
readonly PhoneCredential: "PhoneCredential";
|
|
7
|
-
readonly BirthDateCredential: "BirthDateCredential";
|
|
8
|
-
readonly GovernmentIdDocumentImageCredential: "GovernmentIdDocumentImageCredential";
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e={AddressCredential:"AddressCredential",Line2Credential:"Line2Credential",PhoneCredential:"PhoneCredential",BirthDateCredential:"BirthDateCredential"};export{e as credentialTypes};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './credentialTypes';
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ReactElement, ReactNode } from 'react';
|
|
2
|
-
type OneClickOptionFeatures = {
|
|
3
|
-
selectableCredentials?: boolean;
|
|
4
|
-
phoneCredentialWhitelist?: string[];
|
|
5
|
-
phoneCredentialRegexWhitelist?: string;
|
|
6
|
-
/** Array of field names that can be filled by query params. Use '*' to allow all fields. */
|
|
7
|
-
fillEmptyByQueryParam?: string[];
|
|
8
|
-
/** Element that the date picker should be detached from when clicking outside of it. */
|
|
9
|
-
datePickerClickOutsideBoundaryElement?: HTMLElement | null;
|
|
10
|
-
};
|
|
11
|
-
type OneClickOptionServicePaths = {
|
|
12
|
-
credentialImagePath: string;
|
|
13
|
-
googlePlacesAutocompletePlaces?: string;
|
|
14
|
-
googlePlacesGetPlace?: string;
|
|
15
|
-
};
|
|
16
|
-
export type OneClickFormOptions = {
|
|
17
|
-
features: OneClickOptionFeatures;
|
|
18
|
-
servicePaths: OneClickOptionServicePaths;
|
|
19
|
-
};
|
|
20
|
-
type OneClickFormOptionsContext = {
|
|
21
|
-
options: OneClickFormOptions;
|
|
22
|
-
};
|
|
23
|
-
type OneClickFormOptionsProviderProps = {
|
|
24
|
-
children: ReactNode;
|
|
25
|
-
options: OneClickFormOptions;
|
|
26
|
-
};
|
|
27
|
-
export declare function useOneClickFormOptions(): OneClickFormOptionsContext;
|
|
28
|
-
/**
|
|
29
|
-
* Provider for 1-click form that should provide options to be accessed by deep react modules.
|
|
30
|
-
* @param props
|
|
31
|
-
* @constructor
|
|
32
|
-
*/
|
|
33
|
-
export declare function OneClickFormOptionsProvider(props: OneClickFormOptionsProviderProps): ReactElement;
|
|
34
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";import{useContext as r,createContext as n}from"react";import{jsx as s}from"react/jsx-runtime";const o=n(null);function i(){const e=r(o);if(!e)throw new Error("useOneClickFormOptions must be used within a OneClickFormOptionsProvider");return e}function l(e){const{selectableCredentials:t=!0}=e.options.features;return s(o.Provider,{value:{options:{...e.options,features:{...e.options.features,selectableCredentials:t}}},children:e.children})}export{l as OneClickFormOptionsProvider,i as useOneClickFormOptions};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hook to check if a field can be filled by query params based on the fillEmptyByQueryParam option
|
|
3
|
-
* @returns A function that takes a fieldName and returns a boolean indicating if the field can be filled by query params.
|
|
4
|
-
*/
|
|
5
|
-
export declare function useCanFillByQueryParam(): (fieldName: string) => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";import{useOneClickFormOptions as n}from"../contexts/one-click-form-options.context.mjs";function s(){const{options:r}=n(),{fillEmptyByQueryParam:e}=r.features;return i=>e?e.includes("*")||e.includes(i):!1}export{s as useCanFillByQueryParam};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useDebounce<T>(value: T, delay?: number): T;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/** Configuration options for controlling the behavior of the debounced function. */
|
|
2
|
-
type DebounceOptions = {
|
|
3
|
-
/**
|
|
4
|
-
* Determines whether the function should be invoked on the leading edge of the timeout.
|
|
5
|
-
* @default false
|
|
6
|
-
*/
|
|
7
|
-
leading?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Determines whether the function should be invoked on the trailing edge of the timeout.
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
trailing?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* The maximum time the specified function is allowed to be delayed before it is invoked.
|
|
15
|
-
*/
|
|
16
|
-
maxWait?: number;
|
|
17
|
-
};
|
|
18
|
-
/** Functions to manage a debounced callback. */
|
|
19
|
-
type ControlFunctions = {
|
|
20
|
-
/** Cancels pending function invocations. */
|
|
21
|
-
cancel: () => void;
|
|
22
|
-
/** Immediately invokes pending function invocations. */
|
|
23
|
-
flush: () => void;
|
|
24
|
-
/**
|
|
25
|
-
* Checks if there are any pending function invocations.
|
|
26
|
-
* @returns `true` if there are pending invocations, otherwise `false`.
|
|
27
|
-
*/
|
|
28
|
-
isPending: () => boolean;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Represents the state and control functions of a debounced callback.
|
|
32
|
-
* Subsequent calls to the debounced function return the result of the last invocation.
|
|
33
|
-
* Note: If there are no previous invocations, the result will be undefined.
|
|
34
|
-
* Ensure proper handling in your code.
|
|
35
|
-
*/
|
|
36
|
-
export type DebouncedState<T extends (...args: any) => ReturnType<T>> = ((...args: Parameters<T>) => ReturnType<T> | undefined) & ControlFunctions;
|
|
37
|
-
/**
|
|
38
|
-
* Custom hook that creates a debounced version of a callback function.
|
|
39
|
-
* @template T - Type of the original callback function.
|
|
40
|
-
* @param {T} func - The callback function to be debounced.
|
|
41
|
-
* @param {number} delay - The delay in milliseconds before the callback is invoked (default is `500` milliseconds).
|
|
42
|
-
* @param {DebounceOptions} [options] - Options to control the behavior of the debounced function.
|
|
43
|
-
* @returns {DebouncedState<T>} A debounced version of the original callback along with control functions.
|
|
44
|
-
*/
|
|
45
|
-
export declare function useDebounceCallback<T extends (...args: any) => ReturnType<T>>(func: T, delay?: number, options?: DebounceOptions): DebouncedState<T>;
|
|
46
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";import{useRef as l,useMemo as i,useEffect as n}from"react";import o from"lodash/debounce";function m(c,e=500,u){const r=l(),a=i(()=>{const t=o(c,e,u),s=(...f)=>t(...f);return s.cancel=()=>{t.cancel()},s.isPending=()=>!!r.current,s.flush=()=>t.flush(),s},[c,e,u]);return n(()=>{r.current=o(c,e,u)},[c,e,u]),n(()=>()=>{r.current&&r.current.cancel()},[]),a}export{m as useDebounceCallback};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
type Request = {
|
|
2
|
-
zipcode: string;
|
|
3
|
-
};
|
|
4
|
-
type Response = {
|
|
5
|
-
state: string;
|
|
6
|
-
city: string;
|
|
7
|
-
country: string;
|
|
8
|
-
zipcode: string;
|
|
9
|
-
};
|
|
10
|
-
export declare function useZipCodeLookup(): import('@tanstack/react-query').UseMutationResult<Response, Error, Request, unknown>;
|
|
11
|
-
export {};
|