{
 "id": "empty-filtered",
 "name": "Filtered to nothing",
 "purpose": "What a list shows when its filters hide every item: which filters are on, how many items they hide, and one button to clear them.",
 "use_when": [
  "when filters, not a lack of data, leave a list or table empty",
  "a list, table or board has items, but the current filters match none"
 ],
 "avoid_when": [
  "the search text matched nothing: use empty-no-results",
  "there are no items at all: use empty-first-use"
 ],
 "type": "states",
 "style": "quiet",
 "width": "medium",
 "tags": {
  "audience": "work",
  "industries": [
   "any"
  ],
  "keywords": [
   "filters",
   "no matches",
   "clear filters",
   "empty state",
   "table"
  ]
 },
 "root": ".odl-empty-filtered",
 "parts": [
  {
   "name": "title",
   "selector": ".odl-empty-filtered [data-od-slot=\"title\"]",
   "what": "the heading: what happened, in plain words, as in “No invoices match these filters”",
   "slot": "text"
  },
  {
   "name": "message",
   "selector": ".odl-empty-filtered [data-od-slot=\"message\"]",
   "what": "one or two sentences: what it means and what to do next, as in “Your filters hide all 46 invoices. Remove one, o”",
   "slot": "text"
  },
  {
   "name": "filters",
   "selector": ".odl-empty-filtered [data-od-list=\"filters\"]",
   "what": "the filters, one item each",
   "slot": "list"
  },
  {
   "name": "filters.label",
   "selector": ".odl-empty-filtered [data-od-list=\"filters\"] [data-od-slot=\"label\"]",
   "what": "the visible label, as in “Status: Overdue”",
   "slot": "text"
  },
  {
   "name": "filters.remove",
   "selector": ".odl-empty-filtered [data-od-list=\"filters\"] [data-od-action=\"remove\"]",
   "what": "the remove action",
   "slot": "action"
  },
  {
   "name": "clear",
   "selector": ".odl-empty-filtered [data-od-action=\"clear\"]",
   "what": "the Clear all filters action",
   "slot": "action"
  }
 ],
 "data": {
  "type": "object",
  "properties": {
   "title": {
    "type": "string",
    "maxLength": 48,
    "part": "title"
   },
   "message": {
    "type": "string",
    "maxLength": 96,
    "part": "message"
   },
   "filters": {
    "type": "array",
    "minItems": 1,
    "maxItems": 6,
    "items": {
     "type": "object",
     "properties": {
      "label": {
       "type": "string",
       "maxLength": 24,
       "part": "filters.label"
      }
     },
     "required": [
      "label"
     ]
    },
    "part": "filters"
   }
  },
  "required": [
   "title",
   "message",
   "filters"
  ]
 },
 "states": {
  "shown": [
   "filtered empty",
   "filter removed",
   "filters cleared",
   "hover",
   "focus"
  ],
  "edge": {
   "empty": {
    "status": "shown",
    "how": "This part is the empty state itself.",
    "evidence": "class=\"odl-art\""
   },
   "loading": {
    "status": "handled",
    "evidence": "data-od-slot",
    "how": "the Smart UI renderer draws each marked slot as a quiet block of its size while the data arrives; the static file shows the filled part"
   },
   "error": {
    "status": "not_built",
    "how": "Not applicable: an error isn't an empty list. Use page-banners or page-error."
   },
   "disabled": {
    "status": "not_built",
    "how": "No control here is ever disabled; each one always does something."
   },
   "overflow": {
    "status": "handled",
    "how": "Filter chips wrap onto more lines and stay centred.",
    "evidence": "flex-wrap: wrap"
   },
   "long_text": {
    "status": "handled",
    "how": "Titles balance and body text wraps at word boundaries inside a capped measure.",
    "evidence": "text-wrap"
   },
   "missing_image": {
    "status": "none",
    "how": "the part has no photo"
   }
  }
 },
 "tokens": [
  "--ds-border-width-default",
  "--ds-color-bg-action-primary",
  "--ds-color-bg-action-primary-hover",
  "--ds-color-bg-action-primary-pressed",
  "--ds-color-bg-neutral-subtle",
  "--ds-color-border-default",
  "--ds-color-border-focus",
  "--ds-color-border-subtle",
  "--ds-color-icon-default",
  "--ds-color-icon-subtle",
  "--ds-color-surface-raised",
  "--ds-color-surface-sunken",
  "--ds-color-text-link",
  "--ds-color-text-on-action",
  "--ds-color-text-primary",
  "--ds-color-text-secondary",
  "--ds-focus-ring-offset",
  "--ds-focus-ring-width",
  "--ds-font-weight-heading",
  "--ds-font-weight-label",
  "--ds-icon-stroke-md",
  "--ds-icon-stroke-sm",
  "--ds-layout-measure-lead",
  "--ds-motion-duration-short",
  "--ds-motion-easing-standard",
  "--ds-opacity-disabled-container",
  "--ds-radius-container",
  "--ds-radius-control",
  "--ds-radius-full",
  "--ds-size-control-lg",
  "--ds-size-control-md",
  "--ds-size-icon-lg",
  "--ds-size-icon-sm",
  "--ds-size-target-min",
  "--ds-space-inline-sm",
  "--ds-space-inline-xs",
  "--ds-space-inset-lg",
  "--ds-space-inset-md",
  "--ds-space-inset-sm",
  "--ds-space-inset-xl",
  "--ds-space-section-sm",
  "--ds-space-stack-lg",
  "--ds-space-stack-md",
  "--ds-space-stack-sm",
  "--ds-space-stack-xl",
  "--ds-state-empty-gap",
  "--ds-state-empty-measure",
  "--ds-state-empty-media",
  "--ds-text-body-md",
  "--ds-text-body-sm",
  "--ds-text-label-lg",
  "--ds-text-label-md",
  "--ds-text-title-md"
 ],
 "a11y": {
  "summary": "Each filter chip has a remove button named after the filter; focus moves to the next chip when one is removed, and a polite status says what changed.",
  "roles": [
   "list",
   "region",
   "status"
  ],
  "keyboard": [
   "Tab reaches each filter's remove button, then Clear all filters",
   "Removing a filter moves focus to the next filter, or to Clear all filters"
  ],
  "controls": {
   "button": 4,
   "input": 0,
   "link": 0,
   "select": 0,
   "textarea": 0,
   "summary": 0
  },
  "focus_visible": true,
  "reduced_motion": true,
  "min_target": true
 },
 "files": {
  "html": "components/empty-filtered/component.html",
  "bytes": 8558,
  "script": true
 },
 "source": null,
 "photos": 0,
 "urls": {
  "html": "https://opendesigner.dev/library/empty-filtered.html",
  "json": "https://opendesigner.dev/library/empty-filtered.json",
  "page": "https://opendesigner.dev/library/empty-filtered/"
 },
 "get": {
  "curl": "curl -fsSLo empty-filtered.html https://opendesigner.dev/library/empty-filtered.html",
  "opendesigner": "python3 path/to/skills/opendesigner/scripts/library.py add empty-filtered --from https://opendesigner.dev",
  "prompt": "Add the OpenDesigner component empty-filtered to this project: https://opendesigner.dev/library/empty-filtered.html. Keep its markup and states; map its --ds-* variables to my tokens."
 }
}
