@terraware/web-components 2.16.3 → 2.16.4-rc.1
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/components/Autocomplete/Autocomplete.d.ts +1 -0
- package/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/components/Autocomplete/Autocomplete.js +44 -50
- package/components/Badge/index.d.ts +1 -0
- package/components/Badge/index.d.ts.map +1 -1
- package/components/Badge/index.js +6 -6
- package/components/BusySpinner/index.d.ts +1 -0
- package/components/BusySpinner/index.d.ts.map +1 -1
- package/components/BusySpinner/index.js +5 -3
- package/components/Button/Button.d.ts +2 -1
- package/components/Button/Button.d.ts.map +1 -1
- package/components/Button/Button.js +23 -24
- package/components/Button/button.test.js +4 -4
- package/components/Checkbox.js +26 -27
- package/components/Confirm/index.js +28 -28
- package/components/DatePicker/DatePicker.js +29 -41
- package/components/DialogBox/DialogBox.js +31 -25
- package/components/Divisor.d.ts +1 -0
- package/components/Divisor.d.ts.map +1 -1
- package/components/Divisor.js +3 -2
- package/components/Dropdown.d.ts +1 -0
- package/components/Dropdown.d.ts.map +1 -1
- package/components/Dropdown.js +39 -51
- package/components/ErrorBox/ErrorBox.d.ts +1 -0
- package/components/ErrorBox/ErrorBox.d.ts.map +1 -1
- package/components/ErrorBox/ErrorBox.js +11 -8
- package/components/FileChooser/index.d.ts +1 -0
- package/components/FileChooser/index.d.ts.map +1 -1
- package/components/FileChooser/index.js +58 -62
- package/components/FormBottomBar/index.d.ts +1 -0
- package/components/FormBottomBar/index.d.ts.map +1 -1
- package/components/FormBottomBar/index.js +55 -76
- package/components/Icon/Icon.d.ts +2 -1
- package/components/Icon/Icon.d.ts.map +1 -1
- package/components/Icon/Icon.js +16 -19
- package/components/Icon/icons/index.js +1 -1
- package/components/IconTooltip/index.d.ts +1 -0
- package/components/IconTooltip/index.d.ts.map +1 -1
- package/components/IconTooltip/index.js +32 -39
- package/components/Message/Message.d.ts +1 -0
- package/components/Message/Message.d.ts.map +1 -1
- package/components/Message/Message.js +21 -17
- package/components/MultiSelect/MultiSelect.test.js +16 -30
- package/components/MultiSelect/index.d.ts +1 -0
- package/components/MultiSelect/index.d.ts.map +1 -1
- package/components/MultiSelect/index.js +32 -42
- package/components/Navbar/NavFooter.js +3 -1
- package/components/Navbar/NavItem.js +19 -23
- package/components/Navbar/NavSection.d.ts +1 -0
- package/components/Navbar/NavSection.d.ts.map +1 -1
- package/components/Navbar/NavSection.js +4 -3
- package/components/Navbar/Navbar.js +26 -27
- package/components/Navbar/SubNavbar.js +3 -1
- package/components/Note.d.ts +1 -0
- package/components/Note.d.ts.map +1 -1
- package/components/Note.js +12 -12
- package/components/PageForm/index.d.ts +2 -1
- package/components/PageForm/index.d.ts.map +1 -1
- package/components/PageForm/index.js +21 -40
- package/components/PhotoChooser/index.d.ts +1 -0
- package/components/PhotoChooser/index.d.ts.map +1 -1
- package/components/PhotoChooser/index.js +57 -72
- package/components/Pill/index.d.ts +1 -0
- package/components/Pill/index.d.ts.map +1 -1
- package/components/Pill/index.js +12 -10
- package/components/PillList/index.d.ts +1 -0
- package/components/PillList/index.d.ts.map +1 -1
- package/components/PillList/index.js +15 -15
- package/components/PopoverMenu/Popover.js +25 -28
- package/components/PopoverMenu/index.js +26 -30
- package/components/PopoverMultiSelect/index.d.ts +1 -0
- package/components/PopoverMultiSelect/index.d.ts.map +1 -1
- package/components/PopoverMultiSelect/index.js +19 -26
- package/components/ProgressCircle/ProgressCircle.d.ts +1 -0
- package/components/ProgressCircle/ProgressCircle.d.ts.map +1 -1
- package/components/ProgressCircle/ProgressCircle.js +7 -6
- package/components/RadioButton.js +1 -1
- package/components/Select/Select.d.ts +1 -0
- package/components/Select/Select.d.ts.map +1 -1
- package/components/Select/Select.js +3 -9
- package/components/Select/SelectT.js +65 -81
- package/components/Separator/index.d.ts +1 -1
- package/components/Separator/index.d.ts.map +1 -1
- package/components/Separator/index.js +1 -1
- package/components/Slider/index.d.ts +1 -0
- package/components/Slider/index.d.ts.map +1 -1
- package/components/Slider/index.js +13 -11
- package/components/SummaryBox.d.ts +1 -0
- package/components/SummaryBox.d.ts.map +1 -1
- package/components/SummaryBox.js +45 -46
- package/components/Tabs/index.js +32 -39
- package/components/TextTruncated/index.js +52 -62
- package/components/Textfield/Textfield.d.ts +1 -0
- package/components/Textfield/Textfield.d.ts.map +1 -1
- package/components/Textfield/Textfield.js +38 -38
- package/components/Textfield/TruncatedTextArea.d.ts +1 -1
- package/components/Textfield/TruncatedTextArea.d.ts.map +1 -1
- package/components/Textfield/TruncatedTextArea.js +28 -40
- package/components/Tooltip/Tooltip.d.ts +1 -0
- package/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/components/Tooltip/Tooltip.js +24 -28
- package/components/ViewPhotosDialog/index.js +41 -65
- package/components/svg/BlobbyGrayIconImage.d.ts +1 -1
- package/components/svg/BlobbyGrayIconImage.d.ts.map +1 -1
- package/components/svg/BlobbyGrayIconImage.js +6 -7
- package/components/svg/BlobbyGrayIconImport.d.ts +1 -1
- package/components/svg/BlobbyGrayIconImport.d.ts.map +1 -1
- package/components/svg/BlobbyGrayIconImport.js +6 -7
- package/components/svg/BlobbyGrayIconUploadToTheCloud.d.ts +1 -1
- package/components/svg/BlobbyGrayIconUploadToTheCloud.d.ts.map +1 -1
- package/components/svg/BlobbyGrayIconUploadToTheCloud.js +6 -7
- package/components/svg/BlobbyIconCloudChecked.d.ts +1 -1
- package/components/svg/BlobbyIconCloudChecked.d.ts.map +1 -1
- package/components/svg/BlobbyIconCloudChecked.js +6 -7
- package/components/svg/BlobbyIconExportOrUploadPhoto.d.ts +1 -1
- package/components/svg/BlobbyIconExportOrUploadPhoto.d.ts.map +1 -1
- package/components/svg/BlobbyIconExportOrUploadPhoto.js +6 -7
- package/components/svg/BlobbyIconFolder.d.ts +1 -1
- package/components/svg/BlobbyIconFolder.d.ts.map +1 -1
- package/components/svg/BlobbyIconFolder.js +6 -7
- package/components/svg/BlobbyIconGraphReport.d.ts +1 -1
- package/components/svg/BlobbyIconGraphReport.d.ts.map +1 -1
- package/components/svg/BlobbyIconGraphReport.js +6 -7
- package/components/svg/BlobbyIconHappy.d.ts +1 -1
- package/components/svg/BlobbyIconHappy.d.ts.map +1 -1
- package/components/svg/BlobbyIconHappy.js +6 -7
- package/components/svg/BlobbyIconHeartMonitor.d.ts +1 -1
- package/components/svg/BlobbyIconHeartMonitor.d.ts.map +1 -1
- package/components/svg/BlobbyIconHeartMonitor.js +6 -7
- package/components/svg/BlobbyIconLeaf.d.ts +1 -1
- package/components/svg/BlobbyIconLeaf.d.ts.map +1 -1
- package/components/svg/BlobbyIconLeaf.js +6 -7
- package/components/svg/BlobbyIconLibrary.d.ts +1 -1
- package/components/svg/BlobbyIconLibrary.d.ts.map +1 -1
- package/components/svg/BlobbyIconLibrary.js +6 -7
- package/components/svg/BlobbyIconNursery.d.ts +1 -1
- package/components/svg/BlobbyIconNursery.d.ts.map +1 -1
- package/components/svg/BlobbyIconNursery.js +6 -7
- package/components/svg/BlobbyIconOrganization.d.ts +1 -1
- package/components/svg/BlobbyIconOrganization.d.ts.map +1 -1
- package/components/svg/BlobbyIconOrganization.js +6 -7
- package/components/svg/BlobbyIconParchment.d.ts +1 -1
- package/components/svg/BlobbyIconParchment.d.ts.map +1 -1
- package/components/svg/BlobbyIconParchment.js +6 -7
- package/components/svg/BlobbyIconPeople.d.ts +1 -1
- package/components/svg/BlobbyIconPeople.d.ts.map +1 -1
- package/components/svg/BlobbyIconPeople.js +6 -7
- package/components/svg/BlobbyIconSeedBank.d.ts +1 -1
- package/components/svg/BlobbyIconSeedBank.d.ts.map +1 -1
- package/components/svg/BlobbyIconSeedBank.js +6 -7
- package/components/svg/BlobbyIconSeedling.d.ts +1 -1
- package/components/svg/BlobbyIconSeedling.d.ts.map +1 -1
- package/components/svg/BlobbyIconSeedling.js +6 -7
- package/components/svg/BlobbyIconSeeds.d.ts +1 -1
- package/components/svg/BlobbyIconSeeds.d.ts.map +1 -1
- package/components/svg/BlobbyIconSeeds.js +6 -7
- package/components/svg/BlobbyIconSite.d.ts +1 -1
- package/components/svg/BlobbyIconSite.d.ts.map +1 -1
- package/components/svg/BlobbyIconSite.js +6 -7
- package/components/svg/BlobbyIconSparkles.d.ts +1 -1
- package/components/svg/BlobbyIconSparkles.d.ts.map +1 -1
- package/components/svg/BlobbyIconSparkles.js +6 -7
- package/components/svg/BlobbyIconWrench.d.ts +1 -1
- package/components/svg/BlobbyIconWrench.d.ts.map +1 -1
- package/components/svg/BlobbyIconWrench.js +6 -7
- package/components/svg/Bug.d.ts +1 -1
- package/components/svg/Bug.d.ts.map +1 -1
- package/components/svg/Bug.js +6 -7
- package/components/svg/Calendar.d.ts +1 -1
- package/components/svg/Calendar.d.ts.map +1 -1
- package/components/svg/Calendar.js +6 -7
- package/components/svg/CaretDown.d.ts +1 -1
- package/components/svg/CaretDown.d.ts.map +1 -1
- package/components/svg/CaretDown.js +6 -7
- package/components/svg/CaretLeft.d.ts +1 -1
- package/components/svg/CaretLeft.d.ts.map +1 -1
- package/components/svg/CaretLeft.js +6 -7
- package/components/svg/CaretRight.d.ts +1 -1
- package/components/svg/CaretRight.d.ts.map +1 -1
- package/components/svg/CaretRight.js +6 -7
- package/components/svg/CaretUp.d.ts +1 -1
- package/components/svg/CaretUp.d.ts.map +1 -1
- package/components/svg/CaretUp.js +6 -7
- package/components/svg/ChevronDown.d.ts +1 -1
- package/components/svg/ChevronDown.d.ts.map +1 -1
- package/components/svg/ChevronDown.js +6 -7
- package/components/svg/ChevronUp.d.ts +1 -1
- package/components/svg/ChevronUp.d.ts.map +1 -1
- package/components/svg/ChevronUp.js +6 -7
- package/components/svg/Close.d.ts +1 -1
- package/components/svg/Close.d.ts.map +1 -1
- package/components/svg/Close.js +6 -7
- package/components/svg/Critical.d.ts +1 -1
- package/components/svg/Critical.d.ts.map +1 -1
- package/components/svg/Critical.js +6 -7
- package/components/svg/Edit.d.ts +1 -1
- package/components/svg/Edit.d.ts.map +1 -1
- package/components/svg/Edit.js +6 -7
- package/components/svg/Error.d.ts +1 -1
- package/components/svg/Error.d.ts.map +1 -1
- package/components/svg/Error.js +6 -7
- package/components/svg/Filter.d.ts +1 -1
- package/components/svg/Filter.d.ts.map +1 -1
- package/components/svg/Filter.js +6 -7
- package/components/svg/Folder.d.ts +1 -1
- package/components/svg/Folder.d.ts.map +1 -1
- package/components/svg/Folder.js +6 -7
- package/components/svg/Help.d.ts +1 -1
- package/components/svg/Help.d.ts.map +1 -1
- package/components/svg/Help.js +6 -7
- package/components/svg/Home.d.ts +1 -1
- package/components/svg/Home.d.ts.map +1 -1
- package/components/svg/Home.js +6 -7
- package/components/svg/IconAdd.d.ts +1 -1
- package/components/svg/IconAdd.d.ts.map +1 -1
- package/components/svg/IconAdd.js +6 -7
- package/components/svg/IconArrowRight.d.ts +1 -1
- package/components/svg/IconArrowRight.d.ts.map +1 -1
- package/components/svg/IconArrowRight.js +6 -7
- package/components/svg/IconBusinessNetwork.d.ts +1 -1
- package/components/svg/IconBusinessNetwork.d.ts.map +1 -1
- package/components/svg/IconBusinessNetwork.js +6 -7
- package/components/svg/IconCancel.d.ts +1 -1
- package/components/svg/IconCancel.d.ts.map +1 -1
- package/components/svg/IconCancel.js +6 -7
- package/components/svg/IconChargingBattery.d.ts +1 -1
- package/components/svg/IconChargingBattery.d.ts.map +1 -1
- package/components/svg/IconChargingBattery.js +6 -7
- package/components/svg/IconCheckmark.d.ts +1 -1
- package/components/svg/IconCheckmark.d.ts.map +1 -1
- package/components/svg/IconCheckmark.js +6 -7
- package/components/svg/IconCoinInHand.d.ts +1 -1
- package/components/svg/IconCoinInHand.d.ts.map +1 -1
- package/components/svg/IconCoinInHand.js +6 -7
- package/components/svg/IconColumns.d.ts +1 -1
- package/components/svg/IconColumns.d.ts.map +1 -1
- package/components/svg/IconColumns.js +6 -7
- package/components/svg/IconDashboard.d.ts +1 -1
- package/components/svg/IconDashboard.d.ts.map +1 -1
- package/components/svg/IconDashboard.js +6 -7
- package/components/svg/IconEdit.d.ts +1 -1
- package/components/svg/IconEdit.d.ts.map +1 -1
- package/components/svg/IconEdit.js +6 -7
- package/components/svg/IconExport.d.ts +1 -1
- package/components/svg/IconExport.d.ts.map +1 -1
- package/components/svg/IconExport.js +6 -7
- package/components/svg/IconFile.d.ts +1 -1
- package/components/svg/IconFile.d.ts.map +1 -1
- package/components/svg/IconFile.js +6 -7
- package/components/svg/IconFolder.d.ts +1 -1
- package/components/svg/IconFolder.d.ts.map +1 -1
- package/components/svg/IconFolder.js +6 -7
- package/components/svg/IconFullScreen.d.ts +1 -1
- package/components/svg/IconFullScreen.d.ts.map +1 -1
- package/components/svg/IconFullScreen.js +6 -7
- package/components/svg/IconFutures.d.ts +1 -1
- package/components/svg/IconFutures.d.ts.map +1 -1
- package/components/svg/IconFutures.js +6 -7
- package/components/svg/IconGraphReport.d.ts +1 -1
- package/components/svg/IconGraphReport.d.ts.map +1 -1
- package/components/svg/IconGraphReport.js +6 -7
- package/components/svg/IconHeartMonitor.d.ts +1 -1
- package/components/svg/IconHeartMonitor.d.ts.map +1 -1
- package/components/svg/IconHeartMonitor.js +6 -7
- package/components/svg/IconHistory.d.ts +1 -1
- package/components/svg/IconHistory.d.ts.map +1 -1
- package/components/svg/IconHistory.js +6 -7
- package/components/svg/IconImport.d.ts +1 -1
- package/components/svg/IconImport.d.ts.map +1 -1
- package/components/svg/IconImport.js +6 -7
- package/components/svg/IconLayers.d.ts +1 -1
- package/components/svg/IconLayers.d.ts.map +1 -1
- package/components/svg/IconLayers.js +6 -7
- package/components/svg/IconList.d.ts +1 -1
- package/components/svg/IconList.d.ts.map +1 -1
- package/components/svg/IconList.js +6 -7
- package/components/svg/IconLocations.d.ts +1 -1
- package/components/svg/IconLocations.d.ts.map +1 -1
- package/components/svg/IconLocations.js +6 -7
- package/components/svg/IconMail.d.ts +1 -1
- package/components/svg/IconMail.d.ts.map +1 -1
- package/components/svg/IconMail.js +6 -7
- package/components/svg/IconManager.d.ts +1 -1
- package/components/svg/IconManager.d.ts.map +1 -1
- package/components/svg/IconManager.js +6 -7
- package/components/svg/IconMarker.d.ts +1 -1
- package/components/svg/IconMarker.d.ts.map +1 -1
- package/components/svg/IconMarker.js +6 -7
- package/components/svg/IconMenu.d.ts +1 -1
- package/components/svg/IconMenu.d.ts.map +1 -1
- package/components/svg/IconMenu.js +6 -7
- package/components/svg/IconMenuHorizontal.d.ts +1 -1
- package/components/svg/IconMenuHorizontal.d.ts.map +1 -1
- package/components/svg/IconMenuHorizontal.js +6 -7
- package/components/svg/IconModule.d.ts +1 -1
- package/components/svg/IconModule.d.ts.map +1 -1
- package/components/svg/IconModule.js +6 -7
- package/components/svg/IconMyLocation.d.ts +1 -1
- package/components/svg/IconMyLocation.d.ts.map +1 -1
- package/components/svg/IconMyLocation.js +6 -7
- package/components/svg/IconNursery.d.ts +1 -1
- package/components/svg/IconNursery.d.ts.map +1 -1
- package/components/svg/IconNursery.js +6 -7
- package/components/svg/IconOrg.d.ts +1 -1
- package/components/svg/IconOrg.d.ts.map +1 -1
- package/components/svg/IconOrg.js +6 -7
- package/components/svg/IconParchment.d.ts +1 -1
- package/components/svg/IconParchment.d.ts.map +1 -1
- package/components/svg/IconParchment.js +6 -7
- package/components/svg/IconRedo.d.ts +1 -1
- package/components/svg/IconRedo.d.ts.map +1 -1
- package/components/svg/IconRedo.js +6 -7
- package/components/svg/IconRestorationSite.d.ts +1 -1
- package/components/svg/IconRestorationSite.d.ts.map +1 -1
- package/components/svg/IconRestorationSite.js +6 -7
- package/components/svg/IconSeedBank.d.ts +1 -1
- package/components/svg/IconSeedBank.d.ts.map +1 -1
- package/components/svg/IconSeedBank.js +6 -7
- package/components/svg/IconSeedling.d.ts +1 -1
- package/components/svg/IconSeedling.d.ts.map +1 -1
- package/components/svg/IconSeedling.js +6 -7
- package/components/svg/IconSlice.d.ts +1 -1
- package/components/svg/IconSlice.d.ts.map +1 -1
- package/components/svg/IconSlice.js +6 -7
- package/components/svg/IconSubmit.d.ts +1 -1
- package/components/svg/IconSubmit.d.ts.map +1 -1
- package/components/svg/IconSubmit.js +6 -7
- package/components/svg/IconSubtract.d.ts +1 -1
- package/components/svg/IconSubtract.d.ts.map +1 -1
- package/components/svg/IconSubtract.js +6 -7
- package/components/svg/IconSynced.d.ts +1 -1
- package/components/svg/IconSynced.d.ts.map +1 -1
- package/components/svg/IconSynced.js +6 -7
- package/components/svg/IconTrashCan.d.ts +1 -1
- package/components/svg/IconTrashCan.d.ts.map +1 -1
- package/components/svg/IconTrashCan.js +6 -7
- package/components/svg/IconTreasureMap.d.ts +1 -1
- package/components/svg/IconTreasureMap.d.ts.map +1 -1
- package/components/svg/IconTreasureMap.js +6 -7
- package/components/svg/IconUndo.d.ts +1 -1
- package/components/svg/IconUndo.d.ts.map +1 -1
- package/components/svg/IconUndo.js +6 -7
- package/components/svg/IconWifi.d.ts +1 -1
- package/components/svg/IconWifi.d.ts.map +1 -1
- package/components/svg/IconWifi.js +6 -7
- package/components/svg/Info.d.ts +1 -1
- package/components/svg/Info.d.ts.map +1 -1
- package/components/svg/Info.js +6 -7
- package/components/svg/Key.d.ts +1 -1
- package/components/svg/Key.d.ts.map +1 -1
- package/components/svg/Key.js +6 -7
- package/components/svg/Leaf.d.ts +1 -1
- package/components/svg/Leaf.d.ts.map +1 -1
- package/components/svg/Leaf.js +6 -7
- package/components/svg/Lock.d.ts +1 -1
- package/components/svg/Lock.d.ts.map +1 -1
- package/components/svg/Lock.js +6 -7
- package/components/svg/Logo.d.ts +1 -1
- package/components/svg/Logo.d.ts.map +1 -1
- package/components/svg/Logo.js +6 -7
- package/components/svg/MenuVertical.d.ts +1 -1
- package/components/svg/MenuVertical.d.ts.map +1 -1
- package/components/svg/MenuVertical.js +6 -7
- package/components/svg/Notification.d.ts +1 -1
- package/components/svg/Notification.d.ts.map +1 -1
- package/components/svg/Notification.js +6 -7
- package/components/svg/Person.d.ts +1 -1
- package/components/svg/Person.d.ts.map +1 -1
- package/components/svg/Person.js +6 -7
- package/components/svg/Plus.d.ts +1 -1
- package/components/svg/Plus.d.ts.map +1 -1
- package/components/svg/Plus.js +6 -7
- package/components/svg/RestorationSite.d.ts +1 -1
- package/components/svg/RestorationSite.d.ts.map +1 -1
- package/components/svg/RestorationSite.js +6 -7
- package/components/svg/Search.d.ts +1 -1
- package/components/svg/Search.d.ts.map +1 -1
- package/components/svg/Search.js +6 -7
- package/components/svg/Seeds.d.ts +1 -1
- package/components/svg/Seeds.d.ts.map +1 -1
- package/components/svg/Seeds.js +6 -7
- package/components/svg/Site.d.ts +1 -1
- package/components/svg/Site.d.ts.map +1 -1
- package/components/svg/Site.js +6 -7
- package/components/svg/Sparkles.d.ts +1 -1
- package/components/svg/Sparkles.d.ts.map +1 -1
- package/components/svg/Sparkles.js +6 -7
- package/components/svg/Species.d.ts +1 -1
- package/components/svg/Species.d.ts.map +1 -1
- package/components/svg/Species.js +6 -7
- package/components/svg/Species2.d.ts +1 -1
- package/components/svg/Species2.d.ts.map +1 -1
- package/components/svg/Species2.js +6 -7
- package/components/svg/Spinner.d.ts +1 -1
- package/components/svg/Spinner.d.ts.map +1 -1
- package/components/svg/Spinner.js +6 -7
- package/components/svg/Success.d.ts +1 -1
- package/components/svg/Success.d.ts.map +1 -1
- package/components/svg/Success.js +6 -7
- package/components/svg/Touchscreen.d.ts +1 -1
- package/components/svg/Touchscreen.d.ts.map +1 -1
- package/components/svg/Touchscreen.js +6 -7
- package/components/svg/UploadCloud.d.ts +1 -1
- package/components/svg/UploadCloud.d.ts.map +1 -1
- package/components/svg/UploadCloud.js +6 -7
- package/components/svg/Warning.d.ts +1 -1
- package/components/svg/Warning.d.ts.map +1 -1
- package/components/svg/Warning.js +6 -7
- package/components/svg/index.js +101 -101
- package/components/table/EnhancedTableToolbar.d.ts +1 -0
- package/components/table/EnhancedTableToolbar.d.ts.map +1 -1
- package/components/table/EnhancedTableToolbar.js +45 -45
- package/components/table/EnhancedTableToolbarV2.d.ts +2 -1
- package/components/table/EnhancedTableToolbarV2.d.ts.map +1 -1
- package/components/table/EnhancedTableToolbarV2.js +20 -20
- package/components/table/TableCellRenderer.js +71 -60
- package/components/table/TableHeader.js +27 -33
- package/components/table/TableHeaderItem.js +30 -33
- package/components/table/index.d.ts.map +1 -1
- package/components/table/index.js +146 -189
- package/components/table/sort.js +10 -16
- package/components/table/sort.test.js +12 -12
- package/index.js +50 -50
- package/license-report.html +1 -1
- package/package.json +3 -3
- package/stories/Autocomplete.stories.d.ts +2 -2
- package/stories/Autocomplete.stories.d.ts.map +1 -1
- package/stories/Badge.stories.d.ts +2 -1
- package/stories/Badge.stories.d.ts.map +1 -1
- package/stories/BusySpinner.stories.d.ts +1 -1
- package/stories/BusySpinner.stories.d.ts.map +1 -1
- package/stories/Button.stories.d.ts +1 -1
- package/stories/Button.stories.d.ts.map +1 -1
- package/stories/Checkbox.stories.d.ts +2 -2
- package/stories/Checkbox.stories.d.ts.map +1 -1
- package/stories/Confirm.stories.d.ts +5 -5
- package/stories/Confirm.stories.d.ts.map +1 -1
- package/stories/DatePicker.stories.d.ts +5 -5
- package/stories/DatePicker.stories.d.ts.map +1 -1
- package/stories/DialogBox.stories.d.ts +6 -6
- package/stories/DialogBox.stories.d.ts.map +1 -1
- package/stories/Divisor.stories.d.ts +1 -1
- package/stories/Divisor.stories.d.ts.map +1 -1
- package/stories/Dropdown.stories.d.ts +3 -3
- package/stories/Dropdown.stories.d.ts.map +1 -1
- package/stories/ErrorBox.stories.d.ts +1 -1
- package/stories/ErrorBox.stories.d.ts.map +1 -1
- package/stories/FileChooser.stories.d.ts +2 -2
- package/stories/FileChooser.stories.d.ts.map +1 -1
- package/stories/Icon.stories.d.ts +1 -1
- package/stories/Icon.stories.d.ts.map +1 -1
- package/stories/IconTooltip.stories.d.ts +2 -2
- package/stories/IconTooltip.stories.d.ts.map +1 -1
- package/stories/IntersectionObserver.stories.d.ts +1 -1
- package/stories/IntersectionObserver.stories.d.ts.map +1 -1
- package/stories/Message.stories.d.ts +2 -2
- package/stories/Message.stories.d.ts.map +1 -1
- package/stories/MultiSelect.stories.d.ts +2 -2
- package/stories/MultiSelect.stories.d.ts.map +1 -1
- package/stories/Navbar.stories.d.ts +2 -2
- package/stories/Navbar.stories.d.ts.map +1 -1
- package/stories/Note.stories.d.ts +1 -1
- package/stories/Note.stories.d.ts.map +1 -1
- package/stories/PageForm.stories.d.ts +2 -2
- package/stories/PageForm.stories.d.ts.map +1 -1
- package/stories/PhotoChooser.stories.d.ts +2 -2
- package/stories/PhotoChooser.stories.d.ts.map +1 -1
- package/stories/PillList.stories.d.ts +1 -1
- package/stories/PillList.stories.d.ts.map +1 -1
- package/stories/PopoverMenu.stories.d.ts +2 -2
- package/stories/PopoverMenu.stories.d.ts.map +1 -1
- package/stories/PopoverMultiSelect.stories.d.ts +1 -1
- package/stories/PopoverMultiSelect.stories.d.ts.map +1 -1
- package/stories/ProgressCircle.stories.d.ts +1 -1
- package/stories/ProgressCircle.stories.d.ts.map +1 -1
- package/stories/RadioButton.stories.d.ts +1 -1
- package/stories/RadioButton.stories.d.ts.map +1 -1
- package/stories/Select.stories.d.ts +4 -4
- package/stories/Select.stories.d.ts.map +1 -1
- package/stories/Separator.stories.d.ts +2 -2
- package/stories/Slider.stories.d.ts +2 -2
- package/stories/Slider.stories.d.ts.map +1 -1
- package/stories/SummaryBox.stories.d.ts +3 -3
- package/stories/SummaryBox.stories.d.ts.map +1 -1
- package/stories/Table.stories.d.ts +5 -5
- package/stories/Tabs.stories.d.ts +3 -2
- package/stories/Tabs.stories.d.ts.map +1 -1
- package/stories/TextTruncated.stories.d.ts +3 -3
- package/stories/TextTruncated.stories.d.ts.map +1 -1
- package/stories/TextfieldNew.stories.d.ts +5 -5
- package/stories/TextfieldNew.stories.d.ts.map +1 -1
- package/stories/Theme.stories.d.ts +1 -1
- package/stories/Theme.stories.d.ts.map +1 -1
- package/stories/Tooltip.stories.d.ts +1 -1
- package/stories/Tooltip.stories.d.ts.map +1 -1
- package/stories/ViewPhotosDialog.stories.d.ts +1 -1
- package/stories/ViewPhotosDialog.stories.d.ts.map +1 -1
- package/style-dictionary-dist/TerrawareTheme.js +1 -1
- package/theme.js +1 -2
- package/utils/date.d.ts +1 -1
- package/utils/date.d.ts.map +1 -1
- package/utils/date.js +17 -15
- package/utils/date.test.js +22 -22
- package/utils/index.js +7 -7
- package/utils/preventDefaultEvent.js +1 -3
- package/utils/text.js +10 -13
- package/utils/text.test.js +10 -10
- package/utils/useDeviceInfo.js +17 -16
@@ -5,27 +5,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
6
6
|
});
|
7
7
|
exports.default = DialogBox;
|
8
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
9
8
|
var _react = _interopRequireDefault(require("react"));
|
10
9
|
require("./styles.scss");
|
11
10
|
var _Icon = _interopRequireDefault(require("../Icon/Icon"));
|
12
11
|
var _material = require("@mui/material");
|
13
12
|
var _utils = require("../../utils");
|
14
13
|
function DialogBox(props) {
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
14
|
+
const {
|
15
|
+
title,
|
16
|
+
size,
|
17
|
+
message,
|
18
|
+
children,
|
19
|
+
leftButton,
|
20
|
+
rightButtons,
|
21
|
+
middleButtons,
|
22
|
+
onClose,
|
23
|
+
open,
|
24
|
+
scrolled,
|
25
|
+
skrim
|
26
|
+
} = props;
|
27
|
+
const hasFooter = leftButton || rightButtons || middleButtons;
|
28
|
+
const {
|
29
|
+
isMobile
|
30
|
+
} = (0, _utils.useDeviceInfo)();
|
29
31
|
return open ? /*#__PURE__*/_react.default.createElement("div", {
|
30
32
|
className: "dialog-box-container".concat(skrim ? '--skrim' : '', " ").concat(open ? 'dialog-box--opened' : 'dialog-box--closed', " ").concat(isMobile ? 'mobile' : '')
|
31
33
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
@@ -56,23 +58,27 @@ function DialogBox(props) {
|
|
56
58
|
className: "left-button"
|
57
59
|
}, leftButton), /*#__PURE__*/_react.default.createElement("div", {
|
58
60
|
className: "right-buttons"
|
59
|
-
}, rightButtons === null || rightButtons === void 0 ? void 0 : rightButtons.map(
|
60
|
-
|
61
|
+
}, rightButtons === null || rightButtons === void 0 ? void 0 : rightButtons.map((rb, index) => {
|
62
|
+
const rbWithKey = {
|
63
|
+
...rb,
|
61
64
|
key: "rb-".concat(index),
|
62
|
-
props:
|
65
|
+
props: {
|
66
|
+
...rb.props,
|
63
67
|
size: rb.props.size || 'medium'
|
64
|
-
}
|
65
|
-
}
|
68
|
+
}
|
69
|
+
};
|
66
70
|
return rbWithKey;
|
67
71
|
}))), middleButtons && /*#__PURE__*/_react.default.createElement("div", {
|
68
72
|
className: "dialog-box--actions-container"
|
69
|
-
}, middleButtons === null || middleButtons === void 0 ? void 0 : middleButtons.map(
|
70
|
-
|
73
|
+
}, middleButtons === null || middleButtons === void 0 ? void 0 : middleButtons.map((mb, index) => {
|
74
|
+
const mbWithKey = {
|
75
|
+
...mb,
|
71
76
|
key: "mb-".concat(index),
|
72
|
-
props:
|
77
|
+
props: {
|
78
|
+
...mb.props,
|
73
79
|
size: mb.props.size || 'medium'
|
74
|
-
}
|
75
|
-
}
|
80
|
+
}
|
81
|
+
};
|
76
82
|
return mbWithKey;
|
77
83
|
}))))) : null;
|
78
84
|
}
|
package/components/Divisor.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Divisor.d.ts","sourceRoot":"","sources":["../../src/components/Divisor.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,KAAK;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AACD,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,EAAM,EAAE,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAQ9D"}
|
1
|
+
{"version":3,"file":"Divisor.d.ts","sourceRoot":"","sources":["../../src/components/Divisor.tsx"],"names":[],"mappings":";AAGA,MAAM,WAAW,KAAK;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AACD,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,EAAM,EAAE,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAQ9D"}
|
package/components/Divisor.js
CHANGED
@@ -8,8 +8,9 @@ exports.default = Divisor;
|
|
8
8
|
var _material = require("@mui/material");
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
10
10
|
function Divisor(_ref) {
|
11
|
-
|
12
|
-
mt =
|
11
|
+
let {
|
12
|
+
mt = 3
|
13
|
+
} = _ref;
|
13
14
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_material.Box, {
|
14
15
|
mt: mt
|
15
16
|
}), /*#__PURE__*/_react.default.createElement(_material.Divider, {
|
package/components/Dropdown.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../src/components/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC3G,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAgB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAKzD,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;IACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAQD,wBAAgB,UAAU,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,KAAK,G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AI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC;IAG5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,GAAG,CAAC,OAAO,CAsClE"}
|
package/components/Dropdown.js
CHANGED
@@ -6,31 +6,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
});
|
7
7
|
exports.DropdownV1 = DropdownV1;
|
8
8
|
exports.default = Dropdown;
|
9
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
10
9
|
var _material = require("@mui/material");
|
11
10
|
var _SelectT = _interopRequireDefault(require("./Select/SelectT"));
|
12
11
|
var _Autocomplete = _interopRequireDefault(require("./Autocomplete/Autocomplete"));
|
13
12
|
var _styles = require("@mui/styles");
|
14
13
|
var _react = _interopRequireDefault(require("react"));
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
}
|
21
|
-
};
|
22
|
-
});
|
14
|
+
const useStyles = (0, _styles.makeStyles)(() => ({
|
15
|
+
formControl: {
|
16
|
+
width: '100%'
|
17
|
+
}
|
18
|
+
}));
|
23
19
|
function DropdownV1(_ref) {
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
20
|
+
let {
|
21
|
+
id,
|
22
|
+
label,
|
23
|
+
values,
|
24
|
+
onChange,
|
25
|
+
selected,
|
26
|
+
disabled
|
27
|
+
} = _ref;
|
28
|
+
const onChangeH = (event, _child) => {
|
31
29
|
onChange(event.target.value);
|
32
30
|
};
|
33
|
-
|
31
|
+
const classes = useStyles();
|
34
32
|
return /*#__PURE__*/_react.default.createElement(_material.FormControl, {
|
35
33
|
variant: "outlined",
|
36
34
|
className: classes.formControl,
|
@@ -44,9 +42,11 @@ function DropdownV1(_ref) {
|
|
44
42
|
label: label,
|
45
43
|
onChange: onChangeH,
|
46
44
|
value: selected
|
47
|
-
}, values === null || values === void 0 ? void 0 : values.map(
|
48
|
-
|
49
|
-
|
45
|
+
}, values === null || values === void 0 ? void 0 : values.map(_ref2 => {
|
46
|
+
let {
|
47
|
+
label: inLabel,
|
48
|
+
value
|
49
|
+
} = _ref2;
|
50
50
|
return /*#__PURE__*/_react.default.createElement(_material.MenuItem, {
|
51
51
|
id: value,
|
52
52
|
key: value,
|
@@ -67,16 +67,16 @@ function DropdownV1(_ref) {
|
|
67
67
|
* />
|
68
68
|
*/
|
69
69
|
function Dropdown(props) {
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
70
|
+
const {
|
71
|
+
selectedValue,
|
72
|
+
onChange,
|
73
|
+
options,
|
74
|
+
autocomplete,
|
75
|
+
...remainingProps
|
76
|
+
} = props;
|
77
|
+
const selectedItem = options === null || options === void 0 ? void 0 : options.find(option => option.value === selectedValue);
|
78
|
+
const renderOption = option => {
|
79
|
+
const styles = {
|
80
80
|
fontWeight: option.fontWeight || 'normal',
|
81
81
|
fontStyle: option.fontStyle || 'normal'
|
82
82
|
};
|
@@ -88,32 +88,20 @@ function Dropdown(props) {
|
|
88
88
|
return /*#__PURE__*/_react.default.createElement(_Autocomplete.default, Object.assign({}, remainingProps, {
|
89
89
|
options: options !== null && options !== void 0 ? options : [],
|
90
90
|
selected: selectedItem || '',
|
91
|
-
isEqual:
|
92
|
-
|
93
|
-
},
|
94
|
-
onChange: function onChange(option) {
|
95
|
-
return _onChange(option.value);
|
96
|
-
}
|
91
|
+
isEqual: (A, B) => A.value === B.value,
|
92
|
+
onChange: option => onChange(option.value)
|
97
93
|
}));
|
98
94
|
}
|
99
95
|
return /*#__PURE__*/_react.default.createElement(_SelectT.default, Object.assign({}, remainingProps, {
|
100
96
|
options: options,
|
101
97
|
selectedValue: selectedItem,
|
102
|
-
isEqual:
|
103
|
-
return A.value === B.value;
|
104
|
-
},
|
98
|
+
isEqual: (A, B) => A.value === B.value,
|
105
99
|
renderOption: renderOption,
|
106
|
-
toT:
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
displayLabel: function displayLabel(option) {
|
113
|
-
return (option === null || option === void 0 ? void 0 : option.label) || '';
|
114
|
-
},
|
115
|
-
onChange: function onChange(option) {
|
116
|
-
return _onChange(option.value);
|
117
|
-
}
|
100
|
+
toT: str => ({
|
101
|
+
label: str,
|
102
|
+
value: str
|
103
|
+
}),
|
104
|
+
displayLabel: option => (option === null || option === void 0 ? void 0 : option.label) || '',
|
105
|
+
onChange: option => onChange(option.value)
|
118
106
|
}));
|
119
107
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ErrorBox.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorBox/ErrorBox.tsx"],"names":[],"mappings":"AAIA,OAAO,eAAe,CAAC;AAEvB,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAoB1D"}
|
1
|
+
{"version":3,"file":"ErrorBox.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorBox/ErrorBox.tsx"],"names":[],"mappings":";AAIA,OAAO,eAAe,CAAC;AAEvB,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAoB1D"}
|
@@ -8,16 +8,19 @@ exports.default = ErrorBox;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
9
9
|
var _Button = _interopRequireDefault(require("../Button/Button"));
|
10
10
|
var _Icon = _interopRequireDefault(require("../Icon/Icon"));
|
11
|
-
var
|
11
|
+
var _useDeviceInfo = _interopRequireDefault(require("../../utils/useDeviceInfo"));
|
12
12
|
require("./styles.scss");
|
13
13
|
function ErrorBox(props) {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
14
|
+
const {
|
15
|
+
text,
|
16
|
+
onClick,
|
17
|
+
buttonText,
|
18
|
+
title,
|
19
|
+
className
|
20
|
+
} = props;
|
21
|
+
const {
|
22
|
+
isMobile
|
23
|
+
} = (0, _useDeviceInfo.default)();
|
21
24
|
return /*#__PURE__*/_react.default.createElement("div", {
|
22
25
|
className: "error-box ".concat(className, " ").concat(isMobile ? 'mobile' : '')
|
23
26
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FileChooser/index.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AA2BzC,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,4EAA4E;IAC5E,c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CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CAiHxE"}
|
@@ -1,98 +1,94 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
4
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
6
6
|
value: true
|
7
7
|
});
|
8
8
|
exports.default = FileChooser;
|
9
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/toConsumableArray"));
|
10
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
11
9
|
var _react = _interopRequireWildcard(require("react"));
|
12
10
|
var _material = require("@mui/material");
|
13
11
|
var _styles = require("@mui/styles");
|
14
12
|
var _utils = require("../../utils");
|
15
13
|
var _Button = _interopRequireDefault(require("../Button/Button"));
|
16
14
|
var _Icon = _interopRequireDefault(require("../Icon/Icon"));
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
'
|
38
|
-
textDecoration: 'underline'
|
39
|
-
}
|
15
|
+
const useStyles = (0, _styles.makeStyles)(theme => ({
|
16
|
+
hiddenInput: {
|
17
|
+
display: 'none'
|
18
|
+
},
|
19
|
+
icon: {
|
20
|
+
height: '120px',
|
21
|
+
width: '120px'
|
22
|
+
},
|
23
|
+
button: {
|
24
|
+
marginTop: theme.spacing(3)
|
25
|
+
},
|
26
|
+
link: {
|
27
|
+
color: theme.palette.TwClrTxtBrand,
|
28
|
+
fontFamily: 'Inter',
|
29
|
+
fontSize: '12px',
|
30
|
+
fontWeight: 500,
|
31
|
+
lineHeight: '16px',
|
32
|
+
marginTop: theme.spacing(2),
|
33
|
+
textDecoration: 'none',
|
34
|
+
'&:hover': {
|
35
|
+
textDecoration: 'underline'
|
40
36
|
}
|
41
|
-
}
|
42
|
-
});
|
37
|
+
}
|
38
|
+
}));
|
43
39
|
function FileChooser(props) {
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
(0, _react.useEffect)(
|
40
|
+
const {
|
41
|
+
acceptFileType,
|
42
|
+
chooseFileText,
|
43
|
+
files,
|
44
|
+
fileSelectedText,
|
45
|
+
iconName,
|
46
|
+
maxFiles,
|
47
|
+
multipleSelection,
|
48
|
+
onChoosingFiles,
|
49
|
+
replaceFileText,
|
50
|
+
selectedFile,
|
51
|
+
setFiles,
|
52
|
+
template,
|
53
|
+
uploadDescription,
|
54
|
+
uploadMobileDescription,
|
55
|
+
uploadText
|
56
|
+
} = props;
|
57
|
+
const {
|
58
|
+
isMobile
|
59
|
+
} = (0, _utils.useDeviceInfo)();
|
60
|
+
const classes = useStyles();
|
61
|
+
const inputRef = (0, _react.useRef)(null);
|
62
|
+
const theme = (0, _material.useTheme)();
|
63
|
+
const [editing, setEditing] = (0, _react.useState)(false);
|
64
|
+
(0, _react.useEffect)(() => {
|
69
65
|
setEditing(!!selectedFile);
|
70
66
|
}, [selectedFile]);
|
71
|
-
|
72
|
-
|
73
|
-
for (
|
74
|
-
|
67
|
+
const addFiles = fileList => {
|
68
|
+
const newFiles = [];
|
69
|
+
for (let i = 0; i < fileList.length; i++) {
|
70
|
+
const fileItem = fileList.item(i);
|
75
71
|
if (fileItem) {
|
76
72
|
newFiles.push(fileItem);
|
77
73
|
}
|
78
74
|
}
|
79
75
|
if (newFiles.length) {
|
80
|
-
setFiles([
|
76
|
+
setFiles([...(files !== null && files !== void 0 ? files : []), ...newFiles].slice(0, maxFiles));
|
81
77
|
}
|
82
78
|
};
|
83
|
-
|
79
|
+
const dropHandler = event => {
|
84
80
|
event.preventDefault();
|
85
81
|
addFiles(event.dataTransfer.files);
|
86
82
|
};
|
87
|
-
|
83
|
+
const enableDropping = event => {
|
88
84
|
event.preventDefault();
|
89
85
|
};
|
90
|
-
|
86
|
+
const onChooseFileHandler = () => {
|
91
87
|
var _inputRef$current;
|
92
88
|
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.click();
|
93
89
|
onChoosingFiles === null || onChoosingFiles === void 0 ? void 0 : onChoosingFiles();
|
94
90
|
};
|
95
|
-
|
91
|
+
const onFileChosen = event => {
|
96
92
|
if (editing) {
|
97
93
|
setEditing(false);
|
98
94
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FormBottomBar/index.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FormBottomBar/index.tsx"],"names":[],"mappings":";AAKA,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,cAAc,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IACzC,UAAU,CAAC,EAAE,SAAS,GAAG,YAAY,GAAG,aAAa,CAAC;CACvD;AAED,MAAM,WAAW,KAAK;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,sBAAsB,CAAC,EAAE,UAAU,EAAE,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,MAAM,EACN,sBAAsB,GACvB,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CA4ErB"}
|
@@ -8,64 +8,23 @@ exports.default = FormBottomBar;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
9
9
|
var _material = require("@mui/material");
|
10
10
|
var _Button = _interopRequireDefault(require("../Button/Button"));
|
11
|
-
var
|
12
|
-
var _useDeviceInfo2 = _interopRequireDefault(require("../../utils/useDeviceInfo"));
|
13
|
-
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
14
|
-
return {
|
15
|
-
bottomBar: {
|
16
|
-
background: "linear-gradient(to right, ".concat(theme.palette.TwClrBaseGray025, "00,") + "".concat(theme.palette.TwClrBaseGray025, "80, ").concat(theme.palette.TwClrBaseGray025, "80,") + "".concat(theme.palette.TwClrBaseGray025, "00)"),
|
17
|
-
backdropFilter: 'blur(16px)',
|
18
|
-
borderTop: '1px solid',
|
19
|
-
borderImage: "linear-gradient(to right, ".concat(theme.palette.TwClrBaseGray300, "00,") + "".concat(theme.palette.TwClrBaseGray300, "FF, ").concat(theme.palette.TwClrBaseGray300, "FF,") + "".concat(theme.palette.TwClrBaseGray300, "FF, ").concat(theme.palette.TwClrBaseGray300, "00) 1"),
|
20
|
-
boxShadow: 'none',
|
21
|
-
justifyContent: 'space-between',
|
22
|
-
display: 'flex',
|
23
|
-
flexDirection: function flexDirection(props) {
|
24
|
-
return props.isMobile ? 'column-reverse' : 'row';
|
25
|
-
},
|
26
|
-
padding: function padding(props) {
|
27
|
-
return props.isDesktop ? '16px 24px' : "16px 24px ".concat(theme.spacing(5));
|
28
|
-
},
|
29
|
-
width: function width(props) {
|
30
|
-
return props.isDesktop ? 'calc(100% - 200px)' : '100%';
|
31
|
-
},
|
32
|
-
zIndex: 1000
|
33
|
-
},
|
34
|
-
button: {
|
35
|
-
marginTop: function marginTop(props) {
|
36
|
-
return props.isMobile ? theme.spacing(1) : 'auto';
|
37
|
-
}
|
38
|
-
},
|
39
|
-
rightButtons: {
|
40
|
-
marginTop: function marginTop(props) {
|
41
|
-
return props.isMobile ? theme.spacing(1) : 'auto';
|
42
|
-
},
|
43
|
-
marginRight: theme.spacing(1)
|
44
|
-
},
|
45
|
-
rightButtonGroup: {
|
46
|
-
display: 'flex',
|
47
|
-
flexDirection: function flexDirection(props) {
|
48
|
-
return props.isMobile ? 'column-reverse' : 'row';
|
49
|
-
}
|
50
|
-
}
|
51
|
-
};
|
52
|
-
});
|
11
|
+
var _useDeviceInfo = _interopRequireDefault(require("../../utils/useDeviceInfo"));
|
53
12
|
function FormBottomBar(_ref) {
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
13
|
+
let {
|
14
|
+
cancelID,
|
15
|
+
saveID,
|
16
|
+
onCancel,
|
17
|
+
cancelButtonText,
|
18
|
+
saveButtonText,
|
19
|
+
saveDisabled,
|
20
|
+
onSave,
|
21
|
+
additionalRightButtons
|
22
|
+
} = _ref;
|
23
|
+
const {
|
24
|
+
isMobile,
|
25
|
+
isDesktop
|
26
|
+
} = (0, _useDeviceInfo.default)();
|
27
|
+
const theme = (0, _material.useTheme)();
|
69
28
|
return /*#__PURE__*/_react.default.createElement(_material.AppBar, {
|
70
29
|
position: "fixed",
|
71
30
|
color: "primary",
|
@@ -75,7 +34,19 @@ function FormBottomBar(_ref) {
|
|
75
34
|
right: 'auto',
|
76
35
|
left: isDesktop ? 'auto' : 0
|
77
36
|
},
|
78
|
-
|
37
|
+
sx: {
|
38
|
+
background: "linear-gradient(to right, ".concat(theme.palette.TwClrBaseGray025, "00,") + "".concat(theme.palette.TwClrBaseGray025, "80, ").concat(theme.palette.TwClrBaseGray025, "80,") + "".concat(theme.palette.TwClrBaseGray025, "00)"),
|
39
|
+
backdropFilter: 'blur(16px)',
|
40
|
+
borderTop: '1px solid',
|
41
|
+
borderImage: "linear-gradient(to right, ".concat(theme.palette.TwClrBaseGray300, "00,") + "".concat(theme.palette.TwClrBaseGray300, "FF, ").concat(theme.palette.TwClrBaseGray300, "FF,") + "".concat(theme.palette.TwClrBaseGray300, "FF, ").concat(theme.palette.TwClrBaseGray300, "00) 1"),
|
42
|
+
boxShadow: 'none',
|
43
|
+
justifyContent: 'space-between',
|
44
|
+
display: 'flex',
|
45
|
+
flexDirection: isMobile ? 'column-reverse' : 'row',
|
46
|
+
padding: isDesktop ? '16px 24px' : "16px 24px ".concat(theme.spacing(5)),
|
47
|
+
width: isDesktop ? 'calc(100% - 200px)' : '100%',
|
48
|
+
zIndex: 1000
|
49
|
+
}
|
79
50
|
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
80
51
|
id: cancelID || 'cancelBottomBar',
|
81
52
|
size: "medium",
|
@@ -83,27 +54,35 @@ function FormBottomBar(_ref) {
|
|
83
54
|
onClick: onCancel,
|
84
55
|
priority: "secondary",
|
85
56
|
type: "passive",
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
57
|
+
style: {
|
58
|
+
marginTop: isMobile ? theme.spacing(1) : 'auto',
|
59
|
+
marginRight: theme.spacing(1)
|
60
|
+
}
|
61
|
+
}), /*#__PURE__*/_react.default.createElement(_material.Box, {
|
62
|
+
sx: {
|
63
|
+
display: 'flex',
|
64
|
+
flexDirection: isMobile ? 'column-reverse' : 'row'
|
65
|
+
}
|
66
|
+
}, additionalRightButtons && additionalRightButtons.map(btn => /*#__PURE__*/_react.default.createElement(_Button.default, {
|
67
|
+
id: btn.id,
|
68
|
+
key: btn.id,
|
69
|
+
priority: btn.buttonPriority,
|
70
|
+
type: btn.buttonType,
|
71
|
+
size: "medium",
|
72
|
+
label: btn.text,
|
73
|
+
onClick: btn.onClick,
|
74
|
+
disabled: btn.disabled,
|
75
|
+
style: {
|
76
|
+
marginTop: isMobile ? theme.spacing(1) : 'auto'
|
77
|
+
}
|
78
|
+
})), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
102
79
|
id: saveID || 'saveBottomBar',
|
103
80
|
size: "medium",
|
104
81
|
label: saveButtonText,
|
105
82
|
onClick: onSave,
|
106
|
-
|
107
|
-
|
83
|
+
disabled: saveDisabled,
|
84
|
+
style: {
|
85
|
+
marginTop: isMobile ? theme.spacing(1) : 'auto'
|
86
|
+
}
|
108
87
|
})));
|
109
88
|
}
|