@lets-events/react 11.3.0 → 11.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/.eslintrc.json +2 -2
  2. package/.turbo/turbo-build.log +18 -20
  3. package/CHANGELOG.md +6 -0
  4. package/dist/index.d.mts +967 -207
  5. package/dist/index.d.ts +967 -207
  6. package/dist/index.js +265 -54
  7. package/dist/index.mjs +261 -48
  8. package/package.json +1 -1
  9. package/src/components/Alert.tsx +303 -303
  10. package/src/components/Avatar.tsx +55 -55
  11. package/src/components/Badge.tsx +125 -128
  12. package/src/components/Box.tsx +3 -3
  13. package/src/components/Button/index.tsx +16 -16
  14. package/src/components/Button/styledComponents.ts +287 -287
  15. package/src/components/ButtonGroup.tsx +484 -484
  16. package/src/components/Calendar/index.tsx +136 -136
  17. package/src/components/Calendar/styledComponents.ts +209 -209
  18. package/src/components/Card.tsx +48 -48
  19. package/src/components/CheckboxGroup.tsx +196 -214
  20. package/src/components/Container.tsx +39 -39
  21. package/src/components/Drawer/index.tsx +48 -48
  22. package/src/components/Drawer/styledComponents.ts +46 -46
  23. package/src/components/Dropdown.tsx +167 -167
  24. package/src/components/Filter.tsx +164 -164
  25. package/src/components/Flex.tsx +118 -118
  26. package/src/components/FormFields/ErrorFormMessage.tsx +36 -36
  27. package/src/components/FormFields/Form.tsx +25 -25
  28. package/src/components/FormFields/FormLabel.tsx +29 -29
  29. package/src/components/FormFields/MultiSelectFormField.tsx +65 -0
  30. package/src/components/FormFields/TextAreaFormField.tsx +46 -46
  31. package/src/components/FormFields/TextFormField.tsx +46 -46
  32. package/src/components/Grid.tsx +137 -137
  33. package/src/components/Icon.tsx +47 -47
  34. package/src/components/MenuDropdown/index.tsx +30 -30
  35. package/src/components/MenuDropdown/styledComponents.ts +31 -31
  36. package/src/components/Modal.tsx +90 -90
  37. package/src/components/MultiSelect.tsx +216 -0
  38. package/src/components/RadioGroup.tsx +210 -210
  39. package/src/components/Section.tsx +33 -33
  40. package/src/components/Step.tsx +164 -164
  41. package/src/components/Switch.tsx +108 -108
  42. package/src/components/Text.tsx +38 -39
  43. package/src/components/TextField.tsx +315 -315
  44. package/src/components/TextareaField.tsx +128 -128
  45. package/src/components/TimePicker.tsx +298 -298
  46. package/src/components/Toast/components/ToastItem.tsx +41 -41
  47. package/src/components/Toast/components/ToastProvider.tsx +63 -63
  48. package/src/components/Toast/hooks/useToast.ts +12 -12
  49. package/src/components/Toast/index.tsx +5 -5
  50. package/src/components/Toast/styles/index.ts +135 -135
  51. package/src/components/Toast/types/index.ts +46 -46
  52. package/src/components/Tooltip/index.tsx +66 -66
  53. package/src/components/Tooltip/styles.ts +77 -77
  54. package/src/hooks/useOnClickOutside.tsx +20 -20
  55. package/src/index.tsx +44 -42
  56. package/src/styles/index.ts +38 -38
  57. package/src/types/typographyValues.ts +178 -178
  58. package/tsconfig.json +3 -3
@@ -1,25 +1,25 @@
1
- import { JSX } from "react";
2
- import {
3
- FormProvider,
4
- useForm,
5
- SubmitHandler,
6
- FieldValues,
7
- UseFormProps,
8
- } from "react-hook-form";
9
-
10
- export type FormProps = UseFormProps & {
11
- onSubmit: SubmitHandler<FieldValues>;
12
- children: JSX.Element;
13
- };
14
-
15
- export const Form = ({ onSubmit, children, ...props }: FormProps) => {
16
- const methods = useForm(props);
17
-
18
- const { handleSubmit } = methods;
19
-
20
- return (
21
- <FormProvider {...methods}>
22
- <form onSubmit={handleSubmit(onSubmit)}>{children}</form>
23
- </FormProvider>
24
- );
25
- };
1
+ import { JSX } from "react";
2
+ import {
3
+ FormProvider,
4
+ useForm,
5
+ SubmitHandler,
6
+ FieldValues,
7
+ UseFormProps,
8
+ } from "react-hook-form";
9
+
10
+ export type FormProps = UseFormProps & {
11
+ onSubmit: SubmitHandler<FieldValues>;
12
+ children: JSX.Element;
13
+ };
14
+
15
+ export const Form = ({ onSubmit, children, ...props }: FormProps) => {
16
+ const methods = useForm(props);
17
+
18
+ const { handleSubmit } = methods;
19
+
20
+ return (
21
+ <FormProvider {...methods}>
22
+ <form onSubmit={handleSubmit(onSubmit)}>{children}</form>
23
+ </FormProvider>
24
+ );
25
+ };
@@ -1,29 +1,29 @@
1
- import { Text } from "../Text";
2
-
3
- export type FormLabelProps = {
4
- name: string;
5
- label?: string;
6
- haveError?: boolean;
7
- required?: boolean;
8
- };
9
-
10
- export const FormLabel = ({
11
- name,
12
- label,
13
- haveError,
14
- required,
15
- }: FormLabelProps) => {
16
- if (!label) return null;
17
-
18
- return (
19
- <Text
20
- typography={"labelMedium"}
21
- fontWeight={"medium"}
22
- color={haveError ? "error600" : "dark700"}
23
- id={`${name}-label`}
24
- >
25
- {label}
26
- {!required && <Text color="dark500"> (opcional)</Text>}
27
- </Text>
28
- );
29
- };
1
+ import { Text } from "../Text";
2
+
3
+ export type FormLabelProps = {
4
+ name: string;
5
+ label?: string;
6
+ haveError?: boolean;
7
+ required?: boolean;
8
+ };
9
+
10
+ export const FormLabel = ({
11
+ name,
12
+ label,
13
+ haveError,
14
+ required,
15
+ }: FormLabelProps) => {
16
+ if (!label) return null;
17
+
18
+ return (
19
+ <Text
20
+ typography={"labelMedium"}
21
+ fontWeight={"medium"}
22
+ color={haveError ? "error600" : "dark700"}
23
+ id={`${name}-label`}
24
+ >
25
+ {label}
26
+ {!required && <Text color="dark500"> (opcional)</Text>}
27
+ </Text>
28
+ );
29
+ };
@@ -0,0 +1,65 @@
1
+ import { useController, useFormContext } from "react-hook-form";
2
+ import { Flex } from "../Flex";
3
+ import { FormLabel } from "./FormLabel";
4
+ import { ErrorFormMessage } from "./ErrorFormMessage";
5
+ import { MultiSelect, MultiSelectProps } from "../MultiSelect";
6
+
7
+ export type MultiSelectFormFieldProps = MultiSelectProps & {
8
+ name: string;
9
+ label?: string;
10
+ required?: boolean;
11
+ };
12
+
13
+ export const MultiSelectFormField = ({
14
+ name,
15
+ label,
16
+ required,
17
+ ...rest
18
+ }: MultiSelectFormFieldProps) => {
19
+ const {
20
+ formState: { errors },
21
+ } = useFormContext();
22
+
23
+ const { field } = useController({
24
+ name,
25
+ rules: {
26
+ required
27
+ },
28
+ defaultValue: [],
29
+ });
30
+
31
+ const { value, onChange, ref, onBlur, disabled } = field;
32
+
33
+ const haveError = !!errors[name];
34
+
35
+ const errorMsg = errors[name]?.message;
36
+
37
+ const handleChange = (v: any) => {
38
+ onChange(v);
39
+ };
40
+
41
+ return (
42
+ <Flex direction={"column"}>
43
+ <FormLabel
44
+ name={name}
45
+ label={label}
46
+ required={required}
47
+ haveError={haveError}
48
+ />
49
+ <MultiSelect
50
+ value={value}
51
+ onValueChange={handleChange}
52
+ ref={ref}
53
+ color={haveError ? "error" : "default"}
54
+ {...rest}
55
+ />
56
+ {/* <TextareaField
57
+ {...register(name, { required })}
58
+ placeholder={placeholder}
59
+ color={haveError ? "error" : "default"}
60
+ aria-labelledby={`${name}-label`}
61
+ /> */}
62
+ <ErrorFormMessage message={errorMsg} />
63
+ </Flex>
64
+ );
65
+ };
@@ -1,46 +1,46 @@
1
- import { useFormContext } from "react-hook-form";
2
- import { Flex } from "../Flex";
3
- import { FormLabel } from "./FormLabel";
4
- import { ErrorFormMessage } from "./ErrorFormMessage";
5
- import { TextareaField } from "../TextareaField";
6
-
7
- export type TextAreaFormFieldProps = {
8
- name: string;
9
- label?: string;
10
- required?: boolean;
11
- placeholder?: string;
12
- };
13
-
14
- export const TextAreaFormField = ({
15
- name,
16
- label,
17
- required,
18
- placeholder,
19
- }: TextAreaFormFieldProps) => {
20
- const {
21
- register,
22
- formState: { errors },
23
- } = useFormContext();
24
-
25
- const haveError = !!errors[name];
26
-
27
- const errorMsg = errors[name]?.message;
28
-
29
- return (
30
- <Flex direction={"column"}>
31
- <FormLabel
32
- name={name}
33
- label={label}
34
- required={required}
35
- haveError={haveError}
36
- />
37
- <TextareaField
38
- {...register(name, { required })}
39
- placeholder={placeholder}
40
- color={haveError ? "error" : "default"}
41
- aria-labelledby={`${name}-label`}
42
- />
43
- <ErrorFormMessage message={errorMsg} />
44
- </Flex>
45
- );
46
- };
1
+ import { useFormContext } from "react-hook-form";
2
+ import { Flex } from "../Flex";
3
+ import { FormLabel } from "./FormLabel";
4
+ import { ErrorFormMessage } from "./ErrorFormMessage";
5
+ import { TextareaField } from "../TextareaField";
6
+
7
+ export type TextAreaFormFieldProps = {
8
+ name: string;
9
+ label?: string;
10
+ required?: boolean;
11
+ placeholder?: string;
12
+ };
13
+
14
+ export const TextAreaFormField = ({
15
+ name,
16
+ label,
17
+ required,
18
+ placeholder,
19
+ }: TextAreaFormFieldProps) => {
20
+ const {
21
+ register,
22
+ formState: { errors },
23
+ } = useFormContext();
24
+
25
+ const haveError = !!errors[name];
26
+
27
+ const errorMsg = errors[name]?.message;
28
+
29
+ return (
30
+ <Flex direction={"column"}>
31
+ <FormLabel
32
+ name={name}
33
+ label={label}
34
+ required={required}
35
+ haveError={haveError}
36
+ />
37
+ <TextareaField
38
+ {...register(name, { required })}
39
+ placeholder={placeholder}
40
+ color={haveError ? "error" : "default"}
41
+ aria-labelledby={`${name}-label`}
42
+ />
43
+ <ErrorFormMessage message={errorMsg} />
44
+ </Flex>
45
+ );
46
+ };
@@ -1,46 +1,46 @@
1
- import { useFormContext } from "react-hook-form";
2
- import { Flex } from "../Flex";
3
- import { FormLabel } from "./FormLabel";
4
- import { TextField } from "../TextField";
5
- import { ErrorFormMessage } from "./ErrorFormMessage";
6
-
7
- export type TextFormFieldProps = {
8
- name: string;
9
- label?: string;
10
- required?: boolean;
11
- placeholder?: string;
12
- };
13
-
14
- export const TextFormField = ({
15
- name,
16
- label,
17
- required,
18
- placeholder,
19
- }: TextFormFieldProps) => {
20
- const {
21
- register,
22
- formState: { errors },
23
- } = useFormContext();
24
-
25
- const haveError = !!errors[name];
26
-
27
- const errorMsg = errors[name]?.message;
28
-
29
- return (
30
- <Flex direction={"column"}>
31
- <FormLabel
32
- name={name}
33
- label={label}
34
- required={required}
35
- haveError={haveError}
36
- />
37
- <TextField
38
- {...register(name, { required })}
39
- placeholder={placeholder}
40
- color={haveError ? "error" : "default"}
41
- aria-labelledby={`${name}-label`}
42
- />
43
- <ErrorFormMessage message={errorMsg} />
44
- </Flex>
45
- );
46
- };
1
+ import { useFormContext } from "react-hook-form";
2
+ import { Flex } from "../Flex";
3
+ import { FormLabel } from "./FormLabel";
4
+ import { TextField } from "../TextField";
5
+ import { ErrorFormMessage } from "./ErrorFormMessage";
6
+
7
+ export type TextFormFieldProps = {
8
+ name: string;
9
+ label?: string;
10
+ required?: boolean;
11
+ placeholder?: string;
12
+ };
13
+
14
+ export const TextFormField = ({
15
+ name,
16
+ label,
17
+ required,
18
+ placeholder,
19
+ }: TextFormFieldProps) => {
20
+ const {
21
+ register,
22
+ formState: { errors },
23
+ } = useFormContext();
24
+
25
+ const haveError = !!errors[name];
26
+
27
+ const errorMsg = errors[name]?.message;
28
+
29
+ return (
30
+ <Flex direction={"column"}>
31
+ <FormLabel
32
+ name={name}
33
+ label={label}
34
+ required={required}
35
+ haveError={haveError}
36
+ />
37
+ <TextField
38
+ {...register(name, { required })}
39
+ placeholder={placeholder}
40
+ color={haveError ? "error" : "default"}
41
+ aria-labelledby={`${name}-label`}
42
+ />
43
+ <ErrorFormMessage message={errorMsg} />
44
+ </Flex>
45
+ );
46
+ };
@@ -1,138 +1,138 @@
1
- import { ComponentProps, ElementType } from 'react';
2
- import { styled } from '../styles'
3
- import { Grid as GridRadix } from "@radix-ui/themes";
4
- export const GridStyled = styled(GridRadix, {
5
- display: 'grid',
6
- variants: {
7
- display: {
8
- 'grid': { display: 'grid' },
9
- 'inline-grid': { display: 'inline-grid' },
10
- },
11
- align: {
12
- start: { alignItems: 'start' },
13
- center: { alignItems: 'center' },
14
- end: { alignItems: 'end' },
15
- stretch: { alignItems: 'stretch' },
16
- },
17
- justify: {
18
- start: { justifyContent: 'start' },
19
- center: { justifyContent: 'center' },
20
- end: { justifyContent: 'end' },
21
- between: { justifyContent: 'space-between' },
22
- },
23
- flow: {
24
- row: { gridAutoFlow: 'row' },
25
- column: { gridAutoFlow: 'column' },
26
- 'row-dense': { gridAutoFlow: 'row dense' },
27
- 'column-dense': { gridAutoFlow: 'column dense' },
28
- },
29
- columns: {
30
- 1: { gridTemplateColumns: 'repeat(1, 1fr)' },
31
- 2: { gridTemplateColumns: 'repeat(2, 1fr)' },
32
- 3: { gridTemplateColumns: 'repeat(3, 1fr)' },
33
- 4: { gridTemplateColumns: 'repeat(4, 1fr)' },
34
- 6: { gridTemplateColumns: 'repeat(6, 1fr)' },
35
- 12: { gridTemplateColumns: 'repeat(12, 1fr)' },
36
- },
37
- rows: {
38
- 1: { gridTemplateRows: 'repeat(1, 1fr)' },
39
- 2: { gridTemplateRows: 'repeat(2, 1fr)' },
40
- 3: { gridTemplateRows: 'repeat(3, 1fr)' },
41
- 4: { gridTemplateRows: 'repeat(4, 1fr)' },
42
- 5: { gridTemplateRows: 'repeat(5, 1fr)' },
43
- 6: { gridTemplateRows: 'repeat(6, 1fr)' },
44
- 7: { gridTemplateRows: 'repeat(7, 1fr)' },
45
- 8: { gridTemplateRows: 'repeat(8, 1fr)' },
46
- 9: { gridTemplateRows: 'repeat(9, 1fr)' },
47
- 10: { gridTemplateRows: 'repeat(10, 1fr)' },
48
- 11: { gridTemplateRows: 'repeat(11, 1fr)' },
49
- 12: { gridTemplateRows: 'repeat(12, 1fr)' },
50
- auto: { gridTemplateRows: 'auto' },
51
- },
52
- gap: {
53
- 2: { gap: '$2' },
54
- 4: { gap: '$4' },
55
- 6: { gap: '$6' },
56
- 8: { gap: '$8' },
57
- 10: { gap: '$10' },
58
- 12: { gap: '$12' },
59
- 14: { gap: '$14' },
60
- 16: { gap: '$16' },
61
- 20: { gap: '$20' },
62
- 22: { gap: '$22' },
63
- 24: { gap: '$24' },
64
- 32: { gap: '$32' },
65
- 36: { gap: '$36' },
66
- 40: { gap: '$40' },
67
- 48: { gap: '$48' },
68
- 56: { gap: '$56' },
69
- 64: { gap: '$64' },
70
- 72: { gap: '$72' },
71
- 80: { gap: '$80' },
72
- full: { gap: '$full' },
73
- },
74
- gapX: {
75
- 2: { gap: '$2' },
76
- 4: { gap: '$4' },
77
- 6: { gap: '$6' },
78
- 8: { gap: '$8' },
79
- 10: { gap: '$10' },
80
- 12: { gap: '$12' },
81
- 14: { gap: '$14' },
82
- 16: { gap: '$16' },
83
- 20: { gap: '$20' },
84
- 22: { gap: '$22' },
85
- 24: { gap: '$24' },
86
- 32: { gap: '$32' },
87
- 36: { gap: '$36' },
88
- 40: { gap: '$40' },
89
- 48: { gap: '$48' },
90
- 56: { gap: '$56' },
91
- 64: { gap: '$64' },
92
- 72: { gap: '$72' },
93
- 80: { gap: '$80' },
94
- full: { gap: '$full' },
95
- },
96
- gapY: {
97
- 2: { gap: '$2' },
98
- 4: { gap: '$4' },
99
- 6: { gap: '$6' },
100
- 8: { gap: '$8' },
101
- 10: { gap: '$10' },
102
- 12: { gap: '$12' },
103
- 14: { gap: '$14' },
104
- 16: { gap: '$16' },
105
- 20: { gap: '$20' },
106
- 22: { gap: '$22' },
107
- 24: { gap: '$24' },
108
- 32: { gap: '$32' },
109
- 36: { gap: '$36' },
110
- 40: { gap: '$40' },
111
- 48: { gap: '$48' },
112
- 56: { gap: '$56' },
113
- 64: { gap: '$64' },
114
- 72: { gap: '$72' },
115
- 80: { gap: '$80' },
116
- full: { gap: '$full' },
117
- },
118
- },
119
- defaultVariants: {
120
- gap: 10,
121
- }
122
-
123
- })
124
-
125
- export type GridProps = ComponentProps<typeof GridStyled> & {
126
- as?: ElementType
127
- children: React.ReactNode,
128
- areas?: string
129
- }
130
-
131
-
132
- export function Grid({ children, ...props }: GridProps) {
133
- return (
134
- <GridStyled {...props}>
135
- {children}
136
- </GridStyled>
137
- )
1
+ import { ComponentProps, ElementType } from 'react';
2
+ import { styled } from '../styles'
3
+ import { Grid as GridRadix } from "@radix-ui/themes";
4
+ export const GridStyled = styled(GridRadix, {
5
+ display: 'grid',
6
+ variants: {
7
+ display: {
8
+ 'grid': { display: 'grid' },
9
+ 'inline-grid': { display: 'inline-grid' },
10
+ },
11
+ align: {
12
+ start: { alignItems: 'start' },
13
+ center: { alignItems: 'center' },
14
+ end: { alignItems: 'end' },
15
+ stretch: { alignItems: 'stretch' },
16
+ },
17
+ justify: {
18
+ start: { justifyContent: 'start' },
19
+ center: { justifyContent: 'center' },
20
+ end: { justifyContent: 'end' },
21
+ between: { justifyContent: 'space-between' },
22
+ },
23
+ flow: {
24
+ row: { gridAutoFlow: 'row' },
25
+ column: { gridAutoFlow: 'column' },
26
+ 'row-dense': { gridAutoFlow: 'row dense' },
27
+ 'column-dense': { gridAutoFlow: 'column dense' },
28
+ },
29
+ columns: {
30
+ 1: { gridTemplateColumns: 'repeat(1, 1fr)' },
31
+ 2: { gridTemplateColumns: 'repeat(2, 1fr)' },
32
+ 3: { gridTemplateColumns: 'repeat(3, 1fr)' },
33
+ 4: { gridTemplateColumns: 'repeat(4, 1fr)' },
34
+ 6: { gridTemplateColumns: 'repeat(6, 1fr)' },
35
+ 12: { gridTemplateColumns: 'repeat(12, 1fr)' },
36
+ },
37
+ rows: {
38
+ 1: { gridTemplateRows: 'repeat(1, 1fr)' },
39
+ 2: { gridTemplateRows: 'repeat(2, 1fr)' },
40
+ 3: { gridTemplateRows: 'repeat(3, 1fr)' },
41
+ 4: { gridTemplateRows: 'repeat(4, 1fr)' },
42
+ 5: { gridTemplateRows: 'repeat(5, 1fr)' },
43
+ 6: { gridTemplateRows: 'repeat(6, 1fr)' },
44
+ 7: { gridTemplateRows: 'repeat(7, 1fr)' },
45
+ 8: { gridTemplateRows: 'repeat(8, 1fr)' },
46
+ 9: { gridTemplateRows: 'repeat(9, 1fr)' },
47
+ 10: { gridTemplateRows: 'repeat(10, 1fr)' },
48
+ 11: { gridTemplateRows: 'repeat(11, 1fr)' },
49
+ 12: { gridTemplateRows: 'repeat(12, 1fr)' },
50
+ auto: { gridTemplateRows: 'auto' },
51
+ },
52
+ gap: {
53
+ 2: { gap: '$2' },
54
+ 4: { gap: '$4' },
55
+ 6: { gap: '$6' },
56
+ 8: { gap: '$8' },
57
+ 10: { gap: '$10' },
58
+ 12: { gap: '$12' },
59
+ 14: { gap: '$14' },
60
+ 16: { gap: '$16' },
61
+ 20: { gap: '$20' },
62
+ 22: { gap: '$22' },
63
+ 24: { gap: '$24' },
64
+ 32: { gap: '$32' },
65
+ 36: { gap: '$36' },
66
+ 40: { gap: '$40' },
67
+ 48: { gap: '$48' },
68
+ 56: { gap: '$56' },
69
+ 64: { gap: '$64' },
70
+ 72: { gap: '$72' },
71
+ 80: { gap: '$80' },
72
+ full: { gap: '$full' },
73
+ },
74
+ gapX: {
75
+ 2: { gap: '$2' },
76
+ 4: { gap: '$4' },
77
+ 6: { gap: '$6' },
78
+ 8: { gap: '$8' },
79
+ 10: { gap: '$10' },
80
+ 12: { gap: '$12' },
81
+ 14: { gap: '$14' },
82
+ 16: { gap: '$16' },
83
+ 20: { gap: '$20' },
84
+ 22: { gap: '$22' },
85
+ 24: { gap: '$24' },
86
+ 32: { gap: '$32' },
87
+ 36: { gap: '$36' },
88
+ 40: { gap: '$40' },
89
+ 48: { gap: '$48' },
90
+ 56: { gap: '$56' },
91
+ 64: { gap: '$64' },
92
+ 72: { gap: '$72' },
93
+ 80: { gap: '$80' },
94
+ full: { gap: '$full' },
95
+ },
96
+ gapY: {
97
+ 2: { gap: '$2' },
98
+ 4: { gap: '$4' },
99
+ 6: { gap: '$6' },
100
+ 8: { gap: '$8' },
101
+ 10: { gap: '$10' },
102
+ 12: { gap: '$12' },
103
+ 14: { gap: '$14' },
104
+ 16: { gap: '$16' },
105
+ 20: { gap: '$20' },
106
+ 22: { gap: '$22' },
107
+ 24: { gap: '$24' },
108
+ 32: { gap: '$32' },
109
+ 36: { gap: '$36' },
110
+ 40: { gap: '$40' },
111
+ 48: { gap: '$48' },
112
+ 56: { gap: '$56' },
113
+ 64: { gap: '$64' },
114
+ 72: { gap: '$72' },
115
+ 80: { gap: '$80' },
116
+ full: { gap: '$full' },
117
+ },
118
+ },
119
+ defaultVariants: {
120
+ gap: 10,
121
+ }
122
+
123
+ })
124
+
125
+ export type GridProps = ComponentProps<typeof GridStyled> & {
126
+ as?: ElementType
127
+ children: React.ReactNode,
128
+ areas?: string
129
+ }
130
+
131
+
132
+ export function Grid({ children, ...props }: GridProps) {
133
+ return (
134
+ <GridStyled {...props}>
135
+ {children}
136
+ </GridStyled>
137
+ )
138
138
  }