{
 "id": "empty-no-results",
 "name": "No results",
 "purpose": "An empty search that repeats what was searched and where, then offers the ways to widen it: a spelling fix, a wider scope and a cleared date.",
 "use_when": [
  "when a search or lookup returns nothing",
  "a search, lookup or query returns zero items"
 ],
 "avoid_when": [
  "the list is empty because nothing exists yet: use empty-first-use",
  "only filters removed the items: use empty-filtered"
 ],
 "type": "states",
 "style": "quiet",
 "width": "medium",
 "tags": {
  "audience": "work",
  "industries": [
   "any"
  ],
  "keywords": [
   "no results",
   "search",
   "zero results",
   "did you mean",
   "empty state"
  ]
 },
 "root": ".odl-empty-no-results",
 "parts": [
  {
   "name": "query",
   "selector": ".odl-empty-no-results [data-od-slot=\"query\"]",
   "what": "what the person searched for, as in “quartely report”",
   "slot": "text"
  },
  {
   "name": "message",
   "selector": ".odl-empty-no-results [data-od-slot=\"message\"]",
   "what": "one or two sentences: what it means and what to do next, as in “We searched file names and contents in Finance, ”",
   "slot": "text"
  },
  {
   "name": "spelling",
   "selector": ".odl-empty-no-results [data-od-action=\"spelling\"]",
   "what": "the Search for “quarterly report” instead action",
   "slot": "action"
  },
  {
   "name": "label",
   "selector": ".odl-empty-no-results [data-od-slot=\"label\"]",
   "what": "the visible label, as in “Search for “quarterly report” instead”",
   "slot": "text"
  },
  {
   "name": "all_folders",
   "selector": ".odl-empty-no-results [data-od-action=\"all_folders\"]",
   "what": "the Search all folders, not only Finance action",
   "slot": "action"
  },
  {
   "name": "any_date",
   "selector": ".odl-empty-no-results [data-od-action=\"any_date\"]",
   "what": "the Search any date action",
   "slot": "action"
  }
 ],
 "data": {
  "type": "object",
  "properties": {
   "query": {
    "type": "string",
    "maxLength": 24,
    "part": "query"
   },
   "message": {
    "type": "string",
    "maxLength": 104,
    "part": "message"
   }
  },
  "required": [
   "query",
   "message"
  ]
 },
 "states": {
  "shown": [
   "no results",
   "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": "Actions stack full width under 30rem; the panel caps its width.",
    "evidence": "@container"
   },
   "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-md",
  "--ds-space-inline-sm",
  "--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-label-lg",
  "--ds-text-title-md"
 ],
 "a11y": {
  "summary": "A polite status repeats the outcome, so it is read when a search runs; each way to widen the search is a real button for your app to wire.",
  "roles": [
   "list",
   "region",
   "status"
  ],
  "keyboard": [
   "Tab moves through the three ways to widen the search; Enter or Space picks one"
  ],
  "controls": {
   "button": 3,
   "input": 0,
   "link": 0,
   "select": 0,
   "textarea": 0,
   "summary": 0
  },
  "focus_visible": true,
  "reduced_motion": true,
  "min_target": true
 },
 "files": {
  "html": "components/empty-no-results/component.html",
  "bytes": 7744,
  "script": false
 },
 "source": null,
 "photos": 0,
 "urls": {
  "html": "https://opendesigner.dev/library/empty-no-results.html",
  "json": "https://opendesigner.dev/library/empty-no-results.json",
  "page": "https://opendesigner.dev/library/empty-no-results/"
 },
 "get": {
  "curl": "curl -fsSLo empty-no-results.html https://opendesigner.dev/library/empty-no-results.html",
  "opendesigner": "python3 path/to/skills/opendesigner/scripts/library.py add empty-no-results --from https://opendesigner.dev",
  "prompt": "Add the OpenDesigner component empty-no-results to this project: https://opendesigner.dev/library/empty-no-results.html. Keep its markup and states; map its --ds-* variables to my tokens."
 }
}
