@neo4j-ndl/react 4.25.7 → 5.0.0-alpha.0.3d763f7

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 (1185) hide show
  1. package/lib/LICENSES.txt +3453 -9363
  2. package/lib/NOTICE.txt +1385 -1963
  3. package/lib/cjs/_generated/style-rules/index.js +5 -11
  4. package/lib/cjs/_generated/style-rules/index.js.map +1 -1
  5. package/lib/cjs/_generated/style-rules/literal-guards.js +50 -0
  6. package/lib/cjs/_generated/style-rules/literal-guards.js.map +1 -0
  7. package/lib/cjs/_generated/style-rules/literal-schemas.js +6 -21
  8. package/lib/cjs/_generated/style-rules/literal-schemas.js.map +1 -1
  9. package/lib/cjs/{text-overflow/index.js → _generated/style-rules/literal-types.js} +9 -6
  10. package/lib/cjs/_generated/style-rules/literal-types.js.map +1 -0
  11. package/lib/cjs/_generated/style-rules/numeric-utils.js.map +1 -1
  12. package/lib/cjs/_generated/style-rules/range-utils.js.map +1 -1
  13. package/lib/cjs/ai/presence/stories/ai-presence-default.story.js +1 -1
  14. package/lib/cjs/ai/presence/stories/ai-presence-default.story.js.map +1 -1
  15. package/lib/cjs/ai/presence/stories/ai-presence-thinking.story.js +1 -1
  16. package/lib/cjs/ai/presence/stories/ai-presence-thinking.story.js.map +1 -1
  17. package/lib/cjs/ai/reasoning/Reasoning.js +1 -1
  18. package/lib/cjs/ai/reasoning/Reasoning.js.map +1 -1
  19. package/lib/cjs/ai/reasoning/stories/reasoning-full.story.js +1 -1
  20. package/lib/cjs/ai/reasoning/stories/reasoning-full.story.js.map +1 -1
  21. package/lib/cjs/ai/response/Response.js +56 -2
  22. package/lib/cjs/ai/response/Response.js.map +1 -1
  23. package/lib/cjs/ai/response/stories/response-fixtures.js +86 -0
  24. package/lib/cjs/ai/response/stories/response-fixtures.js.map +1 -0
  25. package/lib/cjs/ai/response/stories/response-full-example.story.js +3 -3
  26. package/lib/cjs/ai/response/stories/response-full-example.story.js.map +1 -1
  27. package/lib/cjs/ai/suggestion/stories/suggestion-sizes.story.js +1 -1
  28. package/lib/cjs/ai/suggestion/stories/suggestion-sizes.story.js.map +1 -1
  29. package/lib/cjs/ai/user-bubble/stories/user-bubble-and-files.story.js +1 -1
  30. package/lib/cjs/ai/user-bubble/stories/user-bubble-and-files.story.js.map +1 -1
  31. package/lib/cjs/announcement-banner/stories/announcement-banner-custom-icons.story.js +1 -1
  32. package/lib/cjs/announcement-banner/stories/announcement-banner-custom-icons.story.js.map +1 -1
  33. package/lib/cjs/announcement-banner/stories/announcement-banner-injected-non-urgent.story.js +1 -1
  34. package/lib/cjs/announcement-banner/stories/announcement-banner-injected-non-urgent.story.js.map +1 -1
  35. package/lib/cjs/announcement-banner/stories/announcement-banner-injected-urgent.story.js +1 -1
  36. package/lib/cjs/announcement-banner/stories/announcement-banner-injected-urgent.story.js.map +1 -1
  37. package/lib/cjs/announcement-banner/stories/announcement-banner-present-at-page-render.story.js +1 -1
  38. package/lib/cjs/announcement-banner/stories/announcement-banner-present-at-page-render.story.js.map +1 -1
  39. package/lib/cjs/announcement-banner/stories/announcement-banner-variants.story.js +1 -1
  40. package/lib/cjs/announcement-banner/stories/announcement-banner-variants.story.js.map +1 -1
  41. package/lib/cjs/announcement-banner/stories/announcement-banner-with-page-content.story.js +1 -1
  42. package/lib/cjs/announcement-banner/stories/announcement-banner-with-page-content.story.js.map +1 -1
  43. package/lib/cjs/avatar/stories/avatar-custom-icon.story.js +1 -1
  44. package/lib/cjs/avatar/stories/avatar-custom-icon.story.js.map +1 -1
  45. package/lib/cjs/avatar/stories/avatar-shapes.story.js +1 -1
  46. package/lib/cjs/avatar/stories/avatar-shapes.story.js.map +1 -1
  47. package/lib/cjs/avatar/stories/avatar-sizes.story.js +1 -1
  48. package/lib/cjs/avatar/stories/avatar-sizes.story.js.map +1 -1
  49. package/lib/cjs/avatar/stories/avatar-statuses.story.js +1 -1
  50. package/lib/cjs/avatar/stories/avatar-statuses.story.js.map +1 -1
  51. package/lib/cjs/avatar/stories/avatar-types.story.js +1 -1
  52. package/lib/cjs/avatar/stories/avatar-types.story.js.map +1 -1
  53. package/lib/cjs/banner/stories/banner-variants.story.js +1 -1
  54. package/lib/cjs/banner/stories/banner-variants.story.js.map +1 -1
  55. package/lib/cjs/banner/stories/banner-with-icons.story.js +1 -1
  56. package/lib/cjs/banner/stories/banner-with-icons.story.js.map +1 -1
  57. package/lib/cjs/breadcrumbs/stories/breadcrumbs-header.story.js +1 -1
  58. package/lib/cjs/breadcrumbs/stories/breadcrumbs-header.story.js.map +1 -1
  59. package/lib/cjs/button/ButtonBase.js +1 -3
  60. package/lib/cjs/button/ButtonBase.js.map +1 -1
  61. package/lib/cjs/button/stories/button-sizes.story.js +1 -1
  62. package/lib/cjs/button/stories/button-sizes.story.js.map +1 -1
  63. package/lib/cjs/button/stories/button-variants.story.js +1 -1
  64. package/lib/cjs/button/stories/button-variants.story.js.map +1 -1
  65. package/lib/cjs/checkbox/stories/checkbox-full.story.js +2 -2
  66. package/lib/cjs/checkbox/stories/checkbox-full.story.js.map +1 -1
  67. package/lib/cjs/clean-icon-button/stories/clean-icon-button-keyboard-display.story.js +1 -1
  68. package/lib/cjs/clean-icon-button/stories/clean-icon-button-keyboard-display.story.js.map +1 -1
  69. package/lib/cjs/clean-icon-button/stories/clean-icon-button-sizes.story.js +1 -1
  70. package/lib/cjs/clean-icon-button/stories/clean-icon-button-sizes.story.js.map +1 -1
  71. package/lib/cjs/clean-icon-button/stories/clean-icon-button-tone.story.js +1 -1
  72. package/lib/cjs/clean-icon-button/stories/clean-icon-button-tone.story.js.map +1 -1
  73. package/lib/cjs/clipboard-button/stories/clipboard-button-sizes.story.js +1 -1
  74. package/lib/cjs/clipboard-button/stories/clipboard-button-sizes.story.js.map +1 -1
  75. package/lib/cjs/code-block/CodeBlock.js +3 -7
  76. package/lib/cjs/code-block/CodeBlock.js.map +1 -1
  77. package/lib/cjs/code-block/stories/code-disabled.story.js +2 -2
  78. package/lib/cjs/code-block/stories/code-disabled.story.js.map +1 -1
  79. package/lib/cjs/code-block/stories/code-full.story.js +2 -2
  80. package/lib/cjs/code-block/stories/code-full.story.js.map +1 -1
  81. package/lib/cjs/code-block/stories/code-languages.story.js +1 -1
  82. package/lib/cjs/code-block/stories/code-languages.story.js.map +1 -1
  83. package/lib/cjs/code-block/stories/code-with-actions.story.js +2 -2
  84. package/lib/cjs/code-block/stories/code-with-actions.story.js.map +1 -1
  85. package/lib/cjs/color-picker/ColorPicker.js +0 -3
  86. package/lib/cjs/color-picker/ColorPicker.js.map +1 -1
  87. package/lib/cjs/color-picker/stories/color-picker-dialog.story.js +1 -1
  88. package/lib/cjs/color-picker/stories/color-picker-dialog.story.js.map +1 -1
  89. package/lib/cjs/color-picker/stories/color-picker-popover.story.js +1 -1
  90. package/lib/cjs/color-picker/stories/color-picker-popover.story.js.map +1 -1
  91. package/lib/cjs/combobox/stories/combobox-action-on-select.story.js +1 -1
  92. package/lib/cjs/combobox/stories/combobox-action-on-select.story.js.map +1 -1
  93. package/lib/cjs/combobox/stories/combobox-actions.story.js +1 -1
  94. package/lib/cjs/combobox/stories/combobox-actions.story.js.map +1 -1
  95. package/lib/cjs/combobox/stories/combobox-async.story.js +2 -2
  96. package/lib/cjs/combobox/stories/combobox-async.story.js.map +1 -1
  97. package/lib/cjs/combobox/stories/combobox-disabled.story.js +1 -1
  98. package/lib/cjs/combobox/stories/combobox-disabled.story.js.map +1 -1
  99. package/lib/cjs/combobox/stories/combobox-fluid.story.js +1 -1
  100. package/lib/cjs/combobox/stories/combobox-fluid.story.js.map +1 -1
  101. package/lib/cjs/combobox/stories/combobox-hidden-label.story.js +1 -1
  102. package/lib/cjs/combobox/stories/combobox-hidden-label.story.js.map +1 -1
  103. package/lib/cjs/combobox/stories/combobox-in-popover-dialog.story.js +1 -1
  104. package/lib/cjs/combobox/stories/combobox-in-popover-dialog.story.js.map +1 -1
  105. package/lib/cjs/combobox/stories/combobox-in-popover.story.js +1 -1
  106. package/lib/cjs/combobox/stories/combobox-in-popover.story.js.map +1 -1
  107. package/lib/cjs/combobox/stories/combobox-native-form.story.js +1 -1
  108. package/lib/cjs/combobox/stories/combobox-native-form.story.js.map +1 -1
  109. package/lib/cjs/combobox/stories/combobox-sizes.story.js +1 -1
  110. package/lib/cjs/combobox/stories/combobox-sizes.story.js.map +1 -1
  111. package/lib/cjs/combobox/stories/combobox-validation.story.js +1 -1
  112. package/lib/cjs/combobox/stories/combobox-validation.story.js.map +1 -1
  113. package/lib/cjs/conditional-wrap/stories/conditional-wrap-default.story.js +1 -1
  114. package/lib/cjs/conditional-wrap/stories/conditional-wrap-default.story.js.map +1 -1
  115. package/lib/cjs/data-grid/stories/datagrid-compact-mode.story.js +1 -1
  116. package/lib/cjs/data-grid/stories/datagrid-compact-mode.story.js.map +1 -1
  117. package/lib/cjs/data-grid/stories/datagrid-component-overriding.story.js +2 -2
  118. package/lib/cjs/data-grid/stories/datagrid-component-overriding.story.js.map +1 -1
  119. package/lib/cjs/data-grid/stories/datagrid-custom-cell-with-style-rules.story.js +1 -1
  120. package/lib/cjs/data-grid/stories/datagrid-custom-cell-with-style-rules.story.js.map +1 -1
  121. package/lib/cjs/data-grid/stories/datagrid-in-dialog.story.js +2 -2
  122. package/lib/cjs/data-grid/stories/datagrid-in-dialog.story.js.map +1 -1
  123. package/lib/cjs/data-grid/stories/datagrid-keyboard-navigation.story.js +1 -1
  124. package/lib/cjs/data-grid/stories/datagrid-keyboard-navigation.story.js.map +1 -1
  125. package/lib/cjs/data-grid/stories/datagrid-kitchen-sink.story.js +1 -1
  126. package/lib/cjs/data-grid/stories/datagrid-kitchen-sink.story.js.map +1 -1
  127. package/lib/cjs/data-grid/stories/datagrid-percentage-width-columns.story.js +1 -1
  128. package/lib/cjs/data-grid/stories/datagrid-percentage-width-columns.story.js.map +1 -1
  129. package/lib/cjs/data-grid/stories/datagrid-pinned-columns.stories.js +3 -3
  130. package/lib/cjs/data-grid/stories/datagrid-pinned-columns.stories.js.map +1 -1
  131. package/lib/cjs/data-grid/stories/datagrid-placeholder-states.story.js +1 -1
  132. package/lib/cjs/data-grid/stories/datagrid-placeholder-states.story.js.map +1 -1
  133. package/lib/cjs/data-grid/stories/datagrid-resizable-column.story.js +1 -1
  134. package/lib/cjs/data-grid/stories/datagrid-resizable-column.story.js.map +1 -1
  135. package/lib/cjs/data-grid/stories/datagrid-rule-based-styling-datetime.story.js +1 -1
  136. package/lib/cjs/data-grid/stories/datagrid-rule-based-styling-datetime.story.js.map +1 -1
  137. package/lib/cjs/data-grid/stories/datagrid-rule-based-styling.story.js +1 -1
  138. package/lib/cjs/data-grid/stories/datagrid-rule-based-styling.story.js.map +1 -1
  139. package/lib/cjs/data-grid/stories/datagrid-search-and-filters.stories.js +5 -5
  140. package/lib/cjs/data-grid/stories/datagrid-search-and-filters.stories.js.map +1 -1
  141. package/lib/cjs/data-grid/stories/datagrid-simple.story.js +1 -1
  142. package/lib/cjs/data-grid/stories/datagrid-simple.story.js.map +1 -1
  143. package/lib/cjs/data-grid/stories/datagrid-single-selectable.story.js +1 -1
  144. package/lib/cjs/data-grid/stories/datagrid-single-selectable.story.js.map +1 -1
  145. package/lib/cjs/data-grid/stories/datagrid-skeleton-loading.story.js +1 -1
  146. package/lib/cjs/data-grid/stories/datagrid-skeleton-loading.story.js.map +1 -1
  147. package/lib/cjs/data-grid/stories/datagrid-sortable.story.js +1 -1
  148. package/lib/cjs/data-grid/stories/datagrid-sortable.story.js.map +1 -1
  149. package/lib/cjs/data-grid/stories/datagrid-using-editable-cells.story.js +2 -2
  150. package/lib/cjs/data-grid/stories/datagrid-using-editable-cells.story.js.map +1 -1
  151. package/lib/cjs/data-grid/stories/datagrid-virtualization.story.js +3 -3
  152. package/lib/cjs/data-grid/stories/datagrid-virtualization.story.js.map +1 -1
  153. package/lib/cjs/data-grid/style-rules/guard.js +47 -0
  154. package/lib/cjs/data-grid/style-rules/guard.js.map +1 -0
  155. package/lib/cjs/data-grid/style-rules/index.js +3 -19
  156. package/lib/cjs/data-grid/style-rules/index.js.map +1 -1
  157. package/lib/cjs/data-grid/style-rules/internal/schemas.js +213 -0
  158. package/lib/cjs/data-grid/style-rules/internal/schemas.js.map +1 -0
  159. package/lib/cjs/data-grid/style-rules/types.js +0 -205
  160. package/lib/cjs/data-grid/style-rules/types.js.map +1 -1
  161. package/lib/cjs/date-picker/DatePicker.js +8 -6
  162. package/lib/cjs/date-picker/DatePicker.js.map +1 -1
  163. package/lib/cjs/date-picker/stories/date-picker-in-dialog.story.js +1 -1
  164. package/lib/cjs/date-picker/stories/date-picker-in-dialog.story.js.map +1 -1
  165. package/lib/cjs/date-picker/stories/date-picker-in-popover-dialog.story.js +1 -1
  166. package/lib/cjs/date-picker/stories/date-picker-in-popover-dialog.story.js.map +1 -1
  167. package/lib/cjs/dialog/Dialog.js +1 -2
  168. package/lib/cjs/dialog/Dialog.js.map +1 -1
  169. package/lib/cjs/dialog/stories/dialog-danger.story.js +1 -1
  170. package/lib/cjs/dialog/stories/dialog-danger.story.js.map +1 -1
  171. package/lib/cjs/dialog/stories/dialog-default.story.js +1 -1
  172. package/lib/cjs/dialog/stories/dialog-default.story.js.map +1 -1
  173. package/lib/cjs/dialog/stories/dialog-image.story.js +1 -1
  174. package/lib/cjs/dialog/stories/dialog-image.story.js.map +1 -1
  175. package/lib/cjs/dialog/stories/dialog-info.story.js +1 -1
  176. package/lib/cjs/dialog/stories/dialog-info.story.js.map +1 -1
  177. package/lib/cjs/dialog/stories/dialog-top-aligned.story.js +2 -2
  178. package/lib/cjs/dialog/stories/dialog-top-aligned.story.js.map +1 -1
  179. package/lib/cjs/dialog/stories/dialog-variants.story.js +1 -1
  180. package/lib/cjs/dialog/stories/dialog-variants.story.js.map +1 -1
  181. package/lib/cjs/dialog/stories/dialog-warning.story.js +1 -1
  182. package/lib/cjs/dialog/stories/dialog-warning.story.js.map +1 -1
  183. package/lib/cjs/dismissible-tag/stories/dismissible-tag-colors.story.js +1 -1
  184. package/lib/cjs/dismissible-tag/stories/dismissible-tag-colors.story.js.map +1 -1
  185. package/lib/cjs/dismissible-tag/stories/dismissible-tag-sizes.story.js +1 -1
  186. package/lib/cjs/dismissible-tag/stories/dismissible-tag-sizes.story.js.map +1 -1
  187. package/lib/cjs/drawer/Drawer.js +7 -6
  188. package/lib/cjs/drawer/Drawer.js.map +1 -1
  189. package/lib/cjs/drawer/stories/drawer-full.story.js +2 -2
  190. package/lib/cjs/drawer/stories/drawer-full.story.js.map +1 -1
  191. package/lib/cjs/drawer/stories/drawer-not-closeable.story.js +2 -2
  192. package/lib/cjs/drawer/stories/drawer-not-closeable.story.js.map +1 -1
  193. package/lib/cjs/drawer/stories/drawer-overlay.story.js +1 -1
  194. package/lib/cjs/drawer/stories/drawer-overlay.story.js.map +1 -1
  195. package/lib/cjs/drawer/stories/drawer-portaled.story.js +2 -2
  196. package/lib/cjs/drawer/stories/drawer-portaled.story.js.map +1 -1
  197. package/lib/cjs/drawer/stories/drawer-push.story.js +2 -2
  198. package/lib/cjs/drawer/stories/drawer-push.story.js.map +1 -1
  199. package/lib/cjs/drawer/stories/drawer-resizable.story.js +2 -2
  200. package/lib/cjs/drawer/stories/drawer-resizable.story.js.map +1 -1
  201. package/lib/cjs/drawer/stories/drawer-right-side.story.js +2 -2
  202. package/lib/cjs/drawer/stories/drawer-right-side.story.js.map +1 -1
  203. package/lib/cjs/drawer/stories/drawer-scrollable.story.js +2 -2
  204. package/lib/cjs/drawer/stories/drawer-scrollable.story.js.map +1 -1
  205. package/lib/cjs/dropzone/stories/dropzone-full.story.js +3 -3
  206. package/lib/cjs/dropzone/stories/dropzone-full.story.js.map +1 -1
  207. package/lib/cjs/flex/stories/flex-default.story.js +1 -1
  208. package/lib/cjs/flex/stories/flex-default.story.js.map +1 -1
  209. package/lib/cjs/graph-label/stories/graph-label-color.story.js +1 -1
  210. package/lib/cjs/graph-label/stories/graph-label-color.story.js.map +1 -1
  211. package/lib/cjs/graph-label/stories/graph-label-sizes.story.js +1 -1
  212. package/lib/cjs/graph-label/stories/graph-label-sizes.story.js.map +1 -1
  213. package/lib/cjs/graph-label/stories/graph-label-types.story.js +1 -1
  214. package/lib/cjs/graph-label/stories/graph-label-types.story.js.map +1 -1
  215. package/lib/cjs/hooks/use-debounce-callback/index.js +6 -6
  216. package/lib/cjs/hooks/use-debounce-callback/index.js.map +1 -1
  217. package/lib/cjs/icon-button/stories/icon-button-sizes.story.js +1 -1
  218. package/lib/cjs/icon-button/stories/icon-button-sizes.story.js.map +1 -1
  219. package/lib/cjs/icon-button/stories/icon-button-tone.story.js +1 -1
  220. package/lib/cjs/icon-button/stories/icon-button-tone.story.js.map +1 -1
  221. package/lib/cjs/icon-button-array/stories/icon-button-array-sizes.story.js +1 -1
  222. package/lib/cjs/icon-button-array/stories/icon-button-array-sizes.story.js.map +1 -1
  223. package/lib/cjs/icon-button-base/IconButtonBase.js +1 -3
  224. package/lib/cjs/icon-button-base/IconButtonBase.js.map +1 -1
  225. package/lib/cjs/icons/generated/custom/index.js +3 -17
  226. package/lib/cjs/icons/generated/custom/index.js.map +1 -1
  227. package/lib/cjs/inline-edit/InlineEdit.js +3 -2
  228. package/lib/cjs/inline-edit/InlineEdit.js.map +1 -1
  229. package/lib/cjs/kbd/Kbd.js +0 -1
  230. package/lib/cjs/kbd/Kbd.js.map +1 -1
  231. package/lib/cjs/loading-spinner/stories/loading-spinner-sizes.story.js +1 -1
  232. package/lib/cjs/loading-spinner/stories/loading-spinner-sizes.story.js.map +1 -1
  233. package/lib/cjs/logo/stories/logo-black.story.js +1 -1
  234. package/lib/cjs/logo/stories/logo-black.story.js.map +1 -1
  235. package/lib/cjs/logo/stories/logo-default.story.js +1 -1
  236. package/lib/cjs/logo/stories/logo-default.story.js.map +1 -1
  237. package/lib/cjs/logo/stories/logo-icon.story.js +1 -1
  238. package/lib/cjs/logo/stories/logo-icon.story.js.map +1 -1
  239. package/lib/cjs/menu/Menu.js +2 -2
  240. package/lib/cjs/menu/Menu.js.map +1 -1
  241. package/lib/cjs/menu/menu-types.js.map +1 -1
  242. package/lib/cjs/menu/stories/menu-custom-items.story.js +1 -1
  243. package/lib/cjs/menu/stories/menu-custom-items.story.js.map +1 -1
  244. package/lib/cjs/menu/stories/menu-in-dialog.story.js +2 -2
  245. package/lib/cjs/menu/stories/menu-in-dialog.story.js.map +1 -1
  246. package/lib/cjs/menu/stories/menu-nested.story.js +1 -1
  247. package/lib/cjs/menu/stories/menu-nested.story.js.map +1 -1
  248. package/lib/cjs/menu/stories/menu-radio-and-normal.story.js +1 -1
  249. package/lib/cjs/menu/stories/menu-radio-and-normal.story.js.map +1 -1
  250. package/lib/cjs/menu/stories/menu-radio-items.story.js +1 -1
  251. package/lib/cjs/menu/stories/menu-radio-items.story.js.map +1 -1
  252. package/lib/cjs/menu/stories/menu-with-icon.story.js +1 -1
  253. package/lib/cjs/menu/stories/menu-with-icon.story.js.map +1 -1
  254. package/lib/cjs/next/tree-view/TreeView.js +3 -3
  255. package/lib/cjs/next/tree-view/TreeView.js.map +1 -1
  256. package/lib/cjs/next/tree-view/stories/tree-view-large.story.js +1 -1
  257. package/lib/cjs/next/tree-view/stories/tree-view-large.story.js.map +1 -1
  258. package/lib/cjs/next/tree-view/stories/tree-view-multiple-replace.story.js +1 -1
  259. package/lib/cjs/next/tree-view/stories/tree-view-multiple-replace.story.js.map +1 -1
  260. package/lib/cjs/next/tree-view/stories/tree-view-root-selection.story.js +1 -1
  261. package/lib/cjs/next/tree-view/stories/tree-view-root-selection.story.js.map +1 -1
  262. package/lib/cjs/next/tree-view/stories/tree-view-tooltip.story.js +1 -1
  263. package/lib/cjs/next/tree-view/stories/tree-view-tooltip.story.js.map +1 -1
  264. package/lib/cjs/next/tree-view/stories/tree-view-trailing.story.js +1 -1
  265. package/lib/cjs/next/tree-view/stories/tree-view-trailing.story.js.map +1 -1
  266. package/lib/cjs/next/tree-view/stories/tree-view-uncontrolled.story.js +1 -1
  267. package/lib/cjs/next/tree-view/stories/tree-view-uncontrolled.story.js.map +1 -1
  268. package/lib/cjs/popover/Popover.js +6 -6
  269. package/lib/cjs/popover/Popover.js.map +1 -1
  270. package/lib/cjs/popover/stories/popover-controlled.story.js +1 -1
  271. package/lib/cjs/popover/stories/popover-controlled.story.js.map +1 -1
  272. package/lib/cjs/popover/stories/popover-custom-offset.story.js +1 -1
  273. package/lib/cjs/popover/stories/popover-custom-offset.story.js.map +1 -1
  274. package/lib/cjs/popover/stories/popover-default.story.js +1 -1
  275. package/lib/cjs/popover/stories/popover-default.story.js.map +1 -1
  276. package/lib/cjs/popover/stories/popover-in-dialog.story.js +1 -1
  277. package/lib/cjs/popover/stories/popover-in-dialog.story.js.map +1 -1
  278. package/lib/cjs/popover/stories/popover-no-button-wrapper.story.js +1 -1
  279. package/lib/cjs/popover/stories/popover-no-button-wrapper.story.js.map +1 -1
  280. package/lib/cjs/popover/stories/popover-separate-anchor.story.js +1 -1
  281. package/lib/cjs/popover/stories/popover-separate-anchor.story.js.map +1 -1
  282. package/lib/cjs/popover/use-popover.js +7 -9
  283. package/lib/cjs/popover/use-popover.js.map +1 -1
  284. package/lib/cjs/progress-bar/stories/progress-bar-sizes.story.js +1 -1
  285. package/lib/cjs/progress-bar/stories/progress-bar-sizes.story.js.map +1 -1
  286. package/lib/cjs/radio/stories/radio-disabled.story.js +1 -1
  287. package/lib/cjs/radio/stories/radio-disabled.story.js.map +1 -1
  288. package/lib/cjs/radio/stories/radio-truncated-label.story.js +1 -1
  289. package/lib/cjs/radio/stories/radio-truncated-label.story.js.map +1 -1
  290. package/lib/cjs/read-only-tag/stories/read-only-tag-colors.story.js +1 -1
  291. package/lib/cjs/read-only-tag/stories/read-only-tag-colors.story.js.map +1 -1
  292. package/lib/cjs/read-only-tag/stories/read-only-tag-sizes.story.js +1 -1
  293. package/lib/cjs/read-only-tag/stories/read-only-tag-sizes.story.js.map +1 -1
  294. package/lib/cjs/segmented-control/stories/segmented-control-sizes.story.js +1 -1
  295. package/lib/cjs/segmented-control/stories/segmented-control-sizes.story.js.map +1 -1
  296. package/lib/cjs/select/stories/select-controlled.story.js +1 -1
  297. package/lib/cjs/select/stories/select-controlled.story.js.map +1 -1
  298. package/lib/cjs/select/stories/select-custom-label.story.js +1 -1
  299. package/lib/cjs/select/stories/select-custom-label.story.js.map +1 -1
  300. package/lib/cjs/select/stories/select-inside-dialog.story.js +1 -1
  301. package/lib/cjs/select/stories/select-inside-dialog.story.js.map +1 -1
  302. package/lib/cjs/select/stories/select-menu-positionings.story.js +1 -1
  303. package/lib/cjs/select/stories/select-menu-positionings.story.js.map +1 -1
  304. package/lib/cjs/select/stories/select-required.story.js +1 -1
  305. package/lib/cjs/select/stories/select-required.story.js.map +1 -1
  306. package/lib/cjs/select/stories/select-sizes.story.js +1 -1
  307. package/lib/cjs/select/stories/select-sizes.story.js.map +1 -1
  308. package/lib/cjs/select-icon-button/stories/select-icon-button-sizes.story.js +1 -1
  309. package/lib/cjs/select-icon-button/stories/select-icon-button-sizes.story.js.map +1 -1
  310. package/lib/cjs/select-icon-button/stories/select-icon-button-states.story.js +1 -1
  311. package/lib/cjs/select-icon-button/stories/select-icon-button-states.story.js.map +1 -1
  312. package/lib/cjs/selectable-tag/stories/selectable-tag-disabled.story.js +1 -1
  313. package/lib/cjs/selectable-tag/stories/selectable-tag-disabled.story.js.map +1 -1
  314. package/lib/cjs/selectable-tag/stories/selectable-tag-sizes.story.js +1 -1
  315. package/lib/cjs/selectable-tag/stories/selectable-tag-sizes.story.js.map +1 -1
  316. package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
  317. package/lib/cjs/side-navigation/stories/side-nav-badges.story.js +2 -2
  318. package/lib/cjs/side-navigation/stories/side-nav-badges.story.js.map +1 -1
  319. package/lib/cjs/side-navigation/stories/side-nav-compact.story.js +1 -1
  320. package/lib/cjs/side-navigation/stories/side-nav-compact.story.js.map +1 -1
  321. package/lib/cjs/side-navigation/stories/side-nav-default.story.js +1 -1
  322. package/lib/cjs/side-navigation/stories/side-nav-default.story.js.map +1 -1
  323. package/lib/cjs/side-navigation/stories/side-nav-secondary.story.js +1 -1
  324. package/lib/cjs/side-navigation/stories/side-nav-secondary.story.js.map +1 -1
  325. package/lib/cjs/skeleton/stories/skeleton-circular.story.js +1 -1
  326. package/lib/cjs/skeleton/stories/skeleton-circular.story.js.map +1 -1
  327. package/lib/cjs/skeleton/stories/skeleton-default.story.js +1 -1
  328. package/lib/cjs/skeleton/stories/skeleton-default.story.js.map +1 -1
  329. package/lib/cjs/skeleton/stories/skeleton-full-example.story.js +1 -1
  330. package/lib/cjs/skeleton/stories/skeleton-full-example.story.js.map +1 -1
  331. package/lib/cjs/skeleton/stories/skeleton-inherit-height.story.js +1 -1
  332. package/lib/cjs/skeleton/stories/skeleton-inherit-height.story.js.map +1 -1
  333. package/lib/cjs/skeleton/stories/skeleton-inherit-width.story.js +1 -1
  334. package/lib/cjs/skeleton/stories/skeleton-inherit-width.story.js.map +1 -1
  335. package/lib/cjs/slider/Slider.js +3 -3
  336. package/lib/cjs/slider/Slider.js.map +1 -1
  337. package/lib/cjs/slider/stories/slider-custom-step-length.story.js +1 -1
  338. package/lib/cjs/slider/stories/slider-custom-step-length.story.js.map +1 -1
  339. package/lib/cjs/slider/stories/slider-range.story.js +1 -1
  340. package/lib/cjs/slider/stories/slider-range.story.js.map +1 -1
  341. package/lib/cjs/slider/stories/slider-show-steps.story.js +1 -1
  342. package/lib/cjs/slider/stories/slider-show-steps.story.js.map +1 -1
  343. package/lib/cjs/slider/stories/slider-show-values.story.js +1 -1
  344. package/lib/cjs/slider/stories/slider-show-values.story.js.map +1 -1
  345. package/lib/cjs/slider/stories/slider-single-controlled.story.js +2 -2
  346. package/lib/cjs/slider/stories/slider-single-controlled.story.js.map +1 -1
  347. package/lib/cjs/slider/stories/slider-single.story.js +1 -1
  348. package/lib/cjs/slider/stories/slider-single.story.js.map +1 -1
  349. package/lib/cjs/spotlight/Spotlight.js +3 -3
  350. package/lib/cjs/spotlight/Spotlight.js.map +1 -1
  351. package/lib/cjs/spotlight/SpotlightTarget.js +3 -3
  352. package/lib/cjs/spotlight/SpotlightTarget.js.map +1 -1
  353. package/lib/cjs/spotlight/stories/spotlight-fixed-positioning.story.js +1 -1
  354. package/lib/cjs/spotlight/stories/spotlight-fixed-positioning.story.js.map +1 -1
  355. package/lib/cjs/spotlight/stories/spotlight-in-dialog.story.js +1 -1
  356. package/lib/cjs/spotlight/stories/spotlight-in-dialog.story.js.map +1 -1
  357. package/lib/cjs/spotlight/stories/spotlight-in-side-nav.story.js +1 -1
  358. package/lib/cjs/spotlight/stories/spotlight-in-side-nav.story.js.map +1 -1
  359. package/lib/cjs/spotlight/stories/spotlight-on-tabs.story.js +1 -1
  360. package/lib/cjs/spotlight/stories/spotlight-on-tabs.story.js.map +1 -1
  361. package/lib/cjs/spotlight/stories/spotlight-tour.story.js +1 -1
  362. package/lib/cjs/spotlight/stories/spotlight-tour.story.js.map +1 -1
  363. package/lib/cjs/spotlight/stories/spotlight-with-icon.story.js +1 -1
  364. package/lib/cjs/spotlight/stories/spotlight-with-icon.story.js.map +1 -1
  365. package/lib/cjs/spotlight/stories/spotlight-with-image.story.js +1 -1
  366. package/lib/cjs/spotlight/stories/spotlight-with-image.story.js.map +1 -1
  367. package/lib/cjs/spotlight/stories/spotlight-with-label.story.js +1 -1
  368. package/lib/cjs/spotlight/stories/spotlight-with-label.story.js.map +1 -1
  369. package/lib/cjs/spotlight/stories/spotlight-with-pointer.story.js +1 -1
  370. package/lib/cjs/spotlight/stories/spotlight-with-pointer.story.js.map +1 -1
  371. package/lib/cjs/spotlight/use-spotlight.js +5 -5
  372. package/lib/cjs/spotlight/use-spotlight.js.map +1 -1
  373. package/lib/cjs/status-indicator/stories/status-indicator-variants.story.js +1 -1
  374. package/lib/cjs/status-indicator/stories/status-indicator-variants.story.js.map +1 -1
  375. package/lib/cjs/status-label/stories/status-label-colors.story.js +1 -1
  376. package/lib/cjs/status-label/stories/status-label-colors.story.js.map +1 -1
  377. package/lib/cjs/status-label/stories/status-label-fills.story.js +1 -1
  378. package/lib/cjs/status-label/stories/status-label-fills.story.js.map +1 -1
  379. package/lib/cjs/status-label/stories/status-label-with-icons.story.js +1 -1
  380. package/lib/cjs/status-label/stories/status-label-with-icons.story.js.map +1 -1
  381. package/lib/cjs/tabs/Tabs.js +2 -2
  382. package/lib/cjs/tabs/Tabs.js.map +1 -1
  383. package/lib/cjs/tabs/stories/tabs-badge.story.js +1 -1
  384. package/lib/cjs/tabs/stories/tabs-badge.story.js.map +1 -1
  385. package/lib/cjs/tabs/stories/tabs-default.story.js +1 -1
  386. package/lib/cjs/tabs/stories/tabs-default.story.js.map +1 -1
  387. package/lib/cjs/tabs/stories/tabs-disabled.story.js +1 -1
  388. package/lib/cjs/tabs/stories/tabs-disabled.story.js.map +1 -1
  389. package/lib/cjs/tabs/stories/tabs-fill-variants.story.js +1 -1
  390. package/lib/cjs/tabs/stories/tabs-fill-variants.story.js.map +1 -1
  391. package/lib/cjs/tabs/stories/tabs-overflow.story.js +1 -1
  392. package/lib/cjs/tabs/stories/tabs-overflow.story.js.map +1 -1
  393. package/lib/cjs/tabs/stories/tabs-sizes.story.js +1 -1
  394. package/lib/cjs/tabs/stories/tabs-sizes.story.js.map +1 -1
  395. package/lib/cjs/tabs/stories/tabs-with-icons.story.js +1 -1
  396. package/lib/cjs/tabs/stories/tabs-with-icons.story.js.map +1 -1
  397. package/lib/cjs/tag/stories/tag-sizes.story.js +1 -1
  398. package/lib/cjs/tag/stories/tag-sizes.story.js.map +1 -1
  399. package/lib/cjs/tag/stories/tag-types.story.js +1 -1
  400. package/lib/cjs/tag/stories/tag-types.story.js.map +1 -1
  401. package/lib/cjs/tag-base/stories/tag-variants.story.js +1 -1
  402. package/lib/cjs/tag-base/stories/tag-variants.story.js.map +1 -1
  403. package/lib/cjs/text-area/stories/text-area-sizes.story.js +1 -1
  404. package/lib/cjs/text-area/stories/text-area-sizes.story.js.map +1 -1
  405. package/lib/cjs/text-input/TextInput.js.map +1 -1
  406. package/lib/cjs/text-input/stories/text-input-loading-spinner.story.js +1 -1
  407. package/lib/cjs/text-input/stories/text-input-loading-spinner.story.js.map +1 -1
  408. package/lib/cjs/text-input/stories/text-input-optional.story.js +1 -1
  409. package/lib/cjs/text-input/stories/text-input-optional.story.js.map +1 -1
  410. package/lib/cjs/text-input/stories/text-input-sizes.story.js +1 -1
  411. package/lib/cjs/text-input/stories/text-input-sizes.story.js.map +1 -1
  412. package/lib/cjs/text-link/TextLink.js +2 -6
  413. package/lib/cjs/text-link/TextLink.js.map +1 -1
  414. package/lib/cjs/text-link/stories/index.js +5 -17
  415. package/lib/cjs/text-link/stories/index.js.map +1 -1
  416. package/lib/cjs/text-link/stories/text-link-external.story.js +1 -1
  417. package/lib/cjs/text-link/stories/text-link-external.story.js.map +1 -1
  418. package/lib/cjs/text-link/stories/{text-link-internal-underline.story.js → text-link-internal.story.js} +2 -2
  419. package/lib/cjs/text-link/stories/text-link-internal.story.js.map +1 -0
  420. package/lib/cjs/time-picker/stories/time-picker-in-popover-dialog.story.js +1 -1
  421. package/lib/cjs/time-picker/stories/time-picker-in-popover-dialog.story.js.map +1 -1
  422. package/lib/cjs/timezone-picker/stories/timezone-picker-in-dialog.story.js +1 -1
  423. package/lib/cjs/timezone-picker/stories/timezone-picker-in-dialog.story.js.map +1 -1
  424. package/lib/cjs/timezone-picker/stories/timezone-picker-in-popover-dialog.story.js +1 -1
  425. package/lib/cjs/timezone-picker/stories/timezone-picker-in-popover-dialog.story.js.map +1 -1
  426. package/lib/cjs/toast/stories/toast-action-story.js +1 -1
  427. package/lib/cjs/toast/stories/toast-action-story.js.map +1 -1
  428. package/lib/cjs/toast/stories/toast-closeable-story.js +1 -1
  429. package/lib/cjs/toast/stories/toast-closeable-story.js.map +1 -1
  430. package/lib/cjs/toast/stories/toast-controlled-story.js +1 -1
  431. package/lib/cjs/toast/stories/toast-controlled-story.js.map +1 -1
  432. package/lib/cjs/toast/stories/toast-custom-story.js +1 -1
  433. package/lib/cjs/toast/stories/toast-custom-story.js.map +1 -1
  434. package/lib/cjs/toast/stories/toast-danger-story.js +1 -1
  435. package/lib/cjs/toast/stories/toast-danger-story.js.map +1 -1
  436. package/lib/cjs/toast/stories/toast-neutral-story.js +1 -1
  437. package/lib/cjs/toast/stories/toast-neutral-story.js.map +1 -1
  438. package/lib/cjs/toast/stories/toast-progress-bar.js +1 -1
  439. package/lib/cjs/toast/stories/toast-progress-bar.js.map +1 -1
  440. package/lib/cjs/toast/stories/toast-success-story.js +1 -1
  441. package/lib/cjs/toast/stories/toast-success-story.js.map +1 -1
  442. package/lib/cjs/tooltip/Tooltip.js.map +1 -1
  443. package/lib/cjs/tooltip/stories/tooltip-in-dialog.story.js +1 -1
  444. package/lib/cjs/tooltip/stories/tooltip-in-dialog.story.js.map +1 -1
  445. package/lib/cjs/tooltip/stories/tooltip-placements.story.js +1 -1
  446. package/lib/cjs/tooltip/stories/tooltip-placements.story.js.map +1 -1
  447. package/lib/cjs/tooltip/use-tooltip.js.map +1 -1
  448. package/lib/cjs/tree-view/TreeView.js +3 -0
  449. package/lib/cjs/tree-view/TreeView.js.map +1 -1
  450. package/lib/cjs/tree-view/TreeViewItem.js.map +1 -1
  451. package/lib/cjs/tree-view/stories/treeview-custom.story.js +2 -2
  452. package/lib/cjs/tree-view/stories/treeview-custom.story.js.map +1 -1
  453. package/lib/cjs/tree-view/tree-view-utils.js.map +1 -1
  454. package/lib/cjs/typography/Typography.js +7 -1
  455. package/lib/cjs/typography/Typography.js.map +1 -1
  456. package/lib/esm/_generated/style-rules/index.js +1 -1
  457. package/lib/esm/_generated/style-rules/index.js.map +1 -1
  458. package/lib/esm/_generated/style-rules/literal-guards.js +45 -0
  459. package/lib/esm/_generated/style-rules/literal-guards.js.map +1 -0
  460. package/lib/esm/_generated/style-rules/literal-schemas.js +6 -18
  461. package/lib/esm/_generated/style-rules/literal-schemas.js.map +1 -1
  462. package/lib/esm/{text-overflow/index.js → _generated/style-rules/literal-types.js} +8 -2
  463. package/lib/esm/_generated/style-rules/literal-types.js.map +1 -0
  464. package/lib/esm/_generated/style-rules/numeric-utils.js.map +1 -1
  465. package/lib/esm/_generated/style-rules/range-utils.js.map +1 -1
  466. package/lib/esm/ai/presence/stories/ai-presence-default.story.js +1 -1
  467. package/lib/esm/ai/presence/stories/ai-presence-default.story.js.map +1 -1
  468. package/lib/esm/ai/presence/stories/ai-presence-thinking.story.js +1 -1
  469. package/lib/esm/ai/presence/stories/ai-presence-thinking.story.js.map +1 -1
  470. package/lib/esm/ai/reasoning/Reasoning.js +1 -1
  471. package/lib/esm/ai/reasoning/Reasoning.js.map +1 -1
  472. package/lib/esm/ai/reasoning/stories/reasoning-full.story.js +1 -1
  473. package/lib/esm/ai/reasoning/stories/reasoning-full.story.js.map +1 -1
  474. package/lib/esm/ai/response/Response.js +57 -3
  475. package/lib/esm/ai/response/Response.js.map +1 -1
  476. package/lib/esm/ai/response/stories/response-fixtures.js +83 -0
  477. package/lib/esm/ai/response/stories/response-fixtures.js.map +1 -0
  478. package/lib/esm/ai/response/stories/response-full-example.story.js +3 -3
  479. package/lib/esm/ai/response/stories/response-full-example.story.js.map +1 -1
  480. package/lib/esm/ai/suggestion/stories/suggestion-sizes.story.js +1 -1
  481. package/lib/esm/ai/suggestion/stories/suggestion-sizes.story.js.map +1 -1
  482. package/lib/esm/ai/user-bubble/stories/user-bubble-and-files.story.js +1 -1
  483. package/lib/esm/ai/user-bubble/stories/user-bubble-and-files.story.js.map +1 -1
  484. package/lib/esm/announcement-banner/stories/announcement-banner-custom-icons.story.js +1 -1
  485. package/lib/esm/announcement-banner/stories/announcement-banner-custom-icons.story.js.map +1 -1
  486. package/lib/esm/announcement-banner/stories/announcement-banner-injected-non-urgent.story.js +1 -1
  487. package/lib/esm/announcement-banner/stories/announcement-banner-injected-non-urgent.story.js.map +1 -1
  488. package/lib/esm/announcement-banner/stories/announcement-banner-injected-urgent.story.js +1 -1
  489. package/lib/esm/announcement-banner/stories/announcement-banner-injected-urgent.story.js.map +1 -1
  490. package/lib/esm/announcement-banner/stories/announcement-banner-present-at-page-render.story.js +1 -1
  491. package/lib/esm/announcement-banner/stories/announcement-banner-present-at-page-render.story.js.map +1 -1
  492. package/lib/esm/announcement-banner/stories/announcement-banner-variants.story.js +1 -1
  493. package/lib/esm/announcement-banner/stories/announcement-banner-variants.story.js.map +1 -1
  494. package/lib/esm/announcement-banner/stories/announcement-banner-with-page-content.story.js +1 -1
  495. package/lib/esm/announcement-banner/stories/announcement-banner-with-page-content.story.js.map +1 -1
  496. package/lib/esm/avatar/stories/avatar-custom-icon.story.js +1 -1
  497. package/lib/esm/avatar/stories/avatar-custom-icon.story.js.map +1 -1
  498. package/lib/esm/avatar/stories/avatar-shapes.story.js +1 -1
  499. package/lib/esm/avatar/stories/avatar-shapes.story.js.map +1 -1
  500. package/lib/esm/avatar/stories/avatar-sizes.story.js +1 -1
  501. package/lib/esm/avatar/stories/avatar-sizes.story.js.map +1 -1
  502. package/lib/esm/avatar/stories/avatar-statuses.story.js +1 -1
  503. package/lib/esm/avatar/stories/avatar-statuses.story.js.map +1 -1
  504. package/lib/esm/avatar/stories/avatar-types.story.js +1 -1
  505. package/lib/esm/avatar/stories/avatar-types.story.js.map +1 -1
  506. package/lib/esm/banner/stories/banner-variants.story.js +1 -1
  507. package/lib/esm/banner/stories/banner-variants.story.js.map +1 -1
  508. package/lib/esm/banner/stories/banner-with-icons.story.js +1 -1
  509. package/lib/esm/banner/stories/banner-with-icons.story.js.map +1 -1
  510. package/lib/esm/breadcrumbs/stories/breadcrumbs-header.story.js +1 -1
  511. package/lib/esm/breadcrumbs/stories/breadcrumbs-header.story.js.map +1 -1
  512. package/lib/esm/button/ButtonBase.js +1 -3
  513. package/lib/esm/button/ButtonBase.js.map +1 -1
  514. package/lib/esm/button/stories/button-sizes.story.js +1 -1
  515. package/lib/esm/button/stories/button-sizes.story.js.map +1 -1
  516. package/lib/esm/button/stories/button-variants.story.js +1 -1
  517. package/lib/esm/button/stories/button-variants.story.js.map +1 -1
  518. package/lib/esm/checkbox/stories/checkbox-full.story.js +2 -2
  519. package/lib/esm/checkbox/stories/checkbox-full.story.js.map +1 -1
  520. package/lib/esm/clean-icon-button/stories/clean-icon-button-keyboard-display.story.js +1 -1
  521. package/lib/esm/clean-icon-button/stories/clean-icon-button-keyboard-display.story.js.map +1 -1
  522. package/lib/esm/clean-icon-button/stories/clean-icon-button-sizes.story.js +1 -1
  523. package/lib/esm/clean-icon-button/stories/clean-icon-button-sizes.story.js.map +1 -1
  524. package/lib/esm/clean-icon-button/stories/clean-icon-button-tone.story.js +1 -1
  525. package/lib/esm/clean-icon-button/stories/clean-icon-button-tone.story.js.map +1 -1
  526. package/lib/esm/clipboard-button/stories/clipboard-button-sizes.story.js +1 -1
  527. package/lib/esm/clipboard-button/stories/clipboard-button-sizes.story.js.map +1 -1
  528. package/lib/esm/code-block/CodeBlock.js +3 -7
  529. package/lib/esm/code-block/CodeBlock.js.map +1 -1
  530. package/lib/esm/code-block/stories/code-disabled.story.js +2 -2
  531. package/lib/esm/code-block/stories/code-disabled.story.js.map +1 -1
  532. package/lib/esm/code-block/stories/code-full.story.js +2 -2
  533. package/lib/esm/code-block/stories/code-full.story.js.map +1 -1
  534. package/lib/esm/code-block/stories/code-languages.story.js +1 -1
  535. package/lib/esm/code-block/stories/code-languages.story.js.map +1 -1
  536. package/lib/esm/code-block/stories/code-with-actions.story.js +2 -2
  537. package/lib/esm/code-block/stories/code-with-actions.story.js.map +1 -1
  538. package/lib/esm/color-picker/ColorPicker.js +0 -3
  539. package/lib/esm/color-picker/ColorPicker.js.map +1 -1
  540. package/lib/esm/color-picker/stories/color-picker-dialog.story.js +1 -1
  541. package/lib/esm/color-picker/stories/color-picker-dialog.story.js.map +1 -1
  542. package/lib/esm/color-picker/stories/color-picker-popover.story.js +1 -1
  543. package/lib/esm/color-picker/stories/color-picker-popover.story.js.map +1 -1
  544. package/lib/esm/combobox/stories/combobox-action-on-select.story.js +1 -1
  545. package/lib/esm/combobox/stories/combobox-action-on-select.story.js.map +1 -1
  546. package/lib/esm/combobox/stories/combobox-actions.story.js +1 -1
  547. package/lib/esm/combobox/stories/combobox-actions.story.js.map +1 -1
  548. package/lib/esm/combobox/stories/combobox-async.story.js +2 -2
  549. package/lib/esm/combobox/stories/combobox-async.story.js.map +1 -1
  550. package/lib/esm/combobox/stories/combobox-disabled.story.js +1 -1
  551. package/lib/esm/combobox/stories/combobox-disabled.story.js.map +1 -1
  552. package/lib/esm/combobox/stories/combobox-fluid.story.js +1 -1
  553. package/lib/esm/combobox/stories/combobox-fluid.story.js.map +1 -1
  554. package/lib/esm/combobox/stories/combobox-hidden-label.story.js +1 -1
  555. package/lib/esm/combobox/stories/combobox-hidden-label.story.js.map +1 -1
  556. package/lib/esm/combobox/stories/combobox-in-popover-dialog.story.js +1 -1
  557. package/lib/esm/combobox/stories/combobox-in-popover-dialog.story.js.map +1 -1
  558. package/lib/esm/combobox/stories/combobox-in-popover.story.js +1 -1
  559. package/lib/esm/combobox/stories/combobox-in-popover.story.js.map +1 -1
  560. package/lib/esm/combobox/stories/combobox-native-form.story.js +1 -1
  561. package/lib/esm/combobox/stories/combobox-native-form.story.js.map +1 -1
  562. package/lib/esm/combobox/stories/combobox-sizes.story.js +1 -1
  563. package/lib/esm/combobox/stories/combobox-sizes.story.js.map +1 -1
  564. package/lib/esm/combobox/stories/combobox-validation.story.js +1 -1
  565. package/lib/esm/combobox/stories/combobox-validation.story.js.map +1 -1
  566. package/lib/esm/conditional-wrap/stories/conditional-wrap-default.story.js +1 -1
  567. package/lib/esm/conditional-wrap/stories/conditional-wrap-default.story.js.map +1 -1
  568. package/lib/esm/data-grid/stories/datagrid-compact-mode.story.js +1 -1
  569. package/lib/esm/data-grid/stories/datagrid-compact-mode.story.js.map +1 -1
  570. package/lib/esm/data-grid/stories/datagrid-component-overriding.story.js +2 -2
  571. package/lib/esm/data-grid/stories/datagrid-component-overriding.story.js.map +1 -1
  572. package/lib/esm/data-grid/stories/datagrid-custom-cell-with-style-rules.story.js +1 -1
  573. package/lib/esm/data-grid/stories/datagrid-custom-cell-with-style-rules.story.js.map +1 -1
  574. package/lib/esm/data-grid/stories/datagrid-in-dialog.story.js +2 -2
  575. package/lib/esm/data-grid/stories/datagrid-in-dialog.story.js.map +1 -1
  576. package/lib/esm/data-grid/stories/datagrid-keyboard-navigation.story.js +1 -1
  577. package/lib/esm/data-grid/stories/datagrid-keyboard-navigation.story.js.map +1 -1
  578. package/lib/esm/data-grid/stories/datagrid-kitchen-sink.story.js +1 -1
  579. package/lib/esm/data-grid/stories/datagrid-kitchen-sink.story.js.map +1 -1
  580. package/lib/esm/data-grid/stories/datagrid-percentage-width-columns.story.js +1 -1
  581. package/lib/esm/data-grid/stories/datagrid-percentage-width-columns.story.js.map +1 -1
  582. package/lib/esm/data-grid/stories/datagrid-pinned-columns.stories.js +3 -3
  583. package/lib/esm/data-grid/stories/datagrid-pinned-columns.stories.js.map +1 -1
  584. package/lib/esm/data-grid/stories/datagrid-placeholder-states.story.js +1 -1
  585. package/lib/esm/data-grid/stories/datagrid-placeholder-states.story.js.map +1 -1
  586. package/lib/esm/data-grid/stories/datagrid-resizable-column.story.js +1 -1
  587. package/lib/esm/data-grid/stories/datagrid-resizable-column.story.js.map +1 -1
  588. package/lib/esm/data-grid/stories/datagrid-rule-based-styling-datetime.story.js +1 -1
  589. package/lib/esm/data-grid/stories/datagrid-rule-based-styling-datetime.story.js.map +1 -1
  590. package/lib/esm/data-grid/stories/datagrid-rule-based-styling.story.js +1 -1
  591. package/lib/esm/data-grid/stories/datagrid-rule-based-styling.story.js.map +1 -1
  592. package/lib/esm/data-grid/stories/datagrid-search-and-filters.stories.js +5 -5
  593. package/lib/esm/data-grid/stories/datagrid-search-and-filters.stories.js.map +1 -1
  594. package/lib/esm/data-grid/stories/datagrid-simple.story.js +1 -1
  595. package/lib/esm/data-grid/stories/datagrid-simple.story.js.map +1 -1
  596. package/lib/esm/data-grid/stories/datagrid-single-selectable.story.js +1 -1
  597. package/lib/esm/data-grid/stories/datagrid-single-selectable.story.js.map +1 -1
  598. package/lib/esm/data-grid/stories/datagrid-skeleton-loading.story.js +1 -1
  599. package/lib/esm/data-grid/stories/datagrid-skeleton-loading.story.js.map +1 -1
  600. package/lib/esm/data-grid/stories/datagrid-sortable.story.js +1 -1
  601. package/lib/esm/data-grid/stories/datagrid-sortable.story.js.map +1 -1
  602. package/lib/esm/data-grid/stories/datagrid-using-editable-cells.story.js +2 -2
  603. package/lib/esm/data-grid/stories/datagrid-using-editable-cells.story.js.map +1 -1
  604. package/lib/esm/data-grid/stories/datagrid-virtualization.story.js +3 -3
  605. package/lib/esm/data-grid/stories/datagrid-virtualization.story.js.map +1 -1
  606. package/lib/esm/data-grid/style-rules/guard.js +43 -0
  607. package/lib/esm/data-grid/style-rules/guard.js.map +1 -0
  608. package/lib/esm/data-grid/style-rules/index.js +1 -3
  609. package/lib/esm/data-grid/style-rules/index.js.map +1 -1
  610. package/lib/esm/data-grid/style-rules/internal/schemas.js +210 -0
  611. package/lib/esm/data-grid/style-rules/internal/schemas.js.map +1 -0
  612. package/lib/esm/data-grid/style-rules/types.js +1 -203
  613. package/lib/esm/data-grid/style-rules/types.js.map +1 -1
  614. package/lib/esm/date-picker/DatePicker.js +8 -6
  615. package/lib/esm/date-picker/DatePicker.js.map +1 -1
  616. package/lib/esm/date-picker/stories/date-picker-in-dialog.story.js +1 -1
  617. package/lib/esm/date-picker/stories/date-picker-in-dialog.story.js.map +1 -1
  618. package/lib/esm/date-picker/stories/date-picker-in-popover-dialog.story.js +1 -1
  619. package/lib/esm/date-picker/stories/date-picker-in-popover-dialog.story.js.map +1 -1
  620. package/lib/esm/dialog/Dialog.js +1 -2
  621. package/lib/esm/dialog/Dialog.js.map +1 -1
  622. package/lib/esm/dialog/stories/dialog-danger.story.js +1 -1
  623. package/lib/esm/dialog/stories/dialog-danger.story.js.map +1 -1
  624. package/lib/esm/dialog/stories/dialog-default.story.js +1 -1
  625. package/lib/esm/dialog/stories/dialog-default.story.js.map +1 -1
  626. package/lib/esm/dialog/stories/dialog-image.story.js +1 -1
  627. package/lib/esm/dialog/stories/dialog-image.story.js.map +1 -1
  628. package/lib/esm/dialog/stories/dialog-info.story.js +1 -1
  629. package/lib/esm/dialog/stories/dialog-info.story.js.map +1 -1
  630. package/lib/esm/dialog/stories/dialog-top-aligned.story.js +2 -2
  631. package/lib/esm/dialog/stories/dialog-top-aligned.story.js.map +1 -1
  632. package/lib/esm/dialog/stories/dialog-variants.story.js +1 -1
  633. package/lib/esm/dialog/stories/dialog-variants.story.js.map +1 -1
  634. package/lib/esm/dialog/stories/dialog-warning.story.js +1 -1
  635. package/lib/esm/dialog/stories/dialog-warning.story.js.map +1 -1
  636. package/lib/esm/dismissible-tag/stories/dismissible-tag-colors.story.js +1 -1
  637. package/lib/esm/dismissible-tag/stories/dismissible-tag-colors.story.js.map +1 -1
  638. package/lib/esm/dismissible-tag/stories/dismissible-tag-sizes.story.js +1 -1
  639. package/lib/esm/dismissible-tag/stories/dismissible-tag-sizes.story.js.map +1 -1
  640. package/lib/esm/drawer/Drawer.js +7 -6
  641. package/lib/esm/drawer/Drawer.js.map +1 -1
  642. package/lib/esm/drawer/stories/drawer-full.story.js +2 -2
  643. package/lib/esm/drawer/stories/drawer-full.story.js.map +1 -1
  644. package/lib/esm/drawer/stories/drawer-not-closeable.story.js +2 -2
  645. package/lib/esm/drawer/stories/drawer-not-closeable.story.js.map +1 -1
  646. package/lib/esm/drawer/stories/drawer-overlay.story.js +1 -1
  647. package/lib/esm/drawer/stories/drawer-overlay.story.js.map +1 -1
  648. package/lib/esm/drawer/stories/drawer-portaled.story.js +2 -2
  649. package/lib/esm/drawer/stories/drawer-portaled.story.js.map +1 -1
  650. package/lib/esm/drawer/stories/drawer-push.story.js +2 -2
  651. package/lib/esm/drawer/stories/drawer-push.story.js.map +1 -1
  652. package/lib/esm/drawer/stories/drawer-resizable.story.js +2 -2
  653. package/lib/esm/drawer/stories/drawer-resizable.story.js.map +1 -1
  654. package/lib/esm/drawer/stories/drawer-right-side.story.js +2 -2
  655. package/lib/esm/drawer/stories/drawer-right-side.story.js.map +1 -1
  656. package/lib/esm/drawer/stories/drawer-scrollable.story.js +2 -2
  657. package/lib/esm/drawer/stories/drawer-scrollable.story.js.map +1 -1
  658. package/lib/esm/dropzone/stories/dropzone-full.story.js +3 -3
  659. package/lib/esm/dropzone/stories/dropzone-full.story.js.map +1 -1
  660. package/lib/esm/flex/stories/flex-default.story.js +1 -1
  661. package/lib/esm/flex/stories/flex-default.story.js.map +1 -1
  662. package/lib/esm/graph-label/stories/graph-label-color.story.js +1 -1
  663. package/lib/esm/graph-label/stories/graph-label-color.story.js.map +1 -1
  664. package/lib/esm/graph-label/stories/graph-label-sizes.story.js +1 -1
  665. package/lib/esm/graph-label/stories/graph-label-sizes.story.js.map +1 -1
  666. package/lib/esm/graph-label/stories/graph-label-types.story.js +1 -1
  667. package/lib/esm/graph-label/stories/graph-label-types.story.js.map +1 -1
  668. package/lib/esm/hooks/use-debounce-callback/index.js +6 -6
  669. package/lib/esm/hooks/use-debounce-callback/index.js.map +1 -1
  670. package/lib/esm/icon-button/stories/icon-button-sizes.story.js +1 -1
  671. package/lib/esm/icon-button/stories/icon-button-sizes.story.js.map +1 -1
  672. package/lib/esm/icon-button/stories/icon-button-tone.story.js +1 -1
  673. package/lib/esm/icon-button/stories/icon-button-tone.story.js.map +1 -1
  674. package/lib/esm/icon-button-array/stories/icon-button-array-sizes.story.js +1 -1
  675. package/lib/esm/icon-button-array/stories/icon-button-array-sizes.story.js.map +1 -1
  676. package/lib/esm/icon-button-base/IconButtonBase.js +1 -3
  677. package/lib/esm/icon-button-base/IconButtonBase.js.map +1 -1
  678. package/lib/esm/icons/generated/custom/index.js +0 -7
  679. package/lib/esm/icons/generated/custom/index.js.map +1 -1
  680. package/lib/esm/inline-edit/InlineEdit.js +3 -2
  681. package/lib/esm/inline-edit/InlineEdit.js.map +1 -1
  682. package/lib/esm/kbd/Kbd.js +0 -1
  683. package/lib/esm/kbd/Kbd.js.map +1 -1
  684. package/lib/esm/loading-spinner/stories/loading-spinner-sizes.story.js +1 -1
  685. package/lib/esm/loading-spinner/stories/loading-spinner-sizes.story.js.map +1 -1
  686. package/lib/esm/logo/stories/logo-black.story.js +1 -1
  687. package/lib/esm/logo/stories/logo-black.story.js.map +1 -1
  688. package/lib/esm/logo/stories/logo-default.story.js +1 -1
  689. package/lib/esm/logo/stories/logo-default.story.js.map +1 -1
  690. package/lib/esm/logo/stories/logo-icon.story.js +1 -1
  691. package/lib/esm/logo/stories/logo-icon.story.js.map +1 -1
  692. package/lib/esm/menu/Menu.js +2 -2
  693. package/lib/esm/menu/Menu.js.map +1 -1
  694. package/lib/esm/menu/menu-types.js.map +1 -1
  695. package/lib/esm/menu/stories/menu-custom-items.story.js +1 -1
  696. package/lib/esm/menu/stories/menu-custom-items.story.js.map +1 -1
  697. package/lib/esm/menu/stories/menu-in-dialog.story.js +2 -2
  698. package/lib/esm/menu/stories/menu-in-dialog.story.js.map +1 -1
  699. package/lib/esm/menu/stories/menu-nested.story.js +1 -1
  700. package/lib/esm/menu/stories/menu-nested.story.js.map +1 -1
  701. package/lib/esm/menu/stories/menu-radio-and-normal.story.js +1 -1
  702. package/lib/esm/menu/stories/menu-radio-and-normal.story.js.map +1 -1
  703. package/lib/esm/menu/stories/menu-radio-items.story.js +1 -1
  704. package/lib/esm/menu/stories/menu-radio-items.story.js.map +1 -1
  705. package/lib/esm/menu/stories/menu-with-icon.story.js +1 -1
  706. package/lib/esm/menu/stories/menu-with-icon.story.js.map +1 -1
  707. package/lib/esm/next/tree-view/TreeView.js +3 -3
  708. package/lib/esm/next/tree-view/TreeView.js.map +1 -1
  709. package/lib/esm/next/tree-view/stories/tree-view-large.story.js +1 -1
  710. package/lib/esm/next/tree-view/stories/tree-view-large.story.js.map +1 -1
  711. package/lib/esm/next/tree-view/stories/tree-view-multiple-replace.story.js +1 -1
  712. package/lib/esm/next/tree-view/stories/tree-view-multiple-replace.story.js.map +1 -1
  713. package/lib/esm/next/tree-view/stories/tree-view-root-selection.story.js +1 -1
  714. package/lib/esm/next/tree-view/stories/tree-view-root-selection.story.js.map +1 -1
  715. package/lib/esm/next/tree-view/stories/tree-view-tooltip.story.js +1 -1
  716. package/lib/esm/next/tree-view/stories/tree-view-tooltip.story.js.map +1 -1
  717. package/lib/esm/next/tree-view/stories/tree-view-trailing.story.js +1 -1
  718. package/lib/esm/next/tree-view/stories/tree-view-trailing.story.js.map +1 -1
  719. package/lib/esm/next/tree-view/stories/tree-view-uncontrolled.story.js +1 -1
  720. package/lib/esm/next/tree-view/stories/tree-view-uncontrolled.story.js.map +1 -1
  721. package/lib/esm/popover/Popover.js +6 -6
  722. package/lib/esm/popover/Popover.js.map +1 -1
  723. package/lib/esm/popover/stories/popover-controlled.story.js +1 -1
  724. package/lib/esm/popover/stories/popover-controlled.story.js.map +1 -1
  725. package/lib/esm/popover/stories/popover-custom-offset.story.js +1 -1
  726. package/lib/esm/popover/stories/popover-custom-offset.story.js.map +1 -1
  727. package/lib/esm/popover/stories/popover-default.story.js +1 -1
  728. package/lib/esm/popover/stories/popover-default.story.js.map +1 -1
  729. package/lib/esm/popover/stories/popover-in-dialog.story.js +1 -1
  730. package/lib/esm/popover/stories/popover-in-dialog.story.js.map +1 -1
  731. package/lib/esm/popover/stories/popover-no-button-wrapper.story.js +1 -1
  732. package/lib/esm/popover/stories/popover-no-button-wrapper.story.js.map +1 -1
  733. package/lib/esm/popover/stories/popover-separate-anchor.story.js +1 -1
  734. package/lib/esm/popover/stories/popover-separate-anchor.story.js.map +1 -1
  735. package/lib/esm/popover/use-popover.js +7 -9
  736. package/lib/esm/popover/use-popover.js.map +1 -1
  737. package/lib/esm/progress-bar/stories/progress-bar-sizes.story.js +1 -1
  738. package/lib/esm/progress-bar/stories/progress-bar-sizes.story.js.map +1 -1
  739. package/lib/esm/radio/stories/radio-disabled.story.js +1 -1
  740. package/lib/esm/radio/stories/radio-disabled.story.js.map +1 -1
  741. package/lib/esm/radio/stories/radio-truncated-label.story.js +1 -1
  742. package/lib/esm/radio/stories/radio-truncated-label.story.js.map +1 -1
  743. package/lib/esm/read-only-tag/stories/read-only-tag-colors.story.js +1 -1
  744. package/lib/esm/read-only-tag/stories/read-only-tag-colors.story.js.map +1 -1
  745. package/lib/esm/read-only-tag/stories/read-only-tag-sizes.story.js +1 -1
  746. package/lib/esm/read-only-tag/stories/read-only-tag-sizes.story.js.map +1 -1
  747. package/lib/esm/segmented-control/stories/segmented-control-sizes.story.js +1 -1
  748. package/lib/esm/segmented-control/stories/segmented-control-sizes.story.js.map +1 -1
  749. package/lib/esm/select/stories/select-controlled.story.js +1 -1
  750. package/lib/esm/select/stories/select-controlled.story.js.map +1 -1
  751. package/lib/esm/select/stories/select-custom-label.story.js +1 -1
  752. package/lib/esm/select/stories/select-custom-label.story.js.map +1 -1
  753. package/lib/esm/select/stories/select-inside-dialog.story.js +1 -1
  754. package/lib/esm/select/stories/select-inside-dialog.story.js.map +1 -1
  755. package/lib/esm/select/stories/select-menu-positionings.story.js +1 -1
  756. package/lib/esm/select/stories/select-menu-positionings.story.js.map +1 -1
  757. package/lib/esm/select/stories/select-required.story.js +1 -1
  758. package/lib/esm/select/stories/select-required.story.js.map +1 -1
  759. package/lib/esm/select/stories/select-sizes.story.js +1 -1
  760. package/lib/esm/select/stories/select-sizes.story.js.map +1 -1
  761. package/lib/esm/select-icon-button/stories/select-icon-button-sizes.story.js +1 -1
  762. package/lib/esm/select-icon-button/stories/select-icon-button-sizes.story.js.map +1 -1
  763. package/lib/esm/select-icon-button/stories/select-icon-button-states.story.js +1 -1
  764. package/lib/esm/select-icon-button/stories/select-icon-button-states.story.js.map +1 -1
  765. package/lib/esm/selectable-tag/stories/selectable-tag-disabled.story.js +1 -1
  766. package/lib/esm/selectable-tag/stories/selectable-tag-disabled.story.js.map +1 -1
  767. package/lib/esm/selectable-tag/stories/selectable-tag-sizes.story.js +1 -1
  768. package/lib/esm/selectable-tag/stories/selectable-tag-sizes.story.js.map +1 -1
  769. package/lib/esm/side-navigation/SideNavigation.js.map +1 -1
  770. package/lib/esm/side-navigation/stories/side-nav-badges.story.js +2 -2
  771. package/lib/esm/side-navigation/stories/side-nav-badges.story.js.map +1 -1
  772. package/lib/esm/side-navigation/stories/side-nav-compact.story.js +1 -1
  773. package/lib/esm/side-navigation/stories/side-nav-compact.story.js.map +1 -1
  774. package/lib/esm/side-navigation/stories/side-nav-default.story.js +1 -1
  775. package/lib/esm/side-navigation/stories/side-nav-default.story.js.map +1 -1
  776. package/lib/esm/side-navigation/stories/side-nav-secondary.story.js +1 -1
  777. package/lib/esm/side-navigation/stories/side-nav-secondary.story.js.map +1 -1
  778. package/lib/esm/skeleton/stories/skeleton-circular.story.js +1 -1
  779. package/lib/esm/skeleton/stories/skeleton-circular.story.js.map +1 -1
  780. package/lib/esm/skeleton/stories/skeleton-default.story.js +1 -1
  781. package/lib/esm/skeleton/stories/skeleton-default.story.js.map +1 -1
  782. package/lib/esm/skeleton/stories/skeleton-full-example.story.js +1 -1
  783. package/lib/esm/skeleton/stories/skeleton-full-example.story.js.map +1 -1
  784. package/lib/esm/skeleton/stories/skeleton-inherit-height.story.js +1 -1
  785. package/lib/esm/skeleton/stories/skeleton-inherit-height.story.js.map +1 -1
  786. package/lib/esm/skeleton/stories/skeleton-inherit-width.story.js +1 -1
  787. package/lib/esm/skeleton/stories/skeleton-inherit-width.story.js.map +1 -1
  788. package/lib/esm/slider/Slider.js +3 -3
  789. package/lib/esm/slider/Slider.js.map +1 -1
  790. package/lib/esm/slider/stories/slider-custom-step-length.story.js +1 -1
  791. package/lib/esm/slider/stories/slider-custom-step-length.story.js.map +1 -1
  792. package/lib/esm/slider/stories/slider-range.story.js +1 -1
  793. package/lib/esm/slider/stories/slider-range.story.js.map +1 -1
  794. package/lib/esm/slider/stories/slider-show-steps.story.js +1 -1
  795. package/lib/esm/slider/stories/slider-show-steps.story.js.map +1 -1
  796. package/lib/esm/slider/stories/slider-show-values.story.js +1 -1
  797. package/lib/esm/slider/stories/slider-show-values.story.js.map +1 -1
  798. package/lib/esm/slider/stories/slider-single-controlled.story.js +2 -2
  799. package/lib/esm/slider/stories/slider-single-controlled.story.js.map +1 -1
  800. package/lib/esm/slider/stories/slider-single.story.js +1 -1
  801. package/lib/esm/slider/stories/slider-single.story.js.map +1 -1
  802. package/lib/esm/spotlight/Spotlight.js +3 -3
  803. package/lib/esm/spotlight/Spotlight.js.map +1 -1
  804. package/lib/esm/spotlight/SpotlightTarget.js +3 -3
  805. package/lib/esm/spotlight/SpotlightTarget.js.map +1 -1
  806. package/lib/esm/spotlight/stories/spotlight-fixed-positioning.story.js +1 -1
  807. package/lib/esm/spotlight/stories/spotlight-fixed-positioning.story.js.map +1 -1
  808. package/lib/esm/spotlight/stories/spotlight-in-dialog.story.js +1 -1
  809. package/lib/esm/spotlight/stories/spotlight-in-dialog.story.js.map +1 -1
  810. package/lib/esm/spotlight/stories/spotlight-in-side-nav.story.js +1 -1
  811. package/lib/esm/spotlight/stories/spotlight-in-side-nav.story.js.map +1 -1
  812. package/lib/esm/spotlight/stories/spotlight-on-tabs.story.js +1 -1
  813. package/lib/esm/spotlight/stories/spotlight-on-tabs.story.js.map +1 -1
  814. package/lib/esm/spotlight/stories/spotlight-tour.story.js +1 -1
  815. package/lib/esm/spotlight/stories/spotlight-tour.story.js.map +1 -1
  816. package/lib/esm/spotlight/stories/spotlight-with-icon.story.js +1 -1
  817. package/lib/esm/spotlight/stories/spotlight-with-icon.story.js.map +1 -1
  818. package/lib/esm/spotlight/stories/spotlight-with-image.story.js +1 -1
  819. package/lib/esm/spotlight/stories/spotlight-with-image.story.js.map +1 -1
  820. package/lib/esm/spotlight/stories/spotlight-with-label.story.js +1 -1
  821. package/lib/esm/spotlight/stories/spotlight-with-label.story.js.map +1 -1
  822. package/lib/esm/spotlight/stories/spotlight-with-pointer.story.js +1 -1
  823. package/lib/esm/spotlight/stories/spotlight-with-pointer.story.js.map +1 -1
  824. package/lib/esm/spotlight/use-spotlight.js +5 -5
  825. package/lib/esm/spotlight/use-spotlight.js.map +1 -1
  826. package/lib/esm/status-indicator/stories/status-indicator-variants.story.js +1 -1
  827. package/lib/esm/status-indicator/stories/status-indicator-variants.story.js.map +1 -1
  828. package/lib/esm/status-label/stories/status-label-colors.story.js +1 -1
  829. package/lib/esm/status-label/stories/status-label-colors.story.js.map +1 -1
  830. package/lib/esm/status-label/stories/status-label-fills.story.js +1 -1
  831. package/lib/esm/status-label/stories/status-label-fills.story.js.map +1 -1
  832. package/lib/esm/status-label/stories/status-label-with-icons.story.js +1 -1
  833. package/lib/esm/status-label/stories/status-label-with-icons.story.js.map +1 -1
  834. package/lib/esm/tabs/Tabs.js +2 -2
  835. package/lib/esm/tabs/Tabs.js.map +1 -1
  836. package/lib/esm/tabs/stories/tabs-badge.story.js +1 -1
  837. package/lib/esm/tabs/stories/tabs-badge.story.js.map +1 -1
  838. package/lib/esm/tabs/stories/tabs-default.story.js +1 -1
  839. package/lib/esm/tabs/stories/tabs-default.story.js.map +1 -1
  840. package/lib/esm/tabs/stories/tabs-disabled.story.js +1 -1
  841. package/lib/esm/tabs/stories/tabs-disabled.story.js.map +1 -1
  842. package/lib/esm/tabs/stories/tabs-fill-variants.story.js +1 -1
  843. package/lib/esm/tabs/stories/tabs-fill-variants.story.js.map +1 -1
  844. package/lib/esm/tabs/stories/tabs-overflow.story.js +1 -1
  845. package/lib/esm/tabs/stories/tabs-overflow.story.js.map +1 -1
  846. package/lib/esm/tabs/stories/tabs-sizes.story.js +1 -1
  847. package/lib/esm/tabs/stories/tabs-sizes.story.js.map +1 -1
  848. package/lib/esm/tabs/stories/tabs-with-icons.story.js +1 -1
  849. package/lib/esm/tabs/stories/tabs-with-icons.story.js.map +1 -1
  850. package/lib/esm/tag/stories/tag-sizes.story.js +1 -1
  851. package/lib/esm/tag/stories/tag-sizes.story.js.map +1 -1
  852. package/lib/esm/tag/stories/tag-types.story.js +1 -1
  853. package/lib/esm/tag/stories/tag-types.story.js.map +1 -1
  854. package/lib/esm/tag-base/stories/tag-variants.story.js +1 -1
  855. package/lib/esm/tag-base/stories/tag-variants.story.js.map +1 -1
  856. package/lib/esm/text-area/stories/text-area-sizes.story.js +1 -1
  857. package/lib/esm/text-area/stories/text-area-sizes.story.js.map +1 -1
  858. package/lib/esm/text-input/TextInput.js.map +1 -1
  859. package/lib/esm/text-input/stories/text-input-loading-spinner.story.js +1 -1
  860. package/lib/esm/text-input/stories/text-input-loading-spinner.story.js.map +1 -1
  861. package/lib/esm/text-input/stories/text-input-optional.story.js +1 -1
  862. package/lib/esm/text-input/stories/text-input-optional.story.js.map +1 -1
  863. package/lib/esm/text-input/stories/text-input-sizes.story.js +1 -1
  864. package/lib/esm/text-input/stories/text-input-sizes.story.js.map +1 -1
  865. package/lib/esm/text-link/TextLink.js +2 -6
  866. package/lib/esm/text-link/TextLink.js.map +1 -1
  867. package/lib/esm/text-link/stories/index.js +3 -12
  868. package/lib/esm/text-link/stories/index.js.map +1 -1
  869. package/lib/esm/text-link/stories/text-link-external.story.js +3 -3
  870. package/lib/esm/text-link/stories/text-link-external.story.js.map +1 -1
  871. package/lib/esm/text-link/stories/{text-link-internal-underline.story.js → text-link-internal.story.js} +2 -2
  872. package/lib/esm/text-link/stories/text-link-internal.story.js.map +1 -0
  873. package/lib/esm/time-picker/stories/time-picker-in-popover-dialog.story.js +1 -1
  874. package/lib/esm/time-picker/stories/time-picker-in-popover-dialog.story.js.map +1 -1
  875. package/lib/esm/timezone-picker/stories/timezone-picker-in-dialog.story.js +1 -1
  876. package/lib/esm/timezone-picker/stories/timezone-picker-in-dialog.story.js.map +1 -1
  877. package/lib/esm/timezone-picker/stories/timezone-picker-in-popover-dialog.story.js +1 -1
  878. package/lib/esm/timezone-picker/stories/timezone-picker-in-popover-dialog.story.js.map +1 -1
  879. package/lib/esm/toast/stories/toast-action-story.js +1 -1
  880. package/lib/esm/toast/stories/toast-action-story.js.map +1 -1
  881. package/lib/esm/toast/stories/toast-closeable-story.js +1 -1
  882. package/lib/esm/toast/stories/toast-closeable-story.js.map +1 -1
  883. package/lib/esm/toast/stories/toast-controlled-story.js +1 -1
  884. package/lib/esm/toast/stories/toast-controlled-story.js.map +1 -1
  885. package/lib/esm/toast/stories/toast-custom-story.js +1 -1
  886. package/lib/esm/toast/stories/toast-custom-story.js.map +1 -1
  887. package/lib/esm/toast/stories/toast-danger-story.js +1 -1
  888. package/lib/esm/toast/stories/toast-danger-story.js.map +1 -1
  889. package/lib/esm/toast/stories/toast-neutral-story.js +1 -1
  890. package/lib/esm/toast/stories/toast-neutral-story.js.map +1 -1
  891. package/lib/esm/toast/stories/toast-progress-bar.js +1 -1
  892. package/lib/esm/toast/stories/toast-progress-bar.js.map +1 -1
  893. package/lib/esm/toast/stories/toast-success-story.js +1 -1
  894. package/lib/esm/toast/stories/toast-success-story.js.map +1 -1
  895. package/lib/esm/tooltip/Tooltip.js.map +1 -1
  896. package/lib/esm/tooltip/stories/tooltip-in-dialog.story.js +1 -1
  897. package/lib/esm/tooltip/stories/tooltip-in-dialog.story.js.map +1 -1
  898. package/lib/esm/tooltip/stories/tooltip-placements.story.js +1 -1
  899. package/lib/esm/tooltip/stories/tooltip-placements.story.js.map +1 -1
  900. package/lib/esm/tooltip/use-tooltip.js.map +1 -1
  901. package/lib/esm/tree-view/TreeView.js +3 -0
  902. package/lib/esm/tree-view/TreeView.js.map +1 -1
  903. package/lib/esm/tree-view/TreeViewItem.js.map +1 -1
  904. package/lib/esm/tree-view/stories/treeview-custom.story.js +2 -2
  905. package/lib/esm/tree-view/stories/treeview-custom.story.js.map +1 -1
  906. package/lib/esm/tree-view/tree-view-utils.js.map +1 -1
  907. package/lib/esm/typography/Typography.js +7 -1
  908. package/lib/esm/typography/Typography.js.map +1 -1
  909. package/lib/types/_generated/style-rules/index.d.ts +2 -2
  910. package/lib/types/_generated/style-rules/index.d.ts.map +1 -1
  911. package/lib/{cjs/text-link/stories/text-link-default.story.js → types/_generated/style-rules/literal-guards.d.ts} +8 -10
  912. package/lib/types/_generated/style-rules/literal-guards.d.ts.map +1 -0
  913. package/lib/types/_generated/style-rules/literal-schemas.d.ts +0 -12
  914. package/lib/types/_generated/style-rules/literal-schemas.d.ts.map +1 -1
  915. package/lib/types/_generated/style-rules/literal-types.d.ts +80 -0
  916. package/lib/types/_generated/style-rules/literal-types.d.ts.map +1 -0
  917. package/lib/types/_generated/style-rules/numeric-utils.d.ts +1 -1
  918. package/lib/types/_generated/style-rules/numeric-utils.d.ts.map +1 -1
  919. package/lib/types/_generated/style-rules/range-utils.d.ts +1 -1
  920. package/lib/types/_generated/style-rules/range-utils.d.ts.map +1 -1
  921. package/lib/types/ai/reasoning/Reasoning.d.ts +1 -10
  922. package/lib/types/ai/reasoning/Reasoning.d.ts.map +1 -1
  923. package/lib/types/ai/reasoning/stories/reasoning-full.story.d.ts.map +1 -1
  924. package/lib/types/ai/response/Response.d.ts.map +1 -1
  925. package/lib/types/ai/response/stories/response-fixtures.d.ts +37 -0
  926. package/lib/types/ai/response/stories/response-fixtures.d.ts.map +1 -0
  927. package/lib/types/button/ButtonBase.d.ts.map +1 -1
  928. package/lib/types/code-block/CodeBlock.d.ts +2 -2
  929. package/lib/types/code-block/CodeBlock.d.ts.map +1 -1
  930. package/lib/types/color-picker/ColorPicker.d.ts.map +1 -1
  931. package/lib/types/data-grid/style-rules/guard.d.ts +43 -0
  932. package/lib/types/data-grid/style-rules/guard.d.ts.map +1 -0
  933. package/lib/types/data-grid/style-rules/index.d.ts +1 -2
  934. package/lib/types/data-grid/style-rules/index.d.ts.map +1 -1
  935. package/lib/types/data-grid/style-rules/internal/schemas.d.ts +321 -0
  936. package/lib/types/data-grid/style-rules/internal/schemas.d.ts.map +1 -0
  937. package/lib/types/data-grid/style-rules/types.d.ts +60 -284
  938. package/lib/types/data-grid/style-rules/types.d.ts.map +1 -1
  939. package/lib/types/date-picker/DatePicker.d.ts.map +1 -1
  940. package/lib/types/dialog/Dialog.d.ts.map +1 -1
  941. package/lib/types/drawer/Drawer.d.ts +7 -13
  942. package/lib/types/drawer/Drawer.d.ts.map +1 -1
  943. package/lib/types/drawer/stories/drawer-overlay.story.d.ts.map +1 -1
  944. package/lib/types/dropzone/stories/dropzone-full.story.d.ts.map +1 -1
  945. package/lib/types/hooks/use-debounce-callback/index.d.ts +2 -2
  946. package/lib/types/hooks/use-debounce-callback/index.d.ts.map +1 -1
  947. package/lib/types/icon-button-base/IconButtonBase.d.ts.map +1 -1
  948. package/lib/types/icons/generated/custom/index.d.ts +0 -7
  949. package/lib/types/icons/generated/custom/index.d.ts.map +1 -1
  950. package/lib/types/inline-edit/InlineEdit.d.ts +6 -1
  951. package/lib/types/inline-edit/InlineEdit.d.ts.map +1 -1
  952. package/lib/types/kbd/Kbd.d.ts +1 -1
  953. package/lib/types/kbd/Kbd.d.ts.map +1 -1
  954. package/lib/types/menu/Menu.d.ts +1 -1
  955. package/lib/types/menu/Menu.d.ts.map +1 -1
  956. package/lib/types/menu/menu-types.d.ts +2 -2
  957. package/lib/types/menu/menu-types.d.ts.map +1 -1
  958. package/lib/types/next/tree-view/TreeView.d.ts +2 -2
  959. package/lib/types/next/tree-view/TreeView.d.ts.map +1 -1
  960. package/lib/types/popover/Popover.d.ts +15 -12
  961. package/lib/types/popover/Popover.d.ts.map +1 -1
  962. package/lib/types/popover/stories/popover-controlled.story.d.ts.map +1 -1
  963. package/lib/types/popover/stories/popover-default.story.d.ts.map +1 -1
  964. package/lib/types/popover/stories/popover-no-button-wrapper.story.d.ts.map +1 -1
  965. package/lib/types/popover/use-popover.d.ts +14 -9
  966. package/lib/types/popover/use-popover.d.ts.map +1 -1
  967. package/lib/types/side-navigation/SideNavigation.d.ts.map +1 -1
  968. package/lib/types/slider/Slider.d.ts +3 -3
  969. package/lib/types/slider/Slider.d.ts.map +1 -1
  970. package/lib/types/spotlight/Spotlight.d.ts +2 -2
  971. package/lib/types/spotlight/Spotlight.d.ts.map +1 -1
  972. package/lib/types/spotlight/SpotlightTarget.d.ts +3 -3
  973. package/lib/types/spotlight/SpotlightTarget.d.ts.map +1 -1
  974. package/lib/types/spotlight/stories/spotlight-tour.story.d.ts.map +1 -1
  975. package/lib/types/spotlight/stories/spotlight-with-image.story.d.ts.map +1 -1
  976. package/lib/types/spotlight/use-spotlight.d.ts +4 -4
  977. package/lib/types/spotlight/use-spotlight.d.ts.map +1 -1
  978. package/lib/types/tabs/Tabs.d.ts +3 -1
  979. package/lib/types/tabs/Tabs.d.ts.map +1 -1
  980. package/lib/types/text-link/TextLink.d.ts +2 -13
  981. package/lib/types/text-link/TextLink.d.ts.map +1 -1
  982. package/lib/types/text-link/stories/index.d.ts +2 -8
  983. package/lib/types/text-link/stories/index.d.ts.map +1 -1
  984. package/lib/types/text-link/stories/text-link-external.story.d.ts.map +1 -1
  985. package/lib/types/{text-overflow/stories/character-limit.story.d.ts → text-link/stories/text-link-internal.story.d.ts} +1 -1
  986. package/lib/types/text-link/stories/text-link-internal.story.d.ts.map +1 -0
  987. package/lib/types/tooltip/Tooltip.d.ts +0 -1
  988. package/lib/types/tooltip/Tooltip.d.ts.map +1 -1
  989. package/lib/types/tooltip/use-tooltip.d.ts.map +1 -1
  990. package/lib/types/tree-view/TreeView.d.ts +3 -0
  991. package/lib/types/tree-view/TreeView.d.ts.map +1 -1
  992. package/lib/types/tree-view/TreeViewItem.d.ts.map +1 -1
  993. package/lib/types/tree-view/tree-view-utils.d.ts.map +1 -1
  994. package/lib/types/typography/Typography.d.ts +6 -0
  995. package/lib/types/typography/Typography.d.ts.map +1 -1
  996. package/package.json +5 -4
  997. package/skills/ndl-react/SKILL.md +21 -19
  998. package/skills/ndl-react/components/ai/presence.md +3 -3
  999. package/skills/ndl-react/components/ai/reasoning.md +2 -6
  1000. package/skills/ndl-react/components/ai/response.md +17 -17
  1001. package/skills/ndl-react/components/ai/suggestion.md +1 -1
  1002. package/skills/ndl-react/components/ai/user-bubble.md +2 -2
  1003. package/skills/ndl-react/components/announcement-banner.md +10 -10
  1004. package/skills/ndl-react/components/avatar.md +5 -5
  1005. package/skills/ndl-react/components/banner.md +2 -2
  1006. package/skills/ndl-react/components/breadcrumbs.md +3 -3
  1007. package/skills/ndl-react/components/checkbox.md +4 -4
  1008. package/skills/ndl-react/components/clean-icon-button.md +17 -17
  1009. package/skills/ndl-react/components/clipboard-button.md +1 -1
  1010. package/skills/ndl-react/components/code-block.md +8 -9
  1011. package/skills/ndl-react/components/color-picker.md +3 -3
  1012. package/skills/ndl-react/components/combobox.md +20 -20
  1013. package/skills/ndl-react/components/conditional-wrap.md +1 -1
  1014. package/skills/ndl-react/components/data-grid.md +28 -28
  1015. package/skills/ndl-react/components/date-picker.md +3 -3
  1016. package/skills/ndl-react/components/dialog.md +9 -9
  1017. package/skills/ndl-react/components/dismissible-tag.md +2 -2
  1018. package/skills/ndl-react/components/drawer.md +39 -37
  1019. package/skills/ndl-react/components/dropzone.md +10 -13
  1020. package/skills/ndl-react/components/flex.md +1 -1
  1021. package/skills/ndl-react/components/graph-label.md +3 -3
  1022. package/skills/ndl-react/components/icon-button-array.md +1 -1
  1023. package/skills/ndl-react/components/icon-button.md +7 -7
  1024. package/skills/ndl-react/components/inline-edit.md +4 -1
  1025. package/skills/ndl-react/components/loading-spinner.md +1 -1
  1026. package/skills/ndl-react/components/logo.md +3 -3
  1027. package/skills/ndl-react/components/menu.md +14 -14
  1028. package/skills/ndl-react/components/next/tree-view.md +18 -18
  1029. package/skills/ndl-react/components/popover.md +15 -21
  1030. package/skills/ndl-react/components/progress-bar.md +1 -1
  1031. package/skills/ndl-react/components/radio.md +2 -2
  1032. package/skills/ndl-react/components/read-only-tag.md +2 -2
  1033. package/skills/ndl-react/components/segmented-control.md +1 -1
  1034. package/skills/ndl-react/components/select-icon-button.md +8 -8
  1035. package/skills/ndl-react/components/select.md +8 -8
  1036. package/skills/ndl-react/components/selectable-tag.md +2 -2
  1037. package/skills/ndl-react/components/side-navigation.md +19 -19
  1038. package/skills/ndl-react/components/skeleton.md +13 -13
  1039. package/skills/ndl-react/components/slider.md +13 -13
  1040. package/skills/ndl-react/components/spotlight.md +43 -27
  1041. package/skills/ndl-react/components/status-indicator.md +6 -6
  1042. package/skills/ndl-react/components/status-label.md +3 -3
  1043. package/skills/ndl-react/components/tabs.md +21 -20
  1044. package/skills/ndl-react/components/tag.md +2 -2
  1045. package/skills/ndl-react/components/text-area.md +1 -1
  1046. package/skills/ndl-react/components/text-input.md +3 -3
  1047. package/skills/ndl-react/components/text-link.md +12 -63
  1048. package/skills/ndl-react/components/time-picker.md +2 -2
  1049. package/skills/ndl-react/components/timezone-picker.md +4 -4
  1050. package/skills/ndl-react/components/tooltip.md +3 -3
  1051. package/skills/ndl-react/components/tree-view.md +6 -4
  1052. package/skills/ndl-react/components/typography.md +4 -0
  1053. package/skills/ndl-react/references/styling.md +56 -48
  1054. package/lib/cjs/icons/generated/custom/AddNode.js +0 -31
  1055. package/lib/cjs/icons/generated/custom/AddNode.js.map +0 -1
  1056. package/lib/cjs/icons/generated/custom/PanelBottom.js +0 -31
  1057. package/lib/cjs/icons/generated/custom/PanelBottom.js.map +0 -1
  1058. package/lib/cjs/icons/generated/custom/PanelLeft.js +0 -31
  1059. package/lib/cjs/icons/generated/custom/PanelLeft.js.map +0 -1
  1060. package/lib/cjs/icons/generated/custom/PanelLeftCollapsed.js +0 -31
  1061. package/lib/cjs/icons/generated/custom/PanelLeftCollapsed.js.map +0 -1
  1062. package/lib/cjs/icons/generated/custom/PanelLeftExpanded.js +0 -31
  1063. package/lib/cjs/icons/generated/custom/PanelLeftExpanded.js.map +0 -1
  1064. package/lib/cjs/icons/generated/custom/PanelRight.js +0 -31
  1065. package/lib/cjs/icons/generated/custom/PanelRight.js.map +0 -1
  1066. package/lib/cjs/icons/generated/custom/ThreePanel.js +0 -31
  1067. package/lib/cjs/icons/generated/custom/ThreePanel.js.map +0 -1
  1068. package/lib/cjs/text-link/stories/text-link-default.story.js.map +0 -1
  1069. package/lib/cjs/text-link/stories/text-link-external-underline.story.js +0 -30
  1070. package/lib/cjs/text-link/stories/text-link-external-underline.story.js.map +0 -1
  1071. package/lib/cjs/text-link/stories/text-link-internal-icon.story.js +0 -30
  1072. package/lib/cjs/text-link/stories/text-link-internal-icon.story.js.map +0 -1
  1073. package/lib/cjs/text-link/stories/text-link-internal-underline.story.js.map +0 -1
  1074. package/lib/cjs/text-overflow/TextOverflow.js +0 -146
  1075. package/lib/cjs/text-overflow/TextOverflow.js.map +0 -1
  1076. package/lib/cjs/text-overflow/constants.js +0 -44
  1077. package/lib/cjs/text-overflow/constants.js.map +0 -1
  1078. package/lib/cjs/text-overflow/index.js.map +0 -1
  1079. package/lib/cjs/text-overflow/stories/character-limit.story.js +0 -32
  1080. package/lib/cjs/text-overflow/stories/character-limit.story.js.map +0 -1
  1081. package/lib/cjs/text-overflow/stories/expand-collapse-buttons.story.js +0 -32
  1082. package/lib/cjs/text-overflow/stories/expand-collapse-buttons.story.js.map +0 -1
  1083. package/lib/cjs/text-overflow/stories/index.js +0 -48
  1084. package/lib/cjs/text-overflow/stories/index.js.map +0 -1
  1085. package/lib/cjs/text-overflow/stories/line-clamp.story.js +0 -32
  1086. package/lib/cjs/text-overflow/stories/line-clamp.story.js.map +0 -1
  1087. package/lib/cjs/text-overflow/stories/mixed-content.story.js +0 -31
  1088. package/lib/cjs/text-overflow/stories/mixed-content.story.js.map +0 -1
  1089. package/lib/cjs/text-overflow/stories/width-based-truncation.story.js +0 -32
  1090. package/lib/cjs/text-overflow/stories/width-based-truncation.story.js.map +0 -1
  1091. package/lib/cjs/text-overflow/text-overflow-utils.js +0 -167
  1092. package/lib/cjs/text-overflow/text-overflow-utils.js.map +0 -1
  1093. package/lib/cjs/text-overflow/use-ellipsis-observer.js +0 -66
  1094. package/lib/cjs/text-overflow/use-ellipsis-observer.js.map +0 -1
  1095. package/lib/cjs/text-overflow/use-truncate-with-button.js +0 -205
  1096. package/lib/cjs/text-overflow/use-truncate-with-button.js.map +0 -1
  1097. package/lib/esm/icons/generated/custom/AddNode.js +0 -29
  1098. package/lib/esm/icons/generated/custom/AddNode.js.map +0 -1
  1099. package/lib/esm/icons/generated/custom/PanelBottom.js +0 -29
  1100. package/lib/esm/icons/generated/custom/PanelBottom.js.map +0 -1
  1101. package/lib/esm/icons/generated/custom/PanelLeft.js +0 -29
  1102. package/lib/esm/icons/generated/custom/PanelLeft.js.map +0 -1
  1103. package/lib/esm/icons/generated/custom/PanelLeftCollapsed.js +0 -29
  1104. package/lib/esm/icons/generated/custom/PanelLeftCollapsed.js.map +0 -1
  1105. package/lib/esm/icons/generated/custom/PanelLeftExpanded.js +0 -29
  1106. package/lib/esm/icons/generated/custom/PanelLeftExpanded.js.map +0 -1
  1107. package/lib/esm/icons/generated/custom/PanelRight.js +0 -29
  1108. package/lib/esm/icons/generated/custom/PanelRight.js.map +0 -1
  1109. package/lib/esm/icons/generated/custom/ThreePanel.js +0 -29
  1110. package/lib/esm/icons/generated/custom/ThreePanel.js.map +0 -1
  1111. package/lib/esm/text-link/stories/text-link-default.story.js +0 -28
  1112. package/lib/esm/text-link/stories/text-link-default.story.js.map +0 -1
  1113. package/lib/esm/text-link/stories/text-link-external-underline.story.js +0 -28
  1114. package/lib/esm/text-link/stories/text-link-external-underline.story.js.map +0 -1
  1115. package/lib/esm/text-link/stories/text-link-internal-icon.story.js +0 -28
  1116. package/lib/esm/text-link/stories/text-link-internal-icon.story.js.map +0 -1
  1117. package/lib/esm/text-link/stories/text-link-internal-underline.story.js.map +0 -1
  1118. package/lib/esm/text-overflow/TextOverflow.js +0 -139
  1119. package/lib/esm/text-overflow/TextOverflow.js.map +0 -1
  1120. package/lib/esm/text-overflow/constants.js +0 -41
  1121. package/lib/esm/text-overflow/constants.js.map +0 -1
  1122. package/lib/esm/text-overflow/index.js.map +0 -1
  1123. package/lib/esm/text-overflow/stories/character-limit.story.js +0 -30
  1124. package/lib/esm/text-overflow/stories/character-limit.story.js.map +0 -1
  1125. package/lib/esm/text-overflow/stories/expand-collapse-buttons.story.js +0 -30
  1126. package/lib/esm/text-overflow/stories/expand-collapse-buttons.story.js.map +0 -1
  1127. package/lib/esm/text-overflow/stories/index.js +0 -37
  1128. package/lib/esm/text-overflow/stories/index.js.map +0 -1
  1129. package/lib/esm/text-overflow/stories/line-clamp.story.js +0 -30
  1130. package/lib/esm/text-overflow/stories/line-clamp.story.js.map +0 -1
  1131. package/lib/esm/text-overflow/stories/mixed-content.story.js +0 -29
  1132. package/lib/esm/text-overflow/stories/mixed-content.story.js.map +0 -1
  1133. package/lib/esm/text-overflow/stories/width-based-truncation.story.js +0 -30
  1134. package/lib/esm/text-overflow/stories/width-based-truncation.story.js.map +0 -1
  1135. package/lib/esm/text-overflow/text-overflow-utils.js +0 -159
  1136. package/lib/esm/text-overflow/text-overflow-utils.js.map +0 -1
  1137. package/lib/esm/text-overflow/use-ellipsis-observer.js +0 -63
  1138. package/lib/esm/text-overflow/use-ellipsis-observer.js.map +0 -1
  1139. package/lib/esm/text-overflow/use-truncate-with-button.js +0 -202
  1140. package/lib/esm/text-overflow/use-truncate-with-button.js.map +0 -1
  1141. package/lib/types/icons/generated/custom/AddNode.d.ts +0 -30
  1142. package/lib/types/icons/generated/custom/AddNode.d.ts.map +0 -1
  1143. package/lib/types/icons/generated/custom/PanelBottom.d.ts +0 -30
  1144. package/lib/types/icons/generated/custom/PanelBottom.d.ts.map +0 -1
  1145. package/lib/types/icons/generated/custom/PanelLeft.d.ts +0 -30
  1146. package/lib/types/icons/generated/custom/PanelLeft.d.ts.map +0 -1
  1147. package/lib/types/icons/generated/custom/PanelLeftCollapsed.d.ts +0 -30
  1148. package/lib/types/icons/generated/custom/PanelLeftCollapsed.d.ts.map +0 -1
  1149. package/lib/types/icons/generated/custom/PanelLeftExpanded.d.ts +0 -30
  1150. package/lib/types/icons/generated/custom/PanelLeftExpanded.d.ts.map +0 -1
  1151. package/lib/types/icons/generated/custom/PanelRight.d.ts +0 -30
  1152. package/lib/types/icons/generated/custom/PanelRight.d.ts.map +0 -1
  1153. package/lib/types/icons/generated/custom/ThreePanel.d.ts +0 -30
  1154. package/lib/types/icons/generated/custom/ThreePanel.d.ts.map +0 -1
  1155. package/lib/types/text-link/stories/text-link-default.story.d.ts +0 -24
  1156. package/lib/types/text-link/stories/text-link-default.story.d.ts.map +0 -1
  1157. package/lib/types/text-link/stories/text-link-external-underline.story.d.ts +0 -24
  1158. package/lib/types/text-link/stories/text-link-external-underline.story.d.ts.map +0 -1
  1159. package/lib/types/text-link/stories/text-link-internal-icon.story.d.ts +0 -24
  1160. package/lib/types/text-link/stories/text-link-internal-icon.story.d.ts.map +0 -1
  1161. package/lib/types/text-link/stories/text-link-internal-underline.story.d.ts +0 -24
  1162. package/lib/types/text-link/stories/text-link-internal-underline.story.d.ts.map +0 -1
  1163. package/lib/types/text-overflow/TextOverflow.d.ts +0 -63
  1164. package/lib/types/text-overflow/TextOverflow.d.ts.map +0 -1
  1165. package/lib/types/text-overflow/constants.d.ts +0 -41
  1166. package/lib/types/text-overflow/constants.d.ts.map +0 -1
  1167. package/lib/types/text-overflow/index.d.ts +0 -22
  1168. package/lib/types/text-overflow/index.d.ts.map +0 -1
  1169. package/lib/types/text-overflow/stories/character-limit.story.d.ts.map +0 -1
  1170. package/lib/types/text-overflow/stories/expand-collapse-buttons.story.d.ts +0 -24
  1171. package/lib/types/text-overflow/stories/expand-collapse-buttons.story.d.ts.map +0 -1
  1172. package/lib/types/text-overflow/stories/index.d.ts +0 -31
  1173. package/lib/types/text-overflow/stories/index.d.ts.map +0 -1
  1174. package/lib/types/text-overflow/stories/line-clamp.story.d.ts +0 -24
  1175. package/lib/types/text-overflow/stories/line-clamp.story.d.ts.map +0 -1
  1176. package/lib/types/text-overflow/stories/mixed-content.story.d.ts +0 -24
  1177. package/lib/types/text-overflow/stories/mixed-content.story.d.ts.map +0 -1
  1178. package/lib/types/text-overflow/stories/width-based-truncation.story.d.ts +0 -24
  1179. package/lib/types/text-overflow/stories/width-based-truncation.story.d.ts.map +0 -1
  1180. package/lib/types/text-overflow/text-overflow-utils.d.ts +0 -35
  1181. package/lib/types/text-overflow/text-overflow-utils.d.ts.map +0 -1
  1182. package/lib/types/text-overflow/use-ellipsis-observer.d.ts +0 -28
  1183. package/lib/types/text-overflow/use-ellipsis-observer.d.ts.map +0 -1
  1184. package/lib/types/text-overflow/use-truncate-with-button.d.ts +0 -45
  1185. package/lib/types/text-overflow/use-truncate-with-button.d.ts.map +0 -1
@@ -1 +1 @@
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,KAAK,EAAC,iCAAiC,EACvC,eAAe,EAAE,IAAI,EACrB,aAAa,EAAE,uBAAC,uBAAe,KAAG,aAElC,wBAAC,eAAQ,CAAC,IAAI,IAAC,KAAK,EAAC,MAAM,EAAC,aAAa,EAAE,uBAAC,uBAAe,KAAG,aAC5D,uBAAC,eAAQ,CAAC,IAAI,IACZ,KAAK,EAAC,YAAY,EAClB,UAAU,EAAE,QAAQ,KAAK,QAAQ,EACjC,gBAAgB,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,EAC7C,aAAa,EAAE,uBAAC,2BAAmB,KAAG,GACtC,EACF,uBAAC,eAAQ,CAAC,IAAI,IACZ,KAAK,EAAC,mBAAmB,EACzB,UAAU,EAAE,QAAQ,KAAK,cAAc,EACvC,gBAAgB,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,cAAc,CAAC,EACnD,aAAa,EAAE,uBAAC,2BAAmB,KAAG,GACtC,IACY,EAChB,uBAAC,eAAQ,CAAC,IAAI,IACZ,KAAK,EAAC,YAAY,EAClB,UAAU,EAAE,QAAQ,KAAK,QAAQ,EACjC,gBAAgB,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,EAC7C,aAAa,EAAE,uBAAC,2BAAmB,KAAG,GACtC,IACY,EAChB,wBAAC,eAAQ,CAAC,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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AC,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 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;I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AC;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;IA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AG,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 { 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,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,yCAAyC,aACtD,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,YAAY,gCAErB,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=\"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,
@@ -1 +1 @@
1
- {"version":3,"file":"use-popover.js","sourceRoot":"","sources":["../../../src/popover/use-popover.tsx"],"names":[],"mappings":";;AAoGA,gCAiIC;AArOD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,8CAiB4B;AAC5B,0CAAyC;AACzC,iCAA0C;AA6D1C,SAAgB,UAAU,CAAC,EACzB,aAAa,GAAG,KAAK,EACrB,SAAS,GAAG,QAAQ,EACpB,MAAM,EAAE,cAAc,EACtB,YAAY,EAAE,iB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MAAM,EAAE,gBAAgB,EAAE,GAAG,IAAA,2BAAmB,EAAC,OAAO,EAAE;QAChE,QAAQ,EAAE,MAAA,MAAM,CAAC,QAAQ,CAAC,aAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,mCAAI,CAAC;KAC7D,CAAC,CAAC;IAEH,OAAO,IAAA,eAAO,EACZ,GAAG,EAAE,CAAC,+CACD,IAAI,GACJ,YAAY,KACf,2BAA2B;QAC3B,aAAa;QACb,YAAY;QACZ,MAAM;QACN,UAAU;QACV,OAAO;QACP,WAAW;QACX,gBAAgB;QAChB,UAAU;QACV,kBAAkB;QAClB,qBAAqB;QACrB,gBAAgB,IAChB,EACF;QACE,MAAM;QACN,YAAY;QACZ,IAAI;QACJ,gBAAgB;QAChB,OAAO;QACP,aAAa;QACb,2BAA2B;QAC3B,kBAAkB;QAClB,qBAAqB;QACrB,YAAY;QACZ,UAAU;QACV,WAAW;KACZ,CACF,CAAC;AACJ,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 */\nimport {\n autoUpdate,\n flip,\n type FloatingFocusManagerProps,\n offset,\n type OffsetOptions,\n type Placement,\n shift,\n size,\n useClick,\n useClientPoint,\n useDismiss,\n useFloating,\n useInteractions,\n type UseInteractionsReturn,\n useRole,\n useTransitionStyles,\n} from '@floating-ui/react';\nimport { tokens } from '@neo4j-ndl/base';\nimport { useMemo, useState } from 'react';\n\nexport interface PopoverOptions {\n isInitialOpen?: boolean;\n placement?: Placement;\n isOpen?: boolean;\n onOpenChange?: (open: boolean, event?: Event) => void;\n offsetOption?: OffsetOptions;\n anchorElement?: Element | null;\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 // TODO v5: fix boolean naming convention\n // eslint-disable-next-line @typescript-eslint/naming-convention\n anchorElementAsPortalAnchor?: boolean;\n shouldCaptureFocus?: boolean;\n initialFocus?: number | React.RefObject<HTMLElement | null>;\n role?:\n | 'tooltip'\n | 'dialog'\n | 'alertdialog'\n | 'menu'\n | 'listbox'\n | 'grid'\n | 'tree';\n // TODO v5: decide if this naming is okay, or change it\n // eslint-disable-next-line @typescript-eslint/naming-convention\n closeOnClickOutside?: boolean;\n // TODO v5: decide if this naming is okay, or change it\n // eslint-disable-next-line @typescript-eslint/naming-convention\n closeOnReferencePress?: boolean;\n shouldCloseOnFocusOut?: boolean;\n returnFocus?: FloatingFocusManagerProps['returnFocus'];\n strategy?: 'fixed' | 'absolute';\n isPortaled?: boolean;\n shouldConstrainSize?: boolean;\n}\n\nexport interface UsePopoverReturn\n extends UseInteractionsReturn, ReturnType<typeof useFloating> {\n isOpen: boolean;\n labelId: string | undefined;\n descriptionId: string | undefined;\n transitionStyles: React.CSSProperties;\n setLabelId: (labelId: string | undefined) => void;\n setDescriptionId: (descriptionId: string | undefined) => void;\n // TODO v5: fix boolean naming convention\n // eslint-disable-next-line @typescript-eslint/naming-convention\n anchorElementAsPortalAnchor: boolean | undefined;\n shouldCaptureFocus: boolean | undefined;\n shouldCloseOnFocusOut: boolean | undefined;\n initialFocus: number | React.RefObject<HTMLElement | null> | undefined;\n isPortaled: boolean;\n returnFocus: FloatingFocusManagerProps['returnFocus'];\n}\n\nexport function usePopover({\n isInitialOpen = false,\n placement = 'bottom',\n isOpen: controlledOpen,\n onOpenChange: setControlledOpen,\n offsetOption = 10,\n anchorElement,\n anchorPosition,\n anchorElementAsPortalAnchor,\n shouldCaptureFocus,\n initialFocus,\n role: roleProp,\n closeOnClickOutside,\n closeOnReferencePress,\n shouldCloseOnFocusOut,\n returnFocus,\n strategy = 'absolute',\n isPortaled = true,\n shouldConstrainSize = false,\n}: PopoverOptions = {}): UsePopoverReturn {\n // Internal state for uncontrolled mode (no `isOpen` prop provided).\n const [isOpenUncontrolled, setIsOpenUncontrolled] = useState(isInitialOpen);\n const [labelId, setLabelId] = useState<string | undefined>();\n const [descriptionId, setDescriptionId] = useState<string | undefined>();\n\n // Controlled/uncontrolled pattern: prefer the consumer-provided `isOpen`,\n // falling back to internal state when not provided.\n const isOpen = controlledOpen ?? isOpenUncontrolled;\n\n const data = useFloating({\n elements: {\n reference: anchorElement,\n },\n middleware: [\n offset(offsetOption),\n flip({\n crossAxis: placement.includes('-'),\n fallbackAxisSideDirection: 'end',\n padding: 5,\n }),\n shift(),\n ...(shouldConstrainSize\n ? [\n size({\n apply({ availableHeight, availableWidth, elements }) {\n Object.assign(elements.floating.style, {\n maxHeight: `${availableHeight}px`,\n maxWidth: `${availableWidth}px`,\n });\n },\n padding: 5,\n }),\n ]\n : []),\n ],\n // Floating UI calls this when interactions (useClick, useDismiss, etc.)\n // trigger an open/close. We always sync internal state so uncontrolled\n // mode works, and notify the consumer callback exactly once if provided.\n onOpenChange: (open, event) => {\n setIsOpenUncontrolled(open);\n setControlledOpen?.(open, event);\n },\n open: isOpen,\n placement: placement,\n strategy,\n whileElementsMounted: autoUpdate,\n });\n const context = data.context;\n\n // Only enable built-in click-to-toggle in uncontrolled mode. In controlled\n // mode the consumer owns the open state and wires up their own trigger.\n const click = useClick(context, {\n enabled: controlledOpen === undefined,\n });\n\n const dismiss = useDismiss(context, {\n outsidePress: closeOnClickOutside,\n referencePress: closeOnReferencePress,\n });\n const role = useRole(context, {\n role: roleProp,\n });\n\n const clientPoint = useClientPoint(context, {\n enabled: anchorPosition !== undefined,\n // oxlint-disable-next-line id-length\n x: anchorPosition?.x,\n // oxlint-disable-next-line id-length\n y: anchorPosition?.y,\n });\n\n const interactions = useInteractions([click, dismiss, role, clientPoint]);\n\n const { styles: transitionStyles } = useTransitionStyles(context, {\n duration: Number.parseInt(tokens.motion.duration.quick) ?? 0,\n });\n\n return useMemo(\n () => ({\n ...data,\n ...interactions,\n anchorElementAsPortalAnchor,\n descriptionId,\n initialFocus,\n isOpen,\n isPortaled,\n labelId,\n returnFocus,\n setDescriptionId,\n setLabelId,\n shouldCaptureFocus,\n shouldCloseOnFocusOut,\n transitionStyles,\n }),\n [\n isOpen,\n interactions,\n data,\n transitionStyles,\n labelId,\n descriptionId,\n anchorElementAsPortalAnchor,\n shouldCaptureFocus,\n shouldCloseOnFocusOut,\n initialFocus,\n isPortaled,\n returnFocus,\n ],\n );\n}\n"]}
1
+ {"version":3,"file":"use-popover.js","sourceRoot":"","sources":["../../../src/popover/use-popover.tsx"],"names":[],"mappings":";;AAgGA,gCA+HC;AA/ND;;;;;;;;;;;;;;;;;;;GAmBG;AACH,8CAiB4B;AAC5B,0CAAyC;AACzC,iCAA0C;AAyD1C,SAAgB,UAAU,CAAC,EACzB,aAAa,GAAG,KAAK,EACrB,SAAS,GAAG,QAAQ,EACpB,MAAM,EAAE,cAAc,EACtB,YAAY,EAAE,iBAAiB,EAC/B,YAAY,GAAG,EAAE,EACjB,aAAa,EACb,cAAc,EACd,8BAA8B,EAC9B,kBAAkB,EAClB,YAAY,EACZ,IAAI,EAAE,QAAQ,EACd,yBAAyB,EACzB,2BAA2B,EAC3B,qBAAqB,EACrB,WAAW,EACX,QAAQ,GAAG,UAAU,EACrB,UAAU,GAAG,IAAI,EACjB,mBAAmB,GAAG,KAAK,MACT,EAAE;;IACpB,oEAAoE;IACpE,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,IAAA,gBAAQ,EAAC,aAAa,CAAC,CAAC;IAC5E,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,g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B,EACF;QACE,MAAM;QACN,YAAY;QACZ,IAAI;QACJ,gBAAgB;QAChB,OAAO;QACP,aAAa;QACb,8BAA8B;QAC9B,kBAAkB;QAClB,qBAAqB;QACrB,YAAY;QACZ,UAAU;QACV,WAAW;KACZ,CACF,CAAC;AACJ,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 */\nimport {\n autoUpdate,\n flip,\n type FloatingFocusManagerProps,\n offset,\n type OffsetOptions,\n type Placement,\n shift,\n size,\n useClick,\n useClientPoint,\n useDismiss,\n useFloating,\n useInteractions,\n type UseInteractionsReturn,\n useRole,\n useTransitionStyles,\n} from '@floating-ui/react';\nimport { tokens } from '@neo4j-ndl/base';\nimport { useMemo, useState } from 'react';\n\n/**\n * Client coordinates used to anchor a floating element at a fixed point\n * (e.g. the cursor position for a context menu), instead of at an anchor element.\n */\nexport type AnchorPosition = {\n // oxlint-disable-next-line id-length\n x: number;\n // oxlint-disable-next-line id-length\n y: number;\n};\n\nexport interface PopoverOptions {\n isInitialOpen?: boolean;\n placement?: Placement;\n isOpen?: boolean;\n onOpenChange?: (open: boolean, event?: Event) => void;\n offsetOption?: OffsetOptions;\n anchorElement?: Element | null;\n anchorPosition?: AnchorPosition;\n hasAnchorElementAsPortalAnchor?: boolean;\n shouldCaptureFocus?: boolean;\n initialFocus?: number | React.RefObject<HTMLElement | null>;\n role?:\n | 'tooltip'\n | 'dialog'\n | 'alertdialog'\n | 'menu'\n | 'listbox'\n | 'grid'\n | 'tree';\n shouldCloseOnClickOutside?: boolean;\n shouldCloseOnReferencePress?: boolean;\n shouldCloseOnFocusOut?: boolean;\n returnFocus?: FloatingFocusManagerProps['returnFocus'];\n strategy?: 'fixed' | 'absolute';\n isPortaled?: boolean;\n shouldConstrainSize?: boolean;\n}\n\nexport interface UsePopoverReturn\n extends UseInteractionsReturn, ReturnType<typeof useFloating> {\n isOpen: boolean;\n labelId: string | undefined;\n descriptionId: string | undefined;\n transitionStyles: React.CSSProperties;\n setLabelId: (labelId: string | undefined) => void;\n setDescriptionId: (descriptionId: string | undefined) => void;\n hasAnchorElementAsPortalAnchor: boolean | undefined;\n shouldCaptureFocus: boolean | undefined;\n shouldCloseOnFocusOut: boolean | undefined;\n initialFocus: number | React.RefObject<HTMLElement | null> | undefined;\n isPortaled: boolean;\n returnFocus: FloatingFocusManagerProps['returnFocus'];\n}\n\nexport function usePopover({\n isInitialOpen = false,\n placement = 'bottom',\n isOpen: controlledOpen,\n onOpenChange: setControlledOpen,\n offsetOption = 10,\n anchorElement,\n anchorPosition,\n hasAnchorElementAsPortalAnchor,\n shouldCaptureFocus,\n initialFocus,\n role: roleProp,\n shouldCloseOnClickOutside,\n shouldCloseOnReferencePress,\n shouldCloseOnFocusOut,\n returnFocus,\n strategy = 'absolute',\n isPortaled = true,\n shouldConstrainSize = false,\n}: PopoverOptions = {}): UsePopoverReturn {\n // Internal state for uncontrolled mode (no `isOpen` prop provided).\n const [isOpenUncontrolled, setIsOpenUncontrolled] = useState(isInitialOpen);\n const [labelId, setLabelId] = useState<string | undefined>();\n const [descriptionId, setDescriptionId] = useState<string | undefined>();\n\n // Controlled/uncontrolled pattern: prefer the consumer-provided `isOpen`,\n // falling back to internal state when not provided.\n const isOpen = controlledOpen ?? isOpenUncontrolled;\n\n const data = useFloating({\n elements: {\n reference: anchorElement,\n },\n middleware: [\n offset(offsetOption),\n flip({\n crossAxis: placement.includes('-'),\n fallbackAxisSideDirection: 'end',\n padding: 5,\n }),\n shift(),\n ...(shouldConstrainSize\n ? [\n size({\n apply({ availableHeight, availableWidth, elements }) {\n Object.assign(elements.floating.style, {\n maxHeight: `${availableHeight}px`,\n maxWidth: `${availableWidth}px`,\n });\n },\n padding: 5,\n }),\n ]\n : []),\n ],\n // Floating UI calls this when interactions (useClick, useDismiss, etc.)\n // trigger an open/close. We always sync internal state so uncontrolled\n // mode works, and notify the consumer callback exactly once if provided.\n onOpenChange: (open, event) => {\n setIsOpenUncontrolled(open);\n setControlledOpen?.(open, event);\n },\n open: isOpen,\n placement: placement,\n strategy,\n whileElementsMounted: autoUpdate,\n });\n const context = data.context;\n\n // Only enable built-in click-to-toggle in uncontrolled mode. In controlled\n // mode the consumer owns the open state and wires up their own trigger.\n const click = useClick(context, {\n enabled: controlledOpen === undefined,\n });\n\n const dismiss = useDismiss(context, {\n outsidePress: shouldCloseOnClickOutside,\n referencePress: shouldCloseOnReferencePress,\n });\n const role = useRole(context, { role: roleProp });\n\n const clientPoint = useClientPoint(context, {\n enabled: anchorPosition !== undefined,\n // oxlint-disable-next-line id-length\n x: anchorPosition?.x,\n // oxlint-disable-next-line id-length\n y: anchorPosition?.y,\n });\n\n const interactions = useInteractions([click, dismiss, role, clientPoint]);\n\n const { styles: transitionStyles } = useTransitionStyles(context, {\n duration: Number.parseInt(tokens.motion.duration.quick) ?? 0,\n });\n\n return useMemo(\n () => ({\n ...data,\n ...interactions,\n descriptionId,\n hasAnchorElementAsPortalAnchor,\n initialFocus,\n isOpen,\n isPortaled,\n labelId,\n returnFocus,\n setDescriptionId,\n setLabelId,\n shouldCaptureFocus,\n shouldCloseOnFocusOut,\n transitionStyles,\n }),\n [\n isOpen,\n interactions,\n data,\n transitionStyles,\n labelId,\n descriptionId,\n hasAnchorElementAsPortalAnchor,\n shouldCaptureFocus,\n shouldCloseOnFocusOut,\n initialFocus,\n isPortaled,\n returnFocus,\n ],\n );\n}\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)("div", { className: "n-flex n-flex-col n-gap-token-16", children: [(0, jsx_runtime_1.jsx)(react_1.ProgressBar, { value: 75, size: "small", heading: "Small" }), (0, jsx_runtime_1.jsx)(react_1.ProgressBar, { value: 75, size: "large", heading: "Large" })] }));
27
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-token-16", children: [(0, jsx_runtime_1.jsx)(react_1.ProgressBar, { value: 75, size: "small", heading: "Small" }), (0, jsx_runtime_1.jsx)(react_1.ProgressBar, { value: 75, size: "large", heading: "Large" })] }));
28
28
  };
29
29
  exports.default = Component;
30
30
  //# sourceMappingURL=progress-bar-sizes.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"progress-bar-sizes.story.js","sourceRoot":"","sources":["../../../../src/progress-bar/stories/progress-bar-sizes.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA+C;AAE/C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,kCAAkC,aAC/C,uBAAC,mBAAW,IAAC,KAAK,EAAE,EAAE,EAAE,IAAI,EAAC,OAAO,EAAC,OAAO,EAAC,OAAO,GAAG,EACvD,uBAAC,mBAAW,IAAC,KAAK,EAAE,EAAE,EAAE,IAAI,EAAC,OAAO,EAAC,OAAO,EAAC,OAAO,GAAG,IACnD,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 { ProgressBar } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"n-flex n-flex-col n-gap-token-16\">\n <ProgressBar value={75} size=\"small\" heading=\"Small\" />\n <ProgressBar value={75} size=\"large\" heading=\"Large\" />\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"progress-bar-sizes.story.js","sourceRoot":"","sources":["../../../../src/progress-bar/stories/progress-bar-sizes.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA+C;AAE/C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,4BAA4B,aACzC,uBAAC,mBAAW,IAAC,KAAK,EAAE,EAAE,EAAE,IAAI,EAAC,OAAO,EAAC,OAAO,EAAC,OAAO,GAAG,EACvD,uBAAC,mBAAW,IAAC,KAAK,EAAE,EAAE,EAAE,IAAI,EAAC,OAAO,EAAC,OAAO,EAAC,OAAO,GAAG,IACnD,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 { ProgressBar } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"flex flex-col gap-token-16\">\n <ProgressBar value={75} size=\"small\" heading=\"Small\" />\n <ProgressBar value={75} size=\"large\" heading=\"Large\" />\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)("div", { className: "n-flex n-flex-col n-gap-token-12", children: [(0, jsx_runtime_1.jsx)(react_1.Radio, { label: "Radio label", isDisabled: true }), (0, jsx_runtime_1.jsx)(react_1.Radio, { label: "Radio label", isDisabled: true, isChecked: true })] }));
27
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-token-12", children: [(0, jsx_runtime_1.jsx)(react_1.Radio, { label: "Radio label", isDisabled: true }), (0, jsx_runtime_1.jsx)(react_1.Radio, { label: "Radio label", isDisabled: true, isChecked: true })] }));
28
28
  };
29
29
  exports.default = Component;
30
30
  //# sourceMappingURL=radio-disabled.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio-disabled.story.js","sourceRoot":"","sources":["../../../../src/radio/stories/radio-disabled.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAyC;AAEzC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,kCAAkC,aAC/C,uBAAC,aAAK,IAAC,KAAK,EAAC,aAAa,EAAC,UAAU,SAAG,EACxC,uBAAC,aAAK,IAAC,KAAK,EAAC,aAAa,EAAC,UAAU,QAAC,SAAS,SAAG,IAC9C,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 { Radio } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"n-flex n-flex-col n-gap-token-12\">\n <Radio label=\"Radio label\" isDisabled />\n <Radio label=\"Radio label\" isDisabled isChecked />\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"radio-disabled.story.js","sourceRoot":"","sources":["../../../../src/radio/stories/radio-disabled.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAyC;AAEzC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,4BAA4B,aACzC,uBAAC,aAAK,IAAC,KAAK,EAAC,aAAa,EAAC,UAAU,SAAG,EACxC,uBAAC,aAAK,IAAC,KAAK,EAAC,aAAa,EAAC,UAAU,QAAC,SAAS,SAAG,IAC9C,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 { Radio } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"flex flex-col gap-token-12\">\n <Radio label=\"Radio label\" isDisabled />\n <Radio label=\"Radio label\" isDisabled isChecked />\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.jsx)("div", { className: "n-max-w-32", children: (0, jsx_runtime_1.jsx)(react_1.Radio, { label: "This is a long label that will overflow" }) }));
27
+ return ((0, jsx_runtime_1.jsx)("div", { className: "max-w-32", children: (0, jsx_runtime_1.jsx)(react_1.Radio, { label: "This is a long label that will overflow" }) }));
28
28
  };
29
29
  exports.default = Component;
30
30
  //# sourceMappingURL=radio-truncated-label.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio-truncated-label.story.js","sourceRoot":"","sources":["../../../../src/radio/stories/radio-truncated-label.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAyC;AAEzC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,gCAAK,SAAS,EAAC,YAAY,YACzB,uBAAC,aAAK,IAAC,KAAK,EAAC,yCAAyC,GAAG,GACrD,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 { Radio } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"n-max-w-32\">\n <Radio label=\"This is a long label that will overflow\" />\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"radio-truncated-label.story.js","sourceRoot":"","sources":["../../../../src/radio/stories/radio-truncated-label.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAyC;AAEzC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,gCAAK,SAAS,EAAC,UAAU,YACvB,uBAAC,aAAK,IAAC,KAAK,EAAC,yCAAyC,GAAG,GACrD,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 { Radio } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"max-w-32\">\n <Radio label=\"This is a long label that will overflow\" />\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)("div", { className: "n-flex n-flex-col n-gap-token-16", children: [(0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { color: "1", children: "Categorical color 1" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { color: "2", children: "Categorical color 2" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { color: "3", children: "Categorical color 3" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { color: "4", children: "Categorical color 4" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { color: "5", children: "Categorical color 5" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { color: "6", children: "Categorical color 6" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { color: "7", children: "Categorical color 7" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { color: "8", children: "Categorical color 8" })] }));
27
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-token-16", children: [(0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { color: "1", children: "Categorical color 1" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { color: "2", children: "Categorical color 2" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { color: "3", children: "Categorical color 3" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { color: "4", children: "Categorical color 4" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { color: "5", children: "Categorical color 5" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { color: "6", children: "Categorical color 6" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { color: "7", children: "Categorical color 7" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { color: "8", children: "Categorical color 8" })] }));
28
28
  };
29
29
  exports.default = Component;
30
30
  //# sourceMappingURL=read-only-tag-colors.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"read-only-tag-colors.story.js","sourceRoot":"","sources":["../../../../src/read-only-tag/stories/read-only-tag-colors.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA+C;AAE/C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,kCAAkC,aAC/C,uBAAC,mBAAW,IAAC,KAAK,EAAC,GAAG,oCAAkC,EACxD,uBAAC,mBAAW,IAAC,KAAK,EAAC,GAAG,oCAAkC,EACxD,uBAAC,mBAAW,IAAC,KAAK,EAAC,GAAG,oCAAkC,EACxD,uBAAC,mBAAW,IAAC,KAAK,EAAC,GAAG,oCAAkC,EACxD,uBAAC,mBAAW,IAAC,KAAK,EAAC,GAAG,oCAAkC,EACxD,uBAAC,mBAAW,IAAC,KAAK,EAAC,GAAG,oCAAkC,EACxD,uBAAC,mBAAW,IAAC,KAAK,EAAC,GAAG,oCAAkC,EACxD,uBAAC,mBAAW,IAAC,KAAK,EAAC,GAAG,oCAAkC,IACpD,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 { ReadOnlyTag } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"n-flex n-flex-col n-gap-token-16\">\n <ReadOnlyTag color=\"1\">Categorical color 1</ReadOnlyTag>\n <ReadOnlyTag color=\"2\">Categorical color 2</ReadOnlyTag>\n <ReadOnlyTag color=\"3\">Categorical color 3</ReadOnlyTag>\n <ReadOnlyTag color=\"4\">Categorical color 4</ReadOnlyTag>\n <ReadOnlyTag color=\"5\">Categorical color 5</ReadOnlyTag>\n <ReadOnlyTag color=\"6\">Categorical color 6</ReadOnlyTag>\n <ReadOnlyTag color=\"7\">Categorical color 7</ReadOnlyTag>\n <ReadOnlyTag color=\"8\">Categorical color 8</ReadOnlyTag>\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"read-only-tag-colors.story.js","sourceRoot":"","sources":["../../../../src/read-only-tag/stories/read-only-tag-colors.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA+C;AAE/C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,4BAA4B,aACzC,uBAAC,mBAAW,IAAC,KAAK,EAAC,GAAG,oCAAkC,EACxD,uBAAC,mBAAW,IAAC,KAAK,EAAC,GAAG,oCAAkC,EACxD,uBAAC,mBAAW,IAAC,KAAK,EAAC,GAAG,oCAAkC,EACxD,uBAAC,mBAAW,IAAC,KAAK,EAAC,GAAG,oCAAkC,EACxD,uBAAC,mBAAW,IAAC,KAAK,EAAC,GAAG,oCAAkC,EACxD,uBAAC,mBAAW,IAAC,KAAK,EAAC,GAAG,oCAAkC,EACxD,uBAAC,mBAAW,IAAC,KAAK,EAAC,GAAG,oCAAkC,EACxD,uBAAC,mBAAW,IAAC,KAAK,EAAC,GAAG,oCAAkC,IACpD,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 { ReadOnlyTag } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"flex flex-col gap-token-16\">\n <ReadOnlyTag color=\"1\">Categorical color 1</ReadOnlyTag>\n <ReadOnlyTag color=\"2\">Categorical color 2</ReadOnlyTag>\n <ReadOnlyTag color=\"3\">Categorical color 3</ReadOnlyTag>\n <ReadOnlyTag color=\"4\">Categorical color 4</ReadOnlyTag>\n <ReadOnlyTag color=\"5\">Categorical color 5</ReadOnlyTag>\n <ReadOnlyTag color=\"6\">Categorical color 6</ReadOnlyTag>\n <ReadOnlyTag color=\"7\">Categorical color 7</ReadOnlyTag>\n <ReadOnlyTag color=\"8\">Categorical color 8</ReadOnlyTag>\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)("div", { className: "n-flex n-flex-row n-gap-token-8", children: [(0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { size: "x-small", children: "X-Small" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { size: "small", children: "Small" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { size: "medium", children: "Medium" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { size: "large", children: "Large" })] }));
27
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row gap-token-8", children: [(0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { size: "x-small", children: "X-Small" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { size: "small", children: "Small" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { size: "medium", children: "Medium" }), (0, jsx_runtime_1.jsx)(react_1.ReadOnlyTag, { size: "large", children: "Large" })] }));
28
28
  };
29
29
  exports.default = Component;
30
30
  //# sourceMappingURL=read-only-tag-sizes.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"read-only-tag-sizes.story.js","sourceRoot":"","sources":["../../../../src/read-only-tag/stories/read-only-tag-sizes.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA+C;AAE/C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,iCAAiC,aAC9C,uBAAC,mBAAW,IAAC,IAAI,EAAC,SAAS,wBAAsB,EACjD,uBAAC,mBAAW,IAAC,IAAI,EAAC,OAAO,sBAAoB,EAC7C,uBAAC,mBAAW,IAAC,IAAI,EAAC,QAAQ,uBAAqB,EAC/C,uBAAC,mBAAW,IAAC,IAAI,EAAC,OAAO,sBAAoB,IACzC,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 { ReadOnlyTag } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"n-flex n-flex-row n-gap-token-8\">\n <ReadOnlyTag size=\"x-small\">X-Small</ReadOnlyTag>\n <ReadOnlyTag size=\"small\">Small</ReadOnlyTag>\n <ReadOnlyTag size=\"medium\">Medium</ReadOnlyTag>\n <ReadOnlyTag size=\"large\">Large</ReadOnlyTag>\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"read-only-tag-sizes.story.js","sourceRoot":"","sources":["../../../../src/read-only-tag/stories/read-only-tag-sizes.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA+C;AAE/C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,2BAA2B,aACxC,uBAAC,mBAAW,IAAC,IAAI,EAAC,SAAS,wBAAsB,EACjD,uBAAC,mBAAW,IAAC,IAAI,EAAC,OAAO,sBAAoB,EAC7C,uBAAC,mBAAW,IAAC,IAAI,EAAC,QAAQ,uBAAqB,EAC/C,uBAAC,mBAAW,IAAC,IAAI,EAAC,OAAO,sBAAoB,IACzC,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 { ReadOnlyTag } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"flex flex-row gap-token-8\">\n <ReadOnlyTag size=\"x-small\">X-Small</ReadOnlyTag>\n <ReadOnlyTag size=\"small\">Small</ReadOnlyTag>\n <ReadOnlyTag size=\"medium\">Medium</ReadOnlyTag>\n <ReadOnlyTag size=\"large\">Large</ReadOnlyTag>\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -28,7 +28,7 @@ const Component = () => {
28
28
  const [selectedSmall, setSelectedSmall] = (0, react_2.useState)('small1');
29
29
  const [selectedMedium, setSelectedMedium] = (0, react_2.useState)('medium1');
30
30
  const [selectedLarge, setSelectedLarge] = (0, react_2.useState)('large1');
31
- return ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-gap-token-16", children: [(0, jsx_runtime_1.jsxs)(react_1.SegmentedControl, { selected: selectedSmall, onChange: setSelectedSmall, size: "small", children: [(0, jsx_runtime_1.jsx)(react_1.SegmentedControl.Item, { value: "small1", children: "Small 1" }), (0, jsx_runtime_1.jsx)(react_1.SegmentedControl.Item, { value: "small2", children: "Small 2" }), (0, jsx_runtime_1.jsx)(react_1.SegmentedControl.Item, { value: "small3", children: "Small 3" })] }), (0, jsx_runtime_1.jsxs)(react_1.SegmentedControl, { selected: selectedMedium, onChange: setSelectedMedium, size: "medium", children: [(0, jsx_runtime_1.jsx)(react_1.SegmentedControl.Item, { value: "medium1", children: "Medium 1" }), (0, jsx_runtime_1.jsx)(react_1.SegmentedControl.Item, { value: "medium2", children: "Medium 2" }), (0, jsx_runtime_1.jsx)(react_1.SegmentedControl.Item, { value: "medium3", children: "Medium 3" })] }), (0, jsx_runtime_1.jsxs)(react_1.SegmentedControl, { selected: selectedLarge, onChange: setSelectedLarge, size: "large", children: [(0, jsx_runtime_1.jsx)(react_1.SegmentedControl.Item, { value: "large1", children: "Large 1" }), (0, jsx_runtime_1.jsx)(react_1.SegmentedControl.Item, { value: "large2", children: "Large 2" }), (0, jsx_runtime_1.jsx)(react_1.SegmentedControl.Item, { value: "large3", children: "Large 3" })] })] }));
31
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-token-16", children: [(0, jsx_runtime_1.jsxs)(react_1.SegmentedControl, { selected: selectedSmall, onChange: setSelectedSmall, size: "small", children: [(0, jsx_runtime_1.jsx)(react_1.SegmentedControl.Item, { value: "small1", children: "Small 1" }), (0, jsx_runtime_1.jsx)(react_1.SegmentedControl.Item, { value: "small2", children: "Small 2" }), (0, jsx_runtime_1.jsx)(react_1.SegmentedControl.Item, { value: "small3", children: "Small 3" })] }), (0, jsx_runtime_1.jsxs)(react_1.SegmentedControl, { selected: selectedMedium, onChange: setSelectedMedium, size: "medium", children: [(0, jsx_runtime_1.jsx)(react_1.SegmentedControl.Item, { value: "medium1", children: "Medium 1" }), (0, jsx_runtime_1.jsx)(react_1.SegmentedControl.Item, { value: "medium2", children: "Medium 2" }), (0, jsx_runtime_1.jsx)(react_1.SegmentedControl.Item, { value: "medium3", children: "Medium 3" })] }), (0, jsx_runtime_1.jsxs)(react_1.SegmentedControl, { selected: selectedLarge, onChange: setSelectedLarge, size: "large", children: [(0, jsx_runtime_1.jsx)(react_1.SegmentedControl.Item, { value: "large1", children: "Large 1" }), (0, jsx_runtime_1.jsx)(react_1.SegmentedControl.Item, { value: "large2", children: "Large 2" }), (0, jsx_runtime_1.jsx)(react_1.SegmentedControl.Item, { value: "large3", children: "Large 3" })] })] }));
32
32
  };
33
33
  exports.default = Component;
34
34
  //# sourceMappingURL=segmented-control-sizes.story.js.map