@teamturing/react-kit 2.60.3 → 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/index.js +671 -1674
- 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 +5 -2
- 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 +5 -2
- 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 +5 -10
- 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/Switch/index.js
CHANGED
|
@@ -18,80 +18,32 @@ const Switch = ({
|
|
|
18
18
|
...props
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
const UnstyledSwitch = styled.input.attrs({
|
|
21
|
+
const UnstyledSwitch = /*#__PURE__*/styled.input.attrs({
|
|
22
22
|
type: 'checkbox'
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
width: ${forcePixelValue(36)};
|
|
32
|
-
height: ${forcePixelValue(20)};
|
|
33
|
-
|
|
34
|
-
border-radius: ${({
|
|
23
|
+
}).withConfig({
|
|
24
|
+
displayName: "Switch__UnstyledSwitch",
|
|
25
|
+
componentId: "sc-fz8rku-0"
|
|
26
|
+
})(["appearance:none;", ""], sx);
|
|
27
|
+
const BaseSwitch = /*#__PURE__*/styled(UnstyledSwitch).withConfig({
|
|
28
|
+
displayName: "Switch__BaseSwitch",
|
|
29
|
+
componentId: "sc-fz8rku-1"
|
|
30
|
+
})(["position:relative;width:", ";height:", ";border-radius:", ";cursor:pointer;background-color:", ";transition:background-color 200ms;&::before{content:'';position:absolute;width:", ";height:", ";background-color:", ";top:", ";border-radius:", ";transform:translateX(", ");transition:transform 200ms;}&:disabled{background-color:", ";cursor:not-allowed;}&:checked{background-color:", ";&::before{transform:translateX(", ");}&:disabled{background-color:", ";}}&:focus-visible{outline-width:", ";outline-style:solid;outline-color:", ";}", ""], forcePixelValue(36), forcePixelValue(20), ({
|
|
35
31
|
theme
|
|
36
|
-
}) => `${forcePixelValue(theme.radii.full)}
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
|
|
39
|
-
background-color: ${({
|
|
32
|
+
}) => `${forcePixelValue(theme.radii.full)}`, ({
|
|
40
33
|
theme
|
|
41
|
-
}) => theme.colors['bg/neutral']
|
|
42
|
-
|
|
43
|
-
transition: background-color 200ms;
|
|
44
|
-
|
|
45
|
-
&::before {
|
|
46
|
-
content: '';
|
|
47
|
-
position: absolute;
|
|
48
|
-
width: ${forcePixelValue(16)};
|
|
49
|
-
height: ${forcePixelValue(16)};
|
|
50
|
-
background-color: ${({
|
|
34
|
+
}) => theme.colors['bg/neutral'], forcePixelValue(16), forcePixelValue(16), ({
|
|
51
35
|
theme
|
|
52
|
-
}) => theme.colors['surface']
|
|
53
|
-
top: ${forcePixelValue(2)};
|
|
54
|
-
border-radius: ${({
|
|
36
|
+
}) => theme.colors['surface'], forcePixelValue(2), ({
|
|
55
37
|
theme
|
|
56
|
-
}) => `${forcePixelValue(theme.radii.full)}
|
|
57
|
-
|
|
58
|
-
transform: translateX(${forcePixelValue(2)});
|
|
59
|
-
transition: transform 200ms;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&:disabled {
|
|
63
|
-
background-color: ${({
|
|
38
|
+
}) => `${forcePixelValue(theme.radii.full)}`, forcePixelValue(2), ({
|
|
64
39
|
theme
|
|
65
|
-
}) => theme.colors['bg/disabled']
|
|
66
|
-
cursor: not-allowed;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&:checked {
|
|
70
|
-
background-color: ${({
|
|
40
|
+
}) => theme.colors['bg/disabled'], ({
|
|
71
41
|
theme
|
|
72
|
-
}) => theme.colors['bg/primary']
|
|
73
|
-
|
|
74
|
-
&::before {
|
|
75
|
-
transform: translateX(${forcePixelValue(36 - 16 - 2)});
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&:disabled {
|
|
79
|
-
background-color: ${({
|
|
42
|
+
}) => theme.colors['bg/primary'], forcePixelValue(36 - 16 - 2), ({
|
|
80
43
|
theme
|
|
81
|
-
}) => theme.colors['bg/primary/disabled']
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&:focus-visible {
|
|
86
|
-
outline-width: ${forcePixelValue(2)};
|
|
87
|
-
outline-style: solid;
|
|
88
|
-
outline-color: ${({
|
|
44
|
+
}) => theme.colors['bg/primary/disabled'], forcePixelValue(2), ({
|
|
89
45
|
theme
|
|
90
|
-
}) => theme.colors['border/focused']
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
${sx}
|
|
94
|
-
`;
|
|
46
|
+
}) => theme.colors['border/focused'], sx);
|
|
95
47
|
var Switch$1 = /*#__PURE__*/forwardRef(Switch);
|
|
96
48
|
|
|
97
49
|
export { Switch$1 as default };
|
package/esm/core/Tab/TabItem.js
CHANGED
|
@@ -60,7 +60,10 @@ const TabItem = ({
|
|
|
60
60
|
})
|
|
61
61
|
});
|
|
62
62
|
};
|
|
63
|
-
const BaseTabItem = styled(UnstyledButton)(
|
|
63
|
+
const BaseTabItem = /*#__PURE__*/styled(UnstyledButton).withConfig({
|
|
64
|
+
displayName: "TabItem__BaseTabItem",
|
|
65
|
+
componentId: "sc-1bu7a1f-0"
|
|
66
|
+
})(({
|
|
64
67
|
theme
|
|
65
68
|
}) => ({
|
|
66
69
|
'width': 'initial',
|
package/esm/core/Text/index.js
CHANGED
|
@@ -5,9 +5,12 @@ import { variant } from '../../node_modules/@styled-system/variant/dist/index.es
|
|
|
5
5
|
import { compose } from '../../node_modules/@styled-system/core/dist/index.esm.js';
|
|
6
6
|
import { color } from '../../node_modules/@styled-system/color/dist/index.esm.js';
|
|
7
7
|
|
|
8
|
-
const Text = styled.span.attrs(props => ({
|
|
8
|
+
const Text = /*#__PURE__*/styled.span.attrs(props => ({
|
|
9
9
|
color: props.color ?? 'text/neutral'
|
|
10
|
-
}))({
|
|
10
|
+
})).withConfig({
|
|
11
|
+
displayName: "Text",
|
|
12
|
+
componentId: "sc-yuorjy-0"
|
|
13
|
+
})({
|
|
11
14
|
'display': 'block',
|
|
12
15
|
'whiteSpace': 'pre-wrap',
|
|
13
16
|
'& > span': {
|
|
@@ -16,43 +16,22 @@ const TextInputTrailingAction = ({
|
|
|
16
16
|
"aria-disabled": disabled,
|
|
17
17
|
children: /*#__PURE__*/jsx(Icon, {})
|
|
18
18
|
});
|
|
19
|
-
const BaseTextInputTrailingAction = styled(UnstyledButton)
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
const BaseTextInputTrailingAction = /*#__PURE__*/styled(UnstyledButton).withConfig({
|
|
20
|
+
displayName: "TextInputTrailingAction__BaseTextInputTrailingAction",
|
|
21
|
+
componentId: "sc-1fgbvb1-0"
|
|
22
|
+
})(["display:inline-flex;padding:", ";background-color:", ";border-radius:", ";& svg{width:", ";height:", ";color:", ";}&:hover{background-color:", ";}&[aria-disabled='true']{cursor:not-allowed;& svg{color:", ";}}", ""], ({
|
|
22
23
|
theme
|
|
23
|
-
}) => forcePixelValue(theme.space[2])
|
|
24
|
-
background-color: ${({
|
|
24
|
+
}) => forcePixelValue(theme.space[2]), ({
|
|
25
25
|
theme
|
|
26
|
-
}) => theme.colors['bg/neutral/subtler']
|
|
27
|
-
border-radius: ${({
|
|
26
|
+
}) => theme.colors['bg/neutral/subtler'], ({
|
|
28
27
|
theme
|
|
29
|
-
}) => forcePixelValue(theme.radii.full)
|
|
30
|
-
|
|
31
|
-
& svg {
|
|
32
|
-
width: ${forcePixelValue(16)};
|
|
33
|
-
height: ${forcePixelValue(16)};
|
|
34
|
-
color: ${({
|
|
28
|
+
}) => forcePixelValue(theme.radii.full), forcePixelValue(16), forcePixelValue(16), ({
|
|
35
29
|
theme
|
|
36
|
-
}) => theme.colors['icon/neutral/bolder']
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&:hover {
|
|
40
|
-
background-color: ${({
|
|
30
|
+
}) => theme.colors['icon/neutral/bolder'], ({
|
|
41
31
|
theme
|
|
42
|
-
}) => theme.colors['bg/neutral/subtler/hovered']
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&[aria-disabled='true'] {
|
|
46
|
-
cursor: not-allowed;
|
|
47
|
-
& svg {
|
|
48
|
-
color: ${({
|
|
32
|
+
}) => theme.colors['bg/neutral/subtler/hovered'], ({
|
|
49
33
|
theme
|
|
50
|
-
}) => theme.colors['icon/disabled']
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
${sx}
|
|
55
|
-
`;
|
|
34
|
+
}) => theme.colors['icon/disabled'], sx);
|
|
56
35
|
var TextInputTrailingAction$1 = /*#__PURE__*/forwardRef(TextInputTrailingAction);
|
|
57
36
|
|
|
58
37
|
export { TextInputTrailingAction$1 as default };
|
|
@@ -79,58 +79,28 @@ const TextInput = ({
|
|
|
79
79
|
})]
|
|
80
80
|
});
|
|
81
81
|
};
|
|
82
|
-
const TextInputWrapper = styled.div
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
border-style: solid;
|
|
87
|
-
border-radius: ${({
|
|
88
|
-
theme
|
|
89
|
-
}) => forcePixelValue(theme.radii.xs)};
|
|
90
|
-
border-color: ${({
|
|
91
|
-
theme
|
|
92
|
-
}) => theme.colors['border/input']};
|
|
93
|
-
background-color: ${({
|
|
94
|
-
theme
|
|
95
|
-
}) => theme.colors['bg/input']};
|
|
96
|
-
cursor: text;
|
|
97
|
-
display: inline-flex;
|
|
98
|
-
align-items: center;
|
|
99
|
-
|
|
100
|
-
font-size: ${({
|
|
82
|
+
const TextInputWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
83
|
+
displayName: "TextInput__TextInputWrapper",
|
|
84
|
+
componentId: "sc-12wqpup-0"
|
|
85
|
+
})(["position:relative;width:", ";border-width:", ";border-style:solid;border-radius:", ";border-color:", ";background-color:", ";cursor:text;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), ({
|
|
101
86
|
theme
|
|
102
|
-
}) => forcePixelValue(theme.
|
|
103
|
-
font-weight: ${({
|
|
87
|
+
}) => forcePixelValue(theme.radii.xs), ({
|
|
104
88
|
theme
|
|
105
|
-
}) => theme.
|
|
106
|
-
line-height: ${({
|
|
89
|
+
}) => theme.colors['border/input'], ({
|
|
107
90
|
theme
|
|
108
|
-
}) => theme.
|
|
109
|
-
color: ${({
|
|
91
|
+
}) => theme.colors['bg/input'], ({
|
|
110
92
|
theme
|
|
111
|
-
}) => theme.
|
|
112
|
-
input::placeholder {
|
|
113
|
-
color: ${({
|
|
93
|
+
}) => forcePixelValue(theme.fontSizes.xs), ({
|
|
114
94
|
theme
|
|
115
|
-
}) => theme.
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
&:after {
|
|
119
|
-
content: '';
|
|
120
|
-
position: absolute;
|
|
121
|
-
top: ${forcePixelValue(-1)};
|
|
122
|
-
right: ${forcePixelValue(-1)};
|
|
123
|
-
bottom: ${forcePixelValue(-1)};
|
|
124
|
-
left: ${forcePixelValue(-1)};
|
|
125
|
-
|
|
126
|
-
border: ${forcePixelValue(2)} solid transparent;
|
|
127
|
-
border-radius: ${({
|
|
95
|
+
}) => theme.fontWeights.medium, ({
|
|
128
96
|
theme
|
|
129
|
-
}) =>
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
97
|
+
}) => theme.lineHeights[2], ({
|
|
98
|
+
theme
|
|
99
|
+
}) => theme.colors['text/neutral'], ({
|
|
100
|
+
theme
|
|
101
|
+
}) => theme.colors['text/neutral/subtlest'], forcePixelValue(-1), forcePixelValue(-1), forcePixelValue(-1), forcePixelValue(-1), forcePixelValue(2), ({
|
|
102
|
+
theme
|
|
103
|
+
}) => forcePixelValue(theme.radii.xs), props => props.validationStatus !== 'error' && !props.disabled && css`
|
|
134
104
|
&:hover:not(:focus-within) {
|
|
135
105
|
&:after {
|
|
136
106
|
border-color: ${({
|
|
@@ -138,17 +108,13 @@ const TextInputWrapper = styled.div`
|
|
|
138
108
|
}) => theme.colors['border/hovered']};
|
|
139
109
|
}
|
|
140
110
|
}
|
|
141
|
-
`
|
|
142
|
-
|
|
143
|
-
${props => props.validationStatus === 'error' && css`
|
|
111
|
+
`, props => props.validationStatus === 'error' && css`
|
|
144
112
|
&:after {
|
|
145
113
|
border-color: ${({
|
|
146
114
|
theme
|
|
147
115
|
}) => theme.colors['border/danger']};
|
|
148
116
|
}
|
|
149
|
-
`
|
|
150
|
-
|
|
151
|
-
${props => props.validationStatus !== 'error' && css`
|
|
117
|
+
`, props => props.validationStatus !== 'error' && css`
|
|
152
118
|
&:focus-within {
|
|
153
119
|
&:after {
|
|
154
120
|
border-color: ${({
|
|
@@ -156,9 +122,7 @@ const TextInputWrapper = styled.div`
|
|
|
156
122
|
}) => theme.colors['border/focused']};
|
|
157
123
|
}
|
|
158
124
|
}
|
|
159
|
-
`
|
|
160
|
-
|
|
161
|
-
${props => props.disabled && css`
|
|
125
|
+
`, props => props.disabled && css`
|
|
162
126
|
border-color: ${props.theme.colors['border/input']};
|
|
163
127
|
background-color: ${props.theme.colors['bg/disabled']};
|
|
164
128
|
color: ${props.theme.colors['text/disabled']};
|
|
@@ -170,67 +134,36 @@ const TextInputWrapper = styled.div`
|
|
|
170
134
|
input {
|
|
171
135
|
cursor: not-allowed;
|
|
172
136
|
}
|
|
173
|
-
`
|
|
174
|
-
|
|
175
|
-
${props => props.hasLeadingVisual && css`
|
|
137
|
+
`, props => props.hasLeadingVisual && css`
|
|
176
138
|
padding-left: ${forcePixelValue(props.theme.space[4])};
|
|
177
139
|
input {
|
|
178
140
|
padding-left: ${forcePixelValue(props.theme.space[2])};
|
|
179
141
|
}
|
|
180
|
-
`
|
|
181
|
-
|
|
182
|
-
${props => props.hasTrailingVisual && css`
|
|
142
|
+
`, props => props.hasTrailingVisual && css`
|
|
183
143
|
padding-right: ${forcePixelValue(props.theme.space[4])};
|
|
184
|
-
`
|
|
185
|
-
|
|
186
|
-
${props => props.hasTrailingAction && css`
|
|
144
|
+
`, props => props.hasTrailingAction && css`
|
|
187
145
|
padding-right: ${forcePixelValue(props.theme.space[2])};
|
|
188
|
-
`
|
|
189
|
-
|
|
190
|
-
${props => (props.hasTrailingVisual || props.hasTrailingAction) && css`
|
|
146
|
+
`, props => (props.hasTrailingVisual || props.hasTrailingAction) && css`
|
|
191
147
|
input {
|
|
192
148
|
padding-right: ${forcePixelValue(props.theme.space[2])};
|
|
193
149
|
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
transition: inherit;
|
|
212
|
-
|
|
213
|
-
border: 0;
|
|
214
|
-
background-color: transparent;
|
|
215
|
-
width: 100%;
|
|
216
|
-
&:focus {
|
|
217
|
-
outline: 0;
|
|
218
|
-
}
|
|
219
|
-
`;
|
|
220
|
-
const BaseInput = styled(UnstyledInput)`
|
|
221
|
-
padding-top: ${({
|
|
222
|
-
theme
|
|
223
|
-
}) => forcePixelValue(theme.space[3])};
|
|
224
|
-
padding-right: ${({
|
|
225
|
-
theme
|
|
226
|
-
}) => forcePixelValue(theme.space[4])};
|
|
227
|
-
padding-bottom: ${({
|
|
228
|
-
theme
|
|
229
|
-
}) => forcePixelValue(theme.space[3])};
|
|
230
|
-
padding-left: ${({
|
|
231
|
-
theme
|
|
232
|
-
}) => forcePixelValue(theme.space[4])};
|
|
233
|
-
`;
|
|
150
|
+
`, sx);
|
|
151
|
+
const UnstyledInput = /*#__PURE__*/styled.input.withConfig({
|
|
152
|
+
displayName: "TextInput__UnstyledInput",
|
|
153
|
+
componentId: "sc-12wqpup-1"
|
|
154
|
+
})(["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;}"]);
|
|
155
|
+
const BaseInput = /*#__PURE__*/styled(UnstyledInput).withConfig({
|
|
156
|
+
displayName: "TextInput__BaseInput",
|
|
157
|
+
componentId: "sc-12wqpup-2"
|
|
158
|
+
})(["padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";"], ({
|
|
159
|
+
theme
|
|
160
|
+
}) => forcePixelValue(theme.space[3]), ({
|
|
161
|
+
theme
|
|
162
|
+
}) => forcePixelValue(theme.space[4]), ({
|
|
163
|
+
theme
|
|
164
|
+
}) => forcePixelValue(theme.space[3]), ({
|
|
165
|
+
theme
|
|
166
|
+
}) => forcePixelValue(theme.space[4]));
|
|
234
167
|
var TextInput$1 = Object.assign( /*#__PURE__*/forwardRef(TextInput), {
|
|
235
168
|
TrailingAction: TextInputTrailingAction
|
|
236
169
|
});
|
|
@@ -51,89 +51,36 @@ const Textarea = /*#__PURE__*/forwardRef(({
|
|
|
51
51
|
})]
|
|
52
52
|
});
|
|
53
53
|
});
|
|
54
|
-
const TextareaWrapper = styled.div
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
border-style: solid;
|
|
59
|
-
border-radius: ${({
|
|
60
|
-
theme
|
|
61
|
-
}) => forcePixelValue(theme.radii.xs)};
|
|
62
|
-
border-color: ${({
|
|
63
|
-
theme
|
|
64
|
-
}) => theme.colors['border/input']};
|
|
65
|
-
background-color: ${({
|
|
66
|
-
theme
|
|
67
|
-
}) => theme.colors['bg/input']};
|
|
68
|
-
cursor: text;
|
|
69
|
-
display: inline-flex;
|
|
70
|
-
flex-direction: column;
|
|
71
|
-
align-items: center;
|
|
72
|
-
|
|
73
|
-
font-size: ${({
|
|
74
|
-
theme
|
|
75
|
-
}) => forcePixelValue(theme.fontSizes.xs)};
|
|
76
|
-
font-weight: ${({
|
|
77
|
-
theme
|
|
78
|
-
}) => theme.fontWeights.medium};
|
|
79
|
-
line-height: ${({
|
|
80
|
-
theme
|
|
81
|
-
}) => theme.lineHeights[2]};
|
|
82
|
-
color: ${({
|
|
83
|
-
theme
|
|
84
|
-
}) => theme.colors['text/neutral']};
|
|
85
|
-
textarea::placeholder {
|
|
86
|
-
color: ${({
|
|
87
|
-
theme
|
|
88
|
-
}) => theme.colors['text/neutral/subtlest']};
|
|
89
|
-
}
|
|
90
|
-
textarea {
|
|
91
|
-
font-size: inherit;
|
|
92
|
-
font-weight: inherit;
|
|
93
|
-
line-height: inherit;
|
|
94
|
-
font-family: inherit;
|
|
95
|
-
border-radius: inherit;
|
|
96
|
-
color: inherit;
|
|
97
|
-
transition: inherit;
|
|
98
|
-
|
|
99
|
-
border: 0;
|
|
100
|
-
background-color: transparent;
|
|
101
|
-
width: 100%;
|
|
102
|
-
&:focus {
|
|
103
|
-
outline: 0;
|
|
104
|
-
}
|
|
105
|
-
resize: none;
|
|
106
|
-
|
|
107
|
-
padding-top: ${({
|
|
54
|
+
const TextareaWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
55
|
+
displayName: "Textarea__TextareaWrapper",
|
|
56
|
+
componentId: "sc-mqvox2-0"
|
|
57
|
+
})(["position:relative;width:", ";border-width:", ";border-style:solid;border-radius:", ";border-color:", ";background-color:", ";cursor:text;display:inline-flex;flex-direction:column;align-items:center;font-size:", ";font-weight:", ";line-height:", ";color:", ";textarea::placeholder{color:", ";}textarea{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;}resize:none;padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";}&:after{content:'';position:absolute;top:", ";right:", ";bottom:", ";left:", ";border:", " solid transparent;border-radius:", ";pointer-events:none;}", " ", " ", " ", ";"], forcePixelValue('100%'), forcePixelValue(1), ({
|
|
108
58
|
theme
|
|
109
|
-
}) => forcePixelValue(theme.
|
|
110
|
-
padding-right: ${({
|
|
59
|
+
}) => forcePixelValue(theme.radii.xs), ({
|
|
111
60
|
theme
|
|
112
|
-
}) =>
|
|
113
|
-
padding-bottom: ${({
|
|
61
|
+
}) => theme.colors['border/input'], ({
|
|
114
62
|
theme
|
|
115
|
-
}) =>
|
|
116
|
-
padding-left: ${({
|
|
63
|
+
}) => theme.colors['bg/input'], ({
|
|
117
64
|
theme
|
|
118
|
-
}) => forcePixelValue(theme.
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
&:after {
|
|
122
|
-
content: '';
|
|
123
|
-
position: absolute;
|
|
124
|
-
top: ${forcePixelValue(-1)};
|
|
125
|
-
right: ${forcePixelValue(-1)};
|
|
126
|
-
bottom: ${forcePixelValue(-1)};
|
|
127
|
-
left: ${forcePixelValue(-1)};
|
|
128
|
-
|
|
129
|
-
border: ${forcePixelValue(2)} solid transparent;
|
|
130
|
-
border-radius: ${({
|
|
65
|
+
}) => forcePixelValue(theme.fontSizes.xs), ({
|
|
131
66
|
theme
|
|
132
|
-
}) =>
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
67
|
+
}) => theme.fontWeights.medium, ({
|
|
68
|
+
theme
|
|
69
|
+
}) => theme.lineHeights[2], ({
|
|
70
|
+
theme
|
|
71
|
+
}) => theme.colors['text/neutral'], ({
|
|
72
|
+
theme
|
|
73
|
+
}) => theme.colors['text/neutral/subtlest'], ({
|
|
74
|
+
theme
|
|
75
|
+
}) => forcePixelValue(theme.space['3']), ({
|
|
76
|
+
theme
|
|
77
|
+
}) => forcePixelValue(theme.space['4']), ({
|
|
78
|
+
theme
|
|
79
|
+
}) => forcePixelValue(theme.space['3']), ({
|
|
80
|
+
theme
|
|
81
|
+
}) => forcePixelValue(theme.space['4']), forcePixelValue(-1), forcePixelValue(-1), forcePixelValue(-1), forcePixelValue(-1), forcePixelValue(2), ({
|
|
82
|
+
theme
|
|
83
|
+
}) => forcePixelValue(theme.radii.xs), props => props.validationStatus !== 'error' && !props.disabled && css`
|
|
137
84
|
&:hover:not(:focus-within) {
|
|
138
85
|
&:after {
|
|
139
86
|
border-color: ${({
|
|
@@ -141,17 +88,13 @@ const TextareaWrapper = styled.div`
|
|
|
141
88
|
}) => theme.colors['border/hovered']};
|
|
142
89
|
}
|
|
143
90
|
}
|
|
144
|
-
`
|
|
145
|
-
|
|
146
|
-
${props => props.validationStatus === 'error' && css`
|
|
91
|
+
`, props => props.validationStatus === 'error' && css`
|
|
147
92
|
&:after {
|
|
148
93
|
border-color: ${({
|
|
149
94
|
theme
|
|
150
95
|
}) => theme.colors['border/danger']};
|
|
151
96
|
}
|
|
152
|
-
`
|
|
153
|
-
|
|
154
|
-
${props => props.validationStatus !== 'error' && css`
|
|
97
|
+
`, props => props.validationStatus !== 'error' && css`
|
|
155
98
|
&:focus-within {
|
|
156
99
|
&:after {
|
|
157
100
|
border-color: ${({
|
|
@@ -159,9 +102,7 @@ const TextareaWrapper = styled.div`
|
|
|
159
102
|
}) => theme.colors['border/focused']};
|
|
160
103
|
}
|
|
161
104
|
}
|
|
162
|
-
`
|
|
163
|
-
|
|
164
|
-
${props => props.disabled && css`
|
|
105
|
+
`, props => props.disabled && css`
|
|
165
106
|
border-color: ${props.theme.colors['border/input']};
|
|
166
107
|
background-color: ${props.theme.colors['bg/disabled']};
|
|
167
108
|
color: ${props.theme.colors['text/disabled']};
|
|
@@ -174,34 +115,24 @@ const TextareaWrapper = styled.div`
|
|
|
174
115
|
textarea {
|
|
175
116
|
cursor: not-allowed;
|
|
176
117
|
}
|
|
177
|
-
`
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
padding-right: ${({
|
|
118
|
+
`);
|
|
119
|
+
const TextareaCount = /*#__PURE__*/styled.div.withConfig({
|
|
120
|
+
displayName: "Textarea__TextareaCount",
|
|
121
|
+
componentId: "sc-mqvox2-1"
|
|
122
|
+
})(["width:100%;padding-right:", ";padding-bottom:", ";padding-left:", ";font-size:", ";font-weight:", ";line-height:", ";color:", ";text-align:end;"], ({
|
|
183
123
|
theme
|
|
184
|
-
}) => forcePixelValue(theme.space[4])
|
|
185
|
-
padding-bottom: ${({
|
|
124
|
+
}) => forcePixelValue(theme.space[4]), ({
|
|
186
125
|
theme
|
|
187
|
-
}) => forcePixelValue(theme.space[3])
|
|
188
|
-
padding-left: ${({
|
|
126
|
+
}) => forcePixelValue(theme.space[3]), ({
|
|
189
127
|
theme
|
|
190
|
-
}) => forcePixelValue(theme.space[4])
|
|
191
|
-
|
|
192
|
-
font-size: ${({
|
|
128
|
+
}) => forcePixelValue(theme.space[4]), ({
|
|
193
129
|
theme
|
|
194
|
-
}) => forcePixelValue(theme.fontSizes.xxs)
|
|
195
|
-
font-weight: ${({
|
|
130
|
+
}) => forcePixelValue(theme.fontSizes.xxs), ({
|
|
196
131
|
theme
|
|
197
|
-
}) => forcePixelValue(theme.fontWeights.medium)
|
|
198
|
-
line-height: ${({
|
|
132
|
+
}) => forcePixelValue(theme.fontWeights.medium), ({
|
|
199
133
|
theme
|
|
200
|
-
}) => theme.lineHeights[2]
|
|
201
|
-
color: ${({
|
|
134
|
+
}) => theme.lineHeights[2], ({
|
|
202
135
|
theme
|
|
203
|
-
}) => theme.colors['text/neutral/subtlest']
|
|
204
|
-
text-align: end;
|
|
205
|
-
`;
|
|
136
|
+
}) => theme.colors['text/neutral/subtlest']);
|
|
206
137
|
|
|
207
138
|
export { Textarea as default };
|
package/esm/core/Toast/index.js
CHANGED
|
@@ -19,7 +19,10 @@ const Toast = ({
|
|
|
19
19
|
children: [/*#__PURE__*/jsx(IconByVariant, {}), children]
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
|
-
const BaseToast = styled.div(
|
|
22
|
+
const BaseToast = /*#__PURE__*/styled.div.withConfig({
|
|
23
|
+
displayName: "Toast__BaseToast",
|
|
24
|
+
componentId: "sc-1n1weew-0"
|
|
25
|
+
})(({
|
|
23
26
|
theme
|
|
24
27
|
}) => ({
|
|
25
28
|
'display': 'flex',
|
|
@@ -75,54 +75,25 @@ const tooltipAppear = keyframes`
|
|
|
75
75
|
opacity: 1;
|
|
76
76
|
}
|
|
77
77
|
`;
|
|
78
|
-
const StyledBaseTooltipContent = styled.div
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
const StyledBaseTooltipContent = /*#__PURE__*/styled.div.withConfig({
|
|
79
|
+
displayName: "BaseTooltip__StyledBaseTooltipContent",
|
|
80
|
+
componentId: "sc-1devpfm-0"
|
|
81
|
+
})(["z-index:99999;background-color:", ";border-radius:", ";box-shadow:", ";padding:", ";font-size:", ";font-weight:", ";line-height:", ";-webkit-font-smoothing:subpixel-antialiased;color:", ";text-align:center;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-wrap:break-word;white-space:pre;pointer-events:none;width:max-content;max-width:", ";word-wrap:break-word;white-space:pre-line;border-collapse:separate;animation-name:", ";animation-duration:100ms;animation-fill-mode:forwards;animation-timing-function:ease-in;", ""], ({
|
|
81
82
|
theme
|
|
82
|
-
}) => theme.colors['bg/neutral/bolder']
|
|
83
|
-
border-radius: ${({
|
|
83
|
+
}) => theme.colors['bg/neutral/bolder'], ({
|
|
84
84
|
theme
|
|
85
|
-
}) => forcePixelValue(theme.radii.xs)
|
|
86
|
-
box-shadow: ${({
|
|
85
|
+
}) => forcePixelValue(theme.radii.xs), ({
|
|
87
86
|
theme
|
|
88
|
-
}) => theme.shadows['shadow/overlay']
|
|
89
|
-
padding: ${({
|
|
87
|
+
}) => theme.shadows['shadow/overlay'], ({
|
|
90
88
|
theme
|
|
91
|
-
}) => `${forcePixelValue(theme.space[2])} ${forcePixelValue(theme.space[3])}
|
|
92
|
-
font-size: ${({
|
|
89
|
+
}) => `${forcePixelValue(theme.space[2])} ${forcePixelValue(theme.space[3])}`, ({
|
|
93
90
|
theme
|
|
94
|
-
}) => forcePixelValue(theme.fontSizes.xxs)
|
|
95
|
-
font-weight: ${({
|
|
91
|
+
}) => forcePixelValue(theme.fontSizes.xxs), ({
|
|
96
92
|
theme
|
|
97
|
-
}) => theme.fontWeights.medium
|
|
98
|
-
line-height: ${({
|
|
93
|
+
}) => theme.fontWeights.medium, ({
|
|
99
94
|
theme
|
|
100
|
-
}) => theme.lineHeights[2]
|
|
101
|
-
-webkit-font-smoothing: subpixel-antialiased;
|
|
102
|
-
color: ${({
|
|
95
|
+
}) => theme.lineHeights[2], ({
|
|
103
96
|
theme
|
|
104
|
-
}) => theme.colors['text/inverse']
|
|
105
|
-
text-align: center;
|
|
106
|
-
text-decoration: none;
|
|
107
|
-
text-shadow: none;
|
|
108
|
-
text-transform: none;
|
|
109
|
-
letter-spacing: normal;
|
|
110
|
-
word-wrap: break-word;
|
|
111
|
-
white-space: pre;
|
|
112
|
-
pointer-events: none;
|
|
113
|
-
|
|
114
|
-
width: max-content;
|
|
115
|
-
max-width: ${forcePixelValue(240)};
|
|
116
|
-
word-wrap: break-word;
|
|
117
|
-
white-space: pre-line;
|
|
118
|
-
border-collapse: separate;
|
|
119
|
-
|
|
120
|
-
animation-name: ${tooltipAppear};
|
|
121
|
-
animation-duration: 100ms;
|
|
122
|
-
animation-fill-mode: forwards;
|
|
123
|
-
animation-timing-function: ease-in;
|
|
124
|
-
|
|
125
|
-
${sx}
|
|
126
|
-
`;
|
|
97
|
+
}) => theme.colors['text/inverse'], forcePixelValue(240), tooltipAppear, sx);
|
|
127
98
|
|
|
128
99
|
export { BaseTooltip, BaseTooltipContent, BaseTooltipTrigger };
|