@konstructio/ui 0.1.2-alpha.89 → 0.1.2-alpha.93
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/{Counter-Qqu8PU85.js → Counter-C1o8YZoR.js} +25 -25
- package/dist/{Wrapper-TuoyTFqo.js → Wrapper-w8u2Zn4M.js} +1 -1
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +2 -2
- package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
- package/dist/components/PhoneNumberInput/components/index.js +1 -1
- package/dist/components/PhoneNumberInput/contexts/index.js +1 -1
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/contexts/index.js +1 -1
- package/dist/contexts/theme.provider.js +1 -1
- package/dist/icons.js +186 -164
- package/dist/index.js +2 -2
- package/dist/lib/icons.d.ts +1 -1
- package/dist/package.json +1 -1
- package/dist/{phone-number.provider-CdPQAKnl.js → phone-number.provider-D3j9sszx.js} +42 -38
- package/dist/styles.css +1 -1
- package/dist/{theme.provider-ps3SkwAo.js → theme.provider-BC_aCvPM.js} +21 -20
- package/package.json +1 -1
|
@@ -2,10 +2,11 @@ import { r as v } from "./utils-COaoD3PI.js";
|
|
|
2
2
|
import { ThemeContext as h } from "./contexts/theme.context.js";
|
|
3
3
|
import { useEffect as a, useState as g } from "react";
|
|
4
4
|
import { jsx as l } from "react/jsx-runtime";
|
|
5
|
-
function
|
|
5
|
+
function s(r) {
|
|
6
6
|
for (var o = 1; o < arguments.length; o++) {
|
|
7
7
|
var t = arguments[o];
|
|
8
|
-
for (var
|
|
8
|
+
for (var i in t)
|
|
9
|
+
i !== "__proto__" && (r[i] = t[i]);
|
|
9
10
|
}
|
|
10
11
|
return r;
|
|
11
12
|
}
|
|
@@ -18,22 +19,22 @@ var C = {
|
|
|
18
19
|
}
|
|
19
20
|
};
|
|
20
21
|
function d(r, o) {
|
|
21
|
-
function t(n,
|
|
22
|
+
function t(n, p, e) {
|
|
22
23
|
if (!(typeof document > "u")) {
|
|
23
|
-
e =
|
|
24
|
-
var
|
|
25
|
-
for (var
|
|
26
|
-
e[
|
|
27
|
-
return document.cookie = n + "=" + r.write(
|
|
24
|
+
e = s({}, o, e), typeof e.expires == "number" && (e.expires = new Date(Date.now() + e.expires * 864e5)), e.expires && (e.expires = e.expires.toUTCString()), n = encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
25
|
+
var c = "";
|
|
26
|
+
for (var f in e)
|
|
27
|
+
e[f] && (c += "; " + f, e[f] !== !0 && (c += "=" + e[f].split(";")[0]));
|
|
28
|
+
return document.cookie = n + "=" + r.write(p, n) + c;
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
|
-
function
|
|
31
|
+
function i(n) {
|
|
31
32
|
if (!(typeof document > "u" || arguments.length && !n)) {
|
|
32
|
-
for (var
|
|
33
|
-
var
|
|
33
|
+
for (var p = document.cookie ? document.cookie.split("; ") : [], e = {}, c = 0; c < p.length; c++) {
|
|
34
|
+
var f = p[c].split("="), m = f.slice(1).join("=");
|
|
34
35
|
try {
|
|
35
|
-
var
|
|
36
|
-
if (e[
|
|
36
|
+
var u = decodeURIComponent(f[0]);
|
|
37
|
+
if (u in e || (e[u] = r.read(m, u)), n === u) break;
|
|
37
38
|
} catch {
|
|
38
39
|
}
|
|
39
40
|
}
|
|
@@ -42,15 +43,15 @@ function d(r, o) {
|
|
|
42
43
|
}
|
|
43
44
|
return Object.create({
|
|
44
45
|
set: t,
|
|
45
|
-
get:
|
|
46
|
-
remove: function(n,
|
|
47
|
-
t(n, "",
|
|
46
|
+
get: i,
|
|
47
|
+
remove: function(n, p) {
|
|
48
|
+
t(n, "", s({}, p, { expires: -1 }));
|
|
48
49
|
},
|
|
49
50
|
withAttributes: function(n) {
|
|
50
|
-
return d(this.converter,
|
|
51
|
+
return d(this.converter, s({}, this.attributes, n));
|
|
51
52
|
},
|
|
52
53
|
withConverter: function(n) {
|
|
53
|
-
return d(
|
|
54
|
+
return d(s({}, this.converter, n), this.attributes);
|
|
54
55
|
}
|
|
55
56
|
}, {
|
|
56
57
|
attributes: { value: Object.freeze(o) },
|
|
@@ -58,13 +59,13 @@ function d(r, o) {
|
|
|
58
59
|
});
|
|
59
60
|
}
|
|
60
61
|
var x = d(C, { path: "/" }), R = ({ children: r, theme: o }) => {
|
|
61
|
-
const [t,
|
|
62
|
+
const [t, i] = g(() => o || (v ? x.get("konstruct-theme") : "kubefirst"));
|
|
62
63
|
return a(() => {
|
|
63
64
|
document.querySelector("body")?.setAttribute("data-theme", t);
|
|
64
65
|
}, [t]), /* @__PURE__ */ l(h.Provider, {
|
|
65
66
|
value: {
|
|
66
67
|
theme: t,
|
|
67
|
-
setTheme:
|
|
68
|
+
setTheme: i
|
|
68
69
|
},
|
|
69
70
|
children: r
|
|
70
71
|
});
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@konstructio/ui",
|
|
3
3
|
"description": "A set of reusable and customizable React components built for konstruct.io",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.1.2-alpha.
|
|
5
|
+
"version": "0.1.2-alpha.93",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/index.js",
|