@teamturing/react-kit 2.60.2 → 2.61.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/dist/core/GradientText/index.d.ts +22 -11
- package/dist/core/Pagination/index.d.ts +286 -12
- package/dist/core/Text/index.d.ts +282 -2
- package/dist/core/_UnstyledButton.d.ts +280 -1
- package/dist/index.js +674 -1680
- package/esm/core/ActionList/ActionListItem.js +31 -111
- package/esm/core/ActionList/ActionListSectionHeader.js +9 -17
- package/esm/core/ActionList/index.js +4 -7
- package/esm/core/Avatar/index.js +6 -10
- package/esm/core/AvatarGroup/AvatarGroupItem.js +4 -6
- package/esm/core/AvatarGroup/index.js +13 -34
- package/esm/core/BadgeAttacher/index.js +4 -6
- package/esm/core/Breadcrumbs/BreadcrumbsItem.js +10 -27
- package/esm/core/Breadcrumbs/index.js +15 -34
- package/esm/core/Button/index.js +8 -2
- package/esm/core/Card/index.js +6 -11
- package/esm/core/Checkbox/index.js +26 -122
- package/esm/core/CheckboxOrRadioGroupFormControl/CheckboxOrRadioGroupFormControlErrorMessage.js +4 -3
- package/esm/core/CheckboxOrRadioGroupFormControl/CheckboxOrRadioGroupFormControlLabel.js +15 -30
- package/esm/core/CheckboxOrRadioGroupFormControl/CheckboxOrRadioGroupFormControlSuccessMessage.js +4 -3
- package/esm/core/Chip/index.js +4 -1
- package/esm/core/ClickArea/index.js +5 -6
- package/esm/core/CounterBadge/index.js +7 -14
- package/esm/core/Datagrid/DatagridBody.js +5 -19
- package/esm/core/Datagrid/DatagridHeader.js +6 -15
- package/esm/core/Datagrid/DatagridSubheader.js +7 -13
- package/esm/core/Datagrid/index.js +10 -18
- package/esm/core/Dialog/_UnstyledDialogBody.js +5 -9
- package/esm/core/Dialog/_UnstyledDialogFooter.js +5 -8
- package/esm/core/Dialog/_UnstyledDialogHeader.js +5 -8
- package/esm/core/Dialog/index.js +9 -15
- package/esm/core/Drawer/_UnstyledDrawerBody.js +5 -9
- package/esm/core/Drawer/_UnstyledDrawerFooter.js +5 -8
- package/esm/core/Drawer/_UnstyledDrawerHeader.js +5 -8
- package/esm/core/Drawer/index.js +9 -16
- package/esm/core/EmptyState/index.js +12 -31
- package/esm/core/FileItem/index.js +4 -1
- package/esm/core/Flash/index.js +14 -59
- package/esm/core/FormControl/FormControlErrorMessage.js +4 -3
- package/esm/core/FormControl/FormControlLabel.js +15 -30
- package/esm/core/FormControl/FormControlSuccessMessage.js +4 -3
- package/esm/core/GradientText/index.js +6 -4
- package/esm/core/Grid/index.js +4 -1
- package/esm/core/HorizontalDivider/index.js +4 -11
- package/esm/core/IconButton/index.js +4 -1
- package/esm/core/IconToggleButton/index.js +4 -1
- package/esm/core/Image/index.js +4 -4
- package/esm/core/Overlay/index.js +8 -18
- package/esm/core/Pagination/index.js +45 -109
- package/esm/core/Pill/index.js +12 -46
- package/esm/core/Radio/index.js +21 -90
- package/esm/core/SearchSelectInput/index.js +26 -88
- package/esm/core/Select/SelectOption.js +4 -1
- package/esm/core/Select/index.js +30 -96
- package/esm/core/Space/index.js +4 -5
- package/esm/core/Spinner/index.js +10 -10
- package/esm/core/Stack/index.js +4 -1
- package/esm/core/Switch/index.js +17 -65
- package/esm/core/Tab/TabItem.js +4 -1
- package/esm/core/Text/index.js +6 -4
- package/esm/core/TextInput/TextInputTrailingAction.js +10 -31
- package/esm/core/TextInput/index.js +40 -107
- package/esm/core/Textarea/index.js +40 -109
- package/esm/core/Toast/index.js +4 -1
- package/esm/core/Tooltip/BaseTooltip.js +12 -41
- package/esm/core/UploadInput/index.js +22 -90
- package/esm/core/View/index.js +4 -4
- package/esm/core/_UnstyledButton.js +6 -12
- package/esm/core/_UnstyledTable/UnstyledTableBody.js +4 -3
- package/esm/core/_UnstyledTable/UnstyledTableCell.js +4 -3
- package/esm/core/_UnstyledTable/UnstyledTableHead.js +4 -3
- package/esm/core/_UnstyledTable/UnstyledTableRow.js +4 -3
- package/esm/core/_UnstyledTable/index.js +4 -5
- package/package.json +3 -2
package/esm/core/Pill/index.js
CHANGED
|
@@ -73,52 +73,22 @@ const Pill = ({
|
|
|
73
73
|
}) : null]
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
|
-
const BasePill = styled(UnstyledButton)
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
const BasePill = /*#__PURE__*/styled(UnstyledButton).withConfig({
|
|
77
|
+
displayName: "Pill__BasePill",
|
|
78
|
+
componentId: "sc-15cvlep-0"
|
|
79
|
+
})(["display:inline-flex;align-items:center;column-gap:", ";transition:background-color 100ms;& span{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:pre;word-break:break-all;}&:focus-visible{outline-color:", ";outline-style:solid;outline-width:", ";outline-offset:", ";}& > div{display:flex;border-radius:", ";}& > div:focus-visible{outline-color:", ";outline-style:solid;outline-width:", ";outline-offset:", ";}", " ", " ", ""], ({
|
|
80
80
|
theme
|
|
81
|
-
}) => forcePixelValue(theme.space[2])
|
|
82
|
-
|
|
83
|
-
transition: background-color 100ms;
|
|
84
|
-
|
|
85
|
-
& span {
|
|
86
|
-
max-width: 240px;
|
|
87
|
-
overflow: hidden;
|
|
88
|
-
text-overflow: ellipsis;
|
|
89
|
-
white-space: pre;
|
|
90
|
-
word-break: break-all;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&:focus-visible {
|
|
94
|
-
outline-color: ${({
|
|
81
|
+
}) => forcePixelValue(theme.space[2]), ({
|
|
95
82
|
theme
|
|
96
|
-
}) => theme.colors['border/focused']
|
|
97
|
-
outline-style: solid;
|
|
98
|
-
outline-width: ${forcePixelValue(2)};
|
|
99
|
-
outline-offset: ${({
|
|
83
|
+
}) => theme.colors['border/focused'], forcePixelValue(2), ({
|
|
100
84
|
theme
|
|
101
|
-
}) => forcePixelValue(theme.space[0.5])
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
& > div {
|
|
105
|
-
display: flex;
|
|
106
|
-
border-radius: ${({
|
|
85
|
+
}) => forcePixelValue(theme.space[0.5]), ({
|
|
107
86
|
theme
|
|
108
|
-
}) => forcePixelValue(theme.radii.xxs)
|
|
109
|
-
}
|
|
110
|
-
& > div:focus-visible {
|
|
111
|
-
outline-color: ${({
|
|
87
|
+
}) => forcePixelValue(theme.radii.xxs), ({
|
|
112
88
|
theme
|
|
113
|
-
}) => theme.colors['border/focused']
|
|
114
|
-
outline-style: solid;
|
|
115
|
-
outline-width: ${forcePixelValue(2)};
|
|
116
|
-
outline-offset: ${({
|
|
89
|
+
}) => theme.colors['border/focused'], forcePixelValue(2), ({
|
|
117
90
|
theme
|
|
118
|
-
}) => forcePixelValue(theme.space[-0.5])
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
${({
|
|
91
|
+
}) => forcePixelValue(theme.space[-0.5]), ({
|
|
122
92
|
theme,
|
|
123
93
|
hasRemoveButton
|
|
124
94
|
}) => variant({
|
|
@@ -159,8 +129,7 @@ const BasePill = styled(UnstyledButton)`
|
|
|
159
129
|
}
|
|
160
130
|
}
|
|
161
131
|
}
|
|
162
|
-
})
|
|
163
|
-
${({
|
|
132
|
+
}), ({
|
|
164
133
|
theme,
|
|
165
134
|
disabled
|
|
166
135
|
}) => variant({
|
|
@@ -214,10 +183,7 @@ const BasePill = styled(UnstyledButton)`
|
|
|
214
183
|
})
|
|
215
184
|
}
|
|
216
185
|
}
|
|
217
|
-
})
|
|
218
|
-
|
|
219
|
-
${sx}
|
|
220
|
-
`;
|
|
186
|
+
}), sx);
|
|
221
187
|
var index = /*#__PURE__*/forwardRef(Pill);
|
|
222
188
|
|
|
223
189
|
export { index as default };
|
package/esm/core/Radio/index.js
CHANGED
|
@@ -18,111 +18,42 @@ const Radio = ({
|
|
|
18
18
|
...props
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
const UnstyledRadio = styled.input.attrs({
|
|
21
|
+
const UnstyledRadio = /*#__PURE__*/styled.input.attrs({
|
|
22
22
|
type: 'radio'
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
width: ${forcePixelValue(20)};
|
|
32
|
-
height: ${forcePixelValue(20)};
|
|
33
|
-
|
|
34
|
-
border-width: ${forcePixelValue(2)};
|
|
35
|
-
border-style: solid;
|
|
36
|
-
border-color: ${({
|
|
23
|
+
}).withConfig({
|
|
24
|
+
displayName: "Radio__UnstyledRadio",
|
|
25
|
+
componentId: "sc-3fie1u-0"
|
|
26
|
+
})(["appearance:none;", ""], sx);
|
|
27
|
+
const BaseRadio = /*#__PURE__*/styled(UnstyledRadio).withConfig({
|
|
28
|
+
displayName: "Radio__BaseRadio",
|
|
29
|
+
componentId: "sc-3fie1u-1"
|
|
30
|
+
})(["position:relative;width:", ";height:", ";border-width:", ";border-style:solid;border-color:", ";border-radius:", ";cursor:pointer;transition:visibility 200ms;&::before{visibility:hidden;content:'';display:grid;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:", ";background-color:", ";mask-image:url(\"data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='4' cy='4' r='4' fill='white'/%3E%3C/svg%3E%0A\");-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='4' cy='4' r='4' fill='white'/%3E%3C/svg%3E%0A\");mask-size:40%;-webkit-mask-size:40%;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-position:center;-webkit-mask-position:center;}&:disabled{background-color:", ";border-color:", ";}&:checked{background-color:", ";border-width:0;&::before{visibility:visible;}&:disabled{background-color:", ";border-color:", ";&::before{background-color:", ";}}}&:focus-visible{outline-width:", ";outline-style:solid;outline-color:", ";}", " ", ""], forcePixelValue(20), forcePixelValue(20), forcePixelValue(2), ({
|
|
37
31
|
theme
|
|
38
|
-
}) => theme.colors['border/neutral']
|
|
39
|
-
border-radius: ${({
|
|
32
|
+
}) => theme.colors['border/neutral'], ({
|
|
40
33
|
theme
|
|
41
|
-
}) => `${forcePixelValue(theme.radii.full)}
|
|
42
|
-
cursor: pointer;
|
|
43
|
-
|
|
44
|
-
transition: visibility 200ms;
|
|
45
|
-
|
|
46
|
-
&::before {
|
|
47
|
-
visibility: hidden;
|
|
48
|
-
|
|
49
|
-
content: '';
|
|
50
|
-
display: grid;
|
|
51
|
-
position: absolute;
|
|
52
|
-
|
|
53
|
-
top: 0;
|
|
54
|
-
right: 0;
|
|
55
|
-
bottom: 0;
|
|
56
|
-
left: 0;
|
|
57
|
-
|
|
58
|
-
border-radius: ${({
|
|
34
|
+
}) => `${forcePixelValue(theme.radii.full)}`, ({
|
|
59
35
|
theme
|
|
60
|
-
}) => `${forcePixelValue(theme.radii.full)}
|
|
61
|
-
|
|
62
|
-
background-color: ${({
|
|
36
|
+
}) => `${forcePixelValue(theme.radii.full)}`, ({
|
|
63
37
|
theme
|
|
64
|
-
}) => theme.colors['icon/inverse']
|
|
65
|
-
mask-image: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='4' cy='4' r='4' fill='white'/%3E%3C/svg%3E%0A");
|
|
66
|
-
-webkit-mask-image: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='4' cy='4' r='4' fill='white'/%3E%3C/svg%3E%0A");
|
|
67
|
-
mask-size: 40%;
|
|
68
|
-
-webkit-mask-size: 40%;
|
|
69
|
-
mask-repeat: no-repeat;
|
|
70
|
-
-webkit-mask-repeat: no-repeat;
|
|
71
|
-
mask-position: center;
|
|
72
|
-
-webkit-mask-position: center;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&:disabled {
|
|
76
|
-
background-color: ${({
|
|
38
|
+
}) => theme.colors['icon/inverse'], ({
|
|
77
39
|
theme
|
|
78
|
-
}) => theme.colors['bg/disabled']
|
|
79
|
-
border-color: ${({
|
|
40
|
+
}) => theme.colors['bg/disabled'], ({
|
|
80
41
|
theme
|
|
81
|
-
}) => theme.colors['border/disabled']
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&:checked {
|
|
85
|
-
background-color: ${({
|
|
42
|
+
}) => theme.colors['border/disabled'], ({
|
|
86
43
|
theme
|
|
87
|
-
}) => theme.colors['bg/primary']
|
|
88
|
-
border-width: 0;
|
|
89
|
-
|
|
90
|
-
&::before {
|
|
91
|
-
visibility: visible;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&:disabled {
|
|
95
|
-
background-color: ${({
|
|
44
|
+
}) => theme.colors['bg/primary'], ({
|
|
96
45
|
theme
|
|
97
|
-
}) => theme.colors['bg/disabled']
|
|
98
|
-
border-color: ${({
|
|
46
|
+
}) => theme.colors['bg/disabled'], ({
|
|
99
47
|
theme
|
|
100
|
-
}) => theme.colors['border/disabled']
|
|
101
|
-
|
|
102
|
-
&::before {
|
|
103
|
-
background-color: ${({
|
|
48
|
+
}) => theme.colors['border/disabled'], ({
|
|
104
49
|
theme
|
|
105
|
-
}) => theme.colors['icon/disabled']
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&:focus-visible {
|
|
111
|
-
outline-width: ${forcePixelValue(2)};
|
|
112
|
-
outline-style: solid;
|
|
113
|
-
outline-color: ${({
|
|
50
|
+
}) => theme.colors['icon/disabled'], forcePixelValue(2), ({
|
|
114
51
|
theme
|
|
115
|
-
}) => theme.colors['border/focused']
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
${props => props.validationStatus === 'error' && css`
|
|
52
|
+
}) => theme.colors['border/focused'], props => props.validationStatus === 'error' && css`
|
|
119
53
|
border-color: ${({
|
|
120
54
|
theme
|
|
121
55
|
}) => theme.colors['border/danger']};
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
${sx}
|
|
125
|
-
`;
|
|
56
|
+
`, sx);
|
|
126
57
|
var Radio$1 = /*#__PURE__*/forwardRef(Radio);
|
|
127
58
|
|
|
128
59
|
export { Radio$1 as default };
|
|
@@ -247,63 +247,28 @@ const SearchSelectInput = ({
|
|
|
247
247
|
})
|
|
248
248
|
});
|
|
249
249
|
};
|
|
250
|
-
const TextInputWrapper = styled.div
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
border-style: solid;
|
|
255
|
-
border-radius: ${({
|
|
250
|
+
const TextInputWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
251
|
+
displayName: "SearchSelectInput__TextInputWrapper",
|
|
252
|
+
componentId: "sc-17l04wk-0"
|
|
253
|
+
})(["position:relative;width:", ";border-width:", ";border-style:solid;border-radius:", ";border-color:", ";background-color:", ";cursor:default;input{cursor:default;flex:1;}display:inline-flex;align-items:center;font-size:", ";font-weight:", ";line-height:", ";color:", ";input::placeholder{color:", ";}&:after{content:'';position:absolute;top:", ";right:", ";bottom:", ";left:", ";border:", " solid transparent;border-radius:", ";pointer-events:none;}", " ", " ", " ", ";", " transition:color 100ms,background-color 100ms;&:after{transition:border-color 100ms;}"], forcePixelValue('100%'), forcePixelValue(1), ({
|
|
256
254
|
theme
|
|
257
|
-
}) => forcePixelValue(theme.radii.xs)
|
|
258
|
-
border-color: ${({
|
|
255
|
+
}) => forcePixelValue(theme.radii.xs), ({
|
|
259
256
|
theme
|
|
260
|
-
}) => theme.colors['border/input']
|
|
261
|
-
background-color: ${({
|
|
257
|
+
}) => theme.colors['border/input'], ({
|
|
262
258
|
theme
|
|
263
|
-
}) => theme.colors['bg/input']
|
|
264
|
-
cursor: default;
|
|
265
|
-
input {
|
|
266
|
-
cursor: default;
|
|
267
|
-
|
|
268
|
-
flex: 1;
|
|
269
|
-
}
|
|
270
|
-
display: inline-flex;
|
|
271
|
-
align-items: center;
|
|
272
|
-
|
|
273
|
-
font-size: ${({
|
|
259
|
+
}) => theme.colors['bg/input'], ({
|
|
274
260
|
theme
|
|
275
|
-
}) => forcePixelValue(theme.fontSizes.xs)
|
|
276
|
-
font-weight: ${({
|
|
261
|
+
}) => forcePixelValue(theme.fontSizes.xs), ({
|
|
277
262
|
theme
|
|
278
|
-
}) => theme.fontWeights.medium
|
|
279
|
-
line-height: ${({
|
|
263
|
+
}) => theme.fontWeights.medium, ({
|
|
280
264
|
theme
|
|
281
|
-
}) => theme.lineHeights[2]
|
|
282
|
-
color: ${({
|
|
265
|
+
}) => theme.lineHeights[2], ({
|
|
283
266
|
theme
|
|
284
|
-
}) => theme.colors['text/neutral']
|
|
285
|
-
input::placeholder {
|
|
286
|
-
color: ${({
|
|
267
|
+
}) => theme.colors['text/neutral'], ({
|
|
287
268
|
theme
|
|
288
|
-
}) => theme.colors['text/neutral/subtlest']
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
&:after {
|
|
292
|
-
content: '';
|
|
293
|
-
position: absolute;
|
|
294
|
-
top: ${forcePixelValue(-1)};
|
|
295
|
-
right: ${forcePixelValue(-1)};
|
|
296
|
-
bottom: ${forcePixelValue(-1)};
|
|
297
|
-
left: ${forcePixelValue(-1)};
|
|
298
|
-
|
|
299
|
-
border: ${forcePixelValue(2)} solid transparent;
|
|
300
|
-
border-radius: ${({
|
|
269
|
+
}) => theme.colors['text/neutral/subtlest'], forcePixelValue(-1), forcePixelValue(-1), forcePixelValue(-1), forcePixelValue(-1), forcePixelValue(2), ({
|
|
301
270
|
theme
|
|
302
|
-
}) => forcePixelValue(theme.radii.xs)
|
|
303
|
-
pointer-events: none;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
${props => props.validationStatus !== 'error' && !props.disabled && css`
|
|
271
|
+
}) => forcePixelValue(theme.radii.xs), props => props.validationStatus !== 'error' && !props.disabled && css`
|
|
307
272
|
&:hover:not(:focus-within) {
|
|
308
273
|
&:after {
|
|
309
274
|
border-color: ${({
|
|
@@ -311,17 +276,13 @@ const TextInputWrapper = styled.div`
|
|
|
311
276
|
}) => theme.colors['border/hovered']};
|
|
312
277
|
}
|
|
313
278
|
}
|
|
314
|
-
`
|
|
315
|
-
|
|
316
|
-
${props => props.validationStatus === 'error' && css`
|
|
279
|
+
`, props => props.validationStatus === 'error' && css`
|
|
317
280
|
&:after {
|
|
318
281
|
border-color: ${({
|
|
319
282
|
theme
|
|
320
283
|
}) => theme.colors['border/danger']};
|
|
321
284
|
}
|
|
322
|
-
`
|
|
323
|
-
|
|
324
|
-
${props => props.validationStatus !== 'error' && !props.disabled && css`
|
|
285
|
+
`, props => props.validationStatus !== 'error' && !props.disabled && css`
|
|
325
286
|
&:focus-within {
|
|
326
287
|
&:after {
|
|
327
288
|
border-color: ${({
|
|
@@ -329,9 +290,7 @@ const TextInputWrapper = styled.div`
|
|
|
329
290
|
}) => theme.colors['border/focused']};
|
|
330
291
|
}
|
|
331
292
|
}
|
|
332
|
-
`
|
|
333
|
-
|
|
334
|
-
${props => props.disabled && css`
|
|
293
|
+
`, props => props.disabled && css`
|
|
335
294
|
border-color: ${props.theme.colors['border/input']};
|
|
336
295
|
background-color: ${props.theme.colors['bg/disabled']};
|
|
337
296
|
color: ${props.theme.colors['text/disabled']};
|
|
@@ -343,38 +302,17 @@ const TextInputWrapper = styled.div`
|
|
|
343
302
|
input {
|
|
344
303
|
cursor: not-allowed;
|
|
345
304
|
}
|
|
346
|
-
`
|
|
347
|
-
|
|
348
|
-
${props => props.hasLeadingVisual && css`
|
|
305
|
+
`, props => props.hasLeadingVisual && css`
|
|
349
306
|
padding-left: ${forcePixelValue(props.theme.space[4])};
|
|
350
|
-
`
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
font-weight: inherit;
|
|
360
|
-
line-height: inherit;
|
|
361
|
-
font-family: inherit;
|
|
362
|
-
border-radius: inherit;
|
|
363
|
-
color: inherit;
|
|
364
|
-
transition: inherit;
|
|
365
|
-
width: 100%;
|
|
366
|
-
|
|
367
|
-
border: 0;
|
|
368
|
-
padding: 0;
|
|
369
|
-
background-color: transparent;
|
|
370
|
-
&:focus {
|
|
371
|
-
outline: 0;
|
|
372
|
-
}
|
|
373
|
-
`;
|
|
374
|
-
const BaseInput = styled(UnstyledInput)`
|
|
375
|
-
white-space: pre;
|
|
376
|
-
text-overflow: ellipsis;
|
|
377
|
-
`;
|
|
307
|
+
`);
|
|
308
|
+
const UnstyledInput = /*#__PURE__*/styled.input.withConfig({
|
|
309
|
+
displayName: "SearchSelectInput__UnstyledInput",
|
|
310
|
+
componentId: "sc-17l04wk-1"
|
|
311
|
+
})(["font-size:inherit;font-weight:inherit;line-height:inherit;font-family:inherit;border-radius:inherit;color:inherit;transition:inherit;width:100%;border:0;padding:0;background-color:transparent;&:focus{outline:0;}"]);
|
|
312
|
+
const BaseInput = /*#__PURE__*/styled(UnstyledInput).withConfig({
|
|
313
|
+
displayName: "SearchSelectInput__BaseInput",
|
|
314
|
+
componentId: "sc-17l04wk-2"
|
|
315
|
+
})(["white-space:pre;text-overflow:ellipsis;"]);
|
|
378
316
|
var SearchSelectInput$1 = /*#__PURE__*/forwardRef(SearchSelectInput);
|
|
379
317
|
|
|
380
318
|
export { SearchSelectInput$1 as default };
|
|
@@ -12,6 +12,9 @@ const SelectOption = ({
|
|
|
12
12
|
children: children
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
|
-
const BaseSelectOption = styled.option
|
|
15
|
+
const BaseSelectOption = /*#__PURE__*/styled.option.withConfig({
|
|
16
|
+
displayName: "SelectOption__BaseSelectOption",
|
|
17
|
+
componentId: "sc-1b9xkqd-0"
|
|
18
|
+
})([""]);
|
|
16
19
|
|
|
17
20
|
export { SelectOption as default };
|
package/esm/core/Select/index.js
CHANGED
|
@@ -86,62 +86,31 @@ const Select = ({
|
|
|
86
86
|
})]
|
|
87
87
|
});
|
|
88
88
|
};
|
|
89
|
-
const SelectWrapper = styled.div
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
border-style: solid;
|
|
94
|
-
border-radius: ${({
|
|
89
|
+
const SelectWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
90
|
+
displayName: "Select__SelectWrapper",
|
|
91
|
+
componentId: "sc-1gz532j-0"
|
|
92
|
+
})(["position:relative;width:", ";border-width:", ";border-style:solid;border-radius:", ";border-color:", ";background-color:", ";display:inline-flex;align-items:center;font-size:", ";font-weight:", ";line-height:", ";color:", ";", " &:after{content:'';position:absolute;top:", ";right:", ";bottom:", ";left:", ";border:", " solid transparent;border-radius:", ";pointer-events:none;}", " ", " ", " ", ";", " transition:background-color 100ms;&:after{transition:border-color 100ms;}"], forcePixelValue('100%'), forcePixelValue(1), ({
|
|
95
93
|
theme
|
|
96
|
-
}) => forcePixelValue(theme.radii.xs)
|
|
97
|
-
border-color: ${({
|
|
94
|
+
}) => forcePixelValue(theme.radii.xs), ({
|
|
98
95
|
theme
|
|
99
|
-
}) => theme.colors['border/input']
|
|
100
|
-
background-color: ${({
|
|
96
|
+
}) => theme.colors['border/input'], ({
|
|
101
97
|
theme
|
|
102
|
-
}) => theme.colors['bg/input']
|
|
103
|
-
display: inline-flex;
|
|
104
|
-
align-items: center;
|
|
105
|
-
|
|
106
|
-
font-size: ${({
|
|
98
|
+
}) => theme.colors['bg/input'], ({
|
|
107
99
|
theme
|
|
108
|
-
}) => forcePixelValue(theme.fontSizes.xs)
|
|
109
|
-
font-weight: ${({
|
|
100
|
+
}) => forcePixelValue(theme.fontSizes.xs), ({
|
|
110
101
|
theme
|
|
111
|
-
}) => theme.fontWeights.medium
|
|
112
|
-
line-height: ${({
|
|
102
|
+
}) => theme.fontWeights.medium, ({
|
|
113
103
|
theme
|
|
114
|
-
}) => theme.lineHeights[2]
|
|
115
|
-
color: ${({
|
|
104
|
+
}) => theme.lineHeights[2], ({
|
|
116
105
|
theme
|
|
117
|
-
}) => theme.colors['text/neutral']
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* placeholder style
|
|
121
|
-
*/
|
|
122
|
-
${({
|
|
106
|
+
}) => theme.colors['text/neutral'], ({
|
|
123
107
|
theme,
|
|
124
108
|
isValueEmpty
|
|
125
109
|
}) => isValueEmpty ? css`
|
|
126
110
|
color: ${theme.colors['text/neutral/subtlest']};
|
|
127
|
-
` : null
|
|
128
|
-
|
|
129
|
-
&:after {
|
|
130
|
-
content: '';
|
|
131
|
-
position: absolute;
|
|
132
|
-
top: ${forcePixelValue(-1)};
|
|
133
|
-
right: ${forcePixelValue(-1)};
|
|
134
|
-
bottom: ${forcePixelValue(-1)};
|
|
135
|
-
left: ${forcePixelValue(-1)};
|
|
136
|
-
|
|
137
|
-
border: ${forcePixelValue(2)} solid transparent;
|
|
138
|
-
border-radius: ${({
|
|
111
|
+
` : null, forcePixelValue(-1), forcePixelValue(-1), forcePixelValue(-1), forcePixelValue(-1), forcePixelValue(2), ({
|
|
139
112
|
theme
|
|
140
|
-
}) => forcePixelValue(theme.radii.xs)
|
|
141
|
-
pointer-events: none;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
${props => props.validationStatus !== 'error' && !props.disabled && css`
|
|
113
|
+
}) => forcePixelValue(theme.radii.xs), props => props.validationStatus !== 'error' && !props.disabled && css`
|
|
145
114
|
&:hover:not(:focus-within) {
|
|
146
115
|
&:after {
|
|
147
116
|
border-color: ${({
|
|
@@ -149,17 +118,13 @@ const SelectWrapper = styled.div`
|
|
|
149
118
|
}) => theme.colors['border/hovered']};
|
|
150
119
|
}
|
|
151
120
|
}
|
|
152
|
-
`
|
|
153
|
-
|
|
154
|
-
${props => props.validationStatus === 'error' && css`
|
|
121
|
+
`, props => props.validationStatus === 'error' && css`
|
|
155
122
|
&:after {
|
|
156
123
|
border-color: ${({
|
|
157
124
|
theme
|
|
158
125
|
}) => theme.colors['border/danger']};
|
|
159
126
|
}
|
|
160
|
-
`
|
|
161
|
-
|
|
162
|
-
${props => props.validationStatus !== 'error' && css`
|
|
127
|
+
`, props => props.validationStatus !== 'error' && css`
|
|
163
128
|
&:focus-within {
|
|
164
129
|
&:after {
|
|
165
130
|
border-color: ${({
|
|
@@ -167,9 +132,7 @@ const SelectWrapper = styled.div`
|
|
|
167
132
|
}) => theme.colors['border/focused']};
|
|
168
133
|
}
|
|
169
134
|
}
|
|
170
|
-
`
|
|
171
|
-
|
|
172
|
-
${props => props.disabled && css`
|
|
135
|
+
`, props => props.disabled && css`
|
|
173
136
|
border-color: ${props.theme.colors['border/input']};
|
|
174
137
|
background-color: ${props.theme.colors['bg/disabled']};
|
|
175
138
|
color: ${props.theme.colors['text/disabled']};
|
|
@@ -181,57 +144,28 @@ const SelectWrapper = styled.div`
|
|
|
181
144
|
select {
|
|
182
145
|
cursor: not-allowed;
|
|
183
146
|
}
|
|
184
|
-
`
|
|
185
|
-
|
|
186
|
-
${props => props.hasLeadingVisual && css`
|
|
147
|
+
`, props => props.hasLeadingVisual && css`
|
|
187
148
|
padding-left: ${forcePixelValue(props.theme.space[4])};
|
|
188
149
|
select {
|
|
189
150
|
padding-left: ${forcePixelValue(props.theme.space[2])};
|
|
190
151
|
}
|
|
191
|
-
`
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
font-weight: inherit;
|
|
201
|
-
line-height: inherit;
|
|
202
|
-
font-family: inherit;
|
|
203
|
-
border-radius: inherit;
|
|
204
|
-
color: inherit;
|
|
205
|
-
transition: inherit;
|
|
206
|
-
|
|
207
|
-
border: 0;
|
|
208
|
-
background-color: transparent;
|
|
209
|
-
width: 100%;
|
|
210
|
-
&:focus {
|
|
211
|
-
outline: 0;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
appearance: none;
|
|
215
|
-
-webkit-appearance: none;
|
|
216
|
-
-moz-appearance: none;
|
|
217
|
-
`;
|
|
218
|
-
const BaseSelect = styled(UnstyledSelect)`
|
|
219
|
-
padding-top: ${({
|
|
152
|
+
`);
|
|
153
|
+
const UnstyledSelect = /*#__PURE__*/styled.select.withConfig({
|
|
154
|
+
displayName: "Select__UnstyledSelect",
|
|
155
|
+
componentId: "sc-1gz532j-1"
|
|
156
|
+
})(["font-size:inherit;font-weight:inherit;line-height:inherit;font-family:inherit;border-radius:inherit;color:inherit;transition:inherit;border:0;background-color:transparent;width:100%;&:focus{outline:0;}appearance:none;-webkit-appearance:none;-moz-appearance:none;"]);
|
|
157
|
+
const BaseSelect = /*#__PURE__*/styled(UnstyledSelect).withConfig({
|
|
158
|
+
displayName: "Select__BaseSelect",
|
|
159
|
+
componentId: "sc-1gz532j-2"
|
|
160
|
+
})(["padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";white-space:pre;text-overflow:ellipsis;"], ({
|
|
220
161
|
theme
|
|
221
|
-
}) => forcePixelValue(theme.space[3])
|
|
222
|
-
padding-right: ${({
|
|
162
|
+
}) => forcePixelValue(theme.space[3]), ({
|
|
223
163
|
theme
|
|
224
|
-
}) => forcePixelValue(theme.space[10])
|
|
225
|
-
padding-bottom: ${({
|
|
164
|
+
}) => forcePixelValue(theme.space[10]), ({
|
|
226
165
|
theme
|
|
227
|
-
}) => forcePixelValue(theme.space[3])
|
|
228
|
-
padding-left: ${({
|
|
166
|
+
}) => forcePixelValue(theme.space[3]), ({
|
|
229
167
|
theme
|
|
230
|
-
}) => forcePixelValue(theme.space[4])
|
|
231
|
-
|
|
232
|
-
white-space: pre;
|
|
233
|
-
text-overflow: ellipsis;
|
|
234
|
-
`;
|
|
168
|
+
}) => forcePixelValue(theme.space[4]));
|
|
235
169
|
var Select$1 = Object.assign( /*#__PURE__*/forwardRef(Select), {
|
|
236
170
|
Option: SelectOption
|
|
237
171
|
});
|
package/esm/core/Space/index.js
CHANGED
|
@@ -3,10 +3,9 @@ import '../../node_modules/styled-system/dist/index.esm.js';
|
|
|
3
3
|
import { sx } from '../../utils/styled-system/index.js';
|
|
4
4
|
import { space } from '../../node_modules/@styled-system/space/dist/index.esm.js';
|
|
5
5
|
|
|
6
|
-
const Space = styled.div
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
`;
|
|
6
|
+
const Space = /*#__PURE__*/styled.div.withConfig({
|
|
7
|
+
displayName: "Space",
|
|
8
|
+
componentId: "sc-4g4g8r-0"
|
|
9
|
+
})(["width:inherit;", ";", ""], space, sx);
|
|
11
10
|
|
|
12
11
|
export { Space as default };
|
|
@@ -11,18 +11,18 @@ const spin = keyframes`
|
|
|
11
11
|
transform: rotate(360deg);
|
|
12
12
|
}
|
|
13
13
|
`;
|
|
14
|
-
const ProgressGradientSpinner = styled(ProgressGradientIcon)
|
|
15
|
-
|
|
14
|
+
const ProgressGradientSpinner = /*#__PURE__*/styled(ProgressGradientIcon).withConfig({
|
|
15
|
+
displayName: "Spinner__ProgressGradientSpinner",
|
|
16
|
+
componentId: "sc-13dlgyx-0"
|
|
17
|
+
})(["color:", ";animation:", " 1000ms infinite steps(8,end);"], ({
|
|
16
18
|
theme
|
|
17
|
-
}) => theme.colors['icon/neutral']
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
}) => theme.colors['icon/neutral'], spin);
|
|
20
|
+
const ProgressLineSpinner = /*#__PURE__*/styled(ProgressLineIcon).withConfig({
|
|
21
|
+
displayName: "Spinner__ProgressLineSpinner",
|
|
22
|
+
componentId: "sc-13dlgyx-1"
|
|
23
|
+
})(["color:", ";animation:", " 1000ms infinite linear;"], ({
|
|
22
24
|
theme
|
|
23
|
-
}) => theme.colors['icon/neutral']
|
|
24
|
-
animation: ${spin} 1000ms infinite linear;
|
|
25
|
-
`;
|
|
25
|
+
}) => theme.colors['icon/neutral'], spin);
|
|
26
26
|
const Spinner = /*#__PURE__*/forwardRef(({
|
|
27
27
|
variant: propsVariant,
|
|
28
28
|
width = 32,
|
package/esm/core/Stack/index.js
CHANGED
|
@@ -23,7 +23,10 @@ const Stack = /*#__PURE__*/forwardRef(({
|
|
|
23
23
|
...props,
|
|
24
24
|
children: children
|
|
25
25
|
}));
|
|
26
|
-
const BaseStack = styled(View)({
|
|
26
|
+
const BaseStack = /*#__PURE__*/styled(View).withConfig({
|
|
27
|
+
displayName: "Stack__BaseStack",
|
|
28
|
+
componentId: "sc-1lqh56h-0"
|
|
29
|
+
})({
|
|
27
30
|
display: 'flex',
|
|
28
31
|
flexDirection: 'row',
|
|
29
32
|
flexWrap: 'wrap'
|