@neo4j-ndl/react 4.21.2 → 4.22.1
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 +61 -45
- 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/dropzone/stories/dropzone-full.story.js +5 -5
- 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/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/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/cjs/toast/ToastControlled.js +1 -1
- package/lib/cjs/toast/ToastControlled.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 +62 -46
- 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/dropzone/stories/dropzone-full.story.js +5 -5
- 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/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/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/esm/toast/ToastControlled.js +1 -1
- package/lib/esm/toast/ToastControlled.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 +1 -1
- package/lib/types/combobox/combobox-types.d.ts.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/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 +2 -2
- package/skills/ndl-react/SKILL.md +1 -1
- package/skills/ndl-react/components/color-picker.md +32 -32
- package/skills/ndl-react/components/combobox.md +2 -2
- package/skills/ndl-react/components/dropzone.md +5 -5
- package/skills/ndl-react/components/next/tree-view.md +444 -104
- package/skills/ndl-react/components/text-input.md +6 -0
- package/skills/ndl-react/components/time-picker.md +1 -0
- package/skills/ndl-react/components/timezone-picker.md +1 -0
|
@@ -18,18 +18,24 @@
|
|
|
18
18
|
* You should have received a copy of the GNU General Public License
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
|
+
export { default as TreeViewLarge } from './tree-view-large.story';
|
|
21
22
|
export { default as TreeViewLazyLoading } from './tree-view-lazy.story';
|
|
22
23
|
export { default as TreeViewMultiSelect } from './tree-view-multi.story';
|
|
24
|
+
export { default as TreeViewMultipleReplace } from './tree-view-multiple-replace.story';
|
|
23
25
|
export { default as TreeViewNonSelectableFolders } from './tree-view-non-selectable-folders.story';
|
|
26
|
+
export { default as TreeViewRootSelection } from './tree-view-root-selection.story';
|
|
24
27
|
export { default as TreeViewSingleSelect } from './tree-view-single.story';
|
|
25
28
|
export { default as TreeViewWithActions } from './tree-view-actions.story';
|
|
26
29
|
export { default as TreeViewUncontrolledExpansion } from './tree-view-uncontrolled.story';
|
|
27
30
|
export { default as TreeViewWithTrailingContent } from './tree-view-trailing.story';
|
|
28
31
|
export { default as TreeViewWithTooltip } from './tree-view-tooltip.story';
|
|
29
32
|
export declare const TreeViewActionsSrc: string;
|
|
33
|
+
export declare const TreeViewLargeSrc: string;
|
|
30
34
|
export declare const TreeViewLazyLoadingSrc: string;
|
|
31
35
|
export declare const TreeViewMultiSelectSrc: string;
|
|
36
|
+
export declare const TreeViewMultipleReplaceSrc: string;
|
|
32
37
|
export declare const TreeViewNonSelectableFoldersSrc: string;
|
|
38
|
+
export declare const TreeViewRootSelectionSrc: string;
|
|
33
39
|
export declare const TreeViewSingleSelectSrc: string;
|
|
34
40
|
export declare const TreeViewTrailingContentSrc: string;
|
|
35
41
|
export declare const TreeViewTooltipSrc: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/next/tree-view/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACnG,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,2BAA2B,EA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nC,CAAC;AACF,eAAO,MAAM,0BAA0B,QAEtC,CAAC;AACF,eAAO,MAAM,kBAAkB,QAA6C,CAAC;AAC7E,eAAO,MAAM,gCAAgC,QAE5C,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
22
|
+
declare const Component: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default Component;
|
|
24
|
+
//# sourceMappingURL=tree-view-large.story.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree-view-large.story.d.ts","sourceRoot":"","sources":["../../../../../src/next/tree-view/stories/tree-view-large.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAqCjD,QAAA,MAAM,SAAS,+CAoCd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-view-lazy.story.d.ts","sourceRoot":"","sources":["../../../../../src/next/tree-view/stories/tree-view-lazy.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"tree-view-lazy.story.d.ts","sourceRoot":"","sources":["../../../../../src/next/tree-view/stories/tree-view-lazy.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AA+LjD,QAAA,MAAM,SAAS,+CAcd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -19,6 +19,16 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
22
|
+
/**
|
|
23
|
+
* Every row owns its own checkbox: `onSelectedChange` reports the state the row
|
|
24
|
+
* should end up in, and the story stores exactly that. Folders are ordinary
|
|
25
|
+
* selectable rows here, unrelated to what sits inside them.
|
|
26
|
+
*
|
|
27
|
+
* Deriving a folder's state from its children instead needs the tree to own the
|
|
28
|
+
* selection, since a Shift range moves several rows at once and a cascade has
|
|
29
|
+
* to be applied to the whole set in one pass. See the root-managed selection
|
|
30
|
+
* story for that.
|
|
31
|
+
*/
|
|
22
32
|
declare const Component: () => import("react/jsx-runtime").JSX.Element;
|
|
23
33
|
export default Component;
|
|
24
34
|
//# sourceMappingURL=tree-view-multi.story.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-view-multi.story.d.ts","sourceRoot":"","sources":["../../../../../src/next/tree-view/stories/tree-view-multi.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"tree-view-multi.story.d.ts","sourceRoot":"","sources":["../../../../../src/next/tree-view/stories/tree-view-multi.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAUjD;;;;;;;;;GASG;AACH,QAAA,MAAM,SAAS,+CAsFd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
22
|
+
/**
|
|
23
|
+
* Letting the tree own the selection keeps the items declarative: they carry an
|
|
24
|
+
* `id` and nothing else, and a Shift range that moves several rows at once
|
|
25
|
+
* arrives as a single `onSelectedIdsChange`.
|
|
26
|
+
*/
|
|
27
|
+
declare const Component: () => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export default Component;
|
|
29
|
+
//# sourceMappingURL=tree-view-multiple-replace.story.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree-view-multiple-replace.story.d.ts","sourceRoot":"","sources":["../../../../../src/next/tree-view/stories/tree-view-multiple-replace.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAUjD;;;;GAIG;AACH,QAAA,MAAM,SAAS,+CA6Dd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -19,6 +19,11 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
22
|
+
/**
|
|
23
|
+
* Folders here are pure containers: `isSelectable={false}` makes them expand on
|
|
24
|
+
* click without ever becoming part of the selection, and screen readers
|
|
25
|
+
* announce them as non-selectable rather than as unselected rows.
|
|
26
|
+
*/
|
|
22
27
|
declare const Component: () => import("react/jsx-runtime").JSX.Element;
|
|
23
28
|
export default Component;
|
|
24
29
|
//# sourceMappingURL=tree-view-non-selectable-folders.story.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-view-non-selectable-folders.story.d.ts","sourceRoot":"","sources":["../../../../../src/next/tree-view/stories/tree-view-non-selectable-folders.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAMjD,QAAA,MAAM,SAAS,+
|
|
1
|
+
{"version":3,"file":"tree-view-non-selectable-folders.story.d.ts","sourceRoot":"","sources":["../../../../../src/next/tree-view/stories/tree-view-non-selectable-folders.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAMjD;;;;GAIG;AACH,QAAA,MAAM,SAAS,+CA4Dd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
22
|
+
declare const Component: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default Component;
|
|
24
|
+
//# sourceMappingURL=tree-view-root-selection.story.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree-view-root-selection.story.d.ts","sourceRoot":"","sources":["../../../../../src/next/tree-view/stories/tree-view-root-selection.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAqEjD,QAAA,MAAM,SAAS,+CAuEd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/radio/Radio.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/radio/Radio.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGzE,KAAK,UAAU,GAAG;IAChB,mCAAmC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wDAAwD;IACxD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oCAAoC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sFAAsF;IACtF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,6DAA6D;IAC7D,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,mEAAmE;IACnE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAChE,6BAA6B;IAC7B,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;IACzC,gEAAgE;IAChE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC/D,GAAG,CACA;IACE,0EAA0E;IAC1E,SAAS,EAAE,MAAM,CAAC;IAMlB,+FAA+F;IAC/F,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,GACD;IACE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB,CACJ,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,wKAgBnB,WAAW,CAAC,OAAO,EAAE,UAAU,CAAC,4CA2ClC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/select/Select.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAoB,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/select/Select.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAoB,EAAE,KAAK,SAAS,E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,EAAE,SAAS,CAAC,CAAC;AAE1D,MAAM,MAAM,yBAAyB,CACnC,UAAU,EACV,OAAO,SAAS,OAAO,GAAG,KAAK,EAC/B,SAAS,SAAS,SAAS,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,UAAU,CAAC,IAC7D,IAAI,CACN,WAAW,CAAC,UAAU,EAAE,OAAO,EAAE,SAAS,CAAC,EAC3C,MAAM,GAAG,WAAW,GAAG,UAAU,GAAG,SAAS,CAC9C,GAAG;IACF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/switch/Switch.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/switch/Switch.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAOH,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGzE,KAAK,WAAW,GAAG;IACjB,oCAAoC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,uDAAuD;IACvD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,0CAA0C;IAC1C,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qCAAqC;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uFAAuF;IACvF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;IACzC,8DAA8D;IAC9D,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,oEAAoE;IACpE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAChE,iEAAiE;IACjE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC/D,GAAG,CACA;IACE,2EAA2E;IAC3E,SAAS,EAAE,MAAM,CAAC;IAMlB,gGAAgG;IAChG,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,GACD;IACE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB,CACJ,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,yLAiBpB,WAAW,CAAC,OAAO,EAAE,WAAW,CAAC,4CAkDnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/text-area/TextArea.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/text-area/TextArea.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAQhD,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACxB,MAAM,kBAAkB,CAAC;AAG1B;;;;;;GAMG;AAEH;;;GAGG;AACH,KAAK,aAAa,GAAG;IAInB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB,gEAAgE;IAChE,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE9B,iHAAiH;IACjH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE/B,2BAA2B;IAC3B,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IASpC,oEAAoE;IACpE,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,wEAAwE;IACxE,mBAAmB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEtC,mEAAmE;IACnE,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAElC,uCAAuC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,gEAAgE;IAChE,cAAc,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IAM5C,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,oDAAoD;IACpD,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAE5B,wCAAwC;IACxC,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,wCAAwC;IACxC,KAAK,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC;IAE5D,4DAA4D;IAC5D,WAAW,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC,aAAa,CAAC,CAAC;CACzE,CAAC;AAEF;;;;;;GAMG;AAEH,eAAO,MAAM,QAAQ,GAAI,0MAmBtB,WAAW,CAAC,UAAU,EAAE,aAAa,CAAC,4CA0ExC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../src/text-input/TextInput.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,SAAS,EAGf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../src/text-input/TextInput.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAm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AM,GAAG,KAAK,CAAC,SAAS,CAAC;IAEjC,mEAAmE;IACnE,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAElC,qDAAqD;IACrD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B,uEAAuE;IACvE,aAAa,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,CAAC;IAEtD,uCAAuC;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;;;;;GAMG;AAEH,eAAO,MAAM,SAAS,GAAI,iUA0BvB,WAAW,CAAC,OAAO,EAAE,cAAc,CAAC,4CAwMtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-input-sizes.story.d.ts","sourceRoot":"","sources":["../../../../src/text-input/stories/text-input-sizes.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAIjD,QAAA,MAAM,SAAS,+
|
|
1
|
+
{"version":3,"file":"text-input-sizes.story.d.ts","sourceRoot":"","sources":["../../../../src/text-input/stories/text-input-sizes.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAIjD,QAAA,MAAM,SAAS,+CA0Bd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -42,6 +42,8 @@ export type TimePickerProps = {
|
|
|
42
42
|
label?: string;
|
|
43
43
|
/** The size of the time picker */
|
|
44
44
|
size?: 'small' | 'medium' | 'large';
|
|
45
|
+
/** Assistive text displayed below the input. Replaced by `errorText` or an internal validation error while there is one */
|
|
46
|
+
helpText?: React.ReactNode;
|
|
45
47
|
/** Manually set the error text */
|
|
46
48
|
errorText?: string;
|
|
47
49
|
/** Callback function triggered when the time picker value changes */
|
|
@@ -57,5 +59,5 @@ export type TimePickerProps = {
|
|
|
57
59
|
/** Whether the dropdown element is rendered in a portal. */
|
|
58
60
|
isPortaled?: boolean;
|
|
59
61
|
};
|
|
60
|
-
export declare const TimePicker: <T extends React.ElementType = "div">({ format, isDisabled, isFluid, isReadOnly, isRequired, value, timeInterval, label, onChange, className, onError, style, size, errorText, htmlAttributes, floatingStrategy, isPortaled: isPortaledProp, ref, ...restProps }: PolymorphicCommonProps<T, TimePickerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
export declare const TimePicker: <T extends React.ElementType = "div">({ format, isDisabled, isFluid, isReadOnly, isRequired, value, timeInterval, label, onChange, className, onError, style, size, helpText, errorText, htmlAttributes, floatingStrategy, isPortaled: isPortaledProp, ref, ...restProps }: PolymorphicCommonProps<T, TimePickerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
61
63
|
//# sourceMappingURL=TimePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimePicker.d.ts","sourceRoot":"","sources":["../../../src/time-picker/TimePicker.tsx"],"names":[],"mappings":"AAqCA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TimePicker.d.ts","sourceRoot":"","sources":["../../../src/time-picker/TimePicker.tsx"],"names":[],"mappings":"AAqCA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgB/B,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAM/D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAM3C,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,aAAa,CAAC;AAU3E,MAAM,MAAM,eAAe,GAAG;IAC5B,mCAAmC;IACnC,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,oCAAoC;IACpC,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,0CAA0C;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,0CAA0C;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uDAAuD;IACvD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,2HAA2H;IAC3H,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IACtC,2EAA2E;IAC3E,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IACpD;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IACxC,4DAA4D;IAC5D,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAAE,sOAqB7D,sBAAsB,CAAC,CAAC,EAAE,eAAe,CAAC,4CA2Z5C,CAAC"}
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
+
import type React from 'react';
|
|
22
23
|
import { type CommonProps } from '../_common/types';
|
|
23
24
|
export type TimeZonePickerProps = {
|
|
24
25
|
/** The value of the timezone picker (IANA timezone identifier) */
|
|
@@ -35,6 +36,8 @@ export type TimeZonePickerProps = {
|
|
|
35
36
|
label?: string;
|
|
36
37
|
/** The size of the timezone picker */
|
|
37
38
|
size?: 'small' | 'medium' | 'large';
|
|
39
|
+
/** Assistive text displayed below the input. Replaced by `errorText` or an internal validation error while there is one */
|
|
40
|
+
helpText?: React.ReactNode;
|
|
38
41
|
/** Manually set the error text */
|
|
39
42
|
errorText?: string;
|
|
40
43
|
/** Callback function triggered when the timezone picker value changes */
|
|
@@ -64,5 +67,5 @@ export type TimeZonePickerProps = {
|
|
|
64
67
|
*/
|
|
65
68
|
mode?: 'city' | 'utc' | 'both';
|
|
66
69
|
};
|
|
67
|
-
export declare const TimeZonePicker: ({ isDisabled, isFluid, isReadOnly, isRequired, value, label, onChange, className, onError, style, size, errorText, htmlAttributes, floatingStrategy, isPortaled: isPortaledProp, referenceDate, mode, ref, ...restProps }: CommonProps<"input", TimeZonePickerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
70
|
+
export declare const TimeZonePicker: ({ isDisabled, isFluid, isReadOnly, isRequired, value, label, onChange, className, onError, style, size, helpText, errorText, htmlAttributes, floatingStrategy, isPortaled: isPortaledProp, referenceDate, mode, ref, ...restProps }: CommonProps<"input", TimeZonePickerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
68
71
|
//# sourceMappingURL=TimeZonePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeZonePicker.d.ts","sourceRoot":"","sources":["../../../src/timezone-picker/TimeZonePicker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TimeZonePicker.d.ts","sourceRoot":"","sources":["../../../src/timezone-picker/TimeZonePicker.tsx"],"names":[],"mappings":"AAsCA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAgBpD,MAAM,MAAM,mBAAmB,GAAG;IAChC,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,+CAA+C;IAC/C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8CAA8C;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8CAA8C;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,2HAA2H;IAC3H,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,+EAA+E;IAC/E,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IACxC,4DAA4D;IAC5D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4FAA4F;IAC5F,aAAa,CAAC,EAAE,IAAI,CAAC;IACrB;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,qOAqB5B,WAAW,CAAC,OAAO,EAAE,mBAAmB,CAAC,4CAihB3C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-ndl/react",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.22.1",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "React implementation of Neo4j Design System",
|
|
6
6
|
"keywords": [
|
|
@@ -404,7 +404,7 @@
|
|
|
404
404
|
"@tanstack/react-table": "8.21.3",
|
|
405
405
|
"react": ">=19.0.0",
|
|
406
406
|
"react-dom": ">=19.0.0",
|
|
407
|
-
"@neo4j-ndl/base": "^4.
|
|
407
|
+
"@neo4j-ndl/base": "^4.21.1"
|
|
408
408
|
},
|
|
409
409
|
"dependencies": {
|
|
410
410
|
"@dnd-kit/core": "6.3.1",
|
|
@@ -198,7 +198,7 @@ Next-generation components, imported from the `@neo4j-ndl/react/next` subpath. A
|
|
|
198
198
|
|
|
199
199
|
| Component | Docs | Accessibility | Examples |
|
|
200
200
|
|-----------|------|---------------|----------|
|
|
201
|
-
| `TreeView` | [components/next/tree-view.md](components/next/tree-view.md) | ✅ |
|
|
201
|
+
| `TreeView` | [components/next/tree-view.md](components/next/tree-view.md) | ✅ | 11 |
|
|
202
202
|
|
|
203
203
|
## AI components
|
|
204
204
|
|
|
@@ -36,10 +36,10 @@ import { ColorPicker } from '../ColorPicker';
|
|
|
36
36
|
|
|
37
37
|
const Component = () => {
|
|
38
38
|
const [color, setColor] = useState({
|
|
39
|
-
a: 1,
|
|
40
|
-
b: 0,
|
|
41
|
-
g: 0,
|
|
42
|
-
r: 0,
|
|
39
|
+
a: 1, // oxlint-disable-line id-length
|
|
40
|
+
b: 0, // oxlint-disable-line id-length
|
|
41
|
+
g: 0, // oxlint-disable-line id-length
|
|
42
|
+
r: 0, // oxlint-disable-line id-length
|
|
43
43
|
});
|
|
44
44
|
|
|
45
45
|
return (
|
|
@@ -62,10 +62,10 @@ import { ColorPicker } from '../ColorPicker';
|
|
|
62
62
|
|
|
63
63
|
const Component = () => {
|
|
64
64
|
const [color, setColor] = useState({
|
|
65
|
-
a: 1,
|
|
66
|
-
b: 0,
|
|
67
|
-
g: 0,
|
|
68
|
-
r: 0,
|
|
65
|
+
a: 1, // oxlint-disable-line id-length
|
|
66
|
+
b: 0, // oxlint-disable-line id-length
|
|
67
|
+
g: 0, // oxlint-disable-line id-length
|
|
68
|
+
r: 0, // oxlint-disable-line id-length
|
|
69
69
|
});
|
|
70
70
|
|
|
71
71
|
return (
|
|
@@ -74,28 +74,28 @@ const Component = () => {
|
|
|
74
74
|
onChange={(newColor) => setColor(newColor.rgb)}
|
|
75
75
|
swatches={[
|
|
76
76
|
{
|
|
77
|
-
a: 1,
|
|
78
|
-
b: 0,
|
|
79
|
-
g: 0,
|
|
80
|
-
r: 0,
|
|
77
|
+
a: 1, // oxlint-disable-line id-length
|
|
78
|
+
b: 0, // oxlint-disable-line id-length
|
|
79
|
+
g: 0, // oxlint-disable-line id-length
|
|
80
|
+
r: 0, // oxlint-disable-line id-length
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
|
-
a: 1,
|
|
84
|
-
b: 255,
|
|
85
|
-
g: 0,
|
|
86
|
-
r: 0,
|
|
83
|
+
a: 1, // oxlint-disable-line id-length
|
|
84
|
+
b: 255, // oxlint-disable-line id-length
|
|
85
|
+
g: 0, // oxlint-disable-line id-length
|
|
86
|
+
r: 0, // oxlint-disable-line id-length
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
|
-
a: 1,
|
|
90
|
-
b: 0,
|
|
91
|
-
g: 255,
|
|
92
|
-
r: 0,
|
|
89
|
+
a: 1, // oxlint-disable-line id-length
|
|
90
|
+
b: 0, // oxlint-disable-line id-length
|
|
91
|
+
g: 255, // oxlint-disable-line id-length
|
|
92
|
+
r: 0, // oxlint-disable-line id-length
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
|
-
a: 1,
|
|
96
|
-
b: 0,
|
|
97
|
-
g: 0,
|
|
98
|
-
r: 255,
|
|
95
|
+
a: 1, // oxlint-disable-line id-length
|
|
96
|
+
b: 0, // oxlint-disable-line id-length
|
|
97
|
+
g: 0, // oxlint-disable-line id-length
|
|
98
|
+
r: 255, // oxlint-disable-line id-length
|
|
99
99
|
},
|
|
100
100
|
]}
|
|
101
101
|
/>
|
|
@@ -119,10 +119,10 @@ const Component = () => {
|
|
|
119
119
|
const handleClose = () => setIsOpen(false);
|
|
120
120
|
|
|
121
121
|
const [color, setColor] = useState({
|
|
122
|
-
a: 1,
|
|
123
|
-
b: 0,
|
|
124
|
-
g: 0,
|
|
125
|
-
r: 0,
|
|
122
|
+
a: 1, // oxlint-disable-line id-length
|
|
123
|
+
b: 0, // oxlint-disable-line id-length
|
|
124
|
+
g: 0, // oxlint-disable-line id-length
|
|
125
|
+
r: 0, // oxlint-disable-line id-length
|
|
126
126
|
});
|
|
127
127
|
|
|
128
128
|
return (
|
|
@@ -190,10 +190,10 @@ import { ColorPicker } from '../ColorPicker';
|
|
|
190
190
|
|
|
191
191
|
const Component = () => {
|
|
192
192
|
const [color, setColor] = useState({
|
|
193
|
-
a: 1,
|
|
194
|
-
b: 0,
|
|
195
|
-
g: 0,
|
|
196
|
-
r: 0,
|
|
193
|
+
a: 1, // oxlint-disable-line id-length
|
|
194
|
+
b: 0, // oxlint-disable-line id-length
|
|
195
|
+
g: 0, // oxlint-disable-line id-length
|
|
196
|
+
r: 0, // oxlint-disable-line id-length
|
|
197
197
|
});
|
|
198
198
|
|
|
199
199
|
return (
|
|
@@ -19,7 +19,7 @@ Import: `import { Combobox } from '@neo4j-ndl/react'`
|
|
|
19
19
|
| `floatingStrategy` | `'absolute' \| 'fixed'` | | | Positioning strategy used by Floating UI. |
|
|
20
20
|
| `formatCreateLabel` | `((searchValue: string) => ReactNode)` | | `` (searchValue: string) => `Create "${searchValue}"` `` | Text of the create row. Defaults to `Create "<search value>"`. |
|
|
21
21
|
| `formId` | `string` | | | Id of the form the combobox belongs to when it is outside that form. |
|
|
22
|
-
| `hasRequiredIndicator` | `boolean` | | `false` | Whether Required or Optional is shown at the end of the label row
|
|
22
|
+
| `hasRequiredIndicator` | `boolean` | | `false` | Whether Required or Optional is shown at the end of the label row, based on the `isRequired` prop |
|
|
23
23
|
| `hasVisuallyHiddenLabel` | `boolean` | | `false` | Whether the label is clipped out of the layout, leaving it to screen readers only. |
|
|
24
24
|
| `helpText` | `ReactNode` | | | Assistive text below the control. Replaced by `errorText` while there is an error. |
|
|
25
25
|
| `isClean` | `boolean` | | `false` | Whether the control hugs its content without a background or resting outline. |
|
|
@@ -99,7 +99,7 @@ The trigger is the form control, so it carries all of the validation ARIA.
|
|
|
99
99
|
| `isRequired` | `aria-required="true"` |
|
|
100
100
|
|
|
101
101
|
- An error replaces the help text, so only one message is ever rendered and only that one is described. Do not put the error in `helpText` as well.
|
|
102
|
-
- The message container is
|
|
102
|
+
- The message container is an atomic, polite live region that is always in the document, so a validation error is announced in full when it appears. It stays polite so validation on blur or on change never interrupts the screen reader.
|
|
103
103
|
- `hasRequiredIndicator` adds Required or Optional at the end of the label row without changing the accessible name; requiredness is exposed through `aria-required` alone.
|
|
104
104
|
- Without `name`, `isRequired` only marks the trigger with `aria-required`; validation belongs to the form around it.
|
|
105
105
|
- With `name`, `isRequired` also enables native constraint validation. If submission is attempted without a selection, the hidden native control prevents submission, moves focus to the visible trigger, and puts the browser validation message in the existing error live region. An explicit `errorText` takes precedence over that message.
|
|
@@ -157,11 +157,11 @@ import {
|
|
|
157
157
|
|
|
158
158
|
// Configuration constants
|
|
159
159
|
const CONFIG = {
|
|
160
|
-
|
|
160
|
+
ACCEPTED_EXTENSIONS: ['.txt', '.json'] as string[],
|
|
161
161
|
MAX_FILE_SIZE: 5 * 1024 * 1024, // 5MB
|
|
162
|
+
MAX_FILES: 3,
|
|
162
163
|
PROGRESS_INCREMENT: 5,
|
|
163
164
|
UPDATE_INTERVAL: 100,
|
|
164
|
-
ACCEPTED_EXTENSIONS: ['.txt', '.json'] as string[],
|
|
165
165
|
} as const;
|
|
166
166
|
|
|
167
167
|
enum UploadState {
|
|
@@ -198,9 +198,9 @@ const Component = () => {
|
|
|
198
198
|
const simulateUpload = useCallback((files: File[]) => {
|
|
199
199
|
setUploadData((prev) => ({
|
|
200
200
|
...prev,
|
|
201
|
-
state: UploadState.Uploading,
|
|
202
201
|
files,
|
|
203
202
|
progress: 0,
|
|
203
|
+
state: UploadState.Uploading,
|
|
204
204
|
}));
|
|
205
205
|
|
|
206
206
|
const interval = setInterval(() => {
|
|
@@ -244,7 +244,7 @@ const Component = () => {
|
|
|
244
244
|
(file) =>
|
|
245
245
|
`${file.file.name}: ${file.errors.map((error) => error.message).join(', ')}`,
|
|
246
246
|
);
|
|
247
|
-
setUploadData((prev) => ({ ...prev, state: UploadState.Error
|
|
247
|
+
setUploadData((prev) => ({ ...prev, errors, state: UploadState.Error }));
|
|
248
248
|
},
|
|
249
249
|
[],
|
|
250
250
|
);
|
|
@@ -253,8 +253,8 @@ const Component = () => {
|
|
|
253
253
|
console.error('Dropzone error:', error);
|
|
254
254
|
setUploadData((prev) => ({
|
|
255
255
|
...prev,
|
|
256
|
-
state: UploadState.Error,
|
|
257
256
|
errors: [error.message],
|
|
257
|
+
state: UploadState.Error,
|
|
258
258
|
}));
|
|
259
259
|
}, []);
|
|
260
260
|
|