@neo4j-ndl/react 0.1.1 → 0.1.4

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 (356) hide show
  1. package/lib/cjs/alert/Alert.js +102 -0
  2. package/lib/cjs/alert/Alert.js.map +1 -0
  3. package/lib/{alert → cjs/alert}/index.js +6 -10
  4. package/lib/cjs/alert/index.js.map +1 -0
  5. package/lib/cjs/button/Button.js +116 -0
  6. package/lib/cjs/button/Button.js.map +1 -0
  7. package/lib/{button → cjs/button}/index.js +1 -1
  8. package/lib/cjs/button/index.js.map +1 -0
  9. package/lib/{checkbox → cjs/checkbox}/Checkbox.js +10 -20
  10. package/lib/cjs/checkbox/Checkbox.js.map +1 -0
  11. package/lib/{checkbox → cjs/checkbox}/index.js +5 -9
  12. package/lib/cjs/checkbox/index.js.map +1 -0
  13. package/lib/{context-menu → cjs/context-menu}/ContextMenu.js +78 -94
  14. package/lib/cjs/context-menu/ContextMenu.js.map +1 -0
  15. package/lib/{context-menu → cjs/context-menu}/index.js +1 -1
  16. package/lib/cjs/context-menu/index.js.map +1 -0
  17. package/lib/{helpers → cjs/helpers}/debounce.js +7 -13
  18. package/lib/cjs/helpers/debounce.js.map +1 -0
  19. package/lib/cjs/helpers/forwardRef.js +26 -0
  20. package/lib/cjs/helpers/forwardRef.js.map +1 -0
  21. package/lib/{helpers → cjs/helpers}/index.js +2 -1
  22. package/lib/cjs/helpers/index.js.map +1 -0
  23. package/lib/cjs/helpers/testing.js +46 -0
  24. package/lib/cjs/helpers/testing.js.map +1 -0
  25. package/lib/{helpers → cjs/helpers}/types.js +1 -1
  26. package/lib/cjs/helpers/types.js.map +1 -0
  27. package/lib/{icons → cjs/icons}/Custom.js +29 -42
  28. package/lib/cjs/icons/Custom.js.map +1 -0
  29. package/lib/cjs/icons/Hero.js +55 -0
  30. package/lib/cjs/icons/Hero.js.map +1 -0
  31. package/lib/cjs/icons/custom/Circle.js +6 -0
  32. package/lib/cjs/icons/custom/Circle.js.map +1 -0
  33. package/lib/cjs/icons/custom/DatabaseAddCircle.js +6 -0
  34. package/lib/cjs/icons/custom/DatabaseAddCircle.js.map +1 -0
  35. package/lib/cjs/icons/custom/Drag.js +6 -0
  36. package/lib/cjs/icons/custom/Drag.js.map +1 -0
  37. package/lib/cjs/icons/custom/Expand.js +6 -0
  38. package/lib/cjs/icons/custom/Expand.js.map +1 -0
  39. package/lib/cjs/icons/custom/ExternalLink.js +6 -0
  40. package/lib/cjs/icons/custom/ExternalLink.js.map +1 -0
  41. package/lib/cjs/icons/custom/FitToScreen.js +6 -0
  42. package/lib/cjs/icons/custom/FitToScreen.js.map +1 -0
  43. package/lib/cjs/icons/custom/FolderBookmark.js +6 -0
  44. package/lib/cjs/icons/custom/FolderBookmark.js.map +1 -0
  45. package/lib/cjs/icons/custom/Heirarchy2.js +6 -0
  46. package/lib/cjs/icons/custom/Heirarchy2.js.map +1 -0
  47. package/lib/cjs/icons/custom/Hierarchy1.js +6 -0
  48. package/lib/cjs/icons/custom/Hierarchy1.js.map +1 -0
  49. package/lib/cjs/icons/custom/Pin.js +6 -0
  50. package/lib/cjs/icons/custom/Pin.js.map +1 -0
  51. package/lib/cjs/icons/custom/Presentation.js +6 -0
  52. package/lib/cjs/icons/custom/Presentation.js.map +1 -0
  53. package/lib/cjs/icons/custom/Rhombus.js +6 -0
  54. package/lib/cjs/icons/custom/Rhombus.js.map +1 -0
  55. package/lib/cjs/icons/custom/Shrink.js +6 -0
  56. package/lib/cjs/icons/custom/Shrink.js.map +1 -0
  57. package/lib/cjs/icons/custom/Text.js +6 -0
  58. package/lib/cjs/icons/custom/Text.js.map +1 -0
  59. package/lib/cjs/icons/custom/Triangle.js +6 -0
  60. package/lib/cjs/icons/custom/Triangle.js.map +1 -0
  61. package/lib/cjs/icons/custom/index.js +57 -0
  62. package/lib/cjs/icons/custom/index.js.map +1 -0
  63. package/lib/{icons → cjs/icons}/index.js +6 -10
  64. package/lib/cjs/icons/index.js.map +1 -0
  65. package/lib/{index.js → cjs/index.js} +2 -1
  66. package/lib/cjs/index.js.map +1 -0
  67. package/lib/cjs/input/Input.js +60 -0
  68. package/lib/cjs/input/Input.js.map +1 -0
  69. package/lib/{input → cjs/input}/index.js +5 -9
  70. package/lib/cjs/input/index.js.map +1 -0
  71. package/lib/cjs/label/Label.js +103 -0
  72. package/lib/cjs/label/Label.js.map +1 -0
  73. package/lib/{label → cjs/label}/index.js +5 -9
  74. package/lib/cjs/label/index.js.map +1 -0
  75. package/lib/{loading-spinner → cjs/loading-spinner}/LoadingSpinner.js +23 -34
  76. package/lib/cjs/loading-spinner/LoadingSpinner.js.map +1 -0
  77. package/lib/{loading-spinner → cjs/loading-spinner}/index.js +5 -9
  78. package/lib/cjs/loading-spinner/index.js.map +1 -0
  79. package/lib/{popover → cjs/popover}/Popover.js +81 -96
  80. package/lib/cjs/popover/Popover.js.map +1 -0
  81. package/lib/{popover → cjs/popover}/index.js +1 -1
  82. package/lib/cjs/popover/index.js.map +1 -0
  83. package/lib/cjs/progress-bar/ProgressBar.js +46 -0
  84. package/lib/cjs/progress-bar/ProgressBar.js.map +1 -0
  85. package/lib/{progress-bar → cjs/progress-bar}/index.js +5 -9
  86. package/lib/cjs/progress-bar/index.js.map +1 -0
  87. package/lib/{radio → cjs/radio}/Radio.js +10 -20
  88. package/lib/cjs/radio/Radio.js.map +1 -0
  89. package/lib/{radio → cjs/radio}/index.js +5 -9
  90. package/lib/cjs/radio/index.js.map +1 -0
  91. package/lib/{switch → cjs/switch}/Switch.js +10 -20
  92. package/lib/cjs/switch/Switch.js.map +1 -0
  93. package/lib/{switch → cjs/switch}/index.js +5 -9
  94. package/lib/cjs/switch/index.js.map +1 -0
  95. package/lib/cjs/tabs/Tabs.js +101 -0
  96. package/lib/cjs/tabs/Tabs.js.map +1 -0
  97. package/lib/{tabs → cjs/tabs}/index.js +1 -1
  98. package/lib/cjs/tabs/index.js.map +1 -0
  99. package/lib/{tag → cjs/tag}/Tag.js +25 -38
  100. package/lib/cjs/tag/Tag.js.map +1 -0
  101. package/lib/{tag → cjs/tag}/index.js +5 -9
  102. package/lib/cjs/tag/index.js.map +1 -0
  103. package/lib/{tooltip → cjs/tooltip}/Tooltip.js +23 -35
  104. package/lib/cjs/tooltip/Tooltip.js.map +1 -0
  105. package/lib/{tooltip → cjs/tooltip}/index.js +5 -9
  106. package/lib/cjs/tooltip/index.js.map +1 -0
  107. package/lib/{icons/Hero.js → cjs/view-selector/ViewSelector.js} +49 -52
  108. package/lib/cjs/view-selector/ViewSelector.js.map +1 -0
  109. package/lib/{view-selector → cjs/view-selector}/index.js +1 -1
  110. package/lib/cjs/view-selector/index.js.map +1 -0
  111. package/lib/esm/alert/Alert.js +95 -0
  112. package/lib/esm/alert/Alert.js.map +1 -0
  113. package/lib/esm/alert/index.js +22 -0
  114. package/lib/esm/alert/index.js.map +1 -0
  115. package/lib/esm/button/Button.js +108 -0
  116. package/lib/esm/button/Button.js.map +1 -0
  117. package/lib/esm/button/index.js +22 -0
  118. package/lib/esm/button/index.js.map +1 -0
  119. package/lib/esm/checkbox/Checkbox.js +47 -0
  120. package/lib/esm/checkbox/Checkbox.js.map +1 -0
  121. package/lib/esm/checkbox/index.js +22 -0
  122. package/lib/esm/checkbox/index.js.map +1 -0
  123. package/lib/esm/context-menu/ContextMenu.js +189 -0
  124. package/lib/esm/context-menu/ContextMenu.js.map +1 -0
  125. package/lib/esm/context-menu/index.js +22 -0
  126. package/lib/esm/context-menu/index.js.map +1 -0
  127. package/lib/esm/helpers/debounce.js +37 -0
  128. package/lib/esm/helpers/debounce.js.map +1 -0
  129. package/lib/esm/helpers/forwardRef.js +23 -0
  130. package/lib/esm/helpers/forwardRef.js.map +1 -0
  131. package/lib/esm/helpers/index.js +24 -0
  132. package/lib/esm/helpers/index.js.map +1 -0
  133. package/lib/esm/helpers/testing.js +42 -0
  134. package/lib/esm/helpers/testing.js.map +1 -0
  135. package/lib/esm/helpers/types.js +22 -0
  136. package/lib/esm/helpers/types.js.map +1 -0
  137. package/lib/esm/icons/Custom.js +41 -0
  138. package/lib/esm/icons/Custom.js.map +1 -0
  139. package/lib/esm/icons/Hero.js +33 -0
  140. package/lib/esm/icons/Hero.js.map +1 -0
  141. package/lib/esm/icons/custom/Circle.js +4 -0
  142. package/lib/esm/icons/custom/Circle.js.map +1 -0
  143. package/lib/esm/icons/custom/DatabaseAddCircle.js +4 -0
  144. package/lib/esm/icons/custom/DatabaseAddCircle.js.map +1 -0
  145. package/lib/esm/icons/custom/Drag.js +4 -0
  146. package/lib/esm/icons/custom/Drag.js.map +1 -0
  147. package/lib/esm/icons/custom/Expand.js +4 -0
  148. package/lib/esm/icons/custom/Expand.js.map +1 -0
  149. package/lib/esm/icons/custom/ExternalLink.js +4 -0
  150. package/lib/esm/icons/custom/ExternalLink.js.map +1 -0
  151. package/lib/esm/icons/custom/FitToScreen.js +4 -0
  152. package/lib/esm/icons/custom/FitToScreen.js.map +1 -0
  153. package/lib/esm/icons/custom/FolderBookmark.js +4 -0
  154. package/lib/esm/icons/custom/FolderBookmark.js.map +1 -0
  155. package/lib/esm/icons/custom/Heirarchy2.js +4 -0
  156. package/lib/esm/icons/custom/Heirarchy2.js.map +1 -0
  157. package/lib/esm/icons/custom/Hierarchy1.js +4 -0
  158. package/lib/esm/icons/custom/Hierarchy1.js.map +1 -0
  159. package/lib/esm/icons/custom/Pin.js +4 -0
  160. package/lib/esm/icons/custom/Pin.js.map +1 -0
  161. package/lib/esm/icons/custom/Presentation.js +4 -0
  162. package/lib/esm/icons/custom/Presentation.js.map +1 -0
  163. package/lib/esm/icons/custom/Rhombus.js +4 -0
  164. package/lib/esm/icons/custom/Rhombus.js.map +1 -0
  165. package/lib/esm/icons/custom/Shrink.js +4 -0
  166. package/lib/esm/icons/custom/Shrink.js.map +1 -0
  167. package/lib/esm/icons/custom/Text.js +4 -0
  168. package/lib/esm/icons/custom/Text.js.map +1 -0
  169. package/lib/esm/icons/custom/Triangle.js +4 -0
  170. package/lib/esm/icons/custom/Triangle.js.map +1 -0
  171. package/lib/esm/icons/custom/index.js +36 -0
  172. package/lib/esm/icons/custom/index.js.map +1 -0
  173. package/lib/esm/icons/index.js +23 -0
  174. package/lib/esm/icons/index.js.map +1 -0
  175. package/lib/esm/index.js +35 -0
  176. package/lib/esm/index.js.map +1 -0
  177. package/lib/esm/input/Input.js +55 -0
  178. package/lib/esm/input/Input.js.map +1 -0
  179. package/lib/esm/input/index.js +22 -0
  180. package/lib/esm/input/index.js.map +1 -0
  181. package/lib/esm/label/Label.js +97 -0
  182. package/lib/esm/label/Label.js.map +1 -0
  183. package/lib/esm/label/index.js +22 -0
  184. package/lib/esm/label/index.js.map +1 -0
  185. package/lib/esm/loading-spinner/LoadingSpinner.js +48 -0
  186. package/lib/esm/loading-spinner/LoadingSpinner.js.map +1 -0
  187. package/lib/esm/loading-spinner/index.js +22 -0
  188. package/lib/esm/loading-spinner/index.js.map +1 -0
  189. package/lib/esm/popover/Popover.js +184 -0
  190. package/lib/esm/popover/Popover.js.map +1 -0
  191. package/lib/esm/popover/index.js +22 -0
  192. package/lib/esm/popover/index.js.map +1 -0
  193. package/lib/esm/progress-bar/ProgressBar.js +41 -0
  194. package/lib/esm/progress-bar/ProgressBar.js.map +1 -0
  195. package/lib/esm/progress-bar/index.js +22 -0
  196. package/lib/esm/progress-bar/index.js.map +1 -0
  197. package/lib/esm/radio/Radio.js +43 -0
  198. package/lib/esm/radio/Radio.js.map +1 -0
  199. package/lib/esm/radio/index.js +22 -0
  200. package/lib/esm/radio/index.js.map +1 -0
  201. package/lib/esm/switch/Switch.js +43 -0
  202. package/lib/esm/switch/Switch.js.map +1 -0
  203. package/lib/esm/switch/index.js +22 -0
  204. package/lib/esm/switch/index.js.map +1 -0
  205. package/lib/esm/tabs/Tabs.js +76 -0
  206. package/lib/esm/tabs/Tabs.js.map +1 -0
  207. package/lib/esm/tabs/index.js +22 -0
  208. package/lib/esm/tabs/index.js.map +1 -0
  209. package/lib/esm/tag/Tag.js +62 -0
  210. package/lib/esm/tag/Tag.js.map +1 -0
  211. package/lib/esm/tag/index.js +22 -0
  212. package/lib/esm/tag/index.js.map +1 -0
  213. package/lib/esm/tooltip/Tooltip.js +41 -0
  214. package/lib/esm/tooltip/Tooltip.js.map +1 -0
  215. package/lib/esm/tooltip/index.js +22 -0
  216. package/lib/esm/tooltip/index.js.map +1 -0
  217. package/lib/esm/view-selector/ViewSelector.js +60 -0
  218. package/lib/esm/view-selector/ViewSelector.js.map +1 -0
  219. package/lib/esm/view-selector/index.js +22 -0
  220. package/lib/esm/view-selector/index.js.map +1 -0
  221. package/lib/{alert → types/alert}/Alert.d.ts +0 -0
  222. package/lib/{alert → types/alert}/index.d.ts +0 -0
  223. package/lib/{button → types/button}/Button.d.ts +0 -0
  224. package/lib/{button → types/button}/index.d.ts +0 -0
  225. package/lib/{checkbox → types/checkbox}/Checkbox.d.ts +0 -0
  226. package/lib/{checkbox → types/checkbox}/index.d.ts +0 -0
  227. package/lib/{context-menu → types/context-menu}/ContextMenu.d.ts +0 -0
  228. package/lib/{context-menu → types/context-menu}/index.d.ts +0 -0
  229. package/lib/{helpers → types/helpers}/debounce.d.ts +0 -0
  230. package/lib/types/helpers/forwardRef.d.ts +24 -0
  231. package/lib/{helpers → types/helpers}/index.d.ts +1 -0
  232. package/lib/{helpers → types/helpers}/testing.d.ts +0 -0
  233. package/lib/{helpers → types/helpers}/types.d.ts +0 -0
  234. package/lib/types/icons/Custom.d.ts +27 -0
  235. package/lib/types/icons/Hero.d.ts +28 -0
  236. package/lib/{icons → types/icons}/custom/Circle.d.ts +0 -0
  237. package/lib/{icons → types/icons}/custom/DatabaseAddCircle.d.ts +0 -0
  238. package/lib/{icons → types/icons}/custom/Drag.d.ts +0 -0
  239. package/lib/{icons → types/icons}/custom/Expand.d.ts +0 -0
  240. package/lib/{icons → types/icons}/custom/ExternalLink.d.ts +0 -0
  241. package/lib/{icons → types/icons}/custom/FitToScreen.d.ts +0 -0
  242. package/lib/{icons → types/icons}/custom/FolderBookmark.d.ts +0 -0
  243. package/lib/{icons → types/icons}/custom/Heirarchy2.d.ts +0 -0
  244. package/lib/{icons → types/icons}/custom/Hierarchy1.d.ts +0 -0
  245. package/lib/{icons → types/icons}/custom/Pin.d.ts +0 -0
  246. package/lib/{icons → types/icons}/custom/Presentation.d.ts +0 -0
  247. package/lib/{icons → types/icons}/custom/Rhombus.d.ts +0 -0
  248. package/lib/{icons → types/icons}/custom/Shrink.d.ts +0 -0
  249. package/lib/{icons → types/icons}/custom/Text.d.ts +0 -0
  250. package/lib/{icons → types/icons}/custom/Triangle.d.ts +0 -0
  251. package/lib/{icons → types/icons}/custom/index.d.ts +0 -0
  252. package/lib/{icons → types/icons}/index.d.ts +0 -0
  253. package/lib/{index.d.ts → types/index.d.ts} +1 -0
  254. package/lib/{input → types/input}/Input.d.ts +0 -0
  255. package/lib/{input → types/input}/index.d.ts +0 -0
  256. package/lib/{label → types/label}/Label.d.ts +2 -2
  257. package/lib/{label → types/label}/index.d.ts +0 -0
  258. package/lib/{loading-spinner → types/loading-spinner}/LoadingSpinner.d.ts +0 -0
  259. package/lib/{loading-spinner → types/loading-spinner}/index.d.ts +0 -0
  260. package/lib/{popover → types/popover}/Popover.d.ts +0 -0
  261. package/lib/{popover → types/popover}/index.d.ts +0 -0
  262. package/lib/{progress-bar → types/progress-bar}/ProgressBar.d.ts +0 -0
  263. package/lib/{progress-bar → types/progress-bar}/index.d.ts +0 -0
  264. package/lib/{radio → types/radio}/Radio.d.ts +0 -0
  265. package/lib/{radio → types/radio}/index.d.ts +0 -0
  266. package/lib/{switch → types/switch}/Switch.d.ts +0 -0
  267. package/lib/{switch → types/switch}/index.d.ts +0 -0
  268. package/lib/{tabs → types/tabs}/Tabs.d.ts +0 -0
  269. package/lib/{tabs → types/tabs}/index.d.ts +0 -0
  270. package/lib/{tag → types/tag}/Tag.d.ts +0 -0
  271. package/lib/{tag → types/tag}/index.d.ts +0 -0
  272. package/lib/{tooltip → types/tooltip}/Tooltip.d.ts +0 -0
  273. package/lib/{tooltip → types/tooltip}/index.d.ts +0 -0
  274. package/lib/{view-selector → types/view-selector}/ViewSelector.d.ts +2 -2
  275. package/lib/{view-selector → types/view-selector}/index.d.ts +0 -0
  276. package/package.json +16 -8
  277. package/lib/alert/Alert.js +0 -121
  278. package/lib/alert/Alert.js.map +0 -1
  279. package/lib/alert/index.js.map +0 -1
  280. package/lib/button/Button.js +0 -112
  281. package/lib/button/Button.js.map +0 -1
  282. package/lib/button/index.js.map +0 -1
  283. package/lib/checkbox/Checkbox.js.map +0 -1
  284. package/lib/checkbox/index.js.map +0 -1
  285. package/lib/context-menu/ContextMenu.js.map +0 -1
  286. package/lib/context-menu/index.js.map +0 -1
  287. package/lib/helpers/debounce.js.map +0 -1
  288. package/lib/helpers/index.js.map +0 -1
  289. package/lib/helpers/testing.js +0 -81
  290. package/lib/helpers/testing.js.map +0 -1
  291. package/lib/helpers/types.js.map +0 -1
  292. package/lib/icons/Custom.d.ts +0 -27
  293. package/lib/icons/Custom.js.map +0 -1
  294. package/lib/icons/Hero.d.ts +0 -28
  295. package/lib/icons/Hero.js.map +0 -1
  296. package/lib/icons/custom/Circle.js +0 -57
  297. package/lib/icons/custom/Circle.js.map +0 -1
  298. package/lib/icons/custom/DatabaseAddCircle.js +0 -57
  299. package/lib/icons/custom/DatabaseAddCircle.js.map +0 -1
  300. package/lib/icons/custom/Drag.js +0 -62
  301. package/lib/icons/custom/Drag.js.map +0 -1
  302. package/lib/icons/custom/Expand.js +0 -57
  303. package/lib/icons/custom/Expand.js.map +0 -1
  304. package/lib/icons/custom/ExternalLink.js +0 -57
  305. package/lib/icons/custom/ExternalLink.js.map +0 -1
  306. package/lib/icons/custom/FitToScreen.js +0 -57
  307. package/lib/icons/custom/FitToScreen.js.map +0 -1
  308. package/lib/icons/custom/FolderBookmark.js +0 -57
  309. package/lib/icons/custom/FolderBookmark.js.map +0 -1
  310. package/lib/icons/custom/Heirarchy2.js +0 -57
  311. package/lib/icons/custom/Heirarchy2.js.map +0 -1
  312. package/lib/icons/custom/Hierarchy1.js +0 -57
  313. package/lib/icons/custom/Hierarchy1.js.map +0 -1
  314. package/lib/icons/custom/Pin.js +0 -57
  315. package/lib/icons/custom/Pin.js.map +0 -1
  316. package/lib/icons/custom/Presentation.js +0 -57
  317. package/lib/icons/custom/Presentation.js.map +0 -1
  318. package/lib/icons/custom/Rhombus.js +0 -57
  319. package/lib/icons/custom/Rhombus.js.map +0 -1
  320. package/lib/icons/custom/Shrink.js +0 -57
  321. package/lib/icons/custom/Shrink.js.map +0 -1
  322. package/lib/icons/custom/Text.js +0 -57
  323. package/lib/icons/custom/Text.js.map +0 -1
  324. package/lib/icons/custom/Triangle.js +0 -57
  325. package/lib/icons/custom/Triangle.js.map +0 -1
  326. package/lib/icons/custom/index.js +0 -61
  327. package/lib/icons/custom/index.js.map +0 -1
  328. package/lib/icons/index.js.map +0 -1
  329. package/lib/index.js.map +0 -1
  330. package/lib/input/Input.js +0 -92
  331. package/lib/input/Input.js.map +0 -1
  332. package/lib/input/index.js.map +0 -1
  333. package/lib/label/Label.js +0 -103
  334. package/lib/label/Label.js.map +0 -1
  335. package/lib/label/index.js.map +0 -1
  336. package/lib/loading-spinner/LoadingSpinner.js.map +0 -1
  337. package/lib/loading-spinner/index.js.map +0 -1
  338. package/lib/popover/Popover.js.map +0 -1
  339. package/lib/popover/index.js.map +0 -1
  340. package/lib/progress-bar/ProgressBar.js +0 -64
  341. package/lib/progress-bar/ProgressBar.js.map +0 -1
  342. package/lib/progress-bar/index.js.map +0 -1
  343. package/lib/radio/Radio.js.map +0 -1
  344. package/lib/radio/index.js.map +0 -1
  345. package/lib/switch/Switch.js.map +0 -1
  346. package/lib/switch/index.js.map +0 -1
  347. package/lib/tabs/Tabs.js +0 -114
  348. package/lib/tabs/Tabs.js.map +0 -1
  349. package/lib/tabs/index.js.map +0 -1
  350. package/lib/tag/Tag.js.map +0 -1
  351. package/lib/tag/index.js.map +0 -1
  352. package/lib/tooltip/Tooltip.js.map +0 -1
  353. package/lib/tooltip/index.js.map +0 -1
  354. package/lib/view-selector/ViewSelector.js +0 -95
  355. package/lib/view-selector/ViewSelector.js.map +0 -1
  356. package/lib/view-selector/index.js.map +0 -1
@@ -0,0 +1,62 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ /**
14
+ *
15
+ * Copyright (c) "Neo4j"
16
+ * Neo4j Sweden AB [http://neo4j.com]
17
+ *
18
+ * This file is part of Neo4j.
19
+ *
20
+ * Neo4j is free software: you can redistribute it and/or modify
21
+ * it under the terms of the GNU General Public License as published by
22
+ * the Free Software Foundation, either version 3 of the License, or
23
+ * (at your option) any later version.
24
+ *
25
+ * This program is distributed in the hope that it will be useful,
26
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
27
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28
+ * GNU General Public License for more details.
29
+ *
30
+ * You should have received a copy of the GNU General Public License
31
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
32
+ */
33
+ import React from 'react';
34
+ import classnames from 'classnames';
35
+ import { HeroIcon } from '../icons';
36
+ /**
37
+ *
38
+ *
39
+ * Helpers
40
+ *
41
+ *
42
+ */
43
+ /** Add any helper functions here. */
44
+ /**
45
+ *
46
+ *
47
+ * Tag Component
48
+ *
49
+ *
50
+ */
51
+ const Tag = React.forwardRef(function Tag(props, ref) {
52
+ const { children, type = 'default', removeable, onRemove } = props, rest = __rest(props, ["children", "type", "removeable", "onRemove"]);
53
+ if (removeable && typeof onRemove !== 'function') {
54
+ console.error('Tag element is removable but onRemove prop is not a function or provided');
55
+ }
56
+ const classes = classnames(`ndl-tag`, type, {
57
+ removeable: removeable,
58
+ });
59
+ return (_jsxs("div", Object.assign({}, rest, { className: classes, ref: ref }, { children: [children, removeable && (_jsx("button", Object.assign({ type: "button", className: "remove-icon", onClick: onRemove }, { children: _jsx(HeroIcon, { iconName: "XIcon" }, void 0) }), void 0))] }), void 0));
60
+ });
61
+ export default Tag;
62
+ //# sourceMappingURL=Tag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tag.js","sourceRoot":"","sources":["../../../src/tag/Tag.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAgCpC;;;;;;GAMG;AAEH,qCAAqC;AAErC;;;;;;GAMG;AAEH,MAAM,GAAG,GAAG,KAAK,CAAC,UAAU,CAAC,SAAS,GAAG,CACvC,KAAe,EACf,GAAuC;IAEvC,MAAM,EAAE,QAAQ,EAAE,IAAI,GAAG,SAAS,EAAE,UAAU,EAAE,QAAQ,KAAc,KAAK,EAAd,IAAI,UAAK,KAAK,EAArE,8CAA6D,CAAQ,CAAC;IAE5E,IAAI,UAAU,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE;QAChD,OAAO,CAAC,KAAK,CACX,0EAA0E,CAC3E,CAAC;KACH;IAED,MAAM,OAAO,GAAG,UAAU,CAAC,SAAS,EAAE,IAAI,EAAE;QAC1C,UAAU,EAAE,UAAU;KACvB,CAAC,CAAC;IAEH,OAAO,CACL,+BAAS,IAAI,IAAE,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,iBACxC,QAAQ,EACR,UAAU,IAAI,CACb,+BAAQ,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,aAAa,EAAC,OAAO,EAAE,QAAQ,gBAC7D,KAAC,QAAQ,IAAC,QAAQ,EAAC,OAAO,WAAG,YACtB,CACV,aACG,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,GAAG,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ export { default as Tag } from './Tag';
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tag/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,OAAO,CAAC"}
@@ -0,0 +1,41 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ /**
14
+ *
15
+ * Copyright (c) "Neo4j"
16
+ * Neo4j Sweden AB [http://neo4j.com]
17
+ *
18
+ * This file is part of Neo4j.
19
+ *
20
+ * Neo4j is free software: you can redistribute it and/or modify
21
+ * it under the terms of the GNU General Public License as published by
22
+ * the Free Software Foundation, either version 3 of the License, or
23
+ * (at your option) any later version.
24
+ *
25
+ * This program is distributed in the hope that it will be useful,
26
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
27
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28
+ * GNU General Public License for more details.
29
+ *
30
+ * You should have received a copy of the GNU General Public License
31
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
32
+ */
33
+ import React from 'react';
34
+ import classnames from 'classnames';
35
+ const Tooltip = React.forwardRef(function Tooltip(_a, ref) {
36
+ var { arrowPosition, children, className } = _a, props = __rest(_a, ["arrowPosition", "children", "className"]);
37
+ const classes = classnames('ndl-tooltip-wrapper', className);
38
+ return (_jsxs("div", Object.assign({}, props, { role: "tooltip", className: classes, ref: ref }, { children: [children, _jsx("div", { className: `tooltip-triangle ${arrowPosition}` }, void 0)] }), void 0));
39
+ });
40
+ export default Tooltip;
41
+ //# sourceMappingURL=Tooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../../src/tooltip/Tooltip.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AAgBpC,MAAM,OAAO,GAAG,KAAK,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,UAAU,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC;IAE7D,OAAO,CACL,+BAAS,KAAK,IAAE,IAAI,EAAC,SAAS,EAAC,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,iBACxD,QAAQ,EACT,cAAK,SAAS,EAAE,oBAAoB,aAAa,EAAE,WAAI,aACnD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,OAAO,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ export { default as Tooltip } from './Tooltip';
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tooltip/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,60 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ /**
14
+ *
15
+ * Copyright (c) "Neo4j"
16
+ * Neo4j Sweden AB [http://neo4j.com]
17
+ *
18
+ * This file is part of Neo4j.
19
+ *
20
+ * Neo4j is free software: you can redistribute it and/or modify
21
+ * it under the terms of the GNU General Public License as published by
22
+ * the Free Software Foundation, either version 3 of the License, or
23
+ * (at your option) any later version.
24
+ *
25
+ * This program is distributed in the hope that it will be useful,
26
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
27
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28
+ * GNU General Public License for more details.
29
+ *
30
+ * You should have received a copy of the GNU General Public License
31
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
32
+ */
33
+ import React, { useContext } from 'react';
34
+ import classnames from 'classnames';
35
+ import { forwardRef } from '../helpers';
36
+ const ViewSelectorContext = React.createContext(null);
37
+ const useSelectorContext = () => {
38
+ const context = useContext(ViewSelectorContext);
39
+ if (context === null) {
40
+ throw new Error('View Selector used without context');
41
+ }
42
+ return context;
43
+ };
44
+ export const ViewSelector = forwardRef(function ViewSelector(_a, ref) {
45
+ var { size = 'large', icons = false, children, selected, onChange, as = 'div', className } = _a, rest = __rest(_a, ["size", "icons", "children", "selected", "onChange", "as", "className"]);
46
+ const classes = classnames(`ndl-view-selector`, size, className);
47
+ const Component = as;
48
+ return (_jsx(Component, Object.assign({}, rest, { className: classes, role: "group", ref: ref }, { children: _jsx(ViewSelectorContext.Provider, Object.assign({ value: { onChange, selected, icons } }, { children: children }), void 0) }), void 0));
49
+ });
50
+ export const ViewSelectorItem = React.forwardRef(function ViewSelectorItem(_a, ref) {
51
+ var { children, value, as = 'button', className } = _a, rest = __rest(_a, ["children", "value", "as", "className"]);
52
+ const { onChange, selected, icons } = useSelectorContext();
53
+ const isSelected = value && value === selected;
54
+ const base = classnames(`selector-${icons ? 'icon' : 'item'}`, className, {
55
+ current: value && value === selected,
56
+ });
57
+ const Component = as;
58
+ return (_jsx(Component, Object.assign({}, rest, { onClick: () => !isSelected && onChange(value), className: base, ref: ref }, { children: children }), void 0));
59
+ });
60
+ //# sourceMappingURL=ViewSelector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewSelector.js","sourceRoot":"","sources":["../../../src/view-selector/ViewSelector.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAe,UAAU,EAAE,MAAM,YAAY,CAAC;AAuCrD,MAAM,mBAAmB,GACvB,KAAK,CAAC,aAAa,CAAkC,IAAI,CAAC,CAAC;AAE7D,MAAM,kBAAkB,GAAG,GAAG,EAAE;IAC9B,MAAM,OAAO,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC;IAEhD,IAAI,OAAO,KAAK,IAAI,EAAE;QACpB,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;KACvD;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CAAC,SAAS,YAAY,CAG1D,EASuB,EACvB,GAAgC;QAVhC,EACE,IAAI,GAAG,OAAO,EACd,KAAK,GAAG,KAAK,EACb,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,EAAE,GAAG,KAAK,EACV,SAAS,OAEY,EADlB,IAAI,cART,wEASC,CADQ;IAIT,MAAM,OAAO,GAAG,UAAU,CAAC,mBAAmB,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;IAEjE,MAAM,SAAS,GAAG,EAAE,CAAC;IAErB,OAAO,CACL,KAAC,SAAS,oBAAK,IAAI,IAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAC,OAAO,EAAC,GAAG,EAAE,GAAG,gBAC5D,KAAC,mBAAmB,CAAC,QAAQ,kBAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,gBAC/D,QAAQ,YACoB,YACrB,CACb,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC,UAAU,CAAC,SAAS,gBAAgB,CACxE,EAQC,EACD,GAAG;QATH,EACE,QAAQ,EACR,KAAK,EACL,EAAE,GAAG,QAAQ,EACb,SAAS,OAIV,EAHI,IAAI,cALT,wCAMC,CADQ;IAMT,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,kBAAkB,EAAE,CAAC;IAE3D,MAAM,UAAU,GAAG,KAAK,IAAI,KAAK,KAAK,QAAQ,CAAC;IAE/C,MAAM,IAAI,GAAG,UAAU,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE;QACxE,OAAO,EAAE,KAAK,IAAI,KAAK,KAAK,QAAQ;KACrC,CAAC,CAAC;IAEH,MAAM,SAAS,GAAG,EAAE,CAAC;IAErB,OAAO,CACL,KAAC,SAAS,oBACJ,IAAI,IACR,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,UAAU,IAAI,QAAQ,CAAC,KAAK,CAAC,EAC7C,SAAS,EAAE,IAAI,EACf,GAAG,EAAE,GAAG,gBAEP,QAAQ,YACC,CACb,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ export * from './ViewSelector';
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/view-selector/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,cAAc,gBAAgB,CAAC"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,24 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ import { ForwardedRef, ReactElement, RefAttributes } from 'react';
22
+ declare type ForwardRefType = <T, P = Record<string, never>>(render: (props: P, ref: ForwardedRef<T>) => ReactElement | null) => (props: P & RefAttributes<T>) => ReactElement | null;
23
+ export declare const forwardRef: ForwardRefType;
24
+ export {};
@@ -20,3 +20,4 @@
20
20
  */
21
21
  export * from './debounce';
22
22
  export * from './types';
23
+ export * from './forwardRef';
File without changes
File without changes
@@ -0,0 +1,27 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ import React from 'react';
22
+ import * as CustomIcons from './custom/index';
23
+ declare type CustomIconNames = keyof typeof CustomIcons;
24
+ export declare const CustomIcon: (props: {
25
+ iconName: CustomIconNames;
26
+ } & React.SVGProps<SVGSVGElement> & React.RefAttributes<SVGSVGElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
27
+ export default CustomIcon;
@@ -0,0 +1,28 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ import React from 'react';
22
+ import * as SolidIcons from '@heroicons/react/solid';
23
+ declare type HeroIconNames = keyof typeof SolidIcons;
24
+ export declare const HeroIcon: (props: {
25
+ iconName: HeroIconNames;
26
+ type?: "solid" | "outline" | undefined;
27
+ } & React.SVGProps<SVGSVGElement> & React.RefAttributes<SVGSVGElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
28
+ export default HeroIcon;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -31,3 +31,4 @@ export * from './tabs';
31
31
  export * from './view-selector';
32
32
  export * from './popover';
33
33
  export * from './icons';
34
+ export * from './progress-bar';
File without changes
File without changes
@@ -19,7 +19,6 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
  import React from 'react';
22
- import { Neo4jColors } from '@neo4j-ndl/base';
23
22
  /**
24
23
  *
25
24
  *
@@ -27,11 +26,12 @@ import { Neo4jColors } from '@neo4j-ndl/base';
27
26
  *
28
27
  *
29
28
  */
29
+ export declare const LabelColors: readonly ["info", "success", "warning", "danger", "default"];
30
30
  export declare type EventTypeLabelProps = {
31
31
  /** Additional Classnames */
32
32
  className?: string;
33
33
  children: React.ReactNode | string;
34
- color?: Neo4jColors;
34
+ color?: typeof LabelColors[number];
35
35
  /** Fill type of label */
36
36
  fill?: 'filled' | 'outlined' | 'semi-filled' | 'clean';
37
37
  /** If label should have an icon */
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -19,7 +19,7 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
  import React from 'react';
22
- import { ElementBase } from 'helpers';
22
+ import { ElementBase } from '../helpers';
23
23
  /**
24
24
  *
25
25
  *
@@ -42,7 +42,7 @@ export interface ViewSelectorProps<T extends ViewSelectorID> extends ElementBase
42
42
  selected: T;
43
43
  children: React.ReactNode | string;
44
44
  }
45
- export declare const ViewSelector: React.ForwardRefExoticComponent<ViewSelectorProps<ViewSelectorID> & React.RefAttributes<unknown>>;
45
+ export declare const ViewSelector: <T extends ViewSelectorID>(props: ViewSelectorProps<T> & React.RefAttributes<unknown>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
46
46
  export declare const ViewSelectorItem: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLElement>, "ref" | "size" | "as" | "selected" | "onChange"> & {
47
47
  as?: string | React.ComponentType<any> | undefined;
48
48
  } & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-ndl/react",
3
- "version": "0.1.1",
3
+ "version": "0.1.4",
4
4
  "description": "React implementation of Neo4j Design System",
5
5
  "keywords": [
6
6
  "button",
@@ -9,9 +9,15 @@
9
9
  "author": "Neo4j Inc.",
10
10
  "homepage": "",
11
11
  "license": "GPL-3.0",
12
- "main": "./lib/index.js",
13
- "module": "./lib/index.js",
14
- "types": "./lib/index.d.ts",
12
+ "main": "./lib/cjs/index.js",
13
+ "module": "./lib/esm/index.js",
14
+ "exports": {
15
+ ".": {
16
+ "import": "./lib/esm/index.js",
17
+ "require": "./lib/cjs/index.js"
18
+ }
19
+ },
20
+ "types": "./lib/types/index.d.ts",
15
21
  "directories": {
16
22
  "lib": "lib",
17
23
  "test": "__tests__"
@@ -26,8 +32,10 @@
26
32
  "generate-component": "node ./scripts/component-generator.js",
27
33
  "pretest": "yarn run lint",
28
34
  "test": "jest",
29
- "tsc": "tsc",
30
- "build": "tsc",
35
+ "build": "yarn build:esm && yarn build:cjs && yarn build:types",
36
+ "build:esm": "tsc -p tsconfig.esm.json",
37
+ "build:cjs": "tsc -p tsconfig.cjs.json",
38
+ "build:types": "tsc -p tsconfig.types.json",
31
39
  "format": "prettier --write 'src/**/*.{js,jsx,ts,tsx}'",
32
40
  "lint": "eslint --ext .jsx,.tsx,.js,.ts src",
33
41
  "create-icons": "svgr --icon --typescript --no-svgo --replace-attr-values '#535B66=currentColor' --out-dir ./src/icons/custom -- ../base/src/icons"
@@ -58,8 +66,8 @@
58
66
  },
59
67
  "dependencies": {
60
68
  "@heroicons/react": "^1.0.5",
61
- "@neo4j-ndl/base": "^0.1.1",
69
+ "@neo4j-ndl/base": "^0.1.4",
62
70
  "classnames": "^2.3.1"
63
71
  },
64
- "gitHead": "ddd93302174a2110eef5e1e276546cb39a1fadab"
72
+ "gitHead": "13bd473ddaadf7505309bc53ade8b44deed1514f"
65
73
  }