@ably/ui 14.0.0-dev.fbce38f → 14.0.0
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 +8 -10
- package/core/Accordion.js +1 -0
- package/core/Code/component.js +1 -1
- package/core/Code.js +1 -0
- package/core/ConnectStateWrapper.js +1 -0
- package/core/ContactFooter/component.css +9 -7
- package/core/ContactFooter/component.js +1 -1
- package/core/ContactFooter.js +1 -0
- package/core/CookieMessage/component.css +12 -10
- package/core/CookieMessage.js +1 -0
- package/core/CustomerLogos.js +1 -0
- package/core/DropdownMenu.js +1 -0
- package/core/Expander.js +1 -0
- package/core/FeaturedLink.js +1 -0
- package/core/Flash/component.css +21 -19
- package/core/Flash.js +1 -0
- package/core/Footer/component.css +24 -22
- package/core/Footer.js +1 -0
- package/core/Icon.js +1 -0
- package/core/Loader.js +13 -0
- package/core/Logo.js +1 -0
- package/core/Meganav/component.css +105 -103
- package/core/Meganav/component.js +1 -1
- package/core/Meganav.js +1 -0
- package/core/MeganavBlogPostsList/component.js +1 -1
- package/core/MeganavBlogPostsList.js +1 -0
- package/core/MeganavContentCompany.js +1 -0
- package/core/MeganavContentDevelopers.js +1 -0
- package/core/MeganavContentProducts.js +1 -0
- package/core/MeganavContentUseCases.js +1 -0
- package/core/MeganavControl/component.js +1 -1
- package/core/MeganavControl.js +1 -0
- package/core/MeganavControlMobileDropdown/component.js +1 -1
- package/core/MeganavControlMobileDropdown.js +1 -0
- package/core/MeganavControlMobilePanelClose/component.js +1 -1
- package/core/MeganavControlMobilePanelClose.js +1 -0
- package/core/MeganavControlMobilePanelOpen/component.js +1 -1
- package/core/MeganavControlMobilePanelOpen.js +1 -0
- package/core/MeganavItemsDesktop.js +1 -0
- package/core/MeganavItemsMobile.js +1 -0
- package/core/MeganavItemsSignedIn.js +1 -0
- package/core/MeganavSearch.js +1 -0
- package/core/MeganavSearchAutocomplete/component.js +1 -1
- package/core/MeganavSearchAutocomplete.js +1 -0
- package/core/MeganavSearchPanel.js +1 -0
- package/core/MeganavSearchSuggestions/component.js +1 -1
- package/core/MeganavSearchSuggestions.js +1 -0
- package/core/Notice/component.css +6 -4
- package/core/Notice/component.js +1 -1
- package/core/Notice.js +1 -0
- package/core/SignOutLink.js +1 -0
- package/core/Slider/component.css +38 -4
- package/core/Slider/component.js +1 -1
- package/core/Slider.js +1 -0
- package/core/Table/Table.js +1 -1
- package/core/Table/TableCell.js +7 -1
- package/core/Table/TableRow.js +1 -1
- package/core/Table/data.js +1 -0
- package/core/Table.js +1 -0
- package/core/Tooltip.js +1 -0
- package/core/css.js +1 -1
- package/core/dom-query.js +1 -1
- package/core/hubspot-chat-toggle.js +1 -1
- package/core/icons/icon-gui-partial.svg +4 -0
- package/core/icons.js +1 -1
- package/core/load-sprites.js +1 -1
- package/core/react-renderer.js +1 -1
- package/core/remote-blogs-posts.js +1 -1
- package/core/remote-data-store.js +1 -1
- package/core/remote-data-util.js +1 -1
- package/core/remote-session-data.js +1 -1
- package/core/scripts.js +1 -1
- package/core/sprites.svg +1 -1
- package/core/styles/buttons.css +123 -121
- package/core/styles/forms.css +51 -49
- package/core/styles/layout.css +16 -14
- package/core/styles/properties.css +252 -250
- package/core/styles/text.css +167 -165
- package/core/styles.components.css +24 -22
- package/core/url-base.js +1 -1
- package/core/utils/syntax-highlighter-registry.js +1 -1
- package/core/utils/syntax-highlighter.css +59 -55
- package/core/utils/syntax-highlighter.js +1 -1
- package/package.json +3 -6
- package/src/core/Accordion/Accordion.stories.tsx +1 -1
- package/src/core/{Accordion/component.tsx → Accordion.tsx} +8 -6
- package/src/core/Code/Code.stories.tsx +1 -1
- package/src/core/{Code/component.tsx → Code.tsx} +2 -3
- package/src/core/{ConnectStateWrapper/component.tsx → ConnectStateWrapper.tsx} +1 -1
- package/src/core/ContactFooter/ContactFooter.stories.tsx +1 -1
- package/src/core/ContactFooter/component.css +9 -7
- package/src/core/{ContactFooter/component.tsx → ContactFooter.tsx} +3 -4
- package/src/core/CookieMessage/CookieMessage.stories.tsx +1 -1
- package/src/core/CookieMessage/component.css +12 -10
- package/src/core/{CookieMessage/component.tsx → CookieMessage.tsx} +1 -2
- package/src/core/CustomerLogos/CustomerLogos.stories.tsx +1 -1
- package/src/core/DropdownMenu/DropdownMenu.stories.tsx +2 -2
- package/src/core/{DropdownMenu/component.tsx → DropdownMenu.tsx} +1 -1
- package/src/core/Expander/Expander.stories.tsx +132 -0
- package/src/core/Expander.tsx +63 -0
- package/src/core/FeaturedLink/FeaturedLink.stories.tsx +1 -1
- package/src/core/{FeaturedLink/component.tsx → FeaturedLink.tsx} +1 -1
- package/src/core/Flash/Flash.stories.tsx +1 -1
- package/src/core/Flash/component.css +21 -19
- package/src/core/{Flash/component.tsx → Flash.tsx} +3 -4
- package/src/core/Footer/Footer.stories.tsx +1 -1
- package/src/core/Footer/component.css +24 -22
- package/src/core/{Footer/component.tsx → Footer.tsx} +2 -3
- package/src/core/Icon/Icon.stories.tsx +2 -1
- package/src/core/Loader/Loader.stories.tsx +1 -1
- package/src/core/Logo/Logo.stories.tsx +1 -1
- package/src/core/Meganav/Meganav.stories.tsx +1 -1
- package/src/core/Meganav/component.css +105 -103
- package/src/core/Meganav/component.js +0 -2
- package/src/core/{Meganav/component.tsx → Meganav.tsx} +16 -19
- package/src/core/{MeganavBlogPostsList/component.tsx → MeganavBlogPostsList.tsx} +2 -2
- package/src/core/{MeganavContentCompany/component.tsx → MeganavContentCompany.tsx} +5 -5
- package/src/core/{MeganavContentDevelopers/component.tsx → MeganavContentDevelopers.tsx} +2 -2
- package/src/core/{MeganavContentProducts/component.tsx → MeganavContentProducts.tsx} +2 -2
- package/src/core/{MeganavContentUseCases/component.tsx → MeganavContentUseCases.tsx} +2 -2
- package/src/core/{MeganavControl/component.tsx → MeganavControl.tsx} +2 -2
- package/src/core/{MeganavControlMobileDropdown/component.tsx → MeganavControlMobileDropdown.tsx} +2 -2
- package/src/core/{MeganavControlMobilePanelClose/component.tsx → MeganavControlMobilePanelClose.tsx} +1 -2
- package/src/core/{MeganavControlMobilePanelOpen/component.tsx → MeganavControlMobilePanelOpen.tsx} +1 -2
- package/src/core/{MeganavItemsDesktop/component.tsx → MeganavItemsDesktop.tsx} +3 -3
- package/src/core/{MeganavItemsMobile/component.tsx → MeganavItemsMobile.tsx} +9 -9
- package/src/core/{MeganavItemsSignedIn/component.tsx → MeganavItemsSignedIn.tsx} +4 -8
- package/src/core/{MeganavSearch/component.tsx → MeganavSearch.tsx} +3 -3
- package/src/core/{MeganavSearchPanel/component.tsx → MeganavSearchPanel.tsx} +4 -4
- package/src/core/{MeganavSearchSuggestions/component.tsx → MeganavSearchSuggestions.tsx} +2 -2
- package/src/core/Notice/component.css +6 -4
- package/src/core/Notice/component.js +1 -2
- package/src/core/{Notice/component.tsx → Notice.tsx} +2 -4
- package/src/core/{SignOutLink/component.tsx → SignOutLink.tsx} +1 -1
- package/src/core/Slider/Slider.stories.tsx +83 -30
- package/src/core/Slider/component.css +38 -4
- package/src/core/Slider/component.js +0 -2
- package/src/core/Slider.tsx +224 -0
- package/src/core/Table/Table.tsx +38 -10
- package/src/core/Table/TableCell.tsx +14 -27
- package/src/core/Table/{stories/data.tsx → data.tsx} +23 -3
- package/src/core/{Table/index.ts → Table.tsx} +3 -12
- package/src/core/Tooltip/Tooltip.stories.tsx +1 -1
- package/src/core/{Tooltip/component.tsx → Tooltip.tsx} +34 -6
- package/src/core/icons/icon-gui-partial.svg +4 -0
- package/src/core/scripts.js +0 -2
- package/src/core/styles/buttons.css +123 -121
- package/src/core/styles/forms.css +51 -49
- package/src/core/styles/layout.css +16 -14
- package/src/core/styles/properties.css +252 -250
- package/src/core/styles/text.css +167 -165
- package/src/core/styles.components.css +24 -22
- package/src/core/utils/syntax-highlighter.css +59 -55
- package/src/pages/Buttons.mdx +1 -1
- package/src/pages/Chips.mdx +1 -1
- package/src/pages/Forms.mdx +2 -2
- package/core/Accordion/component.js +0 -1
- package/core/ConnectStateWrapper/component.js +0 -1
- package/core/CookieMessage/component.js +0 -1
- package/core/CustomerLogos/component.js +0 -1
- package/core/DropdownMenu/component.js +0 -1
- package/core/FeaturedLink/component.js +0 -1
- package/core/Flash/component.js +0 -1
- package/core/Footer/component.js +0 -1
- package/core/Icon/component.js +0 -1
- package/core/Loader/component.js +0 -1
- package/core/Logo/component.js +0 -1
- package/core/MeganavContentCompany/component.js +0 -1
- package/core/MeganavContentDevelopers/component.js +0 -1
- package/core/MeganavContentProducts/component.js +0 -1
- package/core/MeganavContentUseCases/component.js +0 -1
- package/core/MeganavItemsDesktop/component.js +0 -1
- package/core/MeganavItemsMobile/component.js +0 -1
- package/core/MeganavItemsSignedIn/component.js +0 -1
- package/core/MeganavSearch/component.js +0 -1
- package/core/MeganavSearchPanel/component.js +0 -1
- package/core/SignOutLink/component.js +0 -1
- package/core/Table/index.js +0 -1
- package/core/Table/stories/data.js +0 -1
- package/core/Tooltip/component.js +0 -1
- package/src/core/Accordion/component.js +0 -0
- package/src/core/ConnectStateWrapper/component.js +0 -0
- package/src/core/CookieMessage/component.js +0 -1
- package/src/core/CustomerLogos/component.js +0 -0
- package/src/core/DropdownMenu/component.js +0 -0
- package/src/core/FeaturedLink/component.js +0 -0
- package/src/core/Flash/component.js +0 -1
- package/src/core/Footer/component.js +0 -1
- package/src/core/Icon/component.js +0 -0
- package/src/core/Loader/component.js +0 -0
- package/src/core/Logo/component.js +0 -0
- package/src/core/MeganavContentCompany/component.js +0 -0
- package/src/core/MeganavContentDevelopers/component.js +0 -0
- package/src/core/MeganavContentProducts/component.js +0 -0
- package/src/core/MeganavContentUseCases/component.js +0 -1
- package/src/core/MeganavItemsDesktop/component.js +0 -0
- package/src/core/MeganavItemsMobile/component.js +0 -0
- package/src/core/MeganavItemsSignedIn/component.js +0 -0
- package/src/core/MeganavSearch/component.js +0 -0
- package/src/core/MeganavSearchPanel/component.js +0 -0
- package/src/core/SignOutLink/component.js +0 -0
- package/src/core/Slider/component.tsx +0 -112
- /package/src/core/{CustomerLogos/component.tsx → CustomerLogos.tsx} +0 -0
- /package/src/core/{Icon/component.tsx → Icon.tsx} +0 -0
- /package/src/core/{Loader/component.tsx → Loader.tsx} +0 -0
- /package/src/core/{Logo/component.tsx → Logo.tsx} +0 -0
- /package/src/core/{MeganavSearchAutocomplete/component.tsx → MeganavSearchAutocomplete.tsx} +0 -0
- /package/src/core/Table/{stories/Table.stories.tsx → Table.stories.tsx} +0 -0
|
@@ -1,112 +1,114 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
.ui-meganav-
|
|
20
|
-
.ui-meganav-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
1
|
+
@layer components {
|
|
2
|
+
.ui-meganav-wrapper {
|
|
3
|
+
/* Define values for new stacking context defined by position: fixed */
|
|
4
|
+
--stacking-context-meganav-dropdown: 10;
|
|
5
|
+
--stacking-context-meganav-mobile-panel: 20;
|
|
6
|
+
|
|
7
|
+
z-index: var(--stacking-context-page-meganav);
|
|
8
|
+
|
|
9
|
+
@apply fixed top-0 w-full;
|
|
10
|
+
@apply antialiased font-sans transition-colors;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ui-meganav {
|
|
14
|
+
height: var(--ui-meganav-height);
|
|
15
|
+
|
|
16
|
+
@apply flex justify-between items-center max-w-screen-xl mx-auto;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.ui-meganav-panel,
|
|
20
|
+
.ui-meganav-mobile-dropdown,
|
|
21
|
+
.ui-meganav-panel-account {
|
|
22
|
+
z-index: var(--stacking-context-meganav-dropdown);
|
|
23
|
+
|
|
24
|
+
@apply absolute left-0 right-0;
|
|
25
|
+
@apply border-mid-grey border-t shadow-container;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ui-meganav-panel {
|
|
29
|
+
@apply bg-white;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.ui-meganav-panel-mobile {
|
|
33
|
+
z-index: var(--stacking-context-meganav-mobile-panel);
|
|
34
|
+
|
|
35
|
+
/* Prevents momentum-based scrolling https://devdocs.io/css/-webkit-overflow-scrolling */
|
|
36
|
+
-webkit-overflow-scrolling: auto;
|
|
37
|
+
|
|
38
|
+
@apply bg-white pt-16 border-0;
|
|
39
|
+
@apply border-mid-grey border-t shadow-container;
|
|
40
|
+
@apply fixed top-64 left-0 right-0 overflow-y-auto;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ui-meganav-panel-account {
|
|
44
|
+
left: auto;
|
|
45
|
+
min-width: 20rem;
|
|
46
|
+
@apply bg-white rounded-t-none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.ui-meganav-panel-split-bg {
|
|
50
|
+
background: linear-gradient(to right, #fafafb 33%, white 33%, white 100%);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.ui-meganav-link {
|
|
54
|
+
@apply text-menu2 font-bold font-sans;
|
|
55
|
+
@apply mr-12 lg:mr-24 px-0 py-20;
|
|
56
|
+
@apply hover:text-gui-hover focus:text-gui-focus focus:outline-none;
|
|
57
|
+
@apply transition-colors;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.ui-meganav-item {
|
|
61
|
+
flex: 1 0 auto;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.ui-meganav-mobile-link {
|
|
65
|
+
@apply p-menu-row relative -left-8 w-extend-8;
|
|
66
|
+
@apply text-menu2 font-mono font-medium block text-cool-black text-left;
|
|
67
|
+
@apply flex items-center;
|
|
68
|
+
@apply focus:text-gui-focus focus:outline-none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.ui-meganav-account-link {
|
|
72
|
+
@apply block px-8 py-8 hover:bg-light-grey hover:text-gui-hover rounded relative -left-8 text-menu3 w-extend-8 font-bold font-mono;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.ui-meganav-content {
|
|
76
|
+
@apply max-w-screen-xl py-24 lg:py-32 mx-auto;
|
|
77
|
+
@apply grid grid-cols-1;
|
|
78
|
+
@apply px-24 md:px-32 lg:px-32 xl:px-64;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* This is implemented not as padding so we can change the color of just this space, while keeping the grid
|
|
81
82
|
as close to the designs as possible */
|
|
82
|
-
.ui-meganav-content-spacer {
|
|
83
|
-
|
|
84
|
-
}
|
|
83
|
+
.ui-meganav-content-spacer {
|
|
84
|
+
@apply hidden md:block md:w-32 lg:w-32 xl:w-64 self-stretch flex-shrink-0 flex-grow-0;
|
|
85
|
+
}
|
|
85
86
|
|
|
86
|
-
.ui-meganav-media {
|
|
87
|
-
|
|
88
|
-
}
|
|
87
|
+
.ui-meganav-media {
|
|
88
|
+
@apply block px-8 py-8 hover:bg-light-grey rounded relative -left-8 w-extend-8;
|
|
89
|
+
}
|
|
89
90
|
|
|
90
|
-
.ui-meganav-media-with-image {
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
.ui-meganav-media-with-image {
|
|
92
|
+
grid-template-columns: max-content 1fr;
|
|
93
|
+
grid-template-rows: min-content 1fr;
|
|
93
94
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
95
|
+
@apply block px-8 py-8 hover:bg-light-grey rounded relative -left-8 w-extend-8;
|
|
96
|
+
@apply grid gap-x-16;
|
|
97
|
+
}
|
|
97
98
|
|
|
98
|
-
.ui-meganav-media-heading {
|
|
99
|
-
|
|
100
|
-
}
|
|
99
|
+
.ui-meganav-media-heading {
|
|
100
|
+
@apply text-menu3 text-cool-black font-bold font-sans group-hover:text-gui-hover group-focus:text-gui-focus leading-normal;
|
|
101
|
+
}
|
|
101
102
|
|
|
102
|
-
.ui-meganav-media-copy {
|
|
103
|
-
|
|
104
|
-
}
|
|
103
|
+
.ui-meganav-media-copy {
|
|
104
|
+
@apply text-p3 font-sans font-medium text-dark-grey leading-normal;
|
|
105
|
+
}
|
|
105
106
|
|
|
106
|
-
.ui-meganav-overline {
|
|
107
|
-
|
|
108
|
-
}
|
|
107
|
+
.ui-meganav-overline {
|
|
108
|
+
@apply text-overline2 text-cool-black uppercase font-medium font-mono tracking-widen-0.16 p-overline;
|
|
109
|
+
}
|
|
109
110
|
|
|
110
|
-
.ui-meganav-hr {
|
|
111
|
-
|
|
111
|
+
.ui-meganav-hr {
|
|
112
|
+
@apply my-0 text-mid-grey;
|
|
113
|
+
}
|
|
112
114
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import throttle from "lodash.throttle";
|
|
2
2
|
|
|
3
|
-
import "./component.css";
|
|
4
|
-
|
|
5
3
|
// Glossary:
|
|
6
4
|
// item - is the element which contains both the control and the panel - these are adjacent
|
|
7
5
|
// control - interactive element that controls showing and hiding of dropdown or panel
|
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
import React, { ReactNode, useEffect, useState } from "react";
|
|
2
2
|
|
|
3
|
-
import { connectState } from "
|
|
4
|
-
import { selectSessionData } from "
|
|
5
|
-
|
|
6
|
-
import Logo from "
|
|
7
|
-
import "./component.
|
|
8
|
-
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import MeganavContentCompany from "../MeganavContentCompany/component.tsx";
|
|
20
|
-
import MeganavContentDevelopers from "../MeganavContentDevelopers/component.tsx";
|
|
21
|
-
import MeganavSearch from "../MeganavSearch/component.tsx";
|
|
3
|
+
import { connectState } from "./remote-data-store.js";
|
|
4
|
+
import { selectSessionData } from "./remote-session-data.js";
|
|
5
|
+
|
|
6
|
+
import Logo from "./Logo";
|
|
7
|
+
import MeganavData from "./Meganav/component.json";
|
|
8
|
+
import MeganavScripts from "./Meganav/component.js";
|
|
9
|
+
import MeganavItemsDesktop from "./MeganavItemsDesktop";
|
|
10
|
+
import MeganavItemsSignedIn from "./MeganavItemsSignedIn";
|
|
11
|
+
import MeganavItemsMobile from "./MeganavItemsMobile";
|
|
12
|
+
import Notice from "./Notice";
|
|
13
|
+
import _absUrl from "./url-base.js";
|
|
14
|
+
import MeganavContentProducts from "./MeganavContentProducts";
|
|
15
|
+
import MeganavContentUseCases from "./MeganavContentUseCases";
|
|
16
|
+
import MeganavContentCompany from "./MeganavContentCompany";
|
|
17
|
+
import MeganavContentDevelopers from "./MeganavContentDevelopers";
|
|
18
|
+
import MeganavSearch from "./MeganavSearch";
|
|
22
19
|
|
|
23
20
|
export type MeganavTheme = {
|
|
24
21
|
backgroundColor?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import FeaturedLink from "
|
|
4
|
-
import { AbsUrl } from "
|
|
3
|
+
import FeaturedLink from "./FeaturedLink";
|
|
4
|
+
import { AbsUrl } from "./Meganav";
|
|
5
5
|
|
|
6
6
|
type MeganavBlogPostsListProps = {
|
|
7
7
|
recentBlogPosts: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import MeganavBlogPostsList from "
|
|
4
|
-
import ConnectStateWrapper from "
|
|
5
|
-
import { selectRecentBlogPosts } from "
|
|
6
|
-
import Icon from "
|
|
7
|
-
import { AbsUrl } from "
|
|
3
|
+
import MeganavBlogPostsList from "./MeganavBlogPostsList";
|
|
4
|
+
import ConnectStateWrapper from "./ConnectStateWrapper";
|
|
5
|
+
import { selectRecentBlogPosts } from "./remote-blogs-posts.js";
|
|
6
|
+
import Icon from "./Icon";
|
|
7
|
+
import { AbsUrl } from "./Meganav";
|
|
8
8
|
|
|
9
9
|
type MeganavContentCompanyProps = {
|
|
10
10
|
absUrl: AbsUrl;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import Icon from "
|
|
4
|
-
import { AbsUrl } from "
|
|
3
|
+
import Icon from "./Icon";
|
|
4
|
+
import { AbsUrl } from "./Meganav";
|
|
5
5
|
|
|
6
6
|
const MeganavContentDevelopers = ({ absUrl }: { absUrl: AbsUrl }) => (
|
|
7
7
|
<div className="flex max-w-screen-xl mx-auto">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import FeaturedLink from "
|
|
4
|
-
import { AbsUrl } from "
|
|
3
|
+
import FeaturedLink from "./FeaturedLink";
|
|
4
|
+
import { AbsUrl } from "./Meganav";
|
|
5
5
|
|
|
6
6
|
type MeganavContentProductsProps = {
|
|
7
7
|
paths: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import Icon from "
|
|
4
|
-
import { AbsUrl } from "
|
|
3
|
+
import Icon from "./Icon";
|
|
4
|
+
import { AbsUrl } from "./Meganav";
|
|
5
5
|
|
|
6
6
|
const MeganavContentUseCases = ({ absUrl }: { absUrl: AbsUrl }) => (
|
|
7
7
|
<div className="flex max-w-screen-xl mx-auto">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
2
|
|
|
3
|
-
import Icon from "
|
|
4
|
-
import { MeganavTheme } from "
|
|
3
|
+
import Icon from "./Icon";
|
|
4
|
+
import { MeganavTheme } from "./Meganav";
|
|
5
5
|
|
|
6
6
|
type MeganavControlProps = {
|
|
7
7
|
ariaControls: string;
|
package/src/core/{MeganavControlMobileDropdown/component.tsx → MeganavControlMobileDropdown.tsx}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import Icon from "
|
|
4
|
-
import { MeganavTheme } from "
|
|
3
|
+
import Icon from "./Icon";
|
|
4
|
+
import { MeganavTheme } from "./Meganav";
|
|
5
5
|
|
|
6
6
|
const MeganavControlMobileDropdown = ({ theme }: { theme: MeganavTheme }) => (
|
|
7
7
|
<button
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import MeganavData from "
|
|
4
|
-
import MeganavControl from "
|
|
5
|
-
import { AbsUrl, MeganavPanels, MeganavTheme } from "
|
|
3
|
+
import MeganavData from "./Meganav/component.json";
|
|
4
|
+
import MeganavControl from "./MeganavControl";
|
|
5
|
+
import { AbsUrl, MeganavPanels, MeganavTheme } from "./Meganav";
|
|
6
6
|
|
|
7
7
|
type MeganavDesktopItems = {
|
|
8
8
|
panels: MeganavPanels;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import SignOutLink from "
|
|
4
|
-
import MeganavSearchSuggestions from "
|
|
5
|
-
import Icon from "
|
|
6
|
-
import MeganavData from "
|
|
7
|
-
import MeganavControlMobileDropdown from "
|
|
8
|
-
import MeganavControlMobilePanelClose from "
|
|
9
|
-
import MeganavControlMobilePanelOpen from "
|
|
10
|
-
import MeganavSearchAutocomplete from "
|
|
3
|
+
import SignOutLink from "./SignOutLink";
|
|
4
|
+
import MeganavSearchSuggestions from "./MeganavSearchSuggestions";
|
|
5
|
+
import Icon from "./Icon";
|
|
6
|
+
import MeganavData from "./Meganav/component.json";
|
|
7
|
+
import MeganavControlMobileDropdown from "./MeganavControlMobileDropdown";
|
|
8
|
+
import MeganavControlMobilePanelClose from "./MeganavControlMobilePanelClose";
|
|
9
|
+
import MeganavControlMobilePanelOpen from "./MeganavControlMobilePanelOpen";
|
|
10
|
+
import MeganavSearchAutocomplete from "./MeganavSearchAutocomplete";
|
|
11
11
|
import {
|
|
12
12
|
AbsUrl,
|
|
13
13
|
MeganavPanels,
|
|
14
14
|
MeganavSessionState,
|
|
15
15
|
MeganavTheme,
|
|
16
|
-
} from "
|
|
16
|
+
} from "./Meganav";
|
|
17
17
|
|
|
18
18
|
type MeganavItemsMobileProps = {
|
|
19
19
|
panels: MeganavPanels;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import MeganavControl from "
|
|
4
|
-
import SignOutLink from "
|
|
5
|
-
import MeganavSearch from "
|
|
6
|
-
import {
|
|
7
|
-
AbsUrl,
|
|
8
|
-
MeganavSessionState,
|
|
9
|
-
MeganavTheme,
|
|
10
|
-
} from "../Meganav/component.tsx";
|
|
3
|
+
import MeganavControl from "./MeganavControl";
|
|
4
|
+
import SignOutLink from "./SignOutLink";
|
|
5
|
+
import MeganavSearch from "./MeganavSearch";
|
|
6
|
+
import { AbsUrl, MeganavSessionState, MeganavTheme } from "./Meganav";
|
|
11
7
|
|
|
12
8
|
type MeganavItemsSignedIn = {
|
|
13
9
|
sessionState: MeganavSessionState;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import Icon from "
|
|
4
|
-
import MeganavSearchPanel from "
|
|
5
|
-
import { AbsUrl } from "
|
|
3
|
+
import Icon from "./Icon";
|
|
4
|
+
import MeganavSearchPanel from "./MeganavSearchPanel";
|
|
5
|
+
import { AbsUrl } from "./Meganav";
|
|
6
6
|
|
|
7
7
|
const MeganavSearch = ({ absUrl }: { absUrl: AbsUrl }) => (
|
|
8
8
|
<>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import Icon from "
|
|
4
|
-
import MeganavSearchSuggestions from "
|
|
5
|
-
import MeganavSearchAutocomplete from "
|
|
6
|
-
import { AbsUrl } from "
|
|
3
|
+
import Icon from "./Icon";
|
|
4
|
+
import MeganavSearchSuggestions from "./MeganavSearchSuggestions";
|
|
5
|
+
import MeganavSearchAutocomplete from "./MeganavSearchAutocomplete";
|
|
6
|
+
import { AbsUrl } from "./Meganav";
|
|
7
7
|
|
|
8
8
|
const MeganavSearchPanel = ({ absUrl }: { absUrl: AbsUrl }) => (
|
|
9
9
|
<section className="ui-meganav-content grid-cols-12">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import FeaturedLink from "
|
|
4
|
-
import { AbsUrl } from "
|
|
3
|
+
import FeaturedLink from "./FeaturedLink";
|
|
4
|
+
import { AbsUrl } from "./Meganav";
|
|
5
5
|
|
|
6
6
|
type MeganavSearchSuggestionsProps = {
|
|
7
7
|
absUrl: AbsUrl;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import "./component.css";
|
|
2
1
|
import Cookie from "js-cookie";
|
|
3
2
|
import throttle from "lodash.throttle";
|
|
4
3
|
|
|
5
4
|
import { queryId } from "../dom-query";
|
|
6
|
-
import { FLASH_DATA_ID } from "../Flash
|
|
5
|
+
import { FLASH_DATA_ID } from "../Flash";
|
|
7
6
|
|
|
8
7
|
const COOKIE_EXPIRY = 90;
|
|
9
8
|
const COLLAPSE_TRIGGER_DISTANCE = 5;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React, { ReactNode, useEffect } from "react";
|
|
2
2
|
|
|
3
|
-
import NoticeScripts from "./component.js";
|
|
4
|
-
import "./
|
|
5
|
-
import Icon from "../Icon/component.tsx";
|
|
6
|
-
|
|
3
|
+
import NoticeScripts from "./Notice/component.js";
|
|
4
|
+
import Icon from "./Icon";
|
|
7
5
|
type ContentWrapperProps = {
|
|
8
6
|
buttonLink: string;
|
|
9
7
|
children: ReactNode;
|