@neo4j-ndl/react 4.21.2-alpha.c774957.15.1 → 4.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/lib/cjs/ai/reasoning/Reasoning.js +1 -1
  2. package/lib/cjs/ai/reasoning/Reasoning.js.map +1 -1
  3. package/lib/cjs/clean-icon-button/stories/clean-icon-button-sizes.story.js +1 -1
  4. package/lib/cjs/clean-icon-button/stories/clean-icon-button-sizes.story.js.map +1 -1
  5. package/lib/cjs/clean-icon-button/stories/clean-icon-button-tone.story.js +1 -1
  6. package/lib/cjs/clean-icon-button/stories/clean-icon-button-tone.story.js.map +1 -1
  7. package/lib/cjs/date-picker/stories/date-picker-with-timezone-both-mode.story.js +1 -1
  8. package/lib/cjs/date-picker/stories/date-picker-with-timezone-both-mode.story.js.map +1 -1
  9. package/lib/cjs/dropzone/stories/dropzone-full.story.js +1 -1
  10. package/lib/cjs/dropzone/stories/dropzone-full.story.js.map +1 -1
  11. package/lib/cjs/helpers/index.js +1 -0
  12. package/lib/cjs/helpers/index.js.map +1 -1
  13. package/lib/cjs/helpers/platform.js +59 -0
  14. package/lib/cjs/helpers/platform.js.map +1 -0
  15. package/lib/cjs/icon-button/stories/icon-button-sizes.story.js +1 -1
  16. package/lib/cjs/icon-button/stories/icon-button-sizes.story.js.map +1 -1
  17. package/lib/cjs/icon-button/stories/icon-button-tone.story.js +1 -1
  18. package/lib/cjs/icon-button/stories/icon-button-tone.story.js.map +1 -1
  19. package/lib/cjs/kbd/kbd-utils.js +6 -22
  20. package/lib/cjs/kbd/kbd-utils.js.map +1 -1
  21. package/lib/cjs/next/tree-view/TreeView.js +384 -66
  22. package/lib/cjs/next/tree-view/TreeView.js.map +1 -1
  23. package/lib/cjs/next/tree-view/selection.js +181 -0
  24. package/lib/cjs/next/tree-view/selection.js.map +1 -0
  25. package/lib/cjs/next/tree-view/stories/index.js +13 -1
  26. package/lib/cjs/next/tree-view/stories/index.js.map +1 -1
  27. package/lib/cjs/next/tree-view/stories/tree-view-large.story.js +57 -0
  28. package/lib/cjs/next/tree-view/stories/tree-view-large.story.js.map +1 -0
  29. package/lib/cjs/next/tree-view/stories/tree-view-lazy.story.js +1 -0
  30. package/lib/cjs/next/tree-view/stories/tree-view-lazy.story.js.map +1 -1
  31. package/lib/cjs/next/tree-view/stories/tree-view-multi.story.js +16 -40
  32. package/lib/cjs/next/tree-view/stories/tree-view-multi.story.js.map +1 -1
  33. package/lib/cjs/next/tree-view/stories/tree-view-multiple-replace.story.js +38 -0
  34. package/lib/cjs/next/tree-view/stories/tree-view-multiple-replace.story.js.map +1 -0
  35. package/lib/cjs/next/tree-view/stories/tree-view-non-selectable-folders.story.js +7 -4
  36. package/lib/cjs/next/tree-view/stories/tree-view-non-selectable-folders.story.js.map +1 -1
  37. package/lib/cjs/next/tree-view/stories/tree-view-root-selection.story.js +125 -0
  38. package/lib/cjs/next/tree-view/stories/tree-view-root-selection.story.js.map +1 -0
  39. package/lib/cjs/radio/stories/radio-custom-label.story.js +1 -1
  40. package/lib/cjs/radio/stories/radio-custom-label.story.js.map +1 -1
  41. package/lib/cjs/select-icon-button/stories/select-icon-button-sizes.story.js +1 -1
  42. package/lib/cjs/select-icon-button/stories/select-icon-button-sizes.story.js.map +1 -1
  43. package/lib/cjs/select-icon-button/stories/select-icon-button-states.story.js +1 -1
  44. package/lib/cjs/select-icon-button/stories/select-icon-button-states.story.js.map +1 -1
  45. package/lib/cjs/side-navigation/SideNavigation.js +1 -1
  46. package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
  47. package/lib/cjs/status-indicator/stories/status-indicator-variants.story.js +1 -1
  48. package/lib/cjs/status-indicator/stories/status-indicator-variants.story.js.map +1 -1
  49. package/lib/cjs/tabs/stories/tabs-fill-variants.story.js +1 -1
  50. package/lib/cjs/tabs/stories/tabs-fill-variants.story.js.map +1 -1
  51. package/lib/cjs/tabs/stories/tabs-sizes.story.js +1 -1
  52. package/lib/cjs/tabs/stories/tabs-sizes.story.js.map +1 -1
  53. package/lib/cjs/toast/ToastControlled.js +1 -1
  54. package/lib/cjs/toast/ToastControlled.js.map +1 -1
  55. package/lib/cjs/typography/Typography.js.map +1 -1
  56. package/lib/esm/ai/reasoning/Reasoning.js +1 -1
  57. package/lib/esm/ai/reasoning/Reasoning.js.map +1 -1
  58. package/lib/esm/clean-icon-button/stories/clean-icon-button-sizes.story.js +1 -1
  59. package/lib/esm/clean-icon-button/stories/clean-icon-button-sizes.story.js.map +1 -1
  60. package/lib/esm/clean-icon-button/stories/clean-icon-button-tone.story.js +1 -1
  61. package/lib/esm/clean-icon-button/stories/clean-icon-button-tone.story.js.map +1 -1
  62. package/lib/esm/date-picker/stories/date-picker-with-timezone-both-mode.story.js +1 -1
  63. package/lib/esm/date-picker/stories/date-picker-with-timezone-both-mode.story.js.map +1 -1
  64. package/lib/esm/dropzone/stories/dropzone-full.story.js +1 -1
  65. package/lib/esm/dropzone/stories/dropzone-full.story.js.map +1 -1
  66. package/lib/esm/helpers/index.js +1 -0
  67. package/lib/esm/helpers/index.js.map +1 -1
  68. package/lib/esm/helpers/platform.js +55 -0
  69. package/lib/esm/helpers/platform.js.map +1 -0
  70. package/lib/esm/icon-button/stories/icon-button-sizes.story.js +1 -1
  71. package/lib/esm/icon-button/stories/icon-button-sizes.story.js.map +1 -1
  72. package/lib/esm/icon-button/stories/icon-button-tone.story.js +1 -1
  73. package/lib/esm/icon-button/stories/icon-button-tone.story.js.map +1 -1
  74. package/lib/esm/kbd/kbd-utils.js +2 -18
  75. package/lib/esm/kbd/kbd-utils.js.map +1 -1
  76. package/lib/esm/next/tree-view/TreeView.js +385 -67
  77. package/lib/esm/next/tree-view/TreeView.js.map +1 -1
  78. package/lib/esm/next/tree-view/selection.js +175 -0
  79. package/lib/esm/next/tree-view/selection.js.map +1 -0
  80. package/lib/esm/next/tree-view/stories/index.js +9 -0
  81. package/lib/esm/next/tree-view/stories/index.js.map +1 -1
  82. package/lib/esm/next/tree-view/stories/tree-view-large.story.js +55 -0
  83. package/lib/esm/next/tree-view/stories/tree-view-large.story.js.map +1 -0
  84. package/lib/esm/next/tree-view/stories/tree-view-lazy.story.js +1 -0
  85. package/lib/esm/next/tree-view/stories/tree-view-lazy.story.js.map +1 -1
  86. package/lib/esm/next/tree-view/stories/tree-view-multi.story.js +16 -40
  87. package/lib/esm/next/tree-view/stories/tree-view-multi.story.js.map +1 -1
  88. package/lib/esm/next/tree-view/stories/tree-view-multiple-replace.story.js +36 -0
  89. package/lib/esm/next/tree-view/stories/tree-view-multiple-replace.story.js.map +1 -0
  90. package/lib/esm/next/tree-view/stories/tree-view-non-selectable-folders.story.js +7 -4
  91. package/lib/esm/next/tree-view/stories/tree-view-non-selectable-folders.story.js.map +1 -1
  92. package/lib/esm/next/tree-view/stories/tree-view-root-selection.story.js +123 -0
  93. package/lib/esm/next/tree-view/stories/tree-view-root-selection.story.js.map +1 -0
  94. package/lib/esm/radio/stories/radio-custom-label.story.js +1 -1
  95. package/lib/esm/radio/stories/radio-custom-label.story.js.map +1 -1
  96. package/lib/esm/select-icon-button/stories/select-icon-button-sizes.story.js +1 -1
  97. package/lib/esm/select-icon-button/stories/select-icon-button-sizes.story.js.map +1 -1
  98. package/lib/esm/select-icon-button/stories/select-icon-button-states.story.js +1 -1
  99. package/lib/esm/select-icon-button/stories/select-icon-button-states.story.js.map +1 -1
  100. package/lib/esm/side-navigation/SideNavigation.js +1 -1
  101. package/lib/esm/side-navigation/SideNavigation.js.map +1 -1
  102. package/lib/esm/status-indicator/stories/status-indicator-variants.story.js +1 -1
  103. package/lib/esm/status-indicator/stories/status-indicator-variants.story.js.map +1 -1
  104. package/lib/esm/tabs/stories/tabs-fill-variants.story.js +1 -1
  105. package/lib/esm/tabs/stories/tabs-fill-variants.story.js.map +1 -1
  106. package/lib/esm/tabs/stories/tabs-sizes.story.js +1 -1
  107. package/lib/esm/tabs/stories/tabs-sizes.story.js.map +1 -1
  108. package/lib/esm/toast/ToastControlled.js +1 -1
  109. package/lib/esm/toast/ToastControlled.js.map +1 -1
  110. package/lib/esm/typography/Typography.js.map +1 -1
  111. package/lib/types/helpers/index.d.ts +1 -0
  112. package/lib/types/helpers/index.d.ts.map +1 -1
  113. package/lib/types/helpers/platform.d.ts +29 -0
  114. package/lib/types/helpers/platform.d.ts.map +1 -0
  115. package/lib/types/kbd/kbd-utils.d.ts +2 -5
  116. package/lib/types/kbd/kbd-utils.d.ts.map +1 -1
  117. package/lib/types/next/tree-view/TreeView.d.ts +29 -5
  118. package/lib/types/next/tree-view/TreeView.d.ts.map +1 -1
  119. package/lib/types/next/tree-view/selection.d.ts +78 -0
  120. package/lib/types/next/tree-view/selection.d.ts.map +1 -0
  121. package/lib/types/next/tree-view/stories/index.d.ts +6 -0
  122. package/lib/types/next/tree-view/stories/index.d.ts.map +1 -1
  123. package/lib/types/next/tree-view/stories/tree-view-large.story.d.ts +24 -0
  124. package/lib/types/next/tree-view/stories/tree-view-large.story.d.ts.map +1 -0
  125. package/lib/types/next/tree-view/stories/tree-view-lazy.story.d.ts.map +1 -1
  126. package/lib/types/next/tree-view/stories/tree-view-multi.story.d.ts +10 -0
  127. package/lib/types/next/tree-view/stories/tree-view-multi.story.d.ts.map +1 -1
  128. package/lib/types/next/tree-view/stories/tree-view-multiple-replace.story.d.ts +29 -0
  129. package/lib/types/next/tree-view/stories/tree-view-multiple-replace.story.d.ts.map +1 -0
  130. package/lib/types/next/tree-view/stories/tree-view-non-selectable-folders.story.d.ts +5 -0
  131. package/lib/types/next/tree-view/stories/tree-view-non-selectable-folders.story.d.ts.map +1 -1
  132. package/lib/types/next/tree-view/stories/tree-view-root-selection.story.d.ts +24 -0
  133. package/lib/types/next/tree-view/stories/tree-view-root-selection.story.d.ts.map +1 -0
  134. package/lib/types/typography/Typography.d.ts +1 -6
  135. package/lib/types/typography/Typography.d.ts.map +1 -1
  136. package/package.json +3 -4
  137. package/skills/ndl-react/SKILL.md +1 -1
  138. package/skills/ndl-react/components/clean-icon-button.md +5 -5
  139. package/skills/ndl-react/components/color-picker.md +32 -32
  140. package/skills/ndl-react/components/date-picker.md +1 -1
  141. package/skills/ndl-react/components/dropzone.md +6 -6
  142. package/skills/ndl-react/components/icon-button.md +5 -5
  143. package/skills/ndl-react/components/next/tree-view.md +358 -104
  144. package/skills/ndl-react/components/radio.md +1 -1
  145. package/skills/ndl-react/components/select-icon-button.md +6 -6
  146. package/skills/ndl-react/components/status-indicator.md +5 -5
  147. package/skills/ndl-react/components/tabs.md +4 -4
  148. package/skills/ndl-react/components/typography.md +1 -1
@@ -0,0 +1,78 @@
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
+ export type SelectionMode = 'single' | 'multiple' | 'multiple-replace';
22
+ export type SelectionEdge = 'top' | 'middle' | 'bottom';
23
+ /** Modifier keys resolved from a pointer or keyboard event. */
24
+ export type SelectionIntent = {
25
+ /** Shift: extend from the anchor to the target. */
26
+ isRange: boolean;
27
+ /**
28
+ * Cmd on Apple platforms, Ctrl elsewhere. Ignored in `multiple`, where an
29
+ * unmodified click already toggles.
30
+ */
31
+ isToggle: boolean;
32
+ };
33
+ /**
34
+ * Where a range is measured from.
35
+ *
36
+ * `baseSelectedIds` is the selection as it stood immediately after the anchor
37
+ * was placed. A `multiple-replace` range unions its visible members with the
38
+ * range so it can be grown and shrunk without losing earlier picks.
39
+ * `isSelected` is the state the anchor row was placed into, which a `multiple`
40
+ * range paints across its members.
41
+ */
42
+ export type SelectionAnchor = {
43
+ baseSelectedIds: ReadonlySet<string>;
44
+ id: string;
45
+ isSelected: boolean;
46
+ } | null;
47
+ type ComputeNextSelectionInput = {
48
+ anchor: SelectionAnchor;
49
+ intent: SelectionIntent;
50
+ /** Ids of every selectable, non-disabled item, visible or not. */
51
+ selectableIds: ReadonlySet<string>;
52
+ /** Currently selected ids, including items inside collapsed groups. */
53
+ selectedIds: ReadonlySet<string>;
54
+ selectionMode: SelectionMode;
55
+ targetId: string;
56
+ /** Ids of the items the user can currently see, in visual order. */
57
+ visibleIds: readonly string[];
58
+ /** Maps an item id to the id of the item that owns its group. */
59
+ parentIdById: ReadonlyMap<string, string>;
60
+ };
61
+ type ComputeNextSelectionResult = {
62
+ anchor: SelectionAnchor;
63
+ selectedIds: Set<string>;
64
+ };
65
+ /**
66
+ * Resolves a selection gesture into the complete next selection. Pure: the
67
+ * caller supplies the current state and applies the result.
68
+ */
69
+ export declare function computeNextSelection({ anchor, intent, parentIdById, selectableIds, selectedIds, selectionMode, targetId, visibleIds, }: ComputeNextSelectionInput): ComputeNextSelectionResult;
70
+ /**
71
+ * Marks each selected item's position within its run of adjacent selected
72
+ * items, so a run can be styled as one block.
73
+ */
74
+ export declare function computeSelectionEdges(visibleIds: readonly string[], selectedIds: ReadonlySet<string>): Map<string, SelectionEdge>;
75
+ export declare function countChangedIds(previous: ReadonlySet<string>, next: ReadonlySet<string>): number;
76
+ export declare function formatSelectionAnnouncement(selectedCount: number): string;
77
+ export {};
78
+ //# sourceMappingURL=selection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../../../src/next/tree-view/selection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,kBAAkB,CAAC;AAEvE,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAExD,+DAA+D;AAC/D,MAAM,MAAM,eAAe,GAAG;IAC5B,mDAAmD;IACnD,OAAO,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,eAAe,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,OAAO,CAAC;CACrB,GAAG,IAAI,CAAC;AAET,KAAK,yBAAyB,GAAG;IAC/B,MAAM,EAAE,eAAe,CAAC;IACxB,MAAM,EAAE,eAAe,CAAC;IACxB,kEAAkE;IAClE,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACnC,uEAAuE;IACvE,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACjC,aAAa,EAAE,aAAa,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,oEAAoE;IACpE,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B,iEAAiE;IACjE,YAAY,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC3C,CAAC;AAEF,KAAK,0BAA0B,GAAG;IAChC,MAAM,EAAE,eAAe,CAAC;IACxB,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC1B,CAAC;AA2EF;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,MAAM,EACN,YAAY,EACZ,aAAa,EACb,WAAW,EACX,aAAa,EACb,QAAQ,EACR,UAAU,GACX,EAAE,yBAAyB,GAAG,0BAA0B,CAiExD;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,GAC/B,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAmB5B;AAED,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,EAC7B,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,GACxB,MAAM,CAaR;AAED,wBAAgB,2BAA2B,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAQzE"}
@@ -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,EAAE,MAAM,4BAA4B,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAY3E,eAAO,MAAM,kBAAkB,QAA6C,CAAC;AAC7E,eAAO,MAAM,sBAAsB,QAElC,CAAC;AACF,eAAO,MAAM,sBAAsB,QAElC,CAAC;AACF,eAAO,MAAM,+BAA+B,QAE3C,CAAC;AACF,eAAO,MAAM,uBAAuB,QAEnC,CAAC;AACF,eAAO,MAAM,0BAA0B,QAEtC,CAAC;AACF,eAAO,MAAM,kBAAkB,QAA6C,CAAC;AAC7E,eAAO,MAAM,gCAAgC,QAE5C,CAAC"}
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,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACnG,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACpF,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,EAAE,MAAM,4BAA4B,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAe3E,eAAO,MAAM,kBAAkB,QAA6C,CAAC;AAC7E,eAAO,MAAM,gBAAgB,QAA2C,CAAC;AACzE,eAAO,MAAM,sBAAsB,QAElC,CAAC;AACF,eAAO,MAAM,sBAAsB,QAElC,CAAC;AACF,eAAO,MAAM,0BAA0B,QAEtC,CAAC;AACF,eAAO,MAAM,+BAA+B,QAE3C,CAAC;AACF,eAAO,MAAM,wBAAwB,QAEpC,CAAC;AACF,eAAO,MAAM,uBAAuB,QAEnC,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;AA0LjD,QAAA,MAAM,SAAS,+CAcd,CAAC;AAEF,eAAe,SAAS,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;AAmCjD,QAAA,MAAM,SAAS,+CAsGd,CAAC;AAEF,eAAe,SAAS,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,+CAiEd,CAAC;AAEF,eAAe,SAAS,CAAC"}
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"}
@@ -22,12 +22,7 @@ import { type tokens } from '@neo4j-ndl/base';
22
22
  import { type PolymorphicCommonProps } from '../_common/types';
23
23
  export type TypographyVariants = keyof typeof tokens.typography;
24
24
  type TypographyProps = {
25
- /**
26
- * The typography variant to use for the text.
27
- *
28
- * `label` is deprecated: it is identical to `title-4`, which should be used
29
- * instead.
30
- */
25
+ /** The typography variant to use for the text. */
31
26
  variant: TypographyVariants;
32
27
  /** Content displayed inside the component */
33
28
  children?: React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../../src/typography/Typography.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAG9C,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE/D,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,MAAM,CAAC,UAAU,CAAC;AAEhE,KAAK,eAAe,GAAG;IACrB;;;;;OAKG;IACH,OAAO,EAAE,kBAAkB,CAAC;IAC5B,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,MAAM,EAC7D,OAAO,sBAAsB,CAAC,CAAC,EAAE,eAAe,CAAC,KAChD,KAAK,CAAC,YAAY,GAAG,IAmBvB,CAAC"}
1
+ {"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../../src/typography/Typography.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAG9C,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE/D,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,MAAM,CAAC,UAAU,CAAC;AAEhE,KAAK,eAAe,GAAG;IACrB,kDAAkD;IAClD,OAAO,EAAE,kBAAkB,CAAC;IAC5B,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,MAAM,EAC7D,OAAO,sBAAsB,CAAC,CAAC,EAAE,eAAe,CAAC,KAChD,KAAK,CAAC,YAAY,GAAG,IAmBvB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-ndl/react",
3
- "version": "4.21.2-alpha.c774957.15.1",
3
+ "version": "4.22.0",
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.20.2-alpha.c774957.15.1"
407
+ "@neo4j-ndl/base": "^4.21.0"
408
408
  },
409
409
  "dependencies": {
410
410
  "@dnd-kit/core": "6.3.1",
@@ -432,8 +432,7 @@
432
432
  "temporal-polyfill": "1.0.1",
433
433
  "tinycolor2": "1.6.0",
434
434
  "usehooks-ts": "3.1.1",
435
- "zod": "4.3.6",
436
- "@neo4j-ndl/base": "4.20.2-alpha.c774957.15.1"
435
+ "zod": "4.3.6"
437
436
  },
438
437
  "scripts": {
439
438
  "generate-component": "node ./scripts/component-generator.js",
@@ -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) | ✅ | 8 |
201
+ | `TreeView` | [components/next/tree-view.md](components/next/tree-view.md) | ✅ | 10 |
202
202
 
203
203
  ## AI components
204
204
 
@@ -242,19 +242,19 @@ const Component = () => {
242
242
  <CleanIconButton description="Search" size="small">
243
243
  <MagnifyingGlassIconOutline />
244
244
  </CleanIconButton>
245
- <Typography variant="title-4"> Small</Typography>
245
+ <Typography variant="label"> Small</Typography>
246
246
  </div>
247
247
  <div className="n-flex n-flex-row n-gap-token-16 n-items-center">
248
248
  <CleanIconButton description="Search" size="medium">
249
249
  <MagnifyingGlassIconOutline />
250
250
  </CleanIconButton>
251
- <Typography variant="title-4"> Medium</Typography>
251
+ <Typography variant="label"> Medium</Typography>
252
252
  </div>
253
253
  <div className="n-flex n-flex-row n-gap-token-16 n-items-center">
254
254
  <CleanIconButton description="Search" size="large">
255
255
  <MagnifyingGlassIconOutline />
256
256
  </CleanIconButton>
257
- <Typography variant="title-4"> Large</Typography>
257
+ <Typography variant="label"> Large</Typography>
258
258
  </div>
259
259
  </div>
260
260
  );
@@ -278,13 +278,13 @@ const Component = () => {
278
278
  <CleanIconButton description="Search" variant="neutral">
279
279
  <MagnifyingGlassIconOutline />
280
280
  </CleanIconButton>
281
- <Typography variant="title-4">Default</Typography>
281
+ <Typography variant="label">Default</Typography>
282
282
  </div>
283
283
  <div className="n-flex n-flex-row n-gap-token-16 n-items-center">
284
284
  <CleanIconButton description="Search" variant="danger">
285
285
  <MagnifyingGlassIconOutline />
286
286
  </CleanIconButton>
287
- <Typography variant="title-4">Danger</Typography>
287
+ <Typography variant="label">Danger</Typography>
288
288
  </div>
289
289
  </div>
290
290
  );
@@ -36,10 +36,10 @@ import { ColorPicker } from '../ColorPicker';
36
36
 
37
37
  const Component = () => {
38
38
  const [color, setColor] = useState({
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
39
+ a: 1,
40
+ b: 0,
41
+ g: 0,
42
+ r: 0,
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, // 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
65
+ a: 1,
66
+ b: 0,
67
+ g: 0,
68
+ r: 0,
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, // 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
77
+ a: 1,
78
+ b: 0,
79
+ g: 0,
80
+ r: 0,
81
81
  },
82
82
  {
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
83
+ a: 1,
84
+ b: 255,
85
+ g: 0,
86
+ r: 0,
87
87
  },
88
88
  {
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
89
+ a: 1,
90
+ b: 0,
91
+ g: 255,
92
+ r: 0,
93
93
  },
94
94
  {
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
95
+ a: 1,
96
+ b: 0,
97
+ g: 0,
98
+ r: 255,
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, // 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
122
+ a: 1,
123
+ b: 0,
124
+ g: 0,
125
+ r: 0,
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, // 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
193
+ a: 1,
194
+ b: 0,
195
+ g: 0,
196
+ r: 0,
197
197
  });
198
198
 
199
199
  return (
@@ -689,7 +689,7 @@ export const DatePickerWithTimeZoneBothMode = () => {
689
689
  padding: '16px',
690
690
  }}
691
691
  >
692
- <Typography variant="title-4">Selected Values:</Typography>
692
+ <Typography variant="label">Selected Values:</Typography>
693
693
  <Typography variant="body-small">
694
694
  <strong>Date: </strong>
695
695
  {selectedDate?.toISOString() ?? 'None'}
@@ -157,11 +157,11 @@ import {
157
157
 
158
158
  // Configuration constants
159
159
  const CONFIG = {
160
- ACCEPTED_EXTENSIONS: ['.txt', '.json'] as string[],
161
- MAX_FILE_SIZE: 5 * 1024 * 1024, // 5MB
162
160
  MAX_FILES: 3,
161
+ MAX_FILE_SIZE: 5 * 1024 * 1024, // 5MB
163
162
  PROGRESS_INCREMENT: 5,
164
163
  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,
201
202
  files,
202
203
  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, errors, state: UploadState.Error }));
247
+ setUploadData((prev) => ({ ...prev, state: UploadState.Error, errors }));
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
- errors: [error.message],
257
256
  state: UploadState.Error,
257
+ errors: [error.message],
258
258
  }));
259
259
  }, []);
260
260
 
@@ -296,7 +296,7 @@ const Component = () => {
296
296
  {errors.map((message, index) => (
297
297
  <Typography
298
298
  key={index}
299
- variant="title-4"
299
+ variant="label"
300
300
  className="n-text-danger-text n-font-semibold"
301
301
  htmlAttributes={{ role: 'alert' }}
302
302
  >
@@ -141,19 +141,19 @@ const Component = () => {
141
141
  <IconButton description="Search" size="small">
142
142
  <MagnifyingGlassIconOutline />
143
143
  </IconButton>
144
- <Typography variant="title-4"> Small</Typography>
144
+ <Typography variant="label"> Small</Typography>
145
145
  </div>
146
146
  <div className="n-flex n-flex-row n-gap-token-16 n-items-center">
147
147
  <IconButton description="Search" size="medium">
148
148
  <MagnifyingGlassIconOutline />
149
149
  </IconButton>
150
- <Typography variant="title-4"> Medium</Typography>
150
+ <Typography variant="label"> Medium</Typography>
151
151
  </div>
152
152
  <div className="n-flex n-flex-row n-gap-token-16 n-items-center">
153
153
  <IconButton description="Search" size="large">
154
154
  <MagnifyingGlassIconOutline />
155
155
  </IconButton>
156
- <Typography variant="title-4"> Large</Typography>
156
+ <Typography variant="label"> Large</Typography>
157
157
  </div>
158
158
  </div>
159
159
  );
@@ -177,13 +177,13 @@ const Component = () => {
177
177
  <IconButton description="Search" variant="neutral">
178
178
  <MagnifyingGlassIconOutline />
179
179
  </IconButton>
180
- <Typography variant="title-4">Default</Typography>
180
+ <Typography variant="label">Default</Typography>
181
181
  </div>
182
182
  <div className="n-flex n-flex-row n-gap-token-16 n-items-center">
183
183
  <IconButton description="Search" variant="danger">
184
184
  <MagnifyingGlassIconOutline />
185
185
  </IconButton>
186
- <Typography variant="title-4">Danger</Typography>
186
+ <Typography variant="label">Danger</Typography>
187
187
  </div>
188
188
  </div>
189
189
  );