@wix/site-ui 1.0.0 → 1.1.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.
@@ -1,8 +1,9 @@
1
- .button__AkdHL {
1
+ .button-TLcM5b {
2
+ color: #fff;
3
+ cursor: pointer;
2
4
  background-color: red;
3
- color: white;
4
- padding: 8px 16px;
5
5
  border: none;
6
6
  border-radius: 4px;
7
- cursor: pointer;
7
+ padding: 8px 16px;
8
8
  }
9
+
@@ -0,0 +1,13 @@
1
+ import { ButtonHTMLAttributes } from 'react';
2
+ import { FC } from 'react';
3
+ import { ReactNode } from 'react';
4
+
5
+ declare const TestButton: FC<TestButtonProps>;
6
+ export { TestButton }
7
+ export default TestButton;
8
+
9
+ export declare interface TestButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
10
+ children: ReactNode;
11
+ }
12
+
13
+ export { }
@@ -0,0 +1,14 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import "react";
3
+ import clsx from "clsx";
4
+ const TestButton_module = {
5
+ button: "button-TLcM5b"
6
+ };
7
+ const TestButton = ({ children, className, ...rest })=>/*#__PURE__*/ jsx("button", {
8
+ className: clsx(TestButton_module.button, className),
9
+ ...rest,
10
+ children: children
11
+ });
12
+ const TestButton_TestButton = TestButton;
13
+ export default TestButton_TestButton;
14
+ export { TestButton };
package/dist/index.js CHANGED
@@ -1,26 +1 @@
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
- };
1
+ export { TestButton } from "./TestButton/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/site-ui",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Pure UI components for the Wix site builder",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -11,11 +11,16 @@
11
11
  ".": {
12
12
  "types": "./dist/index.d.ts",
13
13
  "import": "./dist/index.js"
14
+ },
15
+ "./*.css": "./dist/*/index.css",
16
+ "./*": {
17
+ "types": "./dist/*/index.d.ts",
18
+ "import": "./dist/*/index.js"
14
19
  }
15
20
  },
16
21
  "scripts": {
17
- "build": "vite build",
18
- "test": "vitest",
22
+ "build": "rslib build",
23
+ "test": "rstest",
19
24
  "tsc": "tsc -b ./tsconfig.json --force",
20
25
  "clean": "rm -rf dist"
21
26
  },
@@ -27,19 +32,18 @@
27
32
  "react-dom": "^18.2.0"
28
33
  },
29
34
  "devDependencies": {
35
+ "@rsbuild/plugin-react": "^2.0.0",
36
+ "@rslib/core": "^0.21.5",
37
+ "@rstest/adapter-rslib": "^0.10.0",
38
+ "@rstest/core": "^0.10.0",
30
39
  "@testing-library/jest-dom": "^6.4.2",
31
40
  "@testing-library/react": "^14.1.2",
32
41
  "@types/react": "^18.2.42",
33
42
  "@types/react-dom": "^18.2.17",
34
- "@vitejs/plugin-react": "^4.3.4",
35
43
  "jsdom": "^24.0.0",
36
44
  "react": "^18.2.0",
37
45
  "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"
46
+ "typescript": "~5.0.4"
43
47
  },
44
48
  "wix": {
45
49
  "artifact": {
@@ -55,5 +59,5 @@
55
59
  "registry": "https://registry.npmjs.org/",
56
60
  "access": "public"
57
61
  },
58
- "falconPackageHash": "4ec68b2c0fe399b7a30f720c8e4d3b9072b8c89ef7c5cef27aef62af"
62
+ "falconPackageHash": "a1045f85a0e220711eef3cd0a269314d17013543b598c250b440e049"
59
63
  }