@lets-events/react 12.2.7 → 12.2.8

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 (89) hide show
  1. package/.eslintrc.json +2 -2
  2. package/.turbo/turbo-build.log +21 -19
  3. package/CHANGELOG.md +6 -0
  4. package/dist/index.d.mts +4 -2
  5. package/dist/index.d.ts +4 -2
  6. package/dist/index.js +14 -7
  7. package/dist/index.mjs +14 -7
  8. package/package.json +2 -2
  9. package/src/components/Alert.tsx +303 -303
  10. package/src/components/Avatar.tsx +55 -55
  11. package/src/components/Badge.tsx +125 -125
  12. package/src/components/Box.tsx +3 -3
  13. package/src/components/Button/index.tsx +16 -16
  14. package/src/components/Button/styledComponents.ts +300 -300
  15. package/src/components/ButtonGroup.tsx +484 -484
  16. package/src/components/Calendar/index.tsx +148 -146
  17. package/src/components/Calendar/styledComponents.ts +250 -250
  18. package/src/components/Card.tsx +48 -48
  19. package/src/components/CheckboxGroup.tsx +176 -176
  20. package/src/components/Container.tsx +39 -39
  21. package/src/components/Drawer/index.tsx +138 -138
  22. package/src/components/Drawer/styledComponents.ts +52 -52
  23. package/src/components/Dropdown.tsx +302 -302
  24. package/src/components/Filter.tsx +164 -164
  25. package/src/components/Flex.tsx +118 -118
  26. package/src/components/FormFields/AddressFormFields/CityFormField.tsx +111 -111
  27. package/src/components/FormFields/AddressFormFields/CountryFormField.tsx +33 -33
  28. package/src/components/FormFields/AddressFormFields/PostalCodeFormField.tsx +39 -39
  29. package/src/components/FormFields/AddressFormFields/StateFormField.tsx +32 -32
  30. package/src/components/FormFields/AddressFormFields/index.tsx +141 -141
  31. package/src/components/FormFields/BirthDateFormField.tsx +84 -84
  32. package/src/components/FormFields/CNPJFormField.tsx +87 -87
  33. package/src/components/FormFields/CPFFormField.tsx +78 -78
  34. package/src/components/FormFields/CalendarFormField.tsx +95 -92
  35. package/src/components/FormFields/CheckboxGroupFormField.tsx +91 -91
  36. package/src/components/FormFields/EmailFormField.tsx +27 -27
  37. package/src/components/FormFields/Form.tsx +39 -39
  38. package/src/components/FormFields/IdentityDocumentNumberFormField.tsx +32 -32
  39. package/src/components/FormFields/MultiSelectFormField.tsx +64 -64
  40. package/src/components/FormFields/PhoneFormField.tsx +40 -40
  41. package/src/components/FormFields/RadioGroupFormField.tsx +84 -84
  42. package/src/components/FormFields/RichEditorFormField.tsx +102 -102
  43. package/src/components/FormFields/SelectFormField.tsx +93 -93
  44. package/src/components/FormFields/SwitchFormField.tsx +46 -46
  45. package/src/components/FormFields/TextAreaFormField.tsx +57 -57
  46. package/src/components/FormFields/TextFormField.tsx +112 -112
  47. package/src/components/FormFields/TimePickerFormField.tsx +88 -88
  48. package/src/components/FormFields/subComponents/ErrorFormMessage.tsx +36 -36
  49. package/src/components/FormFields/subComponents/FormLabel.tsx +29 -29
  50. package/src/components/FormFields/utils/validation.ts +23 -23
  51. package/src/components/Grid.tsx +137 -137
  52. package/src/components/Icon.tsx +47 -47
  53. package/src/components/MenuDropdown/index.tsx +38 -38
  54. package/src/components/MenuDropdown/styledComponents.ts +31 -31
  55. package/src/components/Modal.tsx +90 -90
  56. package/src/components/MultiSelect/index.tsx +243 -243
  57. package/src/components/MultiSelect/styledComponents.ts +160 -160
  58. package/src/components/RadioGroup.tsx +210 -210
  59. package/src/components/RichEditor/QuillComponent.tsx +458 -458
  60. package/src/components/RichEditor/RichEditor.tsx +49 -49
  61. package/src/components/RichEditor/index.ts +2 -2
  62. package/src/components/RichEditor/styledComponents.ts +1151 -1151
  63. package/src/components/Section.tsx +33 -33
  64. package/src/components/Step.tsx +164 -164
  65. package/src/components/Switch.tsx +108 -108
  66. package/src/components/Text.tsx +38 -38
  67. package/src/components/TextField.tsx +372 -372
  68. package/src/components/TextareaField.tsx +127 -127
  69. package/src/components/TimePicker.tsx +328 -328
  70. package/src/components/Toast/components/ToastItem.tsx +41 -41
  71. package/src/components/Toast/components/ToastProvider.tsx +63 -63
  72. package/src/components/Toast/hooks/useToast.ts +12 -12
  73. package/src/components/Toast/index.tsx +5 -5
  74. package/src/components/Toast/styles/index.ts +135 -135
  75. package/src/components/Toast/types/index.ts +46 -46
  76. package/src/components/Tooltip/index.tsx +66 -66
  77. package/src/components/Tooltip/styles.ts +77 -77
  78. package/src/hooks/useCountries.ts +41 -41
  79. package/src/hooks/useImageUpload.ts +139 -139
  80. package/src/hooks/useOnClickOutside.tsx +42 -42
  81. package/src/index.tsx +68 -68
  82. package/src/styles/index.ts +38 -38
  83. package/src/types/typographyValues.ts +178 -178
  84. package/src/utils/getNestedValue.ts +3 -3
  85. package/src/utils/states.ts +29 -29
  86. package/src/utils/uploadService.ts +180 -180
  87. package/tsconfig.json +3 -3
  88. package/tsup.config.ts +38 -38
  89. package/dist/index.css +0 -171
@@ -1,165 +1,165 @@
1
- import { styled } from '../styles'
2
- import { ComponentProps, ElementType } from 'react'
3
- import { Theme, DropdownMenu } from '@radix-ui/themes'
4
- import { CheckboxGroup, CheckboxItem } from './CheckboxGroup'
5
- import { Icon } from './Icon'
6
- import { typographyLabelValues } from '../types/typographyValues'
7
-
8
- const FilterContentStyled = styled(DropdownMenu.Content, {
9
- background: 'white',
10
- padding: '$8 $12',
11
- border: '1px solid $dark300',
12
- borderRadius: '$xs',
13
- boxShadow: '0px 4px 4px 0px rgba(35, 53, 67, 0.08)',
14
- width: 'calc(var(--radix-popper-anchor-width) - 24px);',
15
- minWidth: '100%',
16
- marginTop: '3px',
17
- fontFamily: '$default',
18
- variants: {
19
- typography: typographyLabelValues,
20
- fontWeight: {
21
- regular: {
22
- fontWeight: '$regular'
23
- },
24
- medium: {
25
- fontWeight: '$medium'
26
- },
27
- semibold: {
28
- fontWeight: '$semibold'
29
- },
30
- bold: {
31
- fontWeight: '$bold'
32
- },
33
- },
34
- },
35
- })
36
- const FilterStyled = styled('div', {
37
- fontFamily: '$default',
38
- color: '$dark600',
39
- letterSpacing: '0px',
40
- cursor: 'pointer',
41
- border: '1px solid $dark300',
42
- borderRadius: '$xs',
43
- padding: '$8 $12',
44
- width: 'calc(100% - 24px)',
45
- display: 'flex',
46
- 'button': {
47
- fontFamily: '$default',
48
- color: '$dark600',
49
- letterSpacing: '0px',
50
- backgroundColor: 'transparent',
51
- border: 'none',
52
- width: '100%',
53
- outline: 'none',
54
- display: 'flex',
55
- alignItems: 'center',
56
- gap: '$8',
57
- cursor: 'pointer',
58
- 'svg:last-child': {
59
- marginLeft: 'auto',
60
- }
61
- },
62
- variants: {
63
- typography: {
64
- labelLarge: {
65
- 'span': {
66
- fontSize: '$labelLarge',
67
- lineHeight: '$labelLarge',
68
- }
69
- },
70
- labelMedium: {
71
- 'span': {
72
- fontSize: '$labelMedium',
73
- lineHeight: '$labelMedium',
74
- }
75
- },
76
- labelSmall: {
77
- 'span': {
78
- fontSize: '$labelSmall',
79
- lineHeight: '$labelSmall',
80
- }
81
- },
82
- labelExtraSmall: {
83
- 'span': {
84
- fontSize: '$labelExtraSmall',
85
- lineHeight: '$labelExtraSmall',
86
- }
87
- },
88
- },
89
- fontWeight: {
90
- regular: {
91
- 'span': { fontWeight: '$regular' }
92
- },
93
- medium: {
94
- 'span': { fontWeight: '$medium' }
95
- },
96
- semibold: {
97
- 'span': { fontWeight: '$semibold' }
98
- },
99
- bold: {
100
- 'span': { fontWeight: '$bold' }
101
- },
102
- },
103
- }
104
- })
105
-
106
-
107
- export type FilterProps = ComponentProps<typeof DropdownMenu.Root> & {
108
- as?: ElementType,
109
- placeholder?: string,
110
- fontWeight: 'regular' | 'medium' | 'semibold' | 'bold',
111
- typography: 'labelExtraSmall' | 'labelSmall' | 'labelMedium' | 'labelLarge',
112
- }
113
- export type FilterItemProps = ComponentProps<typeof CheckboxItem> & {
114
- as?: ElementType,
115
- value: string,
116
- typography: FilterProps['typography'],
117
- fontWeight: FilterProps['fontWeight'],
118
- }
119
-
120
-
121
- export function Filter({
122
- children,
123
- placeholder,
124
- typography,
125
- fontWeight,
126
- ...props
127
- }: FilterProps) {
128
- return (
129
- <Theme>
130
- <DropdownMenu.Root {...props}>
131
- <FilterStyled typography={typography} fontWeight={fontWeight}>
132
- <DropdownMenu.Trigger>
133
- <button aria-label={placeholder || 'Fitrar'}>
134
- <Icon name='filter' />
135
- <span>{placeholder || 'Fitrar'}</span>
136
- <DropdownMenu.TriggerIcon />
137
- </button>
138
- </DropdownMenu.Trigger>
139
- <FilterContentStyled avoidCollisions={false}
140
- align="start"
141
- alignOffset={-14}
142
- typography={typography}
143
- fontWeight={fontWeight}
144
- >
145
- <CheckboxGroup>
146
- {children}
147
- </CheckboxGroup>
148
- </FilterContentStyled>
149
- </FilterStyled>
150
- </DropdownMenu.Root>
151
- </Theme>
152
- )
153
- }
154
-
155
-
156
- export function FilterItem({
157
- children,
158
- ...props
159
- }: FilterItemProps) {
160
- return (
161
- <CheckboxItem {...props} style={{ padding: '8px 12px' }}>
162
- {children}
163
- </CheckboxItem>
164
- )
1
+ import { styled } from '../styles'
2
+ import { ComponentProps, ElementType } from 'react'
3
+ import { Theme, DropdownMenu } from '@radix-ui/themes'
4
+ import { CheckboxGroup, CheckboxItem } from './CheckboxGroup'
5
+ import { Icon } from './Icon'
6
+ import { typographyLabelValues } from '../types/typographyValues'
7
+
8
+ const FilterContentStyled = styled(DropdownMenu.Content, {
9
+ background: 'white',
10
+ padding: '$8 $12',
11
+ border: '1px solid $dark300',
12
+ borderRadius: '$xs',
13
+ boxShadow: '0px 4px 4px 0px rgba(35, 53, 67, 0.08)',
14
+ width: 'calc(var(--radix-popper-anchor-width) - 24px);',
15
+ minWidth: '100%',
16
+ marginTop: '3px',
17
+ fontFamily: '$default',
18
+ variants: {
19
+ typography: typographyLabelValues,
20
+ fontWeight: {
21
+ regular: {
22
+ fontWeight: '$regular'
23
+ },
24
+ medium: {
25
+ fontWeight: '$medium'
26
+ },
27
+ semibold: {
28
+ fontWeight: '$semibold'
29
+ },
30
+ bold: {
31
+ fontWeight: '$bold'
32
+ },
33
+ },
34
+ },
35
+ })
36
+ const FilterStyled = styled('div', {
37
+ fontFamily: '$default',
38
+ color: '$dark600',
39
+ letterSpacing: '0px',
40
+ cursor: 'pointer',
41
+ border: '1px solid $dark300',
42
+ borderRadius: '$xs',
43
+ padding: '$8 $12',
44
+ width: 'calc(100% - 24px)',
45
+ display: 'flex',
46
+ 'button': {
47
+ fontFamily: '$default',
48
+ color: '$dark600',
49
+ letterSpacing: '0px',
50
+ backgroundColor: 'transparent',
51
+ border: 'none',
52
+ width: '100%',
53
+ outline: 'none',
54
+ display: 'flex',
55
+ alignItems: 'center',
56
+ gap: '$8',
57
+ cursor: 'pointer',
58
+ 'svg:last-child': {
59
+ marginLeft: 'auto',
60
+ }
61
+ },
62
+ variants: {
63
+ typography: {
64
+ labelLarge: {
65
+ 'span': {
66
+ fontSize: '$labelLarge',
67
+ lineHeight: '$labelLarge',
68
+ }
69
+ },
70
+ labelMedium: {
71
+ 'span': {
72
+ fontSize: '$labelMedium',
73
+ lineHeight: '$labelMedium',
74
+ }
75
+ },
76
+ labelSmall: {
77
+ 'span': {
78
+ fontSize: '$labelSmall',
79
+ lineHeight: '$labelSmall',
80
+ }
81
+ },
82
+ labelExtraSmall: {
83
+ 'span': {
84
+ fontSize: '$labelExtraSmall',
85
+ lineHeight: '$labelExtraSmall',
86
+ }
87
+ },
88
+ },
89
+ fontWeight: {
90
+ regular: {
91
+ 'span': { fontWeight: '$regular' }
92
+ },
93
+ medium: {
94
+ 'span': { fontWeight: '$medium' }
95
+ },
96
+ semibold: {
97
+ 'span': { fontWeight: '$semibold' }
98
+ },
99
+ bold: {
100
+ 'span': { fontWeight: '$bold' }
101
+ },
102
+ },
103
+ }
104
+ })
105
+
106
+
107
+ export type FilterProps = ComponentProps<typeof DropdownMenu.Root> & {
108
+ as?: ElementType,
109
+ placeholder?: string,
110
+ fontWeight: 'regular' | 'medium' | 'semibold' | 'bold',
111
+ typography: 'labelExtraSmall' | 'labelSmall' | 'labelMedium' | 'labelLarge',
112
+ }
113
+ export type FilterItemProps = ComponentProps<typeof CheckboxItem> & {
114
+ as?: ElementType,
115
+ value: string,
116
+ typography: FilterProps['typography'],
117
+ fontWeight: FilterProps['fontWeight'],
118
+ }
119
+
120
+
121
+ export function Filter({
122
+ children,
123
+ placeholder,
124
+ typography,
125
+ fontWeight,
126
+ ...props
127
+ }: FilterProps) {
128
+ return (
129
+ <Theme>
130
+ <DropdownMenu.Root {...props}>
131
+ <FilterStyled typography={typography} fontWeight={fontWeight}>
132
+ <DropdownMenu.Trigger>
133
+ <button aria-label={placeholder || 'Fitrar'}>
134
+ <Icon name='filter' />
135
+ <span>{placeholder || 'Fitrar'}</span>
136
+ <DropdownMenu.TriggerIcon />
137
+ </button>
138
+ </DropdownMenu.Trigger>
139
+ <FilterContentStyled avoidCollisions={false}
140
+ align="start"
141
+ alignOffset={-14}
142
+ typography={typography}
143
+ fontWeight={fontWeight}
144
+ >
145
+ <CheckboxGroup>
146
+ {children}
147
+ </CheckboxGroup>
148
+ </FilterContentStyled>
149
+ </FilterStyled>
150
+ </DropdownMenu.Root>
151
+ </Theme>
152
+ )
153
+ }
154
+
155
+
156
+ export function FilterItem({
157
+ children,
158
+ ...props
159
+ }: FilterItemProps) {
160
+ return (
161
+ <CheckboxItem {...props} style={{ padding: '8px 12px' }}>
162
+ {children}
163
+ </CheckboxItem>
164
+ )
165
165
  }
@@ -1,119 +1,119 @@
1
- import { ComponentProps, ElementType } from 'react';
2
- import { styled } from '../styles'
3
- import { Flex as FlexRadix } from "@radix-ui/themes";
4
- export const FlexStyled = styled(FlexRadix, {
5
- variants: {
6
- display: {
7
- 'flex': { display: 'flex' },
8
- 'inline-flex': { display: 'inline-flex' }
9
- },
10
- align: {
11
- start: { alignItems: 'flex-start' },
12
- center: { alignItems: 'center' },
13
- end: { alignItems: 'flex-end' },
14
- stretch: { alignItems: 'stretch' },
15
- baseline: { alignItems: 'baseline' },
16
- },
17
- justify: {
18
- start: { justifyContent: 'flex-start' },
19
- center: { justifyContent: 'center' },
20
- end: { justifyContent: 'flex-end' },
21
- between: { justifyContent: 'space-between' },
22
- around: { justifyContent: 'space-around' },
23
- evenly: { justifyContent: 'space-evenly' },
24
- },
25
- direction: {
26
- row: { flexDirection: 'row' },
27
- column: { flexDirection: 'column' },
28
- 'row-reverse': { flexDirection: 'row-reverse' },
29
- 'column-reverse': { flexDirection: 'column-reverse' },
30
- },
31
- gap: {
32
- 0: { gap: '0px' },
33
- 2: { gap: '$2' },
34
- 4: { gap: '$4' },
35
- 6: { gap: '$6' },
36
- 8: { gap: '$8' },
37
- 10: { gap: '$10' },
38
- 12: { gap: '$12' },
39
- 14: { gap: '$14' },
40
- 16: { gap: '$16' },
41
- 20: { gap: '$20' },
42
- 22: { gap: '$22' },
43
- 24: { gap: '$24' },
44
- 32: { gap: '$32' },
45
- 36: { gap: '$36' },
46
- 40: { gap: '$40' },
47
- 48: { gap: '$48' },
48
- 56: { gap: '$56' },
49
- 64: { gap: '$64' },
50
- 72: { gap: '$72' },
51
- 80: { gap: '$80' },
52
- full: { gap: '$full' },
53
- },
54
- gapY: {
55
- 2: { gap: '$2' },
56
- 4: { gap: '$4' },
57
- 6: { gap: '$6' },
58
- 8: { gap: '$8' },
59
- 10: { gap: '$10' },
60
- 12: { gap: '$12' },
61
- 14: { gap: '$14' },
62
- 16: { gap: '$16' },
63
- 20: { gap: '$20' },
64
- 22: { gap: '$22' },
65
- 24: { gap: '$24' },
66
- 32: { gap: '$32' },
67
- 36: { gap: '$36' },
68
- 40: { gap: '$40' },
69
- 48: { gap: '$48' },
70
- 56: { gap: '$56' },
71
- 64: { gap: '$64' },
72
- 72: { gap: '$72' },
73
- 80: { gap: '$80' },
74
- full: { gap: '$full' },
75
- },
76
- gapX: {
77
- 2: { gap: '$2' },
78
- 4: { gap: '$4' },
79
- 6: { gap: '$6' },
80
- 8: { gap: '$8' },
81
- 10: { gap: '$10' },
82
- 12: { gap: '$12' },
83
- 14: { gap: '$14' },
84
- 16: { gap: '$16' },
85
- 20: { gap: '$20' },
86
- 22: { gap: '$22' },
87
- 24: { gap: '$24' },
88
- 32: { gap: '$32' },
89
- 36: { gap: '$36' },
90
- 40: { gap: '$40' },
91
- 48: { gap: '$48' },
92
- 56: { gap: '$56' },
93
- 64: { gap: '$64' },
94
- 72: { gap: '$72' },
95
- 80: { gap: '$80' },
96
- full: { gap: '$full' },
97
- }
98
- },
99
- defaultVariants: {
100
- display: 'flex',
101
- direction: 'row',
102
- gap: 10,
103
- }
104
-
105
- })
106
-
107
- export type FlexProps = ComponentProps<typeof FlexStyled> & {
108
- as?: ElementType,
109
- children: React.ReactNode
110
- }
111
-
112
-
113
- export function Flex({ children, ...props }: FlexProps) {
114
- return (
115
- <FlexStyled {...props}>
116
- {children}
117
- </FlexStyled>
118
- )
1
+ import { ComponentProps, ElementType } from 'react';
2
+ import { styled } from '../styles'
3
+ import { Flex as FlexRadix } from "@radix-ui/themes";
4
+ export const FlexStyled = styled(FlexRadix, {
5
+ variants: {
6
+ display: {
7
+ 'flex': { display: 'flex' },
8
+ 'inline-flex': { display: 'inline-flex' }
9
+ },
10
+ align: {
11
+ start: { alignItems: 'flex-start' },
12
+ center: { alignItems: 'center' },
13
+ end: { alignItems: 'flex-end' },
14
+ stretch: { alignItems: 'stretch' },
15
+ baseline: { alignItems: 'baseline' },
16
+ },
17
+ justify: {
18
+ start: { justifyContent: 'flex-start' },
19
+ center: { justifyContent: 'center' },
20
+ end: { justifyContent: 'flex-end' },
21
+ between: { justifyContent: 'space-between' },
22
+ around: { justifyContent: 'space-around' },
23
+ evenly: { justifyContent: 'space-evenly' },
24
+ },
25
+ direction: {
26
+ row: { flexDirection: 'row' },
27
+ column: { flexDirection: 'column' },
28
+ 'row-reverse': { flexDirection: 'row-reverse' },
29
+ 'column-reverse': { flexDirection: 'column-reverse' },
30
+ },
31
+ gap: {
32
+ 0: { gap: '0px' },
33
+ 2: { gap: '$2' },
34
+ 4: { gap: '$4' },
35
+ 6: { gap: '$6' },
36
+ 8: { gap: '$8' },
37
+ 10: { gap: '$10' },
38
+ 12: { gap: '$12' },
39
+ 14: { gap: '$14' },
40
+ 16: { gap: '$16' },
41
+ 20: { gap: '$20' },
42
+ 22: { gap: '$22' },
43
+ 24: { gap: '$24' },
44
+ 32: { gap: '$32' },
45
+ 36: { gap: '$36' },
46
+ 40: { gap: '$40' },
47
+ 48: { gap: '$48' },
48
+ 56: { gap: '$56' },
49
+ 64: { gap: '$64' },
50
+ 72: { gap: '$72' },
51
+ 80: { gap: '$80' },
52
+ full: { gap: '$full' },
53
+ },
54
+ gapY: {
55
+ 2: { gap: '$2' },
56
+ 4: { gap: '$4' },
57
+ 6: { gap: '$6' },
58
+ 8: { gap: '$8' },
59
+ 10: { gap: '$10' },
60
+ 12: { gap: '$12' },
61
+ 14: { gap: '$14' },
62
+ 16: { gap: '$16' },
63
+ 20: { gap: '$20' },
64
+ 22: { gap: '$22' },
65
+ 24: { gap: '$24' },
66
+ 32: { gap: '$32' },
67
+ 36: { gap: '$36' },
68
+ 40: { gap: '$40' },
69
+ 48: { gap: '$48' },
70
+ 56: { gap: '$56' },
71
+ 64: { gap: '$64' },
72
+ 72: { gap: '$72' },
73
+ 80: { gap: '$80' },
74
+ full: { gap: '$full' },
75
+ },
76
+ gapX: {
77
+ 2: { gap: '$2' },
78
+ 4: { gap: '$4' },
79
+ 6: { gap: '$6' },
80
+ 8: { gap: '$8' },
81
+ 10: { gap: '$10' },
82
+ 12: { gap: '$12' },
83
+ 14: { gap: '$14' },
84
+ 16: { gap: '$16' },
85
+ 20: { gap: '$20' },
86
+ 22: { gap: '$22' },
87
+ 24: { gap: '$24' },
88
+ 32: { gap: '$32' },
89
+ 36: { gap: '$36' },
90
+ 40: { gap: '$40' },
91
+ 48: { gap: '$48' },
92
+ 56: { gap: '$56' },
93
+ 64: { gap: '$64' },
94
+ 72: { gap: '$72' },
95
+ 80: { gap: '$80' },
96
+ full: { gap: '$full' },
97
+ }
98
+ },
99
+ defaultVariants: {
100
+ display: 'flex',
101
+ direction: 'row',
102
+ gap: 10,
103
+ }
104
+
105
+ })
106
+
107
+ export type FlexProps = ComponentProps<typeof FlexStyled> & {
108
+ as?: ElementType,
109
+ children: React.ReactNode
110
+ }
111
+
112
+
113
+ export function Flex({ children, ...props }: FlexProps) {
114
+ return (
115
+ <FlexStyled {...props}>
116
+ {children}
117
+ </FlexStyled>
118
+ )
119
119
  }