@neo4j-ndl/react 2.16.26 → 3.0.0-alpha-4904fb7
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/CodeBlockWrapper.js +10 -8
- package/lib/cjs/_common/CodeBlockWrapper.js.map +1 -1
- package/lib/cjs/_common/ConditionalWrap.js +1 -1
- package/lib/cjs/_common/ConditionalWrap.js.map +1 -1
- package/lib/cjs/_common/coditionalWrap.js +1 -1
- package/lib/cjs/_common/coditionalWrap.js.map +1 -1
- package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js +6 -20
- package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
- package/lib/cjs/_common/messages.js +1 -2
- package/lib/cjs/_common/messages.js.map +1 -1
- package/lib/cjs/{helpers → _common}/types.js +1 -2
- package/lib/cjs/_common/types.js.map +1 -0
- package/lib/cjs/accordion/Accordion.js +24 -24
- package/lib/cjs/accordion/Accordion.js.map +1 -1
- package/lib/cjs/avatar/Avatar.js +7 -17
- package/lib/cjs/avatar/Avatar.js.map +1 -1
- package/lib/cjs/banner/Banner.js +30 -25
- package/lib/cjs/banner/Banner.js.map +1 -1
- package/lib/cjs/breadcrumbs/Breadcrumbs.js +60 -90
- package/lib/cjs/breadcrumbs/Breadcrumbs.js.map +1 -1
- package/lib/cjs/button/Button.js +17 -33
- package/lib/cjs/button/Button.js.map +1 -1
- package/lib/cjs/button/IconButton.js +13 -21
- package/lib/cjs/button/IconButton.js.map +1 -1
- package/lib/cjs/button/IconButtonArray.js +43 -22
- package/lib/cjs/button/IconButtonArray.js.map +1 -1
- package/lib/cjs/callout/Callout.js +2 -14
- package/lib/cjs/callout/Callout.js.map +1 -1
- package/lib/cjs/charts/Axis.js +216 -0
- package/lib/cjs/charts/Axis.js.map +1 -0
- package/lib/cjs/charts/CartesianGrid.js +73 -0
- package/lib/cjs/charts/CartesianGrid.js.map +1 -0
- package/lib/cjs/charts/Chart.js +538 -0
- package/lib/cjs/charts/Chart.js.map +1 -0
- package/lib/cjs/charts/ChartTooltip.js +56 -0
- package/lib/cjs/charts/ChartTooltip.js.map +1 -0
- package/lib/cjs/charts/Charts.js +99 -0
- package/lib/cjs/charts/Charts.js.map +1 -0
- package/lib/cjs/charts/Dot.js +31 -0
- package/lib/cjs/charts/Dot.js.map +1 -0
- package/lib/cjs/charts/Legend.js +180 -0
- package/lib/cjs/charts/Legend.js.map +1 -0
- package/lib/cjs/charts/Line.js +101 -0
- package/lib/cjs/charts/Line.js.map +1 -0
- package/lib/cjs/{code-block → charts}/index.js +1 -1
- package/lib/cjs/charts/index.js.map +1 -0
- package/lib/cjs/{table/TableContext.js → charts/utils.js} +18 -14
- package/lib/cjs/charts/utils.js.map +1 -0
- package/lib/cjs/checkbox/Checkbox.js +2 -14
- package/lib/cjs/checkbox/Checkbox.js.map +1 -1
- package/lib/cjs/clipboard-copier/ClipboardButton.js +16 -20
- package/lib/cjs/clipboard-copier/ClipboardButton.js.map +1 -1
- package/lib/cjs/code/Code.js +179 -0
- package/lib/cjs/code/Code.js.map +1 -0
- package/lib/cjs/{cypher-code-block → code}/index.js +1 -1
- package/lib/cjs/code/index.js.map +1 -0
- package/lib/cjs/code/languages.js +49 -0
- package/lib/cjs/code/languages.js.map +1 -0
- package/lib/cjs/context-menu/ContextMenu.js +202 -319
- package/lib/cjs/context-menu/ContextMenu.js.map +1 -1
- package/lib/cjs/data-grid/Components.js +73 -44
- package/lib/cjs/data-grid/Components.js.map +1 -1
- package/lib/cjs/data-grid/DataGrid.js +6 -6
- package/lib/cjs/data-grid/DataGrid.js.map +1 -1
- package/lib/cjs/data-grid/illustrations/NoData.js +27 -0
- package/lib/cjs/data-grid/illustrations/NoData.js.map +1 -0
- package/lib/cjs/date-picker/DatePicker.js +33 -10
- package/lib/cjs/date-picker/DatePicker.js.map +1 -1
- package/lib/cjs/dialog/Dialog.js +21 -35
- package/lib/cjs/dialog/Dialog.js.map +1 -1
- package/lib/cjs/divider/Divider.js +2 -14
- package/lib/cjs/divider/Divider.js.map +1 -1
- package/lib/cjs/drawer/Drawer.js +10 -8
- package/lib/cjs/drawer/Drawer.js.map +1 -1
- package/lib/cjs/dropdown/Dropdown.js +18 -34
- package/lib/cjs/dropdown/Dropdown.js.map +1 -1
- package/lib/cjs/dropdown/Overrides.js +6 -2
- package/lib/cjs/dropdown/Overrides.js.map +1 -1
- package/lib/cjs/dropdown-button/DropdownButton.js +2 -21
- package/lib/cjs/dropdown-button/DropdownButton.js.map +1 -1
- package/lib/{types/context-menu/SafeArea.d.ts → cjs/dropdown-button/avatar-test.stories.tsx.js} +10 -18
- package/lib/cjs/dropdown-button/avatar-test.stories.tsx.js.map +1 -0
- package/lib/cjs/dropzone/Dropzone.js +4 -15
- package/lib/cjs/dropzone/Dropzone.js.map +1 -1
- package/lib/cjs/graph-label/GraphLabel.js +33 -34
- package/lib/cjs/graph-label/GraphLabel.js.map +1 -1
- package/lib/cjs/helpers/index.js +0 -1
- package/lib/cjs/helpers/index.js.map +1 -1
- package/lib/cjs/hooks/index.js +5 -3
- package/lib/cjs/hooks/index.js.map +1 -1
- package/lib/cjs/icons/generated/heroIcons.js +917 -596
- package/lib/cjs/icons/generated/heroIcons.js.map +1 -1
- package/lib/cjs/index.js +3 -5
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/inline-edit/InlineEdit.js +12 -7
- package/lib/cjs/inline-edit/InlineEdit.js.map +1 -1
- package/lib/cjs/label/Label.js +4 -16
- package/lib/cjs/label/Label.js.map +1 -1
- package/lib/cjs/layout/Box.js +4 -16
- package/lib/cjs/layout/Box.js.map +1 -1
- package/lib/cjs/layout/Flex.js +4 -16
- package/lib/cjs/layout/Flex.js.map +1 -1
- package/lib/cjs/loading-spinner/LoadingSpinner.js +2 -13
- package/lib/cjs/loading-spinner/LoadingSpinner.js.map +1 -1
- package/lib/cjs/modal/Modal.js +2 -2
- package/lib/cjs/modal/Modal.js.map +1 -1
- package/lib/cjs/popover/Popover.js +89 -207
- package/lib/cjs/popover/Popover.js.map +1 -1
- package/lib/cjs/popover/use-popover.js +86 -0
- package/lib/cjs/popover/use-popover.js.map +1 -0
- package/lib/cjs/progress-bar/ProgressBar.js +2 -14
- package/lib/cjs/progress-bar/ProgressBar.js.map +1 -1
- package/lib/cjs/radio/Radio.js +2 -1
- package/lib/cjs/radio/Radio.js.map +1 -1
- package/lib/cjs/segmented-control/SegmentedControl.js +6 -19
- package/lib/cjs/segmented-control/SegmentedControl.js.map +1 -1
- package/lib/cjs/side-navigation/SideNavigation.js +52 -59
- package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
- package/lib/cjs/slider/Slider.js +5 -6
- package/lib/cjs/slider/Slider.js.map +1 -1
- package/lib/cjs/status-indicator/StatusIndicator.js.map +1 -1
- package/lib/cjs/switch/Switch.js +13 -1
- package/lib/cjs/switch/Switch.js.map +1 -1
- package/lib/cjs/tabs/Tabs.js +11 -27
- package/lib/cjs/tabs/Tabs.js.map +1 -1
- package/lib/cjs/tag/Tag.js +5 -18
- package/lib/cjs/tag/Tag.js.map +1 -1
- package/lib/cjs/text-input/TextInput.js +14 -24
- package/lib/cjs/text-input/TextInput.js.map +1 -1
- package/lib/cjs/text-link/TextLink.js +4 -17
- package/lib/cjs/text-link/TextLink.js.map +1 -1
- package/lib/cjs/textarea/Textarea.js +6 -20
- package/lib/cjs/textarea/Textarea.js.map +1 -1
- package/lib/cjs/toast/Toast.js +2 -3
- package/lib/cjs/toast/Toast.js.map +1 -1
- package/lib/cjs/tooltip/Tooltip.js +125 -0
- package/lib/cjs/tooltip/Tooltip.js.map +1 -0
- package/lib/cjs/{tip → tooltip}/index.js +15 -16
- package/lib/cjs/tooltip/index.js.map +1 -0
- package/lib/cjs/tooltip/use-tooltip.js +78 -0
- package/lib/cjs/tooltip/use-tooltip.js.map +1 -0
- package/lib/cjs/tree-view/TreeView.js +4 -16
- package/lib/cjs/tree-view/TreeView.js.map +1 -1
- package/lib/cjs/tree-view/TreeViewTextItem.js +11 -7
- package/lib/cjs/tree-view/TreeViewTextItem.js.map +1 -1
- package/lib/cjs/typography/Typography.js +4 -4
- package/lib/cjs/typography/Typography.js.map +1 -1
- package/lib/cjs/widget/Widget.js +3 -15
- package/lib/cjs/widget/Widget.js.map +1 -1
- package/lib/cjs/wizard/Wizard.js +106 -80
- package/lib/cjs/wizard/Wizard.js.map +1 -1
- package/lib/esm/_common/CodeBlockWrapper.js +10 -8
- package/lib/esm/_common/CodeBlockWrapper.js.map +1 -1
- package/lib/esm/_common/ConditionalWrap.js +1 -1
- package/lib/esm/_common/ConditionalWrap.js.map +1 -1
- package/lib/esm/_common/coditionalWrap.js +1 -1
- package/lib/esm/_common/coditionalWrap.js.map +1 -1
- package/lib/esm/_common/input/RadioAndCheckboxWrapper.js +7 -21
- package/lib/esm/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
- package/lib/esm/_common/messages.js +0 -1
- package/lib/esm/_common/messages.js.map +1 -1
- package/lib/esm/{helpers → _common}/types.js +0 -1
- package/lib/esm/_common/types.js.map +1 -0
- package/lib/esm/accordion/Accordion.js +25 -25
- package/lib/esm/accordion/Accordion.js.map +1 -1
- package/lib/esm/avatar/Avatar.js +7 -17
- package/lib/esm/avatar/Avatar.js.map +1 -1
- package/lib/esm/banner/Banner.js +30 -25
- package/lib/esm/banner/Banner.js.map +1 -1
- package/lib/esm/breadcrumbs/Breadcrumbs.js +39 -92
- package/lib/esm/breadcrumbs/Breadcrumbs.js.map +1 -1
- package/lib/esm/button/Button.js +11 -27
- package/lib/esm/button/Button.js.map +1 -1
- package/lib/esm/button/IconButton.js +13 -21
- package/lib/esm/button/IconButton.js.map +1 -1
- package/lib/esm/button/IconButtonArray.js +43 -22
- package/lib/esm/button/IconButtonArray.js.map +1 -1
- package/lib/esm/callout/Callout.js +2 -14
- package/lib/esm/callout/Callout.js.map +1 -1
- package/lib/esm/charts/Axis.js +187 -0
- package/lib/esm/charts/Axis.js.map +1 -0
- package/lib/esm/charts/CartesianGrid.js +66 -0
- package/lib/esm/charts/CartesianGrid.js.map +1 -0
- package/lib/esm/charts/Chart.js +517 -0
- package/lib/esm/charts/Chart.js.map +1 -0
- package/lib/esm/charts/ChartTooltip.js +50 -0
- package/lib/esm/charts/ChartTooltip.js.map +1 -0
- package/lib/esm/charts/Charts.js +96 -0
- package/lib/esm/charts/Charts.js.map +1 -0
- package/lib/esm/charts/Dot.js +28 -0
- package/lib/esm/charts/Dot.js.map +1 -0
- package/lib/esm/charts/Legend.js +174 -0
- package/lib/esm/charts/Legend.js.map +1 -0
- package/lib/esm/charts/Line.js +75 -0
- package/lib/esm/charts/Line.js.map +1 -0
- package/lib/esm/charts/index.js +22 -0
- package/lib/esm/charts/index.js.map +1 -0
- package/lib/esm/{table/TableContext.js → charts/utils.js} +16 -11
- package/lib/esm/charts/utils.js.map +1 -0
- package/lib/esm/checkbox/Checkbox.js +2 -14
- package/lib/esm/checkbox/Checkbox.js.map +1 -1
- package/lib/esm/clipboard-copier/ClipboardButton.js +16 -20
- package/lib/esm/clipboard-copier/ClipboardButton.js.map +1 -1
- package/lib/esm/code/Code.js +150 -0
- package/lib/esm/code/Code.js.map +1 -0
- package/lib/{types/text-input-preview/index.d.ts → esm/code/index.js} +2 -1
- package/lib/esm/code/index.js.map +1 -0
- package/lib/esm/code/languages.js +46 -0
- package/lib/esm/code/languages.js.map +1 -0
- package/lib/esm/context-menu/ContextMenu.js +198 -295
- package/lib/esm/context-menu/ContextMenu.js.map +1 -1
- package/lib/esm/data-grid/Components.js +69 -43
- package/lib/esm/data-grid/Components.js.map +1 -1
- package/lib/esm/data-grid/DataGrid.js +6 -6
- package/lib/esm/data-grid/DataGrid.js.map +1 -1
- package/lib/esm/data-grid/illustrations/NoData.js +25 -0
- package/lib/esm/data-grid/illustrations/NoData.js.map +1 -0
- package/lib/esm/date-picker/DatePicker.js +33 -10
- package/lib/esm/date-picker/DatePicker.js.map +1 -1
- package/lib/esm/dialog/Dialog.js +21 -35
- package/lib/esm/dialog/Dialog.js.map +1 -1
- package/lib/esm/divider/Divider.js +2 -14
- package/lib/esm/divider/Divider.js.map +1 -1
- package/lib/esm/drawer/Drawer.js +11 -9
- package/lib/esm/drawer/Drawer.js.map +1 -1
- package/lib/esm/dropdown/Dropdown.js +18 -34
- package/lib/esm/dropdown/Dropdown.js.map +1 -1
- package/lib/esm/dropdown/Overrides.js +6 -2
- package/lib/esm/dropdown/Overrides.js.map +1 -1
- package/lib/esm/dropdown-button/DropdownButton.js +2 -21
- package/lib/esm/dropdown-button/DropdownButton.js.map +1 -1
- package/lib/esm/dropdown-button/avatar-test.stories.tsx.js +27 -0
- package/lib/esm/dropdown-button/avatar-test.stories.tsx.js.map +1 -0
- package/lib/esm/dropzone/Dropzone.js +4 -15
- package/lib/esm/dropzone/Dropzone.js.map +1 -1
- package/lib/esm/graph-label/GraphLabel.js +33 -34
- package/lib/esm/graph-label/GraphLabel.js.map +1 -1
- package/lib/esm/helpers/index.js +0 -1
- package/lib/esm/helpers/index.js.map +1 -1
- package/lib/esm/hooks/index.js +1 -1
- package/lib/esm/hooks/index.js.map +1 -1
- package/lib/esm/icons/generated/heroIcons.js +904 -584
- package/lib/esm/icons/generated/heroIcons.js.map +1 -1
- package/lib/esm/index.js +3 -5
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/inline-edit/InlineEdit.js +12 -7
- package/lib/esm/inline-edit/InlineEdit.js.map +1 -1
- package/lib/esm/label/Label.js +4 -16
- package/lib/esm/label/Label.js.map +1 -1
- package/lib/esm/layout/Box.js +6 -18
- package/lib/esm/layout/Box.js.map +1 -1
- package/lib/esm/layout/Flex.js +5 -17
- package/lib/esm/layout/Flex.js.map +1 -1
- package/lib/esm/loading-spinner/LoadingSpinner.js +2 -13
- package/lib/esm/loading-spinner/LoadingSpinner.js.map +1 -1
- package/lib/esm/modal/Modal.js +2 -2
- package/lib/esm/modal/Modal.js.map +1 -1
- package/lib/esm/popover/Popover.js +64 -204
- package/lib/esm/popover/Popover.js.map +1 -1
- package/lib/esm/popover/use-popover.js +83 -0
- package/lib/esm/popover/use-popover.js.map +1 -0
- package/lib/esm/progress-bar/ProgressBar.js +2 -14
- package/lib/esm/progress-bar/ProgressBar.js.map +1 -1
- package/lib/esm/radio/Radio.js +2 -1
- package/lib/esm/radio/Radio.js.map +1 -1
- package/lib/esm/segmented-control/SegmentedControl.js +7 -20
- package/lib/esm/segmented-control/SegmentedControl.js.map +1 -1
- package/lib/esm/side-navigation/SideNavigation.js +52 -59
- package/lib/esm/side-navigation/SideNavigation.js.map +1 -1
- package/lib/esm/slider/Slider.js +5 -6
- package/lib/esm/slider/Slider.js.map +1 -1
- package/lib/esm/status-indicator/StatusIndicator.js.map +1 -1
- package/lib/esm/switch/Switch.js +13 -1
- package/lib/esm/switch/Switch.js.map +1 -1
- package/lib/esm/tabs/Tabs.js +12 -28
- package/lib/esm/tabs/Tabs.js.map +1 -1
- package/lib/esm/tag/Tag.js +5 -18
- package/lib/esm/tag/Tag.js.map +1 -1
- package/lib/esm/text-input/TextInput.js +14 -24
- package/lib/esm/text-input/TextInput.js.map +1 -1
- package/lib/esm/text-link/TextLink.js +4 -17
- package/lib/esm/text-link/TextLink.js.map +1 -1
- package/lib/esm/textarea/Textarea.js +6 -20
- package/lib/esm/textarea/Textarea.js.map +1 -1
- package/lib/esm/toast/Toast.js +2 -3
- package/lib/esm/toast/Toast.js.map +1 -1
- package/lib/esm/tooltip/Tooltip.js +119 -0
- package/lib/esm/tooltip/Tooltip.js.map +1 -0
- package/lib/esm/{tip → tooltip}/index.js +0 -1
- package/lib/esm/tooltip/index.js.map +1 -0
- package/lib/esm/tooltip/use-tooltip.js +73 -0
- package/lib/esm/tooltip/use-tooltip.js.map +1 -0
- package/lib/esm/tree-view/TreeView.js +4 -16
- package/lib/esm/tree-view/TreeView.js.map +1 -1
- package/lib/esm/tree-view/TreeViewTextItem.js +11 -7
- package/lib/esm/tree-view/TreeViewTextItem.js.map +1 -1
- package/lib/esm/typography/Typography.js +5 -5
- package/lib/esm/typography/Typography.js.map +1 -1
- package/lib/esm/widget/Widget.js +3 -15
- package/lib/esm/widget/Widget.js.map +1 -1
- package/lib/esm/wizard/Wizard.js +83 -76
- package/lib/esm/wizard/Wizard.js.map +1 -1
- package/lib/types/_common/CodeBlockWrapper.d.ts +10 -6
- package/lib/types/_common/ConditionalWrap.d.ts +2 -2
- package/lib/types/_common/coditionalWrap.d.ts +2 -2
- package/lib/types/_common/input/RadioAndCheckboxWrapper.d.ts +15 -4
- package/lib/types/_common/input/types.d.ts +7 -9
- package/lib/types/_common/messages.d.ts +0 -1
- package/lib/types/_common/types.d.ts +40 -0
- package/lib/types/accordion/Accordion.d.ts +15 -9
- package/lib/types/avatar/Avatar.d.ts +14 -7
- package/lib/types/banner/Banner.d.ts +39 -19
- package/lib/types/breadcrumbs/Breadcrumbs.d.ts +18 -21
- package/lib/types/button/Button.d.ts +35 -13
- package/lib/types/button/IconButton.d.ts +31 -12
- package/lib/types/button/IconButtonArray.d.ts +20 -15
- package/lib/types/callout/Callout.d.ts +6 -3
- package/lib/types/charts/Axis.d.ts +37 -0
- package/lib/types/{tip/Tooltip.d.ts → charts/CartesianGrid.d.ts} +7 -6
- package/lib/types/charts/Chart.d.ts +105 -0
- package/lib/types/charts/ChartTooltip.d.ts +59 -0
- package/lib/types/charts/Charts.d.ts +94 -0
- package/lib/types/charts/Dot.d.ts +27 -0
- package/lib/types/charts/Legend.d.ts +25 -0
- package/lib/types/charts/Line.d.ts +43 -0
- package/lib/types/{code-block → charts}/index.d.ts +1 -1
- package/lib/{esm/cypher-code-block/index.js → types/charts/utils.d.ts} +3 -2
- package/lib/types/clipboard-copier/ClipboardButton.d.ts +6 -4
- package/lib/types/{code-block/CodeBlock.d.ts → code/Code.d.ts} +29 -7
- package/lib/types/{cypher-code-block → code}/index.d.ts +1 -1
- package/lib/types/code/languages.d.ts +22 -0
- package/lib/types/context-menu/ContextMenu.d.ts +43 -66
- package/lib/types/data-grid/Components.d.ts +12 -5
- package/lib/types/data-grid/DataGrid.d.ts +8 -5
- package/lib/types/data-grid/DataGridContext.d.ts +3 -3
- package/lib/types/data-grid/datagrid-types.d.ts +3 -3
- package/lib/types/data-grid/illustrations/NoData.d.ts +23 -0
- package/lib/types/date-picker/DatePicker.d.ts +6 -6
- package/lib/types/dialog/Dialog.d.ts +14 -10
- package/lib/types/divider/Divider.d.ts +6 -3
- package/lib/types/drawer/Drawer.d.ts +11 -8
- package/lib/types/dropdown/Dropdown.d.ts +4 -1
- package/lib/types/dropdown/Overrides.d.ts +1 -1
- package/lib/types/dropdown/types.d.ts +5 -6
- package/lib/types/dropdown-button/DropdownButton.d.ts +7 -2
- package/lib/{esm/code-block/index.js → types/dropdown-button/avatar-test.stories.tsx.d.ts} +3 -2
- package/lib/types/dropzone/Dropzone.d.ts +8 -2
- package/lib/types/graph-label/GraphLabel.d.ts +18 -7
- package/lib/types/helpers/index.d.ts +0 -1
- package/lib/types/hooks/index.d.ts +1 -1
- package/lib/types/icons/generated/heroIcons.d.ts +256 -0
- package/lib/types/index.d.ts +3 -5
- package/lib/types/inline-edit/InlineEdit.d.ts +5 -2
- package/lib/types/label/Label.d.ts +4 -3
- package/lib/types/layout/Box.d.ts +6 -10
- package/lib/types/layout/Flex.d.ts +6 -11
- package/lib/types/loading-spinner/LoadingSpinner.d.ts +2 -0
- package/lib/types/modal/Modal.d.ts +6 -4
- package/lib/types/popover/Popover.d.ts +37 -66
- package/lib/types/popover/index.d.ts +4 -0
- package/lib/types/popover/use-popover.d.ts +44 -0
- package/lib/types/portal/Portal.d.ts +1 -1
- package/lib/types/progress-bar/ProgressBar.d.ts +5 -2
- package/lib/types/segmented-control/SegmentedControl.d.ts +11 -5
- package/lib/types/side-navigation/SideNavigation.d.ts +35 -19
- package/lib/types/slider/Slider.d.ts +7 -4
- package/lib/types/status-indicator/StatusIndicator.d.ts +4 -2
- package/lib/types/tabs/Tabs.d.ts +10 -19
- package/lib/types/tag/Tag.d.ts +9 -7
- package/lib/types/text-input/TextInput.d.ts +18 -10
- package/lib/types/text-link/TextLink.d.ts +8 -6
- package/lib/types/textarea/Textarea.d.ts +11 -4
- package/lib/types/toast/Toast.d.ts +3 -0
- package/lib/types/tooltip/Tooltip.d.ts +80 -0
- package/lib/types/{tip → tooltip}/index.d.ts +0 -1
- package/lib/types/tooltip/use-tooltip.d.ts +38 -0
- package/lib/types/tree-view/TreeView.d.ts +7 -3
- package/lib/types/tree-view/tree-view-types.d.ts +2 -2
- package/lib/types/typography/Typography.d.ts +16 -5
- package/lib/types/widget/Widget.d.ts +3 -0
- package/lib/types/wizard/Wizard.d.ts +18 -10
- package/package.json +38 -36
- package/lib/cjs/code-block/CodeBlock.js +0 -105
- package/lib/cjs/code-block/CodeBlock.js.map +0 -1
- package/lib/cjs/code-block/index.js.map +0 -1
- package/lib/cjs/code-block/languages.js +0 -303
- package/lib/cjs/code-block/languages.js.map +0 -1
- package/lib/cjs/context-menu/SafeArea.js +0 -84
- package/lib/cjs/context-menu/SafeArea.js.map +0 -1
- package/lib/cjs/cypher-code-block/CypherCodeBlock.js +0 -74
- package/lib/cjs/cypher-code-block/CypherCodeBlock.js.map +0 -1
- package/lib/cjs/cypher-code-block/index.js.map +0 -1
- package/lib/cjs/helpers/types.js.map +0 -1
- package/lib/cjs/table/Components.js +0 -264
- package/lib/cjs/table/Components.js.map +0 -1
- package/lib/cjs/table/Table.js +0 -100
- package/lib/cjs/table/Table.js.map +0 -1
- package/lib/cjs/table/TableContext.js.map +0 -1
- package/lib/cjs/table/helpers.js +0 -86
- package/lib/cjs/table/helpers.js.map +0 -1
- package/lib/cjs/table/index.js +0 -55
- package/lib/cjs/table/index.js.map +0 -1
- package/lib/cjs/text-input-preview/TextInputPreview.js +0 -75
- package/lib/cjs/text-input-preview/TextInputPreview.js.map +0 -1
- package/lib/cjs/text-input-preview/index.js +0 -38
- package/lib/cjs/text-input-preview/index.js.map +0 -1
- package/lib/cjs/tip/Tip.js +0 -196
- package/lib/cjs/tip/Tip.js.map +0 -1
- package/lib/cjs/tip/Tooltip.js +0 -56
- package/lib/cjs/tip/Tooltip.js.map +0 -1
- package/lib/cjs/tip/index.js.map +0 -1
- package/lib/esm/code-block/CodeBlock.js +0 -79
- package/lib/esm/code-block/CodeBlock.js.map +0 -1
- package/lib/esm/code-block/index.js.map +0 -1
- package/lib/esm/code-block/languages.js +0 -302
- package/lib/esm/code-block/languages.js.map +0 -1
- package/lib/esm/context-menu/SafeArea.js +0 -81
- package/lib/esm/context-menu/SafeArea.js.map +0 -1
- package/lib/esm/cypher-code-block/CypherCodeBlock.js +0 -48
- package/lib/esm/cypher-code-block/CypherCodeBlock.js.map +0 -1
- package/lib/esm/cypher-code-block/index.js.map +0 -1
- package/lib/esm/helpers/types.js.map +0 -1
- package/lib/esm/table/Components.js +0 -244
- package/lib/esm/table/Components.js.map +0 -1
- package/lib/esm/table/Table.js +0 -97
- package/lib/esm/table/Table.js.map +0 -1
- package/lib/esm/table/TableContext.js.map +0 -1
- package/lib/esm/table/helpers.js +0 -81
- package/lib/esm/table/helpers.js.map +0 -1
- package/lib/esm/table/index.js +0 -25
- package/lib/esm/table/index.js.map +0 -1
- package/lib/esm/text-input-preview/TextInputPreview.js +0 -72
- package/lib/esm/text-input-preview/TextInputPreview.js.map +0 -1
- package/lib/esm/text-input-preview/index.js +0 -22
- package/lib/esm/text-input-preview/index.js.map +0 -1
- package/lib/esm/tip/Tip.js +0 -186
- package/lib/esm/tip/Tip.js.map +0 -1
- package/lib/esm/tip/Tooltip.js +0 -50
- package/lib/esm/tip/Tooltip.js.map +0 -1
- package/lib/esm/tip/index.js.map +0 -1
- package/lib/types/code-block/languages.d.ts +0 -23
- package/lib/types/cypher-code-block/CypherCodeBlock.d.ts +0 -33
- package/lib/types/helpers/types.d.ts +0 -42
- package/lib/types/table/Components.d.ts +0 -81
- package/lib/types/table/Table.d.ts +0 -62
- package/lib/types/table/TableContext.d.ts +0 -61
- package/lib/types/table/helpers.d.ts +0 -39
- package/lib/types/table/index.d.ts +0 -24
- package/lib/types/text-input-preview/TextInputPreview.d.ts +0 -59
- package/lib/types/tip/Tip.d.ts +0 -168
|
@@ -19,16 +19,11 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
import React
|
|
23
|
-
import { type
|
|
22
|
+
import React from 'react';
|
|
23
|
+
import { type Radius, type Spacing } from './types';
|
|
24
|
+
import { type PolymorphicComponentPropsWithRef } from '../_common/types';
|
|
24
25
|
type AllowedFlexElements = 'div' | 'span' | 'ul' | 'ol' | 'li';
|
|
25
|
-
type BaseFlexProps
|
|
26
|
-
/**
|
|
27
|
-
* The DOM element to render as the Flex,
|
|
28
|
-
* meaning the root node of the children collection.
|
|
29
|
-
* @default div
|
|
30
|
-
*/
|
|
31
|
-
as?: AllowedFlexElements;
|
|
26
|
+
type BaseFlexProps = {
|
|
32
27
|
/**
|
|
33
28
|
* @default tokens.space['4']
|
|
34
29
|
*/
|
|
@@ -70,9 +65,9 @@ type BaseFlexProps<T extends CustomElementType> = {
|
|
|
70
65
|
*/
|
|
71
66
|
alignItems?: React.CSSProperties['alignItems'];
|
|
72
67
|
children?: React.ReactNode;
|
|
68
|
+
style?: React.CSSProperties;
|
|
73
69
|
};
|
|
74
|
-
|
|
75
|
-
type FlexComponent = <T extends CustomElementType>(props: FlexProps<T>) => React.ReactNode;
|
|
70
|
+
type FlexComponent = <T extends AllowedFlexElements = 'div'>(props: PolymorphicComponentPropsWithRef<T, BaseFlexProps>) => React.ReactNode | null;
|
|
76
71
|
/**
|
|
77
72
|
* Flex is a general-purpose container that helps
|
|
78
73
|
* lay out components with consistent spacing in a row or column.
|
|
@@ -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 { type HtmlAttributes } from '../_common/types';
|
|
22
23
|
/**
|
|
23
24
|
*
|
|
24
25
|
*
|
|
@@ -29,6 +30,7 @@ import React from 'react';
|
|
|
29
30
|
export type LoadingSpinnerProps = {
|
|
30
31
|
size?: 'small' | 'medium' | 'large';
|
|
31
32
|
className?: string;
|
|
33
|
+
htmlAttributes?: HtmlAttributes<'div'>;
|
|
32
34
|
};
|
|
33
35
|
/**
|
|
34
36
|
*
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import { type
|
|
22
|
+
import { type HtmlAttributes } from '../_common/types';
|
|
23
23
|
export declare enum ModalCloseReason {
|
|
24
24
|
BACKDROP_CLICK = "backdropClick",
|
|
25
25
|
ESCAPE_KEY_DOWN = "escapeKeyDown"
|
|
26
26
|
}
|
|
27
27
|
export interface ModalProps {
|
|
28
|
-
|
|
28
|
+
isOpen: boolean;
|
|
29
29
|
children: React.ReactNode;
|
|
30
30
|
/**
|
|
31
31
|
* We provide convenient default sizes for the modal,
|
|
@@ -36,8 +36,10 @@ export interface ModalProps {
|
|
|
36
36
|
container?: Element;
|
|
37
37
|
onClose?: (e: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>, reason?: ModalCloseReason) => void;
|
|
38
38
|
/** Forwards the props to the modal container's wrapper - use with caution */
|
|
39
|
-
rootProps?:
|
|
39
|
+
rootProps?: HtmlAttributes<'div'>;
|
|
40
40
|
/** Forwards the props to the modal container */
|
|
41
|
-
modalProps?:
|
|
41
|
+
modalProps?: HtmlAttributes<'div'>;
|
|
42
|
+
/** HTML attributes */
|
|
43
|
+
htmlAttributes?: HtmlAttributes<'div'>;
|
|
42
44
|
}
|
|
43
45
|
export declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -18,72 +18,43 @@
|
|
|
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 React
|
|
22
|
-
import
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
|
|
21
|
+
import React from 'react';
|
|
22
|
+
import { type OffsetOptions } from '@floating-ui/react';
|
|
23
|
+
export type PlacementOptions = 'bottom-end-top-end' | 'bottom-start-top-start' | 'bottom-middle-top-middle' | 'top-end-bottom-end' | 'top-start-bottom-start' | 'top-middle-bottom-middle' | 'bottom-start-bottom-end' | 'top-start-top-end' | 'middle-start-middle-end' | 'bottom-end-bottom-start' | 'top-end-top-start' | 'middle-end-middle-start';
|
|
24
|
+
export interface PopoverProps {
|
|
25
|
+
/** if the popover is open */
|
|
26
|
+
isOpen?: boolean;
|
|
27
|
+
children: React.ReactNode;
|
|
28
|
+
/** Can be used if the anchor should be separated from the trigger */
|
|
29
|
+
anchorElement?: Element | null;
|
|
30
|
+
/** The placement of the floating element is determined by two sets of words. The first set of words specifies the point on the anchor element where the floating element will be attached. The second set of coordinates specifies the point on the floating element that will attach to the anchor element.*/
|
|
31
|
+
placement?: PlacementOptions;
|
|
32
|
+
/** can take either a number, an object or a function. Full documentation here: https://floating-ui.com/docs/offset */
|
|
33
|
+
offset?: OffsetOptions;
|
|
34
|
+
/** Called when the floating element is opened or closed */
|
|
35
|
+
onOpenChange?: (isOpen: boolean, event?: Event) => void;
|
|
36
|
+
/** Use anchorEl for portal's container. Should be used if the popover is inside an Dialog */
|
|
37
|
+
hasAnchorPortal?: boolean;
|
|
38
|
+
/** If the popover should constrain the focus inside the popover while open */
|
|
39
|
+
shouldCaptureFocus?: boolean;
|
|
40
|
+
/** The role of the popover */
|
|
41
|
+
role?: 'tooltip' | 'dialog' | 'alertdialog' | 'menu' | 'listbox' | 'grid' | 'tree';
|
|
42
|
+
}
|
|
43
|
+
export declare const usePopoverContext: () => import("./use-popover").UsePopoverReturn;
|
|
44
|
+
export declare const Popover: {
|
|
45
|
+
({ children, anchorElement, placement, isOpen, offset, hasAnchorPortal, shouldCaptureFocus, onOpenChange, role, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
Trigger: React.ForwardRefExoticComponent<PopoverTriggerProps & React.RefAttributes<HTMLElement>>;
|
|
47
|
+
Content: React.ForwardRefExoticComponent<{
|
|
48
|
+
htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
|
|
49
|
+
as?: React.ElementType<any> | undefined;
|
|
50
|
+
} & PopoverContentProps & React.RefAttributes<unknown>>;
|
|
32
51
|
};
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
anchorEl?: HTMLElement | React.RefObject<HTMLElement> | null;
|
|
40
|
-
/**
|
|
41
|
-
* The position on the anchor element
|
|
42
|
-
* that the menu should attach to
|
|
43
|
-
*
|
|
44
|
-
* +-----------------+
|
|
45
|
-
* | |
|
|
46
|
-
* | Popover | +--Transform Origin
|
|
47
|
-
* | Parent Element | | top, left
|
|
48
|
-
* | | |
|
|
49
|
-
* +-----------------+ |
|
|
50
|
-
* | +-------------+
|
|
51
|
-
* Anchor Origin ----+ | Popped |
|
|
52
|
-
* bottom,right | Element |
|
|
53
|
-
* +-------------+
|
|
54
|
-
*
|
|
55
|
-
*/
|
|
56
|
-
anchorOrigin?: {
|
|
57
|
-
vertical: Vertical;
|
|
58
|
-
horizontal: Horizontal;
|
|
59
|
-
};
|
|
60
|
-
/** The position on the menu element that should attach to the anchorOrigin point
|
|
61
|
-
on the anchorEl */
|
|
62
|
-
transformOrigin?: {
|
|
63
|
-
vertical: Vertical;
|
|
64
|
-
horizontal: Horizontal;
|
|
65
|
-
};
|
|
66
|
-
/** The offset number in px of the transform origin point relative to the anchor origin point */
|
|
67
|
-
transformOriginOffsetFromAnchorOrigin?: {
|
|
68
|
-
vertical: number;
|
|
69
|
-
horizontal: number;
|
|
70
|
-
};
|
|
71
|
-
onClose?: (e: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>) => void;
|
|
72
|
-
/** Additional classes */
|
|
52
|
+
export interface PopoverTriggerProps {
|
|
53
|
+
children: React.ReactNode;
|
|
54
|
+
hasButtonWrapper?: boolean;
|
|
55
|
+
}
|
|
56
|
+
export interface PopoverContentProps {
|
|
57
|
+
children: React.ReactNode;
|
|
73
58
|
className?: string;
|
|
74
|
-
|
|
75
|
-
nested?: boolean;
|
|
76
|
-
/** Disable backdrop - Allows event capturing - and pointer events to pass to elements below */
|
|
77
|
-
disableBackdrop?: boolean;
|
|
78
|
-
/** Use anchorEl for portal's container */
|
|
79
|
-
anchorPortal?: boolean;
|
|
80
|
-
/** If the popover should constrain the focus inside the popover while open */
|
|
81
|
-
captureFocus?: boolean;
|
|
82
|
-
/**
|
|
83
|
-
* Props to pass to the FocusLock component
|
|
84
|
-
* @see https://github.com/theKashey/react-focus-lock
|
|
85
|
-
*/
|
|
86
|
-
focusLockProps?: ComponentProps<typeof FocusLock>;
|
|
59
|
+
style?: React.CSSProperties;
|
|
87
60
|
}
|
|
88
|
-
export declare const Popover: React.ForwardRefExoticComponent<Omit<PopoverProps, "ref"> & React.RefAttributes<unknown>>;
|
|
89
|
-
export {};
|
|
@@ -19,3 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
export * from './Popover';
|
|
22
|
+
import { type PopoverOptions } from './use-popover';
|
|
23
|
+
export type { PopoverOptions };
|
|
24
|
+
import { type OffsetOptions, type Placement } from '@floating-ui/react';
|
|
25
|
+
export type { OffsetOptions as PopoverOffsetOptions, Placement as PopoverPlacement, };
|
|
@@ -0,0 +1,44 @@
|
|
|
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 { type OffsetOptions, type Placement, useFloating, type UseInteractionsReturn } from '@floating-ui/react';
|
|
22
|
+
export interface PopoverOptions {
|
|
23
|
+
isInitialOpen?: boolean;
|
|
24
|
+
placement?: Placement;
|
|
25
|
+
isOpen?: boolean;
|
|
26
|
+
onOpenChange?: (open: boolean, event?: Event) => void;
|
|
27
|
+
offsetOption?: OffsetOptions;
|
|
28
|
+
anchorElement?: Element | null;
|
|
29
|
+
anchorElementAsPortalAnchor?: boolean;
|
|
30
|
+
shouldCaptureFocus?: boolean;
|
|
31
|
+
role?: 'tooltip' | 'dialog' | 'alertdialog' | 'menu' | 'listbox' | 'grid' | 'tree';
|
|
32
|
+
}
|
|
33
|
+
export interface UsePopoverReturn extends UseInteractionsReturn, ReturnType<typeof useFloating> {
|
|
34
|
+
isOpen: boolean;
|
|
35
|
+
setIsOpen: (isOpen: boolean) => void;
|
|
36
|
+
labelId: string | undefined;
|
|
37
|
+
descriptionId: string | undefined;
|
|
38
|
+
transitionStyles: React.CSSProperties;
|
|
39
|
+
setLabelId: (labelId: string | undefined) => void;
|
|
40
|
+
setDescriptionId: (descriptionId: string | undefined) => void;
|
|
41
|
+
anchorElementAsPortalAnchor: boolean | undefined;
|
|
42
|
+
shouldCaptureFocus: boolean | undefined;
|
|
43
|
+
}
|
|
44
|
+
export declare function usePopover({ isInitialOpen, placement, isOpen: controlledOpen, onOpenChange: setControlledOpen, offsetOption, anchorElement, anchorElementAsPortalAnchor, shouldCaptureFocus, role: roleProp, }?: PopoverOptions): UsePopoverReturn;
|
|
@@ -19,10 +19,13 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
|
-
|
|
22
|
+
import { type HtmlAttributes } from '../_common/types';
|
|
23
|
+
export interface ProgressBarProps {
|
|
23
24
|
heading?: string;
|
|
24
25
|
value: number;
|
|
25
26
|
size: 'small' | 'large';
|
|
26
27
|
className?: string;
|
|
28
|
+
/** HTML attributes */
|
|
29
|
+
htmlAttributes?: HtmlAttributes<'div'>;
|
|
27
30
|
}
|
|
28
|
-
export declare const ProgressBar: React.ForwardRefExoticComponent<
|
|
31
|
+
export declare const ProgressBar: React.ForwardRefExoticComponent<ProgressBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -19,9 +19,10 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import { type
|
|
22
|
+
import { type PolymorphicComponentPropsWithRef } from '../_common/types';
|
|
23
23
|
type SegmentedControlID = string | number;
|
|
24
|
-
export interface SegmentedControlProps<T extends SegmentedControlID>
|
|
24
|
+
export interface SegmentedControlProps<T extends SegmentedControlID> {
|
|
25
|
+
className?: string;
|
|
25
26
|
/** Size of the selector */
|
|
26
27
|
size?: 'small' | 'large';
|
|
27
28
|
/** If selector items will include only icons (makes controls rectangular) */
|
|
@@ -35,10 +36,15 @@ export interface SegmentedControlProps<T extends SegmentedControlID> extends Ele
|
|
|
35
36
|
selected: T;
|
|
36
37
|
children: React.ReactNode | string;
|
|
37
38
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
type SegmentControlComponent = <U extends SegmentedControlID, T extends React.ElementType = 'div'>(props: PolymorphicComponentPropsWithRef<T, SegmentedControlProps<U>>) => React.ReactNode | null;
|
|
40
|
+
declare const SegmentedControl: SegmentControlComponent & {
|
|
41
|
+
Item: React.ForwardRefExoticComponent<{
|
|
42
|
+
htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
|
|
43
|
+
as?: React.ElementType<any> | undefined;
|
|
41
44
|
} & {
|
|
45
|
+
as?: string | React.ComponentType<any>;
|
|
46
|
+
className?: string;
|
|
47
|
+
children?: React.ReactNode;
|
|
42
48
|
value: string;
|
|
43
49
|
} & React.RefAttributes<unknown>>;
|
|
44
50
|
};
|
|
@@ -19,42 +19,58 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import { type
|
|
22
|
+
import { type PolymorphicComponent, type PolymorphicComponentPropsWithRef, type HtmlAttributes } from '../_common/types';
|
|
23
23
|
type SideNavigationPosition = 'left' | 'right';
|
|
24
24
|
type SideNavigationSize = 'small' | 'large';
|
|
25
|
-
interface SideNavigationProps
|
|
25
|
+
interface SideNavigationProps {
|
|
26
26
|
/** True if the menu is expanded. */
|
|
27
|
-
|
|
27
|
+
isExpanded: boolean;
|
|
28
28
|
/** What to do on expanded change. */
|
|
29
|
-
onExpandedChange?: (
|
|
29
|
+
onExpandedChange?: (isExpanded: boolean) => void;
|
|
30
30
|
/** True if icons will be used in the menu. */
|
|
31
|
-
|
|
31
|
+
hasIconMenu?: boolean;
|
|
32
32
|
/** Position. */
|
|
33
33
|
position?: SideNavigationPosition;
|
|
34
34
|
/** Size of the component */
|
|
35
35
|
size?: SideNavigationSize;
|
|
36
|
+
/** HTML attributes */
|
|
37
|
+
htmlAttributes?: HtmlAttributes<'div'>;
|
|
38
|
+
children?: React.ReactNode;
|
|
39
|
+
className?: string;
|
|
36
40
|
}
|
|
37
|
-
export type SideNavigationListProps =
|
|
38
|
-
|
|
41
|
+
export type SideNavigationListProps = {
|
|
42
|
+
className?: string;
|
|
43
|
+
children?: React.ReactNode;
|
|
44
|
+
/** HTML attributes */
|
|
45
|
+
htmlAttributes?: HtmlAttributes<'ul'>;
|
|
46
|
+
};
|
|
47
|
+
export interface SideNavigationItemProps {
|
|
39
48
|
icon?: React.ReactNode;
|
|
40
49
|
children?: React.ReactNode;
|
|
41
|
-
|
|
50
|
+
isSelected?: boolean;
|
|
42
51
|
/** Flag to indicate if the side navigation item can be selected or not */
|
|
43
|
-
|
|
52
|
+
isSelectable?: boolean;
|
|
53
|
+
className?: string;
|
|
54
|
+
style?: React.CSSProperties;
|
|
44
55
|
}
|
|
45
|
-
|
|
56
|
+
type SideNavigationItemComponent = <T extends React.ElementType = 'a'>(props: PolymorphicComponentPropsWithRef<T, SideNavigationItemProps>) => React.ReactNode | null;
|
|
57
|
+
export interface SideNavigationItemBadgeProps {
|
|
46
58
|
children?: number;
|
|
47
59
|
type?: 'info' | 'warning' | 'critical';
|
|
60
|
+
/** HTML attributes */
|
|
61
|
+
htmlAttributes?: HtmlAttributes<'span'>;
|
|
62
|
+
className?: string;
|
|
63
|
+
style: React.CSSProperties;
|
|
48
64
|
}
|
|
49
|
-
export type SideNavigationGroupHeaderProps =
|
|
65
|
+
export type SideNavigationGroupHeaderProps = {
|
|
66
|
+
children?: React.ReactNode;
|
|
67
|
+
className?: string;
|
|
68
|
+
style?: React.CSSProperties;
|
|
69
|
+
};
|
|
50
70
|
declare const SideNavigation: React.ForwardRefExoticComponent<SideNavigationProps & React.RefAttributes<HTMLDivElement>> & {
|
|
51
|
-
List: React.ForwardRefExoticComponent<
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
as?: string | React.ComponentType<any>;
|
|
56
|
-
} & React.RefAttributes<HTMLParagraphElement>>;
|
|
57
|
-
Item: React.ForwardRefExoticComponent<SideNavigationItemProps & React.RefAttributes<any>>;
|
|
58
|
-
ItemBadge: React.ForwardRefExoticComponent<SideNavigationItemBadgeProps & React.RefAttributes<any>>;
|
|
71
|
+
List: React.ForwardRefExoticComponent<SideNavigationListProps & React.RefAttributes<HTMLUListElement>>;
|
|
72
|
+
GroupHeader: PolymorphicComponent<SideNavigationGroupHeaderProps, "li">;
|
|
73
|
+
Item: SideNavigationItemComponent;
|
|
74
|
+
ItemBadge: React.ForwardRefExoticComponent<SideNavigationItemBadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
59
75
|
};
|
|
60
76
|
export { SideNavigation };
|
|
@@ -19,13 +19,11 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import { type
|
|
22
|
+
import { type HtmlAttributes } from '../_common/types';
|
|
23
23
|
export interface SliderPropsBase {
|
|
24
|
-
as?: string | React.ComponentType<any>;
|
|
25
24
|
/** Forwards the props to the slider container's wrapper */
|
|
26
|
-
rootProps?: ComponentPropsWithoutRefAsObj<'div'>;
|
|
27
25
|
/** Forwards the input element(s) of the slider */
|
|
28
|
-
inputProps?:
|
|
26
|
+
inputProps?: HtmlAttributes<'input'>;
|
|
29
27
|
/**
|
|
30
28
|
* Which value interval will be added or removed from
|
|
31
29
|
* the current value when moving the slider button.
|
|
@@ -54,6 +52,10 @@ export interface SliderPropsBase {
|
|
|
54
52
|
* of the steps in the slider.
|
|
55
53
|
*/
|
|
56
54
|
showSteps?: boolean;
|
|
55
|
+
/** HTML attributes */
|
|
56
|
+
htmlAttributes?: HtmlAttributes<'div'>;
|
|
57
|
+
/** Additional classnames */
|
|
58
|
+
className?: string;
|
|
57
59
|
}
|
|
58
60
|
type SingleSlider = SliderPropsBase & {
|
|
59
61
|
type?: 'single' | undefined;
|
|
@@ -70,6 +72,7 @@ type RangeSlider = SliderPropsBase & {
|
|
|
70
72
|
*/
|
|
71
73
|
values: [number, number];
|
|
72
74
|
onChange: (value: [number, number]) => void;
|
|
75
|
+
className?: string;
|
|
73
76
|
};
|
|
74
77
|
export type SliderProps = SingleSlider | RangeSlider;
|
|
75
78
|
export declare const Slider: (props: SliderProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
@@ -19,9 +19,11 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import { type
|
|
23
|
-
export interface StatusIndicatorProps
|
|
22
|
+
import { type HtmlAttributes } from '../_common/types';
|
|
23
|
+
export interface StatusIndicatorProps {
|
|
24
24
|
/** Status indicator type. Defaults to "unknown". */
|
|
25
25
|
type?: 'unknown' | 'success' | 'info' | 'warning' | 'danger';
|
|
26
|
+
htmlAttributes?: HtmlAttributes<'span'>;
|
|
27
|
+
className?: string;
|
|
26
28
|
}
|
|
27
29
|
export declare const StatusIndicator: React.ForwardRefExoticComponent<StatusIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
package/lib/types/tabs/Tabs.d.ts
CHANGED
|
@@ -19,7 +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 { type
|
|
22
|
+
import { type PolymorphicComponentPropsWithRef } from '../_common/types';
|
|
23
23
|
type TabId = string | number;
|
|
24
24
|
type Size = 'small' | 'large';
|
|
25
25
|
type Fill = 'underline' | 'filled';
|
|
@@ -37,23 +37,17 @@ export interface BaseTabsProps<T extends TabId> {
|
|
|
37
37
|
fill?: Fill;
|
|
38
38
|
size?: Size;
|
|
39
39
|
className?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Replace the component rendered to wrap the tabs
|
|
42
|
-
*/
|
|
43
|
-
as?: string | React.ComponentType<any>;
|
|
44
40
|
}
|
|
45
|
-
|
|
41
|
+
type TabsComponentType = <U extends TabId, T extends React.ElementType = 'div'>(props: PolymorphicComponentPropsWithRef<T, BaseTabsProps<U>>) => React.ReactNode | null;
|
|
42
|
+
interface TabProps<T extends TabId> {
|
|
46
43
|
tabId: T;
|
|
47
44
|
children: React.ReactNode | string;
|
|
48
45
|
className?: string;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Replace the component rendered as the tab
|
|
52
|
-
*/
|
|
53
|
-
as?: string | React.ComponentType<any>;
|
|
46
|
+
isDisabled?: boolean;
|
|
54
47
|
}
|
|
48
|
+
type TabsTabComponent = <U extends TabId = TabId, T extends React.ElementType = 'div'>(props: PolymorphicComponentPropsWithRef<T, TabProps<U>>) => React.ReactNode | null;
|
|
55
49
|
interface TabPanelProps {
|
|
56
|
-
children: React.ReactNode
|
|
50
|
+
children: React.ReactNode;
|
|
57
51
|
/**
|
|
58
52
|
* The currently selected tabId. Determines if
|
|
59
53
|
* this tab is visible or not
|
|
@@ -61,13 +55,10 @@ interface TabPanelProps {
|
|
|
61
55
|
value: TabId;
|
|
62
56
|
tabId: TabId;
|
|
63
57
|
className?: string;
|
|
64
|
-
/**
|
|
65
|
-
* Replace the component rendered as the tab panel
|
|
66
|
-
*/
|
|
67
|
-
as?: string | React.ComponentType<any>;
|
|
68
58
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
59
|
+
type TabsTabPanelComponent = <T extends React.ElementType = 'div'>(props: PolymorphicComponentPropsWithRef<T, TabPanelProps>) => React.ReactNode | null;
|
|
60
|
+
declare const Tabs: TabsComponentType & {
|
|
61
|
+
Tab: TabsTabComponent;
|
|
62
|
+
TabPanel: TabsTabPanelComponent;
|
|
72
63
|
};
|
|
73
64
|
export { Tabs };
|
package/lib/types/tag/Tag.d.ts
CHANGED
|
@@ -19,7 +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 { type
|
|
22
|
+
import { type HtmlAttributes } from '../_common/types';
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
25
25
|
*
|
|
@@ -27,24 +27,26 @@ import { type ElementBase } from '../helpers';
|
|
|
27
27
|
*
|
|
28
28
|
*
|
|
29
29
|
*/
|
|
30
|
-
export interface CommonTagProps
|
|
30
|
+
export interface CommonTagProps {
|
|
31
31
|
children: string | React.ReactNode;
|
|
32
32
|
/** Type of the tag */
|
|
33
33
|
type?: 'destructive' | 'default';
|
|
34
34
|
/** Size of the tag */
|
|
35
35
|
size?: 'small' | 'medium' | 'large';
|
|
36
|
+
className?: string;
|
|
37
|
+
htmlAttributes?: HtmlAttributes<'div'>;
|
|
36
38
|
}
|
|
37
|
-
export interface
|
|
39
|
+
export interface RemovableTagProps extends CommonTagProps {
|
|
38
40
|
/** Adds a "x" icon is set to true */
|
|
39
|
-
|
|
40
|
-
/** Handler when remove icon is clicked. Required if `
|
|
41
|
+
isRemovable: true;
|
|
42
|
+
/** Handler when remove icon is clicked. Required if `removable` is true */
|
|
41
43
|
onRemove: (e: React.KeyboardEvent<HTMLElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
42
44
|
}
|
|
43
45
|
export interface NonRemovableTagProps extends CommonTagProps {
|
|
44
|
-
|
|
46
|
+
isRemovable?: false;
|
|
45
47
|
onRemove?: never;
|
|
46
48
|
}
|
|
47
|
-
export type TagProps =
|
|
49
|
+
export type TagProps = RemovableTagProps | NonRemovableTagProps;
|
|
48
50
|
/**
|
|
49
51
|
*
|
|
50
52
|
*
|
|
@@ -19,28 +19,36 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import { type ReactElement, type ReactNode } from 'react';
|
|
22
|
-
import { type
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
label?: ReactNode;
|
|
26
|
-
/** Help message */
|
|
22
|
+
import { type TooltipObjectProps } from '../_common/input/types';
|
|
23
|
+
import { type HtmlAttributes } from '../_common/types';
|
|
24
|
+
export interface TextInputProps {
|
|
27
25
|
helpText?: string | ReactNode;
|
|
28
26
|
/** Error message */
|
|
29
27
|
errorText?: string | ReactNode;
|
|
30
28
|
/** Element to be shown as left icon */
|
|
31
|
-
|
|
29
|
+
leftElement?: ReactElement;
|
|
32
30
|
/** Element to be shown as right icon */
|
|
33
|
-
|
|
34
|
-
/** Whether the input field is readonly */
|
|
35
|
-
readOnly?: boolean;
|
|
31
|
+
rightElement?: ReactElement;
|
|
36
32
|
/** Size of the input field */
|
|
37
33
|
size?: 'small' | 'medium' | 'large';
|
|
34
|
+
/** Whether the input field is readonly */
|
|
35
|
+
isReadOnly?: boolean;
|
|
38
36
|
/** If the component is optional to fill in */
|
|
39
37
|
isOptional?: boolean;
|
|
38
|
+
isDisabled?: boolean;
|
|
39
|
+
isRequired?: boolean;
|
|
40
|
+
value?: string;
|
|
41
|
+
/** Displays with fluid width */
|
|
42
|
+
isFluid?: boolean;
|
|
40
43
|
/** Information to be displayed in the information tooltip */
|
|
41
44
|
informationIconText?: React.ReactNode;
|
|
45
|
+
/** Sets the label */
|
|
46
|
+
label?: string | React.ReactNode;
|
|
47
|
+
/** Classname to the `input` element */
|
|
48
|
+
className?: string;
|
|
42
49
|
/** Pass props to the underlying Tip component */
|
|
43
50
|
tooltipProps?: TooltipObjectProps;
|
|
51
|
+
htmlAttributes?: HtmlAttributes<'input'>;
|
|
44
52
|
}
|
|
45
53
|
/**
|
|
46
54
|
*
|
|
@@ -49,4 +57,4 @@ export interface TextInputProperties extends Omit<CommonInputProps, 'label'> {
|
|
|
49
57
|
*
|
|
50
58
|
*
|
|
51
59
|
*/
|
|
52
|
-
export declare const TextInput: import("react").ForwardRefExoticComponent<
|
|
60
|
+
export declare const TextInput: import("react").ForwardRefExoticComponent<TextInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import { type
|
|
23
|
-
export interface TextLinkProps
|
|
22
|
+
import { type PolymorphicComponentPropsWithRef } from '../_common/types';
|
|
23
|
+
export interface TextLinkProps {
|
|
24
24
|
/** The text of the link. */
|
|
25
25
|
children: React.ReactNode;
|
|
26
26
|
/** The hypertext reference. */
|
|
@@ -29,8 +29,10 @@ export interface TextLinkProps extends ElementBase<HTMLAnchorElement> {
|
|
|
29
29
|
* Adds an external-icon and sets the `target` to `"_blank"`.
|
|
30
30
|
* If a `target` is set, the component will use that value instead.
|
|
31
31
|
*/
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
isExternalLink?: boolean;
|
|
33
|
+
target?: string;
|
|
34
|
+
className?: string;
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
type TextLinkComponent = <T extends React.ElementType = 'div'>(props: PolymorphicComponentPropsWithRef<T, TextLinkProps>) => React.ReactNode | null;
|
|
37
|
+
export declare const TextLink: TextLinkComponent;
|
|
38
|
+
export {};
|