Skip to content

Commit 3f36a6c

Browse files
authored
Merge branch 'main' into sh-fileInput-3089
2 parents 6ad2f62 + 1ef910f commit 3f36a6c

26 files changed

+2559
-3219
lines changed

.all-contributorsrc

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,36 @@
378378
"code",
379379
"maintenance"
380380
]
381+
},
382+
{
383+
"login": "Ivcota",
384+
"name": "Iverson Diles",
385+
"avatar_url": "https://avatars.githubusercontent.com/u/18635074?v=4",
386+
"profile": "https://github.com/Ivcota",
387+
"contributions": [
388+
"bug",
389+
"code"
390+
]
391+
},
392+
{
393+
"login": "doug-s-nava",
394+
"name": "doug-s-nava",
395+
"avatar_url": "https://avatars.githubusercontent.com/u/92806979?v=4",
396+
"profile": "https://github.com/doug-s-nava",
397+
"contributions": [
398+
"bug",
399+
"code"
400+
]
401+
},
402+
{
403+
"login": "TomNUSDS",
404+
"name": "TomNUSDS",
405+
"avatar_url": "https://avatars.githubusercontent.com/u/74203452?v=4",
406+
"profile": "https://github.com/TomNUSDS",
407+
"contributions": [
408+
"bug",
409+
"code"
410+
]
381411
}
382412
],
383413
"contributorsPerLine": 7,

.github/workflows/build-and-test.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
node: [ '20', '22' ]
17+
node: [ '20', '22', '24' ]
1818

1919
name: Node ${{ matrix.node }} tests
2020

@@ -60,15 +60,6 @@ jobs:
6060
- name: Check format
6161
run: yarn format:check
6262

63-
- name: Build Storybook
64-
run: yarn build-storybook
65-
66-
- name: Happo
67-
run: yarn happo-ci
68-
env:
69-
HAPPO_API_KEY: ${{ secrets.HAPPO_API_KEY }}
70-
HAPPO_API_SECRET: ${{ secrets.HAPPO_API_SECRET }}
71-
7263
- name: Run Danger JS
7364
run: yarn danger ci --failOnErrors
7465
env:

.github/workflows/happo.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Happo CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
happo:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
21+
fetch-depth: 100
22+
- name: Fetch main branch
23+
if: github.ref != 'refs/heads/main'
24+
run: git fetch origin main:main
25+
26+
- name: Set up Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version-file: '.node-version'
30+
cache: 'yarn'
31+
32+
- name: Install dependencies
33+
run: yarn --immutable
34+
35+
- name: Build Storybook
36+
run: yarn build-storybook
37+
38+
- name: Happo
39+
run: yarn happo-ci
40+
env:
41+
HAPPO_API_KEY: ${{ secrets.HAPPO_API_KEY }}
42+
HAPPO_API_SECRET: ${{ secrets.HAPPO_API_SECRET }}

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.14.0
1+
24.11.0

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "10.0.1"
2+
".": "10.0.2"
33
}
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { create } from '@storybook/theming/create';
1+
import { create } from 'storybook/theming'
22

33
export default create({
44
brandTitle: 'U.S. Web Design System (USWDS)',
@@ -8,7 +8,8 @@ export default create({
88
base: 'light',
99

1010
// Text
11-
fontBase: "'Public Sans Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",
11+
fontBase:
12+
"'Public Sans Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",
1213
textColor: '#1b1b1b',
1314
inputTextColor: '#1b1b1b',
1415
textInverseColor: '#ffffff',
@@ -22,4 +23,4 @@ export default create({
2223
appBorderRadius: 4,
2324
inputBorder: '#5c5c5c',
2425
inputBorderRadius: 4,
25-
});
26+
})

.storybook/main.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,11 @@ const config: StorybookConfig = {
77
// addon-docs is not in package.json, but required for storybook.
88
'@storybook/addon-docs',
99
'@storybook/addon-links',
10-
'@storybook/addon-essentials',
11-
'@storybook/addon-interactions',
1210
],
1311
framework: {
1412
name: '@storybook/react-vite',
1513
options: {},
1614
},
17-
docs: {
18-
autodocs: true,
19-
},
2015
staticDirs: ['public'],
2116
}
2217
export default config

.storybook/manager.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

.storybook/manager.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { addons } from 'storybook/manager-api'
2+
import USWDS from './USWDS.js'
3+
4+
addons.setConfig({
5+
theme: USWDS,
6+
})

.storybook/preview.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import '@uswds/uswds/css/uswds.css'
44
import '../src/styles/index.scss'
55
import './custom-styles.scss'
66

7-
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport'
8-
import { Preview } from '@storybook/react';
9-
import USWDS from './USWDS';
7+
import { INITIAL_VIEWPORTS } from 'storybook/viewport'
8+
import { Preview } from '@storybook/react-vite'
9+
import USWDS from './USWDS'
1010

1111
const preview: Preview = {
1212
parameters: {
@@ -20,9 +20,16 @@ const preview: Preview = {
2020
showPanel: true,
2121
storySort: {
2222
method: 'alphabetical',
23-
order: ['Welcome', 'Design tokens', 'Page Templates', 'Components', 'Other'],
23+
order: [
24+
'Welcome',
25+
'Design tokens',
26+
'Page Templates',
27+
'Components',
28+
'Other',
29+
],
2430
},
2531
},
2632
},
33+
tags: ['autodocs'],
2734
}
28-
export default preview;
35+
export default preview

0 commit comments

Comments
 (0)