@terraware/web-components 2.14.1-rc.0 → 2.14.1-rc.1001
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Autocomplete/Autocomplete.d.ts +1 -0
- package/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/components/Autocomplete/Autocomplete.js +42 -44
- package/components/Badge/index.d.ts +1 -0
- package/components/Badge/index.d.ts.map +1 -1
- package/components/Badge/index.js +7 -8
- package/components/BusySpinner/index.d.ts +1 -0
- package/components/BusySpinner/index.d.ts.map +1 -1
- package/components/BusySpinner/index.js +5 -3
- package/components/Button/Button.d.ts +2 -1
- package/components/Button/Button.d.ts.map +1 -1
- package/components/Button/Button.js +23 -24
- package/components/Button/button.test.js +4 -4
- package/components/Checkbox.js +25 -27
- package/components/Confirm/index.js +28 -28
- package/components/DatePicker/DatePicker.d.ts +12 -30
- package/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/components/DatePicker/DatePicker.js +38 -70
- package/components/DialogBox/DialogBox.js +31 -25
- package/components/Divisor.d.ts +1 -0
- package/components/Divisor.d.ts.map +1 -1
- package/components/Divisor.js +3 -2
- package/components/Dropdown.d.ts +1 -0
- package/components/Dropdown.d.ts.map +1 -1
- package/components/Dropdown.js +39 -51
- package/components/ErrorBox/ErrorBox.d.ts +1 -0
- package/components/ErrorBox/ErrorBox.d.ts.map +1 -1
- package/components/ErrorBox/ErrorBox.js +11 -8
- package/components/FileChooser/index.d.ts +1 -0
- package/components/FileChooser/index.d.ts.map +1 -1
- package/components/FileChooser/index.js +58 -62
- package/components/FormBottomBar/index.d.ts +1 -0
- package/components/FormBottomBar/index.d.ts.map +1 -1
- package/components/FormBottomBar/index.js +55 -68
- package/components/Icon/Icon.d.ts +2 -1
- package/components/Icon/Icon.d.ts.map +1 -1
- package/components/Icon/Icon.js +16 -19
- package/components/Icon/icons/index.js +2 -3
- package/components/IconTooltip/index.d.ts +1 -0
- package/components/IconTooltip/index.d.ts.map +1 -1
- package/components/IconTooltip/index.js +32 -39
- package/components/Message/Message.d.ts +1 -0
- package/components/Message/Message.d.ts.map +1 -1
- package/components/Message/Message.js +21 -17
- package/components/MultiSelect/MultiSelect.test.js +16 -30
- package/components/MultiSelect/index.d.ts +1 -0
- package/components/MultiSelect/index.d.ts.map +1 -1
- package/components/MultiSelect/index.js +32 -42
- package/components/Navbar/NavFooter.js +3 -1
- package/components/Navbar/NavItem.js +19 -23
- package/components/Navbar/NavSection.d.ts +1 -0
- package/components/Navbar/NavSection.d.ts.map +1 -1
- package/components/Navbar/NavSection.js +4 -3
- package/components/Navbar/Navbar.js +26 -27
- package/components/Navbar/SubNavbar.js +3 -1
- package/components/Note.d.ts +1 -0
- package/components/Note.d.ts.map +1 -1
- package/components/Note.js +12 -12
- package/components/PageForm/index.js +18 -39
- package/components/PhotoChooser/index.d.ts +1 -0
- package/components/PhotoChooser/index.d.ts.map +1 -1
- package/components/PhotoChooser/index.js +57 -72
- package/components/Pill/index.d.ts +1 -0
- package/components/Pill/index.d.ts.map +1 -1
- package/components/Pill/index.js +12 -10
- package/components/PillList/index.d.ts +1 -0
- package/components/PillList/index.d.ts.map +1 -1
- package/components/PillList/index.js +15 -15
- package/components/PopoverMenu/Popover.js +25 -28
- package/components/PopoverMenu/index.js +26 -30
- package/components/PopoverMultiSelect/index.d.ts +1 -0
- package/components/PopoverMultiSelect/index.d.ts.map +1 -1
- package/components/PopoverMultiSelect/index.js +19 -26
- package/components/ProgressCircle/ProgressCircle.d.ts +1 -0
- package/components/ProgressCircle/ProgressCircle.d.ts.map +1 -1
- package/components/ProgressCircle/ProgressCircle.js +7 -6
- package/components/RadioButton.js +1 -1
- package/components/Select/Select.d.ts +1 -0
- package/components/Select/Select.d.ts.map +1 -1
- package/components/Select/Select.js +3 -9
- package/components/Select/SelectT.js +65 -81
- package/components/Separator/index.d.ts +1 -1
- package/components/Separator/index.d.ts.map +1 -1
- package/components/Separator/index.js +2 -3
- package/components/Slider/index.d.ts +1 -0
- package/components/Slider/index.d.ts.map +1 -1
- package/components/Slider/index.js +13 -11
- package/components/SummaryBox.d.ts +1 -0
- package/components/SummaryBox.d.ts.map +1 -1
- package/components/SummaryBox.js +45 -46
- package/components/Tabs/index.js +33 -41
- package/components/TextTruncated/index.js +52 -62
- package/components/Textfield/Textfield.d.ts +1 -0
- package/components/Textfield/Textfield.d.ts.map +1 -1
- package/components/Textfield/Textfield.js +38 -38
- package/components/Textfield/TruncatedTextArea.d.ts +1 -1
- package/components/Textfield/TruncatedTextArea.d.ts.map +1 -1
- package/components/Textfield/TruncatedTextArea.js +29 -42
- package/components/Tooltip/Tooltip.d.ts +1 -0
- package/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/components/Tooltip/Tooltip.js +24 -28
- package/components/ViewPhotosDialog/index.js +41 -65
- package/components/svg/BlobbyGrayIconImage.d.ts +1 -1
- package/components/svg/BlobbyGrayIconImage.d.ts.map +1 -1
- package/components/svg/BlobbyGrayIconImage.js +7 -9
- package/components/svg/BlobbyGrayIconImport.d.ts +1 -1
- package/components/svg/BlobbyGrayIconImport.d.ts.map +1 -1
- package/components/svg/BlobbyGrayIconImport.js +7 -9
- package/components/svg/BlobbyGrayIconUploadToTheCloud.d.ts +1 -1
- package/components/svg/BlobbyGrayIconUploadToTheCloud.d.ts.map +1 -1
- package/components/svg/BlobbyGrayIconUploadToTheCloud.js +7 -9
- package/components/svg/BlobbyIconCloudChecked.d.ts +1 -1
- package/components/svg/BlobbyIconCloudChecked.d.ts.map +1 -1
- package/components/svg/BlobbyIconCloudChecked.js +7 -9
- package/components/svg/BlobbyIconExportOrUploadPhoto.d.ts +1 -1
- package/components/svg/BlobbyIconExportOrUploadPhoto.d.ts.map +1 -1
- package/components/svg/BlobbyIconExportOrUploadPhoto.js +7 -9
- package/components/svg/BlobbyIconFolder.d.ts +1 -1
- package/components/svg/BlobbyIconFolder.d.ts.map +1 -1
- package/components/svg/BlobbyIconFolder.js +7 -9
- package/components/svg/BlobbyIconGraphReport.d.ts +1 -1
- package/components/svg/BlobbyIconGraphReport.d.ts.map +1 -1
- package/components/svg/BlobbyIconGraphReport.js +7 -9
- package/components/svg/BlobbyIconHappy.d.ts +1 -1
- package/components/svg/BlobbyIconHappy.d.ts.map +1 -1
- package/components/svg/BlobbyIconHappy.js +7 -9
- package/components/svg/BlobbyIconHeartMonitor.d.ts +1 -1
- package/components/svg/BlobbyIconHeartMonitor.d.ts.map +1 -1
- package/components/svg/BlobbyIconHeartMonitor.js +7 -9
- package/components/svg/BlobbyIconLeaf.d.ts +1 -1
- package/components/svg/BlobbyIconLeaf.d.ts.map +1 -1
- package/components/svg/BlobbyIconLeaf.js +7 -9
- package/components/svg/BlobbyIconLibrary.d.ts +1 -1
- package/components/svg/BlobbyIconLibrary.d.ts.map +1 -1
- package/components/svg/BlobbyIconLibrary.js +7 -9
- package/components/svg/BlobbyIconNursery.d.ts +1 -1
- package/components/svg/BlobbyIconNursery.d.ts.map +1 -1
- package/components/svg/BlobbyIconNursery.js +7 -9
- package/components/svg/BlobbyIconOrganization.d.ts +1 -1
- package/components/svg/BlobbyIconOrganization.d.ts.map +1 -1
- package/components/svg/BlobbyIconOrganization.js +7 -9
- package/components/svg/BlobbyIconParchment.d.ts +1 -1
- package/components/svg/BlobbyIconParchment.d.ts.map +1 -1
- package/components/svg/BlobbyIconParchment.js +7 -9
- package/components/svg/BlobbyIconPeople.d.ts +1 -1
- package/components/svg/BlobbyIconPeople.d.ts.map +1 -1
- package/components/svg/BlobbyIconPeople.js +7 -9
- package/components/svg/BlobbyIconSeedBank.d.ts +1 -1
- package/components/svg/BlobbyIconSeedBank.d.ts.map +1 -1
- package/components/svg/BlobbyIconSeedBank.js +7 -9
- package/components/svg/BlobbyIconSeedling.d.ts +1 -1
- package/components/svg/BlobbyIconSeedling.d.ts.map +1 -1
- package/components/svg/BlobbyIconSeedling.js +7 -9
- package/components/svg/BlobbyIconSeeds.d.ts +1 -1
- package/components/svg/BlobbyIconSeeds.d.ts.map +1 -1
- package/components/svg/BlobbyIconSeeds.js +7 -9
- package/components/svg/BlobbyIconSite.d.ts +1 -1
- package/components/svg/BlobbyIconSite.d.ts.map +1 -1
- package/components/svg/BlobbyIconSite.js +7 -9
- package/components/svg/BlobbyIconSparkles.d.ts +1 -1
- package/components/svg/BlobbyIconSparkles.d.ts.map +1 -1
- package/components/svg/BlobbyIconSparkles.js +7 -9
- package/components/svg/BlobbyIconWrench.d.ts +1 -1
- package/components/svg/BlobbyIconWrench.d.ts.map +1 -1
- package/components/svg/BlobbyIconWrench.js +7 -9
- package/components/svg/Bug.d.ts +1 -1
- package/components/svg/Bug.d.ts.map +1 -1
- package/components/svg/Bug.js +7 -9
- package/components/svg/Calendar.d.ts +1 -1
- package/components/svg/Calendar.d.ts.map +1 -1
- package/components/svg/Calendar.js +7 -9
- package/components/svg/CaretDown.d.ts +1 -1
- package/components/svg/CaretDown.d.ts.map +1 -1
- package/components/svg/CaretDown.js +7 -9
- package/components/svg/CaretLeft.d.ts +1 -1
- package/components/svg/CaretLeft.d.ts.map +1 -1
- package/components/svg/CaretLeft.js +7 -9
- package/components/svg/CaretRight.d.ts +1 -1
- package/components/svg/CaretRight.d.ts.map +1 -1
- package/components/svg/CaretRight.js +7 -9
- package/components/svg/CaretUp.d.ts +1 -1
- package/components/svg/CaretUp.d.ts.map +1 -1
- package/components/svg/CaretUp.js +7 -9
- package/components/svg/ChevronDown.d.ts +1 -1
- package/components/svg/ChevronDown.d.ts.map +1 -1
- package/components/svg/ChevronDown.js +7 -9
- package/components/svg/ChevronUp.d.ts +1 -1
- package/components/svg/ChevronUp.d.ts.map +1 -1
- package/components/svg/ChevronUp.js +7 -9
- package/components/svg/Close.d.ts +1 -1
- package/components/svg/Close.d.ts.map +1 -1
- package/components/svg/Close.js +7 -9
- package/components/svg/Critical.d.ts +1 -1
- package/components/svg/Critical.d.ts.map +1 -1
- package/components/svg/Critical.js +7 -9
- package/components/svg/Edit.d.ts +1 -1
- package/components/svg/Edit.d.ts.map +1 -1
- package/components/svg/Edit.js +7 -9
- package/components/svg/Error.d.ts +1 -1
- package/components/svg/Error.d.ts.map +1 -1
- package/components/svg/Error.js +7 -9
- package/components/svg/Filter.d.ts +1 -1
- package/components/svg/Filter.d.ts.map +1 -1
- package/components/svg/Filter.js +7 -9
- package/components/svg/Folder.d.ts +1 -1
- package/components/svg/Folder.d.ts.map +1 -1
- package/components/svg/Folder.js +7 -9
- package/components/svg/Help.d.ts +1 -1
- package/components/svg/Help.d.ts.map +1 -1
- package/components/svg/Help.js +7 -9
- package/components/svg/Home.d.ts +1 -1
- package/components/svg/Home.d.ts.map +1 -1
- package/components/svg/Home.js +7 -9
- package/components/svg/IconAdd.d.ts +1 -1
- package/components/svg/IconAdd.d.ts.map +1 -1
- package/components/svg/IconAdd.js +7 -9
- package/components/svg/IconArrowRight.d.ts +1 -1
- package/components/svg/IconArrowRight.d.ts.map +1 -1
- package/components/svg/IconArrowRight.js +7 -9
- package/components/svg/IconBusinessNetwork.d.ts +1 -1
- package/components/svg/IconBusinessNetwork.d.ts.map +1 -1
- package/components/svg/IconBusinessNetwork.js +7 -9
- package/components/svg/IconCancel.d.ts +1 -1
- package/components/svg/IconCancel.d.ts.map +1 -1
- package/components/svg/IconCancel.js +7 -9
- package/components/svg/IconChargingBattery.d.ts +1 -1
- package/components/svg/IconChargingBattery.d.ts.map +1 -1
- package/components/svg/IconChargingBattery.js +7 -9
- package/components/svg/IconCheckmark.d.ts +1 -1
- package/components/svg/IconCheckmark.d.ts.map +1 -1
- package/components/svg/IconCheckmark.js +7 -9
- package/components/svg/IconCoinInHand.d.ts +1 -1
- package/components/svg/IconCoinInHand.d.ts.map +1 -1
- package/components/svg/IconCoinInHand.js +7 -9
- package/components/svg/IconColumns.d.ts +1 -1
- package/components/svg/IconColumns.d.ts.map +1 -1
- package/components/svg/IconColumns.js +7 -9
- package/components/svg/IconDashboard.d.ts +1 -1
- package/components/svg/IconDashboard.d.ts.map +1 -1
- package/components/svg/IconDashboard.js +7 -9
- package/components/svg/IconEdit.d.ts +1 -1
- package/components/svg/IconEdit.d.ts.map +1 -1
- package/components/svg/IconEdit.js +7 -9
- package/components/svg/IconExport.d.ts +1 -1
- package/components/svg/IconExport.d.ts.map +1 -1
- package/components/svg/IconExport.js +7 -9
- package/components/svg/IconFile.d.ts +1 -1
- package/components/svg/IconFile.d.ts.map +1 -1
- package/components/svg/IconFile.js +7 -9
- package/components/svg/IconFolder.d.ts +1 -1
- package/components/svg/IconFolder.d.ts.map +1 -1
- package/components/svg/IconFolder.js +7 -9
- package/components/svg/IconFullScreen.d.ts +1 -1
- package/components/svg/IconFullScreen.d.ts.map +1 -1
- package/components/svg/IconFullScreen.js +7 -9
- package/components/svg/IconFutures.d.ts +1 -1
- package/components/svg/IconFutures.d.ts.map +1 -1
- package/components/svg/IconFutures.js +7 -9
- package/components/svg/IconGraphReport.d.ts +1 -1
- package/components/svg/IconGraphReport.d.ts.map +1 -1
- package/components/svg/IconGraphReport.js +7 -9
- package/components/svg/IconHeartMonitor.d.ts +1 -1
- package/components/svg/IconHeartMonitor.d.ts.map +1 -1
- package/components/svg/IconHeartMonitor.js +7 -9
- package/components/svg/IconHistory.d.ts +1 -1
- package/components/svg/IconHistory.d.ts.map +1 -1
- package/components/svg/IconHistory.js +7 -9
- package/components/svg/IconImport.d.ts +1 -1
- package/components/svg/IconImport.d.ts.map +1 -1
- package/components/svg/IconImport.js +7 -9
- package/components/svg/IconLayers.d.ts +1 -1
- package/components/svg/IconLayers.d.ts.map +1 -1
- package/components/svg/IconLayers.js +7 -9
- package/components/svg/IconList.d.ts +1 -1
- package/components/svg/IconList.d.ts.map +1 -1
- package/components/svg/IconList.js +7 -9
- package/components/svg/IconLocations.d.ts +1 -1
- package/components/svg/IconLocations.d.ts.map +1 -1
- package/components/svg/IconLocations.js +7 -9
- package/components/svg/IconMail.d.ts +1 -1
- package/components/svg/IconMail.d.ts.map +1 -1
- package/components/svg/IconMail.js +7 -9
- package/components/svg/IconManager.d.ts +1 -1
- package/components/svg/IconManager.d.ts.map +1 -1
- package/components/svg/IconManager.js +7 -9
- package/components/svg/IconMarker.d.ts +1 -1
- package/components/svg/IconMarker.d.ts.map +1 -1
- package/components/svg/IconMarker.js +7 -9
- package/components/svg/IconMenu.d.ts +1 -1
- package/components/svg/IconMenu.d.ts.map +1 -1
- package/components/svg/IconMenu.js +7 -9
- package/components/svg/IconMenuHorizontal.d.ts +1 -1
- package/components/svg/IconMenuHorizontal.d.ts.map +1 -1
- package/components/svg/IconMenuHorizontal.js +7 -9
- package/components/svg/IconModule.d.ts +1 -1
- package/components/svg/IconModule.d.ts.map +1 -1
- package/components/svg/IconModule.js +7 -9
- package/components/svg/IconMyLocation.d.ts +1 -1
- package/components/svg/IconMyLocation.d.ts.map +1 -1
- package/components/svg/IconMyLocation.js +7 -9
- package/components/svg/IconNursery.d.ts +1 -1
- package/components/svg/IconNursery.d.ts.map +1 -1
- package/components/svg/IconNursery.js +7 -9
- package/components/svg/IconOrg.d.ts +1 -1
- package/components/svg/IconOrg.d.ts.map +1 -1
- package/components/svg/IconOrg.js +7 -9
- package/components/svg/IconParchment.d.ts +1 -1
- package/components/svg/IconParchment.d.ts.map +1 -1
- package/components/svg/IconParchment.js +7 -9
- package/components/svg/IconRedo.d.ts +1 -1
- package/components/svg/IconRedo.d.ts.map +1 -1
- package/components/svg/IconRedo.js +7 -9
- package/components/svg/IconRestorationSite.d.ts +1 -1
- package/components/svg/IconRestorationSite.d.ts.map +1 -1
- package/components/svg/IconRestorationSite.js +7 -9
- package/components/svg/IconSeedBank.d.ts +1 -1
- package/components/svg/IconSeedBank.d.ts.map +1 -1
- package/components/svg/IconSeedBank.js +7 -9
- package/components/svg/IconSeedling.d.ts +1 -1
- package/components/svg/IconSeedling.d.ts.map +1 -1
- package/components/svg/IconSeedling.js +7 -9
- package/components/svg/IconSlice.d.ts +1 -1
- package/components/svg/IconSlice.d.ts.map +1 -1
- package/components/svg/IconSlice.js +7 -9
- package/components/svg/IconSubmit.d.ts +1 -1
- package/components/svg/IconSubmit.d.ts.map +1 -1
- package/components/svg/IconSubmit.js +7 -9
- package/components/svg/IconSubtract.d.ts +1 -1
- package/components/svg/IconSubtract.d.ts.map +1 -1
- package/components/svg/IconSubtract.js +7 -9
- package/components/svg/IconSynced.d.ts +1 -1
- package/components/svg/IconSynced.d.ts.map +1 -1
- package/components/svg/IconSynced.js +7 -9
- package/components/svg/IconTrashCan.d.ts +1 -1
- package/components/svg/IconTrashCan.d.ts.map +1 -1
- package/components/svg/IconTrashCan.js +7 -9
- package/components/svg/IconTreasureMap.d.ts +1 -1
- package/components/svg/IconTreasureMap.d.ts.map +1 -1
- package/components/svg/IconTreasureMap.js +7 -9
- package/components/svg/IconUndo.d.ts +1 -1
- package/components/svg/IconUndo.d.ts.map +1 -1
- package/components/svg/IconUndo.js +7 -9
- package/components/svg/IconWifi.d.ts +1 -1
- package/components/svg/IconWifi.d.ts.map +1 -1
- package/components/svg/IconWifi.js +7 -9
- package/components/svg/Info.d.ts +1 -1
- package/components/svg/Info.d.ts.map +1 -1
- package/components/svg/Info.js +7 -9
- package/components/svg/Key.d.ts +1 -1
- package/components/svg/Key.d.ts.map +1 -1
- package/components/svg/Key.js +7 -9
- package/components/svg/Leaf.d.ts +1 -1
- package/components/svg/Leaf.d.ts.map +1 -1
- package/components/svg/Leaf.js +7 -9
- package/components/svg/Lock.d.ts +1 -1
- package/components/svg/Lock.d.ts.map +1 -1
- package/components/svg/Lock.js +7 -9
- package/components/svg/Logo.d.ts +1 -1
- package/components/svg/Logo.d.ts.map +1 -1
- package/components/svg/Logo.js +7 -9
- package/components/svg/MenuVertical.d.ts +1 -1
- package/components/svg/MenuVertical.d.ts.map +1 -1
- package/components/svg/MenuVertical.js +7 -9
- package/components/svg/Notification.d.ts +1 -1
- package/components/svg/Notification.d.ts.map +1 -1
- package/components/svg/Notification.js +7 -9
- package/components/svg/Person.d.ts +1 -1
- package/components/svg/Person.d.ts.map +1 -1
- package/components/svg/Person.js +7 -9
- package/components/svg/Plus.d.ts +1 -1
- package/components/svg/Plus.d.ts.map +1 -1
- package/components/svg/Plus.js +7 -9
- package/components/svg/RestorationSite.d.ts +1 -1
- package/components/svg/RestorationSite.d.ts.map +1 -1
- package/components/svg/RestorationSite.js +7 -9
- package/components/svg/Search.d.ts +1 -1
- package/components/svg/Search.d.ts.map +1 -1
- package/components/svg/Search.js +7 -9
- package/components/svg/Seeds.d.ts +1 -1
- package/components/svg/Seeds.d.ts.map +1 -1
- package/components/svg/Seeds.js +7 -9
- package/components/svg/Site.d.ts +1 -1
- package/components/svg/Site.d.ts.map +1 -1
- package/components/svg/Site.js +7 -9
- package/components/svg/Sparkles.d.ts +1 -1
- package/components/svg/Sparkles.d.ts.map +1 -1
- package/components/svg/Sparkles.js +7 -9
- package/components/svg/Species.d.ts +1 -1
- package/components/svg/Species.d.ts.map +1 -1
- package/components/svg/Species.js +7 -9
- package/components/svg/Species2.d.ts +1 -1
- package/components/svg/Species2.d.ts.map +1 -1
- package/components/svg/Species2.js +7 -9
- package/components/svg/Spinner.d.ts +1 -1
- package/components/svg/Spinner.d.ts.map +1 -1
- package/components/svg/Spinner.js +7 -9
- package/components/svg/Success.d.ts +1 -1
- package/components/svg/Success.d.ts.map +1 -1
- package/components/svg/Success.js +7 -9
- package/components/svg/Touchscreen.d.ts +1 -1
- package/components/svg/Touchscreen.d.ts.map +1 -1
- package/components/svg/Touchscreen.js +7 -9
- package/components/svg/UploadCloud.d.ts +1 -1
- package/components/svg/UploadCloud.d.ts.map +1 -1
- package/components/svg/UploadCloud.js +7 -9
- package/components/svg/Warning.d.ts +1 -1
- package/components/svg/Warning.d.ts.map +1 -1
- package/components/svg/Warning.js +7 -9
- package/components/svg/index.js +101 -101
- package/components/table/EnhancedTableToolbar.d.ts +1 -0
- package/components/table/EnhancedTableToolbar.d.ts.map +1 -1
- package/components/table/EnhancedTableToolbar.js +45 -45
- package/components/table/EnhancedTableToolbarV2.d.ts +2 -1
- package/components/table/EnhancedTableToolbarV2.d.ts.map +1 -1
- package/components/table/EnhancedTableToolbarV2.js +21 -22
- package/components/table/TableCellRenderer.js +70 -60
- package/components/table/TableHeader.js +27 -33
- package/components/table/TableHeaderItem.js +30 -33
- package/components/table/index.d.ts.map +1 -1
- package/components/table/index.js +145 -189
- package/components/table/sort.js +10 -16
- package/components/table/sort.test.js +12 -12
- package/index.d.ts +0 -2
- package/index.d.ts.map +1 -1
- package/index.js +50 -50
- package/license-report.html +1 -1
- package/package.json +8 -4
- package/stories/Autocomplete.stories.d.ts +2 -2
- package/stories/Autocomplete.stories.d.ts.map +1 -1
- package/stories/Badge.stories.d.ts +2 -1
- package/stories/Badge.stories.d.ts.map +1 -1
- package/stories/BusySpinner.stories.d.ts +1 -1
- package/stories/BusySpinner.stories.d.ts.map +1 -1
- package/stories/Button.stories.d.ts +1 -1
- package/stories/Button.stories.d.ts.map +1 -1
- package/stories/Checkbox.stories.d.ts +2 -2
- package/stories/Checkbox.stories.d.ts.map +1 -1
- package/stories/Confirm.stories.d.ts +5 -5
- package/stories/Confirm.stories.d.ts.map +1 -1
- package/stories/DatePicker.stories.d.ts +1 -5
- package/stories/DatePicker.stories.d.ts.map +1 -1
- package/stories/DialogBox.stories.d.ts +6 -6
- package/stories/DialogBox.stories.d.ts.map +1 -1
- package/stories/Divisor.stories.d.ts +1 -1
- package/stories/Divisor.stories.d.ts.map +1 -1
- package/stories/Dropdown.stories.d.ts +3 -3
- package/stories/Dropdown.stories.d.ts.map +1 -1
- package/stories/ErrorBox.stories.d.ts +1 -1
- package/stories/ErrorBox.stories.d.ts.map +1 -1
- package/stories/FileChooser.stories.d.ts +2 -2
- package/stories/FileChooser.stories.d.ts.map +1 -1
- package/stories/Icon.stories.d.ts +1 -1
- package/stories/Icon.stories.d.ts.map +1 -1
- package/stories/IconTooltip.stories.d.ts +2 -2
- package/stories/IconTooltip.stories.d.ts.map +1 -1
- package/stories/IntersectionObserver.stories.d.ts +1 -1
- package/stories/IntersectionObserver.stories.d.ts.map +1 -1
- package/stories/Message.stories.d.ts +2 -2
- package/stories/Message.stories.d.ts.map +1 -1
- package/stories/MultiSelect.stories.d.ts +2 -2
- package/stories/MultiSelect.stories.d.ts.map +1 -1
- package/stories/Navbar.stories.d.ts +2 -2
- package/stories/Navbar.stories.d.ts.map +1 -1
- package/stories/Note.stories.d.ts +1 -1
- package/stories/Note.stories.d.ts.map +1 -1
- package/stories/PageForm.stories.d.ts +2 -2
- package/stories/PageForm.stories.d.ts.map +1 -1
- package/stories/PhotoChooser.stories.d.ts +2 -2
- package/stories/PhotoChooser.stories.d.ts.map +1 -1
- package/stories/PillList.stories.d.ts +1 -1
- package/stories/PillList.stories.d.ts.map +1 -1
- package/stories/PopoverMenu.stories.d.ts +2 -2
- package/stories/PopoverMenu.stories.d.ts.map +1 -1
- package/stories/PopoverMultiSelect.stories.d.ts +1 -1
- package/stories/PopoverMultiSelect.stories.d.ts.map +1 -1
- package/stories/ProgressCircle.stories.d.ts +1 -1
- package/stories/ProgressCircle.stories.d.ts.map +1 -1
- package/stories/RadioButton.stories.d.ts +1 -1
- package/stories/RadioButton.stories.d.ts.map +1 -1
- package/stories/Select.stories.d.ts +4 -4
- package/stories/Select.stories.d.ts.map +1 -1
- package/stories/Separator.stories.d.ts +2 -2
- package/stories/Slider.stories.d.ts +2 -2
- package/stories/Slider.stories.d.ts.map +1 -1
- package/stories/SummaryBox.stories.d.ts +3 -3
- package/stories/SummaryBox.stories.d.ts.map +1 -1
- package/stories/Table.stories.d.ts +5 -5
- package/stories/Tabs.stories.d.ts +3 -2
- package/stories/Tabs.stories.d.ts.map +1 -1
- package/stories/TextTruncated.stories.d.ts +3 -3
- package/stories/TextTruncated.stories.d.ts.map +1 -1
- package/stories/TextfieldNew.stories.d.ts +5 -5
- package/stories/TextfieldNew.stories.d.ts.map +1 -1
- package/stories/Theme.stories.d.ts +1 -1
- package/stories/Theme.stories.d.ts.map +1 -1
- package/stories/Tooltip.stories.d.ts +1 -1
- package/stories/Tooltip.stories.d.ts.map +1 -1
- package/stories/ViewPhotosDialog.stories.d.ts +1 -1
- package/stories/ViewPhotosDialog.stories.d.ts.map +1 -1
- package/style-dictionary-dist/TerrawareTheme.js +2 -3
- package/theme.js +2 -4
- package/utils/date.d.ts +2 -21
- package/utils/date.d.ts.map +1 -1
- package/utils/date.js +26 -50
- package/utils/date.test.js +14 -51
- package/utils/date.v1.d.ts +5 -0
- package/utils/date.v1.d.ts.map +1 -0
- package/utils/date.v1.js +17 -0
- package/utils/index.d.ts +2 -2
- package/utils/index.d.ts.map +1 -1
- package/utils/index.js +7 -13
- package/utils/preventDefaultEvent.js +2 -5
- package/utils/text.js +10 -15
- package/utils/text.test.js +10 -10
- package/utils/useDeviceInfo.js +18 -18
@@ -8,16 +8,18 @@ exports.default = Slider;
|
|
8
8
|
var _material = require("@mui/material");
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
10
10
|
function Slider(props) {
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
11
|
+
const {
|
12
|
+
defaultValue,
|
13
|
+
value,
|
14
|
+
marks,
|
15
|
+
min,
|
16
|
+
max,
|
17
|
+
onChange,
|
18
|
+
step,
|
19
|
+
valueLabelDisplay
|
20
|
+
} = props;
|
21
|
+
const theme = (0, _material.useTheme)();
|
22
|
+
const sliderStyles = {
|
21
23
|
'.MuiSlider-rail': {
|
22
24
|
backgroundColor: theme.palette.TwClrBgBrandTertiary,
|
23
25
|
height: theme.spacing(0.5)
|
@@ -38,7 +40,7 @@ function Slider(props) {
|
|
38
40
|
borderRadius: '8px'
|
39
41
|
}
|
40
42
|
};
|
41
|
-
|
43
|
+
const handleChange = (event, val) => {
|
42
44
|
if (!Array.isArray(val)) {
|
43
45
|
onChange(val);
|
44
46
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SummaryBox.d.ts","sourceRoot":"","sources":["../../src/components/SummaryBox.tsx"],"names":[],"mappings":"AAyCA,MAAM,WAAW,KAAK;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;IACpD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,OAAmB,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAyBnH"}
|
1
|
+
{"version":3,"file":"SummaryBox.d.ts","sourceRoot":"","sources":["../../src/components/SummaryBox.tsx"],"names":[],"mappings":";AAyCA,MAAM,WAAW,KAAK;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;IACpD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,OAAmB,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAyBnH"}
|
package/components/SummaryBox.js
CHANGED
@@ -9,53 +9,52 @@ var _iconsMaterial = require("@mui/icons-material");
|
|
9
9
|
var _material = require("@mui/material");
|
10
10
|
var _styles = require("@mui/styles");
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
};
|
48
|
-
});
|
12
|
+
const useStyles = (0, _styles.makeStyles)(theme => ({
|
13
|
+
bold: {
|
14
|
+
fontWeight: theme.typography.fontWeightBold,
|
15
|
+
whiteSpace: 'pre-line'
|
16
|
+
},
|
17
|
+
summaryDefault: {
|
18
|
+
position: 'relative',
|
19
|
+
borderRadius: 8,
|
20
|
+
backgroundColor: theme.palette.neutral[200],
|
21
|
+
padding: theme.spacing(2)
|
22
|
+
},
|
23
|
+
summaryAvailable: {
|
24
|
+
borderRadius: 8,
|
25
|
+
backgroundColor: theme.palette.neutral[700],
|
26
|
+
padding: theme.spacing(2),
|
27
|
+
color: theme.palette.common.white
|
28
|
+
},
|
29
|
+
summaryZero: {
|
30
|
+
borderRadius: 8,
|
31
|
+
backgroundColor: theme.palette.state[5],
|
32
|
+
padding: theme.spacing(2),
|
33
|
+
color: theme.palette.common.white
|
34
|
+
},
|
35
|
+
full: {
|
36
|
+
borderRadius: 8,
|
37
|
+
backgroundColor: theme.palette.neutral[200],
|
38
|
+
padding: theme.spacing(2),
|
39
|
+
height: '100%',
|
40
|
+
boxSizing: 'border-box'
|
41
|
+
},
|
42
|
+
infoIcon: {
|
43
|
+
position: 'absolute',
|
44
|
+
right: theme.spacing(2)
|
45
|
+
}
|
46
|
+
}));
|
49
47
|
function SummaryBox(_ref) {
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
variant =
|
54
|
-
id
|
55
|
-
icon
|
56
|
-
onIconClick
|
57
|
-
|
58
|
-
|
48
|
+
let {
|
49
|
+
title,
|
50
|
+
value,
|
51
|
+
variant = 'default',
|
52
|
+
id,
|
53
|
+
icon,
|
54
|
+
onIconClick
|
55
|
+
} = _ref;
|
56
|
+
const classes = useStyles();
|
57
|
+
const style = variant === 'default' ? classes.summaryDefault : variant === 'available' ? classes.summaryAvailable : variant === 'full' ? classes.full : classes.summaryZero;
|
59
58
|
return /*#__PURE__*/_react.default.createElement(_material.Box, {
|
60
59
|
className: style,
|
61
60
|
id: id
|
package/components/Tabs/index.js
CHANGED
@@ -1,30 +1,29 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
4
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
6
6
|
value: true
|
7
7
|
});
|
8
8
|
exports.default = void 0;
|
9
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
10
9
|
var _react = _interopRequireWildcard(require("react"));
|
11
10
|
var _lab = require("@mui/lab");
|
12
11
|
var _material = require("@mui/material");
|
13
12
|
var _utils = require("../../utils");
|
14
13
|
var _Icon = _interopRequireDefault(require("../Icon/Icon"));
|
15
|
-
|
14
|
+
const Tabs = _ref => {
|
16
15
|
var _ref2, _tabs$;
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
16
|
+
let {
|
17
|
+
tabs,
|
18
|
+
onTabChange,
|
19
|
+
activeTab
|
20
|
+
} = _ref;
|
21
|
+
const [selectedTab, setSelectedTab] = (0, _react.useState)((_ref2 = activeTab !== null && activeTab !== void 0 ? activeTab : (_tabs$ = tabs[0]) === null || _tabs$ === void 0 ? void 0 : _tabs$.id) !== null && _ref2 !== void 0 ? _ref2 : '');
|
22
|
+
const theme = (0, _material.useTheme)();
|
23
|
+
const {
|
24
|
+
isMobile
|
25
|
+
} = (0, _utils.useDeviceInfo)();
|
26
|
+
const tabStyles = {
|
28
27
|
fontSize: '14px',
|
29
28
|
padding: theme.spacing(1, 2),
|
30
29
|
minHeight: theme.spacing(4.5),
|
@@ -46,22 +45,22 @@ var Tabs = function Tabs(_ref) {
|
|
46
45
|
fill: theme.palette.TwClrTxtBrand
|
47
46
|
}
|
48
47
|
};
|
49
|
-
|
48
|
+
const tabHeaderProps = {
|
50
49
|
borderBottom: 1,
|
51
50
|
borderColor: 'divider',
|
52
51
|
margin: isMobile ? 0 : theme.spacing(0, 4)
|
53
52
|
};
|
54
|
-
|
53
|
+
const tabPanelStyles = {
|
55
54
|
padding: 0
|
56
55
|
};
|
57
|
-
|
56
|
+
const setTab = tab => {
|
58
57
|
if (onTabChange) {
|
59
58
|
onTabChange(tab);
|
60
59
|
} else {
|
61
60
|
setSelectedTab(tab);
|
62
61
|
}
|
63
62
|
};
|
64
|
-
(0, _react.useEffect)(
|
63
|
+
(0, _react.useEffect)(() => {
|
65
64
|
if (activeTab !== undefined) {
|
66
65
|
setSelectedTab(activeTab);
|
67
66
|
}
|
@@ -79,9 +78,7 @@ var Tabs = function Tabs(_ref) {
|
|
79
78
|
sx: {
|
80
79
|
minHeight: theme.spacing(4.5)
|
81
80
|
},
|
82
|
-
onChange:
|
83
|
-
return setTab(value);
|
84
|
-
},
|
81
|
+
onChange: (unused, value) => setTab(value),
|
85
82
|
TabIndicatorProps: {
|
86
83
|
style: {
|
87
84
|
background: theme.palette.TwClrBgBrand,
|
@@ -89,24 +86,19 @@ var Tabs = function Tabs(_ref) {
|
|
89
86
|
borderRadius: '4px 4px 0 0'
|
90
87
|
}
|
91
88
|
}
|
92
|
-
}, tabs.map(
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
key: index,
|
107
|
-
sx: tabPanelStyles
|
108
|
-
}, tab.children);
|
109
|
-
})));
|
89
|
+
}, tabs.map((tab, index) => /*#__PURE__*/_react.default.createElement(_material.Tab, {
|
90
|
+
icon: tab.icon ? /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
91
|
+
name: tab.icon
|
92
|
+
}) : undefined,
|
93
|
+
label: tab.label,
|
94
|
+
value: tab.id,
|
95
|
+
sx: tabStyles,
|
96
|
+
key: index,
|
97
|
+
disabled: tab.disabled
|
98
|
+
})))), tabs.map((tab, index) => /*#__PURE__*/_react.default.createElement(_lab.TabPanel, {
|
99
|
+
value: tab.id,
|
100
|
+
key: index,
|
101
|
+
sx: tabPanelStyles
|
102
|
+
}, tab.children))));
|
110
103
|
};
|
111
|
-
var _default = Tabs;
|
112
|
-
exports.default = _default;
|
104
|
+
var _default = exports.default = Tabs;
|
@@ -1,38 +1,33 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
6
5
|
value: true
|
7
6
|
});
|
8
7
|
exports.default = TextTruncated;
|
9
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
10
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
11
8
|
var _material = require("@mui/material");
|
12
9
|
var _react = _interopRequireWildcard(require("react"));
|
13
10
|
var _styles = require("@mui/styles");
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
border: "1px solid ".concat(theme.palette.TwClrBrdrTertiary)
|
20
|
-
}
|
21
|
-
},
|
22
|
-
popper: {
|
23
|
-
maxHeight: '200px',
|
24
|
-
overflow: 'auto'
|
25
|
-
},
|
26
|
-
tooltip: {
|
27
|
-
backgroundColor: "".concat(theme.palette.TwClrBg, " !important"),
|
28
|
-
color: "".concat(theme.palette.TwClrTxt, " !important"),
|
29
|
-
border: "1px solid ".concat(theme.palette.TwClrBrdrTertiary, " !important"),
|
30
|
-
borderRadius: '8px !important',
|
31
|
-
boxShadow: "0px 3px 3px ".concat(theme.palette.TwClrBaseGray100),
|
32
|
-
padding: '8px'
|
11
|
+
const useStyles = (0, _styles.makeStyles)(theme => ({
|
12
|
+
arrow: {
|
13
|
+
color: "".concat(theme.palette.TwClrBg, " !important"),
|
14
|
+
'&:before': {
|
15
|
+
border: "1px solid ".concat(theme.palette.TwClrBrdrTertiary)
|
33
16
|
}
|
34
|
-
}
|
35
|
-
|
17
|
+
},
|
18
|
+
popper: {
|
19
|
+
maxHeight: '200px',
|
20
|
+
overflow: 'auto'
|
21
|
+
},
|
22
|
+
tooltip: {
|
23
|
+
backgroundColor: "".concat(theme.palette.TwClrBg, " !important"),
|
24
|
+
color: "".concat(theme.palette.TwClrTxt, " !important"),
|
25
|
+
border: "1px solid ".concat(theme.palette.TwClrBrdrTertiary, " !important"),
|
26
|
+
borderRadius: '8px !important',
|
27
|
+
boxShadow: "0px 3px 3px ".concat(theme.palette.TwClrBaseGray100),
|
28
|
+
padding: '8px'
|
29
|
+
}
|
30
|
+
}));
|
36
31
|
|
37
32
|
/**
|
38
33
|
* Represents the result of truncating the string list
|
@@ -65,10 +60,10 @@ function computeFromStringList(strings, maxLength, listSeparator) {
|
|
65
60
|
}
|
66
61
|
|
67
62
|
// concatenate strings with ', ' and stop before exceeding max
|
68
|
-
|
69
|
-
|
70
|
-
for (
|
71
|
-
|
63
|
+
let stringsRemaining = strings.length - 1;
|
64
|
+
let result = strings[0];
|
65
|
+
for (let i = 1; i < strings.length; i++) {
|
66
|
+
const tempResult = [result, strings[i]].join(listSeparator);
|
72
67
|
if (tempResult.length > maxLength) {
|
73
68
|
break;
|
74
69
|
}
|
@@ -81,48 +76,44 @@ function computeFromStringList(strings, maxLength, listSeparator) {
|
|
81
76
|
};
|
82
77
|
}
|
83
78
|
function TextTruncated(props) {
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
canvasContext = _useState4[0],
|
100
|
-
setCanvasContext = _useState4[1];
|
101
|
-
var theme = (0, _material.useTheme)();
|
102
|
-
(0, _react.useEffect)(function () {
|
79
|
+
const {
|
80
|
+
stringList,
|
81
|
+
listSeparator,
|
82
|
+
maxLengthPx,
|
83
|
+
moreSeparator,
|
84
|
+
moreText,
|
85
|
+
textStyle,
|
86
|
+
showAllStyle,
|
87
|
+
placeHolder
|
88
|
+
} = props;
|
89
|
+
const [showAllOpen, setShowAllOpen] = (0, _react.useState)(false);
|
90
|
+
const classes = useStyles();
|
91
|
+
const [canvasContext, setCanvasContext] = (0, _react.useState)();
|
92
|
+
const theme = (0, _material.useTheme)();
|
93
|
+
(0, _react.useEffect)(() => {
|
103
94
|
var _canvas$getContext;
|
104
|
-
|
95
|
+
const canvas = document.createElement('canvas');
|
105
96
|
setCanvasContext((_canvas$getContext = canvas === null || canvas === void 0 ? void 0 : canvas.getContext('2d')) !== null && _canvas$getContext !== void 0 ? _canvas$getContext : undefined);
|
106
97
|
}, []);
|
107
|
-
|
98
|
+
const pixelsPerChar = (0, _react.useMemo)(() => {
|
108
99
|
// compute the pixels per character, averaged over the comma-separated joined stringList
|
109
|
-
|
110
|
-
|
100
|
+
const fullText = stringList.join(listSeparator);
|
101
|
+
let result = 0;
|
111
102
|
if (canvasContext) {
|
112
|
-
|
113
|
-
|
103
|
+
const fontSize = textStyle && textStyle.fontSize || theme.typography.fontSize;
|
104
|
+
const fontFamily = textStyle && textStyle.fontFamily || theme.typography.fontFamily;
|
114
105
|
canvasContext.font = "".concat(fontSize, "px ").concat(fontFamily);
|
115
106
|
result = canvasContext.measureText(fullText).width;
|
116
107
|
}
|
117
108
|
return result / fullText.length;
|
118
109
|
}, [stringList, textStyle, canvasContext, theme.typography.fontFamily, theme.typography.fontSize]);
|
119
|
-
|
110
|
+
let maxExcludingSuffix = stringList.join(listSeparator).length;
|
120
111
|
if (pixelsPerChar > 0) {
|
121
|
-
|
112
|
+
const maxChars = maxLengthPx / pixelsPerChar;
|
122
113
|
maxExcludingSuffix = maxChars - moreSeparator.length - moreText.length - 1 - Math.ceil(Math.log10(stringList.length));
|
123
114
|
}
|
124
|
-
|
125
|
-
|
115
|
+
const textToDisplay = computeFromStringList(stringList, maxExcludingSuffix, listSeparator);
|
116
|
+
const onClickHandler = e => {
|
126
117
|
e.stopPropagation();
|
127
118
|
setShowAllOpen(!showAllOpen);
|
128
119
|
};
|
@@ -143,16 +134,15 @@ function TextTruncated(props) {
|
|
143
134
|
}, /*#__PURE__*/_react.default.createElement(_material.Link, {
|
144
135
|
component: "button",
|
145
136
|
onClick: onClickHandler,
|
146
|
-
onBlur:
|
147
|
-
return setShowAllOpen(false);
|
148
|
-
},
|
137
|
+
onBlur: () => setShowAllOpen(false),
|
149
138
|
sx: {
|
150
139
|
color: theme.palette.TwClrTxtBrand,
|
151
140
|
textDecorationColor: "".concat(theme.palette.TwClrTxtBrand, "80")
|
152
141
|
}
|
153
142
|
}, /*#__PURE__*/_react.default.createElement(_material.Typography, {
|
154
|
-
sx:
|
143
|
+
sx: {
|
144
|
+
...textStyle,
|
155
145
|
marginTop: '-3px'
|
156
|
-
}
|
146
|
+
}
|
157
147
|
}, (textToDisplay.numberMore > 0 ? textToDisplay.numberMore + ' ' : '') + moreText))) : null) : placeHolder || /*#__PURE__*/_react.default.createElement("div", null);
|
158
148
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Textfield.d.ts","sourceRoot":"","sources":["../../../src/components/Textfield/Textfield.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,eAAe,CAAC;AAKvB,KAAK,aAAa,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEpD,KAAK,OAAO,GAAG,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;AAExC,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,KAAK;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAGnB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACjD,YAAY,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IACrC,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,IAAI,EAAE,aAAa,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CA8J3D"}
|
1
|
+
{"version":3,"file":"Textfield.d.ts","sourceRoot":"","sources":["../../../src/components/Textfield/Textfield.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,eAAe,CAAC;AAKvB,KAAK,aAAa,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEpD,KAAK,OAAO,GAAG,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;AAExC,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,KAAK;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAGnB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACjD,YAAY,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IACrC,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,IAAI,EAAE,aAAa,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CA8J3D"}
|
@@ -14,42 +14,44 @@ var _utils = require("../../utils");
|
|
14
14
|
var _IconTooltip = _interopRequireDefault(require("../IconTooltip"));
|
15
15
|
var _TruncatedTextArea = _interopRequireDefault(require("./TruncatedTextArea"));
|
16
16
|
function TextField(props) {
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
17
|
+
const {
|
18
|
+
autoFocus,
|
19
|
+
label,
|
20
|
+
className,
|
21
|
+
disabled,
|
22
|
+
disabledCharacters,
|
23
|
+
display,
|
24
|
+
errorText,
|
25
|
+
helperText,
|
26
|
+
iconLeft,
|
27
|
+
iconRight,
|
28
|
+
id,
|
29
|
+
min,
|
30
|
+
max,
|
31
|
+
onBlur,
|
32
|
+
onChange,
|
33
|
+
onClickRightIcon,
|
34
|
+
onKeyDown,
|
35
|
+
placeholder,
|
36
|
+
preserveNewlines,
|
37
|
+
readonly,
|
38
|
+
required,
|
39
|
+
styles,
|
40
|
+
tooltipTitle,
|
41
|
+
truncateConfig,
|
42
|
+
type,
|
43
|
+
value,
|
44
|
+
warningText
|
45
|
+
} = props;
|
46
|
+
const textfieldClass = (0, _classnames.default)({
|
45
47
|
'textfield-value': true,
|
46
48
|
'textfield-value--disabled': disabled,
|
47
49
|
'textfield-value--error': !!errorText,
|
48
50
|
'textfield-value--warning': !!warningText,
|
49
51
|
'textfield-value--readonly': readonly
|
50
52
|
});
|
51
|
-
|
52
|
-
|
53
|
+
const textfieldOnChange = event => {
|
54
|
+
const textValue = event.target.value;
|
53
55
|
if ((0, _utils.isWhitespaces)(textValue)) {
|
54
56
|
return;
|
55
57
|
}
|
@@ -57,7 +59,7 @@ function TextField(props) {
|
|
57
59
|
onChange(textValue);
|
58
60
|
}
|
59
61
|
};
|
60
|
-
|
62
|
+
const onKeyDownHandler = e => {
|
61
63
|
if (disabledCharacters && disabledCharacters.includes(e.key)) {
|
62
64
|
e === null || e === void 0 ? void 0 : e.preventDefault();
|
63
65
|
return;
|
@@ -66,7 +68,7 @@ function TextField(props) {
|
|
66
68
|
onKeyDown(e.key);
|
67
69
|
}
|
68
70
|
};
|
69
|
-
|
71
|
+
const renderRightIcon = () => {
|
70
72
|
if (iconRight === 'cancel' && !value) {
|
71
73
|
return null;
|
72
74
|
}
|
@@ -78,8 +80,8 @@ function TextField(props) {
|
|
78
80
|
className: "textfield-value--icon-right".concat(iconRight === 'cancel' ? '--cancel' : '')
|
79
81
|
}));
|
80
82
|
};
|
81
|
-
|
82
|
-
type
|
83
|
+
const typeProps = {
|
84
|
+
type
|
83
85
|
};
|
84
86
|
if (type === 'number') {
|
85
87
|
if (min !== undefined) {
|
@@ -89,7 +91,7 @@ function TextField(props) {
|
|
89
91
|
typeProps.max = max;
|
90
92
|
}
|
91
93
|
}
|
92
|
-
|
94
|
+
const displayComponent = (0, _react.useMemo)(() => {
|
93
95
|
if (!display) {
|
94
96
|
return null;
|
95
97
|
}
|
@@ -126,9 +128,7 @@ function TextField(props) {
|
|
126
128
|
onChange: textfieldOnChange,
|
127
129
|
onBlur: onBlur,
|
128
130
|
onKeyDown: onKeyDownHandler,
|
129
|
-
onWheel:
|
130
|
-
return e.currentTarget.blur();
|
131
|
-
},
|
131
|
+
onWheel: e => e.currentTarget.blur(),
|
132
132
|
required: required
|
133
133
|
}, typeProps)), iconRight ? renderRightIcon() : null) : /*#__PURE__*/_react.default.createElement("textarea", {
|
134
134
|
autoFocus: autoFocus,
|
@@ -4,6 +4,6 @@ interface TruncatedTextAreaProps {
|
|
4
4
|
truncateConfig: TruncateConfig;
|
5
5
|
value?: string | number;
|
6
6
|
}
|
7
|
-
declare const TruncatedTextArea: ({ preserveNewlines, truncateConfig, value }: TruncatedTextAreaProps) => JSX.Element;
|
7
|
+
declare const TruncatedTextArea: ({ preserveNewlines, truncateConfig, value }: TruncatedTextAreaProps) => import("react/jsx-runtime").JSX.Element;
|
8
8
|
export default TruncatedTextArea;
|
9
9
|
//# sourceMappingURL=TruncatedTextArea.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TruncatedTextArea.d.ts","sourceRoot":"","sources":["../../../src/components/Textfield/TruncatedTextArea.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C,UAAU,sBAAsB;IAC9B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,EAAE,cAAc,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED,QAAA,MAAM,iBAAiB,gDAAiD,sBAAsB,
|
1
|
+
{"version":3,"file":"TruncatedTextArea.d.ts","sourceRoot":"","sources":["../../../src/components/Textfield/TruncatedTextArea.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C,UAAU,sBAAsB;IAC9B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,EAAE,cAAc,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED,QAAA,MAAM,iBAAiB,gDAAiD,sBAAsB,4CAyD7F,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|