@neo4j-ndl/react 5.6.4 → 6.0.0-alpha.0.d77a467

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 (118) hide show
  1. package/lib/cjs/accordion/Accordion.js +2 -2
  2. package/lib/cjs/accordion/Accordion.js.map +1 -1
  3. package/lib/cjs/ai/preview/Preview.js +1 -1
  4. package/lib/cjs/ai/preview/Preview.js.map +1 -1
  5. package/lib/cjs/ai/reasoning/Reasoning.js +2 -2
  6. package/lib/cjs/ai/reasoning/Reasoning.js.map +1 -1
  7. package/lib/cjs/ai/thinking/Thinking.js +2 -2
  8. package/lib/cjs/ai/thinking/Thinking.js.map +1 -1
  9. package/lib/cjs/avatar/Avatar.js +1 -1
  10. package/lib/cjs/avatar/Avatar.js.map +1 -1
  11. package/lib/cjs/banner/Banner.js +1 -1
  12. package/lib/cjs/banner/Banner.js.map +1 -1
  13. package/lib/cjs/data-grid/Components.js +1 -1
  14. package/lib/cjs/data-grid/Components.js.map +1 -1
  15. package/lib/cjs/date-picker/DatePicker.js +2 -2
  16. package/lib/cjs/date-picker/DatePicker.js.map +1 -1
  17. package/lib/cjs/dialog/Dialog.js +1 -1
  18. package/lib/cjs/dialog/Dialog.js.map +1 -1
  19. package/lib/cjs/drawer/Drawer.js +1 -1
  20. package/lib/cjs/drawer/Drawer.js.map +1 -1
  21. package/lib/cjs/dropzone/Dropzone.js +2 -2
  22. package/lib/cjs/dropzone/Dropzone.js.map +1 -1
  23. package/lib/cjs/icons/index.js +1 -1
  24. package/lib/cjs/index.js +4 -2
  25. package/lib/cjs/index.js.map +1 -1
  26. package/lib/cjs/inline-edit/InlineEdit.js +1 -1
  27. package/lib/cjs/inline-edit/InlineEdit.js.map +1 -1
  28. package/lib/cjs/inline-edit/utils.js +2 -4
  29. package/lib/cjs/inline-edit/utils.js.map +1 -1
  30. package/lib/cjs/search-field/SearchField.js +94 -0
  31. package/lib/cjs/search-field/SearchField.js.map +1 -0
  32. package/lib/cjs/search-field/index.js +30 -0
  33. package/lib/cjs/search-field/index.js.map +1 -0
  34. package/lib/cjs/side-navigation/SideNavigation.js +2 -2
  35. package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
  36. package/lib/cjs/spotlight/Spotlight.js +1 -1
  37. package/lib/cjs/spotlight/Spotlight.js.map +1 -1
  38. package/lib/cjs/tabs/Tabs.js +1 -1
  39. package/lib/cjs/tabs/Tabs.js.map +1 -1
  40. package/lib/cjs/text-input/TextInput.js +1 -1
  41. package/lib/cjs/text-input/TextInput.js.map +1 -1
  42. package/lib/cjs/tooltip/Tooltip.js +1 -1
  43. package/lib/cjs/tooltip/Tooltip.js.map +1 -1
  44. package/lib/cjs/tree-view/TreeViewTextItem.js +1 -1
  45. package/lib/cjs/tree-view/TreeViewTextItem.js.map +1 -1
  46. package/lib/esm/accordion/Accordion.mjs +2 -2
  47. package/lib/esm/accordion/Accordion.mjs.map +1 -1
  48. package/lib/esm/ai/preview/Preview.mjs +1 -1
  49. package/lib/esm/ai/preview/Preview.mjs.map +1 -1
  50. package/lib/esm/ai/reasoning/Reasoning.mjs +2 -2
  51. package/lib/esm/ai/reasoning/Reasoning.mjs.map +1 -1
  52. package/lib/esm/ai/thinking/Thinking.mjs +2 -2
  53. package/lib/esm/ai/thinking/Thinking.mjs.map +1 -1
  54. package/lib/esm/avatar/Avatar.mjs +1 -1
  55. package/lib/esm/avatar/Avatar.mjs.map +1 -1
  56. package/lib/esm/banner/Banner.mjs +1 -1
  57. package/lib/esm/banner/Banner.mjs.map +1 -1
  58. package/lib/esm/data-grid/Components.mjs +1 -1
  59. package/lib/esm/data-grid/Components.mjs.map +1 -1
  60. package/lib/esm/date-picker/DatePicker.mjs +2 -2
  61. package/lib/esm/date-picker/DatePicker.mjs.map +1 -1
  62. package/lib/esm/dialog/Dialog.mjs +1 -1
  63. package/lib/esm/dialog/Dialog.mjs.map +1 -1
  64. package/lib/esm/drawer/Drawer.mjs +1 -1
  65. package/lib/esm/drawer/Drawer.mjs.map +1 -1
  66. package/lib/esm/dropzone/Dropzone.mjs +2 -2
  67. package/lib/esm/dropzone/Dropzone.mjs.map +1 -1
  68. package/lib/esm/icons/index.mjs +1 -1
  69. package/lib/esm/index.mjs +4 -3
  70. package/lib/esm/index.mjs.map +1 -1
  71. package/lib/esm/inline-edit/InlineEdit.mjs +1 -1
  72. package/lib/esm/inline-edit/InlineEdit.mjs.map +1 -1
  73. package/lib/esm/inline-edit/utils.mjs +2 -4
  74. package/lib/esm/inline-edit/utils.mjs.map +1 -1
  75. package/lib/esm/search-field/SearchField.mjs +89 -0
  76. package/lib/esm/search-field/SearchField.mjs.map +1 -0
  77. package/lib/esm/search-field/index.mjs +24 -0
  78. package/lib/esm/search-field/index.mjs.map +1 -0
  79. package/lib/esm/side-navigation/SideNavigation.mjs +2 -2
  80. package/lib/esm/side-navigation/SideNavigation.mjs.map +1 -1
  81. package/lib/esm/spotlight/Spotlight.mjs +1 -1
  82. package/lib/esm/spotlight/Spotlight.mjs.map +1 -1
  83. package/lib/esm/tabs/Tabs.mjs +1 -1
  84. package/lib/esm/tabs/Tabs.mjs.map +1 -1
  85. package/lib/esm/text-input/TextInput.mjs +1 -1
  86. package/lib/esm/text-input/TextInput.mjs.map +1 -1
  87. package/lib/esm/tooltip/Tooltip.mjs +1 -1
  88. package/lib/esm/tooltip/Tooltip.mjs.map +1 -1
  89. package/lib/esm/tree-view/TreeViewTextItem.mjs +1 -1
  90. package/lib/esm/tree-view/TreeViewTextItem.mjs.map +1 -1
  91. package/lib/types/ai/thinking/Thinking.d.ts.map +1 -1
  92. package/lib/types/index.d.ts +1 -0
  93. package/lib/types/index.d.ts.map +1 -1
  94. package/lib/types/inline-edit/InlineEdit.d.ts +1 -1
  95. package/lib/types/inline-edit/utils.d.ts.map +1 -1
  96. package/lib/types/search-field/SearchField.d.ts +52 -0
  97. package/lib/types/search-field/SearchField.d.ts.map +1 -0
  98. package/lib/types/search-field/index.d.ts +22 -0
  99. package/lib/types/search-field/index.d.ts.map +1 -0
  100. package/package.json +9 -3
  101. package/skills/ndl-react/SKILL.md +3 -2
  102. package/skills/ndl-react/components/accordion.md +3 -3
  103. package/skills/ndl-react/components/clean-icon-button.md +5 -5
  104. package/skills/ndl-react/components/date-picker.md +2 -2
  105. package/skills/ndl-react/components/dropzone.md +2 -2
  106. package/skills/ndl-react/components/icon-button.md +5 -5
  107. package/skills/ndl-react/components/inline-edit.md +1 -1
  108. package/skills/ndl-react/components/radio.md +1 -1
  109. package/skills/ndl-react/components/search-field.md +254 -0
  110. package/skills/ndl-react/components/select-icon-button.md +6 -6
  111. package/skills/ndl-react/components/side-navigation.md +4 -4
  112. package/skills/ndl-react/components/skeleton.md +3 -3
  113. package/skills/ndl-react/components/status-indicator.md +5 -5
  114. package/skills/ndl-react/components/tabs.md +4 -4
  115. package/skills/ndl-react/components/timezone-picker.md +1 -1
  116. package/skills/ndl-react/components/tooltip.md +1 -1
  117. package/skills/ndl-react/components/typography.md +2 -2
  118. package/skills/ndl-react/references/styling.md +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"TreeViewTextItem.mjs","names":[],"sources":["../../../src/tree-view/TreeViewTextItem.tsx"],"sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\nimport type React from 'react';\n\nimport { Checkbox } from '../checkbox';\nimport { CleanIconButton } from '../clean-icon-button';\nimport { ConditionalWrap } from '../conditional-wrap';\nimport { ChevronDownIconOutline } from '../icons/generated/heroIcons/ChevronDownIconOutline';\nimport { ChevronRightIconOutline } from '../icons/generated/heroIcons/ChevronRightIconOutline';\nimport { Skeleton } from '../skeleton';\nimport { Typography } from '../typography';\nimport {\n type FlattenedTreeItem,\n type TextItemData,\n type TreeItemComponentProps,\n} from './tree-view-types';\nimport { TreeItemWrapper } from './TreeItemWrapper';\n\n/**\n * checks if any parent is checked\n * @param item - Tree item\n * @param items - Flattened tree items\n * @returns\n */\nconst parentIsCheckedRecursively = (\n item: FlattenedTreeItem<TextItemData>,\n items: FlattenedTreeItem<TextItemData>[],\n): boolean => {\n const parent = items.find((parentItem) => parentItem.id === item.parentId);\n if (parent) {\n if (parent.isSelected) {\n return true;\n }\n return parentIsCheckedRecursively(parent, items);\n }\n return false;\n};\n\n/**\n * checks if any children are checked\n * @param item - Tree item\n * @param items - Flattened tree items\n * @returns\n */\nconst childrenCheckedRecursively = (\n item: FlattenedTreeItem<TextItemData>,\n items: FlattenedTreeItem<TextItemData>[],\n): boolean => {\n const children = items.filter((childItem) => childItem.parentId === item.id);\n if (children.length === 0) {\n return false;\n }\n return children.some(\n (childItem) =>\n childItem.isSelected || childrenCheckedRecursively(childItem, items),\n );\n};\n\nexport const TreeViewTextItem = <T extends TextItemData>({\n depth,\n shouldDisableInteraction,\n shouldDisableSorting,\n isGhost,\n indentationWidth,\n isIndicator,\n isCollapsed,\n onCollapse,\n item,\n parent,\n isOver,\n isOverParent,\n setNodeRef,\n setActivatorNodeRef,\n dragHandleProps,\n style,\n trails,\n onItemsChanged,\n items,\n tabIndex,\n ref,\n ...restProps\n}: TreeItemComponentProps<T> & { ref?: React.Ref<HTMLElement> }) => {\n const isAnyParentChecked = parentIsCheckedRecursively(item, items);\n const isAnyChildChecked = childrenCheckedRecursively(item, items);\n\n const isIndeterminate =\n isAnyChildChecked === true &&\n isAnyParentChecked === false &&\n item.isSelected === false\n ? true\n : false;\n\n return (\n <TreeItemWrapper\n depth={depth}\n shouldDisableInteraction={shouldDisableInteraction}\n shouldDisableSorting={shouldDisableSorting}\n isGhost={isGhost}\n indentationWidth={indentationWidth}\n isIndicator={isIndicator}\n isCollapsed={isCollapsed}\n onCollapse={onCollapse}\n item={item}\n parent={parent}\n isOver={isOver}\n isOverParent={isOverParent}\n setNodeRef={setNodeRef}\n setActivatorNodeRef={setActivatorNodeRef}\n dragHandleProps={dragHandleProps}\n style={style}\n trails={trails}\n // oxlint-disable-next-line @typescript-eslint/no-empty-function\n onItemsChanged={() => {}}\n ref={ref}\n items={items}\n tabIndex={tabIndex}\n {...restProps}\n >\n {item.canHaveSubItems && onCollapse && (\n <button\n type=\"button\"\n className=\"ndl-tree-view-collapse-button\"\n onClick={() => onCollapse()}\n aria-label={item.isCollapsed ? 'Expand' : 'Collapse'}\n aria-expanded={item.isCollapsed ? 'false' : 'true'}\n /**\n * Tab index is set to -1 to prevent the item from being focused when the tree is navigated with tab\n * since we use the arrow keys instead\n */\n tabIndex={tabIndex}\n >\n {item.isCollapsed && <ChevronRightIconOutline className=\"ndl-icon\" />}\n {!item.isCollapsed && <ChevronDownIconOutline className=\"ndl-icon\" />}\n </button>\n )}\n {item.isSelected !== undefined && (\n <Skeleton\n onBackground=\"weak\"\n shape=\"rectangular\"\n {...item.skeletonProps}\n isLoading={item.isSkeletonLoading}\n >\n <Checkbox\n isIndeterminate={isIndeterminate}\n isChecked={item.isSelected}\n ariaLabel={item.data.text}\n htmlAttributes={{\n tabIndex,\n }}\n onChange={(event) => {\n const newItems = items.map((treeItem) => {\n if (treeItem.id === item.id) {\n return {\n ...treeItem,\n isSelected: event.target.checked,\n };\n }\n return treeItem;\n });\n\n // Uncheck parents if a child is unchecked\n if (!event.target.checked) {\n let parentId = item.parentId;\n while (parentId !== null) {\n const parent = newItems.find(\n (newItem) => newItem.id === parentId,\n );\n if (parent) {\n newItems.forEach((newItem) => {\n if (newItem.id === parent.id) {\n newItem.isSelected = false;\n }\n });\n parentId = parent.parentId;\n } else {\n parentId = null;\n }\n }\n }\n // Check children if a parent is checked\n if (item.canHaveSubItems) {\n const childIdsToUncheck = items\n .filter((childItem) => childItem.parentId === item.id)\n .map((childItem) => childItem.id);\n while (childIdsToUncheck.length > 0) {\n const childId = childIdsToUncheck.pop();\n const child = items.find(\n (childItem) => childItem.id === childId,\n );\n if (child) {\n newItems.forEach((newItem) => {\n if (newItem.id === child.id) {\n newItem.isSelected = event.target.checked;\n }\n });\n newItems\n .filter((childItem) => childItem.parentId === child.id)\n .forEach((childItem) => {\n childIdsToUncheck.push(childItem.id);\n });\n }\n }\n }\n onItemsChanged(newItems, { item, reason: 'selected' });\n }}\n aria-label={item.data.text}\n />\n </Skeleton>\n )}\n\n <Skeleton\n onBackground=\"weak\"\n shape=\"rectangular\"\n height=\"20px\"\n {...item.skeletonProps}\n isLoading={item.isSkeletonLoading}\n >\n <ConditionalWrap\n shouldWrap={item.data.onTextClick !== undefined}\n wrap={(children) => (\n <button\n type=\"button\"\n onClick={item.data.onTextClick}\n className=\"ndl-tree-view-text-clickable\"\n tabIndex={tabIndex}\n >\n {children}\n </button>\n )}\n >\n <Typography\n variant={item.canHaveSubItems ? 'subheading-small' : 'body-medium'}\n htmlAttributes={{\n style: {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n },\n }}\n >\n {item.data.text}\n </Typography>\n </ConditionalWrap>\n </Skeleton>\n <div className=\"ndl-tree-view-actions\">\n {item.data.actions &&\n item.data.actions.map((action, index) => {\n return (\n <CleanIconButton\n key={index}\n className=\"ndl-tree-view-action\"\n size=\"small\"\n {...action.buttonProps}\n htmlAttributes={{\n tabIndex,\n ...action.buttonProps.htmlAttributes,\n }}\n >\n {action.icon}\n </CleanIconButton>\n );\n })}\n </div>\n </TreeItemWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;CA6EE;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;;;;;;;;;;;;;;;;;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UAAU;MAAE;MAAM,QAAQ;KAAW,CAAC;IACvD;IACA,cAAY,KAAK,KAAK;GACvB,CAAA;EACO,CAAA,CAAA;EAGZ,oBAAC,UAAA,eAAA,eAAA;GACC,cAAa;GACb,OAAM;GACN,QAAO;EACH,GAAA,KAAK,aAAA,GAAA,CAAA,GAAA;GACT,WAAW,KAAK;GAEhB,UAAA,oBAAC,iBAAD;IACE,YAAY,KAAK,KAAK,gBAAgB,KAAA;IACtC,OAAO,aACL,oBAAC,UAAD;KACE,MAAK;KACL,SAAS,KAAK,KAAK;KACnB,WAAU;KACA;KAET;IACK,CAAA;IAGV,UAAA,oBAAC,YAAD;KACE,SAAS,KAAK,kBAAkB,qBAAqB;KACrD,gBAAgB,EACd,OAAO;MACL,UAAU;MACV,cAAc;MACd,YAAY;KACd,EACF;KAEC,UAAA,KAAK,KAAK;IACD,CAAA;GACG,CAAA;EACT,CAAA,CAAA;EACV,oBAAC,OAAD;GAAK,WAAU;GACZ,UAAA,KAAK,KAAK,WACT,KAAK,KAAK,QAAQ,KAAK,QAAQ,UAAU;IACvC,OACE,oBAAC,iBAAA,eAAA,eAAA;KAEC,WAAU;KACV,MAAK;IACD,GAAA,OAAO,WAAA,GAAA,CAAA,GAAA;KACX,gBAAA,eAAA,EACE,SAAA,GACG,OAAO,YAAY,cACxB;KAEC,UAAA,OAAO;IACO,CAAA,GAVV,KAUU;GAErB,CAAC;EACA,CAAA;CACU,EAAA,CAAA,CAAA;AAErB"}
1
+ {"version":3,"file":"TreeViewTextItem.mjs","names":[],"sources":["../../../src/tree-view/TreeViewTextItem.tsx"],"sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\nimport type React from 'react';\n\nimport { Checkbox } from '../checkbox';\nimport { CleanIconButton } from '../clean-icon-button';\nimport { ConditionalWrap } from '../conditional-wrap';\nimport { ChevronDownIconOutline } from '../icons/generated/heroIcons/ChevronDownIconOutline';\nimport { ChevronRightIconOutline } from '../icons/generated/heroIcons/ChevronRightIconOutline';\nimport { Skeleton } from '../skeleton';\nimport { Typography } from '../typography';\nimport {\n type FlattenedTreeItem,\n type TextItemData,\n type TreeItemComponentProps,\n} from './tree-view-types';\nimport { TreeItemWrapper } from './TreeItemWrapper';\n\n/**\n * checks if any parent is checked\n * @param item - Tree item\n * @param items - Flattened tree items\n * @returns\n */\nconst parentIsCheckedRecursively = (\n item: FlattenedTreeItem<TextItemData>,\n items: FlattenedTreeItem<TextItemData>[],\n): boolean => {\n const parent = items.find((parentItem) => parentItem.id === item.parentId);\n if (parent) {\n if (parent.isSelected) {\n return true;\n }\n return parentIsCheckedRecursively(parent, items);\n }\n return false;\n};\n\n/**\n * checks if any children are checked\n * @param item - Tree item\n * @param items - Flattened tree items\n * @returns\n */\nconst childrenCheckedRecursively = (\n item: FlattenedTreeItem<TextItemData>,\n items: FlattenedTreeItem<TextItemData>[],\n): boolean => {\n const children = items.filter((childItem) => childItem.parentId === item.id);\n if (children.length === 0) {\n return false;\n }\n return children.some(\n (childItem) =>\n childItem.isSelected || childrenCheckedRecursively(childItem, items),\n );\n};\n\nexport const TreeViewTextItem = <T extends TextItemData>({\n depth,\n shouldDisableInteraction,\n shouldDisableSorting,\n isGhost,\n indentationWidth,\n isIndicator,\n isCollapsed,\n onCollapse,\n item,\n parent,\n isOver,\n isOverParent,\n setNodeRef,\n setActivatorNodeRef,\n dragHandleProps,\n style,\n trails,\n onItemsChanged,\n items,\n tabIndex,\n ref,\n ...restProps\n}: TreeItemComponentProps<T> & { ref?: React.Ref<HTMLElement> }) => {\n const isAnyParentChecked = parentIsCheckedRecursively(item, items);\n const isAnyChildChecked = childrenCheckedRecursively(item, items);\n\n const isIndeterminate =\n isAnyChildChecked === true &&\n isAnyParentChecked === false &&\n item.isSelected === false\n ? true\n : false;\n\n return (\n <TreeItemWrapper\n depth={depth}\n shouldDisableInteraction={shouldDisableInteraction}\n shouldDisableSorting={shouldDisableSorting}\n isGhost={isGhost}\n indentationWidth={indentationWidth}\n isIndicator={isIndicator}\n isCollapsed={isCollapsed}\n onCollapse={onCollapse}\n item={item}\n parent={parent}\n isOver={isOver}\n isOverParent={isOverParent}\n setNodeRef={setNodeRef}\n setActivatorNodeRef={setActivatorNodeRef}\n dragHandleProps={dragHandleProps}\n style={style}\n trails={trails}\n // oxlint-disable-next-line @typescript-eslint/no-empty-function\n onItemsChanged={() => {}}\n ref={ref}\n items={items}\n tabIndex={tabIndex}\n {...restProps}\n >\n {item.canHaveSubItems && onCollapse && (\n <button\n type=\"button\"\n className=\"ndl-tree-view-collapse-button\"\n onClick={() => onCollapse()}\n aria-label={item.isCollapsed ? 'Expand' : 'Collapse'}\n aria-expanded={item.isCollapsed ? 'false' : 'true'}\n /**\n * Tab index is set to -1 to prevent the item from being focused when the tree is navigated with tab\n * since we use the arrow keys instead\n */\n tabIndex={tabIndex}\n >\n {item.isCollapsed && <ChevronRightIconOutline className=\"ndl-icon\" />}\n {!item.isCollapsed && <ChevronDownIconOutline className=\"ndl-icon\" />}\n </button>\n )}\n {item.isSelected !== undefined && (\n <Skeleton\n onBackground=\"weak\"\n shape=\"rectangular\"\n {...item.skeletonProps}\n isLoading={item.isSkeletonLoading}\n >\n <Checkbox\n isIndeterminate={isIndeterminate}\n isChecked={item.isSelected}\n ariaLabel={item.data.text}\n htmlAttributes={{\n tabIndex,\n }}\n onChange={(event) => {\n const newItems = items.map((treeItem) => {\n if (treeItem.id === item.id) {\n return {\n ...treeItem,\n isSelected: event.target.checked,\n };\n }\n return treeItem;\n });\n\n // Uncheck parents if a child is unchecked\n if (!event.target.checked) {\n let parentId = item.parentId;\n while (parentId !== null) {\n const parent = newItems.find(\n (newItem) => newItem.id === parentId,\n );\n if (parent) {\n newItems.forEach((newItem) => {\n if (newItem.id === parent.id) {\n newItem.isSelected = false;\n }\n });\n parentId = parent.parentId;\n } else {\n parentId = null;\n }\n }\n }\n // Check children if a parent is checked\n if (item.canHaveSubItems) {\n const childIdsToUncheck = items\n .filter((childItem) => childItem.parentId === item.id)\n .map((childItem) => childItem.id);\n while (childIdsToUncheck.length > 0) {\n const childId = childIdsToUncheck.pop();\n const child = items.find(\n (childItem) => childItem.id === childId,\n );\n if (child) {\n newItems.forEach((newItem) => {\n if (newItem.id === child.id) {\n newItem.isSelected = event.target.checked;\n }\n });\n newItems\n .filter((childItem) => childItem.parentId === child.id)\n .forEach((childItem) => {\n childIdsToUncheck.push(childItem.id);\n });\n }\n }\n }\n onItemsChanged(newItems, { item, reason: 'selected' });\n }}\n aria-label={item.data.text}\n />\n </Skeleton>\n )}\n\n <Skeleton\n onBackground=\"weak\"\n shape=\"rectangular\"\n height=\"20px\"\n {...item.skeletonProps}\n isLoading={item.isSkeletonLoading}\n >\n <ConditionalWrap\n shouldWrap={item.data.onTextClick !== undefined}\n wrap={(children) => (\n <button\n type=\"button\"\n onClick={item.data.onTextClick}\n className=\"ndl-tree-view-text-clickable\"\n tabIndex={tabIndex}\n >\n {children}\n </button>\n )}\n >\n <Typography\n variant={item.canHaveSubItems ? 'subheading-medium' : 'body-medium'}\n htmlAttributes={{\n style: {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n },\n }}\n >\n {item.data.text}\n </Typography>\n </ConditionalWrap>\n </Skeleton>\n <div className=\"ndl-tree-view-actions\">\n {item.data.actions &&\n item.data.actions.map((action, index) => {\n return (\n <CleanIconButton\n key={index}\n className=\"ndl-tree-view-action\"\n size=\"small\"\n {...action.buttonProps}\n htmlAttributes={{\n tabIndex,\n ...action.buttonProps.htmlAttributes,\n }}\n >\n {action.icon}\n </CleanIconButton>\n );\n })}\n </div>\n </TreeItemWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;CA6EE;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAvDF,MAAM,8BACJ,MACA,UACY;CACZ,MAAM,SAAS,MAAM,MAAM,eAAe,WAAW,OAAO,KAAK,QAAQ;CACzE,IAAI,QAAQ;EACV,IAAI,OAAO,YACT,OAAO;EAET,OAAO,2BAA2B,QAAQ,KAAK;CACjD;CACA,OAAO;AACT;;;;;;;AAQA,MAAM,8BACJ,MACA,UACY;CACZ,MAAM,WAAW,MAAM,QAAQ,cAAc,UAAU,aAAa,KAAK,EAAE;CAC3E,IAAI,SAAS,WAAW,GACtB,OAAO;CAET,OAAO,SAAS,MACb,cACC,UAAU,cAAc,2BAA2B,WAAW,KAAK,CACvE;AACF;AAEA,MAAa,oBAA4C,SAuBW;CAvBX,IAAA,EACvD,OACA,0BACA,sBACA,SACA,kBACA,aACA,aACA,YACA,MACA,QACA,QACA,cACA,YACA,qBACA,iBACA,OACA,QACA,gBACA,OACA,UACA,QAAA,MACG,YAAA,yBAAA,MAAA,SAAA;CAEH,MAAM,qBAAqB,2BAA2B,MAAM,KAAK;CAGjE,MAAM,kBAFoB,2BAA2B,MAAM,KAGzC,MAAM,QACtB,uBAAuB,SACvB,KAAK,eAAe,QAChB,OACA;CAEN,OACE,qBAAC,iBAAA,eAAA,eAAA;EACQ;EACmB;EACJ;EACb;EACS;EACL;EACA;EACD;EACN;EACE;EACA;EACM;EACF;EACS;EACJ;EACV;EACC;EAER,sBAAsB,CAAC;EAClB;EACE;EACG;CACN,GAAA,SAAA,GAAA,CAAA,GAAA,EAAA,UAvBN;EAyBG,KAAK,mBAAmB,cACvB,qBAAC,UAAD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/ai/thinking/Thinking.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAKvD,KAAK,aAAa,GAAG;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mDAAmD;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;GAMG;AACH,QAAA,MAAM,QAAQ,GAAI,iFAQf,WAAW,CAAC,KAAK,EAAE,aAAa,CAAC,4CAoCnC,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"Thinking.d.ts","sourceRoot":"","sources":["../../../../src/ai/thinking/Thinking.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAKvD,KAAK,aAAa,GAAG;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mDAAmD;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;GAMG;AACH,QAAA,MAAM,QAAQ,GAAI,iFAQf,WAAW,CAAC,KAAK,EAAE,aAAa,CAAC,4CAuCnC,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -39,6 +39,7 @@ export { ProgressBar } from './progress-bar';
39
39
  export { Dropzone } from './dropzone';
40
40
  export * from './data-grid';
41
41
  export { TextInput } from './text-input';
42
+ export { SearchField } from './search-field';
42
43
  export { TextArea } from './text-area';
43
44
  export { TextLink } from './text-link';
44
45
  export { Select } from './select';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,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E,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,cAAc,YAAY,CAAC"}
@@ -33,7 +33,7 @@ type InlineEditProps = {
33
33
  ariaLabel?: string;
34
34
  /**
35
35
  * The typographyVariant of the component applied to Typography as its variant.
36
- * @default subheading-medium
36
+ * @default subheading-large
37
37
  */
38
38
  typographyVariant?: TypographyVariants;
39
39
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/inline-edit/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD,KAAK,kBAAkB,GAAG,CACxB,KAAK,EAAE,MAAM,KACV,OAAO,CAAC,IAAI,GAAG,MAAM,CAAC,GAAG,IAAI,GAAG,MAAM,CAAC;AAE5C,wBAAsB,aAAa,CACjC,KAAK,EAAE,MAAM,EACb,QAAQ,CAAC,EAAE,kBAAkB,GAC5B,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAmBxB;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,kBAAkB,GAAG,MAAM,CAazE;AAED,eAAO,MAAM,YAAY,GACvB,SAAS,kBAAkB,KAC1B,KAAK,CAAC,aAGP,CAAC;AAEH,eAAO,MAAM,YAAY,GAAI,SAAS,kBAAkB,KAAG,MAE1D,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/inline-edit/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD,KAAK,kBAAkB,GAAG,CACxB,KAAK,EAAE,MAAM,KACV,OAAO,CAAC,IAAI,GAAG,MAAM,CAAC,GAAG,IAAI,GAAG,MAAM,CAAC;AAE5C,wBAAsB,aAAa,CACjC,KAAK,EAAE,MAAM,EACb,QAAQ,CAAC,EAAE,kBAAkB,GAC5B,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAmBxB;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,kBAAkB,GAAG,MAAM,CAUzE;AAED,eAAO,MAAM,YAAY,GACvB,SAAS,kBAAkB,KAC1B,KAAK,CAAC,aAGP,CAAC;AAEH,eAAO,MAAM,YAAY,GAAI,SAAS,kBAAkB,KAAG,MAE1D,CAAC"}
@@ -0,0 +1,52 @@
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 { type ComponentProps } from 'react';
22
+ import { TextInput } from '../text-input';
23
+ type SearchFieldTextInputProps = Pick<ComponentProps<typeof TextInput>, 'className' | 'errorText' | 'helpText' | 'htmlAttributes' | 'isDisabled' | 'isFluid' | 'isLoading' | 'isReadOnly' | 'isSkeletonLoading' | 'onChange' | 'placeholder' | 'ref' | 'size' | 'skeletonProps' | 'style' | 'value'>;
24
+ export type SearchFieldProps = SearchFieldTextInputProps & {
25
+ /**
26
+ * Accessible name for the search field. The label is announced by assistive
27
+ * technologies but is not rendered visually.
28
+ */
29
+ label: string;
30
+ /**
31
+ * Called with the search query after typing pauses for `debounceDelay`, and
32
+ * immediately when the user presses Enter or clears the field.
33
+ */
34
+ onSearch?: (query: string) => void;
35
+ /**
36
+ * Delay in milliseconds before calling `onSearch` after the query changes.
37
+ * @default 500
38
+ */
39
+ debounceDelay?: number;
40
+ };
41
+ /**
42
+ * A text input for entering search queries.
43
+ *
44
+ * @remarks
45
+ * SearchField renders a fixed search icon and uses the native `search` input
46
+ * type. `onChange` is called immediately, while `onSearch` is debounced until
47
+ * typing pauses. Pressing Enter or clearing the field calls `onSearch`
48
+ * immediately.
49
+ */
50
+ export declare const SearchField: ({ debounceDelay, htmlAttributes, label, onChange, onSearch, ...textInputProps }: SearchFieldProps) => import("react/jsx-runtime").JSX.Element;
51
+ export {};
52
+ //# sourceMappingURL=SearchField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchField.d.ts","sourceRoot":"","sources":["../../../src/search-field/SearchField.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAoB,KAAK,cAAc,EAAe,MAAM,OAAO,CAAC;AAI3E,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,KAAK,yBAAyB,GAAG,IAAI,CACnC,cAAc,CAAC,OAAO,SAAS,CAAC,EAC9B,WAAW,GACX,WAAW,GACX,UAAU,GACV,gBAAgB,GAChB,YAAY,GACZ,SAAS,GACT,WAAW,GACX,YAAY,GACZ,mBAAmB,GACnB,UAAU,GACV,aAAa,GACb,KAAK,GACL,MAAM,GACN,eAAe,GACf,OAAO,GACP,OAAO,CACV,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,yBAAyB,GAAG;IACzD;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAEnC;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,GAAI,iFAOzB,gBAAgB,4CAsDlB,CAAC"}
@@ -0,0 +1,22 @@
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 * from './SearchField';
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/search-field/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,cAAc,eAAe,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-ndl/react",
3
- "version": "5.6.4",
3
+ "version": "6.0.0-alpha.0.d77a467",
4
4
  "sideEffects": false,
5
5
  "description": "React implementation of Neo4j Design System",
6
6
  "keywords": [
@@ -252,6 +252,11 @@
252
252
  "require": "./lib/cjs/read-only-tag/index.js",
253
253
  "import": "./lib/esm/read-only-tag/index.mjs"
254
254
  },
255
+ "./search-field": {
256
+ "types": "./lib/types/search-field/index.d.ts",
257
+ "require": "./lib/cjs/search-field/index.js",
258
+ "import": "./lib/esm/search-field/index.mjs"
259
+ },
255
260
  "./segmented-control": {
256
261
  "types": "./lib/types/segmented-control/index.d.ts",
257
262
  "require": "./lib/cjs/segmented-control/index.js",
@@ -429,7 +434,7 @@
429
434
  "@tanstack/react-table": "8.21.3",
430
435
  "react": ">=19.0.0",
431
436
  "react-dom": ">=19.0.0",
432
- "@neo4j-ndl/base": "^5.4.2"
437
+ "@neo4j-ndl/base": "^6.0.0-alpha.0.d77a467"
433
438
  },
434
439
  "dependencies": {
435
440
  "@dnd-kit/core": "6.3.1",
@@ -456,7 +461,8 @@
456
461
  "temporal-polyfill": "1.0.1",
457
462
  "tinycolor2": "1.6.0",
458
463
  "usehooks-ts": "3.1.1",
459
- "zod": "4.6.7"
464
+ "zod": "4.6.7",
465
+ "@neo4j-ndl/base": "6.0.0-alpha.0.d77a467"
460
466
  },
461
467
  "scripts": {
462
468
  "generate-component": "node ./scripts/component-generator.js",
@@ -2,7 +2,7 @@
2
2
  name: ndl-react
3
3
  metadata:
4
4
  package: '@neo4j-ndl/react'
5
- version: '5.6.4'
5
+ version: '6.0.0-alpha.0.d77a467'
6
6
  description: >-
7
7
  Build and edit UI with the Neo4j Needle React design system
8
8
  (@neo4j-ndl/react). Use when adding, composing, or modifying Needle components
@@ -15,7 +15,7 @@ description: >-
15
15
 
16
16
  # Neo4j Needle (@neo4j-ndl/react)
17
17
 
18
- > 📌 Shipped with `@neo4j-ndl/react` v5.6.4. Once installed into your repo (e.g. via
18
+ > 📌 Shipped with `@neo4j-ndl/react` v6.0.0-alpha.0.d77a467. Once installed into your repo (e.g. via
19
19
  > `npx skills add`) this folder is detached from the package — the installed
20
20
  > package (TypeScript types in `node_modules/@neo4j-ndl/react`) is the source of
21
21
  > truth.
@@ -184,6 +184,7 @@ Import from `@neo4j-ndl/react`.
184
184
  | `Radio` | [components/radio.md](components/radio.md) | ✅ | 7 |
185
185
  | `RadioGroup` | [components/radio-group.md](components/radio-group.md) | ✅ | 8 |
186
186
  | `ReadOnlyTag` | [components/read-only-tag.md](components/read-only-tag.md) | | 4 |
187
+ | `SearchField` | [components/search-field.md](components/search-field.md) | ✅ | 3 |
187
188
  | `SegmentedControl` | [components/segmented-control.md](components/segmented-control.md) | ✅ | 5 |
188
189
  | `Select` | [components/select.md](components/select.md) | | 14 |
189
190
  | `SelectIconButton` | [components/select-icon-button.md](components/select-icon-button.md) | | 4 |
@@ -33,7 +33,7 @@ Where `T` is of the type `string | number | undefined`.
33
33
  | `onExpandedChange` | `(expanded: boolean) => void` | | | Callback function on accordion item expand/collapse change. |
34
34
  | `ref` | `any` | | | A ref to apply to the root element. |
35
35
  | `title` | `string` | ✅ | | The title of the accordion item. |
36
- | `titleTypographyVariant` | `'body-large' \| 'body-medium' \| 'body-small' \| 'code' \| 'display' \| 'label' \| 'subheading-large' \| 'subheading-medium' \| 'subheading-small' \| 'title-1' \| 'title-2' \| 'title-3' \| 'title-4'` | | `subheading-medium` | The typography variant for the title. |
36
+ | `titleTypographyVariant` | `'body-large' \| 'body-medium' \| 'body-small' \| 'code' \| 'display' \| 'subheading-large' \| 'subheading-medium' \| 'subheading-small' \| 'title-1' \| 'title-2' \| 'title-3' \| 'title-4'` | | `subheading-large` | The typography variant for the title. |
37
37
  | `trailingContent` | `ReactNode` | | | The content to display on the trailing side of accordion item. |
38
38
 
39
39
  Where `T` is of the type `string | number | undefined`.
@@ -54,7 +54,7 @@ Where `T` is of the type `string | number | undefined`.
54
54
 
55
55
  Where `T` is of the type `string | number | undefined`.
56
56
 
57
- `TypographyVariants` is of the type `'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subheading-large' | 'subheading-medium' | 'subheading-small' | 'body-large' | 'body-medium' | 'body-small' | 'code' | 'label'`.
57
+ `TypographyVariants` is of the type `'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subheading-large' | 'subheading-medium' | 'subheading-small' | 'body-large' | 'body-medium' | 'body-small' | 'code'`.
58
58
 
59
59
  ## Accessibility
60
60
 
@@ -213,7 +213,7 @@ const Component = () => {
213
213
  onExpandedChange={onExpandedChange}
214
214
  trailingContent={<Checkbox label="Right content" />}
215
215
  title={`Accordion ${itemIds[1]}`}
216
- titleTypographyVariant="title-4"
216
+ titleTypographyVariant="title-3"
217
217
  >
218
218
  {itemIds[1]}
219
219
  </Accordion.CleanItem>
@@ -150,19 +150,19 @@ const Component = () => {
150
150
  <CleanIconButton description="Search" size="small">
151
151
  <MagnifyingGlassIconOutline />
152
152
  </CleanIconButton>
153
- <Typography variant="label"> Small</Typography>
153
+ <Typography variant="title-4"> Small</Typography>
154
154
  </div>
155
155
  <div className="flex flex-row gap-token-16 items-center">
156
156
  <CleanIconButton description="Search" size="medium">
157
157
  <MagnifyingGlassIconOutline />
158
158
  </CleanIconButton>
159
- <Typography variant="label"> Medium</Typography>
159
+ <Typography variant="title-4"> Medium</Typography>
160
160
  </div>
161
161
  <div className="flex flex-row gap-token-16 items-center">
162
162
  <CleanIconButton description="Search" size="large">
163
163
  <MagnifyingGlassIconOutline />
164
164
  </CleanIconButton>
165
- <Typography variant="label"> Large</Typography>
165
+ <Typography variant="title-4"> Large</Typography>
166
166
  </div>
167
167
  </div>
168
168
  );
@@ -186,13 +186,13 @@ const Component = () => {
186
186
  <CleanIconButton description="Search" variant="neutral">
187
187
  <MagnifyingGlassIconOutline />
188
188
  </CleanIconButton>
189
- <Typography variant="label">Default</Typography>
189
+ <Typography variant="title-4">Default</Typography>
190
190
  </div>
191
191
  <div className="flex flex-row gap-token-16 items-center">
192
192
  <CleanIconButton description="Search" variant="danger">
193
193
  <MagnifyingGlassIconOutline />
194
194
  </CleanIconButton>
195
- <Typography variant="label">Danger</Typography>
195
+ <Typography variant="title-4">Danger</Typography>
196
196
  </div>
197
197
  </div>
198
198
  );
@@ -648,7 +648,7 @@ export const DatePickerWithTimeZoneBothMode = () => {
648
648
 
649
649
  return (
650
650
  <div style={{ maxWidth: '400px', padding: '20px' }}>
651
- <Typography variant="title-4" style={{ marginBottom: '16px' }}>
651
+ <Typography variant="title-3" style={{ marginBottom: '16px' }}>
652
652
  DatePicker with TimeZone (Both Mode)
653
653
  </Typography>
654
654
  <Typography variant="body-medium" style={{ marginBottom: '24px' }}>
@@ -691,7 +691,7 @@ export const DatePickerWithTimeZoneBothMode = () => {
691
691
  padding: '16px',
692
692
  }}
693
693
  >
694
- <Typography variant="label">Selected Values:</Typography>
694
+ <Typography variant="title-4">Selected Values:</Typography>
695
695
  <Typography variant="body-small">
696
696
  <strong>Date: </strong>
697
697
  {selectedDate?.toISOString() ?? 'None'}
@@ -276,7 +276,7 @@ const Component = () => {
276
276
  return (
277
277
  <div className="flex flex-col justify-center items-center gap-y-token-32">
278
278
  <Typography
279
- variant="title-4"
279
+ variant="title-3"
280
280
  className="text-success-text font-semibold"
281
281
  >
282
282
  Upload Complete!
@@ -296,7 +296,7 @@ const Component = () => {
296
296
  {errors.map((message, index) => (
297
297
  <Typography
298
298
  key={index}
299
- variant="label"
299
+ variant="title-4"
300
300
  className="text-danger-text font-semibold"
301
301
  htmlAttributes={{ role: 'alert' }}
302
302
  >
@@ -143,19 +143,19 @@ const Component = () => {
143
143
  <IconButton description="Search" size="small">
144
144
  <MagnifyingGlassIconOutline />
145
145
  </IconButton>
146
- <Typography variant="label"> Small</Typography>
146
+ <Typography variant="title-4"> Small</Typography>
147
147
  </div>
148
148
  <div className="flex flex-row gap-token-16 items-center">
149
149
  <IconButton description="Search" size="medium">
150
150
  <MagnifyingGlassIconOutline />
151
151
  </IconButton>
152
- <Typography variant="label"> Medium</Typography>
152
+ <Typography variant="title-4"> Medium</Typography>
153
153
  </div>
154
154
  <div className="flex flex-row gap-token-16 items-center">
155
155
  <IconButton description="Search" size="large">
156
156
  <MagnifyingGlassIconOutline />
157
157
  </IconButton>
158
- <Typography variant="label"> Large</Typography>
158
+ <Typography variant="title-4"> Large</Typography>
159
159
  </div>
160
160
  </div>
161
161
  );
@@ -179,13 +179,13 @@ const Component = () => {
179
179
  <IconButton description="Search" variant="neutral">
180
180
  <MagnifyingGlassIconOutline />
181
181
  </IconButton>
182
- <Typography variant="label">Default</Typography>
182
+ <Typography variant="title-4">Default</Typography>
183
183
  </div>
184
184
  <div className="flex flex-row gap-token-16 items-center">
185
185
  <IconButton description="Search" variant="danger">
186
186
  <MagnifyingGlassIconOutline />
187
187
  </IconButton>
188
- <Typography variant="label">Danger</Typography>
188
+ <Typography variant="title-4">Danger</Typography>
189
189
  </div>
190
190
  </div>
191
191
  );
@@ -25,7 +25,7 @@ Import: `import { InlineEdit } from '@neo4j-ndl/react'`
25
25
  | `onConfirm` | `((value: string, event?: MouseEvent<HTMLElement, MouseEvent> \| KeyboardEvent<HTMLElement>) => void)` | | | Callback when confirm icon button is pressed |
26
26
  | `placeholder` | `string` | ✅ | | Placeholder text displayed when the input is empty. |
27
27
  | `ref` | `any` | | | A ref to apply to the root element. |
28
- | `typographyVariant` | `'body-large' \| 'body-medium' \| 'body-small' \| 'code' \| 'display' \| 'label' \| 'subheading-large' \| 'subheading-medium' \| 'subheading-small' \| 'title-1' \| 'title-2' \| 'title-3' \| 'title-4'` | | `subheading-medium` | The typographyVariant of the component applied to Typography as its variant. |
28
+ | `typographyVariant` | `'body-large' \| 'body-medium' \| 'body-small' \| 'code' \| 'display' \| 'subheading-large' \| 'subheading-medium' \| 'subheading-small' \| 'title-1' \| 'title-2' \| 'title-3' \| 'title-4'` | | `subheading-large` | The typographyVariant of the component applied to Typography as its variant. |
29
29
  | `value` | `string` | | | The input value. Makes the component controlled. |
30
30
 
31
31
  ## Accessibility
@@ -77,7 +77,7 @@ import { Radio, Typography } from '@neo4j-ndl/react';
77
77
  const Component = () => {
78
78
  return (
79
79
  <Radio
80
- label={<Typography variant="label">Custom label</Typography>}
80
+ label={<Typography variant="title-4">Custom label</Typography>}
81
81
  ariaLabel="example aria label"
82
82
  />
83
83
  );