@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.
- package/dist/components/accordion/accordion.constants.d.ts +5 -0
- package/dist/components/accordion/accordion.constants.d.ts.map +1 -0
- package/dist/components/accordion/accordion.constants.js +3 -0
- package/dist/components/accordion/accordion.constants.js.map +1 -0
- package/dist/components/accordion/accordion.d.ts +29 -0
- package/dist/components/accordion/accordion.d.ts.map +1 -0
- package/dist/components/accordion/accordion.js +226 -0
- package/dist/components/accordion/accordion.js.map +1 -0
- package/dist/components/alert/alert.constants.d.ts +2 -0
- package/dist/components/alert/alert.constants.d.ts.map +1 -1
- package/dist/components/alert/alert.d.ts +50 -2
- package/dist/components/alert/alert.d.ts.map +1 -1
- package/dist/components/alert/alert.js +285 -16
- package/dist/components/alert/alert.js.map +1 -1
- package/dist/components/avatar/avatar.d.ts +20 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/avatar/avatar.js +100 -0
- package/dist/components/avatar/avatar.js.map +1 -0
- package/dist/components/back-to-top/back-to-top.d.ts +29 -0
- package/dist/components/back-to-top/back-to-top.d.ts.map +1 -0
- package/dist/components/back-to-top/back-to-top.js +149 -0
- package/dist/components/back-to-top/back-to-top.js.map +1 -0
- package/dist/components/bar-chart/bar-chart.d.ts +42 -0
- package/dist/components/bar-chart/bar-chart.d.ts.map +1 -0
- package/dist/components/bar-chart/bar-chart.js +298 -0
- package/dist/components/bar-chart/bar-chart.js.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.js +2 -2
- package/dist/components/button/button.d.ts +1 -0
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/button.js +8 -8
- package/dist/components/button/button.js.map +1 -1
- package/dist/components/button-group/button-group.js +4 -4
- package/dist/components/calendar/calendar.d.ts.map +1 -1
- package/dist/components/calendar/calendar.js +11 -9
- package/dist/components/calendar/calendar.js.map +1 -1
- package/dist/components/chart/chart-base.d.ts +59 -0
- package/dist/components/chart/chart-base.d.ts.map +1 -0
- package/dist/components/chart/chart-base.js +261 -0
- package/dist/components/chart/chart-base.js.map +1 -0
- package/dist/components/chart/chart.utils.d.ts +27 -0
- package/dist/components/chart/chart.utils.d.ts.map +1 -0
- package/dist/components/chart/chart.utils.js +117 -0
- package/dist/components/chart/chart.utils.js.map +1 -0
- package/dist/components/code-block/code-block.d.ts +5 -0
- package/dist/components/code-block/code-block.d.ts.map +1 -1
- package/dist/components/code-block/code-block.js +34 -24
- package/dist/components/code-block/code-block.js.map +1 -1
- package/dist/components/consent/consent.d.ts +63 -0
- package/dist/components/consent/consent.d.ts.map +1 -0
- package/dist/components/consent/consent.js +327 -0
- package/dist/components/consent/consent.js.map +1 -0
- package/dist/components/consent/consent.utils.d.ts +36 -0
- package/dist/components/consent/consent.utils.d.ts.map +1 -0
- package/dist/components/consent/consent.utils.js +82 -0
- package/dist/components/consent/consent.utils.js.map +1 -0
- package/dist/components/contact/contact.d.ts +22 -0
- package/dist/components/contact/contact.d.ts.map +1 -0
- package/dist/components/contact/contact.js +83 -0
- package/dist/components/contact/contact.js.map +1 -0
- package/dist/components/container/container.d.ts +20 -0
- package/dist/components/container/container.d.ts.map +1 -0
- package/dist/components/container/container.js +68 -0
- package/dist/components/container/container.js.map +1 -0
- package/dist/components/content-card/content-card.js +4 -4
- package/dist/components/context-menu/context-menu.d.ts +89 -0
- package/dist/components/context-menu/context-menu.d.ts.map +1 -0
- package/dist/components/context-menu/context-menu.js +414 -0
- package/dist/components/context-menu/context-menu.js.map +1 -0
- package/dist/components/cron-builder/cron-builder.d.ts.map +1 -1
- package/dist/components/cron-builder/cron-builder.js +13 -11
- package/dist/components/cron-builder/cron-builder.js.map +1 -1
- package/dist/components/cta/cta.d.ts +20 -0
- package/dist/components/cta/cta.d.ts.map +1 -0
- package/dist/components/cta/cta.js +64 -0
- package/dist/components/cta/cta.js.map +1 -0
- package/dist/components/drawer/drawer.js +6 -6
- package/dist/components/faq/faq-item.d.ts +22 -0
- package/dist/components/faq/faq-item.d.ts.map +1 -0
- package/dist/components/faq/faq-item.js +117 -0
- package/dist/components/faq/faq-item.js.map +1 -0
- package/dist/components/faq/faq.d.ts +18 -0
- package/dist/components/faq/faq.d.ts.map +1 -0
- package/dist/components/faq/faq.js +38 -0
- package/dist/components/faq/faq.js.map +1 -0
- package/dist/components/feature-grid/feature-grid.d.ts +22 -0
- package/dist/components/feature-grid/feature-grid.d.ts.map +1 -0
- package/dist/components/feature-grid/feature-grid.js +55 -0
- package/dist/components/feature-grid/feature-grid.js.map +1 -0
- package/dist/components/feature-grid/feature.d.ts +18 -0
- package/dist/components/feature-grid/feature.d.ts.map +1 -0
- package/dist/components/feature-grid/feature.js +91 -0
- package/dist/components/feature-grid/feature.js.map +1 -0
- package/dist/components/field/field.js +2 -2
- package/dist/components/footer/footer.js +4 -4
- package/dist/components/form/form-reset.d.ts +7 -0
- package/dist/components/form/form-reset.d.ts.map +1 -0
- package/dist/components/form/form-reset.js +47 -0
- package/dist/components/form/form-reset.js.map +1 -0
- package/dist/components/form/form.d.ts +5 -0
- package/dist/components/form/form.d.ts.map +1 -1
- package/dist/components/form/form.js +17 -3
- package/dist/components/form/form.js.map +1 -1
- package/dist/components/grid/grid.d.ts +5 -0
- package/dist/components/grid/grid.d.ts.map +1 -1
- package/dist/components/grid/grid.js +86 -4
- package/dist/components/grid/grid.js.map +1 -1
- package/dist/components/heat-map/heat-map.d.ts +39 -0
- package/dist/components/heat-map/heat-map.d.ts.map +1 -0
- package/dist/components/heat-map/heat-map.js +306 -0
- package/dist/components/heat-map/heat-map.js.map +1 -0
- package/dist/components/hero/hero.d.ts +26 -0
- package/dist/components/hero/hero.d.ts.map +1 -0
- package/dist/components/hero/hero.js +132 -0
- package/dist/components/hero/hero.js.map +1 -0
- package/dist/components/icon/icon-paths.d.ts +84 -0
- package/dist/components/icon/icon-paths.d.ts.map +1 -1
- package/dist/components/icon/icon-paths.js +89 -0
- package/dist/components/icon/icon-paths.js.map +1 -1
- package/dist/components/icon/icon.d.ts +2 -0
- package/dist/components/icon/icon.d.ts.map +1 -1
- package/dist/components/icon/icon.js +10 -1
- package/dist/components/icon/icon.js.map +1 -1
- package/dist/components/image/image.d.ts +31 -0
- package/dist/components/image/image.d.ts.map +1 -0
- package/dist/components/image/image.js +179 -0
- package/dist/components/image/image.js.map +1 -0
- package/dist/components/input/input.js +4 -4
- package/dist/components/lazy/lazy.d.ts +34 -0
- package/dist/components/lazy/lazy.d.ts.map +1 -0
- package/dist/components/lazy/lazy.js +104 -0
- package/dist/components/lazy/lazy.js.map +1 -0
- package/dist/components/line-chart/line-chart.d.ts +37 -0
- package/dist/components/line-chart/line-chart.d.ts.map +1 -0
- package/dist/components/line-chart/line-chart.js +271 -0
- package/dist/components/line-chart/line-chart.js.map +1 -0
- package/dist/components/list/list-item.d.ts +45 -0
- package/dist/components/list/list-item.d.ts.map +1 -0
- package/dist/components/list/list-item.js +263 -0
- package/dist/components/list/list-item.js.map +1 -0
- package/dist/components/list/list.d.ts +50 -0
- package/dist/components/list/list.d.ts.map +1 -0
- package/dist/components/list/list.js +161 -0
- package/dist/components/list/list.js.map +1 -0
- package/dist/components/logo-cloud/logo-cloud.d.ts +19 -0
- package/dist/components/logo-cloud/logo-cloud.d.ts.map +1 -0
- package/dist/components/logo-cloud/logo-cloud.js +66 -0
- package/dist/components/logo-cloud/logo-cloud.js.map +1 -0
- package/dist/components/modal/modal.d.ts +12 -0
- package/dist/components/modal/modal.d.ts.map +1 -1
- package/dist/components/modal/modal.js +40 -11
- package/dist/components/modal/modal.js.map +1 -1
- package/dist/components/page-layout/page-layout.js +8 -8
- package/dist/components/pagination/pagination.d.ts +15 -0
- package/dist/components/pagination/pagination.d.ts.map +1 -0
- package/dist/components/pagination/pagination.js +126 -0
- package/dist/components/pagination/pagination.js.map +1 -0
- package/dist/components/pagination/pagination.utils.d.ts +3 -0
- package/dist/components/pagination/pagination.utils.d.ts.map +1 -0
- package/dist/components/pagination/pagination.utils.js +19 -0
- package/dist/components/pagination/pagination.utils.js.map +1 -0
- package/dist/components/pie-chart/pie-chart.d.ts +33 -0
- package/dist/components/pie-chart/pie-chart.d.ts.map +1 -0
- package/dist/components/pie-chart/pie-chart.js +233 -0
- package/dist/components/pie-chart/pie-chart.js.map +1 -0
- package/dist/components/pin-input/pin-input.js +4 -4
- package/dist/components/popover/popover.d.ts.map +1 -1
- package/dist/components/popover/popover.js +1 -3
- package/dist/components/popover/popover.js.map +1 -1
- package/dist/components/post-list/post-card.d.ts +16 -0
- package/dist/components/post-list/post-card.d.ts.map +1 -0
- package/dist/components/post-list/post-card.js +22 -0
- package/dist/components/post-list/post-card.js.map +1 -0
- package/dist/components/post-list/post-list.d.ts +17 -0
- package/dist/components/post-list/post-list.d.ts.map +1 -0
- package/dist/components/post-list/post-list.js +23 -0
- package/dist/components/post-list/post-list.js.map +1 -0
- package/dist/components/pricing/pricing-tier.d.ts +23 -0
- package/dist/components/pricing/pricing-tier.d.ts.map +1 -0
- package/dist/components/pricing/pricing-tier.js +144 -0
- package/dist/components/pricing/pricing-tier.js.map +1 -0
- package/dist/components/pricing/pricing.d.ts +18 -0
- package/dist/components/pricing/pricing.d.ts.map +1 -0
- package/dist/components/pricing/pricing.js +38 -0
- package/dist/components/pricing/pricing.js.map +1 -0
- package/dist/components/progress/progress.d.ts +17 -0
- package/dist/components/progress/progress.d.ts.map +1 -0
- package/dist/components/progress/progress.js +109 -0
- package/dist/components/progress/progress.js.map +1 -0
- package/dist/components/project-grid/project-card.d.ts +17 -0
- package/dist/components/project-grid/project-card.d.ts.map +1 -0
- package/dist/components/project-grid/project-card.js +23 -0
- package/dist/components/project-grid/project-card.js.map +1 -0
- package/dist/components/project-grid/project-grid.d.ts +17 -0
- package/dist/components/project-grid/project-grid.d.ts.map +1 -0
- package/dist/components/project-grid/project-grid.js +23 -0
- package/dist/components/project-grid/project-grid.js.map +1 -0
- package/dist/components/radio/radio.js +1 -1
- package/dist/components/reveal/reveal.constants.d.ts +10 -0
- package/dist/components/reveal/reveal.constants.d.ts.map +1 -0
- package/dist/components/reveal/reveal.constants.js +11 -0
- package/dist/components/reveal/reveal.constants.js.map +1 -0
- package/dist/components/reveal/reveal.d.ts +64 -0
- package/dist/components/reveal/reveal.d.ts.map +1 -0
- package/dist/components/reveal/reveal.js +352 -0
- package/dist/components/reveal/reveal.js.map +1 -0
- package/dist/components/scroll-progress/scroll-progress.d.ts +32 -0
- package/dist/components/scroll-progress/scroll-progress.d.ts.map +1 -0
- package/dist/components/scroll-progress/scroll-progress.js +120 -0
- package/dist/components/scroll-progress/scroll-progress.js.map +1 -0
- package/dist/components/section/card-row.d.ts +30 -0
- package/dist/components/section/card-row.d.ts.map +1 -0
- package/dist/components/section/card-row.js +174 -0
- package/dist/components/section/card-row.js.map +1 -0
- package/dist/components/section/card.d.ts +27 -0
- package/dist/components/section/card.d.ts.map +1 -0
- package/dist/components/section/card.js +205 -0
- package/dist/components/section/card.js.map +1 -0
- package/dist/components/section/row-item.d.ts +22 -0
- package/dist/components/section/row-item.d.ts.map +1 -0
- package/dist/components/section/row-item.js +53 -0
- package/dist/components/section/row-item.js.map +1 -0
- package/dist/components/section/section.d.ts +70 -0
- package/dist/components/section/section.d.ts.map +1 -0
- package/dist/components/section/section.js +240 -0
- package/dist/components/section/section.js.map +1 -0
- package/dist/components/select/select.js +3 -3
- package/dist/components/series-nav/series-nav.d.ts +29 -0
- package/dist/components/series-nav/series-nav.d.ts.map +1 -0
- package/dist/components/series-nav/series-nav.js +178 -0
- package/dist/components/series-nav/series-nav.js.map +1 -0
- package/dist/components/site-header/site-header.d.ts +51 -0
- package/dist/components/site-header/site-header.d.ts.map +1 -0
- package/dist/components/site-header/site-header.js +296 -0
- package/dist/components/site-header/site-header.js.map +1 -0
- package/dist/components/skeleton/skeleton.js +7 -7
- package/dist/components/sparkline/sparkline.d.ts +19 -0
- package/dist/components/sparkline/sparkline.d.ts.map +1 -0
- package/dist/components/sparkline/sparkline.js +99 -0
- package/dist/components/sparkline/sparkline.js.map +1 -0
- package/dist/components/spinner/spinner.d.ts +13 -0
- package/dist/components/spinner/spinner.d.ts.map +1 -0
- package/dist/components/spinner/spinner.js +65 -0
- package/dist/components/spinner/spinner.js.map +1 -0
- package/dist/components/split/split.d.ts +23 -0
- package/dist/components/split/split.d.ts.map +1 -0
- package/dist/components/split/split.js +104 -0
- package/dist/components/split/split.js.map +1 -0
- package/dist/components/stack/stack.d.ts +21 -0
- package/dist/components/stack/stack.d.ts.map +1 -0
- package/dist/components/stack/stack.js +102 -0
- package/dist/components/stack/stack.js.map +1 -0
- package/dist/components/stat-card/stat-card.d.ts +35 -0
- package/dist/components/stat-card/stat-card.d.ts.map +1 -0
- package/dist/components/stat-card/stat-card.js +199 -0
- package/dist/components/stat-card/stat-card.js.map +1 -0
- package/dist/components/stats/stat.d.ts +16 -0
- package/dist/components/stats/stat.d.ts.map +1 -0
- package/dist/components/stats/stat.js +51 -0
- package/dist/components/stats/stat.js.map +1 -0
- package/dist/components/stats/stats.d.ts +19 -0
- package/dist/components/stats/stats.d.ts.map +1 -0
- package/dist/components/stats/stats.js +45 -0
- package/dist/components/stats/stats.js.map +1 -0
- package/dist/components/switch/switch.js +2 -2
- package/dist/components/table/data-table.d.ts +115 -27
- package/dist/components/table/data-table.d.ts.map +1 -1
- package/dist/components/table/data-table.js +1012 -411
- package/dist/components/table/data-table.js.map +1 -1
- package/dist/components/table/data-table.utils.d.ts +81 -0
- package/dist/components/table/data-table.utils.d.ts.map +1 -0
- package/dist/components/table/data-table.utils.js +208 -0
- package/dist/components/table/data-table.utils.js.map +1 -0
- package/dist/components/table/table.d.ts +28 -0
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +161 -33
- package/dist/components/table/table.js.map +1 -1
- package/dist/components/team/person.d.ts +19 -0
- package/dist/components/team/person.d.ts.map +1 -0
- package/dist/components/team/person.js +123 -0
- package/dist/components/team/person.js.map +1 -0
- package/dist/components/team/team.d.ts +18 -0
- package/dist/components/team/team.d.ts.map +1 -0
- package/dist/components/team/team.js +36 -0
- package/dist/components/team/team.js.map +1 -0
- package/dist/components/testimonials/testimonial.d.ts +18 -0
- package/dist/components/testimonials/testimonial.d.ts.map +1 -0
- package/dist/components/testimonials/testimonial.js +115 -0
- package/dist/components/testimonials/testimonial.js.map +1 -0
- package/dist/components/testimonials/testimonials.d.ts +18 -0
- package/dist/components/testimonials/testimonials.d.ts.map +1 -0
- package/dist/components/testimonials/testimonials.js +36 -0
- package/dist/components/testimonials/testimonials.js.map +1 -0
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/theme-toggle/theme-toggle.js +1 -1
- package/dist/components/time-picker/time-picker.js +3 -3
- package/dist/components/timeline/timeline-item.d.ts +18 -0
- package/dist/components/timeline/timeline-item.d.ts.map +1 -0
- package/dist/components/timeline/timeline-item.js +102 -0
- package/dist/components/timeline/timeline-item.js.map +1 -0
- package/dist/components/timeline/timeline.d.ts +18 -0
- package/dist/components/timeline/timeline.d.ts.map +1 -0
- package/dist/components/timeline/timeline.js +30 -0
- package/dist/components/timeline/timeline.js.map +1 -0
- package/dist/components/toast/toast.d.ts +33 -0
- package/dist/components/toast/toast.d.ts.map +1 -0
- package/dist/components/toast/toast.js +147 -0
- package/dist/components/toast/toast.js.map +1 -0
- package/dist/components/toggle-group/toggle-button.d.ts +2 -0
- package/dist/components/toggle-group/toggle-button.d.ts.map +1 -1
- package/dist/components/toggle-group/toggle-button.js +12 -4
- package/dist/components/toggle-group/toggle-button.js.map +1 -1
- package/dist/components/toggle-group/toggle-group.js +4 -4
- package/dist/components/tooltip/tooltip.js +21 -21
- package/dist/components/vertical-nav/vertical-nav-group.js +3 -3
- package/dist/components/vertical-nav/vertical-nav-item.js +4 -4
- package/dist/components/video-embed/video-embed.d.ts +37 -0
- package/dist/components/video-embed/video-embed.d.ts.map +1 -0
- package/dist/components/video-embed/video-embed.js +183 -0
- package/dist/components/video-embed/video-embed.js.map +1 -0
- package/dist/index.d.ts +107 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +104 -0
- package/dist/index.js.map +1 -0
- package/dist/styles/index.css +205 -2
- package/dist/styles/reset.d.ts.map +1 -1
- package/dist/styles/reset.js +5 -0
- package/dist/styles/reset.js.map +1 -1
- package/package.json +210 -7
- package/src/components/accordion/accordion.constants.ts +5 -0
- package/src/components/accordion/accordion.ts +209 -0
- package/src/components/alert/alert.constants.ts +3 -0
- package/src/components/alert/alert.ts +284 -17
- package/src/components/avatar/avatar.ts +84 -0
- package/src/components/back-to-top/back-to-top.ts +140 -0
- package/src/components/bar-chart/bar-chart.ts +295 -0
- package/src/components/breadcrumb/breadcrumb.ts +2 -2
- package/src/components/button/button.ts +9 -8
- package/src/components/button-group/button-group.ts +4 -4
- package/src/components/calendar/calendar.ts +12 -9
- package/src/components/chart/chart-base.ts +275 -0
- package/src/components/chart/chart.utils.ts +140 -0
- package/src/components/code-block/code-block.ts +35 -24
- package/src/components/consent/consent.ts +312 -0
- package/src/components/consent/consent.utils.ts +110 -0
- package/src/components/contact/contact.ts +83 -0
- package/src/components/container/container.ts +60 -0
- package/src/components/content-card/content-card.ts +4 -4
- package/src/components/context-menu/context-menu.ts +426 -0
- package/src/components/cron-builder/cron-builder.ts +21 -18
- package/src/components/cta/cta.ts +64 -0
- package/src/components/drawer/drawer.ts +6 -6
- package/src/components/faq/faq-item.ts +110 -0
- package/src/components/faq/faq.ts +40 -0
- package/src/components/feature-grid/feature-grid.ts +52 -0
- package/src/components/feature-grid/feature.ts +84 -0
- package/src/components/field/field.ts +2 -2
- package/src/components/footer/footer.ts +4 -4
- package/src/components/form/form-reset.ts +45 -0
- package/src/components/form/form.ts +17 -3
- package/src/components/grid/grid.ts +73 -4
- package/src/components/heat-map/heat-map.ts +292 -0
- package/src/components/hero/hero.ts +132 -0
- package/src/components/icon/icon-paths.ts +92 -1
- package/src/components/icon/icon.ts +8 -1
- package/src/components/image/image.ts +165 -0
- package/src/components/input/input.ts +4 -4
- package/src/components/lazy/lazy.ts +94 -0
- package/src/components/line-chart/line-chart.ts +271 -0
- package/src/components/list/list-item.ts +225 -0
- package/src/components/list/list.ts +157 -0
- package/src/components/logo-cloud/logo-cloud.ts +65 -0
- package/src/components/modal/modal.ts +37 -11
- package/src/components/page-layout/page-layout.ts +8 -8
- package/src/components/pagination/pagination.ts +120 -0
- package/src/components/pagination/pagination.utils.ts +14 -0
- package/src/components/pie-chart/pie-chart.ts +230 -0
- package/src/components/pin-input/pin-input.ts +4 -4
- package/src/components/popover/popover.ts +1 -3
- package/src/components/post-list/post-card.ts +18 -0
- package/src/components/post-list/post-list.ts +19 -0
- package/src/components/pricing/pricing-tier.ts +132 -0
- package/src/components/pricing/pricing.ts +39 -0
- package/src/components/progress/progress.ts +95 -0
- package/src/components/project-grid/project-card.ts +19 -0
- package/src/components/project-grid/project-grid.ts +19 -0
- package/src/components/radio/radio.ts +1 -1
- package/src/components/reveal/reveal.constants.ts +20 -0
- package/src/components/reveal/reveal.ts +344 -0
- package/src/components/scroll-progress/scroll-progress.ts +119 -0
- package/src/components/section/card-row.ts +152 -0
- package/src/components/section/card.ts +197 -0
- package/src/components/section/row-item.ts +38 -0
- package/src/components/section/section.ts +232 -0
- package/src/components/select/select.ts +3 -3
- package/src/components/series-nav/series-nav.ts +164 -0
- package/src/components/site-header/site-header.ts +276 -0
- package/src/components/skeleton/skeleton.ts +7 -7
- package/src/components/sparkline/sparkline.ts +83 -0
- package/src/components/spinner/spinner.ts +55 -0
- package/src/components/split/split.ts +106 -0
- package/src/components/stack/stack.ts +88 -0
- package/src/components/stat-card/stat-card.ts +179 -0
- package/src/components/stats/stat.ts +49 -0
- package/src/components/stats/stats.ts +47 -0
- package/src/components/switch/switch.ts +2 -2
- package/src/components/table/data-table.ts +1015 -425
- package/src/components/table/data-table.utils.ts +276 -0
- package/src/components/table/table.ts +168 -38
- package/src/components/team/person.ts +113 -0
- package/src/components/team/team.ts +37 -0
- package/src/components/testimonials/testimonial.ts +108 -0
- package/src/components/testimonials/testimonials.ts +37 -0
- package/src/components/textarea/textarea.ts +3 -3
- package/src/components/theme-toggle/theme-toggle.ts +1 -1
- package/src/components/time-picker/time-picker.ts +3 -3
- package/src/components/timeline/timeline-item.ts +100 -0
- package/src/components/timeline/timeline.ts +31 -0
- package/src/components/toast/toast.ts +153 -0
- package/src/components/toggle-group/toggle-button.ts +9 -4
- package/src/components/toggle-group/toggle-group.ts +4 -4
- package/src/components/tooltip/tooltip.ts +21 -21
- package/src/components/vertical-nav/vertical-nav-group.ts +3 -3
- package/src/components/vertical-nav/vertical-nav-item.ts +4 -4
- package/src/components/video-embed/video-embed.ts +162 -0
- package/src/index.ts +108 -0
- package/src/styles/globals.css +63 -0
- package/src/styles/index.css +3 -1
- package/src/styles/prose.css +154 -0
- package/src/styles/reset.ts +5 -0
- package/src/styles/theme.css +53 -1
- package/src/styles/typography.css +1 -0
|
@@ -0,0 +1,296 @@
|
|
|
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 } from "lit";
|
|
8
|
+
import { customElement, property, state } from "lit/decorators.js";
|
|
9
|
+
import { resetStyles } from "../../styles/reset.js";
|
|
10
|
+
import "../icon/icon.js";
|
|
11
|
+
/**
|
|
12
|
+
* The top of a site: a logo, navigation links and a place for actions such as a theme toggle or a
|
|
13
|
+
* call-to-action button. On wide screens the links sit in a row. On narrow screens they fold into
|
|
14
|
+
* a menu opened by a button; the links stay in the page either way, so search engines see them.
|
|
15
|
+
*
|
|
16
|
+
* Slots:
|
|
17
|
+
* - `logo`: your brand, usually a link to the home page.
|
|
18
|
+
* - default: the navigation links. Mark the current page with `aria-current="page"`.
|
|
19
|
+
* - `actions`: controls on the right (theme toggle, buttons).
|
|
20
|
+
*
|
|
21
|
+
* A "Skip to content" link is included for keyboard users. When `sticky`, the header publishes
|
|
22
|
+
* its height as `--st-site-header-height`, which sections use so anchor links are not hidden
|
|
23
|
+
* behind it.
|
|
24
|
+
*/
|
|
25
|
+
let StSiteHeader = class StSiteHeader extends LitElement {
|
|
26
|
+
constructor() {
|
|
27
|
+
super(...arguments);
|
|
28
|
+
/** Keeps the header at the top of the screen while scrolling. */
|
|
29
|
+
this.sticky = false;
|
|
30
|
+
/** Screen width (in pixels) below which the links fold into a menu. */
|
|
31
|
+
this.breakpoint = 768;
|
|
32
|
+
this.menuLabel = "Menu";
|
|
33
|
+
this.navLabel = "Main";
|
|
34
|
+
/** Where the skip link goes. Give your main content this id. */
|
|
35
|
+
this.skipTo = "#main";
|
|
36
|
+
this.skipLabel = "Skip to content";
|
|
37
|
+
this._menuOpen = false;
|
|
38
|
+
this._compact = false;
|
|
39
|
+
this._onBreakpoint = (e) => this._applyCompact(e.matches);
|
|
40
|
+
this._onKeydown = (e) => {
|
|
41
|
+
if (e.key === "Escape" && this._menuOpen) {
|
|
42
|
+
this._menuOpen = false;
|
|
43
|
+
this.renderRoot.querySelector(".toggle")?.focus();
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
this._onOutside = (e) => {
|
|
47
|
+
if (this._menuOpen && !e.composedPath().includes(this))
|
|
48
|
+
this._menuOpen = false;
|
|
49
|
+
};
|
|
50
|
+
/** Choosing a link closes the menu. */
|
|
51
|
+
this._onNavClick = (e) => {
|
|
52
|
+
if (e.composedPath().some((el) => el instanceof HTMLAnchorElement))
|
|
53
|
+
this._menuOpen = false;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
connectedCallback() {
|
|
57
|
+
super.connectedCallback();
|
|
58
|
+
this._media = window.matchMedia(`(max-width: ${this.breakpoint - 1}px)`);
|
|
59
|
+
this._media.addEventListener("change", this._onBreakpoint);
|
|
60
|
+
this._applyCompact(this._media.matches);
|
|
61
|
+
document.addEventListener("keydown", this._onKeydown);
|
|
62
|
+
document.addEventListener("pointerdown", this._onOutside);
|
|
63
|
+
this._resize = new ResizeObserver(() => this._publishHeight());
|
|
64
|
+
this._resize.observe(this);
|
|
65
|
+
}
|
|
66
|
+
disconnectedCallback() {
|
|
67
|
+
this._media?.removeEventListener("change", this._onBreakpoint);
|
|
68
|
+
document.removeEventListener("keydown", this._onKeydown);
|
|
69
|
+
document.removeEventListener("pointerdown", this._onOutside);
|
|
70
|
+
this._resize?.disconnect();
|
|
71
|
+
if (this.sticky)
|
|
72
|
+
document.documentElement.style.removeProperty("--st-site-header-height");
|
|
73
|
+
super.disconnectedCallback();
|
|
74
|
+
}
|
|
75
|
+
updated(changed) {
|
|
76
|
+
if (changed.has("breakpoint") && this._media) {
|
|
77
|
+
this._media.removeEventListener("change", this._onBreakpoint);
|
|
78
|
+
this._media = window.matchMedia(`(max-width: ${this.breakpoint - 1}px)`);
|
|
79
|
+
this._media.addEventListener("change", this._onBreakpoint);
|
|
80
|
+
this._applyCompact(this._media.matches);
|
|
81
|
+
}
|
|
82
|
+
if (changed.has("sticky"))
|
|
83
|
+
this._publishHeight();
|
|
84
|
+
}
|
|
85
|
+
/** Closes the menu. */
|
|
86
|
+
close() {
|
|
87
|
+
this._menuOpen = false;
|
|
88
|
+
}
|
|
89
|
+
_publishHeight() {
|
|
90
|
+
const root = document.documentElement.style;
|
|
91
|
+
if (this.sticky)
|
|
92
|
+
root.setProperty("--st-site-header-height", `${this.offsetHeight}px`);
|
|
93
|
+
else
|
|
94
|
+
root.removeProperty("--st-site-header-height");
|
|
95
|
+
}
|
|
96
|
+
_applyCompact(compact) {
|
|
97
|
+
this._compact = compact;
|
|
98
|
+
this.toggleAttribute("data-compact", compact);
|
|
99
|
+
if (!compact)
|
|
100
|
+
this._menuOpen = false;
|
|
101
|
+
}
|
|
102
|
+
render() {
|
|
103
|
+
return html `
|
|
104
|
+
<a class="skip" href=${this.skipTo}>${this.skipLabel}</a>
|
|
105
|
+
<header class="bar">
|
|
106
|
+
<div class="logo"><slot name="logo"></slot></div>
|
|
107
|
+
<nav
|
|
108
|
+
id="site-nav"
|
|
109
|
+
class=${this._menuOpen ? "open" : ""}
|
|
110
|
+
aria-label=${this.navLabel}
|
|
111
|
+
@click=${this._onNavClick}
|
|
112
|
+
>
|
|
113
|
+
<slot></slot>
|
|
114
|
+
</nav>
|
|
115
|
+
<div class="actions"><slot name="actions"></slot></div>
|
|
116
|
+
<button
|
|
117
|
+
class="toggle"
|
|
118
|
+
type="button"
|
|
119
|
+
aria-controls="site-nav"
|
|
120
|
+
aria-expanded=${this._menuOpen ? "true" : "false"}
|
|
121
|
+
aria-label=${this.menuLabel}
|
|
122
|
+
@click=${() => (this._menuOpen = !this._menuOpen)}
|
|
123
|
+
>
|
|
124
|
+
<st-icon name=${this._menuOpen ? "x" : "menu"} aria-hidden="true"></st-icon>
|
|
125
|
+
</button>
|
|
126
|
+
</header>
|
|
127
|
+
`;
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
StSiteHeader.styles = [
|
|
131
|
+
resetStyles,
|
|
132
|
+
css `
|
|
133
|
+
:host {
|
|
134
|
+
display: block;
|
|
135
|
+
background: var(--st-color-bg);
|
|
136
|
+
border-bottom: 1px solid var(--st-color-border);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
:host([sticky]) {
|
|
140
|
+
position: sticky;
|
|
141
|
+
top: 0;
|
|
142
|
+
z-index: var(--st-site-header-z, 50);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.skip {
|
|
146
|
+
position: absolute;
|
|
147
|
+
left: var(--st-spacing-md);
|
|
148
|
+
top: 0;
|
|
149
|
+
z-index: 1;
|
|
150
|
+
padding: var(--st-spacing-sm) var(--st-spacing-md);
|
|
151
|
+
border-radius: 0 0 var(--st-radius-md) var(--st-radius-md);
|
|
152
|
+
background: var(--st-color-primary);
|
|
153
|
+
color: var(--st-color-on-primary);
|
|
154
|
+
transform: translateY(-120%);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.skip:focus {
|
|
158
|
+
transform: none;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.bar {
|
|
162
|
+
position: relative;
|
|
163
|
+
display: flex;
|
|
164
|
+
align-items: center;
|
|
165
|
+
gap: var(--st-spacing-lg);
|
|
166
|
+
max-width: var(--st-container-lg);
|
|
167
|
+
min-height: var(--st-site-header-min-height, 4rem);
|
|
168
|
+
margin-inline: auto;
|
|
169
|
+
padding-inline: var(--st-gutter);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.logo {
|
|
173
|
+
display: flex;
|
|
174
|
+
align-items: center;
|
|
175
|
+
flex-shrink: 0;
|
|
176
|
+
font-weight: var(--st-font-weight-bold);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
nav {
|
|
180
|
+
display: flex;
|
|
181
|
+
flex: 1;
|
|
182
|
+
align-items: center;
|
|
183
|
+
gap: var(--st-spacing-lg);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
::slotted(a) {
|
|
187
|
+
color: var(--st-color-text-muted);
|
|
188
|
+
font-weight: var(--st-font-weight-medium);
|
|
189
|
+
text-decoration: none;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
::slotted(a:hover),
|
|
193
|
+
::slotted(a[aria-current="page"]) {
|
|
194
|
+
color: var(--st-color-text);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
::slotted(a[aria-current="page"]) {
|
|
198
|
+
text-decoration: underline;
|
|
199
|
+
text-decoration-color: var(--st-color-primary);
|
|
200
|
+
text-decoration-thickness: 2px;
|
|
201
|
+
text-underline-offset: 0.5em;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.actions {
|
|
205
|
+
display: flex;
|
|
206
|
+
align-items: center;
|
|
207
|
+
gap: var(--st-spacing-sm);
|
|
208
|
+
margin-left: auto;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.toggle {
|
|
212
|
+
display: none;
|
|
213
|
+
padding: var(--st-spacing-sm);
|
|
214
|
+
border: 0;
|
|
215
|
+
border-radius: var(--st-radius-md);
|
|
216
|
+
background: none;
|
|
217
|
+
color: inherit;
|
|
218
|
+
cursor: pointer;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.toggle:hover {
|
|
222
|
+
background: var(--st-color-surface-hover);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.toggle:focus-visible {
|
|
226
|
+
outline: 2px solid var(--st-color-primary);
|
|
227
|
+
outline-offset: 2px;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/* Narrow screens: the links fold into a panel under the bar. */
|
|
231
|
+
:host([data-compact]) .toggle {
|
|
232
|
+
display: inline-flex;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
:host([data-compact]) nav {
|
|
236
|
+
position: absolute;
|
|
237
|
+
top: 100%;
|
|
238
|
+
left: 0;
|
|
239
|
+
right: 0;
|
|
240
|
+
flex-direction: column;
|
|
241
|
+
align-items: stretch;
|
|
242
|
+
gap: var(--st-spacing-xs);
|
|
243
|
+
padding: var(--st-spacing-md) var(--st-gutter);
|
|
244
|
+
border-bottom: 1px solid var(--st-color-border);
|
|
245
|
+
background: var(--st-color-bg);
|
|
246
|
+
box-shadow: var(--st-shadow-lg);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
:host([data-compact]) nav:not(.open) {
|
|
250
|
+
display: none;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
:host([data-compact]) ::slotted(a) {
|
|
254
|
+
padding: var(--st-spacing-sm) 0;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
@media print {
|
|
258
|
+
:host {
|
|
259
|
+
position: static;
|
|
260
|
+
}
|
|
261
|
+
.toggle,
|
|
262
|
+
.actions {
|
|
263
|
+
display: none;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
`,
|
|
267
|
+
];
|
|
268
|
+
__decorate([
|
|
269
|
+
property({ type: Boolean, reflect: true })
|
|
270
|
+
], StSiteHeader.prototype, "sticky", void 0);
|
|
271
|
+
__decorate([
|
|
272
|
+
property({ type: Number })
|
|
273
|
+
], StSiteHeader.prototype, "breakpoint", void 0);
|
|
274
|
+
__decorate([
|
|
275
|
+
property({ type: String, attribute: "menu-label" })
|
|
276
|
+
], StSiteHeader.prototype, "menuLabel", void 0);
|
|
277
|
+
__decorate([
|
|
278
|
+
property({ type: String, attribute: "nav-label" })
|
|
279
|
+
], StSiteHeader.prototype, "navLabel", void 0);
|
|
280
|
+
__decorate([
|
|
281
|
+
property({ type: String, attribute: "skip-to" })
|
|
282
|
+
], StSiteHeader.prototype, "skipTo", void 0);
|
|
283
|
+
__decorate([
|
|
284
|
+
property({ type: String, attribute: "skip-label" })
|
|
285
|
+
], StSiteHeader.prototype, "skipLabel", void 0);
|
|
286
|
+
__decorate([
|
|
287
|
+
state()
|
|
288
|
+
], StSiteHeader.prototype, "_menuOpen", void 0);
|
|
289
|
+
__decorate([
|
|
290
|
+
state()
|
|
291
|
+
], StSiteHeader.prototype, "_compact", void 0);
|
|
292
|
+
StSiteHeader = __decorate([
|
|
293
|
+
customElement("st-site-header")
|
|
294
|
+
], StSiteHeader);
|
|
295
|
+
export { StSiteHeader };
|
|
296
|
+
//# sourceMappingURL=site-header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"site-header.js","sourceRoot":"","sources":["../../../src/components/site-header/site-header.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,UAAU,EAAE,IAAI,EAAE,GAAG,EAAiB,MAAM,KAAK,CAAC;AAC1D,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAC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AgB,CAAC;GACnB,YAAY,CAyPxB"}
|
|
@@ -55,7 +55,7 @@ StSkeleton.styles = [
|
|
|
55
55
|
width: var(--_width);
|
|
56
56
|
height: var(--_height);
|
|
57
57
|
|
|
58
|
-
--st-skeleton-radius: var(--st-radius-sm
|
|
58
|
+
--st-skeleton-radius: var(--st-radius-sm);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
:host([variant="text"]) {
|
|
@@ -79,9 +79,9 @@ StSkeleton.styles = [
|
|
|
79
79
|
|
|
80
80
|
background: linear-gradient(
|
|
81
81
|
90deg,
|
|
82
|
-
var(--st-color-surface-muted
|
|
83
|
-
var(--st-color-border
|
|
84
|
-
var(--st-color-surface-muted
|
|
82
|
+
var(--st-color-surface-muted) 25%,
|
|
83
|
+
var(--st-color-border) 37%,
|
|
84
|
+
var(--st-color-surface-muted) 63%
|
|
85
85
|
);
|
|
86
86
|
background-size: 400% 100%;
|
|
87
87
|
border-radius: var(--st-skeleton-radius);
|
|
@@ -99,19 +99,19 @@ StSkeleton.styles = [
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
:host([animation="pulse"]) .skeleton {
|
|
102
|
-
background: var(--st-color-surface-muted
|
|
102
|
+
background: var(--st-color-surface-muted);
|
|
103
103
|
animation: st-pulse 1.5s ease-in-out infinite;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
:host([animation="none"]) .skeleton {
|
|
107
|
-
background: var(--st-color-surface-muted
|
|
107
|
+
background: var(--st-color-surface-muted);
|
|
108
108
|
animation: none;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
@media (prefers-reduced-motion: reduce) {
|
|
112
112
|
.skeleton {
|
|
113
113
|
animation: none !important;
|
|
114
|
-
background: var(--st-color-surface-muted
|
|
114
|
+
background: var(--st-color-surface-muted) !important;
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LitElement, nothing } from "lit";
|
|
2
|
+
/** Tiny axis-less trend line for use inside cards, tables and stat blocks. */
|
|
3
|
+
export declare class StSparkline extends LitElement {
|
|
4
|
+
data: number[];
|
|
5
|
+
/** Any CSS color; defaults to the first chart palette color. */
|
|
6
|
+
color: string;
|
|
7
|
+
height: number;
|
|
8
|
+
area: boolean;
|
|
9
|
+
/** Accessible description, e.g. "Revenue trend, last 7 days". */
|
|
10
|
+
label: string;
|
|
11
|
+
static styles: import("lit").CSSResult[];
|
|
12
|
+
render(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
13
|
+
}
|
|
14
|
+
declare global {
|
|
15
|
+
interface HTMLElementTagNameMap {
|
|
16
|
+
"st-sparkline": StSparkline;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=sparkline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sparkline.d.ts","sourceRoot":"","sources":["../../../src/components/sparkline/sparkline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAkB,OAAO,EAAC,MAAM,KAAK,CAAC;AAQxD,8EAA8E;AAC9E,qBACa,WAAY,SAAQ,UAAU;IAChB,IAAI,EAAE,MAAM,EAAE,CAAM;IAC7C,gEAAgE;IACtC,KAAK,SAAM;IACX,MAAM,SAAM;IACX,IAAI,UAAS;IACxC,iEAAiE;IACvC,KAAK,SAAW;IAE1C,MAAM,CAAC,MAAM,4BAuBX;IAEF,MAAM,0DA+BL;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF"}
|
|
@@ -0,0 +1,99 @@
|
|
|
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, svg, nothing } from "lit";
|
|
8
|
+
import { customElement, property } from "lit/decorators.js";
|
|
9
|
+
import { resetStyles } from "../../styles/reset.js";
|
|
10
|
+
import { areaPaths, chartColor, linePath, normalize } from "../chart/chart.utils.js";
|
|
11
|
+
const VIEW_WIDTH = 100;
|
|
12
|
+
const PAD = 2;
|
|
13
|
+
/** Tiny axis-less trend line for use inside cards, tables and stat blocks. */
|
|
14
|
+
let StSparkline = class StSparkline extends LitElement {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.data = [];
|
|
18
|
+
/** Any CSS color; defaults to the first chart palette color. */
|
|
19
|
+
this.color = "";
|
|
20
|
+
this.height = 32;
|
|
21
|
+
this.area = false;
|
|
22
|
+
/** Accessible description, e.g. "Revenue trend, last 7 days". */
|
|
23
|
+
this.label = "Trend";
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
const n = this.data.length;
|
|
27
|
+
if (n < 2)
|
|
28
|
+
return nothing;
|
|
29
|
+
const lo = Math.min(...this.data);
|
|
30
|
+
const hi = Math.max(...this.data);
|
|
31
|
+
const h = this.height;
|
|
32
|
+
const points = this.data.map((v, i) => [
|
|
33
|
+
(i / (n - 1)) * VIEW_WIDTH,
|
|
34
|
+
h - PAD - normalize(v, lo, hi) * (h - PAD * 2),
|
|
35
|
+
]);
|
|
36
|
+
const color = chartColor(0, this.color);
|
|
37
|
+
const first = this.data[0];
|
|
38
|
+
const last = this.data[n - 1];
|
|
39
|
+
const summary = `${this.label}: from ${first} to ${last}`;
|
|
40
|
+
return html `
|
|
41
|
+
<svg
|
|
42
|
+
viewBox="0 0 ${VIEW_WIDTH} ${h}"
|
|
43
|
+
height=${h}
|
|
44
|
+
preserveAspectRatio="none"
|
|
45
|
+
role="img"
|
|
46
|
+
aria-label=${summary}
|
|
47
|
+
>
|
|
48
|
+
${this.area
|
|
49
|
+
? areaPaths(points, h).map((d) => svg `<path class="area" d=${d} style="fill:${color}"></path>`)
|
|
50
|
+
: nothing}
|
|
51
|
+
<path class="line" d=${linePath(points)} style="stroke:${color}"></path>
|
|
52
|
+
</svg>
|
|
53
|
+
`;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
StSparkline.styles = [
|
|
57
|
+
resetStyles,
|
|
58
|
+
css `
|
|
59
|
+
:host {
|
|
60
|
+
display: block;
|
|
61
|
+
width: 100%;
|
|
62
|
+
}
|
|
63
|
+
svg {
|
|
64
|
+
display: block;
|
|
65
|
+
width: 100%;
|
|
66
|
+
overflow: visible;
|
|
67
|
+
}
|
|
68
|
+
.line {
|
|
69
|
+
fill: none;
|
|
70
|
+
stroke-width: 2;
|
|
71
|
+
stroke-linecap: round;
|
|
72
|
+
stroke-linejoin: round;
|
|
73
|
+
vector-effect: non-scaling-stroke;
|
|
74
|
+
}
|
|
75
|
+
.area {
|
|
76
|
+
opacity: 0.15;
|
|
77
|
+
}
|
|
78
|
+
`,
|
|
79
|
+
];
|
|
80
|
+
__decorate([
|
|
81
|
+
property({ type: Array })
|
|
82
|
+
], StSparkline.prototype, "data", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
property({ type: String })
|
|
85
|
+
], StSparkline.prototype, "color", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
property({ type: Number })
|
|
88
|
+
], StSparkline.prototype, "height", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
property({ type: Boolean })
|
|
91
|
+
], StSparkline.prototype, "area", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
property({ type: String })
|
|
94
|
+
], StSparkline.prototype, "label", void 0);
|
|
95
|
+
StSparkline = __decorate([
|
|
96
|
+
customElement("st-sparkline")
|
|
97
|
+
], StSparkline);
|
|
98
|
+
export { StSparkline };
|
|
99
|
+
//# sourceMappingURL=sparkline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sparkline.js","sourceRoot":"","sources":["../../../src/components/sparkline/sparkline.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAC,MAAM,KAAK,CAAC;AACxD,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAC,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAC,MAAM,yBAAyB,CAAC;AAEnF,MAAM,UAAU,GAAG,GAAG,CAAC;AACvB,MAAM,GAAG,GAAG,CAAC,CAAC;AAEd,8EAA8E;AAEvE,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,UAAU;IAApC;;QACoB,SAAI,GAAa,EAAE,CAAC;QAC7C,gEAAgE;QACtC,UAAK,GAAG,EAAE,CAAC;QACX,WAAM,GAAG,EAAE,CAAC;QACX,SAAI,GAAG,KAAK,CAAC;QACxC,iEAAiE;QACvC,UAAK,GAAG,OAAO,CAAC;IA2D5C,CAAC;IAhCC,MAAM;QACJ,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,GAAG,CAAC;YAAE,OAAO,OAAO,CAAC;QAC1B,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;QAClC,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;QAClC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QACtB,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAC1B,CAA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AAC;2CAAa;AACX;IAA1B,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;yCAAc;AAEd;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;0CAAiB;AAP/B,WAAW;IADvB,aAAa,CAAC,cAAc,CAAC;GACjB,WAAW,CAkEvB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
export declare class StSpinner extends LitElement {
|
|
3
|
+
size: "sm" | "md" | "lg";
|
|
4
|
+
label: string;
|
|
5
|
+
static styles: import("lit").CSSResult[];
|
|
6
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
7
|
+
}
|
|
8
|
+
declare global {
|
|
9
|
+
interface HTMLElementTagNameMap {
|
|
10
|
+
"st-spinner": StSpinner;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=spinner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../../src/components/spinner/spinner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAY,MAAM,KAAK,CAAC;AAI1C,qBACa,SAAU,SAAQ,UAAU;IACE,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAQ;IAC/C,KAAK,SAAa;IAE5C,MAAM,CAAC,MAAM,4BAkCX;IAEF,MAAM,yCAEL;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAC;KACzB;CACF"}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 } from "lit";
|
|
8
|
+
import { customElement, property } from "lit/decorators.js";
|
|
9
|
+
import { resetStyles } from "../../styles/reset.js";
|
|
10
|
+
let StSpinner = class StSpinner extends LitElement {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.size = "md";
|
|
14
|
+
this.label = "Loading";
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
return html `<div class="ring" role="status" aria-label=${this.label}></div>`;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
StSpinner.styles = [
|
|
21
|
+
resetStyles,
|
|
22
|
+
css `
|
|
23
|
+
:host {
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
--_size: 1.5rem;
|
|
26
|
+
color: var(--st-color-primary);
|
|
27
|
+
}
|
|
28
|
+
:host([size="sm"]) {
|
|
29
|
+
--_size: 1rem;
|
|
30
|
+
}
|
|
31
|
+
:host([size="lg"]) {
|
|
32
|
+
--_size: 2.5rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ring {
|
|
36
|
+
width: var(--_size);
|
|
37
|
+
height: var(--_size);
|
|
38
|
+
border: 0.15rem solid var(--st-color-border);
|
|
39
|
+
border-top-color: currentColor;
|
|
40
|
+
border-radius: 50%;
|
|
41
|
+
animation: spin 0.8s linear infinite;
|
|
42
|
+
}
|
|
43
|
+
@keyframes spin {
|
|
44
|
+
to {
|
|
45
|
+
transform: rotate(360deg);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
@media (prefers-reduced-motion: reduce) {
|
|
49
|
+
.ring {
|
|
50
|
+
animation-duration: 2.4s;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
`,
|
|
54
|
+
];
|
|
55
|
+
__decorate([
|
|
56
|
+
property({ type: String, reflect: true })
|
|
57
|
+
], StSpinner.prototype, "size", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
property({ type: String })
|
|
60
|
+
], StSpinner.prototype, "label", void 0);
|
|
61
|
+
StSpinner = __decorate([
|
|
62
|
+
customElement("st-spinner")
|
|
63
|
+
], StSpinner);
|
|
64
|
+
export { StSpinner };
|
|
65
|
+
//# sourceMappingURL=spinner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spinner.js","sourceRoot":"","sources":["../../../src/components/spinner/spinner.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,UAAU,EAAE,IAAI,EAAE,GAAG,EAAC,MAAM,KAAK,CAAC;AAC1C,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAG3C,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,UAAU;IAAlC;;QACoC,SAAI,GAAuB,IAAI,CAAC;QAC/C,UAAK,GAAG,SAAS,CAAC;IAyC9C,CAAC;IAHC,MAAM;QACJ,OAAO,IAAI,CAAA,8CAA8C,IAAI,CAAC,KAAK,SAAS,CAAC;IAC/E,CAAC;CACF,CAAA;AAvCQ,gBAAM,GAAG;IACd,WAAW;IACX,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA+BF;CACF,AAlCY,CAkCX;AArCuC;IAAxC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;uCAAiC;AAC/C;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;wCAAmB;AAFjC,SAAS;IADrB,aAAa,CAAC,YAAY,CAAC;GACf,SAAS,CA2CrB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { StSection } from "../section/section.js";
|
|
2
|
+
/**
|
|
3
|
+
* Text beside an image, video or any other media: the classic "explain one thing" row. The two
|
|
4
|
+
* columns stack on narrow screens, with the text first. Use `reverse` to swap sides, so a page
|
|
5
|
+
* of several split rows can alternate.
|
|
6
|
+
*
|
|
7
|
+
* Slots: `eyebrow`, `title`, `lead`, the default slot (body text), `actions` (buttons) and
|
|
8
|
+
* `media`.
|
|
9
|
+
*/
|
|
10
|
+
export declare class StSplit extends StSection {
|
|
11
|
+
/** Puts the media on the left on wide screens. */
|
|
12
|
+
reverse: boolean;
|
|
13
|
+
private _hasActions;
|
|
14
|
+
constructor();
|
|
15
|
+
static styles: import("lit").CSSResult[];
|
|
16
|
+
render(): import("lit-html").TemplateResult;
|
|
17
|
+
}
|
|
18
|
+
declare global {
|
|
19
|
+
interface HTMLElementTagNameMap {
|
|
20
|
+
"st-split": StSplit;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=split.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split.d.ts","sourceRoot":"","sources":["../../../src/components/split/split.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAEhD;;;;;;;GAOG;AACH,qBACa,OAAQ,SAAQ,SAAS;IACpC,kDAAkD;IACR,OAAO,UAAS;IAEjD,OAAO,CAAC,WAAW,CAAS;IAErC,cAGC;IAED,MAAM,CAAC,MAAM,4BA+CX;IAEF,MAAM,sCAyBL;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
|