@neo4j-ndl/react 2.16.26 → 3.0.0-alpha-9886872
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/{textarea → 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/{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 +4 -6
- 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 +7 -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-area/TextArea.js +70 -0
- package/lib/cjs/text-area/TextArea.js.map +1 -0
- package/lib/cjs/{cypher-code-block → text-area}/index.js +1 -1
- package/lib/cjs/text-area/index.js.map +1 -0
- 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/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 +4 -6
- 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 +8 -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-area/TextArea.js +67 -0
- package/lib/esm/text-area/TextArea.js.map +1 -0
- package/lib/esm/{textarea → text-area}/index.js +1 -1
- package/lib/esm/text-area/index.js.map +1 -0
- 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/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/{textarea → charts}/index.d.ts +1 -1
- package/lib/{esm/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/{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/cypher-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 +4 -6
- 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 +13 -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/{textarea/Textarea.d.ts → text-area/TextArea.d.ts} +22 -6
- package/lib/types/{cypher-code-block → text-area}/index.d.ts +1 -1
- package/lib/types/text-input/TextInput.d.ts +18 -10
- package/lib/types/text-link/TextLink.d.ts +8 -6
- 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 +37 -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/textarea/Textarea.js +0 -84
- package/lib/cjs/textarea/Textarea.js.map +0 -1
- package/lib/cjs/textarea/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/textarea/Textarea.js +0 -81
- package/lib/esm/textarea/Textarea.js.map +0 -1
- package/lib/esm/textarea/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,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 {};
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
import React, { type ReactNode } from 'react';
|
|
22
22
|
import { toast as sonnerToast } from 'sonner';
|
|
23
23
|
import { type ExternalToast as SonnerExternalToast, type ToasterProps as SonnerToasterProps } from './sonner-types';
|
|
24
|
+
import { type HtmlAttributes } from '../_common/types';
|
|
24
25
|
type ToastVariants = 'neutral' | 'success' | 'danger' | 'loading-spinner' | 'progress-bar';
|
|
25
26
|
type ToastCommandVariants = 'neutral' | 'success' | 'danger' | 'loadingSpinner' | 'progressBar';
|
|
26
27
|
type ToastId = string | number;
|
|
@@ -46,6 +47,8 @@ interface BaseToastProps {
|
|
|
46
47
|
/** If a dev wishes to set the underlying framework props (Sonner Toast).
|
|
47
48
|
* https://sonner.emilkowal.ski/toast#api-reference */
|
|
48
49
|
sonnerToastProps?: SonnerExternalToast;
|
|
50
|
+
/** HTML attributes */
|
|
51
|
+
htmlAttributes?: HtmlAttributes<'div'>;
|
|
49
52
|
}
|
|
50
53
|
interface ToastNeutralProps extends BaseToastProps {
|
|
51
54
|
icon?: ReactNode;
|
|
@@ -0,0 +1,80 @@
|
|
|
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 Placement } from '@floating-ui/react';
|
|
22
|
+
import React, { type CSSProperties } from 'react';
|
|
23
|
+
import { Typography } from '../typography';
|
|
24
|
+
import { type HtmlAttributes } from '../_common/types';
|
|
25
|
+
export interface TooltipProps {
|
|
26
|
+
children: React.ReactNode;
|
|
27
|
+
isDisabled?: boolean;
|
|
28
|
+
isInitialOpen?: boolean;
|
|
29
|
+
placement?: Placement;
|
|
30
|
+
isOpen?: boolean;
|
|
31
|
+
type: 'simple' | 'rich';
|
|
32
|
+
onOpenChange?: (open: boolean) => void;
|
|
33
|
+
}
|
|
34
|
+
export declare function Tooltip({ children, isDisabled, type, isInitialOpen, placement, isOpen, onOpenChange, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export declare namespace Tooltip {
|
|
36
|
+
var Content: React.ForwardRefExoticComponent<TooltipContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
var Trigger: React.ForwardRefExoticComponent<TooltipTriggerProps & React.RefAttributes<HTMLElement>>;
|
|
38
|
+
var Header: ({ children, className, passThroughProps, }: TooltipHeaderProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
39
|
+
var Body: ({ children, className, passThroughProps, }: TooltipBodyProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
40
|
+
var Actions: React.ForwardRefExoticComponent<ToolTipActionsProps & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
+
var Action: ({ children, className, onClick, htmlAttributes, }: TooltipActionProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
42
|
+
var ActionClose: React.ForwardRefExoticComponent<TooltipActionCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
43
|
+
}
|
|
44
|
+
export interface TooltipTriggerProps {
|
|
45
|
+
children: React.ReactNode;
|
|
46
|
+
hasButtonWrapper?: boolean;
|
|
47
|
+
className?: string;
|
|
48
|
+
htmlAttributes?: HtmlAttributes<'button'>;
|
|
49
|
+
}
|
|
50
|
+
export interface TooltipContentProps {
|
|
51
|
+
children: React.ReactNode;
|
|
52
|
+
className?: string;
|
|
53
|
+
style?: CSSProperties;
|
|
54
|
+
htmlAttributes?: HtmlAttributes<'div'>;
|
|
55
|
+
}
|
|
56
|
+
export type TooltipHeaderProps = {
|
|
57
|
+
children: React.ReactNode;
|
|
58
|
+
className?: string;
|
|
59
|
+
passThroughProps?: Partial<React.ComponentPropsWithoutRef<typeof Typography>>;
|
|
60
|
+
};
|
|
61
|
+
export type TooltipBodyProps = {
|
|
62
|
+
children: React.ReactNode;
|
|
63
|
+
className?: string;
|
|
64
|
+
passThroughProps?: Partial<React.ComponentPropsWithoutRef<typeof Typography>>;
|
|
65
|
+
};
|
|
66
|
+
export interface ToolTipActionsProps {
|
|
67
|
+
children: React.ReactNode;
|
|
68
|
+
className?: string;
|
|
69
|
+
htmlAttributes?: HtmlAttributes<'div'>;
|
|
70
|
+
}
|
|
71
|
+
export type TooltipActionProps = {
|
|
72
|
+
children: React.ReactNode;
|
|
73
|
+
className?: string;
|
|
74
|
+
onClick?: () => void;
|
|
75
|
+
htmlAttributes?: HtmlAttributes<'button'>;
|
|
76
|
+
};
|
|
77
|
+
export type TooltipActionCloseProps = {
|
|
78
|
+
className?: string;
|
|
79
|
+
htmlAttributes?: HtmlAttributes<'button'>;
|
|
80
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
|
|
22
|
+
import { type Placement, type UseInteractionsReturn, type ReferenceType, type UseFloatingReturn } from '@floating-ui/react';
|
|
23
|
+
export interface TooltipOptions {
|
|
24
|
+
isInitialOpen?: boolean;
|
|
25
|
+
placement?: Placement;
|
|
26
|
+
isOpen?: boolean;
|
|
27
|
+
onOpenChange?: (open: boolean) => void;
|
|
28
|
+
type?: 'simple' | 'rich';
|
|
29
|
+
}
|
|
30
|
+
export declare function useTooltip({ isInitialOpen, placement, isOpen: controlledOpen, onOpenChange: setControlledOpen, type, }?: TooltipOptions): {
|
|
31
|
+
isOpen: boolean;
|
|
32
|
+
setOpen: (open: boolean) => void;
|
|
33
|
+
type: 'simple' | 'rich';
|
|
34
|
+
} & UseInteractionsReturn & UseFloatingReturn<ReferenceType>;
|
|
35
|
+
type ContextType = ReturnType<typeof useTooltip> | null;
|
|
36
|
+
export declare const TooltipContext: import("react").Context<ContextType>;
|
|
37
|
+
export declare const useTooltipContext: () => ReturnType<typeof useTooltip>;
|
|
38
|
+
export {};
|
|
@@ -19,15 +19,19 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
+
import React from 'react';
|
|
22
23
|
import { type ItemChangedReason, type TreeItem, type TreeItemComponent } from './tree-view-types';
|
|
24
|
+
import { type HtmlAttributes } from '../_common/types';
|
|
23
25
|
export interface TreeViewProps<T extends Record<string, unknown>, E extends HTMLElement> extends React.HTMLAttributes<HTMLOListElement> {
|
|
24
26
|
items: TreeItem<T>[];
|
|
25
27
|
onItemsChanged: (newItems: TreeItem<T>[], itemChangedReason: ItemChangedReason<T>) => void;
|
|
26
28
|
TreeItemComponent?: TreeItemComponent<T, E>;
|
|
29
|
+
/** HTML attributes */
|
|
30
|
+
htmlAttributes?: HtmlAttributes<'ol'>;
|
|
27
31
|
}
|
|
28
32
|
export declare const TreeView: {
|
|
29
|
-
<T extends Record<string, unknown>, E extends HTMLElement>({ items, TreeItemComponent, onItemsChanged,
|
|
33
|
+
<T extends Record<string, unknown>, E extends HTMLElement>({ items, TreeItemComponent, onItemsChanged, htmlAttributes, }: TreeViewProps<T, E>): import("react/jsx-runtime").JSX.Element;
|
|
30
34
|
TreeItemWrapper: <T extends Record<string, unknown>>(props: import("./tree-view-types").TreeItemComponentProps<T> & {
|
|
31
|
-
children?:
|
|
32
|
-
} &
|
|
35
|
+
children?: React.ReactNode | undefined;
|
|
36
|
+
} & React.RefAttributes<HTMLElement>) => React.ReactNode;
|
|
33
37
|
};
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import { type UniqueIdentifier } from '@dnd-kit/core';
|
|
22
22
|
import { type RefAttributes } from 'react';
|
|
23
|
-
import { type
|
|
23
|
+
import { type IconButton } from '../button';
|
|
24
24
|
export type TreeItem<T> = {
|
|
25
25
|
id: UniqueIdentifier;
|
|
26
26
|
canHaveSubItems: false;
|
|
@@ -41,7 +41,7 @@ export type TextItemData = {
|
|
|
41
41
|
onTextClick?: () => void;
|
|
42
42
|
actions: {
|
|
43
43
|
icon: React.ReactNode;
|
|
44
|
-
buttonProps: Omit<
|
|
44
|
+
buttonProps: Omit<React.ComponentPropsWithoutRef<typeof IconButton>, 'children' | 'as'>;
|
|
45
45
|
}[];
|
|
46
46
|
};
|
|
47
47
|
export type DefaultTreeItem = TreeItem<TextItemData>;
|
|
@@ -19,8 +19,19 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
import { type
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
variant:
|
|
26
|
-
|
|
22
|
+
import { type TypographyVariants } from './types';
|
|
23
|
+
import { type HtmlAttributes, type PolymorphicComponentPropsWithRef } from '../_common/types';
|
|
24
|
+
export type TypographyProps<T extends TypographyVariants> = {
|
|
25
|
+
variant: T;
|
|
26
|
+
className?: string;
|
|
27
|
+
children?: React.ReactNode;
|
|
28
|
+
htmlAttributes?: HtmlAttributes<'span'>;
|
|
29
|
+
} & ({
|
|
30
|
+
as: 'a';
|
|
31
|
+
href: string;
|
|
32
|
+
} | {
|
|
33
|
+
as?: React.ElementType;
|
|
34
|
+
});
|
|
35
|
+
type TypographyComponent = <V extends TypographyVariants, T extends React.ElementType>(props: PolymorphicComponentPropsWithRef<T, TypographyProps<V>>) => React.ReactNode | null;
|
|
36
|
+
export declare const Typography: TypographyComponent;
|
|
37
|
+
export {};
|
|
@@ -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
|
*
|
|
@@ -33,6 +34,8 @@ type CommonProps = {
|
|
|
33
34
|
rightMenu?: React.ReactNode;
|
|
34
35
|
isElevated?: boolean;
|
|
35
36
|
children: React.ReactNode;
|
|
37
|
+
/** HTML attributes */
|
|
38
|
+
htmlAttributes?: HtmlAttributes<'div'>;
|
|
36
39
|
};
|
|
37
40
|
/**
|
|
38
41
|
*
|
|
@@ -18,14 +18,22 @@
|
|
|
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 { type
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
export interface WizardProps extends ElementBase<HTMLDivElement> {
|
|
27
|
-
type?: 'horizontal' | 'vertical' | 'footer';
|
|
28
|
-
activeStep: number;
|
|
29
|
-
steps: (string | JSX.Element)[];
|
|
21
|
+
import React from 'react';
|
|
22
|
+
import { type PolymorphicComponentPropsWithRef } from '../_common/types';
|
|
23
|
+
interface Step {
|
|
24
|
+
content: string | JSX.Element;
|
|
25
|
+
status?: 'default' | 'error';
|
|
30
26
|
}
|
|
31
|
-
export
|
|
27
|
+
export interface WizardProps {
|
|
28
|
+
orientation?: 'horizontal' | 'vertical';
|
|
29
|
+
size?: 'small' | 'large';
|
|
30
|
+
style?: React.CSSProperties;
|
|
31
|
+
className?: string;
|
|
32
|
+
activeStepIndex: number;
|
|
33
|
+
steps: Step[];
|
|
34
|
+
}
|
|
35
|
+
type WizardComponent = <T extends React.ElementType = 'div'>(props: PolymorphicComponentPropsWithRef<T, WizardProps>) => React.ReactNode | null;
|
|
36
|
+
export declare const Wizard: WizardComponent;
|
|
37
|
+
type WizardSmallComponent = <T extends React.ElementType = 'div'>(props: PolymorphicComponentPropsWithRef<T, Omit<WizardProps, 'size'>>) => React.ReactNode | null;
|
|
38
|
+
export declare const WizardSmall: WizardSmallComponent;
|
|
39
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-ndl/react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-alpha-9886872",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "React implementation of Neo4j Design System",
|
|
6
6
|
"keywords": [
|
|
@@ -44,55 +44,56 @@
|
|
|
44
44
|
"@playwright/experimental-ct-react": "1.45.0",
|
|
45
45
|
"@playwright/test": "1.45.0",
|
|
46
46
|
"@svgr/cli": "6.5.1",
|
|
47
|
+
"@types/d3": "7.4.3",
|
|
48
|
+
"@types/d3-shape": "3.1.6",
|
|
47
49
|
"@types/react": "18.2.18",
|
|
48
|
-
"@types/react-datepicker": "
|
|
50
|
+
"@types/react-datepicker": "6.2.0",
|
|
49
51
|
"@types/react-dom": "18.2.7",
|
|
50
|
-
"@types/react-syntax-highlighter": "
|
|
51
|
-
"@types/react-table": "
|
|
52
|
-
"@types/sinon": "17",
|
|
53
|
-
"@types/tinycolor2": "
|
|
54
|
-
"@vitejs/plugin-react": "4.2
|
|
55
|
-
"jsdom": "
|
|
52
|
+
"@types/react-syntax-highlighter": "15.5.13",
|
|
53
|
+
"@types/react-table": "7.7.20",
|
|
54
|
+
"@types/sinon": "17.0.3",
|
|
55
|
+
"@types/tinycolor2": "1.4.6",
|
|
56
|
+
"@vitejs/plugin-react": "4.3.2",
|
|
57
|
+
"jsdom": "25.0.1",
|
|
56
58
|
"react": "18.2.0",
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"sinon": "17.0.1",
|
|
59
|
+
"resize-observer-polyfill": "1.5.1",
|
|
60
|
+
"sinon": "19.0.2",
|
|
60
61
|
"ts-node": "10.9.2",
|
|
61
|
-
"typescript": "5.4
|
|
62
|
-
"vitest": "1.
|
|
62
|
+
"typescript": "5.5.4",
|
|
63
|
+
"vitest": "2.1.2"
|
|
63
64
|
},
|
|
64
65
|
"peerDependencies": {
|
|
65
|
-
"@
|
|
66
|
+
"@tanstack/react-table": "8.20.5",
|
|
66
67
|
"react": ">=16.8.0",
|
|
67
|
-
"react-dom": ">=16.8.0"
|
|
68
|
+
"react-dom": ">=16.8.0",
|
|
69
|
+
"@neo4j-ndl/base": "^3.0.0-alpha-9886872"
|
|
68
70
|
},
|
|
69
71
|
"dependencies": {
|
|
70
72
|
"@dnd-kit/core": "6.1.0",
|
|
71
73
|
"@dnd-kit/sortable": "8.0.0",
|
|
72
|
-
"@floating-ui/react": "0.
|
|
73
|
-
"@floating-ui/react-dom": "2.
|
|
74
|
-
"@heroicons/react": "2.
|
|
75
|
-
"@neo4j-cypher/react-codemirror": "^1.0.1",
|
|
74
|
+
"@floating-ui/react": "0.26.24",
|
|
75
|
+
"@floating-ui/react-dom": "2.1.2",
|
|
76
|
+
"@heroicons/react": "2.1.5",
|
|
76
77
|
"@table-nav/core": "0.0.7",
|
|
77
78
|
"@table-nav/react": "0.0.7",
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"react-
|
|
85
|
-
"react-
|
|
86
|
-
"react-
|
|
87
|
-
"react-
|
|
88
|
-
"react-
|
|
89
|
-
"react-
|
|
90
|
-
"react-
|
|
91
|
-
"react-use": "
|
|
79
|
+
"classnames": "2.5.1",
|
|
80
|
+
"d3": "7.9.0",
|
|
81
|
+
"d3-shape": "3.2.0",
|
|
82
|
+
"date-fns": "4.1.0",
|
|
83
|
+
"detect-browser": "5.3.0",
|
|
84
|
+
"re-resizable": "6.10.0",
|
|
85
|
+
"react-aria": "3.35.0",
|
|
86
|
+
"react-datepicker": "6.9.0",
|
|
87
|
+
"react-dropzone": "14.2.9",
|
|
88
|
+
"react-focus-lock": "2.13.2",
|
|
89
|
+
"react-select": "5.8.1",
|
|
90
|
+
"react-stately": "3.33.0",
|
|
91
|
+
"react-syntax-highlighter": "15.5.0",
|
|
92
|
+
"react-use": "17.5.1",
|
|
92
93
|
"sonner": "1.4.41",
|
|
93
|
-
"tinycolor2": "
|
|
94
|
-
"usehooks-ts": "
|
|
95
|
-
"@neo4j-ndl/base": "
|
|
94
|
+
"tinycolor2": "1.6.0",
|
|
95
|
+
"usehooks-ts": "3.1.0",
|
|
96
|
+
"@neo4j-ndl/base": "3.0.0-alpha-9886872"
|
|
96
97
|
},
|
|
97
98
|
"scripts": {
|
|
98
99
|
"generate-component": "node ./scripts/component-generator.js",
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
|
-
var t = {};
|
|
27
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
|
-
t[p] = s[p];
|
|
29
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
32
|
-
t[p[i]] = s[p[i]];
|
|
33
|
-
}
|
|
34
|
-
return t;
|
|
35
|
-
};
|
|
36
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.CodeBlock = void 0;
|
|
38
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* Copyright (c) "Neo4j"
|
|
42
|
-
* Neo4j Sweden AB [http://neo4j.com]
|
|
43
|
-
*
|
|
44
|
-
* This file is part of Neo4j.
|
|
45
|
-
*
|
|
46
|
-
* Neo4j is free software: you can redistribute it and/or modify
|
|
47
|
-
* it under the terms of the GNU General Public License as published by
|
|
48
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
49
|
-
* (at your option) any later version.
|
|
50
|
-
*
|
|
51
|
-
* This program is distributed in the hope that it will be useful,
|
|
52
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
53
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
54
|
-
* GNU General Public License for more details.
|
|
55
|
-
*
|
|
56
|
-
* You should have received a copy of the GNU General Public License
|
|
57
|
-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
58
|
-
*/
|
|
59
|
-
const react_1 = __importStar(require("react"));
|
|
60
|
-
const react_syntax_highlighter_1 = require("react-syntax-highlighter");
|
|
61
|
-
const prism_1 = require("react-syntax-highlighter/dist/cjs/styles/prism");
|
|
62
|
-
const CodeBlockWrapper_1 = require("../_common/CodeBlockWrapper");
|
|
63
|
-
exports.CodeBlock = react_1.default.forwardRef(function CodeBlock(_a, ref) {
|
|
64
|
-
var { maxHeight, code, language, showLineNumbers, theme, headerTitle, actions, disabled } = _a, restProps = __rest(_a, ["maxHeight", "code", "language", "showLineNumbers", "theme", "headerTitle", "actions", "disabled"]);
|
|
65
|
-
const [shouldShowExpandButton, setShouldShowExpandButton] = (0, react_1.useState)(maxHeight !== undefined);
|
|
66
|
-
const getTheme = () => {
|
|
67
|
-
switch (theme) {
|
|
68
|
-
case 'vs':
|
|
69
|
-
return prism_1.vs;
|
|
70
|
-
case 'base16-ateliersulphurpool.light':
|
|
71
|
-
return prism_1.base16AteliersulphurpoolLight;
|
|
72
|
-
case 'coy':
|
|
73
|
-
return prism_1.coy;
|
|
74
|
-
case 'duotone-light':
|
|
75
|
-
return prism_1.duotoneLight;
|
|
76
|
-
case 'ghcolors':
|
|
77
|
-
return prism_1.ghcolors;
|
|
78
|
-
case 'prism':
|
|
79
|
-
return prism_1.prism;
|
|
80
|
-
case 'solarizedlight':
|
|
81
|
-
return prism_1.solarizedlight;
|
|
82
|
-
default:
|
|
83
|
-
return prism_1.base16AteliersulphurpoolLight;
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
const calculateRightPadding = (() => {
|
|
87
|
-
if (headerTitle === undefined || headerTitle === '') {
|
|
88
|
-
const expandButtonCount = shouldShowExpandButton ? 1 : 0;
|
|
89
|
-
const actionCount = (actions === null || actions === void 0 ? void 0 : actions.length) || 0;
|
|
90
|
-
return Math.max(actionCount * 36, expandButtonCount * 36) + 8;
|
|
91
|
-
}
|
|
92
|
-
})();
|
|
93
|
-
return ((0, jsx_runtime_1.jsx)(CodeBlockWrapper_1.CodeBlockWrapper, Object.assign({}, restProps, { ref: ref, maxHeight: maxHeight, code: code, headerTitle: headerTitle, disabled: disabled, actions: actions, shouldShowExpandButton: shouldShowExpandButton, setShouldShowExpandButton: setShouldShowExpandButton, children: (0, jsx_runtime_1.jsx)(react_syntax_highlighter_1.PrismAsyncLight, { language: language, style: Object.assign(Object.assign({}, getTheme()), { 'pre[class*="language-"]': {
|
|
94
|
-
color: 'rgb(var(--theme-palette-neutral-text-default))',
|
|
95
|
-
lineHeight: '1',
|
|
96
|
-
width: 'fit-content',
|
|
97
|
-
border: 0,
|
|
98
|
-
padding: `0 ${calculateRightPadding}px 0.75em 0.75em`,
|
|
99
|
-
} }),
|
|
100
|
-
// Turn on 'showLineNumbers' & 'wrapLongLines' at the same time, the display is wrong
|
|
101
|
-
// https://github.com/react-syntax-highlighter/react-syntax-highlighter/issues/402
|
|
102
|
-
// wrapLongLines
|
|
103
|
-
codeTagProps: { className: 'n-code' }, showLineNumbers: showLineNumbers, children: code }) })));
|
|
104
|
-
});
|
|
105
|
-
//# sourceMappingURL=CodeBlock.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodeBlock.js","sourceRoot":"","sources":["../../../src/code-block/CodeBlock.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,+CAAwC;AACxC,uEAAgF;AAChF,0EAQwD;AAExD,kEAA+D;AAwBlD,QAAA,SAAS,GAAG,eAAK,CAAC,UAAU,CAAC,SAAS,SAAS,CAC1D,EAUiB,EACjB,GAAG;QAXH,EACE,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,eAAe,EACf,KAAK,EACL,WAAW,EACX,OAAO,EACP,QAAQ,OAEO,EADZ,SAAS,cATd,mGAUC,CADa;IAId,MAAM,CAAC,sBAAsB,EAAE,yBAAyB,CAAC,GAAG,IAAA,gBAAQ,EAClE,SAAS,KAAK,SAAS,CACxB,CAAC;IAEF,MAAM,QAAQ,GAAG,GAAG,EAAE;QACpB,QAAQ,KAAK,EAAE,CAAC;YACd,KAAK,IAAI;gBACP,OAAO,UAAE,CAAC;YACZ,KAAK,iCAAiC;gBACpC,OAAO,qCAA6B,CAAC;YACvC,KAAK,KAAK;gBACR,OAAO,WAAG,CAAC;YACb,KAAK,eAAe;gBAClB,OAAO,oBAAY,CAAC;YACtB,KAAK,UAAU;gBACb,OAAO,gBAAQ,CAAC;YAClB,KAAK,OAAO;gBACV,OAAO,aAAK,CAAC;YACf,KAAK,gBAAgB;gBACnB,OAAO,sBAAc,CAAC;YACxB;gBACE,OAAO,qCAA6B,CAAC;QACzC,CAAC;IACH,CAAC,CAAC;IACF,MAAM,qBAAqB,GAAG,CAAC,GAAG,EAAE;QAClC,IAAI,WAAW,KAAK,SAAS,IAAI,WAAW,KAAK,EAAE,EAAE,CAAC;YACpD,MAAM,iBAAiB,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACzD,MAAM,WAAW,GAAG,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,KAAI,CAAC,CAAC;YACzC,OAAO,IAAI,CAAC,GAAG,CAAC,WAAW,GAAG,EAAE,EAAE,iBAAiB,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC;QAChE,CAAC;IACH,CAAC,CAAC,EAAE,CAAC;IAEL,OAAO,CACL,uBAAC,mCAAgB,oBACX,SAAS,IACb,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,sBAAsB,EAAE,sBAAsB,EAC9C,yBAAyB,EAAE,yBAAyB,YAEpD,uBAAC,0CAAiB,IAChB,QAAQ,EAAE,QAAQ,EAClB,KAAK,kCACA,QAAQ,EAAE,KACb,yBAAyB,EAAE;oBACzB,KAAK,EAAE,gDAAgD;oBACvD,UAAU,EAAE,GAAG;oBACf,KAAK,EAAE,aAAa;oBACpB,MAAM,EAAE,CAAC;oBACT,OAAO,EAAE,KAAK,qBAAqB,kBAAkB;iBACtD;YAEH,qFAAqF;YACrF,kFAAkF;YAClF,gBAAgB;YAChB,YAAY,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,EACrC,eAAe,EAAE,eAAe,YAE/B,IAAI,GACa,IACH,CACpB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/code-block/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;AAEH,8CAA4B"}
|