{
  "$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{%- set v_type = (p.type ?? null) -%}\n{%- set v_from = (p.from ?? null) -%}\n{%- set v_to = (p.to ?? null) -%}\n{%- set v_fromLabel = (p.fromLabel ?? null) -%}\n{%- set v_toLabel = (p.toLabel ?? null) -%}\n{%- set v_min = (p.min ?? null) -%}\n{%- set v_max = (p.max ?? null) -%}\n{%- set 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    {{ include('compose/Range.html.twig', {'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'])}, with_context = false) }}\n    {{ include('compose/Range.html.twig', {'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'])}, with_context = false) }}\n  {%- endif %}\n  {%- set c_2 -%}\n    {{ include('compose/Input.html.twig', {'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])}, with_context = false) }}\n    {%- set c_1 -%}\n      {{ og_text('–') }}\n    {%- endset -%}\n    {{ include('compose/Inline.html.twig', {'class': 'text-muted-foreground', 'children': c_1}, with_context = false) }}\n    {{ include('compose/Input.html.twig', {'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])}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Inline.html.twig', {'class': 'flex items-center gap-2', 'children': c_2}, with_context = false) }}\n{%- endset -%}\n{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['flex flex-col gap-2', (p.className ?? '')])), 'attrs': og_attrs(['data-slot', 'range-field']), 'children': c_3}, with_context = false) }}\n",
      "path": "blocks/range-field.html.twig",
      "target": "blocks/range-field.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "range-field",
  "registryDependencies": [
    "box",
    "inline",
    "input",
    "range",
    "utils"
  ],
  "runtime": "twig",
  "title": "Range Field",
  "type": "registry:component"
}
