diff --git a/example_plugins/plugins/ui_form/src/checkbox.tsx b/example_plugins/plugins/ui_form/src/checkbox.tsx index 5cd0c18..3f5c365 100644 --- a/example_plugins/plugins/ui_form/src/checkbox.tsx +++ b/example_plugins/plugins/ui_form/src/checkbox.tsx @@ -5,7 +5,8 @@ export default function CheckboxExample(): ReactElement { return (
{ console.log(`value: ${value}`) diff --git a/example_plugins/plugins/ui_form/src/main.tsx b/example_plugins/plugins/ui_form/src/main.tsx index 3335f37..6afb36f 100644 --- a/example_plugins/plugins/ui_form/src/main.tsx +++ b/example_plugins/plugins/ui_form/src/main.tsx @@ -1,50 +1,35 @@ import { ReactElement } from 'react'; -import { Form } from "@project-gauntlet/api/components"; - -// TODO remake into starwars themed +import { Action, ActionPanel, Form } from "@project-gauntlet/api/components"; export default function MainExample(): ReactElement { return ( - + + {}}/> + + } + > + { + console.log(`First Name: ${value}`) + }}/> + { + console.log(`Last Name: ${value}`) + }}/> - Burger + label="Species" + value="human" + onChange={value => { + console.log(`Last Name: ${value}`) + }}> + Human + Jawa + Hutt + Twi'lek - { - console.log(`value: ${value}`) - }} - /> - { - console.log(`value: ${value}`) - }} - /> - { - console.log(`value: ${value}`) - }} - /> - { - console.log(`value: ${value}`) - }} - /> - { - console.log(`value: ${value}`) - }} - /> + + + { + console.log(`terms of service: ${value}`) + }} + /> ); }; diff --git a/example_plugins/plugins/ui_form/src/password-field.tsx b/example_plugins/plugins/ui_form/src/password-field.tsx index 5ec40d5..b4042fe 100644 --- a/example_plugins/plugins/ui_form/src/password-field.tsx +++ b/example_plugins/plugins/ui_form/src/password-field.tsx @@ -4,7 +4,7 @@ import { Form } from "@project-gauntlet/api/components"; export default function PasswordFieldExample(): ReactElement { return (
- + ); }; diff --git a/example_plugins/plugins/ui_form/src/select.tsx b/example_plugins/plugins/ui_form/src/select.tsx index ef9cb99..6753d63 100644 --- a/example_plugins/plugins/ui_form/src/select.tsx +++ b/example_plugins/plugins/ui_form/src/select.tsx @@ -4,13 +4,13 @@ import { Form } from "@project-gauntlet/api/components"; export default function SelectExample(): ReactElement { return (
- - Burger - Hot Dog - Croissant - Cookies - Steak - Seafood + + Human + Jawa + Hutt + Twi'lek + Wookie + Kaminoan ); diff --git a/example_plugins/plugins/ui_form/src/separator.tsx b/example_plugins/plugins/ui_form/src/separator.tsx index d3622c5..2090282 100644 --- a/example_plugins/plugins/ui_form/src/separator.tsx +++ b/example_plugins/plugins/ui_form/src/separator.tsx @@ -4,19 +4,11 @@ import { Form } from "@project-gauntlet/api/components"; export default function SeparatorExample(): ReactElement { return (
- { - console.log(`value: ${value}`) - }} - /> + + - { - console.log(`value: ${value}`) - }} - /> + + ); }; diff --git a/example_plugins/plugins/ui_form/src/text-field.tsx b/example_plugins/plugins/ui_form/src/text-field.tsx index e35eb21..d50930c 100644 --- a/example_plugins/plugins/ui_form/src/text-field.tsx +++ b/example_plugins/plugins/ui_form/src/text-field.tsx @@ -5,9 +5,9 @@ export default function TextFieldExample(): ReactElement { return (
{ - console.log(`value: ${value}`) + console.log(`homeworld: ${value}`) }} />