@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.
- package/dist/Combination-Dp_plIQU.js +793 -0
- package/dist/{Icons-B26SczGZ.js → Icons-BlBKvJD8.js} +40 -98
- package/dist/{Rail-BCY3h7eP.js → Rail-CCuyJpf6.js} +11 -11
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/assets/InputDropzone.css +1 -0
- package/dist/assets/ItemPreview.css +1 -0
- package/dist/assets/Table.css +1 -0
- package/dist/components/BackdropPortal/BackdropPortal.d.ts +1 -0
- package/dist/components/BackdropPortal/BackdropPortal.js +9 -7
- package/dist/components/Badge/Badge.d.ts +2 -2
- package/dist/components/Button/Button.d.ts +2 -1
- package/dist/components/Button/Button.js +27 -25
- package/dist/components/Button/ButtonBar.d.ts +0 -1
- package/dist/components/Button/LinkButton.js +13 -13
- package/dist/components/Flyout/Flyout.d.ts +1 -0
- package/dist/components/Flyout/Flyout.js +28 -27
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/RichInput.js +2 -2
- package/dist/components/InputDropzone/InputDropzone.d.ts +14 -0
- package/dist/components/InputDropzone/InputDropzone.js +1103 -0
- package/dist/components/InputDropzone/ItemPreview.d.ts +8 -0
- package/dist/components/InputDropzone/ItemPreview.js +24 -0
- package/dist/components/Layout/Scrollable/Rail.js +3 -3
- package/dist/components/Layout/Scrollable/Scrollable.js +2 -2
- package/dist/components/Layout/Scrollable/VirtualScrollable.js +3 -4
- package/dist/components/Modal/Modal.d.ts +0 -2
- package/dist/components/Modal/Modal.js +3 -3
- package/dist/components/NavList/NavList.js +5 -5
- package/dist/components/OnScreenSensor.js +6 -6
- package/dist/components/Overlay/Overlay.d.ts +1 -0
- package/dist/components/Overlay/Overlay.js +16 -15
- package/dist/components/Select/Select.js +652 -663
- package/dist/components/Shroud/Shroud.js +20 -19
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Table/Table.d.ts +17 -0
- package/dist/components/Table/Table.js +61 -0
- package/dist/components/Tabular/Tabular.d.ts +1 -1
- package/dist/components/Text/Text.types.d.ts +0 -1
- package/dist/components/Title/Title.d.ts +1 -0
- package/dist/components/Title/Title.js +26 -25
- package/dist/{extends-Dk_bSU3E.js → extends-hS2Bh-Yp.js} +1 -2
- package/dist/{index-C75OpfGQ.js → index-2hJuj4UN.js} +2018 -2526
- package/dist/index-DQMInta3.js +663 -0
- package/dist/index.esm-BkynlSN6.js +72 -0
- package/dist/main.d.ts +17 -26
- package/dist/main.js +145 -122
- package/dist/{medium-Dc7QRuE0.js → medium-JVtzoF2c.js} +3 -3
- package/dist/style-guide/Colours/DarkThemeSwatches.d.ts +2 -0
- package/dist/style-guide/Colours/DarkThemeSwatches.js +110 -0
- package/dist/style-guide/Colours/LightThemeSwatches.d.ts +2 -0
- package/dist/style-guide/Colours/LightThemeSwatches.js +105 -0
- package/dist/style-guide/Colours/Swatches.d.ts +6 -0
- package/dist/style-guide/Colours/Swatches.js +48 -0
- package/dist/style-guide/Icons/IconDisplayGrid.d.ts +2 -0
- package/dist/style-guide/Icons/IconDisplayGrid.js +42 -0
- package/dist/style-guide/Icons/Icons.js +7 -0
- package/dist/tslib.es6-CBKHJX9H.js +151 -0
- package/dist/utils/functional.js +19 -6
- package/dist/utils/hooks.d.ts +2 -1
- package/dist/utils/hooks.js +77 -10
- package/dist/utils/links.js +1128 -12
- package/dist/utils/math.js +8 -3
- package/dist/utils/mergeRefs.d.ts +1 -1
- package/dist/utils/mergeRefs.js +2 -2
- package/dist/utils/outlet.js +19 -4
- package/dist/utils/string.js +42 -7
- package/package.json +7 -13
- package/dist/Combination-Dj-a6dCZ.js +0 -1462
- package/dist/components/Icons.js +0 -6
- package/dist/functional-C0pE183N.js +0 -30
- package/dist/hooks-GAujvL7d.js +0 -86
- package/dist/links-CgOD-Vfj.js +0 -1142
- package/dist/math-i2ceybzU.js +0 -16
- package/dist/outlet-B11a3Kgw.js +0 -27
- package/dist/string-NVxCUbqk.js +0 -54
- package/dist/tslib.es6-Dd_EkEfR.js +0 -48
- /package/dist/{components → style-guide/Icons}/Icons.d.ts +0 -0
|
@@ -1,153 +1,94 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
color: void 0,
|
|
5
|
-
size: void 0,
|
|
6
|
-
className: void 0,
|
|
7
|
-
style: void 0,
|
|
8
|
-
attr: void 0
|
|
9
|
-
}, d = c.createContext && c.createContext(L), o = function() {
|
|
10
|
-
return o = Object.assign || function(t) {
|
|
11
|
-
for (var l, e = 1, n = arguments.length; e < n; e++) {
|
|
12
|
-
l = arguments[e];
|
|
13
|
-
for (var i in l)
|
|
14
|
-
Object.prototype.hasOwnProperty.call(l, i) && (t[i] = l[i]);
|
|
15
|
-
}
|
|
16
|
-
return t;
|
|
17
|
-
}, o.apply(this, arguments);
|
|
18
|
-
}, z = function(t, l) {
|
|
19
|
-
var e = {};
|
|
20
|
-
for (var n in t)
|
|
21
|
-
Object.prototype.hasOwnProperty.call(t, n) && l.indexOf(n) < 0 && (e[n] = t[n]);
|
|
22
|
-
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
23
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(t); i < n.length; i++)
|
|
24
|
-
l.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[i]) && (e[n[i]] = t[n[i]]);
|
|
25
|
-
return e;
|
|
26
|
-
};
|
|
27
|
-
function m(t) {
|
|
28
|
-
return t && t.map(function(l, e) {
|
|
29
|
-
return c.createElement(l.tag, o({
|
|
30
|
-
key: e
|
|
31
|
-
}, l.attr), m(l.child));
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function r(t) {
|
|
35
|
-
return function(l) {
|
|
36
|
-
return c.createElement(p, o({
|
|
37
|
-
attr: o({}, t.attr)
|
|
38
|
-
}, l), m(t.child));
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
function p(t) {
|
|
42
|
-
var l = function(e) {
|
|
43
|
-
var n = t.attr, i = t.size, u = t.title, C = z(t, ["attr", "size", "title"]), g = i || e.size || "1em", s;
|
|
44
|
-
return e.className && (s = e.className), t.className && (s = (s ? s + " " : "") + t.className), c.createElement("svg", o({
|
|
45
|
-
stroke: "currentColor",
|
|
46
|
-
fill: "currentColor",
|
|
47
|
-
strokeWidth: "0"
|
|
48
|
-
}, e.attr, n, C, {
|
|
49
|
-
className: s,
|
|
50
|
-
style: o(o({
|
|
51
|
-
color: t.color || e.color
|
|
52
|
-
}, e.style), t.style),
|
|
53
|
-
height: g,
|
|
54
|
-
width: g,
|
|
55
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
56
|
-
}), u && c.createElement("title", null, u), t.children);
|
|
57
|
-
};
|
|
58
|
-
return d !== void 0 ? c.createElement(d.Consumer, null, function(e) {
|
|
59
|
-
return l(e);
|
|
60
|
-
}) : l(L);
|
|
61
|
-
}
|
|
62
|
-
function x(t) {
|
|
2
|
+
import { G as r, b as n } from "./index.esm-BkynlSN6.js";
|
|
3
|
+
function o(t) {
|
|
63
4
|
return r({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8z" } }, { tag: "path", attr: { d: "M13 7h-2v6h6v-2h-4z" } }] })(t);
|
|
64
5
|
}
|
|
65
|
-
function
|
|
6
|
+
function c(t) {
|
|
66
7
|
return r({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M15.854 5.146a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 0 1 .708-.708L12.5 7.793l2.646-2.647a.5.5 0 0 1 .708 0z" } }, { tag: "path", attr: { d: "M1 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H1zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z" } }] })(t);
|
|
67
8
|
}
|
|
68
|
-
function
|
|
9
|
+
function g(t) {
|
|
69
10
|
return r({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3Zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z" } }] })(t);
|
|
70
11
|
}
|
|
71
|
-
function
|
|
12
|
+
function s(t) {
|
|
72
13
|
return r({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z" } }, { tag: "path", attr: { d: "M10.97 4.97a.235.235 0 0 0-.02.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05z" } }] })(t);
|
|
73
14
|
}
|
|
74
|
-
function
|
|
15
|
+
function d(t) {
|
|
75
16
|
return r({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z" } }] })(t);
|
|
76
17
|
}
|
|
77
|
-
function
|
|
18
|
+
function b(t) {
|
|
78
19
|
return r({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z" } }] })(t);
|
|
79
20
|
}
|
|
80
|
-
function
|
|
21
|
+
function S(t) {
|
|
81
22
|
return r({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z" } }] })(t);
|
|
82
23
|
}
|
|
83
|
-
function
|
|
24
|
+
function h(t) {
|
|
84
25
|
return r({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71V3.5z" } }, { tag: "path", attr: { d: "M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm7-8A7 7 0 1 1 1 8a7 7 0 0 1 14 0z" } }] })(t);
|
|
85
26
|
}
|
|
86
|
-
function
|
|
27
|
+
function v(t) {
|
|
87
28
|
return r({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M4 10.781c.148 1.667 1.513 2.85 3.591 3.003V15h1.043v-1.216c2.27-.179 3.678-1.438 3.678-3.3 0-1.59-.947-2.51-2.956-3.028l-.722-.187V3.467c1.122.11 1.879.714 2.07 1.616h1.47c-.166-1.6-1.54-2.748-3.54-2.875V1H7.591v1.233c-1.939.23-3.27 1.472-3.27 3.156 0 1.454.966 2.483 2.661 2.917l.61.162v4.031c-1.149-.17-1.94-.8-2.131-1.718H4zm3.391-3.836c-1.043-.263-1.6-.825-1.6-1.616 0-.944.704-1.641 1.8-1.828v3.495l-.2-.05zm1.591 1.872c1.287.323 1.852.859 1.852 1.769 0 1.097-.826 1.828-2.2 1.939V8.73l.348.086z" } }] })(t);
|
|
88
29
|
}
|
|
89
|
-
function
|
|
30
|
+
function u(t) {
|
|
90
31
|
return r({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z" } }, { tag: "path", attr: { d: "M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z" } }] })(t);
|
|
91
32
|
}
|
|
92
|
-
function
|
|
33
|
+
function L(t) {
|
|
93
34
|
return r({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872l-.1-.34zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z" } }] })(t);
|
|
94
35
|
}
|
|
95
|
-
function
|
|
36
|
+
function f(t) {
|
|
96
37
|
return r({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M8 1.314C12.438-3.248 23.534 4.735 8 15-7.534 4.736 3.562-3.248 8 1.314z" } }] })(t);
|
|
97
38
|
}
|
|
98
|
-
function
|
|
39
|
+
function p(t) {
|
|
99
40
|
return r({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "m8 2.748-.717-.737C5.6.281 2.514.878 1.4 3.053c-.523 1.023-.641 2.5.314 4.385.92 1.815 2.834 3.989 6.286 6.357 3.452-2.368 5.365-4.542 6.286-6.357.955-1.886.838-3.362.314-4.385C13.486.878 10.4.28 8.717 2.01L8 2.748zM8 15C-7.333 4.868 3.279-3.04 7.824 1.143c.06.055.119.112.176.171a3.12 3.12 0 0 1 .176-.17C12.72-3.042 23.333 4.867 8 15z" } }] })(t);
|
|
100
41
|
}
|
|
101
|
-
function
|
|
42
|
+
function M(t) {
|
|
102
43
|
return r({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M7 14s-1 0-1-1 1-4 5-4 5 3 5 4-1 1-1 1H7Zm4-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-5.784 6A2.238 2.238 0 0 1 5 13c0-1.355.68-2.75 1.936-3.72A6.325 6.325 0 0 0 5 9c-4 0-5 3-5 4s1 1 1 1h4.216ZM4.5 8a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z" } }] })(t);
|
|
103
44
|
}
|
|
104
|
-
function
|
|
45
|
+
function B(t) {
|
|
105
46
|
return r({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M10.804 8 5 4.633v6.734L10.804 8zm.792-.696a.802.802 0 0 1 0 1.392l-6.363 3.692C4.713 12.69 4 12.345 4 11.692V4.308c0-.653.713-.998 1.233-.696l6.363 3.692z" } }] })(t);
|
|
106
47
|
}
|
|
107
|
-
function
|
|
48
|
+
function C(t) {
|
|
108
49
|
return r({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286zm1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94z" } }] })(t);
|
|
109
50
|
}
|
|
110
|
-
function
|
|
51
|
+
function z(t) {
|
|
111
52
|
return r({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M3 2v4.586l7 7L14.586 9l-7-7H3zM2 2a1 1 0 0 1 1-1h4.586a1 1 0 0 1 .707.293l7 7a1 1 0 0 1 0 1.414l-4.586 4.586a1 1 0 0 1-1.414 0l-7-7A1 1 0 0 1 2 6.586V2z" } }, { tag: "path", attr: { d: "M5.5 5a.5.5 0 1 1 0-1 .5.5 0 0 1 0 1zm0 1a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zM1 7.086a1 1 0 0 0 .293.707L8.75 15.25l-.043.043a1 1 0 0 1-1.414 0l-7-7A1 1 0 0 1 0 7.586V3a1 1 0 0 1 1-1v5.086z" } }] })(t);
|
|
112
53
|
}
|
|
113
|
-
function
|
|
54
|
+
function x(t) {
|
|
114
55
|
return r({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6Z" } }, { tag: "path", attr: { d: "M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1ZM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118ZM2.5 3h11V2h-11v1Z" } }] })(t);
|
|
115
56
|
}
|
|
116
|
-
function
|
|
57
|
+
function m(t) {
|
|
117
58
|
return r({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z" } }, { tag: "path", attr: { d: "M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z" } }] })(t);
|
|
118
59
|
}
|
|
119
|
-
function
|
|
60
|
+
function w(t) {
|
|
120
61
|
return r({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z" } }] })(t);
|
|
121
62
|
}
|
|
122
|
-
function
|
|
123
|
-
return r({ tag: "svg", attr: { viewBox: "0 0 640 512" }, child: [{ tag: "path", attr: { d: "M48 0C21.53 0 0 21.53 0 48v64c0 8.84 7.16 16 16 16h80V48C96 21.53 74.47 0 48 0zm208 412.57V352h288V96c0-52.94-43.06-96-96-96H111.59C121.74 13.41 128 29.92 128 48v368c0 38.87 34.65 69.65 74.75 63.12C234.22 474 256 444.46 256 412.57zM288 384v32c0 52.93-43.06 96-96 96h336c61.86 0 112-50.14 112-112 0-8.84-7.16-16-16-16H288z" } }] })(t);
|
|
124
|
-
}
|
|
125
|
-
function R(t) {
|
|
63
|
+
function y(t) {
|
|
126
64
|
return r({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" } }, { tag: "polyline", attr: { points: "15 3 21 3 21 9" } }, { tag: "line", attr: { x1: "10", y1: "14", x2: "21", y2: "3" } }] })(t);
|
|
127
65
|
}
|
|
128
|
-
function
|
|
66
|
+
function N(t) {
|
|
67
|
+
return r({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" } }, { tag: "polyline", attr: { points: "17 8 12 3 7 8" } }, { tag: "line", attr: { x1: "12", y1: "3", x2: "12", y2: "15" } }] })(t);
|
|
68
|
+
}
|
|
69
|
+
function l(t) {
|
|
129
70
|
return r({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M256.65 38.984l-49.697 100.702-111.13 16.146 80.413 78.385-18.982 110.68 99.396-52.256 99.397 52.256-18.983-110.68 80.413-78.384-111.127-16.146-49.7-100.702zM112 308.826l-26.674 54.05-59.646 8.665 43.16 42.073-10.188 59.403L112 444.97l53.348 28.046-10.188-59.403 43.16-42.072-59.646-8.665L112 308.825zm288 0l-26.674 54.05-59.646 8.665 43.16 42.073-10.188 59.403L400 444.97l53.348 28.046-10.188-59.403 43.16-42.072-59.646-8.665L400 308.825z" } }] })(t);
|
|
130
71
|
}
|
|
131
|
-
function
|
|
72
|
+
function e(t) {
|
|
132
73
|
return r({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M345.6 128l51.3 51.3-109.3 109.4-89.6-89.6L32 365.4 63.6 397 198 262.5l89.6 89.7 141.1-141 51.3 51.3V128H345.6z" } }] })(t);
|
|
133
74
|
}
|
|
134
|
-
function
|
|
75
|
+
function H(t) {
|
|
135
76
|
return r({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M394.23 197.56a300.43 300.43 0 00-53.37-90C301.2 61.65 249.05 32 208 32a16 16 0 00-15.48 20c13.87 53-14.88 97.07-45.31 143.72C122 234.36 96 274.27 96 320c0 88.22 71.78 160 160 160s160-71.78 160-160c0-43.3-7.32-84.49-21.77-122.44zm-105.9 221.13C278 429.69 265.05 432 256 432s-22-2.31-32.33-13.31S208 390.24 208 368c0-25.14 8.82-44.28 17.34-62.78 4.95-10.74 10-21.67 13-33.37a8 8 0 0112.49-4.51A126.48 126.48 0 01275 292c18.17 24 29 52.42 29 76 0 22.24-5.42 39.77-15.67 50.69z" } }] })(t);
|
|
136
77
|
}
|
|
137
|
-
function
|
|
78
|
+
function V(t) {
|
|
138
79
|
return r({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" } }, { tag: "path", attr: { d: "M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z" } }] })(t);
|
|
139
80
|
}
|
|
140
|
-
function
|
|
81
|
+
function k(t) {
|
|
141
82
|
return r({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "g", attr: { fill: "none" }, child: [{ tag: "path", attr: { d: "M0 0h24v24H0z" } }, { tag: "path", attr: { d: "M0 0h24v24H0z" } }, { tag: "path", attr: { d: "M0 0h24v24H0z" } }] }, { tag: "path", attr: { d: "M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z" } }] })(t);
|
|
142
83
|
}
|
|
143
|
-
function
|
|
84
|
+
function A(t) {
|
|
144
85
|
return r({ tag: "svg", attr: { viewBox: "0 0 16 16", fill: "currentColor" }, child: [{ tag: "rect", attr: { x: "2", y: "9", width: "9", height: "1" } }, { tag: "rect", attr: { x: "2", y: "12", width: "8", height: "1" } }, { tag: "rect", attr: { x: "2", y: "6", width: "12", height: "1" } }, { tag: "rect", attr: { x: "2", y: "3", width: "11", height: "1" } }] })(t);
|
|
145
86
|
}
|
|
146
|
-
var
|
|
87
|
+
var i;
|
|
147
88
|
((t) => {
|
|
148
|
-
t.exit = /* @__PURE__ */ a(
|
|
149
|
-
})(
|
|
150
|
-
const
|
|
89
|
+
t.exit = /* @__PURE__ */ a(w, { style: { fontSize: "1.75em" } }), t.settings = /* @__PURE__ */ a(L, {}), t.changelog = /* @__PURE__ */ a(n, {}), t.storymode = /* @__PURE__ */ a(B, {}), t.replayEditor = /* @__PURE__ */ a(k, {}), t.tipInfo = /* @__PURE__ */ a(C, {}), t.remove = /* @__PURE__ */ a(x, {}), t.externalLink = /* @__PURE__ */ a(y, {}), t.tags = /* @__PURE__ */ a(z, {}), t.checkmark = /* @__PURE__ */ a(d, {}), t.playersCount = /* @__PURE__ */ a(M, {}), t.last24h = /* @__PURE__ */ a(V, {}), t.statusLevelAllGood = /* @__PURE__ */ a(s, {}), t.statusLevelMinor = /* @__PURE__ */ a(u, {}), t.statusLevelMajor = /* @__PURE__ */ a(m, {}), t.favoriteInactive = /* @__PURE__ */ a(p, {}), t.favoriteActive = /* @__PURE__ */ a(f, { className: "cfx-color-primary" }), t.account = /* @__PURE__ */ a(g, {}), t.accountLoaded = /* @__PURE__ */ a(c, {}), t.serversListAll = /* @__PURE__ */ a(A, {}), t.serversListSupporters = /* @__PURE__ */ a(v, {}), t.serversListHistory = /* @__PURE__ */ a(h, {}), t.serversListFavorites = t.favoriteInactive, t.serverLastConnected = /* @__PURE__ */ a(o, {}), t.serversFeatured = /* @__PURE__ */ a(l, { style: { fill: "url(#pin-gradient)" } }), t.serversFeaturedUnstyled = /* @__PURE__ */ a(l, {}), t.serverBoost = /* @__PURE__ */ a(e, { style: { fill: "url(#boost-gradient)" } }), t.serverBoostUnstyled = /* @__PURE__ */ a(e, {}), t.serverBurst = /* @__PURE__ */ a(H, { style: { fill: "url(#burst-gradient)" } });
|
|
90
|
+
})(i || (i = {}));
|
|
91
|
+
const R = {
|
|
151
92
|
gta5: /* @__PURE__ */ a("svg", { className: "brand-icon mirror", children: /* @__PURE__ */ a("use", { xlinkHref: "#logo-gta5" }) }),
|
|
152
93
|
rdr3: /* @__PURE__ */ a("svg", { className: "brand-icon", children: /* @__PURE__ */ a("use", { xlinkHref: "#logo-rdr3" }) }),
|
|
153
94
|
ny: /* @__PURE__ */ a("svg", { className: "brand-icon", children: /* @__PURE__ */ a("use", { xlinkHref: "#logo-ny" }) }),
|
|
@@ -155,8 +96,9 @@ const J = {
|
|
|
155
96
|
ROS: /* @__PURE__ */ a("svg", { className: "brand-icon", viewBox: "0 0 128 128", version: "1.1", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ a("path", { d: "M126.7,82.9L99.6,82.9L95.3,55.9L79.5,82.7L76.5,82.7C74.7,79.6 74,75.1 74,72.3C74,67.7 74.3,63.2 74.3,57.3C74.3,49.5 72,45.4 65.9,43.9L65.9,43.7C78.8,41.9 84.7,33.3 84.7,21.3C84.7,4.2 73.3,0.5 58.4,0.5L18.3,0.5L1.3,80.9L22.6,80.9L28.8,51.6L43,51.6C50.6,51.6 53.7,55.3 53.7,62.4C53.7,67.8 53.1,72.1 53.1,76.2C53.1,77.7 53.4,81.3 54.5,82.7L69.9,99L56.6,127.5L85,110.6L106.2,126.9L102.3,100L126.7,82.9ZM49.4,36.6L32.4,36.6L36.5,17.2L52.3,17.2C57.9,17.2 63.8,18.7 63.8,25.5C63.8,34.2 57.1,36.6 49.4,36.6M85.4,105.9L65.6,117.7L74.7,98.3L63.7,86.7L81.8,86.7L93.2,67.4L96.3,86.9L114.3,86.9L98.1,98.2L101,118L85.4,105.9Z" }) })
|
|
156
97
|
};
|
|
157
98
|
export {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
99
|
+
R as B,
|
|
100
|
+
N as F,
|
|
101
|
+
i as I,
|
|
102
|
+
b as a,
|
|
103
|
+
S as b
|
|
162
104
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _ } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import s from "react";
|
|
3
3
|
import { Interactive as w } from "./components/Interactive/Interactive.js";
|
|
4
4
|
import { clsx as A } from "./utils/clsx.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { useInstance as C } from "./utils/hooks.js";
|
|
6
|
+
import { clamp01 as b } from "./utils/math.js";
|
|
7
7
|
import './assets/Rail.css';const P = "_virtual_sn3qq_1", T = "_root_sn3qq_5", y = "_active_sn3qq_13", z = "_scroller_sn3qq_17", M = "_content_sn3qq_27", R = "_thumb_sn3qq_42", a = {
|
|
8
8
|
virtual: P,
|
|
9
9
|
root: T,
|
|
@@ -37,7 +37,7 @@ function X(d) {
|
|
|
37
37
|
rootRef: v,
|
|
38
38
|
setRootActive: c,
|
|
39
39
|
minThumbSize: i
|
|
40
|
-
} = d, o =
|
|
40
|
+
} = d, o = s.useMemo(() => l === "x" ? {
|
|
41
41
|
sizeCSS: "width",
|
|
42
42
|
offsetCSSTransform: "translateX",
|
|
43
43
|
scrollToSide: "left",
|
|
@@ -47,13 +47,13 @@ function X(d) {
|
|
|
47
47
|
offsetCSSTransform: "translateY",
|
|
48
48
|
scrollToSide: "top",
|
|
49
49
|
mousePosAxis: "clientY"
|
|
50
|
-
}, []), [S, m] =
|
|
50
|
+
}, []), [S, m] = s.useState(!1), t = C(E);
|
|
51
51
|
t.pos = n, t.ratio = b(e / g), t.height = e * t.ratio, t.offset = n * t.ratio, t.height < i && (t.height = i, t.offset = n * t.ratio * ((e - i) / e)), t.movementMultiplier = 1 / t.ratio;
|
|
52
|
-
const h =
|
|
53
|
-
t.dragging = !0, t.dragStartAtPos = t.pos, t.dragStartAtCursor =
|
|
52
|
+
const h = s.useCallback((r) => {
|
|
53
|
+
t.dragging = !0, t.dragStartAtPos = t.pos, t.dragStartAtCursor = r[o.mousePosAxis], m(!0), c(!0);
|
|
54
54
|
}, []);
|
|
55
|
-
|
|
56
|
-
const
|
|
55
|
+
s.useEffect(() => {
|
|
56
|
+
const r = (q) => {
|
|
57
57
|
var f;
|
|
58
58
|
if (!t.dragging)
|
|
59
59
|
return;
|
|
@@ -65,8 +65,8 @@ function X(d) {
|
|
|
65
65
|
}, u = () => {
|
|
66
66
|
t.dragging && (t.dragging = !1, m(!1), c(!1));
|
|
67
67
|
};
|
|
68
|
-
return window.addEventListener("mousemove",
|
|
69
|
-
window.removeEventListener("mousemove",
|
|
68
|
+
return window.addEventListener("mousemove", r), window.addEventListener("mouseup", u), () => {
|
|
69
|
+
window.removeEventListener("mousemove", r), window.removeEventListener("mouseup", u);
|
|
70
70
|
};
|
|
71
71
|
}, []);
|
|
72
72
|
const p = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._root_1kc1u_1 ._dropzone_1kc1u_1{text-align:center;cursor:pointer;display:flex;flex-direction:column;justify-content:center;width:100%;min-height:calc(var(--quant) * 15);padding:var(--offset-normal);background-color:var(--color-input-background);border-radius:var(--border-radius-small);border:none;box-shadow:0 0 0 2px var(--color-input-border) inset}._root_1kc1u_1 ._dropzone_1kc1u_1{transition:all .2s ease}._root_1kc1u_1 ._dropzone_1kc1u_1:hover{transition:none}._root_1kc1u_1 ._dropzone_1kc1u_1 ._text_1kc1u_21{margin-top:var(--offset-small)}._root_1kc1u_1 ._dropzone_1kc1u_1 ._text_1kc1u_21{transition:all .2s ease}._root_1kc1u_1 ._dropzone_1kc1u_1 ._text_1kc1u_21:hover{transition:none}._root_1kc1u_1 ._dropzone_1kc1u_1._disabled_1kc1u_30{box-shadow:0 0 0 2px var(--color-input-disabled-border) inset;cursor:not-allowed;opacity:.5}._root_1kc1u_1 ._dropzone_1kc1u_1:not(._disabled_1kc1u_30):hover{box-shadow:0 0 0 2px var(--color-input-hover-border) inset}._root_1kc1u_1 ._dropzone_1kc1u_1:not(._disabled_1kc1u_30):hover ._text_1kc1u_21{margin-top:var(--offset-normal)}._root_1kc1u_1 ._dropzone_1kc1u_1:not(._disabled_1kc1u_30):focus-visible,._root_1kc1u_1 ._dropzone_1kc1u_1:not(._disabled_1kc1u_30):focus-visible:hover,._root_1kc1u_1 ._dropzone_1kc1u_1:not(._disabled_1kc1u_30)._focused_1kc1u_41,._root_1kc1u_1 ._dropzone_1kc1u_1:not(._disabled_1kc1u_30)._dragActive_1kc1u_41{box-shadow:0 0 0 2px var(--color-input-focus-border) inset}._root_1kc1u_1 ._dropzone_1kc1u_1:not(._disabled_1kc1u_30):focus-visible ._text_1kc1u_21,._root_1kc1u_1 ._dropzone_1kc1u_1:not(._disabled_1kc1u_30):focus-visible:hover ._text_1kc1u_21,._root_1kc1u_1 ._dropzone_1kc1u_1:not(._disabled_1kc1u_30)._focused_1kc1u_41 ._text_1kc1u_21,._root_1kc1u_1 ._dropzone_1kc1u_1:not(._disabled_1kc1u_30)._dragActive_1kc1u_41 ._text_1kc1u_21{margin-top:var(--offset-normal)}._root_1kc1u_1 ._linkText_1kc1u_47{text-decoration:underline;text-decoration-color:currentColor;cursor:pointer}._root_1kc1u_1 ._linkText_1kc1u_47{transition:all .2s ease}._root_1kc1u_1 ._linkText_1kc1u_47:hover{transition:none}._root_1kc1u_1 ._linkText_1kc1u_47:hover{text-decoration-color:var(--color-link-hover-decoration)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._root_15ual_1{width:100%;display:flex;align-items:center;justify-content:space-between;margin-top:var(--offset-small);padding:var(--offset-small);background-color:var(--color-input-background);border-radius:var(--border-radius-small);border:none;box-shadow:0 0 0 2px var(--color-input-border) inset}._root_15ual_1 ._filePath_15ual_13{word-break:break-all;margin-right:var(--offset-small)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._table-responsive_1jg2j_1{overflow-y:auto;max-height:400px}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:8px;color:#fff}@media (max-width: 600px){th,td{padding:4px;font-size:14px}}._selectedRow_1jg2j_23{background-color:gray}th{background-color:#f50551}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useOutlet as c } from "../../utils/hooks.js";
|
|
3
|
+
const e = "backdrop-outlet";
|
|
4
|
+
function n({
|
|
5
|
+
children: t
|
|
5
6
|
}) {
|
|
6
|
-
const
|
|
7
|
-
return /* @__PURE__ */
|
|
7
|
+
const o = c(e);
|
|
8
|
+
return /* @__PURE__ */ r(o, { children: t });
|
|
8
9
|
}
|
|
9
10
|
export {
|
|
10
|
-
e as
|
|
11
|
+
e as BACKDROP_OUTLET_ID,
|
|
12
|
+
n as BackdropPortal
|
|
11
13
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
|
-
export type
|
|
3
|
+
export type BadgeColor = 'default' | 'primary' | 'success' | 'warning' | 'error';
|
|
4
4
|
export interface BadgeProps {
|
|
5
|
-
color?:
|
|
5
|
+
color?: BadgeColor;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
className?: string;
|
|
8
8
|
}
|
|
@@ -5,7 +5,7 @@ export type ButtonSize = 'normal' | 'small' | 'large';
|
|
|
5
5
|
export interface ButtonProps {
|
|
6
6
|
text?: React.ReactNode;
|
|
7
7
|
title?: string;
|
|
8
|
-
type?: '
|
|
8
|
+
type?: HTMLButtonElement['type'];
|
|
9
9
|
icon?: React.ReactNode;
|
|
10
10
|
theme?: ButtonTheme;
|
|
11
11
|
size?: ButtonSize;
|
|
@@ -15,6 +15,7 @@ export interface ButtonProps {
|
|
|
15
15
|
tabIndex?: number;
|
|
16
16
|
className?: string;
|
|
17
17
|
fullWidth?: boolean;
|
|
18
|
+
ariaLabel?: string;
|
|
18
19
|
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
19
20
|
onMouseDown?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
20
21
|
onMouseUp?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { clsx as
|
|
4
|
-
import {
|
|
1
|
+
import { jsxs as w, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import B from "react";
|
|
3
|
+
import { clsx as M } from "../../utils/clsx.js";
|
|
4
|
+
import { noop as n } from "../../utils/functional.js";
|
|
5
5
|
import { s as o } from "../../Button.module-Z6njvP9Z.js";
|
|
6
|
-
const
|
|
6
|
+
const I = B.forwardRef(function(c, u) {
|
|
7
7
|
const {
|
|
8
8
|
text: t = null,
|
|
9
9
|
icon: e = null,
|
|
@@ -12,38 +12,40 @@ const F = w.forwardRef(function(c, u) {
|
|
|
12
12
|
className: m = "",
|
|
13
13
|
theme: p = "default",
|
|
14
14
|
size: h = "normal",
|
|
15
|
-
disabled:
|
|
16
|
-
straightCorners:
|
|
17
|
-
onClick:
|
|
18
|
-
onMouseDown: C =
|
|
19
|
-
onMouseUp: N =
|
|
20
|
-
autofocus:
|
|
15
|
+
disabled: l = !1,
|
|
16
|
+
straightCorners: b = !1,
|
|
17
|
+
onClick: x = n,
|
|
18
|
+
onMouseDown: C = n,
|
|
19
|
+
onMouseUp: N = n,
|
|
20
|
+
autofocus: a = !1,
|
|
21
21
|
fullWidth: k = !1,
|
|
22
|
-
tabIndex:
|
|
23
|
-
decorator: r = null
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
tabIndex: s,
|
|
23
|
+
decorator: r = null,
|
|
24
|
+
ariaLabel: y = ""
|
|
25
|
+
} = c, g = M(o.root, o[p], o[h], m, {
|
|
26
|
+
[o.disabled]: l,
|
|
26
27
|
[o.icon]: !!e && (t === null || typeof t > "u"),
|
|
27
28
|
[o.text]: !!t,
|
|
28
|
-
[o.autofocus]:
|
|
29
|
-
[o["straight-borders"]]:
|
|
29
|
+
[o.autofocus]: a || typeof s < "u",
|
|
30
|
+
[o["straight-borders"]]: b,
|
|
30
31
|
[o.fullWidth]: k
|
|
31
32
|
});
|
|
32
|
-
return /* @__PURE__ */
|
|
33
|
+
return /* @__PURE__ */ w(
|
|
33
34
|
"button",
|
|
34
35
|
{
|
|
35
36
|
ref: u,
|
|
36
|
-
disabled:
|
|
37
|
-
className:
|
|
38
|
-
onClick: (
|
|
39
|
-
|
|
37
|
+
disabled: l,
|
|
38
|
+
className: g,
|
|
39
|
+
onClick: (j) => {
|
|
40
|
+
l || x(j);
|
|
40
41
|
},
|
|
41
42
|
onMouseDown: C,
|
|
42
43
|
onMouseUp: N,
|
|
43
|
-
autoFocus:
|
|
44
|
-
tabIndex:
|
|
44
|
+
autoFocus: a,
|
|
45
|
+
tabIndex: s,
|
|
45
46
|
title: d,
|
|
46
47
|
type: f,
|
|
48
|
+
"aria-label": y,
|
|
47
49
|
children: [
|
|
48
50
|
!!e && /* @__PURE__ */ i("span", { className: o["icon-node"], children: e }),
|
|
49
51
|
t,
|
|
@@ -53,5 +55,5 @@ const F = w.forwardRef(function(c, u) {
|
|
|
53
55
|
);
|
|
54
56
|
});
|
|
55
57
|
export {
|
|
56
|
-
|
|
58
|
+
I as Button
|
|
57
59
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as R, jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as R, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import a from "react";
|
|
3
3
|
import { clsx as j } from "../../utils/clsx.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { noop as B } from "../../utils/functional.js";
|
|
5
|
+
import { isExternalUrl as E } from "../../utils/links.js";
|
|
6
6
|
import { s as o } from "../../Button.module-Z6njvP9Z.js";
|
|
7
|
-
const P =
|
|
7
|
+
const P = a.forwardRef(function(i, c) {
|
|
8
8
|
const {
|
|
9
9
|
to: e,
|
|
10
|
-
text:
|
|
11
|
-
icon:
|
|
10
|
+
text: t = null,
|
|
11
|
+
icon: n = null,
|
|
12
12
|
title: m = "",
|
|
13
13
|
className: d = "",
|
|
14
14
|
theme: f = "default",
|
|
@@ -21,9 +21,9 @@ const P = l.forwardRef(function(i, c) {
|
|
|
21
21
|
Component: h
|
|
22
22
|
} = i, N = j(o.root, o[f], o[p], d, {
|
|
23
23
|
[o.disabled]: u,
|
|
24
|
-
[o.icon]: !!
|
|
25
|
-
[o.text]: !!
|
|
26
|
-
}), r = E(e), b = r ? "a" : h || "a", L =
|
|
24
|
+
[o.icon]: !!n && !t,
|
|
25
|
+
[o.text]: !!t
|
|
26
|
+
}), r = E(e), b = r ? "a" : h || "a", L = a.useMemo(() => r ? { href: e } : { to: e }, [e, r]);
|
|
27
27
|
return /* @__PURE__ */ R(
|
|
28
28
|
b,
|
|
29
29
|
{
|
|
@@ -36,9 +36,9 @@ const P = l.forwardRef(function(i, c) {
|
|
|
36
36
|
onClickCapture: C,
|
|
37
37
|
...L,
|
|
38
38
|
children: [
|
|
39
|
-
!!
|
|
40
|
-
|
|
41
|
-
!!s && /* @__PURE__ */
|
|
39
|
+
!!n && /* @__PURE__ */ l("span", { className: o["icon-node"], children: n }),
|
|
40
|
+
t,
|
|
41
|
+
!!s && /* @__PURE__ */ l("div", { className: o.decorator, children: s })
|
|
42
42
|
]
|
|
43
43
|
}
|
|
44
44
|
);
|
|
@@ -1,59 +1,60 @@
|
|
|
1
1
|
import { jsxs as i, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { F as p } from "../../Combination-
|
|
2
|
+
import _ from "react";
|
|
3
|
+
import { F as p } from "../../Combination-Dp_plIQU.js";
|
|
4
4
|
import { Button as h } from "../Button/Button.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { Interactive as f } from "../Interactive/Interactive.js";
|
|
6
|
+
import { I as u } from "../../Icons-BlBKvJD8.js";
|
|
7
7
|
import { clsx as l } from "../../utils/clsx.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import '../../assets/Flyout.css';const N = "_root_11ks7_1", C = "_holder_11ks7_6", y = "_active_11ks7_15",
|
|
8
|
+
import { noop as v } from "../../utils/functional.js";
|
|
9
|
+
import { useOutlet as b, useKeyboardClose as z } from "../../utils/hooks.js";
|
|
10
|
+
import '../../assets/Flyout.css';const N = "_root_11ks7_1", C = "_holder_11ks7_6", y = "_active_11ks7_15", F = "_backdrop_11ks7_15", x = "_mask_11ks7_28", I = "_content_11ks7_90", L = "_header_11ks7_95", O = "_title_11ks7_101", e = {
|
|
11
11
|
root: N,
|
|
12
12
|
"size-normal": "_size-normal_11ks7_6",
|
|
13
13
|
holder: C,
|
|
14
14
|
"size-small": "_size-small_11ks7_9",
|
|
15
15
|
"size-xsmall": "_size-xsmall_11ks7_12",
|
|
16
16
|
active: y,
|
|
17
|
-
backdrop:
|
|
17
|
+
backdrop: F,
|
|
18
18
|
"backdrop-appearance": "_backdrop-appearance_11ks7_1",
|
|
19
|
-
mask:
|
|
19
|
+
mask: x,
|
|
20
20
|
"holder-appearance": "_holder-appearance_11ks7_1",
|
|
21
21
|
content: I,
|
|
22
22
|
header: L,
|
|
23
|
-
title:
|
|
24
|
-
};
|
|
25
|
-
function
|
|
23
|
+
title: O
|
|
24
|
+
}, E = "flyout-outlet";
|
|
25
|
+
function T(c) {
|
|
26
26
|
const {
|
|
27
27
|
disabled: o = !1,
|
|
28
|
-
size:
|
|
29
|
-
onClose:
|
|
28
|
+
size: a = "normal",
|
|
29
|
+
onClose: r = v,
|
|
30
30
|
children: n,
|
|
31
|
-
holderClassName:
|
|
32
|
-
} = c,
|
|
33
|
-
|
|
31
|
+
holderClassName: d
|
|
32
|
+
} = c, m = b(E);
|
|
33
|
+
_.useEffect(() => {
|
|
34
34
|
if (o)
|
|
35
35
|
return;
|
|
36
36
|
const t = document.getElementById("cfxui-root");
|
|
37
37
|
return t == null || t.classList.add("shrink"), () => t == null ? void 0 : t.classList.remove("shrink");
|
|
38
|
-
}, [o]), z(
|
|
39
|
-
const k = l(e.root, e[`size-${
|
|
38
|
+
}, [o]), z(r);
|
|
39
|
+
const k = l(e.root, e[`size-${a}`], {
|
|
40
40
|
[e.active]: !o
|
|
41
41
|
});
|
|
42
|
-
return /* @__PURE__ */ s(
|
|
43
|
-
/* @__PURE__ */ s(
|
|
44
|
-
/* @__PURE__ */ s("div", { className: e.mask, children: /* @__PURE__ */ s("div", { className: l(e.holder,
|
|
42
|
+
return /* @__PURE__ */ s(m, { children: /* @__PURE__ */ i("div", { className: k, children: [
|
|
43
|
+
/* @__PURE__ */ s(f, { showPointer: !1, className: e.backdrop, onClick: r }),
|
|
44
|
+
/* @__PURE__ */ s("div", { className: e.mask, children: /* @__PURE__ */ s("div", { className: l(e.holder, d), children: /* @__PURE__ */ s(p, { disabled: !!o, className: e.content, children: n }) }) })
|
|
45
45
|
] }) });
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
T.Header = _.forwardRef(function(o, a) {
|
|
48
48
|
const {
|
|
49
|
-
onClose:
|
|
49
|
+
onClose: r,
|
|
50
50
|
children: n
|
|
51
51
|
} = o;
|
|
52
|
-
return /* @__PURE__ */ i("div", { ref:
|
|
52
|
+
return /* @__PURE__ */ i("div", { ref: a, className: e.header, children: [
|
|
53
53
|
/* @__PURE__ */ s("div", { className: e.title, children: n }),
|
|
54
|
-
!!
|
|
54
|
+
!!r && /* @__PURE__ */ s(h, { size: "large", icon: u.exit, onClick: r })
|
|
55
55
|
] });
|
|
56
56
|
});
|
|
57
57
|
export {
|
|
58
|
-
|
|
58
|
+
E as FLYOUT_OUTLET_ID,
|
|
59
|
+
T as Flyout
|
|
59
60
|
};
|
|
@@ -3,7 +3,7 @@ import n from "react";
|
|
|
3
3
|
import { Indicator as q } from "../Indicator/Indicator.js";
|
|
4
4
|
import { clsx as H } from "../../utils/clsx.js";
|
|
5
5
|
import { getValue as J } from "../../utils/getValue.js";
|
|
6
|
-
import {
|
|
6
|
+
import { useDynamicRef as i } from "../../utils/hooks.js";
|
|
7
7
|
import '../../assets/Input.css';const O = "_root_gmtev_1", P = "_input_gmtev_1", Q = "_small_gmtev_8", U = "_large_gmtev_12", Y = "_decorator_gmtev_60", Z = "_error_gmtev_68", $ = "_disabled_gmtev_72", ee = "_description_gmtev_106", e = {
|
|
8
8
|
root: O,
|
|
9
9
|
input: P,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as B, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import r from "react";
|
|
3
3
|
import { Button as D } from "../Button/Button.js";
|
|
4
|
-
import { I as F } from "../../Icons-
|
|
4
|
+
import { I as F } from "../../Icons-BlBKvJD8.js";
|
|
5
5
|
import { clsx as L } from "../../utils/clsx.js";
|
|
6
|
-
import {
|
|
6
|
+
import { useDynamicRef as i } from "../../utils/hooks.js";
|
|
7
7
|
import '../../assets/RichInput.css';const T = "_root_16on4_1", j = "_renderer_16on4_1", z = "_small_16on4_8", E = "_large_16on4_13", H = "_clear_16on4_95", t = {
|
|
8
8
|
root: T,
|
|
9
9
|
renderer: j,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DropzoneOptions, FileWithPath as DropzoneFileWithPath } from 'react-dropzone';
|
|
3
|
+
|
|
4
|
+
export type FileWithPath = DropzoneFileWithPath;
|
|
5
|
+
export interface InputDropzoneProps extends DropzoneOptions {
|
|
6
|
+
value?: string;
|
|
7
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
8
|
+
onRemoveFile?: (file: FileWithPath) => void;
|
|
9
|
+
text?: string;
|
|
10
|
+
linkText?: string;
|
|
11
|
+
removeItemAriaLabel?: string;
|
|
12
|
+
rootAriaLabel?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function InputDropzone(props: InputDropzoneProps): import("react/jsx-runtime").JSX.Element;
|