{
  "$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 = og_def(p['id'], none) -%}\n{%- set v_title = og_def(p['title'], none) -%}\n{%- set v_tasks = og_def(p['tasks'], none) -%}\n{%- set v_empty = og_def(p['empty'], '') -%}\n{%- set v_progressLabel = og_def(p['progressLabel'], none) -%}\n{%- set v_layout = og_def(p['layout'], 'card') -%}\n{%- set v_progress = og_def(p['progress'], 'bar') -%}\n{%- set v_marker = og_def(p['marker'], 'check') -%}\n{%- set v_detail = og_def(p['detail'], 'always') -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_12 -%}\n  {%- if og_t(og_eq(og_len(v_tasks), 0)) %}\n    {{ og_include('blocks/empty-state.html.j2', {'p': {'icon': 'list-checks', 'title': v_empty}}) }}\n  {%- else %}\n    {%- set c_11 -%}\n      {%- if og_t(og_eq(v_progress, 'bar')) %}\n        {{ og_include('compose/progress.html.j2', {'p': {'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)])])}}) }}\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        {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground', 'Attrs': og_attrs(['data-slot', 'progress-text'])}, 'children': c_1}) }}\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              {{ og_include('compose/icon-badge.html.j2', {'p': {'Variant': og_s(('primary' if og_t(og_get(v_task, ['done'])) else 'outline')), 'Size': 'xs'}, 'children': c_2}) }}\n            {%- else %}\n              {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': og_s(('circle-check' if og_t(og_get(v_task, ['done'])) else 'circle')), 'Size': 24, 'Class': og_s(('shrink-0 text-primary' if og_t(og_get(v_task, ['done'])) else 'shrink-0 text-muted-foreground'))}}) }}\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                {{ og_include('compose/summary.html.j2', {'p': {'Variant': 'ghost'}, 'children': c_3}) }}\n                {%- set c_4 -%}\n                  {{ og_text(og_get(v_task, ['text'])) }}\n                {%- endset -%}\n                {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'pb-2 text-muted-foreground'}, 'children': c_4}) }}\n              {%- endset -%}\n              {{ og_include('compose/disclosure.html.j2', {'p': {'Variant': 'ghost', 'Class': 'flex-1', 'Attrs': og_attrs(['data-slot', 'task-detail'])}, 'children': c_5}) }}\n            {%- else %}\n              {%- set c_8 -%}\n                {%- set c_6 -%}\n                  {{ og_text(og_get(v_task, ['title'])) }}\n                {%- endset -%}\n                {{ og_include('compose/text.html.j2', {'p': {'Size': 'base', 'Weight': 'semibold'}, 'children': c_6}) }}\n                {%- set c_7 -%}\n                  {{ og_text(og_get(v_task, ['text'])) }}\n                {%- endset -%}\n                {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_7}) }}\n              {%- endset -%}\n              {{ og_include('compose/stack.html.j2', {'p': {'Gap': '0'}, 'children': c_8}) }}\n            {%- endif %}\n          {%- endset -%}\n          {{ og_include('compose/list-item.html.j2', {'p': {'Class': 'flex items-start gap-4', 'Attrs': og_attrs(['data-done', og_str(og_get(v_task, ['done'])), 'data-slot', 'item'])}, 'children': c_9}) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ og_include('compose/list.html.j2', {'p': {'Class': 'm-0 flex list-none flex-col gap-4 p-0', 'Attrs': og_attrs(['data-slot', 'items'])}, 'children': c_10}) }}\n    {%- endset -%}\n    {{ og_include('compose/stack.html.j2', {'p': {'Gap': '4', 'Align': 'stretch', 'Class': og_s(('rounded bg-card p-6 inset-ring inset-ring-border' if og_t(og_eq(v_layout, 'card')) else '')), 'Attrs': og_attrs(['data-slot', 'checklist'])}, 'children': c_11}) }}\n  {%- endif %}\n{%- endset -%}\n{{ og_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'measure': '2xl', 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_12)}) }}\n",
      "path": "blocks/checklist.html.j2",
      "target": "blocks/checklist.html.j2"
    }
  ],
  "meta": {
    "category": "onboarding",
    "group": "setup",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "checklist",
  "registryDependencies": [
    "disclosure",
    "empty-state",
    "icon-badge",
    "list",
    "list-item",
    "lucide-icon",
    "progress",
    "section-frame",
    "stack",
    "summary",
    "text",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Checklist",
  "type": "registry:block"
}
