@cfx-dev/ui-components 1.0.2 → 1.1.1
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 +38 -38
- package/dist/Button.module-Cv-7p0xt.js +16 -0
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Flex.css +1 -1
- package/dist/assets/Flyout.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/Island.css +1 -1
- package/dist/assets/Pad.css +1 -1
- package/dist/assets/Popover.css +1 -1
- package/dist/assets/RichInput.css +1 -1
- package/dist/assets/Spacer.css +1 -1
- package/dist/assets/Textarea.css +1 -1
- package/dist/assets/global.css +1 -1
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/ButtonBar.js +1 -1
- package/dist/components/Flyout/Flyout.js +39 -39
- package/dist/components/Input/Input.d.ts +0 -1
- package/dist/components/Input/Input.js +58 -61
- package/dist/components/Input/RichInput.js +27 -27
- package/dist/components/InputDropzone/InputDropzone.js +122 -119
- package/dist/components/InputDropzone/ItemPreview.js +1 -1
- package/dist/components/Island/Island.js +23 -23
- package/dist/components/Layout/Flex/Flex.d.ts +1 -1
- package/dist/components/Layout/Flex/Flex.js +44 -43
- package/dist/components/Layout/Pad/Pad.d.ts +1 -1
- package/dist/components/Layout/Pad/Pad.js +30 -29
- package/dist/components/Modal/Modal.d.ts +2 -0
- package/dist/components/Modal/Modal.js +25 -23
- package/dist/components/Overlay/Overlay.js +13 -13
- package/dist/components/Popover/Popover.js +18 -18
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +239 -229
- package/dist/components/Spacer/Spacer.d.ts +1 -1
- package/dist/components/Spacer/Spacer.js +13 -12
- package/dist/components/Table/Table.js +41 -35
- package/dist/components/Text/Text.types.d.ts +1 -1
- package/dist/components/Textarea/Textarea.d.ts +0 -1
- package/dist/components/Textarea/Textarea.js +37 -40
- package/dist/iconBase-Bipuk9tK.js +112 -0
- package/dist/main.d.ts +1 -1
- package/dist/main.js +112 -113
- package/dist/style-guide/Icons/IconDisplayGrid.js +3 -3
- package/dist/style-guide/Icons/Icons.d.ts +13 -13
- package/dist/style-guide/Icons/Icons.js +36 -8
- package/dist/styles-scss/_ui.scss +167 -195
- package/dist/styles-scss/assets/images/checkered_dark.svg +7 -7
- package/dist/styles-scss/assets/images/checkered_light.svg +7 -7
- package/dist/styles-scss/global.scss +73 -75
- package/dist/styles-scss/theme_dark.scss +24 -24
- package/dist/styles-scss/theme_light.scss +54 -54
- package/dist/styles-scss/themes.scss +2 -2
- package/dist/styles-scss/tokens.scss +272 -274
- package/dist/utils/string.d.ts +16 -1
- package/dist/utils/string.js +46 -39
- package/package.json +71 -72
- package/dist/Button.module-Z6njvP9Z.js +0 -17
- package/dist/Icons-NE1cibCU.js +0 -107
- package/dist/index.esm-BkynlSN6.js +0 -72
package/dist/utils/string.js
CHANGED
|
@@ -1,44 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return t - e;
|
|
11
|
-
}
|
|
12
|
-
function C(t, e, r = !1) {
|
|
13
|
-
const n = r ? p : A, c = e.filter((u, h, g) => g.lastIndexOf(u) !== h ? !1 : u < t.length && u > 0).sort(b);
|
|
1
|
+
const T = (() => {
|
|
2
|
+
const u = "\\ud800-\\udfff", e = "\\u0300-\\u036f" + "\\ufe20-\\ufe2f" + "\\u20d0-\\u20ff" + "\\u1ab0-\\u1aff" + "\\u1dc0-\\u1dff", n = "\\ufe0e\\ufe0f", o = "\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c14\\u0c60-\\u0c61", a = "\\u0c3e-\\u0c44\\u0c46-\\u0c48\\u0c4a-\\u0c4c\\u0c62-\\u0c63", l = "\\u0c15-\\u0c28\\u0c2a-\\u0c39", d = "\\u0c58-\\u0c5a", h = "\\u0c01-\\u0c03\\u0c4d\\u0c55\\u0c56", M = `[${o}\\u0c66-\\u0c6f\\u0c78-\\u0c7e${d}]|[${l}](?!\\u0c4d)`, k = `[${l}${d}][${a}]|[${l}${d}][${h}]`, S = `(?:${`[${l}]\\u0c4d[${l}]`}|${k}|${M})`, w = `[${u}]`, i = `[${e}]`, g = "\\ud83c[\\udffb-\\udfff]", C = `(?:${i}|${g})`, $ = `[^${u}]`, b = "(?:\\ud83c[\\udde6-\\uddff]){2}", p = "[\\ud800-\\udbff][\\udc00-\\udfff]", E = "\\u200d", y = "(?:\\ud83c\\udff4\\udb40\\udc67\\udb40\\udc62\\udb40(?:\\udc65|\\udc73|\\udc77)\\udb40(?:\\udc6e|\\udc63|\\udc6c)\\udb40(?:\\udc67|\\udc74|\\udc73)\\udb40\\udc7f)", m = `${C}?`, R = `[${n}]?`, j = `(?:${E}(?:${[$, b, p].join("|")})${R + m})*`, z = R + m + j, A = `${$}${i}?`, H = `(?:${[y, A, i, b, p, w].join("|")})`;
|
|
3
|
+
return new RegExp(`${g}(?=${g})|${S}|${H + z}`, "g");
|
|
4
|
+
})();
|
|
5
|
+
function V(u, t) {
|
|
6
|
+
return u - t;
|
|
7
|
+
}
|
|
8
|
+
function F(u, t, s = !1) {
|
|
9
|
+
const r = s ? u.match(T) || [] : [], f = s ? r.length : u.length, c = t.filter((n, o, a) => a.lastIndexOf(n) !== o ? !1 : n < f && n > 0).sort(V);
|
|
14
10
|
if (c.length === 0)
|
|
15
|
-
return /* @__PURE__ */ new Map([[0,
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
11
|
+
return /* @__PURE__ */ new Map([[0, u]]);
|
|
12
|
+
const e = [];
|
|
13
|
+
return c.length === 1 ? (e.push([0, c[0]]), e.push([c[0], u.length])) : (e.push([0, c[0]]), c.slice(1).reduce(
|
|
14
|
+
(n, o) => {
|
|
15
|
+
const a = n.at(-1)[1];
|
|
16
|
+
return n.push([a, o]), n;
|
|
17
|
+
},
|
|
18
|
+
e
|
|
19
|
+
), e.push([c[c.length - 1], void 0])), s ? r ? new Map(
|
|
20
|
+
e.map(([n, o]) => [
|
|
21
|
+
n,
|
|
22
|
+
r.slice(n, o).join("")
|
|
23
|
+
])
|
|
24
|
+
) : /* @__PURE__ */ new Map([[0, u]]) : new Map(
|
|
25
|
+
e.map(([n, o]) => [
|
|
26
|
+
n,
|
|
27
|
+
u.substring(n, o)
|
|
28
|
+
])
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
function I(u, t, s, r) {
|
|
32
|
+
const f = u.substring(0, s), c = u.substring(r);
|
|
33
|
+
return `${f}${t}${c}`;
|
|
34
|
+
}
|
|
35
|
+
function J(u) {
|
|
36
|
+
return u.replace(/\\/g, "/");
|
|
37
|
+
}
|
|
38
|
+
function N(u) {
|
|
39
|
+
return !!u || u === "true" || u === "1";
|
|
40
|
+
}
|
|
41
|
+
function q(u) {
|
|
42
|
+
return !u || u === "false" || u === "0";
|
|
36
43
|
}
|
|
37
44
|
export {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
45
|
+
T as CHAR_REGEX,
|
|
46
|
+
q as isFalseString,
|
|
47
|
+
N as isTrueString,
|
|
48
|
+
J as normalizeSlashes,
|
|
41
49
|
I as replaceRange,
|
|
42
|
-
|
|
43
|
-
p as unicodeCharAt
|
|
50
|
+
F as splitByIndices
|
|
44
51
|
};
|
package/package.json
CHANGED
|
@@ -1,72 +1,71 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@cfx-dev/ui-components",
|
|
3
|
-
"private": false,
|
|
4
|
-
"version": "1.
|
|
5
|
-
"type": "module",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"main": "dist/main.js",
|
|
8
|
-
"types": "dist/main.d.ts",
|
|
9
|
-
"files": [
|
|
10
|
-
"dist/**/*"
|
|
11
|
-
],
|
|
12
|
-
"sideEffects": [
|
|
13
|
-
"**/*.css"
|
|
14
|
-
],
|
|
15
|
-
"scripts": {
|
|
16
|
-
"dev": "vite",
|
|
17
|
-
"build": "tsc --p ./tsconfig-build.json && vite build",
|
|
18
|
-
"lint": "eslint --quiet \"src/**/*{ts,tsx}\" \"lib/**/*{ts,tsx}\"",
|
|
19
|
-
"lint:fix": "eslint --fix --quiet \"src/**/*{ts,tsx}\" \"lib/**/*{ts,tsx}\"",
|
|
20
|
-
"test": "vitest run",
|
|
21
|
-
"preview": "vite preview",
|
|
22
|
-
"prepublishOnly": "yarn build",
|
|
23
|
-
"storybook": "storybook dev -p 6006",
|
|
24
|
-
"build-storybook": "storybook build"
|
|
25
|
-
},
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"@fontsource/
|
|
28
|
-
"@
|
|
29
|
-
"@
|
|
30
|
-
"@storybook/
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"react": "^18.2.0",
|
|
35
|
-
"react-
|
|
36
|
-
"react-
|
|
37
|
-
"react-
|
|
38
|
-
"react-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"@storybook/addon-
|
|
45
|
-
"@storybook/addon-
|
|
46
|
-
"@storybook/addon-
|
|
47
|
-
"@storybook/
|
|
48
|
-
"@storybook/
|
|
49
|
-
"@storybook/react": "^8.1.5",
|
|
50
|
-
"@storybook/
|
|
51
|
-
"@
|
|
52
|
-
"@types/
|
|
53
|
-
"@types/react": "^18.2.
|
|
54
|
-
"@types/react-
|
|
55
|
-
"@
|
|
56
|
-
"
|
|
57
|
-
"eslint": "^8.
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"vite": "^
|
|
64
|
-
"vite-plugin-
|
|
65
|
-
"vite-plugin-
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@cfx-dev/ui-components",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "1.1.1",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"main": "dist/main.js",
|
|
8
|
+
"types": "dist/main.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist/**/*"
|
|
11
|
+
],
|
|
12
|
+
"sideEffects": [
|
|
13
|
+
"**/*.css"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"dev": "vite",
|
|
17
|
+
"build": "tsc --p ./tsconfig-build.json && vite build",
|
|
18
|
+
"lint": "eslint --quiet \"src/**/*{ts,tsx}\" \"lib/**/*{ts,tsx}\"",
|
|
19
|
+
"lint:fix": "eslint --fix --quiet \"src/**/*{ts,tsx}\" \"lib/**/*{ts,tsx}\"",
|
|
20
|
+
"test": "vitest run",
|
|
21
|
+
"preview": "vite preview",
|
|
22
|
+
"prepublishOnly": "yarn build",
|
|
23
|
+
"storybook": "storybook dev -p 6006",
|
|
24
|
+
"build-storybook": "storybook build"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@fontsource/rubik": "^4.5.11",
|
|
28
|
+
"@radix-ui/react-select": "^1.0.0",
|
|
29
|
+
"@storybook/addon-docs": "^8.1.10",
|
|
30
|
+
"@storybook/addons": "^7.6.17",
|
|
31
|
+
"autolinker": "^3.14.3",
|
|
32
|
+
"flag-icons": "^6.1.1",
|
|
33
|
+
"react": "^18.2.0",
|
|
34
|
+
"react-dom": "^18.2.0",
|
|
35
|
+
"react-dropzone": "^14.2.3",
|
|
36
|
+
"react-focus-lock": "^2.9.1",
|
|
37
|
+
"react-icons": "5.5.0",
|
|
38
|
+
"react-window": "^1.8.8"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@cfx-dev/eslint-config-ui": "^0.0.11",
|
|
42
|
+
"@chromatic-com/storybook": "1.5.0",
|
|
43
|
+
"@storybook/addon-essentials": "^8.1.5",
|
|
44
|
+
"@storybook/addon-interactions": "^8.1.5",
|
|
45
|
+
"@storybook/addon-links": "^8.1.5",
|
|
46
|
+
"@storybook/addon-onboarding": "^8.1.5",
|
|
47
|
+
"@storybook/blocks": "^8.1.5",
|
|
48
|
+
"@storybook/react": "^8.1.5",
|
|
49
|
+
"@storybook/react-vite": "^8.1.5",
|
|
50
|
+
"@storybook/test": "^8.1.5",
|
|
51
|
+
"@types/node": "^20.12.13",
|
|
52
|
+
"@types/react": "^18.2.66",
|
|
53
|
+
"@types/react-dom": "^18.2.22",
|
|
54
|
+
"@types/react-window": "^1.8.8",
|
|
55
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
56
|
+
"eslint": "^8.57.0",
|
|
57
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
58
|
+
"glob": "^10.4.1",
|
|
59
|
+
"sass": "^1.77.4",
|
|
60
|
+
"storybook": "^8.1.5",
|
|
61
|
+
"typescript": "^5.2.2",
|
|
62
|
+
"vite": "^5.2.0",
|
|
63
|
+
"vite-plugin-dts": "^3.9.1",
|
|
64
|
+
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
65
|
+
"vite-plugin-static-copy": "^1.0.5",
|
|
66
|
+
"vitest": "^1.6.0"
|
|
67
|
+
},
|
|
68
|
+
"resolutions": {
|
|
69
|
+
"jackspeak": "2.1.1"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import './assets/Button.css';const r = "_bar_rzf6p_1", _ = "_root_rzf6p_6", o = "_fullWidth_rzf6p_71", t = "_primary_rzf6p_74", a = "_transparent_rzf6p_106", n = "_small_rzf6p_111", s = "_large_rzf6p_116", l = "_icon_rzf6p_121", p = "_decorator_rzf6p_133", c = {
|
|
2
|
-
bar: r,
|
|
3
|
-
root: _,
|
|
4
|
-
fullWidth: o,
|
|
5
|
-
primary: t,
|
|
6
|
-
"default-blurred": "_default-blurred_rzf6p_90",
|
|
7
|
-
transparent: a,
|
|
8
|
-
small: n,
|
|
9
|
-
large: s,
|
|
10
|
-
icon: l,
|
|
11
|
-
"straight-borders": "_straight-borders_rzf6p_125",
|
|
12
|
-
"icon-node": "_icon-node_rzf6p_128",
|
|
13
|
-
decorator: p
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
c as s
|
|
17
|
-
};
|
package/dist/Icons-NE1cibCU.js
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { G as r, b as o } from "./index.esm-BkynlSN6.js";
|
|
3
|
-
import n from "./style-guide/Icons/NewIcons/UpvotesBurst.js";
|
|
4
|
-
import c from "./style-guide/Icons/NewIcons/UpvotesRecurring.js";
|
|
5
|
-
import g from "./style-guide/Icons/NewIcons/UpArrow.js";
|
|
6
|
-
function s(t) {
|
|
7
|
-
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);
|
|
8
|
-
}
|
|
9
|
-
function d(t) {
|
|
10
|
-
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);
|
|
11
|
-
}
|
|
12
|
-
function h(t) {
|
|
13
|
-
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);
|
|
14
|
-
}
|
|
15
|
-
function v(t) {
|
|
16
|
-
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);
|
|
17
|
-
}
|
|
18
|
-
function u(t) {
|
|
19
|
-
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);
|
|
20
|
-
}
|
|
21
|
-
function T(t) {
|
|
22
|
-
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);
|
|
23
|
-
}
|
|
24
|
-
function j(t) {
|
|
25
|
-
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);
|
|
26
|
-
}
|
|
27
|
-
function f(t) {
|
|
28
|
-
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);
|
|
29
|
-
}
|
|
30
|
-
function L(t) {
|
|
31
|
-
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);
|
|
32
|
-
}
|
|
33
|
-
function p(t) {
|
|
34
|
-
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);
|
|
35
|
-
}
|
|
36
|
-
function B(t) {
|
|
37
|
-
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);
|
|
38
|
-
}
|
|
39
|
-
function M(t) {
|
|
40
|
-
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);
|
|
41
|
-
}
|
|
42
|
-
function C(t) {
|
|
43
|
-
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);
|
|
44
|
-
}
|
|
45
|
-
function z(t) {
|
|
46
|
-
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);
|
|
47
|
-
}
|
|
48
|
-
function x(t) {
|
|
49
|
-
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);
|
|
50
|
-
}
|
|
51
|
-
function m(t) {
|
|
52
|
-
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);
|
|
53
|
-
}
|
|
54
|
-
function w(t) {
|
|
55
|
-
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);
|
|
56
|
-
}
|
|
57
|
-
function y(t) {
|
|
58
|
-
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);
|
|
59
|
-
}
|
|
60
|
-
function H(t) {
|
|
61
|
-
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);
|
|
62
|
-
}
|
|
63
|
-
function V(t) {
|
|
64
|
-
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);
|
|
65
|
-
}
|
|
66
|
-
function k(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: "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);
|
|
68
|
-
}
|
|
69
|
-
function P(t) {
|
|
70
|
-
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);
|
|
71
|
-
}
|
|
72
|
-
function l(t) {
|
|
73
|
-
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);
|
|
74
|
-
}
|
|
75
|
-
function e(t) {
|
|
76
|
-
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);
|
|
77
|
-
}
|
|
78
|
-
function A(t) {
|
|
79
|
-
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);
|
|
80
|
-
}
|
|
81
|
-
function F(t) {
|
|
82
|
-
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);
|
|
83
|
-
}
|
|
84
|
-
function Z(t) {
|
|
85
|
-
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);
|
|
86
|
-
}
|
|
87
|
-
function b(t) {
|
|
88
|
-
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);
|
|
89
|
-
}
|
|
90
|
-
var i;
|
|
91
|
-
((t) => {
|
|
92
|
-
t.exit = /* @__PURE__ */ a(V, { style: { fontSize: "1.75em" } }), t.settings = /* @__PURE__ */ a(B, {}), t.changelog = /* @__PURE__ */ a(o, {}), t.storymode = /* @__PURE__ */ a(x, {}), t.replayEditor = /* @__PURE__ */ a(Z, {}), t.tipInfo = /* @__PURE__ */ a(m, {}), t.remove = /* @__PURE__ */ a(y, {}), t.externalLink = /* @__PURE__ */ a(k, {}), t.tags = /* @__PURE__ */ a(w, {}), t.checkmark = /* @__PURE__ */ a(u, {}), t.playersCount = /* @__PURE__ */ a(z, {}), t.last24h = /* @__PURE__ */ a(F, {}), t.statusLevelAllGood = /* @__PURE__ */ a(v, {}), t.statusLevelMinor = /* @__PURE__ */ a(p, {}), t.statusLevelMajor = /* @__PURE__ */ a(H, {}), t.favoriteInactive = /* @__PURE__ */ a(C, {}), t.favoriteActive = /* @__PURE__ */ a(M, { className: "cfx-color-primary" }), t.account = /* @__PURE__ */ a(h, {}), t.accountLoaded = /* @__PURE__ */ a(d, {}), t.serversListAll = /* @__PURE__ */ a(b, {}), t.serversListSupporters = /* @__PURE__ */ a(L, {}), t.serversListHistory = /* @__PURE__ */ a(f, {}), t.serversListFavorites = t.favoriteInactive, t.serverLastConnected = /* @__PURE__ */ a(s, {}), 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(A, { style: { fill: "url(#burst-gradient)" } }), t.upvotesBurst = /* @__PURE__ */ a(n, { style: { width: "1.5em" } }), t.upvotesRecurring = /* @__PURE__ */ a(c, { style: { width: "1.5em" } }), t.upArrow = /* @__PURE__ */ a(g, { style: { width: "1.5em" } });
|
|
93
|
-
})(i || (i = {}));
|
|
94
|
-
const E = {
|
|
95
|
-
gta5: /* @__PURE__ */ a("svg", { className: "brand-icon mirror", children: /* @__PURE__ */ a("use", { xlinkHref: "#logo-gta5" }) }),
|
|
96
|
-
rdr3: /* @__PURE__ */ a("svg", { className: "brand-icon", children: /* @__PURE__ */ a("use", { xlinkHref: "#logo-rdr3" }) }),
|
|
97
|
-
ny: /* @__PURE__ */ a("svg", { className: "brand-icon", children: /* @__PURE__ */ a("use", { xlinkHref: "#logo-ny" }) }),
|
|
98
|
-
cfxre: /* @__PURE__ */ a("svg", { className: "brand-icon", children: /* @__PURE__ */ a("use", { xlinkHref: "#logo-cfxre" }) }),
|
|
99
|
-
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" }) })
|
|
100
|
-
};
|
|
101
|
-
export {
|
|
102
|
-
E as B,
|
|
103
|
-
P as F,
|
|
104
|
-
i as I,
|
|
105
|
-
T as a,
|
|
106
|
-
j as b
|
|
107
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import l from "react";
|
|
2
|
-
var d = {
|
|
3
|
-
color: void 0,
|
|
4
|
-
size: void 0,
|
|
5
|
-
className: void 0,
|
|
6
|
-
style: void 0,
|
|
7
|
-
attr: void 0
|
|
8
|
-
}, f = l.createContext && l.createContext(d), c = function() {
|
|
9
|
-
return c = Object.assign || function(t) {
|
|
10
|
-
for (var r, e = 1, n = arguments.length; e < n; e++) {
|
|
11
|
-
r = arguments[e];
|
|
12
|
-
for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
|
|
13
|
-
}
|
|
14
|
-
return t;
|
|
15
|
-
}, c.apply(this, arguments);
|
|
16
|
-
}, v = function(t, r) {
|
|
17
|
-
var e = {};
|
|
18
|
-
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && r.indexOf(n) < 0 && (e[n] = t[n]);
|
|
19
|
-
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, n = Object.getOwnPropertySymbols(t); a < n.length; a++)
|
|
20
|
-
r.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[a]) && (e[n[a]] = t[n[a]]);
|
|
21
|
-
return e;
|
|
22
|
-
};
|
|
23
|
-
function m(t) {
|
|
24
|
-
return t && t.map(function(r, e) {
|
|
25
|
-
return l.createElement(r.tag, c({
|
|
26
|
-
key: e
|
|
27
|
-
}, r.attr), m(r.child));
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
function o(t) {
|
|
31
|
-
return function(r) {
|
|
32
|
-
return l.createElement(h, c({
|
|
33
|
-
attr: c({}, t.attr)
|
|
34
|
-
}, r), m(t.child));
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
function h(t) {
|
|
38
|
-
var r = function(e) {
|
|
39
|
-
var n = t.attr, a = t.size, u = t.title, g = v(t, ["attr", "size", "title"]), s = a || e.size || "1em", i;
|
|
40
|
-
return e.className && (i = e.className), t.className && (i = (i ? i + " " : "") + t.className), l.createElement("svg", c({
|
|
41
|
-
stroke: "currentColor",
|
|
42
|
-
fill: "currentColor",
|
|
43
|
-
strokeWidth: "0"
|
|
44
|
-
}, e.attr, n, g, {
|
|
45
|
-
className: i,
|
|
46
|
-
style: c(c({
|
|
47
|
-
color: t.color || e.color
|
|
48
|
-
}, e.style), t.style),
|
|
49
|
-
height: s,
|
|
50
|
-
width: s,
|
|
51
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
52
|
-
}), u && l.createElement("title", null, u), t.children);
|
|
53
|
-
};
|
|
54
|
-
return f !== void 0 ? l.createElement(f.Consumer, null, function(e) {
|
|
55
|
-
return r(e);
|
|
56
|
-
}) : r(d);
|
|
57
|
-
}
|
|
58
|
-
function w(t) {
|
|
59
|
-
return o({ 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);
|
|
60
|
-
}
|
|
61
|
-
function O(t) {
|
|
62
|
-
return o({ tag: "svg", attr: { viewBox: "0 0 320 512" }, child: [{ tag: "path", attr: { d: "M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z" } }] })(t);
|
|
63
|
-
}
|
|
64
|
-
function x(t) {
|
|
65
|
-
return o({ tag: "svg", attr: { viewBox: "0 0 320 512" }, child: [{ tag: "path", attr: { d: "M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z" } }] })(t);
|
|
66
|
-
}
|
|
67
|
-
export {
|
|
68
|
-
x as F,
|
|
69
|
-
o as G,
|
|
70
|
-
O as a,
|
|
71
|
-
w as b
|
|
72
|
-
};
|