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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1185) hide show
  1. package/lib/LICENSES.txt +3453 -9363
  2. package/lib/NOTICE.txt +1385 -1963
  3. package/lib/cjs/_generated/style-rules/index.js +5 -11
  4. package/lib/cjs/_generated/style-rules/index.js.map +1 -1
  5. package/lib/cjs/_generated/style-rules/literal-guards.js +50 -0
  6. package/lib/cjs/_generated/style-rules/literal-guards.js.map +1 -0
  7. package/lib/cjs/_generated/style-rules/literal-schemas.js +6 -21
  8. package/lib/cjs/_generated/style-rules/literal-schemas.js.map +1 -1
  9. package/lib/cjs/{text-overflow/index.js → _generated/style-rules/literal-types.js} +9 -6
  10. package/lib/cjs/_generated/style-rules/literal-types.js.map +1 -0
  11. package/lib/cjs/_generated/style-rules/numeric-utils.js.map +1 -1
  12. package/lib/cjs/_generated/style-rules/range-utils.js.map +1 -1
  13. package/lib/cjs/ai/presence/stories/ai-presence-default.story.js +1 -1
  14. package/lib/cjs/ai/presence/stories/ai-presence-default.story.js.map +1 -1
  15. package/lib/cjs/ai/presence/stories/ai-presence-thinking.story.js +1 -1
  16. package/lib/cjs/ai/presence/stories/ai-presence-thinking.story.js.map +1 -1
  17. package/lib/cjs/ai/reasoning/Reasoning.js +1 -1
  18. package/lib/cjs/ai/reasoning/Reasoning.js.map +1 -1
  19. package/lib/cjs/ai/reasoning/stories/reasoning-full.story.js +1 -1
  20. package/lib/cjs/ai/reasoning/stories/reasoning-full.story.js.map +1 -1
  21. package/lib/cjs/ai/response/Response.js +56 -2
  22. package/lib/cjs/ai/response/Response.js.map +1 -1
  23. package/lib/cjs/ai/response/stories/response-fixtures.js +86 -0
  24. package/lib/cjs/ai/response/stories/response-fixtures.js.map +1 -0
  25. package/lib/cjs/ai/response/stories/response-full-example.story.js +3 -3
  26. package/lib/cjs/ai/response/stories/response-full-example.story.js.map +1 -1
  27. package/lib/cjs/ai/suggestion/stories/suggestion-sizes.story.js +1 -1
  28. package/lib/cjs/ai/suggestion/stories/suggestion-sizes.story.js.map +1 -1
  29. package/lib/cjs/ai/user-bubble/stories/user-bubble-and-files.story.js +1 -1
  30. package/lib/cjs/ai/user-bubble/stories/user-bubble-and-files.story.js.map +1 -1
  31. package/lib/cjs/announcement-banner/stories/announcement-banner-custom-icons.story.js +1 -1
  32. package/lib/cjs/announcement-banner/stories/announcement-banner-custom-icons.story.js.map +1 -1
  33. package/lib/cjs/announcement-banner/stories/announcement-banner-injected-non-urgent.story.js +1 -1
  34. package/lib/cjs/announcement-banner/stories/announcement-banner-injected-non-urgent.story.js.map +1 -1
  35. package/lib/cjs/announcement-banner/stories/announcement-banner-injected-urgent.story.js +1 -1
  36. package/lib/cjs/announcement-banner/stories/announcement-banner-injected-urgent.story.js.map +1 -1
  37. package/lib/cjs/announcement-banner/stories/announcement-banner-present-at-page-render.story.js +1 -1
  38. package/lib/cjs/announcement-banner/stories/announcement-banner-present-at-page-render.story.js.map +1 -1
  39. package/lib/cjs/announcement-banner/stories/announcement-banner-variants.story.js +1 -1
  40. package/lib/cjs/announcement-banner/stories/announcement-banner-variants.story.js.map +1 -1
  41. package/lib/cjs/announcement-banner/stories/announcement-banner-with-page-content.story.js +1 -1
  42. package/lib/cjs/announcement-banner/stories/announcement-banner-with-page-content.story.js.map +1 -1
  43. package/lib/cjs/avatar/stories/avatar-custom-icon.story.js +1 -1
  44. package/lib/cjs/avatar/stories/avatar-custom-icon.story.js.map +1 -1
  45. package/lib/cjs/avatar/stories/avatar-shapes.story.js +1 -1
  46. package/lib/cjs/avatar/stories/avatar-shapes.story.js.map +1 -1
  47. package/lib/cjs/avatar/stories/avatar-sizes.story.js +1 -1
  48. package/lib/cjs/avatar/stories/avatar-sizes.story.js.map +1 -1
  49. package/lib/cjs/avatar/stories/avatar-statuses.story.js +1 -1
  50. package/lib/cjs/avatar/stories/avatar-statuses.story.js.map +1 -1
  51. package/lib/cjs/avatar/stories/avatar-types.story.js +1 -1
  52. package/lib/cjs/avatar/stories/avatar-types.story.js.map +1 -1
  53. package/lib/cjs/banner/stories/banner-variants.story.js +1 -1
  54. package/lib/cjs/banner/stories/banner-variants.story.js.map +1 -1
  55. package/lib/cjs/banner/stories/banner-with-icons.story.js +1 -1
  56. package/lib/cjs/banner/stories/banner-with-icons.story.js.map +1 -1
  57. package/lib/cjs/breadcrumbs/stories/breadcrumbs-header.story.js +1 -1
  58. package/lib/cjs/breadcrumbs/stories/breadcrumbs-header.story.js.map +1 -1
  59. package/lib/cjs/button/ButtonBase.js +1 -3
  60. package/lib/cjs/button/ButtonBase.js.map +1 -1
  61. package/lib/cjs/button/stories/button-sizes.story.js +1 -1
  62. package/lib/cjs/button/stories/button-sizes.story.js.map +1 -1
  63. package/lib/cjs/button/stories/button-variants.story.js +1 -1
  64. package/lib/cjs/button/stories/button-variants.story.js.map +1 -1
  65. package/lib/cjs/checkbox/stories/checkbox-full.story.js +2 -2
  66. package/lib/cjs/checkbox/stories/checkbox-full.story.js.map +1 -1
  67. package/lib/cjs/clean-icon-button/stories/clean-icon-button-keyboard-display.story.js +1 -1
  68. package/lib/cjs/clean-icon-button/stories/clean-icon-button-keyboard-display.story.js.map +1 -1
  69. package/lib/cjs/clean-icon-button/stories/clean-icon-button-sizes.story.js +1 -1
  70. package/lib/cjs/clean-icon-button/stories/clean-icon-button-sizes.story.js.map +1 -1
  71. package/lib/cjs/clean-icon-button/stories/clean-icon-button-tone.story.js +1 -1
  72. package/lib/cjs/clean-icon-button/stories/clean-icon-button-tone.story.js.map +1 -1
  73. package/lib/cjs/clipboard-button/stories/clipboard-button-sizes.story.js +1 -1
  74. package/lib/cjs/clipboard-button/stories/clipboard-button-sizes.story.js.map +1 -1
  75. package/lib/cjs/code-block/CodeBlock.js +3 -7
  76. package/lib/cjs/code-block/CodeBlock.js.map +1 -1
  77. package/lib/cjs/code-block/stories/code-disabled.story.js +2 -2
  78. package/lib/cjs/code-block/stories/code-disabled.story.js.map +1 -1
  79. package/lib/cjs/code-block/stories/code-full.story.js +2 -2
  80. package/lib/cjs/code-block/stories/code-full.story.js.map +1 -1
  81. package/lib/cjs/code-block/stories/code-languages.story.js +1 -1
  82. package/lib/cjs/code-block/stories/code-languages.story.js.map +1 -1
  83. package/lib/cjs/code-block/stories/code-with-actions.story.js +2 -2
  84. package/lib/cjs/code-block/stories/code-with-actions.story.js.map +1 -1
  85. package/lib/cjs/color-picker/ColorPicker.js +0 -3
  86. package/lib/cjs/color-picker/ColorPicker.js.map +1 -1
  87. package/lib/cjs/color-picker/stories/color-picker-dialog.story.js +1 -1
  88. package/lib/cjs/color-picker/stories/color-picker-dialog.story.js.map +1 -1
  89. package/lib/cjs/color-picker/stories/color-picker-popover.story.js +1 -1
  90. package/lib/cjs/color-picker/stories/color-picker-popover.story.js.map +1 -1
  91. package/lib/cjs/combobox/stories/combobox-action-on-select.story.js +1 -1
  92. package/lib/cjs/combobox/stories/combobox-action-on-select.story.js.map +1 -1
  93. package/lib/cjs/combobox/stories/combobox-actions.story.js +1 -1
  94. package/lib/cjs/combobox/stories/combobox-actions.story.js.map +1 -1
  95. package/lib/cjs/combobox/stories/combobox-async.story.js +2 -2
  96. package/lib/cjs/combobox/stories/combobox-async.story.js.map +1 -1
  97. package/lib/cjs/combobox/stories/combobox-disabled.story.js +1 -1
  98. package/lib/cjs/combobox/stories/combobox-disabled.story.js.map +1 -1
  99. package/lib/cjs/combobox/stories/combobox-fluid.story.js +1 -1
  100. package/lib/cjs/combobox/stories/combobox-fluid.story.js.map +1 -1
  101. package/lib/cjs/combobox/stories/combobox-hidden-label.story.js +1 -1
  102. package/lib/cjs/combobox/stories/combobox-hidden-label.story.js.map +1 -1
  103. package/lib/cjs/combobox/stories/combobox-in-popover-dialog.story.js +1 -1
  104. package/lib/cjs/combobox/stories/combobox-in-popover-dialog.story.js.map +1 -1
  105. package/lib/cjs/combobox/stories/combobox-in-popover.story.js +1 -1
  106. package/lib/cjs/combobox/stories/combobox-in-popover.story.js.map +1 -1
  107. package/lib/cjs/combobox/stories/combobox-native-form.story.js +1 -1
  108. package/lib/cjs/combobox/stories/combobox-native-form.story.js.map +1 -1
  109. package/lib/cjs/combobox/stories/combobox-sizes.story.js +1 -1
  110. package/lib/cjs/combobox/stories/combobox-sizes.story.js.map +1 -1
  111. package/lib/cjs/combobox/stories/combobox-validation.story.js +1 -1
  112. package/lib/cjs/combobox/stories/combobox-validation.story.js.map +1 -1
  113. package/lib/cjs/conditional-wrap/stories/conditional-wrap-default.story.js +1 -1
  114. package/lib/cjs/conditional-wrap/stories/conditional-wrap-default.story.js.map +1 -1
  115. package/lib/cjs/data-grid/stories/datagrid-compact-mode.story.js +1 -1
  116. package/lib/cjs/data-grid/stories/datagrid-compact-mode.story.js.map +1 -1
  117. package/lib/cjs/data-grid/stories/datagrid-component-overriding.story.js +2 -2
  118. package/lib/cjs/data-grid/stories/datagrid-component-overriding.story.js.map +1 -1
  119. package/lib/cjs/data-grid/stories/datagrid-custom-cell-with-style-rules.story.js +1 -1
  120. package/lib/cjs/data-grid/stories/datagrid-custom-cell-with-style-rules.story.js.map +1 -1
  121. package/lib/cjs/data-grid/stories/datagrid-in-dialog.story.js +2 -2
  122. package/lib/cjs/data-grid/stories/datagrid-in-dialog.story.js.map +1 -1
  123. package/lib/cjs/data-grid/stories/datagrid-keyboard-navigation.story.js +1 -1
  124. package/lib/cjs/data-grid/stories/datagrid-keyboard-navigation.story.js.map +1 -1
  125. package/lib/cjs/data-grid/stories/datagrid-kitchen-sink.story.js +1 -1
  126. package/lib/cjs/data-grid/stories/datagrid-kitchen-sink.story.js.map +1 -1
  127. package/lib/cjs/data-grid/stories/datagrid-percentage-width-columns.story.js +1 -1
  128. package/lib/cjs/data-grid/stories/datagrid-percentage-width-columns.story.js.map +1 -1
  129. package/lib/cjs/data-grid/stories/datagrid-pinned-columns.stories.js +3 -3
  130. package/lib/cjs/data-grid/stories/datagrid-pinned-columns.stories.js.map +1 -1
  131. package/lib/cjs/data-grid/stories/datagrid-placeholder-states.story.js +1 -1
  132. package/lib/cjs/data-grid/stories/datagrid-placeholder-states.story.js.map +1 -1
  133. package/lib/cjs/data-grid/stories/datagrid-resizable-column.story.js +1 -1
  134. package/lib/cjs/data-grid/stories/datagrid-resizable-column.story.js.map +1 -1
  135. package/lib/cjs/data-grid/stories/datagrid-rule-based-styling-datetime.story.js +1 -1
  136. package/lib/cjs/data-grid/stories/datagrid-rule-based-styling-datetime.story.js.map +1 -1
  137. package/lib/cjs/data-grid/stories/datagrid-rule-based-styling.story.js +1 -1
  138. package/lib/cjs/data-grid/stories/datagrid-rule-based-styling.story.js.map +1 -1
  139. package/lib/cjs/data-grid/stories/datagrid-search-and-filters.stories.js +5 -5
  140. package/lib/cjs/data-grid/stories/datagrid-search-and-filters.stories.js.map +1 -1
  141. package/lib/cjs/data-grid/stories/datagrid-simple.story.js +1 -1
  142. package/lib/cjs/data-grid/stories/datagrid-simple.story.js.map +1 -1
  143. package/lib/cjs/data-grid/stories/datagrid-single-selectable.story.js +1 -1
  144. package/lib/cjs/data-grid/stories/datagrid-single-selectable.story.js.map +1 -1
  145. package/lib/cjs/data-grid/stories/datagrid-skeleton-loading.story.js +1 -1
  146. package/lib/cjs/data-grid/stories/datagrid-skeleton-loading.story.js.map +1 -1
  147. package/lib/cjs/data-grid/stories/datagrid-sortable.story.js +1 -1
  148. package/lib/cjs/data-grid/stories/datagrid-sortable.story.js.map +1 -1
  149. package/lib/cjs/data-grid/stories/datagrid-using-editable-cells.story.js +2 -2
  150. package/lib/cjs/data-grid/stories/datagrid-using-editable-cells.story.js.map +1 -1
  151. package/lib/cjs/data-grid/stories/datagrid-virtualization.story.js +3 -3
  152. package/lib/cjs/data-grid/stories/datagrid-virtualization.story.js.map +1 -1
  153. package/lib/cjs/data-grid/style-rules/guard.js +47 -0
  154. package/lib/cjs/data-grid/style-rules/guard.js.map +1 -0
  155. package/lib/cjs/data-grid/style-rules/index.js +3 -19
  156. package/lib/cjs/data-grid/style-rules/index.js.map +1 -1
  157. package/lib/cjs/data-grid/style-rules/internal/schemas.js +213 -0
  158. package/lib/cjs/data-grid/style-rules/internal/schemas.js.map +1 -0
  159. package/lib/cjs/data-grid/style-rules/types.js +0 -205
  160. package/lib/cjs/data-grid/style-rules/types.js.map +1 -1
  161. package/lib/cjs/date-picker/DatePicker.js +8 -6
  162. package/lib/cjs/date-picker/DatePicker.js.map +1 -1
  163. package/lib/cjs/date-picker/stories/date-picker-in-dialog.story.js +1 -1
  164. package/lib/cjs/date-picker/stories/date-picker-in-dialog.story.js.map +1 -1
  165. package/lib/cjs/date-picker/stories/date-picker-in-popover-dialog.story.js +1 -1
  166. package/lib/cjs/date-picker/stories/date-picker-in-popover-dialog.story.js.map +1 -1
  167. package/lib/cjs/dialog/Dialog.js +1 -2
  168. package/lib/cjs/dialog/Dialog.js.map +1 -1
  169. package/lib/cjs/dialog/stories/dialog-danger.story.js +1 -1
  170. package/lib/cjs/dialog/stories/dialog-danger.story.js.map +1 -1
  171. package/lib/cjs/dialog/stories/dialog-default.story.js +1 -1
  172. package/lib/cjs/dialog/stories/dialog-default.story.js.map +1 -1
  173. package/lib/cjs/dialog/stories/dialog-image.story.js +1 -1
  174. package/lib/cjs/dialog/stories/dialog-image.story.js.map +1 -1
  175. package/lib/cjs/dialog/stories/dialog-info.story.js +1 -1
  176. package/lib/cjs/dialog/stories/dialog-info.story.js.map +1 -1
  177. package/lib/cjs/dialog/stories/dialog-top-aligned.story.js +2 -2
  178. package/lib/cjs/dialog/stories/dialog-top-aligned.story.js.map +1 -1
  179. package/lib/cjs/dialog/stories/dialog-variants.story.js +1 -1
  180. package/lib/cjs/dialog/stories/dialog-variants.story.js.map +1 -1
  181. package/lib/cjs/dialog/stories/dialog-warning.story.js +1 -1
  182. package/lib/cjs/dialog/stories/dialog-warning.story.js.map +1 -1
  183. package/lib/cjs/dismissible-tag/stories/dismissible-tag-colors.story.js +1 -1
  184. package/lib/cjs/dismissible-tag/stories/dismissible-tag-colors.story.js.map +1 -1
  185. package/lib/cjs/dismissible-tag/stories/dismissible-tag-sizes.story.js +1 -1
  186. package/lib/cjs/dismissible-tag/stories/dismissible-tag-sizes.story.js.map +1 -1
  187. package/lib/cjs/drawer/Drawer.js +7 -6
  188. package/lib/cjs/drawer/Drawer.js.map +1 -1
  189. package/lib/cjs/drawer/stories/drawer-full.story.js +2 -2
  190. package/lib/cjs/drawer/stories/drawer-full.story.js.map +1 -1
  191. package/lib/cjs/drawer/stories/drawer-not-closeable.story.js +2 -2
  192. package/lib/cjs/drawer/stories/drawer-not-closeable.story.js.map +1 -1
  193. package/lib/cjs/drawer/stories/drawer-overlay.story.js +1 -1
  194. package/lib/cjs/drawer/stories/drawer-overlay.story.js.map +1 -1
  195. package/lib/cjs/drawer/stories/drawer-portaled.story.js +2 -2
  196. package/lib/cjs/drawer/stories/drawer-portaled.story.js.map +1 -1
  197. package/lib/cjs/drawer/stories/drawer-push.story.js +2 -2
  198. package/lib/cjs/drawer/stories/drawer-push.story.js.map +1 -1
  199. package/lib/cjs/drawer/stories/drawer-resizable.story.js +2 -2
  200. package/lib/cjs/drawer/stories/drawer-resizable.story.js.map +1 -1
  201. package/lib/cjs/drawer/stories/drawer-right-side.story.js +2 -2
  202. package/lib/cjs/drawer/stories/drawer-right-side.story.js.map +1 -1
  203. package/lib/cjs/drawer/stories/drawer-scrollable.story.js +2 -2
  204. package/lib/cjs/drawer/stories/drawer-scrollable.story.js.map +1 -1
  205. package/lib/cjs/dropzone/stories/dropzone-full.story.js +3 -3
  206. package/lib/cjs/dropzone/stories/dropzone-full.story.js.map +1 -1
  207. package/lib/cjs/flex/stories/flex-default.story.js +1 -1
  208. package/lib/cjs/flex/stories/flex-default.story.js.map +1 -1
  209. package/lib/cjs/graph-label/stories/graph-label-color.story.js +1 -1
  210. package/lib/cjs/graph-label/stories/graph-label-color.story.js.map +1 -1
  211. package/lib/cjs/graph-label/stories/graph-label-sizes.story.js +1 -1
  212. package/lib/cjs/graph-label/stories/graph-label-sizes.story.js.map +1 -1
  213. package/lib/cjs/graph-label/stories/graph-label-types.story.js +1 -1
  214. package/lib/cjs/graph-label/stories/graph-label-types.story.js.map +1 -1
  215. package/lib/cjs/hooks/use-debounce-callback/index.js +6 -6
  216. package/lib/cjs/hooks/use-debounce-callback/index.js.map +1 -1
  217. package/lib/cjs/icon-button/stories/icon-button-sizes.story.js +1 -1
  218. package/lib/cjs/icon-button/stories/icon-button-sizes.story.js.map +1 -1
  219. package/lib/cjs/icon-button/stories/icon-button-tone.story.js +1 -1
  220. package/lib/cjs/icon-button/stories/icon-button-tone.story.js.map +1 -1
  221. package/lib/cjs/icon-button-array/stories/icon-button-array-sizes.story.js +1 -1
  222. package/lib/cjs/icon-button-array/stories/icon-button-array-sizes.story.js.map +1 -1
  223. package/lib/cjs/icon-button-base/IconButtonBase.js +1 -3
  224. package/lib/cjs/icon-button-base/IconButtonBase.js.map +1 -1
  225. package/lib/cjs/icons/generated/custom/index.js +3 -17
  226. package/lib/cjs/icons/generated/custom/index.js.map +1 -1
  227. package/lib/cjs/inline-edit/InlineEdit.js +3 -2
  228. package/lib/cjs/inline-edit/InlineEdit.js.map +1 -1
  229. package/lib/cjs/kbd/Kbd.js +0 -1
  230. package/lib/cjs/kbd/Kbd.js.map +1 -1
  231. package/lib/cjs/loading-spinner/stories/loading-spinner-sizes.story.js +1 -1
  232. package/lib/cjs/loading-spinner/stories/loading-spinner-sizes.story.js.map +1 -1
  233. package/lib/cjs/logo/stories/logo-black.story.js +1 -1
  234. package/lib/cjs/logo/stories/logo-black.story.js.map +1 -1
  235. package/lib/cjs/logo/stories/logo-default.story.js +1 -1
  236. package/lib/cjs/logo/stories/logo-default.story.js.map +1 -1
  237. package/lib/cjs/logo/stories/logo-icon.story.js +1 -1
  238. package/lib/cjs/logo/stories/logo-icon.story.js.map +1 -1
  239. package/lib/cjs/menu/Menu.js +2 -2
  240. package/lib/cjs/menu/Menu.js.map +1 -1
  241. package/lib/cjs/menu/menu-types.js.map +1 -1
  242. package/lib/cjs/menu/stories/menu-custom-items.story.js +1 -1
  243. package/lib/cjs/menu/stories/menu-custom-items.story.js.map +1 -1
  244. package/lib/cjs/menu/stories/menu-in-dialog.story.js +2 -2
  245. package/lib/cjs/menu/stories/menu-in-dialog.story.js.map +1 -1
  246. package/lib/cjs/menu/stories/menu-nested.story.js +1 -1
  247. package/lib/cjs/menu/stories/menu-nested.story.js.map +1 -1
  248. package/lib/cjs/menu/stories/menu-radio-and-normal.story.js +1 -1
  249. package/lib/cjs/menu/stories/menu-radio-and-normal.story.js.map +1 -1
  250. package/lib/cjs/menu/stories/menu-radio-items.story.js +1 -1
  251. package/lib/cjs/menu/stories/menu-radio-items.story.js.map +1 -1
  252. package/lib/cjs/menu/stories/menu-with-icon.story.js +1 -1
  253. package/lib/cjs/menu/stories/menu-with-icon.story.js.map +1 -1
  254. package/lib/cjs/next/tree-view/TreeView.js +3 -3
  255. package/lib/cjs/next/tree-view/TreeView.js.map +1 -1
  256. package/lib/cjs/next/tree-view/stories/tree-view-large.story.js +1 -1
  257. package/lib/cjs/next/tree-view/stories/tree-view-large.story.js.map +1 -1
  258. package/lib/cjs/next/tree-view/stories/tree-view-multiple-replace.story.js +1 -1
  259. package/lib/cjs/next/tree-view/stories/tree-view-multiple-replace.story.js.map +1 -1
  260. package/lib/cjs/next/tree-view/stories/tree-view-root-selection.story.js +1 -1
  261. package/lib/cjs/next/tree-view/stories/tree-view-root-selection.story.js.map +1 -1
  262. package/lib/cjs/next/tree-view/stories/tree-view-tooltip.story.js +1 -1
  263. package/lib/cjs/next/tree-view/stories/tree-view-tooltip.story.js.map +1 -1
  264. package/lib/cjs/next/tree-view/stories/tree-view-trailing.story.js +1 -1
  265. package/lib/cjs/next/tree-view/stories/tree-view-trailing.story.js.map +1 -1
  266. package/lib/cjs/next/tree-view/stories/tree-view-uncontrolled.story.js +1 -1
  267. package/lib/cjs/next/tree-view/stories/tree-view-uncontrolled.story.js.map +1 -1
  268. package/lib/cjs/popover/Popover.js +6 -6
  269. package/lib/cjs/popover/Popover.js.map +1 -1
  270. package/lib/cjs/popover/stories/popover-controlled.story.js +1 -1
  271. package/lib/cjs/popover/stories/popover-controlled.story.js.map +1 -1
  272. package/lib/cjs/popover/stories/popover-custom-offset.story.js +1 -1
  273. package/lib/cjs/popover/stories/popover-custom-offset.story.js.map +1 -1
  274. package/lib/cjs/popover/stories/popover-default.story.js +1 -1
  275. package/lib/cjs/popover/stories/popover-default.story.js.map +1 -1
  276. package/lib/cjs/popover/stories/popover-in-dialog.story.js +1 -1
  277. package/lib/cjs/popover/stories/popover-in-dialog.story.js.map +1 -1
  278. package/lib/cjs/popover/stories/popover-no-button-wrapper.story.js +1 -1
  279. package/lib/cjs/popover/stories/popover-no-button-wrapper.story.js.map +1 -1
  280. package/lib/cjs/popover/stories/popover-separate-anchor.story.js +1 -1
  281. package/lib/cjs/popover/stories/popover-separate-anchor.story.js.map +1 -1
  282. package/lib/cjs/popover/use-popover.js +7 -9
  283. package/lib/cjs/popover/use-popover.js.map +1 -1
  284. package/lib/cjs/progress-bar/stories/progress-bar-sizes.story.js +1 -1
  285. package/lib/cjs/progress-bar/stories/progress-bar-sizes.story.js.map +1 -1
  286. package/lib/cjs/radio/stories/radio-disabled.story.js +1 -1
  287. package/lib/cjs/radio/stories/radio-disabled.story.js.map +1 -1
  288. package/lib/cjs/radio/stories/radio-truncated-label.story.js +1 -1
  289. package/lib/cjs/radio/stories/radio-truncated-label.story.js.map +1 -1
  290. package/lib/cjs/read-only-tag/stories/read-only-tag-colors.story.js +1 -1
  291. package/lib/cjs/read-only-tag/stories/read-only-tag-colors.story.js.map +1 -1
  292. package/lib/cjs/read-only-tag/stories/read-only-tag-sizes.story.js +1 -1
  293. package/lib/cjs/read-only-tag/stories/read-only-tag-sizes.story.js.map +1 -1
  294. package/lib/cjs/segmented-control/stories/segmented-control-sizes.story.js +1 -1
  295. package/lib/cjs/segmented-control/stories/segmented-control-sizes.story.js.map +1 -1
  296. package/lib/cjs/select/stories/select-controlled.story.js +1 -1
  297. package/lib/cjs/select/stories/select-controlled.story.js.map +1 -1
  298. package/lib/cjs/select/stories/select-custom-label.story.js +1 -1
  299. package/lib/cjs/select/stories/select-custom-label.story.js.map +1 -1
  300. package/lib/cjs/select/stories/select-inside-dialog.story.js +1 -1
  301. package/lib/cjs/select/stories/select-inside-dialog.story.js.map +1 -1
  302. package/lib/cjs/select/stories/select-menu-positionings.story.js +1 -1
  303. package/lib/cjs/select/stories/select-menu-positionings.story.js.map +1 -1
  304. package/lib/cjs/select/stories/select-required.story.js +1 -1
  305. package/lib/cjs/select/stories/select-required.story.js.map +1 -1
  306. package/lib/cjs/select/stories/select-sizes.story.js +1 -1
  307. package/lib/cjs/select/stories/select-sizes.story.js.map +1 -1
  308. package/lib/cjs/select-icon-button/stories/select-icon-button-sizes.story.js +1 -1
  309. package/lib/cjs/select-icon-button/stories/select-icon-button-sizes.story.js.map +1 -1
  310. package/lib/cjs/select-icon-button/stories/select-icon-button-states.story.js +1 -1
  311. package/lib/cjs/select-icon-button/stories/select-icon-button-states.story.js.map +1 -1
  312. package/lib/cjs/selectable-tag/stories/selectable-tag-disabled.story.js +1 -1
  313. package/lib/cjs/selectable-tag/stories/selectable-tag-disabled.story.js.map +1 -1
  314. package/lib/cjs/selectable-tag/stories/selectable-tag-sizes.story.js +1 -1
  315. package/lib/cjs/selectable-tag/stories/selectable-tag-sizes.story.js.map +1 -1
  316. package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
  317. package/lib/cjs/side-navigation/stories/side-nav-badges.story.js +2 -2
  318. package/lib/cjs/side-navigation/stories/side-nav-badges.story.js.map +1 -1
  319. package/lib/cjs/side-navigation/stories/side-nav-compact.story.js +1 -1
  320. package/lib/cjs/side-navigation/stories/side-nav-compact.story.js.map +1 -1
  321. package/lib/cjs/side-navigation/stories/side-nav-default.story.js +1 -1
  322. package/lib/cjs/side-navigation/stories/side-nav-default.story.js.map +1 -1
  323. package/lib/cjs/side-navigation/stories/side-nav-secondary.story.js +1 -1
  324. package/lib/cjs/side-navigation/stories/side-nav-secondary.story.js.map +1 -1
  325. package/lib/cjs/skeleton/stories/skeleton-circular.story.js +1 -1
  326. package/lib/cjs/skeleton/stories/skeleton-circular.story.js.map +1 -1
  327. package/lib/cjs/skeleton/stories/skeleton-default.story.js +1 -1
  328. package/lib/cjs/skeleton/stories/skeleton-default.story.js.map +1 -1
  329. package/lib/cjs/skeleton/stories/skeleton-full-example.story.js +1 -1
  330. package/lib/cjs/skeleton/stories/skeleton-full-example.story.js.map +1 -1
  331. package/lib/cjs/skeleton/stories/skeleton-inherit-height.story.js +1 -1
  332. package/lib/cjs/skeleton/stories/skeleton-inherit-height.story.js.map +1 -1
  333. package/lib/cjs/skeleton/stories/skeleton-inherit-width.story.js +1 -1
  334. package/lib/cjs/skeleton/stories/skeleton-inherit-width.story.js.map +1 -1
  335. package/lib/cjs/slider/Slider.js +3 -3
  336. package/lib/cjs/slider/Slider.js.map +1 -1
  337. package/lib/cjs/slider/stories/slider-custom-step-length.story.js +1 -1
  338. package/lib/cjs/slider/stories/slider-custom-step-length.story.js.map +1 -1
  339. package/lib/cjs/slider/stories/slider-range.story.js +1 -1
  340. package/lib/cjs/slider/stories/slider-range.story.js.map +1 -1
  341. package/lib/cjs/slider/stories/slider-show-steps.story.js +1 -1
  342. package/lib/cjs/slider/stories/slider-show-steps.story.js.map +1 -1
  343. package/lib/cjs/slider/stories/slider-show-values.story.js +1 -1
  344. package/lib/cjs/slider/stories/slider-show-values.story.js.map +1 -1
  345. package/lib/cjs/slider/stories/slider-single-controlled.story.js +2 -2
  346. package/lib/cjs/slider/stories/slider-single-controlled.story.js.map +1 -1
  347. package/lib/cjs/slider/stories/slider-single.story.js +1 -1
  348. package/lib/cjs/slider/stories/slider-single.story.js.map +1 -1
  349. package/lib/cjs/spotlight/Spotlight.js +3 -3
  350. package/lib/cjs/spotlight/Spotlight.js.map +1 -1
  351. package/lib/cjs/spotlight/SpotlightTarget.js +3 -3
  352. package/lib/cjs/spotlight/SpotlightTarget.js.map +1 -1
  353. package/lib/cjs/spotlight/stories/spotlight-fixed-positioning.story.js +1 -1
  354. package/lib/cjs/spotlight/stories/spotlight-fixed-positioning.story.js.map +1 -1
  355. package/lib/cjs/spotlight/stories/spotlight-in-dialog.story.js +1 -1
  356. package/lib/cjs/spotlight/stories/spotlight-in-dialog.story.js.map +1 -1
  357. package/lib/cjs/spotlight/stories/spotlight-in-side-nav.story.js +1 -1
  358. package/lib/cjs/spotlight/stories/spotlight-in-side-nav.story.js.map +1 -1
  359. package/lib/cjs/spotlight/stories/spotlight-on-tabs.story.js +1 -1
  360. package/lib/cjs/spotlight/stories/spotlight-on-tabs.story.js.map +1 -1
  361. package/lib/cjs/spotlight/stories/spotlight-tour.story.js +1 -1
  362. package/lib/cjs/spotlight/stories/spotlight-tour.story.js.map +1 -1
  363. package/lib/cjs/spotlight/stories/spotlight-with-icon.story.js +1 -1
  364. package/lib/cjs/spotlight/stories/spotlight-with-icon.story.js.map +1 -1
  365. package/lib/cjs/spotlight/stories/spotlight-with-image.story.js +1 -1
  366. package/lib/cjs/spotlight/stories/spotlight-with-image.story.js.map +1 -1
  367. package/lib/cjs/spotlight/stories/spotlight-with-label.story.js +1 -1
  368. package/lib/cjs/spotlight/stories/spotlight-with-label.story.js.map +1 -1
  369. package/lib/cjs/spotlight/stories/spotlight-with-pointer.story.js +1 -1
  370. package/lib/cjs/spotlight/stories/spotlight-with-pointer.story.js.map +1 -1
  371. package/lib/cjs/spotlight/use-spotlight.js +5 -5
  372. package/lib/cjs/spotlight/use-spotlight.js.map +1 -1
  373. package/lib/cjs/status-indicator/stories/status-indicator-variants.story.js +1 -1
  374. package/lib/cjs/status-indicator/stories/status-indicator-variants.story.js.map +1 -1
  375. package/lib/cjs/status-label/stories/status-label-colors.story.js +1 -1
  376. package/lib/cjs/status-label/stories/status-label-colors.story.js.map +1 -1
  377. package/lib/cjs/status-label/stories/status-label-fills.story.js +1 -1
  378. package/lib/cjs/status-label/stories/status-label-fills.story.js.map +1 -1
  379. package/lib/cjs/status-label/stories/status-label-with-icons.story.js +1 -1
  380. package/lib/cjs/status-label/stories/status-label-with-icons.story.js.map +1 -1
  381. package/lib/cjs/tabs/Tabs.js +2 -2
  382. package/lib/cjs/tabs/Tabs.js.map +1 -1
  383. package/lib/cjs/tabs/stories/tabs-badge.story.js +1 -1
  384. package/lib/cjs/tabs/stories/tabs-badge.story.js.map +1 -1
  385. package/lib/cjs/tabs/stories/tabs-default.story.js +1 -1
  386. package/lib/cjs/tabs/stories/tabs-default.story.js.map +1 -1
  387. package/lib/cjs/tabs/stories/tabs-disabled.story.js +1 -1
  388. package/lib/cjs/tabs/stories/tabs-disabled.story.js.map +1 -1
  389. package/lib/cjs/tabs/stories/tabs-fill-variants.story.js +1 -1
  390. package/lib/cjs/tabs/stories/tabs-fill-variants.story.js.map +1 -1
  391. package/lib/cjs/tabs/stories/tabs-overflow.story.js +1 -1
  392. package/lib/cjs/tabs/stories/tabs-overflow.story.js.map +1 -1
  393. package/lib/cjs/tabs/stories/tabs-sizes.story.js +1 -1
  394. package/lib/cjs/tabs/stories/tabs-sizes.story.js.map +1 -1
  395. package/lib/cjs/tabs/stories/tabs-with-icons.story.js +1 -1
  396. package/lib/cjs/tabs/stories/tabs-with-icons.story.js.map +1 -1
  397. package/lib/cjs/tag/stories/tag-sizes.story.js +1 -1
  398. package/lib/cjs/tag/stories/tag-sizes.story.js.map +1 -1
  399. package/lib/cjs/tag/stories/tag-types.story.js +1 -1
  400. package/lib/cjs/tag/stories/tag-types.story.js.map +1 -1
  401. package/lib/cjs/tag-base/stories/tag-variants.story.js +1 -1
  402. package/lib/cjs/tag-base/stories/tag-variants.story.js.map +1 -1
  403. package/lib/cjs/text-area/stories/text-area-sizes.story.js +1 -1
  404. package/lib/cjs/text-area/stories/text-area-sizes.story.js.map +1 -1
  405. package/lib/cjs/text-input/TextInput.js.map +1 -1
  406. package/lib/cjs/text-input/stories/text-input-loading-spinner.story.js +1 -1
  407. package/lib/cjs/text-input/stories/text-input-loading-spinner.story.js.map +1 -1
  408. package/lib/cjs/text-input/stories/text-input-optional.story.js +1 -1
  409. package/lib/cjs/text-input/stories/text-input-optional.story.js.map +1 -1
  410. package/lib/cjs/text-input/stories/text-input-sizes.story.js +1 -1
  411. package/lib/cjs/text-input/stories/text-input-sizes.story.js.map +1 -1
  412. package/lib/cjs/text-link/TextLink.js +2 -6
  413. package/lib/cjs/text-link/TextLink.js.map +1 -1
  414. package/lib/cjs/text-link/stories/index.js +5 -17
  415. package/lib/cjs/text-link/stories/index.js.map +1 -1
  416. package/lib/cjs/text-link/stories/text-link-external.story.js +1 -1
  417. package/lib/cjs/text-link/stories/text-link-external.story.js.map +1 -1
  418. package/lib/cjs/text-link/stories/{text-link-internal-underline.story.js → text-link-internal.story.js} +2 -2
  419. package/lib/cjs/text-link/stories/text-link-internal.story.js.map +1 -0
  420. package/lib/cjs/time-picker/stories/time-picker-in-popover-dialog.story.js +1 -1
  421. package/lib/cjs/time-picker/stories/time-picker-in-popover-dialog.story.js.map +1 -1
  422. package/lib/cjs/timezone-picker/stories/timezone-picker-in-dialog.story.js +1 -1
  423. package/lib/cjs/timezone-picker/stories/timezone-picker-in-dialog.story.js.map +1 -1
  424. package/lib/cjs/timezone-picker/stories/timezone-picker-in-popover-dialog.story.js +1 -1
  425. package/lib/cjs/timezone-picker/stories/timezone-picker-in-popover-dialog.story.js.map +1 -1
  426. package/lib/cjs/toast/stories/toast-action-story.js +1 -1
  427. package/lib/cjs/toast/stories/toast-action-story.js.map +1 -1
  428. package/lib/cjs/toast/stories/toast-closeable-story.js +1 -1
  429. package/lib/cjs/toast/stories/toast-closeable-story.js.map +1 -1
  430. package/lib/cjs/toast/stories/toast-controlled-story.js +1 -1
  431. package/lib/cjs/toast/stories/toast-controlled-story.js.map +1 -1
  432. package/lib/cjs/toast/stories/toast-custom-story.js +1 -1
  433. package/lib/cjs/toast/stories/toast-custom-story.js.map +1 -1
  434. package/lib/cjs/toast/stories/toast-danger-story.js +1 -1
  435. package/lib/cjs/toast/stories/toast-danger-story.js.map +1 -1
  436. package/lib/cjs/toast/stories/toast-neutral-story.js +1 -1
  437. package/lib/cjs/toast/stories/toast-neutral-story.js.map +1 -1
  438. package/lib/cjs/toast/stories/toast-progress-bar.js +1 -1
  439. package/lib/cjs/toast/stories/toast-progress-bar.js.map +1 -1
  440. package/lib/cjs/toast/stories/toast-success-story.js +1 -1
  441. package/lib/cjs/toast/stories/toast-success-story.js.map +1 -1
  442. package/lib/cjs/tooltip/Tooltip.js.map +1 -1
  443. package/lib/cjs/tooltip/stories/tooltip-in-dialog.story.js +1 -1
  444. package/lib/cjs/tooltip/stories/tooltip-in-dialog.story.js.map +1 -1
  445. package/lib/cjs/tooltip/stories/tooltip-placements.story.js +1 -1
  446. package/lib/cjs/tooltip/stories/tooltip-placements.story.js.map +1 -1
  447. package/lib/cjs/tooltip/use-tooltip.js.map +1 -1
  448. package/lib/cjs/tree-view/TreeView.js +3 -0
  449. package/lib/cjs/tree-view/TreeView.js.map +1 -1
  450. package/lib/cjs/tree-view/TreeViewItem.js.map +1 -1
  451. package/lib/cjs/tree-view/stories/treeview-custom.story.js +2 -2
  452. package/lib/cjs/tree-view/stories/treeview-custom.story.js.map +1 -1
  453. package/lib/cjs/tree-view/tree-view-utils.js.map +1 -1
  454. package/lib/cjs/typography/Typography.js +7 -1
  455. package/lib/cjs/typography/Typography.js.map +1 -1
  456. package/lib/esm/_generated/style-rules/index.js +1 -1
  457. package/lib/esm/_generated/style-rules/index.js.map +1 -1
  458. package/lib/esm/_generated/style-rules/literal-guards.js +45 -0
  459. package/lib/esm/_generated/style-rules/literal-guards.js.map +1 -0
  460. package/lib/esm/_generated/style-rules/literal-schemas.js +6 -18
  461. package/lib/esm/_generated/style-rules/literal-schemas.js.map +1 -1
  462. package/lib/esm/{text-overflow/index.js → _generated/style-rules/literal-types.js} +8 -2
  463. package/lib/esm/_generated/style-rules/literal-types.js.map +1 -0
  464. package/lib/esm/_generated/style-rules/numeric-utils.js.map +1 -1
  465. package/lib/esm/_generated/style-rules/range-utils.js.map +1 -1
  466. package/lib/esm/ai/presence/stories/ai-presence-default.story.js +1 -1
  467. package/lib/esm/ai/presence/stories/ai-presence-default.story.js.map +1 -1
  468. package/lib/esm/ai/presence/stories/ai-presence-thinking.story.js +1 -1
  469. package/lib/esm/ai/presence/stories/ai-presence-thinking.story.js.map +1 -1
  470. package/lib/esm/ai/reasoning/Reasoning.js +1 -1
  471. package/lib/esm/ai/reasoning/Reasoning.js.map +1 -1
  472. package/lib/esm/ai/reasoning/stories/reasoning-full.story.js +1 -1
  473. package/lib/esm/ai/reasoning/stories/reasoning-full.story.js.map +1 -1
  474. package/lib/esm/ai/response/Response.js +57 -3
  475. package/lib/esm/ai/response/Response.js.map +1 -1
  476. package/lib/esm/ai/response/stories/response-fixtures.js +83 -0
  477. package/lib/esm/ai/response/stories/response-fixtures.js.map +1 -0
  478. package/lib/esm/ai/response/stories/response-full-example.story.js +3 -3
  479. package/lib/esm/ai/response/stories/response-full-example.story.js.map +1 -1
  480. package/lib/esm/ai/suggestion/stories/suggestion-sizes.story.js +1 -1
  481. package/lib/esm/ai/suggestion/stories/suggestion-sizes.story.js.map +1 -1
  482. package/lib/esm/ai/user-bubble/stories/user-bubble-and-files.story.js +1 -1
  483. package/lib/esm/ai/user-bubble/stories/user-bubble-and-files.story.js.map +1 -1
  484. package/lib/esm/announcement-banner/stories/announcement-banner-custom-icons.story.js +1 -1
  485. package/lib/esm/announcement-banner/stories/announcement-banner-custom-icons.story.js.map +1 -1
  486. package/lib/esm/announcement-banner/stories/announcement-banner-injected-non-urgent.story.js +1 -1
  487. package/lib/esm/announcement-banner/stories/announcement-banner-injected-non-urgent.story.js.map +1 -1
  488. package/lib/esm/announcement-banner/stories/announcement-banner-injected-urgent.story.js +1 -1
  489. package/lib/esm/announcement-banner/stories/announcement-banner-injected-urgent.story.js.map +1 -1
  490. package/lib/esm/announcement-banner/stories/announcement-banner-present-at-page-render.story.js +1 -1
  491. package/lib/esm/announcement-banner/stories/announcement-banner-present-at-page-render.story.js.map +1 -1
  492. package/lib/esm/announcement-banner/stories/announcement-banner-variants.story.js +1 -1
  493. package/lib/esm/announcement-banner/stories/announcement-banner-variants.story.js.map +1 -1
  494. package/lib/esm/announcement-banner/stories/announcement-banner-with-page-content.story.js +1 -1
  495. package/lib/esm/announcement-banner/stories/announcement-banner-with-page-content.story.js.map +1 -1
  496. package/lib/esm/avatar/stories/avatar-custom-icon.story.js +1 -1
  497. package/lib/esm/avatar/stories/avatar-custom-icon.story.js.map +1 -1
  498. package/lib/esm/avatar/stories/avatar-shapes.story.js +1 -1
  499. package/lib/esm/avatar/stories/avatar-shapes.story.js.map +1 -1
  500. package/lib/esm/avatar/stories/avatar-sizes.story.js +1 -1
  501. package/lib/esm/avatar/stories/avatar-sizes.story.js.map +1 -1
  502. package/lib/esm/avatar/stories/avatar-statuses.story.js +1 -1
  503. package/lib/esm/avatar/stories/avatar-statuses.story.js.map +1 -1
  504. package/lib/esm/avatar/stories/avatar-types.story.js +1 -1
  505. package/lib/esm/avatar/stories/avatar-types.story.js.map +1 -1
  506. package/lib/esm/banner/stories/banner-variants.story.js +1 -1
  507. package/lib/esm/banner/stories/banner-variants.story.js.map +1 -1
  508. package/lib/esm/banner/stories/banner-with-icons.story.js +1 -1
  509. package/lib/esm/banner/stories/banner-with-icons.story.js.map +1 -1
  510. package/lib/esm/breadcrumbs/stories/breadcrumbs-header.story.js +1 -1
  511. package/lib/esm/breadcrumbs/stories/breadcrumbs-header.story.js.map +1 -1
  512. package/lib/esm/button/ButtonBase.js +1 -3
  513. package/lib/esm/button/ButtonBase.js.map +1 -1
  514. package/lib/esm/button/stories/button-sizes.story.js +1 -1
  515. package/lib/esm/button/stories/button-sizes.story.js.map +1 -1
  516. package/lib/esm/button/stories/button-variants.story.js +1 -1
  517. package/lib/esm/button/stories/button-variants.story.js.map +1 -1
  518. package/lib/esm/checkbox/stories/checkbox-full.story.js +2 -2
  519. package/lib/esm/checkbox/stories/checkbox-full.story.js.map +1 -1
  520. package/lib/esm/clean-icon-button/stories/clean-icon-button-keyboard-display.story.js +1 -1
  521. package/lib/esm/clean-icon-button/stories/clean-icon-button-keyboard-display.story.js.map +1 -1
  522. package/lib/esm/clean-icon-button/stories/clean-icon-button-sizes.story.js +1 -1
  523. package/lib/esm/clean-icon-button/stories/clean-icon-button-sizes.story.js.map +1 -1
  524. package/lib/esm/clean-icon-button/stories/clean-icon-button-tone.story.js +1 -1
  525. package/lib/esm/clean-icon-button/stories/clean-icon-button-tone.story.js.map +1 -1
  526. package/lib/esm/clipboard-button/stories/clipboard-button-sizes.story.js +1 -1
  527. package/lib/esm/clipboard-button/stories/clipboard-button-sizes.story.js.map +1 -1
  528. package/lib/esm/code-block/CodeBlock.js +3 -7
  529. package/lib/esm/code-block/CodeBlock.js.map +1 -1
  530. package/lib/esm/code-block/stories/code-disabled.story.js +2 -2
  531. package/lib/esm/code-block/stories/code-disabled.story.js.map +1 -1
  532. package/lib/esm/code-block/stories/code-full.story.js +2 -2
  533. package/lib/esm/code-block/stories/code-full.story.js.map +1 -1
  534. package/lib/esm/code-block/stories/code-languages.story.js +1 -1
  535. package/lib/esm/code-block/stories/code-languages.story.js.map +1 -1
  536. package/lib/esm/code-block/stories/code-with-actions.story.js +2 -2
  537. package/lib/esm/code-block/stories/code-with-actions.story.js.map +1 -1
  538. package/lib/esm/color-picker/ColorPicker.js +0 -3
  539. package/lib/esm/color-picker/ColorPicker.js.map +1 -1
  540. package/lib/esm/color-picker/stories/color-picker-dialog.story.js +1 -1
  541. package/lib/esm/color-picker/stories/color-picker-dialog.story.js.map +1 -1
  542. package/lib/esm/color-picker/stories/color-picker-popover.story.js +1 -1
  543. package/lib/esm/color-picker/stories/color-picker-popover.story.js.map +1 -1
  544. package/lib/esm/combobox/stories/combobox-action-on-select.story.js +1 -1
  545. package/lib/esm/combobox/stories/combobox-action-on-select.story.js.map +1 -1
  546. package/lib/esm/combobox/stories/combobox-actions.story.js +1 -1
  547. package/lib/esm/combobox/stories/combobox-actions.story.js.map +1 -1
  548. package/lib/esm/combobox/stories/combobox-async.story.js +2 -2
  549. package/lib/esm/combobox/stories/combobox-async.story.js.map +1 -1
  550. package/lib/esm/combobox/stories/combobox-disabled.story.js +1 -1
  551. package/lib/esm/combobox/stories/combobox-disabled.story.js.map +1 -1
  552. package/lib/esm/combobox/stories/combobox-fluid.story.js +1 -1
  553. package/lib/esm/combobox/stories/combobox-fluid.story.js.map +1 -1
  554. package/lib/esm/combobox/stories/combobox-hidden-label.story.js +1 -1
  555. package/lib/esm/combobox/stories/combobox-hidden-label.story.js.map +1 -1
  556. package/lib/esm/combobox/stories/combobox-in-popover-dialog.story.js +1 -1
  557. package/lib/esm/combobox/stories/combobox-in-popover-dialog.story.js.map +1 -1
  558. package/lib/esm/combobox/stories/combobox-in-popover.story.js +1 -1
  559. package/lib/esm/combobox/stories/combobox-in-popover.story.js.map +1 -1
  560. package/lib/esm/combobox/stories/combobox-native-form.story.js +1 -1
  561. package/lib/esm/combobox/stories/combobox-native-form.story.js.map +1 -1
  562. package/lib/esm/combobox/stories/combobox-sizes.story.js +1 -1
  563. package/lib/esm/combobox/stories/combobox-sizes.story.js.map +1 -1
  564. package/lib/esm/combobox/stories/combobox-validation.story.js +1 -1
  565. package/lib/esm/combobox/stories/combobox-validation.story.js.map +1 -1
  566. package/lib/esm/conditional-wrap/stories/conditional-wrap-default.story.js +1 -1
  567. package/lib/esm/conditional-wrap/stories/conditional-wrap-default.story.js.map +1 -1
  568. package/lib/esm/data-grid/stories/datagrid-compact-mode.story.js +1 -1
  569. package/lib/esm/data-grid/stories/datagrid-compact-mode.story.js.map +1 -1
  570. package/lib/esm/data-grid/stories/datagrid-component-overriding.story.js +2 -2
  571. package/lib/esm/data-grid/stories/datagrid-component-overriding.story.js.map +1 -1
  572. package/lib/esm/data-grid/stories/datagrid-custom-cell-with-style-rules.story.js +1 -1
  573. package/lib/esm/data-grid/stories/datagrid-custom-cell-with-style-rules.story.js.map +1 -1
  574. package/lib/esm/data-grid/stories/datagrid-in-dialog.story.js +2 -2
  575. package/lib/esm/data-grid/stories/datagrid-in-dialog.story.js.map +1 -1
  576. package/lib/esm/data-grid/stories/datagrid-keyboard-navigation.story.js +1 -1
  577. package/lib/esm/data-grid/stories/datagrid-keyboard-navigation.story.js.map +1 -1
  578. package/lib/esm/data-grid/stories/datagrid-kitchen-sink.story.js +1 -1
  579. package/lib/esm/data-grid/stories/datagrid-kitchen-sink.story.js.map +1 -1
  580. package/lib/esm/data-grid/stories/datagrid-percentage-width-columns.story.js +1 -1
  581. package/lib/esm/data-grid/stories/datagrid-percentage-width-columns.story.js.map +1 -1
  582. package/lib/esm/data-grid/stories/datagrid-pinned-columns.stories.js +3 -3
  583. package/lib/esm/data-grid/stories/datagrid-pinned-columns.stories.js.map +1 -1
  584. package/lib/esm/data-grid/stories/datagrid-placeholder-states.story.js +1 -1
  585. package/lib/esm/data-grid/stories/datagrid-placeholder-states.story.js.map +1 -1
  586. package/lib/esm/data-grid/stories/datagrid-resizable-column.story.js +1 -1
  587. package/lib/esm/data-grid/stories/datagrid-resizable-column.story.js.map +1 -1
  588. package/lib/esm/data-grid/stories/datagrid-rule-based-styling-datetime.story.js +1 -1
  589. package/lib/esm/data-grid/stories/datagrid-rule-based-styling-datetime.story.js.map +1 -1
  590. package/lib/esm/data-grid/stories/datagrid-rule-based-styling.story.js +1 -1
  591. package/lib/esm/data-grid/stories/datagrid-rule-based-styling.story.js.map +1 -1
  592. package/lib/esm/data-grid/stories/datagrid-search-and-filters.stories.js +5 -5
  593. package/lib/esm/data-grid/stories/datagrid-search-and-filters.stories.js.map +1 -1
  594. package/lib/esm/data-grid/stories/datagrid-simple.story.js +1 -1
  595. package/lib/esm/data-grid/stories/datagrid-simple.story.js.map +1 -1
  596. package/lib/esm/data-grid/stories/datagrid-single-selectable.story.js +1 -1
  597. package/lib/esm/data-grid/stories/datagrid-single-selectable.story.js.map +1 -1
  598. package/lib/esm/data-grid/stories/datagrid-skeleton-loading.story.js +1 -1
  599. package/lib/esm/data-grid/stories/datagrid-skeleton-loading.story.js.map +1 -1
  600. package/lib/esm/data-grid/stories/datagrid-sortable.story.js +1 -1
  601. package/lib/esm/data-grid/stories/datagrid-sortable.story.js.map +1 -1
  602. package/lib/esm/data-grid/stories/datagrid-using-editable-cells.story.js +2 -2
  603. package/lib/esm/data-grid/stories/datagrid-using-editable-cells.story.js.map +1 -1
  604. package/lib/esm/data-grid/stories/datagrid-virtualization.story.js +3 -3
  605. package/lib/esm/data-grid/stories/datagrid-virtualization.story.js.map +1 -1
  606. package/lib/esm/data-grid/style-rules/guard.js +43 -0
  607. package/lib/esm/data-grid/style-rules/guard.js.map +1 -0
  608. package/lib/esm/data-grid/style-rules/index.js +1 -3
  609. package/lib/esm/data-grid/style-rules/index.js.map +1 -1
  610. package/lib/esm/data-grid/style-rules/internal/schemas.js +210 -0
  611. package/lib/esm/data-grid/style-rules/internal/schemas.js.map +1 -0
  612. package/lib/esm/data-grid/style-rules/types.js +1 -203
  613. package/lib/esm/data-grid/style-rules/types.js.map +1 -1
  614. package/lib/esm/date-picker/DatePicker.js +8 -6
  615. package/lib/esm/date-picker/DatePicker.js.map +1 -1
  616. package/lib/esm/date-picker/stories/date-picker-in-dialog.story.js +1 -1
  617. package/lib/esm/date-picker/stories/date-picker-in-dialog.story.js.map +1 -1
  618. package/lib/esm/date-picker/stories/date-picker-in-popover-dialog.story.js +1 -1
  619. package/lib/esm/date-picker/stories/date-picker-in-popover-dialog.story.js.map +1 -1
  620. package/lib/esm/dialog/Dialog.js +1 -2
  621. package/lib/esm/dialog/Dialog.js.map +1 -1
  622. package/lib/esm/dialog/stories/dialog-danger.story.js +1 -1
  623. package/lib/esm/dialog/stories/dialog-danger.story.js.map +1 -1
  624. package/lib/esm/dialog/stories/dialog-default.story.js +1 -1
  625. package/lib/esm/dialog/stories/dialog-default.story.js.map +1 -1
  626. package/lib/esm/dialog/stories/dialog-image.story.js +1 -1
  627. package/lib/esm/dialog/stories/dialog-image.story.js.map +1 -1
  628. package/lib/esm/dialog/stories/dialog-info.story.js +1 -1
  629. package/lib/esm/dialog/stories/dialog-info.story.js.map +1 -1
  630. package/lib/esm/dialog/stories/dialog-top-aligned.story.js +2 -2
  631. package/lib/esm/dialog/stories/dialog-top-aligned.story.js.map +1 -1
  632. package/lib/esm/dialog/stories/dialog-variants.story.js +1 -1
  633. package/lib/esm/dialog/stories/dialog-variants.story.js.map +1 -1
  634. package/lib/esm/dialog/stories/dialog-warning.story.js +1 -1
  635. package/lib/esm/dialog/stories/dialog-warning.story.js.map +1 -1
  636. package/lib/esm/dismissible-tag/stories/dismissible-tag-colors.story.js +1 -1
  637. package/lib/esm/dismissible-tag/stories/dismissible-tag-colors.story.js.map +1 -1
  638. package/lib/esm/dismissible-tag/stories/dismissible-tag-sizes.story.js +1 -1
  639. package/lib/esm/dismissible-tag/stories/dismissible-tag-sizes.story.js.map +1 -1
  640. package/lib/esm/drawer/Drawer.js +7 -6
  641. package/lib/esm/drawer/Drawer.js.map +1 -1
  642. package/lib/esm/drawer/stories/drawer-full.story.js +2 -2
  643. package/lib/esm/drawer/stories/drawer-full.story.js.map +1 -1
  644. package/lib/esm/drawer/stories/drawer-not-closeable.story.js +2 -2
  645. package/lib/esm/drawer/stories/drawer-not-closeable.story.js.map +1 -1
  646. package/lib/esm/drawer/stories/drawer-overlay.story.js +1 -1
  647. package/lib/esm/drawer/stories/drawer-overlay.story.js.map +1 -1
  648. package/lib/esm/drawer/stories/drawer-portaled.story.js +2 -2
  649. package/lib/esm/drawer/stories/drawer-portaled.story.js.map +1 -1
  650. package/lib/esm/drawer/stories/drawer-push.story.js +2 -2
  651. package/lib/esm/drawer/stories/drawer-push.story.js.map +1 -1
  652. package/lib/esm/drawer/stories/drawer-resizable.story.js +2 -2
  653. package/lib/esm/drawer/stories/drawer-resizable.story.js.map +1 -1
  654. package/lib/esm/drawer/stories/drawer-right-side.story.js +2 -2
  655. package/lib/esm/drawer/stories/drawer-right-side.story.js.map +1 -1
  656. package/lib/esm/drawer/stories/drawer-scrollable.story.js +2 -2
  657. package/lib/esm/drawer/stories/drawer-scrollable.story.js.map +1 -1
  658. package/lib/esm/dropzone/stories/dropzone-full.story.js +3 -3
  659. package/lib/esm/dropzone/stories/dropzone-full.story.js.map +1 -1
  660. package/lib/esm/flex/stories/flex-default.story.js +1 -1
  661. package/lib/esm/flex/stories/flex-default.story.js.map +1 -1
  662. package/lib/esm/graph-label/stories/graph-label-color.story.js +1 -1
  663. package/lib/esm/graph-label/stories/graph-label-color.story.js.map +1 -1
  664. package/lib/esm/graph-label/stories/graph-label-sizes.story.js +1 -1
  665. package/lib/esm/graph-label/stories/graph-label-sizes.story.js.map +1 -1
  666. package/lib/esm/graph-label/stories/graph-label-types.story.js +1 -1
  667. package/lib/esm/graph-label/stories/graph-label-types.story.js.map +1 -1
  668. package/lib/esm/hooks/use-debounce-callback/index.js +6 -6
  669. package/lib/esm/hooks/use-debounce-callback/index.js.map +1 -1
  670. package/lib/esm/icon-button/stories/icon-button-sizes.story.js +1 -1
  671. package/lib/esm/icon-button/stories/icon-button-sizes.story.js.map +1 -1
  672. package/lib/esm/icon-button/stories/icon-button-tone.story.js +1 -1
  673. package/lib/esm/icon-button/stories/icon-button-tone.story.js.map +1 -1
  674. package/lib/esm/icon-button-array/stories/icon-button-array-sizes.story.js +1 -1
  675. package/lib/esm/icon-button-array/stories/icon-button-array-sizes.story.js.map +1 -1
  676. package/lib/esm/icon-button-base/IconButtonBase.js +1 -3
  677. package/lib/esm/icon-button-base/IconButtonBase.js.map +1 -1
  678. package/lib/esm/icons/generated/custom/index.js +0 -7
  679. package/lib/esm/icons/generated/custom/index.js.map +1 -1
  680. package/lib/esm/inline-edit/InlineEdit.js +3 -2
  681. package/lib/esm/inline-edit/InlineEdit.js.map +1 -1
  682. package/lib/esm/kbd/Kbd.js +0 -1
  683. package/lib/esm/kbd/Kbd.js.map +1 -1
  684. package/lib/esm/loading-spinner/stories/loading-spinner-sizes.story.js +1 -1
  685. package/lib/esm/loading-spinner/stories/loading-spinner-sizes.story.js.map +1 -1
  686. package/lib/esm/logo/stories/logo-black.story.js +1 -1
  687. package/lib/esm/logo/stories/logo-black.story.js.map +1 -1
  688. package/lib/esm/logo/stories/logo-default.story.js +1 -1
  689. package/lib/esm/logo/stories/logo-default.story.js.map +1 -1
  690. package/lib/esm/logo/stories/logo-icon.story.js +1 -1
  691. package/lib/esm/logo/stories/logo-icon.story.js.map +1 -1
  692. package/lib/esm/menu/Menu.js +2 -2
  693. package/lib/esm/menu/Menu.js.map +1 -1
  694. package/lib/esm/menu/menu-types.js.map +1 -1
  695. package/lib/esm/menu/stories/menu-custom-items.story.js +1 -1
  696. package/lib/esm/menu/stories/menu-custom-items.story.js.map +1 -1
  697. package/lib/esm/menu/stories/menu-in-dialog.story.js +2 -2
  698. package/lib/esm/menu/stories/menu-in-dialog.story.js.map +1 -1
  699. package/lib/esm/menu/stories/menu-nested.story.js +1 -1
  700. package/lib/esm/menu/stories/menu-nested.story.js.map +1 -1
  701. package/lib/esm/menu/stories/menu-radio-and-normal.story.js +1 -1
  702. package/lib/esm/menu/stories/menu-radio-and-normal.story.js.map +1 -1
  703. package/lib/esm/menu/stories/menu-radio-items.story.js +1 -1
  704. package/lib/esm/menu/stories/menu-radio-items.story.js.map +1 -1
  705. package/lib/esm/menu/stories/menu-with-icon.story.js +1 -1
  706. package/lib/esm/menu/stories/menu-with-icon.story.js.map +1 -1
  707. package/lib/esm/next/tree-view/TreeView.js +3 -3
  708. package/lib/esm/next/tree-view/TreeView.js.map +1 -1
  709. package/lib/esm/next/tree-view/stories/tree-view-large.story.js +1 -1
  710. package/lib/esm/next/tree-view/stories/tree-view-large.story.js.map +1 -1
  711. package/lib/esm/next/tree-view/stories/tree-view-multiple-replace.story.js +1 -1
  712. package/lib/esm/next/tree-view/stories/tree-view-multiple-replace.story.js.map +1 -1
  713. package/lib/esm/next/tree-view/stories/tree-view-root-selection.story.js +1 -1
  714. package/lib/esm/next/tree-view/stories/tree-view-root-selection.story.js.map +1 -1
  715. package/lib/esm/next/tree-view/stories/tree-view-tooltip.story.js +1 -1
  716. package/lib/esm/next/tree-view/stories/tree-view-tooltip.story.js.map +1 -1
  717. package/lib/esm/next/tree-view/stories/tree-view-trailing.story.js +1 -1
  718. package/lib/esm/next/tree-view/stories/tree-view-trailing.story.js.map +1 -1
  719. package/lib/esm/next/tree-view/stories/tree-view-uncontrolled.story.js +1 -1
  720. package/lib/esm/next/tree-view/stories/tree-view-uncontrolled.story.js.map +1 -1
  721. package/lib/esm/popover/Popover.js +6 -6
  722. package/lib/esm/popover/Popover.js.map +1 -1
  723. package/lib/esm/popover/stories/popover-controlled.story.js +1 -1
  724. package/lib/esm/popover/stories/popover-controlled.story.js.map +1 -1
  725. package/lib/esm/popover/stories/popover-custom-offset.story.js +1 -1
  726. package/lib/esm/popover/stories/popover-custom-offset.story.js.map +1 -1
  727. package/lib/esm/popover/stories/popover-default.story.js +1 -1
  728. package/lib/esm/popover/stories/popover-default.story.js.map +1 -1
  729. package/lib/esm/popover/stories/popover-in-dialog.story.js +1 -1
  730. package/lib/esm/popover/stories/popover-in-dialog.story.js.map +1 -1
  731. package/lib/esm/popover/stories/popover-no-button-wrapper.story.js +1 -1
  732. package/lib/esm/popover/stories/popover-no-button-wrapper.story.js.map +1 -1
  733. package/lib/esm/popover/stories/popover-separate-anchor.story.js +1 -1
  734. package/lib/esm/popover/stories/popover-separate-anchor.story.js.map +1 -1
  735. package/lib/esm/popover/use-popover.js +7 -9
  736. package/lib/esm/popover/use-popover.js.map +1 -1
  737. package/lib/esm/progress-bar/stories/progress-bar-sizes.story.js +1 -1
  738. package/lib/esm/progress-bar/stories/progress-bar-sizes.story.js.map +1 -1
  739. package/lib/esm/radio/stories/radio-disabled.story.js +1 -1
  740. package/lib/esm/radio/stories/radio-disabled.story.js.map +1 -1
  741. package/lib/esm/radio/stories/radio-truncated-label.story.js +1 -1
  742. package/lib/esm/radio/stories/radio-truncated-label.story.js.map +1 -1
  743. package/lib/esm/read-only-tag/stories/read-only-tag-colors.story.js +1 -1
  744. package/lib/esm/read-only-tag/stories/read-only-tag-colors.story.js.map +1 -1
  745. package/lib/esm/read-only-tag/stories/read-only-tag-sizes.story.js +1 -1
  746. package/lib/esm/read-only-tag/stories/read-only-tag-sizes.story.js.map +1 -1
  747. package/lib/esm/segmented-control/stories/segmented-control-sizes.story.js +1 -1
  748. package/lib/esm/segmented-control/stories/segmented-control-sizes.story.js.map +1 -1
  749. package/lib/esm/select/stories/select-controlled.story.js +1 -1
  750. package/lib/esm/select/stories/select-controlled.story.js.map +1 -1
  751. package/lib/esm/select/stories/select-custom-label.story.js +1 -1
  752. package/lib/esm/select/stories/select-custom-label.story.js.map +1 -1
  753. package/lib/esm/select/stories/select-inside-dialog.story.js +1 -1
  754. package/lib/esm/select/stories/select-inside-dialog.story.js.map +1 -1
  755. package/lib/esm/select/stories/select-menu-positionings.story.js +1 -1
  756. package/lib/esm/select/stories/select-menu-positionings.story.js.map +1 -1
  757. package/lib/esm/select/stories/select-required.story.js +1 -1
  758. package/lib/esm/select/stories/select-required.story.js.map +1 -1
  759. package/lib/esm/select/stories/select-sizes.story.js +1 -1
  760. package/lib/esm/select/stories/select-sizes.story.js.map +1 -1
  761. package/lib/esm/select-icon-button/stories/select-icon-button-sizes.story.js +1 -1
  762. package/lib/esm/select-icon-button/stories/select-icon-button-sizes.story.js.map +1 -1
  763. package/lib/esm/select-icon-button/stories/select-icon-button-states.story.js +1 -1
  764. package/lib/esm/select-icon-button/stories/select-icon-button-states.story.js.map +1 -1
  765. package/lib/esm/selectable-tag/stories/selectable-tag-disabled.story.js +1 -1
  766. package/lib/esm/selectable-tag/stories/selectable-tag-disabled.story.js.map +1 -1
  767. package/lib/esm/selectable-tag/stories/selectable-tag-sizes.story.js +1 -1
  768. package/lib/esm/selectable-tag/stories/selectable-tag-sizes.story.js.map +1 -1
  769. package/lib/esm/side-navigation/SideNavigation.js.map +1 -1
  770. package/lib/esm/side-navigation/stories/side-nav-badges.story.js +2 -2
  771. package/lib/esm/side-navigation/stories/side-nav-badges.story.js.map +1 -1
  772. package/lib/esm/side-navigation/stories/side-nav-compact.story.js +1 -1
  773. package/lib/esm/side-navigation/stories/side-nav-compact.story.js.map +1 -1
  774. package/lib/esm/side-navigation/stories/side-nav-default.story.js +1 -1
  775. package/lib/esm/side-navigation/stories/side-nav-default.story.js.map +1 -1
  776. package/lib/esm/side-navigation/stories/side-nav-secondary.story.js +1 -1
  777. package/lib/esm/side-navigation/stories/side-nav-secondary.story.js.map +1 -1
  778. package/lib/esm/skeleton/stories/skeleton-circular.story.js +1 -1
  779. package/lib/esm/skeleton/stories/skeleton-circular.story.js.map +1 -1
  780. package/lib/esm/skeleton/stories/skeleton-default.story.js +1 -1
  781. package/lib/esm/skeleton/stories/skeleton-default.story.js.map +1 -1
  782. package/lib/esm/skeleton/stories/skeleton-full-example.story.js +1 -1
  783. package/lib/esm/skeleton/stories/skeleton-full-example.story.js.map +1 -1
  784. package/lib/esm/skeleton/stories/skeleton-inherit-height.story.js +1 -1
  785. package/lib/esm/skeleton/stories/skeleton-inherit-height.story.js.map +1 -1
  786. package/lib/esm/skeleton/stories/skeleton-inherit-width.story.js +1 -1
  787. package/lib/esm/skeleton/stories/skeleton-inherit-width.story.js.map +1 -1
  788. package/lib/esm/slider/Slider.js +3 -3
  789. package/lib/esm/slider/Slider.js.map +1 -1
  790. package/lib/esm/slider/stories/slider-custom-step-length.story.js +1 -1
  791. package/lib/esm/slider/stories/slider-custom-step-length.story.js.map +1 -1
  792. package/lib/esm/slider/stories/slider-range.story.js +1 -1
  793. package/lib/esm/slider/stories/slider-range.story.js.map +1 -1
  794. package/lib/esm/slider/stories/slider-show-steps.story.js +1 -1
  795. package/lib/esm/slider/stories/slider-show-steps.story.js.map +1 -1
  796. package/lib/esm/slider/stories/slider-show-values.story.js +1 -1
  797. package/lib/esm/slider/stories/slider-show-values.story.js.map +1 -1
  798. package/lib/esm/slider/stories/slider-single-controlled.story.js +2 -2
  799. package/lib/esm/slider/stories/slider-single-controlled.story.js.map +1 -1
  800. package/lib/esm/slider/stories/slider-single.story.js +1 -1
  801. package/lib/esm/slider/stories/slider-single.story.js.map +1 -1
  802. package/lib/esm/spotlight/Spotlight.js +3 -3
  803. package/lib/esm/spotlight/Spotlight.js.map +1 -1
  804. package/lib/esm/spotlight/SpotlightTarget.js +3 -3
  805. package/lib/esm/spotlight/SpotlightTarget.js.map +1 -1
  806. package/lib/esm/spotlight/stories/spotlight-fixed-positioning.story.js +1 -1
  807. package/lib/esm/spotlight/stories/spotlight-fixed-positioning.story.js.map +1 -1
  808. package/lib/esm/spotlight/stories/spotlight-in-dialog.story.js +1 -1
  809. package/lib/esm/spotlight/stories/spotlight-in-dialog.story.js.map +1 -1
  810. package/lib/esm/spotlight/stories/spotlight-in-side-nav.story.js +1 -1
  811. package/lib/esm/spotlight/stories/spotlight-in-side-nav.story.js.map +1 -1
  812. package/lib/esm/spotlight/stories/spotlight-on-tabs.story.js +1 -1
  813. package/lib/esm/spotlight/stories/spotlight-on-tabs.story.js.map +1 -1
  814. package/lib/esm/spotlight/stories/spotlight-tour.story.js +1 -1
  815. package/lib/esm/spotlight/stories/spotlight-tour.story.js.map +1 -1
  816. package/lib/esm/spotlight/stories/spotlight-with-icon.story.js +1 -1
  817. package/lib/esm/spotlight/stories/spotlight-with-icon.story.js.map +1 -1
  818. package/lib/esm/spotlight/stories/spotlight-with-image.story.js +1 -1
  819. package/lib/esm/spotlight/stories/spotlight-with-image.story.js.map +1 -1
  820. package/lib/esm/spotlight/stories/spotlight-with-label.story.js +1 -1
  821. package/lib/esm/spotlight/stories/spotlight-with-label.story.js.map +1 -1
  822. package/lib/esm/spotlight/stories/spotlight-with-pointer.story.js +1 -1
  823. package/lib/esm/spotlight/stories/spotlight-with-pointer.story.js.map +1 -1
  824. package/lib/esm/spotlight/use-spotlight.js +5 -5
  825. package/lib/esm/spotlight/use-spotlight.js.map +1 -1
  826. package/lib/esm/status-indicator/stories/status-indicator-variants.story.js +1 -1
  827. package/lib/esm/status-indicator/stories/status-indicator-variants.story.js.map +1 -1
  828. package/lib/esm/status-label/stories/status-label-colors.story.js +1 -1
  829. package/lib/esm/status-label/stories/status-label-colors.story.js.map +1 -1
  830. package/lib/esm/status-label/stories/status-label-fills.story.js +1 -1
  831. package/lib/esm/status-label/stories/status-label-fills.story.js.map +1 -1
  832. package/lib/esm/status-label/stories/status-label-with-icons.story.js +1 -1
  833. package/lib/esm/status-label/stories/status-label-with-icons.story.js.map +1 -1
  834. package/lib/esm/tabs/Tabs.js +2 -2
  835. package/lib/esm/tabs/Tabs.js.map +1 -1
  836. package/lib/esm/tabs/stories/tabs-badge.story.js +1 -1
  837. package/lib/esm/tabs/stories/tabs-badge.story.js.map +1 -1
  838. package/lib/esm/tabs/stories/tabs-default.story.js +1 -1
  839. package/lib/esm/tabs/stories/tabs-default.story.js.map +1 -1
  840. package/lib/esm/tabs/stories/tabs-disabled.story.js +1 -1
  841. package/lib/esm/tabs/stories/tabs-disabled.story.js.map +1 -1
  842. package/lib/esm/tabs/stories/tabs-fill-variants.story.js +1 -1
  843. package/lib/esm/tabs/stories/tabs-fill-variants.story.js.map +1 -1
  844. package/lib/esm/tabs/stories/tabs-overflow.story.js +1 -1
  845. package/lib/esm/tabs/stories/tabs-overflow.story.js.map +1 -1
  846. package/lib/esm/tabs/stories/tabs-sizes.story.js +1 -1
  847. package/lib/esm/tabs/stories/tabs-sizes.story.js.map +1 -1
  848. package/lib/esm/tabs/stories/tabs-with-icons.story.js +1 -1
  849. package/lib/esm/tabs/stories/tabs-with-icons.story.js.map +1 -1
  850. package/lib/esm/tag/stories/tag-sizes.story.js +1 -1
  851. package/lib/esm/tag/stories/tag-sizes.story.js.map +1 -1
  852. package/lib/esm/tag/stories/tag-types.story.js +1 -1
  853. package/lib/esm/tag/stories/tag-types.story.js.map +1 -1
  854. package/lib/esm/tag-base/stories/tag-variants.story.js +1 -1
  855. package/lib/esm/tag-base/stories/tag-variants.story.js.map +1 -1
  856. package/lib/esm/text-area/stories/text-area-sizes.story.js +1 -1
  857. package/lib/esm/text-area/stories/text-area-sizes.story.js.map +1 -1
  858. package/lib/esm/text-input/TextInput.js.map +1 -1
  859. package/lib/esm/text-input/stories/text-input-loading-spinner.story.js +1 -1
  860. package/lib/esm/text-input/stories/text-input-loading-spinner.story.js.map +1 -1
  861. package/lib/esm/text-input/stories/text-input-optional.story.js +1 -1
  862. package/lib/esm/text-input/stories/text-input-optional.story.js.map +1 -1
  863. package/lib/esm/text-input/stories/text-input-sizes.story.js +1 -1
  864. package/lib/esm/text-input/stories/text-input-sizes.story.js.map +1 -1
  865. package/lib/esm/text-link/TextLink.js +2 -6
  866. package/lib/esm/text-link/TextLink.js.map +1 -1
  867. package/lib/esm/text-link/stories/index.js +3 -12
  868. package/lib/esm/text-link/stories/index.js.map +1 -1
  869. package/lib/esm/text-link/stories/text-link-external.story.js +3 -3
  870. package/lib/esm/text-link/stories/text-link-external.story.js.map +1 -1
  871. package/lib/esm/text-link/stories/{text-link-internal-underline.story.js → text-link-internal.story.js} +2 -2
  872. package/lib/esm/text-link/stories/text-link-internal.story.js.map +1 -0
  873. package/lib/esm/time-picker/stories/time-picker-in-popover-dialog.story.js +1 -1
  874. package/lib/esm/time-picker/stories/time-picker-in-popover-dialog.story.js.map +1 -1
  875. package/lib/esm/timezone-picker/stories/timezone-picker-in-dialog.story.js +1 -1
  876. package/lib/esm/timezone-picker/stories/timezone-picker-in-dialog.story.js.map +1 -1
  877. package/lib/esm/timezone-picker/stories/timezone-picker-in-popover-dialog.story.js +1 -1
  878. package/lib/esm/timezone-picker/stories/timezone-picker-in-popover-dialog.story.js.map +1 -1
  879. package/lib/esm/toast/stories/toast-action-story.js +1 -1
  880. package/lib/esm/toast/stories/toast-action-story.js.map +1 -1
  881. package/lib/esm/toast/stories/toast-closeable-story.js +1 -1
  882. package/lib/esm/toast/stories/toast-closeable-story.js.map +1 -1
  883. package/lib/esm/toast/stories/toast-controlled-story.js +1 -1
  884. package/lib/esm/toast/stories/toast-controlled-story.js.map +1 -1
  885. package/lib/esm/toast/stories/toast-custom-story.js +1 -1
  886. package/lib/esm/toast/stories/toast-custom-story.js.map +1 -1
  887. package/lib/esm/toast/stories/toast-danger-story.js +1 -1
  888. package/lib/esm/toast/stories/toast-danger-story.js.map +1 -1
  889. package/lib/esm/toast/stories/toast-neutral-story.js +1 -1
  890. package/lib/esm/toast/stories/toast-neutral-story.js.map +1 -1
  891. package/lib/esm/toast/stories/toast-progress-bar.js +1 -1
  892. package/lib/esm/toast/stories/toast-progress-bar.js.map +1 -1
  893. package/lib/esm/toast/stories/toast-success-story.js +1 -1
  894. package/lib/esm/toast/stories/toast-success-story.js.map +1 -1
  895. package/lib/esm/tooltip/Tooltip.js.map +1 -1
  896. package/lib/esm/tooltip/stories/tooltip-in-dialog.story.js +1 -1
  897. package/lib/esm/tooltip/stories/tooltip-in-dialog.story.js.map +1 -1
  898. package/lib/esm/tooltip/stories/tooltip-placements.story.js +1 -1
  899. package/lib/esm/tooltip/stories/tooltip-placements.story.js.map +1 -1
  900. package/lib/esm/tooltip/use-tooltip.js.map +1 -1
  901. package/lib/esm/tree-view/TreeView.js +3 -0
  902. package/lib/esm/tree-view/TreeView.js.map +1 -1
  903. package/lib/esm/tree-view/TreeViewItem.js.map +1 -1
  904. package/lib/esm/tree-view/stories/treeview-custom.story.js +2 -2
  905. package/lib/esm/tree-view/stories/treeview-custom.story.js.map +1 -1
  906. package/lib/esm/tree-view/tree-view-utils.js.map +1 -1
  907. package/lib/esm/typography/Typography.js +7 -1
  908. package/lib/esm/typography/Typography.js.map +1 -1
  909. package/lib/types/_generated/style-rules/index.d.ts +2 -2
  910. package/lib/types/_generated/style-rules/index.d.ts.map +1 -1
  911. package/lib/{cjs/text-link/stories/text-link-default.story.js → types/_generated/style-rules/literal-guards.d.ts} +8 -10
  912. package/lib/types/_generated/style-rules/literal-guards.d.ts.map +1 -0
  913. package/lib/types/_generated/style-rules/literal-schemas.d.ts +0 -12
  914. package/lib/types/_generated/style-rules/literal-schemas.d.ts.map +1 -1
  915. package/lib/types/_generated/style-rules/literal-types.d.ts +80 -0
  916. package/lib/types/_generated/style-rules/literal-types.d.ts.map +1 -0
  917. package/lib/types/_generated/style-rules/numeric-utils.d.ts +1 -1
  918. package/lib/types/_generated/style-rules/numeric-utils.d.ts.map +1 -1
  919. package/lib/types/_generated/style-rules/range-utils.d.ts +1 -1
  920. package/lib/types/_generated/style-rules/range-utils.d.ts.map +1 -1
  921. package/lib/types/ai/reasoning/Reasoning.d.ts +1 -10
  922. package/lib/types/ai/reasoning/Reasoning.d.ts.map +1 -1
  923. package/lib/types/ai/reasoning/stories/reasoning-full.story.d.ts.map +1 -1
  924. package/lib/types/ai/response/Response.d.ts.map +1 -1
  925. package/lib/types/ai/response/stories/response-fixtures.d.ts +37 -0
  926. package/lib/types/ai/response/stories/response-fixtures.d.ts.map +1 -0
  927. package/lib/types/button/ButtonBase.d.ts.map +1 -1
  928. package/lib/types/code-block/CodeBlock.d.ts +2 -2
  929. package/lib/types/code-block/CodeBlock.d.ts.map +1 -1
  930. package/lib/types/color-picker/ColorPicker.d.ts.map +1 -1
  931. package/lib/types/data-grid/style-rules/guard.d.ts +43 -0
  932. package/lib/types/data-grid/style-rules/guard.d.ts.map +1 -0
  933. package/lib/types/data-grid/style-rules/index.d.ts +1 -2
  934. package/lib/types/data-grid/style-rules/index.d.ts.map +1 -1
  935. package/lib/types/data-grid/style-rules/internal/schemas.d.ts +321 -0
  936. package/lib/types/data-grid/style-rules/internal/schemas.d.ts.map +1 -0
  937. package/lib/types/data-grid/style-rules/types.d.ts +60 -284
  938. package/lib/types/data-grid/style-rules/types.d.ts.map +1 -1
  939. package/lib/types/date-picker/DatePicker.d.ts.map +1 -1
  940. package/lib/types/dialog/Dialog.d.ts.map +1 -1
  941. package/lib/types/drawer/Drawer.d.ts +7 -13
  942. package/lib/types/drawer/Drawer.d.ts.map +1 -1
  943. package/lib/types/drawer/stories/drawer-overlay.story.d.ts.map +1 -1
  944. package/lib/types/dropzone/stories/dropzone-full.story.d.ts.map +1 -1
  945. package/lib/types/hooks/use-debounce-callback/index.d.ts +2 -2
  946. package/lib/types/hooks/use-debounce-callback/index.d.ts.map +1 -1
  947. package/lib/types/icon-button-base/IconButtonBase.d.ts.map +1 -1
  948. package/lib/types/icons/generated/custom/index.d.ts +0 -7
  949. package/lib/types/icons/generated/custom/index.d.ts.map +1 -1
  950. package/lib/types/inline-edit/InlineEdit.d.ts +6 -1
  951. package/lib/types/inline-edit/InlineEdit.d.ts.map +1 -1
  952. package/lib/types/kbd/Kbd.d.ts +1 -1
  953. package/lib/types/kbd/Kbd.d.ts.map +1 -1
  954. package/lib/types/menu/Menu.d.ts +1 -1
  955. package/lib/types/menu/Menu.d.ts.map +1 -1
  956. package/lib/types/menu/menu-types.d.ts +2 -2
  957. package/lib/types/menu/menu-types.d.ts.map +1 -1
  958. package/lib/types/next/tree-view/TreeView.d.ts +2 -2
  959. package/lib/types/next/tree-view/TreeView.d.ts.map +1 -1
  960. package/lib/types/popover/Popover.d.ts +15 -12
  961. package/lib/types/popover/Popover.d.ts.map +1 -1
  962. package/lib/types/popover/stories/popover-controlled.story.d.ts.map +1 -1
  963. package/lib/types/popover/stories/popover-default.story.d.ts.map +1 -1
  964. package/lib/types/popover/stories/popover-no-button-wrapper.story.d.ts.map +1 -1
  965. package/lib/types/popover/use-popover.d.ts +14 -9
  966. package/lib/types/popover/use-popover.d.ts.map +1 -1
  967. package/lib/types/side-navigation/SideNavigation.d.ts.map +1 -1
  968. package/lib/types/slider/Slider.d.ts +3 -3
  969. package/lib/types/slider/Slider.d.ts.map +1 -1
  970. package/lib/types/spotlight/Spotlight.d.ts +2 -2
  971. package/lib/types/spotlight/Spotlight.d.ts.map +1 -1
  972. package/lib/types/spotlight/SpotlightTarget.d.ts +3 -3
  973. package/lib/types/spotlight/SpotlightTarget.d.ts.map +1 -1
  974. package/lib/types/spotlight/stories/spotlight-tour.story.d.ts.map +1 -1
  975. package/lib/types/spotlight/stories/spotlight-with-image.story.d.ts.map +1 -1
  976. package/lib/types/spotlight/use-spotlight.d.ts +4 -4
  977. package/lib/types/spotlight/use-spotlight.d.ts.map +1 -1
  978. package/lib/types/tabs/Tabs.d.ts +3 -1
  979. package/lib/types/tabs/Tabs.d.ts.map +1 -1
  980. package/lib/types/text-link/TextLink.d.ts +2 -13
  981. package/lib/types/text-link/TextLink.d.ts.map +1 -1
  982. package/lib/types/text-link/stories/index.d.ts +2 -8
  983. package/lib/types/text-link/stories/index.d.ts.map +1 -1
  984. package/lib/types/text-link/stories/text-link-external.story.d.ts.map +1 -1
  985. package/lib/types/{text-overflow/stories/character-limit.story.d.ts → text-link/stories/text-link-internal.story.d.ts} +1 -1
  986. package/lib/types/text-link/stories/text-link-internal.story.d.ts.map +1 -0
  987. package/lib/types/tooltip/Tooltip.d.ts +0 -1
  988. package/lib/types/tooltip/Tooltip.d.ts.map +1 -1
  989. package/lib/types/tooltip/use-tooltip.d.ts.map +1 -1
  990. package/lib/types/tree-view/TreeView.d.ts +3 -0
  991. package/lib/types/tree-view/TreeView.d.ts.map +1 -1
  992. package/lib/types/tree-view/TreeViewItem.d.ts.map +1 -1
  993. package/lib/types/tree-view/tree-view-utils.d.ts.map +1 -1
  994. package/lib/types/typography/Typography.d.ts +6 -0
  995. package/lib/types/typography/Typography.d.ts.map +1 -1
  996. package/package.json +5 -4
  997. package/skills/ndl-react/SKILL.md +21 -19
  998. package/skills/ndl-react/components/ai/presence.md +3 -3
  999. package/skills/ndl-react/components/ai/reasoning.md +2 -6
  1000. package/skills/ndl-react/components/ai/response.md +17 -17
  1001. package/skills/ndl-react/components/ai/suggestion.md +1 -1
  1002. package/skills/ndl-react/components/ai/user-bubble.md +2 -2
  1003. package/skills/ndl-react/components/announcement-banner.md +10 -10
  1004. package/skills/ndl-react/components/avatar.md +5 -5
  1005. package/skills/ndl-react/components/banner.md +2 -2
  1006. package/skills/ndl-react/components/breadcrumbs.md +3 -3
  1007. package/skills/ndl-react/components/checkbox.md +4 -4
  1008. package/skills/ndl-react/components/clean-icon-button.md +17 -17
  1009. package/skills/ndl-react/components/clipboard-button.md +1 -1
  1010. package/skills/ndl-react/components/code-block.md +8 -9
  1011. package/skills/ndl-react/components/color-picker.md +3 -3
  1012. package/skills/ndl-react/components/combobox.md +20 -20
  1013. package/skills/ndl-react/components/conditional-wrap.md +1 -1
  1014. package/skills/ndl-react/components/data-grid.md +28 -28
  1015. package/skills/ndl-react/components/date-picker.md +3 -3
  1016. package/skills/ndl-react/components/dialog.md +9 -9
  1017. package/skills/ndl-react/components/dismissible-tag.md +2 -2
  1018. package/skills/ndl-react/components/drawer.md +39 -37
  1019. package/skills/ndl-react/components/dropzone.md +10 -13
  1020. package/skills/ndl-react/components/flex.md +1 -1
  1021. package/skills/ndl-react/components/graph-label.md +3 -3
  1022. package/skills/ndl-react/components/icon-button-array.md +1 -1
  1023. package/skills/ndl-react/components/icon-button.md +7 -7
  1024. package/skills/ndl-react/components/inline-edit.md +4 -1
  1025. package/skills/ndl-react/components/loading-spinner.md +1 -1
  1026. package/skills/ndl-react/components/logo.md +3 -3
  1027. package/skills/ndl-react/components/menu.md +14 -14
  1028. package/skills/ndl-react/components/next/tree-view.md +18 -18
  1029. package/skills/ndl-react/components/popover.md +15 -21
  1030. package/skills/ndl-react/components/progress-bar.md +1 -1
  1031. package/skills/ndl-react/components/radio.md +2 -2
  1032. package/skills/ndl-react/components/read-only-tag.md +2 -2
  1033. package/skills/ndl-react/components/segmented-control.md +1 -1
  1034. package/skills/ndl-react/components/select-icon-button.md +8 -8
  1035. package/skills/ndl-react/components/select.md +8 -8
  1036. package/skills/ndl-react/components/selectable-tag.md +2 -2
  1037. package/skills/ndl-react/components/side-navigation.md +19 -19
  1038. package/skills/ndl-react/components/skeleton.md +13 -13
  1039. package/skills/ndl-react/components/slider.md +13 -13
  1040. package/skills/ndl-react/components/spotlight.md +43 -27
  1041. package/skills/ndl-react/components/status-indicator.md +6 -6
  1042. package/skills/ndl-react/components/status-label.md +3 -3
  1043. package/skills/ndl-react/components/tabs.md +21 -20
  1044. package/skills/ndl-react/components/tag.md +2 -2
  1045. package/skills/ndl-react/components/text-area.md +1 -1
  1046. package/skills/ndl-react/components/text-input.md +3 -3
  1047. package/skills/ndl-react/components/text-link.md +12 -63
  1048. package/skills/ndl-react/components/time-picker.md +2 -2
  1049. package/skills/ndl-react/components/timezone-picker.md +4 -4
  1050. package/skills/ndl-react/components/tooltip.md +3 -3
  1051. package/skills/ndl-react/components/tree-view.md +6 -4
  1052. package/skills/ndl-react/components/typography.md +4 -0
  1053. package/skills/ndl-react/references/styling.md +56 -48
  1054. package/lib/cjs/icons/generated/custom/AddNode.js +0 -31
  1055. package/lib/cjs/icons/generated/custom/AddNode.js.map +0 -1
  1056. package/lib/cjs/icons/generated/custom/PanelBottom.js +0 -31
  1057. package/lib/cjs/icons/generated/custom/PanelBottom.js.map +0 -1
  1058. package/lib/cjs/icons/generated/custom/PanelLeft.js +0 -31
  1059. package/lib/cjs/icons/generated/custom/PanelLeft.js.map +0 -1
  1060. package/lib/cjs/icons/generated/custom/PanelLeftCollapsed.js +0 -31
  1061. package/lib/cjs/icons/generated/custom/PanelLeftCollapsed.js.map +0 -1
  1062. package/lib/cjs/icons/generated/custom/PanelLeftExpanded.js +0 -31
  1063. package/lib/cjs/icons/generated/custom/PanelLeftExpanded.js.map +0 -1
  1064. package/lib/cjs/icons/generated/custom/PanelRight.js +0 -31
  1065. package/lib/cjs/icons/generated/custom/PanelRight.js.map +0 -1
  1066. package/lib/cjs/icons/generated/custom/ThreePanel.js +0 -31
  1067. package/lib/cjs/icons/generated/custom/ThreePanel.js.map +0 -1
  1068. package/lib/cjs/text-link/stories/text-link-default.story.js.map +0 -1
  1069. package/lib/cjs/text-link/stories/text-link-external-underline.story.js +0 -30
  1070. package/lib/cjs/text-link/stories/text-link-external-underline.story.js.map +0 -1
  1071. package/lib/cjs/text-link/stories/text-link-internal-icon.story.js +0 -30
  1072. package/lib/cjs/text-link/stories/text-link-internal-icon.story.js.map +0 -1
  1073. package/lib/cjs/text-link/stories/text-link-internal-underline.story.js.map +0 -1
  1074. package/lib/cjs/text-overflow/TextOverflow.js +0 -146
  1075. package/lib/cjs/text-overflow/TextOverflow.js.map +0 -1
  1076. package/lib/cjs/text-overflow/constants.js +0 -44
  1077. package/lib/cjs/text-overflow/constants.js.map +0 -1
  1078. package/lib/cjs/text-overflow/index.js.map +0 -1
  1079. package/lib/cjs/text-overflow/stories/character-limit.story.js +0 -32
  1080. package/lib/cjs/text-overflow/stories/character-limit.story.js.map +0 -1
  1081. package/lib/cjs/text-overflow/stories/expand-collapse-buttons.story.js +0 -32
  1082. package/lib/cjs/text-overflow/stories/expand-collapse-buttons.story.js.map +0 -1
  1083. package/lib/cjs/text-overflow/stories/index.js +0 -48
  1084. package/lib/cjs/text-overflow/stories/index.js.map +0 -1
  1085. package/lib/cjs/text-overflow/stories/line-clamp.story.js +0 -32
  1086. package/lib/cjs/text-overflow/stories/line-clamp.story.js.map +0 -1
  1087. package/lib/cjs/text-overflow/stories/mixed-content.story.js +0 -31
  1088. package/lib/cjs/text-overflow/stories/mixed-content.story.js.map +0 -1
  1089. package/lib/cjs/text-overflow/stories/width-based-truncation.story.js +0 -32
  1090. package/lib/cjs/text-overflow/stories/width-based-truncation.story.js.map +0 -1
  1091. package/lib/cjs/text-overflow/text-overflow-utils.js +0 -167
  1092. package/lib/cjs/text-overflow/text-overflow-utils.js.map +0 -1
  1093. package/lib/cjs/text-overflow/use-ellipsis-observer.js +0 -66
  1094. package/lib/cjs/text-overflow/use-ellipsis-observer.js.map +0 -1
  1095. package/lib/cjs/text-overflow/use-truncate-with-button.js +0 -205
  1096. package/lib/cjs/text-overflow/use-truncate-with-button.js.map +0 -1
  1097. package/lib/esm/icons/generated/custom/AddNode.js +0 -29
  1098. package/lib/esm/icons/generated/custom/AddNode.js.map +0 -1
  1099. package/lib/esm/icons/generated/custom/PanelBottom.js +0 -29
  1100. package/lib/esm/icons/generated/custom/PanelBottom.js.map +0 -1
  1101. package/lib/esm/icons/generated/custom/PanelLeft.js +0 -29
  1102. package/lib/esm/icons/generated/custom/PanelLeft.js.map +0 -1
  1103. package/lib/esm/icons/generated/custom/PanelLeftCollapsed.js +0 -29
  1104. package/lib/esm/icons/generated/custom/PanelLeftCollapsed.js.map +0 -1
  1105. package/lib/esm/icons/generated/custom/PanelLeftExpanded.js +0 -29
  1106. package/lib/esm/icons/generated/custom/PanelLeftExpanded.js.map +0 -1
  1107. package/lib/esm/icons/generated/custom/PanelRight.js +0 -29
  1108. package/lib/esm/icons/generated/custom/PanelRight.js.map +0 -1
  1109. package/lib/esm/icons/generated/custom/ThreePanel.js +0 -29
  1110. package/lib/esm/icons/generated/custom/ThreePanel.js.map +0 -1
  1111. package/lib/esm/text-link/stories/text-link-default.story.js +0 -28
  1112. package/lib/esm/text-link/stories/text-link-default.story.js.map +0 -1
  1113. package/lib/esm/text-link/stories/text-link-external-underline.story.js +0 -28
  1114. package/lib/esm/text-link/stories/text-link-external-underline.story.js.map +0 -1
  1115. package/lib/esm/text-link/stories/text-link-internal-icon.story.js +0 -28
  1116. package/lib/esm/text-link/stories/text-link-internal-icon.story.js.map +0 -1
  1117. package/lib/esm/text-link/stories/text-link-internal-underline.story.js.map +0 -1
  1118. package/lib/esm/text-overflow/TextOverflow.js +0 -139
  1119. package/lib/esm/text-overflow/TextOverflow.js.map +0 -1
  1120. package/lib/esm/text-overflow/constants.js +0 -41
  1121. package/lib/esm/text-overflow/constants.js.map +0 -1
  1122. package/lib/esm/text-overflow/index.js.map +0 -1
  1123. package/lib/esm/text-overflow/stories/character-limit.story.js +0 -30
  1124. package/lib/esm/text-overflow/stories/character-limit.story.js.map +0 -1
  1125. package/lib/esm/text-overflow/stories/expand-collapse-buttons.story.js +0 -30
  1126. package/lib/esm/text-overflow/stories/expand-collapse-buttons.story.js.map +0 -1
  1127. package/lib/esm/text-overflow/stories/index.js +0 -37
  1128. package/lib/esm/text-overflow/stories/index.js.map +0 -1
  1129. package/lib/esm/text-overflow/stories/line-clamp.story.js +0 -30
  1130. package/lib/esm/text-overflow/stories/line-clamp.story.js.map +0 -1
  1131. package/lib/esm/text-overflow/stories/mixed-content.story.js +0 -29
  1132. package/lib/esm/text-overflow/stories/mixed-content.story.js.map +0 -1
  1133. package/lib/esm/text-overflow/stories/width-based-truncation.story.js +0 -30
  1134. package/lib/esm/text-overflow/stories/width-based-truncation.story.js.map +0 -1
  1135. package/lib/esm/text-overflow/text-overflow-utils.js +0 -159
  1136. package/lib/esm/text-overflow/text-overflow-utils.js.map +0 -1
  1137. package/lib/esm/text-overflow/use-ellipsis-observer.js +0 -63
  1138. package/lib/esm/text-overflow/use-ellipsis-observer.js.map +0 -1
  1139. package/lib/esm/text-overflow/use-truncate-with-button.js +0 -202
  1140. package/lib/esm/text-overflow/use-truncate-with-button.js.map +0 -1
  1141. package/lib/types/icons/generated/custom/AddNode.d.ts +0 -30
  1142. package/lib/types/icons/generated/custom/AddNode.d.ts.map +0 -1
  1143. package/lib/types/icons/generated/custom/PanelBottom.d.ts +0 -30
  1144. package/lib/types/icons/generated/custom/PanelBottom.d.ts.map +0 -1
  1145. package/lib/types/icons/generated/custom/PanelLeft.d.ts +0 -30
  1146. package/lib/types/icons/generated/custom/PanelLeft.d.ts.map +0 -1
  1147. package/lib/types/icons/generated/custom/PanelLeftCollapsed.d.ts +0 -30
  1148. package/lib/types/icons/generated/custom/PanelLeftCollapsed.d.ts.map +0 -1
  1149. package/lib/types/icons/generated/custom/PanelLeftExpanded.d.ts +0 -30
  1150. package/lib/types/icons/generated/custom/PanelLeftExpanded.d.ts.map +0 -1
  1151. package/lib/types/icons/generated/custom/PanelRight.d.ts +0 -30
  1152. package/lib/types/icons/generated/custom/PanelRight.d.ts.map +0 -1
  1153. package/lib/types/icons/generated/custom/ThreePanel.d.ts +0 -30
  1154. package/lib/types/icons/generated/custom/ThreePanel.d.ts.map +0 -1
  1155. package/lib/types/text-link/stories/text-link-default.story.d.ts +0 -24
  1156. package/lib/types/text-link/stories/text-link-default.story.d.ts.map +0 -1
  1157. package/lib/types/text-link/stories/text-link-external-underline.story.d.ts +0 -24
  1158. package/lib/types/text-link/stories/text-link-external-underline.story.d.ts.map +0 -1
  1159. package/lib/types/text-link/stories/text-link-internal-icon.story.d.ts +0 -24
  1160. package/lib/types/text-link/stories/text-link-internal-icon.story.d.ts.map +0 -1
  1161. package/lib/types/text-link/stories/text-link-internal-underline.story.d.ts +0 -24
  1162. package/lib/types/text-link/stories/text-link-internal-underline.story.d.ts.map +0 -1
  1163. package/lib/types/text-overflow/TextOverflow.d.ts +0 -63
  1164. package/lib/types/text-overflow/TextOverflow.d.ts.map +0 -1
  1165. package/lib/types/text-overflow/constants.d.ts +0 -41
  1166. package/lib/types/text-overflow/constants.d.ts.map +0 -1
  1167. package/lib/types/text-overflow/index.d.ts +0 -22
  1168. package/lib/types/text-overflow/index.d.ts.map +0 -1
  1169. package/lib/types/text-overflow/stories/character-limit.story.d.ts.map +0 -1
  1170. package/lib/types/text-overflow/stories/expand-collapse-buttons.story.d.ts +0 -24
  1171. package/lib/types/text-overflow/stories/expand-collapse-buttons.story.d.ts.map +0 -1
  1172. package/lib/types/text-overflow/stories/index.d.ts +0 -31
  1173. package/lib/types/text-overflow/stories/index.d.ts.map +0 -1
  1174. package/lib/types/text-overflow/stories/line-clamp.story.d.ts +0 -24
  1175. package/lib/types/text-overflow/stories/line-clamp.story.d.ts.map +0 -1
  1176. package/lib/types/text-overflow/stories/mixed-content.story.d.ts +0 -24
  1177. package/lib/types/text-overflow/stories/mixed-content.story.d.ts.map +0 -1
  1178. package/lib/types/text-overflow/stories/width-based-truncation.story.d.ts +0 -24
  1179. package/lib/types/text-overflow/stories/width-based-truncation.story.d.ts.map +0 -1
  1180. package/lib/types/text-overflow/text-overflow-utils.d.ts +0 -35
  1181. package/lib/types/text-overflow/text-overflow-utils.d.ts.map +0 -1
  1182. package/lib/types/text-overflow/use-ellipsis-observer.d.ts +0 -28
  1183. package/lib/types/text-overflow/use-ellipsis-observer.d.ts.map +0 -1
  1184. package/lib/types/text-overflow/use-truncate-with-button.d.ts +0 -45
  1185. package/lib/types/text-overflow/use-truncate-with-button.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"TextInput.js","sourceRoot":"","sources":["../../../src/text-input/TextInput.tsx"],"names":[],"mappings":"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","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 classNames from 'classnames';\nimport {\n type InputHTMLAttributes,\n type ReactElement,\n type ReactNode,\n useId,\n useMemo,\n} from 'react';\n\nimport {\n FormFieldLabel,\n FormFieldMessage,\n useFormField,\n} from '../_common/form-control';\nimport { customLabelAndNoAriaLabelWarningMessage } from '../_common/messages';\nimport { type CommonProps, type TooltipObjectProps } from '../_common/types';\nimport { useSemiControlledInput } from '../_common/use-semi-controlled-input';\nimport { needleWarningMessage } from '../_common/utils';\nimport { XMarkIconOutline } from '../icons/generated/heroIcons/XMarkIconOutline';\nimport { LoadingSpinner } from '../loading-spinner';\nimport { Skeleton } from '../skeleton';\n\n/**\n * @remarks\n * When `moreInformationText` is provided, a tooltip is rendered next to the label, and the `tooltipProps` prop is used to configure the tooltip. The `TooltipObjectProps` type is defined as: `{ root?: Partial<React.ComponentProps<typeof Tooltip>>; trigger?: Partial<React.ComponentProps<typeof Tooltip.Trigger>>; content?: Partial<React.ComponentProps<typeof Tooltip.Content>>; }`, see the Tooltip component for more details.\n *\n * @remarks\n * When `isSkeletonLoading` is true, the input is rendered as a loading skeleton and the `skeletonProps` prop is used to configure the skeleton. For more information, see the Skeleton documentation.\n */\ntype TextInputProps = {\n /** Assistive text displayed below the input */\n helpText?: string | ReactNode;\n\n /** Error message displayed below the input. When provided, it overrides `helpText` and shows an error icon */\n errorText?: string | ReactNode;\n\n /** Leading element rendered inside the input */\n leadingElement?: ReactElement;\n\n /** Trailing element rendered inside the input */\n trailingElement?: ReactElement;\n\n /** Size of the input */\n size?: 'small' | 'medium' | 'large';\n\n /** Whether the input is read-only */\n isReadOnly?: boolean;\n\n /**\n * Whether to display the Required/Optional label next to the field label.\n * Shows Required if isRequired is true, otherwise shows Optional.\n * @default false\n */\n // TODO v5: inconsistent naming. The same switch is `hasRequiredIndicator` on\n // Combobox and on the internal form control this maps onto, and `isOptional`\n // on TextArea. The name also needs the disable below, which a name using one\n // of the allowed boolean prefixes would not.\n // eslint-disable-next-line @typescript-eslint/naming-convention\n showRequiredOrOptionalLabel?: boolean;\n\n /** Whether the input is disabled */\n isDisabled?: boolean;\n\n /** Whether the input is required */\n isRequired?: boolean;\n\n /** The current value of the input */\n value?: React.ComponentPropsWithoutRef<'input'>['value'];\n\n /** Placeholder text displayed when the input is empty */\n placeholder?: React.ComponentPropsWithoutRef<'input'>['placeholder'];\n\n /** Callback function triggered when the input value changes */\n onChange?: React.ComponentPropsWithoutRef<'input'>['onChange'];\n\n /** Whether the input should take the full available width */\n isFluid?: boolean;\n\n /** Text displayed in the information tooltip shown next to the label */\n moreInformationText?: React.ReactNode;\n\n // TODO v5: inconsistent naming. Every form control names itself differently:\n // the label is optional here and a design with no room for it reaches for\n // htmlAttributes['aria-label'], TextArea, Select, Checkbox, Radio and Switch\n // expose an `ariaLabel` prop instead, and Combobox requires the label and\n // clips it with `hasVisuallyHiddenLabel`.\n /** The label displayed above the input */\n label?: string | React.ReactNode;\n\n /** Props for the Tooltip component used by the information icon */\n tooltipProps?: TooltipObjectProps;\n\n /** Whether to render skeletons instead of content */\n isSkeletonLoading?: boolean;\n\n /** Additional props forwarded to the underlying Skeleton components */\n skeletonProps?: React.ComponentProps<typeof Skeleton>;\n\n /** Whether to show the clear button */\n isClearable?: boolean;\n\n /** Whether to show the loading spinner */\n isLoading?: boolean;\n};\n\n/**\n *\n *\n * TextInput Component\n *\n *\n */\n\nexport const TextInput = ({\n label,\n isFluid,\n errorText,\n helpText,\n leadingElement,\n trailingElement,\n showRequiredOrOptionalLabel = false,\n moreInformationText,\n size = 'medium',\n placeholder,\n value,\n tooltipProps,\n htmlAttributes,\n isDisabled,\n isReadOnly,\n isRequired,\n onChange,\n isClearable = false,\n className,\n style,\n isSkeletonLoading = false,\n isLoading = false,\n skeletonProps,\n ref,\n ...restProps\n}: CommonProps<'input', TextInputProps>) => {\n const [currentValue, handleChange] = useSemiControlledInput({\n inputType: 'text',\n isControlled: value !== undefined,\n onChange,\n state: value ?? '',\n });\n const hintId = useId();\n const canClear = isClearable && isDisabled !== true;\n const shouldRenderHint = canClear || isLoading;\n const { field, controlProps } = useFormField({\n errorText,\n // The clear/loading hint describes the input alongside the message.\n extraDescribedByIds: [shouldRenderHint && hintId],\n hasRequiredIndicator: showRequiredOrOptionalLabel,\n helpText,\n isRequired,\n label,\n });\n\n const containerWrappingClasses = classNames(`ndl-text-input`, className, {\n 'ndl-disabled': isDisabled,\n 'ndl-has-error': errorText,\n 'ndl-has-icon': leadingElement || trailingElement || errorText,\n 'ndl-has-leading-icon': leadingElement,\n 'ndl-has-trailing-icon': trailingElement || errorText,\n 'ndl-large': size === 'large',\n 'ndl-medium': size === 'medium',\n 'ndl-read-only': isReadOnly,\n 'ndl-small': size === 'small',\n });\n\n const hasEmptyLabelValue =\n label === undefined || label === null || label === '';\n\n const labelWrappingClasses = classNames('ndl-text-input-label', {\n 'ndl-fluid': isFluid,\n });\n\n const combinedHtmlInputAttributes: InputHTMLAttributes<HTMLInputElement> = {\n ...htmlAttributes,\n className: classNames('ndl-input', htmlAttributes?.className),\n };\n const ariaLabel = combinedHtmlInputAttributes['aria-label'];\n const isCustomLabel = Boolean(label) && typeof label !== 'string';\n const hasCustomLabelAndNoAriaLabel =\n isCustomLabel && (ariaLabel === undefined || ariaLabel === '');\n\n const handleInputKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n if (canClear && event.key === 'Escape' && Boolean(currentValue)) {\n event.preventDefault();\n event.stopPropagation();\n handleChange?.({\n target: { value: '' },\n } as React.ChangeEvent<HTMLInputElement>);\n }\n htmlAttributes?.onKeyDown?.(event);\n };\n\n useMemo(() => {\n if (!label && !ariaLabel) {\n needleWarningMessage(\n 'A TextInput without a label does not have an aria label, be sure to include an aria label for screen readers. Link: https://dequeuniversity.com/rules/axe/4.2/label?application=axeAPI',\n );\n }\n\n if (hasCustomLabelAndNoAriaLabel) {\n needleWarningMessage(customLabelAndNoAriaLabelWarningMessage);\n }\n }, [label, ariaLabel, hasCustomLabelAndNoAriaLabel]);\n\n return (\n <div className={containerWrappingClasses} style={style}>\n {/* We enable implicit label wrapping */}\n {/* Source: https://dequeuniversity.com/rules/axe/4.2/label?application=axeAPI */}\n <label className={labelWrappingClasses}>\n {!hasEmptyLabelValue && (\n <FormFieldLabel\n field={field}\n size={size}\n association=\"implicit\"\n moreInformationText={moreInformationText}\n tooltipProps={tooltipProps}\n wrap={(row) => (\n <Skeleton\n onBackground=\"weak\"\n shape=\"rectangular\"\n {...skeletonProps}\n isLoading={isSkeletonLoading}\n >\n {row}\n </Skeleton>\n )}\n />\n )}\n <Skeleton\n onBackground=\"weak\"\n shape=\"rectangular\"\n {...skeletonProps}\n isLoading={isSkeletonLoading}\n >\n <div className=\"ndl-input-wrapper\">\n {(leadingElement || (isLoading && !trailingElement)) && (\n <div className=\"ndl-element-leading ndl-element\">\n {isLoading ? (\n <LoadingSpinner\n size={size === 'large' ? 'medium' : 'small'}\n className={\n size === 'large'\n ? 'ndl-medium-spinner'\n : 'ndl-small-spinner'\n }\n />\n ) : (\n leadingElement\n )}\n </div>\n )}\n <div\n className={classNames('ndl-input-container', {\n 'ndl-clearable': isClearable,\n })}\n >\n <input\n ref={ref}\n readOnly={isReadOnly}\n disabled={isDisabled}\n required={isRequired}\n value={currentValue}\n placeholder={placeholder}\n type=\"text\"\n onChange={handleChange}\n {...controlProps}\n {...combinedHtmlInputAttributes}\n onKeyDown={handleInputKeyDown}\n {...restProps}\n />\n {shouldRenderHint && (\n <span\n id={hintId}\n className=\"ndl-text-input-hint\"\n aria-hidden={true}\n >\n {isLoading && 'Loading '}\n {canClear && 'Press Escape to clear input.'}\n </span>\n )}\n {canClear && Boolean(currentValue) && (\n <div className=\"ndl-element-clear ndl-element\">\n <button\n tabIndex={-1}\n aria-hidden={true}\n type=\"button\"\n title=\"Clear input (Esc)\"\n onClick={() => {\n handleChange?.({\n target: { value: '' },\n } as React.ChangeEvent<HTMLInputElement>);\n }}\n >\n <XMarkIconOutline />\n </button>\n </div>\n )}\n </div>\n {trailingElement && (\n <div className=\"ndl-element-trailing ndl-element\">\n {isLoading && !leadingElement ? (\n <LoadingSpinner\n size={size === 'large' ? 'medium' : 'small'}\n className={\n size === 'large'\n ? 'ndl-medium-spinner'\n : 'ndl-small-spinner'\n }\n />\n ) : (\n trailingElement\n )}\n </div>\n )}\n </div>\n </Skeleton>\n </label>\n\n <FormFieldMessage\n field={field}\n size={size}\n wrap={(content) => (\n <Skeleton\n onBackground=\"weak\"\n shape=\"rectangular\"\n {...skeletonProps}\n isLoading={isSkeletonLoading}\n >\n {content}\n </Skeleton>\n )}\n />\n </div>\n );\n};\n"]}
1
+ {"version":3,"file":"TextInput.js","sourceRoot":"","sources":["../../../src/text-input/TextInput.tsx"],"names":[],"mappings":"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","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 classNames from 'classnames';\nimport {\n type InputHTMLAttributes,\n type ReactElement,\n type ReactNode,\n useId,\n useMemo,\n} from 'react';\n\nimport {\n FormFieldLabel,\n FormFieldMessage,\n useFormField,\n} from '../_common/form-control';\nimport { customLabelAndNoAriaLabelWarningMessage } from '../_common/messages';\nimport { type CommonProps, type TooltipObjectProps } from '../_common/types';\nimport { useSemiControlledInput } from '../_common/use-semi-controlled-input';\nimport { needleWarningMessage } from '../_common/utils';\nimport { XMarkIconOutline } from '../icons/generated/heroIcons/XMarkIconOutline';\nimport { LoadingSpinner } from '../loading-spinner';\nimport { Skeleton } from '../skeleton';\n\n/**\n * @remarks\n * When `moreInformationText` is provided, a tooltip is rendered next to the label, and the `tooltipProps` prop is used to configure the tooltip. The `TooltipObjectProps` type is defined as: `{ root?: Partial<React.ComponentProps<typeof Tooltip>>; trigger?: Partial<React.ComponentProps<typeof Tooltip.Trigger>>; content?: Partial<React.ComponentProps<typeof Tooltip.Content>>; }`, see the Tooltip component for more details.\n *\n * @remarks\n * When `isSkeletonLoading` is true, the input is rendered as a loading skeleton and the `skeletonProps` prop is used to configure the skeleton. For more information, see the Skeleton documentation.\n */\ntype TextInputProps = {\n /** Assistive text displayed below the input */\n helpText?: string | ReactNode;\n\n /** Error message displayed below the input. When provided, it overrides `helpText` and shows an error icon */\n errorText?: string | ReactNode;\n\n /** Leading element rendered inside the input */\n leadingElement?: ReactElement;\n\n /** Trailing element rendered inside the input */\n trailingElement?: ReactElement;\n\n /** Size of the input */\n size?: 'small' | 'medium' | 'large';\n\n /** Whether the input is read-only */\n isReadOnly?: boolean;\n\n /**\n * Whether to display the Required/Optional label next to the field label.\n * Shows Required if isRequired is true, otherwise shows Optional.\n * @default false\n */\n // TODO: inconsistent naming. The same switch is `hasRequiredIndicator` on\n // Combobox and on the internal form control this maps onto, and `isOptional`\n // on TextArea. The name also needs the disable below, which a name using one\n // of the allowed boolean prefixes would not.\n // eslint-disable-next-line @typescript-eslint/naming-convention\n showRequiredOrOptionalLabel?: boolean;\n\n /** Whether the input is disabled */\n isDisabled?: boolean;\n\n /** Whether the input is required */\n isRequired?: boolean;\n\n /** The current value of the input */\n value?: React.ComponentPropsWithoutRef<'input'>['value'];\n\n /** Placeholder text displayed when the input is empty */\n placeholder?: React.ComponentPropsWithoutRef<'input'>['placeholder'];\n\n /** Callback function triggered when the input value changes */\n onChange?: React.ComponentPropsWithoutRef<'input'>['onChange'];\n\n /** Whether the input should take the full available width */\n isFluid?: boolean;\n\n /** Text displayed in the information tooltip shown next to the label */\n moreInformationText?: React.ReactNode;\n\n // TODO v5: inconsistent naming. Every form control names itself differently:\n // the label is optional here and a design with no room for it reaches for\n // htmlAttributes['aria-label'], TextArea, Select, Checkbox, Radio and Switch\n // expose an `ariaLabel` prop instead, and Combobox requires the label and\n // clips it with `hasVisuallyHiddenLabel`.\n /** The label displayed above the input */\n label?: string | React.ReactNode;\n\n /** Props for the Tooltip component used by the information icon */\n tooltipProps?: TooltipObjectProps;\n\n /** Whether to render skeletons instead of content */\n isSkeletonLoading?: boolean;\n\n /** Additional props forwarded to the underlying Skeleton components */\n skeletonProps?: React.ComponentProps<typeof Skeleton>;\n\n /** Whether to show the clear button */\n isClearable?: boolean;\n\n /** Whether to show the loading spinner */\n isLoading?: boolean;\n};\n\n/**\n *\n *\n * TextInput Component\n *\n *\n */\n\nexport const TextInput = ({\n label,\n isFluid,\n errorText,\n helpText,\n leadingElement,\n trailingElement,\n showRequiredOrOptionalLabel = false,\n moreInformationText,\n size = 'medium',\n placeholder,\n value,\n tooltipProps,\n htmlAttributes,\n isDisabled,\n isReadOnly,\n isRequired,\n onChange,\n isClearable = false,\n className,\n style,\n isSkeletonLoading = false,\n isLoading = false,\n skeletonProps,\n ref,\n ...restProps\n}: CommonProps<'input', TextInputProps>) => {\n const [currentValue, handleChange] = useSemiControlledInput({\n inputType: 'text',\n isControlled: value !== undefined,\n onChange,\n state: value ?? '',\n });\n const hintId = useId();\n const canClear = isClearable && isDisabled !== true;\n const shouldRenderHint = canClear || isLoading;\n const { field, controlProps } = useFormField({\n errorText,\n // The clear/loading hint describes the input alongside the message.\n extraDescribedByIds: [shouldRenderHint && hintId],\n hasRequiredIndicator: showRequiredOrOptionalLabel,\n helpText,\n isRequired,\n label,\n });\n\n const containerWrappingClasses = classNames(`ndl-text-input`, className, {\n 'ndl-disabled': isDisabled,\n 'ndl-has-error': errorText,\n 'ndl-has-icon': leadingElement || trailingElement || errorText,\n 'ndl-has-leading-icon': leadingElement,\n 'ndl-has-trailing-icon': trailingElement || errorText,\n 'ndl-large': size === 'large',\n 'ndl-medium': size === 'medium',\n 'ndl-read-only': isReadOnly,\n 'ndl-small': size === 'small',\n });\n\n const hasEmptyLabelValue =\n label === undefined || label === null || label === '';\n\n const labelWrappingClasses = classNames('ndl-text-input-label', {\n 'ndl-fluid': isFluid,\n });\n\n const combinedHtmlInputAttributes: InputHTMLAttributes<HTMLInputElement> = {\n ...htmlAttributes,\n className: classNames('ndl-input', htmlAttributes?.className),\n };\n const ariaLabel = combinedHtmlInputAttributes['aria-label'];\n const isCustomLabel = Boolean(label) && typeof label !== 'string';\n const hasCustomLabelAndNoAriaLabel =\n isCustomLabel && (ariaLabel === undefined || ariaLabel === '');\n\n const handleInputKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n if (canClear && event.key === 'Escape' && Boolean(currentValue)) {\n event.preventDefault();\n event.stopPropagation();\n handleChange?.({\n target: { value: '' },\n } as React.ChangeEvent<HTMLInputElement>);\n }\n htmlAttributes?.onKeyDown?.(event);\n };\n\n useMemo(() => {\n if (!label && !ariaLabel) {\n needleWarningMessage(\n 'A TextInput without a label does not have an aria label, be sure to include an aria label for screen readers. Link: https://dequeuniversity.com/rules/axe/4.2/label?application=axeAPI',\n );\n }\n\n if (hasCustomLabelAndNoAriaLabel) {\n needleWarningMessage(customLabelAndNoAriaLabelWarningMessage);\n }\n }, [label, ariaLabel, hasCustomLabelAndNoAriaLabel]);\n\n return (\n <div className={containerWrappingClasses} style={style}>\n {/* We enable implicit label wrapping */}\n {/* Source: https://dequeuniversity.com/rules/axe/4.2/label?application=axeAPI */}\n <label className={labelWrappingClasses}>\n {!hasEmptyLabelValue && (\n <FormFieldLabel\n field={field}\n size={size}\n association=\"implicit\"\n moreInformationText={moreInformationText}\n tooltipProps={tooltipProps}\n wrap={(row) => (\n <Skeleton\n onBackground=\"weak\"\n shape=\"rectangular\"\n {...skeletonProps}\n isLoading={isSkeletonLoading}\n >\n {row}\n </Skeleton>\n )}\n />\n )}\n <Skeleton\n onBackground=\"weak\"\n shape=\"rectangular\"\n {...skeletonProps}\n isLoading={isSkeletonLoading}\n >\n <div className=\"ndl-input-wrapper\">\n {(leadingElement || (isLoading && !trailingElement)) && (\n <div className=\"ndl-element-leading ndl-element\">\n {isLoading ? (\n <LoadingSpinner\n size={size === 'large' ? 'medium' : 'small'}\n className={\n size === 'large'\n ? 'ndl-medium-spinner'\n : 'ndl-small-spinner'\n }\n />\n ) : (\n leadingElement\n )}\n </div>\n )}\n <div\n className={classNames('ndl-input-container', {\n 'ndl-clearable': isClearable,\n })}\n >\n <input\n ref={ref}\n readOnly={isReadOnly}\n disabled={isDisabled}\n required={isRequired}\n value={currentValue}\n placeholder={placeholder}\n type=\"text\"\n onChange={handleChange}\n {...controlProps}\n {...combinedHtmlInputAttributes}\n onKeyDown={handleInputKeyDown}\n {...restProps}\n />\n {shouldRenderHint && (\n <span\n id={hintId}\n className=\"ndl-text-input-hint\"\n aria-hidden={true}\n >\n {isLoading && 'Loading '}\n {canClear && 'Press Escape to clear input.'}\n </span>\n )}\n {canClear && Boolean(currentValue) && (\n <div className=\"ndl-element-clear ndl-element\">\n <button\n tabIndex={-1}\n aria-hidden={true}\n type=\"button\"\n title=\"Clear input (Esc)\"\n onClick={() => {\n handleChange?.({\n target: { value: '' },\n } as React.ChangeEvent<HTMLInputElement>);\n }}\n >\n <XMarkIconOutline />\n </button>\n </div>\n )}\n </div>\n {trailingElement && (\n <div className=\"ndl-element-trailing ndl-element\">\n {isLoading && !leadingElement ? (\n <LoadingSpinner\n size={size === 'large' ? 'medium' : 'small'}\n className={\n size === 'large'\n ? 'ndl-medium-spinner'\n : 'ndl-small-spinner'\n }\n />\n ) : (\n trailingElement\n )}\n </div>\n )}\n </div>\n </Skeleton>\n </label>\n\n <FormFieldMessage\n field={field}\n size={size}\n wrap={(content) => (\n <Skeleton\n onBackground=\"weak\"\n shape=\"rectangular\"\n {...skeletonProps}\n isLoading={isSkeletonLoading}\n >\n {content}\n </Skeleton>\n )}\n />\n </div>\n );\n};\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.jsx)(react_1.TextInput, { label: "Default loading", isLoading: true, placeholder: "Placeholder", htmlAttributes: { id: 'text-input-loading' } }), (0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "With leading element", isLoading: true, leadingElement: (0, jsx_runtime_1.jsx)(icons_1.CalendarDaysIconOutline, {}), placeholder: "Placeholder", htmlAttributes: { id: 'text-input-loading-leading' } }), (0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "With trailing element", isLoading: true, trailingElement: (0, jsx_runtime_1.jsx)(icons_1.CalendarDaysIconOutline, {}), placeholder: "Placeholder", htmlAttributes: { id: 'text-input-loading-trailing' } }), (0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "With leading and trailing element", isLoading: true, leadingElement: (0, jsx_runtime_1.jsx)(icons_1.CalendarDaysIconOutline, {}), trailingElement: (0, jsx_runtime_1.jsx)(icons_1.CalendarDaysIconOutline, {}), placeholder: "Placeholder", htmlAttributes: { id: 'text-input-loading-both' } })] }));
28
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-token-16", children: [(0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "Default loading", isLoading: true, placeholder: "Placeholder", htmlAttributes: { id: 'text-input-loading' } }), (0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "With leading element", isLoading: true, leadingElement: (0, jsx_runtime_1.jsx)(icons_1.CalendarDaysIconOutline, {}), placeholder: "Placeholder", htmlAttributes: { id: 'text-input-loading-leading' } }), (0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "With trailing element", isLoading: true, trailingElement: (0, jsx_runtime_1.jsx)(icons_1.CalendarDaysIconOutline, {}), placeholder: "Placeholder", htmlAttributes: { id: 'text-input-loading-trailing' } }), (0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "With leading and trailing element", isLoading: true, leadingElement: (0, jsx_runtime_1.jsx)(icons_1.CalendarDaysIconOutline, {}), trailingElement: (0, jsx_runtime_1.jsx)(icons_1.CalendarDaysIconOutline, {}), placeholder: "Placeholder", htmlAttributes: { id: 'text-input-loading-both' } })] }));
29
29
  };
30
30
  exports.default = Component;
31
31
  //# sourceMappingURL=text-input-loading-spinner.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-input-loading-spinner.story.js","sourceRoot":"","sources":["../../../../src/text-input/stories/text-input-loading-spinner.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA6C;AAC7C,kDAAiE;AAEjE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,kCAAkC,aAC/C,uBAAC,iBAAS,IACR,KAAK,EAAC,iBAAiB,EACvB,SAAS,QACT,WAAW,EAAC,aAAa,EACzB,cAAc,EAAE,EAAE,EAAE,EAAE,oBAAoB,EAAE,GAC5C,EACF,uBAAC,iBAAS,IACR,KAAK,EAAC,sBAAsB,EAC5B,SAAS,QACT,cAAc,EAAE,uBAAC,+BAAuB,KAAG,EAC3C,WAAW,EAAC,aAAa,EACzB,cAAc,EAAE,EAAE,EAAE,EAAE,4BAA4B,EAAE,GACpD,EACF,uBAAC,iBAAS,IACR,KAAK,EAAC,uBAAuB,EAC7B,SAAS,QACT,eAAe,EAAE,uBAAC,+BAAuB,KAAG,EAC5C,WAAW,EAAC,aAAa,EACzB,cAAc,EAAE,EAAE,EAAE,EAAE,6BAA6B,EAAE,GACrD,EACF,uBAAC,iBAAS,IACR,KAAK,EAAC,mCAAmC,EACzC,SAAS,QACT,cAAc,EAAE,uBAAC,+BAAuB,KAAG,EAC3C,eAAe,EAAE,uBAAC,+BAAuB,KAAG,EAC5C,WAAW,EAAC,aAAa,EACzB,cAAc,EAAE,EAAE,EAAE,EAAE,yBAAyB,EAAE,GACjD,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 { TextInput } from '@neo4j-ndl/react';\nimport { CalendarDaysIconOutline } from '@neo4j-ndl/react/icons';\n\nconst Component = () => {\n return (\n <div className=\"n-flex n-flex-col n-gap-token-16\">\n <TextInput\n label=\"Default loading\"\n isLoading\n placeholder=\"Placeholder\"\n htmlAttributes={{ id: 'text-input-loading' }}\n />\n <TextInput\n label=\"With leading element\"\n isLoading\n leadingElement={<CalendarDaysIconOutline />}\n placeholder=\"Placeholder\"\n htmlAttributes={{ id: 'text-input-loading-leading' }}\n />\n <TextInput\n label=\"With trailing element\"\n isLoading\n trailingElement={<CalendarDaysIconOutline />}\n placeholder=\"Placeholder\"\n htmlAttributes={{ id: 'text-input-loading-trailing' }}\n />\n <TextInput\n label=\"With leading and trailing element\"\n isLoading\n leadingElement={<CalendarDaysIconOutline />}\n trailingElement={<CalendarDaysIconOutline />}\n placeholder=\"Placeholder\"\n htmlAttributes={{ id: 'text-input-loading-both' }}\n />\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"text-input-loading-spinner.story.js","sourceRoot":"","sources":["../../../../src/text-input/stories/text-input-loading-spinner.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA6C;AAC7C,kDAAiE;AAEjE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,4BAA4B,aACzC,uBAAC,iBAAS,IACR,KAAK,EAAC,iBAAiB,EACvB,SAAS,QACT,WAAW,EAAC,aAAa,EACzB,cAAc,EAAE,EAAE,EAAE,EAAE,oBAAoB,EAAE,GAC5C,EACF,uBAAC,iBAAS,IACR,KAAK,EAAC,sBAAsB,EAC5B,SAAS,QACT,cAAc,EAAE,uBAAC,+BAAuB,KAAG,EAC3C,WAAW,EAAC,aAAa,EACzB,cAAc,EAAE,EAAE,EAAE,EAAE,4BAA4B,EAAE,GACpD,EACF,uBAAC,iBAAS,IACR,KAAK,EAAC,uBAAuB,EAC7B,SAAS,QACT,eAAe,EAAE,uBAAC,+BAAuB,KAAG,EAC5C,WAAW,EAAC,aAAa,EACzB,cAAc,EAAE,EAAE,EAAE,EAAE,6BAA6B,EAAE,GACrD,EACF,uBAAC,iBAAS,IACR,KAAK,EAAC,mCAAmC,EACzC,SAAS,QACT,cAAc,EAAE,uBAAC,+BAAuB,KAAG,EAC3C,eAAe,EAAE,uBAAC,+BAAuB,KAAG,EAC5C,WAAW,EAAC,aAAa,EACzB,cAAc,EAAE,EAAE,EAAE,EAAE,yBAAyB,EAAE,GACjD,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 { TextInput } from '@neo4j-ndl/react';\nimport { CalendarDaysIconOutline } from '@neo4j-ndl/react/icons';\n\nconst Component = () => {\n return (\n <div className=\"flex flex-col gap-token-16\">\n <TextInput\n label=\"Default loading\"\n isLoading\n placeholder=\"Placeholder\"\n htmlAttributes={{ id: 'text-input-loading' }}\n />\n <TextInput\n label=\"With leading element\"\n isLoading\n leadingElement={<CalendarDaysIconOutline />}\n placeholder=\"Placeholder\"\n htmlAttributes={{ id: 'text-input-loading-leading' }}\n />\n <TextInput\n label=\"With trailing element\"\n isLoading\n trailingElement={<CalendarDaysIconOutline />}\n placeholder=\"Placeholder\"\n htmlAttributes={{ id: 'text-input-loading-trailing' }}\n />\n <TextInput\n label=\"With leading and trailing element\"\n isLoading\n leadingElement={<CalendarDaysIconOutline />}\n trailingElement={<CalendarDaysIconOutline />}\n placeholder=\"Placeholder\"\n htmlAttributes={{ id: 'text-input-loading-both' }}\n />\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -24,7 +24,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
24
24
  require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
25
  const react_1 = require("@neo4j-ndl/react");
26
26
  const Component = () => {
27
- return ((0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "Label", helpText: "Help text", showRequiredOrOptionalLabel: true, htmlAttributes: { id: 'text-input' } }));
27
+ return ((0, jsx_runtime_1.jsx)(react_1.TextInput, { showRequiredOrOptionalLabel: true, label: "Label", helpText: "Help text", htmlAttributes: { id: 'text-input' } }));
28
28
  };
29
29
  exports.default = Component;
30
30
  //# sourceMappingURL=text-input-optional.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-input-optional.story.js","sourceRoot":"","sources":["../../../../src/text-input/stories/text-input-optional.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA6C;AAE7C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,iBAAS,IACR,KAAK,EAAC,OAAO,EACb,QAAQ,EAAC,WAAW,EACpB,2BAA2B,QAC3B,cAAc,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,GACpC,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 { TextInput } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <TextInput\n label=\"Label\"\n helpText=\"Help text\"\n showRequiredOrOptionalLabel\n htmlAttributes={{ id: 'text-input' }}\n />\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"text-input-optional.story.js","sourceRoot":"","sources":["../../../../src/text-input/stories/text-input-optional.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA6C;AAE7C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,iBAAS,IACR,2BAA2B,QAC3B,KAAK,EAAC,OAAO,EACb,QAAQ,EAAC,WAAW,EACpB,cAAc,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,GACpC,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 { TextInput } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <TextInput\n showRequiredOrOptionalLabel\n label=\"Label\"\n helpText=\"Help text\"\n htmlAttributes={{ id: 'text-input' }}\n />\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.TextInput, { label: "Small Input", size: "small", placeholder: "Small Input", helpText: "Help text", htmlAttributes: { id: 'text-input-small' } }), (0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "Medium Input", size: "medium", placeholder: "Medium Input", helpText: "Help text", htmlAttributes: { id: 'text-input-medium' } }), (0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "Large Input", size: "large", placeholder: "Large Input", helpText: "Help text", htmlAttributes: { id: 'text-input-large' } })] }));
27
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-token-16", children: [(0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "Small Input", size: "small", placeholder: "Small Input", helpText: "Help text", htmlAttributes: { id: 'text-input-small' } }), (0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "Medium Input", size: "medium", placeholder: "Medium Input", helpText: "Help text", htmlAttributes: { id: 'text-input-medium' } }), (0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "Large Input", size: "large", placeholder: "Large Input", helpText: "Help text", htmlAttributes: { id: 'text-input-large' } })] }));
28
28
  };
29
29
  exports.default = Component;
30
30
  //# sourceMappingURL=text-input-sizes.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-input-sizes.story.js","sourceRoot":"","sources":["../../../../src/text-input/stories/text-input-sizes.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA6C;AAE7C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,uBAAuB,aACpC,uBAAC,iBAAS,IACR,KAAK,EAAC,aAAa,EACnB,IAAI,EAAC,OAAO,EACZ,WAAW,EAAC,aAAa,EACzB,QAAQ,EAAC,WAAW,EACpB,cAAc,EAAE,EAAE,EAAE,EAAE,kBAAkB,EAAE,GAC1C,EACF,uBAAC,iBAAS,IACR,KAAK,EAAC,cAAc,EACpB,IAAI,EAAC,QAAQ,EACb,WAAW,EAAC,cAAc,EAC1B,QAAQ,EAAC,WAAW,EACpB,cAAc,EAAE,EAAE,EAAE,EAAE,mBAAmB,EAAE,GAC3C,EACF,uBAAC,iBAAS,IACR,KAAK,EAAC,aAAa,EACnB,IAAI,EAAC,OAAO,EACZ,WAAW,EAAC,aAAa,EACzB,QAAQ,EAAC,WAAW,EACpB,cAAc,EAAE,EAAE,EAAE,EAAE,kBAAkB,EAAE,GAC1C,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 { TextInput } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"n-flex n-gap-token-16\">\n <TextInput\n label=\"Small Input\"\n size=\"small\"\n placeholder=\"Small Input\"\n helpText=\"Help text\"\n htmlAttributes={{ id: 'text-input-small' }}\n />\n <TextInput\n label=\"Medium Input\"\n size=\"medium\"\n placeholder=\"Medium Input\"\n helpText=\"Help text\"\n htmlAttributes={{ id: 'text-input-medium' }}\n />\n <TextInput\n label=\"Large Input\"\n size=\"large\"\n placeholder=\"Large Input\"\n helpText=\"Help text\"\n htmlAttributes={{ id: 'text-input-large' }}\n />\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"text-input-sizes.story.js","sourceRoot":"","sources":["../../../../src/text-input/stories/text-input-sizes.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA6C;AAE7C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,mBAAmB,aAChC,uBAAC,iBAAS,IACR,KAAK,EAAC,aAAa,EACnB,IAAI,EAAC,OAAO,EACZ,WAAW,EAAC,aAAa,EACzB,QAAQ,EAAC,WAAW,EACpB,cAAc,EAAE,EAAE,EAAE,EAAE,kBAAkB,EAAE,GAC1C,EACF,uBAAC,iBAAS,IACR,KAAK,EAAC,cAAc,EACpB,IAAI,EAAC,QAAQ,EACb,WAAW,EAAC,cAAc,EAC1B,QAAQ,EAAC,WAAW,EACpB,cAAc,EAAE,EAAE,EAAE,EAAE,mBAAmB,EAAE,GAC3C,EACF,uBAAC,iBAAS,IACR,KAAK,EAAC,aAAa,EACnB,IAAI,EAAC,OAAO,EACZ,WAAW,EAAC,aAAa,EACzB,QAAQ,EAAC,WAAW,EACpB,cAAc,EAAE,EAAE,EAAE,EAAE,kBAAkB,EAAE,GAC1C,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 { TextInput } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"flex gap-token-16\">\n <TextInput\n label=\"Small Input\"\n size=\"small\"\n placeholder=\"Small Input\"\n helpText=\"Help text\"\n htmlAttributes={{ id: 'text-input-small' }}\n />\n <TextInput\n label=\"Medium Input\"\n size=\"medium\"\n placeholder=\"Medium Input\"\n helpText=\"Help text\"\n htmlAttributes={{ id: 'text-input-medium' }}\n />\n <TextInput\n label=\"Large Input\"\n size=\"large\"\n placeholder=\"Large Input\"\n helpText=\"Help text\"\n htmlAttributes={{ id: 'text-input-large' }}\n />\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -38,17 +38,13 @@ const jsx_runtime_1 = require("react/jsx-runtime");
38
38
  */
39
39
  const classnames_1 = __importDefault(require("classnames"));
40
40
  const ArrowUpRightIconOutline_1 = require("../icons/generated/heroIcons/ArrowUpRightIconOutline");
41
- const ChevronRightIconOutline_1 = require("../icons/generated/heroIcons/ChevronRightIconOutline");
42
41
  const TextLink = (_a) => {
43
- var { children, href, type = 'internal', as, className, target = type === 'external' || type === 'external-underline' ? '_blank' : '', style, htmlAttributes, ref } = _a, restProps = __rest(_a, ["children", "href", "type", "as", "className", "target", "style", "htmlAttributes", "ref"]);
42
+ var { children, href, type = 'internal', as, className, target = type === 'external' ? '_blank' : '', style, htmlAttributes, ref } = _a, restProps = __rest(_a, ["children", "href", "type", "as", "className", "target", "style", "htmlAttributes", "ref"]);
44
43
  const Component = as !== null && as !== void 0 ? as : 'a';
45
44
  const classes = (0, classnames_1.default)('ndl-text-link', className, {
46
45
  'ndl-external-link': type === 'external',
47
- 'ndl-external-underline': type === 'external-underline',
48
- 'ndl-internal-icon': type === 'internal-icon',
49
- 'ndl-internal-underline': type === 'internal-underline',
50
46
  });
51
- return ((0, jsx_runtime_1.jsxs)(Component, Object.assign({ className: classes, href: href, ref: ref, style: style, target: target }, restProps, htmlAttributes, { children: [children, (type === 'external' || type === 'external-underline') && ((0, jsx_runtime_1.jsx)(ArrowUpRightIconOutline_1.ArrowUpRightIconOutline, { className: "ndl-external-link-icon" })), type === 'internal-icon' && ((0, jsx_runtime_1.jsx)(ChevronRightIconOutline_1.ChevronRightIconOutline, { className: "ndl-external-link-icon" }))] })));
47
+ return ((0, jsx_runtime_1.jsxs)(Component, Object.assign({ className: classes, href: href, ref: ref, style: style, target: target }, restProps, htmlAttributes, { children: [children, type === 'external' && ((0, jsx_runtime_1.jsx)(ArrowUpRightIconOutline_1.ArrowUpRightIconOutline, { className: "ndl-external-link-icon" }))] })));
52
48
  };
53
49
  exports.TextLink = TextLink;
54
50
  //# sourceMappingURL=TextLink.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextLink.js","sourceRoot":"","sources":["../../../src/text-link/TextLink.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,4DAAoC;AAIpC,kGAA+F;AAC/F,kGAA+F;AA4CxF,MAAM,QAAQ,GAAG,CAAoC,EAWjB,EAAE,EAAE;QAXa,EAC1D,QAAQ,EACR,IAAI,EACJ,IAAI,GAAG,UAAU,EACjB,EAAE,EACF,SAAS,EACT,MAAM,GAAG,IAAI,KAAK,UAAU,IAAI,IAAI,KAAK,oBAAoB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAC7E,KAAK,EACL,cAAc,EACd,GAAG,OAEsC,EADtC,SAAS,cAV8C,2FAW3D,CADa;IAEZ,MAAM,SAAS,GAAsB,EAAE,aAAF,EAAE,cAAF,EAAE,GAAI,GAAG,CAAC;IAE/C,MAAM,OAAO,GAAG,IAAA,oBAAU,EAAC,eAAe,EAAE,SAAS,EAAE;QACrD,mBAAmB,EAAE,IAAI,KAAK,UAAU;QACxC,wBAAwB,EAAE,IAAI,KAAK,oBAAoB;QACvD,mBAAmB,EAAE,IAAI,KAAK,eAAe;QAC7C,wBAAwB,EAAE,IAAI,KAAK,oBAAoB;KACxD,CAAC,CAAC;IAEH,OAAO,CACL,wBAAC,SAAS,kBACR,SAAS,EAAE,OAAO,EAClB,IAAI,EAAE,IAAI,EACV,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,IACV,SAAS,EACT,cAAc,eAEjB,QAAQ,EACR,CAAC,IAAI,KAAK,UAAU,IAAI,IAAI,KAAK,oBAAoB,CAAC,IAAI,CACzD,uBAAC,iDAAuB,IAAC,SAAS,EAAC,wBAAwB,GAAG,CAC/D,EACA,IAAI,KAAK,eAAe,IAAI,CAC3B,uBAAC,iDAAuB,IAAC,SAAS,EAAC,wBAAwB,GAAG,CAC/D,KACS,CACb,CAAC;AACJ,CAAC,CAAC;AAxCW,QAAA,QAAQ,YAwCnB","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 { type PolymorphicCommonProps } from '../_common/types';\nimport { ArrowUpRightIconOutline } from '../icons/generated/heroIcons/ArrowUpRightIconOutline';\nimport { ChevronRightIconOutline } from '../icons/generated/heroIcons/ChevronRightIconOutline';\n\n/** @deprecated Use `type=\"internal\"` instead. */\ntype InternalUnderlineTextLinkType = 'internal-underline';\n\n/** @deprecated Use `type=\"external\"` instead. */\ntype ExternalUnderlineTextLinkType = 'external-underline';\n\n/** @deprecated Use `type=\"internal\"` instead and append with a chevron icon. */\ntype InternalIconTextLinkType = 'internal-icon';\n\ntype TextLinkType =\n | 'internal'\n | InternalUnderlineTextLinkType\n | InternalIconTextLinkType\n | 'external'\n | ExternalUnderlineTextLinkType;\n\ntype TextLinkProps = {\n /** The content displayed inside the link */\n children: React.ReactNode;\n\n /** The URL the link points to */\n href?: string;\n\n /**\n * The type of the text link\n * All types render with an underline and primary text color by default. Additional color styling can be applied via `className`.\n * - 'internal': A link to another page within the application\n * - 'internal-underline': Deprecated alias of 'internal'\n * - 'internal-icon': Deprecated variant with a trailing chevron icon\n * - 'external': A link to an external website. An external link icon is appended.\n * - 'external-underline': Deprecated alias of 'external'\n * @default 'internal'\n */\n type?: TextLinkType;\n\n /** Specifies where to open the linked document. If omitted and `type` is `\"external\"` it defaults to `\"_blank\"`. */\n target?: HTMLAnchorElement['target'];\n\n /** Additional class name */\n className?: string;\n};\n\nexport const TextLink = <T extends React.ElementType = 'a'>({\n children,\n href,\n type = 'internal',\n as,\n className,\n target = type === 'external' || type === 'external-underline' ? '_blank' : '',\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: PolymorphicCommonProps<T, TextLinkProps>) => {\n const Component: React.ElementType = as ?? 'a';\n\n const classes = classNames('ndl-text-link', className, {\n 'ndl-external-link': type === 'external',\n 'ndl-external-underline': type === 'external-underline',\n 'ndl-internal-icon': type === 'internal-icon',\n 'ndl-internal-underline': type === 'internal-underline',\n });\n\n return (\n <Component\n className={classes}\n href={href}\n ref={ref}\n style={style}\n target={target}\n {...restProps}\n {...htmlAttributes}\n >\n {children}\n {(type === 'external' || type === 'external-underline') && (\n <ArrowUpRightIconOutline className=\"ndl-external-link-icon\" />\n )}\n {type === 'internal-icon' && (\n <ChevronRightIconOutline className=\"ndl-external-link-icon\" />\n )}\n </Component>\n );\n};\n"]}
1
+ {"version":3,"file":"TextLink.js","sourceRoot":"","sources":["../../../src/text-link/TextLink.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,4DAAoC;AAIpC,kGAA+F;AAwBxF,MAAM,QAAQ,GAAG,CAAoC,EAWjB,EAAE,EAAE;QAXa,EAC1D,QAAQ,EACR,IAAI,EACJ,IAAI,GAAG,UAAU,EACjB,EAAE,EACF,SAAS,EACT,MAAM,GAAG,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAC5C,KAAK,EACL,cAAc,EACd,GAAG,OAEsC,EADtC,SAAS,cAV8C,2FAW3D,CADa;IAEZ,MAAM,SAAS,GAAsB,EAAE,aAAF,EAAE,cAAF,EAAE,GAAI,GAAG,CAAC;IAE/C,MAAM,OAAO,GAAG,IAAA,oBAAU,EAAC,eAAe,EAAE,SAAS,EAAE;QACrD,mBAAmB,EAAE,IAAI,KAAK,UAAU;KACzC,CAAC,CAAC;IAEH,OAAO,CACL,wBAAC,SAAS,kBACR,SAAS,EAAE,OAAO,EAClB,IAAI,EAAE,IAAI,EACV,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,IACV,SAAS,EACT,cAAc,eAEjB,QAAQ,EACR,IAAI,KAAK,UAAU,IAAI,CACtB,uBAAC,iDAAuB,IAAC,SAAS,EAAC,wBAAwB,GAAG,CAC/D,KACS,CACb,CAAC;AACJ,CAAC,CAAC;AAlCW,QAAA,QAAQ,YAkCnB","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 { type PolymorphicCommonProps } from '../_common/types';\nimport { ArrowUpRightIconOutline } from '../icons/generated/heroIcons/ArrowUpRightIconOutline';\n\ntype TextLinkType = 'internal' | 'external';\n\ntype TextLinkProps = {\n /** The content displayed inside the link */\n children: React.ReactNode;\n\n /** The URL the link points to */\n href?: string;\n\n /**\n * The type of the text link.\n * All types render with an underline and primary text color by default. Additional color styling can be applied via `className`.\n * - 'internal': A link to another page within the application\n * - 'external': A link to an external website. An external link icon is appended.\n * @default 'internal'\n */\n type?: TextLinkType;\n\n /** Specifies where to open the linked document. If omitted and `type` is `\"external\"` it defaults to `\"_blank\"`. */\n target?: HTMLAnchorElement['target'];\n};\n\nexport const TextLink = <T extends React.ElementType = 'a'>({\n children,\n href,\n type = 'internal',\n as,\n className,\n target = type === 'external' ? '_blank' : '',\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: PolymorphicCommonProps<T, TextLinkProps>) => {\n const Component: React.ElementType = as ?? 'a';\n\n const classes = classNames('ndl-text-link', className, {\n 'ndl-external-link': type === 'external',\n });\n\n return (\n <Component\n className={classes}\n href={href}\n ref={ref}\n style={style}\n target={target}\n {...restProps}\n {...htmlAttributes}\n >\n {children}\n {type === 'external' && (\n <ArrowUpRightIconOutline className=\"ndl-external-link-icon\" />\n )}\n </Component>\n );\n};\n"]}
@@ -23,26 +23,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
23
23
  return (mod && mod.__esModule) ? mod : { "default": mod };
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.TextLinkInternalUnderlineSource = exports.TextLinkInternalIconSource = exports.TextLinkExternalUnderlineSource = exports.TextLinkExternalSource = exports.TextLinkDefaultSource = exports.TextLinkInternalUnderline = exports.TextLinkInternalIcon = exports.TextLinkExternalUnderline = exports.TextLinkExternal = exports.TextLinkDefault = void 0;
27
- var text_link_default_story_1 = require("./text-link-default.story");
28
- Object.defineProperty(exports, "TextLinkDefault", { enumerable: true, get: function () { return __importDefault(text_link_default_story_1).default; } });
26
+ exports.TextLinkInternalSource = exports.TextLinkExternalSource = exports.TextLinkExternal = exports.TextLinkInternal = void 0;
27
+ var text_link_internal_story_1 = require("./text-link-internal.story");
28
+ Object.defineProperty(exports, "TextLinkInternal", { enumerable: true, get: function () { return __importDefault(text_link_internal_story_1).default; } });
29
29
  var text_link_external_story_1 = require("./text-link-external.story");
30
30
  Object.defineProperty(exports, "TextLinkExternal", { enumerable: true, get: function () { return __importDefault(text_link_external_story_1).default; } });
31
- var text_link_external_underline_story_1 = require("./text-link-external-underline.story");
32
- Object.defineProperty(exports, "TextLinkExternalUnderline", { enumerable: true, get: function () { return __importDefault(text_link_external_underline_story_1).default; } });
33
- var text_link_internal_icon_story_1 = require("./text-link-internal-icon.story");
34
- Object.defineProperty(exports, "TextLinkInternalIcon", { enumerable: true, get: function () { return __importDefault(text_link_internal_icon_story_1).default; } });
35
- var text_link_internal_underline_story_1 = require("./text-link-internal-underline.story");
36
- Object.defineProperty(exports, "TextLinkInternalUnderline", { enumerable: true, get: function () { return __importDefault(text_link_internal_underline_story_1).default; } });
37
31
  const export_stories_utils_1 = require("../../_common/export-stories-utils");
38
- const text_link_default_story_raw_1 = __importDefault(require("./text-link-default.story?raw"));
39
32
  const text_link_external_story_raw_1 = __importDefault(require("./text-link-external.story?raw"));
40
- const text_link_external_underline_story_raw_1 = __importDefault(require("./text-link-external-underline.story?raw"));
41
- const text_link_internal_icon_story_raw_1 = __importDefault(require("./text-link-internal-icon.story?raw"));
42
- const text_link_internal_underline_story_raw_1 = __importDefault(require("./text-link-internal-underline.story?raw"));
43
- exports.TextLinkDefaultSource = (0, export_stories_utils_1.removeLicenseHeader)(text_link_default_story_raw_1.default);
33
+ const text_link_internal_story_raw_1 = __importDefault(require("./text-link-internal.story?raw"));
44
34
  exports.TextLinkExternalSource = (0, export_stories_utils_1.removeLicenseHeader)(text_link_external_story_raw_1.default);
45
- exports.TextLinkExternalUnderlineSource = (0, export_stories_utils_1.removeLicenseHeader)(text_link_external_underline_story_raw_1.default);
46
- exports.TextLinkInternalIconSource = (0, export_stories_utils_1.removeLicenseHeader)(text_link_internal_icon_story_raw_1.default);
47
- exports.TextLinkInternalUnderlineSource = (0, export_stories_utils_1.removeLicenseHeader)(text_link_internal_underline_story_raw_1.default);
35
+ exports.TextLinkInternalSource = (0, export_stories_utils_1.removeLicenseHeader)(text_link_internal_story_raw_1.default);
48
36
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/text-link/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,qEAAuE;AAA9D,2IAAA,OAAO,OAAmB;AACnC,uEAAyE;AAAhE,6IAAA,OAAO,OAAoB;AACpC,2FAA4F;AAAnF,gKAAA,OAAO,OAA6B;AAC7C,iFAAkF;AAAzE,sJAAA,OAAO,OAAwB;AACxC,2FAA4F;AAAnF,gKAAA,OAAO,OAA6B;AAE7C,6EAAyE;AACzE,gGAAqE;AACrE,kGAAuE;AACvE,sHAA0F;AAC1F,4GAAgF;AAChF,sHAA0F;AAE7E,QAAA,qBAAqB,GAAG,IAAA,0CAAmB,EACtD,qCAAwB,CACzB,CAAC;AACW,QAAA,sBAAsB,GAAG,IAAA,0CAAmB,EACvD,sCAAyB,CAC1B,CAAC;AACW,QAAA,+BAA+B,GAAG,IAAA,0CAAmB,EAChE,gDAAkC,CACnC,CAAC;AACW,QAAA,0BAA0B,GAAG,IAAA,0CAAmB,EAC3D,2CAA6B,CAC9B,CAAC;AACW,QAAA,+BAA+B,GAAG,IAAA,0CAAmB,EAChE,gDAAkC,CACnC,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\nexport { default as TextLinkDefault } from './text-link-default.story';\nexport { default as TextLinkExternal } from './text-link-external.story';\nexport { default as TextLinkExternalUnderline } from './text-link-external-underline.story';\nexport { default as TextLinkInternalIcon } from './text-link-internal-icon.story';\nexport { default as TextLinkInternalUnderline } from './text-link-internal-underline.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport TextLinkDefaultSourceRaw from './text-link-default.story?raw';\nimport TextLinkExternalSourceRaw from './text-link-external.story?raw';\nimport TextLinkExternalUnderlineSourceRaw from './text-link-external-underline.story?raw';\nimport TextLinkInternalIconSourceRaw from './text-link-internal-icon.story?raw';\nimport TextLinkInternalUnderlineSourceRaw from './text-link-internal-underline.story?raw';\n\nexport const TextLinkDefaultSource = removeLicenseHeader(\n TextLinkDefaultSourceRaw,\n);\nexport const TextLinkExternalSource = removeLicenseHeader(\n TextLinkExternalSourceRaw,\n);\nexport const TextLinkExternalUnderlineSource = removeLicenseHeader(\n TextLinkExternalUnderlineSourceRaw,\n);\nexport const TextLinkInternalIconSource = removeLicenseHeader(\n TextLinkInternalIconSourceRaw,\n);\nexport const TextLinkInternalUnderlineSource = removeLicenseHeader(\n TextLinkInternalUnderlineSourceRaw,\n);\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/text-link/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,uEAAyE;AAAhE,6IAAA,OAAO,OAAoB;AACpC,uEAAyE;AAAhE,6IAAA,OAAO,OAAoB;AAEpC,6EAAyE;AACzE,kGAAuE;AACvE,kGAAuE;AAE1D,QAAA,sBAAsB,GAAG,IAAA,0CAAmB,EACvD,sCAAyB,CAC1B,CAAC;AACW,QAAA,sBAAsB,GAAG,IAAA,0CAAmB,EACvD,sCAAyB,CAC1B,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\nexport { default as TextLinkInternal } from './text-link-internal.story';\nexport { default as TextLinkExternal } from './text-link-external.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport TextLinkExternalSourceRaw from './text-link-external.story?raw';\nimport TextLinkInternalSourceRaw from './text-link-internal.story?raw';\n\nexport const TextLinkExternalSource = removeLicenseHeader(\n TextLinkExternalSourceRaw,\n);\nexport const TextLinkInternalSource = removeLicenseHeader(\n TextLinkInternalSourceRaw,\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.jsx)(react_1.TextLink, { href: "https://neo4j.com", type: "external", children: "Link" }));
27
+ return ((0, jsx_runtime_1.jsxs)(react_1.Typography, { variant: "body-medium", children: ["The quick brown fox", ` `, (0, jsx_runtime_1.jsx)(react_1.TextLink, { href: "https://neo4j.com", type: "external", children: "jumps" }), ` `, "over the lazy dog."] }));
28
28
  };
29
29
  exports.default = Component;
30
30
  //# sourceMappingURL=text-link-external.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-link-external.story.js","sourceRoot":"","sources":["../../../../src/text-link/stories/text-link-external.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA4C;AAE5C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,gBAAQ,IAAC,IAAI,EAAC,mBAAmB,EAAC,IAAI,EAAC,UAAU,qBAEvC,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { TextLink } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <TextLink href=\"https://neo4j.com\" type=\"external\">\n Link\n </TextLink>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"text-link-external.story.js","sourceRoot":"","sources":["../../../../src/text-link/stories/text-link-external.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAwD;AAExD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,wBAAC,kBAAU,IAAC,OAAO,EAAC,aAAa,oCACX,GAAG,EACvB,uBAAC,gBAAQ,IAAC,IAAI,EAAC,mBAAmB,EAAC,IAAI,EAAC,UAAU,sBAEvC,EACV,GAAG,0BACO,CACd,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 { TextLink, Typography } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <Typography variant=\"body-medium\">\n The quick brown fox{` `}\n <TextLink href=\"https://neo4j.com\" type=\"external\">\n jumps\n </TextLink>\n {` `}over the lazy dog.\n </Typography>\n );\n};\n\nexport default Component;\n"]}
@@ -24,7 +24,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
24
24
  require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
25
  const react_1 = require("@neo4j-ndl/react");
26
26
  const Component = () => {
27
- return ((0, jsx_runtime_1.jsxs)(react_1.Typography, { variant: "body-medium", children: ["The quick brown fox", ' ', (0, jsx_runtime_1.jsx)(react_1.TextLink, { href: "/", type: "internal-underline", children: "jumps" }), ' ', "over the lazy dog."] }));
27
+ return ((0, jsx_runtime_1.jsxs)(react_1.Typography, { variant: "body-medium", children: ["The quick brown fox", ` `, (0, jsx_runtime_1.jsx)(react_1.TextLink, { href: "/", type: "internal", children: "jumps" }), ` `, "over the lazy dog."] }));
28
28
  };
29
29
  exports.default = Component;
30
- //# sourceMappingURL=text-link-internal-underline.story.js.map
30
+ //# sourceMappingURL=text-link-internal.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-link-internal.story.js","sourceRoot":"","sources":["../../../../src/text-link/stories/text-link-internal.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAwD;AAExD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,wBAAC,kBAAU,IAAC,OAAO,EAAC,aAAa,oCACX,GAAG,EACvB,uBAAC,gBAAQ,IAAC,IAAI,EAAC,GAAG,EAAC,IAAI,EAAC,UAAU,sBAEvB,EACV,GAAG,0BACO,CACd,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 { TextLink, Typography } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <Typography variant=\"body-medium\">\n The quick brown fox{` `}\n <TextLink href=\"/\" type=\"internal\">\n jumps\n </TextLink>\n {` `}over the lazy dog.\n </Typography>\n );\n};\n\nexport default Component;\n"]}
@@ -26,7 +26,7 @@ const react_1 = require("@neo4j-ndl/react");
26
26
  const react_2 = require("react");
27
27
  const Component = () => {
28
28
  const [selectedTime, setSelectedTime] = (0, react_2.useState)();
29
- return ((0, jsx_runtime_1.jsxs)(react_1.Dialog, { isOpen: true, "aria-label": "Dialog", children: [(0, jsx_runtime_1.jsx)(react_1.Dialog.Header, { children: "Using Time Picker inside a popover in a dialog" }), (0, jsx_runtime_1.jsx)(react_1.Dialog.Description, { className: "n-flex n-flex-col n-gap-token-32", children: (0, jsx_runtime_1.jsxs)(react_1.Popover, { children: [(0, jsx_runtime_1.jsx)(react_1.Popover.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.FilledButton, { children: "Open Popover" }) }), (0, jsx_runtime_1.jsx)(react_1.Popover.Content, { className: "n-p-token-16", children: (0, jsx_runtime_1.jsx)(react_1.TimePicker, { label: "Select Time", value: selectedTime, onChange: (time) => setSelectedTime(time), htmlAttributes: { id: 'time-picker-input' } }) })] }) })] }));
29
+ return ((0, jsx_runtime_1.jsxs)(react_1.Dialog, { isOpen: true, "aria-label": "Dialog", children: [(0, jsx_runtime_1.jsx)(react_1.Dialog.Header, { children: "Using Time Picker inside a popover in a dialog" }), (0, jsx_runtime_1.jsx)(react_1.Dialog.Description, { className: "flex flex-col gap-token-32", children: (0, jsx_runtime_1.jsxs)(react_1.Popover, { children: [(0, jsx_runtime_1.jsx)(react_1.Popover.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.FilledButton, { children: "Open Popover" }) }), (0, jsx_runtime_1.jsx)(react_1.Popover.Content, { className: "p-token-16", children: (0, jsx_runtime_1.jsx)(react_1.TimePicker, { label: "Select Time", value: selectedTime, onChange: (time) => setSelectedTime(time), htmlAttributes: { id: 'time-picker-input' } }) })] }) })] }));
30
30
  };
31
31
  exports.default = Component;
32
32
  //# sourceMappingURL=time-picker-in-popover-dialog.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"time-picker-in-popover-dialog.story.js","sourceRoot":"","sources":["../../../../src/time-picker/stories/time-picker-in-popover-dialog.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAM0B;AAC1B,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,GAAc,CAAC;IAE/D,OAAO,CACL,wBAAC,cAAM,IAAC,MAAM,EAAE,IAAI,gBAAa,QAAQ,aACvC,uBAAC,cAAM,CAAC,MAAM,iEAEE,EAChB,uBAAC,cAAM,CAAC,WAAW,IAAC,SAAS,EAAC,kCAAkC,YAC9D,wBAAC,eAAO,eACN,uBAAC,eAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,uBAAC,oBAAY,+BAA4B,GACzB,EAClB,uBAAC,eAAO,CAAC,OAAO,IAAC,SAAS,EAAC,cAAc,YACvC,uBAAC,kBAAU,IACT,KAAK,EAAC,aAAa,EACnB,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,EACzC,cAAc,EAAE,EAAE,EAAE,EAAE,mBAAmB,EAAE,GAC3C,GACc,IACV,GACS,IACd,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport {\n Dialog,\n FilledButton,\n type NeedleTime,\n Popover,\n TimePicker,\n} from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [selectedTime, setSelectedTime] = useState<NeedleTime>();\n\n return (\n <Dialog isOpen={true} aria-label=\"Dialog\">\n <Dialog.Header>\n Using Time Picker inside a popover in a dialog\n </Dialog.Header>\n <Dialog.Description className=\"n-flex n-flex-col n-gap-token-32\">\n <Popover>\n <Popover.Trigger hasButtonWrapper>\n <FilledButton>Open Popover</FilledButton>\n </Popover.Trigger>\n <Popover.Content className=\"n-p-token-16\">\n <TimePicker\n label=\"Select Time\"\n value={selectedTime}\n onChange={(time) => setSelectedTime(time)}\n htmlAttributes={{ id: 'time-picker-input' }}\n />\n </Popover.Content>\n </Popover>\n </Dialog.Description>\n </Dialog>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"time-picker-in-popover-dialog.story.js","sourceRoot":"","sources":["../../../../src/time-picker/stories/time-picker-in-popover-dialog.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAM0B;AAC1B,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,GAAc,CAAC;IAE/D,OAAO,CACL,wBAAC,cAAM,IAAC,MAAM,EAAE,IAAI,gBAAa,QAAQ,aACvC,uBAAC,cAAM,CAAC,MAAM,iEAEE,EAChB,uBAAC,cAAM,CAAC,WAAW,IAAC,SAAS,EAAC,4BAA4B,YACxD,wBAAC,eAAO,eACN,uBAAC,eAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,uBAAC,oBAAY,+BAA4B,GACzB,EAClB,uBAAC,eAAO,CAAC,OAAO,IAAC,SAAS,EAAC,YAAY,YACrC,uBAAC,kBAAU,IACT,KAAK,EAAC,aAAa,EACnB,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,EACzC,cAAc,EAAE,EAAE,EAAE,EAAE,mBAAmB,EAAE,GAC3C,GACc,IACV,GACS,IACd,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport {\n Dialog,\n FilledButton,\n type NeedleTime,\n Popover,\n TimePicker,\n} from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [selectedTime, setSelectedTime] = useState<NeedleTime>();\n\n return (\n <Dialog isOpen={true} aria-label=\"Dialog\">\n <Dialog.Header>\n Using Time Picker inside a popover in a dialog\n </Dialog.Header>\n <Dialog.Description className=\"flex flex-col gap-token-32\">\n <Popover>\n <Popover.Trigger hasButtonWrapper>\n <FilledButton>Open Popover</FilledButton>\n </Popover.Trigger>\n <Popover.Content className=\"p-token-16\">\n <TimePicker\n label=\"Select Time\"\n value={selectedTime}\n onChange={(time) => setSelectedTime(time)}\n htmlAttributes={{ id: 'time-picker-input' }}\n />\n </Popover.Content>\n </Popover>\n </Dialog.Description>\n </Dialog>\n );\n};\n\nexport default Component;\n"]}
@@ -41,7 +41,7 @@ const Component = () => {
41
41
  const handleTimeZoneChange = (timezone) => {
42
42
  setTempTimeZone(timezone);
43
43
  };
44
- return ((0, jsx_runtime_1.jsxs)("div", { ref: ref, className: "n-flex n-flex-col n-items-center n-justify-center n-relative n-h-[500px] n-w-full", children: [(0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-col n-items-center n-gap-4", children: [(0, jsx_runtime_1.jsx)(react_1.FilledButton, { onClick: handleOpen, children: "Select Timezone" }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("p", { children: ["Selected Timezone: ", selectedTimeZone] }) })] }), (0, jsx_runtime_1.jsxs)(react_1.Dialog, { onClose: handleClose, isOpen: isOpen, container: (ref === null || ref === void 0 ? void 0 : ref.current) || undefined, size: "medium", children: [(0, jsx_runtime_1.jsx)(react_1.Dialog.Header, { children: "Select Timezone" }), (0, jsx_runtime_1.jsx)(react_1.Dialog.Description, { children: "Choose a timezone from the list below" }), (0, jsx_runtime_1.jsx)(react_1.Dialog.Content, { children: (0, jsx_runtime_1.jsx)(react_1.TimeZonePicker, { isFluid: true, label: "Timezone", value: tempTimeZone, onChange: handleTimeZoneChange, htmlAttributes: { id: 'time-zone-input' } }) }), (0, jsx_runtime_1.jsxs)(react_1.Dialog.Actions, { children: [(0, jsx_runtime_1.jsx)(react_1.OutlinedButton, { onClick: handleClose, variant: "neutral", size: "medium", children: "Cancel" }), (0, jsx_runtime_1.jsx)(react_1.FilledButton, { onClick: handleSave, size: "medium", children: "Save" })] })] })] }));
44
+ return ((0, jsx_runtime_1.jsxs)("div", { ref: ref, className: "flex flex-col items-center justify-center relative h-[500px] w-full", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center gap-4", children: [(0, jsx_runtime_1.jsx)(react_1.FilledButton, { onClick: handleOpen, children: "Select Timezone" }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("p", { children: ["Selected Timezone: ", selectedTimeZone] }) })] }), (0, jsx_runtime_1.jsxs)(react_1.Dialog, { onClose: handleClose, isOpen: isOpen, container: (ref === null || ref === void 0 ? void 0 : ref.current) || undefined, size: "medium", children: [(0, jsx_runtime_1.jsx)(react_1.Dialog.Header, { children: "Select Timezone" }), (0, jsx_runtime_1.jsx)(react_1.Dialog.Description, { children: "Choose a timezone from the list below" }), (0, jsx_runtime_1.jsx)(react_1.Dialog.Content, { children: (0, jsx_runtime_1.jsx)(react_1.TimeZonePicker, { isFluid: true, label: "Timezone", value: tempTimeZone, onChange: handleTimeZoneChange, htmlAttributes: { id: 'time-zone-input' } }) }), (0, jsx_runtime_1.jsxs)(react_1.Dialog.Actions, { children: [(0, jsx_runtime_1.jsx)(react_1.OutlinedButton, { onClick: handleClose, variant: "neutral", size: "medium", children: "Cancel" }), (0, jsx_runtime_1.jsx)(react_1.FilledButton, { onClick: handleSave, size: "medium", children: "Save" })] })] })] }));
45
45
  };
46
46
  exports.default = Component;
47
47
  //# sourceMappingURL=timezone-picker-in-dialog.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"timezone-picker-in-dialog.story.js","sourceRoot":"","sources":["../../../../src/timezone-picker/stories/timezone-picker-in-dialog.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAK0B;AAC1B,iCAAyC;AAEzC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAU,KAAK,CAAC,CAAC;IACrD,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,IAAA,gBAAQ,EAAS,KAAK,CAAC,CAAC;IACxE,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,EAAS,KAAK,CAAC,CAAC;IAChE,MAAM,GAAG,GAAG,IAAA,cAAM,EAAwB,IAAI,CAAC,CAAC;IAEhD,MAAM,UAAU,GAAG,GAAG,EAAE;QACtB,eAAe,CAAC,gBAAgB,CAAC,CAAC;QAClC,SAAS,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAE3C,MAAM,UAAU,GAAG,GAAG,EAAE;QACtB,mBAAmB,CAAC,YAAY,CAAC,CAAC;QAClC,SAAS,CAAC,KAAK,CAAC,CAAC;IACnB,CAAC,CAAC;IAEF,MAAM,oBAAoB,GAAG,CAAC,QAAgB,EAAE,EAAE;QAChD,eAAe,CAAC,QAAQ,CAAC,CAAC;IAC5B,CAAC,CAAC;IAEF,OAAO,CACL,iCACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAC,mFAAmF,aAE7F,iCAAK,SAAS,EAAC,0CAA0C,aACvD,uBAAC,oBAAY,IAAC,OAAO,EAAE,UAAU,gCAAgC,EACjE,0CACE,iEAAuB,gBAAgB,IAAK,GACxC,IACF,EACN,wBAAC,cAAM,IACL,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,CAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,OAAO,KAAI,SAAS,EACpC,IAAI,EAAC,QAAQ,aAEb,uBAAC,cAAM,CAAC,MAAM,kCAAgC,EAC9C,uBAAC,cAAM,CAAC,WAAW,wDAEE,EACrB,uBAAC,cAAM,CAAC,OAAO,cACb,uBAAC,sBAAc,IACb,OAAO,QACP,KAAK,EAAC,UAAU,EAChB,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,oBAAoB,EAC9B,cAAc,EAAE,EAAE,EAAE,EAAE,iBAAiB,EAAE,GACzC,GACa,EACjB,wBAAC,cAAM,CAAC,OAAO,eACb,uBAAC,sBAAc,IAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,QAAQ,uBAEpD,EACjB,uBAAC,oBAAY,IAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAC,QAAQ,qBAEjC,IACA,IACV,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport {\n Dialog,\n FilledButton,\n OutlinedButton,\n TimeZonePicker,\n} from '@neo4j-ndl/react';\nimport { useRef, useState } from 'react';\n\nconst Component = () => {\n const [isOpen, setIsOpen] = useState<boolean>(false);\n const [selectedTimeZone, setSelectedTimeZone] = useState<string>('UTC');\n const [tempTimeZone, setTempTimeZone] = useState<string>('UTC');\n const ref = useRef<HTMLDivElement | null>(null);\n\n const handleOpen = () => {\n setTempTimeZone(selectedTimeZone);\n setIsOpen(true);\n };\n\n const handleClose = () => setIsOpen(false);\n\n const handleSave = () => {\n setSelectedTimeZone(tempTimeZone);\n setIsOpen(false);\n };\n\n const handleTimeZoneChange = (timezone: string) => {\n setTempTimeZone(timezone);\n };\n\n return (\n <div\n ref={ref}\n className=\"n-flex n-flex-col n-items-center n-justify-center n-relative n-h-[500px] n-w-full\"\n >\n <div className=\"n-flex n-flex-col n-items-center n-gap-4\">\n <FilledButton onClick={handleOpen}>Select Timezone</FilledButton>\n <div>\n <p>Selected Timezone: {selectedTimeZone}</p>\n </div>\n </div>\n <Dialog\n onClose={handleClose}\n isOpen={isOpen}\n container={ref?.current || undefined}\n size=\"medium\"\n >\n <Dialog.Header>Select Timezone</Dialog.Header>\n <Dialog.Description>\n Choose a timezone from the list below\n </Dialog.Description>\n <Dialog.Content>\n <TimeZonePicker\n isFluid\n label=\"Timezone\"\n value={tempTimeZone}\n onChange={handleTimeZoneChange}\n htmlAttributes={{ id: 'time-zone-input' }}\n />\n </Dialog.Content>\n <Dialog.Actions>\n <OutlinedButton onClick={handleClose} variant=\"neutral\" size=\"medium\">\n Cancel\n </OutlinedButton>\n <FilledButton onClick={handleSave} size=\"medium\">\n Save\n </FilledButton>\n </Dialog.Actions>\n </Dialog>\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"timezone-picker-in-dialog.story.js","sourceRoot":"","sources":["../../../../src/timezone-picker/stories/timezone-picker-in-dialog.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAK0B;AAC1B,iCAAyC;AAEzC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAU,KAAK,CAAC,CAAC;IACrD,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,IAAA,gBAAQ,EAAS,KAAK,CAAC,CAAC;IACxE,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,EAAS,KAAK,CAAC,CAAC;IAChE,MAAM,GAAG,GAAG,IAAA,cAAM,EAAwB,IAAI,CAAC,CAAC;IAEhD,MAAM,UAAU,GAAG,GAAG,EAAE;QACtB,eAAe,CAAC,gBAAgB,CAAC,CAAC;QAClC,SAAS,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAE3C,MAAM,UAAU,GAAG,GAAG,EAAE;QACtB,mBAAmB,CAAC,YAAY,CAAC,CAAC;QAClC,SAAS,CAAC,KAAK,CAAC,CAAC;IACnB,CAAC,CAAC;IAEF,MAAM,oBAAoB,GAAG,CAAC,QAAgB,EAAE,EAAE;QAChD,eAAe,CAAC,QAAQ,CAAC,CAAC;IAC5B,CAAC,CAAC;IAEF,OAAO,CACL,iCACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAC,qEAAqE,aAE/E,iCAAK,SAAS,EAAC,kCAAkC,aAC/C,uBAAC,oBAAY,IAAC,OAAO,EAAE,UAAU,gCAAgC,EACjE,0CACE,iEAAuB,gBAAgB,IAAK,GACxC,IACF,EACN,wBAAC,cAAM,IACL,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,CAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,OAAO,KAAI,SAAS,EACpC,IAAI,EAAC,QAAQ,aAEb,uBAAC,cAAM,CAAC,MAAM,kCAAgC,EAC9C,uBAAC,cAAM,CAAC,WAAW,wDAEE,EACrB,uBAAC,cAAM,CAAC,OAAO,cACb,uBAAC,sBAAc,IACb,OAAO,QACP,KAAK,EAAC,UAAU,EAChB,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,oBAAoB,EAC9B,cAAc,EAAE,EAAE,EAAE,EAAE,iBAAiB,EAAE,GACzC,GACa,EACjB,wBAAC,cAAM,CAAC,OAAO,eACb,uBAAC,sBAAc,IAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,QAAQ,uBAEpD,EACjB,uBAAC,oBAAY,IAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAC,QAAQ,qBAEjC,IACA,IACV,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport {\n Dialog,\n FilledButton,\n OutlinedButton,\n TimeZonePicker,\n} from '@neo4j-ndl/react';\nimport { useRef, useState } from 'react';\n\nconst Component = () => {\n const [isOpen, setIsOpen] = useState<boolean>(false);\n const [selectedTimeZone, setSelectedTimeZone] = useState<string>('UTC');\n const [tempTimeZone, setTempTimeZone] = useState<string>('UTC');\n const ref = useRef<HTMLDivElement | null>(null);\n\n const handleOpen = () => {\n setTempTimeZone(selectedTimeZone);\n setIsOpen(true);\n };\n\n const handleClose = () => setIsOpen(false);\n\n const handleSave = () => {\n setSelectedTimeZone(tempTimeZone);\n setIsOpen(false);\n };\n\n const handleTimeZoneChange = (timezone: string) => {\n setTempTimeZone(timezone);\n };\n\n return (\n <div\n ref={ref}\n className=\"flex flex-col items-center justify-center relative h-[500px] w-full\"\n >\n <div className=\"flex flex-col items-center gap-4\">\n <FilledButton onClick={handleOpen}>Select Timezone</FilledButton>\n <div>\n <p>Selected Timezone: {selectedTimeZone}</p>\n </div>\n </div>\n <Dialog\n onClose={handleClose}\n isOpen={isOpen}\n container={ref?.current || undefined}\n size=\"medium\"\n >\n <Dialog.Header>Select Timezone</Dialog.Header>\n <Dialog.Description>\n Choose a timezone from the list below\n </Dialog.Description>\n <Dialog.Content>\n <TimeZonePicker\n isFluid\n label=\"Timezone\"\n value={tempTimeZone}\n onChange={handleTimeZoneChange}\n htmlAttributes={{ id: 'time-zone-input' }}\n />\n </Dialog.Content>\n <Dialog.Actions>\n <OutlinedButton onClick={handleClose} variant=\"neutral\" size=\"medium\">\n Cancel\n </OutlinedButton>\n <FilledButton onClick={handleSave} size=\"medium\">\n Save\n </FilledButton>\n </Dialog.Actions>\n </Dialog>\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -26,7 +26,7 @@ const react_1 = require("@neo4j-ndl/react");
26
26
  const react_2 = require("react");
27
27
  const Component = () => {
28
28
  const [selectedTimeZone, setSelectedTimeZone] = (0, react_2.useState)('UTC');
29
- return ((0, jsx_runtime_1.jsxs)(react_1.Dialog, { isOpen: true, "aria-label": "Dialog", children: [(0, jsx_runtime_1.jsx)(react_1.Dialog.Header, { children: "Using Timezone Picker inside a popover in a dialog" }), (0, jsx_runtime_1.jsx)(react_1.Dialog.Description, { className: "n-flex n-flex-col n-gap-token-32", children: (0, jsx_runtime_1.jsxs)(react_1.Popover, { children: [(0, jsx_runtime_1.jsx)(react_1.Popover.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.FilledButton, { children: "Open Popover" }) }), (0, jsx_runtime_1.jsx)(react_1.Popover.Content, { className: "n-p-token-16", children: (0, jsx_runtime_1.jsx)(react_1.TimeZonePicker, { label: "Timezone", value: selectedTimeZone, onChange: setSelectedTimeZone, htmlAttributes: { id: 'time-zone-input' } }) })] }) })] }));
29
+ return ((0, jsx_runtime_1.jsxs)(react_1.Dialog, { isOpen: true, "aria-label": "Dialog", children: [(0, jsx_runtime_1.jsx)(react_1.Dialog.Header, { children: "Using Timezone Picker inside a popover in a dialog" }), (0, jsx_runtime_1.jsx)(react_1.Dialog.Description, { className: "flex flex-col gap-token-32", children: (0, jsx_runtime_1.jsxs)(react_1.Popover, { children: [(0, jsx_runtime_1.jsx)(react_1.Popover.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.FilledButton, { children: "Open Popover" }) }), (0, jsx_runtime_1.jsx)(react_1.Popover.Content, { className: "p-token-16", children: (0, jsx_runtime_1.jsx)(react_1.TimeZonePicker, { label: "Timezone", value: selectedTimeZone, onChange: setSelectedTimeZone, htmlAttributes: { id: 'time-zone-input' } }) })] }) })] }));
30
30
  };
31
31
  exports.default = Component;
32
32
  //# sourceMappingURL=timezone-picker-in-popover-dialog.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"timezone-picker-in-popover-dialog.story.js","sourceRoot":"","sources":["../../../../src/timezone-picker/stories/timezone-picker-in-popover-dialog.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAK0B;AAC1B,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,IAAA,gBAAQ,EAAS,KAAK,CAAC,CAAC;IAExE,OAAO,CACL,wBAAC,cAAM,IAAC,MAAM,EAAE,IAAI,gBAAa,QAAQ,aACvC,uBAAC,cAAM,CAAC,MAAM,qEAEE,EAChB,uBAAC,cAAM,CAAC,WAAW,IAAC,SAAS,EAAC,kCAAkC,YAC9D,wBAAC,eAAO,eACN,uBAAC,eAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,uBAAC,oBAAY,+BAA4B,GACzB,EAClB,uBAAC,eAAO,CAAC,OAAO,IAAC,SAAS,EAAC,cAAc,YACvC,uBAAC,sBAAc,IACb,KAAK,EAAC,UAAU,EAChB,KAAK,EAAE,gBAAgB,EACvB,QAAQ,EAAE,mBAAmB,EAC7B,cAAc,EAAE,EAAE,EAAE,EAAE,iBAAiB,EAAE,GACzC,GACc,IACV,GACS,IACd,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport {\n Dialog,\n FilledButton,\n Popover,\n TimeZonePicker,\n} from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [selectedTimeZone, setSelectedTimeZone] = useState<string>('UTC');\n\n return (\n <Dialog isOpen={true} aria-label=\"Dialog\">\n <Dialog.Header>\n Using Timezone Picker inside a popover in a dialog\n </Dialog.Header>\n <Dialog.Description className=\"n-flex n-flex-col n-gap-token-32\">\n <Popover>\n <Popover.Trigger hasButtonWrapper>\n <FilledButton>Open Popover</FilledButton>\n </Popover.Trigger>\n <Popover.Content className=\"n-p-token-16\">\n <TimeZonePicker\n label=\"Timezone\"\n value={selectedTimeZone}\n onChange={setSelectedTimeZone}\n htmlAttributes={{ id: 'time-zone-input' }}\n />\n </Popover.Content>\n </Popover>\n </Dialog.Description>\n </Dialog>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"timezone-picker-in-popover-dialog.story.js","sourceRoot":"","sources":["../../../../src/timezone-picker/stories/timezone-picker-in-popover-dialog.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAK0B;AAC1B,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,IAAA,gBAAQ,EAAS,KAAK,CAAC,CAAC;IAExE,OAAO,CACL,wBAAC,cAAM,IAAC,MAAM,EAAE,IAAI,gBAAa,QAAQ,aACvC,uBAAC,cAAM,CAAC,MAAM,qEAEE,EAChB,uBAAC,cAAM,CAAC,WAAW,IAAC,SAAS,EAAC,4BAA4B,YACxD,wBAAC,eAAO,eACN,uBAAC,eAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,uBAAC,oBAAY,+BAA4B,GACzB,EAClB,uBAAC,eAAO,CAAC,OAAO,IAAC,SAAS,EAAC,YAAY,YACrC,uBAAC,sBAAc,IACb,KAAK,EAAC,UAAU,EAChB,KAAK,EAAE,gBAAgB,EACvB,QAAQ,EAAE,mBAAmB,EAC7B,cAAc,EAAE,EAAE,EAAE,EAAE,iBAAiB,EAAE,GACzC,GACc,IACV,GACS,IACd,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport {\n Dialog,\n FilledButton,\n Popover,\n TimeZonePicker,\n} from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [selectedTimeZone, setSelectedTimeZone] = useState<string>('UTC');\n\n return (\n <Dialog isOpen={true} aria-label=\"Dialog\">\n <Dialog.Header>\n Using Timezone Picker inside a popover in a dialog\n </Dialog.Header>\n <Dialog.Description className=\"flex flex-col gap-token-32\">\n <Popover>\n <Popover.Trigger hasButtonWrapper>\n <FilledButton>Open Popover</FilledButton>\n </Popover.Trigger>\n <Popover.Content className=\"p-token-16\">\n <TimeZonePicker\n label=\"Timezone\"\n value={selectedTimeZone}\n onChange={setSelectedTimeZone}\n htmlAttributes={{ id: 'time-zone-input' }}\n />\n </Popover.Content>\n </Popover>\n </Dialog.Description>\n </Dialog>\n );\n};\n\nexport default Component;\n"]}
@@ -24,7 +24,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
24
24
  require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
25
  const react_1 = require("@neo4j-ndl/react");
26
26
  const Component = () => {
27
- return ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-row n-justify-center", children: [(0, jsx_runtime_1.jsx)(react_1.Toaster, {}), (0, jsx_runtime_1.jsx)(react_1.FilledButton, { onClick: () => {
27
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row justify-center", children: [(0, jsx_runtime_1.jsx)(react_1.Toaster, {}), (0, jsx_runtime_1.jsx)(react_1.FilledButton, { onClick: () => {
28
28
  react_1.toast.neutral('Hello', {
29
29
  actionLabel: 'Action',
30
30
  onAction: () => {
@@ -1 +1 @@
1
- {"version":3,"file":"toast-action-story.js","sourceRoot":"","sources":["../../../../src/toast/stories/toast-action-story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAgE;AAEhE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,oCAAoC,aAEjD,uBAAC,eAAO,KAAG,EACX,uBAAC,oBAAY,IACX,OAAO,EAAE,GAAG,EAAE;oBACZ,aAAK,CAAC,OAAO,CAAC,OAAO,EAAE;wBACrB,WAAW,EAAE,QAAQ;wBACrB,QAAQ,EAAE,GAAG,EAAE;4BACb,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;wBACzB,CAAC;wBACD,mBAAmB,EAAE,IAAI;qBAC1B,CAAC,CAAC;gBACL,CAAC,sCAGY,IACX,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, toast, Toaster } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"n-flex n-flex-row n-justify-center\">\n {/* Toaster should be at the root of the app */}\n <Toaster />\n <FilledButton\n onClick={() => {\n toast.neutral('Hello', {\n actionLabel: 'Action',\n onAction: () => {\n console.info('action');\n },\n shouldCloseOnAction: true,\n });\n }}\n >\n Press to show a Toast\n </FilledButton>\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"toast-action-story.js","sourceRoot":"","sources":["../../../../src/toast/stories/toast-action-story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAgE;AAEhE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,8BAA8B,aAE3C,uBAAC,eAAO,KAAG,EACX,uBAAC,oBAAY,IACX,OAAO,EAAE,GAAG,EAAE;oBACZ,aAAK,CAAC,OAAO,CAAC,OAAO,EAAE;wBACrB,WAAW,EAAE,QAAQ;wBACrB,QAAQ,EAAE,GAAG,EAAE;4BACb,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;wBACzB,CAAC;wBACD,mBAAmB,EAAE,IAAI;qBAC1B,CAAC,CAAC;gBACL,CAAC,sCAGY,IACX,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, toast, Toaster } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"flex flex-row justify-center\">\n {/* Toaster should be at the root of the app */}\n <Toaster />\n <FilledButton\n onClick={() => {\n toast.neutral('Hello', {\n actionLabel: 'Action',\n onAction: () => {\n console.info('action');\n },\n shouldCloseOnAction: true,\n });\n }}\n >\n Press to show a Toast\n </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-flex n-justify-center", children: [(0, jsx_runtime_1.jsx)(react_1.Toaster, {}), (0, jsx_runtime_1.jsx)(react_1.FilledButton, { onClick: () => {
27
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-center", children: [(0, jsx_runtime_1.jsx)(react_1.Toaster, {}), (0, jsx_runtime_1.jsx)(react_1.FilledButton, { onClick: () => {
28
28
  react_1.toast.neutral('Hello', {
29
29
  isCloseable: true,
30
30
  onClose: () => {
@@ -1 +1 @@
1
- {"version":3,"file":"toast-closeable-story.js","sourceRoot":"","sources":["../../../../src/toast/stories/toast-closeable-story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAgE;AAEhE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,yBAAyB,aAEtC,uBAAC,eAAO,KAAG,EACX,uBAAC,oBAAY,IACX,OAAO,EAAE,GAAG,EAAE;oBACZ,aAAK,CAAC,OAAO,CAAC,OAAO,EAAE;wBACrB,WAAW,EAAE,IAAI;wBACjB,OAAO,EAAE,GAAG,EAAE;4BACZ,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;wBACxB,CAAC;qBACF,CAAC,CAAC;gBACL,CAAC,sCAGY,IACX,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, toast, Toaster } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"n-flex n-justify-center\">\n {/* Toaster should be at the root of the app */}\n <Toaster />\n <FilledButton\n onClick={() => {\n toast.neutral('Hello', {\n isCloseable: true,\n onClose: () => {\n console.info('close');\n },\n });\n }}\n >\n Press to show a Toast\n </FilledButton>\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"toast-closeable-story.js","sourceRoot":"","sources":["../../../../src/toast/stories/toast-closeable-story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAgE;AAEhE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,qBAAqB,aAElC,uBAAC,eAAO,KAAG,EACX,uBAAC,oBAAY,IACX,OAAO,EAAE,GAAG,EAAE;oBACZ,aAAK,CAAC,OAAO,CAAC,OAAO,EAAE;wBACrB,WAAW,EAAE,IAAI;wBACjB,OAAO,EAAE,GAAG,EAAE;4BACZ,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;wBACxB,CAAC;qBACF,CAAC,CAAC;gBACL,CAAC,sCAGY,IACX,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, toast, Toaster } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"flex justify-center\">\n {/* Toaster should be at the root of the app */}\n <Toaster />\n <FilledButton\n onClick={() => {\n toast.neutral('Hello', {\n isCloseable: true,\n onClose: () => {\n console.info('close');\n },\n });\n }}\n >\n Press to show a Toast\n </FilledButton>\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -26,7 +26,7 @@ const react_1 = require("@neo4j-ndl/react");
26
26
  const react_2 = require("react");
27
27
  const Component = () => {
28
28
  const [toasts, setToasts] = (0, react_2.useState)([]);
29
- return ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-justify-center", children: [(0, jsx_runtime_1.jsx)(react_1.ToasterControlled, { toasts: toasts }), (0, jsx_runtime_1.jsx)(react_1.FilledButton, { onClick: () => {
29
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-center", children: [(0, jsx_runtime_1.jsx)(react_1.ToasterControlled, { toasts: toasts }), (0, jsx_runtime_1.jsx)(react_1.FilledButton, { onClick: () => {
30
30
  setToasts([
31
31
  ...toasts,
32
32
  {
@@ -1 +1 @@
1
- {"version":3,"file":"toast-controlled-story.js","sourceRoot":"","sources":["../../../../src/toast/stories/toast-controlled-story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAmE;AACnE,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAElC,EAAE,CAAC,CAAC;IAEN,OAAO,CACL,iCAAK,SAAS,EAAC,yBAAyB,aAEtC,uBAAC,yBAAiB,IAAC,MAAM,EAAE,MAAM,GAAI,EACrC,uBAAC,oBAAY,IACX,OAAO,EAAE,GAAG,EAAE;oBACZ,SAAS,CAAC;wBACR,GAAG,MAAM;wBACT;4BACE,EAAE,EAAE,GAAG;4BACP,OAAO,EAAE,GAAG,EAAE;gCACZ,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;4BACxD,CAAC;4BACD,IAAI,EAAE,WAAW;4BACjB,OAAO,EAAE,SAAS;yBACnB;qBACF,CAAC,CAAC;gBACL,CAAC,sCAGY,IACX,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, ToasterControlled } from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [toasts, setToasts] = useState<\n React.ComponentProps<typeof ToasterControlled>['toasts']\n >([]);\n\n return (\n <div className=\"n-flex n-justify-center\">\n {/* Toaster should be at the root of the app */}\n <ToasterControlled toasts={toasts} />\n <FilledButton\n onClick={() => {\n setToasts([\n ...toasts,\n {\n id: '1',\n onClose: () => {\n setToasts(toasts.filter((toast) => toast.id !== '1'));\n },\n text: 'Hi there!',\n variant: 'neutral',\n },\n ]);\n }}\n >\n Press to show a Toast\n </FilledButton>\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"toast-controlled-story.js","sourceRoot":"","sources":["../../../../src/toast/stories/toast-controlled-story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAmE;AACnE,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAElC,EAAE,CAAC,CAAC;IAEN,OAAO,CACL,iCAAK,SAAS,EAAC,qBAAqB,aAElC,uBAAC,yBAAiB,IAAC,MAAM,EAAE,MAAM,GAAI,EACrC,uBAAC,oBAAY,IACX,OAAO,EAAE,GAAG,EAAE;oBACZ,SAAS,CAAC;wBACR,GAAG,MAAM;wBACT;4BACE,EAAE,EAAE,GAAG;4BACP,OAAO,EAAE,GAAG,EAAE;gCACZ,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;4BACxD,CAAC;4BACD,IAAI,EAAE,WAAW;4BACjB,OAAO,EAAE,SAAS;yBACnB;qBACF,CAAC,CAAC;gBACL,CAAC,sCAGY,IACX,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, ToasterControlled } from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [toasts, setToasts] = useState<\n React.ComponentProps<typeof ToasterControlled>['toasts']\n >([]);\n\n return (\n <div className=\"flex justify-center\">\n {/* Toaster should be at the root of the app */}\n <ToasterControlled toasts={toasts} />\n <FilledButton\n onClick={() => {\n setToasts([\n ...toasts,\n {\n id: '1',\n onClose: () => {\n setToasts(toasts.filter((toast) => toast.id !== '1'));\n },\n text: 'Hi there!',\n variant: 'neutral',\n },\n ]);\n }}\n >\n Press to show a Toast\n </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-flex n-justify-center", children: [(0, jsx_runtime_1.jsx)(react_1.Toaster, {}), (0, jsx_runtime_1.jsx)(react_1.FilledButton, { onClick: () => {
27
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-center", children: [(0, jsx_runtime_1.jsx)(react_1.Toaster, {}), (0, jsx_runtime_1.jsx)(react_1.FilledButton, { onClick: () => {
28
28
  react_1.toast.neutral((0, jsx_runtime_1.jsx)("div", { style: { background: 'red' }, children: "Hi there!" }));
29
29
  }, children: "Press to show a Toast" })] }));
30
30
  };
@@ -1 +1 @@
1
- {"version":3,"file":"toast-custom-story.js","sourceRoot":"","sources":["../../../../src/toast/stories/toast-custom-story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAgE;AAEhE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,yBAAyB,aAEtC,uBAAC,eAAO,KAAG,EACX,uBAAC,oBAAY,IACX,OAAO,EAAE,GAAG,EAAE;oBACZ,aAAK,CAAC,OAAO,CAAC,gCAAK,KAAK,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,0BAAiB,CAAC,CAAC;gBACpE,CAAC,sCAGY,IACX,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, toast, Toaster } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"n-flex n-justify-center\">\n {/* Toaster should be at the root of the app */}\n <Toaster />\n <FilledButton\n onClick={() => {\n toast.neutral(<div style={{ background: 'red' }}>Hi there!</div>);\n }}\n >\n Press to show a Toast\n </FilledButton>\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"toast-custom-story.js","sourceRoot":"","sources":["../../../../src/toast/stories/toast-custom-story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAgE;AAEhE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,qBAAqB,aAElC,uBAAC,eAAO,KAAG,EACX,uBAAC,oBAAY,IACX,OAAO,EAAE,GAAG,EAAE;oBACZ,aAAK,CAAC,OAAO,CAAC,gCAAK,KAAK,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,0BAAiB,CAAC,CAAC;gBACpE,CAAC,sCAGY,IACX,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, toast, Toaster } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"flex justify-center\">\n {/* Toaster should be at the root of the app */}\n <Toaster />\n <FilledButton\n onClick={() => {\n toast.neutral(<div style={{ background: 'red' }}>Hi there!</div>);\n }}\n >\n Press to show a Toast\n </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-flex n-justify-center", children: [(0, jsx_runtime_1.jsx)(react_1.Toaster, {}), (0, jsx_runtime_1.jsx)(react_1.FilledButton, { onClick: () => {
27
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-center", children: [(0, jsx_runtime_1.jsx)(react_1.Toaster, {}), (0, jsx_runtime_1.jsx)(react_1.FilledButton, { onClick: () => {
28
28
  react_1.toast.danger('Danger');
29
29
  }, children: "Press to show a Toast" })] }));
30
30
  };
@@ -1 +1 @@
1
- {"version":3,"file":"toast-danger-story.js","sourceRoot":"","sources":["../../../../src/toast/stories/toast-danger-story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAgE;AAEhE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,yBAAyB,aAEtC,uBAAC,eAAO,KAAG,EACX,uBAAC,oBAAY,IACX,OAAO,EAAE,GAAG,EAAE;oBACZ,aAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACzB,CAAC,sCAGY,IACX,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, toast, Toaster } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"n-flex n-justify-center\">\n {/* Toaster should be at the root of the app */}\n <Toaster />\n <FilledButton\n onClick={() => {\n toast.danger('Danger');\n }}\n >\n Press to show a Toast\n </FilledButton>\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"toast-danger-story.js","sourceRoot":"","sources":["../../../../src/toast/stories/toast-danger-story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAgE;AAEhE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,qBAAqB,aAElC,uBAAC,eAAO,KAAG,EACX,uBAAC,oBAAY,IACX,OAAO,EAAE,GAAG,EAAE;oBACZ,aAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACzB,CAAC,sCAGY,IACX,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, toast, Toaster } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"flex justify-center\">\n {/* Toaster should be at the root of the app */}\n <Toaster />\n <FilledButton\n onClick={() => {\n toast.danger('Danger');\n }}\n >\n Press to show a Toast\n </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-flex n-justify-center", children: [(0, jsx_runtime_1.jsx)(react_1.Toaster, {}), (0, jsx_runtime_1.jsx)(react_1.FilledButton, { onClick: () => {
27
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-center", children: [(0, jsx_runtime_1.jsx)(react_1.Toaster, {}), (0, jsx_runtime_1.jsx)(react_1.FilledButton, { onClick: () => {
28
28
  react_1.toast.neutral('Hello');
29
29
  }, children: "Press to show a Toast" })] }));
30
30
  };