@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 @@
1
+ {"version":3,"file":"hero.d.ts","sourceRoot":"","sources":["../../../src/components/hero/hero.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAEhD;;;;;;;;GAQG;AACH,qBACa,MAAO,SAAQ,SAAS;IACnC,6DAA6D;IACnB,OAAO,UAAS;IAEjD,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,WAAW,CAAS;IAErC,cAGC;IAED,MAAM,CAAC,MAAM,4BAkEX;IAEF,OAAO,CAAC,cAAc,CAGpB;IAEF,MAAM,sCAyBL;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
@@ -0,0 +1,132 @@
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 { customElement, property, state } from "lit/decorators.js";
9
+ import { StSection } from "../section/section.js";
10
+ /**
11
+ * The opening row of a page: a big title, a short introduction and the main actions. Add a
12
+ * `media` (an image or video) and the row becomes two columns on wide screens, text beside media,
13
+ * stacking on narrow ones.
14
+ *
15
+ * Slots: `eyebrow`, `title`, `lead`, `actions` (buttons), `media` and the default slot for
16
+ * anything extra under the actions (a note, a row of logos).
17
+ * It takes all the row options of `st-section` (tone, space, width, reveal, label).
18
+ */
19
+ let StHero = class StHero extends StSection {
20
+ constructor() {
21
+ super();
22
+ /** With media, shows it before the text instead of after. */
23
+ this.reverse = false;
24
+ this._hasMedia = false;
25
+ this._hasActions = false;
26
+ this._onMediaChange = (e) => {
27
+ this._hasMedia = e.target.assignedNodes().length > 0;
28
+ this.toggleAttribute("data-media", this._hasMedia);
29
+ };
30
+ this.space = "lg";
31
+ }
32
+ render() {
33
+ return this.frame(html `
34
+ <div class="hero">
35
+ <div class="text">
36
+ ${this.renderHeader()}
37
+ ${this.animateIn(html `<div class="actions" ?hidden=${!this._hasActions}>
38
+ <slot
39
+ name="actions"
40
+ @slotchange=${(e) => (this._hasActions = e.target.assignedNodes().length > 0)}
41
+ ></slot>
42
+ </div>`, 150)}
43
+ ${this.animateIn(html `<slot @slotchange=${this._onItemsChange}></slot>`, 250)}
44
+ </div>
45
+ <div class="media" ?hidden=${!this._hasMedia}>
46
+ ${this.animateIn(html `<slot name="media" @slotchange=${this._onMediaChange}></slot>`, 200)}
47
+ </div>
48
+ </div>
49
+ `, { header: false, animated: false });
50
+ }
51
+ };
52
+ StHero.styles = [
53
+ ...StSection.styles,
54
+ css `
55
+ .hero {
56
+ display: grid;
57
+ gap: var(--st-spacing-2xl);
58
+ align-items: center;
59
+ }
60
+
61
+ :host([data-media]) .hero {
62
+ grid-template-columns: minmax(0, 1fr);
63
+ }
64
+
65
+ @media (min-width: 60rem) {
66
+ :host([data-media]) .hero {
67
+ grid-template-columns: repeat(2, minmax(0, 1fr));
68
+ }
69
+
70
+ :host([reverse]) .media {
71
+ order: -1;
72
+ }
73
+ }
74
+
75
+ .text {
76
+ display: grid;
77
+ justify-items: center;
78
+ gap: var(--st-spacing-lg);
79
+ }
80
+
81
+ :host([data-media]) .text {
82
+ justify-items: start;
83
+ }
84
+
85
+ :host([data-media]) .header {
86
+ margin-inline: 0;
87
+ text-align: start;
88
+ }
89
+
90
+ .header {
91
+ margin-bottom: 0;
92
+ }
93
+
94
+ ::slotted([slot="title"]) {
95
+ font-size: clamp(2rem, 5vw, 3.5rem) !important;
96
+ }
97
+
98
+ ::slotted([slot="lead"]) {
99
+ font-size: var(--st-font-size-xl);
100
+ }
101
+
102
+ .actions {
103
+ display: flex;
104
+ flex-wrap: wrap;
105
+ gap: var(--st-spacing-md);
106
+ justify-content: center;
107
+ }
108
+
109
+ :host([data-media]) .actions {
110
+ justify-content: flex-start;
111
+ }
112
+
113
+ .media ::slotted(*) {
114
+ width: 100%;
115
+ border-radius: var(--st-radius-lg);
116
+ }
117
+ `,
118
+ ];
119
+ __decorate([
120
+ property({ type: Boolean, reflect: true })
121
+ ], StHero.prototype, "reverse", void 0);
122
+ __decorate([
123
+ state()
124
+ ], StHero.prototype, "_hasMedia", void 0);
125
+ __decorate([
126
+ state()
127
+ ], StHero.prototype, "_hasActions", void 0);
128
+ StHero = __decorate([
129
+ customElement("st-hero")
130
+ ], StHero);
131
+ export { StHero };
132
+ //# sourceMappingURL=hero.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hero.js","sourceRoot":"","sources":["../../../src/components/hero/hero.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,IAAI,EAAE,GAAG,EAAC,MAAM,KAAK,CAAC;AAC9B,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAEhD;;;;;;;;GAQG;AAEI,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,SAAS;IAOnC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lEY,CAkEX;AA5EwC;IAAzC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;uCAAiB;AAEzC;IAAhB,KAAK,EAAE;yCAA2B;AAClB;IAAhB,KAAK,EAAE;2CAA6B;AAL1B,MAAM;IADlB,aAAa,CAAC,SAAS,CAAC;GACZ,MAAM,CA+GlB"}
@@ -202,6 +202,90 @@ export declare const iconPaths: {
202
202
  wrench: {
203
203
  classic: import("lit-html").TemplateResult<2>;
204
204
  };
205
+ x: {
206
+ classic: import("lit-html").TemplateResult<2>;
207
+ };
208
+ check: {
209
+ classic: import("lit-html").TemplateResult<2>;
210
+ };
211
+ search: {
212
+ classic: import("lit-html").TemplateResult<2>;
213
+ };
214
+ eye: {
215
+ classic: import("lit-html").TemplateResult<2>;
216
+ };
217
+ "eye-slash": {
218
+ classic: import("lit-html").TemplateResult<2>;
219
+ };
220
+ copy: {
221
+ classic: import("lit-html").TemplateResult<2>;
222
+ };
223
+ menu: {
224
+ classic: import("lit-html").TemplateResult<2>;
225
+ };
226
+ ellipsis: {
227
+ classic: import("lit-html").TemplateResult<2>;
228
+ };
229
+ filter: {
230
+ classic: import("lit-html").TemplateResult<2>;
231
+ };
232
+ "sort-up": {
233
+ classic: import("lit-html").TemplateResult<2>;
234
+ };
235
+ "sort-down": {
236
+ classic: import("lit-html").TemplateResult<2>;
237
+ };
238
+ sliders: {
239
+ classic: import("lit-html").TemplateResult<2>;
240
+ };
241
+ "calendar-clock": {
242
+ classic: import("lit-html").TemplateResult<2>;
243
+ };
244
+ user: {
245
+ classic: import("lit-html").TemplateResult<2>;
246
+ };
247
+ lock: {
248
+ classic: import("lit-html").TemplateResult<2>;
249
+ };
250
+ link: {
251
+ classic: import("lit-html").TemplateResult<2>;
252
+ };
253
+ "external-link": {
254
+ classic: import("lit-html").TemplateResult<2>;
255
+ };
256
+ bell: {
257
+ classic: import("lit-html").TemplateResult<2>;
258
+ };
259
+ server: {
260
+ classic: import("lit-html").TemplateResult<2>;
261
+ };
262
+ "hard-drive": {
263
+ classic: import("lit-html").TemplateResult<2>;
264
+ };
265
+ monitor: {
266
+ classic: import("lit-html").TemplateResult<2>;
267
+ };
268
+ loader: {
269
+ classic: import("lit-html").TemplateResult<2>;
270
+ };
271
+ cpu: {
272
+ classic: import("lit-html").TemplateResult<2>;
273
+ };
274
+ box: {
275
+ classic: import("lit-html").TemplateResult<2>;
276
+ };
277
+ minus: {
278
+ classic: import("lit-html").TemplateResult<2>;
279
+ };
280
+ table: {
281
+ classic: import("lit-html").TemplateResult<2>;
282
+ };
283
+ grid: {
284
+ classic: import("lit-html").TemplateResult<2>;
285
+ };
286
+ list: {
287
+ classic: import("lit-html").TemplateResult<2>;
288
+ };
205
289
  };
206
290
  export type IconName = keyof typeof iconPaths;
207
291
  //# sourceMappingURL=icon-paths.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-paths.d.ts","sourceRoot":"","sources":["../../../src/components/icon/icon-paths.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;IACpB,aAAa;QACX,OAAO;;IAET,aAAa;QACX,OAAO;;IAET,cAAc;QACZ,OAAO;;IAET,WAAW;QACT,OAAO;;IAET,YAAY;QACV,OAAO;;IAET,YAAY;QACV,OAAO;;IAET,aAAa;QACX,OAAO;;IAET,UAAU;QACR,OAAO;;IAET,YAAY;QACV,OAAO;;IAET,YAAY;QACV,OAAO;;IAET,aAAa;QACX,OAAO;;IAET,UAAU;QACR,OAAO;;IAET,YAAY;QACV,OAAO;;IAET,YAAY;QACV,OAAO;;IAET,aAAa;QACX,OAAO;;IAET,UAAU;QACR,OAAO;;IAET,cAAc;QACZ,OAAO;;IAET,cAAc;QACZ,OAAO;;IAET,eAAe;QACb,OAAO;;IAET,YAAY;QACV,OAAO;;IAET,UAAU;QACR,OAAO;;IAET,GAAK;QACH,OAAO;;IAET,QAAU;QACR,OAAO;;IAET,mBAAmB;QACjB,OAAO;;IAET,mBAAmB;QACjB,OAAO;;IAET,oBAAoB;QAClB,OAAO;;IAET,iBAAiB;QACf,OAAO;;IAET,cAAc;QACZ,OAAO;;IAET,cAAc;QACZ,OAAO;;IAET,aAAa;QACX,OAAO;;IAET,cAAc;QACZ,OAAO;;IAET,aAAa;QACX,OAAO;;IAET,gBAAgB;QACd,OAAO;;IAET,cAAc;QACZ,OAAO;;IAET,OAAS;QACP,OAAO;;IAET,OAAS;QACP,OAAO;;IAET,QAAU;QACR,OAAO;;IAET,QAAU;QACR,OAAO;;IAET,MAAQ;QACN,OAAO;;IAET,MAAQ;QACN,OAAO;;IAET,KAAO;QACL,OAAO;;IAET,KAAO;QACL,OAAO;;IAET,MAAQ;QACN,OAAO;;IAET,OAAS;QACP,OAAO;;IAET,MAAQ;QACN,OAAO;;IAET,cAAc;QACZ,OAAO;;IAET,aAAa;QACX,OAAO;;IAET,MAAQ;QACN,OAAO;;IAET,kBAAkB;QAChB,OAAO;QACP,KAAK;;IAEP,wBAAwB;QACtB,OAAO;QACP,KAAK;;IAEP,sBAAsB;QACpB,OAAO;QACP,KAAK;;IAEP,iBAAiB;QACf,OAAO;QACP,KAAK;;IAEP,qBAAqB;QACnB,OAAO;QACP,KAAK;;IAEP,IAAM;QACJ,OAAO;;IAET,OAAS;QACP,OAAO;;IAET,KAAO;QACL,OAAO;;IAET,MAAQ;QACN,OAAO;;IAET,IAAM;QACJ,OAAO;;IAET,cAAc;QACZ,OAAO;;IAET,QAAU;QACR,OAAO;;IAET,KAAO;QACL,OAAO;;IAET,WAAW;QACT,OAAO;;IAET,WAAW;QACT,OAAO;;IAET,sBAAsB;QACpB,OAAO;;IAET,YAAY;QACV,OAAO;;IAET,MAAQ;QACN,OAAO;;CAEV,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,SAAS,CAAC"}
1
+ {"version":3,"file":"icon-paths.d.ts","sourceRoot":"","sources":["../../../src/components/icon/icon-paths.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;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QACP,KAAK;;IAEP,iBAAiB;QACf,OAAO;QACP,KAAK;;IAEP,qBAAqB;QACnB,OAAO;QACP,KAAK;;IAEP,IAAM;QACJ,OAAO;;IAET,OAAS;QACP,OAAO;;IAET,KAAO;QACL,OAAO;;IAET,MAAQ;QACN,OAAO;;IAET,IAAM;QACJ,OAAO;;IAET,cAAc;QACZ,OAAO;;IAET,QAAU;QACR,OAAO;;IAET,KAAO;QACL,OAAO;;IAET,WAAW;QACT,OAAO;;IAET,WAAW;QACT,OAAO;;IAET,sBAAsB;QACpB,OAAO;;IAET,YAAY;QACV,OAAO;;IAET,MAAQ;QACN,OAAO;;IAET,CAAG;QACD,OAAO;;IAET,KAAO;QACL,OAAO;;IAET,MAAQ;QACN,OAAO;;IAET,GAAK;QACH,OAAO;;IAET,WAAW;QACT,OAAO;;IAET,IAAM;QACJ,OAAO;;IAET,IAAM;QACJ,OAAO;;IAET,QAAU;QACR,OAAO;;IAET,MAAQ;QACN,OAAO;;IAET,SAAS;QACP,OAAO;;IAET,WAAW;QACT,OAAO;;IAET,OAAS;QACP,OAAO;;IAET,gBAAgB;QACd,OAAO;;IAET,IAAM;QACJ,OAAO;;IAET,IAAM;QACJ,OAAO;;IAET,IAAM;QACJ,OAAO;;IAET,eAAe;QACb,OAAO;;IAET,IAAM;QACJ,OAAO;;IAET,MAAQ;QACN,OAAO;;IAET,YAAY;QACV,OAAO;;IAET,OAAS;QACP,OAAO;;IAET,MAAQ;QACN,OAAO;;IAET,GAAK;QACH,OAAO;;IAET,GAAK;QACH,OAAO;;IAET,KAAO;QACL,OAAO;;IAET,KAAO;QACL,OAAO;;IAET,IAAM;QACJ,OAAO;;IAET,IAAM;QACJ,OAAO;;CAEV,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,SAAS,CAAC"}
@@ -1,4 +1,9 @@
1
1
  import { svg } from "lit";
2
+ /**
3
+ * Stroke-based icon builder. The shared <st-icon> wrapper applies fill + stroke to every
4
+ * path, so line icons reset the fill and use a bold, round stroke on the 640 grid.
5
+ */
6
+ const line = (body) => svg `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><g fill="none" stroke="currentColor" stroke-width="48" stroke-linecap="round" stroke-linejoin="round">${body}</g></svg>`;
2
7
  export const iconPaths = {
3
8
  "angles-down": {
4
9
  classic: svg `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d="M342.6 534.6C330.1 547.1 309.8 547.1 297.3 534.6L137.3 374.6C124.8 362.1 124.8 341.8 137.3 329.3C149.8 316.8 170.1 316.8 182.6 329.3L320 466.7L457.4 329.4C469.9 316.9 490.2 316.9 502.7 329.4C515.2 341.9 515.2 362.2 502.7 374.7L342.7 534.7zM502.6 182.6L342.6 342.6C330.1 355.1 309.8 355.1 297.3 342.6L137.3 182.6C124.8 170.1 124.8 149.8 137.3 137.3C149.8 124.8 170.1 124.8 182.6 137.3L320 274.7L457.4 137.4C469.9 124.9 490.2 124.9 502.7 137.4C515.2 149.9 515.2 170.2 502.7 182.7z"/></svg>`
@@ -202,6 +207,90 @@ export const iconPaths = {
202
207
  },
203
208
  "wrench": {
204
209
  classic: svg `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d="M541.4 162.6C549 155 561.7 156.9 565.5 166.9C572.3 184.6 576 203.9 576 224C576 312.4 504.4 384 416 384C398.5 384 381.6 381.2 365.8 376L178.9 562.9C150.8 591 105.2 591 77.1 562.9C49 534.8 49 489.2 77.1 461.1L264 274.2C258.8 258.4 256 241.6 256 224C256 135.6 327.6 64 416 64C436.1 64 455.4 67.7 473.1 74.5C483.1 78.3 484.9 91 477.4 98.6L388.7 187.3C385.7 190.3 384 194.4 384 198.6L384 240C384 248.8 391.2 256 400 256L441.4 256C445.6 256 449.7 254.3 452.7 251.3L541.4 162.6z"/></svg>`
210
+ },
211
+ "x": {
212
+ classic: line(svg `<path d="M160 160L480 480M480 160L160 480"/>`)
213
+ },
214
+ "check": {
215
+ classic: line(svg `<path d="M128 336L256 464L512 192"/>`)
216
+ },
217
+ "search": {
218
+ classic: line(svg `<circle cx="280" cy="280" r="176"/><path d="M410 410L530 530"/>`)
219
+ },
220
+ "eye": {
221
+ classic: line(svg `<path d="M64 320C128 200 220 144 320 144C420 144 512 200 576 320C512 440 420 496 320 496C220 496 128 440 64 320Z"/><circle cx="320" cy="320" r="72"/>`)
222
+ },
223
+ "eye-slash": {
224
+ classic: line(svg `<path d="M64 320C128 200 220 144 320 144C420 144 512 200 576 320C512 440 420 496 320 496C220 496 128 440 64 320Z"/><circle cx="320" cy="320" r="72"/><path d="M120 120L520 520"/>`)
225
+ },
226
+ "copy": {
227
+ classic: line(svg `<rect x="216" y="216" width="320" height="320" rx="48"/><path d="M424 216V152A48 48 0 0 0 376 104H152A48 48 0 0 0 104 152V376A48 48 0 0 0 152 424H216"/>`)
228
+ },
229
+ "menu": {
230
+ classic: line(svg `<path d="M112 176H528M112 320H528M112 464H528"/>`)
231
+ },
232
+ "ellipsis": {
233
+ classic: line(svg `<path d="M144 320h.01M320 320h.01M496 320h.01"/>`)
234
+ },
235
+ "filter": {
236
+ classic: line(svg `<path d="M96 128H544L360 336V496L280 544V336Z"/>`)
237
+ },
238
+ "sort-up": {
239
+ classic: line(svg `<path d="M152 512V128M72 208L152 128L232 208M312 160H408M312 288H472M312 416H536"/>`)
240
+ },
241
+ "sort-down": {
242
+ classic: line(svg `<path d="M152 128V512M72 432L152 512L232 432M312 160H536M312 288H472M312 416H408"/>`)
243
+ },
244
+ "sliders": {
245
+ classic: line(svg `<path d="M96 160H544M96 320H544M96 480H544"/><circle cx="224" cy="160" r="48"/><circle cx="416" cy="320" r="48"/><circle cx="288" cy="480" r="48"/>`)
246
+ },
247
+ "calendar-clock": {
248
+ classic: line(svg `<rect x="80" y="112" width="400" height="400" rx="48"/><path d="M80 240H480M184 64V160M376 64V160"/><circle cx="480" cy="456" r="104"/><path d="M480 408V456L512 480"/>`)
249
+ },
250
+ "user": {
251
+ classic: line(svg `<circle cx="320" cy="208" r="96"/><path d="M112 544C112 430 204 352 320 352C436 352 528 430 528 544"/>`)
252
+ },
253
+ "lock": {
254
+ classic: line(svg `<rect x="128" y="288" width="384" height="256" rx="48"/><path d="M208 288V208A112 112 0 0 1 432 208V288M320 400V448"/>`)
255
+ },
256
+ "link": {
257
+ classic: line(svg `<path d="M272 368A96 96 0 0 0 408 368L520 256A96 96 0 0 0 384 120L352 152M368 272A96 96 0 0 0 232 272L120 384A96 96 0 0 0 256 520L288 488"/>`)
258
+ },
259
+ "external-link": {
260
+ classic: line(svg `<path d="M320 128H176A48 48 0 0 0 128 176V464A48 48 0 0 0 176 512H464A48 48 0 0 0 512 464V320M384 96H544V256M544 96L288 352"/>`)
261
+ },
262
+ "bell": {
263
+ classic: line(svg `<path d="M160 448H480C432 400 432 336 432 272A112 112 0 0 0 208 272C208 336 208 400 160 448ZM276 512A48 48 0 0 0 364 512"/>`)
264
+ },
265
+ "server": {
266
+ classic: line(svg `<rect x="96" y="96" width="448" height="176" rx="40"/><rect x="96" y="368" width="448" height="176" rx="40"/><path d="M192 184h.01M192 456h.01"/>`)
267
+ },
268
+ "hard-drive": {
269
+ classic: line(svg `<path d="M96 352L168 160H472L544 352V448A32 32 0 0 1 512 480H128A32 32 0 0 1 96 448ZM96 352H544M456 416h.01"/>`)
270
+ },
271
+ "monitor": {
272
+ classic: line(svg `<rect x="64" y="96" width="512" height="340" rx="40"/><path d="M320 436V540M200 544H440"/>`)
273
+ },
274
+ "loader": {
275
+ classic: line(svg `<path d="M320 96V176M320 464V544M96 320H176M464 320H544M161 161L218 218M422 422L479 479M161 479L218 422M422 218L479 161"/>`)
276
+ },
277
+ "cpu": {
278
+ classic: line(svg `<rect x="160" y="160" width="320" height="320" rx="32"/><rect x="256" y="256" width="128" height="128"/><path d="M256 64V160M384 64V160M256 480V576M384 480V576M64 256H160M64 384H160M480 256H576M480 384H576"/>`)
279
+ },
280
+ "box": {
281
+ classic: line(svg `<path d="M320 64L544 176V400L320 512L96 400V176ZM96 176L320 288L544 176M320 288V512"/>`)
282
+ },
283
+ "minus": {
284
+ classic: line(svg `<path d="M128 320H512"/>`)
285
+ },
286
+ "table": {
287
+ classic: line(svg `<rect x="80" y="112" width="480" height="416" rx="40"/><path d="M80 232H560M80 352H560M240 232V528"/>`)
288
+ },
289
+ "grid": {
290
+ classic: line(svg `<rect x="96" y="96" width="176" height="176" rx="32"/><rect x="368" y="96" width="176" height="176" rx="32"/><rect x="96" y="368" width="176" height="176" rx="32"/><rect x="368" y="368" width="176" height="176" rx="32"/>`)
291
+ },
292
+ "list": {
293
+ classic: line(svg `<path d="M112 160h.01M112 320h.01M112 480h.01M232 160H544M232 320H544M232 480H544"/>`)
205
294
  }
206
295
  };
207
296
  //# sourceMappingURL=icon-paths.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-paths.js","sourceRoot":"","sources":["../../../src/components/icon/icon-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,aAAa,EAAE;QACb,OAAO,EAAE,GAAG,CAAA,wsBAAwsB;KACrtB;IACD,aAAa,EAAE;QACb,OAAO,EAAE,GAAG,CAAA,ssBAAssB;KACntB;IACD,cAAc,EAAE;QACd,OAAO,EAAE,GAAG,CAAA,wsBAAwsB;KACrtB;IACD,WAAW,EAAE;QACX,OAAO,EAAE,GAAG,CAAA,ssBAAssB;KACntB;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,GAAG,CAAA,ydAAyd;KACte;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,GAAG,CAAA,udAAud;KACpe;IACD,aAAa,EAAE;QACb,OAAO,E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q8B;KACl9B;IACD,WAAW,EAAE;QACX,OAAO,EAAE,GAAG,CAAA,ycAAyc;KACtd;IACD,sBAAsB,EAAE;QACtB,OAAO,EAAE,GAAG,CAAA,iuBAAiuB;KAC9uB;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,GAAG,CAAA,4wBAA4wB;KACzxB;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,GAAG,CAAA,isBAAisB;KAC9sB;CACF,CAAC"}
1
+ {"version":3,"file":"icon-paths.js","sourceRoot":"","sources":["../../../src/components/icon/icon-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAyB,MAAM,KAAK,CAAC;AAEhD;;;GAGG;AACH,MAAM,IAAI,GAAG,CAAC,IAAuB,EAAE,EAAE,CACvC,GAAG,CAAA,uKAAuK,IAAI,YAAY,CAAC;AAE7L,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,aAAa,EAAE;QACb,OAAO,EAAE,GAAG,CAAA,wsBAAwsB;KACrtB;IACD,aAAa,EAAE;QACb,OAAO,EAAE,GAAG,CAAA,ssBAAssB;KACntB;IACD,cAAc,EAAE;QACd,OAAO,EAAE,GAAG,CAAA,wsBAAwsB;KACrtB;IACD,WAAW,EAAE;QACX,OAAO,EAAE,GAAG,CAAA,ssBAAssB;KACntB;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,GAAG,CAAA,ydAAyd;KACte;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,GAAG,CAAA,udAAud;KACpe;IACD,aAAa,EAAE;QACb,OAAO,EAAE,GAAG,CAAA,udAAud;KACpe;IACD,UAAU,EAAE;QACV,OAAO,EAAE,GAAG,CAAA,ydAAyd;KACte;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,GAAG,CAAA,4hBAA4hB;KACziB;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,GAAG,CAAA,8hBAA8hB;KAC3iB;IACD,aAAa,EAAE;QACb,OAAO,EAAE,GAAG,CAAA,4hBAA4hB;K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,CAAA,8IAA8I,CAAC;KACjK;IACD,eAAe,EAAE;QACf,OAAO,EAAE,IAAI,CAAC,GAAG,CAAA,gIAAgI,CAAC;KACnJ;IACD,MAAM,EAAE;QACN,OAAO,EAAE,IAAI,CAAC,GAAG,CAAA,6HAA6H,CAAC;KAChJ;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,IAAI,CAAC,GAAG,CAAA,mJAAmJ,CAAC;KACtK;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,IAAI,CAAC,GAAG,CAAA,gHAAgH,CAAC;KACnI;IACD,SAAS,EAAE;QACT,OAAO,EAAE,IAAI,CAAC,GAAG,CAAA,4FAA4F,CAAC;KAC/G;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,IAAI,CAAC,GAAG,CAAA,4HAA4H,CAAC;KAC/I;IACD,KAAK,EAAE;QACL,OAAO,EAAE,IAAI,CAAC,GAAG,CAAA,kNAAkN,CAAC;KACrO;IACD,KAAK,EAAE;QACL,OAAO,EAAE,IAAI,CAAC,GAAG,CAAA,wFAAwF,CAAC;KAC3G;IACD,OAAO,EAAE;QACP,OAAO,EAAE,IAAI,CAAC,GAAG,CAAA,0BAA0B,CAAC;KAC7C;IACD,OAAO,EAAE;QACP,OAAO,EAAE,IAAI,CAAC,GAAG,CAAA,uGAAuG,CAAC;KAC1H;IACD,MAAM,EAAE;QACN,OAAO,EAAE,IAAI,CAAC,GAAG,CAAA,8NAA8N,CAAC;KACjP;IACD,MAAM,EAAE;QACN,OAAO,EAAE,IAAI,CAAC,GAAG,CAAA,sFAAsF,CAAC;KACzG;CACF,CAAC"}
@@ -4,6 +4,8 @@ export type IconVariant = 'classic' | 'thin';
4
4
  export declare class StIcon extends LitElement {
5
5
  name: IconName | string;
6
6
  variant: IconVariant;
7
+ /** Accessible name. When omitted the icon is decorative and hidden from assistive tech. */
8
+ label: string;
7
9
  color: 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
8
10
  size: 'sm' | 'md' | 'lg' | 'xl';
9
11
  static styles: import("lit").CSSResult[];
@@ -1 +1 @@
1
- {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/components/icon/icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAE5C,OAAO,EAAa,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGtD,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC;AAE7C,qBACa,MAAO,SAAQ,UAAU;IACR,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAM;IAC7B,OAAO,EAAE,WAAW,CAAa;IAGlB,KAAK,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAa;IAGlG,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAQ;IAElF,MAAM,CAAC,MAAM,4BAsCX;IAEF,MAAM,yCAmBL;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/components/icon/icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,OAAO,EAAa,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGtD,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC;AAE7C,qBACa,MAAO,SAAQ,UAAU;IACR,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAM;IAC7B,OAAO,EAAE,WAAW,CAAa;IAE7D,2FAA2F;IAC/D,KAAK,SAAM;IAGI,KAAK,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAa;IAGlG,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAQ;IAElF,MAAM,CAAC,MAAM,4BAsCX;IAEF,MAAM,yCAsBL;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
@@ -5,6 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
7
  import { LitElement, html, css } from 'lit';
8
+ import { ifDefined } from 'lit/directives/if-defined.js';
8
9
  import { customElement, property } from 'lit/decorators.js';
9
10
  import { iconPaths } from './icon-paths.js';
10
11
  import { resetStyles } from '../../styles/reset.js';
@@ -13,6 +14,8 @@ let StIcon = class StIcon extends LitElement {
13
14
  super(...arguments);
14
15
  this.name = '';
15
16
  this.variant = 'classic';
17
+ /** Accessible name. When omitted the icon is decorative and hidden from assistive tech. */
18
+ this.label = '';
16
19
  // Semantic Colors
17
20
  this.color = 'default';
18
21
  // Standardized T-Shirt Sizes
@@ -25,7 +28,10 @@ let StIcon = class StIcon extends LitElement {
25
28
  const pathData = iconData[this.variant] || iconData.classic;
26
29
  return html `
27
30
  <svg
28
- viewBox="0 0 24 24"
31
+ viewBox="0 0 24 24"
32
+ role=${this.label ? 'img' : 'presentation'}
33
+ aria-label=${ifDefined(this.label || undefined)}
34
+ aria-hidden=${this.label ? 'false' : 'true'}
29
35
  xmlns="http://www.w3.org/2000/svg"
30
36
  fill="currentColor"
31
37
  stroke="currentColor"
@@ -83,6 +89,9 @@ __decorate([
83
89
  __decorate([
84
90
  property({ type: String })
85
91
  ], StIcon.prototype, "variant", void 0);
92
+ __decorate([
93
+ property({ type: String })
94
+ ], StIcon.prototype, "label", void 0);
86
95
  __decorate([
87
96
  property({ type: String, reflect: true })
88
97
  ], StIcon.prototype, "color", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"icon.js","sourceRoot":"","sources":["../../../src/components/icon/icon.ts"],"names":[],"mappings":";;;;;;AA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AC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM;;;;wBAI3B,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG;;;;UAIpD,QAAQ;;KAEb,CAAC;IACJ,CAAC;CACF,CAAA;AA/DQ,aAAM,GAAG;IACd,WAAW;IACX,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAmCF;CACF,AAtCY,CAsCX;AAlD0B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;oCAA8B;AAC7B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uCAAkC;AAGjC;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qCAAY;AAGI;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qCAAmG;AAGlG;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;oCAAwC;AAXvE,MAAM;IADlB,aAAa,CAAC,SAAS,CAAC;GACZ,MAAM,CA4ElB"}
@@ -0,0 +1,31 @@
1
+ import { LitElement } from "lit";
2
+ /**
3
+ * A responsive image frame. Slot a normal `<img>` (or `<picture>`) so the alt text, `srcset`
4
+ * and `sizes` stay in your markup for search engines and screen readers. The frame reserves the
5
+ * space with `ratio` so the page never jumps, lazy loads the image, and fades it in.
6
+ *
7
+ * Slots: default (the `<img>` or `<picture>`) and `caption`.
8
+ * Mark the first image on the page (the one visitors see immediately) with `priority`.
9
+ */
10
+ export declare class StImage extends LitElement {
11
+ /** Width / height of the frame, such as "16/9" or "1". Leave empty to use the image's own shape. */
12
+ ratio: string;
13
+ fit: "cover" | "contain";
14
+ /** Shown while the image loads: a CSS colour, or a tiny image URL that is drawn blurred. */
15
+ placeholder: string;
16
+ /** Loads straight away at high priority. Use it for the main image above the fold. */
17
+ priority: boolean;
18
+ private _hasCaption;
19
+ private _image?;
20
+ static styles: import("lit").CSSResult[];
21
+ protected updated(): void;
22
+ private _onSlotChange;
23
+ private _applyToImage;
24
+ render(): import("lit-html").TemplateResult<1>;
25
+ }
26
+ declare global {
27
+ interface HTMLElementTagNameMap {
28
+ "st-image": StImage;
29
+ }
30
+ }
31
+ //# sourceMappingURL=image.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/components/image/image.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAqB,MAAM,KAAK,CAAC;AAQnD;;;;;;;GAOG;AACH,qBACa,OAAQ,SAAQ,UAAU;IACrC,oGAAoG;IAC1E,KAAK,SAAM;IACI,GAAG,EAAE,OAAO,GAAG,SAAS,CAAW;IAC5E,4FAA4F;IAClE,WAAW,SAAM;IAC3C,sFAAsF;IAC3D,QAAQ,UAAS;IAEnC,OAAO,CAAC,WAAW,CAAS;IAErC,OAAO,CAAC,MAAM,CAAC,CAAmB;IAElC,MAAM,CAAC,MAAM,4BA+DX;IAEF,SAAS,CAAC,OAAO,SAShB;IAED,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,aAAa;IAyBrB,MAAM,yCAkBL;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
@@ -0,0 +1,179 @@
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 { styleMap } from "lit/directives/style-map.js";
10
+ import { resetStyles } from "../../styles/reset.js";
11
+ /** Anything that looks like a URL is drawn as a blurred image, anything else as a plain colour. */
12
+ const isUrl = (value) => /^(data:|https?:|\/|\.)/.test(value);
13
+ /**
14
+ * A responsive image frame. Slot a normal `<img>` (or `<picture>`) so the alt text, `srcset`
15
+ * and `sizes` stay in your markup for search engines and screen readers. The frame reserves the
16
+ * space with `ratio` so the page never jumps, lazy loads the image, and fades it in.
17
+ *
18
+ * Slots: default (the `<img>` or `<picture>`) and `caption`.
19
+ * Mark the first image on the page (the one visitors see immediately) with `priority`.
20
+ */
21
+ let StImage = class StImage extends LitElement {
22
+ constructor() {
23
+ super(...arguments);
24
+ /** Width / height of the frame, such as "16/9" or "1". Leave empty to use the image's own shape. */
25
+ this.ratio = "";
26
+ this.fit = "cover";
27
+ /** Shown while the image loads: a CSS colour, or a tiny image URL that is drawn blurred. */
28
+ this.placeholder = "";
29
+ /** Loads straight away at high priority. Use it for the main image above the fold. */
30
+ this.priority = false;
31
+ this._hasCaption = false;
32
+ }
33
+ updated() {
34
+ if (this.ratio)
35
+ this.style.setProperty("--_ratio", this.ratio);
36
+ else
37
+ this.style.removeProperty("--_ratio");
38
+ const colour = this.placeholder && !isUrl(this.placeholder) ? this.placeholder : "";
39
+ if (colour)
40
+ this.style.setProperty("--_placeholder-color", colour);
41
+ else
42
+ this.style.removeProperty("--_placeholder-color");
43
+ this._applyToImage();
44
+ }
45
+ _onSlotChange(e) {
46
+ const slotted = e.target.assignedElements();
47
+ const wrapper = slotted.find((el) => el.tagName === "IMG" || el.tagName === "PICTURE");
48
+ const img = wrapper instanceof HTMLImageElement ? wrapper : wrapper?.querySelector("img");
49
+ this._image = img ?? undefined;
50
+ this._applyToImage();
51
+ }
52
+ _applyToImage() {
53
+ const img = this._image;
54
+ if (!img)
55
+ return;
56
+ // Authors can still override either attribute on their own <img>.
57
+ if (!img.hasAttribute("decoding"))
58
+ img.decoding = "async";
59
+ if (!img.hasAttribute("loading"))
60
+ img.loading = this.priority ? "eager" : "lazy";
61
+ if (this.priority && !img.hasAttribute("fetchpriority"))
62
+ img.setAttribute("fetchpriority", "high");
63
+ // Fill the frame whatever the image's own dimensions are (only when a ratio is set).
64
+ img.style.objectFit = this.fit;
65
+ if (this.ratio) {
66
+ img.style.height = "100%";
67
+ }
68
+ if (img.complete) {
69
+ this.removeAttribute("data-pending");
70
+ return;
71
+ }
72
+ this.setAttribute("data-pending", "");
73
+ const done = () => this.removeAttribute("data-pending");
74
+ img.addEventListener("load", done, { once: true });
75
+ img.addEventListener("error", done, { once: true });
76
+ }
77
+ render() {
78
+ return html `
79
+ <figure>
80
+ <div class="frame">
81
+ ${this.placeholder && isUrl(this.placeholder)
82
+ ? html `<div class="blur" style=${styleMap({ backgroundImage: `url(${JSON.stringify(this.placeholder)})` })}></div>`
83
+ : nothing}
84
+ <slot @slotchange=${this._onSlotChange}></slot>
85
+ </div>
86
+ <figcaption ?hidden=${!this._hasCaption}>
87
+ <slot
88
+ name="caption"
89
+ @slotchange=${(e) => (this._hasCaption = e.target.assignedNodes().length > 0)}
90
+ ></slot>
91
+ </figcaption>
92
+ </figure>
93
+ `;
94
+ }
95
+ };
96
+ StImage.styles = [
97
+ resetStyles,
98
+ css `
99
+ :host {
100
+ display: block;
101
+ }
102
+
103
+ figure {
104
+ display: grid;
105
+ gap: var(--st-spacing-sm);
106
+ }
107
+
108
+ .frame {
109
+ position: relative;
110
+ overflow: hidden;
111
+ aspect-ratio: var(--_ratio, auto);
112
+ background-color: var(--_placeholder-color, var(--st-color-surface));
113
+ border-radius: var(--st-image-radius, var(--st-radius-md));
114
+ }
115
+
116
+ .blur {
117
+ position: absolute;
118
+ inset: 0;
119
+ background-size: cover;
120
+ background-position: center;
121
+ filter: blur(1.25rem);
122
+ transform: scale(1.15);
123
+ }
124
+
125
+ slot:not([name]) {
126
+ display: block;
127
+ height: 100%;
128
+ }
129
+
130
+ ::slotted(picture) {
131
+ display: block;
132
+ height: 100%;
133
+ }
134
+
135
+ ::slotted(img),
136
+ ::slotted(picture) {
137
+ position: relative;
138
+ width: 100%;
139
+ transition: opacity 0.4s ease;
140
+ }
141
+
142
+ :host([data-pending]) ::slotted(img),
143
+ :host([data-pending]) ::slotted(picture) {
144
+ opacity: 0;
145
+ }
146
+
147
+ figcaption {
148
+ color: var(--st-color-text-muted);
149
+ font-size: var(--st-font-size-sm);
150
+ }
151
+
152
+ @media (prefers-reduced-motion: reduce) {
153
+ ::slotted(img),
154
+ ::slotted(picture) {
155
+ transition: none;
156
+ }
157
+ }
158
+ `,
159
+ ];
160
+ __decorate([
161
+ property({ type: String })
162
+ ], StImage.prototype, "ratio", void 0);
163
+ __decorate([
164
+ property({ type: String, reflect: true })
165
+ ], StImage.prototype, "fit", void 0);
166
+ __decorate([
167
+ property({ type: String })
168
+ ], StImage.prototype, "placeholder", void 0);
169
+ __decorate([
170
+ property({ type: Boolean })
171
+ ], StImage.prototype, "priority", void 0);
172
+ __decorate([
173
+ state()
174
+ ], StImage.prototype, "_hasCaption", void 0);
175
+ StImage = __decorate([
176
+ customElement("st-image")
177
+ ], StImage);
178
+ export { StImage };
179
+ //# sourceMappingURL=image.js.map