diff --git a/build-tools/utils/pluralize.js b/build-tools/utils/pluralize.js index 43d4a24493..d484d65ef4 100644 --- a/build-tools/utils/pluralize.js +++ b/build-tools/utils/pluralize.js @@ -56,6 +56,7 @@ const pluralizationMap = { Modal: 'Modals', Multiselect: 'Multiselects', NavigableGroup: 'NavigableGroups', + NavigationBar: 'NavigationBars', Pagination: 'Paginations', AppLayoutToolbar: 'AppLayoutToolbars', PanelLayout: 'PanelLayouts', diff --git a/package.json b/package.json index 39b9206218..e9c1017237 100644 --- a/package.json +++ b/package.json @@ -172,12 +172,12 @@ { "path": "lib/components/internal/plugins/index.js", "brotli": false, - "limit": "15 kB" + "limit": "120 kB" }, { "path": "lib/components/internal/widget-exports.js", "brotli": false, - "limit": "1285 kB", + "limit": "1580 kB", "ignore": "react-dom" } ], diff --git a/pages/navigation-bar/common.tsx b/pages/navigation-bar/common.tsx new file mode 100644 index 0000000000..56f5ed809e --- /dev/null +++ b/pages/navigation-bar/common.tsx @@ -0,0 +1,123 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 +import React from 'react'; + +import Box from '~components/box'; +import Button from '~components/button'; +import ButtonDropdown from '~components/button-dropdown'; +import Link from '~components/link'; +import SpaceBetween from '~components/space-between'; + +// Primary horizontal — app header with branding, nav links, and user menu +export const primaryHorizontalContent = ( +
+ + + CloudManager + + Services + Resources + Monitoring + +
+ +
+
+); + +// Secondary horizontal — toolbar with breadcrumbs and actions +export const secondaryHorizontalContent = ( +
+ +
+ +); + +// Primary vertical — branded sidebar that mirrors the horizontal header structure +// (brand, nav items, user menu) in a compact icon-only "shrunken" form. +export const primaryVerticalContent = ( +
+ + Logo + + +
+ +); + +// Secondary vertical — tool rail with actions +export const secondaryVerticalContent = ( + +