@transkripid/flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS - Transkrip.id fork
34 lines (33 loc) • 1.33 kB
JavaScript
import { jsx as p, jsxs as b } from "react/jsx-runtime";
import { c as h } from "react/compiler-runtime";
import { twMerge as N } from "tailwind-merge";
import { mergeDeep as g } from "../../helpers/merge-deep.mjs";
import { getTheme as k } from "../../theme-store/index.mjs";
const w = (f) => {
const e = h(20);
let t, l, i, m, o;
e[0] !== f ? ({
children: l,
className: i,
icon: t,
theme: o,
...m
} = f, e[0] = f, e[1] = t, e[2] = l, e[3] = i, e[4] = m, e[5] = o) : (t = e[1], l = e[2], i = e[3], m = e[4], o = e[5]);
let c;
e[6] !== o ? (c = o === void 0 ? {} : o, e[6] = o, e[7] = c) : c = e[7];
const n = c;
let r, s;
e[8] !== i || e[9] !== n ? (s = g(k().kbd, n), r = N(s.root.base, i), e[8] = i, e[9] = n, e[10] = r, e[11] = s) : (r = e[10], s = e[11]);
let a;
e[12] !== t || e[13] !== s ? (a = t && /* @__PURE__ */ p(t, { className: s.root.icon, "data-testid": "flowbite-kbd-icon" }), e[12] = t, e[13] = s, e[14] = a) : a = e[14];
let d;
return e[15] !== l || e[16] !== m || e[17] !== r || e[18] !== a ? (d = /* @__PURE__ */ b("span", { className: r, "data-testid": "flowbite-kbd", ...m, children: [
a,
l
] }), e[15] = l, e[16] = m, e[17] = r, e[18] = a, e[19] = d) : d = e[19], d;
};
w.displayName = "Kbd";
export {
w as Kbd
};
//# sourceMappingURL=Kbd.mjs.map