zabi-components 4.0.0 → 4.0.2
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 +68 -0
- package/dist/{CodeBlock-Bbv6JfD2.js → CodeBlock-pT5-FgZd.js} +166 -157
- package/dist/ContactForm-CHI_jeFY.js +580 -0
- package/dist/FeatureCard-iBFGbgVE.js +656 -0
- package/dist/Navigation-BOT-UHg0.js +104 -0
- package/dist/ThemeToggle-BlNPkAQy.js +48 -0
- package/dist/atoms/index.js +21 -662
- package/dist/index/index.js +53 -41
- package/dist/molecules/index.js +11 -578
- package/dist/organisms/index.js +3 -102
- package/dist/{props-BKbHJRuR.js → ssr-safe-bsWGK4V4.js} +655 -636
- package/package.json +5 -4
- package/dist/ThemeToggle-Z2Ndc0if.js +0 -42
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zabi-components",
|
|
3
|
-
"version": "4.0.
|
|
4
|
-
"description": "A modern Svelte 5 component library with TypeScript, Tailwind CSS, and SSR
|
|
3
|
+
"version": "4.0.2",
|
|
4
|
+
"description": "A modern Svelte 5 component library with TypeScript, Tailwind CSS, and 100% SSR-safe components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index/index.js",
|
|
7
7
|
"module": "dist/index/index.js",
|
|
@@ -84,7 +84,8 @@
|
|
|
84
84
|
"vite": "^6.0.0"
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@lucide/svelte": "^0.544.0"
|
|
87
|
+
"@lucide/svelte": "^0.544.0",
|
|
88
|
+
"@opentelemetry/api": "^1.9.0"
|
|
88
89
|
},
|
|
89
90
|
"peerDependencies": {
|
|
90
91
|
"@sveltejs/kit": "^2.0.0",
|
|
@@ -100,4 +101,4 @@
|
|
|
100
101
|
},
|
|
101
102
|
"svelte": "./dist/index/index.js",
|
|
102
103
|
"ssr": true
|
|
103
|
-
}
|
|
104
|
+
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { p as h, u as v, f as l, a as b, i as k, b as n, c as y, d as _, s as S, e as T, g as i, r as w, h as x } from "./props-BKbHJRuR.js";
|
|
2
|
-
var D = l('<span class="text-lg">☀️</span>'), E = l('<span class="text-lg">🌙</span>'), I = l("<button><!></button>");
|
|
3
|
-
function j(d, s) {
|
|
4
|
-
_(s, !0);
|
|
5
|
-
let t = h(s, "isDark", 7, !1), f = w(s, ["$$slots", "$$events", "$$legacy", "isDark"]), o = T(!1);
|
|
6
|
-
v(() => {
|
|
7
|
-
if (S(o, !0), typeof localStorage < "u") {
|
|
8
|
-
const e = localStorage.getItem("theme"), a = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
9
|
-
t(e === "dark" || !e && a), c();
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
function u(e) {
|
|
13
|
-
t(!t()), c(), i(o) && typeof localStorage < "u" && localStorage.setItem("theme", t() ? "dark" : "light");
|
|
14
|
-
}
|
|
15
|
-
function c() {
|
|
16
|
-
i(o) && typeof document < "u" && (t() ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark"));
|
|
17
|
-
}
|
|
18
|
-
var r = I();
|
|
19
|
-
b(r, () => ({
|
|
20
|
-
onclick: u,
|
|
21
|
-
class: "w-10 h-10 bg-gray-100 hover:bg-gray-200 border border-gray-300 rounded-lg flex items-center justify-center text-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500",
|
|
22
|
-
"aria-label": t() ? "Switch to light mode" : "Switch to dark mode",
|
|
23
|
-
...f
|
|
24
|
-
}));
|
|
25
|
-
var m = x(r);
|
|
26
|
-
{
|
|
27
|
-
var g = (e) => {
|
|
28
|
-
var a = D();
|
|
29
|
-
n(e, a);
|
|
30
|
-
}, p = (e) => {
|
|
31
|
-
var a = E();
|
|
32
|
-
n(e, a);
|
|
33
|
-
};
|
|
34
|
-
k(m, (e) => {
|
|
35
|
-
t() ? e(g) : e(p, !1);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
n(d, r), y();
|
|
39
|
-
}
|
|
40
|
-
export {
|
|
41
|
-
j as T
|
|
42
|
-
};
|