@neo4j-ndl/react 4.21.2-alpha.c774957.15.1 → 4.22.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/ai/reasoning/Reasoning.js +1 -1
- package/lib/cjs/ai/reasoning/Reasoning.js.map +1 -1
- package/lib/cjs/clean-icon-button/stories/clean-icon-button-sizes.story.js +1 -1
- package/lib/cjs/clean-icon-button/stories/clean-icon-button-sizes.story.js.map +1 -1
- package/lib/cjs/clean-icon-button/stories/clean-icon-button-tone.story.js +1 -1
- package/lib/cjs/clean-icon-button/stories/clean-icon-button-tone.story.js.map +1 -1
- package/lib/cjs/date-picker/stories/date-picker-with-timezone-both-mode.story.js +1 -1
- package/lib/cjs/date-picker/stories/date-picker-with-timezone-both-mode.story.js.map +1 -1
- package/lib/cjs/dropzone/stories/dropzone-full.story.js +1 -1
- package/lib/cjs/dropzone/stories/dropzone-full.story.js.map +1 -1
- package/lib/cjs/helpers/index.js +1 -0
- package/lib/cjs/helpers/index.js.map +1 -1
- package/lib/cjs/helpers/platform.js +59 -0
- package/lib/cjs/helpers/platform.js.map +1 -0
- package/lib/cjs/icon-button/stories/icon-button-sizes.story.js +1 -1
- package/lib/cjs/icon-button/stories/icon-button-sizes.story.js.map +1 -1
- package/lib/cjs/icon-button/stories/icon-button-tone.story.js +1 -1
- package/lib/cjs/icon-button/stories/icon-button-tone.story.js.map +1 -1
- package/lib/cjs/kbd/kbd-utils.js +6 -22
- package/lib/cjs/kbd/kbd-utils.js.map +1 -1
- package/lib/cjs/next/tree-view/TreeView.js +384 -66
- package/lib/cjs/next/tree-view/TreeView.js.map +1 -1
- package/lib/cjs/next/tree-view/selection.js +181 -0
- package/lib/cjs/next/tree-view/selection.js.map +1 -0
- package/lib/cjs/next/tree-view/stories/index.js +13 -1
- package/lib/cjs/next/tree-view/stories/index.js.map +1 -1
- package/lib/cjs/next/tree-view/stories/tree-view-large.story.js +57 -0
- package/lib/cjs/next/tree-view/stories/tree-view-large.story.js.map +1 -0
- package/lib/cjs/next/tree-view/stories/tree-view-lazy.story.js +1 -0
- package/lib/cjs/next/tree-view/stories/tree-view-lazy.story.js.map +1 -1
- package/lib/cjs/next/tree-view/stories/tree-view-multi.story.js +16 -40
- package/lib/cjs/next/tree-view/stories/tree-view-multi.story.js.map +1 -1
- package/lib/cjs/next/tree-view/stories/tree-view-multiple-replace.story.js +38 -0
- package/lib/cjs/next/tree-view/stories/tree-view-multiple-replace.story.js.map +1 -0
- package/lib/cjs/next/tree-view/stories/tree-view-non-selectable-folders.story.js +7 -4
- package/lib/cjs/next/tree-view/stories/tree-view-non-selectable-folders.story.js.map +1 -1
- package/lib/cjs/next/tree-view/stories/tree-view-root-selection.story.js +125 -0
- package/lib/cjs/next/tree-view/stories/tree-view-root-selection.story.js.map +1 -0
- package/lib/cjs/radio/stories/radio-custom-label.story.js +1 -1
- package/lib/cjs/radio/stories/radio-custom-label.story.js.map +1 -1
- package/lib/cjs/select-icon-button/stories/select-icon-button-sizes.story.js +1 -1
- package/lib/cjs/select-icon-button/stories/select-icon-button-sizes.story.js.map +1 -1
- package/lib/cjs/select-icon-button/stories/select-icon-button-states.story.js +1 -1
- package/lib/cjs/select-icon-button/stories/select-icon-button-states.story.js.map +1 -1
- package/lib/cjs/side-navigation/SideNavigation.js +1 -1
- package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
- package/lib/cjs/status-indicator/stories/status-indicator-variants.story.js +1 -1
- package/lib/cjs/status-indicator/stories/status-indicator-variants.story.js.map +1 -1
- package/lib/cjs/tabs/stories/tabs-fill-variants.story.js +1 -1
- package/lib/cjs/tabs/stories/tabs-fill-variants.story.js.map +1 -1
- package/lib/cjs/tabs/stories/tabs-sizes.story.js +1 -1
- package/lib/cjs/tabs/stories/tabs-sizes.story.js.map +1 -1
- package/lib/cjs/toast/ToastControlled.js +1 -1
- package/lib/cjs/toast/ToastControlled.js.map +1 -1
- package/lib/cjs/typography/Typography.js.map +1 -1
- package/lib/esm/ai/reasoning/Reasoning.js +1 -1
- package/lib/esm/ai/reasoning/Reasoning.js.map +1 -1
- package/lib/esm/clean-icon-button/stories/clean-icon-button-sizes.story.js +1 -1
- package/lib/esm/clean-icon-button/stories/clean-icon-button-sizes.story.js.map +1 -1
- package/lib/esm/clean-icon-button/stories/clean-icon-button-tone.story.js +1 -1
- package/lib/esm/clean-icon-button/stories/clean-icon-button-tone.story.js.map +1 -1
- package/lib/esm/date-picker/stories/date-picker-with-timezone-both-mode.story.js +1 -1
- package/lib/esm/date-picker/stories/date-picker-with-timezone-both-mode.story.js.map +1 -1
- package/lib/esm/dropzone/stories/dropzone-full.story.js +1 -1
- package/lib/esm/dropzone/stories/dropzone-full.story.js.map +1 -1
- package/lib/esm/helpers/index.js +1 -0
- package/lib/esm/helpers/index.js.map +1 -1
- package/lib/esm/helpers/platform.js +55 -0
- package/lib/esm/helpers/platform.js.map +1 -0
- package/lib/esm/icon-button/stories/icon-button-sizes.story.js +1 -1
- package/lib/esm/icon-button/stories/icon-button-sizes.story.js.map +1 -1
- package/lib/esm/icon-button/stories/icon-button-tone.story.js +1 -1
- package/lib/esm/icon-button/stories/icon-button-tone.story.js.map +1 -1
- package/lib/esm/kbd/kbd-utils.js +2 -18
- package/lib/esm/kbd/kbd-utils.js.map +1 -1
- package/lib/esm/next/tree-view/TreeView.js +385 -67
- package/lib/esm/next/tree-view/TreeView.js.map +1 -1
- package/lib/esm/next/tree-view/selection.js +175 -0
- package/lib/esm/next/tree-view/selection.js.map +1 -0
- package/lib/esm/next/tree-view/stories/index.js +9 -0
- package/lib/esm/next/tree-view/stories/index.js.map +1 -1
- package/lib/esm/next/tree-view/stories/tree-view-large.story.js +55 -0
- package/lib/esm/next/tree-view/stories/tree-view-large.story.js.map +1 -0
- package/lib/esm/next/tree-view/stories/tree-view-lazy.story.js +1 -0
- package/lib/esm/next/tree-view/stories/tree-view-lazy.story.js.map +1 -1
- package/lib/esm/next/tree-view/stories/tree-view-multi.story.js +16 -40
- package/lib/esm/next/tree-view/stories/tree-view-multi.story.js.map +1 -1
- package/lib/esm/next/tree-view/stories/tree-view-multiple-replace.story.js +36 -0
- package/lib/esm/next/tree-view/stories/tree-view-multiple-replace.story.js.map +1 -0
- package/lib/esm/next/tree-view/stories/tree-view-non-selectable-folders.story.js +7 -4
- package/lib/esm/next/tree-view/stories/tree-view-non-selectable-folders.story.js.map +1 -1
- package/lib/esm/next/tree-view/stories/tree-view-root-selection.story.js +123 -0
- package/lib/esm/next/tree-view/stories/tree-view-root-selection.story.js.map +1 -0
- package/lib/esm/radio/stories/radio-custom-label.story.js +1 -1
- package/lib/esm/radio/stories/radio-custom-label.story.js.map +1 -1
- package/lib/esm/select-icon-button/stories/select-icon-button-sizes.story.js +1 -1
- package/lib/esm/select-icon-button/stories/select-icon-button-sizes.story.js.map +1 -1
- package/lib/esm/select-icon-button/stories/select-icon-button-states.story.js +1 -1
- package/lib/esm/select-icon-button/stories/select-icon-button-states.story.js.map +1 -1
- package/lib/esm/side-navigation/SideNavigation.js +1 -1
- package/lib/esm/side-navigation/SideNavigation.js.map +1 -1
- package/lib/esm/status-indicator/stories/status-indicator-variants.story.js +1 -1
- package/lib/esm/status-indicator/stories/status-indicator-variants.story.js.map +1 -1
- package/lib/esm/tabs/stories/tabs-fill-variants.story.js +1 -1
- package/lib/esm/tabs/stories/tabs-fill-variants.story.js.map +1 -1
- package/lib/esm/tabs/stories/tabs-sizes.story.js +1 -1
- package/lib/esm/tabs/stories/tabs-sizes.story.js.map +1 -1
- package/lib/esm/toast/ToastControlled.js +1 -1
- package/lib/esm/toast/ToastControlled.js.map +1 -1
- package/lib/esm/typography/Typography.js.map +1 -1
- package/lib/types/helpers/index.d.ts +1 -0
- package/lib/types/helpers/index.d.ts.map +1 -1
- package/lib/types/helpers/platform.d.ts +29 -0
- package/lib/types/helpers/platform.d.ts.map +1 -0
- package/lib/types/kbd/kbd-utils.d.ts +2 -5
- package/lib/types/kbd/kbd-utils.d.ts.map +1 -1
- package/lib/types/next/tree-view/TreeView.d.ts +29 -5
- package/lib/types/next/tree-view/TreeView.d.ts.map +1 -1
- package/lib/types/next/tree-view/selection.d.ts +78 -0
- package/lib/types/next/tree-view/selection.d.ts.map +1 -0
- package/lib/types/next/tree-view/stories/index.d.ts +6 -0
- package/lib/types/next/tree-view/stories/index.d.ts.map +1 -1
- package/lib/types/next/tree-view/stories/tree-view-large.story.d.ts +24 -0
- package/lib/types/next/tree-view/stories/tree-view-large.story.d.ts.map +1 -0
- package/lib/types/next/tree-view/stories/tree-view-lazy.story.d.ts.map +1 -1
- package/lib/types/next/tree-view/stories/tree-view-multi.story.d.ts +10 -0
- package/lib/types/next/tree-view/stories/tree-view-multi.story.d.ts.map +1 -1
- package/lib/types/next/tree-view/stories/tree-view-multiple-replace.story.d.ts +29 -0
- package/lib/types/next/tree-view/stories/tree-view-multiple-replace.story.d.ts.map +1 -0
- package/lib/types/next/tree-view/stories/tree-view-non-selectable-folders.story.d.ts +5 -0
- package/lib/types/next/tree-view/stories/tree-view-non-selectable-folders.story.d.ts.map +1 -1
- package/lib/types/next/tree-view/stories/tree-view-root-selection.story.d.ts +24 -0
- package/lib/types/next/tree-view/stories/tree-view-root-selection.story.d.ts.map +1 -0
- package/lib/types/typography/Typography.d.ts +1 -6
- package/lib/types/typography/Typography.d.ts.map +1 -1
- package/package.json +3 -4
- package/skills/ndl-react/SKILL.md +1 -1
- package/skills/ndl-react/components/clean-icon-button.md +5 -5
- package/skills/ndl-react/components/color-picker.md +32 -32
- package/skills/ndl-react/components/date-picker.md +1 -1
- package/skills/ndl-react/components/dropzone.md +6 -6
- package/skills/ndl-react/components/icon-button.md +5 -5
- package/skills/ndl-react/components/next/tree-view.md +358 -104
- package/skills/ndl-react/components/radio.md +1 -1
- package/skills/ndl-react/components/select-icon-button.md +6 -6
- package/skills/ndl-react/components/status-indicator.md +5 -5
- package/skills/ndl-react/components/tabs.md +4 -4
- package/skills/ndl-react/components/typography.md +1 -1
|
@@ -55,19 +55,19 @@ const Component = () => {
|
|
|
55
55
|
<SelectIconButton description="Select" size="small" isOpen={false}>
|
|
56
56
|
<SelectIcon />
|
|
57
57
|
</SelectIconButton>
|
|
58
|
-
<Typography variant="
|
|
58
|
+
<Typography variant="label"> Small</Typography>
|
|
59
59
|
</div>
|
|
60
60
|
<div className="n-flex n-flex-row n-gap-token-16 n-items-center">
|
|
61
61
|
<SelectIconButton description="Select" size="medium" isOpen={false}>
|
|
62
62
|
<SelectIcon />
|
|
63
63
|
</SelectIconButton>
|
|
64
|
-
<Typography variant="
|
|
64
|
+
<Typography variant="label"> Medium</Typography>
|
|
65
65
|
</div>
|
|
66
66
|
<div className="n-flex n-flex-row n-gap-token-16 n-items-center">
|
|
67
67
|
<SelectIconButton description="Select" size="large" isOpen={false}>
|
|
68
68
|
<SelectIcon />
|
|
69
69
|
</SelectIconButton>
|
|
70
|
-
<Typography variant="
|
|
70
|
+
<Typography variant="label"> Large</Typography>
|
|
71
71
|
</div>
|
|
72
72
|
</div>
|
|
73
73
|
);
|
|
@@ -96,13 +96,13 @@ const Component = () => {
|
|
|
96
96
|
>
|
|
97
97
|
<SelectIcon />
|
|
98
98
|
</SelectIconButton>
|
|
99
|
-
<Typography variant="
|
|
99
|
+
<Typography variant="label"> Disabled</Typography>
|
|
100
100
|
</div>
|
|
101
101
|
<div className="n-flex n-flex-row n-gap-token-16 n-items-center">
|
|
102
102
|
<SelectIconButton description="Select" size="small" isOpen={true}>
|
|
103
103
|
<SelectIcon />
|
|
104
104
|
</SelectIconButton>
|
|
105
|
-
<Typography variant="
|
|
105
|
+
<Typography variant="label"> Active</Typography>
|
|
106
106
|
</div>
|
|
107
107
|
<div className="n-flex n-flex-row n-gap-token-16 n-items-center">
|
|
108
108
|
<SelectIconButton
|
|
@@ -114,7 +114,7 @@ const Component = () => {
|
|
|
114
114
|
>
|
|
115
115
|
<SelectIcon />
|
|
116
116
|
</SelectIconButton>
|
|
117
|
-
<Typography variant="
|
|
117
|
+
<Typography variant="label"> Loading</Typography>
|
|
118
118
|
</div>
|
|
119
119
|
</div>
|
|
120
120
|
);
|
|
@@ -31,23 +31,23 @@ const Component = () => {
|
|
|
31
31
|
<div className="n-flex n-gap-token-16">
|
|
32
32
|
<div className="n-flex n-flex-col n-items-center n-gap-token-8">
|
|
33
33
|
<StatusIndicator variant="unknown" />
|
|
34
|
-
<Typography variant="
|
|
34
|
+
<Typography variant="label">Unknown</Typography>
|
|
35
35
|
</div>
|
|
36
36
|
<div className="n-flex n-flex-col n-items-center n-gap-token-8">
|
|
37
37
|
<StatusIndicator variant="success" />
|
|
38
|
-
<Typography variant="
|
|
38
|
+
<Typography variant="label">Success</Typography>
|
|
39
39
|
</div>
|
|
40
40
|
<div className="n-flex n-flex-col n-items-center n-gap-token-8">
|
|
41
41
|
<StatusIndicator variant="info" />
|
|
42
|
-
<Typography variant="
|
|
42
|
+
<Typography variant="label">Info</Typography>
|
|
43
43
|
</div>
|
|
44
44
|
<div className="n-flex n-flex-col n-items-center n-gap-token-8">
|
|
45
45
|
<StatusIndicator variant="warning" />
|
|
46
|
-
<Typography variant="
|
|
46
|
+
<Typography variant="label">Warning</Typography>
|
|
47
47
|
</div>
|
|
48
48
|
<div className="n-flex n-flex-col n-items-center n-gap-token-8">
|
|
49
49
|
<StatusIndicator variant="danger" />
|
|
50
|
-
<Typography variant="
|
|
50
|
+
<Typography variant="label">Danger</Typography>
|
|
51
51
|
</div>
|
|
52
52
|
</div>
|
|
53
53
|
);
|
|
@@ -185,7 +185,7 @@ const Component = () => {
|
|
|
185
185
|
return (
|
|
186
186
|
<div className="n-flex n-gap-token-8">
|
|
187
187
|
<div className="n-flex n-flex-col n-gap-token-32">
|
|
188
|
-
<Typography variant="
|
|
188
|
+
<Typography variant="label">Underline (Default)</Typography>
|
|
189
189
|
<div>
|
|
190
190
|
<Tabs
|
|
191
191
|
value={underlineValue}
|
|
@@ -209,7 +209,7 @@ const Component = () => {
|
|
|
209
209
|
</div>
|
|
210
210
|
|
|
211
211
|
<div className="n-flex n-flex-col n-gap-token-8">
|
|
212
|
-
<Typography variant="
|
|
212
|
+
<Typography variant="label">Filled</Typography>
|
|
213
213
|
<div>
|
|
214
214
|
<Tabs
|
|
215
215
|
value={filledValue}
|
|
@@ -320,7 +320,7 @@ const Component = () => {
|
|
|
320
320
|
return (
|
|
321
321
|
<div className="n-flex n-gap-token-8">
|
|
322
322
|
<div className="n-flex n-flex-col n-gap-token-8">
|
|
323
|
-
<Typography variant="
|
|
323
|
+
<Typography variant="label">Small Size</Typography>
|
|
324
324
|
<div className="n-w-fit">
|
|
325
325
|
<Tabs
|
|
326
326
|
value={smallValue}
|
|
@@ -351,7 +351,7 @@ const Component = () => {
|
|
|
351
351
|
</div>
|
|
352
352
|
|
|
353
353
|
<div className="n-flex n-flex-col n-gap-token-8">
|
|
354
|
-
<Typography variant="
|
|
354
|
+
<Typography variant="label">Large Size (Default)</Typography>
|
|
355
355
|
<Tabs
|
|
356
356
|
value={largeValue}
|
|
357
357
|
onChange={setLargeValue}
|
|
@@ -11,7 +11,7 @@ Import: `import { Typography } from '@neo4j-ndl/react'`
|
|
|
11
11
|
| `as` | `ElementType<any, keyof IntrinsicElements>` | | | An override of the default HTML tag of the root of the component. Can also be another React component. |
|
|
12
12
|
| `children` | `ReactNode` | | | Content displayed inside the component |
|
|
13
13
|
| `ref` | `any` | | | A ref to apply to the root element. |
|
|
14
|
-
| `variant` | `'body-large' \| 'body-medium' \| 'body-small' \| 'code' \| 'display' \| 'label' \| 'subheading-large' \| 'subheading-medium' \| 'subheading-small' \| 'title-1' \| 'title-2' \| 'title-3' \| 'title-4'` | ✅ | | The typography variant to use for the text.
|
|
14
|
+
| `variant` | `'body-large' \| 'body-medium' \| 'body-small' \| 'code' \| 'display' \| 'label' \| 'subheading-large' \| 'subheading-medium' \| 'subheading-small' \| 'title-1' \| 'title-2' \| 'title-3' \| 'title-4'` | ✅ | | The typography variant to use for the text. |
|
|
15
15
|
|
|
16
16
|
## Examples
|
|
17
17
|
|