@neo4j-ndl/react 0.17.0 → 1.0.0-alpha-093fe38
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/lib/cjs/_common/input/RadioAndCheckboxWrapper.js +14 -6
- package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
- package/lib/cjs/alert/Alert.js +16 -16
- package/lib/cjs/alert/Alert.js.map +1 -1
- package/lib/cjs/alert/index.js +14 -6
- package/lib/cjs/alert/index.js.map +1 -1
- package/lib/cjs/button/Button.js +11 -6
- package/lib/cjs/button/Button.js.map +1 -1
- package/lib/cjs/button/IconButton.js +12 -8
- package/lib/cjs/button/IconButton.js.map +1 -1
- package/lib/cjs/button/IconButtonArray.js +2 -2
- package/lib/cjs/button/IconButtonArray.js.map +1 -1
- package/lib/cjs/code-block/CodeBlock.js +13 -9
- package/lib/cjs/code-block/CodeBlock.js.map +1 -1
- package/lib/cjs/context-menu/ContextMenu.js +19 -12
- package/lib/cjs/context-menu/ContextMenu.js.map +1 -1
- package/lib/cjs/dialog/Dialog.js +9 -9
- package/lib/cjs/dialog/Dialog.js.map +1 -1
- package/lib/cjs/drag-and-drop/DragAndDrop.js +5 -5
- package/lib/cjs/drag-and-drop/DragAndDrop.js.map +1 -1
- package/lib/cjs/dropdown/Dropdown.js +15 -13
- package/lib/cjs/dropdown/Dropdown.js.map +1 -1
- package/lib/cjs/dropdown/Overrides.js +15 -6
- package/lib/cjs/dropdown/Overrides.js.map +1 -1
- package/lib/cjs/graph-label/GraphLabel.js +18 -14
- package/lib/cjs/graph-label/GraphLabel.js.map +1 -1
- package/lib/cjs/graph-label/color.js +6 -6
- package/lib/cjs/graph-label/color.js.map +1 -1
- package/lib/cjs/icons/{custom → generated/custom}/Circle.js +0 -0
- package/lib/cjs/icons/generated/custom/Circle.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/CollapseExpand.js +0 -0
- package/lib/cjs/icons/generated/custom/CollapseExpand.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/CollapseExpandLeft.js +0 -0
- package/lib/cjs/icons/generated/custom/CollapseExpandLeft.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/CollapseExpandRight.js +0 -0
- package/lib/cjs/icons/generated/custom/CollapseExpandRight.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/Configure.js +0 -0
- package/lib/cjs/icons/generated/custom/Configure.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/DatabaseAddCircle.js +0 -0
- package/lib/cjs/icons/generated/custom/DatabaseAddCircle.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/Dbms.js +0 -0
- package/lib/cjs/icons/generated/custom/Dbms.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/Drag.js +0 -0
- package/lib/cjs/icons/generated/custom/Drag.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/Expand.js +0 -0
- package/lib/cjs/icons/generated/custom/Expand.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/ExternalLink.js +0 -0
- package/lib/cjs/icons/generated/custom/ExternalLink.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/FitToScreen.js +0 -0
- package/lib/cjs/icons/generated/custom/FitToScreen.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/FolderBookmark.js +0 -0
- package/lib/cjs/icons/generated/custom/FolderBookmark.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/Heirarchy2.js +0 -0
- package/lib/cjs/icons/generated/custom/Heirarchy2.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/Hierarchy1.js +0 -0
- package/lib/cjs/icons/generated/custom/Hierarchy1.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/Hierarchy2.js +0 -0
- package/lib/cjs/icons/generated/custom/Hierarchy2.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/NomLevel.js +0 -0
- package/lib/cjs/icons/generated/custom/NomLevel.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/Pin.js +0 -0
- package/lib/cjs/icons/generated/custom/Pin.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/Presentation.js +0 -0
- package/lib/cjs/icons/generated/custom/Presentation.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/QueryBrowser.js +0 -0
- package/lib/cjs/icons/generated/custom/QueryBrowser.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/Rhombus.js +0 -0
- package/lib/cjs/icons/generated/custom/Rhombus.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/ScienceMolecule.js +0 -0
- package/lib/cjs/icons/generated/custom/ScienceMolecule.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/Shrink.js +0 -0
- package/lib/cjs/icons/generated/custom/Shrink.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/Status.js +0 -0
- package/lib/cjs/icons/generated/custom/Status.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/Text.js +0 -0
- package/lib/cjs/icons/generated/custom/Text.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/Triangle.js +0 -0
- package/lib/cjs/icons/generated/custom/Triangle.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/VisualizeBloom.js +0 -0
- package/lib/cjs/icons/generated/custom/VisualizeBloom.js.map +1 -0
- package/lib/cjs/icons/{custom → generated/custom}/index.js +0 -0
- package/lib/cjs/icons/generated/custom/index.js.map +1 -0
- package/lib/cjs/icons/generated/heroIcons.js +1206 -0
- package/lib/cjs/icons/generated/heroIcons.js.map +1 -0
- package/lib/cjs/icons/index.js +15 -7
- package/lib/cjs/icons/index.js.map +1 -1
- package/lib/cjs/index.js +7 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/label/Label.js +16 -11
- package/lib/cjs/label/Label.js.map +1 -1
- package/lib/cjs/loading-spinner/LoadingSpinner.js +6 -2
- package/lib/cjs/loading-spinner/LoadingSpinner.js.map +1 -1
- package/lib/cjs/modal/Modal.js +5 -1
- package/lib/cjs/modal/Modal.js.map +1 -1
- package/lib/cjs/popover/Popover.js +3 -3
- package/lib/cjs/popover/Popover.js.map +1 -1
- package/lib/cjs/portal/Portal.js +2 -25
- package/lib/cjs/portal/Portal.js.map +1 -1
- package/lib/cjs/progress-bar/ProgressBar.js +5 -2
- package/lib/cjs/progress-bar/ProgressBar.js.map +1 -1
- package/lib/cjs/side-navigation/SideNavigation.js +4 -4
- package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
- package/lib/cjs/table/Components.js +203 -0
- package/lib/cjs/table/Components.js.map +1 -0
- package/lib/cjs/table/Table.js +45 -117
- package/lib/cjs/table/Table.js.map +1 -1
- package/lib/cjs/table/TableContext.js +34 -0
- package/lib/cjs/table/TableContext.js.map +1 -0
- package/lib/cjs/table/helpers.js +28 -70
- package/lib/cjs/table/helpers.js.map +1 -1
- package/lib/cjs/table/index.js +14 -4
- package/lib/cjs/table/index.js.map +1 -1
- package/lib/cjs/table-deprecated/Table.js +157 -0
- package/lib/cjs/table-deprecated/Table.js.map +1 -0
- package/lib/cjs/{table → table-deprecated}/TableNavigation.js +3 -3
- package/lib/cjs/table-deprecated/TableNavigation.js.map +1 -0
- package/lib/cjs/table-deprecated/helpers.js +123 -0
- package/lib/cjs/table-deprecated/helpers.js.map +1 -0
- package/lib/cjs/{table → table-deprecated}/hooks/hookCallbackTypes.js +0 -0
- package/lib/cjs/table-deprecated/hooks/hookCallbackTypes.js.map +1 -0
- package/lib/cjs/{table → table-deprecated}/hooks/index.js +0 -0
- package/lib/cjs/table-deprecated/hooks/index.js.map +1 -0
- package/lib/cjs/{table → table-deprecated}/hooks/useMultiRowSelect.js +0 -0
- package/lib/cjs/table-deprecated/hooks/useMultiRowSelect.js.map +1 -0
- package/lib/cjs/{table → table-deprecated}/hooks/useSingleRowSelect.js +0 -0
- package/lib/cjs/table-deprecated/hooks/useSingleRowSelect.js.map +1 -0
- package/lib/cjs/table-deprecated/index.js +44 -0
- package/lib/cjs/table-deprecated/index.js.map +1 -0
- package/lib/cjs/tabs/Tabs.js +7 -7
- package/lib/cjs/tabs/Tabs.js.map +1 -1
- package/lib/cjs/tag/Tag.js +8 -5
- package/lib/cjs/tag/Tag.js.map +1 -1
- package/lib/cjs/tag/index.js +14 -5
- package/lib/cjs/tag/index.js.map +1 -1
- package/lib/cjs/text-input/TextInput.js +11 -10
- package/lib/cjs/text-input/TextInput.js.map +1 -1
- package/lib/cjs/tooltip/SmartTooltip.js +114 -0
- package/lib/cjs/tooltip/SmartTooltip.js.map +1 -0
- package/lib/cjs/tooltip/Tooltip.js +10 -2
- package/lib/cjs/tooltip/Tooltip.js.map +1 -1
- package/lib/cjs/tooltip/index.js +3 -1
- package/lib/cjs/tooltip/index.js.map +1 -1
- package/lib/cjs/typography/Typography.js +58 -0
- package/lib/cjs/typography/Typography.js.map +1 -0
- package/lib/cjs/typography/index.js +38 -0
- package/lib/cjs/typography/index.js.map +1 -0
- package/lib/cjs/typography/types.js +52 -0
- package/lib/cjs/typography/types.js.map +1 -0
- package/lib/cjs/view-selector/ViewSelector.js +8 -3
- package/lib/cjs/view-selector/ViewSelector.js.map +1 -1
- package/lib/cjs/wizard/Wizard.js +20 -2
- package/lib/cjs/wizard/Wizard.js.map +1 -1
- package/lib/esm/_common/input/RadioAndCheckboxWrapper.js +13 -6
- package/lib/esm/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
- package/lib/esm/alert/Alert.js +15 -15
- package/lib/esm/alert/Alert.js.map +1 -1
- package/lib/esm/alert/index.js +1 -1
- package/lib/esm/alert/index.js.map +1 -1
- package/lib/esm/button/Button.js +11 -6
- package/lib/esm/button/Button.js.map +1 -1
- package/lib/esm/button/IconButton.js +12 -8
- package/lib/esm/button/IconButton.js.map +1 -1
- package/lib/esm/button/IconButtonArray.js +2 -2
- package/lib/esm/button/IconButtonArray.js.map +1 -1
- package/lib/esm/code-block/CodeBlock.js +11 -7
- package/lib/esm/code-block/CodeBlock.js.map +1 -1
- package/lib/esm/context-menu/ContextMenu.js +19 -12
- package/lib/esm/context-menu/ContextMenu.js.map +1 -1
- package/lib/esm/dialog/Dialog.js +10 -10
- package/lib/esm/dialog/Dialog.js.map +1 -1
- package/lib/esm/drag-and-drop/DragAndDrop.js +5 -5
- package/lib/esm/drag-and-drop/DragAndDrop.js.map +1 -1
- package/lib/esm/dropdown/Dropdown.js +6 -4
- package/lib/esm/dropdown/Dropdown.js.map +1 -1
- package/lib/esm/dropdown/Overrides.js +13 -7
- package/lib/esm/dropdown/Overrides.js.map +1 -1
- package/lib/esm/graph-label/GraphLabel.js +12 -8
- package/lib/esm/graph-label/GraphLabel.js.map +1 -1
- package/lib/esm/graph-label/color.js +1 -1
- package/lib/esm/graph-label/color.js.map +1 -1
- package/lib/esm/icons/{custom → generated/custom}/Circle.js +0 -0
- package/lib/esm/icons/generated/custom/Circle.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/CollapseExpand.js +0 -0
- package/lib/esm/icons/generated/custom/CollapseExpand.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/CollapseExpandLeft.js +0 -0
- package/lib/esm/icons/generated/custom/CollapseExpandLeft.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/CollapseExpandRight.js +0 -0
- package/lib/esm/icons/generated/custom/CollapseExpandRight.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/Configure.js +0 -0
- package/lib/esm/icons/generated/custom/Configure.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/DatabaseAddCircle.js +0 -0
- package/lib/esm/icons/generated/custom/DatabaseAddCircle.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/Dbms.js +0 -0
- package/lib/esm/icons/generated/custom/Dbms.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/Drag.js +0 -0
- package/lib/esm/icons/generated/custom/Drag.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/Expand.js +0 -0
- package/lib/esm/icons/generated/custom/Expand.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/ExternalLink.js +0 -0
- package/lib/esm/icons/generated/custom/ExternalLink.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/FitToScreen.js +0 -0
- package/lib/esm/icons/generated/custom/FitToScreen.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/FolderBookmark.js +0 -0
- package/lib/esm/icons/generated/custom/FolderBookmark.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/Heirarchy2.js +0 -0
- package/lib/esm/icons/generated/custom/Heirarchy2.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/Hierarchy1.js +0 -0
- package/lib/esm/icons/generated/custom/Hierarchy1.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/Hierarchy2.js +0 -0
- package/lib/esm/icons/generated/custom/Hierarchy2.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/NomLevel.js +0 -0
- package/lib/esm/icons/generated/custom/NomLevel.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/Pin.js +0 -0
- package/lib/esm/icons/generated/custom/Pin.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/Presentation.js +0 -0
- package/lib/esm/icons/generated/custom/Presentation.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/QueryBrowser.js +0 -0
- package/lib/esm/icons/generated/custom/QueryBrowser.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/Rhombus.js +0 -0
- package/lib/esm/icons/generated/custom/Rhombus.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/ScienceMolecule.js +0 -0
- package/lib/esm/icons/generated/custom/ScienceMolecule.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/Shrink.js +0 -0
- package/lib/esm/icons/generated/custom/Shrink.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/Status.js +0 -0
- package/lib/esm/icons/generated/custom/Status.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/Text.js +0 -0
- package/lib/esm/icons/generated/custom/Text.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/Triangle.js +0 -0
- package/lib/esm/icons/generated/custom/Triangle.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/VisualizeBloom.js +0 -0
- package/lib/esm/icons/generated/custom/VisualizeBloom.js.map +1 -0
- package/lib/esm/icons/{custom → generated/custom}/index.js +0 -0
- package/lib/esm/icons/generated/custom/index.js.map +1 -0
- package/lib/esm/icons/generated/heroIcons.js +605 -0
- package/lib/esm/icons/generated/heroIcons.js.map +1 -0
- package/lib/esm/icons/index.js +2 -2
- package/lib/esm/icons/index.js.map +1 -1
- package/lib/esm/index.js +7 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/label/Label.js +13 -8
- package/lib/esm/label/Label.js.map +1 -1
- package/lib/esm/loading-spinner/LoadingSpinner.js +6 -2
- package/lib/esm/loading-spinner/LoadingSpinner.js.map +1 -1
- package/lib/esm/modal/Modal.js +5 -1
- package/lib/esm/modal/Modal.js.map +1 -1
- package/lib/esm/popover/Popover.js +3 -3
- package/lib/esm/popover/Popover.js.map +1 -1
- package/lib/esm/portal/Portal.js +2 -2
- package/lib/esm/portal/Portal.js.map +1 -1
- package/lib/esm/progress-bar/ProgressBar.js +5 -2
- package/lib/esm/progress-bar/ProgressBar.js.map +1 -1
- package/lib/esm/side-navigation/SideNavigation.js +6 -6
- package/lib/esm/side-navigation/SideNavigation.js.map +1 -1
- package/lib/esm/table/Components.js +181 -0
- package/lib/esm/table/Components.js.map +1 -0
- package/lib/esm/table/Table.js +45 -116
- package/lib/esm/table/Table.js.map +1 -1
- package/lib/esm/table/TableContext.js +30 -0
- package/lib/esm/table/TableContext.js.map +1 -0
- package/lib/esm/table/helpers.js +25 -65
- package/lib/esm/table/helpers.js.map +1 -1
- package/lib/esm/table/index.js +2 -2
- package/lib/esm/table/index.js.map +1 -1
- package/lib/esm/table-deprecated/Table.js +150 -0
- package/lib/esm/table-deprecated/Table.js.map +1 -0
- package/lib/esm/{table → table-deprecated}/TableNavigation.js +4 -4
- package/lib/esm/table-deprecated/TableNavigation.js.map +1 -0
- package/lib/esm/table-deprecated/helpers.js +116 -0
- package/lib/esm/table-deprecated/helpers.js.map +1 -0
- package/lib/esm/{table → table-deprecated}/hooks/hookCallbackTypes.js +0 -0
- package/lib/esm/table-deprecated/hooks/hookCallbackTypes.js.map +1 -0
- package/lib/esm/{table → table-deprecated}/hooks/index.js +0 -0
- package/lib/esm/table-deprecated/hooks/index.js.map +1 -0
- package/lib/esm/{table → table-deprecated}/hooks/useMultiRowSelect.js +0 -0
- package/lib/esm/table-deprecated/hooks/useMultiRowSelect.js.map +1 -0
- package/lib/esm/{table → table-deprecated}/hooks/useSingleRowSelect.js +0 -0
- package/lib/esm/table-deprecated/hooks/useSingleRowSelect.js.map +1 -0
- package/lib/esm/table-deprecated/index.js +23 -0
- package/lib/esm/table-deprecated/index.js.map +1 -0
- package/lib/esm/tabs/Tabs.js +7 -7
- package/lib/esm/tabs/Tabs.js.map +1 -1
- package/lib/esm/tag/Tag.js +7 -5
- package/lib/esm/tag/Tag.js.map +1 -1
- package/lib/esm/tag/index.js +1 -1
- package/lib/esm/tag/index.js.map +1 -1
- package/lib/esm/text-input/TextInput.js +12 -11
- package/lib/esm/text-input/TextInput.js.map +1 -1
- package/lib/esm/tooltip/SmartTooltip.js +86 -0
- package/lib/esm/tooltip/SmartTooltip.js.map +1 -0
- package/lib/esm/tooltip/Tooltip.js +10 -2
- package/lib/esm/tooltip/Tooltip.js.map +1 -1
- package/lib/esm/tooltip/index.js +1 -0
- package/lib/esm/tooltip/index.js.map +1 -1
- package/lib/esm/{icons/Custom.js → typography/Typography.js} +20 -10
- package/lib/esm/typography/Typography.js.map +1 -0
- package/lib/esm/typography/index.js +22 -0
- package/lib/esm/typography/index.js.map +1 -0
- package/lib/esm/typography/types.js +49 -0
- package/lib/esm/typography/types.js.map +1 -0
- package/lib/esm/view-selector/ViewSelector.js +8 -3
- package/lib/esm/view-selector/ViewSelector.js.map +1 -1
- package/lib/esm/wizard/Wizard.js +24 -6
- package/lib/esm/wizard/Wizard.js.map +1 -1
- package/lib/types/_common/input/RadioAndCheckboxWrapper.d.ts +12 -2
- package/lib/types/_common/input/types.d.ts +1 -1
- package/lib/types/alert/Alert.d.ts +3 -2
- package/lib/types/alert/index.d.ts +1 -1
- package/lib/types/button/Button.d.ts +1 -3
- package/lib/types/button/IconButton.d.ts +2 -0
- package/lib/types/checkbox/Checkbox.d.ts +1 -1
- package/lib/types/context-menu/ContextMenu.d.ts +11 -12
- package/lib/types/dropdown/Overrides.d.ts +0 -21
- package/lib/types/dropdown/types.d.ts +0 -1
- package/lib/types/icons/{custom → generated/custom}/Circle.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/CollapseExpand.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/CollapseExpandLeft.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/CollapseExpandRight.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/Configure.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/DatabaseAddCircle.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/Dbms.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/Drag.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/Expand.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/ExternalLink.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/FitToScreen.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/FolderBookmark.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/Heirarchy2.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/Hierarchy1.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/Hierarchy2.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/NomLevel.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/Pin.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/Presentation.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/QueryBrowser.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/Rhombus.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/ScienceMolecule.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/Shrink.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/Status.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/Text.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/Triangle.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/VisualizeBloom.d.ts +0 -0
- package/lib/types/icons/{custom → generated/custom}/index.d.ts +0 -0
- package/lib/types/icons/generated/heroIcons.d.ts +604 -0
- package/lib/types/icons/index.d.ts +2 -2
- package/lib/types/index.d.ts +3 -1
- package/lib/types/label/Label.d.ts +3 -2
- package/lib/types/popover/Popover.d.ts +1 -1
- package/lib/types/portal/Portal.d.ts +1 -1
- package/lib/types/progress-bar/ProgressBar.d.ts +1 -1
- package/lib/types/radio/Radio.d.ts +1 -1
- package/lib/types/switch/Switch.d.ts +1 -1
- package/lib/types/table/Components.d.ts +54 -0
- package/lib/types/table/Table.d.ts +28 -49
- package/lib/types/table/TableContext.d.ts +61 -0
- package/lib/types/table/helpers.d.ts +9 -21
- package/lib/types/table/index.d.ts +2 -2
- package/lib/types/table-deprecated/Table.d.ts +75 -0
- package/lib/types/{table → table-deprecated}/TableNavigation.d.ts +0 -1
- package/lib/types/table-deprecated/helpers.d.ts +51 -0
- package/lib/types/{table → table-deprecated}/hooks/hookCallbackTypes.d.ts +0 -0
- package/lib/types/{table → table-deprecated}/hooks/index.d.ts +0 -0
- package/lib/types/{table → table-deprecated}/hooks/useMultiRowSelect.d.ts +0 -0
- package/lib/types/{table → table-deprecated}/hooks/useSingleRowSelect.d.ts +0 -0
- package/lib/types/table-deprecated/index.d.ts +22 -0
- package/lib/types/tag/Tag.d.ts +4 -4
- package/lib/types/tag/index.d.ts +1 -1
- package/lib/types/text-input/TextInput.d.ts +1 -1
- package/lib/types/text-link/TextLink.d.ts +1 -1
- package/lib/types/tooltip/SmartTooltip.d.ts +31 -0
- package/lib/types/tooltip/Tooltip.d.ts +1 -1
- package/lib/types/tooltip/index.d.ts +1 -0
- package/lib/types/trap-focus/TrapFocus.d.ts +0 -1
- package/lib/types/{icons/Custom.d.ts → typography/Typography.d.ts} +5 -7
- package/lib/types/typography/index.d.ts +21 -0
- package/lib/types/typography/types.d.ts +34 -0
- package/lib/types/wizard/Wizard.d.ts +0 -1
- package/package.json +22 -9
- package/CHANGELOG.md +0 -557
- package/lib/cjs/icons/Custom.js +0 -67
- package/lib/cjs/icons/Custom.js.map +0 -1
- package/lib/cjs/icons/Hero.js +0 -59
- package/lib/cjs/icons/Hero.js.map +0 -1
- package/lib/cjs/icons/custom/Circle.js.map +0 -1
- package/lib/cjs/icons/custom/CollapseExpand.js.map +0 -1
- package/lib/cjs/icons/custom/CollapseExpandLeft.js.map +0 -1
- package/lib/cjs/icons/custom/CollapseExpandRight.js.map +0 -1
- package/lib/cjs/icons/custom/Configure.js.map +0 -1
- package/lib/cjs/icons/custom/DatabaseAddCircle.js.map +0 -1
- package/lib/cjs/icons/custom/Dbms.js.map +0 -1
- package/lib/cjs/icons/custom/Drag.js.map +0 -1
- package/lib/cjs/icons/custom/Expand.js.map +0 -1
- package/lib/cjs/icons/custom/ExternalLink.js.map +0 -1
- package/lib/cjs/icons/custom/FitToScreen.js.map +0 -1
- package/lib/cjs/icons/custom/FolderBookmark.js.map +0 -1
- package/lib/cjs/icons/custom/Heirarchy2.js.map +0 -1
- package/lib/cjs/icons/custom/Hierarchy1.js.map +0 -1
- package/lib/cjs/icons/custom/Hierarchy2.js.map +0 -1
- package/lib/cjs/icons/custom/NomLevel.js.map +0 -1
- package/lib/cjs/icons/custom/Pin.js.map +0 -1
- package/lib/cjs/icons/custom/Presentation.js.map +0 -1
- package/lib/cjs/icons/custom/QueryBrowser.js.map +0 -1
- package/lib/cjs/icons/custom/Rhombus.js.map +0 -1
- package/lib/cjs/icons/custom/ScienceMolecule.js.map +0 -1
- package/lib/cjs/icons/custom/Shrink.js.map +0 -1
- package/lib/cjs/icons/custom/Status.js.map +0 -1
- package/lib/cjs/icons/custom/Text.js.map +0 -1
- package/lib/cjs/icons/custom/Triangle.js.map +0 -1
- package/lib/cjs/icons/custom/VisualizeBloom.js.map +0 -1
- package/lib/cjs/icons/custom/index.js.map +0 -1
- package/lib/cjs/table/TableNavigation.js.map +0 -1
- package/lib/cjs/table/hooks/hookCallbackTypes.js.map +0 -1
- package/lib/cjs/table/hooks/index.js.map +0 -1
- package/lib/cjs/table/hooks/useMultiRowSelect.js.map +0 -1
- package/lib/cjs/table/hooks/useSingleRowSelect.js.map +0 -1
- package/lib/esm/icons/Custom.js.map +0 -1
- package/lib/esm/icons/Hero.js +0 -33
- package/lib/esm/icons/Hero.js.map +0 -1
- package/lib/esm/icons/custom/Circle.js.map +0 -1
- package/lib/esm/icons/custom/CollapseExpand.js.map +0 -1
- package/lib/esm/icons/custom/CollapseExpandLeft.js.map +0 -1
- package/lib/esm/icons/custom/CollapseExpandRight.js.map +0 -1
- package/lib/esm/icons/custom/Configure.js.map +0 -1
- package/lib/esm/icons/custom/DatabaseAddCircle.js.map +0 -1
- package/lib/esm/icons/custom/Dbms.js.map +0 -1
- package/lib/esm/icons/custom/Drag.js.map +0 -1
- package/lib/esm/icons/custom/Expand.js.map +0 -1
- package/lib/esm/icons/custom/ExternalLink.js.map +0 -1
- package/lib/esm/icons/custom/FitToScreen.js.map +0 -1
- package/lib/esm/icons/custom/FolderBookmark.js.map +0 -1
- package/lib/esm/icons/custom/Heirarchy2.js.map +0 -1
- package/lib/esm/icons/custom/Hierarchy1.js.map +0 -1
- package/lib/esm/icons/custom/Hierarchy2.js.map +0 -1
- package/lib/esm/icons/custom/NomLevel.js.map +0 -1
- package/lib/esm/icons/custom/Pin.js.map +0 -1
- package/lib/esm/icons/custom/Presentation.js.map +0 -1
- package/lib/esm/icons/custom/QueryBrowser.js.map +0 -1
- package/lib/esm/icons/custom/Rhombus.js.map +0 -1
- package/lib/esm/icons/custom/ScienceMolecule.js.map +0 -1
- package/lib/esm/icons/custom/Shrink.js.map +0 -1
- package/lib/esm/icons/custom/Status.js.map +0 -1
- package/lib/esm/icons/custom/Text.js.map +0 -1
- package/lib/esm/icons/custom/Triangle.js.map +0 -1
- package/lib/esm/icons/custom/VisualizeBloom.js.map +0 -1
- package/lib/esm/icons/custom/index.js.map +0 -1
- package/lib/esm/table/TableNavigation.js.map +0 -1
- package/lib/esm/table/hooks/hookCallbackTypes.js.map +0 -1
- package/lib/esm/table/hooks/index.js.map +0 -1
- package/lib/esm/table/hooks/useMultiRowSelect.js.map +0 -1
- package/lib/esm/table/hooks/useSingleRowSelect.js.map +0 -1
- package/lib/types/icons/Hero.d.ts +0 -28
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
* You should have received a copy of the GNU General Public License
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
22
|
-
export
|
|
21
|
+
export * from './generated/custom/index';
|
|
22
|
+
export * from './generated/heroIcons';
|
package/lib/types/index.d.ts
CHANGED
|
@@ -32,8 +32,8 @@ export * from './loading-spinner';
|
|
|
32
32
|
export * from './tabs';
|
|
33
33
|
export * from './view-selector';
|
|
34
34
|
export * from './popover';
|
|
35
|
-
export * from './icons';
|
|
36
35
|
export * from './progress-bar';
|
|
36
|
+
export * from './table-deprecated';
|
|
37
37
|
export * from './table';
|
|
38
38
|
export * from './drag-and-drop';
|
|
39
39
|
export * from './text-input';
|
|
@@ -45,3 +45,5 @@ export * from './graph-label';
|
|
|
45
45
|
export * from './code-block';
|
|
46
46
|
export * from './status-indicator';
|
|
47
47
|
export * from './side-navigation';
|
|
48
|
+
export * from './typography';
|
|
49
|
+
export * from './icons';
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
|
+
import { ElementBase } from '../helpers';
|
|
22
23
|
/**
|
|
23
24
|
*
|
|
24
25
|
*
|
|
@@ -27,7 +28,7 @@ import React from 'react';
|
|
|
27
28
|
*
|
|
28
29
|
*/
|
|
29
30
|
export declare const LabelColors: readonly ["info", "success", "warning", "danger", "default"];
|
|
30
|
-
export
|
|
31
|
+
export interface EventTypeLabelProps extends ElementBase {
|
|
31
32
|
/** Additional Classnames */
|
|
32
33
|
className?: string;
|
|
33
34
|
children: React.ReactNode | string;
|
|
@@ -36,6 +37,6 @@ export declare type EventTypeLabelProps = {
|
|
|
36
37
|
fill?: 'filled' | 'outlined' | 'semi-filled' | 'clean';
|
|
37
38
|
/** If label should have an icon */
|
|
38
39
|
withIcon?: boolean;
|
|
39
|
-
}
|
|
40
|
+
}
|
|
40
41
|
export declare const Label: React.ForwardRefExoticComponent<EventTypeLabelProps & React.RefAttributes<HTMLSpanElement>>;
|
|
41
42
|
export default Label;
|
|
@@ -70,5 +70,5 @@ export interface PopoverProps extends ElementBase {
|
|
|
70
70
|
/** Disable backdrop - Allows event capturing - and pointer events to pass to elements below */
|
|
71
71
|
disableBackdrop?: boolean;
|
|
72
72
|
}
|
|
73
|
-
export declare const Popover: React.ForwardRefExoticComponent<Pick<PopoverProps, "size" | "className" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "list" | "children" | "role" | "as" | "selected" | "onChange" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "
|
|
73
|
+
export declare const Popover: React.ForwardRefExoticComponent<Pick<PopoverProps, "size" | "className" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "list" | "children" | "role" | "as" | "selected" | "onChange" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "noValidate" | "open" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "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" | "onClick" | "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" | "key" | "onClose" | "anchorEl" | "anchorOrigin" | "transformOrigin" | "disableBackdrop" | "nested"> & React.RefAttributes<unknown>>;
|
|
74
74
|
export {};
|
|
@@ -23,5 +23,5 @@ interface PortalProps {
|
|
|
23
23
|
children: React.ReactNode | null;
|
|
24
24
|
container?: Element;
|
|
25
25
|
}
|
|
26
|
-
export declare const Portal: (
|
|
26
|
+
export declare const Portal: (props: PortalProps) => JSX.Element;
|
|
27
27
|
export {};
|
|
@@ -25,5 +25,5 @@ export interface ProgressBarProps extends React.HTMLProps<HTMLDivElement> {
|
|
|
25
25
|
barSize: 'small' | 'large';
|
|
26
26
|
className?: string;
|
|
27
27
|
}
|
|
28
|
-
declare const ProgressBar: React.ForwardRefExoticComponent<Pick<ProgressBarProps, "size" | "className" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "heading" | "list" | "children" | "role" | "as" | "selected" | "onChange" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "
|
|
28
|
+
declare const ProgressBar: React.ForwardRefExoticComponent<Pick<ProgressBarProps, "size" | "className" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "heading" | "list" | "children" | "role" | "as" | "selected" | "onChange" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "noValidate" | "open" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "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" | "onClick" | "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" | "key" | "barSize"> & React.RefAttributes<HTMLDivElement>>;
|
|
29
29
|
export default ProgressBar;
|
|
@@ -35,5 +35,5 @@ import { RadioAndCheckboxProps } from '../_common/input/RadioAndCheckboxWrapper'
|
|
|
35
35
|
*
|
|
36
36
|
*
|
|
37
37
|
*/
|
|
38
|
-
declare const Radio: React.ForwardRefExoticComponent<Pick<RadioAndCheckboxProps, "size" | "className" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "list" | "children" | "role" | "onChange" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "placeholder" | "readOnly" | "required" | "src" | "step" | "type" | "value" | "width" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "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" | "onClick" | "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" | "key" | "enterKeyHint" | "
|
|
38
|
+
declare const Radio: React.ForwardRefExoticComponent<Pick<RadioAndCheckboxProps, "size" | "className" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "list" | "children" | "role" | "onChange" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "placeholder" | "readOnly" | "required" | "src" | "step" | "type" | "value" | "width" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "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" | "onClick" | "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" | "key" | "enterKeyHint" | "fluid" | "labelBefore"> & React.RefAttributes<HTMLInputElement>>;
|
|
39
39
|
export default Radio;
|
|
@@ -35,5 +35,5 @@ import { RadioAndCheckboxProps } from '../_common/input/RadioAndCheckboxWrapper'
|
|
|
35
35
|
*
|
|
36
36
|
*
|
|
37
37
|
*/
|
|
38
|
-
declare const Switch: React.ForwardRefExoticComponent<Pick<RadioAndCheckboxProps, "size" | "className" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "list" | "children" | "role" | "onChange" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "placeholder" | "readOnly" | "required" | "src" | "step" | "type" | "value" | "width" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "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" | "onClick" | "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" | "key" | "enterKeyHint" | "
|
|
38
|
+
declare const Switch: React.ForwardRefExoticComponent<Pick<RadioAndCheckboxProps, "size" | "className" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "list" | "children" | "role" | "onChange" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "placeholder" | "readOnly" | "required" | "src" | "step" | "type" | "value" | "width" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "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" | "onClick" | "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" | "key" | "enterKeyHint" | "fluid" | "labelBefore"> & React.RefAttributes<HTMLInputElement>>;
|
|
39
39
|
export default Switch;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { RowData, Row, Cell, Header as HeaderType } from '@tanstack/react-table';
|
|
3
|
+
import { ElementBase } from '../helpers';
|
|
4
|
+
import { SortingColumn } from '@tanstack/table-core';
|
|
5
|
+
export interface CommonInnerProps<T = HTMLDivElement> {
|
|
6
|
+
/** Children are surfaced to allow easy overriding */
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
innerProps?: ElementBase<T>;
|
|
9
|
+
}
|
|
10
|
+
export interface ResizingBarProps<T extends RowData> extends CommonInnerProps<HTMLButtonElement> {
|
|
11
|
+
header: HeaderType<T, unknown>;
|
|
12
|
+
}
|
|
13
|
+
declare const ResizingBar: <T extends unknown>({ header, children, innerProps, }: ResizingBarProps<T>) => JSX.Element;
|
|
14
|
+
declare const Header: ({ children, innerProps }: CommonInnerProps<HTMLDivElement>) => JSX.Element;
|
|
15
|
+
export interface SortingButtonProps {
|
|
16
|
+
sortDirection: ReturnType<SortingColumn<any>['getIsSorted']>;
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
innerProps?: React.ComponentProps<'svg'>;
|
|
19
|
+
}
|
|
20
|
+
export declare const SortingButton: ({ sortDirection, children, innerProps, }: SortingButtonProps) => JSX.Element;
|
|
21
|
+
export interface ColumnControlsProps<T extends RowData> extends CommonInnerProps<HTMLDivElement> {
|
|
22
|
+
cell: HeaderType<T, unknown>;
|
|
23
|
+
}
|
|
24
|
+
export declare const ColumnControls: <T extends unknown>({ cell, children, innerProps, }: ColumnControlsProps<T>) => JSX.Element;
|
|
25
|
+
export interface HeaderCellProps<T> extends CommonInnerProps<HTMLDivElement> {
|
|
26
|
+
cell: HeaderType<T, unknown>;
|
|
27
|
+
}
|
|
28
|
+
declare const HeaderCell: <T extends unknown>({ cell, children, innerProps, }: HeaderCellProps<T>) => JSX.Element;
|
|
29
|
+
declare const Body: ({ children, innerProps }: CommonInnerProps<HTMLDivElement>) => JSX.Element;
|
|
30
|
+
export interface BodyCellProps<T extends RowData> extends CommonInnerProps<HTMLDivElement> {
|
|
31
|
+
cell: Cell<T, unknown>;
|
|
32
|
+
}
|
|
33
|
+
declare const BodyCell: <T extends unknown>({ cell, children, innerProps, }: BodyCellProps<T>) => JSX.Element;
|
|
34
|
+
export interface BodyRowProps<T extends RowData> extends CommonInnerProps<HTMLDivElement> {
|
|
35
|
+
row: Row<T>;
|
|
36
|
+
}
|
|
37
|
+
declare const BodyRow: <T extends unknown>({ row, children, innerProps, }: BodyRowProps<T>) => JSX.Element;
|
|
38
|
+
declare const TableResults: ({ children, innerProps, }: CommonInnerProps<HTMLSpanElement>) => JSX.Element;
|
|
39
|
+
declare const RowsPerPage: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => JSX.Element;
|
|
40
|
+
export interface PaginationArrowButtonProps extends CommonInnerProps<HTMLButtonElement> {
|
|
41
|
+
action: 'previous' | 'next';
|
|
42
|
+
}
|
|
43
|
+
declare const PaginationArrowButton: ({ action, children, innerProps, }: PaginationArrowButtonProps) => JSX.Element;
|
|
44
|
+
export interface PaginationNumericButtonProps extends CommonInnerProps<HTMLButtonElement> {
|
|
45
|
+
currentIndex: number | string;
|
|
46
|
+
isSelected: boolean;
|
|
47
|
+
}
|
|
48
|
+
declare const PaginationNumericButton: ({ currentIndex, isSelected, children, innerProps, }: PaginationNumericButtonProps) => JSX.Element;
|
|
49
|
+
declare const PaginationNumericButtons: () => JSX.Element;
|
|
50
|
+
declare const Pagination: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => JSX.Element;
|
|
51
|
+
declare const Navigation: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => JSX.Element;
|
|
52
|
+
declare const LoadingPlaceholder: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => JSX.Element;
|
|
53
|
+
declare const NoDataPlaceholder: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => JSX.Element;
|
|
54
|
+
export { ResizingBar, Header, Body, BodyCell, BodyRow, HeaderCell, Navigation, TableResults, RowsPerPage, Pagination, PaginationNumericButtons, PaginationArrowButton, PaginationNumericButton, NoDataPlaceholder, LoadingPlaceholder, };
|
|
@@ -18,61 +18,40 @@
|
|
|
18
18
|
* You should have received a copy of the GNU General Public License
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
declare type Sections = Record<'controls' | 'header' | 'body' | 'navigation', JSX.Element | JSX.Element[]>;
|
|
21
|
+
import type { Table as TableType } from '@tanstack/react-table';
|
|
22
|
+
import { TableComponentsInterface } from './TableContext';
|
|
23
|
+
import { ElementBase } from '../helpers';
|
|
25
24
|
/**
|
|
26
25
|
*
|
|
27
|
-
*
|
|
28
|
-
* for table styling and functionality
|
|
26
|
+
* Helping functions
|
|
29
27
|
*
|
|
30
28
|
*/
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
29
|
+
export declare const TableComponents: {
|
|
30
|
+
ResizingBar: <T extends unknown>({ header, children, innerProps, }: import("./Components").ResizingBarProps<T>) => JSX.Element;
|
|
31
|
+
Header: ({ children, innerProps }: import("./Components").CommonInnerProps<HTMLDivElement>) => JSX.Element;
|
|
32
|
+
Body: ({ children, innerProps }: import("./Components").CommonInnerProps<HTMLDivElement>) => JSX.Element;
|
|
33
|
+
BodyCell: <T_1 extends unknown>({ cell, children, innerProps, }: import("./Components").BodyCellProps<T_1>) => JSX.Element;
|
|
34
|
+
BodyRow: <T_2 extends unknown>({ row, children, innerProps, }: import("./Components").BodyRowProps<T_2>) => JSX.Element;
|
|
35
|
+
HeaderCell: <T_3 extends unknown>({ cell, children, innerProps, }: import("./Components").HeaderCellProps<T_3>) => JSX.Element;
|
|
36
|
+
ColumnControls: <T_4 extends unknown>({ cell, children, innerProps, }: import("./Components").ColumnControlsProps<T_4>) => JSX.Element;
|
|
37
|
+
Navigation: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => JSX.Element;
|
|
38
|
+
TableResults: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLSpanElement>) => JSX.Element;
|
|
39
|
+
RowsPerPage: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => JSX.Element;
|
|
40
|
+
Pagination: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => JSX.Element;
|
|
41
|
+
PaginationNumericButtons: () => JSX.Element;
|
|
42
|
+
PaginationNumericButton: ({ currentIndex, isSelected, children, innerProps, }: import("./Components").PaginationNumericButtonProps) => JSX.Element;
|
|
43
|
+
PaginationArrowButton: ({ action, children, innerProps, }: import("./Components").PaginationArrowButtonProps) => JSX.Element;
|
|
44
|
+
LoadingPlaceholder: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => JSX.Element;
|
|
45
|
+
NoDataPlaceholder: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => JSX.Element;
|
|
46
|
+
SortingButton: ({ sortDirection, children, innerProps, }: import("./Components").SortingButtonProps) => JSX.Element;
|
|
36
47
|
};
|
|
37
|
-
declare type DefaultHeaderProps<T extends object> = Pick<UseTableInstanceProps<T>, 'headerGroups'> & UseSortByInstanceProps<T>;
|
|
38
|
-
declare type DefaultBodyProps<T extends object> = {
|
|
39
|
-
actionsButtons?: (row: Row<T>) => JSX.Element | JSX.Element[];
|
|
40
|
-
loading: boolean;
|
|
41
|
-
} & UseTableInstanceProps<T> & Partial<UsePaginationInstanceProps<T>>;
|
|
42
|
-
export interface PaginationTableState<T extends object> extends UseColumnOrderState<T>, UseExpandedState<T>, UseFiltersState<T>, UsePaginationState<T>, UseGlobalFiltersState<T> {
|
|
43
|
-
}
|
|
44
|
-
export declare type DefaultNavigationProps<T extends object> = {
|
|
45
|
-
state: Partial<PaginationTableState<T>>;
|
|
46
|
-
rows: Row<T>[];
|
|
47
|
-
} & UsePaginationInstanceProps<T>;
|
|
48
|
-
/**
|
|
49
|
-
* Table Skeleton to keep most section logic DRY
|
|
50
|
-
*
|
|
51
|
-
* How the table component is divided into sections:
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* +----------------+
|
|
55
|
-
* | Table Controls |
|
|
56
|
-
* | (ex: Search) |
|
|
57
|
-
* +----------------+
|
|
58
|
-
* | Header |
|
|
59
|
-
* +----------------+
|
|
60
|
-
* | Body (data) |
|
|
61
|
-
* +----------------+
|
|
62
|
-
* | Navigation |
|
|
63
|
-
* +----------------+
|
|
64
|
-
*
|
|
65
|
-
*/
|
|
66
48
|
declare const Table: {
|
|
67
|
-
<T extends
|
|
68
|
-
|
|
69
|
-
loading
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
} & UsePaginationInstanceProps<T> & Pick<UseTableInstanceProps<T>, "headerGroups"> & UseSortByInstanceProps<T>> & Omit<ElementBase<HTMLDivElement>, "data" | "controls" | "headers" | "rows"> & {
|
|
74
|
-
tableStyles?: CSSProperties | undefined;
|
|
75
|
-
}): JSX.Element;
|
|
49
|
+
<T extends unknown>({ resizable, loading, tableProps, components, ...props }: {
|
|
50
|
+
resizable?: boolean | undefined;
|
|
51
|
+
loading?: boolean | undefined;
|
|
52
|
+
tableProps: TableType<T>;
|
|
53
|
+
components?: TableComponentsInterface<T> | undefined;
|
|
54
|
+
} & Omit<ElementBase<HTMLDivElement>, "data" | "as" | "controls" | "headers" | "rows">): JSX.Element;
|
|
76
55
|
RowActions: (props: ElementBase<HTMLDivElement>) => JSX.Element;
|
|
77
56
|
};
|
|
78
57
|
export default Table;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
/// <reference types="react" />
|
|
22
|
+
import type { RowData, Table as TableType } from '@tanstack/react-table';
|
|
23
|
+
import { Body, BodyCell, BodyRow, TableResults, ResizingBar, Navigation, Header, Pagination, NoDataPlaceholder, LoadingPlaceholder, PaginationNumericButtons, PaginationNumericButton, HeaderCell, PaginationArrowButton, RowsPerPage, ColumnControls, SortingButton } from './Components';
|
|
24
|
+
declare type Nullable<T> = T | null;
|
|
25
|
+
export interface TableComponentsInterface<T extends RowData> {
|
|
26
|
+
ResizingBar?: Nullable<typeof ResizingBar<T>>;
|
|
27
|
+
/**
|
|
28
|
+
* Header Section
|
|
29
|
+
*/
|
|
30
|
+
Header?: Nullable<typeof Header>;
|
|
31
|
+
HeaderCell?: Nullable<typeof HeaderCell<T>>;
|
|
32
|
+
ColumnControls?: Nullable<typeof ColumnControls>;
|
|
33
|
+
SortingButton?: Nullable<typeof SortingButton>;
|
|
34
|
+
/**
|
|
35
|
+
* Body Section
|
|
36
|
+
*/
|
|
37
|
+
Body?: Nullable<typeof Body>;
|
|
38
|
+
BodyCell?: Nullable<typeof BodyCell<T>>;
|
|
39
|
+
BodyRow?: Nullable<typeof BodyRow<T>>;
|
|
40
|
+
LoadingPlaceholder?: Nullable<typeof LoadingPlaceholder>;
|
|
41
|
+
NoDataPlaceholder?: Nullable<typeof NoDataPlaceholder>;
|
|
42
|
+
/**
|
|
43
|
+
* Navigation Section
|
|
44
|
+
*/
|
|
45
|
+
Navigation?: Nullable<typeof Navigation>;
|
|
46
|
+
Pagination?: Nullable<typeof Pagination>;
|
|
47
|
+
PaginationArrowButton?: Nullable<typeof PaginationArrowButton>;
|
|
48
|
+
TableResults?: Nullable<typeof TableResults>;
|
|
49
|
+
RowsPerPage?: Nullable<typeof RowsPerPage>;
|
|
50
|
+
PaginationNumericButtons?: Nullable<typeof PaginationNumericButtons>;
|
|
51
|
+
PaginationNumericButton?: Nullable<typeof PaginationNumericButton>;
|
|
52
|
+
}
|
|
53
|
+
export interface TableContextType<T extends RowData> {
|
|
54
|
+
resizable: boolean;
|
|
55
|
+
tableProps: TableType<T>;
|
|
56
|
+
components: TableComponentsInterface<T>;
|
|
57
|
+
loading: boolean;
|
|
58
|
+
}
|
|
59
|
+
export declare const TableContext: import("react").Context<TableContextType<any>>;
|
|
60
|
+
export declare function useTableContext<T extends RowData>(): TableContextType<T>;
|
|
61
|
+
export {};
|
|
@@ -18,24 +18,7 @@
|
|
|
18
18
|
* You should have received a copy of the GNU General Public License
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
|
-
|
|
22
|
-
import { TableResizerProps } from 'react-table';
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* React Table helper to display sorting icon
|
|
26
|
-
* Source:
|
|
27
|
-
* https://react-table.tanstack.com/docs/api/useSortBy#column-properties
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
|
-
export declare const SortIcon: ({ isSortedDesc, ...props }: {
|
|
31
|
-
isSortedDesc: boolean | undefined;
|
|
32
|
-
}) => JSX.Element;
|
|
33
|
-
export declare const ResizingBar: import("react").NamedExoticComponent<TableResizerProps>;
|
|
34
|
-
/**
|
|
35
|
-
* The left section of the bottom navigation
|
|
36
|
-
* that is showing the current page and how many results we can see
|
|
37
|
-
*/
|
|
38
|
-
export declare const TableResults: ({ pageIndex, pageLength, rowsLength, }: Record<'pageIndex' | 'pageLength' | 'rowsLength', number>) => JSX.Element;
|
|
21
|
+
import { Table } from '@tanstack/react-table';
|
|
39
22
|
/**
|
|
40
23
|
* Modified from here: https://gist.github.com/kottenator/9d936eb3e4e3c3e02598
|
|
41
24
|
*
|
|
@@ -45,7 +28,12 @@ export declare const TableResults: ({ pageIndex, pageLength, rowsLength, }: Reco
|
|
|
45
28
|
*/
|
|
46
29
|
export declare const userFriendlyPagination: (current: number, max: number) => (string | number)[];
|
|
47
30
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
31
|
+
* Simple helper to generate inline grid style
|
|
32
|
+
* to be responsive.
|
|
33
|
+
*
|
|
34
|
+
* Secret sauce:
|
|
35
|
+
* The last element takes an "auto" width, so it will
|
|
36
|
+
* fill the available space, and the result till be for 4 columns:
|
|
37
|
+
* minmax(min column1Sizepx,column1Sizepx) minmax(min column2Sizepx,column2Sizepx) ... minmax(columnNSizepx, auto)
|
|
50
38
|
*/
|
|
51
|
-
export declare const
|
|
39
|
+
export declare const gridGenerator: <T extends unknown>(table: Table<T>) => string;
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
* You should have received a copy of the GNU General Public License
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
|
-
export { default as Table } from './Table';
|
|
22
|
-
export * from './
|
|
21
|
+
export { default as Table, TableComponents } from './Table';
|
|
22
|
+
export * as tableUtils from './helpers';
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import { Row, UseColumnOrderState, UseExpandedState, UseFiltersState, UsePaginationState, UseGlobalFiltersState, UsePaginationInstanceProps, UseSortByInstanceProps, UseTableInstanceProps } from 'react-table';
|
|
22
|
+
import { ElementBase } from '../helpers/types';
|
|
23
|
+
declare type Sections = Record<'controls' | 'header' | 'body' | 'navigation', JSX.Element | JSX.Element[]>;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* Small Utilities
|
|
27
|
+
* for table styling and functionality
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
/** For fixed row height tables, we should have a fixed body size */
|
|
31
|
+
export declare const fixedHeight: (items: number, height: number) => {
|
|
32
|
+
style: {
|
|
33
|
+
height: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
declare type DefaultHeaderProps<T extends object> = Pick<UseTableInstanceProps<T>, 'headerGroups'> & UseSortByInstanceProps<T>;
|
|
37
|
+
declare type DefaultBodyProps<T extends object> = {
|
|
38
|
+
actionsButtons?: (row: Row<T>) => JSX.Element | JSX.Element[];
|
|
39
|
+
loading: boolean;
|
|
40
|
+
} & UseTableInstanceProps<T> & Partial<UsePaginationInstanceProps<T>>;
|
|
41
|
+
export interface PaginationTableState<T extends object> extends UseColumnOrderState<T>, UseExpandedState<T>, UseFiltersState<T>, UsePaginationState<T>, UseGlobalFiltersState<T> {
|
|
42
|
+
}
|
|
43
|
+
export declare type DefaultNavigationProps<T extends object> = {
|
|
44
|
+
state: Partial<PaginationTableState<T>>;
|
|
45
|
+
rows: Row<T>[];
|
|
46
|
+
} & UsePaginationInstanceProps<T>;
|
|
47
|
+
/**
|
|
48
|
+
* Table Skeleton to keep most section logic DRY
|
|
49
|
+
*
|
|
50
|
+
* How the table component is divided into sections:
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* +----------------+
|
|
54
|
+
* | Table Controls |
|
|
55
|
+
* | (ex: Search) |
|
|
56
|
+
* +----------------+
|
|
57
|
+
* | Header |
|
|
58
|
+
* +----------------+
|
|
59
|
+
* | Body (data) |
|
|
60
|
+
* +----------------+
|
|
61
|
+
* | Navigation |
|
|
62
|
+
* +----------------+
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
declare const Table: {
|
|
66
|
+
<T extends object>(props: Partial<Sections> & Partial<{
|
|
67
|
+
actionsButtons?: ((row: Row<T>) => JSX.Element | JSX.Element[]) | undefined;
|
|
68
|
+
loading: boolean;
|
|
69
|
+
} & UseTableInstanceProps<T> & Partial<UsePaginationInstanceProps<T>> & {
|
|
70
|
+
state: Partial<PaginationTableState<T>>;
|
|
71
|
+
rows: Row<T>[];
|
|
72
|
+
} & UsePaginationInstanceProps<T> & Pick<UseTableInstanceProps<T>, "headerGroups"> & UseSortByInstanceProps<T>> & Omit<ElementBase<HTMLDivElement>, "data" | "controls" | "headers" | "rows">): JSX.Element;
|
|
73
|
+
RowActions: (props: ElementBase<HTMLDivElement>) => JSX.Element;
|
|
74
|
+
};
|
|
75
|
+
export default Table;
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
* You should have received a copy of the GNU General Public License
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
|
-
/// <reference types="react" />
|
|
22
21
|
interface TableNavigationProps {
|
|
23
22
|
/** If there is a previous page available */
|
|
24
23
|
canPreviousPage: boolean;
|