@cfx-dev/ui-components 4.3.10 → 4.3.11
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-DFb92tMK.js → Combination-2dfXEDc9.js} +3 -3
- package/dist/DropdownContent-Robn2rha.js +984 -0
- package/dist/assets/all_css.css +1 -0
- package/dist/assets/css/DropdownContent.css +1 -0
- package/dist/assets/css/DropdownSelect.css +1 -1
- package/dist/components/Button/Button.js +29 -27
- package/dist/components/DropdownContent/DropdownContent.d.ts +19 -0
- package/dist/components/DropdownContent/DropdownContent.js +9 -0
- package/dist/components/DropdownContent/index.d.ts +2 -0
- package/dist/components/DropdownContent/index.js +5 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +11 -0
- package/dist/components/DropdownMenu/DropdownMenu.js +33 -0
- package/dist/components/DropdownMenu/index.d.ts +2 -0
- package/dist/components/DropdownMenu/index.js +4 -0
- package/dist/components/DropdownSelect/DropdownSelect.js +56 -995
- package/dist/components/IconButton/IconButton.js +29 -14
- package/dist/components/Select/Select.js +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { Icon as
|
|
4
|
-
import { clsx as
|
|
5
|
-
const
|
|
6
|
-
unset:
|
|
7
|
-
root:
|
|
8
|
-
medium:
|
|
9
|
-
large:
|
|
2
|
+
import p from "react";
|
|
3
|
+
import { Icon as x } from "../Icon/Icon.js";
|
|
4
|
+
import { clsx as I } from "../../utils/clsx.js";
|
|
5
|
+
const B = "cfxui__IconButton__unset__de209", b = "cfxui__IconButton__root__5af4a", y = "cfxui__IconButton__medium__52958", g = "cfxui__IconButton__large__6d5d8", o = {
|
|
6
|
+
unset: B,
|
|
7
|
+
root: b,
|
|
8
|
+
medium: y,
|
|
9
|
+
large: g
|
|
10
10
|
};
|
|
11
|
-
function
|
|
11
|
+
function k(n) {
|
|
12
12
|
const {
|
|
13
13
|
name: e,
|
|
14
14
|
onClick: a,
|
|
@@ -18,21 +18,36 @@ function b(n) {
|
|
|
18
18
|
areaSize: _ = "small",
|
|
19
19
|
size: u = "xxsmall",
|
|
20
20
|
color: m = "primary",
|
|
21
|
-
|
|
21
|
+
colorToken: i,
|
|
22
|
+
opacity: l,
|
|
23
|
+
luminance: f,
|
|
24
|
+
...d
|
|
22
25
|
} = n;
|
|
23
26
|
return /* @__PURE__ */ t(
|
|
24
27
|
"button",
|
|
25
28
|
{
|
|
26
29
|
type: "button",
|
|
27
|
-
className:
|
|
30
|
+
className: I(o.unset, o.root, c, o[_]),
|
|
28
31
|
onClick: a,
|
|
29
32
|
disabled: r,
|
|
30
33
|
"aria-label": s,
|
|
31
|
-
|
|
34
|
+
...d,
|
|
35
|
+
children: /* @__PURE__ */ t(
|
|
36
|
+
x,
|
|
37
|
+
{
|
|
38
|
+
as: "span",
|
|
39
|
+
name: e,
|
|
40
|
+
color: m,
|
|
41
|
+
size: u,
|
|
42
|
+
colorToken: i,
|
|
43
|
+
opacity: l,
|
|
44
|
+
luminance: f
|
|
45
|
+
}
|
|
46
|
+
)
|
|
32
47
|
}
|
|
33
48
|
);
|
|
34
49
|
}
|
|
35
|
-
const
|
|
50
|
+
const C = p.memo(k);
|
|
36
51
|
export {
|
|
37
|
-
|
|
52
|
+
C as default
|
|
38
53
|
};
|
|
@@ -5,7 +5,7 @@ import { R as ft, r as De } from "../../index-Cl_RnsqN.js";
|
|
|
5
5
|
import { c as Ee } from "../../index-rKs9bXHr.js";
|
|
6
6
|
import { a as K, P as N, d as Oe, c as mt, u as B, e as P, b as ht } from "../../index-DCuJlMqr.js";
|
|
7
7
|
import { u as gt, c as vt } from "../../index-BMU9X4M-.js";
|
|
8
|
-
import { c as Le,
|
|
8
|
+
import { c as Le, d as _t, u as Ne, A as St, a as wt, h as xt, b as yt, R as Ct, F as It, D as Tt, C as bt, e as Pt } from "../../Combination-2dfXEDc9.js";
|
|
9
9
|
import { u as Nt } from "../../index-BZPx6jYI.js";
|
|
10
10
|
import { Icon as Rt } from "../Icon/Icon.js";
|
|
11
11
|
import { clsx as xe } from "../../utils/clsx.js";
|