@neo4j-ndl/react 4.7.6 → 4.8.0
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/{status-indicator/stories/status-indicator.stories.js → icons/generated/custom/QueryStream.js} +10 -34
- package/lib/cjs/icons/generated/custom/QueryStream.js.map +1 -0
- package/lib/cjs/icons/generated/custom/index.js +3 -1
- package/lib/cjs/icons/generated/custom/index.js.map +1 -1
- package/lib/esm/icons/generated/custom/QueryStream.js +28 -0
- package/lib/esm/icons/generated/custom/QueryStream.js.map +1 -0
- package/lib/esm/icons/generated/custom/index.js +1 -0
- package/lib/esm/icons/generated/custom/index.js.map +1 -1
- package/lib/types/{ai/code-preview/stories/code-preview.stories.d.ts → icons/generated/custom/QueryStream.d.ts} +9 -10
- package/lib/types/icons/generated/custom/QueryStream.d.ts.map +1 -0
- package/lib/types/icons/generated/custom/index.d.ts +1 -0
- package/lib/types/icons/generated/custom/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/lib/cjs/accordion/stories/accordion.stories.js +0 -145
- package/lib/cjs/accordion/stories/accordion.stories.js.map +0 -1
- package/lib/cjs/ai/code-preview/stories/code-preview.stories.js +0 -88
- package/lib/cjs/ai/code-preview/stories/code-preview.stories.js.map +0 -1
- package/lib/cjs/ai/file-tag/stories/file-tag.stories.js +0 -76
- package/lib/cjs/ai/file-tag/stories/file-tag.stories.js.map +0 -1
- package/lib/cjs/ai/image-tag/stories/image-tag.stories.js +0 -76
- package/lib/cjs/ai/image-tag/stories/image-tag.stories.js.map +0 -1
- package/lib/cjs/ai/more-files/stories/more-files.stories.js +0 -50
- package/lib/cjs/ai/more-files/stories/more-files.stories.js.map +0 -1
- package/lib/cjs/ai/presence/stories/ai-presence.stories.js +0 -52
- package/lib/cjs/ai/presence/stories/ai-presence.stories.js.map +0 -1
- package/lib/cjs/ai/preview/stories/preview-code.stories.js +0 -100
- package/lib/cjs/ai/preview/stories/preview-code.stories.js.map +0 -1
- package/lib/cjs/ai/preview/stories/preview.stories.js +0 -63
- package/lib/cjs/ai/preview/stories/preview.stories.js.map +0 -1
- package/lib/cjs/ai/prompt/stories/prompt.stories.js +0 -91
- package/lib/cjs/ai/prompt/stories/prompt.stories.js.map +0 -1
- package/lib/cjs/ai/reasoning/stories/reasoning.stories.js +0 -63
- package/lib/cjs/ai/reasoning/stories/reasoning.stories.js.map +0 -1
- package/lib/cjs/ai/response/stories/response.stories.js +0 -133
- package/lib/cjs/ai/response/stories/response.stories.js.map +0 -1
- package/lib/cjs/ai/suggestion/stories/suggestion.stories.js +0 -89
- package/lib/cjs/ai/suggestion/stories/suggestion.stories.js.map +0 -1
- package/lib/cjs/ai/thinking/stories/ai-thinking.stories.js +0 -63
- package/lib/cjs/ai/thinking/stories/ai-thinking.stories.js.map +0 -1
- package/lib/cjs/ai/tool-call/stories/tool-call.stories.js +0 -63
- package/lib/cjs/ai/tool-call/stories/tool-call.stories.js.map +0 -1
- package/lib/cjs/ai/user-bubble/stories/user-bubble.stories.js +0 -89
- package/lib/cjs/ai/user-bubble/stories/user-bubble.stories.js.map +0 -1
- package/lib/cjs/avatar/stories/avatar.stories.js +0 -125
- package/lib/cjs/avatar/stories/avatar.stories.js.map +0 -1
- package/lib/cjs/banner/stories/banner.stories.js +0 -120
- package/lib/cjs/banner/stories/banner.stories.js.map +0 -1
- package/lib/cjs/box/stories/box.stories.js +0 -54
- package/lib/cjs/box/stories/box.stories.js.map +0 -1
- package/lib/cjs/breadcrumbs/stories/breadcrumbs.stories.js +0 -88
- package/lib/cjs/breadcrumbs/stories/breadcrumbs.stories.js.map +0 -1
- package/lib/cjs/button/stories/button.stories.js +0 -131
- package/lib/cjs/button/stories/button.stories.js.map +0 -1
- package/lib/cjs/checkbox/stories/checkbox.stories.js +0 -137
- package/lib/cjs/checkbox/stories/checkbox.stories.js.map +0 -1
- package/lib/cjs/clean-icon-button/stories/clean-icon-button.stories.js +0 -121
- package/lib/cjs/clean-icon-button/stories/clean-icon-button.stories.js.map +0 -1
- package/lib/cjs/clipboard-button/stories/clipboard-button.stories.js +0 -119
- package/lib/cjs/clipboard-button/stories/clipboard-button.stories.js.map +0 -1
- package/lib/cjs/code/stories/code.stories.js +0 -62
- package/lib/cjs/code/stories/code.stories.js.map +0 -1
- package/lib/cjs/code-block/stories/code.stories.js +0 -140
- package/lib/cjs/code-block/stories/code.stories.js.map +0 -1
- package/lib/cjs/color-picker/stories/color-picker.stories.js +0 -80
- package/lib/cjs/color-picker/stories/color-picker.stories.js.map +0 -1
- package/lib/cjs/conditional-wrap/stories/conditional-wrap.stories.js +0 -44
- package/lib/cjs/conditional-wrap/stories/conditional-wrap.stories.js.map +0 -1
- package/lib/cjs/data-grid/stories/datagrid-placeholder-states.stories.js +0 -185
- package/lib/cjs/data-grid/stories/datagrid-placeholder-states.stories.js.map +0 -1
- package/lib/cjs/data-grid/stories/datagrid.stories.js +0 -223
- package/lib/cjs/data-grid/stories/datagrid.stories.js.map +0 -1
- package/lib/cjs/date-picker/stories/date-picker.stories.js +0 -210
- package/lib/cjs/date-picker/stories/date-picker.stories.js.map +0 -1
- package/lib/cjs/dialog/stories/dialog.stories.js +0 -150
- package/lib/cjs/dialog/stories/dialog.stories.js.map +0 -1
- package/lib/cjs/divider/stories/divider.stories.js +0 -67
- package/lib/cjs/divider/stories/divider.stories.js.map +0 -1
- package/lib/cjs/drawer/stories/drawer.stories.js +0 -142
- package/lib/cjs/drawer/stories/drawer.stories.js.map +0 -1
- package/lib/cjs/dropdown-button/stories/dropdown-button.stories.js +0 -119
- package/lib/cjs/dropdown-button/stories/dropdown-button.stories.js.map +0 -1
- package/lib/cjs/dropzone/stories/dropzone.stories.js +0 -109
- package/lib/cjs/dropzone/stories/dropzone.stories.js.map +0 -1
- package/lib/cjs/flex/stories/flex.stories.js +0 -48
- package/lib/cjs/flex/stories/flex.stories.js.map +0 -1
- package/lib/cjs/graph-label/stories/graph-label.stories.js +0 -132
- package/lib/cjs/graph-label/stories/graph-label.stories.js.map +0 -1
- package/lib/cjs/icon-button/stories/icon-button.stories.js +0 -135
- package/lib/cjs/icon-button/stories/icon-button.stories.js.map +0 -1
- package/lib/cjs/icon-button-array/stories/icon-button-array.stories.js +0 -106
- package/lib/cjs/icon-button-array/stories/icon-button-array.stories.js.map +0 -1
- package/lib/cjs/inline-edit/stories/inline-edit.stories.js +0 -160
- package/lib/cjs/inline-edit/stories/inline-edit.stories.js.map +0 -1
- package/lib/cjs/kbd/stories/kbd.stories.js +0 -63
- package/lib/cjs/kbd/stories/kbd.stories.js.map +0 -1
- package/lib/cjs/loading-bar/stories/loading-bar.stories.js +0 -67
- package/lib/cjs/loading-bar/stories/loading-bar.stories.js.map +0 -1
- package/lib/cjs/loading-spinner/stories/loading-spinner.stories.js +0 -67
- package/lib/cjs/loading-spinner/stories/loading-spinner.stories.js.map +0 -1
- package/lib/cjs/logo/stories/logo.stories.js +0 -88
- package/lib/cjs/logo/stories/logo.stories.js.map +0 -1
- package/lib/cjs/menu/stories/menu.stories.js +0 -211
- package/lib/cjs/menu/stories/menu.stories.js.map +0 -1
- package/lib/cjs/popover/stories/popover.stories.js +0 -97
- package/lib/cjs/popover/stories/popover.stories.js.map +0 -1
- package/lib/cjs/progress-bar/stories/progress-bar.stories.js +0 -80
- package/lib/cjs/progress-bar/stories/progress-bar.stories.js.map +0 -1
- package/lib/cjs/radio/stories/radio.stories.js +0 -132
- package/lib/cjs/radio/stories/radio.stories.js.map +0 -1
- package/lib/cjs/segmented-control/stories/segmented-control.stories.js +0 -106
- package/lib/cjs/segmented-control/stories/segmented-control.stories.js.map +0 -1
- package/lib/cjs/select/stories/select.stories.js +0 -226
- package/lib/cjs/select/stories/select.stories.js.map +0 -1
- package/lib/cjs/select-icon-button/stories/select-icon-button.stories.js +0 -89
- package/lib/cjs/select-icon-button/stories/select-icon-button.stories.js.map +0 -1
- package/lib/cjs/side-navigation/stories/side-nav.stories.js +0 -92
- package/lib/cjs/side-navigation/stories/side-nav.stories.js.map +0 -1
- package/lib/cjs/skeleton/stories/skeleton.stories.js +0 -137
- package/lib/cjs/skeleton/stories/skeleton.stories.js.map +0 -1
- package/lib/cjs/slider/stories/slider.stories.js +0 -152
- package/lib/cjs/slider/stories/slider.stories.js.map +0 -1
- package/lib/cjs/spotlight/stories/spotlight.stories.js +0 -178
- package/lib/cjs/spotlight/stories/spotlight.stories.js.map +0 -1
- package/lib/cjs/status-indicator/stories/status-indicator.stories.js.map +0 -1
- package/lib/cjs/status-label/stories/status-label.stories.js +0 -92
- package/lib/cjs/status-label/stories/status-label.stories.js.map +0 -1
- package/lib/cjs/switch/stories/switch.stories.js +0 -137
- package/lib/cjs/switch/stories/switch.stories.js.map +0 -1
- package/lib/cjs/tabs/stories/tabs.stories.js +0 -132
- package/lib/cjs/tabs/stories/tabs.stories.js.map +0 -1
- package/lib/cjs/tag/stories/tag.stories.js +0 -67
- package/lib/cjs/tag/stories/tag.stories.js.map +0 -1
- package/lib/cjs/text-area/stories/text-area.stories.js +0 -148
- package/lib/cjs/text-area/stories/text-area.stories.js.map +0 -1
- package/lib/cjs/text-input/stories/text-input.stories.js +0 -249
- package/lib/cjs/text-input/stories/text-input.stories.js.map +0 -1
- package/lib/cjs/text-link/stories/text-link.stories.js +0 -102
- package/lib/cjs/text-link/stories/text-link.stories.js.map +0 -1
- package/lib/cjs/text-overflow/stories/text-overflow.stories.js +0 -115
- package/lib/cjs/text-overflow/stories/text-overflow.stories.js.map +0 -1
- package/lib/cjs/time-picker/stories/time-picker.stories.js +0 -63
- package/lib/cjs/time-picker/stories/time-picker.stories.js.map +0 -1
- package/lib/cjs/timezone-picker/stories/timezone-picker.stories.js +0 -145
- package/lib/cjs/timezone-picker/stories/timezone-picker.stories.js.map +0 -1
- package/lib/cjs/toast/stories/toast.stories.js +0 -137
- package/lib/cjs/toast/stories/toast.stories.js.map +0 -1
- package/lib/cjs/tooltip/stories/tooltip.stories.js +0 -189
- package/lib/cjs/tooltip/stories/tooltip.stories.js.map +0 -1
- package/lib/cjs/tree-view/stories/treeview.stories.js +0 -72
- package/lib/cjs/tree-view/stories/treeview.stories.js.map +0 -1
- package/lib/cjs/typography/stories/typography.stories.js +0 -72
- package/lib/cjs/typography/stories/typography.stories.js.map +0 -1
- package/lib/cjs/wizard/stories/wizard.stories.js +0 -99
- package/lib/cjs/wizard/stories/wizard.stories.js.map +0 -1
- package/lib/esm/accordion/stories/accordion.stories.js +0 -142
- package/lib/esm/accordion/stories/accordion.stories.js.map +0 -1
- package/lib/esm/ai/code-preview/stories/code-preview.stories.js +0 -85
- package/lib/esm/ai/code-preview/stories/code-preview.stories.js.map +0 -1
- package/lib/esm/ai/file-tag/stories/file-tag.stories.js +0 -73
- package/lib/esm/ai/file-tag/stories/file-tag.stories.js.map +0 -1
- package/lib/esm/ai/image-tag/stories/image-tag.stories.js +0 -73
- package/lib/esm/ai/image-tag/stories/image-tag.stories.js.map +0 -1
- package/lib/esm/ai/more-files/stories/more-files.stories.js +0 -47
- package/lib/esm/ai/more-files/stories/more-files.stories.js.map +0 -1
- package/lib/esm/ai/presence/stories/ai-presence.stories.js +0 -49
- package/lib/esm/ai/presence/stories/ai-presence.stories.js.map +0 -1
- package/lib/esm/ai/preview/stories/preview-code.stories.js +0 -97
- package/lib/esm/ai/preview/stories/preview-code.stories.js.map +0 -1
- package/lib/esm/ai/preview/stories/preview.stories.js +0 -60
- package/lib/esm/ai/preview/stories/preview.stories.js.map +0 -1
- package/lib/esm/ai/prompt/stories/prompt.stories.js +0 -88
- package/lib/esm/ai/prompt/stories/prompt.stories.js.map +0 -1
- package/lib/esm/ai/reasoning/stories/reasoning.stories.js +0 -60
- package/lib/esm/ai/reasoning/stories/reasoning.stories.js.map +0 -1
- package/lib/esm/ai/response/stories/response.stories.js +0 -130
- package/lib/esm/ai/response/stories/response.stories.js.map +0 -1
- package/lib/esm/ai/suggestion/stories/suggestion.stories.js +0 -86
- package/lib/esm/ai/suggestion/stories/suggestion.stories.js.map +0 -1
- package/lib/esm/ai/thinking/stories/ai-thinking.stories.js +0 -60
- package/lib/esm/ai/thinking/stories/ai-thinking.stories.js.map +0 -1
- package/lib/esm/ai/tool-call/stories/tool-call.stories.js +0 -60
- package/lib/esm/ai/tool-call/stories/tool-call.stories.js.map +0 -1
- package/lib/esm/ai/user-bubble/stories/user-bubble.stories.js +0 -86
- package/lib/esm/ai/user-bubble/stories/user-bubble.stories.js.map +0 -1
- package/lib/esm/avatar/stories/avatar.stories.js +0 -122
- package/lib/esm/avatar/stories/avatar.stories.js.map +0 -1
- package/lib/esm/banner/stories/banner.stories.js +0 -117
- package/lib/esm/banner/stories/banner.stories.js.map +0 -1
- package/lib/esm/box/stories/box.stories.js +0 -51
- package/lib/esm/box/stories/box.stories.js.map +0 -1
- package/lib/esm/breadcrumbs/stories/breadcrumbs.stories.js +0 -85
- package/lib/esm/breadcrumbs/stories/breadcrumbs.stories.js.map +0 -1
- package/lib/esm/button/stories/button.stories.js +0 -128
- package/lib/esm/button/stories/button.stories.js.map +0 -1
- package/lib/esm/checkbox/stories/checkbox.stories.js +0 -134
- package/lib/esm/checkbox/stories/checkbox.stories.js.map +0 -1
- package/lib/esm/clean-icon-button/stories/clean-icon-button.stories.js +0 -118
- package/lib/esm/clean-icon-button/stories/clean-icon-button.stories.js.map +0 -1
- package/lib/esm/clipboard-button/stories/clipboard-button.stories.js +0 -116
- package/lib/esm/clipboard-button/stories/clipboard-button.stories.js.map +0 -1
- package/lib/esm/code/stories/code.stories.js +0 -59
- package/lib/esm/code/stories/code.stories.js.map +0 -1
- package/lib/esm/code-block/stories/code.stories.js +0 -137
- package/lib/esm/code-block/stories/code.stories.js.map +0 -1
- package/lib/esm/color-picker/stories/color-picker.stories.js +0 -77
- package/lib/esm/color-picker/stories/color-picker.stories.js.map +0 -1
- package/lib/esm/conditional-wrap/stories/conditional-wrap.stories.js +0 -41
- package/lib/esm/conditional-wrap/stories/conditional-wrap.stories.js.map +0 -1
- package/lib/esm/data-grid/stories/datagrid-placeholder-states.stories.js +0 -179
- package/lib/esm/data-grid/stories/datagrid-placeholder-states.stories.js.map +0 -1
- package/lib/esm/data-grid/stories/datagrid.stories.js +0 -220
- package/lib/esm/data-grid/stories/datagrid.stories.js.map +0 -1
- package/lib/esm/date-picker/stories/date-picker.stories.js +0 -207
- package/lib/esm/date-picker/stories/date-picker.stories.js.map +0 -1
- package/lib/esm/dialog/stories/dialog.stories.js +0 -144
- package/lib/esm/dialog/stories/dialog.stories.js.map +0 -1
- package/lib/esm/divider/stories/divider.stories.js +0 -64
- package/lib/esm/divider/stories/divider.stories.js.map +0 -1
- package/lib/esm/drawer/stories/drawer.stories.js +0 -139
- package/lib/esm/drawer/stories/drawer.stories.js.map +0 -1
- package/lib/esm/dropdown-button/stories/dropdown-button.stories.js +0 -116
- package/lib/esm/dropdown-button/stories/dropdown-button.stories.js.map +0 -1
- package/lib/esm/dropzone/stories/dropzone.stories.js +0 -106
- package/lib/esm/dropzone/stories/dropzone.stories.js.map +0 -1
- package/lib/esm/flex/stories/flex.stories.js +0 -45
- package/lib/esm/flex/stories/flex.stories.js.map +0 -1
- package/lib/esm/graph-label/stories/graph-label.stories.js +0 -129
- package/lib/esm/graph-label/stories/graph-label.stories.js.map +0 -1
- package/lib/esm/icon-button/stories/icon-button.stories.js +0 -132
- package/lib/esm/icon-button/stories/icon-button.stories.js.map +0 -1
- package/lib/esm/icon-button-array/stories/icon-button-array.stories.js +0 -103
- package/lib/esm/icon-button-array/stories/icon-button-array.stories.js.map +0 -1
- package/lib/esm/inline-edit/stories/inline-edit.stories.js +0 -157
- package/lib/esm/inline-edit/stories/inline-edit.stories.js.map +0 -1
- package/lib/esm/kbd/stories/kbd.stories.js +0 -60
- package/lib/esm/kbd/stories/kbd.stories.js.map +0 -1
- package/lib/esm/loading-bar/stories/loading-bar.stories.js +0 -64
- package/lib/esm/loading-bar/stories/loading-bar.stories.js.map +0 -1
- package/lib/esm/loading-spinner/stories/loading-spinner.stories.js +0 -64
- package/lib/esm/loading-spinner/stories/loading-spinner.stories.js.map +0 -1
- package/lib/esm/logo/stories/logo.stories.js +0 -85
- package/lib/esm/logo/stories/logo.stories.js.map +0 -1
- package/lib/esm/menu/stories/menu.stories.js +0 -208
- package/lib/esm/menu/stories/menu.stories.js.map +0 -1
- package/lib/esm/popover/stories/popover.stories.js +0 -94
- package/lib/esm/popover/stories/popover.stories.js.map +0 -1
- package/lib/esm/progress-bar/stories/progress-bar.stories.js +0 -77
- package/lib/esm/progress-bar/stories/progress-bar.stories.js.map +0 -1
- package/lib/esm/radio/stories/radio.stories.js +0 -129
- package/lib/esm/radio/stories/radio.stories.js.map +0 -1
- package/lib/esm/segmented-control/stories/segmented-control.stories.js +0 -103
- package/lib/esm/segmented-control/stories/segmented-control.stories.js.map +0 -1
- package/lib/esm/select/stories/select.stories.js +0 -220
- package/lib/esm/select/stories/select.stories.js.map +0 -1
- package/lib/esm/select-icon-button/stories/select-icon-button.stories.js +0 -86
- package/lib/esm/select-icon-button/stories/select-icon-button.stories.js.map +0 -1
- package/lib/esm/side-navigation/stories/side-nav.stories.js +0 -89
- package/lib/esm/side-navigation/stories/side-nav.stories.js.map +0 -1
- package/lib/esm/skeleton/stories/skeleton.stories.js +0 -134
- package/lib/esm/skeleton/stories/skeleton.stories.js.map +0 -1
- package/lib/esm/slider/stories/slider.stories.js +0 -149
- package/lib/esm/slider/stories/slider.stories.js.map +0 -1
- package/lib/esm/spotlight/stories/spotlight.stories.js +0 -172
- package/lib/esm/spotlight/stories/spotlight.stories.js.map +0 -1
- package/lib/esm/status-indicator/stories/status-indicator.stories.js +0 -51
- package/lib/esm/status-indicator/stories/status-indicator.stories.js.map +0 -1
- package/lib/esm/status-label/stories/status-label.stories.js +0 -89
- package/lib/esm/status-label/stories/status-label.stories.js.map +0 -1
- package/lib/esm/switch/stories/switch.stories.js +0 -134
- package/lib/esm/switch/stories/switch.stories.js.map +0 -1
- package/lib/esm/tabs/stories/tabs.stories.js +0 -129
- package/lib/esm/tabs/stories/tabs.stories.js.map +0 -1
- package/lib/esm/tag/stories/tag.stories.js +0 -64
- package/lib/esm/tag/stories/tag.stories.js.map +0 -1
- package/lib/esm/text-area/stories/text-area.stories.js +0 -145
- package/lib/esm/text-area/stories/text-area.stories.js.map +0 -1
- package/lib/esm/text-input/stories/text-input.stories.js +0 -246
- package/lib/esm/text-input/stories/text-input.stories.js.map +0 -1
- package/lib/esm/text-link/stories/text-link.stories.js +0 -99
- package/lib/esm/text-link/stories/text-link.stories.js.map +0 -1
- package/lib/esm/text-overflow/stories/text-overflow.stories.js +0 -113
- package/lib/esm/text-overflow/stories/text-overflow.stories.js.map +0 -1
- package/lib/esm/time-picker/stories/time-picker.stories.js +0 -60
- package/lib/esm/time-picker/stories/time-picker.stories.js.map +0 -1
- package/lib/esm/timezone-picker/stories/timezone-picker.stories.js +0 -142
- package/lib/esm/timezone-picker/stories/timezone-picker.stories.js.map +0 -1
- package/lib/esm/toast/stories/toast.stories.js +0 -134
- package/lib/esm/toast/stories/toast.stories.js.map +0 -1
- package/lib/esm/tooltip/stories/tooltip.stories.js +0 -183
- package/lib/esm/tooltip/stories/tooltip.stories.js.map +0 -1
- package/lib/esm/tree-view/stories/treeview.stories.js +0 -69
- package/lib/esm/tree-view/stories/treeview.stories.js.map +0 -1
- package/lib/esm/typography/stories/typography.stories.js +0 -69
- package/lib/esm/typography/stories/typography.stories.js.map +0 -1
- package/lib/esm/wizard/stories/wizard.stories.js +0 -96
- package/lib/esm/wizard/stories/wizard.stories.js.map +0 -1
- package/lib/types/accordion/stories/accordion.stories.d.ts +0 -61
- package/lib/types/accordion/stories/accordion.stories.d.ts.map +0 -1
- package/lib/types/ai/code-preview/stories/code-preview.stories.d.ts.map +0 -1
- package/lib/types/ai/file-tag/stories/file-tag.stories.d.ts +0 -29
- package/lib/types/ai/file-tag/stories/file-tag.stories.d.ts.map +0 -1
- package/lib/types/ai/image-tag/stories/image-tag.stories.d.ts +0 -29
- package/lib/types/ai/image-tag/stories/image-tag.stories.d.ts.map +0 -1
- package/lib/types/ai/more-files/stories/more-files.stories.d.ts +0 -27
- package/lib/types/ai/more-files/stories/more-files.stories.d.ts.map +0 -1
- package/lib/types/ai/presence/stories/ai-presence.stories.d.ts +0 -27
- package/lib/types/ai/presence/stories/ai-presence.stories.d.ts.map +0 -1
- package/lib/types/ai/preview/stories/preview-code.stories.d.ts +0 -31
- package/lib/types/ai/preview/stories/preview-code.stories.d.ts.map +0 -1
- package/lib/types/ai/preview/stories/preview.stories.d.ts +0 -28
- package/lib/types/ai/preview/stories/preview.stories.d.ts.map +0 -1
- package/lib/types/ai/prompt/stories/prompt.stories.d.ts +0 -30
- package/lib/types/ai/prompt/stories/prompt.stories.d.ts.map +0 -1
- package/lib/types/ai/reasoning/stories/reasoning.stories.d.ts +0 -28
- package/lib/types/ai/reasoning/stories/reasoning.stories.d.ts.map +0 -1
- package/lib/types/ai/response/stories/response.stories.d.ts +0 -33
- package/lib/types/ai/response/stories/response.stories.d.ts.map +0 -1
- package/lib/types/ai/suggestion/stories/suggestion.stories.d.ts +0 -30
- package/lib/types/ai/suggestion/stories/suggestion.stories.d.ts.map +0 -1
- package/lib/types/ai/thinking/stories/ai-thinking.stories.d.ts +0 -28
- package/lib/types/ai/thinking/stories/ai-thinking.stories.d.ts.map +0 -1
- package/lib/types/ai/tool-call/stories/tool-call.stories.d.ts +0 -28
- package/lib/types/ai/tool-call/stories/tool-call.stories.d.ts.map +0 -1
- package/lib/types/ai/user-bubble/stories/user-bubble.stories.d.ts +0 -30
- package/lib/types/ai/user-bubble/stories/user-bubble.stories.d.ts.map +0 -1
- package/lib/types/avatar/stories/avatar.stories.d.ts +0 -32
- package/lib/types/avatar/stories/avatar.stories.d.ts.map +0 -1
- package/lib/types/banner/stories/banner.stories.d.ts +0 -32
- package/lib/types/banner/stories/banner.stories.d.ts.map +0 -1
- package/lib/types/box/stories/box.stories.d.ts +0 -46
- package/lib/types/box/stories/box.stories.d.ts.map +0 -1
- package/lib/types/breadcrumbs/stories/breadcrumbs.stories.d.ts +0 -81
- package/lib/types/breadcrumbs/stories/breadcrumbs.stories.d.ts.map +0 -1
- package/lib/types/button/stories/button.stories.d.ts +0 -33
- package/lib/types/button/stories/button.stories.d.ts.map +0 -1
- package/lib/types/checkbox/stories/checkbox.stories.d.ts +0 -33
- package/lib/types/checkbox/stories/checkbox.stories.d.ts.map +0 -1
- package/lib/types/clean-icon-button/stories/clean-icon-button.stories.d.ts +0 -51
- package/lib/types/clean-icon-button/stories/clean-icon-button.stories.d.ts.map +0 -1
- package/lib/types/clipboard-button/stories/clipboard-button.stories.d.ts +0 -32
- package/lib/types/clipboard-button/stories/clipboard-button.stories.d.ts.map +0 -1
- package/lib/types/code/stories/code.stories.d.ts +0 -27
- package/lib/types/code/stories/code.stories.d.ts.map +0 -1
- package/lib/types/code-block/stories/code.stories.d.ts +0 -33
- package/lib/types/code-block/stories/code.stories.d.ts.map +0 -1
- package/lib/types/color-picker/stories/color-picker.stories.d.ts +0 -29
- package/lib/types/color-picker/stories/color-picker.stories.d.ts.map +0 -1
- package/lib/types/conditional-wrap/stories/conditional-wrap.stories.d.ts +0 -34
- package/lib/types/conditional-wrap/stories/conditional-wrap.stories.d.ts.map +0 -1
- package/lib/types/data-grid/stories/datagrid-placeholder-states.stories.d.ts +0 -136
- package/lib/types/data-grid/stories/datagrid-placeholder-states.stories.d.ts.map +0 -1
- package/lib/types/data-grid/stories/datagrid.stories.d.ts +0 -40
- package/lib/types/data-grid/stories/datagrid.stories.d.ts.map +0 -1
- package/lib/types/date-picker/stories/date-picker.stories.d.ts +0 -39
- package/lib/types/date-picker/stories/date-picker.stories.d.ts.map +0 -1
- package/lib/types/dialog/stories/dialog.stories.d.ts +0 -33
- package/lib/types/dialog/stories/dialog.stories.d.ts.map +0 -1
- package/lib/types/divider/stories/divider.stories.d.ts +0 -39
- package/lib/types/divider/stories/divider.stories.d.ts.map +0 -1
- package/lib/types/drawer/stories/drawer.stories.d.ts +0 -34
- package/lib/types/drawer/stories/drawer.stories.d.ts.map +0 -1
- package/lib/types/dropdown-button/stories/dropdown-button.stories.d.ts +0 -32
- package/lib/types/dropdown-button/stories/dropdown-button.stories.d.ts.map +0 -1
- package/lib/types/dropzone/stories/dropzone.stories.d.ts +0 -32
- package/lib/types/dropzone/stories/dropzone.stories.d.ts.map +0 -1
- package/lib/types/flex/stories/flex.stories.d.ts +0 -47
- package/lib/types/flex/stories/flex.stories.d.ts.map +0 -1
- package/lib/types/graph-label/stories/graph-label.stories.d.ts +0 -33
- package/lib/types/graph-label/stories/graph-label.stories.d.ts.map +0 -1
- package/lib/types/icon-button/stories/icon-button.stories.d.ts +0 -53
- package/lib/types/icon-button/stories/icon-button.stories.d.ts.map +0 -1
- package/lib/types/icon-button-array/stories/icon-button-array.stories.d.ts +0 -31
- package/lib/types/icon-button-array/stories/icon-button-array.stories.d.ts.map +0 -1
- package/lib/types/inline-edit/stories/inline-edit.stories.d.ts +0 -30
- package/lib/types/inline-edit/stories/inline-edit.stories.d.ts.map +0 -1
- package/lib/types/kbd/stories/kbd.stories.d.ts +0 -28
- package/lib/types/kbd/stories/kbd.stories.d.ts.map +0 -1
- package/lib/types/loading-bar/stories/loading-bar.stories.d.ts +0 -28
- package/lib/types/loading-bar/stories/loading-bar.stories.d.ts.map +0 -1
- package/lib/types/loading-spinner/stories/loading-spinner.stories.d.ts +0 -28
- package/lib/types/loading-spinner/stories/loading-spinner.stories.d.ts.map +0 -1
- package/lib/types/logo/stories/logo.stories.d.ts +0 -41
- package/lib/types/logo/stories/logo.stories.d.ts.map +0 -1
- package/lib/types/menu/stories/menu.stories.d.ts +0 -38
- package/lib/types/menu/stories/menu.stories.d.ts.map +0 -1
- package/lib/types/popover/stories/popover.stories.d.ts +0 -30
- package/lib/types/popover/stories/popover.stories.d.ts.map +0 -1
- package/lib/types/progress-bar/stories/progress-bar.stories.d.ts +0 -29
- package/lib/types/progress-bar/stories/progress-bar.stories.d.ts.map +0 -1
- package/lib/types/radio/stories/radio.stories.d.ts +0 -33
- package/lib/types/radio/stories/radio.stories.d.ts.map +0 -1
- package/lib/types/segmented-control/stories/segmented-control.stories.d.ts +0 -31
- package/lib/types/segmented-control/stories/segmented-control.stories.d.ts.map +0 -1
- package/lib/types/select/stories/select.stories.d.ts +0 -39
- package/lib/types/select/stories/select.stories.d.ts.map +0 -1
- package/lib/types/select-icon-button/stories/select-icon-button.stories.d.ts +0 -30
- package/lib/types/select-icon-button/stories/select-icon-button.stories.d.ts.map +0 -1
- package/lib/types/side-navigation/stories/side-nav.stories.d.ts +0 -46
- package/lib/types/side-navigation/stories/side-nav.stories.d.ts.map +0 -1
- package/lib/types/skeleton/stories/skeleton.stories.d.ts +0 -50
- package/lib/types/skeleton/stories/skeleton.stories.d.ts.map +0 -1
- package/lib/types/slider/stories/slider.stories.d.ts +0 -34
- package/lib/types/slider/stories/slider.stories.d.ts.map +0 -1
- package/lib/types/spotlight/stories/spotlight.stories.d.ts +0 -39
- package/lib/types/spotlight/stories/spotlight.stories.d.ts.map +0 -1
- package/lib/types/status-indicator/stories/status-indicator.stories.d.ts +0 -27
- package/lib/types/status-indicator/stories/status-indicator.stories.d.ts.map +0 -1
- package/lib/types/status-label/stories/status-label.stories.d.ts +0 -30
- package/lib/types/status-label/stories/status-label.stories.d.ts.map +0 -1
- package/lib/types/switch/stories/switch.stories.d.ts +0 -33
- package/lib/types/switch/stories/switch.stories.d.ts.map +0 -1
- package/lib/types/tabs/stories/tabs.stories.d.ts +0 -33
- package/lib/types/tabs/stories/tabs.stories.d.ts.map +0 -1
- package/lib/types/tag/stories/tag.stories.d.ts +0 -28
- package/lib/types/tag/stories/tag.stories.d.ts.map +0 -1
- package/lib/types/text-area/stories/text-area.stories.d.ts +0 -34
- package/lib/types/text-area/stories/text-area.stories.d.ts.map +0 -1
- package/lib/types/text-input/stories/text-input.stories.d.ts +0 -42
- package/lib/types/text-input/stories/text-input.stories.d.ts.map +0 -1
- package/lib/types/text-link/stories/text-link.stories.d.ts +0 -31
- package/lib/types/text-link/stories/text-link.stories.d.ts.map +0 -1
- package/lib/types/text-overflow/stories/text-overflow.stories.d.ts +0 -25
- package/lib/types/text-overflow/stories/text-overflow.stories.d.ts.map +0 -1
- package/lib/types/time-picker/stories/time-picker.stories.d.ts +0 -37
- package/lib/types/time-picker/stories/time-picker.stories.d.ts.map +0 -1
- package/lib/types/timezone-picker/stories/timezone-picker.stories.d.ts +0 -34
- package/lib/types/timezone-picker/stories/timezone-picker.stories.d.ts.map +0 -1
- package/lib/types/toast/stories/toast.stories.d.ts +0 -39
- package/lib/types/toast/stories/toast.stories.d.ts.map +0 -1
- package/lib/types/tooltip/stories/tooltip.stories.d.ts +0 -37
- package/lib/types/tooltip/stories/tooltip.stories.d.ts.map +0 -1
- package/lib/types/tree-view/stories/treeview.stories.d.ts +0 -29
- package/lib/types/tree-view/stories/treeview.stories.d.ts.map +0 -1
- package/lib/types/typography/stories/typography.stories.d.ts +0 -29
- package/lib/types/typography/stories/typography.stories.d.ts.map +0 -1
- package/lib/types/wizard/stories/wizard.stories.d.ts +0 -31
- package/lib/types/wizard/stories/wizard.stories.d.ts.map +0 -1
|
@@ -1,103 +0,0 @@
|
|
|
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 { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
-
import { SegmentedControl } from '../../index';
|
|
24
|
-
import { SegmentedControlDefault, SegmentedControlDefaultSource, SegmentedControlDisabled, SegmentedControlDisabledSource, SegmentedControlFloating, SegmentedControlFloatingSource, SegmentedControlOnlyIcons, SegmentedControlOnlyIconsSource, SegmentedControlSizes, SegmentedControlSizesSource, } from '.';
|
|
25
|
-
const componentMeta = {
|
|
26
|
-
component: SegmentedControl,
|
|
27
|
-
decorators: [
|
|
28
|
-
(Story) => (_jsx("div", { className: "n-flex n-justify-center", children: _jsx(Story, {}) })),
|
|
29
|
-
],
|
|
30
|
-
id: 'components-segmented-control',
|
|
31
|
-
parameters: {
|
|
32
|
-
controls: { disable: true },
|
|
33
|
-
},
|
|
34
|
-
tags: ['docsPage'],
|
|
35
|
-
title: 'Components/SegmentedControl',
|
|
36
|
-
};
|
|
37
|
-
export default componentMeta;
|
|
38
|
-
export const Default = {
|
|
39
|
-
args: {},
|
|
40
|
-
parameters: {
|
|
41
|
-
docs: {
|
|
42
|
-
source: {
|
|
43
|
-
code: SegmentedControlDefaultSource,
|
|
44
|
-
language: 'tsx',
|
|
45
|
-
type: 'code',
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
render: SegmentedControlDefault,
|
|
50
|
-
};
|
|
51
|
-
export const Floating = {
|
|
52
|
-
args: {},
|
|
53
|
-
parameters: {
|
|
54
|
-
docs: {
|
|
55
|
-
source: {
|
|
56
|
-
code: SegmentedControlFloatingSource,
|
|
57
|
-
language: 'tsx',
|
|
58
|
-
type: 'code',
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
render: SegmentedControlFloating,
|
|
63
|
-
};
|
|
64
|
-
export const OnlyIcons = {
|
|
65
|
-
args: {},
|
|
66
|
-
parameters: {
|
|
67
|
-
docs: {
|
|
68
|
-
source: {
|
|
69
|
-
code: SegmentedControlOnlyIconsSource,
|
|
70
|
-
language: 'tsx',
|
|
71
|
-
type: 'code',
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
render: SegmentedControlOnlyIcons,
|
|
76
|
-
};
|
|
77
|
-
export const Sizes = {
|
|
78
|
-
args: {},
|
|
79
|
-
parameters: {
|
|
80
|
-
docs: {
|
|
81
|
-
source: {
|
|
82
|
-
code: SegmentedControlSizesSource,
|
|
83
|
-
language: 'tsx',
|
|
84
|
-
type: 'code',
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
render: SegmentedControlSizes,
|
|
89
|
-
};
|
|
90
|
-
export const Disabled = {
|
|
91
|
-
args: {},
|
|
92
|
-
parameters: {
|
|
93
|
-
docs: {
|
|
94
|
-
source: {
|
|
95
|
-
code: SegmentedControlDisabledSource,
|
|
96
|
-
language: 'tsx',
|
|
97
|
-
type: 'code',
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
render: SegmentedControlDisabled,
|
|
102
|
-
};
|
|
103
|
-
//# sourceMappingURL=segmented-control.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"segmented-control.stories.js","sourceRoot":"","sources":["../../../../src/segmented-control/stories/segmented-control.stories.tsx"],"names":[],"mappings":";AAuBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EACL,uBAAuB,EACvB,6BAA6B,EAC7B,wBAAwB,EACxB,8BAA8B,EAC9B,wBAAwB,EACxB,8BAA8B,EAC9B,yBAAyB,EACzB,+BAA+B,EAC/B,qBAAqB,EACrB,2BAA2B,GAC5B,MAAM,GAAG,CAAC;AAEX,MAAM,aAAa,GAAkC;IACnD,SAAS,EAAE,gBAAgB;IAE3B,UAAU,EAAE;QACV,CAAC,KAAK,EAAE,EAAE,CAAC,CACT,cAAK,SAAS,EAAC,yBA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M,QAAQ,GAAU;IAC7B,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,8BAA8B;gBACpC,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,wBAAwB;CACjC,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { type Meta, type StoryObj } from '@storybook/react-vite';\n\nimport { SegmentedControl } from '../../index';\nimport {\n SegmentedControlDefault,\n SegmentedControlDefaultSource,\n SegmentedControlDisabled,\n SegmentedControlDisabledSource,\n SegmentedControlFloating,\n SegmentedControlFloatingSource,\n SegmentedControlOnlyIcons,\n SegmentedControlOnlyIconsSource,\n SegmentedControlSizes,\n SegmentedControlSizesSource,\n} from '.';\n\nconst componentMeta: Meta<typeof SegmentedControl> = {\n component: SegmentedControl,\n\n decorators: [\n (Story) => (\n <div className=\"n-flex n-justify-center\">\n <Story />\n </div>\n ),\n ],\n id: 'components-segmented-control',\n parameters: {\n controls: { disable: true },\n },\n tags: ['docsPage'],\n\n title: 'Components/SegmentedControl',\n};\n\nexport default componentMeta;\ntype Story = StoryObj<typeof componentMeta>;\n\nexport const Default: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: SegmentedControlDefaultSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SegmentedControlDefault,\n};\n\nexport const Floating: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: SegmentedControlFloatingSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SegmentedControlFloating,\n};\n\nexport const OnlyIcons: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: SegmentedControlOnlyIconsSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SegmentedControlOnlyIcons,\n};\n\nexport const Sizes: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: SegmentedControlSizesSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SegmentedControlSizes,\n};\n\nexport const Disabled: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: SegmentedControlDisabledSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SegmentedControlDisabled,\n};\n"]}
|
|
@@ -1,220 +0,0 @@
|
|
|
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 { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
-
import isChromatic from 'chromatic/isChromatic';
|
|
24
|
-
import { Select } from '../../index';
|
|
25
|
-
import { SelectAsync, SelectAsyncSource, SelectClean, SelectCleanSource, SelectControlled, SelectControlledSource, SelectCreatable, SelectCreatableSource, SelectCustomLabel, SelectCustomLabelSource, SelectDefault, SelectDefaultSource, SelectDisabled, SelectDisabledSource, SelectEmpty, SelectEmptySource, SelectErrorState, SelectErrorStateSource, SelectInsideDialog, SelectInsideDialogSource, SelectMenuPositionings, SelectMenuPositioningsSource, SelectMulti, SelectMultiSource, SelectSizes, SelectSizesSource, } from '.';
|
|
26
|
-
const centeredContainerDecorator = (Story) => (_jsx("div", { className: "n-flex n-justify-center", children: _jsx(Story, {}) }));
|
|
27
|
-
const widthDecorator = (Story) => (_jsx("div", { className: "n-w-80", children: _jsx(Story, {}) }));
|
|
28
|
-
const fullSizeDecorator = (Story) => (_jsx("div", { className: "n-w-full n-h-full", children: _jsx(Story, {}) }));
|
|
29
|
-
const componentMeta = {
|
|
30
|
-
component: Select,
|
|
31
|
-
decorators: [centeredContainerDecorator],
|
|
32
|
-
id: 'components-select',
|
|
33
|
-
parameters: {
|
|
34
|
-
controls: { disable: true },
|
|
35
|
-
},
|
|
36
|
-
tags: ['docsPage'],
|
|
37
|
-
title: 'Components/Select',
|
|
38
|
-
};
|
|
39
|
-
export default componentMeta;
|
|
40
|
-
export const Default = {
|
|
41
|
-
args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
|
|
42
|
-
decorators: [widthDecorator],
|
|
43
|
-
parameters: {
|
|
44
|
-
docs: {
|
|
45
|
-
source: {
|
|
46
|
-
code: SelectDefaultSource,
|
|
47
|
-
language: 'tsx',
|
|
48
|
-
type: 'code',
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
render: SelectDefault,
|
|
53
|
-
};
|
|
54
|
-
export const Async = {
|
|
55
|
-
args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
|
|
56
|
-
decorators: [widthDecorator],
|
|
57
|
-
parameters: {
|
|
58
|
-
docs: {
|
|
59
|
-
source: {
|
|
60
|
-
code: SelectAsyncSource,
|
|
61
|
-
language: 'tsx',
|
|
62
|
-
type: 'code',
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
render: SelectAsync,
|
|
67
|
-
};
|
|
68
|
-
export const Creatable = {
|
|
69
|
-
args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
|
|
70
|
-
decorators: [widthDecorator],
|
|
71
|
-
parameters: {
|
|
72
|
-
docs: {
|
|
73
|
-
source: {
|
|
74
|
-
code: SelectCreatableSource,
|
|
75
|
-
language: 'tsx',
|
|
76
|
-
type: 'code',
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
render: SelectCreatable,
|
|
81
|
-
};
|
|
82
|
-
export const Controlled = {
|
|
83
|
-
args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
|
|
84
|
-
decorators: [widthDecorator],
|
|
85
|
-
parameters: {
|
|
86
|
-
docs: {
|
|
87
|
-
source: {
|
|
88
|
-
code: SelectControlledSource,
|
|
89
|
-
language: 'tsx',
|
|
90
|
-
type: 'code',
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
render: SelectControlled,
|
|
95
|
-
};
|
|
96
|
-
export const MultipleSelections = {
|
|
97
|
-
args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
|
|
98
|
-
decorators: [widthDecorator],
|
|
99
|
-
parameters: {
|
|
100
|
-
docs: {
|
|
101
|
-
source: {
|
|
102
|
-
code: SelectMultiSource,
|
|
103
|
-
language: 'tsx',
|
|
104
|
-
type: 'code',
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
render: SelectMulti,
|
|
109
|
-
};
|
|
110
|
-
export const Empty = {
|
|
111
|
-
args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
|
|
112
|
-
decorators: [widthDecorator],
|
|
113
|
-
parameters: {
|
|
114
|
-
docs: {
|
|
115
|
-
source: {
|
|
116
|
-
code: SelectEmptySource,
|
|
117
|
-
language: 'tsx',
|
|
118
|
-
type: 'code',
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
render: SelectEmpty,
|
|
123
|
-
};
|
|
124
|
-
export const ErrorState = {
|
|
125
|
-
args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
|
|
126
|
-
decorators: [widthDecorator],
|
|
127
|
-
parameters: {
|
|
128
|
-
docs: {
|
|
129
|
-
source: {
|
|
130
|
-
code: SelectErrorStateSource,
|
|
131
|
-
language: 'tsx',
|
|
132
|
-
type: 'code',
|
|
133
|
-
},
|
|
134
|
-
},
|
|
135
|
-
},
|
|
136
|
-
render: SelectErrorState,
|
|
137
|
-
};
|
|
138
|
-
export const Disabled = {
|
|
139
|
-
args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
|
|
140
|
-
decorators: [widthDecorator],
|
|
141
|
-
parameters: {
|
|
142
|
-
docs: {
|
|
143
|
-
source: {
|
|
144
|
-
code: SelectDisabledSource,
|
|
145
|
-
language: 'tsx',
|
|
146
|
-
type: 'code',
|
|
147
|
-
},
|
|
148
|
-
},
|
|
149
|
-
},
|
|
150
|
-
render: SelectDisabled,
|
|
151
|
-
};
|
|
152
|
-
export const Clean = {
|
|
153
|
-
args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
|
|
154
|
-
decorators: [widthDecorator],
|
|
155
|
-
parameters: {
|
|
156
|
-
docs: {
|
|
157
|
-
source: {
|
|
158
|
-
code: SelectCleanSource,
|
|
159
|
-
language: 'tsx',
|
|
160
|
-
type: 'code',
|
|
161
|
-
},
|
|
162
|
-
},
|
|
163
|
-
},
|
|
164
|
-
render: SelectClean,
|
|
165
|
-
};
|
|
166
|
-
export const CustomLabel = {
|
|
167
|
-
args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
|
|
168
|
-
decorators: [widthDecorator],
|
|
169
|
-
parameters: {
|
|
170
|
-
docs: {
|
|
171
|
-
source: {
|
|
172
|
-
code: SelectCustomLabelSource,
|
|
173
|
-
language: 'tsx',
|
|
174
|
-
type: 'code',
|
|
175
|
-
},
|
|
176
|
-
},
|
|
177
|
-
},
|
|
178
|
-
render: SelectCustomLabel,
|
|
179
|
-
};
|
|
180
|
-
export const Sizes = {
|
|
181
|
-
args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
|
|
182
|
-
parameters: {
|
|
183
|
-
docs: {
|
|
184
|
-
source: {
|
|
185
|
-
code: SelectSizesSource,
|
|
186
|
-
language: 'tsx',
|
|
187
|
-
type: 'code',
|
|
188
|
-
},
|
|
189
|
-
},
|
|
190
|
-
},
|
|
191
|
-
render: SelectSizes,
|
|
192
|
-
};
|
|
193
|
-
export const MenuPositionings = {
|
|
194
|
-
args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
|
|
195
|
-
parameters: {
|
|
196
|
-
docs: {
|
|
197
|
-
source: {
|
|
198
|
-
code: SelectMenuPositioningsSource,
|
|
199
|
-
language: 'tsx',
|
|
200
|
-
type: 'code',
|
|
201
|
-
},
|
|
202
|
-
},
|
|
203
|
-
},
|
|
204
|
-
render: SelectMenuPositionings,
|
|
205
|
-
};
|
|
206
|
-
export const InDialog = {
|
|
207
|
-
args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
|
|
208
|
-
decorators: [fullSizeDecorator],
|
|
209
|
-
parameters: {
|
|
210
|
-
docs: {
|
|
211
|
-
source: {
|
|
212
|
-
code: SelectInsideDialogSource,
|
|
213
|
-
language: 'tsx',
|
|
214
|
-
type: 'code',
|
|
215
|
-
},
|
|
216
|
-
},
|
|
217
|
-
},
|
|
218
|
-
render: SelectInsideDialog,
|
|
219
|
-
};
|
|
220
|
-
//# sourceMappingURL=select.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select.stories.js","sourceRoot":"","sources":["../../../../src/select/stories/select.stories.tsx"],"names":[],"mappings":";AAsBA,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAEhD,OAAO,E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,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,SAAS,EAAE,EAAE;IACjE,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,4BAA4B;gBAClC,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,sBAAsB;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,IAAI,EAAE,EAAE,WAAW,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,SAAS,EAAE,EAAE;IACjE,UAAU,EAAE,CAAC,iBAAiB,CAAC;IAC/B,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,wBAAwB;gBAC9B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,kBAAkB;CAC3B,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { type Meta, type StoryObj } from '@storybook/react-vite';\nimport isChromatic from 'chromatic/isChromatic';\n\nimport { Select } from '../../index';\nimport {\n SelectAsync,\n SelectAsyncSource,\n SelectClean,\n SelectCleanSource,\n SelectControlled,\n SelectControlledSource,\n SelectCreatable,\n SelectCreatableSource,\n SelectCustomLabel,\n SelectCustomLabelSource,\n SelectDefault,\n SelectDefaultSource,\n SelectDisabled,\n SelectDisabledSource,\n SelectEmpty,\n SelectEmptySource,\n SelectErrorState,\n SelectErrorStateSource,\n SelectInsideDialog,\n SelectInsideDialogSource,\n SelectMenuPositionings,\n SelectMenuPositioningsSource,\n SelectMulti,\n SelectMultiSource,\n SelectSizes,\n SelectSizesSource,\n} from '.';\n\nconst centeredContainerDecorator = (Story: React.ComponentType) => (\n <div className=\"n-flex n-justify-center\">\n <Story />\n </div>\n);\n\nconst widthDecorator = (Story: React.ComponentType) => (\n <div className=\"n-w-80\">\n <Story />\n </div>\n);\n\nconst fullSizeDecorator = (Story: React.ComponentType) => (\n <div className=\"n-w-full n-h-full\">\n <Story />\n </div>\n);\n\nconst componentMeta: Meta<typeof Select> = {\n component: Select,\n decorators: [centeredContainerDecorator],\n id: 'components-select',\n parameters: {\n controls: { disable: true },\n },\n tags: ['docsPage'],\n title: 'Components/Select',\n};\n\nexport default componentMeta;\ntype Story = StoryObj<typeof Select>;\n\nexport const Default: Story = {\n args: { selectProps: { menuIsOpen: isChromatic() || undefined } },\n decorators: [widthDecorator],\n parameters: {\n docs: {\n source: {\n code: SelectDefaultSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SelectDefault,\n};\n\nexport const Async: Story = {\n args: { selectProps: { menuIsOpen: isChromatic() || undefined } },\n decorators: [widthDecorator],\n parameters: {\n docs: {\n source: {\n code: SelectAsyncSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SelectAsync,\n};\n\nexport const Creatable: Story = {\n args: { selectProps: { menuIsOpen: isChromatic() || undefined } },\n decorators: [widthDecorator],\n parameters: {\n docs: {\n source: {\n code: SelectCreatableSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SelectCreatable,\n};\n\nexport const Controlled: Story = {\n args: { selectProps: { menuIsOpen: isChromatic() || undefined } },\n decorators: [widthDecorator],\n parameters: {\n docs: {\n source: {\n code: SelectControlledSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SelectControlled,\n};\n\nexport const MultipleSelections: Story = {\n args: { selectProps: { menuIsOpen: isChromatic() || undefined } },\n decorators: [widthDecorator],\n parameters: {\n docs: {\n source: {\n code: SelectMultiSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SelectMulti,\n};\n\nexport const Empty: Story = {\n args: { selectProps: { menuIsOpen: isChromatic() || undefined } },\n decorators: [widthDecorator],\n parameters: {\n docs: {\n source: {\n code: SelectEmptySource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SelectEmpty,\n};\n\nexport const ErrorState: Story = {\n args: { selectProps: { menuIsOpen: isChromatic() || undefined } },\n decorators: [widthDecorator],\n parameters: {\n docs: {\n source: {\n code: SelectErrorStateSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SelectErrorState,\n};\n\nexport const Disabled: Story = {\n args: { selectProps: { menuIsOpen: isChromatic() || undefined } },\n decorators: [widthDecorator],\n parameters: {\n docs: {\n source: {\n code: SelectDisabledSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SelectDisabled,\n};\n\nexport const Clean: Story = {\n args: { selectProps: { menuIsOpen: isChromatic() || undefined } },\n decorators: [widthDecorator],\n parameters: {\n docs: {\n source: {\n code: SelectCleanSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SelectClean,\n};\n\nexport const CustomLabel: Story = {\n args: { selectProps: { menuIsOpen: isChromatic() || undefined } },\n decorators: [widthDecorator],\n parameters: {\n docs: {\n source: {\n code: SelectCustomLabelSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SelectCustomLabel,\n};\n\nexport const Sizes: Story = {\n args: { selectProps: { menuIsOpen: isChromatic() || undefined } },\n parameters: {\n docs: {\n source: {\n code: SelectSizesSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SelectSizes,\n};\n\nexport const MenuPositionings: Story = {\n args: { selectProps: { menuIsOpen: isChromatic() || undefined } },\n parameters: {\n docs: {\n source: {\n code: SelectMenuPositioningsSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SelectMenuPositionings,\n};\n\nexport const InDialog: Story = {\n args: { selectProps: { menuIsOpen: isChromatic() || undefined } },\n decorators: [fullSizeDecorator],\n parameters: {\n docs: {\n source: {\n code: SelectInsideDialogSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SelectInsideDialog,\n};\n"]}
|
|
@@ -1,86 +0,0 @@
|
|
|
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 { SelectIconButton } from '../../index';
|
|
23
|
-
import { SelectIconButtonDefault, SelectIconButtonDefaultSrc, SelectIconButtonSizes, SelectIconButtonSizesSrc, SelectIconButtonStates, SelectIconButtonStatesSrc, SelectIconButtonWithMenu, SelectIconButtonWithMenuSrc, } from '.';
|
|
24
|
-
const componentMeta = {
|
|
25
|
-
component: SelectIconButton,
|
|
26
|
-
id: 'components-select-icon-button',
|
|
27
|
-
parameters: {
|
|
28
|
-
controls: { disable: true },
|
|
29
|
-
},
|
|
30
|
-
tags: ['docsPage'],
|
|
31
|
-
title: 'Components/SelectIconButton',
|
|
32
|
-
};
|
|
33
|
-
export default componentMeta;
|
|
34
|
-
export const Default = {
|
|
35
|
-
args: {},
|
|
36
|
-
parameters: {
|
|
37
|
-
docs: {
|
|
38
|
-
source: {
|
|
39
|
-
code: SelectIconButtonDefaultSrc,
|
|
40
|
-
language: 'tsx',
|
|
41
|
-
type: 'code',
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
render: SelectIconButtonDefault,
|
|
46
|
-
};
|
|
47
|
-
export const Sizes = {
|
|
48
|
-
args: {},
|
|
49
|
-
parameters: {
|
|
50
|
-
docs: {
|
|
51
|
-
source: {
|
|
52
|
-
code: SelectIconButtonSizesSrc,
|
|
53
|
-
language: 'tsx',
|
|
54
|
-
type: 'code',
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
render: SelectIconButtonSizes,
|
|
59
|
-
};
|
|
60
|
-
export const States = {
|
|
61
|
-
args: {},
|
|
62
|
-
parameters: {
|
|
63
|
-
docs: {
|
|
64
|
-
source: {
|
|
65
|
-
code: SelectIconButtonStatesSrc,
|
|
66
|
-
language: 'tsx',
|
|
67
|
-
type: 'code',
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
render: SelectIconButtonStates,
|
|
72
|
-
};
|
|
73
|
-
export const WithMenu = {
|
|
74
|
-
args: {},
|
|
75
|
-
parameters: {
|
|
76
|
-
docs: {
|
|
77
|
-
source: {
|
|
78
|
-
code: SelectIconButtonWithMenuSrc,
|
|
79
|
-
language: 'tsx',
|
|
80
|
-
type: 'code',
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
render: SelectIconButtonWithMenu,
|
|
85
|
-
};
|
|
86
|
-
//# sourceMappingURL=select-icon-button.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select-icon-button.stories.js","sourceRoot":"","sources":["../../../../src/select-icon-button/stories/select-icon-button.stories.tsx"],"names":[],"mappings":"A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AAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,2BAA2B;gBACjC,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,wBAAwB;CACjC,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\nimport { type Meta, type StoryObj } from '@storybook/react-vite';\n\nimport { SelectIconButton } from '../../index';\nimport {\n SelectIconButtonDefault,\n SelectIconButtonDefaultSrc,\n SelectIconButtonSizes,\n SelectIconButtonSizesSrc,\n SelectIconButtonStates,\n SelectIconButtonStatesSrc,\n SelectIconButtonWithMenu,\n SelectIconButtonWithMenuSrc,\n} from '.';\n\nconst componentMeta: Meta<typeof SelectIconButton> = {\n component: SelectIconButton,\n id: 'components-select-icon-button',\n parameters: {\n controls: { disable: true },\n },\n tags: ['docsPage'],\n title: 'Components/SelectIconButton',\n};\n\nexport default componentMeta;\ntype Story = StoryObj<typeof componentMeta>;\n\nexport const Default: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: SelectIconButtonDefaultSrc,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SelectIconButtonDefault,\n};\n\nexport const Sizes: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: SelectIconButtonSizesSrc,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SelectIconButtonSizes,\n};\n\nexport const States: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: SelectIconButtonStatesSrc,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SelectIconButtonStates,\n};\n\nexport const WithMenu: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: SelectIconButtonWithMenuSrc,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SelectIconButtonWithMenu,\n};\n"]}
|
|
@@ -1,89 +0,0 @@
|
|
|
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 { SideNavigation } from '../index';
|
|
22
|
-
import { SideNavBadges, SideNavBadgesSrc, SideNavCompact, SideNavCompactSrc, SideNavDefault, SideNavDefaultSrc, SideNavSecondary, SideNavSecondarySrc, } from '.';
|
|
23
|
-
const componentMeta = {
|
|
24
|
-
component: SideNavigation,
|
|
25
|
-
id: 'components-side-navigation',
|
|
26
|
-
parameters: {
|
|
27
|
-
controls: { disable: true },
|
|
28
|
-
},
|
|
29
|
-
tags: ['docsPage'],
|
|
30
|
-
title: 'Components/SideNavigation',
|
|
31
|
-
};
|
|
32
|
-
export default componentMeta;
|
|
33
|
-
export const Default = {
|
|
34
|
-
// @ts-expect-error - we don't use args
|
|
35
|
-
args: {},
|
|
36
|
-
parameters: {
|
|
37
|
-
docs: {
|
|
38
|
-
source: {
|
|
39
|
-
code: SideNavDefaultSrc,
|
|
40
|
-
language: 'tsx',
|
|
41
|
-
type: 'code',
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
render: SideNavDefault,
|
|
46
|
-
};
|
|
47
|
-
export const Compact = {
|
|
48
|
-
// @ts-expect-error - we don't use args
|
|
49
|
-
args: {},
|
|
50
|
-
parameters: {
|
|
51
|
-
docs: {
|
|
52
|
-
source: {
|
|
53
|
-
code: SideNavCompactSrc,
|
|
54
|
-
language: 'tsx',
|
|
55
|
-
type: 'code',
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
render: SideNavCompact,
|
|
60
|
-
};
|
|
61
|
-
export const WithSecondaryNav = {
|
|
62
|
-
// @ts-expect-error - we don't use args
|
|
63
|
-
args: {},
|
|
64
|
-
parameters: {
|
|
65
|
-
docs: {
|
|
66
|
-
source: {
|
|
67
|
-
code: SideNavSecondarySrc,
|
|
68
|
-
language: 'tsx',
|
|
69
|
-
type: 'code',
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
render: SideNavSecondary,
|
|
74
|
-
};
|
|
75
|
-
export const WithBadges = {
|
|
76
|
-
// @ts-expect-error - we don't use args
|
|
77
|
-
args: {},
|
|
78
|
-
parameters: {
|
|
79
|
-
docs: {
|
|
80
|
-
source: {
|
|
81
|
-
code: SideNavBadgesSrc,
|
|
82
|
-
language: 'tsx',
|
|
83
|
-
type: 'code',
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
render: SideNavBadges,
|
|
88
|
-
};
|
|
89
|
-
//# sourceMappingURL=side-nav.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"side-nav.stories.js","sourceRoot":"","sources":["../../../../src/side-navigation/stories/side-nav.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,GAAG,CAAC;AAEX,MAAM,aAAa,GAAG;IACpB,SAAS,EAAE,cAAc;IACzB,EAAE,EAAE,4BAA4B;IAChC,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KAC5B;IACD,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,KAAK,EAAE,2BAA2B;CACG,CAAC;AAExC,eAAe,aAAa,CAAC;AAG7B,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,uCAAuC;IACvC,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,iBAAiB;gBACvB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,cAAc;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,uCAAuC;IACvC,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,iBAAiB;gBACvB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,cAAc;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAU;IACrC,uCAAuC;IACvC,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,mBAAmB;gBACzB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,gBAAgB;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAU;IAC/B,uCAAuC;IACvC,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,gBAAgB;gBACtB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,aAAa;CACtB,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { type Meta, type StoryObj } from '@storybook/react-vite';\n\nimport { SideNavigation } from '../index';\nimport {\n SideNavBadges,\n SideNavBadgesSrc,\n SideNavCompact,\n SideNavCompactSrc,\n SideNavDefault,\n SideNavDefaultSrc,\n SideNavSecondary,\n SideNavSecondarySrc,\n} from '.';\n\nconst componentMeta = {\n component: SideNavigation,\n id: 'components-side-navigation',\n parameters: {\n controls: { disable: true },\n },\n tags: ['docsPage'],\n title: 'Components/SideNavigation',\n} satisfies Meta<typeof SideNavigation>;\n\nexport default componentMeta;\ntype Story = StoryObj<typeof componentMeta>;\n\nexport const Default: Story = {\n // @ts-expect-error - we don't use args\n args: {},\n parameters: {\n docs: {\n source: {\n code: SideNavDefaultSrc,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SideNavDefault,\n};\n\nexport const Compact: Story = {\n // @ts-expect-error - we don't use args\n args: {},\n parameters: {\n docs: {\n source: {\n code: SideNavCompactSrc,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SideNavCompact,\n};\n\nexport const WithSecondaryNav: Story = {\n // @ts-expect-error - we don't use args\n args: {},\n parameters: {\n docs: {\n source: {\n code: SideNavSecondarySrc,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SideNavSecondary,\n};\n\nexport const WithBadges: Story = {\n // @ts-expect-error - we don't use args\n args: {},\n parameters: {\n docs: {\n source: {\n code: SideNavBadgesSrc,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: SideNavBadges,\n};\n"]}
|