diff --git a/dist/chunk-zs53wnet.js b/dist/chunk-j29ydjfr.js similarity index 98% rename from dist/chunk-zs53wnet.js rename to dist/chunk-j29ydjfr.js index 07e93b5..326a1a4 100644 --- a/dist/chunk-zs53wnet.js +++ b/dist/chunk-j29ydjfr.js @@ -1,7 +1,7 @@ // @bun import { Badge -} from "./chunk-shxcerba.js"; +} from "./chunk-wasbecqm.js"; import { theme } from "./chunk-57mam43k.js"; diff --git a/dist/chunk-shxcerba.js b/dist/chunk-wasbecqm.js similarity index 75% rename from dist/chunk-shxcerba.js rename to dist/chunk-wasbecqm.js index fcb3486..01e9066 100644 --- a/dist/chunk-shxcerba.js +++ b/dist/chunk-wasbecqm.js @@ -4,11 +4,12 @@ import { } from "./chunk-57mam43k.js"; // src/components/Badge.tsx -import { insertNode as _$insertNode } from "@opentui/solid"; import { insert as _$insert } from "@opentui/solid"; import { memo as _$memo } from "@opentui/solid"; import { createComponent as _$createComponent } from "@opentui/solid"; import { effect as _$effect } from "@opentui/solid"; +import { createTextNode as _$createTextNode } from "@opentui/solid"; +import { insertNode as _$insertNode } from "@opentui/solid"; import { setProp as _$setProp } from "@opentui/solid"; import { createElement as _$createElement } from "@opentui/solid"; import { TextAttributes } from "@opentui/core"; @@ -19,8 +20,8 @@ function Badge(props) { const attributes = () => props.bold === false ? undefined : TextAttributes.BOLD; const nerdFonts = () => props.withNerdfont ?? theme.nerdFonts; return (() => { - var _el$ = _$createElement("box"), _el$3 = _$createElement("text"); - _$insertNode(_el$, _el$3); + var _el$ = _$createElement("box"), _el$4 = _$createElement("text"); + _$insertNode(_el$, _el$4); _$setProp(_el$, "flexDirection", "row"); _$insert(_el$, _$createComponent(Show, { get when() { @@ -28,6 +29,7 @@ function Badge(props) { }, get children() { var _el$2 = _$createElement("text"); + _$insertNode(_el$2, _$createTextNode(`\uE0B6`)); _$effect((_p$) => { var _v$ = props.color, _v$2 = backgroundColor(); _v$ !== _p$.e && (_p$.e = _$setProp(_el$2, "fg", _v$, _p$.e)); @@ -39,8 +41,8 @@ function Badge(props) { }); return _el$2; } - }), _el$3); - _$insert(_el$3, (() => { + }), _el$4); + _$insert(_el$4, (() => { var _c$ = _$memo(() => !!nerdFonts()); return () => _c$() ? props.label : ` ${props.label} `; })()); @@ -49,24 +51,25 @@ function Badge(props) { return nerdFonts(); }, get children() { - var _el$4 = _$createElement("text"); + var _el$5 = _$createElement("text"); + _$insertNode(_el$5, _$createTextNode(`\uE0B4`)); _$effect((_p$) => { var _v$3 = props.color, _v$4 = backgroundColor(); - _v$3 !== _p$.e && (_p$.e = _$setProp(_el$4, "fg", _v$3, _p$.e)); - _v$4 !== _p$.t && (_p$.t = _$setProp(_el$4, "bg", _v$4, _p$.t)); + _v$3 !== _p$.e && (_p$.e = _$setProp(_el$5, "fg", _v$3, _p$.e)); + _v$4 !== _p$.t && (_p$.t = _$setProp(_el$5, "bg", _v$4, _p$.t)); return _p$; }, { e: undefined, t: undefined }); - return _el$4; + return _el$5; } }), null); _$effect((_p$) => { var _v$5 = textColor(), _v$6 = props.color, _v$7 = attributes(); - _v$5 !== _p$.e && (_p$.e = _$setProp(_el$3, "fg", _v$5, _p$.e)); - _v$6 !== _p$.t && (_p$.t = _$setProp(_el$3, "bg", _v$6, _p$.t)); - _v$7 !== _p$.a && (_p$.a = _$setProp(_el$3, "attributes", _v$7, _p$.a)); + _v$5 !== _p$.e && (_p$.e = _$setProp(_el$4, "fg", _v$5, _p$.e)); + _v$6 !== _p$.t && (_p$.t = _$setProp(_el$4, "bg", _v$6, _p$.t)); + _v$7 !== _p$.a && (_p$.a = _$setProp(_el$4, "attributes", _v$7, _p$.a)); return _p$; }, { e: undefined, diff --git a/dist/components/Badge.js b/dist/components/Badge.js index 265e01e..bb43814 100644 --- a/dist/components/Badge.js +++ b/dist/components/Badge.js @@ -1,7 +1,7 @@ // @bun import { Badge -} from "../chunk-shxcerba.js"; +} from "../chunk-wasbecqm.js"; import"../chunk-57mam43k.js"; import"../chunk-ergc99dh.js"; import"../chunk-7f8jagy5.js"; diff --git a/dist/components/Toggle.js b/dist/components/Toggle.js index 8c37d98..1bac187 100644 --- a/dist/components/Toggle.js +++ b/dist/components/Toggle.js @@ -1,8 +1,8 @@ // @bun import { Toggle -} from "../chunk-zs53wnet.js"; -import"../chunk-shxcerba.js"; +} from "../chunk-j29ydjfr.js"; +import"../chunk-wasbecqm.js"; import"../chunk-57mam43k.js"; import"../chunk-ergc99dh.js"; import"../chunk-7f8jagy5.js"; diff --git a/dist/components/index.js b/dist/components/index.js index 05fa14d..e969067 100644 --- a/dist/components/index.js +++ b/dist/components/index.js @@ -10,7 +10,7 @@ import { } from "../chunk-g7p0f33m.js"; import { Toggle -} from "../chunk-zs53wnet.js"; +} from "../chunk-j29ydjfr.js"; import { MinSizeGuard } from "../chunk-nr74cgcr.js"; @@ -23,7 +23,7 @@ import { } from "../chunk-4j2gzwtd.js"; import { Badge -} from "../chunk-shxcerba.js"; +} from "../chunk-wasbecqm.js"; import { ProgressBar } from "../chunk-ae0jkf2z.js";