From 7d11f1457adf474784a66a480b34d299ef74c57e Mon Sep 17 00:00:00 2001 From: dreamwasp Date: Wed, 3 Jul 2024 10:37:47 -0400 Subject: [PATCH] remove test code, duh --- packages/gamut/src/Alert/index.tsx | 116 ----------------------------- 1 file changed, 116 deletions(-) diff --git a/packages/gamut/src/Alert/index.tsx b/packages/gamut/src/Alert/index.tsx index 4dceb20c9e..79e3b155f4 100644 --- a/packages/gamut/src/Alert/index.tsx +++ b/packages/gamut/src/Alert/index.tsx @@ -1,117 +1 @@ -import { GridForm } from '../GridForm'; - export * from './Alert'; - -export const Hey = () => ( - { - const { type } = files.item(0); - const allowedTypes = ['application/pdf', 'image/jpeg', 'image/png']; - if (!allowedTypes.includes(type)) - return 'Please upload a pdf, jpeg, or png file.'; - return true; - }, - }, - }, - { - label: 'Write a paragraph about penguins', - name: 'textarea-input', - type: 'textarea', - validation: { - required: 'Please write something about penguins!', - }, - size: 6, - }, - { - label: - "Validated, required text that must contain the word 'swag' twice", - name: 'validated-required-text', - size: 5, - type: 'text', - validation: { - required: true, - pattern: { - value: /swag(.*)swag/, - message: 'Not enough swag', - }, - }, - }, - { - description: 'I have swag', - label: 'Swag levels', - name: 'enough-swag', - size: 3, - type: 'checkbox', - id: 'my-super-cool-id', - defaultValue: true, - }, - { - label: 'Preferred Modern Artist', - name: 'artist', - options: [ - { - label: 'Cardi B', - value: 'cardi', - infotip: { info: 'This is super important.' }, - }, - { - label: 'Nicki Minaj', - value: 'nicki', - }, - ], - size: 4, - type: 'radio-group', - validation: { - required: 'You gotta pick one!', - }, - }, - { - label: 'End User License Agreement', - description: 'I accept the terms and conditions (required or else!!!)', - name: 'eula-checkbox-required', - type: 'checkbox', - validation: { - required: 'Please check the box to agree to the terms.', - }, - }, - ]} - onSubmit={async (values) => { - action('Form Submitted')(values); - }} - submit={{ - contents: 'Submit Me!?', - }} - /> -);