@flairjs/client 0.0.1-beta.0 → 0.0.1-beta.1

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.
@@ -0,0 +1,9 @@
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+
3
+ //#region src/preact/style.tsx
4
+ const Style = (props) => {
5
+ return null;
6
+ };
7
+
8
+ //#endregion
9
+ exports.Style = Style;
@@ -0,0 +1,9 @@
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+
3
+ //#region src/react/style.tsx
4
+ const Style = (props) => {
5
+ return null;
6
+ };
7
+
8
+ //#endregion
9
+ exports.Style = Style;
@@ -0,0 +1,9 @@
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+
3
+ //#region src/solidjs/style.tsx
4
+ const Style = (props) => {
5
+ return null;
6
+ };
7
+
8
+ //#endregion
9
+ exports.Style = Style;
@@ -0,0 +1,7 @@
1
+ //#region src/preact/style.tsx
2
+ const Style = (props) => {
3
+ return null;
4
+ };
5
+
6
+ //#endregion
7
+ export { Style };
@@ -0,0 +1,7 @@
1
+ //#region src/react/style.tsx
2
+ const Style = (props) => {
3
+ return null;
4
+ };
5
+
6
+ //#endregion
7
+ export { Style };
@@ -0,0 +1,7 @@
1
+ //#region src/solidjs/style.tsx
2
+ const Style = (props) => {
3
+ return null;
4
+ };
5
+
6
+ //#endregion
7
+ export { Style };
@@ -1,12 +1,3 @@
1
- //#region src/utils.ts
2
- var flair = function(styles) {
3
- return "";
4
- };
5
- var c = function(className) {
6
- return className;
7
- };
8
- var cn = c;
9
- var css = String.raw;
1
+ import { c, cn, css, flair } from "./utils.js";
10
2
 
11
- //#endregion
12
3
  export { c, cn, css, flair };
@@ -0,0 +1 @@
1
+ export * from "./style";
@@ -0,0 +1,3 @@
1
+ import { Style } from "./style.js";
2
+
3
+ export { Style };
@@ -0,0 +1,6 @@
1
+ import { ComponentChildren } from "preact";
2
+ export interface StyleProps {
3
+ children?: ComponentChildren;
4
+ global?: boolean;
5
+ }
6
+ export declare const Style: (props: StyleProps) => null;
@@ -0,0 +1,7 @@
1
+ //#region src/preact/style.tsx
2
+ var Style = function(props) {
3
+ return null;
4
+ };
5
+
6
+ //#endregion
7
+ export { Style };
@@ -0,0 +1 @@
1
+ export * from "./style";
@@ -0,0 +1,3 @@
1
+ import { Style } from "./style.js";
2
+
3
+ export { Style };
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from "react";
2
+ export interface StyleProps {
3
+ children?: ReactNode;
4
+ global?: boolean;
5
+ }
6
+ export declare const Style: (props: StyleProps) => null;
@@ -0,0 +1,7 @@
1
+ //#region src/react/style.tsx
2
+ var Style = function(props) {
3
+ return null;
4
+ };
5
+
6
+ //#endregion
7
+ export { Style };
@@ -0,0 +1 @@
1
+ export * from "./style";
@@ -0,0 +1,3 @@
1
+ import { Style } from "./style.js";
2
+
3
+ export { Style };
@@ -0,0 +1,6 @@
1
+ import { JSX } from "solid-js";
2
+ export interface StyleProps {
3
+ children?: JSX.Element;
4
+ global?: boolean;
5
+ }
6
+ export declare const Style: (props: StyleProps) => null;
@@ -0,0 +1,7 @@
1
+ //#region src/solidjs/style.tsx
2
+ var Style = function(props) {
3
+ return null;
4
+ };
5
+
6
+ //#endregion
7
+ export { Style };
@@ -0,0 +1,12 @@
1
+ //#region src/utils.ts
2
+ var flair = function(styles) {
3
+ return "";
4
+ };
5
+ var c = function(className) {
6
+ return className;
7
+ };
8
+ var cn = c;
9
+ var css = String.raw;
10
+
11
+ //#endregion
12
+ export { c, cn, css, flair };
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flairjs/client",
3
- "version": "0.0.1-beta.0",
3
+ "version": "0.0.1-beta.1",
4
4
  "module": "./dist/esm/index.js",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "types": "./dist/types/index.d.ts",
@@ -15,6 +15,21 @@
15
15
  "import": "./dist/esm/index.js",
16
16
  "require": "./dist/cjs/index.js"
17
17
  },
18
+ "./react": {
19
+ "types": "./dist/types/react/index.d.ts",
20
+ "import": "./dist/esm/react/index.js",
21
+ "require": "./dist/cjs/react/index.js"
22
+ },
23
+ "./preact": {
24
+ "types": "./dist/types/preact/index.d.ts",
25
+ "import": "./dist/esm/preact/index.js",
26
+ "require": "./dist/cjs/preact/index.js"
27
+ },
28
+ "./solidjs": {
29
+ "types": "./dist/types/solidjs/index.d.ts",
30
+ "import": "./dist/esm/solidjs/index.js",
31
+ "require": "./dist/cjs/solidjs/index.js"
32
+ },
18
33
  "./theme.css": "./theme.css",
19
34
  "./generated-css/*": {
20
35
  "import": "./generated-css/*",
@@ -26,13 +41,33 @@
26
41
  "registry": "https://registry.npmjs.org/",
27
42
  "access": "public"
28
43
  },
44
+ "peerDependencies": {
45
+ "react": ">=16.8.0",
46
+ "preact": ">=10.0.0",
47
+ "solid-js": ">=1.0.0"
48
+ },
49
+ "peerDependenciesMeta": {
50
+ "react": {
51
+ "optional": true
52
+ },
53
+ "preact": {
54
+ "optional": true
55
+ },
56
+ "solid-js": {
57
+ "optional": true
58
+ }
59
+ },
29
60
  "devDependencies": {
30
61
  "@rollup/plugin-typescript": "^12.1.4",
31
62
  "@rsbuild/plugin-react": "^1.2.0",
63
+ "@types/react": "^19.1.0",
64
+ "preact": "^10.0.0",
65
+ "solid-js": "^1.9.9",
66
+ "react": "^19.1.0",
32
67
  "csstype": "^3.1.3",
33
68
  "rolldown": "1.0.0-beta.37",
34
69
  "typescript": "^5.8.3",
35
- "@flairjs/core": "0.0.1-beta.0"
70
+ "@flairjs/core": "0.0.1-beta.1"
36
71
  },
37
72
  "scripts": {
38
73
  "build": "rolldown -c",