@feathery/react 2.6.8 → 2.8.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/Form/components/{AIExtractionToast/ExtractionItem.d.ts → ActionToast/ToastItem.d.ts} +6 -6
- package/dist/Form/components/ActionToast/ToastItem.d.ts.map +1 -0
- package/dist/Form/components/{AIExtractionToast → ActionToast}/icons.d.ts +7 -7
- package/dist/Form/components/ActionToast/icons.d.ts.map +1 -0
- package/dist/Form/components/ActionToast/index.d.ts +8 -0
- package/dist/Form/components/ActionToast/index.d.ts.map +1 -0
- package/dist/Form/components/{AIExtractionToast → ActionToast}/useAIExtractionToast.d.ts +72 -64
- package/dist/Form/components/ActionToast/useAIExtractionToast.d.ts.map +1 -0
- package/dist/Form/components/ActionToast/useEnvelopeGenerationToast.d.ts +20 -0
- package/dist/Form/components/ActionToast/useEnvelopeGenerationToast.d.ts.map +1 -0
- package/dist/Form/components/DevNavBar.d.ts +1 -1
- package/dist/Form/components/ReactPortal.d.ts +2 -2
- package/dist/Form/definitions.d.ts +40 -40
- package/dist/Form/grid/CalendlyEmbed.d.ts +1 -1
- package/dist/Form/grid/Container/index.d.ts +19 -19
- package/dist/Form/grid/Element/index.d.ts +2 -2
- package/dist/Form/grid/Element/utils/address.d.ts +3 -3
- package/dist/Form/grid/Element/utils/utils.d.ts +13 -13
- package/dist/Form/grid/StyledContainer/hooks/index.d.ts +20 -20
- package/dist/Form/grid/StyledContainer/hooks/useFixedContainer.d.ts +1 -1
- package/dist/Form/grid/StyledContainer/index.d.ts +21 -21
- package/dist/Form/grid/StyledContainer/styles.d.ts +5 -5
- package/dist/Form/grid/StyledContainer/transform.d.ts +4 -4
- package/dist/Form/grid/StyledContainer/utils.d.ts +44 -44
- package/dist/Form/grid/index.d.ts +2 -2
- package/dist/Form/hooks/useCheckButtonAction.d.ts +6 -6
- package/dist/Form/hooks/useTrackUserInteraction.d.ts +2 -2
- package/dist/Form/index.d.ts +52 -52
- package/dist/Form/index.d.ts.map +1 -1
- package/dist/Form/logic.d.ts +10 -10
- package/dist/Form/tests/testMocks.d.ts +6 -6
- package/dist/auth/LoginError.d.ts +3 -3
- package/dist/auth/LoginForm.d.ts +29 -29
- package/dist/auth/internal/AuthIntegrationInterface.d.ts +31 -31
- package/dist/auth/internal/useFormAuth.d.ts +10 -10
- package/dist/auth/internal/utils.d.ts +13 -13
- package/dist/auth/useAuthClient.d.ts +2 -2
- package/dist/auth/utils.d.ts +1 -1
- package/dist/elements/basic/ButtonElement.d.ts +2 -2
- package/dist/elements/basic/ImageElement.d.ts +3 -3
- package/dist/elements/basic/ProgressBarElement/components/SegmentBar.d.ts +2 -2
- package/dist/elements/basic/ProgressBarElement/components/SmoothBar.d.ts +2 -2
- package/dist/elements/basic/ProgressBarElement/index.d.ts +2 -2
- package/dist/elements/basic/TextElement.d.ts +2 -2
- package/dist/elements/basic/VideoElement.d.ts +2 -2
- package/dist/elements/components/ErrorInput.d.ts +2 -2
- package/dist/elements/components/FormControl.d.ts +10 -10
- package/dist/elements/components/FormOff.d.ts +10 -10
- package/dist/elements/components/InlineTooltip.d.ts +11 -11
- package/dist/elements/components/LoaderContainer.d.ts +10 -10
- package/dist/elements/components/Lottie.d.ts +2 -2
- package/dist/elements/components/Overlay.d.ts +15 -15
- package/dist/elements/components/Placeholder.d.ts +1 -1
- package/dist/elements/components/QuikFormViewer/transforms/form.d.ts +1 -1
- package/dist/elements/components/QuikFormViewer/transforms/header.d.ts +1 -1
- package/dist/elements/components/QuikFormViewer/transforms/sidebar.d.ts +6 -6
- package/dist/elements/components/QuikFormViewer.d.ts +9 -9
- package/dist/elements/components/Spinner.d.ts +4 -4
- package/dist/elements/components/TextHoverTooltip.d.ts +8 -8
- package/dist/elements/components/TextNodes.d.ts +4 -4
- package/dist/elements/components/Tooltip.d.ts +7 -7
- package/dist/elements/components/Watermark.d.ts +1 -1
- package/dist/elements/components/data/countries.d.ts +14 -14
- package/dist/elements/components/data/states/ae.d.ts +5 -5
- package/dist/elements/components/data/states/au.d.ts +5 -5
- package/dist/elements/components/data/states/br.d.ts +5 -5
- package/dist/elements/components/data/states/ca.d.ts +5 -5
- package/dist/elements/components/data/states/cl.d.ts +5 -5
- package/dist/elements/components/data/states/cn.d.ts +5 -5
- package/dist/elements/components/data/states/co.d.ts +5 -5
- package/dist/elements/components/data/states/eg.d.ts +5 -5
- package/dist/elements/components/data/states/es.d.ts +5 -5
- package/dist/elements/components/data/states/gb.d.ts +5 -5
- package/dist/elements/components/data/states/gt.d.ts +5 -5
- package/dist/elements/components/data/states/hk.d.ts +5 -5
- package/dist/elements/components/data/states/id.d.ts +5 -5
- package/dist/elements/components/data/states/ie.d.ts +5 -5
- package/dist/elements/components/data/states/in.d.ts +5 -5
- package/dist/elements/components/data/states/index.d.ts +6 -6
- package/dist/elements/components/data/states/it.d.ts +5 -5
- package/dist/elements/components/data/states/jp.d.ts +5 -5
- package/dist/elements/components/data/states/kr.d.ts +5 -5
- package/dist/elements/components/data/states/mx.d.ts +5 -5
- package/dist/elements/components/data/states/my.d.ts +5 -5
- package/dist/elements/components/data/states/ng.d.ts +5 -5
- package/dist/elements/components/data/states/nz.d.ts +5 -5
- package/dist/elements/components/data/states/pa.d.ts +5 -5
- package/dist/elements/components/data/states/pe.d.ts +5 -5
- package/dist/elements/components/data/states/ph.d.ts +5 -5
- package/dist/elements/components/data/states/pt.d.ts +5 -5
- package/dist/elements/components/data/states/ro.d.ts +5 -5
- package/dist/elements/components/data/states/ru.d.ts +5 -5
- package/dist/elements/components/data/states/th.d.ts +5 -5
- package/dist/elements/components/data/states/us.d.ts +9 -9
- package/dist/elements/components/data/states/za.d.ts +5 -5
- package/dist/elements/components/icons/Close.d.ts +6 -6
- package/dist/elements/components/icons/DiagonalArrow.d.ts +5 -5
- package/dist/elements/components/icons/DownloadIcon.d.ts +4 -4
- package/dist/elements/components/icons/FileUpload.d.ts +1 -1
- package/dist/elements/components/icons/FormClosed.d.ts +5 -5
- package/dist/elements/components/icons/Heart.d.ts +1 -1
- package/dist/elements/components/icons/Help.d.ts +4 -4
- package/dist/elements/components/icons/HideEyeIcon.d.ts +5 -5
- package/dist/elements/components/icons/LeftChevron.d.ts +1 -1
- package/dist/elements/components/icons/RatingStar.d.ts +1 -1
- package/dist/elements/components/icons/RightChevron.d.ts +1 -1
- package/dist/elements/components/icons/ShowEyeIcon.d.ts +5 -5
- package/dist/elements/components/icons/Warning.d.ts +5 -5
- package/dist/elements/components/icons/index.d.ts +11 -11
- package/dist/elements/components/skeletons/FieldSkeleton.d.ts +7 -7
- package/dist/elements/components/useBorder.d.ts +21 -21
- package/dist/elements/components/useTextEdit.d.ts +6 -5
- package/dist/elements/components/useTextEdit.d.ts.map +1 -1
- package/dist/elements/fields/AddressLine1Field/index.d.ts +4 -4
- package/dist/elements/fields/AddressLine1Field/tests/test-utils.d.ts +34 -34
- package/dist/elements/fields/AddressLine1Field/utils.d.ts +2 -2
- package/dist/elements/fields/ButtonGroupField/index.d.ts +2 -2
- package/dist/elements/fields/ButtonGroupField/tests/test-utils.d.ts +46 -46
- package/dist/elements/fields/CheckboxField/index.d.ts +5 -5
- package/dist/elements/fields/CheckboxField/tests/test-utils.d.ts +20 -20
- package/dist/elements/fields/CheckboxGroupField/index.d.ts +2 -2
- package/dist/elements/fields/CheckboxGroupField/tests/test-utils.d.ts +60 -60
- package/dist/elements/fields/ColorPickerField/index.d.ts +2 -2
- package/dist/elements/fields/ColorPickerField/tests/test-utils.d.ts +21 -21
- package/dist/elements/fields/CustomField/Status.d.ts +8 -8
- package/dist/elements/fields/CustomField/index.d.ts +3 -3
- package/dist/elements/fields/CustomField/template.d.ts +1 -1
- package/dist/elements/fields/CustomField/useCustomComponentIframe.d.ts +15 -15
- package/dist/elements/fields/DateSelectorField/index.d.ts +22 -22
- package/dist/elements/fields/DateSelectorField/index.d.ts.map +1 -1
- package/dist/elements/fields/DateSelectorField/styles.d.ts +4 -4
- package/dist/elements/fields/DateSelectorField/tests/test-utils.d.ts +74 -74
- package/dist/elements/fields/DateSelectorField/useDateLocale.d.ts +7 -7
- package/dist/elements/fields/DateSelectorField/utils.d.ts +3 -3
- package/dist/elements/fields/DropdownField/index.d.ts +1 -1
- package/dist/elements/fields/DropdownField/tests/test-utils.d.ts +28 -28
- package/dist/elements/fields/DropdownMultiField/DropdownMultiFieldSelectComponents.d.ts +8 -8
- package/dist/elements/fields/DropdownMultiField/createDropdownSelect.d.ts +190 -190
- package/dist/elements/fields/DropdownMultiField/index.d.ts +1 -1
- package/dist/elements/fields/DropdownMultiField/optionNormalization.d.ts +9 -9
- package/dist/elements/fields/DropdownMultiField/selectStyles.d.ts +12 -12
- package/dist/elements/fields/DropdownMultiField/tests/test-utils.d.ts +47 -47
- package/dist/elements/fields/DropdownMultiField/types.d.ts +49 -49
- package/dist/elements/fields/DropdownMultiField/useCollapsedSelectionManager.d.ts +46 -46
- package/dist/elements/fields/DropdownMultiField/useCollapsedValuesMeasurement.d.ts +19 -19
- package/dist/elements/fields/DropdownMultiField/useDropdownInteractions.d.ts +46 -46
- package/dist/elements/fields/DropdownMultiField/useDropdownOptions.d.ts +24 -24
- package/dist/elements/fields/DropdownMultiField/useSelectProps.d.ts +112 -112
- package/dist/elements/fields/FileUploadField/index.d.ts +2 -2
- package/dist/elements/fields/FileUploadField/tests/test-utils.d.ts +10 -10
- package/dist/elements/fields/MatrixField/index.d.ts +2 -2
- package/dist/elements/fields/MatrixField/tests/test-utils.d.ts +67 -67
- package/dist/elements/fields/PasswordField/index.d.ts +4 -4
- package/dist/elements/fields/PasswordField/tests/test-utils.d.ts +30 -30
- package/dist/elements/fields/PaymentMethodField.d.ts +4 -4
- package/dist/elements/fields/PhoneField/CountryDropdown.d.ts +3 -3
- package/dist/elements/fields/PhoneField/exampleNumbers.d.ts +2 -2
- package/dist/elements/fields/PhoneField/index.d.ts +4 -4
- package/dist/elements/fields/PhoneField/tests/test-utils.d.ts +86 -86
- package/dist/elements/fields/PhoneField/timeZoneCountries.d.ts +4 -4
- package/dist/elements/fields/PhoneField/validation.d.ts +3 -3
- package/dist/elements/fields/PinInputField/index.d.ts +2 -2
- package/dist/elements/fields/PinInputField/tests/test-utils.d.ts +79 -79
- package/dist/elements/fields/PinInputField/useOTPListener.d.ts +1 -1
- package/dist/elements/fields/QRScanner/constants.d.ts +14 -14
- package/dist/elements/fields/QRScanner/hooks/use-device-rotation.d.ts +11 -11
- package/dist/elements/fields/QRScanner/index.d.ts +2 -2
- package/dist/elements/fields/QRScanner/qrLoader.d.ts +2 -2
- package/dist/elements/fields/QRScanner/utils/local-storage.d.ts +5 -5
- package/dist/elements/fields/QRScanner/utils/select-camera.d.ts +9 -9
- package/dist/elements/fields/QRScanner/utils/supports-zoom.d.ts +8 -8
- package/dist/elements/fields/RadioButtonGroupField/index.d.ts +2 -2
- package/dist/elements/fields/RadioButtonGroupField/tests/test-utils.d.ts +55 -55
- package/dist/elements/fields/RatingField/index.d.ts +1 -1
- package/dist/elements/fields/RatingField/tests/test-utils.d.ts +22 -22
- package/dist/elements/fields/SignatureField/components/SignatureCanvas.d.ts +22 -22
- package/dist/elements/fields/SignatureField/components/SignatureModal.d.ts +12 -12
- package/dist/elements/fields/SignatureField/components/utils.d.ts +10 -10
- package/dist/elements/fields/SignatureField/index.d.ts +3 -3
- package/dist/elements/fields/SignatureField/translation.d.ts +17 -17
- package/dist/elements/fields/SliderField/index.d.ts +1 -1
- package/dist/elements/fields/SliderField/styles.d.ts +3 -3
- package/dist/elements/fields/SliderField/tests/test-utils.d.ts +22 -22
- package/dist/elements/fields/TextArea/index.d.ts +4 -4
- package/dist/elements/fields/TextArea/tests/test-utils.d.ts +10 -10
- package/dist/elements/fields/TextField/TextAutocomplete.d.ts +15 -15
- package/dist/elements/fields/TextField/index.d.ts +4 -4
- package/dist/elements/fields/TextField/index.d.ts.map +1 -1
- package/dist/elements/fields/TextField/tests/test-utils.d.ts +10 -10
- package/dist/elements/fields/index.d.ts +27 -26
- package/dist/elements/fields/index.d.ts.map +1 -1
- package/dist/elements/fields/shared/tests/field-test-utils.d.ts +51 -51
- package/dist/elements/index.d.ts +36 -36
- package/dist/elements/styles.d.ts +64 -64
- package/dist/elements/utils/fieldNormalization.d.ts +12 -12
- package/dist/fthry_FormControl.CPHJNRoq.js +16 -0
- package/dist/fthry_InlineTooltip.AGcWhuhV.js +53 -0
- package/dist/fthry_Overlay.X0blINpo.js +228 -0
- package/dist/fthry_PaymentMethodField.DrAgJBPV.js +928 -0
- package/dist/fthry_Placeholder.DLtEoCLC.js +14 -0
- package/dist/fthry_ShowEyeIcon.CkEvtp1W.js +13 -0
- package/dist/fthry_index.BFrZ_89I.js +251 -0
- package/dist/fthry_index.BVM6mIvX.js +73 -0
- package/dist/fthry_index.B_soCJRW.js +1193 -0
- package/dist/fthry_index.BrWMLV_p.js +35 -0
- package/dist/fthry_index.CFbW8L20.js +42 -0
- package/dist/fthry_index.CWt9W3bv.js +95 -0
- package/dist/fthry_index.Cfk_0HTE.js +2000 -0
- package/dist/fthry_index.CjUraQwq.js +888 -0
- package/dist/fthry_index.D99W7p5a.js +293 -0
- package/dist/fthry_index.DAGDZi5r.js +97 -0
- package/dist/fthry_index.DV1PqB3d.js +138 -0
- package/dist/fthry_index.DWyfWu2d.js +216 -0
- package/dist/fthry_index.DaFYDmA_.js +15921 -0
- package/dist/fthry_index.DghPMqyH.js +8166 -0
- package/dist/fthry_index.DodXvrXD.js +98 -0
- package/dist/fthry_index.DohTu1v2.js +46 -0
- package/dist/fthry_index.F6BXSHA5.js +61120 -0
- package/dist/fthry_index.KRksei8j.js +513 -0
- package/dist/fthry_index.dYsdCe_k.js +1427 -0
- package/dist/fthry_index.lC0Xyh-d.js +1162 -0
- package/dist/fthry_index.mE9gZkgT.js +55 -0
- package/dist/fthry_index.rtVAtURz.js +1452 -0
- package/dist/fthry_index.uvWVc7KJ.js +131 -0
- package/dist/fthry_input.Bfzc5hmV.js +3779 -0
- package/dist/fthry_script.cAr9Z1Ke.js +157 -0
- package/dist/fthry_styles.yVoSvBEy.js +1654 -0
- package/dist/fthry_useElementSize.D3n9DgQ-.js +51 -0
- package/dist/fthry_useSalesforceSync.prWuB8V7.js +44 -0
- package/dist/fthry_webfontloader.DyMoLGZ3.js +57 -0
- package/dist/hooks/router.d.ts +14 -14
- package/dist/hooks/useElementSize.d.ts +7 -7
- package/dist/hooks/useLoader.d.ts +35 -35
- package/dist/hooks/useMounted.d.ts +2 -2
- package/dist/hooks/usePollFuserData.d.ts +1 -1
- package/dist/hooks/usePrevious.d.ts +2 -2
- package/dist/hooks/useSalesforceSync.d.ts +10 -10
- package/dist/index.d.ts +150 -149
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -1
- package/dist/integrations/alloy.d.ts +2 -2
- package/dist/integrations/amplitude.d.ts +1 -1
- package/dist/integrations/argyle.d.ts +2 -2
- package/dist/integrations/calendly.d.ts +2 -2
- package/dist/integrations/firebase.d.ts +42 -42
- package/dist/integrations/flinks/index.d.ts +10 -10
- package/dist/integrations/flinks/utils.d.ts +12 -12
- package/dist/integrations/googleAnalytics.d.ts +3 -3
- package/dist/integrations/googleTagManager.d.ts +1 -1
- package/dist/integrations/heap.d.ts +2 -2
- package/dist/integrations/intercom.d.ts +2 -2
- package/dist/integrations/mixpanel.d.ts +2 -2
- package/dist/integrations/persona.d.ts +2 -2
- package/dist/integrations/plaid.d.ts +2 -2
- package/dist/integrations/recaptcha.d.ts +2 -2
- package/dist/integrations/rudderstack.d.ts +3 -3
- package/dist/integrations/schwab.d.ts +1 -1
- package/dist/integrations/segment.d.ts +1 -1
- package/dist/integrations/stripe/Cart.d.ts +19 -19
- package/dist/integrations/stripe/SimplifiedProduct.d.ts +39 -39
- package/dist/integrations/stripe/index.d.ts +1 -1
- package/dist/integrations/stripe/stripe.d.ts +97 -97
- package/dist/integrations/stytch.d.ts +19 -19
- package/dist/integrations/trustedform.d.ts +2 -2
- package/dist/integrations/utils.d.ts +14 -14
- package/dist/setupTests.d.ts +1 -1
- package/dist/types/Form.d.ts +80 -80
- package/dist/utils/DangerouslySetHTMLContent.d.ts +2 -2
- package/dist/utils/ShadowDomHtmlContent.d.ts +8 -8
- package/dist/utils/array.d.ts +11 -11
- package/dist/utils/browser.d.ts +23 -23
- package/dist/utils/callbackQueue.d.ts +10 -10
- package/dist/utils/document.d.ts +1 -1
- package/dist/utils/elementActions.d.ts +55 -55
- package/dist/utils/entities/Collaborator.d.ts +14 -14
- package/dist/utils/entities/Field.d.ts +129 -129
- package/dist/utils/error.d.ts +13 -13
- package/dist/utils/featheryClient/index.d.ts +103 -103
- package/dist/utils/featheryClient/integrationClient.d.ts +114 -114
- package/dist/utils/featheryClient/utils.d.ts +1 -1
- package/dist/utils/fieldHelperFunctions.d.ts +70 -70
- package/dist/utils/formContext.d.ts +104 -104
- package/dist/utils/formHelperFunctions.d.ts +44 -44
- package/dist/utils/hideAndRepeats.d.ts +27 -27
- package/dist/utils/hydration.d.ts +14 -14
- package/dist/utils/image.d.ts +39 -39
- package/dist/utils/init.d.ts +59 -59
- package/dist/utils/init.d.ts.map +1 -1
- package/dist/utils/interactionState.d.ts +4 -4
- package/dist/utils/internalState.d.ts +91 -91
- package/dist/utils/logic.d.ts +50 -50
- package/dist/utils/offlineRequestHandler.d.ts +94 -94
- package/dist/utils/polyfills.d.ts +2 -2
- package/dist/utils/primitives.d.ts +14 -14
- package/dist/utils/random.d.ts +1 -1
- package/dist/utils/repeat.d.ts +38 -38
- package/dist/utils/sensitiveActions.d.ts +7 -7
- package/dist/utils/stepHelperFunctions.d.ts +22 -22
- package/dist/utils/styles.d.ts +5 -5
- package/dist/utils/validation.d.ts +58 -58
- package/package.json +18 -5
- package/umd/466.e3456c8b3407ad04ba56.js +1 -0
- package/umd/{DateSelectorField.b98c0ecb80f56e65cc69.js → DateSelectorField.bd5646949de71f571d04.js} +1 -1
- package/umd/{TextField.a3d8d42f6f8236d00f83.js → TextField.5a5296fe3ea60c4459f2.js} +1 -1
- package/umd/index.js +1 -1
- package/dist/Form/components/AIExtractionToast/ExtractionItem.d.ts.map +0 -1
- package/dist/Form/components/AIExtractionToast/icons.d.ts.map +0 -1
- package/dist/Form/components/AIExtractionToast/index.d.ts +0 -9
- package/dist/Form/components/AIExtractionToast/index.d.ts.map +0 -1
- package/dist/Form/components/AIExtractionToast/useAIExtractionToast.d.ts.map +0 -1
- package/umd/796.e66d52ea21ef09c4eeaa.js +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { createStatefulAcceptHandler, mockResponsiveStyles, setMockFieldValue, getMockFieldValue, resetMockFieldValue, expectFieldToBeDisabled, expectFieldToBeRequired, expectFieldToHaveMaxLength, expectFieldToHaveMinLength, expectFieldToHaveAriaLabel } from '../../shared/tests/field-test-utils';
|
|
2
|
-
export declare const createTextFieldElement: (type: string, metadata?: any, styles?: any) => {
|
|
3
|
-
id: string;
|
|
4
|
-
servar: any;
|
|
5
|
-
properties: any;
|
|
6
|
-
styles: any;
|
|
7
|
-
repeat: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare const createTextFieldProps: (element: any, customProps?: any) => any;
|
|
10
|
-
export { mockResponsiveStyles, setMockFieldValue, getMockFieldValue, resetMockFieldValue, expectFieldToBeDisabled, expectFieldToBeRequired, expectFieldToHaveMaxLength, expectFieldToHaveMinLength, expectFieldToHaveAriaLabel, createStatefulAcceptHandler };
|
|
1
|
+
import { createStatefulAcceptHandler, mockResponsiveStyles, setMockFieldValue, getMockFieldValue, resetMockFieldValue, expectFieldToBeDisabled, expectFieldToBeRequired, expectFieldToHaveMaxLength, expectFieldToHaveMinLength, expectFieldToHaveAriaLabel } from '../../shared/tests/field-test-utils';
|
|
2
|
+
export declare const createTextFieldElement: (type: string, metadata?: any, styles?: any) => {
|
|
3
|
+
id: string;
|
|
4
|
+
servar: any;
|
|
5
|
+
properties: any;
|
|
6
|
+
styles: any;
|
|
7
|
+
repeat: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const createTextFieldProps: (element: any, customProps?: any) => any;
|
|
10
|
+
export { mockResponsiveStyles, setMockFieldValue, getMockFieldValue, resetMockFieldValue, expectFieldToBeDisabled, expectFieldToBeRequired, expectFieldToHaveMaxLength, expectFieldToHaveMinLength, expectFieldToHaveAriaLabel, createStatefulAcceptHandler };
|
|
11
11
|
//# sourceMappingURL=test-utils.d.ts.map
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Fields: {
|
|
3
|
+
AddressLine1: import("react").LazyExoticComponent<import("react").MemoExoticComponent<({ element, responsiveStyles, fieldLabel, elementProps, disabled, autoComplete, editMode, repeatIndex, onSelect, onChange, required, onBlur, onEnter, setRef, value, inlineError, children }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
|
|
4
|
+
ButtonGroupField: import("react").LazyExoticComponent<typeof import("./ButtonGroupField").default>;
|
|
5
|
+
CheckboxField: import("react").LazyExoticComponent<typeof import("./CheckboxField").default>;
|
|
6
|
+
CheckboxGroupField: import("react").LazyExoticComponent<typeof import("./CheckboxGroupField").default>;
|
|
7
|
+
ColorPickerField: import("react").LazyExoticComponent<typeof import("./ColorPickerField").default>;
|
|
8
|
+
CustomField: import("react").LazyExoticComponent<import("react").MemoExoticComponent<({ element, elementProps, responsiveStyles, onChange, rawValue, required, disabled, fieldStyles, editMode, rightToLeft, index }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
|
|
9
|
+
DateSelectorField: import("react").LazyExoticComponent<import("react").MemoExoticComponent<({ element, responsiveStyles, fieldLabel, elementProps, required, disabled, repeatIndex, editMode, onComplete, onEnter, setRef, value, inlineError, children }: import("./DateSelectorField").DateSelectorProps) => import("@emotion/react/jsx-runtime").JSX.Element>>;
|
|
10
|
+
DropdownField: import("react").LazyExoticComponent<typeof import("./DropdownField").default>;
|
|
11
|
+
DropdownMultiField: import("react").LazyExoticComponent<typeof import("./DropdownMultiField").default>;
|
|
12
|
+
FileUploadField: import("react").LazyExoticComponent<typeof import("./FileUploadField").default>;
|
|
13
|
+
MatrixField: import("react").LazyExoticComponent<typeof import("./MatrixField").default>;
|
|
14
|
+
PasswordField: import("react").LazyExoticComponent<import("react").MemoExoticComponent<({ element, responsiveStyles, fieldLabel, elementProps, required, disabled, repeatIndex, editMode, onChange, onEnter, setRef, rawValue, inlineError, children }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
|
|
15
|
+
PaymentMethodField: import("react").LazyExoticComponent<import("react").MemoExoticComponent<({ editMode, children, ...props }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
|
|
16
|
+
PhoneField: import("react").LazyExoticComponent<import("react").MemoExoticComponent<({ element, responsiveStyles, fieldLabel, fullNumber, elementProps, required, disabled, repeatIndex, autoComplete, editMode, onComplete, setRef, inlineError, rightToLeft, onEnter, children }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
|
|
17
|
+
PinInputField: import("react").LazyExoticComponent<typeof import("./PinInputField").default>;
|
|
18
|
+
QRScanner: import("react").LazyExoticComponent<typeof import("./QRScanner").default>;
|
|
19
|
+
RadioButtonGroupField: import("react").LazyExoticComponent<typeof import("./RadioButtonGroupField").default>;
|
|
20
|
+
RatingField: import("react").LazyExoticComponent<typeof import("./RatingField").default>;
|
|
21
|
+
SignatureField: import("react").LazyExoticComponent<typeof import("./SignatureField").default>;
|
|
22
|
+
SliderField: import("react").LazyExoticComponent<typeof import("./SliderField").default>;
|
|
23
|
+
TextField: import("react").LazyExoticComponent<import("react").MemoExoticComponent<({ element, responsiveStyles, fieldLabel, elementProps, required, disabled, autoComplete, editMode, onAccept, onEnter, setRef, inlineError, repeatIndex, children }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
|
|
24
|
+
TextArea: import("react").LazyExoticComponent<import("react").MemoExoticComponent<({ element, responsiveStyles, fieldLabel, elementProps, required, disabled, editMode, onChange, setRef, rawValue, inlineError, repeatIndex, children }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
|
|
25
|
+
};
|
|
26
|
+
export declare const DROPDOWN_Z_INDEX = 10;
|
|
27
|
+
export default Fields;
|
|
27
28
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/elements/fields/index.tsx"],"names":[],"mappings":"AA6EA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;CAuBX,CAAC;AAkBF,eAAO,MAAM,gBAAgB,KAAK,CAAC;AA0ZnC,eAAe,MAAM,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/elements/fields/index.tsx"],"names":[],"mappings":";AA6EA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;CAuBX,CAAC;AAkBF,eAAO,MAAM,gBAAgB,KAAK,CAAC;AA0ZnC,eAAe,MAAM,CAAC"}
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
/// <reference types="jest" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export declare const setMockFieldValue: (value: any) => void;
|
|
4
|
-
export declare const getMockFieldValue: () => any;
|
|
5
|
-
export declare const resetMockFieldValue: () => void;
|
|
6
|
-
export declare const mockResponsiveStyles: {
|
|
7
|
-
getTarget: jest.Mock<{}, []>;
|
|
8
|
-
getTargets: jest.Mock<{}, []>;
|
|
9
|
-
getMobileBreakpoint: jest.Mock<number, []>;
|
|
10
|
-
applyFontStyles: jest.Mock<any, any>;
|
|
11
|
-
addTargets: jest.Mock<any, any>;
|
|
12
|
-
apply: jest.Mock<any, any>;
|
|
13
|
-
applyHeight: jest.Mock<any, any>;
|
|
14
|
-
applyWidth: jest.Mock<any, any>;
|
|
15
|
-
applyBorders: jest.Mock<any, any>;
|
|
16
|
-
applyCorners: jest.Mock<any, any>;
|
|
17
|
-
applyBoxShadow: jest.Mock<any, any>;
|
|
18
|
-
applyColor: jest.Mock<any, any>;
|
|
19
|
-
applySelectorStyles: jest.Mock<any, any>;
|
|
20
|
-
};
|
|
21
|
-
export declare const createBaseElement: (id: string, type: string, metadata?: any, properties?: any, styles?: any) => {
|
|
22
|
-
id: string;
|
|
23
|
-
servar: any;
|
|
24
|
-
properties: any;
|
|
25
|
-
styles: any;
|
|
26
|
-
repeat: boolean;
|
|
27
|
-
};
|
|
28
|
-
export declare const createFieldProps: (element: any, customProps?: any) => any;
|
|
29
|
-
export declare const createStatefulTextOnChange: () => jest.Mock<void, [e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>]>;
|
|
30
|
-
export declare const createStatefulFileOnChange: () => jest.Mock<void, [files: any[]]>;
|
|
31
|
-
export declare const createStatefulAcceptHandler: () => jest.Mock<void, [val: any]>;
|
|
32
|
-
export declare const createMockFile: (name: string, type: string, size?: number, content?: string) => File;
|
|
33
|
-
export declare const createMockImageFile: (name?: string, size?: number) => File;
|
|
34
|
-
export declare const createMockDocumentFile: (name?: string, size?: number) => File;
|
|
35
|
-
export declare const createFileInputChangeEvent: (files: File[]) => {
|
|
36
|
-
target: {
|
|
37
|
-
files: FileList;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
export declare const createDragEvent: (files: File[]) => {
|
|
41
|
-
preventDefault: jest.Mock<any, any>;
|
|
42
|
-
stopPropagation: jest.Mock<any, any>;
|
|
43
|
-
dataTransfer: {
|
|
44
|
-
files: FileList;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
export declare const expectFieldToBeDisabled: (field: HTMLElement) => void;
|
|
48
|
-
export declare const expectFieldToBeRequired: (field: HTMLElement) => void;
|
|
49
|
-
export declare const expectFieldToHaveMaxLength: (field: HTMLElement, maxLength: number) => void;
|
|
50
|
-
export declare const expectFieldToHaveMinLength: (field: HTMLElement, minLength: number) => void;
|
|
51
|
-
export declare const expectFieldToHaveAriaLabel: (field: HTMLElement, label: string) => void;
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare const setMockFieldValue: (value: any) => void;
|
|
4
|
+
export declare const getMockFieldValue: () => any;
|
|
5
|
+
export declare const resetMockFieldValue: () => void;
|
|
6
|
+
export declare const mockResponsiveStyles: {
|
|
7
|
+
getTarget: jest.Mock<{}, []>;
|
|
8
|
+
getTargets: jest.Mock<{}, []>;
|
|
9
|
+
getMobileBreakpoint: jest.Mock<number, []>;
|
|
10
|
+
applyFontStyles: jest.Mock<any, any>;
|
|
11
|
+
addTargets: jest.Mock<any, any>;
|
|
12
|
+
apply: jest.Mock<any, any>;
|
|
13
|
+
applyHeight: jest.Mock<any, any>;
|
|
14
|
+
applyWidth: jest.Mock<any, any>;
|
|
15
|
+
applyBorders: jest.Mock<any, any>;
|
|
16
|
+
applyCorners: jest.Mock<any, any>;
|
|
17
|
+
applyBoxShadow: jest.Mock<any, any>;
|
|
18
|
+
applyColor: jest.Mock<any, any>;
|
|
19
|
+
applySelectorStyles: jest.Mock<any, any>;
|
|
20
|
+
};
|
|
21
|
+
export declare const createBaseElement: (id: string, type: string, metadata?: any, properties?: any, styles?: any) => {
|
|
22
|
+
id: string;
|
|
23
|
+
servar: any;
|
|
24
|
+
properties: any;
|
|
25
|
+
styles: any;
|
|
26
|
+
repeat: boolean;
|
|
27
|
+
};
|
|
28
|
+
export declare const createFieldProps: (element: any, customProps?: any) => any;
|
|
29
|
+
export declare const createStatefulTextOnChange: () => jest.Mock<void, [e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>]>;
|
|
30
|
+
export declare const createStatefulFileOnChange: () => jest.Mock<void, [files: any[]]>;
|
|
31
|
+
export declare const createStatefulAcceptHandler: () => jest.Mock<void, [val: any]>;
|
|
32
|
+
export declare const createMockFile: (name: string, type: string, size?: number, content?: string) => File;
|
|
33
|
+
export declare const createMockImageFile: (name?: string, size?: number) => File;
|
|
34
|
+
export declare const createMockDocumentFile: (name?: string, size?: number) => File;
|
|
35
|
+
export declare const createFileInputChangeEvent: (files: File[]) => {
|
|
36
|
+
target: {
|
|
37
|
+
files: FileList;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare const createDragEvent: (files: File[]) => {
|
|
41
|
+
preventDefault: jest.Mock<any, any>;
|
|
42
|
+
stopPropagation: jest.Mock<any, any>;
|
|
43
|
+
dataTransfer: {
|
|
44
|
+
files: FileList;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export declare const expectFieldToBeDisabled: (field: HTMLElement) => void;
|
|
48
|
+
export declare const expectFieldToBeRequired: (field: HTMLElement) => void;
|
|
49
|
+
export declare const expectFieldToHaveMaxLength: (field: HTMLElement, maxLength: number) => void;
|
|
50
|
+
export declare const expectFieldToHaveMinLength: (field: HTMLElement, minLength: number) => void;
|
|
51
|
+
export declare const expectFieldToHaveAriaLabel: (field: HTMLElement, label: string) => void;
|
|
52
52
|
//# sourceMappingURL=field-test-utils.d.ts.map
|
package/dist/elements/index.d.ts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import ImageElement from './basic/ImageElement';
|
|
3
|
-
import VideoElement from './basic/VideoElement';
|
|
4
|
-
import TextElement from './basic/TextElement';
|
|
5
|
-
import ButtonElement from './basic/ButtonElement';
|
|
6
|
-
import ProgressBarElement from './basic/ProgressBarElement';
|
|
7
|
-
declare const Elements: {
|
|
8
|
-
AddressLine1: React.LazyExoticComponent<React.MemoExoticComponent<({ element, responsiveStyles, fieldLabel, elementProps, disabled, autoComplete, editMode, repeatIndex, onSelect, onChange, required, onBlur, onEnter, setRef, value, inlineError, children }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
|
|
9
|
-
ButtonGroupField: React.LazyExoticComponent<typeof import("./fields/ButtonGroupField").default>;
|
|
10
|
-
CheckboxField: React.LazyExoticComponent<typeof import("./fields/CheckboxField").default>;
|
|
11
|
-
CheckboxGroupField: React.LazyExoticComponent<typeof import("./fields/CheckboxGroupField").default>;
|
|
12
|
-
ColorPickerField: React.LazyExoticComponent<typeof import("./fields/ColorPickerField").default>;
|
|
13
|
-
CustomField: React.LazyExoticComponent<React.MemoExoticComponent<({ element, elementProps, responsiveStyles, onChange, rawValue, required, disabled, fieldStyles, editMode, rightToLeft, index }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
|
|
14
|
-
DateSelectorField: React.LazyExoticComponent<React.MemoExoticComponent<({ element, responsiveStyles, fieldLabel, elementProps, required, disabled, repeatIndex, editMode, onComplete, onEnter, setRef, value, inlineError, children }: import("./fields/DateSelectorField").DateSelectorProps) => import("@emotion/react/jsx-runtime").JSX.Element>>;
|
|
15
|
-
DropdownField: React.LazyExoticComponent<typeof import("./fields/DropdownField").default>;
|
|
16
|
-
DropdownMultiField: React.LazyExoticComponent<typeof import("./fields/DropdownMultiField").default>;
|
|
17
|
-
FileUploadField: React.LazyExoticComponent<typeof import("./fields/FileUploadField").default>;
|
|
18
|
-
MatrixField: React.LazyExoticComponent<typeof import("./fields/MatrixField").default>;
|
|
19
|
-
PasswordField: React.LazyExoticComponent<React.MemoExoticComponent<({ element, responsiveStyles, fieldLabel, elementProps, required, disabled, repeatIndex, editMode, onChange, onEnter, setRef, rawValue, inlineError, children }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
|
|
20
|
-
PaymentMethodField: React.LazyExoticComponent<React.MemoExoticComponent<({ editMode, children, ...props }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
|
|
21
|
-
PhoneField: React.LazyExoticComponent<React.MemoExoticComponent<({ element, responsiveStyles, fieldLabel, fullNumber, elementProps, required, disabled, repeatIndex, autoComplete, editMode, onComplete, setRef, inlineError, rightToLeft, onEnter, children }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
|
|
22
|
-
PinInputField: React.LazyExoticComponent<typeof import("./fields/PinInputField").default>;
|
|
23
|
-
QRScanner: React.LazyExoticComponent<typeof import("./fields/QRScanner").default>;
|
|
24
|
-
RadioButtonGroupField: React.LazyExoticComponent<typeof import("./fields/RadioButtonGroupField").default>;
|
|
25
|
-
RatingField: React.LazyExoticComponent<typeof import("./fields/RatingField").default>;
|
|
26
|
-
SignatureField: React.LazyExoticComponent<typeof import("./fields/SignatureField").default>;
|
|
27
|
-
SliderField: React.LazyExoticComponent<typeof import("./fields/SliderField").default>;
|
|
28
|
-
TextField: React.LazyExoticComponent<React.MemoExoticComponent<({ element, responsiveStyles, fieldLabel, elementProps, required, disabled, autoComplete, editMode, onAccept, onEnter, setRef, inlineError, repeatIndex, children }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
|
|
29
|
-
TextArea: React.LazyExoticComponent<React.MemoExoticComponent<({ element, responsiveStyles, fieldLabel, elementProps, required, disabled, editMode, onChange, setRef, rawValue, inlineError, repeatIndex, children }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
|
|
30
|
-
ImageElement: typeof ImageElement;
|
|
31
|
-
VideoElement: typeof VideoElement;
|
|
32
|
-
TextElement: typeof TextElement;
|
|
33
|
-
ButtonElement: typeof ButtonElement;
|
|
34
|
-
ProgressBarElement: typeof ProgressBarElement;
|
|
35
|
-
};
|
|
36
|
-
export default Elements;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ImageElement from './basic/ImageElement';
|
|
3
|
+
import VideoElement from './basic/VideoElement';
|
|
4
|
+
import TextElement from './basic/TextElement';
|
|
5
|
+
import ButtonElement from './basic/ButtonElement';
|
|
6
|
+
import ProgressBarElement from './basic/ProgressBarElement';
|
|
7
|
+
declare const Elements: {
|
|
8
|
+
AddressLine1: React.LazyExoticComponent<React.MemoExoticComponent<({ element, responsiveStyles, fieldLabel, elementProps, disabled, autoComplete, editMode, repeatIndex, onSelect, onChange, required, onBlur, onEnter, setRef, value, inlineError, children }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
|
|
9
|
+
ButtonGroupField: React.LazyExoticComponent<typeof import("./fields/ButtonGroupField").default>;
|
|
10
|
+
CheckboxField: React.LazyExoticComponent<typeof import("./fields/CheckboxField").default>;
|
|
11
|
+
CheckboxGroupField: React.LazyExoticComponent<typeof import("./fields/CheckboxGroupField").default>;
|
|
12
|
+
ColorPickerField: React.LazyExoticComponent<typeof import("./fields/ColorPickerField").default>;
|
|
13
|
+
CustomField: React.LazyExoticComponent<React.MemoExoticComponent<({ element, elementProps, responsiveStyles, onChange, rawValue, required, disabled, fieldStyles, editMode, rightToLeft, index }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
|
|
14
|
+
DateSelectorField: React.LazyExoticComponent<React.MemoExoticComponent<({ element, responsiveStyles, fieldLabel, elementProps, required, disabled, repeatIndex, editMode, onComplete, onEnter, setRef, value, inlineError, children }: import("./fields/DateSelectorField").DateSelectorProps) => import("@emotion/react/jsx-runtime").JSX.Element>>;
|
|
15
|
+
DropdownField: React.LazyExoticComponent<typeof import("./fields/DropdownField").default>;
|
|
16
|
+
DropdownMultiField: React.LazyExoticComponent<typeof import("./fields/DropdownMultiField").default>;
|
|
17
|
+
FileUploadField: React.LazyExoticComponent<typeof import("./fields/FileUploadField").default>;
|
|
18
|
+
MatrixField: React.LazyExoticComponent<typeof import("./fields/MatrixField").default>;
|
|
19
|
+
PasswordField: React.LazyExoticComponent<React.MemoExoticComponent<({ element, responsiveStyles, fieldLabel, elementProps, required, disabled, repeatIndex, editMode, onChange, onEnter, setRef, rawValue, inlineError, children }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
|
|
20
|
+
PaymentMethodField: React.LazyExoticComponent<React.MemoExoticComponent<({ editMode, children, ...props }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
|
|
21
|
+
PhoneField: React.LazyExoticComponent<React.MemoExoticComponent<({ element, responsiveStyles, fieldLabel, fullNumber, elementProps, required, disabled, repeatIndex, autoComplete, editMode, onComplete, setRef, inlineError, rightToLeft, onEnter, children }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
|
|
22
|
+
PinInputField: React.LazyExoticComponent<typeof import("./fields/PinInputField").default>;
|
|
23
|
+
QRScanner: React.LazyExoticComponent<typeof import("./fields/QRScanner").default>;
|
|
24
|
+
RadioButtonGroupField: React.LazyExoticComponent<typeof import("./fields/RadioButtonGroupField").default>;
|
|
25
|
+
RatingField: React.LazyExoticComponent<typeof import("./fields/RatingField").default>;
|
|
26
|
+
SignatureField: React.LazyExoticComponent<typeof import("./fields/SignatureField").default>;
|
|
27
|
+
SliderField: React.LazyExoticComponent<typeof import("./fields/SliderField").default>;
|
|
28
|
+
TextField: React.LazyExoticComponent<React.MemoExoticComponent<({ element, responsiveStyles, fieldLabel, elementProps, required, disabled, autoComplete, editMode, onAccept, onEnter, setRef, inlineError, repeatIndex, children }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
|
|
29
|
+
TextArea: React.LazyExoticComponent<React.MemoExoticComponent<({ element, responsiveStyles, fieldLabel, elementProps, required, disabled, editMode, onChange, setRef, rawValue, inlineError, repeatIndex, children }: any) => import("@emotion/react/jsx-runtime").JSX.Element>>;
|
|
30
|
+
ImageElement: typeof ImageElement;
|
|
31
|
+
VideoElement: typeof VideoElement;
|
|
32
|
+
TextElement: typeof TextElement;
|
|
33
|
+
ButtonElement: typeof ButtonElement;
|
|
34
|
+
ProgressBarElement: typeof ProgressBarElement;
|
|
35
|
+
};
|
|
36
|
+
export default Elements;
|
|
37
37
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
export declare const DEFAULT_MOBILE_BREAKPOINT = 478;
|
|
3
|
-
export declare const getViewport: (breakpoint?: number) => "desktop" | "mobile";
|
|
4
|
-
export declare const borderWidthProps: string[];
|
|
5
|
-
export declare const borderColorProps: string[];
|
|
6
|
-
/**
|
|
7
|
-
* Handles the translation of server-side properties into responsive CSS
|
|
8
|
-
* attributes
|
|
9
|
-
*/
|
|
10
|
-
export default class ResponsiveStyles {
|
|
11
|
-
element: any;
|
|
12
|
-
handleMobile: boolean;
|
|
13
|
-
mobileStyles: any;
|
|
14
|
-
mobileTargets: any;
|
|
15
|
-
styles: any;
|
|
16
|
-
targets: any;
|
|
17
|
-
mobileBreakpoint: number;
|
|
18
|
-
mobileBreakpointKey: string;
|
|
19
|
-
constructor(element: any, targets: string[], handleMobile?: boolean, mobileBreakpoint?: number);
|
|
20
|
-
getMobileBreakpoint(): number;
|
|
21
|
-
setMobileBreakpoint(breakpoint: number): void;
|
|
22
|
-
addTargets(...targets: string[]): void;
|
|
23
|
-
getTarget(targetId: string, desktopOnly?: boolean, includeMobile?: boolean): any;
|
|
24
|
-
getTargets(...targets: string[]): {};
|
|
25
|
-
setStyle(target: string, key: string, val: any): void;
|
|
26
|
-
apply(target: string, properties: any, get: any): void;
|
|
27
|
-
applyFlexDirection(target: string, prefix?: string): void;
|
|
28
|
-
applyContentAlign(target: string, prefix?: string): void;
|
|
29
|
-
applyTextAlign(target: string, prefix?: string): void;
|
|
30
|
-
applyBorders({ target, prefix, important }: {
|
|
31
|
-
target?: string | undefined;
|
|
32
|
-
prefix?: string | undefined;
|
|
33
|
-
important?: boolean | undefined;
|
|
34
|
-
}): boolean;
|
|
35
|
-
applySelectorStyles(target: string, { prefix, important, addBorder, background }: {
|
|
36
|
-
prefix?: string | undefined;
|
|
37
|
-
important?: boolean | undefined;
|
|
38
|
-
addBorder?: boolean | undefined;
|
|
39
|
-
background?: boolean | undefined;
|
|
40
|
-
}): void;
|
|
41
|
-
applyPadding(target: string, prefix?: string, margin?: boolean): void;
|
|
42
|
-
applyMargin(target: string, prefix?: string): void;
|
|
43
|
-
applyCorners(target: string): void;
|
|
44
|
-
applyBoxShadow(target: string): void;
|
|
45
|
-
applyHeight(target: string, prefix?: string, force?: boolean): void;
|
|
46
|
-
applyWidth(target: string, prefix?: string, force?: boolean): void;
|
|
47
|
-
applyColor(target: string, jsonProp: any, cssProp: any, important?: boolean): void;
|
|
48
|
-
applyFontStyles(target: string, placeholder?: boolean, ignoreSelectorFontColor?: boolean): void;
|
|
49
|
-
applySpanSelectorStyles(target: string, prefix?: string): void;
|
|
50
|
-
transformFontFamilies(families: string): string;
|
|
51
|
-
applyFontFamily(target: string): void;
|
|
52
|
-
getRichFontStyles(attrs: any): Record<string, any>;
|
|
53
|
-
_getRichFontScreenStyles(attrs: any, isMobile?: boolean): Record<string, any>;
|
|
54
|
-
applyPlaceholderStyles(type: any, styles: any): void;
|
|
55
|
-
applyBackgroundColorGradient(target: string): void;
|
|
56
|
-
applyBackgroundImageStyles(target: string): void;
|
|
57
|
-
}
|
|
58
|
-
export declare const noTextSelectStyles: CSSProperties;
|
|
59
|
-
export declare const resetStyles: CSSProperties;
|
|
60
|
-
export declare const imgMaxSizeStyles: CSSProperties;
|
|
61
|
-
export declare const ERROR_COLOR = "#F42525";
|
|
62
|
-
export declare function mergeMobileStyles(style1: any, style2: any, breakpoint?: number): {
|
|
63
|
-
[x: string]: {};
|
|
64
|
-
};
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export declare const DEFAULT_MOBILE_BREAKPOINT = 478;
|
|
3
|
+
export declare const getViewport: (breakpoint?: number) => "desktop" | "mobile";
|
|
4
|
+
export declare const borderWidthProps: string[];
|
|
5
|
+
export declare const borderColorProps: string[];
|
|
6
|
+
/**
|
|
7
|
+
* Handles the translation of server-side properties into responsive CSS
|
|
8
|
+
* attributes
|
|
9
|
+
*/
|
|
10
|
+
export default class ResponsiveStyles {
|
|
11
|
+
element: any;
|
|
12
|
+
handleMobile: boolean;
|
|
13
|
+
mobileStyles: any;
|
|
14
|
+
mobileTargets: any;
|
|
15
|
+
styles: any;
|
|
16
|
+
targets: any;
|
|
17
|
+
mobileBreakpoint: number;
|
|
18
|
+
mobileBreakpointKey: string;
|
|
19
|
+
constructor(element: any, targets: string[], handleMobile?: boolean, mobileBreakpoint?: number);
|
|
20
|
+
getMobileBreakpoint(): number;
|
|
21
|
+
setMobileBreakpoint(breakpoint: number): void;
|
|
22
|
+
addTargets(...targets: string[]): void;
|
|
23
|
+
getTarget(targetId: string, desktopOnly?: boolean, includeMobile?: boolean): any;
|
|
24
|
+
getTargets(...targets: string[]): {};
|
|
25
|
+
setStyle(target: string, key: string, val: any): void;
|
|
26
|
+
apply(target: string, properties: any, get: any): void;
|
|
27
|
+
applyFlexDirection(target: string, prefix?: string): void;
|
|
28
|
+
applyContentAlign(target: string, prefix?: string): void;
|
|
29
|
+
applyTextAlign(target: string, prefix?: string): void;
|
|
30
|
+
applyBorders({ target, prefix, important }: {
|
|
31
|
+
target?: string | undefined;
|
|
32
|
+
prefix?: string | undefined;
|
|
33
|
+
important?: boolean | undefined;
|
|
34
|
+
}): boolean;
|
|
35
|
+
applySelectorStyles(target: string, { prefix, important, addBorder, background }: {
|
|
36
|
+
prefix?: string | undefined;
|
|
37
|
+
important?: boolean | undefined;
|
|
38
|
+
addBorder?: boolean | undefined;
|
|
39
|
+
background?: boolean | undefined;
|
|
40
|
+
}): void;
|
|
41
|
+
applyPadding(target: string, prefix?: string, margin?: boolean): void;
|
|
42
|
+
applyMargin(target: string, prefix?: string): void;
|
|
43
|
+
applyCorners(target: string): void;
|
|
44
|
+
applyBoxShadow(target: string): void;
|
|
45
|
+
applyHeight(target: string, prefix?: string, force?: boolean): void;
|
|
46
|
+
applyWidth(target: string, prefix?: string, force?: boolean): void;
|
|
47
|
+
applyColor(target: string, jsonProp: any, cssProp: any, important?: boolean): void;
|
|
48
|
+
applyFontStyles(target: string, placeholder?: boolean, ignoreSelectorFontColor?: boolean): void;
|
|
49
|
+
applySpanSelectorStyles(target: string, prefix?: string): void;
|
|
50
|
+
transformFontFamilies(families: string): string;
|
|
51
|
+
applyFontFamily(target: string): void;
|
|
52
|
+
getRichFontStyles(attrs: any): Record<string, any>;
|
|
53
|
+
_getRichFontScreenStyles(attrs: any, isMobile?: boolean): Record<string, any>;
|
|
54
|
+
applyPlaceholderStyles(type: any, styles: any): void;
|
|
55
|
+
applyBackgroundColorGradient(target: string): void;
|
|
56
|
+
applyBackgroundImageStyles(target: string): void;
|
|
57
|
+
}
|
|
58
|
+
export declare const noTextSelectStyles: CSSProperties;
|
|
59
|
+
export declare const resetStyles: CSSProperties;
|
|
60
|
+
export declare const imgMaxSizeStyles: CSSProperties;
|
|
61
|
+
export declare const ERROR_COLOR = "#F42525";
|
|
62
|
+
export declare function mergeMobileStyles(style1: any, style2: any, breakpoint?: number): {
|
|
63
|
+
[x: string]: {};
|
|
64
|
+
};
|
|
65
65
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export declare type WarnType = 'option' | 'value';
|
|
2
|
-
export declare type WarningArgs = {
|
|
3
|
-
state: Set<string>;
|
|
4
|
-
type: WarnType;
|
|
5
|
-
field: string;
|
|
6
|
-
reason: string;
|
|
7
|
-
context: string;
|
|
8
|
-
payload: unknown;
|
|
9
|
-
entityLabel?: string;
|
|
10
|
-
};
|
|
11
|
-
export declare const normalizeToString: (value: unknown) => string | null;
|
|
12
|
-
export declare const warnInvalidData: ({ state, type, field, reason, context, payload, entityLabel }: WarningArgs) => void;
|
|
1
|
+
export declare type WarnType = 'option' | 'value';
|
|
2
|
+
export declare type WarningArgs = {
|
|
3
|
+
state: Set<string>;
|
|
4
|
+
type: WarnType;
|
|
5
|
+
field: string;
|
|
6
|
+
reason: string;
|
|
7
|
+
context: string;
|
|
8
|
+
payload: unknown;
|
|
9
|
+
entityLabel?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const normalizeToString: (value: unknown) => string | null;
|
|
12
|
+
export declare const warnInvalidData: ({ state, type, field, reason, context, payload, entityLabel }: WarningArgs) => void;
|
|
13
13
|
//# sourceMappingURL=fieldNormalization.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { t as __rest, b as jsx, a as __assign } from './fthry_index.F6BXSHA5.js';
|
|
2
|
+
|
|
3
|
+
// Simple input used for the 'other' option in checkbox and radio groups
|
|
4
|
+
function FormControl(_a) {
|
|
5
|
+
var _b = _a.type, type = _b === void 0 ? 'text' : _b, htmlSize = _a.htmlSize, css = _a.css, props = __rest(_a, ["type", "htmlSize", "css"]);
|
|
6
|
+
return (jsx("input", __assign({ type: type, size: htmlSize, css: __assign({ border: '1px solid #ced4da', borderRadius: '0.375rem', padding: '0.375rem 0.75rem', fontSize: '1rem', lineHeight: '1.5', color: '#495057', backgroundColor: '#fff', backgroundClip: 'padding-box', transition: 'border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out', '&:focus': {
|
|
7
|
+
borderColor: '#80bdff',
|
|
8
|
+
outline: 0,
|
|
9
|
+
boxShadow: '0 0 0 0.2rem rgba(0, 123, 255, 0.25)'
|
|
10
|
+
}, '&:disabled': {
|
|
11
|
+
backgroundColor: '#e9ecef',
|
|
12
|
+
opacity: 1
|
|
13
|
+
} }, css) }, props)));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { FormControl as F };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { b as jsx, a as __assign, _ as __read, au as replaceTextVariables, q as isMobile, j as jsxs, m as Fragment, k as FORM_Z_INDEX } from './fthry_index.F6BXSHA5.js';
|
|
2
|
+
import { useState, useRef } from 'react';
|
|
3
|
+
import { O as Overlay, T as Tooltip } from './fthry_Overlay.X0blINpo.js';
|
|
4
|
+
|
|
5
|
+
function HelpIcon(_a) {
|
|
6
|
+
var _b = _a.cssStyles, cssStyles = _b === void 0 ? {} : _b, _c = _a.onClick, onClick = _c === void 0 ? function () { } : _c;
|
|
7
|
+
return (jsx("svg", __assign({ css: cssStyles, width: '100%', height: '100%', viewBox: '0 0 10 10', fill: 'black', xmlns: 'http://www.w3.org/2000/svg', onClick: onClick }, { children: jsx("path", { d: 'M10 5C10 2.23571 7.75714 0 5 0C2.23571 0 0 2.23571 0 5C0 7.76429 2.23571 10 5 10C7.75714 10 10 7.76429 10 5ZM5.5 6.05714H4.38571V5.75C4.38571 5.47857 4.44286 5.25 4.55714 5.05C4.67143 4.85 4.88571 4.64286 5.18571 4.41429C5.47857 4.20714 5.67143 4.03571 5.76429 3.90714C5.86429 3.77857 5.90714 3.62857 5.90714 3.46429C5.90714 3.28571 5.84286 3.15 5.70714 3.05C5.57143 2.95714 5.38571 2.91429 5.14286 2.91429C4.72857 2.91429 4.25 3.05 3.71429 3.32143L3.25714 2.40714C3.87857 2.05714 4.54286 1.87857 5.23571 1.87857C5.81429 1.87857 6.27143 2.02143 6.60714 2.29286C6.95 2.57143 7.11429 2.94286 7.11429 3.4C7.11429 3.70714 7.05 3.97143 6.90714 4.19286C6.77143 4.42143 6.5 4.67143 6.11429 4.95C5.84286 5.15 5.67857 5.3 5.60714 5.4C5.53571 5.50714 5.5 5.64286 5.5 5.80714V6.05714ZM4.45 8.01429C4.32143 7.89286 4.25714 7.71429 4.25714 7.49286C4.25714 7.25714 4.31429 7.07857 4.44286 6.95714C4.57143 6.83571 4.75 6.77857 4.99286 6.77857C5.22143 6.77857 5.4 6.84286 5.52857 6.96429C5.65714 7.08571 5.72143 7.26429 5.72143 7.49286C5.72143 7.70714 5.65714 7.88571 5.52857 8.00714C5.4 8.13571 5.22143 8.2 4.99286 8.2C4.75714 8.2 4.57857 8.13571 4.45 8.01429Z' }) })));
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function InlineTooltip(_a) {
|
|
11
|
+
var id = _a.id, text = _a.text, responsiveStyles = _a.responsiveStyles, _b = _a.absolute, absolute = _b === void 0 ? true : _b, containerRef = _a.containerRef, repeat = _a.repeat;
|
|
12
|
+
var _c = __read(useState(false), 2), show = _c[0], setShow = _c[1];
|
|
13
|
+
var triggerRef = useRef(null);
|
|
14
|
+
text = replaceTextVariables(text, repeat);
|
|
15
|
+
if (!text)
|
|
16
|
+
return null;
|
|
17
|
+
var isMobile$1 = isMobile();
|
|
18
|
+
return (jsxs(Fragment, { children: [jsx("div", __assign({ ref: triggerRef,
|
|
19
|
+
// this prevents needing to click twice on mobile
|
|
20
|
+
onMouseEnter: isMobile$1 ? undefined : function () { return setShow(true); }, onMouseLeave: isMobile$1 ? undefined : function () { return setShow(false); }, onFocus: function () { return setShow(true); }, onBlur: function () { return setShow(false); }, onClick: function () { return setShow(function (prev) { return !prev; }); }, css: absolute
|
|
21
|
+
? {
|
|
22
|
+
position: 'absolute',
|
|
23
|
+
insetInlineEnd: '10px',
|
|
24
|
+
top: 0,
|
|
25
|
+
bottom: 0,
|
|
26
|
+
zIndex: FORM_Z_INDEX,
|
|
27
|
+
margin: 'auto',
|
|
28
|
+
cursor: 'pointer',
|
|
29
|
+
height: '100%',
|
|
30
|
+
display: 'flex'
|
|
31
|
+
}
|
|
32
|
+
: {
|
|
33
|
+
position: 'relative',
|
|
34
|
+
marginInlineStart: '8px',
|
|
35
|
+
display: 'flex',
|
|
36
|
+
alignItems: 'center'
|
|
37
|
+
} }, { children: jsx(HelpIcon, { cssStyles: responsiveStyles.getTarget('tooltipIcon') }) })), jsx(Overlay, __assign({ show: show, targetRef: triggerRef, containerRef: containerRef, placement: 'left', onHide: function () { return setShow(false); }, offset: 8 }, { children: jsx(Tooltip, __assign({ id: "tooltip-".concat(id), css: {
|
|
38
|
+
zIndex: FORM_Z_INDEX + 1,
|
|
39
|
+
padding: '.4rem 0',
|
|
40
|
+
transition: 'opacity .10s linear',
|
|
41
|
+
'.tooltip-inner': {
|
|
42
|
+
maxWidth: '200px',
|
|
43
|
+
padding: '.25rem .5rem',
|
|
44
|
+
color: '#fff',
|
|
45
|
+
textAlign: 'center',
|
|
46
|
+
backgroundColor: '#000',
|
|
47
|
+
borderRadius: '.25rem',
|
|
48
|
+
fontSize: 'smaller'
|
|
49
|
+
}
|
|
50
|
+
} }, { children: text })) }))] }));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export { InlineTooltip as I };
|