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
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Tech Stories
---

Update Storybook to 8.0.5 ([#10336](https://github.com/linode/manager/pull/10336))
3 changes: 2 additions & 1 deletion packages/manager/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const config: StorybookConfig = {
name: '@storybook/react-vite',
options: {},
},
features: { storyStoreV7: true },
typescript: {
reactDocgenTypescriptOptions: {
// makes union prop types like variant and size appear as select controls
Expand All @@ -33,6 +32,8 @@ const config: StorybookConfig = {
? !/node_modules\/(?!@mui)/.test(prop.parent.fileName)
: true,
},

reactDocgen: 'react-docgen-typescript',
},
docs: {
autodocs: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/manager/.storybook/manager.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { create } from '@storybook/theming';
import { addons } from '@storybook/addons';
import { addons } from '@storybook/manager-api';
import Logo from '../src/assets/logo/akamai-logo-color.svg';

const theme = create({
Expand Down
1 change: 0 additions & 1 deletion packages/manager/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ const preview: Preview = {
}),
],
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
backgrounds: {
grid: {
disable: true,
Expand Down
6 changes: 6 additions & 0 deletions packages/manager/.storybook/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';

export default defineConfig({
plugins: [react()],
});
31 changes: 16 additions & 15 deletions packages/manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,19 @@
},
"devDependencies": {
"@linode/eslint-plugin-cloud-manager": "^0.0.3",
"@storybook/addon-actions": "^7.6.17",
"@storybook/addon-controls": "^7.6.17",
"@storybook/addon-docs": "^7.6.17",
"@storybook/addon-mdx-gfm": "^7.6.17",
"@storybook/addon-measure": "^7.6.17",
"@storybook/addon-storysource": "^7.6.17",
"@storybook/addon-viewport": "^7.6.17",
"@storybook/addons": "^7.6.17",
"@storybook/client-api": "^7.6.17",
"@storybook/react": "^7.6.17",
"@storybook/react-vite": "^7.6.17",
"@storybook/theming": "^7.6.17",
"@storybook/addon-actions": "^8.0.5",
"@storybook/addon-controls": "^8.0.5",
"@storybook/addon-docs": "^8.0.5",
"@storybook/addon-mdx-gfm": "^8.0.5",
"@storybook/addon-measure": "^8.0.5",
"@storybook/addon-storysource": "^8.0.5",
"@storybook/addon-viewport": "^8.0.5",
"@storybook/blocks": "^8.0.5",
"@storybook/manager-api": "^8.0.5",
"@storybook/preview-api": "^8.0.5",
"@storybook/react": "^8.0.5",
"@storybook/react-vite": "^8.0.5",
"@storybook/theming": "^8.0.5",
"@swc/core": "^1.3.1",
"@testing-library/cypress": "^10.0.0",
"@testing-library/jest-dom": "~6.4.2",
Expand Down Expand Up @@ -184,7 +185,7 @@
"eslint-plugin-react-hooks": "^3.0.0",
"eslint-plugin-scanjs-rules": "^0.2.1",
"eslint-plugin-sonarjs": "^0.5.0",
"eslint-plugin-storybook": "^0.6.15",
"eslint-plugin-storybook": "^0.8.0",
"eslint-plugin-testing-library": "^3.1.2",
"eslint-plugin-xss": "^0.1.10",
"factory.ts": "^0.5.1",
Expand All @@ -200,8 +201,8 @@
"reselect-tools": "^0.0.7",
"serve": "^14.0.1",
"simple-git": "^3.19.0",
"storybook": "^7.6.17",
"storybook-dark-mode": "^3.0.3",
"storybook": "^8.0.5",
"storybook-dark-mode": "^4.0.1",
"ts-node": "^10.9.2",
"vite": "^5.0.12",
"vite-plugin-svgr": "^3.2.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { action } from '@storybook/addon-actions';
import { useArgs } from '@storybook/client-api';
import { useArgs } from '@storybook/preview-api';
import * as React from 'react';

import { EditableText } from './EditableText';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import MenuIcon from '@mui/icons-material/Menu';
import { useArgs } from '@storybook/client-api';
import { useArgs } from '@storybook/preview-api';
import * as React from 'react';

import { Box } from 'src/components/Box';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useArgs } from '@storybook/client-api';
import { useArgs } from '@storybook/preview-api';
import { Meta, StoryObj } from '@storybook/react';
import React from 'react';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useArgs } from '@storybook/client-api';
import { useArgs } from '@storybook/preview-api';
import { Meta, StoryObj } from '@storybook/react';
import React from 'react';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Meta } from '@storybook/addon-docs';
import { Meta } from '@storybook/blocks';

<Meta title="Intro/Welcome" />

# Welcome

_The mission of **Linode** is to accelerate innovation by making cloud computing simple, affordable, and accessible to all._
The mission of **Linode** is to accelerate innovation by making cloud computing simple, affordable, and accessible to all.

- Linode Storybook is a resource for the UI, behavior, code, and guidelines for use of all components in the Cloud Manager.
- It is the single source truth for approved components and a living document that will incorporate new components and refinements for existing components.
* Linode Storybook is a resource for the UI, behavior, code, and guidelines for use of all components in the Cloud Manager.
* It is the single source truth for approved components and a living document that will incorporate new components and refinements for existing components.

## Contributing to the Design System

Expand Down
Loading