@tidbcloud/uikit 2.0.0-beta.83 → 2.0.0-beta.84

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.84
4
+
5
+ ### Patch Changes
6
+
7
+ - fix TimeRangePicker style
8
+
3
9
  ## 2.0.0-beta.83
4
10
 
5
11
  ### Patch Changes
@@ -92,7 +92,20 @@ const TimeRangePicker = ({
92
92
  ...loading ? { "data-loading": true } : {},
93
93
  children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(Group.Group, { w: "100%", gap: 0, children: [
94
94
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Box.Box, { sx: { flex: "none" }, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(DurationBadge, { children: helpers.formatDuration(duration, true) }) }),
95
- /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Text.Text, { px: 8, sx: { flex: "1 1", overflow: "hidden", whiteSpace: "nowrap", textOverflow: "ellipsis" }, children: isRelativeRange ? `Past ${helpers.formatDuration(duration)}` : formattedAbsDateTime })
95
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
96
+ Text.Text,
97
+ {
98
+ px: 8,
99
+ sx: {
100
+ flex: "1 1",
101
+ overflow: "hidden",
102
+ whiteSpace: "nowrap",
103
+ textOverflow: "ellipsis",
104
+ textAlign: "left"
105
+ },
106
+ children: isRelativeRange ? `Past ${helpers.formatDuration(duration)}` : formattedAbsDateTime
107
+ }
108
+ )
96
109
  ] })
97
110
  }
98
111
  ) }) }),
@@ -91,7 +91,20 @@ const TimeRangePicker = ({
91
91
  ...loading ? { "data-loading": true } : {},
92
92
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Group, { w: "100%", gap: 0, children: [
93
93
  /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { sx: { flex: "none" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(DurationBadge, { children: formatDuration(duration, true) }) }),
94
- /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { px: 8, sx: { flex: "1 1", overflow: "hidden", whiteSpace: "nowrap", textOverflow: "ellipsis" }, children: isRelativeRange ? `Past ${formatDuration(duration)}` : formattedAbsDateTime })
94
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
95
+ Text,
96
+ {
97
+ px: 8,
98
+ sx: {
99
+ flex: "1 1",
100
+ overflow: "hidden",
101
+ whiteSpace: "nowrap",
102
+ textOverflow: "ellipsis",
103
+ textAlign: "left"
104
+ },
105
+ children: isRelativeRange ? `Past ${formatDuration(duration)}` : formattedAbsDateTime
106
+ }
107
+ )
95
108
  ] })
96
109
  }
97
110
  ) }) }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tidbcloud/uikit",
3
- "version": "2.0.0-beta.83",
3
+ "version": "2.0.0-beta.84",
4
4
  "description": "tidbcloud uikit",
5
5
  "type": "module",
6
6
  "main": "dist/primitive/index.cjs",