UNPKG

@transkripid/flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS - Transkrip.id fork

57 lines (56 loc) 2.3 kB
import { jsx as u } from "react/jsx-runtime"; import { c as N } from "react/compiler-runtime"; import { twMerge as b } from "tailwind-merge"; import { mergeDeep as v } from "../../helpers/merge-deep.mjs"; import { getTheme as y } from "../../theme-store/index.mjs"; const P = (p) => { const e = N(19); let n, o, l, i, t, s; e[0] !== p ? ({ active: n, children: o, className: l, onClick: i, theme: s, ...t } = p, e[0] = p, e[1] = n, e[2] = o, e[3] = l, e[4] = i, e[5] = t, e[6] = s) : (n = e[1], o = e[2], l = e[3], i = e[4], t = e[5], s = e[6]); let c; e[7] !== s ? (c = s === void 0 ? {} : s, e[7] = s, e[8] = c) : c = e[8]; const f = c; let r; e[9] !== f ? (r = v(y().pagination, f), e[9] = f, e[10] = r) : r = e[10]; const g = n && r.pages.selector.active; let m; e[11] !== l || e[12] !== g ? (m = b(g, l), e[11] = l, e[12] = g, e[13] = m) : m = e[13]; let a; return e[14] !== o || e[15] !== i || e[16] !== t || e[17] !== m ? (a = /* @__PURE__ */ u("button", { type: "button", className: m, onClick: i, ...t, children: o }), e[14] = o, e[15] = i, e[16] = t, e[17] = m, e[18] = a) : a = e[18], a; }; P.displayName = "Pagination.Button"; const T = (p) => { const e = N(20); let n, o, l, i, t, s; e[0] !== p ? ({ children: n, className: o, onClick: l, theme: t, disabled: s, ...i } = p, e[0] = p, e[1] = n, e[2] = o, e[3] = l, e[4] = i, e[5] = t, e[6] = s) : (n = e[1], o = e[2], l = e[3], i = e[4], t = e[5], s = e[6]); let c; e[7] !== t ? (c = t === void 0 ? {} : t, e[7] = t, e[8] = c) : c = e[8]; const f = c, r = s === void 0 ? !1 : s; let d; e[9] !== f ? (d = v(y().pagination, f), e[9] = f, e[10] = d) : d = e[10]; const m = r && d.pages.selector.disabled; let a; e[11] !== o || e[12] !== m ? (a = b(m, o), e[11] = o, e[12] = m, e[13] = a) : a = e[13]; let h; return e[14] !== n || e[15] !== r || e[16] !== l || e[17] !== i || e[18] !== a ? (h = /* @__PURE__ */ u("button", { type: "button", className: a, disabled: r, onClick: l, ...i, children: n }), e[14] = n, e[15] = r, e[16] = l, e[17] = i, e[18] = a, e[19] = h) : h = e[19], h; }; T.displayName = "Pagination.Navigation"; export { P as PaginationButton, T as PaginationNavigation }; //# sourceMappingURL=PaginationButton.mjs.map