@adriansteffan/reactive 0.0.11 → 0.0.13
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/preset.css +134 -0
- package/dist/reactive.es.js +6 -6
- package/dist/reactive.umd.js +3 -3
- package/dist/style.css +2 -2
- package/package.json +6 -5
- package/postcss.config.js +1 -1
- package/src/components/text.tsx +4 -4
- package/src/components/upload.tsx +1 -1
- package/src/components/voicerecorder.tsx +1 -1
- package/src/index.css +69 -3
- package/template/package-lock.json +1054 -1240
- package/template/package.json +5 -5
- package/template/postcss.config.js +1 -2
- package/template/src/App.tsx +1 -1
- package/template/src/index.css +3 -3
- package/template/src/main.tsx +1 -1
- package/vite.config.ts +4 -2
- package/dist/tailwind.config.js +0 -33
- package/tailwind.config.js +0 -33
- package/template/tailwind.config.js +0 -7
package/template/package.json
CHANGED
|
@@ -14,16 +14,17 @@
|
|
|
14
14
|
"rp-dev-pull": "npm link @adriansteffan/reactive"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
+
"@adriansteffan/reactive": "RP_VERSION",
|
|
17
18
|
"@tanstack/react-query": "^5.61.3",
|
|
18
19
|
"@tanstack/react-query-devtools": "^5.61.3",
|
|
19
20
|
"react": "^18.2.0",
|
|
20
21
|
"react-dom": "^18.2.0",
|
|
21
22
|
"react-icons": "^5.1.0",
|
|
22
23
|
"react-toastify": "^10.0.6",
|
|
23
|
-
"@adriansteffan/reactive": "RP_VERSION",
|
|
24
24
|
"survey-react-ui": "^1.12.9"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
+
"@tailwindcss/postcss": "^4.0.9",
|
|
27
28
|
"@tailwindcss/typography": "^0.5.16",
|
|
28
29
|
"@types/howler": "^2.2.11",
|
|
29
30
|
"@types/node": "^22.9.2",
|
|
@@ -32,18 +33,17 @@
|
|
|
32
33
|
"@typescript-eslint/eslint-plugin": "^8.16.0",
|
|
33
34
|
"@typescript-eslint/parser": "^8.16.0",
|
|
34
35
|
"@vitejs/plugin-react": "^4.2.1",
|
|
35
|
-
"autoprefixer": "^10.4.19",
|
|
36
36
|
"concurrently": "^9.1.0",
|
|
37
37
|
"eslint": "^9.0.0",
|
|
38
38
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
39
39
|
"eslint-plugin-react-refresh": "^0.4.14",
|
|
40
40
|
"postcss": "^8.4.38",
|
|
41
41
|
"prettier": "3.2.5",
|
|
42
|
-
"tailwindcss": "^
|
|
42
|
+
"tailwindcss": "^4.0.9",
|
|
43
43
|
"typescript": "^5.2.2",
|
|
44
|
-
"vite": "^
|
|
44
|
+
"vite": "^6.2.0",
|
|
45
45
|
"vite-plugin-dts": "^4.3.0",
|
|
46
46
|
"vite-plugin-top-level-await": "^1.4.4",
|
|
47
|
-
"vitest": "^
|
|
47
|
+
"vitest": "^3.0.7"
|
|
48
48
|
}
|
|
49
49
|
}
|
package/template/src/App.tsx
CHANGED
|
@@ -22,7 +22,7 @@ const CustomTrial = ({ next, maxCount }: BaseComponentProps & { maxCount: number
|
|
|
22
22
|
next({});
|
|
23
23
|
}
|
|
24
24
|
}}
|
|
25
|
-
className='mt-4 px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600 transition-colors'
|
|
25
|
+
className='mt-4 px-4 py-2 bg-blue-500 text-white rounded-sm hover:bg-blue-600 transition-colors'
|
|
26
26
|
>
|
|
27
27
|
Count: {count}
|
|
28
28
|
</button>
|
package/template/src/index.css
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
1
|
+
@import '@adriansteffan/reactive/preset.css';
|
|
2
|
+
@import 'tailwindcss';
|
|
3
|
+
@plugin '@tailwindcss/typography';
|
package/template/src/main.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import ReactDOM from "react-dom/client";
|
|
3
3
|
import App from "./App.tsx";
|
|
4
|
-
import "reactive/style.css";
|
|
4
|
+
import "@adriansteffan/reactive/style.css";
|
|
5
5
|
import "./index.css";
|
|
6
6
|
import { ExperimentProvider } from "@adriansteffan/reactive";
|
|
7
7
|
|
package/vite.config.ts
CHANGED
|
@@ -3,6 +3,7 @@ import react from '@vitejs/plugin-react';
|
|
|
3
3
|
import { resolve } from 'path';
|
|
4
4
|
import dts from 'vite-plugin-dts';
|
|
5
5
|
import { viteStaticCopy } from 'vite-plugin-static-copy';
|
|
6
|
+
import tailwindcssPostcss from '@tailwindcss/postcss';
|
|
6
7
|
import tailwindcss from 'tailwindcss';
|
|
7
8
|
import autoprefixer from 'autoprefixer';
|
|
8
9
|
|
|
@@ -16,15 +17,16 @@ export default defineConfig(() => {
|
|
|
16
17
|
viteStaticCopy({
|
|
17
18
|
targets: [
|
|
18
19
|
{
|
|
19
|
-
src: '
|
|
20
|
+
src: 'src/index.css',
|
|
20
21
|
dest: '.',
|
|
22
|
+
rename: 'preset.css',
|
|
21
23
|
},
|
|
22
24
|
],
|
|
23
25
|
}),
|
|
24
26
|
],
|
|
25
27
|
css: {
|
|
26
28
|
postcss: {
|
|
27
|
-
plugins: [
|
|
29
|
+
plugins: [tailwindcssPostcss, autoprefixer],
|
|
28
30
|
},
|
|
29
31
|
},
|
|
30
32
|
build: {
|
package/dist/tailwind.config.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/** @type {import('tailwindcss').Config} */
|
|
2
|
-
export default {
|
|
3
|
-
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}', './dist/**/*.{js,ts,jsx,tsx}'],
|
|
4
|
-
theme: {
|
|
5
|
-
fontFamily: {
|
|
6
|
-
sans: ['Atkinson Hyperlegible', 'sans-serif'],
|
|
7
|
-
atkinson: ['Atkinson Hyperlegible', 'sans-serif'],
|
|
8
|
-
},
|
|
9
|
-
extend: {
|
|
10
|
-
keyframes: {
|
|
11
|
-
slideDown: {
|
|
12
|
-
'0%': {
|
|
13
|
-
transform: 'translateY(-10px)',
|
|
14
|
-
opacity: '0',
|
|
15
|
-
},
|
|
16
|
-
'100%': {
|
|
17
|
-
transform: 'translateY(0)',
|
|
18
|
-
opacity: '1',
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
fadeIn: {
|
|
22
|
-
'0%': { opacity: '0' },
|
|
23
|
-
'100%': { opacity: '1' },
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
animation: {
|
|
27
|
-
slideDown: 'slideDown 0.8s ease-out forwards',
|
|
28
|
-
fadeIn: 'fadeIn 0.5s ease-out forwards',
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
plugins: [],
|
|
33
|
-
};
|
package/tailwind.config.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/** @type {import('tailwindcss').Config} */
|
|
2
|
-
export default {
|
|
3
|
-
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}', './dist/**/*.{js,ts,jsx,tsx}'],
|
|
4
|
-
theme: {
|
|
5
|
-
fontFamily: {
|
|
6
|
-
sans: ['Atkinson Hyperlegible', 'sans-serif'],
|
|
7
|
-
atkinson: ['Atkinson Hyperlegible', 'sans-serif'],
|
|
8
|
-
},
|
|
9
|
-
extend: {
|
|
10
|
-
keyframes: {
|
|
11
|
-
slideDown: {
|
|
12
|
-
'0%': {
|
|
13
|
-
transform: 'translateY(-10px)',
|
|
14
|
-
opacity: '0',
|
|
15
|
-
},
|
|
16
|
-
'100%': {
|
|
17
|
-
transform: 'translateY(0)',
|
|
18
|
-
opacity: '1',
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
fadeIn: {
|
|
22
|
-
'0%': { opacity: '0' },
|
|
23
|
-
'100%': { opacity: '1' },
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
animation: {
|
|
27
|
-
slideDown: 'slideDown 0.8s ease-out forwards',
|
|
28
|
-
fadeIn: 'fadeIn 0.5s ease-out forwards',
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
plugins: [],
|
|
33
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/** @type {import('tailwindcss').Config} */
|
|
2
|
-
export default {
|
|
3
|
-
important: true, // needed due to tailwind injection order when importing reactive
|
|
4
|
-
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
|
|
5
|
-
plugins: [require('@tailwindcss/typography')],
|
|
6
|
-
presets: [require("@adriansteffan/reactive/tailwind.config.js")],
|
|
7
|
-
};
|