@cerebruminc/cerebellum 12.0.2 → 12.1.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/lib/cjs/AddButton-91ec6c74.js +31 -0
- package/lib/cjs/AddButton-91ec6c74.js.map +1 -0
- package/lib/cjs/AddButton.cjs +5 -5
- package/lib/cjs/AddMenu-a64a9638.js +61 -0
- package/lib/cjs/AddMenu-a64a9638.js.map +1 -0
- package/lib/cjs/AddMenu.cjs +20 -20
- package/lib/cjs/AddressInput-868cf326.js +2234 -0
- package/lib/cjs/AddressInput-868cf326.js.map +1 -0
- package/lib/cjs/AddressInput.cjs +9 -10
- package/lib/cjs/AddressInput.cjs.map +1 -1
- package/lib/cjs/AlertCount-66fb29b9.js +64 -0
- package/lib/cjs/AlertCount-66fb29b9.js.map +1 -0
- package/lib/cjs/AlertCount.cjs +2 -2
- package/lib/cjs/AltIdBack.cjs +4 -4
- package/lib/cjs/AltIdFront.cjs +4 -4
- package/lib/cjs/Arrow.cjs +4 -4
- package/lib/cjs/ArrowLong.cjs +4 -4
- package/lib/cjs/ArrowUp.cjs +4 -4
- package/lib/cjs/Assign.cjs +4 -4
- package/lib/cjs/Attachment.cjs +4 -4
- package/lib/cjs/Avatar-01129ec7.js +47 -0
- package/lib/cjs/Avatar-01129ec7.js.map +1 -0
- package/lib/cjs/Avatar.cjs +2 -2
- package/lib/cjs/BackgroundCheck.cjs +4 -4
- package/lib/cjs/BellOutline.cjs +4 -4
- package/lib/cjs/BodyLEmphasis.cjs +25 -25
- package/lib/cjs/BodyLPrimary.cjs +1 -1
- package/lib/cjs/BodyLSecondary.cjs +1 -1
- package/lib/cjs/BodyMEmphasis.cjs +1 -1
- package/lib/cjs/BodyMPrimary.cjs +1 -1
- package/lib/cjs/BodyMSecondary.cjs +1 -1
- package/lib/cjs/BodyMSemiBold.cjs +1 -1
- package/lib/cjs/BodySEmphasis.cjs +1 -1
- package/lib/cjs/BodySPlaceholder.cjs +1 -1
- package/lib/cjs/BodySPrimary.cjs +1 -1
- package/lib/cjs/BodySSecondary.cjs +1 -1
- package/lib/cjs/BodySSemiBold.cjs +1 -1
- package/lib/cjs/BodySTertiary.cjs +1 -1
- package/lib/cjs/BodyXSEmphasis.cjs +1 -1
- package/lib/cjs/BodyXSPrimary.cjs +1 -1
- package/lib/cjs/BodyXSSemiBold.cjs +1 -1
- package/lib/cjs/BodyXXSEmphasis.cjs +1 -1
- package/lib/cjs/BodyXXSPrimary.cjs +1 -1
- package/lib/cjs/BodyXXSSecondary.cjs +1 -1
- package/lib/cjs/BoxedButton.cjs +5 -5
- package/lib/cjs/BoxedOutlineButton.cjs +5 -5
- package/lib/cjs/Button.cjs +15 -15
- package/lib/cjs/Calendar.cjs +4 -4
- package/lib/cjs/CaretDown.cjs +4 -4
- package/lib/cjs/CaretLeft.cjs +4 -4
- package/lib/cjs/CaretRight.cjs +4 -4
- package/lib/cjs/CaretUp.cjs +4 -4
- package/lib/cjs/Cart.cjs +4 -4
- package/lib/cjs/ChatBubbleLines.cjs +4 -4
- package/lib/cjs/Check.cjs +4 -4
- package/lib/cjs/Checkbox-f3ca8d4d.js +57 -0
- package/lib/cjs/Checkbox-f3ca8d4d.js.map +1 -0
- package/lib/cjs/Checkbox.cjs +4 -4
- package/lib/cjs/CheckboxCellWrapper.cjs +8 -8
- package/lib/cjs/CheckboxEmpty.cjs +4 -4
- package/lib/cjs/CheckboxFull.cjs +4 -4
- package/lib/cjs/CheckboxGroup-cfb25c42.js +40 -0
- package/lib/cjs/CheckboxGroup-cfb25c42.js.map +1 -0
- package/lib/cjs/CheckboxGroup.cjs +9 -9
- package/lib/cjs/CheckboxItem-e2eabb99.js +55 -0
- package/lib/cjs/CheckboxItem-e2eabb99.js.map +1 -0
- package/lib/cjs/CheckboxItem.cjs +8 -8
- package/lib/cjs/CheckedOff.cjs +4 -4
- package/lib/cjs/CheckmarkCircle.cjs +4 -4
- package/lib/cjs/Clear.cjs +4 -4
- package/lib/cjs/ClearableTag-3a1dd38c.js +95 -0
- package/lib/cjs/ClearableTag-3a1dd38c.js.map +1 -0
- package/lib/cjs/ClearableTag.cjs +6 -6
- package/lib/cjs/ClickOutHandler-96f4b62a.js +29 -0
- package/lib/cjs/ClickOutHandler-96f4b62a.js.map +1 -0
- package/lib/cjs/ClickOutHandler.cjs +2 -2
- package/lib/cjs/Clipboard.cjs +4 -4
- package/lib/cjs/Close-e7de6f54.js +16 -0
- package/lib/cjs/Close-e7de6f54.js.map +1 -0
- package/lib/cjs/Close.cjs +4 -4
- package/lib/cjs/CloseCircle.cjs +4 -4
- package/lib/cjs/CodeDoc.cjs +4 -4
- package/lib/cjs/ColorButton-bde6489e.js +71 -0
- package/lib/cjs/ColorButton-bde6489e.js.map +1 -0
- package/lib/cjs/ColorButton.cjs +2 -2
- package/lib/cjs/ColorDotDropdown-46fa5852.js +47 -0
- package/lib/cjs/ColorDotDropdown-46fa5852.js.map +1 -0
- package/lib/cjs/ColorDotDropdown.cjs +25 -25
- package/lib/cjs/ColorPicker-e5a63563.js +58 -0
- package/lib/cjs/ColorPicker-e5a63563.js.map +1 -0
- package/lib/cjs/ColorPicker.cjs +8 -8
- package/lib/cjs/ColorPickerMenu-0cb1ee49.js +54 -0
- package/lib/cjs/ColorPickerMenu-0cb1ee49.js.map +1 -0
- package/lib/cjs/ColorPickerMenu.cjs +5 -5
- package/lib/cjs/Communication.cjs +4 -4
- package/lib/cjs/ConfigurableInput-13714562.js +81 -0
- package/lib/cjs/ConfigurableInput-13714562.js.map +1 -0
- package/lib/cjs/ConfigurableInput.cjs +15 -15
- package/lib/cjs/Configure.cjs +4 -4
- package/lib/cjs/ConfirmModal-479fb68e.js +80 -0
- package/lib/cjs/ConfirmModal-479fb68e.js.map +1 -0
- package/lib/cjs/ConfirmModal.cjs +7 -7
- package/lib/cjs/ConfirmationModal-cb9f9a4e.js +65 -0
- package/lib/cjs/ConfirmationModal-cb9f9a4e.js.map +1 -0
- package/lib/cjs/ConfirmationModal.cjs +6 -6
- package/lib/cjs/Contact.cjs +4 -4
- package/lib/cjs/CountyDropdown-c20fcff7.js +17 -0
- package/lib/cjs/CountyDropdown-c20fcff7.js.map +1 -0
- package/lib/cjs/CountyDropdown.cjs +25 -25
- package/lib/cjs/CovidTest.cjs +4 -4
- package/lib/cjs/CovidVaccineCard.cjs +4 -4
- package/lib/cjs/CreditCard.cjs +4 -4
- package/lib/cjs/CreditCardInput-f841423a.js +36 -0
- package/lib/cjs/CreditCardInput-f841423a.js.map +1 -0
- package/lib/cjs/CreditCardInput.cjs +9 -9
- package/lib/cjs/CsvDoc.cjs +4 -4
- package/lib/cjs/CurrencyInput-4c207ced.js +35 -0
- package/lib/cjs/CurrencyInput-4c207ced.js.map +1 -0
- package/lib/cjs/CurrencyInput.cjs +9 -9
- package/lib/cjs/Dashboard.cjs +4 -4
- package/lib/cjs/DatePicker.cjs +23 -24
- package/lib/cjs/DatePicker.cjs.map +1 -1
- package/lib/cjs/Delete-7064fe8a.js +16 -0
- package/lib/cjs/Delete-7064fe8a.js.map +1 -0
- package/lib/cjs/Delete.cjs +4 -4
- package/lib/cjs/DescriptiveDropdownInput-16b09423.js +124 -0
- package/lib/cjs/DescriptiveDropdownInput-16b09423.js.map +1 -0
- package/lib/cjs/DescriptiveDropdownInput.cjs +19 -19
- package/lib/cjs/DescriptiveSwitchMenu-8044bc21.js +80 -0
- package/lib/cjs/DescriptiveSwitchMenu-8044bc21.js.map +1 -0
- package/lib/cjs/DescriptiveSwitchMenu.cjs +10 -10
- package/lib/cjs/DialogHandler-ddbc63df.js +279 -0
- package/lib/cjs/DialogHandler-ddbc63df.js.map +1 -0
- package/lib/cjs/DialogHandler.cjs +13 -13
- package/lib/cjs/Document.cjs +4 -4
- package/lib/cjs/Dollar.cjs +4 -4
- package/lib/cjs/Download.cjs +4 -4
- package/lib/cjs/DownloadDocument.cjs +4 -4
- package/lib/cjs/Drag.cjs +4 -4
- package/lib/cjs/Drawer-09efe2ea.js +203 -0
- package/lib/cjs/Drawer-09efe2ea.js.map +1 -0
- package/lib/cjs/Drawer.cjs +9 -9
- package/lib/cjs/DrawerDivider-8f1e423f.js +28 -0
- package/lib/cjs/DrawerDivider-8f1e423f.js.map +1 -0
- package/lib/cjs/DrawerDivider.cjs +2 -2
- package/lib/cjs/DropdownButton-7679f3ba.js +41 -0
- package/lib/cjs/DropdownButton-7679f3ba.js.map +1 -0
- package/lib/cjs/DropdownButton.cjs +5 -5
- package/lib/cjs/DropdownInput-8c5a2d2f.js +83 -0
- package/lib/cjs/DropdownInput-8c5a2d2f.js.map +1 -0
- package/lib/cjs/DropdownInput.cjs +24 -24
- package/lib/cjs/DropdownInputStyles-13901ba5.js +13 -0
- package/lib/cjs/DropdownInputStyles-13901ba5.js.map +1 -0
- package/lib/cjs/Duplicate.cjs +4 -4
- package/lib/cjs/Edit.cjs +4 -4
- package/lib/cjs/Ellipsis.cjs +4 -4
- package/lib/cjs/Email.cjs +4 -4
- package/lib/cjs/EmailInput-a17bf950.js +39 -0
- package/lib/cjs/EmailInput-a17bf950.js.map +1 -0
- package/lib/cjs/EmailInput.cjs +9 -9
- package/lib/cjs/Employee.cjs +4 -4
- package/lib/cjs/Eye.cjs +4 -4
- package/lib/cjs/EyeOff.cjs +4 -4
- package/lib/cjs/Facebook.cjs +4 -4
- package/lib/cjs/File.cjs +4 -4
- package/lib/cjs/FileComplete.cjs +4 -4
- package/lib/cjs/FileError.cjs +4 -4
- package/lib/cjs/Filter.cjs +4 -4
- package/lib/cjs/Filters.cjs +4 -4
- package/lib/cjs/FiltersBar-0c09771a.js +80 -0
- package/lib/cjs/FiltersBar-0c09771a.js.map +1 -0
- package/lib/cjs/FiltersBar.cjs +10 -10
- package/lib/cjs/Folder.cjs +4 -4
- package/lib/cjs/FolderClosed.cjs +4 -4
- package/lib/cjs/FolderOpen.cjs +4 -4
- package/lib/cjs/Footer.cjs +17 -17
- package/lib/cjs/Form.cjs +58 -59
- package/lib/cjs/Form.cjs.map +1 -1
- package/lib/cjs/FormStyles-244ea0b3.js +744 -0
- package/lib/cjs/FormStyles-244ea0b3.js.map +1 -0
- package/lib/cjs/FormWrapper.cjs +11 -11
- package/lib/cjs/FormikContainer-ee106db6.js +1233 -0
- package/lib/cjs/FormikContainer-ee106db6.js.map +1 -0
- package/lib/cjs/Gear.cjs +4 -4
- package/lib/cjs/GitHub.cjs +4 -4
- package/lib/cjs/GlobalStyle.cjs +2 -2
- package/lib/cjs/Grid.cjs +4 -4
- package/lib/cjs/HeadingH1.cjs +1 -1
- package/lib/cjs/HeadingH2.cjs +1 -1
- package/lib/cjs/HeadingH3.cjs +1 -1
- package/lib/cjs/Heart.cjs +4 -4
- package/lib/cjs/Help.cjs +4 -4
- package/lib/cjs/Home.cjs +4 -4
- package/lib/cjs/HorizontalTabMenu-64d6e3a1.js +192 -0
- package/lib/cjs/HorizontalTabMenu-64d6e3a1.js.map +1 -0
- package/lib/cjs/HorizontalTabMenu.cjs +4 -4
- package/lib/cjs/ID.cjs +4 -4
- package/lib/cjs/IconButton-748b96b1.js +82 -0
- package/lib/cjs/IconButton-748b96b1.js.map +1 -0
- package/lib/cjs/IconButton.cjs +2 -2
- package/lib/cjs/IconComponentStyles-64e1c8e7.js +36 -0
- package/lib/cjs/IconComponentStyles-64e1c8e7.js.map +1 -0
- package/lib/cjs/IconSwitcher-0d5db9fd.js +87 -0
- package/lib/cjs/IconSwitcher-0d5db9fd.js.map +1 -0
- package/lib/cjs/IconSwitcher.cjs +21 -21
- package/lib/cjs/IconTile-10e0cc99.js +90 -0
- package/lib/cjs/IconTile-10e0cc99.js.map +1 -0
- package/lib/cjs/IconTile.cjs +13 -13
- package/lib/cjs/IdBack.cjs +4 -4
- package/lib/cjs/IdFront.cjs +4 -4
- package/lib/cjs/IdReverse.cjs +4 -4
- package/lib/cjs/ImagePicker-1a1f6925.js +248 -0
- package/lib/cjs/ImagePicker-1a1f6925.js.map +1 -0
- package/lib/cjs/ImagePicker.cjs +18 -18
- package/lib/cjs/Inactive.cjs +4 -4
- package/lib/cjs/IndicatorDown.cjs +4 -4
- package/lib/cjs/IndicatorSide.cjs +4 -4
- package/lib/cjs/InfoCircle.cjs +4 -4
- package/lib/cjs/InlineCreditCardInput-ab1e12f9.js +337 -0
- package/lib/cjs/InlineCreditCardInput-ab1e12f9.js.map +1 -0
- package/lib/cjs/InlineCreditCardInput.cjs +6 -6
- package/lib/cjs/InlineCurrencyInput-de2c328e.js +72 -0
- package/lib/cjs/InlineCurrencyInput-de2c328e.js.map +1 -0
- package/lib/cjs/InlineCurrencyInput.cjs +6 -6
- package/lib/cjs/InlineDatePicker-6b8b6caf.js +15387 -0
- package/lib/cjs/InlineDatePicker-6b8b6caf.js.map +1 -0
- package/lib/cjs/InlineDatePicker.cjs +21 -22
- package/lib/cjs/InlineDatePicker.cjs.map +1 -1
- package/lib/cjs/InlineDescriptiveDropdown-7bded760.js +95 -0
- package/lib/cjs/InlineDescriptiveDropdown-7bded760.js.map +1 -0
- package/lib/cjs/InlineDescriptiveDropdown.cjs +17 -17
- package/lib/cjs/InlineDropdown-0dc6c4db.js +50 -0
- package/lib/cjs/InlineDropdown-0dc6c4db.js.map +1 -0
- package/lib/cjs/InlineDropdown.cjs +19 -19
- package/lib/cjs/InlineEmailInput-07bf1919.js +45 -0
- package/lib/cjs/InlineEmailInput-07bf1919.js.map +1 -0
- package/lib/cjs/InlineEmailInput.cjs +6 -6
- package/lib/cjs/InlineInput-ddd9d167.js +137 -0
- package/lib/cjs/InlineInput-ddd9d167.js.map +1 -0
- package/lib/cjs/InlineInput.cjs +5 -5
- package/lib/cjs/InlineInputButton.cjs +18 -18
- package/lib/cjs/InlinePasswordInput.cjs +9 -9
- package/lib/cjs/InlinePhoneInput-608dc7c5.js +101 -0
- package/lib/cjs/InlinePhoneInput-608dc7c5.js.map +1 -0
- package/lib/cjs/InlinePhoneInput.cjs +6 -6
- package/lib/cjs/InlineSsnInput.cjs +6 -6
- package/lib/cjs/InlineTextarea.cjs +7 -7
- package/lib/cjs/InlineZipCodeInput.cjs +6 -6
- package/lib/cjs/Input-d7445045.js +35 -0
- package/lib/cjs/Input-d7445045.js.map +1 -0
- package/lib/cjs/InputButton.cjs +11 -11
- package/lib/cjs/Inputs-e71bb0b9.js +250 -0
- package/lib/cjs/Inputs-e71bb0b9.js.map +1 -0
- package/lib/cjs/InteriorSidebar-d3b7fa0d.js +182 -0
- package/lib/cjs/InteriorSidebar-d3b7fa0d.js.map +1 -0
- package/lib/cjs/InteriorSidebar.cjs +4 -4
- package/lib/cjs/JSON.cjs +4 -4
- package/lib/cjs/Key.cjs +4 -4
- package/lib/cjs/LayoutSidebar.cjs +7 -7
- package/lib/cjs/Lightning.cjs +4 -4
- package/lib/cjs/LinkedIn.cjs +4 -4
- package/lib/cjs/List.cjs +4 -4
- package/lib/cjs/Loading.cjs +4 -4
- package/lib/cjs/LoadingEllipsis-b9895744.js +55 -0
- package/lib/cjs/LoadingEllipsis-b9895744.js.map +1 -0
- package/lib/cjs/LoadingEllipsis.cjs +2 -2
- package/lib/cjs/Location.cjs +4 -4
- package/lib/cjs/LocationPin.cjs +4 -4
- package/lib/cjs/Lock.cjs +4 -4
- package/lib/cjs/LogOut.cjs +4 -4
- package/lib/cjs/LogoSidebar-0bf2f163.js +59 -0
- package/lib/cjs/LogoSidebar-0bf2f163.js.map +1 -0
- package/lib/cjs/LogoSidebar.cjs +7 -7
- package/lib/cjs/Menu.cjs +4 -4
- package/lib/cjs/MinusCircle.cjs +4 -4
- package/lib/cjs/Mobile.cjs +4 -4
- package/lib/cjs/Modal-c16dd7a7.js +143 -0
- package/lib/cjs/Modal-c16dd7a7.js.map +1 -0
- package/lib/cjs/Modal.cjs +5 -5
- package/lib/cjs/Money.cjs +4 -4
- package/lib/cjs/MoreMenuButton-e0a83af4.js +31 -0
- package/lib/cjs/MoreMenuButton-e0a83af4.js.map +1 -0
- package/lib/cjs/MoreMenuButton.cjs +5 -5
- package/lib/cjs/MultiSelect-a6da8f98.js +97 -0
- package/lib/cjs/MultiSelect-a6da8f98.js.map +1 -0
- package/lib/cjs/MultiSelect.cjs +23 -23
- package/lib/cjs/NavLayout.cjs +4 -4
- package/lib/cjs/No.cjs +4 -4
- package/lib/cjs/NotFound.cjs +11 -11
- package/lib/cjs/Orders-2eac067e.js +16 -0
- package/lib/cjs/Orders-2eac067e.js.map +1 -0
- package/lib/cjs/Orders.cjs +4 -4
- package/lib/cjs/OutlineButton.cjs +5 -5
- package/lib/cjs/PDF.cjs +4 -4
- package/lib/cjs/Package.cjs +4 -4
- package/lib/cjs/PackageDownArrow.cjs +4 -4
- package/lib/cjs/PasswordInput.cjs +11 -11
- package/lib/cjs/Phone.cjs +4 -4
- package/lib/cjs/PhoneCell.cjs +7 -7
- package/lib/cjs/PhoneInput-d75b99e3.js +36 -0
- package/lib/cjs/PhoneInput-d75b99e3.js.map +1 -0
- package/lib/cjs/PhoneInput.cjs +9 -9
- package/lib/cjs/PieChart-b221fe62.js +78 -0
- package/lib/cjs/PieChart-b221fe62.js.map +1 -0
- package/lib/cjs/PieChart.cjs +2 -2
- package/lib/cjs/PlusCircle.cjs +4 -4
- package/lib/cjs/PrimaryButton.cjs +5 -5
- package/lib/cjs/Print.cjs +4 -4
- package/lib/cjs/Queue.cjs +4 -4
- package/lib/cjs/RJSForm-88fbf948.js +376 -0
- package/lib/cjs/RJSForm-88fbf948.js.map +1 -0
- package/lib/cjs/RJSForm.cjs +38 -39
- package/lib/cjs/RJSForm.cjs.map +1 -1
- package/lib/cjs/RJSFormRenderer-0ea1d6a2.js +199 -0
- package/lib/cjs/RJSFormRenderer-0ea1d6a2.js.map +1 -0
- package/lib/cjs/RJSFormRenderer.cjs +8 -8
- package/lib/cjs/Radio-eb69f788.js +24 -0
- package/lib/cjs/Radio-eb69f788.js.map +1 -0
- package/lib/cjs/Radio.cjs +5 -5
- package/lib/cjs/RadioEmpty.cjs +4 -4
- package/lib/cjs/RadioFull.cjs +4 -4
- package/lib/cjs/RadioGroup-2654ae70.js +68 -0
- package/lib/cjs/RadioGroup-2654ae70.js.map +1 -0
- package/lib/cjs/RadioGroup.cjs +10 -10
- package/lib/cjs/RadioItem-d4d9b513.js +48 -0
- package/lib/cjs/RadioItem-d4d9b513.js.map +1 -0
- package/lib/cjs/RadioItem.cjs +9 -9
- package/lib/cjs/RadioStyles-12980dcd.js +33 -0
- package/lib/cjs/RadioStyles-12980dcd.js.map +1 -0
- package/lib/cjs/Resend.cjs +4 -4
- package/lib/cjs/Scroller.cjs +3 -3
- package/lib/cjs/Search.cjs +4 -4
- package/lib/cjs/SearchInput-5cf8e588.js +89 -0
- package/lib/cjs/SearchInput-5cf8e588.js.map +1 -0
- package/lib/cjs/SearchInput.cjs +7 -7
- package/lib/cjs/SearchMenu-6c4683eb.js +358 -0
- package/lib/cjs/SearchMenu-6c4683eb.js.map +1 -0
- package/lib/cjs/SearchMenu.cjs +16 -16
- package/lib/cjs/SecondaryButton.cjs +5 -5
- package/lib/cjs/Select-c5122ea0.js +246 -0
- package/lib/cjs/Select-c5122ea0.js.map +1 -0
- package/lib/cjs/Select.cjs +7 -7
- package/lib/cjs/SelectSearch-ce83a11e.js +186 -0
- package/lib/cjs/SelectSearch-ce83a11e.js.map +1 -0
- package/lib/cjs/SelectSearch.cjs +21 -21
- package/lib/cjs/Selfie.cjs +4 -4
- package/lib/cjs/SelfiePhone.cjs +4 -4
- package/lib/cjs/Send.cjs +4 -4
- package/lib/cjs/Settings.cjs +4 -4
- package/lib/cjs/ShortScroller.cjs +1 -1
- package/lib/cjs/SignDoc.cjs +4 -4
- package/lib/cjs/SingleButton-9e75f5e0.js +14 -0
- package/lib/cjs/SingleButton-9e75f5e0.js.map +1 -0
- package/lib/cjs/SlideIn-60a3400a.js +195 -0
- package/lib/cjs/SlideIn-60a3400a.js.map +1 -0
- package/lib/cjs/SlideIn.cjs +2 -2
- package/lib/cjs/SnackContainer-df7ba01c.js +267 -0
- package/lib/cjs/SnackContainer-df7ba01c.js.map +1 -0
- package/lib/cjs/Sort.cjs +4 -4
- package/lib/cjs/Ssn.cjs +4 -4
- package/lib/cjs/SsnInput.cjs +8 -8
- package/lib/cjs/Star.cjs +4 -4
- package/lib/cjs/StateDropdown-5f758e78.js +20 -0
- package/lib/cjs/StateDropdown-5f758e78.js.map +1 -0
- package/lib/cjs/StateDropdown.cjs +25 -25
- package/lib/cjs/Status.cjs +4 -4
- package/lib/cjs/StatusDropdown-afcc7e31.js +37 -0
- package/lib/cjs/StatusDropdown-afcc7e31.js.map +1 -0
- package/lib/cjs/StatusDropdown.cjs +26 -26
- package/lib/cjs/StatusIndicator-62ef4283.js +98 -0
- package/lib/cjs/StatusIndicator-62ef4283.js.map +1 -0
- package/lib/cjs/StatusIndicator.cjs +3 -3
- package/lib/cjs/Stepper-0bb7a7e3.js +128 -0
- package/lib/cjs/Stepper-0bb7a7e3.js.map +1 -0
- package/lib/cjs/Stepper.cjs +4 -4
- package/lib/cjs/Stop.cjs +4 -4
- package/lib/cjs/SubOrg.cjs +4 -4
- package/lib/cjs/SubheadingMPrimary.cjs +1 -1
- package/lib/cjs/SubheadingSEmphasis.cjs +1 -1
- package/lib/cjs/Switcher.cjs +4 -4
- package/lib/cjs/Switches-7de68c07.js +27 -0
- package/lib/cjs/Switches-7de68c07.js.map +1 -0
- package/lib/cjs/TabModal-72d5be09.js +135 -0
- package/lib/cjs/TabModal-72d5be09.js.map +1 -0
- package/lib/cjs/TabModal.cjs +9 -9
- package/lib/cjs/Table.cjs +75 -75
- package/lib/cjs/TableFiltersPanel-decd0bf8.js +51 -0
- package/lib/cjs/TableFiltersPanel-decd0bf8.js.map +1 -0
- package/lib/cjs/TableFiltersPanel.cjs +18 -18
- package/lib/cjs/TableOptionLabel.cjs +3 -3
- package/lib/cjs/TableStyles-5154b410.js +370 -0
- package/lib/cjs/TableStyles-5154b410.js.map +1 -0
- package/lib/cjs/Tenant.cjs +4 -4
- package/lib/cjs/TextButton.cjs +5 -5
- package/lib/cjs/TextLink-8e494fdc.js +191 -0
- package/lib/cjs/TextLink-8e494fdc.js.map +1 -0
- package/lib/cjs/TextLink.cjs +7 -7
- package/lib/cjs/Textarea.cjs +6 -6
- package/lib/cjs/ThemeProvider.cjs +14 -14
- package/lib/cjs/Timer.cjs +4 -4
- package/lib/cjs/Toggle-334db657.js +78 -0
- package/lib/cjs/Toggle-334db657.js.map +1 -0
- package/lib/cjs/Toggle.cjs +2 -2
- package/lib/cjs/ToggleButtons-af9e2ac4.js +90 -0
- package/lib/cjs/ToggleButtons-af9e2ac4.js.map +1 -0
- package/lib/cjs/ToggleButtons.cjs +2 -2
- package/lib/cjs/ToggleCell.cjs +7 -7
- package/lib/cjs/ToggleGroup-dab49d9a.js +41 -0
- package/lib/cjs/ToggleGroup-dab49d9a.js.map +1 -0
- package/lib/cjs/ToggleGroup.cjs +10 -10
- package/lib/cjs/ToggleItem-a6e5b1bd.js +40 -0
- package/lib/cjs/ToggleItem-a6e5b1bd.js.map +1 -0
- package/lib/cjs/ToggleItem.cjs +9 -9
- package/lib/cjs/Tooltip-c3ed82c2.js +155 -0
- package/lib/cjs/Tooltip-c3ed82c2.js.map +1 -0
- package/lib/cjs/Tooltip.cjs +3 -3
- package/lib/cjs/TooltipLabel-c8447cdf.js +121 -0
- package/lib/cjs/TooltipLabel-c8447cdf.js.map +1 -0
- package/lib/cjs/TooltipLabel.cjs +7 -7
- package/lib/cjs/TooltipOptions-7fc9512d.js +49 -0
- package/lib/cjs/TooltipOptions-7fc9512d.js.map +1 -0
- package/lib/cjs/TooltipOptions.cjs +5 -5
- package/lib/cjs/TooltipOptionsStyles-b76ef178.js +64 -0
- package/lib/cjs/TooltipOptionsStyles-b76ef178.js.map +1 -0
- package/lib/cjs/Trash.cjs +4 -4
- package/lib/cjs/Truncate-04d964ee.js +54 -0
- package/lib/cjs/Truncate-04d964ee.js.map +1 -0
- package/lib/cjs/Truncate.cjs +4 -4
- package/lib/cjs/TruncatePicker-36c3071c.js +112 -0
- package/lib/cjs/TruncatePicker-36c3071c.js.map +1 -0
- package/lib/cjs/Twitter.cjs +4 -4
- package/lib/cjs/Typography-e12dfd67.js +29 -0
- package/lib/cjs/Typography-e12dfd67.js.map +1 -0
- package/lib/cjs/Typography.cjs +5 -5
- package/lib/cjs/Update.cjs +4 -4
- package/lib/cjs/Upload.cjs +4 -4
- package/lib/cjs/UploadDocument.cjs +4 -4
- package/lib/cjs/UploadDropzone-554e6c21.js +234 -0
- package/lib/cjs/UploadDropzone-554e6c21.js.map +1 -0
- package/lib/cjs/UploadDropzone.cjs +9 -9
- package/lib/cjs/User.cjs +4 -4
- package/lib/cjs/UserAdd.cjs +4 -4
- package/lib/cjs/UserCard.cjs +31 -31
- package/lib/cjs/UserCardModal.cjs +9 -9
- package/lib/cjs/UserInformationCard-d3ac00b2.js +227 -0
- package/lib/cjs/UserInformationCard-d3ac00b2.js.map +1 -0
- package/lib/cjs/UserInformationCard.cjs +12 -12
- package/lib/cjs/UserOutline.cjs +4 -4
- package/lib/cjs/UserRecords.cjs +4 -4
- package/lib/cjs/UserSearch.cjs +4 -4
- package/lib/cjs/VID.cjs +4 -4
- package/lib/cjs/VIDLogo.cjs +4 -4
- package/lib/cjs/Volunteer-3c332464.js +16 -0
- package/lib/cjs/Volunteer-3c332464.js.map +1 -0
- package/lib/cjs/Volunteer.cjs +4 -4
- package/lib/cjs/Warning-423e7910.js +16 -0
- package/lib/cjs/Warning-423e7910.js.map +1 -0
- package/lib/cjs/Warning.cjs +4 -4
- package/lib/cjs/WarningExclaim.cjs +4 -4
- package/lib/cjs/X.cjs +4 -4
- package/lib/cjs/ZipCodeInput.cjs +8 -8
- package/lib/cjs/_tslib-955e611e.js +120 -0
- package/lib/cjs/_tslib-955e611e.js.map +1 -0
- package/lib/cjs/addOrRemoveById.cjs +10 -10
- package/lib/cjs/addOrRemoveString.cjs +1 -1
- package/lib/cjs/cerebellumTheme.cjs +2 -2
- package/lib/cjs/colors-2477135e.js +73 -0
- package/lib/cjs/colors-2477135e.js.map +1 -0
- package/lib/cjs/colors.cjs +7 -7
- package/lib/cjs/cortexTheme.cjs +1 -1
- package/lib/cjs/filtering-43f0db28.js +52 -0
- package/lib/cjs/filtering-43f0db28.js.map +1 -0
- package/lib/cjs/getObjectById.cjs +1 -1
- package/lib/cjs/index.cjs +127 -128
- package/lib/cjs/index.cjs.map +1 -1
- package/lib/cjs/loadingPseudo.cjs +1 -1
- package/lib/cjs/makeIdString.cjs +1 -1
- package/lib/cjs/removeById.cjs +1 -1
- package/lib/cjs/removeByIdArray.cjs +1 -1
- package/lib/cjs/removeString.cjs +1 -1
- package/lib/cjs/replaceObjectById.cjs +1 -1
- package/lib/cjs/setAllKeysToValue.cjs +1 -1
- package/lib/cjs/setObjectById.cjs +1 -1
- package/lib/cjs/showLabel-357449fb.js +30 -0
- package/lib/cjs/showLabel-357449fb.js.map +1 -0
- package/lib/cjs/toggleObjectById.cjs +1 -1
- package/lib/cjs/types-92e1c1ae.js +14 -0
- package/lib/cjs/types-92e1c1ae.js.map +1 -0
- package/lib/cjs/useMeasure-99851af4.js +431 -0
- package/lib/cjs/useMeasure-99851af4.js.map +1 -0
- package/lib/cjs/useMeasureWatchResize-1bef92e8.js +69 -0
- package/lib/cjs/useMeasureWatchResize-1bef92e8.js.map +1 -0
- package/lib/esm/AddButton-59c22abc.js +29 -0
- package/lib/esm/AddButton-59c22abc.js.map +1 -0
- package/lib/esm/AddButton.js +5 -5
- package/lib/esm/AddMenu-1e930bb0.js +59 -0
- package/lib/esm/AddMenu-1e930bb0.js.map +1 -0
- package/lib/esm/AddMenu.js +20 -20
- package/lib/esm/AddressInput-53f61e14.js +2228 -0
- package/lib/esm/AddressInput-53f61e14.js.map +1 -0
- package/lib/esm/AddressInput.js +9 -10
- package/lib/esm/AddressInput.js.map +1 -1
- package/lib/esm/AlertCount-5c367a1f.js +62 -0
- package/lib/esm/AlertCount-5c367a1f.js.map +1 -0
- package/lib/esm/AlertCount.js +2 -2
- package/lib/esm/AltIdBack.js +3 -3
- package/lib/esm/AltIdFront.js +3 -3
- package/lib/esm/Arrow.js +3 -3
- package/lib/esm/ArrowLong.js +3 -3
- package/lib/esm/ArrowUp.js +3 -3
- package/lib/esm/Assign.js +3 -3
- package/lib/esm/Attachment.js +3 -3
- package/lib/esm/Avatar-5871e463.js +45 -0
- package/lib/esm/Avatar-5871e463.js.map +1 -0
- package/lib/esm/Avatar.js +2 -2
- package/lib/esm/BackgroundCheck.js +3 -3
- package/lib/esm/BellOutline.js +3 -3
- package/lib/esm/BodyLEmphasis.js +1 -1
- package/lib/esm/BodyLPrimary.js +1 -1
- package/lib/esm/BodyLSecondary.js +1 -1
- package/lib/esm/BodyMEmphasis.js +1 -1
- package/lib/esm/BodyMPrimary.js +1 -1
- package/lib/esm/BodyMSecondary.js +1 -1
- package/lib/esm/BodyMSemiBold.js +1 -1
- package/lib/esm/BodySEmphasis.js +1 -1
- package/lib/esm/BodySPlaceholder.js +1 -1
- package/lib/esm/BodySPrimary.js +1 -1
- package/lib/esm/BodySSecondary.js +1 -1
- package/lib/esm/BodySSemiBold.js +1 -1
- package/lib/esm/BodySTertiary.js +1 -1
- package/lib/esm/BodyXSEmphasis.js +1 -1
- package/lib/esm/BodyXSPrimary.js +1 -1
- package/lib/esm/BodyXSSemiBold.js +1 -1
- package/lib/esm/BodyXXSEmphasis.js +1 -1
- package/lib/esm/BodyXXSPrimary.js +1 -1
- package/lib/esm/BodyXXSSecondary.js +1 -1
- package/lib/esm/BoxedButton.js +4 -4
- package/lib/esm/BoxedOutlineButton.js +4 -4
- package/lib/esm/Button.js +4 -4
- package/lib/esm/Calendar.js +3 -3
- package/lib/esm/CaretDown.js +3 -3
- package/lib/esm/CaretLeft.js +3 -3
- package/lib/esm/CaretRight.js +3 -3
- package/lib/esm/CaretUp.js +3 -3
- package/lib/esm/Cart.js +3 -3
- package/lib/esm/ChatBubbleLines.js +3 -3
- package/lib/esm/Check.js +3 -3
- package/lib/esm/Checkbox-9a0dc461.js +54 -0
- package/lib/esm/Checkbox-9a0dc461.js.map +1 -0
- package/lib/esm/Checkbox.js +4 -4
- package/lib/esm/CheckboxCellWrapper.js +7 -7
- package/lib/esm/CheckboxEmpty.js +3 -3
- package/lib/esm/CheckboxFull.js +3 -3
- package/lib/esm/CheckboxGroup-e096bfb0.js +38 -0
- package/lib/esm/CheckboxGroup-e096bfb0.js.map +1 -0
- package/lib/esm/CheckboxGroup.js +9 -9
- package/lib/esm/CheckboxItem-08136fae.js +53 -0
- package/lib/esm/CheckboxItem-08136fae.js.map +1 -0
- package/lib/esm/CheckboxItem.js +8 -8
- package/lib/esm/CheckedOff.js +3 -3
- package/lib/esm/CheckmarkCircle.js +3 -3
- package/lib/esm/Clear.js +3 -3
- package/lib/esm/ClearableTag-df45ab7d.js +93 -0
- package/lib/esm/ClearableTag-df45ab7d.js.map +1 -0
- package/lib/esm/ClearableTag.js +6 -6
- package/lib/esm/ClickOutHandler-31ab450e.js +27 -0
- package/lib/esm/ClickOutHandler-31ab450e.js.map +1 -0
- package/lib/esm/ClickOutHandler.js +2 -2
- package/lib/esm/Clipboard.js +4 -4
- package/lib/esm/Close-8d7dda02.js +14 -0
- package/lib/esm/Close-8d7dda02.js.map +1 -0
- package/lib/esm/Close.js +4 -4
- package/lib/esm/CloseCircle.js +3 -3
- package/lib/esm/CodeDoc.js +3 -3
- package/lib/esm/ColorButton-aaf2ff64.js +69 -0
- package/lib/esm/ColorButton-aaf2ff64.js.map +1 -0
- package/lib/esm/ColorButton.js +2 -2
- package/lib/esm/ColorDotDropdown-f135f50a.js +45 -0
- package/lib/esm/ColorDotDropdown-f135f50a.js.map +1 -0
- package/lib/esm/ColorDotDropdown.js +25 -25
- package/lib/esm/ColorPicker-5b6d21b4.js +56 -0
- package/lib/esm/ColorPicker-5b6d21b4.js.map +1 -0
- package/lib/esm/ColorPicker.js +8 -8
- package/lib/esm/ColorPickerMenu-7ab17be8.js +52 -0
- package/lib/esm/ColorPickerMenu-7ab17be8.js.map +1 -0
- package/lib/esm/ColorPickerMenu.js +5 -5
- package/lib/esm/Communication.js +3 -3
- package/lib/esm/ConfigurableInput-f7489a65.js +79 -0
- package/lib/esm/ConfigurableInput-f7489a65.js.map +1 -0
- package/lib/esm/ConfigurableInput.js +15 -15
- package/lib/esm/Configure.js +3 -3
- package/lib/esm/ConfirmModal-6a35295a.js +78 -0
- package/lib/esm/ConfirmModal-6a35295a.js.map +1 -0
- package/lib/esm/ConfirmModal.js +7 -7
- package/lib/esm/ConfirmationModal-9842844b.js +59 -0
- package/lib/esm/ConfirmationModal-9842844b.js.map +1 -0
- package/lib/esm/ConfirmationModal.js +6 -6
- package/lib/esm/Contact.js +3 -3
- package/lib/esm/CountyDropdown-0dcbee1f.js +15 -0
- package/lib/esm/CountyDropdown-0dcbee1f.js.map +1 -0
- package/lib/esm/CountyDropdown.js +25 -25
- package/lib/esm/CovidTest.js +3 -3
- package/lib/esm/CovidVaccineCard.js +3 -3
- package/lib/esm/CreditCard.js +3 -3
- package/lib/esm/CreditCardInput-a783f4ed.js +34 -0
- package/lib/esm/CreditCardInput-a783f4ed.js.map +1 -0
- package/lib/esm/CreditCardInput.js +9 -9
- package/lib/esm/CsvDoc.js +3 -3
- package/lib/esm/CurrencyInput-bbe7b2ab.js +33 -0
- package/lib/esm/CurrencyInput-bbe7b2ab.js.map +1 -0
- package/lib/esm/CurrencyInput.js +9 -9
- package/lib/esm/Dashboard.js +3 -3
- package/lib/esm/DatePicker.js +22 -23
- package/lib/esm/DatePicker.js.map +1 -1
- package/lib/esm/Delete-d3aa7741.js +14 -0
- package/lib/esm/Delete-d3aa7741.js.map +1 -0
- package/lib/esm/Delete.js +4 -4
- package/lib/esm/DescriptiveDropdownInput-a335913c.js +122 -0
- package/lib/esm/DescriptiveDropdownInput-a335913c.js.map +1 -0
- package/lib/esm/DescriptiveDropdownInput.js +19 -19
- package/lib/esm/DescriptiveSwitchMenu-7e4b88aa.js +78 -0
- package/lib/esm/DescriptiveSwitchMenu-7e4b88aa.js.map +1 -0
- package/lib/esm/DescriptiveSwitchMenu.js +10 -10
- package/lib/esm/DialogHandler-97185f3b.js +267 -0
- package/lib/esm/DialogHandler-97185f3b.js.map +1 -0
- package/lib/esm/DialogHandler.js +13 -13
- package/lib/esm/Document.js +3 -3
- package/lib/esm/Dollar.js +3 -3
- package/lib/esm/Download.js +3 -3
- package/lib/esm/DownloadDocument.js +3 -3
- package/lib/esm/Drag.js +3 -3
- package/lib/esm/Drawer-6fd06d3a.js +201 -0
- package/lib/esm/Drawer-6fd06d3a.js.map +1 -0
- package/lib/esm/Drawer.js +9 -9
- package/lib/esm/DrawerDivider-5b10a31b.js +26 -0
- package/lib/esm/DrawerDivider-5b10a31b.js.map +1 -0
- package/lib/esm/DrawerDivider.js +2 -2
- package/lib/esm/DropdownButton-7f8357d3.js +39 -0
- package/lib/esm/DropdownButton-7f8357d3.js.map +1 -0
- package/lib/esm/DropdownButton.js +5 -5
- package/lib/esm/DropdownInput-7e72ddc8.js +81 -0
- package/lib/esm/DropdownInput-7e72ddc8.js.map +1 -0
- package/lib/esm/DropdownInput.js +24 -24
- package/lib/esm/DropdownInputStyles-fab99b6a.js +11 -0
- package/lib/esm/DropdownInputStyles-fab99b6a.js.map +1 -0
- package/lib/esm/Duplicate.js +3 -3
- package/lib/esm/Edit.js +3 -3
- package/lib/esm/Ellipsis.js +3 -3
- package/lib/esm/Email.js +3 -3
- package/lib/esm/EmailInput-949cc132.js +37 -0
- package/lib/esm/EmailInput-949cc132.js.map +1 -0
- package/lib/esm/EmailInput.js +9 -9
- package/lib/esm/Employee.js +3 -3
- package/lib/esm/Eye.js +3 -3
- package/lib/esm/EyeOff.js +3 -3
- package/lib/esm/Facebook.js +3 -3
- package/lib/esm/File.js +3 -3
- package/lib/esm/FileComplete.js +3 -3
- package/lib/esm/FileError.js +3 -3
- package/lib/esm/Filter.js +3 -3
- package/lib/esm/Filters.js +3 -3
- package/lib/esm/FiltersBar-a6dbd832.js +78 -0
- package/lib/esm/FiltersBar-a6dbd832.js.map +1 -0
- package/lib/esm/FiltersBar.js +10 -10
- package/lib/esm/Folder.js +3 -3
- package/lib/esm/FolderClosed.js +3 -3
- package/lib/esm/FolderOpen.js +3 -3
- package/lib/esm/Footer.js +4 -4
- package/lib/esm/Form.js +58 -59
- package/lib/esm/Form.js.map +1 -1
- package/lib/esm/FormStyles-e3b99008.js +687 -0
- package/lib/esm/FormStyles-e3b99008.js.map +1 -0
- package/lib/esm/FormWrapper.js +11 -11
- package/lib/esm/FormikContainer-5cce2479.js +1231 -0
- package/lib/esm/FormikContainer-5cce2479.js.map +1 -0
- package/lib/esm/Gear.js +4 -4
- package/lib/esm/GitHub.js +3 -3
- package/lib/esm/GlobalStyle.js +1 -1
- package/lib/esm/Grid.js +3 -3
- package/lib/esm/HeadingH1.js +1 -1
- package/lib/esm/HeadingH2.js +1 -1
- package/lib/esm/HeadingH3.js +1 -1
- package/lib/esm/Heart.js +4 -4
- package/lib/esm/Help.js +3 -3
- package/lib/esm/Home.js +3 -3
- package/lib/esm/HorizontalTabMenu-417ead69.js +190 -0
- package/lib/esm/HorizontalTabMenu-417ead69.js.map +1 -0
- package/lib/esm/HorizontalTabMenu.js +4 -4
- package/lib/esm/ID.js +3 -3
- package/lib/esm/IconButton-efdfe444.js +80 -0
- package/lib/esm/IconButton-efdfe444.js.map +1 -0
- package/lib/esm/IconButton.js +2 -2
- package/lib/esm/IconComponentStyles-091931ba.js +31 -0
- package/lib/esm/IconComponentStyles-091931ba.js.map +1 -0
- package/lib/esm/IconSwitcher-646c0036.js +85 -0
- package/lib/esm/IconSwitcher-646c0036.js.map +1 -0
- package/lib/esm/IconSwitcher.js +21 -21
- package/lib/esm/IconTile-d8ebec06.js +88 -0
- package/lib/esm/IconTile-d8ebec06.js.map +1 -0
- package/lib/esm/IconTile.js +13 -13
- package/lib/esm/IdBack.js +3 -3
- package/lib/esm/IdFront.js +3 -3
- package/lib/esm/IdReverse.js +3 -3
- package/lib/esm/ImagePicker-3a13dd57.js +246 -0
- package/lib/esm/ImagePicker-3a13dd57.js.map +1 -0
- package/lib/esm/ImagePicker.js +18 -18
- package/lib/esm/Inactive.js +3 -3
- package/lib/esm/IndicatorDown.js +3 -3
- package/lib/esm/IndicatorSide.js +3 -3
- package/lib/esm/InfoCircle.js +3 -3
- package/lib/esm/InlineCreditCardInput-e8a687be.js +334 -0
- package/lib/esm/InlineCreditCardInput-e8a687be.js.map +1 -0
- package/lib/esm/InlineCreditCardInput.js +6 -6
- package/lib/esm/InlineCurrencyInput-9079b831.js +69 -0
- package/lib/esm/InlineCurrencyInput-9079b831.js.map +1 -0
- package/lib/esm/InlineCurrencyInput.js +6 -6
- package/lib/esm/InlineDatePicker-477a8dd1.js +15358 -0
- package/lib/esm/InlineDatePicker-477a8dd1.js.map +1 -0
- package/lib/esm/InlineDatePicker.js +21 -22
- package/lib/esm/InlineDatePicker.js.map +1 -1
- package/lib/esm/InlineDescriptiveDropdown-2beaff2e.js +93 -0
- package/lib/esm/InlineDescriptiveDropdown-2beaff2e.js.map +1 -0
- package/lib/esm/InlineDescriptiveDropdown.js +17 -17
- package/lib/esm/InlineDropdown-54a9617e.js +48 -0
- package/lib/esm/InlineDropdown-54a9617e.js.map +1 -0
- package/lib/esm/InlineDropdown.js +19 -19
- package/lib/esm/InlineEmailInput-27125f3c.js +43 -0
- package/lib/esm/InlineEmailInput-27125f3c.js.map +1 -0
- package/lib/esm/InlineEmailInput.js +6 -6
- package/lib/esm/InlineInput-499c9b96.js +135 -0
- package/lib/esm/InlineInput-499c9b96.js.map +1 -0
- package/lib/esm/InlineInput.js +5 -5
- package/lib/esm/InlineInputButton.js +9 -9
- package/lib/esm/InlinePasswordInput.js +8 -8
- package/lib/esm/InlinePhoneInput-ac463fe5.js +98 -0
- package/lib/esm/InlinePhoneInput-ac463fe5.js.map +1 -0
- package/lib/esm/InlinePhoneInput.js +6 -6
- package/lib/esm/InlineSsnInput.js +5 -5
- package/lib/esm/InlineTextarea.js +3 -3
- package/lib/esm/InlineZipCodeInput.js +5 -5
- package/lib/esm/Input-57f3d61a.js +33 -0
- package/lib/esm/Input-57f3d61a.js.map +1 -0
- package/lib/esm/InputButton.js +10 -10
- package/lib/esm/Inputs-34227839.js +237 -0
- package/lib/esm/Inputs-34227839.js.map +1 -0
- package/lib/esm/InteriorSidebar-89187e84.js +180 -0
- package/lib/esm/InteriorSidebar-89187e84.js.map +1 -0
- package/lib/esm/InteriorSidebar.js +4 -4
- package/lib/esm/JSON.js +3 -3
- package/lib/esm/Key.js +3 -3
- package/lib/esm/LayoutSidebar.js +1 -1
- package/lib/esm/Lightning.js +3 -3
- package/lib/esm/LinkedIn.js +3 -3
- package/lib/esm/List.js +3 -3
- package/lib/esm/Loading.js +1 -1
- package/lib/esm/LoadingEllipsis-505a407e.js +49 -0
- package/lib/esm/LoadingEllipsis-505a407e.js.map +1 -0
- package/lib/esm/LoadingEllipsis.js +2 -2
- package/lib/esm/Location.js +3 -3
- package/lib/esm/LocationPin.js +3 -3
- package/lib/esm/Lock.js +3 -3
- package/lib/esm/LogOut.js +3 -3
- package/lib/esm/LogoSidebar-afdfe6f3.js +57 -0
- package/lib/esm/LogoSidebar-afdfe6f3.js.map +1 -0
- package/lib/esm/LogoSidebar.js +7 -7
- package/lib/esm/Menu.js +3 -3
- package/lib/esm/MinusCircle.js +3 -3
- package/lib/esm/Mobile.js +3 -3
- package/lib/esm/Modal-84eaf0a9.js +137 -0
- package/lib/esm/Modal-84eaf0a9.js.map +1 -0
- package/lib/esm/Modal.js +5 -5
- package/lib/esm/Money.js +3 -3
- package/lib/esm/MoreMenuButton-18ac9c65.js +29 -0
- package/lib/esm/MoreMenuButton-18ac9c65.js.map +1 -0
- package/lib/esm/MoreMenuButton.js +5 -5
- package/lib/esm/MultiSelect-6e9c7645.js +95 -0
- package/lib/esm/MultiSelect-6e9c7645.js.map +1 -0
- package/lib/esm/MultiSelect.js +23 -23
- package/lib/esm/NavLayout.js +1 -1
- package/lib/esm/No.js +3 -3
- package/lib/esm/NotFound.js +4 -4
- package/lib/esm/Orders-a9743b69.js +14 -0
- package/lib/esm/Orders-a9743b69.js.map +1 -0
- package/lib/esm/Orders.js +4 -4
- package/lib/esm/OutlineButton.js +4 -4
- package/lib/esm/PDF.js +3 -3
- package/lib/esm/Package.js +3 -3
- package/lib/esm/PackageDownArrow.js +3 -3
- package/lib/esm/PasswordInput.js +8 -8
- package/lib/esm/Phone.js +3 -3
- package/lib/esm/PhoneCell.js +7 -7
- package/lib/esm/PhoneInput-b13fc8e0.js +34 -0
- package/lib/esm/PhoneInput-b13fc8e0.js.map +1 -0
- package/lib/esm/PhoneInput.js +9 -9
- package/lib/esm/PieChart-cbdf1de9.js +76 -0
- package/lib/esm/PieChart-cbdf1de9.js.map +1 -0
- package/lib/esm/PieChart.js +2 -2
- package/lib/esm/PlusCircle.js +3 -3
- package/lib/esm/PrimaryButton.js +4 -4
- package/lib/esm/Print.js +3 -3
- package/lib/esm/Queue.js +3 -3
- package/lib/esm/RJSForm-99aa3d74.js +368 -0
- package/lib/esm/RJSForm-99aa3d74.js.map +1 -0
- package/lib/esm/RJSForm.js +38 -39
- package/lib/esm/RJSForm.js.map +1 -1
- package/lib/esm/RJSFormRenderer-0cda19b4.js +193 -0
- package/lib/esm/RJSFormRenderer-0cda19b4.js.map +1 -0
- package/lib/esm/RJSFormRenderer.js +8 -8
- package/lib/esm/Radio-a25910f6.js +22 -0
- package/lib/esm/Radio-a25910f6.js.map +1 -0
- package/lib/esm/Radio.js +5 -5
- package/lib/esm/RadioEmpty.js +3 -3
- package/lib/esm/RadioFull.js +3 -3
- package/lib/esm/RadioGroup-5deefd5f.js +62 -0
- package/lib/esm/RadioGroup-5deefd5f.js.map +1 -0
- package/lib/esm/RadioGroup.js +10 -10
- package/lib/esm/RadioItem-5cbc814b.js +46 -0
- package/lib/esm/RadioItem-5cbc814b.js.map +1 -0
- package/lib/esm/RadioItem.js +9 -9
- package/lib/esm/RadioStyles-876d7b0d.js +30 -0
- package/lib/esm/RadioStyles-876d7b0d.js.map +1 -0
- package/lib/esm/Resend.js +3 -3
- package/lib/esm/Scroller.js +1 -1
- package/lib/esm/Search.js +3 -3
- package/lib/esm/SearchInput-c709d725.js +87 -0
- package/lib/esm/SearchInput-c709d725.js.map +1 -0
- package/lib/esm/SearchInput.js +7 -7
- package/lib/esm/SearchMenu-905f58a9.js +355 -0
- package/lib/esm/SearchMenu-905f58a9.js.map +1 -0
- package/lib/esm/SearchMenu.js +16 -16
- package/lib/esm/SecondaryButton.js +4 -4
- package/lib/esm/Select-2d9899e1.js +244 -0
- package/lib/esm/Select-2d9899e1.js.map +1 -0
- package/lib/esm/Select.js +7 -7
- package/lib/esm/SelectSearch-1f85e8c3.js +184 -0
- package/lib/esm/SelectSearch-1f85e8c3.js.map +1 -0
- package/lib/esm/SelectSearch.js +21 -21
- package/lib/esm/Selfie.js +3 -3
- package/lib/esm/SelfiePhone.js +3 -3
- package/lib/esm/Send.js +3 -3
- package/lib/esm/Settings.js +4 -4
- package/lib/esm/ShortScroller.js +1 -1
- package/lib/esm/SignDoc.js +3 -3
- package/lib/esm/SingleButton-6ba25de0.js +12 -0
- package/lib/esm/SingleButton-6ba25de0.js.map +1 -0
- package/lib/esm/SlideIn-2bb990d0.js +189 -0
- package/lib/esm/SlideIn-2bb990d0.js.map +1 -0
- package/lib/esm/SlideIn.js +2 -2
- package/lib/esm/SnackContainer-3d927c9e.js +261 -0
- package/lib/esm/SnackContainer-3d927c9e.js.map +1 -0
- package/lib/esm/Sort.js +3 -3
- package/lib/esm/Ssn.js +3 -3
- package/lib/esm/SsnInput.js +7 -7
- package/lib/esm/Star.js +3 -3
- package/lib/esm/StateDropdown-c8df3307.js +18 -0
- package/lib/esm/StateDropdown-c8df3307.js.map +1 -0
- package/lib/esm/StateDropdown.js +25 -25
- package/lib/esm/Status.js +3 -3
- package/lib/esm/StatusDropdown-cd6a68b3.js +35 -0
- package/lib/esm/StatusDropdown-cd6a68b3.js.map +1 -0
- package/lib/esm/StatusDropdown.js +26 -26
- package/lib/esm/StatusIndicator-8f66e9b8.js +96 -0
- package/lib/esm/StatusIndicator-8f66e9b8.js.map +1 -0
- package/lib/esm/StatusIndicator.js +3 -3
- package/lib/esm/Stepper-0da1458e.js +122 -0
- package/lib/esm/Stepper-0da1458e.js.map +1 -0
- package/lib/esm/Stepper.js +4 -4
- package/lib/esm/Stop.js +3 -3
- package/lib/esm/SubOrg.js +3 -3
- package/lib/esm/SubheadingMPrimary.js +1 -1
- package/lib/esm/SubheadingSEmphasis.js +1 -1
- package/lib/esm/Switcher.js +3 -3
- package/lib/esm/Switches-bd9b0dcf.js +22 -0
- package/lib/esm/Switches-bd9b0dcf.js.map +1 -0
- package/lib/esm/TabModal-2025c7d0.js +133 -0
- package/lib/esm/TabModal-2025c7d0.js.map +1 -0
- package/lib/esm/TabModal.js +9 -9
- package/lib/esm/Table.js +39 -39
- package/lib/esm/TableFiltersPanel-6107874e.js +49 -0
- package/lib/esm/TableFiltersPanel-6107874e.js.map +1 -0
- package/lib/esm/TableFiltersPanel.js +18 -18
- package/lib/esm/TableOptionLabel.js +2 -2
- package/lib/esm/TableStyles-7b7356da.js +324 -0
- package/lib/esm/TableStyles-7b7356da.js.map +1 -0
- package/lib/esm/Tenant.js +3 -3
- package/lib/esm/TextButton.js +4 -4
- package/lib/esm/TextLink-8c34d989.js +189 -0
- package/lib/esm/TextLink-8c34d989.js.map +1 -0
- package/lib/esm/TextLink.js +7 -7
- package/lib/esm/Textarea.js +5 -5
- package/lib/esm/ThemeProvider.js +13 -13
- package/lib/esm/Timer.js +3 -3
- package/lib/esm/Toggle-71b2309a.js +75 -0
- package/lib/esm/Toggle-71b2309a.js.map +1 -0
- package/lib/esm/Toggle.js +2 -2
- package/lib/esm/ToggleButtons-11a33ae3.js +88 -0
- package/lib/esm/ToggleButtons-11a33ae3.js.map +1 -0
- package/lib/esm/ToggleButtons.js +2 -2
- package/lib/esm/ToggleCell.js +7 -7
- package/lib/esm/ToggleGroup-fcf52201.js +39 -0
- package/lib/esm/ToggleGroup-fcf52201.js.map +1 -0
- package/lib/esm/ToggleGroup.js +10 -10
- package/lib/esm/ToggleItem-29649e46.js +38 -0
- package/lib/esm/ToggleItem-29649e46.js.map +1 -0
- package/lib/esm/ToggleItem.js +9 -9
- package/lib/esm/Tooltip-0fdbc2c0.js +149 -0
- package/lib/esm/Tooltip-0fdbc2c0.js.map +1 -0
- package/lib/esm/Tooltip.js +3 -3
- package/lib/esm/TooltipLabel-006716b2.js +115 -0
- package/lib/esm/TooltipLabel-006716b2.js.map +1 -0
- package/lib/esm/TooltipLabel.js +7 -7
- package/lib/esm/TooltipOptions-f913acda.js +47 -0
- package/lib/esm/TooltipOptions-f913acda.js.map +1 -0
- package/lib/esm/TooltipOptions.js +5 -5
- package/lib/esm/TooltipOptionsStyles-585ab278.js +56 -0
- package/lib/esm/TooltipOptionsStyles-585ab278.js.map +1 -0
- package/lib/esm/Trash.js +4 -4
- package/lib/esm/Truncate-3d709d78.js +51 -0
- package/lib/esm/Truncate-3d709d78.js.map +1 -0
- package/lib/esm/Truncate.js +4 -4
- package/lib/esm/TruncatePicker-c7931408.js +110 -0
- package/lib/esm/TruncatePicker-c7931408.js.map +1 -0
- package/lib/esm/Twitter.js +3 -3
- package/lib/esm/Typography-2c8144ed.js +27 -0
- package/lib/esm/Typography-2c8144ed.js.map +1 -0
- package/lib/esm/Typography.js +5 -5
- package/lib/esm/Update.js +3 -3
- package/lib/esm/Upload.js +3 -3
- package/lib/esm/UploadDocument.js +3 -3
- package/lib/esm/UploadDropzone-530529b4.js +232 -0
- package/lib/esm/UploadDropzone-530529b4.js.map +1 -0
- package/lib/esm/UploadDropzone.js +9 -9
- package/lib/esm/User.js +3 -3
- package/lib/esm/UserAdd.js +3 -3
- package/lib/esm/UserCard.js +7 -7
- package/lib/esm/UserCardModal.js +8 -8
- package/lib/esm/UserInformationCard-cce874e4.js +225 -0
- package/lib/esm/UserInformationCard-cce874e4.js.map +1 -0
- package/lib/esm/UserInformationCard.js +12 -12
- package/lib/esm/UserOutline.js +3 -3
- package/lib/esm/UserRecords.js +3 -3
- package/lib/esm/UserSearch.js +3 -3
- package/lib/esm/VID.js +3 -3
- package/lib/esm/VIDLogo.js +3 -3
- package/lib/esm/Volunteer-8030bd39.js +14 -0
- package/lib/esm/Volunteer-8030bd39.js.map +1 -0
- package/lib/esm/Volunteer.js +4 -4
- package/lib/esm/Warning-b9854c5e.js +14 -0
- package/lib/esm/Warning-b9854c5e.js.map +1 -0
- package/lib/esm/Warning.js +4 -4
- package/lib/esm/WarningExclaim.js +4 -4
- package/lib/esm/X.js +4 -4
- package/lib/esm/ZipCodeInput.js +7 -7
- package/lib/esm/_tslib-1a4c929e.js +113 -0
- package/lib/esm/_tslib-1a4c929e.js.map +1 -0
- package/lib/esm/addOrRemoveById.js +1 -1
- package/lib/esm/addOrRemoveString.js +1 -1
- package/lib/esm/cerebellumTheme.js +1 -1
- package/lib/esm/colors-c9761e0f.js +70 -0
- package/lib/esm/colors-c9761e0f.js.map +1 -0
- package/lib/esm/colors.js +1 -1
- package/lib/esm/cortexTheme.js +1 -1
- package/lib/esm/filtering-ce417fc1.js +50 -0
- package/lib/esm/filtering-ce417fc1.js.map +1 -0
- package/lib/esm/getObjectById.js +1 -1
- package/lib/esm/index.js +107 -108
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/loadingPseudo.js +1 -1
- package/lib/esm/makeIdString.js +1 -1
- package/lib/esm/removeById.js +1 -1
- package/lib/esm/removeByIdArray.js +1 -1
- package/lib/esm/removeString.js +1 -1
- package/lib/esm/replaceObjectById.js +1 -1
- package/lib/esm/setAllKeysToValue.js +1 -1
- package/lib/esm/setObjectById.js +1 -1
- package/lib/esm/showLabel-7e7844be.js +24 -0
- package/lib/esm/showLabel-7e7844be.js.map +1 -0
- package/lib/esm/toggleObjectById.js +1 -1
- package/lib/esm/types-20c5eba5.js +14 -0
- package/lib/esm/types-20c5eba5.js.map +1 -0
- package/lib/esm/useMeasure-22bc3b9f.js +422 -0
- package/lib/esm/useMeasure-22bc3b9f.js.map +1 -0
- package/lib/esm/useMeasureWatchResize-eae7908b.js +67 -0
- package/lib/esm/useMeasureWatchResize-eae7908b.js.map +1 -0
- package/lib/types/src/components/RJSForm/fields/HiddenField.d.ts +25 -0
- package/lib/types/src/components/RJSForm/fields/index.d.ts +2 -0
- package/lib/types/src/components/RJSForm/helpers.d.ts +1 -0
- package/lib/types/src/components/RJSForm/mocks/hello.d.ts +2 -0
- package/lib/types/src/components/RJSForm/types.d.ts +3 -2
- package/package.json +7 -7
- package/lib/cjs/AddButton-9f4761e9.js +0 -31
- package/lib/cjs/AddButton-9f4761e9.js.map +0 -1
- package/lib/cjs/AddMenu-425cf850.js +0 -61
- package/lib/cjs/AddMenu-425cf850.js.map +0 -1
- package/lib/cjs/AddressInput-704227f4.js +0 -2233
- package/lib/cjs/AddressInput-704227f4.js.map +0 -1
- package/lib/cjs/AlertCount-5cfa2574.js +0 -64
- package/lib/cjs/AlertCount-5cfa2574.js.map +0 -1
- package/lib/cjs/Avatar-988276de.js +0 -47
- package/lib/cjs/Avatar-988276de.js.map +0 -1
- package/lib/cjs/Checkbox-2f16c7ee.js +0 -57
- package/lib/cjs/Checkbox-2f16c7ee.js.map +0 -1
- package/lib/cjs/CheckboxGroup-61c52880.js +0 -40
- package/lib/cjs/CheckboxGroup-61c52880.js.map +0 -1
- package/lib/cjs/CheckboxItem-41bbef33.js +0 -55
- package/lib/cjs/CheckboxItem-41bbef33.js.map +0 -1
- package/lib/cjs/ClearableTag-7b82a5dc.js +0 -95
- package/lib/cjs/ClearableTag-7b82a5dc.js.map +0 -1
- package/lib/cjs/ClickOutHandler-71cd48fb.js +0 -29
- package/lib/cjs/ClickOutHandler-71cd48fb.js.map +0 -1
- package/lib/cjs/Close-d2bfa10b.js +0 -16
- package/lib/cjs/Close-d2bfa10b.js.map +0 -1
- package/lib/cjs/ColorButton-ed76d173.js +0 -71
- package/lib/cjs/ColorButton-ed76d173.js.map +0 -1
- package/lib/cjs/ColorDotDropdown-4997747e.js +0 -47
- package/lib/cjs/ColorDotDropdown-4997747e.js.map +0 -1
- package/lib/cjs/ColorPicker-aa91a93a.js +0 -58
- package/lib/cjs/ColorPicker-aa91a93a.js.map +0 -1
- package/lib/cjs/ColorPickerMenu-5c6520c0.js +0 -54
- package/lib/cjs/ColorPickerMenu-5c6520c0.js.map +0 -1
- package/lib/cjs/ConfigurableInput-4dcaca48.js +0 -81
- package/lib/cjs/ConfigurableInput-4dcaca48.js.map +0 -1
- package/lib/cjs/ConfirmModal-97f76d76.js +0 -80
- package/lib/cjs/ConfirmModal-97f76d76.js.map +0 -1
- package/lib/cjs/ConfirmationModal-20ee2fbf.js +0 -65
- package/lib/cjs/ConfirmationModal-20ee2fbf.js.map +0 -1
- package/lib/cjs/CountyDropdown-946d9446.js +0 -17
- package/lib/cjs/CountyDropdown-946d9446.js.map +0 -1
- package/lib/cjs/CreditCardInput-ca6eb672.js +0 -36
- package/lib/cjs/CreditCardInput-ca6eb672.js.map +0 -1
- package/lib/cjs/CurrencyInput-b7a382bb.js +0 -35
- package/lib/cjs/CurrencyInput-b7a382bb.js.map +0 -1
- package/lib/cjs/Delete-9806fc9b.js +0 -16
- package/lib/cjs/Delete-9806fc9b.js.map +0 -1
- package/lib/cjs/DescriptiveDropdownInput-2f7e5fec.js +0 -124
- package/lib/cjs/DescriptiveDropdownInput-2f7e5fec.js.map +0 -1
- package/lib/cjs/DescriptiveSwitchMenu-1d4b2ad8.js +0 -80
- package/lib/cjs/DescriptiveSwitchMenu-1d4b2ad8.js.map +0 -1
- package/lib/cjs/DialogHandler-ba1221a3.js +0 -279
- package/lib/cjs/DialogHandler-ba1221a3.js.map +0 -1
- package/lib/cjs/Drawer-3c0a282d.js +0 -203
- package/lib/cjs/Drawer-3c0a282d.js.map +0 -1
- package/lib/cjs/DrawerDivider-4d38a3df.js +0 -28
- package/lib/cjs/DrawerDivider-4d38a3df.js.map +0 -1
- package/lib/cjs/DropdownButton-af4f5826.js +0 -41
- package/lib/cjs/DropdownButton-af4f5826.js.map +0 -1
- package/lib/cjs/DropdownInput-8db379ad.js +0 -83
- package/lib/cjs/DropdownInput-8db379ad.js.map +0 -1
- package/lib/cjs/DropdownInputStyles-2fcb2824.js +0 -13
- package/lib/cjs/DropdownInputStyles-2fcb2824.js.map +0 -1
- package/lib/cjs/EmailInput-143ed566.js +0 -39
- package/lib/cjs/EmailInput-143ed566.js.map +0 -1
- package/lib/cjs/FiltersBar-8dc66a09.js +0 -80
- package/lib/cjs/FiltersBar-8dc66a09.js.map +0 -1
- package/lib/cjs/FormStyles-73ba7b54.js +0 -744
- package/lib/cjs/FormStyles-73ba7b54.js.map +0 -1
- package/lib/cjs/FormikContainer-fe2499cb.js +0 -1233
- package/lib/cjs/FormikContainer-fe2499cb.js.map +0 -1
- package/lib/cjs/HorizontalTabMenu-3b0092c1.js +0 -192
- package/lib/cjs/HorizontalTabMenu-3b0092c1.js.map +0 -1
- package/lib/cjs/IconButton-94ac0475.js +0 -82
- package/lib/cjs/IconButton-94ac0475.js.map +0 -1
- package/lib/cjs/IconComponentStyles-19eeffe1.js +0 -36
- package/lib/cjs/IconComponentStyles-19eeffe1.js.map +0 -1
- package/lib/cjs/IconSwitcher-575f3233.js +0 -87
- package/lib/cjs/IconSwitcher-575f3233.js.map +0 -1
- package/lib/cjs/IconTile-8ac3ff49.js +0 -90
- package/lib/cjs/IconTile-8ac3ff49.js.map +0 -1
- package/lib/cjs/ImagePicker-349bd8bd.js +0 -248
- package/lib/cjs/ImagePicker-349bd8bd.js.map +0 -1
- package/lib/cjs/InlineCreditCardInput-2476d6ca.js +0 -336
- package/lib/cjs/InlineCreditCardInput-2476d6ca.js.map +0 -1
- package/lib/cjs/InlineCurrencyInput-a0949ed8.js +0 -72
- package/lib/cjs/InlineCurrencyInput-a0949ed8.js.map +0 -1
- package/lib/cjs/InlineDatePicker-c3ec550a.js +0 -9938
- package/lib/cjs/InlineDatePicker-c3ec550a.js.map +0 -1
- package/lib/cjs/InlineDescriptiveDropdown-812166f6.js +0 -95
- package/lib/cjs/InlineDescriptiveDropdown-812166f6.js.map +0 -1
- package/lib/cjs/InlineDropdown-26ba3053.js +0 -50
- package/lib/cjs/InlineDropdown-26ba3053.js.map +0 -1
- package/lib/cjs/InlineEmailInput-f7f57a91.js +0 -45
- package/lib/cjs/InlineEmailInput-f7f57a91.js.map +0 -1
- package/lib/cjs/InlineInput-b5f03319.js +0 -137
- package/lib/cjs/InlineInput-b5f03319.js.map +0 -1
- package/lib/cjs/InlinePhoneInput-e0d92ad2.js +0 -101
- package/lib/cjs/InlinePhoneInput-e0d92ad2.js.map +0 -1
- package/lib/cjs/Input-308e04eb.js +0 -35
- package/lib/cjs/Input-308e04eb.js.map +0 -1
- package/lib/cjs/Inputs-cb571a0e.js +0 -250
- package/lib/cjs/Inputs-cb571a0e.js.map +0 -1
- package/lib/cjs/InteriorSidebar-eb877c07.js +0 -182
- package/lib/cjs/InteriorSidebar-eb877c07.js.map +0 -1
- package/lib/cjs/LoadingEllipsis-355e5c8a.js +0 -55
- package/lib/cjs/LoadingEllipsis-355e5c8a.js.map +0 -1
- package/lib/cjs/LogoSidebar-35de710f.js +0 -59
- package/lib/cjs/LogoSidebar-35de710f.js.map +0 -1
- package/lib/cjs/Modal-c5859a5b.js +0 -143
- package/lib/cjs/Modal-c5859a5b.js.map +0 -1
- package/lib/cjs/MoreMenuButton-224bb177.js +0 -30
- package/lib/cjs/MoreMenuButton-224bb177.js.map +0 -1
- package/lib/cjs/MultiSelect-36ffc08b.js +0 -97
- package/lib/cjs/MultiSelect-36ffc08b.js.map +0 -1
- package/lib/cjs/Orders-8868e213.js +0 -16
- package/lib/cjs/Orders-8868e213.js.map +0 -1
- package/lib/cjs/PhoneInput-17688dff.js +0 -36
- package/lib/cjs/PhoneInput-17688dff.js.map +0 -1
- package/lib/cjs/PieChart-5664cc92.js +0 -78
- package/lib/cjs/PieChart-5664cc92.js.map +0 -1
- package/lib/cjs/RJSForm-f198758b.js +0 -357
- package/lib/cjs/RJSForm-f198758b.js.map +0 -1
- package/lib/cjs/RJSFormRenderer-efa2247b.js +0 -199
- package/lib/cjs/RJSFormRenderer-efa2247b.js.map +0 -1
- package/lib/cjs/Radio-eb655a9b.js +0 -24
- package/lib/cjs/Radio-eb655a9b.js.map +0 -1
- package/lib/cjs/RadioGroup-13119101.js +0 -68
- package/lib/cjs/RadioGroup-13119101.js.map +0 -1
- package/lib/cjs/RadioItem-ab3960ea.js +0 -48
- package/lib/cjs/RadioItem-ab3960ea.js.map +0 -1
- package/lib/cjs/RadioStyles-384c584e.js +0 -33
- package/lib/cjs/RadioStyles-384c584e.js.map +0 -1
- package/lib/cjs/SearchInput-840e3198.js +0 -89
- package/lib/cjs/SearchInput-840e3198.js.map +0 -1
- package/lib/cjs/SearchMenu-e953fd57.js +0 -358
- package/lib/cjs/SearchMenu-e953fd57.js.map +0 -1
- package/lib/cjs/Select-30ce4f96.js +0 -246
- package/lib/cjs/Select-30ce4f96.js.map +0 -1
- package/lib/cjs/SelectSearch-7178b1d3.js +0 -186
- package/lib/cjs/SelectSearch-7178b1d3.js.map +0 -1
- package/lib/cjs/SingleButton-89483c94.js +0 -14
- package/lib/cjs/SingleButton-89483c94.js.map +0 -1
- package/lib/cjs/SlideIn-29d79188.js +0 -195
- package/lib/cjs/SlideIn-29d79188.js.map +0 -1
- package/lib/cjs/SnackContainer-358665a7.js +0 -267
- package/lib/cjs/SnackContainer-358665a7.js.map +0 -1
- package/lib/cjs/StateDropdown-08e902d7.js +0 -20
- package/lib/cjs/StateDropdown-08e902d7.js.map +0 -1
- package/lib/cjs/StatusDropdown-e52c1d1d.js +0 -37
- package/lib/cjs/StatusDropdown-e52c1d1d.js.map +0 -1
- package/lib/cjs/StatusIndicator-e2c0a130.js +0 -98
- package/lib/cjs/StatusIndicator-e2c0a130.js.map +0 -1
- package/lib/cjs/Stepper-b702a463.js +0 -128
- package/lib/cjs/Stepper-b702a463.js.map +0 -1
- package/lib/cjs/Switches-c22ccfa1.js +0 -27
- package/lib/cjs/Switches-c22ccfa1.js.map +0 -1
- package/lib/cjs/TabModal-b1e61148.js +0 -135
- package/lib/cjs/TabModal-b1e61148.js.map +0 -1
- package/lib/cjs/TableFiltersPanel-ec5b3c93.js +0 -51
- package/lib/cjs/TableFiltersPanel-ec5b3c93.js.map +0 -1
- package/lib/cjs/TableStyles-93505c43.js +0 -370
- package/lib/cjs/TableStyles-93505c43.js.map +0 -1
- package/lib/cjs/TextLink-157c361e.js +0 -191
- package/lib/cjs/TextLink-157c361e.js.map +0 -1
- package/lib/cjs/Toggle-a0870c06.js +0 -78
- package/lib/cjs/Toggle-a0870c06.js.map +0 -1
- package/lib/cjs/ToggleButtons-05ab2e6b.js +0 -90
- package/lib/cjs/ToggleButtons-05ab2e6b.js.map +0 -1
- package/lib/cjs/ToggleGroup-776fcd88.js +0 -41
- package/lib/cjs/ToggleGroup-776fcd88.js.map +0 -1
- package/lib/cjs/ToggleItem-1aa92ad1.js +0 -40
- package/lib/cjs/ToggleItem-1aa92ad1.js.map +0 -1
- package/lib/cjs/Tooltip-553dd898.js +0 -155
- package/lib/cjs/Tooltip-553dd898.js.map +0 -1
- package/lib/cjs/TooltipLabel-51b8084b.js +0 -121
- package/lib/cjs/TooltipLabel-51b8084b.js.map +0 -1
- package/lib/cjs/TooltipOptions-99a7cb55.js +0 -49
- package/lib/cjs/TooltipOptions-99a7cb55.js.map +0 -1
- package/lib/cjs/TooltipOptionsStyles-7fbd8128.js +0 -64
- package/lib/cjs/TooltipOptionsStyles-7fbd8128.js.map +0 -1
- package/lib/cjs/Truncate-b4a7c5ab.js +0 -54
- package/lib/cjs/Truncate-b4a7c5ab.js.map +0 -1
- package/lib/cjs/TruncatePicker-77966338.js +0 -112
- package/lib/cjs/TruncatePicker-77966338.js.map +0 -1
- package/lib/cjs/Typography-b04d6596.js +0 -29
- package/lib/cjs/Typography-b04d6596.js.map +0 -1
- package/lib/cjs/UploadDropzone-efe03b7e.js +0 -234
- package/lib/cjs/UploadDropzone-efe03b7e.js.map +0 -1
- package/lib/cjs/UserInformationCard-62a04951.js +0 -227
- package/lib/cjs/UserInformationCard-62a04951.js.map +0 -1
- package/lib/cjs/Volunteer-997f41a7.js +0 -16
- package/lib/cjs/Volunteer-997f41a7.js.map +0 -1
- package/lib/cjs/Warning-6c3775a4.js +0 -16
- package/lib/cjs/Warning-6c3775a4.js.map +0 -1
- package/lib/cjs/_commonjsHelpers-b3309d7b.js +0 -11
- package/lib/cjs/_commonjsHelpers-b3309d7b.js.map +0 -1
- package/lib/cjs/colors-32889cfc.js +0 -73
- package/lib/cjs/colors-32889cfc.js.map +0 -1
- package/lib/cjs/filtering-366fbc3f.js +0 -52
- package/lib/cjs/filtering-366fbc3f.js.map +0 -1
- package/lib/cjs/showLabel-f7628d22.js +0 -30
- package/lib/cjs/showLabel-f7628d22.js.map +0 -1
- package/lib/cjs/tslib.es6-e6f346c4.js +0 -116
- package/lib/cjs/tslib.es6-e6f346c4.js.map +0 -1
- package/lib/cjs/types-d22620c0.js +0 -13
- package/lib/cjs/types-d22620c0.js.map +0 -1
- package/lib/cjs/useMeasure-440c9faa.js +0 -431
- package/lib/cjs/useMeasure-440c9faa.js.map +0 -1
- package/lib/cjs/useMeasureWatchResize-065309a5.js +0 -69
- package/lib/cjs/useMeasureWatchResize-065309a5.js.map +0 -1
- package/lib/esm/AddButton-4264b928.js +0 -29
- package/lib/esm/AddButton-4264b928.js.map +0 -1
- package/lib/esm/AddMenu-232a25d0.js +0 -59
- package/lib/esm/AddMenu-232a25d0.js.map +0 -1
- package/lib/esm/AddressInput-19b6f905.js +0 -2227
- package/lib/esm/AddressInput-19b6f905.js.map +0 -1
- package/lib/esm/AlertCount-e313709a.js +0 -62
- package/lib/esm/AlertCount-e313709a.js.map +0 -1
- package/lib/esm/Avatar-97106dbf.js +0 -45
- package/lib/esm/Avatar-97106dbf.js.map +0 -1
- package/lib/esm/Checkbox-702a7fea.js +0 -54
- package/lib/esm/Checkbox-702a7fea.js.map +0 -1
- package/lib/esm/CheckboxGroup-05dc484c.js +0 -38
- package/lib/esm/CheckboxGroup-05dc484c.js.map +0 -1
- package/lib/esm/CheckboxItem-ea3b44d8.js +0 -53
- package/lib/esm/CheckboxItem-ea3b44d8.js.map +0 -1
- package/lib/esm/ClearableTag-19558917.js +0 -93
- package/lib/esm/ClearableTag-19558917.js.map +0 -1
- package/lib/esm/ClickOutHandler-1bb9b06e.js +0 -27
- package/lib/esm/ClickOutHandler-1bb9b06e.js.map +0 -1
- package/lib/esm/Close-67a64ca0.js +0 -14
- package/lib/esm/Close-67a64ca0.js.map +0 -1
- package/lib/esm/ColorButton-5cc3f460.js +0 -69
- package/lib/esm/ColorButton-5cc3f460.js.map +0 -1
- package/lib/esm/ColorDotDropdown-1ac2051d.js +0 -45
- package/lib/esm/ColorDotDropdown-1ac2051d.js.map +0 -1
- package/lib/esm/ColorPicker-b85337ca.js +0 -56
- package/lib/esm/ColorPicker-b85337ca.js.map +0 -1
- package/lib/esm/ColorPickerMenu-0bd45b5e.js +0 -52
- package/lib/esm/ColorPickerMenu-0bd45b5e.js.map +0 -1
- package/lib/esm/ConfigurableInput-bb6c2930.js +0 -79
- package/lib/esm/ConfigurableInput-bb6c2930.js.map +0 -1
- package/lib/esm/ConfirmModal-909311d1.js +0 -78
- package/lib/esm/ConfirmModal-909311d1.js.map +0 -1
- package/lib/esm/ConfirmationModal-b2307973.js +0 -59
- package/lib/esm/ConfirmationModal-b2307973.js.map +0 -1
- package/lib/esm/CountyDropdown-1255171b.js +0 -15
- package/lib/esm/CountyDropdown-1255171b.js.map +0 -1
- package/lib/esm/CreditCardInput-803db164.js +0 -34
- package/lib/esm/CreditCardInput-803db164.js.map +0 -1
- package/lib/esm/CurrencyInput-e556828d.js +0 -33
- package/lib/esm/CurrencyInput-e556828d.js.map +0 -1
- package/lib/esm/Delete-87209666.js +0 -14
- package/lib/esm/Delete-87209666.js.map +0 -1
- package/lib/esm/DescriptiveDropdownInput-79ef41e9.js +0 -122
- package/lib/esm/DescriptiveDropdownInput-79ef41e9.js.map +0 -1
- package/lib/esm/DescriptiveSwitchMenu-1e0728b8.js +0 -78
- package/lib/esm/DescriptiveSwitchMenu-1e0728b8.js.map +0 -1
- package/lib/esm/DialogHandler-3f55dfbb.js +0 -267
- package/lib/esm/DialogHandler-3f55dfbb.js.map +0 -1
- package/lib/esm/Drawer-d2c0b61e.js +0 -201
- package/lib/esm/Drawer-d2c0b61e.js.map +0 -1
- package/lib/esm/DrawerDivider-1dbb3312.js +0 -26
- package/lib/esm/DrawerDivider-1dbb3312.js.map +0 -1
- package/lib/esm/DropdownButton-2e9653e4.js +0 -39
- package/lib/esm/DropdownButton-2e9653e4.js.map +0 -1
- package/lib/esm/DropdownInput-64a27458.js +0 -81
- package/lib/esm/DropdownInput-64a27458.js.map +0 -1
- package/lib/esm/DropdownInputStyles-ab457592.js +0 -11
- package/lib/esm/DropdownInputStyles-ab457592.js.map +0 -1
- package/lib/esm/EmailInput-19f8dc9f.js +0 -37
- package/lib/esm/EmailInput-19f8dc9f.js.map +0 -1
- package/lib/esm/FiltersBar-9d227f0d.js +0 -78
- package/lib/esm/FiltersBar-9d227f0d.js.map +0 -1
- package/lib/esm/FormStyles-29c97b2d.js +0 -687
- package/lib/esm/FormStyles-29c97b2d.js.map +0 -1
- package/lib/esm/FormikContainer-10b4c356.js +0 -1231
- package/lib/esm/FormikContainer-10b4c356.js.map +0 -1
- package/lib/esm/HorizontalTabMenu-72648f11.js +0 -190
- package/lib/esm/HorizontalTabMenu-72648f11.js.map +0 -1
- package/lib/esm/IconButton-b31ebf93.js +0 -80
- package/lib/esm/IconButton-b31ebf93.js.map +0 -1
- package/lib/esm/IconComponentStyles-7fba9dcb.js +0 -31
- package/lib/esm/IconComponentStyles-7fba9dcb.js.map +0 -1
- package/lib/esm/IconSwitcher-d5cdab7f.js +0 -85
- package/lib/esm/IconSwitcher-d5cdab7f.js.map +0 -1
- package/lib/esm/IconTile-cb7a842e.js +0 -88
- package/lib/esm/IconTile-cb7a842e.js.map +0 -1
- package/lib/esm/ImagePicker-e42e1ec9.js +0 -246
- package/lib/esm/ImagePicker-e42e1ec9.js.map +0 -1
- package/lib/esm/InlineCreditCardInput-83e442b8.js +0 -333
- package/lib/esm/InlineCreditCardInput-83e442b8.js.map +0 -1
- package/lib/esm/InlineCurrencyInput-4126f7bd.js +0 -69
- package/lib/esm/InlineCurrencyInput-4126f7bd.js.map +0 -1
- package/lib/esm/InlineDatePicker-a95314b4.js +0 -9909
- package/lib/esm/InlineDatePicker-a95314b4.js.map +0 -1
- package/lib/esm/InlineDescriptiveDropdown-dbe628bc.js +0 -93
- package/lib/esm/InlineDescriptiveDropdown-dbe628bc.js.map +0 -1
- package/lib/esm/InlineDropdown-976eae93.js +0 -48
- package/lib/esm/InlineDropdown-976eae93.js.map +0 -1
- package/lib/esm/InlineEmailInput-8e5e8db6.js +0 -43
- package/lib/esm/InlineEmailInput-8e5e8db6.js.map +0 -1
- package/lib/esm/InlineInput-73165151.js +0 -135
- package/lib/esm/InlineInput-73165151.js.map +0 -1
- package/lib/esm/InlinePhoneInput-286e4b82.js +0 -98
- package/lib/esm/InlinePhoneInput-286e4b82.js.map +0 -1
- package/lib/esm/Input-7b181406.js +0 -33
- package/lib/esm/Input-7b181406.js.map +0 -1
- package/lib/esm/Inputs-68e62601.js +0 -237
- package/lib/esm/Inputs-68e62601.js.map +0 -1
- package/lib/esm/InteriorSidebar-13682cdb.js +0 -180
- package/lib/esm/InteriorSidebar-13682cdb.js.map +0 -1
- package/lib/esm/LoadingEllipsis-2931bcaa.js +0 -49
- package/lib/esm/LoadingEllipsis-2931bcaa.js.map +0 -1
- package/lib/esm/LogoSidebar-fdbd4944.js +0 -57
- package/lib/esm/LogoSidebar-fdbd4944.js.map +0 -1
- package/lib/esm/Modal-c2ea3041.js +0 -137
- package/lib/esm/Modal-c2ea3041.js.map +0 -1
- package/lib/esm/MoreMenuButton-7bc8fc43.js +0 -28
- package/lib/esm/MoreMenuButton-7bc8fc43.js.map +0 -1
- package/lib/esm/MultiSelect-14554509.js +0 -95
- package/lib/esm/MultiSelect-14554509.js.map +0 -1
- package/lib/esm/Orders-49debf47.js +0 -14
- package/lib/esm/Orders-49debf47.js.map +0 -1
- package/lib/esm/PhoneInput-972f2c85.js +0 -34
- package/lib/esm/PhoneInput-972f2c85.js.map +0 -1
- package/lib/esm/PieChart-9716b87e.js +0 -76
- package/lib/esm/PieChart-9716b87e.js.map +0 -1
- package/lib/esm/RJSForm-018f72d0.js +0 -349
- package/lib/esm/RJSForm-018f72d0.js.map +0 -1
- package/lib/esm/RJSFormRenderer-8fb592e3.js +0 -193
- package/lib/esm/RJSFormRenderer-8fb592e3.js.map +0 -1
- package/lib/esm/Radio-ade99d62.js +0 -22
- package/lib/esm/Radio-ade99d62.js.map +0 -1
- package/lib/esm/RadioGroup-10178987.js +0 -62
- package/lib/esm/RadioGroup-10178987.js.map +0 -1
- package/lib/esm/RadioItem-1d1ca588.js +0 -46
- package/lib/esm/RadioItem-1d1ca588.js.map +0 -1
- package/lib/esm/RadioStyles-d324c814.js +0 -30
- package/lib/esm/RadioStyles-d324c814.js.map +0 -1
- package/lib/esm/SearchInput-755ce983.js +0 -87
- package/lib/esm/SearchInput-755ce983.js.map +0 -1
- package/lib/esm/SearchMenu-04d55280.js +0 -355
- package/lib/esm/SearchMenu-04d55280.js.map +0 -1
- package/lib/esm/Select-4607afd7.js +0 -244
- package/lib/esm/Select-4607afd7.js.map +0 -1
- package/lib/esm/SelectSearch-15bd8c16.js +0 -184
- package/lib/esm/SelectSearch-15bd8c16.js.map +0 -1
- package/lib/esm/SingleButton-7864ed2d.js +0 -12
- package/lib/esm/SingleButton-7864ed2d.js.map +0 -1
- package/lib/esm/SlideIn-9f9ce952.js +0 -189
- package/lib/esm/SlideIn-9f9ce952.js.map +0 -1
- package/lib/esm/SnackContainer-f5a0264e.js +0 -261
- package/lib/esm/SnackContainer-f5a0264e.js.map +0 -1
- package/lib/esm/StateDropdown-347cc728.js +0 -18
- package/lib/esm/StateDropdown-347cc728.js.map +0 -1
- package/lib/esm/StatusDropdown-ec678932.js +0 -35
- package/lib/esm/StatusDropdown-ec678932.js.map +0 -1
- package/lib/esm/StatusIndicator-4dac59c2.js +0 -96
- package/lib/esm/StatusIndicator-4dac59c2.js.map +0 -1
- package/lib/esm/Stepper-8cb182a7.js +0 -122
- package/lib/esm/Stepper-8cb182a7.js.map +0 -1
- package/lib/esm/Switches-0c0b95dd.js +0 -22
- package/lib/esm/Switches-0c0b95dd.js.map +0 -1
- package/lib/esm/TabModal-40668f8b.js +0 -133
- package/lib/esm/TabModal-40668f8b.js.map +0 -1
- package/lib/esm/TableFiltersPanel-f74bea1d.js +0 -49
- package/lib/esm/TableFiltersPanel-f74bea1d.js.map +0 -1
- package/lib/esm/TableStyles-e39cda5c.js +0 -324
- package/lib/esm/TableStyles-e39cda5c.js.map +0 -1
- package/lib/esm/TextLink-13ecfb7e.js +0 -189
- package/lib/esm/TextLink-13ecfb7e.js.map +0 -1
- package/lib/esm/Toggle-02d8a391.js +0 -75
- package/lib/esm/Toggle-02d8a391.js.map +0 -1
- package/lib/esm/ToggleButtons-bc952ec3.js +0 -88
- package/lib/esm/ToggleButtons-bc952ec3.js.map +0 -1
- package/lib/esm/ToggleGroup-fefd9c65.js +0 -39
- package/lib/esm/ToggleGroup-fefd9c65.js.map +0 -1
- package/lib/esm/ToggleItem-f9c54c95.js +0 -38
- package/lib/esm/ToggleItem-f9c54c95.js.map +0 -1
- package/lib/esm/Tooltip-9a18d45a.js +0 -149
- package/lib/esm/Tooltip-9a18d45a.js.map +0 -1
- package/lib/esm/TooltipLabel-6447e19e.js +0 -115
- package/lib/esm/TooltipLabel-6447e19e.js.map +0 -1
- package/lib/esm/TooltipOptions-fedcfe46.js +0 -47
- package/lib/esm/TooltipOptions-fedcfe46.js.map +0 -1
- package/lib/esm/TooltipOptionsStyles-d3588ab1.js +0 -56
- package/lib/esm/TooltipOptionsStyles-d3588ab1.js.map +0 -1
- package/lib/esm/Truncate-d4e05ad6.js +0 -51
- package/lib/esm/Truncate-d4e05ad6.js.map +0 -1
- package/lib/esm/TruncatePicker-3ed73ba0.js +0 -110
- package/lib/esm/TruncatePicker-3ed73ba0.js.map +0 -1
- package/lib/esm/Typography-f9a8c3ee.js +0 -27
- package/lib/esm/Typography-f9a8c3ee.js.map +0 -1
- package/lib/esm/UploadDropzone-d2f420f2.js +0 -232
- package/lib/esm/UploadDropzone-d2f420f2.js.map +0 -1
- package/lib/esm/UserInformationCard-34399419.js +0 -225
- package/lib/esm/UserInformationCard-34399419.js.map +0 -1
- package/lib/esm/Volunteer-f71129c9.js +0 -14
- package/lib/esm/Volunteer-f71129c9.js.map +0 -1
- package/lib/esm/Warning-6ce94455.js +0 -14
- package/lib/esm/Warning-6ce94455.js.map +0 -1
- package/lib/esm/_commonjsHelpers-1789f0cf.js +0 -8
- package/lib/esm/_commonjsHelpers-1789f0cf.js.map +0 -1
- package/lib/esm/colors-b7be88d1.js +0 -70
- package/lib/esm/colors-b7be88d1.js.map +0 -1
- package/lib/esm/filtering-dd98c52d.js +0 -50
- package/lib/esm/filtering-dd98c52d.js.map +0 -1
- package/lib/esm/showLabel-9a746369.js +0 -24
- package/lib/esm/showLabel-9a746369.js.map +0 -1
- package/lib/esm/tslib.es6-1648722c.js +0 -109
- package/lib/esm/tslib.es6-1648722c.js.map +0 -1
- package/lib/esm/types-0c5fdb60.js +0 -13
- package/lib/esm/types-0c5fdb60.js.map +0 -1
- package/lib/esm/useMeasure-9a7c456d.js +0 -422
- package/lib/esm/useMeasure-9a7c456d.js.map +0 -1
- package/lib/esm/useMeasureWatchResize-a4a41c80.js +0 -67
- package/lib/esm/useMeasureWatchResize-a4a41c80.js.map +0 -1
|
@@ -0,0 +1,2234 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _tslib = require('./_tslib-955e611e.js');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var Input = require('./Input-d7445045.js');
|
|
7
|
+
var InlineInput = require('./InlineInput-ddd9d167.js');
|
|
8
|
+
var styled = require('styled-components');
|
|
9
|
+
var BodyLEmphasis = require('./BodyLEmphasis.cjs');
|
|
10
|
+
var stateAbbreviationLookup = require('./stateAbbreviationLookup.cjs');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
|
+
|
|
16
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
17
|
+
|
|
18
|
+
var dist = {};
|
|
19
|
+
|
|
20
|
+
var PlacesAutocomplete$1 = {};
|
|
21
|
+
|
|
22
|
+
var propTypes = {exports: {}};
|
|
23
|
+
|
|
24
|
+
var reactIs = {exports: {}};
|
|
25
|
+
|
|
26
|
+
var reactIs_production_min = {};
|
|
27
|
+
|
|
28
|
+
/** @license React v16.13.1
|
|
29
|
+
* react-is.production.min.js
|
|
30
|
+
*
|
|
31
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
32
|
+
*
|
|
33
|
+
* This source code is licensed under the MIT license found in the
|
|
34
|
+
* LICENSE file in the root directory of this source tree.
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
var hasRequiredReactIs_production_min;
|
|
38
|
+
|
|
39
|
+
function requireReactIs_production_min () {
|
|
40
|
+
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
41
|
+
hasRequiredReactIs_production_min = 1;
|
|
42
|
+
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
43
|
+
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
44
|
+
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
|
|
45
|
+
reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
|
|
46
|
+
reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
|
|
47
|
+
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
|
|
48
|
+
return reactIs_production_min;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
var reactIs_development = {};
|
|
52
|
+
|
|
53
|
+
/** @license React v16.13.1
|
|
54
|
+
* react-is.development.js
|
|
55
|
+
*
|
|
56
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
57
|
+
*
|
|
58
|
+
* This source code is licensed under the MIT license found in the
|
|
59
|
+
* LICENSE file in the root directory of this source tree.
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
var hasRequiredReactIs_development;
|
|
63
|
+
|
|
64
|
+
function requireReactIs_development () {
|
|
65
|
+
if (hasRequiredReactIs_development) return reactIs_development;
|
|
66
|
+
hasRequiredReactIs_development = 1;
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
if (process.env.NODE_ENV !== "production") {
|
|
71
|
+
(function() {
|
|
72
|
+
|
|
73
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
74
|
+
// nor polyfill, then a plain number is used for performance.
|
|
75
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
76
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
77
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
78
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
79
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
80
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
81
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
82
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
83
|
+
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
84
|
+
|
|
85
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
86
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
87
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
88
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
89
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
90
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
91
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
92
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
93
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
94
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
95
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
96
|
+
|
|
97
|
+
function isValidElementType(type) {
|
|
98
|
+
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
99
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function typeOf(object) {
|
|
103
|
+
if (typeof object === 'object' && object !== null) {
|
|
104
|
+
var $$typeof = object.$$typeof;
|
|
105
|
+
|
|
106
|
+
switch ($$typeof) {
|
|
107
|
+
case REACT_ELEMENT_TYPE:
|
|
108
|
+
var type = object.type;
|
|
109
|
+
|
|
110
|
+
switch (type) {
|
|
111
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
112
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
113
|
+
case REACT_FRAGMENT_TYPE:
|
|
114
|
+
case REACT_PROFILER_TYPE:
|
|
115
|
+
case REACT_STRICT_MODE_TYPE:
|
|
116
|
+
case REACT_SUSPENSE_TYPE:
|
|
117
|
+
return type;
|
|
118
|
+
|
|
119
|
+
default:
|
|
120
|
+
var $$typeofType = type && type.$$typeof;
|
|
121
|
+
|
|
122
|
+
switch ($$typeofType) {
|
|
123
|
+
case REACT_CONTEXT_TYPE:
|
|
124
|
+
case REACT_FORWARD_REF_TYPE:
|
|
125
|
+
case REACT_LAZY_TYPE:
|
|
126
|
+
case REACT_MEMO_TYPE:
|
|
127
|
+
case REACT_PROVIDER_TYPE:
|
|
128
|
+
return $$typeofType;
|
|
129
|
+
|
|
130
|
+
default:
|
|
131
|
+
return $$typeof;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
case REACT_PORTAL_TYPE:
|
|
137
|
+
return $$typeof;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return undefined;
|
|
142
|
+
} // AsyncMode is deprecated along with isAsyncMode
|
|
143
|
+
|
|
144
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
145
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
146
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
147
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
148
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
149
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
150
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
151
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
152
|
+
var Memo = REACT_MEMO_TYPE;
|
|
153
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
154
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
155
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
156
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
157
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
158
|
+
|
|
159
|
+
function isAsyncMode(object) {
|
|
160
|
+
{
|
|
161
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
162
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
163
|
+
|
|
164
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
169
|
+
}
|
|
170
|
+
function isConcurrentMode(object) {
|
|
171
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
172
|
+
}
|
|
173
|
+
function isContextConsumer(object) {
|
|
174
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
175
|
+
}
|
|
176
|
+
function isContextProvider(object) {
|
|
177
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
178
|
+
}
|
|
179
|
+
function isElement(object) {
|
|
180
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
181
|
+
}
|
|
182
|
+
function isForwardRef(object) {
|
|
183
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
184
|
+
}
|
|
185
|
+
function isFragment(object) {
|
|
186
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
187
|
+
}
|
|
188
|
+
function isLazy(object) {
|
|
189
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
190
|
+
}
|
|
191
|
+
function isMemo(object) {
|
|
192
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
193
|
+
}
|
|
194
|
+
function isPortal(object) {
|
|
195
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
196
|
+
}
|
|
197
|
+
function isProfiler(object) {
|
|
198
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
199
|
+
}
|
|
200
|
+
function isStrictMode(object) {
|
|
201
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
202
|
+
}
|
|
203
|
+
function isSuspense(object) {
|
|
204
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
reactIs_development.AsyncMode = AsyncMode;
|
|
208
|
+
reactIs_development.ConcurrentMode = ConcurrentMode;
|
|
209
|
+
reactIs_development.ContextConsumer = ContextConsumer;
|
|
210
|
+
reactIs_development.ContextProvider = ContextProvider;
|
|
211
|
+
reactIs_development.Element = Element;
|
|
212
|
+
reactIs_development.ForwardRef = ForwardRef;
|
|
213
|
+
reactIs_development.Fragment = Fragment;
|
|
214
|
+
reactIs_development.Lazy = Lazy;
|
|
215
|
+
reactIs_development.Memo = Memo;
|
|
216
|
+
reactIs_development.Portal = Portal;
|
|
217
|
+
reactIs_development.Profiler = Profiler;
|
|
218
|
+
reactIs_development.StrictMode = StrictMode;
|
|
219
|
+
reactIs_development.Suspense = Suspense;
|
|
220
|
+
reactIs_development.isAsyncMode = isAsyncMode;
|
|
221
|
+
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
222
|
+
reactIs_development.isContextConsumer = isContextConsumer;
|
|
223
|
+
reactIs_development.isContextProvider = isContextProvider;
|
|
224
|
+
reactIs_development.isElement = isElement;
|
|
225
|
+
reactIs_development.isForwardRef = isForwardRef;
|
|
226
|
+
reactIs_development.isFragment = isFragment;
|
|
227
|
+
reactIs_development.isLazy = isLazy;
|
|
228
|
+
reactIs_development.isMemo = isMemo;
|
|
229
|
+
reactIs_development.isPortal = isPortal;
|
|
230
|
+
reactIs_development.isProfiler = isProfiler;
|
|
231
|
+
reactIs_development.isStrictMode = isStrictMode;
|
|
232
|
+
reactIs_development.isSuspense = isSuspense;
|
|
233
|
+
reactIs_development.isValidElementType = isValidElementType;
|
|
234
|
+
reactIs_development.typeOf = typeOf;
|
|
235
|
+
})();
|
|
236
|
+
}
|
|
237
|
+
return reactIs_development;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
var hasRequiredReactIs;
|
|
241
|
+
|
|
242
|
+
function requireReactIs () {
|
|
243
|
+
if (hasRequiredReactIs) return reactIs.exports;
|
|
244
|
+
hasRequiredReactIs = 1;
|
|
245
|
+
|
|
246
|
+
if (process.env.NODE_ENV === 'production') {
|
|
247
|
+
reactIs.exports = requireReactIs_production_min();
|
|
248
|
+
} else {
|
|
249
|
+
reactIs.exports = requireReactIs_development();
|
|
250
|
+
}
|
|
251
|
+
return reactIs.exports;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/*
|
|
255
|
+
object-assign
|
|
256
|
+
(c) Sindre Sorhus
|
|
257
|
+
@license MIT
|
|
258
|
+
*/
|
|
259
|
+
|
|
260
|
+
var objectAssign;
|
|
261
|
+
var hasRequiredObjectAssign;
|
|
262
|
+
|
|
263
|
+
function requireObjectAssign () {
|
|
264
|
+
if (hasRequiredObjectAssign) return objectAssign;
|
|
265
|
+
hasRequiredObjectAssign = 1;
|
|
266
|
+
/* eslint-disable no-unused-vars */
|
|
267
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
268
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
269
|
+
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
270
|
+
|
|
271
|
+
function toObject(val) {
|
|
272
|
+
if (val === null || val === undefined) {
|
|
273
|
+
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
return Object(val);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
function shouldUseNative() {
|
|
280
|
+
try {
|
|
281
|
+
if (!Object.assign) {
|
|
282
|
+
return false;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
// Detect buggy property enumeration order in older V8 versions.
|
|
286
|
+
|
|
287
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
288
|
+
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
289
|
+
test1[5] = 'de';
|
|
290
|
+
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
291
|
+
return false;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
295
|
+
var test2 = {};
|
|
296
|
+
for (var i = 0; i < 10; i++) {
|
|
297
|
+
test2['_' + String.fromCharCode(i)] = i;
|
|
298
|
+
}
|
|
299
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
300
|
+
return test2[n];
|
|
301
|
+
});
|
|
302
|
+
if (order2.join('') !== '0123456789') {
|
|
303
|
+
return false;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
307
|
+
var test3 = {};
|
|
308
|
+
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
309
|
+
test3[letter] = letter;
|
|
310
|
+
});
|
|
311
|
+
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
312
|
+
'abcdefghijklmnopqrst') {
|
|
313
|
+
return false;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
return true;
|
|
317
|
+
} catch (err) {
|
|
318
|
+
// We don't expect any of the above to throw, but better to be safe.
|
|
319
|
+
return false;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
324
|
+
var from;
|
|
325
|
+
var to = toObject(target);
|
|
326
|
+
var symbols;
|
|
327
|
+
|
|
328
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
329
|
+
from = Object(arguments[s]);
|
|
330
|
+
|
|
331
|
+
for (var key in from) {
|
|
332
|
+
if (hasOwnProperty.call(from, key)) {
|
|
333
|
+
to[key] = from[key];
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
if (getOwnPropertySymbols) {
|
|
338
|
+
symbols = getOwnPropertySymbols(from);
|
|
339
|
+
for (var i = 0; i < symbols.length; i++) {
|
|
340
|
+
if (propIsEnumerable.call(from, symbols[i])) {
|
|
341
|
+
to[symbols[i]] = from[symbols[i]];
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
return to;
|
|
348
|
+
};
|
|
349
|
+
return objectAssign;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
354
|
+
*
|
|
355
|
+
* This source code is licensed under the MIT license found in the
|
|
356
|
+
* LICENSE file in the root directory of this source tree.
|
|
357
|
+
*/
|
|
358
|
+
|
|
359
|
+
var ReactPropTypesSecret_1;
|
|
360
|
+
var hasRequiredReactPropTypesSecret;
|
|
361
|
+
|
|
362
|
+
function requireReactPropTypesSecret () {
|
|
363
|
+
if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
|
|
364
|
+
hasRequiredReactPropTypesSecret = 1;
|
|
365
|
+
|
|
366
|
+
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
367
|
+
|
|
368
|
+
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
369
|
+
return ReactPropTypesSecret_1;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
var has;
|
|
373
|
+
var hasRequiredHas;
|
|
374
|
+
|
|
375
|
+
function requireHas () {
|
|
376
|
+
if (hasRequiredHas) return has;
|
|
377
|
+
hasRequiredHas = 1;
|
|
378
|
+
has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
379
|
+
return has;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
384
|
+
*
|
|
385
|
+
* This source code is licensed under the MIT license found in the
|
|
386
|
+
* LICENSE file in the root directory of this source tree.
|
|
387
|
+
*/
|
|
388
|
+
|
|
389
|
+
var checkPropTypes_1;
|
|
390
|
+
var hasRequiredCheckPropTypes;
|
|
391
|
+
|
|
392
|
+
function requireCheckPropTypes () {
|
|
393
|
+
if (hasRequiredCheckPropTypes) return checkPropTypes_1;
|
|
394
|
+
hasRequiredCheckPropTypes = 1;
|
|
395
|
+
|
|
396
|
+
var printWarning = function() {};
|
|
397
|
+
|
|
398
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
399
|
+
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
400
|
+
var loggedTypeFailures = {};
|
|
401
|
+
var has = requireHas();
|
|
402
|
+
|
|
403
|
+
printWarning = function(text) {
|
|
404
|
+
var message = 'Warning: ' + text;
|
|
405
|
+
if (typeof console !== 'undefined') {
|
|
406
|
+
console.error(message);
|
|
407
|
+
}
|
|
408
|
+
try {
|
|
409
|
+
// --- Welcome to debugging React ---
|
|
410
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
411
|
+
// to find the callsite that caused this warning to fire.
|
|
412
|
+
throw new Error(message);
|
|
413
|
+
} catch (x) { /**/ }
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Assert that the values match with the type specs.
|
|
419
|
+
* Error messages are memorized and will only be shown once.
|
|
420
|
+
*
|
|
421
|
+
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
422
|
+
* @param {object} values Runtime values that need to be type-checked
|
|
423
|
+
* @param {string} location e.g. "prop", "context", "child context"
|
|
424
|
+
* @param {string} componentName Name of the component for error messages.
|
|
425
|
+
* @param {?Function} getStack Returns the component stack.
|
|
426
|
+
* @private
|
|
427
|
+
*/
|
|
428
|
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
429
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
430
|
+
for (var typeSpecName in typeSpecs) {
|
|
431
|
+
if (has(typeSpecs, typeSpecName)) {
|
|
432
|
+
var error;
|
|
433
|
+
// Prop type validation may throw. In case they do, we don't want to
|
|
434
|
+
// fail the render phase where it didn't fail before. So we log it.
|
|
435
|
+
// After these have been cleaned up, we'll let them throw.
|
|
436
|
+
try {
|
|
437
|
+
// This is intentionally an invariant that gets caught. It's the same
|
|
438
|
+
// behavior as without this statement except with a better message.
|
|
439
|
+
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
440
|
+
var err = Error(
|
|
441
|
+
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
442
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
443
|
+
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
444
|
+
);
|
|
445
|
+
err.name = 'Invariant Violation';
|
|
446
|
+
throw err;
|
|
447
|
+
}
|
|
448
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
449
|
+
} catch (ex) {
|
|
450
|
+
error = ex;
|
|
451
|
+
}
|
|
452
|
+
if (error && !(error instanceof Error)) {
|
|
453
|
+
printWarning(
|
|
454
|
+
(componentName || 'React class') + ': type specification of ' +
|
|
455
|
+
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
456
|
+
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
457
|
+
'You may have forgotten to pass an argument to the type checker ' +
|
|
458
|
+
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
459
|
+
'shape all require an argument).'
|
|
460
|
+
);
|
|
461
|
+
}
|
|
462
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
463
|
+
// Only monitor this failure once because there tends to be a lot of the
|
|
464
|
+
// same error.
|
|
465
|
+
loggedTypeFailures[error.message] = true;
|
|
466
|
+
|
|
467
|
+
var stack = getStack ? getStack() : '';
|
|
468
|
+
|
|
469
|
+
printWarning(
|
|
470
|
+
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
471
|
+
);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* Resets warning cache when testing.
|
|
480
|
+
*
|
|
481
|
+
* @private
|
|
482
|
+
*/
|
|
483
|
+
checkPropTypes.resetWarningCache = function() {
|
|
484
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
485
|
+
loggedTypeFailures = {};
|
|
486
|
+
}
|
|
487
|
+
};
|
|
488
|
+
|
|
489
|
+
checkPropTypes_1 = checkPropTypes;
|
|
490
|
+
return checkPropTypes_1;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
495
|
+
*
|
|
496
|
+
* This source code is licensed under the MIT license found in the
|
|
497
|
+
* LICENSE file in the root directory of this source tree.
|
|
498
|
+
*/
|
|
499
|
+
|
|
500
|
+
var factoryWithTypeCheckers;
|
|
501
|
+
var hasRequiredFactoryWithTypeCheckers;
|
|
502
|
+
|
|
503
|
+
function requireFactoryWithTypeCheckers () {
|
|
504
|
+
if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
|
|
505
|
+
hasRequiredFactoryWithTypeCheckers = 1;
|
|
506
|
+
|
|
507
|
+
var ReactIs = requireReactIs();
|
|
508
|
+
var assign = requireObjectAssign();
|
|
509
|
+
|
|
510
|
+
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
511
|
+
var has = requireHas();
|
|
512
|
+
var checkPropTypes = requireCheckPropTypes();
|
|
513
|
+
|
|
514
|
+
var printWarning = function() {};
|
|
515
|
+
|
|
516
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
517
|
+
printWarning = function(text) {
|
|
518
|
+
var message = 'Warning: ' + text;
|
|
519
|
+
if (typeof console !== 'undefined') {
|
|
520
|
+
console.error(message);
|
|
521
|
+
}
|
|
522
|
+
try {
|
|
523
|
+
// --- Welcome to debugging React ---
|
|
524
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
525
|
+
// to find the callsite that caused this warning to fire.
|
|
526
|
+
throw new Error(message);
|
|
527
|
+
} catch (x) {}
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
function emptyFunctionThatReturnsNull() {
|
|
532
|
+
return null;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
536
|
+
/* global Symbol */
|
|
537
|
+
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
538
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* Returns the iterator method function contained on the iterable object.
|
|
542
|
+
*
|
|
543
|
+
* Be sure to invoke the function with the iterable as context:
|
|
544
|
+
*
|
|
545
|
+
* var iteratorFn = getIteratorFn(myIterable);
|
|
546
|
+
* if (iteratorFn) {
|
|
547
|
+
* var iterator = iteratorFn.call(myIterable);
|
|
548
|
+
* ...
|
|
549
|
+
* }
|
|
550
|
+
*
|
|
551
|
+
* @param {?object} maybeIterable
|
|
552
|
+
* @return {?function}
|
|
553
|
+
*/
|
|
554
|
+
function getIteratorFn(maybeIterable) {
|
|
555
|
+
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
556
|
+
if (typeof iteratorFn === 'function') {
|
|
557
|
+
return iteratorFn;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* Collection of methods that allow declaration and validation of props that are
|
|
563
|
+
* supplied to React components. Example usage:
|
|
564
|
+
*
|
|
565
|
+
* var Props = require('ReactPropTypes');
|
|
566
|
+
* var MyArticle = React.createClass({
|
|
567
|
+
* propTypes: {
|
|
568
|
+
* // An optional string prop named "description".
|
|
569
|
+
* description: Props.string,
|
|
570
|
+
*
|
|
571
|
+
* // A required enum prop named "category".
|
|
572
|
+
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
573
|
+
*
|
|
574
|
+
* // A prop named "dialog" that requires an instance of Dialog.
|
|
575
|
+
* dialog: Props.instanceOf(Dialog).isRequired
|
|
576
|
+
* },
|
|
577
|
+
* render: function() { ... }
|
|
578
|
+
* });
|
|
579
|
+
*
|
|
580
|
+
* A more formal specification of how these methods are used:
|
|
581
|
+
*
|
|
582
|
+
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
583
|
+
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
584
|
+
*
|
|
585
|
+
* Each and every declaration produces a function with the same signature. This
|
|
586
|
+
* allows the creation of custom validation functions. For example:
|
|
587
|
+
*
|
|
588
|
+
* var MyLink = React.createClass({
|
|
589
|
+
* propTypes: {
|
|
590
|
+
* // An optional string or URI prop named "href".
|
|
591
|
+
* href: function(props, propName, componentName) {
|
|
592
|
+
* var propValue = props[propName];
|
|
593
|
+
* if (propValue != null && typeof propValue !== 'string' &&
|
|
594
|
+
* !(propValue instanceof URI)) {
|
|
595
|
+
* return new Error(
|
|
596
|
+
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
597
|
+
* componentName
|
|
598
|
+
* );
|
|
599
|
+
* }
|
|
600
|
+
* }
|
|
601
|
+
* },
|
|
602
|
+
* render: function() {...}
|
|
603
|
+
* });
|
|
604
|
+
*
|
|
605
|
+
* @internal
|
|
606
|
+
*/
|
|
607
|
+
|
|
608
|
+
var ANONYMOUS = '<<anonymous>>';
|
|
609
|
+
|
|
610
|
+
// Important!
|
|
611
|
+
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
612
|
+
var ReactPropTypes = {
|
|
613
|
+
array: createPrimitiveTypeChecker('array'),
|
|
614
|
+
bigint: createPrimitiveTypeChecker('bigint'),
|
|
615
|
+
bool: createPrimitiveTypeChecker('boolean'),
|
|
616
|
+
func: createPrimitiveTypeChecker('function'),
|
|
617
|
+
number: createPrimitiveTypeChecker('number'),
|
|
618
|
+
object: createPrimitiveTypeChecker('object'),
|
|
619
|
+
string: createPrimitiveTypeChecker('string'),
|
|
620
|
+
symbol: createPrimitiveTypeChecker('symbol'),
|
|
621
|
+
|
|
622
|
+
any: createAnyTypeChecker(),
|
|
623
|
+
arrayOf: createArrayOfTypeChecker,
|
|
624
|
+
element: createElementTypeChecker(),
|
|
625
|
+
elementType: createElementTypeTypeChecker(),
|
|
626
|
+
instanceOf: createInstanceTypeChecker,
|
|
627
|
+
node: createNodeChecker(),
|
|
628
|
+
objectOf: createObjectOfTypeChecker,
|
|
629
|
+
oneOf: createEnumTypeChecker,
|
|
630
|
+
oneOfType: createUnionTypeChecker,
|
|
631
|
+
shape: createShapeTypeChecker,
|
|
632
|
+
exact: createStrictShapeTypeChecker,
|
|
633
|
+
};
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
637
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
638
|
+
*/
|
|
639
|
+
/*eslint-disable no-self-compare*/
|
|
640
|
+
function is(x, y) {
|
|
641
|
+
// SameValue algorithm
|
|
642
|
+
if (x === y) {
|
|
643
|
+
// Steps 1-5, 7-10
|
|
644
|
+
// Steps 6.b-6.e: +0 != -0
|
|
645
|
+
return x !== 0 || 1 / x === 1 / y;
|
|
646
|
+
} else {
|
|
647
|
+
// Step 6.a: NaN == NaN
|
|
648
|
+
return x !== x && y !== y;
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
/*eslint-enable no-self-compare*/
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* We use an Error-like object for backward compatibility as people may call
|
|
655
|
+
* PropTypes directly and inspect their output. However, we don't use real
|
|
656
|
+
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
657
|
+
* is prohibitively expensive if they are created too often, such as what
|
|
658
|
+
* happens in oneOfType() for any type before the one that matched.
|
|
659
|
+
*/
|
|
660
|
+
function PropTypeError(message, data) {
|
|
661
|
+
this.message = message;
|
|
662
|
+
this.data = data && typeof data === 'object' ? data: {};
|
|
663
|
+
this.stack = '';
|
|
664
|
+
}
|
|
665
|
+
// Make `instanceof Error` still work for returned errors.
|
|
666
|
+
PropTypeError.prototype = Error.prototype;
|
|
667
|
+
|
|
668
|
+
function createChainableTypeChecker(validate) {
|
|
669
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
670
|
+
var manualPropTypeCallCache = {};
|
|
671
|
+
var manualPropTypeWarningCount = 0;
|
|
672
|
+
}
|
|
673
|
+
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
674
|
+
componentName = componentName || ANONYMOUS;
|
|
675
|
+
propFullName = propFullName || propName;
|
|
676
|
+
|
|
677
|
+
if (secret !== ReactPropTypesSecret) {
|
|
678
|
+
if (throwOnDirectAccess) {
|
|
679
|
+
// New behavior only for users of `prop-types` package
|
|
680
|
+
var err = new Error(
|
|
681
|
+
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
682
|
+
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
|
683
|
+
'Read more at http://fb.me/use-check-prop-types'
|
|
684
|
+
);
|
|
685
|
+
err.name = 'Invariant Violation';
|
|
686
|
+
throw err;
|
|
687
|
+
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
|
|
688
|
+
// Old behavior for people using React.PropTypes
|
|
689
|
+
var cacheKey = componentName + ':' + propName;
|
|
690
|
+
if (
|
|
691
|
+
!manualPropTypeCallCache[cacheKey] &&
|
|
692
|
+
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
693
|
+
manualPropTypeWarningCount < 3
|
|
694
|
+
) {
|
|
695
|
+
printWarning(
|
|
696
|
+
'You are manually calling a React.PropTypes validation ' +
|
|
697
|
+
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
698
|
+
'and will throw in the standalone `prop-types` package. ' +
|
|
699
|
+
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
700
|
+
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
701
|
+
);
|
|
702
|
+
manualPropTypeCallCache[cacheKey] = true;
|
|
703
|
+
manualPropTypeWarningCount++;
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
if (props[propName] == null) {
|
|
708
|
+
if (isRequired) {
|
|
709
|
+
if (props[propName] === null) {
|
|
710
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
711
|
+
}
|
|
712
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
713
|
+
}
|
|
714
|
+
return null;
|
|
715
|
+
} else {
|
|
716
|
+
return validate(props, propName, componentName, location, propFullName);
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
var chainedCheckType = checkType.bind(null, false);
|
|
721
|
+
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
722
|
+
|
|
723
|
+
return chainedCheckType;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
function createPrimitiveTypeChecker(expectedType) {
|
|
727
|
+
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
728
|
+
var propValue = props[propName];
|
|
729
|
+
var propType = getPropType(propValue);
|
|
730
|
+
if (propType !== expectedType) {
|
|
731
|
+
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
732
|
+
// check, but we can offer a more precise error message here rather than
|
|
733
|
+
// 'of type `object`'.
|
|
734
|
+
var preciseType = getPreciseType(propValue);
|
|
735
|
+
|
|
736
|
+
return new PropTypeError(
|
|
737
|
+
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
738
|
+
{expectedType: expectedType}
|
|
739
|
+
);
|
|
740
|
+
}
|
|
741
|
+
return null;
|
|
742
|
+
}
|
|
743
|
+
return createChainableTypeChecker(validate);
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
function createAnyTypeChecker() {
|
|
747
|
+
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
function createArrayOfTypeChecker(typeChecker) {
|
|
751
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
752
|
+
if (typeof typeChecker !== 'function') {
|
|
753
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
754
|
+
}
|
|
755
|
+
var propValue = props[propName];
|
|
756
|
+
if (!Array.isArray(propValue)) {
|
|
757
|
+
var propType = getPropType(propValue);
|
|
758
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
759
|
+
}
|
|
760
|
+
for (var i = 0; i < propValue.length; i++) {
|
|
761
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
762
|
+
if (error instanceof Error) {
|
|
763
|
+
return error;
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
return null;
|
|
767
|
+
}
|
|
768
|
+
return createChainableTypeChecker(validate);
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
function createElementTypeChecker() {
|
|
772
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
773
|
+
var propValue = props[propName];
|
|
774
|
+
if (!isValidElement(propValue)) {
|
|
775
|
+
var propType = getPropType(propValue);
|
|
776
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
777
|
+
}
|
|
778
|
+
return null;
|
|
779
|
+
}
|
|
780
|
+
return createChainableTypeChecker(validate);
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
function createElementTypeTypeChecker() {
|
|
784
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
785
|
+
var propValue = props[propName];
|
|
786
|
+
if (!ReactIs.isValidElementType(propValue)) {
|
|
787
|
+
var propType = getPropType(propValue);
|
|
788
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
789
|
+
}
|
|
790
|
+
return null;
|
|
791
|
+
}
|
|
792
|
+
return createChainableTypeChecker(validate);
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
function createInstanceTypeChecker(expectedClass) {
|
|
796
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
797
|
+
if (!(props[propName] instanceof expectedClass)) {
|
|
798
|
+
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
799
|
+
var actualClassName = getClassName(props[propName]);
|
|
800
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
801
|
+
}
|
|
802
|
+
return null;
|
|
803
|
+
}
|
|
804
|
+
return createChainableTypeChecker(validate);
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
function createEnumTypeChecker(expectedValues) {
|
|
808
|
+
if (!Array.isArray(expectedValues)) {
|
|
809
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
810
|
+
if (arguments.length > 1) {
|
|
811
|
+
printWarning(
|
|
812
|
+
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
|
|
813
|
+
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
|
|
814
|
+
);
|
|
815
|
+
} else {
|
|
816
|
+
printWarning('Invalid argument supplied to oneOf, expected an array.');
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
return emptyFunctionThatReturnsNull;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
823
|
+
var propValue = props[propName];
|
|
824
|
+
for (var i = 0; i < expectedValues.length; i++) {
|
|
825
|
+
if (is(propValue, expectedValues[i])) {
|
|
826
|
+
return null;
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
831
|
+
var type = getPreciseType(value);
|
|
832
|
+
if (type === 'symbol') {
|
|
833
|
+
return String(value);
|
|
834
|
+
}
|
|
835
|
+
return value;
|
|
836
|
+
});
|
|
837
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
838
|
+
}
|
|
839
|
+
return createChainableTypeChecker(validate);
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
function createObjectOfTypeChecker(typeChecker) {
|
|
843
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
844
|
+
if (typeof typeChecker !== 'function') {
|
|
845
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
846
|
+
}
|
|
847
|
+
var propValue = props[propName];
|
|
848
|
+
var propType = getPropType(propValue);
|
|
849
|
+
if (propType !== 'object') {
|
|
850
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
851
|
+
}
|
|
852
|
+
for (var key in propValue) {
|
|
853
|
+
if (has(propValue, key)) {
|
|
854
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
855
|
+
if (error instanceof Error) {
|
|
856
|
+
return error;
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
return null;
|
|
861
|
+
}
|
|
862
|
+
return createChainableTypeChecker(validate);
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
866
|
+
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
867
|
+
process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
868
|
+
return emptyFunctionThatReturnsNull;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
872
|
+
var checker = arrayOfTypeCheckers[i];
|
|
873
|
+
if (typeof checker !== 'function') {
|
|
874
|
+
printWarning(
|
|
875
|
+
'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
|
|
876
|
+
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
|
|
877
|
+
);
|
|
878
|
+
return emptyFunctionThatReturnsNull;
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
883
|
+
var expectedTypes = [];
|
|
884
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
885
|
+
var checker = arrayOfTypeCheckers[i];
|
|
886
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
887
|
+
if (checkerResult == null) {
|
|
888
|
+
return null;
|
|
889
|
+
}
|
|
890
|
+
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
891
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
895
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
896
|
+
}
|
|
897
|
+
return createChainableTypeChecker(validate);
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
function createNodeChecker() {
|
|
901
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
902
|
+
if (!isNode(props[propName])) {
|
|
903
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
904
|
+
}
|
|
905
|
+
return null;
|
|
906
|
+
}
|
|
907
|
+
return createChainableTypeChecker(validate);
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
911
|
+
return new PropTypeError(
|
|
912
|
+
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
913
|
+
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
914
|
+
);
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
function createShapeTypeChecker(shapeTypes) {
|
|
918
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
919
|
+
var propValue = props[propName];
|
|
920
|
+
var propType = getPropType(propValue);
|
|
921
|
+
if (propType !== 'object') {
|
|
922
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
923
|
+
}
|
|
924
|
+
for (var key in shapeTypes) {
|
|
925
|
+
var checker = shapeTypes[key];
|
|
926
|
+
if (typeof checker !== 'function') {
|
|
927
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
928
|
+
}
|
|
929
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
930
|
+
if (error) {
|
|
931
|
+
return error;
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
return null;
|
|
935
|
+
}
|
|
936
|
+
return createChainableTypeChecker(validate);
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
function createStrictShapeTypeChecker(shapeTypes) {
|
|
940
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
941
|
+
var propValue = props[propName];
|
|
942
|
+
var propType = getPropType(propValue);
|
|
943
|
+
if (propType !== 'object') {
|
|
944
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
945
|
+
}
|
|
946
|
+
// We need to check all keys in case some are required but missing from props.
|
|
947
|
+
var allKeys = assign({}, props[propName], shapeTypes);
|
|
948
|
+
for (var key in allKeys) {
|
|
949
|
+
var checker = shapeTypes[key];
|
|
950
|
+
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
951
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
952
|
+
}
|
|
953
|
+
if (!checker) {
|
|
954
|
+
return new PropTypeError(
|
|
955
|
+
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
956
|
+
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
957
|
+
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
958
|
+
);
|
|
959
|
+
}
|
|
960
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
961
|
+
if (error) {
|
|
962
|
+
return error;
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
return null;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
return createChainableTypeChecker(validate);
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
function isNode(propValue) {
|
|
972
|
+
switch (typeof propValue) {
|
|
973
|
+
case 'number':
|
|
974
|
+
case 'string':
|
|
975
|
+
case 'undefined':
|
|
976
|
+
return true;
|
|
977
|
+
case 'boolean':
|
|
978
|
+
return !propValue;
|
|
979
|
+
case 'object':
|
|
980
|
+
if (Array.isArray(propValue)) {
|
|
981
|
+
return propValue.every(isNode);
|
|
982
|
+
}
|
|
983
|
+
if (propValue === null || isValidElement(propValue)) {
|
|
984
|
+
return true;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
var iteratorFn = getIteratorFn(propValue);
|
|
988
|
+
if (iteratorFn) {
|
|
989
|
+
var iterator = iteratorFn.call(propValue);
|
|
990
|
+
var step;
|
|
991
|
+
if (iteratorFn !== propValue.entries) {
|
|
992
|
+
while (!(step = iterator.next()).done) {
|
|
993
|
+
if (!isNode(step.value)) {
|
|
994
|
+
return false;
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
} else {
|
|
998
|
+
// Iterator will provide entry [k,v] tuples rather than values.
|
|
999
|
+
while (!(step = iterator.next()).done) {
|
|
1000
|
+
var entry = step.value;
|
|
1001
|
+
if (entry) {
|
|
1002
|
+
if (!isNode(entry[1])) {
|
|
1003
|
+
return false;
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
} else {
|
|
1009
|
+
return false;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
return true;
|
|
1013
|
+
default:
|
|
1014
|
+
return false;
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
function isSymbol(propType, propValue) {
|
|
1019
|
+
// Native Symbol.
|
|
1020
|
+
if (propType === 'symbol') {
|
|
1021
|
+
return true;
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
// falsy value can't be a Symbol
|
|
1025
|
+
if (!propValue) {
|
|
1026
|
+
return false;
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
1030
|
+
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
1031
|
+
return true;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
1035
|
+
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
1036
|
+
return true;
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
return false;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
1043
|
+
function getPropType(propValue) {
|
|
1044
|
+
var propType = typeof propValue;
|
|
1045
|
+
if (Array.isArray(propValue)) {
|
|
1046
|
+
return 'array';
|
|
1047
|
+
}
|
|
1048
|
+
if (propValue instanceof RegExp) {
|
|
1049
|
+
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
1050
|
+
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
1051
|
+
// passes PropTypes.object.
|
|
1052
|
+
return 'object';
|
|
1053
|
+
}
|
|
1054
|
+
if (isSymbol(propType, propValue)) {
|
|
1055
|
+
return 'symbol';
|
|
1056
|
+
}
|
|
1057
|
+
return propType;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
// This handles more types than `getPropType`. Only used for error messages.
|
|
1061
|
+
// See `createPrimitiveTypeChecker`.
|
|
1062
|
+
function getPreciseType(propValue) {
|
|
1063
|
+
if (typeof propValue === 'undefined' || propValue === null) {
|
|
1064
|
+
return '' + propValue;
|
|
1065
|
+
}
|
|
1066
|
+
var propType = getPropType(propValue);
|
|
1067
|
+
if (propType === 'object') {
|
|
1068
|
+
if (propValue instanceof Date) {
|
|
1069
|
+
return 'date';
|
|
1070
|
+
} else if (propValue instanceof RegExp) {
|
|
1071
|
+
return 'regexp';
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
return propType;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
// Returns a string that is postfixed to a warning about an invalid type.
|
|
1078
|
+
// For example, "undefined" or "of type array"
|
|
1079
|
+
function getPostfixForTypeWarning(value) {
|
|
1080
|
+
var type = getPreciseType(value);
|
|
1081
|
+
switch (type) {
|
|
1082
|
+
case 'array':
|
|
1083
|
+
case 'object':
|
|
1084
|
+
return 'an ' + type;
|
|
1085
|
+
case 'boolean':
|
|
1086
|
+
case 'date':
|
|
1087
|
+
case 'regexp':
|
|
1088
|
+
return 'a ' + type;
|
|
1089
|
+
default:
|
|
1090
|
+
return type;
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
// Returns class name of the object, if any.
|
|
1095
|
+
function getClassName(propValue) {
|
|
1096
|
+
if (!propValue.constructor || !propValue.constructor.name) {
|
|
1097
|
+
return ANONYMOUS;
|
|
1098
|
+
}
|
|
1099
|
+
return propValue.constructor.name;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
1103
|
+
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
1104
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1105
|
+
|
|
1106
|
+
return ReactPropTypes;
|
|
1107
|
+
};
|
|
1108
|
+
return factoryWithTypeCheckers;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
/**
|
|
1112
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1113
|
+
*
|
|
1114
|
+
* This source code is licensed under the MIT license found in the
|
|
1115
|
+
* LICENSE file in the root directory of this source tree.
|
|
1116
|
+
*/
|
|
1117
|
+
|
|
1118
|
+
var factoryWithThrowingShims;
|
|
1119
|
+
var hasRequiredFactoryWithThrowingShims;
|
|
1120
|
+
|
|
1121
|
+
function requireFactoryWithThrowingShims () {
|
|
1122
|
+
if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
|
|
1123
|
+
hasRequiredFactoryWithThrowingShims = 1;
|
|
1124
|
+
|
|
1125
|
+
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
1126
|
+
|
|
1127
|
+
function emptyFunction() {}
|
|
1128
|
+
function emptyFunctionWithReset() {}
|
|
1129
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
1130
|
+
|
|
1131
|
+
factoryWithThrowingShims = function() {
|
|
1132
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
1133
|
+
if (secret === ReactPropTypesSecret) {
|
|
1134
|
+
// It is still safe when called from React.
|
|
1135
|
+
return;
|
|
1136
|
+
}
|
|
1137
|
+
var err = new Error(
|
|
1138
|
+
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
1139
|
+
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
1140
|
+
'Read more at http://fb.me/use-check-prop-types'
|
|
1141
|
+
);
|
|
1142
|
+
err.name = 'Invariant Violation';
|
|
1143
|
+
throw err;
|
|
1144
|
+
} shim.isRequired = shim;
|
|
1145
|
+
function getShim() {
|
|
1146
|
+
return shim;
|
|
1147
|
+
} // Important!
|
|
1148
|
+
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
1149
|
+
var ReactPropTypes = {
|
|
1150
|
+
array: shim,
|
|
1151
|
+
bigint: shim,
|
|
1152
|
+
bool: shim,
|
|
1153
|
+
func: shim,
|
|
1154
|
+
number: shim,
|
|
1155
|
+
object: shim,
|
|
1156
|
+
string: shim,
|
|
1157
|
+
symbol: shim,
|
|
1158
|
+
|
|
1159
|
+
any: shim,
|
|
1160
|
+
arrayOf: getShim,
|
|
1161
|
+
element: shim,
|
|
1162
|
+
elementType: shim,
|
|
1163
|
+
instanceOf: getShim,
|
|
1164
|
+
node: shim,
|
|
1165
|
+
objectOf: getShim,
|
|
1166
|
+
oneOf: getShim,
|
|
1167
|
+
oneOfType: getShim,
|
|
1168
|
+
shape: getShim,
|
|
1169
|
+
exact: getShim,
|
|
1170
|
+
|
|
1171
|
+
checkPropTypes: emptyFunctionWithReset,
|
|
1172
|
+
resetWarningCache: emptyFunction
|
|
1173
|
+
};
|
|
1174
|
+
|
|
1175
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1176
|
+
|
|
1177
|
+
return ReactPropTypes;
|
|
1178
|
+
};
|
|
1179
|
+
return factoryWithThrowingShims;
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
/**
|
|
1183
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1184
|
+
*
|
|
1185
|
+
* This source code is licensed under the MIT license found in the
|
|
1186
|
+
* LICENSE file in the root directory of this source tree.
|
|
1187
|
+
*/
|
|
1188
|
+
|
|
1189
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1190
|
+
var ReactIs = requireReactIs();
|
|
1191
|
+
|
|
1192
|
+
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
1193
|
+
// http://fb.me/prop-types-in-prod
|
|
1194
|
+
var throwOnDirectAccess = true;
|
|
1195
|
+
propTypes.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
|
|
1196
|
+
} else {
|
|
1197
|
+
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
1198
|
+
// http://fb.me/prop-types-in-prod
|
|
1199
|
+
propTypes.exports = requireFactoryWithThrowingShims()();
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
var propTypesExports = propTypes.exports;
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* lodash (Custom Build) <https://lodash.com/>
|
|
1206
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
|
1207
|
+
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
1208
|
+
* Released under MIT license <https://lodash.com/license>
|
|
1209
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
1210
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
1211
|
+
*/
|
|
1212
|
+
|
|
1213
|
+
/** Used as the `TypeError` message for "Functions" methods. */
|
|
1214
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
1215
|
+
|
|
1216
|
+
/** Used as references for various `Number` constants. */
|
|
1217
|
+
var NAN = 0 / 0;
|
|
1218
|
+
|
|
1219
|
+
/** `Object#toString` result references. */
|
|
1220
|
+
var symbolTag = '[object Symbol]';
|
|
1221
|
+
|
|
1222
|
+
/** Used to match leading and trailing whitespace. */
|
|
1223
|
+
var reTrim = /^\s+|\s+$/g;
|
|
1224
|
+
|
|
1225
|
+
/** Used to detect bad signed hexadecimal string values. */
|
|
1226
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
1227
|
+
|
|
1228
|
+
/** Used to detect binary string values. */
|
|
1229
|
+
var reIsBinary = /^0b[01]+$/i;
|
|
1230
|
+
|
|
1231
|
+
/** Used to detect octal string values. */
|
|
1232
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
|
1233
|
+
|
|
1234
|
+
/** Built-in method references without a dependency on `root`. */
|
|
1235
|
+
var freeParseInt = parseInt;
|
|
1236
|
+
|
|
1237
|
+
/** Detect free variable `global` from Node.js. */
|
|
1238
|
+
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
1239
|
+
|
|
1240
|
+
/** Detect free variable `self`. */
|
|
1241
|
+
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
1242
|
+
|
|
1243
|
+
/** Used as a reference to the global object. */
|
|
1244
|
+
var root = freeGlobal || freeSelf || Function('return this')();
|
|
1245
|
+
|
|
1246
|
+
/** Used for built-in method references. */
|
|
1247
|
+
var objectProto = Object.prototype;
|
|
1248
|
+
|
|
1249
|
+
/**
|
|
1250
|
+
* Used to resolve the
|
|
1251
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
1252
|
+
* of values.
|
|
1253
|
+
*/
|
|
1254
|
+
var objectToString = objectProto.toString;
|
|
1255
|
+
|
|
1256
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
1257
|
+
var nativeMax = Math.max,
|
|
1258
|
+
nativeMin = Math.min;
|
|
1259
|
+
|
|
1260
|
+
/**
|
|
1261
|
+
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
1262
|
+
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
|
1263
|
+
*
|
|
1264
|
+
* @static
|
|
1265
|
+
* @memberOf _
|
|
1266
|
+
* @since 2.4.0
|
|
1267
|
+
* @category Date
|
|
1268
|
+
* @returns {number} Returns the timestamp.
|
|
1269
|
+
* @example
|
|
1270
|
+
*
|
|
1271
|
+
* _.defer(function(stamp) {
|
|
1272
|
+
* console.log(_.now() - stamp);
|
|
1273
|
+
* }, _.now());
|
|
1274
|
+
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
1275
|
+
*/
|
|
1276
|
+
var now = function() {
|
|
1277
|
+
return root.Date.now();
|
|
1278
|
+
};
|
|
1279
|
+
|
|
1280
|
+
/**
|
|
1281
|
+
* Creates a debounced function that delays invoking `func` until after `wait`
|
|
1282
|
+
* milliseconds have elapsed since the last time the debounced function was
|
|
1283
|
+
* invoked. The debounced function comes with a `cancel` method to cancel
|
|
1284
|
+
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
|
1285
|
+
* Provide `options` to indicate whether `func` should be invoked on the
|
|
1286
|
+
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
|
1287
|
+
* with the last arguments provided to the debounced function. Subsequent
|
|
1288
|
+
* calls to the debounced function return the result of the last `func`
|
|
1289
|
+
* invocation.
|
|
1290
|
+
*
|
|
1291
|
+
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
1292
|
+
* invoked on the trailing edge of the timeout only if the debounced function
|
|
1293
|
+
* is invoked more than once during the `wait` timeout.
|
|
1294
|
+
*
|
|
1295
|
+
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
1296
|
+
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
1297
|
+
*
|
|
1298
|
+
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
1299
|
+
* for details over the differences between `_.debounce` and `_.throttle`.
|
|
1300
|
+
*
|
|
1301
|
+
* @static
|
|
1302
|
+
* @memberOf _
|
|
1303
|
+
* @since 0.1.0
|
|
1304
|
+
* @category Function
|
|
1305
|
+
* @param {Function} func The function to debounce.
|
|
1306
|
+
* @param {number} [wait=0] The number of milliseconds to delay.
|
|
1307
|
+
* @param {Object} [options={}] The options object.
|
|
1308
|
+
* @param {boolean} [options.leading=false]
|
|
1309
|
+
* Specify invoking on the leading edge of the timeout.
|
|
1310
|
+
* @param {number} [options.maxWait]
|
|
1311
|
+
* The maximum time `func` is allowed to be delayed before it's invoked.
|
|
1312
|
+
* @param {boolean} [options.trailing=true]
|
|
1313
|
+
* Specify invoking on the trailing edge of the timeout.
|
|
1314
|
+
* @returns {Function} Returns the new debounced function.
|
|
1315
|
+
* @example
|
|
1316
|
+
*
|
|
1317
|
+
* // Avoid costly calculations while the window size is in flux.
|
|
1318
|
+
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
|
1319
|
+
*
|
|
1320
|
+
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
|
1321
|
+
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
|
1322
|
+
* 'leading': true,
|
|
1323
|
+
* 'trailing': false
|
|
1324
|
+
* }));
|
|
1325
|
+
*
|
|
1326
|
+
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
|
1327
|
+
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
|
1328
|
+
* var source = new EventSource('/stream');
|
|
1329
|
+
* jQuery(source).on('message', debounced);
|
|
1330
|
+
*
|
|
1331
|
+
* // Cancel the trailing debounced invocation.
|
|
1332
|
+
* jQuery(window).on('popstate', debounced.cancel);
|
|
1333
|
+
*/
|
|
1334
|
+
function debounce(func, wait, options) {
|
|
1335
|
+
var lastArgs,
|
|
1336
|
+
lastThis,
|
|
1337
|
+
maxWait,
|
|
1338
|
+
result,
|
|
1339
|
+
timerId,
|
|
1340
|
+
lastCallTime,
|
|
1341
|
+
lastInvokeTime = 0,
|
|
1342
|
+
leading = false,
|
|
1343
|
+
maxing = false,
|
|
1344
|
+
trailing = true;
|
|
1345
|
+
|
|
1346
|
+
if (typeof func != 'function') {
|
|
1347
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
1348
|
+
}
|
|
1349
|
+
wait = toNumber(wait) || 0;
|
|
1350
|
+
if (isObject(options)) {
|
|
1351
|
+
leading = !!options.leading;
|
|
1352
|
+
maxing = 'maxWait' in options;
|
|
1353
|
+
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
1354
|
+
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
function invokeFunc(time) {
|
|
1358
|
+
var args = lastArgs,
|
|
1359
|
+
thisArg = lastThis;
|
|
1360
|
+
|
|
1361
|
+
lastArgs = lastThis = undefined;
|
|
1362
|
+
lastInvokeTime = time;
|
|
1363
|
+
result = func.apply(thisArg, args);
|
|
1364
|
+
return result;
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
function leadingEdge(time) {
|
|
1368
|
+
// Reset any `maxWait` timer.
|
|
1369
|
+
lastInvokeTime = time;
|
|
1370
|
+
// Start the timer for the trailing edge.
|
|
1371
|
+
timerId = setTimeout(timerExpired, wait);
|
|
1372
|
+
// Invoke the leading edge.
|
|
1373
|
+
return leading ? invokeFunc(time) : result;
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
function remainingWait(time) {
|
|
1377
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
1378
|
+
timeSinceLastInvoke = time - lastInvokeTime,
|
|
1379
|
+
result = wait - timeSinceLastCall;
|
|
1380
|
+
|
|
1381
|
+
return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
function shouldInvoke(time) {
|
|
1385
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
1386
|
+
timeSinceLastInvoke = time - lastInvokeTime;
|
|
1387
|
+
|
|
1388
|
+
// Either this is the first call, activity has stopped and we're at the
|
|
1389
|
+
// trailing edge, the system time has gone backwards and we're treating
|
|
1390
|
+
// it as the trailing edge, or we've hit the `maxWait` limit.
|
|
1391
|
+
return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
|
|
1392
|
+
(timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
function timerExpired() {
|
|
1396
|
+
var time = now();
|
|
1397
|
+
if (shouldInvoke(time)) {
|
|
1398
|
+
return trailingEdge(time);
|
|
1399
|
+
}
|
|
1400
|
+
// Restart the timer.
|
|
1401
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
function trailingEdge(time) {
|
|
1405
|
+
timerId = undefined;
|
|
1406
|
+
|
|
1407
|
+
// Only invoke if we have `lastArgs` which means `func` has been
|
|
1408
|
+
// debounced at least once.
|
|
1409
|
+
if (trailing && lastArgs) {
|
|
1410
|
+
return invokeFunc(time);
|
|
1411
|
+
}
|
|
1412
|
+
lastArgs = lastThis = undefined;
|
|
1413
|
+
return result;
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
function cancel() {
|
|
1417
|
+
if (timerId !== undefined) {
|
|
1418
|
+
clearTimeout(timerId);
|
|
1419
|
+
}
|
|
1420
|
+
lastInvokeTime = 0;
|
|
1421
|
+
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
function flush() {
|
|
1425
|
+
return timerId === undefined ? result : trailingEdge(now());
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
function debounced() {
|
|
1429
|
+
var time = now(),
|
|
1430
|
+
isInvoking = shouldInvoke(time);
|
|
1431
|
+
|
|
1432
|
+
lastArgs = arguments;
|
|
1433
|
+
lastThis = this;
|
|
1434
|
+
lastCallTime = time;
|
|
1435
|
+
|
|
1436
|
+
if (isInvoking) {
|
|
1437
|
+
if (timerId === undefined) {
|
|
1438
|
+
return leadingEdge(lastCallTime);
|
|
1439
|
+
}
|
|
1440
|
+
if (maxing) {
|
|
1441
|
+
// Handle invocations in a tight loop.
|
|
1442
|
+
timerId = setTimeout(timerExpired, wait);
|
|
1443
|
+
return invokeFunc(lastCallTime);
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
if (timerId === undefined) {
|
|
1447
|
+
timerId = setTimeout(timerExpired, wait);
|
|
1448
|
+
}
|
|
1449
|
+
return result;
|
|
1450
|
+
}
|
|
1451
|
+
debounced.cancel = cancel;
|
|
1452
|
+
debounced.flush = flush;
|
|
1453
|
+
return debounced;
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
/**
|
|
1457
|
+
* Checks if `value` is the
|
|
1458
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
1459
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
1460
|
+
*
|
|
1461
|
+
* @static
|
|
1462
|
+
* @memberOf _
|
|
1463
|
+
* @since 0.1.0
|
|
1464
|
+
* @category Lang
|
|
1465
|
+
* @param {*} value The value to check.
|
|
1466
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
1467
|
+
* @example
|
|
1468
|
+
*
|
|
1469
|
+
* _.isObject({});
|
|
1470
|
+
* // => true
|
|
1471
|
+
*
|
|
1472
|
+
* _.isObject([1, 2, 3]);
|
|
1473
|
+
* // => true
|
|
1474
|
+
*
|
|
1475
|
+
* _.isObject(_.noop);
|
|
1476
|
+
* // => true
|
|
1477
|
+
*
|
|
1478
|
+
* _.isObject(null);
|
|
1479
|
+
* // => false
|
|
1480
|
+
*/
|
|
1481
|
+
function isObject(value) {
|
|
1482
|
+
var type = typeof value;
|
|
1483
|
+
return !!value && (type == 'object' || type == 'function');
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
/**
|
|
1487
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
1488
|
+
* and has a `typeof` result of "object".
|
|
1489
|
+
*
|
|
1490
|
+
* @static
|
|
1491
|
+
* @memberOf _
|
|
1492
|
+
* @since 4.0.0
|
|
1493
|
+
* @category Lang
|
|
1494
|
+
* @param {*} value The value to check.
|
|
1495
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
1496
|
+
* @example
|
|
1497
|
+
*
|
|
1498
|
+
* _.isObjectLike({});
|
|
1499
|
+
* // => true
|
|
1500
|
+
*
|
|
1501
|
+
* _.isObjectLike([1, 2, 3]);
|
|
1502
|
+
* // => true
|
|
1503
|
+
*
|
|
1504
|
+
* _.isObjectLike(_.noop);
|
|
1505
|
+
* // => false
|
|
1506
|
+
*
|
|
1507
|
+
* _.isObjectLike(null);
|
|
1508
|
+
* // => false
|
|
1509
|
+
*/
|
|
1510
|
+
function isObjectLike(value) {
|
|
1511
|
+
return !!value && typeof value == 'object';
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
/**
|
|
1515
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
1516
|
+
*
|
|
1517
|
+
* @static
|
|
1518
|
+
* @memberOf _
|
|
1519
|
+
* @since 4.0.0
|
|
1520
|
+
* @category Lang
|
|
1521
|
+
* @param {*} value The value to check.
|
|
1522
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
1523
|
+
* @example
|
|
1524
|
+
*
|
|
1525
|
+
* _.isSymbol(Symbol.iterator);
|
|
1526
|
+
* // => true
|
|
1527
|
+
*
|
|
1528
|
+
* _.isSymbol('abc');
|
|
1529
|
+
* // => false
|
|
1530
|
+
*/
|
|
1531
|
+
function isSymbol(value) {
|
|
1532
|
+
return typeof value == 'symbol' ||
|
|
1533
|
+
(isObjectLike(value) && objectToString.call(value) == symbolTag);
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
/**
|
|
1537
|
+
* Converts `value` to a number.
|
|
1538
|
+
*
|
|
1539
|
+
* @static
|
|
1540
|
+
* @memberOf _
|
|
1541
|
+
* @since 4.0.0
|
|
1542
|
+
* @category Lang
|
|
1543
|
+
* @param {*} value The value to process.
|
|
1544
|
+
* @returns {number} Returns the number.
|
|
1545
|
+
* @example
|
|
1546
|
+
*
|
|
1547
|
+
* _.toNumber(3.2);
|
|
1548
|
+
* // => 3.2
|
|
1549
|
+
*
|
|
1550
|
+
* _.toNumber(Number.MIN_VALUE);
|
|
1551
|
+
* // => 5e-324
|
|
1552
|
+
*
|
|
1553
|
+
* _.toNumber(Infinity);
|
|
1554
|
+
* // => Infinity
|
|
1555
|
+
*
|
|
1556
|
+
* _.toNumber('3.2');
|
|
1557
|
+
* // => 3.2
|
|
1558
|
+
*/
|
|
1559
|
+
function toNumber(value) {
|
|
1560
|
+
if (typeof value == 'number') {
|
|
1561
|
+
return value;
|
|
1562
|
+
}
|
|
1563
|
+
if (isSymbol(value)) {
|
|
1564
|
+
return NAN;
|
|
1565
|
+
}
|
|
1566
|
+
if (isObject(value)) {
|
|
1567
|
+
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
1568
|
+
value = isObject(other) ? (other + '') : other;
|
|
1569
|
+
}
|
|
1570
|
+
if (typeof value != 'string') {
|
|
1571
|
+
return value === 0 ? value : +value;
|
|
1572
|
+
}
|
|
1573
|
+
value = value.replace(reTrim, '');
|
|
1574
|
+
var isBinary = reIsBinary.test(value);
|
|
1575
|
+
return (isBinary || reIsOctal.test(value))
|
|
1576
|
+
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
1577
|
+
: (reIsBadHex.test(value) ? NAN : +value);
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
var lodash_debounce = debounce;
|
|
1581
|
+
|
|
1582
|
+
var helpers = {};
|
|
1583
|
+
|
|
1584
|
+
Object.defineProperty(helpers, "__esModule", {
|
|
1585
|
+
value: true
|
|
1586
|
+
});
|
|
1587
|
+
helpers.compose = function compose() {
|
|
1588
|
+
for (var _len = arguments.length, fns = Array(_len), _key = 0; _key < _len; _key++) {
|
|
1589
|
+
fns[_key] = arguments[_key];
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
return function () {
|
|
1593
|
+
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
1594
|
+
args[_key2] = arguments[_key2];
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
fns.forEach(function (fn) {
|
|
1598
|
+
return fn && fn.apply(undefined, args);
|
|
1599
|
+
});
|
|
1600
|
+
};
|
|
1601
|
+
};
|
|
1602
|
+
|
|
1603
|
+
helpers.pick = function pick(obj) {
|
|
1604
|
+
for (var _len3 = arguments.length, props = Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
|
|
1605
|
+
props[_key3 - 1] = arguments[_key3];
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
return props.reduce(function (newObj, prop) {
|
|
1609
|
+
if (obj && obj.hasOwnProperty(prop)) {
|
|
1610
|
+
newObj[prop] = obj[prop];
|
|
1611
|
+
}
|
|
1612
|
+
return newObj;
|
|
1613
|
+
}, {});
|
|
1614
|
+
};
|
|
1615
|
+
|
|
1616
|
+
Object.defineProperty(PlacesAutocomplete$1, "__esModule", {
|
|
1617
|
+
value: true
|
|
1618
|
+
});
|
|
1619
|
+
|
|
1620
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
1621
|
+
|
|
1622
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
1623
|
+
|
|
1624
|
+
var _react = React__default["default"];
|
|
1625
|
+
|
|
1626
|
+
var _react2 = _interopRequireDefault$1(_react);
|
|
1627
|
+
|
|
1628
|
+
var _propTypes = propTypesExports;
|
|
1629
|
+
|
|
1630
|
+
var _propTypes2 = _interopRequireDefault$1(_propTypes);
|
|
1631
|
+
|
|
1632
|
+
var _lodash = lodash_debounce;
|
|
1633
|
+
|
|
1634
|
+
var _lodash2 = _interopRequireDefault$1(_lodash);
|
|
1635
|
+
|
|
1636
|
+
var _helpers = helpers;
|
|
1637
|
+
|
|
1638
|
+
function _interopRequireDefault$1(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1639
|
+
|
|
1640
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1641
|
+
|
|
1642
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
1643
|
+
|
|
1644
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /*
|
|
1645
|
+
* Copyright (c) 2016-present, Ken Hibino.
|
|
1646
|
+
* Licensed under the MIT License (MIT).
|
|
1647
|
+
* See https://kenny-hibino.github.io/react-places-autocomplete
|
|
1648
|
+
*/
|
|
1649
|
+
|
|
1650
|
+
// transform snake_case to camelCase
|
|
1651
|
+
var formattedSuggestion = function formattedSuggestion(structured_formatting) {
|
|
1652
|
+
return {
|
|
1653
|
+
mainText: structured_formatting.main_text,
|
|
1654
|
+
secondaryText: structured_formatting.secondary_text
|
|
1655
|
+
};
|
|
1656
|
+
};
|
|
1657
|
+
|
|
1658
|
+
var PlacesAutocomplete = function (_React$Component) {
|
|
1659
|
+
_inherits(PlacesAutocomplete, _React$Component);
|
|
1660
|
+
|
|
1661
|
+
function PlacesAutocomplete(props) {
|
|
1662
|
+
_classCallCheck(this, PlacesAutocomplete);
|
|
1663
|
+
|
|
1664
|
+
var _this = _possibleConstructorReturn(this, (PlacesAutocomplete.__proto__ || Object.getPrototypeOf(PlacesAutocomplete)).call(this, props));
|
|
1665
|
+
|
|
1666
|
+
_this.init = function () {
|
|
1667
|
+
if (!window.google) {
|
|
1668
|
+
throw new Error('[react-places-autocomplete]: Google Maps JavaScript API library must be loaded. See: https://github.com/kenny-hibino/react-places-autocomplete#load-google-library');
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
if (!window.google.maps.places) {
|
|
1672
|
+
throw new Error('[react-places-autocomplete]: Google Maps Places library must be loaded. Please add `libraries=places` to the src URL. See: https://github.com/kenny-hibino/react-places-autocomplete#load-google-library');
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
_this.autocompleteService = new window.google.maps.places.AutocompleteService();
|
|
1676
|
+
_this.autocompleteOK = window.google.maps.places.PlacesServiceStatus.OK;
|
|
1677
|
+
_this.setState(function (state) {
|
|
1678
|
+
if (state.ready) {
|
|
1679
|
+
return null;
|
|
1680
|
+
} else {
|
|
1681
|
+
return { ready: true };
|
|
1682
|
+
}
|
|
1683
|
+
});
|
|
1684
|
+
};
|
|
1685
|
+
|
|
1686
|
+
_this.autocompleteCallback = function (predictions, status) {
|
|
1687
|
+
_this.setState({ loading: false });
|
|
1688
|
+
if (status !== _this.autocompleteOK) {
|
|
1689
|
+
_this.props.onError(status, _this.clearSuggestions);
|
|
1690
|
+
return;
|
|
1691
|
+
}
|
|
1692
|
+
var highlightFirstSuggestion = _this.props.highlightFirstSuggestion;
|
|
1693
|
+
|
|
1694
|
+
_this.setState({
|
|
1695
|
+
suggestions: predictions.map(function (p, idx) {
|
|
1696
|
+
return {
|
|
1697
|
+
id: p.id,
|
|
1698
|
+
description: p.description,
|
|
1699
|
+
placeId: p.place_id,
|
|
1700
|
+
active: highlightFirstSuggestion && idx === 0 ? true : false,
|
|
1701
|
+
index: idx,
|
|
1702
|
+
formattedSuggestion: formattedSuggestion(p.structured_formatting),
|
|
1703
|
+
matchedSubstrings: p.matched_substrings,
|
|
1704
|
+
terms: p.terms,
|
|
1705
|
+
types: p.types
|
|
1706
|
+
};
|
|
1707
|
+
})
|
|
1708
|
+
});
|
|
1709
|
+
};
|
|
1710
|
+
|
|
1711
|
+
_this.fetchPredictions = function () {
|
|
1712
|
+
var value = _this.props.value;
|
|
1713
|
+
|
|
1714
|
+
if (value.length) {
|
|
1715
|
+
_this.setState({ loading: true });
|
|
1716
|
+
_this.autocompleteService.getPlacePredictions(_extends({}, _this.props.searchOptions, {
|
|
1717
|
+
input: value
|
|
1718
|
+
}), _this.autocompleteCallback);
|
|
1719
|
+
}
|
|
1720
|
+
};
|
|
1721
|
+
|
|
1722
|
+
_this.clearSuggestions = function () {
|
|
1723
|
+
_this.setState({ suggestions: [] });
|
|
1724
|
+
};
|
|
1725
|
+
|
|
1726
|
+
_this.clearActive = function () {
|
|
1727
|
+
_this.setState({
|
|
1728
|
+
suggestions: _this.state.suggestions.map(function (suggestion) {
|
|
1729
|
+
return _extends({}, suggestion, {
|
|
1730
|
+
active: false
|
|
1731
|
+
});
|
|
1732
|
+
})
|
|
1733
|
+
});
|
|
1734
|
+
};
|
|
1735
|
+
|
|
1736
|
+
_this.handleSelect = function (address, placeId, suggestion) {
|
|
1737
|
+
_this.clearSuggestions();
|
|
1738
|
+
if (_this.props.onSelect) {
|
|
1739
|
+
_this.props.onSelect(address, placeId, suggestion);
|
|
1740
|
+
} else {
|
|
1741
|
+
_this.props.onChange(address);
|
|
1742
|
+
}
|
|
1743
|
+
};
|
|
1744
|
+
|
|
1745
|
+
_this.getActiveSuggestion = function () {
|
|
1746
|
+
return _this.state.suggestions.find(function (suggestion) {
|
|
1747
|
+
return suggestion.active;
|
|
1748
|
+
});
|
|
1749
|
+
};
|
|
1750
|
+
|
|
1751
|
+
_this.selectActiveAtIndex = function (index) {
|
|
1752
|
+
var activeName = _this.state.suggestions.find(function (suggestion) {
|
|
1753
|
+
return suggestion.index === index;
|
|
1754
|
+
}).description;
|
|
1755
|
+
_this.setActiveAtIndex(index);
|
|
1756
|
+
_this.props.onChange(activeName);
|
|
1757
|
+
};
|
|
1758
|
+
|
|
1759
|
+
_this.selectUserInputValue = function () {
|
|
1760
|
+
_this.clearActive();
|
|
1761
|
+
_this.props.onChange(_this.state.userInputValue);
|
|
1762
|
+
};
|
|
1763
|
+
|
|
1764
|
+
_this.handleEnterKey = function () {
|
|
1765
|
+
var activeSuggestion = _this.getActiveSuggestion();
|
|
1766
|
+
if (activeSuggestion === undefined) {
|
|
1767
|
+
_this.handleSelect(_this.props.value, null, null);
|
|
1768
|
+
} else {
|
|
1769
|
+
_this.handleSelect(activeSuggestion.description, activeSuggestion.placeId, activeSuggestion);
|
|
1770
|
+
}
|
|
1771
|
+
};
|
|
1772
|
+
|
|
1773
|
+
_this.handleDownKey = function () {
|
|
1774
|
+
if (_this.state.suggestions.length === 0) {
|
|
1775
|
+
return;
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
var activeSuggestion = _this.getActiveSuggestion();
|
|
1779
|
+
if (activeSuggestion === undefined) {
|
|
1780
|
+
_this.selectActiveAtIndex(0);
|
|
1781
|
+
} else if (activeSuggestion.index === _this.state.suggestions.length - 1) {
|
|
1782
|
+
_this.selectUserInputValue();
|
|
1783
|
+
} else {
|
|
1784
|
+
_this.selectActiveAtIndex(activeSuggestion.index + 1);
|
|
1785
|
+
}
|
|
1786
|
+
};
|
|
1787
|
+
|
|
1788
|
+
_this.handleUpKey = function () {
|
|
1789
|
+
if (_this.state.suggestions.length === 0) {
|
|
1790
|
+
return;
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
var activeSuggestion = _this.getActiveSuggestion();
|
|
1794
|
+
if (activeSuggestion === undefined) {
|
|
1795
|
+
_this.selectActiveAtIndex(_this.state.suggestions.length - 1);
|
|
1796
|
+
} else if (activeSuggestion.index === 0) {
|
|
1797
|
+
_this.selectUserInputValue();
|
|
1798
|
+
} else {
|
|
1799
|
+
_this.selectActiveAtIndex(activeSuggestion.index - 1);
|
|
1800
|
+
}
|
|
1801
|
+
};
|
|
1802
|
+
|
|
1803
|
+
_this.handleInputKeyDown = function (event) {
|
|
1804
|
+
/* eslint-disable indent */
|
|
1805
|
+
switch (event.key) {
|
|
1806
|
+
case 'Enter':
|
|
1807
|
+
event.preventDefault();
|
|
1808
|
+
_this.handleEnterKey();
|
|
1809
|
+
break;
|
|
1810
|
+
case 'ArrowDown':
|
|
1811
|
+
event.preventDefault(); // prevent the cursor from moving
|
|
1812
|
+
_this.handleDownKey();
|
|
1813
|
+
break;
|
|
1814
|
+
case 'ArrowUp':
|
|
1815
|
+
event.preventDefault(); // prevent the cursor from moving
|
|
1816
|
+
_this.handleUpKey();
|
|
1817
|
+
break;
|
|
1818
|
+
case 'Escape':
|
|
1819
|
+
_this.clearSuggestions();
|
|
1820
|
+
break;
|
|
1821
|
+
}
|
|
1822
|
+
/* eslint-enable indent */
|
|
1823
|
+
};
|
|
1824
|
+
|
|
1825
|
+
_this.setActiveAtIndex = function (index) {
|
|
1826
|
+
_this.setState({
|
|
1827
|
+
suggestions: _this.state.suggestions.map(function (suggestion, idx) {
|
|
1828
|
+
if (idx === index) {
|
|
1829
|
+
return _extends({}, suggestion, { active: true });
|
|
1830
|
+
} else {
|
|
1831
|
+
return _extends({}, suggestion, { active: false });
|
|
1832
|
+
}
|
|
1833
|
+
})
|
|
1834
|
+
});
|
|
1835
|
+
};
|
|
1836
|
+
|
|
1837
|
+
_this.handleInputChange = function (event) {
|
|
1838
|
+
var value = event.target.value;
|
|
1839
|
+
|
|
1840
|
+
_this.props.onChange(value);
|
|
1841
|
+
_this.setState({ userInputValue: value });
|
|
1842
|
+
if (!value) {
|
|
1843
|
+
_this.clearSuggestions();
|
|
1844
|
+
return;
|
|
1845
|
+
}
|
|
1846
|
+
if (_this.props.shouldFetchSuggestions) {
|
|
1847
|
+
_this.debouncedFetchPredictions();
|
|
1848
|
+
}
|
|
1849
|
+
};
|
|
1850
|
+
|
|
1851
|
+
_this.handleInputOnBlur = function () {
|
|
1852
|
+
if (!_this.mousedownOnSuggestion) {
|
|
1853
|
+
_this.clearSuggestions();
|
|
1854
|
+
}
|
|
1855
|
+
};
|
|
1856
|
+
|
|
1857
|
+
_this.getActiveSuggestionId = function () {
|
|
1858
|
+
var activeSuggestion = _this.getActiveSuggestion();
|
|
1859
|
+
return activeSuggestion ? 'PlacesAutocomplete__suggestion-' + activeSuggestion.placeId : undefined;
|
|
1860
|
+
};
|
|
1861
|
+
|
|
1862
|
+
_this.getIsExpanded = function () {
|
|
1863
|
+
return _this.state.suggestions.length > 0;
|
|
1864
|
+
};
|
|
1865
|
+
|
|
1866
|
+
_this.getInputProps = function () {
|
|
1867
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
1868
|
+
|
|
1869
|
+
if (options.hasOwnProperty('value')) {
|
|
1870
|
+
throw new Error('[react-places-autocomplete]: getInputProps does not accept `value`. Use `value` prop instead');
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1873
|
+
if (options.hasOwnProperty('onChange')) {
|
|
1874
|
+
throw new Error('[react-places-autocomplete]: getInputProps does not accept `onChange`. Use `onChange` prop instead');
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
var defaultInputProps = {
|
|
1878
|
+
type: 'text',
|
|
1879
|
+
autoComplete: 'off',
|
|
1880
|
+
role: 'combobox',
|
|
1881
|
+
'aria-autocomplete': 'list',
|
|
1882
|
+
'aria-expanded': _this.getIsExpanded(),
|
|
1883
|
+
'aria-activedescendant': _this.getActiveSuggestionId(),
|
|
1884
|
+
disabled: !_this.state.ready
|
|
1885
|
+
};
|
|
1886
|
+
|
|
1887
|
+
return _extends({}, defaultInputProps, options, {
|
|
1888
|
+
onKeyDown: (0, _helpers.compose)(_this.handleInputKeyDown, options.onKeyDown),
|
|
1889
|
+
onBlur: (0, _helpers.compose)(_this.handleInputOnBlur, options.onBlur),
|
|
1890
|
+
value: _this.props.value,
|
|
1891
|
+
onChange: function onChange(event) {
|
|
1892
|
+
_this.handleInputChange(event);
|
|
1893
|
+
}
|
|
1894
|
+
});
|
|
1895
|
+
};
|
|
1896
|
+
|
|
1897
|
+
_this.getSuggestionItemProps = function (suggestion) {
|
|
1898
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
1899
|
+
|
|
1900
|
+
var handleSuggestionMouseEnter = _this.handleSuggestionMouseEnter.bind(_this, suggestion.index);
|
|
1901
|
+
var handleSuggestionClick = _this.handleSuggestionClick.bind(_this, suggestion);
|
|
1902
|
+
|
|
1903
|
+
return _extends({}, options, {
|
|
1904
|
+
key: suggestion.id,
|
|
1905
|
+
id: _this.getActiveSuggestionId(),
|
|
1906
|
+
role: 'option',
|
|
1907
|
+
onMouseEnter: (0, _helpers.compose)(handleSuggestionMouseEnter, options.onMouseEnter),
|
|
1908
|
+
onMouseLeave: (0, _helpers.compose)(_this.handleSuggestionMouseLeave, options.onMouseLeave),
|
|
1909
|
+
onMouseDown: (0, _helpers.compose)(_this.handleSuggestionMouseDown, options.onMouseDown),
|
|
1910
|
+
onMouseUp: (0, _helpers.compose)(_this.handleSuggestionMouseUp, options.onMouseUp),
|
|
1911
|
+
onTouchStart: (0, _helpers.compose)(_this.handleSuggestionTouchStart, options.onTouchStart),
|
|
1912
|
+
onTouchEnd: (0, _helpers.compose)(_this.handleSuggestionMouseUp, options.onTouchEnd),
|
|
1913
|
+
onClick: (0, _helpers.compose)(handleSuggestionClick, options.onClick)
|
|
1914
|
+
});
|
|
1915
|
+
};
|
|
1916
|
+
|
|
1917
|
+
_this.handleSuggestionMouseEnter = function (index) {
|
|
1918
|
+
_this.setActiveAtIndex(index);
|
|
1919
|
+
};
|
|
1920
|
+
|
|
1921
|
+
_this.handleSuggestionMouseLeave = function () {
|
|
1922
|
+
_this.mousedownOnSuggestion = false;
|
|
1923
|
+
_this.clearActive();
|
|
1924
|
+
};
|
|
1925
|
+
|
|
1926
|
+
_this.handleSuggestionMouseDown = function (event) {
|
|
1927
|
+
event.preventDefault();
|
|
1928
|
+
_this.mousedownOnSuggestion = true;
|
|
1929
|
+
};
|
|
1930
|
+
|
|
1931
|
+
_this.handleSuggestionTouchStart = function () {
|
|
1932
|
+
_this.mousedownOnSuggestion = true;
|
|
1933
|
+
};
|
|
1934
|
+
|
|
1935
|
+
_this.handleSuggestionMouseUp = function () {
|
|
1936
|
+
_this.mousedownOnSuggestion = false;
|
|
1937
|
+
};
|
|
1938
|
+
|
|
1939
|
+
_this.handleSuggestionClick = function (suggestion, event) {
|
|
1940
|
+
if (event && event.preventDefault) {
|
|
1941
|
+
event.preventDefault();
|
|
1942
|
+
}
|
|
1943
|
+
var description = suggestion.description,
|
|
1944
|
+
placeId = suggestion.placeId;
|
|
1945
|
+
|
|
1946
|
+
_this.handleSelect(description, placeId, suggestion);
|
|
1947
|
+
setTimeout(function () {
|
|
1948
|
+
_this.mousedownOnSuggestion = false;
|
|
1949
|
+
});
|
|
1950
|
+
};
|
|
1951
|
+
|
|
1952
|
+
_this.state = {
|
|
1953
|
+
loading: false,
|
|
1954
|
+
suggestions: [],
|
|
1955
|
+
userInputValue: props.value,
|
|
1956
|
+
ready: !props.googleCallbackName
|
|
1957
|
+
};
|
|
1958
|
+
|
|
1959
|
+
_this.debouncedFetchPredictions = (0, _lodash2.default)(_this.fetchPredictions, props.debounce);
|
|
1960
|
+
return _this;
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
_createClass(PlacesAutocomplete, [{
|
|
1964
|
+
key: 'componentDidMount',
|
|
1965
|
+
value: function componentDidMount() {
|
|
1966
|
+
var googleCallbackName = this.props.googleCallbackName;
|
|
1967
|
+
|
|
1968
|
+
if (googleCallbackName) {
|
|
1969
|
+
var isPlacesLoaded = window.google && window.google.maps && window.google.maps.places;
|
|
1970
|
+
if (!isPlacesLoaded) {
|
|
1971
|
+
window[googleCallbackName] = this.init;
|
|
1972
|
+
} else {
|
|
1973
|
+
this.init();
|
|
1974
|
+
}
|
|
1975
|
+
} else {
|
|
1976
|
+
this.init();
|
|
1977
|
+
}
|
|
1978
|
+
}
|
|
1979
|
+
}, {
|
|
1980
|
+
key: 'componentWillUnmount',
|
|
1981
|
+
value: function componentWillUnmount() {
|
|
1982
|
+
var googleCallbackName = this.props.googleCallbackName;
|
|
1983
|
+
|
|
1984
|
+
if (googleCallbackName && window[googleCallbackName]) {
|
|
1985
|
+
delete window[googleCallbackName];
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
}, {
|
|
1989
|
+
key: 'render',
|
|
1990
|
+
value: function render() {
|
|
1991
|
+
return this.props.children({
|
|
1992
|
+
getInputProps: this.getInputProps,
|
|
1993
|
+
getSuggestionItemProps: this.getSuggestionItemProps,
|
|
1994
|
+
loading: this.state.loading,
|
|
1995
|
+
suggestions: this.state.suggestions
|
|
1996
|
+
});
|
|
1997
|
+
}
|
|
1998
|
+
}]);
|
|
1999
|
+
|
|
2000
|
+
return PlacesAutocomplete;
|
|
2001
|
+
}(_react2.default.Component);
|
|
2002
|
+
|
|
2003
|
+
PlacesAutocomplete.propTypes = {
|
|
2004
|
+
onChange: _propTypes2.default.func.isRequired,
|
|
2005
|
+
value: _propTypes2.default.string.isRequired,
|
|
2006
|
+
children: _propTypes2.default.func.isRequired,
|
|
2007
|
+
onError: _propTypes2.default.func,
|
|
2008
|
+
onSelect: _propTypes2.default.func,
|
|
2009
|
+
searchOptions: _propTypes2.default.shape({
|
|
2010
|
+
bounds: _propTypes2.default.object,
|
|
2011
|
+
componentRestrictions: _propTypes2.default.object,
|
|
2012
|
+
location: _propTypes2.default.object,
|
|
2013
|
+
offset: _propTypes2.default.oneOfType([_propTypes2.default.number, _propTypes2.default.string]),
|
|
2014
|
+
radius: _propTypes2.default.oneOfType([_propTypes2.default.number, _propTypes2.default.string]),
|
|
2015
|
+
types: _propTypes2.default.array
|
|
2016
|
+
}),
|
|
2017
|
+
debounce: _propTypes2.default.number,
|
|
2018
|
+
highlightFirstSuggestion: _propTypes2.default.bool,
|
|
2019
|
+
shouldFetchSuggestions: _propTypes2.default.bool,
|
|
2020
|
+
googleCallbackName: _propTypes2.default.string
|
|
2021
|
+
};
|
|
2022
|
+
|
|
2023
|
+
PlacesAutocomplete.defaultProps = {
|
|
2024
|
+
/* eslint-disable no-unused-vars, no-console */
|
|
2025
|
+
onError: function onError(status, _clearSuggestions) {
|
|
2026
|
+
return console.error('[react-places-autocomplete]: error happened when fetching data from Google Maps API.\nPlease check the docs here (https://developers.google.com/maps/documentation/javascript/places#place_details_responses)\nStatus: ', status);
|
|
2027
|
+
},
|
|
2028
|
+
/* eslint-enable no-unused-vars, no-console */
|
|
2029
|
+
searchOptions: {},
|
|
2030
|
+
debounce: 200,
|
|
2031
|
+
highlightFirstSuggestion: false,
|
|
2032
|
+
shouldFetchSuggestions: true
|
|
2033
|
+
};
|
|
2034
|
+
|
|
2035
|
+
PlacesAutocomplete$1.default = PlacesAutocomplete;
|
|
2036
|
+
|
|
2037
|
+
var utils = {};
|
|
2038
|
+
|
|
2039
|
+
Object.defineProperty(utils, "__esModule", {
|
|
2040
|
+
value: true
|
|
2041
|
+
});
|
|
2042
|
+
utils.geocodeByAddress = function geocodeByAddress(address) {
|
|
2043
|
+
var geocoder = new window.google.maps.Geocoder();
|
|
2044
|
+
var OK = window.google.maps.GeocoderStatus.OK;
|
|
2045
|
+
|
|
2046
|
+
return new Promise(function (resolve, reject) {
|
|
2047
|
+
geocoder.geocode({ address: address }, function (results, status) {
|
|
2048
|
+
if (status !== OK) {
|
|
2049
|
+
reject(status);
|
|
2050
|
+
}
|
|
2051
|
+
resolve(results);
|
|
2052
|
+
});
|
|
2053
|
+
});
|
|
2054
|
+
};
|
|
2055
|
+
|
|
2056
|
+
utils.getLatLng = function getLatLng(result) {
|
|
2057
|
+
return new Promise(function (resolve, reject) {
|
|
2058
|
+
try {
|
|
2059
|
+
var latLng = {
|
|
2060
|
+
lat: result.geometry.location.lat(),
|
|
2061
|
+
lng: result.geometry.location.lng()
|
|
2062
|
+
};
|
|
2063
|
+
resolve(latLng);
|
|
2064
|
+
} catch (e) {
|
|
2065
|
+
reject(e);
|
|
2066
|
+
}
|
|
2067
|
+
});
|
|
2068
|
+
};
|
|
2069
|
+
|
|
2070
|
+
utils.geocodeByPlaceId = function geocodeByPlaceId(placeId) {
|
|
2071
|
+
var geocoder = new window.google.maps.Geocoder();
|
|
2072
|
+
var OK = window.google.maps.GeocoderStatus.OK;
|
|
2073
|
+
|
|
2074
|
+
return new Promise(function (resolve, reject) {
|
|
2075
|
+
geocoder.geocode({ placeId: placeId }, function (results, status) {
|
|
2076
|
+
if (status !== OK) {
|
|
2077
|
+
reject(status);
|
|
2078
|
+
}
|
|
2079
|
+
resolve(results);
|
|
2080
|
+
});
|
|
2081
|
+
});
|
|
2082
|
+
};
|
|
2083
|
+
|
|
2084
|
+
Object.defineProperty(dist, "__esModule", {
|
|
2085
|
+
value: true
|
|
2086
|
+
});
|
|
2087
|
+
dist.getLatLng = geocodeByPlaceId = dist.geocodeByPlaceId = geocodeByAddress = dist.geocodeByAddress = undefined;
|
|
2088
|
+
|
|
2089
|
+
var _PlacesAutocomplete = PlacesAutocomplete$1;
|
|
2090
|
+
|
|
2091
|
+
var _PlacesAutocomplete2 = _interopRequireDefault(_PlacesAutocomplete);
|
|
2092
|
+
|
|
2093
|
+
var _utils = utils;
|
|
2094
|
+
|
|
2095
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2096
|
+
|
|
2097
|
+
var geocodeByAddress = dist.geocodeByAddress = _utils.geocodeByAddress;
|
|
2098
|
+
var geocodeByPlaceId = dist.geocodeByPlaceId = _utils.geocodeByPlaceId;
|
|
2099
|
+
dist.getLatLng = _utils.getLatLng;
|
|
2100
|
+
var _default = dist.default = _PlacesAutocomplete2.default;
|
|
2101
|
+
|
|
2102
|
+
var PlacesList = styled.styled.div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n box-shadow: 1px 2px 10px rgba(43, 52, 125, 0.3);\n background-color: white;\n border-radius: 7px;\n max-width: 100%;\n overflow: hidden;\n padding: 10px 15px;\n position: absolute;\n top: ", "px;\n z-index: 1;\n"], ["\n box-shadow: 1px 2px 10px rgba(43, 52, 125, 0.3);\n background-color: white;\n border-radius: 7px;\n max-width: 100%;\n overflow: hidden;\n padding: 10px 15px;\n position: absolute;\n top: ", "px;\n z-index: 1;\n"])), function (_a) {
|
|
2103
|
+
var $inline = _a.$inline, $inputHeight = _a.$inputHeight, theme = _a.theme;
|
|
2104
|
+
return ($inputHeight || theme.input.inputHeight) + ($inline ? 0 : 26);
|
|
2105
|
+
});
|
|
2106
|
+
var PlaceOption = styled.styled.div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n font-size: 14px;\n font-weight: 600;\n cursor: pointer;\n padding: 5px 0;\n line-height: 150%;\n"], ["\n font-size: 14px;\n font-weight: 600;\n cursor: pointer;\n padding: 5px 0;\n line-height: 150%;\n"])));
|
|
2107
|
+
var AddressInputContainer = styled.styled.div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n position: relative;\n z-index: 2;\n"], ["\n position: relative;\n z-index: 2;\n"])));
|
|
2108
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
2109
|
+
|
|
2110
|
+
var AddressInputErrorBoundary = /** @class */ (function (_super) {
|
|
2111
|
+
_tslib.__extends(AddressInputErrorBoundary, _super);
|
|
2112
|
+
function AddressInputErrorBoundary(props) {
|
|
2113
|
+
var _this = _super.call(this, props) || this;
|
|
2114
|
+
_this.state = { hasError: false };
|
|
2115
|
+
return _this;
|
|
2116
|
+
}
|
|
2117
|
+
AddressInputErrorBoundary.getDerivedStateFromError = function () {
|
|
2118
|
+
// Update state so the next render will show the fallback UI.
|
|
2119
|
+
return { hasError: true };
|
|
2120
|
+
};
|
|
2121
|
+
AddressInputErrorBoundary.prototype.componentDidCatch = function (error, errorInfo) {
|
|
2122
|
+
// You can also log the error to an error reporting service
|
|
2123
|
+
console.error(error, errorInfo);
|
|
2124
|
+
};
|
|
2125
|
+
AddressInputErrorBoundary.prototype.render = function () {
|
|
2126
|
+
if (this.state.hasError) {
|
|
2127
|
+
// You can render any custom fallback UI
|
|
2128
|
+
return jsxRuntime.jsx(BodyLEmphasis.BodyMPrimary, { children: "AddressInput has failed. Make sure you have included a valid API key" }, void 0);
|
|
2129
|
+
}
|
|
2130
|
+
return this.props.children;
|
|
2131
|
+
};
|
|
2132
|
+
return AddressInputErrorBoundary;
|
|
2133
|
+
}(React__default["default"].Component));
|
|
2134
|
+
|
|
2135
|
+
var AddressInput = function (props) {
|
|
2136
|
+
var disabled = props.disabled, inline = props.inline, inputHeight = props.inputHeight, name = props.name, onChange = props.onChange, onInputBlur = props.onInputBlur, onInputFocus = props.onInputFocus, onValueChange = props.onValueChange, restrictToCountry = props.restrictToCountry, streetAddressOnly = props.streetAddressOnly, value = props.value, verifyAddress = props.verifyAddress, _a = props.verifyAddressMessage, verifyAddressMessage = _a === void 0 ? "Address unverified - please double-check." : _a, showValidationMessage = props.showValidationMessage, validationMessage = props.validationMessage;
|
|
2137
|
+
var _b = React.useState(value || ""), address = _b[0], setAddress = _b[1];
|
|
2138
|
+
var _c = React.useState(false), hideSuggestions = _c[0], setHideSuggestions = _c[1];
|
|
2139
|
+
var _d = React.useState(showValidationMessage), showValidation = _d[0], setShowValidation = _d[1];
|
|
2140
|
+
var _e = React.useState(validationMessage), vMessage = _e[0], setVMessage = _e[1];
|
|
2141
|
+
var InputComponent = inline ? InlineInput.InlineInput : Input.Input;
|
|
2142
|
+
var handleChange = function (changeValue) {
|
|
2143
|
+
setAddress(changeValue);
|
|
2144
|
+
onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(changeValue);
|
|
2145
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({ target: { value: String(changeValue), name: name } });
|
|
2146
|
+
};
|
|
2147
|
+
var handleSelect = function (addressString, placeId, addressObject) { return _tslib.__awaiter(void 0, void 0, void 0, function () {
|
|
2148
|
+
var place, _a, postalCode, stateAbbreviation, details, desiredAddress;
|
|
2149
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
2150
|
+
return _tslib.__generator(this, function (_q) {
|
|
2151
|
+
switch (_q.label) {
|
|
2152
|
+
case 0: return [4 /*yield*/, geocodeByPlaceId(placeId)];
|
|
2153
|
+
case 1:
|
|
2154
|
+
place = (_q.sent())[0];
|
|
2155
|
+
_a = (place.address_components.find(function (c) { return c.types.includes("postal_code"); }) || {}).long_name, postalCode = _a === void 0 ? "" : _a;
|
|
2156
|
+
stateAbbreviation = (_d = (_b = addressObject === null || addressObject === void 0 ? void 0 : addressObject.terms) === null || _b === void 0 ? void 0 : _b[((_c = addressObject === null || addressObject === void 0 ? void 0 : addressObject.terms) === null || _c === void 0 ? void 0 : _c.length) - 2]) === null || _d === void 0 ? void 0 : _d.value;
|
|
2157
|
+
details = {
|
|
2158
|
+
city: (_g = (_e = addressObject === null || addressObject === void 0 ? void 0 : addressObject.terms) === null || _e === void 0 ? void 0 : _e[((_f = addressObject === null || addressObject === void 0 ? void 0 : addressObject.terms) === null || _f === void 0 ? void 0 : _f.length) - 3]) === null || _g === void 0 ? void 0 : _g.value,
|
|
2159
|
+
country: (_k = (_h = addressObject === null || addressObject === void 0 ? void 0 : addressObject.terms) === null || _h === void 0 ? void 0 : _h[((_j = addressObject === null || addressObject === void 0 ? void 0 : addressObject.terms) === null || _j === void 0 ? void 0 : _j.length) - 1]) === null || _k === void 0 ? void 0 : _k.value,
|
|
2160
|
+
state: stateAbbreviationLookup.stateAbbreviationLookup[stateAbbreviation],
|
|
2161
|
+
stateAbbreviation: (_o = (_l = addressObject === null || addressObject === void 0 ? void 0 : addressObject.terms) === null || _l === void 0 ? void 0 : _l[((_m = addressObject === null || addressObject === void 0 ? void 0 : addressObject.terms) === null || _m === void 0 ? void 0 : _m.length) - 2]) === null || _o === void 0 ? void 0 : _o.value,
|
|
2162
|
+
street: (_p = addressObject === null || addressObject === void 0 ? void 0 : addressObject.formattedSuggestion) === null || _p === void 0 ? void 0 : _p.mainText,
|
|
2163
|
+
postalCode: postalCode,
|
|
2164
|
+
rawAddressObject: addressObject,
|
|
2165
|
+
};
|
|
2166
|
+
desiredAddress = streetAddressOnly ? details.street : addressString;
|
|
2167
|
+
setAddress(desiredAddress || "");
|
|
2168
|
+
onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(desiredAddress || "", details);
|
|
2169
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({ target: { value: desiredAddress || "", name: name } }, details);
|
|
2170
|
+
return [2 /*return*/];
|
|
2171
|
+
}
|
|
2172
|
+
});
|
|
2173
|
+
}); };
|
|
2174
|
+
var handleBlur = function (event) { return _tslib.__awaiter(void 0, void 0, void 0, function () {
|
|
2175
|
+
var results, placeId;
|
|
2176
|
+
return _tslib.__generator(this, function (_a) {
|
|
2177
|
+
switch (_a.label) {
|
|
2178
|
+
case 0:
|
|
2179
|
+
if (!verifyAddress) return [3 /*break*/, 4];
|
|
2180
|
+
_a.label = 1;
|
|
2181
|
+
case 1:
|
|
2182
|
+
_a.trys.push([1, 3, , 4]);
|
|
2183
|
+
setShowValidation(false);
|
|
2184
|
+
setVMessage("");
|
|
2185
|
+
return [4 /*yield*/, geocodeByAddress("".concat(address))];
|
|
2186
|
+
case 2:
|
|
2187
|
+
results = _a.sent();
|
|
2188
|
+
placeId = results[0].place_id;
|
|
2189
|
+
return [2 /*return*/, placeId];
|
|
2190
|
+
case 3:
|
|
2191
|
+
_a.sent();
|
|
2192
|
+
setShowValidation(true);
|
|
2193
|
+
setVMessage(verifyAddressMessage);
|
|
2194
|
+
return [3 /*break*/, 4];
|
|
2195
|
+
case 4:
|
|
2196
|
+
setHideSuggestions(true);
|
|
2197
|
+
onInputBlur === null || onInputBlur === void 0 ? void 0 : onInputBlur(event);
|
|
2198
|
+
return [2 /*return*/];
|
|
2199
|
+
}
|
|
2200
|
+
});
|
|
2201
|
+
}); };
|
|
2202
|
+
var handleFocus = function (event) {
|
|
2203
|
+
setHideSuggestions(false);
|
|
2204
|
+
onInputFocus === null || onInputFocus === void 0 ? void 0 : onInputFocus(event);
|
|
2205
|
+
};
|
|
2206
|
+
React.useEffect(function () {
|
|
2207
|
+
setAddress(value || "");
|
|
2208
|
+
}, [value]);
|
|
2209
|
+
React.useEffect(function () {
|
|
2210
|
+
setShowValidation(showValidationMessage);
|
|
2211
|
+
setVMessage(validationMessage);
|
|
2212
|
+
}, [showValidationMessage, validationMessage]);
|
|
2213
|
+
return (jsxRuntime.jsx("div", _tslib.__assign({ id: "outer-testid" }, { children: jsxRuntime.jsx(AddressInputErrorBoundary, { children: jsxRuntime.jsx(_default, _tslib.__assign({ value: address, onChange: handleChange,
|
|
2214
|
+
// Ignoring this because the addressObject is not documented in the react-places-autocomplete types
|
|
2215
|
+
// @ts-ignore
|
|
2216
|
+
onSelect: handleSelect, searchOptions: { componentRestrictions: { country: restrictToCountry || "" } } }, { children: function (_a) {
|
|
2217
|
+
var getInputProps = _a.getInputProps, suggestions = _a.suggestions, getSuggestionItemProps = _a.getSuggestionItemProps;
|
|
2218
|
+
return (jsxRuntime.jsxs(AddressInputContainer, _tslib.__assign({ id: "address-input-id" }, { children: [jsxRuntime.jsx(InputComponent, _tslib.__assign({}, props, getInputProps({
|
|
2219
|
+
onValueChange: handleChange,
|
|
2220
|
+
onInputBlur: handleBlur,
|
|
2221
|
+
onInputFocus: handleFocus,
|
|
2222
|
+
disabled: disabled,
|
|
2223
|
+
}), { showValidationMessage: showValidation, validationMessage: vMessage, noAutocomplete: true, value: address }), void 0), suggestions.length > 0 && address !== "" && !hideSuggestions && (jsxRuntime.jsx(PlacesList, _tslib.__assign({ "data-testid": "address-drop-down", "$inline": inline, "$inputHeight": inputHeight }, { children: suggestions.map(function (suggestion) {
|
|
2224
|
+
return (React.createElement(PlaceOption, _tslib.__assign({}, getSuggestionItemProps(suggestion, {}), { key: suggestion.description }),
|
|
2225
|
+
jsxRuntime.jsx("span", { children: suggestion.description }, void 0)));
|
|
2226
|
+
}) }), void 0))] }), void 0));
|
|
2227
|
+
} }), void 0) }, void 0) }), void 0));
|
|
2228
|
+
};
|
|
2229
|
+
AddressInput.defaultProps = {
|
|
2230
|
+
restrictToCountry: "USA",
|
|
2231
|
+
};
|
|
2232
|
+
|
|
2233
|
+
exports.AddressInput = AddressInput;
|
|
2234
|
+
//# sourceMappingURL=AddressInput-868cf326.js.map
|