{
  "component": {
    "id": "time-picker",
    "name": "Time picker",
    "tier": "pro",
    "exampleId": "time-picker",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/time-picker-demo.tsx",
    "exportName": "TimePickerDemo",
    "sha256": "77cae06e1070f441bc7506837bdd66692520581a194df9b03b3fd631bef00a2e",
    "helperImports": [],
    "directComponentImports": [
      "time-picker"
    ],
    "sampleBoundary": "Existing local demo fixture with fictional data and callbacks. No live service, customer data, access key, or Pro source is included."
  },
  "install": {
    "command": "npx shadcn@latest add @tidal-pro/time-picker",
    "registryUrl": "https://tidalui.com/r/pro/time-picker.json",
    "namespace": "@tidal-pro",
    "access": "pro",
    "sourceDelivery": "server-gated",
    "requiresAuthorization": true,
    "tokenSource": "local-env",
    "tokenEnvName": "TIDALUI_TOKEN",
    "cli": {
      "package": "shadcn",
      "requested": "latest"
    }
  },
  "installPlan": [
    {
      "order": 1,
      "kind": "primary",
      "dependency": "@tidal-pro/time-picker",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/time-picker",
      "registryUrl": "https://tidalui.com/r/pro/time-picker.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/time-picker.tsx",
    "exports": [
      "TidalTimePicker"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/time-picker.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "time-picker"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/time-picker.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/time-picker.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/time-picker-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useId, useState } from \"react\";\n\nimport { TidalTimePicker } from \"./components/ui/time-picker\";\n\nimport \"./components/ui/time-picker.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .time-picker-demo,\\n.tidal-scope .time-picker-demo * {\\n  box-sizing: border-box;\\n}\\n\\n.tidal-scope .time-picker-demo {\\n  container: tidal-time-demo / inline-size;\\n  display: grid;\\n  width: min(100%, 760px);\\n  min-width: 0;\\n  gap: 22px;\\n  margin-inline: auto;\\n  padding: clamp(16px, 4vw, 42px);\\n  color: var(--t-ink);\\n}\\n\\n.tidal-scope .time-picker-demo-heading {\\n  display: grid;\\n  min-width: 0;\\n  gap: 8px;\\n}\\n\\n.tidal-scope .time-picker-demo-heading :is(h2, p) {\\n  margin: 0;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .time-picker-demo-heading h2 {\\n  font-size: clamp(27px, 5vw, 42px);\\n  font-weight: 570;\\n  letter-spacing: -0.05em;\\n  line-height: 1;\\n}\\n\\n.tidal-scope .time-picker-demo-heading p,\\n.tidal-scope .time-picker-demo-footer {\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.5;\\n}\\n\\n.tidal-scope .time-picker-demo-form {\\n  display: grid;\\n  min-width: 0;\\n  gap: 20px;\\n  padding: clamp(16px, 4vw, 28px);\\n  border: 1px solid var(--t-border);\\n  border-radius: 18px;\\n  background: var(--t-surface);\\n}\\n\\n.tidal-scope .time-picker-demo-toolbar {\\n  display: grid;\\n  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);\\n  min-width: 0;\\n  gap: 12px;\\n}\\n\\n.tidal-scope .time-picker-demo-toolbar fieldset {\\n  display: flex;\\n  flex-wrap: wrap;\\n  min-width: 0;\\n  gap: 6px;\\n  margin: 0;\\n  padding: 0;\\n  border: 0;\\n}\\n\\n.tidal-scope .time-picker-demo-toolbar legend {\\n  width: 100%;\\n  margin-bottom: 4px;\\n  font-size: 11px;\\n  font-weight: 650;\\n}\\n\\n.tidal-scope .time-picker-demo-toolbar label {\\n  position: relative;\\n  display: inline-flex;\\n  min-width: 0;\\n}\\n\\n.tidal-scope .time-picker-demo-toolbar input {\\n  position: absolute;\\n  width: 1px;\\n  height: 1px;\\n  opacity: 0;\\n}\\n\\n.tidal-scope .time-picker-demo-toolbar label span {\\n  display: inline-flex;\\n  align-items: center;\\n  justify-content: center;\\n  min-width: 44px;\\n  min-height: 44px;\\n  padding: 8px 11px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 10px;\\n  background: var(--t-surface);\\n  font-size: 11px;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .time-picker-demo-toolbar input:checked + span {\\n  border-color: var(--t-ink);\\n  background: var(--t-ink);\\n  color: var(--t-surface);\\n}\\n\\n.tidal-scope .time-picker-demo-toolbar input:focus-visible + span {\\n  outline: 2px solid var(--t-ink);\\n  outline-offset: 3px;\\n}\\n\\n.tidal-scope .time-picker-demo-actions {\\n  display: flex;\\n  flex-wrap: wrap;\\n  gap: 8px;\\n}\\n\\n.tidal-scope .time-picker-demo-actions button {\\n  min-width: 44px;\\n  min-height: 44px;\\n  padding: 0 14px;\\n  border: 1px solid var(--t-ink);\\n  border-radius: 10px;\\n  background: var(--t-ink);\\n  color: var(--t-surface);\\n  font: inherit;\\n  font-size: 11px;\\n  font-weight: 650;\\n}\\n\\n.tidal-scope .time-picker-demo-actions button[type=\\\"reset\\\"] {\\n  border-color: var(--t-border);\\n  background: var(--t-surface);\\n  color: var(--t-ink);\\n}\\n\\n.tidal-scope .time-picker-demo-actions button:focus-visible {\\n  outline: 2px solid var(--t-ink);\\n  outline-offset: 3px;\\n}\\n\\n.tidal-scope .time-picker-demo-footer {\\n  display: grid;\\n  min-width: 0;\\n  gap: 4px;\\n}\\n\\n.tidal-scope .time-picker-demo-footer :is(p, span) {\\n  margin: 0;\\n  overflow-wrap: anywhere;\\n}\\n\\n@container tidal-time-demo (max-width: 500px) {\\n  .tidal-scope .time-picker-demo-toolbar {\\n    grid-template-columns: minmax(0, 1fr);\\n  }\\n\\n  .tidal-scope .time-picker-demo-actions button {\\n    flex: 1 1 120px;\\n  }\\n}\\n\\n@media (pointer: coarse) {\\n  .tidal-scope .time-picker-demo-toolbar label span,\\n  .tidal-scope .time-picker-demo-actions button {\\n    font-size: 16px;\\n  }\\n}\";\n\ntype FieldMode = \"editable\" | \"readonly\" | \"disabled\";\n\nconst INITIAL_TIME = \"09:30\";\n\nexport function TimePickerDemo() {\n  const demoId = useId().replace(/:/g, \"\");\n  const headingId = `${demoId}-daily-review`;\n  const [value, setValue] = useState(INITIAL_TIME);\n  const [hourCycle, setHourCycle] = useState<12 | 24>(12);\n  const [mode, setMode] = useState<FieldMode>(\"editable\");\n  const [status, setStatus] = useState(\"Choose a local review time.\");\n\n  return (\n    <section className=\"time-picker-demo\" aria-labelledby={headingId}>\n      <header className=\"time-picker-demo-heading\">\n        <h2 id={headingId}>Daily review</h2>\n        <p>Choose a time and review it in 12-hour or 24-hour format.</p>\n      </header>\n\n      <form\n        className=\"time-picker-demo-form\"\n        action=\"/local-time-preview\"\n        method=\"post\"\n        onSubmit={(event) => {\n          event.preventDefault();\n          const submittedValue = new FormData(event.currentTarget).get(\n            \"reviewTime\",\n          );\n          setStatus(\n            typeof submittedValue === \"string\" && submittedValue\n              ? `Local preview prepared for ${submittedValue}.`\n              : \"The disabled field was not included in the local preview.\",\n          );\n        }}\n        onReset={() => {\n          setValue(INITIAL_TIME);\n          setHourCycle(12);\n          setMode(\"editable\");\n          setStatus(\"The local sample was reset.\");\n        }}\n      >\n        <div className=\"time-picker-demo-toolbar\">\n          <fieldset>\n            <legend>Field state</legend>\n            {([\"editable\", \"readonly\", \"disabled\"] as const).map((option) => (\n              <label key={option}>\n                <input\n                  type=\"radio\"\n                  name={`${demoId}-field-mode`}\n                  value={option}\n                  checked={mode === option}\n                  onChange={() => setMode(option)}\n                />\n                <span>\n                  {option === \"readonly\"\n                    ? \"Read only\"\n                    : option[0].toUpperCase() + option.slice(1)}\n                </span>\n              </label>\n            ))}\n          </fieldset>\n          <fieldset>\n            <legend>Display</legend>\n            {([12, 24] as const).map((option) => (\n              <label key={option}>\n                <input\n                  type=\"radio\"\n                  name={`${demoId}-hour-cycle`}\n                  value={option}\n                  checked={hourCycle === option}\n                  onChange={() => setHourCycle(option)}\n                />\n                <span>{option}-hour</span>\n              </label>\n            ))}\n          </fieldset>\n        </div>\n\n        <TidalTimePicker\n          label=\"Review time\"\n          value={value}\n          onValueChange={(nextValue) => {\n            setValue(nextValue);\n            setStatus(\"The local time value changed.\");\n          }}\n          hourCycle={hourCycle}\n          readOnly={mode === \"readonly\"}\n          disabled={mode === \"disabled\"}\n          hint=\"Uses the time value shown by this field. No time zone is applied.\"\n          inputProps={{\n            name: \"reviewTime\",\n            required: true,\n            min: \"00:00\",\n            step: 300,\n          }}\n        />\n\n        <div className=\"time-picker-demo-actions\">\n          <button type=\"submit\">Prepare preview</button>\n          <button type=\"reset\">Reset</button>\n        </div>\n      </form>\n\n      <footer className=\"time-picker-demo-footer\">\n        <p role=\"status\" aria-live=\"polite\">\n          {status}\n        </p>\n        <span>Local sample only. Nothing is scheduled or saved.</span>\n      </footer>\n    </section>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <TimePickerDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/time-picker.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "value",
      "type": "inferred-from-existing-demo",
      "initial": "INITIAL_TIME",
      "setter": "setValue",
      "proposalCanBeRejected": false
    },
    {
      "prop": "hourCycle",
      "type": "inferred-from-existing-demo",
      "initial": "12",
      "setter": "setHourCycle",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onChange",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onReset",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onSubmit",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onValueChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    }
  ],
  "nativeForm": {
    "participates": true,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "The existing demo's native form callback receives the submit event.",
    "resetBehavior": "Native reset behavior remains available where the demo renders a resettable control.",
    "disabledBehavior": "Disabled controls remain excluded from successful native form submission.",
    "readOnlyBehavior": "Read-only controls retain their value and remain inspectable by the consumer."
  },
  "accessibility": {
    "labelSource": "Existing demo label or ARIA prop",
    "semantics": "Preserve the component's native element and the semantics demonstrated by the source fixture.",
    "keyboard": [
      "Tab and Shift+Tab",
      "Enter or Space for native activation",
      "Arrow keys where the component exposes a composite control"
    ],
    "focusReturn": "Preserve browser focus order and visible focus.",
    "errorAnnouncement": "The existing error or alert path remains consumer-owned and should be announced by the rendered semantics.",
    "reducedMotion": "Verify prefers-reduced-motion with the existing component transition path.",
    "forcedColors": "Verify visible borders, text, and focus in forced-colors mode."
  },
  "responsive": {
    "widths": [
      320,
      390,
      768,
      1260
    ],
    "shortViewport": "Check the example at a 300px viewport height with keyboard or portal content visible.",
    "overflow": "The page should not gain horizontal overflow; component-local scrolling must remain intentional.",
    "touchTargetMinPx": 44,
    "coarseInputFontPx": 16
  },
  "errors": [
    {
      "fixture": "Exercise the existing demo's error, empty, loading, or invalid fixture.",
      "visibleResult": "The consumer-visible result must remain explicit and must not be replaced by a silent console error.",
      "focusResult": "Focus must remain on the triggering control or move to the announced error according to the native pattern.",
      "ownership": "Consumer-owned sample state only; no network request or customer data is used."
    }
  ],
  "verification": {
    "commands": [
      "npx tsc --noEmit",
      "npx vite build"
    ],
    "lockfile": "Use the consumer project's committed lockfile.",
    "browser": [
      "Chromium 1260x800",
      "Chromium 390x844",
      "Keyboard and reduced-motion pass"
    ]
  },
  "validation": {
    "consumerFixture": {
      "tsc": "pass",
      "viteBuild": "pass",
      "resourceModel": "Generated usage plus only the component files and CSS delivered by the primary item and listed registry dependencies."
    },
    "registryArtifact": "server-gated"
  },
  "exceptions": []
}
