@tidbcloud/uikit 2.4.11 → 2.4.13
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 +12 -0
- package/dist/biz/AppShell/navbar/NavItemBase.d.cts +1 -1
- package/dist/biz/AppShell/navbar/NavItemBase.d.mts +1 -1
- package/dist/biz/AppShell/navbar/SubNavItemBase.d.cts +1 -1
- package/dist/biz/AppShell/navbar/SubNavItemBase.d.mts +1 -1
- package/dist/biz/TimeRangePicker/AbsoluteTimeRangePicker.cjs +3 -3
- package/dist/biz/TimeRangePicker/AbsoluteTimeRangePicker.mjs +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @tidbcloud/uikit
|
|
2
2
|
|
|
3
|
+
## 2.4.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- refactor(AppShell): enhance `NavItemBase` props and refine `SubNavItemBase` type ([#568](https://github.com/tidbcloud/tidbcloud-uikit/pull/568))
|
|
8
|
+
|
|
9
|
+
## 2.4.12
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- fix(TimeRangePicker): adjust padding and width for input components in AbsoluteTimeRangePicker ([#565](https://github.com/tidbcloud/tidbcloud-uikit/pull/565))
|
|
14
|
+
|
|
3
15
|
## 2.4.11
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NavLinkProps } from '../../../primitive/index.cjs';
|
|
2
|
-
export interface NavItemBaseProps extends Pick<NavLinkProps, 'label' | 'leftSection' | 'rightSection' | 'active' | 'defaultOpened' | '
|
|
2
|
+
export interface NavItemBaseProps extends Pick<NavLinkProps, 'label' | 'leftSection' | 'rightSection' | 'active' | 'disabled' | 'defaultOpened' | 'opened' | 'onChange' | 'onClick' | 'onKeyDown' | 'mod' | 'sx' | 'styles' | 'style' | 'children'> {
|
|
3
3
|
/**
|
|
4
4
|
* Tooltip content
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NavLinkProps } from '../../../primitive/index.mjs';
|
|
2
|
-
export interface NavItemBaseProps extends Pick<NavLinkProps, 'label' | 'leftSection' | 'rightSection' | 'active' | 'defaultOpened' | '
|
|
2
|
+
export interface NavItemBaseProps extends Pick<NavLinkProps, 'label' | 'leftSection' | 'rightSection' | 'active' | 'disabled' | 'defaultOpened' | 'opened' | 'onChange' | 'onClick' | 'onKeyDown' | 'mod' | 'sx' | 'styles' | 'style' | 'children'> {
|
|
3
3
|
/**
|
|
4
4
|
* Tooltip content
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NavItemBaseProps } from './NavItemBase.cjs';
|
|
2
|
-
export type SubNavItemBaseProps = Omit<NavItemBaseProps, 'leftSection' | 'defaultOpened'>;
|
|
2
|
+
export type SubNavItemBaseProps = Omit<NavItemBaseProps, 'leftSection' | 'defaultOpened' | 'opened'>;
|
|
3
3
|
/**
|
|
4
4
|
* Base component for sub navigation items
|
|
5
5
|
* Handles only the styling aspects, no routing logic
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NavItemBaseProps } from './NavItemBase.mjs';
|
|
2
|
-
export type SubNavItemBaseProps = Omit<NavItemBaseProps, 'leftSection' | 'defaultOpened'>;
|
|
2
|
+
export type SubNavItemBaseProps = Omit<NavItemBaseProps, 'leftSection' | 'defaultOpened' | 'opened'>;
|
|
3
3
|
/**
|
|
4
4
|
* Base component for sub navigation items
|
|
5
5
|
* Handles only the styling aspects, no routing logic
|
|
@@ -76,7 +76,7 @@ const AbsoluteTimeRangePicker = ({
|
|
|
76
76
|
});
|
|
77
77
|
};
|
|
78
78
|
const apply = () => onChange == null ? void 0 : onChange({ type: "absolute", value: [dayjs.dayjs(start).unix(), dayjs.dayjs(end).unix()] });
|
|
79
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Box.Box, { p: "md", w: 280, m: -4, children: [
|
|
79
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Box.Box, { p: 8, pt: "md", w: 280, m: -4, children: [
|
|
80
80
|
/* @__PURE__ */ jsxRuntime.jsxs(Group.Group, { pb: "xs", mt: -4, onClick: onReturnClick, sx: { cursor: "pointer" }, children: [
|
|
81
81
|
/* @__PURE__ */ jsxRuntime.jsx(index.IconChevronLeft, { size: 16 }),
|
|
82
82
|
/* @__PURE__ */ jsxRuntime.jsx(index$1.Typography, { variant: "body-lg", children: (localization == null ? void 0 : localization.back) || "Back" })
|
|
@@ -88,7 +88,7 @@ const AbsoluteTimeRangePicker = ({
|
|
|
88
88
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
89
89
|
TimeInput.TimeInput,
|
|
90
90
|
{
|
|
91
|
-
w:
|
|
91
|
+
w: 110,
|
|
92
92
|
withSeconds: true,
|
|
93
93
|
value: startTime,
|
|
94
94
|
onChange: (d) => updateTime(d.currentTarget.value, setStart),
|
|
@@ -104,7 +104,7 @@ const AbsoluteTimeRangePicker = ({
|
|
|
104
104
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
105
105
|
TimeInput.TimeInput,
|
|
106
106
|
{
|
|
107
|
-
w:
|
|
107
|
+
w: 110,
|
|
108
108
|
withSeconds: true,
|
|
109
109
|
value: endTime,
|
|
110
110
|
onChange: (d) => updateTime(d.currentTarget.value, setEnd),
|
|
@@ -74,7 +74,7 @@ const AbsoluteTimeRangePicker = ({
|
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
76
|
const apply = () => onChange == null ? void 0 : onChange({ type: "absolute", value: [dayjs(start).unix(), dayjs(end).unix()] });
|
|
77
|
-
return /* @__PURE__ */ jsxs(Box, { p: "md", w: 280, m: -4, children: [
|
|
77
|
+
return /* @__PURE__ */ jsxs(Box, { p: 8, pt: "md", w: 280, m: -4, children: [
|
|
78
78
|
/* @__PURE__ */ jsxs(Group, { pb: "xs", mt: -4, onClick: onReturnClick, sx: { cursor: "pointer" }, children: [
|
|
79
79
|
/* @__PURE__ */ jsx(IconChevronLeft, { size: 16 }),
|
|
80
80
|
/* @__PURE__ */ jsx(Typography, { variant: "body-lg", children: (localization == null ? void 0 : localization.back) || "Back" })
|
|
@@ -86,7 +86,7 @@ const AbsoluteTimeRangePicker = ({
|
|
|
86
86
|
/* @__PURE__ */ jsx(
|
|
87
87
|
TimeInput,
|
|
88
88
|
{
|
|
89
|
-
w:
|
|
89
|
+
w: 110,
|
|
90
90
|
withSeconds: true,
|
|
91
91
|
value: startTime,
|
|
92
92
|
onChange: (d) => updateTime(d.currentTarget.value, setStart),
|
|
@@ -102,7 +102,7 @@ const AbsoluteTimeRangePicker = ({
|
|
|
102
102
|
/* @__PURE__ */ jsx(
|
|
103
103
|
TimeInput,
|
|
104
104
|
{
|
|
105
|
-
w:
|
|
105
|
+
w: 110,
|
|
106
106
|
withSeconds: true,
|
|
107
107
|
value: endTime,
|
|
108
108
|
onChange: (d) => updateTime(d.currentTarget.value, setEnd),
|