@neo4j-ndl/react 4.22.0 → 4.23.3

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 (197) hide show
  1. package/lib/cjs/_common/form-control/FormFieldLabel.js +52 -0
  2. package/lib/cjs/_common/form-control/FormFieldLabel.js.map +1 -0
  3. package/lib/cjs/_common/form-control/FormFieldMessage.js +72 -0
  4. package/lib/cjs/_common/form-control/FormFieldMessage.js.map +1 -0
  5. package/lib/cjs/_common/form-control/form-control-types.js +23 -0
  6. package/lib/cjs/_common/form-control/form-control-types.js.map +1 -0
  7. package/lib/cjs/_common/form-control/index.js +39 -0
  8. package/lib/cjs/_common/form-control/index.js.map +1 -0
  9. package/lib/cjs/_common/form-control/use-form-field.js +76 -0
  10. package/lib/cjs/_common/form-control/use-form-field.js.map +1 -0
  11. package/lib/cjs/_common/form-control/use-inline-field-label.js +76 -0
  12. package/lib/cjs/_common/form-control/use-inline-field-label.js.map +1 -0
  13. package/lib/cjs/checkbox/Checkbox.js +9 -21
  14. package/lib/cjs/checkbox/Checkbox.js.map +1 -1
  15. package/lib/cjs/combobox/Combobox.js +75 -53
  16. package/lib/cjs/combobox/Combobox.js.map +1 -1
  17. package/lib/cjs/combobox/combobox-types.js.map +1 -1
  18. package/lib/cjs/date-picker/DatePicker.js.map +1 -1
  19. package/lib/cjs/icons/generated/custom/FloppyDiskArrowTopRight.js +30 -0
  20. package/lib/cjs/icons/generated/custom/FloppyDiskArrowTopRight.js.map +1 -0
  21. package/lib/cjs/icons/generated/custom/OpenQueryTab.js +1 -0
  22. package/lib/cjs/icons/generated/custom/OpenQueryTab.js.map +1 -1
  23. package/lib/cjs/icons/generated/custom/index.js +5 -3
  24. package/lib/cjs/icons/generated/custom/index.js.map +1 -1
  25. package/lib/cjs/next/tree-view/TreeView.js +16 -1
  26. package/lib/cjs/next/tree-view/TreeView.js.map +1 -1
  27. package/lib/cjs/radio/Radio.js +12 -22
  28. package/lib/cjs/radio/Radio.js.map +1 -1
  29. package/lib/cjs/select/Select.js +14 -5
  30. package/lib/cjs/select/Select.js.map +1 -1
  31. package/lib/cjs/select/types.js.map +1 -1
  32. package/lib/cjs/switch/Switch.js +9 -21
  33. package/lib/cjs/switch/Switch.js.map +1 -1
  34. package/lib/cjs/text-area/TextArea.js +8 -21
  35. package/lib/cjs/text-area/TextArea.js.map +1 -1
  36. package/lib/cjs/text-input/TextInput.js +15 -38
  37. package/lib/cjs/text-input/TextInput.js.map +1 -1
  38. package/lib/cjs/text-input/stories/text-input-sizes.story.js +1 -1
  39. package/lib/cjs/text-input/stories/text-input-sizes.story.js.map +1 -1
  40. package/lib/cjs/time-picker/TimePicker.js +13 -7
  41. package/lib/cjs/time-picker/TimePicker.js.map +1 -1
  42. package/lib/cjs/timezone-picker/TimeZonePicker.js +13 -7
  43. package/lib/cjs/timezone-picker/TimeZonePicker.js.map +1 -1
  44. package/lib/esm/_common/form-control/FormFieldLabel.js +45 -0
  45. package/lib/esm/_common/form-control/FormFieldLabel.js.map +1 -0
  46. package/lib/esm/_common/form-control/FormFieldMessage.js +65 -0
  47. package/lib/esm/_common/form-control/FormFieldMessage.js.map +1 -0
  48. package/lib/esm/_common/form-control/form-control-types.js +22 -0
  49. package/lib/esm/_common/form-control/form-control-types.js.map +1 -0
  50. package/lib/esm/_common/form-control/index.js +32 -0
  51. package/lib/esm/_common/form-control/index.js.map +1 -0
  52. package/lib/esm/_common/form-control/use-form-field.js +72 -0
  53. package/lib/esm/_common/form-control/use-form-field.js.map +1 -0
  54. package/lib/esm/_common/form-control/use-inline-field-label.js +69 -0
  55. package/lib/esm/_common/form-control/use-inline-field-label.js.map +1 -0
  56. package/lib/esm/checkbox/Checkbox.js +10 -22
  57. package/lib/esm/checkbox/Checkbox.js.map +1 -1
  58. package/lib/esm/combobox/Combobox.js +76 -54
  59. package/lib/esm/combobox/Combobox.js.map +1 -1
  60. package/lib/esm/combobox/combobox-types.js.map +1 -1
  61. package/lib/esm/date-picker/DatePicker.js.map +1 -1
  62. package/lib/esm/icons/generated/custom/FloppyDiskArrowTopRight.js +28 -0
  63. package/lib/esm/icons/generated/custom/FloppyDiskArrowTopRight.js.map +1 -0
  64. package/lib/esm/icons/generated/custom/OpenQueryTab.js +1 -0
  65. package/lib/esm/icons/generated/custom/OpenQueryTab.js.map +1 -1
  66. package/lib/esm/icons/generated/custom/index.js +1 -0
  67. package/lib/esm/icons/generated/custom/index.js.map +1 -1
  68. package/lib/esm/next/tree-view/TreeView.js +16 -1
  69. package/lib/esm/next/tree-view/TreeView.js.map +1 -1
  70. package/lib/esm/radio/Radio.js +12 -22
  71. package/lib/esm/radio/Radio.js.map +1 -1
  72. package/lib/esm/select/Select.js +14 -5
  73. package/lib/esm/select/Select.js.map +1 -1
  74. package/lib/esm/select/types.js.map +1 -1
  75. package/lib/esm/switch/Switch.js +10 -22
  76. package/lib/esm/switch/Switch.js.map +1 -1
  77. package/lib/esm/text-area/TextArea.js +9 -22
  78. package/lib/esm/text-area/TextArea.js.map +1 -1
  79. package/lib/esm/text-input/TextInput.js +15 -38
  80. package/lib/esm/text-input/TextInput.js.map +1 -1
  81. package/lib/esm/text-input/stories/text-input-sizes.story.js +1 -1
  82. package/lib/esm/text-input/stories/text-input-sizes.story.js.map +1 -1
  83. package/lib/esm/time-picker/TimePicker.js +13 -7
  84. package/lib/esm/time-picker/TimePicker.js.map +1 -1
  85. package/lib/esm/timezone-picker/TimeZonePicker.js +13 -7
  86. package/lib/esm/timezone-picker/TimeZonePicker.js.map +1 -1
  87. package/lib/types/_common/form-control/FormFieldLabel.d.ts +58 -0
  88. package/lib/types/_common/form-control/FormFieldLabel.d.ts.map +1 -0
  89. package/lib/types/_common/form-control/FormFieldMessage.d.ts +46 -0
  90. package/lib/types/_common/form-control/FormFieldMessage.d.ts.map +1 -0
  91. package/lib/types/_common/form-control/form-control-types.d.ts +92 -0
  92. package/lib/types/_common/form-control/form-control-types.d.ts.map +1 -0
  93. package/lib/types/_common/form-control/index.d.ts +33 -0
  94. package/lib/types/_common/form-control/index.d.ts.map +1 -0
  95. package/lib/types/_common/form-control/use-form-field.d.ts +53 -0
  96. package/lib/types/_common/form-control/use-form-field.d.ts.map +1 -0
  97. package/lib/types/_common/form-control/use-inline-field-label.d.ts +69 -0
  98. package/lib/types/_common/form-control/use-inline-field-label.d.ts.map +1 -0
  99. package/lib/types/checkbox/Checkbox.d.ts.map +1 -1
  100. package/lib/types/combobox/Combobox.d.ts.map +1 -1
  101. package/lib/types/combobox/combobox-types.d.ts +6 -5
  102. package/lib/types/combobox/combobox-types.d.ts.map +1 -1
  103. package/lib/types/icons/generated/custom/FloppyDiskArrowTopRight.d.ts +29 -0
  104. package/lib/types/icons/generated/custom/FloppyDiskArrowTopRight.d.ts.map +1 -0
  105. package/lib/types/icons/generated/custom/OpenQueryTab.d.ts +1 -0
  106. package/lib/types/icons/generated/custom/OpenQueryTab.d.ts.map +1 -1
  107. package/lib/types/icons/generated/custom/index.d.ts +1 -0
  108. package/lib/types/icons/generated/custom/index.d.ts.map +1 -1
  109. package/lib/types/next/tree-view/TreeView.d.ts.map +1 -1
  110. package/lib/types/radio/Radio.d.ts.map +1 -1
  111. package/lib/types/select/Select.d.ts.map +1 -1
  112. package/lib/types/select/types.d.ts.map +1 -1
  113. package/lib/types/switch/Switch.d.ts.map +1 -1
  114. package/lib/types/text-area/TextArea.d.ts.map +1 -1
  115. package/lib/types/text-input/TextInput.d.ts.map +1 -1
  116. package/lib/types/text-input/stories/text-input-sizes.story.d.ts.map +1 -1
  117. package/lib/types/time-picker/TimePicker.d.ts +3 -1
  118. package/lib/types/time-picker/TimePicker.d.ts.map +1 -1
  119. package/lib/types/timezone-picker/TimeZonePicker.d.ts +4 -1
  120. package/lib/types/timezone-picker/TimeZonePicker.d.ts.map +1 -1
  121. package/package.json +3 -3
  122. package/skills/ndl-react/SKILL.md +7 -2
  123. package/skills/ndl-react/components/accordion.md +2 -0
  124. package/skills/ndl-react/components/ai/code-preview.md +4 -0
  125. package/skills/ndl-react/components/ai/file-tag.md +2 -0
  126. package/skills/ndl-react/components/ai/image-tag.md +2 -0
  127. package/skills/ndl-react/components/ai/more-files.md +2 -0
  128. package/skills/ndl-react/components/ai/presence.md +2 -0
  129. package/skills/ndl-react/components/ai/preview.md +2 -0
  130. package/skills/ndl-react/components/ai/prompt.md +2 -0
  131. package/skills/ndl-react/components/ai/reasoning.md +2 -0
  132. package/skills/ndl-react/components/ai/response.md +2 -0
  133. package/skills/ndl-react/components/ai/suggestion.md +2 -0
  134. package/skills/ndl-react/components/ai/thinking.md +2 -0
  135. package/skills/ndl-react/components/ai/tool-call.md +2 -0
  136. package/skills/ndl-react/components/ai/user-bubble.md +2 -0
  137. package/skills/ndl-react/components/avatar.md +2 -0
  138. package/skills/ndl-react/components/banner.md +2 -0
  139. package/skills/ndl-react/components/box.md +2 -0
  140. package/skills/ndl-react/components/breadcrumbs.md +2 -0
  141. package/skills/ndl-react/components/checkbox.md +2 -0
  142. package/skills/ndl-react/components/clean-icon-button.md +2 -0
  143. package/skills/ndl-react/components/clipboard-button.md +2 -0
  144. package/skills/ndl-react/components/code-block.md +2 -0
  145. package/skills/ndl-react/components/code.md +2 -0
  146. package/skills/ndl-react/components/color-picker.md +34 -32
  147. package/skills/ndl-react/components/combobox.md +5 -3
  148. package/skills/ndl-react/components/conditional-wrap.md +2 -0
  149. package/skills/ndl-react/components/data-grid.md +2 -0
  150. package/skills/ndl-react/components/date-picker.md +2 -0
  151. package/skills/ndl-react/components/dialog.md +2 -0
  152. package/skills/ndl-react/components/dismissible-tag.md +2 -0
  153. package/skills/ndl-react/components/divider.md +2 -0
  154. package/skills/ndl-react/components/drawer.md +2 -0
  155. package/skills/ndl-react/components/dropdown-button.md +2 -0
  156. package/skills/ndl-react/components/dropzone.md +7 -5
  157. package/skills/ndl-react/components/filled-button.md +2 -0
  158. package/skills/ndl-react/components/flex.md +2 -0
  159. package/skills/ndl-react/components/graph-label.md +2 -0
  160. package/skills/ndl-react/components/icon-button-array.md +2 -0
  161. package/skills/ndl-react/components/icon-button.md +2 -0
  162. package/skills/ndl-react/components/inline-edit.md +2 -0
  163. package/skills/ndl-react/components/kbd.md +2 -0
  164. package/skills/ndl-react/components/loading-bar.md +2 -0
  165. package/skills/ndl-react/components/loading-spinner.md +2 -0
  166. package/skills/ndl-react/components/logo.md +2 -0
  167. package/skills/ndl-react/components/menu.md +2 -0
  168. package/skills/ndl-react/components/modal.md +2 -0
  169. package/skills/ndl-react/components/next/tree-view.md +90 -2
  170. package/skills/ndl-react/components/outlined-button.md +2 -0
  171. package/skills/ndl-react/components/popover.md +2 -0
  172. package/skills/ndl-react/components/progress-bar.md +2 -0
  173. package/skills/ndl-react/components/radio.md +2 -0
  174. package/skills/ndl-react/components/read-only-tag.md +2 -0
  175. package/skills/ndl-react/components/segmented-control.md +2 -0
  176. package/skills/ndl-react/components/select-icon-button.md +2 -0
  177. package/skills/ndl-react/components/select.md +4 -0
  178. package/skills/ndl-react/components/selectable-tag.md +2 -0
  179. package/skills/ndl-react/components/side-navigation.md +2 -0
  180. package/skills/ndl-react/components/skeleton.md +2 -0
  181. package/skills/ndl-react/components/slider.md +2 -0
  182. package/skills/ndl-react/components/spotlight.md +2 -0
  183. package/skills/ndl-react/components/status-indicator.md +2 -0
  184. package/skills/ndl-react/components/status-label.md +2 -0
  185. package/skills/ndl-react/components/switch.md +2 -0
  186. package/skills/ndl-react/components/tabs.md +2 -0
  187. package/skills/ndl-react/components/tag.md +4 -0
  188. package/skills/ndl-react/components/text-area.md +2 -0
  189. package/skills/ndl-react/components/text-button.md +2 -0
  190. package/skills/ndl-react/components/text-input.md +8 -0
  191. package/skills/ndl-react/components/text-link.md +2 -0
  192. package/skills/ndl-react/components/time-picker.md +3 -0
  193. package/skills/ndl-react/components/timezone-picker.md +3 -0
  194. package/skills/ndl-react/components/tooltip.md +2 -0
  195. package/skills/ndl-react/components/tree-view.md +2 -0
  196. package/skills/ndl-react/components/typography.md +2 -0
  197. package/skills/ndl-react/components/wizard.md +2 -0
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # TreeView
2
4
 
3
5
  Import: `import { TreeView } from '@neo4j-ndl/react/next'`
@@ -82,7 +84,7 @@ Implements the keyboard interactions defined in the [WAI-ARIA TreeView pattern](
82
84
  | `Shift + Enter`, `Shift + Space` | Both multiple modes: extends the range from the anchor to the focused item |
83
85
  | `Shift + ArrowUp`, `Shift + ArrowDown` | Both multiple modes: moves focus and extends the range to the newly focused item |
84
86
 
85
- The tree uses a roving tabindex strategy: only the currently focused item has `tabIndex={0}`, all other items have `tabIndex={-1}`. When the tree root receives focus it delegates to the previously focused item, or the first item if none was focused.
87
+ The tree uses a roving tabindex strategy: only the currently focused item has `tabIndex={0}`, all other items have `tabIndex={-1}`. When the tree root receives focus it delegates to the previously focused item, or the first item if none was focused. While focus is inside the tree, the root removes itself from the tab order, so the whole tree is a single tab stop: `Tab` and `Shift+Tab` always move focus out of the tree in one press.
86
88
 
87
89
  The toggle modifier is `Cmd` on Apple platforms and `Ctrl` everywhere else, so `Ctrl` + click keeps its macOS meaning of opening the context menu.
88
90
 
@@ -109,7 +111,7 @@ Note that in `multiple-replace` an unmodified `Enter`/`Space` selects exclusivel
109
111
 
110
112
  ### Announcements
111
113
 
112
- Range selections are announced in a polite live region rendered next to the tree, as `4 items selected`, counting the whole selection rather than the rows the range just moved. A range can move any number of rows at once, so nothing else reports the total. Selections made without `Shift` clear the region instead, since the row they moved already carries its own `aria-selected`/`aria-checked`, and a count left behind would stop describing the tree as soon as the next selection changed it.
114
+ Range selections are announced in a polite live region rendered next to the tree, as `4 items selected`, counting the whole selection rather than the rows the range just moved. A range can move any number of rows at once, so nothing else reports the total. Selections made without `Shift` clear the region instead, since the row they moved already carries its own `aria-selected`/`aria-checked`, and a count left behind would stop describing the tree as soon as the next selection changed it. The message is English and not currently configurable.
113
115
 
114
116
  ## WAI-ARIA roles and attributes
115
117
 
@@ -321,6 +323,87 @@ const Component = () => {
321
323
  export default Component;
322
324
  ```
323
325
 
326
+ ### Large
327
+
328
+ ```tsx
329
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
330
+
331
+ import { DocumentIconOutline, FolderIconSolid } from '@neo4j-ndl/react/icons';
332
+ import { TreeView } from '@neo4j-ndl/react/next';
333
+ import { useState } from 'react';
334
+
335
+ type FileNode = {
336
+ children?: FileNode[];
337
+ id: string;
338
+ title: string;
339
+ };
340
+
341
+ const TOP_FOLDER_COUNT = 7;
342
+ const SUBFOLDER_COUNT = 9;
343
+ const FILE_COUNT = 10;
344
+
345
+ /**
346
+ * 7 top folders + 63 subfolders + 630 files = 700 items, all expanded so every
347
+ * row is mounted and visible. Exercises the worst-case performance paths:
348
+ * arrow-key navigation, Shift ranges, and the multiple-replace edge styling.
349
+ */
350
+ const files: FileNode[] = Array.from(
351
+ { length: TOP_FOLDER_COUNT },
352
+ (_unused, folderIndex) => ({
353
+ children: Array.from({ length: SUBFOLDER_COUNT }, (_unused, subIndex) => ({
354
+ children: Array.from({ length: FILE_COUNT }, (_unused, fileIndex) => ({
355
+ id: `file-${folderIndex}-${subIndex}-${fileIndex}`,
356
+ title: `file-${folderIndex}-${subIndex}-${fileIndex}.txt`,
357
+ })),
358
+ id: `subfolder-${folderIndex}-${subIndex}`,
359
+ title: `Subfolder ${folderIndex}.${subIndex}`,
360
+ })),
361
+ id: `folder-${folderIndex}`,
362
+ title: `Folder ${folderIndex}`,
363
+ }),
364
+ );
365
+
366
+ const Component = () => {
367
+ const [selectedIds, setSelectedIds] = useState<string[]>([]);
368
+
369
+ const renderNode = (node: FileNode) => (
370
+ <TreeView.Item
371
+ key={node.id}
372
+ id={node.id}
373
+ title={node.title}
374
+ defaultExpanded
375
+ leadingVisual={
376
+ node.children === undefined ? (
377
+ <DocumentIconOutline />
378
+ ) : (
379
+ <FolderIconSolid />
380
+ )
381
+ }
382
+ >
383
+ {node.children?.map(renderNode)}
384
+ </TreeView.Item>
385
+ );
386
+
387
+ return (
388
+ <>
389
+ <p style={{ marginBottom: '8px' }}>
390
+ 700 items, {selectedIds.length} selected
391
+ </p>
392
+ <TreeView
393
+ ariaLabel="Large file explorer"
394
+ selectionMode="multiple-replace"
395
+ selectedIds={selectedIds}
396
+ onSelectedIdsChange={setSelectedIds}
397
+ >
398
+ {files.map(renderNode)}
399
+ </TreeView>
400
+ </>
401
+ );
402
+ };
403
+
404
+ export default Component;
405
+ ```
406
+
324
407
  ### Lazy
325
408
 
326
409
  ```tsx
@@ -503,7 +586,12 @@ function renderNode(node: TreeNode, ctx: RenderContext) {
503
586
  {hasChildren && state.isLoading && !state.hasLoaded && (
504
587
  <TreeView.SkeletonItem rows={2} />
505
588
  )}
589
+ {/* Rendering children only while expanded keeps collapsed subtrees out
590
+ of the DOM, so large trees only pay for the rows the user can see.
591
+ All item state lives outside the tree (keyed by node id), so nothing
592
+ is lost when a subtree unmounts on collapse. */}
506
593
  {hasChildren &&
594
+ state.isExpanded &&
507
595
  state.hasLoaded &&
508
596
  node.children!.map((child) => renderNode(child, ctx))}
509
597
  </TreeView.Item>
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # OutlinedButton
2
4
 
3
5
  Import: `import { OutlinedButton } from '@neo4j-ndl/react'`
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # Popover
2
4
 
3
5
  Import: `import { Popover } from '@neo4j-ndl/react'`
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # ProgressBar
2
4
 
3
5
  Import: `import { ProgressBar } from '@neo4j-ndl/react'`
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # Radio
2
4
 
3
5
  Import: `import { Radio } from '@neo4j-ndl/react'`
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # ReadOnlyTag
2
4
 
3
5
  Import: `import { ReadOnlyTag } from '@neo4j-ndl/react'`
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # SegmentedControl
2
4
 
3
5
  Import: `import { SegmentedControl } from '@neo4j-ndl/react'`
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # SelectIconButton
2
4
 
3
5
  Import: `import { SelectIconButton } from '@neo4j-ndl/react'`
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # Select
2
4
 
3
5
  Import: `import { Select } from '@neo4j-ndl/react'`
@@ -6,6 +8,8 @@ Import: `import { Select } from '@neo4j-ndl/react'`
6
8
 
7
9
  ### Select
8
10
 
11
+ **Deprecated** - Use `Combobox` instead. This component will be removed in a future release.
12
+
9
13
  | Prop | Type | Required | Default | Description |
10
14
  |------|------|----------|---------|-------------|
11
15
  | `ariaLabel` | `string` | | | Aria label of the select component |
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # SelectableTag
2
4
 
3
5
  Import: `import { SelectableTag } from '@neo4j-ndl/react'`
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # SideNavigation
2
4
 
3
5
  Import: `import { SideNavigation } from '@neo4j-ndl/react'`
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # Skeleton
2
4
 
3
5
  Import: `import { Skeleton } from '@neo4j-ndl/react'`
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # Slider
2
4
 
3
5
  Import: `import { Slider } from '@neo4j-ndl/react'`
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # Spotlight
2
4
 
3
5
  Import: `import { Spotlight } from '@neo4j-ndl/react'`
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # StatusIndicator
2
4
 
3
5
  Import: `import { StatusIndicator } from '@neo4j-ndl/react'`
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # StatusLabel
2
4
 
3
5
  Import: `import { StatusLabel } from '@neo4j-ndl/react'`
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # Switch
2
4
 
3
5
  Import: `import { Switch } from '@neo4j-ndl/react'`
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # Tabs
2
4
 
3
5
  Import: `import { Tabs } from '@neo4j-ndl/react'`
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # Tag
2
4
 
3
5
  Import: `import { Tag } from '@neo4j-ndl/react'`
@@ -6,6 +8,8 @@ Import: `import { Tag } from '@neo4j-ndl/react'`
6
8
 
7
9
  ### Tag
8
10
 
11
+ **Deprecated** - Use `ReadOnlyTag`, `DismissibleTag`, or `SelectableTag` instead. This component will be removed in v5.
12
+
9
13
  | Prop | Type | Required | Default | Description |
10
14
  |------|------|----------|---------|-------------|
11
15
  | `children` | `ReactNode` | ✅ | | The content of the tag |
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # TextArea
2
4
 
3
5
  Import: `import { TextArea } from '@neo4j-ndl/react'`
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # TextButton
2
4
 
3
5
  Import: `import { TextButton } from '@neo4j-ndl/react'`
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # TextInput
2
4
 
3
5
  Import: `import { TextInput } from '@neo4j-ndl/react'`
@@ -428,16 +430,22 @@ const Component = () => {
428
430
  <TextInput
429
431
  label="Small Input"
430
432
  size="small"
433
+ placeholder="Small Input"
434
+ helpText="Help text"
431
435
  htmlAttributes={{ id: 'text-input-small' }}
432
436
  />
433
437
  <TextInput
434
438
  label="Medium Input"
435
439
  size="medium"
440
+ placeholder="Medium Input"
441
+ helpText="Help text"
436
442
  htmlAttributes={{ id: 'text-input-medium' }}
437
443
  />
438
444
  <TextInput
439
445
  label="Large Input"
440
446
  size="large"
447
+ placeholder="Large Input"
448
+ helpText="Help text"
441
449
  htmlAttributes={{ id: 'text-input-large' }}
442
450
  />
443
451
  </div>
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # TextLink
2
4
 
3
5
  Import: `import { TextLink } from '@neo4j-ndl/react'`
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # TimePicker
2
4
 
3
5
  Import: `import { TimePicker } from '@neo4j-ndl/react'`
@@ -12,6 +14,7 @@ Import: `import { TimePicker } from '@neo4j-ndl/react'`
12
14
  | `errorText` | `string` | | | Manually set the error text |
13
15
  | `floatingStrategy` | `'absolute' \| 'fixed'` | | | Strategy for the dropdown floating element. By default it is absolute, but if the component is inside of a needle Dialog, it is set to fixed. If this prop is set, no auto-detection of Dialog is done. |
14
16
  | `format` | `'hh:mm aa' \| 'hh:mm:ss aa' \| 'hh:mm:ss' \| 'hh:mm'` | | `hh:mm` | The format of the time picker |
17
+ | `helpText` | `ReactNode` | | | Assistive text displayed below the input. Replaced by `errorText` or an internal validation error while there is one |
15
18
  | `isDisabled` | `boolean` | | | Whether the time picker is disabled |
16
19
  | `isFluid` | `boolean` | | | Whether the time picker is fluid |
17
20
  | `isPortaled` | `boolean` | | | Whether the dropdown element is rendered in a portal. |
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # TimeZonePicker
2
4
 
3
5
  Import: `import { TimeZonePicker } from '@neo4j-ndl/react'`
@@ -10,6 +12,7 @@ Import: `import { TimeZonePicker } from '@neo4j-ndl/react'`
10
12
  |------|------|----------|---------|-------------|
11
13
  | `errorText` | `string` | | | Manually set the error text |
12
14
  | `floatingStrategy` | `'absolute' \| 'fixed'` | | | Strategy for the dropdown floating element. By default it is absolute, but if the component is inside of a needle Dialog, it is set to fixed. If this prop is set, no auto-detection of Dialog is done. |
15
+ | `helpText` | `ReactNode` | | | Assistive text displayed below the input. Replaced by `errorText` or an internal validation error while there is one |
13
16
  | `isDisabled` | `boolean` | | | Whether the timezone picker is disabled |
14
17
  | `isFluid` | `boolean` | | | Whether the timezone picker is fluid |
15
18
  | `isPortaled` | `boolean` | | | Whether the dropdown element is rendered in a portal. |
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # Tooltip
2
4
 
3
5
  Import: `import { Tooltip } from '@neo4j-ndl/react'`
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # TreeView
2
4
 
3
5
  Import: `import { TreeView } from '@neo4j-ndl/react'`
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # Typography
2
4
 
3
5
  Import: `import { Typography } from '@neo4j-ndl/react'`
@@ -1,3 +1,5 @@
1
+ [//]: # (This file is auto-generated by the docs:generate-skills script, do not edit it manually)
2
+
1
3
  # Wizard
2
4
 
3
5
  Import: `import { Wizard } from '@neo4j-ndl/react'`