@oneblink/apps-react 2.2.0 → 2.3.0-beta.2
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/OneBlinkAutoSaveForm.d.ts +10 -10
- package/dist/OneBlinkAutoSaveForm.js +28 -28
- package/dist/OneBlinkForm.d.ts +11 -11
- package/dist/OneBlinkForm.js +11 -11
- package/dist/OneBlinkFormBase.d.ts +28 -28
- package/dist/OneBlinkFormBase.js +472 -472
- package/dist/OneBlinkFormStoreView.d.ts +8 -0
- package/dist/OneBlinkFormStoreView.js +55 -0
- package/dist/OneBlinkFormStoreView.js.map +1 -0
- package/dist/OneBlinkReadOnlyForm.d.ts +11 -11
- package/dist/OneBlinkReadOnlyForm.js +48 -48
- package/dist/components/AnnotationModal.d.ts +8 -0
- package/dist/components/AnnotationModal.js +104 -0
- package/dist/components/AnnotationModal.js.map +1 -0
- package/dist/components/AutocompleteDropdown.d.ts +26 -0
- package/dist/components/AutocompleteDropdown.js +174 -0
- package/dist/components/AutocompleteDropdown.js.map +1 -0
- package/dist/components/CopyToClipboardButton.d.ts +9 -0
- package/dist/components/CopyToClipboardButton.js +14 -0
- package/dist/components/CopyToClipboardButton.js.map +1 -0
- package/dist/components/CopyToClipboardIconButton.d.ts +10 -10
- package/dist/components/CopyToClipboardIconButton.js +32 -32
- package/dist/components/CustomAccordion.d.ts +27 -27
- package/dist/components/CustomAccordion.js +37 -37
- package/dist/components/CustomisableButtonInner.d.ts +7 -0
- package/dist/components/CustomisableButtonInner.js +9 -0
- package/dist/components/CustomisableButtonInner.js.map +1 -0
- package/dist/components/ErrorMessage.d.ts +13 -0
- package/dist/components/ErrorMessage.js +13 -0
- package/dist/components/ErrorMessage.js.map +1 -0
- package/dist/components/ErrorSnackbar.d.ts +8 -8
- package/dist/components/ErrorSnackbar.js +25 -25
- package/dist/components/FormElementLabelContainer.d.ts +12 -0
- package/dist/components/FormElementLabelContainer.js +16 -0
- package/dist/components/FormElementLabelContainer.js.map +1 -0
- package/dist/components/FormElementOptions.d.ts +9 -0
- package/dist/components/FormElementOptions.js +15 -0
- package/dist/components/FormElementOptions.js.map +1 -0
- package/dist/components/Lists.d.ts +25 -25
- package/dist/components/Lists.js +44 -44
- package/dist/components/LoadingWithMessage.d.ts +6 -6
- package/dist/components/LoadingWithMessage.js +11 -11
- package/dist/components/LookupButton.d.ts +10 -0
- package/dist/components/LookupButton.js +30 -0
- package/dist/components/LookupButton.js.map +1 -0
- package/dist/components/LookupNotification.d.ts +12 -0
- package/dist/components/LookupNotification.js +231 -0
- package/dist/components/LookupNotification.js.map +1 -0
- package/dist/components/Modal.d.ts +14 -0
- package/dist/components/Modal.js +15 -0
- package/dist/components/Modal.js.map +1 -0
- package/dist/components/NoResourcesYet.d.ts +12 -0
- package/dist/components/NoResourcesYet.js +7 -0
- package/dist/components/NoResourcesYet.js.map +1 -0
- package/dist/components/OnLoading.d.ts +10 -0
- package/dist/components/OnLoading.js +12 -0
- package/dist/components/OnLoading.js.map +1 -0
- package/dist/components/OneBlinkAppsErrorOriginalMessage.d.ts +7 -0
- package/dist/components/OneBlinkAppsErrorOriginalMessage.js +13 -0
- package/dist/components/OneBlinkAppsErrorOriginalMessage.js.map +1 -0
- package/dist/components/OneBlinkFormElements.d.ts +19 -0
- package/dist/components/OneBlinkFormElements.js +196 -0
- package/dist/components/OneBlinkFormElements.js.map +1 -0
- package/dist/components/PageFormElements.d.ts +17 -0
- package/dist/components/PageFormElements.js +49 -0
- package/dist/components/PageFormElements.js.map +1 -0
- package/dist/components/ToggleAllCheckbox.d.ts +13 -0
- package/dist/components/ToggleAllCheckbox.js +27 -0
- package/dist/components/ToggleAllCheckbox.js.map +1 -0
- package/dist/components/attachments/AttachmentStatus.d.ts +12 -0
- package/dist/components/attachments/AttachmentStatus.js +35 -0
- package/dist/components/attachments/AttachmentStatus.js.map +1 -0
- package/dist/components/attachments/FileCard.d.ts +18 -0
- package/dist/components/attachments/FileCard.js +58 -0
- package/dist/components/attachments/FileCard.js.map +1 -0
- package/dist/components/attachments/FileCardContent.d.ts +5 -0
- package/dist/components/attachments/FileCardContent.js +11 -0
- package/dist/components/attachments/FileCardContent.js.map +1 -0
- package/dist/components/attachments/Files.d.ts +14 -0
- package/dist/components/attachments/Files.js +27 -0
- package/dist/components/attachments/Files.js.map +1 -0
- package/dist/components/attachments/ImagePreviewUnavailable.d.ts +4 -0
- package/dist/components/attachments/ImagePreviewUnavailable.js +12 -0
- package/dist/components/attachments/ImagePreviewUnavailable.js.map +1 -0
- package/dist/components/attachments/UploadingAttachment.d.ts +4 -0
- package/dist/components/attachments/UploadingAttachment.js +13 -0
- package/dist/components/attachments/UploadingAttachment.js.map +1 -0
- package/dist/components/formStore/ColumnsConfigurationButton.d.ts +10 -0
- package/dist/components/formStore/ColumnsConfigurationButton.js +29 -0
- package/dist/components/formStore/ColumnsConfigurationButton.js.map +1 -0
- package/dist/components/formStore/DownloadSubmissionDataButton.d.ts +13 -0
- package/dist/components/formStore/DownloadSubmissionDataButton.js +45 -0
- package/dist/components/formStore/DownloadSubmissionDataButton.js.map +1 -0
- package/dist/components/formStore/FormStore.d.ts +9 -0
- package/dist/components/formStore/FormStore.js +103 -0
- package/dist/components/formStore/FormStore.js.map +1 -0
- package/dist/components/formStore/FormStoreTableProvider.d.ts +6 -6
- package/dist/components/formStore/FormStoreTableProvider.js +90 -90
- package/dist/components/formStore/OneBlinkFormStoreClearFiltersButton.d.ts +5 -5
- package/dist/components/formStore/OneBlinkFormStoreClearFiltersButton.js +19 -19
- package/dist/components/formStore/OneBlinkFormStoreColumnsButton.d.ts +5 -5
- package/dist/components/formStore/OneBlinkFormStoreColumnsButton.js +66 -66
- package/dist/components/formStore/OneBlinkFormStoreDownloadButton.d.ts +5 -5
- package/dist/components/formStore/OneBlinkFormStoreDownloadButton.js +86 -86
- package/dist/components/formStore/OneBlinkFormStoreProvider.d.ts +8 -8
- package/dist/components/formStore/OneBlinkFormStoreProvider.js +24 -24
- package/dist/components/formStore/OneBlinkFormStoreRefreshButton.d.ts +5 -5
- package/dist/components/formStore/OneBlinkFormStoreRefreshButton.js +11 -11
- package/dist/components/formStore/OneBlinkFormStoreTable.d.ts +4 -4
- package/dist/components/formStore/OneBlinkFormStoreTable.js +194 -194
- package/dist/components/formStore/display/ElementDisplay.d.ts +23 -23
- package/dist/components/formStore/display/ElementDisplay.js +77 -77
- package/dist/components/formStore/display/FormStoreIcon.d.ts +2 -2
- package/dist/components/formStore/display/FormStoreIcon.js +2 -2
- package/dist/components/formStore/table/ActionedByTableCell.d.ts +11 -11
- package/dist/components/formStore/table/ActionedByTableCell.js +43 -43
- package/dist/components/formStore/table/ColumnFilters.d.ts +9 -9
- package/dist/components/formStore/table/ColumnFilters.js +179 -179
- package/dist/components/formStore/table/FormElementTableCell.d.ts +10 -10
- package/dist/components/formStore/table/FormElementTableCell.js +228 -228
- package/dist/components/formStore/table/HeaderCellMoreButton.d.ts +9 -9
- package/dist/components/formStore/table/HeaderCellMoreButton.js +48 -48
- package/dist/components/formStore/table/RepeatableSetCell.d.ts +8 -8
- package/dist/components/formStore/table/RepeatableSetCell.js +62 -62
- package/dist/components/formStore/table/RepeatableSetCellAccordion.d.ts +9 -9
- package/dist/components/formStore/table/RepeatableSetCellAccordion.js +11 -11
- package/dist/components/formStore/table/TableCellCopyButton.d.ts +7 -7
- package/dist/components/formStore/table/TableCellCopyButton.js +27 -27
- package/dist/components/formStore/table/generateColumns.d.ts +24 -24
- package/dist/components/formStore/table/generateColumns.js +290 -290
- package/dist/components/formStore/table/index.d.ts +17 -0
- package/dist/components/formStore/table/index.js +194 -0
- package/dist/components/formStore/table/index.js.map +1 -0
- package/dist/components/formStore/table/useFormStoreTable.d.ts +52 -52
- package/dist/components/formStore/table/useFormStoreTable.js +157 -157
- package/dist/components/formStore/useFormStoreTableContext.d.ts +44 -44
- package/dist/components/formStore/useFormStoreTableContext.js +9 -9
- package/dist/components/messages/ErrorMessage.d.ts +12 -12
- package/dist/components/messages/ErrorMessage.js +12 -12
- package/dist/components/messages/LargeIconMessage.d.ts +18 -18
- package/dist/components/messages/LargeIconMessage.js +33 -33
- package/dist/components/messages/NoResourcesYet.d.ts +11 -11
- package/dist/components/messages/NoResourcesYet.js +6 -6
- package/dist/components/pickers/V4CompatibleDatePicker.d.ts +32 -32
- package/dist/components/pickers/V4CompatibleDatePicker.js +70 -70
- package/dist/components/pickers/V4CompatibleDateTimePicker.d.ts +32 -32
- package/dist/components/pickers/V4CompatibleDateTimePicker.js +70 -70
- package/dist/components/pickers/V4CompatibleTimePicker.d.ts +28 -28
- package/dist/components/pickers/V4CompatibleTimePicker.js +53 -53
- package/dist/components/renderer/AnnotationModal.d.ts +8 -8
- package/dist/components/renderer/AnnotationModal.js +101 -101
- package/dist/components/renderer/AutocompleteDropdown.d.ts +26 -26
- package/dist/components/renderer/AutocompleteDropdown.js +175 -175
- package/dist/components/renderer/CopyToClipboardButton.d.ts +8 -8
- package/dist/components/renderer/CopyToClipboardButton.js +13 -13
- package/dist/components/renderer/CustomisableButtonInner.d.ts +7 -7
- package/dist/components/renderer/CustomisableButtonInner.js +8 -8
- package/dist/components/renderer/FormElementLabelContainer.d.ts +12 -12
- package/dist/components/renderer/FormElementLabelContainer.js +15 -15
- package/dist/components/renderer/FormElementOptions.d.ts +9 -9
- package/dist/components/renderer/FormElementOptions.js +14 -14
- package/dist/components/renderer/LookupButton.d.ts +10 -10
- package/dist/components/renderer/LookupButton.js +29 -29
- package/dist/components/renderer/LookupNotification.d.ts +12 -12
- package/dist/components/renderer/LookupNotification.js +230 -230
- package/dist/components/renderer/Modal.d.ts +14 -14
- package/dist/components/renderer/Modal.js +14 -14
- package/dist/components/renderer/OnLoading.d.ts +10 -10
- package/dist/components/renderer/OnLoading.js +11 -11
- package/dist/components/renderer/OneBlinkAppsErrorOriginalMessage.d.ts +7 -7
- package/dist/components/renderer/OneBlinkAppsErrorOriginalMessage.js +12 -12
- package/dist/components/renderer/OneBlinkFormElements.d.ts +19 -19
- package/dist/components/renderer/OneBlinkFormElements.js +202 -202
- package/dist/components/renderer/PageFormElements.d.ts +17 -17
- package/dist/components/renderer/PageFormElements.js +48 -48
- package/dist/components/renderer/ProgressBar.d.ts +7 -0
- package/dist/components/renderer/ProgressBar.js +7 -0
- package/dist/components/renderer/ProgressBar.js.map +1 -0
- package/dist/components/renderer/ToggleAllCheckbox.d.ts +13 -13
- package/dist/components/renderer/ToggleAllCheckbox.js +26 -26
- package/dist/components/renderer/attachments/AttachmentStatus.d.ts +10 -10
- package/dist/components/renderer/attachments/AttachmentStatus.js +36 -30
- package/dist/components/renderer/attachments/AttachmentStatus.js.map +1 -1
- package/dist/components/renderer/attachments/FileCard.d.ts +19 -18
- package/dist/components/renderer/attachments/FileCard.js +60 -57
- package/dist/components/renderer/attachments/FileCard.js.map +1 -1
- package/dist/components/renderer/attachments/FileCardContent.d.ts +5 -5
- package/dist/components/renderer/attachments/FileCardContent.js +10 -10
- package/dist/components/renderer/attachments/Files.d.ts +14 -0
- package/dist/components/renderer/attachments/Files.js +27 -0
- package/dist/components/renderer/attachments/Files.js.map +1 -0
- package/dist/components/renderer/attachments/ImagePreviewUnavailable.d.ts +4 -4
- package/dist/components/renderer/attachments/ImagePreviewUnavailable.js +11 -11
- package/dist/components/renderer/attachments/ProgressBar.d.ts +8 -0
- package/dist/components/renderer/attachments/ProgressBar.js +34 -0
- package/dist/components/renderer/attachments/ProgressBar.js.map +1 -0
- package/dist/components/renderer/attachments/UploadingAttachment.d.ts +4 -4
- package/dist/components/renderer/attachments/UploadingAttachment.js +12 -12
- package/dist/form-elements/ComplianceButton.d.ts +10 -10
- package/dist/form-elements/ComplianceButton.js +11 -11
- package/dist/form-elements/FormElementABN.d.ts +14 -14
- package/dist/form-elements/FormElementABN.js +155 -155
- package/dist/form-elements/FormElementAutocomplete.d.ts +19 -19
- package/dist/form-elements/FormElementAutocomplete.js +81 -81
- package/dist/form-elements/FormElementBSB.d.ts +18 -18
- package/dist/form-elements/FormElementBSB.js +100 -100
- package/dist/form-elements/FormElementBarcodeScanner.d.ts +14 -14
- package/dist/form-elements/FormElementBarcodeScanner.js +306 -306
- package/dist/form-elements/FormElementBoolean.d.ts +14 -14
- package/dist/form-elements/FormElementBoolean.js +16 -16
- package/dist/form-elements/FormElementCalculation.d.ts +11 -11
- package/dist/form-elements/FormElementCalculation.js +179 -179
- package/dist/form-elements/FormElementCamera.d.ts +15 -15
- package/dist/form-elements/FormElementCamera.js +227 -220
- package/dist/form-elements/FormElementCamera.js.map +1 -1
- package/dist/form-elements/FormElementCaptcha.d.ts +12 -12
- package/dist/form-elements/FormElementCaptcha.js +14 -14
- package/dist/form-elements/FormElementCheckBoxes.d.ts +15 -15
- package/dist/form-elements/FormElementCheckBoxes.js +64 -64
- package/dist/form-elements/FormElementCivicaNameRecord.d.ts +8 -8
- package/dist/form-elements/FormElementCivicaNameRecord.js +51 -51
- package/dist/form-elements/FormElementCivicaStreetName.d.ts +15 -15
- package/dist/form-elements/FormElementCivicaStreetName.js +38 -38
- package/dist/form-elements/FormElementCompliance.d.ts +22 -22
- package/dist/form-elements/FormElementCompliance.js +129 -129
- package/dist/form-elements/FormElementDate.d.ts +14 -14
- package/dist/form-elements/FormElementDate.js +74 -74
- package/dist/form-elements/FormElementDateTime.d.ts +14 -14
- package/dist/form-elements/FormElementDateTime.js +67 -67
- package/dist/form-elements/FormElementEmail.d.ts +14 -14
- package/dist/form-elements/FormElementEmail.js +22 -22
- package/dist/form-elements/FormElementFile.d.ts +13 -13
- package/dist/form-elements/FormElementFile.js +31 -31
- package/dist/form-elements/FormElementFile.js.map +1 -1
- package/dist/form-elements/FormElementFiles/FormElementFile.d.ts +13 -0
- package/dist/form-elements/FormElementFiles/FormElementFile.js +32 -0
- package/dist/form-elements/FormElementFiles/FormElementFile.js.map +1 -0
- package/dist/form-elements/FormElementFiles/FormElementFileDisplay.d.ts +10 -0
- package/dist/form-elements/FormElementFiles/FormElementFileDisplay.js +11 -0
- package/dist/form-elements/FormElementFiles/FormElementFileDisplay.js.map +1 -0
- package/dist/form-elements/FormElementFiles/FormElementFiles.d.ts +15 -0
- package/dist/form-elements/FormElementFiles/FormElementFiles.js +17 -0
- package/dist/form-elements/FormElementFiles/FormElementFiles.js.map +1 -0
- package/dist/form-elements/FormElementFiles/FormElementFilesInvalidAttachment.d.ts +7 -0
- package/dist/form-elements/FormElementFiles/FormElementFilesInvalidAttachment.js +11 -0
- package/dist/form-elements/FormElementFiles/FormElementFilesInvalidAttachment.js.map +1 -0
- package/dist/form-elements/FormElementFiles/index.d.ts +17 -0
- package/dist/form-elements/FormElementFiles/index.js +18 -0
- package/dist/form-elements/FormElementFiles/index.js.map +1 -0
- package/dist/form-elements/FormElementFiles/legacy/FormElementFiles.d.ts +18 -0
- package/dist/form-elements/FormElementFiles/legacy/FormElementFiles.js +61 -0
- package/dist/form-elements/FormElementFiles/legacy/FormElementFiles.js.map +1 -0
- package/dist/form-elements/FormElementFiles.d.ts +15 -15
- package/dist/form-elements/FormElementFiles.js +42 -42
- package/dist/form-elements/FormElementForm.d.ts +17 -17
- package/dist/form-elements/FormElementForm.js +63 -63
- package/dist/form-elements/FormElementFreshdeskDependentField.d.ts +8 -8
- package/dist/form-elements/FormElementFreshdeskDependentField.js +15 -15
- package/dist/form-elements/FormElementGeoscapeAddress.d.ts +15 -15
- package/dist/form-elements/FormElementGeoscapeAddress.js +62 -62
- package/dist/form-elements/FormElementHTML.d.ts +8 -8
- package/dist/form-elements/FormElementHTML.js +15 -15
- package/dist/form-elements/FormElementHeading.d.ts +8 -8
- package/dist/form-elements/FormElementHeading.js +23 -23
- package/dist/form-elements/FormElementImage.d.ts +8 -8
- package/dist/form-elements/FormElementImage.js +6 -6
- package/dist/form-elements/FormElementLocation.d.ts +20 -20
- package/dist/form-elements/FormElementLocation.js +204 -204
- package/dist/form-elements/FormElementNumber.d.ts +14 -14
- package/dist/form-elements/FormElementNumber.js +72 -72
- package/dist/form-elements/FormElementPointAddress.d.ts +15 -15
- package/dist/form-elements/FormElementPointAddress.js +69 -69
- package/dist/form-elements/FormElementRadio.d.ts +15 -15
- package/dist/form-elements/FormElementRadio.js +41 -41
- package/dist/form-elements/FormElementRepeatableSet.d.ts +19 -19
- package/dist/form-elements/FormElementRepeatableSet.js +126 -126
- package/dist/form-elements/FormElementSection.d.ts +8 -8
- package/dist/form-elements/FormElementSection.js +69 -69
- package/dist/form-elements/FormElementSelect.d.ts +15 -15
- package/dist/form-elements/FormElementSelect.js +44 -44
- package/dist/form-elements/FormElementSignature.d.ts +15 -15
- package/dist/form-elements/FormElementSignature.js +138 -135
- package/dist/form-elements/FormElementSignature.js.map +1 -1
- package/dist/form-elements/FormElementSummary.d.ts +11 -11
- package/dist/form-elements/FormElementSummary.js +159 -159
- package/dist/form-elements/FormElementTelephone.d.ts +14 -14
- package/dist/form-elements/FormElementTelephone.js +22 -22
- package/dist/form-elements/FormElementText.d.ts +14 -14
- package/dist/form-elements/FormElementText.js +29 -29
- package/dist/form-elements/FormElementTextarea.d.ts +14 -14
- package/dist/form-elements/FormElementTextarea.js +30 -30
- package/dist/form-elements/FormElementTime.d.ts +14 -14
- package/dist/form-elements/FormElementTime.js +53 -53
- package/dist/form-elements/OptionButton.d.ts +11 -11
- package/dist/form-elements/OptionButton.js +9 -9
- package/dist/hooks/attachments/useAttachment.d.ts +12 -11
- package/dist/hooks/attachments/useAttachment.js +242 -235
- package/dist/hooks/attachments/useAttachment.js.map +1 -1
- package/dist/hooks/attachments/useAttachmentBlobs.d.ts +19 -19
- package/dist/hooks/attachments/useAttachmentBlobs.js +23 -23
- package/dist/hooks/attachments/useAttachmentObjectURLs.d.ts +24 -0
- package/dist/hooks/attachments/useAttachmentObjectURLs.js +37 -0
- package/dist/hooks/attachments/useAttachmentObjectURLs.js.map +1 -0
- package/dist/hooks/attachments/useAttachments.d.ts +10 -10
- package/dist/hooks/attachments/useAttachments.js +69 -69
- package/dist/hooks/attachments/useLocalAttachmentBlobs.d.ts +24 -0
- package/dist/hooks/attachments/useLocalAttachmentBlobs.js +40 -0
- package/dist/hooks/attachments/useLocalAttachmentBlobs.js.map +1 -0
- package/dist/hooks/useAbnLookupAuthenticationGuid.d.ts +3 -3
- package/dist/hooks/useAbnLookupAuthenticationGuid.js +5 -5
- package/dist/hooks/useAuth.d.ts +15 -15
- package/dist/hooks/useAuth.js +42 -42
- package/dist/hooks/useBooleanState.d.ts +5 -5
- package/dist/hooks/useBooleanState.js +8 -8
- package/dist/hooks/useButtonsConfiguration.d.ts +45 -0
- package/dist/hooks/useButtonsConfiguration.js +6 -0
- package/dist/hooks/useButtonsConfiguration.js.map +1 -0
- package/dist/hooks/useCaptchaSiteKey.d.ts +3 -3
- package/dist/hooks/useCaptchaSiteKey.js +5 -5
- package/dist/hooks/useChangeEffect.d.ts +1 -0
- package/dist/hooks/useChangeEffect.js +14 -0
- package/dist/hooks/useChangeEffect.js.map +1 -0
- package/dist/hooks/useClickOutsideElement.d.ts +3 -3
- package/dist/hooks/useClickOutsideElement.js +14 -14
- package/dist/hooks/useConditionalLogic.d.ts +6 -6
- package/dist/hooks/useConditionalLogic.js +22 -22
- package/dist/hooks/useConditionallyShowOptionCallback.d.ts +5 -0
- package/dist/hooks/useConditionallyShowOptionCallback.js +20 -0
- package/dist/hooks/useConditionallyShowOptionCallback.js.map +1 -0
- package/dist/hooks/useContrastColor.d.ts +2 -2
- package/dist/hooks/useContrastColor.js +12 -12
- package/dist/hooks/useCustomValidation.d.ts +1 -0
- package/dist/hooks/useCustomValidation.js +9 -0
- package/dist/hooks/useCustomValidation.js.map +1 -0
- package/dist/hooks/useDynamicOptionsLoaderEffect.d.ts +7 -0
- package/dist/hooks/useDynamicOptionsLoaderEffect.js +45 -0
- package/dist/hooks/useDynamicOptionsLoaderEffect.js.map +1 -0
- package/dist/hooks/useDynamicOptionsLoaderState.d.ts +7 -7
- package/dist/hooks/useDynamicOptionsLoaderState.js +44 -44
- package/dist/hooks/useExecutedLookupCallback.d.ts +12 -12
- package/dist/hooks/useExecutedLookupCallback.js +15 -15
- package/dist/hooks/useFlatpickr.d.ts +10 -10
- package/dist/hooks/useFlatpickr.js +73 -73
- package/dist/hooks/useFlatpickrGuid.d.ts +7 -7
- package/dist/hooks/useFlatpickrGuid.js +11 -11
- package/dist/hooks/useFlattenElementsContext.d.ts +2 -2
- package/dist/hooks/useFlattenElementsContext.js +7 -7
- package/dist/hooks/useFormDefinition.d.ts +4 -4
- package/dist/hooks/useFormDefinition.js +9 -9
- package/dist/hooks/useFormElementOptions.d.ts +9 -9
- package/dist/hooks/useFormElementOptions.js +35 -35
- package/dist/hooks/useFormIsReadOnly.d.ts +3 -3
- package/dist/hooks/useFormIsReadOnly.js +5 -5
- package/dist/hooks/useFormSubmissionAutoSaveState.d.ts +24 -24
- package/dist/hooks/useFormSubmissionAutoSaveState.js +145 -145
- package/dist/hooks/useFormSubmissionModelContext.d.ts +15 -15
- package/dist/hooks/useFormSubmissionModelContext.js +32 -32
- package/dist/hooks/useFormSubmissionState.d.ts +10 -10
- package/dist/hooks/useFormSubmissionState.js +13 -13
- package/dist/hooks/useFormValidation.d.ts +7 -7
- package/dist/hooks/useFormValidation.js +29 -29
- package/dist/hooks/useGoogleMapsApiKey.d.ts +3 -3
- package/dist/hooks/useGoogleMapsApiKey.js +5 -5
- package/dist/hooks/useInfiniteScrollDataLoad.d.ts +30 -30
- package/dist/hooks/useInfiniteScrollDataLoad.js +124 -124
- package/dist/hooks/useInjectPages.d.ts +7 -7
- package/dist/hooks/useInjectPages.js +5 -5
- package/dist/hooks/useIsHovering.d.ts +5 -5
- package/dist/hooks/useIsHovering.js +12 -12
- package/dist/hooks/useIsMounted.d.ts +3 -3
- package/dist/hooks/useIsMounted.js +11 -11
- package/dist/hooks/useIsOffline.d.ts +6 -6
- package/dist/hooks/useIsOffline.js +26 -26
- package/dist/hooks/useIsPageVisible.d.ts +9 -9
- package/dist/hooks/useIsPageVisible.js +8 -8
- package/dist/hooks/useLegacyElements.d.ts +16 -0
- package/dist/hooks/useLegacyElements.js +55 -0
- package/dist/hooks/useLegacyElements.js.map +1 -0
- package/dist/hooks/useLoadDataState.d.ts +15 -15
- package/dist/hooks/useLoadDataState.js +54 -54
- package/dist/hooks/useLogin.d.ts +46 -46
- package/dist/hooks/useLogin.js +295 -295
- package/dist/hooks/useLookupNotification.d.ts +9 -9
- package/dist/hooks/useLookupNotification.js +10 -10
- package/dist/hooks/useLookups.d.ts +5 -5
- package/dist/hooks/useLookups.js +62 -62
- package/dist/hooks/useNullableState.d.ts +2 -2
- package/dist/hooks/useNullableState.js +6 -6
- package/dist/hooks/usePages.d.ts +24 -24
- package/dist/hooks/usePages.js +141 -141
- package/dist/hooks/useQuery.d.ts +2 -2
- package/dist/hooks/useQuery.js +7 -7
- package/dist/hooks/useSubmissionIdIsValid.d.ts +3 -3
- package/dist/hooks/useSubmissionIdIsValid.js +19 -19
- package/dist/hooks/useToggleAll.d.ts +6 -0
- package/dist/hooks/useToggleAll.js +24 -0
- package/dist/hooks/useToggleAll.js.map +1 -0
- package/dist/hooks/useToggleComplianceChildren.d.ts +3 -3
- package/dist/hooks/useToggleComplianceChildren.js +13 -13
- package/dist/index.d.ts +23 -22
- package/dist/index.js +23 -22
- package/dist/index.js.map +1 -1
- package/dist/services/attachments.d.ts +10 -10
- package/dist/services/attachments.js +72 -72
- package/dist/services/barcode-readers/quagger.d.ts +1 -1
- package/dist/services/barcode-readers/quagger.js +34 -34
- package/dist/services/blob-utils.d.ts +5 -5
- package/dist/services/blob-utils.js +73 -73
- package/dist/services/checkBsbsAreInvalid.d.ts +3 -3
- package/dist/services/checkBsbsAreInvalid.js +40 -40
- package/dist/services/checkIfAttachmentsAreUploading.d.ts +3 -3
- package/dist/services/checkIfAttachmentsAreUploading.js +57 -57
- package/dist/services/checkIfAttachmentsExist.d.ts +5 -5
- package/dist/services/checkIfAttachmentsExist.js +144 -144
- package/dist/services/checkIfBsbsAreValidating.d.ts +3 -3
- package/dist/services/checkIfBsbsAreValidating.js +40 -40
- package/dist/services/clean-form-elements-ctrl-model.d.ts +4 -0
- package/dist/services/clean-form-elements-ctrl-model.js +166 -0
- package/dist/services/clean-form-elements-ctrl-model.js.map +1 -0
- package/dist/services/cleanFormSubmissionModel.d.ts +6 -6
- package/dist/services/cleanFormSubmissionModel.js +203 -203
- package/dist/services/conditionally-show-element.d.ts +11 -0
- package/dist/services/conditionally-show-element.js +92 -0
- package/dist/services/conditionally-show-element.js.map +1 -0
- package/dist/services/conditionally-show-option.d.ts +3 -0
- package/dist/services/conditionally-show-option.js +135 -0
- package/dist/services/conditionally-show-option.js.map +1 -0
- package/dist/services/defaultCoordinates.d.ts +5 -5
- package/dist/services/defaultCoordinates.js +8 -8
- package/dist/services/download-file.d.ts +3 -3
- package/dist/services/download-file.js +90 -90
- package/dist/services/drawTimestampOnCanvas.d.ts +1 -1
- package/dist/services/drawTimestampOnCanvas.js +22 -22
- package/dist/services/flattenFormElements.d.ts +2 -0
- package/dist/services/flattenFormElements.js +13 -0
- package/dist/services/flattenFormElements.js.map +1 -0
- package/dist/services/form-validation.d.ts +10 -10
- package/dist/services/form-validation.js +561 -561
- package/dist/services/generate-default-data.d.ts +13 -13
- package/dist/services/generate-default-data.js +494 -494
- package/dist/services/generateCivicaNameRecordElements.d.ts +2 -2
- package/dist/services/generateCivicaNameRecordElements.js +140 -140
- package/dist/services/generateFreshdeskDependentFieldElements.d.ts +2 -2
- package/dist/services/generateFreshdeskDependentFieldElements.js +69 -69
- package/dist/services/getCorrectDateFromDateOnlyString.d.ts +2 -0
- package/dist/services/getCorrectDateFromDateOnlyString.js +4 -0
- package/dist/services/getCorrectDateFromDateOnlyString.js.map +1 -0
- package/dist/services/sanitize-html.d.ts +2 -2
- package/dist/services/sanitize-html.js +20 -20
- package/dist/services/scrolling-service.d.ts +7 -7
- package/dist/services/scrolling-service.js +38 -38
- package/dist/services/utils-service.d.ts +5 -5
- package/dist/services/utils-service.js +16 -16
- package/dist/styles/boolean.scss +12 -0
- package/dist/styles/ob-file.scss +63 -0
- package/dist/styles/progress.scss +8 -0
- package/dist/styles.css +7 -0
- package/dist/styles.css.map +1 -1
- package/dist/styles.scss +1 -0
- package/dist/types/attachments.d.ts +19 -19
- package/dist/types/attachments.js +1 -1
- package/dist/types/form.d.ts +40 -40
- package/dist/types/form.js +2 -2
- package/package.json +2 -2
@@ -1,10 +1,10 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import { IconButton } from '@mui/material';
|
3
|
-
declare type Props = {
|
4
|
-
text: string;
|
5
|
-
large?: boolean;
|
6
|
-
noMarginY?: boolean;
|
7
|
-
} & React.ComponentProps<typeof IconButton>;
|
8
|
-
export declare function CopyToClipBoardIconButton({ text, large, noMarginY, className, ...rest }: Props): JSX.Element;
|
9
|
-
declare const _default: React.MemoExoticComponent<typeof CopyToClipBoardIconButton>;
|
10
|
-
export default _default;
|
1
|
+
import * as React from 'react';
|
2
|
+
import { IconButton } from '@mui/material';
|
3
|
+
declare type Props = {
|
4
|
+
text: string;
|
5
|
+
large?: boolean;
|
6
|
+
noMarginY?: boolean;
|
7
|
+
} & React.ComponentProps<typeof IconButton>;
|
8
|
+
export declare function CopyToClipBoardIconButton({ text, large, noMarginY, className, ...rest }: Props): JSX.Element;
|
9
|
+
declare const _default: React.MemoExoticComponent<typeof CopyToClipBoardIconButton>;
|
10
|
+
export default _default;
|
@@ -1,33 +1,33 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import copy from 'copy-to-clipboard';
|
3
|
-
import { IconButton, Tooltip, Snackbar } from '@mui/material';
|
4
|
-
import FileCopy from '@mui/icons-material/FileCopy';
|
5
|
-
const noMargin = {
|
6
|
-
marginTop: -1,
|
7
|
-
marginBottom: -1,
|
8
|
-
};
|
9
|
-
export function CopyToClipBoardIconButton({ text, large, noMarginY, className, ...rest }) {
|
10
|
-
const [isCopyToClipboardOpen, setIsCopyToClipboardOpen] = React.useState(false);
|
11
|
-
const copyToClipboard = React.useCallback(() => {
|
12
|
-
copy(text);
|
13
|
-
setIsCopyToClipboardOpen(true);
|
14
|
-
}, [text]);
|
15
|
-
const handleClose = React.useCallback(() => {
|
16
|
-
setIsCopyToClipboardOpen(false);
|
17
|
-
}, []);
|
18
|
-
return (React.createElement(React.Fragment, null,
|
19
|
-
React.createElement(Tooltip, { title: "Copy to clipboard" },
|
20
|
-
React.createElement(IconButton, { onClick: (e) => {
|
21
|
-
e.stopPropagation();
|
22
|
-
copyToClipboard();
|
23
|
-
}, "data-cypress": "copy-to-clip-board-button", className: className, sx: noMarginY ? noMargin : undefined, ...rest },
|
24
|
-
React.createElement(FileCopy, { sx: large ? undefined : { fontSize: 18 } }))),
|
25
|
-
React.createElement(Snackbar, { anchorOrigin: {
|
26
|
-
vertical: 'bottom',
|
27
|
-
horizontal: 'right',
|
28
|
-
}, open: isCopyToClipboardOpen, onClose: handleClose, autoHideDuration: 1500, ContentProps: {
|
29
|
-
'aria-describedby': 'copy-clip-board-message-id',
|
30
|
-
}, message: React.createElement("span", { id: "copy-clip-board-message-id", "data-cypress": "copied-text-to-clip-board-message" }, "Copied to Clipboard") })));
|
31
|
-
}
|
32
|
-
export default React.memo(CopyToClipBoardIconButton);
|
1
|
+
import * as React from 'react';
|
2
|
+
import copy from 'copy-to-clipboard';
|
3
|
+
import { IconButton, Tooltip, Snackbar } from '@mui/material';
|
4
|
+
import FileCopy from '@mui/icons-material/FileCopy';
|
5
|
+
const noMargin = {
|
6
|
+
marginTop: -1,
|
7
|
+
marginBottom: -1,
|
8
|
+
};
|
9
|
+
export function CopyToClipBoardIconButton({ text, large, noMarginY, className, ...rest }) {
|
10
|
+
const [isCopyToClipboardOpen, setIsCopyToClipboardOpen] = React.useState(false);
|
11
|
+
const copyToClipboard = React.useCallback(() => {
|
12
|
+
copy(text);
|
13
|
+
setIsCopyToClipboardOpen(true);
|
14
|
+
}, [text]);
|
15
|
+
const handleClose = React.useCallback(() => {
|
16
|
+
setIsCopyToClipboardOpen(false);
|
17
|
+
}, []);
|
18
|
+
return (React.createElement(React.Fragment, null,
|
19
|
+
React.createElement(Tooltip, { title: "Copy to clipboard" },
|
20
|
+
React.createElement(IconButton, { onClick: (e) => {
|
21
|
+
e.stopPropagation();
|
22
|
+
copyToClipboard();
|
23
|
+
}, "data-cypress": "copy-to-clip-board-button", className: className, sx: noMarginY ? noMargin : undefined, ...rest },
|
24
|
+
React.createElement(FileCopy, { sx: large ? undefined : { fontSize: 18 } }))),
|
25
|
+
React.createElement(Snackbar, { anchorOrigin: {
|
26
|
+
vertical: 'bottom',
|
27
|
+
horizontal: 'right',
|
28
|
+
}, open: isCopyToClipboardOpen, onClose: handleClose, autoHideDuration: 1500, ContentProps: {
|
29
|
+
'aria-describedby': 'copy-clip-board-message-id',
|
30
|
+
}, message: React.createElement("span", { id: "copy-clip-board-message-id", "data-cypress": "copied-text-to-clip-board-message" }, "Copied to Clipboard") })));
|
31
|
+
}
|
32
|
+
export default React.memo(CopyToClipBoardIconButton);
|
33
33
|
//# sourceMappingURL=CopyToClipboardIconButton.js.map
|
@@ -1,27 +1,27 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
export declare const CustomAccordion: import("@emotion/styled").StyledComponent<import("@mui/material").AccordionProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
3
|
-
export declare const CustomAccordionSummary: import("@emotion/styled").StyledComponent<{
|
4
|
-
children?: import("react").ReactNode;
|
5
|
-
classes?: Partial<import("@mui/material").AccordionSummaryClasses> | undefined;
|
6
|
-
expandIcon?: import("react").ReactNode;
|
7
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
8
|
-
} & Omit<{
|
9
|
-
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
10
|
-
centerRipple?: boolean | undefined;
|
11
|
-
children?: import("react").ReactNode;
|
12
|
-
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
13
|
-
disabled?: boolean | undefined;
|
14
|
-
disableRipple?: boolean | undefined;
|
15
|
-
disableTouchRipple?: boolean | undefined;
|
16
|
-
focusRipple?: boolean | undefined;
|
17
|
-
focusVisibleClassName?: string | undefined;
|
18
|
-
LinkComponent?: import("react").ElementType<any> | undefined;
|
19
|
-
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
20
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
21
|
-
tabIndex?: number | undefined;
|
22
|
-
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
23
|
-
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
24
|
-
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement> | "key"> & {
|
25
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
26
|
-
}, "children" | "disabled" | "tabIndex" | keyof import("@mui/material/OverridableComponent").CommonProps | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "expandIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
27
|
-
export declare const CustomAccordionDetails: import("@emotion/styled").StyledComponent<import("@mui/material").AccordionDetailsProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare const CustomAccordion: import("@emotion/styled").StyledComponent<import("@mui/material").AccordionProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
3
|
+
export declare const CustomAccordionSummary: import("@emotion/styled").StyledComponent<{
|
4
|
+
children?: import("react").ReactNode;
|
5
|
+
classes?: Partial<import("@mui/material").AccordionSummaryClasses> | undefined;
|
6
|
+
expandIcon?: import("react").ReactNode;
|
7
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
8
|
+
} & Omit<{
|
9
|
+
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
10
|
+
centerRipple?: boolean | undefined;
|
11
|
+
children?: import("react").ReactNode;
|
12
|
+
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
13
|
+
disabled?: boolean | undefined;
|
14
|
+
disableRipple?: boolean | undefined;
|
15
|
+
disableTouchRipple?: boolean | undefined;
|
16
|
+
focusRipple?: boolean | undefined;
|
17
|
+
focusVisibleClassName?: string | undefined;
|
18
|
+
LinkComponent?: import("react").ElementType<any> | undefined;
|
19
|
+
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
20
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
21
|
+
tabIndex?: number | undefined;
|
22
|
+
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
23
|
+
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
24
|
+
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement> | "key"> & {
|
25
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
26
|
+
}, "children" | "disabled" | "tabIndex" | keyof import("@mui/material/OverridableComponent").CommonProps | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "expandIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
27
|
+
export declare const CustomAccordionDetails: import("@emotion/styled").StyledComponent<import("@mui/material").AccordionDetailsProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
@@ -1,38 +1,38 @@
|
|
1
|
-
import { Accordion, AccordionSummary, AccordionDetails, styled, } from '@mui/material';
|
2
|
-
export const CustomAccordion = styled(Accordion)(({ theme }) => ({
|
3
|
-
border: `1px solid ${theme.palette.divider}`,
|
4
|
-
boxShadow: 'none',
|
5
|
-
width: '100%',
|
6
|
-
'&:not(:last-of-type)': {
|
7
|
-
borderBottom: 'none',
|
8
|
-
},
|
9
|
-
'&:before': {
|
10
|
-
display: 'none',
|
11
|
-
},
|
12
|
-
'&.Mui-expanded': {
|
13
|
-
margin: 'unset',
|
14
|
-
},
|
15
|
-
'& .Mui-expanded': {
|
16
|
-
margin: 'auto',
|
17
|
-
},
|
18
|
-
}));
|
19
|
-
export const CustomAccordionSummary = styled(AccordionSummary)(({ theme }) => ({
|
20
|
-
backgroundColor: 'rgba(0, 0, 0, .03)',
|
21
|
-
'&.Mui-expanded': {
|
22
|
-
minHeight: theme.spacing(6),
|
23
|
-
},
|
24
|
-
'& .Mui-expanded': {
|
25
|
-
marginTop: theme.spacing(1.5),
|
26
|
-
marginBottom: theme.spacing(1.5),
|
27
|
-
},
|
28
|
-
'& .MuiAccordionSummary-content': {
|
29
|
-
'&.Mui-expanded': {
|
30
|
-
margin: theme.spacing(1.5, 0),
|
31
|
-
},
|
32
|
-
},
|
33
|
-
}));
|
34
|
-
export const CustomAccordionDetails = styled(AccordionDetails)(({ theme }) => ({
|
35
|
-
padding: theme.spacing(1, 2),
|
36
|
-
borderTop: `1px solid ${theme.palette.divider}`,
|
37
|
-
}));
|
1
|
+
import { Accordion, AccordionSummary, AccordionDetails, styled, } from '@mui/material';
|
2
|
+
export const CustomAccordion = styled(Accordion)(({ theme }) => ({
|
3
|
+
border: `1px solid ${theme.palette.divider}`,
|
4
|
+
boxShadow: 'none',
|
5
|
+
width: '100%',
|
6
|
+
'&:not(:last-of-type)': {
|
7
|
+
borderBottom: 'none',
|
8
|
+
},
|
9
|
+
'&:before': {
|
10
|
+
display: 'none',
|
11
|
+
},
|
12
|
+
'&.Mui-expanded': {
|
13
|
+
margin: 'unset',
|
14
|
+
},
|
15
|
+
'& .Mui-expanded': {
|
16
|
+
margin: 'auto',
|
17
|
+
},
|
18
|
+
}));
|
19
|
+
export const CustomAccordionSummary = styled(AccordionSummary)(({ theme }) => ({
|
20
|
+
backgroundColor: 'rgba(0, 0, 0, .03)',
|
21
|
+
'&.Mui-expanded': {
|
22
|
+
minHeight: theme.spacing(6),
|
23
|
+
},
|
24
|
+
'& .Mui-expanded': {
|
25
|
+
marginTop: theme.spacing(1.5),
|
26
|
+
marginBottom: theme.spacing(1.5),
|
27
|
+
},
|
28
|
+
'& .MuiAccordionSummary-content': {
|
29
|
+
'&.Mui-expanded': {
|
30
|
+
margin: theme.spacing(1.5, 0),
|
31
|
+
},
|
32
|
+
},
|
33
|
+
}));
|
34
|
+
export const CustomAccordionDetails = styled(AccordionDetails)(({ theme }) => ({
|
35
|
+
padding: theme.spacing(1, 2),
|
36
|
+
borderTop: `1px solid ${theme.palette.divider}`,
|
37
|
+
}));
|
38
38
|
//# sourceMappingURL=CustomAccordion.js.map
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
const CustomisableButton = ({ label, icon }) => {
|
3
|
+
return (React.createElement(React.Fragment, null,
|
4
|
+
React.createElement("span", { className: "ob-customisable-button-inner" },
|
5
|
+
!!icon && React.createElement("i", { className: "material-icons" }, icon),
|
6
|
+
React.createElement("span", null, label))));
|
7
|
+
};
|
8
|
+
export default React.memo(CustomisableButton);
|
9
|
+
//# sourceMappingURL=CustomisableButtonInner.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CustomisableButtonInner.js","sourceRoot":"","sources":["../../src/components/CustomisableButtonInner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,MAAM,kBAAkB,GAAG,CAAC,EAAE,KAAK,EAAE,IAAI,EAAS,EAAE,EAAE;IACpD,OAAO,CACL;QACE,8BAAM,SAAS,EAAC,8BAA8B;YAC3C,CAAC,CAAC,IAAI,IAAI,2BAAG,SAAS,EAAC,gBAAgB,IAAE,IAAI,CAAK;YACnD,kCAAO,KAAK,CAAQ,CACf,CACN,CACJ,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAC,IAAI,CAAQ,kBAAkB,CAAC,CAAA","sourcesContent":["import * as React from 'react'\ntype Props = {\n label: string\n icon?: string\n}\n\nconst CustomisableButton = ({ label, icon }: Props) => {\n return (\n <>\n <span className=\"ob-customisable-button-inner\">\n {!!icon && <i className=\"material-icons\">{icon}</i>}\n <span>{label}</span>\n </span>\n </>\n )\n}\n\nexport default React.memo<Props>(CustomisableButton)\n"]}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
declare type Props = {
|
3
|
+
IconComponent?: React.ComponentType<{
|
4
|
+
className: string;
|
5
|
+
}>;
|
6
|
+
title: string;
|
7
|
+
gutterTop?: boolean;
|
8
|
+
gutterBottom?: boolean;
|
9
|
+
children?: React.ReactNode;
|
10
|
+
onTryAgain?: () => void;
|
11
|
+
};
|
12
|
+
declare const _default: React.NamedExoticComponent<Props>;
|
13
|
+
export default _default;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import ErrorIcon from '@mui/icons-material/Error';
|
3
|
+
import LargeIconMessage from './messages/LargeIconMessage';
|
4
|
+
import { Button } from '@mui/material';
|
5
|
+
function ErrorMessage({ title, children, gutterTop, gutterBottom, IconComponent, onTryAgain, }) {
|
6
|
+
if (!IconComponent) {
|
7
|
+
IconComponent = ErrorIcon;
|
8
|
+
}
|
9
|
+
return (React.createElement(React.Fragment, null,
|
10
|
+
React.createElement(LargeIconMessage, { IconComponent: IconComponent, title: title, variant: "error", gutterTop: gutterTop, gutterBottom: gutterBottom, action: onTryAgain && (React.createElement(Button, { variant: "outlined", color: "primary", onClick: () => onTryAgain() }, "Try Again")) }, children)));
|
11
|
+
}
|
12
|
+
export default React.memo(ErrorMessage);
|
13
|
+
//# sourceMappingURL=ErrorMessage.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ErrorMessage.js","sourceRoot":"","sources":["../../src/components/ErrorMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,SAAS,MAAM,2BAA2B,CAAA;AACjD,OAAO,gBAAgB,MAAM,6BAA6B,CAAA;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAYtC,SAAS,YAAY,CAAC,EACpB,KAAK,EACL,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,aAAa,EACb,UAAU,GACJ;IACN,IAAI,CAAC,aAAa,EAAE;QAClB,aAAa,GAAG,SAAS,CAAA;KAC1B;IAED,OAAO,CACL;QACE,oBAAC,gBAAgB,IACf,aAAa,EAAE,aAAa,EAC5B,KAAK,EAAE,KAAK,EACZ,OAAO,EAAC,OAAO,EACf,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,YAAY,EAC1B,MAAM,EACJ,UAAU,IAAI,CACZ,oBAAC,MAAM,IACL,OAAO,EAAC,UAAU,EAClB,KAAK,EAAC,SAAS,EACf,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,EAAE,gBAGpB,CACV,IAGF,QAAQ,CACQ,CAClB,CACJ,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAQ,YAAY,CAAC,CAAA","sourcesContent":["import * as React from 'react'\nimport ErrorIcon from '@mui/icons-material/Error'\nimport LargeIconMessage from './messages/LargeIconMessage'\nimport { Button } from '@mui/material'\ntype Props = {\n IconComponent?: React.ComponentType<{\n className: string\n }>\n title: string\n gutterTop?: boolean\n gutterBottom?: boolean\n children?: React.ReactNode\n onTryAgain?: () => void\n}\n\nfunction ErrorMessage({\n title,\n children,\n gutterTop,\n gutterBottom,\n IconComponent,\n onTryAgain,\n}: Props) {\n if (!IconComponent) {\n IconComponent = ErrorIcon\n }\n\n return (\n <>\n <LargeIconMessage\n IconComponent={IconComponent}\n title={title}\n variant=\"error\"\n gutterTop={gutterTop}\n gutterBottom={gutterBottom}\n action={\n onTryAgain && (\n <Button\n variant=\"outlined\"\n color=\"primary\"\n onClick={() => onTryAgain()}\n >\n Try Again\n </Button>\n )\n }\n >\n {children}\n </LargeIconMessage>\n </>\n )\n}\n\nexport default React.memo<Props>(ErrorMessage)\n"]}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
declare function ErrorSnackbar({ open, onClose, children, }: {
|
3
|
-
open: boolean;
|
4
|
-
children: React.ReactNode;
|
5
|
-
onClose: (arg: null) => unknown;
|
6
|
-
}): JSX.Element;
|
7
|
-
declare const _default: React.MemoExoticComponent<typeof ErrorSnackbar>;
|
8
|
-
export default _default;
|
1
|
+
import * as React from 'react';
|
2
|
+
declare function ErrorSnackbar({ open, onClose, children, }: {
|
3
|
+
open: boolean;
|
4
|
+
children: React.ReactNode;
|
5
|
+
onClose: (arg: null) => unknown;
|
6
|
+
}): JSX.Element;
|
7
|
+
declare const _default: React.MemoExoticComponent<typeof ErrorSnackbar>;
|
8
|
+
export default _default;
|
@@ -1,26 +1,26 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import { Snackbar, IconButton } from '@mui/material';
|
3
|
-
import { Close } from '@mui/icons-material';
|
4
|
-
import MuiAlert from '@mui/material/Alert';
|
5
|
-
import { styled } from '@mui/material/styles';
|
6
|
-
const Alert = React.forwardRef(function Alert(props, ref) {
|
7
|
-
return React.createElement(MuiAlert, { elevation: 6, ref: ref, variant: "filled", ...props });
|
8
|
-
});
|
9
|
-
function ErrorSnackbar({ open, onClose, children, }) {
|
10
|
-
const handleClose = React.useCallback((e, reason) => {
|
11
|
-
if (reason !== 'clickaway') {
|
12
|
-
onClose(null);
|
13
|
-
}
|
14
|
-
}, [onClose]);
|
15
|
-
return (React.createElement(Snackbar, { anchorOrigin: {
|
16
|
-
vertical: 'bottom',
|
17
|
-
horizontal: 'right',
|
18
|
-
}, open: open, onClose: handleClose, className: "ob-error-snackbar" },
|
19
|
-
React.createElement(Alert, { severity: "error", action: React.createElement(IconButton, { key: "close", "aria-label": "Close", color: "inherit", onClick: handleClose, "data-cypress": "error-snackbar-close", size: "large" },
|
20
|
-
React.createElement(StyledCloseIcon, null)) }, children)));
|
21
|
-
}
|
22
|
-
const StyledCloseIcon = styled(Close)(() => ({
|
23
|
-
fontSize: 20,
|
24
|
-
}));
|
25
|
-
export default React.memo(ErrorSnackbar);
|
1
|
+
import * as React from 'react';
|
2
|
+
import { Snackbar, IconButton } from '@mui/material';
|
3
|
+
import { Close } from '@mui/icons-material';
|
4
|
+
import MuiAlert from '@mui/material/Alert';
|
5
|
+
import { styled } from '@mui/material/styles';
|
6
|
+
const Alert = React.forwardRef(function Alert(props, ref) {
|
7
|
+
return React.createElement(MuiAlert, { elevation: 6, ref: ref, variant: "filled", ...props });
|
8
|
+
});
|
9
|
+
function ErrorSnackbar({ open, onClose, children, }) {
|
10
|
+
const handleClose = React.useCallback((e, reason) => {
|
11
|
+
if (reason !== 'clickaway') {
|
12
|
+
onClose(null);
|
13
|
+
}
|
14
|
+
}, [onClose]);
|
15
|
+
return (React.createElement(Snackbar, { anchorOrigin: {
|
16
|
+
vertical: 'bottom',
|
17
|
+
horizontal: 'right',
|
18
|
+
}, open: open, onClose: handleClose, className: "ob-error-snackbar" },
|
19
|
+
React.createElement(Alert, { severity: "error", action: React.createElement(IconButton, { key: "close", "aria-label": "Close", color: "inherit", onClick: handleClose, "data-cypress": "error-snackbar-close", size: "large" },
|
20
|
+
React.createElement(StyledCloseIcon, null)) }, children)));
|
21
|
+
}
|
22
|
+
const StyledCloseIcon = styled(Close)(() => ({
|
23
|
+
fontSize: 20,
|
24
|
+
}));
|
25
|
+
export default React.memo(ErrorSnackbar);
|
26
26
|
//# sourceMappingURL=ErrorSnackbar.js.map
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { FormTypes } from '@oneblink/types';
|
3
|
+
declare function FormElementLabelContainer({ className, element, id, required, children, leading, }: {
|
4
|
+
className: string;
|
5
|
+
element: FormTypes.FormElementBase;
|
6
|
+
id: string;
|
7
|
+
required: boolean;
|
8
|
+
children: React.ReactNode;
|
9
|
+
leading?: React.ReactNode;
|
10
|
+
}): JSX.Element;
|
11
|
+
declare const _default: React.MemoExoticComponent<typeof FormElementLabelContainer>;
|
12
|
+
export default _default;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { Tooltip } from '@mui/material';
|
3
|
+
import clsx from 'clsx';
|
4
|
+
function FormElementLabelContainer({ className, element, id, required, children, leading, }) {
|
5
|
+
return (React.createElement("div", { className: clsx('ob-form__element', className) },
|
6
|
+
React.createElement("div", { className: "label ob-label__container" },
|
7
|
+
leading,
|
8
|
+
React.createElement("label", { className: clsx('ob-label', {
|
9
|
+
'ob-label__required is-required': required,
|
10
|
+
}), htmlFor: id }, element.label),
|
11
|
+
element.hint && (React.createElement(Tooltip, { title: element.hint, arrow: true, enterTouchDelay: 0, leaveTouchDelay: 10000 },
|
12
|
+
React.createElement("i", { className: "material-icons has-text-grey-light ob-label__hint" }, "info")))),
|
13
|
+
children));
|
14
|
+
}
|
15
|
+
export default React.memo(FormElementLabelContainer);
|
16
|
+
//# sourceMappingURL=FormElementLabelContainer.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"FormElementLabelContainer.js","sourceRoot":"","sources":["../../src/components/FormElementLabelContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,IAAI,MAAM,MAAM,CAAA;AAGvB,SAAS,yBAAyB,CAAC,EACjC,SAAS,EACT,OAAO,EACP,EAAE,EACF,QAAQ,EACR,QAAQ,EACR,OAAO,GAQR;IACC,OAAO,CACL,6BAAK,SAAS,EAAE,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC;QACjD,6BAAK,SAAS,EAAC,2BAA2B;YACvC,OAAO;YACR,+BACE,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE;oBAC1B,gCAAgC,EAAE,QAAQ;iBAC3C,CAAC,EACF,OAAO,EAAE,EAAE,IAEV,OAAO,CAAC,KAAK,CACR;YACP,OAAO,CAAC,IAAI,IAAI,CACf,oBAAC,OAAO,IACN,KAAK,EAAE,OAAO,CAAC,IAAI,EACnB,KAAK,QACL,eAAe,EAAE,CAAC,EAClB,eAAe,EAAE,KAAK;gBAEtB,2BAAG,SAAS,EAAC,mDAAmD,WAE5D,CACI,CACX,CACG;QACL,QAAQ,CACL,CACP,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAA","sourcesContent":["import * as React from 'react'\nimport { Tooltip } from '@mui/material'\nimport clsx from 'clsx'\nimport { FormTypes } from '@oneblink/types'\n\nfunction FormElementLabelContainer({\n className,\n element,\n id,\n required,\n children,\n leading,\n}: {\n className: string\n element: FormTypes.FormElementBase\n id: string\n required: boolean\n children: React.ReactNode\n leading?: React.ReactNode\n}) {\n return (\n <div className={clsx('ob-form__element', className)}>\n <div className=\"label ob-label__container\">\n {leading}\n <label\n className={clsx('ob-label', {\n 'ob-label__required is-required': required,\n })}\n htmlFor={id}\n >\n {element.label}\n </label>\n {element.hint && (\n <Tooltip\n title={element.hint}\n arrow\n enterTouchDelay={0}\n leaveTouchDelay={10000}\n >\n <i className=\"material-icons has-text-grey-light ob-label__hint\">\n info\n </i>\n </Tooltip>\n )}\n </div>\n {children}\n </div>\n )\n}\n\nexport default React.memo(FormElementLabelContainer)\n"]}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { FormTypes } from '@oneblink/types';
|
2
|
+
import * as React from 'react';
|
3
|
+
declare type Props = {
|
4
|
+
options: FormTypes.ChoiceElementOption[] | undefined;
|
5
|
+
children: React.ReactNode;
|
6
|
+
};
|
7
|
+
declare function FormElementOptions({ options, children }: Props): JSX.Element;
|
8
|
+
declare const _default: React.MemoExoticComponent<typeof FormElementOptions>;
|
9
|
+
export default _default;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import OnLoading from './OnLoading';
|
3
|
+
function FormElementOptions({ options, children }) {
|
4
|
+
if (!options) {
|
5
|
+
return (React.createElement("div", null,
|
6
|
+
React.createElement(OnLoading, { className: "has-text-centered", small: true })));
|
7
|
+
}
|
8
|
+
if (!options.length) {
|
9
|
+
return (React.createElement("div", null,
|
10
|
+
React.createElement("div", { className: "has-text-grey is-size-7" }, "We were unable to load your options. Please contact your administrator.")));
|
11
|
+
}
|
12
|
+
return React.createElement("div", null, children);
|
13
|
+
}
|
14
|
+
export default React.memo(FormElementOptions);
|
15
|
+
//# sourceMappingURL=FormElementOptions.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"FormElementOptions.js","sourceRoot":"","sources":["../../src/components/FormElementOptions.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,SAAS,MAAM,aAAa,CAAA;AAOnC,SAAS,kBAAkB,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAS;IACtD,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,CACL;YACE,oBAAC,SAAS,IAAC,SAAS,EAAC,mBAAmB,EAAC,KAAK,SAAa,CACvD,CACP,CAAA;KACF;IAED,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;QACnB,OAAO,CACL;YACE,6BAAK,SAAS,EAAC,yBAAyB,8EAGlC,CACF,CACP,CAAA;KACF;IAED,OAAO,iCAAM,QAAQ,CAAO,CAAA;AAC9B,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA","sourcesContent":["import { FormTypes } from '@oneblink/types'\nimport * as React from 'react'\n\nimport OnLoading from './OnLoading'\n\ntype Props = {\n options: FormTypes.ChoiceElementOption[] | undefined\n children: React.ReactNode\n}\n\nfunction FormElementOptions({ options, children }: Props) {\n if (!options) {\n return (\n <div>\n <OnLoading className=\"has-text-centered\" small></OnLoading>\n </div>\n )\n }\n\n if (!options.length) {\n return (\n <div>\n <div className=\"has-text-grey is-size-7\">\n We were unable to load your options. Please contact your\n administrator.\n </div>\n </div>\n )\n }\n\n return <div>{children}</div>\n}\n\nexport default React.memo(FormElementOptions)\n"]}
|
@@ -1,25 +1,25 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import { Theme } from '@mui/material';
|
3
|
-
declare type ListItemsProps = {
|
4
|
-
children: React.ReactNode;
|
5
|
-
disablePadding?: boolean;
|
6
|
-
};
|
7
|
-
export declare const OrderedList: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme> & ListItemsProps, React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, {}>;
|
8
|
-
export declare const UnorderedList: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme> & ListItemsProps, React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
|
9
|
-
declare type ListProps = {
|
10
|
-
spaced?: boolean;
|
11
|
-
};
|
12
|
-
export declare const ListItem: import("@emotion/styled").StyledComponent<Omit<import("@mui/system").SystemProps<Theme> & {
|
13
|
-
align?: "inherit" | "right" | "left" | "center" | "justify" | undefined;
|
14
|
-
children?: React.ReactNode;
|
15
|
-
classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
|
16
|
-
gutterBottom?: boolean | undefined;
|
17
|
-
noWrap?: boolean | undefined;
|
18
|
-
paragraph?: boolean | undefined;
|
19
|
-
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
20
|
-
variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline" | undefined;
|
21
|
-
variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline", string>> | undefined;
|
22
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
|
23
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
24
|
-
}, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | ("p" | "color" | "top" | "right" | "bottom" | "left" | "height" | "width" | "fontStyle" | "marginBottom" | "position" | "my" | "pl" | "pt" | "minWidth" | "maxWidth" | "zIndex" | "typography" | "fontFamily" | "fontSize" | "flex" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "boxShadow" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "pr" | "pb" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "align" | "gutterBottom" | "noWrap" | "paragraph" | "
|
25
|
-
export {};
|
1
|
+
import * as React from 'react';
|
2
|
+
import { Theme } from '@mui/material';
|
3
|
+
declare type ListItemsProps = {
|
4
|
+
children: React.ReactNode;
|
5
|
+
disablePadding?: boolean;
|
6
|
+
};
|
7
|
+
export declare const OrderedList: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme> & ListItemsProps, React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, {}>;
|
8
|
+
export declare const UnorderedList: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme> & ListItemsProps, React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
|
9
|
+
declare type ListProps = {
|
10
|
+
spaced?: boolean;
|
11
|
+
};
|
12
|
+
export declare const ListItem: import("@emotion/styled").StyledComponent<Omit<import("@mui/system").SystemProps<Theme> & {
|
13
|
+
align?: "inherit" | "right" | "left" | "center" | "justify" | undefined;
|
14
|
+
children?: React.ReactNode;
|
15
|
+
classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
|
16
|
+
gutterBottom?: boolean | undefined;
|
17
|
+
noWrap?: boolean | undefined;
|
18
|
+
paragraph?: boolean | undefined;
|
19
|
+
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
20
|
+
variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline" | undefined;
|
21
|
+
variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline", string>> | undefined;
|
22
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
|
23
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
24
|
+
}, "children" | "variant" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | ("p" | "color" | "top" | "right" | "bottom" | "left" | "height" | "width" | "fontStyle" | "marginBottom" | "position" | "my" | "pl" | "pt" | "minWidth" | "maxWidth" | "zIndex" | "typography" | "fontFamily" | "fontSize" | "flex" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "boxShadow" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "pr" | "pb" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping">, "ref"> & import("@mui/system").MUIStyledCommonProps<Theme> & ListProps, {}, {}>;
|
25
|
+
export {};
|
package/dist/components/Lists.js
CHANGED
@@ -1,45 +1,45 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import Typography from '@mui/material/Typography';
|
3
|
-
import { styled } from '@mui/material';
|
4
|
-
const noPaddingY = {
|
5
|
-
paddingTop: 0,
|
6
|
-
paddingBottom: 0,
|
7
|
-
};
|
8
|
-
const getListStyles = (theme) => ({
|
9
|
-
margin: 0,
|
10
|
-
padding: theme.spacing(1, 1, 1, 4),
|
11
|
-
listStyle: 'inherit',
|
12
|
-
'& > ul, & > ol': noPaddingY,
|
13
|
-
});
|
14
|
-
export const OrderedList = styled('ol', {
|
15
|
-
shouldForwardProp: (prop) => prop !== 'disablePadding',
|
16
|
-
})(({ theme, disablePadding }) => {
|
17
|
-
return {
|
18
|
-
...getListStyles(theme),
|
19
|
-
...(disablePadding ? noPaddingY : {}),
|
20
|
-
};
|
21
|
-
});
|
22
|
-
export const UnorderedList = styled('ul', {
|
23
|
-
shouldForwardProp: (prop) => prop !== 'disablePadding',
|
24
|
-
})(({ theme, disablePadding }) => {
|
25
|
-
return {
|
26
|
-
...getListStyles(theme),
|
27
|
-
...(disablePadding ? noPaddingY : {}),
|
28
|
-
};
|
29
|
-
});
|
30
|
-
function Li(props) {
|
31
|
-
return (React.createElement(Typography, { ...props, component: "li", color: "inherit", variant: "body2" }));
|
32
|
-
}
|
33
|
-
export const ListItem = styled(Li, {
|
34
|
-
shouldForwardProp: (prop) => prop !== 'spaced',
|
35
|
-
})(({ spaced }) => {
|
36
|
-
return {
|
37
|
-
display: 'list-item',
|
38
|
-
...(spaced
|
39
|
-
? {
|
40
|
-
lineHeight: 1.9,
|
41
|
-
}
|
42
|
-
: {}),
|
43
|
-
};
|
44
|
-
});
|
1
|
+
import * as React from 'react';
|
2
|
+
import Typography from '@mui/material/Typography';
|
3
|
+
import { styled } from '@mui/material';
|
4
|
+
const noPaddingY = {
|
5
|
+
paddingTop: 0,
|
6
|
+
paddingBottom: 0,
|
7
|
+
};
|
8
|
+
const getListStyles = (theme) => ({
|
9
|
+
margin: 0,
|
10
|
+
padding: theme.spacing(1, 1, 1, 4),
|
11
|
+
listStyle: 'inherit',
|
12
|
+
'& > ul, & > ol': noPaddingY,
|
13
|
+
});
|
14
|
+
export const OrderedList = styled('ol', {
|
15
|
+
shouldForwardProp: (prop) => prop !== 'disablePadding',
|
16
|
+
})(({ theme, disablePadding }) => {
|
17
|
+
return {
|
18
|
+
...getListStyles(theme),
|
19
|
+
...(disablePadding ? noPaddingY : {}),
|
20
|
+
};
|
21
|
+
});
|
22
|
+
export const UnorderedList = styled('ul', {
|
23
|
+
shouldForwardProp: (prop) => prop !== 'disablePadding',
|
24
|
+
})(({ theme, disablePadding }) => {
|
25
|
+
return {
|
26
|
+
...getListStyles(theme),
|
27
|
+
...(disablePadding ? noPaddingY : {}),
|
28
|
+
};
|
29
|
+
});
|
30
|
+
function Li(props) {
|
31
|
+
return (React.createElement(Typography, { ...props, component: "li", color: "inherit", variant: "body2" }));
|
32
|
+
}
|
33
|
+
export const ListItem = styled(Li, {
|
34
|
+
shouldForwardProp: (prop) => prop !== 'spaced',
|
35
|
+
})(({ spaced }) => {
|
36
|
+
return {
|
37
|
+
display: 'list-item',
|
38
|
+
...(spaced
|
39
|
+
? {
|
40
|
+
lineHeight: 1.9,
|
41
|
+
}
|
42
|
+
: {}),
|
43
|
+
};
|
44
|
+
});
|
45
45
|
//# sourceMappingURL=Lists.js.map
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
declare type Props = {
|
3
|
-
message?: string;
|
4
|
-
};
|
5
|
-
declare const _default: React.NamedExoticComponent<Props>;
|
6
|
-
export default _default;
|
1
|
+
import * as React from 'react';
|
2
|
+
declare type Props = {
|
3
|
+
message?: string;
|
4
|
+
};
|
5
|
+
declare const _default: React.NamedExoticComponent<Props>;
|
6
|
+
export default _default;
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import { Box, CircularProgress, Grid, Typography } from '@mui/material';
|
3
|
-
const Loading = ({ message }) => {
|
4
|
-
return (React.createElement(Box, { p: 2, className: "ob-loading-with-message" },
|
5
|
-
React.createElement(Grid, { container: true, spacing: 2, className: "ob-loading" },
|
6
|
-
React.createElement(Grid, { xs: 12, container: true, item: true, justifyContent: "center" },
|
7
|
-
React.createElement(CircularProgress, null)),
|
8
|
-
message && (React.createElement(Grid, { xs: 12, container: true, item: true, justifyContent: "center", className: "ob-loading-message" },
|
9
|
-
React.createElement(Typography, { variant: "body2", align: "center" }, message))))));
|
10
|
-
};
|
11
|
-
export default React.memo(Loading);
|
1
|
+
import * as React from 'react';
|
2
|
+
import { Box, CircularProgress, Grid, Typography } from '@mui/material';
|
3
|
+
const Loading = ({ message }) => {
|
4
|
+
return (React.createElement(Box, { p: 2, className: "ob-loading-with-message" },
|
5
|
+
React.createElement(Grid, { container: true, spacing: 2, className: "ob-loading" },
|
6
|
+
React.createElement(Grid, { xs: 12, container: true, item: true, justifyContent: "center" },
|
7
|
+
React.createElement(CircularProgress, null)),
|
8
|
+
message && (React.createElement(Grid, { xs: 12, container: true, item: true, justifyContent: "center", className: "ob-loading-message" },
|
9
|
+
React.createElement(Typography, { variant: "body2", align: "center" }, message))))));
|
10
|
+
};
|
11
|
+
export default React.memo(Loading);
|
12
12
|
//# sourceMappingURL=LoadingWithMessage.js.map
|