@cfx-dev/ui-components 4.5.5 → 4.5.8

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.
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+
3
+ declare function WhiteLogo(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
4
+ declare const _default: React.MemoExoticComponent<typeof WhiteLogo>;
5
+ export default _default;
@@ -0,0 +1,24 @@
1
+ import { jsx as L } from "react/jsx-runtime";
2
+ import t from "react";
3
+ function e(o) {
4
+ return /* @__PURE__ */ L(
5
+ "svg",
6
+ {
7
+ viewBox: "0 0 30 30",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ ...o,
11
+ children: /* @__PURE__ */ L(
12
+ "path",
13
+ {
14
+ d: "M9.919 15.243L11.299 11.106L11.308 11.082L11.506 10.488L12.853 6.441C12.94 6.177 13.186 6 13.465 6H16.297L16.702 7.221L17.011 8.151L14.656 10.506V10.494L14.644 10.518L9.916 15.246L9.919 15.243ZM8.221 20.334L7 24H10.636L13.201 15.354L8.221 20.334ZM17.86 10.698L15.433 13.125L18.646 24H22.285L17.86 10.698Z",
15
+ fill: "#F1F1E4"
16
+ }
17
+ )
18
+ }
19
+ );
20
+ }
21
+ const l = t.memo(e);
22
+ export {
23
+ l as default
24
+ };
@@ -4,3 +4,4 @@ export { default as Logo } from './Logo';
4
4
  export { default as LockupLandscape } from './LockupLandscape';
5
5
  export { default as LockupPortrait } from './LockupPortrait';
6
6
  export { default as Wordmark } from './Wordmark';
7
+ export { default as WhiteLogo } from './WhiteLogo';
@@ -4,11 +4,13 @@ import { default as p } from "./Logo.js";
4
4
  import { default as m } from "./LockupLandscape.js";
5
5
  import { default as u } from "./LockupPortrait.js";
6
6
  import { default as x } from "./Wordmark.js";
7
+ import { default as c } from "./WhiteLogo.js";
7
8
  export {
8
9
  r as CompositeLogo,
9
10
  e as Icon,
10
11
  m as LockupLandscape,
11
12
  u as LockupPortrait,
12
13
  p as Logo,
14
+ c as WhiteLogo,
13
15
  x as Wordmark
14
16
  };
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+
3
+ declare function Icon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
4
+ declare const _default: React.MemoExoticComponent<typeof Icon>;
5
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import { jsxs as e, jsx as C } from "react/jsx-runtime";
2
+ import i from "react";
3
+ function t(l) {
4
+ return /* @__PURE__ */ e(
5
+ "svg",
6
+ {
7
+ viewBox: "0 0 25 24",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ ...l,
11
+ children: [
12
+ /* @__PURE__ */ C("g", { clipPath: "url(#clip0_11661_7309)", children: /* @__PURE__ */ C(
13
+ "path",
14
+ {
15
+ fillRule: "evenodd",
16
+ clipRule: "evenodd",
17
+ d: "M12.805 0C6.05253 0 0.592529 5.5 0.592529 12.305C0.592529 17.745 4.09003 22.3475 8.94253 23.9775C9.55003 24.1 9.77253 23.7125 9.77253 23.3875C9.77253 23.1025 9.75253 22.125 9.75253 21.105C6.35503 21.8375 5.64753 19.6375 5.64753 19.6375C5.10253 18.2125 4.29253 17.845 4.29253 17.845C3.18003 17.0925 4.37253 17.0925 4.37253 17.0925C5.60503 17.175 6.25253 18.355 6.25253 18.355C7.34503 20.23 9.10253 19.7 9.81253 19.3725C9.91253 18.5775 10.2375 18.0275 10.58 17.7225C7.87003 17.4375 5.02003 16.3775 5.02003 11.6525C5.02003 10.3075 5.50503 9.2075 6.27253 8.3525C6.15003 8.0475 5.72753 6.785 6.39503 5.0925C6.39503 5.0925 7.42503 4.7675 9.75253 6.355C10.7475 6.085 11.775 5.9475 12.805 5.9475C13.835 5.9475 14.8875 6.09 15.8575 6.355C18.1825 4.765 19.215 5.0925 19.215 5.0925C19.8825 6.7825 19.4575 8.0475 19.3375 8.3525C20.125 9.2075 20.59 10.3075 20.59 11.6525C20.59 16.38 17.74 17.4175 15.01 17.7225C15.455 18.11 15.84 18.8425 15.84 20.005C15.84 21.655 15.82 22.98 15.82 23.3875C15.82 23.7125 16.0425 24.1 16.65 23.9775C21.5025 22.3475 25 17.745 25 12.305C25.02 5.5 19.54 0 12.8075 0L12.805 0Z",
18
+ fill: "#F1F1E4"
19
+ }
20
+ ) }),
21
+ /* @__PURE__ */ C("defs", { children: /* @__PURE__ */ C("clipPath", { id: "clip0_11661_7309", children: /* @__PURE__ */ C("rect", { width: "24.4075", height: "24", fill: "white", transform: "translate(0.592529)" }) }) })
22
+ ]
23
+ }
24
+ );
25
+ }
26
+ const o = i.memo(t);
27
+ export {
28
+ o as default
29
+ };
@@ -0,0 +1 @@
1
+ export { default as Icon } from './Icon';
@@ -0,0 +1,4 @@
1
+ import { default as e } from "./Icon.js";
2
+ export {
3
+ e as Icon
4
+ };
@@ -3,6 +3,7 @@ import * as CfxBazaar from './cfxbazaar';
3
3
  import * as Discord from './discord';
4
4
  import * as ESX from './esx';
5
5
  import * as FiveM from './fivem';
6
+ import * as Github from './github';
6
7
  import * as Google from './google';
7
8
  import * as Patreon from './patreon';
8
9
  import * as QBcore from './qbcore';
@@ -11,6 +12,7 @@ import * as RedM from './redm';
11
12
  import * as Rockstar from './rockstar';
12
13
  import * as Tebex from './tebex';
13
14
  import * as VorpCore from './vorpcore';
15
+ import * as X from './x';
14
16
  export declare const Logos: {
15
17
  Cfx: typeof Cfx;
16
18
  FiveM: typeof FiveM;
@@ -25,5 +27,7 @@ export declare const Logos: {
25
27
  RedemRP: typeof RedemRP;
26
28
  Discord: typeof Discord;
27
29
  CfxBazaar: typeof CfxBazaar;
30
+ Github: typeof Github;
31
+ X: typeof X;
28
32
  };
29
33
  export * as LogoNames from './Logos.types';
@@ -2,32 +2,36 @@ import { C as o } from "../../index-BgyFvlVL.js";
2
2
  import { C as r } from "../../index-BCMIaGt2.js";
3
3
  import { D as m } from "../../index-DwfZyjnS.js";
4
4
  import { E as a } from "../../index-CndZSWbO.js";
5
- import { F as s } from "../../index-D7JPdg13.js";
6
- import { G as t } from "../../index-zDYfHjPd.js";
7
- import { P as f } from "../../index-kbBuAY0m.js";
5
+ import { F as t } from "../../index-B_NGoq0d.js";
6
+ import { G as s } from "../../index-SuteELrX.js";
7
+ import { G as f } from "../../index-zDYfHjPd.js";
8
+ import { P as i } from "../../index-kbBuAY0m.js";
8
9
  import { Q as p } from "../../index-Cy4ZbWBL.js";
9
- import { R as i } from "../../index-BFDtbr-9.js";
10
- import { R as e } from "../../index-Jh-MtE10.js";
11
- import { R } from "../../index-DmiGJpGO.js";
12
- import { T as x } from "../../index-Bj7QGXdt.js";
13
- import { V as C } from "../../index-DXAZagKA.js";
14
- import { L as k } from "../../Logos.types-Bdec3F0Q.js";
15
- const T = {
10
+ import { R as e } from "../../index-BFDtbr-9.js";
11
+ import { R } from "../../index-Cn_D8a9-.js";
12
+ import { R as x } from "../../index-DmiGJpGO.js";
13
+ import { T as C } from "../../index-Bj7QGXdt.js";
14
+ import { V as c } from "../../index-DXAZagKA.js";
15
+ import { X as G } from "../../index-Bc4HE9pX.js";
16
+ import { L as u } from "../../Logos.types-Bdec3F0Q.js";
17
+ const h = {
16
18
  Cfx: o,
17
- FiveM: s,
18
- RedM: e,
19
- Rockstar: R,
20
- Google: t,
21
- Patreon: f,
22
- Tebex: x,
19
+ FiveM: t,
20
+ RedM: R,
21
+ Rockstar: x,
22
+ Google: f,
23
+ Patreon: i,
24
+ Tebex: C,
23
25
  QBcore: p,
24
26
  ESX: a,
25
- VorpCore: C,
26
- RedemRP: i,
27
+ VorpCore: c,
28
+ RedemRP: e,
27
29
  Discord: m,
28
- CfxBazaar: r
30
+ CfxBazaar: r,
31
+ Github: s,
32
+ X: G
29
33
  };
30
34
  export {
31
- k as LogoNames,
32
- T as Logos
35
+ u as LogoNames,
36
+ h as Logos
33
37
  };
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+
3
+ declare function WhiteLogo(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
4
+ declare const _default: React.MemoExoticComponent<typeof WhiteLogo>;
5
+ export default _default;
@@ -0,0 +1,40 @@
1
+ import { jsxs as o, jsx as L } from "react/jsx-runtime";
2
+ import l from "react";
3
+ function e(t) {
4
+ return /* @__PURE__ */ o(
5
+ "svg",
6
+ {
7
+ viewBox: "0 0 30 30",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ ...t,
11
+ children: [
12
+ /* @__PURE__ */ L(
13
+ "path",
14
+ {
15
+ d: "M18.3867 17.7033L18.1967 17.6833L18.5167 16.06L18.7533 14.8667L18.7767 14.7533L18.7833 14.7267L18.6267 14.7033L18.4667 14.68L18.1333 14.63L17.9 14.5967L15.67 14.2667L15.6433 14.3967L15.53 14.9333L15.5167 15L15.4533 15.3L15.4367 15.3867L15.0467 17.57H12.9667L13.0833 15.9833L13.1467 15.1367V15.0867L13.1533 15.0367L13.1733 14.7733L13.18 14.6933L13.4 11.6767V9.46L13.4167 9.04L13.43 8.71667L13.4433 8.47L13.4633 7.99L13.48 7.62333L13.49 7.37333L13.55 5.16L11.2433 5.08667L10.2933 5.05333L10.3033 5.29333L10.2767 5.75333V8.13333L10.2567 8.41L10.2233 8.77667V12.29L10.1367 12.48L10.1433 12.6567L10.0933 13.4533L10.06 13.9933L10 14.2633V14.7533L10.0067 14.9933V24.9967H20.3033V24.35L20.7633 17.5933L19.0867 17.7033H18.3867ZM12.8467 22L13.01 21.19V20.62L12.8467 20.24H17.8733L17.82 21.0233L17.8733 22H12.8467Z",
16
+ fill: "#F1F1E4"
17
+ }
18
+ ),
19
+ /* @__PURE__ */ L(
20
+ "path",
21
+ {
22
+ d: "M10.25 5.81L10.2767 5.78333L10.25 5.75667V5.81Z",
23
+ fill: "#F1F1E4"
24
+ }
25
+ ),
26
+ /* @__PURE__ */ L(
27
+ "path",
28
+ {
29
+ d: "M18.2 5L17.8733 5.94L17.78 6.22L17.4567 7.16L17.3633 7.43667L17.24 7.79L16.9567 8.62333L16.5767 9.94333L16.3733 10.9033L18.0167 11.15L19.62 11.3867L19.98 9.97L20.6233 6.69333L20.69 6.36L20.74 6.09333L20.84 5.59L20.96 5H18.2Z",
30
+ fill: "#F1F1E4"
31
+ }
32
+ )
33
+ ]
34
+ }
35
+ );
36
+ }
37
+ const r = l.memo(e);
38
+ export {
39
+ r as default
40
+ };
@@ -4,3 +4,4 @@ export { default as Logo } from './Logo';
4
4
  export { default as LockupLandscape } from './LockupLandscape';
5
5
  export { default as LockupPortrait } from './LockupPortrait';
6
6
  export { default as Wordmark } from './Wordmark';
7
+ export { default as WhiteLogo } from './WhiteLogo';
@@ -4,11 +4,13 @@ import { default as p } from "./Logo.js";
4
4
  import { default as m } from "./LockupLandscape.js";
5
5
  import { default as u } from "./LockupPortrait.js";
6
6
  import { default as x } from "./Wordmark.js";
7
+ import { default as c } from "./WhiteLogo.js";
7
8
  export {
8
9
  r as CompositeLogo,
9
10
  e as Icon,
10
11
  m as LockupLandscape,
11
12
  u as LockupPortrait,
12
13
  p as Logo,
14
+ c as WhiteLogo,
13
15
  x as Wordmark
14
16
  };
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+
3
+ declare function Icon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
4
+ declare const _default: React.MemoExoticComponent<typeof Icon>;
5
+ export default _default;
@@ -0,0 +1,24 @@
1
+ import { jsx as L } from "react/jsx-runtime";
2
+ import t from "react";
3
+ function n(o) {
4
+ return /* @__PURE__ */ L(
5
+ "svg",
6
+ {
7
+ viewBox: "0 0 25 24",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ ...o,
11
+ children: /* @__PURE__ */ L(
12
+ "path",
13
+ {
14
+ d: "M14.4923 11.1983L20.6848 4H19.2174L13.8404 10.2502L9.54583 4H4.59253L11.0868 13.4514L4.59253 21H6.06005L11.7383 14.3996L16.2737 21H21.227L14.4919 11.1983H14.4923ZM12.4823 13.5347L11.8243 12.5936L6.58882 5.10473H8.84284L13.068 11.1485L13.726 12.0896L19.2181 19.9455H16.9641L12.4823 13.5351V13.5347Z",
15
+ fill: "#F1F1E4"
16
+ }
17
+ )
18
+ }
19
+ );
20
+ }
21
+ const l = t.memo(n);
22
+ export {
23
+ l as default
24
+ };
@@ -0,0 +1 @@
1
+ export { default as Icon } from './Icon';
@@ -0,0 +1,4 @@
1
+ import { default as e } from "./Icon.js";
2
+ export {
3
+ e as Icon
4
+ };
@@ -1,12 +1,12 @@
1
1
  import { jsx as b, jsxs as N } from "react/jsx-runtime";
2
- import x, { createElement as p } from "react";
3
- import { Dot as C } from "../Dot/Dot.js";
2
+ import x, { createElement as C } from "react";
3
+ import { Dot as v } from "../Dot/Dot.js";
4
4
  import { clsx as d } from "../../utils/clsx.js";
5
- import { ui as v } from "../../utils/ui/ui.js";
6
- const k = "cfxui__Tabular__reset__b1dbc", R = "cfxui__Tabular__item__98cc3", I = "cfxui__Tabular__root__0ff05", y = "cfxui__Tabular__active__1ae95", j = "cfxui__Tabular__hasNotification__c372f", A = "cfxui__Tabular__content__3a95a", a = {
7
- reset: k,
5
+ import { ui as k } from "../../utils/ui/ui.js";
6
+ const R = "cfxui__Tabular__reset__b1dbc", I = "cfxui__Tabular__item__98cc3", y = "cfxui__Tabular__root__0ff05", j = "cfxui__Tabular__active__1ae95", A = "cfxui__Tabular__hasNotification__c372f", L = "cfxui__Tabular__content__3a95a", a = {
7
+ reset: R,
8
8
  "tabular-size-initial-large": "cfxui__Tabular__tabular-size-initial-large__9451f",
9
- item: R,
9
+ item: I,
10
10
  "tabular-size-initial-small": "cfxui__Tabular__tabular-size-initial-small__4dad8",
11
11
  "tabular-size-small-large": "cfxui__Tabular__tabular-size-small-large__1390c",
12
12
  "tabular-size-small-small": "cfxui__Tabular__tabular-size-small-small__cc6e3",
@@ -20,35 +20,35 @@ const k = "cfxui__Tabular__reset__b1dbc", R = "cfxui__Tabular__item__98cc3", I =
20
20
  "tabular-size-large-small": "cfxui__Tabular__tabular-size-large-small__193f0",
21
21
  "tabular-size-xlarge-large": "cfxui__Tabular__tabular-size-xlarge-large__e1e19",
22
22
  "tabular-size-xlarge-small": "cfxui__Tabular__tabular-size-xlarge-small__9c3b6",
23
- root: I,
23
+ root: y,
24
24
  "theme-dark": "cfxui__Tabular__theme-dark__80b8c",
25
25
  "theme-light": "cfxui__Tabular__theme-light__c05b9",
26
- active: y,
27
- hasNotification: j,
28
- content: A
26
+ active: j,
27
+ hasNotification: A,
28
+ content: L
29
29
  };
30
30
  function n(f) {
31
31
  const {
32
32
  items: s,
33
33
  activeItem: i,
34
34
  onActivate: e,
35
- itemClassName: _,
35
+ itemClassName: r,
36
36
  size: u = "medium",
37
37
  className: c,
38
38
  ItemComponent: m,
39
- ...r
39
+ ..._
40
40
  } = f, l = x.useCallback((t) => {
41
41
  e && e(t);
42
42
  }, [e]), o = d(
43
43
  a.root,
44
44
  c
45
45
  );
46
- return /* @__PURE__ */ b(n.Root, { ...r, className: o, children: s.map((t) => /* @__PURE__ */ p(
46
+ return /* @__PURE__ */ b(n.Root, { ..._, className: o, children: s.map((t) => /* @__PURE__ */ C(
47
47
  n.Item,
48
48
  {
49
49
  ...t,
50
50
  Component: m,
51
- className: _,
51
+ className: r,
52
52
  key: t.id,
53
53
  active: t.id === i,
54
54
  onClick: l,
@@ -60,20 +60,20 @@ n.Root = function(s) {
60
60
  const {
61
61
  children: i,
62
62
  className: e,
63
- ariaLabel: _,
63
+ ariaLabel: r,
64
64
  tabIndex: u,
65
65
  theme: c = "dark",
66
66
  role: m = "tablist",
67
- style: r
67
+ style: _
68
68
  } = s, l = d(a.root, a[`theme-${c}`], e);
69
69
  return /* @__PURE__ */ b(
70
70
  "div",
71
71
  {
72
72
  role: m,
73
- "aria-label": _,
73
+ "aria-label": r,
74
74
  tabIndex: u,
75
75
  className: l,
76
- style: r,
76
+ style: _,
77
77
  children: i
78
78
  }
79
79
  );
@@ -82,24 +82,25 @@ n.Item = function(s) {
82
82
  const {
83
83
  id: i,
84
84
  label: e,
85
- onClick: _,
85
+ onClick: r,
86
86
  ariaLabel: u,
87
87
  ariaControls: c,
88
88
  className: m,
89
- active: r = !1,
89
+ active: _ = !1,
90
90
  disabled: l = !1,
91
91
  hasNotification: o = !1,
92
92
  size: t,
93
- Component: z
94
- } = s, g = x.useCallback(() => {
95
- l || _(i);
96
- }, [l, _, i]), T = d(
93
+ Component: z,
94
+ ...g
95
+ } = s, T = x.useCallback(() => {
96
+ l || r(i);
97
+ }, [l, r, i]), h = d(
97
98
  a.reset,
98
99
  a.item,
99
100
  m,
100
- v.getResponsiveFlatClassnames("tabular-size", t).map((h) => a[h]),
101
+ k.getResponsiveFlatClassnames("tabular-size", t).map((p) => a[p]),
101
102
  {
102
- [a.active]: r,
103
+ [a.active]: _,
103
104
  [a.hasNotification]: o
104
105
  }
105
106
  );
@@ -109,15 +110,16 @@ n.Item = function(s) {
109
110
  disabled: l,
110
111
  type: "button",
111
112
  role: "tab",
112
- className: T,
113
- onClick: g,
113
+ className: h,
114
+ onClick: T,
114
115
  "aria-label": u,
115
116
  "aria-controls": c,
116
117
  "data-text": e,
117
- "aria-selected": r,
118
+ "aria-selected": _,
119
+ ...g,
118
120
  children: /* @__PURE__ */ N("span", { className: a.content, children: [
119
121
  e,
120
- o && /* @__PURE__ */ b(C, { color: "green", className: a.notification })
122
+ o && /* @__PURE__ */ b(v, { color: "green", className: a.notification })
121
123
  ] })
122
124
  }
123
125
  );
@@ -4,6 +4,7 @@ import t from "./components/Logos/fivem/Logo.js";
4
4
  import m from "./components/Logos/fivem/LockupLandscape.js";
5
5
  import e from "./components/Logos/fivem/LockupPortrait.js";
6
6
  import p from "./components/Logos/fivem/Wordmark.js";
7
+ import i from "./components/Logos/fivem/WhiteLogo.js";
7
8
  const u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8
9
  __proto__: null,
9
10
  CompositeLogo: o,
@@ -11,6 +12,7 @@ const u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11
12
  LockupLandscape: m,
12
13
  LockupPortrait: e,
13
14
  Logo: t,
15
+ WhiteLogo: i,
14
16
  Wordmark: p
15
17
  }, Symbol.toStringTag, { value: "Module" }));
16
18
  export {
@@ -0,0 +1,8 @@
1
+ import e from "./components/Logos/x/Icon.js";
2
+ const t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3
+ __proto__: null,
4
+ Icon: e
5
+ }, Symbol.toStringTag, { value: "Module" }));
6
+ export {
7
+ t as X
8
+ };
@@ -4,6 +4,7 @@ import t from "./components/Logos/redm/Logo.js";
4
4
  import m from "./components/Logos/redm/LockupLandscape.js";
5
5
  import e from "./components/Logos/redm/LockupPortrait.js";
6
6
  import p from "./components/Logos/redm/Wordmark.js";
7
+ import i from "./components/Logos/redm/WhiteLogo.js";
7
8
  const l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8
9
  __proto__: null,
9
10
  CompositeLogo: o,
@@ -11,6 +12,7 @@ const l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11
12
  LockupLandscape: m,
12
13
  LockupPortrait: e,
13
14
  Logo: t,
15
+ WhiteLogo: i,
14
16
  Wordmark: p
15
17
  }, Symbol.toStringTag, { value: "Module" }));
16
18
  export {
@@ -0,0 +1,8 @@
1
+ import e from "./components/Logos/github/Icon.js";
2
+ const t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3
+ __proto__: null,
4
+ Icon: e
5
+ }, Symbol.toStringTag, { value: "Module" }));
6
+ export {
7
+ t as G
8
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cfx-dev/ui-components",
3
3
  "private": false,
4
- "version": "4.5.5",
4
+ "version": "4.5.8",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "main": "dist/main.js",