@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.
@@ -1,14 +1,14 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import i from "react";
3
- import { Icon as f } from "../Icon/Icon.js";
4
- import { clsx as d } from "../../utils/clsx.js";
5
- const p = "cfxui__IconButton__unset__de209", x = "cfxui__IconButton__root__5af4a", I = "cfxui__IconButton__medium__52958", B = "cfxui__IconButton__large__6d5d8", o = {
6
- unset: p,
7
- root: x,
8
- medium: I,
9
- large: B
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 b(n) {
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
- ...l
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: d(o.unset, o.root, c, o[_]),
30
+ className: I(o.unset, o.root, c, o[_]),
28
31
  onClick: a,
29
32
  disabled: r,
30
33
  "aria-label": s,
31
- children: /* @__PURE__ */ t(f, { as: "span", name: e, ...l, color: m, size: u })
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 h = i.memo(b);
50
+ const C = p.memo(k);
36
51
  export {
37
- h as default
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, R as _t, u as Ne, A as St, a as wt, h as xt, b as yt, d as Ct, F as It, D as Tt, C as bt, e as Pt } from "../../Combination-DFb92tMK.js";
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";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cfx-dev/ui-components",
3
3
  "private": false,
4
- "version": "4.3.10",
4
+ "version": "4.3.11",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "main": "dist/main.js",