@sondor-technology/sondor-components 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +21 -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 +5 -2
- package/dist/components/cron-builder/cron-builder.d.ts.map +1 -1
- package/dist/components/cron-builder/cron-builder.js +83 -15
- 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.d.ts.map +1 -1
- package/dist/components/time-picker/time-picker.js +13 -3
- package/dist/components/time-picker/time-picker.js.map +1 -1
- 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 -5
- package/dist/components/toggle-group/toggle-button.js.map +1 -1
- package/dist/components/toggle-group/toggle-group.d.ts +6 -0
- package/dist/components/toggle-group/toggle-group.d.ts.map +1 -1
- package/dist/components/toggle-group/toggle-group.js +141 -21
- package/dist/components/toggle-group/toggle-group.js.map +1 -1
- 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 -1
- 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 +214 -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 +26 -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 +102 -22
- 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 +17 -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 -5
- package/src/components/toggle-group/toggle-group.ts +158 -42
- 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 -0
- package/src/styles/typography.css +1 -0
|
@@ -0,0 +1,306 @@
|
|
|
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, svg, nothing } from "lit";
|
|
8
|
+
import { customElement, property, state } from "lit/decorators.js";
|
|
9
|
+
import { resetStyles } from "../../styles/reset.js";
|
|
10
|
+
import { StChartBase } from "../chart/chart-base.js";
|
|
11
|
+
import { clamp, normalize } from "../chart/chart.utils.js";
|
|
12
|
+
export const heatMapColors = ["primary", "info", "success", "warning", "error"];
|
|
13
|
+
const MARGIN = { top: 28, right: 8, bottom: 8 };
|
|
14
|
+
/** Matrix heat map. Cell intensity is interpolated between the surface and the chosen color. */
|
|
15
|
+
let StHeatMap = class StHeatMap extends StChartBase {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.rows = [];
|
|
19
|
+
this.columns = [];
|
|
20
|
+
/** `values[row][col]`; null/undefined renders an empty cell. */
|
|
21
|
+
this.values = [];
|
|
22
|
+
this.color = "primary";
|
|
23
|
+
/** Prints each value inside its cell when the cell is large enough. */
|
|
24
|
+
this.showValues = false;
|
|
25
|
+
/** The selected cell, e.g. `{ "row": 1, "col": 2 }`, or null. */
|
|
26
|
+
this.selected = null;
|
|
27
|
+
this._active = null;
|
|
28
|
+
}
|
|
29
|
+
get _range() {
|
|
30
|
+
const flat = this.values.flat().filter((v) => v != null);
|
|
31
|
+
return [this.min ?? Math.min(...flat, Infinity), this.max ?? Math.max(...flat, -Infinity)].map((v) => (Number.isFinite(v) ? v : 0));
|
|
32
|
+
}
|
|
33
|
+
_value(ref) {
|
|
34
|
+
return this.values[ref.row]?.[ref.col] ?? null;
|
|
35
|
+
}
|
|
36
|
+
_same(a, b) {
|
|
37
|
+
return !!a && !!b && a.row === b.row && a.col === b.col;
|
|
38
|
+
}
|
|
39
|
+
_layout() {
|
|
40
|
+
const maxLabel = Math.max(0, ...this.rows.map((r) => r.length));
|
|
41
|
+
const left = clamp(maxLabel * 7 + 16, 40, 140);
|
|
42
|
+
const innerW = Math.max(this._width - left - MARGIN.right, 1);
|
|
43
|
+
const innerH = Math.max(this.height - MARGIN.top - MARGIN.bottom, 1);
|
|
44
|
+
return {
|
|
45
|
+
left,
|
|
46
|
+
cellW: innerW / Math.max(this.columns.length, 1),
|
|
47
|
+
cellH: innerH / Math.max(this.rows.length, 1),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
_describe(ref) {
|
|
51
|
+
return {
|
|
52
|
+
row: ref.row,
|
|
53
|
+
col: ref.col,
|
|
54
|
+
rowLabel: this.rows[ref.row],
|
|
55
|
+
columnLabel: this.columns[ref.col],
|
|
56
|
+
value: this._value(ref),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
_setActive(ref) {
|
|
60
|
+
if (this._same(ref, this._active))
|
|
61
|
+
return;
|
|
62
|
+
this._active = ref;
|
|
63
|
+
if (!ref) {
|
|
64
|
+
this.hideTooltip();
|
|
65
|
+
this.emit("st-chart-leave", {});
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
const { left, cellW, cellH } = this._layout();
|
|
69
|
+
const d = this._describe(ref);
|
|
70
|
+
const value = d.value === null ? "No data" : this.fmt(d.value);
|
|
71
|
+
this.showTooltip({
|
|
72
|
+
x: left + (ref.col + 0.5) * cellW,
|
|
73
|
+
y: MARGIN.top + ref.row * cellH,
|
|
74
|
+
title: `${d.rowLabel} · ${d.columnLabel}`,
|
|
75
|
+
rows: [{ label: "Value", value }],
|
|
76
|
+
}, `${d.rowLabel}, ${d.columnLabel}: ${value}`);
|
|
77
|
+
this.emit("st-chart-hover", d);
|
|
78
|
+
}
|
|
79
|
+
_select(ref) {
|
|
80
|
+
if (!this.selectable)
|
|
81
|
+
return;
|
|
82
|
+
this.selected = this._same(this.selected, ref) ? null : { ...ref };
|
|
83
|
+
this.emit("st-chart-select", { ...this._describe(ref), selected: this.selected !== null });
|
|
84
|
+
}
|
|
85
|
+
_onKeydown(e) {
|
|
86
|
+
if (e.key === "Escape")
|
|
87
|
+
return this._setActive(null);
|
|
88
|
+
if ((e.key === "Enter" || e.key === " ") && this._active) {
|
|
89
|
+
e.preventDefault();
|
|
90
|
+
return this._select(this._active);
|
|
91
|
+
}
|
|
92
|
+
const cur = this._active ?? { row: 0, col: -1 };
|
|
93
|
+
const rows = this.rows.length;
|
|
94
|
+
const cols = this.columns.length;
|
|
95
|
+
if (!rows || !cols)
|
|
96
|
+
return;
|
|
97
|
+
let { row, col } = cur;
|
|
98
|
+
switch (e.key) {
|
|
99
|
+
case "ArrowRight":
|
|
100
|
+
col = Math.min(col + 1, cols - 1);
|
|
101
|
+
break;
|
|
102
|
+
case "ArrowLeft":
|
|
103
|
+
col = Math.max(col - 1, 0);
|
|
104
|
+
break;
|
|
105
|
+
case "ArrowDown":
|
|
106
|
+
row = Math.min(row + 1, rows - 1);
|
|
107
|
+
col = Math.max(col, 0);
|
|
108
|
+
break;
|
|
109
|
+
case "ArrowUp":
|
|
110
|
+
row = Math.max(row - 1, 0);
|
|
111
|
+
col = Math.max(col, 0);
|
|
112
|
+
break;
|
|
113
|
+
case "Home":
|
|
114
|
+
col = 0;
|
|
115
|
+
break;
|
|
116
|
+
case "End":
|
|
117
|
+
col = cols - 1;
|
|
118
|
+
break;
|
|
119
|
+
default: return;
|
|
120
|
+
}
|
|
121
|
+
e.preventDefault();
|
|
122
|
+
this._setActive({ row, col });
|
|
123
|
+
}
|
|
124
|
+
_renderPlot() {
|
|
125
|
+
const { left, cellW, cellH } = this._layout();
|
|
126
|
+
const [lo, hi] = this._range;
|
|
127
|
+
const emphasis = this._active ?? this.selected;
|
|
128
|
+
return svg `
|
|
129
|
+
<svg width=${this._width} height=${this.height} aria-hidden="true">
|
|
130
|
+
${this.columns.map((c, i) => svg `<text class="tick" x=${left + (i + 0.5) * cellW} y=${MARGIN.top - 10} text-anchor="middle">${c}</text>`)}
|
|
131
|
+
${this.rows.map((r, i) => svg `<text class="tick" x=${left - 8} y=${MARGIN.top + (i + 0.5) * cellH} text-anchor="end" dominant-baseline="middle">${r}</text>`)}
|
|
132
|
+
${this.rows.map((_, row) => this.columns.map((_, col) => {
|
|
133
|
+
const ref = { row, col };
|
|
134
|
+
const value = this._value(ref);
|
|
135
|
+
const t = value === null ? 0 : normalize(value, lo, hi);
|
|
136
|
+
const pct = Math.round(t * 100);
|
|
137
|
+
const x = left + col * cellW;
|
|
138
|
+
const y = MARGIN.top + row * cellH;
|
|
139
|
+
const classes = [
|
|
140
|
+
"cell",
|
|
141
|
+
value === null ? "empty" : "",
|
|
142
|
+
this._same(this._active, ref) ? "active" : "",
|
|
143
|
+
this._same(this.selected, ref) ? "chosen" : "",
|
|
144
|
+
].join(" ");
|
|
145
|
+
const label = this.showValues && value !== null && cellW > 36 && cellH > 20
|
|
146
|
+
? svg `<text class="cell-text" x=${x + cellW / 2} y=${y + cellH / 2} text-anchor="middle" dominant-baseline="middle"
|
|
147
|
+
style="fill:${pct > 55 ? "var(--_on-ramp)" : "var(--st-color-text)"}">${this.fmtAxis(value)}</text>`
|
|
148
|
+
: nothing;
|
|
149
|
+
return svg `
|
|
150
|
+
<rect
|
|
151
|
+
class=${classes}
|
|
152
|
+
x=${x} y=${y} width=${cellW} height=${cellH} rx="3"
|
|
153
|
+
style=${value === null ? "" : `fill:color-mix(in srgb, var(--_ramp) ${pct}%, var(--st-color-surface-muted))`}
|
|
154
|
+
opacity=${emphasis && !this._same(emphasis, ref) && value !== null ? 0.7 : 1}
|
|
155
|
+
@pointerenter=${() => this._setActive(ref)}
|
|
156
|
+
@pointerleave=${() => this._setActive(null)}
|
|
157
|
+
@click=${() => this._select(ref)}
|
|
158
|
+
></rect>
|
|
159
|
+
${label}
|
|
160
|
+
`;
|
|
161
|
+
}))}
|
|
162
|
+
</svg>
|
|
163
|
+
`;
|
|
164
|
+
}
|
|
165
|
+
render() {
|
|
166
|
+
const [lo, hi] = this._range;
|
|
167
|
+
return html `
|
|
168
|
+
<div class="chart">
|
|
169
|
+
${this._width > 0
|
|
170
|
+
? html `
|
|
171
|
+
<div
|
|
172
|
+
class="plot"
|
|
173
|
+
tabindex="0"
|
|
174
|
+
role="group"
|
|
175
|
+
aria-roledescription="heat map"
|
|
176
|
+
aria-label=${this.label || "Heat map"}
|
|
177
|
+
@keydown=${this._onKeydown}
|
|
178
|
+
@focus=${() => !this._active && this.rows.length && this.columns.length && this._setActive({ row: 0, col: 0 })}
|
|
179
|
+
@blur=${() => this._setActive(null)}
|
|
180
|
+
>
|
|
181
|
+
${this._renderPlot()} ${this.renderTooltip()}
|
|
182
|
+
</div>
|
|
183
|
+
`
|
|
184
|
+
: nothing}
|
|
185
|
+
${this.hideLegend
|
|
186
|
+
? nothing
|
|
187
|
+
: html `
|
|
188
|
+
<div class="scale" aria-hidden="true">
|
|
189
|
+
<span>${this.fmtAxis(lo)}</span>
|
|
190
|
+
<span class="scale-bar"></span>
|
|
191
|
+
<span>${this.fmtAxis(hi)}</span>
|
|
192
|
+
</div>
|
|
193
|
+
`}
|
|
194
|
+
${this.renderLiveRegion()}
|
|
195
|
+
${this.renderDataTable(["Row", ...this.columns], this.rows.map((r, row) => [
|
|
196
|
+
r,
|
|
197
|
+
...this.columns.map((_, col) => {
|
|
198
|
+
const v = this._value({ row, col });
|
|
199
|
+
return v === null ? "–" : this.fmt(v);
|
|
200
|
+
}),
|
|
201
|
+
]))}
|
|
202
|
+
</div>
|
|
203
|
+
`;
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
StHeatMap.styles = [
|
|
207
|
+
resetStyles,
|
|
208
|
+
StChartBase.baseStyles,
|
|
209
|
+
css `
|
|
210
|
+
:host {
|
|
211
|
+
--_ramp: var(--st-color-primary);
|
|
212
|
+
--_on-ramp: var(--st-color-on-primary);
|
|
213
|
+
}
|
|
214
|
+
:host([color="info"]) {
|
|
215
|
+
--_ramp: var(--st-color-info);
|
|
216
|
+
--_on-ramp: var(--st-color-on-info);
|
|
217
|
+
}
|
|
218
|
+
:host([color="success"]) {
|
|
219
|
+
--_ramp: var(--st-color-success);
|
|
220
|
+
--_on-ramp: var(--st-color-on-success);
|
|
221
|
+
}
|
|
222
|
+
:host([color="warning"]) {
|
|
223
|
+
--_ramp: var(--st-color-warning);
|
|
224
|
+
--_on-ramp: var(--st-color-on-warning);
|
|
225
|
+
}
|
|
226
|
+
:host([color="error"]) {
|
|
227
|
+
--_ramp: var(--st-color-error);
|
|
228
|
+
--_on-ramp: var(--st-color-on-danger);
|
|
229
|
+
}
|
|
230
|
+
.cell {
|
|
231
|
+
stroke: var(--st-color-bg);
|
|
232
|
+
stroke-width: 2;
|
|
233
|
+
cursor: default;
|
|
234
|
+
}
|
|
235
|
+
:host([selectable]) .cell {
|
|
236
|
+
cursor: pointer;
|
|
237
|
+
}
|
|
238
|
+
.cell.empty {
|
|
239
|
+
fill: var(--st-color-surface-muted);
|
|
240
|
+
opacity: 0.4;
|
|
241
|
+
}
|
|
242
|
+
.cell.active {
|
|
243
|
+
stroke: var(--st-color-text);
|
|
244
|
+
}
|
|
245
|
+
.cell.chosen {
|
|
246
|
+
stroke: var(--st-color-text);
|
|
247
|
+
stroke-dasharray: 4 2;
|
|
248
|
+
}
|
|
249
|
+
.cell-text {
|
|
250
|
+
font-size: var(--st-font-size-xs);
|
|
251
|
+
pointer-events: none;
|
|
252
|
+
}
|
|
253
|
+
.scale {
|
|
254
|
+
display: flex;
|
|
255
|
+
align-items: center;
|
|
256
|
+
gap: var(--st-spacing-sm);
|
|
257
|
+
margin-top: var(--st-spacing-sm);
|
|
258
|
+
font-size: var(--st-font-size-xs);
|
|
259
|
+
color: var(--st-color-text-muted);
|
|
260
|
+
}
|
|
261
|
+
.scale-bar {
|
|
262
|
+
flex: 1;
|
|
263
|
+
max-width: 12rem;
|
|
264
|
+
height: 0.5rem;
|
|
265
|
+
border-radius: 999px;
|
|
266
|
+
border: 1px solid var(--st-color-border);
|
|
267
|
+
background: linear-gradient(
|
|
268
|
+
to right,
|
|
269
|
+
var(--st-color-surface-muted),
|
|
270
|
+
var(--_ramp)
|
|
271
|
+
);
|
|
272
|
+
}
|
|
273
|
+
`,
|
|
274
|
+
];
|
|
275
|
+
__decorate([
|
|
276
|
+
property({ type: Array })
|
|
277
|
+
], StHeatMap.prototype, "rows", void 0);
|
|
278
|
+
__decorate([
|
|
279
|
+
property({ type: Array })
|
|
280
|
+
], StHeatMap.prototype, "columns", void 0);
|
|
281
|
+
__decorate([
|
|
282
|
+
property({ type: Array })
|
|
283
|
+
], StHeatMap.prototype, "values", void 0);
|
|
284
|
+
__decorate([
|
|
285
|
+
property({ type: Number })
|
|
286
|
+
], StHeatMap.prototype, "min", void 0);
|
|
287
|
+
__decorate([
|
|
288
|
+
property({ type: Number })
|
|
289
|
+
], StHeatMap.prototype, "max", void 0);
|
|
290
|
+
__decorate([
|
|
291
|
+
property({ type: String, reflect: true })
|
|
292
|
+
], StHeatMap.prototype, "color", void 0);
|
|
293
|
+
__decorate([
|
|
294
|
+
property({ type: Boolean, attribute: "show-values" })
|
|
295
|
+
], StHeatMap.prototype, "showValues", void 0);
|
|
296
|
+
__decorate([
|
|
297
|
+
property({ type: Object })
|
|
298
|
+
], StHeatMap.prototype, "selected", void 0);
|
|
299
|
+
__decorate([
|
|
300
|
+
state()
|
|
301
|
+
], StHeatMap.prototype, "_active", void 0);
|
|
302
|
+
StHeatMap = __decorate([
|
|
303
|
+
customElement("st-heat-map")
|
|
304
|
+
], StHeatMap);
|
|
305
|
+
export { StHeatMap };
|
|
306
|
+
//# sourceMappingURL=heat-map.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heat-map.js","sourceRoot":"","sources":["../../../src/components/heat-map/heat-map.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAC,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAC,WAAW,EAAC,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAC,KAAK,EAAE,SAAS,EAAC,MAAM,yBAAyB,CAAC;AAEzD,MAAM,CAAC,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AAC;IACJ,CAAC;CACF,CAAA;AA5PQ,gBAAM,GAAG;IACd,WAAW;IACX,WAAW,CAAC,UAAU;IACtB,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgEF;CACF,AApEY,CAoEX;AAlFuB;IAAxB,QAAQ,CAAC,EAAC,IAAI,EAAE,KAAK,EAAC,CAAC;uCAAqB;AACpB;IAAxB,QAAQ,CAAC,EAAC,IAAI,EAAE,KAAK,EAAC,CAAC;0CAAwB;AAEvB;IAAxB,QAAQ,CAAC,EAAC,IAAI,EAAE,KAAK,EAAC,CAAC;yCAAkC;AAChC;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;sCAAc;AACb;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;sCAAc;AACE;IAAxC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;wCAAiC;AAEpB;IAApD,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAC,CAAC;6CAAoB;AAE9C;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;2CAAqC;AAE7C;IAAhB,KAAK,EAAE;0CAA4C;AAbzC,SAAS;IADrB,aAAa,CAAC,aAAa,CAAC;GAChB,SAAS,CA2QrB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { StSection } from "../section/section.js";
|
|
2
|
+
/**
|
|
3
|
+
* The opening row of a page: a big title, a short introduction and the main actions. Add a
|
|
4
|
+
* `media` (an image or video) and the row becomes two columns on wide screens, text beside media,
|
|
5
|
+
* stacking on narrow ones.
|
|
6
|
+
*
|
|
7
|
+
* Slots: `eyebrow`, `title`, `lead`, `actions` (buttons), `media` and the default slot for
|
|
8
|
+
* anything extra under the actions (a note, a row of logos).
|
|
9
|
+
* It takes all the row options of `st-section` (tone, space, width, reveal, label).
|
|
10
|
+
*/
|
|
11
|
+
export declare class StHero extends StSection {
|
|
12
|
+
/** With media, shows it before the text instead of after. */
|
|
13
|
+
reverse: boolean;
|
|
14
|
+
private _hasMedia;
|
|
15
|
+
private _hasActions;
|
|
16
|
+
constructor();
|
|
17
|
+
static styles: import("lit").CSSResult[];
|
|
18
|
+
private _onMediaChange;
|
|
19
|
+
render(): import("lit-html").TemplateResult;
|
|
20
|
+
}
|
|
21
|
+
declare global {
|
|
22
|
+
interface HTMLElementTagNameMap {
|
|
23
|
+
"st-hero": StHero;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=hero.d.ts.map
|
|
@@ -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;QACE,KAAK,EAAE,CAAC;QAPV,6DAA6D;QACnB,YAAO,GAAG,KAAK,CAAC;QAEzC,cAAS,GAAG,KAAK,CAAC;QAClB,gBAAW,GAAG,KAAK,CAAC;QA2E7B,mBAAc,GAAG,CAAC,CAAQ,EAAE,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AA6B;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":"
|
|
1
|
+
{"version":3,"file":"icon-paths.d.ts","sourceRoot":"","sources":["../../../src/components/icon/icon-paths.ts"],"names":[],"mappings":"AASA,eAAO,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