@corva/ui 3.74.0-10 → 3.74.0-11
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/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/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/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/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/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/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 +216 -54
- 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/componentsV2/TextInputNext/components/Styles.scss.js +0 -2
- 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
|
@@ -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,MA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;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,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TqC,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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AO,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,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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"}
|
|
@@ -1,16 +1,28 @@
|
|
|
1
|
-
import { ChangeEvent,
|
|
2
|
-
import { InfoIcon, Label, MessageWithIcon, RequiredIndicator, Unit } from '
|
|
1
|
+
import { ChangeEvent, HTMLAttributes, InputHTMLAttributes } from 'react';
|
|
2
|
+
import { InfoIcon, Label, MessageWithIcon, RequiredIndicator, Unit } from '../TextInputBase/components';
|
|
3
|
+
import { ComponentProvidedPropNames, TextInputBaseProps } from '../TextInputBase';
|
|
4
|
+
type AdditionalFieldProps = Omit<Partial<InputHTMLAttributes<HTMLInputElement>>, ComponentProvidedPropNames>;
|
|
5
|
+
type BaseProps = TextInputBaseProps<HTMLInputElement, AdditionalFieldProps>;
|
|
3
6
|
export type TextInputChangeReason = 'clear' | 'change';
|
|
4
|
-
export type TextInputNextProps = {
|
|
5
|
-
label?: ReactNode;
|
|
6
|
-
value?: string | number;
|
|
7
|
-
size?: 'small' | 'medium' | 'large';
|
|
8
|
-
labelPlacement?: 'top' | 'start' | 'end';
|
|
7
|
+
export type TextInputNextProps = Omit<BaseProps, 'component' | 'componentProps' | 'elementsClassNames' | 'onChange' | 'testIds'> & {
|
|
9
8
|
/**
|
|
10
|
-
*
|
|
11
|
-
|
|
9
|
+
* Underlying `input`'s element `type` attribute
|
|
10
|
+
*/
|
|
11
|
+
inputType?: 'text' | 'email' | 'password' | 'number' | 'phone' | 'url' | 'search';
|
|
12
|
+
/**
|
|
13
|
+
* Input mode that hints at the type of data that might be entered by the user while editing the element or its contents. This allows a browser to display an appropriate virtual keyboard.
|
|
12
14
|
*/
|
|
13
|
-
|
|
15
|
+
inputMode?: HTMLAttributes<HTMLInputElement>['inputMode'];
|
|
16
|
+
/**
|
|
17
|
+
* Escape hatch to provide arbitrary html attributes to `input`
|
|
18
|
+
*/
|
|
19
|
+
htmlAttributes?: Omit<Partial<InputHTMLAttributes<HTMLInputElement>>, ComponentProvidedPropNames | 'type' | 'inputMode'>;
|
|
20
|
+
/**
|
|
21
|
+
* An escape hatch to tweak styling of internal elements
|
|
22
|
+
*/
|
|
23
|
+
elementsClassNames?: BaseProps['elementsClassNames'] & {
|
|
24
|
+
numberStepButtons?: string;
|
|
25
|
+
};
|
|
14
26
|
/**
|
|
15
27
|
* Change handler. `TextInputChangeReason` utility type is provided
|
|
16
28
|
* @param value
|
|
@@ -18,7 +30,8 @@ export type TextInputNextProps = {
|
|
|
18
30
|
* @param event is not present when input is cleared via clear button
|
|
19
31
|
*/
|
|
20
32
|
onChange?: (value: string, changeReason: TextInputChangeReason, event?: ChangeEvent<HTMLInputElement>) => void;
|
|
21
|
-
|
|
33
|
+
};
|
|
34
|
+
declare const TextInputNextBase: import("react").ForwardRefExoticComponent<Omit<BaseProps, "component" | "componentProps" | "elementsClassNames" | "onChange" | "testIds"> & {
|
|
22
35
|
/**
|
|
23
36
|
* Underlying `input`'s element `type` attribute
|
|
24
37
|
*/
|
|
@@ -27,55 +40,25 @@ export type TextInputNextProps = {
|
|
|
27
40
|
* Input mode that hints at the type of data that might be entered by the user while editing the element or its contents. This allows a browser to display an appropriate virtual keyboard.
|
|
28
41
|
*/
|
|
29
42
|
inputMode?: HTMLAttributes<HTMLInputElement>['inputMode'];
|
|
30
|
-
status?: 'error' | 'loading';
|
|
31
|
-
message?: ReactNode;
|
|
32
|
-
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
33
|
-
onBlur?: FocusEventHandler;
|
|
34
|
-
onKeyDown?: KeyboardEventHandler;
|
|
35
|
-
onKeyUp?: KeyboardEventHandler;
|
|
36
|
-
clearable?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Controls if the field should keep/gain focus after "Clear" button is clicked
|
|
39
|
-
*/
|
|
40
|
-
focusOnClear?: boolean;
|
|
41
|
-
placeholder?: string;
|
|
42
|
-
prefix?: ReactNode;
|
|
43
|
-
suffix?: ReactNode;
|
|
44
|
-
/**
|
|
45
|
-
* Ref to an underlying `input` element
|
|
46
|
-
*/
|
|
47
|
-
inputRef?: RefCallback<HTMLInputElement | null> | MutableRefObject<HTMLInputElement | null> | null;
|
|
48
|
-
/**
|
|
49
|
-
* Ref to input container that contains `input` and its affixes
|
|
50
|
-
* Useful for positioning of popovers
|
|
51
|
-
*/
|
|
52
|
-
inputContainerRef?: RefCallback<HTMLDivElement | null> | MutableRefObject<HTMLDivElement | null> | null;
|
|
53
|
-
readOnly?: boolean;
|
|
54
|
-
/**
|
|
55
|
-
* If `true` will focus on the field on render. Useful for modals, but may be detrimental to a11y
|
|
56
|
-
*/
|
|
57
|
-
autoFocus?: boolean;
|
|
58
43
|
/**
|
|
59
44
|
* Escape hatch to provide arbitrary html attributes to `input`
|
|
60
45
|
*/
|
|
61
|
-
htmlAttributes?: Omit<Partial<InputHTMLAttributes<HTMLInputElement>>,
|
|
46
|
+
htmlAttributes?: Omit<Partial<InputHTMLAttributes<HTMLInputElement>>, ComponentProvidedPropNames | 'type' | 'inputMode'>;
|
|
62
47
|
/**
|
|
63
48
|
* An escape hatch to tweak styling of internal elements
|
|
64
49
|
*/
|
|
65
|
-
elementsClassNames?:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
declare const TextInputBase: import("react").ForwardRefExoticComponent<TextInputNextProps & import("react").RefAttributes<HTMLElement>>;
|
|
78
|
-
type TextInputNextType = typeof TextInputBase & {
|
|
50
|
+
elementsClassNames?: BaseProps['elementsClassNames'] & {
|
|
51
|
+
numberStepButtons?: string;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Change handler. `TextInputChangeReason` utility type is provided
|
|
55
|
+
* @param value
|
|
56
|
+
* @param changeReason
|
|
57
|
+
* @param event is not present when input is cleared via clear button
|
|
58
|
+
*/
|
|
59
|
+
onChange?: (value: string, changeReason: TextInputChangeReason, event?: ChangeEvent<HTMLInputElement>) => void;
|
|
60
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
61
|
+
type TextInputNextType = typeof TextInputNextBase & {
|
|
79
62
|
InfoIcon: typeof InfoIcon;
|
|
80
63
|
MessageWithIcon: typeof MessageWithIcon;
|
|
81
64
|
RequiredIndicator: typeof RequiredIndicator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInputNext.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/TextInputNext/TextInputNext.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EAEX,
|
|
1
|
+
{"version":3,"file":"TextInputNext.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/TextInputNext/TextInputNext.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EAEX,cAAc,EACd,mBAAmB,EAMpB,MAAM,OAAO,CAAC;AAIf,OAAO,EACL,QAAQ,EACR,KAAK,EACL,eAAe,EACf,iBAAiB,EACjB,IAAI,EACL,MAAM,6BAA6B,CAAC;AAKrC,OAAO,EAAE,0BAA0B,EAAiB,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEjG,KAAK,oBAAoB,GAAG,IAAI,CAC9B,OAAO,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC,EAC9C,0BAA0B,CAC3B,CAAC;AAEF,KAAK,SAAS,GAAG,kBAAkB,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,CAAC;AAa5E,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEvD,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,SAAS,EACT,WAAW,GAAG,gBAAgB,GAAG,oBAAoB,GAAG,U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