@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,64 @@
|
|
|
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, state } from "lit/decorators.js";
|
|
9
|
+
import { StSection } from "../section/section.js";
|
|
10
|
+
/**
|
|
11
|
+
* A closing call to action: one clear message and the buttons that act on it. Highlighted in the
|
|
12
|
+
* accent colour by default; set `tone` to change that.
|
|
13
|
+
*
|
|
14
|
+
* Slots: `eyebrow`, `title`, `lead`, `actions` (buttons) and the default slot for a short note
|
|
15
|
+
* under the buttons.
|
|
16
|
+
*/
|
|
17
|
+
let StCta = class StCta extends StSection {
|
|
18
|
+
constructor() {
|
|
19
|
+
super();
|
|
20
|
+
this._hasActions = false;
|
|
21
|
+
this.tone = "accent";
|
|
22
|
+
this.width = "md";
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
return this.frame(html `
|
|
26
|
+
<div class="actions" ?hidden=${!this._hasActions}>
|
|
27
|
+
<slot
|
|
28
|
+
name="actions"
|
|
29
|
+
@slotchange=${(e) => (this._hasActions = e.target.assignedNodes().length > 0)}
|
|
30
|
+
></slot>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="note"><slot></slot></div>
|
|
33
|
+
`);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
StCta.styles = [
|
|
37
|
+
...StSection.styles,
|
|
38
|
+
css `
|
|
39
|
+
.header {
|
|
40
|
+
margin-bottom: var(--st-spacing-lg);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.actions {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-wrap: wrap;
|
|
46
|
+
gap: var(--st-spacing-md);
|
|
47
|
+
justify-content: center;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.note {
|
|
51
|
+
margin-top: var(--st-spacing-md);
|
|
52
|
+
text-align: center;
|
|
53
|
+
font-size: var(--st-font-size-sm);
|
|
54
|
+
}
|
|
55
|
+
`,
|
|
56
|
+
];
|
|
57
|
+
__decorate([
|
|
58
|
+
state()
|
|
59
|
+
], StCta.prototype, "_hasActions", void 0);
|
|
60
|
+
StCta = __decorate([
|
|
61
|
+
customElement("st-cta")
|
|
62
|
+
], StCta);
|
|
63
|
+
export { StCta };
|
|
64
|
+
//# sourceMappingURL=cta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cta.js","sourceRoot":"","sources":["../../../src/components/cta/cta.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,IAAI,EAAE,GAAG,EAAC,MAAM,KAAK,CAAC;AAC9B,OAAO,EAAC,aAAa,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAEhD;;;;;;GAMG;AAEI,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,SAAS;IAGlC;QACE,KAAK,EAAE,CAAC;QAHO,gBAAW,GAAG,KAAK,CAAC;QAInC,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAwBD,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CACf,IAAI,CAAA;uCAC6B,CAAC,IAAI,CAAC,WAAW;;;0BAG9B,CAAC,CAAQ,EAAE,EAAE,CACzB,CAAC,IAAI,CAAC,WAAW,GAAI,CAAC,CAAC,MAA0B,CAAC,aAAa,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;;;;OAIpF,CACF,CAAC;IACJ,CAAC;CACF,CAAA;AApCQ,YAAM,GAAG;IACd,GAAG,SAAS,CAAC,MAAM;IACnB,GAAG,CAAA;;;;;;;;;;;;;;;;;KAiBF;CACF,AApBY,CAoBX;AA5Be;IAAhB,KAAK,EAAE;0CAA6B;AAD1B,KAAK;IADjB,aAAa,CAAC,QAAQ,CAAC;GACX,KAAK,CA6CjB"}
|
|
@@ -141,7 +141,7 @@ StDrawer.styles = [
|
|
|
141
141
|
left: 0;
|
|
142
142
|
width: 100vw;
|
|
143
143
|
height: 100vh;
|
|
144
|
-
background-color:
|
|
144
|
+
background-color: var(--st-color-overlay);
|
|
145
145
|
backdrop-filter: blur(2px);
|
|
146
146
|
z-index: 1000;
|
|
147
147
|
display: flex;
|
|
@@ -166,7 +166,7 @@ StDrawer.styles = [
|
|
|
166
166
|
bottom: 0;
|
|
167
167
|
width: var(--st-drawer-width, 320px);
|
|
168
168
|
max-width: 90vw;
|
|
169
|
-
background-color: var(--st-color-surface
|
|
169
|
+
background-color: var(--st-color-surface);
|
|
170
170
|
display: flex;
|
|
171
171
|
flex-direction: column;
|
|
172
172
|
z-index: 1001;
|
|
@@ -183,7 +183,7 @@ StDrawer.styles = [
|
|
|
183
183
|
|
|
184
184
|
:host([open]) .panel {
|
|
185
185
|
visibility: visible;
|
|
186
|
-
box-shadow:
|
|
186
|
+
box-shadow: var(--st-shadow-drawer);
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
/* Slide from Left */
|
|
@@ -209,7 +209,7 @@ StDrawer.styles = [
|
|
|
209
209
|
align-items: center;
|
|
210
210
|
justify-content: space-between;
|
|
211
211
|
padding: var(--st-spacing-md) var(--st-spacing-lg);
|
|
212
|
-
border-bottom: 1px solid var(--st-color-border
|
|
212
|
+
border-bottom: 1px solid var(--st-color-border);
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
.title {
|
|
@@ -229,12 +229,12 @@ StDrawer.styles = [
|
|
|
229
229
|
display: flex;
|
|
230
230
|
align-items: center;
|
|
231
231
|
justify-content: center;
|
|
232
|
-
border-radius: var(--st-radius-sm
|
|
232
|
+
border-radius: var(--st-radius-sm);
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
.close-btn:hover {
|
|
236
236
|
color: var(--st-color-text);
|
|
237
|
-
background-color: var(--st-color-surface-muted
|
|
237
|
+
background-color: var(--st-color-surface-muted);
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
.close-btn svg {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { StRowItem } from "../section/row-item.js";
|
|
2
|
+
import "../icon/icon.js";
|
|
3
|
+
/**
|
|
4
|
+
* One question and answer inside `st-faq`. It is a native disclosure (`details`), so it works
|
|
5
|
+
* without JavaScript, is announced correctly by screen readers, and the answer stays in the page
|
|
6
|
+
* for search engines even while closed.
|
|
7
|
+
*
|
|
8
|
+
* Slots: `question` (a real heading such as `<h3>` is best) and the default slot for the answer.
|
|
9
|
+
*/
|
|
10
|
+
export declare class StFaqItem extends StRowItem {
|
|
11
|
+
/** Whether the answer is showing. */
|
|
12
|
+
open: boolean;
|
|
13
|
+
static styles: import("lit").CSSResult[];
|
|
14
|
+
private _onToggle;
|
|
15
|
+
render(): import("lit-html").TemplateResult;
|
|
16
|
+
}
|
|
17
|
+
declare global {
|
|
18
|
+
interface HTMLElementTagNameMap {
|
|
19
|
+
"st-faq-item": StFaqItem;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=faq-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"faq-item.d.ts","sourceRoot":"","sources":["../../../src/components/faq/faq-item.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AACjD,OAAO,iBAAiB,CAAC;AAEzB;;;;;;GAMG;AACH,qBACa,SAAU,SAAQ,SAAS;IACtC,qCAAqC;IACK,IAAI,UAAS;IAEvD,MAAM,CAAC,MAAM,4BAmEX;IAEF,OAAO,CAAC,SAAS,CAGf;IAEF,MAAM,sCAUL;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,SAAS,CAAC;KAC1B;CACF"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, css } from "lit";
|
|
8
|
+
import { customElement, property } from "lit/decorators.js";
|
|
9
|
+
import { resetStyles } from "../../styles/reset.js";
|
|
10
|
+
import { StRowItem } from "../section/row-item.js";
|
|
11
|
+
import "../icon/icon.js";
|
|
12
|
+
/**
|
|
13
|
+
* One question and answer inside `st-faq`. It is a native disclosure (`details`), so it works
|
|
14
|
+
* without JavaScript, is announced correctly by screen readers, and the answer stays in the page
|
|
15
|
+
* for search engines even while closed.
|
|
16
|
+
*
|
|
17
|
+
* Slots: `question` (a real heading such as `<h3>` is best) and the default slot for the answer.
|
|
18
|
+
*/
|
|
19
|
+
let StFaqItem = class StFaqItem extends StRowItem {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
/** Whether the answer is showing. */
|
|
23
|
+
this.open = false;
|
|
24
|
+
this._onToggle = (e) => {
|
|
25
|
+
const open = e.target.open;
|
|
26
|
+
if (open !== this.open)
|
|
27
|
+
this.open = open;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
return this.frame(html `
|
|
32
|
+
<details ?open=${this.open} @toggle=${this._onToggle}>
|
|
33
|
+
<summary>
|
|
34
|
+
<slot name="question"></slot>
|
|
35
|
+
<st-icon name="chevron-down" aria-hidden="true"></st-icon>
|
|
36
|
+
</summary>
|
|
37
|
+
<div class="answer"><slot></slot></div>
|
|
38
|
+
</details>
|
|
39
|
+
`);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
StFaqItem.styles = [
|
|
43
|
+
resetStyles,
|
|
44
|
+
css `
|
|
45
|
+
:host {
|
|
46
|
+
display: block;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
details {
|
|
50
|
+
border: 1px solid var(--st-color-border);
|
|
51
|
+
border-radius: var(--st-radius-md);
|
|
52
|
+
background: var(--st-row-card-bg, var(--st-color-surface));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
summary {
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
justify-content: space-between;
|
|
59
|
+
gap: var(--st-spacing-md);
|
|
60
|
+
padding: var(--st-spacing-md) var(--st-spacing-lg);
|
|
61
|
+
border-radius: var(--st-radius-md);
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
list-style: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
summary::-webkit-details-marker {
|
|
67
|
+
display: none;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
summary:focus-visible {
|
|
71
|
+
outline: 2px solid var(--st-color-primary);
|
|
72
|
+
outline-offset: 2px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
summary st-icon {
|
|
76
|
+
flex-shrink: 0;
|
|
77
|
+
transition: transform 0.2s ease;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
details[open] summary st-icon {
|
|
81
|
+
transform: rotate(180deg);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
::slotted([slot="question"]) {
|
|
85
|
+
margin: 0 !important;
|
|
86
|
+
font-size: var(--st-font-size-lg) !important;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* Closed details already hide this natively; saying so keeps every browser consistent. */
|
|
90
|
+
details:not([open]) .answer {
|
|
91
|
+
display: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.answer {
|
|
95
|
+
padding: 0 var(--st-spacing-lg) var(--st-spacing-lg);
|
|
96
|
+
color: var(--st-color-text-muted);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.answer ::slotted(*) {
|
|
100
|
+
margin: 0 0 var(--st-spacing-sm);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@media (prefers-reduced-motion: reduce) {
|
|
104
|
+
summary st-icon {
|
|
105
|
+
transition: none;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
`,
|
|
109
|
+
];
|
|
110
|
+
__decorate([
|
|
111
|
+
property({ type: Boolean, reflect: true })
|
|
112
|
+
], StFaqItem.prototype, "open", void 0);
|
|
113
|
+
StFaqItem = __decorate([
|
|
114
|
+
customElement("st-faq-item")
|
|
115
|
+
], StFaqItem);
|
|
116
|
+
export { StFaqItem };
|
|
117
|
+
//# sourceMappingURL=faq-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"faq-item.js","sourceRoot":"","sources":["../../../src/components/faq/faq-item.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,IAAI,EAAE,GAAG,EAAC,MAAM,KAAK,CAAC;AAC9B,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AACjD,OAAO,iBAAiB,CAAC;AAEzB;;;;;;GAMG;AAEI,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,SAAS;IAAjC;;QACL,qCAAqC;QACK,SAAI,GAAG,KAAK,CAAC;QAuE/C,cAAS,GAAG,CAAC,CAAQ,EAAE,EAAE;YAC/B,MAAM,IAAI,GAAI,CAAC,CAAC,MAA6B,CAAC,IAAI,CAAC;YACnD,IAAI,IAAI,KAAK,IAAI,CAAC,IAAI;gBAAE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QAC3C,CAAC,CAAC;IAaJ,CAAC;IAXC,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAA;uBACH,IAAI,CAAC,IAAI,YAAY,IAAI,CAAC,SAAS;;;;;;;KAOrD,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AArFQ,gBAAM,GAAG;IACd,WAAW;IACX,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgEF;CACF,AAnEY,CAmEX;AArEwC;IAAzC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;uCAAc;AAF5C,SAAS;IADrB,aAAa,CAAC,aAAa,CAAC;GAChB,SAAS,CAyFrB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { StSection } from "../section/section.js";
|
|
2
|
+
import "./faq-item.js";
|
|
3
|
+
/**
|
|
4
|
+
* Frequently asked questions: a header and a stack of `st-faq-item` disclosures.
|
|
5
|
+
*
|
|
6
|
+
* Slots: `eyebrow`, `title`, `lead` and the default slot for the `st-faq-item` items.
|
|
7
|
+
*/
|
|
8
|
+
export declare class StFaq extends StSection {
|
|
9
|
+
constructor();
|
|
10
|
+
static styles: import("lit").CSSResult[];
|
|
11
|
+
render(): import("lit-html").TemplateResult;
|
|
12
|
+
}
|
|
13
|
+
declare global {
|
|
14
|
+
interface HTMLElementTagNameMap {
|
|
15
|
+
"st-faq": StFaq;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=faq.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"faq.d.ts","sourceRoot":"","sources":["../../../src/components/faq/faq.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAChD,OAAO,eAAe,CAAC;AAEvB;;;;GAIG;AACH,qBACa,KAAM,SAAQ,SAAS;IAClC,cAGC;IAED,MAAM,CAAC,MAAM,4BAQX;IAEF,MAAM,sCAKL;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,QAAQ,EAAE,KAAK,CAAC;KACjB;CACF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
import "./faq-item.js";
|
|
11
|
+
/**
|
|
12
|
+
* Frequently asked questions: a header and a stack of `st-faq-item` disclosures.
|
|
13
|
+
*
|
|
14
|
+
* Slots: `eyebrow`, `title`, `lead` and the default slot for the `st-faq-item` items.
|
|
15
|
+
*/
|
|
16
|
+
let StFaq = class StFaq extends StSection {
|
|
17
|
+
constructor() {
|
|
18
|
+
super();
|
|
19
|
+
this.width = "md";
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
return this.frame(html `<div class="items"><slot @slotchange=${this._onItemsChange}></slot></div>`, { animated: false });
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
StFaq.styles = [
|
|
26
|
+
...StSection.styles,
|
|
27
|
+
css `
|
|
28
|
+
.items {
|
|
29
|
+
display: grid;
|
|
30
|
+
gap: var(--st-spacing-md);
|
|
31
|
+
}
|
|
32
|
+
`,
|
|
33
|
+
];
|
|
34
|
+
StFaq = __decorate([
|
|
35
|
+
customElement("st-faq")
|
|
36
|
+
], StFaq);
|
|
37
|
+
export { StFaq };
|
|
38
|
+
//# sourceMappingURL=faq.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"faq.js","sourceRoot":"","sources":["../../../src/components/faq/faq.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;AAChD,OAAO,eAAe,CAAC;AAEvB;;;;GAIG;AAEI,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,SAAS;IAClC;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAYD,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CACf,IAAI,CAAA,wCAAwC,IAAI,CAAC,cAAc,gBAAgB,EAC/E,EAAC,QAAQ,EAAE,KAAK,EAAC,CAClB,CAAC;IACJ,CAAC;CACF,CAAA;AAhBQ,YAAM,GAAG;IACd,GAAG,SAAS,CAAC,MAAM;IACnB,GAAG,CAAA;;;;;KAKF;CACF,AARY,CAQX;AAdS,KAAK;IADjB,aAAa,CAAC,QAAQ,CAAC;GACX,KAAK,CAsBjB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PropertyValues } from "lit";
|
|
2
|
+
import { StSection } from "../section/section.js";
|
|
3
|
+
import "./feature.js";
|
|
4
|
+
/**
|
|
5
|
+
* A row of features: a header and a grid of `st-feature` cards. The grid fits as many columns as
|
|
6
|
+
* the screen allows, up to `columns`, and each card animates in after the one before it.
|
|
7
|
+
*
|
|
8
|
+
* Slots: `eyebrow`, `title`, `lead` and the default slot for the `st-feature` items.
|
|
9
|
+
*/
|
|
10
|
+
export declare class StFeatureGrid extends StSection {
|
|
11
|
+
/** The most columns to use on wide screens (fewer fit on narrow ones). */
|
|
12
|
+
columns: number;
|
|
13
|
+
static styles: import("lit").CSSResult[];
|
|
14
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
15
|
+
render(): import("lit-html").TemplateResult;
|
|
16
|
+
}
|
|
17
|
+
declare global {
|
|
18
|
+
interface HTMLElementTagNameMap {
|
|
19
|
+
"st-feature-grid": StFeatureGrid;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=feature-grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature-grid.d.ts","sourceRoot":"","sources":["../../../src/components/feature-grid/feature-grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,cAAc,EAAC,MAAM,KAAK,CAAC;AAE9C,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAChD,OAAO,cAAc,CAAC;AAEtB;;;;;GAKG;AACH,qBACa,aAAc,SAAQ,SAAS;IAC1C,0EAA0E;IAChD,OAAO,SAAK;IAEtC,MAAM,CAAC,MAAM,4BAcX;IAEF,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC,QAK9C;IAED,MAAM,sCAKL;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,aAAa,CAAC;KAClC;CACF"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, css } from "lit";
|
|
8
|
+
import { customElement, property } from "lit/decorators.js";
|
|
9
|
+
import { StSection } from "../section/section.js";
|
|
10
|
+
import "./feature.js";
|
|
11
|
+
/**
|
|
12
|
+
* A row of features: a header and a grid of `st-feature` cards. The grid fits as many columns as
|
|
13
|
+
* the screen allows, up to `columns`, and each card animates in after the one before it.
|
|
14
|
+
*
|
|
15
|
+
* Slots: `eyebrow`, `title`, `lead` and the default slot for the `st-feature` items.
|
|
16
|
+
*/
|
|
17
|
+
let StFeatureGrid = class StFeatureGrid extends StSection {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
/** The most columns to use on wide screens (fewer fit on narrow ones). */
|
|
21
|
+
this.columns = 3;
|
|
22
|
+
}
|
|
23
|
+
updated(changed) {
|
|
24
|
+
super.updated(changed);
|
|
25
|
+
this.renderRoot
|
|
26
|
+
.querySelector(".items")
|
|
27
|
+
?.style.setProperty("--_columns", String(Math.max(1, this.columns)));
|
|
28
|
+
}
|
|
29
|
+
render() {
|
|
30
|
+
return this.frame(html `<div class="items"><slot @slotchange=${this._onItemsChange}></slot></div>`, { animated: false });
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
StFeatureGrid.styles = [
|
|
34
|
+
...StSection.styles,
|
|
35
|
+
css `
|
|
36
|
+
.items {
|
|
37
|
+
--_columns: 3;
|
|
38
|
+
--_gap: var(--st-spacing-lg);
|
|
39
|
+
display: grid;
|
|
40
|
+
gap: var(--_gap);
|
|
41
|
+
grid-template-columns: repeat(
|
|
42
|
+
auto-fit,
|
|
43
|
+
minmax(max(14rem, calc((100% - (var(--_columns) - 1) * var(--_gap)) / var(--_columns))), 1fr)
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
`,
|
|
47
|
+
];
|
|
48
|
+
__decorate([
|
|
49
|
+
property({ type: Number })
|
|
50
|
+
], StFeatureGrid.prototype, "columns", void 0);
|
|
51
|
+
StFeatureGrid = __decorate([
|
|
52
|
+
customElement("st-feature-grid")
|
|
53
|
+
], StFeatureGrid);
|
|
54
|
+
export { StFeatureGrid };
|
|
55
|
+
//# sourceMappingURL=feature-grid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature-grid.js","sourceRoot":"","sources":["../../../src/components/feature-grid/feature-grid.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,IAAI,EAAE,GAAG,EAAiB,MAAM,KAAK,CAAC;AAC9C,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAChD,OAAO,cAAc,CAAC;AAEtB;;;;;GAKG;AAEI,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,SAAS;IAArC;;QACL,0EAA0E;QAChD,YAAO,GAAG,CAAC,CAAC;IA+BxC,CAAC;IAbW,OAAO,CAAC,OAA6B;QAC7C,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACvB,IAAI,CAAC,UAAU;aACZ,aAAa,CAAc,QAAQ,CAAC;YACrC,EAAE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACzE,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CACf,IAAI,CAAA,wCAAwC,IAAI,CAAC,cAAc,gBAAgB,EAC/E,EAAC,QAAQ,EAAE,KAAK,EAAC,CAClB,CAAC;IACJ,CAAC;CACF,CAAA;AA7BQ,oBAAM,GAAG;IACd,GAAG,SAAS,CAAC,MAAM;IACnB,GAAG,CAAA;;;;;;;;;;;KAWF;CACF,AAdY,CAcX;AAhBwB;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;8CAAa;AAF3B,aAAa;IADzB,aAAa,CAAC,iBAAiB,CAAC;GACpB,aAAa,CAiCzB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { StRowItem } from "../section/row-item.js";
|
|
2
|
+
/**
|
|
3
|
+
* One feature inside `st-feature-grid`: an icon, a title and a short description.
|
|
4
|
+
*
|
|
5
|
+
* Slots: `icon` (an `st-icon` or an inline svg), `title` (a real heading such as `<h3>`) and the
|
|
6
|
+
* default slot for the description.
|
|
7
|
+
*/
|
|
8
|
+
export declare class StFeature extends StRowItem {
|
|
9
|
+
private _hasIcon;
|
|
10
|
+
static styles: import("lit").CSSResult[];
|
|
11
|
+
render(): import("lit-html").TemplateResult;
|
|
12
|
+
}
|
|
13
|
+
declare global {
|
|
14
|
+
interface HTMLElementTagNameMap {
|
|
15
|
+
"st-feature": StFeature;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=feature.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../../../src/components/feature-grid/feature.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD;;;;;GAKG;AACH,qBACa,SAAU,SAAQ,SAAS;IAC7B,OAAO,CAAC,QAAQ,CAAS;IAElC,MAAM,CAAC,MAAM,4BA8CX;IAEF,MAAM,sCAaL;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAC;KACzB;CACF"}
|
|
@@ -0,0 +1,91 @@
|
|
|
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, state } from "lit/decorators.js";
|
|
9
|
+
import { resetStyles } from "../../styles/reset.js";
|
|
10
|
+
import { StRowItem } from "../section/row-item.js";
|
|
11
|
+
/**
|
|
12
|
+
* One feature inside `st-feature-grid`: an icon, a title and a short description.
|
|
13
|
+
*
|
|
14
|
+
* Slots: `icon` (an `st-icon` or an inline svg), `title` (a real heading such as `<h3>`) and the
|
|
15
|
+
* default slot for the description.
|
|
16
|
+
*/
|
|
17
|
+
let StFeature = class StFeature extends StRowItem {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this._hasIcon = false;
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
return this.frame(html `
|
|
24
|
+
<div class="card">
|
|
25
|
+
<div class="icon" ?hidden=${!this._hasIcon}>
|
|
26
|
+
<slot
|
|
27
|
+
name="icon"
|
|
28
|
+
@slotchange=${(e) => (this._hasIcon = e.target.assignedNodes().length > 0)}
|
|
29
|
+
></slot>
|
|
30
|
+
</div>
|
|
31
|
+
<slot name="title"></slot>
|
|
32
|
+
<div class="body"><slot></slot></div>
|
|
33
|
+
</div>
|
|
34
|
+
`);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
StFeature.styles = [
|
|
38
|
+
resetStyles,
|
|
39
|
+
css `
|
|
40
|
+
:host {
|
|
41
|
+
display: block;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.card {
|
|
45
|
+
display: grid;
|
|
46
|
+
align-content: start;
|
|
47
|
+
gap: var(--st-spacing-sm);
|
|
48
|
+
height: 100%;
|
|
49
|
+
padding: var(--st-spacing-lg);
|
|
50
|
+
border: 1px solid var(--st-color-border);
|
|
51
|
+
border-radius: var(--st-radius-md);
|
|
52
|
+
background: var(--st-row-card-bg, var(--st-color-surface));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.icon {
|
|
56
|
+
display: inline-flex;
|
|
57
|
+
width: 2.75rem;
|
|
58
|
+
height: 2.75rem;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
border-radius: var(--st-radius-md);
|
|
62
|
+
background: var(--st-color-primary-bg);
|
|
63
|
+
color: var(--st-color-primary-text);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.icon[hidden] {
|
|
67
|
+
display: none;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
::slotted([slot="title"]) {
|
|
71
|
+
margin: 0 !important;
|
|
72
|
+
font-size: var(--st-font-size-xl) !important;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.body {
|
|
76
|
+
color: var(--st-color-text-muted);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.body ::slotted(*) {
|
|
80
|
+
margin: 0;
|
|
81
|
+
}
|
|
82
|
+
`,
|
|
83
|
+
];
|
|
84
|
+
__decorate([
|
|
85
|
+
state()
|
|
86
|
+
], StFeature.prototype, "_hasIcon", void 0);
|
|
87
|
+
StFeature = __decorate([
|
|
88
|
+
customElement("st-feature")
|
|
89
|
+
], StFeature);
|
|
90
|
+
export { StFeature };
|
|
91
|
+
//# sourceMappingURL=feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature.js","sourceRoot":"","sources":["../../../src/components/feature-grid/feature.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,IAAI,EAAE,GAAG,EAAC,MAAM,KAAK,CAAC;AAC9B,OAAO,EAAC,aAAa,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD;;;;;GAKG;AAEI,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,SAAS;IAAjC;;QACY,aAAQ,GAAG,KAAK,CAAC;IAgEpC,CAAC;IAdC,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAA;;oCAEU,CAAC,IAAI,CAAC,QAAQ;;;0BAGxB,CAAC,CAAQ,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAI,CAAC,CAAC,MAA0B,CAAC,aAAa,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;;;;;;KAM7G,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AA9DQ,gBAAM,GAAG;IACd,WAAW;IACX,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2CF;CACF,AA9CY,CA8CX;AAhDe;IAAhB,KAAK,EAAE;2CAA0B;AADvB,SAAS;IADrB,aAAa,CAAC,YAAY,CAAC;GACf,SAAS,CAiErB"}
|
|
@@ -18,9 +18,9 @@ StField.styles = [
|
|
|
18
18
|
:host {
|
|
19
19
|
display: flex;
|
|
20
20
|
flex-direction: column;
|
|
21
|
-
gap: var(--st-spacing-xs
|
|
21
|
+
gap: var(--st-spacing-xs);
|
|
22
22
|
width: 100%;
|
|
23
|
-
margin-bottom: var(--st-spacing-md
|
|
23
|
+
margin-bottom: var(--st-spacing-md);
|
|
24
24
|
}
|
|
25
25
|
`,
|
|
26
26
|
];
|
|
@@ -39,7 +39,7 @@ StFooter.styles = [
|
|
|
39
39
|
display: block;
|
|
40
40
|
border-top: 1px solid var(--st-color-border);
|
|
41
41
|
background-color: var(--st-color-surface);
|
|
42
|
-
padding: var(--st-spacing-lg
|
|
42
|
+
padding: var(--st-spacing-lg) 0;
|
|
43
43
|
margin-top: auto;
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -48,17 +48,17 @@ StFooter.styles = [
|
|
|
48
48
|
display: flex;
|
|
49
49
|
flex-direction: column;
|
|
50
50
|
align-items: center;
|
|
51
|
-
gap: var(--st-spacing-md
|
|
51
|
+
gap: var(--st-spacing-md);
|
|
52
52
|
max-width: 1200px;
|
|
53
53
|
margin: 0 auto;
|
|
54
|
-
padding: 0 var(--st-spacing-md
|
|
54
|
+
padding: 0 var(--st-spacing-md);
|
|
55
55
|
color: var(--st-color-text-muted);
|
|
56
56
|
font-size: 0.875rem;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.links {
|
|
60
60
|
display: flex;
|
|
61
|
-
gap: var(--st-spacing-md
|
|
61
|
+
gap: var(--st-spacing-md);
|
|
62
62
|
flex-wrap: wrap;
|
|
63
63
|
justify-content: center;
|
|
64
64
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns every form and field inside `root` to its starting state: values go back to what the
|
|
3
|
+
* markup says, errors are cleared, and `st-form`s return to their first step. Works on Sondor
|
|
4
|
+
* fields, plain HTML controls and forms, so a modal or panel can be wiped before it is used again.
|
|
5
|
+
*/
|
|
6
|
+
export declare function resetFormState(root: ParentNode): void;
|
|
7
|
+
//# sourceMappingURL=form-reset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-reset.d.ts","sourceRoot":"","sources":["../../../src/components/form/form-reset.ts"],"names":[],"mappings":"AA0BA;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI,CAarD"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/** Clears a field's error state: resetting its value should not leave it looking wrong. */
|
|
2
|
+
function clearValidation(el) {
|
|
3
|
+
if (typeof el.invalid === "boolean")
|
|
4
|
+
el.invalid = false;
|
|
5
|
+
if (typeof el.error === "string")
|
|
6
|
+
el.error = "";
|
|
7
|
+
}
|
|
8
|
+
/** Puts a plain HTML control back to the value written in the markup. */
|
|
9
|
+
function resetNative(el) {
|
|
10
|
+
if (el instanceof HTMLInputElement) {
|
|
11
|
+
if (el.type === "checkbox" || el.type === "radio")
|
|
12
|
+
el.checked = el.defaultChecked;
|
|
13
|
+
else if (el.type === "file")
|
|
14
|
+
el.value = "";
|
|
15
|
+
else
|
|
16
|
+
el.value = el.defaultValue;
|
|
17
|
+
}
|
|
18
|
+
else if (el instanceof HTMLTextAreaElement) {
|
|
19
|
+
el.value = el.defaultValue;
|
|
20
|
+
}
|
|
21
|
+
else if (el instanceof HTMLSelectElement) {
|
|
22
|
+
Array.from(el.options).forEach((option) => (option.selected = option.defaultSelected));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Returns every form and field inside `root` to its starting state: values go back to what the
|
|
27
|
+
* markup says, errors are cleared, and `st-form`s return to their first step. Works on Sondor
|
|
28
|
+
* fields, plain HTML controls and forms, so a modal or panel can be wiped before it is used again.
|
|
29
|
+
*/
|
|
30
|
+
export function resetFormState(root) {
|
|
31
|
+
for (const el of Array.from(root.querySelectorAll("*"))) {
|
|
32
|
+
if (el instanceof HTMLFormElement) {
|
|
33
|
+
el.reset();
|
|
34
|
+
}
|
|
35
|
+
else if (el.localName === "st-form") {
|
|
36
|
+
el.reset?.();
|
|
37
|
+
}
|
|
38
|
+
else if (typeof el.formResetCallback === "function") {
|
|
39
|
+
el.formResetCallback();
|
|
40
|
+
clearValidation(el);
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
resetNative(el);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=form-reset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-reset.js","sourceRoot":"","sources":["../../../src/components/form/form-reset.ts"],"names":[],"mappings":"AAOA,2FAA2F;AAC3F,SAAS,eAAe,CAAC,EAAc;IACrC,IAAI,OAAO,EAAE,CAAC,OAAO,KAAK,SAAS;QAAE,EAAE,CAAC,OAAO,GAAG,KAAK,CAAC;IACxD,IAAI,OAAO,EAAE,CAAC,KAAK,KAAK,QAAQ;QAAE,EAAE,CAAC,KAAK,GAAG,EAAE,CAAC;AAClD,CAAC;AAED,yEAAyE;AACzE,SAAS,WAAW,CAAC,EAAW;IAC9B,IAAI,EAAE,YAAY,gBAAgB,EAAE,CAAC;QACnC,IAAI,EAAE,CAAC,IAAI,KAAK,UAAU,IAAI,EAAE,CAAC,IAAI,KAAK,OAAO;YAAE,EAAE,CAAC,OAAO,GAAG,EAAE,CAAC,cAAc,CAAC;aAC7E,IAAI,EAAE,CAAC,IAAI,KAAK,MAAM;YAAE,EAAE,CAAC,KAAK,GAAG,EAAE,CAAC;;YACtC,EAAE,CAAC,KAAK,GAAG,EAAE,CAAC,YAAY,CAAC;IAClC,CAAC;SAAM,IAAI,EAAE,YAAY,mBAAmB,EAAE,CAAC;QAC7C,EAAE,CAAC,KAAK,GAAG,EAAE,CAAC,YAAY,CAAC;IAC7B,CAAC;SAAM,IAAI,EAAE,YAAY,iBAAiB,EAAE,CAAC;QAC3C,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC;IACzF,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,IAAgB;IAC7C,KAAK,MAAM,EAAE,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAa,GAAG,CAAC,CAAC,EAAE,CAAC;QACpE,IAAI,EAAE,YAAY,eAAe,EAAE,CAAC;YAClC,EAAE,CAAC,KAAK,EAAE,CAAC;QACb,CAAC;aAAM,IAAI,EAAE,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;YACtC,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC;QACf,CAAC;aAAM,IAAI,OAAO,EAAE,CAAC,iBAAiB,KAAK,UAAU,EAAE,CAAC;YACtD,EAAE,CAAC,iBAAiB,EAAE,CAAC;YACvB,eAAe,CAAC,EAAE,CAAC,CAAC;QACtB,CAAC;aAAM,CAAC;YACN,WAAW,CAAC,EAAE,CAAC,CAAC;QAClB,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -16,6 +16,11 @@ export declare class StForm extends LitElement {
|
|
|
16
16
|
updated(changedProperties: PropertyValues<this>): void;
|
|
17
17
|
private _handleGlobalKeyDown;
|
|
18
18
|
private _updateModalFooter;
|
|
19
|
+
/**
|
|
20
|
+
* Clears everything entered: fields return to their starting values, errors are cleared, the
|
|
21
|
+
* form goes back to its first step and stops loading.
|
|
22
|
+
*/
|
|
23
|
+
reset(): void;
|
|
19
24
|
private _handleSlotChange;
|
|
20
25
|
private _updateStepVisibility;
|
|
21
26
|
private _validateCurrentContext;
|