{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Plans, or a product and its rivals, in columns, and the features in rows; yes and no as marks.",
  "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/organisms/comparison-table.json\n    Plans, or a product and its competitors, as three columns and the features as rows. A value of yes shows a check, no a dash (both with a hidden word), anything else is shown as text. Axes: highlight (none, middle column), tone, density.\n    Props (p): id, title, rows, empty, labels, highlight, tone, density, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_rows = (p.rows ?? null) -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_highlight = (p.highlight ?? 'none') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_density = (p.density ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_16 -%}\n  {%- if og_t(og_eq(og_len(v_rows), 0)) %}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'table', 'title': v_empty}}, with_context = false) }}\n  {%- else %}\n    {%- set c_15 -%}\n      {%- set c_14 -%}\n        {%- set c_1 -%}\n          {{ og_text(og_get(v_labels, ['caption'])) }}\n        {%- endset -%}\n        {{ include('compose/TableCaption.html.twig', {'class': 'sr-only', 'children': c_1}, with_context = false) }}\n        {%- set c_7 -%}\n          {%- set c_6 -%}\n            {%- set c_2 -%}\n              {{ og_text(og_get(v_labels, ['feature'])) }}\n            {%- endset -%}\n            {{ include('compose/TableHeadCell.html.twig', {'class': 'py-4', 'attrs': og_attrs(['scope', 'col']), 'children': c_2}, with_context = false) }}\n            {%- set c_3 -%}\n              {{ og_text(og_get(v_labels, ['a'])) }}\n            {%- endset -%}\n            {{ include('compose/TableHeadCell.html.twig', {'class': 'py-4', 'attrs': og_attrs(['scope', 'col']), 'children': c_3}, with_context = false) }}\n            {%- set c_4 -%}\n              {{ og_text(og_get(v_labels, ['b'])) }}\n            {%- endset -%}\n            {{ include('compose/TableHeadCell.html.twig', {'class': og_s(og_cnv(['py-4', (og_t(og_eq(v_highlight, 'middle')) ? 'bg-muted' : '')])), 'attrs': og_attrs(['scope', 'col', 'data-highlight', (og_t(og_eq(v_highlight, 'middle')) ? 'true' : 'false')]), 'children': c_4}, with_context = false) }}\n            {%- set c_5 -%}\n              {{ og_text(og_get(v_labels, ['c'])) }}\n            {%- endset -%}\n            {{ include('compose/TableHeadCell.html.twig', {'class': 'py-4', 'attrs': og_attrs(['scope', 'col']), 'children': c_5}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/TableRow.html.twig', {'children': c_6}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/TableHead.html.twig', {'children': c_7}, with_context = false) }}\n        {%- set c_13 -%}\n          {%- for v_row in og_l(v_rows) %}\n            {%- set c_12 -%}\n              {%- set c_8 -%}\n                {{ og_text(og_get(v_row, ['label'])) }}\n              {%- endset -%}\n              {{ include('compose/TableHeadCell.html.twig', {'class': og_s(og_cnv(['font-medium', (og_t(og_eq(v_density, 'compact')) ? 'py-2' : 'py-4')])), 'attrs': og_attrs(['scope', 'row']), 'children': c_8}, with_context = false) }}\n              {%- set c_9 -%}\n                {{ include('blocks/compare-mark.html.twig', {'p': {'value': og_get(v_row, ['a']), 'yes': og_get(v_labels, ['yes']), 'no': og_get(v_labels, ['no'])}}, with_context = false) }}\n              {%- endset -%}\n              {{ include('compose/TableCell.html.twig', {'class': og_s(og_cnv([(og_t(og_eq(v_density, 'compact')) ? 'py-2' : 'py-4')])), 'children': c_9}, with_context = false) }}\n              {%- set c_10 -%}\n                {{ include('blocks/compare-mark.html.twig', {'p': {'value': og_get(v_row, ['b']), 'yes': og_get(v_labels, ['yes']), 'no': og_get(v_labels, ['no'])}}, with_context = false) }}\n              {%- endset -%}\n              {{ include('compose/TableCell.html.twig', {'class': og_s(og_cnv([(og_t(og_eq(v_density, 'compact')) ? 'py-2' : 'py-4'), (og_t(og_eq(v_highlight, 'middle')) ? 'bg-muted font-semibold' : '')])), 'children': c_10}, with_context = false) }}\n              {%- set c_11 -%}\n                {{ include('blocks/compare-mark.html.twig', {'p': {'value': og_get(v_row, ['c']), 'yes': og_get(v_labels, ['yes']), 'no': og_get(v_labels, ['no'])}}, with_context = false) }}\n              {%- endset -%}\n              {{ include('compose/TableCell.html.twig', {'class': og_s((og_t(og_eq(v_density, 'compact')) ? 'py-2' : 'py-4')), 'children': c_11}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/TableRow.html.twig', {'class': 'border-t border-border', 'attrs': og_attrs(['data-slot', 'item']), 'children': c_12}, with_context = false) }}\n          {%- endfor %}\n        {%- endset -%}\n        {{ include('compose/TableBody.html.twig', {'children': c_13}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Table.html.twig', {'class': 'w-full text-left text-sm', 'attrs': og_attrs(['data-slot', 'compare']), 'children': c_14}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Box.html.twig', {'class': 'relative w-full overflow-x-auto', 'children': c_15}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_16)}, with_context = false) }}\n",
      "path": "blocks/comparison-table.html.twig",
      "target": "blocks/comparison-table.html.twig"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "pricing",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "comparison-table",
  "registryDependencies": [
    "box",
    "compare-mark",
    "empty-state",
    "section-frame",
    "table",
    "table-body",
    "table-caption",
    "table-cell",
    "table-head",
    "table-head-cell",
    "table-row",
    "utils"
  ],
  "runtime": "twig",
  "title": "Comparison Table",
  "type": "registry:block"
}
