{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "date-range-picker-presets",
  "title": "Date Range Picker with Presets",
  "description": "A dashboard date range control: a trigger that shows the range and its comparison, a popover with presets, typed start and end dates, a two-month calendar where the range previews as you hover, future days disabled, a compare-to period drawn under the calendar, and Apply updating the numbers and chart behind it.",
  "dependencies": [
    "motion",
    "clsx",
    "tailwind-merge"
  ],
  "files": [
    {
      "path": "registry/new-york/date-range-picker-presets/date-range-picker-presets.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { AnimatePresence, motion, useReducedMotion } from \"motion/react\";\nimport { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nfunction cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs));\n}\n\ntype Range = { start: string; end: string };\ntype Compare = \"none\" | \"previous\" | \"year\";\nexport interface DateRangeValue extends Range {\n  compare: Compare;\n}\n\nexport interface DateRangePickerPresetsProps {\n  today?: string;\n  defaultValue?: DateRangeValue;\n  defaultOpen?: boolean;\n  onApply?: (value: DateRangeValue & { compareRange: Range | null }) => void;\n  theme?: \"dark\" | \"light\";\n  className?: string;\n}\n\nconst PALETTES = {\n  dark: { bg: \"#0A0A0A\", text: \"#F5F4F1\", muted: \"rgba(245,244,241,0.62)\", faint: \"rgba(245,244,241,0.32)\", panel: \"#141414\", side: \"#101010\", border: \"rgba(255,255,255,0.09)\", band: \"rgba(96,165,250,0.16)\", edge: \"#60A5FA\", edgeText: \"#0A0A0A\", cmp: \"rgba(251,191,36,0.55)\", hover: \"rgba(255,255,255,0.06)\", on: \"#F5F4F1\", onText: \"#0A0A0A\", red: \"#F87171\", green: \"#4ADE80\", ring: \"rgba(245,244,241,0.6)\", input: \"#0D0D0D\" },\n  light: { bg: \"#FAFAF8\", text: \"#0A0A0A\", muted: \"rgba(10,10,10,0.62)\", faint: \"rgba(10,10,10,0.32)\", panel: \"#FFFFFF\", side: \"#FAFAF8\", border: \"rgba(10,10,10,0.09)\", band: \"rgba(37,99,235,0.1)\", edge: \"#2563EB\", edgeText: \"#FFFFFF\", cmp: \"rgba(180,83,9,0.55)\", hover: \"rgba(10,10,10,0.05)\", on: \"#0A0A0A\", onText: \"#FAFAF8\", red: \"#DC2626\", green: \"#15803D\", ring: \"rgba(10,10,10,0.5)\", input: \"#FAFAF8\" },\n};\n\nconst MONTHS = [\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"];\nconst DOW = [\"Mo\", \"Tu\", \"We\", \"Th\", \"Fr\", \"Sa\", \"Su\"];\nconst toD = (s: string) => {\n  const [y, m, d] = s.split(\"-\").map(Number);\n  return new Date(Date.UTC(y, m - 1, d));\n};\nconst fmt = (d: Date) => d.toISOString().slice(0, 10);\nconst add = (s: string, n: number) => fmt(new Date(toD(s).getTime() + n * 864e5));\nconst diff = (a: string, b: string) => Math.round((toD(b).getTime() - toD(a).getTime()) / 864e5);\nconst firstOf = (s: string, offset = 0) => {\n  const d = toD(s);\n  return fmt(new Date(Date.UTC(d.getUTCFullYear(), d.getUTCMonth() + offset, 1)));\n};\nconst lastOf = (s: string) => add(firstOf(s, 1), -1);\nconst short = (s: string, year = false) => {\n  const d = toD(s);\n  return `${MONTHS[d.getUTCMonth()].slice(0, 3)} ${d.getUTCDate()}${year ? `, ${d.getUTCFullYear()}` : \"\"}`;\n};\nconst label = (r: Range) => (r.start === r.end ? short(r.start, true) : `${short(r.start, toD(r.start).getUTCFullYear() !== toD(r.end).getUTCFullYear())} – ${short(r.end, true)}`);\nconst shiftYear = (s: string, n: number) => {\n  const d = toD(s);\n  return fmt(new Date(Date.UTC(d.getUTCFullYear() + n, d.getUTCMonth(), d.getUTCDate())));\n};\nconst ISO = /^\\d{4}-\\d{2}-\\d{2}$/;\nconst parse = (text: string) => {\n  const t = text.trim();\n  if (ISO.test(t) && !Number.isNaN(toD(t).getTime()) && fmt(toD(t)) === t) return t;\n  const m = t.match(/^([A-Za-z]{3})[a-z]*\\s+(\\d{1,2}),?\\s*(\\d{4})$/);\n  if (!m) return null;\n  const mi = MONTHS.findIndex((x) => x.slice(0, 3).toLowerCase() === m[1].toLowerCase());\n  if (mi < 0) return null;\n  const d = new Date(Date.UTC(Number(m[3]), mi, Number(m[2])));\n  return d.getUTCMonth() === mi ? fmt(d) : null;\n};\n\nexport function DateRangePickerPresets({ today = \"2026-11-12\", defaultValue, defaultOpen = true, onApply, theme = \"dark\", className }: DateRangePickerPresetsProps) {\n  const p = PALETTES[theme];\n  const reduce = !!useReducedMotion();\n  const uid = React.useId();\n  const presets = React.useMemo(\n    () => [\n      { id: \"today\", label: \"Today\", range: { start: today, end: today } },\n      { id: \"7d\", label: \"Last 7 days\", range: { start: add(today, -6), end: today } },\n      { id: \"30d\", label: \"Last 30 days\", range: { start: add(today, -29), end: today } },\n      { id: \"month\", label: \"This month\", range: { start: firstOf(today), end: today } },\n      { id: \"lastmonth\", label: \"Last month\", range: { start: firstOf(today, -1), end: lastOf(firstOf(today, -1)) } },\n      { id: \"90d\", label: \"Last 90 days\", range: { start: add(today, -89), end: today } },\n      { id: \"ytd\", label: \"Year to date\", range: { start: `${today.slice(0, 4)}-01-01`, end: today } },\n    ],\n    [today],\n  );\n  const initial: DateRangeValue = defaultValue ?? { ...presets[2].range, compare: \"previous\" };\n  const [applied, setApplied] = React.useState(initial);\n  const [draft, setDraft] = React.useState<DateRangeValue>(initial);\n  const [anchor, setAnchor] = React.useState<string | null>(null); // first click of a new range\n  const [hover, setHover] = React.useState<string | null>(null);\n  const [focusDay, setFocusDay] = React.useState(initial.end);\n  const [month, setMonth] = React.useState(firstOf(initial.end, -1)); // left month\n  const [open, setOpen] = React.useState(defaultOpen);\n  const [texts, setTexts] = React.useState({ start: short(initial.start, true), end: short(initial.end, true) });\n  const gridRef = React.useRef<HTMLDivElement>(null);\n  const rootRef = React.useRef<HTMLDivElement>(null);\n\n  React.useEffect(() => {\n    if (!open) return;\n    const onKey = (e: KeyboardEvent) => e.key === \"Escape\" && setOpen(false);\n    const onDown = (e: PointerEvent) => !rootRef.current?.contains(e.target as Node) && setOpen(false);\n    document.addEventListener(\"keydown\", onKey);\n    document.addEventListener(\"pointerdown\", onDown);\n    return () => {\n      document.removeEventListener(\"keydown\", onKey);\n      document.removeEventListener(\"pointerdown\", onDown);\n    };\n  }, [open]);\n\n  // While picking, the band previews from the anchor to the hovered day.\n  const view: Range = anchor ? (hover ? (hover < anchor ? { start: hover, end: anchor } : { start: anchor, end: hover }) : { start: anchor, end: anchor }) : draft;\n  const len = diff(view.start, view.end) + 1;\n  const cmpOf = (r: Range, c: Compare): Range | null => (c === \"previous\" ? { start: add(r.start, -(diff(r.start, r.end) + 1)), end: add(r.start, -1) } : c === \"year\" ? { start: shiftYear(r.start, -1), end: shiftYear(r.end, -1) } : null);\n  const cmp = cmpOf(view, draft.compare);\n  const activePreset = presets.find((x) => x.range.start === draft.start && x.range.end === draft.end)?.id;\n\n  const setRange = (r: Range) => {\n    setDraft((d) => ({ ...d, ...r }));\n    setTexts({ start: short(r.start, true), end: short(r.end, true) });\n  };\n  const pickDay = (d: string) => {\n    if (d > today) return;\n    setFocusDay(d);\n    if (!anchor) {\n      setAnchor(d);\n      setHover(d);\n    } else {\n      setRange(d < anchor ? { start: d, end: anchor } : { start: anchor, end: d });\n      setAnchor(null);\n      setHover(null);\n    }\n  };\n  const choosePreset = (r: Range) => {\n    setAnchor(null);\n    setHover(null);\n    setRange(r);\n    setMonth(firstOf(r.end, -1));\n    setFocusDay(r.end);\n  };\n  const commitText = (k: \"start\" | \"end\") => {\n    const v = parse(texts[k]);\n    if (!v || v > today) return;\n    const r = { ...draft, [k]: v };\n    if (r.start > r.end) return;\n    setRange(r);\n    setMonth(firstOf(r[k], k === \"end\" ? -1 : 0));\n  };\n  const onGridKey = (e: React.KeyboardEvent) => {\n    const step = { ArrowLeft: -1, ArrowRight: 1, ArrowUp: -7, ArrowDown: 7 }[e.key];\n    if (e.key === \"Enter\" || e.key === \" \") {\n      e.preventDefault();\n      pickDay(focusDay);\n      return;\n    }\n    if (!step) return;\n    e.preventDefault();\n    const nd = add(focusDay, step);\n    setFocusDay(nd);\n    if (anchor) setHover(nd);\n    if (nd < month) setMonth(firstOf(nd));\n    else if (nd > lastOf(firstOf(month, 1))) setMonth(firstOf(nd, -1));\n    requestAnimationFrame(() => gridRef.current?.querySelector<HTMLElement>(`[data-day=\"${nd}\"]`)?.focus());\n  };\n  const apply = () => {\n    if (anchor) return;\n    setApplied(draft);\n    setOpen(false);\n    onApply?.({ ...draft, compareRange: cmpOf(draft, draft.compare) });\n  };\n\n  const ring = { [\"--tw-ring-color\" as string]: p.ring, [\"--tw-ring-offset-color\" as string]: p.panel } as React.CSSProperties;\n  const focus = \"outline-none focus-visible:ring-2 focus-visible:ring-offset-2\";\n  const btn = cn(\"flex h-9 shrink-0 cursor-pointer items-center justify-center gap-1.5 rounded-lg px-3.5 text-[13px] font-medium disabled:cursor-not-allowed disabled:opacity-40\", focus);\n\n  const monthGrid = (m: string, idx: number) => {\n    const start = add(m, -((toD(m).getUTCDay() + 6) % 7));\n    const days = Array.from({ length: 42 }, (_, i) => add(start, i));\n    return (\n      <div key={m} className={cn(\"min-w-0\", idx === 1 && \"hidden @[620px]:block\")}>\n        <p className=\"m-0 mb-2 text-center text-[13px] font-semibold\">\n          {MONTHS[toD(m).getUTCMonth()]} {toD(m).getUTCFullYear()}\n        </p>\n        <div className=\"grid grid-cols-7 text-center text-[11px]\" style={{ color: p.faint }}>\n          {DOW.map((d) => (\n            <span key={d} className=\"py-1\">\n              {d}\n            </span>\n          ))}\n        </div>\n        <div role=\"grid\" aria-label={`${MONTHS[toD(m).getUTCMonth()]} ${toD(m).getUTCFullYear()}`} className=\"grid grid-cols-7\">\n          {days.map((d) => {\n            const inMonth = d.slice(0, 7) === m.slice(0, 7);\n            if (!inMonth) return <span key={d} className=\"h-9\" aria-hidden=\"true\" />;\n            const inBand = d >= view.start && d <= view.end;\n            const isEdge = d === view.start || d === view.end;\n            const inCmp = cmp && d >= cmp.start && d <= cmp.end;\n            const future = d > today;\n            const col = (toD(d).getUTCDay() + 6) % 7;\n            return (\n              <div key={d} className=\"relative h-9\">\n                {inBand && <span className={cn(\"absolute inset-y-1\", d === view.start || col === 0 ? \"left-1/2\" : \"left-0\", d === view.end || col === 6 ? \"right-1/2\" : \"right-0\")} style={{ background: p.band, left: d === view.start && d === view.end ? \"50%\" : undefined }} aria-hidden=\"true\" />}\n                {inCmp && <span className=\"absolute inset-x-1 bottom-1 h-[2px] rounded-full\" style={{ background: p.cmp }} aria-hidden=\"true\" />}\n                <button\n                  type=\"button\"\n                  data-day={d}\n                  tabIndex={d === focusDay ? 0 : -1}\n                  disabled={future}\n                  onClick={() => pickDay(d)}\n                  onMouseEnter={() => anchor && setHover(d)}\n                  aria-label={`${short(d, true)}${isEdge ? (d === view.start ? \", range start\" : \", range end\") : inBand ? \", in range\" : \"\"}${d === today ? \", today\" : \"\"}`}\n                  aria-pressed={isEdge || undefined}\n                  className={cn(\"relative mx-auto grid h-9 w-9 cursor-pointer place-items-center rounded-full border-0 text-[12.5px] tabular-nums disabled:cursor-not-allowed\", focus)}\n                  style={{ background: isEdge ? p.edge : \"transparent\", color: isEdge ? p.edgeText : future ? p.faint : p.text, fontWeight: isEdge || d === today ? 600 : 400, boxShadow: d === today && !isEdge ? `inset 0 0 0 1px ${p.border}` : \"inset 0 0 0 0 transparent\", ...ring }}\n                >\n                  {toD(d).getUTCDate()}\n                </button>\n              </div>\n            );\n          })}\n        </div>\n      </div>\n    );\n  };\n\n  // Demo numbers that follow the applied range\n  const seed = diff(\"2026-01-01\", applied.end) + diff(applied.start, applied.end) * 7;\n  const value = Math.round((diff(applied.start, applied.end) + 1) * (2480 + (seed % 37) * 9));\n  const cmpValue = Math.round(value * (0.82 + (seed % 11) / 100));\n  const change = ((value - cmpValue) / cmpValue) * 100;\n  const appliedCmp = cmpOf(applied, applied.compare);\n\n  return (\n    <section className={cn(\"@container min-h-[640px] w-full\", className)} style={{ background: p.bg, color: p.text }}>\n      <div className=\"mx-auto max-w-5xl px-4 py-10 @[640px]:px-6\">\n        <div className=\"flex flex-wrap items-end justify-between gap-4\">\n          <div>\n            <p className=\"m-0 text-[12.5px]\" style={{ color: p.muted }}>\n              Revenue\n            </p>\n            <p className=\"m-0 mt-1 flex items-baseline gap-2\">\n              <AnimatePresence mode=\"popLayout\" initial={false}>\n                <motion.span key={value} initial={reduce ? false : { opacity: 0, y: 8 }} animate={{ opacity: 1, y: 0 }} exit={reduce ? undefined : { opacity: 0, y: -8 }} className=\"text-[28px] font-semibold tabular-nums tracking-[-0.02em]\">\n                  ${value.toLocaleString(\"en-US\")}\n                </motion.span>\n              </AnimatePresence>\n              {appliedCmp && (\n                <span className=\"text-[12.5px] font-medium tabular-nums\" style={{ color: change >= 0 ? p.green : p.red }}>\n                  {change >= 0 ? \"+\" : \"\"}\n                  {change.toFixed(1)}% vs {applied.compare === \"year\" ? \"last year\" : \"previous period\"}\n                </span>\n              )}\n            </p>\n          </div>\n\n          <div ref={rootRef} className=\"relative w-full @[620px]:w-auto\">\n            <button type=\"button\" onClick={() => setOpen((o) => !o)} aria-expanded={open} aria-haspopup=\"dialog\" className={cn(btn, \"h-10 border bg-transparent px-3\")} style={{ borderColor: open ? p.edge : p.border, color: p.text, ...ring }}>\n              <svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" aria-hidden=\"true\">\n                <rect x=\"3\" y=\"5\" width=\"18\" height=\"16\" rx=\"2\" />\n                <path d=\"M3 10h18M8 3v4M16 3v4\" />\n              </svg>\n              <span className=\"tabular-nums\">{label(applied)}</span>\n              {appliedCmp && (\n                <span className=\"hidden text-[12px] @[480px]:inline\" style={{ color: p.faint }}>\n                  vs {label(appliedCmp)}\n                </span>\n              )}\n            </button>\n\n            <AnimatePresence>\n              {open && (\n                <motion.div\n                  key=\"pop\"\n                  role=\"dialog\"\n                  aria-label=\"Choose a date range\"\n                  initial={reduce ? false : { opacity: 0, y: -6, scale: 0.98 }}\n                  animate={{ opacity: 1, y: 0, scale: 1 }}\n                  exit={reduce ? undefined : { opacity: 0, y: -6, scale: 0.98 }}\n                  transition={{ duration: 0.16 }}\n                  className=\"relative z-20 mt-2 flex w-full origin-top flex-col overflow-hidden rounded-2xl border shadow-[0_24px_60px_-20px_rgba(0,0,0,0.6)] @[620px]:absolute @[620px]:top-full @[620px]:right-0 @[620px]:w-[min(720px,calc(100cqw-48px))] @[620px]:origin-top-right @[620px]:flex-row\"\n                  style={{ background: p.panel, borderColor: p.border }}\n                >\n                  {/* Presets */}\n                  <div role=\"listbox\" aria-label=\"Presets\" className=\"flex gap-1 overflow-x-auto border-b p-2 @[620px]:w-40 @[620px]:flex-col @[620px]:overflow-visible @[620px]:border-r @[620px]:border-b-0\" style={{ borderColor: p.border, background: p.side, scrollbarWidth: \"none\" }}>\n                    {presets.map((x) => (\n                      <button key={x.id} type=\"button\" role=\"option\" aria-selected={activePreset === x.id} onClick={() => choosePreset(x.range)} className={cn(\"relative shrink-0 cursor-pointer rounded-lg border-0 bg-transparent px-3 py-1.5 text-left text-[12.5px]\", focus)} style={{ color: activePreset === x.id ? p.text : p.muted, fontWeight: activePreset === x.id ? 500 : 400, ...ring }}>\n                        {activePreset === x.id && <motion.span layoutId={`${uid}-preset`} className=\"absolute inset-0 rounded-lg\" style={{ background: p.hover }} transition={reduce ? { duration: 0 } : { type: \"spring\", stiffness: 520, damping: 40 }} />}\n                        <span className=\"relative\">{x.label}</span>\n                      </button>\n                    ))}\n                    <span className=\"relative shrink-0 rounded-lg px-3 py-1.5 text-[12.5px]\" style={{ color: activePreset ? p.faint : p.text, fontWeight: activePreset ? 400 : 500, background: activePreset ? \"transparent\" : p.hover }}>\n                      Custom\n                    </span>\n                  </div>\n\n                  <div className=\"min-w-0 flex-1 p-4\">\n                    {/* Inputs */}\n                    <div className=\"flex items-center gap-2\">\n                      {([\"start\", \"end\"] as const).map((k, i) => {\n                        const bad = texts[k].trim() !== \"\" && (!parse(texts[k]) || (parse(texts[k]) ?? \"\") > today);\n                        return (\n                          <React.Fragment key={k}>\n                            {i === 1 && (\n                              <span style={{ color: p.faint }} aria-hidden=\"true\">\n                                →\n                              </span>\n                            )}\n                            <label className=\"min-w-0 flex-1\">\n                              <span className=\"sr-only\">{k === \"start\" ? \"Start date\" : \"End date\"}</span>\n                              <input value={texts[k]} onChange={(e) => setTexts((t) => ({ ...t, [k]: e.target.value }))} onBlur={() => commitText(k)} onKeyDown={(e) => e.key === \"Enter\" && commitText(k)} aria-invalid={bad} placeholder=\"Nov 12, 2026\" className={cn(\"h-9 w-full rounded-lg border px-3 text-[13px] tabular-nums\", focus)} style={{ borderColor: bad ? p.red : p.border, background: p.input, color: p.text, ...ring }} />\n                            </label>\n                          </React.Fragment>\n                        );\n                      })}\n                    </div>\n\n                    {/* Calendars */}\n                    <div className=\"relative mt-4\">\n                      <button type=\"button\" onClick={() => setMonth(firstOf(month, -1))} aria-label=\"Previous month\" className={cn(\"absolute top-0 left-0 z-10 grid h-7 w-7 cursor-pointer place-items-center rounded-md border-0 bg-transparent\", focus)} style={{ color: p.muted, ...ring }}>\n                        ‹\n                      </button>\n                      <button type=\"button\" onClick={() => setMonth(firstOf(month, 1))} disabled={firstOf(month, 1) > firstOf(today, -1)} aria-label=\"Next month\" className={cn(\"absolute top-0 right-0 z-10 grid h-7 w-7 cursor-pointer place-items-center rounded-md border-0 bg-transparent disabled:opacity-30\", focus)} style={{ color: p.muted, ...ring }}>\n                        ›\n                      </button>\n                      <div ref={gridRef} onKeyDown={onGridKey} onMouseLeave={() => anchor && setHover(null)} className=\"grid grid-cols-1 gap-6 @[620px]:grid-cols-2\">\n                        {[month, firstOf(month, 1)].map((m, i) => monthGrid(m, i))}\n                      </div>\n                    </div>\n\n                    {/* Footer */}\n                    <div className=\"mt-4 flex flex-col gap-3 border-t pt-3 @[480px]:flex-row @[480px]:items-center @[480px]:justify-between\" style={{ borderColor: p.border }}>\n                      <div className=\"flex flex-wrap items-center gap-x-3 gap-y-1 text-[12px]\" style={{ color: p.muted }} aria-live=\"polite\">\n                        <span className=\"tabular-nums\">{anchor ? \"Pick an end date\" : `${len} ${len === 1 ? \"day\" : \"days\"}`}</span>\n                        <label className=\"flex items-center gap-1.5\">\n                          <span className=\"h-[2px] w-3 rounded-full\" style={{ background: p.cmp }} aria-hidden=\"true\" />\n                          Compare to\n                          <select value={draft.compare} onChange={(e) => setDraft((d) => ({ ...d, compare: e.target.value as Compare }))} className={cn(\"h-7 cursor-pointer rounded-md border px-1.5 text-[12px]\", focus)} style={{ borderColor: p.border, background: p.input, color: p.text, ...ring }}>\n                            <option value=\"none\">Nothing</option>\n                            <option value=\"previous\">Previous period</option>\n                            <option value=\"year\">Previous year</option>\n                          </select>\n                        </label>\n                        {cmp && <span className=\"tabular-nums\">{label(cmp)}</span>}\n                      </div>\n                      <div className=\"flex gap-2\">\n                        <button\n                          type=\"button\"\n                          onClick={() => {\n                            setDraft(applied);\n                            setTexts({ start: short(applied.start, true), end: short(applied.end, true) });\n                            setAnchor(null);\n                            setOpen(false);\n                          }}\n                          className={cn(btn, \"border bg-transparent\")}\n                          style={{ borderColor: p.border, color: p.text, ...ring }}\n                        >\n                          Cancel\n                        </button>\n                        <button type=\"button\" onClick={apply} disabled={!!anchor} className={cn(btn, \"border-0\")} style={{ background: p.on, color: p.onText, ...ring }}>\n                          Apply\n                        </button>\n                      </div>\n                    </div>\n                  </div>\n                </motion.div>\n              )}\n            </AnimatePresence>\n          </div>\n        </div>\n\n        {/* A simple chart that follows the applied range */}\n        <div className=\"mt-8 flex h-48 items-end gap-1 rounded-2xl border p-4\" style={{ borderColor: p.border }} aria-hidden=\"true\">\n          {Array.from({ length: Math.min(30, diff(applied.start, applied.end) + 1) }, (_, i) => {\n            const h = 30 + (((seed + i * 13) % 50) + i) % 70;\n            return <motion.span key={`${applied.start}-${i}`} className=\"flex-1 rounded-t-[3px]\" style={{ background: p.edge, opacity: 0.75 }} initial={reduce ? false : { height: 0 }} animate={{ height: `${h}%` }} transition={{ delay: reduce ? 0 : i * 0.012, duration: 0.35 }} />;\n          })}\n        </div>\n      </div>\n    </section>\n  );\n}\n\nexport default DateRangePickerPresets;\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}