@vizel/core 0.0.1-alpha.5 → 1.0.0

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.
Files changed (75) hide show
  1. package/dist/components.css +1 -1
  2. package/dist/components.css.map +1 -1
  3. package/dist/index.d.ts +230 -15
  4. package/dist/index.js +78 -75
  5. package/dist/index10.js +1 -1
  6. package/dist/index11.js +4 -4
  7. package/dist/index14.js +1 -1
  8. package/dist/index15.js +134 -127
  9. package/dist/index17.js +2 -2
  10. package/dist/index18.js +1 -1
  11. package/dist/index19.js +86 -86
  12. package/dist/index20.js +2 -2
  13. package/dist/index21.js +2 -2
  14. package/dist/index22.js +16 -13
  15. package/dist/index24.js +164 -11
  16. package/dist/index25.js +12 -53
  17. package/dist/index26.js +49 -136
  18. package/dist/index27.js +132 -59
  19. package/dist/index28.js +66 -32
  20. package/dist/index29.js +35 -21
  21. package/dist/index3.js +91 -90
  22. package/dist/index30.js +23 -9
  23. package/dist/index31.js +9 -147
  24. package/dist/index32.js +138 -256
  25. package/dist/index33.js +258 -85
  26. package/dist/index34.js +84 -55
  27. package/dist/index35.js +64 -4
  28. package/dist/index36.js +4 -123
  29. package/dist/index37.js +111 -315
  30. package/dist/index38.js +321 -481
  31. package/dist/index39.js +12 -47
  32. package/dist/index4.js +1 -1
  33. package/dist/index40.js +463 -655
  34. package/dist/index41.js +48 -4
  35. package/dist/index42.js +694 -4
  36. package/dist/index43.js +4 -238
  37. package/dist/index44.js +4 -82
  38. package/dist/index45.js +237 -16
  39. package/dist/index46.js +81 -57
  40. package/dist/index47.js +17 -15
  41. package/dist/index48.js +57 -285
  42. package/dist/index49.js +15 -202
  43. package/dist/index5.js +78 -68
  44. package/dist/index50.js +281 -1497
  45. package/dist/index51.js +202 -5
  46. package/dist/index52.js +1408 -1467
  47. package/dist/index53.js +5 -723
  48. package/dist/index54.js +1109 -81
  49. package/dist/index55.js +703 -226
  50. package/dist/index56.js +84 -3
  51. package/dist/index57.js +219 -1205
  52. package/dist/index58.js +3 -734
  53. package/dist/index59.js +1232 -21
  54. package/dist/index6.js +1 -1
  55. package/dist/index60.js +734 -10
  56. package/dist/index61.js +21 -7
  57. package/dist/index62.js +10 -8
  58. package/dist/index63.js +6 -13
  59. package/dist/index64.js +7 -18
  60. package/dist/index65.js +12 -23
  61. package/dist/index66.js +17 -53
  62. package/dist/index67.js +23 -1059
  63. package/dist/index68.js +54 -90
  64. package/dist/index69.js +1061 -98
  65. package/dist/index7.js +108 -96
  66. package/dist/index70.js +98 -4
  67. package/dist/index71.js +93 -0
  68. package/dist/index72.js +6 -0
  69. package/dist/index8.js +1 -1
  70. package/dist/index9.js +75 -65
  71. package/dist/mathematics.css +1 -0
  72. package/dist/mathematics.css.map +1 -0
  73. package/dist/styles.css +1 -1
  74. package/dist/styles.css.map +1 -1
  75. package/package.json +90 -52
package/dist/index61.js CHANGED
@@ -1,9 +1,23 @@
1
- function n(r, e) {
2
- const t = {};
3
- !r.hFlip != !e.hFlip && (t.hFlip = !0), !r.vFlip != !e.vFlip && (t.vFlip = !0);
4
- const i = ((r.rotate || 0) + (e.rotate || 0)) % 4;
5
- return i && (t.rotate = i), t;
6
- }
1
+ const e = Object.freeze({
2
+ left: 0,
3
+ top: 0,
4
+ width: 16,
5
+ height: 16
6
+ }), t = Object.freeze({
7
+ rotate: 0,
8
+ vFlip: !1,
9
+ hFlip: !1
10
+ }), o = Object.freeze({
11
+ ...e,
12
+ ...t
13
+ }), n = Object.freeze({
14
+ ...o,
15
+ body: "",
16
+ hidden: !1
17
+ });
7
18
  export {
8
- n as mergeIconTransformations
19
+ n as defaultExtendedIconProps,
20
+ e as defaultIconDimensions,
21
+ o as defaultIconProps,
22
+ t as defaultIconTransformations
9
23
  };
package/dist/index62.js CHANGED
@@ -1,10 +1,12 @@
1
- import { defaultExtendedIconProps as f, defaultIconTransformations as r } from "./index59.js";
2
- import { mergeIconTransformations as t } from "./index61.js";
3
- function a(e, i) {
4
- const n = t(e, i);
5
- for (const o in f) o in r ? o in e && !(o in n) && (n[o] = r[o]) : o in i ? n[o] = i[o] : o in e && (n[o] = e[o]);
6
- return n;
7
- }
1
+ import { defaultIconTransformations as t } from "./index61.js";
2
+ const e = Object.freeze({
3
+ width: null,
4
+ height: null
5
+ }), n = Object.freeze({
6
+ ...e,
7
+ ...t
8
+ });
8
9
  export {
9
- a as mergeIconData
10
+ n as defaultIconCustomisations,
11
+ e as defaultIconSizeCustomisations
10
12
  };
package/dist/index63.js CHANGED
@@ -1,16 +1,9 @@
1
- function u(o, i) {
2
- const s = o.icons, e = o.aliases || /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null);
3
- function r(c) {
4
- if (s[c]) return t[c] = [];
5
- if (!(c in t)) {
6
- t[c] = null;
7
- const n = e[c] && e[c].parent, l = n && r(n);
8
- l && (t[c] = [n].concat(l));
9
- }
10
- return t[c];
11
- }
12
- return (i || Object.keys(s).concat(Object.keys(e))).forEach(r), t;
1
+ function n(r, e) {
2
+ const t = {};
3
+ !r.hFlip != !e.hFlip && (t.hFlip = !0), !r.vFlip != !e.vFlip && (t.vFlip = !0);
4
+ const i = ((r.rotate || 0) + (e.rotate || 0)) % 4;
5
+ return i && (t.rotate = i), t;
13
6
  }
14
7
  export {
15
- u as getIconsTree
8
+ n as mergeIconTransformations
16
9
  };
package/dist/index64.js CHANGED
@@ -1,21 +1,10 @@
1
- const h = /(-?[0-9.]*[0-9]+[0-9.]*)/g, a = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
2
- function o(t, f, e) {
3
- if (f === 1) return t;
4
- if (e = e || 100, typeof t == "number") return Math.ceil(t * f * e) / e;
5
- if (typeof t != "string") return t;
6
- const l = t.split(h);
7
- if (l === null || !l.length) return t;
8
- const n = [];
9
- let u = l.shift(), s = a.test(u);
10
- for (; ; ) {
11
- if (s) {
12
- const r = parseFloat(u);
13
- isNaN(r) ? n.push(u) : n.push(Math.ceil(r * f * e) / e);
14
- } else n.push(u);
15
- if (u = l.shift(), u === void 0) return n.join("");
16
- s = !s;
17
- }
1
+ import { defaultExtendedIconProps as f, defaultIconTransformations as r } from "./index61.js";
2
+ import { mergeIconTransformations as t } from "./index63.js";
3
+ function a(e, i) {
4
+ const n = t(e, i);
5
+ for (const o in f) o in r ? o in e && !(o in n) && (n[o] = r[o]) : o in i ? n[o] = i[o] : o in e && (n[o] = e[o]);
6
+ return n;
18
7
  }
19
8
  export {
20
- o as calculateSize
9
+ a as mergeIconData
21
10
  };
package/dist/index65.js CHANGED
@@ -1,27 +1,16 @@
1
- function l(e, i = "defs") {
2
- let f = "";
3
- const s = e.indexOf("<" + i);
4
- for (; s >= 0; ) {
5
- const d = e.indexOf(">", s), r = e.indexOf("</" + i);
6
- if (d === -1 || r === -1) break;
7
- const n = e.indexOf(">", r);
8
- if (n === -1) break;
9
- f += e.slice(d + 1, r).trim(), e = e.slice(0, s).trim() + e.slice(n + 1);
1
+ function u(o, i) {
2
+ const s = o.icons, e = o.aliases || /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null);
3
+ function r(c) {
4
+ if (s[c]) return t[c] = [];
5
+ if (!(c in t)) {
6
+ t[c] = null;
7
+ const n = e[c] && e[c].parent, l = n && r(n);
8
+ l && (t[c] = [n].concat(l));
9
+ }
10
+ return t[c];
10
11
  }
11
- return {
12
- defs: f,
13
- content: e
14
- };
15
- }
16
- function t(e, i) {
17
- return e ? "<defs>" + e + "</defs>" + i : i;
18
- }
19
- function u(e, i, f) {
20
- const s = l(e);
21
- return t(s.defs, i + s.content + f);
12
+ return (i || Object.keys(s).concat(Object.keys(e))).forEach(r), t;
22
13
  }
23
14
  export {
24
- t as mergeDefsAndContent,
25
- l as splitSVGDefs,
26
- u as wrapSVGContent
15
+ u as getIconsTree
27
16
  };
package/dist/index66.js CHANGED
@@ -1,57 +1,21 @@
1
- import { keyName as c, base as n } from "./index68.js";
2
- const d = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), y = typeof navigator < "u" && /Win/.test(navigator.platform);
3
- function h(e) {
4
- let r = e.split(/-(?!$)/), t = r[r.length - 1];
5
- t == "Space" && (t = " ");
6
- let i, f, o, a;
7
- for (let l = 0; l < r.length - 1; l++) {
8
- let s = r[l];
9
- if (/^(cmd|meta|m)$/i.test(s))
10
- a = !0;
11
- else if (/^a(lt)?$/i.test(s))
12
- i = !0;
13
- else if (/^(c|ctrl|control)$/i.test(s))
14
- f = !0;
15
- else if (/^s(hift)?$/i.test(s))
16
- o = !0;
17
- else if (/^mod$/i.test(s))
18
- d ? a = !0 : f = !0;
19
- else
20
- throw new Error("Unrecognized modifier name: " + s);
1
+ const h = /(-?[0-9.]*[0-9]+[0-9.]*)/g, a = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
2
+ function o(t, f, e) {
3
+ if (f === 1) return t;
4
+ if (e = e || 100, typeof t == "number") return Math.ceil(t * f * e) / e;
5
+ if (typeof t != "string") return t;
6
+ const l = t.split(h);
7
+ if (l === null || !l.length) return t;
8
+ const n = [];
9
+ let u = l.shift(), s = a.test(u);
10
+ for (; ; ) {
11
+ if (s) {
12
+ const r = parseFloat(u);
13
+ isNaN(r) ? n.push(u) : n.push(Math.ceil(r * f * e) / e);
14
+ } else n.push(u);
15
+ if (u = l.shift(), u === void 0) return n.join("");
16
+ s = !s;
21
17
  }
22
- return i && (t = "Alt-" + t), f && (t = "Ctrl-" + t), a && (t = "Meta-" + t), o && (t = "Shift-" + t), t;
23
- }
24
- function m(e) {
25
- let r = /* @__PURE__ */ Object.create(null);
26
- for (let t in e)
27
- r[h(t)] = e[t];
28
- return r;
29
- }
30
- function u(e, r, t = !0) {
31
- return r.altKey && (e = "Alt-" + e), r.ctrlKey && (e = "Ctrl-" + e), r.metaKey && (e = "Meta-" + e), t && r.shiftKey && (e = "Shift-" + e), e;
32
- }
33
- function K(e) {
34
- let r = m(e);
35
- return function(t, i) {
36
- let f = c(i), o, a = r[u(f, i)];
37
- if (a && a(t.state, t.dispatch, t))
38
- return !0;
39
- if (f.length == 1 && f != " ") {
40
- if (i.shiftKey) {
41
- let l = r[u(f, i, !1)];
42
- if (l && l(t.state, t.dispatch, t))
43
- return !0;
44
- }
45
- if ((i.altKey || i.metaKey || i.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
46
- !(y && i.ctrlKey && i.altKey) && (o = n[i.keyCode]) && o != f) {
47
- let l = r[u(o, i)];
48
- if (l && l(t.state, t.dispatch, t))
49
- return !0;
50
- }
51
- }
52
- return !1;
53
- };
54
18
  }
55
19
  export {
56
- K as keydownHandler
20
+ o as calculateSize
57
21
  };