Skip to content

Commit

Permalink
docs: 🔥 Remove Storybook status badge (#709)
Browse files Browse the repository at this point in the history
mimarz authored Aug 10, 2023
1 parent 037a911 commit e02ce9a
Showing 33 changed files with 6 additions and 431 deletions.
1 change: 0 additions & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -6,7 +6,6 @@ const config: StorybookConfig = {
'@storybook/addon-a11y',
'@storybook/addon-links',
'@storybook/addon-interactions',
'@etchteam/storybook-addon-status',
'@storybook/addon-essentials',
'@etchteam/storybook-addon-css-variables-theme',
{
14 changes: 0 additions & 14 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -34,20 +34,6 @@ const viewports: Viewport[] = metadata.tokenSetOrder
const preview: Preview = {
decorators: [cssVariablesTheme],
parameters: {
status: {
statuses: {
new: {
background: '#0000ff',
color: '#ffffff',
description: 'This component is stable and released',
},
beta: {
background: '#6544c5',
color: '#ffffff',
description: 'This component is stable and released',
},
},
},
cssVariables: {
files: {
Altinn: altinn,
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -42,7 +42,6 @@
"@digdir/design-system-react": "*",
"@digdir/design-system-tokens": "*",
"@etchteam/storybook-addon-css-variables-theme": "^1.5.1",
"@etchteam/storybook-addon-status": "^4.2.2",
"@next/eslint-plugin-next": "^13.2.4",
"@rollup/plugin-commonjs": "^22.0.2",
"@rollup/plugin-image": "^3.0.1",
4 changes: 0 additions & 4 deletions packages/react/src/components/Accordion/Accordion.stories.tsx
Original file line number Diff line number Diff line change
@@ -7,10 +7,6 @@ export default {
title: 'Kjernekomponenter/Accordion',
component: Accordion,
parameters: {
status: {
type: 'beta',
url: 'http://www.url.com/status',
},
layout: 'padded',
},
} as Meta;
4 changes: 0 additions & 4 deletions packages/react/src/components/Alert/Alert.stories.tsx
Original file line number Diff line number Diff line change
@@ -12,10 +12,6 @@ export default {
title: 'Kjernekomponenter/Alert',
component: Alert,
parameters: {
status: {
type: 'beta',
url: 'http://www.url.com/status',
},
layout: 'padded',
},
} as Meta;
6 changes: 0 additions & 6 deletions packages/react/src/components/Button/Button.stories.tsx
Original file line number Diff line number Diff line change
@@ -13,12 +13,6 @@ type Story = StoryObj<typeof Button>;
const meta: Meta<typeof Button> = {
title: 'Kjernekomponenter/Button',
component: Button,
parameters: {
status: {
type: 'beta',
url: 'http://www.url.com/status',
},
},
};

export default meta;
6 changes: 0 additions & 6 deletions packages/react/src/components/Checkbox/Checkbox.stories.tsx
Original file line number Diff line number Diff line change
@@ -8,12 +8,6 @@ type Story = StoryObj<typeof Checkbox>;
export default {
title: 'Utgår/Checkbox',
component: Checkbox,
parameters: {
status: {
type: 'beta',
url: 'http://www.url.com/status',
},
},
} as Meta;

export const Preview: Story = {
Original file line number Diff line number Diff line change
@@ -7,12 +7,6 @@ import { ArgsTable } from '@storybook/addon-docs';
<Meta
title='Utgår/CheckboxGroup'
component={CheckboxGroup}
parameters={{
status: {
type: 'beta', // 'beta' | 'stable' | 'deprecated' | 'releaseCandidate'
url: 'http://www.url.com/status',
},
}}
argTypes={{
items: {
description: 'Liste over valg som skal vises.',
6 changes: 0 additions & 6 deletions packages/react/src/components/Chip/Chip.stories.tsx
Original file line number Diff line number Diff line change
@@ -7,12 +7,6 @@ type Story = StoryObj<typeof Chip.Toggle>;
export default {
title: 'Kjernekomponenter/Chip',
component: Chip.Toggle,
parameters: {
status: {
type: 'beta',
url: 'http://www.url.com/status',
},
},
} as Meta;

export const Preview: Story = {
6 changes: 0 additions & 6 deletions packages/react/src/components/FieldSet/FieldSet.stories.tsx
Original file line number Diff line number Diff line change
@@ -8,12 +8,6 @@ import { FieldSet } from './FieldSet';
export default {
title: 'Utgår/FieldSet',
component: FieldSet,
parameters: {
status: {
type: 'beta',
url: 'http://www.url.com/status',
},
},
} as Meta;

export const Eksempel: StoryFn<typeof FieldSet> = (args) => (
6 changes: 0 additions & 6 deletions packages/react/src/components/HelpText/HelpText.stories.mdx
Original file line number Diff line number Diff line change
@@ -7,12 +7,6 @@ import { ArgsTable } from '@storybook/addon-docs';
<Meta
title='Kjernekomponenter/HelpText'
component={HelpText}
parameters={{
status: {
type: 'beta', // 'beta' | 'stable' | 'deprecated' | 'releaseCandidate'
url: 'http://www.url.com/status',
},
}}
argTypes={{
children: {
description: 'Innholdet som vises i hjelpeteksten.',
6 changes: 0 additions & 6 deletions packages/react/src/components/List/List.stories.tsx
Original file line number Diff line number Diff line change
@@ -7,12 +7,6 @@ import { List, ListItem } from '.';
const meta: Meta<typeof List> = {
title: 'Kjernekomponenter/List',
component: List,
parameters: {
status: {
type: 'beta',
url: 'http://www.url.com/status',
},
},
args: {
// Just to make the default option pre-selected i <Controls />
borderStyle: 'solid',
Original file line number Diff line number Diff line change
@@ -7,10 +7,6 @@ export default {
title: 'Kjernekomponenter/NativeSelect',
component: NativeSelect,
parameters: {
status: {
type: 'beta',
url: 'http://www.url.com/status',
},
layout: 'padded',
},
} as Meta;
Original file line number Diff line number Diff line change
@@ -6,12 +6,6 @@ import { Pagination } from '.';
export default {
title: 'Kjernekomponenter/Pagination',
component: Pagination,
parameters: {
status: {
type: 'beta',
url: 'http://www.url.com/status',
},
},
} as Meta;

export const Preview: StoryFn<typeof Pagination> = (args) => {
9 changes: 2 additions & 7 deletions packages/react/src/components/Popover/Popover.stories.mdx
Original file line number Diff line number Diff line change
@@ -9,13 +9,8 @@ import { ArgsTable } from '@storybook/addon-docs';
<Meta
title='Kjernekomponenter/Popover'
component={Popover}
parameters={{
status: {
type: 'beta', // 'beta' | 'stable' | 'deprecated' | 'releaseCandidate'
url: 'http://www.url.com/status',
},
}}
argTypes={{

argTypes={{
trigger: {
description:
'En `ReactNode` som brukes til å åpne og lukke popoveren. Fungerer også som ankringspunkt til popoverens posisjon. Denne komponenten må ha en `ref`. Dette er en egenskap som finnes på alle primitive React-komponenter, men dersom det er en egendefinert komponent, må man bruke `React.forwardRef` i definisjonen av komponenten til å sette `ref`-egenskapen på riktig plass.',
Original file line number Diff line number Diff line change
@@ -7,12 +7,6 @@ import { ArgsTable } from '@storybook/addon-docs';
<Meta
title='Utgår/RadioButton'
component={RadioButton}
parameters={{
status: {
type: 'beta', // 'beta' | 'stable' | 'deprecated' | 'releaseCandidate'
url: 'http://www.url.com/status',
},
}}
argTypes={{
checked: {
description: 'Trykker inn radioknappen.',
Original file line number Diff line number Diff line change
@@ -7,12 +7,6 @@ import { ArgsTable } from '@storybook/addon-docs';
<Meta
title='Utgår/RadioGroup'
component={RadioGroup}
parameters={{
status: {
type: 'beta', // 'beta' | 'stable' | 'deprecated' | 'releaseCandidate'
url: 'http://www.url.com/status',
},
}}
argTypes={{
items: {
description: 'Liste over valg som skal vises.',
6 changes: 0 additions & 6 deletions packages/react/src/components/Select/MultiSelect.stories.mdx
Original file line number Diff line number Diff line change
@@ -6,12 +6,6 @@ import { ArgsTable } from '@storybook/addon-docs';
<Meta
title='Kjernekomponenter/Select/Flervalgsmeny'
component={Select}
parameters={{
status: {
type: 'beta', // 'beta' | 'stable' | 'deprecated' | 'releaseCandidate'
url: 'http://www.url.com/status',
},
}}
argTypes={{
multiple: {
description:
6 changes: 0 additions & 6 deletions packages/react/src/components/Select/SingleSelect.stories.mdx
Original file line number Diff line number Diff line change
@@ -6,12 +6,6 @@ import { ArgsTable } from '@storybook/addon-docs';
<Meta
title='Kjernekomponenter/Select/Enkel'
component={Select}
parameters={{
status: {
type: 'beta', // 'beta' | 'stable' | 'deprecated' | 'releaseCandidate'
url: 'http://www.url.com/status',
},
}}
argTypes={{
label: {
description: 'Tekst som vises over feltet.',
6 changes: 0 additions & 6 deletions packages/react/src/components/Spinner/Spinner.stories.mdx
Original file line number Diff line number Diff line change
@@ -6,12 +6,6 @@ import { ArgsTable } from '@storybook/addon-docs';
<Meta
title='Kjernekomponenter/Spinner'
component={Spinner}
parameters={{
status: {
type: 'beta', // 'beta' | 'stable' | 'deprecated' | 'releaseCandidate'
url: 'http://www.url.com/status',
},
}}
argTypes={{
size: {
control: {
Original file line number Diff line number Diff line change
@@ -7,12 +7,6 @@ import classes from './Table.stories.module.css';
<Meta
title='Kjernekomponenter/Table/ResponsiveTable'
component={ResponsiveTable}
parameters={{
status: {
type: 'beta', // 'beta' | 'stable' | 'deprecated' | 'releaseCandidate'
url: 'http://www.url.com/status',
},
}}
/>

export const Template = () => (
6 changes: 0 additions & 6 deletions packages/react/src/components/Table/Table.stories.mdx
Original file line number Diff line number Diff line change
@@ -14,12 +14,6 @@ import classes from './Table.stories.module.css';
<Meta
title='Kjernekomponenter/Table'
component={Table}
parameters={{
status: {
type: 'beta', // 'beta' | 'stable' | 'deprecated' | 'releaseCandidate'
url: 'http://www.url.com/status',
},
}}
/>

export const Template = (args) => (
6 changes: 0 additions & 6 deletions packages/react/src/components/Tabs/Tabs.stories.tsx
Original file line number Diff line number Diff line change
@@ -6,12 +6,6 @@ import { Tabs } from './Tabs';
export default {
title: 'Kjernekomponenter/Tabs',
component: Tabs,
parameters: {
status: {
type: 'beta',
url: 'http://www.url.com/status',
},
},
} as Meta;

export const Eksempel: StoryFn<typeof Tabs> = (args) => <Tabs {...args} />;
6 changes: 0 additions & 6 deletions packages/react/src/components/Tag/Tag.stories.tsx
Original file line number Diff line number Diff line change
@@ -11,12 +11,6 @@ type Story = StoryObj<typeof Tag>;
export default {
title: 'Kjernekomponenter/Tag',
component: Tag,
parameters: {
status: {
type: 'beta',
url: 'http://www.url.com/status',
},
},
decorators: [
(Story) => (
<Stack style={{ justifyContent: 'start' }}>
6 changes: 0 additions & 6 deletions packages/react/src/components/TextArea/TextArea.stories.tsx
Original file line number Diff line number Diff line change
@@ -11,12 +11,6 @@ type Story = StoryObj<typeof TextArea>;
const meta: Meta = {
title: 'Kjernekomponenter/TextArea',
component: TextArea,
parameters: {
status: {
type: 'beta',
url: 'http://www.url.com/status',
},
},
};

export default meta;
6 changes: 0 additions & 6 deletions packages/react/src/components/TextField/TextField.stories.tsx
Original file line number Diff line number Diff line change
@@ -11,12 +11,6 @@ type Story = StoryObj<typeof TextField>;
const meta: Meta<typeof TextField> = {
title: 'Kjernekomponenter/TextField',
component: TextField,
parameters: {
status: {
type: 'beta',
url: 'http://www.url.com/status',
},
},
};

export default meta;
Original file line number Diff line number Diff line change
@@ -5,12 +5,6 @@ import { ToggleButtonGroup } from './ToggleButtonGroup';
<Meta
title='Kjernekomponenter/ToggleButtonGroup'
component={ToggleButtonGroup}
parameters={{
status: {
type: 'beta', // 'beta' | 'stable' | 'deprecated' | 'releaseCandidate'
url: 'http://www.url.com/status',
},
}}
/>

export const defaultArgs = {
Original file line number Diff line number Diff line change
@@ -5,12 +5,6 @@ import { Paragraph, Heading, Ingress } from './';

const meta: Meta = {
title: 'Kjernekomponenter/Typography',
parameters: {
status: {
type: 'beta',
url: 'http://www.url.com/status',
},
},
};

export default meta;
Original file line number Diff line number Diff line change
@@ -7,12 +7,6 @@ type Story = StoryObj<typeof Checkbox>;
export default {
title: 'ikke utgitt/Checkbox',
component: Checkbox,
parameters: {
status: {
type: 'beta',
url: 'http://www.url.com/status',
},
},
} as Meta;

export const Preview: Story = {
Original file line number Diff line number Diff line change
@@ -7,12 +7,6 @@ import { Radio } from '../';
export default {
title: 'ikke utgitt/Radio/Group',
component: Radio.Group,
parameters: {
status: {
type: 'beta',
url: 'http://www.url.com/status',
},
},
} as Meta;

export const Preview: StoryFn<typeof Radio.Group> = (args) => (
6 changes: 0 additions & 6 deletions packages/react/src/components/form/Radio/Radio.stories.tsx
Original file line number Diff line number Diff line change
@@ -7,12 +7,6 @@ type Story = StoryObj<typeof Radio>;
export default {
title: 'ikke utgitt/Radio',
component: Radio,
parameters: {
status: {
type: 'beta',
url: 'http://www.url.com/status',
},
},
} as Meta;

export const Preview: Story = {
6 changes: 0 additions & 6 deletions scripts/generate-component/fileTemplates.ts
Original file line number Diff line number Diff line change
@@ -49,12 +49,6 @@ type Story = StoryObj<typeof ${componentName}>;
export default {
title: 'Kjernekomponenter/${componentName}',
component: ${componentName},
parameters: {
status: {
type: 'beta',
url: 'http://www.url.com/status',
},
},
} as Meta;
// Simple story
250 changes: 4 additions & 246 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit e02ce9a

Please sign in to comment.