@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.
- 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.d.ts.map +1 -1
- package/components/PhotosCarousel/index.js +17 -13
- 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,14 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useState, useRef, useMemo, useCallback, useEffect } from 'react';
|
|
2
2
|
import { Box } from '@mui/material';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import 'lodash';
|
|
5
|
+
import 'luxon';
|
|
6
|
+
import isWhitespaces from '../../utils/text.js';
|
|
7
|
+
import 'react-responsive';
|
|
8
|
+
import Icon from '../Icon/Icon.js';
|
|
9
|
+
import IconTooltip from '../IconTooltip/index.js';
|
|
7
10
|
import './styles.scss';
|
|
11
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
8
12
|
|
|
9
|
-
|
|
10
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
11
|
-
export default function SelectT(props) {
|
|
13
|
+
function SelectT(props) {
|
|
12
14
|
const {
|
|
13
15
|
className,
|
|
14
16
|
disabled,
|
|
@@ -171,24 +173,24 @@ export default function SelectT(props) {
|
|
|
171
173
|
}
|
|
172
174
|
}
|
|
173
175
|
};
|
|
174
|
-
return /*#__PURE__*/
|
|
176
|
+
return /*#__PURE__*/jsxs(Box, {
|
|
175
177
|
className: `select ${className}`,
|
|
176
178
|
sx: sx,
|
|
177
|
-
children: [label && /*#__PURE__*/
|
|
179
|
+
children: [label && /*#__PURE__*/jsxs("label", {
|
|
178
180
|
htmlFor: id,
|
|
179
181
|
className: "textfield-label",
|
|
180
|
-
children: [label, " ", required ? '*' : '', " ", tooltipTitle && /*#__PURE__*/
|
|
182
|
+
children: [label, " ", required ? '*' : '', " ", tooltipTitle && /*#__PURE__*/jsx(IconTooltip, {
|
|
181
183
|
title: tooltipTitle
|
|
182
184
|
})]
|
|
183
|
-
}), /*#__PURE__*/
|
|
185
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
184
186
|
className: `textfield-container ${fullWidth ? 'textfield-container--fullWidth' : ''}`,
|
|
185
|
-
children: [/*#__PURE__*/
|
|
187
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
186
188
|
id: id,
|
|
187
189
|
className: selectClass,
|
|
188
190
|
onClick: toggleOptions,
|
|
189
191
|
ref: inputRef,
|
|
190
192
|
style: (selectStyles || {}).inputContainer,
|
|
191
|
-
children: [/*#__PURE__*/
|
|
193
|
+
children: [/*#__PURE__*/jsx("input", {
|
|
192
194
|
ref: textFieldRef,
|
|
193
195
|
value: displayLabel(selectedValue),
|
|
194
196
|
readOnly: !editable || readonly,
|
|
@@ -199,20 +201,20 @@ export default function SelectT(props) {
|
|
|
199
201
|
onFocus: onFocus,
|
|
200
202
|
required: required,
|
|
201
203
|
style: (selectStyles || {}).input
|
|
202
|
-
}), !hideArrow && /*#__PURE__*/
|
|
204
|
+
}), !hideArrow && /*#__PURE__*/jsx(Icon, {
|
|
203
205
|
name: 'chevronDown',
|
|
204
206
|
className: "textfield-value--icon-right",
|
|
205
207
|
style: (selectStyles || {}).arrow
|
|
206
208
|
})]
|
|
207
|
-
}), options && options.length > 0 && openedOptions && /*#__PURE__*/
|
|
208
|
-
children: [fixedMenu && /*#__PURE__*/
|
|
209
|
+
}), options && options.length > 0 && openedOptions && /*#__PURE__*/jsxs(Fragment, {
|
|
210
|
+
children: [fixedMenu && /*#__PURE__*/jsx("div", {
|
|
209
211
|
className: "scroll-block"
|
|
210
|
-
}), /*#__PURE__*/
|
|
212
|
+
}), /*#__PURE__*/jsx("ul", {
|
|
211
213
|
className: 'options-container' + (fixedMenu ? ' fixed-menu' : '') + (fixedMenuPositioned ? ' positioned' : ''),
|
|
212
214
|
ref: dropdownRef,
|
|
213
215
|
style: (selectStyles || {}).optionsContainer,
|
|
214
216
|
children: options.map((option, index) => {
|
|
215
|
-
return /*#__PURE__*/
|
|
217
|
+
return /*#__PURE__*/jsx("li", {
|
|
216
218
|
"data-key": displayLabel(option).charAt(0).toUpperCase(),
|
|
217
219
|
"data-selected": selectedIndex === index,
|
|
218
220
|
onClick: () => !readonly ? onOptionSelected(option, index) : undefined,
|
|
@@ -223,30 +225,32 @@ export default function SelectT(props) {
|
|
|
223
225
|
})
|
|
224
226
|
})]
|
|
225
227
|
})]
|
|
226
|
-
}), errorText && /*#__PURE__*/
|
|
228
|
+
}), errorText && /*#__PURE__*/jsxs("div", {
|
|
227
229
|
className: "textfield-label-container",
|
|
228
|
-
children: [/*#__PURE__*/
|
|
230
|
+
children: [/*#__PURE__*/jsx(Icon, {
|
|
229
231
|
name: "error",
|
|
230
232
|
className: "textfield-error-text--icon"
|
|
231
|
-
}), /*#__PURE__*/
|
|
233
|
+
}), /*#__PURE__*/jsx("label", {
|
|
232
234
|
htmlFor: id,
|
|
233
235
|
className: "textfield-error-text",
|
|
234
236
|
children: errorText
|
|
235
237
|
})]
|
|
236
|
-
}), warningText && /*#__PURE__*/
|
|
238
|
+
}), warningText && /*#__PURE__*/jsxs("div", {
|
|
237
239
|
className: "textfield-label-container",
|
|
238
|
-
children: [/*#__PURE__*/
|
|
240
|
+
children: [/*#__PURE__*/jsx(Icon, {
|
|
239
241
|
name: "warning",
|
|
240
242
|
className: "textfield-warning-text--icon"
|
|
241
|
-
}), /*#__PURE__*/
|
|
243
|
+
}), /*#__PURE__*/jsx("label", {
|
|
242
244
|
htmlFor: id,
|
|
243
245
|
className: "textfield-warning-text",
|
|
244
246
|
children: warningText
|
|
245
247
|
})]
|
|
246
|
-
}), helperText && /*#__PURE__*/
|
|
248
|
+
}), helperText && /*#__PURE__*/jsx("label", {
|
|
247
249
|
htmlFor: id,
|
|
248
250
|
className: "textfield-help-text",
|
|
249
251
|
children: helperText
|
|
250
252
|
})]
|
|
251
253
|
});
|
|
252
|
-
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export { SelectT as default };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import 'react';
|
|
2
2
|
import { Box } from '@mui/material';
|
|
3
|
-
import theme from '../../theme';
|
|
4
|
-
import { jsx
|
|
3
|
+
import theme from '../../theme.js';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
5
6
|
const Separator = props => {
|
|
6
|
-
return /*#__PURE__*/
|
|
7
|
+
return /*#__PURE__*/jsx(Box, {
|
|
7
8
|
sx: {
|
|
8
9
|
margin: theme.spacing(0, 2),
|
|
9
10
|
width: '1px',
|
|
@@ -12,4 +13,5 @@ const Separator = props => {
|
|
|
12
13
|
}
|
|
13
14
|
});
|
|
14
15
|
};
|
|
15
|
-
|
|
16
|
+
|
|
17
|
+
export { Separator as default };
|
package/components/Size.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Slider as
|
|
3
|
-
import { jsx
|
|
4
|
-
|
|
1
|
+
import 'react';
|
|
2
|
+
import { useTheme, Slider as Slider$1 } from '@mui/material';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
function Slider(props) {
|
|
5
6
|
const {
|
|
6
7
|
defaultValue,
|
|
7
8
|
value,
|
|
@@ -39,7 +40,7 @@ export default function Slider(props) {
|
|
|
39
40
|
onChange(val);
|
|
40
41
|
}
|
|
41
42
|
};
|
|
42
|
-
return /*#__PURE__*/
|
|
43
|
+
return /*#__PURE__*/jsx(Slider$1, {
|
|
43
44
|
"aria-label": "Slider",
|
|
44
45
|
defaultValue: defaultValue,
|
|
45
46
|
value: value,
|
|
@@ -51,4 +52,6 @@ export default function Slider(props) {
|
|
|
51
52
|
valueLabelDisplay: valueLabelDisplay,
|
|
52
53
|
sx: sliderStyles
|
|
53
54
|
});
|
|
54
|
-
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export { Slider as default };
|
package/components/SummaryBox.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
2
|
import { Info } from '@mui/icons-material';
|
|
3
|
-
import { Box, IconButton, Typography
|
|
4
|
-
import {
|
|
5
|
-
|
|
3
|
+
import { useTheme, Box, IconButton, Typography } from '@mui/material';
|
|
4
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
function SummaryBox({
|
|
6
7
|
title,
|
|
7
8
|
value,
|
|
8
9
|
variant = 'default',
|
|
@@ -44,20 +45,20 @@ export default function SummaryBox({
|
|
|
44
45
|
};
|
|
45
46
|
}
|
|
46
47
|
}, [theme, variant]);
|
|
47
|
-
return /*#__PURE__*/
|
|
48
|
+
return /*#__PURE__*/jsxs(Box, {
|
|
48
49
|
id: id,
|
|
49
50
|
sx: summaryBoxStyles,
|
|
50
|
-
children: [icon && /*#__PURE__*/
|
|
51
|
+
children: [icon && /*#__PURE__*/jsx(IconButton, {
|
|
51
52
|
onClick: onIconClick,
|
|
52
53
|
sx: {
|
|
53
54
|
position: 'absolute',
|
|
54
55
|
right: theme.spacing(2)
|
|
55
56
|
},
|
|
56
|
-
children: /*#__PURE__*/
|
|
57
|
-
}), /*#__PURE__*/
|
|
57
|
+
children: /*#__PURE__*/jsx(Info, {})
|
|
58
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
58
59
|
component: "p",
|
|
59
60
|
children: title
|
|
60
|
-
}), /*#__PURE__*/
|
|
61
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
61
62
|
component: "p",
|
|
62
63
|
variant: "h6",
|
|
63
64
|
sx: {
|
|
@@ -67,4 +68,6 @@ export default function SummaryBox({
|
|
|
67
68
|
children: value
|
|
68
69
|
})]
|
|
69
70
|
});
|
|
70
|
-
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export { SummaryBox as default };
|
package/components/Tabs/index.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useState, useEffect, useMemo } from 'react';
|
|
2
2
|
import { TabContext, TabList, TabPanel } from '@mui/lab';
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
3
|
+
import { useTheme, Tab, Tooltip, Box } from '@mui/material';
|
|
4
|
+
import 'lodash';
|
|
5
|
+
import 'luxon';
|
|
6
|
+
import useDeviceInfo from '../../utils/useDeviceInfo.js';
|
|
7
|
+
import Icon from '../Icon/Icon.js';
|
|
8
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
9
|
+
|
|
7
10
|
const Tabs = ({
|
|
8
11
|
activeTab,
|
|
9
12
|
children,
|
|
@@ -67,17 +70,17 @@ const Tabs = ({
|
|
|
67
70
|
}
|
|
68
71
|
}, [activeTab]);
|
|
69
72
|
const renderedTabs = useMemo(() => tabs.map((tab, index) => {
|
|
70
|
-
const muiTab = /*#__PURE__*/
|
|
73
|
+
const muiTab = /*#__PURE__*/jsx(Tab, {
|
|
71
74
|
disabled: tab.disabled,
|
|
72
|
-
icon: tab.icon ? /*#__PURE__*/
|
|
75
|
+
icon: tab.icon ? /*#__PURE__*/jsx(Icon, {
|
|
73
76
|
name: tab.icon
|
|
74
77
|
}) : undefined,
|
|
75
|
-
label: /*#__PURE__*/
|
|
76
|
-
children: [tab.label, tab.tooltip && !tab.disabled && /*#__PURE__*/
|
|
78
|
+
label: /*#__PURE__*/jsxs(Fragment, {
|
|
79
|
+
children: [tab.label, tab.tooltip && !tab.disabled && /*#__PURE__*/jsx(Tooltip, {
|
|
77
80
|
title: tab.tooltip,
|
|
78
81
|
arrow: true,
|
|
79
82
|
placement: "top-start",
|
|
80
|
-
children: /*#__PURE__*/
|
|
83
|
+
children: /*#__PURE__*/jsx("span", {
|
|
81
84
|
style: {
|
|
82
85
|
position: 'absolute',
|
|
83
86
|
inset: 0
|
|
@@ -88,11 +91,11 @@ const Tabs = ({
|
|
|
88
91
|
sx: tabStyles,
|
|
89
92
|
value: tab.id
|
|
90
93
|
}, index);
|
|
91
|
-
return tab.disabled ? /*#__PURE__*/
|
|
94
|
+
return tab.disabled ? /*#__PURE__*/jsx(Tooltip, {
|
|
92
95
|
title: tab.tooltip,
|
|
93
96
|
arrow: true,
|
|
94
97
|
placement: "top-start",
|
|
95
|
-
children: /*#__PURE__*/
|
|
98
|
+
children: /*#__PURE__*/jsx("span", {
|
|
96
99
|
style: {
|
|
97
100
|
display: 'inline-flex'
|
|
98
101
|
},
|
|
@@ -100,17 +103,17 @@ const Tabs = ({
|
|
|
100
103
|
})
|
|
101
104
|
}, index) : muiTab;
|
|
102
105
|
}), [tabs]);
|
|
103
|
-
return /*#__PURE__*/
|
|
106
|
+
return /*#__PURE__*/jsx(Box, {
|
|
104
107
|
sx: {
|
|
105
108
|
width: '100%',
|
|
106
109
|
...sx
|
|
107
110
|
},
|
|
108
|
-
children: /*#__PURE__*/
|
|
111
|
+
children: /*#__PURE__*/jsxs(TabContext, {
|
|
109
112
|
value: selectedTab,
|
|
110
|
-
children: [/*#__PURE__*/
|
|
113
|
+
children: [/*#__PURE__*/jsx(Box, {
|
|
111
114
|
sx: tabHeaderProps,
|
|
112
115
|
className: "tab-header",
|
|
113
|
-
children: /*#__PURE__*/
|
|
116
|
+
children: /*#__PURE__*/jsx(TabList, {
|
|
114
117
|
onChange: (unused, value) => setTab(value),
|
|
115
118
|
sx: {
|
|
116
119
|
minHeight: theme.spacing(4.5)
|
|
@@ -124,7 +127,7 @@ const Tabs = ({
|
|
|
124
127
|
variant: 'scrollable',
|
|
125
128
|
children: renderedTabs
|
|
126
129
|
})
|
|
127
|
-
}), children, tabs.map((tab, index) => /*#__PURE__*/
|
|
130
|
+
}), children, tabs.map((tab, index) => /*#__PURE__*/jsx(TabPanel, {
|
|
128
131
|
sx: tabPanelStyles,
|
|
129
132
|
value: tab.id,
|
|
130
133
|
children: tab.children
|
|
@@ -132,4 +135,5 @@ const Tabs = ({
|
|
|
132
135
|
})
|
|
133
136
|
});
|
|
134
137
|
};
|
|
135
|
-
|
|
138
|
+
|
|
139
|
+
export { Tabs as default };
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { useState, useEffect, useMemo } from 'react';
|
|
2
|
+
import { useTheme, Typography, Tooltip, Link } from '@mui/material';
|
|
3
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
4
|
|
|
4
|
-
/**
|
|
5
|
-
* Represents the result of truncating the string list
|
|
6
|
-
* text: the text to display before the '...# more' link
|
|
7
|
-
* numberMore: the number to display in the '...# more' link
|
|
8
|
-
* has two special values
|
|
9
|
-
* 0: the full text can be displayed; do not show '...# more'
|
|
10
|
-
* -1: the list is of length one but the element cannot be fully
|
|
11
|
-
* displayed. show '...more' without a '#'
|
|
12
|
-
*/
|
|
13
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
5
|
/**
|
|
15
6
|
* Compute TextDisplay for a list of strings
|
|
16
7
|
* @param strings list of strings to process
|
|
@@ -47,7 +38,7 @@ function computeFromStringList(strings, maxLength, listSeparator) {
|
|
|
47
38
|
numberMore: stringsRemaining
|
|
48
39
|
};
|
|
49
40
|
}
|
|
50
|
-
|
|
41
|
+
function TextTruncated(props) {
|
|
51
42
|
const {
|
|
52
43
|
stringList,
|
|
53
44
|
listSeparator,
|
|
@@ -87,13 +78,13 @@ export default function TextTruncated(props) {
|
|
|
87
78
|
e.stopPropagation();
|
|
88
79
|
setShowAllOpen(!showAllOpen);
|
|
89
80
|
};
|
|
90
|
-
return stringList.length > 0 ? /*#__PURE__*/
|
|
81
|
+
return stringList.length > 0 ? /*#__PURE__*/jsxs(Typography, {
|
|
91
82
|
sx: textStyle,
|
|
92
|
-
children: [textToDisplay.text, textToDisplay.numberMore !== 0 && moreText ? moreSeparator : '', textToDisplay.numberMore !== 0 ? /*#__PURE__*/
|
|
83
|
+
children: [textToDisplay.text, textToDisplay.numberMore !== 0 && moreText ? moreSeparator : '', textToDisplay.numberMore !== 0 ? /*#__PURE__*/jsx(Tooltip, {
|
|
93
84
|
arrow: true,
|
|
94
85
|
open: moreText ? showAllOpen : undefined,
|
|
95
86
|
enterDelay: moreText ? 0 : 400,
|
|
96
|
-
title: /*#__PURE__*/
|
|
87
|
+
title: /*#__PURE__*/jsx(Typography, {
|
|
97
88
|
sx: showAllStyle,
|
|
98
89
|
fontSize: "14px",
|
|
99
90
|
children: stringList.join(listSeparator)
|
|
@@ -118,7 +109,7 @@ export default function TextTruncated(props) {
|
|
|
118
109
|
padding: '8px'
|
|
119
110
|
}
|
|
120
111
|
},
|
|
121
|
-
children: moreText ? /*#__PURE__*/
|
|
112
|
+
children: moreText ? /*#__PURE__*/jsx(Link, {
|
|
122
113
|
component: "button",
|
|
123
114
|
onClick: onClickHandler,
|
|
124
115
|
onBlur: () => setShowAllOpen(false),
|
|
@@ -126,14 +117,14 @@ export default function TextTruncated(props) {
|
|
|
126
117
|
color: theme.palette.TwClrTxtBrand,
|
|
127
118
|
textDecorationColor: `${theme.palette.TwClrTxtBrand}80`
|
|
128
119
|
},
|
|
129
|
-
children: /*#__PURE__*/
|
|
120
|
+
children: /*#__PURE__*/jsx(Typography, {
|
|
130
121
|
sx: {
|
|
131
122
|
...textStyle,
|
|
132
123
|
marginTop: '-3px'
|
|
133
124
|
},
|
|
134
125
|
children: (textToDisplay.numberMore > 0 ? textToDisplay.numberMore + ' ' : '') + moreText
|
|
135
126
|
})
|
|
136
|
-
}) : /*#__PURE__*/
|
|
127
|
+
}) : /*#__PURE__*/jsx(Typography, {
|
|
137
128
|
sx: {
|
|
138
129
|
...textStyle,
|
|
139
130
|
display: 'inline'
|
|
@@ -142,4 +133,6 @@ export default function TextTruncated(props) {
|
|
|
142
133
|
})
|
|
143
134
|
}) : null]
|
|
144
135
|
}) : placeHolder || null;
|
|
145
|
-
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export { TextTruncated as default };
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
2
|
import { Box } from '@mui/material';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
4
|
+
import 'lodash';
|
|
5
|
+
import 'luxon';
|
|
6
|
+
import isWhitespaces from '../../utils/text.js';
|
|
7
|
+
import 'react-responsive';
|
|
8
|
+
import Icon from '../Icon/Icon.js';
|
|
9
|
+
import IconTooltip from '../IconTooltip/index.js';
|
|
10
|
+
import Markdown from '../Markdown/index.js';
|
|
11
|
+
import TruncatedTextArea from './TruncatedTextArea.js';
|
|
9
12
|
import './styles.scss';
|
|
10
|
-
import { jsx
|
|
11
|
-
|
|
13
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
14
|
+
|
|
15
|
+
function TextField(props) {
|
|
12
16
|
const {
|
|
13
17
|
autoFocus,
|
|
14
18
|
label,
|
|
@@ -78,10 +82,10 @@ export default function TextField(props) {
|
|
|
78
82
|
if (iconRight === 'cancel' && !value) {
|
|
79
83
|
return null;
|
|
80
84
|
}
|
|
81
|
-
return /*#__PURE__*/
|
|
85
|
+
return /*#__PURE__*/jsx("button", {
|
|
82
86
|
onClick: onClickRightIcon,
|
|
83
87
|
className: "textfield-value--icon-container",
|
|
84
|
-
children: /*#__PURE__*/
|
|
88
|
+
children: /*#__PURE__*/jsx(Icon, {
|
|
85
89
|
name: iconRight,
|
|
86
90
|
className: `textfield-value--icon-right${iconRight === 'cancel' ? '--cancel' : ''}`
|
|
87
91
|
})
|
|
@@ -102,15 +106,15 @@ export default function TextField(props) {
|
|
|
102
106
|
if (!display || value === undefined) {
|
|
103
107
|
return null;
|
|
104
108
|
}
|
|
105
|
-
const component = markdown ? /*#__PURE__*/
|
|
109
|
+
const component = markdown ? /*#__PURE__*/jsx(Markdown, {
|
|
106
110
|
value: value.toString(),
|
|
107
111
|
style: styles?.markdown
|
|
108
|
-
}) : /*#__PURE__*/
|
|
112
|
+
}) : /*#__PURE__*/jsx("p", {
|
|
109
113
|
className: `textfield-value--display${preserveNewlines ? ' preserve-newlines' : ''}`,
|
|
110
114
|
children: value
|
|
111
115
|
});
|
|
112
116
|
if (type === 'textarea' && truncateConfig) {
|
|
113
|
-
return /*#__PURE__*/
|
|
117
|
+
return /*#__PURE__*/jsx(TruncatedTextArea, {
|
|
114
118
|
truncateConfig: truncateConfig,
|
|
115
119
|
children: component
|
|
116
120
|
});
|
|
@@ -118,23 +122,23 @@ export default function TextField(props) {
|
|
|
118
122
|
return component;
|
|
119
123
|
}
|
|
120
124
|
}, [display, markdown, preserveNewlines, styles, truncateConfig, type, value]);
|
|
121
|
-
return /*#__PURE__*/
|
|
125
|
+
return /*#__PURE__*/jsxs(Box, {
|
|
122
126
|
className: `textfield ${className}`,
|
|
123
127
|
sx: sx,
|
|
124
|
-
children: [/*#__PURE__*/
|
|
128
|
+
children: [/*#__PURE__*/jsxs("label", {
|
|
125
129
|
htmlFor: id,
|
|
126
130
|
className: "textfield-label",
|
|
127
|
-
children: [required && label ? `${label} *` : label, tooltipTitle && /*#__PURE__*/
|
|
131
|
+
children: [required && label ? `${label} *` : label, tooltipTitle && /*#__PURE__*/jsx(IconTooltip, {
|
|
128
132
|
placement: "top",
|
|
129
133
|
title: tooltipTitle
|
|
130
134
|
})]
|
|
131
|
-
}), !display && (type === 'text' || type === 'number' ? /*#__PURE__*/
|
|
135
|
+
}), !display && (type === 'text' || type === 'number' ? /*#__PURE__*/jsxs("div", {
|
|
132
136
|
id: id,
|
|
133
137
|
className: textfieldClass,
|
|
134
|
-
children: [iconLeft && /*#__PURE__*/
|
|
138
|
+
children: [iconLeft && /*#__PURE__*/jsx(Icon, {
|
|
135
139
|
name: iconLeft,
|
|
136
140
|
className: "textfield-value--icon-left"
|
|
137
|
-
}), /*#__PURE__*/
|
|
141
|
+
}), /*#__PURE__*/jsx("input", {
|
|
138
142
|
autoFocus: autoFocus,
|
|
139
143
|
value: type === 'number' ? value : value || '',
|
|
140
144
|
disabled: readonly || disabled,
|
|
@@ -148,7 +152,7 @@ export default function TextField(props) {
|
|
|
148
152
|
maxLength: maxLength,
|
|
149
153
|
...typeProps
|
|
150
154
|
}), iconRight ? renderRightIcon() : null]
|
|
151
|
-
}) : /*#__PURE__*/
|
|
155
|
+
}) : /*#__PURE__*/jsx("textarea", {
|
|
152
156
|
autoFocus: autoFocus,
|
|
153
157
|
className: textfieldClass,
|
|
154
158
|
value: value,
|
|
@@ -160,30 +164,32 @@ export default function TextField(props) {
|
|
|
160
164
|
required: required,
|
|
161
165
|
maxLength: maxLength,
|
|
162
166
|
style: (styles || {}).textarea
|
|
163
|
-
})), displayComponent, errorText && /*#__PURE__*/
|
|
167
|
+
})), displayComponent, errorText && /*#__PURE__*/jsxs("div", {
|
|
164
168
|
className: "textfield-label-container",
|
|
165
|
-
children: [/*#__PURE__*/
|
|
169
|
+
children: [/*#__PURE__*/jsx(Icon, {
|
|
166
170
|
name: "error",
|
|
167
171
|
className: "textfield-error-text--icon"
|
|
168
|
-
}), /*#__PURE__*/
|
|
172
|
+
}), /*#__PURE__*/jsx("label", {
|
|
169
173
|
htmlFor: id,
|
|
170
174
|
className: "textfield-error-text",
|
|
171
175
|
children: errorText
|
|
172
176
|
})]
|
|
173
|
-
}), warningText && /*#__PURE__*/
|
|
177
|
+
}), warningText && /*#__PURE__*/jsxs("div", {
|
|
174
178
|
className: "textfield-label-container",
|
|
175
|
-
children: [/*#__PURE__*/
|
|
179
|
+
children: [/*#__PURE__*/jsx(Icon, {
|
|
176
180
|
name: "warning",
|
|
177
181
|
className: "textfield-warning-text--icon"
|
|
178
|
-
}), /*#__PURE__*/
|
|
182
|
+
}), /*#__PURE__*/jsx("label", {
|
|
179
183
|
htmlFor: id,
|
|
180
184
|
className: "textfield-warning-text",
|
|
181
185
|
children: warningText
|
|
182
186
|
})]
|
|
183
|
-
}), helperText && /*#__PURE__*/
|
|
187
|
+
}), helperText && /*#__PURE__*/jsx("label", {
|
|
184
188
|
htmlFor: id,
|
|
185
189
|
className: "textfield-help-text",
|
|
186
190
|
children: helperText
|
|
187
191
|
})]
|
|
188
192
|
});
|
|
189
|
-
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export { TextField as default };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Link, Typography
|
|
1
|
+
import { useState, useRef, useEffect } from 'react';
|
|
2
|
+
import { useTheme, Link, Typography } from '@mui/material';
|
|
3
3
|
import './styles.scss';
|
|
4
|
-
import {
|
|
4
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
5
6
|
const TruncatedTextArea = ({
|
|
6
7
|
truncateConfig,
|
|
7
8
|
children
|
|
@@ -47,22 +48,22 @@ const TruncatedTextArea = ({
|
|
|
47
48
|
if (needsTruncating && !showAll) {
|
|
48
49
|
containerStyle.maxHeight = `${maxHeight}px`;
|
|
49
50
|
}
|
|
50
|
-
return /*#__PURE__*/
|
|
51
|
-
children: [/*#__PURE__*/
|
|
51
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
52
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
52
53
|
style: containerStyle,
|
|
53
|
-
children: /*#__PURE__*/
|
|
54
|
+
children: /*#__PURE__*/jsx("div", {
|
|
54
55
|
ref: contentRef,
|
|
55
56
|
style: {
|
|
56
57
|
display: 'flow-root'
|
|
57
58
|
},
|
|
58
59
|
children: children
|
|
59
60
|
})
|
|
60
|
-
}), needsTruncating && /*#__PURE__*/
|
|
61
|
+
}), needsTruncating && /*#__PURE__*/jsx("div", {
|
|
61
62
|
style: {
|
|
62
63
|
width: '100%',
|
|
63
64
|
textAlign: alignment
|
|
64
65
|
},
|
|
65
|
-
children: /*#__PURE__*/
|
|
66
|
+
children: /*#__PURE__*/jsx(Link, {
|
|
66
67
|
component: "button",
|
|
67
68
|
onClick: toggleShowAll,
|
|
68
69
|
onBlur: collapseOnBlur ? () => setShowAll(false) : undefined,
|
|
@@ -70,7 +71,7 @@ const TruncatedTextArea = ({
|
|
|
70
71
|
color: theme.palette.TwClrTxtBrand,
|
|
71
72
|
textDecorationColor: `${theme.palette.TwClrTxtBrand}80`
|
|
72
73
|
},
|
|
73
|
-
children: /*#__PURE__*/
|
|
74
|
+
children: /*#__PURE__*/jsx(Typography, {
|
|
74
75
|
sx: {
|
|
75
76
|
...showTextStyle,
|
|
76
77
|
marginTop: '-3px'
|
|
@@ -81,4 +82,5 @@ const TruncatedTextArea = ({
|
|
|
81
82
|
})]
|
|
82
83
|
});
|
|
83
84
|
};
|
|
84
|
-
|
|
85
|
+
|
|
86
|
+
export { TruncatedTextArea as default };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import 'react';
|
|
2
2
|
import './styles.scss';
|
|
3
|
-
import {
|
|
3
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
4
5
|
const TimelineMarker = ({
|
|
5
6
|
color,
|
|
6
7
|
labelBottom,
|
|
@@ -10,20 +11,21 @@ const TimelineMarker = ({
|
|
|
10
11
|
value
|
|
11
12
|
}) => {
|
|
12
13
|
const clampedValue = Math.min(1, Math.max(0, value));
|
|
13
|
-
return /*#__PURE__*/
|
|
14
|
+
return /*#__PURE__*/jsxs("div", {
|
|
14
15
|
className: `timeline-marker timeline-marker--${size} ${onClick ? 'timeline-marker--clickable' : ''}`,
|
|
15
16
|
style: {
|
|
16
17
|
left: `${clampedValue * 100}%`,
|
|
17
18
|
backgroundColor: color
|
|
18
19
|
},
|
|
19
20
|
onClick: onClick,
|
|
20
|
-
children: [labelTop && /*#__PURE__*/
|
|
21
|
+
children: [labelTop && /*#__PURE__*/jsx("div", {
|
|
21
22
|
className: "timeline-marker__label timeline-marker__label--top",
|
|
22
23
|
children: labelTop
|
|
23
|
-
}), labelBottom && /*#__PURE__*/
|
|
24
|
+
}), labelBottom && /*#__PURE__*/jsx("div", {
|
|
24
25
|
className: "timeline-marker__label timeline-marker__label--bottom",
|
|
25
26
|
children: labelBottom
|
|
26
27
|
})]
|
|
27
28
|
});
|
|
28
29
|
};
|
|
29
|
-
|
|
30
|
+
|
|
31
|
+
export { TimelineMarker as default };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import 'react';
|
|
2
2
|
import './styles.scss';
|
|
3
|
-
import { jsx
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
4
5
|
const TimelineRail = () => {
|
|
5
|
-
return /*#__PURE__*/
|
|
6
|
+
return /*#__PURE__*/jsx("div", {
|
|
6
7
|
className: "timeline-rail"
|
|
7
8
|
});
|
|
8
9
|
};
|
|
9
|
-
|
|
10
|
+
|
|
11
|
+
export { TimelineRail as default };
|