@ably/ui 13.2.2 → 14.0.0-dev.0ed6be7
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.
- package/README.md +25 -152
- package/core/.DS_Store +0 -0
- package/core/Accordion/.DS_Store +0 -0
- package/core/Accordion.js +1 -0
- package/core/Code/.DS_Store +0 -0
- package/core/Code/component.css +1 -72
- package/core/Code/component.js +1 -1
- package/core/Code.js +1 -0
- package/core/ConnectStateWrapper/component.js +0 -1
- package/core/ConnectStateWrapper.js +1 -0
- package/core/ContactFooter/.DS_Store +0 -0
- package/core/ContactFooter/component.css +7 -10
- package/core/ContactFooter/component.js +1 -1
- package/core/ContactFooter.js +1 -0
- package/core/CookieMessage/.DS_Store +0 -0
- package/core/CookieMessage/component.css +10 -13
- package/core/CookieMessage/component.js +1 -1
- package/core/CookieMessage.js +1 -0
- package/core/CustomerLogos/.DS_Store +0 -0
- package/core/CustomerLogos/component.js +0 -1
- package/core/CustomerLogos.js +1 -0
- package/core/DropdownMenu/.DS_Store +0 -0
- package/core/DropdownMenu/component.js +0 -1
- package/core/DropdownMenu.js +1 -0
- package/core/FeaturedLink/.DS_Store +0 -0
- package/core/FeaturedLink/component.js +0 -1
- package/core/FeaturedLink.js +1 -0
- package/core/Flash/.DS_Store +0 -0
- package/core/Flash/component.css +19 -22
- package/core/Flash/component.js +1 -1
- package/core/Flash.js +1 -0
- package/core/Footer/.DS_Store +0 -0
- package/core/Footer/component.css +22 -25
- package/core/Footer/component.js +1 -1
- package/core/Footer.js +1 -0
- package/core/Icon/.DS_Store +0 -0
- package/core/Icon/component.js +0 -1
- package/core/Icon.js +1 -0
- package/core/Loader/.DS_Store +0 -0
- package/core/Loader/component.js +0 -1
- package/core/Loader.js +13 -0
- package/core/Logo/.DS_Store +0 -0
- package/core/Logo/component.js +0 -1
- package/core/Logo.js +1 -0
- package/core/Meganav/.DS_Store +0 -0
- package/core/Meganav/component.css +103 -106
- package/core/Meganav/component.js +1 -1
- package/core/Meganav.js +1 -0
- package/core/MeganavBlogPostsList/.DS_Store +0 -0
- package/core/MeganavBlogPostsList/component.js +1 -2
- package/core/MeganavBlogPostsList.js +1 -0
- package/core/MeganavContentCompany/.DS_Store +0 -0
- package/core/MeganavContentCompany/component.js +0 -1
- package/core/MeganavContentCompany.js +1 -0
- package/core/MeganavContentDevelopers/.DS_Store +0 -0
- package/core/MeganavContentDevelopers/component.js +0 -1
- package/core/MeganavContentDevelopers.js +1 -0
- package/core/MeganavContentProducts/.DS_Store +0 -0
- package/core/MeganavContentProducts/component.js +0 -1
- package/core/MeganavContentProducts.js +1 -0
- package/core/MeganavContentUseCases/.DS_Store +0 -0
- package/core/MeganavContentUseCases/component.js +0 -1
- package/core/MeganavContentUseCases.js +1 -0
- package/core/MeganavControl/.DS_Store +0 -0
- package/core/MeganavControl/component.js +1 -1
- package/core/MeganavControl.js +1 -0
- package/core/MeganavControlMobileDropdown/.DS_Store +0 -0
- package/core/MeganavControlMobileDropdown/component.js +1 -1
- package/core/MeganavControlMobileDropdown.js +1 -0
- package/core/MeganavControlMobilePanelClose/.DS_Store +0 -0
- package/core/MeganavControlMobilePanelClose/component.js +1 -1
- package/core/MeganavControlMobilePanelClose.js +1 -0
- package/core/MeganavControlMobilePanelOpen/.DS_Store +0 -0
- package/core/MeganavControlMobilePanelOpen/component.js +1 -1
- package/core/MeganavControlMobilePanelOpen.js +1 -0
- package/core/MeganavItemsDesktop/.DS_Store +0 -0
- package/core/MeganavItemsDesktop/component.js +0 -1
- package/core/MeganavItemsDesktop.js +1 -0
- package/core/MeganavItemsMobile/.DS_Store +0 -0
- package/core/MeganavItemsMobile/component.js +0 -1
- package/core/MeganavItemsMobile.js +1 -0
- package/core/MeganavItemsSignedIn/.DS_Store +0 -0
- package/core/MeganavItemsSignedIn/component.js +0 -1
- package/core/MeganavItemsSignedIn.js +1 -0
- package/core/MeganavSearch/.DS_Store +0 -0
- package/core/MeganavSearch/component.js +0 -1
- package/core/MeganavSearch.js +1 -0
- package/core/MeganavSearchAutocomplete/.DS_Store +0 -0
- package/core/MeganavSearchAutocomplete/component.js +1 -1
- package/core/MeganavSearchAutocomplete.js +1 -0
- package/core/MeganavSearchPanel/.DS_Store +0 -0
- package/core/MeganavSearchPanel/component.js +0 -1
- package/core/MeganavSearchPanel.js +1 -0
- package/core/MeganavSearchSuggestions/.DS_Store +0 -0
- package/core/MeganavSearchSuggestions/component.js +1 -1
- package/core/MeganavSearchSuggestions.js +1 -0
- package/core/Notice/.DS_Store +0 -0
- package/core/Notice/component.css +4 -7
- package/core/Notice/component.js +1 -1
- package/core/Notice.js +1 -0
- package/core/SignOutLink/.DS_Store +0 -0
- package/core/SignOutLink/component.js +0 -1
- package/core/SignOutLink.js +1 -0
- package/core/Slider/.DS_Store +0 -0
- package/core/Slider/component.css +4 -7
- package/core/Slider/component.js +1 -1
- package/core/Slider.js +1 -0
- package/core/Table/.DS_Store +0 -0
- package/core/Table/Table.js +1 -0
- package/core/Table/TableCell.js +7 -0
- package/core/Table/TableRow.js +1 -0
- package/core/Table/data.js +1 -0
- package/core/Table.js +1 -0
- package/core/Tooltip.js +1 -0
- package/core/css.js +1 -0
- package/core/dom-query.js +1 -0
- package/core/hubspot-chat-toggle.js +1 -0
- package/core/icons/discord.svg +10 -0
- package/core/icons/facebook.svg +4 -0
- package/core/icons/github.svg +3 -0
- package/core/icons/glassdoor.svg +3 -0
- package/core/icons/google.svg +3 -0
- package/core/icons/icon-display-48hrs.svg +3 -0
- package/core/icons/icon-display-about-ably-col.svg +4 -0
- package/core/icons/icon-display-api-keys.svg +3 -0
- package/core/icons/icon-display-api.svg +3 -0
- package/core/icons/icon-display-asset-tracking-col.svg +18 -0
- package/core/icons/icon-display-browser.svg +10 -0
- package/core/icons/icon-display-calendar.svg +3 -0
- package/core/icons/icon-display-call-mobile.svg +3 -0
- package/core/icons/icon-display-careers-col.svg +9 -0
- package/core/icons/icon-display-case-studies-col.svg +5 -0
- package/core/icons/icon-display-chat-col.svg +4 -0
- package/core/icons/icon-display-chat-stack-col.svg +4 -0
- package/core/icons/icon-display-chat-stack.svg +4 -0
- package/core/icons/icon-display-cloud-servers.svg +3 -0
- package/core/icons/icon-display-compare-tech-col.svg +9 -0
- package/core/icons/icon-display-customers-col.svg +15 -0
- package/core/icons/icon-display-data-broadcast-col.svg +26 -0
- package/core/icons/icon-display-data-synchronization-col.svg +14 -0
- package/core/icons/icon-display-docs-col.svg +7 -0
- package/core/icons/icon-display-documentation.svg +3 -0
- package/core/icons/icon-display-events-col.svg +13 -0
- package/core/icons/icon-display-examples-col.svg +11 -0
- package/core/icons/icon-display-gdpr.svg +3 -0
- package/core/icons/icon-display-general-comms.svg +3 -0
- package/core/icons/icon-display-hipaa.svg +10 -0
- package/core/icons/icon-display-integrations-col.svg +8 -0
- package/core/icons/icon-display-it-support-access.svg +3 -0
- package/core/icons/icon-display-it-support-helpdesk.svg +3 -0
- package/core/icons/icon-display-kafka-at-the-edge-col.svg +8 -0
- package/core/icons/icon-display-laptop.svg +10 -0
- package/core/icons/icon-display-lightbulb-col.svg +10 -0
- package/core/icons/icon-display-live-chat.svg +3 -0
- package/core/icons/icon-display-map-pin.svg +3 -0
- package/core/icons/icon-display-message.svg +3 -0
- package/core/icons/icon-display-padlock-closed.svg +3 -0
- package/core/icons/icon-display-platform.svg +22 -0
- package/core/icons/icon-display-play.svg +3 -0
- package/core/icons/icon-display-privacy-shield-framework.svg +7 -0
- package/core/icons/icon-display-push-notifications-col.svg +6 -0
- package/core/icons/icon-display-quickstart-guides-col.svg +8 -0
- package/core/icons/icon-display-resources-col.svg +21 -0
- package/core/icons/icon-display-sdks-col.svg +11 -0
- package/core/icons/icon-display-servers.svg +3 -0
- package/core/icons/icon-display-shopping-cart.svg +10 -0
- package/core/icons/icon-display-sla.svg +3 -0
- package/core/icons/icon-display-soc2-type2.svg +3 -0
- package/core/icons/icon-display-tech-account-comms.svg +3 -0
- package/core/icons/icon-display-tutorials-demos-col.svg +25 -0
- package/core/icons/icon-display-virtual-events-col.svg +12 -0
- package/core/icons/icon-display-virtual-events.svg +12 -0
- package/core/icons/icon-gui-ably-badge.svg +3 -0
- package/core/icons/icon-gui-arrow-bidirectional-horizontal.svg +3 -0
- package/core/icons/icon-gui-arrow-bidirectional-vertical.svg +3 -0
- package/core/icons/icon-gui-arrow-down.svg +3 -0
- package/core/icons/icon-gui-arrow-left.svg +3 -0
- package/core/icons/icon-gui-arrow-right.svg +3 -0
- package/core/icons/icon-gui-arrow-up.svg +3 -0
- package/core/icons/icon-gui-burger-menu.svg +5 -0
- package/core/icons/icon-gui-check-circled-fill-black.svg +4 -0
- package/core/icons/icon-gui-check-circled-fill.svg +4 -0
- package/core/icons/icon-gui-check-circled.svg +3 -0
- package/core/icons/icon-gui-checklist-checked.svg +3 -0
- package/core/icons/icon-gui-clock.svg +3 -0
- package/core/icons/icon-gui-close.svg +3 -0
- package/core/icons/icon-gui-copy.svg +10 -0
- package/core/icons/icon-gui-cross-circled-fill.svg +4 -0
- package/core/icons/icon-gui-cross-circled.svg +3 -0
- package/core/icons/icon-gui-dash-circled.svg +3 -0
- package/core/icons/icon-gui-disclosure-arrow.svg +3 -0
- package/core/icons/icon-gui-document-generic.svg +3 -0
- package/core/icons/icon-gui-enlarge.svg +3 -0
- package/core/icons/icon-gui-external-link.svg +3 -0
- package/core/icons/icon-gui-filter-flow-step-1.svg +5 -0
- package/core/icons/icon-gui-filter-flow-step-2.svg +5 -0
- package/core/icons/icon-gui-filter-flow-step-3.svg +5 -0
- package/core/icons/icon-gui-history.svg +3 -0
- package/core/icons/icon-gui-info.svg +3 -0
- package/core/icons/icon-gui-link-arrow.svg +3 -0
- package/core/icons/icon-gui-link.svg +4 -0
- package/core/icons/icon-gui-live-chat.svg +3 -0
- package/core/icons/icon-gui-minus.svg +3 -0
- package/core/icons/icon-gui-plus.svg +3 -0
- package/core/icons/icon-gui-quote-marks-solid.svg +3 -0
- package/core/icons/icon-gui-refresh.svg +10 -0
- package/core/icons/icon-gui-resources.svg +3 -0
- package/core/icons/icon-gui-search.svg +3 -0
- package/core/icons/icon-gui-tick.svg +3 -0
- package/core/icons/icon-gui-warning.svg +5 -0
- package/core/icons/icon-live-updates-results-metrics-col.svg +26 -0
- package/core/icons/icon-multi-user-spaces-col.svg +13 -0
- package/core/icons/icon-social-x.svg +3 -0
- package/core/icons/icon-tech-apachekafka.svg +3 -0
- package/core/icons/linkedin.svg +3 -0
- package/core/icons/quote.svg +3 -0
- package/core/icons/stackoverflow.svg +3 -0
- package/core/icons/twitter.svg +3 -0
- package/core/icons/youtube.svg +11 -0
- package/core/icons.js +1 -0
- package/core/load-sprites.js +1 -0
- package/core/react-renderer.js +1 -0
- package/core/remote-blogs-posts.js +1 -0
- package/core/remote-data-store.js +1 -0
- package/core/remote-data-util.js +1 -0
- package/core/remote-session-data.js +1 -0
- package/core/scripts.js +1 -2
- package/core/sprites.svg +1 -525
- package/core/styles/buttons.css +122 -0
- package/core/styles/forms.css +62 -0
- package/core/styles/layout.css +19 -0
- package/core/styles/properties.css +276 -0
- package/core/styles/text.css +166 -0
- package/core/styles.base.css +1 -0
- package/core/styles.components.css +33 -0
- package/core/styles.css +2 -699
- package/core/url-base.js +1 -0
- package/core/utils/syntax-highlighter-registry.js +1 -0
- package/core/utils/syntax-highlighter.css +67 -0
- package/core/utils/syntax-highlighter.js +1 -0
- package/package.json +38 -34
- package/reset/scripts.js +1 -1
- package/reset/styles/normalize.css +353 -0
- package/reset/styles/reset.css +129 -0
- package/reset/styles.css +2 -477
- package/src/.DS_Store +0 -0
- package/src/core/.DS_Store +0 -0
- package/src/core/Accordion/.DS_Store +0 -0
- package/src/core/Accordion/Accordion.stories.tsx +39 -0
- package/src/core/Accordion.tsx +147 -0
- package/src/core/Code/.DS_Store +0 -0
- package/src/core/Code/Code.stories.tsx +71 -0
- package/src/core/Code.tsx +45 -0
- package/src/core/{ConnectStateWrapper/component.jsx → ConnectStateWrapper.tsx} +7 -3
- package/src/core/ContactFooter/.DS_Store +0 -0
- package/src/core/ContactFooter/ContactFooter.stories.tsx +11 -0
- package/src/core/ContactFooter/component.css +7 -9
- package/src/core/ContactFooter.tsx +92 -0
- package/src/core/CookieMessage/.DS_Store +0 -0
- package/src/core/CookieMessage/CookieMessage.stories.tsx +12 -0
- package/src/core/CookieMessage/component.css +10 -12
- package/src/core/{CookieMessage/component.jsx → CookieMessage.tsx} +15 -10
- package/src/core/CustomerLogos/.DS_Store +0 -0
- package/src/core/CustomerLogos/CustomerLogos.stories.tsx +43 -0
- package/src/core/CustomerLogos.tsx +35 -0
- package/src/core/DropdownMenu/.DS_Store +0 -0
- package/src/core/DropdownMenu/DropdownMenu.stories.tsx +48 -0
- package/src/core/{DropdownMenu/component.jsx → DropdownMenu.tsx} +64 -36
- package/src/core/FeaturedLink/.DS_Store +0 -0
- package/src/core/FeaturedLink/FeaturedLink.stories.tsx +43 -0
- package/src/core/{FeaturedLink/component.jsx → FeaturedLink.tsx} +28 -17
- package/src/core/Flash/.DS_Store +0 -0
- package/src/core/Flash/Flash.stories.tsx +37 -0
- package/src/core/Flash/component.css +19 -21
- package/src/core/{Flash/component.jsx → Flash.tsx} +78 -39
- package/src/core/Footer/.DS_Store +0 -0
- package/src/core/Footer/Footer.stories.tsx +26 -0
- package/src/core/Footer/component.css +22 -24
- package/src/core/{Footer/component.jsx → Footer.tsx} +237 -70
- package/src/core/Icon/.DS_Store +0 -0
- package/src/core/Icon/Icon.stories.tsx +150 -0
- package/src/core/Icon.tsx +26 -0
- package/src/core/Loader/.DS_Store +0 -0
- package/src/core/Loader/Loader.stories.tsx +21 -0
- package/src/core/{Loader/component.jsx → Loader.tsx} +11 -8
- package/src/core/Logo/.DS_Store +0 -0
- package/src/core/Logo/Logo.stories.tsx +12 -0
- package/src/core/Logo.tsx +29 -0
- package/src/core/Meganav/.DS_Store +0 -0
- package/src/core/Meganav/Meganav.stories.tsx +86 -0
- package/src/core/Meganav/component.css +103 -105
- package/src/core/Meganav/component.js +6 -7
- package/src/core/Meganav.tsx +228 -0
- package/src/core/MeganavBlogPostsList/.DS_Store +0 -0
- package/src/core/{MeganavBlogPostsList/component.jsx → MeganavBlogPostsList.tsx} +15 -14
- package/src/core/MeganavContentCompany/.DS_Store +0 -0
- package/src/core/{MeganavContentCompany/component.jsx → MeganavContentCompany.tsx} +82 -33
- package/src/core/MeganavContentDevelopers/.DS_Store +0 -0
- package/src/core/{MeganavContentDevelopers/component.jsx → MeganavContentDevelopers.tsx} +98 -34
- package/src/core/MeganavContentProducts/.DS_Store +0 -0
- package/src/core/MeganavContentProducts.tsx +165 -0
- package/src/core/MeganavContentUseCases/.DS_Store +0 -0
- package/src/core/MeganavContentUseCases.tsx +244 -0
- package/src/core/MeganavControl/.DS_Store +0 -0
- package/src/core/{MeganavControl/component.jsx → MeganavControl.tsx} +18 -12
- package/src/core/MeganavControlMobileDropdown/.DS_Store +0 -0
- package/src/core/{MeganavControlMobileDropdown/component.jsx → MeganavControlMobileDropdown.tsx} +3 -7
- package/src/core/MeganavControlMobilePanelClose/.DS_Store +0 -0
- package/src/core/{MeganavControlMobilePanelClose/component.jsx → MeganavControlMobilePanelClose.tsx} +16 -9
- package/src/core/MeganavControlMobilePanelOpen/.DS_Store +0 -0
- package/src/core/MeganavControlMobilePanelOpen.tsx +32 -0
- package/src/core/MeganavItemsDesktop/.DS_Store +0 -0
- package/src/core/MeganavItemsDesktop.tsx +68 -0
- package/src/core/MeganavItemsMobile/.DS_Store +0 -0
- package/src/core/MeganavItemsMobile.tsx +197 -0
- package/src/core/MeganavItemsSignedIn/.DS_Store +0 -0
- package/src/core/{MeganavItemsSignedIn/component.jsx → MeganavItemsSignedIn.tsx} +59 -23
- package/src/core/MeganavSearch/.DS_Store +0 -0
- package/src/core/MeganavSearch.tsx +36 -0
- package/src/core/MeganavSearchAutocomplete/.DS_Store +0 -0
- package/src/core/MeganavSearchAutocomplete.tsx +12 -0
- package/src/core/MeganavSearchPanel/.DS_Store +0 -0
- package/src/core/MeganavSearchPanel.tsx +52 -0
- package/src/core/MeganavSearchSuggestions/.DS_Store +0 -0
- package/src/core/MeganavSearchSuggestions.tsx +62 -0
- package/src/core/Notice/.DS_Store +0 -0
- package/src/core/Notice/component.css +4 -6
- package/src/core/Notice/component.js +1 -1
- package/src/core/Notice.tsx +104 -0
- package/src/core/SignOutLink/.DS_Store +0 -0
- package/src/core/SignOutLink.tsx +51 -0
- package/src/core/Slider/.DS_Store +0 -0
- package/src/core/Slider/Slider.stories.tsx +45 -0
- package/src/core/Slider/component.css +4 -6
- package/src/core/Slider.tsx +112 -0
- package/src/core/Table/.DS_Store +0 -0
- package/src/core/Table/Table.stories.tsx +12 -0
- package/src/core/Table/Table.tsx +30 -0
- package/src/core/Table/TableCell.tsx +84 -0
- package/src/core/Table/TableRow.tsx +25 -0
- package/src/core/Table/data.tsx +113 -0
- package/src/core/Table.tsx +24 -0
- package/src/core/Tooltip/Tooltip.stories.tsx +27 -0
- package/src/core/Tooltip.tsx +60 -0
- package/src/core/icons.js +6 -0
- package/src/core/{react-renderer.js → react-renderer.tsx} +9 -7
- package/src/core/styles/buttons.css +121 -123
- package/src/core/styles/forms.css +49 -51
- package/src/core/styles/layout.css +14 -16
- package/src/core/styles/properties.css +250 -259
- package/src/core/styles/text.css +165 -167
- package/src/core/styles.components.css +22 -24
- package/src/core/utils/syntax-highlighter.css +55 -59
- package/src/pages/Buttons.mdx +121 -0
- package/src/pages/Chips.mdx +136 -0
- package/src/pages/Colour.mdx +23 -0
- package/src/pages/Forms.mdx +173 -0
- package/src/pages/Layout.mdx +58 -0
- package/src/pages/Typography.mdx +206 -0
- package/src/pages/utils.ts +70 -0
- package/tailwind.config.js +1 -7
- package/tailwind.extend.js +1 -1
- package/core/.gitignore +0 -1
- package/core/Code.jsx +0 -684
- package/core/CompanyAutocomplete/component.css +0 -46
- package/core/CompanyAutocomplete/component.js +0 -2
- package/core/CompanyAutocomplete/component.js.LICENSE.txt +0 -1
- package/core/ConnectStateWrapper.jsx +0 -222
- package/core/ContactFooter.jsx +0 -342
- package/core/CookieMessage.jsx +0 -204
- package/core/CustomerLogos.jsx +0 -144
- package/core/DropdownMenu.jsx +0 -313
- package/core/FeatureFooter/component.css +0 -13
- package/core/FeatureFooter/component.js +0 -1
- package/core/FeaturedLink.jsx +0 -236
- package/core/Flash.jsx +0 -622
- package/core/Footer.jsx +0 -587
- package/core/Icon.jsx +0 -152
- package/core/Loader.jsx +0 -154
- package/core/Logo.jsx +0 -147
- package/core/Meganav.jsx +0 -4146
- package/core/MeganavBlogPostsList/component.js.LICENSE.txt +0 -1
- package/core/MeganavBlogPostsList.jsx +0 -291
- package/core/MeganavContentCompany.jsx +0 -1053
- package/core/MeganavContentDevelopers.jsx +0 -334
- package/core/MeganavContentProducts.jsx +0 -368
- package/core/MeganavContentUseCases.jsx +0 -341
- package/core/MeganavControl.jsx +0 -199
- package/core/MeganavControlMobileDropdown.jsx +0 -197
- package/core/MeganavControlMobilePanelClose.jsx +0 -198
- package/core/MeganavControlMobilePanelOpen.jsx +0 -193
- package/core/MeganavItemsDesktop.jsx +0 -279
- package/core/MeganavItemsMobile.jsx +0 -684
- package/core/MeganavItemsSignedIn.jsx +0 -638
- package/core/MeganavSearch.jsx +0 -429
- package/core/MeganavSearchAutocomplete.jsx +0 -117
- package/core/MeganavSearchPanel.jsx +0 -381
- package/core/MeganavSearchSuggestions.jsx +0 -294
- package/core/Notice.jsx +0 -914
- package/core/Showcase/component.css +0 -31
- package/core/Showcase/component.js +0 -1
- package/core/Showcase.jsx +0 -17
- package/core/SignOutLink.jsx +0 -157
- package/core/Slider.jsx +0 -400
- package/core/Uptime/component.css +0 -128
- package/core/Uptime/component.js +0 -1
- package/core/Uptime.jsx +0 -890
- package/core/scripts.js.LICENSE.txt +0 -1
- package/preview/tmp/pids/.keep +0 -0
- package/reset/.gitignore +0 -1
- package/src/core/Code/component.html.erb +0 -3
- package/src/core/Code/component.jsx +0 -31
- package/src/core/Code/component.rb +0 -12
- package/src/core/CompanyAutocomplete/component.css +0 -45
- package/src/core/CompanyAutocomplete/component.js +0 -204
- package/src/core/ContactFooter/component.html.erb +0 -32
- package/src/core/ContactFooter/component.jsx +0 -66
- package/src/core/ContactFooter/component.rb +0 -13
- package/src/core/CustomerLogos/component.html.erb +0 -9
- package/src/core/CustomerLogos/component.jsx +0 -28
- package/src/core/CustomerLogos/component.rb +0 -14
- package/src/core/FeatureFooter/component.css +0 -12
- package/src/core/FeatureFooter/component.html.erb +0 -54
- package/src/core/FeatureFooter/component.js +0 -7
- package/src/core/FeatureFooter/component.rb +0 -30
- package/src/core/FeaturedLink/component.html.erb +0 -15
- package/src/core/FeaturedLink/component.rb +0 -21
- package/src/core/Footer/component.html.erb +0 -256
- package/src/core/Footer/component.rb +0 -14
- package/src/core/Icon/component.html.erb +0 -3
- package/src/core/Icon/component.jsx +0 -19
- package/src/core/Icon/component.rb +0 -25
- package/src/core/Loader/component.html.erb +0 -18
- package/src/core/Loader/component.rb +0 -19
- package/src/core/Logo/component.html.erb +0 -3
- package/src/core/Logo/component.jsx +0 -20
- package/src/core/Logo/component.rb +0 -31
- package/src/core/Meganav/component.html.erb +0 -31
- package/src/core/Meganav/component.jsx +0 -123
- package/src/core/Meganav/component.rb +0 -60
- package/src/core/MeganavBlogPostsList/component.html.erb +0 -5
- package/src/core/MeganavBlogPostsList/component.rb +0 -13
- package/src/core/MeganavContentCompany/component.html.erb +0 -90
- package/src/core/MeganavContentCompany/component.rb +0 -14
- package/src/core/MeganavContentDevelopers/component.html.erb +0 -129
- package/src/core/MeganavContentDevelopers/component.rb +0 -13
- package/src/core/MeganavContentProducts/component.html.erb +0 -83
- package/src/core/MeganavContentProducts/component.jsx +0 -105
- package/src/core/MeganavContentProducts/component.rb +0 -14
- package/src/core/MeganavContentUseCases/component.html.erb +0 -135
- package/src/core/MeganavContentUseCases/component.jsx +0 -147
- package/src/core/MeganavContentUseCases/component.rb +0 -13
- package/src/core/MeganavControl/component.html.erb +0 -6
- package/src/core/MeganavControl/component.rb +0 -20
- package/src/core/MeganavControlMobileDropdown/component.html.erb +0 -7
- package/src/core/MeganavControlMobileDropdown/component.rb +0 -11
- package/src/core/MeganavControlMobilePanelClose/component.html.erb +0 -12
- package/src/core/MeganavControlMobilePanelClose/component.rb +0 -12
- package/src/core/MeganavControlMobilePanelOpen/component.html.erb +0 -7
- package/src/core/MeganavControlMobilePanelOpen/component.jsx +0 -25
- package/src/core/MeganavControlMobilePanelOpen/component.rb +0 -9
- package/src/core/MeganavItemsDesktop/component.html.erb +0 -17
- package/src/core/MeganavItemsDesktop/component.jsx +0 -49
- package/src/core/MeganavItemsDesktop/component.rb +0 -23
- package/src/core/MeganavItemsMobile/component.html.erb +0 -75
- package/src/core/MeganavItemsMobile/component.jsx +0 -137
- package/src/core/MeganavItemsMobile/component.rb +0 -21
- package/src/core/MeganavItemsSignedIn/component.html.erb +0 -53
- package/src/core/MeganavItemsSignedIn/component.rb +0 -33
- package/src/core/MeganavSearch/component.html.erb +0 -15
- package/src/core/MeganavSearch/component.jsx +0 -33
- package/src/core/MeganavSearch/component.rb +0 -13
- package/src/core/MeganavSearchAutocomplete/component.html.erb +0 -6
- package/src/core/MeganavSearchAutocomplete/component.jsx +0 -14
- package/src/core/MeganavSearchAutocomplete/component.rb +0 -6
- package/src/core/MeganavSearchPanel/component.html.erb +0 -22
- package/src/core/MeganavSearchPanel/component.jsx +0 -39
- package/src/core/MeganavSearchPanel/component.rb +0 -13
- package/src/core/MeganavSearchSuggestions/component.html.erb +0 -22
- package/src/core/MeganavSearchSuggestions/component.jsx +0 -49
- package/src/core/MeganavSearchSuggestions/component.rb +0 -18
- package/src/core/Notice/component.html.erb +0 -16
- package/src/core/Notice/component.jsx +0 -71
- package/src/core/Notice/component.rb +0 -29
- package/src/core/Showcase/component.css +0 -30
- package/src/core/Showcase/component.html.erb +0 -76
- package/src/core/Showcase/component.js +0 -180
- package/src/core/Showcase/component.jsx +0 -0
- package/src/core/Showcase/component.rb +0 -190
- package/src/core/SignOutLink/component.html.erb +0 -1
- package/src/core/SignOutLink/component.jsx +0 -32
- package/src/core/SignOutLink/component.rb +0 -17
- package/src/core/Slider/component.html.erb +0 -28
- package/src/core/Slider/component.jsx +0 -86
- package/src/core/Slider/component.rb +0 -38
- package/src/core/Uptime/component.css +0 -127
- package/src/core/Uptime/component.html.erb +0 -0
- package/src/core/Uptime/component.js +0 -1
- package/src/core/Uptime/component.jsx +0 -183
- package/src/core/Uptime/component.rb +0 -7
- package/src/core/core.rb +0 -81
- /package/{preview/log/.keep → core/Accordion/component.js} +0 -0
- /package/{preview/tmp/.keep → src/core/Accordion/component.js} +0 -0
package/reset/styles.css
CHANGED
|
@@ -1,477 +1,2 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/* Document
|
|
5
|
-
========================================================================== */
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* 1. Correct the line height in all browsers.
|
|
9
|
-
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
html {
|
|
13
|
-
line-height: 1.15; /* 1 */
|
|
14
|
-
-webkit-text-size-adjust: 100%; /* 2 */
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/* Sections
|
|
18
|
-
========================================================================== */
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Remove the margin in all browsers.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
body {
|
|
25
|
-
margin: 0;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Render the `main` element consistently in IE.
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
main {
|
|
33
|
-
display: block;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Correct the font size and margin on `h1` elements within `section` and
|
|
38
|
-
* `article` contexts in Chrome, Firefox, and Safari.
|
|
39
|
-
*/
|
|
40
|
-
|
|
41
|
-
h1 {
|
|
42
|
-
font-size: 2em;
|
|
43
|
-
margin: 0.67em 0;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/* Grouping content
|
|
47
|
-
========================================================================== */
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* 1. Add the correct box sizing in Firefox.
|
|
51
|
-
* 2. Show the overflow in Edge and IE.
|
|
52
|
-
*/
|
|
53
|
-
|
|
54
|
-
hr {
|
|
55
|
-
box-sizing: content-box; /* 1 */
|
|
56
|
-
height: 0; /* 1 */
|
|
57
|
-
overflow: visible; /* 2 */
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
62
|
-
* 2. Correct the odd `em` font sizing in all browsers.
|
|
63
|
-
*/
|
|
64
|
-
|
|
65
|
-
pre {
|
|
66
|
-
font-family: monospace, monospace; /* 1 */
|
|
67
|
-
font-size: 1em; /* 2 */
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/* Text-level semantics
|
|
71
|
-
========================================================================== */
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Remove the gray background on active links in IE 10.
|
|
75
|
-
*/
|
|
76
|
-
|
|
77
|
-
a {
|
|
78
|
-
background-color: transparent;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* 1. Remove the bottom border in Chrome 57-
|
|
83
|
-
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
84
|
-
*/
|
|
85
|
-
|
|
86
|
-
abbr[title] {
|
|
87
|
-
border-bottom: none; /* 1 */
|
|
88
|
-
text-decoration: underline; /* 2 */
|
|
89
|
-
text-decoration: underline dotted; /* 2 */
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Add the correct font weight in Chrome, Edge, and Safari.
|
|
94
|
-
*/
|
|
95
|
-
|
|
96
|
-
b,
|
|
97
|
-
strong {
|
|
98
|
-
font-weight: bolder;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
103
|
-
* 2. Correct the odd `em` font sizing in all browsers.
|
|
104
|
-
*/
|
|
105
|
-
|
|
106
|
-
code,
|
|
107
|
-
kbd,
|
|
108
|
-
samp {
|
|
109
|
-
font-family: monospace, monospace; /* 1 */
|
|
110
|
-
font-size: 1em; /* 2 */
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Add the correct font size in all browsers.
|
|
115
|
-
*/
|
|
116
|
-
|
|
117
|
-
small {
|
|
118
|
-
font-size: 80%;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Prevent `sub` and `sup` elements from affecting the line height in
|
|
123
|
-
* all browsers.
|
|
124
|
-
*/
|
|
125
|
-
|
|
126
|
-
sub,
|
|
127
|
-
sup {
|
|
128
|
-
font-size: 75%;
|
|
129
|
-
line-height: 0;
|
|
130
|
-
position: relative;
|
|
131
|
-
vertical-align: baseline;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
sub {
|
|
135
|
-
bottom: -0.25em;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
sup {
|
|
139
|
-
top: -0.5em;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/* Embedded content
|
|
143
|
-
========================================================================== */
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Remove the border on images inside links in IE 10.
|
|
147
|
-
*/
|
|
148
|
-
|
|
149
|
-
img {
|
|
150
|
-
border-style: none;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/* Forms
|
|
154
|
-
========================================================================== */
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* 1. Change the font styles in all browsers.
|
|
158
|
-
* 2. Remove the margin in Firefox and Safari.
|
|
159
|
-
*/
|
|
160
|
-
|
|
161
|
-
button,
|
|
162
|
-
input,
|
|
163
|
-
optgroup,
|
|
164
|
-
select,
|
|
165
|
-
textarea {
|
|
166
|
-
font-family: inherit; /* 1 */
|
|
167
|
-
font-size: 100%; /* 1 */
|
|
168
|
-
line-height: 1.15; /* 1 */
|
|
169
|
-
margin: 0; /* 2 */
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Show the overflow in IE.
|
|
174
|
-
* 1. Show the overflow in Edge.
|
|
175
|
-
*/
|
|
176
|
-
|
|
177
|
-
button,
|
|
178
|
-
input {
|
|
179
|
-
/* 1 */
|
|
180
|
-
overflow: visible;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
|
185
|
-
* 1. Remove the inheritance of text transform in Firefox.
|
|
186
|
-
*/
|
|
187
|
-
|
|
188
|
-
button,
|
|
189
|
-
select {
|
|
190
|
-
/* 1 */
|
|
191
|
-
text-transform: none;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Correct the inability to style clickable types in iOS and Safari.
|
|
196
|
-
*/
|
|
197
|
-
|
|
198
|
-
button,
|
|
199
|
-
[type="button"],
|
|
200
|
-
[type="reset"],
|
|
201
|
-
[type="submit"] {
|
|
202
|
-
-webkit-appearance: button;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Remove the inner border and padding in Firefox.
|
|
207
|
-
*/
|
|
208
|
-
|
|
209
|
-
button::-moz-focus-inner,
|
|
210
|
-
[type="button"]::-moz-focus-inner,
|
|
211
|
-
[type="reset"]::-moz-focus-inner,
|
|
212
|
-
[type="submit"]::-moz-focus-inner {
|
|
213
|
-
border-style: none;
|
|
214
|
-
padding: 0;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* Restore the focus styles unset by the previous rule.
|
|
219
|
-
*/
|
|
220
|
-
|
|
221
|
-
button:-moz-focusring,
|
|
222
|
-
[type="button"]:-moz-focusring,
|
|
223
|
-
[type="reset"]:-moz-focusring,
|
|
224
|
-
[type="submit"]:-moz-focusring {
|
|
225
|
-
outline: 1px dotted ButtonText;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Correct the padding in Firefox.
|
|
230
|
-
*/
|
|
231
|
-
|
|
232
|
-
fieldset {
|
|
233
|
-
padding: 0.35em 0.75em 0.625em;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* 1. Correct the text wrapping in Edge and IE.
|
|
238
|
-
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
|
239
|
-
* 3. Remove the padding so developers are not caught out when they zero out
|
|
240
|
-
* `fieldset` elements in all browsers.
|
|
241
|
-
*/
|
|
242
|
-
|
|
243
|
-
legend {
|
|
244
|
-
box-sizing: border-box; /* 1 */
|
|
245
|
-
color: inherit; /* 2 */
|
|
246
|
-
display: table; /* 1 */
|
|
247
|
-
max-width: 100%; /* 1 */
|
|
248
|
-
padding: 0; /* 3 */
|
|
249
|
-
white-space: normal; /* 1 */
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
254
|
-
*/
|
|
255
|
-
|
|
256
|
-
progress {
|
|
257
|
-
vertical-align: baseline;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* Remove the default vertical scrollbar in IE 10+.
|
|
262
|
-
*/
|
|
263
|
-
|
|
264
|
-
textarea {
|
|
265
|
-
overflow: auto;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* 1. Add the correct box sizing in IE 10.
|
|
270
|
-
* 2. Remove the padding in IE 10.
|
|
271
|
-
*/
|
|
272
|
-
|
|
273
|
-
[type="checkbox"],
|
|
274
|
-
[type="radio"] {
|
|
275
|
-
box-sizing: border-box; /* 1 */
|
|
276
|
-
padding: 0; /* 2 */
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
281
|
-
*/
|
|
282
|
-
|
|
283
|
-
[type="number"]::-webkit-inner-spin-button,
|
|
284
|
-
[type="number"]::-webkit-outer-spin-button {
|
|
285
|
-
height: auto;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* 1. Correct the odd appearance in Chrome and Safari.
|
|
290
|
-
* 2. Correct the outline style in Safari.
|
|
291
|
-
*/
|
|
292
|
-
|
|
293
|
-
[type="search"] {
|
|
294
|
-
-webkit-appearance: textfield; /* 1 */
|
|
295
|
-
outline-offset: -2px; /* 2 */
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
/**
|
|
299
|
-
* Remove the inner padding in Chrome and Safari on macOS.
|
|
300
|
-
*/
|
|
301
|
-
|
|
302
|
-
[type="search"]::-webkit-search-decoration {
|
|
303
|
-
-webkit-appearance: none;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* 1. Correct the inability to style clickable types in iOS and Safari.
|
|
308
|
-
* 2. Change font properties to `inherit` in Safari.
|
|
309
|
-
*/
|
|
310
|
-
|
|
311
|
-
::-webkit-file-upload-button {
|
|
312
|
-
-webkit-appearance: button; /* 1 */
|
|
313
|
-
font: inherit; /* 2 */
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
/* Interactive
|
|
317
|
-
========================================================================== */
|
|
318
|
-
|
|
319
|
-
/*
|
|
320
|
-
* Add the correct display in Edge, IE 10+, and Firefox.
|
|
321
|
-
*/
|
|
322
|
-
|
|
323
|
-
details {
|
|
324
|
-
display: block;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
/*
|
|
328
|
-
* Add the correct display in all browsers.
|
|
329
|
-
*/
|
|
330
|
-
|
|
331
|
-
summary {
|
|
332
|
-
display: list-item;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
/* Misc
|
|
336
|
-
========================================================================== */
|
|
337
|
-
|
|
338
|
-
/**
|
|
339
|
-
* Add the correct display in IE 10+.
|
|
340
|
-
*/
|
|
341
|
-
|
|
342
|
-
template {
|
|
343
|
-
display: none;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* Add the correct display in IE 10.
|
|
348
|
-
*/
|
|
349
|
-
|
|
350
|
-
[hidden] {
|
|
351
|
-
display: none;
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
/* Reset based on https://unpkg.com/tailwindcss@1.9.6/dist/base.css */
|
|
355
|
-
@layer base {
|
|
356
|
-
html {
|
|
357
|
-
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
|
|
358
|
-
Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
|
|
359
|
-
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
|
|
360
|
-
"Noto Color Emoji";
|
|
361
|
-
line-height: 1.5;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
blockquote,
|
|
365
|
-
dl,
|
|
366
|
-
dd,
|
|
367
|
-
h1,
|
|
368
|
-
h2,
|
|
369
|
-
h3,
|
|
370
|
-
h4,
|
|
371
|
-
h5,
|
|
372
|
-
h6,
|
|
373
|
-
figure,
|
|
374
|
-
p,
|
|
375
|
-
pre {
|
|
376
|
-
margin: 0;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
h1,
|
|
380
|
-
h2,
|
|
381
|
-
h3,
|
|
382
|
-
h4,
|
|
383
|
-
h5,
|
|
384
|
-
h6 {
|
|
385
|
-
font-size: inherit;
|
|
386
|
-
font-weight: inherit;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
fieldset {
|
|
390
|
-
margin: 0;
|
|
391
|
-
padding: 0;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
ol,
|
|
395
|
-
ul {
|
|
396
|
-
list-style: none;
|
|
397
|
-
margin: 0;
|
|
398
|
-
padding: 0;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
pre,
|
|
402
|
-
code,
|
|
403
|
-
kbd,
|
|
404
|
-
samp {
|
|
405
|
-
font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
|
|
406
|
-
monospace;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
button {
|
|
410
|
-
background-color: transparent;
|
|
411
|
-
background-image: none;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
button:focus {
|
|
415
|
-
outline: 1px dotted;
|
|
416
|
-
outline: 5px auto -webkit-focus-ring-color;
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
img,
|
|
420
|
-
video {
|
|
421
|
-
max-width: 100%;
|
|
422
|
-
height: auto;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
*,
|
|
426
|
-
::before,
|
|
427
|
-
::after {
|
|
428
|
-
box-sizing: border-box;
|
|
429
|
-
border-width: 0;
|
|
430
|
-
border-style: solid;
|
|
431
|
-
border-color: #e2e8f0;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
hr {
|
|
435
|
-
border-top-width: 1px;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
img {
|
|
439
|
-
border-style: solid;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
textarea {
|
|
443
|
-
resize: vertical;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
input::-moz-placeholder, textarea::-moz-placeholder {
|
|
447
|
-
color: #a0aec0;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
input::placeholder,
|
|
451
|
-
textarea::placeholder {
|
|
452
|
-
color: #a0aec0;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
input::-webkit-search-cancel-button {
|
|
456
|
-
display: none;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
button,
|
|
460
|
-
[role="button"] {
|
|
461
|
-
cursor: pointer;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
table {
|
|
465
|
-
border-collapse: collapse;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
a {
|
|
469
|
-
color: inherit;
|
|
470
|
-
text-decoration: inherit;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
svg {
|
|
474
|
-
fill: currentColor;
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
|
|
1
|
+
@import "./styles/normalize.css";
|
|
2
|
+
@import "./styles/reset.css";
|
package/src/.DS_Store
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Accordion, { AccordionProps } from "./component.tsx";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: "Components/Accordion",
|
|
6
|
+
component: Accordion,
|
|
7
|
+
args: {
|
|
8
|
+
data: [
|
|
9
|
+
{
|
|
10
|
+
name: "Item 1",
|
|
11
|
+
content: "Content 1",
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
name: "Item 2",
|
|
15
|
+
content: "Content 2",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: "Item 3",
|
|
19
|
+
content: "Content 3",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: "Item 4",
|
|
23
|
+
content: "Content 4",
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
autoClose: false,
|
|
27
|
+
topBorder: false,
|
|
28
|
+
bottomBorder: false,
|
|
29
|
+
arrowIcon: false,
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const Default = {};
|
|
34
|
+
|
|
35
|
+
export const AutoClose = {
|
|
36
|
+
render: (args: AccordionProps) => (
|
|
37
|
+
<Accordion data={args.data} autoClose={true} />
|
|
38
|
+
),
|
|
39
|
+
};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import React, { useState, ReactNode, JSX } from "react";
|
|
2
|
+
import Icon from "../Icon/component.tsx";
|
|
3
|
+
|
|
4
|
+
type AccordionData = {
|
|
5
|
+
name: string;
|
|
6
|
+
content: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
type AccordionRowProps = {
|
|
10
|
+
bottomBorder: boolean;
|
|
11
|
+
topBorder: boolean;
|
|
12
|
+
active: boolean;
|
|
13
|
+
last: boolean;
|
|
14
|
+
name: string;
|
|
15
|
+
index;
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
arrowIcon: boolean;
|
|
18
|
+
setActiveIndex: (index: number) => void;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export type AccordionProps = {
|
|
22
|
+
data: AccordionData[];
|
|
23
|
+
arrowIcon?: boolean;
|
|
24
|
+
topBorder?: boolean;
|
|
25
|
+
bottomBorder?: boolean;
|
|
26
|
+
id?: string;
|
|
27
|
+
autoClose?: boolean;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const AccordionRow = ({
|
|
31
|
+
name,
|
|
32
|
+
children,
|
|
33
|
+
index,
|
|
34
|
+
setActiveIndex,
|
|
35
|
+
active,
|
|
36
|
+
topBorder,
|
|
37
|
+
bottomBorder,
|
|
38
|
+
last,
|
|
39
|
+
arrowIcon,
|
|
40
|
+
}: AccordionRowProps) => {
|
|
41
|
+
let iconActive: JSX.Element, iconInactive: JSX.Element;
|
|
42
|
+
const handleSetIndex = () => {
|
|
43
|
+
setActiveIndex(index);
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
if (arrowIcon) {
|
|
47
|
+
iconActive = (
|
|
48
|
+
<Icon
|
|
49
|
+
name="icon-gui-disclosure-arrow"
|
|
50
|
+
color="text-dark-grey"
|
|
51
|
+
size="1.5rem"
|
|
52
|
+
additionalCSS="-rotate-90"
|
|
53
|
+
/>
|
|
54
|
+
);
|
|
55
|
+
iconInactive = (
|
|
56
|
+
<Icon
|
|
57
|
+
name="icon-gui-disclosure-arrow"
|
|
58
|
+
color="text-dark-grey"
|
|
59
|
+
size="1.5rem"
|
|
60
|
+
additionalCSS="rotate-90"
|
|
61
|
+
/>
|
|
62
|
+
);
|
|
63
|
+
} else {
|
|
64
|
+
iconActive = (
|
|
65
|
+
<Icon name="icon-gui-minus" color="text-dark-grey" size="1.5rem" />
|
|
66
|
+
);
|
|
67
|
+
iconInactive = (
|
|
68
|
+
<Icon name="icon-gui-plus" color="text-dark-grey" size="1.5rem" />
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return (
|
|
73
|
+
<div
|
|
74
|
+
className={`border-mid-grey ${last && !bottomBorder ? "" : "border-b"} ${
|
|
75
|
+
topBorder ? "border-t" : ""
|
|
76
|
+
}`}
|
|
77
|
+
>
|
|
78
|
+
<button
|
|
79
|
+
type="button"
|
|
80
|
+
onClick={handleSetIndex}
|
|
81
|
+
className={`flex w-full px-0 focus:outline-none py-20`}
|
|
82
|
+
>
|
|
83
|
+
<span className="ui-text-p1 font-bold text-left mr-8">{name}</span>
|
|
84
|
+
<span className="ml-auto">{active ? iconActive : iconInactive}</span>
|
|
85
|
+
</button>
|
|
86
|
+
|
|
87
|
+
<section
|
|
88
|
+
className="ui-text-p2 transition-all overflow-hidden"
|
|
89
|
+
style={{
|
|
90
|
+
maxHeight: active ? "500px" : "0",
|
|
91
|
+
paddingBottom: active ? "1.5rem" : "0",
|
|
92
|
+
}}
|
|
93
|
+
>
|
|
94
|
+
{children}
|
|
95
|
+
</section>
|
|
96
|
+
</div>
|
|
97
|
+
);
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
const Accordion = ({
|
|
101
|
+
data,
|
|
102
|
+
id = "id-accordion",
|
|
103
|
+
topBorder,
|
|
104
|
+
bottomBorder,
|
|
105
|
+
arrowIcon,
|
|
106
|
+
autoClose,
|
|
107
|
+
}: AccordionProps) => {
|
|
108
|
+
const [activeIndexes, setActiveIndexes] = useState([]);
|
|
109
|
+
|
|
110
|
+
const handleSetIndex = (index: number) => {
|
|
111
|
+
const currentIndexIsActive = activeIndexes.includes(index);
|
|
112
|
+
|
|
113
|
+
if (autoClose) {
|
|
114
|
+
setActiveIndexes(currentIndexIsActive ? [] : [index]);
|
|
115
|
+
} else {
|
|
116
|
+
setActiveIndexes(
|
|
117
|
+
currentIndexIsActive
|
|
118
|
+
? activeIndexes.filter((i) => i !== index)
|
|
119
|
+
: [...activeIndexes, index]
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
return (
|
|
125
|
+
<div className="ui-grid-mx max-w-screen-sm sm:mx-auto" id={id}>
|
|
126
|
+
{data.map((item, currentIndex) => {
|
|
127
|
+
return (
|
|
128
|
+
<AccordionRow
|
|
129
|
+
key={item.name}
|
|
130
|
+
name={item.name}
|
|
131
|
+
arrowIcon={arrowIcon}
|
|
132
|
+
index={currentIndex}
|
|
133
|
+
last={data.length === currentIndex + 1}
|
|
134
|
+
topBorder={topBorder && currentIndex === 0}
|
|
135
|
+
bottomBorder={bottomBorder && data.length === currentIndex + 1}
|
|
136
|
+
active={activeIndexes.includes(currentIndex)}
|
|
137
|
+
setActiveIndex={handleSetIndex}
|
|
138
|
+
>
|
|
139
|
+
{item.content}
|
|
140
|
+
</AccordionRow>
|
|
141
|
+
);
|
|
142
|
+
})}
|
|
143
|
+
</div>
|
|
144
|
+
);
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
export default Accordion;
|
|
Binary file
|