-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Native select & enhanced select (#9)
* wip: Select component * feat: Select componenet with enhanced layout * linting
- Loading branch information
Showing
48 changed files
with
276 additions
and
826 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 0 additions & 66 deletions
66
apps/svelte-gravity-forms/src/lib/components/form/index.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,54 @@ | ||
import { default as GFButton } from './button/button.svelte'; | ||
import { Form as FormPrimitive } from 'formsnap'; | ||
/* import * as RadioGroupComp from '$lib/components/ui/radio-group/index.js'; | ||
import * as SelectComp from '$lib/components/ui/select/index.js'; */ | ||
import { Item } from '$components/item/index.js'; | ||
import { Input } from '$components/input/index.js'; | ||
import { Textarea } from '$components/textarea/index.js'; | ||
import { Description } from '$components/description/index.js'; | ||
import { Label } from '$components/label/index.js'; | ||
import { Validation } from '$components/validation/index.js'; | ||
import { FormField } from '$components/field/index.js'; | ||
import { Button } from '$components/button/index.js'; | ||
import { FormSelect as Select } from '$components/select/index.js'; | ||
import { NativeSelect } from '$components/select/index.js'; | ||
|
||
export { GFButton }; | ||
const Root = FormPrimitive.Root; | ||
const Field = FormPrimitive.Field; | ||
const Control = FormPrimitive.Control; | ||
const NativeRadio = FormPrimitive.Radio; | ||
|
||
export type Props = { | ||
formId?: number; | ||
}; | ||
|
||
export { | ||
Root, | ||
Field, | ||
FormField, | ||
Control, | ||
Item, | ||
Input, | ||
Textarea, | ||
Label, | ||
Button, | ||
Validation, | ||
Description, | ||
NativeRadio, | ||
Select, | ||
NativeSelect, | ||
// | ||
Root as Form, | ||
Field as BitsField, | ||
FormField as GFFormField, | ||
Control as FormControl, | ||
Item as FormItem, | ||
Input as FormInput, | ||
Textarea as FormTextarea, | ||
Description as FormDescription, | ||
Label as FormLabel, | ||
Validation as FormValidation, | ||
NativeRadio as FormNativeRadio, | ||
Button as FormButton, | ||
Select as FormSelect, | ||
NativeSelect as FormNativeSelect | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.