@lets-events/react 4.0.0 → 6.0.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.
- package/.eslintrc.json +2 -2
- package/.turbo/turbo-build.log +20 -18
- package/CHANGELOG.md +13 -0
- package/dist/index.d.mts +2855 -164
- package/dist/index.d.ts +2855 -164
- package/dist/index.js +1428 -403
- package/dist/index.mjs +1374 -369
- package/package.json +1 -1
- package/src/components/Alert.tsx +256 -0
- package/src/components/Avatar.tsx +55 -55
- package/src/components/Badge.tsx +129 -121
- package/src/components/Box.tsx +3 -3
- package/src/components/Button.tsx +328 -348
- package/src/components/ButtonGroup.tsx +484 -477
- package/src/components/CheckboxGroup.tsx +214 -208
- package/src/components/Container.tsx +40 -0
- package/src/components/Dropdown.tsx +167 -109
- package/src/components/Filter.tsx +164 -95
- package/src/components/Flex.tsx +118 -47
- package/src/components/Grid.tsx +138 -0
- package/src/components/Icon.tsx +47 -47
- package/src/components/Modal.tsx +109 -0
- package/src/components/RadioGroup.tsx +210 -203
- package/src/components/Section.tsx +34 -0
- package/src/components/Step.tsx +148 -0
- package/src/components/Switch.tsx +109 -0
- package/src/components/Text.tsx +32 -26
- package/src/components/TextField.tsx +241 -193
- package/src/index.tsx +27 -23
- package/src/styles/index.ts +38 -38
- package/src/types/typographyValues.ts +179 -0
- package/tsconfig.json +3 -3
- package/src/components/BadgeText.tsx +0 -29
- package/src/components/BodyText.tsx +0 -24
- package/src/components/CaptionText.tsx +0 -16
- package/src/components/DisplayText.tsx +0 -26
- package/src/components/Headline.tsx +0 -29
- package/src/components/Label.tsx +0 -28
- package/src/components/Subtitle.tsx +0 -26
- package/src/components/TooltipText.tsx +0 -15
|
@@ -1,204 +1,211 @@
|
|
|
1
|
-
import { ComponentProps } from 'react'
|
|
2
|
-
import { styled } from '../styles'
|
|
3
|
-
import { RadioGroup as RadioGroupRadix } from "@radix-ui/themes";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
'label
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
1
|
+
import { ComponentProps } from 'react'
|
|
2
|
+
import { styled } from '../styles'
|
|
3
|
+
import { RadioGroup as RadioGroupRadix } from "@radix-ui/themes";
|
|
4
|
+
import { typographyLabelValues } from "../types/typographyValues";
|
|
5
|
+
|
|
6
|
+
export const RadioGroupStyled = styled(RadioGroupRadix.Root, {
|
|
7
|
+
fontFamily: '$default',
|
|
8
|
+
|
|
9
|
+
'label': {
|
|
10
|
+
display: 'flex',
|
|
11
|
+
alignItems: 'center',
|
|
12
|
+
gap: '$8',
|
|
13
|
+
cursor: 'pointer',
|
|
14
|
+
'&:focus button, &:hover button': {
|
|
15
|
+
transition: 'all 300ms ease-out',
|
|
16
|
+
boxShadow: '0px 0px 0px 4px rgba(56, 129, 255, 0.50)'
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
'label button': {
|
|
20
|
+
backgroundColor: '$white',
|
|
21
|
+
borderRadius: '$full',
|
|
22
|
+
height: '$16',
|
|
23
|
+
width: '$16',
|
|
24
|
+
position: 'relative',
|
|
25
|
+
border: '2px solid $dark300',
|
|
26
|
+
cursor: 'pointer',
|
|
27
|
+
},
|
|
28
|
+
'label button[data-state=checked]:before': {
|
|
29
|
+
backgroundColor: '$dark50',
|
|
30
|
+
content: '',
|
|
31
|
+
width: '8px',
|
|
32
|
+
height: '8px',
|
|
33
|
+
position: 'absolute',
|
|
34
|
+
top: '2px',
|
|
35
|
+
right: '2px',
|
|
36
|
+
borderRadius: '$full',
|
|
37
|
+
zIndex: 2,
|
|
38
|
+
},
|
|
39
|
+
'label button[data-state=checked]:after': {
|
|
40
|
+
backgroundColor: '$brand500',
|
|
41
|
+
content: '',
|
|
42
|
+
height: '$16',
|
|
43
|
+
width: '$16',
|
|
44
|
+
position: 'absolute',
|
|
45
|
+
top: '-2px',
|
|
46
|
+
right: '-2px',
|
|
47
|
+
borderRadius: '$full',
|
|
48
|
+
zIndex: 1,
|
|
49
|
+
},
|
|
50
|
+
variants: {
|
|
51
|
+
color: {
|
|
52
|
+
success: {
|
|
53
|
+
'label': {
|
|
54
|
+
'&:focus button, &:hover button': {
|
|
55
|
+
boxShadow: '0px 0px 0px 4px rgba(38, 167, 67, 0.50)',
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
'label button': {
|
|
59
|
+
borderColor: '$green500',
|
|
60
|
+
backgroundColor: '$dark50',
|
|
61
|
+
},
|
|
62
|
+
'label button[data-state=checked]:after': {
|
|
63
|
+
backgroundColor: '$green500',
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
blue: {},
|
|
67
|
+
error: {
|
|
68
|
+
'label': {
|
|
69
|
+
'&:focus button, &:hover button': {
|
|
70
|
+
boxShadow: '0px 0px 0px 4px rgba(225, 86, 98, 0.50)'
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
'label button': {
|
|
74
|
+
borderColor: '$error400',
|
|
75
|
+
backgroundColor: '$dark50',
|
|
76
|
+
},
|
|
77
|
+
'label button[data-state=checked]:after': {
|
|
78
|
+
backgroundColor: '$error600',
|
|
79
|
+
},
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
disabled: {
|
|
83
|
+
true: {
|
|
84
|
+
'label': {
|
|
85
|
+
cursor: 'not-allowed',
|
|
86
|
+
opacity: 0.5,
|
|
87
|
+
'&:focus button, &:hover button': {
|
|
88
|
+
boxShadow: 'none',
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
'label button': {
|
|
92
|
+
cursor: 'not-allowed',
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
false: {}
|
|
96
|
+
},
|
|
97
|
+
typography: typographyLabelValues,
|
|
98
|
+
fontWeight: {
|
|
99
|
+
regular: { fontWeight: '$regular' },
|
|
100
|
+
medium: { fontWeight: '$medium' },
|
|
101
|
+
semibold: { fontWeight: '$semibold' },
|
|
102
|
+
bold: { fontWeight: '$bold' },
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
|
|
106
|
+
compoundVariants: [
|
|
107
|
+
{
|
|
108
|
+
color: 'blue',
|
|
109
|
+
disabled: false,
|
|
110
|
+
css: {
|
|
111
|
+
'label': {
|
|
112
|
+
'&:focus button, &:hover button': {
|
|
113
|
+
boxShadow: '0px 0px 0px 4px rgba(56, 129, 255, 0.50)'
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
'label button': {
|
|
117
|
+
borderColor: '$dark300',
|
|
118
|
+
},
|
|
119
|
+
'label button[data-state=checked]:after': {
|
|
120
|
+
backgroundColor: '$brand500',
|
|
121
|
+
},
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
|
|
125
|
+
{
|
|
126
|
+
color: 'blue',
|
|
127
|
+
disabled: true,
|
|
128
|
+
css: {
|
|
129
|
+
'label button': {
|
|
130
|
+
borderColor: '$brand100',
|
|
131
|
+
backgroundColor: '$dark50',
|
|
132
|
+
},
|
|
133
|
+
'label button[data-state=checked]:after': {
|
|
134
|
+
backgroundColor: '$brand100',
|
|
135
|
+
},
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
|
|
139
|
+
{
|
|
140
|
+
color: 'success',
|
|
141
|
+
disabled: true,
|
|
142
|
+
css: {
|
|
143
|
+
'label button': {
|
|
144
|
+
borderColor: '$success100',
|
|
145
|
+
backgroundColor: '$dark50',
|
|
146
|
+
},
|
|
147
|
+
'label button[data-state=checked]:after': {
|
|
148
|
+
backgroundColor: '$success100',
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
|
|
153
|
+
{
|
|
154
|
+
color: 'error',
|
|
155
|
+
disabled: true,
|
|
156
|
+
css: {
|
|
157
|
+
'label button': {
|
|
158
|
+
borderColor: '$error100',
|
|
159
|
+
backgroundColor: '$dark50',
|
|
160
|
+
},
|
|
161
|
+
'label button[data-state=checked]:after': {
|
|
162
|
+
backgroundColor: '$error100',
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
defaultVariants: {
|
|
168
|
+
color: 'blue',
|
|
169
|
+
disabled: false
|
|
170
|
+
}
|
|
171
|
+
})
|
|
172
|
+
|
|
173
|
+
export type RadioGroupProps = ComponentProps<typeof RadioGroupStyled> & {
|
|
174
|
+
placeholder?: string
|
|
175
|
+
children?: React.ReactNode
|
|
176
|
+
color?: string
|
|
177
|
+
disabled?: boolean
|
|
178
|
+
typography?: string
|
|
179
|
+
fontWeight?: 'regular' | 'medium' | 'semibold' | 'bold',
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export type RadioItemProps = {
|
|
183
|
+
children?: React.ReactNode
|
|
184
|
+
value: string
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export function RadioGroup({
|
|
188
|
+
children,
|
|
189
|
+
disabled,
|
|
190
|
+
...props
|
|
191
|
+
}: RadioGroupProps) {
|
|
192
|
+
return (
|
|
193
|
+
<RadioGroupStyled
|
|
194
|
+
disabled={disabled}
|
|
195
|
+
{...props}
|
|
196
|
+
>
|
|
197
|
+
{children}
|
|
198
|
+
</RadioGroupStyled>
|
|
199
|
+
)
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export function RadioItem({
|
|
203
|
+
children,
|
|
204
|
+
...props
|
|
205
|
+
}: RadioItemProps) {
|
|
206
|
+
return (
|
|
207
|
+
<RadioGroupRadix.Item {...props}>
|
|
208
|
+
{children}
|
|
209
|
+
</RadioGroupRadix.Item>
|
|
210
|
+
)
|
|
204
211
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ComponentProps, ElementType } from 'react';
|
|
2
|
+
import { styled } from '../styles';
|
|
3
|
+
import { Section as SectionRadix } from '@radix-ui/themes';
|
|
4
|
+
|
|
5
|
+
export const SectionStyled = styled(SectionRadix, {
|
|
6
|
+
variants: {
|
|
7
|
+
size: {
|
|
8
|
+
xs: { maxWidth: '576px' },
|
|
9
|
+
sm: { minWidth: '577px', maxWidth: '767px' },
|
|
10
|
+
md: { mixWidth: '768px', maxWidth: '991px' },
|
|
11
|
+
lg: { mixWidth: '992px', maxWidth: '1199px' },
|
|
12
|
+
xl: { mixWidth: '1200px', maxWidth: '1399px' },
|
|
13
|
+
xxl: { mixWidth: '1400px' },
|
|
14
|
+
responsive: { width: '100%', maxWidth: '100%', minWidth: '100%' }
|
|
15
|
+
},
|
|
16
|
+
display: {
|
|
17
|
+
none: { display: 'none' },
|
|
18
|
+
initial: { display: 'initial' },
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
defaultVariants: {
|
|
22
|
+
size: 'md',
|
|
23
|
+
display: 'initial'
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export type SectionProps = ComponentProps<typeof SectionStyled> & {
|
|
28
|
+
as?: ElementType;
|
|
29
|
+
children: React.ReactNode;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export function Section({ children, ...props }: SectionProps) {
|
|
33
|
+
return <SectionStyled {...props}>{children}</SectionStyled>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import React, { ComponentProps, ElementType } from 'react'
|
|
2
|
+
import { styled } from '../styles'
|
|
3
|
+
import { Box, Tabs as StepRadix } from "@radix-ui/themes";
|
|
4
|
+
|
|
5
|
+
export const StepStyled = styled('div', {
|
|
6
|
+
fontFamily: '$default',
|
|
7
|
+
color: '$gray100',
|
|
8
|
+
letterSpacing: '0px',
|
|
9
|
+
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
const StepTriggerStyled = styled(StepRadix.Trigger, {
|
|
13
|
+
all: 'unset',
|
|
14
|
+
position: 'relative',
|
|
15
|
+
display: 'flex',
|
|
16
|
+
alignItems: 'center',
|
|
17
|
+
justifyContent: 'center',
|
|
18
|
+
fontSize: '$16',
|
|
19
|
+
fontWeight: '$medium',
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
minWidth: '32px',
|
|
23
|
+
minHeight: '32px',
|
|
24
|
+
marginRight: '40px',
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
'&:last-of-type': {
|
|
28
|
+
marginRight: 0,
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
'& > span:first-of-type': {
|
|
33
|
+
width: '32px',
|
|
34
|
+
height: '32px',
|
|
35
|
+
borderRadius: '$full',
|
|
36
|
+
backgroundColor: '$neutral50',
|
|
37
|
+
border: '1px solid $neutral200',
|
|
38
|
+
color: '$gray700',
|
|
39
|
+
display: 'flex',
|
|
40
|
+
alignItems: 'center',
|
|
41
|
+
justifyContent: 'center',
|
|
42
|
+
zIndex: 1,
|
|
43
|
+
position: 'relative',
|
|
44
|
+
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
'&[data-state="active"] > span:first-of-type': {
|
|
49
|
+
backgroundColor: '$blue500',
|
|
50
|
+
borderColor: '$blue500',
|
|
51
|
+
color: 'white',
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
'& > span:last-of-type': {
|
|
56
|
+
display: 'none',
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
'&:not(:first-of-type)::before': {
|
|
61
|
+
content: '""',
|
|
62
|
+
position: 'absolute',
|
|
63
|
+
top: '50%',
|
|
64
|
+
right: 'calc(100% + 4px)',
|
|
65
|
+
transform: 'translateY(-50%)',
|
|
66
|
+
width: '32px',
|
|
67
|
+
height: '8px',
|
|
68
|
+
borderRadius: '$sm',
|
|
69
|
+
backgroundColor: '$neutral50',
|
|
70
|
+
zIndex: 0,
|
|
71
|
+
},
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
'&[data-state="active"]::before': {
|
|
75
|
+
backgroundColor: '$blue500',
|
|
76
|
+
},
|
|
77
|
+
|
|
78
|
+
'&[data-filled="true"] > span:first-of-type': {
|
|
79
|
+
backgroundColor: '$blue500',
|
|
80
|
+
borderColor: '$blue500',
|
|
81
|
+
color: 'white',
|
|
82
|
+
},
|
|
83
|
+
|
|
84
|
+
'&[data-filled="true"]::before': {
|
|
85
|
+
backgroundColor: '$blue500',
|
|
86
|
+
},
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
const StepListStyled = styled(StepRadix.List, {
|
|
90
|
+
display: 'flex',
|
|
91
|
+
alignItems: 'center',
|
|
92
|
+
justifyContent: 'flex-start',
|
|
93
|
+
gap: '$4',
|
|
94
|
+
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
export type StepProps = ComponentProps<typeof StepStyled> & {
|
|
98
|
+
children: React.ReactNode,
|
|
99
|
+
defaultValue: number
|
|
100
|
+
|
|
101
|
+
}
|
|
102
|
+
export function Step({ children, defaultValue, ...props }: StepProps) {
|
|
103
|
+
return (
|
|
104
|
+
<StepRadix.Root defaultValue={String(defaultValue)}>
|
|
105
|
+
<StepStyled {...props}>
|
|
106
|
+
{children}
|
|
107
|
+
</StepStyled>
|
|
108
|
+
</StepRadix.Root>
|
|
109
|
+
|
|
110
|
+
)
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function StepTrigger({ value, children, currentStep, ...props }: { value: number, children: React.ReactNode | string, currentStep?: number, onClick: () => void }) {
|
|
114
|
+
const isActiveOrPrevious = currentStep !== undefined && value <= currentStep
|
|
115
|
+
console.log(isActiveOrPrevious, 'isActiveOrPrevius', currentStep)
|
|
116
|
+
return (
|
|
117
|
+
<StepTriggerStyled data-filled={isActiveOrPrevious} value={String(value)} {...props}>{children}</StepTriggerStyled>
|
|
118
|
+
)
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function StepContent({ value, children, ...props }: { value: number, children: React.ReactNode }) {
|
|
122
|
+
return (
|
|
123
|
+
<StepRadix.Content value={String(value)} {...props}>
|
|
124
|
+
{children}
|
|
125
|
+
</StepRadix.Content>
|
|
126
|
+
)
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function StepList({ children, currentStep, ...props }: { children: React.ReactNode, currentStep: number }) {
|
|
130
|
+
return (
|
|
131
|
+
<StepListStyled {...props}>
|
|
132
|
+
{React.Children.map(children, (child) => {
|
|
133
|
+
if (React.isValidElement(child) && child.type === StepTrigger) {
|
|
134
|
+
return React.cloneElement(child, { currentStep } as any)
|
|
135
|
+
}
|
|
136
|
+
return child
|
|
137
|
+
})}
|
|
138
|
+
</StepListStyled>
|
|
139
|
+
)
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function StepWrapper({ children, ...props }: { children: React.ReactNode }) {
|
|
143
|
+
return (
|
|
144
|
+
<Box {...props}>
|
|
145
|
+
{children}
|
|
146
|
+
</Box>
|
|
147
|
+
)
|
|
148
|
+
}
|