{
  "component": {
    "id": "timezone-picker",
    "name": "Timezone picker",
    "tier": "pro",
    "exampleId": "timezone-picker",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/timezone-picker-demo.tsx",
    "exportName": "TimezonePickerDemo",
    "sha256": "3e2aafa4cd39c995701df7dd73ac47f76af76c8f14172d768b80a242f689c808",
    "helperImports": [],
    "directComponentImports": [
      "timezone-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/timezone-picker",
    "registryUrl": "https://tidalui.com/r/pro/timezone-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/timezone-picker",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/timezone-picker",
      "registryUrl": "https://tidalui.com/r/pro/timezone-picker.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/timezone-picker.tsx",
    "exports": [
      "TidalTimezoneOption",
      "TidalTimezonePicker"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/timezone-picker.css",
      "components/ui/combobox.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [
      "@tidal-pro/combobox"
    ],
    "additionalRegistry": [],
    "installClosure": [
      "combobox",
      "timezone-picker"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/timezone-picker.css",
      "components/ui/combobox.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/timezone-picker.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/timezone-picker-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useId, useRef, useState } from \"react\";\n\nimport { TidalTimezonePicker, type TidalTimezoneOption } from \"./components/ui/timezone-picker\";\n\nimport \"./components/ui/timezone-picker.css\";\n\nimport \"./components/ui/combobox.css\";\n\n\n\nconst tidalExampleStyles = \".timezone-picker-demo {\\n  display: grid;\\n  width: min(100%, 580px);\\n  min-width: 0;\\n  gap: 14px;\\n}\\n\\n.timezone-picker-demo-actions {\\n  display: flex;\\n  flex-wrap: wrap;\\n  gap: 9px;\\n}\\n\\n.timezone-picker-demo-actions button {\\n  min-width: 44px;\\n  min-height: 44px;\\n  padding: 10px 14px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 10px;\\n  background: var(--t-surface);\\n  color: var(--t-ink);\\n  font: inherit;\\n  font-size: 11px;\\n  font-weight: 650;\\n  cursor: pointer;\\n}\\n\\n.timezone-picker-demo-actions button:first-child {\\n  border-color: var(--t-ink);\\n  background: var(--t-ink);\\n  color: var(--t-surface);\\n}\\n\\n.timezone-picker-demo-actions button:focus-visible {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 3px;\\n}\\n\\n.timezone-picker-demo output,\\n.timezone-picker-demo > small {\\n  min-width: 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.55;\\n  overflow-wrap: anywhere;\\n}\\n\\n@media (max-width: 420px), (pointer: coarse) {\\n  .timezone-picker-demo-actions button {\\n    font-size: 16px;\\n  }\\n}\\n\\n@media (max-width: 420px) {\\n  .timezone-picker-demo-actions {\\n    display: grid;\\n  }\\n\\n  .timezone-picker-demo-actions button {\\n    width: 100%;\\n  }\\n}\";\n\nconst REFERENCE_INSTANT = Date.UTC(2026, 9, 15, 17, 0, 0);\n\nconst ZONES: readonly TidalTimezoneOption[] = [\n  {\n    id: \"los-angeles\",\n    timeZone: \"America/Los_Angeles\",\n    label: \"Pacific time\",\n    region: \"United States west coast\",\n    searchTerms: [\"PST\", \"PDT\"],\n  },\n  {\n    id: \"denver\",\n    timeZone: \"America/Denver\",\n    label: \"Mountain time\",\n    region: \"United States mountain\",\n    searchTerms: [\"MST\", \"MDT\"],\n  },\n  {\n    id: \"chicago\",\n    timeZone: \"America/Chicago\",\n    label: \"Central time\",\n    region: \"United States central\",\n    searchTerms: [\"CST\", \"CDT\"],\n  },\n  {\n    id: \"new-york\",\n    timeZone: \"America/New_York\",\n    label: \"Eastern time\",\n    region: \"United States east coast\",\n    searchTerms: [\"EST\", \"EDT\"],\n  },\n  {\n    id: \"utc\",\n    timeZone: \"UTC\",\n    label: \"Coordinated Universal Time\",\n    searchTerms: [\"GMT\", \"zero offset\"],\n  },\n  {\n    id: \"london\",\n    timeZone: \"Europe/London\",\n    label: \"London\",\n    region: \"United Kingdom\",\n    searchTerms: [\"GMT\", \"BST\"],\n  },\n  {\n    id: \"kolkata\",\n    timeZone: \"Asia/Kolkata\",\n    label: \"India time\",\n    region: \"India\",\n    searchTerms: [\"IST\", \"half hour\"],\n  },\n  {\n    id: \"tokyo\",\n    timeZone: \"Asia/Tokyo\",\n    label: \"Tokyo\",\n    region: \"Japan\",\n    searchTerms: [\"JST\"],\n  },\n];\n\nexport function TimezonePickerDemo() {\n  const generatedId = useId().replace(/:/g, \"\");\n  const formId = `timezone-picker-${generatedId}-form`;\n  const inputRef = useRef<HTMLInputElement>(null);\n  const [query, setQuery] = useState(\"Central time\");\n  const [open, setOpen] = useState(false);\n  const [activeZoneId, setActiveZoneId] = useState<string | undefined>();\n  const [value, setValue] = useState(\"America/Chicago\");\n  const [status, setStatus] = useState(\n    \"The sample reference instant is October 15, 2026 at 17:00 UTC.\",\n  );\n\n  function resetSample() {\n    setQuery(\"Central time\");\n    setOpen(false);\n    setActiveZoneId(undefined);\n    setValue(\"America/Chicago\");\n    setStatus(\"The local time zone sample was reset.\");\n  }\n\n  return (\n    <form\n      id={formId}\n      className=\"timezone-picker-demo\"\n      onSubmit={(event) => {\n        event.preventDefault();\n        const data = new FormData(event.currentTarget);\n        const submitted = data.get(\"sampleTimeZone\");\n        setStatus(\n          submitted\n            ? `Prepared time zone: ${String(submitted)}.`\n            : \"Choose a time zone before reviewing the sample.\",\n        );\n      }}\n      onReset={resetSample}\n    >\n      <TidalTimezonePicker\n        label=\"Workspace time zone\"\n        description=\"Offsets are calculated for the sample reference instant.\"\n        name=\"sampleTimeZone\"\n        form={formId}\n        zones={ZONES}\n        referenceInstant={REFERENCE_INSTANT}\n        value={value}\n        query={query}\n        open={open}\n        activeZoneId={activeZoneId}\n        inputRef={inputRef}\n        onQueryChange={(nextQuery) => {\n          setQuery(nextQuery);\n          setActiveZoneId(undefined);\n        }}\n        onOpenChange={setOpen}\n        onActiveZoneChange={setActiveZoneId}\n        onValueChange={(zone) => {\n          setValue(zone.timeZone);\n          setQuery(zone.label);\n          setStatus(`${zone.label} is selected in this local sample.`);\n        }}\n        hint=\"Search by city, region, abbreviation, IANA name or reference offset.\"\n      />\n      <div className=\"timezone-picker-demo-actions\">\n        <button type=\"submit\">Review time zone</button>\n        <button type=\"reset\">Reset sample</button>\n      </div>\n      <output aria-live=\"polite\">{status}</output>\n      <small>No location is detected and no account setting is changed.</small>\n    </form>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <TimezonePickerDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/timezone-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": "\"America/Chicago\"",
      "setter": "setValue",
      "proposalCanBeRejected": false
    },
    {
      "prop": "query",
      "type": "inferred-from-existing-demo",
      "initial": "\"Central time\"",
      "setter": "setQuery",
      "proposalCanBeRejected": false
    },
    {
      "prop": "open",
      "type": "inferred-from-existing-demo",
      "initial": "false",
      "setter": "setOpen",
      "proposalCanBeRejected": false
    },
    {
      "prop": "activeZoneId",
      "type": "inferred-from-existing-demo",
      "initial": "undefined",
      "setter": "setActiveZoneId",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onActiveZoneChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": false,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onOpenChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": false,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onQueryChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": false,
      "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": false,
      "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": false,
      "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": false,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    }
  ],
  "nativeForm": {
    "participates": true,
    "names": [
      "sampleTimeZone"
    ],
    "expectedFormData": {
      "sampleTimeZone": "fixture value"
    },
    "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": []
}
