{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A from–to pair for numbers or dates (price range, period). Empty means an open end. With numeric bounds two sliders sit above the inputs. Each control has its own accessible name; every change reports both ends.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "{* Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n    Source: packages/compose-gen/specs/parts/range-field.json\n    A from–to pair for numbers or dates (price range, period). Empty means an open end. With numeric bounds two sliders sit above the inputs. Each control has its own accessible name; every change reports both ends.\n    Props (p): type, from, to, fromLabel, toLabel, min, max, className. *}\n{var $v_type = ($p['type'] ?? null)}\n{var $v_from = ($p['from'] ?? null)}\n{var $v_to = ($p['to'] ?? null)}\n{var $v_fromLabel = ($p['fromLabel'] ?? null)}\n{var $v_toLabel = ($p['toLabel'] ?? null)}\n{var $v_min = ($p['min'] ?? null)}\n{var $v_max = ($p['max'] ?? null)}\n{capture $c_3}\n  {if og_t(og_and([og_eq($v_type, 'number'), og_has($v_min), og_has($v_max), og_lt($v_min, $v_max)]))}\n    {=og_include('compose/Range.latte', ['min' => og_i($v_min), 'max' => og_i($v_max), 'value' => og_s((og_t(og_eq($v_from, '')) ? og_str($v_min) : $v_from)), 'attrs' => og_attrs(['aria-label', $v_fromLabel, 'data-slot', 'range-from'])])|noescape}\n    {=og_include('compose/Range.latte', ['min' => og_i($v_min), 'max' => og_i($v_max), 'value' => og_s((og_t(og_eq($v_to, '')) ? og_str($v_max) : $v_to)), 'attrs' => og_attrs(['aria-label', $v_toLabel, 'data-slot', 'range-to'])])|noescape}\n  {/if}\n  {capture $c_2}\n    {=og_include('compose/Input.latte', ['type' => og_s($v_type), 'size' => 'sm', 'value' => og_s($v_from), 'min' => og_s(og_str($v_min)), 'max' => og_s(og_str($v_max)), 'attrs' => og_attrs(['aria-label', $v_fromLabel])])|noescape}\n    {capture $c_1}\n      {=og_text('–')}\n    {/capture}\n    {=og_include('compose/Inline.latte', ['class' => 'text-muted-foreground', 'children' => (string) $c_1])|noescape}\n    {=og_include('compose/Input.latte', ['type' => og_s($v_type), 'size' => 'sm', 'value' => og_s($v_to), 'min' => og_s(og_str($v_min)), 'max' => og_s(og_str($v_max)), 'attrs' => og_attrs(['aria-label', $v_toLabel])])|noescape}\n  {/capture}\n  {=og_include('compose/Inline.latte', ['class' => 'flex items-center gap-2', 'children' => (string) $c_2])|noescape}\n{/capture}\n{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['flex flex-col gap-2', ($p['className'] ?? '')])), 'attrs' => og_attrs(['data-slot', 'range-field']), 'children' => (string) $c_3])|noescape}\n",
      "path": "blocks/range-field.latte",
      "target": "blocks/range-field.latte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "latte",
      "component"
    ]
  },
  "name": "range-field",
  "registryDependencies": [
    "box",
    "inline",
    "input",
    "range",
    "utils"
  ],
  "runtime": "latte",
  "title": "Range Field",
  "type": "registry:component"
}
