Skip to content

Commit 461cb3a

Browse files
authored
Merge pull request #205 from digital-go-jp/update-v2-20250610
Update v2 20250610
2 parents a586467 + 1c9a838 commit 461cb3a

File tree

67 files changed

+2330
-2717
lines changed

Some content is hidden

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

67 files changed

+2330
-2717
lines changed

.storybook/dadsTheme.ts

Lines changed: 1 addition & 1 deletion
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/create';
22

33
export default create({
44
base: 'light',

.storybook/main.ts

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,13 @@ import type { StorybookConfig } from '@storybook/react-vite';
22

33
const config: StorybookConfig = {
44
stories: ['../src/docs/*.stories.@(js|jsx|ts|tsx)', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
5-
addons: [
6-
'@storybook/addon-links',
7-
'@storybook/addon-essentials',
8-
'@storybook/addon-interactions',
9-
'@storybook/addon-a11y',
10-
'@storybook/addon-storysource',
11-
],
5+
addons: ['@storybook/addon-links', '@storybook/addon-a11y', '@storybook/addon-docs'],
6+
127
framework: {
138
name: '@storybook/react-vite',
149
options: {},
1510
},
16-
docs: {
17-
autodocs: 'tag',
18-
},
19-
staticDirs: ['../public'],
11+
12+
staticDirs: ['../public']
2013
};
2114
export default config;

.storybook/manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { addons } from '@storybook/manager-api';
1+
import { addons } from 'storybook/manager-api';
22

33
import CustomTheme from "./dadsTheme";
44

.storybook/preview.ts

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,57 @@
1-
import type { Preview } from '@storybook/react';
1+
import type { Preview } from '@storybook/react-vite';
22
import './globals.css';
33

44
const preview: Preview = {
55
parameters: {
66
actions: { argTypesRegex: '^on[A-Z].*' },
7+
78
controls: {
89
matchers: {
910
color: /(background|color)$/i,
1011
date: /Date$/,
1112
},
1213
},
14+
15+
options: {
16+
storySort: {
17+
order: [
18+
'Getting Started',
19+
'Component',
20+
[
21+
'アコーディオン',
22+
'パンくずリスト',
23+
'インプットテキスト',
24+
'カレンダー',
25+
'緊急時バナー',
26+
'セレクトボックス',
27+
'チェックボックス',
28+
'テーブル',
29+
'ディスクロージャー',
30+
'ディバイダー',
31+
'テキストエリア',
32+
'ドロワー',
33+
'ノティフィケーションバナー',
34+
'ハンバーガーメニューボタン',
35+
'日付ピッカー',
36+
'フォームコントロールラベル',
37+
'ボタン',
38+
'ユーティリティリンク',
39+
'ラジオボタン',
40+
'ランゲージセレクター',
41+
'リスト',
42+
'リンク',
43+
'*',
44+
'Parts',
45+
'DADS v1',
46+
],
47+
'tokens',
48+
],
49+
},
50+
},
51+
52+
docs: {
53+
codePanel: true
54+
}
1355
},
1456
};
1557

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 デジタル庁
3+
Copyright (c) 2025 デジタル庁
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

biome.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,7 @@
3939
},
4040
"a11y": {
4141
"useValidAnchor": "off",
42-
"noLabelWithoutControl": {
43-
"level": "error",
44-
"options": {
45-
"inputComponents": ["Checkbox", "InputText", "Radio", "Select", "Textarea"],
46-
"labelAttributes": [],
47-
"labelComponents": []
48-
}
49-
}
42+
"noLabelWithoutControl": "off"
5043
}
5144
}
5245
}

0 commit comments

Comments
 (0)