@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.
- package/lib/cjs/_common/form-control/FormFieldLabel.js +52 -0
- package/lib/cjs/_common/form-control/FormFieldLabel.js.map +1 -0
- package/lib/cjs/_common/form-control/FormFieldMessage.js +72 -0
- package/lib/cjs/_common/form-control/FormFieldMessage.js.map +1 -0
- package/lib/cjs/_common/form-control/form-control-types.js +23 -0
- package/lib/cjs/_common/form-control/form-control-types.js.map +1 -0
- package/lib/cjs/_common/form-control/index.js +39 -0
- package/lib/cjs/_common/form-control/index.js.map +1 -0
- package/lib/cjs/_common/form-control/use-form-field.js +76 -0
- package/lib/cjs/_common/form-control/use-form-field.js.map +1 -0
- package/lib/cjs/_common/form-control/use-inline-field-label.js +76 -0
- package/lib/cjs/_common/form-control/use-inline-field-label.js.map +1 -0
- package/lib/cjs/checkbox/Checkbox.js +9 -21
- package/lib/cjs/checkbox/Checkbox.js.map +1 -1
- package/lib/cjs/combobox/Combobox.js +75 -53
- package/lib/cjs/combobox/Combobox.js.map +1 -1
- package/lib/cjs/combobox/combobox-types.js.map +1 -1
- package/lib/cjs/date-picker/DatePicker.js.map +1 -1
- package/lib/cjs/icons/generated/custom/FloppyDiskArrowTopRight.js +30 -0
- package/lib/cjs/icons/generated/custom/FloppyDiskArrowTopRight.js.map +1 -0
- package/lib/cjs/icons/generated/custom/OpenQueryTab.js +1 -0
- package/lib/cjs/icons/generated/custom/OpenQueryTab.js.map +1 -1
- package/lib/cjs/icons/generated/custom/index.js +5 -3
- package/lib/cjs/icons/generated/custom/index.js.map +1 -1
- package/lib/cjs/next/tree-view/TreeView.js +16 -1
- package/lib/cjs/next/tree-view/TreeView.js.map +1 -1
- package/lib/cjs/radio/Radio.js +12 -22
- package/lib/cjs/radio/Radio.js.map +1 -1
- package/lib/cjs/select/Select.js +14 -5
- package/lib/cjs/select/Select.js.map +1 -1
- package/lib/cjs/select/types.js.map +1 -1
- package/lib/cjs/switch/Switch.js +9 -21
- package/lib/cjs/switch/Switch.js.map +1 -1
- package/lib/cjs/text-area/TextArea.js +8 -21
- package/lib/cjs/text-area/TextArea.js.map +1 -1
- package/lib/cjs/text-input/TextInput.js +15 -38
- package/lib/cjs/text-input/TextInput.js.map +1 -1
- package/lib/cjs/text-input/stories/text-input-sizes.story.js +1 -1
- package/lib/cjs/text-input/stories/text-input-sizes.story.js.map +1 -1
- package/lib/cjs/time-picker/TimePicker.js +13 -7
- package/lib/cjs/time-picker/TimePicker.js.map +1 -1
- package/lib/cjs/timezone-picker/TimeZonePicker.js +13 -7
- package/lib/cjs/timezone-picker/TimeZonePicker.js.map +1 -1
- package/lib/esm/_common/form-control/FormFieldLabel.js +45 -0
- package/lib/esm/_common/form-control/FormFieldLabel.js.map +1 -0
- package/lib/esm/_common/form-control/FormFieldMessage.js +65 -0
- package/lib/esm/_common/form-control/FormFieldMessage.js.map +1 -0
- package/lib/esm/_common/form-control/form-control-types.js +22 -0
- package/lib/esm/_common/form-control/form-control-types.js.map +1 -0
- package/lib/esm/_common/form-control/index.js +32 -0
- package/lib/esm/_common/form-control/index.js.map +1 -0
- package/lib/esm/_common/form-control/use-form-field.js +72 -0
- package/lib/esm/_common/form-control/use-form-field.js.map +1 -0
- package/lib/esm/_common/form-control/use-inline-field-label.js +69 -0
- package/lib/esm/_common/form-control/use-inline-field-label.js.map +1 -0
- package/lib/esm/checkbox/Checkbox.js +10 -22
- package/lib/esm/checkbox/Checkbox.js.map +1 -1
- package/lib/esm/combobox/Combobox.js +76 -54
- package/lib/esm/combobox/Combobox.js.map +1 -1
- package/lib/esm/combobox/combobox-types.js.map +1 -1
- package/lib/esm/date-picker/DatePicker.js.map +1 -1
- package/lib/esm/icons/generated/custom/FloppyDiskArrowTopRight.js +28 -0
- package/lib/esm/icons/generated/custom/FloppyDiskArrowTopRight.js.map +1 -0
- package/lib/esm/icons/generated/custom/OpenQueryTab.js +1 -0
- package/lib/esm/icons/generated/custom/OpenQueryTab.js.map +1 -1
- package/lib/esm/icons/generated/custom/index.js +1 -0
- package/lib/esm/icons/generated/custom/index.js.map +1 -1
- package/lib/esm/next/tree-view/TreeView.js +16 -1
- package/lib/esm/next/tree-view/TreeView.js.map +1 -1
- package/lib/esm/radio/Radio.js +12 -22
- package/lib/esm/radio/Radio.js.map +1 -1
- package/lib/esm/select/Select.js +14 -5
- package/lib/esm/select/Select.js.map +1 -1
- package/lib/esm/select/types.js.map +1 -1
- package/lib/esm/switch/Switch.js +10 -22
- package/lib/esm/switch/Switch.js.map +1 -1
- package/lib/esm/text-area/TextArea.js +9 -22
- package/lib/esm/text-area/TextArea.js.map +1 -1
- package/lib/esm/text-input/TextInput.js +15 -38
- package/lib/esm/text-input/TextInput.js.map +1 -1
- package/lib/esm/text-input/stories/text-input-sizes.story.js +1 -1
- package/lib/esm/text-input/stories/text-input-sizes.story.js.map +1 -1
- package/lib/esm/time-picker/TimePicker.js +13 -7
- package/lib/esm/time-picker/TimePicker.js.map +1 -1
- package/lib/esm/timezone-picker/TimeZonePicker.js +13 -7
- package/lib/esm/timezone-picker/TimeZonePicker.js.map +1 -1
- package/lib/types/_common/form-control/FormFieldLabel.d.ts +58 -0
- package/lib/types/_common/form-control/FormFieldLabel.d.ts.map +1 -0
- package/lib/types/_common/form-control/FormFieldMessage.d.ts +46 -0
- package/lib/types/_common/form-control/FormFieldMessage.d.ts.map +1 -0
- package/lib/types/_common/form-control/form-control-types.d.ts +92 -0
- package/lib/types/_common/form-control/form-control-types.d.ts.map +1 -0
- package/lib/types/_common/form-control/index.d.ts +33 -0
- package/lib/types/_common/form-control/index.d.ts.map +1 -0
- package/lib/types/_common/form-control/use-form-field.d.ts +53 -0
- package/lib/types/_common/form-control/use-form-field.d.ts.map +1 -0
- package/lib/types/_common/form-control/use-inline-field-label.d.ts +69 -0
- package/lib/types/_common/form-control/use-inline-field-label.d.ts.map +1 -0
- package/lib/types/checkbox/Checkbox.d.ts.map +1 -1
- package/lib/types/combobox/Combobox.d.ts.map +1 -1
- package/lib/types/combobox/combobox-types.d.ts +6 -5
- package/lib/types/combobox/combobox-types.d.ts.map +1 -1
- package/lib/types/icons/generated/custom/FloppyDiskArrowTopRight.d.ts +29 -0
- package/lib/types/icons/generated/custom/FloppyDiskArrowTopRight.d.ts.map +1 -0
- package/lib/types/icons/generated/custom/OpenQueryTab.d.ts +1 -0
- package/lib/types/icons/generated/custom/OpenQueryTab.d.ts.map +1 -1
- package/lib/types/icons/generated/custom/index.d.ts +1 -0
- package/lib/types/icons/generated/custom/index.d.ts.map +1 -1
- package/lib/types/next/tree-view/TreeView.d.ts.map +1 -1
- package/lib/types/radio/Radio.d.ts.map +1 -1
- package/lib/types/select/Select.d.ts.map +1 -1
- package/lib/types/select/types.d.ts.map +1 -1
- package/lib/types/switch/Switch.d.ts.map +1 -1
- package/lib/types/text-area/TextArea.d.ts.map +1 -1
- package/lib/types/text-input/TextInput.d.ts.map +1 -1
- package/lib/types/text-input/stories/text-input-sizes.story.d.ts.map +1 -1
- package/lib/types/time-picker/TimePicker.d.ts +3 -1
- package/lib/types/time-picker/TimePicker.d.ts.map +1 -1
- package/lib/types/timezone-picker/TimeZonePicker.d.ts +4 -1
- package/lib/types/timezone-picker/TimeZonePicker.d.ts.map +1 -1
- package/package.json +3 -3
- package/skills/ndl-react/SKILL.md +7 -2
- package/skills/ndl-react/components/accordion.md +2 -0
- package/skills/ndl-react/components/ai/code-preview.md +4 -0
- package/skills/ndl-react/components/ai/file-tag.md +2 -0
- package/skills/ndl-react/components/ai/image-tag.md +2 -0
- package/skills/ndl-react/components/ai/more-files.md +2 -0
- package/skills/ndl-react/components/ai/presence.md +2 -0
- package/skills/ndl-react/components/ai/preview.md +2 -0
- package/skills/ndl-react/components/ai/prompt.md +2 -0
- package/skills/ndl-react/components/ai/reasoning.md +2 -0
- package/skills/ndl-react/components/ai/response.md +2 -0
- package/skills/ndl-react/components/ai/suggestion.md +2 -0
- package/skills/ndl-react/components/ai/thinking.md +2 -0
- package/skills/ndl-react/components/ai/tool-call.md +2 -0
- package/skills/ndl-react/components/ai/user-bubble.md +2 -0
- package/skills/ndl-react/components/avatar.md +2 -0
- package/skills/ndl-react/components/banner.md +2 -0
- package/skills/ndl-react/components/box.md +2 -0
- package/skills/ndl-react/components/breadcrumbs.md +2 -0
- package/skills/ndl-react/components/checkbox.md +2 -0
- package/skills/ndl-react/components/clean-icon-button.md +2 -0
- package/skills/ndl-react/components/clipboard-button.md +2 -0
- package/skills/ndl-react/components/code-block.md +2 -0
- package/skills/ndl-react/components/code.md +2 -0
- package/skills/ndl-react/components/color-picker.md +34 -32
- package/skills/ndl-react/components/combobox.md +5 -3
- package/skills/ndl-react/components/conditional-wrap.md +2 -0
- package/skills/ndl-react/components/data-grid.md +2 -0
- package/skills/ndl-react/components/date-picker.md +2 -0
- package/skills/ndl-react/components/dialog.md +2 -0
- package/skills/ndl-react/components/dismissible-tag.md +2 -0
- package/skills/ndl-react/components/divider.md +2 -0
- package/skills/ndl-react/components/drawer.md +2 -0
- package/skills/ndl-react/components/dropdown-button.md +2 -0
- package/skills/ndl-react/components/dropzone.md +7 -5
- package/skills/ndl-react/components/filled-button.md +2 -0
- package/skills/ndl-react/components/flex.md +2 -0
- package/skills/ndl-react/components/graph-label.md +2 -0
- package/skills/ndl-react/components/icon-button-array.md +2 -0
- package/skills/ndl-react/components/icon-button.md +2 -0
- package/skills/ndl-react/components/inline-edit.md +2 -0
- package/skills/ndl-react/components/kbd.md +2 -0
- package/skills/ndl-react/components/loading-bar.md +2 -0
- package/skills/ndl-react/components/loading-spinner.md +2 -0
- package/skills/ndl-react/components/logo.md +2 -0
- package/skills/ndl-react/components/menu.md +2 -0
- package/skills/ndl-react/components/modal.md +2 -0
- package/skills/ndl-react/components/next/tree-view.md +90 -2
- package/skills/ndl-react/components/outlined-button.md +2 -0
- package/skills/ndl-react/components/popover.md +2 -0
- package/skills/ndl-react/components/progress-bar.md +2 -0
- package/skills/ndl-react/components/radio.md +2 -0
- package/skills/ndl-react/components/read-only-tag.md +2 -0
- package/skills/ndl-react/components/segmented-control.md +2 -0
- package/skills/ndl-react/components/select-icon-button.md +2 -0
- package/skills/ndl-react/components/select.md +4 -0
- package/skills/ndl-react/components/selectable-tag.md +2 -0
- package/skills/ndl-react/components/side-navigation.md +2 -0
- package/skills/ndl-react/components/skeleton.md +2 -0
- package/skills/ndl-react/components/slider.md +2 -0
- package/skills/ndl-react/components/spotlight.md +2 -0
- package/skills/ndl-react/components/status-indicator.md +2 -0
- package/skills/ndl-react/components/status-label.md +2 -0
- package/skills/ndl-react/components/switch.md +2 -0
- package/skills/ndl-react/components/tabs.md +2 -0
- package/skills/ndl-react/components/tag.md +4 -0
- package/skills/ndl-react/components/text-area.md +2 -0
- package/skills/ndl-react/components/text-button.md +2 -0
- package/skills/ndl-react/components/text-input.md +8 -0
- package/skills/ndl-react/components/text-link.md +2 -0
- package/skills/ndl-react/components/time-picker.md +3 -0
- package/skills/ndl-react/components/timezone-picker.md +3 -0
- package/skills/ndl-react/components/tooltip.md +2 -0
- package/skills/ndl-react/components/tree-view.md +2 -0
- package/skills/ndl-react/components/typography.md +2 -0
- 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
|
# 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
|
# 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
|
# 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
|
# 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. |
|