@cfx-dev/ui-components 5.0.38 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{cfxIcons-B2ocwAjm.js → cfxIcons-MIqVVOEb.js} +58 -42
- package/dist/{cfxIconsXLarge-C9n01-rM.js → cfxIconsXLarge-EQesXs1i.js} +58 -42
- package/dist/components/Checkbox/Checkbox.js +71 -55
- package/dist/components/Checkbox/CheckboxShowcase.js +18 -2
- package/dist/components/Icon/Icon.js +2 -2
- package/dist/components/Icons/IconsShowcase.js +25 -15
- package/dist/components/Icons/cfx-icons/Alert.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Alert.js +26 -0
- package/dist/components/Icons/cfx-icons/Clock.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Clock.js +26 -0
- package/dist/components/Icons/cfx-icons/Crown.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Crown.js +26 -0
- package/dist/components/Icons/cfx-icons/Device.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Device.js +26 -0
- package/dist/components/Icons/cfx-icons/Error.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Error.js +26 -0
- package/dist/components/Icons/cfx-icons/ExternalLink.js +8 -8
- package/dist/components/Icons/cfx-icons/PaperMap.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/PaperMap.js +26 -0
- package/dist/components/Icons/cfx-icons/Resource.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Resource.js +26 -0
- package/dist/components/Icons/cfx-icons/Tag.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Tag.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Alert.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Alert.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Clock.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Clock.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Crown.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Crown.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Device.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Device.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Error.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Error.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/ExternalLink.js +8 -8
- package/dist/components/Icons/cfx-iconsXLarge/PaperMap.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/PaperMap.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Resource.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Resource.js +37 -0
- package/dist/components/Icons/cfx-iconsXLarge/Tag.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Tag.js +26 -0
- package/dist/components/Icons/cfxIcons.d.ts +8 -0
- package/dist/components/Icons/cfxIcons.js +114 -98
- package/dist/components/Icons/cfxIconsXLarge.d.ts +8 -0
- package/dist/components/Icons/cfxIconsXLarge.js +114 -98
- package/dist/components/Icons/index.js +2 -2
- package/dist/components/Logos/Logos.types.d.ts +4 -0
- package/dist/components/Logos/index.d.ts +4 -0
- package/dist/components/Logos/index.js +41 -37
- package/dist/components/Logos/medal/Logo.d.ts +5 -0
- package/dist/components/Logos/medal/Logo.js +18 -0
- package/dist/components/Logos/medal/index.d.ts +1 -0
- package/dist/components/Logos/medal/index.js +4 -0
- package/dist/components/Logos/twitch/Logo.d.ts +5 -0
- package/dist/components/Logos/twitch/Logo.js +17 -0
- package/dist/components/Logos/twitch/index.d.ts +1 -0
- package/dist/components/Logos/twitch/index.js +4 -0
- package/dist/index-1q3z0Hkj.js +8 -0
- package/dist/index-Ju5SlwdW.js +8 -0
- package/dist/main.js +2 -2
- package/package.json +1 -1
|
@@ -8,34 +8,34 @@ import i from "./components/Icons/cfx-icons/Expand.js";
|
|
|
8
8
|
import a from "./components/Icons/cfx-icons/ExternalLink.js";
|
|
9
9
|
import l from "./components/Icons/cfx-icons/Filter.js";
|
|
10
10
|
import p from "./components/Icons/cfx-icons/Folder.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
11
|
+
import u from "./components/Icons/cfx-icons/Heart.js";
|
|
12
|
+
import d from "./components/Icons/cfx-icons/HeartFilled.js";
|
|
13
13
|
import _ from "./components/Icons/cfx-icons/Help.js";
|
|
14
14
|
import n from "./components/Icons/cfx-icons/LeftArrow.js";
|
|
15
15
|
import s from "./components/Icons/cfx-icons/LeftChevron.js";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
16
|
+
import c from "./components/Icons/cfx-icons/Map.js";
|
|
17
|
+
import S from "./components/Icons/cfx-icons/Menu.js";
|
|
18
18
|
import v from "./components/Icons/cfx-icons/Minus.js";
|
|
19
19
|
import C from "./components/Icons/cfx-icons/More.js";
|
|
20
20
|
import h from "./components/Icons/cfx-icons/MoreInfo.js";
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
21
|
+
import g from "./components/Icons/cfx-icons/Pencil.js";
|
|
22
|
+
import w from "./components/Icons/cfx-icons/Play.js";
|
|
23
|
+
import M from "./components/Icons/cfx-icons/Plus.js";
|
|
24
|
+
import R from "./components/Icons/cfx-icons/Radio.js";
|
|
25
|
+
import U from "./components/Icons/cfx-icons/Refresh.js";
|
|
26
26
|
import P from "./components/Icons/cfx-icons/RightArrow.js";
|
|
27
27
|
import T from "./components/Icons/cfx-icons/RightChevron.js";
|
|
28
28
|
import y from "./components/Icons/cfx-icons/Search.js";
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
29
|
+
import A from "./components/Icons/cfx-icons/ServerList.js";
|
|
30
|
+
import D from "./components/Icons/cfx-icons/ServerReconnect.js";
|
|
31
|
+
import F from "./components/Icons/cfx-icons/Sort.js";
|
|
32
|
+
import k from "./components/Icons/cfx-icons/Square.js";
|
|
33
|
+
import E from "./components/Icons/cfx-icons/SquareFilled.js";
|
|
34
|
+
import H from "./components/Icons/cfx-icons/SquareTick.js";
|
|
35
|
+
import L from "./components/Icons/cfx-icons/Stop.js";
|
|
36
|
+
import b from "./components/Icons/cfx-icons/Success.js";
|
|
37
|
+
import x from "./components/Icons/cfx-icons/Tick.js";
|
|
38
|
+
import q from "./components/Icons/cfx-icons/Transfer.js";
|
|
39
39
|
import I from "./components/Icons/cfx-icons/Trash.js";
|
|
40
40
|
import V from "./components/Icons/cfx-icons/Undo.js";
|
|
41
41
|
import O from "./components/Icons/cfx-icons/UpArrow.js";
|
|
@@ -62,61 +62,77 @@ import ir from "./components/Icons/cfx-icons/Documentation.js";
|
|
|
62
62
|
import ar from "./components/Icons/cfx-icons/Pen.js";
|
|
63
63
|
import lr from "./components/Icons/cfx-icons/Expand2.js";
|
|
64
64
|
import pr from "./components/Icons/cfx-icons/Snail.js";
|
|
65
|
-
import
|
|
66
|
-
|
|
65
|
+
import ur from "./components/Icons/cfx-icons/Hat.js";
|
|
66
|
+
import dr from "./components/Icons/cfx-icons/Clock.js";
|
|
67
|
+
import _r from "./components/Icons/cfx-icons/PaperMap.js";
|
|
68
|
+
import nr from "./components/Icons/cfx-icons/Tag.js";
|
|
69
|
+
import sr from "./components/Icons/cfx-icons/Device.js";
|
|
70
|
+
import cr from "./components/Icons/cfx-icons/Resource.js";
|
|
71
|
+
import Sr from "./components/Icons/cfx-icons/Crown.js";
|
|
72
|
+
import vr from "./components/Icons/cfx-icons/Error.js";
|
|
73
|
+
import Cr from "./components/Icons/cfx-icons/Alert.js";
|
|
74
|
+
const Vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
67
75
|
__proto__: null,
|
|
76
|
+
Alert: Cr,
|
|
68
77
|
Car: Z,
|
|
69
78
|
Cart: K,
|
|
79
|
+
Clock: dr,
|
|
70
80
|
Close: r,
|
|
71
81
|
Controller: o,
|
|
72
82
|
Copy: t,
|
|
73
83
|
Creator: mr,
|
|
84
|
+
Crown: Sr,
|
|
85
|
+
Device: sr,
|
|
74
86
|
Documentation: ir,
|
|
75
87
|
DownArrow: e,
|
|
76
88
|
DownChevron: f,
|
|
77
89
|
Download: m,
|
|
90
|
+
Error: vr,
|
|
78
91
|
Expand: i,
|
|
79
92
|
Expand2: lr,
|
|
80
93
|
ExternalLink: a,
|
|
81
94
|
Filter: l,
|
|
82
95
|
FiveMServer: er,
|
|
83
96
|
Folder: p,
|
|
84
|
-
Hat:
|
|
85
|
-
Heart:
|
|
86
|
-
HeartFilled:
|
|
97
|
+
Hat: ur,
|
|
98
|
+
Heart: u,
|
|
99
|
+
HeartFilled: d,
|
|
87
100
|
Help: _,
|
|
88
101
|
Integration: or,
|
|
89
102
|
LeftArrow: n,
|
|
90
103
|
LeftChevron: s,
|
|
91
|
-
Map:
|
|
92
|
-
Menu:
|
|
104
|
+
Map: c,
|
|
105
|
+
Menu: S,
|
|
93
106
|
Minus: v,
|
|
94
107
|
More: C,
|
|
95
108
|
MoreInfo: h,
|
|
109
|
+
PaperMap: _r,
|
|
96
110
|
Pen: ar,
|
|
97
|
-
Pencil:
|
|
98
|
-
Play:
|
|
99
|
-
Plus:
|
|
111
|
+
Pencil: g,
|
|
112
|
+
Play: w,
|
|
113
|
+
Plus: M,
|
|
100
114
|
Population: $,
|
|
101
|
-
Radio:
|
|
115
|
+
Radio: R,
|
|
102
116
|
RedMServer: tr,
|
|
103
|
-
Refresh:
|
|
117
|
+
Refresh: U,
|
|
118
|
+
Resource: cr,
|
|
104
119
|
RightArrow: P,
|
|
105
120
|
RightChevron: T,
|
|
106
121
|
Script: fr,
|
|
107
122
|
Search: y,
|
|
108
|
-
ServerList:
|
|
109
|
-
ServerReconnect:
|
|
123
|
+
ServerList: A,
|
|
124
|
+
ServerReconnect: D,
|
|
110
125
|
Snail: pr,
|
|
111
|
-
Sort:
|
|
112
|
-
Square:
|
|
113
|
-
SquareFilled:
|
|
114
|
-
SquareTick:
|
|
115
|
-
Stop:
|
|
116
|
-
Success:
|
|
117
|
-
|
|
126
|
+
Sort: F,
|
|
127
|
+
Square: k,
|
|
128
|
+
SquareFilled: E,
|
|
129
|
+
SquareTick: H,
|
|
130
|
+
Stop: L,
|
|
131
|
+
Success: b,
|
|
132
|
+
Tag: nr,
|
|
133
|
+
Tick: x,
|
|
118
134
|
Tooling: rr,
|
|
119
|
-
Transfer:
|
|
135
|
+
Transfer: q,
|
|
120
136
|
Trash: I,
|
|
121
137
|
Undo: V,
|
|
122
138
|
UpArrow: O,
|
|
@@ -132,5 +148,5 @@ const Mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
132
148
|
Warning: J
|
|
133
149
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
134
150
|
export {
|
|
135
|
-
|
|
151
|
+
Vo as I
|
|
136
152
|
};
|
|
@@ -8,34 +8,34 @@ import i from "./components/Icons/cfx-iconsXLarge/Expand.js";
|
|
|
8
8
|
import a from "./components/Icons/cfx-iconsXLarge/ExternalLink.js";
|
|
9
9
|
import l from "./components/Icons/cfx-iconsXLarge/Filter.js";
|
|
10
10
|
import p from "./components/Icons/cfx-iconsXLarge/Folder.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
11
|
+
import u from "./components/Icons/cfx-iconsXLarge/Heart.js";
|
|
12
|
+
import d from "./components/Icons/cfx-iconsXLarge/HeartFilled.js";
|
|
13
13
|
import _ from "./components/Icons/cfx-iconsXLarge/Help.js";
|
|
14
14
|
import n from "./components/Icons/cfx-iconsXLarge/LeftArrow.js";
|
|
15
15
|
import s from "./components/Icons/cfx-iconsXLarge/LeftChevron.js";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
16
|
+
import c from "./components/Icons/cfx-iconsXLarge/Map.js";
|
|
17
|
+
import S from "./components/Icons/cfx-iconsXLarge/Menu.js";
|
|
18
18
|
import v from "./components/Icons/cfx-iconsXLarge/Minus.js";
|
|
19
19
|
import C from "./components/Icons/cfx-iconsXLarge/More.js";
|
|
20
20
|
import h from "./components/Icons/cfx-iconsXLarge/MoreInfo.js";
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
21
|
+
import g from "./components/Icons/cfx-iconsXLarge/Pencil.js";
|
|
22
|
+
import w from "./components/Icons/cfx-iconsXLarge/Play.js";
|
|
23
|
+
import M from "./components/Icons/cfx-iconsXLarge/Plus.js";
|
|
24
|
+
import R from "./components/Icons/cfx-iconsXLarge/Radio.js";
|
|
25
|
+
import U from "./components/Icons/cfx-iconsXLarge/Refresh.js";
|
|
26
26
|
import P from "./components/Icons/cfx-iconsXLarge/RightArrow.js";
|
|
27
27
|
import T from "./components/Icons/cfx-iconsXLarge/RightChevron.js";
|
|
28
28
|
import y from "./components/Icons/cfx-iconsXLarge/Search.js";
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
29
|
+
import A from "./components/Icons/cfx-iconsXLarge/ServerList.js";
|
|
30
|
+
import D from "./components/Icons/cfx-iconsXLarge/ServerReconnect.js";
|
|
31
|
+
import F from "./components/Icons/cfx-iconsXLarge/Sort.js";
|
|
32
|
+
import L from "./components/Icons/cfx-iconsXLarge/Square.js";
|
|
33
|
+
import k from "./components/Icons/cfx-iconsXLarge/SquareFilled.js";
|
|
34
|
+
import E from "./components/Icons/cfx-iconsXLarge/SquareTick.js";
|
|
35
|
+
import H from "./components/Icons/cfx-iconsXLarge/Stop.js";
|
|
36
|
+
import b from "./components/Icons/cfx-iconsXLarge/Success.js";
|
|
37
|
+
import x from "./components/Icons/cfx-iconsXLarge/Tick.js";
|
|
38
|
+
import q from "./components/Icons/cfx-iconsXLarge/Transfer.js";
|
|
39
39
|
import I from "./components/Icons/cfx-iconsXLarge/Trash.js";
|
|
40
40
|
import V from "./components/Icons/cfx-iconsXLarge/Undo.js";
|
|
41
41
|
import O from "./components/Icons/cfx-iconsXLarge/UpArrow.js";
|
|
@@ -62,61 +62,77 @@ import ir from "./components/Icons/cfx-iconsXLarge/Documentation.js";
|
|
|
62
62
|
import ar from "./components/Icons/cfx-iconsXLarge/Pen.js";
|
|
63
63
|
import lr from "./components/Icons/cfx-iconsXLarge/Expand2.js";
|
|
64
64
|
import pr from "./components/Icons/cfx-iconsXLarge/Snail.js";
|
|
65
|
-
import
|
|
66
|
-
|
|
65
|
+
import ur from "./components/Icons/cfx-iconsXLarge/Hat.js";
|
|
66
|
+
import dr from "./components/Icons/cfx-iconsXLarge/Clock.js";
|
|
67
|
+
import _r from "./components/Icons/cfx-iconsXLarge/PaperMap.js";
|
|
68
|
+
import nr from "./components/Icons/cfx-iconsXLarge/Tag.js";
|
|
69
|
+
import sr from "./components/Icons/cfx-iconsXLarge/Device.js";
|
|
70
|
+
import cr from "./components/Icons/cfx-iconsXLarge/Resource.js";
|
|
71
|
+
import Sr from "./components/Icons/cfx-iconsXLarge/Crown.js";
|
|
72
|
+
import vr from "./components/Icons/cfx-iconsXLarge/Error.js";
|
|
73
|
+
import Cr from "./components/Icons/cfx-iconsXLarge/Alert.js";
|
|
74
|
+
const Vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
67
75
|
__proto__: null,
|
|
76
|
+
Alert: Cr,
|
|
68
77
|
Car: Z,
|
|
69
78
|
Cart: J,
|
|
79
|
+
Clock: dr,
|
|
70
80
|
Close: r,
|
|
71
81
|
Controller: o,
|
|
72
82
|
Copy: t,
|
|
73
83
|
Creator: mr,
|
|
84
|
+
Crown: Sr,
|
|
85
|
+
Device: sr,
|
|
74
86
|
Documentation: ir,
|
|
75
87
|
DownArrow: e,
|
|
76
88
|
DownChevron: f,
|
|
77
89
|
Download: m,
|
|
90
|
+
Error: vr,
|
|
78
91
|
Expand: i,
|
|
79
92
|
Expand2: lr,
|
|
80
93
|
ExternalLink: a,
|
|
81
94
|
Filter: l,
|
|
82
95
|
FiveMServer: er,
|
|
83
96
|
Folder: p,
|
|
84
|
-
Hat:
|
|
85
|
-
Heart:
|
|
86
|
-
HeartFilled:
|
|
97
|
+
Hat: ur,
|
|
98
|
+
Heart: u,
|
|
99
|
+
HeartFilled: d,
|
|
87
100
|
Help: _,
|
|
88
101
|
Integration: or,
|
|
89
102
|
LeftArrow: n,
|
|
90
103
|
LeftChevron: s,
|
|
91
|
-
Map:
|
|
92
|
-
Menu:
|
|
104
|
+
Map: c,
|
|
105
|
+
Menu: S,
|
|
93
106
|
Minus: v,
|
|
94
107
|
More: C,
|
|
95
108
|
MoreInfo: h,
|
|
109
|
+
PaperMap: _r,
|
|
96
110
|
Pen: ar,
|
|
97
|
-
Pencil:
|
|
98
|
-
Play:
|
|
99
|
-
Plus:
|
|
111
|
+
Pencil: g,
|
|
112
|
+
Play: w,
|
|
113
|
+
Plus: M,
|
|
100
114
|
Population: $,
|
|
101
|
-
Radio:
|
|
115
|
+
Radio: R,
|
|
102
116
|
RedMServer: tr,
|
|
103
|
-
Refresh:
|
|
117
|
+
Refresh: U,
|
|
118
|
+
Resource: cr,
|
|
104
119
|
RightArrow: P,
|
|
105
120
|
RightChevron: T,
|
|
106
121
|
Script: fr,
|
|
107
122
|
Search: y,
|
|
108
|
-
ServerList:
|
|
109
|
-
ServerReconnect:
|
|
123
|
+
ServerList: A,
|
|
124
|
+
ServerReconnect: D,
|
|
110
125
|
Snail: pr,
|
|
111
|
-
Sort:
|
|
112
|
-
Square:
|
|
113
|
-
SquareFilled:
|
|
114
|
-
SquareTick:
|
|
115
|
-
Stop:
|
|
116
|
-
Success:
|
|
117
|
-
|
|
126
|
+
Sort: F,
|
|
127
|
+
Square: L,
|
|
128
|
+
SquareFilled: k,
|
|
129
|
+
SquareTick: E,
|
|
130
|
+
Stop: H,
|
|
131
|
+
Success: b,
|
|
132
|
+
Tag: nr,
|
|
133
|
+
Tick: x,
|
|
118
134
|
Tooling: rr,
|
|
119
|
-
Transfer:
|
|
135
|
+
Transfer: q,
|
|
120
136
|
Trash: I,
|
|
121
137
|
Undo: V,
|
|
122
138
|
UpArrow: O,
|
|
@@ -132,5 +148,5 @@ const Mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
132
148
|
Warning: G
|
|
133
149
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
134
150
|
export {
|
|
135
|
-
|
|
151
|
+
Vo as I
|
|
136
152
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as s, jsxs as U, Fragment as V } from "react/jsx-runtime";
|
|
2
2
|
import * as f from "react";
|
|
3
3
|
import R from "react";
|
|
4
4
|
import { P as w, u as W, a as A, c as T, b as Y, d as Z } from "../../index-8cuIcSMB.js";
|
|
@@ -69,6 +69,14 @@ import "../Icons/cfx-icons/Pen.js";
|
|
|
69
69
|
import "../Icons/cfx-icons/Expand2.js";
|
|
70
70
|
import "../Icons/cfx-icons/Snail.js";
|
|
71
71
|
import "../Icons/cfx-icons/Hat.js";
|
|
72
|
+
import "../Icons/cfx-icons/Clock.js";
|
|
73
|
+
import "../Icons/cfx-icons/PaperMap.js";
|
|
74
|
+
import "../Icons/cfx-icons/Tag.js";
|
|
75
|
+
import "../Icons/cfx-icons/Device.js";
|
|
76
|
+
import "../Icons/cfx-icons/Resource.js";
|
|
77
|
+
import "../Icons/cfx-icons/Crown.js";
|
|
78
|
+
import "../Icons/cfx-icons/Error.js";
|
|
79
|
+
import "../Icons/cfx-icons/Alert.js";
|
|
72
80
|
import "../Icons/cfx-iconsXLarge/Close.js";
|
|
73
81
|
import "../Icons/cfx-iconsXLarge/Controller.js";
|
|
74
82
|
import "../Icons/cfx-iconsXLarge/Copy.js";
|
|
@@ -134,14 +142,22 @@ import "../Icons/cfx-iconsXLarge/Pen.js";
|
|
|
134
142
|
import "../Icons/cfx-iconsXLarge/Expand2.js";
|
|
135
143
|
import "../Icons/cfx-iconsXLarge/Snail.js";
|
|
136
144
|
import "../Icons/cfx-iconsXLarge/Hat.js";
|
|
145
|
+
import "../Icons/cfx-iconsXLarge/Clock.js";
|
|
146
|
+
import "../Icons/cfx-iconsXLarge/PaperMap.js";
|
|
147
|
+
import "../Icons/cfx-iconsXLarge/Tag.js";
|
|
148
|
+
import "../Icons/cfx-iconsXLarge/Device.js";
|
|
149
|
+
import "../Icons/cfx-iconsXLarge/Resource.js";
|
|
150
|
+
import "../Icons/cfx-iconsXLarge/Crown.js";
|
|
151
|
+
import "../Icons/cfx-iconsXLarge/Error.js";
|
|
152
|
+
import "../Icons/cfx-iconsXLarge/Alert.js";
|
|
137
153
|
import { clsx as P } from "../../utils/clsx.js";
|
|
138
154
|
import { getColor as ie } from "../../utils/color.js";
|
|
139
155
|
var q = "Checkbox", [ce] = Z(q), [ne, F] = ce(q);
|
|
140
|
-
function
|
|
156
|
+
function me(o) {
|
|
141
157
|
const {
|
|
142
|
-
__scopeCheckbox:
|
|
158
|
+
__scopeCheckbox: p,
|
|
143
159
|
checked: c,
|
|
144
|
-
children:
|
|
160
|
+
children: a,
|
|
145
161
|
defaultChecked: r,
|
|
146
162
|
disabled: e,
|
|
147
163
|
form: _,
|
|
@@ -175,17 +191,17 @@ function se(o) {
|
|
|
175
191
|
bubbleInput: C,
|
|
176
192
|
setBubbleInput: i
|
|
177
193
|
};
|
|
178
|
-
return /* @__PURE__ */
|
|
194
|
+
return /* @__PURE__ */ s(
|
|
179
195
|
ne,
|
|
180
196
|
{
|
|
181
|
-
scope:
|
|
197
|
+
scope: p,
|
|
182
198
|
...I,
|
|
183
|
-
children:
|
|
199
|
+
children: pe(u) ? u(I) : a
|
|
184
200
|
}
|
|
185
201
|
);
|
|
186
202
|
}
|
|
187
203
|
var O = "CheckboxTrigger", D = f.forwardRef(
|
|
188
|
-
({ __scopeCheckbox: o, onKeyDown:
|
|
204
|
+
({ __scopeCheckbox: o, onKeyDown: p, onClick: c, ...a }, r) => {
|
|
189
205
|
const {
|
|
190
206
|
control: e,
|
|
191
207
|
value: _,
|
|
@@ -204,7 +220,7 @@ var O = "CheckboxTrigger", D = f.forwardRef(
|
|
|
204
220
|
const t = () => u(C.current);
|
|
205
221
|
return i.addEventListener("reset", t), () => i.removeEventListener("reset", t);
|
|
206
222
|
}
|
|
207
|
-
}, [e, u]), /* @__PURE__ */
|
|
223
|
+
}, [e, u]), /* @__PURE__ */ s(
|
|
208
224
|
w.button,
|
|
209
225
|
{
|
|
210
226
|
type: "button",
|
|
@@ -215,9 +231,9 @@ var O = "CheckboxTrigger", D = f.forwardRef(
|
|
|
215
231
|
"data-disabled": h ? "" : void 0,
|
|
216
232
|
disabled: h,
|
|
217
233
|
value: _,
|
|
218
|
-
...
|
|
234
|
+
...a,
|
|
219
235
|
ref: k,
|
|
220
|
-
onKeyDown: T(
|
|
236
|
+
onKeyDown: T(p, (i) => {
|
|
221
237
|
i.key === "Enter" && i.preventDefault();
|
|
222
238
|
}),
|
|
223
239
|
onClick: T(c, (i) => {
|
|
@@ -229,10 +245,10 @@ var O = "CheckboxTrigger", D = f.forwardRef(
|
|
|
229
245
|
);
|
|
230
246
|
D.displayName = O;
|
|
231
247
|
var L = f.forwardRef(
|
|
232
|
-
(o,
|
|
248
|
+
(o, p) => {
|
|
233
249
|
const {
|
|
234
250
|
__scopeCheckbox: c,
|
|
235
|
-
name:
|
|
251
|
+
name: a,
|
|
236
252
|
checked: r,
|
|
237
253
|
defaultChecked: e,
|
|
238
254
|
required: _,
|
|
@@ -242,8 +258,8 @@ var L = f.forwardRef(
|
|
|
242
258
|
form: x,
|
|
243
259
|
...u
|
|
244
260
|
} = o;
|
|
245
|
-
return /* @__PURE__ */
|
|
246
|
-
|
|
261
|
+
return /* @__PURE__ */ s(
|
|
262
|
+
me,
|
|
247
263
|
{
|
|
248
264
|
__scopeCheckbox: c,
|
|
249
265
|
checked: r,
|
|
@@ -251,19 +267,19 @@ var L = f.forwardRef(
|
|
|
251
267
|
disabled: h,
|
|
252
268
|
required: _,
|
|
253
269
|
onCheckedChange: b,
|
|
254
|
-
name:
|
|
270
|
+
name: a,
|
|
255
271
|
form: x,
|
|
256
272
|
value: d,
|
|
257
273
|
internal_do_not_use_render: ({ isFormControl: n }) => /* @__PURE__ */ U(V, { children: [
|
|
258
|
-
/* @__PURE__ */
|
|
274
|
+
/* @__PURE__ */ s(
|
|
259
275
|
D,
|
|
260
276
|
{
|
|
261
277
|
...u,
|
|
262
|
-
ref:
|
|
278
|
+
ref: p,
|
|
263
279
|
__scopeCheckbox: c
|
|
264
280
|
}
|
|
265
281
|
),
|
|
266
|
-
n && /* @__PURE__ */
|
|
282
|
+
n && /* @__PURE__ */ s(
|
|
267
283
|
G,
|
|
268
284
|
{
|
|
269
285
|
__scopeCheckbox: c
|
|
@@ -276,19 +292,19 @@ var L = f.forwardRef(
|
|
|
276
292
|
);
|
|
277
293
|
L.displayName = q;
|
|
278
294
|
var j = "CheckboxIndicator", H = f.forwardRef(
|
|
279
|
-
(o,
|
|
280
|
-
const { __scopeCheckbox: c, forceMount:
|
|
281
|
-
return /* @__PURE__ */
|
|
295
|
+
(o, p) => {
|
|
296
|
+
const { __scopeCheckbox: c, forceMount: a, ...r } = o, e = F(j, c);
|
|
297
|
+
return /* @__PURE__ */ s(
|
|
282
298
|
oe,
|
|
283
299
|
{
|
|
284
|
-
present:
|
|
285
|
-
children: /* @__PURE__ */
|
|
300
|
+
present: a || v(e.checked) || e.checked === !0,
|
|
301
|
+
children: /* @__PURE__ */ s(
|
|
286
302
|
w.span,
|
|
287
303
|
{
|
|
288
304
|
"data-state": K(e.checked),
|
|
289
305
|
"data-disabled": e.disabled ? "" : void 0,
|
|
290
306
|
...r,
|
|
291
|
-
ref:
|
|
307
|
+
ref: p,
|
|
292
308
|
style: { pointerEvents: "none", ...o.style }
|
|
293
309
|
}
|
|
294
310
|
)
|
|
@@ -298,9 +314,9 @@ var j = "CheckboxIndicator", H = f.forwardRef(
|
|
|
298
314
|
);
|
|
299
315
|
H.displayName = j;
|
|
300
316
|
var $ = "CheckboxBubbleInput", G = f.forwardRef(
|
|
301
|
-
({ __scopeCheckbox: o, ...
|
|
317
|
+
({ __scopeCheckbox: o, ...p }, c) => {
|
|
302
318
|
const {
|
|
303
|
-
control:
|
|
319
|
+
control: a,
|
|
304
320
|
hasConsumerStoppedPropagationRef: r,
|
|
305
321
|
checked: e,
|
|
306
322
|
defaultChecked: _,
|
|
@@ -311,7 +327,7 @@ var $ = "CheckboxBubbleInput", G = f.forwardRef(
|
|
|
311
327
|
form: u,
|
|
312
328
|
bubbleInput: n,
|
|
313
329
|
setBubbleInput: y
|
|
314
|
-
} = F($, o), l = A(c, y), k = ee(e), C = Y(
|
|
330
|
+
} = F($, o), l = A(c, y), k = ee(e), C = Y(a);
|
|
315
331
|
f.useEffect(() => {
|
|
316
332
|
const t = n;
|
|
317
333
|
if (!t) return;
|
|
@@ -325,7 +341,7 @@ var $ = "CheckboxBubbleInput", G = f.forwardRef(
|
|
|
325
341
|
}
|
|
326
342
|
}, [n, k, e, r]);
|
|
327
343
|
const i = f.useRef(v(e) ? !1 : e);
|
|
328
|
-
return /* @__PURE__ */
|
|
344
|
+
return /* @__PURE__ */ s(
|
|
329
345
|
w.input,
|
|
330
346
|
{
|
|
331
347
|
type: "checkbox",
|
|
@@ -336,11 +352,11 @@ var $ = "CheckboxBubbleInput", G = f.forwardRef(
|
|
|
336
352
|
name: b,
|
|
337
353
|
value: x,
|
|
338
354
|
form: u,
|
|
339
|
-
...
|
|
355
|
+
...p,
|
|
340
356
|
tabIndex: -1,
|
|
341
357
|
ref: l,
|
|
342
358
|
style: {
|
|
343
|
-
...
|
|
359
|
+
...p.style,
|
|
344
360
|
...C,
|
|
345
361
|
position: "absolute",
|
|
346
362
|
pointerEvents: "none",
|
|
@@ -356,7 +372,7 @@ var $ = "CheckboxBubbleInput", G = f.forwardRef(
|
|
|
356
372
|
}
|
|
357
373
|
);
|
|
358
374
|
G.displayName = $;
|
|
359
|
-
function
|
|
375
|
+
function pe(o) {
|
|
360
376
|
return typeof o == "function";
|
|
361
377
|
}
|
|
362
378
|
function v(o) {
|
|
@@ -365,9 +381,9 @@ function v(o) {
|
|
|
365
381
|
function K(o) {
|
|
366
382
|
return v(o) ? "indeterminate" : o ? "checked" : "unchecked";
|
|
367
383
|
}
|
|
368
|
-
const
|
|
369
|
-
rootUnset:
|
|
370
|
-
root:
|
|
384
|
+
const se = "cfxui__Checkbox__rootUnset__cbb57", ae = "cfxui__Checkbox__root__865aa", de = "cfxui__Checkbox__secondary__95e8e", ue = "cfxui__Checkbox__isChecked__e5d94", le = "cfxui__Checkbox__icon__f9f6b", fe = "cfxui__Checkbox__square__029aa", _e = "cfxui__Checkbox__indicator__2afc0", he = "cfxui__Checkbox__squareFilledIcon__7d9b7", Ce = "cfxui__Checkbox__tickIcon__a7f19", m = {
|
|
385
|
+
rootUnset: se,
|
|
386
|
+
root: ae,
|
|
371
387
|
secondary: de,
|
|
372
388
|
isChecked: ue,
|
|
373
389
|
icon: le,
|
|
@@ -381,9 +397,9 @@ const ae = "cfxui__Checkbox__rootUnset__cbb57", pe = "cfxui__Checkbox__root__865
|
|
|
381
397
|
};
|
|
382
398
|
function ke(o) {
|
|
383
399
|
const {
|
|
384
|
-
id:
|
|
400
|
+
id: p,
|
|
385
401
|
size: c = "medium",
|
|
386
|
-
rootClassName:
|
|
402
|
+
rootClassName: a,
|
|
387
403
|
indicatorClassName: r,
|
|
388
404
|
iconClassName: e,
|
|
389
405
|
checkedClassName: _,
|
|
@@ -409,38 +425,38 @@ function ke(o) {
|
|
|
409
425
|
}, []), z = R.useCallback((E) => {
|
|
410
426
|
N(E), t && t(E);
|
|
411
427
|
}, [t]), X = ie(o), B = P(
|
|
412
|
-
|
|
428
|
+
m.isChecked,
|
|
413
429
|
_
|
|
414
430
|
), J = P(
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
431
|
+
m.root,
|
|
432
|
+
m.rootUnset,
|
|
433
|
+
m[`size-${c}`],
|
|
434
|
+
m[C],
|
|
435
|
+
a,
|
|
420
436
|
{
|
|
421
437
|
[B]: I
|
|
422
438
|
}
|
|
423
439
|
), Q = P(
|
|
424
|
-
|
|
425
|
-
|
|
440
|
+
m.icon,
|
|
441
|
+
m[C],
|
|
426
442
|
e,
|
|
427
443
|
{
|
|
428
|
-
[
|
|
429
|
-
[
|
|
444
|
+
[m.tickIcon]: l === re,
|
|
445
|
+
[m.squareFilledIcon]: l === M
|
|
430
446
|
}
|
|
431
447
|
);
|
|
432
448
|
return /* @__PURE__ */ U(
|
|
433
449
|
L,
|
|
434
450
|
{
|
|
435
451
|
...g,
|
|
436
|
-
id:
|
|
452
|
+
id: p,
|
|
437
453
|
checked: I,
|
|
438
454
|
style: { color: X },
|
|
439
455
|
className: J,
|
|
440
456
|
onClick: S,
|
|
441
457
|
onCheckedChange: z,
|
|
442
458
|
children: [
|
|
443
|
-
k && /* @__PURE__ */
|
|
459
|
+
k && /* @__PURE__ */ s(
|
|
444
460
|
"input",
|
|
445
461
|
{
|
|
446
462
|
type: "hidden",
|
|
@@ -448,12 +464,12 @@ function ke(o) {
|
|
|
448
464
|
value: I ? "on" : ""
|
|
449
465
|
}
|
|
450
466
|
),
|
|
451
|
-
/* @__PURE__ */
|
|
467
|
+
/* @__PURE__ */ s(
|
|
452
468
|
y,
|
|
453
469
|
{
|
|
454
470
|
className: P(
|
|
455
|
-
|
|
456
|
-
|
|
471
|
+
m.square,
|
|
472
|
+
m[C],
|
|
457
473
|
{
|
|
458
474
|
[B]: I
|
|
459
475
|
},
|
|
@@ -461,12 +477,12 @@ function ke(o) {
|
|
|
461
477
|
)
|
|
462
478
|
}
|
|
463
479
|
),
|
|
464
|
-
/* @__PURE__ */
|
|
480
|
+
/* @__PURE__ */ s(H, { className: P(m.indicator, m[C], r), children: /* @__PURE__ */ s(l, { className: Q }) })
|
|
465
481
|
]
|
|
466
482
|
}
|
|
467
483
|
);
|
|
468
484
|
}
|
|
469
|
-
const
|
|
485
|
+
const dr = R.memo(ke);
|
|
470
486
|
export {
|
|
471
|
-
|
|
487
|
+
dr as default
|
|
472
488
|
};
|