diff --git a/build-tools/utils/pluralize.js b/build-tools/utils/pluralize.js index aa85012575..65b74ea571 100644 --- a/build-tools/utils/pluralize.js +++ b/build-tools/utils/pluralize.js @@ -57,6 +57,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 fda995324a..de07f1c79a 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "start:integ": "cross-env NODE_ENV=development webpack serve --config pages/webpack.config.integ.cjs", "start:react18": "npm-run-all --parallel start:watch start:react18:dev", "start:react18:dev": "cross-env NODE_ENV=development REACT_VERSION=18 webpack serve --config pages/webpack.config.cjs", - "postinstall": "prepare-package-lock", + "postinstall": "prepare-package-lock && node ./scripts/install-peer-dependency.js theming-core:dev-v3-amanabiy", "prepare": "husky" }, "dependencies": { @@ -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 = ( + +