@sondor-technology/sondor-components 1.0.9 → 1.0.10

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 (431) hide show
  1. package/dist/components/accordion/accordion.constants.d.ts +5 -0
  2. package/dist/components/accordion/accordion.constants.d.ts.map +1 -0
  3. package/dist/components/accordion/accordion.constants.js +3 -0
  4. package/dist/components/accordion/accordion.constants.js.map +1 -0
  5. package/dist/components/accordion/accordion.d.ts +29 -0
  6. package/dist/components/accordion/accordion.d.ts.map +1 -0
  7. package/dist/components/accordion/accordion.js +226 -0
  8. package/dist/components/accordion/accordion.js.map +1 -0
  9. package/dist/components/alert/alert.constants.d.ts +2 -0
  10. package/dist/components/alert/alert.constants.d.ts.map +1 -1
  11. package/dist/components/alert/alert.d.ts +50 -2
  12. package/dist/components/alert/alert.d.ts.map +1 -1
  13. package/dist/components/alert/alert.js +285 -16
  14. package/dist/components/alert/alert.js.map +1 -1
  15. package/dist/components/avatar/avatar.d.ts +20 -0
  16. package/dist/components/avatar/avatar.d.ts.map +1 -0
  17. package/dist/components/avatar/avatar.js +100 -0
  18. package/dist/components/avatar/avatar.js.map +1 -0
  19. package/dist/components/back-to-top/back-to-top.d.ts +29 -0
  20. package/dist/components/back-to-top/back-to-top.d.ts.map +1 -0
  21. package/dist/components/back-to-top/back-to-top.js +149 -0
  22. package/dist/components/back-to-top/back-to-top.js.map +1 -0
  23. package/dist/components/bar-chart/bar-chart.d.ts +42 -0
  24. package/dist/components/bar-chart/bar-chart.d.ts.map +1 -0
  25. package/dist/components/bar-chart/bar-chart.js +298 -0
  26. package/dist/components/bar-chart/bar-chart.js.map +1 -0
  27. package/dist/components/breadcrumb/breadcrumb.js +2 -2
  28. package/dist/components/button/button.d.ts +1 -0
  29. package/dist/components/button/button.d.ts.map +1 -1
  30. package/dist/components/button/button.js +8 -8
  31. package/dist/components/button/button.js.map +1 -1
  32. package/dist/components/button-group/button-group.js +4 -4
  33. package/dist/components/calendar/calendar.d.ts.map +1 -1
  34. package/dist/components/calendar/calendar.js +11 -9
  35. package/dist/components/calendar/calendar.js.map +1 -1
  36. package/dist/components/chart/chart-base.d.ts +59 -0
  37. package/dist/components/chart/chart-base.d.ts.map +1 -0
  38. package/dist/components/chart/chart-base.js +261 -0
  39. package/dist/components/chart/chart-base.js.map +1 -0
  40. package/dist/components/chart/chart.utils.d.ts +27 -0
  41. package/dist/components/chart/chart.utils.d.ts.map +1 -0
  42. package/dist/components/chart/chart.utils.js +117 -0
  43. package/dist/components/chart/chart.utils.js.map +1 -0
  44. package/dist/components/code-block/code-block.d.ts +5 -0
  45. package/dist/components/code-block/code-block.d.ts.map +1 -1
  46. package/dist/components/code-block/code-block.js +34 -24
  47. package/dist/components/code-block/code-block.js.map +1 -1
  48. package/dist/components/consent/consent.d.ts +63 -0
  49. package/dist/components/consent/consent.d.ts.map +1 -0
  50. package/dist/components/consent/consent.js +327 -0
  51. package/dist/components/consent/consent.js.map +1 -0
  52. package/dist/components/consent/consent.utils.d.ts +36 -0
  53. package/dist/components/consent/consent.utils.d.ts.map +1 -0
  54. package/dist/components/consent/consent.utils.js +82 -0
  55. package/dist/components/consent/consent.utils.js.map +1 -0
  56. package/dist/components/contact/contact.d.ts +22 -0
  57. package/dist/components/contact/contact.d.ts.map +1 -0
  58. package/dist/components/contact/contact.js +83 -0
  59. package/dist/components/contact/contact.js.map +1 -0
  60. package/dist/components/container/container.d.ts +20 -0
  61. package/dist/components/container/container.d.ts.map +1 -0
  62. package/dist/components/container/container.js +68 -0
  63. package/dist/components/container/container.js.map +1 -0
  64. package/dist/components/content-card/content-card.js +4 -4
  65. package/dist/components/context-menu/context-menu.d.ts +89 -0
  66. package/dist/components/context-menu/context-menu.d.ts.map +1 -0
  67. package/dist/components/context-menu/context-menu.js +414 -0
  68. package/dist/components/context-menu/context-menu.js.map +1 -0
  69. package/dist/components/cron-builder/cron-builder.d.ts.map +1 -1
  70. package/dist/components/cron-builder/cron-builder.js +13 -11
  71. package/dist/components/cron-builder/cron-builder.js.map +1 -1
  72. package/dist/components/cta/cta.d.ts +20 -0
  73. package/dist/components/cta/cta.d.ts.map +1 -0
  74. package/dist/components/cta/cta.js +64 -0
  75. package/dist/components/cta/cta.js.map +1 -0
  76. package/dist/components/drawer/drawer.js +6 -6
  77. package/dist/components/faq/faq-item.d.ts +22 -0
  78. package/dist/components/faq/faq-item.d.ts.map +1 -0
  79. package/dist/components/faq/faq-item.js +117 -0
  80. package/dist/components/faq/faq-item.js.map +1 -0
  81. package/dist/components/faq/faq.d.ts +18 -0
  82. package/dist/components/faq/faq.d.ts.map +1 -0
  83. package/dist/components/faq/faq.js +38 -0
  84. package/dist/components/faq/faq.js.map +1 -0
  85. package/dist/components/feature-grid/feature-grid.d.ts +22 -0
  86. package/dist/components/feature-grid/feature-grid.d.ts.map +1 -0
  87. package/dist/components/feature-grid/feature-grid.js +55 -0
  88. package/dist/components/feature-grid/feature-grid.js.map +1 -0
  89. package/dist/components/feature-grid/feature.d.ts +18 -0
  90. package/dist/components/feature-grid/feature.d.ts.map +1 -0
  91. package/dist/components/feature-grid/feature.js +91 -0
  92. package/dist/components/feature-grid/feature.js.map +1 -0
  93. package/dist/components/field/field.js +2 -2
  94. package/dist/components/footer/footer.js +4 -4
  95. package/dist/components/form/form-reset.d.ts +7 -0
  96. package/dist/components/form/form-reset.d.ts.map +1 -0
  97. package/dist/components/form/form-reset.js +47 -0
  98. package/dist/components/form/form-reset.js.map +1 -0
  99. package/dist/components/form/form.d.ts +5 -0
  100. package/dist/components/form/form.d.ts.map +1 -1
  101. package/dist/components/form/form.js +17 -3
  102. package/dist/components/form/form.js.map +1 -1
  103. package/dist/components/grid/grid.d.ts +5 -0
  104. package/dist/components/grid/grid.d.ts.map +1 -1
  105. package/dist/components/grid/grid.js +86 -4
  106. package/dist/components/grid/grid.js.map +1 -1
  107. package/dist/components/heat-map/heat-map.d.ts +39 -0
  108. package/dist/components/heat-map/heat-map.d.ts.map +1 -0
  109. package/dist/components/heat-map/heat-map.js +306 -0
  110. package/dist/components/heat-map/heat-map.js.map +1 -0
  111. package/dist/components/hero/hero.d.ts +26 -0
  112. package/dist/components/hero/hero.d.ts.map +1 -0
  113. package/dist/components/hero/hero.js +132 -0
  114. package/dist/components/hero/hero.js.map +1 -0
  115. package/dist/components/icon/icon-paths.d.ts +84 -0
  116. package/dist/components/icon/icon-paths.d.ts.map +1 -1
  117. package/dist/components/icon/icon-paths.js +89 -0
  118. package/dist/components/icon/icon-paths.js.map +1 -1
  119. package/dist/components/icon/icon.d.ts +2 -0
  120. package/dist/components/icon/icon.d.ts.map +1 -1
  121. package/dist/components/icon/icon.js +10 -1
  122. package/dist/components/icon/icon.js.map +1 -1
  123. package/dist/components/image/image.d.ts +31 -0
  124. package/dist/components/image/image.d.ts.map +1 -0
  125. package/dist/components/image/image.js +179 -0
  126. package/dist/components/image/image.js.map +1 -0
  127. package/dist/components/input/input.js +4 -4
  128. package/dist/components/lazy/lazy.d.ts +34 -0
  129. package/dist/components/lazy/lazy.d.ts.map +1 -0
  130. package/dist/components/lazy/lazy.js +104 -0
  131. package/dist/components/lazy/lazy.js.map +1 -0
  132. package/dist/components/line-chart/line-chart.d.ts +37 -0
  133. package/dist/components/line-chart/line-chart.d.ts.map +1 -0
  134. package/dist/components/line-chart/line-chart.js +271 -0
  135. package/dist/components/line-chart/line-chart.js.map +1 -0
  136. package/dist/components/list/list-item.d.ts +45 -0
  137. package/dist/components/list/list-item.d.ts.map +1 -0
  138. package/dist/components/list/list-item.js +263 -0
  139. package/dist/components/list/list-item.js.map +1 -0
  140. package/dist/components/list/list.d.ts +50 -0
  141. package/dist/components/list/list.d.ts.map +1 -0
  142. package/dist/components/list/list.js +161 -0
  143. package/dist/components/list/list.js.map +1 -0
  144. package/dist/components/logo-cloud/logo-cloud.d.ts +19 -0
  145. package/dist/components/logo-cloud/logo-cloud.d.ts.map +1 -0
  146. package/dist/components/logo-cloud/logo-cloud.js +66 -0
  147. package/dist/components/logo-cloud/logo-cloud.js.map +1 -0
  148. package/dist/components/modal/modal.d.ts +12 -0
  149. package/dist/components/modal/modal.d.ts.map +1 -1
  150. package/dist/components/modal/modal.js +40 -11
  151. package/dist/components/modal/modal.js.map +1 -1
  152. package/dist/components/page-layout/page-layout.js +8 -8
  153. package/dist/components/pagination/pagination.d.ts +15 -0
  154. package/dist/components/pagination/pagination.d.ts.map +1 -0
  155. package/dist/components/pagination/pagination.js +126 -0
  156. package/dist/components/pagination/pagination.js.map +1 -0
  157. package/dist/components/pagination/pagination.utils.d.ts +3 -0
  158. package/dist/components/pagination/pagination.utils.d.ts.map +1 -0
  159. package/dist/components/pagination/pagination.utils.js +19 -0
  160. package/dist/components/pagination/pagination.utils.js.map +1 -0
  161. package/dist/components/pie-chart/pie-chart.d.ts +33 -0
  162. package/dist/components/pie-chart/pie-chart.d.ts.map +1 -0
  163. package/dist/components/pie-chart/pie-chart.js +233 -0
  164. package/dist/components/pie-chart/pie-chart.js.map +1 -0
  165. package/dist/components/pin-input/pin-input.js +4 -4
  166. package/dist/components/popover/popover.d.ts.map +1 -1
  167. package/dist/components/popover/popover.js +1 -3
  168. package/dist/components/popover/popover.js.map +1 -1
  169. package/dist/components/post-list/post-card.d.ts +16 -0
  170. package/dist/components/post-list/post-card.d.ts.map +1 -0
  171. package/dist/components/post-list/post-card.js +22 -0
  172. package/dist/components/post-list/post-card.js.map +1 -0
  173. package/dist/components/post-list/post-list.d.ts +17 -0
  174. package/dist/components/post-list/post-list.d.ts.map +1 -0
  175. package/dist/components/post-list/post-list.js +23 -0
  176. package/dist/components/post-list/post-list.js.map +1 -0
  177. package/dist/components/pricing/pricing-tier.d.ts +23 -0
  178. package/dist/components/pricing/pricing-tier.d.ts.map +1 -0
  179. package/dist/components/pricing/pricing-tier.js +144 -0
  180. package/dist/components/pricing/pricing-tier.js.map +1 -0
  181. package/dist/components/pricing/pricing.d.ts +18 -0
  182. package/dist/components/pricing/pricing.d.ts.map +1 -0
  183. package/dist/components/pricing/pricing.js +38 -0
  184. package/dist/components/pricing/pricing.js.map +1 -0
  185. package/dist/components/progress/progress.d.ts +17 -0
  186. package/dist/components/progress/progress.d.ts.map +1 -0
  187. package/dist/components/progress/progress.js +109 -0
  188. package/dist/components/progress/progress.js.map +1 -0
  189. package/dist/components/project-grid/project-card.d.ts +17 -0
  190. package/dist/components/project-grid/project-card.d.ts.map +1 -0
  191. package/dist/components/project-grid/project-card.js +23 -0
  192. package/dist/components/project-grid/project-card.js.map +1 -0
  193. package/dist/components/project-grid/project-grid.d.ts +17 -0
  194. package/dist/components/project-grid/project-grid.d.ts.map +1 -0
  195. package/dist/components/project-grid/project-grid.js +23 -0
  196. package/dist/components/project-grid/project-grid.js.map +1 -0
  197. package/dist/components/radio/radio.js +1 -1
  198. package/dist/components/reveal/reveal.constants.d.ts +10 -0
  199. package/dist/components/reveal/reveal.constants.d.ts.map +1 -0
  200. package/dist/components/reveal/reveal.constants.js +11 -0
  201. package/dist/components/reveal/reveal.constants.js.map +1 -0
  202. package/dist/components/reveal/reveal.d.ts +64 -0
  203. package/dist/components/reveal/reveal.d.ts.map +1 -0
  204. package/dist/components/reveal/reveal.js +352 -0
  205. package/dist/components/reveal/reveal.js.map +1 -0
  206. package/dist/components/scroll-progress/scroll-progress.d.ts +32 -0
  207. package/dist/components/scroll-progress/scroll-progress.d.ts.map +1 -0
  208. package/dist/components/scroll-progress/scroll-progress.js +120 -0
  209. package/dist/components/scroll-progress/scroll-progress.js.map +1 -0
  210. package/dist/components/section/card-row.d.ts +30 -0
  211. package/dist/components/section/card-row.d.ts.map +1 -0
  212. package/dist/components/section/card-row.js +174 -0
  213. package/dist/components/section/card-row.js.map +1 -0
  214. package/dist/components/section/card.d.ts +27 -0
  215. package/dist/components/section/card.d.ts.map +1 -0
  216. package/dist/components/section/card.js +205 -0
  217. package/dist/components/section/card.js.map +1 -0
  218. package/dist/components/section/row-item.d.ts +22 -0
  219. package/dist/components/section/row-item.d.ts.map +1 -0
  220. package/dist/components/section/row-item.js +53 -0
  221. package/dist/components/section/row-item.js.map +1 -0
  222. package/dist/components/section/section.d.ts +70 -0
  223. package/dist/components/section/section.d.ts.map +1 -0
  224. package/dist/components/section/section.js +240 -0
  225. package/dist/components/section/section.js.map +1 -0
  226. package/dist/components/select/select.js +3 -3
  227. package/dist/components/series-nav/series-nav.d.ts +29 -0
  228. package/dist/components/series-nav/series-nav.d.ts.map +1 -0
  229. package/dist/components/series-nav/series-nav.js +178 -0
  230. package/dist/components/series-nav/series-nav.js.map +1 -0
  231. package/dist/components/site-header/site-header.d.ts +51 -0
  232. package/dist/components/site-header/site-header.d.ts.map +1 -0
  233. package/dist/components/site-header/site-header.js +296 -0
  234. package/dist/components/site-header/site-header.js.map +1 -0
  235. package/dist/components/skeleton/skeleton.js +7 -7
  236. package/dist/components/sparkline/sparkline.d.ts +19 -0
  237. package/dist/components/sparkline/sparkline.d.ts.map +1 -0
  238. package/dist/components/sparkline/sparkline.js +99 -0
  239. package/dist/components/sparkline/sparkline.js.map +1 -0
  240. package/dist/components/spinner/spinner.d.ts +13 -0
  241. package/dist/components/spinner/spinner.d.ts.map +1 -0
  242. package/dist/components/spinner/spinner.js +65 -0
  243. package/dist/components/spinner/spinner.js.map +1 -0
  244. package/dist/components/split/split.d.ts +23 -0
  245. package/dist/components/split/split.d.ts.map +1 -0
  246. package/dist/components/split/split.js +104 -0
  247. package/dist/components/split/split.js.map +1 -0
  248. package/dist/components/stack/stack.d.ts +21 -0
  249. package/dist/components/stack/stack.d.ts.map +1 -0
  250. package/dist/components/stack/stack.js +102 -0
  251. package/dist/components/stack/stack.js.map +1 -0
  252. package/dist/components/stat-card/stat-card.d.ts +35 -0
  253. package/dist/components/stat-card/stat-card.d.ts.map +1 -0
  254. package/dist/components/stat-card/stat-card.js +199 -0
  255. package/dist/components/stat-card/stat-card.js.map +1 -0
  256. package/dist/components/stats/stat.d.ts +16 -0
  257. package/dist/components/stats/stat.d.ts.map +1 -0
  258. package/dist/components/stats/stat.js +51 -0
  259. package/dist/components/stats/stat.js.map +1 -0
  260. package/dist/components/stats/stats.d.ts +19 -0
  261. package/dist/components/stats/stats.d.ts.map +1 -0
  262. package/dist/components/stats/stats.js +45 -0
  263. package/dist/components/stats/stats.js.map +1 -0
  264. package/dist/components/switch/switch.js +2 -2
  265. package/dist/components/table/data-table.d.ts +115 -27
  266. package/dist/components/table/data-table.d.ts.map +1 -1
  267. package/dist/components/table/data-table.js +1012 -411
  268. package/dist/components/table/data-table.js.map +1 -1
  269. package/dist/components/table/data-table.utils.d.ts +81 -0
  270. package/dist/components/table/data-table.utils.d.ts.map +1 -0
  271. package/dist/components/table/data-table.utils.js +208 -0
  272. package/dist/components/table/data-table.utils.js.map +1 -0
  273. package/dist/components/table/table.d.ts +28 -0
  274. package/dist/components/table/table.d.ts.map +1 -1
  275. package/dist/components/table/table.js +161 -33
  276. package/dist/components/table/table.js.map +1 -1
  277. package/dist/components/team/person.d.ts +19 -0
  278. package/dist/components/team/person.d.ts.map +1 -0
  279. package/dist/components/team/person.js +123 -0
  280. package/dist/components/team/person.js.map +1 -0
  281. package/dist/components/team/team.d.ts +18 -0
  282. package/dist/components/team/team.d.ts.map +1 -0
  283. package/dist/components/team/team.js +36 -0
  284. package/dist/components/team/team.js.map +1 -0
  285. package/dist/components/testimonials/testimonial.d.ts +18 -0
  286. package/dist/components/testimonials/testimonial.d.ts.map +1 -0
  287. package/dist/components/testimonials/testimonial.js +115 -0
  288. package/dist/components/testimonials/testimonial.js.map +1 -0
  289. package/dist/components/testimonials/testimonials.d.ts +18 -0
  290. package/dist/components/testimonials/testimonials.d.ts.map +1 -0
  291. package/dist/components/testimonials/testimonials.js +36 -0
  292. package/dist/components/testimonials/testimonials.js.map +1 -0
  293. package/dist/components/textarea/textarea.js +3 -3
  294. package/dist/components/theme-toggle/theme-toggle.js +1 -1
  295. package/dist/components/time-picker/time-picker.js +3 -3
  296. package/dist/components/timeline/timeline-item.d.ts +18 -0
  297. package/dist/components/timeline/timeline-item.d.ts.map +1 -0
  298. package/dist/components/timeline/timeline-item.js +102 -0
  299. package/dist/components/timeline/timeline-item.js.map +1 -0
  300. package/dist/components/timeline/timeline.d.ts +18 -0
  301. package/dist/components/timeline/timeline.d.ts.map +1 -0
  302. package/dist/components/timeline/timeline.js +30 -0
  303. package/dist/components/timeline/timeline.js.map +1 -0
  304. package/dist/components/toast/toast.d.ts +33 -0
  305. package/dist/components/toast/toast.d.ts.map +1 -0
  306. package/dist/components/toast/toast.js +147 -0
  307. package/dist/components/toast/toast.js.map +1 -0
  308. package/dist/components/toggle-group/toggle-button.d.ts +2 -0
  309. package/dist/components/toggle-group/toggle-button.d.ts.map +1 -1
  310. package/dist/components/toggle-group/toggle-button.js +12 -4
  311. package/dist/components/toggle-group/toggle-button.js.map +1 -1
  312. package/dist/components/toggle-group/toggle-group.js +4 -4
  313. package/dist/components/tooltip/tooltip.js +21 -21
  314. package/dist/components/vertical-nav/vertical-nav-group.js +3 -3
  315. package/dist/components/vertical-nav/vertical-nav-item.js +4 -4
  316. package/dist/components/video-embed/video-embed.d.ts +37 -0
  317. package/dist/components/video-embed/video-embed.d.ts.map +1 -0
  318. package/dist/components/video-embed/video-embed.js +183 -0
  319. package/dist/components/video-embed/video-embed.js.map +1 -0
  320. package/dist/index.d.ts +107 -0
  321. package/dist/index.d.ts.map +1 -0
  322. package/dist/index.js +104 -0
  323. package/dist/index.js.map +1 -0
  324. package/dist/styles/index.css +205 -2
  325. package/dist/styles/reset.d.ts.map +1 -1
  326. package/dist/styles/reset.js +5 -0
  327. package/dist/styles/reset.js.map +1 -1
  328. package/package.json +210 -7
  329. package/src/components/accordion/accordion.constants.ts +5 -0
  330. package/src/components/accordion/accordion.ts +209 -0
  331. package/src/components/alert/alert.constants.ts +3 -0
  332. package/src/components/alert/alert.ts +284 -17
  333. package/src/components/avatar/avatar.ts +84 -0
  334. package/src/components/back-to-top/back-to-top.ts +140 -0
  335. package/src/components/bar-chart/bar-chart.ts +295 -0
  336. package/src/components/breadcrumb/breadcrumb.ts +2 -2
  337. package/src/components/button/button.ts +9 -8
  338. package/src/components/button-group/button-group.ts +4 -4
  339. package/src/components/calendar/calendar.ts +12 -9
  340. package/src/components/chart/chart-base.ts +275 -0
  341. package/src/components/chart/chart.utils.ts +140 -0
  342. package/src/components/code-block/code-block.ts +35 -24
  343. package/src/components/consent/consent.ts +312 -0
  344. package/src/components/consent/consent.utils.ts +110 -0
  345. package/src/components/contact/contact.ts +83 -0
  346. package/src/components/container/container.ts +60 -0
  347. package/src/components/content-card/content-card.ts +4 -4
  348. package/src/components/context-menu/context-menu.ts +426 -0
  349. package/src/components/cron-builder/cron-builder.ts +21 -18
  350. package/src/components/cta/cta.ts +64 -0
  351. package/src/components/drawer/drawer.ts +6 -6
  352. package/src/components/faq/faq-item.ts +110 -0
  353. package/src/components/faq/faq.ts +40 -0
  354. package/src/components/feature-grid/feature-grid.ts +52 -0
  355. package/src/components/feature-grid/feature.ts +84 -0
  356. package/src/components/field/field.ts +2 -2
  357. package/src/components/footer/footer.ts +4 -4
  358. package/src/components/form/form-reset.ts +45 -0
  359. package/src/components/form/form.ts +17 -3
  360. package/src/components/grid/grid.ts +73 -4
  361. package/src/components/heat-map/heat-map.ts +292 -0
  362. package/src/components/hero/hero.ts +132 -0
  363. package/src/components/icon/icon-paths.ts +92 -1
  364. package/src/components/icon/icon.ts +8 -1
  365. package/src/components/image/image.ts +165 -0
  366. package/src/components/input/input.ts +4 -4
  367. package/src/components/lazy/lazy.ts +94 -0
  368. package/src/components/line-chart/line-chart.ts +271 -0
  369. package/src/components/list/list-item.ts +225 -0
  370. package/src/components/list/list.ts +157 -0
  371. package/src/components/logo-cloud/logo-cloud.ts +65 -0
  372. package/src/components/modal/modal.ts +37 -11
  373. package/src/components/page-layout/page-layout.ts +8 -8
  374. package/src/components/pagination/pagination.ts +120 -0
  375. package/src/components/pagination/pagination.utils.ts +14 -0
  376. package/src/components/pie-chart/pie-chart.ts +230 -0
  377. package/src/components/pin-input/pin-input.ts +4 -4
  378. package/src/components/popover/popover.ts +1 -3
  379. package/src/components/post-list/post-card.ts +18 -0
  380. package/src/components/post-list/post-list.ts +19 -0
  381. package/src/components/pricing/pricing-tier.ts +132 -0
  382. package/src/components/pricing/pricing.ts +39 -0
  383. package/src/components/progress/progress.ts +95 -0
  384. package/src/components/project-grid/project-card.ts +19 -0
  385. package/src/components/project-grid/project-grid.ts +19 -0
  386. package/src/components/radio/radio.ts +1 -1
  387. package/src/components/reveal/reveal.constants.ts +20 -0
  388. package/src/components/reveal/reveal.ts +344 -0
  389. package/src/components/scroll-progress/scroll-progress.ts +119 -0
  390. package/src/components/section/card-row.ts +152 -0
  391. package/src/components/section/card.ts +197 -0
  392. package/src/components/section/row-item.ts +38 -0
  393. package/src/components/section/section.ts +232 -0
  394. package/src/components/select/select.ts +3 -3
  395. package/src/components/series-nav/series-nav.ts +164 -0
  396. package/src/components/site-header/site-header.ts +276 -0
  397. package/src/components/skeleton/skeleton.ts +7 -7
  398. package/src/components/sparkline/sparkline.ts +83 -0
  399. package/src/components/spinner/spinner.ts +55 -0
  400. package/src/components/split/split.ts +106 -0
  401. package/src/components/stack/stack.ts +88 -0
  402. package/src/components/stat-card/stat-card.ts +179 -0
  403. package/src/components/stats/stat.ts +49 -0
  404. package/src/components/stats/stats.ts +47 -0
  405. package/src/components/switch/switch.ts +2 -2
  406. package/src/components/table/data-table.ts +1015 -425
  407. package/src/components/table/data-table.utils.ts +276 -0
  408. package/src/components/table/table.ts +168 -38
  409. package/src/components/team/person.ts +113 -0
  410. package/src/components/team/team.ts +37 -0
  411. package/src/components/testimonials/testimonial.ts +108 -0
  412. package/src/components/testimonials/testimonials.ts +37 -0
  413. package/src/components/textarea/textarea.ts +3 -3
  414. package/src/components/theme-toggle/theme-toggle.ts +1 -1
  415. package/src/components/time-picker/time-picker.ts +3 -3
  416. package/src/components/timeline/timeline-item.ts +100 -0
  417. package/src/components/timeline/timeline.ts +31 -0
  418. package/src/components/toast/toast.ts +153 -0
  419. package/src/components/toggle-group/toggle-button.ts +9 -4
  420. package/src/components/toggle-group/toggle-group.ts +4 -4
  421. package/src/components/tooltip/tooltip.ts +21 -21
  422. package/src/components/vertical-nav/vertical-nav-group.ts +3 -3
  423. package/src/components/vertical-nav/vertical-nav-item.ts +4 -4
  424. package/src/components/video-embed/video-embed.ts +162 -0
  425. package/src/index.ts +108 -0
  426. package/src/styles/globals.css +63 -0
  427. package/src/styles/index.css +3 -1
  428. package/src/styles/prose.css +154 -0
  429. package/src/styles/reset.ts +5 -0
  430. package/src/styles/theme.css +53 -1
  431. package/src/styles/typography.css +1 -0
@@ -0,0 +1,240 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { LitElement, html, css, nothing, isServer } from "lit";
8
+ import { customElement, property, state } from "lit/decorators.js";
9
+ import { resetStyles } from "../../styles/reset.js";
10
+ import "../container/container.js";
11
+ import "../reveal/reveal.js";
12
+ import { StRowItem } from "./row-item.js";
13
+ export const sectionTones = ["auto", "default", "surface", "accent"];
14
+ export const sectionSpaces = ["none", "sm", "md", "lg"];
15
+ const HEADER_SLOTS = ["eyebrow", "title", "lead"];
16
+ /** Items in a row animate in turn, three at a time, so late items don't wait to be seen. */
17
+ const ITEM_DELAY_MS = 120;
18
+ const ITEMS_PER_WAVE = 3;
19
+ /**
20
+ * A full-width row of a page: a background, responsive vertical spacing, a centred container and
21
+ * an optional header made of an eyebrow, title and lead. Stack rows to build a page. The ready-made
22
+ * rows (hero, features, call to action and so on) are all built on it, so every row shares the
23
+ * same spacing, header, tones and animation, and any row can follow any other.
24
+ *
25
+ * Slots: `eyebrow`, `title`, `lead` (the header: slot real headings so search engines and screen
26
+ * readers understand the page outline) and the default slot for the content.
27
+ *
28
+ * Tone: by default (`auto`) neighbouring rows alternate between the page and surface colours, so
29
+ * stacked rows are visually separated with no effort. Set `tone` to choose one yourself.
30
+ *
31
+ * Animation: the header and content animate in as they scroll into view (`reveal`, turn off with
32
+ * `reveal="none"`). Give the host an `id` to link to it (`#pricing`). Off-screen rows are not
33
+ * rendered until they are near the viewport (`content-visibility`); add `eager` to turn that off.
34
+ */
35
+ let StSection = class StSection extends LitElement {
36
+ constructor() {
37
+ super(...arguments);
38
+ /** `auto` alternates between rows; the others are fixed. */
39
+ this.tone = "auto";
40
+ /** Vertical padding. */
41
+ this.space = "md";
42
+ /** Maximum width of the content. */
43
+ this.width = "lg";
44
+ /** Alignment of the header block. */
45
+ this.align = "center";
46
+ /** How the row animates in as it is scrolled to. `none` turns it off. */
47
+ this.reveal = "slide-up";
48
+ /** Accessible name. When set the section becomes a labelled landmark. */
49
+ this.label = "";
50
+ /** Renders immediately even when off screen. */
51
+ this.eager = false;
52
+ this._hasHeader = false;
53
+ this._onHeaderSlotChange = () => (this._hasHeader = this._headerPresent());
54
+ /** Hands the row's animation settings to any item components inside it. */
55
+ this._onItemsChange = (e) => {
56
+ const items = e.target
57
+ .assignedElements({ flatten: true })
58
+ .filter((el) => el instanceof StRowItem);
59
+ items.forEach((item, i) => {
60
+ item.inheritedReveal = this.reveal;
61
+ item.revealDelay = (i % ITEMS_PER_WAVE) * ITEM_DELAY_MS;
62
+ });
63
+ };
64
+ }
65
+ willUpdate(changed) {
66
+ // Know about the header before the first render, so a row at the top of the page is shown
67
+ // straight away instead of fading in once its header is discovered. (The server cannot look.)
68
+ if (!this.hasUpdated)
69
+ this._hasHeader = isServer || this._headerPresent();
70
+ super.willUpdate(changed);
71
+ }
72
+ _headerPresent() {
73
+ return HEADER_SLOTS.some((name) => this.querySelector(`:scope > [slot="${name}"]`));
74
+ }
75
+ updated(changed) {
76
+ // A row that changes its animation after load passes the change on to its items.
77
+ if (changed.has("reveal") && changed.get("reveal") !== undefined) {
78
+ this.renderRoot.querySelector("slot:not([name])")?.dispatchEvent(new Event("slotchange"));
79
+ }
80
+ }
81
+ /** The eyebrow, title and lead. Rows that lay the header out themselves call this directly. */
82
+ renderHeader() {
83
+ return html `
84
+ <st-reveal class="header-reveal" effect=${this.reveal} ?hidden=${!this._hasHeader}>
85
+ <div class="header">
86
+ ${HEADER_SLOTS.map((name) => html `<slot name=${name} @slotchange=${this._onHeaderSlotChange}></slot>`)}
87
+ </div>
88
+ </st-reveal>
89
+ `;
90
+ }
91
+ /** Wraps part of a row so it animates in with the row's effect. */
92
+ animateIn(content, delay = 0) {
93
+ return html `<st-reveal effect=${this.reveal} delay=${delay}>${content}</st-reveal>`;
94
+ }
95
+ /**
96
+ * The band every row sits in. Pass the row's content.
97
+ * - `header: false`: the row lays the header out itself and calls `renderHeader()`.
98
+ * - `animated: false`: the row animates its own parts (or its items do), so the content is not
99
+ * wrapped in a second animation.
100
+ */
101
+ frame(content, options = {}) {
102
+ const { header = true, animated = true } = options;
103
+ return html `
104
+ <div class="section" role=${this.label ? "region" : nothing} aria-label=${this.label || nothing}>
105
+ <st-container size=${this.width}>
106
+ ${header ? this.renderHeader() : nothing}
107
+ ${animated ? this.animateIn(content, 100) : content}
108
+ </st-container>
109
+ </div>
110
+ `;
111
+ }
112
+ render() {
113
+ return this.frame(html `<slot @slotchange=${this._onItemsChange}></slot>`);
114
+ }
115
+ };
116
+ StSection.styles = [
117
+ resetStyles,
118
+ css `
119
+ :host {
120
+ display: block;
121
+ /* The align attribute doubles as an old HTML text-align hint; only the header should centre. */
122
+ text-align: start;
123
+ scroll-margin-top: var(--st-section-scroll-offset, var(--st-site-header-height, 0px));
124
+ background: var(--_bg, var(--st-color-bg));
125
+ color: var(--_fg, var(--st-color-text));
126
+ --_pad: var(--st-section-space-md);
127
+ /* Cards and tiles inside a row read this so they stand out from the row behind them. */
128
+ --st-row-card-bg: var(--st-color-surface);
129
+ }
130
+
131
+ :host(:not([eager])) {
132
+ content-visibility: auto;
133
+ contain-intrinsic-size: auto 36rem;
134
+ }
135
+
136
+ :host([tone="surface"]) {
137
+ --_bg: var(--st-color-surface);
138
+ --st-row-card-bg: var(--st-color-bg);
139
+ }
140
+
141
+ /* Auto: every second row takes the surface colour. Pure CSS, so it also works before any
142
+ JavaScript runs and with server rendering. */
143
+ :host([tone="auto"]:nth-child(even)) {
144
+ --_bg: var(--st-color-surface);
145
+ --st-row-card-bg: var(--st-color-bg);
146
+ }
147
+
148
+ :host([tone="accent"]) {
149
+ --_bg: var(--st-color-primary);
150
+ --_fg: var(--st-color-on-primary);
151
+ --_muted: var(--st-color-on-primary);
152
+ --st-row-card-bg: rgb(255 255 255 / 0.12);
153
+ }
154
+
155
+ :host([space="none"]) {
156
+ --_pad: 0;
157
+ }
158
+ :host([space="sm"]) {
159
+ --_pad: var(--st-section-space-sm);
160
+ }
161
+ :host([space="lg"]) {
162
+ --_pad: var(--st-section-space-lg);
163
+ }
164
+
165
+ .section {
166
+ padding-block: var(--_pad);
167
+ }
168
+
169
+ .header {
170
+ display: grid;
171
+ gap: var(--st-spacing-sm);
172
+ max-width: 48rem;
173
+ margin-bottom: var(--st-spacing-2xl);
174
+ }
175
+
176
+ :host([align="center"]) .header {
177
+ margin-inline: auto;
178
+ text-align: center;
179
+ }
180
+
181
+ ::slotted([slot="eyebrow"]) {
182
+ margin: 0;
183
+ color: var(--_eyebrow, var(--st-color-primary-text));
184
+ font-size: var(--st-font-size-sm);
185
+ font-weight: var(--st-font-weight-bold);
186
+ letter-spacing: 0.08em;
187
+ text-transform: uppercase;
188
+ }
189
+
190
+ :host([tone="accent"]) ::slotted([slot="eyebrow"]) {
191
+ --_eyebrow: var(--st-color-on-primary);
192
+ }
193
+
194
+ ::slotted([slot="title"]) {
195
+ margin: 0 !important;
196
+ color: inherit;
197
+ font-size: var(--st-font-size-3xl) !important;
198
+ line-height: var(--st-line-height-tight) !important;
199
+ }
200
+
201
+ ::slotted([slot="lead"]) {
202
+ margin: 0;
203
+ color: var(--_muted, var(--st-color-text-muted));
204
+ font-size: var(--st-font-size-lg);
205
+ }
206
+
207
+ [hidden] {
208
+ display: none !important;
209
+ }
210
+ `,
211
+ ];
212
+ __decorate([
213
+ property({ type: String, reflect: true })
214
+ ], StSection.prototype, "tone", void 0);
215
+ __decorate([
216
+ property({ type: String, reflect: true })
217
+ ], StSection.prototype, "space", void 0);
218
+ __decorate([
219
+ property({ type: String, reflect: true })
220
+ ], StSection.prototype, "width", void 0);
221
+ __decorate([
222
+ property({ type: String, reflect: true })
223
+ ], StSection.prototype, "align", void 0);
224
+ __decorate([
225
+ property({ type: String, reflect: true })
226
+ ], StSection.prototype, "reveal", void 0);
227
+ __decorate([
228
+ property({ type: String })
229
+ ], StSection.prototype, "label", void 0);
230
+ __decorate([
231
+ property({ type: Boolean, reflect: true })
232
+ ], StSection.prototype, "eager", void 0);
233
+ __decorate([
234
+ state()
235
+ ], StSection.prototype, "_hasHeader", void 0);
236
+ StSection = __decorate([
237
+ customElement("st-section")
238
+ ], StSection);
239
+ export { StSection };
240
+ //# sourceMappingURL=section.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"section.js","sourceRoot":"","sources":["../../../src/components/section/section.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAiC,MAAM,KAAK,CAAC;AAC7F,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAGlD,OAAO,2BAA2B,CAAC;AACnC,OAAO,qBAAqB,CAAC;AAC7B,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAExC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAA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,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;yCAAmC;AAEjD;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;wCAAY;AAEK;IAAzC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;wCAAe;AAEvC;IAAhB,KAAK,EAAE;6CAA4B;AAhBzB,SAAS;IADrB,aAAa,CAAC,YAAY,CAAC;GACf,SAAS,CA4LrB"}
@@ -339,7 +339,7 @@ StSelect.styles = css `
339
339
  }
340
340
 
341
341
  .combobox.is-invalid {
342
- border-color: var(--st-color-danger, #dc2626);
342
+ border-color: var(--st-color-danger);
343
343
  }
344
344
 
345
345
  .combobox:focus-visible {
@@ -381,7 +381,7 @@ StSelect.styles = css `
381
381
  background: var(--st-color-surface);
382
382
  border: 1px solid var(--st-color-border);
383
383
  border-radius: var(--st-radius-md);
384
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
384
+ box-shadow: var(--st-shadow-md);
385
385
  overflow: hidden;
386
386
  }
387
387
 
@@ -436,7 +436,7 @@ StSelect.styles = css `
436
436
  display: block;
437
437
  margin-top: var(--st-spacing-xs);
438
438
  font-size: var(--st-font-size-xs);
439
- color: var(--st-color-danger, #dc2626);
439
+ color: var(--st-color-danger);
440
440
  }
441
441
 
442
442
  .hidden-native {
@@ -0,0 +1,29 @@
1
+ import { LitElement } from "lit";
2
+ /**
3
+ * Navigation for a post that belongs to a series: where you are ("Part 2 of 5"), the full list of
4
+ * parts, and links to the previous and next part.
5
+ *
6
+ * List the parts in order as links, and mark the current one with `aria-current="page"`. The
7
+ * links stay in your markup, so search engines see the whole series from every part.
8
+ *
9
+ * Slots: `title` (the series name, a heading) and the default slot for the part links.
10
+ */
11
+ export declare class StSeriesNav extends LitElement {
12
+ /** Accessible name of the navigation. */
13
+ label: string;
14
+ /** Word shown before the part number. */
15
+ partLabel: string;
16
+ previousLabel: string;
17
+ nextLabel: string;
18
+ private _parts;
19
+ private _current;
20
+ static styles: import("lit").CSSResult[];
21
+ private _onSlotChange;
22
+ render(): import("lit-html").TemplateResult<1>;
23
+ }
24
+ declare global {
25
+ interface HTMLElementTagNameMap {
26
+ "st-series-nav": StSeriesNav;
27
+ }
28
+ }
29
+ //# sourceMappingURL=series-nav.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"series-nav.d.ts","sourceRoot":"","sources":["../../../src/components/series-nav/series-nav.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAqB,MAAM,KAAK,CAAC;AASnD;;;;;;;;GAQG;AACH,qBACa,WAAY,SAAQ,UAAU;IACzC,yCAAyC;IACf,KAAK,SAAY;IAC3C,yCAAyC;IACU,SAAS,SAAU;IACf,aAAa,SAAc;IAC/B,SAAS,SAAU;IAE7D,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,QAAQ,CAAM;IAE/B,MAAM,CAAC,MAAM,4BA0FX;IAEF,OAAO,CAAC,aAAa,CAMnB;IAEF,MAAM,yCA0BL;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,WAAW,CAAC;KAC9B;CACF"}
@@ -0,0 +1,178 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { LitElement, html, css, nothing } from "lit";
8
+ import { customElement, property, state } from "lit/decorators.js";
9
+ import { resetStyles } from "../../styles/reset.js";
10
+ /**
11
+ * Navigation for a post that belongs to a series: where you are ("Part 2 of 5"), the full list of
12
+ * parts, and links to the previous and next part.
13
+ *
14
+ * List the parts in order as links, and mark the current one with `aria-current="page"`. The
15
+ * links stay in your markup, so search engines see the whole series from every part.
16
+ *
17
+ * Slots: `title` (the series name, a heading) and the default slot for the part links.
18
+ */
19
+ let StSeriesNav = class StSeriesNav extends LitElement {
20
+ constructor() {
21
+ super(...arguments);
22
+ /** Accessible name of the navigation. */
23
+ this.label = "Series";
24
+ /** Word shown before the part number. */
25
+ this.partLabel = "Part";
26
+ this.previousLabel = "Previous";
27
+ this.nextLabel = "Next";
28
+ this._parts = [];
29
+ this._current = -1;
30
+ this._onSlotChange = (e) => {
31
+ const links = e.target
32
+ .assignedElements({ flatten: true })
33
+ .filter((el) => el instanceof HTMLAnchorElement);
34
+ this._parts = links.map((a) => ({ href: a.getAttribute("href") ?? "", label: a.textContent?.trim() ?? "" }));
35
+ this._current = links.findIndex((a) => a.getAttribute("aria-current") === "page");
36
+ };
37
+ }
38
+ render() {
39
+ const total = this._parts.length;
40
+ const previous = this._current > 0 ? this._parts[this._current - 1] : undefined;
41
+ const next = this._current >= 0 && this._current < total - 1 ? this._parts[this._current + 1] : undefined;
42
+ return html `
43
+ <nav aria-label=${this.label}>
44
+ ${this._current >= 0
45
+ ? html `<p class="progress">${this.partLabel} ${this._current + 1} / ${total}</p>`
46
+ : nothing}
47
+ <slot name="title"></slot>
48
+ <div class="parts"><slot @slotchange=${this._onSlotChange}></slot></div>
49
+ ${previous || next
50
+ ? html `
51
+ <div class="pager">
52
+ ${previous
53
+ ? html `<a class="previous" href=${previous.href} rel="prev"><small>${this.previousLabel}</small>${previous.label}</a>`
54
+ : nothing}
55
+ ${next
56
+ ? html `<a class="next" href=${next.href} rel="next"><small>${this.nextLabel}</small>${next.label}</a>`
57
+ : nothing}
58
+ </div>
59
+ `
60
+ : nothing}
61
+ </nav>
62
+ `;
63
+ }
64
+ };
65
+ StSeriesNav.styles = [
66
+ resetStyles,
67
+ css `
68
+ :host {
69
+ display: block;
70
+ padding: var(--st-spacing-lg);
71
+ border: 1px solid var(--st-color-border);
72
+ border-left: 4px solid var(--st-color-primary);
73
+ border-radius: var(--st-radius-md);
74
+ background: var(--st-color-surface);
75
+ }
76
+
77
+ .progress {
78
+ margin: 0 0 var(--st-spacing-xs);
79
+ color: var(--st-color-primary-text);
80
+ font-size: var(--st-font-size-sm);
81
+ font-weight: var(--st-font-weight-bold);
82
+ letter-spacing: 0.06em;
83
+ text-transform: uppercase;
84
+ }
85
+
86
+ ::slotted([slot="title"]) {
87
+ margin: 0 0 var(--st-spacing-md) !important;
88
+ font-size: var(--st-font-size-lg) !important;
89
+ }
90
+
91
+ .parts {
92
+ display: grid;
93
+ gap: var(--st-spacing-xs);
94
+ counter-reset: part;
95
+ }
96
+
97
+ .parts ::slotted(a) {
98
+ counter-increment: part;
99
+ color: var(--st-color-text-muted);
100
+ text-decoration: none;
101
+ }
102
+
103
+ .parts ::slotted(a)::before {
104
+ content: counter(part) ". ";
105
+ color: var(--st-color-text-muted);
106
+ }
107
+
108
+ .parts ::slotted(a:hover) {
109
+ color: var(--st-color-text);
110
+ text-decoration: underline;
111
+ }
112
+
113
+ .parts ::slotted(a[aria-current="page"]) {
114
+ color: var(--st-color-text);
115
+ font-weight: var(--st-font-weight-bold);
116
+ }
117
+
118
+ .pager {
119
+ display: flex;
120
+ justify-content: space-between;
121
+ gap: var(--st-spacing-md);
122
+ margin-top: var(--st-spacing-md);
123
+ padding-top: var(--st-spacing-md);
124
+ border-top: 1px solid var(--st-color-border);
125
+ }
126
+
127
+ .pager a {
128
+ display: grid;
129
+ color: var(--st-color-primary-text);
130
+ font-weight: var(--st-font-weight-medium);
131
+ text-decoration: none;
132
+ gap: var(--st-spacing-xs);
133
+ max-width: 48%;
134
+ }
135
+
136
+ .pager .next {
137
+ margin-left: auto;
138
+ text-align: end;
139
+ }
140
+
141
+ .pager a:hover {
142
+ text-decoration: underline;
143
+ }
144
+
145
+ .pager a:focus-visible {
146
+ outline: 2px solid var(--st-color-primary);
147
+ outline-offset: 2px;
148
+ }
149
+
150
+ .pager small {
151
+ color: var(--st-color-text-muted);
152
+ font-weight: var(--st-font-weight-regular, 400);
153
+ }
154
+ `,
155
+ ];
156
+ __decorate([
157
+ property({ type: String })
158
+ ], StSeriesNav.prototype, "label", void 0);
159
+ __decorate([
160
+ property({ type: String, attribute: "part-label" })
161
+ ], StSeriesNav.prototype, "partLabel", void 0);
162
+ __decorate([
163
+ property({ type: String, attribute: "previous-label" })
164
+ ], StSeriesNav.prototype, "previousLabel", void 0);
165
+ __decorate([
166
+ property({ type: String, attribute: "next-label" })
167
+ ], StSeriesNav.prototype, "nextLabel", void 0);
168
+ __decorate([
169
+ state()
170
+ ], StSeriesNav.prototype, "_parts", void 0);
171
+ __decorate([
172
+ state()
173
+ ], StSeriesNav.prototype, "_current", void 0);
174
+ StSeriesNav = __decorate([
175
+ customElement("st-series-nav")
176
+ ], StSeriesNav);
177
+ export { StSeriesNav };
178
+ //# sourceMappingURL=series-nav.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"series-nav.js","sourceRoot":"","sources":["../../../src/components/series-nav/series-nav.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAC,MAAM,KAAK,CAAC;AACnD,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAOlD;;;;;;;;GAQG;AAEI,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,UAAU;IAApC;;QACL,yCAAyC;QACf,UAAK,GAAG,QAAQ,CAAC;QAC3C,yCAAyC;QACU,cAAS,GAAG,MAAM,CAAC;QACf,kBAAa,GAAG,UAAU,CAAC;QAC/B,cAAS,GAAG,MAAM,CAAC;QAErD,WAAM,GAAW,EAAE,CAAC;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AC,eAAe,CAAC;GAClB,WAAW,CA0IvB"}
@@ -0,0 +1,51 @@
1
+ import { LitElement, PropertyValues } from "lit";
2
+ import "../icon/icon.js";
3
+ /**
4
+ * The top of a site: a logo, navigation links and a place for actions such as a theme toggle or a
5
+ * call-to-action button. On wide screens the links sit in a row. On narrow screens they fold into
6
+ * a menu opened by a button; the links stay in the page either way, so search engines see them.
7
+ *
8
+ * Slots:
9
+ * - `logo`: your brand, usually a link to the home page.
10
+ * - default: the navigation links. Mark the current page with `aria-current="page"`.
11
+ * - `actions`: controls on the right (theme toggle, buttons).
12
+ *
13
+ * A "Skip to content" link is included for keyboard users. When `sticky`, the header publishes
14
+ * its height as `--st-site-header-height`, which sections use so anchor links are not hidden
15
+ * behind it.
16
+ */
17
+ export declare class StSiteHeader extends LitElement {
18
+ /** Keeps the header at the top of the screen while scrolling. */
19
+ sticky: boolean;
20
+ /** Screen width (in pixels) below which the links fold into a menu. */
21
+ breakpoint: number;
22
+ menuLabel: string;
23
+ navLabel: string;
24
+ /** Where the skip link goes. Give your main content this id. */
25
+ skipTo: string;
26
+ skipLabel: string;
27
+ private _menuOpen;
28
+ private _compact;
29
+ private _media?;
30
+ private _resize?;
31
+ static styles: import("lit").CSSResult[];
32
+ connectedCallback(): void;
33
+ disconnectedCallback(): void;
34
+ protected updated(changed: PropertyValues<this>): void;
35
+ /** Closes the menu. */
36
+ close(): void;
37
+ private _publishHeight;
38
+ private _applyCompact;
39
+ private _onBreakpoint;
40
+ private _onKeydown;
41
+ private _onOutside;
42
+ /** Choosing a link closes the menu. */
43
+ private _onNavClick;
44
+ render(): import("lit-html").TemplateResult<1>;
45
+ }
46
+ declare global {
47
+ interface HTMLElementTagNameMap {
48
+ "st-site-header": StSiteHeader;
49
+ }
50
+ }
51
+ //# sourceMappingURL=site-header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"site-header.d.ts","sourceRoot":"","sources":["../../../src/components/site-header/site-header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAa,cAAc,EAAC,MAAM,KAAK,CAAC;AAG1D,OAAO,iBAAiB,CAAC;AAEzB;;;;;;;;;;;;;GAaG;AACH,qBACa,YAAa,SAAQ,UAAU;IAC1C,iEAAiE;IACvB,MAAM,UAAS;IACzD,uEAAuE;IAC7C,UAAU,SAAO;IACQ,SAAS,SAAU;IACpB,QAAQ,SAAU;IACpE,gEAAgE;IAChB,MAAM,SAAW;IACd,SAAS,SAAqB;IAExE,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,QAAQ,CAAS;IAElC,OAAO,CAAC,MAAM,CAAC,CAAiB;IAChC,OAAO,CAAC,OAAO,CAAC,CAAiB;IAEjC,MAAM,CAAC,MAAM,4BAyIX;IAEF,iBAAiB,SAUhB;IAED,oBAAoB,SAOnB;IAED,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC,QAQ9C;IAED,uBAAuB;IACvB,KAAK,SAEJ;IAED,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,aAAa,CAA6D;IAElF,OAAO,CAAC,UAAU,CAKhB;IAEF,OAAO,CAAC,UAAU,CAEhB;IAEF,uCAAuC;IACvC,OAAO,CAAC,WAAW,CAEjB;IAEF,MAAM,yCA0BL;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,YAAY,CAAC;KAChC;CACF"}