@corva/ui 0.97.0-7 → 0.97.0-9
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/components/Content.js +1 -1
- package/cjs-bundle/components/AdvancedSlider/AdvancedSlider.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
- package/cjs-bundle/components/ColorPickerPalette/ColorPickerPalette.js +1 -1
- package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/cjs-bundle/components/GradientPicker/GradientPicker.js +1 -1
- package/cjs-bundle/components/IconButton/index.js +1 -1
- package/cjs-bundle/components/LoadingIndicator/LoadingIndicator.js +1 -1
- package/cjs-bundle/components/LoadingIndicator/types.js +1 -1
- package/cjs-bundle/components/Notifications/NotificationsContainer.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
- package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/cjs-bundle/components/Popover/Popover.js +1 -1
- package/cjs-bundle/components/Popper/Popper.js +1 -1
- package/cjs-bundle/components/RangeSlider/RangeSlider.js +1 -1
- package/cjs-bundle/components/RangeSlider/constants.js +1 -1
- package/cjs-bundle/components/Search/components/RecentSearches.js +1 -1
- package/cjs-bundle/components/Select/index.js +1 -1
- package/cjs-bundle/components/SettingEditors/RadioEditor/index.js +1 -1
- package/cjs-bundle/components/Table/TableCell/TableCell.js +1 -1
- package/cjs-bundle/components/Table/TableContainer/TableContainer.js +1 -1
- package/cjs-bundle/components/Table/TableSortLabel/TableSortLabel.js +1 -1
- package/cjs-bundle/components/Table/TableToolbar/TableToolbar.js +1 -1
- package/cjs-bundle/components/Tabs/Tab.js +1 -1
- package/cjs-bundle/components/Tabs/Tabs.js +1 -1
- package/cjs-bundle/components/TextField/index.js +1 -1
- package/cjs-bundle/components/TextLink/index.js +1 -1
- package/cjs-bundle/components/Toaster/Toaster.js +1 -1
- package/cjs-bundle/components/TruncatedText/index.js +1 -1
- package/cjs-bundle/components/VirtualizedTable/VirtualizedTable.js +1 -1
- package/cjs-bundle/components/VirtualizedTable/index.js +1 -1
- package/cjs-bundle/components/index.js +1 -1
- package/components/AddComment/Popover.js +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/AdvancedSlider/AdvancedSlider.d.ts +45 -18
- package/components/AdvancedSlider/AdvancedSlider.d.ts.map +1 -1
- package/components/AdvancedSlider/AdvancedSlider.js +1 -1
- package/components/AdvancedSlider/AdvancedSlider.stories.d.ts +11 -0
- package/components/AdvancedSlider/AdvancedSlider.stories.d.ts.map +1 -0
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.d.ts +32 -18
- package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.d.ts.map +1 -1
- package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
- package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.stories.d.ts +9 -0
- package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.stories.d.ts.map +1 -0
- package/components/ColorPickerPalette/ColorPickerPalette.d.ts +23 -3
- package/components/ColorPickerPalette/ColorPickerPalette.d.ts.map +1 -1
- package/components/ColorPickerPalette/ColorPickerPalette.js +1 -1
- package/components/ColorPickerPalette/ColorPickerPalette.stories.d.ts +8 -0
- package/components/ColorPickerPalette/ColorPickerPalette.stories.d.ts.map +1 -0
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts.map +1 -1
- package/components/DocumentViewer/DocumentViewer.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/components/FilesDropzone/FilesDropzone.stories.d.ts +5 -18
- package/components/FilesDropzone/FilesDropzone.stories.d.ts.map +1 -1
- package/components/FilesLoaderV2/FilesLoaderV2.stories.d.ts +5 -43
- package/components/FilesLoaderV2/FilesLoaderV2.stories.d.ts.map +1 -1
- package/components/FilesProcessor/FilesProcessor.stories.d.ts +4 -3
- package/components/FilesProcessor/FilesProcessor.stories.d.ts.map +1 -1
- package/components/GradientManager/GradientManager.stories.d.ts +7 -20
- package/components/GradientManager/GradientManager.stories.d.ts.map +1 -1
- package/components/GradientManager/GradientManagerWithStorage/GradientManagerWithStorage.stories.d.ts +7 -19
- package/components/GradientManager/GradientManagerWithStorage/GradientManagerWithStorage.stories.d.ts.map +1 -1
- package/components/GradientPicker/GradientPicker.d.ts +2 -2
- package/components/GradientPicker/GradientPicker.d.ts.map +1 -1
- package/components/GradientPicker/GradientPicker.js +1 -1
- package/components/GradientPicker/GradientPicker.stories.d.ts +7 -34
- package/components/GradientPicker/GradientPicker.stories.d.ts.map +1 -1
- package/components/Hint/Hint.stories.d.ts.map +1 -1
- package/components/IconButton/IconButton.stories.d.ts +11 -0
- package/components/IconButton/IconButton.stories.d.ts.map +1 -0
- package/components/IconButton/index.d.ts +18 -54
- package/components/IconButton/index.d.ts.map +1 -1
- package/components/IconButton/index.js +1 -1
- package/components/LoadingIndicator/LoadingIndicator.d.ts +7 -14
- package/components/LoadingIndicator/LoadingIndicator.d.ts.map +1 -1
- package/components/LoadingIndicator/LoadingIndicator.js +1 -1
- package/components/LoadingIndicator/LoadingIndicator.stories.d.ts +9 -0
- package/components/LoadingIndicator/LoadingIndicator.stories.d.ts.map +1 -0
- package/components/LoadingIndicator/types.d.ts +0 -8
- package/components/LoadingIndicator/types.d.ts.map +1 -1
- package/components/LoadingIndicator/types.js +1 -1
- package/components/MiddleTruncatedText/MiddleTruncatedText.d.ts +6 -3
- package/components/MiddleTruncatedText/MiddleTruncatedText.d.ts.map +1 -1
- package/components/MiddleTruncatedText/MiddleTruncatedText.stories.d.ts +9 -0
- package/components/MiddleTruncatedText/MiddleTruncatedText.stories.d.ts.map +1 -0
- package/components/Modal/Modal.stories.d.ts +11 -0
- package/components/Modal/Modal.stories.d.ts.map +1 -0
- package/components/Modal/types.d.ts +22 -4
- package/components/Modal/types.d.ts.map +1 -1
- package/components/NewDocumentViewer/NewDocumentViewer.d.ts +4 -1
- package/components/NewDocumentViewer/NewDocumentViewer.d.ts.map +1 -1
- package/components/NewDocumentViewer/NewDocumentViewer.stories.d.ts +8 -0
- package/components/NewDocumentViewer/NewDocumentViewer.stories.d.ts.map +1 -0
- package/components/Notifications/Notifications.stories.d.ts +10 -0
- package/components/Notifications/Notifications.stories.d.ts.map +1 -0
- package/components/Notifications/NotificationsContainer.d.ts +1 -0
- package/components/Notifications/NotificationsContainer.d.ts.map +1 -1
- package/components/Notifications/NotificationsContainer.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
- package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
- package/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/components/Popover/Popover.d.ts +34 -1
- package/components/Popover/Popover.d.ts.map +1 -1
- package/components/Popover/Popover.js +1 -1
- package/components/Popover/Popover.stories.d.ts +8 -0
- package/components/Popover/Popover.stories.d.ts.map +1 -0
- package/components/Popper/Popper.d.ts +20 -1
- package/components/Popper/Popper.d.ts.map +1 -1
- package/components/Popper/Popper.js +1 -1
- package/components/Popper/Popper.stories.d.ts +8 -0
- package/components/Popper/Popper.stories.d.ts.map +1 -0
- package/components/RangeSlider/RangeSlider.d.ts +44 -41
- package/components/RangeSlider/RangeSlider.d.ts.map +1 -1
- package/components/RangeSlider/RangeSlider.js +1 -1
- package/components/RangeSlider/RangeSlider.stories.d.ts +11 -0
- package/components/RangeSlider/RangeSlider.stories.d.ts.map +1 -0
- package/components/RangeSlider/constants.d.ts +24 -18
- package/components/RangeSlider/constants.d.ts.map +1 -1
- package/components/RangeSlider/constants.js +1 -1
- package/components/Search/components/RecentSearches.d.ts +20 -12
- package/components/Search/components/RecentSearches.d.ts.map +1 -1
- package/components/Search/components/RecentSearches.js +1 -1
- package/components/Search/components/RecentSearches.stories.d.ts +9 -0
- package/components/Search/components/RecentSearches.stories.d.ts.map +1 -0
- package/components/Select/Select.stories.d.ts +10 -0
- package/components/Select/Select.stories.d.ts.map +1 -0
- package/components/Select/index.d.ts +1 -11
- package/components/Select/index.d.ts.map +1 -1
- package/components/Select/index.js +1 -1
- package/components/Select/types.d.ts +14 -2
- package/components/Select/types.d.ts.map +1 -1
- package/components/SettingEditors/RadioEditor/RadioEditor.stories.d.ts +8 -0
- package/components/SettingEditors/RadioEditor/RadioEditor.stories.d.ts.map +1 -0
- package/components/SettingEditors/RadioEditor/index.d.ts +10 -26
- package/components/SettingEditors/RadioEditor/index.d.ts.map +1 -1
- package/components/SettingEditors/RadioEditor/index.js +1 -1
- package/components/Stepper/Step/Step.d.ts.map +1 -1
- package/components/Stepper/Stepper.d.ts +1 -1
- package/components/Stepper/Stepper.d.ts.map +1 -1
- package/components/Stepper/Stepper.stories.d.ts +9 -36
- package/components/Stepper/Stepper.stories.d.ts.map +1 -1
- package/components/SwitchControl/SwitchControl.stories.d.ts +8 -0
- package/components/SwitchControl/SwitchControl.stories.d.ts.map +1 -0
- package/components/Table/Table/Table.d.ts +10 -0
- package/components/Table/Table/Table.d.ts.map +1 -0
- package/components/Table/Table/index.d.ts +2 -0
- package/components/Table/Table/index.d.ts.map +1 -0
- package/components/Table/Table.stories.d.ts +10 -0
- package/components/Table/Table.stories.d.ts.map +1 -0
- package/components/Table/TableBody/TableBody.d.ts +2 -0
- package/components/Table/TableBody/TableBody.d.ts.map +1 -0
- package/components/Table/TableBody/index.d.ts +2 -0
- package/components/Table/TableBody/index.d.ts.map +1 -0
- package/components/Table/TableCell/TableCell.d.ts +29 -13
- package/components/Table/TableCell/TableCell.d.ts.map +1 -1
- package/components/Table/TableCell/TableCell.js +1 -1
- package/components/Table/TableCell/TableCell.stories.d.ts +9 -0
- package/components/Table/TableCell/TableCell.stories.d.ts.map +1 -0
- package/components/Table/TableContainer/TableContainer.d.ts +9 -1
- package/components/Table/TableContainer/TableContainer.d.ts.map +1 -1
- package/components/Table/TableContainer/TableContainer.js +1 -1
- package/components/Table/TableHead/TableHead.d.ts +2 -0
- package/components/Table/TableHead/TableHead.d.ts.map +1 -0
- package/components/Table/TableHead/index.d.ts +2 -0
- package/components/Table/TableHead/index.d.ts.map +1 -0
- package/components/Table/TablePagination/TablePagination.stories.d.ts +9 -0
- package/components/Table/TablePagination/TablePagination.stories.d.ts.map +1 -0
- package/components/Table/TableRow/TableRow.d.ts +2 -0
- package/components/Table/TableRow/TableRow.d.ts.map +1 -0
- package/components/Table/TableRow/index.d.ts +2 -0
- package/components/Table/TableRow/index.d.ts.map +1 -0
- package/components/Table/TableSortLabel/TableSortLabel.d.ts +13 -1
- package/components/Table/TableSortLabel/TableSortLabel.d.ts.map +1 -1
- package/components/Table/TableSortLabel/TableSortLabel.js +1 -1
- package/components/Table/TableSortLabel/TableSortLabel.stories.d.ts +8 -0
- package/components/Table/TableSortLabel/TableSortLabel.stories.d.ts.map +1 -0
- package/components/Table/TableToolbar/TableToolbar.d.ts +9 -23
- package/components/Table/TableToolbar/TableToolbar.d.ts.map +1 -1
- package/components/Table/TableToolbar/TableToolbar.js +1 -1
- package/components/Table/TableToolbar/TableToolbar.stories.d.ts +10 -0
- package/components/Table/TableToolbar/TableToolbar.stories.d.ts.map +1 -0
- package/components/Table/index.d.ts +4 -0
- package/components/Tabs/Tab.d.ts +6 -15
- package/components/Tabs/Tab.d.ts.map +1 -1
- package/components/Tabs/Tab.js +1 -1
- package/components/Tabs/Tabs.d.ts +8 -14
- package/components/Tabs/Tabs.d.ts.map +1 -1
- package/components/Tabs/Tabs.js +1 -1
- package/components/Tabs/Tabs.stories.d.ts +11 -0
- package/components/Tabs/Tabs.stories.d.ts.map +1 -0
- package/components/TextField/TextField.stories.d.ts +12 -0
- package/components/TextField/TextField.stories.d.ts.map +1 -0
- package/components/TextField/index.d.ts +5 -4
- package/components/TextField/index.d.ts.map +1 -1
- package/components/TextField/index.js +1 -1
- package/components/TextLink/TextLink.stories.d.ts +9 -0
- package/components/TextLink/TextLink.stories.d.ts.map +1 -0
- package/components/TextLink/index.d.ts +20 -35
- package/components/TextLink/index.d.ts.map +1 -1
- package/components/TextLink/index.js +1 -1
- package/components/Toaster/Toaster.d.ts +1 -0
- package/components/Toaster/Toaster.d.ts.map +1 -1
- package/components/Toaster/Toaster.js +1 -1
- package/components/Toaster/Toaster.stories.d.ts +8 -0
- package/components/Toaster/Toaster.stories.d.ts.map +1 -0
- package/components/Tooltip/ScrollableTooltip.d.ts.map +1 -1
- package/components/Tooltip/Tooltip.d.ts +71 -4
- package/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/components/Tooltip/Tooltip.stories.d.ts +11 -0
- package/components/Tooltip/Tooltip.stories.d.ts.map +1 -0
- package/components/TruncatedText/TruncatedText.stories.d.ts +9 -0
- package/components/TruncatedText/TruncatedText.stories.d.ts.map +1 -0
- package/components/TruncatedText/index.d.ts +10 -23
- package/components/TruncatedText/index.d.ts.map +1 -1
- package/components/TruncatedText/index.js +1 -1
- package/components/Typography.d.ts +10 -9
- package/components/Typography.d.ts.map +1 -1
- package/components/Typography.stories.d.ts +8 -0
- package/components/Typography.stories.d.ts.map +1 -0
- package/components/VirtualizedTable/VirtualizedTable.d.ts +9 -261
- package/components/VirtualizedTable/VirtualizedTable.d.ts.map +1 -1
- package/components/VirtualizedTable/VirtualizedTable.js +1 -1
- package/components/VirtualizedTable/VirtualizedTable.stories.d.ts +9 -0
- package/components/VirtualizedTable/VirtualizedTable.stories.d.ts.map +1 -0
- package/components/VirtualizedTable/index.d.ts +43 -60
- package/components/VirtualizedTable/index.d.ts.map +1 -1
- package/components/VirtualizedTable/index.js +1 -1
- package/components/index.js +1 -1
- package/package.json +1 -1
- package/storyBookHelpers/components.d.ts +2 -1
- package/storyBookHelpers/components.d.ts.map +1 -1
- package/storyBookHelpers/utils.d.ts +3 -2
- package/storyBookHelpers/utils.d.ts.map +1 -1
- package/components/AdvancedSlider/chartOptions.d.ts +0 -39
- package/components/AdvancedSlider/chartOptions.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from
|
|
1
|
+
import{__rest as o,__assign as s}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as i,jsx as t}from"react/jsx-runtime";import{useState as c}from"react";import{makeStyles as e,TableCell as n}from"@material-ui/core";import l from"classnames";import r from"../../IconButton/index.js";import{Tooltip as m}from"../../Tooltip/Tooltip.js";import"../../Tooltip/ScrollableTooltip.js";import{LeftIcon as a,RightIcon as p}from"../../../icons/iconParkIcons.js";import"../../../icons/customIcons/icons/AddMessage.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/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";var d=e((function(o){return{stickyCell:{position:"sticky",left:0,zIndex:2,background:o.palette.background.b4},stickyEmptyCell:{position:"sticky",right:0,zIndex:2},collapseHeader:{width:function(o){var s=o.isExpanded,i=o.maxCellWidth,t=o.cellWidth;return s?i:t}},tableCellWrapper:{display:"flex",alignItems:"center",justifyContent:"space-between",width:function(o){var s=o.isExpanded,i=o.maxCellWidth,t=o.cellWidth;return s?i:t}},iconButton:{padding:0,fontSize:16,"&:hover":{backgroundColor:"transparent"}}}})),u=function(e){var u,h=e.isExpanded,C=e.setIsExpanded,I=e.tooltipTitle,j=e.collapsibleHeader,b=e.collapsibleBody,x=e.maxCellWidth,k=e.cellWidth,f=e.maxCharsNumberFromStart,y=e.maxCharsNumberFromEnd,E=e.children,W=e.stickyCell,g=e.emptyCell,F=e.className,v=o(e,["isExpanded","setIsExpanded","tooltipTitle","collapsibleHeader","collapsibleBody","maxCellWidth","cellWidth","maxCharsNumberFromStart","maxCharsNumberFromEnd","children","stickyCell","emptyCell","className"]),N=W&&!g,T=d({isExpanded:h,cellWidth:k,maxCellWidth:x}),S=c(!1),z=S[0],B=S[1];return i(n,s({},v,{className:l(j&&T.collapseHeader,N&&T.stickyCell,g&&T.stickyEmptyCell,N&&"stickyCell",g&&"stickyEmptyCell",F)},{children:[j&&i("div",s({className:T.tableCellWrapper},{children:[E,t(r,s({className:T.iconButton,size:"small",onClick:function(){B(!1),C(!h)},tooltipProps:{title:h?"Collapse":"Expand",open:z,disableHoverListener:!0,onMouseEnter:function(){return B(!0)},onMouseLeave:function(){return B(!1)}}},{children:t(h?a:p,{size:16})}))]})),b&&t(m,s({title:h?"":I},{children:t("div",{children:h?E:(u=I,u.length>f+y?"".concat(u.substring(0,f)," ... ").concat(u.substring(u.length-y)):u)})})),!j&&!b&&E]}))};export{u as TableCell};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { TableCell } from './TableCell';
|
|
4
|
+
declare type Props = ComponentProps<typeof TableCell>;
|
|
5
|
+
declare const meta: Meta<Props>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Default: (props: Props) => JSX.Element;
|
|
8
|
+
export declare const CollapsibleContent: () => JSX.Element;
|
|
9
|
+
//# sourceMappingURL=TableCell.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCell.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableCell/TableCell.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,aAAK,KAAK,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;AAE9C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAgBF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAA6B,CAAC;AAElE,eAAO,MAAM,kBAAkB,mBA0B9B,CAAC"}
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TableContainerProps as MUITableContainerProps } from '@material-ui/core';
|
|
3
|
+
export declare type TableContainerProps = {
|
|
4
|
+
stickyHeader?: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
stickyColumn?: boolean;
|
|
7
|
+
classes?: Record<string, string>;
|
|
8
|
+
} & Omit<MUITableContainerProps, 'classes' | 'className'>;
|
|
9
|
+
export declare const TableContainer: import("react").ForwardRefExoticComponent<Pick<TableContainerProps, "children" | "className" | "onClick" | "slot" | "style" | "title" | "tabIndex" | "role" | "id" | "classes" | "color" | "translate" | "hidden" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "innerRef" | "stickyHeader" | "stickyColumn"> & import("react").RefAttributes<HTMLTableElement>>;
|
|
2
10
|
//# sourceMappingURL=TableContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableContainer/TableContainer.
|
|
1
|
+
{"version":3,"file":"TableContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableContainer/TableContainer.tsx"],"names":[],"mappings":";AAEA,OAAO,EAGL,mBAAmB,IAAI,sBAAsB,EAC9C,MAAM,mBAAmB,CAAC;AAqD3B,oBAAY,mBAAmB,GAAG;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC,GAAG,IAAI,CAAC,sBAAsB,EAAE,SAAS,GAAG,WAAW,CAAC,CAAC;AAE1D,eAAO,MAAM,cAAc,yqJAkEzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t
|
|
1
|
+
import{__rest as t,__assign as o}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import{forwardRef as r,useState as a}from"react";import i from"classnames";import{makeStyles as l,TableContainer as n}from"@material-ui/core";var c="top",s="right",b="bottom",u="left",d="both",m=l((function(t){return{root:function(o){return{borderTop:o.isStickyHeader?"1px solid ".concat(t.palette.primary.text9):"none","& .MuiTable-root .MuiTableHead-root .MuiTableRow-head":{position:(o.top||o.bothVertical)&&"sticky",zIndex:2,top:0,boxShadow:(o.top||o.bothVertical)&&"0px 16px 10px ".concat(t.palette.background.b4)},"& .MuiTable-root .MuiTableFooter-root":{"&:before":{content:(o.bottom||o.bothVertical)&&"no-open-quote",position:"absolute",bottom:-1,width:"inherit",height:"16px",background:"linear-gradient(360deg, rgba(44, 44, 44, 0) 0%, ".concat(t.palette.background.b4," 100%)"),transform:"matrix(1, 0, 0, -1, 0, 0)"}},"& .MuiTable-root .MuiTableHead-root .MuiTableRow-head .stickyCell, & .MuiTable-root .MuiTableBody-root .MuiTableRow-root .stickyCell":{"&:after":{content:(o.left||o.bothHorizontal)&&"no-open-quote",position:"absolute",top:0,right:"-16px",width:"16px",height:"100%",background:"linear-gradient(270deg, rgba(44, 44, 44, 0) 0%, ".concat(t.palette.background.b4," 100%)")}},"& .MuiTable-root .MuiTableHead-root .MuiTableRow-head .stickyEmptyCell, & .MuiTable-root .MuiTableBody-root .MuiTableRow-root .stickyEmptyCell":{background:(o.right||o.bothHorizontal)&&"linear-gradient(90deg, rgba(44, 44, 44, 0) 0%, ".concat(t.palette.background.b4," 100%)")}}}}})),p=r((function(r,l){var p=r.stickyHeader,g=r.className,h=r.stickyColumn,T=r.classes,f=t(r,["stickyHeader","className","stickyColumn","classes"]),k=a(p?b:""),M=k[0],y=k[1],x=a(h?s:""),H=x[0],P=x[1],w=m({top:M===c,bottom:M===b,bothVertical:M===d,left:H===u,right:H===s,bothHorizontal:H===d,isStickyHeader:p}),C=function(t){var o=t.scroll,e=t.clientParam,r=t.scrollParam,a=t.setScrollPosition,i=t.gradientPositions;0===o?a(i[0]):Math.ceil(o)+e===r?a(i[1]):a(d)};return e(n,o({onScroll:function(t){p?C({scroll:t.currentTarget.scrollTop,clientParam:t.currentTarget.clientHeight,scrollParam:t.currentTarget.scrollHeight,setScrollPosition:y,gradientPositions:[b,c]}):h&&C({scroll:t.currentTarget.scrollLeft,clientParam:t.currentTarget.clientWidth,scrollParam:t.currentTarget.scrollWidth,setScrollPosition:P,gradientPositions:[s,u]})},className:i(w.root,g,null==T?void 0:T.root),ref:l},f))}));export{p as TableContainer};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableHead.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableHead/TableHead.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableHead/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { TablePagination } from './TablePagination';
|
|
4
|
+
declare type Props = ComponentProps<typeof TablePagination>;
|
|
5
|
+
declare const meta: Meta<Props>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Default: (props: Props) => JSX.Element;
|
|
8
|
+
export declare const WithoutRowsPerPageControl: () => JSX.Element;
|
|
9
|
+
//# sourceMappingURL=TablePagination.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TablePagination.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TablePagination/TablePagination.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,aAAK,KAAK,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,CAAC;AAEpD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAqBF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAAmC,CAAC;AAExE,eAAO,MAAM,yBAAyB,mBAQrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableRow.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableRow/TableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableRow/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TableSortLabelProps as MUITableSortLabelProps } from '@material-ui/core';
|
|
3
|
+
export declare type TableSortLabelProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Shows an arrow indicating sort direction
|
|
6
|
+
*/
|
|
7
|
+
active?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Click handler
|
|
10
|
+
*/
|
|
11
|
+
onClick?: MUITableSortLabelProps['onClick'];
|
|
12
|
+
} & Omit<MUITableSortLabelProps, 'IconComponent' | 'active' | 'onClick'>;
|
|
13
|
+
declare const TableSortLabel: (props: TableSortLabelProps) => JSX.Element;
|
|
1
14
|
export default TableSortLabel;
|
|
2
|
-
declare function TableSortLabel(props: any): JSX.Element;
|
|
3
15
|
//# sourceMappingURL=TableSortLabel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableSortLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableSortLabel/TableSortLabel.
|
|
1
|
+
{"version":3,"file":"TableSortLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableSortLabel/TableSortLabel.tsx"],"names":[],"mappings":";AAAA,OAAO,EAEL,mBAAmB,IAAI,sBAAsB,EAE9C,MAAM,mBAAmB,CAAC;AAI3B,oBAAY,mBAAmB,GAAG;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,sBAAsB,CAAC,SAAS,CAAC,CAAC;CAC7C,GAAG,IAAI,CAAC,sBAAsB,EAAE,eAAe,GAAG,QAAQ,GAAG,SAAS,CAAC,CAAC;AAEzE,QAAA,MAAM,cAAc,UAAW,mBAAmB,gBAOjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"
|
|
1
|
+
import{__assign as o}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as s}from"react/jsx-runtime";import{Tooltip as c,TableSortLabel as i}from"@material-ui/core";import{DownSmallIcon as n}from"../../../icons/iconParkIcons.js";import"../../../icons/customIcons/icons/AddMessage.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/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";var t=function(t){return s(c,o({placement:"top-end",title:"Sort"},{children:s(i,o({},t,{IconComponent:function(c){return s(n,o({},c,{size:16}))}}))}))};export{t as default};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import TableSortLabel from './TableSortLabel';
|
|
4
|
+
declare type Props = ComponentProps<typeof TableSortLabel>;
|
|
5
|
+
declare const meta: Meta<Props>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Default: (props: Props) => JSX.Element;
|
|
8
|
+
//# sourceMappingURL=TableSortLabel.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableSortLabel.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableSortLabel/TableSortLabel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,aAAK,KAAK,GAAG,cAAc,CAAC,OAAO,cAAc,CAAC,CAAC;AAEnD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAmBF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAAkC,CAAC"}
|
|
@@ -1,25 +1,11 @@
|
|
|
1
|
+
import { ToolbarProps } from '@material-ui/core';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export declare type TableToolbarProps = {
|
|
4
|
+
numSelected?: number;
|
|
5
|
+
actions?: ReactNode;
|
|
6
|
+
content?: ReactNode;
|
|
7
|
+
classes?: Record<string, string>;
|
|
8
|
+
} & Omit<ToolbarProps, 'children' | 'classes'>;
|
|
9
|
+
declare const TableToolbar: ({ numSelected, actions, content, classes, ...ToolbarProps }: TableToolbarProps) => JSX.Element;
|
|
1
10
|
export default TableToolbar;
|
|
2
|
-
declare function TableToolbar({ numSelected, actions, content, classes, ...ToolbarProps }: {
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
numSelected: any;
|
|
5
|
-
actions: any;
|
|
6
|
-
content: any;
|
|
7
|
-
classes: any;
|
|
8
|
-
}): JSX.Element;
|
|
9
|
-
declare namespace TableToolbar {
|
|
10
|
-
namespace propTypes {
|
|
11
|
-
const numSelected: PropTypes.Requireable<number>;
|
|
12
|
-
const actions: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
13
|
-
const content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
14
|
-
}
|
|
15
|
-
namespace defaultProps {
|
|
16
|
-
const numSelected_1: PropTypes.Requireable<number>;
|
|
17
|
-
export { numSelected_1 as numSelected };
|
|
18
|
-
const actions_1: any;
|
|
19
|
-
export { actions_1 as actions };
|
|
20
|
-
const content_1: any;
|
|
21
|
-
export { content_1 as content };
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
import PropTypes from "prop-types";
|
|
25
11
|
//# sourceMappingURL=TableToolbar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableToolbar.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableToolbar/TableToolbar.
|
|
1
|
+
{"version":3,"file":"TableToolbar.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableToolbar/TableToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAmBlC,oBAAY,iBAAiB,GAAG;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC,GAAG,IAAI,CAAC,YAAY,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC;AAE/C,QAAA,MAAM,YAAY,gEAMf,iBAAiB,gBAqBnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{__rest as e,__assign as t}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as l,jsxs as i,Fragment as o}from"react/jsx-runtime";import{makeStyles as n,Toolbar as r}from"@material-ui/core";import s from"classnames";var a=n({root:{"&.MuiToolbar-gutters":{paddingLeft:8,paddingRight:8}},highlight:{display:"flex",justifyContent:"space-between",backgroundColor:"rgba(3, 188, 212, 0.2)"},numSelected:{fontSize:14}}),c=function(n){var c,d=n.numSelected,m=void 0===d?null:d,u=n.actions,h=void 0===u?null:u,f=n.content,g=void 0===f?null:f,p=n.classes,v=e(n,["numSelected","actions","content","classes"]),b=a();return l(r,t({classes:p,className:s(b.root,null==p?void 0:p.root,(c={},c[b.highlight]=m>0,c))},v,{children:m>0?i(o,{children:[i("div",t({className:b.numSelected},{children:[m," selected"]})),l("div",{children:h})]}):l(o,{children:g})}))};export{c as default};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import TableToolbar from './TableToolbar';
|
|
4
|
+
declare type Props = ComponentProps<typeof TableToolbar>;
|
|
5
|
+
declare const meta: Meta<Props>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Default: (props: Props) => JSX.Element;
|
|
8
|
+
export declare const Sizes: () => JSX.Element;
|
|
9
|
+
export declare const WithActions: () => JSX.Element;
|
|
10
|
+
//# sourceMappingURL=TableToolbar.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableToolbar.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableToolbar/TableToolbar.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAI1C,aAAK,KAAK,GAAG,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC;AAEjD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAcF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAAgC,CAAC;AAErE,eAAO,MAAM,KAAK,mBAKjB,CAAC;AAQF,eAAO,MAAM,WAAW,mBAcvB,CAAC"}
|
|
@@ -4,4 +4,8 @@ export { TableContainer } from "./TableContainer/TableContainer";
|
|
|
4
4
|
export { TableCell } from "./TableCell/TableCell";
|
|
5
5
|
export { TablePagination } from "./TablePagination/TablePagination";
|
|
6
6
|
export { TablePaginationActions } from "./TablePaginationActions/TablePaginationActions";
|
|
7
|
+
export { Table } from "./Table";
|
|
8
|
+
export { TableHead } from "./TableHead";
|
|
9
|
+
export { TableBody } from "./TableBody";
|
|
10
|
+
export { TableRow } from "./TableRow";
|
|
7
11
|
//# sourceMappingURL=index.d.ts.map
|
package/components/Tabs/Tab.d.ts
CHANGED
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
8
|
-
DisabledTooltipProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
9
|
-
};
|
|
10
|
-
defaultProps: {
|
|
11
|
-
disabled: boolean;
|
|
12
|
-
DisabledTooltipProps: {};
|
|
13
|
-
};
|
|
14
|
-
}>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TabProps as MuiTabProps, TooltipProps } from '@material-ui/core';
|
|
3
|
+
declare type TabProps = MuiTabProps & {
|
|
4
|
+
DisabledTooltipProps?: Omit<TooltipProps, 'children'>;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("react").MemoExoticComponent<({ DisabledTooltipProps, ...restTabProps }: TabProps) => JSX.Element>;
|
|
15
7
|
export default _default;
|
|
16
|
-
import PropTypes from "prop-types";
|
|
17
8
|
//# sourceMappingURL=Tab.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tab.
|
|
1
|
+
{"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tab.tsx"],"names":[],"mappings":";AACA,OAAO,EAAiB,QAAQ,IAAI,WAAW,EAAW,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAElG,aAAK,QAAQ,GAAG,WAAW,GAAG;IAC5B,oBAAoB,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;CACvD,CAAC;;AAiBF,wBAAyB"}
|
package/components/Tabs/Tab.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e
|
|
1
|
+
import{__rest as r,__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as o}from"react/jsx-runtime";import{memo as t}from"react";import{Tooltip as i,Tab as a}from"@material-ui/core";var l=t((function(t){var l=t.DisabledTooltipProps,s=r(t,["DisabledTooltipProps"]);return s.disabled?o(i,e({title:"Disabled",placement:"top"},l,{children:o("span",{children:o(a,e({},s))})})):o(a,e({},s))}));export{l as default};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TabsProps as MuiTabsProps } from '@material-ui/core';
|
|
3
|
-
import
|
|
4
|
-
|
|
2
|
+
import { ChangeEvent, ReactNode } from 'react';
|
|
3
|
+
export declare type TabsProps = Omit<MuiTabsProps, 'type' | 'TabIndicatorProps' | 'onChange' | 'children'> & {
|
|
4
|
+
/**
|
|
5
|
+
* Contents of the component, for instance - `<Tab/>`s
|
|
6
|
+
*/
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
onChange?: (event: ChangeEvent, value: any) => void;
|
|
5
9
|
compact?: boolean;
|
|
6
10
|
type?: 'default' | 'filled' | 'filledTab';
|
|
7
11
|
TabIndicatorProps?: Partial<React.HTMLAttributes<HTMLDivElement>> & {
|
|
@@ -9,17 +13,7 @@ interface TabsProps extends Omit<MuiTabsProps, 'type' | 'TabIndicatorProps'> {
|
|
|
9
13
|
root: string;
|
|
10
14
|
};
|
|
11
15
|
};
|
|
12
|
-
}
|
|
13
|
-
declare const Tabs: {
|
|
14
|
-
({ compact, type, ...TabsProps }: TabsProps): JSX.Element;
|
|
15
|
-
propTypes: {
|
|
16
|
-
type: PropTypes.Requireable<string>;
|
|
17
|
-
compact: PropTypes.Requireable<boolean>;
|
|
18
|
-
};
|
|
19
|
-
defaultProps: {
|
|
20
|
-
type: string;
|
|
21
|
-
compact: boolean;
|
|
22
|
-
};
|
|
23
16
|
};
|
|
17
|
+
declare const Tabs: ({ compact, type, ...TabsProps }: TabsProps) => JSX.Element;
|
|
24
18
|
export default Tabs;
|
|
25
19
|
//# sourceMappingURL=Tabs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,SAAS,IAAI,YAAY,EAAS,MAAM,mBAAmB,CAAC;AAElG,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAiK/C,oBAAY,SAAS,GAAG,IAAI,CAC1B,YAAY,EACZ,MAAM,GAAG,mBAAmB,GAAG,UAAU,GAAG,UAAU,CACvD,GAAG;IACF;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACpD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,WAAW,CAAC;IAC1C,iBAAiB,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,GAAG;QAClE,OAAO,EAAE;YACP,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;KACH,CAAC;CACH,CAAC;AAEF,QAAA,MAAM,IAAI,kDAAqE,WA2B9E,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
package/components/Tabs/Tabs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as t,__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as r}from"react/jsx-runtime";import{makeStyles as
|
|
1
|
+
import{__rest as t,__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as r}from"react/jsx-runtime";import{makeStyles as i,Tabs as a}from"@material-ui/core";import e from"classnames";var n=i((function(t){return{root:{"& .MuiTab-root":{minHeight:40,paddingLeft:16,paddingRight:16,borderRadius:8,minWidth:0,fontSize:16,marginRight:8,"&.Mui-disabled":{opacity:.4,color:t.palette.primary.text6}},"& .MuiTab-wrapper":{flexDirection:"row",justifyContent:"initial"},"& .MuiTab-wrapper > .i-icon":{marginBottom:"0px !important",marginRight:8},"&.MuiTabs-vertical":{"& .MuiTab-root":{marginRight:0,minHeight:"unset","&:not(:last-child)":{marginBottom:8}}}},rootCompact:{height:32,minHeight:"32px !important","& .MuiTab-root":{minWidth:0,fontSize:16,padding:"6px 10px",height:32,minHeight:"32px !important"},"&.MuiTabs-vertical":{height:"unset",minHeight:"unset"},"& .MuiTab-wrapper > .i-icon, & .MuiTab-wrapper > .i-icon > svg":{width:20,height:20}},root_filled:{minHeight:40,backgroundColor:t.palette.background.b9,boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.2)","& .MuiTab-root":{color:t.palette.primary.text6,"&.Mui-selected":{color:t.palette.primary.main,"&:hover":{color:t.palette.primary.main}},"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.05)",color:t.palette.primary.contrastText,opacity:1}}},root_default:{minHeight:40,"& .MuiTab-root":{color:t.palette.primary.text6,minHeight:40,opacity:1,textTransform:"none","&.Mui-selected":{color:t.palette.primary.main,"&:hover":{color:t.palette.primary.main,backgroundColor:"transparent"}},"&:hover":{color:t.palette.primary.contrastText,backgroundColor:"rgba(255, 255, 255, 0.08)"}}},root_filledTab:{minHeight:40,"& .MuiTab-root":{color:t.palette.primary.text6,fontSize:16,minHeight:40,opacity:1,textTransform:"none","&.Mui-selected":{color:t.palette.primary.main,backgroundColor:"rgba(3, 188, 212, 0.10)","&:hover":{color:t.palette.primary.main,backgroundColor:"rgba(3, 188, 212, 0.10)"}},"&:hover":{color:t.palette.primary.contrastText,backgroundColor:"rgba(255, 255, 255, 0.08)"},"&.Mui-disabled":{color:t.palette.primary.text9}}},tabIndicatorRoot:{height:4,borderRadius:4},tabIndicatorFilledTab:{display:"none"},scrollButtonsRoot:{backgroundColor:t.palette.background.b9,height:40,zIndex:1,"&:first-of-type":{"&::after":{background:"linear-gradient(to right, rgba(60, 59, 59, 0.8) 39.13%, rgba(58, 58, 58, 0) 100%)",content:'""',display:"block",height:"100%",left:40,position:"absolute",width:16,zIndex:1}},"&:last-of-type":{"&::before":{background:"linear-gradient(to left, rgba(60, 59, 59, 0.8) 39.13%, rgba(58, 58, 58, 0) 100%)",content:'""',display:"block",height:"100%",position:"absolute",right:40,width:16,zIndex:1}},"& .MuiSvgIcon-root":{color:t.palette.primary.text6}}}})),l=function(i){var l,p,c,d=i.compact,s=void 0!==d&&d,m=i.type,b=void 0===m?"default":m,g=t(i,["compact","type"]),u=n(),h=g.classes,y=g.TabIndicatorProps;return r(a,o({},g,{classes:o(o({},h),{root:e(null==h?void 0:h.root,u.root,u["root_".concat(b)],(l={},l[u.rootCompact]=s,l)),scrollButtons:e(null==h?void 0:h.scrollButtons,u.scrollButtonsRoot)}),indicatorColor:"primary",TabIndicatorProps:o(o({},y),{classes:{root:e(null===(c=null==y?void 0:y.classes)||void 0===c?void 0:c.root,u.tabIndicatorRoot,(p={},p[u.tabIndicatorFilledTab]="filledTab"===b,p))}})}))};export{l as default};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import Tabs from './Tabs';
|
|
4
|
+
declare type Props = ComponentProps<typeof Tabs>;
|
|
5
|
+
declare const meta: Meta<Props>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Default: (props: Props) => JSX.Element;
|
|
8
|
+
export declare const TabsWithValue: () => JSX.Element;
|
|
9
|
+
export declare const WithDisabledTabs: () => JSX.Element;
|
|
10
|
+
export declare const VerticalTabs: () => JSX.Element;
|
|
11
|
+
//# sourceMappingURL=Tabs.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAEjD,OAAO,IAAI,MAAM,QAAQ,CAAC;AAG1B,aAAK,KAAK,GAAG,cAAc,CAAC,OAAO,IAAI,CAAC,CAAC;AAEzC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAcF,eAAe,IAAI,CAAC;AAyBpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAgBnC,CAAC;AAEF,eAAO,MAAM,aAAa,mBAczB,CAAC;AAMF,eAAO,MAAM,gBAAgB,mBA+B5B,CAAC;AAMF,eAAO,MAAM,YAAY,mBAWxB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import TextField from './index';
|
|
4
|
+
declare type Props = ComponentProps<typeof TextField>;
|
|
5
|
+
declare const meta: Meta<Props>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Default: (props: Props) => JSX.Element;
|
|
8
|
+
export declare const Sizes: () => JSX.Element;
|
|
9
|
+
export declare const WithLabelAndPlaceholder: () => JSX.Element;
|
|
10
|
+
export declare const ErrorState: () => JSX.Element;
|
|
11
|
+
export declare const PrefixesAndSuffixes: () => JSX.Element;
|
|
12
|
+
//# sourceMappingURL=TextField.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextField.stories.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAEjD,OAAO,SAAS,MAAM,SAAS,CAAC;AAGhC,aAAK,KAAK,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;AAE9C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAkBF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAA6B,CAAC;AAElE,eAAO,MAAM,KAAK,mBAKjB,CAAC;AAQF,eAAO,MAAM,uBAAuB,mBAKnC,CAAC;AAOF,eAAO,MAAM,UAAU,mBAYtB,CAAC;AAMF,eAAO,MAAM,mBAAmB,mBA6B/B,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import { ChangeEventHandler, FC, FocusEventHandler } from 'react';
|
|
2
2
|
import { TextFieldProps as MuiTextFieldProps } from '@material-ui/core';
|
|
3
|
-
declare type TextFieldProps = MuiTextFieldProps & {
|
|
3
|
+
declare type TextFieldProps = Omit<MuiTextFieldProps, 'value' | 'startIcon' | 'endIcon' | 'InputProps' | 'InputLabelProps' | 'onFocus' | 'onBlur' | 'endAdornment' | 'startAdornment' | 'onChange' | 'classes'> & {
|
|
4
4
|
value: string | number | null | undefined;
|
|
5
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
5
6
|
startIcon?: React.ReactNode;
|
|
6
7
|
endIcon?: React.ReactNode;
|
|
7
8
|
InputProps?: MuiTextFieldProps['InputProps'] & {
|
|
@@ -10,8 +11,8 @@ declare type TextFieldProps = MuiTextFieldProps & {
|
|
|
10
11
|
InputLabelProps?: MuiTextFieldProps['InputLabelProps'] & {
|
|
11
12
|
startAdornment?: React.ReactNode;
|
|
12
13
|
};
|
|
13
|
-
onFocus?:
|
|
14
|
-
onBlur?:
|
|
14
|
+
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
15
|
+
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
15
16
|
endAdornment?: React.ReactNode;
|
|
16
17
|
startAdornment?: React.ReactNode;
|
|
17
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,EAIL,cAAc,IAAI,iBAAiB,EACpC,MAAM,mBAAmB,CAAC;AAmD3B,aAAK,cAAc,GAAG,IAAI,CACxB,iBAAiB,EACf,OAAO,GACP,WAAW,GACX,SAAS,GACT,YAAY,GACZ,iBAAiB,GACjB,SAAS,GACT,QAAQ,GACR,cAAc,GACd,gBAAgB,GAChB,UAAU,GACV,SAAS,CACZ,GAAG;IACF,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,QAAQ,CAAC,EAAE,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;IAChD,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,iBAAiB,CAAC,YAAY,CAAC,GAAG;QAAE,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE,CAAC;IACpF,eAAe,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,GAAG;QAAE,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE,CAAC;IAC9F,OAAO,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IAC9C,MAAM,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IAC7C,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAClC,CAAC;AAEF,QAAA,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAgEjC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as t,__assign as
|
|
1
|
+
import{__rest as t,__assign as n}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as o}from"react/jsx-runtime";import{makeStyles as r,TextField as e,InputAdornment as i}from"@material-ui/core";import{useCustomShrink as a}from"./effects/index.js";import s from"../../config/theme/palette.mjs.js";var u=r((function(t){return{textField:{marginTop:16,marginBottom:8,"& .MuiFormLabel-root":{marginLeft:function(t){return t.startLabelOffset?"".concat(t.startLabelOffset+8,"px"):0},marginRight:function(t){return t.endLabelOffset?"".concat(t.endLabelOffset+8,"px"):0}},"&:hover":{"&.MuiTextField-root .MuiInput-root":{"& .MuiInputAdornment-root svg.MuiSvgIcon-root":{fill:s.primary.contrastText}}},"&.MuiTextField-root .MuiInput-root":{"& .MuiInputAdornment-root svg.MuiSvgIcon-root":{width:16,height:16,fontSize:16,fill:"#DADADA"},"&.Mui-error .MuiInputAdornment-root svg.MuiSvgIcon-root":{fill:"".concat(t.palette.error.main," !important")}},"& .Mui-focused .MuiInputAdornment-root svg.MuiSvgIcon-root":{fill:"".concat(t.palette.primary.main," !important")}},shrunkLabel:{"&.MuiInputLabel-shrink.MuiFormLabel-root":{marginLeft:0}}}})),l=function(r){var s=r.startIcon,l=r.endIcon,f=r.onFocus,m=r.onBlur,p=r.InputProps,d=r.value,c=void 0===d?"":d,I=r.startAdornment,v=r.endAdornment,b=t(r,["startIcon","endIcon","onFocus","onBlur","InputProps","value","startAdornment","endAdornment"]),L=a({startIcon:s,endIcon:l,onFocus:f,onBlur:m,value:c,InputProps:p}),M=L.shrink,g=L.onInputFocus,A=L.onInputBlur,h=L.startLabelOffset,F=L.endLabelOffset,x=L.startAdornmentRef,O=L.endAdornmentRef,P=u({startLabelOffset:h,endLabelOffset:F});return o(e,n({},b,{variant:b.variant,onFocus:g,onBlur:A,value:c,classes:{root:P.textField},InputLabelProps:n({shrink:M,classes:{shrink:P.shrunkLabel}},r.InputLabelProps),InputProps:n({startAdornment:s?o(i,n({position:"start",ref:x},{children:s})):I,endAdornment:l?o(i,n({position:"end",ref:O},{children:l})):v},r.InputProps)}))};export{l as default};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import TextLink from './index';
|
|
4
|
+
declare type Props = ComponentProps<typeof TextLink>;
|
|
5
|
+
declare const meta: Meta<Props>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Default: (props: Props) => JSX.Element;
|
|
8
|
+
export declare const WithTooltip: () => JSX.Element;
|
|
9
|
+
//# sourceMappingURL=TextLink.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextLink.stories.d.ts","sourceRoot":"","sources":["../../../src/components/TextLink/TextLink.stories.tsx"],"names":[],"mappings":"AAgEA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,QAAQ,MAAM,SAAS,CAAC;AAE/B,aAAK,KAAK,GAAG,cAAc,CAAC,OAAO,QAAQ,CAAC,CAAC;AAE7C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAiBF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAA4B,CAAC;AAEjE,eAAO,MAAM,WAAW,mBAmBvB,CAAC"}
|
|
@@ -1,39 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
declare type TextLinkProps =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { TooltipProps } from '@material-ui/core';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
declare type TextLinkProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Component's content
|
|
6
|
+
*/
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
href: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
color?: string;
|
|
11
|
+
target?: '_self' | '_blank';
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
showTooltip?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Uses `href` if empty
|
|
16
|
+
*/
|
|
17
|
+
tooltipText?: string;
|
|
18
|
+
TooltipProps?: Omit<TooltipProps, 'children' | 'title'> & {
|
|
19
|
+
title?: TooltipProps['title'];
|
|
16
20
|
};
|
|
17
|
-
defaultProps: {
|
|
18
|
-
TooltipProps: {};
|
|
19
|
-
className: string;
|
|
20
|
-
color: string;
|
|
21
|
-
target: string;
|
|
22
|
-
disabled: boolean;
|
|
23
|
-
showTooltip: boolean;
|
|
24
|
-
tooltipText: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
declare const textLinkPropTypes: {
|
|
28
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
29
|
-
href: PropTypes.Validator<string>;
|
|
30
|
-
className: PropTypes.Requireable<string>;
|
|
31
|
-
color: PropTypes.Requireable<string>;
|
|
32
|
-
target: PropTypes.Requireable<string>;
|
|
33
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
34
|
-
showTooltip: PropTypes.Requireable<boolean>;
|
|
35
|
-
tooltipText: PropTypes.Requireable<string>;
|
|
36
|
-
TooltipProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
37
21
|
};
|
|
22
|
+
declare const TextLink: ({ children, href, TooltipProps, className, color, target, disabled, showTooltip, tooltipText, ...LinkProps }: TextLinkProps) => JSX.Element;
|
|
38
23
|
export default TextLink;
|
|
39
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextLink/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextLink/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,YAAY,EAAc,MAAM,mBAAmB,CAAC;AAIlF,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AA2ClC,aAAK,aAAa,GAAG;IACnB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG;QAAE,KAAK,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAA;KAAE,CAAC;CAC7F,CAAC;AAEF,QAAA,MAAM,QAAQ,iHAWX,aAAa,KAAG,WAmElB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e,__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as r,Fragment as i}from"react/jsx-runtime";import{withStyles as n,Tooltip as l,makeStyles as
|
|
1
|
+
import{__rest as e,__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as r,Fragment as i}from"react/jsx-runtime";import{withStyles as n,Tooltip as l,makeStyles as a}from"@material-ui/core";import c from"classnames";import s from"@material-ui/icons/Language";import{useDevCenterRouter as d}from"../DevCenter/DevCenterRouterContext/effects/useDevCenterRouter.js";var p=n({tooltip:{padding:"4px 8px",display:"flex",alignItems:"center"}})(l),m=a((function(e){return{root:function(e){var o=e.color;return{color:o,fontSize:"inherit",lineHeight:"inherit",letterSpacing:"0.15px",textDecoration:"none","&:hover":{color:o,textDecoration:"underline"},"&:visited":{color:o}}},disabled:{color:e.palette.primary.dark,fontSize:"inherit",lineHeight:"inherit",letterSpacing:"0.15px"},icon:{marginRight:8},buttonLink:{border:"none",background:"none",padding:0,cursor:"pointer"}}})),u=function(n){var a=n.children,u=n.href,f=n.TooltipProps,h=void 0===f?{}:f,b=n.className,v=void 0===b?"":b,g=n.color,x=void 0===g?"#03bcd4":g,k=n.target,D=void 0===k?"_blank":k,N=n.disabled,T=void 0!==N&&N,C=n.showTooltip,S=void 0!==C&&C,w=n.tooltipText,y=void 0===w?"":w,_=e(n,["children","href","TooltipProps","className","color","target","disabled","showTooltip","tooltipText"]),j=m({color:x}),z=d();if(T)return t(l,o({title:"Disabled",placement:"bottom-start"},{children:t("span",o({className:c(j.disabled,v)},_,{children:a}))}));var L=z&&"_self"===D?t("button",o({tabIndex:0,role:"link",className:c(j.buttonLink,j.root,v),onClick:function(e){e.metaKey||e.ctrlKey?window.open(u,"_blank"):z.push(u)}},_,{children:a})):t("a",o({className:c(j.root,v),target:D,href:u,rel:"noopener noreferrer"},_,{children:a})),R=y||(null==u?void 0:u.replaceAll("/","/"));return S||y?t(p,o({title:r(i,{children:[t(s,{fontSize:"small",className:j.icon}),R]}),placement:"bottom-start"},h,{children:L})):L};export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toaster.d.ts","sourceRoot":"","sources":["../../../src/components/Toaster/Toaster.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"Toaster.d.ts","sourceRoot":"","sources":["../../../src/components/Toaster/Toaster.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAsCtC,eAAO,MAAM,0BAA0B,OAAO,CAAC;AAE/C,UAAU,YAAa,SAAQ,WAAW;IACxC,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,wBAAgB,OAAO,CAAC,EACtB,OAAO,EACP,gBAA6C,EAC7C,SAAS,GACV,EAAE,YAAY,GAAG,GAAG,CAAC,OAAO,CAiB5B"}
|