@redvars/peacock 4.2.1 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) hide show
  1. package/dist/{BaseField-D8ByB0l3.js → BaseField-CHBcjVc2.js} +3 -3
  2. package/dist/{BaseField-D8ByB0l3.js.map → BaseField-CHBcjVc2.js.map} +1 -1
  3. package/dist/{BaseInput-xCHvT4AN.js → BaseInput-DZp2O8Gh.js} +2 -2
  4. package/dist/{BaseInput-xCHvT4AN.js.map → BaseInput-DZp2O8Gh.js.map} +1 -1
  5. package/dist/ai-badge.js +2 -2
  6. package/dist/ai-summary.js +2 -2
  7. package/dist/alert.js +2 -2
  8. package/dist/anchor-nav.js +2 -2
  9. package/dist/app-shell.js +2 -2
  10. package/dist/assistant-panel.js +2 -2
  11. package/dist/assistant-step.js +2 -2
  12. package/dist/assistant-steps.js +2 -2
  13. package/dist/avatar-group.js +2 -2
  14. package/dist/banner.js +2 -2
  15. package/dist/{base-progress-DxNgAQtw.js → base-progress-CKQ32Ruw.js} +2 -2
  16. package/dist/{base-progress-DxNgAQtw.js.map → base-progress-CKQ32Ruw.js.map} +1 -1
  17. package/dist/bottom-sheet.js +2 -2
  18. package/dist/breadcrumb.js +2 -2
  19. package/dist/calendar.js +2 -2
  20. package/dist/{canvas-base-DHKf2CmA.js → canvas-base-BoKef3yr.js} +2 -2
  21. package/dist/{canvas-base-DHKf2CmA.js.map → canvas-base-BoKef3yr.js.map} +1 -1
  22. package/dist/carousel.js +644 -0
  23. package/dist/carousel.js.map +1 -0
  24. package/dist/{cartesian-chart-G6VX1aKk.js → cartesian-chart-DqZxnoG1.js} +2 -2
  25. package/dist/{cartesian-chart-G6VX1aKk.js.map → cartesian-chart-DqZxnoG1.js.map} +1 -1
  26. package/dist/{cb-group-base-CZLzCnXK.js → cb-group-base-Bf7iOIGS.js} +2 -2
  27. package/dist/{cb-group-base-CZLzCnXK.js.map → cb-group-base-Bf7iOIGS.js.map} +1 -1
  28. package/dist/cb-group.js +3 -3
  29. package/dist/cb-rule.js +3 -3
  30. package/dist/chart-area.js +4 -4
  31. package/dist/chart-bar.js +4 -4
  32. package/dist/{chart-base-DREru2P0.js → chart-base-ByCJM_9C.js} +2 -2
  33. package/dist/{chart-base-DREru2P0.js.map → chart-base-ByCJM_9C.js.map} +1 -1
  34. package/dist/chart-doughnut.js +3 -3
  35. package/dist/chart-line.js +4 -4
  36. package/dist/chart-pie.js +3 -3
  37. package/dist/chat-event.js +2 -2
  38. package/dist/chat-message.js +2 -2
  39. package/dist/chat-thread.js +2 -2
  40. package/dist/checkbox-group.js +3 -3
  41. package/dist/checkbox.js +3 -3
  42. package/dist/chip-set.js +2 -2
  43. package/dist/chip.js +2 -2
  44. package/dist/circular-progress.js +3 -3
  45. package/dist/citation.js +2 -2
  46. package/dist/code-editor.js +3 -3
  47. package/dist/code-highlighter.js +2 -2
  48. package/dist/color-field.js +4 -4
  49. package/dist/color-picker.js +2 -2
  50. package/dist/command-palette.js +2 -2
  51. package/dist/comment-composer.js +4 -4
  52. package/dist/condition-builder.js +3 -3
  53. package/dist/confirm-dialog.js +2 -2
  54. package/dist/copy-button.js +2 -2
  55. package/dist/currency-field.js +4 -4
  56. package/dist/custom-elements-jsdocs.json +902 -74
  57. package/dist/custom-elements.json +2842 -1
  58. package/dist/date-field.js +5 -5
  59. package/dist/date-picker.js +2 -2
  60. package/dist/date-range-field.js +5 -5
  61. package/dist/datetime-field.js +5 -5
  62. package/dist/dependency-map.js +3 -3
  63. package/dist/description-item.js +2 -2
  64. package/dist/description-list.js +2 -2
  65. package/dist/{diagram-CHF70xTL.js → diagram-Cnrj-4y3.js} +2 -2
  66. package/dist/{diagram-CHF70xTL.js.map → diagram-Cnrj-4y3.js.map} +1 -1
  67. package/dist/diagram-controls.js +2 -2
  68. package/dist/diagram-minimap.js +2 -2
  69. package/dist/diagram.js +4 -4
  70. package/dist/diff-viewer.js +2 -2
  71. package/dist/discussion-activity.js +2 -2
  72. package/dist/discussion-comment.js +2 -2
  73. package/dist/discussion.js +4 -4
  74. package/dist/{document-editor-Cb9fCxvA.js → document-editor-C8ThjDQ7.js} +2 -2
  75. package/dist/{document-editor-Cb9fCxvA.js.map → document-editor-C8ThjDQ7.js.map} +1 -1
  76. package/dist/document-editor.js +3 -3
  77. package/dist/draft-card.js +2 -2
  78. package/dist/erd.js +3 -3
  79. package/dist/file-upload.js +3 -3
  80. package/dist/filter-bar.js +2 -2
  81. package/dist/flow.js +4 -4
  82. package/dist/form.js +2 -2
  83. package/dist/{generative-view-C4fJ2zI7.js → generative-view-CQ8-g1wY.js} +2 -2
  84. package/dist/{generative-view-C4fJ2zI7.js.map → generative-view-CQ8-g1wY.js.map} +1 -1
  85. package/dist/generative-view.js +3 -3
  86. package/dist/highlight-Be0wu7kh.js +252 -0
  87. package/dist/highlight-Be0wu7kh.js.map +1 -0
  88. package/dist/highlight.js +6 -0
  89. package/dist/highlight.js.map +1 -0
  90. package/dist/html-editor.js +4 -4
  91. package/dist/{i18n-controller-CH4e9sju.js → i18n-controller-DLJcJ5gO.js} +2 -2
  92. package/dist/{i18n-controller-CH4e9sju.js.map → i18n-controller-DLJcJ5gO.js.map} +1 -1
  93. package/dist/image.js +2 -2
  94. package/dist/index.js +26 -16
  95. package/dist/index.js.map +1 -1
  96. package/dist/inline-edit.js +2 -2
  97. package/dist/input.js +3 -3
  98. package/dist/json-viewer.js +2 -2
  99. package/dist/kanban.js +2 -2
  100. package/dist/kbd.js +2 -2
  101. package/dist/linear-progress.js +3 -3
  102. package/dist/listbox.js +2 -2
  103. package/dist/loader-full.js +19 -9
  104. package/dist/loader-full.js.map +1 -1
  105. package/dist/loader.js +46 -9
  106. package/dist/loader.js.map +1 -1
  107. package/dist/markdown-editor.js +4 -4
  108. package/dist/mention-input.js +4 -4
  109. package/dist/modal.js +2 -2
  110. package/dist/navigation-bar.js +2 -2
  111. package/dist/navigation-drawer.js +2 -2
  112. package/dist/navigation-rail.js +2 -2
  113. package/dist/notification-center.js +2 -2
  114. package/dist/number-field.js +4 -4
  115. package/dist/page-header.js +2 -2
  116. package/dist/pagination.js +2 -2
  117. package/dist/password-field.js +4 -4
  118. package/dist/password-rules.js +2 -2
  119. package/dist/phone-field.js +4 -4
  120. package/dist/{picker-field-loXW-xrW.js → picker-field-B5xOFc3-.js} +3 -3
  121. package/dist/{picker-field-loXW-xrW.js.map → picker-field-B5xOFc3-.js.map} +1 -1
  122. package/dist/pin-input.js +4 -4
  123. package/dist/presence-indicator.js +2 -2
  124. package/dist/prompt-input.js +4 -4
  125. package/dist/radio.js +3 -3
  126. package/dist/rating.js +3 -3
  127. package/dist/redvars-loader.js +2 -2
  128. package/dist/relative-time.js +2 -2
  129. package/dist/resizable-panels.js +2 -2
  130. package/dist/{rich-text-input-B5j0eqCJ.js → rich-text-input-C4B9D6oD.js} +3 -3
  131. package/dist/{rich-text-input-B5j0eqCJ.js.map → rich-text-input-C4B9D6oD.js.map} +1 -1
  132. package/dist/{schema-BJzlGRP1.js → schema-CPhNrjrx.js} +2 -2
  133. package/dist/{schema-BJzlGRP1.js.map → schema-CPhNrjrx.js.map} +1 -1
  134. package/dist/search.js +3 -3
  135. package/dist/select.js +4 -4
  136. package/dist/side-sheet.js +2 -2
  137. package/dist/signature-pad.js +3 -3
  138. package/dist/site-footer-group.js +142 -0
  139. package/dist/site-footer-group.js.map +1 -0
  140. package/dist/site-footer.js +338 -0
  141. package/dist/site-footer.js.map +1 -0
  142. package/dist/site-header.js +774 -0
  143. package/dist/site-header.js.map +1 -0
  144. package/dist/site-nav-group.js +123 -0
  145. package/dist/site-nav-group.js.map +1 -0
  146. package/dist/site-nav-link.js +321 -0
  147. package/dist/site-nav-link.js.map +1 -0
  148. package/dist/site-nav-menu.js +506 -0
  149. package/dist/site-nav-menu.js.map +1 -0
  150. package/dist/site-nav-shared-BDR2HG8e.js +23 -0
  151. package/dist/site-nav-shared-BDR2HG8e.js.map +1 -0
  152. package/dist/slider.js +3 -3
  153. package/dist/snackbar.js +2 -2
  154. package/dist/sparkline.js +2 -2
  155. package/dist/split-button.js +2 -2
  156. package/dist/src/__internal/i18n/strings.d.ts +24 -0
  157. package/dist/src/carousel/carousel.d.ts +135 -0
  158. package/dist/src/carousel/index.d.ts +1 -0
  159. package/dist/src/highlight/highlight.d.ts +56 -0
  160. package/dist/src/highlight/index.d.ts +2 -0
  161. package/dist/src/highlight/matches.d.ts +9 -0
  162. package/dist/src/index.d.ts +9 -0
  163. package/dist/src/site-footer/index.d.ts +2 -0
  164. package/dist/src/site-footer/site-footer-group.d.ts +34 -0
  165. package/dist/src/site-footer/site-footer.d.ts +74 -0
  166. package/dist/src/site-header/index.d.ts +4 -0
  167. package/dist/src/site-header/site-header.d.ts +170 -0
  168. package/dist/src/site-header/site-nav-group.d.ts +32 -0
  169. package/dist/src/site-header/site-nav-link.d.ts +65 -0
  170. package/dist/src/site-header/site-nav-menu.d.ts +104 -0
  171. package/dist/src/site-header/site-nav-shared.d.ts +13 -0
  172. package/dist/src/video/index.d.ts +2 -0
  173. package/dist/src/video/video-source.d.ts +12 -0
  174. package/dist/src/video/video.d.ts +80 -0
  175. package/dist/stat.js +2 -2
  176. package/dist/status-indicator.js +2 -2
  177. package/dist/step.js +2 -2
  178. package/dist/stepper.js +2 -2
  179. package/dist/{strings-o6v6Hrmn.js → strings-MXyrGrNs.js} +28 -1
  180. package/dist/strings-MXyrGrNs.js.map +1 -0
  181. package/dist/svg.js +2 -2
  182. package/dist/switch.js +3 -3
  183. package/dist/table.js +2 -2
  184. package/dist/test/carousel.test.d.ts +1 -0
  185. package/dist/test/highlight.test.d.ts +1 -0
  186. package/dist/test/site-footer.test.d.ts +1 -0
  187. package/dist/test/site-header.test.d.ts +1 -0
  188. package/dist/test/video.test.d.ts +1 -0
  189. package/dist/textarea.js +4 -4
  190. package/dist/time-field.js +5 -5
  191. package/dist/time-picker.js +2 -2
  192. package/dist/timeline-item.js +2 -2
  193. package/dist/timeline.js +2 -2
  194. package/dist/{toggle-base-BSzBnLZN.js → toggle-base-I1wE_fVe.js} +2 -2
  195. package/dist/{toggle-base-BSzBnLZN.js.map → toggle-base-I1wE_fVe.js.map} +1 -1
  196. package/dist/tour.js +2 -2
  197. package/dist/transfer-list.js +3 -3
  198. package/dist/tree-chart.js +3 -3
  199. package/dist/tree-item.js +2 -2
  200. package/dist/tree.js +2 -2
  201. package/dist/tsconfig.tsbuildinfo +1 -1
  202. package/dist/typing-indicator.js +2 -2
  203. package/dist/url-field.js +4 -4
  204. package/dist/user-menu.js +2 -2
  205. package/dist/video-IwNmHyft.js +509 -0
  206. package/dist/video-IwNmHyft.js.map +1 -0
  207. package/dist/video.js +12 -0
  208. package/dist/video.js.map +1 -0
  209. package/dist/virtual-list.js +2 -2
  210. package/dist/workflow-timeline.js +2 -2
  211. package/dist/workflow.js +3 -3
  212. package/dist/workspace-switcher.js +2 -2
  213. package/package.json +1 -1
  214. package/readme.md +5 -0
  215. package/src/__internal/i18n/strings.ts +31 -0
  216. package/src/carousel/carousel.scss +124 -0
  217. package/src/carousel/carousel.ts +547 -0
  218. package/src/carousel/index.ts +1 -0
  219. package/src/highlight/highlight.scss +25 -0
  220. package/src/highlight/highlight.ts +123 -0
  221. package/src/highlight/index.ts +2 -0
  222. package/src/highlight/matches.ts +94 -0
  223. package/src/index.ts +18 -0
  224. package/src/loader.ts +36 -0
  225. package/src/site-footer/index.ts +2 -0
  226. package/src/site-footer/site-footer-group.scss +53 -0
  227. package/src/site-footer/site-footer-group.ts +52 -0
  228. package/src/site-footer/site-footer.scss +171 -0
  229. package/src/site-footer/site-footer.ts +151 -0
  230. package/src/site-header/index.ts +8 -0
  231. package/src/site-header/site-header.scss +238 -0
  232. package/src/site-header/site-header.ts +565 -0
  233. package/src/site-header/site-nav-group.scss +29 -0
  234. package/src/site-header/site-nav-group.ts +57 -0
  235. package/src/site-header/site-nav-link.scss +154 -0
  236. package/src/site-header/site-nav-link.ts +140 -0
  237. package/src/site-header/site-nav-menu.scss +182 -0
  238. package/src/site-header/site-nav-menu.ts +336 -0
  239. package/src/site-header/site-nav-shared.ts +27 -0
  240. package/src/video/index.ts +2 -0
  241. package/src/video/video-source.ts +80 -0
  242. package/src/video/video.scss +183 -0
  243. package/src/video/video.ts +246 -0
  244. package/dist/strings-o6v6Hrmn.js.map +0 -1
@@ -2204,6 +2204,124 @@
2204
2204
  }
2205
2205
  }
2206
2206
  },
2207
+ {
2208
+ "label": "Carousel",
2209
+ "tag": "wc-carousel",
2210
+ "rawTag": "carousel",
2211
+ "summary": "A row of slides shown one or a few at a time, with previous and next buttons and pickers.",
2212
+ "overview": "<p>Carousel shows its children as slides, <code>per-view</code> at a time, for screenshots on a\nproduct page or a row of testimonials. The slides scroll with snap points, so touch swipe,\ntrackpads and the scroll wheel work as they do anywhere else, and previous, next and picker\nbuttons sit under them. With more than seven pages a \"3 of 9\" counter replaces the pickers.</p>\n<p>Each slide is never narrower than 15rem, so a carousel of three drops to two and then one as its\ncontainer narrows. Slides out of view are <code>inert</code>, so Tab never reaches a link the\nperson cannot see.</p>\n<p>Slides do not move on their own unless you set <code>autoplay</code>, and then a button to stop\nthem comes first in the controls. Rotation pauses while the pointer rests on the carousel or focus\nis inside it, stops for good when the person uses any control, and does not start at all when the\nperson asks for reduced motion.</p>",
2213
+ "slot": "- The slides: any elements, one per slide. Give a slide an `aria-label` to name it; otherwise it is named \"2 of 5\".",
2214
+ "csspart": "controls - The row of buttons under the slides.",
2215
+ "cssprop": "--carousel-gap - Space between slides. Defaults to `--spacing-200`.",
2216
+ "fires": "change - Dispatched when the slides in view change because the person used a control or scrolled, or autoplay moved on.",
2217
+ "example": "```html\n<wc-carousel label=\"Product screenshots\" autoplay loop>\n <img src=\"/img/workspace.webp\" alt=\"The ITSM workspace\" />\n <img src=\"/img/portal.webp\" alt=\"The customer portal\" />\n</wc-carousel>\n```",
2218
+ "tags": "media layout",
2219
+ "customElement": {
2220
+ "kind": "class",
2221
+ "description": "",
2222
+ "cssProperties": [
2223
+ {
2224
+ "description": "Space between slides. Defaults to `--spacing-200`.",
2225
+ "name": "--carousel-gap"
2226
+ }
2227
+ ],
2228
+ "cssParts": [
2229
+ {
2230
+ "description": "The carousel region.",
2231
+ "name": "base"
2232
+ },
2233
+ {
2234
+ "description": "The scrolling row of slides.",
2235
+ "name": "track"
2236
+ },
2237
+ {
2238
+ "description": "The row of buttons under the slides.",
2239
+ "name": "controls"
2240
+ }
2241
+ ],
2242
+ "slots": [
2243
+ {
2244
+ "description": "The slides: any elements, one per slide. Give a slide an `aria-label` to name it; otherwise it is named \"2 of 5\".",
2245
+ "name": ""
2246
+ }
2247
+ ],
2248
+ "events": [
2249
+ {
2250
+ "name": "change",
2251
+ "type": {
2252
+ "text": "CustomEvent<CarouselChangeDetail>"
2253
+ },
2254
+ "description": "Dispatched when the slides in view change because the person used a control or scrolled, or autoplay moved on."
2255
+ }
2256
+ ],
2257
+ "attributes": [
2258
+ {
2259
+ "name": "label",
2260
+ "type": {
2261
+ "text": "string"
2262
+ },
2263
+ "default": "''",
2264
+ "description": "What the slides are, such as \"Testimonials\": the name of the carousel region.",
2265
+ "fieldName": "label"
2266
+ },
2267
+ {
2268
+ "name": "per-view",
2269
+ "type": {
2270
+ "text": "number"
2271
+ },
2272
+ "default": "1",
2273
+ "description": "How many slides show at once. Fewer show when the carousel is too narrow for them.",
2274
+ "fieldName": "perView"
2275
+ },
2276
+ {
2277
+ "name": "index",
2278
+ "type": {
2279
+ "text": "number"
2280
+ },
2281
+ "default": "0",
2282
+ "description": "The first slide in view, from 0.",
2283
+ "fieldName": "index"
2284
+ },
2285
+ {
2286
+ "name": "loop",
2287
+ "type": {
2288
+ "text": "boolean"
2289
+ },
2290
+ "default": "false",
2291
+ "description": "Whether previous and next wrap around from the last page to the first and back.",
2292
+ "fieldName": "loop"
2293
+ },
2294
+ {
2295
+ "name": "autoplay",
2296
+ "type": {
2297
+ "text": "boolean"
2298
+ },
2299
+ "default": "false",
2300
+ "description": "Whether the slides move on by themselves. A stop button comes first in the controls.",
2301
+ "fieldName": "autoplay"
2302
+ },
2303
+ {
2304
+ "name": "interval",
2305
+ "type": {
2306
+ "text": "number"
2307
+ },
2308
+ "default": "5000",
2309
+ "description": "How long each page shows while `autoplay` runs, in milliseconds.",
2310
+ "fieldName": "interval"
2311
+ }
2312
+ ],
2313
+ "superclass": {
2314
+ "name": "LitElement",
2315
+ "package": "lit"
2316
+ },
2317
+ "tagName": "wc-carousel",
2318
+ "customElement": true,
2319
+ "rawTag": {
2320
+ "name": "carousel",
2321
+ "description": ""
2322
+ }
2323
+ }
2324
+ },
2207
2325
  {
2208
2326
  "label": "CB Divider",
2209
2327
  "tag": "wc-cb-divider",
@@ -12224,6 +12342,73 @@
12224
12342
  }
12225
12343
  }
12226
12344
  },
12345
+ {
12346
+ "label": "Highlight",
12347
+ "tag": "wc-highlight",
12348
+ "rawTag": "highlight",
12349
+ "summary": "Marks the words of a search query in a piece of text.",
12350
+ "overview": "<p>Highlight shows its text with each word of <code>query</code> marked, for search results in a\nknowledge base, a site search or a filtered list. Words match on their own, in any order,\nignoring case and accents, so \"resume\" marks \"Résumé\".</p>\n<p>It reads its children as plain text and never parses HTML, so text from records or a search\nindex is safe to put in it. When the server already knows where the matches are, set\n<code>ranges</code> instead of <code>query</code>.</p>\n<p>Marks use the tertiary container colour, so they differ from links and from the selection.</p>",
12351
+ "slot": "- The text. Only its text content is used; markup in it is not rendered.",
12352
+ "csspart": "mark - Each marked run of text, a `<mark>` element.",
12353
+ "cssprop": "--highlight-color - Text colour of the marks. Defaults to `--color-on-tertiary-container`.",
12354
+ "example": "```html\n<wc-highlight query=\"reset password\">\n If you forgot your password, choose Forgot password and reset it from the link we email you.\n</wc-highlight>\n```",
12355
+ "tags": "display search",
12356
+ "customElement": {
12357
+ "kind": "class",
12358
+ "description": "",
12359
+ "cssProperties": [
12360
+ {
12361
+ "description": "Background of the marks. Defaults to `--color-tertiary-container`.",
12362
+ "name": "--highlight-background"
12363
+ },
12364
+ {
12365
+ "description": "Text colour of the marks. Defaults to `--color-on-tertiary-container`.",
12366
+ "name": "--highlight-color"
12367
+ }
12368
+ ],
12369
+ "cssParts": [
12370
+ {
12371
+ "description": "Each marked run of text, a `<mark>` element.",
12372
+ "name": "mark"
12373
+ }
12374
+ ],
12375
+ "slots": [
12376
+ {
12377
+ "description": "The text. Only its text content is used; markup in it is not rendered.",
12378
+ "name": ""
12379
+ }
12380
+ ],
12381
+ "attributes": [
12382
+ {
12383
+ "name": "query",
12384
+ "type": {
12385
+ "text": "string"
12386
+ },
12387
+ "default": "''",
12388
+ "description": "The search query whose words are marked.",
12389
+ "fieldName": "query"
12390
+ },
12391
+ {
12392
+ "name": "locale",
12393
+ "type": {
12394
+ "text": "string | undefined"
12395
+ },
12396
+ "description": "The language to fold case in. Defaults to the nearest `lang`, else the browser's.",
12397
+ "fieldName": "locale"
12398
+ }
12399
+ ],
12400
+ "superclass": {
12401
+ "name": "LitElement",
12402
+ "package": "lit"
12403
+ },
12404
+ "tagName": "wc-highlight",
12405
+ "customElement": true,
12406
+ "rawTag": {
12407
+ "name": "highlight",
12408
+ "description": ""
12409
+ }
12410
+ }
12411
+ },
12227
12412
  {
12228
12413
  "label": "Hover Card",
12229
12414
  "tag": "wc-hover-card",
@@ -22408,117 +22593,651 @@
22408
22593
  }
22409
22594
  },
22410
22595
  {
22411
- "label": "Skeleton",
22412
- "tag": "wc-skeleton",
22413
- "rawTag": "skeleton",
22414
- "summary": "A placeholder shape that stands in for content that has not arrived yet.",
22415
- "overview": "<p>A skeleton fills the size you give it and, while <code>visible</code> is set, shows a\nsweeping animation. Size it to match the content it replaces, and match its corners with the\n<code>--skeleton-container-shape</code> properties, for example round for an avatar. It ignores\npointer events.</p>\n<p>A skeleton is a look, not a busy state: a component working on something uses\n<code>loading</code>. Chips, list items and buttons have their own <code>skeleton</code>\nattribute for this placeholder look.</p>",
22416
- "tags": "display",
22417
- "example": "```html\n<wc-skeleton visible></wc-skeleton>\n```",
22596
+ "label": "Site Footer",
22597
+ "tag": "wc-site-footer",
22598
+ "rawTag": "site-footer",
22599
+ "summary": "The footer of a website or portal: brand, columns of links, legal links and social links.",
22600
+ "overview": "<p>Site footer is the page's <code>contentinfo</code> landmark. The <code>brand</code> slot and\nthe <code>wc-site-footer-group</code> columns sit at the top; a bottom row holds the\n<code>legal</code> slot (copyright and policy links) and the <code>social</code> slot (icon\nbuttons that link to the site's profiles).</p>\n<p>Slots that are empty take no room, so the same component is a full website footer or a slim\nportal footer with one row of text and links.</p>\n<p>The footer responds to its own width, not the viewport's: narrower than 48rem the columns wrap\ntwo to a row, and narrower than 24rem they stack. Links stay visible at every width, one tap away,\nrather than folded into an accordion.</p>",
22601
+ "slot": "social - Links to the site's profiles, usually `wc-icon-button shape=\"round\"` with an `aria-label` each.",
22602
+ "csspart": "bottom - The row of the legal and social slots.",
22603
+ "cssprop": "--site-footer-max-width - Width the footer's content is centred in. Defaults to `none`.",
22604
+ "example": "```html\n<wc-site-footer>\n <span slot=\"legal\">© Acme Corp. Support hours 08:00–18:00 CET.</span>\n <a slot=\"legal\" href=\"/p/support/contact\">Contact us</a>\n <a slot=\"legal\" href=\"/p/support/privacy\">Privacy</a>\n</wc-site-footer>\n```",
22605
+ "tags": "navigation layout",
22606
+ "customElement": {
22607
+ "kind": "class",
22608
+ "description": "",
22609
+ "cssProperties": [
22610
+ {
22611
+ "description": "Background of the footer. Defaults to `--color-surface-container-low`.",
22612
+ "name": "--site-footer-background"
22613
+ },
22614
+ {
22615
+ "description": "Width the footer's content is centred in. Defaults to `none`.",
22616
+ "name": "--site-footer-max-width"
22617
+ }
22618
+ ],
22619
+ "cssParts": [
22620
+ {
22621
+ "description": "The `<footer>` element.",
22622
+ "name": "base"
22623
+ },
22624
+ {
22625
+ "description": "The row of the brand and the columns.",
22626
+ "name": "top"
22627
+ },
22628
+ {
22629
+ "description": "The columns.",
22630
+ "name": "groups"
22631
+ },
22632
+ {
22633
+ "description": "The row of the legal and social slots.",
22634
+ "name": "bottom"
22635
+ }
22636
+ ],
22637
+ "slots": [
22638
+ {
22639
+ "description": "The site's logo and name, and an optional line of text under it.",
22640
+ "name": "brand"
22641
+ },
22642
+ {
22643
+ "description": "The footer's `wc-site-footer-group` columns.",
22644
+ "name": ""
22645
+ },
22646
+ {
22647
+ "description": "Copyright and policy links, in small type.",
22648
+ "name": "legal"
22649
+ },
22650
+ {
22651
+ "description": "Links to the site's profiles, usually `wc-icon-button shape=\"round\"` with an `aria-label` each.",
22652
+ "name": "social"
22653
+ }
22654
+ ],
22655
+ "superclass": {
22656
+ "name": "LitElement",
22657
+ "package": "lit"
22658
+ },
22659
+ "tagName": "wc-site-footer",
22660
+ "customElement": true,
22661
+ "rawTag": {
22662
+ "name": "site-footer",
22663
+ "description": ""
22664
+ }
22665
+ }
22666
+ },
22667
+ {
22668
+ "label": "Site Footer Group",
22669
+ "tag": "wc-site-footer-group",
22670
+ "rawTag": "site-footer-group",
22671
+ "summary": "A titled column of links in a site footer.",
22672
+ "overview": "<p>A column of a <code>wc-site-footer</code>: a title and a list of links. The column is a\nnavigation landmark named by its <code>label</code>, so a screen reader lists \"Product\",\n\"Company\" and so on among the page's landmarks.</p>\n<p>Put plain <code>&lt;a&gt;</code> elements or <code>wc-link</code> in it; the group lays them\nout and styles plain links.</p>",
22673
+ "slot": "- The column's links.",
22674
+ "csspart": "title - The column's title.",
22675
+ "example": "```html\n<wc-site-footer-group label=\"Developers\">\n <a href=\"/docs\">Docs</a>\n <a href=\"https://peacock.redvars.com\">Peacock</a>\n</wc-site-footer-group>\n```",
22676
+ "tags": "navigation",
22418
22677
  "customElement": {
22419
22678
  "kind": "class",
22420
22679
  "description": "",
22680
+ "cssParts": [
22681
+ {
22682
+ "description": "The `<nav>` element.",
22683
+ "name": "nav"
22684
+ },
22685
+ {
22686
+ "description": "The column's title.",
22687
+ "name": "title"
22688
+ }
22689
+ ],
22690
+ "slots": [
22691
+ {
22692
+ "description": "The column's links.",
22693
+ "name": ""
22694
+ }
22695
+ ],
22421
22696
  "attributes": [
22422
22697
  {
22423
- "name": "visible",
22698
+ "name": "label",
22424
22699
  "type": {
22425
- "text": "boolean"
22700
+ "text": "string"
22426
22701
  },
22427
- "default": "false",
22428
- "description": "When true, the skeleton animation is shown. A skeleton is the placeholder look of content\nthat has not arrived yet, not a busy state: components that are working on something use\n`loading` (ADR-030001), and `skeleton` on a component (chip, list item, button) asks for\nthis placeholder look.",
22429
- "fieldName": "visible"
22702
+ "default": "''",
22703
+ "description": "The column's title, also the name of its navigation landmark.",
22704
+ "fieldName": "label"
22430
22705
  }
22431
22706
  ],
22432
22707
  "superclass": {
22433
22708
  "name": "LitElement",
22434
22709
  "package": "lit"
22435
22710
  },
22436
- "tagName": "wc-skeleton",
22711
+ "tagName": "wc-site-footer-group",
22437
22712
  "customElement": true,
22438
22713
  "rawTag": {
22439
- "name": "skeleton",
22714
+ "name": "site-footer-group",
22440
22715
  "description": ""
22441
22716
  }
22442
22717
  }
22443
22718
  },
22444
22719
  {
22445
- "label": "Slider",
22446
- "tag": "wc-slider",
22447
- "rawTag": "slider",
22448
- "summary": "A track with a thumb the person drags to pick a number from a range.",
22449
- "overview": "<p>The slider is form-associated: its <code>value</code> is submitted under its <code>name</code>,\nand <code>form.reset()</code> restores the starting value. Without a <code>value</code> it starts\nat the middle of <code>min</code>–<code>max</code>, like a native range input.</p>\n<p><code>label</code> is shown above the track, as on fields, and names the thumb; without it the\nthumb is named \"Slider\". <code>value-text</code> (the <code>valueText</code> property) formats\nthe value for <code>aria-valuetext</code> and the visible value, for example\n<code>v =&gt; `${v}%`</code>.</p>\n<p><code>required</code> does not apply: a slider always has a value. <code>readonly</code> keeps\nit focusable but its value cannot change.</p>\n<p>Keyboard: the arrows move one step (ten with Shift), Page Up and Page Down move ten steps,\nHome and End go to <code>min</code> and <code>max</code>.</p>",
22450
- "fires": "change - Dispatched when the slider interaction ends.",
22451
- "example": "```html\n<wc-slider label=\"Volume\" min=\"0\" max=\"100\" value=\"50\"></wc-slider>\n```",
22452
- "tags": "input, form",
22720
+ "label": "Site Header",
22721
+ "tag": "wc-site-header",
22722
+ "rawTag": "site-header",
22723
+ "summary": "The top navigation bar of a website or portal: brand, links, menus and actions.",
22724
+ "overview": "<p>Site header is the banner of a site: the brand at the start, the site's navigation, and actions\nsuch as Sign in or a call to action at the end. It is for websites and portals. For an\napplication's own chrome use <code>wc-app-bar</code>, and for a bar at the bottom of a phone\nscreen <code>wc-navigation-bar</code>.</p>\n<p>Put <code>wc-site-nav-link</code> elements in it for destinations and\n<code>wc-site-nav-menu</code> elements for sections with several pages. A menu is a disclosure\nbutton that opens a panel of links, as a list or, with <code>layout=\"columns\"</code>, as columns\nof <code>wc-site-nav-group</code> with a featured card. These are links and disclosure buttons,\nnot an ARIA menu, so Tab moves through them as through any links.</p>\n<p>When the header is narrower than <code>collapse-at</code> (720px by default), or too narrow\nfor the bar's content to fit, the links and\nmenus move into a drawer that slides in from the start edge, opened by a menu button. The\n<code>actions</code> slot moves to the bottom of the drawer; the <code>end</code> slot stays in\nthe bar, for something that must always show, such as a user menu or one short button.</p>\n<p>A visually hidden <em>Skip to main content</em> link is the first focusable element. It moves\nfocus to <code>skip-target</code> (<code>#main</code> by default).</p>",
22725
+ "slot": "end - Content that always stays in the bar, such as a `wc-user-menu`, a search button or one short call to action.",
22726
+ "fires": "close - Dispatched when the navigation drawer closes: Escape, a click on the scrim, choosing a link, or `hideDrawer()` (and widening the header past `collapse-at`).",
22727
+ "csspart": "drawer - The drawer `<dialog>` on a narrow header.",
22728
+ "cssprop": "--site-header-drawer-width - Width of the drawer. Defaults to 22.5rem.",
22729
+ "example": "```html\n<wc-site-header sticky hide-on-scroll>\n <a slot=\"brand\" href=\"/p/support\">Acme Support</a>\n <wc-site-nav-link href=\"/p/support\" current>Home</wc-site-nav-link>\n <wc-site-nav-link href=\"/p/support/tickets\">My tickets</wc-site-nav-link>\n <wc-user-menu slot=\"end\" name=\"Ada Lovelace\"></wc-user-menu>\n</wc-site-header>\n```",
22730
+ "tags": "navigation layout",
22453
22731
  "customElement": {
22454
22732
  "kind": "class",
22455
22733
  "description": "",
22456
- "events": [
22734
+ "cssProperties": [
22457
22735
  {
22458
- "name": "type",
22459
- "type": {
22460
- "text": "CustomEvent"
22461
- },
22462
- "inheritedFrom": {
22463
- "name": "BaseInput",
22464
- "module": "src/input/BaseInput.ts"
22465
- }
22736
+ "description": "Height of the bar. Defaults to 4rem.",
22737
+ "name": "--site-header-height"
22466
22738
  },
22467
22739
  {
22468
- "type": {
22469
- "text": "CustomEvent<{value: number}>"
22470
- },
22471
- "description": "Dispatched when the slider value changes during interaction.",
22472
- "name": "input"
22740
+ "description": "Background of the bar. Defaults to `--color-surface`.",
22741
+ "name": "--site-header-background"
22473
22742
  },
22474
22743
  {
22475
- "type": {
22476
- "text": "CustomEvent<{value: number}>"
22477
- },
22478
- "description": "Dispatched when the slider interaction ends.",
22479
- "name": "change"
22744
+ "description": "Width the bar's content is centred in, for a full-bleed background with a narrower content column. Defaults to `none`.",
22745
+ "name": "--site-header-max-width"
22480
22746
  },
22481
22747
  {
22482
- "type": {
22483
- "text": "CustomEvent<SuggestionAcceptDetail>"
22484
- },
22485
- "description": "Fired when a suggested value is accepted: the person edited it (`cause: 'edit'`), the form was submitted (`'submit'`) or `acceptSuggestion()` was called (`'action'`).",
22486
- "name": "accept",
22487
- "inheritedFrom": {
22488
- "name": "BaseInput",
22489
- "module": "src/input/BaseInput.ts"
22490
- }
22748
+ "description": "Stacking order of the header and its panels. Defaults to 10.",
22749
+ "name": "--site-header-z-index"
22491
22750
  },
22492
22751
  {
22493
- "type": {
22494
- "text": "CustomEvent<SuggestionDismissDetail>"
22495
- },
22496
- "description": "Fired when the person clears a suggestion, before `input` and `change` with the restored value.",
22497
- "name": "dismiss",
22498
- "inheritedFrom": {
22499
- "name": "BaseInput",
22500
- "module": "src/input/BaseInput.ts"
22501
- }
22752
+ "description": "Width of the drawer. Defaults to 22.5rem.",
22753
+ "name": "--site-header-drawer-width"
22502
22754
  }
22503
22755
  ],
22504
- "attributes": [
22756
+ "cssParts": [
22505
22757
  {
22506
- "name": "min",
22507
- "type": {
22508
- "text": "number"
22509
- },
22510
- "default": "0",
22511
- "description": "The minimum value of the slider.",
22512
- "fieldName": "min"
22758
+ "description": "The `<header>` bar.",
22759
+ "name": "bar"
22513
22760
  },
22514
22761
  {
22515
- "name": "max",
22516
- "type": {
22517
- "text": "number"
22518
- },
22519
- "default": "100",
22520
- "description": "The maximum value of the slider.",
22521
- "fieldName": "max"
22762
+ "description": "The navigation landmark in the bar.",
22763
+ "name": "nav"
22764
+ },
22765
+ {
22766
+ "description": "The skip link.",
22767
+ "name": "skip-link"
22768
+ },
22769
+ {
22770
+ "description": "The button that opens the drawer.",
22771
+ "name": "menu-button"
22772
+ },
22773
+ {
22774
+ "description": "The drawer `<dialog>` on a narrow header.",
22775
+ "name": "drawer"
22776
+ }
22777
+ ],
22778
+ "slots": [
22779
+ {
22780
+ "description": "The site's logo and name, usually a link to the home page.",
22781
+ "name": "brand"
22782
+ },
22783
+ {
22784
+ "description": "The navigation: `wc-site-nav-link` and `wc-site-nav-menu` elements.",
22785
+ "name": ""
22786
+ },
22787
+ {
22788
+ "description": "Buttons at the end of the bar, such as Sign in and a call to action. They move to the bottom of the drawer when the header is collapsed.",
22789
+ "name": "actions"
22790
+ },
22791
+ {
22792
+ "description": "Content that always stays in the bar, such as a `wc-user-menu`, a search button or one short call to action.",
22793
+ "name": "end"
22794
+ }
22795
+ ],
22796
+ "events": [
22797
+ {
22798
+ "name": "open",
22799
+ "type": {
22800
+ "text": "CustomEvent"
22801
+ },
22802
+ "description": "Dispatched when the navigation drawer opens on a narrow header."
22803
+ },
22804
+ {
22805
+ "name": "close",
22806
+ "type": {
22807
+ "text": "CustomEvent<{reason: 'escape' | 'light-dismiss' | 'action' | 'api'}>"
22808
+ },
22809
+ "description": "Dispatched when the navigation drawer closes: Escape, a click on the scrim, choosing a link, or `hideDrawer()` (and widening the header past `collapse-at`)."
22810
+ }
22811
+ ],
22812
+ "attributes": [
22813
+ {
22814
+ "name": "label",
22815
+ "type": {
22816
+ "text": "string"
22817
+ },
22818
+ "default": "''",
22819
+ "description": "Accessible name of the navigation landmark. Defaults to Peacock's \"Main navigation\".",
22820
+ "fieldName": "label"
22821
+ },
22822
+ {
22823
+ "name": "collapse-at",
22824
+ "type": {
22825
+ "text": "number"
22826
+ },
22827
+ "default": "720",
22828
+ "description": "Header width in pixels below which the navigation moves into a drawer. The header also collapses whenever the bar's content does not fit.",
22829
+ "fieldName": "collapseAt"
22830
+ },
22831
+ {
22832
+ "name": "sticky",
22833
+ "type": {
22834
+ "text": "boolean"
22835
+ },
22836
+ "default": "false",
22837
+ "description": "Keeps the header at the top of the viewport while the page scrolls.",
22838
+ "fieldName": "sticky"
22839
+ },
22840
+ {
22841
+ "name": "hide-on-scroll",
22842
+ "type": {
22843
+ "text": "boolean"
22844
+ },
22845
+ "default": "false",
22846
+ "description": "With `sticky`, slides the header away while scrolling down and back while scrolling up.",
22847
+ "fieldName": "hideOnScroll"
22848
+ },
22849
+ {
22850
+ "name": "skip-target",
22851
+ "type": {
22852
+ "text": "string"
22853
+ },
22854
+ "default": "'#main'",
22855
+ "description": "Selector of the element the skip link moves focus to.",
22856
+ "fieldName": "skipTarget"
22857
+ },
22858
+ {
22859
+ "name": "open-on-hover",
22860
+ "type": {
22861
+ "text": "boolean"
22862
+ },
22863
+ "default": "false",
22864
+ "description": "Opens a menu's panel when a mouse rests on it, as well as on click.",
22865
+ "fieldName": "openOnHover"
22866
+ },
22867
+ {
22868
+ "name": "drawer-open",
22869
+ "type": {
22870
+ "text": "boolean"
22871
+ },
22872
+ "default": "false",
22873
+ "description": "Whether the navigation drawer is open. Only has an effect while the header is collapsed.",
22874
+ "fieldName": "drawerOpen"
22875
+ }
22876
+ ],
22877
+ "superclass": {
22878
+ "name": "LitElement",
22879
+ "package": "lit"
22880
+ },
22881
+ "tagName": "wc-site-header",
22882
+ "customElement": true,
22883
+ "rawTag": {
22884
+ "name": "site-header",
22885
+ "description": ""
22886
+ }
22887
+ }
22888
+ },
22889
+ {
22890
+ "label": "Site Nav Group",
22891
+ "tag": "wc-site-nav-group",
22892
+ "rawTag": "site-nav-group",
22893
+ "summary": "A titled column of links in a site header menu.",
22894
+ "overview": "<p>Groups <code>wc-site-nav-link</code> elements under a title inside a\n<code>wc-site-nav-menu</code>, usually one with <code>layout=\"columns\"</code>, where each group is\na column. The group is labelled by its title for assistive technology.</p>",
22895
+ "slot": "- The group's `wc-site-nav-link` elements.",
22896
+ "csspart": "title - The group's title.",
22897
+ "example": "```html\n<wc-site-nav-group label=\"Build\">\n <wc-site-nav-link href=\"/tables\">Tables and forms</wc-site-nav-link>\n <wc-site-nav-link href=\"/rules\">Rules</wc-site-nav-link>\n</wc-site-nav-group>\n```",
22898
+ "tags": "navigation",
22899
+ "customElement": {
22900
+ "kind": "class",
22901
+ "description": "",
22902
+ "cssParts": [
22903
+ {
22904
+ "description": "The group's title.",
22905
+ "name": "title"
22906
+ }
22907
+ ],
22908
+ "slots": [
22909
+ {
22910
+ "description": "The group's `wc-site-nav-link` elements.",
22911
+ "name": ""
22912
+ }
22913
+ ],
22914
+ "attributes": [
22915
+ {
22916
+ "name": "label",
22917
+ "type": {
22918
+ "text": "string"
22919
+ },
22920
+ "default": "''",
22921
+ "description": "The group's title.",
22922
+ "fieldName": "label"
22923
+ }
22924
+ ],
22925
+ "superclass": {
22926
+ "name": "LitElement",
22927
+ "package": "lit"
22928
+ },
22929
+ "tagName": "wc-site-nav-group",
22930
+ "customElement": true,
22931
+ "rawTag": {
22932
+ "name": "site-nav-group",
22933
+ "description": ""
22934
+ }
22935
+ }
22936
+ },
22937
+ {
22938
+ "label": "Site Nav Link",
22939
+ "tag": "wc-site-nav-link",
22940
+ "rawTag": "site-nav-link",
22941
+ "summary": "A destination in a site header, in the bar or in a menu's panel.",
22942
+ "overview": "<p>A link of a <code>wc-site-header</code>. In the bar it is a compact text link; inside a\n<code>wc-site-nav-menu</code> it is a row that can show an icon and a description. Mark the page\nthe person is on with <code>current</code>, which sets <code>aria-current=\"page\"</code>.</p>\n<p>It renders a real <code>&lt;a&gt;</code>, so middle-click, Open in new tab and a router that\nlistens for clicks on links all work.</p>",
22943
+ "slot": "icon - An optional icon, shown in a menu's panel.",
22944
+ "csspart": "description - The description text.",
22945
+ "example": "```html\n<wc-site-nav-link href=\"/rules\" description=\"Business logic without servers\">\n <wc-icon slot=\"icon\" name=\"rule\"></wc-icon>\n Rules\n</wc-site-nav-link>\n```",
22946
+ "tags": "navigation",
22947
+ "customElement": {
22948
+ "kind": "class",
22949
+ "description": "",
22950
+ "cssParts": [
22951
+ {
22952
+ "description": "The `<a>` element.",
22953
+ "name": "link"
22954
+ },
22955
+ {
22956
+ "description": "The description text.",
22957
+ "name": "description"
22958
+ }
22959
+ ],
22960
+ "slots": [
22961
+ {
22962
+ "description": "The link's text.",
22963
+ "name": ""
22964
+ },
22965
+ {
22966
+ "description": "An optional icon, shown in a menu's panel.",
22967
+ "name": "icon"
22968
+ }
22969
+ ],
22970
+ "attributes": [
22971
+ {
22972
+ "name": "href",
22973
+ "type": {
22974
+ "text": "string"
22975
+ },
22976
+ "default": "''",
22977
+ "description": "The link's address.",
22978
+ "fieldName": "href"
22979
+ },
22980
+ {
22981
+ "name": "target",
22982
+ "type": {
22983
+ "text": "string | undefined"
22984
+ },
22985
+ "description": "Where to open the link, as on `<a>`.",
22986
+ "fieldName": "target"
22987
+ },
22988
+ {
22989
+ "name": "rel",
22990
+ "type": {
22991
+ "text": "string | undefined"
22992
+ },
22993
+ "description": "Relationship to the linked page, as on `<a>`.",
22994
+ "fieldName": "rel"
22995
+ },
22996
+ {
22997
+ "name": "current",
22998
+ "type": {
22999
+ "text": "boolean"
23000
+ },
23001
+ "default": "false",
23002
+ "description": "Marks the page the person is on (`aria-current=\"page\"`).",
23003
+ "fieldName": "current"
23004
+ },
23005
+ {
23006
+ "name": "description",
23007
+ "type": {
23008
+ "text": "string"
23009
+ },
23010
+ "default": "''",
23011
+ "description": "A line under the label, shown in a menu's panel.",
23012
+ "fieldName": "description"
23013
+ }
23014
+ ],
23015
+ "superclass": {
23016
+ "name": "LitElement",
23017
+ "package": "lit"
23018
+ },
23019
+ "tagName": "wc-site-nav-link",
23020
+ "customElement": true,
23021
+ "rawTag": {
23022
+ "name": "site-nav-link",
23023
+ "description": ""
23024
+ }
23025
+ }
23026
+ },
23027
+ {
23028
+ "label": "Site Nav Menu",
23029
+ "tag": "wc-site-nav-menu",
23030
+ "rawTag": "site-nav-menu",
23031
+ "summary": "A section of a site header that opens a panel of links.",
23032
+ "overview": "<p>A disclosure button in a <code>wc-site-header</code> that shows a panel of\n<code>wc-site-nav-link</code> elements under the bar. The default <code>layout=\"list\"</code> is a\nshort list under the button. <code>layout=\"columns\"</code> is a wide panel of\n<code>wc-site-nav-group</code> columns, with an optional featured card in the\n<code>feature</code> slot.</p>\n<p>It follows the disclosure navigation pattern, not the ARIA menu pattern: the button has\n<code>aria-expanded</code>, and the links follow it in the Tab order while the panel is open.\nClick, Enter or Space opens the panel; Escape closes it and returns focus to the button, and so\ndoes a click outside or moving focus out of it. Only one menu in a header is open at a time.\nArrow Down on the button opens the panel at its first link, and the arrow keys, Home and End move\nbetween the links.</p>\n<p>The menu shows as current when one of its links is <code>current</code>. When the header is\ncollapsed into its drawer, the menu becomes an expandable section of the drawer, expanded when it\nholds the current page.</p>",
23033
+ "slot": "feature - A card shown at the end of a `columns` panel, such as a `wc-card` announcing news. Left out of the drawer.",
23034
+ "fires": "close - Dispatched when the person closes the panel: the button, Escape, or a click or focus outside.",
23035
+ "csspart": "panel - The panel of links.",
23036
+ "cssprop": "--site-nav-menu-columns-max-width - Widest a `columns` panel grows. Defaults to 60rem.",
23037
+ "example": "```html\n<wc-site-nav-menu label=\"Product\" layout=\"columns\">\n <wc-site-nav-group label=\"Build\">\n <wc-site-nav-link href=\"/tables\" description=\"Describe data, get secured screens\">\n <wc-icon slot=\"icon\" name=\"table\"></wc-icon>Tables and forms\n </wc-site-nav-link>\n </wc-site-nav-group>\n <wc-card slot=\"feature\" href=\"/blog/1-0\">…</wc-card>\n</wc-site-nav-menu>\n```",
23038
+ "tags": "navigation",
23039
+ "customElement": {
23040
+ "kind": "class",
23041
+ "description": "",
23042
+ "cssProperties": [
23043
+ {
23044
+ "description": "Width of a `list` panel. Defaults to 16rem.",
23045
+ "name": "--site-nav-menu-panel-width"
23046
+ },
23047
+ {
23048
+ "description": "Widest a `columns` panel grows. Defaults to 60rem.",
23049
+ "name": "--site-nav-menu-columns-max-width"
23050
+ }
23051
+ ],
23052
+ "cssParts": [
23053
+ {
23054
+ "description": "The disclosure button.",
23055
+ "name": "trigger"
23056
+ },
23057
+ {
23058
+ "description": "The panel of links.",
23059
+ "name": "panel"
23060
+ }
23061
+ ],
23062
+ "slots": [
23063
+ {
23064
+ "description": "The panel's `wc-site-nav-link` and `wc-site-nav-group` elements.",
23065
+ "name": ""
23066
+ },
23067
+ {
23068
+ "description": "A card shown at the end of a `columns` panel, such as a `wc-card` announcing news. Left out of the drawer.",
23069
+ "name": "feature"
23070
+ }
23071
+ ],
23072
+ "events": [
23073
+ {
23074
+ "name": "open",
23075
+ "type": {
23076
+ "text": "CustomEvent"
23077
+ },
23078
+ "description": "Dispatched when the person opens the panel."
23079
+ },
23080
+ {
23081
+ "name": "close",
23082
+ "type": {
23083
+ "text": "CustomEvent<{reason: 'action' | 'escape' | 'light-dismiss'}>"
23084
+ },
23085
+ "description": "Dispatched when the person closes the panel: the button, Escape, or a click or focus outside."
23086
+ }
23087
+ ],
23088
+ "attributes": [
23089
+ {
23090
+ "name": "label",
23091
+ "type": {
23092
+ "text": "string"
23093
+ },
23094
+ "default": "''",
23095
+ "description": "The button's text.",
23096
+ "fieldName": "label"
23097
+ },
23098
+ {
23099
+ "name": "open",
23100
+ "type": {
23101
+ "text": "boolean"
23102
+ },
23103
+ "default": "false",
23104
+ "description": "Whether the panel is open.",
23105
+ "fieldName": "open"
23106
+ },
23107
+ {
23108
+ "name": "layout",
23109
+ "type": {
23110
+ "text": "'list' | 'columns'"
23111
+ },
23112
+ "default": "'list'",
23113
+ "description": "`\"list\"`: a short list under the button; `\"columns\"`: a wide panel of groups.",
23114
+ "fieldName": "layout"
23115
+ }
23116
+ ],
23117
+ "superclass": {
23118
+ "name": "LitElement",
23119
+ "package": "lit"
23120
+ },
23121
+ "tagName": "wc-site-nav-menu",
23122
+ "customElement": true,
23123
+ "rawTag": {
23124
+ "name": "site-nav-menu",
23125
+ "description": ""
23126
+ }
23127
+ }
23128
+ },
23129
+ {
23130
+ "label": "Skeleton",
23131
+ "tag": "wc-skeleton",
23132
+ "rawTag": "skeleton",
23133
+ "summary": "A placeholder shape that stands in for content that has not arrived yet.",
23134
+ "overview": "<p>A skeleton fills the size you give it and, while <code>visible</code> is set, shows a\nsweeping animation. Size it to match the content it replaces, and match its corners with the\n<code>--skeleton-container-shape</code> properties, for example round for an avatar. It ignores\npointer events.</p>\n<p>A skeleton is a look, not a busy state: a component working on something uses\n<code>loading</code>. Chips, list items and buttons have their own <code>skeleton</code>\nattribute for this placeholder look.</p>",
23135
+ "tags": "display",
23136
+ "example": "```html\n<wc-skeleton visible></wc-skeleton>\n```",
23137
+ "customElement": {
23138
+ "kind": "class",
23139
+ "description": "",
23140
+ "attributes": [
23141
+ {
23142
+ "name": "visible",
23143
+ "type": {
23144
+ "text": "boolean"
23145
+ },
23146
+ "default": "false",
23147
+ "description": "When true, the skeleton animation is shown. A skeleton is the placeholder look of content\nthat has not arrived yet, not a busy state: components that are working on something use\n`loading` (ADR-030001), and `skeleton` on a component (chip, list item, button) asks for\nthis placeholder look.",
23148
+ "fieldName": "visible"
23149
+ }
23150
+ ],
23151
+ "superclass": {
23152
+ "name": "LitElement",
23153
+ "package": "lit"
23154
+ },
23155
+ "tagName": "wc-skeleton",
23156
+ "customElement": true,
23157
+ "rawTag": {
23158
+ "name": "skeleton",
23159
+ "description": ""
23160
+ }
23161
+ }
23162
+ },
23163
+ {
23164
+ "label": "Slider",
23165
+ "tag": "wc-slider",
23166
+ "rawTag": "slider",
23167
+ "summary": "A track with a thumb the person drags to pick a number from a range.",
23168
+ "overview": "<p>The slider is form-associated: its <code>value</code> is submitted under its <code>name</code>,\nand <code>form.reset()</code> restores the starting value. Without a <code>value</code> it starts\nat the middle of <code>min</code>–<code>max</code>, like a native range input.</p>\n<p><code>label</code> is shown above the track, as on fields, and names the thumb; without it the\nthumb is named \"Slider\". <code>value-text</code> (the <code>valueText</code> property) formats\nthe value for <code>aria-valuetext</code> and the visible value, for example\n<code>v =&gt; `${v}%`</code>.</p>\n<p><code>required</code> does not apply: a slider always has a value. <code>readonly</code> keeps\nit focusable but its value cannot change.</p>\n<p>Keyboard: the arrows move one step (ten with Shift), Page Up and Page Down move ten steps,\nHome and End go to <code>min</code> and <code>max</code>.</p>",
23169
+ "fires": "change - Dispatched when the slider interaction ends.",
23170
+ "example": "```html\n<wc-slider label=\"Volume\" min=\"0\" max=\"100\" value=\"50\"></wc-slider>\n```",
23171
+ "tags": "input, form",
23172
+ "customElement": {
23173
+ "kind": "class",
23174
+ "description": "",
23175
+ "events": [
23176
+ {
23177
+ "name": "type",
23178
+ "type": {
23179
+ "text": "CustomEvent"
23180
+ },
23181
+ "inheritedFrom": {
23182
+ "name": "BaseInput",
23183
+ "module": "src/input/BaseInput.ts"
23184
+ }
23185
+ },
23186
+ {
23187
+ "type": {
23188
+ "text": "CustomEvent<{value: number}>"
23189
+ },
23190
+ "description": "Dispatched when the slider value changes during interaction.",
23191
+ "name": "input"
23192
+ },
23193
+ {
23194
+ "type": {
23195
+ "text": "CustomEvent<{value: number}>"
23196
+ },
23197
+ "description": "Dispatched when the slider interaction ends.",
23198
+ "name": "change"
23199
+ },
23200
+ {
23201
+ "type": {
23202
+ "text": "CustomEvent<SuggestionAcceptDetail>"
23203
+ },
23204
+ "description": "Fired when a suggested value is accepted: the person edited it (`cause: 'edit'`), the form was submitted (`'submit'`) or `acceptSuggestion()` was called (`'action'`).",
23205
+ "name": "accept",
23206
+ "inheritedFrom": {
23207
+ "name": "BaseInput",
23208
+ "module": "src/input/BaseInput.ts"
23209
+ }
23210
+ },
23211
+ {
23212
+ "type": {
23213
+ "text": "CustomEvent<SuggestionDismissDetail>"
23214
+ },
23215
+ "description": "Fired when the person clears a suggestion, before `input` and `change` with the restored value.",
23216
+ "name": "dismiss",
23217
+ "inheritedFrom": {
23218
+ "name": "BaseInput",
23219
+ "module": "src/input/BaseInput.ts"
23220
+ }
23221
+ }
23222
+ ],
23223
+ "attributes": [
23224
+ {
23225
+ "name": "min",
23226
+ "type": {
23227
+ "text": "number"
23228
+ },
23229
+ "default": "0",
23230
+ "description": "The minimum value of the slider.",
23231
+ "fieldName": "min"
23232
+ },
23233
+ {
23234
+ "name": "max",
23235
+ "type": {
23236
+ "text": "number"
23237
+ },
23238
+ "default": "100",
23239
+ "description": "The maximum value of the slider.",
23240
+ "fieldName": "max"
22522
23241
  },
22523
23242
  {
22524
23243
  "name": "value",
@@ -27081,6 +27800,115 @@
27081
27800
  }
27082
27801
  }
27083
27802
  },
27803
+ {
27804
+ "label": "Video",
27805
+ "tag": "wc-video",
27806
+ "rawTag": "video",
27807
+ "summary": "A video from YouTube, Vimeo or a file, that loads its player only when the person presses play.",
27808
+ "overview": "<p>Video shows a poster with a play button. A YouTube or Vimeo player loads only on that click, so\nthe page makes no request to the video site until the person asks for the video: no cookies, no\ntracking, and a faster page. YouTube plays through <code>youtube-nocookie.com</code> and Vimeo with\nDo Not Track, and a line on the poster says where the video plays from.</p>\n<p>Any other <code>src</code> is a video file, shown in the browser's own player with its\ncontrols. Put <code>&lt;track&gt;</code> elements in the video for captions and subtitles.</p>\n<p>The video keeps its <code>aspect-ratio</code> before and after it loads, so nothing on the page\nmoves.</p>",
27809
+ "slot": "- `<track>` elements for a video file's captions and subtitles.",
27810
+ "csspart": "player - The `<iframe>` or `<video>`.",
27811
+ "cssprop": "--video-shape - Corner radius of the frame. Defaults to `--shape-corner-large`.",
27812
+ "fires": "play - Dispatched when the person starts the video: the player loads, or the file starts playing.",
27813
+ "example": "```html\n<wc-video src=\"/media/tour.mp4\" poster=\"/media/tour.webp\" label=\"Product tour\">\n <track kind=\"captions\" src=\"/media/tour.en.vtt\" srclang=\"en\" label=\"English\" default />\n</wc-video>\n```",
27814
+ "tags": "media",
27815
+ "customElement": {
27816
+ "kind": "class",
27817
+ "description": "",
27818
+ "cssProperties": [
27819
+ {
27820
+ "description": "Corner radius of the frame. Defaults to `--shape-corner-large`.",
27821
+ "name": "--video-shape"
27822
+ }
27823
+ ],
27824
+ "cssParts": [
27825
+ {
27826
+ "description": "The frame that holds the poster or the player.",
27827
+ "name": "base"
27828
+ },
27829
+ {
27830
+ "description": "The poster button that loads and plays the video.",
27831
+ "name": "play-button"
27832
+ },
27833
+ {
27834
+ "description": "The `<iframe>` or `<video>`.",
27835
+ "name": "player"
27836
+ }
27837
+ ],
27838
+ "slots": [
27839
+ {
27840
+ "description": "`<track>` elements for a video file's captions and subtitles.",
27841
+ "name": ""
27842
+ }
27843
+ ],
27844
+ "events": [
27845
+ {
27846
+ "name": "play",
27847
+ "type": {
27848
+ "text": "CustomEvent"
27849
+ },
27850
+ "description": "Dispatched when the person starts the video: the player loads, or the file starts playing."
27851
+ }
27852
+ ],
27853
+ "attributes": [
27854
+ {
27855
+ "name": "src",
27856
+ "type": {
27857
+ "text": "string"
27858
+ },
27859
+ "default": "''",
27860
+ "description": "A YouTube or Vimeo link, or the URL of a video file.",
27861
+ "fieldName": "src"
27862
+ },
27863
+ {
27864
+ "name": "poster",
27865
+ "type": {
27866
+ "text": "string"
27867
+ },
27868
+ "default": "''",
27869
+ "description": "An image shown before the video plays. Without one, the frame shows the label on a plain surface.",
27870
+ "fieldName": "poster"
27871
+ },
27872
+ {
27873
+ "name": "label",
27874
+ "type": {
27875
+ "text": "string"
27876
+ },
27877
+ "default": "''",
27878
+ "description": "The video's title: shown on the poster, and the name of the play button and the player.",
27879
+ "fieldName": "label"
27880
+ },
27881
+ {
27882
+ "name": "duration",
27883
+ "type": {
27884
+ "text": "string"
27885
+ },
27886
+ "default": "''",
27887
+ "description": "The video's length as text, such as `9:42`, shown on the poster.",
27888
+ "fieldName": "duration"
27889
+ },
27890
+ {
27891
+ "name": "aspect-ratio",
27892
+ "type": {
27893
+ "text": "string"
27894
+ },
27895
+ "default": "'16 / 9'",
27896
+ "description": "The frame's width to height, as a CSS `aspect-ratio`.",
27897
+ "fieldName": "aspectRatio"
27898
+ }
27899
+ ],
27900
+ "superclass": {
27901
+ "name": "LitElement",
27902
+ "package": "lit"
27903
+ },
27904
+ "tagName": "wc-video",
27905
+ "customElement": true,
27906
+ "rawTag": {
27907
+ "name": "video",
27908
+ "description": ""
27909
+ }
27910
+ }
27911
+ },
27084
27912
  {
27085
27913
  "label": "Virtual List",
27086
27914
  "tag": "wc-virtual-list",