From 4f06c849ea117ae46a0ec6abdd24d0dff0400c19 Mon Sep 17 00:00:00 2001 From: Nikki Ysendoorn Date: Tue, 12 Mar 2024 10:24:16 +0100 Subject: [PATCH] :fire: [#48] remove src to start over --- .../formio/columns/columns.component.tsx | 60 --- .../formio/columns/columns.stories.tsx | 45 --- src/components/formio/columns/index.ts | 1 - .../formio/content/content.component.tsx | 31 -- .../formio/content/content.stories.tsx | 31 -- src/components/formio/content/index.ts | 1 - src/components/formio/index.ts | 3 - src/components/formio/textfield/index.ts | 1 - .../formio/textfield/textfield.component.tsx | 70 ---- .../formio/textfield/textfield.stories.tsx | 40 -- src/components/index.ts | 2 - .../utils/charcount/charcount.component.tsx | 14 - .../utils/charcount/charcount.stories.tsx | 21 - src/components/utils/charcount/index.ts | 1 - .../utils/component/component.component.tsx | 11 - .../utils/component/component.stories.tsx | 21 - src/components/utils/component/index.ts | 1 - .../description/description.component.tsx | 14 - .../utils/description/description.stories.tsx | 21 - src/components/utils/description/index.ts | 1 - .../utils/errors/errors.component.tsx | 30 -- .../utils/errors/errors.stories.tsx | 24 -- src/components/utils/errors/index.ts | 1 - src/components/utils/index.ts | 5 - src/components/utils/label/index.ts | 1 - .../utils/label/label.component.tsx | 20 - src/components/utils/label/label.stories.tsx | 21 - src/fixtures/formio/formio-columns.ts | 88 ----- src/fixtures/formio/formio-example.ts | 50 --- src/fixtures/formio/formio-length.ts | 15 - src/fixtures/formio/formio-pattern.ts | 15 - src/fixtures/formio/formio-required.ts | 15 - src/fixtures/formio/index.ts | 5 - src/fixtures/index.ts | 1 - src/index.tsx | 3 - src/lib/format/index.ts | 1 - src/lib/format/placeholder.ts | 7 - src/lib/renderer/index.ts | 1 - src/lib/renderer/renderer.stories.tsx | 367 ------------------ src/lib/renderer/renderer.tsx | 221 ----------- src/lib/validation/index.ts | 3 - src/lib/validation/validate.ts | 193 --------- src/lib/validation/validationerror.ts | 10 - src/lib/validation/validators/index.ts | 4 - src/lib/validation/validators/maxlength.ts | 26 -- src/lib/validation/validators/minlength.ts | 26 -- src/lib/validation/validators/pattern.ts | 25 -- src/lib/validation/validators/required.ts | 25 -- .../custom-component.stories.tsx | 102 ----- src/tests/form/form-compatibility.stories.tsx | 29 -- .../textfield-compatibility.stories.tsx | 96 ----- .../utils/compatibility-stories-factory.tsx | 21 - src/tests/utils/decorators.tsx | 18 - src/tests/utils/delay.ts | 16 - .../validation-compatibility.stories.tsx | 128 ------ src/types/componentprops.d.ts | 17 - src/types/config.d.ts | 27 -- src/types/fixes.d.ts | 7 - src/types/form.d.ts | 7 - src/types/index.d.ts | 4 - src/types/json.d.ts | 6 - src/types/value.d.ts | 19 - 62 files changed, 2090 deletions(-) delete mode 100644 src/components/formio/columns/columns.component.tsx delete mode 100644 src/components/formio/columns/columns.stories.tsx delete mode 100644 src/components/formio/columns/index.ts delete mode 100644 src/components/formio/content/content.component.tsx delete mode 100644 src/components/formio/content/content.stories.tsx delete mode 100644 src/components/formio/content/index.ts delete mode 100644 src/components/formio/index.ts delete mode 100644 src/components/formio/textfield/index.ts delete mode 100644 src/components/formio/textfield/textfield.component.tsx delete mode 100644 src/components/formio/textfield/textfield.stories.tsx delete mode 100644 src/components/index.ts delete mode 100644 src/components/utils/charcount/charcount.component.tsx delete mode 100644 src/components/utils/charcount/charcount.stories.tsx delete mode 100644 src/components/utils/charcount/index.ts delete mode 100644 src/components/utils/component/component.component.tsx delete mode 100644 src/components/utils/component/component.stories.tsx delete mode 100644 src/components/utils/component/index.ts delete mode 100644 src/components/utils/description/description.component.tsx delete mode 100644 src/components/utils/description/description.stories.tsx delete mode 100644 src/components/utils/description/index.ts delete mode 100644 src/components/utils/errors/errors.component.tsx delete mode 100644 src/components/utils/errors/errors.stories.tsx delete mode 100644 src/components/utils/errors/index.ts delete mode 100644 src/components/utils/index.ts delete mode 100644 src/components/utils/label/index.ts delete mode 100644 src/components/utils/label/label.component.tsx delete mode 100644 src/components/utils/label/label.stories.tsx delete mode 100644 src/fixtures/formio/formio-columns.ts delete mode 100644 src/fixtures/formio/formio-example.ts delete mode 100644 src/fixtures/formio/formio-length.ts delete mode 100644 src/fixtures/formio/formio-pattern.ts delete mode 100644 src/fixtures/formio/formio-required.ts delete mode 100644 src/fixtures/formio/index.ts delete mode 100644 src/fixtures/index.ts delete mode 100644 src/index.tsx delete mode 100644 src/lib/format/index.ts delete mode 100644 src/lib/format/placeholder.ts delete mode 100644 src/lib/renderer/index.ts delete mode 100644 src/lib/renderer/renderer.stories.tsx delete mode 100644 src/lib/renderer/renderer.tsx delete mode 100644 src/lib/validation/index.ts delete mode 100644 src/lib/validation/validate.ts delete mode 100644 src/lib/validation/validationerror.ts delete mode 100644 src/lib/validation/validators/index.ts delete mode 100644 src/lib/validation/validators/maxlength.ts delete mode 100644 src/lib/validation/validators/minlength.ts delete mode 100644 src/lib/validation/validators/pattern.ts delete mode 100644 src/lib/validation/validators/required.ts delete mode 100644 src/tests/custom-component/custom-component.stories.tsx delete mode 100644 src/tests/form/form-compatibility.stories.tsx delete mode 100644 src/tests/textfield/textfield-compatibility.stories.tsx delete mode 100644 src/tests/utils/compatibility-stories-factory.tsx delete mode 100644 src/tests/utils/decorators.tsx delete mode 100644 src/tests/utils/delay.ts delete mode 100644 src/tests/validation/validation-compatibility.stories.tsx delete mode 100644 src/types/componentprops.d.ts delete mode 100644 src/types/config.d.ts delete mode 100644 src/types/fixes.d.ts delete mode 100644 src/types/form.d.ts delete mode 100644 src/types/index.d.ts delete mode 100644 src/types/json.d.ts delete mode 100644 src/types/value.d.ts diff --git a/src/components/formio/columns/columns.component.tsx b/src/components/formio/columns/columns.component.tsx deleted file mode 100644 index 90e1cc4..0000000 --- a/src/components/formio/columns/columns.component.tsx +++ /dev/null @@ -1,60 +0,0 @@ -import {Component} from '@components/utils'; -import {IComponentProps} from '@types'; -import clsx from 'clsx'; -import {ComponentSchema} from 'formiojs'; -import React from 'react'; - -export interface IColumnsComponent extends ComponentSchema { - type: 'columns'; - columns: IFormioColumn[]; -} - -export interface IColumnsProps extends IComponentProps { - component: IColumnsComponent; -} - -/** - * This component can be used for grouping other components, like Text Field, Text Area, Checkbox - * etc., into configurable columns. It might be useful if you want to display more than one - * component in one line. - */ -export const Columns = (componentProps: IColumnsProps): React.ReactElement => { - const {children} = componentProps; - const className = clsx(`of-${componentProps.component.type}`); - - return ( - -
{children}
-
- ); -}; - -type ColumnSize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12; - -export interface IFormioColumn { - components: ComponentSchema[]; - size: ColumnSize; - sizeMobile?: ColumnSize; -} - -type IFormioColumnComponentSchema = IFormioColumn & ComponentSchema; - -export interface IColumnComponent extends IFormioColumnComponentSchema { - type: 'column'; -} - -export interface IColumnProps extends IComponentProps { - component: IColumnComponent; -} - -/** - * Not actually a component but an extension of `IFormioColumn` with a fixed type "column" allowing - * it to be picked up by the renderer. This component is automatically generated for each `columns` - * entry in a Form.io component. - */ -export const Column = (columnProps: IColumnProps): React.ReactElement => { - const {children} = columnProps; - const className = clsx(`of-column`); - - return
{children}
; -}; diff --git a/src/components/formio/columns/columns.stories.tsx b/src/components/formio/columns/columns.stories.tsx deleted file mode 100644 index c1ef0bd..0000000 --- a/src/components/formio/columns/columns.stories.tsx +++ /dev/null @@ -1,45 +0,0 @@ -import {Columns} from '@components'; -import {RenderComponent} from '@lib/renderer'; -import {expect} from '@storybook/jest'; -import type {ComponentStory, Meta} from '@storybook/react'; -import {within} from '@storybook/testing-library'; - -import {FormikDecorator} from '../../../tests/utils/decorators'; - -const meta: Meta = { - title: 'Components / Formio / Columns', - component: Columns, - decorators: [], - parameters: {}, -}; -export default meta; - -export const columns: ComponentStory = args => ( - -); -columns.args = { - component: { - key: 'foo', - type: 'columns', - columns: [ - { - key: 'foo.foo', - type: 'column', - size: 9, - components: [{key: 'foo.foo.foo', type: 'content', html: 'Left column.'}], - }, - { - key: 'foo.bar', - type: 'column', - size: 3, - components: [{key: 'foo.bar.bar', type: 'content', html: 'Right column.'}], - }, - ], - }, -}; -columns.play = async ({canvasElement}) => { - const canvas = within(canvasElement); - expect(await canvas.findByText('Left column.')).toBeVisible(); - expect(await canvas.findByText('Right column.')).toBeVisible(); -}; -columns.decorators = [FormikDecorator]; diff --git a/src/components/formio/columns/index.ts b/src/components/formio/columns/index.ts deleted file mode 100644 index 19684bc..0000000 --- a/src/components/formio/columns/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './columns.component'; diff --git a/src/components/formio/content/content.component.tsx b/src/components/formio/content/content.component.tsx deleted file mode 100644 index 2b73bba..0000000 --- a/src/components/formio/content/content.component.tsx +++ /dev/null @@ -1,31 +0,0 @@ -import {IComponentProps} from '@types'; -import clsx from 'clsx'; -import {ComponentSchema} from 'formiojs'; -import React from 'react'; - -export interface IContentComponent extends ComponentSchema { - html: string; - type: 'content'; -} - -export interface IContentProps extends IComponentProps { - component: IContentComponent; -} - -/** - * A Content component may be added to a form to provide non-field information. For example, if you - * need instructions at the top of a form that are for display only, use the Content component. The - * Content component value is not submitted back to the server. - * WARNING: HTML is passed into dangerouslySetInnerHTML prop. - */ -export const Content = (contentProps: IContentProps): React.ReactElement => { - const {component, children} = contentProps; - const className = clsx(`of-${contentProps.component.type}`); - - return ( -
-
- {children} -
- ); -}; diff --git a/src/components/formio/content/content.stories.tsx b/src/components/formio/content/content.stories.tsx deleted file mode 100644 index 0266961..0000000 --- a/src/components/formio/content/content.stories.tsx +++ /dev/null @@ -1,31 +0,0 @@ -import {Content} from '@components'; -import {RenderComponent} from '@lib/renderer'; -import {expect} from '@storybook/jest'; -import type {ComponentStory, Meta} from '@storybook/react'; -import {within} from '@storybook/testing-library'; - -import {FormikDecorator} from '../../../tests/utils/decorators'; - -const meta: Meta = { - title: 'Components / Formio / Content', - component: Content, - decorators: [], - parameters: {}, -}; -export default meta; - -export const content: ComponentStory = args => ( - -); -content.args = { - component: { - key: 'foo', - type: 'content', - html: 'The quick brown fox jumps over the lazy dog.', - }, -}; -content.play = async ({canvasElement}) => { - const canvas = within(canvasElement); - expect(await canvas.findByText('quick')).toBeVisible(); -}; -content.decorators = [FormikDecorator]; diff --git a/src/components/formio/content/index.ts b/src/components/formio/content/index.ts deleted file mode 100644 index f35e396..0000000 --- a/src/components/formio/content/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './content.component'; diff --git a/src/components/formio/index.ts b/src/components/formio/index.ts deleted file mode 100644 index 7da67a3..0000000 --- a/src/components/formio/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './columns'; -export * from './content'; -export * from './textfield'; diff --git a/src/components/formio/textfield/index.ts b/src/components/formio/textfield/index.ts deleted file mode 100644 index bb6c156..0000000 --- a/src/components/formio/textfield/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './textfield.component'; diff --git a/src/components/formio/textfield/textfield.component.tsx b/src/components/formio/textfield/textfield.component.tsx deleted file mode 100644 index 0bdd46e..0000000 --- a/src/components/formio/textfield/textfield.component.tsx +++ /dev/null @@ -1,70 +0,0 @@ -import {CharCount, Component, Description, Errors, Label} from '@components/utils'; -import {IComponentProps} from '@types'; -import clsx from 'clsx'; -import {ComponentSchema} from 'formiojs'; -import React, {useState} from 'react'; - -export interface ITextFieldComponent extends ComponentSchema { - id: string; - inputMask: string; - key: string; - label: string; - mask: string; - showCharCount: boolean; - type: 'textfield'; -} - -// TODO: replace with @open-formulieren/open-forms-types TextFieldSchema type when its available -export interface ITextFieldProps extends IComponentProps { - component: ITextFieldComponent; - value: string; -} - -/** - * A Text Field can be used for short and general text input. There are options to define input - * masks and validations, allowing users to mold information into desired formats. - */ -export const TextField: React.FC = ({callbacks, component, value, errors}) => { - const {onChange, ..._callbacks} = callbacks; - const [pristineState, setPristineState] = useState(true); - const inputClassName = clsx(`of-${component.type}`); - const componentId = `${component.id}-${component.key}`; - - const inputAttrs = { - disabled: component.disabled, - id: componentId, - multiple: component.multiple, - name: component.key, - pattern: component.validate?.pattern || undefined, - placeholder: component.placeholder || component.mask || component.inputMask || undefined, - required: component.validate?.required, - ...component.widget, // TODO: Check if component.hidden should be used manually or even component.inputType. - }; - - /** - * @param {React.FormEvent} event - */ - const _onChange = (event: React.FormEvent) => { - setPristineState(false); - onChange && onChange(event); - }; - - return ( - - - ); -}; diff --git a/src/components/formio/textfield/textfield.stories.tsx b/src/components/formio/textfield/textfield.stories.tsx deleted file mode 100644 index 5d6090c..0000000 --- a/src/components/formio/textfield/textfield.stories.tsx +++ /dev/null @@ -1,40 +0,0 @@ -import {TextField} from '@components'; -import {RenderComponent} from '@lib/renderer'; -import {expect} from '@storybook/jest'; -import type {ComponentStory, Meta} from '@storybook/react'; -import {userEvent, within} from '@storybook/testing-library'; - -import {FormikDecorator} from '../../../tests/utils/decorators'; - -const meta: Meta = { - title: 'Components / Formio / Textfield', - component: TextField, - decorators: [], - parameters: {}, -}; -export default meta; - -export const textfield: ComponentStory = args => ( - -); -textfield.args = { - component: { - description: 'Enter your first name', - id: 'id', - inputMask: '', - key: 'firstName', - label: 'first name', - mask: '', - showCharCount: true, - type: 'textfield', - }, -}; -textfield.play = async ({canvasElement}) => { - const canvas = within(canvasElement); - const input = canvas.getByLabelText('first name'); - expect(await canvas.findByText('Enter your first name')).toBeVisible(); - expect(canvas.queryByText('0 characters')).toBeNull(); - await userEvent.type(input, 'The quick brown fox jumps over the lazy dog.', {delay: 10}); - expect(await canvas.findByText('44 characters')).toBeVisible(); -}; -textfield.decorators = [FormikDecorator]; diff --git a/src/components/index.ts b/src/components/index.ts deleted file mode 100644 index 13bcead..0000000 --- a/src/components/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './formio'; -export * from './utils'; diff --git a/src/components/utils/charcount/charcount.component.tsx b/src/components/utils/charcount/charcount.component.tsx deleted file mode 100644 index 2836c70..0000000 --- a/src/components/utils/charcount/charcount.component.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import clsx from 'clsx'; -import React from 'react'; - -export interface ICharCountProps { - value: string; -} - -/** - * Reusable component showing `count` as number of characters typed into the component. - */ -export const CharCount: React.FC = ({value}) => { - const className = clsx(`of-charcount`); - return {value.length} characters; -}; diff --git a/src/components/utils/charcount/charcount.stories.tsx b/src/components/utils/charcount/charcount.stories.tsx deleted file mode 100644 index 1c2723f..0000000 --- a/src/components/utils/charcount/charcount.stories.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import {CharCount} from '@components'; -import {expect} from '@storybook/jest'; -import type {ComponentStory, Meta} from '@storybook/react'; -import {within} from '@storybook/testing-library'; - -const meta: Meta = { - title: 'Components / Utils / Charcount', - component: CharCount, - decorators: [], - parameters: {}, -}; -export default meta; - -export const charcount: ComponentStory = args => ; -charcount.args = { - value: 'foo', -}; -charcount.play = async ({canvasElement}) => { - const canvas = within(canvasElement); - expect(await canvas.findByText('3 characters')).toBeVisible(); -}; diff --git a/src/components/utils/charcount/index.ts b/src/components/utils/charcount/index.ts deleted file mode 100644 index e616e12..0000000 --- a/src/components/utils/charcount/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './charcount.component'; diff --git a/src/components/utils/component/component.component.tsx b/src/components/utils/component/component.component.tsx deleted file mode 100644 index f71dde1..0000000 --- a/src/components/utils/component/component.component.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import clsx from 'clsx'; -import React from 'react'; - -/** - * Structural wrapper for the component. A component's implementation should be placed in `children` - * prop. - */ -export const Component: React.FC = ({children}) => { - const className = clsx(`of-component`); - return
{children}
; -}; diff --git a/src/components/utils/component/component.stories.tsx b/src/components/utils/component/component.stories.tsx deleted file mode 100644 index 722fcc9..0000000 --- a/src/components/utils/component/component.stories.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import {Component} from '@components'; -import {expect} from '@storybook/jest'; -import type {ComponentStory, Meta} from '@storybook/react'; -import {within} from '@storybook/testing-library'; - -const meta: Meta = { - title: 'Components / Utils / Component', - component: Component, - decorators: [], - parameters: {}, -}; -export default meta; - -export const component: ComponentStory = args => ; -component.args = { - children: 'The quick brown fox jumps over the lazy dog.', -}; -component.play = async ({canvasElement}) => { - const canvas = within(canvasElement); - expect(await canvas.findByText('The quick brown fox jumps over the lazy dog.')).toBeVisible(); -}; diff --git a/src/components/utils/component/index.ts b/src/components/utils/component/index.ts deleted file mode 100644 index c2d056f..0000000 --- a/src/components/utils/component/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './component.component'; diff --git a/src/components/utils/description/description.component.tsx b/src/components/utils/description/description.component.tsx deleted file mode 100644 index 6ebda7d..0000000 --- a/src/components/utils/description/description.component.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import clsx from 'clsx'; -import React from 'react'; - -interface IDescriptionProps { - description: string; -} - -/** - * Description/help text section of a component. - */ -export const Description: React.FC = ({description}) => { - const className = clsx(`of-description`); - return
{description}
; -}; diff --git a/src/components/utils/description/description.stories.tsx b/src/components/utils/description/description.stories.tsx deleted file mode 100644 index 6e824e4..0000000 --- a/src/components/utils/description/description.stories.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import {Description} from '@components'; -import {expect} from '@storybook/jest'; -import type {ComponentStory, Meta} from '@storybook/react'; -import {within} from '@storybook/testing-library'; - -const meta: Meta = { - title: 'Components / Utils / Description', - component: Description, - decorators: [], - parameters: {}, -}; -export default meta; - -export const description: ComponentStory = args => ; -description.args = { - description: 'The quick brown fox jumps over the lazy dog.', -}; -description.play = async ({canvasElement}) => { - const canvas = within(canvasElement); - expect(await canvas.findByText('The quick brown fox jumps over the lazy dog.')).toBeVisible(); -}; diff --git a/src/components/utils/description/index.ts b/src/components/utils/description/index.ts deleted file mode 100644 index 97ae638..0000000 --- a/src/components/utils/description/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './description.component'; diff --git a/src/components/utils/errors/errors.component.tsx b/src/components/utils/errors/errors.component.tsx deleted file mode 100644 index 2d940ae..0000000 --- a/src/components/utils/errors/errors.component.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import clsx from 'clsx'; -import React from 'react'; - -export interface IErrorsProps { - componentId: string; - errors: string[]; -} - -/** - * Reusable component showing `errors` as list of error messages for the component. - */ -export const Errors: React.FC = ({componentId, errors}) => { - const className = clsx(`of-error-list`); - const listItemClassName = clsx(`of-error-list__item`); - const labelClassName = clsx(`of-error-list__message`); - - return ( -
    - {errors?.map((error: string, index: number) => { - return ( -
  • - -
  • - ); - })} -
- ); -}; diff --git a/src/components/utils/errors/errors.stories.tsx b/src/components/utils/errors/errors.stories.tsx deleted file mode 100644 index fa951d8..0000000 --- a/src/components/utils/errors/errors.stories.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import {Errors} from '@components'; -import {expect} from '@storybook/jest'; -import type {ComponentStory, Meta} from '@storybook/react'; -import {within} from '@storybook/testing-library'; - -const meta: Meta = { - title: 'Components / Utils / Errors', - component: Errors, - decorators: [], - parameters: {}, -}; -export default meta; - -export const errors: ComponentStory = args => ; -errors.args = { - errors: ['Postcode is required', 'Postcode does not match the pattern ^\\d{4}\\s?[a-zA-Z]{2}$'], -}; -errors.play = async ({canvasElement}) => { - const canvas = within(canvasElement); - expect(await canvas.findByText('Postcode is required')).toBeVisible(); - expect( - await canvas.findByText('Postcode does not match the pattern ^\\d{4}\\s?[a-zA-Z]{2}$') - ).toBeVisible(); -}; diff --git a/src/components/utils/errors/index.ts b/src/components/utils/errors/index.ts deleted file mode 100644 index 1bf4f09..0000000 --- a/src/components/utils/errors/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './errors.component'; diff --git a/src/components/utils/index.ts b/src/components/utils/index.ts deleted file mode 100644 index cd0a43f..0000000 --- a/src/components/utils/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from './charcount'; -export * from './component'; -export * from './description'; -export * from './errors'; -export * from './label'; diff --git a/src/components/utils/label/index.ts b/src/components/utils/label/index.ts deleted file mode 100644 index abbc12d..0000000 --- a/src/components/utils/label/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './label.component'; diff --git a/src/components/utils/label/label.component.tsx b/src/components/utils/label/label.component.tsx deleted file mode 100644 index d887bd4..0000000 --- a/src/components/utils/label/label.component.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import clsx from 'clsx'; -import React from 'react'; - -interface ILabelProps { - componentId: string; - label: string; -} - -/** - * Label component. - */ -export const Label: React.FC = ({componentId, label}) => { - const className = clsx(); - - return ( - - ); -}; diff --git a/src/components/utils/label/label.stories.tsx b/src/components/utils/label/label.stories.tsx deleted file mode 100644 index 3ca7819..0000000 --- a/src/components/utils/label/label.stories.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import {Label} from '@components'; -import {expect} from '@storybook/jest'; -import type {ComponentStory, Meta} from '@storybook/react'; -import {within} from '@storybook/testing-library'; - -const meta: Meta = { - title: 'Components / Utils / Label', - component: Label, - decorators: [], - parameters: {}, -}; -export default meta; - -export const label: ComponentStory = args =>