@tidbcloud/uikit 2.4.12 → 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 CHANGED
@@ -1,5 +1,11 @@
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
+
3
9
  ## 2.4.12
4
10
 
5
11
  ### 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' | 'disabled' | 'onClick' | 'mod' | 'sx' | 'styles' | 'style' | 'children'> {
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' | 'disabled' | 'onClick' | 'mod' | 'sx' | 'styles' | 'style' | 'children'> {
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tidbcloud/uikit",
3
- "version": "2.4.12",
3
+ "version": "2.4.13",
4
4
  "description": "tidbcloud uikit",
5
5
  "type": "module",
6
6
  "main": "dist/primitive/index.cjs",