@qoretechnologies/reqore 0.20.0 → 0.20.3

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 (469) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
  2. package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  3. package/.github/ISSUE_TEMPLATE/new-component.md +20 -0
  4. package/.github/ISSUE_TEMPLATE/visual-bug-report.md +38 -0
  5. package/dist/components/Breadcrumbs/index.d.ts +33 -0
  6. package/dist/components/Breadcrumbs/index.d.ts.map +1 -0
  7. package/dist/components/Breadcrumbs/index.js +167 -0
  8. package/dist/components/Breadcrumbs/index.js.map +1 -0
  9. package/dist/components/Breadcrumbs/item.d.ts +14 -0
  10. package/dist/components/Breadcrumbs/item.d.ts.map +1 -0
  11. package/dist/components/Breadcrumbs/item.js +84 -0
  12. package/dist/components/Breadcrumbs/item.js.map +1 -0
  13. package/dist/components/Button/index.d.ts +33 -0
  14. package/dist/components/Button/index.d.ts.map +1 -0
  15. package/dist/components/Button/index.js +154 -0
  16. package/dist/components/Button/index.js.map +1 -0
  17. package/dist/components/Checkbox/index.d.ts +26 -0
  18. package/dist/components/Checkbox/index.d.ts.map +1 -0
  19. package/dist/components/Checkbox/index.js +108 -0
  20. package/dist/components/Checkbox/index.js.map +1 -0
  21. package/dist/components/Columns/column.d.ts +5 -0
  22. package/dist/components/Columns/column.d.ts.map +1 -0
  23. package/dist/components/Columns/column.js +37 -0
  24. package/dist/components/Columns/column.js.map +1 -0
  25. package/dist/components/Columns/index.d.ts +17 -0
  26. package/dist/components/Columns/index.d.ts.map +1 -0
  27. package/dist/components/Columns/index.js +69 -0
  28. package/dist/components/Columns/index.js.map +1 -0
  29. package/dist/components/Comment/index.d.ts +24 -0
  30. package/dist/components/Comment/index.d.ts.map +1 -0
  31. package/dist/components/Comment/index.js +71 -0
  32. package/dist/components/Comment/index.js.map +1 -0
  33. package/dist/components/CommentFeed/index.d.ts +7 -0
  34. package/dist/components/CommentFeed/index.d.ts.map +1 -0
  35. package/dist/components/CommentFeed/index.js +49 -0
  36. package/dist/components/CommentFeed/index.js.map +1 -0
  37. package/dist/components/Content/index.d.ts +11 -0
  38. package/dist/components/Content/index.d.ts.map +1 -0
  39. package/dist/components/Content/index.js +70 -0
  40. package/dist/components/Content/index.js.map +1 -0
  41. package/dist/components/Content/wrapper.d.ts +11 -0
  42. package/dist/components/Content/wrapper.d.ts.map +1 -0
  43. package/dist/components/Content/wrapper.js +43 -0
  44. package/dist/components/Content/wrapper.js.map +1 -0
  45. package/dist/components/ControlGroup/index.d.ts +17 -0
  46. package/dist/components/ControlGroup/index.d.ts.map +1 -0
  47. package/dist/components/ControlGroup/index.js +90 -0
  48. package/dist/components/ControlGroup/index.js.map +1 -0
  49. package/dist/components/Drawer/index.d.ts +36 -0
  50. package/dist/components/Drawer/index.d.ts.map +1 -0
  51. package/dist/components/Drawer/index.js +251 -0
  52. package/dist/components/Drawer/index.js.map +1 -0
  53. package/dist/components/Dropdown/index.d.ts +24 -0
  54. package/dist/components/Dropdown/index.d.ts.map +1 -0
  55. package/dist/components/Dropdown/index.js +38 -0
  56. package/dist/components/Dropdown/index.js.map +1 -0
  57. package/dist/components/Dropdown/item.d.ts +10 -0
  58. package/dist/components/Dropdown/item.d.ts.map +1 -0
  59. package/dist/components/Dropdown/item.js +35 -0
  60. package/dist/components/Dropdown/item.js.map +1 -0
  61. package/dist/components/Dropdown/list.d.ts +14 -0
  62. package/dist/components/Dropdown/list.d.ts.map +1 -0
  63. package/dist/components/Dropdown/list.js +47 -0
  64. package/dist/components/Dropdown/list.js.map +1 -0
  65. package/dist/components/Header/index.d.ts +13 -0
  66. package/dist/components/Header/index.d.ts.map +1 -0
  67. package/dist/components/Header/index.js +44 -0
  68. package/dist/components/Header/index.js.map +1 -0
  69. package/dist/components/Icon/index.d.ts +16 -0
  70. package/dist/components/Icon/index.d.ts.map +1 -0
  71. package/dist/components/Icon/index.js +81 -0
  72. package/dist/components/Icon/index.js.map +1 -0
  73. package/dist/components/Input/index.d.ts +33 -0
  74. package/dist/components/Input/index.d.ts.map +1 -0
  75. package/dist/components/Input/index.js +115 -0
  76. package/dist/components/Input/index.js.map +1 -0
  77. package/dist/components/InputClearButton/index.d.ts +10 -0
  78. package/dist/components/InputClearButton/index.d.ts.map +1 -0
  79. package/dist/components/InputClearButton/index.js +49 -0
  80. package/dist/components/InputClearButton/index.js.map +1 -0
  81. package/dist/components/InternalPopover/index.d.ts +7 -0
  82. package/dist/components/InternalPopover/index.d.ts.map +1 -0
  83. package/dist/components/InternalPopover/index.js +132 -0
  84. package/dist/components/InternalPopover/index.js.map +1 -0
  85. package/dist/components/Layout/content.d.ts +8 -0
  86. package/dist/components/Layout/content.d.ts.map +1 -0
  87. package/dist/components/Layout/content.js +41 -0
  88. package/dist/components/Layout/content.js.map +1 -0
  89. package/dist/components/Layout/index.d.ts +8 -0
  90. package/dist/components/Layout/index.d.ts.map +1 -0
  91. package/dist/components/Layout/index.js +69 -0
  92. package/dist/components/Layout/index.js.map +1 -0
  93. package/dist/components/Menu/divider.d.ts +7 -0
  94. package/dist/components/Menu/divider.d.ts.map +1 -0
  95. package/dist/components/Menu/divider.js +49 -0
  96. package/dist/components/Menu/divider.js.map +1 -0
  97. package/dist/components/Menu/index.d.ts +17 -0
  98. package/dist/components/Menu/index.d.ts.map +1 -0
  99. package/dist/components/Menu/index.js +89 -0
  100. package/dist/components/Menu/index.js.map +1 -0
  101. package/dist/components/Menu/item.d.ts +31 -0
  102. package/dist/components/Menu/item.d.ts.map +1 -0
  103. package/dist/components/Menu/item.js +121 -0
  104. package/dist/components/Menu/item.js.map +1 -0
  105. package/dist/components/Message/index.d.ts +25 -0
  106. package/dist/components/Message/index.d.ts.map +1 -0
  107. package/dist/components/Message/index.js +54 -0
  108. package/dist/components/Message/index.js.map +1 -0
  109. package/dist/components/Modal/actions.d.ts +6 -0
  110. package/dist/components/Modal/actions.d.ts.map +1 -0
  111. package/dist/components/Modal/actions.js +49 -0
  112. package/dist/components/Modal/actions.js.map +1 -0
  113. package/dist/components/Modal/content.d.ts +6 -0
  114. package/dist/components/Modal/content.d.ts.map +1 -0
  115. package/dist/components/Modal/content.js +25 -0
  116. package/dist/components/Modal/content.js.map +1 -0
  117. package/dist/components/Modal/index.d.ts +14 -0
  118. package/dist/components/Modal/index.d.ts.map +1 -0
  119. package/dist/components/Modal/index.js +33 -0
  120. package/dist/components/Modal/index.js.map +1 -0
  121. package/dist/components/Navbar/divider.d.ts +9 -0
  122. package/dist/components/Navbar/divider.d.ts.map +1 -0
  123. package/dist/components/Navbar/divider.js +47 -0
  124. package/dist/components/Navbar/divider.js.map +1 -0
  125. package/dist/components/Navbar/group.d.ts +15 -0
  126. package/dist/components/Navbar/group.d.ts.map +1 -0
  127. package/dist/components/Navbar/group.js +75 -0
  128. package/dist/components/Navbar/group.js.map +1 -0
  129. package/dist/components/Navbar/index.d.ts +16 -0
  130. package/dist/components/Navbar/index.d.ts.map +1 -0
  131. package/dist/components/Navbar/index.js +86 -0
  132. package/dist/components/Navbar/index.js.map +1 -0
  133. package/dist/components/Navbar/item.d.ts +16 -0
  134. package/dist/components/Navbar/item.d.ts.map +1 -0
  135. package/dist/components/Navbar/item.js +81 -0
  136. package/dist/components/Navbar/item.js.map +1 -0
  137. package/dist/components/Notifications/index.d.ts +12 -0
  138. package/dist/components/Notifications/index.d.ts.map +1 -0
  139. package/dist/components/Notifications/index.js +60 -0
  140. package/dist/components/Notifications/index.js.map +1 -0
  141. package/dist/components/Notifications/notification.d.ts +43 -0
  142. package/dist/components/Notifications/notification.d.ts.map +1 -0
  143. package/dist/components/Notifications/notification.js +140 -0
  144. package/dist/components/Notifications/notification.js.map +1 -0
  145. package/dist/components/Panel/index.d.ts +49 -0
  146. package/dist/components/Panel/index.d.ts.map +1 -0
  147. package/dist/components/Panel/index.js +172 -0
  148. package/dist/components/Panel/index.js.map +1 -0
  149. package/dist/components/Panel/panel.screenshot.d.ts +3 -0
  150. package/dist/components/Panel/panel.screenshot.d.ts.map +1 -0
  151. package/dist/components/Panel/panel.screenshot.js +30 -0
  152. package/dist/components/Panel/panel.screenshot.js.map +1 -0
  153. package/dist/components/Paragraph/index.d.ts +8 -0
  154. package/dist/components/Paragraph/index.d.ts.map +1 -0
  155. package/dist/components/Paragraph/index.js +64 -0
  156. package/dist/components/Paragraph/index.js.map +1 -0
  157. package/dist/components/Popover/index.d.ts +16 -0
  158. package/dist/components/Popover/index.d.ts.map +1 -0
  159. package/dist/components/Popover/index.js +55 -0
  160. package/dist/components/Popover/index.js.map +1 -0
  161. package/dist/components/RadioGroup/index.d.ts +17 -0
  162. package/dist/components/RadioGroup/index.d.ts.map +1 -0
  163. package/dist/components/RadioGroup/index.js +48 -0
  164. package/dist/components/RadioGroup/index.js.map +1 -0
  165. package/dist/components/Sidebar/index.d.ts +60 -0
  166. package/dist/components/Sidebar/index.d.ts.map +1 -0
  167. package/dist/components/Sidebar/index.js +265 -0
  168. package/dist/components/Sidebar/index.js.map +1 -0
  169. package/dist/components/Sidebar/item.d.ts +36 -0
  170. package/dist/components/Sidebar/item.d.ts.map +1 -0
  171. package/dist/components/Sidebar/item.js +106 -0
  172. package/dist/components/Sidebar/item.js.map +1 -0
  173. package/dist/components/Table/body.d.ts +10 -0
  174. package/dist/components/Table/body.d.ts.map +1 -0
  175. package/dist/components/Table/body.js +44 -0
  176. package/dist/components/Table/body.js.map +1 -0
  177. package/dist/components/Table/header.d.ts +29 -0
  178. package/dist/components/Table/header.d.ts.map +1 -0
  179. package/dist/components/Table/header.js +106 -0
  180. package/dist/components/Table/header.js.map +1 -0
  181. package/dist/components/Table/headerCell.d.ts +18 -0
  182. package/dist/components/Table/headerCell.d.ts.map +1 -0
  183. package/dist/components/Table/headerCell.js +92 -0
  184. package/dist/components/Table/headerCell.js.map +1 -0
  185. package/dist/components/Table/helpers.d.ts +8 -0
  186. package/dist/components/Table/helpers.d.ts.map +1 -0
  187. package/dist/components/Table/helpers.js +41 -0
  188. package/dist/components/Table/helpers.js.map +1 -0
  189. package/dist/components/Table/index.d.ts +75 -0
  190. package/dist/components/Table/index.d.ts.map +1 -0
  191. package/dist/components/Table/index.js +165 -0
  192. package/dist/components/Table/index.js.map +1 -0
  193. package/dist/components/Table/row.d.ts +58 -0
  194. package/dist/components/Table/row.d.ts.map +1 -0
  195. package/dist/components/Table/row.js +204 -0
  196. package/dist/components/Table/row.js.map +1 -0
  197. package/dist/components/Tabs/content.d.ts +8 -0
  198. package/dist/components/Tabs/content.d.ts.map +1 -0
  199. package/dist/components/Tabs/content.js +41 -0
  200. package/dist/components/Tabs/content.js.map +1 -0
  201. package/dist/components/Tabs/index.d.ts +39 -0
  202. package/dist/components/Tabs/index.d.ts.map +1 -0
  203. package/dist/components/Tabs/index.js +83 -0
  204. package/dist/components/Tabs/index.js.map +1 -0
  205. package/dist/components/Tabs/item.d.ts +23 -0
  206. package/dist/components/Tabs/item.d.ts.map +1 -0
  207. package/dist/components/Tabs/item.js +71 -0
  208. package/dist/components/Tabs/item.js.map +1 -0
  209. package/dist/components/Tabs/list.d.ts +17 -0
  210. package/dist/components/Tabs/list.d.ts.map +1 -0
  211. package/dist/components/Tabs/list.js +189 -0
  212. package/dist/components/Tabs/list.js.map +1 -0
  213. package/dist/components/Tag/group.d.ts +10 -0
  214. package/dist/components/Tag/group.d.ts.map +1 -0
  215. package/dist/components/Tag/group.js +50 -0
  216. package/dist/components/Tag/group.js.map +1 -0
  217. package/dist/components/Tag/index.d.ts +36 -0
  218. package/dist/components/Tag/index.d.ts.map +1 -0
  219. package/dist/components/Tag/index.js +136 -0
  220. package/dist/components/Tag/index.js.map +1 -0
  221. package/dist/components/Textarea/index.d.ts +26 -0
  222. package/dist/components/Textarea/index.d.ts.map +1 -0
  223. package/dist/components/Textarea/index.js +85 -0
  224. package/dist/components/Textarea/index.js.map +1 -0
  225. package/dist/components/TimeAgo/index.d.ts +4 -0
  226. package/dist/components/TimeAgo/index.d.ts.map +1 -0
  227. package/dist/components/TimeAgo/index.js +21 -0
  228. package/dist/components/TimeAgo/index.js.map +1 -0
  229. package/dist/components/Tree/index.d.ts +16 -0
  230. package/dist/components/Tree/index.d.ts.map +1 -0
  231. package/dist/components/Tree/index.js +155 -0
  232. package/dist/components/Tree/index.js.map +1 -0
  233. package/dist/constants/animations.d.ts +5 -0
  234. package/dist/constants/animations.d.ts.map +1 -0
  235. package/dist/constants/animations.js +8 -0
  236. package/dist/constants/animations.js.map +1 -0
  237. package/dist/constants/colors.d.ts +10 -0
  238. package/dist/constants/colors.d.ts.map +1 -0
  239. package/dist/constants/colors.js +13 -0
  240. package/dist/constants/colors.js.map +1 -0
  241. package/dist/constants/sizes.d.ts +59 -0
  242. package/dist/constants/sizes.d.ts.map +1 -0
  243. package/dist/constants/sizes.js +60 -0
  244. package/dist/constants/sizes.js.map +1 -0
  245. package/dist/constants/theme.d.ts +81 -0
  246. package/dist/constants/theme.d.ts.map +1 -0
  247. package/dist/constants/theme.js +20 -0
  248. package/dist/constants/theme.js.map +1 -0
  249. package/dist/containers/PopoverProvider.d.ts +13 -0
  250. package/dist/containers/PopoverProvider.d.ts.map +1 -0
  251. package/dist/containers/PopoverProvider.js +81 -0
  252. package/dist/containers/PopoverProvider.js.map +1 -0
  253. package/dist/containers/ReqoreProvider.d.ts +40 -0
  254. package/dist/containers/ReqoreProvider.d.ts.map +1 -0
  255. package/dist/containers/ReqoreProvider.js +125 -0
  256. package/dist/containers/ReqoreProvider.js.map +1 -0
  257. package/dist/containers/ThemeProvider.d.ts +8 -0
  258. package/dist/containers/ThemeProvider.d.ts.map +1 -0
  259. package/dist/containers/ThemeProvider.js +27 -0
  260. package/dist/containers/ThemeProvider.js.map +1 -0
  261. package/dist/containers/UIProvider.d.ts +13 -0
  262. package/dist/containers/UIProvider.d.ts.map +1 -0
  263. package/dist/containers/UIProvider.js +43 -0
  264. package/dist/containers/UIProvider.js.map +1 -0
  265. package/dist/context/PopoverContext.d.ts +11 -0
  266. package/dist/context/PopoverContext.d.ts.map +1 -0
  267. package/dist/context/PopoverContext.js +5 -0
  268. package/dist/context/PopoverContext.js.map +1 -0
  269. package/dist/context/ReqoreContext.d.ts +15 -0
  270. package/dist/context/ReqoreContext.d.ts.map +1 -0
  271. package/dist/context/ReqoreContext.js +10 -0
  272. package/dist/context/ReqoreContext.js.map +1 -0
  273. package/dist/context/ThemeContext.d.ts +5 -0
  274. package/dist/context/ThemeContext.d.ts.map +1 -0
  275. package/dist/context/ThemeContext.js +6 -0
  276. package/dist/context/ThemeContext.js.map +1 -0
  277. package/dist/helpers/animations.d.ts +2 -0
  278. package/dist/helpers/animations.d.ts.map +1 -0
  279. package/dist/helpers/animations.js +11 -0
  280. package/dist/helpers/animations.js.map +1 -0
  281. package/dist/helpers/colors.d.ts +14 -0
  282. package/dist/helpers/colors.d.ts.map +1 -0
  283. package/dist/helpers/colors.js +108 -0
  284. package/dist/helpers/colors.js.map +1 -0
  285. package/dist/helpers/sidebar.d.ts +4 -0
  286. package/dist/helpers/sidebar.d.ts.map +1 -0
  287. package/dist/helpers/sidebar.js +90 -0
  288. package/dist/helpers/sidebar.js.map +1 -0
  289. package/dist/helpers/time.d.ts +8 -0
  290. package/dist/helpers/time.d.ts.map +1 -0
  291. package/dist/helpers/time.js +25 -0
  292. package/dist/helpers/time.js.map +1 -0
  293. package/dist/helpers/utils.d.ts +5 -0
  294. package/dist/helpers/utils.d.ts.map +1 -0
  295. package/dist/helpers/utils.js +103 -0
  296. package/dist/helpers/utils.js.map +1 -0
  297. package/dist/hooks/useCombinedRefs.d.ts +3 -0
  298. package/dist/hooks/useCombinedRefs.d.ts.map +1 -0
  299. package/dist/hooks/useCombinedRefs.js +29 -0
  300. package/dist/hooks/useCombinedRefs.js.map +1 -0
  301. package/dist/hooks/useLatestZIndex.d.ts +3 -0
  302. package/dist/hooks/useLatestZIndex.d.ts.map +1 -0
  303. package/dist/hooks/useLatestZIndex.js +11 -0
  304. package/dist/hooks/useLatestZIndex.js.map +1 -0
  305. package/dist/hooks/useOutsideClick.d.ts +4 -0
  306. package/dist/hooks/useOutsideClick.d.ts.map +1 -0
  307. package/dist/hooks/useOutsideClick.js +19 -0
  308. package/dist/hooks/useOutsideClick.js.map +1 -0
  309. package/dist/hooks/usePopover.d.ts +19 -0
  310. package/dist/hooks/usePopover.d.ts.map +1 -0
  311. package/dist/hooks/usePopover.js +86 -0
  312. package/dist/hooks/usePopover.js.map +1 -0
  313. package/dist/hooks/useShareForwardedRef.d.ts +3 -0
  314. package/dist/hooks/useShareForwardedRef.d.ts.map +1 -0
  315. package/dist/hooks/useShareForwardedRef.js +25 -0
  316. package/dist/hooks/useShareForwardedRef.js.map +1 -0
  317. package/dist/hooks/useTheme.d.ts +3 -0
  318. package/dist/hooks/useTheme.d.ts.map +1 -0
  319. package/dist/hooks/useTheme.js +21 -0
  320. package/dist/hooks/useTheme.js.map +1 -0
  321. package/dist/hooks/useTooltip.d.ts +3 -0
  322. package/dist/hooks/useTooltip.d.ts.map +1 -0
  323. package/dist/hooks/useTooltip.js +24 -0
  324. package/dist/hooks/useTooltip.js.map +1 -0
  325. package/dist/index.d.ts +52 -0
  326. package/dist/index.d.ts.map +1 -0
  327. package/dist/index.js +127 -0
  328. package/dist/index.js.map +1 -0
  329. package/dist/styles.d.ts +5 -0
  330. package/dist/styles.d.ts.map +1 -0
  331. package/dist/styles.js +16 -0
  332. package/dist/styles.js.map +1 -0
  333. package/dist/types/global.d.ts +9 -0
  334. package/dist/types/global.d.ts.map +1 -0
  335. package/dist/types/global.js +3 -0
  336. package/dist/types/global.js.map +1 -0
  337. package/dist/types/icons.d.ts +2 -0
  338. package/dist/types/icons.d.ts.map +1 -0
  339. package/dist/types/icons.js +3 -0
  340. package/dist/types/icons.js.map +1 -0
  341. package/dist/types/icons____.d.ts +2 -0
  342. package/dist/types/icons____.d.ts.map +1 -0
  343. package/dist/types/icons____.js +5 -0
  344. package/dist/types/icons____.js.map +1 -0
  345. package/package.json +1 -1
  346. package/src/components/Breadcrumbs/index.tsx +286 -0
  347. package/src/components/Breadcrumbs/item.tsx +162 -0
  348. package/src/components/Button/index.tsx +270 -0
  349. package/src/components/Checkbox/index.tsx +161 -0
  350. package/src/components/Columns/column.tsx +26 -0
  351. package/src/components/Columns/index.tsx +40 -0
  352. package/src/components/Comment/index.tsx +139 -0
  353. package/src/components/CommentFeed/index.tsx +34 -0
  354. package/src/components/Content/index.tsx +39 -0
  355. package/src/components/Content/wrapper.tsx +37 -0
  356. package/src/components/ControlGroup/index.tsx +81 -0
  357. package/src/components/Drawer/index.tsx +387 -0
  358. package/src/components/Dropdown/index.tsx +81 -0
  359. package/src/components/Dropdown/item.tsx +20 -0
  360. package/src/components/Dropdown/list.tsx +76 -0
  361. package/src/components/Header/index.tsx +38 -0
  362. package/src/components/Icon/index.tsx +83 -0
  363. package/src/components/Input/index.tsx +185 -0
  364. package/src/components/InputClearButton/index.tsx +34 -0
  365. package/src/components/InternalPopover/index.tsx +185 -0
  366. package/src/components/Layout/content.tsx +31 -0
  367. package/src/components/Layout/index.tsx +55 -0
  368. package/src/components/Menu/divider.tsx +36 -0
  369. package/src/components/Menu/index.tsx +64 -0
  370. package/src/components/Menu/item.tsx +219 -0
  371. package/src/components/Message/index.tsx +136 -0
  372. package/src/components/Modal/actions.tsx +26 -0
  373. package/src/components/Modal/content.tsx +11 -0
  374. package/src/components/Modal/index.tsx +26 -0
  375. package/src/components/Navbar/divider.tsx +51 -0
  376. package/src/components/Navbar/group.tsx +57 -0
  377. package/src/components/Navbar/index.tsx +81 -0
  378. package/src/components/Navbar/item.tsx +75 -0
  379. package/src/components/Notifications/index.tsx +56 -0
  380. package/src/components/Notifications/notification.tsx +288 -0
  381. package/src/components/Panel/__screenshots__/linux/panel-SomePanel.png +0 -0
  382. package/src/components/Panel/index.tsx +333 -0
  383. package/src/components/Panel/panel.screenshot.tsx +29 -0
  384. package/src/components/Paragraph/index.tsx +25 -0
  385. package/src/components/Popover/index.tsx +65 -0
  386. package/src/components/RadioGroup/index.tsx +52 -0
  387. package/src/components/Sidebar/index.tsx +526 -0
  388. package/src/components/Sidebar/item.tsx +269 -0
  389. package/src/components/Table/body.tsx +46 -0
  390. package/src/components/Table/header.tsx +173 -0
  391. package/src/components/Table/headerCell.tsx +117 -0
  392. package/src/components/Table/helpers.ts +19 -0
  393. package/src/components/Table/index.tsx +265 -0
  394. package/src/components/Table/row.tsx +355 -0
  395. package/src/components/Tabs/content.tsx +23 -0
  396. package/src/components/Tabs/index.tsx +117 -0
  397. package/src/components/Tabs/item.tsx +151 -0
  398. package/src/components/Tabs/list.tsx +281 -0
  399. package/src/components/Tag/group.tsx +32 -0
  400. package/src/components/Tag/index.tsx +237 -0
  401. package/src/components/Textarea/index.tsx +121 -0
  402. package/src/components/TimeAgo/index.tsx +15 -0
  403. package/src/components/Tree/index.tsx +255 -0
  404. package/src/constants/animations.ts +4 -0
  405. package/src/constants/colors.ts +9 -0
  406. package/src/constants/sizes.ts +66 -0
  407. package/src/constants/theme.ts +102 -0
  408. package/src/containers/PopoverProvider.tsx +85 -0
  409. package/src/containers/ReqoreProvider.tsx +194 -0
  410. package/src/containers/ThemeProvider.tsx +22 -0
  411. package/src/containers/UIProvider.tsx +54 -0
  412. package/src/context/PopoverContext.tsx +10 -0
  413. package/src/context/ReqoreContext.tsx +20 -0
  414. package/src/context/ThemeContext.tsx +4 -0
  415. package/src/helpers/animations.ts +13 -0
  416. package/src/helpers/colors.ts +127 -0
  417. package/src/helpers/sidebar.ts +105 -0
  418. package/src/helpers/time.ts +21 -0
  419. package/src/helpers/utils.ts +75 -0
  420. package/src/hooks/useCombinedRefs.ts +19 -0
  421. package/src/hooks/useLatestZIndex.ts +11 -0
  422. package/src/hooks/useOutsideClick.ts +29 -0
  423. package/src/hooks/usePopover.tsx +118 -0
  424. package/src/hooks/useShareForwardedRef.ts +23 -0
  425. package/src/hooks/useTheme.ts +20 -0
  426. package/src/hooks/useTooltip.ts +15 -0
  427. package/src/icons.json +2295 -0
  428. package/src/index.tsx +51 -0
  429. package/src/mock/breadcrumbs.ts +93 -0
  430. package/src/mock/icons.ts +32 -0
  431. package/src/mock/menu.ts +95 -0
  432. package/src/mock/object.json +317 -0
  433. package/src/mock/styleMock.js +1 -0
  434. package/src/mock/tableData.ts +40 -0
  435. package/src/stories/Breadcrumbs/Breadcrumbs.stories.tsx +38 -0
  436. package/src/stories/Button/Button.stories.tsx +69 -0
  437. package/src/stories/Checkbox/Checkbox.stories.tsx +26 -0
  438. package/src/stories/Columns/Columns.stories.tsx +71 -0
  439. package/src/stories/Comment/Comment.stories.tsx +127 -0
  440. package/src/stories/ControlGroup/ControlGroup.stories.tsx +43 -0
  441. package/src/stories/Drawer/Drawer.stories.tsx +181 -0
  442. package/src/stories/Dropdown/Dropdown.stories.tsx +160 -0
  443. package/src/stories/Icon/Icon.stories.tsx +35 -0
  444. package/src/stories/Input/Input.stories.tsx +77 -0
  445. package/src/stories/Menu/Menu.stories.tsx +94 -0
  446. package/src/stories/Message/Message.stories.tsx +52 -0
  447. package/src/stories/Modal/Modal.stories.tsx +148 -0
  448. package/src/stories/Navbar/Navbar.stories.tsx +109 -0
  449. package/src/stories/Notifications/Interactive.stories.tsx +105 -0
  450. package/src/stories/Notifications/Notification.stories.tsx +200 -0
  451. package/src/stories/Notifications/Notifications.stories.tsx +65 -0
  452. package/src/stories/Panel/Panel.stories.tsx +107 -0
  453. package/src/stories/Popover/Popover.stories.tsx +54 -0
  454. package/src/stories/RadioGroup/RadioGroup.stories.tsx +51 -0
  455. package/src/stories/Sidebar/Sidebar.stories.tsx +78 -0
  456. package/src/stories/Table/Table.stories.tsx +151 -0
  457. package/src/stories/Tabs/Tabs.stories.tsx +233 -0
  458. package/src/stories/Tag/Tag.stories.tsx +72 -0
  459. package/src/stories/TextArea/TextArea.stories.tsx +74 -0
  460. package/src/stories/Tree/Tree.stories.tsx +43 -0
  461. package/src/stories/Wrapper.tsx +13 -0
  462. package/src/stories/utils/args.ts +138 -0
  463. package/src/stories/utils.ts +17 -0
  464. package/src/styles.ts +38 -0
  465. package/src/types/global.ts +9 -0
  466. package/src/types/icons.ts +2272 -0
  467. package/src/types/icons____.ts +5 -0
  468. package/tests.json +1 -1
  469. package/dist/tests.json +0 -1
package/src/index.tsx ADDED
@@ -0,0 +1,51 @@
1
+ export { default as ReqoreBreadcrumbs } from './components/Breadcrumbs';
2
+ export { default as ReqoreBreadcrumbsItem } from './components/Breadcrumbs/item';
3
+ export { default as ReqoreButton } from './components/Button';
4
+ export { default as ReqoreCheckbox } from './components/Checkbox';
5
+ export { ReqoreColumns } from './components/Columns';
6
+ export { ReqoreColumn } from './components/Columns/column';
7
+ export { ReqoreComment } from './components/Comment';
8
+ export { ReqoreCommentFeed } from './components/CommentFeed';
9
+ export { default as ReqoreContent } from './components/Content';
10
+ export { default as ReqoreControlGroup } from './components/ControlGroup';
11
+ export { ReqoreDrawer } from './components/Drawer';
12
+ export { default as ReqoreDropdown } from './components/Dropdown';
13
+ export { ReqoreDropdownDivider, ReqoreDropdownItem } from './components/Dropdown/item';
14
+ export { ReqoreH1, ReqoreH2, ReqoreH3, ReqoreH4, ReqoreH5, ReqoreH6 } from './components/Header';
15
+ export { default as ReqoreIcon } from './components/Icon';
16
+ export { default as ReqoreInput } from './components/Input';
17
+ export { default as ReqoreLayoutContent } from './components/Layout/content';
18
+ export { default as ReqoreMenu } from './components/Menu';
19
+ export { default as ReqoreMenuDivider } from './components/Menu/divider';
20
+ export { default as ReqoreMenuItem } from './components/Menu/item';
21
+ export { default as ReqoreMessage } from './components/Message';
22
+ export { ReqoreModal } from './components/Modal';
23
+ export { ReqoreModalActions, ReqoreModalActionsGroup } from './components/Modal/actions';
24
+ export { ReqoreModalContent } from './components/Modal/content';
25
+ export { ReqoreFooter, ReqoreHeader } from './components/Navbar';
26
+ export { default as ReqoreNavbarDivider } from './components/Navbar/divider';
27
+ export { default as ReqoreNavbarGroup } from './components/Navbar/group';
28
+ export { default as ReqoreNavbarItem } from './components/Navbar/item';
29
+ export { default as ReqoreNotificationsWrapper } from './components/Notifications';
30
+ export { default as ReqoreNotification } from './components/Notifications/notification';
31
+ export { ReqorePanel } from './components/Panel';
32
+ export { ReqoreP, ReqoreP as ReqoreParagraph } from './components/Paragraph';
33
+ export { default as ReqorePopover } from './components/Popover';
34
+ export { default as ReqoreRadioGroup } from './components/RadioGroup';
35
+ export { default as ReqoreSidebar } from './components/Sidebar';
36
+ export { default as ReqoreTable } from './components/Table';
37
+ export { default as ReqoreTabs } from './components/Tabs';
38
+ export { default as ReqoreTabsContent } from './components/Tabs/content';
39
+ export { default as ReqoreTabsListItem } from './components/Tabs/item';
40
+ export { default as ReqoreTabsList } from './components/Tabs/list';
41
+ export { default as ReqoreTag } from './components/Tag';
42
+ export { default as ReqoreTagGroup } from './components/Tag/group';
43
+ export { default as ReqoreTextarea } from './components/Textarea';
44
+ export { TimeAgo as ReqoreTimeAgo } from './components/TimeAgo';
45
+ export { ReqoreTree } from './components/Tree';
46
+ export { Colors as ReqoreColors } from './constants/colors';
47
+ export { default as ReqoreNotifications } from './containers/ReqoreProvider';
48
+ export { default as ReqoreUIProvider } from './containers/UIProvider';
49
+ export { default as ReqoreContext } from './context/ReqoreContext';
50
+ export { default as ReqoreThemeContext } from './context/ThemeContext';
51
+ export { default as useLatestZIndex } from './hooks/useLatestZIndex';
@@ -0,0 +1,93 @@
1
+ import { noop } from 'lodash';
2
+ import { IReqoreBreadcrumbItem, IReqoreBreadcrumbItemTabs } from '../components/Breadcrumbs';
3
+ import { Icons } from './icons';
4
+
5
+ export default [
6
+ {
7
+ label: 'Dashboard',
8
+ icon: Icons.Dashboard,
9
+ tooltip: 'Dashboard',
10
+ active: true,
11
+ },
12
+ {
13
+ label: 'Workflows',
14
+ icon: Icons.Workflow,
15
+ tooltip: 'Opens in a new window',
16
+ as: 'a',
17
+ props: {
18
+ href: 'https://google.com',
19
+ },
20
+ },
21
+ {
22
+ label: 'Services',
23
+ icon: Icons.Services,
24
+ tooltip: 'Services',
25
+ props: {
26
+ onClick: noop,
27
+ },
28
+ },
29
+ {
30
+ label: 'Jobs',
31
+ icon: Icons.Jobs,
32
+ customTheme: '#a9a9a9',
33
+ },
34
+ {
35
+ tooltip: 'Connections',
36
+ icon: Icons.Connections,
37
+ customTheme: '#a9a9a9',
38
+ },
39
+ ] as IReqoreBreadcrumbItem[];
40
+
41
+ export const breadcrumbsTabs = {
42
+ withTabs: {
43
+ activeTab: 'valuemaps',
44
+ onTabChange(tabId) {
45
+ console.log('🚀 ~ file: breadcrumbs.ts ~ line 46 ~ onTabChange ~ tabId', tabId);
46
+ },
47
+ tabs: [
48
+ {
49
+ label: 'RBAC',
50
+ icon: Icons.RBAC,
51
+ id: 'rbac',
52
+ props: {
53
+ onClick() {
54
+ console.log('rbac');
55
+ },
56
+ },
57
+ },
58
+ {
59
+ label: 'Value Maps',
60
+ icon: Icons.Valuemaps,
61
+ id: 'valuemaps',
62
+ onCloseClick(id) {
63
+ console.log('🚀 ~ file: breadcrumbs.ts ~ line 54 ~ onCloseClick ~ id', id);
64
+ },
65
+ intent: 'success',
66
+ },
67
+ {
68
+ label: 'SLAs',
69
+ icon: Icons.SLAs,
70
+ id: 'sla',
71
+ intent: 'danger',
72
+ },
73
+ {
74
+ label: 'Releases',
75
+ icon: Icons.Releases,
76
+ id: 'releases',
77
+ tooltip: {
78
+ content: 'Releases',
79
+ },
80
+ },
81
+ {
82
+ label: 'Errors',
83
+ icon: Icons.Errors,
84
+ id: 'errors',
85
+ props: {
86
+ onClick() {
87
+ console.log('errors');
88
+ },
89
+ },
90
+ },
91
+ ],
92
+ } as IReqoreBreadcrumbItemTabs,
93
+ } as IReqoreBreadcrumbItem;
@@ -0,0 +1,32 @@
1
+ import { IReqoreIconName } from '../types/icons';
2
+
3
+ export const Icons: { [key: string]: IReqoreIconName } = {
4
+ Dashboard: 'Home2Fill',
5
+ Workflow: 'ExchangeLine',
6
+ Services: 'GitMergeLine',
7
+ Jobs: 'CalendarLine',
8
+ Groups: 'BubbleChartFill',
9
+ Connections: 'StackshareLine',
10
+ Search: 'SearchLine',
11
+ Global: 'LayoutGridFill',
12
+ RBAC: 'GroupLine',
13
+ Valuemaps: 'MapLine',
14
+ SLAs: 'TimeLine',
15
+ Releases: 'InstallLine',
16
+ Errors: 'ErrorWarningLine',
17
+ Types: 'Key2Fill',
18
+ System: 'Settings2Line',
19
+ Alerts: 'AlarmWarningLine',
20
+ Cluster: 'GridFill',
21
+ OrderStats: 'PieChartLine',
22
+ Options: 'SettingsLine',
23
+ Properties: 'StackLine',
24
+ Cache: 'DatabaseLine',
25
+ HTTPServices: 'GlobeLine',
26
+ ConfigItems: 'Settings6Line',
27
+ More: 'MoreFill',
28
+ Library: 'Book3Line',
29
+ Extensions: 'AppsLine',
30
+ Logs: 'FileTextLine',
31
+ Info: 'InformationLine',
32
+ };
@@ -0,0 +1,95 @@
1
+ import { IQorusSidebarItems } from "../components/Sidebar";
2
+
3
+ export const qorusSidebarItems: IQorusSidebarItems = {
4
+ Menu: {
5
+ title: "Menu",
6
+ items: [
7
+ {
8
+ name: "Menu item 1",
9
+ as: "a",
10
+ props: {
11
+ href: "/item-1",
12
+ },
13
+ icon: "Home3Line",
14
+ id: "menu-item-1",
15
+ },
16
+ {
17
+ name: "Menu item 2",
18
+ as: "a",
19
+ props: {
20
+ href: "/item-2",
21
+ },
22
+ icon: "Settings4Fill",
23
+ id: "menu-item-2",
24
+ },
25
+ {
26
+ name: "Menu item 3",
27
+ icon: "File3Line",
28
+ id: "menu-item-3",
29
+ activePaths: ["/item-3"],
30
+ submenu: [
31
+ {
32
+ name: "Submenu item 1",
33
+ as: "a",
34
+ props: {
35
+ href: "/item-3/item-1",
36
+ },
37
+ icon: "NodeTree",
38
+ id: "submenu-item-1",
39
+ },
40
+ {
41
+ name: "Submenu item 2",
42
+ as: "a",
43
+ props: {
44
+ href: "/item-3/item-2",
45
+ },
46
+ icon: "Chat3Fill",
47
+ id: "submenu-item-2",
48
+ },
49
+ {
50
+ name: "Super really long Submenu item 3",
51
+ as: "a",
52
+ props: {
53
+ href: "/item-3/item-3",
54
+ },
55
+ icon: "DatabaseFill",
56
+ id: "submenu-item-3",
57
+ },
58
+ ],
59
+ },
60
+ ],
61
+ },
62
+ Menu2: {
63
+ items: [
64
+ {
65
+ name: "Super Long Really Another item 1",
66
+ as: "a",
67
+ props: {
68
+ href: "/another-item-1",
69
+ },
70
+ icon: "Home6Line",
71
+ id: "another-item-1",
72
+ },
73
+ {
74
+ name: "Another item 2",
75
+ as: "a",
76
+ props: {
77
+ href: "/another-item-2",
78
+ },
79
+ icon: "TableFill",
80
+ id: "another-item-2",
81
+ },
82
+ {
83
+ name: "Another item 3",
84
+ as: "a",
85
+ props: {
86
+ onClick: () => {
87
+ alert("Click");
88
+ },
89
+ },
90
+ icon: "BellLine",
91
+ id: "another-item-3",
92
+ },
93
+ ],
94
+ },
95
+ };
@@ -0,0 +1,317 @@
1
+ [
2
+ {
3
+ "_id": "606d4c955f96372fd1b8bcd1",
4
+ "index": 0,
5
+ "guid": "d08cde5f-e18e-4d7f-80a9-6541848ab830",
6
+ "isActive": false,
7
+ "balance": "$3,219.32",
8
+ "picture": "http://placehold.it/32x32",
9
+ "age": 25,
10
+ "eyeColor": "brown",
11
+ "name": "Zelma Short",
12
+ "gender": "female",
13
+ "company": "LINGOAGE",
14
+ "email": "zelmashort@lingoage.com",
15
+ "phone": "+1 (840) 429-2274",
16
+ "address": "757 Woodside Avenue, Winchester, Marshall Islands, 2032",
17
+ "about": "Ipsum est ex nisi veniam proident adipisicing. Occaecat Lorem minim amet aliqua laboris excepteur sint eu mollit laborum sunt. Duis aliquip nulla cillum labore culpa ullamco labore non in nostrud. Cupidatat nisi enim ullamco quis voluptate Lorem voluptate minim dolore esse irure eiusmod aliquip amet. Dolore laboris Lorem laboris irure magna sint dolor. In irure adipisicing minim ullamco commodo ad dolore elit occaecat dolor. Cillum commodo est commodo dolor enim velit.\r\n",
18
+ "registered": "2015-03-19T05:00:22 -01:00",
19
+ "latitude": -8.97737,
20
+ "longitude": 110.576471,
21
+ "tags": [
22
+ "aute",
23
+ "qui",
24
+ "ut",
25
+ "mollit",
26
+ "culpa",
27
+ "qui",
28
+ "irure"
29
+ ],
30
+ "friends": [
31
+ {
32
+ "id": 0,
33
+ "name": "Angel Gallagher"
34
+ },
35
+ {
36
+ "id": 1,
37
+ "name": "Rose Farmer"
38
+ },
39
+ {
40
+ "id": 2,
41
+ "name": "Jaclyn Keith"
42
+ }
43
+ ],
44
+ "greeting": "Hello, Zelma Short! You have 5 unread messages.",
45
+ "favoriteFruit": "banana"
46
+ },
47
+ {
48
+ "_id": "606d4c957cc794c26ad703f6",
49
+ "index": 1,
50
+ "guid": "366ccd74-64e4-4336-a660-78b55cccd653",
51
+ "isActive": true,
52
+ "balance": "$3,464.91",
53
+ "picture": "http://placehold.it/32x32",
54
+ "age": 32,
55
+ "eyeColor": "green",
56
+ "name": "Jennings Briggs",
57
+ "gender": "male",
58
+ "company": "FROSNEX",
59
+ "email": "jenningsbriggs@frosnex.com",
60
+ "phone": "+1 (821) 563-3061",
61
+ "address": "485 Auburn Place, Toftrees, North Carolina, 3460",
62
+ "about": "Sit voluptate ut ipsum aliquip officia eiusmod esse sint exercitation officia. Velit ex ex mollit ad enim voluptate Lorem nisi minim. Sit officia sit eu est anim Lorem aute anim nulla officia.\r\n",
63
+ "registered": "2014-11-25T11:58:45 -01:00",
64
+ "latitude": 32.968241,
65
+ "longitude": 21.905937,
66
+ "tags": [
67
+ "occaecat",
68
+ "id",
69
+ "sit",
70
+ "eiusmod",
71
+ "tempor",
72
+ "adipisicing",
73
+ "sint"
74
+ ],
75
+ "friends": [
76
+ {
77
+ "id": 0,
78
+ "name": "Buck Watts"
79
+ },
80
+ {
81
+ "id": 1,
82
+ "name": "Barr Hull"
83
+ },
84
+ {
85
+ "id": 2,
86
+ "name": "Muriel Lowery"
87
+ }
88
+ ],
89
+ "greeting": "Hello, Jennings Briggs! You have 8 unread messages.",
90
+ "favoriteFruit": "banana"
91
+ },
92
+ {
93
+ "_id": "606d4c953ed5ee3081404d98",
94
+ "index": 2,
95
+ "guid": "ed26f92f-26a7-492f-b3c8-a6767297526c",
96
+ "isActive": false,
97
+ "balance": "$3,974.33",
98
+ "picture": "http://placehold.it/32x32",
99
+ "age": 35,
100
+ "eyeColor": "green",
101
+ "name": "Stephenson Dunlap",
102
+ "gender": "male",
103
+ "company": "PLASMOS",
104
+ "email": "stephensondunlap@plasmos.com",
105
+ "phone": "+1 (809) 545-2664",
106
+ "address": "463 Cambridge Place, Cloverdale, South Dakota, 8144",
107
+ "about": "Laboris sit tempor laborum cupidatat ea quis commodo ut incididunt. Commodo dolor irure sit non. Enim pariatur sunt cupidatat enim aliquip velit laboris eiusmod sint. Esse eiusmod minim dolore sint. Quis duis id ut tempor tempor laboris fugiat quis proident. Irure proident deserunt consequat voluptate labore irure eu nulla commodo incididunt nisi officia amet est.\r\n",
108
+ "registered": "2019-06-05T08:58:50 -02:00",
109
+ "latitude": -41.239498,
110
+ "longitude": 11.237437,
111
+ "tags": [
112
+ "ut",
113
+ "consectetur",
114
+ "enim",
115
+ "deserunt",
116
+ "anim",
117
+ "adipisicing",
118
+ "irure"
119
+ ],
120
+ "friends": [
121
+ {
122
+ "id": 0,
123
+ "name": "Cora Hobbs"
124
+ },
125
+ {
126
+ "id": 1,
127
+ "name": "Smith Gray"
128
+ },
129
+ {
130
+ "id": 2,
131
+ "name": "Rosanne Winters"
132
+ }
133
+ ],
134
+ "greeting": "Hello, Stephenson Dunlap! You have 9 unread messages.",
135
+ "favoriteFruit": "strawberry"
136
+ },
137
+ {
138
+ "_id": "606d4c95cc5c1b49eaf17919",
139
+ "index": 3,
140
+ "guid": "904ad88c-c754-4575-b626-202d2b6324c7",
141
+ "isActive": true,
142
+ "balance": "$2,267.87",
143
+ "picture": "http://placehold.it/32x32",
144
+ "age": 21,
145
+ "eyeColor": "blue",
146
+ "name": "Sheryl Barton",
147
+ "gender": "female",
148
+ "company": "NAMEGEN",
149
+ "email": "sherylbarton@namegen.com",
150
+ "phone": "+1 (974) 505-2024",
151
+ "address": "524 Shale Street, Wauhillau, Idaho, 4275",
152
+ "about": "Enim aute ea anim sunt occaecat pariatur nisi excepteur eiusmod. Proident labore dolore elit veniam incididunt. Ad deserunt ipsum deserunt ad id.\r\n",
153
+ "registered": "2020-02-24T06:26:21 -01:00",
154
+ "latitude": -79.669108,
155
+ "longitude": 19.666959,
156
+ "tags": [
157
+ "magna",
158
+ "nisi",
159
+ "eiusmod",
160
+ "elit",
161
+ "eu",
162
+ "in",
163
+ "anim"
164
+ ],
165
+ "friends": [
166
+ {
167
+ "id": 0,
168
+ "name": "Lowery Lucas"
169
+ },
170
+ {
171
+ "id": 1,
172
+ "name": "Lilia Mendoza"
173
+ },
174
+ {
175
+ "id": 2,
176
+ "name": "Frieda Valenzuela"
177
+ }
178
+ ],
179
+ "greeting": "Hello, Sheryl Barton! You have 8 unread messages.",
180
+ "favoriteFruit": "strawberry"
181
+ },
182
+ {
183
+ "_id": "606d4c95dcb57310a73b8feb",
184
+ "index": 4,
185
+ "guid": "eaf6380a-7fb7-4924-b09f-5b37ed134f57",
186
+ "isActive": true,
187
+ "balance": "$3,578.40",
188
+ "picture": "http://placehold.it/32x32",
189
+ "age": 30,
190
+ "eyeColor": "brown",
191
+ "name": "Hahn Stanley",
192
+ "gender": "male",
193
+ "company": "GOGOL",
194
+ "email": "hahnstanley@gogol.com",
195
+ "phone": "+1 (948) 430-2371",
196
+ "address": "569 Bushwick Court, Jamestown, Tennessee, 3203",
197
+ "about": "Est ipsum enim occaecat dolor nisi excepteur. Officia magna veniam occaecat velit consectetur reprehenderit. Ut exercitation laboris est deserunt anim dolor sint pariatur. Commodo ut ex culpa incididunt irure cupidatat irure deserunt. Cillum excepteur quis sunt sunt in ex consectetur adipisicing incididunt labore adipisicing laboris sint.\r\n",
198
+ "registered": "2018-05-30T10:39:01 -02:00",
199
+ "latitude": 39.987328,
200
+ "longitude": -18.121186,
201
+ "tags": [
202
+ "amet",
203
+ "reprehenderit",
204
+ "elit",
205
+ "nostrud",
206
+ "sunt",
207
+ "consequat",
208
+ "fugiat"
209
+ ],
210
+ "friends": [
211
+ {
212
+ "id": 0,
213
+ "name": "Mclaughlin Melendez"
214
+ },
215
+ {
216
+ "id": 1,
217
+ "name": "Freeman Barber"
218
+ },
219
+ {
220
+ "id": 2,
221
+ "name": "Acevedo Newton"
222
+ }
223
+ ],
224
+ "greeting": "Hello, Hahn Stanley! You have 5 unread messages.",
225
+ "favoriteFruit": "banana"
226
+ },
227
+ {
228
+ "_id": "606d4c95769391999f8151f4",
229
+ "index": 5,
230
+ "guid": "eaa5653d-7576-4663-a2d9-58083caeb4df",
231
+ "isActive": true,
232
+ "balance": "$1,380.84",
233
+ "picture": "http://placehold.it/32x32",
234
+ "age": 38,
235
+ "eyeColor": "brown",
236
+ "name": "Paulette Perez",
237
+ "gender": "female",
238
+ "company": "VELOS",
239
+ "email": "pauletteperez@velos.com",
240
+ "phone": "+1 (861) 551-3633",
241
+ "address": "732 Bridgewater Street, Welch, Florida, 989",
242
+ "about": "Cupidatat veniam occaecat magna anim officia Lorem. Commodo amet pariatur deserunt consectetur excepteur dolor dolore ipsum enim duis dolor est. Et ad amet enim esse deserunt cupidatat qui esse. Enim ad sit Lorem sit voluptate dolore sit nisi aliqua sint exercitation. Commodo non ex adipisicing magna. Occaecat consequat minim sunt sint duis veniam mollit ullamco dolor in dolore.\r\n",
243
+ "registered": "2015-09-29T09:39:54 -02:00",
244
+ "latitude": -18.968669,
245
+ "longitude": -33.485271,
246
+ "tags": [
247
+ "mollit",
248
+ "officia",
249
+ "ipsum",
250
+ "veniam",
251
+ "laborum",
252
+ "laboris",
253
+ "consectetur"
254
+ ],
255
+ "friends": [
256
+ {
257
+ "id": 0,
258
+ "name": "Young Bolton"
259
+ },
260
+ {
261
+ "id": 1,
262
+ "name": "Terrie Burke"
263
+ },
264
+ {
265
+ "id": 2,
266
+ "name": "Hill Adams"
267
+ }
268
+ ],
269
+ "greeting": "Hello, Paulette Perez! You have 9 unread messages.",
270
+ "favoriteFruit": "banana"
271
+ },
272
+ {
273
+ "_id": "606d4c9524bd1bd2d57b00c2",
274
+ "index": 6,
275
+ "guid": "e4c19c95-0d20-4919-80c6-7bf05b80b66a",
276
+ "isActive": true,
277
+ "balance": "$3,334.46",
278
+ "picture": "http://placehold.it/32x32",
279
+ "age": 22,
280
+ "eyeColor": "blue",
281
+ "name": "Levine Bray",
282
+ "gender": "male",
283
+ "company": "AUSTEX",
284
+ "email": "levinebray@austex.com",
285
+ "phone": "+1 (968) 524-2455",
286
+ "address": "932 Debevoise Street, Wolcott, Palau, 8906",
287
+ "about": "Qui excepteur deserunt nulla tempor do tempor occaecat commodo et ipsum velit quis adipisicing id. Ullamco ad pariatur excepteur consectetur sit sit. Aute id anim id proident sint est irure culpa amet aute ex. Sint adipisicing aliqua velit nostrud elit aliquip voluptate occaecat duis voluptate occaecat reprehenderit et. Aliquip aute cillum ex cillum officia aliquip. Commodo enim ex aute elit consequat esse eiusmod. Eu cillum officia culpa in eiusmod non.\r\n",
288
+ "registered": "2014-12-29T03:11:31 -01:00",
289
+ "latitude": 55.032528,
290
+ "longitude": 178.669012,
291
+ "tags": [
292
+ "sit",
293
+ "non",
294
+ "et",
295
+ "labore",
296
+ "consectetur",
297
+ "voluptate",
298
+ "ea"
299
+ ],
300
+ "friends": [
301
+ {
302
+ "id": 0,
303
+ "name": "Delores Clay"
304
+ },
305
+ {
306
+ "id": 1,
307
+ "name": "Tanner Elliott"
308
+ },
309
+ {
310
+ "id": 2,
311
+ "name": "Jeanne Randall"
312
+ }
313
+ ],
314
+ "greeting": "Hello, Levine Bray! You have 5 unread messages.",
315
+ "favoriteFruit": "strawberry"
316
+ }
317
+ ]
@@ -0,0 +1 @@
1
+ module.exports = {};
@@ -0,0 +1,40 @@
1
+ import shortid from 'shortid';
2
+ import { IReqoreTableColumn, IReqoreTableData } from '../components/Table';
3
+
4
+ export default {
5
+ columns: [
6
+ {
7
+ dataId: 'id',
8
+ header: 'ID',
9
+ width: 50,
10
+ align: 'center',
11
+ },
12
+ { dataId: 'firstName', header: 'First Name', width: 150 },
13
+ { dataId: 'lastName', header: 'Last Name', width: 150 },
14
+ { dataId: 'address', header: 'Address', width: 300, grow: 2 },
15
+ {
16
+ dataId: 'age',
17
+ header: 'Really long age header',
18
+ width: 50,
19
+ align: 'center',
20
+ intent: 'success',
21
+ },
22
+ { dataId: 'occupation', header: 'Ocuppation', width: 200 },
23
+ { dataId: 'group', header: 'Group', width: 150, intent: 'muted' },
24
+ { dataId: 'date', header: 'Date', width: 150, content: 'time-ago' },
25
+ ] as IReqoreTableColumn[],
26
+ data: [...new Array(100)].map((_val, index) => ({
27
+ id: index,
28
+ firstName: shortid.generate(),
29
+ lastName: shortid.generate(),
30
+ address: `${shortid.generate()}, ${shortid.generate()}, ${shortid.generate()}`,
31
+ age: 99 - index,
32
+ occupation: shortid.generate(),
33
+ group: shortid.generate(),
34
+ date: Date.now(),
35
+ _intent: index === 2 || index === 3 || index === 4 ? 'info' : undefined,
36
+ _selectId: index !== 3 && index !== 6 ? `Row-${index}` : null,
37
+ _disabled: index === 5,
38
+ })) as IReqoreTableData,
39
+ height: 300,
40
+ };
@@ -0,0 +1,38 @@
1
+ import { ComponentMeta, ComponentStory } from '@storybook/react';
2
+ import { IReqoreBreadcrumbItem, IReqoreBreadcrumbsProps } from '../../components/Breadcrumbs';
3
+ import { ReqoreBreadcrumbs } from '../../index';
4
+ import breadcrumbs, { breadcrumbsTabs } from '../../mock/breadcrumbs';
5
+ import { buildTemplate } from '../utils';
6
+
7
+ export default {
8
+ title: 'Components/Breadcrumbs',
9
+ argTypes: {
10
+ withTabs: {
11
+ name: 'With tabs',
12
+ defaultValue: false,
13
+ description: 'Whether tabs should be shown alongside the breadcrumbs',
14
+ control: 'boolean',
15
+ },
16
+ },
17
+ parameters: {
18
+ jest: ['breadcrumbs.test.tsx'],
19
+ },
20
+ } as ComponentMeta<typeof ReqoreBreadcrumbs & { withTabs?: boolean }>;
21
+
22
+ const Template: ComponentStory<typeof ReqoreBreadcrumbs & { withTabs?: boolean }> = (
23
+ args: IReqoreBreadcrumbsProps & { withTabs?: boolean }
24
+ ) => {
25
+ const items = args.withTabs ? [...breadcrumbs, breadcrumbsTabs] : breadcrumbs;
26
+ const customTheme = args.customTheme ? { main: args.customTheme } : undefined;
27
+
28
+ return (
29
+ <ReqoreBreadcrumbs
30
+ {...args}
31
+ items={items as IReqoreBreadcrumbItem[]}
32
+ customTheme={customTheme as any}
33
+ />
34
+ );
35
+ };
36
+
37
+ export const Default = buildTemplate(Template);
38
+ export const WithTabs = buildTemplate(Template, { withTabs: true });