Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .storybook/dadsTheme.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { create } from '@storybook/theming/create';
import { create } from 'storybook/theming/create';

export default create({
base: 'light',
Expand Down
15 changes: 4 additions & 11 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,13 @@ import type { StorybookConfig } from '@storybook/react-vite';

const config: StorybookConfig = {
stories: ['../src/docs/*.stories.@(js|jsx|ts|tsx)', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/addon-a11y',
'@storybook/addon-storysource',
],
addons: ['@storybook/addon-links', '@storybook/addon-a11y', '@storybook/addon-docs'],

framework: {
name: '@storybook/react-vite',
options: {},
},
docs: {
autodocs: 'tag',
},
staticDirs: ['../public'],

staticDirs: ['../public']
};
export default config;
2 changes: 1 addition & 1 deletion .storybook/manager.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { addons } from '@storybook/manager-api';
import { addons } from 'storybook/manager-api';

import CustomTheme from "./dadsTheme";

Expand Down
44 changes: 43 additions & 1 deletion .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,57 @@
import type { Preview } from '@storybook/react';
import type { Preview } from '@storybook/react-vite';
import './globals.css';

const preview: Preview = {
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },

controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},

options: {
storySort: {
order: [
'Getting Started',
'Component',
[
'アコーディオン',
'パンくずリスト',
'インプットテキスト',
'カレンダー',
'緊急時バナー',
'セレクトボックス',
'チェックボックス',
'テーブル',
'ディスクロージャー',
'ディバイダー',
'テキストエリア',
'ドロワー',
'ノティフィケーションバナー',
'ハンバーガーメニューボタン',
'日付ピッカー',
'フォームコントロールラベル',
'ボタン',
'ユーティリティリンク',
'ラジオボタン',
'ランゲージセレクター',
'リスト',
'リンク',
'*',
'Parts',
'DADS v1',
],
'tokens',
],
},
},

docs: {
codePanel: true
}
},
};

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 デジタル庁
Copyright (c) 2025 デジタル庁

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
9 changes: 1 addition & 8 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,7 @@
},
"a11y": {
"useValidAnchor": "off",
"noLabelWithoutControl": {
"level": "error",
"options": {
"inputComponents": ["Checkbox", "InputText", "Radio", "Select", "Textarea"],
"labelAttributes": [],
"labelComponents": []
}
}
"noLabelWithoutControl": "off"
}
}
}
Expand Down
Loading