Skip to content

Commit de02683

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat/widgetize-app-layout-skeleton-event-base
# Conflicts: # src/app-layout/visual-refresh-toolbar/index.tsx # src/app-layout/visual-refresh-toolbar/skeleton/index.tsx
2 parents dc9e77d + c3faf5c commit de02683

File tree

248 files changed

+10519
-5773
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

248 files changed

+10519
-5773
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ src/index.ts
99
src/test-utils/dom/index.ts
1010
src/test-utils/selectors
1111
src/icon/generated
12-
src/internal/generated/custom-css-properties/index.*
12+
src/internal/generated/custom-css-properties
1313
vendor/generated-*.txt
1414
# IDEs
1515
.vscode
1616
# System
17-
.DS_Store
17+
.DS_Store

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ We support
2828

2929
## Browsers support
3030

31-
We support the latest 3 major versions of these browsers for desktop.
32-
31+
We support the latest 3 *major* versions of these browsers for desktop:
3332
- Google Chrome
3433
- Mozilla Firefox
3534
- Microsoft Edge
36-
- Apple Safari for macOS
35+
36+
and the latest three *minor* versions of Apple Safari for macOS for desktop.
3737

3838
We do not support Microsoft Internet Explorer or mobile browsers. We support all viewport sizes across desktop browsers.
3939

build-tools/tasks/clean.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ module.exports = task('clean', () => {
1414
`${workspace.targetPath}/**`,
1515
`${workspace.staticSitePath}/**`,
1616
`${workspace.generatedTestUtils}/**`,
17+
`${workspace.generatedPath}/custom-css-properties/**`,
1718
`node_modules/.cache`,
1819
],
1920
{ glob: true }

build-tools/tasks/generate-custom-css-properties.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
3-
const customCssPropertiesList = require('../../src/internal/generated/custom-css-properties/list');
43
const path = require('path');
5-
const { writeFile } = require('../utils/files');
64
const { getHashDigest } = require('loader-utils');
5+
const customCssPropertiesList = require('../utils/custom-css-properties');
6+
const { writeFile } = require('../utils/files');
7+
const workspace = require('../utils/workspace');
78

8-
const outputBasePath = path.join(__dirname, '../../src/internal/generated/custom-css-properties');
9+
const outputBasePath = path.join(workspace.generatedPath, 'custom-css-properties');
910
const hash = getHashDigest(Buffer.from(JSON.stringify(customCssPropertiesList)), 'md5', 'base36', 6);
1011

1112
const getHashedProperty = property => {
@@ -32,6 +33,9 @@ function writeSassFile() {
3233
writeFile(
3334
filepath,
3435
`
36+
// Build environment
37+
$awsui-commit-hash: "${workspace.gitCommitVersion}";
38+
// Manually managed CSS-variables
3539
${customCssPropertiesList.map(property => `$${property}: ${getHashedProperty(property)};`).join('\n')}
3640
`
3741
);

build-tools/tasks/generate-environment.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ function writeEnvironmentFile(theme) {
1010
const values = {
1111
PACKAGE_SOURCE: workspace.packageSource,
1212
PACKAGE_VERSION: workspace.packageVersion,
13+
GIT_SHA: workspace.gitCommitVersion,
1314
THEME: theme.name,
1415
ALWAYS_VISUAL_REFRESH: !!theme.alwaysVisualRefresh,
1516
};

src/internal/generated/custom-css-properties/list.js renamed to build-tools/utils/custom-css-properties.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,22 @@ const customCssPropertiesList = [
7373
// Internal drag handle properties
7474
'dragHandleAnimationInlineOffset',
7575
'dragHandleAnimationBlockOffset',
76+
// Style API
77+
'styleBackgroundActive',
78+
'styleBackgroundDefault',
79+
'styleBackgroundDisabled',
80+
'styleBackgroundHover',
81+
'styleBorderColorActive',
82+
'styleBorderColorDefault',
83+
'styleBorderColorDisabled',
84+
'styleBorderColorHover',
85+
'styleColorActive',
86+
'styleColorDefault',
87+
'styleColorDisabled',
88+
'styleColorHover',
89+
'styleFocusRingBorderColor',
90+
'styleFocusRingBorderRadius',
91+
'styleFocusRingBorderWidth',
92+
'styleFocusRingBoxShadow',
7693
];
7794
module.exports = customCssPropertiesList;

build-tools/utils/pluralize.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const pluralizationMap = {
4545
KeyValuePairs: 'KeyValuePairs',
4646
LineChart: 'LineCharts',
4747
Link: 'Links',
48+
List: 'Lists',
4849
LiveRegion: 'LiveRegions',
4950
MixedLineBarChart: 'MixedLineBarCharts',
5051
Modal: 'Modals',

build-tools/utils/workspace.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports = {
1111
isProd: process.env.NODE_ENV === 'production',
1212
packageSource,
1313
packageVersion,
14+
gitCommitVersion,
1415
sourcePath: 'src',
1516
generatedPath: 'src/internal/generated',
1617
generatedTestUtils: 'src/test-utils/selectors',

0 commit comments

Comments
 (0)