@ably/ui 13.3.0 → 14.0.0-dev.58ef698

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 (407) hide show
  1. package/README.md +25 -152
  2. package/core/.DS_Store +0 -0
  3. package/core/Accordion/component.js +1 -0
  4. package/core/Code/component.css +1 -72
  5. package/core/Code/component.js +1 -1
  6. package/core/ConnectStateWrapper/component.js +1 -1
  7. package/core/ContactFooter/component.css +7 -10
  8. package/core/ContactFooter/component.js +1 -1
  9. package/core/CookieMessage/component.css +10 -13
  10. package/core/CookieMessage/component.js +1 -1
  11. package/core/CustomerLogos/component.js +1 -1
  12. package/core/DropdownMenu/component.js +1 -1
  13. package/core/FeaturedLink/component.js +1 -1
  14. package/core/Flash/component.css +19 -22
  15. package/core/Flash/component.js +1 -1
  16. package/core/Footer/component.css +22 -25
  17. package/core/Footer/component.js +1 -1
  18. package/core/Icon/component.js +1 -1
  19. package/core/Loader/component.js +1 -1
  20. package/core/Logo/component.js +1 -1
  21. package/core/Meganav/.DS_Store +0 -0
  22. package/core/Meganav/component.css +103 -106
  23. package/core/Meganav/component.js +1 -1
  24. package/core/MeganavBlogPostsList/component.js +1 -2
  25. package/core/MeganavContentCompany/component.js +1 -1
  26. package/core/MeganavContentDevelopers/component.js +1 -1
  27. package/core/MeganavContentProducts/component.js +1 -1
  28. package/core/MeganavContentUseCases/component.js +1 -1
  29. package/core/MeganavControl/component.js +1 -1
  30. package/core/MeganavControlMobileDropdown/component.js +1 -1
  31. package/core/MeganavControlMobilePanelClose/component.js +1 -1
  32. package/core/MeganavControlMobilePanelOpen/component.js +1 -1
  33. package/core/MeganavItemsDesktop/component.js +1 -1
  34. package/core/MeganavItemsMobile/component.js +1 -1
  35. package/core/MeganavItemsSignedIn/component.js +1 -1
  36. package/core/MeganavSearch/component.js +1 -1
  37. package/core/MeganavSearchAutocomplete/component.js +1 -1
  38. package/core/MeganavSearchPanel/component.js +1 -1
  39. package/core/MeganavSearchSuggestions/component.js +1 -1
  40. package/core/Notice/component.css +4 -7
  41. package/core/Notice/component.js +1 -1
  42. package/core/SignOutLink/component.js +1 -1
  43. package/core/Slider/component.css +4 -7
  44. package/core/Slider/component.js +1 -1
  45. package/core/Table/Table.js +1 -0
  46. package/core/Table/TableCell.js +1 -0
  47. package/core/Table/TableRow.js +1 -0
  48. package/core/Table/index.js +1 -0
  49. package/core/Table/stories/data.js +1 -0
  50. package/core/Tooltip/component.js +1 -0
  51. package/core/css.js +1 -0
  52. package/core/dom-query.js +1 -0
  53. package/core/hubspot-chat-toggle.js +1 -0
  54. package/core/icons/discord.svg +10 -0
  55. package/core/icons/facebook.svg +4 -0
  56. package/core/icons/github.svg +3 -0
  57. package/core/icons/glassdoor.svg +3 -0
  58. package/core/icons/google.svg +3 -0
  59. package/core/icons/icon-display-48hrs.svg +3 -0
  60. package/core/icons/icon-display-about-ably-col.svg +4 -0
  61. package/core/icons/icon-display-api-keys.svg +3 -0
  62. package/core/icons/icon-display-api.svg +3 -0
  63. package/core/icons/icon-display-asset-tracking-col.svg +18 -0
  64. package/core/icons/icon-display-browser.svg +10 -0
  65. package/core/icons/icon-display-calendar.svg +3 -0
  66. package/core/icons/icon-display-call-mobile.svg +3 -0
  67. package/core/icons/icon-display-careers-col.svg +9 -0
  68. package/core/icons/icon-display-case-studies-col.svg +5 -0
  69. package/core/icons/icon-display-chat-col.svg +4 -0
  70. package/core/icons/icon-display-chat-stack-col.svg +4 -0
  71. package/core/icons/icon-display-chat-stack.svg +4 -0
  72. package/core/icons/icon-display-cloud-servers.svg +3 -0
  73. package/core/icons/icon-display-compare-tech-col.svg +9 -0
  74. package/core/icons/icon-display-customers-col.svg +15 -0
  75. package/core/icons/icon-display-data-broadcast-col.svg +26 -0
  76. package/core/icons/icon-display-data-synchronization-col.svg +14 -0
  77. package/core/icons/icon-display-docs-col.svg +7 -0
  78. package/core/icons/icon-display-documentation.svg +3 -0
  79. package/core/icons/icon-display-events-col.svg +13 -0
  80. package/core/icons/icon-display-examples-col.svg +11 -0
  81. package/core/icons/icon-display-gdpr.svg +3 -0
  82. package/core/icons/icon-display-general-comms.svg +3 -0
  83. package/core/icons/icon-display-hipaa.svg +10 -0
  84. package/core/icons/icon-display-integrations-col.svg +8 -0
  85. package/core/icons/icon-display-it-support-access.svg +3 -0
  86. package/core/icons/icon-display-it-support-helpdesk.svg +3 -0
  87. package/core/icons/icon-display-kafka-at-the-edge-col.svg +8 -0
  88. package/core/icons/icon-display-laptop.svg +10 -0
  89. package/core/icons/icon-display-lightbulb-col.svg +10 -0
  90. package/core/icons/icon-display-live-chat.svg +3 -0
  91. package/core/icons/icon-display-map-pin.svg +3 -0
  92. package/core/icons/icon-display-message.svg +3 -0
  93. package/core/icons/icon-display-padlock-closed.svg +3 -0
  94. package/core/icons/icon-display-platform.svg +22 -0
  95. package/core/icons/icon-display-play.svg +3 -0
  96. package/core/icons/icon-display-privacy-shield-framework.svg +7 -0
  97. package/core/icons/icon-display-push-notifications-col.svg +6 -0
  98. package/core/icons/icon-display-quickstart-guides-col.svg +8 -0
  99. package/core/icons/icon-display-resources-col.svg +21 -0
  100. package/core/icons/icon-display-sdks-col.svg +11 -0
  101. package/core/icons/icon-display-servers.svg +3 -0
  102. package/core/icons/icon-display-shopping-cart.svg +10 -0
  103. package/core/icons/icon-display-sla.svg +3 -0
  104. package/core/icons/icon-display-soc2-type2.svg +3 -0
  105. package/core/icons/icon-display-tech-account-comms.svg +3 -0
  106. package/core/icons/icon-display-tutorials-demos-col.svg +25 -0
  107. package/core/icons/icon-display-virtual-events-col.svg +12 -0
  108. package/core/icons/icon-display-virtual-events.svg +12 -0
  109. package/core/icons/icon-gui-ably-badge.svg +3 -0
  110. package/core/icons/icon-gui-arrow-bidirectional-horizontal.svg +3 -0
  111. package/core/icons/icon-gui-arrow-bidirectional-vertical.svg +3 -0
  112. package/core/icons/icon-gui-arrow-down.svg +3 -0
  113. package/core/icons/icon-gui-arrow-left.svg +3 -0
  114. package/core/icons/icon-gui-arrow-right.svg +3 -0
  115. package/core/icons/icon-gui-arrow-up.svg +3 -0
  116. package/core/icons/icon-gui-burger-menu.svg +5 -0
  117. package/core/icons/icon-gui-check-circled-fill-black.svg +4 -0
  118. package/core/icons/icon-gui-check-circled-fill.svg +4 -0
  119. package/core/icons/icon-gui-check-circled.svg +3 -0
  120. package/core/icons/icon-gui-checklist-checked.svg +3 -0
  121. package/core/icons/icon-gui-clock.svg +3 -0
  122. package/core/icons/icon-gui-close.svg +3 -0
  123. package/core/icons/icon-gui-copy.svg +10 -0
  124. package/core/icons/icon-gui-cross-circled-fill.svg +4 -0
  125. package/core/icons/icon-gui-cross-circled.svg +3 -0
  126. package/core/icons/icon-gui-dash-circled.svg +3 -0
  127. package/core/icons/icon-gui-disclosure-arrow.svg +3 -0
  128. package/core/icons/icon-gui-document-generic.svg +3 -0
  129. package/core/icons/icon-gui-enlarge.svg +3 -0
  130. package/core/icons/icon-gui-external-link.svg +3 -0
  131. package/core/icons/icon-gui-filter-flow-step-1.svg +5 -0
  132. package/core/icons/icon-gui-filter-flow-step-2.svg +5 -0
  133. package/core/icons/icon-gui-filter-flow-step-3.svg +5 -0
  134. package/core/icons/icon-gui-history.svg +3 -0
  135. package/core/icons/icon-gui-info.svg +3 -0
  136. package/core/icons/icon-gui-link-arrow.svg +3 -0
  137. package/core/icons/icon-gui-link.svg +4 -0
  138. package/core/icons/icon-gui-live-chat.svg +3 -0
  139. package/core/icons/icon-gui-minus.svg +3 -0
  140. package/core/icons/icon-gui-plus.svg +3 -0
  141. package/core/icons/icon-gui-quote-marks-solid.svg +3 -0
  142. package/core/icons/icon-gui-refresh.svg +10 -0
  143. package/core/icons/icon-gui-resources.svg +3 -0
  144. package/core/icons/icon-gui-search.svg +3 -0
  145. package/core/icons/icon-gui-tick.svg +3 -0
  146. package/core/icons/icon-gui-warning.svg +5 -0
  147. package/core/icons/icon-live-updates-results-metrics-col.svg +26 -0
  148. package/core/icons/icon-multi-user-spaces-col.svg +13 -0
  149. package/core/icons/icon-social-x.svg +3 -0
  150. package/core/icons/icon-tech-apachekafka.svg +3 -0
  151. package/core/icons/linkedin.svg +3 -0
  152. package/core/icons/quote.svg +3 -0
  153. package/core/icons/stackoverflow.svg +3 -0
  154. package/core/icons/twitter.svg +3 -0
  155. package/core/icons/youtube.svg +11 -0
  156. package/core/icons.js +1 -0
  157. package/core/load-sprites.js +1 -0
  158. package/core/react-renderer.js +1 -0
  159. package/core/remote-blogs-posts.js +1 -0
  160. package/core/remote-data-store.js +1 -0
  161. package/core/remote-data-util.js +1 -0
  162. package/core/remote-session-data.js +1 -0
  163. package/core/scripts.js +1 -2
  164. package/core/sprites.svg +1 -525
  165. package/core/styles/buttons.css +122 -0
  166. package/core/styles/forms.css +62 -0
  167. package/core/styles/layout.css +19 -0
  168. package/core/styles/properties.css +276 -0
  169. package/core/styles/text.css +166 -0
  170. package/core/styles.base.css +1 -0
  171. package/core/styles.components.css +33 -0
  172. package/core/styles.css +2 -699
  173. package/core/url-base.js +1 -0
  174. package/core/utils/syntax-highlighter-registry.js +1 -0
  175. package/core/utils/syntax-highlighter.css +67 -0
  176. package/core/utils/syntax-highlighter.js +1 -0
  177. package/package.json +39 -34
  178. package/reset/scripts.js +1 -1
  179. package/reset/styles/normalize.css +353 -0
  180. package/reset/styles/reset.css +129 -0
  181. package/reset/styles.css +2 -477
  182. package/src/.DS_Store +0 -0
  183. package/src/core/.DS_Store +0 -0
  184. package/src/core/Accordion/Accordion.stories.tsx +39 -0
  185. package/src/core/Accordion/component.tsx +147 -0
  186. package/src/core/Code/Code.stories.tsx +71 -0
  187. package/src/core/Code/component.tsx +45 -0
  188. package/src/core/ConnectStateWrapper/{component.jsx → component.tsx} +7 -3
  189. package/src/core/ContactFooter/ContactFooter.stories.tsx +11 -0
  190. package/src/core/ContactFooter/component.css +7 -9
  191. package/src/core/ContactFooter/component.tsx +92 -0
  192. package/src/core/CookieMessage/CookieMessage.stories.tsx +12 -0
  193. package/src/core/CookieMessage/component.css +10 -12
  194. package/src/core/CookieMessage/{component.jsx → component.tsx} +15 -10
  195. package/src/core/CustomerLogos/CustomerLogos.stories.tsx +43 -0
  196. package/src/core/CustomerLogos/component.tsx +35 -0
  197. package/src/core/DropdownMenu/DropdownMenu.stories.tsx +48 -0
  198. package/src/core/DropdownMenu/{component.jsx → component.tsx} +64 -36
  199. package/src/core/FeaturedLink/FeaturedLink.stories.tsx +43 -0
  200. package/src/core/FeaturedLink/{component.jsx → component.tsx} +26 -18
  201. package/src/core/Flash/Flash.stories.tsx +37 -0
  202. package/src/core/Flash/component.css +19 -21
  203. package/src/core/Flash/{component.jsx → component.tsx} +78 -39
  204. package/src/core/Footer/Footer.stories.tsx +26 -0
  205. package/src/core/Footer/component.css +22 -24
  206. package/src/core/Footer/{component.jsx → component.tsx} +237 -70
  207. package/src/core/Icon/Icon.stories.tsx +150 -0
  208. package/src/core/Icon/component.tsx +26 -0
  209. package/src/core/Loader/Loader.stories.tsx +21 -0
  210. package/src/core/Loader/{component.jsx → component.tsx} +11 -8
  211. package/src/core/Logo/Logo.stories.tsx +12 -0
  212. package/src/core/Logo/component.tsx +29 -0
  213. package/src/core/Meganav/.DS_Store +0 -0
  214. package/src/core/Meganav/Meganav.stories.tsx +86 -0
  215. package/src/core/Meganav/component.css +103 -105
  216. package/src/core/Meganav/component.js +6 -7
  217. package/src/core/Meganav/component.tsx +228 -0
  218. package/src/core/MeganavBlogPostsList/{component.jsx → component.tsx} +15 -14
  219. package/src/core/MeganavContentCompany/{component.jsx → component.tsx} +82 -33
  220. package/src/core/MeganavContentDevelopers/{component.jsx → component.tsx} +98 -34
  221. package/src/core/MeganavContentProducts/component.tsx +165 -0
  222. package/src/core/MeganavContentUseCases/component.tsx +244 -0
  223. package/src/core/MeganavControl/{component.jsx → component.tsx} +18 -12
  224. package/src/core/MeganavControlMobileDropdown/{component.jsx → component.tsx} +3 -7
  225. package/src/core/MeganavControlMobilePanelClose/{component.jsx → component.tsx} +16 -9
  226. package/src/core/MeganavControlMobilePanelOpen/component.tsx +32 -0
  227. package/src/core/MeganavItemsDesktop/component.tsx +68 -0
  228. package/src/core/MeganavItemsMobile/component.tsx +197 -0
  229. package/src/core/MeganavItemsSignedIn/{component.jsx → component.tsx} +59 -23
  230. package/src/core/MeganavSearch/component.tsx +36 -0
  231. package/src/core/MeganavSearchAutocomplete/component.tsx +12 -0
  232. package/src/core/MeganavSearchPanel/component.tsx +52 -0
  233. package/src/core/MeganavSearchSuggestions/component.tsx +62 -0
  234. package/src/core/Notice/component.css +4 -6
  235. package/src/core/Notice/component.js +1 -1
  236. package/src/core/Notice/component.tsx +104 -0
  237. package/src/core/SignOutLink/component.tsx +51 -0
  238. package/src/core/Slider/Slider.stories.tsx +45 -0
  239. package/src/core/Slider/component.css +4 -6
  240. package/src/core/Slider/component.tsx +112 -0
  241. package/src/core/Table/Table.tsx +30 -0
  242. package/src/core/Table/TableCell.tsx +84 -0
  243. package/src/core/Table/TableRow.tsx +25 -0
  244. package/src/core/Table/index.ts +24 -0
  245. package/src/core/Table/stories/Table.stories.tsx +12 -0
  246. package/src/core/Table/stories/data.tsx +113 -0
  247. package/src/core/Tooltip/Tooltip.stories.tsx +27 -0
  248. package/src/core/Tooltip/component.tsx +60 -0
  249. package/src/core/icons.js +6 -0
  250. package/src/core/{react-renderer.js → react-renderer.tsx} +9 -7
  251. package/src/core/styles/buttons.css +121 -123
  252. package/src/core/styles/forms.css +49 -51
  253. package/src/core/styles/layout.css +14 -16
  254. package/src/core/styles/properties.css +250 -259
  255. package/src/core/styles/text.css +165 -167
  256. package/src/core/styles.components.css +22 -24
  257. package/src/core/utils/syntax-highlighter.css +55 -59
  258. package/src/pages/Buttons.mdx +121 -0
  259. package/src/pages/Chips.mdx +136 -0
  260. package/src/pages/Colour.mdx +23 -0
  261. package/src/pages/Forms.mdx +173 -0
  262. package/src/pages/Layout.mdx +58 -0
  263. package/src/pages/Typography.mdx +206 -0
  264. package/src/pages/utils.ts +70 -0
  265. package/tailwind.config.js +1 -7
  266. package/tailwind.extend.js +1 -1
  267. package/core/.gitignore +0 -1
  268. package/core/Code.jsx +0 -684
  269. package/core/CompanyAutocomplete/component.css +0 -46
  270. package/core/CompanyAutocomplete/component.js +0 -2
  271. package/core/CompanyAutocomplete/component.js.LICENSE.txt +0 -1
  272. package/core/ConnectStateWrapper.jsx +0 -222
  273. package/core/ContactFooter.jsx +0 -342
  274. package/core/CookieMessage.jsx +0 -204
  275. package/core/CustomerLogos.jsx +0 -144
  276. package/core/DropdownMenu.jsx +0 -313
  277. package/core/FeatureFooter/component.css +0 -13
  278. package/core/FeatureFooter/component.js +0 -1
  279. package/core/FeaturedLink.jsx +0 -241
  280. package/core/Flash.jsx +0 -622
  281. package/core/Footer.jsx +0 -587
  282. package/core/Icon.jsx +0 -152
  283. package/core/Loader.jsx +0 -154
  284. package/core/Logo.jsx +0 -147
  285. package/core/Meganav.jsx +0 -4151
  286. package/core/MeganavBlogPostsList/component.js.LICENSE.txt +0 -1
  287. package/core/MeganavBlogPostsList.jsx +0 -296
  288. package/core/MeganavContentCompany.jsx +0 -1058
  289. package/core/MeganavContentDevelopers.jsx +0 -334
  290. package/core/MeganavContentProducts.jsx +0 -373
  291. package/core/MeganavContentUseCases.jsx +0 -341
  292. package/core/MeganavControl.jsx +0 -199
  293. package/core/MeganavControlMobileDropdown.jsx +0 -197
  294. package/core/MeganavControlMobilePanelClose.jsx +0 -198
  295. package/core/MeganavControlMobilePanelOpen.jsx +0 -193
  296. package/core/MeganavItemsDesktop.jsx +0 -279
  297. package/core/MeganavItemsMobile.jsx +0 -689
  298. package/core/MeganavItemsSignedIn.jsx +0 -643
  299. package/core/MeganavSearch.jsx +0 -434
  300. package/core/MeganavSearchAutocomplete.jsx +0 -117
  301. package/core/MeganavSearchPanel.jsx +0 -386
  302. package/core/MeganavSearchSuggestions.jsx +0 -299
  303. package/core/Notice.jsx +0 -914
  304. package/core/Showcase/component.css +0 -31
  305. package/core/Showcase/component.js +0 -1
  306. package/core/Showcase.jsx +0 -17
  307. package/core/SignOutLink.jsx +0 -157
  308. package/core/Slider.jsx +0 -400
  309. package/core/Uptime/component.css +0 -128
  310. package/core/Uptime/component.js +0 -1
  311. package/core/Uptime.jsx +0 -895
  312. package/core/scripts.js.LICENSE.txt +0 -1
  313. package/preview/tmp/.keep +0 -0
  314. package/preview/tmp/pids/.keep +0 -0
  315. package/reset/.gitignore +0 -1
  316. package/src/core/Code/component.html.erb +0 -3
  317. package/src/core/Code/component.jsx +0 -31
  318. package/src/core/Code/component.rb +0 -12
  319. package/src/core/CompanyAutocomplete/component.css +0 -45
  320. package/src/core/CompanyAutocomplete/component.js +0 -204
  321. package/src/core/ContactFooter/component.html.erb +0 -32
  322. package/src/core/ContactFooter/component.jsx +0 -66
  323. package/src/core/ContactFooter/component.rb +0 -13
  324. package/src/core/CustomerLogos/component.html.erb +0 -9
  325. package/src/core/CustomerLogos/component.jsx +0 -28
  326. package/src/core/CustomerLogos/component.rb +0 -14
  327. package/src/core/FeatureFooter/component.css +0 -12
  328. package/src/core/FeatureFooter/component.html.erb +0 -54
  329. package/src/core/FeatureFooter/component.js +0 -7
  330. package/src/core/FeatureFooter/component.rb +0 -30
  331. package/src/core/FeaturedLink/component.html.erb +0 -15
  332. package/src/core/FeaturedLink/component.rb +0 -21
  333. package/src/core/Footer/component.html.erb +0 -256
  334. package/src/core/Footer/component.rb +0 -14
  335. package/src/core/Icon/component.html.erb +0 -3
  336. package/src/core/Icon/component.jsx +0 -19
  337. package/src/core/Icon/component.rb +0 -25
  338. package/src/core/Loader/component.html.erb +0 -18
  339. package/src/core/Loader/component.rb +0 -19
  340. package/src/core/Logo/component.html.erb +0 -3
  341. package/src/core/Logo/component.jsx +0 -20
  342. package/src/core/Logo/component.rb +0 -31
  343. package/src/core/Meganav/component.html.erb +0 -31
  344. package/src/core/Meganav/component.jsx +0 -123
  345. package/src/core/Meganav/component.rb +0 -60
  346. package/src/core/MeganavBlogPostsList/component.html.erb +0 -5
  347. package/src/core/MeganavBlogPostsList/component.rb +0 -13
  348. package/src/core/MeganavContentCompany/component.html.erb +0 -90
  349. package/src/core/MeganavContentCompany/component.rb +0 -14
  350. package/src/core/MeganavContentDevelopers/component.html.erb +0 -129
  351. package/src/core/MeganavContentDevelopers/component.rb +0 -13
  352. package/src/core/MeganavContentProducts/component.html.erb +0 -83
  353. package/src/core/MeganavContentProducts/component.jsx +0 -105
  354. package/src/core/MeganavContentProducts/component.rb +0 -14
  355. package/src/core/MeganavContentUseCases/component.html.erb +0 -135
  356. package/src/core/MeganavContentUseCases/component.jsx +0 -147
  357. package/src/core/MeganavContentUseCases/component.rb +0 -13
  358. package/src/core/MeganavControl/component.html.erb +0 -6
  359. package/src/core/MeganavControl/component.rb +0 -20
  360. package/src/core/MeganavControlMobileDropdown/component.html.erb +0 -7
  361. package/src/core/MeganavControlMobileDropdown/component.rb +0 -11
  362. package/src/core/MeganavControlMobilePanelClose/component.html.erb +0 -12
  363. package/src/core/MeganavControlMobilePanelClose/component.rb +0 -12
  364. package/src/core/MeganavControlMobilePanelOpen/component.html.erb +0 -7
  365. package/src/core/MeganavControlMobilePanelOpen/component.jsx +0 -25
  366. package/src/core/MeganavControlMobilePanelOpen/component.rb +0 -9
  367. package/src/core/MeganavItemsDesktop/component.html.erb +0 -17
  368. package/src/core/MeganavItemsDesktop/component.jsx +0 -49
  369. package/src/core/MeganavItemsDesktop/component.rb +0 -23
  370. package/src/core/MeganavItemsMobile/component.html.erb +0 -75
  371. package/src/core/MeganavItemsMobile/component.jsx +0 -137
  372. package/src/core/MeganavItemsMobile/component.rb +0 -21
  373. package/src/core/MeganavItemsSignedIn/component.html.erb +0 -53
  374. package/src/core/MeganavItemsSignedIn/component.rb +0 -33
  375. package/src/core/MeganavSearch/component.html.erb +0 -15
  376. package/src/core/MeganavSearch/component.jsx +0 -33
  377. package/src/core/MeganavSearch/component.rb +0 -13
  378. package/src/core/MeganavSearchAutocomplete/component.html.erb +0 -6
  379. package/src/core/MeganavSearchAutocomplete/component.jsx +0 -14
  380. package/src/core/MeganavSearchAutocomplete/component.rb +0 -6
  381. package/src/core/MeganavSearchPanel/component.html.erb +0 -22
  382. package/src/core/MeganavSearchPanel/component.jsx +0 -39
  383. package/src/core/MeganavSearchPanel/component.rb +0 -13
  384. package/src/core/MeganavSearchSuggestions/component.html.erb +0 -22
  385. package/src/core/MeganavSearchSuggestions/component.jsx +0 -49
  386. package/src/core/MeganavSearchSuggestions/component.rb +0 -18
  387. package/src/core/Notice/component.html.erb +0 -16
  388. package/src/core/Notice/component.jsx +0 -71
  389. package/src/core/Notice/component.rb +0 -29
  390. package/src/core/Showcase/component.css +0 -30
  391. package/src/core/Showcase/component.html.erb +0 -76
  392. package/src/core/Showcase/component.js +0 -180
  393. package/src/core/Showcase/component.jsx +0 -0
  394. package/src/core/Showcase/component.rb +0 -190
  395. package/src/core/SignOutLink/component.html.erb +0 -1
  396. package/src/core/SignOutLink/component.jsx +0 -32
  397. package/src/core/SignOutLink/component.rb +0 -17
  398. package/src/core/Slider/component.html.erb +0 -28
  399. package/src/core/Slider/component.jsx +0 -86
  400. package/src/core/Slider/component.rb +0 -38
  401. package/src/core/Uptime/component.css +0 -127
  402. package/src/core/Uptime/component.html.erb +0 -0
  403. package/src/core/Uptime/component.js +0 -1
  404. package/src/core/Uptime/component.jsx +0 -183
  405. package/src/core/Uptime/component.rb +0 -7
  406. package/src/core/core.rb +0 -81
  407. /package/{preview/log/.keep → src/core/Accordion/component.js} +0 -0
package/core/Uptime.jsx DELETED
@@ -1,895 +0,0 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("react"), require("prop-types"));
4
- else if(typeof define === 'function' && define.amd)
5
- define([, ], factory);
6
- else {
7
- var a = typeof exports === 'object' ? factory(require("react"), require("prop-types")) : factory(root[undefined], root[undefined]);
8
- for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
- }
10
- })(this, (__WEBPACK_EXTERNAL_MODULE__5225__, __WEBPACK_EXTERNAL_MODULE__6073__) => {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ var __webpack_modules__ = ({
13
-
14
- /***/ 5751:
15
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
16
-
17
- "use strict";
18
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
20
- /* harmony export */ });
21
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5225);
22
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
23
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6073);
24
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
25
- /* harmony import */ var _Icon_component_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9008);
26
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
27
-
28
-
29
-
30
- // When generating links with target=_blank, we only add `noreferrer` to
31
- // links that don't start with `/`, so we can continue tracking referrers
32
- // across our own domains
33
-
34
- var buildTargetAndRel = function buildTargetAndRel(url, newWindow) {
35
- var props = {};
36
-
37
- if (newWindow) {
38
- props.target = "_blank";
39
-
40
- if (url.startsWith("/") && !url.startsWith("//")) {
41
- props.rel = "noopener";
42
- } else {
43
- props.rel = "noopenner noreferrer";
44
- }
45
- }
46
-
47
- return props;
48
- };
49
-
50
- var FeaturedLink = function FeaturedLink(_ref) {
51
- var url = _ref.url,
52
- _ref$textSize = _ref.textSize,
53
- textSize = _ref$textSize === void 0 ? "text-p2" : _ref$textSize,
54
- _ref$iconColor = _ref.iconColor,
55
- iconColor = _ref$iconColor === void 0 ? "text-cool-black" : _ref$iconColor,
56
- _ref$flush = _ref.flush,
57
- flush = _ref$flush === void 0 ? false : _ref$flush,
58
- _ref$reverse = _ref.reverse,
59
- reverse = _ref$reverse === void 0 ? false : _ref$reverse,
60
- _ref$additionalCSS = _ref.additionalCSS,
61
- additionalCSS = _ref$additionalCSS === void 0 ? "" : _ref$additionalCSS,
62
- _ref$newWindow = _ref.newWindow,
63
- newWindow = _ref$newWindow === void 0 ? false : _ref$newWindow,
64
- _ref$onClick = _ref.onClick,
65
- onClick = _ref$onClick === void 0 ? undefined : _ref$onClick,
66
- children = _ref.children;
67
- var targetAndRel = buildTargetAndRel(url, newWindow);
68
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", _extends({
69
- href: url,
70
- className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ui-".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
71
- style: {
72
- "--featured-link-icon-size": "var(".concat(textSize.replace("text", "--fs"), ")")
73
- }
74
- }, targetAndRel, {
75
- onClick: onClick
76
- }), reverse ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon_component_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], {
77
- name: "icon-gui-link-arrow",
78
- size: "calc(var(--featured-link-icon-size) * 1.25)",
79
- color: iconColor,
80
- additionalCSS: "align-middle mr-8 relative -top-1 -right-4 transition-all group-hover:right-0 transform rotate-180"
81
- }), children) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, children, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon_component_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], {
82
- name: "icon-gui-link-arrow",
83
- size: "calc(var(--featured-link-icon-size) * 1.25)",
84
- color: iconColor,
85
- additionalCSS: "align-middle ml-8 relative -top-1 -left-4 transition-all group-hover:left-0"
86
- })));
87
- };
88
-
89
- FeaturedLink.propTypes = {
90
- url: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
91
- children: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
92
- textSize: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
93
- iconColor: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
94
- flush: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
95
- reverse: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
96
- additionalCSS: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
97
- newWindow: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
98
- onClick: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)
99
- };
100
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FeaturedLink);
101
-
102
- /***/ }),
103
-
104
- /***/ 9008:
105
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
106
-
107
- "use strict";
108
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
109
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
110
- /* harmony export */ });
111
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5225);
112
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
113
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6073);
114
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
115
- var _excluded = ["name", "size", "color", "additionalCSS"];
116
-
117
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
118
-
119
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
120
-
121
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
122
-
123
-
124
-
125
-
126
- var Icon = function Icon(_ref) {
127
- var name = _ref.name,
128
- _ref$size = _ref.size,
129
- size = _ref$size === void 0 ? "0.75rem" : _ref$size,
130
- _ref$color = _ref.color,
131
- color = _ref$color === void 0 ? "" : _ref$color,
132
- _ref$additionalCSS = _ref.additionalCSS,
133
- additionalCSS = _ref$additionalCSS === void 0 ? "" : _ref$additionalCSS,
134
- additionalAttributes = _objectWithoutProperties(_ref, _excluded);
135
-
136
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", _extends({
137
- className: "".concat(color, " ").concat(additionalCSS),
138
- style: {
139
- width: size,
140
- height: size
141
- }
142
- }, additionalAttributes), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("use", {
143
- xlinkHref: "#sprite-".concat(name)
144
- }));
145
- };
146
-
147
- Icon.propTypes = {
148
- name: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string.isRequired),
149
- size: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
150
- color: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
151
- additionalCSS: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
152
- };
153
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Icon);
154
-
155
- /***/ }),
156
-
157
- /***/ 6073:
158
- /***/ ((module) => {
159
-
160
- "use strict";
161
- module.exports = __WEBPACK_EXTERNAL_MODULE__6073__;
162
-
163
- /***/ }),
164
-
165
- /***/ 5225:
166
- /***/ ((module) => {
167
-
168
- "use strict";
169
- module.exports = __WEBPACK_EXTERNAL_MODULE__5225__;
170
-
171
- /***/ }),
172
-
173
- /***/ 7061:
174
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
175
-
176
- var _typeof = (__webpack_require__(8698)["default"]);
177
- function _regeneratorRuntime() {
178
- "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
179
- module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
180
- return e;
181
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
182
- var t,
183
- e = {},
184
- r = Object.prototype,
185
- n = r.hasOwnProperty,
186
- o = Object.defineProperty || function (t, e, r) {
187
- t[e] = r.value;
188
- },
189
- i = "function" == typeof Symbol ? Symbol : {},
190
- a = i.iterator || "@@iterator",
191
- c = i.asyncIterator || "@@asyncIterator",
192
- u = i.toStringTag || "@@toStringTag";
193
- function define(t, e, r) {
194
- return Object.defineProperty(t, e, {
195
- value: r,
196
- enumerable: !0,
197
- configurable: !0,
198
- writable: !0
199
- }), t[e];
200
- }
201
- try {
202
- define({}, "");
203
- } catch (t) {
204
- define = function define(t, e, r) {
205
- return t[e] = r;
206
- };
207
- }
208
- function wrap(t, e, r, n) {
209
- var i = e && e.prototype instanceof Generator ? e : Generator,
210
- a = Object.create(i.prototype),
211
- c = new Context(n || []);
212
- return o(a, "_invoke", {
213
- value: makeInvokeMethod(t, r, c)
214
- }), a;
215
- }
216
- function tryCatch(t, e, r) {
217
- try {
218
- return {
219
- type: "normal",
220
- arg: t.call(e, r)
221
- };
222
- } catch (t) {
223
- return {
224
- type: "throw",
225
- arg: t
226
- };
227
- }
228
- }
229
- e.wrap = wrap;
230
- var h = "suspendedStart",
231
- l = "suspendedYield",
232
- f = "executing",
233
- s = "completed",
234
- y = {};
235
- function Generator() {}
236
- function GeneratorFunction() {}
237
- function GeneratorFunctionPrototype() {}
238
- var p = {};
239
- define(p, a, function () {
240
- return this;
241
- });
242
- var d = Object.getPrototypeOf,
243
- v = d && d(d(values([])));
244
- v && v !== r && n.call(v, a) && (p = v);
245
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
246
- function defineIteratorMethods(t) {
247
- ["next", "throw", "return"].forEach(function (e) {
248
- define(t, e, function (t) {
249
- return this._invoke(e, t);
250
- });
251
- });
252
- }
253
- function AsyncIterator(t, e) {
254
- function invoke(r, o, i, a) {
255
- var c = tryCatch(t[r], t, o);
256
- if ("throw" !== c.type) {
257
- var u = c.arg,
258
- h = u.value;
259
- return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
260
- invoke("next", t, i, a);
261
- }, function (t) {
262
- invoke("throw", t, i, a);
263
- }) : e.resolve(h).then(function (t) {
264
- u.value = t, i(u);
265
- }, function (t) {
266
- return invoke("throw", t, i, a);
267
- });
268
- }
269
- a(c.arg);
270
- }
271
- var r;
272
- o(this, "_invoke", {
273
- value: function value(t, n) {
274
- function callInvokeWithMethodAndArg() {
275
- return new e(function (e, r) {
276
- invoke(t, n, e, r);
277
- });
278
- }
279
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
280
- }
281
- });
282
- }
283
- function makeInvokeMethod(e, r, n) {
284
- var o = h;
285
- return function (i, a) {
286
- if (o === f) throw new Error("Generator is already running");
287
- if (o === s) {
288
- if ("throw" === i) throw a;
289
- return {
290
- value: t,
291
- done: !0
292
- };
293
- }
294
- for (n.method = i, n.arg = a;;) {
295
- var c = n.delegate;
296
- if (c) {
297
- var u = maybeInvokeDelegate(c, n);
298
- if (u) {
299
- if (u === y) continue;
300
- return u;
301
- }
302
- }
303
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
304
- if (o === h) throw o = s, n.arg;
305
- n.dispatchException(n.arg);
306
- } else "return" === n.method && n.abrupt("return", n.arg);
307
- o = f;
308
- var p = tryCatch(e, r, n);
309
- if ("normal" === p.type) {
310
- if (o = n.done ? s : l, p.arg === y) continue;
311
- return {
312
- value: p.arg,
313
- done: n.done
314
- };
315
- }
316
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
317
- }
318
- };
319
- }
320
- function maybeInvokeDelegate(e, r) {
321
- var n = r.method,
322
- o = e.iterator[n];
323
- if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
324
- var i = tryCatch(o, e.iterator, r.arg);
325
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
326
- var a = i.arg;
327
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
328
- }
329
- function pushTryEntry(t) {
330
- var e = {
331
- tryLoc: t[0]
332
- };
333
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
334
- }
335
- function resetTryEntry(t) {
336
- var e = t.completion || {};
337
- e.type = "normal", delete e.arg, t.completion = e;
338
- }
339
- function Context(t) {
340
- this.tryEntries = [{
341
- tryLoc: "root"
342
- }], t.forEach(pushTryEntry, this), this.reset(!0);
343
- }
344
- function values(e) {
345
- if (e || "" === e) {
346
- var r = e[a];
347
- if (r) return r.call(e);
348
- if ("function" == typeof e.next) return e;
349
- if (!isNaN(e.length)) {
350
- var o = -1,
351
- i = function next() {
352
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
353
- return next.value = t, next.done = !0, next;
354
- };
355
- return i.next = i;
356
- }
357
- }
358
- throw new TypeError(_typeof(e) + " is not iterable");
359
- }
360
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
361
- value: GeneratorFunctionPrototype,
362
- configurable: !0
363
- }), o(GeneratorFunctionPrototype, "constructor", {
364
- value: GeneratorFunction,
365
- configurable: !0
366
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
367
- var e = "function" == typeof t && t.constructor;
368
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
369
- }, e.mark = function (t) {
370
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
371
- }, e.awrap = function (t) {
372
- return {
373
- __await: t
374
- };
375
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
376
- return this;
377
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
378
- void 0 === i && (i = Promise);
379
- var a = new AsyncIterator(wrap(t, r, n, o), i);
380
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
381
- return t.done ? t.value : a.next();
382
- });
383
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
384
- return this;
385
- }), define(g, "toString", function () {
386
- return "[object Generator]";
387
- }), e.keys = function (t) {
388
- var e = Object(t),
389
- r = [];
390
- for (var n in e) r.push(n);
391
- return r.reverse(), function next() {
392
- for (; r.length;) {
393
- var t = r.pop();
394
- if (t in e) return next.value = t, next.done = !1, next;
395
- }
396
- return next.done = !0, next;
397
- };
398
- }, e.values = values, Context.prototype = {
399
- constructor: Context,
400
- reset: function reset(e) {
401
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
402
- },
403
- stop: function stop() {
404
- this.done = !0;
405
- var t = this.tryEntries[0].completion;
406
- if ("throw" === t.type) throw t.arg;
407
- return this.rval;
408
- },
409
- dispatchException: function dispatchException(e) {
410
- if (this.done) throw e;
411
- var r = this;
412
- function handle(n, o) {
413
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
414
- }
415
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
416
- var i = this.tryEntries[o],
417
- a = i.completion;
418
- if ("root" === i.tryLoc) return handle("end");
419
- if (i.tryLoc <= this.prev) {
420
- var c = n.call(i, "catchLoc"),
421
- u = n.call(i, "finallyLoc");
422
- if (c && u) {
423
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
424
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
425
- } else if (c) {
426
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
427
- } else {
428
- if (!u) throw new Error("try statement without catch or finally");
429
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
430
- }
431
- }
432
- }
433
- },
434
- abrupt: function abrupt(t, e) {
435
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
436
- var o = this.tryEntries[r];
437
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
438
- var i = o;
439
- break;
440
- }
441
- }
442
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
443
- var a = i ? i.completion : {};
444
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
445
- },
446
- complete: function complete(t, e) {
447
- if ("throw" === t.type) throw t.arg;
448
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
449
- },
450
- finish: function finish(t) {
451
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
452
- var r = this.tryEntries[e];
453
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
454
- }
455
- },
456
- "catch": function _catch(t) {
457
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
458
- var r = this.tryEntries[e];
459
- if (r.tryLoc === t) {
460
- var n = r.completion;
461
- if ("throw" === n.type) {
462
- var o = n.arg;
463
- resetTryEntry(r);
464
- }
465
- return o;
466
- }
467
- }
468
- throw new Error("illegal catch attempt");
469
- },
470
- delegateYield: function delegateYield(e, r, n) {
471
- return this.delegate = {
472
- iterator: values(e),
473
- resultName: r,
474
- nextLoc: n
475
- }, "next" === this.method && (this.arg = t), y;
476
- }
477
- }, e;
478
- }
479
- module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
480
-
481
- /***/ }),
482
-
483
- /***/ 8698:
484
- /***/ ((module) => {
485
-
486
- function _typeof(o) {
487
- "@babel/helpers - typeof";
488
-
489
- return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
490
- return typeof o;
491
- } : function (o) {
492
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
493
- }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
494
- }
495
- module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
496
-
497
- /***/ }),
498
-
499
- /***/ 4687:
500
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
501
-
502
- // TODO(Babel 8): Remove this file.
503
-
504
- var runtime = __webpack_require__(7061)();
505
- module.exports = runtime;
506
-
507
- // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
508
- try {
509
- regeneratorRuntime = runtime;
510
- } catch (accidentalStrictMode) {
511
- if (typeof globalThis === "object") {
512
- globalThis.regeneratorRuntime = runtime;
513
- } else {
514
- Function("r", "regeneratorRuntime = r")(runtime);
515
- }
516
- }
517
-
518
-
519
- /***/ })
520
-
521
- /******/ });
522
- /************************************************************************/
523
- /******/ // The module cache
524
- /******/ var __webpack_module_cache__ = {};
525
- /******/
526
- /******/ // The require function
527
- /******/ function __webpack_require__(moduleId) {
528
- /******/ // Check if module is in cache
529
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
530
- /******/ if (cachedModule !== undefined) {
531
- /******/ return cachedModule.exports;
532
- /******/ }
533
- /******/ // Create a new module (and put it into the cache)
534
- /******/ var module = __webpack_module_cache__[moduleId] = {
535
- /******/ // no module.id needed
536
- /******/ // no module.loaded needed
537
- /******/ exports: {}
538
- /******/ };
539
- /******/
540
- /******/ // Execute the module function
541
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
542
- /******/
543
- /******/ // Return the exports of the module
544
- /******/ return module.exports;
545
- /******/ }
546
- /******/
547
- /************************************************************************/
548
- /******/ /* webpack/runtime/compat get default export */
549
- /******/ (() => {
550
- /******/ // getDefaultExport function for compatibility with non-harmony modules
551
- /******/ __webpack_require__.n = (module) => {
552
- /******/ var getter = module && module.__esModule ?
553
- /******/ () => (module['default']) :
554
- /******/ () => (module);
555
- /******/ __webpack_require__.d(getter, { a: getter });
556
- /******/ return getter;
557
- /******/ };
558
- /******/ })();
559
- /******/
560
- /******/ /* webpack/runtime/define property getters */
561
- /******/ (() => {
562
- /******/ // define getter functions for harmony exports
563
- /******/ __webpack_require__.d = (exports, definition) => {
564
- /******/ for(var key in definition) {
565
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
566
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
567
- /******/ }
568
- /******/ }
569
- /******/ };
570
- /******/ })();
571
- /******/
572
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
573
- /******/ (() => {
574
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
575
- /******/ })();
576
- /******/
577
- /******/ /* webpack/runtime/make namespace object */
578
- /******/ (() => {
579
- /******/ // define __esModule on exports
580
- /******/ __webpack_require__.r = (exports) => {
581
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
582
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
583
- /******/ }
584
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
585
- /******/ };
586
- /******/ })();
587
- /******/
588
- /************************************************************************/
589
- var __webpack_exports__ = {};
590
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
591
- (() => {
592
- "use strict";
593
- __webpack_require__.r(__webpack_exports__);
594
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
595
- /* harmony export */ "ThemeContext": () => (/* binding */ ThemeContext),
596
- /* harmony export */ "default": () => (/* binding */ Uptime),
597
- /* harmony export */ "themes": () => (/* binding */ themes)
598
- /* harmony export */ });
599
- /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4687);
600
- /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
601
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5225);
602
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
603
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6073);
604
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
605
- /* harmony import */ var _FeaturedLink_component_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5751);
606
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
607
-
608
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
609
-
610
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
611
-
612
-
613
-
614
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
615
-
616
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
617
-
618
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
619
-
620
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
621
-
622
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
623
-
624
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
625
-
626
- function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
627
-
628
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
629
-
630
-
631
-
632
-
633
- var themes = {
634
- light: {
635
- text: "text-cool-black",
636
- iconColor: "text-cool-black"
637
- },
638
- dark: {
639
- text: "text-white",
640
- iconColor: "text-white"
641
- }
642
- };
643
- var ThemeContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createContext();
644
-
645
- function StatusLegend(_ref) {
646
- var metadata = _ref.metadata,
647
- textColor = _ref.textColor;
648
- var items = Object.entries(metadata[0]).map(function (e) {
649
- var _e2 = _slicedToArray(e, 2),
650
- id = _e2[0],
651
- text = _e2[1];
652
-
653
- var classname = "ui-uptime-key ui-uptime-".concat(id, " ").concat(textColor);
654
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", {
655
- key: id,
656
- className: classname
657
- }, text);
658
- });
659
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
660
- className: "ui-uptime-legend"
661
- }, items);
662
- }
663
-
664
- function applyAlignment(value, i) {
665
- var count = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 8;
666
- var before = i < value + count;
667
- var after = i > value - count;
668
- if (i > 0 && !(before && after)) return null;
669
- var align = i === 0 || i > value ? "left" : "right";
670
- var diff = value - i;
671
- var amount = Math.abs(diff) || 0;
672
- var sign = i > value ? -1 : 1;
673
- return {
674
- align: align,
675
- amount: amount,
676
- sign: sign
677
- };
678
- }
679
-
680
- function UptimeGraph(_ref2) {
681
- var collection = _ref2.collection;
682
- // add 30 day split deliminators
683
- collection.splice(29, 0, null);
684
- collection.splice(60, 0, null);
685
- var MAX_TOOLTIP_CHAR_LENGTH = 80;
686
- var items = collection.map(function (row, i) {
687
- if (!row) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("li", {
688
- key: i,
689
- className: "ui-uptime-seperator"
690
- });
691
-
692
- var _map$filter = [0, 29, 60, 91].map(function (value) {
693
- return applyAlignment(value, i);
694
- }).filter(function (s) {
695
- return s;
696
- }),
697
- _map$filter2 = _slicedToArray(_map$filter, 1),
698
- _map$filter2$ = _map$filter2[0],
699
- alignment = _map$filter2$ === void 0 ? {} : _map$filter2$;
700
-
701
- var _alignment$align = alignment.align,
702
- align = _alignment$align === void 0 ? null : _alignment$align,
703
- _alignment$amount = alignment.amount,
704
- amount = _alignment$amount === void 0 ? null : _alignment$amount,
705
- _alignment$sign = alignment.sign,
706
- sign = _alignment$sign === void 0 ? null : _alignment$sign;
707
- var labelAlign = alignment && "ui-uptime-align-".concat(align);
708
- var classname = "ui-uptime-day ui-uptime-".concat(row["class"], " ").concat(labelAlign).trim();
709
- var label = row.label;
710
-
711
- var _label$trim = label.trim(),
712
- length = _label$trim.length;
713
-
714
- var tooltext = length < MAX_TOOLTIP_CHAR_LENGTH ? label : label.slice(0, MAX_TOOLTIP_CHAR_LENGTH - 1) + "…";
715
- var width = length > MAX_TOOLTIP_CHAR_LENGTH - 10 && "extra-wide" || length > MAX_TOOLTIP_CHAR_LENGTH / 2 && "wide" || "normal";
716
- var translateX = Math.min(Math.max(amount - 1, 0) * 10 >> 0, 50) * sign;
717
- var transform = align ? {
718
- transform: "translateX(".concat(translateX, "%)")
719
- } : {};
720
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("li", {
721
- key: i,
722
- className: classname
723
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", {
724
- className: "ui-uptime-width-".concat(width),
725
- style: transform
726
- }, tooltext));
727
- });
728
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
729
- className: "ui-uptime-graph"
730
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("ul", {
731
- className: "ui-uptime-list"
732
- }, items));
733
- }
734
-
735
- function StatusCtaLink(_ref3) {
736
- var href = _ref3.href,
737
- text = _ref3.text;
738
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
739
- className: "ui-uptime-link-back"
740
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ThemeContext.Consumer, null, function (_ref4) {
741
- var iconColor = _ref4.iconColor;
742
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_FeaturedLink_component_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
743
- url: href,
744
- iconColor: iconColor
745
- }, text);
746
- }));
747
- }
748
-
749
- function StatusFooter(_ref5) {
750
- var metadata = _ref5.metadata,
751
- href = _ref5.href,
752
- text = _ref5.text;
753
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
754
- className: "ui-uptime-footer"
755
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ThemeContext.Consumer, null, function (_ref6) {
756
- var text = _ref6.text;
757
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StatusLegend, {
758
- metadata: metadata,
759
- textColor: text
760
- });
761
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StatusCtaLink, {
762
- href: href,
763
- text: text
764
- }));
765
- }
766
-
767
- function handleError(err) {
768
- // output a message and normalise schema
769
- console.warn("Uptime Error", err);
770
-
771
- var _ref7 = err || {},
772
- message = _ref7.message;
773
-
774
- return {
775
- error: true,
776
- message: message
777
- };
778
- }
779
-
780
- function Uptime(_ref8) {
781
- var serverUrl = _ref8.serverUrl,
782
- _ref8$linkTo = _ref8.linkTo,
783
- linkTo = _ref8$linkTo === void 0 ? null : _ref8$linkTo,
784
- _ref8$theme = _ref8.theme,
785
- theme = _ref8$theme === void 0 ? "light" : _ref8$theme;
786
- if (!serverUrl) throw new Error("Server endpoint URL required");
787
-
788
- var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null),
789
- _useState2 = _slicedToArray(_useState, 2),
790
- data = _useState2[0],
791
- setData = _useState2[1];
792
-
793
- var _ref9 = data || {},
794
- collection = _ref9.collection,
795
- metadata = _ref9.metadata;
796
-
797
- var showFooterRow = (linkTo === null || linkTo === void 0 ? void 0 : linkTo.href) && (linkTo === null || linkTo === void 0 ? void 0 : linkTo.text);
798
- (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
799
- var fetchEndpointJson = /*#__PURE__*/function () {
800
- var _ref10 = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() {
801
- var payload, _payload, _collection, _metadata;
802
-
803
- return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {
804
- while (1) {
805
- switch (_context.prev = _context.next) {
806
- case 0:
807
- payload = null;
808
- _context.prev = 1;
809
- _context.next = 4;
810
- return fetch(serverUrl);
811
-
812
- case 4:
813
- payload = _context.sent;
814
- _context.next = 7;
815
- return payload.json();
816
-
817
- case 7:
818
- payload = _context.sent;
819
- _payload = payload, _collection = _payload.chart_data, _metadata = _payload.chart_legend;
820
- payload = {
821
- collection: _collection,
822
- metadata: _metadata
823
- };
824
- _context.next = 15;
825
- break;
826
-
827
- case 12:
828
- _context.prev = 12;
829
- _context.t0 = _context["catch"](1);
830
- payload = handleError(_context.t0);
831
-
832
- case 15:
833
- setData(payload);
834
-
835
- case 16:
836
- case "end":
837
- return _context.stop();
838
- }
839
- }
840
- }, _callee, null, [[1, 12]]);
841
- }));
842
-
843
- return function fetchEndpointJson() {
844
- return _ref10.apply(this, arguments);
845
- };
846
- }();
847
-
848
- fetchEndpointJson();
849
- }, []);
850
-
851
- if (data && data.error) {
852
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
853
- className: "flex sm:flex-row justify-center items-center p-24 border rounded ui-text-p2 ".concat(themes[theme].text),
854
- "data-id": "uptime-error"
855
- }, "Sorry, we can\u2019t retrieve uptime data right now.");
856
- }
857
-
858
- return data && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ThemeContext.Provider, {
859
- value: themes[theme]
860
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
861
- className: "ui-uptime-widget",
862
- "data-id": "uptime"
863
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(UptimeGraph, {
864
- collection: collection
865
- }), showFooterRow && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StatusFooter, _objectSpread({
866
- metadata: metadata
867
- }, linkTo))));
868
- }
869
- UptimeGraph.propTypes = {
870
- collection: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().array)
871
- };
872
- StatusLegend.propTypes = {
873
- metadata: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().array),
874
- textColor: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string)
875
- };
876
- StatusFooter.propTypes = {
877
- metadata: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().array),
878
- href: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
879
- text: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string)
880
- };
881
- StatusCtaLink.propTypes = {
882
- href: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
883
- text: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string)
884
- };
885
- Uptime.propTypes = {
886
- serverUrl: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
887
- linkTo: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
888
- theme: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(["light", "dark"])
889
- };
890
- })();
891
-
892
- /******/ return __webpack_exports__;
893
- /******/ })()
894
- ;
895
- });