@neo4j-ndl/react 4.25.10 → 5.0.0-alpha.0.b2b2481

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 (1181) hide show
  1. package/lib/cjs/_generated/style-rules/index.js +5 -11
  2. package/lib/cjs/_generated/style-rules/index.js.map +1 -1
  3. package/lib/cjs/_generated/style-rules/literal-guards.js +50 -0
  4. package/lib/cjs/_generated/style-rules/literal-guards.js.map +1 -0
  5. package/lib/cjs/_generated/style-rules/literal-schemas.js +6 -21
  6. package/lib/cjs/_generated/style-rules/literal-schemas.js.map +1 -1
  7. package/lib/cjs/{text-overflow/index.js → _generated/style-rules/literal-types.js} +9 -6
  8. package/lib/cjs/_generated/style-rules/literal-types.js.map +1 -0
  9. package/lib/cjs/_generated/style-rules/numeric-utils.js.map +1 -1
  10. package/lib/cjs/_generated/style-rules/range-utils.js.map +1 -1
  11. package/lib/cjs/ai/presence/stories/ai-presence-default.story.js +1 -1
  12. package/lib/cjs/ai/presence/stories/ai-presence-default.story.js.map +1 -1
  13. package/lib/cjs/ai/presence/stories/ai-presence-thinking.story.js +1 -1
  14. package/lib/cjs/ai/presence/stories/ai-presence-thinking.story.js.map +1 -1
  15. package/lib/cjs/ai/reasoning/Reasoning.js +1 -1
  16. package/lib/cjs/ai/reasoning/Reasoning.js.map +1 -1
  17. package/lib/cjs/ai/reasoning/stories/reasoning-full.story.js +1 -1
  18. package/lib/cjs/ai/reasoning/stories/reasoning-full.story.js.map +1 -1
  19. package/lib/cjs/ai/response/Response.js +1 -1
  20. package/lib/cjs/ai/response/Response.js.map +1 -1
  21. package/lib/cjs/ai/response/stories/response-full-example.story.js +3 -3
  22. package/lib/cjs/ai/response/stories/response-full-example.story.js.map +1 -1
  23. package/lib/cjs/ai/suggestion/stories/suggestion-sizes.story.js +1 -1
  24. package/lib/cjs/ai/suggestion/stories/suggestion-sizes.story.js.map +1 -1
  25. package/lib/cjs/ai/user-bubble/stories/user-bubble-and-files.story.js +1 -1
  26. package/lib/cjs/ai/user-bubble/stories/user-bubble-and-files.story.js.map +1 -1
  27. package/lib/cjs/announcement-banner/stories/announcement-banner-custom-icons.story.js +1 -1
  28. package/lib/cjs/announcement-banner/stories/announcement-banner-custom-icons.story.js.map +1 -1
  29. package/lib/cjs/announcement-banner/stories/announcement-banner-injected-non-urgent.story.js +1 -1
  30. package/lib/cjs/announcement-banner/stories/announcement-banner-injected-non-urgent.story.js.map +1 -1
  31. package/lib/cjs/announcement-banner/stories/announcement-banner-injected-urgent.story.js +1 -1
  32. package/lib/cjs/announcement-banner/stories/announcement-banner-injected-urgent.story.js.map +1 -1
  33. package/lib/cjs/announcement-banner/stories/announcement-banner-present-at-page-render.story.js +1 -1
  34. package/lib/cjs/announcement-banner/stories/announcement-banner-present-at-page-render.story.js.map +1 -1
  35. package/lib/cjs/announcement-banner/stories/announcement-banner-variants.story.js +1 -1
  36. package/lib/cjs/announcement-banner/stories/announcement-banner-variants.story.js.map +1 -1
  37. package/lib/cjs/announcement-banner/stories/announcement-banner-with-page-content.story.js +1 -1
  38. package/lib/cjs/announcement-banner/stories/announcement-banner-with-page-content.story.js.map +1 -1
  39. package/lib/cjs/avatar/stories/avatar-custom-icon.story.js +1 -1
  40. package/lib/cjs/avatar/stories/avatar-custom-icon.story.js.map +1 -1
  41. package/lib/cjs/avatar/stories/avatar-shapes.story.js +1 -1
  42. package/lib/cjs/avatar/stories/avatar-shapes.story.js.map +1 -1
  43. package/lib/cjs/avatar/stories/avatar-sizes.story.js +1 -1
  44. package/lib/cjs/avatar/stories/avatar-sizes.story.js.map +1 -1
  45. package/lib/cjs/avatar/stories/avatar-statuses.story.js +1 -1
  46. package/lib/cjs/avatar/stories/avatar-statuses.story.js.map +1 -1
  47. package/lib/cjs/avatar/stories/avatar-types.story.js +1 -1
  48. package/lib/cjs/avatar/stories/avatar-types.story.js.map +1 -1
  49. package/lib/cjs/banner/stories/banner-variants.story.js +1 -1
  50. package/lib/cjs/banner/stories/banner-variants.story.js.map +1 -1
  51. package/lib/cjs/banner/stories/banner-with-icons.story.js +1 -1
  52. package/lib/cjs/banner/stories/banner-with-icons.story.js.map +1 -1
  53. package/lib/cjs/breadcrumbs/stories/breadcrumbs-header.story.js +1 -1
  54. package/lib/cjs/breadcrumbs/stories/breadcrumbs-header.story.js.map +1 -1
  55. package/lib/cjs/button/ButtonBase.js +1 -3
  56. package/lib/cjs/button/ButtonBase.js.map +1 -1
  57. package/lib/cjs/button/stories/button-sizes.story.js +1 -1
  58. package/lib/cjs/button/stories/button-sizes.story.js.map +1 -1
  59. package/lib/cjs/button/stories/button-variants.story.js +1 -1
  60. package/lib/cjs/button/stories/button-variants.story.js.map +1 -1
  61. package/lib/cjs/checkbox/stories/checkbox-full.story.js +2 -2
  62. package/lib/cjs/checkbox/stories/checkbox-full.story.js.map +1 -1
  63. package/lib/cjs/clean-icon-button/stories/clean-icon-button-keyboard-display.story.js +1 -1
  64. package/lib/cjs/clean-icon-button/stories/clean-icon-button-keyboard-display.story.js.map +1 -1
  65. package/lib/cjs/clean-icon-button/stories/clean-icon-button-sizes.story.js +1 -1
  66. package/lib/cjs/clean-icon-button/stories/clean-icon-button-sizes.story.js.map +1 -1
  67. package/lib/cjs/clean-icon-button/stories/clean-icon-button-tone.story.js +1 -1
  68. package/lib/cjs/clean-icon-button/stories/clean-icon-button-tone.story.js.map +1 -1
  69. package/lib/cjs/clipboard-button/stories/clipboard-button-sizes.story.js +1 -1
  70. package/lib/cjs/clipboard-button/stories/clipboard-button-sizes.story.js.map +1 -1
  71. package/lib/cjs/code-block/CodeBlock.js +3 -7
  72. package/lib/cjs/code-block/CodeBlock.js.map +1 -1
  73. package/lib/cjs/code-block/stories/code-disabled.story.js +2 -2
  74. package/lib/cjs/code-block/stories/code-disabled.story.js.map +1 -1
  75. package/lib/cjs/code-block/stories/code-full.story.js +2 -2
  76. package/lib/cjs/code-block/stories/code-full.story.js.map +1 -1
  77. package/lib/cjs/code-block/stories/code-languages.story.js +1 -1
  78. package/lib/cjs/code-block/stories/code-languages.story.js.map +1 -1
  79. package/lib/cjs/code-block/stories/code-with-actions.story.js +2 -2
  80. package/lib/cjs/code-block/stories/code-with-actions.story.js.map +1 -1
  81. package/lib/cjs/color-picker/ColorPicker.js +0 -3
  82. package/lib/cjs/color-picker/ColorPicker.js.map +1 -1
  83. package/lib/cjs/color-picker/stories/color-picker-dialog.story.js +1 -1
  84. package/lib/cjs/color-picker/stories/color-picker-dialog.story.js.map +1 -1
  85. package/lib/cjs/color-picker/stories/color-picker-popover.story.js +1 -1
  86. package/lib/cjs/color-picker/stories/color-picker-popover.story.js.map +1 -1
  87. package/lib/cjs/combobox/stories/combobox-action-on-select.story.js +1 -1
  88. package/lib/cjs/combobox/stories/combobox-action-on-select.story.js.map +1 -1
  89. package/lib/cjs/combobox/stories/combobox-actions.story.js +1 -1
  90. package/lib/cjs/combobox/stories/combobox-actions.story.js.map +1 -1
  91. package/lib/cjs/combobox/stories/combobox-async.story.js +2 -2
  92. package/lib/cjs/combobox/stories/combobox-async.story.js.map +1 -1
  93. package/lib/cjs/combobox/stories/combobox-disabled.story.js +1 -1
  94. package/lib/cjs/combobox/stories/combobox-disabled.story.js.map +1 -1
  95. package/lib/cjs/combobox/stories/combobox-fluid.story.js +1 -1
  96. package/lib/cjs/combobox/stories/combobox-fluid.story.js.map +1 -1
  97. package/lib/cjs/combobox/stories/combobox-hidden-label.story.js +1 -1
  98. package/lib/cjs/combobox/stories/combobox-hidden-label.story.js.map +1 -1
  99. package/lib/cjs/combobox/stories/combobox-in-popover-dialog.story.js +1 -1
  100. package/lib/cjs/combobox/stories/combobox-in-popover-dialog.story.js.map +1 -1
  101. package/lib/cjs/combobox/stories/combobox-in-popover.story.js +1 -1
  102. package/lib/cjs/combobox/stories/combobox-in-popover.story.js.map +1 -1
  103. package/lib/cjs/combobox/stories/combobox-native-form.story.js +1 -1
  104. package/lib/cjs/combobox/stories/combobox-native-form.story.js.map +1 -1
  105. package/lib/cjs/combobox/stories/combobox-sizes.story.js +1 -1
  106. package/lib/cjs/combobox/stories/combobox-sizes.story.js.map +1 -1
  107. package/lib/cjs/combobox/stories/combobox-validation.story.js +1 -1
  108. package/lib/cjs/combobox/stories/combobox-validation.story.js.map +1 -1
  109. package/lib/cjs/conditional-wrap/stories/conditional-wrap-default.story.js +1 -1
  110. package/lib/cjs/conditional-wrap/stories/conditional-wrap-default.story.js.map +1 -1
  111. package/lib/cjs/data-grid/stories/datagrid-compact-mode.story.js +1 -1
  112. package/lib/cjs/data-grid/stories/datagrid-compact-mode.story.js.map +1 -1
  113. package/lib/cjs/data-grid/stories/datagrid-component-overriding.story.js +2 -2
  114. package/lib/cjs/data-grid/stories/datagrid-component-overriding.story.js.map +1 -1
  115. package/lib/cjs/data-grid/stories/datagrid-custom-cell-with-style-rules.story.js +1 -1
  116. package/lib/cjs/data-grid/stories/datagrid-custom-cell-with-style-rules.story.js.map +1 -1
  117. package/lib/cjs/data-grid/stories/datagrid-in-dialog.story.js +2 -2
  118. package/lib/cjs/data-grid/stories/datagrid-in-dialog.story.js.map +1 -1
  119. package/lib/cjs/data-grid/stories/datagrid-keyboard-navigation.story.js +1 -1
  120. package/lib/cjs/data-grid/stories/datagrid-keyboard-navigation.story.js.map +1 -1
  121. package/lib/cjs/data-grid/stories/datagrid-kitchen-sink.story.js +1 -1
  122. package/lib/cjs/data-grid/stories/datagrid-kitchen-sink.story.js.map +1 -1
  123. package/lib/cjs/data-grid/stories/datagrid-percentage-width-columns.story.js +1 -1
  124. package/lib/cjs/data-grid/stories/datagrid-percentage-width-columns.story.js.map +1 -1
  125. package/lib/cjs/data-grid/stories/datagrid-pinned-columns.stories.js +3 -3
  126. package/lib/cjs/data-grid/stories/datagrid-pinned-columns.stories.js.map +1 -1
  127. package/lib/cjs/data-grid/stories/datagrid-placeholder-states.story.js +1 -1
  128. package/lib/cjs/data-grid/stories/datagrid-placeholder-states.story.js.map +1 -1
  129. package/lib/cjs/data-grid/stories/datagrid-resizable-column.story.js +1 -1
  130. package/lib/cjs/data-grid/stories/datagrid-resizable-column.story.js.map +1 -1
  131. package/lib/cjs/data-grid/stories/datagrid-rule-based-styling-datetime.story.js +1 -1
  132. package/lib/cjs/data-grid/stories/datagrid-rule-based-styling-datetime.story.js.map +1 -1
  133. package/lib/cjs/data-grid/stories/datagrid-rule-based-styling.story.js +1 -1
  134. package/lib/cjs/data-grid/stories/datagrid-rule-based-styling.story.js.map +1 -1
  135. package/lib/cjs/data-grid/stories/datagrid-search-and-filters.stories.js +5 -5
  136. package/lib/cjs/data-grid/stories/datagrid-search-and-filters.stories.js.map +1 -1
  137. package/lib/cjs/data-grid/stories/datagrid-simple.story.js +1 -1
  138. package/lib/cjs/data-grid/stories/datagrid-simple.story.js.map +1 -1
  139. package/lib/cjs/data-grid/stories/datagrid-single-selectable.story.js +1 -1
  140. package/lib/cjs/data-grid/stories/datagrid-single-selectable.story.js.map +1 -1
  141. package/lib/cjs/data-grid/stories/datagrid-skeleton-loading.story.js +1 -1
  142. package/lib/cjs/data-grid/stories/datagrid-skeleton-loading.story.js.map +1 -1
  143. package/lib/cjs/data-grid/stories/datagrid-sortable.story.js +1 -1
  144. package/lib/cjs/data-grid/stories/datagrid-sortable.story.js.map +1 -1
  145. package/lib/cjs/data-grid/stories/datagrid-using-editable-cells.story.js +2 -2
  146. package/lib/cjs/data-grid/stories/datagrid-using-editable-cells.story.js.map +1 -1
  147. package/lib/cjs/data-grid/stories/datagrid-virtualization.story.js +3 -3
  148. package/lib/cjs/data-grid/stories/datagrid-virtualization.story.js.map +1 -1
  149. package/lib/cjs/data-grid/style-rules/guard.js +47 -0
  150. package/lib/cjs/data-grid/style-rules/guard.js.map +1 -0
  151. package/lib/cjs/data-grid/style-rules/index.js +3 -19
  152. package/lib/cjs/data-grid/style-rules/index.js.map +1 -1
  153. package/lib/cjs/data-grid/style-rules/internal/schemas.js +213 -0
  154. package/lib/cjs/data-grid/style-rules/internal/schemas.js.map +1 -0
  155. package/lib/cjs/data-grid/style-rules/types.js +0 -205
  156. package/lib/cjs/data-grid/style-rules/types.js.map +1 -1
  157. package/lib/cjs/date-picker/DatePicker.js +8 -6
  158. package/lib/cjs/date-picker/DatePicker.js.map +1 -1
  159. package/lib/cjs/date-picker/stories/date-picker-in-dialog.story.js +1 -1
  160. package/lib/cjs/date-picker/stories/date-picker-in-dialog.story.js.map +1 -1
  161. package/lib/cjs/date-picker/stories/date-picker-in-popover-dialog.story.js +1 -1
  162. package/lib/cjs/date-picker/stories/date-picker-in-popover-dialog.story.js.map +1 -1
  163. package/lib/cjs/dialog/Dialog.js +1 -2
  164. package/lib/cjs/dialog/Dialog.js.map +1 -1
  165. package/lib/cjs/dialog/stories/dialog-danger.story.js +1 -1
  166. package/lib/cjs/dialog/stories/dialog-danger.story.js.map +1 -1
  167. package/lib/cjs/dialog/stories/dialog-default.story.js +1 -1
  168. package/lib/cjs/dialog/stories/dialog-default.story.js.map +1 -1
  169. package/lib/cjs/dialog/stories/dialog-image.story.js +1 -1
  170. package/lib/cjs/dialog/stories/dialog-image.story.js.map +1 -1
  171. package/lib/cjs/dialog/stories/dialog-info.story.js +1 -1
  172. package/lib/cjs/dialog/stories/dialog-info.story.js.map +1 -1
  173. package/lib/cjs/dialog/stories/dialog-top-aligned.story.js +2 -2
  174. package/lib/cjs/dialog/stories/dialog-top-aligned.story.js.map +1 -1
  175. package/lib/cjs/dialog/stories/dialog-variants.story.js +1 -1
  176. package/lib/cjs/dialog/stories/dialog-variants.story.js.map +1 -1
  177. package/lib/cjs/dialog/stories/dialog-warning.story.js +1 -1
  178. package/lib/cjs/dialog/stories/dialog-warning.story.js.map +1 -1
  179. package/lib/cjs/dismissible-tag/stories/dismissible-tag-colors.story.js +1 -1
  180. package/lib/cjs/dismissible-tag/stories/dismissible-tag-colors.story.js.map +1 -1
  181. package/lib/cjs/dismissible-tag/stories/dismissible-tag-sizes.story.js +1 -1
  182. package/lib/cjs/dismissible-tag/stories/dismissible-tag-sizes.story.js.map +1 -1
  183. package/lib/cjs/drawer/Drawer.js +7 -6
  184. package/lib/cjs/drawer/Drawer.js.map +1 -1
  185. package/lib/cjs/drawer/stories/drawer-full.story.js +2 -2
  186. package/lib/cjs/drawer/stories/drawer-full.story.js.map +1 -1
  187. package/lib/cjs/drawer/stories/drawer-not-closeable.story.js +2 -2
  188. package/lib/cjs/drawer/stories/drawer-not-closeable.story.js.map +1 -1
  189. package/lib/cjs/drawer/stories/drawer-overlay.story.js +1 -1
  190. package/lib/cjs/drawer/stories/drawer-overlay.story.js.map +1 -1
  191. package/lib/cjs/drawer/stories/drawer-portaled.story.js +2 -2
  192. package/lib/cjs/drawer/stories/drawer-portaled.story.js.map +1 -1
  193. package/lib/cjs/drawer/stories/drawer-push.story.js +2 -2
  194. package/lib/cjs/drawer/stories/drawer-push.story.js.map +1 -1
  195. package/lib/cjs/drawer/stories/drawer-resizable.story.js +2 -2
  196. package/lib/cjs/drawer/stories/drawer-resizable.story.js.map +1 -1
  197. package/lib/cjs/drawer/stories/drawer-right-side.story.js +2 -2
  198. package/lib/cjs/drawer/stories/drawer-right-side.story.js.map +1 -1
  199. package/lib/cjs/drawer/stories/drawer-scrollable.story.js +2 -2
  200. package/lib/cjs/drawer/stories/drawer-scrollable.story.js.map +1 -1
  201. package/lib/cjs/dropzone/stories/dropzone-full.story.js +3 -3
  202. package/lib/cjs/dropzone/stories/dropzone-full.story.js.map +1 -1
  203. package/lib/cjs/flex/stories/flex-default.story.js +1 -1
  204. package/lib/cjs/flex/stories/flex-default.story.js.map +1 -1
  205. package/lib/cjs/graph-label/stories/graph-label-color.story.js +1 -1
  206. package/lib/cjs/graph-label/stories/graph-label-color.story.js.map +1 -1
  207. package/lib/cjs/graph-label/stories/graph-label-sizes.story.js +1 -1
  208. package/lib/cjs/graph-label/stories/graph-label-sizes.story.js.map +1 -1
  209. package/lib/cjs/graph-label/stories/graph-label-types.story.js +1 -1
  210. package/lib/cjs/graph-label/stories/graph-label-types.story.js.map +1 -1
  211. package/lib/cjs/hooks/use-debounce-callback/index.js +6 -6
  212. package/lib/cjs/hooks/use-debounce-callback/index.js.map +1 -1
  213. package/lib/cjs/icon-button/stories/icon-button-sizes.story.js +1 -1
  214. package/lib/cjs/icon-button/stories/icon-button-sizes.story.js.map +1 -1
  215. package/lib/cjs/icon-button/stories/icon-button-tone.story.js +1 -1
  216. package/lib/cjs/icon-button/stories/icon-button-tone.story.js.map +1 -1
  217. package/lib/cjs/icon-button-array/stories/icon-button-array-sizes.story.js +1 -1
  218. package/lib/cjs/icon-button-array/stories/icon-button-array-sizes.story.js.map +1 -1
  219. package/lib/cjs/icon-button-base/IconButtonBase.js +1 -3
  220. package/lib/cjs/icon-button-base/IconButtonBase.js.map +1 -1
  221. package/lib/cjs/icons/generated/custom/index.js +3 -17
  222. package/lib/cjs/icons/generated/custom/index.js.map +1 -1
  223. package/lib/cjs/inline-edit/InlineEdit.js +3 -2
  224. package/lib/cjs/inline-edit/InlineEdit.js.map +1 -1
  225. package/lib/cjs/kbd/Kbd.js +0 -1
  226. package/lib/cjs/kbd/Kbd.js.map +1 -1
  227. package/lib/cjs/loading-spinner/stories/loading-spinner-sizes.story.js +1 -1
  228. package/lib/cjs/loading-spinner/stories/loading-spinner-sizes.story.js.map +1 -1
  229. package/lib/cjs/logo/stories/logo-black.story.js +1 -1
  230. package/lib/cjs/logo/stories/logo-black.story.js.map +1 -1
  231. package/lib/cjs/logo/stories/logo-default.story.js +1 -1
  232. package/lib/cjs/logo/stories/logo-default.story.js.map +1 -1
  233. package/lib/cjs/logo/stories/logo-icon.story.js +1 -1
  234. package/lib/cjs/logo/stories/logo-icon.story.js.map +1 -1
  235. package/lib/cjs/menu/Menu.js +2 -2
  236. package/lib/cjs/menu/Menu.js.map +1 -1
  237. package/lib/cjs/menu/menu-types.js.map +1 -1
  238. package/lib/cjs/menu/stories/menu-custom-items.story.js +1 -1
  239. package/lib/cjs/menu/stories/menu-custom-items.story.js.map +1 -1
  240. package/lib/cjs/menu/stories/menu-in-dialog.story.js +2 -2
  241. package/lib/cjs/menu/stories/menu-in-dialog.story.js.map +1 -1
  242. package/lib/cjs/menu/stories/menu-nested.story.js +1 -1
  243. package/lib/cjs/menu/stories/menu-nested.story.js.map +1 -1
  244. package/lib/cjs/menu/stories/menu-radio-and-normal.story.js +1 -1
  245. package/lib/cjs/menu/stories/menu-radio-and-normal.story.js.map +1 -1
  246. package/lib/cjs/menu/stories/menu-radio-items.story.js +1 -1
  247. package/lib/cjs/menu/stories/menu-radio-items.story.js.map +1 -1
  248. package/lib/cjs/menu/stories/menu-with-icon.story.js +1 -1
  249. package/lib/cjs/menu/stories/menu-with-icon.story.js.map +1 -1
  250. package/lib/cjs/next/tree-view/TreeView.js +3 -3
  251. package/lib/cjs/next/tree-view/TreeView.js.map +1 -1
  252. package/lib/cjs/next/tree-view/stories/tree-view-large.story.js +1 -1
  253. package/lib/cjs/next/tree-view/stories/tree-view-large.story.js.map +1 -1
  254. package/lib/cjs/next/tree-view/stories/tree-view-multiple-replace.story.js +1 -1
  255. package/lib/cjs/next/tree-view/stories/tree-view-multiple-replace.story.js.map +1 -1
  256. package/lib/cjs/next/tree-view/stories/tree-view-root-selection.story.js +1 -1
  257. package/lib/cjs/next/tree-view/stories/tree-view-root-selection.story.js.map +1 -1
  258. package/lib/cjs/next/tree-view/stories/tree-view-tooltip.story.js +1 -1
  259. package/lib/cjs/next/tree-view/stories/tree-view-tooltip.story.js.map +1 -1
  260. package/lib/cjs/next/tree-view/stories/tree-view-trailing.story.js +1 -1
  261. package/lib/cjs/next/tree-view/stories/tree-view-trailing.story.js.map +1 -1
  262. package/lib/cjs/next/tree-view/stories/tree-view-uncontrolled.story.js +1 -1
  263. package/lib/cjs/next/tree-view/stories/tree-view-uncontrolled.story.js.map +1 -1
  264. package/lib/cjs/popover/Popover.js +6 -6
  265. package/lib/cjs/popover/Popover.js.map +1 -1
  266. package/lib/cjs/popover/stories/popover-controlled.story.js +1 -1
  267. package/lib/cjs/popover/stories/popover-controlled.story.js.map +1 -1
  268. package/lib/cjs/popover/stories/popover-custom-offset.story.js +1 -1
  269. package/lib/cjs/popover/stories/popover-custom-offset.story.js.map +1 -1
  270. package/lib/cjs/popover/stories/popover-default.story.js +1 -1
  271. package/lib/cjs/popover/stories/popover-default.story.js.map +1 -1
  272. package/lib/cjs/popover/stories/popover-in-dialog.story.js +1 -1
  273. package/lib/cjs/popover/stories/popover-in-dialog.story.js.map +1 -1
  274. package/lib/cjs/popover/stories/popover-no-button-wrapper.story.js +1 -1
  275. package/lib/cjs/popover/stories/popover-no-button-wrapper.story.js.map +1 -1
  276. package/lib/cjs/popover/stories/popover-separate-anchor.story.js +1 -1
  277. package/lib/cjs/popover/stories/popover-separate-anchor.story.js.map +1 -1
  278. package/lib/cjs/popover/use-popover.js +7 -9
  279. package/lib/cjs/popover/use-popover.js.map +1 -1
  280. package/lib/cjs/progress-bar/stories/progress-bar-sizes.story.js +1 -1
  281. package/lib/cjs/progress-bar/stories/progress-bar-sizes.story.js.map +1 -1
  282. package/lib/cjs/radio/stories/radio-disabled.story.js +1 -1
  283. package/lib/cjs/radio/stories/radio-disabled.story.js.map +1 -1
  284. package/lib/cjs/radio/stories/radio-truncated-label.story.js +1 -1
  285. package/lib/cjs/radio/stories/radio-truncated-label.story.js.map +1 -1
  286. package/lib/cjs/read-only-tag/stories/read-only-tag-colors.story.js +1 -1
  287. package/lib/cjs/read-only-tag/stories/read-only-tag-colors.story.js.map +1 -1
  288. package/lib/cjs/read-only-tag/stories/read-only-tag-sizes.story.js +1 -1
  289. package/lib/cjs/read-only-tag/stories/read-only-tag-sizes.story.js.map +1 -1
  290. package/lib/cjs/segmented-control/stories/segmented-control-sizes.story.js +1 -1
  291. package/lib/cjs/segmented-control/stories/segmented-control-sizes.story.js.map +1 -1
  292. package/lib/cjs/select/stories/select-controlled.story.js +1 -1
  293. package/lib/cjs/select/stories/select-controlled.story.js.map +1 -1
  294. package/lib/cjs/select/stories/select-custom-label.story.js +1 -1
  295. package/lib/cjs/select/stories/select-custom-label.story.js.map +1 -1
  296. package/lib/cjs/select/stories/select-inside-dialog.story.js +1 -1
  297. package/lib/cjs/select/stories/select-inside-dialog.story.js.map +1 -1
  298. package/lib/cjs/select/stories/select-menu-positionings.story.js +1 -1
  299. package/lib/cjs/select/stories/select-menu-positionings.story.js.map +1 -1
  300. package/lib/cjs/select/stories/select-required.story.js +1 -1
  301. package/lib/cjs/select/stories/select-required.story.js.map +1 -1
  302. package/lib/cjs/select/stories/select-sizes.story.js +1 -1
  303. package/lib/cjs/select/stories/select-sizes.story.js.map +1 -1
  304. package/lib/cjs/select-icon-button/stories/select-icon-button-sizes.story.js +1 -1
  305. package/lib/cjs/select-icon-button/stories/select-icon-button-sizes.story.js.map +1 -1
  306. package/lib/cjs/select-icon-button/stories/select-icon-button-states.story.js +1 -1
  307. package/lib/cjs/select-icon-button/stories/select-icon-button-states.story.js.map +1 -1
  308. package/lib/cjs/selectable-tag/stories/selectable-tag-disabled.story.js +1 -1
  309. package/lib/cjs/selectable-tag/stories/selectable-tag-disabled.story.js.map +1 -1
  310. package/lib/cjs/selectable-tag/stories/selectable-tag-sizes.story.js +1 -1
  311. package/lib/cjs/selectable-tag/stories/selectable-tag-sizes.story.js.map +1 -1
  312. package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
  313. package/lib/cjs/side-navigation/stories/side-nav-badges.story.js +2 -2
  314. package/lib/cjs/side-navigation/stories/side-nav-badges.story.js.map +1 -1
  315. package/lib/cjs/side-navigation/stories/side-nav-compact.story.js +1 -1
  316. package/lib/cjs/side-navigation/stories/side-nav-compact.story.js.map +1 -1
  317. package/lib/cjs/side-navigation/stories/side-nav-default.story.js +1 -1
  318. package/lib/cjs/side-navigation/stories/side-nav-default.story.js.map +1 -1
  319. package/lib/cjs/side-navigation/stories/side-nav-secondary.story.js +1 -1
  320. package/lib/cjs/side-navigation/stories/side-nav-secondary.story.js.map +1 -1
  321. package/lib/cjs/skeleton/stories/skeleton-circular.story.js +1 -1
  322. package/lib/cjs/skeleton/stories/skeleton-circular.story.js.map +1 -1
  323. package/lib/cjs/skeleton/stories/skeleton-default.story.js +1 -1
  324. package/lib/cjs/skeleton/stories/skeleton-default.story.js.map +1 -1
  325. package/lib/cjs/skeleton/stories/skeleton-full-example.story.js +1 -1
  326. package/lib/cjs/skeleton/stories/skeleton-full-example.story.js.map +1 -1
  327. package/lib/cjs/skeleton/stories/skeleton-inherit-height.story.js +1 -1
  328. package/lib/cjs/skeleton/stories/skeleton-inherit-height.story.js.map +1 -1
  329. package/lib/cjs/skeleton/stories/skeleton-inherit-width.story.js +1 -1
  330. package/lib/cjs/skeleton/stories/skeleton-inherit-width.story.js.map +1 -1
  331. package/lib/cjs/slider/Slider.js +3 -3
  332. package/lib/cjs/slider/Slider.js.map +1 -1
  333. package/lib/cjs/slider/stories/slider-custom-step-length.story.js +1 -1
  334. package/lib/cjs/slider/stories/slider-custom-step-length.story.js.map +1 -1
  335. package/lib/cjs/slider/stories/slider-range.story.js +1 -1
  336. package/lib/cjs/slider/stories/slider-range.story.js.map +1 -1
  337. package/lib/cjs/slider/stories/slider-show-steps.story.js +1 -1
  338. package/lib/cjs/slider/stories/slider-show-steps.story.js.map +1 -1
  339. package/lib/cjs/slider/stories/slider-show-values.story.js +1 -1
  340. package/lib/cjs/slider/stories/slider-show-values.story.js.map +1 -1
  341. package/lib/cjs/slider/stories/slider-single-controlled.story.js +2 -2
  342. package/lib/cjs/slider/stories/slider-single-controlled.story.js.map +1 -1
  343. package/lib/cjs/slider/stories/slider-single.story.js +1 -1
  344. package/lib/cjs/slider/stories/slider-single.story.js.map +1 -1
  345. package/lib/cjs/spotlight/Spotlight.js +3 -3
  346. package/lib/cjs/spotlight/Spotlight.js.map +1 -1
  347. package/lib/cjs/spotlight/SpotlightTarget.js +3 -3
  348. package/lib/cjs/spotlight/SpotlightTarget.js.map +1 -1
  349. package/lib/cjs/spotlight/stories/spotlight-fixed-positioning.story.js +1 -1
  350. package/lib/cjs/spotlight/stories/spotlight-fixed-positioning.story.js.map +1 -1
  351. package/lib/cjs/spotlight/stories/spotlight-in-dialog.story.js +1 -1
  352. package/lib/cjs/spotlight/stories/spotlight-in-dialog.story.js.map +1 -1
  353. package/lib/cjs/spotlight/stories/spotlight-in-side-nav.story.js +1 -1
  354. package/lib/cjs/spotlight/stories/spotlight-in-side-nav.story.js.map +1 -1
  355. package/lib/cjs/spotlight/stories/spotlight-on-tabs.story.js +1 -1
  356. package/lib/cjs/spotlight/stories/spotlight-on-tabs.story.js.map +1 -1
  357. package/lib/cjs/spotlight/stories/spotlight-tour.story.js +1 -1
  358. package/lib/cjs/spotlight/stories/spotlight-tour.story.js.map +1 -1
  359. package/lib/cjs/spotlight/stories/spotlight-with-icon.story.js +1 -1
  360. package/lib/cjs/spotlight/stories/spotlight-with-icon.story.js.map +1 -1
  361. package/lib/cjs/spotlight/stories/spotlight-with-image.story.js +1 -1
  362. package/lib/cjs/spotlight/stories/spotlight-with-image.story.js.map +1 -1
  363. package/lib/cjs/spotlight/stories/spotlight-with-label.story.js +1 -1
  364. package/lib/cjs/spotlight/stories/spotlight-with-label.story.js.map +1 -1
  365. package/lib/cjs/spotlight/stories/spotlight-with-pointer.story.js +1 -1
  366. package/lib/cjs/spotlight/stories/spotlight-with-pointer.story.js.map +1 -1
  367. package/lib/cjs/spotlight/use-spotlight.js +5 -5
  368. package/lib/cjs/spotlight/use-spotlight.js.map +1 -1
  369. package/lib/cjs/status-indicator/stories/status-indicator-variants.story.js +1 -1
  370. package/lib/cjs/status-indicator/stories/status-indicator-variants.story.js.map +1 -1
  371. package/lib/cjs/status-label/stories/status-label-colors.story.js +1 -1
  372. package/lib/cjs/status-label/stories/status-label-colors.story.js.map +1 -1
  373. package/lib/cjs/status-label/stories/status-label-fills.story.js +1 -1
  374. package/lib/cjs/status-label/stories/status-label-fills.story.js.map +1 -1
  375. package/lib/cjs/status-label/stories/status-label-with-icons.story.js +1 -1
  376. package/lib/cjs/status-label/stories/status-label-with-icons.story.js.map +1 -1
  377. package/lib/cjs/switch/stories/switch-disabled.story.js +1 -1
  378. package/lib/cjs/switch/stories/switch-disabled.story.js.map +1 -1
  379. package/lib/cjs/tabs/Tabs.js +2 -2
  380. package/lib/cjs/tabs/Tabs.js.map +1 -1
  381. package/lib/cjs/tabs/stories/tabs-badge.story.js +1 -1
  382. package/lib/cjs/tabs/stories/tabs-badge.story.js.map +1 -1
  383. package/lib/cjs/tabs/stories/tabs-default.story.js +1 -1
  384. package/lib/cjs/tabs/stories/tabs-default.story.js.map +1 -1
  385. package/lib/cjs/tabs/stories/tabs-disabled.story.js +1 -1
  386. package/lib/cjs/tabs/stories/tabs-disabled.story.js.map +1 -1
  387. package/lib/cjs/tabs/stories/tabs-fill-variants.story.js +1 -1
  388. package/lib/cjs/tabs/stories/tabs-fill-variants.story.js.map +1 -1
  389. package/lib/cjs/tabs/stories/tabs-overflow.story.js +1 -1
  390. package/lib/cjs/tabs/stories/tabs-overflow.story.js.map +1 -1
  391. package/lib/cjs/tabs/stories/tabs-sizes.story.js +1 -1
  392. package/lib/cjs/tabs/stories/tabs-sizes.story.js.map +1 -1
  393. package/lib/cjs/tabs/stories/tabs-with-icons.story.js +1 -1
  394. package/lib/cjs/tabs/stories/tabs-with-icons.story.js.map +1 -1
  395. package/lib/cjs/tag/stories/tag-sizes.story.js +1 -1
  396. package/lib/cjs/tag/stories/tag-sizes.story.js.map +1 -1
  397. package/lib/cjs/tag/stories/tag-types.story.js +1 -1
  398. package/lib/cjs/tag/stories/tag-types.story.js.map +1 -1
  399. package/lib/cjs/tag-base/stories/tag-variants.story.js +1 -1
  400. package/lib/cjs/tag-base/stories/tag-variants.story.js.map +1 -1
  401. package/lib/cjs/text-area/stories/text-area-sizes.story.js +1 -1
  402. package/lib/cjs/text-area/stories/text-area-sizes.story.js.map +1 -1
  403. package/lib/cjs/text-input/TextInput.js.map +1 -1
  404. package/lib/cjs/text-input/stories/text-input-loading-spinner.story.js +1 -1
  405. package/lib/cjs/text-input/stories/text-input-loading-spinner.story.js.map +1 -1
  406. package/lib/cjs/text-input/stories/text-input-optional.story.js +1 -1
  407. package/lib/cjs/text-input/stories/text-input-optional.story.js.map +1 -1
  408. package/lib/cjs/text-input/stories/text-input-sizes.story.js +1 -1
  409. package/lib/cjs/text-input/stories/text-input-sizes.story.js.map +1 -1
  410. package/lib/cjs/text-link/TextLink.js +2 -6
  411. package/lib/cjs/text-link/TextLink.js.map +1 -1
  412. package/lib/cjs/text-link/stories/index.js +5 -17
  413. package/lib/cjs/text-link/stories/index.js.map +1 -1
  414. package/lib/cjs/text-link/stories/text-link-external.story.js +1 -1
  415. package/lib/cjs/text-link/stories/text-link-external.story.js.map +1 -1
  416. package/lib/cjs/text-link/stories/{text-link-internal-underline.story.js → text-link-internal.story.js} +2 -2
  417. package/lib/cjs/text-link/stories/text-link-internal.story.js.map +1 -0
  418. package/lib/cjs/time-picker/stories/time-picker-in-popover-dialog.story.js +1 -1
  419. package/lib/cjs/time-picker/stories/time-picker-in-popover-dialog.story.js.map +1 -1
  420. package/lib/cjs/timezone-picker/stories/timezone-picker-in-dialog.story.js +1 -1
  421. package/lib/cjs/timezone-picker/stories/timezone-picker-in-dialog.story.js.map +1 -1
  422. package/lib/cjs/timezone-picker/stories/timezone-picker-in-popover-dialog.story.js +1 -1
  423. package/lib/cjs/timezone-picker/stories/timezone-picker-in-popover-dialog.story.js.map +1 -1
  424. package/lib/cjs/toast/stories/toast-action-story.js +1 -1
  425. package/lib/cjs/toast/stories/toast-action-story.js.map +1 -1
  426. package/lib/cjs/toast/stories/toast-closeable-story.js +1 -1
  427. package/lib/cjs/toast/stories/toast-closeable-story.js.map +1 -1
  428. package/lib/cjs/toast/stories/toast-controlled-story.js +1 -1
  429. package/lib/cjs/toast/stories/toast-controlled-story.js.map +1 -1
  430. package/lib/cjs/toast/stories/toast-custom-story.js +1 -1
  431. package/lib/cjs/toast/stories/toast-custom-story.js.map +1 -1
  432. package/lib/cjs/toast/stories/toast-danger-story.js +1 -1
  433. package/lib/cjs/toast/stories/toast-danger-story.js.map +1 -1
  434. package/lib/cjs/toast/stories/toast-neutral-story.js +1 -1
  435. package/lib/cjs/toast/stories/toast-neutral-story.js.map +1 -1
  436. package/lib/cjs/toast/stories/toast-progress-bar.js +1 -1
  437. package/lib/cjs/toast/stories/toast-progress-bar.js.map +1 -1
  438. package/lib/cjs/toast/stories/toast-success-story.js +1 -1
  439. package/lib/cjs/toast/stories/toast-success-story.js.map +1 -1
  440. package/lib/cjs/tooltip/Tooltip.js.map +1 -1
  441. package/lib/cjs/tooltip/stories/tooltip-in-dialog.story.js +1 -1
  442. package/lib/cjs/tooltip/stories/tooltip-in-dialog.story.js.map +1 -1
  443. package/lib/cjs/tooltip/stories/tooltip-placements.story.js +1 -1
  444. package/lib/cjs/tooltip/stories/tooltip-placements.story.js.map +1 -1
  445. package/lib/cjs/tooltip/use-tooltip.js.map +1 -1
  446. package/lib/cjs/tree-view/TreeView.js +3 -0
  447. package/lib/cjs/tree-view/TreeView.js.map +1 -1
  448. package/lib/cjs/tree-view/TreeViewItem.js.map +1 -1
  449. package/lib/cjs/tree-view/stories/treeview-custom.story.js +2 -2
  450. package/lib/cjs/tree-view/stories/treeview-custom.story.js.map +1 -1
  451. package/lib/cjs/tree-view/tree-view-utils.js.map +1 -1
  452. package/lib/cjs/typography/Typography.js +7 -1
  453. package/lib/cjs/typography/Typography.js.map +1 -1
  454. package/lib/esm/_generated/style-rules/index.js +1 -1
  455. package/lib/esm/_generated/style-rules/index.js.map +1 -1
  456. package/lib/esm/_generated/style-rules/literal-guards.js +45 -0
  457. package/lib/esm/_generated/style-rules/literal-guards.js.map +1 -0
  458. package/lib/esm/_generated/style-rules/literal-schemas.js +6 -18
  459. package/lib/esm/_generated/style-rules/literal-schemas.js.map +1 -1
  460. package/lib/esm/{text-overflow/index.js → _generated/style-rules/literal-types.js} +8 -2
  461. package/lib/esm/_generated/style-rules/literal-types.js.map +1 -0
  462. package/lib/esm/_generated/style-rules/numeric-utils.js.map +1 -1
  463. package/lib/esm/_generated/style-rules/range-utils.js.map +1 -1
  464. package/lib/esm/ai/presence/stories/ai-presence-default.story.js +1 -1
  465. package/lib/esm/ai/presence/stories/ai-presence-default.story.js.map +1 -1
  466. package/lib/esm/ai/presence/stories/ai-presence-thinking.story.js +1 -1
  467. package/lib/esm/ai/presence/stories/ai-presence-thinking.story.js.map +1 -1
  468. package/lib/esm/ai/reasoning/Reasoning.js +1 -1
  469. package/lib/esm/ai/reasoning/Reasoning.js.map +1 -1
  470. package/lib/esm/ai/reasoning/stories/reasoning-full.story.js +1 -1
  471. package/lib/esm/ai/reasoning/stories/reasoning-full.story.js.map +1 -1
  472. package/lib/esm/ai/response/Response.js +1 -1
  473. package/lib/esm/ai/response/Response.js.map +1 -1
  474. package/lib/esm/ai/response/stories/response-full-example.story.js +3 -3
  475. package/lib/esm/ai/response/stories/response-full-example.story.js.map +1 -1
  476. package/lib/esm/ai/suggestion/stories/suggestion-sizes.story.js +1 -1
  477. package/lib/esm/ai/suggestion/stories/suggestion-sizes.story.js.map +1 -1
  478. package/lib/esm/ai/user-bubble/stories/user-bubble-and-files.story.js +1 -1
  479. package/lib/esm/ai/user-bubble/stories/user-bubble-and-files.story.js.map +1 -1
  480. package/lib/esm/announcement-banner/stories/announcement-banner-custom-icons.story.js +1 -1
  481. package/lib/esm/announcement-banner/stories/announcement-banner-custom-icons.story.js.map +1 -1
  482. package/lib/esm/announcement-banner/stories/announcement-banner-injected-non-urgent.story.js +1 -1
  483. package/lib/esm/announcement-banner/stories/announcement-banner-injected-non-urgent.story.js.map +1 -1
  484. package/lib/esm/announcement-banner/stories/announcement-banner-injected-urgent.story.js +1 -1
  485. package/lib/esm/announcement-banner/stories/announcement-banner-injected-urgent.story.js.map +1 -1
  486. package/lib/esm/announcement-banner/stories/announcement-banner-present-at-page-render.story.js +1 -1
  487. package/lib/esm/announcement-banner/stories/announcement-banner-present-at-page-render.story.js.map +1 -1
  488. package/lib/esm/announcement-banner/stories/announcement-banner-variants.story.js +1 -1
  489. package/lib/esm/announcement-banner/stories/announcement-banner-variants.story.js.map +1 -1
  490. package/lib/esm/announcement-banner/stories/announcement-banner-with-page-content.story.js +1 -1
  491. package/lib/esm/announcement-banner/stories/announcement-banner-with-page-content.story.js.map +1 -1
  492. package/lib/esm/avatar/stories/avatar-custom-icon.story.js +1 -1
  493. package/lib/esm/avatar/stories/avatar-custom-icon.story.js.map +1 -1
  494. package/lib/esm/avatar/stories/avatar-shapes.story.js +1 -1
  495. package/lib/esm/avatar/stories/avatar-shapes.story.js.map +1 -1
  496. package/lib/esm/avatar/stories/avatar-sizes.story.js +1 -1
  497. package/lib/esm/avatar/stories/avatar-sizes.story.js.map +1 -1
  498. package/lib/esm/avatar/stories/avatar-statuses.story.js +1 -1
  499. package/lib/esm/avatar/stories/avatar-statuses.story.js.map +1 -1
  500. package/lib/esm/avatar/stories/avatar-types.story.js +1 -1
  501. package/lib/esm/avatar/stories/avatar-types.story.js.map +1 -1
  502. package/lib/esm/banner/stories/banner-variants.story.js +1 -1
  503. package/lib/esm/banner/stories/banner-variants.story.js.map +1 -1
  504. package/lib/esm/banner/stories/banner-with-icons.story.js +1 -1
  505. package/lib/esm/banner/stories/banner-with-icons.story.js.map +1 -1
  506. package/lib/esm/breadcrumbs/stories/breadcrumbs-header.story.js +1 -1
  507. package/lib/esm/breadcrumbs/stories/breadcrumbs-header.story.js.map +1 -1
  508. package/lib/esm/button/ButtonBase.js +1 -3
  509. package/lib/esm/button/ButtonBase.js.map +1 -1
  510. package/lib/esm/button/stories/button-sizes.story.js +1 -1
  511. package/lib/esm/button/stories/button-sizes.story.js.map +1 -1
  512. package/lib/esm/button/stories/button-variants.story.js +1 -1
  513. package/lib/esm/button/stories/button-variants.story.js.map +1 -1
  514. package/lib/esm/checkbox/stories/checkbox-full.story.js +2 -2
  515. package/lib/esm/checkbox/stories/checkbox-full.story.js.map +1 -1
  516. package/lib/esm/clean-icon-button/stories/clean-icon-button-keyboard-display.story.js +1 -1
  517. package/lib/esm/clean-icon-button/stories/clean-icon-button-keyboard-display.story.js.map +1 -1
  518. package/lib/esm/clean-icon-button/stories/clean-icon-button-sizes.story.js +1 -1
  519. package/lib/esm/clean-icon-button/stories/clean-icon-button-sizes.story.js.map +1 -1
  520. package/lib/esm/clean-icon-button/stories/clean-icon-button-tone.story.js +1 -1
  521. package/lib/esm/clean-icon-button/stories/clean-icon-button-tone.story.js.map +1 -1
  522. package/lib/esm/clipboard-button/stories/clipboard-button-sizes.story.js +1 -1
  523. package/lib/esm/clipboard-button/stories/clipboard-button-sizes.story.js.map +1 -1
  524. package/lib/esm/code-block/CodeBlock.js +3 -7
  525. package/lib/esm/code-block/CodeBlock.js.map +1 -1
  526. package/lib/esm/code-block/stories/code-disabled.story.js +2 -2
  527. package/lib/esm/code-block/stories/code-disabled.story.js.map +1 -1
  528. package/lib/esm/code-block/stories/code-full.story.js +2 -2
  529. package/lib/esm/code-block/stories/code-full.story.js.map +1 -1
  530. package/lib/esm/code-block/stories/code-languages.story.js +1 -1
  531. package/lib/esm/code-block/stories/code-languages.story.js.map +1 -1
  532. package/lib/esm/code-block/stories/code-with-actions.story.js +2 -2
  533. package/lib/esm/code-block/stories/code-with-actions.story.js.map +1 -1
  534. package/lib/esm/color-picker/ColorPicker.js +0 -3
  535. package/lib/esm/color-picker/ColorPicker.js.map +1 -1
  536. package/lib/esm/color-picker/stories/color-picker-dialog.story.js +1 -1
  537. package/lib/esm/color-picker/stories/color-picker-dialog.story.js.map +1 -1
  538. package/lib/esm/color-picker/stories/color-picker-popover.story.js +1 -1
  539. package/lib/esm/color-picker/stories/color-picker-popover.story.js.map +1 -1
  540. package/lib/esm/combobox/stories/combobox-action-on-select.story.js +1 -1
  541. package/lib/esm/combobox/stories/combobox-action-on-select.story.js.map +1 -1
  542. package/lib/esm/combobox/stories/combobox-actions.story.js +1 -1
  543. package/lib/esm/combobox/stories/combobox-actions.story.js.map +1 -1
  544. package/lib/esm/combobox/stories/combobox-async.story.js +2 -2
  545. package/lib/esm/combobox/stories/combobox-async.story.js.map +1 -1
  546. package/lib/esm/combobox/stories/combobox-disabled.story.js +1 -1
  547. package/lib/esm/combobox/stories/combobox-disabled.story.js.map +1 -1
  548. package/lib/esm/combobox/stories/combobox-fluid.story.js +1 -1
  549. package/lib/esm/combobox/stories/combobox-fluid.story.js.map +1 -1
  550. package/lib/esm/combobox/stories/combobox-hidden-label.story.js +1 -1
  551. package/lib/esm/combobox/stories/combobox-hidden-label.story.js.map +1 -1
  552. package/lib/esm/combobox/stories/combobox-in-popover-dialog.story.js +1 -1
  553. package/lib/esm/combobox/stories/combobox-in-popover-dialog.story.js.map +1 -1
  554. package/lib/esm/combobox/stories/combobox-in-popover.story.js +1 -1
  555. package/lib/esm/combobox/stories/combobox-in-popover.story.js.map +1 -1
  556. package/lib/esm/combobox/stories/combobox-native-form.story.js +1 -1
  557. package/lib/esm/combobox/stories/combobox-native-form.story.js.map +1 -1
  558. package/lib/esm/combobox/stories/combobox-sizes.story.js +1 -1
  559. package/lib/esm/combobox/stories/combobox-sizes.story.js.map +1 -1
  560. package/lib/esm/combobox/stories/combobox-validation.story.js +1 -1
  561. package/lib/esm/combobox/stories/combobox-validation.story.js.map +1 -1
  562. package/lib/esm/conditional-wrap/stories/conditional-wrap-default.story.js +1 -1
  563. package/lib/esm/conditional-wrap/stories/conditional-wrap-default.story.js.map +1 -1
  564. package/lib/esm/data-grid/stories/datagrid-compact-mode.story.js +1 -1
  565. package/lib/esm/data-grid/stories/datagrid-compact-mode.story.js.map +1 -1
  566. package/lib/esm/data-grid/stories/datagrid-component-overriding.story.js +2 -2
  567. package/lib/esm/data-grid/stories/datagrid-component-overriding.story.js.map +1 -1
  568. package/lib/esm/data-grid/stories/datagrid-custom-cell-with-style-rules.story.js +1 -1
  569. package/lib/esm/data-grid/stories/datagrid-custom-cell-with-style-rules.story.js.map +1 -1
  570. package/lib/esm/data-grid/stories/datagrid-in-dialog.story.js +2 -2
  571. package/lib/esm/data-grid/stories/datagrid-in-dialog.story.js.map +1 -1
  572. package/lib/esm/data-grid/stories/datagrid-keyboard-navigation.story.js +1 -1
  573. package/lib/esm/data-grid/stories/datagrid-keyboard-navigation.story.js.map +1 -1
  574. package/lib/esm/data-grid/stories/datagrid-kitchen-sink.story.js +1 -1
  575. package/lib/esm/data-grid/stories/datagrid-kitchen-sink.story.js.map +1 -1
  576. package/lib/esm/data-grid/stories/datagrid-percentage-width-columns.story.js +1 -1
  577. package/lib/esm/data-grid/stories/datagrid-percentage-width-columns.story.js.map +1 -1
  578. package/lib/esm/data-grid/stories/datagrid-pinned-columns.stories.js +3 -3
  579. package/lib/esm/data-grid/stories/datagrid-pinned-columns.stories.js.map +1 -1
  580. package/lib/esm/data-grid/stories/datagrid-placeholder-states.story.js +1 -1
  581. package/lib/esm/data-grid/stories/datagrid-placeholder-states.story.js.map +1 -1
  582. package/lib/esm/data-grid/stories/datagrid-resizable-column.story.js +1 -1
  583. package/lib/esm/data-grid/stories/datagrid-resizable-column.story.js.map +1 -1
  584. package/lib/esm/data-grid/stories/datagrid-rule-based-styling-datetime.story.js +1 -1
  585. package/lib/esm/data-grid/stories/datagrid-rule-based-styling-datetime.story.js.map +1 -1
  586. package/lib/esm/data-grid/stories/datagrid-rule-based-styling.story.js +1 -1
  587. package/lib/esm/data-grid/stories/datagrid-rule-based-styling.story.js.map +1 -1
  588. package/lib/esm/data-grid/stories/datagrid-search-and-filters.stories.js +5 -5
  589. package/lib/esm/data-grid/stories/datagrid-search-and-filters.stories.js.map +1 -1
  590. package/lib/esm/data-grid/stories/datagrid-simple.story.js +1 -1
  591. package/lib/esm/data-grid/stories/datagrid-simple.story.js.map +1 -1
  592. package/lib/esm/data-grid/stories/datagrid-single-selectable.story.js +1 -1
  593. package/lib/esm/data-grid/stories/datagrid-single-selectable.story.js.map +1 -1
  594. package/lib/esm/data-grid/stories/datagrid-skeleton-loading.story.js +1 -1
  595. package/lib/esm/data-grid/stories/datagrid-skeleton-loading.story.js.map +1 -1
  596. package/lib/esm/data-grid/stories/datagrid-sortable.story.js +1 -1
  597. package/lib/esm/data-grid/stories/datagrid-sortable.story.js.map +1 -1
  598. package/lib/esm/data-grid/stories/datagrid-using-editable-cells.story.js +2 -2
  599. package/lib/esm/data-grid/stories/datagrid-using-editable-cells.story.js.map +1 -1
  600. package/lib/esm/data-grid/stories/datagrid-virtualization.story.js +3 -3
  601. package/lib/esm/data-grid/stories/datagrid-virtualization.story.js.map +1 -1
  602. package/lib/esm/data-grid/style-rules/guard.js +43 -0
  603. package/lib/esm/data-grid/style-rules/guard.js.map +1 -0
  604. package/lib/esm/data-grid/style-rules/index.js +1 -3
  605. package/lib/esm/data-grid/style-rules/index.js.map +1 -1
  606. package/lib/esm/data-grid/style-rules/internal/schemas.js +210 -0
  607. package/lib/esm/data-grid/style-rules/internal/schemas.js.map +1 -0
  608. package/lib/esm/data-grid/style-rules/types.js +1 -203
  609. package/lib/esm/data-grid/style-rules/types.js.map +1 -1
  610. package/lib/esm/date-picker/DatePicker.js +8 -6
  611. package/lib/esm/date-picker/DatePicker.js.map +1 -1
  612. package/lib/esm/date-picker/stories/date-picker-in-dialog.story.js +1 -1
  613. package/lib/esm/date-picker/stories/date-picker-in-dialog.story.js.map +1 -1
  614. package/lib/esm/date-picker/stories/date-picker-in-popover-dialog.story.js +1 -1
  615. package/lib/esm/date-picker/stories/date-picker-in-popover-dialog.story.js.map +1 -1
  616. package/lib/esm/dialog/Dialog.js +1 -2
  617. package/lib/esm/dialog/Dialog.js.map +1 -1
  618. package/lib/esm/dialog/stories/dialog-danger.story.js +1 -1
  619. package/lib/esm/dialog/stories/dialog-danger.story.js.map +1 -1
  620. package/lib/esm/dialog/stories/dialog-default.story.js +1 -1
  621. package/lib/esm/dialog/stories/dialog-default.story.js.map +1 -1
  622. package/lib/esm/dialog/stories/dialog-image.story.js +1 -1
  623. package/lib/esm/dialog/stories/dialog-image.story.js.map +1 -1
  624. package/lib/esm/dialog/stories/dialog-info.story.js +1 -1
  625. package/lib/esm/dialog/stories/dialog-info.story.js.map +1 -1
  626. package/lib/esm/dialog/stories/dialog-top-aligned.story.js +2 -2
  627. package/lib/esm/dialog/stories/dialog-top-aligned.story.js.map +1 -1
  628. package/lib/esm/dialog/stories/dialog-variants.story.js +1 -1
  629. package/lib/esm/dialog/stories/dialog-variants.story.js.map +1 -1
  630. package/lib/esm/dialog/stories/dialog-warning.story.js +1 -1
  631. package/lib/esm/dialog/stories/dialog-warning.story.js.map +1 -1
  632. package/lib/esm/dismissible-tag/stories/dismissible-tag-colors.story.js +1 -1
  633. package/lib/esm/dismissible-tag/stories/dismissible-tag-colors.story.js.map +1 -1
  634. package/lib/esm/dismissible-tag/stories/dismissible-tag-sizes.story.js +1 -1
  635. package/lib/esm/dismissible-tag/stories/dismissible-tag-sizes.story.js.map +1 -1
  636. package/lib/esm/drawer/Drawer.js +7 -6
  637. package/lib/esm/drawer/Drawer.js.map +1 -1
  638. package/lib/esm/drawer/stories/drawer-full.story.js +2 -2
  639. package/lib/esm/drawer/stories/drawer-full.story.js.map +1 -1
  640. package/lib/esm/drawer/stories/drawer-not-closeable.story.js +2 -2
  641. package/lib/esm/drawer/stories/drawer-not-closeable.story.js.map +1 -1
  642. package/lib/esm/drawer/stories/drawer-overlay.story.js +1 -1
  643. package/lib/esm/drawer/stories/drawer-overlay.story.js.map +1 -1
  644. package/lib/esm/drawer/stories/drawer-portaled.story.js +2 -2
  645. package/lib/esm/drawer/stories/drawer-portaled.story.js.map +1 -1
  646. package/lib/esm/drawer/stories/drawer-push.story.js +2 -2
  647. package/lib/esm/drawer/stories/drawer-push.story.js.map +1 -1
  648. package/lib/esm/drawer/stories/drawer-resizable.story.js +2 -2
  649. package/lib/esm/drawer/stories/drawer-resizable.story.js.map +1 -1
  650. package/lib/esm/drawer/stories/drawer-right-side.story.js +2 -2
  651. package/lib/esm/drawer/stories/drawer-right-side.story.js.map +1 -1
  652. package/lib/esm/drawer/stories/drawer-scrollable.story.js +2 -2
  653. package/lib/esm/drawer/stories/drawer-scrollable.story.js.map +1 -1
  654. package/lib/esm/dropzone/stories/dropzone-full.story.js +3 -3
  655. package/lib/esm/dropzone/stories/dropzone-full.story.js.map +1 -1
  656. package/lib/esm/flex/stories/flex-default.story.js +1 -1
  657. package/lib/esm/flex/stories/flex-default.story.js.map +1 -1
  658. package/lib/esm/graph-label/stories/graph-label-color.story.js +1 -1
  659. package/lib/esm/graph-label/stories/graph-label-color.story.js.map +1 -1
  660. package/lib/esm/graph-label/stories/graph-label-sizes.story.js +1 -1
  661. package/lib/esm/graph-label/stories/graph-label-sizes.story.js.map +1 -1
  662. package/lib/esm/graph-label/stories/graph-label-types.story.js +1 -1
  663. package/lib/esm/graph-label/stories/graph-label-types.story.js.map +1 -1
  664. package/lib/esm/hooks/use-debounce-callback/index.js +6 -6
  665. package/lib/esm/hooks/use-debounce-callback/index.js.map +1 -1
  666. package/lib/esm/icon-button/stories/icon-button-sizes.story.js +1 -1
  667. package/lib/esm/icon-button/stories/icon-button-sizes.story.js.map +1 -1
  668. package/lib/esm/icon-button/stories/icon-button-tone.story.js +1 -1
  669. package/lib/esm/icon-button/stories/icon-button-tone.story.js.map +1 -1
  670. package/lib/esm/icon-button-array/stories/icon-button-array-sizes.story.js +1 -1
  671. package/lib/esm/icon-button-array/stories/icon-button-array-sizes.story.js.map +1 -1
  672. package/lib/esm/icon-button-base/IconButtonBase.js +1 -3
  673. package/lib/esm/icon-button-base/IconButtonBase.js.map +1 -1
  674. package/lib/esm/icons/generated/custom/index.js +0 -7
  675. package/lib/esm/icons/generated/custom/index.js.map +1 -1
  676. package/lib/esm/inline-edit/InlineEdit.js +3 -2
  677. package/lib/esm/inline-edit/InlineEdit.js.map +1 -1
  678. package/lib/esm/kbd/Kbd.js +0 -1
  679. package/lib/esm/kbd/Kbd.js.map +1 -1
  680. package/lib/esm/loading-spinner/stories/loading-spinner-sizes.story.js +1 -1
  681. package/lib/esm/loading-spinner/stories/loading-spinner-sizes.story.js.map +1 -1
  682. package/lib/esm/logo/stories/logo-black.story.js +1 -1
  683. package/lib/esm/logo/stories/logo-black.story.js.map +1 -1
  684. package/lib/esm/logo/stories/logo-default.story.js +1 -1
  685. package/lib/esm/logo/stories/logo-default.story.js.map +1 -1
  686. package/lib/esm/logo/stories/logo-icon.story.js +1 -1
  687. package/lib/esm/logo/stories/logo-icon.story.js.map +1 -1
  688. package/lib/esm/menu/Menu.js +2 -2
  689. package/lib/esm/menu/Menu.js.map +1 -1
  690. package/lib/esm/menu/menu-types.js.map +1 -1
  691. package/lib/esm/menu/stories/menu-custom-items.story.js +1 -1
  692. package/lib/esm/menu/stories/menu-custom-items.story.js.map +1 -1
  693. package/lib/esm/menu/stories/menu-in-dialog.story.js +2 -2
  694. package/lib/esm/menu/stories/menu-in-dialog.story.js.map +1 -1
  695. package/lib/esm/menu/stories/menu-nested.story.js +1 -1
  696. package/lib/esm/menu/stories/menu-nested.story.js.map +1 -1
  697. package/lib/esm/menu/stories/menu-radio-and-normal.story.js +1 -1
  698. package/lib/esm/menu/stories/menu-radio-and-normal.story.js.map +1 -1
  699. package/lib/esm/menu/stories/menu-radio-items.story.js +1 -1
  700. package/lib/esm/menu/stories/menu-radio-items.story.js.map +1 -1
  701. package/lib/esm/menu/stories/menu-with-icon.story.js +1 -1
  702. package/lib/esm/menu/stories/menu-with-icon.story.js.map +1 -1
  703. package/lib/esm/next/tree-view/TreeView.js +3 -3
  704. package/lib/esm/next/tree-view/TreeView.js.map +1 -1
  705. package/lib/esm/next/tree-view/stories/tree-view-large.story.js +1 -1
  706. package/lib/esm/next/tree-view/stories/tree-view-large.story.js.map +1 -1
  707. package/lib/esm/next/tree-view/stories/tree-view-multiple-replace.story.js +1 -1
  708. package/lib/esm/next/tree-view/stories/tree-view-multiple-replace.story.js.map +1 -1
  709. package/lib/esm/next/tree-view/stories/tree-view-root-selection.story.js +1 -1
  710. package/lib/esm/next/tree-view/stories/tree-view-root-selection.story.js.map +1 -1
  711. package/lib/esm/next/tree-view/stories/tree-view-tooltip.story.js +1 -1
  712. package/lib/esm/next/tree-view/stories/tree-view-tooltip.story.js.map +1 -1
  713. package/lib/esm/next/tree-view/stories/tree-view-trailing.story.js +1 -1
  714. package/lib/esm/next/tree-view/stories/tree-view-trailing.story.js.map +1 -1
  715. package/lib/esm/next/tree-view/stories/tree-view-uncontrolled.story.js +1 -1
  716. package/lib/esm/next/tree-view/stories/tree-view-uncontrolled.story.js.map +1 -1
  717. package/lib/esm/popover/Popover.js +6 -6
  718. package/lib/esm/popover/Popover.js.map +1 -1
  719. package/lib/esm/popover/stories/popover-controlled.story.js +1 -1
  720. package/lib/esm/popover/stories/popover-controlled.story.js.map +1 -1
  721. package/lib/esm/popover/stories/popover-custom-offset.story.js +1 -1
  722. package/lib/esm/popover/stories/popover-custom-offset.story.js.map +1 -1
  723. package/lib/esm/popover/stories/popover-default.story.js +1 -1
  724. package/lib/esm/popover/stories/popover-default.story.js.map +1 -1
  725. package/lib/esm/popover/stories/popover-in-dialog.story.js +1 -1
  726. package/lib/esm/popover/stories/popover-in-dialog.story.js.map +1 -1
  727. package/lib/esm/popover/stories/popover-no-button-wrapper.story.js +1 -1
  728. package/lib/esm/popover/stories/popover-no-button-wrapper.story.js.map +1 -1
  729. package/lib/esm/popover/stories/popover-separate-anchor.story.js +1 -1
  730. package/lib/esm/popover/stories/popover-separate-anchor.story.js.map +1 -1
  731. package/lib/esm/popover/use-popover.js +7 -9
  732. package/lib/esm/popover/use-popover.js.map +1 -1
  733. package/lib/esm/progress-bar/stories/progress-bar-sizes.story.js +1 -1
  734. package/lib/esm/progress-bar/stories/progress-bar-sizes.story.js.map +1 -1
  735. package/lib/esm/radio/stories/radio-disabled.story.js +1 -1
  736. package/lib/esm/radio/stories/radio-disabled.story.js.map +1 -1
  737. package/lib/esm/radio/stories/radio-truncated-label.story.js +1 -1
  738. package/lib/esm/radio/stories/radio-truncated-label.story.js.map +1 -1
  739. package/lib/esm/read-only-tag/stories/read-only-tag-colors.story.js +1 -1
  740. package/lib/esm/read-only-tag/stories/read-only-tag-colors.story.js.map +1 -1
  741. package/lib/esm/read-only-tag/stories/read-only-tag-sizes.story.js +1 -1
  742. package/lib/esm/read-only-tag/stories/read-only-tag-sizes.story.js.map +1 -1
  743. package/lib/esm/segmented-control/stories/segmented-control-sizes.story.js +1 -1
  744. package/lib/esm/segmented-control/stories/segmented-control-sizes.story.js.map +1 -1
  745. package/lib/esm/select/stories/select-controlled.story.js +1 -1
  746. package/lib/esm/select/stories/select-controlled.story.js.map +1 -1
  747. package/lib/esm/select/stories/select-custom-label.story.js +1 -1
  748. package/lib/esm/select/stories/select-custom-label.story.js.map +1 -1
  749. package/lib/esm/select/stories/select-inside-dialog.story.js +1 -1
  750. package/lib/esm/select/stories/select-inside-dialog.story.js.map +1 -1
  751. package/lib/esm/select/stories/select-menu-positionings.story.js +1 -1
  752. package/lib/esm/select/stories/select-menu-positionings.story.js.map +1 -1
  753. package/lib/esm/select/stories/select-required.story.js +1 -1
  754. package/lib/esm/select/stories/select-required.story.js.map +1 -1
  755. package/lib/esm/select/stories/select-sizes.story.js +1 -1
  756. package/lib/esm/select/stories/select-sizes.story.js.map +1 -1
  757. package/lib/esm/select-icon-button/stories/select-icon-button-sizes.story.js +1 -1
  758. package/lib/esm/select-icon-button/stories/select-icon-button-sizes.story.js.map +1 -1
  759. package/lib/esm/select-icon-button/stories/select-icon-button-states.story.js +1 -1
  760. package/lib/esm/select-icon-button/stories/select-icon-button-states.story.js.map +1 -1
  761. package/lib/esm/selectable-tag/stories/selectable-tag-disabled.story.js +1 -1
  762. package/lib/esm/selectable-tag/stories/selectable-tag-disabled.story.js.map +1 -1
  763. package/lib/esm/selectable-tag/stories/selectable-tag-sizes.story.js +1 -1
  764. package/lib/esm/selectable-tag/stories/selectable-tag-sizes.story.js.map +1 -1
  765. package/lib/esm/side-navigation/SideNavigation.js.map +1 -1
  766. package/lib/esm/side-navigation/stories/side-nav-badges.story.js +2 -2
  767. package/lib/esm/side-navigation/stories/side-nav-badges.story.js.map +1 -1
  768. package/lib/esm/side-navigation/stories/side-nav-compact.story.js +1 -1
  769. package/lib/esm/side-navigation/stories/side-nav-compact.story.js.map +1 -1
  770. package/lib/esm/side-navigation/stories/side-nav-default.story.js +1 -1
  771. package/lib/esm/side-navigation/stories/side-nav-default.story.js.map +1 -1
  772. package/lib/esm/side-navigation/stories/side-nav-secondary.story.js +1 -1
  773. package/lib/esm/side-navigation/stories/side-nav-secondary.story.js.map +1 -1
  774. package/lib/esm/skeleton/stories/skeleton-circular.story.js +1 -1
  775. package/lib/esm/skeleton/stories/skeleton-circular.story.js.map +1 -1
  776. package/lib/esm/skeleton/stories/skeleton-default.story.js +1 -1
  777. package/lib/esm/skeleton/stories/skeleton-default.story.js.map +1 -1
  778. package/lib/esm/skeleton/stories/skeleton-full-example.story.js +1 -1
  779. package/lib/esm/skeleton/stories/skeleton-full-example.story.js.map +1 -1
  780. package/lib/esm/skeleton/stories/skeleton-inherit-height.story.js +1 -1
  781. package/lib/esm/skeleton/stories/skeleton-inherit-height.story.js.map +1 -1
  782. package/lib/esm/skeleton/stories/skeleton-inherit-width.story.js +1 -1
  783. package/lib/esm/skeleton/stories/skeleton-inherit-width.story.js.map +1 -1
  784. package/lib/esm/slider/Slider.js +3 -3
  785. package/lib/esm/slider/Slider.js.map +1 -1
  786. package/lib/esm/slider/stories/slider-custom-step-length.story.js +1 -1
  787. package/lib/esm/slider/stories/slider-custom-step-length.story.js.map +1 -1
  788. package/lib/esm/slider/stories/slider-range.story.js +1 -1
  789. package/lib/esm/slider/stories/slider-range.story.js.map +1 -1
  790. package/lib/esm/slider/stories/slider-show-steps.story.js +1 -1
  791. package/lib/esm/slider/stories/slider-show-steps.story.js.map +1 -1
  792. package/lib/esm/slider/stories/slider-show-values.story.js +1 -1
  793. package/lib/esm/slider/stories/slider-show-values.story.js.map +1 -1
  794. package/lib/esm/slider/stories/slider-single-controlled.story.js +2 -2
  795. package/lib/esm/slider/stories/slider-single-controlled.story.js.map +1 -1
  796. package/lib/esm/slider/stories/slider-single.story.js +1 -1
  797. package/lib/esm/slider/stories/slider-single.story.js.map +1 -1
  798. package/lib/esm/spotlight/Spotlight.js +3 -3
  799. package/lib/esm/spotlight/Spotlight.js.map +1 -1
  800. package/lib/esm/spotlight/SpotlightTarget.js +3 -3
  801. package/lib/esm/spotlight/SpotlightTarget.js.map +1 -1
  802. package/lib/esm/spotlight/stories/spotlight-fixed-positioning.story.js +1 -1
  803. package/lib/esm/spotlight/stories/spotlight-fixed-positioning.story.js.map +1 -1
  804. package/lib/esm/spotlight/stories/spotlight-in-dialog.story.js +1 -1
  805. package/lib/esm/spotlight/stories/spotlight-in-dialog.story.js.map +1 -1
  806. package/lib/esm/spotlight/stories/spotlight-in-side-nav.story.js +1 -1
  807. package/lib/esm/spotlight/stories/spotlight-in-side-nav.story.js.map +1 -1
  808. package/lib/esm/spotlight/stories/spotlight-on-tabs.story.js +1 -1
  809. package/lib/esm/spotlight/stories/spotlight-on-tabs.story.js.map +1 -1
  810. package/lib/esm/spotlight/stories/spotlight-tour.story.js +1 -1
  811. package/lib/esm/spotlight/stories/spotlight-tour.story.js.map +1 -1
  812. package/lib/esm/spotlight/stories/spotlight-with-icon.story.js +1 -1
  813. package/lib/esm/spotlight/stories/spotlight-with-icon.story.js.map +1 -1
  814. package/lib/esm/spotlight/stories/spotlight-with-image.story.js +1 -1
  815. package/lib/esm/spotlight/stories/spotlight-with-image.story.js.map +1 -1
  816. package/lib/esm/spotlight/stories/spotlight-with-label.story.js +1 -1
  817. package/lib/esm/spotlight/stories/spotlight-with-label.story.js.map +1 -1
  818. package/lib/esm/spotlight/stories/spotlight-with-pointer.story.js +1 -1
  819. package/lib/esm/spotlight/stories/spotlight-with-pointer.story.js.map +1 -1
  820. package/lib/esm/spotlight/use-spotlight.js +5 -5
  821. package/lib/esm/spotlight/use-spotlight.js.map +1 -1
  822. package/lib/esm/status-indicator/stories/status-indicator-variants.story.js +1 -1
  823. package/lib/esm/status-indicator/stories/status-indicator-variants.story.js.map +1 -1
  824. package/lib/esm/status-label/stories/status-label-colors.story.js +1 -1
  825. package/lib/esm/status-label/stories/status-label-colors.story.js.map +1 -1
  826. package/lib/esm/status-label/stories/status-label-fills.story.js +1 -1
  827. package/lib/esm/status-label/stories/status-label-fills.story.js.map +1 -1
  828. package/lib/esm/status-label/stories/status-label-with-icons.story.js +1 -1
  829. package/lib/esm/status-label/stories/status-label-with-icons.story.js.map +1 -1
  830. package/lib/esm/switch/stories/switch-disabled.story.js +1 -1
  831. package/lib/esm/switch/stories/switch-disabled.story.js.map +1 -1
  832. package/lib/esm/tabs/Tabs.js +2 -2
  833. package/lib/esm/tabs/Tabs.js.map +1 -1
  834. package/lib/esm/tabs/stories/tabs-badge.story.js +1 -1
  835. package/lib/esm/tabs/stories/tabs-badge.story.js.map +1 -1
  836. package/lib/esm/tabs/stories/tabs-default.story.js +1 -1
  837. package/lib/esm/tabs/stories/tabs-default.story.js.map +1 -1
  838. package/lib/esm/tabs/stories/tabs-disabled.story.js +1 -1
  839. package/lib/esm/tabs/stories/tabs-disabled.story.js.map +1 -1
  840. package/lib/esm/tabs/stories/tabs-fill-variants.story.js +1 -1
  841. package/lib/esm/tabs/stories/tabs-fill-variants.story.js.map +1 -1
  842. package/lib/esm/tabs/stories/tabs-overflow.story.js +1 -1
  843. package/lib/esm/tabs/stories/tabs-overflow.story.js.map +1 -1
  844. package/lib/esm/tabs/stories/tabs-sizes.story.js +1 -1
  845. package/lib/esm/tabs/stories/tabs-sizes.story.js.map +1 -1
  846. package/lib/esm/tabs/stories/tabs-with-icons.story.js +1 -1
  847. package/lib/esm/tabs/stories/tabs-with-icons.story.js.map +1 -1
  848. package/lib/esm/tag/stories/tag-sizes.story.js +1 -1
  849. package/lib/esm/tag/stories/tag-sizes.story.js.map +1 -1
  850. package/lib/esm/tag/stories/tag-types.story.js +1 -1
  851. package/lib/esm/tag/stories/tag-types.story.js.map +1 -1
  852. package/lib/esm/tag-base/stories/tag-variants.story.js +1 -1
  853. package/lib/esm/tag-base/stories/tag-variants.story.js.map +1 -1
  854. package/lib/esm/text-area/stories/text-area-sizes.story.js +1 -1
  855. package/lib/esm/text-area/stories/text-area-sizes.story.js.map +1 -1
  856. package/lib/esm/text-input/TextInput.js.map +1 -1
  857. package/lib/esm/text-input/stories/text-input-loading-spinner.story.js +1 -1
  858. package/lib/esm/text-input/stories/text-input-loading-spinner.story.js.map +1 -1
  859. package/lib/esm/text-input/stories/text-input-optional.story.js +1 -1
  860. package/lib/esm/text-input/stories/text-input-optional.story.js.map +1 -1
  861. package/lib/esm/text-input/stories/text-input-sizes.story.js +1 -1
  862. package/lib/esm/text-input/stories/text-input-sizes.story.js.map +1 -1
  863. package/lib/esm/text-link/TextLink.js +2 -6
  864. package/lib/esm/text-link/TextLink.js.map +1 -1
  865. package/lib/esm/text-link/stories/index.js +3 -12
  866. package/lib/esm/text-link/stories/index.js.map +1 -1
  867. package/lib/esm/text-link/stories/text-link-external.story.js +3 -3
  868. package/lib/esm/text-link/stories/text-link-external.story.js.map +1 -1
  869. package/lib/esm/text-link/stories/{text-link-internal-underline.story.js → text-link-internal.story.js} +2 -2
  870. package/lib/esm/text-link/stories/text-link-internal.story.js.map +1 -0
  871. package/lib/esm/time-picker/stories/time-picker-in-popover-dialog.story.js +1 -1
  872. package/lib/esm/time-picker/stories/time-picker-in-popover-dialog.story.js.map +1 -1
  873. package/lib/esm/timezone-picker/stories/timezone-picker-in-dialog.story.js +1 -1
  874. package/lib/esm/timezone-picker/stories/timezone-picker-in-dialog.story.js.map +1 -1
  875. package/lib/esm/timezone-picker/stories/timezone-picker-in-popover-dialog.story.js +1 -1
  876. package/lib/esm/timezone-picker/stories/timezone-picker-in-popover-dialog.story.js.map +1 -1
  877. package/lib/esm/toast/stories/toast-action-story.js +1 -1
  878. package/lib/esm/toast/stories/toast-action-story.js.map +1 -1
  879. package/lib/esm/toast/stories/toast-closeable-story.js +1 -1
  880. package/lib/esm/toast/stories/toast-closeable-story.js.map +1 -1
  881. package/lib/esm/toast/stories/toast-controlled-story.js +1 -1
  882. package/lib/esm/toast/stories/toast-controlled-story.js.map +1 -1
  883. package/lib/esm/toast/stories/toast-custom-story.js +1 -1
  884. package/lib/esm/toast/stories/toast-custom-story.js.map +1 -1
  885. package/lib/esm/toast/stories/toast-danger-story.js +1 -1
  886. package/lib/esm/toast/stories/toast-danger-story.js.map +1 -1
  887. package/lib/esm/toast/stories/toast-neutral-story.js +1 -1
  888. package/lib/esm/toast/stories/toast-neutral-story.js.map +1 -1
  889. package/lib/esm/toast/stories/toast-progress-bar.js +1 -1
  890. package/lib/esm/toast/stories/toast-progress-bar.js.map +1 -1
  891. package/lib/esm/toast/stories/toast-success-story.js +1 -1
  892. package/lib/esm/toast/stories/toast-success-story.js.map +1 -1
  893. package/lib/esm/tooltip/Tooltip.js.map +1 -1
  894. package/lib/esm/tooltip/stories/tooltip-in-dialog.story.js +1 -1
  895. package/lib/esm/tooltip/stories/tooltip-in-dialog.story.js.map +1 -1
  896. package/lib/esm/tooltip/stories/tooltip-placements.story.js +1 -1
  897. package/lib/esm/tooltip/stories/tooltip-placements.story.js.map +1 -1
  898. package/lib/esm/tooltip/use-tooltip.js.map +1 -1
  899. package/lib/esm/tree-view/TreeView.js +3 -0
  900. package/lib/esm/tree-view/TreeView.js.map +1 -1
  901. package/lib/esm/tree-view/TreeViewItem.js.map +1 -1
  902. package/lib/esm/tree-view/stories/treeview-custom.story.js +2 -2
  903. package/lib/esm/tree-view/stories/treeview-custom.story.js.map +1 -1
  904. package/lib/esm/tree-view/tree-view-utils.js.map +1 -1
  905. package/lib/esm/typography/Typography.js +7 -1
  906. package/lib/esm/typography/Typography.js.map +1 -1
  907. package/lib/types/_generated/style-rules/index.d.ts +2 -2
  908. package/lib/types/_generated/style-rules/index.d.ts.map +1 -1
  909. package/lib/{cjs/text-link/stories/text-link-default.story.js → types/_generated/style-rules/literal-guards.d.ts} +8 -10
  910. package/lib/types/_generated/style-rules/literal-guards.d.ts.map +1 -0
  911. package/lib/types/_generated/style-rules/literal-schemas.d.ts +0 -12
  912. package/lib/types/_generated/style-rules/literal-schemas.d.ts.map +1 -1
  913. package/lib/types/_generated/style-rules/literal-types.d.ts +80 -0
  914. package/lib/types/_generated/style-rules/literal-types.d.ts.map +1 -0
  915. package/lib/types/_generated/style-rules/numeric-utils.d.ts +1 -1
  916. package/lib/types/_generated/style-rules/numeric-utils.d.ts.map +1 -1
  917. package/lib/types/_generated/style-rules/range-utils.d.ts +1 -1
  918. package/lib/types/_generated/style-rules/range-utils.d.ts.map +1 -1
  919. package/lib/types/ai/reasoning/Reasoning.d.ts +1 -10
  920. package/lib/types/ai/reasoning/Reasoning.d.ts.map +1 -1
  921. package/lib/types/ai/reasoning/stories/reasoning-full.story.d.ts.map +1 -1
  922. package/lib/types/button/ButtonBase.d.ts.map +1 -1
  923. package/lib/types/code-block/CodeBlock.d.ts +2 -2
  924. package/lib/types/code-block/CodeBlock.d.ts.map +1 -1
  925. package/lib/types/color-picker/ColorPicker.d.ts.map +1 -1
  926. package/lib/types/data-grid/style-rules/guard.d.ts +43 -0
  927. package/lib/types/data-grid/style-rules/guard.d.ts.map +1 -0
  928. package/lib/types/data-grid/style-rules/index.d.ts +1 -2
  929. package/lib/types/data-grid/style-rules/index.d.ts.map +1 -1
  930. package/lib/types/data-grid/style-rules/internal/schemas.d.ts +321 -0
  931. package/lib/types/data-grid/style-rules/internal/schemas.d.ts.map +1 -0
  932. package/lib/types/data-grid/style-rules/types.d.ts +60 -284
  933. package/lib/types/data-grid/style-rules/types.d.ts.map +1 -1
  934. package/lib/types/date-picker/DatePicker.d.ts.map +1 -1
  935. package/lib/types/dialog/Dialog.d.ts.map +1 -1
  936. package/lib/types/drawer/Drawer.d.ts +7 -13
  937. package/lib/types/drawer/Drawer.d.ts.map +1 -1
  938. package/lib/types/drawer/stories/drawer-overlay.story.d.ts.map +1 -1
  939. package/lib/types/dropzone/stories/dropzone-full.story.d.ts.map +1 -1
  940. package/lib/types/hooks/use-debounce-callback/index.d.ts +2 -2
  941. package/lib/types/hooks/use-debounce-callback/index.d.ts.map +1 -1
  942. package/lib/types/icon-button-base/IconButtonBase.d.ts.map +1 -1
  943. package/lib/types/icons/generated/custom/index.d.ts +0 -7
  944. package/lib/types/icons/generated/custom/index.d.ts.map +1 -1
  945. package/lib/types/inline-edit/InlineEdit.d.ts +6 -1
  946. package/lib/types/inline-edit/InlineEdit.d.ts.map +1 -1
  947. package/lib/types/kbd/Kbd.d.ts +1 -1
  948. package/lib/types/kbd/Kbd.d.ts.map +1 -1
  949. package/lib/types/menu/Menu.d.ts +1 -1
  950. package/lib/types/menu/Menu.d.ts.map +1 -1
  951. package/lib/types/menu/menu-types.d.ts +2 -2
  952. package/lib/types/menu/menu-types.d.ts.map +1 -1
  953. package/lib/types/next/tree-view/TreeView.d.ts +2 -2
  954. package/lib/types/next/tree-view/TreeView.d.ts.map +1 -1
  955. package/lib/types/popover/Popover.d.ts +15 -12
  956. package/lib/types/popover/Popover.d.ts.map +1 -1
  957. package/lib/types/popover/stories/popover-controlled.story.d.ts.map +1 -1
  958. package/lib/types/popover/stories/popover-default.story.d.ts.map +1 -1
  959. package/lib/types/popover/stories/popover-no-button-wrapper.story.d.ts.map +1 -1
  960. package/lib/types/popover/use-popover.d.ts +14 -9
  961. package/lib/types/popover/use-popover.d.ts.map +1 -1
  962. package/lib/types/side-navigation/SideNavigation.d.ts.map +1 -1
  963. package/lib/types/slider/Slider.d.ts +3 -3
  964. package/lib/types/slider/Slider.d.ts.map +1 -1
  965. package/lib/types/spotlight/Spotlight.d.ts +2 -2
  966. package/lib/types/spotlight/Spotlight.d.ts.map +1 -1
  967. package/lib/types/spotlight/SpotlightTarget.d.ts +3 -3
  968. package/lib/types/spotlight/SpotlightTarget.d.ts.map +1 -1
  969. package/lib/types/spotlight/stories/spotlight-tour.story.d.ts.map +1 -1
  970. package/lib/types/spotlight/stories/spotlight-with-image.story.d.ts.map +1 -1
  971. package/lib/types/spotlight/use-spotlight.d.ts +4 -4
  972. package/lib/types/spotlight/use-spotlight.d.ts.map +1 -1
  973. package/lib/types/tabs/Tabs.d.ts +3 -1
  974. package/lib/types/tabs/Tabs.d.ts.map +1 -1
  975. package/lib/types/text-link/TextLink.d.ts +2 -13
  976. package/lib/types/text-link/TextLink.d.ts.map +1 -1
  977. package/lib/types/text-link/stories/index.d.ts +2 -8
  978. package/lib/types/text-link/stories/index.d.ts.map +1 -1
  979. package/lib/types/text-link/stories/text-link-external.story.d.ts.map +1 -1
  980. package/lib/types/{text-overflow/stories/character-limit.story.d.ts → text-link/stories/text-link-internal.story.d.ts} +1 -1
  981. package/lib/types/text-link/stories/text-link-internal.story.d.ts.map +1 -0
  982. package/lib/types/tooltip/Tooltip.d.ts +0 -1
  983. package/lib/types/tooltip/Tooltip.d.ts.map +1 -1
  984. package/lib/types/tooltip/use-tooltip.d.ts.map +1 -1
  985. package/lib/types/tree-view/TreeView.d.ts +3 -0
  986. package/lib/types/tree-view/TreeView.d.ts.map +1 -1
  987. package/lib/types/tree-view/TreeViewItem.d.ts.map +1 -1
  988. package/lib/types/tree-view/tree-view-utils.d.ts.map +1 -1
  989. package/lib/types/typography/Typography.d.ts +6 -0
  990. package/lib/types/typography/Typography.d.ts.map +1 -1
  991. package/package.json +6 -4
  992. package/skills/ndl-react/SKILL.md +22 -20
  993. package/skills/ndl-react/components/ai/presence.md +3 -3
  994. package/skills/ndl-react/components/ai/reasoning.md +2 -6
  995. package/skills/ndl-react/components/ai/response.md +17 -17
  996. package/skills/ndl-react/components/ai/suggestion.md +1 -1
  997. package/skills/ndl-react/components/ai/user-bubble.md +2 -2
  998. package/skills/ndl-react/components/announcement-banner.md +10 -10
  999. package/skills/ndl-react/components/avatar.md +5 -5
  1000. package/skills/ndl-react/components/banner.md +2 -2
  1001. package/skills/ndl-react/components/breadcrumbs.md +3 -3
  1002. package/skills/ndl-react/components/checkbox.md +5 -5
  1003. package/skills/ndl-react/components/clean-icon-button.md +9 -103
  1004. package/skills/ndl-react/components/clipboard-button.md +1 -1
  1005. package/skills/ndl-react/components/code-block.md +8 -9
  1006. package/skills/ndl-react/components/color-picker.md +3 -3
  1007. package/skills/ndl-react/components/combobox.md +20 -20
  1008. package/skills/ndl-react/components/conditional-wrap.md +1 -1
  1009. package/skills/ndl-react/components/data-grid.md +28 -28
  1010. package/skills/ndl-react/components/date-picker.md +3 -3
  1011. package/skills/ndl-react/components/dialog.md +9 -9
  1012. package/skills/ndl-react/components/dismissible-tag.md +2 -2
  1013. package/skills/ndl-react/components/drawer.md +39 -37
  1014. package/skills/ndl-react/components/dropzone.md +10 -13
  1015. package/skills/ndl-react/components/flex.md +1 -1
  1016. package/skills/ndl-react/components/graph-label.md +3 -3
  1017. package/skills/ndl-react/components/icon-button-array.md +1 -1
  1018. package/skills/ndl-react/components/icon-button.md +7 -7
  1019. package/skills/ndl-react/components/inline-edit.md +4 -1
  1020. package/skills/ndl-react/components/loading-spinner.md +1 -1
  1021. package/skills/ndl-react/components/logo.md +3 -3
  1022. package/skills/ndl-react/components/menu.md +14 -14
  1023. package/skills/ndl-react/components/next/tree-view.md +18 -18
  1024. package/skills/ndl-react/components/popover.md +15 -21
  1025. package/skills/ndl-react/components/progress-bar.md +1 -1
  1026. package/skills/ndl-react/components/radio.md +2 -2
  1027. package/skills/ndl-react/components/read-only-tag.md +2 -2
  1028. package/skills/ndl-react/components/segmented-control.md +1 -1
  1029. package/skills/ndl-react/components/select-icon-button.md +8 -8
  1030. package/skills/ndl-react/components/select.md +8 -8
  1031. package/skills/ndl-react/components/selectable-tag.md +2 -2
  1032. package/skills/ndl-react/components/side-navigation.md +19 -19
  1033. package/skills/ndl-react/components/skeleton.md +13 -13
  1034. package/skills/ndl-react/components/slider.md +13 -13
  1035. package/skills/ndl-react/components/spotlight.md +43 -27
  1036. package/skills/ndl-react/components/status-indicator.md +6 -6
  1037. package/skills/ndl-react/components/status-label.md +3 -3
  1038. package/skills/ndl-react/components/switch.md +1 -1
  1039. package/skills/ndl-react/components/tabs.md +21 -20
  1040. package/skills/ndl-react/components/tag.md +2 -2
  1041. package/skills/ndl-react/components/text-area.md +1 -1
  1042. package/skills/ndl-react/components/text-input.md +3 -3
  1043. package/skills/ndl-react/components/text-link.md +12 -63
  1044. package/skills/ndl-react/components/time-picker.md +2 -2
  1045. package/skills/ndl-react/components/timezone-picker.md +4 -4
  1046. package/skills/ndl-react/components/tooltip.md +3 -3
  1047. package/skills/ndl-react/components/tree-view.md +6 -4
  1048. package/skills/ndl-react/components/typography.md +4 -0
  1049. package/skills/ndl-react/references/styling.md +56 -48
  1050. package/lib/cjs/icons/generated/custom/AddNode.js +0 -31
  1051. package/lib/cjs/icons/generated/custom/AddNode.js.map +0 -1
  1052. package/lib/cjs/icons/generated/custom/PanelBottom.js +0 -31
  1053. package/lib/cjs/icons/generated/custom/PanelBottom.js.map +0 -1
  1054. package/lib/cjs/icons/generated/custom/PanelLeft.js +0 -31
  1055. package/lib/cjs/icons/generated/custom/PanelLeft.js.map +0 -1
  1056. package/lib/cjs/icons/generated/custom/PanelLeftCollapsed.js +0 -31
  1057. package/lib/cjs/icons/generated/custom/PanelLeftCollapsed.js.map +0 -1
  1058. package/lib/cjs/icons/generated/custom/PanelLeftExpanded.js +0 -31
  1059. package/lib/cjs/icons/generated/custom/PanelLeftExpanded.js.map +0 -1
  1060. package/lib/cjs/icons/generated/custom/PanelRight.js +0 -31
  1061. package/lib/cjs/icons/generated/custom/PanelRight.js.map +0 -1
  1062. package/lib/cjs/icons/generated/custom/ThreePanel.js +0 -31
  1063. package/lib/cjs/icons/generated/custom/ThreePanel.js.map +0 -1
  1064. package/lib/cjs/text-link/stories/text-link-default.story.js.map +0 -1
  1065. package/lib/cjs/text-link/stories/text-link-external-underline.story.js +0 -30
  1066. package/lib/cjs/text-link/stories/text-link-external-underline.story.js.map +0 -1
  1067. package/lib/cjs/text-link/stories/text-link-internal-icon.story.js +0 -30
  1068. package/lib/cjs/text-link/stories/text-link-internal-icon.story.js.map +0 -1
  1069. package/lib/cjs/text-link/stories/text-link-internal-underline.story.js.map +0 -1
  1070. package/lib/cjs/text-overflow/TextOverflow.js +0 -146
  1071. package/lib/cjs/text-overflow/TextOverflow.js.map +0 -1
  1072. package/lib/cjs/text-overflow/constants.js +0 -44
  1073. package/lib/cjs/text-overflow/constants.js.map +0 -1
  1074. package/lib/cjs/text-overflow/index.js.map +0 -1
  1075. package/lib/cjs/text-overflow/stories/character-limit.story.js +0 -32
  1076. package/lib/cjs/text-overflow/stories/character-limit.story.js.map +0 -1
  1077. package/lib/cjs/text-overflow/stories/expand-collapse-buttons.story.js +0 -32
  1078. package/lib/cjs/text-overflow/stories/expand-collapse-buttons.story.js.map +0 -1
  1079. package/lib/cjs/text-overflow/stories/index.js +0 -48
  1080. package/lib/cjs/text-overflow/stories/index.js.map +0 -1
  1081. package/lib/cjs/text-overflow/stories/line-clamp.story.js +0 -32
  1082. package/lib/cjs/text-overflow/stories/line-clamp.story.js.map +0 -1
  1083. package/lib/cjs/text-overflow/stories/mixed-content.story.js +0 -31
  1084. package/lib/cjs/text-overflow/stories/mixed-content.story.js.map +0 -1
  1085. package/lib/cjs/text-overflow/stories/width-based-truncation.story.js +0 -32
  1086. package/lib/cjs/text-overflow/stories/width-based-truncation.story.js.map +0 -1
  1087. package/lib/cjs/text-overflow/text-overflow-utils.js +0 -167
  1088. package/lib/cjs/text-overflow/text-overflow-utils.js.map +0 -1
  1089. package/lib/cjs/text-overflow/use-ellipsis-observer.js +0 -66
  1090. package/lib/cjs/text-overflow/use-ellipsis-observer.js.map +0 -1
  1091. package/lib/cjs/text-overflow/use-truncate-with-button.js +0 -205
  1092. package/lib/cjs/text-overflow/use-truncate-with-button.js.map +0 -1
  1093. package/lib/esm/icons/generated/custom/AddNode.js +0 -29
  1094. package/lib/esm/icons/generated/custom/AddNode.js.map +0 -1
  1095. package/lib/esm/icons/generated/custom/PanelBottom.js +0 -29
  1096. package/lib/esm/icons/generated/custom/PanelBottom.js.map +0 -1
  1097. package/lib/esm/icons/generated/custom/PanelLeft.js +0 -29
  1098. package/lib/esm/icons/generated/custom/PanelLeft.js.map +0 -1
  1099. package/lib/esm/icons/generated/custom/PanelLeftCollapsed.js +0 -29
  1100. package/lib/esm/icons/generated/custom/PanelLeftCollapsed.js.map +0 -1
  1101. package/lib/esm/icons/generated/custom/PanelLeftExpanded.js +0 -29
  1102. package/lib/esm/icons/generated/custom/PanelLeftExpanded.js.map +0 -1
  1103. package/lib/esm/icons/generated/custom/PanelRight.js +0 -29
  1104. package/lib/esm/icons/generated/custom/PanelRight.js.map +0 -1
  1105. package/lib/esm/icons/generated/custom/ThreePanel.js +0 -29
  1106. package/lib/esm/icons/generated/custom/ThreePanel.js.map +0 -1
  1107. package/lib/esm/text-link/stories/text-link-default.story.js +0 -28
  1108. package/lib/esm/text-link/stories/text-link-default.story.js.map +0 -1
  1109. package/lib/esm/text-link/stories/text-link-external-underline.story.js +0 -28
  1110. package/lib/esm/text-link/stories/text-link-external-underline.story.js.map +0 -1
  1111. package/lib/esm/text-link/stories/text-link-internal-icon.story.js +0 -28
  1112. package/lib/esm/text-link/stories/text-link-internal-icon.story.js.map +0 -1
  1113. package/lib/esm/text-link/stories/text-link-internal-underline.story.js.map +0 -1
  1114. package/lib/esm/text-overflow/TextOverflow.js +0 -139
  1115. package/lib/esm/text-overflow/TextOverflow.js.map +0 -1
  1116. package/lib/esm/text-overflow/constants.js +0 -41
  1117. package/lib/esm/text-overflow/constants.js.map +0 -1
  1118. package/lib/esm/text-overflow/index.js.map +0 -1
  1119. package/lib/esm/text-overflow/stories/character-limit.story.js +0 -30
  1120. package/lib/esm/text-overflow/stories/character-limit.story.js.map +0 -1
  1121. package/lib/esm/text-overflow/stories/expand-collapse-buttons.story.js +0 -30
  1122. package/lib/esm/text-overflow/stories/expand-collapse-buttons.story.js.map +0 -1
  1123. package/lib/esm/text-overflow/stories/index.js +0 -37
  1124. package/lib/esm/text-overflow/stories/index.js.map +0 -1
  1125. package/lib/esm/text-overflow/stories/line-clamp.story.js +0 -30
  1126. package/lib/esm/text-overflow/stories/line-clamp.story.js.map +0 -1
  1127. package/lib/esm/text-overflow/stories/mixed-content.story.js +0 -29
  1128. package/lib/esm/text-overflow/stories/mixed-content.story.js.map +0 -1
  1129. package/lib/esm/text-overflow/stories/width-based-truncation.story.js +0 -30
  1130. package/lib/esm/text-overflow/stories/width-based-truncation.story.js.map +0 -1
  1131. package/lib/esm/text-overflow/text-overflow-utils.js +0 -159
  1132. package/lib/esm/text-overflow/text-overflow-utils.js.map +0 -1
  1133. package/lib/esm/text-overflow/use-ellipsis-observer.js +0 -63
  1134. package/lib/esm/text-overflow/use-ellipsis-observer.js.map +0 -1
  1135. package/lib/esm/text-overflow/use-truncate-with-button.js +0 -202
  1136. package/lib/esm/text-overflow/use-truncate-with-button.js.map +0 -1
  1137. package/lib/types/icons/generated/custom/AddNode.d.ts +0 -30
  1138. package/lib/types/icons/generated/custom/AddNode.d.ts.map +0 -1
  1139. package/lib/types/icons/generated/custom/PanelBottom.d.ts +0 -30
  1140. package/lib/types/icons/generated/custom/PanelBottom.d.ts.map +0 -1
  1141. package/lib/types/icons/generated/custom/PanelLeft.d.ts +0 -30
  1142. package/lib/types/icons/generated/custom/PanelLeft.d.ts.map +0 -1
  1143. package/lib/types/icons/generated/custom/PanelLeftCollapsed.d.ts +0 -30
  1144. package/lib/types/icons/generated/custom/PanelLeftCollapsed.d.ts.map +0 -1
  1145. package/lib/types/icons/generated/custom/PanelLeftExpanded.d.ts +0 -30
  1146. package/lib/types/icons/generated/custom/PanelLeftExpanded.d.ts.map +0 -1
  1147. package/lib/types/icons/generated/custom/PanelRight.d.ts +0 -30
  1148. package/lib/types/icons/generated/custom/PanelRight.d.ts.map +0 -1
  1149. package/lib/types/icons/generated/custom/ThreePanel.d.ts +0 -30
  1150. package/lib/types/icons/generated/custom/ThreePanel.d.ts.map +0 -1
  1151. package/lib/types/text-link/stories/text-link-default.story.d.ts +0 -24
  1152. package/lib/types/text-link/stories/text-link-default.story.d.ts.map +0 -1
  1153. package/lib/types/text-link/stories/text-link-external-underline.story.d.ts +0 -24
  1154. package/lib/types/text-link/stories/text-link-external-underline.story.d.ts.map +0 -1
  1155. package/lib/types/text-link/stories/text-link-internal-icon.story.d.ts +0 -24
  1156. package/lib/types/text-link/stories/text-link-internal-icon.story.d.ts.map +0 -1
  1157. package/lib/types/text-link/stories/text-link-internal-underline.story.d.ts +0 -24
  1158. package/lib/types/text-link/stories/text-link-internal-underline.story.d.ts.map +0 -1
  1159. package/lib/types/text-overflow/TextOverflow.d.ts +0 -63
  1160. package/lib/types/text-overflow/TextOverflow.d.ts.map +0 -1
  1161. package/lib/types/text-overflow/constants.d.ts +0 -41
  1162. package/lib/types/text-overflow/constants.d.ts.map +0 -1
  1163. package/lib/types/text-overflow/index.d.ts +0 -22
  1164. package/lib/types/text-overflow/index.d.ts.map +0 -1
  1165. package/lib/types/text-overflow/stories/character-limit.story.d.ts.map +0 -1
  1166. package/lib/types/text-overflow/stories/expand-collapse-buttons.story.d.ts +0 -24
  1167. package/lib/types/text-overflow/stories/expand-collapse-buttons.story.d.ts.map +0 -1
  1168. package/lib/types/text-overflow/stories/index.d.ts +0 -31
  1169. package/lib/types/text-overflow/stories/index.d.ts.map +0 -1
  1170. package/lib/types/text-overflow/stories/line-clamp.story.d.ts +0 -24
  1171. package/lib/types/text-overflow/stories/line-clamp.story.d.ts.map +0 -1
  1172. package/lib/types/text-overflow/stories/mixed-content.story.d.ts +0 -24
  1173. package/lib/types/text-overflow/stories/mixed-content.story.d.ts.map +0 -1
  1174. package/lib/types/text-overflow/stories/width-based-truncation.story.d.ts +0 -24
  1175. package/lib/types/text-overflow/stories/width-based-truncation.story.d.ts.map +0 -1
  1176. package/lib/types/text-overflow/text-overflow-utils.d.ts +0 -35
  1177. package/lib/types/text-overflow/text-overflow-utils.d.ts.map +0 -1
  1178. package/lib/types/text-overflow/use-ellipsis-observer.d.ts +0 -28
  1179. package/lib/types/text-overflow/use-ellipsis-observer.d.ts.map +0 -1
  1180. package/lib/types/text-overflow/use-truncate-with-button.d.ts +0 -45
  1181. package/lib/types/text-overflow/use-truncate-with-button.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"tree-view-multiple-replace.story.js","sourceRoot":"","sources":["../../../../../src/next/tree-view/stories/tree-view-multiple-replace.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,kDAIgC;AAChC,gDAAiD;AACjD,iCAAiC;AAEjC;;;;GAIG;AACH,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAW,EAAE,CAAC,CAAC;IAE7D,OAAO,CACL,wBAAC,eAAQ,IACP,SAAS,EAAC,eAAe,EACzB,aAAa,EAAC,kBAAkB,EAChC,WAAW,EAAE,WAAW,EACxB,mBAAmB,EAAE,cAAc,aAEnC,wBAAC,eAAQ,CAAC,IAAI,IACZ,EAAE,EAAC,WAAW,EACd,KAAK,EAAC,WAAW,EACjB,WAAW,QACX,eAAe,QACf,aAAa,EAAE,uBAAC,uBAAe,KAAG,aAElC,wBAAC,eAAQ,CAAC,IAAI,IACZ,EAAE,EAAC,MAAM,EACT,KAAK,EAAC,MAAM,EACZ,WAAW,QACX,eAAe,QACf,aAAa,EAAE,uBAAC,uBAAe,KAAG,aAElC,uBAAC,eAAQ,CAAC,IAAI,IACZ,EAAE,EAAC,QAAQ,EACX,KAAK,EAAC,YAAY,EAClB,UAAU,QACV,aAAa,EAAE,uBAAC,2BAAmB,KAAG,GACtC,EACF,uBAAC,eAAQ,CAAC,IAAI,IACZ,EAAE,EAAC,cAAc,EACjB,KAAK,EAAC,mBAAmB,EACzB,aAAa,EAAE,uBAAC,2BAAmB,KAAG,GACtC,IACY,EAChB,uBAAC,eAAQ,CAAC,IAAI,IACZ,EAAE,EAAC,QAAQ,EACX,KAAK,EAAC,YAAY,EAClB,aAAa,EAAE,uBAAC,2BAAmB,KAAG,GACtC,IACY,EAChB,wBAAC,eAAQ,CAAC,IAAI,IACZ,EAAE,EAAC,QAAQ,EACX,KAAK,EAAC,QAAQ,EACd,WAAW,QACX,aAAa,EAAE,uBAAC,uBAAe,KAAG,aAElC,uBAAC,eAAQ,CAAC,IAAI,IACZ,EAAE,EAAC,OAAO,EACV,KAAK,EAAC,WAAW,EACjB,aAAa,EAAE,uBAAC,wBAAgB,KAAG,GACnC,EACF,uBAAC,eAAQ,CAAC,IAAI,IACZ,EAAE,EAAC,YAAY,EACf,KAAK,EAAC,gBAAgB,EACtB,aAAa,EAAE,uBAAC,wBAAgB,KAAG,GACnC,IACY,IACP,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport {\n DocumentIconOutline,\n FolderIconSolid,\n PhotoIconOutline,\n} from '@neo4j-ndl/react/icons';\nimport { TreeView } from '@neo4j-ndl/react/next';\nimport { useState } from 'react';\n\n/**\n * Letting the tree own the selection keeps the items declarative: they carry an\n * `id` and nothing else, and a Shift range that moves several rows at once\n * arrives as a single `onSelectedIdsChange`.\n */\nconst Component = () => {\n const [selectedIds, setSelectedIds] = useState<string[]>([]);\n\n return (\n <TreeView\n ariaLabel=\"File explorer\"\n selectionMode=\"multiple-replace\"\n selectedIds={selectedIds}\n onSelectedIdsChange={setSelectedIds}\n >\n <TreeView.Item\n id=\"documents\"\n title=\"Documents\"\n hasChildren\n defaultExpanded\n leadingVisual={<FolderIconSolid />}\n >\n <TreeView.Item\n id=\"work\"\n title=\"Work\"\n hasChildren\n defaultExpanded\n leadingVisual={<FolderIconSolid />}\n >\n <TreeView.Item\n id=\"report\"\n title=\"Report.pdf\"\n isDisabled\n leadingVisual={<DocumentIconOutline />}\n />\n <TreeView.Item\n id=\"presentation\"\n title=\"Presentation.pptx\"\n leadingVisual={<DocumentIconOutline />}\n />\n </TreeView.Item>\n <TreeView.Item\n id=\"resume\"\n title=\"Resume.pdf\"\n leadingVisual={<DocumentIconOutline />}\n />\n </TreeView.Item>\n <TreeView.Item\n id=\"images\"\n title=\"Images\"\n hasChildren\n leadingVisual={<FolderIconSolid />}\n >\n <TreeView.Item\n id=\"photo\"\n title=\"Photo.jpg\"\n leadingVisual={<PhotoIconOutline />}\n />\n <TreeView.Item\n id=\"screenshot\"\n title=\"Screenshot.png\"\n leadingVisual={<PhotoIconOutline />}\n />\n </TreeView.Item>\n </TreeView>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"tree-view-multiple-replace.story.js","sourceRoot":"","sources":["../../../../../src/next/tree-view/stories/tree-view-multiple-replace.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,kDAIgC;AAChC,gDAAiD;AACjD,iCAAiC;AAEjC;;;;GAIG;AACH,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAW,EAAE,CAAC,CAAC;IAE7D,OAAO,CACL,wBAAC,eAAQ,IACP,SAAS,EAAC,eAAe,EACzB,aAAa,EAAC,kBAAkB,EAChC,WAAW,EAAE,WAAW,EACxB,mBAAmB,EAAE,cAAc,aAEnC,wBAAC,eAAQ,CAAC,IAAI,IACZ,EAAE,EAAC,WAAW,EACd,KAAK,EAAC,WAAW,EACjB,WAAW,QACX,iBAAiB,QACjB,aAAa,EAAE,uBAAC,uBAAe,KAAG,aAElC,wBAAC,eAAQ,CAAC,IAAI,IACZ,EAAE,EAAC,MAAM,EACT,KAAK,EAAC,MAAM,EACZ,WAAW,QACX,iBAAiB,QACjB,aAAa,EAAE,uBAAC,uBAAe,KAAG,aAElC,uBAAC,eAAQ,CAAC,IAAI,IACZ,EAAE,EAAC,QAAQ,EACX,KAAK,EAAC,YAAY,EAClB,UAAU,QACV,aAAa,EAAE,uBAAC,2BAAmB,KAAG,GACtC,EACF,uBAAC,eAAQ,CAAC,IAAI,IACZ,EAAE,EAAC,cAAc,EACjB,KAAK,EAAC,mBAAmB,EACzB,aAAa,EAAE,uBAAC,2BAAmB,KAAG,GACtC,IACY,EAChB,uBAAC,eAAQ,CAAC,IAAI,IACZ,EAAE,EAAC,QAAQ,EACX,KAAK,EAAC,YAAY,EAClB,aAAa,EAAE,uBAAC,2BAAmB,KAAG,GACtC,IACY,EAChB,wBAAC,eAAQ,CAAC,IAAI,IACZ,EAAE,EAAC,QAAQ,EACX,KAAK,EAAC,QAAQ,EACd,WAAW,QACX,aAAa,EAAE,uBAAC,uBAAe,KAAG,aAElC,uBAAC,eAAQ,CAAC,IAAI,IACZ,EAAE,EAAC,OAAO,EACV,KAAK,EAAC,WAAW,EACjB,aAAa,EAAE,uBAAC,wBAAgB,KAAG,GACnC,EACF,uBAAC,eAAQ,CAAC,IAAI,IACZ,EAAE,EAAC,YAAY,EACf,KAAK,EAAC,gBAAgB,EACtB,aAAa,EAAE,uBAAC,wBAAgB,KAAG,GACnC,IACY,IACP,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport {\n DocumentIconOutline,\n FolderIconSolid,\n PhotoIconOutline,\n} from '@neo4j-ndl/react/icons';\nimport { TreeView } from '@neo4j-ndl/react/next';\nimport { useState } from 'react';\n\n/**\n * Letting the tree own the selection keeps the items declarative: they carry an\n * `id` and nothing else, and a Shift range that moves several rows at once\n * arrives as a single `onSelectedIdsChange`.\n */\nconst Component = () => {\n const [selectedIds, setSelectedIds] = useState<string[]>([]);\n\n return (\n <TreeView\n ariaLabel=\"File explorer\"\n selectionMode=\"multiple-replace\"\n selectedIds={selectedIds}\n onSelectedIdsChange={setSelectedIds}\n >\n <TreeView.Item\n id=\"documents\"\n title=\"Documents\"\n hasChildren\n isDefaultExpanded\n leadingVisual={<FolderIconSolid />}\n >\n <TreeView.Item\n id=\"work\"\n title=\"Work\"\n hasChildren\n isDefaultExpanded\n leadingVisual={<FolderIconSolid />}\n >\n <TreeView.Item\n id=\"report\"\n title=\"Report.pdf\"\n isDisabled\n leadingVisual={<DocumentIconOutline />}\n />\n <TreeView.Item\n id=\"presentation\"\n title=\"Presentation.pptx\"\n leadingVisual={<DocumentIconOutline />}\n />\n </TreeView.Item>\n <TreeView.Item\n id=\"resume\"\n title=\"Resume.pdf\"\n leadingVisual={<DocumentIconOutline />}\n />\n </TreeView.Item>\n <TreeView.Item\n id=\"images\"\n title=\"Images\"\n hasChildren\n leadingVisual={<FolderIconSolid />}\n >\n <TreeView.Item\n id=\"photo\"\n title=\"Photo.jpg\"\n leadingVisual={<PhotoIconOutline />}\n />\n <TreeView.Item\n id=\"screenshot\"\n title=\"Screenshot.png\"\n leadingVisual={<PhotoIconOutline />}\n />\n </TreeView.Item>\n </TreeView>\n );\n};\n\nexport default Component;\n"]}
@@ -115,7 +115,7 @@ const Component = () => {
115
115
  var _a;
116
116
  const leafIds = getLeafIds(node);
117
117
  const selectedLeafCount = leafIds.filter((id) => selected.has(id)).length;
118
- return ((0, jsx_runtime_1.jsx)(next_1.TreeView.Item, { id: node.id, title: node.title, defaultExpanded: true, isIndeterminate: node.children !== undefined &&
118
+ return ((0, jsx_runtime_1.jsx)(next_1.TreeView.Item, { id: node.id, title: node.title, isDefaultExpanded: true, isIndeterminate: node.children !== undefined &&
119
119
  selectedLeafCount > 0 &&
120
120
  selectedLeafCount < leafIds.length, leadingVisual: node.children === undefined ? ((0, jsx_runtime_1.jsx)(icons_1.DocumentIconOutline, {})) : ((0, jsx_runtime_1.jsx)(icons_1.FolderIconSolid, {})), children: (_a = node.children) === null || _a === void 0 ? void 0 : _a.map(renderNode) }, node.id));
121
121
  };
@@ -1 +1 @@
1
- {"version":3,"file":"tree-view-root-selection.story.js","sourceRoot":"","sources":["../../../../../src/next/tree-view/stories/tree-view-root-selection.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,kDAA8E;AAC9E,gDAAiD;AACjD,iCAA8C;AAQ9C,MAAM,KAAK,GAAe;IACxB;QACE,QAAQ,EAAE;YACR;gBACE,QAAQ,EAAE;oBACR,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE;oBACrC,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,mBAAmB,EAAE;iBACnD;gBACD,EAAE,EAAE,MAAM;gBACV,KAAK,EAAE,MAAM;aACd;YACD,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE;SACtC;QACD,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,WAAW;KACnB;IACD;QACE,QAAQ,EAAE;YACR,EAAE,EAAE,EAAE,OA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ent":["/*!\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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { DocumentIconOutline, FolderIconSolid } from '@neo4j-ndl/react/icons';\nimport { TreeView } from '@neo4j-ndl/react/next';\nimport { useCallback, useState } from 'react';\n\ntype FileNode = {\n children?: FileNode[];\n id: string;\n title: string;\n};\n\nconst files: FileNode[] = [\n {\n children: [\n {\n children: [\n { id: 'report', title: 'Report.pdf' },\n { id: 'presentation', title: 'Presentation.pptx' },\n ],\n id: 'work',\n title: 'Work',\n },\n { id: 'resume', title: 'Resume.pdf' },\n ],\n id: 'documents',\n title: 'Documents',\n },\n {\n children: [\n { id: 'photo', title: 'Photo.jpg' },\n { id: 'screenshot', title: 'Screenshot.png' },\n ],\n id: 'images',\n title: 'Images',\n },\n];\n\nconst walk = (nodes: FileNode[], visit: (node: FileNode) => void) => {\n nodes.forEach((node) => {\n visit(node);\n walk(node.children ?? [], visit);\n });\n};\n\nconst getDescendantIds = (node: FileNode): string[] =>\n (node.children ?? []).flatMap((child) => [\n child.id,\n ...getDescendantIds(child),\n ]);\n\nconst getLeafIds = (node: FileNode): string[] =>\n node.children === undefined ? [node.id] : node.children.flatMap(getLeafIds);\n\n/** Folders follow their contents: selected only when every leaf below them is. */\nconst syncFolders = (nodes: FileNode[], selected: Set<string>) => {\n nodes.forEach((node) => {\n if (node.children === undefined) {\n return;\n }\n syncFolders(node.children, selected);\n if (getLeafIds(node).every((id) => selected.has(id))) {\n selected.add(node.id);\n } else {\n selected.delete(node.id);\n }\n });\n};\n\nconst Component = () => {\n const [selectedIds, setSelectedIds] = useState<string[]>(['resume']);\n const selected = new Set(selectedIds);\n\n /**\n * The tree reports the whole selection at once, so cascading folders onto\n * their contents takes a single pass even when a Shift range flipped many\n * rows.\n */\n const handleSelectedIdsChange = useCallback((nextIds: string[]) => {\n setSelectedIds((previousIds) => {\n const next = new Set(nextIds);\n const previous = new Set(previousIds);\n walk(files, (node) => {\n const isSelected = next.has(node.id);\n if (\n node.children === undefined ||\n isSelected === previous.has(node.id)\n ) {\n return;\n }\n getDescendantIds(node).forEach((id) => {\n if (isSelected) {\n next.add(id);\n } else {\n next.delete(id);\n }\n });\n });\n syncFolders(files, next);\n return [...next];\n });\n }, []);\n\n const renderNode = (node: FileNode) => {\n const leafIds = getLeafIds(node);\n const selectedLeafCount = leafIds.filter((id) => selected.has(id)).length;\n return (\n <TreeView.Item\n key={node.id}\n id={node.id}\n title={node.title}\n defaultExpanded\n isIndeterminate={\n node.children !== undefined &&\n selectedLeafCount > 0 &&\n selectedLeafCount < leafIds.length\n }\n leadingVisual={\n node.children === undefined ? (\n <DocumentIconOutline />\n ) : (\n <FolderIconSolid />\n )\n }\n >\n {node.children?.map(renderNode)}\n </TreeView.Item>\n );\n };\n\n return (\n <TreeView\n ariaLabel=\"File explorer\"\n selectionMode=\"multiple\"\n selectedIds={selectedIds}\n onSelectedIdsChange={handleSelectedIdsChange}\n >\n {files.map(renderNode)}\n </TreeView>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"tree-view-root-selection.story.js","sourceRoot":"","sources":["../../../../../src/next/tree-view/stories/tree-view-root-selection.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,kDAA8E;AAC9E,gDAAiD;AACjD,iCAA8C;AAQ9C,MAAM,KAAK,GAAe;IACxB;QACE,QAAQ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uBAAe,KAAG,CACpB,YAGF,MAAA,IAAI,CAAC,QAAQ,0CAAE,GAAG,CAAC,UAAU,CAAC,IAjB1B,IAAI,CAAC,EAAE,CAkBE,CACjB,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CACL,uBAAC,eAAQ,IACP,SAAS,EAAC,eAAe,EACzB,aAAa,EAAC,UAAU,EACxB,WAAW,EAAE,WAAW,EACxB,mBAAmB,EAAE,uBAAuB,YAE3C,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,GACb,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { DocumentIconOutline, FolderIconSolid } from '@neo4j-ndl/react/icons';\nimport { TreeView } from '@neo4j-ndl/react/next';\nimport { useCallback, useState } from 'react';\n\ntype FileNode = {\n children?: FileNode[];\n id: string;\n title: string;\n};\n\nconst files: FileNode[] = [\n {\n children: [\n {\n children: [\n { id: 'report', title: 'Report.pdf' },\n { id: 'presentation', title: 'Presentation.pptx' },\n ],\n id: 'work',\n title: 'Work',\n },\n { id: 'resume', title: 'Resume.pdf' },\n ],\n id: 'documents',\n title: 'Documents',\n },\n {\n children: [\n { id: 'photo', title: 'Photo.jpg' },\n { id: 'screenshot', title: 'Screenshot.png' },\n ],\n id: 'images',\n title: 'Images',\n },\n];\n\nconst walk = (nodes: FileNode[], visit: (node: FileNode) => void) => {\n nodes.forEach((node) => {\n visit(node);\n walk(node.children ?? [], visit);\n });\n};\n\nconst getDescendantIds = (node: FileNode): string[] =>\n (node.children ?? []).flatMap((child) => [\n child.id,\n ...getDescendantIds(child),\n ]);\n\nconst getLeafIds = (node: FileNode): string[] =>\n node.children === undefined ? [node.id] : node.children.flatMap(getLeafIds);\n\n/** Folders follow their contents: selected only when every leaf below them is. */\nconst syncFolders = (nodes: FileNode[], selected: Set<string>) => {\n nodes.forEach((node) => {\n if (node.children === undefined) {\n return;\n }\n syncFolders(node.children, selected);\n if (getLeafIds(node).every((id) => selected.has(id))) {\n selected.add(node.id);\n } else {\n selected.delete(node.id);\n }\n });\n};\n\nconst Component = () => {\n const [selectedIds, setSelectedIds] = useState<string[]>(['resume']);\n const selected = new Set(selectedIds);\n\n /**\n * The tree reports the whole selection at once, so cascading folders onto\n * their contents takes a single pass even when a Shift range flipped many\n * rows.\n */\n const handleSelectedIdsChange = useCallback((nextIds: string[]) => {\n setSelectedIds((previousIds) => {\n const next = new Set(nextIds);\n const previous = new Set(previousIds);\n walk(files, (node) => {\n const isSelected = next.has(node.id);\n if (\n node.children === undefined ||\n isSelected === previous.has(node.id)\n ) {\n return;\n }\n getDescendantIds(node).forEach((id) => {\n if (isSelected) {\n next.add(id);\n } else {\n next.delete(id);\n }\n });\n });\n syncFolders(files, next);\n return [...next];\n });\n }, []);\n\n const renderNode = (node: FileNode) => {\n const leafIds = getLeafIds(node);\n const selectedLeafCount = leafIds.filter((id) => selected.has(id)).length;\n return (\n <TreeView.Item\n key={node.id}\n id={node.id}\n title={node.title}\n isDefaultExpanded\n isIndeterminate={\n node.children !== undefined &&\n selectedLeafCount > 0 &&\n selectedLeafCount < leafIds.length\n }\n leadingVisual={\n node.children === undefined ? (\n <DocumentIconOutline />\n ) : (\n <FolderIconSolid />\n )\n }\n >\n {node.children?.map(renderNode)}\n </TreeView.Item>\n );\n };\n\n return (\n <TreeView\n ariaLabel=\"File explorer\"\n selectionMode=\"multiple\"\n selectedIds={selectedIds}\n onSelectedIdsChange={handleSelectedIdsChange}\n >\n {files.map(renderNode)}\n </TreeView>\n );\n};\n\nexport default Component;\n"]}
@@ -28,7 +28,7 @@ const next_1 = require("@neo4j-ndl/react/next");
28
28
  const react_2 = require("react");
29
29
  const Component = () => {
30
30
  const [selected, setSelected] = (0, react_2.useState)(null);
31
- return ((0, jsx_runtime_1.jsxs)(next_1.TreeView, { ariaLabel: "Databases", style: { marginTop: '100px' }, children: [(0, jsx_runtime_1.jsx)(next_1.TreeView.Item, { title: "Production", isSelected: selected === 'production', onSelectedChange: () => setSelected('production'), leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.DatabaseSignalIcon, {}), trailingContent: (0, jsx_runtime_1.jsx)(icons_1.CheckCircleIconSolid, { className: "n-size-5 n-text-success-bg-status" }), actionMenuItems: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Edit" }), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Delete" }), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Rename" })] }), tooltipContent: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { className: "n-font-semibold", children: "Production" }), (0, jsx_runtime_1.jsxs)("span", { className: "n-flex n-items-center n-gap-token-4 n-mt-token-8", children: [(0, jsx_runtime_1.jsx)(icons_1.CheckCircleIconSolid, { className: "n-size-5 n-text-success-bg-status" }), ": Endorsed"] })] }) }), (0, jsx_runtime_1.jsx)(next_1.TreeView.Item, { title: "Development", isSelected: selected === 'development', onSelectedChange: () => setSelected('development'), leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.DatabaseSignalIcon, {}), trailingContent: (0, jsx_runtime_1.jsx)(icons_1.AppearanceIcon, { className: "n-size-5 n-text-warning-bg-status" }), tooltipContent: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { className: "n-font-semibold", children: "Development" }), (0, jsx_runtime_1.jsxs)("span", { className: "n-flex n-items-center n-gap-token-4 n-mt-token-8", children: [(0, jsx_runtime_1.jsx)(icons_1.AppearanceIcon, { className: "n-size-5 n-text-warning-bg-status" }), ": In development"] })] }) })] }));
31
+ return ((0, jsx_runtime_1.jsxs)(next_1.TreeView, { ariaLabel: "Databases", style: { marginTop: '100px' }, children: [(0, jsx_runtime_1.jsx)(next_1.TreeView.Item, { title: "Production", isSelected: selected === 'production', onSelectedChange: () => setSelected('production'), leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.DatabaseSignalIcon, {}), trailingContent: (0, jsx_runtime_1.jsx)(icons_1.CheckCircleIconSolid, { className: "size-5 text-success-bg-status" }), actionMenuItems: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Edit" }), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Delete" }), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Rename" })] }), tooltipContent: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { className: "font-semibold", children: "Production" }), (0, jsx_runtime_1.jsxs)("span", { className: "flex items-center gap-token-4 mt-token-8", children: [(0, jsx_runtime_1.jsx)(icons_1.CheckCircleIconSolid, { className: "size-5 text-success-bg-status" }), ": Endorsed"] })] }) }), (0, jsx_runtime_1.jsx)(next_1.TreeView.Item, { title: "Development", isSelected: selected === 'development', onSelectedChange: () => setSelected('development'), leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.DatabaseSignalIcon, {}), trailingContent: (0, jsx_runtime_1.jsx)(icons_1.AppearanceIcon, { className: "size-5 text-warning-bg-status" }), tooltipContent: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { className: "font-semibold", children: "Development" }), (0, jsx_runtime_1.jsxs)("span", { className: "flex items-center gap-token-4 mt-token-8", children: [(0, jsx_runtime_1.jsx)(icons_1.AppearanceIcon, { className: "size-5 text-warning-bg-status" }), ": In development"] })] }) })] }));
32
32
  };
33
33
  exports.default = Component;
34
34
  //# sourceMappingURL=tree-view-tooltip.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tree-view-tooltip.story.js","sourceRoot":"","sources":["../../../../../src/next/tree-view/stories/tree-view-tooltip.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAwC;AACxC,kDAIgC;AAChC,gDAAiD;AACjD,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,IAAA,gBAAQ,EAAgB,IAAI,CAAC,CAAC;IAE9D,OAAO,CACL,wBAAC,eAAQ,IAAC,SAAS,EAAC,WAAW,EAAC,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,aAC3D,uBAAC,eAAQ,CAAC,IAAI,IACZ,KAAK,EAAC,YAAY,EAClB,UAAU,EAAE,QAAQ,KAAK,YAAY,EACrC,gBAAgB,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,YAAY,CAAC,EACjD,aAAa,EAAE,uBAAC,0BAAkB,KAAG,EACrC,eAAe,EACb,uBAAC,4BAAoB,IAAC,SAAS,EAAC,mCAAmC,GAAG,EAExE,eAAe,EACb,6DACE,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,MAAM,GAAG,EAC1B,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,GAAG,EAC5B,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,GAAG,IAC3B,EAEL,cAAc,EACZ,6DACE,iCAAM,SAAS,EAAC,iBAAiB,2BAAkB,EACnD,kCAAM,SAAS,EAAC,kDAAkD,aAChE,uBAAC,4BAAoB,IAAC,SAAS,EAAC,mCAAmC,GAAG,kBAEjE,IACN,GAEL,EACF,uBAAC,eAAQ,CAAC,IAAI,IACZ,KAAK,EAAC,aAAa,EACnB,UAAU,EAAE,QAAQ,KAAK,aAAa,EACtC,gBAAgB,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,aAAa,CAAC,EAClD,aAAa,EAAE,uBAAC,0BAAkB,KAAG,EACrC,eAAe,EACb,uBAAC,sBAAc,IAAC,SAAS,EAAC,mCAAmC,GAAG,EAElE,cAAc,EACZ,6DACE,iCAAM,SAAS,EAAC,iBAAiB,4BAAmB,EACpD,kCAAM,SAAS,EAAC,kDAAkD,aAChE,uBAAC,sBAAc,IAAC,SAAS,EAAC,mCAAmC,GAAG,wBAE3D,IACN,GAEL,IACO,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Menu } from '@neo4j-ndl/react';\nimport {\n AppearanceIcon,\n CheckCircleIconSolid,\n DatabaseSignalIcon,\n} from '@neo4j-ndl/react/icons';\nimport { TreeView } from '@neo4j-ndl/react/next';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [selected, setSelected] = useState<string | null>(null);\n\n return (\n <TreeView ariaLabel=\"Databases\" style={{ marginTop: '100px' }}>\n <TreeView.Item\n title=\"Production\"\n isSelected={selected === 'production'}\n onSelectedChange={() => setSelected('production')}\n leadingVisual={<DatabaseSignalIcon />}\n trailingContent={\n <CheckCircleIconSolid className=\"n-size-5 n-text-success-bg-status\" />\n }\n actionMenuItems={\n <>\n <Menu.Item title=\"Edit\" />\n <Menu.Item title=\"Delete\" />\n <Menu.Item title=\"Rename\" />\n </>\n }\n tooltipContent={\n <>\n <span className=\"n-font-semibold\">Production</span>\n <span className=\"n-flex n-items-center n-gap-token-4 n-mt-token-8\">\n <CheckCircleIconSolid className=\"n-size-5 n-text-success-bg-status\" />\n : Endorsed\n </span>\n </>\n }\n />\n <TreeView.Item\n title=\"Development\"\n isSelected={selected === 'development'}\n onSelectedChange={() => setSelected('development')}\n leadingVisual={<DatabaseSignalIcon />}\n trailingContent={\n <AppearanceIcon className=\"n-size-5 n-text-warning-bg-status\" />\n }\n tooltipContent={\n <>\n <span className=\"n-font-semibold\">Development</span>\n <span className=\"n-flex n-items-center n-gap-token-4 n-mt-token-8\">\n <AppearanceIcon className=\"n-size-5 n-text-warning-bg-status\" />:\n In development\n </span>\n </>\n }\n />\n </TreeView>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"tree-view-tooltip.story.js","sourceRoot":"","sources":["../../../../../src/next/tree-view/stories/tree-view-tooltip.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAwC;AACxC,kDAIgC;AAChC,gDAAiD;AACjD,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,IAAA,gBAAQ,EAAgB,IAAI,CAAC,CAAC;IAE9D,OAAO,CACL,wBAAC,eAAQ,IAAC,SAAS,EAAC,WAAW,EAAC,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,aAC3D,uBAAC,eAAQ,CAAC,IAAI,IACZ,KAAK,EAAC,YAAY,EAClB,UAAU,EAAE,QAAQ,KAAK,YAAY,EACrC,gBAAgB,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,YAAY,CAAC,EACjD,aAAa,EAAE,uBAAC,0BAAkB,KAAG,EACrC,eAAe,EACb,uBAAC,4BAAoB,IAAC,SAAS,EAAC,+BAA+B,GAAG,EAEpE,eAAe,EACb,6DACE,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,MAAM,GAAG,EAC1B,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,GAAG,EAC5B,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,GAAG,IAC3B,EAEL,cAAc,EACZ,6DACE,iCAAM,SAAS,EAAC,eAAe,2BAAkB,EACjD,kCAAM,SAAS,EAAC,0CAA0C,aACxD,uBAAC,4BAAoB,IAAC,SAAS,EAAC,+BAA+B,GAAG,kBAE7D,IACN,GAEL,EACF,uBAAC,eAAQ,CAAC,IAAI,IACZ,KAAK,EAAC,aAAa,EACnB,UAAU,EAAE,QAAQ,KAAK,aAAa,EACtC,gBAAgB,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,aAAa,CAAC,EAClD,aAAa,EAAE,uBAAC,0BAAkB,KAAG,EACrC,eAAe,EACb,uBAAC,sBAAc,IAAC,SAAS,EAAC,+BAA+B,GAAG,EAE9D,cAAc,EACZ,6DACE,iCAAM,SAAS,EAAC,eAAe,4BAAmB,EAClD,kCAAM,SAAS,EAAC,0CAA0C,aACxD,uBAAC,sBAAc,IAAC,SAAS,EAAC,+BAA+B,GAAG,wBAEvD,IACN,GAEL,IACO,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Menu } from '@neo4j-ndl/react';\nimport {\n AppearanceIcon,\n CheckCircleIconSolid,\n DatabaseSignalIcon,\n} from '@neo4j-ndl/react/icons';\nimport { TreeView } from '@neo4j-ndl/react/next';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [selected, setSelected] = useState<string | null>(null);\n\n return (\n <TreeView ariaLabel=\"Databases\" style={{ marginTop: '100px' }}>\n <TreeView.Item\n title=\"Production\"\n isSelected={selected === 'production'}\n onSelectedChange={() => setSelected('production')}\n leadingVisual={<DatabaseSignalIcon />}\n trailingContent={\n <CheckCircleIconSolid className=\"size-5 text-success-bg-status\" />\n }\n actionMenuItems={\n <>\n <Menu.Item title=\"Edit\" />\n <Menu.Item title=\"Delete\" />\n <Menu.Item title=\"Rename\" />\n </>\n }\n tooltipContent={\n <>\n <span className=\"font-semibold\">Production</span>\n <span className=\"flex items-center gap-token-4 mt-token-8\">\n <CheckCircleIconSolid className=\"size-5 text-success-bg-status\" />\n : Endorsed\n </span>\n </>\n }\n />\n <TreeView.Item\n title=\"Development\"\n isSelected={selected === 'development'}\n onSelectedChange={() => setSelected('development')}\n leadingVisual={<DatabaseSignalIcon />}\n trailingContent={\n <AppearanceIcon className=\"size-5 text-warning-bg-status\" />\n }\n tooltipContent={\n <>\n <span className=\"font-semibold\">Development</span>\n <span className=\"flex items-center gap-token-4 mt-token-8\">\n <AppearanceIcon className=\"size-5 text-warning-bg-status\" />: In\n development\n </span>\n </>\n }\n />\n </TreeView>\n );\n};\n\nexport default Component;\n"]}
@@ -28,7 +28,7 @@ const next_1 = require("@neo4j-ndl/react/next");
28
28
  const react_2 = require("react");
29
29
  const Component = () => {
30
30
  const [selected, setSelected] = (0, react_2.useState)(null);
31
- return ((0, jsx_runtime_1.jsxs)(next_1.TreeView, { ariaLabel: "Databases", children: [(0, jsx_runtime_1.jsx)(next_1.TreeView.Item, { title: "Production", isSelected: selected === 'production', onSelectedChange: () => setSelected('production'), leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.DatabaseSignalIcon, {}), trailingContent: (0, jsx_runtime_1.jsx)(icons_1.CheckCircleIconSolid, { className: "n-size-5 n-text-success-bg-status" }), actionMenuItems: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Edit" }), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Delete" }), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Rename" })] }) }), (0, jsx_runtime_1.jsx)(next_1.TreeView.Item, { title: "Development", isSelected: selected === 'development', onSelectedChange: () => setSelected('development'), leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.DatabaseSignalIcon, {}), trailingContent: (0, jsx_runtime_1.jsx)(icons_1.AppearanceIcon, { className: "n-size-5 n-text-warning-bg-status" }) })] }));
31
+ return ((0, jsx_runtime_1.jsxs)(next_1.TreeView, { ariaLabel: "Databases", children: [(0, jsx_runtime_1.jsx)(next_1.TreeView.Item, { title: "Production", isSelected: selected === 'production', onSelectedChange: () => setSelected('production'), leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.DatabaseSignalIcon, {}), trailingContent: (0, jsx_runtime_1.jsx)(icons_1.CheckCircleIconSolid, { className: "size-5 text-success-bg-status" }), actionMenuItems: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Edit" }), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Delete" }), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Rename" })] }) }), (0, jsx_runtime_1.jsx)(next_1.TreeView.Item, { title: "Development", isSelected: selected === 'development', onSelectedChange: () => setSelected('development'), leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.DatabaseSignalIcon, {}), trailingContent: (0, jsx_runtime_1.jsx)(icons_1.AppearanceIcon, { className: "size-5 text-warning-bg-status" }) })] }));
32
32
  };
33
33
  exports.default = Component;
34
34
  //# sourceMappingURL=tree-view-trailing.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tree-view-trailing.story.js","sourceRoot":"","sources":["../../../../../src/next/tree-view/stories/tree-view-trailing.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAwC;AACxC,kDAIgC;AAChC,gDAAiD;AACjD,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,IAAA,gBAAQ,EAAgB,IAAI,CAAC,CAAC;IAE9D,OAAO,CACL,wBAAC,eAAQ,IAAC,SAAS,EAAC,WAAW,aAC7B,uBAAC,eAAQ,CAAC,IAAI,IACZ,KAAK,EAAC,YAAY,EAClB,UAAU,EAAE,QAAQ,KAAK,YAAY,EACrC,gBAAgB,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,YAAY,CAAC,EACjD,aAAa,EAAE,uBAAC,0BAAkB,KAAG,EACrC,eAAe,EACb,uBAAC,4BAAoB,IAAC,SAAS,EAAC,mCAAmC,GAAG,EAExE,eAAe,EACb,6DACE,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,MAAM,GAAG,EAC1B,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,GAAG,EAC5B,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,GAAG,IAC3B,GAEL,EACF,uBAAC,eAAQ,CAAC,IAAI,IACZ,KAAK,EAAC,aAAa,EACnB,UAAU,EAAE,QAAQ,KAAK,aAAa,EACtC,gBAAgB,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,aAAa,CAAC,EAClD,aAAa,EAAE,uBAAC,0BAAkB,KAAG,EACrC,eAAe,EACb,uBAAC,sBAAc,IAAC,SAAS,EAAC,mCAAmC,GAAG,GAElE,IACO,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Menu } from '@neo4j-ndl/react';\nimport {\n AppearanceIcon,\n CheckCircleIconSolid,\n DatabaseSignalIcon,\n} from '@neo4j-ndl/react/icons';\nimport { TreeView } from '@neo4j-ndl/react/next';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [selected, setSelected] = useState<string | null>(null);\n\n return (\n <TreeView ariaLabel=\"Databases\">\n <TreeView.Item\n title=\"Production\"\n isSelected={selected === 'production'}\n onSelectedChange={() => setSelected('production')}\n leadingVisual={<DatabaseSignalIcon />}\n trailingContent={\n <CheckCircleIconSolid className=\"n-size-5 n-text-success-bg-status\" />\n }\n actionMenuItems={\n <>\n <Menu.Item title=\"Edit\" />\n <Menu.Item title=\"Delete\" />\n <Menu.Item title=\"Rename\" />\n </>\n }\n />\n <TreeView.Item\n title=\"Development\"\n isSelected={selected === 'development'}\n onSelectedChange={() => setSelected('development')}\n leadingVisual={<DatabaseSignalIcon />}\n trailingContent={\n <AppearanceIcon className=\"n-size-5 n-text-warning-bg-status\" />\n }\n />\n </TreeView>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"tree-view-trailing.story.js","sourceRoot":"","sources":["../../../../../src/next/tree-view/stories/tree-view-trailing.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAwC;AACxC,kDAIgC;AAChC,gDAAiD;AACjD,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,IAAA,gBAAQ,EAAgB,IAAI,CAAC,CAAC;IAE9D,OAAO,CACL,wBAAC,eAAQ,IAAC,SAAS,EAAC,WAAW,aAC7B,uBAAC,eAAQ,CAAC,IAAI,IACZ,KAAK,EAAC,YAAY,EAClB,UAAU,EAAE,QAAQ,KAAK,YAAY,EACrC,gBAAgB,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,YAAY,CAAC,EACjD,aAAa,EAAE,uBAAC,0BAAkB,KAAG,EACrC,eAAe,EACb,uBAAC,4BAAoB,IAAC,SAAS,EAAC,+BAA+B,GAAG,EAEpE,eAAe,EACb,6DACE,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,MAAM,GAAG,EAC1B,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,GAAG,EAC5B,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,GAAG,IAC3B,GAEL,EACF,uBAAC,eAAQ,CAAC,IAAI,IACZ,KAAK,EAAC,aAAa,EACnB,UAAU,EAAE,QAAQ,KAAK,aAAa,EACtC,gBAAgB,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,aAAa,CAAC,EAClD,aAAa,EAAE,uBAAC,0BAAkB,KAAG,EACrC,eAAe,EACb,uBAAC,sBAAc,IAAC,SAAS,EAAC,+BAA+B,GAAG,GAE9D,IACO,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Menu } from '@neo4j-ndl/react';\nimport {\n AppearanceIcon,\n CheckCircleIconSolid,\n DatabaseSignalIcon,\n} from '@neo4j-ndl/react/icons';\nimport { TreeView } from '@neo4j-ndl/react/next';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [selected, setSelected] = useState<string | null>(null);\n\n return (\n <TreeView ariaLabel=\"Databases\">\n <TreeView.Item\n title=\"Production\"\n isSelected={selected === 'production'}\n onSelectedChange={() => setSelected('production')}\n leadingVisual={<DatabaseSignalIcon />}\n trailingContent={\n <CheckCircleIconSolid className=\"size-5 text-success-bg-status\" />\n }\n actionMenuItems={\n <>\n <Menu.Item title=\"Edit\" />\n <Menu.Item title=\"Delete\" />\n <Menu.Item title=\"Rename\" />\n </>\n }\n />\n <TreeView.Item\n title=\"Development\"\n isSelected={selected === 'development'}\n onSelectedChange={() => setSelected('development')}\n leadingVisual={<DatabaseSignalIcon />}\n trailingContent={\n <AppearanceIcon className=\"size-5 text-warning-bg-status\" />\n }\n />\n </TreeView>\n );\n};\n\nexport default Component;\n"]}
@@ -27,7 +27,7 @@ const next_1 = require("@neo4j-ndl/react/next");
27
27
  const react_1 = require("react");
28
28
  const Component = () => {
29
29
  const [selected, setSelected] = (0, react_1.useState)(null);
30
- return ((0, jsx_runtime_1.jsxs)(next_1.TreeView, { ariaLabel: "File explorer", children: [(0, jsx_runtime_1.jsxs)(next_1.TreeView.Item, { title: "Documents (expanded by default)", defaultExpanded: true, leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.FolderIconSolid, {}), children: [(0, jsx_runtime_1.jsxs)(next_1.TreeView.Item, { title: "Work", leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.FolderIconSolid, {}), children: [(0, jsx_runtime_1.jsx)(next_1.TreeView.Item, { title: "Report.pdf", isSelected: selected === 'report', onSelectedChange: () => setSelected('report'), leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.DocumentIconOutline, {}) }), (0, jsx_runtime_1.jsx)(next_1.TreeView.Item, { title: "Presentation.pptx", isSelected: selected === 'presentation', onSelectedChange: () => setSelected('presentation'), leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.DocumentIconOutline, {}) })] }), (0, jsx_runtime_1.jsx)(next_1.TreeView.Item, { title: "Resume.pdf", isSelected: selected === 'resume', onSelectedChange: () => setSelected('resume'), leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.DocumentIconOutline, {}) })] }), (0, jsx_runtime_1.jsxs)(next_1.TreeView.Item, { title: "Images (collapsed by default)", leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.FolderIconSolid, {}), defaultExpanded: false, children: [(0, jsx_runtime_1.jsx)(next_1.TreeView.Item, { title: "Photo.jpg", isSelected: selected === 'photo', onSelectedChange: () => setSelected('photo'), leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.DocumentIconOutline, {}) }), (0, jsx_runtime_1.jsx)(next_1.TreeView.Item, { title: "Screenshot.png", isSelected: selected === 'screenshot', onSelectedChange: () => setSelected('screenshot'), leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.DocumentIconOutline, {}) })] })] }));
30
+ return ((0, jsx_runtime_1.jsxs)(next_1.TreeView, { ariaLabel: "File explorer", children: [(0, jsx_runtime_1.jsxs)(next_1.TreeView.Item, { isDefaultExpanded: true, title: "Documents (expanded by default)", leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.FolderIconSolid, {}), children: [(0, jsx_runtime_1.jsxs)(next_1.TreeView.Item, { title: "Work", leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.FolderIconSolid, {}), children: [(0, jsx_runtime_1.jsx)(next_1.TreeView.Item, { title: "Report.pdf", isSelected: selected === 'report', onSelectedChange: () => setSelected('report'), leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.DocumentIconOutline, {}) }), (0, jsx_runtime_1.jsx)(next_1.TreeView.Item, { title: "Presentation.pptx", isSelected: selected === 'presentation', onSelectedChange: () => setSelected('presentation'), leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.DocumentIconOutline, {}) })] }), (0, jsx_runtime_1.jsx)(next_1.TreeView.Item, { title: "Resume.pdf", isSelected: selected === 'resume', onSelectedChange: () => setSelected('resume'), leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.DocumentIconOutline, {}) })] }), (0, jsx_runtime_1.jsxs)(next_1.TreeView.Item, { title: "Images (collapsed by default)", leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.FolderIconSolid, {}), isDefaultExpanded: false, children: [(0, jsx_runtime_1.jsx)(next_1.TreeView.Item, { title: "Photo.jpg", isSelected: selected === 'photo', onSelectedChange: () => setSelected('photo'), leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.DocumentIconOutline, {}) }), (0, jsx_runtime_1.jsx)(next_1.TreeView.Item, { title: "Screenshot.png", isSelected: selected === 'screenshot', onSelectedChange: () => setSelected('screenshot'), leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.DocumentIconOutline, {}) })] })] }));
31
31
  };
32
32
  exports.default = Component;
33
33
  //# sourceMappingURL=tree-view-uncontrolled.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tree-view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AC,IAAI,IACZ,KAAK,EAAC,+BAA+B,EACrC,aAAa,EAAE,uBAAC,uBAAe,KAAG,EAClC,eAAe,EAAE,KAAK,aAEtB,uBAAC,eAAQ,CAAC,IAAI,IACZ,KAAK,EAAC,WAAW,EACjB,UAAU,EAAE,QAAQ,KAAK,OAAO,EAChC,gBAAgB,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC,EAC5C,aAAa,EAAE,uBAAC,2BAAmB,KAAG,GACtC,EACF,uBAAC,eAAQ,CAAC,IAAI,IACZ,KAAK,EAAC,gBAAgB,EACtB,UAAU,EAAE,QAAQ,KAAK,YAAY,EACrC,gBAAgB,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,YAAY,CAAC,EACjD,aAAa,EAAE,uBAAC,2BAAmB,KAAG,GACtC,IACY,IACP,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { DocumentIconOutline, FolderIconSolid } from '@neo4j-ndl/react/icons';\nimport { TreeView } from '@neo4j-ndl/react/next';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [selected, setSelected] = useState<string | null>(null);\n\n return (\n <TreeView ariaLabel=\"File explorer\">\n <TreeView.Item\n title=\"Documents (expanded by default)\"\n defaultExpanded={true}\n leadingVisual={<FolderIconSolid />}\n >\n <TreeView.Item title=\"Work\" leadingVisual={<FolderIconSolid />}>\n <TreeView.Item\n title=\"Report.pdf\"\n isSelected={selected === 'report'}\n onSelectedChange={() => setSelected('report')}\n leadingVisual={<DocumentIconOutline />}\n />\n <TreeView.Item\n title=\"Presentation.pptx\"\n isSelected={selected === 'presentation'}\n onSelectedChange={() => setSelected('presentation')}\n leadingVisual={<DocumentIconOutline />}\n />\n </TreeView.Item>\n <TreeView.Item\n title=\"Resume.pdf\"\n isSelected={selected === 'resume'}\n onSelectedChange={() => setSelected('resume')}\n leadingVisual={<DocumentIconOutline />}\n />\n </TreeView.Item>\n <TreeView.Item\n title=\"Images (collapsed by default)\"\n leadingVisual={<FolderIconSolid />}\n defaultExpanded={false}\n >\n <TreeView.Item\n title=\"Photo.jpg\"\n isSelected={selected === 'photo'}\n onSelectedChange={() => setSelected('photo')}\n leadingVisual={<DocumentIconOutline />}\n />\n <TreeView.Item\n title=\"Screenshot.png\"\n isSelected={selected === 'screenshot'}\n onSelectedChange={() => setSelected('screenshot')}\n leadingVisual={<DocumentIconOutline />}\n />\n </TreeView.Item>\n </TreeView>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"tree-view-uncontrolled.story.js","sourceRoot":"","sources":["../../../../../src/next/tree-view/stories/tree-view-uncontrolled.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,kDAA8E;AAC9E,gDAAiD;AACjD,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,IAAA,gBAAQ,EAAgB,IAAI,CAAC,CAAC;IAE9D,OAAO,CACL,wBAAC,eAAQ,IAAC,SAAS,EAAC,eAAe,aACjC,wBAAC,eAAQ,CAAC,IAAI,IACZ,iBAAiB,QACjB,KAAK,EAAC,iCAAiC,EACvC,aAAa,EAAE,uBAAC,uBAAe,KAAG,aA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AmB,KAAG,GACtC,IACY,IACP,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { DocumentIconOutline, FolderIconSolid } from '@neo4j-ndl/react/icons';\nimport { TreeView } from '@neo4j-ndl/react/next';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [selected, setSelected] = useState<string | null>(null);\n\n return (\n <TreeView ariaLabel=\"File explorer\">\n <TreeView.Item\n isDefaultExpanded\n title=\"Documents (expanded by default)\"\n leadingVisual={<FolderIconSolid />}\n >\n <TreeView.Item title=\"Work\" leadingVisual={<FolderIconSolid />}>\n <TreeView.Item\n title=\"Report.pdf\"\n isSelected={selected === 'report'}\n onSelectedChange={() => setSelected('report')}\n leadingVisual={<DocumentIconOutline />}\n />\n <TreeView.Item\n title=\"Presentation.pptx\"\n isSelected={selected === 'presentation'}\n onSelectedChange={() => setSelected('presentation')}\n leadingVisual={<DocumentIconOutline />}\n />\n </TreeView.Item>\n <TreeView.Item\n title=\"Resume.pdf\"\n isSelected={selected === 'resume'}\n onSelectedChange={() => setSelected('resume')}\n leadingVisual={<DocumentIconOutline />}\n />\n </TreeView.Item>\n <TreeView.Item\n title=\"Images (collapsed by default)\"\n leadingVisual={<FolderIconSolid />}\n isDefaultExpanded={false}\n >\n <TreeView.Item\n title=\"Photo.jpg\"\n isSelected={selected === 'photo'}\n onSelectedChange={() => setSelected('photo')}\n leadingVisual={<DocumentIconOutline />}\n />\n <TreeView.Item\n title=\"Screenshot.png\"\n isSelected={selected === 'screenshot'}\n onSelectedChange={() => setSelected('screenshot')}\n leadingVisual={<DocumentIconOutline />}\n />\n </TreeView.Item>\n </TreeView>\n );\n};\n\nexport default Component;\n"]}
@@ -67,16 +67,15 @@ const usePopoverContext = () => {
67
67
  return context;
68
68
  };
69
69
  exports.usePopoverContext = usePopoverContext;
70
- const PopoverComponent = ({ children, anchorElement, placement, isOpen, offset, anchorPosition, hasAnchorPortal: hasAnchorPortalProp, shouldCaptureFocus = false, initialFocus, onOpenChange, role, closeOnClickOutside = true, shouldCloseOnFocusOut, isPortaled: isPortaledProp, strategy: strategyProp, shouldConstrainSize, }) => {
70
+ const PopoverComponent = ({ children, anchorElement, placement, isOpen, offset, anchorPosition, hasAnchorPortal: hasAnchorPortalProp, shouldCaptureFocus = false, initialFocus, onOpenChange, shouldCloseOnClickOutside = true, shouldCloseOnFocusOut, isPortaled: isPortaledProp, strategy: strategyProp, role, shouldConstrainSize, }) => {
71
71
  const isInsideDialog = (0, dialog_context_1.useIsInsideDialog)();
72
72
  const strategy = isInsideDialog ? 'fixed' : 'absolute';
73
73
  const hasAnchorPortal = isInsideDialog;
74
74
  const isPortaled = !isInsideDialog;
75
75
  const popover = (0, use_popover_1.usePopover)({
76
76
  anchorElement,
77
- anchorElementAsPortalAnchor: hasAnchorPortalProp !== null && hasAnchorPortalProp !== void 0 ? hasAnchorPortalProp : hasAnchorPortal,
78
77
  anchorPosition,
79
- closeOnClickOutside,
78
+ hasAnchorElementAsPortalAnchor: hasAnchorPortalProp !== null && hasAnchorPortalProp !== void 0 ? hasAnchorPortalProp : hasAnchorPortal,
80
79
  initialFocus,
81
80
  isOpen: isOpen,
82
81
  isPortaled: isPortaledProp !== null && isPortaledProp !== void 0 ? isPortaledProp : isPortaled,
@@ -85,7 +84,8 @@ const PopoverComponent = ({ children, anchorElement, placement, isOpen, offset,
85
84
  placement: placement ? exports.placementTranslation[placement] : undefined,
86
85
  role,
87
86
  shouldCaptureFocus,
88
- shouldCloseOnFocusOut: shouldCloseOnFocusOut !== null && shouldCloseOnFocusOut !== void 0 ? shouldCloseOnFocusOut : closeOnClickOutside,
87
+ shouldCloseOnClickOutside,
88
+ shouldCloseOnFocusOut: shouldCloseOnFocusOut !== null && shouldCloseOnFocusOut !== void 0 ? shouldCloseOnFocusOut : shouldCloseOnClickOutside,
89
89
  shouldConstrainSize,
90
90
  strategy: strategyProp !== null && strategyProp !== void 0 ? strategyProp : strategy,
91
91
  });
@@ -142,10 +142,10 @@ const PopoverContent = (_a) => {
142
142
  }
143
143
  return ((0, jsx_runtime_1.jsx)(conditional_wrap_1.ConditionalWrap, { shouldWrap: context.isPortaled, wrap: (wrapChildren) => {
144
144
  var _a;
145
- return ((0, jsx_runtime_1.jsx)(react_1.FloatingPortal, { root: ((_a = context.anchorElementAsPortalAnchor) !== null && _a !== void 0 ? _a : false)
145
+ return ((0, jsx_runtime_1.jsx)(react_1.FloatingPortal, { root: ((_a = context.hasAnchorElementAsPortalAnchor) !== null && _a !== void 0 ? _a : false)
146
146
  ? context.refs.reference.current
147
147
  : undefined, children: wrapChildren }));
148
- }, children: (0, jsx_runtime_1.jsx)(react_1.FloatingFocusManager, { context: floatingContext, modal: context.shouldCaptureFocus, initialFocus: context.initialFocus, closeOnFocusOut: context.shouldCloseOnFocusOut, children: (0, jsx_runtime_1.jsx)(Component, Object.assign({ className: classes, "aria-labelledby": context.labelId, "aria-describedby": context.descriptionId, style: Object.assign(Object.assign(Object.assign({}, context.floatingStyles), context.transitionStyles), style), ref: refs }, context.getFloatingProps(Object.assign({}, htmlAttributes)), restProps, { children: children })) }) }));
148
+ }, children: (0, jsx_runtime_1.jsx)(react_1.FloatingFocusManager, { context: floatingContext, modal: context.shouldCaptureFocus, initialFocus: context.initialFocus, closeOnFocusOut: context.shouldCloseOnFocusOut, children: (0, jsx_runtime_1.jsx)(Component, Object.assign({ className: classes, style: Object.assign(Object.assign(Object.assign({}, context.floatingStyles), context.transitionStyles), style), ref: refs, "aria-labelledby": context.labelId, "aria-describedby": context.descriptionId }, context.getFloatingProps(Object.assign({}, htmlAttributes)), restProps, { children: children })) }) }));
149
149
  };
150
150
  const Popover = Object.assign(PopoverComponent, {
151
151
  Anchor: PopoverAnchor,
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.js","sourceRoot":"","sources":["../../../src/popover/Popover.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,8CAM4B;AAC5B,4DAAoC;AACpC,kDAA0B;AAM1B,0DAAsD;AACtD,6DAA6D;AAC7D,0DAAwD;AACxD,+CAA2C;AAC3C,+EAA4E;AAgB/D,QAAA,oBAAoB,GAAwC;IACvE,yBAAyB,EAAE,WAAW;IACtC,oBAAoB,EAAE,YAAY;IAClC,0BAA0B,EAAE,QAAQ;IACpC,yBAAyB,EAAE,UAAU;IACrC,wBAAwB,EAAE,cAAc;IACxC,yBAAyB,EAAE,OAAO;IAClC,yBAAyB,EAAE,MAAM;IACjC,oBAAoB,EAAE,SAAS;IAC/B,mBAAmB,EAAE,aAAa;IAClC,0BAA0B,EAAE,KAAK;IACjC,wBAAwB,EAAE,WAAW;IACrC,mBAAmB,EAAE,YAAY;CAClC,CAAC;AAmEF,MAAM,cAAc,GAAG,eAAK,CAAC,aAAa,CAAc,IAAI,CAAC,CAAC;AAEvD,MAAM,iBAAiB,GAAG,GAAG,EAAE;IACpC,MAAM,OAAO,GAAG,eAAK,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;IAEjD,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;IACvE,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AARW,QAAA,iBAAiB,qBAQ5B;AAEF,MA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C1B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CACL,uBAAC,kCAAe,IACd,UAAU,EAAE,OAAO,CAAC,UAAU,EAC9B,IAAI,EAAE,CAAC,YAAY,EAAE,EAAE;;YAAC,OAAA,CACtB,uBAAC,sBAAc,IACb,IAAI,EACF,CAAC,MAAA,OAAO,CAAC,2BAA2B,mCAAI,KAAK,CAAC;oBAC5C,CAAC,CAAE,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,OAA8B;oBACxD,CAAC,CAAC,SAAS,YAGd,YAAY,GACE,CAClB,CAAA;SAAA,YAED,uBAAC,4BAAoB,IACnB,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,OAAO,CAAC,kBAAkB,EACjC,YAAY,EAAE,OAAO,CAAC,YAAY,EAClC,eAAe,EAAE,OAAO,CAAC,qBAAqB,YAE9C,uBAAC,SAAS,kBACR,SAAS,EAAE,OAAO,qBACD,OAAO,CAAC,OAAO,sBACd,OAAO,CAAC,aAAa,EACvC,KAAK,gDACA,OAAO,CAAC,cAAc,GACtB,OAAO,CAAC,gBAAgB,GACxB,KAAK,GAEV,GAAG,EAAE,IAAI,IACL,OAAO,CAAC,gBAAgB,mBAAM,cAAc,EAAG,EAC/C,SAAS,cAEZ,QAAQ,IACC,GACS,GACP,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE;IAC9C,MAAM,EAAE,aAAa;IACrB,OAAO,EAAE,cAAc;IACvB,OAAO,EAAE,cAAc;CACxB,CAAC,CAAC;AAEM,0BAAO","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 {\n FloatingFocusManager,\n FloatingPortal,\n type OffsetOptions,\n type Placement,\n useMergeRefs,\n} from '@floating-ui/react';\nimport classNames from 'classnames';\nimport React from 'react';\n\nimport {\n type CommonProps,\n type PolymorphicCommonProps,\n} from '../_common/types';\nimport { ConditionalWrap } from '../conditional-wrap';\nimport { useIsInsideDialog } from '../dialog/dialog-context';\nimport { useNeedleTheme } from '../theme/ThemeProvider';\nimport { usePopover } from './use-popover';\nimport { usePatchFloatingFocusGuards } from './usePatchFloatingFocusGuards';\n\ntype PlacementOptions =\n | 'bottom-end-top-end'\n | 'bottom-start-top-start'\n | 'bottom-middle-top-middle'\n | 'top-end-bottom-end'\n | 'top-start-bottom-start'\n | 'top-middle-bottom-middle'\n | 'bottom-start-bottom-end'\n | 'top-start-top-end'\n | 'middle-start-middle-end'\n | 'bottom-end-bottom-start'\n | 'top-end-top-start'\n | 'middle-end-middle-start';\n\nexport const placementTranslation: Record<PlacementOptions, Placement> = {\n 'bottom-end-bottom-start': 'right-end',\n 'bottom-end-top-end': 'bottom-end',\n 'bottom-middle-top-middle': 'bottom',\n 'bottom-start-bottom-end': 'left-end',\n 'bottom-start-top-start': 'bottom-start',\n 'middle-end-middle-start': 'right',\n 'middle-start-middle-end': 'left',\n 'top-end-bottom-end': 'top-end',\n 'top-end-top-start': 'right-start',\n 'top-middle-bottom-middle': 'top',\n 'top-start-bottom-start': 'top-start',\n 'top-start-top-end': 'left-start',\n};\ntype PopoverProps = {\n /** if the popover is open */\n isOpen?: boolean;\n /** The content of the popover */\n children?: React.ReactNode;\n /**\n * Can be used if the anchor should be separated from the trigger.\n * Note: to visually separate the anchor from the trigger, use the Popover.Anchor component instead.\n */\n anchorElement?: Element | null;\n /** If the anchorPosition is provided the anchorElement will be ignored */\n anchorPosition?: {\n // TODO v5: create componentProps type for this\n // oxlint-disable-next-line id-length\n x: number;\n // TODO v5: create componentProps type for this\n // oxlint-disable-next-line id-length\n y: number;\n };\n /** The placement of the floating element is determined by two sets of words. The first set of words specifies the point on the anchor element where the floating element will be attached. The second set of coordinates specifies the point on the floating element that will attach to the anchor element. */\n placement?: PlacementOptions;\n /** can take either a number, an object or a function. Full documentation here: https://floating-ui.com/docs/offset */\n offset?: OffsetOptions;\n /** Called when an internal state change is triggered, when the floating element either opens or closes. It is not called when `isOpen` is updated by the consumer. */\n onOpenChange?: (isOpen: boolean, event?: Event) => void;\n /** Use anchorEl for portal's container. Should be used if the popover is portaled and is inside a Dialog for example. */\n hasAnchorPortal?: boolean;\n /** If the popover should constrain the focus inside the popover while open */\n shouldCaptureFocus?: boolean;\n /** Which element to initially focus. */\n initialFocus?: number | React.RefObject<HTMLElement | null>;\n // TODO v5: remove this prop\n /** The role of the popover.\n * @deprecated - This prop will be removed in v5.\n */\n role?:\n | 'tooltip'\n | 'dialog'\n | 'alertdialog'\n | 'menu'\n | 'listbox'\n | 'grid'\n | 'tree';\n /** If the popover should close when the user clicks outside of it */\n // TODO v5: change naming (if component isn't deprecated)\n // eslint-disable-next-line @typescript-eslint/naming-convention\n closeOnClickOutside?: boolean;\n /**\n * If the popover should close when focus moves outside of it, for example when tabbing away or focusing another element.\n * Defaults to the value of `closeOnClickOutside`.\n * Has no effect when `shouldCaptureFocus` is true, since focus cannot leave the popover.\n */\n shouldCloseOnFocusOut?: boolean;\n /** The strategy of the popover. Fixed should be used when the popover is inside a Dialog. */\n strategy?: 'fixed' | 'absolute';\n /** Whether the content is rendered in a portal */\n isPortaled?: boolean;\n /**\n * When true, limits the popover's max-height and max-width to the available viewport space.\n * The consumer is responsible for adding overflow handling (e.g. overflow-y: auto) to the content.\n * */\n shouldConstrainSize?: boolean;\n};\n\ntype ContextType = ReturnType<typeof usePopover> | null;\n\nconst PopoverContext = React.createContext<ContextType>(null);\n\nexport const usePopoverContext = () => {\n const context = React.useContext(PopoverContext);\n\n if (context === null) {\n throw new Error('Popover components must be wrapped in <Popover />');\n }\n\n return context;\n};\n\nconst PopoverComponent = ({\n children,\n anchorElement,\n placement,\n isOpen,\n offset,\n anchorPosition,\n hasAnchorPortal: hasAnchorPortalProp,\n shouldCaptureFocus = false,\n initialFocus,\n onOpenChange,\n role,\n closeOnClickOutside = true,\n shouldCloseOnFocusOut,\n isPortaled: isPortaledProp,\n strategy: strategyProp,\n shouldConstrainSize,\n}: PopoverProps) => {\n const isInsideDialog = useIsInsideDialog();\n\n const strategy = isInsideDialog ? 'fixed' : 'absolute';\n const hasAnchorPortal = isInsideDialog;\n const isPortaled = !isInsideDialog;\n\n const popover = usePopover({\n anchorElement,\n anchorElementAsPortalAnchor: hasAnchorPortalProp ?? hasAnchorPortal,\n anchorPosition,\n closeOnClickOutside,\n initialFocus,\n isOpen: isOpen,\n isPortaled: isPortaledProp ?? isPortaled,\n offsetOption: offset,\n onOpenChange: onOpenChange,\n placement: placement ? placementTranslation[placement] : undefined,\n role,\n shouldCaptureFocus,\n shouldCloseOnFocusOut: shouldCloseOnFocusOut ?? closeOnClickOutside,\n shouldConstrainSize,\n strategy: strategyProp ?? strategy,\n });\n\n return (\n <PopoverContext.Provider value={popover}>\n {children}\n </PopoverContext.Provider>\n );\n};\n\ntype PopoverTriggerProps = {\n /** The content of the trigger */\n children: React.ReactNode;\n /** Whether the trigger should render a button element, or pass its props to the child element */\n hasButtonWrapper?: boolean;\n};\n\nconst PopoverTrigger = ({\n children,\n hasButtonWrapper = false,\n ref,\n ...props\n}: CommonProps<'button', PopoverTriggerProps>) => {\n const context = usePopoverContext();\n // Example from floating UI\n // oxlint-disable-next-line @typescript-eslint/no-explicit-any\n const childrenProps = (children as any).props;\n const mergedRefs = useMergeRefs([\n context.refs.setReference,\n ref,\n childrenProps?.ref,\n ]);\n\n // `hasButtonWrapper` allows the user to pass any element as the anchor\n if (hasButtonWrapper && React.isValidElement(children)) {\n return React.cloneElement(\n children,\n context.getReferenceProps({\n ...props,\n ...childrenProps,\n 'data-state': context.isOpen ? 'open' : 'closed',\n ref: mergedRefs,\n }),\n );\n }\n return (\n <button\n ref={context.refs.setReference}\n type=\"button\"\n data-state={context.isOpen ? 'open' : 'closed'}\n {...context.getReferenceProps(props)}\n >\n {children}\n </button>\n );\n};\n\ntype PopoverAnchorProps = {\n children?: React.ReactNode;\n};\n\n/**\n * Use this to separate the anchor visually from the trigger.\n */\nconst PopoverAnchor = ({\n children,\n ref,\n ...props\n}: CommonProps<'div', PopoverAnchorProps>) => {\n const context = usePopoverContext();\n\n // oxlint-disable-next-line @typescript-eslint/no-explicit-any\n const childrenProps = (children as any)?.props;\n const mergedRefs = useMergeRefs([\n context.refs.setPositionReference,\n ref,\n childrenProps?.ref,\n ]);\n\n if (React.isValidElement(children)) {\n return React.cloneElement(children, {\n ...props,\n ...childrenProps,\n ref: mergedRefs,\n });\n }\n\n return (\n <div ref={mergedRefs} {...props}>\n {children}\n </div>\n );\n};\n\ntype PopoverContentProps = {\n children: React.ReactNode;\n className?: string;\n style?: React.CSSProperties;\n};\n\nconst PopoverContent = <T extends React.ElementType = 'div'>({\n as,\n className,\n style,\n children,\n htmlAttributes,\n ref,\n ...restProps\n}: PolymorphicCommonProps<T, PopoverContentProps>) => {\n const { context: floatingContext, ...context } = usePopoverContext();\n\n const refs = useMergeRefs([context.refs.setFloating, ref]);\n\n const { themeClassName } = useNeedleTheme();\n\n const classes = classNames('ndl-popover', themeClassName, className);\n const Component: React.ElementType = as ?? 'div';\n\n // Patch to not get axe errors for the focus guards\n // To be noted is that axe gives us a false positive error here since the focus guards directly pass focus to other elements\n // https://github.com/floating-ui/floating-ui/issues/2462\n usePatchFloatingFocusGuards();\n\n if (!floatingContext.open) {\n return null;\n }\n\n return (\n <ConditionalWrap\n shouldWrap={context.isPortaled}\n wrap={(wrapChildren) => (\n <FloatingPortal\n root={\n (context.anchorElementAsPortalAnchor ?? false)\n ? (context.refs.reference.current as HTMLElement | null)\n : undefined\n }\n >\n {wrapChildren}\n </FloatingPortal>\n )}\n >\n <FloatingFocusManager\n context={floatingContext}\n modal={context.shouldCaptureFocus}\n initialFocus={context.initialFocus}\n closeOnFocusOut={context.shouldCloseOnFocusOut}\n >\n <Component\n className={classes}\n aria-labelledby={context.labelId}\n aria-describedby={context.descriptionId}\n style={{\n ...context.floatingStyles,\n ...context.transitionStyles,\n ...style,\n }}\n ref={refs}\n {...context.getFloatingProps({ ...htmlAttributes })}\n {...restProps}\n >\n {children}\n </Component>\n </FloatingFocusManager>\n </ConditionalWrap>\n );\n};\n\nconst Popover = Object.assign(PopoverComponent, {\n Anchor: PopoverAnchor,\n Content: PopoverContent,\n Trigger: PopoverTrigger,\n});\n\nexport { Popover };\n"]}
1
+ {"version":3,"file":"Popover.js","sourceRoot":"","sources":["../../../src/popover/Popover.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,8CAM4B;AAC5B,4DAAoC;AACpC,kDAA0B;AAM1B,0DAAsD;AACtD,6DAA6D;AAC7D,0DAAwD;AACxD,+CAAgE;AAChE,+EAA4E;AAgB/D,QAAA,oBAAoB,GAAwC;IACvE,yBAAyB,EAAE,WAAW;IACtC,oBAAoB,EAAE,YAAY;IAClC,0BAA0B,EAAE,QAAQ;IACpC,yBAAyB,EAAE,UAAU;IACrC,wBAAwB,EAAE,cAAc;IACxC,yBAAyB,EAAE,OAAO;IAClC,yBAAyB,EAAE,MAAM;IACjC,oBAAoB,EAAE,SAAS;IAC/B,mBAAmB,EAAE,aAAa;IAClC,0BAA0B,EAAE,KAAK;IACjC,wBAAwB,EAAE,WAAW;IACrC,mBAAmB,EAAE,YAAY;CAClC,CAAC;AA8DF,MAAM,cAAc,GAAG,eAAK,CAAC,aAAa,CAAc,IAAI,CAAC,CAAC;AAEvD,MAAM,iBAAiB,GAAG,GAAG,EAAE;IACpC,MAAM,OAAO,GAAG,e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ent":["/*!\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 {\n FloatingFocusManager,\n FloatingPortal,\n type OffsetOptions,\n type Placement,\n useMergeRefs,\n} from '@floating-ui/react';\nimport classNames from 'classnames';\nimport React from 'react';\n\nimport {\n type CommonProps,\n type PolymorphicCommonProps,\n} from '../_common/types';\nimport { ConditionalWrap } from '../conditional-wrap';\nimport { useIsInsideDialog } from '../dialog/dialog-context';\nimport { useNeedleTheme } from '../theme/ThemeProvider';\nimport { type AnchorPosition, usePopover } from './use-popover';\nimport { usePatchFloatingFocusGuards } from './usePatchFloatingFocusGuards';\n\ntype PlacementOptions =\n | 'bottom-end-top-end'\n | 'bottom-start-top-start'\n | 'bottom-middle-top-middle'\n | 'top-end-bottom-end'\n | 'top-start-bottom-start'\n | 'top-middle-bottom-middle'\n | 'bottom-start-bottom-end'\n | 'top-start-top-end'\n | 'middle-start-middle-end'\n | 'bottom-end-bottom-start'\n | 'top-end-top-start'\n | 'middle-end-middle-start';\n\nexport const placementTranslation: Record<PlacementOptions, Placement> = {\n 'bottom-end-bottom-start': 'right-end',\n 'bottom-end-top-end': 'bottom-end',\n 'bottom-middle-top-middle': 'bottom',\n 'bottom-start-bottom-end': 'left-end',\n 'bottom-start-top-start': 'bottom-start',\n 'middle-end-middle-start': 'right',\n 'middle-start-middle-end': 'left',\n 'top-end-bottom-end': 'top-end',\n 'top-end-top-start': 'right-start',\n 'top-middle-bottom-middle': 'top',\n 'top-start-bottom-start': 'top-start',\n 'top-start-top-end': 'left-start',\n};\ntype PopoverProps = {\n /** if the popover is open */\n isOpen?: boolean;\n /** The content of the popover */\n children?: React.ReactNode;\n /**\n * Can be used if the anchor should be separated from the trigger.\n * Note: to visually separate the anchor from the trigger, use the Popover.Anchor component instead.\n */\n anchorElement?: Element | null;\n /** If the anchorPosition is provided the anchorElement will be ignored */\n anchorPosition?: AnchorPosition;\n /**\n * The placement of the floating element is determined by two sets of words. The first set of words specifies the point on the anchor\n * element where the floating element will be attached. The second set of coordinates specifies the point on the floating element that\n * will attach to the anchor element.\n * */\n placement?: PlacementOptions;\n /** can take either a number, an object or a function. Full documentation here: https://floating-ui.com/docs/offset */\n offset?: OffsetOptions;\n /**\n * Called when an internal state change is triggered, when the floating element either opens or closes. It is not called when `isOpen`\n * is updated by the consumer.\n * */\n onOpenChange?: (isOpen: boolean, event?: Event) => void;\n /** Use anchorEl for portal's container. Should be used if the popover is portaled and is inside a Dialog for example. */\n hasAnchorPortal?: boolean;\n /** If the popover should constrain the focus inside the popover while open */\n shouldCaptureFocus?: boolean;\n /** Which element to initially focus. */\n initialFocus?: number | React.RefObject<HTMLElement | null>;\n /** The role of the popover. */\n role?:\n | 'tooltip'\n | 'dialog'\n | 'alertdialog'\n | 'menu'\n | 'listbox'\n | 'grid'\n | 'tree';\n /** If the popover should close when the user clicks outside of it */\n shouldCloseOnClickOutside?: boolean;\n /**\n * If the popover should close when focus moves outside of it, for example when tabbing away or focusing another element.\n * Defaults to the value of `shouldCloseOnClickOutside`.\n * Has no effect when `shouldCaptureFocus` is true, since focus cannot leave the popover.\n */\n shouldCloseOnFocusOut?: boolean;\n /** The strategy of the popover. Fixed should be used when the popover is inside a Dialog. */\n strategy?: 'fixed' | 'absolute';\n /** Whether the content is rendered in a portal */\n isPortaled?: boolean;\n /**\n * When true, limits the popover's max-height and max-width to the available viewport space.\n * The consumer is responsible for adding overflow handling (e.g. overflow-y: auto) to the content.\n * */\n shouldConstrainSize?: boolean;\n};\n\ntype ContextType = ReturnType<typeof usePopover> | null;\n\nconst PopoverContext = React.createContext<ContextType>(null);\n\nexport const usePopoverContext = () => {\n const context = React.useContext(PopoverContext);\n\n if (context === null) {\n throw new Error('Popover components must be wrapped in <Popover />');\n }\n\n return context;\n};\n\nconst PopoverComponent = ({\n children,\n anchorElement,\n placement,\n isOpen,\n offset,\n anchorPosition,\n hasAnchorPortal: hasAnchorPortalProp,\n shouldCaptureFocus = false,\n initialFocus,\n onOpenChange,\n shouldCloseOnClickOutside = true,\n shouldCloseOnFocusOut,\n isPortaled: isPortaledProp,\n strategy: strategyProp,\n role,\n shouldConstrainSize,\n}: PopoverProps) => {\n const isInsideDialog = useIsInsideDialog();\n\n const strategy = isInsideDialog ? 'fixed' : 'absolute';\n const hasAnchorPortal = isInsideDialog;\n const isPortaled = !isInsideDialog;\n\n const popover = usePopover({\n anchorElement,\n anchorPosition,\n hasAnchorElementAsPortalAnchor: hasAnchorPortalProp ?? hasAnchorPortal,\n initialFocus,\n isOpen: isOpen,\n isPortaled: isPortaledProp ?? isPortaled,\n offsetOption: offset,\n onOpenChange: onOpenChange,\n placement: placement ? placementTranslation[placement] : undefined,\n role,\n shouldCaptureFocus,\n shouldCloseOnClickOutside,\n shouldCloseOnFocusOut: shouldCloseOnFocusOut ?? shouldCloseOnClickOutside,\n shouldConstrainSize,\n strategy: strategyProp ?? strategy,\n });\n\n return (\n <PopoverContext.Provider value={popover}>\n {children}\n </PopoverContext.Provider>\n );\n};\n\ntype PopoverTriggerProps = {\n /** The content of the trigger */\n children: React.ReactNode;\n /** Whether the trigger should render a button element, or pass its props to the child element */\n hasButtonWrapper?: boolean;\n};\n\nconst PopoverTrigger = ({\n children,\n hasButtonWrapper = false,\n ref,\n ...props\n}: CommonProps<'button', PopoverTriggerProps>) => {\n const context = usePopoverContext();\n // Example from floating UI\n // oxlint-disable-next-line @typescript-eslint/no-explicit-any\n const childrenProps = (children as any).props;\n const mergedRefs = useMergeRefs([\n context.refs.setReference,\n ref,\n childrenProps?.ref,\n ]);\n\n // `hasButtonWrapper` allows the user to pass any element as the anchor\n if (hasButtonWrapper && React.isValidElement(children)) {\n return React.cloneElement(\n children,\n context.getReferenceProps({\n ...props,\n ...childrenProps,\n 'data-state': context.isOpen ? 'open' : 'closed',\n ref: mergedRefs,\n }),\n );\n }\n return (\n <button\n ref={context.refs.setReference}\n type=\"button\"\n data-state={context.isOpen ? 'open' : 'closed'}\n {...context.getReferenceProps(props)}\n >\n {children}\n </button>\n );\n};\n\ntype PopoverAnchorProps = {\n children?: React.ReactNode;\n};\n\n/**\n * Use this to separate the anchor visually from the trigger.\n */\nconst PopoverAnchor = ({\n children,\n ref,\n ...props\n}: CommonProps<'div', PopoverAnchorProps>) => {\n const context = usePopoverContext();\n\n // oxlint-disable-next-line @typescript-eslint/no-explicit-any\n const childrenProps = (children as any)?.props;\n const mergedRefs = useMergeRefs([\n context.refs.setPositionReference,\n ref,\n childrenProps?.ref,\n ]);\n\n if (React.isValidElement(children)) {\n return React.cloneElement(children, {\n ...props,\n ...childrenProps,\n ref: mergedRefs,\n });\n }\n\n return (\n <div ref={mergedRefs} {...props}>\n {children}\n </div>\n );\n};\n\ntype PopoverContentProps = {\n children: React.ReactNode;\n className?: string;\n style?: React.CSSProperties;\n};\n\nconst PopoverContent = <T extends React.ElementType = 'div'>({\n as,\n className,\n style,\n children,\n htmlAttributes,\n ref,\n ...restProps\n}: PolymorphicCommonProps<T, PopoverContentProps>) => {\n const { context: floatingContext, ...context } = usePopoverContext();\n\n const refs = useMergeRefs([context.refs.setFloating, ref]);\n\n const { themeClassName } = useNeedleTheme();\n\n const classes = classNames('ndl-popover', themeClassName, className);\n const Component: React.ElementType = as ?? 'div';\n\n // Patch to not get axe errors for the focus guards\n // To be noted is that axe gives us a false positive error here since the focus guards directly pass focus to other elements\n // https://github.com/floating-ui/floating-ui/issues/2462\n usePatchFloatingFocusGuards();\n\n if (!floatingContext.open) {\n return null;\n }\n\n return (\n <ConditionalWrap\n shouldWrap={context.isPortaled}\n wrap={(wrapChildren) => (\n <FloatingPortal\n root={\n (context.hasAnchorElementAsPortalAnchor ?? false)\n ? (context.refs.reference.current as HTMLElement | null)\n : undefined\n }\n >\n {wrapChildren}\n </FloatingPortal>\n )}\n >\n <FloatingFocusManager\n context={floatingContext}\n modal={context.shouldCaptureFocus}\n initialFocus={context.initialFocus}\n closeOnFocusOut={context.shouldCloseOnFocusOut}\n >\n <Component\n className={classes}\n style={{\n ...context.floatingStyles,\n ...context.transitionStyles,\n ...style,\n }}\n ref={refs}\n aria-labelledby={context.labelId}\n aria-describedby={context.descriptionId}\n {...context.getFloatingProps({ ...htmlAttributes })}\n {...restProps}\n >\n {children}\n </Component>\n </FloatingFocusManager>\n </ConditionalWrap>\n );\n};\n\nconst Popover = Object.assign(PopoverComponent, {\n Anchor: PopoverAnchor,\n Content: PopoverContent,\n Trigger: PopoverTrigger,\n});\n\nexport { Popover };\n"]}
@@ -28,7 +28,7 @@ const Component = () => {
28
28
  const [isOpen, setIsOpen] = (0, react_2.useState)(false);
29
29
  return ((0, jsx_runtime_1.jsxs)(react_1.Popover, { isOpen: isOpen, onOpenChange: (open) => {
30
30
  setIsOpen(open);
31
- }, children: [(0, jsx_runtime_1.jsx)(react_1.Popover.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.FilledButton, { onClick: () => setIsOpen((prev) => !prev), children: "Open Popover" }) }), (0, jsx_runtime_1.jsx)(react_1.Popover.Content, { className: "n-p-token-16", children: "Popover content" })] }));
31
+ }, children: [(0, jsx_runtime_1.jsx)(react_1.Popover.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.FilledButton, { onClick: () => setIsOpen((prev) => !prev), children: "Open Popover" }) }), (0, jsx_runtime_1.jsx)(react_1.Popover.Content, { className: "p-token-16", children: "Popover content" })] }));
32
32
  };
33
33
  exports.default = Component;
34
34
  //# sourceMappingURL=popover-controlled.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover-controlled.story.js","sourceRoot":"","sources":["../../../../src/popover/stories/popover-controlled.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAyD;AACzD,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAC5C,OAAO,CACL,wBAAC,eAAO,IACN,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE;YACrB,SAAS,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC,aAED,uBAAC,eAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,uBAAC,oBAAY,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,6BAExC,GACC,EAClB,uBAAC,eAAO,CAAC,OAAO,IAAC,SAAS,EAAC,cAAc,gCAEvB,IACV,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { FilledButton, Popover } from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [isOpen, setIsOpen] = useState(false);\n return (\n <Popover\n isOpen={isOpen}\n onOpenChange={(open) => {\n setIsOpen(open);\n }}\n >\n <Popover.Trigger hasButtonWrapper>\n <FilledButton onClick={() => setIsOpen((prev) => !prev)}>\n Open Popover\n </FilledButton>\n </Popover.Trigger>\n <Popover.Content className=\"n-p-token-16\">\n Popover content\n </Popover.Content>\n </Popover>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"popover-controlled.story.js","sourceRoot":"","sources":["../../../../src/popover/stories/popover-controlled.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAyD;AACzD,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAC5C,OAAO,CACL,wBAAC,eAAO,IACN,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE;YACrB,SAAS,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC,aAED,uBAAC,eAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,uBAAC,oBAAY,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,6BAExC,GACC,EAClB,uBAAC,eAAO,CAAC,OAAO,IAAC,SAAS,EAAC,YAAY,gCAAkC,IACjE,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { FilledButton, Popover } from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [isOpen, setIsOpen] = useState(false);\n return (\n <Popover\n isOpen={isOpen}\n onOpenChange={(open) => {\n setIsOpen(open);\n }}\n >\n <Popover.Trigger hasButtonWrapper>\n <FilledButton onClick={() => setIsOpen((prev) => !prev)}>\n Open Popover\n </FilledButton>\n </Popover.Trigger>\n <Popover.Content className=\"p-token-16\">Popover content</Popover.Content>\n </Popover>\n );\n};\n\nexport default Component;\n"]}
@@ -58,7 +58,7 @@ const offsetTranslation = {
58
58
  };
59
59
  const Component = () => {
60
60
  const [selectedPosition, setSelectedPosition] = (0, react_2.useState)(offsetOptions[0].value);
61
- return ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-col n-gap-token-32 n-items-center", children: [(0, jsx_runtime_1.jsxs)(react_1.Popover, { offset: offsetTranslation[selectedPosition], children: [(0, jsx_runtime_1.jsx)(react_1.Popover.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.FilledButton, { children: "Open Popover" }) }), (0, jsx_runtime_1.jsx)(react_1.Popover.Content, { className: "n-p-token-16", children: "Popover content" })] }), (0, jsx_runtime_1.jsx)(react_1.Select, { type: "select", label: "Example positions", selectProps: {
61
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-token-32 items-center", children: [(0, jsx_runtime_1.jsxs)(react_1.Popover, { offset: offsetTranslation[selectedPosition], children: [(0, jsx_runtime_1.jsx)(react_1.Popover.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.FilledButton, { children: "Open Popover" }) }), (0, jsx_runtime_1.jsx)(react_1.Popover.Content, { className: "p-token-16", children: "Popover content" })] }), (0, jsx_runtime_1.jsx)(react_1.Select, { type: "select", label: "Example positions", selectProps: {
62
62
  defaultValue: offsetOptions[0],
63
63
  onChange: (option) => {
64
64
  if (option) {
@@ -1 +1 @@
1
- {"version":3,"file":"popover-custom-offset.story.js","sourceRoot":"","sources":["../../../../src/popover/stories/popover-custom-offset.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAiE;AACjE,iCAAiC;AAEjC,MAAM,aAAa,GAAG;IACpB;QACE,KAAK,EAAE,gCAAgC;QACvC,KAAK,EAAE,gCAAgC;KACxC;IACD;QACE,KAAK,EAAE,yCAAyC;QAChD,KAAK,EAAE,yCAAyC;KACjD;IACD;QACE,KAAK,EAAE,2CAA2C;QAClD,KAAK,EAAE,2CAA2C;KACnD;IACD;QACE,KAAK,EAAE,kCAAkC;QACzC,KAAK,EAAE,kCAAkC;KAC1C;CACF,CAAC;AAEF,MAAM,iBAAiB,GAGnB;IACF,yCAAyC,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;QACzD,SAAS,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK;KAClC,CAAC;IACF,gCAAgC,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;QAChD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,KAAK;KACjC,CAAC;IACF,2CAA2C,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;QAC3D,SAAS,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK;KACjC,CAAC;IACF,kCAAkC,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;QAClD,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK;KAChC,CAAC;CACH,CAAC;AAEF,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,IAAA,gBAAQ,EACtD,aAAa,CAAC,CAAC,CAAC,CAAC,KAAK,CACvB,CAAC;IAEF,OAAO,CACL,iCAAK,SAAS,EAAC,iDAAiD,aAC9D,wBAAC,eAAO,IAAC,MAAM,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,aAClD,uBAAC,eAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,uBAAC,oBAAY,+BAA4B,GACzB,EAClB,uBAAC,eAAO,CAAC,OAAO,IAAC,SAAS,EAAC,cAAc,gCAEvB,IACV,EAEV,uBAAC,cAAM,IACL,IAAI,EAAC,QAAQ,EACb,KAAK,EAAC,mBAAmB,EACzB,WAAW,EAAE;oBACX,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC;oBAC9B,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE;wBACnB,IAAI,MAAM,EAAE,CAAC;4BACX,mBAAmB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;wBACpC,CAAC;oBACH,CAAC;oBACD,OAAO,EAAE,aAAa;iBACvB,GACD,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { FilledButton, Popover, Select } from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst offsetOptions = [\n {\n label: 'crossAxis-anchor-element-width',\n value: 'crossAxis-anchor-element-width',\n },\n {\n label: 'crossAxis-anchor-element-negative-width',\n value: 'crossAxis-anchor-element-negative-width',\n },\n {\n label: 'crossAxis-floating-element-negative-width',\n value: 'crossAxis-floating-element-negative-width',\n },\n {\n label: 'crossAxis-floating-element-width',\n value: 'crossAxis-floating-element-width',\n },\n];\n\nconst offsetTranslation: Record<\n string,\n React.ComponentProps<typeof Popover>['offset']\n> = {\n 'crossAxis-anchor-element-negative-width': ({ rects }) => ({\n crossAxis: -rects.reference.width,\n }),\n 'crossAxis-anchor-element-width': ({ rects }) => ({\n crossAxis: rects.reference.width,\n }),\n 'crossAxis-floating-element-negative-width': ({ rects }) => ({\n crossAxis: -rects.floating.width,\n }),\n 'crossAxis-floating-element-width': ({ rects }) => ({\n crossAxis: rects.floating.width,\n }),\n};\n\nconst Component = () => {\n const [selectedPosition, setSelectedPosition] = useState(\n offsetOptions[0].value,\n );\n\n return (\n <div className=\"n-flex n-flex-col n-gap-token-32 n-items-center\">\n <Popover offset={offsetTranslation[selectedPosition]}>\n <Popover.Trigger hasButtonWrapper>\n <FilledButton>Open Popover</FilledButton>\n </Popover.Trigger>\n <Popover.Content className=\"n-p-token-16\">\n Popover content\n </Popover.Content>\n </Popover>\n\n <Select\n type=\"select\"\n label=\"Example positions\"\n selectProps={{\n defaultValue: offsetOptions[0],\n onChange: (option) => {\n if (option) {\n setSelectedPosition(option.value);\n }\n },\n options: offsetOptions,\n }}\n />\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"popover-custom-offset.story.js","sourceRoot":"","sources":["../../../../src/popover/stories/popover-custom-offset.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAiE;AACjE,iCAAiC;AAEjC,MAAM,aAAa,GAAG;IACpB;QACE,KAAK,EAAE,gCAAgC;QACvC,KAAK,EAA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AC,QAAQ,EACb,KAAK,EAAC,mBAAmB,EACzB,WAAW,EAAE;oBACX,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC;oBAC9B,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE;wBACnB,IAAI,MAAM,EAAE,CAAC;4BACX,mBAAmB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;wBACpC,CAAC;oBACH,CAAC;oBACD,OAAO,EAAE,aAAa;iBACvB,GACD,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { FilledButton, Popover, Select } from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst offsetOptions = [\n {\n label: 'crossAxis-anchor-element-width',\n value: 'crossAxis-anchor-element-width',\n },\n {\n label: 'crossAxis-anchor-element-negative-width',\n value: 'crossAxis-anchor-element-negative-width',\n },\n {\n label: 'crossAxis-floating-element-negative-width',\n value: 'crossAxis-floating-element-negative-width',\n },\n {\n label: 'crossAxis-floating-element-width',\n value: 'crossAxis-floating-element-width',\n },\n];\n\nconst offsetTranslation: Record<\n string,\n React.ComponentProps<typeof Popover>['offset']\n> = {\n 'crossAxis-anchor-element-negative-width': ({ rects }) => ({\n crossAxis: -rects.reference.width,\n }),\n 'crossAxis-anchor-element-width': ({ rects }) => ({\n crossAxis: rects.reference.width,\n }),\n 'crossAxis-floating-element-negative-width': ({ rects }) => ({\n crossAxis: -rects.floating.width,\n }),\n 'crossAxis-floating-element-width': ({ rects }) => ({\n crossAxis: rects.floating.width,\n }),\n};\n\nconst Component = () => {\n const [selectedPosition, setSelectedPosition] = useState(\n offsetOptions[0].value,\n );\n\n return (\n <div className=\"flex flex-col gap-token-32 items-center\">\n <Popover offset={offsetTranslation[selectedPosition]}>\n <Popover.Trigger hasButtonWrapper>\n <FilledButton>Open Popover</FilledButton>\n </Popover.Trigger>\n <Popover.Content className=\"p-token-16\">\n Popover content\n </Popover.Content>\n </Popover>\n\n <Select\n type=\"select\"\n label=\"Example positions\"\n selectProps={{\n defaultValue: offsetOptions[0],\n onChange: (option) => {\n if (option) {\n setSelectedPosition(option.value);\n }\n },\n options: offsetOptions,\n }}\n />\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -24,7 +24,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
24
24
  require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
25
  const react_1 = require("@neo4j-ndl/react");
26
26
  const Component = () => {
27
- return ((0, jsx_runtime_1.jsxs)(react_1.Popover, { children: [(0, jsx_runtime_1.jsx)(react_1.Popover.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.FilledButton, { children: "Open Popover" }) }), (0, jsx_runtime_1.jsx)(react_1.Popover.Content, { className: "n-p-token-16", children: "Popover content" })] }));
27
+ return ((0, jsx_runtime_1.jsxs)(react_1.Popover, { children: [(0, jsx_runtime_1.jsx)(react_1.Popover.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.FilledButton, { children: "Open Popover" }) }), (0, jsx_runtime_1.jsx)(react_1.Popover.Content, { className: "p-token-16", children: "Popover content" })] }));
28
28
  };
29
29
  exports.default = Component;
30
30
  //# sourceMappingURL=popover-default.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover-default.story.js","sourceRoot":"","sources":["../../../../src/popover/stories/popover-default.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAyD;AAEzD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,wBAAC,eAAO,eACN,uBAAC,eAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,uBAAC,oBAAY,+BAA4B,GACzB,EAClB,uBAAC,eAAO,CAAC,OAAO,IAAC,SAAS,EAAC,cAAc,gCAEvB,IACV,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { FilledButton, Popover } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <Popover>\n <Popover.Trigger hasButtonWrapper>\n <FilledButton>Open Popover</FilledButton>\n </Popover.Trigger>\n <Popover.Content className=\"n-p-token-16\">\n Popover content\n </Popover.Content>\n </Popover>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"popover-default.story.js","sourceRoot":"","sources":["../../../../src/popover/stories/popover-default.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAyD;AAEzD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,wBAAC,eAAO,eACN,uBAAC,eAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,uBAAC,oBAAY,+BAA4B,GACzB,EAClB,uBAAC,eAAO,CAAC,OAAO,IAAC,SAAS,EAAC,YAAY,gCAAkC,IACjE,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { FilledButton, Popover } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <Popover>\n <Popover.Trigger hasButtonWrapper>\n <FilledButton>Open Popover</FilledButton>\n </Popover.Trigger>\n <Popover.Content className=\"p-token-16\">Popover content</Popover.Content>\n </Popover>\n );\n};\n\nexport default Component;\n"]}
@@ -27,7 +27,7 @@ const react_2 = require("react");
27
27
  const Component = () => {
28
28
  const [isDialogOpen, setDialogOpen] = (0, react_2.useState)(false);
29
29
  const closeDialog = () => setDialogOpen(false);
30
- return ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-justify-center", children: [(0, jsx_runtime_1.jsx)(react_1.FilledButton, { onClick: () => setDialogOpen(true), children: "Open Dialog" }), (0, jsx_runtime_1.jsxs)(react_1.Dialog, { isOpen: isDialogOpen, onClose: closeDialog, children: [(0, jsx_runtime_1.jsx)(react_1.Dialog.Header, { children: "Dialog" }), (0, jsx_runtime_1.jsx)(react_1.Dialog.Content, { children: (0, jsx_runtime_1.jsxs)(react_1.Popover, { children: [(0, jsx_runtime_1.jsx)(react_1.Popover.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.FilledButton, { className: "n-mx-auto", children: "Open Popover" }) }), (0, jsx_runtime_1.jsx)(react_1.Popover.Content, { className: "n-p-token-16", children: "Custom Popover content" })] }) })] })] }));
30
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-center", children: [(0, jsx_runtime_1.jsx)(react_1.FilledButton, { onClick: () => setDialogOpen(true), children: "Open Dialog" }), (0, jsx_runtime_1.jsxs)(react_1.Dialog, { isOpen: isDialogOpen, onClose: closeDialog, children: [(0, jsx_runtime_1.jsx)(react_1.Dialog.Header, { children: "Dialog" }), (0, jsx_runtime_1.jsx)(react_1.Dialog.Content, { children: (0, jsx_runtime_1.jsxs)(react_1.Popover, { children: [(0, jsx_runtime_1.jsx)(react_1.Popover.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.FilledButton, { className: "mx-auto", children: "Open Popover" }) }), (0, jsx_runtime_1.jsx)(react_1.Popover.Content, { className: "p-token-16", children: "Custom Popover content" })] }) })] })] }));
31
31
  };
32
32
  exports.default = Component;
33
33
  //# sourceMappingURL=popover-in-dialog.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover-in-dialog.story.js","sourceRoot":"","sources":["../../../../src/popover/stories/popover-in-dialog.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAiE;AACjE,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,YAAY,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IACtD,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC/C,OAAO,CACL,iCAAK,SAAS,EAAC,yBAAyB,aACtC,uBAAC,oBAAY,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,4BAEjC,EACf,wBAAC,cAAM,IAAC,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,WAAW,aAChD,uBAAC,cAAM,CAAC,MAAM,yBAAuB,EACrC,uBAAC,cAAM,CAAC,OAAO,cACb,wBAAC,eAAO,eACN,uBAAC,eAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,uBAAC,oBAAY,IAAC,SAAS,EAAC,WAAW,6BAA4B,GAC/C,EAClB,uBAAC,eAAO,CAAC,OAAO,IAAC,SAAS,EAAC,cAAc,uCAEvB,IACV,GACK,IACV,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Dialog, FilledButton, Popover } from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [isDialogOpen, setDialogOpen] = useState(false);\n const closeDialog = () => setDialogOpen(false);\n return (\n <div className=\"n-flex n-justify-center\">\n <FilledButton onClick={() => setDialogOpen(true)}>\n Open Dialog\n </FilledButton>\n <Dialog isOpen={isDialogOpen} onClose={closeDialog}>\n <Dialog.Header>Dialog</Dialog.Header>\n <Dialog.Content>\n <Popover>\n <Popover.Trigger hasButtonWrapper>\n <FilledButton className=\"n-mx-auto\">Open Popover</FilledButton>\n </Popover.Trigger>\n <Popover.Content className=\"n-p-token-16\">\n Custom Popover content\n </Popover.Content>\n </Popover>\n </Dialog.Content>\n </Dialog>\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"popover-in-dialog.story.js","sourceRoot":"","sources":["../../../../src/popover/stories/popover-in-dialog.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAiE;AACjE,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,YAAY,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IACtD,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC/C,OAAO,CACL,iCAAK,SAAS,EAAC,qBAAqB,aAClC,uBAAC,oBAAY,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,4BAEjC,EACf,wBAAC,cAAM,IAAC,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,WAAW,aAChD,uBAAC,cAAM,CAAC,MAAM,yBAAuB,EACrC,uBAAC,cAAM,CAAC,OAAO,cACb,wBAAC,eAAO,eACN,uBAAC,eAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,uBAAC,oBAAY,IAAC,SAAS,EAAC,SAAS,6BAA4B,GAC7C,EAClB,uBAAC,eAAO,CAAC,OAAO,IAAC,SAAS,EAAC,YAAY,uCAErB,IACV,GACK,IACV,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Dialog, FilledButton, Popover } from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [isDialogOpen, setDialogOpen] = useState(false);\n const closeDialog = () => setDialogOpen(false);\n return (\n <div className=\"flex justify-center\">\n <FilledButton onClick={() => setDialogOpen(true)}>\n Open Dialog\n </FilledButton>\n <Dialog isOpen={isDialogOpen} onClose={closeDialog}>\n <Dialog.Header>Dialog</Dialog.Header>\n <Dialog.Content>\n <Popover>\n <Popover.Trigger hasButtonWrapper>\n <FilledButton className=\"mx-auto\">Open Popover</FilledButton>\n </Popover.Trigger>\n <Popover.Content className=\"p-token-16\">\n Custom Popover content\n </Popover.Content>\n </Popover>\n </Dialog.Content>\n </Dialog>\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -24,7 +24,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
24
24
  require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
25
  const react_1 = require("@neo4j-ndl/react");
26
26
  const Component = () => {
27
- return ((0, jsx_runtime_1.jsxs)(react_1.Popover, { children: [(0, jsx_runtime_1.jsx)(react_1.Popover.Trigger, { children: (0, jsx_runtime_1.jsx)("div", { children: "Open Popover" }) }), (0, jsx_runtime_1.jsx)(react_1.Popover.Content, { className: "n-p-token-16", children: "Popover content" })] }));
27
+ return ((0, jsx_runtime_1.jsxs)(react_1.Popover, { children: [(0, jsx_runtime_1.jsx)(react_1.Popover.Trigger, { children: (0, jsx_runtime_1.jsx)("div", { children: "Open Popover" }) }), (0, jsx_runtime_1.jsx)(react_1.Popover.Content, { className: "p-token-16", children: "Popover content" })] }));
28
28
  };
29
29
  exports.default = Component;
30
30
  //# sourceMappingURL=popover-no-button-wrapper.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover-no-button-wrapper.story.js","sourceRoot":"","sources":["../../../../src/popover/stories/popover-no-button-wrapper.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA2C;AAE3C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,wBAAC,eAAO,eACN,uBAAC,eAAO,CAAC,OAAO,cACd,2DAAuB,GACP,EAClB,uBAAC,eAAO,CAAC,OAAO,IAAC,SAAS,EAAC,cAAc,gCAEvB,IACV,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Popover } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <Popover>\n <Popover.Trigger>\n <div>Open Popover</div>\n </Popover.Trigger>\n <Popover.Content className=\"n-p-token-16\">\n Popover content\n </Popover.Content>\n </Popover>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"popover-no-button-wrapper.story.js","sourceRoot":"","sources":["../../../../src/popover/stories/popover-no-button-wrapper.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA2C;AAE3C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,wBAAC,eAAO,eACN,uBAAC,eAAO,CAAC,OAAO,cACd,2DAAuB,GACP,EAClB,uBAAC,eAAO,CAAC,OAAO,IAAC,SAAS,EAAC,YAAY,gCAAkC,IACjE,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Popover } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <Popover>\n <Popover.Trigger>\n <div>Open Popover</div>\n </Popover.Trigger>\n <Popover.Content className=\"p-token-16\">Popover content</Popover.Content>\n </Popover>\n );\n};\n\nexport default Component;\n"]}
@@ -26,7 +26,7 @@ const react_1 = require("@neo4j-ndl/react");
26
26
  const react_2 = require("react");
27
27
  const Component = () => {
28
28
  const [isOpen, setIsOpen] = (0, react_2.useState)(false);
29
- return ((0, jsx_runtime_1.jsx)("div", { className: "n-flex n-justify-between n-w-full", children: (0, jsx_runtime_1.jsxs)(react_1.Popover, { isOpen: isOpen, onOpenChange: (open) => setIsOpen(open), children: [(0, jsx_runtime_1.jsx)(react_1.Popover.Anchor, { children: (0, jsx_runtime_1.jsx)("div", { children: "Anchor Element" }) }), (0, jsx_runtime_1.jsx)(react_1.Popover.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.FilledButton, { onClick: () => setIsOpen(true), children: "Click to open popover" }) }), (0, jsx_runtime_1.jsx)(react_1.Popover.Content, { className: "n-p-token-16", children: "Popover content" })] }) }));
29
+ return ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-between w-full", children: (0, jsx_runtime_1.jsxs)(react_1.Popover, { isOpen: isOpen, onOpenChange: (open) => setIsOpen(open), children: [(0, jsx_runtime_1.jsx)(react_1.Popover.Anchor, { children: (0, jsx_runtime_1.jsx)("div", { children: "Anchor Element" }) }), (0, jsx_runtime_1.jsx)(react_1.Popover.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.FilledButton, { onClick: () => setIsOpen(true), children: "Click to open popover" }) }), (0, jsx_runtime_1.jsx)(react_1.Popover.Content, { className: "p-token-16", children: "Popover content" })] }) }));
30
30
  };
31
31
  exports.default = Component;
32
32
  //# sourceMappingURL=popover-separate-anchor.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover-separate-anchor.story.js","sourceRoot":"","sources":["../../../../src/popover/stories/popover-separate-anchor.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAyD;AACzD,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAC5C,OAAO,CACL,gCAAK,SAAS,EAAC,mCAAmC,YAChD,wBAAC,eAAO,IAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,aAC9D,uBAAC,eAAO,CAAC,MAAM,cACb,6DAAyB,GACV,EACjB,uBAAC,eAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,uBAAC,oBAAY,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,sCAE7B,GACC,EAClB,uBAAC,eAAO,CAAC,OAAO,IAAC,SAAS,EAAC,cAAc,gCAEvB,IACV,GACN,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { FilledButton, Popover } from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [isOpen, setIsOpen] = useState(false);\n return (\n <div className=\"n-flex n-justify-between n-w-full\">\n <Popover isOpen={isOpen} onOpenChange={(open) => setIsOpen(open)}>\n <Popover.Anchor>\n <div>Anchor Element</div>\n </Popover.Anchor>\n <Popover.Trigger hasButtonWrapper>\n <FilledButton onClick={() => setIsOpen(true)}>\n Click to open popover\n </FilledButton>\n </Popover.Trigger>\n <Popover.Content className=\"n-p-token-16\">\n Popover content\n </Popover.Content>\n </Popover>\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"popover-separate-anchor.story.js","sourceRoot":"","sources":["../../../../src/popover/stories/popover-separate-anchor.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAyD;AACzD,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAC5C,OAAO,CACL,gCAAK,SAAS,EAAC,6BAA6B,YAC1C,wBAAC,eAAO,IAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,aAC9D,uBAAC,eAAO,CAAC,MAAM,cACb,6DAAyB,GACV,EACjB,uBAAC,eAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,uBAAC,oBAAY,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,sCAE7B,GACC,EAClB,uBAAC,eAAO,CAAC,OAAO,IAAC,SAAS,EAAC,YAAY,gCAErB,IACV,GACN,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { FilledButton, Popover } from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [isOpen, setIsOpen] = useState(false);\n return (\n <div className=\"flex justify-between w-full\">\n <Popover isOpen={isOpen} onOpenChange={(open) => setIsOpen(open)}>\n <Popover.Anchor>\n <div>Anchor Element</div>\n </Popover.Anchor>\n <Popover.Trigger hasButtonWrapper>\n <FilledButton onClick={() => setIsOpen(true)}>\n Click to open popover\n </FilledButton>\n </Popover.Trigger>\n <Popover.Content className=\"p-token-16\">\n Popover content\n </Popover.Content>\n </Popover>\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -24,7 +24,7 @@ exports.usePopover = usePopover;
24
24
  const react_1 = require("@floating-ui/react");
25
25
  const base_1 = require("@neo4j-ndl/base");
26
26
  const react_2 = require("react");
27
- function usePopover({ isInitialOpen = false, placement = 'bottom', isOpen: controlledOpen, onOpenChange: setControlledOpen, offsetOption = 10, anchorElement, anchorPosition, anchorElementAsPortalAnchor, shouldCaptureFocus, initialFocus, role: roleProp, closeOnClickOutside, closeOnReferencePress, shouldCloseOnFocusOut, returnFocus, strategy = 'absolute', isPortaled = true, shouldConstrainSize = false, } = {}) {
27
+ function usePopover({ isInitialOpen = false, placement = 'bottom', isOpen: controlledOpen, onOpenChange: setControlledOpen, offsetOption = 10, anchorElement, anchorPosition, hasAnchorElementAsPortalAnchor, shouldCaptureFocus, initialFocus, role: roleProp, shouldCloseOnClickOutside, shouldCloseOnReferencePress, shouldCloseOnFocusOut, returnFocus, strategy = 'absolute', isPortaled = true, shouldConstrainSize = false, } = {}) {
28
28
  var _a;
29
29
  // Internal state for uncontrolled mode (no `isOpen` prop provided).
30
30
  const [isOpenUncontrolled, setIsOpenUncontrolled] = (0, react_2.useState)(isInitialOpen);
@@ -78,12 +78,10 @@ function usePopover({ isInitialOpen = false, placement = 'bottom', isOpen: contr
78
78
  enabled: controlledOpen === undefined,
79
79
  });
80
80
  const dismiss = (0, react_1.useDismiss)(context, {
81
- outsidePress: closeOnClickOutside,
82
- referencePress: closeOnReferencePress,
83
- });
84
- const role = (0, react_1.useRole)(context, {
85
- role: roleProp,
81
+ outsidePress: shouldCloseOnClickOutside,
82
+ referencePress: shouldCloseOnReferencePress,
86
83
  });
84
+ const role = (0, react_1.useRole)(context, { role: roleProp });
87
85
  const clientPoint = (0, react_1.useClientPoint)(context, {
88
86
  enabled: anchorPosition !== undefined,
89
87
  // oxlint-disable-next-line id-length
@@ -95,8 +93,8 @@ function usePopover({ isInitialOpen = false, placement = 'bottom', isOpen: contr
95
93
  const { styles: transitionStyles } = (0, react_1.useTransitionStyles)(context, {
96
94
  duration: (_a = Number.parseInt(base_1.tokens.motion.duration.quick)) !== null && _a !== void 0 ? _a : 0,
97
95
  });
98
- return (0, react_2.useMemo)(() => (Object.assign(Object.assign(Object.assign({}, data), interactions), { anchorElementAsPortalAnchor,
99
- descriptionId,
96
+ return (0, react_2.useMemo)(() => (Object.assign(Object.assign(Object.assign({}, data), interactions), { descriptionId,
97
+ hasAnchorElementAsPortalAnchor,
100
98
  initialFocus,
101
99
  isOpen,
102
100
  isPortaled,
@@ -113,7 +111,7 @@ function usePopover({ isInitialOpen = false, placement = 'bottom', isOpen: contr
113
111
  transitionStyles,
114
112
  labelId,
115
113
  descriptionId,
116
- anchorElementAsPortalAnchor,
114
+ hasAnchorElementAsPortalAnchor,
117
115
  shouldCaptureFocus,
118
116
  shouldCloseOnFocusOut,
119
117
  initialFocus,