@neo4j-ndl/react 0.16.4 → 1.0.0-alpha-093fe38

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 (455) hide show
  1. package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js +14 -6
  2. package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
  3. package/lib/cjs/alert/Alert.js +16 -16
  4. package/lib/cjs/alert/Alert.js.map +1 -1
  5. package/lib/cjs/alert/index.js +14 -6
  6. package/lib/cjs/alert/index.js.map +1 -1
  7. package/lib/cjs/button/Button.js +11 -6
  8. package/lib/cjs/button/Button.js.map +1 -1
  9. package/lib/cjs/button/IconButton.js +12 -8
  10. package/lib/cjs/button/IconButton.js.map +1 -1
  11. package/lib/cjs/button/IconButtonArray.js +2 -2
  12. package/lib/cjs/button/IconButtonArray.js.map +1 -1
  13. package/lib/cjs/code-block/CodeBlock.js +13 -9
  14. package/lib/cjs/code-block/CodeBlock.js.map +1 -1
  15. package/lib/cjs/context-menu/ContextMenu.js +19 -12
  16. package/lib/cjs/context-menu/ContextMenu.js.map +1 -1
  17. package/lib/cjs/dialog/Dialog.js +9 -9
  18. package/lib/cjs/dialog/Dialog.js.map +1 -1
  19. package/lib/cjs/drag-and-drop/DragAndDrop.js +5 -5
  20. package/lib/cjs/drag-and-drop/DragAndDrop.js.map +1 -1
  21. package/lib/cjs/dropdown/Dropdown.js +15 -13
  22. package/lib/cjs/dropdown/Dropdown.js.map +1 -1
  23. package/lib/cjs/dropdown/Overrides.js +15 -6
  24. package/lib/cjs/dropdown/Overrides.js.map +1 -1
  25. package/lib/cjs/graph-label/GraphLabel.js +18 -14
  26. package/lib/cjs/graph-label/GraphLabel.js.map +1 -1
  27. package/lib/cjs/graph-label/color.js +6 -6
  28. package/lib/cjs/graph-label/color.js.map +1 -1
  29. package/lib/cjs/icons/{custom → generated/custom}/Circle.js +0 -0
  30. package/lib/cjs/icons/generated/custom/Circle.js.map +1 -0
  31. package/lib/cjs/icons/{custom → generated/custom}/CollapseExpand.js +0 -0
  32. package/lib/cjs/icons/generated/custom/CollapseExpand.js.map +1 -0
  33. package/lib/cjs/icons/{custom → generated/custom}/CollapseExpandLeft.js +0 -0
  34. package/lib/cjs/icons/generated/custom/CollapseExpandLeft.js.map +1 -0
  35. package/lib/cjs/icons/{custom → generated/custom}/CollapseExpandRight.js +0 -0
  36. package/lib/cjs/icons/generated/custom/CollapseExpandRight.js.map +1 -0
  37. package/lib/cjs/icons/{custom → generated/custom}/Configure.js +0 -0
  38. package/lib/cjs/icons/generated/custom/Configure.js.map +1 -0
  39. package/lib/cjs/icons/{custom → generated/custom}/DatabaseAddCircle.js +0 -0
  40. package/lib/cjs/icons/generated/custom/DatabaseAddCircle.js.map +1 -0
  41. package/lib/cjs/icons/{custom → generated/custom}/Dbms.js +0 -0
  42. package/lib/cjs/icons/generated/custom/Dbms.js.map +1 -0
  43. package/lib/cjs/icons/{custom → generated/custom}/Drag.js +0 -0
  44. package/lib/cjs/icons/generated/custom/Drag.js.map +1 -0
  45. package/lib/cjs/icons/{custom → generated/custom}/Expand.js +0 -0
  46. package/lib/cjs/icons/generated/custom/Expand.js.map +1 -0
  47. package/lib/cjs/icons/{custom → generated/custom}/ExternalLink.js +0 -0
  48. package/lib/cjs/icons/generated/custom/ExternalLink.js.map +1 -0
  49. package/lib/cjs/icons/{custom → generated/custom}/FitToScreen.js +0 -0
  50. package/lib/cjs/icons/generated/custom/FitToScreen.js.map +1 -0
  51. package/lib/cjs/icons/{custom → generated/custom}/FolderBookmark.js +0 -0
  52. package/lib/cjs/icons/generated/custom/FolderBookmark.js.map +1 -0
  53. package/lib/cjs/icons/{custom → generated/custom}/Heirarchy2.js +0 -0
  54. package/lib/cjs/icons/generated/custom/Heirarchy2.js.map +1 -0
  55. package/lib/cjs/icons/{custom → generated/custom}/Hierarchy1.js +0 -0
  56. package/lib/cjs/icons/generated/custom/Hierarchy1.js.map +1 -0
  57. package/lib/cjs/icons/{custom → generated/custom}/Hierarchy2.js +0 -0
  58. package/lib/cjs/icons/generated/custom/Hierarchy2.js.map +1 -0
  59. package/lib/cjs/icons/{custom → generated/custom}/NomLevel.js +0 -0
  60. package/lib/cjs/icons/generated/custom/NomLevel.js.map +1 -0
  61. package/lib/cjs/icons/{custom → generated/custom}/Pin.js +0 -0
  62. package/lib/cjs/icons/generated/custom/Pin.js.map +1 -0
  63. package/lib/cjs/icons/{custom → generated/custom}/Presentation.js +0 -0
  64. package/lib/cjs/icons/generated/custom/Presentation.js.map +1 -0
  65. package/lib/cjs/icons/{custom → generated/custom}/QueryBrowser.js +0 -0
  66. package/lib/cjs/icons/generated/custom/QueryBrowser.js.map +1 -0
  67. package/lib/cjs/icons/{custom → generated/custom}/Rhombus.js +0 -0
  68. package/lib/cjs/icons/generated/custom/Rhombus.js.map +1 -0
  69. package/lib/cjs/icons/{custom → generated/custom}/ScienceMolecule.js +0 -0
  70. package/lib/cjs/icons/generated/custom/ScienceMolecule.js.map +1 -0
  71. package/lib/cjs/icons/{custom → generated/custom}/Shrink.js +0 -0
  72. package/lib/cjs/icons/generated/custom/Shrink.js.map +1 -0
  73. package/lib/cjs/icons/{custom → generated/custom}/Status.js +0 -0
  74. package/lib/cjs/icons/generated/custom/Status.js.map +1 -0
  75. package/lib/cjs/icons/{custom → generated/custom}/Text.js +0 -0
  76. package/lib/cjs/icons/generated/custom/Text.js.map +1 -0
  77. package/lib/cjs/icons/{custom → generated/custom}/Triangle.js +0 -0
  78. package/lib/cjs/icons/generated/custom/Triangle.js.map +1 -0
  79. package/lib/cjs/icons/{custom → generated/custom}/VisualizeBloom.js +0 -0
  80. package/lib/cjs/icons/generated/custom/VisualizeBloom.js.map +1 -0
  81. package/lib/cjs/icons/{custom → generated/custom}/index.js +0 -0
  82. package/lib/cjs/icons/generated/custom/index.js.map +1 -0
  83. package/lib/cjs/icons/generated/heroIcons.js +1206 -0
  84. package/lib/cjs/icons/generated/heroIcons.js.map +1 -0
  85. package/lib/cjs/icons/index.js +15 -7
  86. package/lib/cjs/icons/index.js.map +1 -1
  87. package/lib/cjs/index.js +8 -1
  88. package/lib/cjs/index.js.map +1 -1
  89. package/lib/cjs/label/Label.js +16 -11
  90. package/lib/cjs/label/Label.js.map +1 -1
  91. package/lib/cjs/loading-spinner/LoadingSpinner.js +6 -2
  92. package/lib/cjs/loading-spinner/LoadingSpinner.js.map +1 -1
  93. package/lib/cjs/modal/Modal.js +5 -1
  94. package/lib/cjs/modal/Modal.js.map +1 -1
  95. package/lib/cjs/popover/Popover.js +3 -3
  96. package/lib/cjs/popover/Popover.js.map +1 -1
  97. package/lib/cjs/portal/Portal.js +2 -25
  98. package/lib/cjs/portal/Portal.js.map +1 -1
  99. package/lib/cjs/progress-bar/ProgressBar.js +5 -2
  100. package/lib/cjs/progress-bar/ProgressBar.js.map +1 -1
  101. package/lib/cjs/side-navigation/SideNavigation.js +154 -0
  102. package/lib/cjs/side-navigation/SideNavigation.js.map +1 -0
  103. package/lib/cjs/side-navigation/index.js +38 -0
  104. package/lib/cjs/side-navigation/index.js.map +1 -0
  105. package/lib/cjs/table/Components.js +203 -0
  106. package/lib/cjs/table/Components.js.map +1 -0
  107. package/lib/cjs/table/Table.js +45 -117
  108. package/lib/cjs/table/Table.js.map +1 -1
  109. package/lib/cjs/table/TableContext.js +34 -0
  110. package/lib/cjs/table/TableContext.js.map +1 -0
  111. package/lib/cjs/table/helpers.js +28 -70
  112. package/lib/cjs/table/helpers.js.map +1 -1
  113. package/lib/cjs/table/index.js +14 -4
  114. package/lib/cjs/table/index.js.map +1 -1
  115. package/lib/cjs/table-deprecated/Table.js +157 -0
  116. package/lib/cjs/table-deprecated/Table.js.map +1 -0
  117. package/lib/cjs/{table → table-deprecated}/TableNavigation.js +3 -3
  118. package/lib/cjs/table-deprecated/TableNavigation.js.map +1 -0
  119. package/lib/cjs/table-deprecated/helpers.js +123 -0
  120. package/lib/cjs/table-deprecated/helpers.js.map +1 -0
  121. package/lib/cjs/{table → table-deprecated}/hooks/hookCallbackTypes.js +0 -0
  122. package/lib/cjs/table-deprecated/hooks/hookCallbackTypes.js.map +1 -0
  123. package/lib/cjs/{table → table-deprecated}/hooks/index.js +0 -0
  124. package/lib/cjs/table-deprecated/hooks/index.js.map +1 -0
  125. package/lib/cjs/{table → table-deprecated}/hooks/useMultiRowSelect.js +0 -0
  126. package/lib/cjs/table-deprecated/hooks/useMultiRowSelect.js.map +1 -0
  127. package/lib/cjs/{table → table-deprecated}/hooks/useSingleRowSelect.js +0 -0
  128. package/lib/cjs/table-deprecated/hooks/useSingleRowSelect.js.map +1 -0
  129. package/lib/cjs/table-deprecated/index.js +44 -0
  130. package/lib/cjs/table-deprecated/index.js.map +1 -0
  131. package/lib/cjs/tabs/Tabs.js +7 -7
  132. package/lib/cjs/tabs/Tabs.js.map +1 -1
  133. package/lib/cjs/tag/Tag.js +8 -5
  134. package/lib/cjs/tag/Tag.js.map +1 -1
  135. package/lib/cjs/tag/index.js +14 -5
  136. package/lib/cjs/tag/index.js.map +1 -1
  137. package/lib/cjs/text-input/TextInput.js +11 -10
  138. package/lib/cjs/text-input/TextInput.js.map +1 -1
  139. package/lib/cjs/tooltip/SmartTooltip.js +114 -0
  140. package/lib/cjs/tooltip/SmartTooltip.js.map +1 -0
  141. package/lib/cjs/tooltip/Tooltip.js +10 -2
  142. package/lib/cjs/tooltip/Tooltip.js.map +1 -1
  143. package/lib/cjs/tooltip/index.js +3 -1
  144. package/lib/cjs/tooltip/index.js.map +1 -1
  145. package/lib/cjs/typography/Typography.js +58 -0
  146. package/lib/cjs/typography/Typography.js.map +1 -0
  147. package/lib/cjs/typography/index.js +38 -0
  148. package/lib/cjs/typography/index.js.map +1 -0
  149. package/lib/cjs/typography/types.js +52 -0
  150. package/lib/cjs/typography/types.js.map +1 -0
  151. package/lib/cjs/view-selector/ViewSelector.js +8 -3
  152. package/lib/cjs/view-selector/ViewSelector.js.map +1 -1
  153. package/lib/cjs/wizard/Wizard.js +20 -2
  154. package/lib/cjs/wizard/Wizard.js.map +1 -1
  155. package/lib/esm/_common/input/RadioAndCheckboxWrapper.js +13 -6
  156. package/lib/esm/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
  157. package/lib/esm/alert/Alert.js +15 -15
  158. package/lib/esm/alert/Alert.js.map +1 -1
  159. package/lib/esm/alert/index.js +1 -1
  160. package/lib/esm/alert/index.js.map +1 -1
  161. package/lib/esm/button/Button.js +11 -6
  162. package/lib/esm/button/Button.js.map +1 -1
  163. package/lib/esm/button/IconButton.js +12 -8
  164. package/lib/esm/button/IconButton.js.map +1 -1
  165. package/lib/esm/button/IconButtonArray.js +2 -2
  166. package/lib/esm/button/IconButtonArray.js.map +1 -1
  167. package/lib/esm/code-block/CodeBlock.js +11 -7
  168. package/lib/esm/code-block/CodeBlock.js.map +1 -1
  169. package/lib/esm/context-menu/ContextMenu.js +19 -12
  170. package/lib/esm/context-menu/ContextMenu.js.map +1 -1
  171. package/lib/esm/dialog/Dialog.js +10 -10
  172. package/lib/esm/dialog/Dialog.js.map +1 -1
  173. package/lib/esm/drag-and-drop/DragAndDrop.js +5 -5
  174. package/lib/esm/drag-and-drop/DragAndDrop.js.map +1 -1
  175. package/lib/esm/dropdown/Dropdown.js +6 -4
  176. package/lib/esm/dropdown/Dropdown.js.map +1 -1
  177. package/lib/esm/dropdown/Overrides.js +13 -7
  178. package/lib/esm/dropdown/Overrides.js.map +1 -1
  179. package/lib/esm/graph-label/GraphLabel.js +12 -8
  180. package/lib/esm/graph-label/GraphLabel.js.map +1 -1
  181. package/lib/esm/graph-label/color.js +1 -1
  182. package/lib/esm/graph-label/color.js.map +1 -1
  183. package/lib/esm/icons/{custom → generated/custom}/Circle.js +0 -0
  184. package/lib/esm/icons/generated/custom/Circle.js.map +1 -0
  185. package/lib/esm/icons/{custom → generated/custom}/CollapseExpand.js +0 -0
  186. package/lib/esm/icons/generated/custom/CollapseExpand.js.map +1 -0
  187. package/lib/esm/icons/{custom → generated/custom}/CollapseExpandLeft.js +0 -0
  188. package/lib/esm/icons/generated/custom/CollapseExpandLeft.js.map +1 -0
  189. package/lib/esm/icons/{custom → generated/custom}/CollapseExpandRight.js +0 -0
  190. package/lib/esm/icons/generated/custom/CollapseExpandRight.js.map +1 -0
  191. package/lib/esm/icons/{custom → generated/custom}/Configure.js +0 -0
  192. package/lib/esm/icons/generated/custom/Configure.js.map +1 -0
  193. package/lib/esm/icons/{custom → generated/custom}/DatabaseAddCircle.js +0 -0
  194. package/lib/esm/icons/generated/custom/DatabaseAddCircle.js.map +1 -0
  195. package/lib/esm/icons/{custom → generated/custom}/Dbms.js +0 -0
  196. package/lib/esm/icons/generated/custom/Dbms.js.map +1 -0
  197. package/lib/esm/icons/{custom → generated/custom}/Drag.js +0 -0
  198. package/lib/esm/icons/generated/custom/Drag.js.map +1 -0
  199. package/lib/esm/icons/{custom → generated/custom}/Expand.js +0 -0
  200. package/lib/esm/icons/generated/custom/Expand.js.map +1 -0
  201. package/lib/esm/icons/{custom → generated/custom}/ExternalLink.js +0 -0
  202. package/lib/esm/icons/generated/custom/ExternalLink.js.map +1 -0
  203. package/lib/esm/icons/{custom → generated/custom}/FitToScreen.js +0 -0
  204. package/lib/esm/icons/generated/custom/FitToScreen.js.map +1 -0
  205. package/lib/esm/icons/{custom → generated/custom}/FolderBookmark.js +0 -0
  206. package/lib/esm/icons/generated/custom/FolderBookmark.js.map +1 -0
  207. package/lib/esm/icons/{custom → generated/custom}/Heirarchy2.js +0 -0
  208. package/lib/esm/icons/generated/custom/Heirarchy2.js.map +1 -0
  209. package/lib/esm/icons/{custom → generated/custom}/Hierarchy1.js +0 -0
  210. package/lib/esm/icons/generated/custom/Hierarchy1.js.map +1 -0
  211. package/lib/esm/icons/{custom → generated/custom}/Hierarchy2.js +0 -0
  212. package/lib/esm/icons/generated/custom/Hierarchy2.js.map +1 -0
  213. package/lib/esm/icons/{custom → generated/custom}/NomLevel.js +0 -0
  214. package/lib/esm/icons/generated/custom/NomLevel.js.map +1 -0
  215. package/lib/esm/icons/{custom → generated/custom}/Pin.js +0 -0
  216. package/lib/esm/icons/generated/custom/Pin.js.map +1 -0
  217. package/lib/esm/icons/{custom → generated/custom}/Presentation.js +0 -0
  218. package/lib/esm/icons/generated/custom/Presentation.js.map +1 -0
  219. package/lib/esm/icons/{custom → generated/custom}/QueryBrowser.js +0 -0
  220. package/lib/esm/icons/generated/custom/QueryBrowser.js.map +1 -0
  221. package/lib/esm/icons/{custom → generated/custom}/Rhombus.js +0 -0
  222. package/lib/esm/icons/generated/custom/Rhombus.js.map +1 -0
  223. package/lib/esm/icons/{custom → generated/custom}/ScienceMolecule.js +0 -0
  224. package/lib/esm/icons/generated/custom/ScienceMolecule.js.map +1 -0
  225. package/lib/esm/icons/{custom → generated/custom}/Shrink.js +0 -0
  226. package/lib/esm/icons/generated/custom/Shrink.js.map +1 -0
  227. package/lib/esm/icons/{custom → generated/custom}/Status.js +0 -0
  228. package/lib/esm/icons/generated/custom/Status.js.map +1 -0
  229. package/lib/esm/icons/{custom → generated/custom}/Text.js +0 -0
  230. package/lib/esm/icons/generated/custom/Text.js.map +1 -0
  231. package/lib/esm/icons/{custom → generated/custom}/Triangle.js +0 -0
  232. package/lib/esm/icons/generated/custom/Triangle.js.map +1 -0
  233. package/lib/esm/icons/{custom → generated/custom}/VisualizeBloom.js +0 -0
  234. package/lib/esm/icons/generated/custom/VisualizeBloom.js.map +1 -0
  235. package/lib/esm/icons/{custom → generated/custom}/index.js +0 -0
  236. package/lib/esm/icons/generated/custom/index.js.map +1 -0
  237. package/lib/esm/icons/generated/heroIcons.js +605 -0
  238. package/lib/esm/icons/generated/heroIcons.js.map +1 -0
  239. package/lib/esm/icons/index.js +2 -2
  240. package/lib/esm/icons/index.js.map +1 -1
  241. package/lib/esm/index.js +8 -1
  242. package/lib/esm/index.js.map +1 -1
  243. package/lib/esm/label/Label.js +13 -8
  244. package/lib/esm/label/Label.js.map +1 -1
  245. package/lib/esm/loading-spinner/LoadingSpinner.js +6 -2
  246. package/lib/esm/loading-spinner/LoadingSpinner.js.map +1 -1
  247. package/lib/esm/modal/Modal.js +5 -1
  248. package/lib/esm/modal/Modal.js.map +1 -1
  249. package/lib/esm/popover/Popover.js +3 -3
  250. package/lib/esm/popover/Popover.js.map +1 -1
  251. package/lib/esm/portal/Portal.js +2 -2
  252. package/lib/esm/portal/Portal.js.map +1 -1
  253. package/lib/esm/progress-bar/ProgressBar.js +5 -2
  254. package/lib/esm/progress-bar/ProgressBar.js.map +1 -1
  255. package/lib/esm/side-navigation/SideNavigation.js +125 -0
  256. package/lib/esm/side-navigation/SideNavigation.js.map +1 -0
  257. package/lib/esm/side-navigation/index.js +22 -0
  258. package/lib/esm/side-navigation/index.js.map +1 -0
  259. package/lib/esm/table/Components.js +181 -0
  260. package/lib/esm/table/Components.js.map +1 -0
  261. package/lib/esm/table/Table.js +45 -116
  262. package/lib/esm/table/Table.js.map +1 -1
  263. package/lib/esm/table/TableContext.js +30 -0
  264. package/lib/esm/table/TableContext.js.map +1 -0
  265. package/lib/esm/table/helpers.js +25 -65
  266. package/lib/esm/table/helpers.js.map +1 -1
  267. package/lib/esm/table/index.js +2 -2
  268. package/lib/esm/table/index.js.map +1 -1
  269. package/lib/esm/table-deprecated/Table.js +150 -0
  270. package/lib/esm/table-deprecated/Table.js.map +1 -0
  271. package/lib/esm/{table → table-deprecated}/TableNavigation.js +4 -4
  272. package/lib/esm/table-deprecated/TableNavigation.js.map +1 -0
  273. package/lib/esm/table-deprecated/helpers.js +116 -0
  274. package/lib/esm/table-deprecated/helpers.js.map +1 -0
  275. package/lib/esm/{table → table-deprecated}/hooks/hookCallbackTypes.js +0 -0
  276. package/lib/esm/table-deprecated/hooks/hookCallbackTypes.js.map +1 -0
  277. package/lib/esm/{table → table-deprecated}/hooks/index.js +0 -0
  278. package/lib/esm/table-deprecated/hooks/index.js.map +1 -0
  279. package/lib/esm/{table → table-deprecated}/hooks/useMultiRowSelect.js +0 -0
  280. package/lib/esm/table-deprecated/hooks/useMultiRowSelect.js.map +1 -0
  281. package/lib/esm/{table → table-deprecated}/hooks/useSingleRowSelect.js +0 -0
  282. package/lib/esm/table-deprecated/hooks/useSingleRowSelect.js.map +1 -0
  283. package/lib/esm/table-deprecated/index.js +23 -0
  284. package/lib/esm/table-deprecated/index.js.map +1 -0
  285. package/lib/esm/tabs/Tabs.js +7 -7
  286. package/lib/esm/tabs/Tabs.js.map +1 -1
  287. package/lib/esm/tag/Tag.js +7 -5
  288. package/lib/esm/tag/Tag.js.map +1 -1
  289. package/lib/esm/tag/index.js +1 -1
  290. package/lib/esm/tag/index.js.map +1 -1
  291. package/lib/esm/text-input/TextInput.js +12 -11
  292. package/lib/esm/text-input/TextInput.js.map +1 -1
  293. package/lib/esm/tooltip/SmartTooltip.js +86 -0
  294. package/lib/esm/tooltip/SmartTooltip.js.map +1 -0
  295. package/lib/esm/tooltip/Tooltip.js +10 -2
  296. package/lib/esm/tooltip/Tooltip.js.map +1 -1
  297. package/lib/esm/tooltip/index.js +1 -0
  298. package/lib/esm/tooltip/index.js.map +1 -1
  299. package/lib/esm/{icons/Custom.js → typography/Typography.js} +20 -10
  300. package/lib/esm/typography/Typography.js.map +1 -0
  301. package/lib/esm/typography/index.js +22 -0
  302. package/lib/esm/typography/index.js.map +1 -0
  303. package/lib/esm/typography/types.js +49 -0
  304. package/lib/esm/typography/types.js.map +1 -0
  305. package/lib/esm/view-selector/ViewSelector.js +8 -3
  306. package/lib/esm/view-selector/ViewSelector.js.map +1 -1
  307. package/lib/esm/wizard/Wizard.js +24 -6
  308. package/lib/esm/wizard/Wizard.js.map +1 -1
  309. package/lib/types/_common/input/RadioAndCheckboxWrapper.d.ts +12 -2
  310. package/lib/types/_common/input/types.d.ts +1 -1
  311. package/lib/types/alert/Alert.d.ts +3 -2
  312. package/lib/types/alert/index.d.ts +1 -1
  313. package/lib/types/button/Button.d.ts +1 -3
  314. package/lib/types/button/IconButton.d.ts +2 -0
  315. package/lib/types/checkbox/Checkbox.d.ts +1 -1
  316. package/lib/types/context-menu/ContextMenu.d.ts +11 -12
  317. package/lib/types/dropdown/Overrides.d.ts +0 -21
  318. package/lib/types/dropdown/types.d.ts +0 -1
  319. package/lib/types/icons/{custom → generated/custom}/Circle.d.ts +0 -0
  320. package/lib/types/icons/{custom → generated/custom}/CollapseExpand.d.ts +0 -0
  321. package/lib/types/icons/{custom → generated/custom}/CollapseExpandLeft.d.ts +0 -0
  322. package/lib/types/icons/{custom → generated/custom}/CollapseExpandRight.d.ts +0 -0
  323. package/lib/types/icons/{custom → generated/custom}/Configure.d.ts +0 -0
  324. package/lib/types/icons/{custom → generated/custom}/DatabaseAddCircle.d.ts +0 -0
  325. package/lib/types/icons/{custom → generated/custom}/Dbms.d.ts +0 -0
  326. package/lib/types/icons/{custom → generated/custom}/Drag.d.ts +0 -0
  327. package/lib/types/icons/{custom → generated/custom}/Expand.d.ts +0 -0
  328. package/lib/types/icons/{custom → generated/custom}/ExternalLink.d.ts +0 -0
  329. package/lib/types/icons/{custom → generated/custom}/FitToScreen.d.ts +0 -0
  330. package/lib/types/icons/{custom → generated/custom}/FolderBookmark.d.ts +0 -0
  331. package/lib/types/icons/{custom → generated/custom}/Heirarchy2.d.ts +0 -0
  332. package/lib/types/icons/{custom → generated/custom}/Hierarchy1.d.ts +0 -0
  333. package/lib/types/icons/{custom → generated/custom}/Hierarchy2.d.ts +0 -0
  334. package/lib/types/icons/{custom → generated/custom}/NomLevel.d.ts +0 -0
  335. package/lib/types/icons/{custom → generated/custom}/Pin.d.ts +0 -0
  336. package/lib/types/icons/{custom → generated/custom}/Presentation.d.ts +0 -0
  337. package/lib/types/icons/{custom → generated/custom}/QueryBrowser.d.ts +0 -0
  338. package/lib/types/icons/{custom → generated/custom}/Rhombus.d.ts +0 -0
  339. package/lib/types/icons/{custom → generated/custom}/ScienceMolecule.d.ts +0 -0
  340. package/lib/types/icons/{custom → generated/custom}/Shrink.d.ts +0 -0
  341. package/lib/types/icons/{custom → generated/custom}/Status.d.ts +0 -0
  342. package/lib/types/icons/{custom → generated/custom}/Text.d.ts +0 -0
  343. package/lib/types/icons/{custom → generated/custom}/Triangle.d.ts +0 -0
  344. package/lib/types/icons/{custom → generated/custom}/VisualizeBloom.d.ts +0 -0
  345. package/lib/types/icons/{custom → generated/custom}/index.d.ts +0 -0
  346. package/lib/types/icons/generated/heroIcons.d.ts +604 -0
  347. package/lib/types/icons/index.d.ts +2 -2
  348. package/lib/types/index.d.ts +4 -1
  349. package/lib/types/label/Label.d.ts +3 -2
  350. package/lib/types/popover/Popover.d.ts +1 -1
  351. package/lib/types/portal/Portal.d.ts +1 -1
  352. package/lib/types/progress-bar/ProgressBar.d.ts +1 -1
  353. package/lib/types/radio/Radio.d.ts +1 -1
  354. package/lib/types/side-navigation/SideNavigation.d.ts +49 -0
  355. package/lib/types/side-navigation/index.d.ts +21 -0
  356. package/lib/types/switch/Switch.d.ts +1 -1
  357. package/lib/types/table/Components.d.ts +54 -0
  358. package/lib/types/table/Table.d.ts +28 -49
  359. package/lib/types/table/TableContext.d.ts +61 -0
  360. package/lib/types/table/helpers.d.ts +9 -21
  361. package/lib/types/table/index.d.ts +2 -2
  362. package/lib/types/table-deprecated/Table.d.ts +75 -0
  363. package/lib/types/{table → table-deprecated}/TableNavigation.d.ts +0 -1
  364. package/lib/types/table-deprecated/helpers.d.ts +51 -0
  365. package/lib/types/{table → table-deprecated}/hooks/hookCallbackTypes.d.ts +0 -0
  366. package/lib/types/{table → table-deprecated}/hooks/index.d.ts +0 -0
  367. package/lib/types/{table → table-deprecated}/hooks/useMultiRowSelect.d.ts +0 -0
  368. package/lib/types/{table → table-deprecated}/hooks/useSingleRowSelect.d.ts +0 -0
  369. package/lib/types/table-deprecated/index.d.ts +22 -0
  370. package/lib/types/tag/Tag.d.ts +4 -4
  371. package/lib/types/tag/index.d.ts +1 -1
  372. package/lib/types/text-input/TextInput.d.ts +1 -1
  373. package/lib/types/text-link/TextLink.d.ts +1 -1
  374. package/lib/types/tooltip/SmartTooltip.d.ts +31 -0
  375. package/lib/types/tooltip/Tooltip.d.ts +1 -1
  376. package/lib/types/tooltip/index.d.ts +1 -0
  377. package/lib/types/trap-focus/TrapFocus.d.ts +0 -1
  378. package/lib/types/{icons/Custom.d.ts → typography/Typography.d.ts} +5 -7
  379. package/lib/types/typography/index.d.ts +21 -0
  380. package/lib/types/typography/types.d.ts +34 -0
  381. package/lib/types/wizard/Wizard.d.ts +0 -1
  382. package/package.json +22 -9
  383. package/CHANGELOG.md +0 -546
  384. package/lib/cjs/icons/Custom.js +0 -67
  385. package/lib/cjs/icons/Custom.js.map +0 -1
  386. package/lib/cjs/icons/Hero.js +0 -59
  387. package/lib/cjs/icons/Hero.js.map +0 -1
  388. package/lib/cjs/icons/custom/Circle.js.map +0 -1
  389. package/lib/cjs/icons/custom/CollapseExpand.js.map +0 -1
  390. package/lib/cjs/icons/custom/CollapseExpandLeft.js.map +0 -1
  391. package/lib/cjs/icons/custom/CollapseExpandRight.js.map +0 -1
  392. package/lib/cjs/icons/custom/Configure.js.map +0 -1
  393. package/lib/cjs/icons/custom/DatabaseAddCircle.js.map +0 -1
  394. package/lib/cjs/icons/custom/Dbms.js.map +0 -1
  395. package/lib/cjs/icons/custom/Drag.js.map +0 -1
  396. package/lib/cjs/icons/custom/Expand.js.map +0 -1
  397. package/lib/cjs/icons/custom/ExternalLink.js.map +0 -1
  398. package/lib/cjs/icons/custom/FitToScreen.js.map +0 -1
  399. package/lib/cjs/icons/custom/FolderBookmark.js.map +0 -1
  400. package/lib/cjs/icons/custom/Heirarchy2.js.map +0 -1
  401. package/lib/cjs/icons/custom/Hierarchy1.js.map +0 -1
  402. package/lib/cjs/icons/custom/Hierarchy2.js.map +0 -1
  403. package/lib/cjs/icons/custom/NomLevel.js.map +0 -1
  404. package/lib/cjs/icons/custom/Pin.js.map +0 -1
  405. package/lib/cjs/icons/custom/Presentation.js.map +0 -1
  406. package/lib/cjs/icons/custom/QueryBrowser.js.map +0 -1
  407. package/lib/cjs/icons/custom/Rhombus.js.map +0 -1
  408. package/lib/cjs/icons/custom/ScienceMolecule.js.map +0 -1
  409. package/lib/cjs/icons/custom/Shrink.js.map +0 -1
  410. package/lib/cjs/icons/custom/Status.js.map +0 -1
  411. package/lib/cjs/icons/custom/Text.js.map +0 -1
  412. package/lib/cjs/icons/custom/Triangle.js.map +0 -1
  413. package/lib/cjs/icons/custom/VisualizeBloom.js.map +0 -1
  414. package/lib/cjs/icons/custom/index.js.map +0 -1
  415. package/lib/cjs/table/TableNavigation.js.map +0 -1
  416. package/lib/cjs/table/hooks/hookCallbackTypes.js.map +0 -1
  417. package/lib/cjs/table/hooks/index.js.map +0 -1
  418. package/lib/cjs/table/hooks/useMultiRowSelect.js.map +0 -1
  419. package/lib/cjs/table/hooks/useSingleRowSelect.js.map +0 -1
  420. package/lib/esm/icons/Custom.js.map +0 -1
  421. package/lib/esm/icons/Hero.js +0 -33
  422. package/lib/esm/icons/Hero.js.map +0 -1
  423. package/lib/esm/icons/custom/Circle.js.map +0 -1
  424. package/lib/esm/icons/custom/CollapseExpand.js.map +0 -1
  425. package/lib/esm/icons/custom/CollapseExpandLeft.js.map +0 -1
  426. package/lib/esm/icons/custom/CollapseExpandRight.js.map +0 -1
  427. package/lib/esm/icons/custom/Configure.js.map +0 -1
  428. package/lib/esm/icons/custom/DatabaseAddCircle.js.map +0 -1
  429. package/lib/esm/icons/custom/Dbms.js.map +0 -1
  430. package/lib/esm/icons/custom/Drag.js.map +0 -1
  431. package/lib/esm/icons/custom/Expand.js.map +0 -1
  432. package/lib/esm/icons/custom/ExternalLink.js.map +0 -1
  433. package/lib/esm/icons/custom/FitToScreen.js.map +0 -1
  434. package/lib/esm/icons/custom/FolderBookmark.js.map +0 -1
  435. package/lib/esm/icons/custom/Heirarchy2.js.map +0 -1
  436. package/lib/esm/icons/custom/Hierarchy1.js.map +0 -1
  437. package/lib/esm/icons/custom/Hierarchy2.js.map +0 -1
  438. package/lib/esm/icons/custom/NomLevel.js.map +0 -1
  439. package/lib/esm/icons/custom/Pin.js.map +0 -1
  440. package/lib/esm/icons/custom/Presentation.js.map +0 -1
  441. package/lib/esm/icons/custom/QueryBrowser.js.map +0 -1
  442. package/lib/esm/icons/custom/Rhombus.js.map +0 -1
  443. package/lib/esm/icons/custom/ScienceMolecule.js.map +0 -1
  444. package/lib/esm/icons/custom/Shrink.js.map +0 -1
  445. package/lib/esm/icons/custom/Status.js.map +0 -1
  446. package/lib/esm/icons/custom/Text.js.map +0 -1
  447. package/lib/esm/icons/custom/Triangle.js.map +0 -1
  448. package/lib/esm/icons/custom/VisualizeBloom.js.map +0 -1
  449. package/lib/esm/icons/custom/index.js.map +0 -1
  450. package/lib/esm/table/TableNavigation.js.map +0 -1
  451. package/lib/esm/table/hooks/hookCallbackTypes.js.map +0 -1
  452. package/lib/esm/table/hooks/index.js.map +0 -1
  453. package/lib/esm/table/hooks/useMultiRowSelect.js.map +0 -1
  454. package/lib/esm/table/hooks/useSingleRowSelect.js.map +0 -1
  455. package/lib/types/icons/Hero.d.ts +0 -28
@@ -80,17 +80,18 @@ const utils_1 = require("../_common/utils");
80
80
  const TextInput = react_1.default.forwardRef(function TextInput(props, ref) {
81
81
  const { label, fluid, errorText, helpText, leftIcon, rightIcon, type = 'text', containerSize = 'small', 'aria-label': ariaLabel } = props, customProps = __rest(props, ["label", "fluid", "errorText", "helpText", "leftIcon", "rightIcon", "type", "containerSize", 'aria-label']);
82
82
  const containerWrappingClass = (0, classnames_1.default)(`ndl-form-item ndl-type-text`, customProps.className, {
83
- disabled: customProps.disabled,
84
- [containerSize]: containerSize,
85
- 'has-error': errorText,
86
- 'has-left-icon': leftIcon,
87
- 'has-right-icon': rightIcon || errorText,
88
- 'has-icon': leftIcon || rightIcon || errorText,
83
+ 'ndl-disabled': customProps.disabled,
84
+ 'ndl-small': containerSize === 'small',
85
+ 'ndl-large': containerSize === 'large',
86
+ 'ndl-has-error': errorText,
87
+ 'ndl-has-left-icon': leftIcon,
88
+ 'ndl-has-right-icon': rightIcon || errorText,
89
+ 'ndl-has-icon': leftIcon || rightIcon || errorText,
89
90
  });
90
91
  const hasEmptyLabelValue = !label || label === '';
91
- const labelWrappingClass = (0, classnames_1.default)(`form-item-label`, {
92
- fluid,
93
- 'form-item-no-label': hasEmptyLabelValue,
92
+ const labelWrappingClass = (0, classnames_1.default)('ndl-form-item-label', {
93
+ 'ndl-fluid': fluid,
94
+ 'ndl-form-item-no-label': hasEmptyLabelValue,
94
95
  });
95
96
  (0, react_1.useMemo)(() => {
96
97
  if (!label && !ariaLabel) {
@@ -98,7 +99,7 @@ const TextInput = react_1.default.forwardRef(function TextInput(props, ref) {
98
99
  }
99
100
  }, [label, ariaLabel]);
100
101
  const customPropsClassNameStripped = Object.assign(Object.assign({}, customProps), { className: undefined });
101
- return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: containerWrappingClass }, { children: [(0, jsx_runtime_1.jsxs)("label", Object.assign({ className: labelWrappingClass }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "input-wrapper" }, { children: [leftIcon && (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "icon left-icon" }, { children: leftIcon })), (0, jsx_runtime_1.jsx)("input", Object.assign({}, customPropsClassNameStripped, { type: type, ref: ref, "aria-label": ariaLabel })), rightIcon && !errorText && ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "icon right-icon" }, { children: rightIcon })))] })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "form-label-text" }, { children: label }))] })), helpText && !errorText && (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "form-msg" }, { children: helpText })), errorText && ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "form-msg" }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "icon error-icon" }, { children: (0, jsx_runtime_1.jsx)(icons_1.HeroIcon, { iconName: "ExclamationCircleIcon", type: "solid" }) })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "error-text" }, { children: errorText }))] })))] })));
102
+ return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: containerWrappingClass }, { children: [(0, jsx_runtime_1.jsxs)("label", Object.assign({ className: labelWrappingClass }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "ndl-input-wrapper" }, { children: [leftIcon && (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "ndl-icon ndl-left-icon" }, { children: leftIcon })), (0, jsx_runtime_1.jsx)("input", Object.assign({}, customPropsClassNameStripped, { type: type, ref: ref, "aria-label": ariaLabel })), rightIcon && !errorText && ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "ndl-right-icon" }, { children: rightIcon })))] })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "ndl-form-label-text" }, { children: label }))] })), helpText && !errorText && (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "ndl-form-msg" }, { children: helpText })), errorText && ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "ndl-form-msg" }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "ndl-error-icon" }, { children: (0, jsx_runtime_1.jsx)(icons_1.ExclamationCircleIconSolid, {}) })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "ndl-error-text" }, { children: errorText }))] })))] })));
102
103
  });
103
104
  exports.default = TextInput;
104
105
  //# sourceMappingURL=TextInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextInput.js","sourceRoot":"","sources":["../../../src/text-input/TextInput.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,+CAAqD;AACrD,4DAAoC;AAEpC,oCAAoC;AACpC,4CAAwD;AAyBxD;;;;;;GAMG;AAEH,qCAAqC;AAErC;;;;;;GAMG;AAEH,MAAM,SAAS,GAAG,eAAK,CAAC,UAAU,CAAC,SAAS,SAAS,CACnD,KAA0B,EAC1B,GAAmC;IAEnC,MAAM,EACJ,KAAK,EACL,KAAK,EACL,SAAS,EACT,QA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AAc,iBAC3B,8CAAK,SAAS,EAAC,gBAAgB,gBAC7B,uBAAC,kCAA0B,KAAG,IAC1B,EACN,8CAAK,SAAS,EAAC,gBAAgB,gBAAE,SAAS,IAAO,KAC7C,CACP,KACG,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __rest = (this && this.__rest) || function (s, e) {
26
+ var t = {};
27
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
+ t[p] = s[p];
29
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
31
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
32
+ t[p[i]] = s[p[i]];
33
+ }
34
+ return t;
35
+ };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ const jsx_runtime_1 = require("react/jsx-runtime");
41
+ /**
42
+ *
43
+ * Copyright (c) "Neo4j"
44
+ * Neo4j Sweden AB [http://neo4j.com]
45
+ *
46
+ * This file is part of Neo4j.
47
+ *
48
+ * Neo4j is free software: you can redistribute it and/or modify
49
+ * it under the terms of the GNU General Public License as published by
50
+ * the Free Software Foundation, either version 3 of the License, or
51
+ * (at your option) any later version.
52
+ *
53
+ * This program is distributed in the hope that it will be useful,
54
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
55
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
56
+ * GNU General Public License for more details.
57
+ *
58
+ * You should have received a copy of the GNU General Public License
59
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
60
+ */
61
+ const react_1 = __importStar(require("react"));
62
+ const react_dom_interactions_1 = require("@floating-ui/react-dom-interactions");
63
+ const Tooltip_1 = __importDefault(require("./Tooltip"));
64
+ const base_1 = require("@neo4j-ndl/base");
65
+ const PLACEMENTS = ['top', 'bottom', 'left', 'right'];
66
+ const calculateArrow = (placement) => {
67
+ switch (placement) {
68
+ case 'bottom':
69
+ return 'top';
70
+ case 'left':
71
+ return 'right';
72
+ case 'right':
73
+ return 'left';
74
+ case 'top':
75
+ default:
76
+ return 'bottom';
77
+ }
78
+ };
79
+ const SmartTooltip = react_1.default.forwardRef(function SmartTooltip(_a, ref) {
80
+ var { open: openProp, allowedPlacements = PLACEMENTS } = _a, props = __rest(_a, ["open", "allowedPlacements"]);
81
+ const [open, setOpen] = (0, react_1.useState)(false);
82
+ const { context, x, y, reference, floating, strategy, placement } = (0, react_dom_interactions_1.useFloating)({
83
+ open,
84
+ onOpenChange: setOpen,
85
+ whileElementsMounted: react_dom_interactions_1.autoUpdate,
86
+ middleware: [
87
+ (0, react_dom_interactions_1.offset)(10),
88
+ (0, react_dom_interactions_1.autoPlacement)({
89
+ allowedPlacements,
90
+ }),
91
+ ],
92
+ });
93
+ const hover = (0, react_dom_interactions_1.useHover)(context, {
94
+ move: false,
95
+ delay: {
96
+ // Strip the 'ms' from the duration token, need to provide pure ms durations
97
+ close: parseInt(base_1.tokens.transitions.values.duration.default.replace('ms', '')),
98
+ },
99
+ });
100
+ const { getFloatingProps } = (0, react_dom_interactions_1.useInteractions)([hover]);
101
+ (0, react_1.useEffect)(() => {
102
+ /**
103
+ * Assign passed ref to the reference callback
104
+ * of the useFloating hook
105
+ */
106
+ const { current = null } = ref || {};
107
+ if (current) {
108
+ reference(current);
109
+ }
110
+ }, [ref]);
111
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: open || openProp ? ((0, jsx_runtime_1.jsx)(Tooltip_1.default, Object.assign({}, props, getFloatingProps(), { ref: floating, arrowPosition: calculateArrow(placement), style: Object.assign({ position: strategy, top: y !== null && y !== void 0 ? y : 0, left: x !== null && x !== void 0 ? x : 0, width: 'max-content' }, props.style) }))) : null }));
112
+ });
113
+ exports.default = SmartTooltip;
114
+ //# sourceMappingURL=SmartTooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SmartTooltip.js","sourceRoot":"","sources":["../../../src/tooltip/SmartTooltip.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,+CAKe;AACf,gFAO6C;AAE7C,wDAAkD;AAClD,0CAAyC;AASzC,MAAM,UAAU,GAAW,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AAE9D,MAAM,cAAc,GAAG,CACrB,SAAe,EACkC,EAAE;IACnD,QAAQ,SAAS,EAAE;QACjB,KAAK,QAAQ;YACX,OAAO,KAAK,CAAC;QACf,KAAK,MAAM;YACT,OAAO,OAAO,CAAC;QACjB,KAAK,OAAO;YACV,OAAO,MAAM,CAAC;Q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AG,CAAC,CAAC,CAAC;IAEV,OAAO,CACL,2DACG,IAAI,IAAI,QAAQ,CAAC,CAAC,CAAC,CAClB,uBAAC,iBAAO,oBACF,KAAK,EACL,gBAAgB,EAAE,IACtB,GAAG,EAAE,QAAQ,EACb,aAAa,EAAE,cAAc,CAAC,SAAiB,CAAC,EAChD,KAAK,kBACH,QAAQ,EAAE,QAAQ,EAClB,GAAG,EAAE,CAAC,aAAD,CAAC,cAAD,CAAC,GAAI,CAAC,EACX,IAAI,EAAE,CAAC,aAAD,CAAC,cAAD,CAAC,GAAI,CAAC,EACZ,KAAK,EAAE,aAAa,IACjB,KAAK,CAAC,KAAK,KAEhB,CACH,CAAC,CAAC,CAAC,IAAI,GACP,CACJ,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,kBAAe,YAAY,CAAC"}
@@ -39,8 +39,16 @@ const react_1 = __importDefault(require("react"));
39
39
  const classnames_1 = __importDefault(require("classnames"));
40
40
  const Tooltip = react_1.default.forwardRef(function Tooltip(_a, ref) {
41
41
  var { arrowPosition, children, className } = _a, props = __rest(_a, ["arrowPosition", "children", "className"]);
42
- const classes = (0, classnames_1.default)('ndl-tooltip-wrapper', className);
43
- return ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, props, { role: "tooltip", className: classes, ref: ref }, { children: [children, (0, jsx_runtime_1.jsx)("div", { className: `tooltip-triangle ${arrowPosition}` })] })));
42
+ const classesWrapper = (0, classnames_1.default)('ndl-tooltip-wrapper', className);
43
+ const classesTriangle = (0, classnames_1.default)('ndl-tooltip-triangle', {
44
+ 'ndl-top': arrowPosition === 'top',
45
+ 'ndl-bottom': arrowPosition === 'bottom',
46
+ 'ndl-left': arrowPosition === 'left',
47
+ 'ndl-right': arrowPosition === 'right',
48
+ 'ndl-top-left': arrowPosition === 'top-left',
49
+ 'ndl-top-right': arrowPosition === 'top-right',
50
+ });
51
+ return ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, props, { role: "tooltip", className: classesWrapper, ref: ref }, { children: [children, (0, jsx_runtime_1.jsx)("div", { className: classesTriangle })] })));
44
52
  });
45
53
  exports.default = Tooltip;
46
54
  //# sourceMappingURL=Tooltip.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../../src/tooltip/Tooltip.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,kDAA0B;AAC1B,4DAAoC;AAgBpC,MAAM,OAAO,GAAG,eAAK,CAAC,UAAU,CAAC,SAAS,OAAO,CAC/C,EAA8D,EAC9D,GAAuC;QADvC,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,OAA0B,EAArB,KAAK,cAA9C,0CAAgD,CAAF;IAG9C,MAAM,OAAO,GAAG,IAAA,oBAAU,EAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC;IAE7D,OAAO,CACL,iDAAS,KAAK,IAAE,IAAI,EAAC,SAAS,EAAC,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,iBACxD,QAAQ,EACT,gCAAK,SAAS,EAAE,oBAAoB,aAAa,EAAE,GAAI,KACnD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../../src/tooltip/Tooltip.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,kDAA0B;AAC1B,4DAAoC;AAgBpC,MAAM,OAAO,GAAG,eAAK,CAAC,UAAU,CAAC,SAAS,OAAO,CAC/C,EAA8D,EAC9D,GAAuC;QADvC,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,OAA0B,EAArB,KAAK,cAA9C,0CAAgD,CAAF;IAG9C,MAAM,cAAc,GAAG,IAAA,oBAAU,EAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC;IAEpE,MAAM,eAAe,GAAG,IAAA,oBAAU,EAAC,sBAAsB,EAAE;QACzD,SAAS,EAAE,aAAa,KAAK,KAAK;QAClC,YAAY,EAAE,aAAa,KAAK,QAAQ;QACxC,UAAU,EAAE,aAAa,KAAK,MAAM;QACpC,WAAW,EAAE,aAAa,KAAK,OAAO;QACtC,cAAc,EAAE,aAAa,KAAK,UAAU;QAC5C,eAAe,EAAE,aAAa,KAAK,WAAW;KAC/C,CAAC,CAAC;IAEH,OAAO,CACL,iDAAS,KAAK,IAAE,IAAI,EAAC,SAAS,EAAC,SAAS,EAAE,cAAc,EAAE,GAAG,EAAE,GAAG,iBAC/D,QAAQ,EACT,gCAAK,SAAS,EAAE,eAAe,GAAI,KAC/B,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,kBAAe,OAAO,CAAC"}
@@ -23,7 +23,9 @@ 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.Tooltip = void 0;
26
+ exports.SmartTooltip = exports.Tooltip = void 0;
27
27
  var Tooltip_1 = require("./Tooltip");
28
28
  Object.defineProperty(exports, "Tooltip", { enumerable: true, get: function () { return __importDefault(Tooltip_1).default; } });
29
+ var SmartTooltip_1 = require("./SmartTooltip");
30
+ Object.defineProperty(exports, "SmartTooltip", { enumerable: true, get: function () { return __importDefault(SmartTooltip_1).default; } });
29
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tooltip/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,qCAA+C;AAAtC,mHAAA,OAAO,OAAW"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tooltip/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,qCAA+C;AAAtC,mHAAA,OAAO,OAAW;AAC3B,+CAAyD;AAAhD,6HAAA,OAAO,OAAgB"}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.Typography = void 0;
18
+ const jsx_runtime_1 = require("react/jsx-runtime");
19
+ /**
20
+ *
21
+ * Copyright (c) "Neo4j"
22
+ * Neo4j Sweden AB [http://neo4j.com]
23
+ *
24
+ * This file is part of Neo4j.
25
+ *
26
+ * Neo4j is free software: you can redistribute it and/or modify
27
+ * it under the terms of the GNU General Public License as published by
28
+ * the Free Software Foundation, either version 3 of the License, or
29
+ * (at your option) any later version.
30
+ *
31
+ * This program is distributed in the hope that it will be useful,
32
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
33
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34
+ * GNU General Public License for more details.
35
+ *
36
+ * You should have received a copy of the GNU General Public License
37
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
38
+ */
39
+ const classnames_1 = __importDefault(require("classnames"));
40
+ const utils_1 = require("../_common/utils");
41
+ const types_1 = require("./types");
42
+ const Typography = (props) => {
43
+ const { className = '', variant, as } = props, rest = __rest(props, ["className", "variant", "as"]);
44
+ const classes = (0, classnames_1.default)(`n-${variant}`, className);
45
+ const Component = (as || types_1.TypographyDefaultMapping[variant]);
46
+ return (0, jsx_runtime_1.jsx)(Component, Object.assign({}, rest, { className: classes }));
47
+ };
48
+ exports.Typography = Typography;
49
+ /**
50
+ * Experimental Type testing
51
+ */
52
+ const Link = ({ linkClick }) => ((0, jsx_runtime_1.jsx)("button", Object.assign({ onClick: linkClick }, { children: "Test" })));
53
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
54
+ // @ts-ignore
55
+ const _MultipleCasesComponent = () => ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(exports.Typography, { variant: "h2", as: "a", href: "www.neo4j.com" }), (0, jsx_runtime_1.jsx)(exports.Typography, { variant: "h2", as: "span", href: "www.neo4j.com" }), (0, jsx_runtime_1.jsx)(exports.Typography, { variant: "body-medium", as: Link }), (0, jsx_runtime_1.jsx)(exports.Typography, { variant: "body-medium", as: Link, linkClick: () => {
56
+ (0, utils_1.needleWarningMessage)('clicked link');
57
+ } })] }));
58
+ //# sourceMappingURL=Typography.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Typography.js","sourceRoot":"","sources":["../../../src/typography/Typography.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,4DAAoC;AACpC,4CAAwD;AACxD,mCAMiB;AAEV,MAAM,UAAU,GAAG,CAIxB,KAGoC,EACpC,EAAE;IACF,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,KAAc,KAAK,EAAd,IAAI,UAAK,KAAK,EAAhD,8BAAwC,CAAQ,CAAC;IAEvD,MAAM,OAAO,GAAG,IAAA,oBAAU,EAAC,KAAK,OAAO,EAAE,EAAE,SAAS,CAAC,CAAC;IACtD,MAAM,SAAS,GAAG,CAAC,EAAE,IAAI,gCAAwB,CAAC,OAAO,CAAC,CAAmB,CAAC;IAE9E,OAAO,uBAAC,SAAS,oBAAK,IAAI,IAAE,SAAS,EAAE,OAAO,IAAI,CAAC;AACrD,CAAC,CAAC;AAfW,QAAA,UAAU,cAerB;AAEF;;GAEG;AACH,MAAM,IAAI,GAAG,CAAC,EAAE,SAAS,EAA6B,EAAE,EAAE,CAAC,CACzD,iDAAQ,OAAO,EAAE,SAAS,0BAAe,CAC1C,CAAC;AAEF,6DAA6D;AAC7D,aAAa;AACb,MAAM,uBAAuB,GAAG,GAAG,EAAE,CAAC,CACpC,4CAEE,uBAAC,kBAAU,IAAC,OAAO,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAC,IAAI,EAAC,eAAe,GAAG,EAGvD,uBAAC,kBAAU,IAAC,OAAO,EAAC,IAAI,EAAC,EAAE,EAAC,MAAM,EAAC,IAAI,EAAC,eAAe,GAAG,EAG1D,uBAAC,kBAAU,IAAC,OAAO,EAAC,aAAa,EAAC,EAAE,EAAE,IAAI,GAAI,EAG9C,uBAAC,kBAAU,IACT,OAAO,EAAC,aAAa,EACrB,EAAE,EAAE,IAAI,EACR,SAAS,EAAE,GAAG,EAAE;gBACd,IAAA,4BAAoB,EAAC,cAAc,CAAC,CAAC;YACvC,CAAC,GACD,IACE,CACP,CAAC"}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ var desc = Object.getOwnPropertyDescriptor(m, k);
25
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
26
+ desc = { enumerable: true, get: function() { return m[k]; } };
27
+ }
28
+ Object.defineProperty(o, k2, desc);
29
+ }) : (function(o, m, k, k2) {
30
+ if (k2 === undefined) k2 = k;
31
+ o[k2] = m[k];
32
+ }));
33
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
34
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ __exportStar(require("./Typography"), exports);
38
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/typography/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;AAEH,+CAA6B"}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ Object.defineProperty(exports, "__esModule", { value: true });
23
+ exports.TypographyDefaultMapping = void 0;
24
+ exports.TypographyDefaultMapping = {
25
+ h1: 'h1',
26
+ h2: 'h2',
27
+ h3: 'h3',
28
+ h4: 'h4',
29
+ h5: 'h5',
30
+ h6: 'h6',
31
+ 'subheading-large': 'span',
32
+ 'subheading-medium': 'span',
33
+ 'subheading-small': 'span',
34
+ 'body-large': 'span',
35
+ 'body-medium': 'span',
36
+ 'body-small': 'span',
37
+ code: 'code',
38
+ label: 'span',
39
+ };
40
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
41
+ // @ts-ignore
42
+ const _CodeElement = {
43
+ // @ts-expect-error href is not a valid prop for a code element
44
+ href: 'https://www.neo4j.com',
45
+ };
46
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
47
+ // @ts-ignore
48
+ // @ts-expect-no-error href is a valid prop for an anchor element
49
+ const _AnchorElement = {
50
+ href: 'https://www.neo4j.com',
51
+ };
52
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/typography/types.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;AAMU,QAAA,wBAAwB,GAEjC;IACF,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,kBAAkB,EAAE,MAAM;IAC1B,mBAAmB,EAAE,MAAM;IAC3B,kBAAkB,EAAE,MAAM;IAC1B,YAAY,EAAE,MAAM;IACpB,aAAa,EAAE,MAAM;IACrB,YAAY,EAAE,MAAM;IACpB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,MAAM;CACL,CAAC;AAgCX,6DAA6D;AAC7D,aAAa;AACb,MAAM,YAAY,GAAoB;IACpC,+DAA+D;IAC/D,IAAI,EAAE,uBAAuB;CAC9B,CAAC;AAIF,6DAA6D;AAC7D,aAAa;AACb,iEAAiE;AACjE,MAAM,cAAc,GAAsB;IACxC,IAAI,EAAE,uBAAuB;CAC9B,CAAC"}
@@ -72,7 +72,10 @@ const useSelectorContext = () => {
72
72
  };
73
73
  exports.ViewSelector = (0, helpers_1.forwardRef)(function ViewSelector(_a, ref) {
74
74
  var { size = 'large', icons = false, children, selected, onChange, as = 'div', className } = _a, rest = __rest(_a, ["size", "icons", "children", "selected", "onChange", "as", "className"]);
75
- const classes = (0, classnames_1.default)(`ndl-view-selector`, size, className);
75
+ const classes = (0, classnames_1.default)('ndl-view-selector', className, {
76
+ 'ndl-small': size === 'small',
77
+ 'ndl-large': size === 'large',
78
+ });
76
79
  const Component = as;
77
80
  return ((0, jsx_runtime_1.jsx)(Component, Object.assign({}, rest, { className: classes, role: "group", ref: ref }, { children: (0, jsx_runtime_1.jsx)(ViewSelectorContext.Provider, Object.assign({ value: { onChange, selected, icons } }, { children: children })) })));
78
81
  });
@@ -80,8 +83,10 @@ exports.ViewSelectorItem = react_1.default.forwardRef(function ViewSelectorItem(
80
83
  var { children, value, as = 'button', className } = _a, rest = __rest(_a, ["children", "value", "as", "className"]);
81
84
  const { onChange, selected, icons } = useSelectorContext();
82
85
  const isSelected = value && value === selected;
83
- const base = (0, classnames_1.default)(`selector-${icons ? 'icon' : 'item'}`, className, {
84
- current: value && value === selected,
86
+ const base = (0, classnames_1.default)(className, {
87
+ 'ndl-selector-item': !icons,
88
+ 'ndl-selector-icon': icons,
89
+ 'ndl-current': value && value === selected,
85
90
  });
86
91
  const Component = as;
87
92
  return ((0, jsx_runtime_1.jsx)(Component, Object.assign({}, rest, { onClick: () => !isSelected && onChange(value), className: base, ref: ref }, { children: children })));
@@ -1 +1 @@
1
- {"version":3,"file":"ViewSelector.js","sourceRoot":"","sources":["../../../src/view-selector/ViewSelector.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,+CAA0C;AAC1C,4DAAoC;AACpC,wCAAqD;AAuCrD,MAAM,mBAAmB,GACvB,eAAK,CAAC,aAAa,CAAkC,IAAI,CAAC,CAAC;AAE7D,MAAM,kBAAkB,GAAG,GAAG,EAAE;IAC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+ 1 === activeStep
44
44
  ? 'incomplete'
45
45
  : 'complete';
46
46
  const Circle = ({ status, number, text, type, }) => {
47
- return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "ndl-wizard-circle" }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "n-relative" }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: `text ${type}` }, { children: text })) })), (0, jsx_runtime_1.jsxs)("svg", Object.assign({ className: `n-h-10 n-w-10 ${status}` }, { children: [status === 'active' && ((0, jsx_runtime_1.jsxs)("g", { children: [(0, jsx_runtime_1.jsx)("circle", { className: "n-fill-light-primary-text", cx: "20", cy: "20", r: "20" }), (0, jsx_runtime_1.jsx)("circle", { className: "n-fill-neutral-10", cx: "20", cy: "20", r: "18" })] })), (0, jsx_runtime_1.jsx)("circle", { className: `${status === 'complete' || status === 'active'
47
+ const statusClassName = (0, classnames_1.default)({
48
+ 'ndl-active': status === 'active',
49
+ 'ndl-complete': status === 'complete',
50
+ 'ndl-incomplete': status === 'incomplete',
51
+ });
52
+ const typeClassName = (0, classnames_1.default)({
53
+ 'ndl-horizontal': type === 'horizontal',
54
+ 'ndl-vertical': type === 'vertical',
55
+ });
56
+ return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "ndl-wizard-circle" }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "n-relative" }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: `ndl-text ${typeClassName}` }, { children: text })) })), (0, jsx_runtime_1.jsxs)("svg", Object.assign({ className: `n-h-10 n-w-10 ${statusClassName}` }, { children: [status === 'active' && ((0, jsx_runtime_1.jsxs)("g", { children: [(0, jsx_runtime_1.jsx)("circle", { className: "n-fill-light-primary-text", cx: "20", cy: "20", r: "20" }), (0, jsx_runtime_1.jsx)("circle", { className: "n-fill-neutral-10", cx: "20", cy: "20", r: "18" })] })), (0, jsx_runtime_1.jsx)("circle", { className: `${status === 'complete' || status === 'active'
48
57
  ? 'n-fill-light-primary-text'
49
58
  : 'n-fill-light-neutral-text-weakest'}`, cx: "20", cy: "20", r: "16" }), (0, jsx_runtime_1.jsx)("text", Object.assign({ x: "50%", y: "50%", className: "n-fill-neutral-10", textAnchor: "middle", dy: "0.3em" }, { children: number }))] }))] })));
50
59
  };
51
- const Line = ({ status, type, }) => (0, jsx_runtime_1.jsx)("div", { "aria-hidden": true, className: `ndl-wizard-line ${status} ${type}` });
60
+ const Line = ({ status, type, }) => {
61
+ const classes = (0, classnames_1.default)('ndl-wizard-line', {
62
+ 'ndl-active': status === 'active',
63
+ 'ndl-complete': status === 'complete',
64
+ 'ndl-incomplete': status === 'incomplete',
65
+ 'ndl-horizontal': type === 'horizontal',
66
+ 'ndl-vertical': type === 'vertical',
67
+ });
68
+ return (0, jsx_runtime_1.jsx)("div", { "aria-hidden": true, className: classes });
69
+ };
52
70
  const Horizontal = (_a) => {
53
71
  var { activeStep, steps } = _a, props = __rest(_a, ["activeStep", "steps"]);
54
72
  const components = [];
@@ -1 +1 @@
1
- {"version":3,"file":"Wizard.js","sourceRoot":"","sources":["../../../src/wizard/Wizard.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,4DAAoC;AAEpC,4CAA4C;AAE5C,MAAM,SAAS,GAAG,CAAC,UAAkB,EAAE,SAAiB,EAAE,EAAE,CAC1D,SAAS,GAAG,CAAC,KAAK,UAAU;IAC1B,CAAC,CAAC,QAAQ;IACV,CAAC,CAAC,UAAU,GAAG,SAAS,GAAG,CAAC;QAC5B,CAAC,CAAC,YAAY;QACd,CAAC,CAAC,UAAU,CAAC;AAEjB,MAAM,MAAM,GAAG,CAAC,EACd,MAAM,EACN,MAAM,EACN,IAAI,EACJ,IAAI,GAML,EAAE,EAAE;IACH,OAAO,CACL,+CAAK,SAAS,EAAC,mBAAmB,iBAChC,8CAAK,SAAS,EAAC,YAAY,gBACzB,8CAAK,SAAS,EAAE,QAAQ,IAAI,EAA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AAK,EAAE,KAAK,IACT,KAAK,CACT,CAAC;IAEF,QAAQ,IAAI,EAAE;QACZ,KAAK,UAAU;YACb,OAAO,uBAAC,gBAAQ,oBAAK,QAAQ,EAAI,CAAC;QACpC,KAAK,QAAQ;YACX,OAAO,uBAAC,cAAM,oBAAK,QAAQ,EAAI,CAAC;QAClC;YACE,OAAO,uBAAC,kBAAU,oBAAK,QAAQ,EAAI,CAAC;KACvC;AACH,CAAC,CAAC;AApBW,QAAA,MAAM,UAoBjB"}
@@ -41,21 +41,28 @@ import { needleWarningMessage } from '../utils';
41
41
  *
42
42
  *
43
43
  */
44
+ export const customLabelAndNoAriaLabelWarningMessage = 'aria label not detected when using a custom label, be sure to include an aria label for screen readers link: https://dequeuniversity.com/rules/axe/4.2/label?application=axeAPI';
44
45
  const RadioAndCheckboxWrapper = (props, ref) => {
45
46
  const { label, fluid, labelBefore, type = 'text', 'aria-label': ariaLabel } = props, otherInputProps = __rest(props, ["label", "fluid", "labelBefore", "type", 'aria-label']);
47
+ const isLabel = label !== undefined && typeof label === 'string';
48
+ const isCustomLabel = label && typeof label !== 'string';
49
+ const hasCustomLabelAndNoAriaLabel = isCustomLabel && !ariaLabel;
46
50
  useMemo(() => {
47
51
  if (!label && !ariaLabel) {
48
52
  needleWarningMessage(`${type} 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`);
49
53
  }
50
- }, [ariaLabel, label, type]);
54
+ if (hasCustomLabelAndNoAriaLabel) {
55
+ needleWarningMessage(customLabelAndNoAriaLabelWarningMessage);
56
+ }
57
+ }, [ariaLabel, label, type, hasCustomLabelAndNoAriaLabel]);
51
58
  const containerWrappingClass = classnames(`ndl-form-item ndl-type-${type}`, {
52
- disabled: otherInputProps.disabled,
59
+ 'ndl-disabled': otherInputProps.disabled,
53
60
  });
54
- const labelWrappingClass = classnames(`form-item-label`, {
55
- fluid,
56
- 'label-before': labelBefore,
61
+ const labelWrappingClass = classnames(`ndl-form-item-label`, {
62
+ 'ndl-fluid': fluid,
63
+ 'ndl-label-before': labelBefore,
57
64
  });
58
- return (_jsx("div", Object.assign({ className: containerWrappingClass }, { children: _jsxs("label", Object.assign({ className: labelWrappingClass }, { children: [_jsx("input", Object.assign({ "aria-label": ariaLabel }, otherInputProps, { ref: ref, type: type })), label && (_jsx("span", Object.assign({ title: label, className: "form-label-text" }, { children: label })))] })) })));
65
+ return (_jsx("div", Object.assign({ className: containerWrappingClass }, { children: _jsxs("label", Object.assign({ className: labelWrappingClass }, { children: [_jsx("input", Object.assign({ "aria-label": ariaLabel }, otherInputProps, { ref: ref, type: type })), isLabel ? (_jsx("span", Object.assign({ title: label, className: "ndl-form-label-text" }, { children: label }))) : (label)] })) })));
59
66
  };
60
67
  export default forwardRef(RadioAndCheckboxWrapper);
61
68
  //# sourceMappingURL=RadioAndCheckboxWrapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioAndCheckboxWrapper.js","sourceRoot":"","sources":["../../../../src/_common/input/RadioAndCheckboxWrapper.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAgB,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAkBhD,qCAAqC;AAErC;;;;;;GAMG;AAEH,MAAM,uBAAuB,GAAG,CAC9B,KAA4B,EAC5B,GAAmC,EACnC,EAAE;IACF,MAAM,EACJ,KAAK,EACL,KAAK,EACL,WAAW,EACX,IAAI,GAAG,MAAM,EACb,YAAY,EAAE,SAAS,KAErB,KAAK,EADJ,eAAe,UAChB,KAAK,EAPH,uDAOL,CAAQ,CAAC;IAEV,OAAO,CAAC,GAAG,EAAE;QACX,IAAI,CAAC,KAAK,IAAI,CAAC,SAAS,EAAE;YACxB,oBAAoB,CAClB,GAAG,IAAI,4KAA4K,CACpL,CAAC;SACH;IACH,CAAC,EAAE,CAAC,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;IAE7B,MAAM,sBAAsB,GAAG,UAAU,CAAC,0BAA0B,IAAI,EAAE,EAAE;QAC1E,QAAQ,EAAE,eAAe,CAAC,QAAQ;KACnC,CAAC,CAAC;IAEH,MAAM,kBAAkB,GAAG,UAAU,CAAC,iBAAiB,EAAE;QACvD,KAAK;QACL,cAAc,EAAE,WAAW;KAC5B,CAAC,CAAC;IAEH,OAAO,CACL,4BAAK,SAAS,EAAE,sBAAsB,gBAGpC,+BAAO,SAAS,EAAE,kBAAkB,iBAClC,4CACc,SAAS,IACjB,eAAe,IACnB,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,IACV,EAED,KAAK,IAAI,CACR,6BAAM,KAAK,EAAE,KAAK,EAAE,SAAS,EAAC,iBAAiB,gBAC5C,KAAK,IACD,CACR,KACK,IACJ,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC,uBAAuB,CAAC,CAAC"}
1
+ {"version":3,"file":"RadioAndCheckboxWrapper.js","sourceRoot":"","sources":["../../../../src/_common/input/RadioAndCheckboxWrapper.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAgB,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAoBhD,qCAAqC;AAErC;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,uCAAuC,GAClD,iLAAiL,CAAC;AAEpL,MAAM,uBAAuB,GAAG,CAC9B,KAA4B,EAC5B,GAAmC,EACnC,EAAE;IACF,MAAM,EACJ,KAAK,EACL,KAAK,EACL,WAAW,EACX,IAAI,GAAG,MAAM,EACb,YAAY,EAAE,SAAS,KAErB,KAAK,E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"react/jsx-runtime";
32
32
  */
33
33
  import classnames from 'classnames';
34
34
  import React, { useEffect } from 'react';
35
- import { HeroIcon } from '../icons';
35
+ import { CheckCircleIconSolid, ExclamationCircleIconSolid, ExclamationTriangleIconSolid, InformationCircleIconSolid, XMarkIconOutline, } from '../icons';
36
36
  import { needleWarningMessage } from '../_common/utils';
37
37
  /**
38
38
  *
@@ -45,24 +45,24 @@ const getStatusIcon = (iconType) => {
45
45
  let iconComponent;
46
46
  switch (iconType) {
47
47
  case 'success':
48
- iconComponent = _jsx(HeroIcon, { iconName: "CheckCircleIcon", type: "solid" });
48
+ iconComponent = _jsx(CheckCircleIconSolid, {});
49
49
  break;
50
50
  case 'warning':
51
- iconComponent = _jsx(HeroIcon, { iconName: "ExclamationIcon", type: "solid" });
51
+ iconComponent = _jsx(ExclamationTriangleIconSolid, {});
52
52
  break;
53
53
  case 'danger':
54
- iconComponent = (_jsx(HeroIcon, { iconName: "ExclamationCircleIcon", type: "solid" }));
54
+ iconComponent = _jsx(ExclamationCircleIconSolid, {});
55
55
  break;
56
56
  default:
57
- iconComponent = (_jsx(HeroIcon, { iconName: "InformationCircleIcon", type: "solid" }));
57
+ iconComponent = _jsx(InformationCircleIconSolid, {});
58
58
  }
59
- return _jsx("div", Object.assign({ className: "alert-icon alert-status-icon" }, { children: iconComponent }));
59
+ return (_jsx("div", Object.assign({ className: "ndl-alert-icon ndl-alert-status-icon" }, { children: iconComponent })));
60
60
  };
61
61
  export const AlertAction = (_a) => {
62
62
  var { label } = _a, props = __rest(_a, ["label"]);
63
63
  return _jsx("a", Object.assign({}, props, { children: label }));
64
64
  };
65
- const Alert = React.forwardRef(function Alert(_a, ref) {
65
+ export const Alert = React.forwardRef(function Alert(_a, ref) {
66
66
  var { type = 'info', icon = false, title, name, actions = [], floating = false, description = null, onClose, className = '', children = null, closeable = false } = _a, rest = __rest(_a, ["type", "icon", "title", "name", "actions", "floating", "description", "onClose", "className", "children", "closeable"]);
67
67
  useEffect(() => {
68
68
  if (typeof title !== 'string' && !name && closeable) {
@@ -72,13 +72,13 @@ const Alert = React.forwardRef(function Alert(_a, ref) {
72
72
  if (typeof title === 'string' && !name) {
73
73
  name = title;
74
74
  }
75
- const classes = classnames(`ndl-alert`, {
76
- ['with-description']: description,
77
- ['info']: type === 'info',
78
- ['success']: type === 'success',
79
- ['warning']: type === 'warning',
80
- ['danger']: type === 'danger',
81
- ['floating']: floating,
75
+ const classes = classnames('ndl-alert', {
76
+ 'ndl-with-description': description,
77
+ 'ndl-info': type === 'info',
78
+ 'ndl-success': type === 'success',
79
+ 'ndl-warning': type === 'warning',
80
+ 'ndl-danger': type === 'danger',
81
+ 'ndl-floating': floating,
82
82
  [className]: className && className !== '',
83
83
  });
84
84
  const handleClose = (e) => {
@@ -86,7 +86,7 @@ const Alert = React.forwardRef(function Alert(_a, ref) {
86
86
  onClose(e);
87
87
  }
88
88
  };
89
- return (_jsxs("div", Object.assign({ className: classes, role: closeable ? 'alertdialog' : 'alert' }, rest, { title: name, ref: ref }, { children: [icon && getStatusIcon(type), _jsxs("div", Object.assign({ className: "alert-content" }, { children: [title && _jsx("h6", Object.assign({ className: "alert-title" }, { children: title })), (description || children) && (_jsx("div", Object.assign({ className: "alert-description" }, { children: children || description }))), actions && actions.length > 0 && (_jsx("div", Object.assign({ className: "alert-actions" }, { children: actions.map((action, index) => (_jsx(AlertAction, Object.assign({}, action), index))) })))] })), closeable && (_jsx("div", Object.assign({ tabIndex: 0, role: "button", className: "alert-icon close-icon", onKeyDown: handleClose, onClick: handleClose, "aria-label": "close-alert" }, { children: _jsx(HeroIcon, { iconName: "XIcon" }) })))] })));
89
+ return (_jsxs("div", Object.assign({ className: classes, role: closeable ? 'alertdialog' : 'alert' }, rest, { title: name, ref: ref }, { children: [icon && getStatusIcon(type), _jsxs("div", Object.assign({ className: "ndl-alert-content" }, { children: [title && _jsx("h6", Object.assign({ className: "ndl-alert-title" }, { children: title })), (description || children) && (_jsx("div", Object.assign({ className: "ndl-alert-description" }, { children: children || description }))), actions && actions.length > 0 && (_jsx("div", Object.assign({ className: "ndl-alert-actions" }, { children: actions.map((action, index) => (_jsx(AlertAction, Object.assign({}, action), index))) })))] })), closeable && (_jsx("div", Object.assign({ tabIndex: 0, role: "button", className: "ndl-alert-icon ndl-close-icon", onKeyDown: handleClose, onClick: handleClose, "aria-label": "close-alert" }, { children: _jsx(XMarkIconOutline, {}) })))] })));
90
90
  });
91
91
  export default Alert;
92
92
  //# sourceMappingURL=Alert.js.map