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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1181) hide show
  1. package/lib/cjs/_generated/style-rules/index.js +5 -11
  2. package/lib/cjs/_generated/style-rules/index.js.map +1 -1
  3. package/lib/cjs/_generated/style-rules/literal-guards.js +50 -0
  4. package/lib/cjs/_generated/style-rules/literal-guards.js.map +1 -0
  5. package/lib/cjs/_generated/style-rules/literal-schemas.js +6 -21
  6. package/lib/cjs/_generated/style-rules/literal-schemas.js.map +1 -1
  7. package/lib/cjs/{text-overflow/index.js → _generated/style-rules/literal-types.js} +9 -6
  8. package/lib/cjs/_generated/style-rules/literal-types.js.map +1 -0
  9. package/lib/cjs/_generated/style-rules/numeric-utils.js.map +1 -1
  10. package/lib/cjs/_generated/style-rules/range-utils.js.map +1 -1
  11. package/lib/cjs/ai/presence/stories/ai-presence-default.story.js +1 -1
  12. package/lib/cjs/ai/presence/stories/ai-presence-default.story.js.map +1 -1
  13. package/lib/cjs/ai/presence/stories/ai-presence-thinking.story.js +1 -1
  14. package/lib/cjs/ai/presence/stories/ai-presence-thinking.story.js.map +1 -1
  15. package/lib/cjs/ai/reasoning/Reasoning.js +1 -1
  16. package/lib/cjs/ai/reasoning/Reasoning.js.map +1 -1
  17. package/lib/cjs/ai/reasoning/stories/reasoning-full.story.js +1 -1
  18. package/lib/cjs/ai/reasoning/stories/reasoning-full.story.js.map +1 -1
  19. package/lib/cjs/ai/response/Response.js +1 -1
  20. package/lib/cjs/ai/response/Response.js.map +1 -1
  21. package/lib/cjs/ai/response/stories/response-full-example.story.js +3 -3
  22. package/lib/cjs/ai/response/stories/response-full-example.story.js.map +1 -1
  23. package/lib/cjs/ai/suggestion/stories/suggestion-sizes.story.js +1 -1
  24. package/lib/cjs/ai/suggestion/stories/suggestion-sizes.story.js.map +1 -1
  25. package/lib/cjs/ai/user-bubble/stories/user-bubble-and-files.story.js +1 -1
  26. package/lib/cjs/ai/user-bubble/stories/user-bubble-and-files.story.js.map +1 -1
  27. package/lib/cjs/announcement-banner/stories/announcement-banner-custom-icons.story.js +1 -1
  28. package/lib/cjs/announcement-banner/stories/announcement-banner-custom-icons.story.js.map +1 -1
  29. package/lib/cjs/announcement-banner/stories/announcement-banner-injected-non-urgent.story.js +1 -1
  30. package/lib/cjs/announcement-banner/stories/announcement-banner-injected-non-urgent.story.js.map +1 -1
  31. package/lib/cjs/announcement-banner/stories/announcement-banner-injected-urgent.story.js +1 -1
  32. package/lib/cjs/announcement-banner/stories/announcement-banner-injected-urgent.story.js.map +1 -1
  33. package/lib/cjs/announcement-banner/stories/announcement-banner-present-at-page-render.story.js +1 -1
  34. package/lib/cjs/announcement-banner/stories/announcement-banner-present-at-page-render.story.js.map +1 -1
  35. package/lib/cjs/announcement-banner/stories/announcement-banner-variants.story.js +1 -1
  36. package/lib/cjs/announcement-banner/stories/announcement-banner-variants.story.js.map +1 -1
  37. package/lib/cjs/announcement-banner/stories/announcement-banner-with-page-content.story.js +1 -1
  38. package/lib/cjs/announcement-banner/stories/announcement-banner-with-page-content.story.js.map +1 -1
  39. package/lib/cjs/avatar/stories/avatar-custom-icon.story.js +1 -1
  40. package/lib/cjs/avatar/stories/avatar-custom-icon.story.js.map +1 -1
  41. package/lib/cjs/avatar/stories/avatar-shapes.story.js +1 -1
  42. package/lib/cjs/avatar/stories/avatar-shapes.story.js.map +1 -1
  43. package/lib/cjs/avatar/stories/avatar-sizes.story.js +1 -1
  44. package/lib/cjs/avatar/stories/avatar-sizes.story.js.map +1 -1
  45. package/lib/cjs/avatar/stories/avatar-statuses.story.js +1 -1
  46. package/lib/cjs/avatar/stories/avatar-statuses.story.js.map +1 -1
  47. package/lib/cjs/avatar/stories/avatar-types.story.js +1 -1
  48. package/lib/cjs/avatar/stories/avatar-types.story.js.map +1 -1
  49. package/lib/cjs/banner/stories/banner-variants.story.js +1 -1
  50. package/lib/cjs/banner/stories/banner-variants.story.js.map +1 -1
  51. package/lib/cjs/banner/stories/banner-with-icons.story.js +1 -1
  52. package/lib/cjs/banner/stories/banner-with-icons.story.js.map +1 -1
  53. package/lib/cjs/breadcrumbs/stories/breadcrumbs-header.story.js +1 -1
  54. package/lib/cjs/breadcrumbs/stories/breadcrumbs-header.story.js.map +1 -1
  55. package/lib/cjs/button/ButtonBase.js +1 -3
  56. package/lib/cjs/button/ButtonBase.js.map +1 -1
  57. package/lib/cjs/button/stories/button-sizes.story.js +1 -1
  58. package/lib/cjs/button/stories/button-sizes.story.js.map +1 -1
  59. package/lib/cjs/button/stories/button-variants.story.js +1 -1
  60. package/lib/cjs/button/stories/button-variants.story.js.map +1 -1
  61. package/lib/cjs/checkbox/stories/checkbox-full.story.js +2 -2
  62. package/lib/cjs/checkbox/stories/checkbox-full.story.js.map +1 -1
  63. package/lib/cjs/clean-icon-button/stories/clean-icon-button-keyboard-display.story.js +1 -1
  64. package/lib/cjs/clean-icon-button/stories/clean-icon-button-keyboard-display.story.js.map +1 -1
  65. package/lib/cjs/clean-icon-button/stories/clean-icon-button-sizes.story.js +1 -1
  66. package/lib/cjs/clean-icon-button/stories/clean-icon-button-sizes.story.js.map +1 -1
  67. package/lib/cjs/clean-icon-button/stories/clean-icon-button-tone.story.js +1 -1
  68. package/lib/cjs/clean-icon-button/stories/clean-icon-button-tone.story.js.map +1 -1
  69. package/lib/cjs/clipboard-button/stories/clipboard-button-sizes.story.js +1 -1
  70. package/lib/cjs/clipboard-button/stories/clipboard-button-sizes.story.js.map +1 -1
  71. package/lib/cjs/code-block/CodeBlock.js +3 -7
  72. package/lib/cjs/code-block/CodeBlock.js.map +1 -1
  73. package/lib/cjs/code-block/stories/code-disabled.story.js +2 -2
  74. package/lib/cjs/code-block/stories/code-disabled.story.js.map +1 -1
  75. package/lib/cjs/code-block/stories/code-full.story.js +2 -2
  76. package/lib/cjs/code-block/stories/code-full.story.js.map +1 -1
  77. package/lib/cjs/code-block/stories/code-languages.story.js +1 -1
  78. package/lib/cjs/code-block/stories/code-languages.story.js.map +1 -1
  79. package/lib/cjs/code-block/stories/code-with-actions.story.js +2 -2
  80. package/lib/cjs/code-block/stories/code-with-actions.story.js.map +1 -1
  81. package/lib/cjs/color-picker/ColorPicker.js +0 -3
  82. package/lib/cjs/color-picker/ColorPicker.js.map +1 -1
  83. package/lib/cjs/color-picker/stories/color-picker-dialog.story.js +1 -1
  84. package/lib/cjs/color-picker/stories/color-picker-dialog.story.js.map +1 -1
  85. package/lib/cjs/color-picker/stories/color-picker-popover.story.js +1 -1
  86. package/lib/cjs/color-picker/stories/color-picker-popover.story.js.map +1 -1
  87. package/lib/cjs/combobox/stories/combobox-action-on-select.story.js +1 -1
  88. package/lib/cjs/combobox/stories/combobox-action-on-select.story.js.map +1 -1
  89. package/lib/cjs/combobox/stories/combobox-actions.story.js +1 -1
  90. package/lib/cjs/combobox/stories/combobox-actions.story.js.map +1 -1
  91. package/lib/cjs/combobox/stories/combobox-async.story.js +2 -2
  92. package/lib/cjs/combobox/stories/combobox-async.story.js.map +1 -1
  93. package/lib/cjs/combobox/stories/combobox-disabled.story.js +1 -1
  94. package/lib/cjs/combobox/stories/combobox-disabled.story.js.map +1 -1
  95. package/lib/cjs/combobox/stories/combobox-fluid.story.js +1 -1
  96. package/lib/cjs/combobox/stories/combobox-fluid.story.js.map +1 -1
  97. package/lib/cjs/combobox/stories/combobox-hidden-label.story.js +1 -1
  98. package/lib/cjs/combobox/stories/combobox-hidden-label.story.js.map +1 -1
  99. package/lib/cjs/combobox/stories/combobox-in-popover-dialog.story.js +1 -1
  100. package/lib/cjs/combobox/stories/combobox-in-popover-dialog.story.js.map +1 -1
  101. package/lib/cjs/combobox/stories/combobox-in-popover.story.js +1 -1
  102. package/lib/cjs/combobox/stories/combobox-in-popover.story.js.map +1 -1
  103. package/lib/cjs/combobox/stories/combobox-native-form.story.js +1 -1
  104. package/lib/cjs/combobox/stories/combobox-native-form.story.js.map +1 -1
  105. package/lib/cjs/combobox/stories/combobox-sizes.story.js +1 -1
  106. package/lib/cjs/combobox/stories/combobox-sizes.story.js.map +1 -1
  107. package/lib/cjs/combobox/stories/combobox-validation.story.js +1 -1
  108. package/lib/cjs/combobox/stories/combobox-validation.story.js.map +1 -1
  109. package/lib/cjs/conditional-wrap/stories/conditional-wrap-default.story.js +1 -1
  110. package/lib/cjs/conditional-wrap/stories/conditional-wrap-default.story.js.map +1 -1
  111. package/lib/cjs/data-grid/stories/datagrid-compact-mode.story.js +1 -1
  112. package/lib/cjs/data-grid/stories/datagrid-compact-mode.story.js.map +1 -1
  113. package/lib/cjs/data-grid/stories/datagrid-component-overriding.story.js +2 -2
  114. package/lib/cjs/data-grid/stories/datagrid-component-overriding.story.js.map +1 -1
  115. package/lib/cjs/data-grid/stories/datagrid-custom-cell-with-style-rules.story.js +1 -1
  116. package/lib/cjs/data-grid/stories/datagrid-custom-cell-with-style-rules.story.js.map +1 -1
  117. package/lib/cjs/data-grid/stories/datagrid-in-dialog.story.js +2 -2
  118. package/lib/cjs/data-grid/stories/datagrid-in-dialog.story.js.map +1 -1
  119. package/lib/cjs/data-grid/stories/datagrid-keyboard-navigation.story.js +1 -1
  120. package/lib/cjs/data-grid/stories/datagrid-keyboard-navigation.story.js.map +1 -1
  121. package/lib/cjs/data-grid/stories/datagrid-kitchen-sink.story.js +1 -1
  122. package/lib/cjs/data-grid/stories/datagrid-kitchen-sink.story.js.map +1 -1
  123. package/lib/cjs/data-grid/stories/datagrid-percentage-width-columns.story.js +1 -1
  124. package/lib/cjs/data-grid/stories/datagrid-percentage-width-columns.story.js.map +1 -1
  125. package/lib/cjs/data-grid/stories/datagrid-pinned-columns.stories.js +3 -3
  126. package/lib/cjs/data-grid/stories/datagrid-pinned-columns.stories.js.map +1 -1
  127. package/lib/cjs/data-grid/stories/datagrid-placeholder-states.story.js +1 -1
  128. package/lib/cjs/data-grid/stories/datagrid-placeholder-states.story.js.map +1 -1
  129. package/lib/cjs/data-grid/stories/datagrid-resizable-column.story.js +1 -1
  130. package/lib/cjs/data-grid/stories/datagrid-resizable-column.story.js.map +1 -1
  131. package/lib/cjs/data-grid/stories/datagrid-rule-based-styling-datetime.story.js +1 -1
  132. package/lib/cjs/data-grid/stories/datagrid-rule-based-styling-datetime.story.js.map +1 -1
  133. package/lib/cjs/data-grid/stories/datagrid-rule-based-styling.story.js +1 -1
  134. package/lib/cjs/data-grid/stories/datagrid-rule-based-styling.story.js.map +1 -1
  135. package/lib/cjs/data-grid/stories/datagrid-search-and-filters.stories.js +5 -5
  136. package/lib/cjs/data-grid/stories/datagrid-search-and-filters.stories.js.map +1 -1
  137. package/lib/cjs/data-grid/stories/datagrid-simple.story.js +1 -1
  138. package/lib/cjs/data-grid/stories/datagrid-simple.story.js.map +1 -1
  139. package/lib/cjs/data-grid/stories/datagrid-single-selectable.story.js +1 -1
  140. package/lib/cjs/data-grid/stories/datagrid-single-selectable.story.js.map +1 -1
  141. package/lib/cjs/data-grid/stories/datagrid-skeleton-loading.story.js +1 -1
  142. package/lib/cjs/data-grid/stories/datagrid-skeleton-loading.story.js.map +1 -1
  143. package/lib/cjs/data-grid/stories/datagrid-sortable.story.js +1 -1
  144. package/lib/cjs/data-grid/stories/datagrid-sortable.story.js.map +1 -1
  145. package/lib/cjs/data-grid/stories/datagrid-using-editable-cells.story.js +2 -2
  146. package/lib/cjs/data-grid/stories/datagrid-using-editable-cells.story.js.map +1 -1
  147. package/lib/cjs/data-grid/stories/datagrid-virtualization.story.js +3 -3
  148. package/lib/cjs/data-grid/stories/datagrid-virtualization.story.js.map +1 -1
  149. package/lib/cjs/data-grid/style-rules/guard.js +47 -0
  150. package/lib/cjs/data-grid/style-rules/guard.js.map +1 -0
  151. package/lib/cjs/data-grid/style-rules/index.js +3 -19
  152. package/lib/cjs/data-grid/style-rules/index.js.map +1 -1
  153. package/lib/cjs/data-grid/style-rules/internal/schemas.js +213 -0
  154. package/lib/cjs/data-grid/style-rules/internal/schemas.js.map +1 -0
  155. package/lib/cjs/data-grid/style-rules/types.js +0 -205
  156. package/lib/cjs/data-grid/style-rules/types.js.map +1 -1
  157. package/lib/cjs/date-picker/DatePicker.js +8 -6
  158. package/lib/cjs/date-picker/DatePicker.js.map +1 -1
  159. package/lib/cjs/date-picker/stories/date-picker-in-dialog.story.js +1 -1
  160. package/lib/cjs/date-picker/stories/date-picker-in-dialog.story.js.map +1 -1
  161. package/lib/cjs/date-picker/stories/date-picker-in-popover-dialog.story.js +1 -1
  162. package/lib/cjs/date-picker/stories/date-picker-in-popover-dialog.story.js.map +1 -1
  163. package/lib/cjs/dialog/Dialog.js +1 -2
  164. package/lib/cjs/dialog/Dialog.js.map +1 -1
  165. package/lib/cjs/dialog/stories/dialog-danger.story.js +1 -1
  166. package/lib/cjs/dialog/stories/dialog-danger.story.js.map +1 -1
  167. package/lib/cjs/dialog/stories/dialog-default.story.js +1 -1
  168. package/lib/cjs/dialog/stories/dialog-default.story.js.map +1 -1
  169. package/lib/cjs/dialog/stories/dialog-image.story.js +1 -1
  170. package/lib/cjs/dialog/stories/dialog-image.story.js.map +1 -1
  171. package/lib/cjs/dialog/stories/dialog-info.story.js +1 -1
  172. package/lib/cjs/dialog/stories/dialog-info.story.js.map +1 -1
  173. package/lib/cjs/dialog/stories/dialog-top-aligned.story.js +2 -2
  174. package/lib/cjs/dialog/stories/dialog-top-aligned.story.js.map +1 -1
  175. package/lib/cjs/dialog/stories/dialog-variants.story.js +1 -1
  176. package/lib/cjs/dialog/stories/dialog-variants.story.js.map +1 -1
  177. package/lib/cjs/dialog/stories/dialog-warning.story.js +1 -1
  178. package/lib/cjs/dialog/stories/dialog-warning.story.js.map +1 -1
  179. package/lib/cjs/dismissible-tag/stories/dismissible-tag-colors.story.js +1 -1
  180. package/lib/cjs/dismissible-tag/stories/dismissible-tag-colors.story.js.map +1 -1
  181. package/lib/cjs/dismissible-tag/stories/dismissible-tag-sizes.story.js +1 -1
  182. package/lib/cjs/dismissible-tag/stories/dismissible-tag-sizes.story.js.map +1 -1
  183. package/lib/cjs/drawer/Drawer.js +7 -6
  184. package/lib/cjs/drawer/Drawer.js.map +1 -1
  185. package/lib/cjs/drawer/stories/drawer-full.story.js +2 -2
  186. package/lib/cjs/drawer/stories/drawer-full.story.js.map +1 -1
  187. package/lib/cjs/drawer/stories/drawer-not-closeable.story.js +2 -2
  188. package/lib/cjs/drawer/stories/drawer-not-closeable.story.js.map +1 -1
  189. package/lib/cjs/drawer/stories/drawer-overlay.story.js +1 -1
  190. package/lib/cjs/drawer/stories/drawer-overlay.story.js.map +1 -1
  191. package/lib/cjs/drawer/stories/drawer-portaled.story.js +2 -2
  192. package/lib/cjs/drawer/stories/drawer-portaled.story.js.map +1 -1
  193. package/lib/cjs/drawer/stories/drawer-push.story.js +2 -2
  194. package/lib/cjs/drawer/stories/drawer-push.story.js.map +1 -1
  195. package/lib/cjs/drawer/stories/drawer-resizable.story.js +2 -2
  196. package/lib/cjs/drawer/stories/drawer-resizable.story.js.map +1 -1
  197. package/lib/cjs/drawer/stories/drawer-right-side.story.js +2 -2
  198. package/lib/cjs/drawer/stories/drawer-right-side.story.js.map +1 -1
  199. package/lib/cjs/drawer/stories/drawer-scrollable.story.js +2 -2
  200. package/lib/cjs/drawer/stories/drawer-scrollable.story.js.map +1 -1
  201. package/lib/cjs/dropzone/stories/dropzone-full.story.js +3 -3
  202. package/lib/cjs/dropzone/stories/dropzone-full.story.js.map +1 -1
  203. package/lib/cjs/flex/stories/flex-default.story.js +1 -1
  204. package/lib/cjs/flex/stories/flex-default.story.js.map +1 -1
  205. package/lib/cjs/graph-label/stories/graph-label-color.story.js +1 -1
  206. package/lib/cjs/graph-label/stories/graph-label-color.story.js.map +1 -1
  207. package/lib/cjs/graph-label/stories/graph-label-sizes.story.js +1 -1
  208. package/lib/cjs/graph-label/stories/graph-label-sizes.story.js.map +1 -1
  209. package/lib/cjs/graph-label/stories/graph-label-types.story.js +1 -1
  210. package/lib/cjs/graph-label/stories/graph-label-types.story.js.map +1 -1
  211. package/lib/cjs/hooks/use-debounce-callback/index.js +6 -6
  212. package/lib/cjs/hooks/use-debounce-callback/index.js.map +1 -1
  213. package/lib/cjs/icon-button/stories/icon-button-sizes.story.js +1 -1
  214. package/lib/cjs/icon-button/stories/icon-button-sizes.story.js.map +1 -1
  215. package/lib/cjs/icon-button/stories/icon-button-tone.story.js +1 -1
  216. package/lib/cjs/icon-button/stories/icon-button-tone.story.js.map +1 -1
  217. package/lib/cjs/icon-button-array/stories/icon-button-array-sizes.story.js +1 -1
  218. package/lib/cjs/icon-button-array/stories/icon-button-array-sizes.story.js.map +1 -1
  219. package/lib/cjs/icon-button-base/IconButtonBase.js +1 -3
  220. package/lib/cjs/icon-button-base/IconButtonBase.js.map +1 -1
  221. package/lib/cjs/icons/generated/custom/index.js +3 -17
  222. package/lib/cjs/icons/generated/custom/index.js.map +1 -1
  223. package/lib/cjs/inline-edit/InlineEdit.js +3 -2
  224. package/lib/cjs/inline-edit/InlineEdit.js.map +1 -1
  225. package/lib/cjs/kbd/Kbd.js +0 -1
  226. package/lib/cjs/kbd/Kbd.js.map +1 -1
  227. package/lib/cjs/loading-spinner/stories/loading-spinner-sizes.story.js +1 -1
  228. package/lib/cjs/loading-spinner/stories/loading-spinner-sizes.story.js.map +1 -1
  229. package/lib/cjs/logo/stories/logo-black.story.js +1 -1
  230. package/lib/cjs/logo/stories/logo-black.story.js.map +1 -1
  231. package/lib/cjs/logo/stories/logo-default.story.js +1 -1
  232. package/lib/cjs/logo/stories/logo-default.story.js.map +1 -1
  233. package/lib/cjs/logo/stories/logo-icon.story.js +1 -1
  234. package/lib/cjs/logo/stories/logo-icon.story.js.map +1 -1
  235. package/lib/cjs/menu/Menu.js +2 -2
  236. package/lib/cjs/menu/Menu.js.map +1 -1
  237. package/lib/cjs/menu/menu-types.js.map +1 -1
  238. package/lib/cjs/menu/stories/menu-custom-items.story.js +1 -1
  239. package/lib/cjs/menu/stories/menu-custom-items.story.js.map +1 -1
  240. package/lib/cjs/menu/stories/menu-in-dialog.story.js +2 -2
  241. package/lib/cjs/menu/stories/menu-in-dialog.story.js.map +1 -1
  242. package/lib/cjs/menu/stories/menu-nested.story.js +1 -1
  243. package/lib/cjs/menu/stories/menu-nested.story.js.map +1 -1
  244. package/lib/cjs/menu/stories/menu-radio-and-normal.story.js +1 -1
  245. package/lib/cjs/menu/stories/menu-radio-and-normal.story.js.map +1 -1
  246. package/lib/cjs/menu/stories/menu-radio-items.story.js +1 -1
  247. package/lib/cjs/menu/stories/menu-radio-items.story.js.map +1 -1
  248. package/lib/cjs/menu/stories/menu-with-icon.story.js +1 -1
  249. package/lib/cjs/menu/stories/menu-with-icon.story.js.map +1 -1
  250. package/lib/cjs/next/tree-view/TreeView.js +3 -3
  251. package/lib/cjs/next/tree-view/TreeView.js.map +1 -1
  252. package/lib/cjs/next/tree-view/stories/tree-view-large.story.js +1 -1
  253. package/lib/cjs/next/tree-view/stories/tree-view-large.story.js.map +1 -1
  254. package/lib/cjs/next/tree-view/stories/tree-view-multiple-replace.story.js +1 -1
  255. package/lib/cjs/next/tree-view/stories/tree-view-multiple-replace.story.js.map +1 -1
  256. package/lib/cjs/next/tree-view/stories/tree-view-root-selection.story.js +1 -1
  257. package/lib/cjs/next/tree-view/stories/tree-view-root-selection.story.js.map +1 -1
  258. package/lib/cjs/next/tree-view/stories/tree-view-tooltip.story.js +1 -1
  259. package/lib/cjs/next/tree-view/stories/tree-view-tooltip.story.js.map +1 -1
  260. package/lib/cjs/next/tree-view/stories/tree-view-trailing.story.js +1 -1
  261. package/lib/cjs/next/tree-view/stories/tree-view-trailing.story.js.map +1 -1
  262. package/lib/cjs/next/tree-view/stories/tree-view-uncontrolled.story.js +1 -1
  263. package/lib/cjs/next/tree-view/stories/tree-view-uncontrolled.story.js.map +1 -1
  264. package/lib/cjs/popover/Popover.js +6 -6
  265. package/lib/cjs/popover/Popover.js.map +1 -1
  266. package/lib/cjs/popover/stories/popover-controlled.story.js +1 -1
  267. package/lib/cjs/popover/stories/popover-controlled.story.js.map +1 -1
  268. package/lib/cjs/popover/stories/popover-custom-offset.story.js +1 -1
  269. package/lib/cjs/popover/stories/popover-custom-offset.story.js.map +1 -1
  270. package/lib/cjs/popover/stories/popover-default.story.js +1 -1
  271. package/lib/cjs/popover/stories/popover-default.story.js.map +1 -1
  272. package/lib/cjs/popover/stories/popover-in-dialog.story.js +1 -1
  273. package/lib/cjs/popover/stories/popover-in-dialog.story.js.map +1 -1
  274. package/lib/cjs/popover/stories/popover-no-button-wrapper.story.js +1 -1
  275. package/lib/cjs/popover/stories/popover-no-button-wrapper.story.js.map +1 -1
  276. package/lib/cjs/popover/stories/popover-separate-anchor.story.js +1 -1
  277. package/lib/cjs/popover/stories/popover-separate-anchor.story.js.map +1 -1
  278. package/lib/cjs/popover/use-popover.js +7 -9
  279. package/lib/cjs/popover/use-popover.js.map +1 -1
  280. package/lib/cjs/progress-bar/stories/progress-bar-sizes.story.js +1 -1
  281. package/lib/cjs/progress-bar/stories/progress-bar-sizes.story.js.map +1 -1
  282. package/lib/cjs/radio/stories/radio-disabled.story.js +1 -1
  283. package/lib/cjs/radio/stories/radio-disabled.story.js.map +1 -1
  284. package/lib/cjs/radio/stories/radio-truncated-label.story.js +1 -1
  285. package/lib/cjs/radio/stories/radio-truncated-label.story.js.map +1 -1
  286. package/lib/cjs/read-only-tag/stories/read-only-tag-colors.story.js +1 -1
  287. package/lib/cjs/read-only-tag/stories/read-only-tag-colors.story.js.map +1 -1
  288. package/lib/cjs/read-only-tag/stories/read-only-tag-sizes.story.js +1 -1
  289. package/lib/cjs/read-only-tag/stories/read-only-tag-sizes.story.js.map +1 -1
  290. package/lib/cjs/segmented-control/stories/segmented-control-sizes.story.js +1 -1
  291. package/lib/cjs/segmented-control/stories/segmented-control-sizes.story.js.map +1 -1
  292. package/lib/cjs/select/stories/select-controlled.story.js +1 -1
  293. package/lib/cjs/select/stories/select-controlled.story.js.map +1 -1
  294. package/lib/cjs/select/stories/select-custom-label.story.js +1 -1
  295. package/lib/cjs/select/stories/select-custom-label.story.js.map +1 -1
  296. package/lib/cjs/select/stories/select-inside-dialog.story.js +1 -1
  297. package/lib/cjs/select/stories/select-inside-dialog.story.js.map +1 -1
  298. package/lib/cjs/select/stories/select-menu-positionings.story.js +1 -1
  299. package/lib/cjs/select/stories/select-menu-positionings.story.js.map +1 -1
  300. package/lib/cjs/select/stories/select-required.story.js +1 -1
  301. package/lib/cjs/select/stories/select-required.story.js.map +1 -1
  302. package/lib/cjs/select/stories/select-sizes.story.js +1 -1
  303. package/lib/cjs/select/stories/select-sizes.story.js.map +1 -1
  304. package/lib/cjs/select-icon-button/stories/select-icon-button-sizes.story.js +1 -1
  305. package/lib/cjs/select-icon-button/stories/select-icon-button-sizes.story.js.map +1 -1
  306. package/lib/cjs/select-icon-button/stories/select-icon-button-states.story.js +1 -1
  307. package/lib/cjs/select-icon-button/stories/select-icon-button-states.story.js.map +1 -1
  308. package/lib/cjs/selectable-tag/stories/selectable-tag-disabled.story.js +1 -1
  309. package/lib/cjs/selectable-tag/stories/selectable-tag-disabled.story.js.map +1 -1
  310. package/lib/cjs/selectable-tag/stories/selectable-tag-sizes.story.js +1 -1
  311. package/lib/cjs/selectable-tag/stories/selectable-tag-sizes.story.js.map +1 -1
  312. package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
  313. package/lib/cjs/side-navigation/stories/side-nav-badges.story.js +2 -2
  314. package/lib/cjs/side-navigation/stories/side-nav-badges.story.js.map +1 -1
  315. package/lib/cjs/side-navigation/stories/side-nav-compact.story.js +1 -1
  316. package/lib/cjs/side-navigation/stories/side-nav-compact.story.js.map +1 -1
  317. package/lib/cjs/side-navigation/stories/side-nav-default.story.js +1 -1
  318. package/lib/cjs/side-navigation/stories/side-nav-default.story.js.map +1 -1
  319. package/lib/cjs/side-navigation/stories/side-nav-secondary.story.js +1 -1
  320. package/lib/cjs/side-navigation/stories/side-nav-secondary.story.js.map +1 -1
  321. package/lib/cjs/skeleton/stories/skeleton-circular.story.js +1 -1
  322. package/lib/cjs/skeleton/stories/skeleton-circular.story.js.map +1 -1
  323. package/lib/cjs/skeleton/stories/skeleton-default.story.js +1 -1
  324. package/lib/cjs/skeleton/stories/skeleton-default.story.js.map +1 -1
  325. package/lib/cjs/skeleton/stories/skeleton-full-example.story.js +1 -1
  326. package/lib/cjs/skeleton/stories/skeleton-full-example.story.js.map +1 -1
  327. package/lib/cjs/skeleton/stories/skeleton-inherit-height.story.js +1 -1
  328. package/lib/cjs/skeleton/stories/skeleton-inherit-height.story.js.map +1 -1
  329. package/lib/cjs/skeleton/stories/skeleton-inherit-width.story.js +1 -1
  330. package/lib/cjs/skeleton/stories/skeleton-inherit-width.story.js.map +1 -1
  331. package/lib/cjs/slider/Slider.js +3 -3
  332. package/lib/cjs/slider/Slider.js.map +1 -1
  333. package/lib/cjs/slider/stories/slider-custom-step-length.story.js +1 -1
  334. package/lib/cjs/slider/stories/slider-custom-step-length.story.js.map +1 -1
  335. package/lib/cjs/slider/stories/slider-range.story.js +1 -1
  336. package/lib/cjs/slider/stories/slider-range.story.js.map +1 -1
  337. package/lib/cjs/slider/stories/slider-show-steps.story.js +1 -1
  338. package/lib/cjs/slider/stories/slider-show-steps.story.js.map +1 -1
  339. package/lib/cjs/slider/stories/slider-show-values.story.js +1 -1
  340. package/lib/cjs/slider/stories/slider-show-values.story.js.map +1 -1
  341. package/lib/cjs/slider/stories/slider-single-controlled.story.js +2 -2
  342. package/lib/cjs/slider/stories/slider-single-controlled.story.js.map +1 -1
  343. package/lib/cjs/slider/stories/slider-single.story.js +1 -1
  344. package/lib/cjs/slider/stories/slider-single.story.js.map +1 -1
  345. package/lib/cjs/spotlight/Spotlight.js +3 -3
  346. package/lib/cjs/spotlight/Spotlight.js.map +1 -1
  347. package/lib/cjs/spotlight/SpotlightTarget.js +3 -3
  348. package/lib/cjs/spotlight/SpotlightTarget.js.map +1 -1
  349. package/lib/cjs/spotlight/stories/spotlight-fixed-positioning.story.js +1 -1
  350. package/lib/cjs/spotlight/stories/spotlight-fixed-positioning.story.js.map +1 -1
  351. package/lib/cjs/spotlight/stories/spotlight-in-dialog.story.js +1 -1
  352. package/lib/cjs/spotlight/stories/spotlight-in-dialog.story.js.map +1 -1
  353. package/lib/cjs/spotlight/stories/spotlight-in-side-nav.story.js +1 -1
  354. package/lib/cjs/spotlight/stories/spotlight-in-side-nav.story.js.map +1 -1
  355. package/lib/cjs/spotlight/stories/spotlight-on-tabs.story.js +1 -1
  356. package/lib/cjs/spotlight/stories/spotlight-on-tabs.story.js.map +1 -1
  357. package/lib/cjs/spotlight/stories/spotlight-tour.story.js +1 -1
  358. package/lib/cjs/spotlight/stories/spotlight-tour.story.js.map +1 -1
  359. package/lib/cjs/spotlight/stories/spotlight-with-icon.story.js +1 -1
  360. package/lib/cjs/spotlight/stories/spotlight-with-icon.story.js.map +1 -1
  361. package/lib/cjs/spotlight/stories/spotlight-with-image.story.js +1 -1
  362. package/lib/cjs/spotlight/stories/spotlight-with-image.story.js.map +1 -1
  363. package/lib/cjs/spotlight/stories/spotlight-with-label.story.js +1 -1
  364. package/lib/cjs/spotlight/stories/spotlight-with-label.story.js.map +1 -1
  365. package/lib/cjs/spotlight/stories/spotlight-with-pointer.story.js +1 -1
  366. package/lib/cjs/spotlight/stories/spotlight-with-pointer.story.js.map +1 -1
  367. package/lib/cjs/spotlight/use-spotlight.js +5 -5
  368. package/lib/cjs/spotlight/use-spotlight.js.map +1 -1
  369. package/lib/cjs/status-indicator/stories/status-indicator-variants.story.js +1 -1
  370. package/lib/cjs/status-indicator/stories/status-indicator-variants.story.js.map +1 -1
  371. package/lib/cjs/status-label/stories/status-label-colors.story.js +1 -1
  372. package/lib/cjs/status-label/stories/status-label-colors.story.js.map +1 -1
  373. package/lib/cjs/status-label/stories/status-label-fills.story.js +1 -1
  374. package/lib/cjs/status-label/stories/status-label-fills.story.js.map +1 -1
  375. package/lib/cjs/status-label/stories/status-label-with-icons.story.js +1 -1
  376. package/lib/cjs/status-label/stories/status-label-with-icons.story.js.map +1 -1
  377. package/lib/cjs/switch/stories/switch-disabled.story.js +1 -1
  378. package/lib/cjs/switch/stories/switch-disabled.story.js.map +1 -1
  379. package/lib/cjs/tabs/Tabs.js +2 -2
  380. package/lib/cjs/tabs/Tabs.js.map +1 -1
  381. package/lib/cjs/tabs/stories/tabs-badge.story.js +1 -1
  382. package/lib/cjs/tabs/stories/tabs-badge.story.js.map +1 -1
  383. package/lib/cjs/tabs/stories/tabs-default.story.js +1 -1
  384. package/lib/cjs/tabs/stories/tabs-default.story.js.map +1 -1
  385. package/lib/cjs/tabs/stories/tabs-disabled.story.js +1 -1
  386. package/lib/cjs/tabs/stories/tabs-disabled.story.js.map +1 -1
  387. package/lib/cjs/tabs/stories/tabs-fill-variants.story.js +1 -1
  388. package/lib/cjs/tabs/stories/tabs-fill-variants.story.js.map +1 -1
  389. package/lib/cjs/tabs/stories/tabs-overflow.story.js +1 -1
  390. package/lib/cjs/tabs/stories/tabs-overflow.story.js.map +1 -1
  391. package/lib/cjs/tabs/stories/tabs-sizes.story.js +1 -1
  392. package/lib/cjs/tabs/stories/tabs-sizes.story.js.map +1 -1
  393. package/lib/cjs/tabs/stories/tabs-with-icons.story.js +1 -1
  394. package/lib/cjs/tabs/stories/tabs-with-icons.story.js.map +1 -1
  395. package/lib/cjs/tag/stories/tag-sizes.story.js +1 -1
  396. package/lib/cjs/tag/stories/tag-sizes.story.js.map +1 -1
  397. package/lib/cjs/tag/stories/tag-types.story.js +1 -1
  398. package/lib/cjs/tag/stories/tag-types.story.js.map +1 -1
  399. package/lib/cjs/tag-base/stories/tag-variants.story.js +1 -1
  400. package/lib/cjs/tag-base/stories/tag-variants.story.js.map +1 -1
  401. package/lib/cjs/text-area/stories/text-area-sizes.story.js +1 -1
  402. package/lib/cjs/text-area/stories/text-area-sizes.story.js.map +1 -1
  403. package/lib/cjs/text-input/TextInput.js.map +1 -1
  404. package/lib/cjs/text-input/stories/text-input-loading-spinner.story.js +1 -1
  405. package/lib/cjs/text-input/stories/text-input-loading-spinner.story.js.map +1 -1
  406. package/lib/cjs/text-input/stories/text-input-optional.story.js +1 -1
  407. package/lib/cjs/text-input/stories/text-input-optional.story.js.map +1 -1
  408. package/lib/cjs/text-input/stories/text-input-sizes.story.js +1 -1
  409. package/lib/cjs/text-input/stories/text-input-sizes.story.js.map +1 -1
  410. package/lib/cjs/text-link/TextLink.js +2 -6
  411. package/lib/cjs/text-link/TextLink.js.map +1 -1
  412. package/lib/cjs/text-link/stories/index.js +5 -17
  413. package/lib/cjs/text-link/stories/index.js.map +1 -1
  414. package/lib/cjs/text-link/stories/text-link-external.story.js +1 -1
  415. package/lib/cjs/text-link/stories/text-link-external.story.js.map +1 -1
  416. package/lib/cjs/text-link/stories/{text-link-internal-underline.story.js → text-link-internal.story.js} +2 -2
  417. package/lib/cjs/text-link/stories/text-link-internal.story.js.map +1 -0
  418. package/lib/cjs/time-picker/stories/time-picker-in-popover-dialog.story.js +1 -1
  419. package/lib/cjs/time-picker/stories/time-picker-in-popover-dialog.story.js.map +1 -1
  420. package/lib/cjs/timezone-picker/stories/timezone-picker-in-dialog.story.js +1 -1
  421. package/lib/cjs/timezone-picker/stories/timezone-picker-in-dialog.story.js.map +1 -1
  422. package/lib/cjs/timezone-picker/stories/timezone-picker-in-popover-dialog.story.js +1 -1
  423. package/lib/cjs/timezone-picker/stories/timezone-picker-in-popover-dialog.story.js.map +1 -1
  424. package/lib/cjs/toast/stories/toast-action-story.js +1 -1
  425. package/lib/cjs/toast/stories/toast-action-story.js.map +1 -1
  426. package/lib/cjs/toast/stories/toast-closeable-story.js +1 -1
  427. package/lib/cjs/toast/stories/toast-closeable-story.js.map +1 -1
  428. package/lib/cjs/toast/stories/toast-controlled-story.js +1 -1
  429. package/lib/cjs/toast/stories/toast-controlled-story.js.map +1 -1
  430. package/lib/cjs/toast/stories/toast-custom-story.js +1 -1
  431. package/lib/cjs/toast/stories/toast-custom-story.js.map +1 -1
  432. package/lib/cjs/toast/stories/toast-danger-story.js +1 -1
  433. package/lib/cjs/toast/stories/toast-danger-story.js.map +1 -1
  434. package/lib/cjs/toast/stories/toast-neutral-story.js +1 -1
  435. package/lib/cjs/toast/stories/toast-neutral-story.js.map +1 -1
  436. package/lib/cjs/toast/stories/toast-progress-bar.js +1 -1
  437. package/lib/cjs/toast/stories/toast-progress-bar.js.map +1 -1
  438. package/lib/cjs/toast/stories/toast-success-story.js +1 -1
  439. package/lib/cjs/toast/stories/toast-success-story.js.map +1 -1
  440. package/lib/cjs/tooltip/Tooltip.js.map +1 -1
  441. package/lib/cjs/tooltip/stories/tooltip-in-dialog.story.js +1 -1
  442. package/lib/cjs/tooltip/stories/tooltip-in-dialog.story.js.map +1 -1
  443. package/lib/cjs/tooltip/stories/tooltip-placements.story.js +1 -1
  444. package/lib/cjs/tooltip/stories/tooltip-placements.story.js.map +1 -1
  445. package/lib/cjs/tooltip/use-tooltip.js.map +1 -1
  446. package/lib/cjs/tree-view/TreeView.js +3 -0
  447. package/lib/cjs/tree-view/TreeView.js.map +1 -1
  448. package/lib/cjs/tree-view/TreeViewItem.js.map +1 -1
  449. package/lib/cjs/tree-view/stories/treeview-custom.story.js +2 -2
  450. package/lib/cjs/tree-view/stories/treeview-custom.story.js.map +1 -1
  451. package/lib/cjs/tree-view/tree-view-utils.js.map +1 -1
  452. package/lib/cjs/typography/Typography.js +7 -1
  453. package/lib/cjs/typography/Typography.js.map +1 -1
  454. package/lib/esm/_generated/style-rules/index.js +1 -1
  455. package/lib/esm/_generated/style-rules/index.js.map +1 -1
  456. package/lib/esm/_generated/style-rules/literal-guards.js +45 -0
  457. package/lib/esm/_generated/style-rules/literal-guards.js.map +1 -0
  458. package/lib/esm/_generated/style-rules/literal-schemas.js +6 -18
  459. package/lib/esm/_generated/style-rules/literal-schemas.js.map +1 -1
  460. package/lib/esm/{text-overflow/index.js → _generated/style-rules/literal-types.js} +8 -2
  461. package/lib/esm/_generated/style-rules/literal-types.js.map +1 -0
  462. package/lib/esm/_generated/style-rules/numeric-utils.js.map +1 -1
  463. package/lib/esm/_generated/style-rules/range-utils.js.map +1 -1
  464. package/lib/esm/ai/presence/stories/ai-presence-default.story.js +1 -1
  465. package/lib/esm/ai/presence/stories/ai-presence-default.story.js.map +1 -1
  466. package/lib/esm/ai/presence/stories/ai-presence-thinking.story.js +1 -1
  467. package/lib/esm/ai/presence/stories/ai-presence-thinking.story.js.map +1 -1
  468. package/lib/esm/ai/reasoning/Reasoning.js +1 -1
  469. package/lib/esm/ai/reasoning/Reasoning.js.map +1 -1
  470. package/lib/esm/ai/reasoning/stories/reasoning-full.story.js +1 -1
  471. package/lib/esm/ai/reasoning/stories/reasoning-full.story.js.map +1 -1
  472. package/lib/esm/ai/response/Response.js +1 -1
  473. package/lib/esm/ai/response/Response.js.map +1 -1
  474. package/lib/esm/ai/response/stories/response-full-example.story.js +3 -3
  475. package/lib/esm/ai/response/stories/response-full-example.story.js.map +1 -1
  476. package/lib/esm/ai/suggestion/stories/suggestion-sizes.story.js +1 -1
  477. package/lib/esm/ai/suggestion/stories/suggestion-sizes.story.js.map +1 -1
  478. package/lib/esm/ai/user-bubble/stories/user-bubble-and-files.story.js +1 -1
  479. package/lib/esm/ai/user-bubble/stories/user-bubble-and-files.story.js.map +1 -1
  480. package/lib/esm/announcement-banner/stories/announcement-banner-custom-icons.story.js +1 -1
  481. package/lib/esm/announcement-banner/stories/announcement-banner-custom-icons.story.js.map +1 -1
  482. package/lib/esm/announcement-banner/stories/announcement-banner-injected-non-urgent.story.js +1 -1
  483. package/lib/esm/announcement-banner/stories/announcement-banner-injected-non-urgent.story.js.map +1 -1
  484. package/lib/esm/announcement-banner/stories/announcement-banner-injected-urgent.story.js +1 -1
  485. package/lib/esm/announcement-banner/stories/announcement-banner-injected-urgent.story.js.map +1 -1
  486. package/lib/esm/announcement-banner/stories/announcement-banner-present-at-page-render.story.js +1 -1
  487. package/lib/esm/announcement-banner/stories/announcement-banner-present-at-page-render.story.js.map +1 -1
  488. package/lib/esm/announcement-banner/stories/announcement-banner-variants.story.js +1 -1
  489. package/lib/esm/announcement-banner/stories/announcement-banner-variants.story.js.map +1 -1
  490. package/lib/esm/announcement-banner/stories/announcement-banner-with-page-content.story.js +1 -1
  491. package/lib/esm/announcement-banner/stories/announcement-banner-with-page-content.story.js.map +1 -1
  492. package/lib/esm/avatar/stories/avatar-custom-icon.story.js +1 -1
  493. package/lib/esm/avatar/stories/avatar-custom-icon.story.js.map +1 -1
  494. package/lib/esm/avatar/stories/avatar-shapes.story.js +1 -1
  495. package/lib/esm/avatar/stories/avatar-shapes.story.js.map +1 -1
  496. package/lib/esm/avatar/stories/avatar-sizes.story.js +1 -1
  497. package/lib/esm/avatar/stories/avatar-sizes.story.js.map +1 -1
  498. package/lib/esm/avatar/stories/avatar-statuses.story.js +1 -1
  499. package/lib/esm/avatar/stories/avatar-statuses.story.js.map +1 -1
  500. package/lib/esm/avatar/stories/avatar-types.story.js +1 -1
  501. package/lib/esm/avatar/stories/avatar-types.story.js.map +1 -1
  502. package/lib/esm/banner/stories/banner-variants.story.js +1 -1
  503. package/lib/esm/banner/stories/banner-variants.story.js.map +1 -1
  504. package/lib/esm/banner/stories/banner-with-icons.story.js +1 -1
  505. package/lib/esm/banner/stories/banner-with-icons.story.js.map +1 -1
  506. package/lib/esm/breadcrumbs/stories/breadcrumbs-header.story.js +1 -1
  507. package/lib/esm/breadcrumbs/stories/breadcrumbs-header.story.js.map +1 -1
  508. package/lib/esm/button/ButtonBase.js +1 -3
  509. package/lib/esm/button/ButtonBase.js.map +1 -1
  510. package/lib/esm/button/stories/button-sizes.story.js +1 -1
  511. package/lib/esm/button/stories/button-sizes.story.js.map +1 -1
  512. package/lib/esm/button/stories/button-variants.story.js +1 -1
  513. package/lib/esm/button/stories/button-variants.story.js.map +1 -1
  514. package/lib/esm/checkbox/stories/checkbox-full.story.js +2 -2
  515. package/lib/esm/checkbox/stories/checkbox-full.story.js.map +1 -1
  516. package/lib/esm/clean-icon-button/stories/clean-icon-button-keyboard-display.story.js +1 -1
  517. package/lib/esm/clean-icon-button/stories/clean-icon-button-keyboard-display.story.js.map +1 -1
  518. package/lib/esm/clean-icon-button/stories/clean-icon-button-sizes.story.js +1 -1
  519. package/lib/esm/clean-icon-button/stories/clean-icon-button-sizes.story.js.map +1 -1
  520. package/lib/esm/clean-icon-button/stories/clean-icon-button-tone.story.js +1 -1
  521. package/lib/esm/clean-icon-button/stories/clean-icon-button-tone.story.js.map +1 -1
  522. package/lib/esm/clipboard-button/stories/clipboard-button-sizes.story.js +1 -1
  523. package/lib/esm/clipboard-button/stories/clipboard-button-sizes.story.js.map +1 -1
  524. package/lib/esm/code-block/CodeBlock.js +3 -7
  525. package/lib/esm/code-block/CodeBlock.js.map +1 -1
  526. package/lib/esm/code-block/stories/code-disabled.story.js +2 -2
  527. package/lib/esm/code-block/stories/code-disabled.story.js.map +1 -1
  528. package/lib/esm/code-block/stories/code-full.story.js +2 -2
  529. package/lib/esm/code-block/stories/code-full.story.js.map +1 -1
  530. package/lib/esm/code-block/stories/code-languages.story.js +1 -1
  531. package/lib/esm/code-block/stories/code-languages.story.js.map +1 -1
  532. package/lib/esm/code-block/stories/code-with-actions.story.js +2 -2
  533. package/lib/esm/code-block/stories/code-with-actions.story.js.map +1 -1
  534. package/lib/esm/color-picker/ColorPicker.js +0 -3
  535. package/lib/esm/color-picker/ColorPicker.js.map +1 -1
  536. package/lib/esm/color-picker/stories/color-picker-dialog.story.js +1 -1
  537. package/lib/esm/color-picker/stories/color-picker-dialog.story.js.map +1 -1
  538. package/lib/esm/color-picker/stories/color-picker-popover.story.js +1 -1
  539. package/lib/esm/color-picker/stories/color-picker-popover.story.js.map +1 -1
  540. package/lib/esm/combobox/stories/combobox-action-on-select.story.js +1 -1
  541. package/lib/esm/combobox/stories/combobox-action-on-select.story.js.map +1 -1
  542. package/lib/esm/combobox/stories/combobox-actions.story.js +1 -1
  543. package/lib/esm/combobox/stories/combobox-actions.story.js.map +1 -1
  544. package/lib/esm/combobox/stories/combobox-async.story.js +2 -2
  545. package/lib/esm/combobox/stories/combobox-async.story.js.map +1 -1
  546. package/lib/esm/combobox/stories/combobox-disabled.story.js +1 -1
  547. package/lib/esm/combobox/stories/combobox-disabled.story.js.map +1 -1
  548. package/lib/esm/combobox/stories/combobox-fluid.story.js +1 -1
  549. package/lib/esm/combobox/stories/combobox-fluid.story.js.map +1 -1
  550. package/lib/esm/combobox/stories/combobox-hidden-label.story.js +1 -1
  551. package/lib/esm/combobox/stories/combobox-hidden-label.story.js.map +1 -1
  552. package/lib/esm/combobox/stories/combobox-in-popover-dialog.story.js +1 -1
  553. package/lib/esm/combobox/stories/combobox-in-popover-dialog.story.js.map +1 -1
  554. package/lib/esm/combobox/stories/combobox-in-popover.story.js +1 -1
  555. package/lib/esm/combobox/stories/combobox-in-popover.story.js.map +1 -1
  556. package/lib/esm/combobox/stories/combobox-native-form.story.js +1 -1
  557. package/lib/esm/combobox/stories/combobox-native-form.story.js.map +1 -1
  558. package/lib/esm/combobox/stories/combobox-sizes.story.js +1 -1
  559. package/lib/esm/combobox/stories/combobox-sizes.story.js.map +1 -1
  560. package/lib/esm/combobox/stories/combobox-validation.story.js +1 -1
  561. package/lib/esm/combobox/stories/combobox-validation.story.js.map +1 -1
  562. package/lib/esm/conditional-wrap/stories/conditional-wrap-default.story.js +1 -1
  563. package/lib/esm/conditional-wrap/stories/conditional-wrap-default.story.js.map +1 -1
  564. package/lib/esm/data-grid/stories/datagrid-compact-mode.story.js +1 -1
  565. package/lib/esm/data-grid/stories/datagrid-compact-mode.story.js.map +1 -1
  566. package/lib/esm/data-grid/stories/datagrid-component-overriding.story.js +2 -2
  567. package/lib/esm/data-grid/stories/datagrid-component-overriding.story.js.map +1 -1
  568. package/lib/esm/data-grid/stories/datagrid-custom-cell-with-style-rules.story.js +1 -1
  569. package/lib/esm/data-grid/stories/datagrid-custom-cell-with-style-rules.story.js.map +1 -1
  570. package/lib/esm/data-grid/stories/datagrid-in-dialog.story.js +2 -2
  571. package/lib/esm/data-grid/stories/datagrid-in-dialog.story.js.map +1 -1
  572. package/lib/esm/data-grid/stories/datagrid-keyboard-navigation.story.js +1 -1
  573. package/lib/esm/data-grid/stories/datagrid-keyboard-navigation.story.js.map +1 -1
  574. package/lib/esm/data-grid/stories/datagrid-kitchen-sink.story.js +1 -1
  575. package/lib/esm/data-grid/stories/datagrid-kitchen-sink.story.js.map +1 -1
  576. package/lib/esm/data-grid/stories/datagrid-percentage-width-columns.story.js +1 -1
  577. package/lib/esm/data-grid/stories/datagrid-percentage-width-columns.story.js.map +1 -1
  578. package/lib/esm/data-grid/stories/datagrid-pinned-columns.stories.js +3 -3
  579. package/lib/esm/data-grid/stories/datagrid-pinned-columns.stories.js.map +1 -1
  580. package/lib/esm/data-grid/stories/datagrid-placeholder-states.story.js +1 -1
  581. package/lib/esm/data-grid/stories/datagrid-placeholder-states.story.js.map +1 -1
  582. package/lib/esm/data-grid/stories/datagrid-resizable-column.story.js +1 -1
  583. package/lib/esm/data-grid/stories/datagrid-resizable-column.story.js.map +1 -1
  584. package/lib/esm/data-grid/stories/datagrid-rule-based-styling-datetime.story.js +1 -1
  585. package/lib/esm/data-grid/stories/datagrid-rule-based-styling-datetime.story.js.map +1 -1
  586. package/lib/esm/data-grid/stories/datagrid-rule-based-styling.story.js +1 -1
  587. package/lib/esm/data-grid/stories/datagrid-rule-based-styling.story.js.map +1 -1
  588. package/lib/esm/data-grid/stories/datagrid-search-and-filters.stories.js +5 -5
  589. package/lib/esm/data-grid/stories/datagrid-search-and-filters.stories.js.map +1 -1
  590. package/lib/esm/data-grid/stories/datagrid-simple.story.js +1 -1
  591. package/lib/esm/data-grid/stories/datagrid-simple.story.js.map +1 -1
  592. package/lib/esm/data-grid/stories/datagrid-single-selectable.story.js +1 -1
  593. package/lib/esm/data-grid/stories/datagrid-single-selectable.story.js.map +1 -1
  594. package/lib/esm/data-grid/stories/datagrid-skeleton-loading.story.js +1 -1
  595. package/lib/esm/data-grid/stories/datagrid-skeleton-loading.story.js.map +1 -1
  596. package/lib/esm/data-grid/stories/datagrid-sortable.story.js +1 -1
  597. package/lib/esm/data-grid/stories/datagrid-sortable.story.js.map +1 -1
  598. package/lib/esm/data-grid/stories/datagrid-using-editable-cells.story.js +2 -2
  599. package/lib/esm/data-grid/stories/datagrid-using-editable-cells.story.js.map +1 -1
  600. package/lib/esm/data-grid/stories/datagrid-virtualization.story.js +3 -3
  601. package/lib/esm/data-grid/stories/datagrid-virtualization.story.js.map +1 -1
  602. package/lib/esm/data-grid/style-rules/guard.js +43 -0
  603. package/lib/esm/data-grid/style-rules/guard.js.map +1 -0
  604. package/lib/esm/data-grid/style-rules/index.js +1 -3
  605. package/lib/esm/data-grid/style-rules/index.js.map +1 -1
  606. package/lib/esm/data-grid/style-rules/internal/schemas.js +210 -0
  607. package/lib/esm/data-grid/style-rules/internal/schemas.js.map +1 -0
  608. package/lib/esm/data-grid/style-rules/types.js +1 -203
  609. package/lib/esm/data-grid/style-rules/types.js.map +1 -1
  610. package/lib/esm/date-picker/DatePicker.js +8 -6
  611. package/lib/esm/date-picker/DatePicker.js.map +1 -1
  612. package/lib/esm/date-picker/stories/date-picker-in-dialog.story.js +1 -1
  613. package/lib/esm/date-picker/stories/date-picker-in-dialog.story.js.map +1 -1
  614. package/lib/esm/date-picker/stories/date-picker-in-popover-dialog.story.js +1 -1
  615. package/lib/esm/date-picker/stories/date-picker-in-popover-dialog.story.js.map +1 -1
  616. package/lib/esm/dialog/Dialog.js +1 -2
  617. package/lib/esm/dialog/Dialog.js.map +1 -1
  618. package/lib/esm/dialog/stories/dialog-danger.story.js +1 -1
  619. package/lib/esm/dialog/stories/dialog-danger.story.js.map +1 -1
  620. package/lib/esm/dialog/stories/dialog-default.story.js +1 -1
  621. package/lib/esm/dialog/stories/dialog-default.story.js.map +1 -1
  622. package/lib/esm/dialog/stories/dialog-image.story.js +1 -1
  623. package/lib/esm/dialog/stories/dialog-image.story.js.map +1 -1
  624. package/lib/esm/dialog/stories/dialog-info.story.js +1 -1
  625. package/lib/esm/dialog/stories/dialog-info.story.js.map +1 -1
  626. package/lib/esm/dialog/stories/dialog-top-aligned.story.js +2 -2
  627. package/lib/esm/dialog/stories/dialog-top-aligned.story.js.map +1 -1
  628. package/lib/esm/dialog/stories/dialog-variants.story.js +1 -1
  629. package/lib/esm/dialog/stories/dialog-variants.story.js.map +1 -1
  630. package/lib/esm/dialog/stories/dialog-warning.story.js +1 -1
  631. package/lib/esm/dialog/stories/dialog-warning.story.js.map +1 -1
  632. package/lib/esm/dismissible-tag/stories/dismissible-tag-colors.story.js +1 -1
  633. package/lib/esm/dismissible-tag/stories/dismissible-tag-colors.story.js.map +1 -1
  634. package/lib/esm/dismissible-tag/stories/dismissible-tag-sizes.story.js +1 -1
  635. package/lib/esm/dismissible-tag/stories/dismissible-tag-sizes.story.js.map +1 -1
  636. package/lib/esm/drawer/Drawer.js +7 -6
  637. package/lib/esm/drawer/Drawer.js.map +1 -1
  638. package/lib/esm/drawer/stories/drawer-full.story.js +2 -2
  639. package/lib/esm/drawer/stories/drawer-full.story.js.map +1 -1
  640. package/lib/esm/drawer/stories/drawer-not-closeable.story.js +2 -2
  641. package/lib/esm/drawer/stories/drawer-not-closeable.story.js.map +1 -1
  642. package/lib/esm/drawer/stories/drawer-overlay.story.js +1 -1
  643. package/lib/esm/drawer/stories/drawer-overlay.story.js.map +1 -1
  644. package/lib/esm/drawer/stories/drawer-portaled.story.js +2 -2
  645. package/lib/esm/drawer/stories/drawer-portaled.story.js.map +1 -1
  646. package/lib/esm/drawer/stories/drawer-push.story.js +2 -2
  647. package/lib/esm/drawer/stories/drawer-push.story.js.map +1 -1
  648. package/lib/esm/drawer/stories/drawer-resizable.story.js +2 -2
  649. package/lib/esm/drawer/stories/drawer-resizable.story.js.map +1 -1
  650. package/lib/esm/drawer/stories/drawer-right-side.story.js +2 -2
  651. package/lib/esm/drawer/stories/drawer-right-side.story.js.map +1 -1
  652. package/lib/esm/drawer/stories/drawer-scrollable.story.js +2 -2
  653. package/lib/esm/drawer/stories/drawer-scrollable.story.js.map +1 -1
  654. package/lib/esm/dropzone/stories/dropzone-full.story.js +3 -3
  655. package/lib/esm/dropzone/stories/dropzone-full.story.js.map +1 -1
  656. package/lib/esm/flex/stories/flex-default.story.js +1 -1
  657. package/lib/esm/flex/stories/flex-default.story.js.map +1 -1
  658. package/lib/esm/graph-label/stories/graph-label-color.story.js +1 -1
  659. package/lib/esm/graph-label/stories/graph-label-color.story.js.map +1 -1
  660. package/lib/esm/graph-label/stories/graph-label-sizes.story.js +1 -1
  661. package/lib/esm/graph-label/stories/graph-label-sizes.story.js.map +1 -1
  662. package/lib/esm/graph-label/stories/graph-label-types.story.js +1 -1
  663. package/lib/esm/graph-label/stories/graph-label-types.story.js.map +1 -1
  664. package/lib/esm/hooks/use-debounce-callback/index.js +6 -6
  665. package/lib/esm/hooks/use-debounce-callback/index.js.map +1 -1
  666. package/lib/esm/icon-button/stories/icon-button-sizes.story.js +1 -1
  667. package/lib/esm/icon-button/stories/icon-button-sizes.story.js.map +1 -1
  668. package/lib/esm/icon-button/stories/icon-button-tone.story.js +1 -1
  669. package/lib/esm/icon-button/stories/icon-button-tone.story.js.map +1 -1
  670. package/lib/esm/icon-button-array/stories/icon-button-array-sizes.story.js +1 -1
  671. package/lib/esm/icon-button-array/stories/icon-button-array-sizes.story.js.map +1 -1
  672. package/lib/esm/icon-button-base/IconButtonBase.js +1 -3
  673. package/lib/esm/icon-button-base/IconButtonBase.js.map +1 -1
  674. package/lib/esm/icons/generated/custom/index.js +0 -7
  675. package/lib/esm/icons/generated/custom/index.js.map +1 -1
  676. package/lib/esm/inline-edit/InlineEdit.js +3 -2
  677. package/lib/esm/inline-edit/InlineEdit.js.map +1 -1
  678. package/lib/esm/kbd/Kbd.js +0 -1
  679. package/lib/esm/kbd/Kbd.js.map +1 -1
  680. package/lib/esm/loading-spinner/stories/loading-spinner-sizes.story.js +1 -1
  681. package/lib/esm/loading-spinner/stories/loading-spinner-sizes.story.js.map +1 -1
  682. package/lib/esm/logo/stories/logo-black.story.js +1 -1
  683. package/lib/esm/logo/stories/logo-black.story.js.map +1 -1
  684. package/lib/esm/logo/stories/logo-default.story.js +1 -1
  685. package/lib/esm/logo/stories/logo-default.story.js.map +1 -1
  686. package/lib/esm/logo/stories/logo-icon.story.js +1 -1
  687. package/lib/esm/logo/stories/logo-icon.story.js.map +1 -1
  688. package/lib/esm/menu/Menu.js +2 -2
  689. package/lib/esm/menu/Menu.js.map +1 -1
  690. package/lib/esm/menu/menu-types.js.map +1 -1
  691. package/lib/esm/menu/stories/menu-custom-items.story.js +1 -1
  692. package/lib/esm/menu/stories/menu-custom-items.story.js.map +1 -1
  693. package/lib/esm/menu/stories/menu-in-dialog.story.js +2 -2
  694. package/lib/esm/menu/stories/menu-in-dialog.story.js.map +1 -1
  695. package/lib/esm/menu/stories/menu-nested.story.js +1 -1
  696. package/lib/esm/menu/stories/menu-nested.story.js.map +1 -1
  697. package/lib/esm/menu/stories/menu-radio-and-normal.story.js +1 -1
  698. package/lib/esm/menu/stories/menu-radio-and-normal.story.js.map +1 -1
  699. package/lib/esm/menu/stories/menu-radio-items.story.js +1 -1
  700. package/lib/esm/menu/stories/menu-radio-items.story.js.map +1 -1
  701. package/lib/esm/menu/stories/menu-with-icon.story.js +1 -1
  702. package/lib/esm/menu/stories/menu-with-icon.story.js.map +1 -1
  703. package/lib/esm/next/tree-view/TreeView.js +3 -3
  704. package/lib/esm/next/tree-view/TreeView.js.map +1 -1
  705. package/lib/esm/next/tree-view/stories/tree-view-large.story.js +1 -1
  706. package/lib/esm/next/tree-view/stories/tree-view-large.story.js.map +1 -1
  707. package/lib/esm/next/tree-view/stories/tree-view-multiple-replace.story.js +1 -1
  708. package/lib/esm/next/tree-view/stories/tree-view-multiple-replace.story.js.map +1 -1
  709. package/lib/esm/next/tree-view/stories/tree-view-root-selection.story.js +1 -1
  710. package/lib/esm/next/tree-view/stories/tree-view-root-selection.story.js.map +1 -1
  711. package/lib/esm/next/tree-view/stories/tree-view-tooltip.story.js +1 -1
  712. package/lib/esm/next/tree-view/stories/tree-view-tooltip.story.js.map +1 -1
  713. package/lib/esm/next/tree-view/stories/tree-view-trailing.story.js +1 -1
  714. package/lib/esm/next/tree-view/stories/tree-view-trailing.story.js.map +1 -1
  715. package/lib/esm/next/tree-view/stories/tree-view-uncontrolled.story.js +1 -1
  716. package/lib/esm/next/tree-view/stories/tree-view-uncontrolled.story.js.map +1 -1
  717. package/lib/esm/popover/Popover.js +6 -6
  718. package/lib/esm/popover/Popover.js.map +1 -1
  719. package/lib/esm/popover/stories/popover-controlled.story.js +1 -1
  720. package/lib/esm/popover/stories/popover-controlled.story.js.map +1 -1
  721. package/lib/esm/popover/stories/popover-custom-offset.story.js +1 -1
  722. package/lib/esm/popover/stories/popover-custom-offset.story.js.map +1 -1
  723. package/lib/esm/popover/stories/popover-default.story.js +1 -1
  724. package/lib/esm/popover/stories/popover-default.story.js.map +1 -1
  725. package/lib/esm/popover/stories/popover-in-dialog.story.js +1 -1
  726. package/lib/esm/popover/stories/popover-in-dialog.story.js.map +1 -1
  727. package/lib/esm/popover/stories/popover-no-button-wrapper.story.js +1 -1
  728. package/lib/esm/popover/stories/popover-no-button-wrapper.story.js.map +1 -1
  729. package/lib/esm/popover/stories/popover-separate-anchor.story.js +1 -1
  730. package/lib/esm/popover/stories/popover-separate-anchor.story.js.map +1 -1
  731. package/lib/esm/popover/use-popover.js +7 -9
  732. package/lib/esm/popover/use-popover.js.map +1 -1
  733. package/lib/esm/progress-bar/stories/progress-bar-sizes.story.js +1 -1
  734. package/lib/esm/progress-bar/stories/progress-bar-sizes.story.js.map +1 -1
  735. package/lib/esm/radio/stories/radio-disabled.story.js +1 -1
  736. package/lib/esm/radio/stories/radio-disabled.story.js.map +1 -1
  737. package/lib/esm/radio/stories/radio-truncated-label.story.js +1 -1
  738. package/lib/esm/radio/stories/radio-truncated-label.story.js.map +1 -1
  739. package/lib/esm/read-only-tag/stories/read-only-tag-colors.story.js +1 -1
  740. package/lib/esm/read-only-tag/stories/read-only-tag-colors.story.js.map +1 -1
  741. package/lib/esm/read-only-tag/stories/read-only-tag-sizes.story.js +1 -1
  742. package/lib/esm/read-only-tag/stories/read-only-tag-sizes.story.js.map +1 -1
  743. package/lib/esm/segmented-control/stories/segmented-control-sizes.story.js +1 -1
  744. package/lib/esm/segmented-control/stories/segmented-control-sizes.story.js.map +1 -1
  745. package/lib/esm/select/stories/select-controlled.story.js +1 -1
  746. package/lib/esm/select/stories/select-controlled.story.js.map +1 -1
  747. package/lib/esm/select/stories/select-custom-label.story.js +1 -1
  748. package/lib/esm/select/stories/select-custom-label.story.js.map +1 -1
  749. package/lib/esm/select/stories/select-inside-dialog.story.js +1 -1
  750. package/lib/esm/select/stories/select-inside-dialog.story.js.map +1 -1
  751. package/lib/esm/select/stories/select-menu-positionings.story.js +1 -1
  752. package/lib/esm/select/stories/select-menu-positionings.story.js.map +1 -1
  753. package/lib/esm/select/stories/select-required.story.js +1 -1
  754. package/lib/esm/select/stories/select-required.story.js.map +1 -1
  755. package/lib/esm/select/stories/select-sizes.story.js +1 -1
  756. package/lib/esm/select/stories/select-sizes.story.js.map +1 -1
  757. package/lib/esm/select-icon-button/stories/select-icon-button-sizes.story.js +1 -1
  758. package/lib/esm/select-icon-button/stories/select-icon-button-sizes.story.js.map +1 -1
  759. package/lib/esm/select-icon-button/stories/select-icon-button-states.story.js +1 -1
  760. package/lib/esm/select-icon-button/stories/select-icon-button-states.story.js.map +1 -1
  761. package/lib/esm/selectable-tag/stories/selectable-tag-disabled.story.js +1 -1
  762. package/lib/esm/selectable-tag/stories/selectable-tag-disabled.story.js.map +1 -1
  763. package/lib/esm/selectable-tag/stories/selectable-tag-sizes.story.js +1 -1
  764. package/lib/esm/selectable-tag/stories/selectable-tag-sizes.story.js.map +1 -1
  765. package/lib/esm/side-navigation/SideNavigation.js.map +1 -1
  766. package/lib/esm/side-navigation/stories/side-nav-badges.story.js +2 -2
  767. package/lib/esm/side-navigation/stories/side-nav-badges.story.js.map +1 -1
  768. package/lib/esm/side-navigation/stories/side-nav-compact.story.js +1 -1
  769. package/lib/esm/side-navigation/stories/side-nav-compact.story.js.map +1 -1
  770. package/lib/esm/side-navigation/stories/side-nav-default.story.js +1 -1
  771. package/lib/esm/side-navigation/stories/side-nav-default.story.js.map +1 -1
  772. package/lib/esm/side-navigation/stories/side-nav-secondary.story.js +1 -1
  773. package/lib/esm/side-navigation/stories/side-nav-secondary.story.js.map +1 -1
  774. package/lib/esm/skeleton/stories/skeleton-circular.story.js +1 -1
  775. package/lib/esm/skeleton/stories/skeleton-circular.story.js.map +1 -1
  776. package/lib/esm/skeleton/stories/skeleton-default.story.js +1 -1
  777. package/lib/esm/skeleton/stories/skeleton-default.story.js.map +1 -1
  778. package/lib/esm/skeleton/stories/skeleton-full-example.story.js +1 -1
  779. package/lib/esm/skeleton/stories/skeleton-full-example.story.js.map +1 -1
  780. package/lib/esm/skeleton/stories/skeleton-inherit-height.story.js +1 -1
  781. package/lib/esm/skeleton/stories/skeleton-inherit-height.story.js.map +1 -1
  782. package/lib/esm/skeleton/stories/skeleton-inherit-width.story.js +1 -1
  783. package/lib/esm/skeleton/stories/skeleton-inherit-width.story.js.map +1 -1
  784. package/lib/esm/slider/Slider.js +3 -3
  785. package/lib/esm/slider/Slider.js.map +1 -1
  786. package/lib/esm/slider/stories/slider-custom-step-length.story.js +1 -1
  787. package/lib/esm/slider/stories/slider-custom-step-length.story.js.map +1 -1
  788. package/lib/esm/slider/stories/slider-range.story.js +1 -1
  789. package/lib/esm/slider/stories/slider-range.story.js.map +1 -1
  790. package/lib/esm/slider/stories/slider-show-steps.story.js +1 -1
  791. package/lib/esm/slider/stories/slider-show-steps.story.js.map +1 -1
  792. package/lib/esm/slider/stories/slider-show-values.story.js +1 -1
  793. package/lib/esm/slider/stories/slider-show-values.story.js.map +1 -1
  794. package/lib/esm/slider/stories/slider-single-controlled.story.js +2 -2
  795. package/lib/esm/slider/stories/slider-single-controlled.story.js.map +1 -1
  796. package/lib/esm/slider/stories/slider-single.story.js +1 -1
  797. package/lib/esm/slider/stories/slider-single.story.js.map +1 -1
  798. package/lib/esm/spotlight/Spotlight.js +3 -3
  799. package/lib/esm/spotlight/Spotlight.js.map +1 -1
  800. package/lib/esm/spotlight/SpotlightTarget.js +3 -3
  801. package/lib/esm/spotlight/SpotlightTarget.js.map +1 -1
  802. package/lib/esm/spotlight/stories/spotlight-fixed-positioning.story.js +1 -1
  803. package/lib/esm/spotlight/stories/spotlight-fixed-positioning.story.js.map +1 -1
  804. package/lib/esm/spotlight/stories/spotlight-in-dialog.story.js +1 -1
  805. package/lib/esm/spotlight/stories/spotlight-in-dialog.story.js.map +1 -1
  806. package/lib/esm/spotlight/stories/spotlight-in-side-nav.story.js +1 -1
  807. package/lib/esm/spotlight/stories/spotlight-in-side-nav.story.js.map +1 -1
  808. package/lib/esm/spotlight/stories/spotlight-on-tabs.story.js +1 -1
  809. package/lib/esm/spotlight/stories/spotlight-on-tabs.story.js.map +1 -1
  810. package/lib/esm/spotlight/stories/spotlight-tour.story.js +1 -1
  811. package/lib/esm/spotlight/stories/spotlight-tour.story.js.map +1 -1
  812. package/lib/esm/spotlight/stories/spotlight-with-icon.story.js +1 -1
  813. package/lib/esm/spotlight/stories/spotlight-with-icon.story.js.map +1 -1
  814. package/lib/esm/spotlight/stories/spotlight-with-image.story.js +1 -1
  815. package/lib/esm/spotlight/stories/spotlight-with-image.story.js.map +1 -1
  816. package/lib/esm/spotlight/stories/spotlight-with-label.story.js +1 -1
  817. package/lib/esm/spotlight/stories/spotlight-with-label.story.js.map +1 -1
  818. package/lib/esm/spotlight/stories/spotlight-with-pointer.story.js +1 -1
  819. package/lib/esm/spotlight/stories/spotlight-with-pointer.story.js.map +1 -1
  820. package/lib/esm/spotlight/use-spotlight.js +5 -5
  821. package/lib/esm/spotlight/use-spotlight.js.map +1 -1
  822. package/lib/esm/status-indicator/stories/status-indicator-variants.story.js +1 -1
  823. package/lib/esm/status-indicator/stories/status-indicator-variants.story.js.map +1 -1
  824. package/lib/esm/status-label/stories/status-label-colors.story.js +1 -1
  825. package/lib/esm/status-label/stories/status-label-colors.story.js.map +1 -1
  826. package/lib/esm/status-label/stories/status-label-fills.story.js +1 -1
  827. package/lib/esm/status-label/stories/status-label-fills.story.js.map +1 -1
  828. package/lib/esm/status-label/stories/status-label-with-icons.story.js +1 -1
  829. package/lib/esm/status-label/stories/status-label-with-icons.story.js.map +1 -1
  830. package/lib/esm/switch/stories/switch-disabled.story.js +1 -1
  831. package/lib/esm/switch/stories/switch-disabled.story.js.map +1 -1
  832. package/lib/esm/tabs/Tabs.js +2 -2
  833. package/lib/esm/tabs/Tabs.js.map +1 -1
  834. package/lib/esm/tabs/stories/tabs-badge.story.js +1 -1
  835. package/lib/esm/tabs/stories/tabs-badge.story.js.map +1 -1
  836. package/lib/esm/tabs/stories/tabs-default.story.js +1 -1
  837. package/lib/esm/tabs/stories/tabs-default.story.js.map +1 -1
  838. package/lib/esm/tabs/stories/tabs-disabled.story.js +1 -1
  839. package/lib/esm/tabs/stories/tabs-disabled.story.js.map +1 -1
  840. package/lib/esm/tabs/stories/tabs-fill-variants.story.js +1 -1
  841. package/lib/esm/tabs/stories/tabs-fill-variants.story.js.map +1 -1
  842. package/lib/esm/tabs/stories/tabs-overflow.story.js +1 -1
  843. package/lib/esm/tabs/stories/tabs-overflow.story.js.map +1 -1
  844. package/lib/esm/tabs/stories/tabs-sizes.story.js +1 -1
  845. package/lib/esm/tabs/stories/tabs-sizes.story.js.map +1 -1
  846. package/lib/esm/tabs/stories/tabs-with-icons.story.js +1 -1
  847. package/lib/esm/tabs/stories/tabs-with-icons.story.js.map +1 -1
  848. package/lib/esm/tag/stories/tag-sizes.story.js +1 -1
  849. package/lib/esm/tag/stories/tag-sizes.story.js.map +1 -1
  850. package/lib/esm/tag/stories/tag-types.story.js +1 -1
  851. package/lib/esm/tag/stories/tag-types.story.js.map +1 -1
  852. package/lib/esm/tag-base/stories/tag-variants.story.js +1 -1
  853. package/lib/esm/tag-base/stories/tag-variants.story.js.map +1 -1
  854. package/lib/esm/text-area/stories/text-area-sizes.story.js +1 -1
  855. package/lib/esm/text-area/stories/text-area-sizes.story.js.map +1 -1
  856. package/lib/esm/text-input/TextInput.js.map +1 -1
  857. package/lib/esm/text-input/stories/text-input-loading-spinner.story.js +1 -1
  858. package/lib/esm/text-input/stories/text-input-loading-spinner.story.js.map +1 -1
  859. package/lib/esm/text-input/stories/text-input-optional.story.js +1 -1
  860. package/lib/esm/text-input/stories/text-input-optional.story.js.map +1 -1
  861. package/lib/esm/text-input/stories/text-input-sizes.story.js +1 -1
  862. package/lib/esm/text-input/stories/text-input-sizes.story.js.map +1 -1
  863. package/lib/esm/text-link/TextLink.js +2 -6
  864. package/lib/esm/text-link/TextLink.js.map +1 -1
  865. package/lib/esm/text-link/stories/index.js +3 -12
  866. package/lib/esm/text-link/stories/index.js.map +1 -1
  867. package/lib/esm/text-link/stories/text-link-external.story.js +3 -3
  868. package/lib/esm/text-link/stories/text-link-external.story.js.map +1 -1
  869. package/lib/esm/text-link/stories/{text-link-internal-underline.story.js → text-link-internal.story.js} +2 -2
  870. package/lib/esm/text-link/stories/text-link-internal.story.js.map +1 -0
  871. package/lib/esm/time-picker/stories/time-picker-in-popover-dialog.story.js +1 -1
  872. package/lib/esm/time-picker/stories/time-picker-in-popover-dialog.story.js.map +1 -1
  873. package/lib/esm/timezone-picker/stories/timezone-picker-in-dialog.story.js +1 -1
  874. package/lib/esm/timezone-picker/stories/timezone-picker-in-dialog.story.js.map +1 -1
  875. package/lib/esm/timezone-picker/stories/timezone-picker-in-popover-dialog.story.js +1 -1
  876. package/lib/esm/timezone-picker/stories/timezone-picker-in-popover-dialog.story.js.map +1 -1
  877. package/lib/esm/toast/stories/toast-action-story.js +1 -1
  878. package/lib/esm/toast/stories/toast-action-story.js.map +1 -1
  879. package/lib/esm/toast/stories/toast-closeable-story.js +1 -1
  880. package/lib/esm/toast/stories/toast-closeable-story.js.map +1 -1
  881. package/lib/esm/toast/stories/toast-controlled-story.js +1 -1
  882. package/lib/esm/toast/stories/toast-controlled-story.js.map +1 -1
  883. package/lib/esm/toast/stories/toast-custom-story.js +1 -1
  884. package/lib/esm/toast/stories/toast-custom-story.js.map +1 -1
  885. package/lib/esm/toast/stories/toast-danger-story.js +1 -1
  886. package/lib/esm/toast/stories/toast-danger-story.js.map +1 -1
  887. package/lib/esm/toast/stories/toast-neutral-story.js +1 -1
  888. package/lib/esm/toast/stories/toast-neutral-story.js.map +1 -1
  889. package/lib/esm/toast/stories/toast-progress-bar.js +1 -1
  890. package/lib/esm/toast/stories/toast-progress-bar.js.map +1 -1
  891. package/lib/esm/toast/stories/toast-success-story.js +1 -1
  892. package/lib/esm/toast/stories/toast-success-story.js.map +1 -1
  893. package/lib/esm/tooltip/Tooltip.js.map +1 -1
  894. package/lib/esm/tooltip/stories/tooltip-in-dialog.story.js +1 -1
  895. package/lib/esm/tooltip/stories/tooltip-in-dialog.story.js.map +1 -1
  896. package/lib/esm/tooltip/stories/tooltip-placements.story.js +1 -1
  897. package/lib/esm/tooltip/stories/tooltip-placements.story.js.map +1 -1
  898. package/lib/esm/tooltip/use-tooltip.js.map +1 -1
  899. package/lib/esm/tree-view/TreeView.js +3 -0
  900. package/lib/esm/tree-view/TreeView.js.map +1 -1
  901. package/lib/esm/tree-view/TreeViewItem.js.map +1 -1
  902. package/lib/esm/tree-view/stories/treeview-custom.story.js +2 -2
  903. package/lib/esm/tree-view/stories/treeview-custom.story.js.map +1 -1
  904. package/lib/esm/tree-view/tree-view-utils.js.map +1 -1
  905. package/lib/esm/typography/Typography.js +7 -1
  906. package/lib/esm/typography/Typography.js.map +1 -1
  907. package/lib/types/_generated/style-rules/index.d.ts +2 -2
  908. package/lib/types/_generated/style-rules/index.d.ts.map +1 -1
  909. package/lib/{cjs/text-link/stories/text-link-default.story.js → types/_generated/style-rules/literal-guards.d.ts} +8 -10
  910. package/lib/types/_generated/style-rules/literal-guards.d.ts.map +1 -0
  911. package/lib/types/_generated/style-rules/literal-schemas.d.ts +0 -12
  912. package/lib/types/_generated/style-rules/literal-schemas.d.ts.map +1 -1
  913. package/lib/types/_generated/style-rules/literal-types.d.ts +80 -0
  914. package/lib/types/_generated/style-rules/literal-types.d.ts.map +1 -0
  915. package/lib/types/_generated/style-rules/numeric-utils.d.ts +1 -1
  916. package/lib/types/_generated/style-rules/numeric-utils.d.ts.map +1 -1
  917. package/lib/types/_generated/style-rules/range-utils.d.ts +1 -1
  918. package/lib/types/_generated/style-rules/range-utils.d.ts.map +1 -1
  919. package/lib/types/ai/reasoning/Reasoning.d.ts +1 -10
  920. package/lib/types/ai/reasoning/Reasoning.d.ts.map +1 -1
  921. package/lib/types/ai/reasoning/stories/reasoning-full.story.d.ts.map +1 -1
  922. package/lib/types/button/ButtonBase.d.ts.map +1 -1
  923. package/lib/types/code-block/CodeBlock.d.ts +2 -2
  924. package/lib/types/code-block/CodeBlock.d.ts.map +1 -1
  925. package/lib/types/color-picker/ColorPicker.d.ts.map +1 -1
  926. package/lib/types/data-grid/style-rules/guard.d.ts +43 -0
  927. package/lib/types/data-grid/style-rules/guard.d.ts.map +1 -0
  928. package/lib/types/data-grid/style-rules/index.d.ts +1 -2
  929. package/lib/types/data-grid/style-rules/index.d.ts.map +1 -1
  930. package/lib/types/data-grid/style-rules/internal/schemas.d.ts +321 -0
  931. package/lib/types/data-grid/style-rules/internal/schemas.d.ts.map +1 -0
  932. package/lib/types/data-grid/style-rules/types.d.ts +60 -284
  933. package/lib/types/data-grid/style-rules/types.d.ts.map +1 -1
  934. package/lib/types/date-picker/DatePicker.d.ts.map +1 -1
  935. package/lib/types/dialog/Dialog.d.ts.map +1 -1
  936. package/lib/types/drawer/Drawer.d.ts +7 -13
  937. package/lib/types/drawer/Drawer.d.ts.map +1 -1
  938. package/lib/types/drawer/stories/drawer-overlay.story.d.ts.map +1 -1
  939. package/lib/types/dropzone/stories/dropzone-full.story.d.ts.map +1 -1
  940. package/lib/types/hooks/use-debounce-callback/index.d.ts +2 -2
  941. package/lib/types/hooks/use-debounce-callback/index.d.ts.map +1 -1
  942. package/lib/types/icon-button-base/IconButtonBase.d.ts.map +1 -1
  943. package/lib/types/icons/generated/custom/index.d.ts +0 -7
  944. package/lib/types/icons/generated/custom/index.d.ts.map +1 -1
  945. package/lib/types/inline-edit/InlineEdit.d.ts +6 -1
  946. package/lib/types/inline-edit/InlineEdit.d.ts.map +1 -1
  947. package/lib/types/kbd/Kbd.d.ts +1 -1
  948. package/lib/types/kbd/Kbd.d.ts.map +1 -1
  949. package/lib/types/menu/Menu.d.ts +1 -1
  950. package/lib/types/menu/Menu.d.ts.map +1 -1
  951. package/lib/types/menu/menu-types.d.ts +2 -2
  952. package/lib/types/menu/menu-types.d.ts.map +1 -1
  953. package/lib/types/next/tree-view/TreeView.d.ts +2 -2
  954. package/lib/types/next/tree-view/TreeView.d.ts.map +1 -1
  955. package/lib/types/popover/Popover.d.ts +15 -12
  956. package/lib/types/popover/Popover.d.ts.map +1 -1
  957. package/lib/types/popover/stories/popover-controlled.story.d.ts.map +1 -1
  958. package/lib/types/popover/stories/popover-default.story.d.ts.map +1 -1
  959. package/lib/types/popover/stories/popover-no-button-wrapper.story.d.ts.map +1 -1
  960. package/lib/types/popover/use-popover.d.ts +14 -9
  961. package/lib/types/popover/use-popover.d.ts.map +1 -1
  962. package/lib/types/side-navigation/SideNavigation.d.ts.map +1 -1
  963. package/lib/types/slider/Slider.d.ts +3 -3
  964. package/lib/types/slider/Slider.d.ts.map +1 -1
  965. package/lib/types/spotlight/Spotlight.d.ts +2 -2
  966. package/lib/types/spotlight/Spotlight.d.ts.map +1 -1
  967. package/lib/types/spotlight/SpotlightTarget.d.ts +3 -3
  968. package/lib/types/spotlight/SpotlightTarget.d.ts.map +1 -1
  969. package/lib/types/spotlight/stories/spotlight-tour.story.d.ts.map +1 -1
  970. package/lib/types/spotlight/stories/spotlight-with-image.story.d.ts.map +1 -1
  971. package/lib/types/spotlight/use-spotlight.d.ts +4 -4
  972. package/lib/types/spotlight/use-spotlight.d.ts.map +1 -1
  973. package/lib/types/tabs/Tabs.d.ts +3 -1
  974. package/lib/types/tabs/Tabs.d.ts.map +1 -1
  975. package/lib/types/text-link/TextLink.d.ts +2 -13
  976. package/lib/types/text-link/TextLink.d.ts.map +1 -1
  977. package/lib/types/text-link/stories/index.d.ts +2 -8
  978. package/lib/types/text-link/stories/index.d.ts.map +1 -1
  979. package/lib/types/text-link/stories/text-link-external.story.d.ts.map +1 -1
  980. package/lib/types/{text-overflow/stories/character-limit.story.d.ts → text-link/stories/text-link-internal.story.d.ts} +1 -1
  981. package/lib/types/text-link/stories/text-link-internal.story.d.ts.map +1 -0
  982. package/lib/types/tooltip/Tooltip.d.ts +0 -1
  983. package/lib/types/tooltip/Tooltip.d.ts.map +1 -1
  984. package/lib/types/tooltip/use-tooltip.d.ts.map +1 -1
  985. package/lib/types/tree-view/TreeView.d.ts +3 -0
  986. package/lib/types/tree-view/TreeView.d.ts.map +1 -1
  987. package/lib/types/tree-view/TreeViewItem.d.ts.map +1 -1
  988. package/lib/types/tree-view/tree-view-utils.d.ts.map +1 -1
  989. package/lib/types/typography/Typography.d.ts +6 -0
  990. package/lib/types/typography/Typography.d.ts.map +1 -1
  991. package/package.json +6 -4
  992. package/skills/ndl-react/SKILL.md +22 -20
  993. package/skills/ndl-react/components/ai/presence.md +3 -3
  994. package/skills/ndl-react/components/ai/reasoning.md +2 -6
  995. package/skills/ndl-react/components/ai/response.md +17 -17
  996. package/skills/ndl-react/components/ai/suggestion.md +1 -1
  997. package/skills/ndl-react/components/ai/user-bubble.md +2 -2
  998. package/skills/ndl-react/components/announcement-banner.md +10 -10
  999. package/skills/ndl-react/components/avatar.md +5 -5
  1000. package/skills/ndl-react/components/banner.md +2 -2
  1001. package/skills/ndl-react/components/breadcrumbs.md +3 -3
  1002. package/skills/ndl-react/components/checkbox.md +5 -5
  1003. package/skills/ndl-react/components/clean-icon-button.md +9 -103
  1004. package/skills/ndl-react/components/clipboard-button.md +1 -1
  1005. package/skills/ndl-react/components/code-block.md +8 -9
  1006. package/skills/ndl-react/components/color-picker.md +3 -3
  1007. package/skills/ndl-react/components/combobox.md +20 -20
  1008. package/skills/ndl-react/components/conditional-wrap.md +1 -1
  1009. package/skills/ndl-react/components/data-grid.md +28 -28
  1010. package/skills/ndl-react/components/date-picker.md +3 -3
  1011. package/skills/ndl-react/components/dialog.md +9 -9
  1012. package/skills/ndl-react/components/dismissible-tag.md +2 -2
  1013. package/skills/ndl-react/components/drawer.md +39 -37
  1014. package/skills/ndl-react/components/dropzone.md +10 -13
  1015. package/skills/ndl-react/components/flex.md +1 -1
  1016. package/skills/ndl-react/components/graph-label.md +3 -3
  1017. package/skills/ndl-react/components/icon-button-array.md +1 -1
  1018. package/skills/ndl-react/components/icon-button.md +7 -7
  1019. package/skills/ndl-react/components/inline-edit.md +4 -1
  1020. package/skills/ndl-react/components/loading-spinner.md +1 -1
  1021. package/skills/ndl-react/components/logo.md +3 -3
  1022. package/skills/ndl-react/components/menu.md +14 -14
  1023. package/skills/ndl-react/components/next/tree-view.md +18 -18
  1024. package/skills/ndl-react/components/popover.md +15 -21
  1025. package/skills/ndl-react/components/progress-bar.md +1 -1
  1026. package/skills/ndl-react/components/radio.md +2 -2
  1027. package/skills/ndl-react/components/read-only-tag.md +2 -2
  1028. package/skills/ndl-react/components/segmented-control.md +1 -1
  1029. package/skills/ndl-react/components/select-icon-button.md +8 -8
  1030. package/skills/ndl-react/components/select.md +8 -8
  1031. package/skills/ndl-react/components/selectable-tag.md +2 -2
  1032. package/skills/ndl-react/components/side-navigation.md +19 -19
  1033. package/skills/ndl-react/components/skeleton.md +13 -13
  1034. package/skills/ndl-react/components/slider.md +13 -13
  1035. package/skills/ndl-react/components/spotlight.md +43 -27
  1036. package/skills/ndl-react/components/status-indicator.md +6 -6
  1037. package/skills/ndl-react/components/status-label.md +3 -3
  1038. package/skills/ndl-react/components/switch.md +1 -1
  1039. package/skills/ndl-react/components/tabs.md +21 -20
  1040. package/skills/ndl-react/components/tag.md +2 -2
  1041. package/skills/ndl-react/components/text-area.md +1 -1
  1042. package/skills/ndl-react/components/text-input.md +3 -3
  1043. package/skills/ndl-react/components/text-link.md +12 -63
  1044. package/skills/ndl-react/components/time-picker.md +2 -2
  1045. package/skills/ndl-react/components/timezone-picker.md +4 -4
  1046. package/skills/ndl-react/components/tooltip.md +3 -3
  1047. package/skills/ndl-react/components/tree-view.md +6 -4
  1048. package/skills/ndl-react/components/typography.md +4 -0
  1049. package/skills/ndl-react/references/styling.md +56 -48
  1050. package/lib/cjs/icons/generated/custom/AddNode.js +0 -31
  1051. package/lib/cjs/icons/generated/custom/AddNode.js.map +0 -1
  1052. package/lib/cjs/icons/generated/custom/PanelBottom.js +0 -31
  1053. package/lib/cjs/icons/generated/custom/PanelBottom.js.map +0 -1
  1054. package/lib/cjs/icons/generated/custom/PanelLeft.js +0 -31
  1055. package/lib/cjs/icons/generated/custom/PanelLeft.js.map +0 -1
  1056. package/lib/cjs/icons/generated/custom/PanelLeftCollapsed.js +0 -31
  1057. package/lib/cjs/icons/generated/custom/PanelLeftCollapsed.js.map +0 -1
  1058. package/lib/cjs/icons/generated/custom/PanelLeftExpanded.js +0 -31
  1059. package/lib/cjs/icons/generated/custom/PanelLeftExpanded.js.map +0 -1
  1060. package/lib/cjs/icons/generated/custom/PanelRight.js +0 -31
  1061. package/lib/cjs/icons/generated/custom/PanelRight.js.map +0 -1
  1062. package/lib/cjs/icons/generated/custom/ThreePanel.js +0 -31
  1063. package/lib/cjs/icons/generated/custom/ThreePanel.js.map +0 -1
  1064. package/lib/cjs/text-link/stories/text-link-default.story.js.map +0 -1
  1065. package/lib/cjs/text-link/stories/text-link-external-underline.story.js +0 -30
  1066. package/lib/cjs/text-link/stories/text-link-external-underline.story.js.map +0 -1
  1067. package/lib/cjs/text-link/stories/text-link-internal-icon.story.js +0 -30
  1068. package/lib/cjs/text-link/stories/text-link-internal-icon.story.js.map +0 -1
  1069. package/lib/cjs/text-link/stories/text-link-internal-underline.story.js.map +0 -1
  1070. package/lib/cjs/text-overflow/TextOverflow.js +0 -146
  1071. package/lib/cjs/text-overflow/TextOverflow.js.map +0 -1
  1072. package/lib/cjs/text-overflow/constants.js +0 -44
  1073. package/lib/cjs/text-overflow/constants.js.map +0 -1
  1074. package/lib/cjs/text-overflow/index.js.map +0 -1
  1075. package/lib/cjs/text-overflow/stories/character-limit.story.js +0 -32
  1076. package/lib/cjs/text-overflow/stories/character-limit.story.js.map +0 -1
  1077. package/lib/cjs/text-overflow/stories/expand-collapse-buttons.story.js +0 -32
  1078. package/lib/cjs/text-overflow/stories/expand-collapse-buttons.story.js.map +0 -1
  1079. package/lib/cjs/text-overflow/stories/index.js +0 -48
  1080. package/lib/cjs/text-overflow/stories/index.js.map +0 -1
  1081. package/lib/cjs/text-overflow/stories/line-clamp.story.js +0 -32
  1082. package/lib/cjs/text-overflow/stories/line-clamp.story.js.map +0 -1
  1083. package/lib/cjs/text-overflow/stories/mixed-content.story.js +0 -31
  1084. package/lib/cjs/text-overflow/stories/mixed-content.story.js.map +0 -1
  1085. package/lib/cjs/text-overflow/stories/width-based-truncation.story.js +0 -32
  1086. package/lib/cjs/text-overflow/stories/width-based-truncation.story.js.map +0 -1
  1087. package/lib/cjs/text-overflow/text-overflow-utils.js +0 -167
  1088. package/lib/cjs/text-overflow/text-overflow-utils.js.map +0 -1
  1089. package/lib/cjs/text-overflow/use-ellipsis-observer.js +0 -66
  1090. package/lib/cjs/text-overflow/use-ellipsis-observer.js.map +0 -1
  1091. package/lib/cjs/text-overflow/use-truncate-with-button.js +0 -205
  1092. package/lib/cjs/text-overflow/use-truncate-with-button.js.map +0 -1
  1093. package/lib/esm/icons/generated/custom/AddNode.js +0 -29
  1094. package/lib/esm/icons/generated/custom/AddNode.js.map +0 -1
  1095. package/lib/esm/icons/generated/custom/PanelBottom.js +0 -29
  1096. package/lib/esm/icons/generated/custom/PanelBottom.js.map +0 -1
  1097. package/lib/esm/icons/generated/custom/PanelLeft.js +0 -29
  1098. package/lib/esm/icons/generated/custom/PanelLeft.js.map +0 -1
  1099. package/lib/esm/icons/generated/custom/PanelLeftCollapsed.js +0 -29
  1100. package/lib/esm/icons/generated/custom/PanelLeftCollapsed.js.map +0 -1
  1101. package/lib/esm/icons/generated/custom/PanelLeftExpanded.js +0 -29
  1102. package/lib/esm/icons/generated/custom/PanelLeftExpanded.js.map +0 -1
  1103. package/lib/esm/icons/generated/custom/PanelRight.js +0 -29
  1104. package/lib/esm/icons/generated/custom/PanelRight.js.map +0 -1
  1105. package/lib/esm/icons/generated/custom/ThreePanel.js +0 -29
  1106. package/lib/esm/icons/generated/custom/ThreePanel.js.map +0 -1
  1107. package/lib/esm/text-link/stories/text-link-default.story.js +0 -28
  1108. package/lib/esm/text-link/stories/text-link-default.story.js.map +0 -1
  1109. package/lib/esm/text-link/stories/text-link-external-underline.story.js +0 -28
  1110. package/lib/esm/text-link/stories/text-link-external-underline.story.js.map +0 -1
  1111. package/lib/esm/text-link/stories/text-link-internal-icon.story.js +0 -28
  1112. package/lib/esm/text-link/stories/text-link-internal-icon.story.js.map +0 -1
  1113. package/lib/esm/text-link/stories/text-link-internal-underline.story.js.map +0 -1
  1114. package/lib/esm/text-overflow/TextOverflow.js +0 -139
  1115. package/lib/esm/text-overflow/TextOverflow.js.map +0 -1
  1116. package/lib/esm/text-overflow/constants.js +0 -41
  1117. package/lib/esm/text-overflow/constants.js.map +0 -1
  1118. package/lib/esm/text-overflow/index.js.map +0 -1
  1119. package/lib/esm/text-overflow/stories/character-limit.story.js +0 -30
  1120. package/lib/esm/text-overflow/stories/character-limit.story.js.map +0 -1
  1121. package/lib/esm/text-overflow/stories/expand-collapse-buttons.story.js +0 -30
  1122. package/lib/esm/text-overflow/stories/expand-collapse-buttons.story.js.map +0 -1
  1123. package/lib/esm/text-overflow/stories/index.js +0 -37
  1124. package/lib/esm/text-overflow/stories/index.js.map +0 -1
  1125. package/lib/esm/text-overflow/stories/line-clamp.story.js +0 -30
  1126. package/lib/esm/text-overflow/stories/line-clamp.story.js.map +0 -1
  1127. package/lib/esm/text-overflow/stories/mixed-content.story.js +0 -29
  1128. package/lib/esm/text-overflow/stories/mixed-content.story.js.map +0 -1
  1129. package/lib/esm/text-overflow/stories/width-based-truncation.story.js +0 -30
  1130. package/lib/esm/text-overflow/stories/width-based-truncation.story.js.map +0 -1
  1131. package/lib/esm/text-overflow/text-overflow-utils.js +0 -159
  1132. package/lib/esm/text-overflow/text-overflow-utils.js.map +0 -1
  1133. package/lib/esm/text-overflow/use-ellipsis-observer.js +0 -63
  1134. package/lib/esm/text-overflow/use-ellipsis-observer.js.map +0 -1
  1135. package/lib/esm/text-overflow/use-truncate-with-button.js +0 -202
  1136. package/lib/esm/text-overflow/use-truncate-with-button.js.map +0 -1
  1137. package/lib/types/icons/generated/custom/AddNode.d.ts +0 -30
  1138. package/lib/types/icons/generated/custom/AddNode.d.ts.map +0 -1
  1139. package/lib/types/icons/generated/custom/PanelBottom.d.ts +0 -30
  1140. package/lib/types/icons/generated/custom/PanelBottom.d.ts.map +0 -1
  1141. package/lib/types/icons/generated/custom/PanelLeft.d.ts +0 -30
  1142. package/lib/types/icons/generated/custom/PanelLeft.d.ts.map +0 -1
  1143. package/lib/types/icons/generated/custom/PanelLeftCollapsed.d.ts +0 -30
  1144. package/lib/types/icons/generated/custom/PanelLeftCollapsed.d.ts.map +0 -1
  1145. package/lib/types/icons/generated/custom/PanelLeftExpanded.d.ts +0 -30
  1146. package/lib/types/icons/generated/custom/PanelLeftExpanded.d.ts.map +0 -1
  1147. package/lib/types/icons/generated/custom/PanelRight.d.ts +0 -30
  1148. package/lib/types/icons/generated/custom/PanelRight.d.ts.map +0 -1
  1149. package/lib/types/icons/generated/custom/ThreePanel.d.ts +0 -30
  1150. package/lib/types/icons/generated/custom/ThreePanel.d.ts.map +0 -1
  1151. package/lib/types/text-link/stories/text-link-default.story.d.ts +0 -24
  1152. package/lib/types/text-link/stories/text-link-default.story.d.ts.map +0 -1
  1153. package/lib/types/text-link/stories/text-link-external-underline.story.d.ts +0 -24
  1154. package/lib/types/text-link/stories/text-link-external-underline.story.d.ts.map +0 -1
  1155. package/lib/types/text-link/stories/text-link-internal-icon.story.d.ts +0 -24
  1156. package/lib/types/text-link/stories/text-link-internal-icon.story.d.ts.map +0 -1
  1157. package/lib/types/text-link/stories/text-link-internal-underline.story.d.ts +0 -24
  1158. package/lib/types/text-link/stories/text-link-internal-underline.story.d.ts.map +0 -1
  1159. package/lib/types/text-overflow/TextOverflow.d.ts +0 -63
  1160. package/lib/types/text-overflow/TextOverflow.d.ts.map +0 -1
  1161. package/lib/types/text-overflow/constants.d.ts +0 -41
  1162. package/lib/types/text-overflow/constants.d.ts.map +0 -1
  1163. package/lib/types/text-overflow/index.d.ts +0 -22
  1164. package/lib/types/text-overflow/index.d.ts.map +0 -1
  1165. package/lib/types/text-overflow/stories/character-limit.story.d.ts.map +0 -1
  1166. package/lib/types/text-overflow/stories/expand-collapse-buttons.story.d.ts +0 -24
  1167. package/lib/types/text-overflow/stories/expand-collapse-buttons.story.d.ts.map +0 -1
  1168. package/lib/types/text-overflow/stories/index.d.ts +0 -31
  1169. package/lib/types/text-overflow/stories/index.d.ts.map +0 -1
  1170. package/lib/types/text-overflow/stories/line-clamp.story.d.ts +0 -24
  1171. package/lib/types/text-overflow/stories/line-clamp.story.d.ts.map +0 -1
  1172. package/lib/types/text-overflow/stories/mixed-content.story.d.ts +0 -24
  1173. package/lib/types/text-overflow/stories/mixed-content.story.d.ts.map +0 -1
  1174. package/lib/types/text-overflow/stories/width-based-truncation.story.d.ts +0 -24
  1175. package/lib/types/text-overflow/stories/width-based-truncation.story.d.ts.map +0 -1
  1176. package/lib/types/text-overflow/text-overflow-utils.d.ts +0 -35
  1177. package/lib/types/text-overflow/text-overflow-utils.d.ts.map +0 -1
  1178. package/lib/types/text-overflow/use-ellipsis-observer.d.ts +0 -28
  1179. package/lib/types/text-overflow/use-ellipsis-observer.d.ts.map +0 -1
  1180. package/lib/types/text-overflow/use-truncate-with-button.d.ts +0 -45
  1181. package/lib/types/text-overflow/use-truncate-with-button.d.ts.map +0 -1
@@ -23,7 +23,7 @@ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
23
  import { CleanIconButton, Typography } from '@neo4j-ndl/react';
24
24
  import { MagnifyingGlassIconOutline } from '@neo4j-ndl/react/icons';
25
25
  const Component = () => {
26
- return (_jsxs("div", { className: "n-flex n-flex-col n-gap-token-16", children: [_jsxs("div", { className: "n-flex n-flex-row n-gap-token-16 n-items-center", children: [_jsx(CleanIconButton, { description: "Search", size: "small", children: _jsx(MagnifyingGlassIconOutline, {}) }), _jsx(Typography, { variant: "label", children: " Small" })] }), _jsxs("div", { className: "n-flex n-flex-row n-gap-token-16 n-items-center", children: [_jsx(CleanIconButton, { description: "Search", size: "medium", children: _jsx(MagnifyingGlassIconOutline, {}) }), _jsx(Typography, { variant: "label", children: " Medium" })] }), _jsxs("div", { className: "n-flex n-flex-row n-gap-token-16 n-items-center", children: [_jsx(CleanIconButton, { description: "Search", size: "large", children: _jsx(MagnifyingGlassIconOutline, {}) }), _jsx(Typography, { variant: "label", children: " Large" })] })] }));
26
+ return (_jsxs("div", { className: "flex flex-col gap-token-16", children: [_jsxs("div", { className: "flex flex-row gap-token-16 items-center", children: [_jsx(CleanIconButton, { description: "Search", size: "small", children: _jsx(MagnifyingGlassIconOutline, {}) }), _jsx(Typography, { variant: "label", children: " Small" })] }), _jsxs("div", { className: "flex flex-row gap-token-16 items-center", children: [_jsx(CleanIconButton, { description: "Search", size: "medium", children: _jsx(MagnifyingGlassIconOutline, {}) }), _jsx(Typography, { variant: "label", children: " Medium" })] }), _jsxs("div", { className: "flex flex-row gap-token-16 items-center", children: [_jsx(CleanIconButton, { description: "Search", size: "large", children: _jsx(MagnifyingGlassIconOutline, {}) }), _jsx(Typography, { variant: "label", children: " Large" })] })] }));
27
27
  };
28
28
  export default Component;
29
29
  //# sourceMappingURL=clean-icon-button-sizes.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"clean-icon-button-sizes.story.js","sourceRoot":"","sources":["../../../../src/clean-icon-button/stories/clean-icon-button-sizes.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAEpE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,eAAK,SAAS,EAAC,kCAAkC,aAC/C,eAAK,SAAS,EAAC,iDAAiD,aAC9D,KAAC,eAAe,IAAC,WAAW,EAAC,QAAQ,EAAC,IAAI,EAAC,OAAO,YAChD,KAAC,0BAA0B,KAAG,GACd,EAClB,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,uBAAoB,IAC3C,EACN,eAAK,SAAS,EAAC,iDAAiD,aAC9D,KAAC,eAAe,IAAC,WAAW,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,YACjD,KAAC,0BAA0B,KAAG,GACd,EAClB,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,wBAAqB,IAC5C,EACN,eAAK,SAAS,EAAC,iDAAiD,aAC9D,KAAC,eAAe,IAAC,WAAW,EAAC,QAAQ,EAAC,IAAI,EAAC,OAAO,YAChD,KAAC,0BAA0B,KAAG,GACd,EAClB,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,uBAAoB,IAC3C,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,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 { CleanIconButton, Typography } from '@neo4j-ndl/react';\nimport { MagnifyingGlassIconOutline } from '@neo4j-ndl/react/icons';\n\nconst Component = () => {\n return (\n <div className=\"n-flex n-flex-col n-gap-token-16\">\n <div className=\"n-flex n-flex-row n-gap-token-16 n-items-center\">\n <CleanIconButton description=\"Search\" size=\"small\">\n <MagnifyingGlassIconOutline />\n </CleanIconButton>\n <Typography variant=\"label\"> Small</Typography>\n </div>\n <div className=\"n-flex n-flex-row n-gap-token-16 n-items-center\">\n <CleanIconButton description=\"Search\" size=\"medium\">\n <MagnifyingGlassIconOutline />\n </CleanIconButton>\n <Typography variant=\"label\"> Medium</Typography>\n </div>\n <div className=\"n-flex n-flex-row n-gap-token-16 n-items-center\">\n <CleanIconButton description=\"Search\" size=\"large\">\n <MagnifyingGlassIconOutline />\n </CleanIconButton>\n <Typography variant=\"label\"> Large</Typography>\n </div>\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"clean-icon-button-sizes.story.js","sourceRoot":"","sources":["../../../../src/clean-icon-button/stories/clean-icon-button-sizes.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAEpE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,eAAK,SAAS,EAAC,4BAA4B,aACzC,eAAK,SAAS,EAAC,yCAAyC,aACtD,KAAC,eAAe,IAAC,WAAW,EAAC,QAAQ,EAAC,IAAI,EAAC,OAAO,YAChD,KAAC,0BAA0B,KAAG,GACd,EAClB,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,uBAAoB,IAC3C,EACN,eAAK,SAAS,EAAC,yCAAyC,aACtD,KAAC,eAAe,IAAC,WAAW,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,YACjD,KAAC,0BAA0B,KAAG,GACd,EAClB,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,wBAAqB,IAC5C,EACN,eAAK,SAAS,EAAC,yCAAyC,aACtD,KAAC,eAAe,IAAC,WAAW,EAAC,QAAQ,EAAC,IAAI,EAAC,OAAO,YAChD,KAAC,0BAA0B,KAAG,GACd,EAClB,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,uBAAoB,IAC3C,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,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 { CleanIconButton, Typography } from '@neo4j-ndl/react';\nimport { MagnifyingGlassIconOutline } from '@neo4j-ndl/react/icons';\n\nconst Component = () => {\n return (\n <div className=\"flex flex-col gap-token-16\">\n <div className=\"flex flex-row gap-token-16 items-center\">\n <CleanIconButton description=\"Search\" size=\"small\">\n <MagnifyingGlassIconOutline />\n </CleanIconButton>\n <Typography variant=\"label\"> Small</Typography>\n </div>\n <div className=\"flex flex-row gap-token-16 items-center\">\n <CleanIconButton description=\"Search\" size=\"medium\">\n <MagnifyingGlassIconOutline />\n </CleanIconButton>\n <Typography variant=\"label\"> Medium</Typography>\n </div>\n <div className=\"flex flex-row gap-token-16 items-center\">\n <CleanIconButton description=\"Search\" size=\"large\">\n <MagnifyingGlassIconOutline />\n </CleanIconButton>\n <Typography variant=\"label\"> Large</Typography>\n </div>\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -23,7 +23,7 @@ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
23
  import { CleanIconButton, Typography } from '@neo4j-ndl/react';
24
24
  import { MagnifyingGlassIconOutline } from '@neo4j-ndl/react/icons';
25
25
  const Component = () => {
26
- return (_jsxs("div", { className: "n-flex n-flex-col n-gap-token-16", children: [_jsxs("div", { className: "n-flex n-flex-row n-gap-token-16 n-items-center", children: [_jsx(CleanIconButton, { description: "Search", variant: "neutral", children: _jsx(MagnifyingGlassIconOutline, {}) }), _jsx(Typography, { variant: "label", children: "Default" })] }), _jsxs("div", { className: "n-flex n-flex-row n-gap-token-16 n-items-center", children: [_jsx(CleanIconButton, { description: "Search", variant: "danger", children: _jsx(MagnifyingGlassIconOutline, {}) }), _jsx(Typography, { variant: "label", children: "Danger" })] })] }));
26
+ return (_jsxs("div", { className: "flex flex-col gap-token-16", children: [_jsxs("div", { className: "flex flex-row gap-token-16 items-center", children: [_jsx(CleanIconButton, { description: "Search", variant: "neutral", children: _jsx(MagnifyingGlassIconOutline, {}) }), _jsx(Typography, { variant: "label", children: "Default" })] }), _jsxs("div", { className: "flex flex-row gap-token-16 items-center", children: [_jsx(CleanIconButton, { description: "Search", variant: "danger", children: _jsx(MagnifyingGlassIconOutline, {}) }), _jsx(Typography, { variant: "label", children: "Danger" })] })] }));
27
27
  };
28
28
  export default Component;
29
29
  //# sourceMappingURL=clean-icon-button-tone.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"clean-icon-button-tone.story.js","sourceRoot":"","sources":["../../../../src/clean-icon-button/stories/clean-icon-button-tone.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAEpE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,eAAK,SAAS,EAAC,kCAAkC,aAC/C,eAAK,SAAS,EAAC,iDAAiD,aAC9D,KAAC,eAAe,IAAC,WAAW,EAAC,QAAQ,EAAC,OAAO,EAAC,SAAS,YACrD,KAAC,0BAA0B,KAAG,GACd,EAClB,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,wBAAqB,IAC5C,EACN,eAAK,SAAS,EAAC,iDAAiD,aAC9D,KAAC,eAAe,IAAC,WAAW,EAAC,QAAQ,EAAC,OAAO,EAAC,QAAQ,YACpD,KAAC,0BAA0B,KAAG,GACd,EAClB,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,uBAAoB,IAC3C,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,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 { CleanIconButton, Typography } from '@neo4j-ndl/react';\nimport { MagnifyingGlassIconOutline } from '@neo4j-ndl/react/icons';\n\nconst Component = () => {\n return (\n <div className=\"n-flex n-flex-col n-gap-token-16\">\n <div className=\"n-flex n-flex-row n-gap-token-16 n-items-center\">\n <CleanIconButton description=\"Search\" variant=\"neutral\">\n <MagnifyingGlassIconOutline />\n </CleanIconButton>\n <Typography variant=\"label\">Default</Typography>\n </div>\n <div className=\"n-flex n-flex-row n-gap-token-16 n-items-center\">\n <CleanIconButton description=\"Search\" variant=\"danger\">\n <MagnifyingGlassIconOutline />\n </CleanIconButton>\n <Typography variant=\"label\">Danger</Typography>\n </div>\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"clean-icon-button-tone.story.js","sourceRoot":"","sources":["../../../../src/clean-icon-button/stories/clean-icon-button-tone.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAEpE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,eAAK,SAAS,EAAC,4BAA4B,aACzC,eAAK,SAAS,EAAC,yCAAyC,aACtD,KAAC,eAAe,IAAC,WAAW,EAAC,QAAQ,EAAC,OAAO,EAAC,SAAS,YACrD,KAAC,0BAA0B,KAAG,GACd,EAClB,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,wBAAqB,IAC5C,EACN,eAAK,SAAS,EAAC,yCAAyC,aACtD,KAAC,eAAe,IAAC,WAAW,EAAC,QAAQ,EAAC,OAAO,EAAC,QAAQ,YACpD,KAAC,0BAA0B,KAAG,GACd,EAClB,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,uBAAoB,IAC3C,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,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 { CleanIconButton, Typography } from '@neo4j-ndl/react';\nimport { MagnifyingGlassIconOutline } from '@neo4j-ndl/react/icons';\n\nconst Component = () => {\n return (\n <div className=\"flex flex-col gap-token-16\">\n <div className=\"flex flex-row gap-token-16 items-center\">\n <CleanIconButton description=\"Search\" variant=\"neutral\">\n <MagnifyingGlassIconOutline />\n </CleanIconButton>\n <Typography variant=\"label\">Default</Typography>\n </div>\n <div className=\"flex flex-row gap-token-16 items-center\">\n <CleanIconButton description=\"Search\" variant=\"danger\">\n <MagnifyingGlassIconOutline />\n </CleanIconButton>\n <Typography variant=\"label\">Danger</Typography>\n </div>\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -22,7 +22,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
22
  import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
23
  import { ClipboardButton } from '@neo4j-ndl/react';
24
24
  const Component = () => {
25
- return (_jsxs("div", { className: "n-flex n-gap-token-16", children: [_jsx(ClipboardButton, { textToCopy: "This is the text to copy", size: "small" }), _jsx(ClipboardButton, { textToCopy: "This is the text to copy", size: "medium" }), _jsx(ClipboardButton, { textToCopy: "This is the text to copy", size: "large" })] }));
25
+ return (_jsxs("div", { className: "flex gap-token-16", children: [_jsx(ClipboardButton, { textToCopy: "This is the text to copy", size: "small" }), _jsx(ClipboardButton, { textToCopy: "This is the text to copy", size: "medium" }), _jsx(ClipboardButton, { textToCopy: "This is the text to copy", size: "large" })] }));
26
26
  };
27
27
  export default Component;
28
28
  //# sourceMappingURL=clipboard-button-sizes.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"clipboard-button-sizes.story.js","sourceRoot":"","sources":["../../../../src/clipboard-button/stories/clipboard-button-sizes.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,eAAK,SAAS,EAAC,uBAAuB,aACpC,KAAC,eAAe,IAAC,UAAU,EAAC,0BAA0B,EAAC,IAAI,EAAC,OAAO,GAAG,EACtE,KAAC,eAAe,IAAC,UAAU,EAAC,0BAA0B,EAAC,IAAI,EAAC,QAAQ,GAAG,EACvE,KAAC,eAAe,IAAC,UAAU,EAAC,0BAA0B,EAAC,IAAI,EAAC,OAAO,GAAG,IAClE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,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 { ClipboardButton } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"n-flex n-gap-token-16\">\n <ClipboardButton textToCopy=\"This is the text to copy\" size=\"small\" />\n <ClipboardButton textToCopy=\"This is the text to copy\" size=\"medium\" />\n <ClipboardButton textToCopy=\"This is the text to copy\" size=\"large\" />\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"clipboard-button-sizes.story.js","sourceRoot":"","sources":["../../../../src/clipboard-button/stories/clipboard-button-sizes.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,eAAK,SAAS,EAAC,mBAAmB,aAChC,KAAC,eAAe,IAAC,UAAU,EAAC,0BAA0B,EAAC,IAAI,EAAC,OAAO,GAAG,EACtE,KAAC,eAAe,IAAC,UAAU,EAAC,0BAA0B,EAAC,IAAI,EAAC,QAAQ,GAAG,EACvE,KAAC,eAAe,IAAC,UAAU,EAAC,0BAA0B,EAAC,IAAI,EAAC,OAAO,GAAG,IAClE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,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 { ClipboardButton } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"flex gap-token-16\">\n <ClipboardButton textToCopy=\"This is the text to copy\" size=\"small\" />\n <ClipboardButton textToCopy=\"This is the text to copy\" size=\"medium\" />\n <ClipboardButton textToCopy=\"This is the text to copy\" size=\"large\" />\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -38,13 +38,9 @@ import { ChevronUpIconOutline } from '../icons/generated/heroIcons/ChevronUpIcon
38
38
  import { useCodeLanguage } from './hooks/use-code-language';
39
39
  import { useCodeTheme } from './hooks/use-code-theme';
40
40
  import { useExpandable } from './hooks/use-expandable';
41
- const defaultElement = 'div';
42
41
  export const CodeBlock = (_a) => {
43
42
  var _b, _c;
44
- var { as, maxHeight, code, language, shouldShowLineNumbers, theme, heading, actions, isDisabled, className, style, htmlAttributes, ref } = _a, restProps = __rest(_a, ["as", "maxHeight", "code", "language", "shouldShowLineNumbers", "theme", "heading", "actions", "isDisabled", "className", "style", "htmlAttributes", "ref"])
45
- // TODO: Should not be polymorphic (at least not defaulting to a button)
46
- ;
47
- const Component = as !== null && as !== void 0 ? as : defaultElement;
43
+ var { maxHeight, code, language, shouldShowLineNumbers, theme, heading, actions, isDisabled, className, style, htmlAttributes, ref } = _a, restProps = __rest(_a, ["maxHeight", "code", "language", "shouldShowLineNumbers", "theme", "heading", "actions", "isDisabled", "className", "style", "htmlAttributes", "ref"]);
48
44
  const { containerHeight, isExpanded, toggleExpand, hasOverflowingContent, ref: syntaxHighlighterWrapperRef, } = useExpandable(maxHeight, code);
49
45
  const codeTheme = useCodeTheme(theme);
50
46
  const codeLanguage = useCodeLanguage(language);
@@ -55,7 +51,7 @@ export const CodeBlock = (_a) => {
55
51
  const rightPadding = hasHeading
56
52
  ? 0
57
53
  : Math.max(numberOfActions * 36, (shouldShowExpandButton ? 1 : 0) * 36) + 8;
58
- return (_jsxs(Component, Object.assign({ ref: ref, className: classNames('ndl-code-block-container', className), style: Object.assign({ height: containerHeight }, style) }, restProps, htmlAttributes, { children: [_jsxs("div", { className: "ndl-code-block-layout", children: [hasHeading && (_jsx("div", { className: classNames('ndl-code-block-title', {
54
+ return (_jsxs("div", Object.assign({ ref: ref, className: classNames('ndl-code-block-container', className), style: Object.assign({ height: containerHeight }, style) }, restProps, htmlAttributes, { children: [_jsxs("div", { className: "ndl-code-block-layout", children: [hasHeading && (_jsx("div", { className: classNames('ndl-code-block-title', {
59
55
  'ndl-disabled': isDisabled,
60
56
  }), style: {
61
57
  maxWidth: `calc(100% - ${((_c = actions === null || actions === void 0 ? void 0 : actions.length) !== null && _c !== void 0 ? _c : 0) * 36 + 20}px)`,
@@ -69,7 +65,7 @@ export const CodeBlock = (_a) => {
69
65
  lineHeight: '1',
70
66
  padding: `0 ${rightPadding}px 0.75em 0.75em`,
71
67
  width: 'fit-content',
72
- } }), codeTagProps: { className: 'n-code' },
68
+ } }), codeTagProps: { className: 'ndl-typography-code' },
73
69
  // Turn on 'shouldShowLineNumbers' & 'wrapLongLines' at the same time, the display is wrong
74
70
  // https://github.com/react-syntax-highlighter/react-syntax-highlighter/issues/402
75
71
  // wrapLongLines
@@ -1 +1 @@
1
- {"version":3,"file":"CodeBlock.js","sourceRoot":"","sources":["../../../src/code-block/CodeBlock.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAG3E,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAGzF,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAavD,MAAM,cAAc,GAAG,KAAK,CAAC;AAE7B,MAAM,CAAC,M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AAO,CAAE,GAAG,CAAC,CAAC,eAAe,EAAE,KAAK,EAAE,EAAE;;oBAAC,OAAA,CACxC,KAAC,eAAe,kBAEd,UAAU,EAAE,UAAU,IAClB,eAAe,IACnB,WAAW,EAAE,GAAG,MAAA,eAAe,CAAC,WAAW,mCAAI,kBAAkB,EAAE,EACnE,cAAc,kBACZ,aAAa,EAAE,qBAAqB,KAAK,EAAE,IACxC,eAAe,CAAC,cAAc,MAN9B,KAAK,CAQV,CACH,CAAA;iBAAA,CAAC,GACE,EACL,sBAAsB,IAAI,CACzB,cAAK,SAAS,EAAC,8BAA8B,YAC3C,KAAC,eAAe,IACd,WAAW,EAAE,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,EAC/C,YAAY,EAAE;wBACZ,IAAI,EAAE;4BACJ,2BAA2B,EAAE,IAAI;yBAClC;qBACF,EACD,OAAO,EAAE,YAAY,YAEpB,UAAU,CAAC,CAAC,CAAC,KAAC,oBAAoB,KAAG,CAAC,CAAC,CAAC,KAAC,sBAAsB,KAAG,GACnD,GACd,CACP,KACS,CACb,CAAC;AACJ,CAAC,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 classNames from 'classnames';\nimport type React from 'react';\nimport { PrismLight as SyntaxHighlighter } from 'react-syntax-highlighter';\n\nimport { type PolymorphicCommonProps } from '../_common/types';\nimport { CleanIconButton } from '../clean-icon-button';\nimport { type IconButton } from '../icon-button';\nimport { ChevronDownIconOutline } from '../icons/generated/heroIcons/ChevronDownIconOutline';\nimport { ChevronUpIconOutline } from '../icons/generated/heroIcons/ChevronUpIconOutline';\nimport { type LanguageProp } from './code-languages';\nimport { type CodeTheme } from './code-themes';\nimport { useCodeLanguage } from './hooks/use-code-language';\nimport { useCodeTheme } from './hooks/use-code-theme';\nimport { useExpandable } from './hooks/use-expandable';\n\ninterface CodeBlockProps {\n code: string;\n isDisabled?: boolean;\n maxHeight?: number;\n language: LanguageProp | 'text';\n shouldShowLineNumbers?: boolean;\n theme?: CodeTheme;\n heading?: React.ReactNode;\n actions?: React.ComponentProps<typeof IconButton<'button'>>[];\n}\n\nconst defaultElement = 'div';\n\nexport const CodeBlock = <T extends React.ElementType = 'button'>({\n as,\n maxHeight,\n code,\n language,\n shouldShowLineNumbers,\n theme,\n heading,\n actions,\n isDisabled,\n className,\n style,\n htmlAttributes,\n ref,\n ...restProps\n // TODO: Should not be polymorphic (at least not defaulting to a button)\n}: PolymorphicCommonProps<T, CodeBlockProps>) => {\n const Component: React.ElementType = as ?? defaultElement;\n\n const {\n containerHeight,\n isExpanded,\n toggleExpand,\n hasOverflowingContent,\n ref: syntaxHighlighterWrapperRef,\n } = useExpandable(maxHeight, code);\n const codeTheme = useCodeTheme(theme);\n const codeLanguage = useCodeLanguage(language);\n\n const hasMaxHeight = maxHeight !== undefined;\n const hasHeading = Boolean(heading);\n const numberOfActions = actions?.length ?? 0;\n\n const shouldShowExpandButton = hasMaxHeight && hasOverflowingContent;\n const rightPadding = hasHeading\n ? 0\n : Math.max(numberOfActions * 36, (shouldShowExpandButton ? 1 : 0) * 36) + 8;\n\n return (\n <Component\n ref={ref}\n className={classNames('ndl-code-block-container', className)}\n style={{ height: containerHeight, ...style }}\n {...restProps}\n {...htmlAttributes}\n >\n <div className=\"ndl-code-block-layout\">\n {hasHeading && (\n <div\n className={classNames('ndl-code-block-title', {\n 'ndl-disabled': isDisabled,\n })}\n style={{\n maxWidth: `calc(100% - ${(actions?.length ?? 0) * 36 + 20}px)`,\n }}\n data-testid=\"ndl-code-block-title\"\n >\n {heading}\n </div>\n )}\n <div\n className={classNames('ndl-code-content-container', {\n 'ndl-disabled': isDisabled,\n })}\n style={{\n height: hasHeading ? 'calc(100% - 24px - 12px)' : '100%',\n }}\n >\n <div\n ref={syntaxHighlighterWrapperRef}\n className=\"ndl-highlight-wrapper\"\n tabIndex={0}\n role=\"region\"\n aria-label={`Code content ${isDisabled ? '(disabled)' : ''}`}\n >\n <SyntaxHighlighter\n language={codeLanguage}\n style={{\n ...codeTheme,\n 'pre[class*=\"language-\"]': {\n border: 0,\n color: 'var(--theme-color-neutral-text-default)',\n lineHeight: '1',\n padding: `0 ${rightPadding}px 0.75em 0.75em`,\n width: 'fit-content',\n },\n }}\n codeTagProps={{ className: 'n-code' }}\n // Turn on 'shouldShowLineNumbers' & 'wrapLongLines' at the same time, the display is wrong\n // https://github.com/react-syntax-highlighter/react-syntax-highlighter/issues/402\n // wrapLongLines\n showLineNumbers={shouldShowLineNumbers}\n >\n {code}\n </SyntaxHighlighter>\n </div>\n </div>\n </div>\n <div\n className={classNames('ndl-code-block-actions', {\n 'ndl-disabled': isDisabled,\n })}\n >\n {actions?.map((iconButtonProps, index) => (\n <CleanIconButton\n key={index}\n isDisabled={isDisabled}\n {...iconButtonProps}\n description={`${iconButtonProps.description ?? 'CodeBlock Action'}`}\n htmlAttributes={{\n 'data-testid': `ndl-action-button-${index}`,\n ...iconButtonProps.htmlAttributes,\n }}\n />\n ))}\n </div>\n {shouldShowExpandButton && (\n <div className=\"ndl-code-block-expand-button\">\n <CleanIconButton\n description={isExpanded ? 'Collapse' : 'Expand'}\n tooltipProps={{\n root: {\n shouldCloseOnReferenceClick: true,\n },\n }}\n onClick={toggleExpand}\n >\n {isExpanded ? <ChevronUpIconOutline /> : <ChevronDownIconOutline />}\n </CleanIconButton>\n </div>\n )}\n </Component>\n );\n};\n"]}
1
+ {"version":3,"file":"CodeBlock.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,EAAE,CAAC;wCACT,KAAK,EAAE,yCAAyC;wCAChD,UAAU,EAAE,GAAG;wCACf,OAAO,EAAE,KAAK,YAAY,kBAAkB;wCAC5C,KAAK,EAAE,aAAa;qCACrB,KAEH,YAAY,EAAE,EAAE,SAAS,EAAE,qBAAqB,EAAE;gCAClD,2FAA2F;gCAC3F,kFAAkF;gCAClF,gBAAgB;gCAChB,eAAe,EAAE,qBAAqB,YAErC,IAAI,GACa,GAChB,GACF,IACF,EACN,cACE,SAAS,EAAE,UAAU,CAAC,wBAAwB,EAAE;oBAC9C,cAAc,EAAE,UAAU;iBAC3B,CAAC,YAED,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,CAAC,CAAC,eAAe,EAAE,KAAK,EAAE,EAAE;;oBAAC,OAAA,CACxC,KAAC,eAAe,kBAEd,UAAU,EAAE,UAAU,IAClB,eAAe,IACnB,WAAW,EAAE,GAAG,MAAA,eAAe,CAAC,WAAW,mCAAI,kBAAkB,EAAE,EACnE,cAAc,kBACZ,aAAa,EAAE,qBAAqB,KAAK,EAAE,IACxC,eAAe,CAAC,cAAc,MAN9B,KAAK,CAQV,CACH,CAAA;iBAAA,CAAC,GACE,EACL,sBAAsB,IAAI,CACzB,cAAK,SAAS,EAAC,8BAA8B,YAC3C,KAAC,eAAe,IACd,WAAW,EAAE,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,EAC/C,YAAY,EAAE;wBACZ,IAAI,EAAE;4BACJ,2BAA2B,EAAE,IAAI;yBAClC;qBACF,EACD,OAAO,EAAE,YAAY,YAEpB,UAAU,CAAC,CAAC,CAAC,KAAC,oBAAoB,KAAG,CAAC,CAAC,CAAC,KAAC,sBAAsB,KAAG,GACnD,GACd,CACP,KACG,CACP,CAAC;AACJ,CAAC,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 classNames from 'classnames';\nimport type React from 'react';\nimport { PrismLight as SyntaxHighlighter } from 'react-syntax-highlighter';\n\nimport { type CommonProps } from '../_common/types';\nimport { CleanIconButton } from '../clean-icon-button';\nimport { type IconButton } from '../icon-button';\nimport { ChevronDownIconOutline } from '../icons/generated/heroIcons/ChevronDownIconOutline';\nimport { ChevronUpIconOutline } from '../icons/generated/heroIcons/ChevronUpIconOutline';\nimport { type LanguageProp } from './code-languages';\nimport { type CodeTheme } from './code-themes';\nimport { useCodeLanguage } from './hooks/use-code-language';\nimport { useCodeTheme } from './hooks/use-code-theme';\nimport { useExpandable } from './hooks/use-expandable';\n\ninterface CodeBlockProps {\n code: string;\n isDisabled?: boolean;\n maxHeight?: number;\n language: LanguageProp | 'text';\n shouldShowLineNumbers?: boolean;\n theme?: CodeTheme;\n heading?: React.ReactNode;\n actions?: React.ComponentProps<typeof IconButton<'button'>>[];\n}\n\nexport const CodeBlock = ({\n maxHeight,\n code,\n language,\n shouldShowLineNumbers,\n theme,\n heading,\n actions,\n isDisabled,\n className,\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: CommonProps<'div', CodeBlockProps>) => {\n const {\n containerHeight,\n isExpanded,\n toggleExpand,\n hasOverflowingContent,\n ref: syntaxHighlighterWrapperRef,\n } = useExpandable(maxHeight, code);\n const codeTheme = useCodeTheme(theme);\n const codeLanguage = useCodeLanguage(language);\n\n const hasMaxHeight = maxHeight !== undefined;\n const hasHeading = Boolean(heading);\n const numberOfActions = actions?.length ?? 0;\n\n const shouldShowExpandButton = hasMaxHeight && hasOverflowingContent;\n const rightPadding = hasHeading\n ? 0\n : Math.max(numberOfActions * 36, (shouldShowExpandButton ? 1 : 0) * 36) + 8;\n\n return (\n <div\n ref={ref}\n className={classNames('ndl-code-block-container', className)}\n style={{ height: containerHeight, ...style }}\n {...restProps}\n {...htmlAttributes}\n >\n <div className=\"ndl-code-block-layout\">\n {hasHeading && (\n <div\n className={classNames('ndl-code-block-title', {\n 'ndl-disabled': isDisabled,\n })}\n style={{\n maxWidth: `calc(100% - ${(actions?.length ?? 0) * 36 + 20}px)`,\n }}\n data-testid=\"ndl-code-block-title\"\n >\n {heading}\n </div>\n )}\n <div\n className={classNames('ndl-code-content-container', {\n 'ndl-disabled': isDisabled,\n })}\n style={{\n height: hasHeading ? 'calc(100% - 24px - 12px)' : '100%',\n }}\n >\n <div\n ref={syntaxHighlighterWrapperRef}\n className=\"ndl-highlight-wrapper\"\n tabIndex={0}\n role=\"region\"\n aria-label={`Code content ${isDisabled ? '(disabled)' : ''}`}\n >\n <SyntaxHighlighter\n language={codeLanguage}\n style={{\n ...codeTheme,\n 'pre[class*=\"language-\"]': {\n border: 0,\n color: 'var(--theme-color-neutral-text-default)',\n lineHeight: '1',\n padding: `0 ${rightPadding}px 0.75em 0.75em`,\n width: 'fit-content',\n },\n }}\n codeTagProps={{ className: 'ndl-typography-code' }}\n // Turn on 'shouldShowLineNumbers' & 'wrapLongLines' at the same time, the display is wrong\n // https://github.com/react-syntax-highlighter/react-syntax-highlighter/issues/402\n // wrapLongLines\n showLineNumbers={shouldShowLineNumbers}\n >\n {code}\n </SyntaxHighlighter>\n </div>\n </div>\n </div>\n <div\n className={classNames('ndl-code-block-actions', {\n 'ndl-disabled': isDisabled,\n })}\n >\n {actions?.map((iconButtonProps, index) => (\n <CleanIconButton\n key={index}\n isDisabled={isDisabled}\n {...iconButtonProps}\n description={`${iconButtonProps.description ?? 'CodeBlock Action'}`}\n htmlAttributes={{\n 'data-testid': `ndl-action-button-${index}`,\n ...iconButtonProps.htmlAttributes,\n }}\n />\n ))}\n </div>\n {shouldShowExpandButton && (\n <div className=\"ndl-code-block-expand-button\">\n <CleanIconButton\n description={isExpanded ? 'Collapse' : 'Expand'}\n tooltipProps={{\n root: {\n shouldCloseOnReferenceClick: true,\n },\n }}\n onClick={toggleExpand}\n >\n {isExpanded ? <ChevronUpIconOutline /> : <ChevronDownIconOutline />}\n </CleanIconButton>\n </div>\n )}\n </div>\n );\n};\n"]}
@@ -26,13 +26,13 @@ import { SHORT_CODE_EXAMPLE } from './example-code-snippets';
26
26
  const Component = () => {
27
27
  return (_jsx(CodeBlock, { code: SHORT_CODE_EXAMPLE, language: "typescript", heading: "Code Header", isDisabled: true, actions: [
28
28
  {
29
- children: (_jsx(Square2StackIconOutline, { className: "n-text-neutral-text-icon" })),
29
+ children: (_jsx(Square2StackIconOutline, { className: "text-neutral-text-icon" })),
30
30
  description: 'copy',
31
31
  htmlAttributes: { title: 'copy' },
32
32
  onClick: () => alert('This should not trigger when disabled'),
33
33
  },
34
34
  {
35
- children: _jsx(PlayCircleIconOutline, { className: "n-text-primary-icon" }),
35
+ children: _jsx(PlayCircleIconOutline, { className: "text-primary-icon" }),
36
36
  description: 'run',
37
37
  htmlAttributes: { title: 'run' },
38
38
  onClick: () => alert('This should not trigger when disabled'),
@@ -1 +1 @@
1
- {"version":3,"file":"code-disabled.story.js","sourceRoot":"","sources":["../../../../src/code-block/stories/code-disabled.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EACL,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,SAAS,IACR,IAAI,EAAE,kBAAkB,EACxB,QAAQ,EAAC,YAAY,EACrB,OAAO,EAAC,aAAa,EACrB,UAAU,QACV,OAAO,EAAE;YACP;gBACE,QAAQ,EAAE,CACR,KAAC,uBAAuB,IAAC,SAAS,EAAC,0BAA0B,GAAG,CACjE;gBACD,WAAW,EAAE,MAAM;gBACnB,cAAc,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBACjC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,uCAAuC,CAAC;aAC9D;YACD;gBACE,QAAQ,EAAE,KAAC,qBAAqB,IAAC,SAAS,EAAC,qBAAqB,GAAG;gBACnE,WAAW,EAAE,KAAK;gBAClB,cAAc,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;gBAChC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,uCAAuC,CAAC;aAC9D;SACF,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,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 { CodeBlock } from '@neo4j-ndl/react';\nimport {\n PlayCircleIconOutline,\n Square2StackIconOutline,\n} from '@neo4j-ndl/react/icons';\n\nimport { SHORT_CODE_EXAMPLE } from './example-code-snippets';\n\nconst Component = () => {\n return (\n <CodeBlock\n code={SHORT_CODE_EXAMPLE}\n language=\"typescript\"\n heading=\"Code Header\"\n isDisabled\n actions={[\n {\n children: (\n <Square2StackIconOutline className=\"n-text-neutral-text-icon\" />\n ),\n description: 'copy',\n htmlAttributes: { title: 'copy' },\n onClick: () => alert('This should not trigger when disabled'),\n },\n {\n children: <PlayCircleIconOutline className=\"n-text-primary-icon\" />,\n description: 'run',\n htmlAttributes: { title: 'run' },\n onClick: () => alert('This should not trigger when disabled'),\n },\n ]}\n />\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"code-disabled.story.js","sourceRoot":"","sources":["../../../../src/code-block/stories/code-disabled.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EACL,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,SAAS,IACR,IAAI,EAAE,kBAAkB,EACxB,QAAQ,EAAC,YAAY,EACrB,OAAO,EAAC,aAAa,EACrB,UAAU,QACV,OAAO,EAAE;YACP;gBACE,QAAQ,EAAE,CACR,KAAC,uBAAuB,IAAC,SAAS,EAAC,wBAAwB,GAAG,CAC/D;gBACD,WAAW,EAAE,MAAM;gBACnB,cAAc,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBACjC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,uCAAuC,CAAC;aAC9D;YACD;gBACE,QAAQ,EAAE,KAAC,qBAAqB,IAAC,SAAS,EAAC,mBAAmB,GAAG;gBACjE,WAAW,EAAE,KAAK;gBAClB,cAAc,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;gBAChC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,uCAAuC,CAAC;aAC9D;SACF,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,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 { CodeBlock } from '@neo4j-ndl/react';\nimport {\n PlayCircleIconOutline,\n Square2StackIconOutline,\n} from '@neo4j-ndl/react/icons';\n\nimport { SHORT_CODE_EXAMPLE } from './example-code-snippets';\n\nconst Component = () => {\n return (\n <CodeBlock\n code={SHORT_CODE_EXAMPLE}\n language=\"typescript\"\n heading=\"Code Header\"\n isDisabled\n actions={[\n {\n children: (\n <Square2StackIconOutline className=\"text-neutral-text-icon\" />\n ),\n description: 'copy',\n htmlAttributes: { title: 'copy' },\n onClick: () => alert('This should not trigger when disabled'),\n },\n {\n children: <PlayCircleIconOutline className=\"text-primary-icon\" />,\n description: 'run',\n htmlAttributes: { title: 'run' },\n onClick: () => alert('This should not trigger when disabled'),\n },\n ]}\n />\n );\n};\n\nexport default Component;\n"]}
@@ -26,13 +26,13 @@ import { LONG_CODE_EXAMPLE } from './example-code-snippets';
26
26
  const Component = () => {
27
27
  return (_jsx(CodeBlock, { code: LONG_CODE_EXAMPLE, maxHeight: 320, language: "typescript", shouldShowLineNumbers: true, theme: "ndl-code-light", heading: "Code Header", actions: [
28
28
  {
29
- children: (_jsx(Square2StackIconOutline, { className: "n-text-neutral-text-icon" })),
29
+ children: (_jsx(Square2StackIconOutline, { className: "text-neutral-text-icon" })),
30
30
  description: 'copy',
31
31
  htmlAttributes: { title: 'copy' },
32
32
  onClick: () => alert('copied'),
33
33
  },
34
34
  {
35
- children: _jsx(PlayCircleIconOutline, { className: "n-text-primary-icon" }),
35
+ children: _jsx(PlayCircleIconOutline, { className: "text-primary-icon" }),
36
36
  description: 'run',
37
37
  htmlAttributes: { title: 'run' },
38
38
  onClick: () => alert('running'),
@@ -1 +1 @@
1
- {"version":3,"file":"code-full.story.js","sourceRoot":"","sources":["../../../../src/code-block/stories/code-full.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EACL,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,SAAS,IACR,IAAI,EAAE,iBAAiB,EACvB,SAAS,EAAE,GAAG,EACd,QAAQ,EAAC,YAAY,EACrB,qBAAqB,QACrB,KAAK,EAAC,gBAAgB,EACtB,OAAO,EAAC,aAAa,EACrB,OAAO,EAAE;YACP;gBACE,QAAQ,EAAE,CACR,KAAC,uBAAuB,IAAC,SAAS,EAAC,0BAA0B,GAAG,CACjE;gBACD,WAAW,EAAE,MAAM;gBACnB,cAAc,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBACjC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;aAC/B;YACD;gBACE,QAAQ,EAAE,KAAC,qBAAqB,IAAC,SAAS,EAAC,qBAAqB,GAAG;gBACnE,WAAW,EAAE,KAAK;gBAClB,cAAc,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;gBAChC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;aAChC;SACF,EACD,UAAU,EAAE,KAAK,GACjB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,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 { CodeBlock } from '@neo4j-ndl/react';\nimport {\n PlayCircleIconOutline,\n Square2StackIconOutline,\n} from '@neo4j-ndl/react/icons';\n\nimport { LONG_CODE_EXAMPLE } from './example-code-snippets';\n\nconst Component = () => {\n return (\n <CodeBlock\n code={LONG_CODE_EXAMPLE}\n maxHeight={320}\n language=\"typescript\"\n shouldShowLineNumbers\n theme=\"ndl-code-light\"\n heading=\"Code Header\"\n actions={[\n {\n children: (\n <Square2StackIconOutline className=\"n-text-neutral-text-icon\" />\n ),\n description: 'copy',\n htmlAttributes: { title: 'copy' },\n onClick: () => alert('copied'),\n },\n {\n children: <PlayCircleIconOutline className=\"n-text-primary-icon\" />,\n description: 'run',\n htmlAttributes: { title: 'run' },\n onClick: () => alert('running'),\n },\n ]}\n isDisabled={false}\n />\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"code-full.story.js","sourceRoot":"","sources":["../../../../src/code-block/stories/code-full.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EACL,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,SAAS,IACR,IAAI,EAAE,iBAAiB,EACvB,SAAS,EAAE,GAAG,EACd,QAAQ,EAAC,YAAY,EACrB,qBAAqB,QACrB,KAAK,EAAC,gBAAgB,EACtB,OAAO,EAAC,aAAa,EACrB,OAAO,EAAE;YACP;gBACE,QAAQ,EAAE,CACR,KAAC,uBAAuB,IAAC,SAAS,EAAC,wBAAwB,GAAG,CAC/D;gBACD,WAAW,EAAE,MAAM;gBACnB,cAAc,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBACjC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;aAC/B;YACD;gBACE,QAAQ,EAAE,KAAC,qBAAqB,IAAC,SAAS,EAAC,mBAAmB,GAAG;gBACjE,WAAW,EAAE,KAAK;gBAClB,cAAc,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;gBAChC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;aAChC;SACF,EACD,UAAU,EAAE,KAAK,GACjB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,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 { CodeBlock } from '@neo4j-ndl/react';\nimport {\n PlayCircleIconOutline,\n Square2StackIconOutline,\n} from '@neo4j-ndl/react/icons';\n\nimport { LONG_CODE_EXAMPLE } from './example-code-snippets';\n\nconst Component = () => {\n return (\n <CodeBlock\n code={LONG_CODE_EXAMPLE}\n maxHeight={320}\n language=\"typescript\"\n shouldShowLineNumbers\n theme=\"ndl-code-light\"\n heading=\"Code Header\"\n actions={[\n {\n children: (\n <Square2StackIconOutline className=\"text-neutral-text-icon\" />\n ),\n description: 'copy',\n htmlAttributes: { title: 'copy' },\n onClick: () => alert('copied'),\n },\n {\n children: <PlayCircleIconOutline className=\"text-primary-icon\" />,\n description: 'run',\n htmlAttributes: { title: 'run' },\n onClick: () => alert('running'),\n },\n ]}\n isDisabled={false}\n />\n );\n};\n\nexport default Component;\n"]}
@@ -23,7 +23,7 @@ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
23
  import { CodeBlock } from '@neo4j-ndl/react';
24
24
  import { LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES } from './example-code-snippets';
25
25
  const Component = () => {
26
- return (_jsxs("div", { className: "n-flex n-flex-col n-gap-token-8", children: [_jsx(CodeBlock, { code: LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES.TYPESCRIPT, language: "typescript", heading: "TypeScript", shouldShowLineNumbers: true }), _jsx(CodeBlock, { code: LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES.CYPHER, language: "cypher", heading: "Cypher Query Language", shouldShowLineNumbers: true }), _jsx(CodeBlock, { code: LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES.JSON, language: "json", heading: "JSON Configuration", shouldShowLineNumbers: true })] }));
26
+ return (_jsxs("div", { className: "flex flex-col gap-token-8", children: [_jsx(CodeBlock, { code: LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES.TYPESCRIPT, language: "typescript", heading: "TypeScript", shouldShowLineNumbers: true }), _jsx(CodeBlock, { code: LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES.CYPHER, language: "cypher", heading: "Cypher Query Language", shouldShowLineNumbers: true }), _jsx(CodeBlock, { code: LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES.JSON, language: "json", heading: "JSON Configuration", shouldShowLineNumbers: true })] }));
27
27
  };
28
28
  export default Component;
29
29
  //# sourceMappingURL=code-languages.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"code-languages.story.js","sourceRoot":"","sources":["../../../../src/code-block/stories/code-languages.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,qCAAqC,EAAE,MAAM,yBAAyB,CAAC;AAEhF,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,eAAK,SAAS,EAAC,iCAAiC,aAC9C,KAAC,SAAS,IACR,IAAI,EAAE,qCAAqC,CAAC,UAAU,EACtD,QAAQ,EAAC,YAAY,EACrB,OAAO,EAAC,YAAY,EACpB,qBAAqB,SACrB,EAEF,KAAC,SAAS,IACR,IAAI,EAAE,qCAAqC,CAAC,MAAM,EAClD,QAAQ,EAAC,QAAQ,EACjB,OAAO,EAAC,uBAAuB,EAC/B,qBAAqB,SACrB,EAEF,KAAC,SAAS,IACR,IAAI,EAAE,qCAAqC,CAAC,IAAI,EAChD,QAAQ,EAAC,MAAM,EACf,OAAO,EAAC,oBAAoB,EAC5B,qBAAqB,SACrB,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,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 { CodeBlock } from '@neo4j-ndl/react';\n\nimport { LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES } from './example-code-snippets';\n\nconst Component = () => {\n return (\n <div className=\"n-flex n-flex-col n-gap-token-8\">\n <CodeBlock\n code={LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES.TYPESCRIPT}\n language=\"typescript\"\n heading=\"TypeScript\"\n shouldShowLineNumbers\n />\n\n <CodeBlock\n code={LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES.CYPHER}\n language=\"cypher\"\n heading=\"Cypher Query Language\"\n shouldShowLineNumbers\n />\n\n <CodeBlock\n code={LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES.JSON}\n language=\"json\"\n heading=\"JSON Configuration\"\n shouldShowLineNumbers\n />\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"code-languages.story.js","sourceRoot":"","sources":["../../../../src/code-block/stories/code-languages.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,qCAAqC,EAAE,MAAM,yBAAyB,CAAC;AAEhF,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,eAAK,SAAS,EAAC,2BAA2B,aACxC,KAAC,SAAS,IACR,IAAI,EAAE,qCAAqC,CAAC,UAAU,EACtD,QAAQ,EAAC,YAAY,EACrB,OAAO,EAAC,YAAY,EACpB,qBAAqB,SACrB,EAEF,KAAC,SAAS,IACR,IAAI,EAAE,qCAAqC,CAAC,MAAM,EAClD,QAAQ,EAAC,QAAQ,EACjB,OAAO,EAAC,uBAAuB,EAC/B,qBAAqB,SACrB,EAEF,KAAC,SAAS,IACR,IAAI,EAAE,qCAAqC,CAAC,IAAI,EAChD,QAAQ,EAAC,MAAM,EACf,OAAO,EAAC,oBAAoB,EAC5B,qBAAqB,SACrB,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,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 { CodeBlock } from '@neo4j-ndl/react';\n\nimport { LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES } from './example-code-snippets';\n\nconst Component = () => {\n return (\n <div className=\"flex flex-col gap-token-8\">\n <CodeBlock\n code={LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES.TYPESCRIPT}\n language=\"typescript\"\n heading=\"TypeScript\"\n shouldShowLineNumbers\n />\n\n <CodeBlock\n code={LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES.CYPHER}\n language=\"cypher\"\n heading=\"Cypher Query Language\"\n shouldShowLineNumbers\n />\n\n <CodeBlock\n code={LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES.JSON}\n language=\"json\"\n heading=\"JSON Configuration\"\n shouldShowLineNumbers\n />\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -26,13 +26,13 @@ import { SHORT_CODE_EXAMPLE } from './example-code-snippets';
26
26
  const Component = () => {
27
27
  return (_jsx(CodeBlock, { code: SHORT_CODE_EXAMPLE, language: "typescript", maxHeight: 320, actions: [
28
28
  {
29
- children: (_jsx(Square2StackIconOutline, { className: "n-text-neutral-text-icon" })),
29
+ children: (_jsx(Square2StackIconOutline, { className: "text-neutral-text-icon" })),
30
30
  description: 'copy',
31
31
  htmlAttributes: { title: 'copy' },
32
32
  onClick: () => alert('Code copied to clipboard!'),
33
33
  },
34
34
  {
35
- children: _jsx(PlayCircleIconOutline, { className: "n-text-primary-icon" }),
35
+ children: _jsx(PlayCircleIconOutline, { className: "text-primary-icon" }),
36
36
  description: 'run',
37
37
  htmlAttributes: { title: 'run' },
38
38
  onClick: () => alert('Running code...'),
@@ -1 +1 @@
1
- {"version":3,"file":"code-with-actions.story.js","sourceRoot":"","sources":["../../../../src/code-block/stories/code-with-actions.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EACL,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,SAAS,IACR,IAAI,EAAE,kBAAkB,EACxB,QAAQ,EAAC,YAAY,EACrB,SAAS,EAAE,GAAG,EACd,OAAO,EAAE;YACP;gBACE,QAAQ,EAAE,CACR,KAAC,uBAAuB,IAAC,SAAS,EAAC,0BAA0B,GAAG,CACjE;gBACD,WAAW,EAAE,MAAM;gBACnB,cAAc,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBACjC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,2BAA2B,CAAC;aAClD;YACD;gBACE,QAAQ,EAAE,KAAC,qBAAqB,IAAC,SAAS,EAAC,qBAAqB,GAAG;gBACnE,WAAW,EAAE,KAAK;gBAClB,cAAc,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;gBAChC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC;aACxC;SACF,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,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 { CodeBlock } from '@neo4j-ndl/react';\nimport {\n PlayCircleIconOutline,\n Square2StackIconOutline,\n} from '@neo4j-ndl/react/icons';\n\nimport { SHORT_CODE_EXAMPLE } from './example-code-snippets';\n\nconst Component = () => {\n return (\n <CodeBlock\n code={SHORT_CODE_EXAMPLE}\n language=\"typescript\"\n maxHeight={320}\n actions={[\n {\n children: (\n <Square2StackIconOutline className=\"n-text-neutral-text-icon\" />\n ),\n description: 'copy',\n htmlAttributes: { title: 'copy' },\n onClick: () => alert('Code copied to clipboard!'),\n },\n {\n children: <PlayCircleIconOutline className=\"n-text-primary-icon\" />,\n description: 'run',\n htmlAttributes: { title: 'run' },\n onClick: () => alert('Running code...'),\n },\n ]}\n />\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"code-with-actions.story.js","sourceRoot":"","sources":["../../../../src/code-block/stories/code-with-actions.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EACL,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,SAAS,IACR,IAAI,EAAE,kBAAkB,EACxB,QAAQ,EAAC,YAAY,EACrB,SAAS,EAAE,GAAG,EACd,OAAO,EAAE;YACP;gBACE,QAAQ,EAAE,CACR,KAAC,uBAAuB,IAAC,SAAS,EAAC,wBAAwB,GAAG,CAC/D;gBACD,WAAW,EAAE,MAAM;gBACnB,cAAc,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBACjC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,2BAA2B,CAAC;aAClD;YACD;gBACE,QAAQ,EAAE,KAAC,qBAAqB,IAAC,SAAS,EAAC,mBAAmB,GAAG;gBACjE,WAAW,EAAE,KAAK;gBAClB,cAAc,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;gBAChC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC;aACxC;SACF,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,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 { CodeBlock } from '@neo4j-ndl/react';\nimport {\n PlayCircleIconOutline,\n Square2StackIconOutline,\n} from '@neo4j-ndl/react/icons';\n\nimport { SHORT_CODE_EXAMPLE } from './example-code-snippets';\n\nconst Component = () => {\n return (\n <CodeBlock\n code={SHORT_CODE_EXAMPLE}\n language=\"typescript\"\n maxHeight={320}\n actions={[\n {\n children: (\n <Square2StackIconOutline className=\"text-neutral-text-icon\" />\n ),\n description: 'copy',\n htmlAttributes: { title: 'copy' },\n onClick: () => alert('Code copied to clipboard!'),\n },\n {\n children: <PlayCircleIconOutline className=\"text-primary-icon\" />,\n description: 'run',\n htmlAttributes: { title: 'run' },\n onClick: () => alert('Running code...'),\n },\n ]}\n />\n );\n};\n\nexport default Component;\n"]}
@@ -76,9 +76,6 @@ export const ColorPicker = forwardRef(function ColorPicker({ color, onChange, sw
76
76
  handleChange(newColor);
77
77
  } }), _jsxs("div", { className: "ndl-color-picker-hue-container", children: [isEyeDropperActive && (_jsx(CleanIconButton, { size: "small", isActive: isEyeDropperActiveState, onClick: () => {
78
78
  setIsEyeDropperActiveState(true);
79
- // TODO: Remove the any casting when polyfiller is not needed anymore. https://developer.mozilla.org/en-US/docs/Web/API/EyeDropper
80
- // Type assertion to handle the unknown type
81
- // oxlint-disable-next-line @typescript-eslint/no-explicit-any
82
79
  const eyeDropper = new window.EyeDropper();
83
80
  eyeDropper
84
81
  .open()
@@ -1 +1 @@
1
- {"version":3,"file":"ColorPicker.js","sourceRoot":"","sources":["../../../src/color-picker/ColorPicker.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,qBAAqB,CAAC;AAE7B,O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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 'eyedropper-polyfill';\n\nimport { tokens } from '@neo4j-ndl/base';\nimport {\n type HexColor,\n hexToHsva,\n type HsvaColor,\n hsvaToHex,\n hsvaToRgba,\n Hue,\n type PointerProps,\n type RgbaColor,\n rgbaToHex,\n rgbaToHsva,\n Saturation,\n validHex,\n} from '@uiw/react-color';\nimport classNames from 'classnames';\nimport { forwardRef, useEffect, useMemo, useState } from 'react';\n\nimport { CleanIconButton } from '../clean-icon-button';\nimport { EyeDropperIconOutline } from '../icons/generated/heroIcons/EyeDropperIconOutline';\nimport { Select } from '../select';\nimport { TextInput } from '../text-input';\n\n/**\n * @remarks\n * By default the `swatches` prop is set to the available graph colors (`tokens.graph`) from `@neo4j-ndl/base`.\n *\n * @remarks\n * Where `HsvaColor`, `RgbaColor`, and `HexColor` types are from `@uiw/react-color`, and represent different color formats:\n *\n * - `HexColor`: A string in the format `#RRGGBB` (e.g., `#ff0000`).\n * - `RgbaColor`: An object with numeric properties `{ r, g, b, a }` for red, green, blue (0–255), and alpha (0–1).\n * - `HsvaColor`: An object with numeric properties `{ h, s, v, a }` for hue (0–360), saturation (0–100), value (0–100), and alpha (0–1).\n *\n * Visit [react-color](https://uiwjs.github.io/react-color/#/) for more information.\n */\ntype ColorPickerProps = {\n /** The current color value. Can be provided in HSVA, RGBA, or Hex format. The component will automatically convert between formats as needed. */\n color: HsvaColor | RgbaColor | HexColor;\n /** Optional array of predefined color swatches for quick selection. Each swatch can be in HSVA, RGBA, or Hex format. */\n swatches?: (HsvaColor | RgbaColor | HexColor)[];\n /** Whether to display the eye dropper tool that allows users to sample colors from anywhere on the screen. */\n shouldShowEyeDropper?: boolean;\n /** Callback function triggered when the color value changes. Receives an object containing the new color in all three formats (hex, rgb, hsva) for convenience. */\n onChange: (newColor: {\n hex: HexColor;\n rgb: RgbaColor;\n hsva: HsvaColor;\n }) => void;\n /** Additional class name to apply to the root color picker container. */\n className?: string;\n /** Additional inline styles to apply to the root color picker container. */\n style?: React.CSSProperties;\n\n /** The target element to portal the menu to. If not provided, the menu will not be portaled. */\n portalTarget?: HTMLElement | null;\n /** The floating strategy to use for the menu. If not provided, the menu will be positioned absolutely. */\n floatingStrategy?: 'absolute' | 'fixed';\n};\n\nexport const ColorPicker = forwardRef<HTMLDivElement, ColorPickerProps>(\n function ColorPicker(\n {\n color,\n onChange,\n swatches = Object.values(tokens.graph).filter(validHex),\n shouldShowEyeDropper = true,\n className,\n style,\n portalTarget,\n floatingStrategy = 'absolute',\n },\n ref,\n ) {\n const [isEyeDropperActiveState, setIsEyeDropperActiveState] =\n useState(false);\n\n const derivedHsva = useMemo(() => {\n if (typeof color === 'string') {\n return hexToHsva(color);\n }\n if (typeof color === 'object' && 'r' in color) {\n return rgbaToHsva(color);\n }\n return { h: 0, s: 0, v: 0, ...(color as object), a: 1 } as HsvaColor; // oxlint-disable-line id-length\n }, [color]);\n\n const [hsva, setHsva] = useState<HsvaColor>(derivedHsva);\n\n const [format, setFormat] = useState<{\n label: string;\n value: string;\n }>({\n label: 'Hex',\n value: 'hex',\n });\n\n const isEyeDropperActive = 'EyeDropper' in window && shouldShowEyeDropper;\n\n const handleChange = (hsva: HsvaColor) => {\n setHsva(hsva);\n const hex = hsvaToHex(hsva);\n const rgb = hsvaToRgba(hsva);\n onChange({\n // used since typescript cannot infer the type of the color\n hex: `#${hex.split('#')[1]}`,\n hsva,\n rgb,\n });\n };\n\n return (\n <div\n ref={ref}\n className={classNames('ndl-color-picker', className)}\n style={style}\n >\n <Saturation\n hsva={hsva}\n className=\"ndl-color-picker-saturation\"\n onChange={(newColor) => {\n handleChange({ ...hsva, ...newColor, a: hsva.a }); // oxlint-disable-line id-length\n }}\n pointer={({ left, top, ...props }) => (\n <Pointer\n left={left?.toString()}\n top={top?.toString()}\n {...props}\n hsva={hsva}\n />\n )}\n radius={tokens.borderRadius['lg']}\n />\n <Swatch\n colors={swatches}\n hsva={hsva}\n onChange={(newColor) => {\n handleChange(newColor);\n }}\n />\n\n <div className=\"ndl-color-picker-hue-container\">\n {isEyeDropperActive && (\n <CleanIconButton\n size=\"small\"\n isActive={isEyeDropperActiveState}\n onClick={() => {\n setIsEyeDropperActiveState(true);\n // TODO: Remove the any casting when polyfiller is not needed anymore. https://developer.mozilla.org/en-US/docs/Web/API/EyeDropper\n // Type assertion to handle the unknown type\n // oxlint-disable-next-line @typescript-eslint/no-explicit-any\n const eyeDropper = new (window as any).EyeDropper();\n eyeDropper\n .open()\n .then((result: { sRGBHex: string }) => {\n handleChange(hexToHsva(result.sRGBHex));\n })\n .catch((err: Error) => {\n console.error(err);\n })\n .finally(() => {\n setIsEyeDropperActiveState(false);\n });\n }}\n description=\"Pick color from the screen with eye dropper tool\"\n >\n <EyeDropperIconOutline />\n </CleanIconButton>\n )}\n <Hue\n className=\"ndl-color-picker-hue\"\n hue={hsva.h}\n onChange={(newHue) => {\n handleChange({ ...hsva, h: newHue.h }); // oxlint-disable-line id-length\n }}\n radius={tokens.borderRadius['lg']}\n pointer={(props) => (\n <Pointer\n {...props}\n hsva={{\n a: 1, // oxlint-disable-line id-length\n h: hsva.h, // oxlint-disable-line id-length\n s: 100, // oxlint-disable-line id-length\n v: 100, // oxlint-disable-line id-length\n }}\n />\n )}\n />\n </div>\n\n <div className=\"ndl-color-picker-inputs\">\n <Select\n size=\"small\"\n type=\"select\"\n ariaLabel=\"Color format\"\n style={{\n flexShrink: 0,\n }}\n selectProps={{\n isSearchable: false,\n menuPortalTarget: portalTarget,\n menuPosition: floatingStrategy,\n onChange: (newFormat) => {\n if (!newFormat) {\n return;\n }\n setFormat({\n label: newFormat.label,\n value: newFormat.value,\n });\n },\n options: [\n {\n label: 'Hex',\n value: 'hex',\n },\n {\n label: 'RGB',\n value: 'rgb',\n },\n ],\n value: { label: format.label, value: format.value },\n }}\n />\n {format.value === 'hex' && (\n <HexInput\n hsva={hsva}\n onChange={(newColor) => {\n handleChange(hexToHsva(newColor));\n }}\n />\n )}\n {format.value === 'rgb' && (\n <RgbInput\n hsva={hsva}\n onChange={(newColor) => {\n handleChange(hexToHsva(newColor));\n }}\n />\n )}\n </div>\n </div>\n );\n },\n);\n\nconst removeHashPrefix = (hex: string): string => hex.replace('#', '');\n\nconst HexInput = ({\n hsva,\n onChange,\n}: {\n hsva: HsvaColor;\n onChange: (newColor: string) => void;\n}) => {\n const [inputValue, setInputValue] = useState<string>(() =>\n removeHashPrefix(hsvaToHex(hsva)),\n );\n\n // Update input value when hsva changes from outside\n useEffect(() => {\n setInputValue(removeHashPrefix(hsvaToHex(hsva)));\n }, [hsva]);\n\n const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n const value = removeHashPrefix(event.target.value);\n\n // Always update the input value for immediate feedback\n setInputValue(value);\n\n // Check if the input is a valid hex color (only 6 characters)\n const isValidHex = /^[0-9A-Fa-f]{6}$/.test(value);\n\n if (isValidHex) {\n onChange(`#${value}`);\n }\n };\n\n const hexValue = hsvaToHex(hsva);\n\n return (\n <TextInput\n size=\"small\"\n value={inputValue}\n leadingElement={\n <div className=\"ndl-color-picker-hex-input-prefix\">#</div>\n }\n onChange={handleChange}\n isFluid\n htmlAttributes={{\n 'aria-label': 'Hex color code',\n maxLength: 6,\n onCopy: (event) => {\n event.preventDefault();\n navigator.clipboard.writeText(hexValue);\n },\n }}\n />\n );\n};\n\nconst RgbInput = ({\n hsva,\n onChange,\n}: {\n hsva: HsvaColor;\n onChange: (newColor: string) => void;\n}) => {\n const rgba = hsvaToRgba(hsva);\n const [rgbValues, setRgbValues] = useState({\n b: rgba.b, // oxlint-disable-line id-length\n g: rgba.g, // oxlint-disable-line id-length\n r: rgba.r, // oxlint-disable-line id-length\n });\n\n // Update input values when hsva changes from outside\n useEffect(() => {\n const newRgba = hsvaToRgba(hsva);\n setRgbValues({\n b: newRgba.b, // oxlint-disable-line id-length\n g: newRgba.g, // oxlint-disable-line id-length\n r: newRgba.r, // oxlint-disable-line id-length\n });\n }, [hsva]);\n\n const handleChange = (\n channel: 'r' | 'g' | 'b',\n event: React.ChangeEvent<HTMLInputElement>,\n ) => {\n const value = parseInt(event.target.value, 10);\n\n // Validate the input is a number between 0-255\n const validValue = isNaN(value) ? 0 : Math.max(0, Math.min(255, value));\n\n const newRgbValues = {\n ...rgbValues,\n [channel]: validValue,\n };\n\n setRgbValues(newRgbValues);\n\n // Convert RGB to hex and call onChange\n const hexColor = `#${newRgbValues.r.toString(16).padStart(2, '0')}${newRgbValues.g.toString(16).padStart(2, '0')}${newRgbValues.b.toString(16).padStart(2, '0')}`;\n onChange(hexColor);\n };\n\n return (\n <div className=\"ndl-color-picker-rgb-inputs\">\n <TextInput\n size=\"small\"\n className=\"ndl-color-picker-rgb-input\"\n value={rgbValues.r.toString()}\n onChange={(event) => handleChange('r', event)}\n htmlAttributes={{\n 'aria-label': 'Red',\n max: '255',\n min: '0',\n type: 'number',\n }}\n />\n <TextInput\n size=\"small\"\n className=\"ndl-color-picker-rgb-input\"\n value={rgbValues.g.toString()}\n onChange={(event) => handleChange('g', event)}\n htmlAttributes={{\n 'aria-label': 'Green',\n max: '255',\n min: '0',\n type: 'number',\n }}\n />\n <TextInput\n size=\"small\"\n className=\"ndl-color-picker-rgb-input\"\n value={rgbValues.b.toString()}\n onChange={(event) => handleChange('b', event)}\n htmlAttributes={{\n 'aria-label': 'Blue',\n max: '255',\n min: '0',\n type: 'number',\n }}\n />\n </div>\n );\n};\n\nconst Swatch = ({\n colors,\n onChange,\n hsva,\n}: {\n colors: (HsvaColor | RgbaColor | HexColor)[];\n hsva: HsvaColor;\n onChange: (newColor: HsvaColor) => void;\n}) => {\n return (\n <div className=\"ndl-color-picker-swatch\">\n {colors.map((color) => {\n const hexColor =\n typeof color === 'string'\n ? color\n : typeof color === 'object' && 'r' in color\n ? rgbaToHex(color)\n : hsvaToHex(color);\n const hsvaColor =\n typeof color === 'string'\n ? hexToHsva(color)\n : 'r' in color\n ? rgbaToHsva(color)\n : color;\n\n const isActive =\n hsva.h === hsvaColor.h &&\n hsva.s === hsvaColor.s &&\n hsva.v === hsvaColor.v;\n\n return (\n <button\n type=\"button\"\n key={hexColor}\n aria-label={hexColor}\n className={classNames('ndl-color-picker-swatch-color', {\n 'ndl-color-picker-swatch-color-active': isActive,\n })}\n style={{ backgroundColor: hsvaToHex(hsvaColor) }}\n onClick={() => onChange(hsvaColor)}\n />\n );\n })}\n </div>\n );\n};\nconst Pointer = ({\n prefixCls,\n left,\n top,\n hsva,\n}: PointerProps & { hsva: HsvaColor }) => {\n const rgba = hsvaToRgba(hsva);\n return (\n <div\n style={{\n backgroundColor: `rgba(${rgba.r}, ${rgba.g}, ${rgba.b}, ${rgba.a})`,\n left,\n top,\n }}\n className={classNames(prefixCls, 'ndl-color-picker-pointer')}\n />\n );\n};\n"]}
1
+ {"version":3,"file":"ColorPicker.js","sourceRoot":"","sources":["../../../src/color-picker/ColorPicker.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,qBAAqB,CAAC;AAE7B,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAEL,SAAS,EAET,SAAS,EACT,UAAU,EACV,GAAG,EAGH,SAAS,EACT,UAAU,EACV,UAAU,EACV,QAAQ,GACT,MAAM,kBAAkB,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjE,OAAO,EAAE,eAAe,EAAE,MAAM,sBA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zB,OAAO,CACL,iBACE,IAAI,EAAC,QAAQ,gBAED,QAAQ,EACpB,SAAS,EAAE,UAAU,CAAC,+BAA+B,EAAE;oBACrD,sCAAsC,EAAE,QAAQ;iBACjD,CAAC,EACF,KAAK,EAAE,EAAE,eAAe,EAAE,SAAS,CAAC,SAAS,CAAC,EAAE,EAChD,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,IAN7B,QAAQ,CAOb,CACH,CAAC;QACJ,CAAC,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AACF,MAAM,OAAO,GAAG,CAAC,EACf,SAAS,EACT,IAAI,EACJ,GAAG,EACH,IAAI,GAC+B,EAAE,EAAE;IACvC,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;IAC9B,OAAO,CACL,cACE,KAAK,EAAE;YACL,eAAe,EAAE,QAAQ,IAAI,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG;YACnE,IAAI;YACJ,GAAG;SACJ,EACD,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,0BAA0B,CAAC,GAC5D,CACH,CAAC;AACJ,CAAC,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 'eyedropper-polyfill';\n\nimport { tokens } from '@neo4j-ndl/base';\nimport {\n type HexColor,\n hexToHsva,\n type HsvaColor,\n hsvaToHex,\n hsvaToRgba,\n Hue,\n type PointerProps,\n type RgbaColor,\n rgbaToHex,\n rgbaToHsva,\n Saturation,\n validHex,\n} from '@uiw/react-color';\nimport classNames from 'classnames';\nimport { forwardRef, useEffect, useMemo, useState } from 'react';\n\nimport { CleanIconButton } from '../clean-icon-button';\nimport { EyeDropperIconOutline } from '../icons/generated/heroIcons/EyeDropperIconOutline';\nimport { Select } from '../select';\nimport { TextInput } from '../text-input';\n\n/**\n * @remarks\n * By default the `swatches` prop is set to the available graph colors (`tokens.graph`) from `@neo4j-ndl/base`.\n *\n * @remarks\n * Where `HsvaColor`, `RgbaColor`, and `HexColor` types are from `@uiw/react-color`, and represent different color formats:\n *\n * - `HexColor`: A string in the format `#RRGGBB` (e.g., `#ff0000`).\n * - `RgbaColor`: An object with numeric properties `{ r, g, b, a }` for red, green, blue (0–255), and alpha (0–1).\n * - `HsvaColor`: An object with numeric properties `{ h, s, v, a }` for hue (0–360), saturation (0–100), value (0–100), and alpha (0–1).\n *\n * Visit [react-color](https://uiwjs.github.io/react-color/#/) for more information.\n */\ntype ColorPickerProps = {\n /** The current color value. Can be provided in HSVA, RGBA, or Hex format. The component will automatically convert between formats as needed. */\n color: HsvaColor | RgbaColor | HexColor;\n /** Optional array of predefined color swatches for quick selection. Each swatch can be in HSVA, RGBA, or Hex format. */\n swatches?: (HsvaColor | RgbaColor | HexColor)[];\n /** Whether to display the eye dropper tool that allows users to sample colors from anywhere on the screen. */\n shouldShowEyeDropper?: boolean;\n /** Callback function triggered when the color value changes. Receives an object containing the new color in all three formats (hex, rgb, hsva) for convenience. */\n onChange: (newColor: {\n hex: HexColor;\n rgb: RgbaColor;\n hsva: HsvaColor;\n }) => void;\n /** Additional class name to apply to the root color picker container. */\n className?: string;\n /** Additional inline styles to apply to the root color picker container. */\n style?: React.CSSProperties;\n\n /** The target element to portal the menu to. If not provided, the menu will not be portaled. */\n portalTarget?: HTMLElement | null;\n /** The floating strategy to use for the menu. If not provided, the menu will be positioned absolutely. */\n floatingStrategy?: 'absolute' | 'fixed';\n};\n\nexport const ColorPicker = forwardRef<HTMLDivElement, ColorPickerProps>(\n function ColorPicker(\n {\n color,\n onChange,\n swatches = Object.values(tokens.graph).filter(validHex),\n shouldShowEyeDropper = true,\n className,\n style,\n portalTarget,\n floatingStrategy = 'absolute',\n },\n ref,\n ) {\n const [isEyeDropperActiveState, setIsEyeDropperActiveState] =\n useState(false);\n\n const derivedHsva = useMemo(() => {\n if (typeof color === 'string') {\n return hexToHsva(color);\n }\n if (typeof color === 'object' && 'r' in color) {\n return rgbaToHsva(color);\n }\n return { h: 0, s: 0, v: 0, ...(color as object), a: 1 } as HsvaColor; // oxlint-disable-line id-length\n }, [color]);\n\n const [hsva, setHsva] = useState<HsvaColor>(derivedHsva);\n\n const [format, setFormat] = useState<{\n label: string;\n value: string;\n }>({\n label: 'Hex',\n value: 'hex',\n });\n\n const isEyeDropperActive = 'EyeDropper' in window && shouldShowEyeDropper;\n\n const handleChange = (hsva: HsvaColor) => {\n setHsva(hsva);\n const hex = hsvaToHex(hsva);\n const rgb = hsvaToRgba(hsva);\n onChange({\n // used since typescript cannot infer the type of the color\n hex: `#${hex.split('#')[1]}`,\n hsva,\n rgb,\n });\n };\n\n return (\n <div\n ref={ref}\n className={classNames('ndl-color-picker', className)}\n style={style}\n >\n <Saturation\n hsva={hsva}\n className=\"ndl-color-picker-saturation\"\n onChange={(newColor) => {\n handleChange({ ...hsva, ...newColor, a: hsva.a }); // oxlint-disable-line id-length\n }}\n pointer={({ left, top, ...props }) => (\n <Pointer\n left={left?.toString()}\n top={top?.toString()}\n {...props}\n hsva={hsva}\n />\n )}\n radius={tokens.borderRadius['lg']}\n />\n <Swatch\n colors={swatches}\n hsva={hsva}\n onChange={(newColor) => {\n handleChange(newColor);\n }}\n />\n\n <div className=\"ndl-color-picker-hue-container\">\n {isEyeDropperActive && (\n <CleanIconButton\n size=\"small\"\n isActive={isEyeDropperActiveState}\n onClick={() => {\n setIsEyeDropperActiveState(true);\n const eyeDropper = new window.EyeDropper();\n eyeDropper\n .open()\n .then((result: { sRGBHex: string }) => {\n handleChange(hexToHsva(result.sRGBHex));\n })\n .catch((err: Error) => {\n console.error(err);\n })\n .finally(() => {\n setIsEyeDropperActiveState(false);\n });\n }}\n description=\"Pick color from the screen with eye dropper tool\"\n >\n <EyeDropperIconOutline />\n </CleanIconButton>\n )}\n <Hue\n className=\"ndl-color-picker-hue\"\n hue={hsva.h}\n onChange={(newHue) => {\n handleChange({ ...hsva, h: newHue.h }); // oxlint-disable-line id-length\n }}\n radius={tokens.borderRadius['lg']}\n pointer={(props) => (\n <Pointer\n {...props}\n hsva={{\n a: 1, // oxlint-disable-line id-length\n h: hsva.h, // oxlint-disable-line id-length\n s: 100, // oxlint-disable-line id-length\n v: 100, // oxlint-disable-line id-length\n }}\n />\n )}\n />\n </div>\n\n <div className=\"ndl-color-picker-inputs\">\n <Select\n size=\"small\"\n type=\"select\"\n ariaLabel=\"Color format\"\n style={{\n flexShrink: 0,\n }}\n selectProps={{\n isSearchable: false,\n menuPortalTarget: portalTarget,\n menuPosition: floatingStrategy,\n onChange: (newFormat) => {\n if (!newFormat) {\n return;\n }\n setFormat({\n label: newFormat.label,\n value: newFormat.value,\n });\n },\n options: [\n {\n label: 'Hex',\n value: 'hex',\n },\n {\n label: 'RGB',\n value: 'rgb',\n },\n ],\n value: { label: format.label, value: format.value },\n }}\n />\n {format.value === 'hex' && (\n <HexInput\n hsva={hsva}\n onChange={(newColor) => {\n handleChange(hexToHsva(newColor));\n }}\n />\n )}\n {format.value === 'rgb' && (\n <RgbInput\n hsva={hsva}\n onChange={(newColor) => {\n handleChange(hexToHsva(newColor));\n }}\n />\n )}\n </div>\n </div>\n );\n },\n);\n\nconst removeHashPrefix = (hex: string): string => hex.replace('#', '');\n\nconst HexInput = ({\n hsva,\n onChange,\n}: {\n hsva: HsvaColor;\n onChange: (newColor: string) => void;\n}) => {\n const [inputValue, setInputValue] = useState<string>(() =>\n removeHashPrefix(hsvaToHex(hsva)),\n );\n\n // Update input value when hsva changes from outside\n useEffect(() => {\n setInputValue(removeHashPrefix(hsvaToHex(hsva)));\n }, [hsva]);\n\n const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n const value = removeHashPrefix(event.target.value);\n\n // Always update the input value for immediate feedback\n setInputValue(value);\n\n // Check if the input is a valid hex color (only 6 characters)\n const isValidHex = /^[0-9A-Fa-f]{6}$/.test(value);\n\n if (isValidHex) {\n onChange(`#${value}`);\n }\n };\n\n const hexValue = hsvaToHex(hsva);\n\n return (\n <TextInput\n size=\"small\"\n value={inputValue}\n leadingElement={\n <div className=\"ndl-color-picker-hex-input-prefix\">#</div>\n }\n onChange={handleChange}\n isFluid\n htmlAttributes={{\n 'aria-label': 'Hex color code',\n maxLength: 6,\n onCopy: (event) => {\n event.preventDefault();\n navigator.clipboard.writeText(hexValue);\n },\n }}\n />\n );\n};\n\nconst RgbInput = ({\n hsva,\n onChange,\n}: {\n hsva: HsvaColor;\n onChange: (newColor: string) => void;\n}) => {\n const rgba = hsvaToRgba(hsva);\n const [rgbValues, setRgbValues] = useState({\n b: rgba.b, // oxlint-disable-line id-length\n g: rgba.g, // oxlint-disable-line id-length\n r: rgba.r, // oxlint-disable-line id-length\n });\n\n // Update input values when hsva changes from outside\n useEffect(() => {\n const newRgba = hsvaToRgba(hsva);\n setRgbValues({\n b: newRgba.b, // oxlint-disable-line id-length\n g: newRgba.g, // oxlint-disable-line id-length\n r: newRgba.r, // oxlint-disable-line id-length\n });\n }, [hsva]);\n\n const handleChange = (\n channel: 'r' | 'g' | 'b',\n event: React.ChangeEvent<HTMLInputElement>,\n ) => {\n const value = parseInt(event.target.value, 10);\n\n // Validate the input is a number between 0-255\n const validValue = isNaN(value) ? 0 : Math.max(0, Math.min(255, value));\n\n const newRgbValues = {\n ...rgbValues,\n [channel]: validValue,\n };\n\n setRgbValues(newRgbValues);\n\n // Convert RGB to hex and call onChange\n const hexColor = `#${newRgbValues.r.toString(16).padStart(2, '0')}${newRgbValues.g.toString(16).padStart(2, '0')}${newRgbValues.b.toString(16).padStart(2, '0')}`;\n onChange(hexColor);\n };\n\n return (\n <div className=\"ndl-color-picker-rgb-inputs\">\n <TextInput\n size=\"small\"\n className=\"ndl-color-picker-rgb-input\"\n value={rgbValues.r.toString()}\n onChange={(event) => handleChange('r', event)}\n htmlAttributes={{\n 'aria-label': 'Red',\n max: '255',\n min: '0',\n type: 'number',\n }}\n />\n <TextInput\n size=\"small\"\n className=\"ndl-color-picker-rgb-input\"\n value={rgbValues.g.toString()}\n onChange={(event) => handleChange('g', event)}\n htmlAttributes={{\n 'aria-label': 'Green',\n max: '255',\n min: '0',\n type: 'number',\n }}\n />\n <TextInput\n size=\"small\"\n className=\"ndl-color-picker-rgb-input\"\n value={rgbValues.b.toString()}\n onChange={(event) => handleChange('b', event)}\n htmlAttributes={{\n 'aria-label': 'Blue',\n max: '255',\n min: '0',\n type: 'number',\n }}\n />\n </div>\n );\n};\n\nconst Swatch = ({\n colors,\n onChange,\n hsva,\n}: {\n colors: (HsvaColor | RgbaColor | HexColor)[];\n hsva: HsvaColor;\n onChange: (newColor: HsvaColor) => void;\n}) => {\n return (\n <div className=\"ndl-color-picker-swatch\">\n {colors.map((color) => {\n const hexColor =\n typeof color === 'string'\n ? color\n : typeof color === 'object' && 'r' in color\n ? rgbaToHex(color)\n : hsvaToHex(color);\n const hsvaColor =\n typeof color === 'string'\n ? hexToHsva(color)\n : 'r' in color\n ? rgbaToHsva(color)\n : color;\n\n const isActive =\n hsva.h === hsvaColor.h &&\n hsva.s === hsvaColor.s &&\n hsva.v === hsvaColor.v;\n\n return (\n <button\n type=\"button\"\n key={hexColor}\n aria-label={hexColor}\n className={classNames('ndl-color-picker-swatch-color', {\n 'ndl-color-picker-swatch-color-active': isActive,\n })}\n style={{ backgroundColor: hsvaToHex(hsvaColor) }}\n onClick={() => onChange(hsvaColor)}\n />\n );\n })}\n </div>\n );\n};\nconst Pointer = ({\n prefixCls,\n left,\n top,\n hsva,\n}: PointerProps & { hsva: HsvaColor }) => {\n const rgba = hsvaToRgba(hsva);\n return (\n <div\n style={{\n backgroundColor: `rgba(${rgba.r}, ${rgba.g}, ${rgba.b}, ${rgba.a})`,\n left,\n top,\n }}\n className={classNames(prefixCls, 'ndl-color-picker-pointer')}\n />\n );\n};\n"]}
@@ -32,7 +32,7 @@ const Component = () => {
32
32
  g: 0, // oxlint-disable-line id-length
33
33
  r: 0, // oxlint-disable-line id-length
34
34
  });
35
- return (_jsxs("div", { className: "n-flex n-items-center n-justify-centern-w-full", children: [_jsx(FilledButton, { onClick: handleClick, htmlAttributes: { 'aria-haspopup': 'dialog' }, children: "Open Dialog" }), _jsxs(Dialog, { onClose: handleClose, isOpen: isOpen, children: [_jsx(Dialog.Header, { children: "Header" }), _jsx(Dialog.Content, { className: "n-max-h-96 n-overflow-y-auto", children: _jsx(ColorPicker, { color: color, onChange: (newColor) => setColor(newColor.rgb), floatingStrategy: "fixed" }) })] })] }));
35
+ return (_jsxs("div", { className: "flex items-center justify-centern-w-full", children: [_jsx(FilledButton, { onClick: handleClick, htmlAttributes: { 'aria-haspopup': 'dialog' }, children: "Open Dialog" }), _jsxs(Dialog, { onClose: handleClose, isOpen: isOpen, children: [_jsx(Dialog.Header, { children: "Header" }), _jsx(Dialog.Content, { className: "max-h-96 overflow-y-auto", children: _jsx(ColorPicker, { color: color, onChange: (newColor) => setColor(newColor.rgb), floatingStrategy: "fixed" }) })] })] }));
36
36
  };
37
37
  export default Component;
38
38
  //# sourceMappingURL=color-picker-dialog.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"color-picker-dialog.story.js","sourceRoot":"","sources":["../../../../src/color-picker/stories/color-picker-dialog.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAC;IACrD,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;IACrD,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAE3C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC;QACjC,CAAC,EAAE,CAAC,EAAE,gCAAgC;QACtC,CAAC,EAAE,CAAC,EAAE,gCAAgC;QACtC,CAAC,EAAE,CAAC,EAAE,gCAAgC;QACtC,CAAC,EAAE,CAAC,EAAE,gCAAgC;KACvC,CAAC,CAAC;IAEH,OAAO,CACL,eAAK,SAAS,EAAC,gDAAgD,aAC7D,KAAC,YAAY,IACX,OAAO,EAAE,WAAW,EACpB,cAAc,EAAE,EAAE,eAAe,EAAE,QAAQ,EAAE,4BAGhC,EACf,MAAC,MAAM,IAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,aAC1C,KAAC,MAAM,CAAC,MAAM,yBAAuB,EACrC,KAAC,MAAM,CAAC,OAAO,IAAC,SAAS,EAAC,8BAA8B,YACtD,KAAC,WAAW,IACV,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,EAC9C,gBAAgB,EAAC,OAAO,GACxB,GACa,IACV,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,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 { ColorPicker, Dialog, FilledButton } from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [isOpen, setIsOpen] = useState<boolean>(false);\n const handleClick = () => setIsOpen((prev) => !prev);\n const handleClose = () => setIsOpen(false);\n\n const [color, setColor] = useState({\n a: 1, // oxlint-disable-line id-length\n b: 0, // oxlint-disable-line id-length\n g: 0, // oxlint-disable-line id-length\n r: 0, // oxlint-disable-line id-length\n });\n\n return (\n <div className=\"n-flex n-items-center n-justify-centern-w-full\">\n <FilledButton\n onClick={handleClick}\n htmlAttributes={{ 'aria-haspopup': 'dialog' }}\n >\n Open Dialog\n </FilledButton>\n <Dialog onClose={handleClose} isOpen={isOpen}>\n <Dialog.Header>Header</Dialog.Header>\n <Dialog.Content className=\"n-max-h-96 n-overflow-y-auto\">\n <ColorPicker\n color={color}\n onChange={(newColor) => setColor(newColor.rgb)}\n floatingStrategy=\"fixed\"\n />\n </Dialog.Content>\n </Dialog>\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"color-picker-dialog.story.js","sourceRoot":"","sources":["../../../../src/color-picker/stories/color-picker-dialog.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAC;IACrD,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;IACrD,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAE3C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC;QACjC,CAAC,EAAE,CAAC,EAAE,gCAAgC;QACtC,CAAC,EAAE,CAAC,EAAE,gCAAgC;QACtC,CAAC,EAAE,CAAC,EAAE,gCAAgC;QACtC,CAAC,EAAE,CAAC,EAAE,gCAAgC;KACvC,CAAC,CAAC;IAEH,OAAO,CACL,eAAK,SAAS,EAAC,0CAA0C,aACvD,KAAC,YAAY,IACX,OAAO,EAAE,WAAW,EACpB,cAAc,EAAE,EAAE,eAAe,EAAE,QAAQ,EAAE,4BAGhC,EACf,MAAC,MAAM,IAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,aAC1C,KAAC,MAAM,CAAC,MAAM,yBAAuB,EACrC,KAAC,MAAM,CAAC,OAAO,IAAC,SAAS,EAAC,0BAA0B,YAClD,KAAC,WAAW,IACV,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,EAC9C,gBAAgB,EAAC,OAAO,GACxB,GACa,IACV,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,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 { ColorPicker, Dialog, FilledButton } from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [isOpen, setIsOpen] = useState<boolean>(false);\n const handleClick = () => setIsOpen((prev) => !prev);\n const handleClose = () => setIsOpen(false);\n\n const [color, setColor] = useState({\n a: 1, // oxlint-disable-line id-length\n b: 0, // oxlint-disable-line id-length\n g: 0, // oxlint-disable-line id-length\n r: 0, // oxlint-disable-line id-length\n });\n\n return (\n <div className=\"flex items-center justify-centern-w-full\">\n <FilledButton\n onClick={handleClick}\n htmlAttributes={{ 'aria-haspopup': 'dialog' }}\n >\n Open Dialog\n </FilledButton>\n <Dialog onClose={handleClose} isOpen={isOpen}>\n <Dialog.Header>Header</Dialog.Header>\n <Dialog.Content className=\"max-h-96 overflow-y-auto\">\n <ColorPicker\n color={color}\n onChange={(newColor) => setColor(newColor.rgb)}\n floatingStrategy=\"fixed\"\n />\n </Dialog.Content>\n </Dialog>\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -22,7 +22,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
22
  import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
23
  import { ColorPicker, FilledButton, Popover } from '@neo4j-ndl/react';
24
24
  const Component = () => {
25
- return (_jsxs(Popover, { children: [_jsx(Popover.Trigger, { hasButtonWrapper: true, children: _jsx(FilledButton, { children: "Open Popover" }) }), _jsxs(Popover.Content, { className: "n-overflow-y-auto n-overflow-x-hidden n-p-4 n-max-h-64", children: ["Popover content", _jsx(ColorPicker, { color: "#ff0000", onChange: () => {
25
+ return (_jsxs(Popover, { children: [_jsx(Popover.Trigger, { hasButtonWrapper: true, children: _jsx(FilledButton, { children: "Open Popover" }) }), _jsxs(Popover.Content, { className: "overflow-y-auto overflow-x-hidden p-4 max-h-64", children: ["Popover content", _jsx(ColorPicker, { color: "#ff0000", onChange: () => {
26
26
  console.info('color changed');
27
27
  }, floatingStrategy: "fixed", portalTarget: document.body })] })] }));
28
28
  };
@@ -1 +1 @@
1
- {"version":3,"file":"color-picker-popover.story.js","sourceRoot":"","sources":["../../../../src/color-picker/stories/color-picker-popover.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEtE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,MAAC,OAAO,eACN,KAAC,OAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,KAAC,YAAY,+BAA4B,GACzB,EAClB,MAAC,OAAO,CAAC,OAAO,IAAC,SAAS,EAAC,wDAAwD,gCAEjF,KAAC,WAAW,IACV,KAAK,EAAC,SAAS,EACf,QAAQ,EAAE,GAAG,EAAE;4BACb,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;wBAChC,CAAC,EACD,gBAAgB,EAAC,OAAO,EACxB,YAAY,EAAE,QAAQ,CAAC,IAAI,GAC3B,IACc,IACV,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,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 { ColorPicker, 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-overflow-y-auto n-overflow-x-hidden n-p-4 n-max-h-64\">\n Popover content\n <ColorPicker\n color=\"#ff0000\"\n onChange={() => {\n console.info('color changed');\n }}\n floatingStrategy=\"fixed\"\n portalTarget={document.body}\n />\n </Popover.Content>\n </Popover>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"color-picker-popover.story.js","sourceRoot":"","sources":["../../../../src/color-picker/stories/color-picker-popover.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEtE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,MAAC,OAAO,eACN,KAAC,OAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,KAAC,YAAY,+BAA4B,GACzB,EAClB,MAAC,OAAO,CAAC,OAAO,IAAC,SAAS,EAAC,gDAAgD,gCAEzE,KAAC,WAAW,IACV,KAAK,EAAC,SAAS,EACf,QAAQ,EAAE,GAAG,EAAE;4BACb,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;wBAChC,CAAC,EACD,gBAAgB,EAAC,OAAO,EACxB,YAAY,EAAE,QAAQ,CAAC,IAAI,GAC3B,IACc,IACV,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,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 { ColorPicker, 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=\"overflow-y-auto overflow-x-hidden p-4 max-h-64\">\n Popover content\n <ColorPicker\n color=\"#ff0000\"\n onChange={() => {\n console.info('color changed');\n }}\n floatingStrategy=\"fixed\"\n portalTarget={document.body}\n />\n </Popover.Content>\n </Popover>\n );\n};\n\nexport default Component;\n"]}
@@ -55,7 +55,7 @@ const Component = () => {
55
55
  const [terminalValue, setTerminalValue] = useState('');
56
56
  const [searchValue, setSearchValue] = useState('');
57
57
  const textAreaRef = useRef(null);
58
- return (_jsxs("div", { className: "n-flex n-gap-token-2 n-items-center", children: [_jsx(TextArea, { ref: textAreaRef, label: "Command input", value: terminalValue, htmlAttributes: {
58
+ return (_jsxs("div", { className: "flex gap-token-2 items-center", children: [_jsx(TextArea, { ref: textAreaRef, label: "Command input", value: terminalValue, htmlAttributes: {
59
59
  onChange: (event) => setTerminalValue(event.target.value),
60
60
  rows: 5,
61
61
  }, helpText: "Use the button below to search for a command." }), _jsx(Combobox, { label: "Insert command", options: commands, searchPlaceholder: "Search commands", searchValue: searchValue, onSearchChange: setSearchValue,
@@ -1 +1 @@
1
- {"version":3,"file":"combobox-action-on-select.story.js","sourceRoot":"","sources":["../../../../src/combobox/stories/combobox-action-on-select.story.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEzC,MAAM,QAAQ,GAAG;IACf;QACE,WAAW,EAAE,gCAAgC;QAC7C,KAAK,EAAE,aAAa;QACpB,KAAK,EAAE,6BAA6B;KACrC;IACD;QACE,WAAW,EAAE,mDAAmD;QAChE,KAAK,EAAE,kBAAkB;QACzB,KAAK,EAAE,gCAAgC;KACxC;IACD;QACE,WAAW,EAAE,gDAAgD;QAC7D,KAAK,EAAE,cAAc;QACrB,KAAK,EAAE,cAAc;KACtB;CACF,CAAC;AAEF,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACvD,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACnD,MAAM,WAAW,GAAG,MAAM,CAAsB,IAAI,CAAC,CAAC;IACtD,OAAO,CACL,eAAK,SAAS,EAAC,qCAAqC,aAClD,KAAC,QAAQ,IACP,GAAG,EAAE,WAAW,EAChB,KAAK,EAAC,eAAe,EACrB,KAAK,EAAE,aAAa,EACpB,cAAc,EAAE;oBACd,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,gBAAgB,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;oBACzD,IAAI,EAAE,CAAC;iBACR,EACD,QAAQ,EAAC,+CAA+C,GACxD,EACF,KAAC,QAAQ,IACP,KAAK,EAAC,gBAAgB,EACtB,OAAO,EAAE,QAAQ,EACjB,iBAAiB,EAAC,iBAAiB,EACnC,WAAW,EAAE,WAAW,EACxB,cAAc,EAAE,cAAc;gBAC9B,kEAAkE;gBAClE,yEAAyE;gBACzE,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,CAAC,OAAO,EAAE,EAAE;;oBACpB,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;wBACrB,OAAO;oBACT,CAAC;oBAED,gBAAgB,CAAC,CAAC,YAAY,EAAE,EAAE,CAChC,YAAY,KAAK,EAAE;wBACjB,CAAC,CAAC,OAAO,CAAC,KAAK;wBACf,CAAC,CAAC,GAAG,YAAY,KAAK,OAAO,CAAC,KAAK,EAAE,CACxC,CAAC;oBACF,cAAc,CAAC,EAAE,CAAC,CAAC;oBACnB,MAAA,WAAW,CAAC,OAAO,0CAAE,KAAK,EAAE,CAAC;gBAC/B,CAAC,EACD,aAAa,EAAE,CAAC,EAAwB,EAAE,EAAE;wBAA5B,EAAE,GAAG,OAAmB,EAAd,YAAY,cAAtB,OAAwB,CAAF;oBAAO,OAAA,CAC3C,KAAC,UAAU,IACT,GAAG,EAAE,GAAmC,EACxC,WAAW,EAAC,gBAAgB,EAC5B,cAAc,EAAE,YAAY,YAE5B,KAAC,sBAAsB,KAAG,GACf,CACd,CAAA;iBAAA,GACD,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,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 { Combobox, IconButton, TextArea } from '@neo4j-ndl/react';\nimport { CommandLineIconOutline } from '@neo4j-ndl/react/icons';\nimport { useRef, useState } from 'react';\n\nconst commands = [\n {\n description: 'Return a small sample of nodes',\n label: 'Match nodes',\n value: 'MATCH (n) RETURN n LIMIT 25',\n },\n {\n description: 'Show the labels and relationships in the database',\n label: 'Visualize schema',\n value: 'CALL db.schema.visualization()',\n },\n {\n description: 'List the indexes available to the current user',\n label: 'Show indexes',\n value: 'SHOW INDEXES',\n },\n];\n\nconst Component = () => {\n const [terminalValue, setTerminalValue] = useState('');\n const [searchValue, setSearchValue] = useState('');\n const textAreaRef = useRef<HTMLTextAreaElement>(null);\n return (\n <div className=\"n-flex n-gap-token-2 n-items-center\">\n <TextArea\n ref={textAreaRef}\n label=\"Command input\"\n value={terminalValue}\n htmlAttributes={{\n onChange: (event) => setTerminalValue(event.target.value),\n rows: 5,\n }}\n helpText=\"Use the button below to search for a command.\"\n />\n <Combobox\n label=\"Insert command\"\n options={commands}\n searchPlaceholder=\"Search commands\"\n searchValue={searchValue}\n onSearchChange={setSearchValue}\n // The picker activates an option but never keeps it as its value.\n // Keeping the controlled value empty avoids a persistent selected state.\n value={null}\n onChange={(command) => {\n if (command === null) {\n return;\n }\n\n setTerminalValue((currentValue) =>\n currentValue === ''\n ? command.value\n : `${currentValue}\\n${command.value}`,\n );\n setSearchValue('');\n textAreaRef.current?.focus();\n }}\n renderTrigger={({ ref, ...triggerProps }) => (\n <IconButton\n ref={ref as React.Ref<HTMLButtonElement>}\n description=\"Insert command\"\n htmlAttributes={triggerProps}\n >\n <CommandLineIconOutline />\n </IconButton>\n )}\n />\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"combobox-action-on-select.story.js","sourceRoot":"","sources":["../../../../src/combobox/stories/combobox-action-on-select.story.t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AiB,EAAC,iBAAiB,EACnC,WAAW,EAAE,WAAW,EACxB,cAAc,EAAE,cAAc;gBAC9B,kEAAkE;gBAClE,yEAAyE;gBACzE,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,CAAC,OAAO,EAAE,EAAE;;oBACpB,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;wBACrB,OAAO;oBACT,CAAC;oBAED,gBAAgB,CAAC,CAAC,YAAY,EAAE,EAAE,CAChC,YAAY,KAAK,EAAE;wBACjB,CAAC,CAAC,OAAO,CAAC,KAAK;wBACf,CAAC,CAAC,GAAG,YAAY,KAAK,OAAO,CAAC,KAAK,EAAE,CACxC,CAAC;oBACF,cAAc,CAAC,EAAE,CAAC,CAAC;oBACnB,MAAA,WAAW,CAAC,OAAO,0CAAE,KAAK,EAAE,CAAC;gBAC/B,CAAC,EACD,aAAa,EAAE,CAAC,EAAwB,EAAE,EAAE;wBAA5B,EAAE,GAAG,OAAmB,EAAd,YAAY,cAAtB,OAAwB,CAAF;oBAAO,OAAA,CAC3C,KAAC,UAAU,IACT,GAAG,EAAE,GAAmC,EACxC,WAAW,EAAC,gBAAgB,EAC5B,cAAc,EAAE,YAAY,YAE5B,KAAC,sBAAsB,KAAG,GACf,CACd,CAAA;iBAAA,GACD,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,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 { Combobox, IconButton, TextArea } from '@neo4j-ndl/react';\nimport { CommandLineIconOutline } from '@neo4j-ndl/react/icons';\nimport { useRef, useState } from 'react';\n\nconst commands = [\n {\n description: 'Return a small sample of nodes',\n label: 'Match nodes',\n value: 'MATCH (n) RETURN n LIMIT 25',\n },\n {\n description: 'Show the labels and relationships in the database',\n label: 'Visualize schema',\n value: 'CALL db.schema.visualization()',\n },\n {\n description: 'List the indexes available to the current user',\n label: 'Show indexes',\n value: 'SHOW INDEXES',\n },\n];\n\nconst Component = () => {\n const [terminalValue, setTerminalValue] = useState('');\n const [searchValue, setSearchValue] = useState('');\n const textAreaRef = useRef<HTMLTextAreaElement>(null);\n return (\n <div className=\"flex gap-token-2 items-center\">\n <TextArea\n ref={textAreaRef}\n label=\"Command input\"\n value={terminalValue}\n htmlAttributes={{\n onChange: (event) => setTerminalValue(event.target.value),\n rows: 5,\n }}\n helpText=\"Use the button below to search for a command.\"\n />\n <Combobox\n label=\"Insert command\"\n options={commands}\n searchPlaceholder=\"Search commands\"\n searchValue={searchValue}\n onSearchChange={setSearchValue}\n // The picker activates an option but never keeps it as its value.\n // Keeping the controlled value empty avoids a persistent selected state.\n value={null}\n onChange={(command) => {\n if (command === null) {\n return;\n }\n\n setTerminalValue((currentValue) =>\n currentValue === ''\n ? command.value\n : `${currentValue}\\n${command.value}`,\n );\n setSearchValue('');\n textAreaRef.current?.focus();\n }}\n renderTrigger={({ ref, ...triggerProps }) => (\n <IconButton\n ref={ref as React.Ref<HTMLButtonElement>}\n description=\"Insert command\"\n htmlAttributes={triggerProps}\n >\n <CommandLineIconOutline />\n </IconButton>\n )}\n />\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -50,7 +50,7 @@ const options = [
50
50
  { label: 'Digital twin', value: 'digital-twin' },
51
51
  ];
52
52
  const Component = () => {
53
- return (_jsx("div", { className: "n-flex n-flex-col n-gap-token-4", children: _jsx(Combobox, { label: "Project", placeholder: "Select project", searchPlaceholder: "Search projects", options: options,
53
+ return (_jsx("div", { className: "flex flex-col gap-token-4", children: _jsx(Combobox, { label: "Project", placeholder: "Select project", searchPlaceholder: "Search projects", options: options,
54
54
  // An action never becomes part of the value. It runs, the panel closes,
55
55
  // and the selection is left as it was, which is what makes it usable for
56
56
  // leaving the combobox entirely.