@koide-labs/ui 0.0.12 → 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.
@@ -1,5 +1,5 @@
1
1
  import { Dialog as DialogPrimitive } from '@base-ui/react/dialog';
2
- import { Command as CommandPrimitive } from 'cmdk';
2
+ import { Command as CommandPrimitive } from '@npham-dev/cmdk';
3
3
  import { ComponentProps } from 'react';
4
4
  import { BaseDialogProps } from '../dialog';
5
5
  import { IconName } from '../icon/icon-names';
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsx as E, jsxs as oe, Fragment as Qe } from "react/jsx-runtime";
3
- import { c as We } from "../../clsx-OuTLNxxd.js";
4
3
  import * as a from "react";
5
4
  import { useState as Qt } from "react";
6
5
  import { c as ie, u as q, P as G } from "../../index-CeuccO-T.js";
7
6
  import * as Jt from "react-dom";
8
7
  import en from "react-dom";
8
+ import { c as We } from "../../clsx-OuTLNxxd.js";
9
9
  import { textify as tn } from "../../-utils.js";
10
10
  import { Dialog as nn } from "../dialog/index.js";
11
11
  import { Icon as vt } from "../icon/index.js";
@@ -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
  };
@@ -4,7 +4,7 @@ import { c as Re } from "../../clsx-OuTLNxxd.js";
4
4
  import { Heading as be } from "../heading/index.js";
5
5
  import { Surface as Se } from "../surface/index.js";
6
6
  import { Text as ye } from "../text/index.js";
7
- import { t as ae, T as Oe } from "../../tooltip-arrow-C1qXdi5T.js";
7
+ import { t as ae, T as Oe } from "../../tooltip-arrow-cs6vjjqZ.js";
8
8
  import { View as Ie } from "../view/index.js";
9
9
  import { R as xe, P as Ne, c as x, h as Me, d as Fe, e as de, u as _e, i as ke, f as we, j as Ae, k as De, p as ee, t as He } from "../../transitions.module-CWX8e5cx.js";
10
10
  import * as n from "react";
@@ -2,7 +2,7 @@
2
2
  import { jsx as P, jsxs as q } from "react/jsx-runtime";
3
3
  import { c as pe } from "../../clsx-OuTLNxxd.js";
4
4
  import { Surface as fe } from "../surface/index.js";
5
- import { t as z, T as me } from "../../tooltip-arrow-C1qXdi5T.js";
5
+ import { t as z, T as me } from "../../tooltip-arrow-cs6vjjqZ.js";
6
6
  import { d as Pe, e as Ce, f as we, p as U, t as ge } from "../../transitions.module-CWX8e5cx.js";
7
7
  import * as e from "react";
8
8
  import * as ve from "react-dom";