{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The orders as a table (the table layout of OrderTable): number, date, items, total and a status pill.",
  "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/order-rows.json\n    The orders as a table (the table layout of OrderTable): number, date, items, total and a status pill.\n    Props (p): orders, statuses, labels, density. -#}\n{%- set v_orders = og_def(p['orders'], none) -%}\n{%- set v_statuses = og_def(p['statuses'], none) -%}\n{%- set v_labels = og_def(p['labels'], none) -%}\n{%- set v_density = og_def(p['density'], 'default') -%}\n{%- set c_18 -%}\n  {%- set c_17 -%}\n    {%- set c_1 -%}\n      {{ og_text(og_get(v_labels, ['caption'])) }}\n    {%- endset -%}\n    {{ og_include('compose/table-caption.html.j2', {'p': {'Class': 'sr-only'}, 'children': c_1}) }}\n    {%- set c_8 -%}\n      {%- set c_7 -%}\n        {%- set c_2 -%}\n          {{ og_text(og_get(v_labels, ['number'])) }}\n        {%- endset -%}\n        {{ og_include('compose/table-head-cell.html.j2', {'p': {'Class': 'py-2', 'Attrs': og_attrs(['scope', 'col'])}, 'children': c_2}) }}\n        {%- set c_3 -%}\n          {{ og_text(og_get(v_labels, ['date'])) }}\n        {%- endset -%}\n        {{ og_include('compose/table-head-cell.html.j2', {'p': {'Class': 'py-2', 'Attrs': og_attrs(['scope', 'col'])}, 'children': c_3}) }}\n        {%- set c_4 -%}\n          {{ og_text(og_get(v_labels, ['items'])) }}\n        {%- endset -%}\n        {{ og_include('compose/table-head-cell.html.j2', {'p': {'Class': 'py-2', 'Attrs': og_attrs(['scope', 'col'])}, 'children': c_4}) }}\n        {%- set c_5 -%}\n          {{ og_text(og_get(v_labels, ['total'])) }}\n        {%- endset -%}\n        {{ og_include('compose/table-head-cell.html.j2', {'p': {'Class': 'py-2', 'Attrs': og_attrs(['scope', 'col'])}, 'children': c_5}) }}\n        {%- set c_6 -%}\n          {{ og_text(og_get(v_labels, ['status'])) }}\n        {%- endset -%}\n        {{ og_include('compose/table-head-cell.html.j2', {'p': {'Class': 'py-2', 'Attrs': og_attrs(['scope', 'col'])}, 'children': c_6}) }}\n      {%- endset -%}\n      {{ og_include('compose/table-row.html.j2', {'p': {}, 'children': c_7}) }}\n    {%- endset -%}\n    {{ og_include('compose/table-head.html.j2', {'p': {}, 'children': c_8}) }}\n    {%- set c_16 -%}\n      {%- for v_o in og_l(v_orders) %}\n        {%- set c_15 -%}\n          {%- set c_9 -%}\n            {{ og_text(og_get(v_o, ['number'])) }}\n          {%- endset -%}\n          {{ og_include('compose/table-cell.html.j2', {'p': {'Class': og_s(og_cnv(['font-semibold', ('py-2' if og_t(og_eq(v_density, 'compact')) else 'py-4')]))}, 'children': c_9}) }}\n          {%- set c_10 -%}\n            {{ og_text(og_get(v_o, ['date'])) }}\n          {%- endset -%}\n          {{ og_include('compose/table-cell.html.j2', {'p': {}, 'children': c_10}) }}\n          {%- set c_11 -%}\n            {{ og_text(og_tpl(og_get(v_labels, ['itemsCount']), [og_get(v_o, ['items'])])) }}\n          {%- endset -%}\n          {{ og_include('compose/table-cell.html.j2', {'p': {}, 'children': c_11}) }}\n          {%- set c_12 -%}\n            {{ og_text(og_money(og_get(v_o, ['total']), og_get(v_o, ['currency']))) }}\n          {%- endset -%}\n          {{ og_include('compose/table-cell.html.j2', {'p': {}, 'children': c_12}) }}\n          {%- set c_14 -%}\n            {%- set c_13 -%}\n              {{ og_text(og_at(v_statuses, og_get(v_o, ['status']))) }}\n            {%- endset -%}\n            {{ og_include('blocks/pill.html.j2', {'p': {'tone': ('green' if og_t(og_eq(og_get(v_o, ['status']), 'paid')) else ('blue' if og_t(og_eq(og_get(v_o, ['status']), 'shipped')) else ('amber' if og_t(og_eq(og_get(v_o, ['status']), 'pending')) else 'gray')))}, 'children': og_markup(c_13)}) }}\n          {%- endset -%}\n          {{ og_include('compose/table-cell.html.j2', {'p': {}, 'children': c_14}) }}\n        {%- endset -%}\n        {{ og_include('compose/table-row.html.j2', {'p': {'Class': 'border-t border-border', 'Attrs': og_attrs(['data-slot', 'item'])}, 'children': c_15}) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ og_include('compose/table-body.html.j2', {'p': {}, 'children': c_16}) }}\n  {%- endset -%}\n  {{ og_include('compose/table.html.j2', {'p': {'Class': 'w-full text-left text-sm', 'Attrs': og_attrs(['data-slot', 'order-table'])}, 'children': c_17}) }}\n{%- endset -%}\n{{ og_include('compose/box.html.j2', {'p': {'Class': 'w-full overflow-x-auto', 'Attrs': og_attrs(['data-slot', 'order-rows'])}, 'children': c_18}) }}\n",
      "path": "blocks/order-rows.html.j2",
      "target": "blocks/order-rows.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "component"
    ]
  },
  "name": "order-rows",
  "registryDependencies": [
    "box",
    "pill",
    "table",
    "table-body",
    "table-caption",
    "table-cell",
    "table-head",
    "table-head-cell",
    "table-row",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Order Rows",
  "type": "registry:component"
}
