From dd9f9bcce0456f15157d399dc37612a0602b91ea Mon Sep 17 00:00:00 2001 From: at-susie Date: Tue, 25 Mar 2025 11:32:30 +0100 Subject: [PATCH 01/35] apply second direction for vr improvements --- .../full-page-table.page.tsx | 67 + pages/app-layout-toolbar/with-wizard.page.tsx | 107 + .../__snapshots__/themes.test.ts.snap | 24 +- .../__snapshots__/design-tokens.test.ts.snap | 2791 ++++++++++++++++- src/app-layout-toolbar/index.tsx | 5 +- src/code-editor/styles.scss | 4 +- src/input/styles.scss | 4 +- .../components/button-trigger/styles.scss | 4 +- .../components/checkbox-icon/index.tsx | 6 +- .../components/checkbox-icon/styles.scss | 2 +- src/internal/styles/forms/mixins.scss | 6 +- src/radio-group/radio-button.tsx | 2 +- src/textarea/styles.scss | 4 +- src/tiles/styles.scss | 9 +- style-dictionary/utils/contexts.ts | 8 + style-dictionary/utils/token-names.ts | 2 + style-dictionary/visual-refresh/borders.ts | 3 +- .../visual-refresh/color-palette.ts | 1 + style-dictionary/visual-refresh/colors.ts | 2 +- .../contexts/app-layout-toolbar.ts | 17 + style-dictionary/visual-refresh/index.ts | 2 + 21 files changed, 2906 insertions(+), 164 deletions(-) create mode 100644 pages/app-layout-toolbar/full-page-table.page.tsx create mode 100644 pages/app-layout-toolbar/with-wizard.page.tsx create mode 100644 style-dictionary/visual-refresh/contexts/app-layout-toolbar.ts diff --git a/pages/app-layout-toolbar/full-page-table.page.tsx b/pages/app-layout-toolbar/full-page-table.page.tsx new file mode 100644 index 0000000000..d6b5581478 --- /dev/null +++ b/pages/app-layout-toolbar/full-page-table.page.tsx @@ -0,0 +1,67 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 +import React, { useContext, useState } from 'react'; + +import { AppLayoutToolbar, Button, Header, Link, Table } from '~components'; + +import AppContext, { AppContextType } from '../app/app-context'; +import { Breadcrumbs, Footer, Navigation, Notifications, Tools } from '../app-layout/utils/content-blocks'; +import labels from '../app-layout/utils/labels'; +import * as toolsContent from '../app-layout/utils/tools-content'; +import { generateItems, Instance } from '../table/generate-data'; +import { columnsConfig } from '../table/shared-configs'; +import ScreenshotArea from '../utils/screenshot-area'; + +type PageContext = React.Context>; + +const items = generateItems(20); + +export default function () { + const [toolsOpen, setToolsOpen] = useState(false); + const [selectedTool, setSelectedTool] = useState('long'); + const { urlParams } = useContext(AppContext as PageContext); + + function openHelp(article: keyof typeof toolsContent) { + setToolsOpen(true); + setSelectedTool(article); + } + + return ( + + } + navigation={} + contentType="table" + tools={{toolsContent[selectedTool]}} + toolsOpen={toolsOpen} + onToolsChange={({ detail }) => setToolsOpen(detail.open)} + notifications={} + stickyNotifications={urlParams.stickyNotifications} + content={ + + header={ +
openHelp('long')}> + Long help text + + } + actions={} + > + Sticky Scrollbar Example +
+ } + stickyHeader={true} + variant="full-page" + columnDefinitions={columnsConfig} + items={items} + /> + } + /> +