@koide-labs/ui 0.0.13 → 0.0.14

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.
@@ -9,4 +9,4 @@ export type IconButtonProps = ViewProps<"button"> & {
9
9
  /** What size should the IconButton be. Defaults to "md". */
10
10
  size?: Size;
11
11
  };
12
- export declare function IconButton({ icon, alt, size, render, ...props }: IconButtonProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare function IconButton({ icon, alt, size, render, className, ...props }: IconButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
- import { c as s } from "../../clsx-OuTLNxxd.js";
4
- import { Icon as u } from "../icon/index.js";
5
- import { View as b } from "../view/index.js";
6
- import { B as m } from "../../Button-DrPFFzo7.js";
3
+ import { c as u } from "../../clsx-OuTLNxxd.js";
4
+ import { Icon as b } from "../icon/index.js";
5
+ import { View as m } from "../view/index.js";
6
+ import { B as r } from "../../Button-DrPFFzo7.js";
7
7
  import '../../index13.css';const _ = {
8
8
  "icon-button": "_icon-button_1xtat_1",
9
9
  "icon-button_size_sm": "_icon-button_size_sm_1xtat_11",
@@ -13,33 +13,35 @@ import '../../index13.css';const _ = {
13
13
  "icon-button_size_2xl": "_icon-button_size_2xl_1xtat_27",
14
14
  "icon-button_size_3xl": "_icon-button_size_3xl_1xtat_31"
15
15
  };
16
- function d({
16
+ function f({
17
17
  icon: i,
18
18
  alt: e,
19
19
  size: o = "md",
20
20
  render: c,
21
+ className: s,
21
22
  ...n
22
23
  }) {
23
24
  return /* @__PURE__ */ t(
24
- b,
25
+ m,
25
26
  {
26
27
  interactive: !0,
27
28
  render: /* @__PURE__ */ t(
28
- m,
29
+ r,
29
30
  {
30
- className: s(
31
+ className: u(
31
32
  _["icon-button"],
32
- _[`icon-button_size_${o}`]
33
+ _[`icon-button_size_${o}`],
34
+ s
33
35
  ),
34
36
  focusableWhenDisabled: !!n.loading,
35
37
  render: c
36
38
  }
37
39
  ),
38
40
  ...n,
39
- children: /* @__PURE__ */ t(u, { name: i, size: o, alt: e })
41
+ children: /* @__PURE__ */ t(b, { name: i, size: o, alt: e })
40
42
  }
41
43
  );
42
44
  }
43
45
  export {
44
- d as IconButton
46
+ f as IconButton
45
47
  };