@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
@@ -24,7 +24,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
24
24
  require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
25
  const react_1 = require("@neo4j-ndl/react");
26
26
  const Component = () => {
27
- return ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-col n-gap-token-8", children: [(0, jsx_runtime_1.jsxs)(react_1.Banner, { variant: "info", children: [(0, jsx_runtime_1.jsx)(react_1.Banner.Header, { children: "Info" }), (0, jsx_runtime_1.jsx)(react_1.Banner.Description, { children: "This is a banner of type info." })] }), (0, jsx_runtime_1.jsxs)(react_1.Banner, { variant: "success", children: [(0, jsx_runtime_1.jsx)(react_1.Banner.Header, { children: "Success" }), (0, jsx_runtime_1.jsx)(react_1.Banner.Description, { children: "This is a banner of type success." })] }), (0, jsx_runtime_1.jsxs)(react_1.Banner, { variant: "warning", children: [(0, jsx_runtime_1.jsx)(react_1.Banner.Header, { children: "Warning" }), (0, jsx_runtime_1.jsx)(react_1.Banner.Description, { children: "This is a banner of type warning." })] }), (0, jsx_runtime_1.jsxs)(react_1.Banner, { variant: "danger", children: [(0, jsx_runtime_1.jsx)(react_1.Banner.Header, { children: "Danger" }), (0, jsx_runtime_1.jsx)(react_1.Banner.Description, { children: "This is a banner of type danger." })] }), (0, jsx_runtime_1.jsxs)(react_1.Banner, { variant: "neutral", children: [(0, jsx_runtime_1.jsx)(react_1.Banner.Header, { children: "Neutral" }), (0, jsx_runtime_1.jsx)(react_1.Banner.Description, { children: "This is a banner of type neutral." })] })] }));
27
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-token-8", children: [(0, jsx_runtime_1.jsxs)(react_1.Banner, { variant: "info", children: [(0, jsx_runtime_1.jsx)(react_1.Banner.Header, { children: "Info" }), (0, jsx_runtime_1.jsx)(react_1.Banner.Description, { children: "This is a banner of type info." })] }), (0, jsx_runtime_1.jsxs)(react_1.Banner, { variant: "success", children: [(0, jsx_runtime_1.jsx)(react_1.Banner.Header, { children: "Success" }), (0, jsx_runtime_1.jsx)(react_1.Banner.Description, { children: "This is a banner of type success." })] }), (0, jsx_runtime_1.jsxs)(react_1.Banner, { variant: "warning", children: [(0, jsx_runtime_1.jsx)(react_1.Banner.Header, { children: "Warning" }), (0, jsx_runtime_1.jsx)(react_1.Banner.Description, { children: "This is a banner of type warning." })] }), (0, jsx_runtime_1.jsxs)(react_1.Banner, { variant: "danger", children: [(0, jsx_runtime_1.jsx)(react_1.Banner.Header, { children: "Danger" }), (0, jsx_runtime_1.jsx)(react_1.Banner.Description, { children: "This is a banner of type danger." })] }), (0, jsx_runtime_1.jsxs)(react_1.Banner, { variant: "neutral", children: [(0, jsx_runtime_1.jsx)(react_1.Banner.Header, { children: "Neutral" }), (0, jsx_runtime_1.jsx)(react_1.Banner.Description, { children: "This is a banner of type neutral." })] })] }));
28
28
  };
29
29
  exports.default = Component;
30
30
  //# sourceMappingURL=banner-variants.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"banner-variants.story.js","sourceRoot":"","sources":["../../../../src/banner/stories/banner-variants.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA0C;AAE1C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,iCAAiC,aAC9C,wBAAC,cAAM,IAAC,OAAO,EAAC,MAAM,aACpB,uBAAC,cAAM,CAAC,MAAM,uBAAqB,EACnC,uBAAC,cAAM,CAAC,WAAW,iDAAoD,IAChE,EACT,wBAAC,cAAM,IAAC,OAAO,EAAC,SAAS,aACvB,uBAAC,cAAM,CAAC,MAAM,0BAAwB,EACtC,uBAAC,cAAM,CAAC,WAAW,oDAEE,IACd,EACT,wBAAC,cAAM,IAAC,OAAO,EAAC,SAAS,aACvB,uBAAC,cAAM,CAAC,MAAM,0BAAwB,EACtC,uBAAC,cAAM,CAAC,WAAW,oDAEE,IACd,EACT,wBAAC,cAAM,IAAC,OAAO,EAAC,QAAQ,aACtB,uBAAC,cAAM,CAAC,MAAM,yBAAuB,EACrC,uBAAC,cAAM,CAAC,WAAW,mDAEE,IACd,EACT,wBAAC,cAAM,IAAC,OAAO,EAAC,SAAS,aACvB,uBAAC,cAAM,CAAC,MAAM,0BAAwB,EACtC,uBAAC,cAAM,CAAC,WAAW,oDAEE,IACd,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Banner } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"n-flex n-flex-col n-gap-token-8\">\n <Banner variant=\"info\">\n <Banner.Header>Info</Banner.Header>\n <Banner.Description>This is a banner of type info.</Banner.Description>\n </Banner>\n <Banner variant=\"success\">\n <Banner.Header>Success</Banner.Header>\n <Banner.Description>\n This is a banner of type success.\n </Banner.Description>\n </Banner>\n <Banner variant=\"warning\">\n <Banner.Header>Warning</Banner.Header>\n <Banner.Description>\n This is a banner of type warning.\n </Banner.Description>\n </Banner>\n <Banner variant=\"danger\">\n <Banner.Header>Danger</Banner.Header>\n <Banner.Description>\n This is a banner of type danger.\n </Banner.Description>\n </Banner>\n <Banner variant=\"neutral\">\n <Banner.Header>Neutral</Banner.Header>\n <Banner.Description>\n This is a banner of type neutral.\n </Banner.Description>\n </Banner>\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"banner-variants.story.js","sourceRoot":"","sources":["../../../../src/banner/stories/banner-variants.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA0C;AAE1C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,2BAA2B,aACxC,wBAAC,cAAM,IAAC,OAAO,EAAC,MAAM,aACpB,uBAAC,cAAM,CAAC,MAAM,uBAAqB,EACnC,uBAAC,cAAM,CAAC,WAAW,iDAAoD,IAChE,EACT,wBAAC,cAAM,IAAC,OAAO,EAAC,SAAS,aACvB,uBAAC,cAAM,CAAC,MAAM,0BAAwB,EACtC,uBAAC,cAAM,CAAC,WAAW,oDAEE,IACd,EACT,wBAAC,cAAM,IAAC,OAAO,EAAC,SAAS,aACvB,uBAAC,cAAM,CAAC,MAAM,0BAAwB,EACtC,uBAAC,cAAM,CAAC,WAAW,oDAEE,IACd,EACT,wBAAC,cAAM,IAAC,OAAO,EAAC,QAAQ,aACtB,uBAAC,cAAM,CAAC,MAAM,yBAAuB,EACrC,uBAAC,cAAM,CAAC,WAAW,mDAEE,IACd,EACT,wBAAC,cAAM,IAAC,OAAO,EAAC,SAAS,aACvB,uBAAC,cAAM,CAAC,MAAM,0BAAwB,EACtC,uBAAC,cAAM,CAAC,WAAW,oDAEE,IACd,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Banner } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"flex flex-col gap-token-8\">\n <Banner variant=\"info\">\n <Banner.Header>Info</Banner.Header>\n <Banner.Description>This is a banner of type info.</Banner.Description>\n </Banner>\n <Banner variant=\"success\">\n <Banner.Header>Success</Banner.Header>\n <Banner.Description>\n This is a banner of type success.\n </Banner.Description>\n </Banner>\n <Banner variant=\"warning\">\n <Banner.Header>Warning</Banner.Header>\n <Banner.Description>\n This is a banner of type warning.\n </Banner.Description>\n </Banner>\n <Banner variant=\"danger\">\n <Banner.Header>Danger</Banner.Header>\n <Banner.Description>\n This is a banner of type danger.\n </Banner.Description>\n </Banner>\n <Banner variant=\"neutral\">\n <Banner.Header>Neutral</Banner.Header>\n <Banner.Description>\n This is a banner of type neutral.\n </Banner.Description>\n </Banner>\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -24,7 +24,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
24
24
  require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
25
  const react_1 = require("@neo4j-ndl/react");
26
26
  const Component = () => {
27
- return ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-col n-gap-token-8", children: [(0, jsx_runtime_1.jsxs)(react_1.Banner, { variant: "info", hasIcon: true, children: [(0, jsx_runtime_1.jsx)(react_1.Banner.Header, { children: "Info" }), (0, jsx_runtime_1.jsx)(react_1.Banner.Description, { children: "This is a banner of type info." })] }), (0, jsx_runtime_1.jsxs)(react_1.Banner, { variant: "success", hasIcon: true, children: [(0, jsx_runtime_1.jsx)(react_1.Banner.Header, { children: "Success" }), (0, jsx_runtime_1.jsx)(react_1.Banner.Description, { children: "This is a banner of type success." })] }), (0, jsx_runtime_1.jsxs)(react_1.Banner, { variant: "warning", hasIcon: true, children: [(0, jsx_runtime_1.jsx)(react_1.Banner.Header, { children: "Warning" }), (0, jsx_runtime_1.jsx)(react_1.Banner.Description, { children: "This is a banner of type warning." })] }), (0, jsx_runtime_1.jsxs)(react_1.Banner, { variant: "danger", hasIcon: true, children: [(0, jsx_runtime_1.jsx)(react_1.Banner.Header, { children: "Danger" }), (0, jsx_runtime_1.jsx)(react_1.Banner.Description, { children: "This is a banner of type danger." })] }), (0, jsx_runtime_1.jsxs)(react_1.Banner, { variant: "neutral", hasIcon: true, children: [(0, jsx_runtime_1.jsx)(react_1.Banner.Header, { children: "Neutral" }), (0, jsx_runtime_1.jsx)(react_1.Banner.Description, { children: "This is a banner of type neutral." })] })] }));
27
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-token-8", children: [(0, jsx_runtime_1.jsxs)(react_1.Banner, { variant: "info", hasIcon: true, children: [(0, jsx_runtime_1.jsx)(react_1.Banner.Header, { children: "Info" }), (0, jsx_runtime_1.jsx)(react_1.Banner.Description, { children: "This is a banner of type info." })] }), (0, jsx_runtime_1.jsxs)(react_1.Banner, { variant: "success", hasIcon: true, children: [(0, jsx_runtime_1.jsx)(react_1.Banner.Header, { children: "Success" }), (0, jsx_runtime_1.jsx)(react_1.Banner.Description, { children: "This is a banner of type success." })] }), (0, jsx_runtime_1.jsxs)(react_1.Banner, { variant: "warning", hasIcon: true, children: [(0, jsx_runtime_1.jsx)(react_1.Banner.Header, { children: "Warning" }), (0, jsx_runtime_1.jsx)(react_1.Banner.Description, { children: "This is a banner of type warning." })] }), (0, jsx_runtime_1.jsxs)(react_1.Banner, { variant: "danger", hasIcon: true, children: [(0, jsx_runtime_1.jsx)(react_1.Banner.Header, { children: "Danger" }), (0, jsx_runtime_1.jsx)(react_1.Banner.Description, { children: "This is a banner of type danger." })] }), (0, jsx_runtime_1.jsxs)(react_1.Banner, { variant: "neutral", hasIcon: true, children: [(0, jsx_runtime_1.jsx)(react_1.Banner.Header, { children: "Neutral" }), (0, jsx_runtime_1.jsx)(react_1.Banner.Description, { children: "This is a banner of type neutral." })] })] }));
28
28
  };
29
29
  exports.default = Component;
30
30
  //# sourceMappingURL=banner-with-icons.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"banner-with-icons.story.js","sourceRoot":"","sources":["../../../../src/banner/stories/banner-with-icons.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA0C;AAE1C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,iCAAiC,aAC9C,wBAAC,cAAM,IAAC,OAAO,EAAC,MAAM,EAAC,OAAO,EAAE,IAAI,aAClC,uBAAC,cAAM,CAAC,MAAM,uBAAqB,EACnC,uBAAC,cAAM,CAAC,WAAW,iDAAoD,IAChE,EACT,wBAAC,cAAM,IAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAE,IAAI,aACrC,uBAAC,cAAM,CAAC,MAAM,0BAAwB,EACtC,uBAAC,cAAM,CAAC,WAAW,oDAEE,IACd,EACT,wBAAC,cAAM,IAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAE,IAAI,aACrC,uBAAC,cAAM,CAAC,MAAM,0BAAwB,EACtC,uBAAC,cAAM,CAAC,WAAW,oDAEE,IACd,EACT,wBAAC,cAAM,IAAC,OAAO,EAAC,QAAQ,EAAC,OAAO,EAAE,IAAI,aACpC,uBAAC,cAAM,CAAC,MAAM,yBAAuB,EACrC,uBAAC,cAAM,CAAC,WAAW,mDAEE,IACd,EACT,wBAAC,cAAM,IAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAE,IAAI,aACrC,uBAAC,cAAM,CAAC,MAAM,0BAAwB,EACtC,uBAAC,cAAM,CAAC,WAAW,oDAEE,IACd,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Banner } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"n-flex n-flex-col n-gap-token-8\">\n <Banner variant=\"info\" hasIcon={true}>\n <Banner.Header>Info</Banner.Header>\n <Banner.Description>This is a banner of type info.</Banner.Description>\n </Banner>\n <Banner variant=\"success\" hasIcon={true}>\n <Banner.Header>Success</Banner.Header>\n <Banner.Description>\n This is a banner of type success.\n </Banner.Description>\n </Banner>\n <Banner variant=\"warning\" hasIcon={true}>\n <Banner.Header>Warning</Banner.Header>\n <Banner.Description>\n This is a banner of type warning.\n </Banner.Description>\n </Banner>\n <Banner variant=\"danger\" hasIcon={true}>\n <Banner.Header>Danger</Banner.Header>\n <Banner.Description>\n This is a banner of type danger.\n </Banner.Description>\n </Banner>\n <Banner variant=\"neutral\" hasIcon={true}>\n <Banner.Header>Neutral</Banner.Header>\n <Banner.Description>\n This is a banner of type neutral.\n </Banner.Description>\n </Banner>\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"banner-with-icons.story.js","sourceRoot":"","sources":["../../../../src/banner/stories/banner-with-icons.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA0C;AAE1C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,2BAA2B,aACxC,wBAAC,cAAM,IAAC,OAAO,EAAC,MAAM,EAAC,OAAO,EAAE,IAAI,aAClC,uBAAC,cAAM,CAAC,MAAM,uBAAqB,EACnC,uBAAC,cAAM,CAAC,WAAW,iDAAoD,IAChE,EACT,wBAAC,cAAM,IAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAE,IAAI,aACrC,uBAAC,cAAM,CAAC,MAAM,0BAAwB,EACtC,uBAAC,cAAM,CAAC,WAAW,oDAEE,IACd,EACT,wBAAC,cAAM,IAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAE,IAAI,aACrC,uBAAC,cAAM,CAAC,MAAM,0BAAwB,EACtC,uBAAC,cAAM,CAAC,WAAW,oDAEE,IACd,EACT,wBAAC,cAAM,IAAC,OAAO,EAAC,QAAQ,EAAC,OAAO,EAAE,IAAI,aACpC,uBAAC,cAAM,CAAC,MAAM,yBAAuB,EACrC,uBAAC,cAAM,CAAC,WAAW,mDAEE,IACd,EACT,wBAAC,cAAM,IAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAE,IAAI,aACrC,uBAAC,cAAM,CAAC,MAAM,0BAAwB,EACtC,uBAAC,cAAM,CAAC,WAAW,oDAEE,IACd,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Banner } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"flex flex-col gap-token-8\">\n <Banner variant=\"info\" hasIcon={true}>\n <Banner.Header>Info</Banner.Header>\n <Banner.Description>This is a banner of type info.</Banner.Description>\n </Banner>\n <Banner variant=\"success\" hasIcon={true}>\n <Banner.Header>Success</Banner.Header>\n <Banner.Description>\n This is a banner of type success.\n </Banner.Description>\n </Banner>\n <Banner variant=\"warning\" hasIcon={true}>\n <Banner.Header>Warning</Banner.Header>\n <Banner.Description>\n This is a banner of type warning.\n </Banner.Description>\n </Banner>\n <Banner variant=\"danger\" hasIcon={true}>\n <Banner.Header>Danger</Banner.Header>\n <Banner.Description>\n This is a banner of type danger.\n </Banner.Description>\n </Banner>\n <Banner variant=\"neutral\" hasIcon={true}>\n <Banner.Header>Neutral</Banner.Header>\n <Banner.Description>\n This is a banner of type neutral.\n </Banner.Description>\n </Banner>\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -28,7 +28,7 @@ const react_2 = require("react");
28
28
  const Component = () => {
29
29
  const [isOrganizationMenuOpen, setIsOrganizationMenuOpen] = (0, react_2.useState)(false);
30
30
  const organizationMenuRef = (0, react_2.useRef)(null);
31
- return ((0, jsx_runtime_1.jsxs)(react_1.Breadcrumbs, { shouldWrap: false, children: [(0, jsx_runtime_1.jsx)(react_1.Breadcrumbs.Item, { className: "n-mr-token-8", children: (0, jsx_runtime_1.jsx)("button", { type: "button", "aria-label": "Home", className: "n-rounded-sm focus-visible:n-outline-2 focus-visible:n-outline-offset-[3px] focus-visible:n-outline-primary-focus n-shrink-0", children: (0, jsx_runtime_1.jsx)(icons_1.Neo4JIconColorIcon, { className: "n-h-6 n-w-[26px]" }) }) }), (0, jsx_runtime_1.jsxs)(react_1.Breadcrumbs.Item, { children: [(0, jsx_runtime_1.jsx)(react_1.Breadcrumbs.Button, { leadingElement: (0, jsx_runtime_1.jsx)(icons_1.BuildingOffice2IconOutline, {}), children: "Organization 1" }), (0, jsx_runtime_1.jsx)(react_1.Breadcrumbs.SelectButton, { ref: organizationMenuRef, ariaLabel: "Open organization menu", onClick: () => {
31
+ return ((0, jsx_runtime_1.jsxs)(react_1.Breadcrumbs, { shouldWrap: false, children: [(0, jsx_runtime_1.jsx)(react_1.Breadcrumbs.Item, { className: "mr-token-8", children: (0, jsx_runtime_1.jsx)("button", { type: "button", "aria-label": "Home", className: "rounded-sm focus-visible:outline-2 focus-visible:outline-offset-[3px] focus-visible:outline-primary-focus shrink-0", children: (0, jsx_runtime_1.jsx)(icons_1.Neo4JIconColorIcon, { className: "h-6 w-[26px]" }) }) }), (0, jsx_runtime_1.jsxs)(react_1.Breadcrumbs.Item, { children: [(0, jsx_runtime_1.jsx)(react_1.Breadcrumbs.Button, { leadingElement: (0, jsx_runtime_1.jsx)(icons_1.BuildingOffice2IconOutline, {}), children: "Organization 1" }), (0, jsx_runtime_1.jsx)(react_1.Breadcrumbs.SelectButton, { ref: organizationMenuRef, ariaLabel: "Open organization menu", onClick: () => {
32
32
  setIsOrganizationMenuOpen((prev) => !prev);
33
33
  }, isActive: isOrganizationMenuOpen, children: (0, jsx_runtime_1.jsxs)(react_1.Menu, { anchorRef: organizationMenuRef, isOpen: isOrganizationMenuOpen, onClose: () => setIsOrganizationMenuOpen(false), children: [(0, jsx_runtime_1.jsxs)(react_1.Menu.Group, { children: [(0, jsx_runtime_1.jsx)(react_1.Menu.RadioItem, { title: "Organization 1", isChecked: true }), (0, jsx_runtime_1.jsx)(react_1.Menu.RadioItem, { title: "Organization 2", isChecked: false })] }), (0, jsx_runtime_1.jsx)(react_1.Menu.Divider, {}), (0, jsx_runtime_1.jsx)(react_1.Menu.Group, { children: (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "All Organizations" }) })] }) })] }), (0, jsx_runtime_1.jsxs)(react_1.Breadcrumbs.Item, { children: [(0, jsx_runtime_1.jsx)(react_1.Breadcrumbs.Button, { leadingElement: (0, jsx_runtime_1.jsx)(icons_1.CubeIconOutline, {}), children: "Project 1" }), (0, jsx_runtime_1.jsx)(react_1.Breadcrumbs.SelectButton, { ariaLabel: "Open project menu" })] })] }));
34
34
  };
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumbs-header.story.js","sourceRoot":"","sources":["../../../../src/breadcrumbs/stories/breadcrumbs-header.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAqD;AACrD,kDAIgC;AAChC,iCAAyC;AAEzC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,sBAAsB,EAAE,yBAAyB,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAC5E,MAAM,mBAAmB,GAAG,IAAA,cAAM,EAAoB,IAAI,CAAC,CAAC;IAE5D,OAAO,CACL,wBAAC,mBAAW,IAAC,UAAU,EAAE,KAAK,aAC5B,uBAAC,mBAAW,CAAC,IAAI,IAAC,SAAS,EAAC,cAAc,YACxC,mCACE,IAAI,EAAC,QAAQ,gBACF,MAAM,EACjB,SAAS,EAAC,8HAA8H,YAExI,uBAAC,0BAAkB,IAAC,SAAS,EAAC,kBAAkB,GAAG,GAC5C,GACQ,EACnB,wBAAC,mBAAW,CAAC,IAAI,eACf,uBAAC,mBAAW,CAAC,MAAM,IAAC,cAAc,EAAE,uBAAC,kCAA0B,KAAG,+BAE7C,EACrB,uBAAC,mBAAW,CAAC,YAAY,IACvB,GAAG,EAAE,mBAAmB,EACxB,SAAS,EAAC,wBAAwB,EAClC,OAAO,EAAE,GAAG,EAAE;4BACZ,yBAAyB,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;wBAC7C,CAAC,EACD,QAAQ,EAAE,sBAAsB,YAEhC,wBAAC,YAAI,IACH,SAAS,EAAE,mBAAmB,EAC9B,MAAM,EAAE,sBAAsB,EAC9B,OAAO,EAAE,GAAG,EAAE,CAAC,yBAAyB,CAAC,KAAK,CAAC,aAE/C,wBAAC,YAAI,CAAC,KAAK,eACT,uBAAC,YAAI,CAAC,SAAS,IAAC,KAAK,EAAC,gBAAgB,EAAC,SAAS,EAAE,IAAI,GAAI,EAC1D,uBAAC,YAAI,CAAC,SAAS,IAAC,KAAK,EAAC,gBAAgB,EAAC,SAAS,EAAE,KAAK,GAAI,IAChD,EACb,uBAAC,YAAI,CAAC,OAAO,KAAG,EAChB,uBAAC,YAAI,CAAC,KAAK,cACT,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,mBAAmB,GAAG,GAC5B,IACR,GACkB,IACV,EACnB,wBAAC,mBAAW,CAAC,IAAI,eACf,uBAAC,mBAAW,CAAC,MAAM,IAAC,cAAc,EAAE,uBAAC,uBAAe,KAAG,0BAElC,EACrB,uBAAC,mBAAW,CAAC,YAAY,IAAC,SAAS,EAAC,mBAAmB,GAA4B,IAClE,IACP,CACf,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Breadcrumbs, Menu } from '@neo4j-ndl/react';\nimport {\n BuildingOffice2IconOutline,\n CubeIconOutline,\n Neo4JIconColorIcon,\n} from '@neo4j-ndl/react/icons';\nimport { useRef, useState } from 'react';\n\nconst Component = () => {\n const [isOrganizationMenuOpen, setIsOrganizationMenuOpen] = useState(false);\n const organizationMenuRef = useRef<HTMLButtonElement>(null);\n\n return (\n <Breadcrumbs shouldWrap={false}>\n <Breadcrumbs.Item className=\"n-mr-token-8\">\n <button\n type=\"button\"\n aria-label=\"Home\"\n className=\"n-rounded-sm focus-visible:n-outline-2 focus-visible:n-outline-offset-[3px] focus-visible:n-outline-primary-focus n-shrink-0\"\n >\n <Neo4JIconColorIcon className=\"n-h-6 n-w-[26px]\" />\n </button>\n </Breadcrumbs.Item>\n <Breadcrumbs.Item>\n <Breadcrumbs.Button leadingElement={<BuildingOffice2IconOutline />}>\n Organization 1\n </Breadcrumbs.Button>\n <Breadcrumbs.SelectButton\n ref={organizationMenuRef}\n ariaLabel=\"Open organization menu\"\n onClick={() => {\n setIsOrganizationMenuOpen((prev) => !prev);\n }}\n isActive={isOrganizationMenuOpen}\n >\n <Menu\n anchorRef={organizationMenuRef}\n isOpen={isOrganizationMenuOpen}\n onClose={() => setIsOrganizationMenuOpen(false)}\n >\n <Menu.Group>\n <Menu.RadioItem title=\"Organization 1\" isChecked={true} />\n <Menu.RadioItem title=\"Organization 2\" isChecked={false} />\n </Menu.Group>\n <Menu.Divider />\n <Menu.Group>\n <Menu.Item title=\"All Organizations\" />\n </Menu.Group>\n </Menu>\n </Breadcrumbs.SelectButton>\n </Breadcrumbs.Item>\n <Breadcrumbs.Item>\n <Breadcrumbs.Button leadingElement={<CubeIconOutline />}>\n Project 1\n </Breadcrumbs.Button>\n <Breadcrumbs.SelectButton ariaLabel=\"Open project menu\"></Breadcrumbs.SelectButton>\n </Breadcrumbs.Item>\n </Breadcrumbs>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"breadcrumbs-header.story.js","sourceRoot":"","sources":["../../../../src/breadcrumbs/stories/breadcrumbs-header.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAqD;AACrD,kDAIgC;AAChC,iCAAyC;AAEzC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,sBAAsB,EAAE,yBAAyB,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAC5E,MAAM,mBAAmB,GAAG,IAAA,cAAM,EAAoB,IAAI,CAAC,CAAC;IAE5D,OAAO,CACL,wBAAC,mBAAW,IAAC,UAAU,EAAE,KAAK,aAC5B,uBAAC,mBAAW,CAAC,IAAI,IAAC,SAAS,EAAC,YAAY,YACtC,mCACE,IAAI,EAAC,QAAQ,gBACF,MAAM,EACjB,SAAS,EAAC,oHAAoH,YAE9H,uBAAC,0BAAkB,IAAC,SAAS,EAAC,cAAc,GAAG,GACxC,GACQ,EACnB,wBAAC,mBAAW,CAAC,IAAI,eACf,uBAAC,mBAAW,CAAC,MAAM,IAAC,cAAc,EAAE,uBAAC,kCAA0B,KAAG,+BAE7C,EACrB,uBAAC,mBAAW,CAAC,YAAY,IACvB,GAAG,EAAE,mBAAmB,EACxB,SAAS,EAAC,wBAAwB,EAClC,OAAO,EAAE,GAAG,EAAE;4BACZ,yBAAyB,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;wBAC7C,CAAC,EACD,QAAQ,EAAE,sBAAsB,YAEhC,wBAAC,YAAI,IACH,SAAS,EAAE,mBAAmB,EAC9B,MAAM,EAAE,sBAAsB,EAC9B,OAAO,EAAE,GAAG,EAAE,CAAC,yBAAyB,CAAC,KAAK,CAAC,aAE/C,wBAAC,YAAI,CAAC,KAAK,eACT,uBAAC,YAAI,CAAC,SAAS,IAAC,KAAK,EAAC,gBAAgB,EAAC,SAAS,EAAE,IAAI,GAAI,EAC1D,uBAAC,YAAI,CAAC,SAAS,IAAC,KAAK,EAAC,gBAAgB,EAAC,SAAS,EAAE,KAAK,GAAI,IAChD,EACb,uBAAC,YAAI,CAAC,OAAO,KAAG,EAChB,uBAAC,YAAI,CAAC,KAAK,cACT,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,mBAAmB,GAAG,GAC5B,IACR,GACkB,IACV,EACnB,wBAAC,mBAAW,CAAC,IAAI,eACf,uBAAC,mBAAW,CAAC,MAAM,IAAC,cAAc,EAAE,uBAAC,uBAAe,KAAG,0BAElC,EACrB,uBAAC,mBAAW,CAAC,YAAY,IAAC,SAAS,EAAC,mBAAmB,GAA4B,IAClE,IACP,CACf,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Breadcrumbs, Menu } from '@neo4j-ndl/react';\nimport {\n BuildingOffice2IconOutline,\n CubeIconOutline,\n Neo4JIconColorIcon,\n} from '@neo4j-ndl/react/icons';\nimport { useRef, useState } from 'react';\n\nconst Component = () => {\n const [isOrganizationMenuOpen, setIsOrganizationMenuOpen] = useState(false);\n const organizationMenuRef = useRef<HTMLButtonElement>(null);\n\n return (\n <Breadcrumbs shouldWrap={false}>\n <Breadcrumbs.Item className=\"mr-token-8\">\n <button\n type=\"button\"\n aria-label=\"Home\"\n className=\"rounded-sm focus-visible:outline-2 focus-visible:outline-offset-[3px] focus-visible:outline-primary-focus shrink-0\"\n >\n <Neo4JIconColorIcon className=\"h-6 w-[26px]\" />\n </button>\n </Breadcrumbs.Item>\n <Breadcrumbs.Item>\n <Breadcrumbs.Button leadingElement={<BuildingOffice2IconOutline />}>\n Organization 1\n </Breadcrumbs.Button>\n <Breadcrumbs.SelectButton\n ref={organizationMenuRef}\n ariaLabel=\"Open organization menu\"\n onClick={() => {\n setIsOrganizationMenuOpen((prev) => !prev);\n }}\n isActive={isOrganizationMenuOpen}\n >\n <Menu\n anchorRef={organizationMenuRef}\n isOpen={isOrganizationMenuOpen}\n onClose={() => setIsOrganizationMenuOpen(false)}\n >\n <Menu.Group>\n <Menu.RadioItem title=\"Organization 1\" isChecked={true} />\n <Menu.RadioItem title=\"Organization 2\" isChecked={false} />\n </Menu.Group>\n <Menu.Divider />\n <Menu.Group>\n <Menu.Item title=\"All Organizations\" />\n </Menu.Group>\n </Menu>\n </Breadcrumbs.SelectButton>\n </Breadcrumbs.Item>\n <Breadcrumbs.Item>\n <Breadcrumbs.Button leadingElement={<CubeIconOutline />}>\n Project 1\n </Breadcrumbs.Button>\n <Breadcrumbs.SelectButton ariaLabel=\"Open project menu\"></Breadcrumbs.SelectButton>\n </Breadcrumbs.Item>\n </Breadcrumbs>\n );\n};\n\nexport default Component;\n"]}
@@ -39,9 +39,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
39
39
  const classnames_1 = __importDefault(require("classnames"));
40
40
  const ButtonSpinner_1 = require("../_common/ButtonSpinner");
41
41
  const ButtonBase = (_a) => {
42
- var { as, buttonFill = 'filled', children, className, variant = 'primary', htmlAttributes, isDisabled = false, isFloating = false, isFluid = false, isLoading = false, leadingVisual, onClick, ref, size = 'medium', style, type = 'button',
43
- // TODO v5: maybe update default message to 'Loading'. This value is for backward compatibility with loading spinners old aria-label
44
- loadingMessage = 'Loading content' } = _a, restProps = __rest(_a, ["as", "buttonFill", "children", "className", "variant", "htmlAttributes", "isDisabled", "isFloating", "isFluid", "isLoading", "leadingVisual", "onClick", "ref", "size", "style", "type", "loadingMessage"]);
42
+ var { as, buttonFill = 'filled', children, className, variant = 'primary', htmlAttributes, isDisabled = false, isFloating = false, isFluid = false, isLoading = false, leadingVisual, onClick, ref, size = 'medium', style, type = 'button', loadingMessage = 'Loading' } = _a, restProps = __rest(_a, ["as", "buttonFill", "children", "className", "variant", "htmlAttributes", "isDisabled", "isFloating", "isFluid", "isLoading", "leadingVisual", "onClick", "ref", "size", "style", "type", "loadingMessage"]);
45
43
  const Component = as !== null && as !== void 0 ? as : 'button';
46
44
  const isInteractable = !isDisabled && !isLoading;
47
45
  const classes = (0, classnames_1.default)(className, 'ndl-btn', {
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonBase.js","sourceRoot":"","sources":["../../../src/button/ButtonBase.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,4DAAoC;AAGpC,4DAAyD;AAgElD,MAAM,UAAU,GAAG,CAAyC,EAoBtB,EAAE,EAAE;QApBkB,EACjE,EAAE,EACF,UAAU,GAAG,QAAQ,EACrB,QAAQ,EACR,SAAS,EACT,OAAO,GAAG,SAAS,EACnB,cAAc,EACd,UAAU,GAAG,KAAK,EAClB,UAAU,GAAG,KAAK,EAClB,OAAO,GAAG,KAAK,EACf,SAAS,GAAG,KAAK,EACjB,aAAa,EACb,OAAO,EACP,GAAG,EACH,IAAI,GAAG,QAAQ,EACf,KAAK,EACL,IAAI,GAAG,QAAQ;IACf,oIAAoI;IACpI,cAAc,GAAG,iBAAiB,OAES,EADxC,SAAS,cAnBqD,4MAoBlE,CADa;IAEZ,MAAM,SAAS,GAAsB,EAAE,aAAF,EAAE,cAAF,EAAE,GAAI,QAAQ,CAAC;IACpD,MAAM,cAAc,GAAG,CAAC,UAAU,IAAI,CAAC,SAAS,CAAC;IAEjD,MAAM,OAAO,GAAG,IAAA,oBAAU,EAAC,SAAS,EAAE,SAAS,EAAE;QAC/C,cAAc,EAAE,UAAU;QAC1B,cAAc,EAAE,UAAU;QAC1B,WAAW,EAAE,OAAO;QACpB,aAAa,EAAE,SAAS;QACxB,CAAC,OAAO,IAAI,EAAE,CAAC,EAAE,IAAI;QACrB,CAAC,OAAO,UAAU,SAAS,CAAC,EAAE,UAAU;QACxC,CAAC,OAAO,OAAO,EAAE,CAAC,EAAE,OAAO;KAC5B,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,CAClB,KAAsD,EACtD,EAAE;QACF,IAAI,CAAC,cAAc,EAAE,CAAC;YACpB,8EAA8E;YAC9E,yEAAyE;YACzE,iFAAiF;YACjF,4CAA4C;YAC5C,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,KAAK,CAAC,eAAe,EAAE,CAAC;YACxB,OAAO;QACT,CAAC;QAED,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,CAAC,KAAK,CAAC,CAAC;QACjB,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,uBAAC,SAAS,kBACR,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,UAAU,mBACL,CAAC,cAAc,EAC9B,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,GAAG,IACJ,SAAS,EACT,cAAc,cAElB,iCAAK,SAAS,EAAC,eAAe,aAC3B,OAAO,CAAC,aAAa,CAAC,IAAI,CACzB,gCAAK,SAAS,EAAC,yBAAyB,YAAE,aAAa,GAAO,CAC/D,EACA,OAAO,CAAC,QAAQ,CAAC,IAAI,CACpB,iCAAM,SAAS,EAAC,iBAAiB,YAAE,QAAQ,GAAQ,CACpD,EACA,SAAS,IAAI,CACZ,uBAAC,6BAAa,IAAC,cAAc,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,GAAI,CAC9D,IACG,IACI,CACb,CAAC;AACJ,CAAC,CAAC;AA7EW,QAAA,UAAU,cA6ErB","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';\n\nimport { ButtonSpinner } from '../_common/ButtonSpinner';\nimport {\n type HtmlAttributes,\n type PolymorphicCommonProps,\n} from '../_common/types';\n\n/**\n *\n * Types\n *\n */\n\ntype ButtonTypes = 'submit' | 'button' | 'reset';\nexport type ButtonSizes = 'small' | 'medium' | 'large';\nexport type ButtonVariants = 'primary' | 'danger' | 'neutral';\n\nexport type CommonButtonProps = {\n children?: React.ReactNode;\n /** Icon to display before the button content */\n leadingVisual?: React.ReactNode;\n /** If the button is doing something Async, it will display a loading spinner */\n isLoading?: boolean;\n /** If the button is in disabled state */\n isDisabled?: boolean;\n /** If the button is fluid, it will take the full width of its container */\n isFluid?: boolean;\n /** Type of button */\n type?: ButtonTypes;\n /** Size of button */\n size?: ButtonSizes;\n /** onClick callback */\n onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;\n /** onKeyDown callback */\n onKeyDown?: (event: React.KeyboardEvent<HTMLButtonElement>) => void;\n /** Accessible message for screen readers when the button is in a loading state */\n loadingMessage?: string;\n} /**\n * If `as=\"a\"`, `href` is required and `target` is available.\n * For all other elements, these props are not present.\n */ & (\n | {\n as: 'a';\n /** The URL to link to. Only applies when `as=\"a\"` */\n href?: HtmlAttributes<'a'>['href'];\n /**\n * The target window for the link. Only applies when `as=\"a\"`.\n * Not present or required for other element types.\n */\n target?: HtmlAttributes<'a'>['target'];\n }\n | {\n as?: React.ElementType;\n }\n);\n\ntype ButtonBaseProps = CommonButtonProps & {\n /** If the button is in floating state */\n isFloating?: boolean;\n /** variant of the button */\n variant?: ButtonVariants;\n /** fill of the button */\n buttonFill?: 'filled' | 'outlined' | 'text';\n};\n\nexport const ButtonBase = <T extends React.ElementType = 'button'>({\n as,\n buttonFill = 'filled',\n children,\n className,\n variant = 'primary',\n htmlAttributes,\n isDisabled = false,\n isFloating = false,\n isFluid = false,\n isLoading = false,\n leadingVisual,\n onClick,\n ref,\n size = 'medium',\n style,\n type = 'button',\n // TODO v5: maybe update default message to 'Loading'. This value is for backward compatibility with loading spinners old aria-label\n loadingMessage = 'Loading content',\n ...restProps\n}: PolymorphicCommonProps<T, ButtonBaseProps>) => {\n const Component: React.ElementType = as ?? 'button';\n const isInteractable = !isDisabled && !isLoading;\n\n const classes = classNames(className, 'ndl-btn', {\n 'ndl-disabled': isDisabled,\n 'ndl-floating': isFloating,\n 'ndl-fluid': isFluid,\n 'ndl-loading': isLoading,\n [`ndl-${size}`]: size,\n [`ndl-${buttonFill}-button`]: buttonFill,\n [`ndl-${variant}`]: variant,\n });\n\n const handleClick = (\n event: React.MouseEvent<HTMLButtonElement, MouseEvent>,\n ) => {\n if (!isInteractable) {\n // By default, a <button /> element with disabled set to true will not get its\n // on click handler called. To support the same behavior on <a /> tags we\n // swallow the event here when disabled, since the <a /> tag with disabled set to\n // true will have its onClick handler called\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n\n if (onClick) {\n onClick(event);\n }\n };\n\n return (\n <Component\n type={type}\n onClick={handleClick}\n disabled={isDisabled}\n aria-disabled={!isInteractable}\n className={classes}\n style={style}\n ref={ref}\n {...restProps}\n {...htmlAttributes}\n >\n <div className=\"ndl-btn-inner\">\n {Boolean(leadingVisual) && (\n <div className=\"ndl-btn-leading-element\">{leadingVisual}</div>\n )}\n {Boolean(children) && (\n <span className=\"ndl-btn-content\">{children}</span>\n )}\n {isLoading && (\n <ButtonSpinner loadingMessage={loadingMessage} size={size} />\n )}\n </div>\n </Component>\n );\n};\n"]}
1
+ {"version":3,"file":"ButtonBase.js","sourceRoot":"","sources":["../../../src/button/ButtonBase.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,4DAAoC;AAGpC,4DAAyD;AAgElD,MAAM,UAAU,GAAG,CAAyC,EAmBtB,EAAE,EAAE;QAnBkB,EACjE,EAAE,EACF,UAAU,GAAG,QAAQ,EACrB,QAAQ,EACR,SAAS,EACT,OAAO,GAAG,SAAS,EACnB,cAAc,EACd,UAAU,GAAG,KAAK,EAClB,UAAU,GAAG,KAAK,EAClB,OAAO,GAAG,KAAK,EACf,SAAS,GAAG,KAAK,EACjB,aAAa,EACb,OAAO,EACP,GAAG,EACH,IAAI,GAAG,QAAQ,EACf,KAAK,EACL,IAAI,GAAG,QAAQ,EACf,cAAc,GAAG,SAAS,OAEiB,EADxC,SAAS,cAlBqD,4MAmBlE,CADa;IAEZ,MAAM,SAAS,GAAsB,EAAE,aAAF,EAAE,cAAF,EAAE,GAAI,QAAQ,CAAC;IACpD,MAAM,cAAc,GAAG,CAAC,UAAU,IAAI,CAAC,SAAS,CAAC;IAEjD,MAAM,OAAO,GAAG,IAAA,oBAAU,EAAC,SAAS,EAAE,SAAS,EAAE;QAC/C,cAAc,EAAE,UAAU;QAC1B,cAAc,EAAE,UAAU;QAC1B,WAAW,EAAE,OAAO;QACpB,aAAa,EAAE,SAAS;QACxB,CAAC,OAAO,IAAI,EAAE,CAAC,EAAE,IAAI;QACrB,CAAC,OAAO,UAAU,SAAS,CAAC,EAAE,UAAU;QACxC,CAAC,OAAO,OAAO,EAAE,CAAC,EAAE,OAAO;KAC5B,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,CAClB,KAAsD,EACtD,EAAE;QACF,IAAI,CAAC,cAAc,EAAE,CAAC;YACpB,8EAA8E;YAC9E,yEAAyE;YACzE,iFAAiF;YACjF,4CAA4C;YAC5C,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,KAAK,CAAC,eAAe,EAAE,CAAC;YACxB,OAAO;QACT,CAAC;QAED,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,CAAC,KAAK,CAAC,CAAC;QACjB,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,uBAAC,SAAS,kBACR,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,UAAU,mBACL,CAAC,cAAc,EAC9B,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,GAAG,IACJ,SAAS,EACT,cAAc,cAElB,iCAAK,SAAS,EAAC,eAAe,aAC3B,OAAO,CAAC,aAAa,CAAC,IAAI,CACzB,gCAAK,SAAS,EAAC,yBAAyB,YAAE,aAAa,GAAO,CAC/D,EACA,OAAO,CAAC,QAAQ,CAAC,IAAI,CACpB,iCAAM,SAAS,EAAC,iBAAiB,YAAE,QAAQ,GAAQ,CACpD,EACA,SAAS,IAAI,CACZ,uBAAC,6BAAa,IAAC,cAAc,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,GAAI,CAC9D,IACG,IACI,CACb,CAAC;AACJ,CAAC,CAAC;AA5EW,QAAA,UAAU,cA4ErB","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';\n\nimport { ButtonSpinner } from '../_common/ButtonSpinner';\nimport {\n type HtmlAttributes,\n type PolymorphicCommonProps,\n} from '../_common/types';\n\n/**\n *\n * Types\n *\n */\n\ntype ButtonTypes = 'submit' | 'button' | 'reset';\nexport type ButtonSizes = 'small' | 'medium' | 'large';\nexport type ButtonVariants = 'primary' | 'danger' | 'neutral';\n\nexport type CommonButtonProps = {\n children?: React.ReactNode;\n /** Icon to display before the button content */\n leadingVisual?: React.ReactNode;\n /** If the button is doing something Async, it will display a loading spinner */\n isLoading?: boolean;\n /** If the button is in disabled state */\n isDisabled?: boolean;\n /** If the button is fluid, it will take the full width of its container */\n isFluid?: boolean;\n /** Type of button */\n type?: ButtonTypes;\n /** Size of button */\n size?: ButtonSizes;\n /** onClick callback */\n onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;\n /** onKeyDown callback */\n onKeyDown?: (event: React.KeyboardEvent<HTMLButtonElement>) => void;\n /** Accessible message for screen readers when the button is in a loading state */\n loadingMessage?: string;\n} /**\n * If `as=\"a\"`, `href` is required and `target` is available.\n * For all other elements, these props are not present.\n */ & (\n | {\n as: 'a';\n /** The URL to link to. Only applies when `as=\"a\"` */\n href?: HtmlAttributes<'a'>['href'];\n /**\n * The target window for the link. Only applies when `as=\"a\"`.\n * Not present or required for other element types.\n */\n target?: HtmlAttributes<'a'>['target'];\n }\n | {\n as?: React.ElementType;\n }\n);\n\ntype ButtonBaseProps = CommonButtonProps & {\n /** If the button is in floating state */\n isFloating?: boolean;\n /** variant of the button */\n variant?: ButtonVariants;\n /** fill of the button */\n buttonFill?: 'filled' | 'outlined' | 'text';\n};\n\nexport const ButtonBase = <T extends React.ElementType = 'button'>({\n as,\n buttonFill = 'filled',\n children,\n className,\n variant = 'primary',\n htmlAttributes,\n isDisabled = false,\n isFloating = false,\n isFluid = false,\n isLoading = false,\n leadingVisual,\n onClick,\n ref,\n size = 'medium',\n style,\n type = 'button',\n loadingMessage = 'Loading',\n ...restProps\n}: PolymorphicCommonProps<T, ButtonBaseProps>) => {\n const Component: React.ElementType = as ?? 'button';\n const isInteractable = !isDisabled && !isLoading;\n\n const classes = classNames(className, 'ndl-btn', {\n 'ndl-disabled': isDisabled,\n 'ndl-floating': isFloating,\n 'ndl-fluid': isFluid,\n 'ndl-loading': isLoading,\n [`ndl-${size}`]: size,\n [`ndl-${buttonFill}-button`]: buttonFill,\n [`ndl-${variant}`]: variant,\n });\n\n const handleClick = (\n event: React.MouseEvent<HTMLButtonElement, MouseEvent>,\n ) => {\n if (!isInteractable) {\n // By default, a <button /> element with disabled set to true will not get its\n // on click handler called. To support the same behavior on <a /> tags we\n // swallow the event here when disabled, since the <a /> tag with disabled set to\n // true will have its onClick handler called\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n\n if (onClick) {\n onClick(event);\n }\n };\n\n return (\n <Component\n type={type}\n onClick={handleClick}\n disabled={isDisabled}\n aria-disabled={!isInteractable}\n className={classes}\n style={style}\n ref={ref}\n {...restProps}\n {...htmlAttributes}\n >\n <div className=\"ndl-btn-inner\">\n {Boolean(leadingVisual) && (\n <div className=\"ndl-btn-leading-element\">{leadingVisual}</div>\n )}\n {Boolean(children) && (\n <span className=\"ndl-btn-content\">{children}</span>\n )}\n {isLoading && (\n <ButtonSpinner loadingMessage={loadingMessage} size={size} />\n )}\n </div>\n </Component>\n );\n};\n"]}
@@ -24,7 +24,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
24
24
  require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
25
  const react_1 = require("@neo4j-ndl/react");
26
26
  const Component = () => {
27
- return ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-row n-gap-token-8", children: [(0, jsx_runtime_1.jsx)(react_1.FilledButton, { size: "small", children: "Small" }), (0, jsx_runtime_1.jsx)(react_1.FilledButton, { size: "medium", children: "Medium" }), (0, jsx_runtime_1.jsx)(react_1.FilledButton, { size: "large", children: "Large" })] }));
27
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row gap-token-8", children: [(0, jsx_runtime_1.jsx)(react_1.FilledButton, { size: "small", children: "Small" }), (0, jsx_runtime_1.jsx)(react_1.FilledButton, { size: "medium", children: "Medium" }), (0, jsx_runtime_1.jsx)(react_1.FilledButton, { size: "large", children: "Large" })] }));
28
28
  };
29
29
  exports.default = Component;
30
30
  //# sourceMappingURL=button-sizes.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-sizes.story.js","sourceRoot":"","sources":["../../../../src/button/stories/button-sizes.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAgD;AAEhD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,iCAAiC,aAC9C,uBAAC,oBAAY,IAAC,IAAI,EAAC,OAAO,sBAAqB,EAC/C,uBAAC,oBAAY,IAAC,IAAI,EAAC,QAAQ,uBAAsB,EACjD,uBAAC,oBAAY,IAAC,IAAI,EAAC,OAAO,sBAAqB,IAC3C,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { FilledButton } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"n-flex n-flex-row n-gap-token-8\">\n <FilledButton size=\"small\">Small</FilledButton>\n <FilledButton size=\"medium\">Medium</FilledButton>\n <FilledButton size=\"large\">Large</FilledButton>\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"button-sizes.story.js","sourceRoot":"","sources":["../../../../src/button/stories/button-sizes.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAgD;AAEhD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,2BAA2B,aACxC,uBAAC,oBAAY,IAAC,IAAI,EAAC,OAAO,sBAAqB,EAC/C,uBAAC,oBAAY,IAAC,IAAI,EAAC,QAAQ,uBAAsB,EACjD,uBAAC,oBAAY,IAAC,IAAI,EAAC,OAAO,sBAAqB,IAC3C,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { FilledButton } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"flex flex-row gap-token-8\">\n <FilledButton size=\"small\">Small</FilledButton>\n <FilledButton size=\"medium\">Medium</FilledButton>\n <FilledButton size=\"large\">Large</FilledButton>\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -24,7 +24,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
24
24
  require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
25
  const react_1 = require("@neo4j-ndl/react");
26
26
  const Component = () => {
27
- return ((0, jsx_runtime_1.jsxs)("div", { className: "n-grid n-grid-cols-3 n-gap-token-8 n-items-center", children: [(0, jsx_runtime_1.jsx)(react_1.FilledButton, { variant: "primary", children: "Filled Primary" }), (0, jsx_runtime_1.jsx)(react_1.FilledButton, { variant: "danger", children: "Filled Danger" }), (0, jsx_runtime_1.jsx)("div", {}), (0, jsx_runtime_1.jsx)(react_1.OutlinedButton, { variant: "primary", children: "Outlined Primary" }), (0, jsx_runtime_1.jsx)(react_1.OutlinedButton, { variant: "danger", children: "Outlined Danger" }), (0, jsx_runtime_1.jsx)(react_1.OutlinedButton, { variant: "neutral", children: "Outlined Neutral" }), (0, jsx_runtime_1.jsx)(react_1.TextButton, { variant: "primary", children: "Text Primary" }), (0, jsx_runtime_1.jsx)(react_1.TextButton, { variant: "danger", children: "Text Danger" }), (0, jsx_runtime_1.jsx)(react_1.TextButton, { variant: "neutral", children: "Text Neutral" })] }));
27
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "grid grid-cols-3 gap-token-8 items-center", children: [(0, jsx_runtime_1.jsx)(react_1.FilledButton, { variant: "primary", children: "Filled Primary" }), (0, jsx_runtime_1.jsx)(react_1.FilledButton, { variant: "danger", children: "Filled Danger" }), (0, jsx_runtime_1.jsx)("div", {}), (0, jsx_runtime_1.jsx)(react_1.OutlinedButton, { variant: "primary", children: "Outlined Primary" }), (0, jsx_runtime_1.jsx)(react_1.OutlinedButton, { variant: "danger", children: "Outlined Danger" }), (0, jsx_runtime_1.jsx)(react_1.OutlinedButton, { variant: "neutral", children: "Outlined Neutral" }), (0, jsx_runtime_1.jsx)(react_1.TextButton, { variant: "primary", children: "Text Primary" }), (0, jsx_runtime_1.jsx)(react_1.TextButton, { variant: "danger", children: "Text Danger" }), (0, jsx_runtime_1.jsx)(react_1.TextButton, { variant: "neutral", children: "Text Neutral" })] }));
28
28
  };
29
29
  exports.default = Component;
30
30
  //# sourceMappingURL=button-variants.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-variants.story.js","sourceRoot":"","sources":["../../../../src/button/stories/button-variants.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA4E;AAE5E,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,mDAAmD,aAChE,uBAAC,oBAAY,IAAC,OAAO,EAAC,SAAS,+BAA8B,EAC7D,uBAAC,oBAAY,IAAC,OAAO,EAAC,QAAQ,8BAA6B,EAC3D,iCAAO,EACP,uBAAC,sBAAc,IAAC,OAAO,EAAC,SAAS,iCAAkC,EACnE,uBAAC,sBAAc,IAAC,OAAO,EAAC,QAAQ,gCAAiC,EACjE,uBAAC,sBAAc,IAAC,OAAO,EAAC,SAAS,iCAAkC,EACnE,uBAAC,kBAAU,IAAC,OAAO,EAAC,SAAS,6BAA0B,EACvD,uBAAC,kBAAU,IAAC,OAAO,EAAC,QAAQ,4BAAyB,EACrD,uBAAC,kBAAU,IAAC,OAAO,EAAC,SAAS,6BAA0B,IACnD,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { FilledButton, OutlinedButton, TextButton } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"n-grid n-grid-cols-3 n-gap-token-8 n-items-center\">\n <FilledButton variant=\"primary\">Filled Primary</FilledButton>\n <FilledButton variant=\"danger\">Filled Danger</FilledButton>\n <div />\n <OutlinedButton variant=\"primary\">Outlined Primary</OutlinedButton>\n <OutlinedButton variant=\"danger\">Outlined Danger</OutlinedButton>\n <OutlinedButton variant=\"neutral\">Outlined Neutral</OutlinedButton>\n <TextButton variant=\"primary\">Text Primary</TextButton>\n <TextButton variant=\"danger\">Text Danger</TextButton>\n <TextButton variant=\"neutral\">Text Neutral</TextButton>\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"button-variants.story.js","sourceRoot":"","sources":["../../../../src/button/stories/button-variants.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA4E;AAE5E,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,2CAA2C,aACxD,uBAAC,oBAAY,IAAC,OAAO,EAAC,SAAS,+BAA8B,EAC7D,uBAAC,oBAAY,IAAC,OAAO,EAAC,QAAQ,8BAA6B,EAC3D,iCAAO,EACP,uBAAC,sBAAc,IAAC,OAAO,EAAC,SAAS,iCAAkC,EACnE,uBAAC,sBAAc,IAAC,OAAO,EAAC,QAAQ,gCAAiC,EACjE,uBAAC,sBAAc,IAAC,OAAO,EAAC,SAAS,iCAAkC,EACnE,uBAAC,kBAAU,IAAC,OAAO,EAAC,SAAS,6BAA0B,EACvD,uBAAC,kBAAU,IAAC,OAAO,EAAC,QAAQ,4BAAyB,EACrD,uBAAC,kBAAU,IAAC,OAAO,EAAC,SAAS,6BAA0B,IACnD,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { FilledButton, OutlinedButton, TextButton } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"grid grid-cols-3 gap-token-8 items-center\">\n <FilledButton variant=\"primary\">Filled Primary</FilledButton>\n <FilledButton variant=\"danger\">Filled Danger</FilledButton>\n <div />\n <OutlinedButton variant=\"primary\">Outlined Primary</OutlinedButton>\n <OutlinedButton variant=\"danger\">Outlined Danger</OutlinedButton>\n <OutlinedButton variant=\"neutral\">Outlined Neutral</OutlinedButton>\n <TextButton variant=\"primary\">Text Primary</TextButton>\n <TextButton variant=\"danger\">Text Danger</TextButton>\n <TextButton variant=\"neutral\">Text Neutral</TextButton>\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -46,9 +46,9 @@ const Component = () => {
46
46
  const isParentChecked = Object.values(childCheckboxes).every((isChildChecked) => isChildChecked);
47
47
  const isParentIndeterminate = Object.values(childCheckboxes).some((isChildChecked) => isChildChecked) &&
48
48
  !isParentChecked;
49
- return ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-col n-items-start n-gap-1", children: [(0, jsx_runtime_1.jsx)(react_1.Checkbox, { isChecked: isParentChecked, isIndeterminate: isParentIndeterminate, label: "Parent checkbox", onChange: (event) => {
49
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-start gap-1", children: [(0, jsx_runtime_1.jsx)(react_1.Checkbox, { isChecked: isParentChecked, isIndeterminate: isParentIndeterminate, label: "Parent checkbox", onChange: (event) => {
50
50
  handleParentCheckboxChange(event);
51
- } }), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { className: "n-ml-7", isChecked: childCheckboxes.childOne, label: "Child checkbox 1", onChange: () => handleChildCheckboxChange('childOne') }), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { className: "n-ml-7", isChecked: childCheckboxes.childTwo, label: "Child checkbox 2", onChange: () => handleChildCheckboxChange('childTwo') }), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { className: "n-ml-7", isChecked: childCheckboxes.childThree, label: "Child checkbox 3", onChange: () => handleChildCheckboxChange('childThree') })] }));
51
+ } }), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { className: "ml-7", isChecked: childCheckboxes.childOne, label: "Child checkbox 1", onChange: () => handleChildCheckboxChange('childOne') }), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { className: "ml-7", isChecked: childCheckboxes.childTwo, label: "Child checkbox 2", onChange: () => handleChildCheckboxChange('childTwo') }), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { className: "ml-7", isChecked: childCheckboxes.childThree, label: "Child checkbox 3", onChange: () => handleChildCheckboxChange('childThree') })] }));
52
52
  };
53
53
  exports.default = Component;
54
54
  //# sourceMappingURL=checkbox-full.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox-full.story.js","sourceRoot":"","sources":["../../../../src/checkbox/stories/checkbox-full.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,mDAAiD;AAEjD,4CAA4C;AAC5C,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,IAAA,gBAAQ,EAAC;QACrD,QAAQ,EAAE,KAAK;QACf,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,KAAK;KAChB,CAAC,CAAC;IAEH,MAAM,0BAA0B,GAAG,CACjC,KAA0C,EAC1C,EAAE;QACF,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;QAEvC,0DAA0D;QAC1D,kBAAkB,CAAC;YACjB,QAAQ,EAAE,SAAS;YACnB,UAAU,EAAE,SAAS;YACrB,QAAQ,EAAE,SAAS;SACpB,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,yBAAyB,GAAG,CAChC,QAAsC,EACtC,EAAE;QACF,wCAAwC;QACxC,kBAAkB,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,iCAC7B,SAAS,KACZ,CAAC,QAAQ,CAAC,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,IAChC,CAAC,CAAC;IACN,CAAC,CAAC;IAEF,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,KAAK,CAC1D,CAAC,cAAc,EAAE,EAAE,CAAC,cAAc,CACnC,CAAC;IAEF,MAAM,qBAAqB,GACzB,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,CAAC,cAAc,EAAE,EAAE,CAAC,cAAc,CAAC;QACvE,CAAC,eAAe,CAAC;IAEnB,OAAO,CACL,iCAAK,SAAS,EAAC,yCAAyC,aACtD,uBAAC,gBAAQ,IACP,SAAS,EAAE,eAAe,EAC1B,eAAe,EAAE,qBAAqB,EACtC,KAAK,EAAC,iBAAiB,EACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;oBAClB,0BAA0B,CAAC,KAAK,CAAC,CAAC;gBACpC,CAAC,GACD,EACF,uBAAC,gBAAQ,IACP,SAAS,EAAC,QAAQ,EAClB,SAAS,EAAE,eAAe,CAAC,QAAQ,EACnC,KAAK,EAAC,kBAAkB,EACxB,QAAQ,EAAE,GAAG,EAAE,CAAC,yBAAyB,CAAC,UAAU,CAAC,GACrD,EACF,uBAAC,gBAAQ,IACP,SAAS,EAAC,QAAQ,EAClB,SAAS,EAAE,eAAe,CAAC,QAAQ,EACnC,KAAK,EAAC,kBAAkB,EACxB,QAAQ,EAAE,GAAG,EAAE,CAAC,yBAAyB,CAAC,UAAU,CAAC,GACrD,EACF,uBAAC,gBAAQ,IACP,SAAS,EAAC,QAAQ,EAClB,SAAS,EAAE,eAAe,CAAC,UAAU,EACrC,KAAK,EAAC,kBAAkB,EACxB,QAAQ,EAAE,GAAG,EAAE,CAAC,yBAAyB,CAAC,YAAY,CAAC,GACvD,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Checkbox } from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [childCheckboxes, setChildCheckboxes] = useState({\n childOne: false,\n childThree: true,\n childTwo: false,\n });\n\n const handleParentCheckboxChange = (\n event: React.ChangeEvent<HTMLInputElement>,\n ) => {\n const isChecked = event.target.checked;\n\n // Update child checkboxes based on parent checkbox state.\n setChildCheckboxes({\n childOne: isChecked,\n childThree: isChecked,\n childTwo: isChecked,\n });\n };\n\n const handleChildCheckboxChange = (\n childKey: keyof typeof childCheckboxes,\n ) => {\n // Set currently clicked child checkbox.\n setChildCheckboxes((prevState) => ({\n ...prevState,\n [childKey]: !prevState[childKey],\n }));\n };\n\n const isParentChecked = Object.values(childCheckboxes).every(\n (isChildChecked) => isChildChecked,\n );\n\n const isParentIndeterminate =\n Object.values(childCheckboxes).some((isChildChecked) => isChildChecked) &&\n !isParentChecked;\n\n return (\n <div className=\"n-flex n-flex-col n-items-start n-gap-1\">\n <Checkbox\n isChecked={isParentChecked}\n isIndeterminate={isParentIndeterminate}\n label=\"Parent checkbox\"\n onChange={(event) => {\n handleParentCheckboxChange(event);\n }}\n />\n <Checkbox\n className=\"n-ml-7\"\n isChecked={childCheckboxes.childOne}\n label=\"Child checkbox 1\"\n onChange={() => handleChildCheckboxChange('childOne')}\n />\n <Checkbox\n className=\"n-ml-7\"\n isChecked={childCheckboxes.childTwo}\n label=\"Child checkbox 2\"\n onChange={() => handleChildCheckboxChange('childTwo')}\n />\n <Checkbox\n className=\"n-ml-7\"\n isChecked={childCheckboxes.childThree}\n label=\"Child checkbox 3\"\n onChange={() => handleChildCheckboxChange('childThree')}\n />\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"checkbox-full.story.js","sourceRoot":"","sources":["../../../../src/checkbox/stories/checkbox-full.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,mDAAiD;AAEjD,4CAA4C;AAC5C,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,IAAA,gBAAQ,EAAC;QACrD,QAAQ,EAAE,KAAK;QACf,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,KAAK;KAChB,CAAC,CAAC;IAEH,MAAM,0BAA0B,GAAG,CACjC,KAA0C,EAC1C,EAAE;QACF,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;QAEvC,0DAA0D;QAC1D,kBAAkB,CAAC;YACjB,QAAQ,EAAE,SAAS;YACnB,UAAU,EAAE,SAAS;YACrB,QAAQ,EAAE,SAAS;SACpB,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,yBAAyB,GAAG,CAChC,QAAsC,EACtC,EAAE;QACF,wCAAwC;QACxC,kBAAkB,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,iCAC7B,SAAS,KACZ,CAAC,QAAQ,CAAC,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,IAChC,CAAC,CAAC;IACN,CAAC,CAAC;IAEF,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,KAAK,CAC1D,CAAC,cAAc,EAAE,EAAE,CAAC,cAAc,CACnC,CAAC;IAEF,MAAM,qBAAqB,GACzB,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,CAAC,cAAc,EAAE,EAAE,CAAC,cAAc,CAAC;QACvE,CAAC,eAAe,CAAC;IAEnB,OAAO,CACL,iCAAK,SAAS,EAAC,iCAAiC,aAC9C,uBAAC,gBAAQ,IACP,SAAS,EAAE,eAAe,EAC1B,eAAe,EAAE,qBAAqB,EACtC,KAAK,EAAC,iBAAiB,EACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;oBAClB,0BAA0B,CAAC,KAAK,CAAC,CAAC;gBACpC,CAAC,GACD,EACF,uBAAC,gBAAQ,IACP,SAAS,EAAC,MAAM,EAChB,SAAS,EAAE,eAAe,CAAC,QAAQ,EACnC,KAAK,EAAC,kBAAkB,EACxB,QAAQ,EAAE,GAAG,EAAE,CAAC,yBAAyB,CAAC,UAAU,CAAC,GACrD,EACF,uBAAC,gBAAQ,IACP,SAAS,EAAC,MAAM,EAChB,SAAS,EAAE,eAAe,CAAC,QAAQ,EACnC,KAAK,EAAC,kBAAkB,EACxB,QAAQ,EAAE,GAAG,EAAE,CAAC,yBAAyB,CAAC,UAAU,CAAC,GACrD,EACF,uBAAC,gBAAQ,IACP,SAAS,EAAC,MAAM,EAChB,SAAS,EAAE,eAAe,CAAC,UAAU,EACrC,KAAK,EAAC,kBAAkB,EACxB,QAAQ,EAAE,GAAG,EAAE,CAAC,yBAAyB,CAAC,YAAY,CAAC,GACvD,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Checkbox } from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [childCheckboxes, setChildCheckboxes] = useState({\n childOne: false,\n childThree: true,\n childTwo: false,\n });\n\n const handleParentCheckboxChange = (\n event: React.ChangeEvent<HTMLInputElement>,\n ) => {\n const isChecked = event.target.checked;\n\n // Update child checkboxes based on parent checkbox state.\n setChildCheckboxes({\n childOne: isChecked,\n childThree: isChecked,\n childTwo: isChecked,\n });\n };\n\n const handleChildCheckboxChange = (\n childKey: keyof typeof childCheckboxes,\n ) => {\n // Set currently clicked child checkbox.\n setChildCheckboxes((prevState) => ({\n ...prevState,\n [childKey]: !prevState[childKey],\n }));\n };\n\n const isParentChecked = Object.values(childCheckboxes).every(\n (isChildChecked) => isChildChecked,\n );\n\n const isParentIndeterminate =\n Object.values(childCheckboxes).some((isChildChecked) => isChildChecked) &&\n !isParentChecked;\n\n return (\n <div className=\"flex flex-col items-start gap-1\">\n <Checkbox\n isChecked={isParentChecked}\n isIndeterminate={isParentIndeterminate}\n label=\"Parent checkbox\"\n onChange={(event) => {\n handleParentCheckboxChange(event);\n }}\n />\n <Checkbox\n className=\"ml-7\"\n isChecked={childCheckboxes.childOne}\n label=\"Child checkbox 1\"\n onChange={() => handleChildCheckboxChange('childOne')}\n />\n <Checkbox\n className=\"ml-7\"\n isChecked={childCheckboxes.childTwo}\n label=\"Child checkbox 2\"\n onChange={() => handleChildCheckboxChange('childTwo')}\n />\n <Checkbox\n className=\"ml-7\"\n isChecked={childCheckboxes.childThree}\n label=\"Child checkbox 3\"\n onChange={() => handleChildCheckboxChange('childThree')}\n />\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -25,7 +25,7 @@ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
25
  const react_1 = require("@neo4j-ndl/react");
26
26
  const icons_1 = require("@neo4j-ndl/react/icons");
27
27
  const Component = () => {
28
- return ((0, jsx_runtime_1.jsx)("div", { className: "n-flex n-flex-col n-gap-token-16", children: (0, jsx_runtime_1.jsx)("div", { className: "n-flex n-flex-row n-gap-token-16 n-items-center", children: (0, jsx_runtime_1.jsx)(react_1.CleanIconButton, { description: "Search", descriptionKbdProps: { keys: ['B'], modifierKeys: ['meta'] }, variant: "neutral", children: (0, jsx_runtime_1.jsx)(icons_1.MagnifyingGlassIconOutline, {}) }) }) }));
28
+ return ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-token-16", children: (0, jsx_runtime_1.jsx)("div", { className: "flex flex-row gap-token-16 items-center", children: (0, jsx_runtime_1.jsx)(react_1.CleanIconButton, { description: "Search", descriptionKbdProps: { keys: ['B'], modifierKeys: ['meta'] }, variant: "neutral", children: (0, jsx_runtime_1.jsx)(icons_1.MagnifyingGlassIconOutline, {}) }) }) }));
29
29
  };
30
30
  exports.default = Component;
31
31
  //# sourceMappingURL=clean-icon-button-keyboard-display.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"clean-icon-button-keyboard-display.story.js","sourceRoot":"","sources":["../../../../src/clean-icon-button/stories/clean-icon-button-keyboard-display.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAmD;AACnD,kDAAoE;AAEpE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,gCAAK,SAAS,EAAC,kCAAkC,YAC/C,gCAAK,SAAS,EAAC,iDAAiD,YAC9D,uBAAC,uBAAe,IACd,WAAW,EAAC,QAAQ,EACpB,mBAAmB,EAAE,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,EAAE,YAAY,EAAE,CAAC,MAAM,CAAC,EAAE,EAC5D,OAAO,EAAC,SAAS,YAEjB,uBAAC,kCAA0B,KAAG,GACd,GACd,GACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { CleanIconButton } 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\n description=\"Search\"\n descriptionKbdProps={{ keys: ['B'], modifierKeys: ['meta'] }}\n variant=\"neutral\"\n >\n <MagnifyingGlassIconOutline />\n </CleanIconButton>\n </div>\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"clean-icon-button-keyboard-display.story.js","sourceRoot":"","sources":["../../../../src/clean-icon-button/stories/clean-icon-button-keyboard-display.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAmD;AACnD,kDAAoE;AAEpE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,gCAAK,SAAS,EAAC,4BAA4B,YACzC,gCAAK,SAAS,EAAC,yCAAyC,YACtD,uBAAC,uBAAe,IACd,WAAW,EAAC,QAAQ,EACpB,mBAAmB,EAAE,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,EAAE,YAAY,EAAE,CAAC,MAAM,CAAC,EAAE,EAC5D,OAAO,EAAC,SAAS,YAEjB,uBAAC,kCAA0B,KAAG,GACd,GACd,GACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { CleanIconButton } 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\n description=\"Search\"\n descriptionKbdProps={{ keys: ['B'], modifierKeys: ['meta'] }}\n variant=\"neutral\"\n >\n <MagnifyingGlassIconOutline />\n </CleanIconButton>\n </div>\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -25,7 +25,7 @@ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
25
  const react_1 = require("@neo4j-ndl/react");
26
26
  const icons_1 = require("@neo4j-ndl/react/icons");
27
27
  const Component = () => {
28
- return ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-col n-gap-token-16", children: [(0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-row n-gap-token-16 n-items-center", children: [(0, jsx_runtime_1.jsx)(react_1.CleanIconButton, { description: "Search", size: "small", children: (0, jsx_runtime_1.jsx)(icons_1.MagnifyingGlassIconOutline, {}) }), (0, jsx_runtime_1.jsx)(react_1.Typography, { variant: "label", children: " Small" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-row n-gap-token-16 n-items-center", children: [(0, jsx_runtime_1.jsx)(react_1.CleanIconButton, { description: "Search", size: "medium", children: (0, jsx_runtime_1.jsx)(icons_1.MagnifyingGlassIconOutline, {}) }), (0, jsx_runtime_1.jsx)(react_1.Typography, { variant: "label", children: " Medium" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-row n-gap-token-16 n-items-center", children: [(0, jsx_runtime_1.jsx)(react_1.CleanIconButton, { description: "Search", size: "large", children: (0, jsx_runtime_1.jsx)(icons_1.MagnifyingGlassIconOutline, {}) }), (0, jsx_runtime_1.jsx)(react_1.Typography, { variant: "label", children: " Large" })] })] }));
28
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-token-16", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row gap-token-16 items-center", children: [(0, jsx_runtime_1.jsx)(react_1.CleanIconButton, { description: "Search", size: "small", children: (0, jsx_runtime_1.jsx)(icons_1.MagnifyingGlassIconOutline, {}) }), (0, jsx_runtime_1.jsx)(react_1.Typography, { variant: "label", children: " Small" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row gap-token-16 items-center", children: [(0, jsx_runtime_1.jsx)(react_1.CleanIconButton, { description: "Search", size: "medium", children: (0, jsx_runtime_1.jsx)(icons_1.MagnifyingGlassIconOutline, {}) }), (0, jsx_runtime_1.jsx)(react_1.Typography, { variant: "label", children: " Medium" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row gap-token-16 items-center", children: [(0, jsx_runtime_1.jsx)(react_1.CleanIconButton, { description: "Search", size: "large", children: (0, jsx_runtime_1.jsx)(icons_1.MagnifyingGlassIconOutline, {}) }), (0, jsx_runtime_1.jsx)(react_1.Typography, { variant: "label", children: " Large" })] })] }));
29
29
  };
30
30
  exports.default = Component;
31
31
  //# 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,mDAAiD;AAEjD,4CAA+D;AAC/D,kDAAoE;AAEpE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,kCAAkC,aAC/C,iCAAK,SAAS,EAAC,iDAAiD,aAC9D,uBAAC,uBAAe,IAAC,WAAW,EAAC,QAAQ,EAAC,IAAI,EAAC,OAAO,YAChD,uBAAC,kCAA0B,KAAG,GACd,EAClB,uBAAC,kBAAU,IAAC,OAAO,EAAC,OAAO,uBAAoB,IAC3C,EACN,iCAAK,SAAS,EAAC,iDAAiD,aAC9D,uBAAC,uBAAe,IAAC,WAAW,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,YACjD,uBAAC,kCAA0B,KAAG,GACd,EAClB,uBAAC,kBAAU,IAAC,OAAO,EAAC,OAAO,wBAAqB,IAC5C,EACN,iCAAK,SAAS,EAAC,iDAAiD,aAC9D,uBAAC,uBAAe,IAAC,WAAW,EAAC,QAAQ,EAAC,IAAI,EAAC,OAAO,YAChD,uBAAC,kCAA0B,KAAG,GACd,EAClB,uBAAC,kBAAU,IAAC,OAAO,EAAC,OAAO,uBAAoB,IAC3C,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { 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,mDAAiD;AAEjD,4CAA+D;AAC/D,kDAAoE;AAEpE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,4BAA4B,aACzC,iCAAK,SAAS,EAAC,yCAAyC,aACtD,uBAAC,uBAAe,IAAC,WAAW,EAAC,QAAQ,EAAC,IAAI,EAAC,OAAO,YAChD,uBAAC,kCAA0B,KAAG,GACd,EAClB,uBAAC,kBAAU,IAAC,OAAO,EAAC,OAAO,uBAAoB,IAC3C,EACN,iCAAK,SAAS,EAAC,yCAAyC,aACtD,uBAAC,uBAAe,IAAC,WAAW,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,YACjD,uBAAC,kCAA0B,KAAG,GACd,EAClB,uBAAC,kBAAU,IAAC,OAAO,EAAC,OAAO,wBAAqB,IAC5C,EACN,iCAAK,SAAS,EAAC,yCAAyC,aACtD,uBAAC,uBAAe,IAAC,WAAW,EAAC,QAAQ,EAAC,IAAI,EAAC,OAAO,YAChD,uBAAC,kCAA0B,KAAG,GACd,EAClB,uBAAC,kBAAU,IAAC,OAAO,EAAC,OAAO,uBAAoB,IAC3C,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { 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"]}
@@ -25,7 +25,7 @@ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
25
  const react_1 = require("@neo4j-ndl/react");
26
26
  const icons_1 = require("@neo4j-ndl/react/icons");
27
27
  const Component = () => {
28
- return ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-col n-gap-token-16", children: [(0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-row n-gap-token-16 n-items-center", children: [(0, jsx_runtime_1.jsx)(react_1.CleanIconButton, { description: "Search", variant: "neutral", children: (0, jsx_runtime_1.jsx)(icons_1.MagnifyingGlassIconOutline, {}) }), (0, jsx_runtime_1.jsx)(react_1.Typography, { variant: "label", children: "Default" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-row n-gap-token-16 n-items-center", children: [(0, jsx_runtime_1.jsx)(react_1.CleanIconButton, { description: "Search", variant: "danger", children: (0, jsx_runtime_1.jsx)(icons_1.MagnifyingGlassIconOutline, {}) }), (0, jsx_runtime_1.jsx)(react_1.Typography, { variant: "label", children: "Danger" })] })] }));
28
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-token-16", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row gap-token-16 items-center", children: [(0, jsx_runtime_1.jsx)(react_1.CleanIconButton, { description: "Search", variant: "neutral", children: (0, jsx_runtime_1.jsx)(icons_1.MagnifyingGlassIconOutline, {}) }), (0, jsx_runtime_1.jsx)(react_1.Typography, { variant: "label", children: "Default" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row gap-token-16 items-center", children: [(0, jsx_runtime_1.jsx)(react_1.CleanIconButton, { description: "Search", variant: "danger", children: (0, jsx_runtime_1.jsx)(icons_1.MagnifyingGlassIconOutline, {}) }), (0, jsx_runtime_1.jsx)(react_1.Typography, { variant: "label", children: "Danger" })] })] }));
29
29
  };
30
30
  exports.default = Component;
31
31
  //# 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,mDAAiD;AAEjD,4CAA+D;AAC/D,kDAAoE;AAEpE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,kCAAkC,aAC/C,iCAAK,SAAS,EAAC,iDAAiD,aAC9D,uBAAC,uBAAe,IAAC,WAAW,EAAC,QAAQ,EAAC,OAAO,EAAC,SAAS,YACrD,uBAAC,kCAA0B,KAAG,GACd,EAClB,uBAAC,kBAAU,IAAC,OAAO,EAAC,OAAO,wBAAqB,IAC5C,EACN,iCAAK,SAAS,EAAC,iDAAiD,aAC9D,uBAAC,uBAAe,IAAC,WAAW,EAAC,QAAQ,EAAC,OAAO,EAAC,QAAQ,YACpD,uBAAC,kCAA0B,KAAG,GACd,EAClB,uBAAC,kBAAU,IAAC,OAAO,EAAC,OAAO,uBAAoB,IAC3C,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { 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,mDAAiD;AAEjD,4CAA+D;AAC/D,kDAAoE;AAEpE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,4BAA4B,aACzC,iCAAK,SAAS,EAAC,yCAAyC,aACtD,uBAAC,uBAAe,IAAC,WAAW,EAAC,QAAQ,EAAC,OAAO,EAAC,SAAS,YACrD,uBAAC,kCAA0B,KAAG,GACd,EAClB,uBAAC,kBAAU,IAAC,OAAO,EAAC,OAAO,wBAAqB,IAC5C,EACN,iCAAK,SAAS,EAAC,yCAAyC,aACtD,uBAAC,uBAAe,IAAC,WAAW,EAAC,QAAQ,EAAC,OAAO,EAAC,QAAQ,YACpD,uBAAC,kCAA0B,KAAG,GACd,EAClB,uBAAC,kBAAU,IAAC,OAAO,EAAC,OAAO,uBAAoB,IAC3C,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { 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"]}
@@ -24,7 +24,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
24
24
  require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
25
  const react_1 = require("@neo4j-ndl/react");
26
26
  const Component = () => {
27
- return ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-gap-token-16", children: [(0, jsx_runtime_1.jsx)(react_1.ClipboardButton, { textToCopy: "This is the text to copy", size: "small" }), (0, jsx_runtime_1.jsx)(react_1.ClipboardButton, { textToCopy: "This is the text to copy", size: "medium" }), (0, jsx_runtime_1.jsx)(react_1.ClipboardButton, { textToCopy: "This is the text to copy", size: "large" })] }));
27
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-token-16", children: [(0, jsx_runtime_1.jsx)(react_1.ClipboardButton, { textToCopy: "This is the text to copy", size: "small" }), (0, jsx_runtime_1.jsx)(react_1.ClipboardButton, { textToCopy: "This is the text to copy", size: "medium" }), (0, jsx_runtime_1.jsx)(react_1.ClipboardButton, { textToCopy: "This is the text to copy", size: "large" })] }));
28
28
  };
29
29
  exports.default = Component;
30
30
  //# 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,mDAAiD;AAEjD,4CAAmD;AAEnD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,uBAAuB,aACpC,uBAAC,uBAAe,IAAC,UAAU,EAAC,0BAA0B,EAAC,IAAI,EAAC,OAAO,GAAG,EACtE,uBAAC,uBAAe,IAAC,UAAU,EAAC,0BAA0B,EAAC,IAAI,EAAC,QAAQ,GAAG,EACvE,uBAAC,uBAAe,IAAC,UAAU,EAAC,0BAA0B,EAAC,IAAI,EAAC,OAAO,GAAG,IAClE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { 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,mDAAiD;AAEjD,4CAAmD;AAEnD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,mBAAmB,aAChC,uBAAC,uBAAe,IAAC,UAAU,EAAC,0BAA0B,EAAC,IAAI,EAAC,OAAO,GAAG,EACtE,uBAAC,uBAAe,IAAC,UAAU,EAAC,0BAA0B,EAAC,IAAI,EAAC,QAAQ,GAAG,EACvE,uBAAC,uBAAe,IAAC,UAAU,EAAC,0BAA0B,EAAC,IAAI,EAAC,OAAO,GAAG,IAClE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { 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"]}
@@ -44,13 +44,9 @@ const ChevronUpIconOutline_1 = require("../icons/generated/heroIcons/ChevronUpIc
44
44
  const use_code_language_1 = require("./hooks/use-code-language");
45
45
  const use_code_theme_1 = require("./hooks/use-code-theme");
46
46
  const use_expandable_1 = require("./hooks/use-expandable");
47
- const defaultElement = 'div';
48
47
  const CodeBlock = (_a) => {
49
48
  var _b, _c;
50
- 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"])
51
- // TODO: Should not be polymorphic (at least not defaulting to a button)
52
- ;
53
- const Component = as !== null && as !== void 0 ? as : defaultElement;
49
+ 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"]);
54
50
  const { containerHeight, isExpanded, toggleExpand, hasOverflowingContent, ref: syntaxHighlighterWrapperRef, } = (0, use_expandable_1.useExpandable)(maxHeight, code);
55
51
  const codeTheme = (0, use_code_theme_1.useCodeTheme)(theme);
56
52
  const codeLanguage = (0, use_code_language_1.useCodeLanguage)(language);
@@ -61,7 +57,7 @@ const CodeBlock = (_a) => {
61
57
  const rightPadding = hasHeading
62
58
  ? 0
63
59
  : Math.max(numberOfActions * 36, (shouldShowExpandButton ? 1 : 0) * 36) + 8;
64
- return ((0, jsx_runtime_1.jsxs)(Component, Object.assign({ ref: ref, className: (0, classnames_1.default)('ndl-code-block-container', className), style: Object.assign({ height: containerHeight }, style) }, restProps, htmlAttributes, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "ndl-code-block-layout", children: [hasHeading && ((0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)('ndl-code-block-title', {
60
+ return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ ref: ref, className: (0, classnames_1.default)('ndl-code-block-container', className), style: Object.assign({ height: containerHeight }, style) }, restProps, htmlAttributes, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "ndl-code-block-layout", children: [hasHeading && ((0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)('ndl-code-block-title', {
65
61
  'ndl-disabled': isDisabled,
66
62
  }), style: {
67
63
  maxWidth: `calc(100% - ${((_c = actions === null || actions === void 0 ? void 0 : actions.length) !== null && _c !== void 0 ? _c : 0) * 36 + 20}px)`,
@@ -75,7 +71,7 @@ const CodeBlock = (_a) => {
75
71
  lineHeight: '1',
76
72
  padding: `0 ${rightPadding}px 0.75em 0.75em`,
77
73
  width: 'fit-content',
78
- } }), codeTagProps: { className: 'n-code' },
74
+ } }), codeTagProps: { className: 'ndl-typography-code' },
79
75
  // Turn on 'shouldShowLineNumbers' & 'wrapLongLines' at the same time, the display is wrong
80
76
  // https://github.com/react-syntax-highlighter/react-syntax-highlighter/issues/402
81
77
  // wrapLongLines
@@ -1 +1 @@
1
- {"version":3,"file":"CodeBlock.js","sourceRoot":"","sources":["../../../src/code-block/CodeBlock.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,4DAAoC;AAEpC,uEAA2E;AAG3E,4DAAuD;AAEvD,gGAA6F;AAC7F,4FAAyF;AAGzF,iEAA4D;AAC5D,2DAAsD;AACtD,2DAAuD;AAavD,MAAM,cAAc,GAAG,KAAK,CAAC;AAEtB,MAAM,SAAS,GAAG,CAAyC,EAgBtB,EAAE,EAAE;;QAhBkB,EAChE,EAAE,EACF,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,qBAAqB,EACrB,KAAK,EACL,OAAO,EACP,OAAO,EACP,UAAU,EACV,SAAS,EACT,KAAK,EACL,cAAc,EACd,GAAG,OAGuC,EAFvC,SAAS,cAdoD,4JAgBjE,CAFa;IACZ,wEAAwE;;IAExE,MAAM,SAAS,GAAsB,EAAE,aAAF,EAAE,cAAF,EAAE,GAAI,cAAc,CAAC;IAE1D,MAAM,EACJ,eAAe,EACf,UAAU,EACV,YAAY,EACZ,qBAAqB,EACrB,GAAG,EAAE,2BAA2B,GACjC,GAAG,IAAA,8BAAa,EAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IACnC,MAAM,SAAS,GAAG,IAAA,6BAAY,EAAC,KAAK,CAAC,CAAC;IACtC,MAAM,YAAY,GAAG,IAAA,mCAAe,EAAC,QAAQ,CAAC,CAAC;IAE/C,MAAM,YAAY,GAAG,SAAS,KAAK,SAAS,CAAC;IAC7C,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACpC,MAAM,eAAe,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,CAAC,CAAC;IAE7C,MAAM,sBAAsB,GAAG,YAAY,IAAI,qBAAqB,CAAC;IACrE,MAAM,YAAY,GAAG,UAAU;QAC7B,CAAC,CAAC,CAAC;QACH,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,eAAe,GAAG,EAAE,EAAE,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC;IAE9E,OAAO,CACL,wBAAC,SAAS,kBACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,oBAAU,EAAC,0BAA0B,EAAE,SAAS,CAAC,EAC5D,KAAK,kBAAI,MAAM,EAAE,eAAe,IAAK,KAAK,KACtC,SAAS,EACT,cAAc,eAElB,iCAAK,SAAS,EAAC,uBAAuB,aACnC,UAAU,IAAI,CACb,gCACE,SAAS,EAAE,IAAA,oBAAU,EAAC,sBAAsB,EAAE;4BAC5C,cAAc,EAAE,UAAU;yBAC3B,CAAC,EACF,KAAK,EAAE;4BACL,QAAQ,EAAE,eAAe,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK;yBAC/D,iBACW,sBAAsB,YAEjC,OAAO,GACJ,CACP,EACD,gCACE,SAAS,EAAE,IAAA,oBAAU,EAAC,4BAA4B,EAAE;4BAClD,cAAc,EAAE,UAAU;yBAC3B,CAAC,EACF,KAAK,EAAE;4BACL,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAC,MAAM;yBACzD,YAED,gCACE,GAAG,EAAE,2BAA2B,EAChC,SAAS,EAAC,uBAAuB,EACjC,QAAQ,EAAE,CAAC,EACX,IAAI,EAAC,QAAQ,gBACD,gBAAgB,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,YAE5D,uBAAC,qCAAiB,IAChB,QAAQ,EAAE,YAAY,EACtB,KAAK,kCACA,SAAS,KACZ,yBAAyB,EAAE;wCACzB,MAAM,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,QAAQ,EAAE;gCACrC,2FAA2F;gCAC3F,kFAAkF;gCAClF,gBAAgB;gCAChB,eAAe,EAAE,qBAAqB,YAErC,IAAI,GACa,GAChB,GACF,IACF,EACN,gCACE,SAAS,EAAE,IAAA,oBAAU,EAAC,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,uBAAC,mCAAe,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,gCAAK,SAAS,EAAC,8BAA8B,YAC3C,uBAAC,mCAAe,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,uBAAC,2CAAoB,KAAG,CAAC,CAAC,CAAC,uBAAC,+CAAsB,KAAG,GACnD,GACd,CACP,KACS,CACb,CAAC;AACJ,CAAC,CAAC;AArIW,QAAA,SAAS,aAqIpB","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.js","sourceRoot":"","sources":["../../../src/code-block/CodeBlock.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,4DAAoC;AAEpC,uEAA2E;AAG3E,4DAAuD;AAEvD,gGAA6F;AAC7F,4FAAyF;AAGzF,iEAA4D;AAC5D,2DAAsD;AACtD,2DAAuD;AAahD,MAAM,SAAS,GAAG,CAAC,EAcW,EAAE,EAAE;;QAdf,EACxB,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,qBAAqB,EACrB,KAAK,EACL,OAAO,EACP,OAAO,EACP,UAAU,EACV,SAAS,EACT,KAAK,EACL,cAAc,EACd,GAAG,OAEgC,EADhC,SAAS,cAbY,sJAczB,CADa;IAEZ,MAAM,EACJ,eAAe,EACf,UAAU,EACV,YAAY,EACZ,qBAAqB,EACrB,GAAG,EAAE,2BAA2B,GACjC,GAAG,IAAA,8BAAa,EAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IACnC,MAAM,SAAS,GAAG,IAAA,6BAAY,EAAC,KAAK,CAAC,CAAC;IACtC,MAAM,YAAY,GAAG,IAAA,mCAAe,EAAC,QAAQ,CAAC,CAAC;IAE/C,MAAM,YAAY,GAAG,SAAS,KAAK,SAAS,CAAC;IAC7C,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACpC,MAAM,eAAe,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,CAAC,CAAC;IAE7C,MAAM,sBAAsB,GAAG,YAAY,IAAI,qBAAqB,CAAC;IACrE,MAAM,YAAY,GAAG,UAAU;QAC7B,CAAC,CAAC,CAAC;QACH,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,eAAe,GAAG,EAAE,EAAE,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC;IAE9E,OAAO,CACL,+CACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,oBAAU,EAAC,0BAA0B,EAAE,SAAS,CAAC,EAC5D,KAAK,kBAAI,MAAM,EAAE,eAAe,IAAK,KAAK,KACtC,SAAS,EACT,cAAc,eAElB,iCAAK,SAAS,EAAC,uBAAuB,aACnC,UAAU,IAAI,CACb,gCACE,SAAS,EAAE,IAAA,oBAAU,EAAC,sBAAsB,EAAE;4BAC5C,cAAc,EAAE,UAAU;yBAC3B,CAAC,EACF,KAAK,EAAE;4BACL,QAAQ,EAAE,eAAe,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK;yBAC/D,iBACW,sBAAsB,YAEjC,OAAO,GACJ,CACP,EACD,gCACE,SAAS,EAAE,IAAA,oBAAU,EAAC,4BAA4B,EAAE;4BAClD,cAAc,EAAE,UAAU;yBAC3B,CAAC,EACF,KAAK,EAAE;4BACL,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAC,MAAM;yBACzD,YAED,gCACE,GAAG,EAAE,2BAA2B,EAChC,SAAS,EAAC,uBAAuB,EACjC,QAAQ,EAAE,CAAC,EACX,IAAI,EAAC,QAAQ,gBACD,gBAAgB,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,YAE5D,uBAAC,qCAAiB,IAChB,QAAQ,EAAE,YAAY,EACtB,KAAK,kCACA,SAAS,KACZ,yBAAyB,EAAE;wCACzB,MAAM,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,gCACE,SAAS,EAAE,IAAA,oBAAU,EAAC,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,uBAAC,mCAAe,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,gCAAK,SAAS,EAAC,8BAA8B,YAC3C,uBAAC,mCAAe,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,uBAAC,2CAAoB,KAAG,CAAC,CAAC,CAAC,uBAAC,+CAAsB,KAAG,GACnD,GACd,CACP,KACG,CACP,CAAC;AACJ,CAAC,CAAC;AAjIW,QAAA,SAAS,aAiIpB","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"]}
@@ -28,13 +28,13 @@ const example_code_snippets_1 = require("./example-code-snippets");
28
28
  const Component = () => {
29
29
  return ((0, jsx_runtime_1.jsx)(react_1.CodeBlock, { code: example_code_snippets_1.SHORT_CODE_EXAMPLE, language: "typescript", heading: "Code Header", isDisabled: true, actions: [
30
30
  {
31
- children: ((0, jsx_runtime_1.jsx)(icons_1.Square2StackIconOutline, { className: "n-text-neutral-text-icon" })),
31
+ children: ((0, jsx_runtime_1.jsx)(icons_1.Square2StackIconOutline, { className: "text-neutral-text-icon" })),
32
32
  description: 'copy',
33
33
  htmlAttributes: { title: 'copy' },
34
34
  onClick: () => alert('This should not trigger when disabled'),
35
35
  },
36
36
  {
37
- children: (0, jsx_runtime_1.jsx)(icons_1.PlayCircleIconOutline, { className: "n-text-primary-icon" }),
37
+ children: (0, jsx_runtime_1.jsx)(icons_1.PlayCircleIconOutline, { className: "text-primary-icon" }),
38
38
  description: 'run',
39
39
  htmlAttributes: { title: 'run' },
40
40
  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,mDAAiD;AAEjD,4CAA6C;AAC7C,kDAGgC;AAEhC,mEAA6D;AAE7D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,iBAAS,IACR,IAAI,EAAE,0CAAkB,EACxB,QAAQ,EAAC,YAAY,EACrB,OAAO,EAAC,aAAa,EACrB,UAAU,QACV,OAAO,EAAE;YACP;gBACE,QAAQ,EAAE,CACR,uBAAC,+BAAuB,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,uBAAC,6BAAqB,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,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { 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,mDAAiD;AAEjD,4CAA6C;AAC7C,kDAGgC;AAEhC,mEAA6D;AAE7D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,iBAAS,IACR,IAAI,EAAE,0CAAkB,EACxB,QAAQ,EAAC,YAAY,EACrB,OAAO,EAAC,aAAa,EACrB,UAAU,QACV,OAAO,EAAE;YACP;gBACE,QAAQ,EAAE,CACR,uBAAC,+BAAuB,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,uBAAC,6BAAqB,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,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { 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"]}
@@ -28,13 +28,13 @@ const example_code_snippets_1 = require("./example-code-snippets");
28
28
  const Component = () => {
29
29
  return ((0, jsx_runtime_1.jsx)(react_1.CodeBlock, { code: example_code_snippets_1.LONG_CODE_EXAMPLE, maxHeight: 320, language: "typescript", shouldShowLineNumbers: true, theme: "ndl-code-light", heading: "Code Header", actions: [
30
30
  {
31
- children: ((0, jsx_runtime_1.jsx)(icons_1.Square2StackIconOutline, { className: "n-text-neutral-text-icon" })),
31
+ children: ((0, jsx_runtime_1.jsx)(icons_1.Square2StackIconOutline, { className: "text-neutral-text-icon" })),
32
32
  description: 'copy',
33
33
  htmlAttributes: { title: 'copy' },
34
34
  onClick: () => alert('copied'),
35
35
  },
36
36
  {
37
- children: (0, jsx_runtime_1.jsx)(icons_1.PlayCircleIconOutline, { className: "n-text-primary-icon" }),
37
+ children: (0, jsx_runtime_1.jsx)(icons_1.PlayCircleIconOutline, { className: "text-primary-icon" }),
38
38
  description: 'run',
39
39
  htmlAttributes: { title: 'run' },
40
40
  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,mDAAiD;AAEjD,4CAA6C;AAC7C,kDAGgC;AAEhC,mEAA4D;AAE5D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,iBAAS,IACR,IAAI,EAAE,yCAAiB,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,uBAAC,+BAAuB,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,uBAAC,6BAAqB,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,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { 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,mDAAiD;AAEjD,4CAA6C;AAC7C,kDAGgC;AAEhC,mEAA4D;AAE5D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,iBAAS,IACR,IAAI,EAAE,yCAAiB,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,uBAAC,+BAAuB,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,uBAAC,6BAAqB,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,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { 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"]}
@@ -25,7 +25,7 @@ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
25
  const react_1 = require("@neo4j-ndl/react");
26
26
  const example_code_snippets_1 = require("./example-code-snippets");
27
27
  const Component = () => {
28
- return ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-col n-gap-token-8", children: [(0, jsx_runtime_1.jsx)(react_1.CodeBlock, { code: example_code_snippets_1.LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES.TYPESCRIPT, language: "typescript", heading: "TypeScript", shouldShowLineNumbers: true }), (0, jsx_runtime_1.jsx)(react_1.CodeBlock, { code: example_code_snippets_1.LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES.CYPHER, language: "cypher", heading: "Cypher Query Language", shouldShowLineNumbers: true }), (0, jsx_runtime_1.jsx)(react_1.CodeBlock, { code: example_code_snippets_1.LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES.JSON, language: "json", heading: "JSON Configuration", shouldShowLineNumbers: true })] }));
28
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-token-8", children: [(0, jsx_runtime_1.jsx)(react_1.CodeBlock, { code: example_code_snippets_1.LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES.TYPESCRIPT, language: "typescript", heading: "TypeScript", shouldShowLineNumbers: true }), (0, jsx_runtime_1.jsx)(react_1.CodeBlock, { code: example_code_snippets_1.LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES.CYPHER, language: "cypher", heading: "Cypher Query Language", shouldShowLineNumbers: true }), (0, jsx_runtime_1.jsx)(react_1.CodeBlock, { code: example_code_snippets_1.LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES.JSON, language: "json", heading: "JSON Configuration", shouldShowLineNumbers: true })] }));
29
29
  };
30
30
  exports.default = Component;
31
31
  //# 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,mDAAiD;AAEjD,4CAA6C;AAE7C,mEAAgF;AAEhF,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,iCAAiC,aAC9C,uBAAC,iBAAS,IACR,IAAI,EAAE,6DAAqC,CAAC,UAAU,EACtD,QAAQ,EAAC,YAAY,EACrB,OAAO,EAAC,YAAY,EACpB,qBAAqB,SACrB,EAEF,uBAAC,iBAAS,IACR,IAAI,EAAE,6DAAqC,CAAC,MAAM,EAClD,QAAQ,EAAC,QAAQ,EACjB,OAAO,EAAC,uBAAuB,EAC/B,qBAAqB,SACrB,EAEF,uBAAC,iBAAS,IACR,IAAI,EAAE,6DAAqC,CAAC,IAAI,EAChD,QAAQ,EAAC,MAAM,EACf,OAAO,EAAC,oBAAoB,EAC5B,qBAAqB,SACrB,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { 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,mDAAiD;AAEjD,4CAA6C;AAE7C,mEAAgF;AAEhF,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,2BAA2B,aACxC,uBAAC,iBAAS,IACR,IAAI,EAAE,6DAAqC,CAAC,UAAU,EACtD,QAAQ,EAAC,YAAY,EACrB,OAAO,EAAC,YAAY,EACpB,qBAAqB,SACrB,EAEF,uBAAC,iBAAS,IACR,IAAI,EAAE,6DAAqC,CAAC,MAAM,EAClD,QAAQ,EAAC,QAAQ,EACjB,OAAO,EAAC,uBAAuB,EAC/B,qBAAqB,SACrB,EAEF,uBAAC,iBAAS,IACR,IAAI,EAAE,6DAAqC,CAAC,IAAI,EAChD,QAAQ,EAAC,MAAM,EACf,OAAO,EAAC,oBAAoB,EAC5B,qBAAqB,SACrB,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { 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"]}