@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.
Files changed (148) hide show
  1. package/lib/cjs/ai/reasoning/Reasoning.js +1 -1
  2. package/lib/cjs/ai/reasoning/Reasoning.js.map +1 -1
  3. package/lib/cjs/clean-icon-button/stories/clean-icon-button-sizes.story.js +1 -1
  4. package/lib/cjs/clean-icon-button/stories/clean-icon-button-sizes.story.js.map +1 -1
  5. package/lib/cjs/clean-icon-button/stories/clean-icon-button-tone.story.js +1 -1
  6. package/lib/cjs/clean-icon-button/stories/clean-icon-button-tone.story.js.map +1 -1
  7. package/lib/cjs/date-picker/stories/date-picker-with-timezone-both-mode.story.js +1 -1
  8. package/lib/cjs/date-picker/stories/date-picker-with-timezone-both-mode.story.js.map +1 -1
  9. package/lib/cjs/dropzone/stories/dropzone-full.story.js +1 -1
  10. package/lib/cjs/dropzone/stories/dropzone-full.story.js.map +1 -1
  11. package/lib/cjs/helpers/index.js +1 -0
  12. package/lib/cjs/helpers/index.js.map +1 -1
  13. package/lib/cjs/helpers/platform.js +59 -0
  14. package/lib/cjs/helpers/platform.js.map +1 -0
  15. package/lib/cjs/icon-button/stories/icon-button-sizes.story.js +1 -1
  16. package/lib/cjs/icon-button/stories/icon-button-sizes.story.js.map +1 -1
  17. package/lib/cjs/icon-button/stories/icon-button-tone.story.js +1 -1
  18. package/lib/cjs/icon-button/stories/icon-button-tone.story.js.map +1 -1
  19. package/lib/cjs/kbd/kbd-utils.js +6 -22
  20. package/lib/cjs/kbd/kbd-utils.js.map +1 -1
  21. package/lib/cjs/next/tree-view/TreeView.js +384 -66
  22. package/lib/cjs/next/tree-view/TreeView.js.map +1 -1
  23. package/lib/cjs/next/tree-view/selection.js +181 -0
  24. package/lib/cjs/next/tree-view/selection.js.map +1 -0
  25. package/lib/cjs/next/tree-view/stories/index.js +13 -1
  26. package/lib/cjs/next/tree-view/stories/index.js.map +1 -1
  27. package/lib/cjs/next/tree-view/stories/tree-view-large.story.js +57 -0
  28. package/lib/cjs/next/tree-view/stories/tree-view-large.story.js.map +1 -0
  29. package/lib/cjs/next/tree-view/stories/tree-view-lazy.story.js +1 -0
  30. package/lib/cjs/next/tree-view/stories/tree-view-lazy.story.js.map +1 -1
  31. package/lib/cjs/next/tree-view/stories/tree-view-multi.story.js +16 -40
  32. package/lib/cjs/next/tree-view/stories/tree-view-multi.story.js.map +1 -1
  33. package/lib/cjs/next/tree-view/stories/tree-view-multiple-replace.story.js +38 -0
  34. package/lib/cjs/next/tree-view/stories/tree-view-multiple-replace.story.js.map +1 -0
  35. package/lib/cjs/next/tree-view/stories/tree-view-non-selectable-folders.story.js +7 -4
  36. package/lib/cjs/next/tree-view/stories/tree-view-non-selectable-folders.story.js.map +1 -1
  37. package/lib/cjs/next/tree-view/stories/tree-view-root-selection.story.js +125 -0
  38. package/lib/cjs/next/tree-view/stories/tree-view-root-selection.story.js.map +1 -0
  39. package/lib/cjs/radio/stories/radio-custom-label.story.js +1 -1
  40. package/lib/cjs/radio/stories/radio-custom-label.story.js.map +1 -1
  41. package/lib/cjs/select-icon-button/stories/select-icon-button-sizes.story.js +1 -1
  42. package/lib/cjs/select-icon-button/stories/select-icon-button-sizes.story.js.map +1 -1
  43. package/lib/cjs/select-icon-button/stories/select-icon-button-states.story.js +1 -1
  44. package/lib/cjs/select-icon-button/stories/select-icon-button-states.story.js.map +1 -1
  45. package/lib/cjs/side-navigation/SideNavigation.js +1 -1
  46. package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
  47. package/lib/cjs/status-indicator/stories/status-indicator-variants.story.js +1 -1
  48. package/lib/cjs/status-indicator/stories/status-indicator-variants.story.js.map +1 -1
  49. package/lib/cjs/tabs/stories/tabs-fill-variants.story.js +1 -1
  50. package/lib/cjs/tabs/stories/tabs-fill-variants.story.js.map +1 -1
  51. package/lib/cjs/tabs/stories/tabs-sizes.story.js +1 -1
  52. package/lib/cjs/tabs/stories/tabs-sizes.story.js.map +1 -1
  53. package/lib/cjs/toast/ToastControlled.js +1 -1
  54. package/lib/cjs/toast/ToastControlled.js.map +1 -1
  55. package/lib/cjs/typography/Typography.js.map +1 -1
  56. package/lib/esm/ai/reasoning/Reasoning.js +1 -1
  57. package/lib/esm/ai/reasoning/Reasoning.js.map +1 -1
  58. package/lib/esm/clean-icon-button/stories/clean-icon-button-sizes.story.js +1 -1
  59. package/lib/esm/clean-icon-button/stories/clean-icon-button-sizes.story.js.map +1 -1
  60. package/lib/esm/clean-icon-button/stories/clean-icon-button-tone.story.js +1 -1
  61. package/lib/esm/clean-icon-button/stories/clean-icon-button-tone.story.js.map +1 -1
  62. package/lib/esm/date-picker/stories/date-picker-with-timezone-both-mode.story.js +1 -1
  63. package/lib/esm/date-picker/stories/date-picker-with-timezone-both-mode.story.js.map +1 -1
  64. package/lib/esm/dropzone/stories/dropzone-full.story.js +1 -1
  65. package/lib/esm/dropzone/stories/dropzone-full.story.js.map +1 -1
  66. package/lib/esm/helpers/index.js +1 -0
  67. package/lib/esm/helpers/index.js.map +1 -1
  68. package/lib/esm/helpers/platform.js +55 -0
  69. package/lib/esm/helpers/platform.js.map +1 -0
  70. package/lib/esm/icon-button/stories/icon-button-sizes.story.js +1 -1
  71. package/lib/esm/icon-button/stories/icon-button-sizes.story.js.map +1 -1
  72. package/lib/esm/icon-button/stories/icon-button-tone.story.js +1 -1
  73. package/lib/esm/icon-button/stories/icon-button-tone.story.js.map +1 -1
  74. package/lib/esm/kbd/kbd-utils.js +2 -18
  75. package/lib/esm/kbd/kbd-utils.js.map +1 -1
  76. package/lib/esm/next/tree-view/TreeView.js +385 -67
  77. package/lib/esm/next/tree-view/TreeView.js.map +1 -1
  78. package/lib/esm/next/tree-view/selection.js +175 -0
  79. package/lib/esm/next/tree-view/selection.js.map +1 -0
  80. package/lib/esm/next/tree-view/stories/index.js +9 -0
  81. package/lib/esm/next/tree-view/stories/index.js.map +1 -1
  82. package/lib/esm/next/tree-view/stories/tree-view-large.story.js +55 -0
  83. package/lib/esm/next/tree-view/stories/tree-view-large.story.js.map +1 -0
  84. package/lib/esm/next/tree-view/stories/tree-view-lazy.story.js +1 -0
  85. package/lib/esm/next/tree-view/stories/tree-view-lazy.story.js.map +1 -1
  86. package/lib/esm/next/tree-view/stories/tree-view-multi.story.js +16 -40
  87. package/lib/esm/next/tree-view/stories/tree-view-multi.story.js.map +1 -1
  88. package/lib/esm/next/tree-view/stories/tree-view-multiple-replace.story.js +36 -0
  89. package/lib/esm/next/tree-view/stories/tree-view-multiple-replace.story.js.map +1 -0
  90. package/lib/esm/next/tree-view/stories/tree-view-non-selectable-folders.story.js +7 -4
  91. package/lib/esm/next/tree-view/stories/tree-view-non-selectable-folders.story.js.map +1 -1
  92. package/lib/esm/next/tree-view/stories/tree-view-root-selection.story.js +123 -0
  93. package/lib/esm/next/tree-view/stories/tree-view-root-selection.story.js.map +1 -0
  94. package/lib/esm/radio/stories/radio-custom-label.story.js +1 -1
  95. package/lib/esm/radio/stories/radio-custom-label.story.js.map +1 -1
  96. package/lib/esm/select-icon-button/stories/select-icon-button-sizes.story.js +1 -1
  97. package/lib/esm/select-icon-button/stories/select-icon-button-sizes.story.js.map +1 -1
  98. package/lib/esm/select-icon-button/stories/select-icon-button-states.story.js +1 -1
  99. package/lib/esm/select-icon-button/stories/select-icon-button-states.story.js.map +1 -1
  100. package/lib/esm/side-navigation/SideNavigation.js +1 -1
  101. package/lib/esm/side-navigation/SideNavigation.js.map +1 -1
  102. package/lib/esm/status-indicator/stories/status-indicator-variants.story.js +1 -1
  103. package/lib/esm/status-indicator/stories/status-indicator-variants.story.js.map +1 -1
  104. package/lib/esm/tabs/stories/tabs-fill-variants.story.js +1 -1
  105. package/lib/esm/tabs/stories/tabs-fill-variants.story.js.map +1 -1
  106. package/lib/esm/tabs/stories/tabs-sizes.story.js +1 -1
  107. package/lib/esm/tabs/stories/tabs-sizes.story.js.map +1 -1
  108. package/lib/esm/toast/ToastControlled.js +1 -1
  109. package/lib/esm/toast/ToastControlled.js.map +1 -1
  110. package/lib/esm/typography/Typography.js.map +1 -1
  111. package/lib/types/helpers/index.d.ts +1 -0
  112. package/lib/types/helpers/index.d.ts.map +1 -1
  113. package/lib/types/helpers/platform.d.ts +29 -0
  114. package/lib/types/helpers/platform.d.ts.map +1 -0
  115. package/lib/types/kbd/kbd-utils.d.ts +2 -5
  116. package/lib/types/kbd/kbd-utils.d.ts.map +1 -1
  117. package/lib/types/next/tree-view/TreeView.d.ts +29 -5
  118. package/lib/types/next/tree-view/TreeView.d.ts.map +1 -1
  119. package/lib/types/next/tree-view/selection.d.ts +78 -0
  120. package/lib/types/next/tree-view/selection.d.ts.map +1 -0
  121. package/lib/types/next/tree-view/stories/index.d.ts +6 -0
  122. package/lib/types/next/tree-view/stories/index.d.ts.map +1 -1
  123. package/lib/types/next/tree-view/stories/tree-view-large.story.d.ts +24 -0
  124. package/lib/types/next/tree-view/stories/tree-view-large.story.d.ts.map +1 -0
  125. package/lib/types/next/tree-view/stories/tree-view-lazy.story.d.ts.map +1 -1
  126. package/lib/types/next/tree-view/stories/tree-view-multi.story.d.ts +10 -0
  127. package/lib/types/next/tree-view/stories/tree-view-multi.story.d.ts.map +1 -1
  128. package/lib/types/next/tree-view/stories/tree-view-multiple-replace.story.d.ts +29 -0
  129. package/lib/types/next/tree-view/stories/tree-view-multiple-replace.story.d.ts.map +1 -0
  130. package/lib/types/next/tree-view/stories/tree-view-non-selectable-folders.story.d.ts +5 -0
  131. package/lib/types/next/tree-view/stories/tree-view-non-selectable-folders.story.d.ts.map +1 -1
  132. package/lib/types/next/tree-view/stories/tree-view-root-selection.story.d.ts +24 -0
  133. package/lib/types/next/tree-view/stories/tree-view-root-selection.story.d.ts.map +1 -0
  134. package/lib/types/typography/Typography.d.ts +1 -6
  135. package/lib/types/typography/Typography.d.ts.map +1 -1
  136. package/package.json +3 -4
  137. package/skills/ndl-react/SKILL.md +1 -1
  138. package/skills/ndl-react/components/clean-icon-button.md +5 -5
  139. package/skills/ndl-react/components/color-picker.md +32 -32
  140. package/skills/ndl-react/components/date-picker.md +1 -1
  141. package/skills/ndl-react/components/dropzone.md +6 -6
  142. package/skills/ndl-react/components/icon-button.md +5 -5
  143. package/skills/ndl-react/components/next/tree-view.md +358 -104
  144. package/skills/ndl-react/components/radio.md +1 -1
  145. package/skills/ndl-react/components/select-icon-button.md +6 -6
  146. package/skills/ndl-react/components/status-indicator.md +5 -5
  147. package/skills/ndl-react/components/tabs.md +4 -4
  148. 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="title-4"> Small</Typography>
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="title-4"> Medium</Typography>
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="title-4"> Large</Typography>
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="title-4"> Disabled</Typography>
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="title-4"> Active</Typography>
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="title-4"> Loading</Typography>
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="title-4">Unknown</Typography>
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="title-4">Success</Typography>
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="title-4">Info</Typography>
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="title-4">Warning</Typography>
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="title-4">Danger</Typography>
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="title-4">Underline (Default)</Typography>
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="title-4">Filled</Typography>
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="title-4">Small Size</Typography>
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="title-4">Large Size (Default)</Typography>
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. `label` is deprecated: it is identical to `title-4`, which should be used instead. |
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