@wix/site-ui 1.0.0
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.css +8 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +26 -0
- package/package.json +59 -0
package/dist/index.css
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
|
|
5
|
+
export declare const TestButton: FC<TestButtonProps>;
|
|
6
|
+
|
|
7
|
+
export declare interface TestButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { }
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import './index.css';function r(e) {
|
|
3
|
+
var t, f, n = "";
|
|
4
|
+
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
5
|
+
else if ("object" == typeof e) if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
6
|
+
else for (t in e) e[t] && (n && (n += " "), n += t);
|
|
7
|
+
return n;
|
|
8
|
+
}
|
|
9
|
+
function clsx() {
|
|
10
|
+
for (var e, t, f = 0, n = ""; f < arguments.length; ) (e = arguments[f++]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
11
|
+
return n;
|
|
12
|
+
}
|
|
13
|
+
const button = "button__AkdHL";
|
|
14
|
+
const styles = {
|
|
15
|
+
button
|
|
16
|
+
};
|
|
17
|
+
const TestButton = ({
|
|
18
|
+
children,
|
|
19
|
+
className,
|
|
20
|
+
...rest
|
|
21
|
+
}) => {
|
|
22
|
+
return /* @__PURE__ */ jsx("button", { className: clsx(styles.button, className), ...rest, children });
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
TestButton
|
|
26
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@wix/site-ui",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Pure UI components for the Wix site builder",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "vite build",
|
|
18
|
+
"test": "vitest",
|
|
19
|
+
"tsc": "tsc -b ./tsconfig.json --force",
|
|
20
|
+
"clean": "rm -rf dist"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"clsx": "2.0.0"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"react": "^18.2.0",
|
|
27
|
+
"react-dom": "^18.2.0"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@testing-library/jest-dom": "^6.4.2",
|
|
31
|
+
"@testing-library/react": "^14.1.2",
|
|
32
|
+
"@types/react": "^18.2.42",
|
|
33
|
+
"@types/react-dom": "^18.2.17",
|
|
34
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
35
|
+
"jsdom": "^24.0.0",
|
|
36
|
+
"react": "^18.2.0",
|
|
37
|
+
"react-dom": "^18.2.0",
|
|
38
|
+
"typescript": "~5.0.4",
|
|
39
|
+
"vite": "^6.4.2",
|
|
40
|
+
"vite-plugin-dts": "^4.5.1",
|
|
41
|
+
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
42
|
+
"vitest": "^3.2.4"
|
|
43
|
+
},
|
|
44
|
+
"wix": {
|
|
45
|
+
"artifact": {
|
|
46
|
+
"groupId": "com.wixpress.npm",
|
|
47
|
+
"artifactId": "site-ui",
|
|
48
|
+
"targets": {
|
|
49
|
+
"static": false,
|
|
50
|
+
"docker": false
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"publishConfig": {
|
|
55
|
+
"registry": "https://registry.npmjs.org/",
|
|
56
|
+
"access": "public"
|
|
57
|
+
},
|
|
58
|
+
"falconPackageHash": "4ec68b2c0fe399b7a30f720c8e4d3b9072b8c89ef7c5cef27aef62af"
|
|
59
|
+
}
|