@tidbcloud/uikit 2.0.0-beta.73 → 2.0.0-beta.74
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/CHANGELOG.md
CHANGED
|
@@ -20,11 +20,16 @@ const TextInput = React.forwardRef((props, ref) => {
|
|
|
20
20
|
}
|
|
21
21
|
return {
|
|
22
22
|
wrapper: {
|
|
23
|
-
display: "flex"
|
|
23
|
+
display: "flex",
|
|
24
|
+
// see https://github.com/mantinedev/mantine/blob/master/packages/%40mantine/core/src/components/Input/Input.module.css#L70C4-L70C33I
|
|
25
|
+
// correct input left padding
|
|
26
|
+
"&[data-with-left-section]": {
|
|
27
|
+
"--input-padding-inline-start": "var(--input-padding)"
|
|
28
|
+
}
|
|
24
29
|
},
|
|
25
30
|
section: {
|
|
26
31
|
'&[data-position="left"]': {
|
|
27
|
-
position: "
|
|
32
|
+
position: "initial",
|
|
28
33
|
width: "fit-content",
|
|
29
34
|
border: `1px solid ${theme.colors.carbon[4]}`,
|
|
30
35
|
borderRightWidth: 0,
|
|
@@ -18,11 +18,16 @@ const TextInput = forwardRef((props, ref) => {
|
|
|
18
18
|
}
|
|
19
19
|
return {
|
|
20
20
|
wrapper: {
|
|
21
|
-
display: "flex"
|
|
21
|
+
display: "flex",
|
|
22
|
+
// see https://github.com/mantinedev/mantine/blob/master/packages/%40mantine/core/src/components/Input/Input.module.css#L70C4-L70C33I
|
|
23
|
+
// correct input left padding
|
|
24
|
+
"&[data-with-left-section]": {
|
|
25
|
+
"--input-padding-inline-start": "var(--input-padding)"
|
|
26
|
+
}
|
|
22
27
|
},
|
|
23
28
|
section: {
|
|
24
29
|
'&[data-position="left"]': {
|
|
25
|
-
position: "
|
|
30
|
+
position: "initial",
|
|
26
31
|
width: "fit-content",
|
|
27
32
|
border: `1px solid ${theme.colors.carbon[4]}`,
|
|
28
33
|
borderRightWidth: 0,
|