cilantro-react 0.1.0 → 0.1.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.
- package/README.md +155 -2
- package/dist/index.d.mts +132 -15
- package/dist/index.d.ts +132 -15
- package/dist/index.js +604 -315
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +535 -253
- package/dist/index.mjs.map +1 -1
- package/dist/themes/default.css +43 -0
- package/package.json +4 -3
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* Default theme for Cilantro UI – use with ThemeProvider (data-theme on wrapper).
|
|
2
|
+
Your app must still use Tailwind so utility classes work. */
|
|
3
|
+
|
|
4
|
+
:root,
|
|
5
|
+
[data-theme="light"] {
|
|
6
|
+
--background: 0 0% 100%;
|
|
7
|
+
--foreground: 222.2 84% 4.9%;
|
|
8
|
+
--primary: 222.2 47.4% 11.2%;
|
|
9
|
+
--primary-foreground: 210 40% 98%;
|
|
10
|
+
--muted: 210 40% 96.1%;
|
|
11
|
+
--muted-foreground: 215.4 16.3% 46.9%;
|
|
12
|
+
--border: 214.3 31.8% 91.4%;
|
|
13
|
+
--input: 214.3 31.8% 91.4%;
|
|
14
|
+
--ring: 222.2 84% 4.9%;
|
|
15
|
+
--destructive: 0 84.2% 60.2%;
|
|
16
|
+
--destructive-foreground: 210 40% 98%;
|
|
17
|
+
--accent: 210 40% 96.1%;
|
|
18
|
+
--accent-foreground: 222.2 47.4% 11.2%;
|
|
19
|
+
--popover: 0 0% 100%;
|
|
20
|
+
--popover-foreground: 222.2 84% 4.9%;
|
|
21
|
+
--card: 0 0% 100%;
|
|
22
|
+
--card-foreground: 222.2 84% 4.9%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[data-theme="dark"] {
|
|
26
|
+
--background: 222.2 84% 4.9%;
|
|
27
|
+
--foreground: 210 40% 98%;
|
|
28
|
+
--primary: 210 40% 98%;
|
|
29
|
+
--primary-foreground: 222.2 47.4% 11.2%;
|
|
30
|
+
--muted: 217.2 32.6% 17.5%;
|
|
31
|
+
--muted-foreground: 215 20.2% 65.1%;
|
|
32
|
+
--border: 217.2 32.6% 17.5%;
|
|
33
|
+
--input: 217.2 32.6% 17.5%;
|
|
34
|
+
--ring: 212.7 26.8% 83.9%;
|
|
35
|
+
--destructive: 0 62.8% 30.6%;
|
|
36
|
+
--destructive-foreground: 210 40% 98%;
|
|
37
|
+
--accent: 217.2 32.6% 17.5%;
|
|
38
|
+
--accent-foreground: 210 40% 98%;
|
|
39
|
+
--popover: 222.2 84% 4.9%;
|
|
40
|
+
--popover-foreground: 210 40% 98%;
|
|
41
|
+
--card: 222.2 84% 4.9%;
|
|
42
|
+
--card-foreground: 210 40% 98%;
|
|
43
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cilantro-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "React SDK/UI for Cilantro Smart Wallet - providers, hooks, and headless components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -10,13 +10,14 @@
|
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"import": "./dist/index.mjs",
|
|
12
12
|
"require": "./dist/index.js"
|
|
13
|
-
}
|
|
13
|
+
},
|
|
14
|
+
"./themes/default.css": "./dist/themes/default.css"
|
|
14
15
|
},
|
|
15
16
|
"files": [
|
|
16
17
|
"dist"
|
|
17
18
|
],
|
|
18
19
|
"scripts": {
|
|
19
|
-
"build": "tsup",
|
|
20
|
+
"build": "tsup && node -e \"require('fs').mkdirSync('dist/themes',{recursive:true}); require('fs').copyFileSync('src/ui/themes/default.css','dist/themes/default.css')\"",
|
|
20
21
|
"dev": "tsup --watch",
|
|
21
22
|
"typecheck": "tsc --noEmit"
|
|
22
23
|
},
|