@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
@@ -1,5 +1,11 @@
1
1
  # @tidbcloud/uikit
2
2
 
3
+ ## 2.0.0-beta.74
4
+
5
+ ### Patch Changes
6
+
7
+ - fix text input with left label padding
8
+
3
9
  ## 2.0.0-beta.73
4
10
 
5
11
  ### Patch Changes
@@ -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: "relative",
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: "relative",
30
+ position: "initial",
26
31
  width: "fit-content",
27
32
  border: `1px solid ${theme.colors.carbon[4]}`,
28
33
  borderRightWidth: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tidbcloud/uikit",
3
- "version": "2.0.0-beta.73",
3
+ "version": "2.0.0-beta.74",
4
4
  "description": "tidbcloud uikit",
5
5
  "type": "module",
6
6
  "main": "dist/primitive/index.cjs",