@phcdevworks/spectre-components 1.19.0 → 1.21.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 (352) hide show
  1. package/README.md +770 -125
  2. package/dist/accordion-item.cjs +540 -0
  3. package/dist/accordion-item.cjs.map +1 -0
  4. package/dist/accordion-item.d.cts +59 -0
  5. package/dist/accordion-item.d.ts +59 -0
  6. package/dist/accordion-item.js +537 -0
  7. package/dist/accordion-item.js.map +1 -0
  8. package/dist/accordion.cjs +468 -0
  9. package/dist/accordion.cjs.map +1 -0
  10. package/dist/accordion.d.cts +38 -0
  11. package/dist/accordion.d.ts +38 -0
  12. package/dist/accordion.js +465 -0
  13. package/dist/accordion.js.map +1 -0
  14. package/dist/alert.cjs +166 -65
  15. package/dist/alert.cjs.map +1 -1
  16. package/dist/alert.d.cts +41 -8
  17. package/dist/alert.d.ts +41 -8
  18. package/dist/alert.js +168 -67
  19. package/dist/alert.js.map +1 -1
  20. package/dist/avatar.cjs +27 -1
  21. package/dist/avatar.cjs.map +1 -1
  22. package/dist/avatar.d.cts +19 -3
  23. package/dist/avatar.d.ts +19 -3
  24. package/dist/avatar.js +27 -1
  25. package/dist/avatar.js.map +1 -1
  26. package/dist/badge.cjs +83 -3
  27. package/dist/badge.cjs.map +1 -1
  28. package/dist/badge.d.cts +51 -3
  29. package/dist/badge.d.ts +51 -3
  30. package/dist/badge.js +83 -3
  31. package/dist/badge.js.map +1 -1
  32. package/dist/breadcrumb.cjs +464 -0
  33. package/dist/breadcrumb.cjs.map +1 -0
  34. package/dist/breadcrumb.d.cts +32 -0
  35. package/dist/breadcrumb.d.ts +32 -0
  36. package/dist/breadcrumb.js +461 -0
  37. package/dist/breadcrumb.js.map +1 -0
  38. package/dist/button.cjs +32 -2
  39. package/dist/button.cjs.map +1 -1
  40. package/dist/button.d.cts +19 -3
  41. package/dist/button.d.ts +19 -3
  42. package/dist/button.js +32 -2
  43. package/dist/button.js.map +1 -1
  44. package/dist/card-bleed.cjs +458 -0
  45. package/dist/card-bleed.cjs.map +1 -0
  46. package/dist/card-bleed.d.cts +37 -0
  47. package/dist/card-bleed.d.ts +37 -0
  48. package/dist/card-bleed.js +455 -0
  49. package/dist/card-bleed.js.map +1 -0
  50. package/dist/card.cjs +61 -1
  51. package/dist/card.cjs.map +1 -1
  52. package/dist/card.d.cts +33 -4
  53. package/dist/card.d.ts +33 -4
  54. package/dist/card.js +60 -2
  55. package/dist/card.js.map +1 -1
  56. package/dist/carousel.cjs +655 -0
  57. package/dist/carousel.cjs.map +1 -0
  58. package/dist/carousel.d.cts +79 -0
  59. package/dist/carousel.d.ts +79 -0
  60. package/dist/carousel.js +652 -0
  61. package/dist/carousel.js.map +1 -0
  62. package/dist/checkbox.cjs +3 -1
  63. package/dist/checkbox.cjs.map +1 -1
  64. package/dist/checkbox.js +3 -1
  65. package/dist/checkbox.js.map +1 -1
  66. package/dist/choice-card.cjs +524 -0
  67. package/dist/choice-card.cjs.map +1 -0
  68. package/dist/choice-card.d.cts +81 -0
  69. package/dist/choice-card.d.ts +81 -0
  70. package/dist/choice-card.js +521 -0
  71. package/dist/choice-card.js.map +1 -0
  72. package/dist/container.cjs +23 -6
  73. package/dist/container.cjs.map +1 -1
  74. package/dist/container.d.cts +9 -3
  75. package/dist/container.d.ts +9 -3
  76. package/dist/container.js +23 -7
  77. package/dist/container.js.map +1 -1
  78. package/dist/datepicker.cjs +580 -0
  79. package/dist/datepicker.cjs.map +1 -0
  80. package/dist/datepicker.d.cts +78 -0
  81. package/dist/datepicker.d.ts +78 -0
  82. package/dist/datepicker.js +577 -0
  83. package/dist/datepicker.js.map +1 -0
  84. package/dist/dom-CX9bgbcQ.d.cts +3 -0
  85. package/dist/dom-CX9bgbcQ.d.ts +3 -0
  86. package/dist/dropdown.cjs +66 -3
  87. package/dist/dropdown.cjs.map +1 -1
  88. package/dist/dropdown.d.cts +22 -2
  89. package/dist/dropdown.d.ts +22 -2
  90. package/dist/dropdown.js +67 -4
  91. package/dist/dropdown.js.map +1 -1
  92. package/dist/external-auth-button.cjs +494 -0
  93. package/dist/external-auth-button.cjs.map +1 -0
  94. package/dist/external-auth-button.d.cts +71 -0
  95. package/dist/external-auth-button.d.ts +71 -0
  96. package/dist/external-auth-button.js +491 -0
  97. package/dist/external-auth-button.js.map +1 -0
  98. package/dist/fieldset.cjs +3 -1
  99. package/dist/fieldset.cjs.map +1 -1
  100. package/dist/fieldset.js +3 -1
  101. package/dist/fieldset.js.map +1 -1
  102. package/dist/file-input.cjs +371 -0
  103. package/dist/file-input.cjs.map +1 -0
  104. package/dist/file-input.d.cts +96 -0
  105. package/dist/file-input.d.ts +96 -0
  106. package/dist/file-input.js +367 -0
  107. package/dist/file-input.js.map +1 -0
  108. package/dist/footer-chip.cjs +22 -2
  109. package/dist/footer-chip.cjs.map +1 -1
  110. package/dist/footer-chip.d.cts +12 -1
  111. package/dist/footer-chip.d.ts +12 -1
  112. package/dist/footer-chip.js +22 -2
  113. package/dist/footer-chip.js.map +1 -1
  114. package/dist/footer-link.cjs +19 -1
  115. package/dist/footer-link.cjs.map +1 -1
  116. package/dist/footer-link.d.cts +12 -1
  117. package/dist/footer-link.d.ts +12 -1
  118. package/dist/footer-link.js +19 -1
  119. package/dist/footer-link.js.map +1 -1
  120. package/dist/footer.cjs +62 -1
  121. package/dist/footer.cjs.map +1 -1
  122. package/dist/footer.d.cts +15 -0
  123. package/dist/footer.d.ts +15 -0
  124. package/dist/footer.js +63 -2
  125. package/dist/footer.js.map +1 -1
  126. package/dist/{form-TvtLcoW0.d.cts → form-CVO7mlDa.d.cts} +42 -9
  127. package/dist/{form-TvtLcoW0.d.ts → form-CVO7mlDa.d.ts} +42 -9
  128. package/dist/grid.cjs +35 -1
  129. package/dist/grid.cjs.map +1 -1
  130. package/dist/grid.d.cts +9 -3
  131. package/dist/grid.d.ts +9 -3
  132. package/dist/grid.js +35 -2
  133. package/dist/grid.js.map +1 -1
  134. package/dist/icon-box.cjs +27 -1
  135. package/dist/icon-box.cjs.map +1 -1
  136. package/dist/icon-box.d.cts +19 -3
  137. package/dist/icon-box.d.ts +19 -3
  138. package/dist/icon-box.js +27 -1
  139. package/dist/icon-box.js.map +1 -1
  140. package/dist/index.cjs +3849 -109
  141. package/dist/index.cjs.map +1 -1
  142. package/dist/index.d.cts +26 -1
  143. package/dist/index.d.ts +26 -1
  144. package/dist/index.js +3787 -112
  145. package/dist/index.js.map +1 -1
  146. package/dist/input-group.cjs +471 -0
  147. package/dist/input-group.cjs.map +1 -0
  148. package/dist/input-group.d.cts +31 -0
  149. package/dist/input-group.d.ts +31 -0
  150. package/dist/input-group.js +468 -0
  151. package/dist/input-group.js.map +1 -0
  152. package/dist/input.cjs +96 -4
  153. package/dist/input.cjs.map +1 -1
  154. package/dist/input.d.cts +45 -6
  155. package/dist/input.d.ts +45 -6
  156. package/dist/input.js +98 -6
  157. package/dist/input.js.map +1 -1
  158. package/dist/label.cjs +3 -1
  159. package/dist/label.cjs.map +1 -1
  160. package/dist/label.js +3 -1
  161. package/dist/label.js.map +1 -1
  162. package/dist/list-group-item.cjs +367 -0
  163. package/dist/list-group-item.cjs.map +1 -0
  164. package/dist/list-group-item.d.cts +73 -0
  165. package/dist/list-group-item.d.ts +73 -0
  166. package/dist/list-group-item.js +364 -0
  167. package/dist/list-group-item.js.map +1 -0
  168. package/dist/list-group.cjs +610 -0
  169. package/dist/list-group.cjs.map +1 -0
  170. package/dist/list-group.d.cts +58 -0
  171. package/dist/list-group.d.ts +58 -0
  172. package/dist/list-group.js +607 -0
  173. package/dist/list-group.js.map +1 -0
  174. package/dist/modal.cjs +70 -35
  175. package/dist/modal.cjs.map +1 -1
  176. package/dist/modal.d.cts +14 -2
  177. package/dist/modal.d.ts +14 -2
  178. package/dist/modal.js +70 -35
  179. package/dist/modal.js.map +1 -1
  180. package/dist/nav-item.cjs +107 -4
  181. package/dist/nav-item.cjs.map +1 -1
  182. package/dist/nav-item.d.cts +52 -2
  183. package/dist/nav-item.d.ts +52 -2
  184. package/dist/nav-item.js +108 -5
  185. package/dist/nav-item.js.map +1 -1
  186. package/dist/nav.cjs +57 -1
  187. package/dist/nav.cjs.map +1 -1
  188. package/dist/nav.d.cts +15 -1
  189. package/dist/nav.d.ts +15 -1
  190. package/dist/nav.js +58 -2
  191. package/dist/nav.js.map +1 -1
  192. package/dist/offcanvas.cjs +621 -0
  193. package/dist/offcanvas.cjs.map +1 -0
  194. package/dist/offcanvas.d.cts +61 -0
  195. package/dist/offcanvas.d.ts +61 -0
  196. package/dist/offcanvas.js +617 -0
  197. package/dist/offcanvas.js.map +1 -0
  198. package/dist/pagination.cjs +452 -0
  199. package/dist/pagination.cjs.map +1 -0
  200. package/dist/pagination.d.cts +69 -0
  201. package/dist/pagination.d.ts +69 -0
  202. package/dist/pagination.js +448 -0
  203. package/dist/pagination.js.map +1 -0
  204. package/dist/popover.cjs +534 -0
  205. package/dist/popover.cjs.map +1 -0
  206. package/dist/popover.d.cts +59 -0
  207. package/dist/popover.d.ts +59 -0
  208. package/dist/popover.js +530 -0
  209. package/dist/popover.js.map +1 -0
  210. package/dist/pricing-card.cjs +153 -64
  211. package/dist/pricing-card.cjs.map +1 -1
  212. package/dist/pricing-card.d.cts +34 -6
  213. package/dist/pricing-card.d.ts +34 -6
  214. package/dist/pricing-card.js +154 -65
  215. package/dist/pricing-card.js.map +1 -1
  216. package/dist/progress.cjs +403 -0
  217. package/dist/progress.cjs.map +1 -0
  218. package/dist/progress.d.cts +70 -0
  219. package/dist/progress.d.ts +70 -0
  220. package/dist/progress.js +398 -0
  221. package/dist/progress.js.map +1 -0
  222. package/dist/prose.cjs +425 -0
  223. package/dist/prose.cjs.map +1 -0
  224. package/dist/prose.d.cts +21 -0
  225. package/dist/prose.d.ts +21 -0
  226. package/dist/prose.js +422 -0
  227. package/dist/prose.js.map +1 -0
  228. package/dist/radio.cjs +3 -1
  229. package/dist/radio.cjs.map +1 -1
  230. package/dist/radio.js +3 -1
  231. package/dist/radio.js.map +1 -1
  232. package/dist/range.cjs +381 -0
  233. package/dist/range.cjs.map +1 -0
  234. package/dist/range.d.cts +76 -0
  235. package/dist/range.d.ts +76 -0
  236. package/dist/range.js +378 -0
  237. package/dist/range.js.map +1 -0
  238. package/dist/rating.cjs +33 -0
  239. package/dist/rating.cjs.map +1 -1
  240. package/dist/rating.d.cts +38 -3
  241. package/dist/rating.d.ts +38 -3
  242. package/dist/rating.js +33 -0
  243. package/dist/rating.js.map +1 -1
  244. package/dist/section.cjs +27 -3
  245. package/dist/section.cjs.map +1 -1
  246. package/dist/section.d.cts +16 -1
  247. package/dist/section.d.ts +16 -1
  248. package/dist/section.js +27 -4
  249. package/dist/section.js.map +1 -1
  250. package/dist/select.cjs +6 -1
  251. package/dist/select.cjs.map +1 -1
  252. package/dist/select.d.cts +7 -1
  253. package/dist/select.d.ts +7 -1
  254. package/dist/select.js +6 -1
  255. package/dist/select.js.map +1 -1
  256. package/dist/sidebar-link.cjs +19 -1
  257. package/dist/sidebar-link.cjs.map +1 -1
  258. package/dist/sidebar-link.d.cts +13 -2
  259. package/dist/sidebar-link.d.ts +13 -2
  260. package/dist/sidebar-link.js +19 -1
  261. package/dist/sidebar-link.js.map +1 -1
  262. package/dist/sidebar-toggle.cjs +3 -1
  263. package/dist/sidebar-toggle.cjs.map +1 -1
  264. package/dist/sidebar-toggle.js +3 -1
  265. package/dist/sidebar-toggle.js.map +1 -1
  266. package/dist/sidebar.cjs +33 -1
  267. package/dist/sidebar.cjs.map +1 -1
  268. package/dist/sidebar.d.cts +1 -0
  269. package/dist/sidebar.d.ts +1 -0
  270. package/dist/sidebar.js +34 -2
  271. package/dist/sidebar.js.map +1 -1
  272. package/dist/spinner.cjs +2 -1
  273. package/dist/spinner.cjs.map +1 -1
  274. package/dist/spinner.d.cts +2 -2
  275. package/dist/spinner.d.ts +2 -2
  276. package/dist/spinner.js +2 -1
  277. package/dist/spinner.js.map +1 -1
  278. package/dist/stack.cjs +4 -2
  279. package/dist/stack.cjs.map +1 -1
  280. package/dist/stack.d.cts +2 -2
  281. package/dist/stack.d.ts +2 -2
  282. package/dist/stack.js +4 -2
  283. package/dist/stack.js.map +1 -1
  284. package/dist/states-Bgzwu_XZ.d.cts +9 -0
  285. package/dist/states-Bgzwu_XZ.d.ts +9 -0
  286. package/dist/stepper.cjs +495 -0
  287. package/dist/stepper.cjs.map +1 -0
  288. package/dist/stepper.d.cts +40 -0
  289. package/dist/stepper.d.ts +40 -0
  290. package/dist/stepper.js +491 -0
  291. package/dist/stepper.js.map +1 -0
  292. package/dist/switch.cjs +492 -0
  293. package/dist/switch.cjs.map +1 -0
  294. package/dist/switch.d.cts +82 -0
  295. package/dist/switch.d.ts +82 -0
  296. package/dist/switch.js +488 -0
  297. package/dist/switch.js.map +1 -0
  298. package/dist/tab-panel.cjs +465 -0
  299. package/dist/tab-panel.cjs.map +1 -0
  300. package/dist/tab-panel.d.cts +48 -0
  301. package/dist/tab-panel.d.ts +48 -0
  302. package/dist/tab-panel.js +462 -0
  303. package/dist/tab-panel.js.map +1 -0
  304. package/dist/table.cjs +506 -0
  305. package/dist/table.cjs.map +1 -0
  306. package/dist/table.d.cts +54 -0
  307. package/dist/table.d.ts +54 -0
  308. package/dist/table.js +501 -0
  309. package/dist/table.js.map +1 -0
  310. package/dist/tabs.cjs +596 -0
  311. package/dist/tabs.cjs.map +1 -0
  312. package/dist/tabs.d.cts +65 -0
  313. package/dist/tabs.d.ts +65 -0
  314. package/dist/tabs.js +592 -0
  315. package/dist/tabs.js.map +1 -0
  316. package/dist/tag.cjs +27 -1
  317. package/dist/tag.cjs.map +1 -1
  318. package/dist/tag.d.cts +19 -3
  319. package/dist/tag.d.ts +19 -3
  320. package/dist/tag.js +27 -1
  321. package/dist/tag.js.map +1 -1
  322. package/dist/testimonial.cjs +162 -64
  323. package/dist/testimonial.cjs.map +1 -1
  324. package/dist/testimonial.d.cts +36 -8
  325. package/dist/testimonial.d.ts +36 -8
  326. package/dist/testimonial.js +163 -65
  327. package/dist/testimonial.js.map +1 -1
  328. package/dist/text.cjs +65 -6
  329. package/dist/text.cjs.map +1 -1
  330. package/dist/text.d.cts +24 -3
  331. package/dist/text.d.ts +24 -3
  332. package/dist/text.js +64 -8
  333. package/dist/text.js.map +1 -1
  334. package/dist/textarea.cjs +3 -0
  335. package/dist/textarea.cjs.map +1 -1
  336. package/dist/textarea.d.cts +7 -1
  337. package/dist/textarea.d.ts +7 -1
  338. package/dist/textarea.js +3 -0
  339. package/dist/textarea.js.map +1 -1
  340. package/dist/toast.cjs +34 -1
  341. package/dist/toast.cjs.map +1 -1
  342. package/dist/toast.d.cts +15 -2
  343. package/dist/toast.d.ts +15 -2
  344. package/dist/toast.js +34 -1
  345. package/dist/toast.js.map +1 -1
  346. package/dist/tooltip.cjs +32 -0
  347. package/dist/tooltip.cjs.map +1 -1
  348. package/dist/tooltip.d.cts +15 -2
  349. package/dist/tooltip.d.ts +15 -2
  350. package/dist/tooltip.js +32 -0
  351. package/dist/tooltip.js.map +1 -1
  352. package/package.json +130 -15
package/dist/footer.js CHANGED
@@ -1,8 +1,19 @@
1
1
  import { LitElement, nothing, html } from 'lit';
2
2
  import { ifDefined } from 'lit/directives/if-defined.js';
3
- import { getFooterClasses } from '@phcdevworks/spectre-ui';
3
+ import { getFooterClasses, getFooterTextClasses, getFooterMutedClasses, getFooterLinksClasses, getFooterHeadingClasses, getFooterDividerClasses } from '@phcdevworks/spectre-ui';
4
4
 
5
5
  // src/components/footer/sp-footer.ts
6
+
7
+ // src/utils/parts.ts
8
+ function applyPartClasses(elements, parts) {
9
+ for (const element of elements) {
10
+ const part = element.getAttribute("slot");
11
+ const classes = part ? parts[part] : void 0;
12
+ if (classes) {
13
+ element.classList.add(...classes.split(/\s+/).filter(Boolean));
14
+ }
15
+ }
16
+ }
6
17
  var SpectreBaseElement = class extends LitElement {
7
18
  constructor() {
8
19
  super(...arguments);
@@ -313,7 +324,9 @@ var SpectreProjectableElement = class extends SpectreBaseElement {
313
324
  nextProjectedContent.push(node);
314
325
  }
315
326
  });
316
- const hasChanged = nextProjectedContent.length !== this.projectedContent.length || nextProjectedContent.some((node, index) => node !== this.projectedContent[index]);
327
+ const hasChanged = nextProjectedContent.length !== this.projectedContent.length || nextProjectedContent.some(
328
+ (node, index) => node !== this.projectedContent[index]
329
+ );
317
330
  if (hasChanged) {
318
331
  this.projectedContent = nextProjectedContent;
319
332
  }
@@ -343,6 +356,22 @@ var SpectreProjectableElement = class extends SpectreBaseElement {
343
356
  this.contentObserver = void 0;
344
357
  }
345
358
  };
359
+ var spectreAccentEdges = ["top", "right", "bottom", "left"];
360
+ function isAccentEdge(value) {
361
+ return spectreAccentEdges.includes(value);
362
+ }
363
+ var spectreAccentColors = [
364
+ "neutral",
365
+ "brand",
366
+ "info",
367
+ "success",
368
+ "warning",
369
+ "danger",
370
+ "cta"
371
+ ];
372
+ function isAccentColor(value) {
373
+ return spectreAccentColors.includes(value);
374
+ }
346
375
  var spectreUtilityClassPattern = /^sp-[a-z0-9]+(?:-[a-z0-9]+)*(?:__[a-z0-9]+(?:-[a-z0-9]+)*)?(?:--[a-z0-9]+(?:-[a-z0-9]+)*)?$/;
347
376
  function sanitizeUtilityClasses(value) {
348
377
  if (!value) {
@@ -353,6 +382,8 @@ function sanitizeUtilityClasses(value) {
353
382
  var SpectreFooterElement = class extends SpectreProjectableElement {
354
383
  constructor() {
355
384
  super(...arguments);
385
+ this.accent = void 0;
386
+ this.accentColor = void 0;
356
387
  this.bordered = false;
357
388
  this.fullWidth = false;
358
389
  this.innerClass = void 0;
@@ -385,6 +416,12 @@ var SpectreFooterElement = class extends SpectreProjectableElement {
385
416
  return el.hasAttribute("data-sp-footer-native");
386
417
  }
387
418
  willUpdate(changedProperties) {
419
+ if (changedProperties.has("accent") && this.accent != null && !isAccentEdge(this.accent)) {
420
+ this.accent = void 0;
421
+ }
422
+ if (changedProperties.has("accentColor") && this.accentColor != null && !isAccentColor(this.accentColor)) {
423
+ this.accentColor = void 0;
424
+ }
388
425
  if (changedProperties.has("bordered") && this.bordered == null) {
389
426
  this.bordered = false;
390
427
  }
@@ -394,12 +431,34 @@ var SpectreFooterElement = class extends SpectreProjectableElement {
394
431
  }
395
432
  get footerClasses() {
396
433
  const recipeClasses = getFooterClasses({
434
+ ...this.accent !== void 0 && {
435
+ accent: this.accent
436
+ },
437
+ ...this.accentColor !== void 0 && {
438
+ accentColor: this.accentColor
439
+ },
397
440
  bordered: this.bordered ?? false,
398
441
  fullWidth: this.fullWidth ?? false
399
442
  });
400
443
  const utilityClasses = sanitizeUtilityClasses(this.innerClass);
401
444
  return utilityClasses ? `${recipeClasses} ${utilityClasses}` : recipeClasses;
402
445
  }
446
+ // Footer parts usually sit inside authored columns, so markers are matched
447
+ // at any depth.
448
+ updated(changedProperties) {
449
+ super.updated(changedProperties);
450
+ const native = this.querySelector("[data-sp-footer-native]");
451
+ if (!native) {
452
+ return;
453
+ }
454
+ applyPartClasses(native.querySelectorAll("[slot]"), {
455
+ divider: getFooterDividerClasses(),
456
+ heading: getFooterHeadingClasses(),
457
+ links: getFooterLinksClasses(),
458
+ muted: getFooterMutedClasses(),
459
+ text: getFooterTextClasses()
460
+ });
461
+ }
403
462
  render() {
404
463
  return html`<footer
405
464
  aria-label="${ifDefined(this.forwardedAriaLabel)}"
@@ -413,6 +472,8 @@ var SpectreFooterElement = class extends SpectreProjectableElement {
413
472
  }
414
473
  };
415
474
  SpectreFooterElement.properties = {
475
+ accent: { type: String, reflect: true },
476
+ accentColor: { attribute: "accent-color", type: String, reflect: true },
416
477
  bordered: { type: Boolean, reflect: true },
417
478
  fullWidth: { attribute: "full-width", type: Boolean, reflect: true },
418
479
  innerClass: { attribute: "inner-class", type: String }
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/utils/base.ts","../src/utils/dom.ts","../src/utils/projectable.ts","../src/utils/form.ts","../src/components/footer/sp-footer.ts"],"names":[],"mappings":";;;;;AAEO,IAAM,kBAAA,GAAN,cAAiC,UAAA,CAAW;AAAA,EAA5C,WAAA,GAAA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AEA,EAAA,cAAA,CAAe,MAAA,CAAO,SAAS,oBAAoB,CAAA;AACnD,EAAA,OAAO,oBAAA;AACT","file":"footer.js","sourcesContent":["import { LitElement, type PropertyDeclarations } from 'lit'\n\nexport class SpectreBaseElement extends LitElement {\n static properties: PropertyDeclarations = {}\n\n private _ariaLabel: string | null = null\n private _ariaLabelledBy: string | null = null\n private _ariaDescribedBy: string | null = null\n private _autocapitalize = ''\n private _autofocus = false\n private _spellcheck: boolean | null = null\n private _title = ''\n private _id = ''\n\n get ariaLabel(): string | null {\n return this._ariaLabel\n }\n\n set ariaLabel(value: string | null) {\n if (this._ariaLabel === value) {\n return\n }\n this._ariaLabel = value\n this._removeHostAttribute('aria-label')\n this.requestUpdate()\n }\n\n get ariaLabelledBy(): string | null {\n return this._ariaLabelledBy\n }\n\n set ariaLabelledBy(value: string | null) {\n if (this._ariaLabelledBy === value) {\n return\n }\n this._ariaLabelledBy = value\n this._removeHostAttribute('aria-labelledby')\n this.requestUpdate()\n }\n\n get ariaDescribedBy(): string | null {\n return this._ariaDescribedBy\n }\n\n set ariaDescribedBy(value: string | null) {\n if (this._ariaDescribedBy === value) {\n return\n }\n this._ariaDescribedBy = value\n this._removeHostAttribute('aria-describedby')\n this.requestUpdate()\n }\n\n override get autocapitalize(): string {\n return this._autocapitalize\n }\n\n override set autocapitalize(value: string | undefined | null) {\n const normalizedValue = value ?? ''\n if (this._autocapitalize === normalizedValue) {\n return\n }\n this._autocapitalize = normalizedValue\n this._removeHostAttribute('autocapitalize')\n this.requestUpdate()\n }\n\n override get spellcheck(): boolean {\n return this._spellcheck ?? super.spellcheck\n }\n\n override set spellcheck(value: boolean | undefined | null) {\n if (this._spellcheck === value) {\n return\n }\n this._spellcheck = value ?? null\n this._removeHostAttribute('spellcheck')\n this.requestUpdate()\n }\n\n override get title(): string {\n return this._title\n }\n\n override set title(value: string | undefined | null) {\n const normalizedValue = value ?? ''\n if (this._title === normalizedValue) {\n return\n }\n this._title = normalizedValue\n this._removeHostAttribute('title')\n this.requestUpdate()\n }\n\n override get id(): string {\n return this._id\n }\n\n override set id(value: string | undefined | null) {\n const normalizedValue = value ?? ''\n if (this._id === normalizedValue) {\n return\n }\n this._id = normalizedValue\n this._removeHostAttribute('id')\n this.requestUpdate()\n }\n\n override get autofocus(): boolean {\n return this._autofocus\n }\n\n override set autofocus(value: boolean | undefined | null) {\n const normalizedValue = !!value\n if (this._autofocus === normalizedValue) {\n return\n }\n this._autofocus = normalizedValue\n this._removeHostAttribute('autofocus')\n this.requestUpdate()\n }\n\n // Spectre components intentionally render in light DOM so the global\n // `@phcdevworks/spectre-ui` styling contract can apply directly.\n createRenderRoot(): this {\n return this\n }\n\n override connectedCallback(): void {\n super.connectedCallback()\n\n const proxiedAttributes = [\n 'id',\n 'title',\n 'autocapitalize',\n 'autofocus',\n 'spellcheck',\n 'aria-label',\n 'aria-labelledby',\n 'aria-describedby'\n ]\n\n proxiedAttributes.forEach((attr) => {\n const value = super.getAttribute(attr)\n if (value !== null) {\n this.setAttribute(attr, value)\n }\n })\n }\n\n override getAttribute(qualifiedName: string): string | null {\n switch (qualifiedName) {\n case 'id':\n return this.id || null\n case 'title':\n return this.title || null\n case 'autocapitalize':\n return this.autocapitalize || null\n case 'autofocus':\n return this.autofocus ? '' : null\n case 'spellcheck':\n return this._spellcheck !== null ? String(this._spellcheck) : null\n case 'aria-label':\n return this.ariaLabel\n case 'aria-labelledby':\n return this.ariaLabelledBy\n case 'aria-describedby':\n return this.ariaDescribedBy\n default:\n return super.getAttribute(qualifiedName)\n }\n }\n\n override hasAttribute(qualifiedName: string): boolean {\n switch (qualifiedName) {\n case 'id':\n return this.id !== ''\n case 'title':\n return this.title !== ''\n case 'autocapitalize':\n return this.autocapitalize !== ''\n case 'autofocus':\n return this.autofocus\n case 'spellcheck':\n return this._spellcheck !== null\n case 'aria-label':\n return this.ariaLabel !== null\n case 'aria-labelledby':\n return this.ariaLabelledBy !== null\n case 'aria-describedby':\n return this.ariaDescribedBy !== null\n default:\n return super.hasAttribute(qualifiedName)\n }\n }\n\n override setAttribute(qualifiedName: string, value: string): void {\n switch (qualifiedName) {\n case 'id':\n this.id = value\n break\n case 'title':\n this.title = value\n break\n case 'autocapitalize':\n this.autocapitalize = value\n break\n case 'autofocus':\n this.autofocus = true\n break\n case 'spellcheck':\n this.spellcheck = value !== 'false'\n break\n case 'aria-label':\n this.ariaLabel = value\n break\n case 'aria-labelledby':\n this.ariaLabelledBy = value\n break\n case 'aria-describedby':\n this.ariaDescribedBy = value\n break\n default:\n super.setAttribute(qualifiedName, value)\n }\n }\n\n override removeAttribute(qualifiedName: string): void {\n switch (qualifiedName) {\n case 'id':\n this.id = ''\n break\n case 'title':\n this.title = ''\n break\n case 'autocapitalize':\n this.autocapitalize = ''\n break\n case 'autofocus':\n this.autofocus = false\n break\n case 'spellcheck':\n this.spellcheck = null\n break\n case 'aria-label':\n this.ariaLabel = null\n break\n case 'aria-labelledby':\n this.ariaLabelledBy = null\n break\n case 'aria-describedby':\n this.ariaDescribedBy = null\n break\n default:\n super.removeAttribute(qualifiedName)\n }\n }\n\n private _removeHostAttribute(name: string): void {\n const host = this as unknown as HTMLElement\n if (HTMLElement.prototype.hasAttribute.call(host, name)) {\n // Use the native removeAttribute to avoid our own overridden version\n // which would reset the internal state.\n HTMLElement.prototype.removeAttribute.call(host, name)\n }\n }\n\n protected get forwardedAriaLabel(): string | undefined {\n const value = this.ariaLabel?.trim()\n return value ? value : undefined\n }\n\n protected get forwardedAriaLabelledBy(): string | undefined {\n const value = this.ariaLabelledBy?.trim()\n return value ? value : undefined\n }\n\n protected get forwardedAriaDescribedBy(): string | undefined {\n const value = this.ariaDescribedBy?.trim()\n return value ? value : undefined\n }\n\n // Subclasses that expose `disabled`/`loading` properties get this disabled\n // calculation for free instead of redeclaring it per component.\n protected get isDisabled(): boolean {\n const self = this as unknown as { disabled?: boolean; loading?: boolean }\n return (self.disabled ?? false) || (self.loading ?? false)\n }\n\n // Subclasses get this for free instead of redeclaring it per component.\n protected get hasForwardedLabel(): boolean {\n return Boolean(this.forwardedAriaLabel || this.forwardedAriaLabelledBy)\n }\n}\n","export function hasMeaningfulContent(nodes: readonly Node[]): boolean {\n return nodes.some((node) => {\n if (node.nodeType === Node.ELEMENT_NODE) {\n return true;\n }\n\n if (node.nodeType === Node.TEXT_NODE) {\n return (node.textContent?.trim().length ?? 0) > 0;\n }\n\n return false;\n });\n}\n","import { SpectreBaseElement } from './base';\nimport { hasMeaningfulContent } from './dom';\n\nexport abstract class SpectreProjectableElement extends SpectreBaseElement {\n protected projectedContent: Node[] = [];\n private contentObserver?: MutationObserver | undefined;\n\n // Return the native container whose existing children are also treated as\n // projected content sources (e.g. the rendered <button>, <select>, <label>).\n protected abstract getContentContainer(): Element | null;\n\n // Return true if the node was rendered by this component and should not be\n // treated as external projected content.\n protected abstract isInternalNode(node: Node): boolean;\n\n protected get hasProjectedContent(): boolean {\n return hasMeaningfulContent(this.projectedContent);\n }\n\n override connectedCallback(): void {\n super.connectedCallback();\n this.syncProjectedContent();\n this.startContentObserver();\n }\n\n override disconnectedCallback(): void {\n this.stopContentObserver();\n super.disconnectedCallback();\n }\n\n protected override update(changedProperties: Map<PropertyKey, unknown>): void {\n this.stopContentObserver();\n super.update(changedProperties);\n this.startContentObserver();\n }\n\n protected syncProjectedContent(): boolean {\n const nextProjectedContent: Node[] = [];\n const sourceNodes = [\n ...this.childNodes,\n ...(this.getContentContainer()?.childNodes ?? []),\n ];\n\n sourceNodes.forEach((node) => {\n if (!this.isInternalNode(node) && !nextProjectedContent.includes(node)) {\n nextProjectedContent.push(node);\n }\n });\n\n const hasChanged =\n nextProjectedContent.length !== this.projectedContent.length ||\n nextProjectedContent.some((node, index) => node !== this.projectedContent[index]);\n\n if (hasChanged) {\n this.projectedContent = nextProjectedContent;\n }\n\n return hasChanged;\n }\n\n private startContentObserver(): void {\n if (this.contentObserver) {\n return;\n }\n\n this.contentObserver = new MutationObserver((mutations) => {\n const isInternalMovement = mutations.every((mutation) =>\n [...mutation.removedNodes].every(\n (node) => this.isInternalNode(node) || this.contains(node),\n ) &&\n [...mutation.addedNodes].every((node) => this.isInternalNode(node)),\n );\n\n if (isInternalMovement) {\n return;\n }\n\n if (this.syncProjectedContent()) {\n this.requestUpdate();\n }\n });\n\n this.contentObserver.observe(this, { childList: true });\n }\n\n private stopContentObserver(): void {\n this.contentObserver?.disconnect();\n this.contentObserver = undefined;\n }\n}\n","import {\n type ButtonSize,\n type ButtonVariant,\n type InputSize\n} from '@phcdevworks/spectre-ui'\n\nexport const spectreInputSizes = ['sm', 'md', 'lg'] as const\nexport type SpectreInputSize = (typeof spectreInputSizes)[number]\n\nexport function isInputSize(value: unknown): value is InputSize | ButtonSize {\n return (spectreInputSizes as readonly string[]).includes(value as string)\n}\n\nexport const spectreButtonVariants = [\n 'primary',\n 'secondary',\n 'ghost',\n 'danger',\n 'success',\n 'cta',\n 'accent',\n 'inverse'\n] as const\n\nexport type SpectreButtonVariant = (typeof spectreButtonVariants)[number]\n\nexport function isButtonVariant(value: unknown): value is ButtonVariant {\n return (spectreButtonVariants as readonly string[]).includes(value as string)\n}\n\nexport const spectreButtonTypes = ['button', 'submit', 'reset'] as const\n\nexport type SpectreButtonType = (typeof spectreButtonTypes)[number]\n\nexport function isButtonType(value: unknown): value is SpectreButtonType {\n return (spectreButtonTypes as readonly string[]).includes(value as string)\n}\n\nexport const spectreInputTypes = [\n 'text',\n 'email',\n 'password',\n 'search',\n 'tel',\n 'url',\n 'number',\n 'date',\n 'datetime-local',\n 'month',\n 'time',\n 'week'\n] as const\n\nexport type SpectreInputType = (typeof spectreInputTypes)[number]\n\nexport function isInputType(value: unknown): value is SpectreInputType {\n return (spectreInputTypes as readonly string[]).includes(value as string)\n}\n\nexport const spectreBadgeVariants = [\n 'primary',\n 'secondary',\n 'success',\n 'warning',\n 'danger',\n 'neutral',\n 'info',\n 'ghost',\n 'outline',\n 'accent',\n 'cta',\n 'inverse'\n] as const\n\nexport type SpectreBadgeVariant = (typeof spectreBadgeVariants)[number]\n\nexport function isBadgeVariant(value: unknown): value is SpectreBadgeVariant {\n return (spectreBadgeVariants as readonly string[]).includes(value as string)\n}\n\nexport const spectreAlertVariants = [\n 'info',\n 'success',\n 'warning',\n 'danger',\n 'neutral'\n] as const\n\nexport type SpectreAlertVariant = (typeof spectreAlertVariants)[number]\n\nexport function isAlertVariant(value: unknown): value is SpectreAlertVariant {\n return (spectreAlertVariants as readonly string[]).includes(value as string)\n}\n\nexport const spectreCardVariants = [\n 'elevated',\n 'flat',\n 'outline',\n 'ghost'\n] as const\n\nexport type SpectreCardVariant = (typeof spectreCardVariants)[number]\n\nexport function isCardVariant(value: unknown): value is SpectreCardVariant {\n return (spectreCardVariants as readonly string[]).includes(value as string)\n}\n\nexport const spectreCardPaddingSizes = ['sm', 'md', 'lg'] as const\n\nexport type SpectreCardPaddingSize = (typeof spectreCardPaddingSizes)[number]\n\nexport function isCardPaddingSize(\n value: unknown\n): value is SpectreCardPaddingSize {\n return (spectreCardPaddingSizes as readonly string[]).includes(\n value as string\n )\n}\n\nexport const spectreIconBoxVariants = [\n 'primary',\n 'secondary',\n 'success',\n 'warning',\n 'danger',\n 'info',\n 'neutral',\n 'ghost',\n 'accent',\n 'cta',\n 'outline'\n] as const\n\nexport type SpectreIconBoxVariant = (typeof spectreIconBoxVariants)[number]\n\nexport function isIconBoxVariant(\n value: unknown\n): value is SpectreIconBoxVariant {\n return (spectreIconBoxVariants as readonly string[]).includes(value as string)\n}\n\nexport const spectreTestimonialVariants = [\n 'elevated',\n 'flat',\n 'outline',\n 'ghost'\n] as const\n\nexport type SpectreTestimonialVariant =\n (typeof spectreTestimonialVariants)[number]\n\nexport function isTestimonialVariant(\n value: unknown\n): value is SpectreTestimonialVariant {\n return (spectreTestimonialVariants as readonly string[]).includes(\n value as string\n )\n}\n\nexport const spectreSpinnerVariants = [\n 'primary',\n 'secondary',\n 'success',\n 'warning',\n 'danger',\n 'info',\n 'neutral',\n 'accent',\n 'cta'\n] as const\n\nexport type SpectreSpinnerVariant = (typeof spectreSpinnerVariants)[number]\n\nexport function isSpinnerVariant(\n value: unknown\n): value is SpectreSpinnerVariant {\n return (spectreSpinnerVariants as readonly string[]).includes(value as string)\n}\n\nexport const spectreTagVariants = [\n 'default',\n 'primary',\n 'secondary',\n 'success',\n 'warning',\n 'danger',\n 'info',\n 'neutral',\n 'accent',\n 'cta',\n 'outline',\n 'ghost'\n] as const\n\nexport type SpectreTagVariant = (typeof spectreTagVariants)[number]\n\nexport function isTagVariant(value: unknown): value is SpectreTagVariant {\n return (spectreTagVariants as readonly string[]).includes(value as string)\n}\n\nexport const spectreAvatarSizes = ['xs', 'sm', 'md', 'lg', 'xl'] as const\n\nexport type SpectreAvatarSize = (typeof spectreAvatarSizes)[number]\n\nexport function isAvatarSize(value: unknown): value is SpectreAvatarSize {\n return (spectreAvatarSizes as readonly string[]).includes(value as string)\n}\n\nexport const spectreAvatarShapes = ['circle', 'square'] as const\n\nexport type SpectreAvatarShape = (typeof spectreAvatarShapes)[number]\n\nexport function isAvatarShape(value: unknown): value is SpectreAvatarShape {\n return (spectreAvatarShapes as readonly string[]).includes(value as string)\n}\n\nexport const spectreContainerMaxWidths = ['prose'] as const\n\nexport type SpectreContainerMaxWidth =\n (typeof spectreContainerMaxWidths)[number]\n\nexport function isContainerMaxWidth(\n value: unknown\n): value is SpectreContainerMaxWidth {\n return (spectreContainerMaxWidths as readonly string[]).includes(\n value as string\n )\n}\n\nexport const spectreGridColumns = [1, 2, 3, 4, 6, 12] as const\n\nexport type SpectreGridColumns = (typeof spectreGridColumns)[number]\n\nexport function isGridColumns(value: unknown): value is SpectreGridColumns {\n return (spectreGridColumns as readonly number[]).includes(value as number)\n}\n\nexport const spectreGridGaps = ['sm', 'md', 'lg'] as const\n\nexport type SpectreGridGap = (typeof spectreGridGaps)[number]\n\nexport function isGridGap(value: unknown): value is SpectreGridGap {\n return (spectreGridGaps as readonly string[]).includes(value as string)\n}\n\nexport const spectreGridAligns = [\n 'start',\n 'center',\n 'end',\n 'baseline',\n 'stretch'\n] as const\n\nexport type SpectreGridAlign = (typeof spectreGridAligns)[number]\n\nexport function isGridAlign(value: unknown): value is SpectreGridAlign {\n return (spectreGridAligns as readonly string[]).includes(value as string)\n}\n\nexport const spectreGridSpans = [\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12,\n 'full'\n] as const\n\nexport type SpectreGridSpan = (typeof spectreGridSpans)[number]\n\nexport function isGridSpan(value: unknown): value is SpectreGridSpan {\n return (spectreGridSpans as readonly (number | string)[]).includes(\n value as number | string\n )\n}\n\nexport interface SpectreGridSpanOptions {\n base?: SpectreGridSpan\n md?: SpectreGridSpan\n lg?: SpectreGridSpan\n}\n\nexport function isGridSpanOptions(\n value: unknown\n): value is SpectreGridSpanOptions {\n if (typeof value !== 'object' || value === null) {\n return false\n }\n const candidate = value as Record<string, unknown>\n return (\n (candidate.base === undefined || isGridSpan(candidate.base)) &&\n (candidate.md === undefined || isGridSpan(candidate.md)) &&\n (candidate.lg === undefined || isGridSpan(candidate.lg))\n )\n}\n\nexport const spectreGridOffsets = [\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n] as const\n\nexport type SpectreGridOffset = (typeof spectreGridOffsets)[number]\n\nexport function isGridOffset(value: unknown): value is SpectreGridOffset {\n return (spectreGridOffsets as readonly number[]).includes(value as number)\n}\n\nexport interface SpectreGridOffsetOptions {\n base?: SpectreGridOffset\n md?: SpectreGridOffset\n lg?: SpectreGridOffset\n}\n\nexport function isGridOffsetOptions(\n value: unknown\n): value is SpectreGridOffsetOptions {\n if (typeof value !== 'object' || value === null) {\n return false\n }\n const candidate = value as Record<string, unknown>\n return (\n (candidate.base === undefined || isGridOffset(candidate.base)) &&\n (candidate.md === undefined || isGridOffset(candidate.md)) &&\n (candidate.lg === undefined || isGridOffset(candidate.lg))\n )\n}\n\nexport const spectreGridOrders = [\n 'first',\n 'last',\n 'none',\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12\n] as const\n\nexport type SpectreGridOrder = (typeof spectreGridOrders)[number]\n\nexport function isGridOrder(value: unknown): value is SpectreGridOrder {\n return (spectreGridOrders as readonly (number | string)[]).includes(\n value as number | string\n )\n}\n\nexport interface SpectreGridOrderOptions {\n base?: SpectreGridOrder\n md?: SpectreGridOrder\n lg?: SpectreGridOrder\n}\n\nexport function isGridOrderOptions(\n value: unknown\n): value is SpectreGridOrderOptions {\n if (typeof value !== 'object' || value === null) {\n return false\n }\n const candidate = value as Record<string, unknown>\n return (\n (candidate.base === undefined || isGridOrder(candidate.base)) &&\n (candidate.md === undefined || isGridOrder(candidate.md)) &&\n (candidate.lg === undefined || isGridOrder(candidate.lg))\n )\n}\n\nexport const spectreGridLeadingWeights = [1.5, 1.6, 2, 2.5, 3] as const\n\nexport type SpectreGridLeadingWeight =\n (typeof spectreGridLeadingWeights)[number]\n\nexport function isGridLeadingWeight(\n value: unknown\n): value is SpectreGridLeadingWeight {\n return (spectreGridLeadingWeights as readonly number[]).includes(\n value as number\n )\n}\n\nexport interface SpectreGridLeadingWeightOptions {\n base?: SpectreGridLeadingWeight\n md?: SpectreGridLeadingWeight\n lg?: SpectreGridLeadingWeight\n}\n\nexport function isGridLeadingWeightOptions(\n value: unknown\n): value is SpectreGridLeadingWeightOptions {\n if (typeof value !== 'object' || value === null) {\n return false\n }\n const candidate = value as Record<string, unknown>\n return (\n (candidate.base === undefined || isGridLeadingWeight(candidate.base)) &&\n (candidate.md === undefined || isGridLeadingWeight(candidate.md)) &&\n (candidate.lg === undefined || isGridLeadingWeight(candidate.lg))\n )\n}\n\nexport interface SpectreGridLeadingTracksOptions {\n weight: SpectreGridLeadingWeight | SpectreGridLeadingWeightOptions\n}\n\nexport function isGridLeadingTracksOptions(\n value: unknown\n): value is SpectreGridLeadingTracksOptions {\n if (typeof value !== 'object' || value === null) {\n return false\n }\n const candidate = value as Record<string, unknown>\n return (\n isGridLeadingWeight(candidate.weight) ||\n isGridLeadingWeightOptions(candidate.weight)\n )\n}\n\nexport const spectreGridFixedTrackCounts = [1, 2, 3, 4] as const\n\nexport type SpectreGridFixedTrackCount =\n (typeof spectreGridFixedTrackCounts)[number]\n\nexport function isGridFixedTrackCount(\n value: unknown\n): value is SpectreGridFixedTrackCount {\n return (spectreGridFixedTrackCounts as readonly number[]).includes(\n value as number\n )\n}\n\nexport interface SpectreGridFixedTracksOptions {\n count: SpectreGridFixedTrackCount\n}\n\nexport function isGridFixedTracksOptions(\n value: unknown\n): value is SpectreGridFixedTracksOptions {\n if (typeof value !== 'object' || value === null) {\n return false\n }\n const candidate = value as Record<string, unknown>\n return isGridFixedTrackCount(candidate.count)\n}\n\nexport const spectreGridTemplates = [\n 'edge-fluid-edge',\n 'label-fluid-fluid'\n] as const\n\nexport type SpectreGridTemplate = (typeof spectreGridTemplates)[number]\n\nexport function isGridTemplate(value: unknown): value is SpectreGridTemplate {\n return (spectreGridTemplates as readonly string[]).includes(value as string)\n}\n\nexport interface SpectreGridExplicitTemplateOptions {\n template: SpectreGridTemplate\n weight?: SpectreGridLeadingWeight\n}\n\nexport function isGridExplicitTemplateOptions(\n value: unknown\n): value is SpectreGridExplicitTemplateOptions {\n if (typeof value !== 'object' || value === null) {\n return false\n }\n const candidate = value as Record<string, unknown>\n return (\n isGridTemplate(candidate.template) &&\n (candidate.weight === undefined || isGridLeadingWeight(candidate.weight))\n )\n}\n\nexport const spectreStackDirections = ['vertical', 'horizontal'] as const\n\nexport type SpectreStackDirection = (typeof spectreStackDirections)[number]\n\nexport function isStackDirection(\n value: unknown\n): value is SpectreStackDirection {\n return (spectreStackDirections as readonly string[]).includes(value as string)\n}\n\nexport const spectreStackBases = ['sidebar'] as const\n\nexport type SpectreStackBasis = (typeof spectreStackBases)[number]\n\nexport function isStackBasis(value: unknown): value is SpectreStackBasis {\n return (spectreStackBases as readonly string[]).includes(value as string)\n}\n\nexport const spectreNavAligns = ['start', 'center', 'end'] as const\n\nexport type SpectreNavAlign = (typeof spectreNavAligns)[number]\n\nexport function isNavAlign(value: unknown): value is SpectreNavAlign {\n return (spectreNavAligns as readonly string[]).includes(value as string)\n}\n\nexport const spectreStackAligns = ['center', 'stretch'] as const\n\nexport type SpectreStackAlign = (typeof spectreStackAligns)[number]\n\nexport function isStackAlign(value: unknown): value is SpectreStackAlign {\n return (spectreStackAligns as readonly string[]).includes(value as string)\n}\n\nexport const spectreStackGaps = ['sm', 'md', 'lg'] as const\n\nexport type SpectreStackGap = (typeof spectreStackGaps)[number]\n\nexport function isStackGap(value: unknown): value is SpectreStackGap {\n return (spectreStackGaps as readonly string[]).includes(value as string)\n}\n\nexport const spectreDropdownPlacements = [\n 'bottom-start',\n 'bottom-end',\n 'top-start',\n 'top-end'\n] as const\n\nexport type SpectreDropdownPlacement =\n (typeof spectreDropdownPlacements)[number]\n\nexport function isDropdownPlacement(\n value: unknown\n): value is SpectreDropdownPlacement {\n return (spectreDropdownPlacements as readonly string[]).includes(\n value as string\n )\n}\n\nexport const spectreToastVariants = [\n 'info',\n 'success',\n 'warning',\n 'danger'\n] as const\n\nexport type SpectreToastVariant = (typeof spectreToastVariants)[number]\n\nexport function isToastVariant(value: unknown): value is SpectreToastVariant {\n return (spectreToastVariants as readonly string[]).includes(value as string)\n}\n\nexport const spectreSidebarLinkLevels = ['parent', 'child'] as const\n\nexport type SpectreSidebarLinkLevel = (typeof spectreSidebarLinkLevels)[number]\n\nexport function isSidebarLinkLevel(\n value: unknown\n): value is SpectreSidebarLinkLevel {\n return (spectreSidebarLinkLevels as readonly string[]).includes(\n value as string\n )\n}\n\nexport const spectreTooltipPlacements = [\n 'top',\n 'bottom',\n 'left',\n 'right'\n] as const\n\nexport type SpectreTooltipPlacement = (typeof spectreTooltipPlacements)[number]\n\nexport function isTooltipPlacement(\n value: unknown\n): value is SpectreTooltipPlacement {\n return (spectreTooltipPlacements as readonly string[]).includes(\n value as string\n )\n}\n\nexport const spectreTextSizes = [\n 'xs',\n 'sm',\n 'md',\n 'lg',\n 'xl',\n '2xl',\n '3xl',\n '4xl',\n '5xl',\n '6xl'\n] as const\n\nexport type SpectreTextSize = (typeof spectreTextSizes)[number]\n\nexport function isTextSize(value: unknown): value is SpectreTextSize {\n return (spectreTextSizes as readonly string[]).includes(value as string)\n}\n\nexport const spectreTextVariants = [\n 'default',\n 'muted',\n 'subtle',\n 'meta',\n 'brand',\n 'onInverse',\n 'onInverseMuted'\n] as const\n\nexport type SpectreTextVariant = (typeof spectreTextVariants)[number]\n\nexport function isTextVariant(value: unknown): value is SpectreTextVariant {\n return (spectreTextVariants as readonly string[]).includes(value as string)\n}\n\nexport const spectreTextFamilies = ['sans', 'serif', 'mono'] as const\n\nexport type SpectreTextFamily = (typeof spectreTextFamilies)[number]\n\nexport function isTextFamily(value: unknown): value is SpectreTextFamily {\n return (spectreTextFamilies as readonly string[]).includes(value as string)\n}\n\nexport const spectreTextLevels = [\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'p',\n 'span'\n] as const\n\nexport type SpectreTextLevel = (typeof spectreTextLevels)[number]\n\nexport function isTextLevel(value: unknown): value is SpectreTextLevel {\n return (spectreTextLevels as readonly string[]).includes(value as string)\n}\n\nexport const spectreTextTransforms = [\n 'none',\n 'uppercase',\n 'lowercase',\n 'capitalize'\n] as const\n\nexport type SpectreTextTransform = (typeof spectreTextTransforms)[number]\n\nexport function isTextTransform(value: unknown): value is SpectreTextTransform {\n return (spectreTextTransforms as readonly string[]).includes(value as string)\n}\n\nexport function normalizeInt(\n value: unknown,\n fallback: number | undefined,\n min = 0\n): number | undefined {\n if (\n value == null ||\n typeof value !== 'number' ||\n !Number.isInteger(value) ||\n value < min\n ) {\n return fallback\n }\n return value\n}\n\nconst spectreUtilityClassPattern =\n /^sp-[a-z0-9]+(?:-[a-z0-9]+)*(?:__[a-z0-9]+(?:-[a-z0-9]+)*)?(?:--[a-z0-9]+(?:-[a-z0-9]+)*)?$/\n\nexport function sanitizeUtilityClasses(\n value: string | null | undefined\n): string {\n if (!value) {\n return ''\n }\n return value\n .split(/\\s+/)\n .filter((token) => spectreUtilityClassPattern.test(token))\n .join(' ')\n}\n","import { html, nothing } from 'lit'\nimport { ifDefined } from 'lit/directives/if-defined.js'\n\nimport { SpectreProjectableElement } from '../../utils/projectable'\nimport { sanitizeUtilityClasses } from '../../utils/form'\n\nimport { getFooterClasses } from '@phcdevworks/spectre-ui'\n\nexport interface SpectreFooterProps {\n ariaLabel?: string | null\n bordered?: boolean | undefined\n fullWidth?: boolean | undefined\n id?: string | null | undefined\n innerClass?: string | undefined\n title?: string | null | undefined\n}\n\nexport class SpectreFooterElement\n extends SpectreProjectableElement\n implements SpectreFooterProps\n{\n static properties = {\n bordered: { type: Boolean, reflect: true },\n fullWidth: { attribute: 'full-width', type: Boolean, reflect: true },\n innerClass: { attribute: 'inner-class', type: String }\n }\n\n bordered: boolean | undefined = false\n fullWidth: boolean | undefined = false\n innerClass: string | undefined = undefined\n\n override get id(): string {\n return super.id\n }\n\n override set id(value: string | null | undefined) {\n super.id = value\n }\n\n override get title(): string {\n return super.title\n }\n\n override set title(value: string | null | undefined) {\n super.title = value\n }\n\n override connectedCallback(): void {\n super.connectedCallback()\n this.style.display ||= 'block'\n }\n\n protected override getContentContainer(): Element | null {\n return this.querySelector('[data-sp-footer-native]')\n }\n\n protected override isInternalNode(node: Node): boolean {\n if (node.nodeType !== Node.ELEMENT_NODE) {\n return false\n }\n const el = node as Element\n return el.hasAttribute('data-sp-footer-native')\n }\n\n protected override willUpdate(\n changedProperties: Map<PropertyKey, unknown>\n ): void {\n if (changedProperties.has('bordered') && this.bordered == null) {\n this.bordered = false\n }\n if (changedProperties.has('fullWidth') && this.fullWidth == null) {\n this.fullWidth = false\n }\n }\n\n private get footerClasses(): string {\n const recipeClasses = getFooterClasses({\n bordered: this.bordered ?? false,\n fullWidth: this.fullWidth ?? false\n })\n const utilityClasses = sanitizeUtilityClasses(this.innerClass)\n return utilityClasses\n ? `${recipeClasses} ${utilityClasses}`\n : recipeClasses\n }\n\n override render() {\n return html`<footer\n aria-label=\"${ifDefined(this.forwardedAriaLabel)}\"\n class=\"${this.footerClasses}\"\n data-sp-footer-native\n id=\"${ifDefined(this.id || undefined)}\"\n title=\"${ifDefined(this.title || undefined)}\"\n >\n ${this.hasProjectedContent ? this.projectedContent : nothing}\n </footer>`\n }\n}\n\nexport function defineSpectreFooter(\n tagName = 'sp-footer'\n): typeof SpectreFooterElement {\n const existingElement = customElements.get(tagName)\n\n if (existingElement) {\n return existingElement as unknown as typeof SpectreFooterElement\n }\n\n customElements.define(tagName, SpectreFooterElement)\n return SpectreFooterElement\n}\n"]}
1
+ {"version":3,"sources":["../src/utils/parts.ts","../src/utils/base.ts","../src/utils/dom.ts","../src/utils/projectable.ts","../src/utils/form.ts","../src/components/footer/sp-footer.ts"],"names":[],"mappings":";;;;;;;AAGO,SAAS,gBAAA,CACd,UACA,KAAA,EACM;AACN,EAAA,KAAA,MAAW,WAAW,QAAA,EAAU;AAC9B,IAAA,MAAM,IAAA,GAAO,OAAA,CAAQ,YAAA,CAAa,MAAM,CAAA;AACxC,IAAA,MAAM,OAAA,GAAU,IAAA,GAAO,KAAA,CAAM,IAAI,CAAA,GAAI,MAAA;AACrC,IAAA,IAAI,OAAA,EAAS;AACX,MAAA,OAAA,CAAQ,SAAA,CAAU,IAAI,GAAG,OAAA,CAAQ,MAAM,KAAK,CAAA,CAAE,MAAA,CAAO,OAAO,CAAC,CAAA;AAAA,IAC/D;AAAA,EACF;AACF;ACZO,IAAM,kBAAA,GAAN,cAAiC,UAAA,CAAW;AAAA,EAA5C,WAAA,GAAA;AAAA,IAAA,KAAA,CAAA,GAAA,SAAA,CAAA;AAGL,IAAA,IAAA,CAAQ,UAAA,GAA4B,IAAA;AACpC,IAAA,IAAA,CAAQ,eAAA,GAAiC,IAAA;AACzC,IAAA,IAAA,CAAQ,gBAAA,GAAkC,IAAA;AAC1C,IAAA,IAAA,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OAAA,EAAS,SAAS,IAAA,EAAK;AAAA,EACnE,UAAA,EAAY,EAAE,SAAA,EAAW,aAAA,EAAe,MAAM,MAAA;AAChD,CAAA;AAiHK,SAAS,mBAAA,CACd,UAAU,WAAA,EACmB;AAC7B,EAAA,MAAM,eAAA,GAAkB,cAAA,CAAe,GAAA,CAAI,OAAO,CAAA;AAElD,EAAA,IAAI,eAAA,EAAiB;AACnB,IAAA,OAAO,eAAA;AAAA,EACT;AAEA,EAAA,cAAA,CAAe,MAAA,CAAO,SAAS,oBAAoB,CAAA;AACnD,EAAA,OAAO,oBAAA;AACT","file":"footer.js","sourcesContent":["// Adds a recipe's part classes to authored elements that opt in with\n// `slot=\"<part>\"`. The elements stay where they were authored, so free-form\n// layouts (footer columns, menu groups) keep their order.\nexport function applyPartClasses(\n elements: Iterable<Element>,\n parts: Readonly<Record<string, string>>\n): void {\n for (const element of elements) {\n const part = element.getAttribute('slot')\n const classes = part ? parts[part] : undefined\n if (classes) {\n element.classList.add(...classes.split(/\\s+/).filter(Boolean))\n }\n }\n}\n\nexport function childElements(nodes: readonly Node[]): Element[] {\n return nodes.filter(\n (node): node is Element => node.nodeType === Node.ELEMENT_NODE\n )\n}\n","import { LitElement, type PropertyDeclarations } from 'lit'\n\nexport class SpectreBaseElement extends LitElement {\n static properties: PropertyDeclarations = {}\n\n private _ariaLabel: string | null = null\n private _ariaLabelledBy: string | null = null\n private _ariaDescribedBy: string | null = null\n private _autocapitalize = ''\n private _autofocus = false\n private _spellcheck: boolean | null = null\n private _title = ''\n private _id = ''\n\n get ariaLabel(): string | null {\n return this._ariaLabel\n }\n\n set ariaLabel(value: string | null) {\n if (this._ariaLabel === value) {\n return\n }\n this._ariaLabel = value\n this._removeHostAttribute('aria-label')\n this.requestUpdate()\n }\n\n get ariaLabelledBy(): string | null {\n return this._ariaLabelledBy\n }\n\n set ariaLabelledBy(value: string | null) {\n if (this._ariaLabelledBy === value) {\n return\n }\n this._ariaLabelledBy = value\n this._removeHostAttribute('aria-labelledby')\n this.requestUpdate()\n }\n\n get ariaDescribedBy(): string | null {\n return this._ariaDescribedBy\n }\n\n set ariaDescribedBy(value: string | null) {\n if (this._ariaDescribedBy === value) {\n return\n }\n this._ariaDescribedBy = value\n this._removeHostAttribute('aria-describedby')\n this.requestUpdate()\n }\n\n override get autocapitalize(): string {\n return this._autocapitalize\n }\n\n override set autocapitalize(value: string | undefined | null) {\n const normalizedValue = value ?? ''\n if (this._autocapitalize === normalizedValue) {\n return\n }\n this._autocapitalize = normalizedValue\n this._removeHostAttribute('autocapitalize')\n this.requestUpdate()\n }\n\n override get spellcheck(): boolean {\n return this._spellcheck ?? super.spellcheck\n }\n\n override set spellcheck(value: boolean | undefined | null) {\n if (this._spellcheck === value) {\n return\n }\n this._spellcheck = value ?? null\n this._removeHostAttribute('spellcheck')\n this.requestUpdate()\n }\n\n override get title(): string {\n return this._title\n }\n\n override set title(value: string | undefined | null) {\n const normalizedValue = value ?? ''\n if (this._title === normalizedValue) {\n return\n }\n this._title = normalizedValue\n this._removeHostAttribute('title')\n this.requestUpdate()\n }\n\n override get id(): string {\n return this._id\n }\n\n override set id(value: string | undefined | null) {\n const normalizedValue = value ?? ''\n if (this._id === normalizedValue) {\n return\n }\n this._id = normalizedValue\n this._removeHostAttribute('id')\n this.requestUpdate()\n }\n\n override get autofocus(): boolean {\n return this._autofocus\n }\n\n override set autofocus(value: boolean | undefined | null) {\n const normalizedValue = !!value\n if (this._autofocus === normalizedValue) {\n return\n }\n this._autofocus = normalizedValue\n this._removeHostAttribute('autofocus')\n this.requestUpdate()\n }\n\n // Spectre components intentionally render in light DOM so the global\n // `@phcdevworks/spectre-ui` styling contract can apply directly.\n createRenderRoot(): this {\n return this\n }\n\n override connectedCallback(): void {\n super.connectedCallback()\n\n const proxiedAttributes = [\n 'id',\n 'title',\n 'autocapitalize',\n 'autofocus',\n 'spellcheck',\n 'aria-label',\n 'aria-labelledby',\n 'aria-describedby'\n ]\n\n proxiedAttributes.forEach((attr) => {\n const value = super.getAttribute(attr)\n if (value !== null) {\n this.setAttribute(attr, value)\n }\n })\n }\n\n override getAttribute(qualifiedName: string): string | null {\n switch (qualifiedName) {\n case 'id':\n return this.id || null\n case 'title':\n return this.title || null\n case 'autocapitalize':\n return this.autocapitalize || null\n case 'autofocus':\n return this.autofocus ? '' : null\n case 'spellcheck':\n return this._spellcheck !== null ? String(this._spellcheck) : null\n case 'aria-label':\n return this.ariaLabel\n case 'aria-labelledby':\n return this.ariaLabelledBy\n case 'aria-describedby':\n return this.ariaDescribedBy\n default:\n return super.getAttribute(qualifiedName)\n }\n }\n\n override hasAttribute(qualifiedName: string): boolean {\n switch (qualifiedName) {\n case 'id':\n return this.id !== ''\n case 'title':\n return this.title !== ''\n case 'autocapitalize':\n return this.autocapitalize !== ''\n case 'autofocus':\n return this.autofocus\n case 'spellcheck':\n return this._spellcheck !== null\n case 'aria-label':\n return this.ariaLabel !== null\n case 'aria-labelledby':\n return this.ariaLabelledBy !== null\n case 'aria-describedby':\n return this.ariaDescribedBy !== null\n default:\n return super.hasAttribute(qualifiedName)\n }\n }\n\n override setAttribute(qualifiedName: string, value: string): void {\n switch (qualifiedName) {\n case 'id':\n this.id = value\n break\n case 'title':\n this.title = value\n break\n case 'autocapitalize':\n this.autocapitalize = value\n break\n case 'autofocus':\n this.autofocus = true\n break\n case 'spellcheck':\n this.spellcheck = value !== 'false'\n break\n case 'aria-label':\n this.ariaLabel = value\n break\n case 'aria-labelledby':\n this.ariaLabelledBy = value\n break\n case 'aria-describedby':\n this.ariaDescribedBy = value\n break\n default:\n super.setAttribute(qualifiedName, value)\n }\n }\n\n override removeAttribute(qualifiedName: string): void {\n switch (qualifiedName) {\n case 'id':\n this.id = ''\n break\n case 'title':\n this.title = ''\n break\n case 'autocapitalize':\n this.autocapitalize = ''\n break\n case 'autofocus':\n this.autofocus = false\n break\n case 'spellcheck':\n this.spellcheck = null\n break\n case 'aria-label':\n this.ariaLabel = null\n break\n case 'aria-labelledby':\n this.ariaLabelledBy = null\n break\n case 'aria-describedby':\n this.ariaDescribedBy = null\n break\n default:\n super.removeAttribute(qualifiedName)\n }\n }\n\n private _removeHostAttribute(name: string): void {\n const host = this as unknown as HTMLElement\n if (HTMLElement.prototype.hasAttribute.call(host, name)) {\n // Use the native removeAttribute to avoid our own overridden version\n // which would reset the internal state.\n HTMLElement.prototype.removeAttribute.call(host, name)\n }\n }\n\n protected get forwardedAriaLabel(): string | undefined {\n const value = this.ariaLabel?.trim()\n return value ? value : undefined\n }\n\n protected get forwardedAriaLabelledBy(): string | undefined {\n const value = this.ariaLabelledBy?.trim()\n return value ? value : undefined\n }\n\n protected get forwardedAriaDescribedBy(): string | undefined {\n const value = this.ariaDescribedBy?.trim()\n return value ? value : undefined\n }\n\n // Subclasses that expose `disabled`/`loading` properties get this disabled\n // calculation for free instead of redeclaring it per component.\n protected get isDisabled(): boolean {\n const self = this as unknown as { disabled?: boolean; loading?: boolean }\n return (self.disabled ?? false) || (self.loading ?? false)\n }\n\n // Subclasses get this for free instead of redeclaring it per component.\n protected get hasForwardedLabel(): boolean {\n return Boolean(this.forwardedAriaLabel || this.forwardedAriaLabelledBy)\n }\n}\n","export function hasMeaningfulContent(nodes: readonly Node[]): boolean {\n return nodes.some((node) => {\n if (node.nodeType === Node.ELEMENT_NODE) {\n return true\n }\n\n if (node.nodeType === Node.TEXT_NODE) {\n return (node.textContent?.trim().length ?? 0) > 0\n }\n\n return false\n })\n}\n\nlet idCounter = 0\n\nexport function createUniqueId(prefix: string): string {\n idCounter += 1\n return `${prefix}-${idCounter}`\n}\n\n// Swaps the recipe classes this component previously applied to `element`\n// without touching classes the author set.\nexport function replaceClasses(\n element: Element,\n previous: string,\n next: string\n): void {\n const nextTokens = next.split(/\\s+/).filter(Boolean)\n previous\n .split(/\\s+/)\n .filter((token) => token && !nextTokens.includes(token))\n .forEach((token) => element.classList.remove(token))\n element.classList.add(...nextTokens)\n}\n\n// Parent/child component pairs identify each other through a global symbol\n// rather than `instanceof`, because every subpath entry bundles its own copy\n// of the child class.\nexport const spectreKindKey: unique symbol = Symbol.for(\n 'phcdevworks.spectre-components.kind'\n)\n\nexport function isSpectreKind<T extends Element>(\n node: Node,\n kind: string\n): node is T {\n return (node as { [spectreKindKey]?: string })[spectreKindKey] === kind\n}\n","import { SpectreBaseElement } from './base'\nimport { hasMeaningfulContent } from './dom'\n\nexport abstract class SpectreProjectableElement extends SpectreBaseElement {\n protected projectedContent: Node[] = []\n private contentObserver?: MutationObserver | undefined\n\n // Return the native container whose existing children are also treated as\n // projected content sources (e.g. the rendered <button>, <select>, <label>).\n protected abstract getContentContainer(): Element | null\n\n // Return true if the node was rendered by this component and should not be\n // treated as external projected content.\n protected abstract isInternalNode(node: Node): boolean\n\n protected get hasProjectedContent(): boolean {\n return hasMeaningfulContent(this.projectedContent)\n }\n\n override connectedCallback(): void {\n super.connectedCallback()\n this.syncProjectedContent()\n this.startContentObserver()\n }\n\n override disconnectedCallback(): void {\n this.stopContentObserver()\n super.disconnectedCallback()\n }\n\n protected override update(\n changedProperties: Map<PropertyKey, unknown>\n ): void {\n this.stopContentObserver()\n super.update(changedProperties)\n this.startContentObserver()\n }\n\n protected syncProjectedContent(): boolean {\n const nextProjectedContent: Node[] = []\n const sourceNodes = [\n ...this.childNodes,\n ...(this.getContentContainer()?.childNodes ?? [])\n ]\n\n sourceNodes.forEach((node) => {\n if (!this.isInternalNode(node) && !nextProjectedContent.includes(node)) {\n nextProjectedContent.push(node)\n }\n })\n\n const hasChanged =\n nextProjectedContent.length !== this.projectedContent.length ||\n nextProjectedContent.some(\n (node, index) => node !== this.projectedContent[index]\n )\n\n if (hasChanged) {\n this.projectedContent = nextProjectedContent\n }\n\n return hasChanged\n }\n\n private startContentObserver(): void {\n if (this.contentObserver) {\n return\n }\n\n this.contentObserver = new MutationObserver((mutations) => {\n const isInternalMovement = mutations.every(\n (mutation) =>\n [...mutation.removedNodes].every(\n (node) => this.isInternalNode(node) || this.contains(node)\n ) &&\n [...mutation.addedNodes].every((node) => this.isInternalNode(node))\n )\n\n if (isInternalMovement) {\n return\n }\n\n if (this.syncProjectedContent()) {\n this.requestUpdate()\n }\n })\n\n this.contentObserver.observe(this, { childList: true })\n }\n\n private stopContentObserver(): void {\n this.contentObserver?.disconnect()\n this.contentObserver = undefined\n }\n}\n","import {\n type ButtonSize,\n type ButtonVariant,\n type InputSize\n} from '@phcdevworks/spectre-ui'\n\nexport const spectreInputSizes = ['sm', 'md', 'lg'] as const\nexport type SpectreInputSize = (typeof spectreInputSizes)[number]\n\nexport function isInputSize(value: unknown): value is InputSize | ButtonSize {\n return (spectreInputSizes as readonly string[]).includes(value as string)\n}\n\nexport const spectreButtonVariants = [\n 'primary',\n 'secondary',\n 'ghost',\n 'danger',\n 'success',\n 'cta',\n 'accent',\n 'inverse',\n 'warning',\n 'link',\n 'light',\n 'dark'\n] as const\n\nexport type SpectreButtonVariant = (typeof spectreButtonVariants)[number]\n\nexport function isButtonVariant(value: unknown): value is ButtonVariant {\n return (spectreButtonVariants as readonly string[]).includes(value as string)\n}\n\nexport const spectreButtonTypes = ['button', 'submit', 'reset'] as const\n\nexport type SpectreButtonType = (typeof spectreButtonTypes)[number]\n\nexport function isButtonType(value: unknown): value is SpectreButtonType {\n return (spectreButtonTypes as readonly string[]).includes(value as string)\n}\n\nexport const spectreInputTypes = [\n 'text',\n 'email',\n 'password',\n 'search',\n 'tel',\n 'url',\n 'number',\n 'date',\n 'datetime-local',\n 'month',\n 'time',\n 'week'\n] as const\n\nexport type SpectreInputType = (typeof spectreInputTypes)[number]\n\nexport function isInputType(value: unknown): value is SpectreInputType {\n return (spectreInputTypes as readonly string[]).includes(value as string)\n}\n\nexport const spectreBadgeVariants = [\n 'primary',\n 'secondary',\n 'success',\n 'warning',\n 'danger',\n 'neutral',\n 'info',\n 'ghost',\n 'outline',\n 'accent',\n 'cta',\n 'inverse',\n 'brand'\n] as const\n\nexport type SpectreBadgeVariant = (typeof spectreBadgeVariants)[number]\n\nexport function isBadgeVariant(value: unknown): value is SpectreBadgeVariant {\n return (spectreBadgeVariants as readonly string[]).includes(value as string)\n}\n\nexport const spectreAlertVariants = [\n 'info',\n 'success',\n 'warning',\n 'danger',\n 'neutral',\n 'brand'\n] as const\n\nexport type SpectreAlertVariant = (typeof spectreAlertVariants)[number]\n\nexport function isAlertVariant(value: unknown): value is SpectreAlertVariant {\n return (spectreAlertVariants as readonly string[]).includes(value as string)\n}\n\nexport const spectreCardVariants = [\n 'elevated',\n 'flat',\n 'outline',\n 'ghost'\n] as const\n\nexport type SpectreCardVariant = (typeof spectreCardVariants)[number]\n\nexport function isCardVariant(value: unknown): value is SpectreCardVariant {\n return (spectreCardVariants as readonly string[]).includes(value as string)\n}\n\nexport const spectreCardPaddingSizes = ['sm', 'md', 'lg'] as const\n\nexport type SpectreCardPaddingSize = (typeof spectreCardPaddingSizes)[number]\n\nexport function isCardPaddingSize(\n value: unknown\n): value is SpectreCardPaddingSize {\n return (spectreCardPaddingSizes as readonly string[]).includes(\n value as string\n )\n}\n\nexport const spectreAccentEdges = ['top', 'right', 'bottom', 'left'] as const\n\nexport type SpectreAccentEdge = (typeof spectreAccentEdges)[number]\n\nexport function isAccentEdge(value: unknown): value is SpectreAccentEdge {\n return (spectreAccentEdges as readonly string[]).includes(value as string)\n}\n\nexport const spectreAccentColors = [\n 'neutral',\n 'brand',\n 'info',\n 'success',\n 'warning',\n 'danger',\n 'cta'\n] as const\n\nexport type SpectreAccentColor = (typeof spectreAccentColors)[number]\n\nexport function isAccentColor(value: unknown): value is SpectreAccentColor {\n return (spectreAccentColors as readonly string[]).includes(value as string)\n}\n\nexport const spectreIconBoxVariants = [\n 'primary',\n 'secondary',\n 'success',\n 'warning',\n 'danger',\n 'info',\n 'neutral',\n 'ghost',\n 'accent',\n 'cta',\n 'outline'\n] as const\n\nexport type SpectreIconBoxVariant = (typeof spectreIconBoxVariants)[number]\n\nexport function isIconBoxVariant(\n value: unknown\n): value is SpectreIconBoxVariant {\n return (spectreIconBoxVariants as readonly string[]).includes(value as string)\n}\n\nexport const spectreTestimonialVariants = [\n 'elevated',\n 'flat',\n 'outline',\n 'ghost'\n] as const\n\nexport type SpectreTestimonialVariant =\n (typeof spectreTestimonialVariants)[number]\n\nexport function isTestimonialVariant(\n value: unknown\n): value is SpectreTestimonialVariant {\n return (spectreTestimonialVariants as readonly string[]).includes(\n value as string\n )\n}\n\nexport const spectreSpinnerVariants = [\n 'primary',\n 'secondary',\n 'success',\n 'warning',\n 'danger',\n 'info',\n 'neutral',\n 'accent',\n 'cta',\n 'inverse'\n] as const\n\nexport type SpectreSpinnerVariant = (typeof spectreSpinnerVariants)[number]\n\nexport function isSpinnerVariant(\n value: unknown\n): value is SpectreSpinnerVariant {\n return (spectreSpinnerVariants as readonly string[]).includes(value as string)\n}\n\nexport const spectreTagVariants = [\n 'default',\n 'primary',\n 'secondary',\n 'success',\n 'warning',\n 'danger',\n 'info',\n 'neutral',\n 'accent',\n 'cta',\n 'outline',\n 'ghost'\n] as const\n\nexport type SpectreTagVariant = (typeof spectreTagVariants)[number]\n\nexport function isTagVariant(value: unknown): value is SpectreTagVariant {\n return (spectreTagVariants as readonly string[]).includes(value as string)\n}\n\nexport const spectreAvatarSizes = ['xs', 'sm', 'md', 'lg', 'xl'] as const\n\nexport type SpectreAvatarSize = (typeof spectreAvatarSizes)[number]\n\nexport function isAvatarSize(value: unknown): value is SpectreAvatarSize {\n return (spectreAvatarSizes as readonly string[]).includes(value as string)\n}\n\nexport const spectreAvatarShapes = ['circle', 'square'] as const\n\nexport type SpectreAvatarShape = (typeof spectreAvatarShapes)[number]\n\nexport function isAvatarShape(value: unknown): value is SpectreAvatarShape {\n return (spectreAvatarShapes as readonly string[]).includes(value as string)\n}\n\nexport const spectreContainerMaxWidths = ['none', 'prose', 'wide'] as const\n\nexport type SpectreContainerMaxWidth =\n (typeof spectreContainerMaxWidths)[number]\n\nexport function isContainerMaxWidth(\n value: unknown\n): value is SpectreContainerMaxWidth {\n return (spectreContainerMaxWidths as readonly string[]).includes(\n value as string\n )\n}\n\nexport const spectreGridColumns = [1, 2, 3, 4, 6, 12] as const\n\nexport type SpectreGridColumns = (typeof spectreGridColumns)[number]\n\nexport function isGridColumns(value: unknown): value is SpectreGridColumns {\n return (spectreGridColumns as readonly number[]).includes(value as number)\n}\n\nexport const spectreGridGaps = ['sm', 'md', 'lg'] as const\n\nexport type SpectreGridGap = (typeof spectreGridGaps)[number]\n\nexport function isGridGap(value: unknown): value is SpectreGridGap {\n return (spectreGridGaps as readonly string[]).includes(value as string)\n}\n\nexport const spectreGridAligns = [\n 'start',\n 'center',\n 'end',\n 'baseline',\n 'stretch'\n] as const\n\nexport type SpectreGridAlign = (typeof spectreGridAligns)[number]\n\nexport function isGridAlign(value: unknown): value is SpectreGridAlign {\n return (spectreGridAligns as readonly string[]).includes(value as string)\n}\n\nexport const spectreGridSpans = [\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12,\n 'full'\n] as const\n\nexport type SpectreGridSpan = (typeof spectreGridSpans)[number]\n\nexport function isGridSpan(value: unknown): value is SpectreGridSpan {\n return (spectreGridSpans as readonly (number | string)[]).includes(\n value as number | string\n )\n}\n\nexport interface SpectreGridSpanOptions {\n base?: SpectreGridSpan\n md?: SpectreGridSpan\n lg?: SpectreGridSpan\n}\n\nexport function isGridSpanOptions(\n value: unknown\n): value is SpectreGridSpanOptions {\n if (typeof value !== 'object' || value === null) {\n return false\n }\n const candidate = value as Record<string, unknown>\n return (\n (candidate.base === undefined || isGridSpan(candidate.base)) &&\n (candidate.md === undefined || isGridSpan(candidate.md)) &&\n (candidate.lg === undefined || isGridSpan(candidate.lg))\n )\n}\n\nexport const spectreGridOffsets = [\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n] as const\n\nexport type SpectreGridOffset = (typeof spectreGridOffsets)[number]\n\nexport function isGridOffset(value: unknown): value is SpectreGridOffset {\n return (spectreGridOffsets as readonly number[]).includes(value as number)\n}\n\nexport interface SpectreGridOffsetOptions {\n base?: SpectreGridOffset\n md?: SpectreGridOffset\n lg?: SpectreGridOffset\n}\n\nexport function isGridOffsetOptions(\n value: unknown\n): value is SpectreGridOffsetOptions {\n if (typeof value !== 'object' || value === null) {\n return false\n }\n const candidate = value as Record<string, unknown>\n return (\n (candidate.base === undefined || isGridOffset(candidate.base)) &&\n (candidate.md === undefined || isGridOffset(candidate.md)) &&\n (candidate.lg === undefined || isGridOffset(candidate.lg))\n )\n}\n\nexport const spectreGridOrders = [\n 'first',\n 'last',\n 'none',\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12\n] as const\n\nexport type SpectreGridOrder = (typeof spectreGridOrders)[number]\n\nexport function isGridOrder(value: unknown): value is SpectreGridOrder {\n return (spectreGridOrders as readonly (number | string)[]).includes(\n value as number | string\n )\n}\n\nexport interface SpectreGridOrderOptions {\n base?: SpectreGridOrder\n md?: SpectreGridOrder\n lg?: SpectreGridOrder\n}\n\nexport function isGridOrderOptions(\n value: unknown\n): value is SpectreGridOrderOptions {\n if (typeof value !== 'object' || value === null) {\n return false\n }\n const candidate = value as Record<string, unknown>\n return (\n (candidate.base === undefined || isGridOrder(candidate.base)) &&\n (candidate.md === undefined || isGridOrder(candidate.md)) &&\n (candidate.lg === undefined || isGridOrder(candidate.lg))\n )\n}\n\nexport const spectreGridLeadingWeights = [1.5, 1.6, 2, 2.5, 3] as const\n\nexport type SpectreGridLeadingWeight =\n (typeof spectreGridLeadingWeights)[number]\n\nexport function isGridLeadingWeight(\n value: unknown\n): value is SpectreGridLeadingWeight {\n return (spectreGridLeadingWeights as readonly number[]).includes(\n value as number\n )\n}\n\nexport interface SpectreGridLeadingWeightOptions {\n base?: SpectreGridLeadingWeight\n md?: SpectreGridLeadingWeight\n lg?: SpectreGridLeadingWeight\n}\n\nexport function isGridLeadingWeightOptions(\n value: unknown\n): value is SpectreGridLeadingWeightOptions {\n if (typeof value !== 'object' || value === null) {\n return false\n }\n const candidate = value as Record<string, unknown>\n return (\n (candidate.base === undefined || isGridLeadingWeight(candidate.base)) &&\n (candidate.md === undefined || isGridLeadingWeight(candidate.md)) &&\n (candidate.lg === undefined || isGridLeadingWeight(candidate.lg))\n )\n}\n\nexport interface SpectreGridLeadingTracksOptions {\n weight: SpectreGridLeadingWeight | SpectreGridLeadingWeightOptions\n}\n\nexport function isGridLeadingTracksOptions(\n value: unknown\n): value is SpectreGridLeadingTracksOptions {\n if (typeof value !== 'object' || value === null) {\n return false\n }\n const candidate = value as Record<string, unknown>\n return (\n isGridLeadingWeight(candidate.weight) ||\n isGridLeadingWeightOptions(candidate.weight)\n )\n}\n\nexport const spectreGridFixedTrackCounts = [1, 2, 3, 4] as const\n\nexport type SpectreGridFixedTrackCount =\n (typeof spectreGridFixedTrackCounts)[number]\n\nexport function isGridFixedTrackCount(\n value: unknown\n): value is SpectreGridFixedTrackCount {\n return (spectreGridFixedTrackCounts as readonly number[]).includes(\n value as number\n )\n}\n\nexport interface SpectreGridFixedTracksOptions {\n count: SpectreGridFixedTrackCount\n}\n\nexport function isGridFixedTracksOptions(\n value: unknown\n): value is SpectreGridFixedTracksOptions {\n if (typeof value !== 'object' || value === null) {\n return false\n }\n const candidate = value as Record<string, unknown>\n return isGridFixedTrackCount(candidate.count)\n}\n\nexport const spectreGridTemplates = [\n 'edge-fluid-edge',\n 'label-fluid-fluid'\n] as const\n\nexport type SpectreGridTemplate = (typeof spectreGridTemplates)[number]\n\nexport function isGridTemplate(value: unknown): value is SpectreGridTemplate {\n return (spectreGridTemplates as readonly string[]).includes(value as string)\n}\n\nexport interface SpectreGridExplicitTemplateOptions {\n template: SpectreGridTemplate\n weight?: SpectreGridLeadingWeight\n}\n\nexport function isGridExplicitTemplateOptions(\n value: unknown\n): value is SpectreGridExplicitTemplateOptions {\n if (typeof value !== 'object' || value === null) {\n return false\n }\n const candidate = value as Record<string, unknown>\n return (\n isGridTemplate(candidate.template) &&\n (candidate.weight === undefined || isGridLeadingWeight(candidate.weight))\n )\n}\n\nexport const spectreStackDirections = ['vertical', 'horizontal'] as const\n\nexport type SpectreStackDirection = (typeof spectreStackDirections)[number]\n\nexport function isStackDirection(\n value: unknown\n): value is SpectreStackDirection {\n return (spectreStackDirections as readonly string[]).includes(value as string)\n}\n\nexport const spectreStackBases = ['none', 'sidebar'] as const\n\nexport type SpectreStackBasis = (typeof spectreStackBases)[number]\n\nexport function isStackBasis(value: unknown): value is SpectreStackBasis {\n return (spectreStackBases as readonly string[]).includes(value as string)\n}\n\nexport const spectreNavAligns = ['start', 'center', 'end'] as const\n\nexport type SpectreNavAlign = (typeof spectreNavAligns)[number]\n\nexport function isNavAlign(value: unknown): value is SpectreNavAlign {\n return (spectreNavAligns as readonly string[]).includes(value as string)\n}\n\nexport const spectreStackAligns = ['center', 'stretch'] as const\n\nexport type SpectreStackAlign = (typeof spectreStackAligns)[number]\n\nexport function isStackAlign(value: unknown): value is SpectreStackAlign {\n return (spectreStackAligns as readonly string[]).includes(value as string)\n}\n\nexport const spectreStackGaps = ['sm', 'md', 'lg'] as const\n\nexport type SpectreStackGap = (typeof spectreStackGaps)[number]\n\nexport function isStackGap(value: unknown): value is SpectreStackGap {\n return (spectreStackGaps as readonly string[]).includes(value as string)\n}\n\nexport const spectreDropdownPlacements = [\n 'bottom-start',\n 'bottom-end',\n 'top-start',\n 'top-end'\n] as const\n\nexport type SpectreDropdownPlacement =\n (typeof spectreDropdownPlacements)[number]\n\nexport function isDropdownPlacement(\n value: unknown\n): value is SpectreDropdownPlacement {\n return (spectreDropdownPlacements as readonly string[]).includes(\n value as string\n )\n}\n\nexport const spectreToastVariants = [\n 'info',\n 'success',\n 'warning',\n 'danger',\n 'neutral'\n] as const\n\nexport type SpectreToastVariant = (typeof spectreToastVariants)[number]\n\nexport function isToastVariant(value: unknown): value is SpectreToastVariant {\n return (spectreToastVariants as readonly string[]).includes(value as string)\n}\n\nexport const spectreSidebarLinkLevels = ['parent', 'child'] as const\n\nexport type SpectreSidebarLinkLevel = (typeof spectreSidebarLinkLevels)[number]\n\nexport function isSidebarLinkLevel(\n value: unknown\n): value is SpectreSidebarLinkLevel {\n return (spectreSidebarLinkLevels as readonly string[]).includes(\n value as string\n )\n}\n\nexport const spectreTooltipPlacements = [\n 'top',\n 'bottom',\n 'left',\n 'right'\n] as const\n\nexport type SpectreTooltipPlacement = (typeof spectreTooltipPlacements)[number]\n\nexport function isTooltipPlacement(\n value: unknown\n): value is SpectreTooltipPlacement {\n return (spectreTooltipPlacements as readonly string[]).includes(\n value as string\n )\n}\n\nexport const spectreTextSizes = [\n 'xs',\n 'sm',\n 'md',\n 'lg',\n 'xl',\n '2xl',\n '3xl',\n '4xl',\n '5xl',\n '6xl'\n] as const\n\nexport type SpectreTextSize = (typeof spectreTextSizes)[number]\n\nexport function isTextSize(value: unknown): value is SpectreTextSize {\n return (spectreTextSizes as readonly string[]).includes(value as string)\n}\n\nexport const spectreTextVariants = [\n 'default',\n 'muted',\n 'subtle',\n 'meta',\n 'brand',\n 'onInverse',\n 'onInverseMuted',\n 'onSurface',\n 'onSurfaceMuted',\n 'onSurfaceSubtle',\n 'onSurfaceMeta',\n 'onSurfaceBrand'\n] as const\n\nexport type SpectreTextVariant = (typeof spectreTextVariants)[number]\n\nexport function isTextVariant(value: unknown): value is SpectreTextVariant {\n return (spectreTextVariants as readonly string[]).includes(value as string)\n}\n\nexport const spectreTextFamilies = ['sans', 'serif', 'mono'] as const\n\nexport type SpectreTextFamily = (typeof spectreTextFamilies)[number]\n\nexport function isTextFamily(value: unknown): value is SpectreTextFamily {\n return (spectreTextFamilies as readonly string[]).includes(value as string)\n}\n\nexport const spectreTextLevels = [\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'p',\n 'span'\n] as const\n\nexport type SpectreTextLevel = (typeof spectreTextLevels)[number]\n\nexport function isTextLevel(value: unknown): value is SpectreTextLevel {\n return (spectreTextLevels as readonly string[]).includes(value as string)\n}\n\nexport const spectreTextTransforms = [\n 'none',\n 'uppercase',\n 'lowercase',\n 'capitalize'\n] as const\n\nexport type SpectreTextTransform = (typeof spectreTextTransforms)[number]\n\nexport function isTextTransform(value: unknown): value is SpectreTextTransform {\n return (spectreTextTransforms as readonly string[]).includes(value as string)\n}\n\nexport const spectreTabsVariants = ['line', 'pill'] as const\n\nexport type SpectreTabsVariant = (typeof spectreTabsVariants)[number]\n\nexport function isTabsVariant(value: unknown): value is SpectreTabsVariant {\n return (spectreTabsVariants as readonly string[]).includes(value as string)\n}\n\nexport const spectreOffcanvasPlacements = [\n 'start',\n 'end',\n 'top',\n 'bottom'\n] as const\n\nexport type SpectreOffcanvasPlacement =\n (typeof spectreOffcanvasPlacements)[number]\n\nexport function isOffcanvasPlacement(\n value: unknown\n): value is SpectreOffcanvasPlacement {\n return (spectreOffcanvasPlacements as readonly string[]).includes(\n value as string\n )\n}\n\nexport const spectreTableSizes = ['sm', 'md'] as const\n\nexport type SpectreTableSize = (typeof spectreTableSizes)[number]\n\nexport function isTableSize(value: unknown): value is SpectreTableSize {\n return (spectreTableSizes as readonly string[]).includes(value as string)\n}\n\nexport const spectreStepperOrientations = ['horizontal', 'vertical'] as const\n\nexport type SpectreStepperOrientation =\n (typeof spectreStepperOrientations)[number]\n\nexport function isStepperOrientation(\n value: unknown\n): value is SpectreStepperOrientation {\n return (spectreStepperOrientations as readonly string[]).includes(\n value as string\n )\n}\n\nexport const spectreSpacingScale = ['sm', 'md', 'lg'] as const\n\nexport type SpectreSpacingStep = (typeof spectreSpacingScale)[number]\n\nexport function isSpacingStep(value: unknown): value is SpectreSpacingStep {\n return (spectreSpacingScale as readonly string[]).includes(value as string)\n}\n\nexport const spectreGridColStarts = [\n 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12\n] as const\n\nexport type SpectreGridColStart = (typeof spectreGridColStarts)[number]\n\nexport function isGridColStart(value: unknown): value is SpectreGridColStart {\n return (spectreGridColStarts as readonly number[]).includes(value as number)\n}\n\nexport interface SpectreGridColStartOptions {\n base?: SpectreGridColStart\n md?: SpectreGridColStart\n lg?: SpectreGridColStart\n}\n\nexport function isGridColStartOptions(\n value: unknown\n): value is SpectreGridColStartOptions {\n if (typeof value !== 'object' || value === null) {\n return false\n }\n const candidate = value as Record<string, unknown>\n return (\n (candidate.base === undefined || isGridColStart(candidate.base)) &&\n (candidate.md === undefined || isGridColStart(candidate.md)) &&\n (candidate.lg === undefined || isGridColStart(candidate.lg))\n )\n}\n\nexport const spectrePopoverPlacements = [\n 'top',\n 'bottom',\n 'left',\n 'right'\n] as const\n\nexport type SpectrePopoverPlacement = (typeof spectrePopoverPlacements)[number]\n\nexport function isPopoverPlacement(\n value: unknown\n): value is SpectrePopoverPlacement {\n return (spectrePopoverPlacements as readonly string[]).includes(\n value as string\n )\n}\n\nexport const spectreProgressVariants = [\n 'brand',\n 'neutral',\n 'info',\n 'success',\n 'warning',\n 'danger'\n] as const\n\nexport type SpectreProgressVariant = (typeof spectreProgressVariants)[number]\n\nexport function isProgressVariant(\n value: unknown\n): value is SpectreProgressVariant {\n return (spectreProgressVariants as readonly string[]).includes(\n value as string\n )\n}\n\nexport const spectreTextPresets = ['heading', 'display', 'lead'] as const\n\nexport type SpectreTextPreset = (typeof spectreTextPresets)[number]\n\nexport function isTextPreset(value: unknown): value is SpectreTextPreset {\n return (spectreTextPresets as readonly string[]).includes(value as string)\n}\n\nexport const spectreHeadingLevels = [\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6'\n] as const\n\nexport type SpectreHeadingLevel = (typeof spectreHeadingLevels)[number]\n\nexport function isHeadingLevel(value: unknown): value is SpectreHeadingLevel {\n return (spectreHeadingLevels as readonly string[]).includes(value as string)\n}\n\nexport const spectreDisplayLevels = [1, 2, 3, 4, 5, 6] as const\n\nexport type SpectreDisplayLevel = (typeof spectreDisplayLevels)[number]\n\nexport function isDisplayLevel(value: unknown): value is SpectreDisplayLevel {\n return (spectreDisplayLevels as readonly number[]).includes(value as number)\n}\n\nexport const spectreTableRowVariants = [\n 'neutral',\n 'info',\n 'success',\n 'warning',\n 'danger'\n] as const\n\nexport type SpectreTableRowVariant = (typeof spectreTableRowVariants)[number]\n\nexport function isTableRowVariant(\n value: unknown\n): value is SpectreTableRowVariant {\n return (spectreTableRowVariants as readonly string[]).includes(\n value as string\n )\n}\n\nexport function normalizeInt(\n value: unknown,\n fallback: number | undefined,\n min = 0\n): number | undefined {\n if (\n value == null ||\n typeof value !== 'number' ||\n !Number.isInteger(value) ||\n value < min\n ) {\n return fallback\n }\n return value\n}\n\nconst spectreUtilityClassPattern =\n /^sp-[a-z0-9]+(?:-[a-z0-9]+)*(?:__[a-z0-9]+(?:-[a-z0-9]+)*)?(?:--[a-z0-9]+(?:-[a-z0-9]+)*)?$/\n\nexport function sanitizeUtilityClasses(\n value: string | null | undefined\n): string {\n if (!value) {\n return ''\n }\n return value\n .split(/\\s+/)\n .filter((token) => spectreUtilityClassPattern.test(token))\n .join(' ')\n}\n","import { html, nothing } from 'lit'\nimport { ifDefined } from 'lit/directives/if-defined.js'\n\nimport { applyPartClasses } from '../../utils/parts'\nimport { SpectreProjectableElement } from '../../utils/projectable'\nimport {\n isAccentColor,\n isAccentEdge,\n sanitizeUtilityClasses,\n type SpectreAccentColor,\n type SpectreAccentEdge\n} from '../../utils/form'\n\nimport {\n getFooterClasses,\n getFooterDividerClasses,\n getFooterHeadingClasses,\n getFooterLinksClasses,\n getFooterMutedClasses,\n getFooterTextClasses,\n type FooterAccentColor,\n type FooterAccentEdge\n} from '@phcdevworks/spectre-ui'\n\nexport interface SpectreFooterProps {\n accent?: SpectreAccentEdge | undefined\n accentColor?: SpectreAccentColor | undefined\n ariaLabel?: string | null\n bordered?: boolean | undefined\n fullWidth?: boolean | undefined\n id?: string | null | undefined\n innerClass?: string | undefined\n title?: string | null | undefined\n}\n\nexport class SpectreFooterElement\n extends SpectreProjectableElement\n implements SpectreFooterProps\n{\n static properties = {\n accent: { type: String, reflect: true },\n accentColor: { attribute: 'accent-color', type: String, reflect: true },\n bordered: { type: Boolean, reflect: true },\n fullWidth: { attribute: 'full-width', type: Boolean, reflect: true },\n innerClass: { attribute: 'inner-class', type: String }\n }\n\n accent: SpectreAccentEdge | undefined = undefined\n accentColor: SpectreAccentColor | undefined = undefined\n bordered: boolean | undefined = false\n fullWidth: boolean | undefined = false\n innerClass: string | undefined = undefined\n\n override get id(): string {\n return super.id\n }\n\n override set id(value: string | null | undefined) {\n super.id = value\n }\n\n override get title(): string {\n return super.title\n }\n\n override set title(value: string | null | undefined) {\n super.title = value\n }\n\n override connectedCallback(): void {\n super.connectedCallback()\n this.style.display ||= 'block'\n }\n\n protected override getContentContainer(): Element | null {\n return this.querySelector('[data-sp-footer-native]')\n }\n\n protected override isInternalNode(node: Node): boolean {\n if (node.nodeType !== Node.ELEMENT_NODE) {\n return false\n }\n const el = node as Element\n return el.hasAttribute('data-sp-footer-native')\n }\n\n protected override willUpdate(\n changedProperties: Map<PropertyKey, unknown>\n ): void {\n if (\n changedProperties.has('accent') &&\n this.accent != null &&\n !isAccentEdge(this.accent)\n ) {\n this.accent = undefined\n }\n if (\n changedProperties.has('accentColor') &&\n this.accentColor != null &&\n !isAccentColor(this.accentColor)\n ) {\n this.accentColor = undefined\n }\n if (changedProperties.has('bordered') && this.bordered == null) {\n this.bordered = false\n }\n if (changedProperties.has('fullWidth') && this.fullWidth == null) {\n this.fullWidth = false\n }\n }\n\n private get footerClasses(): string {\n const recipeClasses = getFooterClasses({\n ...(this.accent !== undefined && {\n accent: this.accent as FooterAccentEdge\n }),\n ...(this.accentColor !== undefined && {\n accentColor: this.accentColor as FooterAccentColor\n }),\n bordered: this.bordered ?? false,\n fullWidth: this.fullWidth ?? false\n })\n const utilityClasses = sanitizeUtilityClasses(this.innerClass)\n return utilityClasses ? `${recipeClasses} ${utilityClasses}` : recipeClasses\n }\n\n // Footer parts usually sit inside authored columns, so markers are matched\n // at any depth.\n protected override updated(\n changedProperties: Map<PropertyKey, unknown>\n ): void {\n super.updated(changedProperties)\n const native = this.querySelector('[data-sp-footer-native]')\n if (!native) {\n return\n }\n applyPartClasses(native.querySelectorAll('[slot]'), {\n divider: getFooterDividerClasses(),\n heading: getFooterHeadingClasses(),\n links: getFooterLinksClasses(),\n muted: getFooterMutedClasses(),\n text: getFooterTextClasses()\n })\n }\n\n override render() {\n return html`<footer\n aria-label=\"${ifDefined(this.forwardedAriaLabel)}\"\n class=\"${this.footerClasses}\"\n data-sp-footer-native\n id=\"${ifDefined(this.id || undefined)}\"\n title=\"${ifDefined(this.title || undefined)}\"\n >\n ${this.hasProjectedContent ? this.projectedContent : nothing}\n </footer>`\n }\n}\n\nexport function defineSpectreFooter(\n tagName = 'sp-footer'\n): typeof SpectreFooterElement {\n const existingElement = customElements.get(tagName)\n\n if (existingElement) {\n return existingElement as unknown as typeof SpectreFooterElement\n }\n\n customElements.define(tagName, SpectreFooterElement)\n return SpectreFooterElement\n}\n"]}
@@ -1,24 +1,28 @@
1
1
  declare const spectreInputSizes: readonly ["sm", "md", "lg"];
2
2
  type SpectreInputSize = (typeof spectreInputSizes)[number];
3
- declare const spectreButtonVariants: readonly ["primary", "secondary", "ghost", "danger", "success", "cta", "accent", "inverse"];
3
+ declare const spectreButtonVariants: readonly ["primary", "secondary", "ghost", "danger", "success", "cta", "accent", "inverse", "warning", "link", "light", "dark"];
4
4
  type SpectreButtonVariant = (typeof spectreButtonVariants)[number];
5
5
  declare const spectreButtonTypes: readonly ["button", "submit", "reset"];
6
6
  type SpectreButtonType = (typeof spectreButtonTypes)[number];
7
7
  declare const spectreInputTypes: readonly ["text", "email", "password", "search", "tel", "url", "number", "date", "datetime-local", "month", "time", "week"];
8
8
  type SpectreInputType = (typeof spectreInputTypes)[number];
9
- declare const spectreBadgeVariants: readonly ["primary", "secondary", "success", "warning", "danger", "neutral", "info", "ghost", "outline", "accent", "cta", "inverse"];
9
+ declare const spectreBadgeVariants: readonly ["primary", "secondary", "success", "warning", "danger", "neutral", "info", "ghost", "outline", "accent", "cta", "inverse", "brand"];
10
10
  type SpectreBadgeVariant = (typeof spectreBadgeVariants)[number];
11
- declare const spectreAlertVariants: readonly ["info", "success", "warning", "danger", "neutral"];
11
+ declare const spectreAlertVariants: readonly ["info", "success", "warning", "danger", "neutral", "brand"];
12
12
  type SpectreAlertVariant = (typeof spectreAlertVariants)[number];
13
13
  declare const spectreCardVariants: readonly ["elevated", "flat", "outline", "ghost"];
14
14
  type SpectreCardVariant = (typeof spectreCardVariants)[number];
15
15
  declare const spectreCardPaddingSizes: readonly ["sm", "md", "lg"];
16
16
  type SpectreCardPaddingSize = (typeof spectreCardPaddingSizes)[number];
17
+ declare const spectreAccentEdges: readonly ["top", "right", "bottom", "left"];
18
+ type SpectreAccentEdge = (typeof spectreAccentEdges)[number];
19
+ declare const spectreAccentColors: readonly ["neutral", "brand", "info", "success", "warning", "danger", "cta"];
20
+ type SpectreAccentColor = (typeof spectreAccentColors)[number];
17
21
  declare const spectreIconBoxVariants: readonly ["primary", "secondary", "success", "warning", "danger", "info", "neutral", "ghost", "accent", "cta", "outline"];
18
22
  type SpectreIconBoxVariant = (typeof spectreIconBoxVariants)[number];
19
23
  declare const spectreTestimonialVariants: readonly ["elevated", "flat", "outline", "ghost"];
20
24
  type SpectreTestimonialVariant = (typeof spectreTestimonialVariants)[number];
21
- declare const spectreSpinnerVariants: readonly ["primary", "secondary", "success", "warning", "danger", "info", "neutral", "accent", "cta"];
25
+ declare const spectreSpinnerVariants: readonly ["primary", "secondary", "success", "warning", "danger", "info", "neutral", "accent", "cta", "inverse"];
22
26
  type SpectreSpinnerVariant = (typeof spectreSpinnerVariants)[number];
23
27
  declare const spectreTagVariants: readonly ["default", "primary", "secondary", "success", "warning", "danger", "info", "neutral", "accent", "cta", "outline", "ghost"];
24
28
  type SpectreTagVariant = (typeof spectreTagVariants)[number];
@@ -26,7 +30,7 @@ declare const spectreAvatarSizes: readonly ["xs", "sm", "md", "lg", "xl"];
26
30
  type SpectreAvatarSize = (typeof spectreAvatarSizes)[number];
27
31
  declare const spectreAvatarShapes: readonly ["circle", "square"];
28
32
  type SpectreAvatarShape = (typeof spectreAvatarShapes)[number];
29
- declare const spectreContainerMaxWidths: readonly ["prose"];
33
+ declare const spectreContainerMaxWidths: readonly ["none", "prose", "wide"];
30
34
  type SpectreContainerMaxWidth = (typeof spectreContainerMaxWidths)[number];
31
35
  declare const spectreGridColumns: readonly [1, 2, 3, 4, 6, 12];
32
36
  type SpectreGridColumns = (typeof spectreGridColumns)[number];
@@ -78,7 +82,7 @@ interface SpectreGridExplicitTemplateOptions {
78
82
  }
79
83
  declare const spectreStackDirections: readonly ["vertical", "horizontal"];
80
84
  type SpectreStackDirection = (typeof spectreStackDirections)[number];
81
- declare const spectreStackBases: readonly ["sidebar"];
85
+ declare const spectreStackBases: readonly ["none", "sidebar"];
82
86
  type SpectreStackBasis = (typeof spectreStackBases)[number];
83
87
  declare const spectreNavAligns: readonly ["start", "center", "end"];
84
88
  type SpectreNavAlign = (typeof spectreNavAligns)[number];
@@ -88,7 +92,7 @@ declare const spectreStackGaps: readonly ["sm", "md", "lg"];
88
92
  type SpectreStackGap = (typeof spectreStackGaps)[number];
89
93
  declare const spectreDropdownPlacements: readonly ["bottom-start", "bottom-end", "top-start", "top-end"];
90
94
  type SpectreDropdownPlacement = (typeof spectreDropdownPlacements)[number];
91
- declare const spectreToastVariants: readonly ["info", "success", "warning", "danger"];
95
+ declare const spectreToastVariants: readonly ["info", "success", "warning", "danger", "neutral"];
92
96
  type SpectreToastVariant = (typeof spectreToastVariants)[number];
93
97
  declare const spectreSidebarLinkLevels: readonly ["parent", "child"];
94
98
  type SpectreSidebarLinkLevel = (typeof spectreSidebarLinkLevels)[number];
@@ -96,7 +100,7 @@ declare const spectreTooltipPlacements: readonly ["top", "bottom", "left", "righ
96
100
  type SpectreTooltipPlacement = (typeof spectreTooltipPlacements)[number];
97
101
  declare const spectreTextSizes: readonly ["xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl"];
98
102
  type SpectreTextSize = (typeof spectreTextSizes)[number];
99
- declare const spectreTextVariants: readonly ["default", "muted", "subtle", "meta", "brand", "onInverse", "onInverseMuted"];
103
+ declare const spectreTextVariants: readonly ["default", "muted", "subtle", "meta", "brand", "onInverse", "onInverseMuted", "onSurface", "onSurfaceMuted", "onSurfaceSubtle", "onSurfaceMeta", "onSurfaceBrand"];
100
104
  type SpectreTextVariant = (typeof spectreTextVariants)[number];
101
105
  declare const spectreTextFamilies: readonly ["sans", "serif", "mono"];
102
106
  type SpectreTextFamily = (typeof spectreTextFamilies)[number];
@@ -104,5 +108,34 @@ declare const spectreTextLevels: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "
104
108
  type SpectreTextLevel = (typeof spectreTextLevels)[number];
105
109
  declare const spectreTextTransforms: readonly ["none", "uppercase", "lowercase", "capitalize"];
106
110
  type SpectreTextTransform = (typeof spectreTextTransforms)[number];
111
+ declare const spectreTabsVariants: readonly ["line", "pill"];
112
+ type SpectreTabsVariant = (typeof spectreTabsVariants)[number];
113
+ declare const spectreOffcanvasPlacements: readonly ["start", "end", "top", "bottom"];
114
+ type SpectreOffcanvasPlacement = (typeof spectreOffcanvasPlacements)[number];
115
+ declare const spectreTableSizes: readonly ["sm", "md"];
116
+ type SpectreTableSize = (typeof spectreTableSizes)[number];
117
+ declare const spectreStepperOrientations: readonly ["horizontal", "vertical"];
118
+ type SpectreStepperOrientation = (typeof spectreStepperOrientations)[number];
119
+ declare const spectreSpacingScale: readonly ["sm", "md", "lg"];
120
+ type SpectreSpacingStep = (typeof spectreSpacingScale)[number];
121
+ declare const spectreGridColStarts: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
122
+ type SpectreGridColStart = (typeof spectreGridColStarts)[number];
123
+ interface SpectreGridColStartOptions {
124
+ base?: SpectreGridColStart;
125
+ md?: SpectreGridColStart;
126
+ lg?: SpectreGridColStart;
127
+ }
128
+ declare const spectrePopoverPlacements: readonly ["top", "bottom", "left", "right"];
129
+ type SpectrePopoverPlacement = (typeof spectrePopoverPlacements)[number];
130
+ declare const spectreProgressVariants: readonly ["brand", "neutral", "info", "success", "warning", "danger"];
131
+ type SpectreProgressVariant = (typeof spectreProgressVariants)[number];
132
+ declare const spectreTextPresets: readonly ["heading", "display", "lead"];
133
+ type SpectreTextPreset = (typeof spectreTextPresets)[number];
134
+ declare const spectreHeadingLevels: readonly ["h1", "h2", "h3", "h4", "h5", "h6"];
135
+ type SpectreHeadingLevel = (typeof spectreHeadingLevels)[number];
136
+ declare const spectreDisplayLevels: readonly [1, 2, 3, 4, 5, 6];
137
+ type SpectreDisplayLevel = (typeof spectreDisplayLevels)[number];
138
+ declare const spectreTableRowVariants: readonly ["neutral", "info", "success", "warning", "danger"];
139
+ type SpectreTableRowVariant = (typeof spectreTableRowVariants)[number];
107
140
 
108
- export { spectreTextVariants as $, type SpectreTooltipPlacement as A, spectreInputSizes as B, spectreAlertVariants as C, spectreAvatarShapes as D, spectreAvatarSizes as E, spectreBadgeVariants as F, spectreButtonTypes as G, spectreButtonVariants as H, spectreCardVariants as I, spectreContainerMaxWidths as J, spectreDropdownPlacements as K, spectreGridAligns as L, spectreGridColumns as M, spectreGridGaps as N, spectreIconBoxVariants as O, spectreInputTypes as P, spectreSpinnerVariants as Q, spectreStackAligns as R, type SpectreInputSize as S, spectreStackBases as T, spectreStackDirections as U, spectreStackGaps as V, spectreTagVariants as W, spectreTestimonialVariants as X, spectreTextFamilies as Y, spectreTextLevels as Z, spectreTextSizes as _, type SpectreAlertVariant as a, spectreToastVariants as a0, spectreTooltipPlacements as a1, type SpectreCardPaddingSize as a2, type SpectreGridExplicitTemplateOptions as a3, type SpectreGridFixedTracksOptions as a4, type SpectreGridLeadingTracksOptions as a5, type SpectreGridOffset as a6, type SpectreGridOffsetOptions as a7, type SpectreGridOrder as a8, type SpectreGridOrderOptions as a9, type SpectreGridSpan as aa, type SpectreGridSpanOptions as ab, type SpectreNavAlign as ac, type SpectreSidebarLinkLevel as ad, type SpectreTextTransform as ae, type SpectreAvatarShape as b, type SpectreAvatarSize as c, type SpectreBadgeVariant as d, type SpectreButtonType as e, type SpectreButtonVariant as f, type SpectreCardVariant as g, type SpectreContainerMaxWidth as h, type SpectreDropdownPlacement as i, type SpectreGridAlign as j, type SpectreGridColumns as k, type SpectreGridGap as l, type SpectreIconBoxVariant as m, type SpectreInputType as n, type SpectreSpinnerVariant as o, type SpectreStackAlign as p, type SpectreStackBasis as q, type SpectreStackDirection as r, type SpectreStackGap as s, type SpectreTagVariant as t, type SpectreTestimonialVariant as u, type SpectreTextFamily as v, type SpectreTextLevel as w, type SpectreTextSize as x, type SpectreTextVariant as y, type SpectreToastVariant as z };
141
+ export { spectreContainerMaxWidths as $, type SpectreStackBasis as A, type SpectreStackDirection as B, type SpectreStackGap as C, type SpectreStepperOrientation as D, type SpectreTableRowVariant as E, type SpectreTableSize as F, type SpectreTabsVariant as G, type SpectreTagVariant as H, type SpectreTestimonialVariant as I, type SpectreTextFamily as J, type SpectreTextLevel as K, type SpectreTextPreset as L, type SpectreTextSize as M, type SpectreTextVariant as N, type SpectreToastVariant as O, type SpectreTooltipPlacement as P, spectreInputSizes as Q, spectreAlertVariants as R, type SpectreInputSize as S, spectreAvatarShapes as T, spectreAvatarSizes as U, spectreBadgeVariants as V, spectreButtonTypes as W, spectreButtonVariants as X, spectreAccentColors as Y, spectreAccentEdges as Z, spectreCardVariants as _, type SpectreAlertVariant as a, spectreSpacingScale as a0, spectreDisplayLevels as a1, spectreDropdownPlacements as a2, spectreGridAligns as a3, spectreGridColStarts as a4, spectreGridColumns as a5, spectreGridGaps as a6, spectreHeadingLevels as a7, spectreIconBoxVariants as a8, spectreInputTypes as a9, type SpectreGridOffsetOptions as aA, type SpectreGridOrder as aB, type SpectreGridOrderOptions as aC, type SpectreGridSpan as aD, type SpectreGridSpanOptions as aE, type SpectreNavAlign as aF, type SpectreSidebarLinkLevel as aG, type SpectreTextTransform as aH, spectreOffcanvasPlacements as aa, spectrePopoverPlacements as ab, spectreProgressVariants as ac, spectreSpinnerVariants as ad, spectreStackAligns as ae, spectreStackBases as af, spectreStackDirections as ag, spectreStackGaps as ah, spectreStepperOrientations as ai, spectreTableRowVariants as aj, spectreTableSizes as ak, spectreTabsVariants as al, spectreTagVariants as am, spectreTestimonialVariants as an, spectreTextFamilies as ao, spectreTextLevels as ap, spectreTextPresets as aq, spectreTextSizes as ar, spectreTextVariants as as, spectreToastVariants as at, spectreTooltipPlacements as au, type SpectreCardPaddingSize as av, type SpectreGridExplicitTemplateOptions as aw, type SpectreGridFixedTracksOptions as ax, type SpectreGridLeadingTracksOptions as ay, type SpectreGridOffset as az, type SpectreAvatarShape as b, type SpectreAvatarSize as c, type SpectreBadgeVariant as d, type SpectreButtonType as e, type SpectreButtonVariant as f, type SpectreAccentColor as g, type SpectreAccentEdge as h, type SpectreCardVariant as i, type SpectreContainerMaxWidth as j, type SpectreSpacingStep as k, type SpectreDisplayLevel as l, type SpectreDropdownPlacement as m, type SpectreGridAlign as n, type SpectreGridColStart as o, type SpectreGridColStartOptions as p, type SpectreGridColumns as q, type SpectreGridGap as r, type SpectreHeadingLevel as s, type SpectreIconBoxVariant as t, type SpectreInputType as u, type SpectreOffcanvasPlacement as v, type SpectrePopoverPlacement as w, type SpectreProgressVariant as x, type SpectreSpinnerVariant as y, type SpectreStackAlign as z };
@@ -1,24 +1,28 @@
1
1
  declare const spectreInputSizes: readonly ["sm", "md", "lg"];
2
2
  type SpectreInputSize = (typeof spectreInputSizes)[number];
3
- declare const spectreButtonVariants: readonly ["primary", "secondary", "ghost", "danger", "success", "cta", "accent", "inverse"];
3
+ declare const spectreButtonVariants: readonly ["primary", "secondary", "ghost", "danger", "success", "cta", "accent", "inverse", "warning", "link", "light", "dark"];
4
4
  type SpectreButtonVariant = (typeof spectreButtonVariants)[number];
5
5
  declare const spectreButtonTypes: readonly ["button", "submit", "reset"];
6
6
  type SpectreButtonType = (typeof spectreButtonTypes)[number];
7
7
  declare const spectreInputTypes: readonly ["text", "email", "password", "search", "tel", "url", "number", "date", "datetime-local", "month", "time", "week"];
8
8
  type SpectreInputType = (typeof spectreInputTypes)[number];
9
- declare const spectreBadgeVariants: readonly ["primary", "secondary", "success", "warning", "danger", "neutral", "info", "ghost", "outline", "accent", "cta", "inverse"];
9
+ declare const spectreBadgeVariants: readonly ["primary", "secondary", "success", "warning", "danger", "neutral", "info", "ghost", "outline", "accent", "cta", "inverse", "brand"];
10
10
  type SpectreBadgeVariant = (typeof spectreBadgeVariants)[number];
11
- declare const spectreAlertVariants: readonly ["info", "success", "warning", "danger", "neutral"];
11
+ declare const spectreAlertVariants: readonly ["info", "success", "warning", "danger", "neutral", "brand"];
12
12
  type SpectreAlertVariant = (typeof spectreAlertVariants)[number];
13
13
  declare const spectreCardVariants: readonly ["elevated", "flat", "outline", "ghost"];
14
14
  type SpectreCardVariant = (typeof spectreCardVariants)[number];
15
15
  declare const spectreCardPaddingSizes: readonly ["sm", "md", "lg"];
16
16
  type SpectreCardPaddingSize = (typeof spectreCardPaddingSizes)[number];
17
+ declare const spectreAccentEdges: readonly ["top", "right", "bottom", "left"];
18
+ type SpectreAccentEdge = (typeof spectreAccentEdges)[number];
19
+ declare const spectreAccentColors: readonly ["neutral", "brand", "info", "success", "warning", "danger", "cta"];
20
+ type SpectreAccentColor = (typeof spectreAccentColors)[number];
17
21
  declare const spectreIconBoxVariants: readonly ["primary", "secondary", "success", "warning", "danger", "info", "neutral", "ghost", "accent", "cta", "outline"];
18
22
  type SpectreIconBoxVariant = (typeof spectreIconBoxVariants)[number];
19
23
  declare const spectreTestimonialVariants: readonly ["elevated", "flat", "outline", "ghost"];
20
24
  type SpectreTestimonialVariant = (typeof spectreTestimonialVariants)[number];
21
- declare const spectreSpinnerVariants: readonly ["primary", "secondary", "success", "warning", "danger", "info", "neutral", "accent", "cta"];
25
+ declare const spectreSpinnerVariants: readonly ["primary", "secondary", "success", "warning", "danger", "info", "neutral", "accent", "cta", "inverse"];
22
26
  type SpectreSpinnerVariant = (typeof spectreSpinnerVariants)[number];
23
27
  declare const spectreTagVariants: readonly ["default", "primary", "secondary", "success", "warning", "danger", "info", "neutral", "accent", "cta", "outline", "ghost"];
24
28
  type SpectreTagVariant = (typeof spectreTagVariants)[number];
@@ -26,7 +30,7 @@ declare const spectreAvatarSizes: readonly ["xs", "sm", "md", "lg", "xl"];
26
30
  type SpectreAvatarSize = (typeof spectreAvatarSizes)[number];
27
31
  declare const spectreAvatarShapes: readonly ["circle", "square"];
28
32
  type SpectreAvatarShape = (typeof spectreAvatarShapes)[number];
29
- declare const spectreContainerMaxWidths: readonly ["prose"];
33
+ declare const spectreContainerMaxWidths: readonly ["none", "prose", "wide"];
30
34
  type SpectreContainerMaxWidth = (typeof spectreContainerMaxWidths)[number];
31
35
  declare const spectreGridColumns: readonly [1, 2, 3, 4, 6, 12];
32
36
  type SpectreGridColumns = (typeof spectreGridColumns)[number];
@@ -78,7 +82,7 @@ interface SpectreGridExplicitTemplateOptions {
78
82
  }
79
83
  declare const spectreStackDirections: readonly ["vertical", "horizontal"];
80
84
  type SpectreStackDirection = (typeof spectreStackDirections)[number];
81
- declare const spectreStackBases: readonly ["sidebar"];
85
+ declare const spectreStackBases: readonly ["none", "sidebar"];
82
86
  type SpectreStackBasis = (typeof spectreStackBases)[number];
83
87
  declare const spectreNavAligns: readonly ["start", "center", "end"];
84
88
  type SpectreNavAlign = (typeof spectreNavAligns)[number];
@@ -88,7 +92,7 @@ declare const spectreStackGaps: readonly ["sm", "md", "lg"];
88
92
  type SpectreStackGap = (typeof spectreStackGaps)[number];
89
93
  declare const spectreDropdownPlacements: readonly ["bottom-start", "bottom-end", "top-start", "top-end"];
90
94
  type SpectreDropdownPlacement = (typeof spectreDropdownPlacements)[number];
91
- declare const spectreToastVariants: readonly ["info", "success", "warning", "danger"];
95
+ declare const spectreToastVariants: readonly ["info", "success", "warning", "danger", "neutral"];
92
96
  type SpectreToastVariant = (typeof spectreToastVariants)[number];
93
97
  declare const spectreSidebarLinkLevels: readonly ["parent", "child"];
94
98
  type SpectreSidebarLinkLevel = (typeof spectreSidebarLinkLevels)[number];
@@ -96,7 +100,7 @@ declare const spectreTooltipPlacements: readonly ["top", "bottom", "left", "righ
96
100
  type SpectreTooltipPlacement = (typeof spectreTooltipPlacements)[number];
97
101
  declare const spectreTextSizes: readonly ["xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl"];
98
102
  type SpectreTextSize = (typeof spectreTextSizes)[number];
99
- declare const spectreTextVariants: readonly ["default", "muted", "subtle", "meta", "brand", "onInverse", "onInverseMuted"];
103
+ declare const spectreTextVariants: readonly ["default", "muted", "subtle", "meta", "brand", "onInverse", "onInverseMuted", "onSurface", "onSurfaceMuted", "onSurfaceSubtle", "onSurfaceMeta", "onSurfaceBrand"];
100
104
  type SpectreTextVariant = (typeof spectreTextVariants)[number];
101
105
  declare const spectreTextFamilies: readonly ["sans", "serif", "mono"];
102
106
  type SpectreTextFamily = (typeof spectreTextFamilies)[number];
@@ -104,5 +108,34 @@ declare const spectreTextLevels: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "
104
108
  type SpectreTextLevel = (typeof spectreTextLevels)[number];
105
109
  declare const spectreTextTransforms: readonly ["none", "uppercase", "lowercase", "capitalize"];
106
110
  type SpectreTextTransform = (typeof spectreTextTransforms)[number];
111
+ declare const spectreTabsVariants: readonly ["line", "pill"];
112
+ type SpectreTabsVariant = (typeof spectreTabsVariants)[number];
113
+ declare const spectreOffcanvasPlacements: readonly ["start", "end", "top", "bottom"];
114
+ type SpectreOffcanvasPlacement = (typeof spectreOffcanvasPlacements)[number];
115
+ declare const spectreTableSizes: readonly ["sm", "md"];
116
+ type SpectreTableSize = (typeof spectreTableSizes)[number];
117
+ declare const spectreStepperOrientations: readonly ["horizontal", "vertical"];
118
+ type SpectreStepperOrientation = (typeof spectreStepperOrientations)[number];
119
+ declare const spectreSpacingScale: readonly ["sm", "md", "lg"];
120
+ type SpectreSpacingStep = (typeof spectreSpacingScale)[number];
121
+ declare const spectreGridColStarts: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
122
+ type SpectreGridColStart = (typeof spectreGridColStarts)[number];
123
+ interface SpectreGridColStartOptions {
124
+ base?: SpectreGridColStart;
125
+ md?: SpectreGridColStart;
126
+ lg?: SpectreGridColStart;
127
+ }
128
+ declare const spectrePopoverPlacements: readonly ["top", "bottom", "left", "right"];
129
+ type SpectrePopoverPlacement = (typeof spectrePopoverPlacements)[number];
130
+ declare const spectreProgressVariants: readonly ["brand", "neutral", "info", "success", "warning", "danger"];
131
+ type SpectreProgressVariant = (typeof spectreProgressVariants)[number];
132
+ declare const spectreTextPresets: readonly ["heading", "display", "lead"];
133
+ type SpectreTextPreset = (typeof spectreTextPresets)[number];
134
+ declare const spectreHeadingLevels: readonly ["h1", "h2", "h3", "h4", "h5", "h6"];
135
+ type SpectreHeadingLevel = (typeof spectreHeadingLevels)[number];
136
+ declare const spectreDisplayLevels: readonly [1, 2, 3, 4, 5, 6];
137
+ type SpectreDisplayLevel = (typeof spectreDisplayLevels)[number];
138
+ declare const spectreTableRowVariants: readonly ["neutral", "info", "success", "warning", "danger"];
139
+ type SpectreTableRowVariant = (typeof spectreTableRowVariants)[number];
107
140
 
108
- export { spectreTextVariants as $, type SpectreTooltipPlacement as A, spectreInputSizes as B, spectreAlertVariants as C, spectreAvatarShapes as D, spectreAvatarSizes as E, spectreBadgeVariants as F, spectreButtonTypes as G, spectreButtonVariants as H, spectreCardVariants as I, spectreContainerMaxWidths as J, spectreDropdownPlacements as K, spectreGridAligns as L, spectreGridColumns as M, spectreGridGaps as N, spectreIconBoxVariants as O, spectreInputTypes as P, spectreSpinnerVariants as Q, spectreStackAligns as R, type SpectreInputSize as S, spectreStackBases as T, spectreStackDirections as U, spectreStackGaps as V, spectreTagVariants as W, spectreTestimonialVariants as X, spectreTextFamilies as Y, spectreTextLevels as Z, spectreTextSizes as _, type SpectreAlertVariant as a, spectreToastVariants as a0, spectreTooltipPlacements as a1, type SpectreCardPaddingSize as a2, type SpectreGridExplicitTemplateOptions as a3, type SpectreGridFixedTracksOptions as a4, type SpectreGridLeadingTracksOptions as a5, type SpectreGridOffset as a6, type SpectreGridOffsetOptions as a7, type SpectreGridOrder as a8, type SpectreGridOrderOptions as a9, type SpectreGridSpan as aa, type SpectreGridSpanOptions as ab, type SpectreNavAlign as ac, type SpectreSidebarLinkLevel as ad, type SpectreTextTransform as ae, type SpectreAvatarShape as b, type SpectreAvatarSize as c, type SpectreBadgeVariant as d, type SpectreButtonType as e, type SpectreButtonVariant as f, type SpectreCardVariant as g, type SpectreContainerMaxWidth as h, type SpectreDropdownPlacement as i, type SpectreGridAlign as j, type SpectreGridColumns as k, type SpectreGridGap as l, type SpectreIconBoxVariant as m, type SpectreInputType as n, type SpectreSpinnerVariant as o, type SpectreStackAlign as p, type SpectreStackBasis as q, type SpectreStackDirection as r, type SpectreStackGap as s, type SpectreTagVariant as t, type SpectreTestimonialVariant as u, type SpectreTextFamily as v, type SpectreTextLevel as w, type SpectreTextSize as x, type SpectreTextVariant as y, type SpectreToastVariant as z };
141
+ export { spectreContainerMaxWidths as $, type SpectreStackBasis as A, type SpectreStackDirection as B, type SpectreStackGap as C, type SpectreStepperOrientation as D, type SpectreTableRowVariant as E, type SpectreTableSize as F, type SpectreTabsVariant as G, type SpectreTagVariant as H, type SpectreTestimonialVariant as I, type SpectreTextFamily as J, type SpectreTextLevel as K, type SpectreTextPreset as L, type SpectreTextSize as M, type SpectreTextVariant as N, type SpectreToastVariant as O, type SpectreTooltipPlacement as P, spectreInputSizes as Q, spectreAlertVariants as R, type SpectreInputSize as S, spectreAvatarShapes as T, spectreAvatarSizes as U, spectreBadgeVariants as V, spectreButtonTypes as W, spectreButtonVariants as X, spectreAccentColors as Y, spectreAccentEdges as Z, spectreCardVariants as _, type SpectreAlertVariant as a, spectreSpacingScale as a0, spectreDisplayLevels as a1, spectreDropdownPlacements as a2, spectreGridAligns as a3, spectreGridColStarts as a4, spectreGridColumns as a5, spectreGridGaps as a6, spectreHeadingLevels as a7, spectreIconBoxVariants as a8, spectreInputTypes as a9, type SpectreGridOffsetOptions as aA, type SpectreGridOrder as aB, type SpectreGridOrderOptions as aC, type SpectreGridSpan as aD, type SpectreGridSpanOptions as aE, type SpectreNavAlign as aF, type SpectreSidebarLinkLevel as aG, type SpectreTextTransform as aH, spectreOffcanvasPlacements as aa, spectrePopoverPlacements as ab, spectreProgressVariants as ac, spectreSpinnerVariants as ad, spectreStackAligns as ae, spectreStackBases as af, spectreStackDirections as ag, spectreStackGaps as ah, spectreStepperOrientations as ai, spectreTableRowVariants as aj, spectreTableSizes as ak, spectreTabsVariants as al, spectreTagVariants as am, spectreTestimonialVariants as an, spectreTextFamilies as ao, spectreTextLevels as ap, spectreTextPresets as aq, spectreTextSizes as ar, spectreTextVariants as as, spectreToastVariants as at, spectreTooltipPlacements as au, type SpectreCardPaddingSize as av, type SpectreGridExplicitTemplateOptions as aw, type SpectreGridFixedTracksOptions as ax, type SpectreGridLeadingTracksOptions as ay, type SpectreGridOffset as az, type SpectreAvatarShape as b, type SpectreAvatarSize as c, type SpectreBadgeVariant as d, type SpectreButtonType as e, type SpectreButtonVariant as f, type SpectreAccentColor as g, type SpectreAccentEdge as h, type SpectreCardVariant as i, type SpectreContainerMaxWidth as j, type SpectreSpacingStep as k, type SpectreDisplayLevel as l, type SpectreDropdownPlacement as m, type SpectreGridAlign as n, type SpectreGridColStart as o, type SpectreGridColStartOptions as p, type SpectreGridColumns as q, type SpectreGridGap as r, type SpectreHeadingLevel as s, type SpectreIconBoxVariant as t, type SpectreInputType as u, type SpectreOffcanvasPlacement as v, type SpectrePopoverPlacement as w, type SpectreProgressVariant as x, type SpectreSpinnerVariant as y, type SpectreStackAlign as z };