Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SELF-482: Upgrade Storybook #543

Closed
wants to merge 2 commits into from
Closed
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
6 changes: 2 additions & 4 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],

addons: [
'@storybook/addon-links',
Expand All @@ -15,7 +15,5 @@ module.exports = {
options: {}
},

docs: {
autodocs: true
}
docs: {}
};
1 change: 1 addition & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ export const parameters = {
},
layout: 'centered'
};
export const tags = ['autodocs'];
36,874 changes: 14,344 additions & 22,530 deletions package-lock.json

Large diffs are not rendered by default.

22 changes: 9 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,13 @@
"vue-router": "^4.0.8"
},
"devDependencies": {
"@babel/core": "^7.14.3",
"@storybook/addon-a11y": "^7.6.12",
"@storybook/addon-actions": "^7.6.12",
"@storybook/addon-docs": "^7.6.12",
"@storybook/addon-essentials": "^7.6.12",
"@storybook/addon-links": "^7.6.12",
"@storybook/vue3": "^7.6.12",
"@storybook/vue3-vite": "^7.6.12",
"@storybook/addon-a11y": "^8.2.9",
"@storybook/addon-actions": "^8.2.9",
"@storybook/addon-docs": "^8.2.9",
"@storybook/addon-essentials": "^8.2.9",
"@storybook/addon-links": "^8.2.9",
"@storybook/vue3": "^8.2.9",
"@storybook/vue3-vite": "^8.2.9",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/user-event": "^14.0.4",
"@testing-library/vue": "^6.5.1",
Expand All @@ -63,7 +62,6 @@
"@vitest/coverage-c8": "^0.23.4",
"@vue/test-utils": "^2.0.0-rc.19",
"autoprefixer": "^10.4.5",
"babel-loader": "^9.1.3",
"eslint": "^8.57.0",
"eslint-config-lob": "^5.2.0",
"eslint-config-prettier": "^8.8.0",
Expand All @@ -74,11 +72,9 @@
"prettier": "^3.0.0",
"prettier-eslint": "^15.0.1",
"prettier-stylelint": "^0.4.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sass": "^1.53.0",
"sass-loader": "^11.1.1",
"storybook": "^7.6.12",
"storybook": "^8.2.9",
"stylelint": "^13.13.1",
"stylelint-config-standard": "^22.0.0",
"tailwind-plugin-lob": "^1.0.9",
Expand All @@ -88,7 +84,7 @@
"vite-plugin-dts": "^4.1.0",
"vitest": "^0.23.4",
"vue-eslint-parser": "^9.4.2",
"vue-tsc": "^2.0.13"
"vue-tsc": "^2.1.6"
},
"peerDependencies": {
"vue-i18n": "^9.0.0"
Expand Down
5 changes: 4 additions & 1 deletion src/components/Accordion/Accordion.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import * as AccordionStories from './Accordion.stories';
import { Primary } from './Accordion.stories';

<Meta of={AccordionStories} />

# Accordion

Accordions are vertically collapsing components used for displaying or hiding large chunks of content
Expand Down
5 changes: 4 additions & 1 deletion src/components/AdvancedSearchBar/AdvancedSearchBar.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import * as AdvancedSearchBarStories from './AdvancedSearchBar.stories';
import { Primary } from './AdvancedSearchBar.stories';

<Meta of={AdvancedSearchBarStories} />

# AdvancedSearchBar

This Advanced Search Bar component is designed to render an input for the user to enter their search term and then return multi tabled search from Recipients, Campaigns and Templates.
Expand Down
5 changes: 4 additions & 1 deletion src/components/Alert/Alert.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { Canvas, ArgTypes } from '@storybook/addon-docs';
import { Canvas, ArgTypes, Meta } from '@storybook/addon-docs';
import * as AlertStories from './Alert.stories';
import { Primary } from './Alert.stories';

<Meta of={AlertStories} />

# Alert

Alerts are a flexible component used to display highlighted content prominently.
Expand Down
5 changes: 4 additions & 1 deletion src/components/Badge/Badge.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import * as BadgeStories from './Badge.stories';
import { AllBadges } from './Badge.stories';
import { BadgeVariant } from './constants';

<Meta of={BadgeStories} />

# Badge

<Canvas of={AllBadges} />
Expand Down
5 changes: 4 additions & 1 deletion src/components/Breadcrumb/Breadcrumb.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import * as BreadcrumbStories from './Breadcrumb.stories';
import { Primary } from './Breadcrumb.stories';

<Meta of={BreadcrumbStories} />

# Breadcrumb

A breadcrumb component renders a list of links to go back up the navigation hierarchy from where the user currently is back to the home page.
Expand Down
5 changes: 4 additions & 1 deletion src/components/Button/Button.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import * as ButtonStories from './Button.stories';
import { Primary } from './Button.stories';

<Meta of={ButtonStories} />

# Button

Buttons are styled semantic buttons that will handle all of the appropriate button states.
Expand Down
5 changes: 4 additions & 1 deletion src/components/Calendar/Calendar.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import * as CalendarStories from './Calendar.stories';
import { Primary } from './Calendar.stories';

<Meta of={CalendarStories} />

# Calendar

Calendar is a stylized, accessible component for seeing a calendar and choosing a date.
Expand Down
5 changes: 4 additions & 1 deletion src/components/Card/Card.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import { Primary } from './Card.stories';
import * as CardStories from './Card.stories';

<Meta of={CardStories} />

# Card

Expand Down
5 changes: 4 additions & 1 deletion src/components/Checkbox/Checkbox.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import { Single } from './Checkbox.stories';
import * as CheckboxStories from './Checkbox.stories';

<Meta of={CheckboxStories} />

# Checkbox

Expand Down
5 changes: 4 additions & 1 deletion src/components/Chip/Chip.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import { AllChips } from './Chip.stories';
import * as ChipStories from './Chip.stories';

<Meta of={ChipStories} />

# Chip

Expand Down
5 changes: 4 additions & 1 deletion src/components/DataTable/DataTable.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Canvas } from '@storybook/addon-docs';
import { Canvas, Meta } from '@storybook/addon-docs';
import { Primary } from './DataTable.stories';
import * as DataTableStories from './DataTable.stories';

<Meta of={DataTableStories} />

# DataTable

Expand Down
5 changes: 4 additions & 1 deletion src/components/DateInput/DateInput.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import { Primary } from './DateInput.stories';
import * as DateInputStories from './DateInput.stories';

<Meta of={DateInputStories} />

# DateInput

Expand Down
5 changes: 4 additions & 1 deletion src/components/Datepicker/Datepicker.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import { Primary } from './Datepicker.stories';
import * as DatepickerStories from './Datepicker.stories';

<Meta of={DatepickerStories} />

# Datepicker

Expand Down
5 changes: 4 additions & 1 deletion src/components/Dropdown/Dropdown.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import { WithObjectOptions } from './Dropdown.stories';
import * as DropdownStories from './Dropdown.stories';

<Meta of={DropdownStories} />

# Dropdown

Expand Down
5 changes: 4 additions & 1 deletion src/components/Dropzone/Dropzone.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import { Primary } from './Dropzone.stories';
import * as DropzoneStories from './Dropzone.stories';

<Meta of={DropzoneStories} />

# Dropzone

Expand Down
5 changes: 4 additions & 1 deletion src/components/FileUpload/FileUpload.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import { Primary } from './FileUpload.stories';
import * as FileUploadStories from './FileUpload.stories';

<Meta of={FileUploadStories} />

# File Upload 'Button'

Expand Down
5 changes: 4 additions & 1 deletion src/components/FilterContent/FilterContent.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import { Primary } from './FilterContent.stories';
import * as FilterContentStories from './FilterContent.stories';

<Meta of={FilterContentStories} />

# FilterContent

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import { Primary } from './FloatingActionButton.stories';
import * as FloatingActionButtonStories from './FloatingActionButton.stories';

<Meta of={FloatingActionButtonStories} />

# FloatingActionButton

Expand Down
5 changes: 4 additions & 1 deletion src/components/Grid/Grid.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { ArgTypes, Canvas, PRIMARY_STORY } from '@storybook/addon-docs';
import { ArgTypes, Canvas, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import { Primary } from './Grid.stories';
import * as GridStories from './Grid.stories';

<Meta of={GridStories} />

# Grid

Expand Down
5 changes: 4 additions & 1 deletion src/components/Icon/Icon.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Canvas } from '@storybook/addon-docs';
import { Canvas, Meta } from '@storybook/addon-docs';
import { Primary } from './Icon.stories';
import * as IconStories from './Icon.stories';

<Meta of={IconStories} />

# Icon

Expand Down
5 changes: 4 additions & 1 deletion src/components/IconButton/IconButton.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import { AllIconButtons, Primary } from './IconButton.stories';
import * as IconButtonStories from './IconButton.stories';

<Meta of={IconButtonStories} />

# IconButton

Expand Down
5 changes: 4 additions & 1 deletion src/components/ImageFileUpload/ImageFileUpload.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import { Default, FileSizeError } from './ImageFileUpload.stories';
import * as ImageFileUploadStories from './ImageFileUpload.stories';

<Meta of={ImageFileUploadStories} />

# Image File Upload

Expand Down
5 changes: 4 additions & 1 deletion src/components/KeyValueInput/KeyValueInput.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { ArgTypes, Canvas, PRIMARY_STORY } from '@storybook/addon-docs';
import { ArgTypes, Canvas, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import { Primary } from './KeyValueInput.stories';
import * as KeyValueInputStories from './KeyValueInput.stories';

<Meta of={KeyValueInputStories} />

# KeyValueInput

Expand Down
5 changes: 4 additions & 1 deletion src/components/Label/Label.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import { Primary } from './Label.stories';
import * as LabelStories from './Label.stories';

<Meta of={LabelStories} />

# Lob Label

Expand Down
5 changes: 4 additions & 1 deletion src/components/LegacyModal/LegacyModal.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import { Primary } from './LegacyModal.stories';
import * as LegacyModalStories from './LegacyModal.stories';

<Meta of={LegacyModalStories} />

# Modal

Expand Down
5 changes: 4 additions & 1 deletion src/components/Link/Link.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import { DefaultLink } from './Link.stories';
import * as LinkStories from './Link.stories';

<Meta of={LinkStories} />

# Link

Expand Down
5 changes: 4 additions & 1 deletion src/components/LoadingIndicator/LoadingIndicator.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import { Primary } from './LoadingIndicator.stories';
import * as LoadingIndicatorStories from './LoadingIndicator.stories';

<Meta of={LoadingIndicatorStories} />

# LoadingIndicator

Expand Down
5 changes: 4 additions & 1 deletion src/components/MainNavigation/MainNavigation.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import {
FullNavigation,
Item,
ItemWithChildItems
} from './MainNavigation.stories';
import * as MainNavigationStories from './MainNavigation.stories';

<Meta of={MainNavigationStories} />

# MainNavigation

Expand Down
5 changes: 4 additions & 1 deletion src/components/MegaButton/MegaButton.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import { MegaText, WithImage, SmallText } from './MegaButton.stories';
import * as MegaButtonStories from './MegaButton.stories';

<Meta of={MegaButtonStories} />

# MegaButton

Expand Down
5 changes: 4 additions & 1 deletion src/components/Menu/Menu.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import { Primary } from './Menu.stories';
import * as MenuStories from './Menu.stories';

<Meta of={MenuStories} />

# Menu

Expand Down
5 changes: 4 additions & 1 deletion src/components/Modal/Modal.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs';
import { Canvas, ArgTypes, PRIMARY_STORY, Meta } from '@storybook/addon-docs';
import { Primary } from './Modal.stories';
import * as ModalStories from './Modal.stories';

<Meta of={ModalStories} />

# Modal

Expand Down
Loading
Loading