@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
|
@@ -4,13 +4,77 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
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
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { LitElement, html, css } from "lit";
|
|
8
|
-
import { customElement, property } from "lit/decorators.js";
|
|
7
|
+
import { LitElement, html, css, nothing } from "lit";
|
|
8
|
+
import { customElement, property, state } from "lit/decorators.js";
|
|
9
9
|
import { resetStyles } from "../../styles/reset.js";
|
|
10
|
+
import "../icon/icon.js";
|
|
11
|
+
/** Longest we wait for the hide transition before closing anyway. */
|
|
12
|
+
const TRANSITION_FALLBACK_MS = 400;
|
|
13
|
+
/**
|
|
14
|
+
* Inline message with an icon, content, a `confirm` action under the message and a dismiss
|
|
15
|
+
* `action` at the end. It can also hide itself after `timeout` milliseconds. Hiding always
|
|
16
|
+
* animates (unless the user prefers reduced motion).
|
|
17
|
+
*
|
|
18
|
+
* Slots: `icon` (start), default (message), `confirm` (below the message, bottom-left, e.g. a
|
|
19
|
+
* "Renew" or "Undo" button) and `action` (top-right, the dismiss control). Set `dismissible` for
|
|
20
|
+
* a ready-made dismiss button, or slot your own into `action`.
|
|
21
|
+
* Dismissing: call `dismiss()`, set `open = false`, click the built-in button, or add a
|
|
22
|
+
* `data-dismiss` attribute to any slotted element, which closes the alert when clicked.
|
|
23
|
+
* Events: `st-close` (bubbles, composed) with `detail.reason` of "dismiss", "timeout" or "api",
|
|
24
|
+
* fired once the alert has finished hiding.
|
|
25
|
+
*/
|
|
10
26
|
let StAlert = class StAlert extends LitElement {
|
|
11
27
|
constructor() {
|
|
12
28
|
super(...arguments);
|
|
13
29
|
this.color = "info";
|
|
30
|
+
/** Whether the alert is shown. Setting it to false hides it with an animation. */
|
|
31
|
+
this.open = true;
|
|
32
|
+
/**
|
|
33
|
+
* Hides the alert automatically after this many milliseconds (0 keeps it). The countdown
|
|
34
|
+
* pauses while the pointer or keyboard focus is inside, so people have time to read and act.
|
|
35
|
+
*/
|
|
36
|
+
this.timeout = 0;
|
|
37
|
+
/** Shows a built-in dismiss button in the `action` slot (your own slotted content replaces it). */
|
|
38
|
+
this.dismissible = false;
|
|
39
|
+
this.dismissLabel = "Dismiss";
|
|
40
|
+
this._phase = "open";
|
|
41
|
+
this._hasAction = false;
|
|
42
|
+
this._hasConfirm = false;
|
|
43
|
+
this._reason = "api";
|
|
44
|
+
this._remaining = 0;
|
|
45
|
+
this._deadline = 0;
|
|
46
|
+
this._paused = false;
|
|
47
|
+
this._onTransitionEnd = (e) => {
|
|
48
|
+
if (e.propertyName === "grid-template-rows" && this._phase === "closing")
|
|
49
|
+
this._finishClose();
|
|
50
|
+
};
|
|
51
|
+
this._pause = () => {
|
|
52
|
+
this._paused = true;
|
|
53
|
+
if (this._timer === undefined)
|
|
54
|
+
return;
|
|
55
|
+
window.clearTimeout(this._timer);
|
|
56
|
+
this._timer = undefined;
|
|
57
|
+
this._remaining = Math.max(this._deadline - Date.now(), 0);
|
|
58
|
+
};
|
|
59
|
+
this._resume = () => {
|
|
60
|
+
this._paused = false;
|
|
61
|
+
if (this.open && this.timeout > 0 && this._phase === "open" && this._timer === undefined) {
|
|
62
|
+
this._startTimer();
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
this._onFocusOut = (e) => {
|
|
66
|
+
// Only resume once focus has left the alert entirely.
|
|
67
|
+
if (!this.contains(e.relatedTarget))
|
|
68
|
+
this._resume();
|
|
69
|
+
};
|
|
70
|
+
// ---------------------------------------------------------------- actions
|
|
71
|
+
this._onClick = (e) => {
|
|
72
|
+
const hit = e
|
|
73
|
+
.composedPath()
|
|
74
|
+
.find((el) => el instanceof HTMLElement && el !== this && el.hasAttribute("data-dismiss"));
|
|
75
|
+
if (hit)
|
|
76
|
+
this.dismiss("dismiss");
|
|
77
|
+
};
|
|
14
78
|
}
|
|
15
79
|
connectedCallback() {
|
|
16
80
|
super.connectedCallback();
|
|
@@ -18,14 +82,125 @@ let StAlert = class StAlert extends LitElement {
|
|
|
18
82
|
if (!this.hasAttribute("role")) {
|
|
19
83
|
this.setAttribute("role", "alert");
|
|
20
84
|
}
|
|
85
|
+
this.addEventListener("click", this._onClick);
|
|
86
|
+
this.addEventListener("pointerenter", this._pause);
|
|
87
|
+
this.addEventListener("pointerleave", this._resume);
|
|
88
|
+
this.addEventListener("focusin", this._pause);
|
|
89
|
+
this.addEventListener("focusout", this._onFocusOut);
|
|
90
|
+
}
|
|
91
|
+
disconnectedCallback() {
|
|
92
|
+
this.removeEventListener("click", this._onClick);
|
|
93
|
+
this.removeEventListener("pointerenter", this._pause);
|
|
94
|
+
this.removeEventListener("pointerleave", this._resume);
|
|
95
|
+
this.removeEventListener("focusin", this._pause);
|
|
96
|
+
this.removeEventListener("focusout", this._onFocusOut);
|
|
97
|
+
this._clearTimers();
|
|
98
|
+
super.disconnectedCallback();
|
|
99
|
+
}
|
|
100
|
+
/** Hides the alert with an animation. Resolves nothing; listen for `st-close`. */
|
|
101
|
+
dismiss(reason = "api") {
|
|
102
|
+
if (this._phase !== "open")
|
|
103
|
+
return;
|
|
104
|
+
this._reason = reason;
|
|
105
|
+
this.open = false;
|
|
106
|
+
}
|
|
107
|
+
willUpdate(changed) {
|
|
108
|
+
if (changed.has("open")) {
|
|
109
|
+
if (!this.open && this._phase === "open") {
|
|
110
|
+
// The first render of an alert that starts closed should not animate.
|
|
111
|
+
this._phase = this.hasUpdated ? "closing" : "closed";
|
|
112
|
+
}
|
|
113
|
+
else if (this.open) {
|
|
114
|
+
this._phase = "open";
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
updated(changed) {
|
|
119
|
+
this.toggleAttribute("hidden", this._phase === "closed");
|
|
120
|
+
if (changed.has("open") || changed.has("timeout"))
|
|
121
|
+
this._restartTimer();
|
|
122
|
+
if (this._phase === "closing" && !this._fallback)
|
|
123
|
+
this._beginClose();
|
|
124
|
+
}
|
|
125
|
+
// ----------------------------------------------------------------- closing
|
|
126
|
+
_beginClose() {
|
|
127
|
+
this._clearTimers();
|
|
128
|
+
const reduce = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
129
|
+
if (reduce) {
|
|
130
|
+
this._finishClose();
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
// transitionend normally finishes the close; this guarantees it if it never fires.
|
|
134
|
+
this._fallback = window.setTimeout(() => this._finishClose(), TRANSITION_FALLBACK_MS);
|
|
135
|
+
}
|
|
136
|
+
_finishClose() {
|
|
137
|
+
window.clearTimeout(this._fallback);
|
|
138
|
+
this._fallback = undefined;
|
|
139
|
+
if (this._phase !== "closing")
|
|
140
|
+
return;
|
|
141
|
+
this._phase = "closed";
|
|
142
|
+
const reason = this._reason;
|
|
143
|
+
this._reason = "api";
|
|
144
|
+
this.dispatchEvent(new CustomEvent("st-close", { detail: { reason }, bubbles: true, composed: true }));
|
|
145
|
+
}
|
|
146
|
+
_clearTimers() {
|
|
147
|
+
window.clearTimeout(this._timer);
|
|
148
|
+
window.clearTimeout(this._fallback);
|
|
149
|
+
this._timer = undefined;
|
|
150
|
+
this._fallback = undefined;
|
|
151
|
+
}
|
|
152
|
+
// ----------------------------------------------------------------- timeout
|
|
153
|
+
_restartTimer() {
|
|
154
|
+
window.clearTimeout(this._timer);
|
|
155
|
+
this._timer = undefined;
|
|
156
|
+
if (!this.open || this.timeout <= 0 || this._phase !== "open")
|
|
157
|
+
return;
|
|
158
|
+
this._remaining = this.timeout;
|
|
159
|
+
// A timer that restarts while the user is already interacting stays paused.
|
|
160
|
+
if (!this._paused)
|
|
161
|
+
this._startTimer();
|
|
162
|
+
}
|
|
163
|
+
_startTimer() {
|
|
164
|
+
window.clearTimeout(this._timer);
|
|
165
|
+
this._deadline = Date.now() + this._remaining;
|
|
166
|
+
this._timer = window.setTimeout(() => this.dismiss("timeout"), this._remaining);
|
|
21
167
|
}
|
|
22
168
|
render() {
|
|
23
169
|
return html `
|
|
24
|
-
<div class="
|
|
25
|
-
<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
170
|
+
<div class="wrap ${this._phase === "closing" ? "closing" : ""}" @transitionend=${this._onTransitionEnd}>
|
|
171
|
+
<div class="clip">
|
|
172
|
+
<div class="alert">
|
|
173
|
+
<div class="icon-container">
|
|
174
|
+
<slot name="icon"></slot>
|
|
175
|
+
</div>
|
|
176
|
+
<div class="content">
|
|
177
|
+
<slot></slot>
|
|
178
|
+
<div class="confirm" ?hidden=${!this._hasConfirm}>
|
|
179
|
+
<slot
|
|
180
|
+
name="confirm"
|
|
181
|
+
@slotchange=${(e) => (this._hasConfirm = e.target.assignedNodes().length > 0)}
|
|
182
|
+
></slot>
|
|
183
|
+
</div>
|
|
184
|
+
</div>
|
|
185
|
+
<div class="action" ?hidden=${!this._hasAction && !this.dismissible}>
|
|
186
|
+
<slot
|
|
187
|
+
name="action"
|
|
188
|
+
@slotchange=${(e) => (this._hasAction = e.target.assignedNodes().length > 0)}
|
|
189
|
+
>
|
|
190
|
+
${this.dismissible
|
|
191
|
+
? html `<button
|
|
192
|
+
class="dismiss"
|
|
193
|
+
type="button"
|
|
194
|
+
aria-label=${this.dismissLabel}
|
|
195
|
+
@click=${() => this.dismiss("dismiss")}
|
|
196
|
+
>
|
|
197
|
+
<st-icon name="x" size="sm" aria-hidden="true"></st-icon>
|
|
198
|
+
</button>`
|
|
199
|
+
: nothing}
|
|
200
|
+
</slot>
|
|
201
|
+
</div>
|
|
202
|
+
</div>
|
|
203
|
+
</div>
|
|
29
204
|
</div>
|
|
30
205
|
`;
|
|
31
206
|
}
|
|
@@ -34,11 +209,7 @@ StAlert.styles = [
|
|
|
34
209
|
resetStyles,
|
|
35
210
|
css `
|
|
36
211
|
:host {
|
|
37
|
-
display:
|
|
38
|
-
gap: var(--st-spacing-md);
|
|
39
|
-
padding: var(--st-spacing-md);
|
|
40
|
-
border-radius: 6px;
|
|
41
|
-
border: 1px solid transparent;
|
|
212
|
+
display: block;
|
|
42
213
|
font-size: var(--st-font-size-base);
|
|
43
214
|
line-height: 1.5;
|
|
44
215
|
|
|
@@ -48,7 +219,7 @@ StAlert.styles = [
|
|
|
48
219
|
--_alert-text: var(--st-color-info);
|
|
49
220
|
--_alert-icon: var(--st-color-info);
|
|
50
221
|
}
|
|
51
|
-
|
|
222
|
+
|
|
52
223
|
/* State Modifiers */
|
|
53
224
|
:host([color="error"]) {
|
|
54
225
|
--_alert-bg: var(--st-color-error-bg);
|
|
@@ -71,10 +242,44 @@ StAlert.styles = [
|
|
|
71
242
|
--_alert-text: var(--st-color-warning);
|
|
72
243
|
}
|
|
73
244
|
|
|
74
|
-
/*
|
|
75
|
-
|
|
245
|
+
/*
|
|
246
|
+
* Hiding animates grid rows from 1fr to 0fr, which collapses the alert's height smoothly
|
|
247
|
+
* without measuring it in JavaScript. The padding and border live one level deeper so they
|
|
248
|
+
* collapse too.
|
|
249
|
+
*/
|
|
250
|
+
.wrap {
|
|
251
|
+
display: grid;
|
|
252
|
+
grid-template-rows: 1fr;
|
|
253
|
+
opacity: 1;
|
|
254
|
+
transition:
|
|
255
|
+
grid-template-rows 0.25s ease,
|
|
256
|
+
opacity 0.2s ease;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.wrap.closing {
|
|
260
|
+
grid-template-rows: 0fr;
|
|
261
|
+
opacity: 0;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
@media (prefers-reduced-motion: reduce) {
|
|
265
|
+
.wrap {
|
|
266
|
+
transition: none;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.clip {
|
|
271
|
+
min-height: 0;
|
|
272
|
+
overflow: hidden;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.alert {
|
|
276
|
+
display: flex;
|
|
277
|
+
align-items: flex-start;
|
|
278
|
+
gap: var(--st-spacing-md);
|
|
279
|
+
padding: var(--st-spacing-md);
|
|
280
|
+
border: 1px solid var(--_alert-border);
|
|
281
|
+
border-radius: var(--st-radius-sm);
|
|
76
282
|
background-color: var(--_alert-bg);
|
|
77
|
-
border-color: var(--_alert-border);
|
|
78
283
|
color: var(--_alert-text);
|
|
79
284
|
}
|
|
80
285
|
|
|
@@ -102,12 +307,76 @@ StAlert.styles = [
|
|
|
102
307
|
flex-direction: column;
|
|
103
308
|
gap: var(--st-spacing-xs);
|
|
104
309
|
flex: 1;
|
|
310
|
+
min-width: 0;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/* Confirm Slot: sits under the message, bottom-left */
|
|
314
|
+
.confirm {
|
|
315
|
+
display: flex;
|
|
316
|
+
flex-wrap: wrap;
|
|
317
|
+
align-items: center;
|
|
318
|
+
gap: var(--st-spacing-sm);
|
|
319
|
+
margin-top: var(--st-spacing-xs);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/* Action Slot: the dismiss control, top-right */
|
|
323
|
+
.action {
|
|
324
|
+
display: flex;
|
|
325
|
+
flex-shrink: 0;
|
|
326
|
+
align-items: center;
|
|
327
|
+
gap: var(--st-spacing-sm);
|
|
328
|
+
align-self: flex-start;
|
|
329
|
+
margin: calc(var(--st-spacing-xs) * -1) calc(var(--st-spacing-xs) * -1) 0 0;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
[hidden] {
|
|
333
|
+
display: none !important;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.dismiss {
|
|
337
|
+
display: inline-flex;
|
|
338
|
+
padding: var(--st-spacing-xs);
|
|
339
|
+
border: 0;
|
|
340
|
+
border-radius: var(--st-radius-sm);
|
|
341
|
+
background: none;
|
|
342
|
+
color: inherit;
|
|
343
|
+
cursor: pointer;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.dismiss:hover {
|
|
347
|
+
background: color-mix(in srgb, var(--_alert-border) 18%, transparent);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.dismiss:focus-visible {
|
|
351
|
+
outline: 2px solid var(--_alert-border);
|
|
352
|
+
outline-offset: 1px;
|
|
105
353
|
}
|
|
106
354
|
`,
|
|
107
355
|
];
|
|
108
356
|
__decorate([
|
|
109
357
|
property({ type: String, reflect: true })
|
|
110
358
|
], StAlert.prototype, "color", void 0);
|
|
359
|
+
__decorate([
|
|
360
|
+
property({ type: Boolean, reflect: true })
|
|
361
|
+
], StAlert.prototype, "open", void 0);
|
|
362
|
+
__decorate([
|
|
363
|
+
property({ type: Number })
|
|
364
|
+
], StAlert.prototype, "timeout", void 0);
|
|
365
|
+
__decorate([
|
|
366
|
+
property({ type: Boolean, reflect: true })
|
|
367
|
+
], StAlert.prototype, "dismissible", void 0);
|
|
368
|
+
__decorate([
|
|
369
|
+
property({ type: String, attribute: "dismiss-label" })
|
|
370
|
+
], StAlert.prototype, "dismissLabel", void 0);
|
|
371
|
+
__decorate([
|
|
372
|
+
state()
|
|
373
|
+
], StAlert.prototype, "_phase", void 0);
|
|
374
|
+
__decorate([
|
|
375
|
+
state()
|
|
376
|
+
], StAlert.prototype, "_hasAction", void 0);
|
|
377
|
+
__decorate([
|
|
378
|
+
state()
|
|
379
|
+
], StAlert.prototype, "_hasConfirm", void 0);
|
|
111
380
|
StAlert = __decorate([
|
|
112
381
|
customElement("st-alert")
|
|
113
382
|
], StAlert);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.js","sourceRoot":"","sources":["../../../src/components/alert/alert.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,UAAU,EAAE,IAAI,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"alert.js","sourceRoot":"","sources":["../../../src/components/alert/alert.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAiB,MAAM,KAAK,CAAC;AACnE,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAElD,OAAO,iBAAiB,CAAC;AAIzB,qEAAqE;AACrE,MAAM,sBAAsB,GAAG,GAAG,CAAC;AAEnC;;;;;;;;;;;;GAYG;AAEI,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,UAAU;IAAhC;;QACoC,UAAK,GAAe,MAAM,CAAC;QACpE,kFAAkF;QACxC,SAAI,GAAG,IAAI,CAAC;QACtD;;;WAGG;QACuB,YAAO,GAAG,CAAC,CAAC;QACtC,mGAAmG;QACzD,gBAAW,GAAG,KAAK,CAAC;QACR,iBAAY,GAAG,SAAS,CAAC;QAE9D,WAAM,GAAU,MAAM,CAAC;QACvB,eAAU,GAAG,KAAK,CAAC;QACnB,gBAAW,GAAG,KAAK,CAAC;QAE7B,YAAO,GAAqB,KAAK,CAAC;QAGlC,eAAU,GAAG,CAAC,CAAC;QACf,cAAS,GAAG,CAAC,CAAC;QACd,YAAO,GAAG,KAAK,CAAC;QAqNhB,qBAAgB,GAAG,CAAC,CAAkB,EAAE,EAAE;YAChD,IAA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;;;;;;;;;;;;;;KAgJF;CACF,AAnJY,CAmJX;AA1KuC;IAAxC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;sCAA4B;AAE1B;IAAzC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;qCAAa;AAK5B;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;wCAAa;AAEI;IAAzC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;4CAAqB;AACR;IAArD,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAC,CAAC;6CAA0B;AAE9D;IAAhB,KAAK,EAAE;uCAAgC;AACvB;IAAhB,KAAK,EAAE;2CAA4B;AACnB;IAAhB,KAAK,EAAE;4CAA6B;AAf1B,OAAO;IADnB,aAAa,CAAC,UAAU,CAAC;GACb,OAAO,CAyVnB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import "../icon/icon.js";
|
|
3
|
+
export declare class StAvatar extends LitElement {
|
|
4
|
+
src: string;
|
|
5
|
+
/** Full name; used for the accessible name and to derive initials when there is no image. */
|
|
6
|
+
name: string;
|
|
7
|
+
size: "sm" | "md" | "lg";
|
|
8
|
+
private _failed;
|
|
9
|
+
static styles: import("lit").CSSResult[];
|
|
10
|
+
protected willUpdate(changed: Map<string, unknown>): void;
|
|
11
|
+
/** First letters of the first and last words, uppercased. */
|
|
12
|
+
get initials(): string;
|
|
13
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
14
|
+
}
|
|
15
|
+
declare global {
|
|
16
|
+
interface HTMLElementTagNameMap {
|
|
17
|
+
"st-avatar": StAvatar;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAY,MAAM,KAAK,CAAC;AAG1C,OAAO,iBAAiB,CAAC;AAEzB,qBACa,QAAS,SAAQ,UAAU;IACZ,GAAG,SAAM;IACnC,6FAA6F;IACnE,IAAI,SAAM;IACK,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAQ;IAChE,OAAO,CAAC,OAAO,CAAS;IAEjC,MAAM,CAAC,MAAM,4BAsCX;IAEF,SAAS,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,QAEjD;IAED,6DAA6D;IAC7D,IAAI,QAAQ,WAKX;IAED,MAAM,yCAWL;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
|
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
let StAvatar = class StAvatar extends LitElement {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.src = "";
|
|
15
|
+
/** Full name; used for the accessible name and to derive initials when there is no image. */
|
|
16
|
+
this.name = "";
|
|
17
|
+
this.size = "md";
|
|
18
|
+
this._failed = false;
|
|
19
|
+
}
|
|
20
|
+
willUpdate(changed) {
|
|
21
|
+
if (changed.has("src"))
|
|
22
|
+
this._failed = false;
|
|
23
|
+
}
|
|
24
|
+
/** First letters of the first and last words, uppercased. */
|
|
25
|
+
get initials() {
|
|
26
|
+
const parts = this.name.trim().split(/\s+/).filter(Boolean);
|
|
27
|
+
if (!parts.length)
|
|
28
|
+
return "";
|
|
29
|
+
const last = parts.length > 1 ? parts[parts.length - 1][0] : "";
|
|
30
|
+
return (parts[0][0] + last).toUpperCase();
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
|
+
const showImage = this.src && !this._failed;
|
|
34
|
+
return html `
|
|
35
|
+
<div class="avatar" role="img" aria-label=${this.name || "Avatar"}>
|
|
36
|
+
${showImage
|
|
37
|
+
? html `<img src=${this.src} alt="" @error=${() => (this._failed = true)} />`
|
|
38
|
+
: this.initials
|
|
39
|
+
? html `<span aria-hidden="true">${this.initials}</span>`
|
|
40
|
+
: html `<st-icon name="user" size="sm" aria-hidden="true"></st-icon>`}
|
|
41
|
+
</div>
|
|
42
|
+
`;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
StAvatar.styles = [
|
|
46
|
+
resetStyles,
|
|
47
|
+
css `
|
|
48
|
+
:host {
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
--_size: 2.5rem;
|
|
51
|
+
width: var(--_size);
|
|
52
|
+
height: var(--_size);
|
|
53
|
+
flex-shrink: 0;
|
|
54
|
+
}
|
|
55
|
+
:host([size="sm"]) {
|
|
56
|
+
--_size: 1.75rem;
|
|
57
|
+
font-size: var(--st-font-size-xs);
|
|
58
|
+
}
|
|
59
|
+
:host([size="lg"]) {
|
|
60
|
+
--_size: 3.5rem;
|
|
61
|
+
font-size: 1.25rem;
|
|
62
|
+
}
|
|
63
|
+
.avatar {
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
width: 100%;
|
|
68
|
+
height: 100%;
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
border-radius: 50%;
|
|
71
|
+
background: var(--st-color-primary-bg);
|
|
72
|
+
color: var(--st-color-primary-text);
|
|
73
|
+
border: 1px solid var(--st-color-border);
|
|
74
|
+
font-weight: var(--st-font-weight-medium);
|
|
75
|
+
user-select: none;
|
|
76
|
+
}
|
|
77
|
+
img {
|
|
78
|
+
width: 100%;
|
|
79
|
+
height: 100%;
|
|
80
|
+
object-fit: cover;
|
|
81
|
+
}
|
|
82
|
+
`,
|
|
83
|
+
];
|
|
84
|
+
__decorate([
|
|
85
|
+
property({ type: String })
|
|
86
|
+
], StAvatar.prototype, "src", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
property({ type: String })
|
|
89
|
+
], StAvatar.prototype, "name", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
property({ type: String, reflect: true })
|
|
92
|
+
], StAvatar.prototype, "size", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
state()
|
|
95
|
+
], StAvatar.prototype, "_failed", void 0);
|
|
96
|
+
StAvatar = __decorate([
|
|
97
|
+
customElement("st-avatar")
|
|
98
|
+
], StAvatar);
|
|
99
|
+
export { StAvatar };
|
|
100
|
+
//# sourceMappingURL=avatar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.js","sourceRoot":"","sources":["../../../src/components/avatar/avatar.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,UAAU,EAAE,IAAI,EAAE,GAAG,EAAC,MAAM,KAAK,CAAC;AAC1C,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAClD,OAAO,i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I,CAAC,QAAQ,SAAS;gBACxD,CAAC,CAAC,IAAI,CAAA,8DAA8D;;KAE3E,CAAC;IACJ,CAAC;CACF,CAAA;AAhEQ,eAAM,GAAG;IACd,WAAW;IACX,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAmCF;CACF,AAtCY,CAsCX;AA5CwB;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;qCAAU;AAET;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;sCAAW;AACK;IAAxC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;sCAAiC;AACxD;IAAhB,KAAK,EAAE;yCAAyB;AALtB,QAAQ;IADpB,aAAa,CAAC,WAAW,CAAC;GACd,QAAQ,CAuEpB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import "../icon/icon.js";
|
|
3
|
+
/**
|
|
4
|
+
* A button that appears once the reader has scrolled down, and takes them back to the top. Focus
|
|
5
|
+
* moves to the top of the page too, so keyboard and screen reader users are not left behind.
|
|
6
|
+
*
|
|
7
|
+
* Events: `st-back-to-top` when pressed.
|
|
8
|
+
*/
|
|
9
|
+
export declare class StBackToTop extends LitElement {
|
|
10
|
+
/** How far (in pixels) the page must be scrolled before the button appears. */
|
|
11
|
+
threshold: number;
|
|
12
|
+
/** Accessible name and tooltip. */
|
|
13
|
+
label: string;
|
|
14
|
+
position: "right" | "left";
|
|
15
|
+
private _visible;
|
|
16
|
+
private _frame;
|
|
17
|
+
static styles: import("lit").CSSResult[];
|
|
18
|
+
connectedCallback(): void;
|
|
19
|
+
disconnectedCallback(): void;
|
|
20
|
+
private _schedule;
|
|
21
|
+
private _onClick;
|
|
22
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
23
|
+
}
|
|
24
|
+
declare global {
|
|
25
|
+
interface HTMLElementTagNameMap {
|
|
26
|
+
"st-back-to-top": StBackToTop;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=back-to-top.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"back-to-top.d.ts","sourceRoot":"","sources":["../../../src/components/back-to-top/back-to-top.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAY,MAAM,KAAK,CAAC;AAG1C,OAAO,iBAAiB,CAAC;AAEzB;;;;;GAKG;AACH,qBACa,WAAY,SAAQ,UAAU;IACzC,+EAA+E;IACrD,SAAS,SAAO;IAC1C,mCAAmC;IACT,KAAK,SAAiB;IACP,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAW;IAErE,OAAO,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,MAAM,CAAK;IAEnB,MAAM,CAAC,MAAM,4BA8DX;IAEF,iBAAiB,SAIhB;IAED,oBAAoB,SAInB;IAED,OAAO,CAAC,SAAS,CAKf;IAEF,OAAO,CAAC,QAAQ;IAehB,MAAM,yCAYL;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,WAAW,CAAC;KAC/B;CACF"}
|