@teamturing/react-kit 1.1.6 → 1.2.1
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/dist/core/Button/index.d.ts +71 -0
- package/dist/core/GradientText/index.d.ts +5 -5
- package/dist/core/IconButton/index.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +446 -111
- package/esm/core/Button/index.js +347 -0
- package/esm/{packages/react-kit/src/core → core}/Chip/index.js +6 -6
- package/esm/{packages/react-kit/src/core → core}/GradientText/index.js +1 -1
- package/esm/{packages/react-kit/src/core → core}/Grid/index.js +5 -5
- package/esm/{packages/react-kit/src/core → core}/IconButton/index.js +6 -6
- package/esm/{packages/react-kit/src/core → core}/IconToggleButton/index.js +6 -6
- package/esm/core/Space/index.js +12 -0
- package/esm/{packages/react-kit/src/core → core}/Spinner/index.js +3 -3
- package/esm/{packages/react-kit/src/core → core}/Stack/index.js +5 -5
- package/esm/{packages/react-kit/src/core → core}/StyledIcon/index.js +1 -1
- package/esm/{packages/react-kit/src/core → core}/Text/index.js +6 -6
- package/esm/core/View/index.js +18 -0
- package/esm/{packages/react-kit/src/core → core}/_UnstyledButton.js +1 -1
- package/esm/{packages/react-kit/src/index.js → index.js} +1 -0
- package/esm/{packages/react-kit/src/utils → utils}/styled-system/index.js +3 -3
- package/package.json +2 -2
- package/esm/packages/react-kit/src/core/Space/index.js +0 -12
- package/esm/packages/react-kit/src/core/View/index.js +0 -18
- /package/esm/{packages/react-kit/src/core → core}/ItemList/index.js +0 -0
- /package/esm/{packages/react-kit/src/utils → utils}/forcePixelValue.js +0 -0
- /package/esm/{packages/react-kit/src/utils → utils}/isArray.js +0 -0
- /package/esm/{packages/react-kit/src/utils → utils}/isNullable.js +0 -0
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import color from '../../packages/token-studio/esm/token/color/index.js';
|
|
3
|
+
import radii from '../../packages/token-studio/esm/token/radii/index.js';
|
|
4
|
+
import typography from '../../packages/token-studio/esm/token/typography/index.js';
|
|
5
|
+
import { forwardRef } from 'react';
|
|
6
|
+
import Qe from '../../node_modules/styled-components/dist/styled-components.esm.js';
|
|
7
|
+
import '../../node_modules/styled-system/dist/index.esm.js';
|
|
8
|
+
import Spinner from '../Spinner/index.js';
|
|
9
|
+
import View from '../View/index.js';
|
|
10
|
+
import UnstyledButton from '../_UnstyledButton.js';
|
|
11
|
+
import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
|
|
12
|
+
|
|
13
|
+
const Button = /*#__PURE__*/forwardRef(({
|
|
14
|
+
size = 'm',
|
|
15
|
+
variant = 'primary',
|
|
16
|
+
fillWidth = false,
|
|
17
|
+
disabled = false,
|
|
18
|
+
loading = false,
|
|
19
|
+
leadingIcon: LeadingIcon,
|
|
20
|
+
trailingIcon: TrailingIcon,
|
|
21
|
+
children,
|
|
22
|
+
...props
|
|
23
|
+
}, ref) => {
|
|
24
|
+
return /*#__PURE__*/React.createElement(BaseButton, _extends({
|
|
25
|
+
ref: ref,
|
|
26
|
+
size: size,
|
|
27
|
+
disabled: disabled || loading,
|
|
28
|
+
$disabled: disabled,
|
|
29
|
+
$loading: loading,
|
|
30
|
+
variant: variant,
|
|
31
|
+
leadingIcon: LeadingIcon,
|
|
32
|
+
trailingIcon: TrailingIcon,
|
|
33
|
+
fillWidth: fillWidth
|
|
34
|
+
}, props), /*#__PURE__*/React.createElement(View, {
|
|
35
|
+
sx: {
|
|
36
|
+
display: 'flex',
|
|
37
|
+
flexDirection: 'row',
|
|
38
|
+
alignItems: 'center',
|
|
39
|
+
justifyContent: 'center',
|
|
40
|
+
columnGap: 1,
|
|
41
|
+
visibility: !loading ? 'initial' : 'hidden'
|
|
42
|
+
}
|
|
43
|
+
}, LeadingIcon ? /*#__PURE__*/React.createElement(LeadingIcon, null) : null, children, TrailingIcon ? /*#__PURE__*/React.createElement(TrailingIcon, null) : null), loading ? /*#__PURE__*/React.createElement(View, {
|
|
44
|
+
sx: {
|
|
45
|
+
position: 'absolute',
|
|
46
|
+
top: 0,
|
|
47
|
+
right: 0,
|
|
48
|
+
bottom: 0,
|
|
49
|
+
left: 0,
|
|
50
|
+
display: 'flex',
|
|
51
|
+
alignItems: 'center',
|
|
52
|
+
justifyContent: 'center'
|
|
53
|
+
}
|
|
54
|
+
}, /*#__PURE__*/React.createElement(BaseSpinner, {
|
|
55
|
+
size: size,
|
|
56
|
+
variant: variant
|
|
57
|
+
})) : null);
|
|
58
|
+
});
|
|
59
|
+
const BaseButton = Qe(UnstyledButton)(({
|
|
60
|
+
$loading,
|
|
61
|
+
$disabled,
|
|
62
|
+
fillWidth
|
|
63
|
+
}) => ({
|
|
64
|
+
'position': 'relative',
|
|
65
|
+
'borderRadius': radii.full,
|
|
66
|
+
'backgroundColor': 'black',
|
|
67
|
+
'transition': 'background-color 100ms, color 100ms',
|
|
68
|
+
'cursor': $loading ? 'progress' : $disabled ? 'not-allowed' : 'pointer',
|
|
69
|
+
'width': fillWidth ? '100%' : 'initial',
|
|
70
|
+
'& svg': {
|
|
71
|
+
transition: 'color 100ms'
|
|
72
|
+
}
|
|
73
|
+
}), ({
|
|
74
|
+
leadingIcon,
|
|
75
|
+
trailingIcon
|
|
76
|
+
}) => variant({
|
|
77
|
+
prop: 'size',
|
|
78
|
+
variants: {
|
|
79
|
+
l: {
|
|
80
|
+
'pl': leadingIcon && !trailingIcon ? 3 : 4,
|
|
81
|
+
'pr': !leadingIcon && trailingIcon ? 3 : 4,
|
|
82
|
+
'py': 3,
|
|
83
|
+
'height': 'initial',
|
|
84
|
+
'maxHeight': 'initial',
|
|
85
|
+
'fontSize': typography['s'].fontSize,
|
|
86
|
+
'fontWeight': typography['s'].fontWeight,
|
|
87
|
+
'lineHeight': typography['s'].lineHeight,
|
|
88
|
+
'& svg': {
|
|
89
|
+
width: 20,
|
|
90
|
+
height: 20
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
m: {
|
|
94
|
+
'pl': leadingIcon && !trailingIcon ? 3 : 4,
|
|
95
|
+
'pr': !leadingIcon && trailingIcon ? 3 : 4,
|
|
96
|
+
'py': 2,
|
|
97
|
+
'height': 'initial',
|
|
98
|
+
'maxHeight': 'initial',
|
|
99
|
+
'fontSize': typography['xs'].fontSize,
|
|
100
|
+
'fontWeight': typography['xs'].fontWeight,
|
|
101
|
+
'lineHeight': typography['xs'].lineHeight,
|
|
102
|
+
'& svg': {
|
|
103
|
+
width: 16,
|
|
104
|
+
height: 16
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
s: {
|
|
108
|
+
'pl': leadingIcon && !trailingIcon ? 2 : 3,
|
|
109
|
+
'pr': !leadingIcon && trailingIcon ? 2 : 3,
|
|
110
|
+
'py': 0,
|
|
111
|
+
'height': 32,
|
|
112
|
+
'maxHeight': 32,
|
|
113
|
+
'fontSize': typography['xxs'].fontSize,
|
|
114
|
+
'fontWeight': typography['xxs'].fontWeight,
|
|
115
|
+
'lineHeight': typography['xxs'].lineHeight,
|
|
116
|
+
'& svg': {
|
|
117
|
+
width: 12,
|
|
118
|
+
height: 12
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}), ({
|
|
123
|
+
$disabled
|
|
124
|
+
}) => variant({
|
|
125
|
+
prop: 'variant',
|
|
126
|
+
variants: {
|
|
127
|
+
primary: {
|
|
128
|
+
'backgroundColor': color['bg/primary'],
|
|
129
|
+
'color': color['text/inverse'],
|
|
130
|
+
'& svg': {
|
|
131
|
+
color: color['icon/inverse']
|
|
132
|
+
},
|
|
133
|
+
':hover:not(:disabled)': {
|
|
134
|
+
backgroundColor: color['bg/primary/hovered']
|
|
135
|
+
},
|
|
136
|
+
':active:not(:disabled)': {
|
|
137
|
+
backgroundColor: color['bg/primary/pressed']
|
|
138
|
+
},
|
|
139
|
+
':focus-visible': {
|
|
140
|
+
outlineColor: color['border/focused'],
|
|
141
|
+
outlineStyle: 'solid',
|
|
142
|
+
outlineWidth: 2,
|
|
143
|
+
outlineOffset: 2
|
|
144
|
+
},
|
|
145
|
+
...($disabled ? {
|
|
146
|
+
'backgroundColor': color['bg/disabled'],
|
|
147
|
+
'color': color['text/disabled'],
|
|
148
|
+
'& svg': {
|
|
149
|
+
color: color['icon/disabled']
|
|
150
|
+
}
|
|
151
|
+
} : {})
|
|
152
|
+
},
|
|
153
|
+
secondary: {
|
|
154
|
+
'backgroundColor': color['bg/secondary'],
|
|
155
|
+
'color': color['text/primary'],
|
|
156
|
+
'& svg': {
|
|
157
|
+
color: color['icon/primary']
|
|
158
|
+
},
|
|
159
|
+
':hover:not(:disabled)': {
|
|
160
|
+
backgroundColor: color['bg/secondary/hovered']
|
|
161
|
+
},
|
|
162
|
+
':active:not(:disabled)': {
|
|
163
|
+
backgroundColor: color['bg/secondary/pressed']
|
|
164
|
+
},
|
|
165
|
+
':focus-visible': {
|
|
166
|
+
outlineColor: color['border/focused'],
|
|
167
|
+
outlineStyle: 'solid',
|
|
168
|
+
outlineWidth: 2,
|
|
169
|
+
outlineOffset: 2
|
|
170
|
+
},
|
|
171
|
+
...($disabled ? {
|
|
172
|
+
'backgroundColor': color['bg/disabled'],
|
|
173
|
+
'color': color['text/disabled'],
|
|
174
|
+
'& svg': {
|
|
175
|
+
color: color['icon/disabled']
|
|
176
|
+
}
|
|
177
|
+
} : {})
|
|
178
|
+
},
|
|
179
|
+
tertiary: {
|
|
180
|
+
'backgroundColor': color['bg/neutral'],
|
|
181
|
+
'color': color['text/neutral'],
|
|
182
|
+
'& svg': {
|
|
183
|
+
color: color['icon/accent/gray']
|
|
184
|
+
},
|
|
185
|
+
':hover:not(:disabled)': {
|
|
186
|
+
backgroundColor: color['bg/neutral/hovered']
|
|
187
|
+
},
|
|
188
|
+
':active:not(:disabled)': {
|
|
189
|
+
backgroundColor: color['bg/neutral/pressed']
|
|
190
|
+
},
|
|
191
|
+
':focus-visible': {
|
|
192
|
+
outlineColor: color['border/focused'],
|
|
193
|
+
outlineStyle: 'solid',
|
|
194
|
+
outlineWidth: 2,
|
|
195
|
+
outlineOffset: 2
|
|
196
|
+
},
|
|
197
|
+
...($disabled ? {
|
|
198
|
+
'backgroundColor': color['bg/disabled'],
|
|
199
|
+
'color': color['text/disabled'],
|
|
200
|
+
'& svg': {
|
|
201
|
+
color: color['icon/disabled']
|
|
202
|
+
}
|
|
203
|
+
} : {})
|
|
204
|
+
},
|
|
205
|
+
outlined: {
|
|
206
|
+
'backgroundColor': color['bg/neutral/subtler'],
|
|
207
|
+
'color': color['text/neutral/subtle'],
|
|
208
|
+
'& svg': {
|
|
209
|
+
color: color['icon/neutral/bolder']
|
|
210
|
+
},
|
|
211
|
+
':after': {
|
|
212
|
+
content: '""',
|
|
213
|
+
position: 'absolute',
|
|
214
|
+
top: 0,
|
|
215
|
+
right: 0,
|
|
216
|
+
bottom: 0,
|
|
217
|
+
left: 0,
|
|
218
|
+
borderWidth: 1,
|
|
219
|
+
borderStyle: 'solid',
|
|
220
|
+
borderColor: color['border/neutral/bolder'],
|
|
221
|
+
borderRadius: radii.full,
|
|
222
|
+
boxSizing: 'border-box'
|
|
223
|
+
},
|
|
224
|
+
':hover:not(:disabled)': {
|
|
225
|
+
backgroundColor: color['bg/neutral/subtler/hovered']
|
|
226
|
+
},
|
|
227
|
+
':active:not(:disabled)': {
|
|
228
|
+
backgroundColor: color['bg/neutral/subtler/pressed']
|
|
229
|
+
},
|
|
230
|
+
':focus-visible': {
|
|
231
|
+
outlineColor: color['border/focused'],
|
|
232
|
+
outlineStyle: 'solid',
|
|
233
|
+
outlineWidth: 2,
|
|
234
|
+
outlineOffset: 2
|
|
235
|
+
},
|
|
236
|
+
...($disabled ? {
|
|
237
|
+
'backgroundColor': color['bg/disabled'],
|
|
238
|
+
'color': color['text/disabled'],
|
|
239
|
+
'& svg': {
|
|
240
|
+
color: color['icon/disabled']
|
|
241
|
+
},
|
|
242
|
+
':after': {
|
|
243
|
+
display: 'none'
|
|
244
|
+
}
|
|
245
|
+
} : {})
|
|
246
|
+
},
|
|
247
|
+
plain: {
|
|
248
|
+
'backgroundColor': color['bg/neutral/subtler'],
|
|
249
|
+
'color': color['text/neutral/subtle'],
|
|
250
|
+
'& svg': {
|
|
251
|
+
color: color['icon/neutral/bolder']
|
|
252
|
+
},
|
|
253
|
+
':hover:not(:disabled)': {
|
|
254
|
+
'color': color['text/neutral'],
|
|
255
|
+
'& svg': {
|
|
256
|
+
color: color['icon/accent/gray']
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
':active:not(:disabled)': {
|
|
260
|
+
'color': color['text/neutral'],
|
|
261
|
+
'& svg': {
|
|
262
|
+
color: color['icon/accent/gray']
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
':focus-visible': {
|
|
266
|
+
outlineColor: color['border/focused'],
|
|
267
|
+
outlineStyle: 'solid',
|
|
268
|
+
outlineWidth: 2,
|
|
269
|
+
outlineOffset: 2
|
|
270
|
+
},
|
|
271
|
+
...($disabled ? {
|
|
272
|
+
'backgroundColor': color['bg/disabled'],
|
|
273
|
+
'color': color['text/disabled'],
|
|
274
|
+
'& svg': {
|
|
275
|
+
color: color['icon/disabled']
|
|
276
|
+
}
|
|
277
|
+
} : {})
|
|
278
|
+
},
|
|
279
|
+
danger: {
|
|
280
|
+
'backgroundColor': color['bg/danger/bold'],
|
|
281
|
+
'color': color['text/inverse'],
|
|
282
|
+
'& svg': {
|
|
283
|
+
color: color['icon/inverse']
|
|
284
|
+
},
|
|
285
|
+
':hover:not(:disabled)': {
|
|
286
|
+
backgroundColor: color['bg/danger/bold/hovered']
|
|
287
|
+
},
|
|
288
|
+
':active:not(:disabled)': {
|
|
289
|
+
backgroundColor: color['bg/danger/bold/pressed']
|
|
290
|
+
},
|
|
291
|
+
':focus-visible': {
|
|
292
|
+
outlineColor: color['border/focused'],
|
|
293
|
+
outlineStyle: 'solid',
|
|
294
|
+
outlineWidth: 2,
|
|
295
|
+
outlineOffset: 2
|
|
296
|
+
},
|
|
297
|
+
...($disabled ? {
|
|
298
|
+
'backgroundColor': color['bg/disabled'],
|
|
299
|
+
'color': color['text/disabled'],
|
|
300
|
+
'& svg': {
|
|
301
|
+
color: color['icon/disabled']
|
|
302
|
+
}
|
|
303
|
+
} : {})
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}));
|
|
307
|
+
const BaseSpinner = Qe(Spinner)(variant({
|
|
308
|
+
prop: 'size',
|
|
309
|
+
variants: {
|
|
310
|
+
l: {
|
|
311
|
+
width: 20,
|
|
312
|
+
height: 20
|
|
313
|
+
},
|
|
314
|
+
m: {
|
|
315
|
+
width: 16,
|
|
316
|
+
height: 16
|
|
317
|
+
},
|
|
318
|
+
s: {
|
|
319
|
+
width: 16,
|
|
320
|
+
height: 16
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}), variant({
|
|
324
|
+
prop: 'variant',
|
|
325
|
+
variants: {
|
|
326
|
+
primary: {
|
|
327
|
+
color: color['icon/inverse']
|
|
328
|
+
},
|
|
329
|
+
secondary: {
|
|
330
|
+
color: color['icon/primary']
|
|
331
|
+
},
|
|
332
|
+
tertiary: {
|
|
333
|
+
color: color['icon/accent/gray']
|
|
334
|
+
},
|
|
335
|
+
outlined: {
|
|
336
|
+
color: color['icon/neutral/bolder']
|
|
337
|
+
},
|
|
338
|
+
plain: {
|
|
339
|
+
color: color['icon/neutral/bolder']
|
|
340
|
+
},
|
|
341
|
+
danger: {
|
|
342
|
+
color: color['icon/inverse']
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}));
|
|
346
|
+
|
|
347
|
+
export { Button as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import color from '
|
|
2
|
-
import radii from '
|
|
3
|
-
import typography from '
|
|
4
|
-
import Qe from '
|
|
5
|
-
import '
|
|
1
|
+
import color from '../../packages/token-studio/esm/token/color/index.js';
|
|
2
|
+
import radii from '../../packages/token-studio/esm/token/radii/index.js';
|
|
3
|
+
import typography from '../../packages/token-studio/esm/token/typography/index.js';
|
|
4
|
+
import Qe from '../../node_modules/styled-components/dist/styled-components.esm.js';
|
|
5
|
+
import '../../node_modules/styled-system/dist/index.esm.js';
|
|
6
6
|
import { sx } from '../../utils/styled-system/index.js';
|
|
7
|
-
import { variant } from '
|
|
7
|
+
import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
|
|
8
8
|
|
|
9
9
|
const Chip = ({
|
|
10
10
|
children,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { extends as _extends } from '
|
|
2
|
-
import space from '
|
|
1
|
+
import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import space from '../../packages/token-studio/esm/token/space/index.js';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
|
-
import Qe from '
|
|
5
|
-
import '
|
|
4
|
+
import Qe from '../../node_modules/styled-components/dist/styled-components.esm.js';
|
|
5
|
+
import '../../node_modules/styled-system/dist/index.esm.js';
|
|
6
6
|
import { forcePixelValue } from '../../utils/forcePixelValue.js';
|
|
7
7
|
import { isArray } from '../../utils/isArray.js';
|
|
8
8
|
import { isNullable } from '../../utils/isNullable.js';
|
|
9
9
|
import View from '../View/index.js';
|
|
10
|
-
import { variant } from '
|
|
10
|
+
import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
|
|
11
11
|
|
|
12
12
|
const Grid = /*#__PURE__*/forwardRef(({
|
|
13
13
|
children,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { extends as _extends } from '
|
|
2
|
-
import color from '
|
|
3
|
-
import radii from '
|
|
1
|
+
import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import color from '../../packages/token-studio/esm/token/color/index.js';
|
|
3
|
+
import radii from '../../packages/token-studio/esm/token/radii/index.js';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
|
-
import Qe from '
|
|
6
|
-
import '
|
|
5
|
+
import Qe from '../../node_modules/styled-components/dist/styled-components.esm.js';
|
|
6
|
+
import '../../node_modules/styled-system/dist/index.esm.js';
|
|
7
7
|
import Spinner from '../Spinner/index.js';
|
|
8
8
|
import UnstyledButton from '../_UnstyledButton.js';
|
|
9
|
-
import { variant } from '
|
|
9
|
+
import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
|
|
10
10
|
|
|
11
11
|
const IconButton = /*#__PURE__*/forwardRef(({
|
|
12
12
|
icon: Icon,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { extends as _extends } from '
|
|
2
|
-
import color from '
|
|
3
|
-
import radii from '
|
|
4
|
-
import Qe from '
|
|
5
|
-
import '
|
|
1
|
+
import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import color from '../../packages/token-studio/esm/token/color/index.js';
|
|
3
|
+
import radii from '../../packages/token-studio/esm/token/radii/index.js';
|
|
4
|
+
import Qe from '../../node_modules/styled-components/dist/styled-components.esm.js';
|
|
5
|
+
import '../../node_modules/styled-system/dist/index.esm.js';
|
|
6
6
|
import { sx } from '../../utils/styled-system/index.js';
|
|
7
7
|
import UnstyledButton from '../_UnstyledButton.js';
|
|
8
|
-
import { variant } from '
|
|
8
|
+
import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
|
|
9
9
|
|
|
10
10
|
const IconToggleButton = ({
|
|
11
11
|
icon: Icon,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Qe from '../../node_modules/styled-components/dist/styled-components.esm.js';
|
|
2
|
+
import '../../node_modules/styled-system/dist/index.esm.js';
|
|
3
|
+
import { sx } from '../../utils/styled-system/index.js';
|
|
4
|
+
import { space } from '../../node_modules/@styled-system/space/dist/index.esm.js';
|
|
5
|
+
|
|
6
|
+
const Space = Qe.div`
|
|
7
|
+
width: inherit;
|
|
8
|
+
${space};
|
|
9
|
+
${sx}
|
|
10
|
+
`;
|
|
11
|
+
|
|
12
|
+
export { Space as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
import SvgProgressGradient from '
|
|
3
|
-
import color from '
|
|
4
|
-
import Qe, { keyframes as nt } from '
|
|
2
|
+
import SvgProgressGradient from '../../packages/icons/esm/ProgressGradient.js';
|
|
3
|
+
import color from '../../packages/token-studio/esm/token/color/index.js';
|
|
4
|
+
import Qe, { keyframes as nt } from '../../node_modules/styled-components/dist/styled-components.esm.js';
|
|
5
5
|
|
|
6
6
|
const spin = nt`
|
|
7
7
|
from {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { extends as _extends } from '
|
|
2
|
-
import space from '
|
|
1
|
+
import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import space from '../../packages/token-studio/esm/token/space/index.js';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
|
-
import Qe from '
|
|
5
|
-
import '
|
|
4
|
+
import Qe from '../../node_modules/styled-components/dist/styled-components.esm.js';
|
|
5
|
+
import '../../node_modules/styled-system/dist/index.esm.js';
|
|
6
6
|
import { forcePixelValue } from '../../utils/forcePixelValue.js';
|
|
7
7
|
import View from '../View/index.js';
|
|
8
|
-
import { variant } from '
|
|
8
|
+
import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
|
|
9
9
|
|
|
10
10
|
const Stack = /*#__PURE__*/forwardRef(({
|
|
11
11
|
gapX = 0,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import typography from '
|
|
2
|
-
import Qe from '
|
|
3
|
-
import { fontSize, fontWeight, lineHeight, textAlign } from '
|
|
1
|
+
import typography from '../../packages/token-studio/esm/token/typography/index.js';
|
|
2
|
+
import Qe from '../../node_modules/styled-components/dist/styled-components.esm.js';
|
|
3
|
+
import { fontSize, fontWeight, lineHeight, textAlign } from '../../node_modules/styled-system/dist/index.esm.js';
|
|
4
4
|
import { sx, wordBreak, whiteSpace, textDecoration } from '../../utils/styled-system/index.js';
|
|
5
|
-
import { variant } from '
|
|
6
|
-
import { compose } from '
|
|
7
|
-
import { color } from '
|
|
5
|
+
import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
|
|
6
|
+
import { compose } from '../../node_modules/@styled-system/core/dist/index.esm.js';
|
|
7
|
+
import { color } from '../../node_modules/@styled-system/color/dist/index.esm.js';
|
|
8
8
|
|
|
9
9
|
const Text = Qe.span({
|
|
10
10
|
'display': 'block',
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import Qe from '../../node_modules/styled-components/dist/styled-components.esm.js';
|
|
2
|
+
import '../../node_modules/styled-system/dist/index.esm.js';
|
|
3
|
+
import { sx } from '../../utils/styled-system/index.js';
|
|
4
|
+
import { compose } from '../../node_modules/@styled-system/core/dist/index.esm.js';
|
|
5
|
+
import { layout } from '../../node_modules/@styled-system/layout/dist/index.esm.js';
|
|
6
|
+
import { color } from '../../node_modules/@styled-system/color/dist/index.esm.js';
|
|
7
|
+
import { flexbox } from '../../node_modules/@styled-system/flexbox/dist/index.esm.js';
|
|
8
|
+
import { background } from '../../node_modules/@styled-system/background/dist/index.esm.js';
|
|
9
|
+
import { border } from '../../node_modules/@styled-system/border/dist/index.esm.js';
|
|
10
|
+
import { position } from '../../node_modules/@styled-system/position/dist/index.esm.js';
|
|
11
|
+
import { shadow } from '../../node_modules/@styled-system/shadow/dist/index.esm.js';
|
|
12
|
+
|
|
13
|
+
const View = Qe.div`
|
|
14
|
+
${compose(layout, color, flexbox, background, border, position, shadow)}
|
|
15
|
+
${sx}
|
|
16
|
+
`;
|
|
17
|
+
|
|
18
|
+
export { View as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import css from '
|
|
2
|
-
import '
|
|
3
|
-
import { system } from '
|
|
1
|
+
import css from '../../node_modules/@styled-system/css/dist/index.esm.js';
|
|
2
|
+
import '../../node_modules/styled-system/dist/index.esm.js';
|
|
3
|
+
import { system } from '../../node_modules/@styled-system/core/dist/index.esm.js';
|
|
4
4
|
|
|
5
5
|
// Support CSS custom properties in the `sx` prop
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamturing/react-kit",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "React components, hooks for create teamturing web application",
|
|
5
5
|
"author": "Sungchang Park <psch300@gmail.com> (https://github.com/psch300)",
|
|
6
6
|
"homepage": "https://github.com/weareteamturing/bombe#readme",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"@teamturing/icons": "^1.17.6",
|
|
49
49
|
"@teamturing/token-studio": "^1.1.6"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "00ef0cf88d4889abf15328c2bf47ab830e8cead3"
|
|
52
52
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import Qe from '../../../../../node_modules/styled-components/dist/styled-components.esm.js';
|
|
2
|
-
import '../../../../../node_modules/styled-system/dist/index.esm.js';
|
|
3
|
-
import { sx } from '../../utils/styled-system/index.js';
|
|
4
|
-
import { space } from '../../../../../node_modules/@styled-system/space/dist/index.esm.js';
|
|
5
|
-
|
|
6
|
-
const Space = Qe.div`
|
|
7
|
-
width: inherit;
|
|
8
|
-
${space};
|
|
9
|
-
${sx}
|
|
10
|
-
`;
|
|
11
|
-
|
|
12
|
-
export { Space as default };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import Qe from '../../../../../node_modules/styled-components/dist/styled-components.esm.js';
|
|
2
|
-
import '../../../../../node_modules/styled-system/dist/index.esm.js';
|
|
3
|
-
import { sx } from '../../utils/styled-system/index.js';
|
|
4
|
-
import { compose } from '../../../../../node_modules/@styled-system/core/dist/index.esm.js';
|
|
5
|
-
import { layout } from '../../../../../node_modules/@styled-system/layout/dist/index.esm.js';
|
|
6
|
-
import { color } from '../../../../../node_modules/@styled-system/color/dist/index.esm.js';
|
|
7
|
-
import { flexbox } from '../../../../../node_modules/@styled-system/flexbox/dist/index.esm.js';
|
|
8
|
-
import { background } from '../../../../../node_modules/@styled-system/background/dist/index.esm.js';
|
|
9
|
-
import { border } from '../../../../../node_modules/@styled-system/border/dist/index.esm.js';
|
|
10
|
-
import { position } from '../../../../../node_modules/@styled-system/position/dist/index.esm.js';
|
|
11
|
-
import { shadow } from '../../../../../node_modules/@styled-system/shadow/dist/index.esm.js';
|
|
12
|
-
|
|
13
|
-
const View = Qe.div`
|
|
14
|
-
${compose(layout, color, flexbox, background, border, position, shadow)}
|
|
15
|
-
${sx}
|
|
16
|
-
`;
|
|
17
|
-
|
|
18
|
-
export { View as default };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|