@cfx-dev/ui-components 0.0.19 → 0.0.21

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 (77) hide show
  1. package/dist/Combination-Dp_plIQU.js +793 -0
  2. package/dist/{Icons-B26SczGZ.js → Icons-BlBKvJD8.js} +40 -98
  3. package/dist/{Rail-BCY3h7eP.js → Rail-CCuyJpf6.js} +11 -11
  4. package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
  5. package/dist/assets/InputDropzone.css +1 -0
  6. package/dist/assets/ItemPreview.css +1 -0
  7. package/dist/assets/Table.css +1 -0
  8. package/dist/components/BackdropPortal/BackdropPortal.d.ts +1 -0
  9. package/dist/components/BackdropPortal/BackdropPortal.js +9 -7
  10. package/dist/components/Badge/Badge.d.ts +2 -2
  11. package/dist/components/Button/Button.d.ts +2 -1
  12. package/dist/components/Button/Button.js +27 -25
  13. package/dist/components/Button/ButtonBar.d.ts +0 -1
  14. package/dist/components/Button/LinkButton.js +13 -13
  15. package/dist/components/Flyout/Flyout.d.ts +1 -0
  16. package/dist/components/Flyout/Flyout.js +28 -27
  17. package/dist/components/Input/Input.js +1 -1
  18. package/dist/components/Input/RichInput.js +2 -2
  19. package/dist/components/InputDropzone/InputDropzone.d.ts +14 -0
  20. package/dist/components/InputDropzone/InputDropzone.js +1103 -0
  21. package/dist/components/InputDropzone/ItemPreview.d.ts +8 -0
  22. package/dist/components/InputDropzone/ItemPreview.js +24 -0
  23. package/dist/components/Layout/Scrollable/Rail.js +3 -3
  24. package/dist/components/Layout/Scrollable/Scrollable.js +2 -2
  25. package/dist/components/Layout/Scrollable/VirtualScrollable.js +3 -4
  26. package/dist/components/Modal/Modal.d.ts +0 -2
  27. package/dist/components/Modal/Modal.js +3 -3
  28. package/dist/components/NavList/NavList.js +5 -5
  29. package/dist/components/OnScreenSensor.js +6 -6
  30. package/dist/components/Overlay/Overlay.d.ts +1 -0
  31. package/dist/components/Overlay/Overlay.js +16 -15
  32. package/dist/components/Select/Select.js +652 -663
  33. package/dist/components/Shroud/Shroud.js +20 -19
  34. package/dist/components/Switch/Switch.js +1 -1
  35. package/dist/components/Table/Table.d.ts +17 -0
  36. package/dist/components/Table/Table.js +61 -0
  37. package/dist/components/Tabular/Tabular.d.ts +1 -1
  38. package/dist/components/Text/Text.types.d.ts +0 -1
  39. package/dist/components/Title/Title.d.ts +1 -0
  40. package/dist/components/Title/Title.js +26 -25
  41. package/dist/{extends-Dk_bSU3E.js → extends-hS2Bh-Yp.js} +1 -2
  42. package/dist/{index-C75OpfGQ.js → index-2hJuj4UN.js} +2018 -2526
  43. package/dist/index-DQMInta3.js +663 -0
  44. package/dist/index.esm-BkynlSN6.js +72 -0
  45. package/dist/main.d.ts +17 -26
  46. package/dist/main.js +145 -122
  47. package/dist/{medium-Dc7QRuE0.js → medium-JVtzoF2c.js} +3 -3
  48. package/dist/style-guide/Colours/DarkThemeSwatches.d.ts +2 -0
  49. package/dist/style-guide/Colours/DarkThemeSwatches.js +110 -0
  50. package/dist/style-guide/Colours/LightThemeSwatches.d.ts +2 -0
  51. package/dist/style-guide/Colours/LightThemeSwatches.js +105 -0
  52. package/dist/style-guide/Colours/Swatches.d.ts +6 -0
  53. package/dist/style-guide/Colours/Swatches.js +48 -0
  54. package/dist/style-guide/Icons/IconDisplayGrid.d.ts +2 -0
  55. package/dist/style-guide/Icons/IconDisplayGrid.js +42 -0
  56. package/dist/style-guide/Icons/Icons.js +7 -0
  57. package/dist/tslib.es6-CBKHJX9H.js +151 -0
  58. package/dist/utils/functional.js +19 -6
  59. package/dist/utils/hooks.d.ts +2 -1
  60. package/dist/utils/hooks.js +77 -10
  61. package/dist/utils/links.js +1128 -12
  62. package/dist/utils/math.js +8 -3
  63. package/dist/utils/mergeRefs.d.ts +1 -1
  64. package/dist/utils/mergeRefs.js +2 -2
  65. package/dist/utils/outlet.js +19 -4
  66. package/dist/utils/string.js +42 -7
  67. package/package.json +7 -13
  68. package/dist/Combination-Dj-a6dCZ.js +0 -1462
  69. package/dist/components/Icons.js +0 -6
  70. package/dist/functional-C0pE183N.js +0 -30
  71. package/dist/hooks-GAujvL7d.js +0 -86
  72. package/dist/links-CgOD-Vfj.js +0 -1142
  73. package/dist/math-i2ceybzU.js +0 -16
  74. package/dist/outlet-B11a3Kgw.js +0 -27
  75. package/dist/string-NVxCUbqk.js +0 -54
  76. package/dist/tslib.es6-Dd_EkEfR.js +0 -48
  77. /package/dist/{components → style-guide/Icons}/Icons.d.ts +0 -0
@@ -1,16 +0,0 @@
1
- function a(t) {
2
- return t < 0 ? 0 : t > 1 ? 1 : t;
3
- }
4
- function n(t, e, r) {
5
- return Math.min(r, Math.max(e, t));
6
- }
7
- const o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8
- __proto__: null,
9
- clamp: n,
10
- clamp01: a
11
- }, Symbol.toStringTag, { value: "Module" }));
12
- export {
13
- n as a,
14
- a as c,
15
- o as m
16
- };
@@ -1,27 +0,0 @@
1
- import { $ as o } from "./index-C75OpfGQ.js";
2
- function r(t) {
3
- let e = null;
4
- if (typeof window < "u" && (e = document.getElementById(t)), !e)
5
- throw new Error(`Attempted to connect the outlet to the DOM node with ID #${t}, but no such node exists.`);
6
- return ({
7
- children: n
8
- }) => o.createPortal(n, e);
9
- }
10
- function u() {
11
- let t = null;
12
- if (typeof window < "u" && (t = document.createElement("div"), document.body.appendChild(t)), !t)
13
- throw new Error("Attempted to create an outlet, but no such outlet exists.");
14
- return ({
15
- children: e
16
- }) => o.createPortal(e, t);
17
- }
18
- const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19
- __proto__: null,
20
- attachOutlet: r,
21
- createOutlet: u
22
- }, Symbol.toStringTag, { value: "Module" }));
23
- export {
24
- r as a,
25
- u as c,
26
- c as o
27
- };
@@ -1,54 +0,0 @@
1
- function h(t, e) {
2
- const n = t.charCodeAt(e);
3
- let r;
4
- return n >= 55296 && n <= 56319 && t.length > e + 1 && (r = t.charCodeAt(e + 1), r >= 56320 && r <= 57343) ? t.substring(e, e + 2) : t[e];
5
- }
6
- function b(t, e) {
7
- return t[e];
8
- }
9
- function S(t, e) {
10
- return t - e;
11
- }
12
- function d(t, e, n = !1) {
13
- const r = n ? h : b, a = e.filter((s, g, p) => p.lastIndexOf(s) !== g ? !1 : s < t.length && s > 0).sort(S);
14
- if (a.length === 0)
15
- return /* @__PURE__ */ new Map([[0, t]]);
16
- const o = /* @__PURE__ */ new Map();
17
- let l = "", i = 0, u = 0, c = 0, f = 0;
18
- for (; u < t.length; ) {
19
- const s = r(t, u);
20
- l += s, u += s.length, i += 1, a[c] === i && (o.set(f, l), l = "", f = a[c], c += 1);
21
- }
22
- return l && o.set(f, l), o;
23
- }
24
- function A(t, e, n, r) {
25
- const a = t.substring(0, n), o = t.substring(r);
26
- return `${a}${e}${o}`;
27
- }
28
- function C(t) {
29
- return t.replace(/\\/g, "/");
30
- }
31
- function I(t) {
32
- return !!t || t === "true" || t === "1";
33
- }
34
- function P(t) {
35
- return !t || t === "false" || t === "0";
36
- }
37
- const _ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
38
- __proto__: null,
39
- isFalseString: P,
40
- isTrueString: I,
41
- normalizeSlashes: C,
42
- replaceRange: A,
43
- splitByIndices: d,
44
- unicodeCharAt: h
45
- }, Symbol.toStringTag, { value: "Module" }));
46
- export {
47
- d as a,
48
- P as b,
49
- I as i,
50
- C as n,
51
- A as r,
52
- _ as s,
53
- h as u
54
- };
@@ -1,48 +0,0 @@
1
- var c = function(n, t) {
2
- return c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
3
- e.__proto__ = r;
4
- } || function(e, r) {
5
- for (var o in r)
6
- Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
7
- }, c(n, t);
8
- };
9
- function s(n, t) {
10
- if (typeof t != "function" && t !== null)
11
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
12
- c(n, t);
13
- function e() {
14
- this.constructor = n;
15
- }
16
- n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
17
- }
18
- var p = function() {
19
- return p = Object.assign || function(t) {
20
- for (var e, r = 1, o = arguments.length; r < o; r++) {
21
- e = arguments[r];
22
- for (var a in e)
23
- Object.prototype.hasOwnProperty.call(e, a) && (t[a] = e[a]);
24
- }
25
- return t;
26
- }, p.apply(this, arguments);
27
- };
28
- function u(n, t) {
29
- var e = {};
30
- for (var r in n)
31
- Object.prototype.hasOwnProperty.call(n, r) && t.indexOf(r) < 0 && (e[r] = n[r]);
32
- if (n != null && typeof Object.getOwnPropertySymbols == "function")
33
- for (var o = 0, r = Object.getOwnPropertySymbols(n); o < r.length; o++)
34
- t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(n, r[o]) && (e[r[o]] = n[r[o]]);
35
- return e;
36
- }
37
- function l(n, t, e) {
38
- if (e || arguments.length === 2)
39
- for (var r = 0, o = t.length, a; r < o; r++)
40
- (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
41
- return n.concat(a || Array.prototype.slice.call(t));
42
- }
43
- export {
44
- p as _,
45
- s as a,
46
- u as b,
47
- l as c
48
- };