Skip to content

Commit

Permalink
Merge branch 'update-figma-tokens' into w3c-dtcg-conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Jura committed Jan 22, 2025
2 parents 6720cc4 + 9b356fb commit 574d0f5
Show file tree
Hide file tree
Showing 239 changed files with 12,602 additions and 8,431 deletions.
45 changes: 25 additions & 20 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
const path = require('path');

const config = {
export default {
staticDirs: ['../stories/assets'],
stories: ['../stories/**/*.stories.@(js|jsx|ts|tsx)', '../stories/**/*.mdx'],

addons: ['@storybook/addon-links', {
name: '@storybook/addon-essentials',
options: {
actions: false, // 👈 disable the actions addon
addons: [
'@storybook/addon-links',
{
name: '@storybook/addon-essentials',
options: {
actions: false, // 👈 disable the actions addon
},
},
}, // 'storybook-addon-rtl',
'@storybook/blocks', '@storybook/addon-a11y', '@storybook/react-webpack5', // '@chromatic-com/storybook',
'@storybook/addon-webpack5-compiler-babel', '@whitespace/storybook-addon-html'],

// 'storybook-addon-rtl',
'@storybook/blocks',
'@storybook/addon-a11y',
'@storybook/react-webpack5',
// '@chromatic-com/storybook',
'@storybook/addon-webpack5-compiler-babel',
'@whitespace/storybook-addon-html',
'@storybook/addon-designs',
'storybook-addon-sass-postcss',
],
webpackFinal: async config => {
config.resolve.alias = {
...config.resolve.alias,
Expand All @@ -21,7 +29,7 @@ const config = {

config.module.rules.push({
test: /\.scss$/,
use: ['style-loader', 'css-loader', { loader: 'sass-loader', options: { implementation: 'sass-embedded', sourceMap: false, sassOptions: { quietDeps: true, silenceDeprecations: ['import', 'global-builtin'] } } }],
use: ['style-loader', 'css-loader', 'sass-loader'],
include: path.resolve(__dirname, '../')
});

Expand All @@ -37,16 +45,13 @@ const config = {

return config;
},

framework: {
name: '@storybook/react-webpack5'
name: '@storybook/react-webpack5',
options: {}
},

// env: config => ({
// ...config,
// CHROMATIC_VIEWPORTS: [375, 768, 1380, 1920]
// }),
docs: {},

typescript: {
reactDocgen: 'react-docgen-typescript'
}
};

export default config;
4 changes: 2 additions & 2 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<link rel="stylesheet" href="https://use.typekit.net/ukl2sym.css" />
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:[email protected]&family=Noto+Sans+JP:[email protected]&family=Noto+Sans+Myanmar:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet" />
<link href="https://use.typekit.net/icr3zpi.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:[email protected]&family=Noto+Sans+JP:[email protected]&family=Noto+Sans+Myanmar:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<!-- CSS to override doc page -->
<style type="text/css">
.sbdocs .sbdocs-a, .sbdocs a[aria-hidden="true"] {
Expand Down
19 changes: 6 additions & 13 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import '!style-loader!css-loader!sass-loader!../stories/assets/scss/base-minimal
// }

// Configure Storybook
const parameters = {
export const parameters = {
// actions: { disable: true },
controls: {
matchers: {
Expand Down Expand Up @@ -53,8 +53,8 @@ const parameters = {
options: {
storySort: {
method: 'alphabetical',
order: ['Getting started', ['Intro', 'How to use our design system?', 'Browser support', 'Internationalization'], 'Foundation', 'Components', 'Patterns', 'Utilities', 'Templates'],
includeNames: true
order: ['Getting started', ['Intro', 'How to use our design system?', 'Browser support'], 'Foundation', 'Components', 'Patterns', 'Utilities', 'Templates'],
includeName: true
},
},
chromatic: {
Expand All @@ -71,7 +71,7 @@ const parameters = {
}

/* Implementing locale for language switcher */
const globalTypes = {
export const globalTypes = {
locale: {
title: 'Locale',
description: 'locale',
Expand Down Expand Up @@ -202,12 +202,5 @@ const setAccentClass = (Story, context) => {
)
}

// export const decorators = [getLangCode, sbFrameReset, setDirection, setAccentClass];
// export const tags = ['autodocs'];

export default {
parameters: parameters,
globalTypes: globalTypes,
decorators: [getLangCode, sbFrameReset, setDirection, setAccentClass],
tags: ['autodocs', 'autodocs'],
}
export const decorators = [getLangCode, sbFrameReset, setDirection, setAccentClass];
export const tags = ['autodocs', 'autodocs'];
2 changes: 1 addition & 1 deletion docs/css/base-minimal-no-grid.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/css/base-minimal.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/css/ckeditor5.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/css/components/accordion.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/css/components/author-card.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/css/components/breadcrumbs.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 574d0f5

Please sign in to comment.