UNPKG

@anoki/fse-ui

Version:

FSE UI components library

38 lines (37 loc) 1.82 kB
import { j as r } from "./index.es237.js"; import { Col as n } from "./index.es61.js"; import './components/ui/DoctorSchedule/DoctorSchedule.css';/* empty css */ import { clsx as x } from "./index.es238.js"; const h = ({ labelClassName: t = "fw-bold text-slate-28 mb-x8 fs-custom", leftBorderVisible: a = !1, ...e }) => /* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsxs("div", { className: a ? "ui-border-lg" : "", children: [ /* @__PURE__ */ r.jsx("h3", { className: x("text-align-left", t), children: e == null ? void 0 : e.label }), /* @__PURE__ */ r.jsx("div", { role: "table", className: "ui-card-doctor-table", children: e == null ? void 0 : e.days.map((l, o) => { var i; return /* @__PURE__ */ r.jsxs("div", { role: "row", className: "ui-card-doctor-row", children: [ /* @__PURE__ */ r.jsx("div", { className: "fs-6 fw-regular text-slate-28", role: "rowheader", children: l.label }), /* @__PURE__ */ r.jsxs( n, { role: "cell", className: "fs-6 fw-regular text-slate-28", children: [ ((i = l == null ? void 0 : l.slots) == null ? void 0 : i.length) === 0 && /* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsx("span", { "aria-hidden": "true", children: "-" }) }), l.slots.map((s, m) => /* @__PURE__ */ r.jsxs("div", { children: [ /* @__PURE__ */ r.jsx("time", { dateTime: s.from, children: s.from }), /* @__PURE__ */ r.jsx("span", { "aria-hidden": "true", children: " - " }), /* @__PURE__ */ r.jsx("time", { dateTime: s.to, children: s.to }) ] }, `slot-${m}`)) ] }, `cell-${o}` ) ] }, l.label); }) }) ] }) }); export { h as DoctorSchedule }; //# sourceMappingURL=index.es328.js.map