@terraware/web-components 2.12.8-rc.0 → 2.12.8
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 +0 -1
- package/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/components/Autocomplete/Autocomplete.js +44 -42
- package/components/Badge/index.d.ts +0 -1
- package/components/Badge/index.d.ts.map +1 -1
- package/components/Badge/index.js +8 -7
- package/components/BusySpinner/index.d.ts +0 -1
- package/components/BusySpinner/index.d.ts.map +1 -1
- package/components/BusySpinner/index.js +3 -5
- package/components/Button/Button.js +23 -20
- package/components/Button/button.test.js +4 -4
- package/components/Checkbox.js +27 -25
- package/components/Confirm/index.js +28 -28
- package/components/DatePicker/DatePicker.js +24 -18
- package/components/DialogBox/DialogBox.js +25 -31
- package/components/Divisor.d.ts +0 -1
- package/components/Divisor.d.ts.map +1 -1
- package/components/Divisor.js +2 -3
- package/components/Dropdown.d.ts +0 -1
- package/components/Dropdown.d.ts.map +1 -1
- package/components/Dropdown.js +51 -39
- package/components/ErrorBox/ErrorBox.d.ts +0 -1
- package/components/ErrorBox/ErrorBox.d.ts.map +1 -1
- package/components/ErrorBox/ErrorBox.js +8 -11
- package/components/FileChooser/index.d.ts +0 -1
- package/components/FileChooser/index.d.ts.map +1 -1
- package/components/FileChooser/index.js +62 -58
- package/components/FormBottomBar/index.d.ts +0 -1
- package/components/FormBottomBar/index.d.ts.map +1 -1
- package/components/FormBottomBar/index.js +68 -55
- package/components/Icon/Icon.d.ts +0 -1
- package/components/Icon/Icon.d.ts.map +1 -1
- package/components/Icon/Icon.js +18 -15
- package/components/Icon/icons/index.js +3 -2
- package/components/IconTooltip/index.d.ts +0 -1
- package/components/IconTooltip/index.d.ts.map +1 -1
- package/components/IconTooltip/index.js +39 -32
- package/components/Message/Message.d.ts +0 -1
- package/components/Message/Message.d.ts.map +1 -1
- package/components/Message/Message.js +17 -21
- package/components/MultiSelect/MultiSelect.test.js +30 -16
- package/components/MultiSelect/index.d.ts +0 -1
- package/components/MultiSelect/index.d.ts.map +1 -1
- package/components/MultiSelect/index.js +42 -32
- package/components/Navbar/NavFooter.js +1 -3
- package/components/Navbar/NavItem.js +23 -19
- package/components/Navbar/NavSection.d.ts +0 -1
- package/components/Navbar/NavSection.d.ts.map +1 -1
- package/components/Navbar/NavSection.js +3 -4
- package/components/Navbar/Navbar.js +27 -26
- package/components/Navbar/SubNavbar.js +1 -3
- package/components/Note.d.ts +0 -1
- package/components/Note.d.ts.map +1 -1
- package/components/Note.js +12 -12
- package/components/PageForm/index.js +39 -18
- package/components/PhotoChooser/index.d.ts +0 -1
- package/components/PhotoChooser/index.d.ts.map +1 -1
- package/components/PhotoChooser/index.js +72 -57
- package/components/Pill/index.d.ts +0 -1
- package/components/Pill/index.d.ts.map +1 -1
- package/components/Pill/index.js +10 -12
- package/components/PillList/index.d.ts +0 -1
- package/components/PillList/index.d.ts.map +1 -1
- package/components/PillList/index.js +15 -15
- package/components/PopoverMenu/Popover.js +28 -25
- package/components/PopoverMenu/index.js +30 -26
- package/components/PopoverMultiSelect/index.d.ts +0 -1
- package/components/PopoverMultiSelect/index.d.ts.map +1 -1
- package/components/PopoverMultiSelect/index.js +26 -19
- package/components/ProgressCircle/ProgressCircle.d.ts +0 -1
- package/components/ProgressCircle/ProgressCircle.d.ts.map +1 -1
- package/components/ProgressCircle/ProgressCircle.js +6 -7
- package/components/RadioButton.js +1 -1
- package/components/Select/Select.d.ts +0 -1
- package/components/Select/Select.d.ts.map +1 -1
- package/components/Select/Select.js +9 -3
- package/components/Select/SelectT.js +83 -67
- package/components/Separator/index.d.ts +1 -1
- package/components/Separator/index.d.ts.map +1 -1
- package/components/Separator/index.js +3 -2
- package/components/Slider/index.d.ts +0 -1
- package/components/Slider/index.d.ts.map +1 -1
- package/components/Slider/index.js +11 -13
- package/components/SummaryBox.d.ts +0 -1
- package/components/SummaryBox.d.ts.map +1 -1
- package/components/SummaryBox.js +46 -45
- package/components/Tabs/index.js +38 -29
- package/components/TextTruncated/index.js +62 -52
- package/components/Textfield/Textfield.d.ts +0 -1
- 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 +42 -29
- package/components/Tooltip/Tooltip.d.ts +0 -1
- package/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/components/Tooltip/Tooltip.js +28 -24
- package/components/ViewPhotosDialog/index.js +65 -41
- package/components/svg/BlobbyGrayIconImage.d.ts +1 -1
- package/components/svg/BlobbyGrayIconImage.d.ts.map +1 -1
- package/components/svg/BlobbyGrayIconImage.js +9 -7
- package/components/svg/BlobbyGrayIconImport.d.ts +1 -1
- package/components/svg/BlobbyGrayIconImport.d.ts.map +1 -1
- package/components/svg/BlobbyGrayIconImport.js +9 -7
- package/components/svg/BlobbyGrayIconUploadToTheCloud.d.ts +1 -1
- package/components/svg/BlobbyGrayIconUploadToTheCloud.d.ts.map +1 -1
- package/components/svg/BlobbyGrayIconUploadToTheCloud.js +9 -7
- package/components/svg/BlobbyIconCloudChecked.d.ts +1 -1
- package/components/svg/BlobbyIconCloudChecked.d.ts.map +1 -1
- package/components/svg/BlobbyIconCloudChecked.js +9 -7
- package/components/svg/BlobbyIconExportOrUploadPhoto.d.ts +1 -1
- package/components/svg/BlobbyIconExportOrUploadPhoto.d.ts.map +1 -1
- package/components/svg/BlobbyIconExportOrUploadPhoto.js +9 -7
- package/components/svg/BlobbyIconFolder.d.ts +1 -1
- package/components/svg/BlobbyIconFolder.d.ts.map +1 -1
- package/components/svg/BlobbyIconFolder.js +9 -7
- package/components/svg/BlobbyIconGraphReport.d.ts +1 -1
- package/components/svg/BlobbyIconGraphReport.d.ts.map +1 -1
- package/components/svg/BlobbyIconGraphReport.js +9 -7
- package/components/svg/BlobbyIconHappy.d.ts +1 -1
- package/components/svg/BlobbyIconHappy.d.ts.map +1 -1
- package/components/svg/BlobbyIconHappy.js +9 -7
- package/components/svg/BlobbyIconHeartMonitor.d.ts +1 -1
- package/components/svg/BlobbyIconHeartMonitor.d.ts.map +1 -1
- package/components/svg/BlobbyIconHeartMonitor.js +9 -7
- package/components/svg/BlobbyIconLeaf.d.ts +1 -1
- package/components/svg/BlobbyIconLeaf.d.ts.map +1 -1
- package/components/svg/BlobbyIconLeaf.js +9 -7
- package/components/svg/BlobbyIconLibrary.d.ts +1 -1
- package/components/svg/BlobbyIconLibrary.d.ts.map +1 -1
- package/components/svg/BlobbyIconLibrary.js +9 -7
- package/components/svg/BlobbyIconNursery.d.ts +1 -1
- package/components/svg/BlobbyIconNursery.d.ts.map +1 -1
- package/components/svg/BlobbyIconNursery.js +9 -7
- package/components/svg/BlobbyIconOrganization.d.ts +1 -1
- package/components/svg/BlobbyIconOrganization.d.ts.map +1 -1
- package/components/svg/BlobbyIconOrganization.js +9 -7
- package/components/svg/BlobbyIconParchment.d.ts +1 -1
- package/components/svg/BlobbyIconParchment.d.ts.map +1 -1
- package/components/svg/BlobbyIconParchment.js +9 -7
- package/components/svg/BlobbyIconPeople.d.ts +1 -1
- package/components/svg/BlobbyIconPeople.d.ts.map +1 -1
- package/components/svg/BlobbyIconPeople.js +9 -7
- package/components/svg/BlobbyIconSeedBank.d.ts +1 -1
- package/components/svg/BlobbyIconSeedBank.d.ts.map +1 -1
- package/components/svg/BlobbyIconSeedBank.js +9 -7
- package/components/svg/BlobbyIconSeedling.d.ts +1 -1
- package/components/svg/BlobbyIconSeedling.d.ts.map +1 -1
- package/components/svg/BlobbyIconSeedling.js +9 -7
- package/components/svg/BlobbyIconSeeds.d.ts +1 -1
- package/components/svg/BlobbyIconSeeds.d.ts.map +1 -1
- package/components/svg/BlobbyIconSeeds.js +9 -7
- package/components/svg/BlobbyIconSite.d.ts +1 -1
- package/components/svg/BlobbyIconSite.d.ts.map +1 -1
- package/components/svg/BlobbyIconSite.js +9 -7
- package/components/svg/BlobbyIconSparkles.d.ts +1 -1
- package/components/svg/BlobbyIconSparkles.d.ts.map +1 -1
- package/components/svg/BlobbyIconSparkles.js +9 -7
- package/components/svg/BlobbyIconWrench.d.ts +1 -1
- package/components/svg/BlobbyIconWrench.d.ts.map +1 -1
- package/components/svg/BlobbyIconWrench.js +9 -7
- package/components/svg/Bug.d.ts +1 -1
- package/components/svg/Bug.d.ts.map +1 -1
- package/components/svg/Bug.js +9 -7
- package/components/svg/Calendar.d.ts +1 -1
- package/components/svg/Calendar.d.ts.map +1 -1
- package/components/svg/Calendar.js +9 -7
- package/components/svg/CaretDown.d.ts +1 -1
- package/components/svg/CaretDown.d.ts.map +1 -1
- package/components/svg/CaretDown.js +9 -7
- package/components/svg/CaretLeft.d.ts +1 -1
- package/components/svg/CaretLeft.d.ts.map +1 -1
- package/components/svg/CaretLeft.js +9 -7
- package/components/svg/CaretRight.d.ts +1 -1
- package/components/svg/CaretRight.d.ts.map +1 -1
- package/components/svg/CaretRight.js +9 -7
- package/components/svg/CaretUp.d.ts +1 -1
- package/components/svg/CaretUp.d.ts.map +1 -1
- package/components/svg/CaretUp.js +9 -7
- package/components/svg/ChevronDown.d.ts +1 -1
- package/components/svg/ChevronDown.d.ts.map +1 -1
- package/components/svg/ChevronDown.js +9 -7
- package/components/svg/ChevronUp.d.ts +1 -1
- package/components/svg/ChevronUp.d.ts.map +1 -1
- package/components/svg/ChevronUp.js +9 -7
- package/components/svg/Close.d.ts +1 -1
- package/components/svg/Close.d.ts.map +1 -1
- package/components/svg/Close.js +9 -7
- package/components/svg/Critical.d.ts +1 -1
- package/components/svg/Critical.d.ts.map +1 -1
- package/components/svg/Critical.js +9 -7
- package/components/svg/Edit.d.ts +1 -1
- package/components/svg/Edit.d.ts.map +1 -1
- package/components/svg/Edit.js +9 -7
- package/components/svg/Error.d.ts +1 -1
- package/components/svg/Error.d.ts.map +1 -1
- package/components/svg/Error.js +9 -7
- package/components/svg/Filter.d.ts +1 -1
- package/components/svg/Filter.d.ts.map +1 -1
- package/components/svg/Filter.js +9 -7
- package/components/svg/Folder.d.ts +1 -1
- package/components/svg/Folder.d.ts.map +1 -1
- package/components/svg/Folder.js +9 -7
- package/components/svg/Help.d.ts +1 -1
- package/components/svg/Help.d.ts.map +1 -1
- package/components/svg/Help.js +9 -7
- package/components/svg/Home.d.ts +1 -1
- package/components/svg/Home.d.ts.map +1 -1
- package/components/svg/Home.js +9 -7
- package/components/svg/IconAdd.d.ts +1 -1
- package/components/svg/IconAdd.d.ts.map +1 -1
- package/components/svg/IconAdd.js +9 -7
- package/components/svg/IconArrowRight.d.ts +1 -1
- package/components/svg/IconArrowRight.d.ts.map +1 -1
- package/components/svg/IconArrowRight.js +9 -7
- package/components/svg/IconBusinessNetwork.d.ts +1 -1
- package/components/svg/IconBusinessNetwork.d.ts.map +1 -1
- package/components/svg/IconBusinessNetwork.js +9 -7
- package/components/svg/IconCancel.d.ts +1 -1
- package/components/svg/IconCancel.d.ts.map +1 -1
- package/components/svg/IconCancel.js +9 -7
- package/components/svg/IconChargingBattery.d.ts +1 -1
- package/components/svg/IconChargingBattery.d.ts.map +1 -1
- package/components/svg/IconChargingBattery.js +9 -7
- package/components/svg/IconCheckmark.d.ts +1 -1
- package/components/svg/IconCheckmark.d.ts.map +1 -1
- package/components/svg/IconCheckmark.js +9 -7
- package/components/svg/IconCoinInHand.d.ts +1 -1
- package/components/svg/IconCoinInHand.d.ts.map +1 -1
- package/components/svg/IconCoinInHand.js +9 -7
- package/components/svg/IconColumns.d.ts +1 -1
- package/components/svg/IconColumns.d.ts.map +1 -1
- package/components/svg/IconColumns.js +9 -7
- package/components/svg/IconDashboard.d.ts +1 -1
- package/components/svg/IconDashboard.d.ts.map +1 -1
- package/components/svg/IconDashboard.js +9 -7
- package/components/svg/IconEdit.d.ts +1 -1
- package/components/svg/IconEdit.d.ts.map +1 -1
- package/components/svg/IconEdit.js +9 -7
- package/components/svg/IconExport.d.ts +1 -1
- package/components/svg/IconExport.d.ts.map +1 -1
- package/components/svg/IconExport.js +9 -7
- package/components/svg/IconFile.d.ts +1 -1
- package/components/svg/IconFile.d.ts.map +1 -1
- package/components/svg/IconFile.js +9 -7
- package/components/svg/IconFolder.d.ts +1 -1
- package/components/svg/IconFolder.d.ts.map +1 -1
- package/components/svg/IconFolder.js +9 -7
- package/components/svg/IconFullScreen.d.ts +1 -1
- package/components/svg/IconFullScreen.d.ts.map +1 -1
- package/components/svg/IconFullScreen.js +9 -7
- package/components/svg/IconFutures.d.ts +1 -1
- package/components/svg/IconFutures.d.ts.map +1 -1
- package/components/svg/IconFutures.js +9 -7
- package/components/svg/IconGraphReport.d.ts +1 -1
- package/components/svg/IconGraphReport.d.ts.map +1 -1
- package/components/svg/IconGraphReport.js +9 -7
- package/components/svg/IconHeartMonitor.d.ts +1 -1
- package/components/svg/IconHeartMonitor.d.ts.map +1 -1
- package/components/svg/IconHeartMonitor.js +9 -7
- package/components/svg/IconHistory.d.ts +1 -1
- package/components/svg/IconHistory.d.ts.map +1 -1
- package/components/svg/IconHistory.js +9 -7
- package/components/svg/IconImport.d.ts +1 -1
- package/components/svg/IconImport.d.ts.map +1 -1
- package/components/svg/IconImport.js +9 -7
- package/components/svg/IconLayers.d.ts +1 -1
- package/components/svg/IconLayers.d.ts.map +1 -1
- package/components/svg/IconLayers.js +9 -7
- package/components/svg/IconList.d.ts +1 -1
- package/components/svg/IconList.d.ts.map +1 -1
- package/components/svg/IconList.js +9 -7
- package/components/svg/IconLocations.d.ts +1 -1
- package/components/svg/IconLocations.d.ts.map +1 -1
- package/components/svg/IconLocations.js +9 -7
- package/components/svg/IconMail.d.ts +1 -1
- package/components/svg/IconMail.d.ts.map +1 -1
- package/components/svg/IconMail.js +9 -7
- package/components/svg/IconManager.d.ts +1 -1
- package/components/svg/IconManager.d.ts.map +1 -1
- package/components/svg/IconManager.js +9 -7
- package/components/svg/IconMarker.d.ts +1 -1
- package/components/svg/IconMarker.d.ts.map +1 -1
- package/components/svg/IconMarker.js +9 -7
- package/components/svg/IconMenu.d.ts +1 -1
- package/components/svg/IconMenu.d.ts.map +1 -1
- package/components/svg/IconMenu.js +9 -7
- package/components/svg/IconMenuHorizontal.d.ts +1 -1
- package/components/svg/IconMenuHorizontal.d.ts.map +1 -1
- package/components/svg/IconMenuHorizontal.js +9 -7
- package/components/svg/IconModule.d.ts +1 -1
- package/components/svg/IconModule.d.ts.map +1 -1
- package/components/svg/IconModule.js +9 -7
- package/components/svg/IconMyLocation.d.ts +1 -1
- package/components/svg/IconMyLocation.d.ts.map +1 -1
- package/components/svg/IconMyLocation.js +9 -7
- package/components/svg/IconNursery.d.ts +1 -1
- package/components/svg/IconNursery.d.ts.map +1 -1
- package/components/svg/IconNursery.js +9 -7
- package/components/svg/IconOrg.d.ts +1 -1
- package/components/svg/IconOrg.d.ts.map +1 -1
- package/components/svg/IconOrg.js +9 -7
- package/components/svg/IconParchment.d.ts +1 -1
- package/components/svg/IconParchment.d.ts.map +1 -1
- package/components/svg/IconParchment.js +9 -7
- package/components/svg/IconRedo.d.ts +1 -1
- package/components/svg/IconRedo.d.ts.map +1 -1
- package/components/svg/IconRedo.js +9 -7
- package/components/svg/IconRestorationSite.d.ts +1 -1
- package/components/svg/IconRestorationSite.d.ts.map +1 -1
- package/components/svg/IconRestorationSite.js +9 -7
- package/components/svg/IconSeedBank.d.ts +1 -1
- package/components/svg/IconSeedBank.d.ts.map +1 -1
- package/components/svg/IconSeedBank.js +9 -7
- package/components/svg/IconSeedling.d.ts +1 -1
- package/components/svg/IconSeedling.d.ts.map +1 -1
- package/components/svg/IconSeedling.js +9 -7
- package/components/svg/IconSlice.d.ts +1 -1
- package/components/svg/IconSlice.d.ts.map +1 -1
- package/components/svg/IconSlice.js +9 -7
- package/components/svg/IconSubmit.d.ts +1 -1
- package/components/svg/IconSubmit.d.ts.map +1 -1
- package/components/svg/IconSubmit.js +9 -7
- package/components/svg/IconSubtract.d.ts +1 -1
- package/components/svg/IconSubtract.d.ts.map +1 -1
- package/components/svg/IconSubtract.js +9 -7
- package/components/svg/IconSynced.d.ts +1 -1
- package/components/svg/IconSynced.d.ts.map +1 -1
- package/components/svg/IconSynced.js +9 -7
- package/components/svg/IconTrashCan.d.ts +1 -1
- package/components/svg/IconTrashCan.d.ts.map +1 -1
- package/components/svg/IconTrashCan.js +9 -7
- package/components/svg/IconTreasureMap.d.ts +1 -1
- package/components/svg/IconTreasureMap.d.ts.map +1 -1
- package/components/svg/IconTreasureMap.js +9 -7
- package/components/svg/IconUndo.d.ts +1 -1
- package/components/svg/IconUndo.d.ts.map +1 -1
- package/components/svg/IconUndo.js +9 -7
- package/components/svg/IconWifi.d.ts +1 -1
- package/components/svg/IconWifi.d.ts.map +1 -1
- package/components/svg/IconWifi.js +9 -7
- package/components/svg/Info.d.ts +1 -1
- package/components/svg/Info.d.ts.map +1 -1
- package/components/svg/Info.js +9 -7
- package/components/svg/Key.d.ts +1 -1
- package/components/svg/Key.d.ts.map +1 -1
- package/components/svg/Key.js +9 -7
- package/components/svg/Leaf.d.ts +1 -1
- package/components/svg/Leaf.d.ts.map +1 -1
- package/components/svg/Leaf.js +9 -7
- package/components/svg/Lock.d.ts +1 -1
- package/components/svg/Lock.d.ts.map +1 -1
- package/components/svg/Lock.js +9 -7
- package/components/svg/Logo.d.ts +1 -1
- package/components/svg/Logo.d.ts.map +1 -1
- package/components/svg/Logo.js +9 -7
- package/components/svg/MenuVertical.d.ts +1 -1
- package/components/svg/MenuVertical.d.ts.map +1 -1
- package/components/svg/MenuVertical.js +9 -7
- package/components/svg/Notification.d.ts +1 -1
- package/components/svg/Notification.d.ts.map +1 -1
- package/components/svg/Notification.js +9 -7
- package/components/svg/Person.d.ts +1 -1
- package/components/svg/Person.d.ts.map +1 -1
- package/components/svg/Person.js +9 -7
- package/components/svg/Plus.d.ts +1 -1
- package/components/svg/Plus.d.ts.map +1 -1
- package/components/svg/Plus.js +9 -7
- package/components/svg/RestorationSite.d.ts +1 -1
- package/components/svg/RestorationSite.d.ts.map +1 -1
- package/components/svg/RestorationSite.js +9 -7
- package/components/svg/Search.d.ts +1 -1
- package/components/svg/Search.d.ts.map +1 -1
- package/components/svg/Search.js +9 -7
- package/components/svg/Seeds.d.ts +1 -1
- package/components/svg/Seeds.d.ts.map +1 -1
- package/components/svg/Seeds.js +9 -7
- package/components/svg/Site.d.ts +1 -1
- package/components/svg/Site.d.ts.map +1 -1
- package/components/svg/Site.js +9 -7
- package/components/svg/Sparkles.d.ts +1 -1
- package/components/svg/Sparkles.d.ts.map +1 -1
- package/components/svg/Sparkles.js +9 -7
- package/components/svg/Species.d.ts +1 -1
- package/components/svg/Species.d.ts.map +1 -1
- package/components/svg/Species.js +9 -7
- package/components/svg/Species2.d.ts +1 -1
- package/components/svg/Species2.d.ts.map +1 -1
- package/components/svg/Species2.js +9 -7
- package/components/svg/Spinner.d.ts +1 -1
- package/components/svg/Spinner.d.ts.map +1 -1
- package/components/svg/Spinner.js +9 -7
- package/components/svg/Success.d.ts +1 -1
- package/components/svg/Success.d.ts.map +1 -1
- package/components/svg/Success.js +9 -7
- package/components/svg/Touchscreen.d.ts +1 -1
- package/components/svg/Touchscreen.d.ts.map +1 -1
- package/components/svg/Touchscreen.js +9 -7
- package/components/svg/UploadCloud.d.ts +1 -1
- package/components/svg/UploadCloud.d.ts.map +1 -1
- package/components/svg/UploadCloud.js +9 -7
- package/components/svg/Warning.d.ts +1 -1
- package/components/svg/Warning.d.ts.map +1 -1
- package/components/svg/Warning.js +9 -7
- package/components/svg/index.js +101 -101
- package/components/table/EnhancedTableToolbar.d.ts +0 -1
- package/components/table/EnhancedTableToolbar.d.ts.map +1 -1
- package/components/table/EnhancedTableToolbar.js +45 -45
- package/components/table/EnhancedTableToolbarV2.d.ts +1 -2
- package/components/table/EnhancedTableToolbarV2.d.ts.map +1 -1
- package/components/table/EnhancedTableToolbarV2.js +22 -21
- package/components/table/TableCellRenderer.js +60 -70
- package/components/table/TableHeader.js +33 -27
- package/components/table/TableHeaderItem.js +33 -30
- package/components/table/index.d.ts.map +1 -1
- package/components/table/index.js +189 -145
- package/components/table/sort.js +16 -10
- 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 +1 -2
- 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 +1 -1
- 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 +3 -3
- 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 +2 -3
- 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 +3 -2
- package/theme.js +4 -2
- package/utils/date.js +18 -15
- package/utils/date.test.js +14 -14
- package/utils/date.v1.js +8 -5
- package/utils/index.js +6 -6
- package/utils/preventDefaultEvent.js +5 -2
- package/utils/text.js +15 -10
- package/utils/text.test.js +10 -10
- package/utils/useDeviceInfo.js +18 -18
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA8C,YAAY,EAAE,MAAM,eAAe,CAAC;AAIzF,OAAO,EAAE,YAAY,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,uBAAuB,CAAC;AAC/B,OAAO,eAAe,CAAC;AAEvB,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAExC,MAAM,WAAW,KAAK;IACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACrC,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACxD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,EAAE,EACF,KAAK,EACL,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,aAAa,EACb,OAAO,EACP,WAAW,EACX,SAAS,EACT,YAAY,EACZ,QAAQ,GACT,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAsFrB"}
|
@@ -12,23 +12,21 @@ var _IconTooltip = _interopRequireDefault(require("../IconTooltip"));
|
|
12
12
|
require("../Select/styles.scss");
|
13
13
|
require("./styles.scss");
|
14
14
|
function Autocomplete(_ref) {
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
} = _ref;
|
31
|
-
const onChangeHandler = (event, value) => {
|
15
|
+
var id = _ref.id,
|
16
|
+
label = _ref.label,
|
17
|
+
options = _ref.options,
|
18
|
+
onChange = _ref.onChange,
|
19
|
+
selected = _ref.selected,
|
20
|
+
freeSolo = _ref.freeSolo,
|
21
|
+
disabled = _ref.disabled,
|
22
|
+
className = _ref.className,
|
23
|
+
hideClearIcon = _ref.hideClearIcon,
|
24
|
+
isEqual = _ref.isEqual,
|
25
|
+
placeholder = _ref.placeholder,
|
26
|
+
errorText = _ref.errorText,
|
27
|
+
tooltipTitle = _ref.tooltipTitle,
|
28
|
+
required = _ref.required;
|
29
|
+
var onChangeHandler = function onChangeHandler(event, value) {
|
32
30
|
if (event) {
|
33
31
|
if (value) {
|
34
32
|
onChange(value);
|
@@ -37,29 +35,31 @@ function Autocomplete(_ref) {
|
|
37
35
|
}
|
38
36
|
}
|
39
37
|
};
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
38
|
+
var renderInput = function renderInput(params) {
|
39
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
40
|
+
className: "auto-complete ".concat(className)
|
41
|
+
}, label && /*#__PURE__*/_react.default.createElement("label", {
|
42
|
+
htmlFor: id,
|
43
|
+
className: "textfield-label"
|
44
|
+
}, label, " ", required ? '*' : '', tooltipTitle && /*#__PURE__*/_react.default.createElement(_IconTooltip.default, {
|
45
|
+
placement: "top",
|
46
|
+
title: tooltipTitle
|
47
|
+
})), /*#__PURE__*/_react.default.createElement(_material.TextField, Object.assign({}, params, {
|
48
|
+
variant: "outlined",
|
49
|
+
size: "small",
|
50
|
+
placeholder: placeholder,
|
51
|
+
className: errorText ? 'auto-complete--error' : ''
|
52
|
+
})), errorText && /*#__PURE__*/_react.default.createElement("div", {
|
53
|
+
className: "textfield-label-container"
|
54
|
+
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
55
|
+
name: "error",
|
56
|
+
className: "textfield-error-text--icon"
|
57
|
+
}), /*#__PURE__*/_react.default.createElement("label", {
|
58
|
+
htmlFor: id,
|
59
|
+
className: "textfield-error-text"
|
60
|
+
}, errorText)));
|
61
|
+
};
|
62
|
+
var optionalArgs = {};
|
63
63
|
if (hideClearIcon) {
|
64
64
|
optionalArgs.clearIcon = null;
|
65
65
|
}
|
@@ -70,7 +70,7 @@ function Autocomplete(_ref) {
|
|
70
70
|
disabled: disabled,
|
71
71
|
id: id,
|
72
72
|
options: options,
|
73
|
-
getOptionLabel: option
|
73
|
+
getOptionLabel: function getOptionLabel(option) {
|
74
74
|
if (typeof option === 'object') {
|
75
75
|
var _option$label;
|
76
76
|
return (_option$label = option.label) !== null && _option$label !== void 0 ? _option$label : '';
|
@@ -78,7 +78,9 @@ function Autocomplete(_ref) {
|
|
78
78
|
return option !== null && option !== void 0 ? option : '';
|
79
79
|
},
|
80
80
|
onChange: onChangeHandler,
|
81
|
-
onInputChange: (event, value)
|
81
|
+
onInputChange: function onInputChange(event, value) {
|
82
|
+
return freeSolo && onChangeHandler(event, value);
|
83
|
+
},
|
82
84
|
value: selected,
|
83
85
|
freeSolo: freeSolo,
|
84
86
|
forcePopupIcon: true,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/index.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/index.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,UAAU;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,QAAA,MAAM,KAAK,UAAW,UAAU,KAAG,WAqBlC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
@@ -7,14 +7,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
7
7
|
exports.default = void 0;
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
9
9
|
var _material = require("@mui/material");
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
10
|
+
var Badge = function Badge(props) {
|
11
|
+
var theme = (0, _material.useTheme)();
|
12
|
+
var backgroundColor = props.backgroundColor || theme.palette.TwClrBgSecondary;
|
13
|
+
var borderColor = props.borderColor || theme.palette.TwClrBrdrSecondary;
|
14
|
+
var labelColor = props.labelColor || borderColor;
|
15
15
|
return /*#__PURE__*/_react.default.createElement(_material.Box, {
|
16
16
|
sx: {
|
17
|
-
backgroundColor,
|
17
|
+
backgroundColor: backgroundColor,
|
18
18
|
border: "1px solid ".concat(borderColor),
|
19
19
|
borderRadius: theme.spacing(1),
|
20
20
|
padding: theme.spacing(0.5, 1),
|
@@ -26,4 +26,5 @@ const Badge = props => {
|
|
26
26
|
fontWeight: 500
|
27
27
|
}, props.label));
|
28
28
|
};
|
29
|
-
var _default =
|
29
|
+
var _default = Badge;
|
30
|
+
exports.default = _default;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/BusySpinner/index.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/BusySpinner/index.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CAkC9F"}
|
@@ -9,11 +9,9 @@ var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _material = require("@mui/material");
|
10
10
|
var _hexRgb = _interopRequireDefault(require("hex-rgb"));
|
11
11
|
function BusySpinner(_ref) {
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
} = _ref;
|
16
|
-
const theme = (0, _material.useTheme)();
|
12
|
+
var withSkrim = _ref.withSkrim,
|
13
|
+
noBackground = _ref.noBackground;
|
14
|
+
var theme = (0, _material.useTheme)();
|
17
15
|
return /*#__PURE__*/_react.default.createElement(_material.Box, {
|
18
16
|
sx: {
|
19
17
|
position: 'fixed',
|
@@ -9,28 +9,31 @@ var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _Icon = _interopRequireDefault(require("../Icon/Icon"));
|
10
10
|
require("./styles.scss");
|
11
11
|
var _styles2 = require("@mui/styles");
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
12
|
+
var useStyles = (0, _styles2.makeStyles)(function () {
|
13
|
+
return {
|
14
|
+
svgIconFill: {
|
15
|
+
'& path': {
|
16
|
+
fill: 'currentColor'
|
17
|
+
}
|
16
18
|
}
|
17
|
-
}
|
18
|
-
})
|
19
|
+
};
|
20
|
+
});
|
19
21
|
function Button(props) {
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
type = 'productive',
|
24
|
-
priority =
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
22
|
+
var onClick = props.onClick,
|
23
|
+
label = props.label,
|
24
|
+
_props$type = props.type,
|
25
|
+
type = _props$type === void 0 ? 'productive' : _props$type,
|
26
|
+
_props$priority = props.priority,
|
27
|
+
priority = _props$priority === void 0 ? 'primary' : _props$priority,
|
28
|
+
_props$size = props.size,
|
29
|
+
size = _props$size === void 0 ? 'small' : _props$size,
|
30
|
+
disabled = props.disabled,
|
31
|
+
icon = props.icon,
|
32
|
+
rightIcon = props.rightIcon,
|
33
|
+
processing = props.processing,
|
34
|
+
id = props.id,
|
35
|
+
className = props.className;
|
36
|
+
var classes = useStyles();
|
34
37
|
return /*#__PURE__*/_react.default.createElement("button", {
|
35
38
|
id: id,
|
36
39
|
onClick: onClick,
|
@@ -4,8 +4,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
4
4
|
var _react = require("@testing-library/react");
|
5
5
|
var _react2 = _interopRequireDefault(require("react"));
|
6
6
|
var _Button = _interopRequireDefault(require("./Button"));
|
7
|
-
test('calls onClick prop when clicked', ()
|
8
|
-
|
7
|
+
test('calls onClick prop when clicked', function () {
|
8
|
+
var handleClick = jest.fn();
|
9
9
|
(0, _react.render)( /*#__PURE__*/_react2.default.createElement(_Button.default, {
|
10
10
|
onClick: handleClick,
|
11
11
|
label: "Click me"
|
@@ -13,8 +13,8 @@ test('calls onClick prop when clicked', () => {
|
|
13
13
|
_react.fireEvent.click(_react.screen.getByText(/click me/i));
|
14
14
|
expect(handleClick).toHaveBeenCalledTimes(1);
|
15
15
|
});
|
16
|
-
test('should not call onClick prop when button is disabled', ()
|
17
|
-
|
16
|
+
test('should not call onClick prop when button is disabled', function () {
|
17
|
+
var handleClick = jest.fn();
|
18
18
|
(0, _react.render)( /*#__PURE__*/_react2.default.createElement(_Button.default, {
|
19
19
|
onClick: handleClick,
|
20
20
|
label: "Click me",
|
package/components/Checkbox.js
CHANGED
@@ -8,34 +8,36 @@ exports.CheckboxStyle = void 0;
|
|
8
8
|
exports.default = Checkbox;
|
9
9
|
var _material = require("@mui/material");
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
}
|
11
|
+
var CheckboxStyle = function CheckboxStyle(theme) {
|
12
|
+
return {
|
13
|
+
padding: theme.spacing(0, 1, 0, 0),
|
14
|
+
'& .MuiSvgIcon-root': {
|
15
|
+
fill: theme.palette.TwClrBrdrSecondary
|
16
|
+
},
|
17
|
+
'&:hover > .MuiSvgIcon-root': {
|
18
|
+
fill: theme.palette.TwClrBrdrHover
|
19
|
+
},
|
20
|
+
'&.Mui-checked > .MuiSvgIcon-root': {
|
21
|
+
fill: theme.palette.TwClrBgSelected,
|
22
|
+
color: theme.palette.TwClrBgSelected
|
23
|
+
},
|
24
|
+
'&.MuiCheckbox-indeterminate > .MuiSvgIcon-root': {
|
25
|
+
fill: theme.palette.TwClrBgSelected,
|
26
|
+
color: theme.palette.TwClrBgSelected
|
27
|
+
},
|
28
|
+
'&:focus > .MuiSvgIcon-root': {
|
29
|
+
border: "2px solid ".concat(theme.palette.TwClrBgSelected)
|
30
|
+
},
|
31
|
+
'&.Mui-disabled': {
|
32
|
+
opacity: 0.5
|
33
|
+
}
|
34
|
+
};
|
35
|
+
};
|
34
36
|
exports.CheckboxStyle = CheckboxStyle;
|
35
37
|
function Checkbox(props) {
|
36
38
|
var _props$value;
|
37
|
-
|
38
|
-
|
39
|
+
var theme = (0, _material.useTheme)();
|
40
|
+
var onChange = function onChange(event, checked) {
|
39
41
|
props.onChange(checked);
|
40
42
|
};
|
41
43
|
return /*#__PURE__*/_react.default.createElement(_material.FormControlLabel, {
|
@@ -1,11 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
4
3
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
6
6
|
value: true
|
7
7
|
});
|
8
8
|
exports.default = Confirm;
|
9
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
9
10
|
var _react = _interopRequireWildcard(require("react"));
|
10
11
|
var _material = require("@mui/material");
|
11
12
|
var _DialogBox = _interopRequireDefault(require("../DialogBox/DialogBox"));
|
@@ -17,26 +18,24 @@ var _Button = _interopRequireDefault(require("../Button/Button"));
|
|
17
18
|
*/
|
18
19
|
|
19
20
|
function Confirm(_ref) {
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
const middleButtons = (0, _react.useMemo)(() => {
|
39
|
-
const buttons = [/*#__PURE__*/_react.default.createElement(_Button.default, {
|
21
|
+
var confirmButtonDisabled = _ref.confirmButtonDisabled,
|
22
|
+
confirmButtonIcon = _ref.confirmButtonIcon,
|
23
|
+
confirmButtonId = _ref.confirmButtonId,
|
24
|
+
confirmButtonPriority = _ref.confirmButtonPriority,
|
25
|
+
confirmButtonText = _ref.confirmButtonText,
|
26
|
+
confirmButtonType = _ref.confirmButtonType,
|
27
|
+
closeButtonId = _ref.closeButtonId,
|
28
|
+
closeButtonText = _ref.closeButtonText,
|
29
|
+
message = _ref.message,
|
30
|
+
onClose = _ref.onClose,
|
31
|
+
onConfirm = _ref.onConfirm,
|
32
|
+
open = _ref.open,
|
33
|
+
size = _ref.size,
|
34
|
+
textStyle = _ref.textStyle,
|
35
|
+
title = _ref.title;
|
36
|
+
var theme = (0, _material.useTheme)();
|
37
|
+
var middleButtons = (0, _react.useMemo)(function () {
|
38
|
+
var buttons = [/*#__PURE__*/_react.default.createElement(_Button.default, {
|
40
39
|
disabled: confirmButtonDisabled,
|
41
40
|
icon: confirmButtonIcon,
|
42
41
|
id: confirmButtonId || 'confirm-submit',
|
@@ -58,8 +57,8 @@ function Confirm(_ref) {
|
|
58
57
|
}
|
59
58
|
return buttons;
|
60
59
|
}, [confirmButtonDisabled, confirmButtonIcon, confirmButtonId, confirmButtonPriority, confirmButtonText, confirmButtonType, closeButtonId, closeButtonText, onClose, onConfirm]);
|
61
|
-
|
62
|
-
|
60
|
+
var content = (0, _react.useMemo)(function () {
|
61
|
+
var text = function text(str, key) {
|
63
62
|
return /*#__PURE__*/_react.default.createElement(_material.Typography, {
|
64
63
|
color: theme.palette.TwClrTxt,
|
65
64
|
fontSize: "16px",
|
@@ -67,19 +66,20 @@ function Confirm(_ref) {
|
|
67
66
|
key: key,
|
68
67
|
lineHeight: "24px",
|
69
68
|
textAlign: "center",
|
70
|
-
sx: {
|
69
|
+
sx: (0, _objectSpread2.default)({
|
71
70
|
marginBottom: theme.spacing(1),
|
72
71
|
'&:last-child': {
|
73
72
|
marginBottom: 0
|
74
|
-
}
|
75
|
-
|
76
|
-
}
|
73
|
+
}
|
74
|
+
}, textStyle || {})
|
77
75
|
}, str);
|
78
76
|
};
|
79
77
|
if (typeof message === 'string') {
|
80
78
|
return text(message);
|
81
79
|
} else if (Array.isArray(message)) {
|
82
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, message.map((str, i)
|
80
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, message.map(function (str, i) {
|
81
|
+
return text(str, "".concat(str, "_").concat(i));
|
82
|
+
}));
|
83
83
|
} else {
|
84
84
|
return message;
|
85
85
|
}
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
7
7
|
});
|
8
8
|
exports.default = DatePicker;
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
9
10
|
var _momentTimezone = _interopRequireDefault(require("moment-timezone"));
|
10
11
|
require("moment/min/locales");
|
11
12
|
var _react = _interopRequireWildcard(require("react"));
|
@@ -16,29 +17,34 @@ var _Icon = _interopRequireDefault(require("../Icon/Icon"));
|
|
16
17
|
require("./styles.scss");
|
17
18
|
function DatePicker(props) {
|
18
19
|
var _props$locale, _props$defaultTimeZon;
|
19
|
-
|
20
|
-
|
21
|
-
|
20
|
+
var _useState = (0, _react.useState)(props.value || null),
|
21
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
22
|
+
temporalValue = _useState2[0],
|
23
|
+
setTemporalValue = _useState2[1];
|
24
|
+
var locale = (_props$locale = props.locale) !== null && _props$locale !== void 0 ? _props$locale : 'en';
|
25
|
+
_react.default.useEffect(function () {
|
22
26
|
_momentTimezone.default.locale([locale]);
|
23
27
|
}, [locale]);
|
24
|
-
_react.default.useEffect(()
|
28
|
+
_react.default.useEffect(function () {
|
25
29
|
if (props.value !== temporalValue && props.value !== null) {
|
26
30
|
setTemporalValue(props.value || null);
|
27
31
|
}
|
28
32
|
}, [props.value]);
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
33
|
+
var renderInput = function renderInput(params) {
|
34
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_material.TextField, Object.assign({}, params, {
|
35
|
+
id: props.id,
|
36
|
+
autoFocus: props.autoFocus,
|
37
|
+
onKeyPress: props.onKeyPress
|
38
|
+
})), props.errorText && /*#__PURE__*/_react.default.createElement("div", {
|
39
|
+
className: "textfield-error-text-container"
|
40
|
+
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
41
|
+
name: "error",
|
42
|
+
className: "textfield-error-text--icon"
|
43
|
+
}), /*#__PURE__*/_react.default.createElement("label", {
|
44
|
+
htmlFor: props.id,
|
45
|
+
className: "textfield-error-text"
|
46
|
+
}, props.errorText)));
|
47
|
+
};
|
42
48
|
|
43
49
|
// set timezone, defaulting to 'UTC'
|
44
50
|
_momentTimezone.default.tz.setDefault((_props$defaultTimeZon = props.defaultTimeZone) !== null && _props$defaultTimeZon !== void 0 ? _props$defaultTimeZon : 'UTC');
|
@@ -61,7 +67,7 @@ function DatePicker(props) {
|
|
61
67
|
maxDate: props.maxDate ? (0, _momentTimezone.default)(props.maxDate) : undefined,
|
62
68
|
inputFormat: "YYYY-MM-DD",
|
63
69
|
value: temporalValue,
|
64
|
-
onChange: newValue
|
70
|
+
onChange: function onChange(newValue) {
|
65
71
|
setTemporalValue(newValue);
|
66
72
|
props.onChange(newValue !== null && newValue !== void 0 && newValue.isValid() ? newValue === null || newValue === void 0 ? void 0 : newValue.toDate() : null);
|
67
73
|
},
|
@@ -5,29 +5,27 @@ 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"));
|
8
9
|
var _react = _interopRequireDefault(require("react"));
|
9
10
|
require("./styles.scss");
|
10
11
|
var _Icon = _interopRequireDefault(require("../Icon/Icon"));
|
11
12
|
var _material = require("@mui/material");
|
12
13
|
var _utils = require("../../utils");
|
13
14
|
function DialogBox(props) {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
const {
|
29
|
-
isMobile
|
30
|
-
} = (0, _utils.useDeviceInfo)();
|
15
|
+
var title = props.title,
|
16
|
+
size = props.size,
|
17
|
+
message = props.message,
|
18
|
+
children = props.children,
|
19
|
+
leftButton = props.leftButton,
|
20
|
+
rightButtons = props.rightButtons,
|
21
|
+
middleButtons = props.middleButtons,
|
22
|
+
onClose = props.onClose,
|
23
|
+
open = props.open,
|
24
|
+
scrolled = props.scrolled,
|
25
|
+
skrim = props.skrim;
|
26
|
+
var hasFooter = leftButton || rightButtons || middleButtons;
|
27
|
+
var _useDeviceInfo = (0, _utils.useDeviceInfo)(),
|
28
|
+
isMobile = _useDeviceInfo.isMobile;
|
31
29
|
return open ? /*#__PURE__*/_react.default.createElement("div", {
|
32
30
|
className: "dialog-box-container".concat(skrim ? '--skrim' : '', " ").concat(open ? 'dialog-box--opened' : 'dialog-box--closed', " ").concat(isMobile ? 'mobile' : '')
|
33
31
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
@@ -58,27 +56,23 @@ function DialogBox(props) {
|
|
58
56
|
className: "left-button"
|
59
57
|
}, leftButton), /*#__PURE__*/_react.default.createElement("div", {
|
60
58
|
className: "right-buttons"
|
61
|
-
}, rightButtons === null || rightButtons === void 0 ? void 0 : rightButtons.map((rb, index)
|
62
|
-
|
63
|
-
...rb,
|
59
|
+
}, rightButtons === null || rightButtons === void 0 ? void 0 : rightButtons.map(function (rb, index) {
|
60
|
+
var rbWithKey = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, rb), {}, {
|
64
61
|
key: "rb-".concat(index),
|
65
|
-
props: {
|
66
|
-
...rb.props,
|
62
|
+
props: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, rb.props), {}, {
|
67
63
|
size: rb.props.size || 'medium'
|
68
|
-
}
|
69
|
-
};
|
64
|
+
})
|
65
|
+
});
|
70
66
|
return rbWithKey;
|
71
67
|
}))), middleButtons && /*#__PURE__*/_react.default.createElement("div", {
|
72
68
|
className: "dialog-box--actions-container"
|
73
|
-
}, middleButtons === null || middleButtons === void 0 ? void 0 : middleButtons.map((mb, index)
|
74
|
-
|
75
|
-
...mb,
|
69
|
+
}, middleButtons === null || middleButtons === void 0 ? void 0 : middleButtons.map(function (mb, index) {
|
70
|
+
var mbWithKey = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, mb), {}, {
|
76
71
|
key: "mb-".concat(index),
|
77
|
-
props: {
|
78
|
-
...mb.props,
|
72
|
+
props: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, mb.props), {}, {
|
79
73
|
size: mb.props.size || 'medium'
|
80
|
-
}
|
81
|
-
};
|
74
|
+
})
|
75
|
+
});
|
82
76
|
return mbWithKey;
|
83
77
|
}))))) : null;
|
84
78
|
}
|
package/components/Divisor.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Divisor.d.ts","sourceRoot":"","sources":["../../src/components/Divisor.tsx"],"names":[],"mappings":"
|
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,9 +8,8 @@ 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 = 3
|
13
|
-
} = _ref;
|
11
|
+
var _ref$mt = _ref.mt,
|
12
|
+
mt = _ref$mt === void 0 ? 3 : _ref$mt;
|
14
13
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_material.Box, {
|
15
14
|
mt: mt
|
16
15
|
}), /*#__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":"
|
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;AAMvC,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,GAAG,GAAG,CAAC,OAAO,CAkBlG;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IAGrC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IAGpB,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"}
|