@vnejs/uis.react.sprite 0.1.7 → 0.1.8
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/Sprite.types.d.ts +25 -24
- package/dist/Sprite.types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Sprite.types.tsx +25 -24
package/dist/Sprite.types.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import type { CssInsertValue, CssInsertValueNumber, CssInsertValueString } from "@vnejs/uis.utils";
|
|
1
2
|
import type { ReactNode } from "react";
|
|
2
3
|
export type SpriteImagePartProps = {
|
|
3
|
-
translateX?:
|
|
4
|
-
translateY?:
|
|
5
|
-
scale?:
|
|
6
|
-
transition?:
|
|
7
|
-
opacity?:
|
|
4
|
+
translateX?: CssInsertValueNumber;
|
|
5
|
+
translateY?: CssInsertValueNumber;
|
|
6
|
+
scale?: CssInsertValueNumber;
|
|
7
|
+
transition?: CssInsertValueNumber;
|
|
8
|
+
opacity?: CssInsertValueNumber;
|
|
8
9
|
src?: string | Array<{
|
|
9
10
|
url: string;
|
|
10
11
|
duration: number;
|
|
@@ -12,28 +13,28 @@ export type SpriteImagePartProps = {
|
|
|
12
13
|
randomDuration?: number;
|
|
13
14
|
}>;
|
|
14
15
|
className?: string;
|
|
15
|
-
filter?:
|
|
16
|
+
filter?: CssInsertValueString;
|
|
16
17
|
withHover?: boolean;
|
|
17
18
|
isSwitchDisabled?: boolean;
|
|
18
19
|
isAllSrcRendered?: boolean;
|
|
19
20
|
};
|
|
20
21
|
export type SpriteBoxProps = {
|
|
21
|
-
top?:
|
|
22
|
-
right?:
|
|
23
|
-
bottom?:
|
|
24
|
-
left?:
|
|
25
|
-
translateX?:
|
|
26
|
-
translateY?:
|
|
27
|
-
transformOriginX?:
|
|
28
|
-
transformOriginY?:
|
|
29
|
-
scale?:
|
|
30
|
-
transition?:
|
|
31
|
-
zIndex?:
|
|
32
|
-
opacity?:
|
|
33
|
-
background?:
|
|
34
|
-
clip?:
|
|
35
|
-
mask?:
|
|
36
|
-
filter?:
|
|
22
|
+
top?: CssInsertValue;
|
|
23
|
+
right?: CssInsertValue;
|
|
24
|
+
bottom?: CssInsertValue;
|
|
25
|
+
left?: CssInsertValue;
|
|
26
|
+
translateX?: CssInsertValue;
|
|
27
|
+
translateY?: CssInsertValue;
|
|
28
|
+
transformOriginX?: CssInsertValue;
|
|
29
|
+
transformOriginY?: CssInsertValue;
|
|
30
|
+
scale?: CssInsertValueNumber;
|
|
31
|
+
transition?: CssInsertValueNumber;
|
|
32
|
+
zIndex?: CssInsertValueNumber;
|
|
33
|
+
opacity?: CssInsertValueNumber;
|
|
34
|
+
background?: CssInsertValueString;
|
|
35
|
+
clip?: CssInsertValueString;
|
|
36
|
+
mask?: CssInsertValueString;
|
|
37
|
+
filter?: CssInsertValueString;
|
|
37
38
|
className?: string;
|
|
38
39
|
children?: ReactNode;
|
|
39
40
|
};
|
|
@@ -42,7 +43,7 @@ export type SpriteProps = {
|
|
|
42
43
|
indexSrc?: string;
|
|
43
44
|
boxProps?: SpriteBoxProps;
|
|
44
45
|
partsProps?: Partial<SpriteImagePartProps>;
|
|
45
|
-
transition?:
|
|
46
|
-
transitionBox?:
|
|
46
|
+
transition?: CssInsertValueNumber;
|
|
47
|
+
transitionBox?: CssInsertValueNumber;
|
|
47
48
|
};
|
|
48
49
|
//# sourceMappingURL=Sprite.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sprite.types.d.ts","sourceRoot":"","sources":["../src/Sprite.types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,oBAAoB,GAAG;IACjC,UAAU,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"Sprite.types.d.ts","sourceRoot":"","sources":["../src/Sprite.types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,o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AAE,oBAAoB,CAAC;IAClC,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAC3C,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,aAAa,CAAC,EAAE,oBAAoB,CAAC;CACtC,CAAC"}
|
package/package.json
CHANGED
package/src/Sprite.types.tsx
CHANGED
|
@@ -1,36 +1,37 @@
|
|
|
1
|
+
import type { CssInsertValue, CssInsertValueNumber, CssInsertValueString } from "@vnejs/uis.utils";
|
|
1
2
|
import type { ReactNode } from "react";
|
|
2
3
|
|
|
3
4
|
export type SpriteImagePartProps = {
|
|
4
|
-
translateX?:
|
|
5
|
-
translateY?:
|
|
6
|
-
scale?:
|
|
7
|
-
transition?:
|
|
8
|
-
opacity?:
|
|
5
|
+
translateX?: CssInsertValueNumber;
|
|
6
|
+
translateY?: CssInsertValueNumber;
|
|
7
|
+
scale?: CssInsertValueNumber;
|
|
8
|
+
transition?: CssInsertValueNumber;
|
|
9
|
+
opacity?: CssInsertValueNumber;
|
|
9
10
|
src?: string | Array<{ url: string; duration: number; transition: number; randomDuration?: number }>;
|
|
10
11
|
className?: string;
|
|
11
|
-
filter?:
|
|
12
|
+
filter?: CssInsertValueString;
|
|
12
13
|
withHover?: boolean;
|
|
13
14
|
isSwitchDisabled?: boolean;
|
|
14
15
|
isAllSrcRendered?: boolean;
|
|
15
16
|
};
|
|
16
17
|
|
|
17
18
|
export type SpriteBoxProps = {
|
|
18
|
-
top?:
|
|
19
|
-
right?:
|
|
20
|
-
bottom?:
|
|
21
|
-
left?:
|
|
22
|
-
translateX?:
|
|
23
|
-
translateY?:
|
|
24
|
-
transformOriginX?:
|
|
25
|
-
transformOriginY?:
|
|
26
|
-
scale?:
|
|
27
|
-
transition?:
|
|
28
|
-
zIndex?:
|
|
29
|
-
opacity?:
|
|
30
|
-
background?:
|
|
31
|
-
clip?:
|
|
32
|
-
mask?:
|
|
33
|
-
filter?:
|
|
19
|
+
top?: CssInsertValue;
|
|
20
|
+
right?: CssInsertValue;
|
|
21
|
+
bottom?: CssInsertValue;
|
|
22
|
+
left?: CssInsertValue;
|
|
23
|
+
translateX?: CssInsertValue;
|
|
24
|
+
translateY?: CssInsertValue;
|
|
25
|
+
transformOriginX?: CssInsertValue;
|
|
26
|
+
transformOriginY?: CssInsertValue;
|
|
27
|
+
scale?: CssInsertValueNumber;
|
|
28
|
+
transition?: CssInsertValueNumber;
|
|
29
|
+
zIndex?: CssInsertValueNumber;
|
|
30
|
+
opacity?: CssInsertValueNumber;
|
|
31
|
+
background?: CssInsertValueString;
|
|
32
|
+
clip?: CssInsertValueString;
|
|
33
|
+
mask?: CssInsertValueString;
|
|
34
|
+
filter?: CssInsertValueString;
|
|
34
35
|
className?: string;
|
|
35
36
|
children?: ReactNode;
|
|
36
37
|
};
|
|
@@ -40,6 +41,6 @@ export type SpriteProps = {
|
|
|
40
41
|
indexSrc?: string;
|
|
41
42
|
boxProps?: SpriteBoxProps;
|
|
42
43
|
partsProps?: Partial<SpriteImagePartProps>;
|
|
43
|
-
transition?:
|
|
44
|
-
transitionBox?:
|
|
44
|
+
transition?: CssInsertValueNumber;
|
|
45
|
+
transitionBox?: CssInsertValueNumber;
|
|
45
46
|
};
|