{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Tasks to finish after sign-up, with progress.",
  "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/checklist.json\n    An onboarding checklist: the tasks with a done mark, a progress bar or a count. Axes: layout (card, plain), progress (bar, text, none), marker (check, number), tone (default, muted).\n    Props (p): id, title, tasks, empty, progressLabel, layout, progress, marker, detail, tone, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_tasks = (p.tasks ?? null) -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_progressLabel = (p.progressLabel ?? null) -%}\n{%- set v_layout = (p.layout ?? 'card') -%}\n{%- set v_progress = (p.progress ?? 'bar') -%}\n{%- set v_marker = (p.marker ?? 'check') -%}\n{%- set v_detail = (p.detail ?? 'always') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_12 -%}\n  {%- if og_t(og_eq(og_len(v_tasks), 0)) %}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'list-checks', 'title': v_empty}}, with_context = false) }}\n  {%- else %}\n    {%- set c_11 -%}\n      {%- if og_t(og_eq(v_progress, 'bar')) %}\n        {{ include('compose/Progress.html.twig', {'value': og_s(og_str(og_round(og_div(og_mul(og_count(v_tasks, 'done'), 100), og_len(v_tasks))))), 'max': '100', 'attrs': og_attrs(['aria-label', og_tpl(v_progressLabel, [og_count(v_tasks, 'done'), og_len(v_tasks)])])}, with_context = false) }}\n      {%- endif %}\n      {%- if og_t(og_eq(v_progress, 'text')) %}\n        {%- set c_1 -%}\n          {{ og_text(og_tpl(v_progressLabel, [og_count(v_tasks, 'done'), og_len(v_tasks)])) }}\n        {%- endset -%}\n        {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'attrs': og_attrs(['data-slot', 'progress-text']), 'children': c_1}, with_context = false) }}\n      {%- endif %}\n      {%- set c_10 -%}\n        {%- for v_task in og_l(v_tasks) %}\n          {%- set v_i = loop.index0 -%}\n          {%- set c_9 -%}\n            {%- if og_t(og_eq(v_marker, 'number')) %}\n              {%- set c_2 -%}\n                {{ og_text(og_str(og_add(v_i, 1))) }}\n              {%- endset -%}\n              {{ include('compose/IconBadge.html.twig', {'variant': og_s((og_t(og_get(v_task, ['done'])) ? 'primary' : 'outline')), 'size': 'xs', 'children': c_2}, with_context = false) }}\n            {%- else %}\n              {{ include('icons/LucideIcon.html.twig', {'name': og_s((og_t(og_get(v_task, ['done'])) ? 'circle-check' : 'circle')), 'size': 24, 'class': og_s((og_t(og_get(v_task, ['done'])) ? 'shrink-0 text-primary' : 'shrink-0 text-muted-foreground'))}, with_context = false) }}\n            {%- endif %}\n            {%- if og_t(og_eq(v_detail, 'expand')) %}\n              {%- set c_5 -%}\n                {%- set c_3 -%}\n                  {{ og_text(og_get(v_task, ['title'])) }}\n                {%- endset -%}\n                {{ include('compose/Summary.html.twig', {'variant': 'ghost', 'children': c_3}, with_context = false) }}\n                {%- set c_4 -%}\n                  {{ og_text(og_get(v_task, ['text'])) }}\n                {%- endset -%}\n                {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'pb-2 text-muted-foreground', 'children': c_4}, with_context = false) }}\n              {%- endset -%}\n              {{ include('compose/Disclosure.html.twig', {'variant': 'ghost', 'class': 'flex-1', 'attrs': og_attrs(['data-slot', 'task-detail']), 'children': c_5}, with_context = false) }}\n            {%- else %}\n              {%- set c_8 -%}\n                {%- set c_6 -%}\n                  {{ og_text(og_get(v_task, ['title'])) }}\n                {%- endset -%}\n                {{ include('compose/Text.html.twig', {'size': 'base', 'weight': 'semibold', 'children': c_6}, with_context = false) }}\n                {%- set c_7 -%}\n                  {{ og_text(og_get(v_task, ['text'])) }}\n                {%- endset -%}\n                {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_7}, with_context = false) }}\n              {%- endset -%}\n              {{ include('compose/Stack.html.twig', {'gap': '0', 'children': c_8}, with_context = false) }}\n            {%- endif %}\n          {%- endset -%}\n          {{ include('compose/ListItem.html.twig', {'class': 'flex items-start gap-4', 'attrs': og_attrs(['data-done', og_str(og_get(v_task, ['done'])), 'data-slot', 'item']), 'children': c_9}, with_context = false) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ include('compose/List.html.twig', {'class': 'm-0 flex list-none flex-col gap-4 p-0', 'attrs': og_attrs(['data-slot', 'items']), 'children': c_10}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Stack.html.twig', {'gap': '4', 'align': 'stretch', 'class': og_s((og_t(og_eq(v_layout, 'card')) ? 'rounded bg-card p-6 inset-ring inset-ring-border' : '')), 'attrs': og_attrs(['data-slot', 'checklist']), 'children': c_11}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'measure': '2xl', 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_12)}, with_context = false) }}\n",
      "path": "blocks/checklist.html.twig",
      "target": "blocks/checklist.html.twig"
    }
  ],
  "meta": {
    "category": "onboarding",
    "group": "setup",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "checklist",
  "registryDependencies": [
    "disclosure",
    "empty-state",
    "icon-badge",
    "list",
    "list-item",
    "lucide-icon",
    "progress",
    "section-frame",
    "stack",
    "summary",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Checklist",
  "type": "registry:block"
}
