@datalayer/core 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -1
- package/lib/App.css +47 -0
- package/lib/App.d.ts +1 -1
- package/lib/App.js +17 -5
- package/lib/__tests__/index.test.js +2 -1
- package/lib/api/{RunApi.d.ts → DatalayerApi.d.ts} +4 -4
- package/lib/api/{RunApi.js → DatalayerApi.js} +4 -9
- package/lib/api/index.d.ts +2 -1
- package/lib/api/index.js +2 -6
- package/lib/api/{runtimes → jupyter}/exec/Python.js +0 -5
- package/lib/api/{runtimes → jupyter}/exec/Snippets.js +0 -5
- package/lib/api/{runtimes → jupyter}/exec/index.js +0 -5
- package/lib/api/jupyter/index.d.ts +2 -0
- package/lib/api/jupyter/index.js +6 -0
- package/lib/api/{runtimes → jupyter}/kernelsHandler.d.ts +1 -1
- package/lib/api/{runtimes → jupyter}/kernelsHandler.js +1 -6
- package/lib/api/runtimes/actions.d.ts +102 -0
- package/lib/api/runtimes/{runtimesApi.js → actions.js} +26 -31
- package/lib/api/runtimes/{runtimesApi.d.ts → apis.d.ts} +8 -105
- package/lib/api/runtimes/apis.js +5 -0
- package/lib/api/runtimes/index.d.ts +2 -4
- package/lib/api/runtimes/index.js +2 -9
- package/lib/api/runtimes/settings.js +0 -5
- package/lib/api/runtimes/snapshots.js +0 -5
- package/lib/api/runtimes/utils.js +0 -5
- package/lib/assets/react.svg +1 -0
- package/lib/components/avatars/BoringAvatar.d.ts +1 -2
- package/lib/components/avatars/BoringAvatar.js +14 -9
- package/lib/components/avatars/BoringAvatar.stories.d.ts +27 -0
- package/lib/components/avatars/BoringAvatar.stories.js +23 -0
- package/lib/components/avatars/UserProfileAvatar.js +0 -5
- package/lib/components/avatars/index.js +0 -5
- package/lib/components/banners/NoAutomationBanner.js +0 -5
- package/lib/components/banners/index.js +0 -5
- package/lib/components/buttons/DownloadCSVButton.d.ts +1 -1
- package/lib/components/buttons/DownloadCSVButton.js +0 -5
- package/lib/components/buttons/DownloadJsonButton.d.ts +1 -1
- package/lib/components/buttons/DownloadJsonButton.js +0 -5
- package/lib/components/buttons/LongActionButton.js +0 -5
- package/lib/components/buttons/UploadButton.js +0 -5
- package/lib/components/buttons/index.js +0 -5
- package/lib/components/checkout/StripeCheckout.js +0 -5
- package/lib/components/checkout/index.js +0 -5
- package/lib/components/confetti/ConfettiSuccess.js +0 -5
- package/lib/components/confetti/index.js +0 -5
- package/lib/components/context/OrganizationSelect.js +0 -5
- package/lib/components/context/SpaceSelect.js +0 -5
- package/lib/components/context/index.js +0 -5
- package/lib/components/display/AvatarSkeleton.js +0 -5
- package/lib/components/display/CenteredSpinner.js +0 -5
- package/lib/components/display/CodePreview.js +0 -5
- package/lib/components/display/DatalayerBox.js +0 -5
- package/lib/components/display/JupyterDialog.js +0 -5
- package/lib/components/display/NavLink.js +0 -5
- package/lib/components/display/NotebookSkeleton.js +0 -5
- package/lib/components/display/Placeholder.js +0 -5
- package/lib/components/display/ToTopBranded.js +0 -5
- package/lib/components/display/VisuallyHidden.js +0 -5
- package/lib/components/display/index.js +0 -5
- package/lib/components/echarts/EChartsReact.js +6 -6
- package/lib/components/echarts/index.js +0 -5
- package/lib/components/flashes/FlashClosable.js +0 -5
- package/lib/components/flashes/FlashDisclaimer.js +0 -5
- package/lib/components/flashes/FlashGuest.js +0 -5
- package/lib/components/flashes/FlashSurveys.js +0 -5
- package/lib/components/flashes/FlashUnauthorized.js +0 -5
- package/lib/components/flashes/index.js +0 -5
- package/lib/components/flashes/surveys/Survey2025_1.js +0 -5
- package/lib/components/flashes/surveys/index.js +0 -5
- package/lib/components/iam/ExternalTokenSilentLogin.js +0 -5
- package/lib/components/iam/index.js +0 -5
- package/lib/components/icons/ArtifactIcon.js +0 -5
- package/lib/components/icons/index.js +0 -5
- package/lib/components/index.js +1 -6
- package/lib/components/labels/VisibilityLabel.js +0 -5
- package/lib/components/labels/index.js +0 -5
- package/lib/components/landings/StepBlock.js +0 -5
- package/lib/components/landings/index.js +0 -5
- package/lib/components/navbar/NavigationVisbilityObserver.js +0 -5
- package/lib/components/navbar/SubdomainNavBar.js +2 -7
- package/lib/components/navbar/SubdomainNavBar.module.css +718 -0
- package/lib/components/navbar/index.js +0 -5
- package/lib/components/nbgrader/NbGradesDetails.js +0 -5
- package/lib/components/nbgrader/index.js +0 -5
- package/lib/components/notebooks/JupyterNotebook.js +0 -5
- package/lib/components/notebooks/JupyterNotebookToolbar.js +0 -5
- package/lib/components/notebooks/index.js +0 -5
- package/lib/components/primer/Portals.js +0 -5
- package/lib/components/primer/Styles.js +0 -5
- package/lib/components/primer/index.js +0 -5
- package/lib/components/progress/ConsumptionBar.js +0 -5
- package/lib/components/progress/CreditsIndicator.js +0 -6
- package/lib/components/progress/ProgressBar.js +0 -5
- package/lib/components/progress/Timer.js +0 -5
- package/lib/components/progress/index.js +0 -5
- package/lib/components/runtimes/RuntimeCellVariables.js +0 -5
- package/lib/components/runtimes/RuntimeCellVariablesDialog.js +4 -9
- package/lib/components/runtimes/RuntimeLauncherDialog.d.ts +1 -2
- package/lib/components/runtimes/RuntimeLauncherDialog.js +2 -6
- package/lib/components/runtimes/RuntimePickerBase.d.ts +1 -1
- package/lib/components/runtimes/RuntimePickerBase.js +0 -5
- package/lib/components/runtimes/RuntimePickerCell.js +0 -5
- package/lib/components/runtimes/RuntimePickerNotebook.d.ts +1 -2
- package/lib/components/runtimes/RuntimePickerNotebook.js +1 -6
- package/lib/components/runtimes/RuntimeReservationControl.js +0 -5
- package/lib/components/runtimes/RuntimeSimplePicker.d.ts +1 -1
- package/lib/components/runtimes/RuntimeSimplePicker.js +36 -41
- package/lib/components/runtimes/RuntimeUtils.d.ts +1 -1
- package/lib/components/runtimes/RuntimeUtils.js +0 -5
- package/lib/components/runtimes/RuntimeVariables.js +0 -5
- package/lib/components/runtimes/index.js +0 -5
- package/lib/components/screenshot/ScreenCapture.js +1 -6
- package/lib/components/screenshot/index.js +0 -5
- package/lib/components/snapshots/RuntimeSnapshotMenu.js +0 -5
- package/lib/components/snapshots/index.js +0 -5
- package/lib/components/snippets/SnippetDialog.js +0 -5
- package/lib/components/snippets/index.js +0 -5
- package/lib/components/storage/ContentsBrowser.js +12 -7
- package/lib/components/storage/ContentsItems.js +0 -5
- package/lib/components/storage/index.js +0 -5
- package/lib/components/students/StudentItemStatus.js +6 -8
- package/lib/components/students/index.js +0 -5
- package/lib/components/subnav/SubNav.d.ts +2 -2
- package/lib/components/subnav/SubNav.js +4 -9
- package/lib/components/subnav/SubNav.module.css +683 -0
- package/lib/components/subnav/index.js +0 -5
- package/lib/components/tables/DataTable.js +0 -5
- package/lib/components/tables/index.js +0 -5
- package/lib/components/text-reveal/TextRevealAnimation.js +0 -6
- package/lib/components/text-reveal/TextRevealAnimation.module.css +43 -0
- package/lib/components/text-reveal/index.js +0 -5
- package/lib/components/text-reveal/useTextRevealAnimationLines.js +0 -5
- package/lib/components/tokens/SpaceVariantToken.js +0 -5
- package/lib/components/tokens/index.js +0 -5
- package/lib/components/toolbars/AssignmentEditorToolbar.js +0 -5
- package/lib/components/toolbars/DocumentEditorToolbar.js +0 -5
- package/lib/components/toolbars/NotebookEditorToolbar.d.ts +1 -1
- package/lib/components/toolbars/NotebookEditorToolbar.js +0 -5
- package/lib/components/toolbars/index.js +0 -5
- package/lib/components/users/PeerIndicator.js +0 -5
- package/lib/components/users/index.js +0 -5
- package/lib/config/Configuration.js +0 -5
- package/lib/config/index.js +0 -5
- package/lib/config/integrations/Loom.js +0 -5
- package/lib/config/integrations/index.js +0 -5
- package/lib/examples/CellExample.d.ts +6 -0
- package/lib/examples/CellExample.js +24 -0
- package/lib/examples/NotebookExample.d.ts +8 -0
- package/lib/examples/NotebookExample.js +22 -0
- package/lib/examples/NotebookExample1.ipynb.json +136 -0
- package/lib/hooks/assets/OutputshotPlaceholders.js +0 -5
- package/lib/hooks/assets/index.js +0 -5
- package/lib/hooks/index.d.ts +1 -1
- package/lib/hooks/index.js +1 -6
- package/lib/hooks/layouts/LayoutBackdrop.js +0 -5
- package/lib/hooks/layouts/LayoutScreenshot.css +58 -0
- package/lib/hooks/layouts/LayoutScreenshot.d.ts +1 -0
- package/lib/hooks/layouts/LayoutScreenshot.js +1 -5
- package/lib/hooks/layouts/index.js +0 -5
- package/lib/hooks/useAIAgents.js +7 -12
- package/lib/hooks/useAuthorization.js +0 -6
- package/lib/hooks/useBackdrop.js +0 -5
- package/lib/hooks/useBackdropJupyterLab.js +0 -5
- package/lib/hooks/useCache.d.ts +2 -2
- package/lib/hooks/useCache.js +178 -183
- package/lib/hooks/useCellOutputshot.js +0 -5
- package/lib/hooks/useContainsFocus.js +0 -5
- package/lib/hooks/useDatalayer.d.ts +21 -0
- package/lib/hooks/{useRun.js → useDatalayer.js} +12 -16
- package/lib/hooks/useError.js +0 -5
- package/lib/hooks/useExternalScript.js +0 -5
- package/lib/hooks/useFocusTrap.d.ts +1 -1
- package/lib/hooks/useFocusTrap.js +1 -6
- package/lib/hooks/useIAM.js +2 -7
- package/lib/hooks/useId.js +3 -8
- package/lib/hooks/useIsomorphicLayoutEffect.js +0 -5
- package/lib/hooks/useJupyterLabTheme.js +0 -5
- package/lib/hooks/useKeyboardEscape.js +0 -5
- package/lib/hooks/useLocationHandles.js +0 -5
- package/lib/hooks/useNavigate.js +0 -5
- package/lib/hooks/useNotebookAIAgent.js +0 -5
- package/lib/hooks/useOnClickOutside.js +0 -5
- package/lib/hooks/useRef.js +0 -5
- package/lib/hooks/useRuntimes.js +0 -5
- package/lib/hooks/useScreenshot.js +0 -5
- package/lib/hooks/useToast.js +6 -8
- package/lib/hooks/useUpload.js +0 -5
- package/lib/hooks/useVisibilityObserver.js +0 -5
- package/lib/hooks/useWindowSize.js +0 -6
- package/lib/i18n/Labels.js +0 -5
- package/lib/i18n/index.js +0 -5
- package/lib/index.css +73 -0
- package/lib/main.js +1 -2
- package/lib/mocks/components/FlashMock.js +0 -5
- package/lib/mocks/components/index.js +0 -5
- package/lib/mocks/hooks/index.d.ts +1 -1
- package/lib/mocks/hooks/index.js +1 -6
- package/lib/mocks/hooks/rests/index.js +0 -5
- package/lib/mocks/hooks/rests/rests.js +0 -5
- package/lib/mocks/hooks/useDatalayerMock.d.ts +6 -0
- package/lib/mocks/hooks/{useRunMock.js → useDatalayerMock.js} +2 -7
- package/lib/mocks/index.js +0 -5
- package/lib/mocks/jupyter/index.js +1 -6
- package/lib/mocks/models/CodeBlockMock.js +0 -5
- package/lib/mocks/models/CodelineMock.js +0 -5
- package/lib/mocks/models/CourseMock.js +0 -5
- package/lib/mocks/models/InviteMock.js +0 -5
- package/lib/mocks/models/SpaceMock.js +0 -5
- package/lib/mocks/models/UserMock.js +0 -5
- package/lib/mocks/models/index.js +0 -5
- package/lib/mocks/views/ActionMenuMock.js +0 -5
- package/lib/mocks/views/ChartMock.js +0 -5
- package/lib/mocks/views/ChartMockOptions.js +0 -5
- package/lib/mocks/views/DashboardMock.js +0 -5
- package/lib/mocks/views/FormMock.js +0 -5
- package/lib/mocks/views/TableMock.js +0 -5
- package/lib/mocks/views/WipMock.js +0 -5
- package/lib/mocks/views/index.js +0 -5
- package/lib/models/Contact.js +0 -5
- package/lib/models/ContactEvent.js +0 -5
- package/lib/models/Credits.js +0 -5
- package/lib/models/Dataset.d.ts +1 -1
- package/lib/models/Datasource.js +0 -5
- package/lib/models/Errors.js +0 -5
- package/lib/models/GrowthKPI.js +0 -5
- package/lib/models/IAMProviderUsers.js +0 -5
- package/lib/models/IAMToken.js +0 -5
- package/lib/models/Inbound.js +0 -5
- package/lib/models/LandingRoles.js +0 -5
- package/lib/models/Organization.js +0 -5
- package/lib/models/Outbound.js +7 -12
- package/lib/models/PageTag.d.ts +1 -1
- package/lib/models/RolesOrganization.js +0 -5
- package/lib/models/RolesPlatform.js +0 -5
- package/lib/models/RolesTeam.js +0 -5
- package/lib/models/Runtime.d.ts +59 -1
- package/lib/models/Runtime.js +7 -5
- package/lib/models/Secret.js +0 -5
- package/lib/models/Survey.js +0 -5
- package/lib/models/Team.js +0 -5
- package/lib/models/URN.js +0 -5
- package/lib/models/User.js +2 -7
- package/lib/models/UserEvent.js +0 -5
- package/lib/models/UserOnboarding.js +0 -5
- package/lib/models/UserSettings.js +0 -5
- package/lib/models/index.js +0 -5
- package/lib/routes/Routes.js +0 -5
- package/lib/routes/index.js +0 -5
- package/lib/state/State.js +0 -5
- package/lib/state/index.js +0 -5
- package/lib/state/storage/IAMStorage.js +0 -5
- package/lib/state/storage/index.js +0 -5
- package/lib/state/substates/AIAgentState.js +0 -5
- package/lib/state/substates/CellState.js +0 -5
- package/lib/state/substates/CoreState.js +0 -5
- package/lib/state/substates/DatasourceState.js +0 -5
- package/lib/state/substates/DocumentState.js +0 -5
- package/lib/state/substates/GradeState.js +0 -5
- package/lib/state/substates/IAMState.d.ts +1 -1
- package/lib/state/substates/IAMState.js +15 -18
- package/lib/state/substates/JupyterLabState.js +0 -5
- package/lib/state/substates/NbformatState.js +0 -5
- package/lib/state/substates/OrganizationState.js +0 -5
- package/lib/state/substates/RuntimesState.d.ts +2 -2
- package/lib/state/substates/RuntimesState.js +0 -5
- package/lib/state/substates/SpaceState.js +0 -5
- package/lib/state/substates/SurveysState.js +3 -8
- package/lib/state/substates/TeamState.js +0 -5
- package/lib/state/substates/index.js +0 -5
- package/lib/stories/assets/accessibility.png +0 -0
- package/lib/stories/assets/accessibility.svg +1 -0
- package/lib/stories/assets/addon-library.png +0 -0
- package/lib/stories/assets/assets.png +0 -0
- package/lib/stories/assets/context.png +0 -0
- package/lib/stories/assets/discord.svg +1 -0
- package/lib/stories/assets/docs.png +0 -0
- package/lib/stories/assets/figma-plugin.png +0 -0
- package/lib/stories/assets/github.svg +1 -0
- package/lib/stories/assets/share.png +0 -0
- package/lib/stories/assets/styling.png +0 -0
- package/lib/stories/assets/testing.png +0 -0
- package/lib/stories/assets/theming.png +0 -0
- package/lib/stories/assets/tutorials.svg +1 -0
- package/lib/stories/assets/youtube.svg +1 -0
- package/lib/stories/button.css +35 -0
- package/lib/stories/header.css +37 -0
- package/lib/stories/page.css +73 -0
- package/lib/test-setup.js +51 -1
- package/lib/theme/DatalayerTheme.js +0 -5
- package/lib/theme/DatalayerThemeProvider.js +0 -5
- package/lib/theme/Palette.js +0 -5
- package/lib/theme/index.js +0 -5
- package/lib/utils/Array.js +0 -5
- package/lib/utils/Avatar.js +0 -5
- package/lib/utils/Browser.js +0 -5
- package/lib/utils/Cookie.js +0 -5
- package/lib/utils/Date.js +3 -8
- package/lib/utils/Download.js +0 -5
- package/lib/utils/DownloadFile.js +0 -5
- package/lib/utils/Env.js +0 -5
- package/lib/utils/File.js +0 -5
- package/lib/utils/Ids.js +0 -5
- package/lib/utils/Jupyter.js +0 -5
- package/lib/utils/Lazy.js +0 -6
- package/lib/utils/Name.js +0 -5
- package/lib/utils/Number.js +1 -6
- package/lib/utils/Plots.d.ts +1 -1
- package/lib/utils/Plots.js +1 -1
- package/lib/utils/Random.js +0 -5
- package/lib/utils/Screenshot.js +0 -5
- package/lib/utils/Scroll.js +3 -7
- package/lib/utils/Sleep.js +0 -5
- package/lib/utils/Snapshot.js +0 -5
- package/lib/utils/String.js +0 -5
- package/lib/utils/Uri.js +1 -6
- package/lib/utils/Validator.js +0 -5
- package/lib/utils/WithSuspense.js +0 -5
- package/lib/utils/index.js +0 -5
- package/package.json +58 -28
- package/style/animation/Animation.module.css +174 -0
- package/style/base.css +64 -0
- package/style/index.css +6 -0
- package/lib/api/runtimes/models.d.ts +0 -59
- package/lib/api/runtimes/models.js +0 -11
- package/lib/hooks/useRun.d.ts +0 -21
- package/lib/mocks/hooks/useRunMock.d.ts +0 -6
- /package/lib/api/{runtimes → jupyter}/exec/Python.d.ts +0 -0
- /package/lib/api/{runtimes → jupyter}/exec/Snippets.d.ts +0 -0
- /package/lib/api/{runtimes → jupyter}/exec/index.d.ts +0 -0
|
@@ -0,0 +1,683 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
|
+
* Distributed under the terms of the Modified BSD License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
.SubNav__container {
|
|
7
|
+
position: absolute;
|
|
8
|
+
width: 100%;
|
|
9
|
+
z-index: 2;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.SubNav__container--with-anchor-nav {
|
|
13
|
+
display: unset;
|
|
14
|
+
position: relative;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.SubNav {
|
|
18
|
+
width: 100%;
|
|
19
|
+
display: flex;
|
|
20
|
+
padding: var(--base-size-16);
|
|
21
|
+
z-index: 1;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
[data-color-mode='dark'] .SubNav {
|
|
25
|
+
-webkit-font-smoothing: antialiased;
|
|
26
|
+
-moz-osx-font-smoothing: grayscale;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.SubNav__heading {
|
|
30
|
+
font-weight: var(--base-text-weight-semibold);
|
|
31
|
+
color: var(--brand-color-text-default);
|
|
32
|
+
font-family: var(--brand-heading-fontFamily);
|
|
33
|
+
text-decoration: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.SubNav__heading:hover {
|
|
37
|
+
color: var(--brand-color-text-muted);
|
|
38
|
+
text-decoration: none !important; /* dotcom override */
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.SubNav--header-container-outer {
|
|
42
|
+
width: 100%;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.SubNav__heading-container {
|
|
46
|
+
position: relative;
|
|
47
|
+
z-index: 9998;
|
|
48
|
+
display: inline-block;
|
|
49
|
+
margin-inline-end: var(--base-size-16);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.SubNav--has-shadow {
|
|
53
|
+
box-shadow: var(--brand-SubNav-shadow);
|
|
54
|
+
background-color: var(--brand-color-canvas-default);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.SubNav--full-width {
|
|
58
|
+
padding-inline: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.SubNav__action-container {
|
|
62
|
+
margin-left: auto;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.SubNav__sub-menu-icon {
|
|
66
|
+
display: none !important;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.SubNav__sub-menu-children {
|
|
70
|
+
display: contents;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.SubNav__links-overlay {
|
|
74
|
+
list-style: none;
|
|
75
|
+
margin: 0;
|
|
76
|
+
padding: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.SubNav__links-overlay > span {
|
|
80
|
+
display: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.SubNav__sub-menu-toggle {
|
|
84
|
+
display: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.SubNav__heading-separator {
|
|
88
|
+
position: relative;
|
|
89
|
+
top: var(--base-size-2);
|
|
90
|
+
color: var(--brand-color-text-muted);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/*
|
|
94
|
+
* Anchor Nav Submenu
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
.SubNav__anchor-menu-outer-container {
|
|
98
|
+
position: sticky;
|
|
99
|
+
top: -1px;
|
|
100
|
+
z-index: 91; /* must be higher than subdomain nav bar */
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.SubNav__anchor-menu-container {
|
|
104
|
+
opacity: 0;
|
|
105
|
+
background-color: transparent;
|
|
106
|
+
transform: translateY(var(--brand-animation-variant-slideInDown-distance));
|
|
107
|
+
transition: opacity var(--brand-animation-duration-default) var(--brand-animation-easing-default),
|
|
108
|
+
background-color var(--brand-animation-duration-default) var(--brand-animation-easing-default);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.SubNav__anchor-menu-outer-container--stuck .SubNav__anchor-menu-container {
|
|
112
|
+
transform: translateY(0);
|
|
113
|
+
opacity: 1;
|
|
114
|
+
background-color: var(--brand-color-canvas-default);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.SubNav__anchor-menu-outer-container {
|
|
118
|
+
height: 0;
|
|
119
|
+
transition: height var(--brand-animation-duration-default) var(--brand-animation-easing-default);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.SubNav__anchor-menu-outer-container--stuck {
|
|
123
|
+
height: auto;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.SubNav__sub-menu--anchor {
|
|
127
|
+
opacity: 0;
|
|
128
|
+
visibility: hidden;
|
|
129
|
+
transform: translateY(var(--brand-animation-variant-slideInDown-distance));
|
|
130
|
+
transition: opacity var(--brand-animation-duration-default) var(--brand-animation-easing-default),
|
|
131
|
+
height var(--brand-animation-duration-default) var(--brand-animation-easing-default),
|
|
132
|
+
transform var(--brand-animation-duration-default) var(--brand-animation-easing-default);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.SubNav__anchor-menu-outer-container--stuck .SubNav__sub-menu--anchor {
|
|
136
|
+
visibility: visible;
|
|
137
|
+
opacity: 1;
|
|
138
|
+
transform: translateY(0);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.SubNav__sub-menu--anchor {
|
|
142
|
+
display: flex;
|
|
143
|
+
padding-block-start: var(--base-size-12);
|
|
144
|
+
padding-block-end: var(--base-size-20);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.SubNav__sub-menu--anchor .SubNav__sub-menu-list {
|
|
148
|
+
display: inline-flex;
|
|
149
|
+
list-style-type: none;
|
|
150
|
+
margin: 0;
|
|
151
|
+
padding: 0;
|
|
152
|
+
gap: var(--base-size-20);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.SubNav__sub-menu--anchor .SubNav__link--is-in-view .SubNav__link-label {
|
|
156
|
+
color: var(--brand-color-text-default);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.SubNav__sub-menu--anchor .SubNav__link--is-in-view .SubNav__link-label::after,
|
|
160
|
+
.SubNav__link:hover .SubNav__link-label::after,
|
|
161
|
+
.SubNav__link:focus-visible .SubNav__link-label::after,
|
|
162
|
+
.SubNav__link[aria-current]:not([aria-current='false']) .SubNav__link-label::after {
|
|
163
|
+
opacity: 1;
|
|
164
|
+
transform: scale(0.8, 1);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.SubNav__sub-menu--anchor .SubNav__link--is-in-view .SubNav__link-label::after,
|
|
168
|
+
.SubNav__link:active .SubNav__link-label::after {
|
|
169
|
+
border-color: var(--brand-color-text-default);
|
|
170
|
+
transform: scale(0.9, 1);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.SubNav__link[data-active='true'] .SubNav__link-label::after,
|
|
174
|
+
.SubNav__sub-menu--anchor .SubNav__link--is-in-view .SubNav__link-label::after {
|
|
175
|
+
border-color: var(--brand-color-text-default);
|
|
176
|
+
opacity: 1;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.SubNav__link:focus-visible .SubNav__link-label::after,
|
|
180
|
+
.SubNav__sub-menu--anchor .SubNav__link--is-in-view:focus-visible .SubNav__link-label::after {
|
|
181
|
+
opacity: 0;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.SubNav__link:hover .SubNav__link-label::after,
|
|
185
|
+
.SubNav__link[aria-current]:not([aria-current='false']) * {
|
|
186
|
+
color: var(--brand-SubNav-color-link-active);
|
|
187
|
+
text-decoration: none !important; /* dotcom override */
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.SubNav__link-label::after {
|
|
191
|
+
content: '';
|
|
192
|
+
position: absolute;
|
|
193
|
+
bottom: calc(var(--base-size-2) * -1);
|
|
194
|
+
left: 0;
|
|
195
|
+
width: 100%;
|
|
196
|
+
height: 2px;
|
|
197
|
+
border-width: 2px;
|
|
198
|
+
border-bottom: var(--base-size-2) solid var(--brand-color-text-muted);
|
|
199
|
+
transition: opacity var(--brand-animation-duration-fast), transform var(--brand-animation-duration-fast),
|
|
200
|
+
border-color var(--brand-animation-duration-fast);
|
|
201
|
+
opacity: 1;
|
|
202
|
+
transform: scale(0);
|
|
203
|
+
transform-origin: center;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.SubNav__link[aria-current]:not([aria-current='false']) .SubNav__link-label::after {
|
|
207
|
+
border-color: var(--brand-color-text-default);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.SubNav__link:hover .SubNav__link-label {
|
|
211
|
+
transition: color var(--brand-animation-duration-fast) var(--brand-animation-easing-default);
|
|
212
|
+
color: var(--brand-SubNav-color-link-active);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.SubNav__link:hover .SubNav__link-label::after {
|
|
216
|
+
border-color: var(--brand-color-text-default);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/*
|
|
220
|
+
* Narrow breakpoint
|
|
221
|
+
*/
|
|
222
|
+
|
|
223
|
+
@media screen and (max-width: 63.24rem) {
|
|
224
|
+
.SubNav {
|
|
225
|
+
position: relative;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.SubNav::before {
|
|
229
|
+
content: '';
|
|
230
|
+
position: absolute;
|
|
231
|
+
top: 0;
|
|
232
|
+
left: 0;
|
|
233
|
+
bottom: 0;
|
|
234
|
+
right: 0;
|
|
235
|
+
opacity: 0;
|
|
236
|
+
z-index: 9997;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.SubNav::after {
|
|
240
|
+
content: '';
|
|
241
|
+
z-index: -1;
|
|
242
|
+
position: fixed;
|
|
243
|
+
background-color: var(--base-color-scale-black-0);
|
|
244
|
+
opacity: 0;
|
|
245
|
+
visibility: hidden;
|
|
246
|
+
top: 0;
|
|
247
|
+
right: 0;
|
|
248
|
+
left: 0;
|
|
249
|
+
bottom: 0;
|
|
250
|
+
width: 100%;
|
|
251
|
+
height: 100%;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.SubNav--open::after {
|
|
255
|
+
opacity: 0.3;
|
|
256
|
+
visibility: visible;
|
|
257
|
+
transition: visibility var(--brand-animation-duration-default) var(--brand-animation-easing-default),
|
|
258
|
+
opacity var(--brand-animation-duration-default) var(--brand-animation-easing-default);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.SubNav__heading {
|
|
262
|
+
font-size: var(--base-size-16);
|
|
263
|
+
line-height: var(--base-size-24);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.SubNav--open {
|
|
267
|
+
display: block;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.SubNav--open + .SubNav__anchor-menu-outer-container {
|
|
271
|
+
z-index: -1;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.SubNav--open::before {
|
|
275
|
+
background-color: var(--brand-color-canvas-default);
|
|
276
|
+
animation: fade-in 0.3s var(--brand-animation-easing-glide) forwards;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.SubNav__header-container {
|
|
280
|
+
display: flex;
|
|
281
|
+
width: 100%;
|
|
282
|
+
white-space: pre;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.SubNav__heading-separator {
|
|
286
|
+
margin-inline-end: var(--base-size-16);
|
|
287
|
+
z-index: 9998;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.SubNav__heading-separator:not(.SubNav__heading-separator--has-adjacent-label) {
|
|
291
|
+
display: none;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.SubNav__links-overlay {
|
|
295
|
+
position: relative;
|
|
296
|
+
display: flex;
|
|
297
|
+
flex: auto;
|
|
298
|
+
flex-direction: column;
|
|
299
|
+
justify-content: center;
|
|
300
|
+
z-index: 9998;
|
|
301
|
+
display: none;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.SubNav__links-overlay--open {
|
|
305
|
+
display: flex;
|
|
306
|
+
flex-direction: column;
|
|
307
|
+
gap: var(--base-size-8);
|
|
308
|
+
padding-block-start: var(--base-size-16);
|
|
309
|
+
padding-block-end: var(--base-size-16);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.SubNav__links-overlay--open .SubNav__link:hover .SubNav__link-label {
|
|
313
|
+
color: var(--brand-color-text-default);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.SubNav__links-overlay--open .SubNav__link--has-sub-menu:hover .SubNav__link-label {
|
|
317
|
+
color: var(--brand-color-text-muted);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.SubNav__overlay-toggle {
|
|
321
|
+
background-color: transparent;
|
|
322
|
+
border: none;
|
|
323
|
+
cursor: pointer;
|
|
324
|
+
display: flex;
|
|
325
|
+
position: relative;
|
|
326
|
+
width: 100%;
|
|
327
|
+
display: flex;
|
|
328
|
+
order: 1;
|
|
329
|
+
z-index: 9999;
|
|
330
|
+
padding-inline: 0;
|
|
331
|
+
justify-content: end;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.SubNav__overlay-toggle-content {
|
|
335
|
+
justify-content: space-between;
|
|
336
|
+
width: 100%;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.SubNav--full-width .SubNav__overlay-toggle {
|
|
340
|
+
right: 0;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.SubNav__link,
|
|
344
|
+
.SubNav__action-container {
|
|
345
|
+
display: none;
|
|
346
|
+
text-decoration: none;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.SubNav__links-overlay--open .SubNav__link-label {
|
|
350
|
+
position: relative;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.SubNav__links-overlay--open .SubNav__link[aria-current]:not([aria-current='false']) * {
|
|
354
|
+
color: var(--brand-SubNav-color-link-active);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.SubNav__links-overlay--open .SubNav__link,
|
|
358
|
+
.SubNav__links-overlay--open .SubNav__action-container {
|
|
359
|
+
display: block;
|
|
360
|
+
padding: var(--base-size-8) 0;
|
|
361
|
+
animation: fade-in 0.3s var(--brand-animation-easing-glide) forwards;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.SubNav__links-overlay--open .SubNav__link--has-sub-menu {
|
|
365
|
+
padding-block: 0;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.SubNav__links-overlay--open .SubNav__action-container {
|
|
369
|
+
width: 100%;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.SubNav__links-overlay--open .SubNav__action {
|
|
373
|
+
width: 100%;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.SubNav__sub-menu {
|
|
377
|
+
list-style: none;
|
|
378
|
+
padding: 0;
|
|
379
|
+
margin: 0;
|
|
380
|
+
padding-inline-start: var(--base-size-16);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.SubNav__sub-menu--dropdown .SubNav__link:hover .SubNav__link-label {
|
|
384
|
+
color: var(--brand-color-text-default) !important;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.SubNav__anchor-menu-container {
|
|
388
|
+
z-index: 99;
|
|
389
|
+
overflow-x: auto;
|
|
390
|
+
overflow-y: hidden;
|
|
391
|
+
width: 100%;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.SubNav__anchor-menu-outer-container {
|
|
395
|
+
position: sticky;
|
|
396
|
+
top: -1px;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.SubNav__anchor-menu-outer-container::after {
|
|
400
|
+
content: '';
|
|
401
|
+
position: absolute;
|
|
402
|
+
right: 0;
|
|
403
|
+
top: 0;
|
|
404
|
+
bottom: 0;
|
|
405
|
+
width: var(--base-size-32);
|
|
406
|
+
background: linear-gradient(to left, var(--brand-color-canvas-default), transparent);
|
|
407
|
+
pointer-events: none;
|
|
408
|
+
z-index: 100;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.SubNav__link-label {
|
|
412
|
+
font-size: var(--brand-text-size-200);
|
|
413
|
+
font-weight: var(--base-text-weight-semibold);
|
|
414
|
+
padding-block-end: var(--base-size-6);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.SubNav__sub-menu--anchor {
|
|
418
|
+
padding-inline: var(--base-size-16);
|
|
419
|
+
padding-block-end: var(--base-size-16);
|
|
420
|
+
padding-block-start: var(--base-size-16);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.SubNav__sub-menu--anchor .SubNav__link-label {
|
|
424
|
+
font-size: var(--brand-text-size-100);
|
|
425
|
+
line-height: var(--brand-text-lineHeight-100);
|
|
426
|
+
letter-spacing: var(--brand-text-letterSpacing-100);
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.SubNav__sub-menu--anchor .SubNav__sub-menu-list {
|
|
430
|
+
padding-inline-end: var(--base-size-32);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.SubNav__sub-menu--anchor .SubNav__link {
|
|
434
|
+
display: block;
|
|
435
|
+
white-space: pre;
|
|
436
|
+
position: relative;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.SubNav .SubNav__link-label::after {
|
|
440
|
+
opacity: 0;
|
|
441
|
+
transform: scale(0);
|
|
442
|
+
bottom: 0;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.SubNav__link:hover .SubNav__link-label::after,
|
|
446
|
+
.SubNav__link:focus-visible .SubNav__link-label::after,
|
|
447
|
+
.SubNav__link[aria-current]:not([aria-current='false']) .SubNav__link-label::after {
|
|
448
|
+
opacity: 1;
|
|
449
|
+
transform: scale(1);
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.SubNav__overlay-toggle-icon {
|
|
454
|
+
fill: var(--brand-color-text-default);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.SubNav__overlay-toggle-content {
|
|
458
|
+
display: flex;
|
|
459
|
+
align-items: center;
|
|
460
|
+
gap: var(--base-size-8);
|
|
461
|
+
|
|
462
|
+
/* optical alignment */
|
|
463
|
+
position: relative;
|
|
464
|
+
top: calc(var(--base-size-4) / 4 * -1);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.SubNav__overlay-toggle-content--end {
|
|
468
|
+
justify-content: flex-end;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
@media screen and (min-width: 48rem) {
|
|
472
|
+
.SubNav {
|
|
473
|
+
padding: var(--base-size-16) var(--base-size-24);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.SubNav--full-width {
|
|
477
|
+
padding-inline: 0;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.SubNav__sub-menu--anchor {
|
|
481
|
+
padding-inline: var(--base-size-24);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.SubNav__heading-label {
|
|
486
|
+
white-space: pre;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/*
|
|
490
|
+
* Wide breakpoint
|
|
491
|
+
*/
|
|
492
|
+
|
|
493
|
+
@media screen and (min-width: 63.25rem) {
|
|
494
|
+
.SubNav {
|
|
495
|
+
padding: var(--base-size-16) var(--base-size-32);
|
|
496
|
+
align-items: center;
|
|
497
|
+
display: flex;
|
|
498
|
+
z-index: 92;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.SubNav:has(+ .SubNav__anchor-menu-container) {
|
|
502
|
+
padding-block-end: 0;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.SubNav--full-width {
|
|
506
|
+
padding-inline: 0;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
.SubNav__overlay-toggle {
|
|
510
|
+
display: none;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
.SubNav__heading {
|
|
514
|
+
font-size: calc(var(--base-size-20) - 2px);
|
|
515
|
+
line-height: var(--base-size-24);
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.SubNav__heading-separator {
|
|
519
|
+
margin-inline-end: var(--base-size-20);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.SubNav--header-container-outer {
|
|
523
|
+
display: flex;
|
|
524
|
+
align-items: center;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
.SubNav__heading-container {
|
|
528
|
+
margin-inline-end: var(--base-size-20);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.SubNav__links-overlay {
|
|
532
|
+
align-items: center;
|
|
533
|
+
display: flex;
|
|
534
|
+
gap: var(--base-size-20);
|
|
535
|
+
z-index: 92;
|
|
536
|
+
flex-grow: 1;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
.SubNav__link {
|
|
540
|
+
text-decoration: none !important; /* dotcom override */
|
|
541
|
+
transition: color 0.2s var(--brand-animation-easing-glide);
|
|
542
|
+
position: relative;
|
|
543
|
+
padding: var(--base-size-4) 0;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.SubNav__link-label {
|
|
547
|
+
font-size: var(--brand-text-size-100);
|
|
548
|
+
line-height: var(--brand-text-lineHeight-100);
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
.SubNav__link--has-sub-menu {
|
|
552
|
+
padding: var(--base-size-4) 0;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/* To fix hover distance between link and dropdown */
|
|
556
|
+
.SubNav__link--has-sub-menu::after {
|
|
557
|
+
content: '';
|
|
558
|
+
position: absolute;
|
|
559
|
+
bottom: calc(var(--base-size-12) * -1);
|
|
560
|
+
left: 0;
|
|
561
|
+
width: 100%;
|
|
562
|
+
height: var(--base-size-12);
|
|
563
|
+
background: transparent;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
.SubNav__sub-menu.SubNav__sub-menu--dropdown {
|
|
567
|
+
background-clip: padding-box;
|
|
568
|
+
background-color: var(--brand-SubNav-color-subMenu-bgColor);
|
|
569
|
+
border: var(--borderWidth-thin, max(1px, 0.0625rem)) solid var(--borderColor-default, var(--color-border-default));
|
|
570
|
+
border-radius: var(--brand-borderRadius-xlarge, 0.375rem);
|
|
571
|
+
box-shadow: var(--shadow-floating-legacy, var(--color-shadow-large));
|
|
572
|
+
left: 0;
|
|
573
|
+
list-style: none;
|
|
574
|
+
margin-block-start: var(--base-size-8);
|
|
575
|
+
padding: var(--base-size-24);
|
|
576
|
+
padding-inline-end: var(--base-size-24);
|
|
577
|
+
position: absolute;
|
|
578
|
+
top: 100%;
|
|
579
|
+
z-index: 9998;
|
|
580
|
+
transition-timing-function: var(--brand-animation-easing-glide);
|
|
581
|
+
transition-duration: var(--brand-animation-duration-fast);
|
|
582
|
+
transition-property: opacity, transform;
|
|
583
|
+
left: calc(var(--base-size-4) / 4 * -16);
|
|
584
|
+
visibility: hidden;
|
|
585
|
+
opacity: 0;
|
|
586
|
+
transform: scale(0.99) translateY(-0.7em) translateX(-8px);
|
|
587
|
+
transform-origin: top;
|
|
588
|
+
display: flex;
|
|
589
|
+
flex-direction: column;
|
|
590
|
+
gap: var(--base-size-8);
|
|
591
|
+
width: var(--brand-SubNav-width-subMenu);
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
.SubNav__link--expanded .SubNav__sub-menu.SubNav__sub-menu--dropdown {
|
|
595
|
+
visibility: visible;
|
|
596
|
+
opacity: 1;
|
|
597
|
+
transform: scale(1) translateY(0) translateX(-8px);
|
|
598
|
+
box-shadow: var(--brand-SubNav-shadow);
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
.SubNav__sub-menu-toggle {
|
|
602
|
+
border: none;
|
|
603
|
+
padding: 0;
|
|
604
|
+
margin: 0;
|
|
605
|
+
background: none;
|
|
606
|
+
display: inline-flex;
|
|
607
|
+
align-items: center;
|
|
608
|
+
justify-content: center;
|
|
609
|
+
cursor: pointer;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
.SubNav__sub-menu .SubNav__link {
|
|
613
|
+
display: block;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
.SubNav__sub-menu--dropdown .SubNav__link:hover .SubNav__link-label {
|
|
617
|
+
color: var(--brand-color-text-default) !important;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.SubNav__sub-menu--dropdown .SubNav__link-label::after {
|
|
621
|
+
opacity: 1;
|
|
622
|
+
transform: scale(0);
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
.SubNav__link--has-sub-menu {
|
|
626
|
+
position: relative;
|
|
627
|
+
display: inline-flex;
|
|
628
|
+
align-items: center;
|
|
629
|
+
gap: var(--base-size-4);
|
|
630
|
+
cursor: pointer;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.SubNav__sub-menu--dropdown .SubNav__link-label {
|
|
634
|
+
position: relative;
|
|
635
|
+
padding: var(--base-size-4) 0;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
/* Show underline on submenu parent when child has aria-current */
|
|
639
|
+
.SubNav__link--has-sub-menu:has(.SubNav__link[aria-current]:not([aria-current='false']))
|
|
640
|
+
> .SubNav__link
|
|
641
|
+
.SubNav__link-label::after {
|
|
642
|
+
opacity: 1;
|
|
643
|
+
transform: scale(0.8, 1);
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
.SubNav__link--has-sub-menu .SubNav__link[aria-current]:not([aria-current='false']) .SubNav__link-label::after,
|
|
647
|
+
.SubNav__link--has-sub-menu .SubNav__link:hover .SubNav__link-label::after {
|
|
648
|
+
opacity: 1;
|
|
649
|
+
transform: scale(1);
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
.SubNav__sub-menu-icon {
|
|
653
|
+
display: inline-block !important;
|
|
654
|
+
fill: var(--brand-color-text-muted);
|
|
655
|
+
transition: transform var(--brand-animation-duration-fast);
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
.SubNav__link--has-sub-menu:hover .SubNav__sub-menu-icon {
|
|
659
|
+
transform: translateY(2px);
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.SubNav__sub-menu--anchor {
|
|
663
|
+
padding-inline: var(--base-size-32);
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
@keyframes fade-in {
|
|
668
|
+
0% {
|
|
669
|
+
opacity: 0;
|
|
670
|
+
}
|
|
671
|
+
100% {
|
|
672
|
+
opacity: 1;
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
@keyframes fade-in-down {
|
|
677
|
+
0% {
|
|
678
|
+
opacity: 0;
|
|
679
|
+
}
|
|
680
|
+
100% {
|
|
681
|
+
opacity: 1;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
@@ -3,11 +3,6 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
3
3
|
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
4
4
|
* Distributed under the terms of the Modified BSD License.
|
|
5
5
|
*/
|
|
6
|
-
/*
|
|
7
|
-
* Copyright (c) 2021-2024 Datalayer, Inc.
|
|
8
|
-
*
|
|
9
|
-
* Datalayer License
|
|
10
|
-
*/
|
|
11
6
|
import { useState } from 'react';
|
|
12
7
|
import { Box, Button, PageLayout } from '@primer/react';
|
|
13
8
|
import { Dialog } from '@primer/react/experimental';
|