@koide-labs/ui 0.0.10 → 0.0.12

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.
@@ -8,16 +8,13 @@ function p({ external: e, render: r, ...n }) {
8
8
  return o({
9
9
  defaultTagName: "a",
10
10
  render: r,
11
- props: t(
12
- {
13
- className: s.anchor,
14
- ...e ? {
15
- target: "_blank",
16
- rel: "noreferrer"
17
- } : {}
18
- },
19
- n
20
- )
11
+ props: t(n, {
12
+ className: s.anchor,
13
+ ...e ? {
14
+ target: "_blank",
15
+ rel: "noreferrer"
16
+ } : {}
17
+ })
21
18
  });
22
19
  }
23
20
  export {
@@ -13,4 +13,4 @@ export interface BadgeProps extends Omit<useRender.ComponentProps<"span">, "chil
13
13
  /** Tagline of badge. */
14
14
  tagline?: string;
15
15
  }
16
- export declare function Badge({ icon, name, color, shiny, tagline, render, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare function Badge({ icon, name, color, shiny, tagline, render, className, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
@@ -1,41 +1,43 @@
1
1
  "use client";
2
- import { jsx as e, jsxs as c, Fragment as g } from "react/jsx-runtime";
3
- import { c as p } from "../../clsx-OuTLNxxd.js";
4
- import { Icon as f } from "../icon/index.js";
5
- import { Text as u } from "../text/index.js";
6
- import { Tooltip as _ } from "../tooltip/index.js";
7
- import { View as b } from "../view/index.js";
8
- import { u as h } from "../../useRender-CLx7dR_1.js";
9
- import { m as x } from "../../useRenderElement-DwToLA61.js";
10
- import '../../index8.css';const y = "_badge_sf2gl_1", T = "_badge_shiny_sf2gl_16", t = {
11
- badge: y,
12
- badge_shiny: T
2
+ import { jsx as e, jsxs as g, Fragment as p } from "react/jsx-runtime";
3
+ import { c as f } from "../../clsx-OuTLNxxd.js";
4
+ import { Icon as u } from "../icon/index.js";
5
+ import { Text as _ } from "../text/index.js";
6
+ import { Tooltip as b } from "../tooltip/index.js";
7
+ import { View as h } from "../view/index.js";
8
+ import { u as x } from "../../useRender-CLx7dR_1.js";
9
+ import { m as y } from "../../useRenderElement-DwToLA61.js";
10
+ import '../../index8.css';const T = "_badge_sf2gl_1", j = "_badge_shiny_sf2gl_16", t = {
11
+ badge: T,
12
+ badge_shiny: j
13
13
  };
14
- function R({
14
+ function V({
15
15
  icon: r,
16
16
  name: m,
17
17
  color: n,
18
18
  shiny: i,
19
19
  tagline: s,
20
20
  render: a,
21
- ...l
21
+ className: l,
22
+ ...d
22
23
  }) {
23
- const d = h({
24
+ const c = x({
24
25
  defaultTagName: "span",
25
26
  render: a,
26
- props: x(
27
- {
28
- className: p(t.badge, i && t.badge_shiny),
29
- children: /* @__PURE__ */ c(g, { children: [
30
- r ? /* @__PURE__ */ e(f, { name: r }) : null,
31
- m
32
- ] })
33
- },
34
- l
35
- )
36
- }), o = /* @__PURE__ */ e(b, { color: n, children: d });
37
- return s ? /* @__PURE__ */ e(_, { trigger: o, children: /* @__PURE__ */ e(u, { size: "sm", multiline: !0, children: s }) }) : o;
27
+ props: y(d, {
28
+ className: f(
29
+ t.badge,
30
+ i && t.badge_shiny,
31
+ l
32
+ ),
33
+ children: /* @__PURE__ */ g(p, { children: [
34
+ r ? /* @__PURE__ */ e(u, { name: r }) : null,
35
+ m
36
+ ] })
37
+ })
38
+ }), o = /* @__PURE__ */ e(h, { color: n, children: c });
39
+ return s ? /* @__PURE__ */ e(b, { trigger: o, children: /* @__PURE__ */ e(_, { size: "sm", multiline: !0, children: s }) }) : o;
38
40
  }
39
41
  export {
40
- R as Badge
42
+ V as Badge
41
43
  };
@@ -24,17 +24,11 @@ function R({
24
24
  defaultTagName: "div",
25
25
  render: o,
26
26
  ref: l,
27
- props: _(
28
- {
29
- "aria-hidden": !s,
30
- className: p(
31
- t.collapse,
32
- s && t.collapse_expand
33
- ),
34
- style: { "--collapse-height": `${n}px` }
35
- },
36
- a
37
- )
27
+ props: _(a, {
28
+ "aria-hidden": !s,
29
+ className: p(t.collapse, s && t.collapse_expand),
30
+ style: { "--collapse-height": `${n}px` }
31
+ })
38
32
  });
39
33
  }
40
34
  export {
@@ -24,12 +24,7 @@ function _({
24
24
  const l = i(s), a = d(e || l), u = c({
25
25
  defaultTagName: `h${a}`,
26
26
  render: o,
27
- props: g(
28
- {
29
- className: v.heading
30
- },
31
- r
32
- )
27
+ props: g(r, { className: v.heading })
33
28
  });
34
29
  return /* @__PURE__ */ m(
35
30
  x,
@@ -14,4 +14,4 @@ export interface StatusBannerProps extends Omit<useRender.ComponentProps<"div">,
14
14
  /** Size, defaults to lg */
15
15
  size?: Extract<Size, "md" | "lg">;
16
16
  }
17
- export declare function StatusBanner({ color, icon, title, description, size, render, ...props }: StatusBannerProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare function StatusBanner({ color, icon, title, description, size, render, className, ...props }: StatusBannerProps): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsxs as _, jsx as s } from "react/jsx-runtime";
3
- import { c as m } from "../../clsx-OuTLNxxd.js";
4
- import { Heading as b } from "../heading/index.js";
5
- import { Icon as d } from "../icon/index.js";
6
- import { Text as g } from "../text/index.js";
3
+ import { c as b } from "../../clsx-OuTLNxxd.js";
4
+ import { Heading as d } from "../heading/index.js";
5
+ import { Icon as g } from "../icon/index.js";
6
+ import { Text as p } from "../text/index.js";
7
7
  import { View as i } from "../view/index.js";
8
8
  import '../../index3.css';const t = {
9
9
  "status-banner": "_status-banner_zygt6_1",
@@ -26,32 +26,34 @@ import '../../index3.css';const t = {
26
26
  description: "md"
27
27
  }
28
28
  };
29
- function x({
29
+ function w({
30
30
  color: e,
31
31
  icon: r,
32
32
  title: o,
33
33
  description: l,
34
34
  size: n = "lg",
35
35
  render: u,
36
- ...c
36
+ className: c,
37
+ ...m
37
38
  }) {
38
39
  return /* @__PURE__ */ _(
39
40
  i,
40
41
  {
41
42
  render: u,
42
- ...c,
43
+ ...m,
43
44
  color: e,
44
- className: m(
45
+ className: b(
45
46
  t["status-banner"],
46
47
  t[`status-banner_size_${n}`],
47
- e ? t["status-banner_variant_colorway"] : t["status-banner_variant_neutral"]
48
+ e ? t["status-banner_variant_colorway"] : t["status-banner_variant_neutral"],
49
+ c
48
50
  ),
49
51
  children: [
50
- r ? /* @__PURE__ */ s(d, { name: r, size: a[n].icon }) : null,
52
+ r ? /* @__PURE__ */ s(g, { name: r, size: a[n].icon }) : null,
51
53
  /* @__PURE__ */ _(i, { className: t["status-banner__content"], children: [
52
- /* @__PURE__ */ s(b, { level: 1, size: a[n].title, color: "inherit", children: o }),
54
+ /* @__PURE__ */ s(d, { level: 1, size: a[n].title, color: "inherit", children: o }),
53
55
  /* @__PURE__ */ s(
54
- g,
56
+ p,
55
57
  {
56
58
  className: t["status-banner__description"],
57
59
  multiline: !0,
@@ -66,5 +68,5 @@ function x({
66
68
  );
67
69
  }
68
70
  export {
69
- x as StatusBanner
71
+ w as StatusBanner
70
72
  };
@@ -29,22 +29,19 @@ function P({
29
29
  return m({
30
30
  defaultTagName: "span",
31
31
  render: x,
32
- props: r(
33
- {
34
- className: i(
35
- c.view,
36
- t.text,
37
- t[`text_color_${l}`],
38
- t[`text_size_${s}`],
39
- !e && t["text_clip-line"],
40
- !e && _ > 1 && t["text_clamp-lines"]
41
- ),
42
- style: {
43
- "--text-max-lines": Math.max(_, 1)
44
- }
45
- },
46
- o
47
- )
32
+ props: r(o, {
33
+ className: i(
34
+ c.view,
35
+ t.text,
36
+ t[`text_color_${l}`],
37
+ t[`text_size_${s}`],
38
+ !e && t["text_clip-line"],
39
+ !e && _ > 1 && t["text_clamp-lines"]
40
+ ),
41
+ style: {
42
+ "--text-max-lines": Math.max(_, 1)
43
+ }
44
+ })
48
45
  });
49
46
  }
50
47
  export {