zs_library 0.4.14 → 0.4.16

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.
@@ -1,9 +1,10 @@
1
- import { MotionValue } from 'framer-motion';
2
- import { FC, ReactNode } from 'react';
1
+ import { HTMLMotionProps, MotionValue } from 'framer-motion';
2
+ import { ElementType, FC, ReactNode } from 'react';
3
3
  import { DockItem } from '.';
4
- export interface DesktopIconContainerProps extends DockItem {
4
+ export interface DesktopIconContainerProps extends DockItem, Partial<Omit<HTMLMotionProps<"div">, "title" | "children">> {
5
5
  mouseX: MotionValue;
6
6
  children?: ReactNode;
7
+ as?: ElementType;
7
8
  }
8
9
  export declare const DesktopIconContainer: FC<DesktopIconContainerProps>;
9
10
  export interface DockDesktopProps {
@@ -12,6 +13,7 @@ export interface DockDesktopProps {
12
13
  itemBuilder?: (item: DockItem, mouseX: MotionValue) => ReactNode;
13
14
  children?: ReactNode;
14
15
  mouseX?: MotionValue;
16
+ as?: ElementType;
15
17
  }
16
18
  declare const DockDesktop: FC<DockDesktopProps>;
17
19
  export default DockDesktop;
@@ -1,6 +1,7 @@
1
1
  import { FC, ReactNode } from 'react';
2
+ import { HTMLMotionProps } from 'framer-motion';
2
3
  import { DockItem } from '.';
3
- export interface MobileIconContainerProps extends DockItem {
4
+ export interface MobileIconContainerProps extends DockItem, Partial<Omit<HTMLMotionProps<"div">, "title" | "children">> {
4
5
  index: number;
5
6
  totalItems: number;
6
7
  children?: ReactNode;
@@ -3,8 +3,8 @@ import { default as DockDesktop, DesktopIconContainer } from './dock-desktop';
3
3
  import { default as DockMobile, DockMobileProps, MobileIconContainer } from './dock-mobile';
4
4
  import { MotionValue } from 'framer-motion';
5
5
  export interface DockItem {
6
- icon: ReactNode;
7
- title: string;
6
+ icon?: ReactNode;
7
+ title?: string;
8
8
  href?: string;
9
9
  }
10
10
  type DesktopItemBuilder = (item: DockItem, mouseX: MotionValue) => ReactNode;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { Desktop, DesktopSortable, DesktopSortableConfigProvider, DesktopSortableStateProvider, desktopAppConfig, desktopGroupConfig, desktopConfigMap, desktopThemeLight, desktopThemeDark, SortableUtils, MdEditor, Markdown, Dock, Editor, } from './components';
2
- export type { DesktopSortableProps, DesktopSortableConfigProviderProps, DesktopSortableStateProviderProps, DesktopSortItemBaseConfig, DesktopSortItem, DesktopSortItemBaseData, DesktopTheme, } from './components';
1
+ export { Desktop, DesktopSortable, DesktopSortableConfigProvider, DesktopSortableStateProvider, desktopAppConfig, desktopGroupConfig, desktopConfigMap, desktopThemeLight, desktopThemeDark, SortableUtils, Dock, DockDesktop, DockDesktopItem, DockMobile, DockMobileItem, useDockDesktopMouseX, MdEditor, Markdown, Editor, } from './components';
2
+ export type { DesktopSortableProps, DesktopSortableConfigProviderProps, DesktopSortableStateProviderProps, DesktopSortItemBaseConfig, DesktopSortItem, DesktopSortItemBaseData, DesktopTheme, DockDesktopItemProps, DockMobileItemProps, } from './components';
3
3
  import * as Components from "./components";
4
4
  export default Components;