@sondor-technology/sondor-components 1.0.8 → 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 (437) 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 +21 -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 +5 -2
  70. package/dist/components/cron-builder/cron-builder.d.ts.map +1 -1
  71. package/dist/components/cron-builder/cron-builder.js +83 -15
  72. package/dist/components/cron-builder/cron-builder.js.map +1 -1
  73. package/dist/components/cta/cta.d.ts +20 -0
  74. package/dist/components/cta/cta.d.ts.map +1 -0
  75. package/dist/components/cta/cta.js +64 -0
  76. package/dist/components/cta/cta.js.map +1 -0
  77. package/dist/components/drawer/drawer.js +6 -6
  78. package/dist/components/faq/faq-item.d.ts +22 -0
  79. package/dist/components/faq/faq-item.d.ts.map +1 -0
  80. package/dist/components/faq/faq-item.js +117 -0
  81. package/dist/components/faq/faq-item.js.map +1 -0
  82. package/dist/components/faq/faq.d.ts +18 -0
  83. package/dist/components/faq/faq.d.ts.map +1 -0
  84. package/dist/components/faq/faq.js +38 -0
  85. package/dist/components/faq/faq.js.map +1 -0
  86. package/dist/components/feature-grid/feature-grid.d.ts +22 -0
  87. package/dist/components/feature-grid/feature-grid.d.ts.map +1 -0
  88. package/dist/components/feature-grid/feature-grid.js +55 -0
  89. package/dist/components/feature-grid/feature-grid.js.map +1 -0
  90. package/dist/components/feature-grid/feature.d.ts +18 -0
  91. package/dist/components/feature-grid/feature.d.ts.map +1 -0
  92. package/dist/components/feature-grid/feature.js +91 -0
  93. package/dist/components/feature-grid/feature.js.map +1 -0
  94. package/dist/components/field/field.js +2 -2
  95. package/dist/components/footer/footer.js +4 -4
  96. package/dist/components/form/form-reset.d.ts +7 -0
  97. package/dist/components/form/form-reset.d.ts.map +1 -0
  98. package/dist/components/form/form-reset.js +47 -0
  99. package/dist/components/form/form-reset.js.map +1 -0
  100. package/dist/components/form/form.d.ts +5 -0
  101. package/dist/components/form/form.d.ts.map +1 -1
  102. package/dist/components/form/form.js +17 -3
  103. package/dist/components/form/form.js.map +1 -1
  104. package/dist/components/grid/grid.d.ts +5 -0
  105. package/dist/components/grid/grid.d.ts.map +1 -1
  106. package/dist/components/grid/grid.js +86 -4
  107. package/dist/components/grid/grid.js.map +1 -1
  108. package/dist/components/heat-map/heat-map.d.ts +39 -0
  109. package/dist/components/heat-map/heat-map.d.ts.map +1 -0
  110. package/dist/components/heat-map/heat-map.js +306 -0
  111. package/dist/components/heat-map/heat-map.js.map +1 -0
  112. package/dist/components/hero/hero.d.ts +26 -0
  113. package/dist/components/hero/hero.d.ts.map +1 -0
  114. package/dist/components/hero/hero.js +132 -0
  115. package/dist/components/hero/hero.js.map +1 -0
  116. package/dist/components/icon/icon-paths.d.ts +84 -0
  117. package/dist/components/icon/icon-paths.d.ts.map +1 -1
  118. package/dist/components/icon/icon-paths.js +89 -0
  119. package/dist/components/icon/icon-paths.js.map +1 -1
  120. package/dist/components/icon/icon.d.ts +2 -0
  121. package/dist/components/icon/icon.d.ts.map +1 -1
  122. package/dist/components/icon/icon.js +10 -1
  123. package/dist/components/icon/icon.js.map +1 -1
  124. package/dist/components/image/image.d.ts +31 -0
  125. package/dist/components/image/image.d.ts.map +1 -0
  126. package/dist/components/image/image.js +179 -0
  127. package/dist/components/image/image.js.map +1 -0
  128. package/dist/components/input/input.js +4 -4
  129. package/dist/components/lazy/lazy.d.ts +34 -0
  130. package/dist/components/lazy/lazy.d.ts.map +1 -0
  131. package/dist/components/lazy/lazy.js +104 -0
  132. package/dist/components/lazy/lazy.js.map +1 -0
  133. package/dist/components/line-chart/line-chart.d.ts +37 -0
  134. package/dist/components/line-chart/line-chart.d.ts.map +1 -0
  135. package/dist/components/line-chart/line-chart.js +271 -0
  136. package/dist/components/line-chart/line-chart.js.map +1 -0
  137. package/dist/components/list/list-item.d.ts +45 -0
  138. package/dist/components/list/list-item.d.ts.map +1 -0
  139. package/dist/components/list/list-item.js +263 -0
  140. package/dist/components/list/list-item.js.map +1 -0
  141. package/dist/components/list/list.d.ts +50 -0
  142. package/dist/components/list/list.d.ts.map +1 -0
  143. package/dist/components/list/list.js +161 -0
  144. package/dist/components/list/list.js.map +1 -0
  145. package/dist/components/logo-cloud/logo-cloud.d.ts +19 -0
  146. package/dist/components/logo-cloud/logo-cloud.d.ts.map +1 -0
  147. package/dist/components/logo-cloud/logo-cloud.js +66 -0
  148. package/dist/components/logo-cloud/logo-cloud.js.map +1 -0
  149. package/dist/components/modal/modal.d.ts +12 -0
  150. package/dist/components/modal/modal.d.ts.map +1 -1
  151. package/dist/components/modal/modal.js +40 -11
  152. package/dist/components/modal/modal.js.map +1 -1
  153. package/dist/components/page-layout/page-layout.js +8 -8
  154. package/dist/components/pagination/pagination.d.ts +15 -0
  155. package/dist/components/pagination/pagination.d.ts.map +1 -0
  156. package/dist/components/pagination/pagination.js +126 -0
  157. package/dist/components/pagination/pagination.js.map +1 -0
  158. package/dist/components/pagination/pagination.utils.d.ts +3 -0
  159. package/dist/components/pagination/pagination.utils.d.ts.map +1 -0
  160. package/dist/components/pagination/pagination.utils.js +19 -0
  161. package/dist/components/pagination/pagination.utils.js.map +1 -0
  162. package/dist/components/pie-chart/pie-chart.d.ts +33 -0
  163. package/dist/components/pie-chart/pie-chart.d.ts.map +1 -0
  164. package/dist/components/pie-chart/pie-chart.js +233 -0
  165. package/dist/components/pie-chart/pie-chart.js.map +1 -0
  166. package/dist/components/pin-input/pin-input.js +4 -4
  167. package/dist/components/popover/popover.d.ts.map +1 -1
  168. package/dist/components/popover/popover.js +1 -3
  169. package/dist/components/popover/popover.js.map +1 -1
  170. package/dist/components/post-list/post-card.d.ts +16 -0
  171. package/dist/components/post-list/post-card.d.ts.map +1 -0
  172. package/dist/components/post-list/post-card.js +22 -0
  173. package/dist/components/post-list/post-card.js.map +1 -0
  174. package/dist/components/post-list/post-list.d.ts +17 -0
  175. package/dist/components/post-list/post-list.d.ts.map +1 -0
  176. package/dist/components/post-list/post-list.js +23 -0
  177. package/dist/components/post-list/post-list.js.map +1 -0
  178. package/dist/components/pricing/pricing-tier.d.ts +23 -0
  179. package/dist/components/pricing/pricing-tier.d.ts.map +1 -0
  180. package/dist/components/pricing/pricing-tier.js +144 -0
  181. package/dist/components/pricing/pricing-tier.js.map +1 -0
  182. package/dist/components/pricing/pricing.d.ts +18 -0
  183. package/dist/components/pricing/pricing.d.ts.map +1 -0
  184. package/dist/components/pricing/pricing.js +38 -0
  185. package/dist/components/pricing/pricing.js.map +1 -0
  186. package/dist/components/progress/progress.d.ts +17 -0
  187. package/dist/components/progress/progress.d.ts.map +1 -0
  188. package/dist/components/progress/progress.js +109 -0
  189. package/dist/components/progress/progress.js.map +1 -0
  190. package/dist/components/project-grid/project-card.d.ts +17 -0
  191. package/dist/components/project-grid/project-card.d.ts.map +1 -0
  192. package/dist/components/project-grid/project-card.js +23 -0
  193. package/dist/components/project-grid/project-card.js.map +1 -0
  194. package/dist/components/project-grid/project-grid.d.ts +17 -0
  195. package/dist/components/project-grid/project-grid.d.ts.map +1 -0
  196. package/dist/components/project-grid/project-grid.js +23 -0
  197. package/dist/components/project-grid/project-grid.js.map +1 -0
  198. package/dist/components/radio/radio.js +1 -1
  199. package/dist/components/reveal/reveal.constants.d.ts +10 -0
  200. package/dist/components/reveal/reveal.constants.d.ts.map +1 -0
  201. package/dist/components/reveal/reveal.constants.js +11 -0
  202. package/dist/components/reveal/reveal.constants.js.map +1 -0
  203. package/dist/components/reveal/reveal.d.ts +64 -0
  204. package/dist/components/reveal/reveal.d.ts.map +1 -0
  205. package/dist/components/reveal/reveal.js +352 -0
  206. package/dist/components/reveal/reveal.js.map +1 -0
  207. package/dist/components/scroll-progress/scroll-progress.d.ts +32 -0
  208. package/dist/components/scroll-progress/scroll-progress.d.ts.map +1 -0
  209. package/dist/components/scroll-progress/scroll-progress.js +120 -0
  210. package/dist/components/scroll-progress/scroll-progress.js.map +1 -0
  211. package/dist/components/section/card-row.d.ts +30 -0
  212. package/dist/components/section/card-row.d.ts.map +1 -0
  213. package/dist/components/section/card-row.js +174 -0
  214. package/dist/components/section/card-row.js.map +1 -0
  215. package/dist/components/section/card.d.ts +27 -0
  216. package/dist/components/section/card.d.ts.map +1 -0
  217. package/dist/components/section/card.js +205 -0
  218. package/dist/components/section/card.js.map +1 -0
  219. package/dist/components/section/row-item.d.ts +22 -0
  220. package/dist/components/section/row-item.d.ts.map +1 -0
  221. package/dist/components/section/row-item.js +53 -0
  222. package/dist/components/section/row-item.js.map +1 -0
  223. package/dist/components/section/section.d.ts +70 -0
  224. package/dist/components/section/section.d.ts.map +1 -0
  225. package/dist/components/section/section.js +240 -0
  226. package/dist/components/section/section.js.map +1 -0
  227. package/dist/components/select/select.js +3 -3
  228. package/dist/components/series-nav/series-nav.d.ts +29 -0
  229. package/dist/components/series-nav/series-nav.d.ts.map +1 -0
  230. package/dist/components/series-nav/series-nav.js +178 -0
  231. package/dist/components/series-nav/series-nav.js.map +1 -0
  232. package/dist/components/site-header/site-header.d.ts +51 -0
  233. package/dist/components/site-header/site-header.d.ts.map +1 -0
  234. package/dist/components/site-header/site-header.js +296 -0
  235. package/dist/components/site-header/site-header.js.map +1 -0
  236. package/dist/components/skeleton/skeleton.js +7 -7
  237. package/dist/components/sparkline/sparkline.d.ts +19 -0
  238. package/dist/components/sparkline/sparkline.d.ts.map +1 -0
  239. package/dist/components/sparkline/sparkline.js +99 -0
  240. package/dist/components/sparkline/sparkline.js.map +1 -0
  241. package/dist/components/spinner/spinner.d.ts +13 -0
  242. package/dist/components/spinner/spinner.d.ts.map +1 -0
  243. package/dist/components/spinner/spinner.js +65 -0
  244. package/dist/components/spinner/spinner.js.map +1 -0
  245. package/dist/components/split/split.d.ts +23 -0
  246. package/dist/components/split/split.d.ts.map +1 -0
  247. package/dist/components/split/split.js +104 -0
  248. package/dist/components/split/split.js.map +1 -0
  249. package/dist/components/stack/stack.d.ts +21 -0
  250. package/dist/components/stack/stack.d.ts.map +1 -0
  251. package/dist/components/stack/stack.js +102 -0
  252. package/dist/components/stack/stack.js.map +1 -0
  253. package/dist/components/stat-card/stat-card.d.ts +35 -0
  254. package/dist/components/stat-card/stat-card.d.ts.map +1 -0
  255. package/dist/components/stat-card/stat-card.js +199 -0
  256. package/dist/components/stat-card/stat-card.js.map +1 -0
  257. package/dist/components/stats/stat.d.ts +16 -0
  258. package/dist/components/stats/stat.d.ts.map +1 -0
  259. package/dist/components/stats/stat.js +51 -0
  260. package/dist/components/stats/stat.js.map +1 -0
  261. package/dist/components/stats/stats.d.ts +19 -0
  262. package/dist/components/stats/stats.d.ts.map +1 -0
  263. package/dist/components/stats/stats.js +45 -0
  264. package/dist/components/stats/stats.js.map +1 -0
  265. package/dist/components/switch/switch.js +2 -2
  266. package/dist/components/table/data-table.d.ts +115 -27
  267. package/dist/components/table/data-table.d.ts.map +1 -1
  268. package/dist/components/table/data-table.js +1012 -411
  269. package/dist/components/table/data-table.js.map +1 -1
  270. package/dist/components/table/data-table.utils.d.ts +81 -0
  271. package/dist/components/table/data-table.utils.d.ts.map +1 -0
  272. package/dist/components/table/data-table.utils.js +208 -0
  273. package/dist/components/table/data-table.utils.js.map +1 -0
  274. package/dist/components/table/table.d.ts +28 -0
  275. package/dist/components/table/table.d.ts.map +1 -1
  276. package/dist/components/table/table.js +161 -33
  277. package/dist/components/table/table.js.map +1 -1
  278. package/dist/components/team/person.d.ts +19 -0
  279. package/dist/components/team/person.d.ts.map +1 -0
  280. package/dist/components/team/person.js +123 -0
  281. package/dist/components/team/person.js.map +1 -0
  282. package/dist/components/team/team.d.ts +18 -0
  283. package/dist/components/team/team.d.ts.map +1 -0
  284. package/dist/components/team/team.js +36 -0
  285. package/dist/components/team/team.js.map +1 -0
  286. package/dist/components/testimonials/testimonial.d.ts +18 -0
  287. package/dist/components/testimonials/testimonial.d.ts.map +1 -0
  288. package/dist/components/testimonials/testimonial.js +115 -0
  289. package/dist/components/testimonials/testimonial.js.map +1 -0
  290. package/dist/components/testimonials/testimonials.d.ts +18 -0
  291. package/dist/components/testimonials/testimonials.d.ts.map +1 -0
  292. package/dist/components/testimonials/testimonials.js +36 -0
  293. package/dist/components/testimonials/testimonials.js.map +1 -0
  294. package/dist/components/textarea/textarea.js +3 -3
  295. package/dist/components/theme-toggle/theme-toggle.js +1 -1
  296. package/dist/components/time-picker/time-picker.d.ts.map +1 -1
  297. package/dist/components/time-picker/time-picker.js +13 -3
  298. package/dist/components/time-picker/time-picker.js.map +1 -1
  299. package/dist/components/timeline/timeline-item.d.ts +18 -0
  300. package/dist/components/timeline/timeline-item.d.ts.map +1 -0
  301. package/dist/components/timeline/timeline-item.js +102 -0
  302. package/dist/components/timeline/timeline-item.js.map +1 -0
  303. package/dist/components/timeline/timeline.d.ts +18 -0
  304. package/dist/components/timeline/timeline.d.ts.map +1 -0
  305. package/dist/components/timeline/timeline.js +30 -0
  306. package/dist/components/timeline/timeline.js.map +1 -0
  307. package/dist/components/toast/toast.d.ts +33 -0
  308. package/dist/components/toast/toast.d.ts.map +1 -0
  309. package/dist/components/toast/toast.js +147 -0
  310. package/dist/components/toast/toast.js.map +1 -0
  311. package/dist/components/toggle-group/toggle-button.d.ts +2 -0
  312. package/dist/components/toggle-group/toggle-button.d.ts.map +1 -1
  313. package/dist/components/toggle-group/toggle-button.js +12 -5
  314. package/dist/components/toggle-group/toggle-button.js.map +1 -1
  315. package/dist/components/toggle-group/toggle-group.d.ts +6 -0
  316. package/dist/components/toggle-group/toggle-group.d.ts.map +1 -1
  317. package/dist/components/toggle-group/toggle-group.js +141 -21
  318. package/dist/components/toggle-group/toggle-group.js.map +1 -1
  319. package/dist/components/tooltip/tooltip.js +21 -21
  320. package/dist/components/vertical-nav/vertical-nav-group.js +3 -3
  321. package/dist/components/vertical-nav/vertical-nav-item.js +4 -4
  322. package/dist/components/video-embed/video-embed.d.ts +37 -0
  323. package/dist/components/video-embed/video-embed.d.ts.map +1 -0
  324. package/dist/components/video-embed/video-embed.js +183 -0
  325. package/dist/components/video-embed/video-embed.js.map +1 -0
  326. package/dist/index.d.ts +107 -0
  327. package/dist/index.d.ts.map +1 -0
  328. package/dist/index.js +104 -0
  329. package/dist/index.js.map +1 -0
  330. package/dist/styles/index.css +205 -1
  331. package/dist/styles/reset.d.ts.map +1 -1
  332. package/dist/styles/reset.js +5 -0
  333. package/dist/styles/reset.js.map +1 -1
  334. package/package.json +214 -7
  335. package/src/components/accordion/accordion.constants.ts +5 -0
  336. package/src/components/accordion/accordion.ts +209 -0
  337. package/src/components/alert/alert.constants.ts +3 -0
  338. package/src/components/alert/alert.ts +284 -17
  339. package/src/components/avatar/avatar.ts +84 -0
  340. package/src/components/back-to-top/back-to-top.ts +140 -0
  341. package/src/components/bar-chart/bar-chart.ts +295 -0
  342. package/src/components/breadcrumb/breadcrumb.ts +2 -2
  343. package/src/components/button/button.ts +9 -8
  344. package/src/components/button-group/button-group.ts +4 -4
  345. package/src/components/calendar/calendar.ts +26 -9
  346. package/src/components/chart/chart-base.ts +275 -0
  347. package/src/components/chart/chart.utils.ts +140 -0
  348. package/src/components/code-block/code-block.ts +35 -24
  349. package/src/components/consent/consent.ts +312 -0
  350. package/src/components/consent/consent.utils.ts +110 -0
  351. package/src/components/contact/contact.ts +83 -0
  352. package/src/components/container/container.ts +60 -0
  353. package/src/components/content-card/content-card.ts +4 -4
  354. package/src/components/context-menu/context-menu.ts +426 -0
  355. package/src/components/cron-builder/cron-builder.ts +102 -22
  356. package/src/components/cta/cta.ts +64 -0
  357. package/src/components/drawer/drawer.ts +6 -6
  358. package/src/components/faq/faq-item.ts +110 -0
  359. package/src/components/faq/faq.ts +40 -0
  360. package/src/components/feature-grid/feature-grid.ts +52 -0
  361. package/src/components/feature-grid/feature.ts +84 -0
  362. package/src/components/field/field.ts +2 -2
  363. package/src/components/footer/footer.ts +4 -4
  364. package/src/components/form/form-reset.ts +45 -0
  365. package/src/components/form/form.ts +17 -3
  366. package/src/components/grid/grid.ts +73 -4
  367. package/src/components/heat-map/heat-map.ts +292 -0
  368. package/src/components/hero/hero.ts +132 -0
  369. package/src/components/icon/icon-paths.ts +92 -1
  370. package/src/components/icon/icon.ts +8 -1
  371. package/src/components/image/image.ts +165 -0
  372. package/src/components/input/input.ts +4 -4
  373. package/src/components/lazy/lazy.ts +94 -0
  374. package/src/components/line-chart/line-chart.ts +271 -0
  375. package/src/components/list/list-item.ts +225 -0
  376. package/src/components/list/list.ts +157 -0
  377. package/src/components/logo-cloud/logo-cloud.ts +65 -0
  378. package/src/components/modal/modal.ts +37 -11
  379. package/src/components/page-layout/page-layout.ts +8 -8
  380. package/src/components/pagination/pagination.ts +120 -0
  381. package/src/components/pagination/pagination.utils.ts +14 -0
  382. package/src/components/pie-chart/pie-chart.ts +230 -0
  383. package/src/components/pin-input/pin-input.ts +4 -4
  384. package/src/components/popover/popover.ts +1 -3
  385. package/src/components/post-list/post-card.ts +18 -0
  386. package/src/components/post-list/post-list.ts +19 -0
  387. package/src/components/pricing/pricing-tier.ts +132 -0
  388. package/src/components/pricing/pricing.ts +39 -0
  389. package/src/components/progress/progress.ts +95 -0
  390. package/src/components/project-grid/project-card.ts +19 -0
  391. package/src/components/project-grid/project-grid.ts +19 -0
  392. package/src/components/radio/radio.ts +1 -1
  393. package/src/components/reveal/reveal.constants.ts +20 -0
  394. package/src/components/reveal/reveal.ts +344 -0
  395. package/src/components/scroll-progress/scroll-progress.ts +119 -0
  396. package/src/components/section/card-row.ts +152 -0
  397. package/src/components/section/card.ts +197 -0
  398. package/src/components/section/row-item.ts +38 -0
  399. package/src/components/section/section.ts +232 -0
  400. package/src/components/select/select.ts +3 -3
  401. package/src/components/series-nav/series-nav.ts +164 -0
  402. package/src/components/site-header/site-header.ts +276 -0
  403. package/src/components/skeleton/skeleton.ts +7 -7
  404. package/src/components/sparkline/sparkline.ts +83 -0
  405. package/src/components/spinner/spinner.ts +55 -0
  406. package/src/components/split/split.ts +106 -0
  407. package/src/components/stack/stack.ts +88 -0
  408. package/src/components/stat-card/stat-card.ts +179 -0
  409. package/src/components/stats/stat.ts +49 -0
  410. package/src/components/stats/stats.ts +47 -0
  411. package/src/components/switch/switch.ts +2 -2
  412. package/src/components/table/data-table.ts +1015 -425
  413. package/src/components/table/data-table.utils.ts +276 -0
  414. package/src/components/table/table.ts +168 -38
  415. package/src/components/team/person.ts +113 -0
  416. package/src/components/team/team.ts +37 -0
  417. package/src/components/testimonials/testimonial.ts +108 -0
  418. package/src/components/testimonials/testimonials.ts +37 -0
  419. package/src/components/textarea/textarea.ts +3 -3
  420. package/src/components/theme-toggle/theme-toggle.ts +1 -1
  421. package/src/components/time-picker/time-picker.ts +17 -3
  422. package/src/components/timeline/timeline-item.ts +100 -0
  423. package/src/components/timeline/timeline.ts +31 -0
  424. package/src/components/toast/toast.ts +153 -0
  425. package/src/components/toggle-group/toggle-button.ts +9 -5
  426. package/src/components/toggle-group/toggle-group.ts +158 -42
  427. package/src/components/tooltip/tooltip.ts +21 -21
  428. package/src/components/vertical-nav/vertical-nav-group.ts +3 -3
  429. package/src/components/vertical-nav/vertical-nav-item.ts +4 -4
  430. package/src/components/video-embed/video-embed.ts +162 -0
  431. package/src/index.ts +108 -0
  432. package/src/styles/globals.css +63 -0
  433. package/src/styles/index.css +3 -1
  434. package/src/styles/prose.css +154 -0
  435. package/src/styles/reset.ts +5 -0
  436. package/src/styles/theme.css +53 -0
  437. package/src/styles/typography.css +1 -0
@@ -0,0 +1,174 @@
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 { html, css, nothing } from "lit";
8
+ import { property, state } from "lit/decorators.js";
9
+ import { StSection } from "./section.js";
10
+ import { StCard } from "./card.js";
11
+ /**
12
+ * Base for rows that list cards (blog posts, projects). Cards sit in a grid or a single column and
13
+ * can be filtered by topic: add `filterable` and a button appears for every topic used in the
14
+ * cards' `tags`.
15
+ */
16
+ export class StCardRow extends StSection {
17
+ constructor() {
18
+ super(...arguments);
19
+ /** The most columns on wide screens (grid layout). */
20
+ this.columns = 3;
21
+ /** `grid` or one card per row. */
22
+ this.layout = "grid";
23
+ /** Shows topic buttons that filter the cards. */
24
+ this.filterable = false;
25
+ this.filterLabel = "Filter by topic";
26
+ this.allLabel = "All";
27
+ this._tags = [];
28
+ this._active = "";
29
+ this._visible = 0;
30
+ this._total = 0;
31
+ this._onCardsChange = (e) => {
32
+ this._onItemsChange(e);
33
+ const cards = this._cards;
34
+ cards.forEach((card) => (card.layout = this.layout));
35
+ this._tags = [...new Set(cards.flatMap((card) => card.tagList))].sort((a, b) => a.localeCompare(b));
36
+ this._total = cards.length;
37
+ this._applyFilter();
38
+ };
39
+ }
40
+ get _cards() {
41
+ const slot = this.renderRoot?.querySelector(".items slot");
42
+ return (slot?.assignedElements({ flatten: true }) ?? []).filter((el) => el instanceof StCard);
43
+ }
44
+ updated(changed) {
45
+ super.updated(changed);
46
+ this.renderRoot
47
+ .querySelector(".items")
48
+ ?.style.setProperty("--_columns", String(Math.max(1, this.columns)));
49
+ if (changed.has("layout"))
50
+ this._cards.forEach((card) => (card.layout = this.layout));
51
+ }
52
+ _applyFilter() {
53
+ const cards = this._cards;
54
+ cards.forEach((card) => card.toggleAttribute("hidden", !!this._active && !card.tagList.includes(this._active)));
55
+ this._visible = cards.filter((card) => !card.hidden).length;
56
+ }
57
+ _choose(tag) {
58
+ this._active = tag;
59
+ this._applyFilter();
60
+ this.dispatchEvent(new CustomEvent("st-filter", { detail: { tag: tag || null, count: this._visible }, bubbles: true, composed: true }));
61
+ }
62
+ _renderFilters() {
63
+ if (!this.filterable || this._tags.length === 0)
64
+ return nothing;
65
+ return html `
66
+ <div class="filters" role="group" aria-label=${this.filterLabel}>
67
+ ${["", ...this._tags].map((tag) => html `
68
+ <button
69
+ type="button"
70
+ class="chip"
71
+ aria-pressed=${this._active === tag ? "true" : "false"}
72
+ @click=${() => this._choose(tag)}
73
+ >
74
+ ${tag || this.allLabel}
75
+ </button>
76
+ `)}
77
+ </div>
78
+ <p class="status" role="status">${this._visible} of ${this._total} shown</p>
79
+ `;
80
+ }
81
+ render() {
82
+ return this.frame(html `
83
+ ${this._renderFilters()}
84
+ <div class="items"><slot @slotchange=${this._onCardsChange}></slot></div>
85
+ `, { animated: false });
86
+ }
87
+ }
88
+ StCardRow.styles = [
89
+ ...StSection.styles,
90
+ css `
91
+ .items {
92
+ --_columns: 3;
93
+ --_gap: var(--st-spacing-lg);
94
+ display: grid;
95
+ gap: var(--_gap);
96
+ grid-template-columns: repeat(
97
+ auto-fill,
98
+ minmax(max(16rem, calc((100% - (var(--_columns) - 1) * var(--_gap)) / var(--_columns))), 1fr)
99
+ );
100
+ }
101
+
102
+ :host([layout="list"]) .items {
103
+ grid-template-columns: minmax(0, 1fr);
104
+ }
105
+
106
+ .filters {
107
+ display: flex;
108
+ flex-wrap: wrap;
109
+ justify-content: center;
110
+ gap: var(--st-spacing-sm);
111
+ margin-bottom: var(--st-spacing-xl);
112
+ }
113
+
114
+ .chip {
115
+ padding: var(--st-spacing-xs) var(--st-spacing-md);
116
+ border: 1px solid var(--st-color-border);
117
+ border-radius: 999px;
118
+ background: none;
119
+ color: var(--st-color-text);
120
+ cursor: pointer;
121
+ }
122
+
123
+ .chip:hover {
124
+ background: var(--st-color-surface-hover);
125
+ }
126
+
127
+ .chip[aria-pressed="true"] {
128
+ border-color: var(--st-color-primary);
129
+ background: var(--st-color-primary);
130
+ color: var(--st-color-bg);
131
+ }
132
+
133
+ .chip:focus-visible {
134
+ outline: 2px solid var(--st-color-primary);
135
+ outline-offset: 2px;
136
+ }
137
+
138
+ .status {
139
+ position: absolute;
140
+ width: 1px;
141
+ height: 1px;
142
+ overflow: hidden;
143
+ clip-path: inset(50%);
144
+ }
145
+ `,
146
+ ];
147
+ __decorate([
148
+ property({ type: Number })
149
+ ], StCardRow.prototype, "columns", void 0);
150
+ __decorate([
151
+ property({ type: String, reflect: true })
152
+ ], StCardRow.prototype, "layout", void 0);
153
+ __decorate([
154
+ property({ type: Boolean, reflect: true })
155
+ ], StCardRow.prototype, "filterable", void 0);
156
+ __decorate([
157
+ property({ type: String, attribute: "filter-label" })
158
+ ], StCardRow.prototype, "filterLabel", void 0);
159
+ __decorate([
160
+ property({ type: String, attribute: "all-label" })
161
+ ], StCardRow.prototype, "allLabel", void 0);
162
+ __decorate([
163
+ state()
164
+ ], StCardRow.prototype, "_tags", void 0);
165
+ __decorate([
166
+ state()
167
+ ], StCardRow.prototype, "_active", void 0);
168
+ __decorate([
169
+ state()
170
+ ], StCardRow.prototype, "_visible", void 0);
171
+ __decorate([
172
+ state()
173
+ ], StCardRow.prototype, "_total", void 0);
174
+ //# sourceMappingURL=card-row.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-row.js","sourceRoot":"","sources":["../../../src/components/section/card-row.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAiC,MAAM,KAAK,CAAC;AACvE,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AACvC,OAAO,EAAC,MAAM,EAAC,MAAM,WAAW,CAAC;AAEjC;;;;GAIG;AACH,MAAM,OAAgB,SAAU,SAAQ,SAAS;IAAjD;;QACE,sDAAsD;QAC5B,YAAO,GAAG,CAAC,CAAC;QACtC,kCAAkC;QACO,WAAM,GAAoB,MAAM,CAAC;QAC1E,iDAAiD;QACP,eAAU,GAAG,KAAK,CAAC;QACR,gBAAW,GAAG,iBAAiB,CAAC;QACnC,aAAQ,GAAG,KAAK,CAAC;QAElD,UAAK,GAAa,EAAE,CAAC;QACrB,YAAO,GAAG,EAAE,CAAC;QACb,aAAQ,GAAG,CAAC,CAAC;QACb,WAAM,GAAG,CAAC,CAAC;QA2EpB,mBAAc,GAAG,CAAC,CAAQ,EAAE,EAAE;YACpC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;YACvB,MAAM,KAAK,GAAG,IAAI,CAAC,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,OAAO,CAAC,GAAG,CAAC;;gBAE9B,GAAG,IAAI,IAAI,CAAC,QAAQ;;WAEzB,CACF;;wCAE+B,IAAI,CAAC,QAAQ,OAAO,IAAI,CAAC,MAAM;KAClE,CAAC;IACJ,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CACf,IAAI,CAAA;UACA,IAAI,CAAC,cAAc,EAAE;+CACgB,IAAI,CAAC,cAAc;OAC3D,EACD,EAAC,QAAQ,EAAE,KAAK,EAAC,CAClB,CAAC;IACJ,CAAC;CACF;AA9HQ,gBAAM,GAAG;IACd,GAAG,SAAS,CAAC,MAAM;IACnB,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAuDF;CACF,AA1DY,CA0DX;AAvEwB;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;0CAAa;AAEG;IAAxC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;yCAAkC;AAEhC;IAAzC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;6CAAoB;AACR;IAApD,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAC,CAAC;8CAAiC;AACnC;IAAjD,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAC,CAAC;2CAAkB;AAElD;IAAhB,KAAK,EAAE;wCAA8B;AACrB;IAAhB,KAAK,EAAE;0CAAsB;AACb;IAAhB,KAAK,EAAE;2CAAsB;AACb;IAAhB,KAAK,EAAE;yCAAoB"}
@@ -0,0 +1,27 @@
1
+ import { TemplateResult } from "lit";
2
+ import { StRowItem } from "./row-item.js";
3
+ /**
4
+ * Base for the cards in a filterable list (a blog post, a project). A card is a link target as a
5
+ * whole: pressing anywhere on it follows the link in its `title`, while that link stays a normal
6
+ * anchor in your markup for keyboard users, screen readers and search engines.
7
+ *
8
+ * Slots: `image`, `meta` (a date, reading time, tags), `title` (a heading containing the link),
9
+ * the default slot (a short description) and `footer` (extra links or buttons).
10
+ */
11
+ export declare abstract class StCard extends StRowItem {
12
+ /** Comma-separated topics, used by the list's filter, such as `web, design`. */
13
+ tags: string;
14
+ /** Set by the list: a column of cards, or one card per row with the picture beside it. */
15
+ layout: "grid" | "list";
16
+ static styles: import("lit").CSSResult[];
17
+ /** The topics as a clean list. */
18
+ get tagList(): string[];
19
+ connectedCallback(): void;
20
+ disconnectedCallback(): void;
21
+ private _titleLink;
22
+ private _markLinked;
23
+ private _onClick;
24
+ protected renderCard(): TemplateResult;
25
+ render(): TemplateResult;
26
+ }
27
+ //# sourceMappingURL=card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/section/card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,cAAc,EAAC,MAAM,KAAK,CAAC;AAG9C,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAExC;;;;;;;GAOG;AACH,8BAAsB,MAAO,SAAQ,SAAS;IAC5C,gFAAgF;IACtD,IAAI,SAAM;IACpC,0FAA0F;IACjD,MAAM,EAAE,MAAM,GAAG,MAAM,CAAU;IAE1E,MAAM,CAAC,MAAM,4BAuHX;IAEF,kCAAkC;IAClC,IAAI,OAAO,IAAI,MAAM,EAAE,CAKtB;IAED,iBAAiB,SAIhB;IAED,oBAAoB,SAGnB;IAED,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,QAAQ,CAQd;IAEF,SAAS,CAAC,UAAU,IAAI,cAAc,CAcrC;IAED,MAAM,mBAEL;CACF"}
@@ -0,0 +1,205 @@
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 { html, css } from "lit";
8
+ import { property } from "lit/decorators.js";
9
+ import { resetStyles } from "../../styles/reset.js";
10
+ import { StRowItem } from "./row-item.js";
11
+ /**
12
+ * Base for the cards in a filterable list (a blog post, a project). A card is a link target as a
13
+ * whole: pressing anywhere on it follows the link in its `title`, while that link stays a normal
14
+ * anchor in your markup for keyboard users, screen readers and search engines.
15
+ *
16
+ * Slots: `image`, `meta` (a date, reading time, tags), `title` (a heading containing the link),
17
+ * the default slot (a short description) and `footer` (extra links or buttons).
18
+ */
19
+ export class StCard extends StRowItem {
20
+ constructor() {
21
+ super(...arguments);
22
+ /** Comma-separated topics, used by the list's filter, such as `web, design`. */
23
+ this.tags = "";
24
+ /** Set by the list: a column of cards, or one card per row with the picture beside it. */
25
+ this.layout = "grid";
26
+ this._onClick = (e) => {
27
+ if (e.defaultPrevented || e.button !== 0)
28
+ return;
29
+ // Real links, buttons and fields inside the card keep doing their own thing.
30
+ const interactive = e
31
+ .composedPath()
32
+ .some((el) => el instanceof HTMLElement && el !== this && el.matches("a, button, input, select, textarea, summary"));
33
+ if (interactive)
34
+ return;
35
+ this._titleLink()?.click();
36
+ };
37
+ }
38
+ /** The topics as a clean list. */
39
+ get tagList() {
40
+ return this.tags
41
+ .split(",")
42
+ .map((tag) => tag.trim())
43
+ .filter(Boolean);
44
+ }
45
+ connectedCallback() {
46
+ super.connectedCallback();
47
+ this.addEventListener("click", this._onClick);
48
+ this._markLinked();
49
+ }
50
+ disconnectedCallback() {
51
+ this.removeEventListener("click", this._onClick);
52
+ super.disconnectedCallback();
53
+ }
54
+ _titleLink() {
55
+ return this.querySelector(':scope > [slot="title"] a[href], :scope > a[slot="title"]');
56
+ }
57
+ _markLinked() {
58
+ this.toggleAttribute("data-linked", !!this._titleLink());
59
+ }
60
+ renderCard() {
61
+ return this.frame(html `
62
+ <article>
63
+ <div class="image"><slot name="image"></slot></div>
64
+ <div class="content">
65
+ <div class="body">
66
+ <slot name="meta"></slot>
67
+ <slot name="title" @slotchange=${() => this._markLinked()}></slot>
68
+ <div class="description"><slot></slot></div>
69
+ </div>
70
+ <div class="footer"><slot name="footer"></slot></div>
71
+ </div>
72
+ </article>
73
+ `);
74
+ }
75
+ render() {
76
+ return this.renderCard();
77
+ }
78
+ }
79
+ StCard.styles = [
80
+ resetStyles,
81
+ css `
82
+ :host {
83
+ display: block;
84
+ }
85
+
86
+ article {
87
+ display: flex;
88
+ flex-direction: column;
89
+ height: 100%;
90
+ overflow: hidden;
91
+ border: 1px solid var(--st-color-border);
92
+ border-radius: var(--st-radius-lg);
93
+ background: var(--st-row-card-bg, var(--st-color-surface));
94
+ transition:
95
+ border-color 0.2s ease,
96
+ box-shadow 0.2s ease;
97
+ }
98
+
99
+ :host([data-linked]) article {
100
+ cursor: pointer;
101
+ }
102
+
103
+ :host([data-linked]:hover) article {
104
+ border-color: var(--st-color-primary);
105
+ box-shadow: var(--st-shadow-md);
106
+ }
107
+
108
+ :host(:focus-within) article {
109
+ border-color: var(--st-color-primary);
110
+ outline: 2px solid var(--st-color-primary);
111
+ outline-offset: 2px;
112
+ }
113
+
114
+ .image:empty,
115
+ .image[hidden] {
116
+ display: none;
117
+ }
118
+
119
+ .image ::slotted(*) {
120
+ display: block;
121
+ width: 100%;
122
+ height: 100%;
123
+ aspect-ratio: 16 / 9;
124
+ object-fit: cover;
125
+ }
126
+
127
+ .body {
128
+ display: grid;
129
+ flex: 1;
130
+ align-content: start;
131
+ gap: var(--st-spacing-sm);
132
+ padding: var(--st-spacing-lg);
133
+ }
134
+
135
+ ::slotted([slot="meta"]) {
136
+ display: flex;
137
+ flex-wrap: wrap;
138
+ gap: var(--st-spacing-sm);
139
+ color: var(--st-color-text-muted);
140
+ font-size: var(--st-font-size-sm);
141
+ }
142
+
143
+ ::slotted([slot="title"]) {
144
+ margin: 0 !important;
145
+ font-size: var(--st-font-size-xl) !important;
146
+ }
147
+
148
+ .description {
149
+ color: var(--st-color-text-muted);
150
+ }
151
+
152
+ .description ::slotted(*) {
153
+ margin: 0;
154
+ }
155
+
156
+ .footer {
157
+ display: flex;
158
+ flex-wrap: wrap;
159
+ gap: var(--st-spacing-md);
160
+ padding: 0 var(--st-spacing-lg) var(--st-spacing-lg);
161
+ }
162
+
163
+ .footer[hidden] {
164
+ display: none;
165
+ }
166
+
167
+ .content {
168
+ display: contents;
169
+ }
170
+
171
+ /* One card per row, with the picture beside the text. */
172
+ @media (min-width: 40rem) {
173
+ :host([layout="list"]) article {
174
+ flex-direction: row;
175
+ }
176
+
177
+ :host([layout="list"]) .image {
178
+ flex: 0 0 34%;
179
+ }
180
+
181
+ :host([layout="list"]) .image ::slotted(*) {
182
+ aspect-ratio: auto;
183
+ }
184
+
185
+ :host([layout="list"]) .content {
186
+ display: flex;
187
+ flex: 1;
188
+ flex-direction: column;
189
+ }
190
+ }
191
+
192
+ @media (prefers-reduced-motion: reduce) {
193
+ article {
194
+ transition: none;
195
+ }
196
+ }
197
+ `,
198
+ ];
199
+ __decorate([
200
+ property({ type: String })
201
+ ], StCard.prototype, "tags", void 0);
202
+ __decorate([
203
+ property({ type: String, reflect: true })
204
+ ], StCard.prototype, "layout", void 0);
205
+ //# sourceMappingURL=card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.js","sourceRoot":"","sources":["../../../src/components/section/card.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,IAAI,EAAE,GAAG,EAAiB,MAAM,KAAK,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAClD,OAAO,E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DAA2D,CAAC,CAAC;IAC5G,CAAC;IAEO,WAAW;QACjB,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;IAC3D,CAAC;IAYS,UAAU;QAClB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAA;;;;;;6CAMmB,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE;;;;;;KAMhE,CAAC,CAAC;IACL,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC;IAC3B,CAAC;CACF;AAjLQ,aAAM,GAAG;IACd,WAAW;IACX,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAoHF;CACF,AAvHY,CAuHX;AA3HwB;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;oCAAW;AAEK;IAAxC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;sCAAkC"}
@@ -0,0 +1,22 @@
1
+ import { LitElement, TemplateResult } from "lit";
2
+ import type { RevealEffect } from "../reveal/reveal.constants.js";
3
+ import "../reveal/reveal.js";
4
+ /**
5
+ * Base class for the repeated items inside a row (a feature, a stat, a testimonial...). It makes
6
+ * each item animate in as it is scrolled to. The row hands down its own `reveal` setting and a
7
+ * small delay by position, so items arrive one after another. Set `reveal` on an item to
8
+ * override the row.
9
+ */
10
+ export declare abstract class StRowItem extends LitElement {
11
+ /** How the item animates in. Leave empty to follow the row it is in. */
12
+ reveal: RevealEffect | "";
13
+ /** The row's own effect, set by the row. */
14
+ inheritedReveal: RevealEffect;
15
+ /** Milliseconds before the animation starts. Set by the row. */
16
+ revealDelay: number;
17
+ /** The effect in use: the item's own, otherwise its row's. */
18
+ get effect(): RevealEffect;
19
+ /** Wraps the item's content so it animates in. */
20
+ protected frame(content: TemplateResult): TemplateResult;
21
+ }
22
+ //# sourceMappingURL=row-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-item.d.ts","sourceRoot":"","sources":["../../../src/components/section/row-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAQ,cAAc,EAAC,MAAM,KAAK,CAAC;AAErD,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAChE,OAAO,qBAAqB,CAAC;AAE7B;;;;;GAKG;AACH,8BAAsB,SAAU,SAAQ,UAAU;IAChD,wEAAwE;IAC/B,MAAM,EAAE,YAAY,GAAG,EAAE,CAAM;IACxE,4CAA4C;IACd,eAAe,EAAE,YAAY,CAAc;IACzE,gEAAgE;IACX,WAAW,SAAK;IAErE,8DAA8D;IAC9D,IAAI,MAAM,IAAI,YAAY,CAEzB;IAED,kDAAkD;IAClD,SAAS,CAAC,KAAK,CAAC,OAAO,EAAE,cAAc,GAAG,cAAc,CAWvD;CACF"}
@@ -0,0 +1,53 @@
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 } from "lit";
8
+ import { property } from "lit/decorators.js";
9
+ import "../reveal/reveal.js";
10
+ /**
11
+ * Base class for the repeated items inside a row (a feature, a stat, a testimonial...). It makes
12
+ * each item animate in as it is scrolled to. The row hands down its own `reveal` setting and a
13
+ * small delay by position, so items arrive one after another. Set `reveal` on an item to
14
+ * override the row.
15
+ */
16
+ export class StRowItem extends LitElement {
17
+ constructor() {
18
+ super(...arguments);
19
+ /** How the item animates in. Leave empty to follow the row it is in. */
20
+ this.reveal = "";
21
+ /** The row's own effect, set by the row. */
22
+ this.inheritedReveal = "slide-up";
23
+ /** Milliseconds before the animation starts. Set by the row. */
24
+ this.revealDelay = 0;
25
+ }
26
+ /** The effect in use: the item's own, otherwise its row's. */
27
+ get effect() {
28
+ return this.reveal || this.inheritedReveal;
29
+ }
30
+ /** Wraps the item's content so it animates in. */
31
+ frame(content) {
32
+ return html `
33
+ <st-reveal
34
+ effect=${this.effect}
35
+ delay=${this.revealDelay}
36
+ offset="5"
37
+ style="display: block; height: 100%"
38
+ >
39
+ ${content}
40
+ </st-reveal>
41
+ `;
42
+ }
43
+ }
44
+ __decorate([
45
+ property({ type: String, reflect: true })
46
+ ], StRowItem.prototype, "reveal", void 0);
47
+ __decorate([
48
+ property({ attribute: false })
49
+ ], StRowItem.prototype, "inheritedReveal", void 0);
50
+ __decorate([
51
+ property({ type: Number, attribute: "reveal-delay" })
52
+ ], StRowItem.prototype, "revealDelay", void 0);
53
+ //# sourceMappingURL=row-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-item.js","sourceRoot":"","sources":["../../../src/components/section/row-item.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,UAAU,EAAE,IAAI,EAAiB,MAAM,KAAK,CAAC;AACrD,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,OAAO,qBAAqB,CAAC;AAE7B;;;;;GAKG;AACH,MAAM,OAAgB,SAAU,SAAQ,UAAU;IAAlD;;QACE,wEAAwE;QAC/B,WAAM,GAAsB,EAAE,CAAC;QACxE,4CAA4C;QACd,oBAAe,GAAiB,UAAU,CAAC;QACzE,gEAAgE;QACX,gBAAW,GAAG,CAAC,CAAC;IAoBvE,CAAC;IAlBC,8DAA8D;IAC9D,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,eAAe,CAAC;IAC7C,CAAC;IAED,kDAAkD;IACxC,KAAK,CAAC,OAAuB;QACrC,OAAO,IAAI,CAAA;;iBAEE,IAAI,CAAC,MAAM;gBACZ,IAAI,CAAC,WAAW;;;;UAItB,OAAO;;KAEZ,CAAC;IACJ,CAAC;CACF;AAxB0C;IAAxC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;yCAAgC;AAE1C;IAA7B,QAAQ,CAAC,EAAC,SAAS,EAAE,KAAK,EAAC,CAAC;kDAA4C;AAEpB;IAApD,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAC,CAAC;8CAAiB"}
@@ -0,0 +1,70 @@
1
+ import { LitElement, PropertyValues, TemplateResult } from "lit";
2
+ import type { ContainerSize } from "../container/container.js";
3
+ import type { RevealEffect } from "../reveal/reveal.constants.js";
4
+ import "../container/container.js";
5
+ import "../reveal/reveal.js";
6
+ export declare const sectionTones: readonly ["auto", "default", "surface", "accent"];
7
+ export type SectionTone = (typeof sectionTones)[number];
8
+ export declare const sectionSpaces: readonly ["none", "sm", "md", "lg"];
9
+ export type SectionSpace = (typeof sectionSpaces)[number];
10
+ /**
11
+ * A full-width row of a page: a background, responsive vertical spacing, a centred container and
12
+ * an optional header made of an eyebrow, title and lead. Stack rows to build a page. The ready-made
13
+ * rows (hero, features, call to action and so on) are all built on it, so every row shares the
14
+ * same spacing, header, tones and animation, and any row can follow any other.
15
+ *
16
+ * Slots: `eyebrow`, `title`, `lead` (the header: slot real headings so search engines and screen
17
+ * readers understand the page outline) and the default slot for the content.
18
+ *
19
+ * Tone: by default (`auto`) neighbouring rows alternate between the page and surface colours, so
20
+ * stacked rows are visually separated with no effort. Set `tone` to choose one yourself.
21
+ *
22
+ * Animation: the header and content animate in as they scroll into view (`reveal`, turn off with
23
+ * `reveal="none"`). Give the host an `id` to link to it (`#pricing`). Off-screen rows are not
24
+ * rendered until they are near the viewport (`content-visibility`); add `eager` to turn that off.
25
+ */
26
+ export declare class StSection extends LitElement {
27
+ /** `auto` alternates between rows; the others are fixed. */
28
+ tone: SectionTone;
29
+ /** Vertical padding. */
30
+ space: SectionSpace;
31
+ /** Maximum width of the content. */
32
+ width: ContainerSize;
33
+ /** Alignment of the header block. */
34
+ align: "start" | "center";
35
+ /** How the row animates in as it is scrolled to. `none` turns it off. */
36
+ reveal: RevealEffect;
37
+ /** Accessible name. When set the section becomes a labelled landmark. */
38
+ label: string;
39
+ /** Renders immediately even when off screen. */
40
+ eager: boolean;
41
+ private _hasHeader;
42
+ static styles: import("lit").CSSResult[];
43
+ private _onHeaderSlotChange;
44
+ protected willUpdate(changed: PropertyValues<this>): void;
45
+ private _headerPresent;
46
+ /** Hands the row's animation settings to any item components inside it. */
47
+ protected _onItemsChange: (e: Event) => void;
48
+ protected updated(changed: PropertyValues<this>): void;
49
+ /** The eyebrow, title and lead. Rows that lay the header out themselves call this directly. */
50
+ protected renderHeader(): TemplateResult;
51
+ /** Wraps part of a row so it animates in with the row's effect. */
52
+ protected animateIn(content: TemplateResult, delay?: number): TemplateResult;
53
+ /**
54
+ * The band every row sits in. Pass the row's content.
55
+ * - `header: false`: the row lays the header out itself and calls `renderHeader()`.
56
+ * - `animated: false`: the row animates its own parts (or its items do), so the content is not
57
+ * wrapped in a second animation.
58
+ */
59
+ protected frame(content: TemplateResult, options?: {
60
+ header?: boolean;
61
+ animated?: boolean;
62
+ }): TemplateResult;
63
+ render(): TemplateResult;
64
+ }
65
+ declare global {
66
+ interface HTMLElementTagNameMap {
67
+ "st-section": StSection;
68
+ }
69
+ }
70
+ //# sourceMappingURL=section.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../../src/components/section/section.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAgC,cAAc,EAAE,cAAc,EAAC,MAAM,KAAK,CAAC;AA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