@pixel-loader/solid 0.0.3 → 0.0.4
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/index.d.ts +1 -5
- package/dist/index.js +1 -40
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import * as solid_js from 'solid-js';
|
|
2
|
-
|
|
3
|
-
declare const PixelLoader: (props: PixelLoaderProps) => solid_js.JSX.Element;
|
|
4
|
-
|
|
5
1
|
interface PixelLoaderProps {
|
|
6
2
|
preset?: "wave-lr" | "wave-rl" | "wave-tb" | "wave-bt" | "diagonal" | "center-out" | "spiral" | "corners";
|
|
7
3
|
delayPattern?: number[];
|
|
@@ -26,4 +22,4 @@ declare module "solid-js" {
|
|
|
26
22
|
}
|
|
27
23
|
}
|
|
28
24
|
|
|
29
|
-
export {
|
|
25
|
+
export type { PixelLoaderElement, PixelLoaderProps };
|
package/dist/index.js
CHANGED
|
@@ -1,41 +1,2 @@
|
|
|
1
|
-
// src/
|
|
1
|
+
// src/index.ts
|
|
2
2
|
import "@pixel-loader/core";
|
|
3
|
-
import { createEffect } from "solid-js";
|
|
4
|
-
import { jsx } from "solid-js/jsx-runtime";
|
|
5
|
-
var PixelLoader = (props) => {
|
|
6
|
-
let ref;
|
|
7
|
-
createEffect(() => {
|
|
8
|
-
if (!ref) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
if (props.preset !== void 0) {
|
|
12
|
-
ref.preset = props.preset;
|
|
13
|
-
}
|
|
14
|
-
if (props.size !== void 0) {
|
|
15
|
-
ref.size = props.size;
|
|
16
|
-
}
|
|
17
|
-
if (props.color !== void 0) {
|
|
18
|
-
ref.color = props.color;
|
|
19
|
-
}
|
|
20
|
-
if (props.borderRadius !== void 0) {
|
|
21
|
-
ref.borderRadius = props.borderRadius;
|
|
22
|
-
}
|
|
23
|
-
if (props.isAnimating !== void 0) {
|
|
24
|
-
ref.isAnimating = props.isAnimating;
|
|
25
|
-
}
|
|
26
|
-
if (props.delayPattern !== void 0) {
|
|
27
|
-
ref.delayPattern = props.delayPattern;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
return /* @__PURE__ */ jsx(
|
|
31
|
-
"pixel-loader",
|
|
32
|
-
{
|
|
33
|
-
ref: (el) => {
|
|
34
|
-
ref = el;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
};
|
|
39
|
-
export {
|
|
40
|
-
PixelLoader
|
|
41
|
-
};
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixel-loader/solid",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "Solid
|
|
5
|
+
"description": "Solid integration for PixelLoader web component",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"solid-js": "^1.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@pixel-loader/core": "0.0.
|
|
30
|
+
"@pixel-loader/core": "0.0.4"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"solid-js": "^1.9.11",
|