@kickstartds/ds-agency-premium 1.7.0--canary.46.1837.0 → 1.7.0--canary.43.2352.0
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/{BlogAsideProps-d9decb7c.d.ts → BlogAsideProps-c760fd2a.d.ts} +5 -5
- package/dist/{BlogAuthorProps-88a11566.d.ts → BlogAuthorProps-fb0241df.d.ts} +7 -2
- package/dist/BlogOverviewProps-9f207f1c.d.ts +2 -2
- package/dist/{BlogPostProps-6b3cff22.d.ts → BlogPostProps-c760fd2a.d.ts} +3 -3
- package/dist/BusinessCardProps-e10e7b62.d.ts +101 -0
- package/dist/{ButtonProps-03ff6d21.d.ts → ButtonProps-4e2b2ecf.d.ts} +6 -4
- package/dist/ContactProps-7cac90e5.d.ts +70 -0
- package/dist/ContentNavProps-0e282a9f.d.ts +36 -0
- package/dist/{CtaProps-93230a76.d.ts → CtaProps-789f8508.d.ts} +16 -11
- package/dist/DownloadsProps-a49a977e.d.ts +34 -0
- package/dist/EventAppointmentProps-443cd1ce.d.ts +38 -0
- package/dist/EventDetailProps-42a7eebe.d.ts +387 -0
- package/dist/EventFilterProps-b190eb86.d.ts +73 -0
- package/dist/EventLatestTeaserProps-fc9d3281.d.ts +58 -0
- package/dist/EventListTeaserProps-5cc94436.d.ts +89 -0
- package/dist/EventLocationProps-871bc198.d.ts +41 -0
- package/dist/{FaqProps-ad618cd5.d.ts → FaqProps-78384db5.d.ts} +7 -12
- package/dist/{FeaturesProps-e58616a5.d.ts → FeaturesProps-a9041d97.d.ts} +9 -4
- package/dist/{FooterProps-171a3067.d.ts → FooterProps-a0a104ca.d.ts} +2 -2
- package/dist/{HeaderProps-e22382f1.d.ts → HeaderProps-72763967.d.ts} +2 -2
- package/dist/HeadlineProps-e1305784.d.ts +53 -0
- package/dist/{HeroProps-f704d270.d.ts → HeroProps-fec6b267.d.ts} +15 -5
- package/dist/ImageStoryProps-e853e1e7.d.ts +1 -1
- package/dist/{LogosProps-f9474fe2.d.ts → LogosProps-d4677d2c.d.ts} +1 -23
- package/dist/MosaicProps-d52c7151.d.ts +4 -4
- package/dist/PageProps-aa29c554.d.ts +1 -1
- package/dist/SearchBarProps-26263244.d.ts +29 -0
- package/dist/SearchFilterProps-2fa6419b.d.ts +29 -0
- package/dist/SearchFormProps-3d2c3462.d.ts +30 -0
- package/dist/SearchResultMatchProps-777cd47c.d.ts +23 -0
- package/dist/SearchResultProps-f6f07017.d.ts +44 -0
- package/dist/{SectionProps-1cfcf6e8.d.ts → SectionProps-7cac90e5.d.ts} +27 -13
- package/dist/{SliderProps-93230a76.d.ts → SliderProps-789f8508.d.ts} +5 -5
- package/dist/SplitEvenProps-7cac90e5.d.ts +72 -0
- package/dist/SplitWeightedProps-7cac90e5.d.ts +102 -0
- package/dist/{TeaserCardProps-b9c28e78.d.ts → TeaserCardProps-d069476f.d.ts} +9 -4
- package/dist/{VideoCurtainProps-6c625a69.d.ts → VideoCurtainProps-a2c0cc7f.d.ts} +5 -5
- package/dist/components/blog-aside/blog-aside.css +4 -4
- package/dist/components/blog-aside/blog-aside.schema.dereffed.json +16 -14
- package/dist/components/blog-aside/blog-aside.schema.json +4 -4
- package/dist/components/blog-aside/index.d.ts +1 -1
- package/dist/components/blog-aside/index.js +4 -4
- package/dist/components/blog-author/blog-author.schema.dereffed.json +12 -7
- package/dist/components/blog-author/index.d.ts +1 -1
- package/dist/components/blog-author/index.js +1 -1
- package/dist/components/blog-head/blog-head.schema.dereffed.json +0 -6
- package/dist/components/blog-head/index.js +1 -1
- package/dist/components/blog-overview/blog-overview.schema.dereffed.json +16897 -1414
- package/dist/components/blog-overview/blog-overview.schema.json +2 -2
- package/dist/components/blog-overview/index.js +1 -1
- package/dist/components/blog-post/blog-post.schema.dereffed.json +17070 -1573
- package/dist/components/blog-post/blog-post.schema.json +2 -2
- package/dist/components/blog-post/index.d.ts +1 -1
- package/dist/components/blog-post/index.js +5 -3
- package/dist/components/blog-tag/blog-tag.schema.dereffed.json +0 -3
- package/dist/components/blog-teaser/blog-teaser.css +2 -2
- package/dist/components/blog-teaser/blog-teaser.schema.dereffed.json +0 -6
- package/dist/components/blog-teaser/index.js +6 -8
- package/dist/components/breadcrumb/breadcrumb.css +32 -0
- package/dist/components/breadcrumb/breadcrumb.schema.dereffed.json +31 -0
- package/dist/components/breadcrumb/breadcrumb.schema.json +27 -0
- package/dist/components/breadcrumb/index.d.ts +28 -0
- package/dist/components/breadcrumb/index.js +22 -0
- package/dist/components/business-card/business-card.css +186 -0
- package/dist/components/business-card/business-card.schema.dereffed.json +141 -0
- package/dist/components/business-card/business-card.schema.json +126 -0
- package/dist/components/business-card/index.d.ts +7 -0
- package/dist/components/business-card/index.js +31 -0
- package/dist/components/button/button.css +5 -2
- package/dist/components/button/button.schema.dereffed.json +10 -4
- package/dist/components/button/button.schema.json +8 -3
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/button/index.js +19 -9
- package/dist/components/button-group/button-group.schema.dereffed.json +12 -9
- package/dist/components/button-group/index.d.ts +4 -4
- package/dist/components/button-group/index.js +11 -2
- package/dist/components/contact/contact.css +11 -17
- package/dist/components/contact/contact.schema.dereffed.json +13 -8
- package/dist/components/contact/contact.schema.json +11 -5
- package/dist/components/contact/index.d.ts +1 -65
- package/dist/components/contact/index.js +2 -2
- package/dist/components/content-nav/content-nav.css +122 -0
- package/dist/components/content-nav/content-nav.schema.dereffed.json +58 -0
- package/dist/components/content-nav/content-nav.schema.json +52 -0
- package/dist/components/content-nav/index.d.ts +7 -0
- package/dist/components/content-nav/index.js +21 -0
- package/dist/components/cookie-consent/C15t.client.d.ts +5 -0
- package/dist/components/cookie-consent/C15t.client.js +123 -0
- package/dist/components/cookie-consent/CookieConsent.client.d.ts +29 -0
- package/dist/components/cookie-consent/CookieConsent.client.js +84 -0
- package/dist/components/cookie-consent/cookie-consent.css +255 -0
- package/dist/components/cookie-consent/cookie-consent.schema.dereffed.json +256 -0
- package/dist/components/cookie-consent/cookie-consent.schema.json +224 -0
- package/dist/components/cookie-consent/index.d.ts +143 -0
- package/dist/components/cookie-consent/index.js +26 -0
- package/dist/components/cta/cta.css +48 -71
- package/dist/components/cta/cta.schema.dereffed.json +21 -13
- package/dist/components/cta/cta.schema.json +17 -10
- package/dist/components/cta/index.d.ts +1 -1
- package/dist/components/cta/index.js +30 -30
- package/dist/components/divider/divider.schema.dereffed.json +0 -3
- package/dist/components/divider/index.js +1 -1
- package/dist/components/downloads/downloads.css +158 -0
- package/dist/components/downloads/downloads.schema.dereffed.json +52 -0
- package/dist/components/downloads/downloads.schema.json +44 -0
- package/dist/components/downloads/index.d.ts +8 -0
- package/dist/components/downloads/index.js +23 -0
- package/dist/components/event-appointment/event-appointment.css +63 -0
- package/dist/components/event-appointment/event-appointment.schema.dereffed.json +53 -0
- package/dist/components/event-appointment/event-appointment.schema.json +47 -0
- package/dist/components/event-appointment/index.d.ts +7 -0
- package/dist/components/event-appointment/index.js +21 -0
- package/dist/components/event-detail/event-detail.schema.dereffed.json +278 -0
- package/dist/components/event-detail/event-detail.schema.json +74 -0
- package/dist/components/event-detail/index.d.ts +5 -0
- package/dist/components/event-detail/index.js +37 -0
- package/dist/components/event-filter/event-filter.css +31 -0
- package/dist/components/event-filter/event-filter.schema.dereffed.json +115 -0
- package/dist/components/event-filter/event-filter.schema.json +107 -0
- package/dist/components/event-filter/index.d.ts +7 -0
- package/dist/components/event-filter/index.js +61 -0
- package/dist/components/event-header/event-header.css +6 -0
- package/dist/components/event-header/event-header.schema.dereffed.json +35 -0
- package/dist/components/event-header/event-header.schema.json +34 -0
- package/dist/components/event-header/index.d.ts +35 -0
- package/dist/components/event-header/index.js +25 -0
- package/dist/components/event-latest/event-latest.css +5 -0
- package/dist/components/event-latest/event-latest.schema.dereffed.json +136 -0
- package/dist/components/event-latest/event-latest.schema.json +46 -0
- package/dist/components/event-latest/index.d.ts +30 -0
- package/dist/components/event-latest/index.js +24 -0
- package/dist/components/event-latest-teaser/event-latest-teaser.css +131 -0
- package/dist/components/event-latest-teaser/event-latest-teaser.schema.dereffed.json +94 -0
- package/dist/components/event-latest-teaser/event-latest-teaser.schema.json +73 -0
- package/dist/components/event-latest-teaser/index.d.ts +8 -0
- package/dist/components/event-latest-teaser/index.js +23 -0
- package/dist/components/event-list/event-list.schema.dereffed.json +275 -0
- package/dist/components/event-list/event-list.schema.json +18 -0
- package/dist/components/event-list/index.d.ts +19 -0
- package/dist/components/event-list/index.js +74 -0
- package/dist/components/event-list-teaser/event-list-teaser.css +143 -0
- package/dist/components/event-list-teaser/event-list-teaser.schema.dereffed.json +148 -0
- package/dist/components/event-list-teaser/event-list-teaser.schema.json +116 -0
- package/dist/components/event-list-teaser/index.d.ts +8 -0
- package/dist/components/event-list-teaser/index.js +28 -0
- package/dist/components/event-location/event-location.css +71 -0
- package/dist/components/event-location/event-location.schema.dereffed.json +120 -0
- package/dist/components/event-location/event-location.schema.json +61 -0
- package/dist/components/event-location/index.d.ts +7 -0
- package/dist/components/event-location/index.js +25 -0
- package/dist/components/event-login/event-login.css +31 -0
- package/dist/components/event-login/event-login.schema.dereffed.json +122 -0
- package/dist/components/event-login/event-login.schema.json +98 -0
- package/dist/components/event-login/index.d.ts +78 -0
- package/dist/components/event-login/index.js +31 -0
- package/dist/components/event-registration/event-registration.css +88 -0
- package/dist/components/event-registration/event-registration.schema.dereffed.json +171 -0
- package/dist/components/event-registration/event-registration.schema.json +138 -0
- package/dist/components/event-registration/index.d.ts +106 -0
- package/dist/components/event-registration/index.js +36 -0
- package/dist/components/faq/faq.css +1 -1
- package/dist/components/faq/faq.schema.dereffed.json +2 -5
- package/dist/components/faq/faq.schema.json +2 -1
- package/dist/components/faq/index.d.ts +24 -7
- package/dist/components/faq/index.js +2 -2
- package/dist/components/feature/feature.schema.dereffed.json +13 -6
- package/dist/components/feature/feature.schema.json +11 -3
- package/dist/components/feature/index.d.ts +8 -3
- package/dist/components/feature/index.js +6 -5
- package/dist/components/features/features.css +12 -14
- package/dist/components/features/features.schema.dereffed.json +13 -6
- package/dist/components/features/features.schema.json +5 -2
- package/dist/components/features/index.d.ts +1 -1
- package/dist/components/features/index.js +4 -3
- package/dist/components/footer/footer.css +4 -3
- package/dist/components/footer/footer.schema.dereffed.json +12 -15
- package/dist/components/footer/index.d.ts +1 -1
- package/dist/components/footer/index.js +2 -2
- package/dist/components/gallery/gallery.schema.dereffed.json +2 -4
- package/dist/components/gallery/gallery.schema.json +2 -1
- package/dist/components/gallery/index.js +3 -2
- package/dist/components/header/header.css +52 -9
- package/dist/components/header/header.schema.dereffed.json +12 -15
- package/dist/components/header/index.d.ts +1 -1
- package/dist/components/header/index.js +6 -6
- package/dist/components/headline/headline.css +33 -41
- package/dist/components/headline/headline.schema.dereffed.json +0 -3
- package/dist/components/headline/index.d.ts +1 -53
- package/dist/components/headline/index.js +13 -4
- package/dist/components/hero/hero.css +145 -52
- package/dist/components/hero/hero.schema.dereffed.json +19 -8
- package/dist/components/hero/hero.schema.json +24 -4
- package/dist/components/hero/index.d.ts +1 -1
- package/dist/components/hero/index.js +53 -41
- package/dist/components/html/html.schema.dereffed.json +0 -3
- package/dist/components/html/index.js +1 -1
- package/dist/components/image-story/image-story.css +13 -6
- package/dist/components/image-story/image-story.schema.dereffed.json +10 -7
- package/dist/components/image-story/index.js +1 -1
- package/dist/components/image-text/image-text.css +4 -4
- package/dist/components/image-text/image-text.schema.dereffed.json +0 -3
- package/dist/components/image-text/index.js +1 -1
- package/dist/components/index/index.d.ts +4 -3
- package/dist/components/logo/index.js +1 -1
- package/dist/components/logo/logo.schema.dereffed.json +0 -3
- package/dist/components/logos/index.d.ts +1 -1
- package/dist/components/logos/index.js +2 -2
- package/dist/components/logos/logos.css +2 -2
- package/dist/components/logos/logos.schema.dereffed.json +7 -11
- package/dist/components/logos/logos.schema.json +7 -8
- package/dist/components/mosaic/index.js +2 -2
- package/dist/components/mosaic/mosaic.css +5 -7
- package/dist/components/mosaic/mosaic.schema.dereffed.json +3 -9
- package/dist/components/nav-dropdown/index.d.ts +1 -1
- package/dist/components/nav-dropdown/index.js +2 -2
- package/dist/components/nav-dropdown/nav-dropdown.css +13 -4
- package/dist/components/nav-dropdown/nav-dropdown.schema.dereffed.json +1 -4
- package/dist/components/nav-flyout/index.d.ts +2 -2
- package/dist/components/nav-flyout/index.js +7 -9
- package/dist/components/nav-flyout/nav-flyout.css +29 -15
- package/dist/components/nav-flyout/nav-flyout.schema.dereffed.json +12 -18
- package/dist/components/nav-main/index.d.ts +5 -5
- package/dist/components/nav-main/index.js +1 -3
- package/dist/components/nav-main/nav-main.schema.dereffed.json +15 -21
- package/dist/components/nav-main/nav-main.schema.json +14 -14
- package/dist/components/nav-toggle/index.js +1 -1
- package/dist/components/nav-topbar/index.d.ts +2 -2
- package/dist/components/nav-topbar/index.js +3 -3
- package/dist/components/nav-topbar/nav-topbar.css +17 -4
- package/dist/components/nav-topbar/nav-topbar.schema.dereffed.json +12 -15
- package/dist/components/page/page.schema.dereffed.json +17039 -1546
- package/dist/components/page/page.schema.json +2 -2
- package/dist/components/page-wrapper/index.js +51 -1
- package/dist/components/page-wrapper/tokens.css +448 -752
- package/dist/components/pagination/index.d.ts +55 -0
- package/dist/components/pagination/index.js +58 -0
- package/dist/components/pagination/pagination.css +90 -0
- package/dist/components/pagination/pagination.schema.dereffed.json +64 -0
- package/dist/components/pagination/pagination.schema.json +60 -0
- package/dist/components/presets.json +2314 -521
- package/dist/components/providers/index.js +1 -1
- package/dist/components/search/index.d.ts +29 -0
- package/dist/components/search/index.js +53 -0
- package/dist/components/search/search.schema.dereffed.json +301 -0
- package/dist/components/search/search.schema.json +24 -0
- package/dist/components/search-bar/index.d.ts +7 -0
- package/dist/components/search-bar/index.js +20 -0
- package/dist/components/search-bar/search-bar.css +33 -0
- package/dist/components/search-bar/search-bar.schema.dereffed.json +45 -0
- package/dist/components/search-bar/search-bar.schema.json +35 -0
- package/dist/components/search-filter/index.d.ts +7 -0
- package/dist/components/search-filter/index.js +20 -0
- package/dist/components/search-filter/search-filter.css +22 -0
- package/dist/components/search-filter/search-filter.schema.dereffed.json +66 -0
- package/dist/components/search-filter/search-filter.schema.json +46 -0
- package/dist/components/search-form/SearchForm.client.d.ts +25 -0
- package/dist/components/search-form/SearchForm.client.js +228 -0
- package/dist/components/search-form/SearchFormPagefind.client.d.ts +5 -0
- package/dist/components/search-form/SearchFormPagefind.client.js +40 -0
- package/dist/components/search-form/index.d.ts +4 -0
- package/dist/components/search-form/index.js +25 -0
- package/dist/components/search-form/search-form.css +10 -0
- package/dist/components/search-form/search-form.schema.dereffed.json +49 -0
- package/dist/components/search-form/search-form.schema.json +38 -0
- package/dist/components/search-modal/RadioEmit.client.d.ts +5 -0
- package/dist/components/search-modal/RadioEmit.client.js +17 -0
- package/dist/components/search-modal/SearchModal.client.d.ts +5 -0
- package/dist/components/search-modal/SearchModal.client.js +31 -0
- package/dist/components/search-modal/index.d.ts +18 -0
- package/dist/components/search-modal/index.js +39 -0
- package/dist/components/search-modal/search-modal.css +27 -0
- package/dist/components/search-modal/search-modal.schema.dereffed.json +70 -0
- package/dist/components/search-modal/search-modal.schema.json +24 -0
- package/dist/components/search-result/index.d.ts +7 -0
- package/dist/components/search-result/index.js +29 -0
- package/dist/components/search-result/search-result.css +76 -0
- package/dist/components/search-result/search-result.schema.dereffed.json +90 -0
- package/dist/components/search-result/search-result.schema.json +52 -0
- package/dist/components/search-result-match/index.d.ts +7 -0
- package/dist/components/search-result-match/index.js +18 -0
- package/dist/components/search-result-match/search-result-match.css +18 -0
- package/dist/components/search-result-match/search-result-match.schema.dereffed.json +33 -0
- package/dist/components/search-result-match/search-result-match.schema.json +31 -0
- package/dist/components/section/index.d.ts +1 -1
- package/dist/components/section/index.js +16 -18
- package/dist/components/section/section.css +45 -58
- package/dist/components/section/section.schema.dereffed.json +17045 -1546
- package/dist/components/section/section.schema.json +38 -11
- package/dist/components/seo/seo.schema.dereffed.json +4 -7
- package/dist/components/seo/seo.schema.json +4 -3
- package/dist/components/settings/settings.schema.dereffed.json +29 -41
- package/dist/components/settings/settings.schema.json +2 -2
- package/dist/components/slider/index.d.ts +4 -2
- package/dist/components/slider/index.js +19 -3
- package/dist/components/slider/slider.css +14 -9
- package/dist/components/slider/slider.schema.dereffed.json +72 -67
- package/dist/components/split-even/index.d.ts +12 -0
- package/dist/components/split-even/index.js +26 -0
- package/dist/components/split-even/split-even.css +103 -0
- package/dist/components/split-even/split-even.schema.dereffed.json +7322 -0
- package/dist/components/split-even/split-even.schema.json +212 -0
- package/dist/components/split-weighted/index.d.ts +12 -0
- package/dist/components/split-weighted/index.js +42 -0
- package/dist/components/split-weighted/split-weighted.css +133 -0
- package/dist/components/split-weighted/split-weighted.schema.dereffed.json +7382 -0
- package/dist/components/split-weighted/split-weighted.schema.json +254 -0
- package/dist/components/stat/index.js +1 -1
- package/dist/components/stat/stat.schema.dereffed.json +0 -3
- package/dist/components/stats/index.js +1 -1
- package/dist/components/stats/stats.schema.dereffed.json +0 -6
- package/dist/components/teaser-card/index.d.ts +1 -1
- package/dist/components/teaser-card/index.js +11 -10
- package/dist/components/teaser-card/teaser-card.css +106 -54
- package/dist/components/teaser-card/teaser-card.schema.dereffed.json +10 -7
- package/dist/components/teaser-card/teaser-card.schema.json +10 -4
- package/dist/components/testimonial/index.js +1 -1
- package/dist/components/testimonial/testimonial.schema.dereffed.json +0 -3
- package/dist/components/testimonials/index.d.ts +1 -1
- package/dist/components/testimonials/index.js +1 -1
- package/dist/components/testimonials/testimonials.css +4 -0
- package/dist/components/testimonials/testimonials.schema.dereffed.json +0 -3
- package/dist/components/text/index.js +1 -1
- package/dist/components/text/text.css +2 -2
- package/dist/components/text/text.schema.dereffed.json +0 -3
- package/dist/components/tile/tile.schema.dereffed.json +3 -6
- package/dist/components/tile/tile.schema.json +2 -2
- package/dist/components/video-curtain/index.d.ts +1 -1
- package/dist/components/video-curtain/index.js +13 -5
- package/dist/components/video-curtain/video-curtain.css +54 -31
- package/dist/components/video-curtain/video-curtain.schema.dereffed.json +6 -7
- package/dist/components/video-curtain/video-curtain.schema.json +3 -3
- package/dist/global.css +1310 -66
- package/dist/{helpers-84d80d46.d.ts → helpers-12f48df8.d.ts} +2 -1
- package/dist/{helpers-84d80d46.js → helpers-12f48df8.js} +11 -4
- package/dist/static/fonts/systemics/Montserrat-Bold.woff2 +0 -0
- package/dist/static/fonts/systemics/Montserrat-Light.woff2 +0 -0
- package/dist/static/fonts/systemics/Montserrat-Medium.woff2 +0 -0
- package/dist/static/fonts/systemics/Montserrat-Regular.woff2 +0 -0
- package/dist/static/fonts/systemics/Montserrat-SemiBold.woff2 +0 -0
- package/dist/static/img/about/angled-image.png +0 -0
- package/dist/static/img/about/cta.png +0 -0
- package/dist/static/img/about/cutout.png +0 -0
- package/dist/static/img/about/disclaimer.png +0 -0
- package/dist/static/img/about/purpose.png +0 -0
- package/dist/static/img/about/spoiler.png +0 -0
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-01.svg +72 -0
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-02.svg +112 -0
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-03.svg +197 -0
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-04.svg +76 -0
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-05.svg +82 -0
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-06.svg +219 -0
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-07.svg +85 -0
- package/dist/static/img/logos/logoipsum-344.svg +174 -0
- package/dist/static/img/logos/logoipsum-347.svg +52 -0
- package/dist/static/img/logos/logoipsum-352.svg +22 -0
- package/dist/static/img/logos/logoipsum-356.svg +20 -0
- package/dist/static/img/logos/logoipsum-358.svg +29 -0
- package/dist/static/img/logos/logoipsum-369.svg +20 -0
- package/dist/static/img/logos/logoipsum-373.svg +17 -0
- package/dist/static/img/people/author-alex.png +0 -0
- package/dist/static/img/people/author-emily.png +0 -0
- package/dist/static/img/people/author-john.png +0 -0
- package/dist/static/img/people/contact-person.png +0 -0
- package/dist/static/img/screenshots/blog-blog-aside--default.png +0 -0
- package/dist/static/img/screenshots/blog-blog-author--default.png +0 -0
- package/dist/static/img/screenshots/blog-blog-head--default.png +0 -0
- package/dist/static/img/screenshots/blog-blog-teaser--default.png +0 -0
- package/dist/static/img/screenshots/components-button--primary-button.png +0 -0
- package/dist/static/img/screenshots/components-button--primary-disabled-button.png +0 -0
- package/dist/static/img/screenshots/components-button--secondary-button.png +0 -0
- package/dist/static/img/screenshots/components-button--tertiary-button.png +0 -0
- package/dist/static/img/screenshots/components-contact--circular-avatar.png +0 -0
- package/dist/static/img/screenshots/components-contact--full-image-width.png +0 -0
- package/dist/static/img/screenshots/components-contact--vertical-image-with-paragraph.png +0 -0
- package/dist/static/img/screenshots/components-contact--wide-image.png +0 -0
- package/dist/static/img/screenshots/components-cta--align-bottom.png +0 -0
- package/dist/static/img/screenshots/components-cta--angled-image.png +0 -0
- package/dist/static/img/screenshots/components-cta--banner.png +0 -0
- package/dist/static/img/screenshots/components-cta--colored-banner.png +0 -0
- package/dist/static/img/screenshots/components-cta--contact-banner.png +0 -0
- package/dist/static/img/screenshots/components-cta--highlighted.png +0 -0
- package/dist/static/img/screenshots/components-cta--left-aligned.png +0 -0
- package/dist/static/img/screenshots/components-cta--product-advertisement.png +0 -0
- package/dist/static/img/screenshots/components-cta--split-banner.png +0 -0
- package/dist/static/img/screenshots/components-faq--dropdown-list.png +0 -0
- package/dist/static/img/screenshots/components-faq--single-dropdown.png +0 -0
- package/dist/static/img/screenshots/components-features--icon-beside-with-link-in-text.png +0 -0
- package/dist/static/img/screenshots/components-features--icon-centered.png +0 -0
- package/dist/static/img/screenshots/components-features--icon-intext-with-link.png +0 -0
- package/dist/static/img/screenshots/components-features--list-view.png +0 -0
- package/dist/static/img/screenshots/components-features--stack-with-button.png +0 -0
- package/dist/static/img/screenshots/components-gallery--free-aspect-ratio.png +0 -0
- package/dist/static/img/screenshots/components-gallery--large-landscape-tiles.png +0 -0
- package/dist/static/img/screenshots/components-gallery--small-squares-with-lightbox.png +0 -0
- package/dist/static/img/screenshots/components-gallery--stack-landscape.png +0 -0
- package/dist/static/img/screenshots/components-headline--h-1.png +0 -0
- package/dist/static/img/screenshots/components-headline--h-2.png +0 -0
- package/dist/static/img/screenshots/components-headline--h-3.png +0 -0
- package/dist/static/img/screenshots/components-headline--h-4.png +0 -0
- package/dist/static/img/screenshots/components-headline--order-swapped.png +0 -0
- package/dist/static/img/screenshots/components-headline--with-markdown.png +0 -0
- package/dist/static/img/screenshots/components-headline--with-subheadline.png +0 -0
- package/dist/static/img/screenshots/components-hero--text-below-image.png +0 -0
- package/dist/static/img/screenshots/components-hero--text-box-on-full-screen.png +0 -0
- package/dist/static/img/screenshots/components-hero--text-on-image-with-overlay.png +0 -0
- package/dist/static/img/screenshots/components-html--html.png +0 -0
- package/dist/static/img/screenshots/components-html--with-consent.png +0 -0
- package/dist/static/img/screenshots/components-html--with-script.png +0 -0
- package/dist/static/img/screenshots/components-image-story--sticky-image-next-to-scrolling-text.png +0 -0
- package/dist/static/img/screenshots/components-image-text--above-layout.png +0 -0
- package/dist/static/img/screenshots/components-image-text--beside-right-layout.png +0 -0
- package/dist/static/img/screenshots/components-logos--centered-with-button.png +0 -0
- package/dist/static/img/screenshots/components-logos--left-aligned-with-text-link.png +0 -0
- package/dist/static/img/screenshots/components-logos--logo-row.png +0 -0
- package/dist/static/img/screenshots/components-logos--logo-wall.png +0 -0
- package/dist/static/img/screenshots/components-mosaic--colorful-text-with-illustrations.png +0 -0
- package/dist/static/img/screenshots/components-mosaic--colorful-tiles.png +0 -0
- package/dist/static/img/screenshots/components-stats--count-up-with-description.png +0 -0
- package/dist/static/img/screenshots/components-stats--count-up-with-icons.png +0 -0
- package/dist/static/img/screenshots/components-teaser-card--page-navigation.png +0 -0
- package/dist/static/img/screenshots/components-teaser-card--product-tiles.png +0 -0
- package/dist/static/img/screenshots/components-teaser-card--showcase-preview.png +0 -0
- package/dist/static/img/screenshots/components-testimonials--alternating-layout.png +0 -0
- package/dist/static/img/screenshots/components-testimonials--list-layout.png +0 -0
- package/dist/static/img/screenshots/components-testimonials--simple.png +0 -0
- package/dist/static/img/screenshots/components-testimonials--slider-layout.png +0 -0
- package/dist/static/img/screenshots/components-testimonials--with-rating.png +0 -0
- package/dist/static/img/screenshots/components-testimonials--with-title.png +0 -0
- package/dist/static/img/screenshots/components-text--centered.png +0 -0
- package/dist/static/img/screenshots/components-text--highlight.png +0 -0
- package/dist/static/img/screenshots/components-text--multi-column.png +0 -0
- package/dist/static/img/screenshots/components-text--single-column.png +0 -0
- package/dist/static/img/screenshots/components-video-curtain--atmospheric-video-with-overlay.png +0 -0
- package/dist/static/img/screenshots/components-video-curtain--color-neutral-text.png +0 -0
- package/dist/static/img/screenshots/components-video-curtain--color-neutral-video.png +0 -0
- package/dist/static/img/screenshots/corporate-breadcrumb--default.png +0 -0
- package/dist/static/img/screenshots/corporate-business-card--centered.png +0 -0
- package/dist/static/img/screenshots/corporate-business-card--default.png +0 -0
- package/dist/static/img/screenshots/corporate-business-card--without-image.png +0 -0
- package/dist/static/img/screenshots/corporate-content-nav--default.png +0 -0
- package/dist/static/img/screenshots/corporate-cookie-consent--banner.png +0 -0
- package/dist/static/img/screenshots/corporate-cookie-consent--c-15-t.png +0 -0
- package/dist/static/img/screenshots/corporate-cookie-consent--card.png +0 -0
- package/dist/static/img/screenshots/corporate-downloads--complete.png +0 -0
- package/dist/static/img/screenshots/corporate-downloads--description-only.png +0 -0
- package/dist/static/img/screenshots/corporate-downloads--mixed.png +0 -0
- package/dist/static/img/screenshots/corporate-downloads--technical-details-only.png +0 -0
- package/dist/static/img/screenshots/corporate-pagination--default.png +0 -0
- package/dist/static/img/screenshots/corporate-search-bar--default.png +0 -0
- package/dist/static/img/screenshots/corporate-search-filter--default.png +0 -0
- package/dist/static/img/screenshots/corporate-search-form--pagefind.png +0 -0
- package/dist/static/img/screenshots/corporate-search-modal--pagefind.png +0 -0
- package/dist/static/img/screenshots/corporate-search-result--default.png +0 -0
- package/dist/static/img/screenshots/event-event-filter--default.png +0 -0
- package/dist/static/img/screenshots/event-event-header--default.png +0 -0
- package/dist/static/img/screenshots/event-event-latest--default.png +0 -0
- package/dist/static/img/screenshots/event-event-latest-teaser--default.png +0 -0
- package/dist/static/img/screenshots/event-event-list-teaser--default.png +0 -0
- package/dist/static/img/screenshots/event-event-location--default.png +0 -0
- package/dist/static/img/screenshots/event-event-login--default.png +0 -0
- package/dist/static/img/screenshots/event-event-registration--default.png +0 -0
- package/dist/static/img/screenshots/form-checkbox--default.png +0 -0
- package/dist/static/img/screenshots/form-radio--default.png +0 -0
- package/dist/static/img/screenshots/form-select-field--default.png +0 -0
- package/dist/static/img/screenshots/form-text-area--default.png +0 -0
- package/dist/static/img/screenshots/form-text-field--default.png +0 -0
- package/dist/static/img/screenshots/layout-divider--accent.png +0 -0
- package/dist/static/img/screenshots/layout-divider--default.png +0 -0
- package/dist/static/img/screenshots/layout-footer--footer.png +0 -0
- package/dist/static/img/screenshots/layout-header--header.png +0 -0
- package/dist/static/img/screenshots/layout-section--accent-background.png +0 -0
- package/dist/static/img/screenshots/layout-section--background-image.png +0 -0
- package/dist/static/img/screenshots/layout-section--bold-background.png +0 -0
- package/dist/static/img/screenshots/layout-section--dynamic-layout.png +0 -0
- package/dist/static/img/screenshots/layout-section--framed.png +0 -0
- package/dist/static/img/screenshots/layout-section--inverted.png +0 -0
- package/dist/static/img/screenshots/layout-section--list-layout.png +0 -0
- package/dist/static/img/screenshots/layout-section--slider.png +0 -0
- package/dist/static/img/screenshots/layout-section--tile-layout.png +0 -0
- package/dist/static/img/screenshots/layout-section--with-buttons.png +0 -0
- package/dist/static/img/screenshots/layout-slider--with-arrows.png +0 -0
- package/dist/static/img/screenshots/layout-slider--with-autoplay.png +0 -0
- package/dist/static/img/screenshots/layout-slider--with-nav.png +0 -0
- package/dist/static/img/screenshots/layout-slider--with-teased-neighbours.png +0 -0
- package/dist/static/img/screenshots/layout-split-even--faq-with-form.png +0 -0
- package/dist/static/img/screenshots/layout-split-even--text-with-logos.png +0 -0
- package/dist/static/img/screenshots/layout-split-weighted--text-with-contact.png +0 -0
- package/dist/static/img/screenshots/layout-split-weighted--text-with-teaser.png +0 -0
- package/dist/static/img/screenshots/page-archetypes-about--about.png +0 -0
- package/dist/static/img/screenshots/page-archetypes-blog-overview--blog-overview.png +0 -0
- package/dist/static/img/screenshots/page-archetypes-blog-post--blog-post.png +0 -0
- package/dist/static/img/screenshots/page-archetypes-event-detail--event-detail.png +0 -0
- package/dist/static/img/screenshots/page-archetypes-event-list--event-list.png +0 -0
- package/dist/static/img/screenshots/page-archetypes-job-detail--job-detail.png +0 -0
- package/dist/static/img/screenshots/page-archetypes-jobs--jobs.png +0 -0
- package/dist/static/img/screenshots/page-archetypes-landingpage--landingpage.png +0 -0
- package/dist/static/img/screenshots/page-archetypes-overview--overview.png +0 -0
- package/dist/static/img/screenshots/page-archetypes-search--search.png +0 -0
- package/dist/static/img/screenshots/page-archetypes-showcase--showcase.png +0 -0
- package/dist/static/logo-dark.svg +13 -0
- package/dist/static/logo-dsa-inverted.svg +26 -0
- package/dist/static/logo-dsa.svg +26 -0
- package/dist/static/logo-inverted.svg +12 -25
- package/dist/static/logo.svg +12 -25
- package/dist/tokens/IconSprite.js +50 -0
- package/dist/tokens/icon-sprite.html +18 -0
- package/dist/tokens/themes.css +4 -4
- package/dist/tokens/tokens.css +448 -752
- package/dist/tokens/tokens.js +673 -774
- package/package.json +14 -5
- package/dist/components/split/index.d.ts +0 -14
- package/dist/components/split/index.js +0 -17
- package/dist/components/split/split.css +0 -53
- package/dist/components/split/split.schema.dereffed.json +0 -29
- package/dist/components/split/split.schema.json +0 -19
- package/dist/static/img/logos/logoipsum-212.svg +0 -12
- package/dist/static/img/logos/logoipsum-217.svg +0 -4
- package/dist/static/img/logos/logoipsum-239.svg +0 -16
- package/dist/static/img/logos/logoipsum-244.svg +0 -19
- package/dist/static/img/logos/logoipsum-250.svg +0 -21
- package/dist/static/img/logos/logoipsum-286.svg +0 -20
- package/dist/static/img/screenshots/layout-section--cards.png +0 -0
- package/dist/static/img/screenshots/layout-section--colorful-gradient.png +0 -0
- package/dist/static/img/screenshots/layout-section--flex-layout.png +0 -0
- package/dist/static/img/screenshots/layout-section--spotlight.png +0 -0
- package/dist/static/img/screenshots/layout-section--stagelights.png +0 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "http://schema.mydesignsystem.com/search-filter.schema.json",
|
|
4
|
+
"title": "Search Filter",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"title": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The title of the search filter.",
|
|
10
|
+
"examples": [
|
|
11
|
+
"Search by category"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"categories": {
|
|
15
|
+
"type": "array",
|
|
16
|
+
"description": "The categories to filter by.",
|
|
17
|
+
"examples": [
|
|
18
|
+
[
|
|
19
|
+
{
|
|
20
|
+
"title": "Pages",
|
|
21
|
+
"amount": "10"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"title": "News",
|
|
25
|
+
"amount": "5"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"title": "Blog Posts",
|
|
29
|
+
"amount": "8"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
],
|
|
33
|
+
"items": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"properties": {
|
|
36
|
+
"title": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "The name of the category.",
|
|
39
|
+
"examples": [
|
|
40
|
+
"Pages",
|
|
41
|
+
"News"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"amount": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "The number of items in the category.",
|
|
47
|
+
"examples": [
|
|
48
|
+
"10",
|
|
49
|
+
"5"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"url": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"format": "uri",
|
|
55
|
+
"description": "The URL to filter by this category.",
|
|
56
|
+
"examples": [
|
|
57
|
+
"#"
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"additionalProperties": false
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"additionalProperties": false
|
|
66
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "http://schema.mydesignsystem.com/search-filter.schema.json",
|
|
4
|
+
"title": "Search Filter",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"title": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The title of the search filter.",
|
|
10
|
+
"examples": ["Search by category"]
|
|
11
|
+
},
|
|
12
|
+
"categories": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"description": "The categories to filter by.",
|
|
15
|
+
"examples": [
|
|
16
|
+
[
|
|
17
|
+
{ "title": "Pages", "amount": "10" },
|
|
18
|
+
{ "title": "News", "amount": "5" },
|
|
19
|
+
{ "title": "Blog Posts", "amount": "8" }
|
|
20
|
+
]
|
|
21
|
+
],
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"title": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "The name of the category.",
|
|
28
|
+
"examples": ["Pages", "News"]
|
|
29
|
+
},
|
|
30
|
+
"amount": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "The number of items in the category.",
|
|
33
|
+
"examples": ["10", "5"]
|
|
34
|
+
},
|
|
35
|
+
"url": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"format": "uri",
|
|
38
|
+
"description": "The URL to filter by this category.",
|
|
39
|
+
"examples": ["#"]
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"additionalProperties": false
|
|
46
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare class SearchForm {
|
|
2
|
+
static identifier: string;
|
|
3
|
+
constructor(element: any);
|
|
4
|
+
lazyResults: WeakMap<object, any>;
|
|
5
|
+
resultsPerPage: number;
|
|
6
|
+
state: {
|
|
7
|
+
term: any;
|
|
8
|
+
page: any;
|
|
9
|
+
results: any;
|
|
10
|
+
};
|
|
11
|
+
loadEngine(): Promise<void>;
|
|
12
|
+
$searchInput: any;
|
|
13
|
+
$resultTemplate: any;
|
|
14
|
+
$subresultTemplate: any;
|
|
15
|
+
$paginationLinkTemplate: any;
|
|
16
|
+
$pagination: any;
|
|
17
|
+
$results: any;
|
|
18
|
+
$moreButton: any;
|
|
19
|
+
updateFromHash(): void;
|
|
20
|
+
renderResults(results: any): void;
|
|
21
|
+
onRadio(topic: any, fn: any): () => void;
|
|
22
|
+
on(element: any, type: any, fn: any): () => any;
|
|
23
|
+
$(selector: any, element?: any): any;
|
|
24
|
+
}
|
|
25
|
+
export { SearchForm as default };
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { define, Component } from '@kickstartds/core/lib/component';
|
|
2
|
+
import { events } from '@kickstartds/core/lib/core';
|
|
3
|
+
import { debounce } from '@kickstartds/core/lib/utils';
|
|
4
|
+
|
|
5
|
+
const parser = new DOMParser();
|
|
6
|
+
const renderPagination = ($pagination, $linkTemplate, totalPages, currentPageIndex, hrefPrefix) => {
|
|
7
|
+
const [$first, $prev, $pages, $next, $last] = $pagination.children;
|
|
8
|
+
$pages.textContent = "";
|
|
9
|
+
for (let i = 0; i < totalPages; i++) {
|
|
10
|
+
const $link = $linkTemplate.cloneNode(true);
|
|
11
|
+
$link.textContent = i + 1;
|
|
12
|
+
$link.href = hrefPrefix + (i + 1);
|
|
13
|
+
$link.setAttribute("aria-current", i === currentPageIndex ? "page" : "false");
|
|
14
|
+
$pages.appendChild($link);
|
|
15
|
+
}
|
|
16
|
+
$first.href = hrefPrefix + 1;
|
|
17
|
+
$prev.href = hrefPrefix + (currentPageIndex + 1 - 1);
|
|
18
|
+
$next.href = hrefPrefix + (currentPageIndex + 1 + 1);
|
|
19
|
+
$last.href = hrefPrefix + totalPages;
|
|
20
|
+
if (currentPageIndex === 0) {
|
|
21
|
+
$first.setAttribute("hidden", "");
|
|
22
|
+
$prev.setAttribute("hidden", "");
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
$first.removeAttribute("hidden", "");
|
|
26
|
+
$prev.removeAttribute("hidden", "");
|
|
27
|
+
}
|
|
28
|
+
if (currentPageIndex === totalPages - 1) {
|
|
29
|
+
$next.setAttribute("hidden", "");
|
|
30
|
+
$last.setAttribute("hidden", "");
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
$next.removeAttribute("hidden", "");
|
|
34
|
+
$last.removeAttribute("hidden", "");
|
|
35
|
+
}
|
|
36
|
+
$pagination.removeAttribute("hidden");
|
|
37
|
+
};
|
|
38
|
+
const renderMoreButton = ($button, totalResults) => {
|
|
39
|
+
$button.removeAttribute("hidden");
|
|
40
|
+
const $count = $button.children[0].children[0];
|
|
41
|
+
$count.textContent = totalResults;
|
|
42
|
+
};
|
|
43
|
+
const renderResult = (result, element) => {
|
|
44
|
+
const $ = element.querySelector.bind(element), $$ = element.querySelectorAll.bind(element);
|
|
45
|
+
if (result.title) {
|
|
46
|
+
const title = $("[data-result-title]");
|
|
47
|
+
if (title)
|
|
48
|
+
title.textContent = result.title;
|
|
49
|
+
}
|
|
50
|
+
if (result.excerpt) {
|
|
51
|
+
const doc = parser.parseFromString(result.excerpt, "text/html");
|
|
52
|
+
const excerpt = $("[data-result-excerpt]");
|
|
53
|
+
if (excerpt)
|
|
54
|
+
excerpt.replaceChildren(...doc.body.childNodes);
|
|
55
|
+
}
|
|
56
|
+
if (result.url) {
|
|
57
|
+
const url = $("[data-result-url]");
|
|
58
|
+
if (url)
|
|
59
|
+
url.textContent = result.url;
|
|
60
|
+
const links = $$("[data-result-link]");
|
|
61
|
+
for (const link of links) {
|
|
62
|
+
link.setAttribute("href", result.url);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (result.image) {
|
|
66
|
+
const image = $("[data-result-image]");
|
|
67
|
+
if (image)
|
|
68
|
+
image.src = result.image;
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
const limitSubResults = (subResults, limit) => {
|
|
72
|
+
if (subResults.length <= limit)
|
|
73
|
+
return subResults;
|
|
74
|
+
const topUrls = [...subResults]
|
|
75
|
+
.sort((a, b) => b.locations.length - a.locations.length)
|
|
76
|
+
.slice(0, limit)
|
|
77
|
+
.map((r) => r.url);
|
|
78
|
+
return subResults.filter((r) => topUrls.includes(r.url));
|
|
79
|
+
};
|
|
80
|
+
const parseNumber = (value, fallback) => {
|
|
81
|
+
const number = Number(value);
|
|
82
|
+
return isNaN(number) ? fallback : number;
|
|
83
|
+
};
|
|
84
|
+
const debouncedSearch = debounce((term) => window._ks.radio.emit("dsa.search.search", { term }), 300);
|
|
85
|
+
class SearchForm extends Component {
|
|
86
|
+
async loadEngine() {
|
|
87
|
+
throw new Error("please connect a search engine");
|
|
88
|
+
}
|
|
89
|
+
constructor(element) {
|
|
90
|
+
super(element);
|
|
91
|
+
this.lazyResults = new WeakMap();
|
|
92
|
+
this.resultsPerPage = 10;
|
|
93
|
+
this.state = {
|
|
94
|
+
term: undefined,
|
|
95
|
+
page: undefined,
|
|
96
|
+
results: undefined,
|
|
97
|
+
};
|
|
98
|
+
this.$searchInput = this.$(".dsa-search-bar__input");
|
|
99
|
+
this.$resultTemplate = this.$("[data-template=result]");
|
|
100
|
+
this.$subresultTemplate = this.$("[data-template=subresult]");
|
|
101
|
+
this.$paginationLinkTemplate = this.$("[data-template=pagination-link]");
|
|
102
|
+
this.$pagination = this.$(".dsa-pagination");
|
|
103
|
+
this.$results = this.$(".dsa-search-form__results");
|
|
104
|
+
this.$moreButton = this.$(".c-button");
|
|
105
|
+
const subResultsLimit = parseNumber(element.dataset.maxSubresults, 3);
|
|
106
|
+
this.resultsPerPage = parseNumber(element.dataset.resultsPerPage, 10);
|
|
107
|
+
this.on(this.$searchInput, "input", () => {
|
|
108
|
+
const term = this.$searchInput.value.trim();
|
|
109
|
+
if (term.length) {
|
|
110
|
+
debouncedSearch(term);
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
window._ks.radio.emit("dsa.search.reset");
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
this.on(element, "submit", (event) => {
|
|
117
|
+
event.preventDefault();
|
|
118
|
+
const url = new URL(element.getAttribute("action") || "", window.location);
|
|
119
|
+
const formData = new FormData(element);
|
|
120
|
+
url.hash = new URLSearchParams(formData);
|
|
121
|
+
window.location.href = url;
|
|
122
|
+
});
|
|
123
|
+
this.on(element, "reset", (event) => {
|
|
124
|
+
window._ks.radio.emit("dsa.search.reset");
|
|
125
|
+
});
|
|
126
|
+
this.on(window, "hashchange", () => {
|
|
127
|
+
this.updateFromHash();
|
|
128
|
+
});
|
|
129
|
+
this.onRadio(events.beforeunveil, async (_, el) => {
|
|
130
|
+
if (this.lazyResults.has(el)) {
|
|
131
|
+
const lazyResult = this.lazyResults.get(el);
|
|
132
|
+
const result = await lazyResult();
|
|
133
|
+
renderResult(result, el);
|
|
134
|
+
const $subResults = this.$("[data-result-subresults]", el);
|
|
135
|
+
const subResults = limitSubResults(result.subResults, subResultsLimit);
|
|
136
|
+
for (const subResult of subResults) {
|
|
137
|
+
const $subResultClone = this.$subresultTemplate.cloneNode(true);
|
|
138
|
+
$subResultClone.setAttribute("href", subResult.url);
|
|
139
|
+
renderResult(subResult, $subResultClone);
|
|
140
|
+
$subResults.appendChild($subResultClone);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
// init
|
|
145
|
+
this.loadEngine().then((search) => {
|
|
146
|
+
this.updateFromHash();
|
|
147
|
+
this.onRadio("dsa.search.reset", () => {
|
|
148
|
+
this.$results.textContent = "";
|
|
149
|
+
this.$pagination.setAttribute("hidden", "");
|
|
150
|
+
this.state = {};
|
|
151
|
+
});
|
|
152
|
+
this.onRadio("dsa.search.search", async (_, { term, page = 0 }) => {
|
|
153
|
+
window._ks.radio.emit("dsa.search.loading");
|
|
154
|
+
this.state.term = term;
|
|
155
|
+
this.state.page = page;
|
|
156
|
+
try {
|
|
157
|
+
this.state.results = await search(term);
|
|
158
|
+
window._ks.radio.emit("dsa.search.loaded");
|
|
159
|
+
}
|
|
160
|
+
catch (e) {
|
|
161
|
+
console.error(e);
|
|
162
|
+
window._ks.radio.emit("dsa.search.reset");
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
this.onRadio("dsa.search.loaded", () => {
|
|
166
|
+
if (this.state.results.length) {
|
|
167
|
+
const startIndex = this.state.page * this.resultsPerPage;
|
|
168
|
+
const endIndex = startIndex + this.resultsPerPage;
|
|
169
|
+
const results = this.state.results.slice(startIndex, endIndex);
|
|
170
|
+
this.renderResults(results);
|
|
171
|
+
if (this.element.hasAttribute("action")) {
|
|
172
|
+
renderMoreButton(this.$moreButton, this.state.results.length);
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
renderPagination(this.$pagination, this.$paginationLinkTemplate, Math.ceil(this.state.results.length / this.resultsPerPage), this.state.page, `#q=${this.state.term}&page=`);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
this.onRadio("dsa.search.goToPage", (_, page) => {
|
|
180
|
+
this.state.page = page;
|
|
181
|
+
window._ks.radio.emit("dsa.search.loaded");
|
|
182
|
+
});
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
updateFromHash() {
|
|
186
|
+
const params = new URLSearchParams(window.location.hash.slice(1));
|
|
187
|
+
if (params.has("q")) {
|
|
188
|
+
const term = params.get("q");
|
|
189
|
+
const page = params.has("page") ? Number(params.get("page")) - 1 : 0;
|
|
190
|
+
this.$searchInput.value = term;
|
|
191
|
+
if (term) {
|
|
192
|
+
if (term !== this.state.term) {
|
|
193
|
+
window._ks.radio.emit("dsa.search.search", { term, page });
|
|
194
|
+
}
|
|
195
|
+
else if (page !== this.state.page) {
|
|
196
|
+
window._ks.radio.emit("dsa.search.goToPage", page);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
renderResults(results) {
|
|
202
|
+
this.$results.textContent = "";
|
|
203
|
+
for (const result of results) {
|
|
204
|
+
const $resultClone = this.$resultTemplate.cloneNode(true);
|
|
205
|
+
this.lazyResults.set($resultClone, result);
|
|
206
|
+
this.$results.appendChild($resultClone);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
onRadio(topic, fn) {
|
|
210
|
+
const token = window._ks.radio.on(topic, fn);
|
|
211
|
+
const cleanUp = () => window._ks.radio.off(token);
|
|
212
|
+
this.onDisconnect(cleanUp);
|
|
213
|
+
return cleanUp;
|
|
214
|
+
}
|
|
215
|
+
on(element, type, fn) {
|
|
216
|
+
const cleanUp = () => element.removeventListener(type, fn);
|
|
217
|
+
element.addEventListener(type, fn);
|
|
218
|
+
this.onDisconnect(cleanUp);
|
|
219
|
+
return cleanUp;
|
|
220
|
+
}
|
|
221
|
+
$(selector, element = this.element) {
|
|
222
|
+
return element.querySelector(selector);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
SearchForm.identifier = "dsa.search-form";
|
|
226
|
+
define(SearchForm.identifier, SearchForm);
|
|
227
|
+
|
|
228
|
+
export { SearchForm as default };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { define } from '@kickstartds/core/lib/component';
|
|
2
|
+
import SearchForm from './SearchForm.client.js';
|
|
3
|
+
import '@kickstartds/core/lib/core';
|
|
4
|
+
import '@kickstartds/core/lib/utils';
|
|
5
|
+
|
|
6
|
+
const staticPageFindPath = "/pagefind/pagefind.js";
|
|
7
|
+
const pagefindResult2searchResult = ({ sub_results, ...result }) => {
|
|
8
|
+
const hasRootSubResult = sub_results?.[0]?.url === (result.meta.url || result.url);
|
|
9
|
+
const subResults = hasRootSubResult
|
|
10
|
+
? sub_results.slice(1)
|
|
11
|
+
: sub_results || [];
|
|
12
|
+
return {
|
|
13
|
+
title: result.meta.title,
|
|
14
|
+
url: result.meta.url || result.url,
|
|
15
|
+
excerpt: result.excerpt,
|
|
16
|
+
image: result.meta.image,
|
|
17
|
+
subResults: subResults.map((subResult) => ({
|
|
18
|
+
title: subResult.title,
|
|
19
|
+
url: subResult.url,
|
|
20
|
+
excerpt: subResult.excerpt,
|
|
21
|
+
locations: subResult.locations,
|
|
22
|
+
})),
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
class SearchFormPagefind extends SearchForm {
|
|
26
|
+
async loadEngine() {
|
|
27
|
+
const pagefind = await import(/* @vite-ignore */ staticPageFindPath);
|
|
28
|
+
await pagefind.init();
|
|
29
|
+
return async function search(term) {
|
|
30
|
+
const search = await pagefind.search(term);
|
|
31
|
+
if (search) {
|
|
32
|
+
return search.results.map((result) => () => result.data().then(pagefindResult2searchResult));
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
SearchFormPagefind.identifier = "dsa.search-form.pagefind";
|
|
38
|
+
define(SearchFormPagefind.identifier, SearchFormPagefind);
|
|
39
|
+
|
|
40
|
+
export { SearchFormPagefind as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "./search-form.css";
|
|
2
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
|
+
import classnames from 'classnames';
|
|
4
|
+
import { Button } from '@kickstartds/base/lib/button';
|
|
5
|
+
import { SearchBar } from '../search-bar/index.js';
|
|
6
|
+
import { SearchResult } from '../search-result/index.js';
|
|
7
|
+
import { SearchResultMatch } from '../search-result-match/index.js';
|
|
8
|
+
import { PageLink, Pagination } from '../pagination/index.js';
|
|
9
|
+
import './SearchForm.client.js';
|
|
10
|
+
import 'react';
|
|
11
|
+
import '@kickstartds/form/lib/text-field';
|
|
12
|
+
import 'markdown-to-jsx';
|
|
13
|
+
import '@kickstartds/base/lib/icon';
|
|
14
|
+
import '@kickstartds/base/lib/link';
|
|
15
|
+
import '../../helpers-12f48df8.js';
|
|
16
|
+
import '@kickstartds/base/lib/rich-text';
|
|
17
|
+
import '@kickstartds/base/lib/picture';
|
|
18
|
+
import '@kickstartds/core/lib/container';
|
|
19
|
+
import '@kickstartds/core/lib/component';
|
|
20
|
+
import '@kickstartds/core/lib/core';
|
|
21
|
+
import '@kickstartds/core/lib/utils';
|
|
22
|
+
|
|
23
|
+
const SearchForm = ({ className, component = "dsa.search-form", result = {}, resultPerPage, moreButtonLabel = "View all results", ...props }) => (jsxs("form", { className: classnames("dsa-search-form", className), "ks-component": component, "data-max-subresults": result.maxSubresults, "data-results-per-page": resultPerPage, ...props, children: [jsx(SearchBar, { alternativeText: "", alternativeResult: "", hint: "" }), jsxs("div", { hidden: true, children: [jsx("li", { "data-template": "result", className: "lazyload", children: jsx(SearchResult, { showLink: result.showLink, imageColSize: result.imageColSize }) }), jsx(SearchResultMatch, { "data-template": "subresult" }), jsx(PageLink, { "data-template": "pagination-link" })] }), jsx("ol", { className: "dsa-search-form__results" }), jsxs("div", { className: "dsa-search-form__nav", children: [jsx(Pagination, { hidden: true }), jsx(Button, { variant: "primary", hidden: true, label: moreButtonLabel, type: "submit", renderLabel: (label) => (jsxs(Fragment, { children: [label, " (", jsx("span", {}), ")"] })) })] })] }));
|
|
24
|
+
|
|
25
|
+
export { SearchForm };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "http://schema.mydesignsystem.com/search-form.schema.json",
|
|
4
|
+
"title": "Search Form",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"component": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "ks-component attribute",
|
|
10
|
+
"default": "dsa.search-form"
|
|
11
|
+
},
|
|
12
|
+
"result": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"maxSubresults": {
|
|
16
|
+
"type": "number",
|
|
17
|
+
"description": "Max number of subresults of a single search result"
|
|
18
|
+
},
|
|
19
|
+
"showLink": {
|
|
20
|
+
"title": "Show Link",
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"description": "Whether to display the link to the search result.",
|
|
23
|
+
"default": true
|
|
24
|
+
},
|
|
25
|
+
"imageColSize": {
|
|
26
|
+
"title": "Image Row Size",
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "The reserved space of the image row.",
|
|
29
|
+
"default": "small",
|
|
30
|
+
"enum": [
|
|
31
|
+
"none",
|
|
32
|
+
"small",
|
|
33
|
+
"large"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"additionalProperties": false
|
|
38
|
+
},
|
|
39
|
+
"resultPerPage": {
|
|
40
|
+
"type": "number",
|
|
41
|
+
"default": 10
|
|
42
|
+
},
|
|
43
|
+
"moreButtonLabel": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"default": "View all results"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"additionalProperties": false
|
|
49
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "http://schema.mydesignsystem.com/search-form.schema.json",
|
|
4
|
+
"title": "Search Form",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"component": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "ks-component attribute",
|
|
10
|
+
"default": "dsa.search-form"
|
|
11
|
+
},
|
|
12
|
+
"result": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"maxSubresults": {
|
|
16
|
+
"type": "number",
|
|
17
|
+
"description": "Max number of subresults of a single search result"
|
|
18
|
+
},
|
|
19
|
+
"showLink": {
|
|
20
|
+
"$ref": "http://schema.mydesignsystem.com/search-result.schema.json#/properties/showLink"
|
|
21
|
+
},
|
|
22
|
+
"imageColSize": {
|
|
23
|
+
"$ref": "http://schema.mydesignsystem.com/search-result.schema.json#/properties/imageColSize"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"additionalProperties": false
|
|
27
|
+
},
|
|
28
|
+
"resultPerPage": {
|
|
29
|
+
"type": "number",
|
|
30
|
+
"default": 10
|
|
31
|
+
},
|
|
32
|
+
"moreButtonLabel": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"default": "View all results"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"additionalProperties": false
|
|
38
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { define, Component } from '@kickstartds/core/lib/component';
|
|
2
|
+
|
|
3
|
+
class RadioEmit extends Component {
|
|
4
|
+
constructor(element) {
|
|
5
|
+
super(element);
|
|
6
|
+
const { topic, action = "click", value } = element.dataset;
|
|
7
|
+
const handler = () => window._ks.radio.emit(topic, value);
|
|
8
|
+
element.addEventListener(action, handler);
|
|
9
|
+
this.onDisconnect(() => {
|
|
10
|
+
element.removeEventListener(action, handler);
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
RadioEmit.identifier = "dsa.radio-emit";
|
|
15
|
+
define(RadioEmit.identifier, RadioEmit);
|
|
16
|
+
|
|
17
|
+
export { RadioEmit as default };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { define, Component } from '@kickstartds/core/lib/component';
|
|
2
|
+
|
|
3
|
+
class SearchModal extends Component {
|
|
4
|
+
constructor(element) {
|
|
5
|
+
super(element);
|
|
6
|
+
const form = element.querySelector(".dsa-search-form");
|
|
7
|
+
const searchInput = element.querySelector(".dsa-search-bar__input");
|
|
8
|
+
const onBackdropClick = (event) => {
|
|
9
|
+
if (event.target === element)
|
|
10
|
+
window._ks.radio.emit("dsa.search-modal.close");
|
|
11
|
+
};
|
|
12
|
+
const openToken = window._ks.radio.on("dsa.search-modal.open", () => {
|
|
13
|
+
element.showModal();
|
|
14
|
+
searchInput.focus();
|
|
15
|
+
});
|
|
16
|
+
const closeToken = window._ks.radio.on("dsa.search-modal.close", () => {
|
|
17
|
+
form.reset();
|
|
18
|
+
element.close();
|
|
19
|
+
});
|
|
20
|
+
element.addEventListener("click", onBackdropClick);
|
|
21
|
+
this.onDisconnect(() => {
|
|
22
|
+
window._ks.radio.off(openToken);
|
|
23
|
+
window._ks.radio.off(closeToken);
|
|
24
|
+
element.removeEventListener("click", onBackdropClick);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
SearchModal.identifier = "dsa.search-modal";
|
|
29
|
+
define(SearchModal.identifier, SearchModal);
|
|
30
|
+
|
|
31
|
+
export { SearchModal as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
5
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
6
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
7
|
+
*/
|
|
8
|
+
import { SearchFormProps } from "../../SearchFormProps-3d2c3462.js";
|
|
9
|
+
interface SearchModalProps {
|
|
10
|
+
headline: string;
|
|
11
|
+
closeAriaLabel: string;
|
|
12
|
+
/**
|
|
13
|
+
* Referenced component SearchFormProps
|
|
14
|
+
*/
|
|
15
|
+
form?: SearchFormProps;
|
|
16
|
+
}
|
|
17
|
+
declare const SearchModal: FC<SearchModalProps>;
|
|
18
|
+
export { SearchModal };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import "./search-modal.css";
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { Section } from '../section/index.js';
|
|
4
|
+
import { Button } from '../button/index.js';
|
|
5
|
+
import { SearchForm } from '../search-form/index.js';
|
|
6
|
+
import './SearchModal.client.js';
|
|
7
|
+
import 'react';
|
|
8
|
+
import 'classnames';
|
|
9
|
+
import '@kickstartds/core/lib/react';
|
|
10
|
+
import '@kickstartds/base/lib/section';
|
|
11
|
+
import '../section/js/Section.client.js';
|
|
12
|
+
import '@kickstartds/core/lib/component';
|
|
13
|
+
import '../../helpers-12f48df8.js';
|
|
14
|
+
import '@kickstartds/base/lib/button';
|
|
15
|
+
import '../search-bar/index.js';
|
|
16
|
+
import '@kickstartds/form/lib/text-field';
|
|
17
|
+
import 'markdown-to-jsx';
|
|
18
|
+
import '@kickstartds/base/lib/icon';
|
|
19
|
+
import '@kickstartds/base/lib/link';
|
|
20
|
+
import '../search-result/index.js';
|
|
21
|
+
import '@kickstartds/base/lib/rich-text';
|
|
22
|
+
import '@kickstartds/base/lib/picture';
|
|
23
|
+
import '@kickstartds/core/lib/container';
|
|
24
|
+
import '../search-result-match/index.js';
|
|
25
|
+
import '../pagination/index.js';
|
|
26
|
+
import '../search-form/SearchForm.client.js';
|
|
27
|
+
import '@kickstartds/core/lib/core';
|
|
28
|
+
import '@kickstartds/core/lib/utils';
|
|
29
|
+
|
|
30
|
+
const SearchModal = ({ headline = "Search", closeAriaLabel = "close", form: formProps = {}, }) => (jsx("dialog", { "ks-component": "dsa.search-modal", className: "dsa-search-modal", children: jsx(Section, { headline: {
|
|
31
|
+
text: headline,
|
|
32
|
+
sub: closeAriaLabel,
|
|
33
|
+
// @ts-expect-error
|
|
34
|
+
renderSubheadline(sub) {
|
|
35
|
+
return (jsx(Button, { className: "dsa-search-modal__close", "aria-label": sub, label: "", icon: "close", size: "small", "ks-component": "dsa.radio-emit", "data-topic": "dsa.search-modal.close" }));
|
|
36
|
+
},
|
|
37
|
+
}, spaceBefore: "small", spaceAfter: "small", children: jsx(SearchForm, { ...formProps }) }) }));
|
|
38
|
+
|
|
39
|
+
export { SearchModal };
|