@stanfordspezi/spezi-web-design-system
Version:
Stanford Biodesign Digital Health Spezi Web Design System
41 lines (40 loc) • 1.47 kB
JavaScript
import { jsxs as o, jsx as a } from "react/jsx-runtime";
import { c as s } from "./index-2NvaPZWc.mjs";
import { B as c } from "./Button-CvQ4tVYH.mjs";
import { f as i, i as m, C as n } from "./Calendar-CoTnWOyn.mjs";
import { P as d, a as l, g as h } from "./Popover-B34ApLS7.mjs";
import { c as f } from "./createLucideIcon-C8GTh_Qx.mjs";
/**
* @license lucide-react v0.488.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const p = [
["path", { d: "M8 2v4", key: "1cmpym" }],
["path", { d: "M16 2v4", key: "4m81vk" }],
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
["path", { d: "M3 10h18", key: "8toen8" }]
], u = f("calendar", p), C = (e) => {
const { showTimePicker: r } = e, t = e.mode !== void 0 ? e.selected : null;
return /* @__PURE__ */ o(d, { children: [
/* @__PURE__ */ a(l, { asChild: !0, children: /* @__PURE__ */ o(
c,
{
variant: "outline",
className: s(
"bg-surface-primary! w-full! justify-start! text-left! text-sm!",
!t && "text-muted-foreground!"
),
children: [
/* @__PURE__ */ a(u, { className: "size-4" }),
t && m(t) ? i(t, `PPP${r ? " - p" : ""}`) : "Pick a date"
]
}
) }),
/* @__PURE__ */ a(h, { className: "w-auto! p-0!", children: /* @__PURE__ */ a(n, { ...e }) })
] });
};
export {
C as D
};