@stack-spot/portal-components 0.0.18 → 1.0.0-dev.1768482754546

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 (533) hide show
  1. package/CHANGELOG.md +670 -0
  2. package/dist/components/AnimatedHeight.d.ts +58 -0
  3. package/dist/components/AnimatedHeight.d.ts.map +1 -0
  4. package/dist/components/AnimatedHeight.js +105 -0
  5. package/dist/components/AnimatedHeight.js.map +1 -0
  6. package/dist/components/AsyncContent.d.ts +46 -0
  7. package/dist/components/AsyncContent.d.ts.map +1 -0
  8. package/dist/components/AsyncContent.js +34 -0
  9. package/dist/components/AsyncContent.js.map +1 -0
  10. package/dist/components/BannerWarning.d.ts +11 -2
  11. package/dist/components/BannerWarning.d.ts.map +1 -1
  12. package/dist/components/BannerWarning.js +45 -3
  13. package/dist/components/BannerWarning.js.map +1 -1
  14. package/dist/components/Breadcrumb/index.d.ts +7 -9
  15. package/dist/components/Breadcrumb/index.d.ts.map +1 -1
  16. package/dist/components/Breadcrumb/index.js +7 -6
  17. package/dist/components/Breadcrumb/index.js.map +1 -1
  18. package/dist/components/Breadcrumb/styled.d.ts +1 -2
  19. package/dist/components/Breadcrumb/styled.d.ts.map +1 -1
  20. package/dist/components/Breadcrumb/styled.js +1 -0
  21. package/dist/components/Breadcrumb/styled.js.map +1 -1
  22. package/dist/components/ButtonLoading.d.ts +11 -0
  23. package/dist/components/ButtonLoading.d.ts.map +1 -0
  24. package/dist/components/ButtonLoading.js +5 -0
  25. package/dist/components/ButtonLoading.js.map +1 -0
  26. package/dist/components/ChatBot.d.ts +5 -0
  27. package/dist/components/ChatBot.d.ts.map +1 -1
  28. package/dist/components/ChatBot.js +11 -6
  29. package/dist/components/ChatBot.js.map +1 -1
  30. package/dist/components/ContentValidateFilter.d.ts +6 -0
  31. package/dist/components/ContentValidateFilter.d.ts.map +1 -0
  32. package/dist/components/ContentValidateFilter.js +8 -0
  33. package/dist/components/ContentValidateFilter.js.map +1 -0
  34. package/dist/components/FadingOverflow.d.ts +37 -0
  35. package/dist/components/FadingOverflow.d.ts.map +1 -0
  36. package/dist/components/FadingOverflow.js +228 -0
  37. package/dist/components/FadingOverflow.js.map +1 -0
  38. package/dist/components/FileTreeView/More.d.ts +23 -0
  39. package/dist/components/FileTreeView/More.d.ts.map +1 -0
  40. package/dist/components/FileTreeView/More.js +55 -0
  41. package/dist/components/FileTreeView/More.js.map +1 -0
  42. package/dist/components/FileTreeView/index.d.ts +32 -0
  43. package/dist/components/FileTreeView/index.d.ts.map +1 -0
  44. package/dist/components/FileTreeView/index.js +91 -0
  45. package/dist/components/FileTreeView/index.js.map +1 -0
  46. package/dist/components/InfiniteScroll.d.ts +11 -0
  47. package/dist/components/InfiniteScroll.d.ts.map +1 -0
  48. package/dist/components/InfiniteScroll.js +14 -0
  49. package/dist/components/InfiniteScroll.js.map +1 -0
  50. package/dist/components/InfoMaintenanceBanner.d.ts +8 -0
  51. package/dist/components/InfoMaintenanceBanner.d.ts.map +1 -0
  52. package/dist/components/InfoMaintenanceBanner.js +19 -0
  53. package/dist/components/InfoMaintenanceBanner.js.map +1 -0
  54. package/dist/components/LazyMarkdown/BlockquoteMd.d.ts +11 -0
  55. package/dist/components/LazyMarkdown/BlockquoteMd.d.ts.map +1 -0
  56. package/dist/components/LazyMarkdown/BlockquoteMd.js +77 -0
  57. package/dist/components/LazyMarkdown/BlockquoteMd.js.map +1 -0
  58. package/dist/components/LazyMarkdown/CodeViewer.d.ts +24 -0
  59. package/dist/components/LazyMarkdown/CodeViewer.d.ts.map +1 -0
  60. package/dist/components/LazyMarkdown/CodeViewer.js +122 -0
  61. package/dist/components/LazyMarkdown/CodeViewer.js.map +1 -0
  62. package/dist/components/LazyMarkdown/Markdown.d.ts +19 -0
  63. package/dist/components/LazyMarkdown/Markdown.d.ts.map +1 -0
  64. package/dist/components/LazyMarkdown/Markdown.js +96 -0
  65. package/dist/components/LazyMarkdown/Markdown.js.map +1 -0
  66. package/dist/components/LazyMarkdown/MarkdownButton.d.ts +19 -0
  67. package/dist/components/LazyMarkdown/MarkdownButton.d.ts.map +1 -0
  68. package/dist/components/LazyMarkdown/MarkdownButton.js +9 -0
  69. package/dist/components/LazyMarkdown/MarkdownButton.js.map +1 -0
  70. package/dist/components/LazyMarkdown/Video.d.ts +11 -0
  71. package/dist/components/LazyMarkdown/Video.d.ts.map +1 -0
  72. package/dist/components/LazyMarkdown/Video.js +10 -0
  73. package/dist/components/LazyMarkdown/Video.js.map +1 -0
  74. package/dist/components/LazyMarkdown/index.d.ts +10 -0
  75. package/dist/components/LazyMarkdown/index.d.ts.map +1 -0
  76. package/dist/components/LazyMarkdown/index.js +8 -0
  77. package/dist/components/LazyMarkdown/index.js.map +1 -0
  78. package/dist/components/Placeholder.d.ts +28 -0
  79. package/dist/components/Placeholder.d.ts.map +1 -0
  80. package/dist/components/Placeholder.js +32 -0
  81. package/dist/components/Placeholder.js.map +1 -0
  82. package/dist/components/ScrollView.d.ts +31 -0
  83. package/dist/components/ScrollView.d.ts.map +1 -0
  84. package/dist/components/ScrollView.js +30 -0
  85. package/dist/components/ScrollView.js.map +1 -0
  86. package/dist/components/Select/BadgeItem.d.ts +4 -0
  87. package/dist/components/Select/BadgeItem.d.ts.map +1 -0
  88. package/dist/components/Select/BadgeItem.js +28 -0
  89. package/dist/components/Select/BadgeItem.js.map +1 -0
  90. package/dist/components/Select/ClearInput.d.ts +3 -0
  91. package/dist/components/Select/ClearInput.d.ts.map +1 -0
  92. package/dist/components/Select/ClearInput.js +18 -0
  93. package/dist/components/Select/ClearInput.js.map +1 -0
  94. package/dist/components/Select/CloseItem.d.ts +3 -0
  95. package/dist/components/Select/CloseItem.d.ts.map +1 -0
  96. package/dist/components/Select/CloseItem.js +26 -0
  97. package/dist/components/Select/CloseItem.js.map +1 -0
  98. package/dist/components/Select/CreatableSelect.d.ts +16 -0
  99. package/dist/components/Select/CreatableSelect.d.ts.map +1 -0
  100. package/dist/components/Select/CreatableSelect.js +114 -0
  101. package/dist/components/Select/CreatableSelect.js.map +1 -0
  102. package/dist/components/Select/CustomMenu.d.ts +8 -0
  103. package/dist/components/Select/CustomMenu.d.ts.map +1 -0
  104. package/dist/components/Select/CustomMenu.js +4 -0
  105. package/dist/components/Select/CustomMenu.js.map +1 -0
  106. package/dist/components/Select/LabelItem.d.ts +3 -0
  107. package/dist/components/Select/LabelItem.d.ts.map +1 -0
  108. package/dist/components/Select/LabelItem.js +4 -0
  109. package/dist/components/Select/LabelItem.js.map +1 -0
  110. package/dist/components/Select/MultiValue.d.ts +3 -0
  111. package/dist/components/Select/MultiValue.d.ts.map +1 -0
  112. package/dist/components/Select/MultiValue.js +27 -0
  113. package/dist/components/Select/MultiValue.js.map +1 -0
  114. package/dist/components/Select/SelectInfiniteScroll.d.ts +14 -0
  115. package/dist/components/Select/SelectInfiniteScroll.d.ts.map +1 -0
  116. package/dist/components/Select/SelectInfiniteScroll.js +31 -0
  117. package/dist/components/Select/SelectInfiniteScroll.js.map +1 -0
  118. package/dist/components/Select/SelectSearch.d.ts +11 -0
  119. package/dist/components/Select/SelectSearch.d.ts.map +1 -0
  120. package/dist/components/Select/SelectSearch.js +156 -0
  121. package/dist/components/Select/SelectSearch.js.map +1 -0
  122. package/dist/components/Select/index.d.ts +6 -0
  123. package/dist/components/Select/index.d.ts.map +1 -0
  124. package/dist/components/Select/index.js +6 -0
  125. package/dist/components/Select/index.js.map +1 -0
  126. package/dist/components/Select/types.d.ts +7 -0
  127. package/dist/components/Select/types.d.ts.map +1 -0
  128. package/dist/components/Select/types.js +2 -0
  129. package/dist/components/Select/types.js.map +1 -0
  130. package/dist/components/SelectionList.d.ts +151 -0
  131. package/dist/components/SelectionList.d.ts.map +1 -0
  132. package/dist/components/SelectionList.js +180 -0
  133. package/dist/components/SelectionList.js.map +1 -0
  134. package/dist/components/StatusCircle.d.ts +24 -0
  135. package/dist/components/StatusCircle.d.ts.map +1 -0
  136. package/dist/components/StatusCircle.js +44 -0
  137. package/dist/components/StatusCircle.js.map +1 -0
  138. package/dist/components/Stepper/Navigation.d.ts +35 -0
  139. package/dist/components/Stepper/Navigation.d.ts.map +1 -0
  140. package/dist/components/Stepper/Navigation.js +41 -0
  141. package/dist/components/Stepper/Navigation.js.map +1 -0
  142. package/dist/components/Stepper/Step.d.ts +18 -0
  143. package/dist/components/Stepper/Step.d.ts.map +1 -0
  144. package/dist/components/Stepper/Step.js +13 -0
  145. package/dist/components/Stepper/Step.js.map +1 -0
  146. package/dist/components/Stepper/Stepper.d.ts +45 -0
  147. package/dist/components/Stepper/Stepper.d.ts.map +1 -0
  148. package/dist/components/Stepper/Stepper.js +57 -0
  149. package/dist/components/Stepper/Stepper.js.map +1 -0
  150. package/dist/components/Stepper/headers.d.ts +19 -0
  151. package/dist/components/Stepper/headers.d.ts.map +1 -0
  152. package/dist/components/Stepper/headers.js +40 -0
  153. package/dist/components/Stepper/headers.js.map +1 -0
  154. package/dist/components/Stepper/index.d.ts +4 -0
  155. package/dist/components/Stepper/index.d.ts.map +1 -0
  156. package/dist/components/Stepper/index.js +4 -0
  157. package/dist/components/Stepper/index.js.map +1 -0
  158. package/dist/components/Table/HeaderItem.d.ts +18 -0
  159. package/dist/components/Table/HeaderItem.d.ts.map +1 -0
  160. package/dist/components/Table/HeaderItem.js +14 -0
  161. package/dist/components/Table/HeaderItem.js.map +1 -0
  162. package/dist/components/Table/SettingsVerticalMenu.d.ts +14 -0
  163. package/dist/components/Table/SettingsVerticalMenu.d.ts.map +1 -0
  164. package/dist/components/Table/SettingsVerticalMenu.js +14 -0
  165. package/dist/components/Table/SettingsVerticalMenu.js.map +1 -0
  166. package/dist/components/Table/StyledLinkTable.d.ts +5 -0
  167. package/dist/components/Table/StyledLinkTable.d.ts.map +1 -0
  168. package/dist/components/Table/StyledLinkTable.js +13 -0
  169. package/dist/components/Table/StyledLinkTable.js.map +1 -0
  170. package/dist/components/Table/TableData.d.ts +37 -0
  171. package/dist/components/Table/TableData.d.ts.map +1 -0
  172. package/dist/components/Table/TableData.js +84 -0
  173. package/dist/components/Table/TableData.js.map +1 -0
  174. package/dist/components/Table/index.d.ts +3 -0
  175. package/dist/components/Table/index.d.ts.map +1 -0
  176. package/dist/components/Table/index.js +3 -0
  177. package/dist/components/Table/index.js.map +1 -0
  178. package/dist/components/TimelineSection.d.ts +24 -0
  179. package/dist/components/TimelineSection.d.ts.map +1 -0
  180. package/dist/components/TimelineSection.js +37 -0
  181. package/dist/components/TimelineSection.js.map +1 -0
  182. package/dist/components/error/ErrorFeedback.d.ts +58 -0
  183. package/dist/components/error/ErrorFeedback.d.ts.map +1 -0
  184. package/dist/components/error/ErrorFeedback.js +110 -0
  185. package/dist/components/error/ErrorFeedback.js.map +1 -0
  186. package/dist/components/error/NotFound.d.ts +4 -0
  187. package/dist/components/error/NotFound.d.ts.map +1 -0
  188. package/dist/components/error/NotFound.js +19 -0
  189. package/dist/components/error/NotFound.js.map +1 -0
  190. package/dist/components/error/UnderMaintenance.d.ts +4 -0
  191. package/dist/components/error/UnderMaintenance.d.ts.map +1 -0
  192. package/dist/components/error/UnderMaintenance.js +25 -0
  193. package/dist/components/error/UnderMaintenance.js.map +1 -0
  194. package/dist/components/error/index.d.ts +4 -0
  195. package/dist/components/error/index.d.ts.map +1 -0
  196. package/dist/components/error/index.js +4 -0
  197. package/dist/components/error/index.js.map +1 -0
  198. package/dist/components/form/Form/Form.d.ts +15 -0
  199. package/dist/components/form/Form/Form.d.ts.map +1 -0
  200. package/dist/components/form/Form/Form.js +48 -0
  201. package/dist/components/form/Form/Form.js.map +1 -0
  202. package/dist/components/form/Form/FormGroup.d.ts +37 -0
  203. package/dist/components/form/Form/FormGroup.d.ts.map +1 -0
  204. package/dist/components/form/Form/FormGroup.js +72 -0
  205. package/dist/components/form/Form/FormGroup.js.map +1 -0
  206. package/dist/components/form/Form/index.d.ts +3 -0
  207. package/dist/components/form/Form/index.d.ts.map +1 -0
  208. package/dist/components/form/Form/index.js +3 -0
  209. package/dist/components/form/Form/index.js.map +1 -0
  210. package/dist/components/form/SearchInput.d.ts +9 -0
  211. package/dist/components/form/SearchInput.d.ts.map +1 -0
  212. package/dist/components/form/SearchInput.js +28 -0
  213. package/dist/components/form/SearchInput.js.map +1 -0
  214. package/dist/components/form/Select/CustomSelect.d.ts +81 -0
  215. package/dist/components/form/Select/CustomSelect.d.ts.map +1 -0
  216. package/dist/components/form/Select/CustomSelect.js +178 -0
  217. package/dist/components/form/Select/CustomSelect.js.map +1 -0
  218. package/dist/components/form/Select/DetailedSelect.d.ts +65 -0
  219. package/dist/components/form/Select/DetailedSelect.d.ts.map +1 -0
  220. package/dist/components/form/Select/DetailedSelect.js +80 -0
  221. package/dist/components/form/Select/DetailedSelect.js.map +1 -0
  222. package/dist/components/form/Select/Select.d.ts +47 -0
  223. package/dist/components/form/Select/Select.d.ts.map +1 -0
  224. package/dist/components/form/Select/Select.js +62 -0
  225. package/dist/components/form/Select/Select.js.map +1 -0
  226. package/dist/components/form/Select/index.d.ts +5 -0
  227. package/dist/components/form/Select/index.d.ts.map +1 -0
  228. package/dist/components/form/Select/index.js +5 -0
  229. package/dist/components/form/Select/index.js.map +1 -0
  230. package/dist/components/form/Select/styled.d.ts +5 -0
  231. package/dist/components/form/Select/styled.d.ts.map +1 -0
  232. package/dist/components/form/Select/styled.js +165 -0
  233. package/dist/components/form/Select/styled.js.map +1 -0
  234. package/dist/components/form/Select/types.d.ts +103 -0
  235. package/dist/components/form/Select/types.d.ts.map +1 -0
  236. package/dist/components/form/Select/types.js +2 -0
  237. package/dist/components/form/Select/types.js.map +1 -0
  238. package/dist/components/form/Select/utils.d.ts +3 -0
  239. package/dist/components/form/Select/utils.d.ts.map +1 -0
  240. package/dist/components/form/Select/utils.js +20 -0
  241. package/dist/components/form/Select/utils.js.map +1 -0
  242. package/dist/components/notification/NotificationComponent.d.ts +31 -0
  243. package/dist/components/notification/NotificationComponent.d.ts.map +1 -0
  244. package/dist/components/notification/NotificationComponent.js +176 -0
  245. package/dist/components/notification/NotificationComponent.js.map +1 -0
  246. package/dist/components/notification/NotificationItem.d.ts +51 -0
  247. package/dist/components/notification/NotificationItem.d.ts.map +1 -0
  248. package/dist/components/notification/NotificationItem.js +165 -0
  249. package/dist/components/notification/NotificationItem.js.map +1 -0
  250. package/dist/components/notification/NotificationList.d.ts +47 -0
  251. package/dist/components/notification/NotificationList.d.ts.map +1 -0
  252. package/dist/components/notification/NotificationList.js +82 -0
  253. package/dist/components/notification/NotificationList.js.map +1 -0
  254. package/dist/components/notification/NotificationPlaceholder.d.ts +13 -0
  255. package/dist/components/notification/NotificationPlaceholder.d.ts.map +1 -0
  256. package/dist/components/notification/NotificationPlaceholder.js +34 -0
  257. package/dist/components/notification/NotificationPlaceholder.js.map +1 -0
  258. package/dist/components/notification/types.d.ts +60 -0
  259. package/dist/components/notification/types.d.ts.map +1 -0
  260. package/dist/components/notification/types.js +7 -0
  261. package/dist/components/notification/types.js.map +1 -0
  262. package/dist/containers/NotificationsPage.d.ts +2 -0
  263. package/dist/containers/NotificationsPage.d.ts.map +1 -0
  264. package/dist/containers/NotificationsPage.js +71 -0
  265. package/dist/containers/NotificationsPage.js.map +1 -0
  266. package/dist/context/anchor.d.ts +27 -0
  267. package/dist/context/anchor.d.ts.map +1 -0
  268. package/dist/context/anchor.js +23 -0
  269. package/dist/context/anchor.js.map +1 -0
  270. package/dist/context/loading.d.ts +27 -0
  271. package/dist/context/loading.d.ts.map +1 -0
  272. package/dist/context/loading.js +24 -0
  273. package/dist/context/loading.js.map +1 -0
  274. package/dist/context/notification/LazyNotificationList.d.ts +28 -0
  275. package/dist/context/notification/LazyNotificationList.d.ts.map +1 -0
  276. package/dist/context/notification/LazyNotificationList.js +136 -0
  277. package/dist/context/notification/LazyNotificationList.js.map +1 -0
  278. package/dist/context/notification/NotificationController.d.ts +25 -0
  279. package/dist/context/notification/NotificationController.d.ts.map +1 -0
  280. package/dist/context/notification/NotificationController.js +153 -0
  281. package/dist/context/notification/NotificationController.js.map +1 -0
  282. package/dist/context/notification/context.d.ts +8 -0
  283. package/dist/context/notification/context.d.ts.map +1 -0
  284. package/dist/context/notification/context.js +12 -0
  285. package/dist/context/notification/context.js.map +1 -0
  286. package/dist/context/notification/hooks.d.ts +18 -0
  287. package/dist/context/notification/hooks.d.ts.map +1 -0
  288. package/dist/context/notification/hooks.js +92 -0
  289. package/dist/context/notification/hooks.js.map +1 -0
  290. package/dist/context/notification/types.d.ts +65 -0
  291. package/dist/context/notification/types.d.ts.map +1 -0
  292. package/dist/context/notification/types.js +2 -0
  293. package/dist/context/notification/types.js.map +1 -0
  294. package/dist/hooks/date.d.ts +18 -0
  295. package/dist/hooks/date.d.ts.map +1 -0
  296. package/dist/hooks/date.js +68 -0
  297. package/dist/hooks/date.js.map +1 -0
  298. package/dist/hooks/keyboard.d.ts +64 -0
  299. package/dist/hooks/keyboard.d.ts.map +1 -0
  300. package/dist/hooks/keyboard.js +84 -0
  301. package/dist/hooks/keyboard.js.map +1 -0
  302. package/dist/hooks/manual-render.d.ts +8 -0
  303. package/dist/hooks/manual-render.d.ts.map +1 -0
  304. package/dist/hooks/manual-render.js +10 -0
  305. package/dist/hooks/manual-render.js.map +1 -0
  306. package/dist/hooks/service-now.d.ts +32 -1
  307. package/dist/hooks/service-now.d.ts.map +1 -1
  308. package/dist/hooks/service-now.js +58 -18
  309. package/dist/hooks/service-now.js.map +1 -1
  310. package/dist/hooks/text.d.ts +9 -0
  311. package/dist/hooks/text.d.ts.map +1 -0
  312. package/dist/hooks/text.js +24 -0
  313. package/dist/hooks/text.js.map +1 -0
  314. package/dist/hooks/title.d.ts +13 -0
  315. package/dist/hooks/title.d.ts.map +1 -1
  316. package/dist/hooks/title.js +13 -0
  317. package/dist/hooks/title.js.map +1 -1
  318. package/dist/hooks/use-effect-once.d.ts.map +1 -1
  319. package/dist/hooks/use-effect-once.js.map +1 -1
  320. package/dist/index.d.ts +14 -4
  321. package/dist/index.d.ts.map +1 -1
  322. package/dist/index.js +14 -4
  323. package/dist/index.js.map +1 -1
  324. package/dist/notifications.d.ts +11 -0
  325. package/dist/notifications.d.ts.map +1 -0
  326. package/dist/notifications.js +10 -0
  327. package/dist/notifications.js.map +1 -0
  328. package/dist/svg/AI.d.ts +8 -0
  329. package/dist/svg/AI.d.ts.map +1 -0
  330. package/dist/svg/AI.js +15 -0
  331. package/dist/svg/AI.js.map +1 -0
  332. package/dist/svg/CS.d.ts +8 -0
  333. package/dist/svg/CS.d.ts.map +1 -0
  334. package/dist/svg/CS.js +15 -0
  335. package/dist/svg/CS.js.map +1 -0
  336. package/dist/svg/EDP.d.ts +8 -0
  337. package/dist/svg/EDP.d.ts.map +1 -0
  338. package/dist/svg/EDP.js +15 -0
  339. package/dist/svg/EDP.js.map +1 -0
  340. package/dist/svg/Forbidden.d.ts +5 -0
  341. package/dist/svg/Forbidden.d.ts.map +1 -0
  342. package/dist/svg/Forbidden.js +4 -0
  343. package/dist/svg/Forbidden.js.map +1 -0
  344. package/dist/svg/GenericPlaceholder.d.ts +7 -0
  345. package/dist/svg/GenericPlaceholder.d.ts.map +1 -0
  346. package/dist/svg/GenericPlaceholder.js +4 -0
  347. package/dist/svg/GenericPlaceholder.js.map +1 -0
  348. package/dist/svg/HUB.d.ts +8 -0
  349. package/dist/svg/HUB.d.ts.map +1 -0
  350. package/dist/svg/HUB.js +15 -0
  351. package/dist/svg/HUB.js.map +1 -0
  352. package/dist/svg/Logo.d.ts +5 -0
  353. package/dist/svg/Logo.d.ts.map +1 -0
  354. package/dist/svg/Logo.js +8 -0
  355. package/dist/svg/Logo.js.map +1 -0
  356. package/dist/svg/MiniLogo.d.ts +8 -0
  357. package/dist/svg/MiniLogo.d.ts.map +1 -0
  358. package/dist/svg/MiniLogo.js +6 -0
  359. package/dist/svg/MiniLogo.js.map +1 -0
  360. package/dist/svg/NotFound.d.ts +5 -0
  361. package/dist/svg/NotFound.d.ts.map +1 -0
  362. package/dist/svg/NotFound.js +4 -0
  363. package/dist/svg/NotFound.js.map +1 -0
  364. package/dist/svg/ServerError.d.ts +5 -0
  365. package/dist/svg/ServerError.d.ts.map +1 -0
  366. package/dist/svg/ServerError.js +4 -0
  367. package/dist/svg/ServerError.js.map +1 -0
  368. package/dist/svg/Unauthenticated.d.ts +5 -0
  369. package/dist/svg/Unauthenticated.d.ts.map +1 -0
  370. package/dist/svg/Unauthenticated.js +4 -0
  371. package/dist/svg/Unauthenticated.js.map +1 -0
  372. package/dist/svg/index.d.ts +12 -0
  373. package/dist/svg/index.d.ts.map +1 -0
  374. package/dist/svg/index.js +12 -0
  375. package/dist/svg/index.js.map +1 -0
  376. package/dist/utils/accessibility.d.ts +75 -0
  377. package/dist/utils/accessibility.d.ts.map +1 -0
  378. package/dist/utils/accessibility.js +123 -0
  379. package/dist/utils/accessibility.js.map +1 -0
  380. package/dist/utils/cookie.d.ts +34 -0
  381. package/dist/utils/cookie.d.ts.map +1 -0
  382. package/dist/utils/cookie.js +69 -0
  383. package/dist/utils/cookie.js.map +1 -0
  384. package/dist/utils/promise.d.ts +2 -0
  385. package/dist/utils/promise.d.ts.map +1 -0
  386. package/dist/utils/promise.js +6 -0
  387. package/dist/utils/promise.js.map +1 -0
  388. package/dist/utils/read-file.d.ts +2 -0
  389. package/dist/utils/read-file.d.ts.map +1 -0
  390. package/dist/utils/read-file.js +14 -0
  391. package/dist/utils/read-file.js.map +1 -0
  392. package/package.dev.json +3 -0
  393. package/package.json +53 -14
  394. package/package.stg.json +3 -0
  395. package/readme.md +55 -13
  396. package/src/components/AnimatedHeight.tsx +174 -0
  397. package/src/components/AsyncContent.tsx +78 -0
  398. package/src/components/BannerWarning.tsx +89 -19
  399. package/src/components/Breadcrumb/index.tsx +15 -13
  400. package/src/components/Breadcrumb/styled.ts +2 -1
  401. package/src/components/ButtonLoading.tsx +29 -0
  402. package/src/components/ChatBot.tsx +12 -7
  403. package/src/components/ContentValidateFilter.tsx +15 -0
  404. package/src/components/FadingOverflow.tsx +265 -0
  405. package/src/components/FileTreeView/More.tsx +114 -0
  406. package/src/components/FileTreeView/index.tsx +186 -0
  407. package/src/components/InfiniteScroll.tsx +24 -0
  408. package/src/components/InfoMaintenanceBanner.tsx +25 -0
  409. package/src/components/LazyMarkdown/BlockquoteMd.tsx +107 -0
  410. package/src/components/LazyMarkdown/CodeViewer.tsx +161 -0
  411. package/src/components/LazyMarkdown/Markdown.tsx +122 -0
  412. package/src/components/LazyMarkdown/MarkdownButton.tsx +24 -0
  413. package/src/components/LazyMarkdown/Video.tsx +13 -0
  414. package/src/components/LazyMarkdown/index.tsx +21 -0
  415. package/src/components/Placeholder.tsx +124 -0
  416. package/src/components/ScrollView.tsx +57 -0
  417. package/src/components/Select/BadgeItem.tsx +58 -0
  418. package/src/components/Select/ClearInput.tsx +24 -0
  419. package/src/components/Select/CloseItem.tsx +38 -0
  420. package/src/components/Select/CreatableSelect.tsx +155 -0
  421. package/src/components/Select/CustomMenu.tsx +16 -0
  422. package/src/components/Select/LabelItem.tsx +8 -0
  423. package/src/components/Select/MultiValue.tsx +49 -0
  424. package/src/components/Select/SelectInfiniteScroll.tsx +82 -0
  425. package/src/components/Select/SelectSearch.tsx +195 -0
  426. package/src/components/Select/index.tsx +7 -0
  427. package/src/components/Select/types.ts +8 -0
  428. package/src/components/SelectionList.tsx +427 -0
  429. package/src/components/StatusCircle.tsx +67 -0
  430. package/src/components/Stepper/Navigation.tsx +97 -0
  431. package/src/components/Stepper/Step.tsx +30 -0
  432. package/src/components/Stepper/Stepper.tsx +113 -0
  433. package/src/components/Stepper/headers.tsx +64 -0
  434. package/src/components/Stepper/index.ts +3 -0
  435. package/src/components/Table/HeaderItem.tsx +52 -0
  436. package/src/components/Table/SettingsVerticalMenu.tsx +50 -0
  437. package/src/components/Table/StyledLinkTable.tsx +22 -0
  438. package/src/components/Table/TableData.tsx +251 -0
  439. package/src/components/Table/index.tsx +2 -0
  440. package/src/components/TimelineSection.tsx +66 -0
  441. package/src/components/error/ErrorFeedback.tsx +217 -0
  442. package/src/components/error/NotFound.tsx +24 -0
  443. package/src/components/error/UnderMaintenance.tsx +30 -0
  444. package/src/components/error/index.ts +4 -0
  445. package/src/components/form/Form/Form.tsx +101 -0
  446. package/src/components/form/Form/FormGroup.tsx +221 -0
  447. package/src/components/form/Form/index.ts +2 -0
  448. package/src/components/form/SearchInput.tsx +69 -0
  449. package/src/components/form/Select/CustomSelect.tsx +232 -0
  450. package/src/components/form/Select/DetailedSelect.tsx +85 -0
  451. package/src/components/form/Select/Select.tsx +67 -0
  452. package/src/components/form/Select/index.ts +4 -0
  453. package/src/components/form/Select/styled.ts +165 -0
  454. package/src/components/form/Select/types.ts +112 -0
  455. package/src/components/form/Select/utils.tsx +28 -0
  456. package/src/components/notification/NotificationComponent.tsx +340 -0
  457. package/src/components/notification/NotificationItem.tsx +353 -0
  458. package/src/components/notification/NotificationList.tsx +185 -0
  459. package/src/components/notification/NotificationPlaceholder.tsx +60 -0
  460. package/src/components/notification/types.ts +72 -0
  461. package/src/containers/NotificationsPage.tsx +120 -0
  462. package/src/context/anchor.tsx +37 -0
  463. package/src/context/loading.tsx +36 -0
  464. package/src/context/notification/LazyNotificationList.ts +103 -0
  465. package/src/context/notification/NotificationController.ts +119 -0
  466. package/src/context/notification/context.tsx +23 -0
  467. package/src/context/notification/hooks.ts +98 -0
  468. package/src/context/notification/types.ts +71 -0
  469. package/src/hooks/date.ts +68 -0
  470. package/src/hooks/keyboard.tsx +128 -0
  471. package/src/hooks/manual-render.tsx +10 -0
  472. package/src/hooks/service-now.tsx +64 -19
  473. package/src/hooks/text.tsx +30 -0
  474. package/src/hooks/title.tsx +13 -0
  475. package/src/index.ts +14 -6
  476. package/src/notifications.ts +11 -0
  477. package/src/svg/AI.tsx +41 -0
  478. package/src/svg/CS.tsx +48 -0
  479. package/src/svg/EDP.tsx +31 -0
  480. package/src/svg/Forbidden.tsx +22 -0
  481. package/src/svg/GenericPlaceholder.tsx +16 -0
  482. package/src/svg/HUB.tsx +48 -0
  483. package/src/svg/Logo.tsx +16 -0
  484. package/src/svg/MiniLogo.tsx +12 -0
  485. package/src/svg/NotFound.tsx +16 -0
  486. package/src/svg/ServerError.tsx +33 -0
  487. package/src/svg/Unauthenticated.tsx +16 -0
  488. package/src/svg/index.ts +11 -0
  489. package/src/utils/accessibility.ts +135 -0
  490. package/src/utils/cookie.ts +73 -0
  491. package/src/utils/promise.ts +5 -0
  492. package/src/utils/read-file.ts +16 -0
  493. package/tsconfig.json +1 -0
  494. package/dist/components/Login.d.ts +0 -26
  495. package/dist/components/Login.d.ts.map +0 -1
  496. package/dist/components/Login.js +0 -100
  497. package/dist/components/Login.js.map +0 -1
  498. package/dist/components/MiniLogo.d.ts +0 -6
  499. package/dist/components/MiniLogo.d.ts.map +0 -1
  500. package/dist/components/MiniLogo.js +0 -4
  501. package/dist/components/MiniLogo.js.map +0 -1
  502. package/dist/components/tour/StepContainer.d.ts +0 -13
  503. package/dist/components/tour/StepContainer.d.ts.map +0 -1
  504. package/dist/components/tour/StepContainer.js +0 -48
  505. package/dist/components/tour/StepContainer.js.map +0 -1
  506. package/dist/components/tour/StepNavigation.d.ts +0 -13
  507. package/dist/components/tour/StepNavigation.d.ts.map +0 -1
  508. package/dist/components/tour/StepNavigation.js +0 -20
  509. package/dist/components/tour/StepNavigation.js.map +0 -1
  510. package/dist/components/tour/StepTitle.d.ts +0 -7
  511. package/dist/components/tour/StepTitle.d.ts.map +0 -1
  512. package/dist/components/tour/StepTitle.js +0 -5
  513. package/dist/components/tour/StepTitle.js.map +0 -1
  514. package/dist/components/tour/context.d.ts +0 -17
  515. package/dist/components/tour/context.d.ts.map +0 -1
  516. package/dist/components/tour/context.js +0 -48
  517. package/dist/components/tour/context.js.map +0 -1
  518. package/dist/components/tour/index.d.ts +0 -9
  519. package/dist/components/tour/index.d.ts.map +0 -1
  520. package/dist/components/tour/index.js +0 -4
  521. package/dist/components/tour/index.js.map +0 -1
  522. package/dist/components/tour/utils.d.ts +0 -13
  523. package/dist/components/tour/utils.d.ts.map +0 -1
  524. package/dist/components/tour/utils.js +0 -43
  525. package/dist/components/tour/utils.js.map +0 -1
  526. package/src/components/Login.tsx +0 -157
  527. package/src/components/MiniLogo.tsx +0 -32
  528. package/src/components/tour/StepContainer.tsx +0 -67
  529. package/src/components/tour/StepNavigation.tsx +0 -32
  530. package/src/components/tour/StepTitle.tsx +0 -17
  531. package/src/components/tour/context.tsx +0 -56
  532. package/src/components/tour/index.ts +0 -7
  533. package/src/components/tour/utils.tsx +0 -65
@@ -0,0 +1,57 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Box, Flex } from '@citric/core';
3
+ import { createContext, useState } from 'react';
4
+ import { styled } from 'styled-components';
5
+ import { StepperHeaders } from './headers.js';
6
+ const StepperContext = createContext({
7
+ activeIndex: 0,
8
+ stepsData: {},
9
+ setStepData: () => { },
10
+ getStepData: () => { },
11
+ goToNextStep: () => { },
12
+ goToPreviousStep: () => { },
13
+ goToStep: () => { },
14
+ });
15
+ const Wrapper = styled(Box) `
16
+ width: 100%;
17
+ gap: 1.5rem;
18
+ `;
19
+ const ContentWrapper = styled(Flex) `
20
+ width: 100%;
21
+ `;
22
+ /**
23
+ * Renders a component that provides an interface of steps for creating some content.
24
+ *
25
+ * The component wraps the Step component.
26
+ */
27
+ const Stepper = ({ children }) => {
28
+ const [activeIndex, setActiveIndex] = useState(0);
29
+ const [stepsData, setStepsData] = useState({});
30
+ const headers = children.map((child) => ({ title: child.props.title }));
31
+ const setStepData = (name, data) => {
32
+ setStepsData({ ...stepsData, ...{ [name]: data } });
33
+ };
34
+ const getStepData = (name) => stepsData[name];
35
+ const setNextStep = () => {
36
+ if (activeIndex < (children.length - 1)) {
37
+ setActiveIndex(activeIndex + 1);
38
+ }
39
+ };
40
+ const setPreviousStep = () => {
41
+ if (activeIndex > 0) {
42
+ setActiveIndex(activeIndex - 1);
43
+ }
44
+ };
45
+ const contextValue = {
46
+ activeIndex,
47
+ stepsData,
48
+ setStepData,
49
+ getStepData,
50
+ goToNextStep: setNextStep,
51
+ goToPreviousStep: setPreviousStep,
52
+ goToStep: setActiveIndex,
53
+ };
54
+ return (_jsx(StepperContext.Provider, { value: contextValue, children: _jsxs(Wrapper, { children: [_jsx(StepperHeaders, { headers }), _jsx(ContentWrapper, { children: children[activeIndex] })] }) }));
55
+ };
56
+ export { StepperContext, Stepper };
57
+ //# sourceMappingURL=Stepper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stepper.js","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAoB,aAAa,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAmC1C,MAAM,cAAc,GAAG,aAAa,CAAsB;IACxD,WAAW,EAAE,CAAC;IACd,SAAS,EAAE,EAAE;IACb,WAAW,EAAE,GAAG,EAAE,GAAE,CAAC;IACrB,WAAW,EAAE,GAAG,EAAE,GAAE,CAAC;IACrB,YAAY,EAAE,GAAG,EAAE,GAAE,CAAC;IACtB,gBAAgB,EAAE,GAAG,EAAE,GAAE,CAAC;IAC1B,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC;CACnB,CAAC,CAAA;AAMF,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;;;CAG1B,CAAA;AAED,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;;CAElC,CAAA;AAED;;;;GAIG;AAEH,MAAM,OAAO,GAAqB,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACjD,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAS,CAAC,CAAC,CAAA;IACzD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAsB,EAAE,CAAC,CAAA;IACn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 interface StepperHeader {
3
+ /**
4
+ * Title that is passed to the step component is used here.
5
+ */
6
+ title: string;
7
+ }
8
+ export interface StepperHeadersProps {
9
+ headers: StepperHeader[];
10
+ }
11
+ /**
12
+ * Renders a component that represents the visual part of a step within the stepper component.
13
+ * The initial color of the step is primary.500 and when completed it is changed to the success.500 color.
14
+ *
15
+ * The component stepper wraps this component.
16
+ */
17
+ export declare const StepperHeaders: FC<StepperHeadersProps>;
18
+ export {};
19
+ //# sourceMappingURL=headers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"headers.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/headers.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAc,MAAM,OAAO,CAAA;AA6BtC,UAAU,aAAa;IACrB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,aAAa,EAAE,CAAC;CAC1B;AAED;;;;;GAKG;AAEH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAclD,CAAA"}
@@ -0,0 +1,40 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Box, Flex, Text } from '@citric/core';
3
+ import { theme } from '@stack-spot/portal-theme';
4
+ import { useContext } from 'react';
5
+ import { styled } from 'styled-components';
6
+ import { StepperContext } from './Stepper.js';
7
+ const StyledStepHeader = styled(Box) `
8
+ flex: 1;
9
+ border-top: 0.25rem solid ${theme.color.light[600]};
10
+ padding-top: 1rem;
11
+
12
+ &.active {
13
+ border-color: ${theme.color.primary[500]};
14
+ }
15
+
16
+ &.finished {
17
+ flex: unset;
18
+ width: 4.5rem;
19
+ border-color: ${theme.color.success[500]};
20
+ }
21
+ `;
22
+ const StyledStepHeaderText = styled(Text) `
23
+ color: ${theme.color.light.contrastText};
24
+ width: 100%;
25
+ height: 1.5rem;
26
+ white-space: nowrap;
27
+ text-overflow: ellipsis;
28
+ overflow: hidden;
29
+ `;
30
+ /**
31
+ * Renders a component that represents the visual part of a step within the stepper component.
32
+ * The initial color of the step is primary.500 and when completed it is changed to the success.500 color.
33
+ *
34
+ * The component stepper wraps this component.
35
+ */
36
+ export const StepperHeaders = ({ headers }) => {
37
+ const { activeIndex } = useContext(StepperContext);
38
+ return (_jsx(Flex, { sx: { gap: '1rem' }, children: headers.map((header, index) => (_jsx(StyledStepHeader, { className: index < activeIndex ? 'finished' : (index === activeIndex ? 'active' : ''), children: _jsx(StyledStepHeaderText, { children: header.title }) }, header.title))) }));
39
+ };
40
+ //# sourceMappingURL=headers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"headers.js","sourceRoot":"","sources":["../../../src/components/Stepper/headers.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAM,UAAU,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE1C,MAAM,gBAAgB,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;;8BAEN,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;;;;oBAIhC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;;;;;;oBAMxB,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;;CAE3C,CAAA;AAED,MAAM,oBAAoB,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;WAC9B,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY;;;;;;CAMxC,CAAA;AAaD;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,cAAc,GAA4B,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IACrE,MAAM,EAAE,WAAW,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAA;IAClD,OAAO,CACL,KAAC,IAAI,IAAC,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,YACtB,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAC9B,KAAC,gBAAgB,IAEf,SAAS,EAAE,KAAK,GAAG,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,YAErF,KAAC,oBAAoB,cAAE,MAAM,CAAC,KAAK,GAAwB,IAHtD,MAAM,CAAC,KAAK,CAIA,CACpB,CAAC,GACG,CACR,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,4 @@
1
+ export { Stepper, StepperContext } from './Stepper.js';
2
+ export { Step } from './Step.js';
3
+ export { StepperNavigation } from './Navigation.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA"}
@@ -0,0 +1,4 @@
1
+ export { Stepper, StepperContext } from './Stepper.js';
2
+ export { Step } from './Step.js';
3
+ export { StepperNavigation } from './Navigation.js';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Stepper/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA"}
@@ -0,0 +1,18 @@
1
+ import { Flex } from '@citric/core';
2
+ import { Props as FlexProps } from '@citric/core/dist/Flex.js';
3
+ import React, { ReactNode } from 'react';
4
+ export type SortTypes = 'ASC' | 'DESC' | undefined;
5
+ interface HeaderSortProps extends FlexProps {
6
+ children: ReactNode | string;
7
+ sortType: SortTypes;
8
+ onSort: (sortType: SortTypes) => void;
9
+ }
10
+ export declare const parseParams: ({ key, sort }: {
11
+ key: string | undefined;
12
+ sort: "ASC" | "DESC" | undefined;
13
+ }) => string | undefined;
14
+ export declare const HeaderSort: React.FC<HeaderSortProps>;
15
+ type FullFlexProps = Parameters<typeof Flex>[0];
16
+ export declare const Header: React.FC<FullFlexProps>;
17
+ export {};
18
+ //# sourceMappingURL=HeaderItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderItem.d.ts","sourceRoot":"","sources":["../../../src/components/Table/HeaderItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,IAAI,EAAyB,MAAM,cAAc,CAAA;AAClE,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAE3D,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,CAAA;AAElD,UAAU,eAAgB,SAAQ,SAAS;IACzC,QAAQ,EAAE,SAAS,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,EAAE,CAAC,QAAQ,EAAE,SAAS,KAAK,IAAI,CAAC;CACvC;AAED,eAAO,MAAM,WAAW,GAAI,eAAe;IAAE,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,SAAS,CAAA;CAAE,uBAC9B,CAAA;AAU1E,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAiBhD,CAAA;AAED,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;AAE/C,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAM1C,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Button, Flex, IconBox, Text } from '@citric/core';
3
+ import { SortAscending, SortDescending } from '@citric/icons';
4
+ export const parseParams = ({ key, sort }) => key && sort ? `${key?.toUpperCase()}_${sort?.toUpperCase()}` : undefined;
5
+ function next(current) {
6
+ switch (current) {
7
+ case undefined: return 'ASC';
8
+ case 'ASC': return 'DESC';
9
+ case 'DESC': return undefined;
10
+ }
11
+ }
12
+ export const HeaderSort = ({ children, sortType, onSort, ...props }) => (_jsxs(Flex, { as: Button, appearance: "text", alignItems: "center", flexWrap: "nowrap", sx: { '&:hover, &:active, &:focus': { borderColor: 'transparent' }, padding: 0 }, onClick: () => onSort(next(sortType)), ...props, children: [_jsx(Text, { appearance: "microtext1", mr: "2", colorScheme: "light.700", children: children }), _jsxs(IconBox, { colorIcon: "inverse.500", size: "xs", children: [sortType === 'ASC' && _jsx(SortAscending, {}), sortType === 'DESC' && _jsx(SortDescending, {})] })] }));
13
+ export const Header = ({ children, ...props }) => (_jsx(Flex, { alignItems: "center", ...props, children: _jsx(Text, { appearance: "microtext1", mr: "2", colorScheme: "light.700", children: children }) }));
14
+ //# sourceMappingURL=HeaderItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderItem.js","sourceRoot":"","sources":["../../../src/components/Table/HeaderItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAU,IAAI,EAAE,MAAM,cAAc,CAAA;AAElE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAW7D,MAAM,CAAC,MAAM,WAAW,GAAG,CA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EAAE,CAAC,CACzE,KAAC,IAAI,IAAC,UAAU,EAAC,QAAQ,KAAK,KAAK,YACjC,KAAC,IAAI,IAAC,UAAU,EAAC,YAAY,EAAC,EAAE,EAAC,GAAG,EAAC,WAAW,EAAC,WAAW,YACzD,QAAQ,GACJ,GACF,CACR,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { OneOfIconSizes } from '@citric/core';
2
+ import { SxProperties } from '@citric/core/dist/sx.js';
3
+ import { SelectionList } from '@stack-spot/portal-components/SelectionList';
4
+ interface SettingsVerticalMenuProps {
5
+ id: string;
6
+ buttonAriaLabel?: string;
7
+ size?: OneOfIconSizes;
8
+ sxIconButton?: SxProperties;
9
+ buttonDataTestHint?: string;
10
+ items: React.ComponentProps<typeof SelectionList>['items'];
11
+ }
12
+ export declare const SettingsVerticalMenu: ({ id, buttonAriaLabel, size, buttonDataTestHint, sxIconButton, items }: SettingsVerticalMenuProps) => import("react/jsx-runtime").JSX.Element | null;
13
+ export {};
14
+ //# sourceMappingURL=SettingsVerticalMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SettingsVerticalMenu.d.ts","sourceRoot":"","sources":["../../../src/components/Table/SettingsVerticalMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgB,cAAc,EAAE,MAAM,cAAc,CAAA;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGnD,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAA;AAG3E,UAAU,yBAAyB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC;CAC5D;AAED,eAAO,MAAM,oBAAoB,GAAI,wEAMrB,yBAAyB,mDA2BxC,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Box, IconBox } from '@citric/core';
3
+ import { EllipsisVertical } from '@citric/icons';
4
+ import { IconButton } from '@citric/ui';
5
+ import { SelectionList } from '@stack-spot/portal-components/SelectionList';
6
+ import { useState } from 'react';
7
+ export const SettingsVerticalMenu = ({ id, buttonAriaLabel, size, buttonDataTestHint, sxIconButton, items = [] }) => {
8
+ const [visibleMenu, setVisibleMenu] = useState(false);
9
+ if (items?.length === 0) {
10
+ return null;
11
+ }
12
+ return (_jsxs(Box, { sx: { position: 'relative' }, children: [_jsx(IconButton, { role: "button", title: buttonAriaLabel, "data-test-hint": buttonDataTestHint, "aria-label": buttonAriaLabel, onClick: () => setVisibleMenu(state => !state), children: _jsx(IconBox, { size: size, sx: sxIconButton, children: _jsx(EllipsisVertical, {}) }) }), _jsx(SelectionList, { id: id, visible: visibleMenu, onHide: () => setVisibleMenu(false), style: { position: 'absolute', top: 40, right: 0, minWidth: '200px' }, items: items })] }));
13
+ };
14
+ //# sourceMappingURL=SettingsVerticalMenu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SettingsVerticalMenu.js","sourceRoot":"","sources":["../../../src/components/Table/SettingsVerticalMenu.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,OAAO,EAAkB,MAAM,cAAc,CAAA;AAE3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAA;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAWhC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EACnC,EAAE,EACF,eAAe,EACf,IAAI,EACJ,kBAAkB,EAClB,YAAY,EACZ,KAAK,GAAG,EAAE,EAA6B,EAAE,EAAE;IAC3C,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IACrD,IAAI,KAAK,EAAE,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,CACL,MAAC,GAAG,IAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,aAC/B,KAAC,UAAU,IACT,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,eAAe,oBACN,kBAAkB,gBACtB,eAAe,EAC3B,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,YAC9C,KAAC,OAAO,IAAC,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,YAAY,YACnC,KAAC,gBAAgB,KAAG,GACZ,GACC,EACb,KAAC,aAAa,IACZ,EAAE,EAAE,EAAE,EACN,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,EACnC,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,EACrE,KAAK,EAAE,KAAK,GACZ,IACE,CACP,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from 'react';
2
+ export declare const StyledLinkTable: ({ children, ...props }: {
3
+ children: ReactNode;
4
+ } & React.AnchorHTMLAttributes<HTMLAnchorElement>) => import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=StyledLinkTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StyledLinkTable.d.ts","sourceRoot":"","sources":["../../../src/components/Table/StyledLinkTable.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AASjC,eAAO,MAAM,eAAe,GAAI,wBAG7B;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,4CAQzE,CAAA"}
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import styled from 'styled-components';
3
+ import { useAnchorTag } from '../../context/anchor.js';
4
+ const StyledLink = styled.a `
5
+ &:hover {
6
+ text-decoration: underline;
7
+ }
8
+ `;
9
+ export const StyledLinkTable = ({ children, ...props }) => {
10
+ const Link = useAnchorTag();
11
+ return (_jsx(StyledLink, { as: Link, ...props, children: children }));
12
+ };
13
+ //# sourceMappingURL=StyledLinkTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StyledLinkTable.js","sourceRoot":"","sources":["../../../src/components/Table/StyledLinkTable.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAEnD,MAAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAAA;;;;CAI1B,CAAA;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAC9B,QAAQ,EACR,GAAG,KAAK,EACgE,EAAE,EAAE;IAC5E,MAAM,IAAI,GAAG,YAAY,EAAE,CAAA;IAE3B,OAAO,CACL,KAAC,UAAU,IAAC,EAAE,EAAE,IAAI,KAAM,KAAK,YAC5B,QAAQ,GACE,CACd,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,37 @@
1
+ import { SxProperties } from '@citric/core/dist/sx.js';
2
+ import { SelectionList } from '@stack-spot/portal-components/SelectionList';
3
+ import { SortTypes } from './HeaderItem.js';
4
+ export type TableColumnsDefault = 'name' | 'description';
5
+ export type ColumnDefinition<T, K extends keyof T> = {
6
+ key: K;
7
+ header: string;
8
+ sortable?: boolean;
9
+ customRender?: (data: T) => JSX.Element | string | null;
10
+ sx?: SxProperties;
11
+ width?: string;
12
+ };
13
+ type SortDetailsType<T, K extends keyof T> = {
14
+ sort: K;
15
+ direction: SortTypes;
16
+ index?: number;
17
+ };
18
+ type TableProps<T, K extends keyof T> = {
19
+ data: T[];
20
+ columns: ColumnDefinition<T, K>[];
21
+ onSort?: ({ sort, direction, index }: SortDetailsType<T, K>) => void;
22
+ onRemove?: (data: T) => void;
23
+ canRemove?: (row: T) => boolean;
24
+ tableAppearance?: 'striped' | 'filled';
25
+ options?: React.ComponentProps<typeof SelectionList>['items'];
26
+ sxHeader?: SxProperties;
27
+ hasHeaderBorder?: boolean;
28
+ searchParamName?: string;
29
+ initialSortDetails?: Omit<SortDetailsType<T, K>, 'sort'>;
30
+ /**
31
+ * Accepts a react element that is rendered below the table, used mostly for pagination.
32
+ */
33
+ afterContent?: React.ReactElement;
34
+ };
35
+ export declare const TableData: <T, K extends keyof T>({ data, columns, onSort, onRemove, canRemove, tableAppearance, options, sxHeader, hasHeaderBorder, searchParamName, initialSortDetails, afterContent, }: TableProps<T, K>) => import("react/jsx-runtime").JSX.Element;
36
+ export {};
37
+ //# sourceMappingURL=TableData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableData.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableData.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGnD,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAA;AAM3E,OAAO,EAAc,SAAS,EAAE,MAAM,cAAc,CAAA;AAGpD,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,aAAa,CAAA;AAExD,MAAM,MAAM,gBAAgB,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI;IACnD,GAAG,EAAE,CAAC,CAAC;IACP,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,GAAG,CAAC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C,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,4CAmClB,CAAA"}
@@ -0,0 +1,84 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { Button, IconBox, Text } from '@citric/core';
3
+ import { Trash } from '@citric/icons';
4
+ import { LoadingCircular, Table, Tbody, Td, Th, Thead, Tr } from '@citric/ui';
5
+ import { theme } from '@stack-spot/portal-theme';
6
+ import { useTranslate } from '@stack-spot/portal-translate';
7
+ import { useState } from 'react';
8
+ import styled from 'styled-components';
9
+ import { ContentValidateFilter } from '../ContentValidateFilter.js';
10
+ import { HeaderSort } from './HeaderItem.js';
11
+ import { SettingsVerticalMenu } from './SettingsVerticalMenu.js';
12
+ const StyledTh = styled(Th) `
13
+ border-top: ${({ $hasBorder }) => ($hasBorder ? `1px solid ${theme.color.light[400]}` : '')};
14
+ border-bottom: ${({ $hasBorder }) => ($hasBorder ? `1px solid ${theme.color.light[400]}` : '')};
15
+ &:first-child {
16
+ border-left: ${({ $hasBorder }) => ($hasBorder ? `1px solid ${theme.color.light[400]}` : '')};
17
+ border-top-left-radius: 4px;
18
+ border-bottom-left-radius: 4px;
19
+ }
20
+ &:last-child {
21
+ border-right: ${({ $hasBorder }) => ($hasBorder ? `1px solid ${theme.color.light[400]}` : '')};
22
+ border-top-right-radius: 4px;
23
+ border-bottom-right-radius: 4px;
24
+ }
25
+ `;
26
+ const StyledTd = styled(Td) `
27
+ border-radius: 0px !important;
28
+
29
+ &:first-child {
30
+ border-top-left-radius: 4px !important;
31
+ border-bottom-left-radius: 4px !important;
32
+ }
33
+ &:last-child {
34
+ border-top-right-radius: 4px !important;
35
+ border-bottom-right-radius: 4px !important;
36
+ }
37
+ `;
38
+ const TableHeader = ({ columns, onSort, onRemove, sxTh, hasBorder, initialSortDetails }) => {
39
+ const [sort, setSort] = useState(initialSortDetails?.direction);
40
+ const [activeSort, setActiveSort] = useState(initialSortDetails?.index);
41
+ const Sortable = ({ sort, direction, index }) => {
42
+ onSort?.({ sort, direction, index });
43
+ setSort(direction);
44
+ setActiveSort(index);
45
+ };
46
+ return (_jsx(Thead, { children: _jsxs(Tr, { children: [columns.map((column, index) => column?.sortable && onSort ? (_jsx(StyledTh, { sx: sxTh, "$hasBorder": hasBorder, children: _jsx(HeaderSort, { sortType: activeSort !== index ? undefined : sort, onSort: (sortType) => Sortable?.({ sort: column.key, direction: sortType, index }), children: column.header }) }, column.key.toString())) : (_jsx(StyledTh, { sx: sxTh, "$hasBorder": hasBorder, children: _jsx(Text, { appearance: "microtext1", mr: "2", children: column.header }) }, column.key.toString()))), onRemove && _jsx(Th, {})] }) }));
47
+ };
48
+ function RemoveButton({ row, onRemove, canRemove }) {
49
+ const t = useTranslate(dictionary);
50
+ const [isLoading, setLoading] = useState(false);
51
+ if (!onRemove || (canRemove && !canRemove(row))) {
52
+ return null;
53
+ }
54
+ const handleRemove = async () => {
55
+ if (isLoading)
56
+ return;
57
+ setLoading(true);
58
+ try {
59
+ await onRemove(row);
60
+ }
61
+ finally {
62
+ setLoading(false);
63
+ }
64
+ };
65
+ return (_jsx(Button, { colorScheme: "danger", onClick: handleRemove, size: "sm", children: isLoading ? _jsx(LoadingCircular, {}) : _jsxs(_Fragment, { children: [_jsx(IconBox, { size: "xs", mr: 2, colorIcon: "danger", children: _jsx(Trash, {}) }), _jsx(Text, { appearance: "microtext1", mr: "2", children: t.remove })] }) }));
66
+ }
67
+ const TableRows = ({ data, columns, options, onRemove, canRemove }) => {
68
+ const rows = data.map((row, index) => (_jsxs(Tr, { children: [columns.map((column, columnIndex) => (_jsx(StyledTd, { sx: { ...column.sx }, children: _jsxs(_Fragment, { children: [" ", column?.customRender ? column.customRender(row) : row[column.key]] }) }, columnIndex))), canRemove && _jsx(StyledTd, { children: _jsx(RemoveButton, { row: row, onRemove: onRemove, canRemove: canRemove }) }), options && _jsx(StyledTd, { children: _jsx(SettingsVerticalMenu, { id: "workflow-studio-menu", items: options, size: "xs" }) })] }, `row-${index}`)));
69
+ return _jsx(Tbody, { sx: { borderSpacing: '0 8px' }, children: rows });
70
+ };
71
+ export const TableData = ({ data, columns, onSort, onRemove, canRemove, tableAppearance = 'striped', options, sxHeader, hasHeaderBorder, searchParamName = 'search', initialSortDetails, afterContent, }) => {
72
+ const searchParams = new URLSearchParams(window.location.search);
73
+ const search = searchParams.get(searchParamName) ?? '';
74
+ return (_jsx(ContentValidateFilter, { listLength: data.length, searchText: search, children: !!data.length && (_jsxs(_Fragment, { children: [_jsxs(Table, { appearance: tableAppearance, sx: { mb: 5 }, children: [_jsx("colgroup", { children: columns.map((column, index) => (_jsx("col", { style: { width: column.width || 'auto' } }, index))) }), _jsx(TableHeader, { sxTh: sxHeader, columns: columns, onSort: onSort, onRemove: onRemove, hasBorder: tableAppearance === 'striped' ? false : hasHeaderBorder, initialSortDetails: initialSortDetails }), _jsx(TableRows, { data: data, columns: columns, onRemove: onRemove, canRemove: canRemove, options: options })] }), !!afterContent && afterContent] })) }));
75
+ };
76
+ const dictionary = {
77
+ en: {
78
+ remove: 'Remove',
79
+ },
80
+ pt: {
81
+ remove: 'Remover',
82
+ },
83
+ };
84
+ //# sourceMappingURL=TableData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableData.js","sourceRoot":"","sources":["../../../src/components/Table/TableData.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAEpD,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,YAAY,CAAA;AAE7E,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAA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AAE,UAAU,EAAE,MAAM,YAC/D,CAAC,CAAC,IAAI,CAAC,MAAM,IAAI,CAChB,8BACE,MAAC,KAAK,IAAC,UAAU,EAAE,eAAe,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,aAC/C,6BACG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAC9B,cAAiB,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,MAAM,EAAE,IAA/C,KAAK,CAA8C,CAC9D,CAAC,GACO,EACX,KAAC,WAAW,IACV,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,eAAe,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,eAAe,EAClE,kBAAkB,EAAE,kBAAkB,GACtC,EACF,KAAC,SAAS,IACR,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,GAChB,IACI,EACP,CAAC,CAAC,YAAY,IAAI,YAAY,IAC9B,CACJ,GACqB,CACzB,CAAA;AACH,CAAC,CAAA;AAED,MAAM,UAAU,GAAG;IACjB,EAAE,EAAE;QACF,MAAM,EAAE,QAAQ;KACjB;IACD,EAAE,EAAE;QACF,MAAM,EAAE,SAAS;KAClB;CACF,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { StyledLinkTable } from '../Table/StyledLinkTable.js';
2
+ export { TableData, ColumnDefinition } from '../Table/TableData.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Table/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { StyledLinkTable } from '../Table/StyledLinkTable.js';
2
+ export { TableData } from '../Table/TableData.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Table/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAoB,MAAM,oBAAoB,CAAA"}
@@ -0,0 +1,24 @@
1
+ import { Month } from '@stack-spot/portal-translate';
2
+ interface Props {
3
+ /**
4
+ * The month. 0 for January, 11 for December.
5
+ */
6
+ month: Month;
7
+ /**
8
+ * The day of the month (1 - 31).
9
+ */
10
+ day: number;
11
+ /**
12
+ * The section's content.
13
+ */
14
+ children: React.ReactNode;
15
+ style?: React.CSSProperties;
16
+ className?: string;
17
+ }
18
+ /**
19
+ * Renders a section in a timeline where the left side is a header with the date and the right side is the content (children).
20
+ * @param props React props: {@link Props}.
21
+ */
22
+ export declare const TimelineSection: ({ children, day, month, className, style }: Props) => import("react/jsx-runtime").JSX.Element;
23
+ export {};
24
+ //# sourceMappingURL=TimelineSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimelineSection.d.ts","sourceRoot":"","sources":["../../src/components/TimelineSection.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAoC,MAAM,8BAA8B,CAAA;AAGtF,UAAU,KAAK;IACb;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IACb;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAiBD;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,4CAA4C,KAAK,4CAgBhF,CAAA"}
@@ -0,0 +1,37 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Text } from '@citric/core';
3
+ import { useMonthDictionary, useTranslate } from '@stack-spot/portal-translate';
4
+ import { styled } from 'styled-components';
5
+ const Styled = styled.div `
6
+ display: flex;
7
+ flex-direction: row;
8
+ align-items: start;
9
+
10
+ .timeline-section-header {
11
+ width: 80px;
12
+ }
13
+
14
+ .timeline-section-content {
15
+ min-width: 0;
16
+ flex: 1;
17
+ }
18
+ `;
19
+ /**
20
+ * Renders a section in a timeline where the left side is a header with the date and the right side is the content (children).
21
+ * @param props React props: {@link Props}.
22
+ */
23
+ export const TimelineSection = ({ children, day, month, className, style }) => {
24
+ const months = useMonthDictionary();
25
+ const t = useTranslate(locale);
26
+ const ariaLabel = t.dayMonth.replace('%d', `${day}`).replace('%m', months[month]);
27
+ return (_jsxs(Styled, { style: style, className: className, children: [_jsxs("div", { className: "timeline-section-header", children: [_jsx(Text, { appearance: "h2", "aria-label": ariaLabel, children: day >= 10 ? day : `0${day}` }), _jsx(Text, { appearance: "subtitle4", "aria-hidden": "true", children: months[month].toUpperCase().substring(0, 3) })] }), _jsx("div", { className: "timeline-section-content", children: children })] }));
28
+ };
29
+ const locale = {
30
+ pt: {
31
+ dayMonth: '%d de %m',
32
+ },
33
+ en: {
34
+ dayMonth: '%m %d',
35
+ },
36
+ };
37
+ //# sourceMappingURL=TimelineSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimelineSection.js","sourceRoot":"","sources":["../../src/components/TimelineSection.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,EAAS,kBAAkB,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AACtF,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAmB1C,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;CAaxB,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAS,EAAE,EAAE;IACnF,MAAM,MAAM,GAAG,kBAAkB,EAAE,CAAA;IACnC,MAAM,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,CAAA;IAE9B,MAAM,SAAS,GAAG,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;IACjF,OAAO,CACL,MAAC,MAAM,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,aACxC,eAAK,SAAS,EAAC,yBAAyB,aACtC,KAAC,IAAI,IAAC,UAAU,EAAC,IAAI,gBAAa,SAAS,YAAG,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE,GAAQ,EACjF,KAAC,IAAI,IAAC,UAAU,EAAC,WAAW,iBAAa,MAAM,YAAE,MAAM,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,GAAQ,IAChG,EACN,cAAK,SAAS,EAAC,0BAA0B,YACtC,QAAQ,GACL,IACC,CACV,CAAA;AACH,CAAC,CAAA;AAED,MAAM,MAAM,GAAG;IACb,EAAE,EAAE;QACF,QAAQ,EAAE,UAAU;KACrB;IACD,EAAE,EAAE;QACF,QAAQ,EAAE,OAAO;KAClB;CACF,CAAA"}
@@ -0,0 +1,58 @@
1
+ export interface ErrorDescription {
2
+ /**
3
+ * The HTTP Error code if this is a network error.
4
+ */
5
+ code?: number;
6
+ /**
7
+ * The error message. This is only visible if debug is true.
8
+ */
9
+ message?: string;
10
+ /**
11
+ * Whether or not the application is in debug mode.
12
+ */
13
+ debug?: boolean;
14
+ /**
15
+ * The title for this error. Overwrites anything preset by "code".
16
+ */
17
+ title?: string;
18
+ /**
19
+ * The error description. Overwrites anything preset by "code".
20
+ */
21
+ description?: string;
22
+ /**
23
+ * A help text to aid the user. Overwrites anything preset by "code".
24
+ */
25
+ help?: string;
26
+ /**
27
+ * A button so the user can take some action.
28
+ */
29
+ action?: {
30
+ label: string;
31
+ onClick: () => void;
32
+ };
33
+ /**
34
+ * The content for this error. Overwrites anything preset by "code", "description", "help" or "button".
35
+ */
36
+ body?: React.ReactNode;
37
+ /**
38
+ * The image for the error. Overwrites anything preset by "code".
39
+ */
40
+ image?: React.ReactElement;
41
+ /**
42
+ * Whether to show the feedback horizontally (row) or vertically (column).
43
+ *
44
+ * @default 'row'
45
+ */
46
+ direction?: 'row' | 'column';
47
+ style?: React.CSSProperties;
48
+ className?: string;
49
+ }
50
+ /**
51
+ * A box with an icon and an error message. This is used for giving error feedbacks to the user.
52
+ *
53
+ * If the application is in debug mode, a button is rendered to show the error message.
54
+ *
55
+ * @param options the error code, the error message and whether or not the application is in debug mode.
56
+ */
57
+ export declare const ErrorFeedback: ({ code, message, debug, title, body, image, action, description, help, direction, style, className }: ErrorDescription) => import("react/jsx-runtime").JSX.Element;
58
+ //# sourceMappingURL=ErrorFeedback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorFeedback.d.ts","sourceRoot":"","sources":["../../../src/components/error/ErrorFeedback.tsx"],"names":[],"mappings":"AAsBA,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;IAChD;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC3B;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC7B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAsCD;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GACxB,sGAAkH,gBAAgB,4CAgEnI,CAAA"}