import { n as cn } from "./utils-DXzSsU1e.js";
import { createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, renderSlot, unref } from "vue";
//#region src/components/ui/table/Table.vue?vue&type=script&setup=true&lang.ts
var _hoisted_1 = { class: "relative w-full overflow-auto" };
//#endregion
//#region src/components/ui/table/Table.vue
var Table_default = /* @__PURE__ */ defineComponent({
	__name: "Table",
	props: { class: { type: [
		Boolean,
		null,
		String,
		Object,
		Array
	] } },
	setup(__props) {
		const props = __props;
		return (_ctx, _cache) => {
			return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("table", { class: normalizeClass(unref(cn)("w-full caption-bottom text-sm", props.class)) }, [renderSlot(_ctx.$slots, "default")], 2)]);
		};
	}
});
//#endregion
//#region src/components/ui/table/TableBody.vue
var TableBody_default = /* @__PURE__ */ defineComponent({
	__name: "TableBody",
	props: { class: { type: [
		Boolean,
		null,
		String,
		Object,
		Array
	] } },
	setup(__props) {
		const props = __props;
		return (_ctx, _cache) => {
			return openBlock(), createElementBlock("tbody", { class: normalizeClass(unref(cn)("[&_tr:last-child]:border-0", props.class)) }, [renderSlot(_ctx.$slots, "default")], 2);
		};
	}
});
//#endregion
//#region src/components/ui/table/TableCaption.vue
var TableCaption_default = /* @__PURE__ */ defineComponent({
	__name: "TableCaption",
	props: { class: { type: [
		Boolean,
		null,
		String,
		Object,
		Array
	] } },
	setup(__props) {
		const props = __props;
		return (_ctx, _cache) => {
			return openBlock(), createElementBlock("caption", { class: normalizeClass(unref(cn)("mt-4 text-sm text-muted-foreground", props.class)) }, [renderSlot(_ctx.$slots, "default")], 2);
		};
	}
});
//#endregion
//#region src/components/ui/table/TableCell.vue
var TableCell_default = /* @__PURE__ */ defineComponent({
	__name: "TableCell",
	props: { class: { type: [
		Boolean,
		null,
		String,
		Object,
		Array
	] } },
	setup(__props) {
		const props = __props;
		return (_ctx, _cache) => {
			return openBlock(), createElementBlock("td", { class: normalizeClass(unref(cn)("p-4 align-middle [&:has([role=checkbox])]:pr-0", props.class)) }, [renderSlot(_ctx.$slots, "default")], 2);
		};
	}
});
//#endregion
//#region src/components/ui/table/TableFooter.vue
var TableFooter_default = /* @__PURE__ */ defineComponent({
	__name: "TableFooter",
	props: { class: { type: [
		Boolean,
		null,
		String,
		Object,
		Array
	] } },
	setup(__props) {
		const props = __props;
		return (_ctx, _cache) => {
			return openBlock(), createElementBlock("tfoot", { class: normalizeClass(unref(cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", props.class)) }, [renderSlot(_ctx.$slots, "default")], 2);
		};
	}
});
//#endregion
//#region src/components/ui/table/TableHead.vue
var TableHead_default = /* @__PURE__ */ defineComponent({
	__name: "TableHead",
	props: { class: { type: [
		Boolean,
		null,
		String,
		Object,
		Array
	] } },
	setup(__props) {
		const props = __props;
		return (_ctx, _cache) => {
			return openBlock(), createElementBlock("th", { class: normalizeClass(unref(cn)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", props.class)) }, [renderSlot(_ctx.$slots, "default")], 2);
		};
	}
});
//#endregion
//#region src/components/ui/table/TableHeader.vue
var TableHeader_default = /* @__PURE__ */ defineComponent({
	__name: "TableHeader",
	props: { class: { type: [
		Boolean,
		null,
		String,
		Object,
		Array
	] } },
	setup(__props) {
		const props = __props;
		return (_ctx, _cache) => {
			return openBlock(), createElementBlock("thead", { class: normalizeClass(unref(cn)("[&_tr]:border-b", props.class)) }, [renderSlot(_ctx.$slots, "default")], 2);
		};
	}
});
//#endregion
//#region src/components/ui/table/TableRow.vue
var TableRow_default = /* @__PURE__ */ defineComponent({
	__name: "TableRow",
	props: { class: { type: [
		Boolean,
		null,
		String,
		Object,
		Array
	] } },
	setup(__props) {
		const props = __props;
		return (_ctx, _cache) => {
			return openBlock(), createElementBlock("tr", { class: normalizeClass(unref(cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", props.class)) }, [renderSlot(_ctx.$slots, "default")], 2);
		};
	}
});
//#endregion
export { TableCell_default as a, Table_default as c, TableFooter_default as i, TableHeader_default as n, TableCaption_default as o, TableHead_default as r, TableBody_default as s, TableRow_default as t };

//# sourceMappingURL=table-d-2vl8Cn.js.map