@sondor-technology/sondor-components 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/accordion.constants.d.ts +5 -0
- package/dist/components/accordion/accordion.constants.d.ts.map +1 -0
- package/dist/components/accordion/accordion.constants.js +3 -0
- package/dist/components/accordion/accordion.constants.js.map +1 -0
- package/dist/components/accordion/accordion.d.ts +29 -0
- package/dist/components/accordion/accordion.d.ts.map +1 -0
- package/dist/components/accordion/accordion.js +226 -0
- package/dist/components/accordion/accordion.js.map +1 -0
- package/dist/components/alert/alert.constants.d.ts +2 -0
- package/dist/components/alert/alert.constants.d.ts.map +1 -1
- package/dist/components/alert/alert.d.ts +50 -2
- package/dist/components/alert/alert.d.ts.map +1 -1
- package/dist/components/alert/alert.js +285 -16
- package/dist/components/alert/alert.js.map +1 -1
- package/dist/components/avatar/avatar.d.ts +20 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/avatar/avatar.js +100 -0
- package/dist/components/avatar/avatar.js.map +1 -0
- package/dist/components/back-to-top/back-to-top.d.ts +29 -0
- package/dist/components/back-to-top/back-to-top.d.ts.map +1 -0
- package/dist/components/back-to-top/back-to-top.js +149 -0
- package/dist/components/back-to-top/back-to-top.js.map +1 -0
- package/dist/components/bar-chart/bar-chart.d.ts +42 -0
- package/dist/components/bar-chart/bar-chart.d.ts.map +1 -0
- package/dist/components/bar-chart/bar-chart.js +298 -0
- package/dist/components/bar-chart/bar-chart.js.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.js +2 -2
- package/dist/components/button/button.d.ts +1 -0
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/button.js +8 -8
- package/dist/components/button/button.js.map +1 -1
- package/dist/components/button-group/button-group.js +4 -4
- package/dist/components/calendar/calendar.d.ts.map +1 -1
- package/dist/components/calendar/calendar.js +11 -9
- package/dist/components/calendar/calendar.js.map +1 -1
- package/dist/components/chart/chart-base.d.ts +59 -0
- package/dist/components/chart/chart-base.d.ts.map +1 -0
- package/dist/components/chart/chart-base.js +261 -0
- package/dist/components/chart/chart-base.js.map +1 -0
- package/dist/components/chart/chart.utils.d.ts +27 -0
- package/dist/components/chart/chart.utils.d.ts.map +1 -0
- package/dist/components/chart/chart.utils.js +117 -0
- package/dist/components/chart/chart.utils.js.map +1 -0
- package/dist/components/code-block/code-block.d.ts +5 -0
- package/dist/components/code-block/code-block.d.ts.map +1 -1
- package/dist/components/code-block/code-block.js +34 -24
- package/dist/components/code-block/code-block.js.map +1 -1
- package/dist/components/consent/consent.d.ts +63 -0
- package/dist/components/consent/consent.d.ts.map +1 -0
- package/dist/components/consent/consent.js +327 -0
- package/dist/components/consent/consent.js.map +1 -0
- package/dist/components/consent/consent.utils.d.ts +36 -0
- package/dist/components/consent/consent.utils.d.ts.map +1 -0
- package/dist/components/consent/consent.utils.js +82 -0
- package/dist/components/consent/consent.utils.js.map +1 -0
- package/dist/components/contact/contact.d.ts +22 -0
- package/dist/components/contact/contact.d.ts.map +1 -0
- package/dist/components/contact/contact.js +83 -0
- package/dist/components/contact/contact.js.map +1 -0
- package/dist/components/container/container.d.ts +20 -0
- package/dist/components/container/container.d.ts.map +1 -0
- package/dist/components/container/container.js +68 -0
- package/dist/components/container/container.js.map +1 -0
- package/dist/components/content-card/content-card.js +4 -4
- package/dist/components/context-menu/context-menu.d.ts +89 -0
- package/dist/components/context-menu/context-menu.d.ts.map +1 -0
- package/dist/components/context-menu/context-menu.js +414 -0
- package/dist/components/context-menu/context-menu.js.map +1 -0
- package/dist/components/cron-builder/cron-builder.d.ts.map +1 -1
- package/dist/components/cron-builder/cron-builder.js +13 -11
- package/dist/components/cron-builder/cron-builder.js.map +1 -1
- package/dist/components/cta/cta.d.ts +20 -0
- package/dist/components/cta/cta.d.ts.map +1 -0
- package/dist/components/cta/cta.js +64 -0
- package/dist/components/cta/cta.js.map +1 -0
- package/dist/components/drawer/drawer.js +6 -6
- package/dist/components/faq/faq-item.d.ts +22 -0
- package/dist/components/faq/faq-item.d.ts.map +1 -0
- package/dist/components/faq/faq-item.js +117 -0
- package/dist/components/faq/faq-item.js.map +1 -0
- package/dist/components/faq/faq.d.ts +18 -0
- package/dist/components/faq/faq.d.ts.map +1 -0
- package/dist/components/faq/faq.js +38 -0
- package/dist/components/faq/faq.js.map +1 -0
- package/dist/components/feature-grid/feature-grid.d.ts +22 -0
- package/dist/components/feature-grid/feature-grid.d.ts.map +1 -0
- package/dist/components/feature-grid/feature-grid.js +55 -0
- package/dist/components/feature-grid/feature-grid.js.map +1 -0
- package/dist/components/feature-grid/feature.d.ts +18 -0
- package/dist/components/feature-grid/feature.d.ts.map +1 -0
- package/dist/components/feature-grid/feature.js +91 -0
- package/dist/components/feature-grid/feature.js.map +1 -0
- package/dist/components/field/field.js +2 -2
- package/dist/components/footer/footer.js +4 -4
- package/dist/components/form/form-reset.d.ts +7 -0
- package/dist/components/form/form-reset.d.ts.map +1 -0
- package/dist/components/form/form-reset.js +47 -0
- package/dist/components/form/form-reset.js.map +1 -0
- package/dist/components/form/form.d.ts +5 -0
- package/dist/components/form/form.d.ts.map +1 -1
- package/dist/components/form/form.js +17 -3
- package/dist/components/form/form.js.map +1 -1
- package/dist/components/grid/grid.d.ts +5 -0
- package/dist/components/grid/grid.d.ts.map +1 -1
- package/dist/components/grid/grid.js +86 -4
- package/dist/components/grid/grid.js.map +1 -1
- package/dist/components/heat-map/heat-map.d.ts +39 -0
- package/dist/components/heat-map/heat-map.d.ts.map +1 -0
- package/dist/components/heat-map/heat-map.js +306 -0
- package/dist/components/heat-map/heat-map.js.map +1 -0
- package/dist/components/hero/hero.d.ts +26 -0
- package/dist/components/hero/hero.d.ts.map +1 -0
- package/dist/components/hero/hero.js +132 -0
- package/dist/components/hero/hero.js.map +1 -0
- package/dist/components/icon/icon-paths.d.ts +84 -0
- package/dist/components/icon/icon-paths.d.ts.map +1 -1
- package/dist/components/icon/icon-paths.js +89 -0
- package/dist/components/icon/icon-paths.js.map +1 -1
- package/dist/components/icon/icon.d.ts +2 -0
- package/dist/components/icon/icon.d.ts.map +1 -1
- package/dist/components/icon/icon.js +10 -1
- package/dist/components/icon/icon.js.map +1 -1
- package/dist/components/image/image.d.ts +31 -0
- package/dist/components/image/image.d.ts.map +1 -0
- package/dist/components/image/image.js +179 -0
- package/dist/components/image/image.js.map +1 -0
- package/dist/components/input/input.js +4 -4
- package/dist/components/lazy/lazy.d.ts +34 -0
- package/dist/components/lazy/lazy.d.ts.map +1 -0
- package/dist/components/lazy/lazy.js +104 -0
- package/dist/components/lazy/lazy.js.map +1 -0
- package/dist/components/line-chart/line-chart.d.ts +37 -0
- package/dist/components/line-chart/line-chart.d.ts.map +1 -0
- package/dist/components/line-chart/line-chart.js +271 -0
- package/dist/components/line-chart/line-chart.js.map +1 -0
- package/dist/components/list/list-item.d.ts +45 -0
- package/dist/components/list/list-item.d.ts.map +1 -0
- package/dist/components/list/list-item.js +263 -0
- package/dist/components/list/list-item.js.map +1 -0
- package/dist/components/list/list.d.ts +50 -0
- package/dist/components/list/list.d.ts.map +1 -0
- package/dist/components/list/list.js +161 -0
- package/dist/components/list/list.js.map +1 -0
- package/dist/components/logo-cloud/logo-cloud.d.ts +19 -0
- package/dist/components/logo-cloud/logo-cloud.d.ts.map +1 -0
- package/dist/components/logo-cloud/logo-cloud.js +66 -0
- package/dist/components/logo-cloud/logo-cloud.js.map +1 -0
- package/dist/components/modal/modal.d.ts +12 -0
- package/dist/components/modal/modal.d.ts.map +1 -1
- package/dist/components/modal/modal.js +40 -11
- package/dist/components/modal/modal.js.map +1 -1
- package/dist/components/page-layout/page-layout.js +8 -8
- package/dist/components/pagination/pagination.d.ts +15 -0
- package/dist/components/pagination/pagination.d.ts.map +1 -0
- package/dist/components/pagination/pagination.js +126 -0
- package/dist/components/pagination/pagination.js.map +1 -0
- package/dist/components/pagination/pagination.utils.d.ts +3 -0
- package/dist/components/pagination/pagination.utils.d.ts.map +1 -0
- package/dist/components/pagination/pagination.utils.js +19 -0
- package/dist/components/pagination/pagination.utils.js.map +1 -0
- package/dist/components/pie-chart/pie-chart.d.ts +33 -0
- package/dist/components/pie-chart/pie-chart.d.ts.map +1 -0
- package/dist/components/pie-chart/pie-chart.js +233 -0
- package/dist/components/pie-chart/pie-chart.js.map +1 -0
- package/dist/components/pin-input/pin-input.js +4 -4
- package/dist/components/popover/popover.d.ts.map +1 -1
- package/dist/components/popover/popover.js +1 -3
- package/dist/components/popover/popover.js.map +1 -1
- package/dist/components/post-list/post-card.d.ts +16 -0
- package/dist/components/post-list/post-card.d.ts.map +1 -0
- package/dist/components/post-list/post-card.js +22 -0
- package/dist/components/post-list/post-card.js.map +1 -0
- package/dist/components/post-list/post-list.d.ts +17 -0
- package/dist/components/post-list/post-list.d.ts.map +1 -0
- package/dist/components/post-list/post-list.js +23 -0
- package/dist/components/post-list/post-list.js.map +1 -0
- package/dist/components/pricing/pricing-tier.d.ts +23 -0
- package/dist/components/pricing/pricing-tier.d.ts.map +1 -0
- package/dist/components/pricing/pricing-tier.js +144 -0
- package/dist/components/pricing/pricing-tier.js.map +1 -0
- package/dist/components/pricing/pricing.d.ts +18 -0
- package/dist/components/pricing/pricing.d.ts.map +1 -0
- package/dist/components/pricing/pricing.js +38 -0
- package/dist/components/pricing/pricing.js.map +1 -0
- package/dist/components/progress/progress.d.ts +17 -0
- package/dist/components/progress/progress.d.ts.map +1 -0
- package/dist/components/progress/progress.js +109 -0
- package/dist/components/progress/progress.js.map +1 -0
- package/dist/components/project-grid/project-card.d.ts +17 -0
- package/dist/components/project-grid/project-card.d.ts.map +1 -0
- package/dist/components/project-grid/project-card.js +23 -0
- package/dist/components/project-grid/project-card.js.map +1 -0
- package/dist/components/project-grid/project-grid.d.ts +17 -0
- package/dist/components/project-grid/project-grid.d.ts.map +1 -0
- package/dist/components/project-grid/project-grid.js +23 -0
- package/dist/components/project-grid/project-grid.js.map +1 -0
- package/dist/components/radio/radio.js +1 -1
- package/dist/components/reveal/reveal.constants.d.ts +10 -0
- package/dist/components/reveal/reveal.constants.d.ts.map +1 -0
- package/dist/components/reveal/reveal.constants.js +11 -0
- package/dist/components/reveal/reveal.constants.js.map +1 -0
- package/dist/components/reveal/reveal.d.ts +64 -0
- package/dist/components/reveal/reveal.d.ts.map +1 -0
- package/dist/components/reveal/reveal.js +352 -0
- package/dist/components/reveal/reveal.js.map +1 -0
- package/dist/components/scroll-progress/scroll-progress.d.ts +32 -0
- package/dist/components/scroll-progress/scroll-progress.d.ts.map +1 -0
- package/dist/components/scroll-progress/scroll-progress.js +120 -0
- package/dist/components/scroll-progress/scroll-progress.js.map +1 -0
- package/dist/components/section/card-row.d.ts +30 -0
- package/dist/components/section/card-row.d.ts.map +1 -0
- package/dist/components/section/card-row.js +174 -0
- package/dist/components/section/card-row.js.map +1 -0
- package/dist/components/section/card.d.ts +27 -0
- package/dist/components/section/card.d.ts.map +1 -0
- package/dist/components/section/card.js +205 -0
- package/dist/components/section/card.js.map +1 -0
- package/dist/components/section/row-item.d.ts +22 -0
- package/dist/components/section/row-item.d.ts.map +1 -0
- package/dist/components/section/row-item.js +53 -0
- package/dist/components/section/row-item.js.map +1 -0
- package/dist/components/section/section.d.ts +70 -0
- package/dist/components/section/section.d.ts.map +1 -0
- package/dist/components/section/section.js +240 -0
- package/dist/components/section/section.js.map +1 -0
- package/dist/components/select/select.js +3 -3
- package/dist/components/series-nav/series-nav.d.ts +29 -0
- package/dist/components/series-nav/series-nav.d.ts.map +1 -0
- package/dist/components/series-nav/series-nav.js +178 -0
- package/dist/components/series-nav/series-nav.js.map +1 -0
- package/dist/components/site-header/site-header.d.ts +51 -0
- package/dist/components/site-header/site-header.d.ts.map +1 -0
- package/dist/components/site-header/site-header.js +296 -0
- package/dist/components/site-header/site-header.js.map +1 -0
- package/dist/components/skeleton/skeleton.js +7 -7
- package/dist/components/sparkline/sparkline.d.ts +19 -0
- package/dist/components/sparkline/sparkline.d.ts.map +1 -0
- package/dist/components/sparkline/sparkline.js +99 -0
- package/dist/components/sparkline/sparkline.js.map +1 -0
- package/dist/components/spinner/spinner.d.ts +13 -0
- package/dist/components/spinner/spinner.d.ts.map +1 -0
- package/dist/components/spinner/spinner.js +65 -0
- package/dist/components/spinner/spinner.js.map +1 -0
- package/dist/components/split/split.d.ts +23 -0
- package/dist/components/split/split.d.ts.map +1 -0
- package/dist/components/split/split.js +104 -0
- package/dist/components/split/split.js.map +1 -0
- package/dist/components/stack/stack.d.ts +21 -0
- package/dist/components/stack/stack.d.ts.map +1 -0
- package/dist/components/stack/stack.js +102 -0
- package/dist/components/stack/stack.js.map +1 -0
- package/dist/components/stat-card/stat-card.d.ts +35 -0
- package/dist/components/stat-card/stat-card.d.ts.map +1 -0
- package/dist/components/stat-card/stat-card.js +199 -0
- package/dist/components/stat-card/stat-card.js.map +1 -0
- package/dist/components/stats/stat.d.ts +16 -0
- package/dist/components/stats/stat.d.ts.map +1 -0
- package/dist/components/stats/stat.js +51 -0
- package/dist/components/stats/stat.js.map +1 -0
- package/dist/components/stats/stats.d.ts +19 -0
- package/dist/components/stats/stats.d.ts.map +1 -0
- package/dist/components/stats/stats.js +45 -0
- package/dist/components/stats/stats.js.map +1 -0
- package/dist/components/switch/switch.js +2 -2
- package/dist/components/table/data-table.d.ts +115 -27
- package/dist/components/table/data-table.d.ts.map +1 -1
- package/dist/components/table/data-table.js +1012 -411
- package/dist/components/table/data-table.js.map +1 -1
- package/dist/components/table/data-table.utils.d.ts +81 -0
- package/dist/components/table/data-table.utils.d.ts.map +1 -0
- package/dist/components/table/data-table.utils.js +208 -0
- package/dist/components/table/data-table.utils.js.map +1 -0
- package/dist/components/table/table.d.ts +28 -0
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +161 -33
- package/dist/components/table/table.js.map +1 -1
- package/dist/components/team/person.d.ts +19 -0
- package/dist/components/team/person.d.ts.map +1 -0
- package/dist/components/team/person.js +123 -0
- package/dist/components/team/person.js.map +1 -0
- package/dist/components/team/team.d.ts +18 -0
- package/dist/components/team/team.d.ts.map +1 -0
- package/dist/components/team/team.js +36 -0
- package/dist/components/team/team.js.map +1 -0
- package/dist/components/testimonials/testimonial.d.ts +18 -0
- package/dist/components/testimonials/testimonial.d.ts.map +1 -0
- package/dist/components/testimonials/testimonial.js +115 -0
- package/dist/components/testimonials/testimonial.js.map +1 -0
- package/dist/components/testimonials/testimonials.d.ts +18 -0
- package/dist/components/testimonials/testimonials.d.ts.map +1 -0
- package/dist/components/testimonials/testimonials.js +36 -0
- package/dist/components/testimonials/testimonials.js.map +1 -0
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/theme-toggle/theme-toggle.js +1 -1
- package/dist/components/time-picker/time-picker.js +3 -3
- package/dist/components/timeline/timeline-item.d.ts +18 -0
- package/dist/components/timeline/timeline-item.d.ts.map +1 -0
- package/dist/components/timeline/timeline-item.js +102 -0
- package/dist/components/timeline/timeline-item.js.map +1 -0
- package/dist/components/timeline/timeline.d.ts +18 -0
- package/dist/components/timeline/timeline.d.ts.map +1 -0
- package/dist/components/timeline/timeline.js +30 -0
- package/dist/components/timeline/timeline.js.map +1 -0
- package/dist/components/toast/toast.d.ts +33 -0
- package/dist/components/toast/toast.d.ts.map +1 -0
- package/dist/components/toast/toast.js +147 -0
- package/dist/components/toast/toast.js.map +1 -0
- package/dist/components/toggle-group/toggle-button.d.ts +2 -0
- package/dist/components/toggle-group/toggle-button.d.ts.map +1 -1
- package/dist/components/toggle-group/toggle-button.js +12 -4
- package/dist/components/toggle-group/toggle-button.js.map +1 -1
- package/dist/components/toggle-group/toggle-group.js +4 -4
- package/dist/components/tooltip/tooltip.js +21 -21
- package/dist/components/vertical-nav/vertical-nav-group.js +3 -3
- package/dist/components/vertical-nav/vertical-nav-item.js +4 -4
- package/dist/components/video-embed/video-embed.d.ts +37 -0
- package/dist/components/video-embed/video-embed.d.ts.map +1 -0
- package/dist/components/video-embed/video-embed.js +183 -0
- package/dist/components/video-embed/video-embed.js.map +1 -0
- package/dist/index.d.ts +107 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +104 -0
- package/dist/index.js.map +1 -0
- package/dist/styles/index.css +205 -2
- package/dist/styles/reset.d.ts.map +1 -1
- package/dist/styles/reset.js +5 -0
- package/dist/styles/reset.js.map +1 -1
- package/package.json +210 -7
- package/src/components/accordion/accordion.constants.ts +5 -0
- package/src/components/accordion/accordion.ts +209 -0
- package/src/components/alert/alert.constants.ts +3 -0
- package/src/components/alert/alert.ts +284 -17
- package/src/components/avatar/avatar.ts +84 -0
- package/src/components/back-to-top/back-to-top.ts +140 -0
- package/src/components/bar-chart/bar-chart.ts +295 -0
- package/src/components/breadcrumb/breadcrumb.ts +2 -2
- package/src/components/button/button.ts +9 -8
- package/src/components/button-group/button-group.ts +4 -4
- package/src/components/calendar/calendar.ts +12 -9
- package/src/components/chart/chart-base.ts +275 -0
- package/src/components/chart/chart.utils.ts +140 -0
- package/src/components/code-block/code-block.ts +35 -24
- package/src/components/consent/consent.ts +312 -0
- package/src/components/consent/consent.utils.ts +110 -0
- package/src/components/contact/contact.ts +83 -0
- package/src/components/container/container.ts +60 -0
- package/src/components/content-card/content-card.ts +4 -4
- package/src/components/context-menu/context-menu.ts +426 -0
- package/src/components/cron-builder/cron-builder.ts +21 -18
- package/src/components/cta/cta.ts +64 -0
- package/src/components/drawer/drawer.ts +6 -6
- package/src/components/faq/faq-item.ts +110 -0
- package/src/components/faq/faq.ts +40 -0
- package/src/components/feature-grid/feature-grid.ts +52 -0
- package/src/components/feature-grid/feature.ts +84 -0
- package/src/components/field/field.ts +2 -2
- package/src/components/footer/footer.ts +4 -4
- package/src/components/form/form-reset.ts +45 -0
- package/src/components/form/form.ts +17 -3
- package/src/components/grid/grid.ts +73 -4
- package/src/components/heat-map/heat-map.ts +292 -0
- package/src/components/hero/hero.ts +132 -0
- package/src/components/icon/icon-paths.ts +92 -1
- package/src/components/icon/icon.ts +8 -1
- package/src/components/image/image.ts +165 -0
- package/src/components/input/input.ts +4 -4
- package/src/components/lazy/lazy.ts +94 -0
- package/src/components/line-chart/line-chart.ts +271 -0
- package/src/components/list/list-item.ts +225 -0
- package/src/components/list/list.ts +157 -0
- package/src/components/logo-cloud/logo-cloud.ts +65 -0
- package/src/components/modal/modal.ts +37 -11
- package/src/components/page-layout/page-layout.ts +8 -8
- package/src/components/pagination/pagination.ts +120 -0
- package/src/components/pagination/pagination.utils.ts +14 -0
- package/src/components/pie-chart/pie-chart.ts +230 -0
- package/src/components/pin-input/pin-input.ts +4 -4
- package/src/components/popover/popover.ts +1 -3
- package/src/components/post-list/post-card.ts +18 -0
- package/src/components/post-list/post-list.ts +19 -0
- package/src/components/pricing/pricing-tier.ts +132 -0
- package/src/components/pricing/pricing.ts +39 -0
- package/src/components/progress/progress.ts +95 -0
- package/src/components/project-grid/project-card.ts +19 -0
- package/src/components/project-grid/project-grid.ts +19 -0
- package/src/components/radio/radio.ts +1 -1
- package/src/components/reveal/reveal.constants.ts +20 -0
- package/src/components/reveal/reveal.ts +344 -0
- package/src/components/scroll-progress/scroll-progress.ts +119 -0
- package/src/components/section/card-row.ts +152 -0
- package/src/components/section/card.ts +197 -0
- package/src/components/section/row-item.ts +38 -0
- package/src/components/section/section.ts +232 -0
- package/src/components/select/select.ts +3 -3
- package/src/components/series-nav/series-nav.ts +164 -0
- package/src/components/site-header/site-header.ts +276 -0
- package/src/components/skeleton/skeleton.ts +7 -7
- package/src/components/sparkline/sparkline.ts +83 -0
- package/src/components/spinner/spinner.ts +55 -0
- package/src/components/split/split.ts +106 -0
- package/src/components/stack/stack.ts +88 -0
- package/src/components/stat-card/stat-card.ts +179 -0
- package/src/components/stats/stat.ts +49 -0
- package/src/components/stats/stats.ts +47 -0
- package/src/components/switch/switch.ts +2 -2
- package/src/components/table/data-table.ts +1015 -425
- package/src/components/table/data-table.utils.ts +276 -0
- package/src/components/table/table.ts +168 -38
- package/src/components/team/person.ts +113 -0
- package/src/components/team/team.ts +37 -0
- package/src/components/testimonials/testimonial.ts +108 -0
- package/src/components/testimonials/testimonials.ts +37 -0
- package/src/components/textarea/textarea.ts +3 -3
- package/src/components/theme-toggle/theme-toggle.ts +1 -1
- package/src/components/time-picker/time-picker.ts +3 -3
- package/src/components/timeline/timeline-item.ts +100 -0
- package/src/components/timeline/timeline.ts +31 -0
- package/src/components/toast/toast.ts +153 -0
- package/src/components/toggle-group/toggle-button.ts +9 -4
- package/src/components/toggle-group/toggle-group.ts +4 -4
- package/src/components/tooltip/tooltip.ts +21 -21
- package/src/components/vertical-nav/vertical-nav-group.ts +3 -3
- package/src/components/vertical-nav/vertical-nav-item.ts +4 -4
- package/src/components/video-embed/video-embed.ts +162 -0
- package/src/index.ts +108 -0
- package/src/styles/globals.css +63 -0
- package/src/styles/index.css +3 -1
- package/src/styles/prose.css +154 -0
- package/src/styles/reset.ts +5 -0
- package/src/styles/theme.css +53 -1
- package/src/styles/typography.css +1 -0
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LitElement, html, css, nothing } from "lit";
|
|
8
|
+
import { customElement, property, state } from "lit/decorators.js";
|
|
9
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
10
|
+
import { resetStyles } from "../../styles/reset.js";
|
|
11
|
+
import "../icon/icon.js";
|
|
12
|
+
import "../avatar/avatar.js";
|
|
13
|
+
/**
|
|
14
|
+
* A row inside `st-list`. It becomes a link when `href` is set, a button when `interactive`
|
|
15
|
+
* is set, and plain content otherwise.
|
|
16
|
+
*
|
|
17
|
+
* Slots: `leading` (icon, avatar, image), default (replaces heading/description), `meta`
|
|
18
|
+
* (right aligned details) and `actions` (buttons that stay clickable independently).
|
|
19
|
+
*
|
|
20
|
+
* Events: `st-item-click` (detail: `{ value, href }`) for links and interactive rows.
|
|
21
|
+
*/
|
|
22
|
+
let StListItem = class StListItem extends LitElement {
|
|
23
|
+
constructor() {
|
|
24
|
+
super(...arguments);
|
|
25
|
+
this.heading = "";
|
|
26
|
+
this.description = "";
|
|
27
|
+
/** Short right-aligned detail such as a date or status. */
|
|
28
|
+
this.meta = "";
|
|
29
|
+
/** Leading icon name. */
|
|
30
|
+
this.icon = "";
|
|
31
|
+
/** Leading avatar; shows initials derived from this name. */
|
|
32
|
+
this.avatar = "";
|
|
33
|
+
this.target = "_self";
|
|
34
|
+
/** Renders the row as a button that emits `st-item-click`. */
|
|
35
|
+
this.interactive = false;
|
|
36
|
+
/** Marks the row as the current item. */
|
|
37
|
+
this.selected = false;
|
|
38
|
+
this.disabled = false;
|
|
39
|
+
/** Identifier echoed back in `st-item-click`. */
|
|
40
|
+
this.value = "";
|
|
41
|
+
this._hasLeadingSlot = false;
|
|
42
|
+
this._hasActionsSlot = false;
|
|
43
|
+
}
|
|
44
|
+
connectedCallback() {
|
|
45
|
+
super.connectedCallback();
|
|
46
|
+
if (!this.hasAttribute("role"))
|
|
47
|
+
this.setAttribute("role", "listitem");
|
|
48
|
+
}
|
|
49
|
+
_onSlotChange(e, name) {
|
|
50
|
+
const has = e.target.assignedNodes().length > 0;
|
|
51
|
+
if (name === "leading")
|
|
52
|
+
this._hasLeadingSlot = has;
|
|
53
|
+
else
|
|
54
|
+
this._hasActionsSlot = has;
|
|
55
|
+
}
|
|
56
|
+
_emitClick() {
|
|
57
|
+
if (this.disabled)
|
|
58
|
+
return;
|
|
59
|
+
this.dispatchEvent(new CustomEvent("st-item-click", {
|
|
60
|
+
detail: { value: this.value, href: this.href },
|
|
61
|
+
bubbles: true,
|
|
62
|
+
composed: true,
|
|
63
|
+
}));
|
|
64
|
+
}
|
|
65
|
+
_renderContent() {
|
|
66
|
+
return html `
|
|
67
|
+
<span class="leading" ?hidden=${!this._hasLeadingSlot && !this.avatar && !this.icon}>
|
|
68
|
+
<slot name="leading" @slotchange=${(e) => this._onSlotChange(e, "leading")}>
|
|
69
|
+
${this.avatar
|
|
70
|
+
? html `<st-avatar name=${this.avatar} size="sm"></st-avatar>`
|
|
71
|
+
: this.icon
|
|
72
|
+
? html `<st-icon name=${this.icon} aria-hidden="true"></st-icon>`
|
|
73
|
+
: nothing}
|
|
74
|
+
</slot>
|
|
75
|
+
</span>
|
|
76
|
+
<span class="body">
|
|
77
|
+
<slot>
|
|
78
|
+
<span class="heading">${this.heading}</span>
|
|
79
|
+
${this.description
|
|
80
|
+
? html `<span class="description">${this.description}</span>`
|
|
81
|
+
: nothing}
|
|
82
|
+
</slot>
|
|
83
|
+
</span>
|
|
84
|
+
<span class="meta"><slot name="meta">${this.meta}</slot></span>
|
|
85
|
+
`;
|
|
86
|
+
}
|
|
87
|
+
render() {
|
|
88
|
+
const current = this.selected ? "true" : undefined;
|
|
89
|
+
const main = this.href
|
|
90
|
+
? html `<a
|
|
91
|
+
class="main"
|
|
92
|
+
href=${this.href}
|
|
93
|
+
target=${this.target}
|
|
94
|
+
rel=${ifDefined(this.target === "_blank" ? "noopener noreferrer" : undefined)}
|
|
95
|
+
aria-current=${ifDefined(current)}
|
|
96
|
+
aria-disabled=${ifDefined(this.disabled ? "true" : undefined)}
|
|
97
|
+
tabindex=${ifDefined(this.disabled ? "-1" : undefined)}
|
|
98
|
+
@click=${this._emitClick}
|
|
99
|
+
>${this._renderContent()}</a
|
|
100
|
+
>`
|
|
101
|
+
: this.interactive
|
|
102
|
+
? html `<button
|
|
103
|
+
class="main"
|
|
104
|
+
type="button"
|
|
105
|
+
aria-current=${ifDefined(current)}
|
|
106
|
+
?disabled=${this.disabled}
|
|
107
|
+
@click=${this._emitClick}
|
|
108
|
+
>
|
|
109
|
+
${this._renderContent()}
|
|
110
|
+
</button>`
|
|
111
|
+
: html `<div class="main" aria-current=${ifDefined(current)}>${this._renderContent()}</div>`;
|
|
112
|
+
return html `${main}
|
|
113
|
+
<div class="actions" ?hidden=${!this._hasActionsSlot}>
|
|
114
|
+
<slot name="actions" @slotchange=${(e) => this._onSlotChange(e, "actions")}></slot>
|
|
115
|
+
</div>`;
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
StListItem.styles = [
|
|
119
|
+
resetStyles,
|
|
120
|
+
css `
|
|
121
|
+
:host {
|
|
122
|
+
display: flex;
|
|
123
|
+
align-items: center;
|
|
124
|
+
gap: var(--st-spacing-sm);
|
|
125
|
+
border-bottom: 1px solid var(--st-list-divider, var(--st-color-border));
|
|
126
|
+
color: var(--st-color-text);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
:host(:last-child) {
|
|
130
|
+
border-bottom: 0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.main {
|
|
134
|
+
display: flex;
|
|
135
|
+
flex: 1;
|
|
136
|
+
min-width: 0;
|
|
137
|
+
align-items: center;
|
|
138
|
+
gap: var(--st-spacing-md);
|
|
139
|
+
padding: var(--st-list-item-padding-y, var(--st-spacing-md)) var(--st-spacing-md);
|
|
140
|
+
border: 0;
|
|
141
|
+
background: none;
|
|
142
|
+
color: inherit;
|
|
143
|
+
font: inherit;
|
|
144
|
+
text-align: left;
|
|
145
|
+
text-decoration: none;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
a.main,
|
|
149
|
+
button.main {
|
|
150
|
+
cursor: pointer;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
a.main:hover,
|
|
154
|
+
button.main:hover {
|
|
155
|
+
background-color: var(--st-color-surface-hover);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.main:focus-visible {
|
|
159
|
+
outline: 2px solid var(--st-color-primary);
|
|
160
|
+
outline-offset: -2px;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
:host([selected]) .main {
|
|
164
|
+
background-color: var(--st-color-primary-bg);
|
|
165
|
+
box-shadow: inset 3px 0 0 var(--st-color-primary);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
:host([disabled]) .main {
|
|
169
|
+
opacity: 0.5;
|
|
170
|
+
cursor: not-allowed;
|
|
171
|
+
pointer-events: none;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
[hidden] {
|
|
175
|
+
display: none !important;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.leading {
|
|
179
|
+
display: inline-flex;
|
|
180
|
+
flex-shrink: 0;
|
|
181
|
+
color: var(--st-color-text-muted);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.body {
|
|
185
|
+
display: flex;
|
|
186
|
+
flex: 1;
|
|
187
|
+
min-width: 0;
|
|
188
|
+
flex-direction: column;
|
|
189
|
+
gap: 2px;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.heading {
|
|
193
|
+
font-weight: var(--st-font-weight-medium);
|
|
194
|
+
overflow: hidden;
|
|
195
|
+
text-overflow: ellipsis;
|
|
196
|
+
white-space: nowrap;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.description {
|
|
200
|
+
color: var(--st-color-text-muted);
|
|
201
|
+
font-size: var(--st-font-size-sm);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.meta {
|
|
205
|
+
flex-shrink: 0;
|
|
206
|
+
color: var(--st-color-text-muted);
|
|
207
|
+
font-size: var(--st-font-size-sm);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.actions {
|
|
211
|
+
display: flex;
|
|
212
|
+
flex-shrink: 0;
|
|
213
|
+
align-items: center;
|
|
214
|
+
gap: var(--st-spacing-xs);
|
|
215
|
+
padding-right: var(--st-spacing-md);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
`,
|
|
219
|
+
];
|
|
220
|
+
__decorate([
|
|
221
|
+
property({ type: String })
|
|
222
|
+
], StListItem.prototype, "heading", void 0);
|
|
223
|
+
__decorate([
|
|
224
|
+
property({ type: String })
|
|
225
|
+
], StListItem.prototype, "description", void 0);
|
|
226
|
+
__decorate([
|
|
227
|
+
property({ type: String })
|
|
228
|
+
], StListItem.prototype, "meta", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
property({ type: String })
|
|
231
|
+
], StListItem.prototype, "icon", void 0);
|
|
232
|
+
__decorate([
|
|
233
|
+
property({ type: String })
|
|
234
|
+
], StListItem.prototype, "avatar", void 0);
|
|
235
|
+
__decorate([
|
|
236
|
+
property({ type: String })
|
|
237
|
+
], StListItem.prototype, "href", void 0);
|
|
238
|
+
__decorate([
|
|
239
|
+
property({ type: String })
|
|
240
|
+
], StListItem.prototype, "target", void 0);
|
|
241
|
+
__decorate([
|
|
242
|
+
property({ type: Boolean, reflect: true })
|
|
243
|
+
], StListItem.prototype, "interactive", void 0);
|
|
244
|
+
__decorate([
|
|
245
|
+
property({ type: Boolean, reflect: true })
|
|
246
|
+
], StListItem.prototype, "selected", void 0);
|
|
247
|
+
__decorate([
|
|
248
|
+
property({ type: Boolean, reflect: true })
|
|
249
|
+
], StListItem.prototype, "disabled", void 0);
|
|
250
|
+
__decorate([
|
|
251
|
+
property({ type: String })
|
|
252
|
+
], StListItem.prototype, "value", void 0);
|
|
253
|
+
__decorate([
|
|
254
|
+
state()
|
|
255
|
+
], StListItem.prototype, "_hasLeadingSlot", void 0);
|
|
256
|
+
__decorate([
|
|
257
|
+
state()
|
|
258
|
+
], StListItem.prototype, "_hasActionsSlot", void 0);
|
|
259
|
+
StListItem = __decorate([
|
|
260
|
+
customElement("st-list-item")
|
|
261
|
+
], StListItem);
|
|
262
|
+
export { StListItem };
|
|
263
|
+
//# sourceMappingURL=list-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-item.js","sourceRoot":"","sources":["../../../src/components/list/list-item.ts"],"names":[],"mappings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Q,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;wCAAW;AAEV;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;wCAAW;AAEV;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;0CAAa;AACZ;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;wCAAe;AACd;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;0CAAsC;AAErB;IAAzC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;+CAAqB;AAEpB;IAAzC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;4CAAkB;AACjB;IAAzC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;4CAAkB;AAEjC;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;yCAAY;AAEpB;IAAhB,KAAK,EAAE;mDAAiC;AACxB;IAAhB,KAAK,EAAE;mDAAiC;AApB9B,UAAU;IADtB,aAAa,CAAC,cAAc,CAAC;GACjB,UAAU,CAyMtB"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import "./list-item.js";
|
|
3
|
+
import "../skeleton/skeleton.js";
|
|
4
|
+
export interface ListItemData {
|
|
5
|
+
heading: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
meta?: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
avatar?: string;
|
|
10
|
+
href?: string;
|
|
11
|
+
value?: string;
|
|
12
|
+
selected?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** Overrides `clickable-items` for this row. */
|
|
15
|
+
interactive?: boolean;
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Vertical listing of rows with a heading, description, meta and optional leading visual.
|
|
20
|
+
* Give it `items` for data-driven lists, or slot your own `st-list-item` elements.
|
|
21
|
+
*
|
|
22
|
+
* Events: `st-item-click` (detail: `{ item, index, value, href }`; `item` and `index` are
|
|
23
|
+
* only present for rows created from `items`).
|
|
24
|
+
*/
|
|
25
|
+
export declare class StList extends LitElement {
|
|
26
|
+
items: ListItemData[];
|
|
27
|
+
/** Accessible name for the list. */
|
|
28
|
+
label: string;
|
|
29
|
+
dense: boolean;
|
|
30
|
+
/** Draws an outer border with rounded corners. */
|
|
31
|
+
bordered: boolean;
|
|
32
|
+
noDividers: boolean;
|
|
33
|
+
/** Rows from `items` without an `href` become buttons that emit `st-item-click`. */
|
|
34
|
+
clickableItems: boolean;
|
|
35
|
+
loading: boolean;
|
|
36
|
+
emptyText: string;
|
|
37
|
+
static styles: import("lit").CSSResult[];
|
|
38
|
+
connectedCallback(): void;
|
|
39
|
+
updated(): void;
|
|
40
|
+
private _onItemClick;
|
|
41
|
+
private _renderItems;
|
|
42
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
43
|
+
private _hasSlotted;
|
|
44
|
+
}
|
|
45
|
+
declare global {
|
|
46
|
+
interface HTMLElementTagNameMap {
|
|
47
|
+
"st-list": StList;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/components/list/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAA+B,MAAM,KAAK,CAAC;AAI7D,OAAO,gBAAgB,CAAC;AACxB,OAAO,yBAAyB,CAAC;AAEjC,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gDAAgD;IAChD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAID;;;;;;GAMG;AACH,qBACa,MAAO,SAAQ,UAAU;IACX,KAAK,EAAE,YAAY,EAAE,CAAM;IACpD,oCAAoC;IACV,KAAK,SAAM;IACK,KAAK,UAAS;IACxD,kDAAkD;IACR,QAAQ,UAAS;IACS,UAAU,UAAS;IACvF,oFAAoF;IAC3B,cAAc,UAAS;IACtC,OAAO,UAAS;IACP,SAAS,SAAsB;IAElF,MAAM,CAAC,MAAM,4BAkCX;IAEF,iBAAiB,SAGhB;IAED,OAAO,SAIN;IAED,OAAO,CAAC,YAAY;IAYpB,OAAO,CAAC,YAAY;IA+BpB,MAAM,yCASL;IAED,OAAO,CAAC,WAAW;CAIpB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LitElement, html, css, nothing, isServer } from "lit";
|
|
8
|
+
import { customElement, property } from "lit/decorators.js";
|
|
9
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
10
|
+
import { resetStyles } from "../../styles/reset.js";
|
|
11
|
+
import "./list-item.js";
|
|
12
|
+
import "../skeleton/skeleton.js";
|
|
13
|
+
const SKELETON_ITEMS = 3;
|
|
14
|
+
/**
|
|
15
|
+
* Vertical listing of rows with a heading, description, meta and optional leading visual.
|
|
16
|
+
* Give it `items` for data-driven lists, or slot your own `st-list-item` elements.
|
|
17
|
+
*
|
|
18
|
+
* Events: `st-item-click` (detail: `{ item, index, value, href }`; `item` and `index` are
|
|
19
|
+
* only present for rows created from `items`).
|
|
20
|
+
*/
|
|
21
|
+
let StList = class StList extends LitElement {
|
|
22
|
+
constructor() {
|
|
23
|
+
super(...arguments);
|
|
24
|
+
this.items = [];
|
|
25
|
+
/** Accessible name for the list. */
|
|
26
|
+
this.label = "";
|
|
27
|
+
this.dense = false;
|
|
28
|
+
/** Draws an outer border with rounded corners. */
|
|
29
|
+
this.bordered = false;
|
|
30
|
+
this.noDividers = false;
|
|
31
|
+
/** Rows from `items` without an `href` become buttons that emit `st-item-click`. */
|
|
32
|
+
this.clickableItems = false;
|
|
33
|
+
this.loading = false;
|
|
34
|
+
this.emptyText = "Nothing to show.";
|
|
35
|
+
}
|
|
36
|
+
connectedCallback() {
|
|
37
|
+
super.connectedCallback();
|
|
38
|
+
if (!this.hasAttribute("role"))
|
|
39
|
+
this.setAttribute("role", "list");
|
|
40
|
+
}
|
|
41
|
+
updated() {
|
|
42
|
+
if (this.label)
|
|
43
|
+
this.setAttribute("aria-label", this.label);
|
|
44
|
+
else
|
|
45
|
+
this.removeAttribute("aria-label");
|
|
46
|
+
this.setAttribute("aria-busy", this.loading ? "true" : "false");
|
|
47
|
+
}
|
|
48
|
+
_onItemClick(e, item, index) {
|
|
49
|
+
// Re-emit with the source data so consumers don't have to map values back to rows.
|
|
50
|
+
e.stopPropagation();
|
|
51
|
+
this.dispatchEvent(new CustomEvent("st-item-click", {
|
|
52
|
+
detail: { item, index, value: e.detail.value, href: e.detail.href },
|
|
53
|
+
bubbles: true,
|
|
54
|
+
composed: true,
|
|
55
|
+
}));
|
|
56
|
+
}
|
|
57
|
+
_renderItems() {
|
|
58
|
+
if (this.loading) {
|
|
59
|
+
return Array.from({ length: SKELETON_ITEMS }, () => html `
|
|
60
|
+
<div role="listitem" class="skeleton-row">
|
|
61
|
+
<st-skeleton variant="text" width="50%"></st-skeleton>
|
|
62
|
+
<st-skeleton variant="text" width="80%"></st-skeleton>
|
|
63
|
+
</div>
|
|
64
|
+
`);
|
|
65
|
+
}
|
|
66
|
+
return this.items.map((item, index) => html `
|
|
67
|
+
<st-list-item
|
|
68
|
+
heading=${item.heading}
|
|
69
|
+
description=${ifDefined(item.description)}
|
|
70
|
+
meta=${ifDefined(item.meta)}
|
|
71
|
+
icon=${ifDefined(item.icon)}
|
|
72
|
+
avatar=${ifDefined(item.avatar)}
|
|
73
|
+
href=${ifDefined(item.href)}
|
|
74
|
+
value=${item.value ?? String(index)}
|
|
75
|
+
?selected=${item.selected}
|
|
76
|
+
?disabled=${item.disabled}
|
|
77
|
+
?interactive=${item.interactive ?? (this.clickableItems && !item.href)}
|
|
78
|
+
@st-item-click=${(e) => this._onItemClick(e, item, index)}
|
|
79
|
+
></st-list-item>
|
|
80
|
+
`);
|
|
81
|
+
}
|
|
82
|
+
render() {
|
|
83
|
+
const showEmpty = !this.loading && this.items.length === 0;
|
|
84
|
+
return html `
|
|
85
|
+
${this._renderItems()}
|
|
86
|
+
<slot @slotchange=${() => this.requestUpdate()}></slot>
|
|
87
|
+
${showEmpty && !this._hasSlotted()
|
|
88
|
+
? html `<div class="empty" role="listitem">${this.emptyText}</div>`
|
|
89
|
+
: nothing}
|
|
90
|
+
`;
|
|
91
|
+
}
|
|
92
|
+
_hasSlotted() {
|
|
93
|
+
if (isServer)
|
|
94
|
+
return true; // slotted items cannot be inspected while server rendering
|
|
95
|
+
return this.querySelector("st-list-item") !== null;
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
StList.styles = [
|
|
99
|
+
resetStyles,
|
|
100
|
+
css `
|
|
101
|
+
:host {
|
|
102
|
+
display: block;
|
|
103
|
+
--st-list-divider: var(--st-color-border);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:host([dense]) {
|
|
107
|
+
--st-list-item-padding-y: var(--st-spacing-xs);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
:host([no-dividers]) {
|
|
111
|
+
--st-list-divider: transparent;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:host([bordered]) {
|
|
115
|
+
border: 1px solid var(--st-color-border);
|
|
116
|
+
border-radius: var(--st-radius-md);
|
|
117
|
+
background-color: var(--st-color-surface);
|
|
118
|
+
overflow: hidden;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.empty {
|
|
122
|
+
padding: var(--st-spacing-xl);
|
|
123
|
+
text-align: center;
|
|
124
|
+
font-style: italic;
|
|
125
|
+
color: var(--st-color-text-muted);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.skeleton-row {
|
|
129
|
+
padding: var(--st-spacing-md);
|
|
130
|
+
}
|
|
131
|
+
`,
|
|
132
|
+
];
|
|
133
|
+
__decorate([
|
|
134
|
+
property({ type: Array })
|
|
135
|
+
], StList.prototype, "items", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
property({ type: String })
|
|
138
|
+
], StList.prototype, "label", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
property({ type: Boolean, reflect: true })
|
|
141
|
+
], StList.prototype, "dense", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
property({ type: Boolean, reflect: true })
|
|
144
|
+
], StList.prototype, "bordered", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
property({ type: Boolean, reflect: true, attribute: "no-dividers" })
|
|
147
|
+
], StList.prototype, "noDividers", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
property({ type: Boolean, attribute: "clickable-items" })
|
|
150
|
+
], StList.prototype, "clickableItems", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
property({ type: Boolean, reflect: true })
|
|
153
|
+
], StList.prototype, "loading", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
property({ type: String, attribute: "empty-text" })
|
|
156
|
+
], StList.prototype, "emptyText", void 0);
|
|
157
|
+
StList = __decorate([
|
|
158
|
+
customElement("st-list")
|
|
159
|
+
], StList);
|
|
160
|
+
export { StList };
|
|
161
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/components/list/list.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,KAAK,CAAC;AAC7D,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAClD,OAAO,gBAAgB,CAAC;AACxB,OAAO,yBAAyB,CAAC;AAiBjC,MAAM,cAAc,GAAG,CAAC,CAAC;AAEzB;;;;;;GAMG;AAEI,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,UAAU;IAA/B;;QACoB,UAAK,GAAmB,EAAE,CAAC;QACpD,oCAAoC;QACV,UAAK,GAAG,EAAE,CAAC;QACK,UAAK,GAAG,KAAK,CAAC;QACxD,kDAAkD;QACR,aAAQ,GAAG,KAAK,CAAC;QACS,eAAU,GAAG,KAAK,CAAC;QACvF,oFAAoF;QAC3B,mBAAc,GAAG,KAAK,CAAC;QACtC,YAAO,GAAG,KAAK,CAAC;QACP,cAAS,GAAG,kBAAkB,CAAC;IA2GpF,CAAC;IArEC,iBAAiB;QAC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AE,MAAM,EAAC,CAAC;qCAAY;AACK;IAAzC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;qCAAe;AAEd;IAAzC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;wCAAkB;AACS;IAAnE,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAC,CAAC;0CAAoB;AAE9B;IAAxD,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAC,CAAC;8CAAwB;AACtC;IAAzC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;uCAAiB;AACP;IAAlD,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAC,CAAC;yCAAgC;AAXvE,MAAM;IADlB,aAAa,CAAC,SAAS,CAAC;GACZ,MAAM,CAsHlB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { StSection } from "../section/section.js";
|
|
2
|
+
/**
|
|
3
|
+
* A row of logos (customers, partners, technologies). Slot images, inline svgs or links wrapping
|
|
4
|
+
* them; each is sized to the same height and softened until hovered.
|
|
5
|
+
*
|
|
6
|
+
* Slots: `eyebrow`, `title`, `lead` and the default slot for the logos. Give every logo
|
|
7
|
+
* meaningful `alt` text.
|
|
8
|
+
*/
|
|
9
|
+
export declare class StLogoCloud extends StSection {
|
|
10
|
+
constructor();
|
|
11
|
+
static styles: import("lit").CSSResult[];
|
|
12
|
+
render(): import("lit-html").TemplateResult;
|
|
13
|
+
}
|
|
14
|
+
declare global {
|
|
15
|
+
interface HTMLElementTagNameMap {
|
|
16
|
+
"st-logo-cloud": StLogoCloud;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=logo-cloud.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logo-cloud.d.ts","sourceRoot":"","sources":["../../../src/components/logo-cloud/logo-cloud.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAEhD;;;;;;GAMG;AACH,qBACa,WAAY,SAAQ,SAAS;IACxC,cAGC;IAED,MAAM,CAAC,MAAM,4BAmCX;IAEF,MAAM,sCAEL;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,WAAW,CAAC;KAC9B;CACF"}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 } from "lit/decorators.js";
|
|
9
|
+
import { StSection } from "../section/section.js";
|
|
10
|
+
/**
|
|
11
|
+
* A row of logos (customers, partners, technologies). Slot images, inline svgs or links wrapping
|
|
12
|
+
* them; each is sized to the same height and softened until hovered.
|
|
13
|
+
*
|
|
14
|
+
* Slots: `eyebrow`, `title`, `lead` and the default slot for the logos. Give every logo
|
|
15
|
+
* meaningful `alt` text.
|
|
16
|
+
*/
|
|
17
|
+
let StLogoCloud = class StLogoCloud extends StSection {
|
|
18
|
+
constructor() {
|
|
19
|
+
super();
|
|
20
|
+
this.space = "sm";
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
return this.frame(html `<div class="logos"><slot></slot></div>`);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
StLogoCloud.styles = [
|
|
27
|
+
...StSection.styles,
|
|
28
|
+
css `
|
|
29
|
+
.logos {
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-wrap: wrap;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
gap: var(--st-spacing-xl) var(--st-spacing-2xl);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.logos ::slotted(*) {
|
|
38
|
+
width: auto;
|
|
39
|
+
max-width: 9rem;
|
|
40
|
+
height: var(--st-logo-cloud-height, 2.25rem);
|
|
41
|
+
object-fit: contain;
|
|
42
|
+
opacity: 0.7;
|
|
43
|
+
filter: grayscale(1);
|
|
44
|
+
transition:
|
|
45
|
+
opacity 0.2s ease,
|
|
46
|
+
filter 0.2s ease;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.logos ::slotted(*:hover),
|
|
50
|
+
.logos ::slotted(*:focus-visible) {
|
|
51
|
+
opacity: 1;
|
|
52
|
+
filter: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@media (prefers-reduced-motion: reduce) {
|
|
56
|
+
.logos ::slotted(*) {
|
|
57
|
+
transition: none;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
`,
|
|
61
|
+
];
|
|
62
|
+
StLogoCloud = __decorate([
|
|
63
|
+
customElement("st-logo-cloud")
|
|
64
|
+
], StLogoCloud);
|
|
65
|
+
export { StLogoCloud };
|
|
66
|
+
//# sourceMappingURL=logo-cloud.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logo-cloud.js","sourceRoot":"","sources":["../../../src/components/logo-cloud/logo-cloud.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,IAAI,EAAE,GAAG,EAAC,MAAM,KAAK,CAAC;AAC9B,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAEhD;;;;;;GAMG;AAEI,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,SAAS;IACxC;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAuCD,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAA,wCAAwC,CAAC,CAAC;IAClE,CAAC;CACF,CAAA;AAxCQ,kBAAM,GAAG;IACd,GAAG,SAAS,CAAC,MAAM;IACnB,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgCF;CACF,AAnCY,CAmCX;AAzCS,WAAW;IADvB,aAAa,CAAC,eAAe,CAAC;GAClB,WAAW,CA8CvB"}
|
|
@@ -4,11 +4,23 @@ export declare class StModal extends LitElement {
|
|
|
4
4
|
heading: string;
|
|
5
5
|
size: "sm" | "md" | "lg" | "xl" | "xxl";
|
|
6
6
|
static: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* By default closing the modal resets what is inside it: forms and fields go back to their
|
|
9
|
+
* starting values, errors clear and multi-step forms return to step one, so it opens fresh next
|
|
10
|
+
* time. Set this to keep what was entered between openings.
|
|
11
|
+
*/
|
|
12
|
+
preserveState: boolean;
|
|
7
13
|
private dialogEl;
|
|
8
14
|
private isClosing;
|
|
9
15
|
static styles: import("lit").CSSResult[];
|
|
10
16
|
updated(changedProperties: PropertyValues<this>): void;
|
|
11
17
|
private closeWithAnimation;
|
|
18
|
+
/**
|
|
19
|
+
* Returns the content to its starting state: forms and fields are reset, errors cleared and the
|
|
20
|
+
* body scrolled back to the top. Happens automatically on close unless `preserve-state` is set.
|
|
21
|
+
* Fires `st-reset` afterwards so your own state (in a framework, say) can be cleared too.
|
|
22
|
+
*/
|
|
23
|
+
reset(): void;
|
|
12
24
|
private handleClose;
|
|
13
25
|
private handleCancel;
|
|
14
26
|
private onDialogClose;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/components/modal/modal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAa,cAAc,EAAU,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/components/modal/modal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAa,cAAc,EAAU,MAAM,KAAK,CAAC;AAQnE,qBACa,OAAQ,SAAQ,UAAU;IACK,IAAI,UAAS;IAC7B,OAAO,SAAM;IACb,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAQ;IAC9C,MAAM,UAAS;IAC1C;;;;OAIG;IACqD,aAAa,UAAS;IAE7D,OAAO,CAAC,QAAQ,CAAqB;IAEtD,OAAO,CAAC,SAAS,CAAS;IAE1B,MAAM,CAAC,MAAM,4BA+IX;IAGO,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,QAcvD;IAED,OAAO,CAAC,kBAAkB;IAwB1B;;;;OAIG;IACH,KAAK,SAIJ;IAED,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,YAAY;IAOpB,OAAO,CAAC,aAAa;IAOrB,OAAO,CAAC,mBAAmB;IAe3B,MAAM,yCA2CL;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
|