@cfx-dev/ui-components 2.0.3 → 2.0.5

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.
Files changed (35) hide show
  1. package/dist/assets/Button.css +1 -1
  2. package/dist/assets/InfoPanel.css +1 -1
  3. package/dist/assets/Input.css +1 -1
  4. package/dist/assets/InputDropzone.css +1 -1
  5. package/dist/assets/NavList.css +1 -1
  6. package/dist/assets/Radio.css +1 -1
  7. package/dist/assets/RichInput.css +1 -1
  8. package/dist/assets/Select.css +1 -1
  9. package/dist/assets/Switch.css +1 -1
  10. package/dist/assets/Table.css +1 -1
  11. package/dist/assets/Tabular.css +1 -1
  12. package/dist/assets/Textarea.css +1 -1
  13. package/dist/assets/ToggleGroup.css +1 -1
  14. package/dist/assets/global.css +1 -1
  15. package/dist/components/Button/Button.d.ts +3 -3
  16. package/dist/components/Button/Button.js +70 -68
  17. package/dist/components/Button/ButtonShowcase.js +43 -21
  18. package/dist/components/InfoPanel/InfoPanel.js +32 -32
  19. package/dist/components/Input/Input.js +46 -46
  20. package/dist/components/Input/RichInput.js +21 -21
  21. package/dist/components/InputDropzone/InputDropzone.js +1 -1
  22. package/dist/components/NavList/NavList.js +14 -14
  23. package/dist/components/Radio/Radio.js +20 -20
  24. package/dist/components/Select/Select.js +757 -703
  25. package/dist/components/Switch/Switch.js +21 -21
  26. package/dist/components/Table/Table.js +67 -48
  27. package/dist/components/Table/TableShowcase.d.ts +5 -0
  28. package/dist/components/Table/TableShowcase.js +55 -0
  29. package/dist/components/Tabular/Tabular.js +44 -44
  30. package/dist/components/Textarea/Textarea.js +25 -25
  31. package/dist/components/ToggleGroup/ToggleGroup.js +28 -28
  32. package/dist/styles-scss/_ui.scss +10 -1
  33. package/dist/styles-scss/tokens.scss +38 -24
  34. package/package.json +1 -1
  35. package/dist/iconBase-C6DV9qqL.js +0 -60
@@ -1,33 +1,33 @@
1
- import { jsxs as l, jsx as i } from "react/jsx-runtime";
2
- import d from "react";
3
- import { Interactive as _ } from "../Interactive/Interactive.js";
4
- import { clsx as v } from "../../utils/clsx.js";
1
+ import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
+ import v from "react";
3
+ import { Interactive as d } from "../Interactive/Interactive.js";
4
+ import { clsx as _ } from "../../utils/clsx.js";
5
5
  import { noop as f } from "../../utils/functional.js";
6
- import { getValue as c } from "../../utils/getValue.js";
7
- import '../../assets/NavList.css';const p = "_root_14z0z_1", z = "_item_14z0z_5", N = "_active_14z0z_20", h = "_icon_14z0z_30", t = {
6
+ import { getValue as i } from "../../utils/getValue.js";
7
+ import '../../assets/NavList.css';const p = "_root_u7cv2_1", u = "_item_u7cv2_5", N = "_active_u7cv2_20", h = "_icon_u7cv2_30", c = {
8
8
  root: p,
9
- item: z,
9
+ item: u,
10
10
  active: N,
11
11
  icon: h
12
- }, g = d.forwardRef(function(e, r) {
12
+ }, k = v.forwardRef(function(e, r) {
13
13
  const {
14
14
  items: n,
15
15
  activeItemId: s,
16
16
  onActivate: a = f
17
17
  } = e, m = n.map((o) => /* @__PURE__ */ l(
18
- _,
18
+ d,
19
19
  {
20
- className: v(t.item, { [t.active]: o.id === s }),
20
+ className: _(c.item, { [c.active]: o.id === s }),
21
21
  onClick: () => a(o.id),
22
22
  children: [
23
- !!o.icon && /* @__PURE__ */ i("div", { className: t.icon, children: c(o.icon) }),
24
- /* @__PURE__ */ i("div", { className: t.label, children: c(o.label) })
23
+ !!o.icon && /* @__PURE__ */ t("div", { className: c.icon, children: i(o.icon) }),
24
+ /* @__PURE__ */ t("div", { className: c.label, children: i(o.label) })
25
25
  ]
26
26
  },
27
27
  o.id
28
28
  ));
29
- return /* @__PURE__ */ i("div", { ref: r, className: t.root, children: m });
29
+ return /* @__PURE__ */ t("div", { ref: r, className: c.root, children: m });
30
30
  });
31
31
  export {
32
- g as NavList
32
+ k as NavList
33
33
  };
@@ -1,30 +1,30 @@
1
- import { jsxs as f, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as g, jsx as o } from "react/jsx-runtime";
2
2
  import s from "react";
3
- import { clsx as g } from "../../utils/clsx.js";
4
- import '../../assets/Radio.css';const h = "_root_e4x8g_1", u = "_indicator_e4x8g_29", p = "_disabled_e4x8g_44", e = {
5
- root: h,
6
- "size-normal": "_size-normal_e4x8g_19",
7
- "size-large": "_size-large_e4x8g_22",
8
- indicator: u,
9
- disabled: p
3
+ import { clsx as h } from "../../utils/clsx.js";
4
+ import '../../assets/Radio.css';const u = "_root_1yglr_1", p = "_indicator_1yglr_29", x = "_disabled_1yglr_44", e = {
5
+ root: u,
6
+ "size-normal": "_size-normal_1yglr_19",
7
+ "size-large": "_size-large_1yglr_22",
8
+ indicator: p,
9
+ disabled: x
10
10
  };
11
- let i = 1;
12
- function I(l) {
11
+ let r = 1;
12
+ function C(n) {
13
13
  const {
14
14
  checked: a,
15
- onChange: r,
15
+ onChange: i,
16
16
  label: d,
17
17
  size: c = "normal",
18
18
  className: _,
19
19
  disabled: t = !1
20
- } = l, m = s.useRef(i);
20
+ } = n, m = s.useRef(r);
21
21
  s.useEffect(() => {
22
- i += 1;
22
+ r += 1;
23
23
  }, []);
24
- const x = () => {
25
- r(!a);
26
- }, n = s.useId(), b = g(e.root, _, e[`size-${c}`], { [e.disabled]: t });
27
- return /* @__PURE__ */ f("label", { className: b, htmlFor: n, children: [
24
+ const b = () => {
25
+ i(!a);
26
+ }, l = s.useId(), f = h(e.root, _, e[`size-${c}`], { [e.disabled]: t });
27
+ return /* @__PURE__ */ g("label", { className: f, htmlFor: l, children: [
28
28
  /* @__PURE__ */ o(
29
29
  "input",
30
30
  {
@@ -32,8 +32,8 @@ function I(l) {
32
32
  tabIndex: m.current,
33
33
  checked: a,
34
34
  disabled: t,
35
- onChange: x,
36
- id: n
35
+ onChange: b,
36
+ id: l
37
37
  }
38
38
  ),
39
39
  /* @__PURE__ */ o("div", { className: e.indicator }),
@@ -41,5 +41,5 @@ function I(l) {
41
41
  ] });
42
42
  }
43
43
  export {
44
- I as Radio
44
+ C as Radio
45
45
  };