@corva/ui 3.74.0-9 → 3.75.0-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/cjs-bundle/components/AddComment/Popover.js +1 -1
- package/cjs-bundle/components/AddComment/Popover.js.map +1 -1
- package/cjs-bundle/components/AddComment/components/Content.js +1 -1
- package/cjs-bundle/components/AddComment/components/Content.js.map +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/index.js.map +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js.map +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
- package/cjs-bundle/components/Chart/components/AxisOverlay.js +1 -1
- package/cjs-bundle/components/Chart/components/AxisOverlay.js.map +1 -1
- package/cjs-bundle/components/Chart/components/ChartWrapper.js +1 -1
- package/cjs-bundle/components/Chart/components/ChartWrapper.js.map +1 -1
- package/cjs-bundle/components/CollapsableSidebar.js +1 -1
- package/cjs-bundle/components/CollapsableSidebar.js.map +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js.map +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js.map +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js.map +1 -1
- package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
- package/cjs-bundle/components/DocumentViewer/DocumentViewer.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
- package/cjs-bundle/components/FeedItem/FeedItem.js +1 -1
- package/cjs-bundle/components/FeedItem/FeedItem.js.map +1 -1
- package/cjs-bundle/components/FeedItem/components/FeedComments.js +1 -1
- package/cjs-bundle/components/FeedItem/components/FeedComments.js.map +1 -1
- package/cjs-bundle/components/GradientManager/GradientManager.js +1 -1
- package/cjs-bundle/components/GradientManager/GradientManager.js.map +1 -1
- package/cjs-bundle/components/GradientManager/GradientPreview/GradientPreview.js +1 -1
- package/cjs-bundle/components/GradientManager/GradientPreview/GradientPreview.js.map +1 -1
- package/cjs-bundle/components/GradientManager/GradientSelect.js +1 -1
- package/cjs-bundle/components/GradientManager/GradientSelect.js.map +1 -1
- package/cjs-bundle/components/GradientManager/GradientSelect.scss.js +2 -0
- package/cjs-bundle/components/GradientManager/GradientSelect.scss.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SubjectWellMarker/SubjectWellMarker.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SubjectWellMarker/SubjectWellMarker.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js.map +1 -1
- package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
- package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
- package/cjs-bundle/components/Popover/Popover.js +1 -1
- package/cjs-bundle/components/Popover/Popover.js.map +1 -1
- package/cjs-bundle/components/Popper/Popper.js +1 -1
- package/cjs-bundle/components/Popper/Popper.js.map +1 -1
- package/cjs-bundle/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
- package/cjs-bundle/components/RealTimeValuesSidebar/SidebarFooter.js.map +1 -1
- package/cjs-bundle/componentsV2/ColorPicker/ColorPicker.js +1 -1
- package/cjs-bundle/componentsV2/ColorPicker/ColorPicker.js.map +1 -1
- package/cjs-bundle/componentsV2/ColorPicker/ColorPicker.scss.js +1 -1
- package/cjs-bundle/componentsV2/ColorPicker/OpacityDragtracker/OpacityDragtracker.js +1 -1
- package/cjs-bundle/componentsV2/ColorPicker/OpacityDragtracker/OpacityDragtracker.js.map +1 -1
- package/cjs-bundle/componentsV2/ColorPicker/Swatches/Swatches.scss.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/Map/Map.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/Map/Map.js.map +1 -1
- package/cjs-bundle/componentsV2/TextArea/Resizer.js +2 -0
- package/cjs-bundle/componentsV2/TextArea/Resizer.js.map +1 -0
- package/cjs-bundle/componentsV2/TextArea/TextArea.constants.js +2 -0
- package/cjs-bundle/componentsV2/TextArea/TextArea.constants.js.map +1 -0
- package/cjs-bundle/componentsV2/TextArea/TextArea.js +2 -0
- package/cjs-bundle/componentsV2/TextArea/TextArea.js.map +1 -0
- package/cjs-bundle/componentsV2/TextArea/TextArea.scss.js +2 -0
- package/cjs-bundle/componentsV2/TextArea/TextArea.scss.js.map +1 -0
- package/cjs-bundle/componentsV2/TextInputBase/TextInputBase.js +2 -0
- package/cjs-bundle/componentsV2/TextInputBase/TextInputBase.js.map +1 -0
- package/cjs-bundle/componentsV2/TextInputBase/TextInputBase.scss.js +2 -0
- package/cjs-bundle/componentsV2/TextInputBase/TextInputBase.scss.js.map +1 -0
- package/cjs-bundle/componentsV2/{TextInputNext → TextInputBase}/components/InfoIcon.js.map +1 -1
- package/cjs-bundle/componentsV2/{TextInputNext → TextInputBase}/components/Label.js.map +1 -1
- package/cjs-bundle/componentsV2/{TextInputNext → TextInputBase}/components/MessageWithIcon.js.map +1 -1
- package/cjs-bundle/componentsV2/{TextInputNext → TextInputBase}/components/RequiredIndicator.js.map +1 -1
- package/cjs-bundle/componentsV2/TextInputBase/components/Styles.scss.js +2 -0
- package/cjs-bundle/componentsV2/{TextInputNext → TextInputBase}/components/Unit.js.map +1 -1
- package/cjs-bundle/componentsV2/TextInputNext/TextInputNext.js +1 -1
- package/cjs-bundle/componentsV2/TextInputNext/TextInputNext.js.map +1 -1
- package/cjs-bundle/componentsV2/TextInputNext/TextInputNext.scss.js +1 -1
- package/cjs-bundle/componentsV2/WellArchivedMessage/WellArchivedMessage.js +1 -1
- package/cjs-bundle/componentsV2/WellArchivedMessage/WellArchivedMessage.js.map +1 -1
- package/cjs-bundle/componentsV2/index.js +1 -1
- package/cjs-bundle/testing/AppTestWrapper/AppTestWrapper.js +1 -1
- package/cjs-bundle/testing/AppTestWrapper/AppTestWrapper.js.map +1 -1
- package/components/AddComment/Popover.js +1 -1
- package/components/AddComment/Popover.js.map +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/AddComment/components/Content.js.map +1 -1
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/BICOffsetPickerDialog/index.js.map +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
- package/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/components/Casing/CasingTableV2/components/Component.js.map +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
- package/components/Chart/components/AxisOverlay.d.ts +2 -1
- package/components/Chart/components/AxisOverlay.d.ts.map +1 -1
- package/components/Chart/components/AxisOverlay.js +1 -1
- package/components/Chart/components/AxisOverlay.js.map +1 -1
- package/components/Chart/components/ChartWrapper.d.ts.map +1 -1
- package/components/Chart/components/ChartWrapper.js +1 -1
- package/components/Chart/components/ChartWrapper.js.map +1 -1
- package/components/Chart/components/__tests__/AxisOverlay.test.d.ts +2 -0
- package/components/Chart/components/__tests__/AxisOverlay.test.d.ts.map +1 -0
- package/components/CollapsableSidebar.js +1 -1
- package/components/CollapsableSidebar.js.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js.map +1 -1
- package/components/DocumentViewer/DocumentViewer.js +1 -1
- package/components/DocumentViewer/DocumentViewer.js.map +1 -1
- package/components/Drillstring/BHAComponentDetail/constants.d.ts +2 -2
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
- package/components/FeedItem/FeedItem.js +1 -1
- package/components/FeedItem/FeedItem.js.map +1 -1
- package/components/FeedItem/components/FeedComments.js +1 -1
- package/components/FeedItem/components/FeedComments.js.map +1 -1
- package/components/GradientManager/GradientManager.d.ts.map +1 -1
- package/components/GradientManager/GradientManager.js +1 -1
- package/components/GradientManager/GradientManager.js.map +1 -1
- package/components/GradientManager/GradientPreview/GradientPreview.d.ts.map +1 -1
- package/components/GradientManager/GradientPreview/GradientPreview.js +1 -1
- package/components/GradientManager/GradientPreview/GradientPreview.js.map +1 -1
- package/components/GradientManager/GradientSelect.d.ts.map +1 -1
- package/components/GradientManager/GradientSelect.js +1 -1
- package/components/GradientManager/GradientSelect.js.map +1 -1
- package/components/GradientManager/GradientSelect.scss.js +2 -0
- package/components/GradientManager/GradientSelect.scss.js.map +1 -0
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
- package/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js +1 -1
- package/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js.map +1 -1
- package/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js +1 -1
- package/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js.map +1 -1
- package/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
- package/components/OffsetWellPickerV5/components/Filter/Filter.js.map +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js.map +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.js.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SubjectWellMarker/SubjectWellMarker.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SubjectWellMarker/SubjectWellMarker.js.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.js.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.js.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.js.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.js.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.js.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.js.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.js.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.js.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.js.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js.map +1 -1
- package/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js +1 -1
- package/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js.map +1 -1
- package/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
- package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
- package/components/Popover/Popover.js +1 -1
- package/components/Popover/Popover.js.map +1 -1
- package/components/Popper/Popper.js +1 -1
- package/components/Popper/Popper.js.map +1 -1
- package/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
- package/components/RealTimeValuesSidebar/SidebarFooter.js.map +1 -1
- package/componentsV2/ColorPicker/ColorPicker.d.ts +2 -1
- package/componentsV2/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/componentsV2/ColorPicker/ColorPicker.js +1 -1
- package/componentsV2/ColorPicker/ColorPicker.js.map +1 -1
- package/componentsV2/ColorPicker/ColorPicker.scss.js +1 -1
- package/componentsV2/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
- package/componentsV2/ColorPicker/OpacityDragtracker/OpacityDragtracker.d.ts.map +1 -1
- package/componentsV2/ColorPicker/OpacityDragtracker/OpacityDragtracker.js +1 -1
- package/componentsV2/ColorPicker/OpacityDragtracker/OpacityDragtracker.js.map +1 -1
- package/componentsV2/ColorPicker/Swatches/Swatches.scss.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/Map/Map.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/Map/Map.js.map +1 -1
- package/componentsV2/TextArea/Resizer.d.ts +4 -0
- package/componentsV2/TextArea/Resizer.d.ts.map +1 -0
- package/componentsV2/TextArea/Resizer.js +2 -0
- package/componentsV2/TextArea/Resizer.js.map +1 -0
- package/componentsV2/TextArea/TextArea.constants.d.ts +9 -0
- package/componentsV2/TextArea/TextArea.constants.d.ts.map +1 -0
- package/componentsV2/TextArea/TextArea.constants.js +2 -0
- package/componentsV2/TextArea/TextArea.constants.js.map +1 -0
- package/componentsV2/TextArea/TextArea.d.ts +32 -0
- package/componentsV2/TextArea/TextArea.d.ts.map +1 -0
- package/componentsV2/TextArea/TextArea.js +2 -0
- package/componentsV2/TextArea/TextArea.js.map +1 -0
- package/componentsV2/TextArea/TextArea.scss.js +2 -0
- package/componentsV2/TextArea/TextArea.scss.js.map +1 -0
- package/componentsV2/TextArea/TextArea.stories.d.ts +12 -0
- package/componentsV2/TextArea/TextArea.stories.d.ts.map +1 -0
- package/componentsV2/TextArea/index.d.ts +2 -0
- package/componentsV2/TextArea/index.d.ts.map +1 -0
- package/componentsV2/TextInputBase/TextInputBase.d.ts +94 -0
- package/componentsV2/TextInputBase/TextInputBase.d.ts.map +1 -0
- package/componentsV2/TextInputBase/TextInputBase.js +2 -0
- package/componentsV2/TextInputBase/TextInputBase.js.map +1 -0
- package/componentsV2/TextInputBase/TextInputBase.scss.js +2 -0
- package/componentsV2/TextInputBase/TextInputBase.scss.js.map +1 -0
- package/componentsV2/{TextInputNext → TextInputBase}/components/InfoIcon.d.ts.map +1 -1
- package/componentsV2/{TextInputNext → TextInputBase}/components/InfoIcon.js.map +1 -1
- package/componentsV2/{TextInputNext → TextInputBase}/components/Label.d.ts.map +1 -1
- package/componentsV2/{TextInputNext → TextInputBase}/components/Label.js.map +1 -1
- package/componentsV2/{TextInputNext → TextInputBase}/components/MessageWithIcon.d.ts.map +1 -1
- package/componentsV2/{TextInputNext → TextInputBase}/components/MessageWithIcon.js.map +1 -1
- package/componentsV2/{TextInputNext → TextInputBase}/components/RequiredIndicator.d.ts.map +1 -1
- package/componentsV2/{TextInputNext → TextInputBase}/components/RequiredIndicator.js.map +1 -1
- package/componentsV2/TextInputBase/components/Styles.scss.js +2 -0
- package/componentsV2/{TextInputNext → TextInputBase}/components/Unit.d.ts.map +1 -1
- package/componentsV2/{TextInputNext → TextInputBase}/components/Unit.js.map +1 -1
- package/componentsV2/{TextInputNext → TextInputBase}/components/index.d.ts.map +1 -1
- package/componentsV2/TextInputBase/index.d.ts +2 -0
- package/componentsV2/TextInputBase/index.d.ts.map +1 -0
- package/componentsV2/TextInputNext/TextInputNext.d.ts +37 -54
- package/componentsV2/TextInputNext/TextInputNext.d.ts.map +1 -1
- package/componentsV2/TextInputNext/TextInputNext.js +1 -1
- package/componentsV2/TextInputNext/TextInputNext.js.map +1 -1
- package/componentsV2/TextInputNext/TextInputNext.scss.js +1 -1
- package/componentsV2/TextInputNext/index.d.ts +1 -1
- package/componentsV2/TextInputNext/index.d.ts.map +1 -1
- package/componentsV2/WellArchivedMessage/WellArchivedMessage.js +1 -1
- package/componentsV2/WellArchivedMessage/WellArchivedMessage.js.map +1 -1
- package/componentsV2/index.d.ts +1 -0
- package/componentsV2/index.d.ts.map +1 -1
- package/componentsV2/index.js +1 -1
- package/mcp-server/server.mjs +224 -57
- package/package.json +1 -1
- package/testing/AppTestWrapper/AppTestWrapper.js +1 -1
- package/testing/AppTestWrapper/AppTestWrapper.js.map +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/cjs-bundle/components/GradientManager/GradientSelect.styles.js +0 -2
- package/cjs-bundle/components/GradientManager/GradientSelect.styles.js.map +0 -1
- package/cjs-bundle/componentsV2/TextInputNext/components/Styles.scss.js +0 -2
- package/components/GradientManager/GradientSelect.styles.d.ts +0 -2
- package/components/GradientManager/GradientSelect.styles.d.ts.map +0 -1
- package/components/GradientManager/GradientSelect.styles.js +0 -2
- package/components/GradientManager/GradientSelect.styles.js.map +0 -1
- package/componentsV2/TextInputNext/components/Styles.scss.js +0 -2
- /package/cjs-bundle/componentsV2/{TextInputNext → TextInputBase}/components/InfoIcon.js +0 -0
- /package/cjs-bundle/componentsV2/{TextInputNext → TextInputBase}/components/Label.js +0 -0
- /package/cjs-bundle/componentsV2/{TextInputNext → TextInputBase}/components/MessageWithIcon.js +0 -0
- /package/cjs-bundle/componentsV2/{TextInputNext → TextInputBase}/components/RequiredIndicator.js +0 -0
- /package/cjs-bundle/componentsV2/{TextInputNext → TextInputBase}/components/Styles.scss.js.map +0 -0
- /package/cjs-bundle/componentsV2/{TextInputNext → TextInputBase}/components/Unit.js +0 -0
- /package/componentsV2/{TextInputNext → TextInputBase}/components/InfoIcon.d.ts +0 -0
- /package/componentsV2/{TextInputNext → TextInputBase}/components/InfoIcon.js +0 -0
- /package/componentsV2/{TextInputNext → TextInputBase}/components/Label.d.ts +0 -0
- /package/componentsV2/{TextInputNext → TextInputBase}/components/Label.js +0 -0
- /package/componentsV2/{TextInputNext → TextInputBase}/components/MessageWithIcon.d.ts +0 -0
- /package/componentsV2/{TextInputNext → TextInputBase}/components/MessageWithIcon.js +0 -0
- /package/componentsV2/{TextInputNext → TextInputBase}/components/RequiredIndicator.d.ts +0 -0
- /package/componentsV2/{TextInputNext → TextInputBase}/components/RequiredIndicator.js +0 -0
- /package/componentsV2/{TextInputNext → TextInputBase}/components/Styles.scss.js.map +0 -0
- /package/componentsV2/{TextInputNext → TextInputBase}/components/Unit.d.ts +0 -0
- /package/componentsV2/{TextInputNext → TextInputBase}/components/Unit.js +0 -0
- /package/componentsV2/{TextInputNext → TextInputBase}/components/index.d.ts +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import s from"@babel/runtime/helpers/toConsumableArray";import o from"@babel/runtime/helpers/defineProperty";import{memo as t,useMemo as e,useCallback as i}from"react";import{Text as r}from"../../Text/Text.js";import"../../Grid/Grid.js";import"../../Grid/Cell.js";import"classnames";import"../../Header/Header.scss.js";import{jsxs as n,jsx as c}from"react/jsx-runtime";import"../../Button/Button.js";import"../../ButtonIcon/ButtonIcon.js";import"@babel/runtime/helpers/objectWithoutProperties";import"@material-ui/core";import"../../../components/DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js";import"../../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"@babel/runtime/helpers/slicedToArray";import"uuid";import"../../Tooltip/Tooltip.scss.js";import"../../Popover/Popover.js";import"../../PopoverPanel/PopoverPanel.js";import"../../Radio/Radio.js";import"../../RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../Checkbox/Checkbox.js";import{TextInput as p}from"../../TextInput/TextInput.js";import"../../TextInputNext/TextInputNext.js";import"../../Label/Label.js";import"lodash";import"../../TextEndTruncated/TextEndTruncated.scss.js";import"../../TextMiddleTruncated/TextMiddleTruncated.constants.js";import"../../TextMiddleTruncated/TextMiddleTruncated.scss.js";import"../../TextLink/TextLink.js";import"../../Chip/Chip.js";import"../../ChipAlert/ChipAlert.js";import"../../ChipIndicator/ChipIndicator.js";import"../../Avatar/Avatar.js";import"../../AvatarGroup/AvatarGroup.js";import"@material-ui/lab";import"../../ToggleButtons/ToggleButtons.scss.js";import"../../Paper/Paper.js";import"../../ModalWindow/ModalWindow.js";import"../../Modal/Modal.scss.js";import"../../Menu/Menu.js";import"@icon-park/react/es/all";import"../../../icons/IconParkProvider.js";import"../../../icons/customIcons/icons/AddMessage.js";import"../../../icons/customIcons/icons/DragOne.js";import"../../../icons/customIcons/icons/Attention.js";import"../../../icons/customIcons/icons/Collapse.js";import"../../../icons/customIcons/icons/Dashboard.js";import"../../../icons/customIcons/icons/Expand.js";import"../../../icons/customIcons/icons/FolderClosed.js";import"../../../icons/customIcons/icons/FolderClosedFilled.js";import"../../../icons/customIcons/icons/FolderOpened.js";import"../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../icons/customIcons/icons/LessOrEqual.js";import"../../../icons/customIcons/icons/Search.js";import"../../../icons/customIcons/icons/SearchOne.js";import"../../../icons/customIcons/icons/Wellhub.js";import"../../../icons/customIcons/icons/MultiRuler.js";import"../../../icons/customIcons/icons/Checkbox.js";import"../../../icons/customIcons/icons/CheckboxChecked.js";import"../../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../../icons/customIcons/icons/Radio.js";import"../../../icons/customIcons/icons/RadioChecked.js";import"../../../icons/customIcons/icons/SimulFrac.js";import"../../../icons/customIcons/icons/ZipperFrac.js";import"../../../icons/customIcons/icons/CautionFilled.js";import"../../../icons/customIcons/icons/MoreApp.js";import"../../../icons/customIcons/icons/Pad.js";import"../../../icons/customIcons/icons/DrilloutUnit.js";import"../../../icons/customIcons/icons/FracFleet.js";import"../../../icons/customIcons/icons/Global.js";import"../../../icons/customIcons/icons/Program.js";import"../../../icons/customIcons/icons/Rig.js";import"../../../icons/customIcons/icons/Well.js";import"../../../icons/customIcons/icons/Gap.js";import"../../../icons/customIcons/icons/Pin.js";import"../../../icons/customIcons/icons/CloseOneFilled.js";import"../../../icons/customIcons/icons/AttentionFilled.js";import"../../../icons/customIcons/icons/CheckOneFilled.js";import"../../../icons/customIcons/icons/Archive.js";import"../../../icons/customIcons/icons/ArchiveCancel.js";import"../../../icons/customIcons/icons/Unarchive.js";import"../../../icons/customIcons/icons/Archived.js";import"../../../icons/customIcons/icons/InterventionUnit.js";import"../../../icons/customIcons/icons/CloudDelete.js";import"../../../icons/customIcons/icons/Lasso.js";import"../../../icons/customIcons/icons/Radius.js";import"../../../icons/customIcons/icons/ErrorOps.js";import"../../../icons/customIcons/icons/DataTypeOps.js";import"../../../icons/customIcons/icons/FalsePositiveOps.js";import"../../../icons/customIcons/icons/CalibrationOps.js";import"../../../icons/customIcons/icons/CriticalOps.js";import"../../../icons/customIcons/icons/Company.js";import"../../../icons/customIcons/icons/ArchiveOne.js";import"../../../icons/customIcons/icons/ParseBotFusion.js";import"../../../icons/customIcons/icons/Connect.js";import"../../../icons/customIcons/icons/PuzzleOne.js";import"../../../icons/customIcons/icons/Feed.js";import"../../../icons/customIcons/icons/Prompt.js";import"../../../icons/customIcons/icons/Companies.js";import"../../../icons/customIcons/icons/ClipboardAi.js";import"../../../icons/customIcons/icons/Key.js";import"../../../icons/customIcons/icons/AtSignCrossed.js";import"../../../icons/customIcons/icons/MappingManual.js";import"../../../icons/customIcons/icons/Mapping.js";import"../../../icons/customIcons/icons/Metrics.js";import"../../../icons/customIcons/icons/Drops.js";import"../../../icons/customIcons/icons/ClipboardSearch.js";import"../../../icons/customIcons/icons/Template.js";import"../../../icons/customIcons/icons/ClipboardMetrics.js";import"../../../icons/customIcons/icons/ClipboardBuilder.js";import"../../../icons/customIcons/icons/UnitConversion.js";import"../../../icons/customIcons/icons/NPT.js";import"../../../icons/customIcons/icons/GuidedFrac.js";import"../../utils.js";import"../../Hint/Hint.scss.js";import"../../Counter/Counter.js";import"../../BadgeBase/BadgeBase.scss.js";import"../../TemplatesControl/TemplatesControl.js";import"zustand";import"../../TemplatesControl/utils.js";import"../../TemplatesControl/icons/folder/index.js";import"../../TemplatesControl/Store/utils.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../TemplatesControl/types.js";import"../../../utils/index.js";import"../../../clients/jsonApi/index.js";import"../../../permissions/PermissionsContext.js";import"../../../permissions/constants/index.js";import"../../../permissions/withPermissionsHOC.js";import"../../../permissions/ProvidePermissions.js";import"../../BadgeDot/BadgeDot.scss.js";import"../../LoaderLinear/LoaderLinear.scss.js";import"../../LoaderLogo/LoaderLogo.constants.js";import"../../LoaderLogo/LoaderLogo.scss.js";import"../../Switch/Switch.js";import"../../Tabs/Tabs.js";import"../../EmptyState/EmptyState.scss.js";import"../../FileIcon/FileIcon.js";import"../../Tag/Tag.js";import"react-dropzone";import"../../FilesDropzone/FilesDropzone.scss.js";import"../../FilesLoader/FilesLoader.scss.js";import"file-extension";import"image-extensions";import"video-extensions";import"../../FilesProcessor/FilesProcessor.scss.js";import"../../Skeleton/Skeleton.scss.js";import"../../../utils/main.js";import"../../CopyToClipboard/CopyToClipboard.scss.js";import"../../Stepper/Step/Step.scss.js";import"../../Stepper/Stepper.scss.js";import"../../ButtonLive/ButtonLive.js";import"../../ButtonText/ButtonText.js";import"../../IndicatorLive/IndicatorLive.js";import"../../Accordion/Accordion.scss.js";import"../../Breadcrumbs/Breadcrumbs.scss.js";import"../../BadgeComment/BadgeComment.js";import"../../AppContainer/AppContainer.js";import"../../AppContainer/AppContainer.constants.js";import"../../AppFooter/AppFooter.js";import"immutable";import"query-string";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/alerts.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/completion.js";import"../../../constants/appPackages.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import"../../../constants/corvaCompanyId.js";import"../../../components/GradientManager/configuration/constants.js";import"../../AppCommonsProvider/AppCommonsContext.js";import"../../AppHeader/AppHeader.constants.js";import"../../AppHeader/AppBadge/AppBadge.scss.js";import"../../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router-dom";import"../../AppHeader/AppAssets/utils.js";import"../../AppHeader/AppAssets/AppAssets.scss.js";import"../../../components/PadModeSelect/PadModeSelect.js";import"../../AppHeader/PadMode/PadMode.scss.js";import"../../../constants/streamSourceType.js";import"../../PadModeSelect/PadModeSelect.js";import"../../PadModeSelect/PadModeSelect.constants.js";import"../../AppCommonsProvider/AppCommonsProvider.js";import"../../../utils/mobileDetect.js";import"../../AppHeader/V3/VersionSelect/VersionSelect.js";import"../../UniversalLink/UniversalLink.scss.js";import"../../AppHeader/V3/AssetChips/AssetChips.scss.js";import"moment";import"../../AppHeader/V3/DqStatusIcon/DqStatusIcon.js";import"../../AppHeader/V3/DqStatusIcon/DqStatusIcon.constants.js";import"../../AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js";import"../../AppDqPopover/DqAlertTooltip/DqAlertTooltip.scss.js";import"../../AppDqPopover/DqAlert/DqAlert.scss.js";import"../../AppDqPopover/DqAsset/DqAsset.scss.js";import"../../AppDqPopover/AppDqPopover.scss.js";import"../../../components/AppIcon/AppIcon.js";import"../../../utils/getSingleAsset.js";import"../../AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js";import"../../AppHeader/V3/AssetSelector/constants.js";import"../../AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js";import"../../AppHeader/V3/AssetSelector/AssetSelectorSelect/loadAssets.js";import"../../AppHeader/V3/AssetSelector/AssetSelector.scss.js";import"../../../clients/subscriptions/constants.js";import"querystring";import"uuid/v1";import"../../../clients/subscriptions.v1.js";import"../../../clients/subscriptions/subscriptions-client.factory.js";import"jsona";import"../../../utils/env.js";import"../../../components/StatusBadge/constants.js";import"lodash/set";import"lodash/get";import"lodash/unset";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import"../../../clients/sso/auth0.js";import"../../../clients/sso/oauth2.js";import"../../../clients/api/rateLimiter.js";import"lodash/isEmpty";import"lodash/sortBy";import"../../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../AppSettings/AppSettingsPinningContext.js";import"../../AppHeader/V3/AppTitle/AppTitle.constants.js";import"../../AppHeader/V3/AppTitle/AppTitle.scss.js";import"../../AppHeader/V3/constants.scss.js";import"@babel/runtime/helpers/typeof";import"../../AppHeader/V3/SettingsButton/SettingsButton.js";import"../../AppHeader/V3/SettingsButton/SettingsButton.constants.js";import"../../AppSettings/AppSettings.js";import"../../AppSettings/AppSettings.constants.js";import"../../AppSizeProvider/AppSizeProvider.js";import"../../AppHeader/V3/Actions/Actions.constants.js";import"../../AppHeader/V3/Actions/Actions.scss.js";import"../../AppHeader/V3/AppHeaderV3.scss.js";import"../../AppHeader/AppHeader.scss.js";import"../../OffsetWellsButton/OffsetWellsButton.js";import"../../ChartAxisExtreme/ChartAxisExtreme.scss.js";import"highcharts";import"../../ChartAxisExtreme/ChartAxisExtremeDragTracker.js";import"../../Autocomplete/Autocomplete.js";import"../../Select/Select.js";import"../../AppSettingsDivider/AppSettingsDivider.scss.js";import"../../WellArchivedMessage/WellArchivedMessage.js";import"../../DatePicker/DatePicker.js";import"../../DragHandle/DragHandle.js";import"../CompletionsOffsetWellPicker.js";import"../../Slider/constants.js";import"../../Slider/components/SliderThumb.js";import"../../Slider/Slider.scss.js";import"../../SliderAdvanced/SliderAdvanced.js";import"react-color";import"../../ColorPicker/Swatches/Swatches.scss.js";import"../../ColorPicker/OpacityDragtracker/OpacityDragTracker.scss.js";import"../../ColorPicker/ColorPicker.scss.js";import"../../ChartHelper/ChartHelper.scss.js";import"../../Hotkey/Hotkey.js";import"@tanstack/react-query";import"../../InterventionEventSelector/useInterventionUnitEvents.js";import"../../InterventionEventSelector/InterventionEventSelector.scss.js";import m from"../../../components/OffsetWellMap/OffsetWellMap.js";import a from"./Map.scss.js";function l(s,o){var t=Object.keys(s);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(s);o&&(e=e.filter((function(o){return Object.getOwnPropertyDescriptor(s,o).enumerable}))),t.push.apply(t,e)}return t}function j(s){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?l(Object(e),!0).forEach((function(t){o(s,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(e)):l(Object(e)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(e,o))}))}return s}var u=t((function(o){var t=o.well,l=o.wells,u=o.pads,d=o.selectedOffsetWellsIds,A=o.onOffsetWellIdsSelect,I=o.radiusMiles,C=o.setFilters,v=o.maxRadiusInMiles,S=e((function(){return u?u.flatMap((function(s){return s.wells})):[]}),[u]),h=e((function(){return t?j({},S.find((function(s){return s.id.toString()===t.id.toString()}))):l?j({},S.find((function(s){return s.id.toString()===l[0].id.toString()}))):void 0}),[S,t,l]),g=i((function(o){var t=u.find((function(s){return s.wells.some((function(s){return s.id===o}))})),e=t?t.wells.map((function(s){return s.id})):[],i=d.some((function(s){return e.includes(s)}));A(i?d.filter((function(s){return!e.includes(s)})):[].concat(s(d),s(e)))}),[A,u,d]),f=i((function(s){var o=""===s?void 0:Number(s);C((function(s){return j(j({},s),{},{radiusMiles:o})}))}),[C]);return n("div",{className:a.map,children:[n("div",{className:a.radiusContainer,children:[c(r,{color:"T6",children:"Radius (mi):"}),c(p,{className:a.textInputWrapper,value:null!=I?I:"",placeholder:"0",onChange:f,inputType:"number",htmlAttributes:{min:0,max:v}})]}),c(m,{classes:{root:a.offsetWellMapRoot,map:a.offsetWellMapRoot},isClickable:!0,isViewOnly:!1,subjectWell:h,wells:S,offsetWellIds:d,radius:null!=I?I:0,activeWellId:(null==h?void 0:h.id)||0,handleChangeOffsetWell:function(s){return s&&g(s.id)}})]})}));export{u as default};
|
|
1
|
+
import s from"@babel/runtime/helpers/toConsumableArray";import o from"@babel/runtime/helpers/defineProperty";import{memo as t,useMemo as e,useCallback as i}from"react";import{Text as r}from"../../Text/Text.js";import"../../Grid/Grid.js";import"../../Grid/Cell.js";import"classnames";import"../../Header/Header.scss.js";import{jsxs as n,jsx as c}from"react/jsx-runtime";import"../../Button/Button.js";import"../../ButtonIcon/ButtonIcon.js";import"@babel/runtime/helpers/objectWithoutProperties";import"@material-ui/core";import"../../../components/DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js";import"../../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"@babel/runtime/helpers/slicedToArray";import"uuid";import"../../Tooltip/Tooltip.scss.js";import"../../Popover/Popover.js";import"../../PopoverPanel/PopoverPanel.js";import"../../Radio/Radio.js";import"../../RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../Checkbox/Checkbox.js";import{TextInput as p}from"../../TextInput/TextInput.js";import"../../TextInputNext/TextInputNext.js";import"../../TextArea/TextArea.js";import"../../Label/Label.js";import"lodash";import"../../TextEndTruncated/TextEndTruncated.scss.js";import"../../TextMiddleTruncated/TextMiddleTruncated.constants.js";import"../../TextMiddleTruncated/TextMiddleTruncated.scss.js";import"../../TextLink/TextLink.js";import"../../Chip/Chip.js";import"../../ChipAlert/ChipAlert.js";import"../../ChipIndicator/ChipIndicator.js";import"../../Avatar/Avatar.js";import"../../AvatarGroup/AvatarGroup.js";import"@material-ui/lab";import"../../ToggleButtons/ToggleButtons.scss.js";import"../../Paper/Paper.js";import"../../ModalWindow/ModalWindow.js";import"../../Modal/Modal.scss.js";import"../../Menu/Menu.js";import"@icon-park/react/es/all";import"../../../icons/IconParkProvider.js";import"../../../icons/customIcons/icons/AddMessage.js";import"../../../icons/customIcons/icons/DragOne.js";import"../../../icons/customIcons/icons/Attention.js";import"../../../icons/customIcons/icons/Collapse.js";import"../../../icons/customIcons/icons/Dashboard.js";import"../../../icons/customIcons/icons/Expand.js";import"../../../icons/customIcons/icons/FolderClosed.js";import"../../../icons/customIcons/icons/FolderClosedFilled.js";import"../../../icons/customIcons/icons/FolderOpened.js";import"../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../icons/customIcons/icons/LessOrEqual.js";import"../../../icons/customIcons/icons/Search.js";import"../../../icons/customIcons/icons/SearchOne.js";import"../../../icons/customIcons/icons/Wellhub.js";import"../../../icons/customIcons/icons/MultiRuler.js";import"../../../icons/customIcons/icons/Checkbox.js";import"../../../icons/customIcons/icons/CheckboxChecked.js";import"../../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../../icons/customIcons/icons/Radio.js";import"../../../icons/customIcons/icons/RadioChecked.js";import"../../../icons/customIcons/icons/SimulFrac.js";import"../../../icons/customIcons/icons/ZipperFrac.js";import"../../../icons/customIcons/icons/CautionFilled.js";import"../../../icons/customIcons/icons/MoreApp.js";import"../../../icons/customIcons/icons/Pad.js";import"../../../icons/customIcons/icons/DrilloutUnit.js";import"../../../icons/customIcons/icons/FracFleet.js";import"../../../icons/customIcons/icons/Global.js";import"../../../icons/customIcons/icons/Program.js";import"../../../icons/customIcons/icons/Rig.js";import"../../../icons/customIcons/icons/Well.js";import"../../../icons/customIcons/icons/Gap.js";import"../../../icons/customIcons/icons/Pin.js";import"../../../icons/customIcons/icons/CloseOneFilled.js";import"../../../icons/customIcons/icons/AttentionFilled.js";import"../../../icons/customIcons/icons/CheckOneFilled.js";import"../../../icons/customIcons/icons/Archive.js";import"../../../icons/customIcons/icons/ArchiveCancel.js";import"../../../icons/customIcons/icons/Unarchive.js";import"../../../icons/customIcons/icons/Archived.js";import"../../../icons/customIcons/icons/InterventionUnit.js";import"../../../icons/customIcons/icons/CloudDelete.js";import"../../../icons/customIcons/icons/Lasso.js";import"../../../icons/customIcons/icons/Radius.js";import"../../../icons/customIcons/icons/ErrorOps.js";import"../../../icons/customIcons/icons/DataTypeOps.js";import"../../../icons/customIcons/icons/FalsePositiveOps.js";import"../../../icons/customIcons/icons/CalibrationOps.js";import"../../../icons/customIcons/icons/CriticalOps.js";import"../../../icons/customIcons/icons/Company.js";import"../../../icons/customIcons/icons/ArchiveOne.js";import"../../../icons/customIcons/icons/ParseBotFusion.js";import"../../../icons/customIcons/icons/Connect.js";import"../../../icons/customIcons/icons/PuzzleOne.js";import"../../../icons/customIcons/icons/Feed.js";import"../../../icons/customIcons/icons/Prompt.js";import"../../../icons/customIcons/icons/Companies.js";import"../../../icons/customIcons/icons/ClipboardAi.js";import"../../../icons/customIcons/icons/Key.js";import"../../../icons/customIcons/icons/AtSignCrossed.js";import"../../../icons/customIcons/icons/MappingManual.js";import"../../../icons/customIcons/icons/Mapping.js";import"../../../icons/customIcons/icons/Metrics.js";import"../../../icons/customIcons/icons/Drops.js";import"../../../icons/customIcons/icons/ClipboardSearch.js";import"../../../icons/customIcons/icons/Template.js";import"../../../icons/customIcons/icons/ClipboardMetrics.js";import"../../../icons/customIcons/icons/ClipboardBuilder.js";import"../../../icons/customIcons/icons/UnitConversion.js";import"../../../icons/customIcons/icons/NPT.js";import"../../../icons/customIcons/icons/GuidedFrac.js";import"../../utils.js";import"../../Hint/Hint.scss.js";import"../../Counter/Counter.js";import"../../BadgeBase/BadgeBase.scss.js";import"../../TemplatesControl/TemplatesControl.js";import"zustand";import"../../TemplatesControl/utils.js";import"../../TemplatesControl/icons/folder/index.js";import"../../TemplatesControl/Store/utils.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../TemplatesControl/types.js";import"../../../utils/index.js";import"../../../clients/jsonApi/index.js";import"../../../permissions/PermissionsContext.js";import"../../../permissions/constants/index.js";import"../../../permissions/withPermissionsHOC.js";import"../../../permissions/ProvidePermissions.js";import"../../BadgeDot/BadgeDot.scss.js";import"../../LoaderLinear/LoaderLinear.scss.js";import"../../LoaderLogo/LoaderLogo.constants.js";import"../../LoaderLogo/LoaderLogo.scss.js";import"../../Switch/Switch.js";import"../../Tabs/Tabs.js";import"../../EmptyState/EmptyState.scss.js";import"../../FileIcon/FileIcon.js";import"../../Tag/Tag.js";import"react-dropzone";import"../../FilesDropzone/FilesDropzone.scss.js";import"../../FilesLoader/FilesLoader.scss.js";import"file-extension";import"image-extensions";import"video-extensions";import"../../FilesProcessor/FilesProcessor.scss.js";import"../../Skeleton/Skeleton.scss.js";import"../../../utils/main.js";import"../../CopyToClipboard/CopyToClipboard.scss.js";import"../../Stepper/Step/Step.scss.js";import"../../Stepper/Stepper.scss.js";import"../../ButtonLive/ButtonLive.js";import"../../ButtonText/ButtonText.js";import"../../IndicatorLive/IndicatorLive.js";import"../../Accordion/Accordion.scss.js";import"../../Breadcrumbs/Breadcrumbs.scss.js";import"../../BadgeComment/BadgeComment.js";import"../../AppContainer/AppContainer.js";import"../../AppContainer/AppContainer.constants.js";import"../../AppFooter/AppFooter.js";import"immutable";import"query-string";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/alerts.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/completion.js";import"../../../constants/appPackages.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import"../../../constants/corvaCompanyId.js";import"../../../components/GradientManager/configuration/constants.js";import"../../AppCommonsProvider/AppCommonsContext.js";import"../../AppHeader/AppHeader.constants.js";import"../../AppHeader/AppBadge/AppBadge.scss.js";import"../../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router-dom";import"../../AppHeader/AppAssets/utils.js";import"../../AppHeader/AppAssets/AppAssets.scss.js";import"../../../components/PadModeSelect/PadModeSelect.js";import"../../AppHeader/PadMode/PadMode.scss.js";import"../../../constants/streamSourceType.js";import"../../PadModeSelect/PadModeSelect.js";import"../../PadModeSelect/PadModeSelect.constants.js";import"../../AppCommonsProvider/AppCommonsProvider.js";import"../../../utils/mobileDetect.js";import"../../AppHeader/V3/VersionSelect/VersionSelect.js";import"../../UniversalLink/UniversalLink.scss.js";import"../../AppHeader/V3/AssetChips/AssetChips.scss.js";import"moment";import"../../AppHeader/V3/DqStatusIcon/DqStatusIcon.js";import"../../AppHeader/V3/DqStatusIcon/DqStatusIcon.constants.js";import"../../AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js";import"../../AppDqPopover/DqAlertTooltip/DqAlertTooltip.scss.js";import"../../AppDqPopover/DqAlert/DqAlert.scss.js";import"../../AppDqPopover/DqAsset/DqAsset.scss.js";import"../../AppDqPopover/AppDqPopover.scss.js";import"../../../components/AppIcon/AppIcon.js";import"../../../utils/getSingleAsset.js";import"../../AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js";import"../../AppHeader/V3/AssetSelector/constants.js";import"../../AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js";import"../../AppHeader/V3/AssetSelector/AssetSelectorSelect/loadAssets.js";import"../../AppHeader/V3/AssetSelector/AssetSelector.scss.js";import"../../../clients/subscriptions/constants.js";import"querystring";import"uuid/v1";import"../../../clients/subscriptions.v1.js";import"../../../clients/subscriptions/subscriptions-client.factory.js";import"jsona";import"../../../utils/env.js";import"../../../components/StatusBadge/constants.js";import"lodash/set";import"lodash/get";import"lodash/unset";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import"../../../clients/sso/auth0.js";import"../../../clients/sso/oauth2.js";import"../../../clients/api/rateLimiter.js";import"lodash/isEmpty";import"lodash/sortBy";import"../../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../AppSettings/AppSettingsPinningContext.js";import"../../AppHeader/V3/AppTitle/AppTitle.constants.js";import"../../AppHeader/V3/AppTitle/AppTitle.scss.js";import"../../AppHeader/V3/constants.scss.js";import"@babel/runtime/helpers/typeof";import"../../AppHeader/V3/SettingsButton/SettingsButton.js";import"../../AppHeader/V3/SettingsButton/SettingsButton.constants.js";import"../../AppSettings/AppSettings.js";import"../../AppSettings/AppSettings.constants.js";import"../../AppSizeProvider/AppSizeProvider.js";import"../../AppHeader/V3/Actions/Actions.constants.js";import"../../AppHeader/V3/Actions/Actions.scss.js";import"../../AppHeader/V3/AppHeaderV3.scss.js";import"../../AppHeader/AppHeader.scss.js";import"../../OffsetWellsButton/OffsetWellsButton.js";import"../../ChartAxisExtreme/ChartAxisExtreme.scss.js";import"highcharts";import"../../ChartAxisExtreme/ChartAxisExtremeDragTracker.js";import"../../Autocomplete/Autocomplete.js";import"../../Select/Select.js";import"../../AppSettingsDivider/AppSettingsDivider.scss.js";import"../../WellArchivedMessage/WellArchivedMessage.js";import"../../DatePicker/DatePicker.js";import"../../DragHandle/DragHandle.js";import"../CompletionsOffsetWellPicker.js";import"../../Slider/constants.js";import"../../Slider/components/SliderThumb.js";import"../../Slider/Slider.scss.js";import"../../SliderAdvanced/SliderAdvanced.js";import"react-color";import"../../ColorPicker/Swatches/Swatches.scss.js";import"../../ColorPicker/OpacityDragtracker/OpacityDragTracker.scss.js";import"../../ColorPicker/ColorPicker.scss.js";import"../../ChartHelper/ChartHelper.scss.js";import"../../Hotkey/Hotkey.js";import"@tanstack/react-query";import"../../InterventionEventSelector/useInterventionUnitEvents.js";import"../../InterventionEventSelector/InterventionEventSelector.scss.js";import m from"../../../components/OffsetWellMap/OffsetWellMap.js";import a from"./Map.scss.js";function l(s,o){var t=Object.keys(s);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(s);o&&(e=e.filter((function(o){return Object.getOwnPropertyDescriptor(s,o).enumerable}))),t.push.apply(t,e)}return t}function j(s){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?l(Object(e),!0).forEach((function(t){o(s,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(e)):l(Object(e)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(e,o))}))}return s}var u=t((function(o){var t=o.well,l=o.wells,u=o.pads,d=o.selectedOffsetWellsIds,A=o.onOffsetWellIdsSelect,I=o.radiusMiles,C=o.setFilters,v=o.maxRadiusInMiles,S=e((function(){return u?u.flatMap((function(s){return s.wells})):[]}),[u]),h=e((function(){return t?j({},S.find((function(s){return s.id.toString()===t.id.toString()}))):l?j({},S.find((function(s){return s.id.toString()===l[0].id.toString()}))):void 0}),[S,t,l]),g=i((function(o){var t=u.find((function(s){return s.wells.some((function(s){return s.id===o}))})),e=t?t.wells.map((function(s){return s.id})):[],i=d.some((function(s){return e.includes(s)}));A(i?d.filter((function(s){return!e.includes(s)})):[].concat(s(d),s(e)))}),[A,u,d]),f=i((function(s){var o=""===s?void 0:Number(s);C((function(s){return j(j({},s),{},{radiusMiles:o})}))}),[C]);return n("div",{className:a.map,children:[n("div",{className:a.radiusContainer,children:[c(r,{color:"T6",children:"Radius (mi):"}),c(p,{className:a.textInputWrapper,value:null!=I?I:"",placeholder:"0",onChange:f,inputType:"number",htmlAttributes:{min:0,max:v}})]}),c(m,{classes:{root:a.offsetWellMapRoot,map:a.offsetWellMapRoot},isClickable:!0,isViewOnly:!1,subjectWell:h,wells:S,offsetWellIds:d,radius:null!=I?I:0,activeWellId:(null==h?void 0:h.id)||0,handleChangeOffsetWell:function(s){return s&&g(s.id)}})]})}));export{u as default};
|
|
2
2
|
//# sourceMappingURL=Map.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Map.js","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/Map/Map.tsx"],"sourcesContent":["import { Dispatch, FC, memo, SetStateAction, useCallback, useMemo } from 'react';\n\nimport { Text, TextInput } from '../../../componentsV2';\nimport OffsetWellMap from '../../../components/OffsetWellMap';\nimport { Filters, MappedPad, Well } from '../types';\n\nimport styles from './Map.scss';\n\ntype Props = {\n well?: Well;\n wells?: Well[];\n pads: MappedPad[];\n selectedOffsetWellsIds: number[];\n onOffsetWellIdsSelect: (offsetWellIds: number[]) => void;\n radiusMiles?: number;\n setFilters: Dispatch<SetStateAction<Filters>>;\n maxRadiusInMiles?: number;\n};\n\nconst Map: FC<Props> = memo(\n ({\n well,\n wells,\n pads,\n selectedOffsetWellsIds,\n onOffsetWellIdsSelect,\n radiusMiles,\n setFilters,\n maxRadiusInMiles,\n }) => {\n const allWells = useMemo(() => {\n if (pads) {\n return pads.flatMap(pad => pad.wells);\n }\n return [];\n }, [pads]);\n\n const subjectWell = useMemo(() => {\n if (well) {\n return {\n ...allWells.find(w => w.id.toString() === well.id.toString()),\n };\n }\n\n if (wells) {\n return {\n ...allWells.find(w => w.id.toString() === wells[0].id.toString()),\n };\n }\n\n return undefined;\n }, [allWells, well, wells]);\n\n const handleChangeOffsetWell = useCallback(\n (wellId: number) => {\n const pad = pads.find(p => p.wells.some(w => w.id === wellId));\n\n const wellIds = pad ? pad.wells.map(w => w.id) : [];\n\n const isSelected = selectedOffsetWellsIds.some(wellId => wellIds.includes(wellId));\n\n if (isSelected) {\n onOffsetWellIdsSelect(selectedOffsetWellsIds.filter(id => !wellIds.includes(id)));\n } else {\n onOffsetWellIdsSelect([...selectedOffsetWellsIds, ...wellIds]);\n }\n },\n [onOffsetWellIdsSelect, pads, selectedOffsetWellsIds]\n );\n\n const handleChangeRadius = useCallback(\n (value: string) => {\n const numeric = value === '' ? undefined : Number(value);\n setFilters(prev => ({ ...prev, radiusMiles: numeric }));\n },\n [setFilters]\n );\n\n return (\n <div className={styles.map}>\n <div className={styles.radiusContainer}>\n <Text color=\"T6\">Radius (mi):</Text>\n <TextInput\n className={styles.textInputWrapper}\n // Use empty string when undefined so the component stays controlled\n value={radiusMiles ?? ''}\n placeholder=\"0\"\n onChange={handleChangeRadius}\n inputType=\"number\"\n htmlAttributes={{\n min: 0,\n max: maxRadiusInMiles,\n }}\n />\n </div>\n <OffsetWellMap\n classes={{\n root: styles.offsetWellMapRoot,\n map: styles.offsetWellMapRoot,\n }}\n isClickable\n isViewOnly={false}\n subjectWell={subjectWell}\n wells={allWells}\n offsetWellIds={selectedOffsetWellsIds}\n radius={radiusMiles ?? 0}\n activeWellId={subjectWell?.id || 0}\n handleChangeOffsetWell={params => params && handleChangeOffsetWell(params.id)}\n />\n </div>\n );\n }\n);\n\nexport default Map;\n"],"names":["Map","memo","_ref","well","wells","pads","selectedOffsetWellsIds","onOffsetWellIdsSelect","radiusMiles","setFilters","maxRadiusInMiles","allWells","useMemo","flatMap","pad","subjectWell","_objectSpread","find","w","id","toString","handleChangeOffsetWell","useCallback","wellId","p","some","wellIds","map","isSelected","includes","filter","handleChangeRadius","value","numeric","undefined","Number","prev","_jsxs","className","styles","children","radiusContainer","_jsx","Text","color","TextInput","textInputWrapper","placeholder","onChange","inputType","htmlAttributes","min","max","OffsetWellMap","classes","root","offsetWellMapRoot","isClickable","isViewOnly","offsetWellIds","radius","activeWellId","params"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Map.js","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/Map/Map.tsx"],"sourcesContent":["import { Dispatch, FC, memo, SetStateAction, useCallback, useMemo } from 'react';\n\nimport { Text, TextInput } from '../../../componentsV2';\nimport OffsetWellMap from '../../../components/OffsetWellMap';\nimport { Filters, MappedPad, Well } from '../types';\n\nimport styles from './Map.scss';\n\ntype Props = {\n well?: Well;\n wells?: Well[];\n pads: MappedPad[];\n selectedOffsetWellsIds: number[];\n onOffsetWellIdsSelect: (offsetWellIds: number[]) => void;\n radiusMiles?: number;\n setFilters: Dispatch<SetStateAction<Filters>>;\n maxRadiusInMiles?: number;\n};\n\nconst Map: FC<Props> = memo(\n ({\n well,\n wells,\n pads,\n selectedOffsetWellsIds,\n onOffsetWellIdsSelect,\n radiusMiles,\n setFilters,\n maxRadiusInMiles,\n }) => {\n const allWells = useMemo(() => {\n if (pads) {\n return pads.flatMap(pad => pad.wells);\n }\n return [];\n }, [pads]);\n\n const subjectWell = useMemo(() => {\n if (well) {\n return {\n ...allWells.find(w => w.id.toString() === well.id.toString()),\n };\n }\n\n if (wells) {\n return {\n ...allWells.find(w => w.id.toString() === wells[0].id.toString()),\n };\n }\n\n return undefined;\n }, [allWells, well, wells]);\n\n const handleChangeOffsetWell = useCallback(\n (wellId: number) => {\n const pad = pads.find(p => p.wells.some(w => w.id === wellId));\n\n const wellIds = pad ? pad.wells.map(w => w.id) : [];\n\n const isSelected = selectedOffsetWellsIds.some(wellId => wellIds.includes(wellId));\n\n if (isSelected) {\n onOffsetWellIdsSelect(selectedOffsetWellsIds.filter(id => !wellIds.includes(id)));\n } else {\n onOffsetWellIdsSelect([...selectedOffsetWellsIds, ...wellIds]);\n }\n },\n [onOffsetWellIdsSelect, pads, selectedOffsetWellsIds]\n );\n\n const handleChangeRadius = useCallback(\n (value: string) => {\n const numeric = value === '' ? undefined : Number(value);\n setFilters(prev => ({ ...prev, radiusMiles: numeric }));\n },\n [setFilters]\n );\n\n return (\n <div className={styles.map}>\n <div className={styles.radiusContainer}>\n <Text color=\"T6\">Radius (mi):</Text>\n <TextInput\n className={styles.textInputWrapper}\n // Use empty string when undefined so the component stays controlled\n value={radiusMiles ?? ''}\n placeholder=\"0\"\n onChange={handleChangeRadius}\n inputType=\"number\"\n htmlAttributes={{\n min: 0,\n max: maxRadiusInMiles,\n }}\n />\n </div>\n <OffsetWellMap\n classes={{\n root: styles.offsetWellMapRoot,\n map: styles.offsetWellMapRoot,\n }}\n isClickable\n isViewOnly={false}\n subjectWell={subjectWell}\n wells={allWells}\n offsetWellIds={selectedOffsetWellsIds}\n radius={radiusMiles ?? 0}\n activeWellId={subjectWell?.id || 0}\n handleChangeOffsetWell={params => params && handleChangeOffsetWell(params.id)}\n />\n </div>\n );\n }\n);\n\nexport default Map;\n"],"names":["Map","memo","_ref","well","wells","pads","selectedOffsetWellsIds","onOffsetWellIdsSelect","radiusMiles","setFilters","maxRadiusInMiles","allWells","useMemo","flatMap","pad","subjectWell","_objectSpread","find","w","id","toString","handleChangeOffsetWell","useCallback","wellId","p","some","wellIds","map","isSelected","includes","filter","handleChangeRadius","value","numeric","undefined","Number","prev","_jsxs","className","styles","children","radiusContainer","_jsx","Text","color","TextInput","textInputWrapper","placeholder","onChange","inputType","htmlAttributes","min","max","OffsetWellMap","classes","root","offsetWellMapRoot","isClickable","isViewOnly","offsetWellIds","radius","activeWellId","params"],"mappings":"gqaAmBA,IAAMA,EAAiBC,GACrB,SASMC,GAAA,IARJC,IAAAA,KACAC,IAAAA,MACAC,IAAAA,KACAC,IAAAA,uBACAC,IAAAA,sBACAC,IAAAA,YACAC,IAAAA,WACAC,IAAAA,iBAEMC,EAAWC,GAAQ,WACvB,OAAIP,EACKA,EAAKQ,SAAQ,SAAAC,GAAG,OAAIA,EAAIV,SAE1B,EACT,GAAG,CAACC,IAEEU,EAAcH,GAAQ,WAC1B,OAAIT,EACFa,EAAA,CAAA,EACKL,EAASM,MAAK,SAAAC,GAAC,OAAIA,EAAEC,GAAGC,aAAejB,EAAKgB,GAAGC,UAAW,KAI7DhB,EACFY,EAAA,CAAA,EACKL,EAASM,MAAK,SAAAC,GAAC,OAAIA,EAAEC,GAAGC,aAAehB,EAAM,GAAGe,GAAGC,UAAW,UAFrE,CAOD,GAAE,CAACT,EAAUR,EAAMC,IAEdiB,EAAyBC,GAC7B,SAACC,GACC,IAAMT,EAAMT,EAAKY,MAAK,SAAAO,GAAC,OAAIA,EAAEpB,MAAMqB,MAAK,SAAAP,GAAC,OAAIA,EAAEC,KAAOI,QAEhDG,EAAUZ,EAAMA,EAAIV,MAAMuB,KAAI,SAAAT,GAAC,OAAIA,EAAEC,EAAE,IAAI,GAE3CS,EAAatB,EAAuBmB,MAAK,SAAAF,GAAM,OAAIG,EAAQG,SAASN,MAGxEhB,EADEqB,EACoBtB,EAAuBwB,QAAO,SAAAX,GAAE,OAAKO,EAAQG,SAASV,EAAG,IAErDb,GAAAA,OAAAA,EAAAA,GAA2BoB,EAAAA,IAExD,GACD,CAACnB,EAAuBF,EAAMC,IAG1ByB,EAAqBT,GACzB,SAACU,GACC,IAAMC,EAAoB,KAAVD,OAAeE,EAAYC,OAAOH,GAClDvB,GAAW,SAAA2B,GAAI,OAAApB,EAAAA,EAAA,CAAA,EAAUoB,GAAI,CAAA,EAAA,CAAE5B,YAAayB,GAAO,GACrD,GACA,CAACxB,IAGH,OACE4B,EAAA,MAAA,CAAKC,UAAWC,EAAOZ,IAAIa,SACzB,CAAAH,EAAA,MAAA,CAAKC,UAAWC,EAAOE,gBAAgBD,SAAA,CACrCE,EAACC,EAAI,CAACC,MAAM,KAAIJ,SAAA,iBAChBE,EAACG,EAAS,CACRP,UAAWC,EAAOO,iBAElBd,MAAOxB,QAAAA,EAAe,GACtBuC,YAAY,IACZC,SAAUjB,EACVkB,UAAU,SACVC,eAAgB,CACdC,IAAK,EACLC,IAAK1C,QAIXgC,EAACW,EAAa,CACZC,QAAS,CACPC,KAAMhB,EAAOiB,kBACb7B,IAAKY,EAAOiB,mBAEdC,aAAW,EACXC,YAAY,EACZ3C,YAAaA,EACbX,MAAOO,EACPgD,cAAerD,EACfsD,OAAQpD,QAAAA,EAAe,EACvBqD,cAAc9C,eAAAA,EAAaI,KAAM,EACjCE,uBAAwB,SAAAyC,GAAM,OAAIA,GAAUzC,EAAuByC,EAAO3C,GAAG,MAIrF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Resizer.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/TextArea/Resizer.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,kBAAmB;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,4CAc5D,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";var a=function(a){var t=a.className;return r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",className:t,children:r("path",{fill:"currentColor",d:"M11.94 2.646a.5.5 0 0 1 .707.707l-9.293 9.294a.5.5 0 1 1-.708-.707zM11.94 8.646a.5.5 0 0 1 .707.707l-3.293 3.294a.5.5 0 1 1-.708-.707z"})})};export{a as Resizer};
|
|
2
|
+
//# sourceMappingURL=Resizer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Resizer.js","sources":["../../../src/componentsV2/TextArea/Resizer.tsx"],"sourcesContent":["export const Resizer = ({ className }: { className?: string }) => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n fill=\"none\"\n viewBox=\"0 0 16 16\"\n className={className}\n >\n <path\n fill=\"currentColor\"\n d=\"M11.94 2.646a.5.5 0 0 1 .707.707l-9.293 9.294a.5.5 0 1 1-.708-.707zM11.94 8.646a.5.5 0 0 1 .707.707l-3.293 3.294a.5.5 0 1 1-.708-.707z\"\n />\n </svg>\n);\n"],"names":["Resizer","_ref","className","_jsx","xmlns","width","height","fill","viewBox","children","d"],"mappings":"wCAAaA,IAAAA,EAAU,SAAHC,GAAA,IAAMC,IAAAA,UAAS,OACjCC,EAAA,MAAA,CACEC,MAAM,6BACNC,MAAM,KACNC,OAAO,KACPC,KAAK,OACLC,QAAQ,YACRN,UAAWA,EAAUO,SAErBN,EAAA,OAAA,CACEI,KAAK,eACLG,EAAE,4IAEA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare enum TextAreaTestIds {
|
|
2
|
+
Input = "CorvaUI.TextArea.Input",
|
|
3
|
+
Label = "CorvaUI.TextArea.Label",
|
|
4
|
+
Prefix = "CorvaUI.TextArea.Prefix",
|
|
5
|
+
Suffix = "CorvaUI.TextArea.Suffix",
|
|
6
|
+
ClearButton = "CorvaUI.TextArea.ClearButton",
|
|
7
|
+
Message = "CorvaUI.TextArea.Message"
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=TextArea.constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.constants.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/TextArea/TextArea.constants.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,KAAK,2BAA2B;IAChC,KAAK,2BAA2B;IAChC,MAAM,4BAA4B;IAClC,MAAM,4BAA4B;IAClC,WAAW,iCAAiC;IAC5C,OAAO,6BAA6B;CACrC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e;!function(e){e.Input="CorvaUI.TextArea.Input",e.Label="CorvaUI.TextArea.Label",e.Prefix="CorvaUI.TextArea.Prefix",e.Suffix="CorvaUI.TextArea.Suffix",e.ClearButton="CorvaUI.TextArea.ClearButton",e.Message="CorvaUI.TextArea.Message"}(e||(e={}));export{e as TextAreaTestIds};
|
|
2
|
+
//# sourceMappingURL=TextArea.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.constants.js","sources":["../../../src/componentsV2/TextArea/TextArea.constants.ts"],"sourcesContent":["export enum TextAreaTestIds {\n Input = 'CorvaUI.TextArea.Input',\n Label = 'CorvaUI.TextArea.Label',\n Prefix = 'CorvaUI.TextArea.Prefix',\n Suffix = 'CorvaUI.TextArea.Suffix',\n ClearButton = 'CorvaUI.TextArea.ClearButton',\n Message = 'CorvaUI.TextArea.Message',\n}\n"],"names":["TextAreaTestIds"],"mappings":"AAAA,IAAYA,GAOX,SAPWA,GAAAA,EAAe,MAAA,yBAAfA,EAAe,MAAA,yBAAfA,EAAe,OAAA,0BAAfA,EAAe,OAAA,0BAAfA,EAAe,YAAA,+BAAfA,EAAe,QAAA,0BAAfA,CAOX,CAPWA,IAAAA,EAAe,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ChangeEvent } from 'react';
|
|
2
|
+
import { TextInputBaseProps } from '../TextInputBase';
|
|
3
|
+
import { InfoIcon, Label, MessageWithIcon, RequiredIndicator } from '../TextInputBase/components';
|
|
4
|
+
type AreaAdditionalProps = {
|
|
5
|
+
resizeable: boolean;
|
|
6
|
+
showCounter: boolean;
|
|
7
|
+
maxLength?: number;
|
|
8
|
+
};
|
|
9
|
+
type BaseProps = TextInputBaseProps<HTMLTextAreaElement, AreaAdditionalProps>;
|
|
10
|
+
export type TextAreaProps = Omit<BaseProps, 'component' | 'componentProps' | 'onChange' | 'elementsClassNames' | 'prefix' | 'suffix' | 'labelPlacement' | 'rootTagName' | 'size' | 'clearable' | 'focusOnClear' | 'testIds'> & {
|
|
11
|
+
onChange?: (value: string, changeReason: 'change', event?: ChangeEvent<HTMLTextAreaElement>) => void;
|
|
12
|
+
elementsClassNames?: Omit<Required<BaseProps>['elementsClassNames'], 'suffix' | 'prefix'>;
|
|
13
|
+
resizeable?: boolean;
|
|
14
|
+
maxLength?: number;
|
|
15
|
+
showLetterCounter?: boolean;
|
|
16
|
+
};
|
|
17
|
+
declare const TextAreaBase: import("react").ForwardRefExoticComponent<Omit<BaseProps, "clearable" | "component" | "componentProps" | "elementsClassNames" | "focusOnClear" | "labelPlacement" | "onChange" | "prefix" | "rootTagName" | "size" | "suffix" | "testIds"> & {
|
|
18
|
+
onChange?: (value: string, changeReason: 'change', event?: ChangeEvent<HTMLTextAreaElement>) => void;
|
|
19
|
+
elementsClassNames?: Omit<Required<BaseProps>['elementsClassNames'], 'suffix' | 'prefix'>;
|
|
20
|
+
resizeable?: boolean;
|
|
21
|
+
maxLength?: number;
|
|
22
|
+
showLetterCounter?: boolean;
|
|
23
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
24
|
+
type TextAreaType = typeof TextAreaBase & {
|
|
25
|
+
InfoIcon: typeof InfoIcon;
|
|
26
|
+
MessageWithIcon: typeof MessageWithIcon;
|
|
27
|
+
RequiredIndicator: typeof RequiredIndicator;
|
|
28
|
+
Label: typeof Label;
|
|
29
|
+
};
|
|
30
|
+
export declare const TextArea: TextAreaType;
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=TextArea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAoC,MAAM,OAAO,CAAC;AACtE,OAAO,EAAiB,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAGrE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAKlG,KAAK,mBAAmB,GAAG;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,KAAK,SAAS,GAAG,kBAAkB,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAC;AAyB9E,MAAM,MAAM,aAAa,GAAG,IAAI,CAC9B,SAAS,EACP,WAAW,GACX,gBAAgB,GAChB,UAAU,GACV,oBAAoB,GACpB,QAAQ,GACR,QAAQ,GACR,gBAAgB,GAChB,aAAa,GACb,MAAM,GACN,WAAW,GACX,cAAc,GACd,SAAS,CACZ,GAAG;IACF,QAAQ,CAAC,EAAE,CACT,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,QAAQ,EACtB,KAAK,CAAC,EAAE,WAAW,CAAC,mBAAmB,CAAC,KACrC,IAAI,CAAC;IAEV,kBAAkB,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,oBAAoB,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC,CAAC;IAE1F,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,QAAA,MAAM,YAAY;eAfL,CACT,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,QAAQ,EACtB,KAAK,CAAC,EAAE,WAAW,CAAC,mBAAmB,CAAC,KACrC,IAAI;yBAEY,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,oBAAoB,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;iBAE5E,OAAO;gBAER,MAAM;wBAEE,OAAO;+CAkE5B,CAAC;AAEF,KAAK,YAAY,GAAG,OAAO,YAAY,GAAG;IACxC,QAAQ,EAAE,OAAO,QAAQ,CAAC;IAC1B,eAAe,EAAE,OAAO,eAAe,CAAC;IACxC,iBAAiB,EAAE,OAAO,iBAAiB,CAAC;IAC5C,KAAK,EAAE,OAAO,KAAK,CAAC;CACrB,CAAC;AAOF,eAAO,MAAM,QAAQ,EAAmB,YAAY,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{forwardRef as r,useCallback as n,useMemo as o}from"react";import{TextInputBase as s}from"../TextInputBase/TextInputBase.js";import a from"./TextArea.scss.js";import i from"classnames";import{InfoIcon as u}from"../TextInputBase/components/InfoIcon.js";import{Label as m}from"../TextInputBase/components/Label.js";import{MessageWithIcon as p}from"../TextInputBase/components/MessageWithIcon.js";import{RequiredIndicator as c}from"../TextInputBase/components/RequiredIndicator.js";import"../TextInputBase/components/Styles.scss.js";import{jsxs as l,Fragment as f,jsx as b}from"react/jsx-runtime";import{TextAreaTestIds as h}from"./TextArea.constants.js";import{Text as x}from"../Text/Text.js";import{Resizer as j}from"./Resizer.js";var g=["maxLength","showCounter","value","resizeable"],v=["onChange","elementsClassNames","resizeable","maxLength","showLetterCounter","status"];function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?I(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var C=r((function(e,r){var n=e.maxLength,o=e.showCounter,s=e.value,i=e.resizeable,u=t(e,g);return l(f,{children:[b("textarea",O(O({ref:r,value:s},u),{},{maxLength:n})),o&&void 0!==s&&l(x,{size:12,color:"T6",className:a.counter,children:[s.length,"/",n]}),i&&b(j,{className:a.resizer})]})})),d={input:h.Input,label:h.Label,prefix:h.Prefix,suffix:h.Suffix,clearButton:h.ClearButton,message:h.Message},y=r((function(e,r){var u=e.onChange,m=e.elementsClassNames,p=e.resizeable,c=void 0===p||p,l=e.maxLength,f=e.showLetterCounter,h=void 0===f||f,x=e.status,j=t(e,v),g=Number(l)>0&&h,I="error"===x,y=n((function(e,t,r){null==u||u(e,"change",r)}),[u]),P=o((function(){return O(O({},m),{},{input:i(null==m?void 0:m.input,a.textarea),inputContainer:i(null==m?void 0:m.inputContainer,a.inputContainer,c&&a.resizeable,g&&a.hasCounter,I&&a.hasError),suffix:a.suffix})}),[m,c,g,I]),T=o((function(){return{resizeable:c,maxLength:l,showCounter:g}}),[l,g,c]);return b(s,O(O({},j),{},{rootRef:r,onChange:y,elementsClassNames:P,component:C,testIds:d,componentProps:T,status:x}))}));y.InfoIcon=u,y.MessageWithIcon=p,y.RequiredIndicator=c,y.Label=m;var P=y;export{P as TextArea};
|
|
2
|
+
//# sourceMappingURL=TextArea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.js","sources":["../../../src/componentsV2/TextArea/TextArea.tsx"],"sourcesContent":["import { ChangeEvent, forwardRef, useCallback, useMemo } from 'react';\nimport { TextInputBase, TextInputBaseProps } from '../TextInputBase';\nimport styles from './TextArea.scss';\nimport classNames from 'classnames';\nimport { InfoIcon, Label, MessageWithIcon, RequiredIndicator } from '../TextInputBase/components';\nimport { TextAreaTestIds } from './TextArea.constants';\nimport { Text } from '../Text';\nimport { Resizer } from './Resizer';\n\ntype AreaAdditionalProps = {\n resizeable: boolean;\n showCounter: boolean;\n maxLength?: number;\n};\n\ntype BaseProps = TextInputBaseProps<HTMLTextAreaElement, AreaAdditionalProps>;\n\nconst Area: BaseProps['component'] = forwardRef(\n ({ maxLength, showCounter, value, resizeable, ...rest }, ref) => (\n <>\n <textarea ref={ref} value={value} {...rest} maxLength={maxLength} />\n {showCounter && value !== undefined && (\n <Text size={12} color={'T6'} className={styles.counter}>\n {value.length}/{maxLength}\n </Text>\n )}\n {resizeable && <Resizer className={styles.resizer} />}\n </>\n )\n);\n\nconst testIds = {\n input: TextAreaTestIds.Input,\n label: TextAreaTestIds.Label,\n prefix: TextAreaTestIds.Prefix,\n suffix: TextAreaTestIds.Suffix,\n clearButton: TextAreaTestIds.ClearButton,\n message: TextAreaTestIds.Message,\n};\n\nexport type TextAreaProps = Omit<\n BaseProps,\n | 'component'\n | 'componentProps'\n | 'onChange'\n | 'elementsClassNames'\n | 'prefix'\n | 'suffix'\n | 'labelPlacement'\n | 'rootTagName'\n | 'size'\n | 'clearable'\n | 'focusOnClear'\n | 'testIds'\n> & {\n onChange?: (\n value: string,\n changeReason: 'change',\n event?: ChangeEvent<HTMLTextAreaElement>\n ) => void;\n\n elementsClassNames?: Omit<Required<BaseProps>['elementsClassNames'], 'suffix' | 'prefix'>;\n\n resizeable?: boolean;\n\n maxLength?: number;\n\n showLetterCounter?: boolean;\n};\n\nconst TextAreaBase = forwardRef<HTMLElement, TextAreaProps>(\n (\n {\n onChange,\n elementsClassNames,\n resizeable = true,\n maxLength,\n showLetterCounter = true,\n status,\n ...restProps\n },\n ref\n ) => {\n const showCounter = Number(maxLength) > 0 && showLetterCounter;\n const hasError = status === 'error';\n\n const onActualChange = useCallback<\n Required<TextInputBaseProps<HTMLTextAreaElement>>['onChange']\n >(\n (newValue, _, event) => {\n onChange?.(newValue, 'change', event);\n },\n [onChange]\n );\n\n const actualElementsClassnames = useMemo(\n () => ({\n ...elementsClassNames,\n input: classNames(elementsClassNames?.input, styles.textarea),\n inputContainer: classNames(\n elementsClassNames?.inputContainer,\n styles.inputContainer,\n resizeable && styles.resizeable,\n showCounter && styles.hasCounter,\n hasError && styles.hasError\n ),\n suffix: styles.suffix,\n }),\n [elementsClassNames, resizeable, showCounter, hasError]\n );\n\n const componentProps = useMemo<AreaAdditionalProps>(\n () => ({\n resizeable,\n maxLength,\n showCounter,\n }),\n [maxLength, showCounter, resizeable]\n );\n\n return (\n <TextInputBase\n {...restProps}\n rootRef={ref}\n onChange={onActualChange}\n elementsClassNames={actualElementsClassnames}\n component={Area}\n testIds={testIds}\n componentProps={componentProps}\n status={status}\n />\n );\n }\n);\n\ntype TextAreaType = typeof TextAreaBase & {\n InfoIcon: typeof InfoIcon;\n MessageWithIcon: typeof MessageWithIcon;\n RequiredIndicator: typeof RequiredIndicator;\n Label: typeof Label;\n};\n\n(TextAreaBase as TextAreaType).InfoIcon = InfoIcon;\n(TextAreaBase as TextAreaType).MessageWithIcon = MessageWithIcon;\n(TextAreaBase as TextAreaType).RequiredIndicator = RequiredIndicator;\n(TextAreaBase as TextAreaType).Label = Label;\n\nexport const TextArea = TextAreaBase as TextAreaType;\n"],"names":["Area","forwardRef","ref","maxLength","showCounter","value","resizeable","rest","_objectWithoutProperties","_ref","_excluded","_jsxs","_Fragment","children","_jsx","_objectSpread","undefined","Text","size","color","className","styles","counter","length","Resizer","resizer","testIds","input","TextAreaTestIds","Input","label","Label","prefix","Prefix","suffix","Suffix","clearButton","ClearButton","message","Message","TextAreaBase","_ref2","onChange","elementsClassNames","_ref2$resizeable","_ref2$showLetterCount","showLetterCounter","status","restProps","_excluded2","Number","hasError","onActualChange","useCallback","newValue","_","event","actualElementsClassnames","useMemo","classNames","textarea","inputContainer","hasCounter","componentProps","TextInputBase","rootRef","component","InfoIcon","MessageWithIcon","RequiredIndicator","TextArea"],"mappings":"miDAiBA,IAAMA,EAA+BC,GACnC,WAAyDC,GAAG,IAAzDC,IAAAA,UAAWC,IAAAA,YAAaC,IAAAA,MAAOC,IAAAA,WAAeC,EAAIC,EAAAC,EAAAC,GAAA,OACnDC,EAAAC,EAAA,CAAAC,SACE,CAAAC,EAAA,WAAAC,EAAAA,EAAA,CAAUb,IAAKA,EAAKG,MAAOA,GAAWE,GAAI,GAAA,CAAEJ,UAAWA,KACtDC,QAAyBY,IAAVX,GACdM,EAACM,EAAI,CAACC,KAAM,GAAIC,MAAO,KAAMC,UAAWC,EAAOC,QAAQT,SAAA,CACpDR,EAAMkB,OAAM,IAAGpB,KAGnBG,GAAcQ,EAACU,EAAO,CAACJ,UAAWC,EAAOI,YACzC,IAIDC,EAAU,CACdC,MAAOC,EAAgBC,MACvBC,MAAOF,EAAgBG,MACvBC,OAAQJ,EAAgBK,OACxBC,OAAQN,EAAgBO,OACxBC,YAAaR,EAAgBS,YAC7BC,QAASV,EAAgBW,SAiCrBC,EAAevC,GACnB,SAAAwC,EAUEvC,GACG,IATDwC,IAAAA,SACAC,IAAAA,mBAAkBC,EAAAH,EAClBnC,WAAAA,cAAiBsC,EACjBzC,IAAAA,UAAS0C,EAAAJ,EACTK,kBAAAA,cAAwBD,EACxBE,IAAAA,OACGC,EAASxC,EAAAiC,EAAAQ,GAIR7C,EAAc8C,OAAO/C,GAAa,GAAK2C,EACvCK,EAAsB,UAAXJ,EAEXK,EAAiBC,GAGrB,SAACC,EAAUC,EAAGC,GACZd,SAAAA,EAAWY,EAAU,SAAUE,EACjC,GACA,CAACd,IAGGe,EAA2BC,GAC/B,WAAA,OAAA3C,EAAAA,EAAA,CAAA,EACK4B,GAAkB,CAAA,EAAA,CACrBhB,MAAOgC,EAAWhB,aAAkB,EAAlBA,EAAoBhB,MAAON,EAAOuC,UACpDC,eAAgBF,EACdhB,aAAkB,EAAlBA,EAAoBkB,eACpBxC,EAAOwC,eACPvD,GAAce,EAAOf,WACrBF,GAAeiB,EAAOyC,WACtBX,GAAY9B,EAAO8B,UAErBjB,OAAQb,EAAOa,QACf,GACF,CAACS,EAAoBrC,EAAYF,EAAa+C,IAG1CY,EAAiBL,GACrB,WAAA,MAAO,CACLpD,WAAAA,EACAH,UAAAA,EACAC,YAAAA,EACA,GACF,CAACD,EAAWC,EAAaE,IAG3B,OACEQ,EAACkD,EAAajD,EAAAA,EAAA,GACRiC,GAAS,GAAA,CACbiB,QAAS/D,EACTwC,SAAUU,EACVT,mBAAoBc,EACpBS,UAAWlE,EACX0B,QAASA,EACTqC,eAAgBA,EAChBhB,OAAQA,IAGd,IAUDP,EAA8B2B,SAAWA,EACzC3B,EAA8B4B,gBAAkBA,EAChD5B,EAA8B6B,kBAAoBA,EAClD7B,EAA8BT,MAAQA,EAEhC,IAAMuC,EAAW9B"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from'./../../ext-esm/style-inject/dist/style-inject.es.js';var t={spacing:"8",inputContainer:"TextArea_inputContainer__mU5iO",textarea:"TextArea_textarea__6VMtJ",counter:"TextArea_counter__0ubkI",resizeable:"TextArea_resizeable__f5asG",hasCounter:"TextArea_hasCounter__quQ2X",resizer:"TextArea_resizer__KG-2W",hasError:"TextArea_hasError__lm29S",suffix:"TextArea_suffix__PFoST"};e(".TextArea_inputContainer__mU5iO{position:relative}.TextArea_textarea__6VMtJ{height:132px;resize:none}.TextArea_counter__0ubkI{bottom:7px;position:absolute;right:10px}.TextArea_resizeable__f5asG .TextArea_textarea__6VMtJ{mask:radial-gradient(16px at 100% 100%,transparent 98%,#000);resize:vertical}.TextArea_resizeable__f5asG .TextArea_textarea__6VMtJ::-webkit-resizer{background:transparent}.TextArea_resizeable__f5asG .TextArea_counter__0ubkI{right:27px}.TextArea_hasCounter__quQ2X .TextArea_textarea__6VMtJ{mask:linear-gradient(180deg,#000,#000 calc(100% - 20px),transparent calc(100% - 20px),transparent);padding-bottom:20px}.TextArea_resizer__KG-2W{bottom:7px;color:var(--palette-primary-text-6);height:16px;pointer-events:none;position:absolute;right:7px;transition:color .15s cubic-bezier(.4,0,.2,1);width:16px}.TextArea_hasError__lm29S .TextArea_resizer__KG-2W{color:var(--corvaui-textinput-bordercolor)}.TextArea_suffix__PFoST{height:16px;margin:0;position:absolute;right:6px;top:6px;width:16px}");export{t as default};
|
|
2
|
+
//# sourceMappingURL=TextArea.scss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,aAAa,sDAAyD;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react-vite';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { TextArea } from './TextArea';
|
|
4
|
+
type Props = ComponentProps<typeof TextArea>;
|
|
5
|
+
declare const meta: Meta<Props>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Default: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const Resizeable: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const Message: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const RequiredFieldsAndInfoIcons: () => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const WithLimitedLength: () => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=TextArea.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/TextArea/TextArea.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,QAAQ,CAAC,CAAC;AAE7C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;eAyBa,IAAI;AAEnB,eAAO,MAAM,OAAO,UAAW,KAAK,4CAYnC,CAAC;AAEF,eAAO,MAAM,UAAU,+CAStB,CAAC;AAKF,eAAO,MAAM,OAAO,+CAenB,CAAC;AAOF,eAAO,MAAM,0BAA0B,+CAQtC,CAAC;AAYF,eAAO,MAAM,iBAAiB,+CAgC7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/TextArea/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { ChangeEvent, ChangeEventHandler, FocusEventHandler, forwardRef, KeyboardEventHandler, MutableRefObject, ReactNode, Ref, RefCallback } from 'react';
|
|
2
|
+
type ComponentProvidedProps<FieldElement extends HTMLElement> = Partial<{
|
|
3
|
+
className: string;
|
|
4
|
+
'data-testid': string;
|
|
5
|
+
placeholder: string;
|
|
6
|
+
value: string;
|
|
7
|
+
readOnly: boolean;
|
|
8
|
+
onChange: ChangeEventHandler<FieldElement>;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
autoFocus: boolean;
|
|
11
|
+
onFocus: FocusEventHandler<FieldElement>;
|
|
12
|
+
onBlur: FocusEventHandler<FieldElement>;
|
|
13
|
+
onKeyUp: KeyboardEventHandler<FieldElement>;
|
|
14
|
+
onKeyDown: KeyboardEventHandler<FieldElement>;
|
|
15
|
+
}>;
|
|
16
|
+
export type ComponentProvidedPropNames = keyof ComponentProvidedProps<never>;
|
|
17
|
+
type EmptyObject = Record<string, never>;
|
|
18
|
+
export type TextInputBaseComponentProps<FieldElement extends HTMLElement, ComponentProps extends object = EmptyObject> = ComponentProvidedProps<FieldElement> & ComponentProps;
|
|
19
|
+
export type TextInputBaseProps<FieldElement extends HTMLElement, ComponentProps extends object = EmptyObject> = {
|
|
20
|
+
label?: ReactNode;
|
|
21
|
+
value?: string | number;
|
|
22
|
+
size?: 'small' | 'medium' | 'large';
|
|
23
|
+
labelPlacement?: 'top' | 'start' | 'end';
|
|
24
|
+
/**
|
|
25
|
+
* HTML tag of the root element. Use `div` when `prefix`/`suffix` contain interactive
|
|
26
|
+
* controls — nested interactive elements inside a `label` are invalid for assistive tech
|
|
27
|
+
*/
|
|
28
|
+
rootTagName?: 'label' | 'div';
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
status?: 'error' | 'loading';
|
|
31
|
+
message?: ReactNode;
|
|
32
|
+
onFocus?: FocusEventHandler<FieldElement>;
|
|
33
|
+
onBlur?: FocusEventHandler<FieldElement>;
|
|
34
|
+
onKeyDown?: KeyboardEventHandler<FieldElement>;
|
|
35
|
+
onKeyUp?: KeyboardEventHandler<FieldElement>;
|
|
36
|
+
placeholder?: string;
|
|
37
|
+
prefix?: ReactNode;
|
|
38
|
+
suffix?: ReactNode;
|
|
39
|
+
/**
|
|
40
|
+
* Ref to an underlying input element
|
|
41
|
+
*/
|
|
42
|
+
inputRef?: RefCallback<FieldElement | null> | MutableRefObject<FieldElement | null> | null;
|
|
43
|
+
/**
|
|
44
|
+
* Ref to a container that contains input and its affixes
|
|
45
|
+
* Useful for positioning of popovers
|
|
46
|
+
*/
|
|
47
|
+
inputContainerRef?: RefCallback<HTMLDivElement | null> | MutableRefObject<HTMLDivElement | null> | null;
|
|
48
|
+
readOnly?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* If `true` will focus on the field on render. Useful for modals, but may be detrimental to a11y
|
|
51
|
+
*/
|
|
52
|
+
autoFocus?: boolean;
|
|
53
|
+
elementsClassNames?: Partial<{
|
|
54
|
+
label: string;
|
|
55
|
+
input: string;
|
|
56
|
+
inputContainer: string;
|
|
57
|
+
prefix: string;
|
|
58
|
+
suffix: string;
|
|
59
|
+
message: string;
|
|
60
|
+
}>;
|
|
61
|
+
onChange?: (value: string, changeReason: 'change' | 'clear', event?: ChangeEvent<FieldElement>) => void;
|
|
62
|
+
clearable?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Controls if the field should keep/gain focus after "Clear" button is clicked
|
|
65
|
+
*/
|
|
66
|
+
focusOnClear?: boolean;
|
|
67
|
+
className?: string;
|
|
68
|
+
testId?: string;
|
|
69
|
+
/**
|
|
70
|
+
* ⚠️⚠️⚠️ PRIVATE API. If you see it in docs you're doing something wrong
|
|
71
|
+
*/
|
|
72
|
+
component: ReturnType<typeof forwardRef<FieldElement, TextInputBaseComponentProps<FieldElement, ComponentProps>>>;
|
|
73
|
+
/**
|
|
74
|
+
* ⚠️⚠️⚠️ PRIVATE API. If you see it in docs you're doing something wrong
|
|
75
|
+
*/
|
|
76
|
+
componentProps?: ComponentProps;
|
|
77
|
+
/**
|
|
78
|
+
* ⚠️⚠️⚠️ PRIVATE API. If you see it in docs you're doing something wrong
|
|
79
|
+
*/
|
|
80
|
+
testIds?: Partial<{
|
|
81
|
+
input: string;
|
|
82
|
+
label: string;
|
|
83
|
+
prefix: string;
|
|
84
|
+
suffix: string;
|
|
85
|
+
clearButton: string;
|
|
86
|
+
message: string;
|
|
87
|
+
}>;
|
|
88
|
+
};
|
|
89
|
+
export declare const SizeToClassMap: Record<Required<TextInputBaseProps<never, never>>['size'], string>;
|
|
90
|
+
export declare const TextInputBase: <FieldElement extends HTMLElement, ComponentProps extends object = EmptyObject>({ testId, className, label, rootTagName, clearable, focusOnClear, prefix, suffix, placeholder, size, value, readOnly, labelPlacement, inputRef, disabled, autoFocus, message, onFocus, onBlur, onKeyUp, onKeyDown, status, onChange, elementsClassNames, inputContainerRef, component: Component, componentProps, rootRef, testIds, }: TextInputBaseProps<FieldElement, ComponentProps> & {
|
|
91
|
+
rootRef: Ref<HTMLElement>;
|
|
92
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
93
|
+
export {};
|
|
94
|
+
//# sourceMappingURL=TextInputBase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInputBase.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/TextInputBase/TextInputBase.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,EACV,oBAAoB,EAEpB,gBAAgB,EAChB,SAAS,EACT,GAAG,EACH,WAAW,EAGZ,MAAM,OAAO,CAAC;AAYf,KAAK,sBAAsB,CAAC,YAAY,SAAS,WAAW,IAAI,OAAO,CAAC;IACtE,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC;IAC3C,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,iBAAiB,CAAC,YAAY,CAAC,CAAC;IACzC,MAAM,EAAE,iBAAiB,CAAC,YAAY,CAAC,CAAC;IACxC,OAAO,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAC5C,SAAS,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;CAC/C,CAAC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,MAAM,sBAAsB,CAAC,KAAK,CAAC,CAAC;AAE7E,KAAK,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAEzC,MAAM,MAAM,2BAA2B,CACrC,YAAY,SAAS,WAAW,EAChC,cAAc,SAAS,MAAM,GAAG,WAAW,IACzC,sBAAsB,CAAC,YAAY,CAAC,GAAG,cAAc,CAAC;AAE1D,MAAM,MAAM,kBAAkB,CAC5B,YAAY,SAAS,WAAW,EAChC,cAAc,SAAS,MAAM,GAAG,WAAW,IACzC;IACF,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,cAAc,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,KAAK,CAAC;IACzC;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,iBAAiB,CAAC,YAAY,CAAC,CAAC;IAC1C,MAAM,CAAC,EAAE,iBAAiB,CAAC,YAAY,CAAC,CAAC;IACzC,SAAS,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAC/C,OAAO,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC,YAAY,GAAG,IAAI,CAAC,GAAG,gBAAgB,CAAC,YAAY,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;IAC3F;;;OAGG;IACH,iBAAiB,CAAC,EACd,WAAW,CAAC,cAAc,GAAG,IAAI,CAAC,GAClC,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,GACvC,IAAI,CAAC;IACT,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,kBAAkB,CAAC,EAAE,OAAO,CAAC;QAC3B,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,cAAc,EAAE,MAAM,CAAC;QACvB,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC,CAAC;IAEH,QAAQ,CAAC,EAAE,CACT,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,QAAQ,GAAG,OAAO,EAChC,KAAK,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC,KAC9B,IAAI,CAAC;IACV,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,EAAE,UAAU,CACnB,OAAO,UAAU,CAAC,YAAY,EAAE,2BAA2B,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC,CAC3F,CAAC;IACF;;OAEG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC,CAAC;CACJ,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,CAI7F,CAAC;AAWF,eAAO,MAAM,aAAa,GACxB,YAAY,SAAS,WAAW,EAChC,cAAc,SAAS,MAAM,GAAG,WAAW,yUA+B1C,kBAAkB,CAAC,YAAY,EAAE,cAAc,CAAC,GAAG;IAAE,OAAO,EAAE,GAAG,CAAC,WAAW,CAAC,CAAA;CAAE,4CAkIlF,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import o from"@babel/runtime/helpers/defineProperty";import s from"classnames";import{useRef as i,useCallback as n}from"react";import{Text as t}from"../Text/Text.js";import{LoaderCircular as c}from"../LoaderCircular/LoaderCircular.js";import{Tooltip as r}from"../Tooltip/Tooltip.js";import{CloseSmallIcon as e}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import"./components/Styles.scss.js";import{jsx as m,jsxs as p,Fragment as a}from"react/jsx-runtime";import{Label as l}from"./components/Label.js";import u from"./TextInputBase.scss.js";import"../../clients/subscriptions/constants.js";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"lodash";import"../../clients/subscriptions.v1.js";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions/subscriptions-client.factory.js";import"immutable";import"query-string";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../constants/corvaCompanyId.js";import"../../components/GradientManager/configuration/constants.js";import"../../utils/index.js";import"uuid";import"jsona";import"../../utils/env.js";import"../../components/StatusBadge/constants.js";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/sso/auth0.js";import"../../clients/sso/oauth2.js";import"../../clients/api/rateLimiter.js";import"lodash/isEmpty";import"lodash/sortBy";import"../../constants/streamSourceType.js";import"../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../AppCommonsProvider/AppCommonsProvider.js";import"../AppCommonsProvider/AppCommonsContext.js";import"../AppSettings/AppSettingsPinningContext.js";import{useCombineRefs as d}from"../../effects/useCombineRefs.js";function j(o,s){var i=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);s&&(n=n.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),i.push.apply(i,n)}return i}function I(s){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?j(Object(n),!0).forEach((function(i){o(s,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))}))}return s}var b={small:u.small,medium:u.medium,large:u.large},f={top:"",start:u.labelStart,end:u.labelEnd},v=function(o){var j=o.testId,v=o.className,h=o.label,C=o.rootTagName,g=void 0===C?"label":C,O=o.clearable,y=o.focusOnClear,P=void 0===y||y,x=o.prefix,A=o.suffix,F=o.placeholder,S=o.size,D=void 0===S?"small":S,N=o.value,T=void 0===N?"":N,k=o.readOnly,w=o.labelPlacement,B=void 0===w?"top":w,M=o.inputRef,R=o.disabled,E=o.autoFocus,z=o.message,G=o.onFocus,L=o.onBlur,U=o.onKeyUp,K=o.onKeyDown,q=o.status,W=o.onChange,X=o.elementsClassNames,Z=o.inputContainerRef,H=o.component,J=o.componentProps,Q=o.rootRef,V=o.testIds,Y=i(),$=d(M,Y),_="loading"===q?m(c,{size:"xs"}):void 0,oo=n((function(o){var s,i;(o.stopPropagation(),o.preventDefault(),P)?null===(s=Y.current)||void 0===s||s.focus():null===(i=Y.current)||void 0===i||i.blur();null==W||W("","clear")}),[W,P]),so=n((function(o){return null==W?void 0:W(o.target.value||"","change",o)}),[W]),io=O&&String(T).length>0?m(r,{title:"Clear",children:m("button",{className:u.clearButton,onClick:oo,tabIndex:-1,"data-testid":null==V?void 0:V.clearButton,children:m(e,{size:16})})}):void 0,no=_||A||io?p(a,{children:[_,io,A]}):void 0;return p(g,{ref:Q,className:s(u.root,b[D],"error"===q&&u.error,R&&u.disabled,v),"data-testid":j,children:[p("div",{className:f[B],children:[h&&m(t,{size:12,color:"T6",className:s(u.label,"top"!==B&&u.labelAside,"top"!==B&&"small"===D&&u.labelSpecialXs,null==X?void 0:X.label),testId:null==V?void 0:V.label,children:"string"==typeof h?m(l,{children:h}):h}),p("div",{className:s(u.inputContainer,null==X?void 0:X.inputContainer),ref:Z,children:[x&&m("div",{className:s(u.affix,null==X?void 0:X.prefix),"data-testid":null==V?void 0:V.prefix,children:x}),m(H,I({ref:$,className:s(u.input,null==X?void 0:X.input),"data-testid":null==V?void 0:V.input,placeholder:F,value:String(T),readOnly:k,onChange:so,disabled:R,onFocus:G,onBlur:L,onKeyUp:U,onKeyDown:K,autoFocus:E},J)),no&&m("div",{className:s(u.affix,null==X?void 0:X.suffix),"data-testid":null==V?void 0:V.suffix,children:no})]})]}),z&&m(t,{size:12,color:"T6",tagName:"div",className:s(u.message,null==X?void 0:X.message),testId:null==V?void 0:V.message,children:z})]})};export{b as SizeToClassMap,v as TextInputBase};
|
|
2
|
+
//# sourceMappingURL=TextInputBase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInputBase.js","sources":["../../../src/componentsV2/TextInputBase/TextInputBase.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport {\n ChangeEvent,\n ChangeEventHandler,\n FocusEventHandler,\n forwardRef,\n KeyboardEventHandler,\n MouseEventHandler,\n MutableRefObject,\n ReactNode,\n Ref,\n RefCallback,\n useCallback,\n useRef,\n} from 'react';\n\nimport { Text } from '../Text';\nimport { LoaderCircular } from '../LoaderCircular';\n\nimport { Label } from './components';\n\nimport styles from './TextInputBase.scss';\nimport { CloseSmallIcon } from '../../icons';\nimport { Tooltip } from '../Tooltip';\nimport { useCombineRefs } from '../../effects';\n\ntype ComponentProvidedProps<FieldElement extends HTMLElement> = Partial<{\n className: string;\n 'data-testid': string;\n placeholder: string;\n value: string;\n readOnly: boolean;\n onChange: ChangeEventHandler<FieldElement>;\n disabled: boolean;\n autoFocus: boolean;\n onFocus: FocusEventHandler<FieldElement>;\n onBlur: FocusEventHandler<FieldElement>;\n onKeyUp: KeyboardEventHandler<FieldElement>;\n onKeyDown: KeyboardEventHandler<FieldElement>;\n}>;\n\nexport type ComponentProvidedPropNames = keyof ComponentProvidedProps<never>;\n\ntype EmptyObject = Record<string, never>;\n\nexport type TextInputBaseComponentProps<\n FieldElement extends HTMLElement,\n ComponentProps extends object = EmptyObject\n> = ComponentProvidedProps<FieldElement> & ComponentProps;\n\nexport type TextInputBaseProps<\n FieldElement extends HTMLElement,\n ComponentProps extends object = EmptyObject\n> = {\n label?: ReactNode;\n value?: string | number;\n size?: 'small' | 'medium' | 'large';\n labelPlacement?: 'top' | 'start' | 'end';\n /**\n * HTML tag of the root element. Use `div` when `prefix`/`suffix` contain interactive\n * controls — nested interactive elements inside a `label` are invalid for assistive tech\n */\n rootTagName?: 'label' | 'div';\n disabled?: boolean;\n\n status?: 'error' | 'loading';\n message?: ReactNode;\n onFocus?: FocusEventHandler<FieldElement>;\n onBlur?: FocusEventHandler<FieldElement>;\n onKeyDown?: KeyboardEventHandler<FieldElement>;\n onKeyUp?: KeyboardEventHandler<FieldElement>;\n placeholder?: string;\n prefix?: ReactNode;\n suffix?: ReactNode;\n /**\n * Ref to an underlying input element\n */\n inputRef?: RefCallback<FieldElement | null> | MutableRefObject<FieldElement | null> | null;\n /**\n * Ref to a container that contains input and its affixes\n * Useful for positioning of popovers\n */\n inputContainerRef?:\n | RefCallback<HTMLDivElement | null>\n | MutableRefObject<HTMLDivElement | null>\n | null;\n readOnly?: boolean;\n /**\n * If `true` will focus on the field on render. Useful for modals, but may be detrimental to a11y\n */\n autoFocus?: boolean;\n\n elementsClassNames?: Partial<{\n label: string;\n input: string;\n inputContainer: string;\n prefix: string;\n suffix: string;\n message: string;\n }>;\n\n onChange?: (\n value: string,\n changeReason: 'change' | 'clear',\n event?: ChangeEvent<FieldElement>\n ) => void;\n clearable?: boolean;\n /**\n * Controls if the field should keep/gain focus after \"Clear\" button is clicked\n */\n focusOnClear?: boolean;\n\n className?: string;\n testId?: string;\n\n /**\n * ⚠️⚠️⚠️ PRIVATE API. If you see it in docs you're doing something wrong\n */\n component: ReturnType<\n typeof forwardRef<FieldElement, TextInputBaseComponentProps<FieldElement, ComponentProps>>\n >;\n /**\n * ⚠️⚠️⚠️ PRIVATE API. If you see it in docs you're doing something wrong\n */\n componentProps?: ComponentProps;\n /**\n * ⚠️⚠️⚠️ PRIVATE API. If you see it in docs you're doing something wrong\n */\n testIds?: Partial<{\n input: string;\n label: string;\n prefix: string;\n suffix: string;\n clearButton: string;\n message: string;\n }>;\n};\n\nexport const SizeToClassMap: Record<Required<TextInputBaseProps<never, never>>['size'], string> = {\n small: styles.small,\n medium: styles.medium,\n large: styles.large,\n};\n\nconst LabelPlacementToClassMap: Record<\n Required<TextInputBaseProps<never, never>>['labelPlacement'],\n string\n> = {\n top: '',\n start: styles.labelStart,\n end: styles.labelEnd,\n};\n\nexport const TextInputBase = <\n FieldElement extends HTMLElement,\n ComponentProps extends object = EmptyObject\n>({\n testId,\n className,\n label,\n rootTagName = 'label',\n clearable,\n focusOnClear = true,\n prefix,\n suffix,\n placeholder,\n size = 'small',\n value = '',\n readOnly,\n labelPlacement = 'top',\n inputRef,\n disabled,\n autoFocus,\n message,\n onFocus,\n onBlur,\n onKeyUp,\n onKeyDown,\n status,\n onChange,\n elementsClassNames,\n inputContainerRef,\n component: Component,\n componentProps,\n rootRef,\n testIds,\n}: TextInputBaseProps<FieldElement, ComponentProps> & { rootRef: Ref<HTMLElement> }) => {\n const ownInputRef = useRef<FieldElement>();\n const actualInputRef = useCombineRefs(inputRef, ownInputRef);\n const loadingIndicator = status === 'loading' ? <LoaderCircular size=\"xs\" /> : undefined;\n const onClearHandler = useCallback<MouseEventHandler>(\n event => {\n event.stopPropagation();\n event.preventDefault();\n\n if (focusOnClear) {\n ownInputRef.current?.focus();\n } else {\n ownInputRef.current?.blur();\n }\n\n onChange?.('', 'clear');\n },\n [onChange, focusOnClear]\n );\n const onChangeHandler = useCallback<ChangeEventHandler<FieldElement>>(\n event => onChange?.((event.target as unknown as HTMLInputElement).value || '', 'change', event),\n [onChange]\n );\n\n const clearButton =\n !!clearable && String(value).length > 0 ? (\n <Tooltip title=\"Clear\">\n <button\n className={styles.clearButton}\n onClick={onClearHandler}\n tabIndex={-1}\n data-testid={testIds?.clearButton}\n >\n <CloseSmallIcon size={16} />\n </button>\n </Tooltip>\n ) : undefined;\n\n const actualSuffix =\n loadingIndicator || suffix || clearButton ? (\n <>\n {loadingIndicator}\n {clearButton}\n {suffix}\n </>\n ) : undefined;\n\n const RootElement = rootTagName;\n\n return (\n <RootElement\n ref={rootRef as never}\n className={classNames(\n styles.root,\n SizeToClassMap[size],\n status === 'error' && styles.error,\n disabled && styles.disabled,\n className\n )}\n data-testid={testId}\n >\n <div className={LabelPlacementToClassMap[labelPlacement]}>\n {label && (\n <Text\n size={12}\n color=\"T6\"\n className={classNames(\n styles.label,\n labelPlacement !== 'top' && styles.labelAside,\n labelPlacement !== 'top' && size === 'small' && styles.labelSpecialXs,\n elementsClassNames?.label\n )}\n testId={testIds?.label}\n >\n {typeof label === 'string' ? <Label>{label}</Label> : label}\n </Text>\n )}\n\n <div\n className={classNames(styles.inputContainer, elementsClassNames?.inputContainer)}\n ref={inputContainerRef}\n >\n {prefix && (\n <div\n className={classNames(styles.affix, elementsClassNames?.prefix)}\n data-testid={testIds?.prefix}\n >\n {prefix}\n </div>\n )}\n {/* @ts-expect-error TS can't properly calculate component's props here for some reason */}\n <Component\n ref={actualInputRef}\n className={classNames(styles.input, elementsClassNames?.input)}\n data-testid={testIds?.input}\n placeholder={placeholder}\n value={String(value)}\n readOnly={readOnly}\n onChange={onChangeHandler}\n disabled={disabled}\n onFocus={onFocus}\n onBlur={onBlur}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n autoFocus={autoFocus}\n {...componentProps}\n />\n {actualSuffix && (\n <div\n className={classNames(styles.affix, elementsClassNames?.suffix)}\n data-testid={testIds?.suffix}\n >\n {actualSuffix}\n </div>\n )}\n </div>\n </div>\n {message && (\n <Text\n size={12}\n color=\"T6\"\n tagName=\"div\"\n className={classNames(styles.message, elementsClassNames?.message)}\n testId={testIds?.message}\n >\n {message}\n </Text>\n )}\n </RootElement>\n );\n};\n"],"names":["SizeToClassMap","small","styles","medium","large","LabelPlacementToClassMap","top","start","labelStart","end","labelEnd","TextInputBase","_ref","testId","className","label","_ref$rootTagName","rootTagName","clearable","_ref$focusOnClear","focusOnClear","prefix","suffix","placeholder","_ref$size","size","_ref$value","value","readOnly","_ref$labelPlacement","labelPlacement","inputRef","disabled","autoFocus","message","onFocus","onBlur","onKeyUp","onKeyDown","status","onChange","elementsClassNames","inputContainerRef","Component","component","componentProps","rootRef","testIds","ownInputRef","useRef","actualInputRef","useCombineRefs","loadingIndicator","_jsx","LoaderCircular","undefined","onClearHandler","useCallback","event","_ownInputRef$current","_ownInputRef$current2","stopPropagation","preventDefault","current","focus","blur","onChangeHandler","target","clearButton","String","length","Tooltip","title","children","onClick","tabIndex","CloseSmallIcon","actualSuffix","_jsxs","_Fragment","ref","classNames","root","error","Text","color","labelAside","labelSpecialXs","Label","inputContainer","affix","_objectSpread","input","tagName"],"mappings":"22MA0IO,IAAMA,EAAqF,CAChGC,MAAOC,EAAOD,MACdE,OAAQD,EAAOC,OACfC,MAAOF,EAAOE,OAGVC,EAGF,CACFC,IAAK,GACLC,MAAOL,EAAOM,WACdC,IAAKP,EAAOQ,UAGDC,EAAgB,SAiC2DC,GAAA,IA7BtFC,IAAAA,OACAC,IAAAA,UACAC,IAAAA,MAAKC,EAAAJ,EACLK,YAAAA,aAAc,QAAOD,EACrBE,IAAAA,UAASC,EAAAP,EACTQ,aAAAA,cAAmBD,EACnBE,IAAAA,OACAC,IAAAA,OACAC,IAAAA,YAAWC,EAAAZ,EACXa,KAAAA,aAAO,QAAOD,EAAAE,EAAAd,EACde,MAAAA,aAAQ,GAAED,EACVE,IAAAA,SAAQC,EAAAjB,EACRkB,eAAAA,aAAiB,MAAKD,EACtBE,IAAAA,SACAC,IAAAA,SACAC,IAAAA,UACAC,IAAAA,QACAC,IAAAA,QACAC,IAAAA,OACAC,IAAAA,QACAC,IAAAA,UACAC,IAAAA,OACAC,IAAAA,SACAC,IAAAA,mBACAC,IAAAA,kBACWC,IAAXC,UACAC,IAAAA,eACAC,IAAAA,QACAC,IAAAA,QAEMC,EAAcC,IACdC,EAAiBC,EAAepB,EAAUiB,GAC1CI,EAA8B,YAAXb,EAAuBc,EAACC,EAAc,CAAC7B,KAAK,YAAU8B,EACzEC,GAAiBC,GACrB,SAAAC,GAIoB,IAAAC,EAEXC,GALPF,EAAMG,kBACNH,EAAMI,iBAEF1C,GACF,QAAAuC,EAAAX,EAAYe,eAAZ,IAAAJ,GAAAA,EAAqBK,QAErB,QAAAJ,EAAAZ,EAAYe,eAAZ,IAAAH,GAAAA,EAAqBK,OAGvBzB,SAAAA,EAAW,GAAI,QACjB,GACA,CAACA,EAAUpB,IAEP8C,GAAkBT,GACtB,SAAAC,GAAK,OAAIlB,aAAAA,EAAAA,EAAYkB,EAAMS,OAAuCxC,OAAS,GAAI,SAAU+B,KACzF,CAAClB,IAGG4B,GACFlD,GAAamD,OAAO1C,GAAO2C,OAAS,EACpCjB,EAACkB,EAAO,CAACC,MAAM,QAAOC,SACpBpB,EAAA,SAAA,CACEvC,UAAWZ,EAAOkE,YAClBM,QAASlB,GACTmB,UAAW,EACX,cAAa5B,aAAAA,EAAAA,EAASqB,YAAYK,SAElCpB,EAACuB,EAAc,CAACnD,KAAM,cAGxB8B,EAEAsB,GACJzB,GAAoB9B,GAAU8C,GAC5BU,EAAAC,EAAA,CAAAN,SAAA,CACGrB,EACAgB,GACA9C,UAEDiC,EAIN,OACEuB,EAHkB7D,EAGN,CACV+D,IAAKlC,EACLhC,UAAWmE,EACT/E,EAAOgF,KACPlF,EAAeyB,GACJ,UAAXc,GAAsBrC,EAAOiF,MAC7BnD,GAAY9B,EAAO8B,SACnBlB,GAEF,cAAaD,EAAO4D,SAEpB,CAAAK,EAAA,MAAA,CAAKhE,UAAWT,EAAyByB,GAAgB2C,SACtD1D,CAAAA,GACCsC,EAAC+B,EAAI,CACH3D,KAAM,GACN4D,MAAM,KACNvE,UAAWmE,EACT/E,EAAOa,MACY,QAAnBe,GAA4B5B,EAAOoF,WAChB,QAAnBxD,GAAqC,UAATL,GAAoBvB,EAAOqF,eACvD9C,aAAkB,EAAlBA,EAAoB1B,OAEtBF,OAAQkC,aAAAA,EAAAA,EAAShC,MAAM0D,SAEL,iBAAV1D,EAAqBsC,EAACmC,EAAK,CAAAf,SAAE1D,IAAiBA,IAI1D+D,EAAA,MAAA,CACEhE,UAAWmE,EAAW/E,EAAOuF,eAAgBhD,aAAkB,EAAlBA,EAAoBgD,gBACjET,IAAKtC,EAAkB+B,SAAA,CAEtBpD,GACCgC,EAAA,MAAA,CACEvC,UAAWmE,EAAW/E,EAAOwF,MAAOjD,aAAkB,EAAlBA,EAAoBpB,QACxD,cAAa0B,aAAAA,EAAAA,EAAS1B,OAAOoD,SAE5BpD,IAILgC,EAACV,EAASgD,EAAA,CACRX,IAAK9B,EACLpC,UAAWmE,EAAW/E,EAAO0F,MAAOnD,aAAkB,EAAlBA,EAAoBmD,OACxD,cAAa7C,aAAAA,EAAAA,EAAS6C,MACtBrE,YAAaA,EACbI,MAAO0C,OAAO1C,GACdC,SAAUA,EACVY,SAAU0B,GACVlC,SAAUA,EACVG,QAASA,EACTC,OAAQA,EACRC,QAASA,EACTC,UAAWA,EACXL,UAAWA,GACPY,IAELgC,IACCxB,EAAA,MAAA,CACEvC,UAAWmE,EAAW/E,EAAOwF,MAAOjD,aAAkB,EAAlBA,EAAoBnB,QACxD,cAAayB,aAAAA,EAAAA,EAASzB,OAAOmD,SAE5BI,WAKR3C,GACCmB,EAAC+B,EAAI,CACH3D,KAAM,GACN4D,MAAM,KACNQ,QAAQ,MACR/E,UAAWmE,EAAW/E,EAAOgC,QAASO,aAAkB,EAAlBA,EAAoBP,SAC1DrB,OAAQkC,aAAAA,EAAAA,EAASb,QAAQuC,SAExBvC,MAKX"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import t from'./../../ext-esm/style-inject/dist/style-inject.es.js';var e={spacing:"8",root:"TextInputBase_root__DM3QK",input:"TextInputBase_input__sw4Aj",error:"TextInputBase_error__sG2ns",message:"TextInputBase_message__NtJjD",disabled:"TextInputBase_disabled__swCwa",affix:"TextInputBase_affix__6vjkE",label:"TextInputBase_label__zlMYg",inputContainer:"TextInputBase_inputContainer__0GwcC",clearButton:"TextInputBase_clearButton__sw59-",small:"TextInputBase_small__-BvlD",medium:"TextInputBase_medium__JtPkm",large:"TextInputBase_large__jcv8K",labelStart:"TextInputBase_labelStart__qUKvu",labelEnd:"TextInputBase_labelEnd__TyWvW",labelAside:"TextInputBase_labelAside__5XjdQ",labelSpecialXs:"TextInputBase_labelSpecialXs__0-sqR"};t(".TextInputBase_root__DM3QK{--corvaui-textinput-bgcolor:rgb(from var(--palette-primary-text-1) r g b/0.04);--corvaui-textinput-bordercolor:rgb(from var(--palette-primary-text-1) r g b/0.04);--corvaui-textinput-placeholdercolor:var(--palette-primary-text-8);--corvaui-textinput-valuecolor:var(--palette-primary-text-1);color:var(--palette-primary-text-1);display:block;width:100%}.TextInputBase_root__DM3QK:hover{--corvaui-textinput-bgcolor:rgb(from var(--palette-primary-text-1) r g b/0.08);--corvaui-textinput-bordercolor:rgb(from var(--palette-primary-text-1) r g b/0.08);--corvaui-textinput-placeholdercolor:var(--palette-primary-text-6)}.TextInputBase_root__DM3QK:has(.TextInputBase_input__sw4Aj:focus-visible){--corvaui-textinput-bgcolor:rgb(from var(--palette-primary-text-1) r g b/0.04);--corvaui-textinput-bordercolor:var(--palette-primary-main);--corvaui-textinput-placeholdercolor:var(--palette-primary-text-6)}.TextInputBase_root__DM3QK.TextInputBase_error__sG2ns,.TextInputBase_root__DM3QK.TextInputBase_error__sG2ns:has(.TextInputBase_input__sw4Aj:focus-visible){--corvaui-textinput-bordercolor:var(--palette-error-main)}.TextInputBase_root__DM3QK.TextInputBase_error__sG2ns .TextInputBase_message__NtJjD{color:var(--palette-error-main)}.TextInputBase_root__DM3QK.TextInputBase_disabled__swCwa{--corvaui-textinput-bgcolor:rgb(from var(--palette-primary-text-1) r g b/0.02);--corvaui-textinput-bordercolor:rgb(from var(--palette-primary-text-1) r g b/0.04);--corvaui-textinput-placeholdercolor:var(--palette-primary-text-9);--corvaui-textinput-valuecolor:var(--palette-primary-text-8);pointer-events:none}.TextInputBase_root__DM3QK.TextInputBase_disabled__swCwa .TextInputBase_affix__6vjkE{opacity:.7}.TextInputBase_root__DM3QK.TextInputBase_disabled__swCwa .TextInputBase_label__zlMYg{color:var(--palette-primary-text-9)}.TextInputBase_label__zlMYg{display:block;line-height:16px;margin-bottom:4px}.TextInputBase_inputContainer__0GwcC{align-items:center;background-color:var(--corvaui-textinput-bgcolor);border:1px solid var(--corvaui-textinput-bordercolor);border-radius:8px;display:flex;flex-flow:row nowrap;font-family:Roboto,sans-serif;gap:8px;padding:6px;transition:border-color .15s cubic-bezier(.4,0,.2,1),background-color .15s cubic-bezier(.4,0,.2,1);width:100%}.TextInputBase_input__sw4Aj{-moz-appearance:textfield;background:transparent;border:none;color:var(--corvaui-textinput-valuecolor);display:block;font-family:inherit;font-size:inherit;font-weight:400;height:var(--corvaui-textinput-inputheight);letter-spacing:0;outline:none;padding:0;width:100%}.TextInputBase_input__sw4Aj::-webkit-inner-spin-button,.TextInputBase_input__sw4Aj::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.TextInputBase_input__sw4Aj::-webkit-search-cancel-button{appearance:none;display:none}.TextInputBase_input__sw4Aj::placeholder{color:var(--corvaui-textinput-placeholdercolor);transition:color .15s cubic-bezier(.4,0,.2,1)}.TextInputBase_affix__6vjkE{align-items:center;color:var(--palette-primary-text-6);display:flex;flex:0 0 auto;gap:8px;max-height:var(--corvaui-textinput-inputheight);white-space:nowrap}.TextInputBase_affix__6vjkE>.MuiIcon-root,.TextInputBase_affix__6vjkE>.i-icon,.TextInputBase_affix__6vjkE>.i-icon>svg,.TextInputBase_affix__6vjkE>svg{display:block;height:16px!important;width:16px!important}.TextInputBase_clearButton__sw59-{background:transparent;border:none;color:var(--palette-primary-text-6);cursor:pointer;outline:none;padding:0;transition:color .15s cubic-bezier(.4,0,.2,1)}.TextInputBase_clearButton__sw59-:hover{color:var(--palette-primary-text-1)}.TextInputBase_clearButton__sw59- .i-icon,.TextInputBase_clearButton__sw59- svg{display:block}.TextInputBase_message__NtJjD{margin-top:4px}.TextInputBase_small__-BvlD{--corvaui-textinput-inputheight:18px;font-size:14px}.TextInputBase_medium__JtPkm{--corvaui-textinput-inputheight:22px;font-size:16px}.TextInputBase_large__jcv8K{--corvaui-textinput-inputheight:26px;font-size:16px}.TextInputBase_labelEnd__TyWvW,.TextInputBase_labelStart__qUKvu{align-items:center;display:flex;flex-flow:row nowrap;gap:8px;min-width:1px}.TextInputBase_labelEnd__TyWvW .TextInputBase_label__zlMYg,.TextInputBase_labelStart__qUKvu .TextInputBase_label__zlMYg{flex:0 0 auto;margin:0;white-space:nowrap}.TextInputBase_labelEnd__TyWvW .TextInputBase_inputContainer__0GwcC,.TextInputBase_labelStart__qUKvu .TextInputBase_inputContainer__0GwcC{flex:1 1 100%}.TextInputBase_labelAside__5XjdQ{max-width:50%}.TextInputBase_labelSpecialXs__0-sqR{font-size:14px}.TextInputBase_labelEnd__TyWvW{flex-direction:row-reverse}");export{e as default};
|
|
2
|
+
//# sourceMappingURL=TextInputBase.scss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,aAAa,sDAAyD;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InfoIcon.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/
|
|
1
|
+
{"version":3,"file":"InfoIcon.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/TextInputBase/components/InfoIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQlC,eAAO,MAAM,QAAQ,uCAIlB;IACD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,4CAYA,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InfoIcon.js","sources":["../../../../src/componentsV2/
|
|
1
|
+
{"version":3,"file":"InfoIcon.js","sources":["../../../../src/componentsV2/TextInputBase/components/InfoIcon.tsx"],"sourcesContent":["import { ReactNode } from 'react';\nimport classNames from 'classnames';\n\nimport { Tooltip } from '../../Tooltip';\nimport { InfoIcon as Icon } from '../../../icons';\n\nimport styles from './Styles.scss';\n\nexport const InfoIcon = ({\n title,\n description,\n className,\n}: {\n title?: ReactNode;\n description?: ReactNode;\n className?: string;\n}) => (\n <Tooltip title={title} description={description}>\n <span\n className={classNames(\n styles.infoIcon,\n (!!title || !!description) && styles.infoIconTooltip,\n className\n )}\n >\n <Icon size={16} />\n </span>\n </Tooltip>\n);\n"],"names":["InfoIcon","_ref","title","description","className","_jsx","Tooltip","children","classNames","styles","infoIcon","infoIconTooltip","Icon","size"],"mappings":"s/HAQaA,IAAAA,EAAW,SAAHC,GAAA,IACnBC,IAAAA,MACAC,IAAAA,YACAC,IAAAA,UAAS,OAMTC,EAACC,EAAO,CAACJ,MAAOA,EAAOC,YAAaA,EAAYI,SAC9CF,EAAA,OAAA,CACED,UAAWI,EACTC,EAAOC,YACJR,KAAWC,IAAgBM,EAAOE,gBACrCP,GACAG,SAEFF,EAACO,EAAI,CAACC,KAAM,QAEN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/
|
|
1
|
+
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/TextInputBase/components/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUlC,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,KAAK,8CAA+C,UAAU,4CAS1E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.js","sources":["../../../../src/componentsV2/
|
|
1
|
+
{"version":3,"file":"Label.js","sources":["../../../../src/componentsV2/TextInputBase/components/Label.tsx"],"sourcesContent":["import { ReactNode } from 'react';\n\nimport { TextEndTruncated } from '../../TextEndTruncated';\n\nimport { RequiredIndicator } from './RequiredIndicator';\nimport { InfoIcon } from './InfoIcon';\nimport { Unit } from './Unit';\n\nimport styles from './Styles.scss';\n\nexport type LabelProps = {\n children?: ReactNode;\n required?: boolean;\n unit?: ReactNode;\n infoTooltip?: ReactNode;\n};\n\nexport const Label = ({ infoTooltip, unit, required, children }: LabelProps) => {\n return (\n <div className={styles.label}>\n <TextEndTruncated>{children}</TextEndTruncated>\n {unit && <Unit>{unit}</Unit>}\n {required && <RequiredIndicator />}\n {infoTooltip && <InfoIcon title={infoTooltip} />}\n </div>\n );\n};\n"],"names":["Label","_ref","infoTooltip","unit","required","children","_jsxs","className","styles","label","_jsx","TextEndTruncated","Unit","RequiredIndicator","InfoIcon","title"],"mappings":"qSAiBaA,IAAAA,EAAQ,SAA2DC,GAAA,IAAxDC,IAAAA,YAAaC,IAAAA,KAAMC,IAAAA,SAAUC,IAAAA,SACnD,OACEC,EAAA,MAAA,CAAKC,UAAWC,EAAOC,MAAMJ,SAAA,CAC3BK,EAACC,EAAgB,CAAAN,SAAEA,IAClBF,GAAQO,EAACE,EAAI,CAAAP,SAAEF,IACfC,GAAYM,EAACG,MACbX,GAAeQ,EAACI,EAAQ,CAACC,MAAOb,MAGvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageWithIcon.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/
|
|
1
|
+
{"version":3,"file":"MessageWithIcon.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/TextInputBase/components/MessageWithIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMlC,eAAO,MAAM,eAAe,iBAAkB;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,4CAKrE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageWithIcon.js","sources":["../../../../src/componentsV2/
|
|
1
|
+
{"version":3,"file":"MessageWithIcon.js","sources":["../../../../src/componentsV2/TextInputBase/components/MessageWithIcon.tsx"],"sourcesContent":["import { ReactNode } from 'react';\n\nimport { InfoIcon } from './InfoIcon';\n\nimport styles from './Styles.scss';\n\nexport const MessageWithIcon = ({ children }: { children?: ReactNode }) => (\n <div className={styles.messageWithIcon}>\n <InfoIcon className={styles.icon} />\n {children}\n </div>\n);\n"],"names":["MessageWithIcon","_ref","children","_jsxs","className","styles","messageWithIcon","_jsx","InfoIcon","icon"],"mappings":"2HAMaA,IAAAA,EAAkB,SAAHC,GAAA,IAAMC,IAAAA,SAAQ,OACxCC,EAAA,MAAA,CAAKC,UAAWC,EAAOC,gBAAgBJ,SAAA,CACrCK,EAACC,EAAQ,CAACJ,UAAWC,EAAOI,OAC3BP,IACG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequiredIndicator.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/
|
|
1
|
+
{"version":3,"file":"RequiredIndicator.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/TextInputBase/components/RequiredIndicator.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,+CAA4D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequiredIndicator.js","sources":["../../../../src/componentsV2/
|
|
1
|
+
{"version":3,"file":"RequiredIndicator.js","sources":["../../../../src/componentsV2/TextInputBase/components/RequiredIndicator.tsx"],"sourcesContent":["import styles from './Styles.scss';\n\nexport const RequiredIndicator = () => <span className={styles.requiredIndicator}>*</span>;\n"],"names":["RequiredIndicator","_jsx","className","styles","requiredIndicator","children"],"mappings":"wEAEaA,IAAAA,EAAoB,WAAH,OAASC,EAAA,OAAA,CAAMC,UAAWC,EAAOC,kBAAkBC,SAAA,KAAS"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from'./../../../ext-esm/style-inject/dist/style-inject.es.js';var o={spacing:"8",label:"Styles_label__FiovH",messageWithIcon:"Styles_messageWithIcon__uBdJg",icon:"Styles_icon__dHBtC",infoIcon:"Styles_infoIcon__z1Vz-",requiredIndicator:"Styles_requiredIndicator__RcCFG",infoIconTooltip:"Styles_infoIconTooltip__QYSYb",unit:"Styles_unit__-FN2U"};e(".Styles_label__FiovH{display:flex;flex-flow:row nowrap;gap:4px;overflow:hidden}.Styles_messageWithIcon__uBdJg{line-height:16px;padding-left:20px;position:relative}.Styles_messageWithIcon__uBdJg .Styles_icon__dHBtC{left:0;position:absolute;top:0}.Styles_infoIcon__z1Vz-{display:inline-block;flex:0 0 auto;vertical-align:bottom}.Styles_infoIcon__z1Vz- .i-icon,.Styles_infoIcon__z1Vz- svg{display:block}.Styles_requiredIndicator__RcCFG{color:var(--palette-error-main);display:inline-block;flex:0 0 auto;vertical-align:baseline}.Styles_infoIconTooltip__QYSYb{cursor:pointer}.Styles_unit__-FN2U{flex:0 0 auto}");export{o as default};
|
|
2
|
+
//# sourceMappingURL=Styles.scss.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Unit.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/
|
|
1
|
+
{"version":3,"file":"Unit.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/TextInputBase/components/Unit.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMlC,eAAO,MAAM,IAAI,4BAA6B;IAAE,QAAQ,EAAE,SAAS,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,4CAExF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Unit.js","sources":["../../../../src/componentsV2/
|
|
1
|
+
{"version":3,"file":"Unit.js","sources":["../../../../src/componentsV2/TextInputBase/components/Unit.tsx"],"sourcesContent":["import { ReactNode } from 'react';\nimport classNames from 'classnames';\n\nimport styles from './Styles.scss';\n\n// Does not have styling for bow but should be a separate styleable entity\nexport const Unit = ({ children, className }: { children: ReactNode; className?: string }) => (\n <span className={classNames(styles.unit, className)}>({children})</span>\n);\n"],"names":["Unit","_ref","children","className","_jsxs","classNames","styles","unit"],"mappings":"mGAMaA,IAAAA,EAAO,SAAHC,GAAA,IAAMC,IAAAA,SAAUC,IAAAA,UAAS,OACxCC,EAAA,OAAA,CAAMD,UAAWE,EAAWC,EAAOC,KAAMJ,GAAWD,SAAA,CAAA,IAAGA,EAAQ,MAAS"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/TextInputBase/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/TextInputBase/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|