@terraware/web-components 4.2.25 → 4.2.26-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (323) hide show
  1. package/_vendor/react-multi-carousel/index.js +13 -0
  2. package/_vendor/react-multi-carousel/lib/Arrows.js +13 -0
  3. package/_vendor/react-multi-carousel/lib/Carousel.js +19 -0
  4. package/_vendor/react-multi-carousel/lib/CarouselItems.js +14 -0
  5. package/_vendor/react-multi-carousel/lib/Dots.js +16 -0
  6. package/_vendor/react-multi-carousel/lib/index.js +13 -0
  7. package/_vendor/react-multi-carousel/lib/types.js +13 -0
  8. package/_vendor/react-multi-carousel/lib/utils/clones.js +14 -0
  9. package/_vendor/react-multi-carousel/lib/utils/common.js +13 -0
  10. package/_vendor/react-multi-carousel/lib/utils/dots.js +14 -0
  11. package/_vendor/react-multi-carousel/lib/utils/elementWidth.js +12 -0
  12. package/_vendor/react-multi-carousel/lib/utils/index.js +20 -0
  13. package/_vendor/react-multi-carousel/lib/utils/mouseOrTouchMove.js +14 -0
  14. package/_vendor/react-multi-carousel/lib/utils/next.js +13 -0
  15. package/_vendor/react-multi-carousel/lib/utils/previous.js +14 -0
  16. package/_vendor/react-multi-carousel/lib/utils/throttle.js +12 -0
  17. package/_vendor/react-multi-carousel/lib/utils/throwError.js +14 -0
  18. package/_virtual/Arrows.js +3 -0
  19. package/_virtual/Carousel.js +3 -0
  20. package/_virtual/CarouselItems.js +3 -0
  21. package/_virtual/Dots.js +3 -0
  22. package/_virtual/_commonjsHelpers.js +5 -0
  23. package/_virtual/clones.js +3 -0
  24. package/_virtual/common.js +3 -0
  25. package/_virtual/dots2.js +3 -0
  26. package/_virtual/elementWidth.js +3 -0
  27. package/_virtual/index.js +7 -0
  28. package/_virtual/index2.js +3 -0
  29. package/_virtual/index3.js +3 -0
  30. package/_virtual/mouseOrTouchMove.js +3 -0
  31. package/_virtual/next.js +3 -0
  32. package/_virtual/previous.js +3 -0
  33. package/_virtual/throttle.js +3 -0
  34. package/_virtual/throwError.js +3 -0
  35. package/_virtual/types.js +3 -0
  36. package/components/AntSwitch/index.js +6 -4
  37. package/components/Autocomplete/Autocomplete.js +19 -16
  38. package/components/Badge/index.js +8 -6
  39. package/components/BusySpinner/index.js +11 -8
  40. package/components/Button/Button.js +12 -9
  41. package/components/Checkbox.js +11 -8
  42. package/components/Confirm/index.js +14 -17
  43. package/components/DatePicker/DatePicker.js +19 -23
  44. package/components/DialogBox/DialogBox.js +25 -20
  45. package/components/Divisor.js +11 -8
  46. package/components/Dropdown.js +18 -15
  47. package/components/EditableTable/index.js +17 -14
  48. package/components/ErrorBox/ErrorBox.js +18 -15
  49. package/components/FileChooser/index.js +20 -15
  50. package/components/FormBottomBar/index.js +15 -12
  51. package/components/Icon/Icon.js +9 -6
  52. package/components/Icon/icons/index.js +252 -251
  53. package/components/IconTooltip/index.js +14 -9
  54. package/components/Map/MapBox.js +35 -32
  55. package/components/Map/MapContainer.js +10 -6
  56. package/components/Map/MapDateSliderControl.js +14 -12
  57. package/components/Map/MapDrawer.js +16 -12
  58. package/components/Map/MapLegend.js +32 -28
  59. package/components/Map/MapViewStyleControl.js +11 -9
  60. package/components/Map/ReactMapboxWrapper.js +1 -1
  61. package/components/Map/index.js +13 -11
  62. package/components/Map/types.js +5 -3
  63. package/components/Map/useMaintainLayerOrder.js +5 -2
  64. package/components/Markdown/index.js +6 -4
  65. package/components/Message/Message.js +25 -20
  66. package/components/MultiSelect/index.js +26 -23
  67. package/components/Navbar/NavFooter.js +8 -5
  68. package/components/Navbar/NavItem.js +14 -11
  69. package/components/Navbar/NavSection.js +10 -7
  70. package/components/Navbar/Navbar.js +16 -11
  71. package/components/Navbar/SubNavbar.js +8 -5
  72. package/components/Note.js +10 -7
  73. package/components/OverlayModal/OverlayModal.js +13 -11
  74. package/components/PageForm/index.js +15 -12
  75. package/components/PhotoChooser/index.js +30 -25
  76. package/components/PhotosCarousel/index.d.ts.map +1 -1
  77. package/components/PhotosCarousel/index.js +17 -13
  78. package/components/Pill/index.js +14 -11
  79. package/components/PillList/index.js +10 -7
  80. package/components/PlacementWrapper/index.js +8 -6
  81. package/components/PopoverMenu/Popover.js +12 -9
  82. package/components/PopoverMenu/index.js +14 -11
  83. package/components/PopoverMultiSelect/index.js +14 -11
  84. package/components/ProgressCircle/ProgressCircle.js +12 -9
  85. package/components/RadioButton.js +9 -6
  86. package/components/Select/Select.js +9 -6
  87. package/components/Select/SelectT.js +30 -26
  88. package/components/Separator/index.js +7 -5
  89. package/components/Size.js +1 -1
  90. package/components/Slider/index.js +9 -6
  91. package/components/SummaryBox.js +13 -10
  92. package/components/Tabs/index.js +22 -18
  93. package/components/TextTruncated/index.js +13 -20
  94. package/components/Textfield/Textfield.js +34 -28
  95. package/components/Textfield/TruncatedTextArea.js +12 -10
  96. package/components/TimelineSlider/TimelineMarker.js +8 -6
  97. package/components/TimelineSlider/TimelineRail.js +6 -4
  98. package/components/TimelineSlider/index.js +14 -12
  99. package/components/Tooltip/Tooltip.js +12 -7
  100. package/components/ViewPhotosDialog/index.js +14 -11
  101. package/components/VirtualWalkthrough/Annotation.js +10 -8
  102. package/components/VirtualWalkthrough/AnnotationEditPane.js +23 -21
  103. package/components/VirtualWalkthrough/AnnotationPanel.js +16 -14
  104. package/components/VirtualWalkthrough/Application.js +9 -7
  105. package/components/VirtualWalkthrough/AutoRotator.js +5 -3
  106. package/components/VirtualWalkthrough/BlockingSpinner.js +10 -7
  107. package/components/VirtualWalkthrough/BoundaryRing.js +8 -6
  108. package/components/VirtualWalkthrough/BoundaryWall.js +8 -6
  109. package/components/VirtualWalkthrough/CameraInfo.js +15 -13
  110. package/components/VirtualWalkthrough/ControlsInfoPane.js +59 -57
  111. package/components/VirtualWalkthrough/GradientSky.js +8 -6
  112. package/components/VirtualWalkthrough/SplatControls.js +37 -35
  113. package/components/VirtualWalkthrough/SplatCrop.js +6 -4
  114. package/components/VirtualWalkthrough/SplatFadeCrop.js +7 -5
  115. package/components/VirtualWalkthrough/SplatModel.js +17 -14
  116. package/components/VirtualWalkthrough/SplatRevealRain.js +6 -4
  117. package/components/VirtualWalkthrough/TfAnnotationManager.js +8 -5
  118. package/components/VirtualWalkthrough/TfXrNavigation.js +7 -5
  119. package/components/VirtualWalkthrough/VirtualWalkthroughViewer.js +47 -45
  120. package/components/VirtualWalkthrough/VrAnnotationPanel.js +9 -7
  121. package/components/VirtualWalkthrough/XrAnnotationInteraction.js +9 -7
  122. package/components/VirtualWalkthrough/XrExitButton.js +9 -7
  123. package/components/VirtualWalkthrough/XrGazeDwell.js +9 -7
  124. package/components/VirtualWalkthrough/XrPointerRay.js +9 -7
  125. package/components/VirtualWalkthrough/boundary-ring.js +7 -5
  126. package/components/VirtualWalkthrough/boundary-wall.js +8 -6
  127. package/components/VirtualWalkthrough/groundPlane.js +6 -3
  128. package/components/VirtualWalkthrough/gsplat-fade-crop-effect.js +5 -2
  129. package/components/VirtualWalkthrough/splatFormat.js +6 -4
  130. package/components/VirtualWalkthrough/vr-annotation-panel-layout.js +4 -2
  131. package/components/VirtualWalkthrough/vr-annotation-panel.js +8 -5
  132. package/components/VirtualWalkthrough/walkthrough-camera.js +6 -4
  133. package/components/VirtualWalkthrough/xr-annotation-candidates.js +8 -6
  134. package/components/VirtualWalkthrough/xr-annotation-interaction.js +9 -6
  135. package/components/VirtualWalkthrough/xr-annotation-targeting.js +5 -2
  136. package/components/VirtualWalkthrough/xr-button-arming.js +4 -2
  137. package/components/VirtualWalkthrough/xr-button-hold.js +5 -3
  138. package/components/VirtualWalkthrough/xr-exit-button.js +10 -8
  139. package/components/VirtualWalkthrough/xr-face-buttons.js +6 -4
  140. package/components/VirtualWalkthrough/xr-gaze-dwell-state.js +5 -3
  141. package/components/VirtualWalkthrough/xr-gaze-dwell.js +9 -7
  142. package/components/VirtualWalkthrough/xr-interactive-ui.js +10 -8
  143. package/components/VirtualWalkthrough/xr-pointer-ray.js +5 -3
  144. package/components/VirtualWalkthrough/xr-progress-pie.js +4 -2
  145. package/components/VirtualWalkthrough/xr-ray-quad.js +5 -2
  146. package/components/VirtualWalkthrough/xr-scene-bounds.js +5 -3
  147. package/components/VirtualWalkthrough/xr-teleport-gesture.js +4 -2
  148. package/components/svg/BlobbyGrayIconImage.js +13 -11
  149. package/components/svg/BlobbyGrayIconImport.js +13 -11
  150. package/components/svg/BlobbyGrayIconUploadToTheCloud.js +13 -11
  151. package/components/svg/BlobbyIconCloudChecked.js +41 -39
  152. package/components/svg/BlobbyIconExportOrUploadPhoto.js +41 -39
  153. package/components/svg/BlobbyIconFolder.js +41 -39
  154. package/components/svg/BlobbyIconGraphReport.js +41 -39
  155. package/components/svg/BlobbyIconHappy.js +41 -39
  156. package/components/svg/BlobbyIconHeartMonitor.js +41 -39
  157. package/components/svg/BlobbyIconLeaf.js +41 -39
  158. package/components/svg/BlobbyIconLibrary.js +41 -39
  159. package/components/svg/BlobbyIconNursery.js +41 -39
  160. package/components/svg/BlobbyIconOrganization.js +41 -39
  161. package/components/svg/BlobbyIconParchment.js +41 -39
  162. package/components/svg/BlobbyIconPeople.js +41 -39
  163. package/components/svg/BlobbyIconSeedBank.js +41 -39
  164. package/components/svg/BlobbyIconSeedling.js +41 -39
  165. package/components/svg/BlobbyIconSeeds.js +41 -39
  166. package/components/svg/BlobbyIconSite.js +42 -40
  167. package/components/svg/BlobbyIconSparkles.js +41 -39
  168. package/components/svg/BlobbyIconWrench.js +41 -39
  169. package/components/svg/Bug.js +8 -6
  170. package/components/svg/Calendar.js +8 -6
  171. package/components/svg/CaretDown.js +8 -6
  172. package/components/svg/CaretLeft.js +8 -6
  173. package/components/svg/CaretRight.js +8 -6
  174. package/components/svg/CaretUp.js +8 -6
  175. package/components/svg/ChevronDown.js +8 -6
  176. package/components/svg/ChevronUp.js +8 -6
  177. package/components/svg/Close.js +8 -6
  178. package/components/svg/Critical.js +8 -6
  179. package/components/svg/Edit.js +41 -39
  180. package/components/svg/Error.js +8 -6
  181. package/components/svg/Filter.js +8 -6
  182. package/components/svg/Folder.js +8 -6
  183. package/components/svg/Help.js +8 -6
  184. package/components/svg/Home.js +8 -6
  185. package/components/svg/IconAdd.js +8 -6
  186. package/components/svg/IconArrowRight.js +8 -6
  187. package/components/svg/IconBusinessNetwork.js +8 -6
  188. package/components/svg/IconCalendar.js +8 -6
  189. package/components/svg/IconCancel.js +8 -6
  190. package/components/svg/IconChargingBattery.js +8 -6
  191. package/components/svg/IconChecklist.js +8 -6
  192. package/components/svg/IconCheckmark.js +8 -6
  193. package/components/svg/IconCoinInHand.js +8 -6
  194. package/components/svg/IconColumns.js +8 -6
  195. package/components/svg/IconComment.js +8 -6
  196. package/components/svg/IconDashboard.js +8 -6
  197. package/components/svg/IconDataMigration.js +8 -6
  198. package/components/svg/IconDocument.js +8 -6
  199. package/components/svg/IconDownloadFromTheCloud.js +8 -6
  200. package/components/svg/IconEdit.js +8 -6
  201. package/components/svg/IconExpand.js +8 -6
  202. package/components/svg/IconExport.js +8 -6
  203. package/components/svg/IconExternalLink.js +8 -6
  204. package/components/svg/IconEye.js +8 -6
  205. package/components/svg/IconEyeOff.js +8 -6
  206. package/components/svg/IconFile.js +8 -6
  207. package/components/svg/IconFolder.js +8 -6
  208. package/components/svg/IconFullScreen.js +8 -6
  209. package/components/svg/IconFutures.js +8 -6
  210. package/components/svg/IconGraphReport.js +8 -6
  211. package/components/svg/IconHeartMonitor.js +8 -6
  212. package/components/svg/IconHelp.js +8 -6
  213. package/components/svg/IconHistory.js +8 -6
  214. package/components/svg/IconImport.js +8 -6
  215. package/components/svg/IconIndex.js +8 -6
  216. package/components/svg/IconLayers.js +8 -6
  217. package/components/svg/IconLibrary.js +8 -6
  218. package/components/svg/IconList.js +8 -6
  219. package/components/svg/IconLivePlant.js +8 -6
  220. package/components/svg/IconLocations.js +8 -6
  221. package/components/svg/IconMail.js +8 -6
  222. package/components/svg/IconManager.js +8 -6
  223. package/components/svg/IconMarker.js +8 -6
  224. package/components/svg/IconMenu.js +8 -6
  225. package/components/svg/IconMenuHorizontal.js +8 -6
  226. package/components/svg/IconModule.js +8 -6
  227. package/components/svg/IconMyLocation.js +8 -6
  228. package/components/svg/IconNote.js +8 -6
  229. package/components/svg/IconNursery.js +8 -6
  230. package/components/svg/IconOrg.js +8 -6
  231. package/components/svg/IconParchment.js +8 -6
  232. package/components/svg/IconPhoto.js +8 -6
  233. package/components/svg/IconPlantsFilled.js +8 -6
  234. package/components/svg/IconRedo.js +8 -6
  235. package/components/svg/IconRestorationSite.js +8 -6
  236. package/components/svg/IconSeedBank.js +8 -6
  237. package/components/svg/IconSeedling.js +8 -6
  238. package/components/svg/IconSettings.js +8 -6
  239. package/components/svg/IconSlice.js +8 -6
  240. package/components/svg/IconSubmit.js +8 -6
  241. package/components/svg/IconSubtract.js +8 -6
  242. package/components/svg/IconSynced.js +8 -6
  243. package/components/svg/IconTrashCan.js +8 -6
  244. package/components/svg/IconTreasureMap.js +8 -6
  245. package/components/svg/IconUnavailable.js +8 -6
  246. package/components/svg/IconUndo.js +8 -6
  247. package/components/svg/IconVariable.js +8 -6
  248. package/components/svg/IconVideo.js +9 -7
  249. package/components/svg/IconWifi.js +8 -6
  250. package/components/svg/Info.js +8 -6
  251. package/components/svg/Key.js +8 -6
  252. package/components/svg/Leaf.js +8 -6
  253. package/components/svg/Lock.js +8 -6
  254. package/components/svg/Logo.js +16 -14
  255. package/components/svg/MenuVertical.js +8 -6
  256. package/components/svg/Notification.js +8 -6
  257. package/components/svg/Person.js +8 -6
  258. package/components/svg/Plus.js +8 -6
  259. package/components/svg/RestorationSite.js +8 -6
  260. package/components/svg/Search.js +8 -6
  261. package/components/svg/Seeds.js +8 -6
  262. package/components/svg/Site.js +8 -6
  263. package/components/svg/Sparkles.js +8 -6
  264. package/components/svg/Species.js +8 -6
  265. package/components/svg/Species2.js +41 -39
  266. package/components/svg/Spinner.js +16 -14
  267. package/components/svg/Star.js +8 -6
  268. package/components/svg/Success.js +8 -6
  269. package/components/svg/SuccessFilled.js +8 -6
  270. package/components/svg/TerrawareLogoDesktop.js +17 -15
  271. package/components/svg/TerrawareLogoMobile.js +9 -7
  272. package/components/svg/Touchscreen.js +8 -6
  273. package/components/svg/UploadCloud.js +41 -39
  274. package/components/svg/Warning.js +8 -6
  275. package/components/svg/WelcomeClipboard.js +32 -30
  276. package/components/svg/index.js +127 -127
  277. package/components/table/EnhancedTableToolbar.js +18 -15
  278. package/components/table/EnhancedTableToolbarV2.js +8 -6
  279. package/components/table/TableCellRenderer.js +37 -32
  280. package/components/table/TableHeader.js +17 -14
  281. package/components/table/TableHeaderItem.js +18 -15
  282. package/components/table/density.js +5 -3
  283. package/components/table/index.js +40 -37
  284. package/components/table/sort.js +6 -4
  285. package/components/table/types.js +1 -1
  286. package/components/types/index.js +1 -1
  287. package/hooks/useBoolean.js +4 -2
  288. package/hooks/useCameraPosition.js +5 -2
  289. package/hooks/useDevicePerformance.js +6 -3
  290. package/hooks/useXr.js +6 -4
  291. package/index.js +55 -58
  292. package/package.json +6 -2
  293. package/style-dictionary-dist/TerrawareTheme.js +2 -1
  294. package/theme.js +5 -2
  295. package/utils/color.js +5 -2
  296. package/utils/date.js +7 -6
  297. package/utils/index.js +4 -5
  298. package/utils/preventDefaultEvent.js +2 -1
  299. package/utils/text.js +3 -2
  300. package/utils/useDeviceInfo.js +2 -1
  301. package/virtualWalkthrough.js +23 -31
  302. package/components/Button/button.test.js +0 -23
  303. package/components/MultiSelect/MultiSelect.test.js +0 -73
  304. package/components/VirtualWalkthrough/TfXrNavigation.test.js +0 -110
  305. package/components/VirtualWalkthrough/boundary-ring.test.js +0 -109
  306. package/components/VirtualWalkthrough/boundary-wall.test.js +0 -203
  307. package/components/VirtualWalkthrough/groundPlane.test.js +0 -45
  308. package/components/VirtualWalkthrough/splatFormat.test.js +0 -51
  309. package/components/VirtualWalkthrough/vr-annotation-panel-layout.test.js +0 -26
  310. package/components/VirtualWalkthrough/xr-annotation-targeting.test.js +0 -66
  311. package/components/VirtualWalkthrough/xr-button-arming.test.js +0 -35
  312. package/components/VirtualWalkthrough/xr-button-hold.test.js +0 -57
  313. package/components/VirtualWalkthrough/xr-exit-button.test.js +0 -23
  314. package/components/VirtualWalkthrough/xr-face-buttons.test.js +0 -82
  315. package/components/VirtualWalkthrough/xr-gaze-dwell-state.test.js +0 -61
  316. package/components/VirtualWalkthrough/xr-interactive-ui.test.js +0 -165
  317. package/components/VirtualWalkthrough/xr-progress-pie.test.js +0 -79
  318. package/components/VirtualWalkthrough/xr-ray-quad.test.js +0 -37
  319. package/components/VirtualWalkthrough/xr-scene-bounds.test.js +0 -70
  320. package/components/VirtualWalkthrough/xr-teleport-gesture.test.js +0 -90
  321. package/components/table/sort.test.js +0 -35
  322. package/utils/date.test.js +0 -84
  323. package/utils/text.test.js +0 -21
@@ -1,7 +1,8 @@
1
- import React, { useCallback, useEffect, useState } from 'react';
1
+ import { useState, useCallback, useEffect } from 'react';
2
2
  import { marked } from 'marked';
3
3
  import './styles.scss';
4
- import { jsx as _jsx } from "react/jsx-runtime";
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__*/_jsx("div", {
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
- export default Markdown;
26
+
27
+ export { Markdown as default };
@@ -1,9 +1,12 @@
1
- import React from 'react';
2
- import { useDeviceInfo } from '../../utils';
3
- import Icon from '../Icon/Icon';
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 { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
- export default function Message(props) {
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__*/_jsxs("div", {
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__*/_jsx("div", {
26
+ children: [type === 'toast' && /*#__PURE__*/jsx("div", {
24
27
  className: "tw-message--left-side",
25
- children: /*#__PURE__*/_jsx(Icon, {
28
+ children: /*#__PURE__*/jsx(Icon, {
26
29
  name: priority,
27
30
  className: "left-side--icon"
28
31
  })
29
- }), /*#__PURE__*/_jsxs("div", {
32
+ }), /*#__PURE__*/jsxs("div", {
30
33
  className: "tw-message--container",
31
- children: [/*#__PURE__*/_jsxs("div", {
34
+ children: [/*#__PURE__*/jsxs("div", {
32
35
  className: "tw-message--main-content",
33
- children: [type === 'page' && /*#__PURE__*/_jsx(Icon, {
36
+ children: [type === 'page' && /*#__PURE__*/jsx(Icon, {
34
37
  name: priority,
35
38
  className: "main-content--icon"
36
- }), /*#__PURE__*/_jsxs("div", {
39
+ }), /*#__PURE__*/jsxs("div", {
37
40
  className: "tw-message--main-body",
38
- children: [title && /*#__PURE__*/_jsx("div", {
41
+ children: [title && /*#__PURE__*/jsx("div", {
39
42
  className: "tw-message--title-container",
40
- children: /*#__PURE__*/_jsx("h4", {
43
+ children: /*#__PURE__*/jsx("h4", {
41
44
  children: title
42
45
  })
43
- }), typeof body === 'string' ? /*#__PURE__*/_jsx("p", {
46
+ }), typeof body === 'string' ? /*#__PURE__*/jsx("p", {
44
47
  children: body
45
- }) : body, type === 'page' && pageButtons && pageButtons.length > 0 ? /*#__PURE__*/_jsx("div", {
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__*/_jsx("button", {
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__*/_jsx("button", {
67
+ }) : showCloseButton ? /*#__PURE__*/jsx("button", {
65
68
  onClick: onClose,
66
69
  className: "icon-container",
67
- children: /*#__PURE__*/_jsx(Icon, {
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 React, { useEffect, useState } from 'react';
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 { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
- export default function MultiSelect(props) {
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__*/_jsxs(Box, {
62
+ return /*#__PURE__*/jsxs(Box, {
62
63
  className: `multi-select ${className}`,
63
64
  sx: sx,
64
- children: [label && /*#__PURE__*/_jsxs("label", {
65
+ children: [label && /*#__PURE__*/jsxs("label", {
65
66
  htmlFor: id,
66
67
  className: "multi-select__label",
67
- children: [label, " ", tooltipTitle && /*#__PURE__*/_jsx(IconTooltip, {
68
+ children: [label, " ", tooltipTitle && /*#__PURE__*/jsx(IconTooltip, {
68
69
  title: tooltipTitle
69
70
  })]
70
- }), /*#__PURE__*/_jsxs("div", {
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__*/_jsxs("div", {
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__*/_jsx(PillList, {
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__*/_jsx("p", {
84
+ }) : /*#__PURE__*/jsx("p", {
84
85
  className: "multi-select__placeholder-text",
85
86
  children: placeHolder
86
- }), /*#__PURE__*/_jsx("div", {
87
+ }), /*#__PURE__*/jsx("div", {
87
88
  className: 'multi-select__values__icon-button',
88
89
  "aria-label": "show-options",
89
- children: /*#__PURE__*/_jsx(Icon, {
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__*/_jsx("div", {
95
+ }), options && unselectedOptions.length > 0 && openedOptions && /*#__PURE__*/jsx("div", {
95
96
  className: "multi-select__options-container",
96
- children: /*#__PURE__*/_jsx("ul", {
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__*/_jsx("li", {
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__*/_jsx("label", {
109
+ }), helperText && /*#__PURE__*/jsx("label", {
109
110
  htmlFor: id,
110
111
  className: "multi-select__help-text",
111
112
  children: helperText
112
- }), errorText && /*#__PURE__*/_jsxs("div", {
113
+ }), errorText && /*#__PURE__*/jsxs("div", {
113
114
  className: "multi-select__error",
114
- children: [/*#__PURE__*/_jsx(Icon, {
115
+ children: [/*#__PURE__*/jsx(Icon, {
115
116
  name: "error",
116
117
  className: "multi-select__error-icon"
117
- }), /*#__PURE__*/_jsx("label", {
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 React from 'react';
1
+ import 'react';
2
2
  import './styles.scss';
3
- import { jsx as _jsx } from "react/jsx-runtime";
4
- export default function NavFooter(props) {
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ function NavFooter(props) {
5
6
  const {
6
7
  children
7
8
  } = props;
8
- return /*#__PURE__*/_jsx("div", {
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 { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
- export default function NavItem(props) {
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__*/_jsxs("div", {
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__*/_jsxs("button", {
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__*/_jsx(Icon, {
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__*/_jsx("span", {
65
+ }), !href && /*#__PURE__*/jsx("span", {
65
66
  className: "nav-item--label",
66
67
  children: label
67
- }), href && /*#__PURE__*/_jsx("a", {
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__*/_jsx(Icon, {
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 React from 'react';
1
+ import 'react';
2
2
  import './styles.scss';
3
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
- export default function NavSection(props) {
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__*/_jsxs("div", {
10
+ return /*#__PURE__*/jsxs("div", {
10
11
  className: "nav-section",
11
- children: [separator && /*#__PURE__*/_jsx("div", {
12
+ children: [separator && /*#__PURE__*/jsx("div", {
12
13
  className: "divider"
13
- }), title && /*#__PURE__*/_jsx("span", {
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 React from 'react';
2
- import { Box, ButtonBase, useTheme } from '@mui/material';
3
- import { useDeviceInfo } from '../../utils';
4
- import Icon from '../Icon/Icon';
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 { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
- export default function Navbar(props) {
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__*/_jsxs("div", {
20
+ return /*#__PURE__*/jsxs("div", {
18
21
  className: 'navbar' + (backgroundTransparent ? ' transparent' : ''),
19
- children: [!isDesktop && /*#__PURE__*/_jsx(Box, {
22
+ children: [!isDesktop && /*#__PURE__*/jsx(Box, {
20
23
  sx: {
21
24
  display: 'flex',
22
25
  justifyContent: 'start'
23
26
  },
24
- children: /*#__PURE__*/_jsx(ButtonBase, {
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__*/_jsx(Icon, {
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 React from 'react';
1
+ import 'react';
2
2
  import './styles.scss';
3
- import { jsx as _jsx } from "react/jsx-runtime";
4
- export default function SubNavbar(props) {
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ function SubNavbar(props) {
5
6
  const {
6
7
  children
7
8
  } = props;
8
- return /*#__PURE__*/_jsx("div", {
9
+ return /*#__PURE__*/jsx("div", {
9
10
  className: "subnavbar",
10
11
  children: children
11
12
  });
12
- }
13
+ }
14
+
15
+ export { SubNavbar as default };
@@ -1,20 +1,23 @@
1
- import React from 'react';
2
- import { Box, Typography, useTheme } from '@mui/material';
3
- import { jsx as _jsx } from "react/jsx-runtime";
4
- export default function Note({
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__*/_jsx(Box, {
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__*/_jsx(Typography, {
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 React, { useEffect } from 'react';
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 as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
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__*/_jsx("div", {
36
+ return open ? /*#__PURE__*/jsx("div", {
36
37
  className: 'overlay-modal-backdrop',
37
38
  onClick: handleBackdropClick,
38
- children: /*#__PURE__*/_jsxs("div", {
39
+ children: /*#__PURE__*/jsxs("div", {
39
40
  className: 'overlay-modal-container',
40
- children: [/*#__PURE__*/_jsx(IconButton, {
41
+ children: [/*#__PURE__*/jsx(IconButton, {
41
42
  onClick: onClose,
42
43
  className: 'overlay-modal-close',
43
- children: /*#__PURE__*/_jsx(Icon, {
44
+ children: /*#__PURE__*/jsx(Icon, {
44
45
  size: 'xlarge',
45
46
  name: "close",
46
47
  className: 'icon-close'
47
48
  })
48
- }), /*#__PURE__*/_jsx("div", {
49
+ }), /*#__PURE__*/jsx("div", {
49
50
  className: "overlay-modal",
50
51
  style: {
51
52
  minHeight
52
53
  },
53
- children: /*#__PURE__*/_jsx("div", {
54
+ children: /*#__PURE__*/jsx("div", {
54
55
  className: "overlay-modal-content",
55
56
  children: children
56
57
  })
57
- }), belowComponent && /*#__PURE__*/_jsx("div", {
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
- export default OverlayModal;
65
+
66
+ export { OverlayModal as default };
@@ -1,10 +1,11 @@
1
- import React, { useState } from 'react';
2
- import { Box, useTheme } from '@mui/material';
3
- import useDeviceInfo from '../../utils/useDeviceInfo';
4
- import BusySpinner from '../BusySpinner';
5
- import FormBottomBar from '../FormBottomBar';
6
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
7
- export default function PageForm(props) {
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__*/_jsxs(_Fragment, {
28
- children: [processing && /*#__PURE__*/_jsx(BusySpinner, {
28
+ return /*#__PURE__*/jsxs(Fragment, {
29
+ children: [processing && /*#__PURE__*/jsx(BusySpinner, {
29
30
  withSkrim: true
30
- }), /*#__PURE__*/_jsx(Box, {
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__*/_jsx(FormBottomBar, {
36
+ }), !hideEdit && /*#__PURE__*/jsx(FormBottomBar, {
36
37
  onSave: handleSave,
37
38
  ...bottomBarProps
38
39
  })]
39
40
  });
40
- }
41
+ }
42
+
43
+ export { PageForm as default };