@zuzjs/ui 1.0.35 → 1.0.37
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/dist/bin.cjs +4 -4
- package/dist/bin.js +1 -1
- package/dist/css/styles.css +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.d.cts +12 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +5 -5
- package/package.json +1 -1
- /package/dist/{chunk-ZRRWTL7H.js → chunk-HPG2IJFH.js} +0 -0
- /package/dist/{chunk-35QXKGLH.cjs → chunk-MNMAASFR.cjs} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1859,6 +1859,9 @@ type ToolTipProps = Omit<BoxProps, `title` | `ref`> & {
|
|
|
1859
1859
|
margin?: number;
|
|
1860
1860
|
title?: string | ReactNode;
|
|
1861
1861
|
show?: boolean;
|
|
1862
|
+
variant?: ValueOf<typeof Variant>;
|
|
1863
|
+
/** Tooltip will be anchored to this className in children */
|
|
1864
|
+
anchorName?: string;
|
|
1862
1865
|
};
|
|
1863
1866
|
|
|
1864
1867
|
declare const ToolTip: {
|
|
@@ -1945,6 +1948,10 @@ interface ThemeConfig {
|
|
|
1945
1948
|
duration?: number;
|
|
1946
1949
|
progress?: boolean;
|
|
1947
1950
|
};
|
|
1951
|
+
tooltip?: {
|
|
1952
|
+
variant?: ValueOf<typeof Variant>;
|
|
1953
|
+
curve: ValueOf<typeof TRANSITION_CURVES>;
|
|
1954
|
+
};
|
|
1948
1955
|
}
|
|
1949
1956
|
type ThemeProviderProps = {
|
|
1950
1957
|
children: ReactNode;
|
|
@@ -1993,6 +2000,10 @@ declare const useDrawer: () => {
|
|
|
1993
2000
|
};
|
|
1994
2001
|
|
|
1995
2002
|
declare const useFx: (fx?: animationProps & {
|
|
2003
|
+
/** Offset when transition is activce */
|
|
2004
|
+
offset?: number;
|
|
2005
|
+
/** Offset when transition is inactive */
|
|
2006
|
+
margin?: number;
|
|
1996
2007
|
watch?: string[];
|
|
1997
2008
|
}, ref?: RefObject<HTMLElement>) => {
|
|
1998
2009
|
style: any;
|
|
@@ -2073,7 +2084,7 @@ declare const buildClassString: (input: ZuzStyleString | ZuzStyleString[]) => st
|
|
|
2073
2084
|
declare const css: (input: ZuzStyleString | ZuzStyleString[]) => string;
|
|
2074
2085
|
declare const buildWithStyles: (source: dynamic) => dynamic;
|
|
2075
2086
|
declare const getAnimationCurve: (curve?: string | ValueOf<typeof TRANSITION_CURVES>) => string;
|
|
2076
|
-
declare const animationTransition: (transition: ValueOf<typeof TRANSITIONS>,
|
|
2087
|
+
declare const animationTransition: (transition: ValueOf<typeof TRANSITIONS>, startOffset?: number, endOffset?: number) => {
|
|
2077
2088
|
from: {};
|
|
2078
2089
|
to: {};
|
|
2079
2090
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1859,6 +1859,9 @@ type ToolTipProps = Omit<BoxProps, `title` | `ref`> & {
|
|
|
1859
1859
|
margin?: number;
|
|
1860
1860
|
title?: string | ReactNode;
|
|
1861
1861
|
show?: boolean;
|
|
1862
|
+
variant?: ValueOf<typeof Variant>;
|
|
1863
|
+
/** Tooltip will be anchored to this className in children */
|
|
1864
|
+
anchorName?: string;
|
|
1862
1865
|
};
|
|
1863
1866
|
|
|
1864
1867
|
declare const ToolTip: {
|
|
@@ -1945,6 +1948,10 @@ interface ThemeConfig {
|
|
|
1945
1948
|
duration?: number;
|
|
1946
1949
|
progress?: boolean;
|
|
1947
1950
|
};
|
|
1951
|
+
tooltip?: {
|
|
1952
|
+
variant?: ValueOf<typeof Variant>;
|
|
1953
|
+
curve: ValueOf<typeof TRANSITION_CURVES>;
|
|
1954
|
+
};
|
|
1948
1955
|
}
|
|
1949
1956
|
type ThemeProviderProps = {
|
|
1950
1957
|
children: ReactNode;
|
|
@@ -1993,6 +2000,10 @@ declare const useDrawer: () => {
|
|
|
1993
2000
|
};
|
|
1994
2001
|
|
|
1995
2002
|
declare const useFx: (fx?: animationProps & {
|
|
2003
|
+
/** Offset when transition is activce */
|
|
2004
|
+
offset?: number;
|
|
2005
|
+
/** Offset when transition is inactive */
|
|
2006
|
+
margin?: number;
|
|
1996
2007
|
watch?: string[];
|
|
1997
2008
|
}, ref?: RefObject<HTMLElement>) => {
|
|
1998
2009
|
style: any;
|
|
@@ -2073,7 +2084,7 @@ declare const buildClassString: (input: ZuzStyleString | ZuzStyleString[]) => st
|
|
|
2073
2084
|
declare const css: (input: ZuzStyleString | ZuzStyleString[]) => string;
|
|
2074
2085
|
declare const buildWithStyles: (source: dynamic) => dynamic;
|
|
2075
2086
|
declare const getAnimationCurve: (curve?: string | ValueOf<typeof TRANSITION_CURVES>) => string;
|
|
2076
|
-
declare const animationTransition: (transition: ValueOf<typeof TRANSITIONS>,
|
|
2087
|
+
declare const animationTransition: (transition: ValueOf<typeof TRANSITIONS>, startOffset?: number, endOffset?: number) => {
|
|
2077
2088
|
from: {};
|
|
2078
2089
|
to: {};
|
|
2079
2090
|
};
|