@terraware/web-components 4.2.26-rc.0 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_vendor/react-multi-carousel/index.js +13 -0
- package/_vendor/react-multi-carousel/lib/Arrows.js +13 -0
- package/_vendor/react-multi-carousel/lib/Carousel.js +19 -0
- package/_vendor/react-multi-carousel/lib/CarouselItems.js +14 -0
- package/_vendor/react-multi-carousel/lib/Dots.js +16 -0
- package/_vendor/react-multi-carousel/lib/index.js +13 -0
- package/_vendor/react-multi-carousel/lib/types.js +13 -0
- package/_vendor/react-multi-carousel/lib/utils/clones.js +14 -0
- package/_vendor/react-multi-carousel/lib/utils/common.js +13 -0
- package/_vendor/react-multi-carousel/lib/utils/dots.js +14 -0
- package/_vendor/react-multi-carousel/lib/utils/elementWidth.js +12 -0
- package/_vendor/react-multi-carousel/lib/utils/index.js +20 -0
- package/_vendor/react-multi-carousel/lib/utils/mouseOrTouchMove.js +14 -0
- package/_vendor/react-multi-carousel/lib/utils/next.js +13 -0
- package/_vendor/react-multi-carousel/lib/utils/previous.js +14 -0
- package/_vendor/react-multi-carousel/lib/utils/throttle.js +12 -0
- package/_vendor/react-multi-carousel/lib/utils/throwError.js +14 -0
- package/_virtual/Arrows.js +3 -0
- package/_virtual/Carousel.js +3 -0
- package/_virtual/CarouselItems.js +3 -0
- package/_virtual/Dots.js +3 -0
- package/_virtual/_commonjsHelpers.js +5 -0
- package/_virtual/clones.js +3 -0
- package/_virtual/common.js +3 -0
- package/_virtual/dots2.js +3 -0
- package/_virtual/elementWidth.js +3 -0
- package/_virtual/index.js +7 -0
- package/_virtual/index2.js +3 -0
- package/_virtual/index3.js +3 -0
- package/_virtual/mouseOrTouchMove.js +3 -0
- package/_virtual/next.js +3 -0
- package/_virtual/previous.js +3 -0
- package/_virtual/throttle.js +3 -0
- package/_virtual/throwError.js +3 -0
- package/_virtual/types.js +3 -0
- package/components/AntSwitch/index.js +6 -4
- package/components/Autocomplete/Autocomplete.js +19 -16
- package/components/Badge/index.js +8 -6
- package/components/BusySpinner/index.js +11 -8
- package/components/Button/Button.js +12 -9
- package/components/Checkbox.js +11 -8
- package/components/Confirm/index.js +14 -17
- package/components/DatePicker/DatePicker.js +19 -23
- package/components/DialogBox/DialogBox.js +25 -20
- package/components/Divisor.js +11 -8
- package/components/Dropdown.js +18 -15
- package/components/EditableTable/index.js +17 -14
- package/components/ErrorBox/ErrorBox.js +18 -15
- package/components/FileChooser/index.js +20 -15
- package/components/FormBottomBar/index.js +15 -12
- package/components/Icon/Icon.js +9 -6
- package/components/Icon/icons/index.js +252 -251
- package/components/IconTooltip/index.js +14 -9
- package/components/Map/MapBox.js +35 -32
- package/components/Map/MapContainer.js +10 -6
- package/components/Map/MapDateSliderControl.js +14 -12
- package/components/Map/MapDrawer.js +16 -12
- package/components/Map/MapLegend.js +32 -28
- package/components/Map/MapViewStyleControl.js +11 -9
- package/components/Map/ReactMapboxWrapper.js +1 -1
- package/components/Map/index.js +13 -11
- package/components/Map/types.js +5 -3
- package/components/Map/useMaintainLayerOrder.js +5 -2
- package/components/Markdown/index.js +6 -4
- package/components/Message/Message.js +25 -20
- package/components/MultiSelect/index.js +26 -23
- package/components/Navbar/NavFooter.js +8 -5
- package/components/Navbar/NavItem.js +14 -11
- package/components/Navbar/NavSection.js +10 -7
- package/components/Navbar/Navbar.js +16 -11
- package/components/Navbar/SubNavbar.js +8 -5
- package/components/Note.js +10 -7
- package/components/OverlayModal/OverlayModal.js +13 -11
- package/components/PageForm/index.js +15 -12
- package/components/PhotoChooser/index.js +30 -25
- package/components/PhotosCarousel/index.js +15 -18
- package/components/Pill/index.js +14 -11
- package/components/PillList/index.js +10 -7
- package/components/PlacementWrapper/index.js +8 -6
- package/components/PopoverMenu/Popover.js +12 -9
- package/components/PopoverMenu/index.js +14 -11
- package/components/PopoverMultiSelect/index.js +14 -11
- package/components/ProgressCircle/ProgressCircle.js +12 -9
- package/components/RadioButton.js +9 -6
- package/components/Select/Select.js +9 -6
- package/components/Select/SelectT.js +30 -26
- package/components/Separator/index.js +7 -5
- package/components/Size.js +1 -1
- package/components/Slider/index.js +9 -6
- package/components/SummaryBox.js +13 -10
- package/components/Tabs/index.js +22 -18
- package/components/TextTruncated/index.js +13 -20
- package/components/Textfield/Textfield.js +34 -28
- package/components/Textfield/TruncatedTextArea.js +12 -10
- package/components/TimelineSlider/TimelineMarker.js +8 -6
- package/components/TimelineSlider/TimelineRail.js +6 -4
- package/components/TimelineSlider/index.js +14 -12
- package/components/Tooltip/Tooltip.js +12 -7
- package/components/ViewPhotosDialog/index.js +14 -11
- package/components/VirtualWalkthrough/Annotation.js +10 -8
- package/components/VirtualWalkthrough/AnnotationEditPane.js +23 -21
- package/components/VirtualWalkthrough/AnnotationPanel.js +16 -14
- package/components/VirtualWalkthrough/Application.js +9 -7
- package/components/VirtualWalkthrough/AutoRotator.js +5 -3
- package/components/VirtualWalkthrough/BlockingSpinner.js +10 -7
- package/components/VirtualWalkthrough/BoundaryRing.js +8 -6
- package/components/VirtualWalkthrough/BoundaryWall.js +8 -6
- package/components/VirtualWalkthrough/CameraInfo.js +15 -13
- package/components/VirtualWalkthrough/ControlsInfoPane.js +59 -57
- package/components/VirtualWalkthrough/GradientSky.js +8 -6
- package/components/VirtualWalkthrough/SplatControls.js +37 -35
- package/components/VirtualWalkthrough/SplatCrop.js +6 -4
- package/components/VirtualWalkthrough/SplatFadeCrop.js +7 -5
- package/components/VirtualWalkthrough/SplatModel.js +17 -14
- package/components/VirtualWalkthrough/SplatRevealRain.js +6 -4
- package/components/VirtualWalkthrough/TfAnnotationManager.js +8 -5
- package/components/VirtualWalkthrough/TfXrNavigation.js +7 -5
- package/components/VirtualWalkthrough/VirtualWalkthroughViewer.js +47 -45
- package/components/VirtualWalkthrough/VrAnnotationPanel.js +9 -7
- package/components/VirtualWalkthrough/XrAnnotationInteraction.js +9 -7
- package/components/VirtualWalkthrough/XrExitButton.js +9 -7
- package/components/VirtualWalkthrough/XrGazeDwell.js +9 -7
- package/components/VirtualWalkthrough/XrPointerRay.js +9 -7
- package/components/VirtualWalkthrough/boundary-ring.js +7 -5
- package/components/VirtualWalkthrough/boundary-wall.js +8 -6
- package/components/VirtualWalkthrough/groundPlane.js +6 -3
- package/components/VirtualWalkthrough/gsplat-fade-crop-effect.js +5 -2
- package/components/VirtualWalkthrough/splatFormat.js +6 -4
- package/components/VirtualWalkthrough/vr-annotation-panel-layout.js +4 -2
- package/components/VirtualWalkthrough/vr-annotation-panel.js +8 -5
- package/components/VirtualWalkthrough/walkthrough-camera.js +6 -4
- package/components/VirtualWalkthrough/xr-annotation-candidates.js +8 -6
- package/components/VirtualWalkthrough/xr-annotation-interaction.js +9 -6
- package/components/VirtualWalkthrough/xr-annotation-targeting.js +5 -2
- package/components/VirtualWalkthrough/xr-button-arming.js +4 -2
- package/components/VirtualWalkthrough/xr-button-hold.js +5 -3
- package/components/VirtualWalkthrough/xr-exit-button.js +10 -8
- package/components/VirtualWalkthrough/xr-face-buttons.js +6 -4
- package/components/VirtualWalkthrough/xr-gaze-dwell-state.js +5 -3
- package/components/VirtualWalkthrough/xr-gaze-dwell.js +9 -7
- package/components/VirtualWalkthrough/xr-interactive-ui.js +10 -8
- package/components/VirtualWalkthrough/xr-pointer-ray.js +5 -3
- package/components/VirtualWalkthrough/xr-progress-pie.js +4 -2
- package/components/VirtualWalkthrough/xr-ray-quad.js +5 -2
- package/components/VirtualWalkthrough/xr-scene-bounds.js +5 -3
- package/components/VirtualWalkthrough/xr-teleport-gesture.js +4 -2
- package/components/svg/BlobbyGrayIconImage.js +13 -11
- package/components/svg/BlobbyGrayIconImport.js +13 -11
- package/components/svg/BlobbyGrayIconUploadToTheCloud.js +13 -11
- package/components/svg/BlobbyIconCloudChecked.js +41 -39
- package/components/svg/BlobbyIconExportOrUploadPhoto.js +41 -39
- package/components/svg/BlobbyIconFolder.js +41 -39
- package/components/svg/BlobbyIconGraphReport.js +41 -39
- package/components/svg/BlobbyIconHappy.js +41 -39
- package/components/svg/BlobbyIconHeartMonitor.js +41 -39
- package/components/svg/BlobbyIconLeaf.js +41 -39
- package/components/svg/BlobbyIconLibrary.js +41 -39
- package/components/svg/BlobbyIconNursery.js +41 -39
- package/components/svg/BlobbyIconOrganization.js +41 -39
- package/components/svg/BlobbyIconParchment.js +41 -39
- package/components/svg/BlobbyIconPeople.js +41 -39
- package/components/svg/BlobbyIconSeedBank.js +41 -39
- package/components/svg/BlobbyIconSeedling.js +41 -39
- package/components/svg/BlobbyIconSeeds.js +41 -39
- package/components/svg/BlobbyIconSite.js +42 -40
- package/components/svg/BlobbyIconSparkles.js +41 -39
- package/components/svg/BlobbyIconWrench.js +41 -39
- package/components/svg/Bug.js +8 -6
- package/components/svg/Calendar.js +8 -6
- package/components/svg/CaretDown.js +8 -6
- package/components/svg/CaretLeft.js +8 -6
- package/components/svg/CaretRight.js +8 -6
- package/components/svg/CaretUp.js +8 -6
- package/components/svg/ChevronDown.js +8 -6
- package/components/svg/ChevronUp.js +8 -6
- package/components/svg/Close.js +8 -6
- package/components/svg/Critical.js +8 -6
- package/components/svg/Edit.js +41 -39
- package/components/svg/Error.js +8 -6
- package/components/svg/Filter.js +8 -6
- package/components/svg/Folder.js +8 -6
- package/components/svg/Help.js +8 -6
- package/components/svg/Home.js +8 -6
- package/components/svg/IconAdd.js +8 -6
- package/components/svg/IconArrowRight.js +8 -6
- package/components/svg/IconBusinessNetwork.js +8 -6
- package/components/svg/IconCalendar.js +8 -6
- package/components/svg/IconCancel.js +8 -6
- package/components/svg/IconChargingBattery.js +8 -6
- package/components/svg/IconChecklist.js +8 -6
- package/components/svg/IconCheckmark.js +8 -6
- package/components/svg/IconCoinInHand.js +8 -6
- package/components/svg/IconColumns.js +8 -6
- package/components/svg/IconComment.js +8 -6
- package/components/svg/IconDashboard.js +8 -6
- package/components/svg/IconDataMigration.js +8 -6
- package/components/svg/IconDocument.js +8 -6
- package/components/svg/IconDownloadFromTheCloud.js +8 -6
- package/components/svg/IconEdit.js +8 -6
- package/components/svg/IconExpand.js +8 -6
- package/components/svg/IconExport.js +8 -6
- package/components/svg/IconExternalLink.js +8 -6
- package/components/svg/IconEye.js +8 -6
- package/components/svg/IconEyeOff.js +8 -6
- package/components/svg/IconFile.js +8 -6
- package/components/svg/IconFolder.js +8 -6
- package/components/svg/IconFullScreen.js +8 -6
- package/components/svg/IconFutures.js +8 -6
- package/components/svg/IconGraphReport.js +8 -6
- package/components/svg/IconHeartMonitor.js +8 -6
- package/components/svg/IconHelp.js +8 -6
- package/components/svg/IconHistory.js +8 -6
- package/components/svg/IconImport.js +8 -6
- package/components/svg/IconIndex.js +8 -6
- package/components/svg/IconLayers.js +8 -6
- package/components/svg/IconLibrary.js +8 -6
- package/components/svg/IconList.js +8 -6
- package/components/svg/IconLivePlant.js +8 -6
- package/components/svg/IconLocations.js +8 -6
- package/components/svg/IconMail.js +8 -6
- package/components/svg/IconManager.js +8 -6
- package/components/svg/IconMarker.js +8 -6
- package/components/svg/IconMenu.js +8 -6
- package/components/svg/IconMenuHorizontal.js +8 -6
- package/components/svg/IconModule.js +8 -6
- package/components/svg/IconMyLocation.js +8 -6
- package/components/svg/IconNote.js +8 -6
- package/components/svg/IconNursery.js +8 -6
- package/components/svg/IconOrg.js +8 -6
- package/components/svg/IconParchment.js +8 -6
- package/components/svg/IconPhoto.js +8 -6
- package/components/svg/IconPlantsFilled.js +8 -6
- package/components/svg/IconRedo.js +8 -6
- package/components/svg/IconRestorationSite.js +8 -6
- package/components/svg/IconSeedBank.js +8 -6
- package/components/svg/IconSeedling.js +8 -6
- package/components/svg/IconSettings.js +8 -6
- package/components/svg/IconSlice.js +8 -6
- package/components/svg/IconSubmit.js +8 -6
- package/components/svg/IconSubtract.js +8 -6
- package/components/svg/IconSynced.js +8 -6
- package/components/svg/IconTrashCan.js +8 -6
- package/components/svg/IconTreasureMap.js +8 -6
- package/components/svg/IconUnavailable.js +8 -6
- package/components/svg/IconUndo.js +8 -6
- package/components/svg/IconVariable.js +8 -6
- package/components/svg/IconVideo.js +9 -7
- package/components/svg/IconWifi.js +8 -6
- package/components/svg/Info.js +8 -6
- package/components/svg/Key.js +8 -6
- package/components/svg/Leaf.js +8 -6
- package/components/svg/Lock.js +8 -6
- package/components/svg/Logo.js +16 -14
- package/components/svg/MenuVertical.js +8 -6
- package/components/svg/Notification.js +8 -6
- package/components/svg/Person.js +8 -6
- package/components/svg/Plus.js +8 -6
- package/components/svg/RestorationSite.js +8 -6
- package/components/svg/Search.js +8 -6
- package/components/svg/Seeds.js +8 -6
- package/components/svg/Site.js +8 -6
- package/components/svg/Sparkles.js +8 -6
- package/components/svg/Species.js +8 -6
- package/components/svg/Species2.js +41 -39
- package/components/svg/Spinner.js +16 -14
- package/components/svg/Star.js +8 -6
- package/components/svg/Success.js +8 -6
- package/components/svg/SuccessFilled.js +8 -6
- package/components/svg/TerrawareLogoDesktop.js +17 -15
- package/components/svg/TerrawareLogoMobile.js +9 -7
- package/components/svg/Touchscreen.js +8 -6
- package/components/svg/UploadCloud.js +41 -39
- package/components/svg/Warning.js +8 -6
- package/components/svg/WelcomeClipboard.js +32 -30
- package/components/svg/index.js +127 -127
- package/components/table/EnhancedTableToolbar.js +18 -15
- package/components/table/EnhancedTableToolbarV2.js +8 -6
- package/components/table/TableCellRenderer.js +37 -32
- package/components/table/TableHeader.js +17 -14
- package/components/table/TableHeaderItem.js +18 -15
- package/components/table/density.js +5 -3
- package/components/table/index.js +40 -37
- package/components/table/sort.js +6 -4
- package/components/table/types.js +1 -1
- package/components/types/index.js +1 -1
- package/hooks/useBoolean.js +4 -2
- package/hooks/useCameraPosition.js +5 -2
- package/hooks/useDevicePerformance.js +6 -3
- package/hooks/useXr.js +6 -4
- package/index.js +55 -58
- package/package.json +6 -2
- package/style-dictionary-dist/TerrawareTheme.js +2 -1
- package/theme.js +5 -2
- package/utils/color.js +5 -2
- package/utils/date.js +7 -6
- package/utils/index.js +4 -5
- package/utils/preventDefaultEvent.js +2 -1
- package/utils/text.js +3 -2
- package/utils/useDeviceInfo.js +2 -1
- package/virtualWalkthrough.js +23 -31
- package/components/Button/button.test.js +0 -23
- package/components/MultiSelect/MultiSelect.test.js +0 -73
- package/components/VirtualWalkthrough/TfXrNavigation.test.js +0 -110
- package/components/VirtualWalkthrough/boundary-ring.test.js +0 -109
- package/components/VirtualWalkthrough/boundary-wall.test.js +0 -203
- package/components/VirtualWalkthrough/groundPlane.test.js +0 -45
- package/components/VirtualWalkthrough/splatFormat.test.js +0 -51
- package/components/VirtualWalkthrough/vr-annotation-panel-layout.test.js +0 -26
- package/components/VirtualWalkthrough/xr-annotation-targeting.test.js +0 -66
- package/components/VirtualWalkthrough/xr-button-arming.test.js +0 -35
- package/components/VirtualWalkthrough/xr-button-hold.test.js +0 -57
- package/components/VirtualWalkthrough/xr-exit-button.test.js +0 -23
- package/components/VirtualWalkthrough/xr-face-buttons.test.js +0 -82
- package/components/VirtualWalkthrough/xr-gaze-dwell-state.test.js +0 -61
- package/components/VirtualWalkthrough/xr-interactive-ui.test.js +0 -165
- package/components/VirtualWalkthrough/xr-progress-pie.test.js +0 -79
- package/components/VirtualWalkthrough/xr-ray-quad.test.js +0 -37
- package/components/VirtualWalkthrough/xr-scene-bounds.test.js +0 -70
- package/components/VirtualWalkthrough/xr-teleport-gesture.test.js +0 -90
- package/components/table/sort.test.js +0 -35
- package/utils/date.test.js +0 -84
- package/utils/text.test.js +0 -21
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useState, useCallback, useEffect } from 'react';
|
|
2
2
|
import { marked } from 'marked';
|
|
3
3
|
import './styles.scss';
|
|
4
|
-
import { jsx
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
5
6
|
const Markdown = ({
|
|
6
7
|
value,
|
|
7
8
|
style
|
|
@@ -14,7 +15,7 @@ const Markdown = ({
|
|
|
14
15
|
useEffect(() => {
|
|
15
16
|
void parseValue(value);
|
|
16
17
|
}, [parseValue, value]);
|
|
17
|
-
return /*#__PURE__*/
|
|
18
|
+
return /*#__PURE__*/jsx("div", {
|
|
18
19
|
className: "markdown",
|
|
19
20
|
style: style,
|
|
20
21
|
dangerouslySetInnerHTML: {
|
|
@@ -22,4 +23,5 @@ const Markdown = ({
|
|
|
22
23
|
}
|
|
23
24
|
});
|
|
24
25
|
};
|
|
25
|
-
|
|
26
|
+
|
|
27
|
+
export { Markdown as default };
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import 'react';
|
|
2
|
+
import 'lodash';
|
|
3
|
+
import 'luxon';
|
|
4
|
+
import useDeviceInfo from '../../utils/useDeviceInfo.js';
|
|
5
|
+
import Icon from '../Icon/Icon.js';
|
|
4
6
|
import './styles.scss';
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
function Message(props) {
|
|
7
10
|
const {
|
|
8
11
|
type,
|
|
9
12
|
priority,
|
|
@@ -18,31 +21,31 @@ export default function Message(props) {
|
|
|
18
21
|
const {
|
|
19
22
|
isMobile
|
|
20
23
|
} = useDeviceInfo();
|
|
21
|
-
return /*#__PURE__*/
|
|
24
|
+
return /*#__PURE__*/jsxs("div", {
|
|
22
25
|
className: `tw-message tw-message--${type} tw-message--${priority} ${isMobile ? 'tw-message--mobile' : ''}`,
|
|
23
|
-
children: [type === 'toast' && /*#__PURE__*/
|
|
26
|
+
children: [type === 'toast' && /*#__PURE__*/jsx("div", {
|
|
24
27
|
className: "tw-message--left-side",
|
|
25
|
-
children: /*#__PURE__*/
|
|
28
|
+
children: /*#__PURE__*/jsx(Icon, {
|
|
26
29
|
name: priority,
|
|
27
30
|
className: "left-side--icon"
|
|
28
31
|
})
|
|
29
|
-
}), /*#__PURE__*/
|
|
32
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
30
33
|
className: "tw-message--container",
|
|
31
|
-
children: [/*#__PURE__*/
|
|
34
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
32
35
|
className: "tw-message--main-content",
|
|
33
|
-
children: [type === 'page' && /*#__PURE__*/
|
|
36
|
+
children: [type === 'page' && /*#__PURE__*/jsx(Icon, {
|
|
34
37
|
name: priority,
|
|
35
38
|
className: "main-content--icon"
|
|
36
|
-
}), /*#__PURE__*/
|
|
39
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
37
40
|
className: "tw-message--main-body",
|
|
38
|
-
children: [title && /*#__PURE__*/
|
|
41
|
+
children: [title && /*#__PURE__*/jsx("div", {
|
|
39
42
|
className: "tw-message--title-container",
|
|
40
|
-
children: /*#__PURE__*/
|
|
43
|
+
children: /*#__PURE__*/jsx("h4", {
|
|
41
44
|
children: title
|
|
42
45
|
})
|
|
43
|
-
}), typeof body === 'string' ? /*#__PURE__*/
|
|
46
|
+
}), typeof body === 'string' ? /*#__PURE__*/jsx("p", {
|
|
44
47
|
children: body
|
|
45
|
-
}) : body, type === 'page' && pageButtons && pageButtons.length > 0 ? /*#__PURE__*/
|
|
48
|
+
}) : body, type === 'page' && pageButtons && pageButtons.length > 0 ? /*#__PURE__*/jsx("div", {
|
|
46
49
|
className: "tw-message--actions-container",
|
|
47
50
|
children: pageButtons?.map((pageButton, index) => {
|
|
48
51
|
const pageButtonWithKey = {
|
|
@@ -57,18 +60,20 @@ export default function Message(props) {
|
|
|
57
60
|
})
|
|
58
61
|
}) : null]
|
|
59
62
|
})]
|
|
60
|
-
}), type === 'toast' && actionText ? /*#__PURE__*/
|
|
63
|
+
}), type === 'toast' && actionText ? /*#__PURE__*/jsx("button", {
|
|
61
64
|
onClick: actionHandler,
|
|
62
65
|
className: "tw-message--action-text",
|
|
63
66
|
children: actionText
|
|
64
|
-
}) : showCloseButton ? /*#__PURE__*/
|
|
67
|
+
}) : showCloseButton ? /*#__PURE__*/jsx("button", {
|
|
65
68
|
onClick: onClose,
|
|
66
69
|
className: "icon-container",
|
|
67
|
-
children: /*#__PURE__*/
|
|
70
|
+
children: /*#__PURE__*/jsx(Icon, {
|
|
68
71
|
name: "close",
|
|
69
72
|
className: "page-message--close-icon"
|
|
70
73
|
})
|
|
71
74
|
}) : null]
|
|
72
75
|
})]
|
|
73
76
|
});
|
|
74
|
-
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export { Message as default };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useState, useEffect } from 'react';
|
|
2
2
|
import { Box } from '@mui/material';
|
|
3
|
-
import Icon from '../Icon/Icon';
|
|
4
|
-
import IconTooltip from '../IconTooltip';
|
|
5
|
-
import PillList from '../PillList';
|
|
3
|
+
import Icon from '../Icon/Icon.js';
|
|
4
|
+
import IconTooltip from '../IconTooltip/index.js';
|
|
5
|
+
import PillList from '../PillList/index.js';
|
|
6
6
|
import './styles.scss';
|
|
7
|
-
import {
|
|
8
|
-
|
|
7
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
function MultiSelect(props) {
|
|
9
10
|
const {
|
|
10
11
|
className,
|
|
11
12
|
disabled,
|
|
@@ -58,46 +59,46 @@ export default function MultiSelect(props) {
|
|
|
58
59
|
value: value ? valueRenderer(value) : missingValuePlaceholder || ''
|
|
59
60
|
};
|
|
60
61
|
}).filter(data => data.value);
|
|
61
|
-
return /*#__PURE__*/
|
|
62
|
+
return /*#__PURE__*/jsxs(Box, {
|
|
62
63
|
className: `multi-select ${className}`,
|
|
63
64
|
sx: sx,
|
|
64
|
-
children: [label && /*#__PURE__*/
|
|
65
|
+
children: [label && /*#__PURE__*/jsxs("label", {
|
|
65
66
|
htmlFor: id,
|
|
66
67
|
className: "multi-select__label",
|
|
67
|
-
children: [label, " ", tooltipTitle && /*#__PURE__*/
|
|
68
|
+
children: [label, " ", tooltipTitle && /*#__PURE__*/jsx(IconTooltip, {
|
|
68
69
|
title: tooltipTitle
|
|
69
70
|
})]
|
|
70
|
-
}), /*#__PURE__*/
|
|
71
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
71
72
|
className: `multi-select__container ${fullWidth ? 'multi-select__container--fullWidth' : ''}`,
|
|
72
73
|
onBlur: onBlurHandler,
|
|
73
74
|
tabIndex: 0,
|
|
74
|
-
children: [/*#__PURE__*/
|
|
75
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
75
76
|
id: id,
|
|
76
77
|
className: `multi-select__values${disabled ? '--disabled' : ''}${openedOptions ? ' open' : ''}${errorText ? ' error' : ''}`,
|
|
77
78
|
onClick: toggleOptions,
|
|
78
|
-
children: [selectedOptions.length > 0 ? /*#__PURE__*/
|
|
79
|
+
children: [selectedOptions.length > 0 ? /*#__PURE__*/jsx(PillList, {
|
|
79
80
|
data: valuesPillData,
|
|
80
81
|
onRemove: onRemove,
|
|
81
82
|
onClick: onPillClick,
|
|
82
83
|
className: pillListClassName
|
|
83
|
-
}) : /*#__PURE__*/
|
|
84
|
+
}) : /*#__PURE__*/jsx("p", {
|
|
84
85
|
className: "multi-select__placeholder-text",
|
|
85
86
|
children: placeHolder
|
|
86
|
-
}), /*#__PURE__*/
|
|
87
|
+
}), /*#__PURE__*/jsx("div", {
|
|
87
88
|
className: 'multi-select__values__icon-button',
|
|
88
89
|
"aria-label": "show-options",
|
|
89
|
-
children: /*#__PURE__*/
|
|
90
|
+
children: /*#__PURE__*/jsx(Icon, {
|
|
90
91
|
name: openedOptions ? 'chevronUp' : 'chevronDown',
|
|
91
92
|
className: `multi-select__values__icon-right${disabled ? '--disabled' : ''}`
|
|
92
93
|
})
|
|
93
94
|
})]
|
|
94
|
-
}), options && unselectedOptions.length > 0 && openedOptions && /*#__PURE__*/
|
|
95
|
+
}), options && unselectedOptions.length > 0 && openedOptions && /*#__PURE__*/jsx("div", {
|
|
95
96
|
className: "multi-select__options-container",
|
|
96
|
-
children: /*#__PURE__*/
|
|
97
|
+
children: /*#__PURE__*/jsx("ul", {
|
|
97
98
|
className: 'multi-select__options',
|
|
98
99
|
children: unselectedOptions.map((optionKey, index) => {
|
|
99
100
|
const optionValue = options.get(optionKey);
|
|
100
|
-
return /*#__PURE__*/
|
|
101
|
+
return /*#__PURE__*/jsx("li", {
|
|
101
102
|
className: "select-value",
|
|
102
103
|
onClick: () => onAdd(optionKey),
|
|
103
104
|
children: optionValue ? valueRenderer(optionValue) : missingValuePlaceholder || ''
|
|
@@ -105,20 +106,22 @@ export default function MultiSelect(props) {
|
|
|
105
106
|
})
|
|
106
107
|
})
|
|
107
108
|
})]
|
|
108
|
-
}), helperText && /*#__PURE__*/
|
|
109
|
+
}), helperText && /*#__PURE__*/jsx("label", {
|
|
109
110
|
htmlFor: id,
|
|
110
111
|
className: "multi-select__help-text",
|
|
111
112
|
children: helperText
|
|
112
|
-
}), errorText && /*#__PURE__*/
|
|
113
|
+
}), errorText && /*#__PURE__*/jsxs("div", {
|
|
113
114
|
className: "multi-select__error",
|
|
114
|
-
children: [/*#__PURE__*/
|
|
115
|
+
children: [/*#__PURE__*/jsx(Icon, {
|
|
115
116
|
name: "error",
|
|
116
117
|
className: "multi-select__error-icon"
|
|
117
|
-
}), /*#__PURE__*/
|
|
118
|
+
}), /*#__PURE__*/jsx("label", {
|
|
118
119
|
htmlFor: id,
|
|
119
120
|
className: "multi-select__error-text",
|
|
120
121
|
children: errorText
|
|
121
122
|
})]
|
|
122
123
|
})]
|
|
123
124
|
});
|
|
124
|
-
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export { MultiSelect as default };
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import 'react';
|
|
2
2
|
import './styles.scss';
|
|
3
|
-
import { jsx
|
|
4
|
-
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
function NavFooter(props) {
|
|
5
6
|
const {
|
|
6
7
|
children
|
|
7
8
|
} = props;
|
|
8
|
-
return /*#__PURE__*/
|
|
9
|
+
return /*#__PURE__*/jsx("div", {
|
|
9
10
|
className: "nav-footer",
|
|
10
11
|
children: children
|
|
11
12
|
});
|
|
12
|
-
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { NavFooter as default };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
|
-
import theme from '../../theme';
|
|
3
|
-
import Icon from '../Icon/Icon';
|
|
2
|
+
import theme from '../../theme.js';
|
|
3
|
+
import Icon from '../Icon/Icon.js';
|
|
4
4
|
import './styles.scss';
|
|
5
|
-
import {
|
|
6
|
-
|
|
5
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
function NavItem(props) {
|
|
7
8
|
const {
|
|
8
9
|
label,
|
|
9
10
|
icon,
|
|
@@ -42,7 +43,7 @@ export default function NavItem(props) {
|
|
|
42
43
|
}
|
|
43
44
|
};
|
|
44
45
|
const customLabel = typeof label !== 'string';
|
|
45
|
-
return /*#__PURE__*/
|
|
46
|
+
return /*#__PURE__*/jsxs("div", {
|
|
46
47
|
className: `
|
|
47
48
|
nav-item
|
|
48
49
|
${selected ? 'nav-item--selected' : ''}
|
|
@@ -50,30 +51,32 @@ export default function NavItem(props) {
|
|
|
50
51
|
${isFooter ? 'nav-item--footer' : ''}
|
|
51
52
|
${children ? 'nav-item--has-children' : ''}
|
|
52
53
|
`,
|
|
53
|
-
children: [/*#__PURE__*/
|
|
54
|
+
children: [/*#__PURE__*/jsxs("button", {
|
|
54
55
|
className: `
|
|
55
56
|
${customLabel ? 'nav-item-custom-content' : 'nav-item-content'}
|
|
56
57
|
${disabled ? 'nav-item--disabled' : ''}
|
|
57
58
|
`,
|
|
58
59
|
onClick: onClickHandler,
|
|
59
60
|
id: id,
|
|
60
|
-
children: [icon && /*#__PURE__*/
|
|
61
|
+
children: [icon && /*#__PURE__*/jsx(Icon, {
|
|
61
62
|
name: icon,
|
|
62
63
|
className: "nav-item--icon",
|
|
63
64
|
fillColor: iconColor ?? theme.palette.TwClrIcnSecondary
|
|
64
|
-
}), !href && /*#__PURE__*/
|
|
65
|
+
}), !href && /*#__PURE__*/jsx("span", {
|
|
65
66
|
className: "nav-item--label",
|
|
66
67
|
children: label
|
|
67
|
-
}), href && /*#__PURE__*/
|
|
68
|
+
}), href && /*#__PURE__*/jsx("a", {
|
|
68
69
|
className: "nav-item--label nav-item--anchor",
|
|
69
70
|
href: href,
|
|
70
71
|
rel: "noopener noreferrer",
|
|
71
72
|
target: "_external",
|
|
72
73
|
children: label
|
|
73
|
-
}), children && /*#__PURE__*/
|
|
74
|
+
}), children && /*#__PURE__*/jsx(Icon, {
|
|
74
75
|
name: open ? 'chevronUp' : 'chevronDown',
|
|
75
76
|
className: "nav-item--arrow"
|
|
76
77
|
})]
|
|
77
78
|
}), children && open && children]
|
|
78
79
|
});
|
|
79
|
-
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export { NavItem as default };
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import 'react';
|
|
2
2
|
import './styles.scss';
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
function NavSection(props) {
|
|
5
6
|
const {
|
|
6
7
|
title,
|
|
7
8
|
separator = true
|
|
8
9
|
} = props;
|
|
9
|
-
return /*#__PURE__*/
|
|
10
|
+
return /*#__PURE__*/jsxs("div", {
|
|
10
11
|
className: "nav-section",
|
|
11
|
-
children: [separator && /*#__PURE__*/
|
|
12
|
+
children: [separator && /*#__PURE__*/jsx("div", {
|
|
12
13
|
className: "divider"
|
|
13
|
-
}), title && /*#__PURE__*/
|
|
14
|
+
}), title && /*#__PURE__*/jsx("span", {
|
|
14
15
|
className: `nav-section--title ${separator ? '' : 'no-separator'}`,
|
|
15
16
|
children: title
|
|
16
17
|
})]
|
|
17
18
|
});
|
|
18
|
-
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { NavSection as default };
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Box, ButtonBase
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import 'react';
|
|
2
|
+
import { useTheme, Box, ButtonBase } from '@mui/material';
|
|
3
|
+
import 'lodash';
|
|
4
|
+
import 'luxon';
|
|
5
|
+
import useDeviceInfo from '../../utils/useDeviceInfo.js';
|
|
6
|
+
import Icon from '../Icon/Icon.js';
|
|
5
7
|
import './styles.scss';
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
function Navbar(props) {
|
|
8
11
|
const {
|
|
9
12
|
children,
|
|
10
13
|
setShowNavBar,
|
|
@@ -14,21 +17,21 @@ export default function Navbar(props) {
|
|
|
14
17
|
isDesktop
|
|
15
18
|
} = useDeviceInfo();
|
|
16
19
|
const theme = useTheme();
|
|
17
|
-
return /*#__PURE__*/
|
|
20
|
+
return /*#__PURE__*/jsxs("div", {
|
|
18
21
|
className: 'navbar' + (backgroundTransparent ? ' transparent' : ''),
|
|
19
|
-
children: [!isDesktop && /*#__PURE__*/
|
|
22
|
+
children: [!isDesktop && /*#__PURE__*/jsx(Box, {
|
|
20
23
|
sx: {
|
|
21
24
|
display: 'flex',
|
|
22
25
|
justifyContent: 'start'
|
|
23
26
|
},
|
|
24
|
-
children: /*#__PURE__*/
|
|
27
|
+
children: /*#__PURE__*/jsx(ButtonBase, {
|
|
25
28
|
onClick: () => setShowNavBar(false),
|
|
26
29
|
sx: {
|
|
27
30
|
background: 'none',
|
|
28
31
|
border: 'none',
|
|
29
32
|
cursor: 'pointer'
|
|
30
33
|
},
|
|
31
|
-
children: /*#__PURE__*/
|
|
34
|
+
children: /*#__PURE__*/jsx(Icon, {
|
|
32
35
|
name: "close",
|
|
33
36
|
size: "medium",
|
|
34
37
|
style: {
|
|
@@ -40,4 +43,6 @@ export default function Navbar(props) {
|
|
|
40
43
|
})
|
|
41
44
|
}), children]
|
|
42
45
|
});
|
|
43
|
-
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { Navbar as default };
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import 'react';
|
|
2
2
|
import './styles.scss';
|
|
3
|
-
import { jsx
|
|
4
|
-
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
function SubNavbar(props) {
|
|
5
6
|
const {
|
|
6
7
|
children
|
|
7
8
|
} = props;
|
|
8
|
-
return /*#__PURE__*/
|
|
9
|
+
return /*#__PURE__*/jsx("div", {
|
|
9
10
|
className: "subnavbar",
|
|
10
11
|
children: children
|
|
11
12
|
});
|
|
12
|
-
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { SubNavbar as default };
|
package/components/Note.js
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Box, Typography
|
|
3
|
-
import { jsx
|
|
4
|
-
|
|
1
|
+
import 'react';
|
|
2
|
+
import { useTheme, Box, Typography } from '@mui/material';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
function Note({
|
|
5
6
|
children
|
|
6
7
|
}) {
|
|
7
8
|
const theme = useTheme();
|
|
8
|
-
return /*#__PURE__*/
|
|
9
|
+
return /*#__PURE__*/jsx(Box, {
|
|
9
10
|
sx: {
|
|
10
11
|
borderRadius: 8,
|
|
11
12
|
backgroundColor: theme.palette.neutral[200],
|
|
12
13
|
marginBottom: theme.spacing(3),
|
|
13
14
|
padding: theme.spacing(2)
|
|
14
15
|
},
|
|
15
|
-
children: /*#__PURE__*/
|
|
16
|
+
children: /*#__PURE__*/jsx(Typography, {
|
|
16
17
|
component: "p",
|
|
17
18
|
children: children
|
|
18
19
|
})
|
|
19
20
|
});
|
|
20
|
-
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { Note as default };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
2
|
import { IconButton } from '@mui/material';
|
|
3
|
-
import Icon from '../Icon/Icon';
|
|
3
|
+
import Icon from '../Icon/Icon.js';
|
|
4
4
|
import './styles.scss';
|
|
5
|
-
import { jsx
|
|
5
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
|
+
|
|
6
7
|
const OverlayModal = props => {
|
|
7
8
|
const {
|
|
8
9
|
children,
|
|
@@ -32,33 +33,34 @@ const OverlayModal = props => {
|
|
|
32
33
|
onClose?.();
|
|
33
34
|
}
|
|
34
35
|
};
|
|
35
|
-
return open ? /*#__PURE__*/
|
|
36
|
+
return open ? /*#__PURE__*/jsx("div", {
|
|
36
37
|
className: 'overlay-modal-backdrop',
|
|
37
38
|
onClick: handleBackdropClick,
|
|
38
|
-
children: /*#__PURE__*/
|
|
39
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
39
40
|
className: 'overlay-modal-container',
|
|
40
|
-
children: [/*#__PURE__*/
|
|
41
|
+
children: [/*#__PURE__*/jsx(IconButton, {
|
|
41
42
|
onClick: onClose,
|
|
42
43
|
className: 'overlay-modal-close',
|
|
43
|
-
children: /*#__PURE__*/
|
|
44
|
+
children: /*#__PURE__*/jsx(Icon, {
|
|
44
45
|
size: 'xlarge',
|
|
45
46
|
name: "close",
|
|
46
47
|
className: 'icon-close'
|
|
47
48
|
})
|
|
48
|
-
}), /*#__PURE__*/
|
|
49
|
+
}), /*#__PURE__*/jsx("div", {
|
|
49
50
|
className: "overlay-modal",
|
|
50
51
|
style: {
|
|
51
52
|
minHeight
|
|
52
53
|
},
|
|
53
|
-
children: /*#__PURE__*/
|
|
54
|
+
children: /*#__PURE__*/jsx("div", {
|
|
54
55
|
className: "overlay-modal-content",
|
|
55
56
|
children: children
|
|
56
57
|
})
|
|
57
|
-
}), belowComponent && /*#__PURE__*/
|
|
58
|
+
}), belowComponent && /*#__PURE__*/jsx("div", {
|
|
58
59
|
className: "overlay-modal-below",
|
|
59
60
|
children: belowComponent
|
|
60
61
|
})]
|
|
61
62
|
})
|
|
62
63
|
}) : null;
|
|
63
64
|
};
|
|
64
|
-
|
|
65
|
+
|
|
66
|
+
export { OverlayModal as default };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import useDeviceInfo from '../../utils/useDeviceInfo';
|
|
4
|
-
import BusySpinner from '../BusySpinner';
|
|
5
|
-
import FormBottomBar from '../FormBottomBar';
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { useTheme, Box } from '@mui/material';
|
|
3
|
+
import useDeviceInfo from '../../utils/useDeviceInfo.js';
|
|
4
|
+
import BusySpinner from '../BusySpinner/index.js';
|
|
5
|
+
import FormBottomBar from '../FormBottomBar/index.js';
|
|
6
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
function PageForm(props) {
|
|
8
9
|
const {
|
|
9
10
|
children,
|
|
10
11
|
className,
|
|
@@ -24,17 +25,19 @@ export default function PageForm(props) {
|
|
|
24
25
|
await onSave(); // <-- we want all onSaves to be async
|
|
25
26
|
setProcessing(false);
|
|
26
27
|
};
|
|
27
|
-
return /*#__PURE__*/
|
|
28
|
-
children: [processing && /*#__PURE__*/
|
|
28
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
29
|
+
children: [processing && /*#__PURE__*/jsx(BusySpinner, {
|
|
29
30
|
withSkrim: true
|
|
30
|
-
}), /*#__PURE__*/
|
|
31
|
+
}), /*#__PURE__*/jsx(Box, {
|
|
31
32
|
className: className,
|
|
32
33
|
paddingBottom: hideEdit ? theme.spacing(4) : theme.spacing(isMobile ? 25 : 15),
|
|
33
34
|
style: style,
|
|
34
35
|
children: children
|
|
35
|
-
}), !hideEdit && /*#__PURE__*/
|
|
36
|
+
}), !hideEdit && /*#__PURE__*/jsx(FormBottomBar, {
|
|
36
37
|
onSave: handleSave,
|
|
37
38
|
...bottomBarProps
|
|
38
39
|
})]
|
|
39
40
|
});
|
|
40
|
-
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { PageForm as default };
|