@terraware/web-components 2.14.1-rc.1001 → 2.14.1-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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.d.ts +1 -2
- package/components/Button/Button.d.ts.map +1 -1
- package/components/Button/Button.js +24 -23
- 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.d.ts +30 -12
- package/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/components/DatePicker/DatePicker.js +71 -39
- 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 +1 -2
- package/components/Icon/Icon.d.ts.map +1 -1
- package/components/Icon/Icon.js +19 -16
- 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 +81 -65
- 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 +41 -33
- 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.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +50 -50
- package/license-report.html +1 -1
- package/package.json +4 -8
- 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 +5 -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 +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 +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.d.ts +21 -2
- package/utils/date.d.ts.map +1 -1
- package/utils/date.js +50 -26
- package/utils/date.test.js +51 -14
- package/utils/index.d.ts +2 -2
- package/utils/index.d.ts.map +1 -1
- package/utils/index.js +13 -7
- 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
- package/utils/date.v1.d.ts +0 -5
- package/utils/date.v1.d.ts.map +0 -1
- package/utils/date.v1.js +0 -17
@@ -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',
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import React
|
1
|
+
import React from 'react';
|
2
2
|
import { IconName } from '../Icon/icons';
|
3
3
|
import { Size } from '../Size';
|
4
4
|
import './styles.scss';
|
@@ -16,7 +16,6 @@ export interface Props {
|
|
16
16
|
processing?: boolean;
|
17
17
|
id?: string;
|
18
18
|
className?: string;
|
19
|
-
style?: CSSProperties;
|
20
19
|
}
|
21
20
|
export default function Button(props: Props): JSX.Element;
|
22
21
|
//# sourceMappingURL=Button.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,eAAe,CAAC;AAYvB,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,CAAC;AAC/D,MAAM,MAAM,UAAU,GAAG,YAAY,GAAG,SAAS,GAAG,aAAa,CAAC;AAElE,MAAM,WAAW,KAAK;IACpB,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAgCxD"}
|
@@ -9,35 +9,36 @@ 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
|
-
|
34
|
-
|
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();
|
35
37
|
return /*#__PURE__*/_react.default.createElement("button", {
|
36
38
|
id: id,
|
37
39
|
onClick: onClick,
|
38
40
|
className: "button ".concat(type, "-").concat(priority, " button--").concat(size, " ").concat(type, "-").concat(priority, "--").concat(size, " ").concat(icon && !processing ? 'button-with-icon' : '', " ").concat(rightIcon && !processing ? 'button-with-right-icon' : '', " ").concat(classes.svgIconFill, "\n ").concat(!label ? 'button-no-label' : '', " ").concat(className !== null && className !== void 0 ? className : ''),
|
39
|
-
disabled: disabled
|
40
|
-
style: style
|
41
|
+
disabled: disabled
|
41
42
|
}, processing && /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
42
43
|
name: "spinner",
|
43
44
|
size: size,
|
@@ -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
|
}
|
@@ -1,23 +1,41 @@
|
|
1
|
-
import 'moment/min/locales';
|
2
1
|
import React, { KeyboardEventHandler } from 'react';
|
2
|
+
import { DateTime } from 'luxon';
|
3
3
|
import './styles.scss';
|
4
|
+
import { DateType } from '../../utils/date';
|
5
|
+
/**
|
6
|
+
* TODO: remove support for JS Date in DatePickerDateType once
|
7
|
+
* clients have moved to only using DateTime objects in input props
|
8
|
+
* and callback arguments.
|
9
|
+
* export type DatePickerDateType = Exclude<DateType, Date> | null;
|
10
|
+
*/
|
11
|
+
export type DatePickerDateType = DateType | null;
|
4
12
|
export interface Props {
|
5
|
-
id: string;
|
6
|
-
autoFocus?: boolean;
|
7
|
-
label: React.ReactNode;
|
8
|
-
value?: string | null;
|
9
|
-
onChange: (value?: string | null) => void;
|
10
13
|
'aria-label': string;
|
11
|
-
|
12
|
-
|
13
|
-
maxDate?: any;
|
14
|
+
autoFocus?: boolean;
|
15
|
+
className?: string;
|
14
16
|
defaultTimeZone?: string;
|
15
|
-
|
17
|
+
disabled?: boolean;
|
16
18
|
errorText?: string;
|
17
19
|
helperText?: string;
|
18
|
-
|
19
|
-
|
20
|
+
id: string;
|
21
|
+
label: React.ReactNode;
|
22
|
+
locale?: string;
|
23
|
+
maxDate?: DatePickerDateType;
|
24
|
+
minDate?: DatePickerDateType;
|
25
|
+
/**
|
26
|
+
* @deprecated Use onDateChange and switch to
|
27
|
+
* handling luxon DateTime arguments.
|
28
|
+
*/
|
29
|
+
onChange: (value?: Date | null) => void;
|
30
|
+
/**
|
31
|
+
* TODO: remove deprecated onChange and
|
32
|
+
* make onDateChange required once all clients
|
33
|
+
* have migrated to using onDateChange.
|
34
|
+
*/
|
35
|
+
onDateChange?: (value?: DateTime) => void;
|
20
36
|
onError?: (reason: any, value: any) => void;
|
37
|
+
onKeyPress?: KeyboardEventHandler;
|
38
|
+
value?: DatePickerDateType;
|
21
39
|
}
|
22
40
|
export default function DatePicker(props: Props): JSX.Element;
|
23
41
|
//# sourceMappingURL=DatePicker.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/DatePicker.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAY,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAI9D,OAAO,EAAE,QAAQ,EAAY,MAAM,OAAO,CAAC;AAE3C,OAAO,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAe,MAAM,kBAAkB,CAAC;AAEzD;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,IAAI,CAAC;AAEjD,MAAM,WAAW,KAAK;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B;;;OAGG;IACH,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IACxC;;;;OAIG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,QAAQ,KAAK,IAAI,CAAC;IAC1C,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAC5C,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,KAAK,CAAC,EAAE,kBAAkB,CAAC;CAC5B;AAYD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CA0E5D"}
|