Skip to content

Commit

Permalink
fix: Update merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel.carrera committed Oct 24, 2024
2 parents 9d8b66f + d5be4cb commit c5ce0b3
Show file tree
Hide file tree
Showing 404 changed files with 12,645 additions and 4,847 deletions.
3 changes: 0 additions & 3 deletions .github/labeler.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/reviewer-lottery.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
## Build for packaging.
- name: Build
run: yarn build
env:
TSP_SKIP_CACHE: true

## Publish prerelease to npm. Must be run after a build
- name: Publish
Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/label.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/reviewer-lottery.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const path = require('node:path');
const remarkGfm = require('remark-gfm').default;

const modulesPath = path.resolve(__dirname, '../modules');
const getSpecifications = require('../modules/docs/utils/get-specifications');
Expand All @@ -22,6 +23,16 @@ const config: StorybookConfig = {
},
'./readme-panel/preset.js',
'@storybook/addon-storysource',
{
name: '@storybook/addon-docs',
options: {
mdxPluginOptions: {
mdxCompileOptions: {
remarkPlugins: [remarkGfm],
},
},
},
},
],
core: {
builder: '@storybook/builder-webpack5',
Expand Down
6 changes: 3 additions & 3 deletions .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {addons} from '@storybook/preview-api';
import theme from './theme';
import { addons } from '@storybook/manager-api';
import canvasTheme from './theme';

addons.setConfig({
theme,
theme: canvasTheme,
});
11 changes: 10 additions & 1 deletion .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {DocsPage, DocsContainer} from '@storybook/addon-docs';
import React from 'react';
import {DocsPage, DocsContainer, Unstyled} from '@storybook/addon-docs';
import 'cypress-storybook/react';
import routes from './routes';

Expand All @@ -12,6 +13,14 @@ import '@workday/canvas-tokens-web/css/system/_variables.css';
// set routes on window for testing the validity of the routes
window.__routes = routes;

const UnstyledDocsContainer = ({children, ...props}) => {
return (
<DocsContainer {...props}>
<Unstyled>{children}</Unstyled>
</DocsContainer>
);
};

export const decorators = [CanvasProviderDecorator];

export const parameters = {
Expand Down
18 changes: 10 additions & 8 deletions .storybook/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const routes = {
'/components/indicators/status-indicator/': 'preview-status-indicator--basic',
'/components/inputs/checkbox/': 'components-inputs-checkbox--basic',
'/components/inputs/color-input/': 'components-inputs-color-picker-color-input--basic',
'/components/inputs/form-field/': 'preview-inputs-form-field--basic',
'/components/inputs/form-field/': 'components-inputs-form-field--basic',
'/components/inputs/radio/': 'components-inputs-radio--basic',
'/components/inputs/select/': 'components-inputs-select--basic',
'/components/inputs/switch/': 'components-inputs-switch--basic',
Expand Down Expand Up @@ -61,13 +61,15 @@ const routes = {
'/tokens/space/': 'tokens--space',
'/tokens/type/': 'tokens--type',
'/utilities/testing/': 'hooks-and-utilities-testing--basic',
'/whats-new/upgrade-guides/canvas-kit-v4-upgrade-guide/': 'guides-upgrade-guides-v4-0--page',
'/whats-new/upgrade-guides/canvas-kit-v5-upgrade-guide/': 'guides-upgrade-guides-v5-0--page',
'/whats-new/upgrade-guides/canvas-kit-v6-upgrade-guide/': 'guides-upgrade-guides-v6-0--page',
'/whats-new/upgrade-guides/canvas-kit-v7-upgrade-guide/': 'guides-upgrade-guides-v7-0--page',
'/whats-new/upgrade-guides/canvas-kit-v8-upgrade-guide/': 'guides-upgrade-guides-v8-0--page',
'/whats-new/upgrade-guides/canvas-v9-upgrade-guide/': 'guides-upgrade-guides-v9-0--page',
'/whats-new/upgrade-guides/canvas-v10-upgrade-guide/': 'guides-upgrade-guides-v10-0--page',
'/whats-new/upgrade-guides/canvas-kit-v4-upgrade-guide/': 'guides-upgrade-guides-v4-0--docs',
'/whats-new/upgrade-guides/canvas-kit-v5-upgrade-guide/': 'guides-upgrade-guides-v5-0--docs',
'/whats-new/upgrade-guides/canvas-kit-v6-upgrade-guide/': 'guides-upgrade-guides-v6-0--docs',
'/whats-new/upgrade-guides/canvas-kit-v7-upgrade-guide/': 'guides-upgrade-guides-v7-0--docs',
'/whats-new/upgrade-guides/canvas-kit-v8-upgrade-guide/': 'guides-upgrade-guides-v8-0--docs',
'/whats-new/upgrade-guides/canvas-v9-upgrade-guide/': 'guides-upgrade-guides-v9-0--docs',
'/whats-new/upgrade-guides/canvas-v10-upgrade-guide/': 'guides-upgrade-guides-v10-0--docs',
'/whats-new/upgrade-guides/canvas-v11-upgrade-guide/': 'guides-upgrade-guides-v11-0--docs',
'/whats-new/upgrade-guides/canvas-v12-upgrade-guide/': 'guides-upgrade-guides-v12-0--docs',
};

module.exports = routes;
6 changes: 4 additions & 2 deletions .storybook/theme.js

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

Loading

0 comments on commit c5ce0b3

Please sign in to comment.