Skip to content

Commit

Permalink
removed tokens table
Browse files Browse the repository at this point in the history
  • Loading branch information
mimarz committed Apr 8, 2024
1 parent 5f6ffa0 commit 4001cb4
Show file tree
Hide file tree
Showing 14 changed files with 12 additions and 240 deletions.
119 changes: 0 additions & 119 deletions docs-components/Table/TokenTable/TokensTable.tsx

This file was deleted.

1 change: 0 additions & 1 deletion docs-components/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export { Table } from './Table/Table';
export { TokensTable } from './Table/TokenTable/TokensTable';
export {
TableCellColor,
TableCellTag,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta, Canvas, ArgTypes, Controls, Primary } from '@storybook/blocks';

import { Information, TokensTable } from '../../../../../../docs-components';
import { Information } from '../../../../../../docs-components';

import * as CheckboxStories from './Checkbox.stories';

Expand Down Expand Up @@ -73,12 +73,3 @@ Dette kan man gjøre ved å sette `label`-attributten på vanlig måte og sette
Dette gjøres ved å sette `checked`-attributten til `true` eller `false` idet `onChange`-funksjonen blir kalt.

<ArgTypes story='Normal' />

## Tokens

<TokensTable
jsonKey='component.checkbox'
componentName='checkbox'
showPreview={false}
description
/>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta, Canvas, Story, ArgTypes } from '@storybook/blocks';

import { Information, TokensTable } from '../../../../../../docs-components';
import { Information } from '../../../../../../docs-components';

import { LegacyCheckboxGroup } from './index';

Expand Down Expand Up @@ -174,12 +174,3 @@ export const Template = (args = {}) => (
## Egenskaper

<ArgTypes story='Vertikal' />

## Tokens

<TokensTable
jsonKey='component.checkbox_group'
componentName='checkbox_group'
showPreview={false}
description
/>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Meta, Canvas, Story, ArgTypes } from '@storybook/blocks';

Check warning on line 1 in packages/react-old/src/components/legacy/LegacyPopover/Popover.stories.mdx

View workflow job for this annotation

GitHub Actions / Builds, lints and tests code

There should be no empty line within import group

import { Button } from '@digdir/designsystemet-react';

Check warning on line 3 in packages/react-old/src/components/legacy/LegacyPopover/Popover.stories.mdx

View workflow job for this annotation

GitHub Actions / Builds, lints and tests code

There should be at least one empty line between import groups
import { Information, TokensTable } from '../../../../../../docs-components';
import { Information } from '../../../../../../docs-components';

import { LegacyPopover } from './index';

Expand Down Expand Up @@ -152,12 +152,3 @@ LegacyPopover er et felt som plasseres over annet innhold og kan vises og skjule
## Props

<ArgTypes story='LegacyPopover' />

## Tokens

<TokensTable
componentName='popover'
description
jsonKey='component.popover'
showPreview={false}
/>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta, Canvas, Story, ArgTypes } from '@storybook/blocks';

import { Information, TokensTable } from '../../../../../../docs-components';
import { Information } from '../../../../../../docs-components';

import { LegacyRadioButton } from './index';

Expand Down Expand Up @@ -236,12 +236,3 @@ Dette kan man gjøre ved å sette `label`-attributten på vanlig måte og sette
Dette gjøres ved å sette `checked`-attributten til `true` eller `false` idet `onChange`-funksjonen blir kalt.

<ArgTypes story='Normal' />

## Tokens

<TokensTable
jsonKey='component.radio_button'
componentName='radio_button'
showPreview={false}
description
/>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta, Canvas, Story, ArgTypes } from '@storybook/blocks';

import { Information, TokensTable } from '../../../../../../docs-components';
import { Information } from '../../../../../../docs-components';

import { LegacyRadioGroup } from './index';

Expand Down Expand Up @@ -188,12 +188,3 @@ Radioknappene kan trykkes inn ved å klikke på dem med musen.

Komponenten kan nås ved bruk av tabulatortasten, og man kan velge knapp ved bruk av piltastene.
Man kan også bruke mellomromstasten til å trykke inn den fokuserte radioknappen dersom den ikke allerede har fokus.

## Tokens

<TokensTable
jsonKey='component.radio_group'
componentName='radio_group'
showPreview={false}
description
/>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ArgTypes, Canvas, Meta, Story } from '@storybook/blocks';

import { TokensTable, Information } from '../../../../../../docs-components';
import { Information } from '../../../../../../docs-components';

import { exampleRows } from './ExampleData';
import classes from './Table.stories.module.css';
Expand Down Expand Up @@ -79,12 +79,3 @@ export const Template = () => (
## Egenskaper

<ArgTypes story='Eksempel' />

## Tokens

<TokensTable
componentName='table'
description
jsonKey='component.table'
showPreview={false}
/>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta, Canvas, Story, ArgTypes } from '@storybook/blocks';

import { Information, TokensTable } from '../../../../../../docs-components';
import { Information } from '../../../../../../docs-components';

import { LegacySelect } from './';

Expand Down Expand Up @@ -386,12 +386,3 @@ Nedtrekkslisten åpnes ved å trykke på `Enter`, `Space` eller en av de vertika
Deretter kan man navigere seg frem til ønsket alternativ ved bruk av piltastene.
Man velger så alternativer ved å bruke `Enter`- eller `Space`-tasten.
Sletteknappene (de med kryss på) nås på vanlig måte ved hjelp av tabulatortasten.

## Tokens

<TokensTable
jsonKey='component.select'
componentName='select'
showPreview={false}
description
/>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta, Canvas, Story, ArgTypes } from '@storybook/blocks';

import { Information, TokensTable } from '../../../../../../docs-components';
import { Information } from '../../../../../../docs-components';

import { LegacySelect } from './';

Expand Down Expand Up @@ -353,12 +353,3 @@ Hvis alternativet ikke er synlig, kan man rulle seg frem til det ved bruk av rul

Nedtrekkslisten åpnes ved å trykke på `Enter` eller `Space` når feltet har fokus.
Deretter kan man navigere seg frem til ønsket alternativ ved bruk av piltastene.

## Tokens

<TokensTable
jsonKey='component.select'
componentName='select'
showPreview={false}
description
/>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ArgTypes, Canvas, Meta, Story } from '@storybook/blocks';

import { TokensTable, Information } from '../../../../../../docs-components';
import { Information } from '../../../../../../docs-components';

import { exampleRows } from './ExampleData';
import classes from './Table.stories.module.css';
Expand Down Expand Up @@ -74,12 +74,3 @@ export const Template = (args) => (
## Egenskaper

<ArgTypes story='Eksempel' />

## Tokens

<TokensTable
componentName='table'
description
jsonKey='component.table'
showPreview={false}
/>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta, Canvas, Story, Primary, Controls } from '@storybook/blocks';

import { Information, TokensTable } from '../../../../../../docs-components';
import { Information } from '../../../../../../docs-components';

import * as LegacyTextAreaStories from './TextArea.stories';

Expand Down Expand Up @@ -65,12 +65,3 @@ import { LegacyTextArea } from '@digdir/design-system-react';
<Canvas>
<Story of={LegacyTextAreaStories.AntallTegnIgjenASkrive} />
</Canvas>

## Tokens

<TokensTable
jsonKey='component.textfield'
componentName='textfield'
showPreview={false}
description
/>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta, Canvas, Story, Primary, Controls } from '@storybook/blocks';

import { Information, TokensTable } from '../../../../../../docs-components';
import { Information } from '../../../../../../docs-components';

import * as TextFieldStories from './TextField.stories';

Expand Down Expand Up @@ -73,12 +73,3 @@ Egenskapen `formatting` kan brukes til å gi tekstfeltet spesielle formater, som
<Canvas>
<Story of={TextFieldStories.AntallTegnIgjenASkrive} />
</Canvas>

## Tokens

<TokensTable
jsonKey='component.textfield'
componentName='textfield'
showPreview={false}
description
/>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ArgTypes, Canvas, Meta, Story } from '@storybook/blocks';

import { TokensTable, Information } from '../../../../../../docs-components';
import { Information } from '../../../../../../docs-components';

import { LegacyToggleButtonGroup } from '.';

Expand Down Expand Up @@ -42,12 +42,3 @@ export const Template = (args = {}) => (
## Egenskaper

<ArgTypes story='Eksempel' />

## Tokens

<TokensTable
componentName='toggle_button'
description
jsonKey='component.toggle_button'
showPreview={false}
/>

0 comments on commit 4001cb4

Please sign in to comment.