@kickstartds/ds-agency-premium 1.6.71--canary.55.2416.0 → 1.6.72--canary.43.2474.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.
Files changed (295) hide show
  1. package/dist/BlogOverviewProps-9f207f1c.d.ts +1 -1
  2. package/dist/{BlogPostProps-c760fd2a.d.ts → BlogPostProps-6b3cff22.d.ts} +1 -1
  3. package/dist/ContactProps-7cac90e5.d.ts +70 -0
  4. package/dist/{FaqProps-ad618cd5.d.ts → FaqProps-78384db5.d.ts} +7 -12
  5. package/dist/HeadlineProps-e1305784.d.ts +53 -0
  6. package/dist/{LogosProps-f9474fe2.d.ts → LogosProps-d4677d2c.d.ts} +1 -23
  7. package/dist/PageProps-aa29c554.d.ts +1 -1
  8. package/dist/SearchBarProps-26263244.d.ts +29 -0
  9. package/dist/SearchFormProps-3d2c3462.d.ts +30 -0
  10. package/dist/SearchResultMatchProps-777cd47c.d.ts +23 -0
  11. package/dist/SearchResultProps-f6f07017.d.ts +44 -0
  12. package/dist/{SectionProps-d60aba86.d.ts → SectionProps-6a826e52.d.ts} +8 -4
  13. package/dist/SliderProps-789f8508.d.ts +2 -2
  14. package/dist/SplitEvenProps-789f8508.d.ts +12 -5
  15. package/dist/SplitWeightedProps-789f8508.d.ts +12 -5
  16. package/dist/{TeaserCardProps-994cb119.d.ts → TeaserCardProps-d069476f.d.ts} +6 -1
  17. package/dist/components/blog-overview/blog-overview.schema.dereffed.json +5254 -1550
  18. package/dist/components/blog-post/blog-post.schema.dereffed.json +5254 -1550
  19. package/dist/components/blog-post/index.d.ts +1 -1
  20. package/dist/components/business-card/business-card.css +7 -5
  21. package/dist/components/business-card/index.js +1 -1
  22. package/dist/components/button/button.css +6 -1
  23. package/dist/components/contact/index.d.ts +1 -70
  24. package/dist/components/content-nav/content-nav.css +2 -0
  25. package/dist/components/cookie-consent/C15t.client.js +57 -1
  26. package/dist/components/cookie-consent/CookieConsent.client.d.ts +5 -1
  27. package/dist/components/cookie-consent/CookieConsent.client.js +13 -13
  28. package/dist/components/cookie-consent/cookie-consent.css +17 -25
  29. package/dist/components/cookie-consent/index.js +1 -1
  30. package/dist/components/downloads/downloads.css +13 -8
  31. package/dist/components/event-latest-teaser/event-latest-teaser.css +2 -2
  32. package/dist/components/event-list-teaser/event-list-teaser.css +1 -1
  33. package/dist/components/event-location/event-location.css +3 -3
  34. package/dist/components/faq/faq.css +1 -1
  35. package/dist/components/faq/faq.schema.dereffed.json +2 -2
  36. package/dist/components/faq/faq.schema.json +2 -1
  37. package/dist/components/faq/index.d.ts +24 -7
  38. package/dist/components/faq/index.js +1 -1
  39. package/dist/components/feature/index.js +2 -2
  40. package/dist/components/features/index.js +1 -1
  41. package/dist/components/headline/headline.css +5 -9
  42. package/dist/components/headline/index.d.ts +1 -53
  43. package/dist/components/hero/hero.css +53 -32
  44. package/dist/components/image-story/image-story.css +4 -0
  45. package/dist/components/index/index.d.ts +1 -1
  46. package/dist/components/logos/index.d.ts +1 -1
  47. package/dist/components/logos/logos.css +8 -6
  48. package/dist/components/logos/logos.schema.dereffed.json +1 -2
  49. package/dist/components/logos/logos.schema.json +1 -2
  50. package/dist/components/nav-dropdown/nav-dropdown.css +5 -3
  51. package/dist/components/page/page.schema.dereffed.json +5254 -1550
  52. package/dist/components/page-wrapper/index.js +0 -1
  53. package/dist/components/pagination/index.d.ts +10 -2
  54. package/dist/components/pagination/index.js +32 -38
  55. package/dist/components/pagination/pagination.css +34 -10
  56. package/dist/components/pagination/pagination.schema.dereffed.json +3 -0
  57. package/dist/components/pagination/pagination.schema.json +3 -0
  58. package/dist/components/presets.json +156 -70
  59. package/dist/components/search/index.d.ts +11 -1
  60. package/dist/components/search/index.js +33 -20
  61. package/dist/components/search/search.schema.dereffed.json +189 -13
  62. package/dist/components/search/search.schema.json +6 -0
  63. package/dist/components/search-bar/index.d.ts +1 -29
  64. package/dist/components/search-bar/index.js +1 -1
  65. package/dist/components/search-form/SearchForm.client.d.ts +25 -0
  66. package/dist/components/search-form/SearchForm.client.js +228 -0
  67. package/dist/components/search-form/SearchFormPagefind.client.d.ts +5 -0
  68. package/dist/components/search-form/SearchFormPagefind.client.js +40 -0
  69. package/dist/components/search-form/index.d.ts +4 -0
  70. package/dist/components/search-form/index.js +25 -0
  71. package/dist/components/search-form/search-form.css +10 -0
  72. package/dist/components/search-form/search-form.schema.dereffed.json +49 -0
  73. package/dist/components/search-form/search-form.schema.json +38 -0
  74. package/dist/components/search-modal/RadioEmit.client.d.ts +5 -0
  75. package/dist/components/search-modal/RadioEmit.client.js +17 -0
  76. package/dist/components/search-modal/SearchModal.client.d.ts +5 -0
  77. package/dist/components/search-modal/SearchModal.client.js +31 -0
  78. package/dist/components/search-modal/index.d.ts +18 -0
  79. package/dist/components/search-modal/index.js +39 -0
  80. package/dist/components/search-modal/search-modal.css +27 -0
  81. package/dist/components/search-modal/search-modal.schema.dereffed.json +70 -0
  82. package/dist/components/search-modal/search-modal.schema.json +24 -0
  83. package/dist/components/search-result/index.d.ts +4 -4
  84. package/dist/components/search-result/index.js +11 -2
  85. package/dist/components/search-result/search-result.css +61 -13
  86. package/dist/components/search-result/search-result.schema.dereffed.json +56 -13
  87. package/dist/components/search-result/search-result.schema.json +23 -12
  88. package/dist/components/search-result-match/index.d.ts +7 -0
  89. package/dist/components/search-result-match/index.js +18 -0
  90. package/dist/components/search-result-match/search-result-match.css +18 -0
  91. package/dist/components/search-result-match/search-result-match.schema.dereffed.json +33 -0
  92. package/dist/components/search-result-match/search-result-match.schema.json +31 -0
  93. package/dist/components/section/index.d.ts +1 -1
  94. package/dist/components/section/section.css +12 -7
  95. package/dist/components/section/section.schema.dereffed.json +5254 -1550
  96. package/dist/components/section/section.schema.json +12 -0
  97. package/dist/components/slider/slider.schema.dereffed.json +7 -2
  98. package/dist/components/split-even/index.d.ts +6 -6
  99. package/dist/components/split-even/split-even.schema.dereffed.json +2406 -824
  100. package/dist/components/split-even/split-even.schema.json +42 -0
  101. package/dist/components/split-weighted/index.d.ts +6 -6
  102. package/dist/components/split-weighted/split-weighted.schema.dereffed.json +2406 -824
  103. package/dist/components/split-weighted/split-weighted.schema.json +42 -0
  104. package/dist/components/stats/stats.css +2 -0
  105. package/dist/components/teaser-card/index.d.ts +1 -1
  106. package/dist/components/teaser-card/index.js +2 -1
  107. package/dist/components/teaser-card/teaser-card.css +10 -6
  108. package/dist/components/teaser-card/teaser-card.schema.dereffed.json +6 -0
  109. package/dist/components/teaser-card/teaser-card.schema.json +6 -0
  110. package/dist/components/testimonials/testimonials.css +3 -1
  111. package/dist/global.css +3888 -177
  112. package/dist/static/fonts/dsa/Fredoka-Bold.woff +0 -0
  113. package/dist/static/fonts/dsa/Fredoka-Bold.woff2 +0 -0
  114. package/dist/static/fonts/dsa/Fredoka-Light.woff +0 -0
  115. package/dist/static/fonts/dsa/Fredoka-Light.woff2 +0 -0
  116. package/dist/static/fonts/dsa/Fredoka-Medium.woff +0 -0
  117. package/dist/static/fonts/dsa/Fredoka-Medium.woff2 +0 -0
  118. package/dist/static/fonts/dsa/Fredoka-Regular.woff +0 -0
  119. package/dist/static/fonts/dsa/Fredoka-Regular.woff2 +0 -0
  120. package/dist/static/fonts/dsa/Fredoka-SemiBold.woff +0 -0
  121. package/dist/static/fonts/dsa/Fredoka-SemiBold.woff2 +0 -0
  122. package/dist/static/fonts/dsa/Mulish-300.woff +0 -0
  123. package/dist/static/fonts/dsa/Mulish-300.woff2 +0 -0
  124. package/dist/static/fonts/dsa/Mulish-600.woff +0 -0
  125. package/dist/static/fonts/dsa/Mulish-600.woff2 +0 -0
  126. package/dist/static/fonts/dsa/Mulish-800.woff +0 -0
  127. package/dist/static/fonts/dsa/Mulish-800.woff2 +0 -0
  128. package/dist/static/fonts/dsa/Mulish-Regular.woff +0 -0
  129. package/dist/static/fonts/dsa/Mulish-Regular.woff2 +0 -0
  130. package/dist/static/img/bg-color-swatch.png +0 -0
  131. package/dist/static/img/screenshots/blog-blog-aside--default.png +0 -0
  132. package/dist/static/img/screenshots/blog-blog-author--default.png +0 -0
  133. package/dist/static/img/screenshots/blog-blog-head--default.png +0 -0
  134. package/dist/static/img/screenshots/blog-blog-teaser--default.png +0 -0
  135. package/dist/static/img/screenshots/components-button--primary-button.png +0 -0
  136. package/dist/static/img/screenshots/components-button--primary-disabled-button.png +0 -0
  137. package/dist/static/img/screenshots/components-button--secondary-button.png +0 -0
  138. package/dist/static/img/screenshots/components-button--tertiary-button.png +0 -0
  139. package/dist/static/img/screenshots/components-contact--circular-avatar.png +0 -0
  140. package/dist/static/img/screenshots/components-contact--full-image-width.png +0 -0
  141. package/dist/static/img/screenshots/components-contact--vertical-image-with-paragraph.png +0 -0
  142. package/dist/static/img/screenshots/components-contact--wide-image.png +0 -0
  143. package/dist/static/img/screenshots/components-cta--align-bottom.png +0 -0
  144. package/dist/static/img/screenshots/components-cta--angled-image.png +0 -0
  145. package/dist/static/img/screenshots/components-cta--banner.png +0 -0
  146. package/dist/static/img/screenshots/components-cta--colored-banner.png +0 -0
  147. package/dist/static/img/screenshots/components-cta--contact-banner.png +0 -0
  148. package/dist/static/img/screenshots/components-cta--highlighted.png +0 -0
  149. package/dist/static/img/screenshots/components-cta--left-aligned.png +0 -0
  150. package/dist/static/img/screenshots/components-cta--product-advertisement.png +0 -0
  151. package/dist/static/img/screenshots/components-cta--split-banner.png +0 -0
  152. package/dist/static/img/screenshots/components-faq--dropdown-list.png +0 -0
  153. package/dist/static/img/screenshots/components-faq--single-dropdown.png +0 -0
  154. package/dist/static/img/screenshots/components-features--icon-beside-with-link-in-text.png +0 -0
  155. package/dist/static/img/screenshots/components-features--icon-centered.png +0 -0
  156. package/dist/static/img/screenshots/components-features--icon-intext-with-link.png +0 -0
  157. package/dist/static/img/screenshots/components-features--list-view.png +0 -0
  158. package/dist/static/img/screenshots/components-features--stack-with-button.png +0 -0
  159. package/dist/static/img/screenshots/components-gallery--free-aspect-ratio.png +0 -0
  160. package/dist/static/img/screenshots/components-gallery--large-landscape-tiles.png +0 -0
  161. package/dist/static/img/screenshots/components-gallery--small-squares-with-lightbox.png +0 -0
  162. package/dist/static/img/screenshots/components-gallery--stack-landscape.png +0 -0
  163. package/dist/static/img/screenshots/components-headline--h-1.png +0 -0
  164. package/dist/static/img/screenshots/components-headline--h-2.png +0 -0
  165. package/dist/static/img/screenshots/components-headline--h-3.png +0 -0
  166. package/dist/static/img/screenshots/components-headline--h-4.png +0 -0
  167. package/dist/static/img/screenshots/components-headline--order-swapped.png +0 -0
  168. package/dist/static/img/screenshots/components-headline--with-markdown.png +0 -0
  169. package/dist/static/img/screenshots/components-headline--with-subheadline.png +0 -0
  170. package/dist/static/img/screenshots/components-hero--text-below-image.png +0 -0
  171. package/dist/static/img/screenshots/components-hero--text-box-on-full-screen.png +0 -0
  172. package/dist/static/img/screenshots/components-hero--text-on-image-with-overlay.png +0 -0
  173. package/dist/static/img/screenshots/components-html--html.png +0 -0
  174. package/dist/static/img/screenshots/components-html--with-consent.png +0 -0
  175. package/dist/static/img/screenshots/components-html--with-script.png +0 -0
  176. package/dist/static/img/screenshots/components-image-story--sticky-image-next-to-scrolling-text.png +0 -0
  177. package/dist/static/img/screenshots/components-image-text--above-layout.png +0 -0
  178. package/dist/static/img/screenshots/components-image-text--beside-right-layout.png +0 -0
  179. package/dist/static/img/screenshots/components-logos--centered-with-button.png +0 -0
  180. package/dist/static/img/screenshots/components-logos--left-aligned-with-text-link.png +0 -0
  181. package/dist/static/img/screenshots/components-logos--logo-row.png +0 -0
  182. package/dist/static/img/screenshots/components-logos--logo-wall.png +0 -0
  183. package/dist/static/img/screenshots/components-mosaic--colorful-text-with-illustrations.png +0 -0
  184. package/dist/static/img/screenshots/components-mosaic--colorful-tiles.png +0 -0
  185. package/dist/static/img/screenshots/components-stats--count-up-with-description.png +0 -0
  186. package/dist/static/img/screenshots/components-stats--count-up-with-icons.png +0 -0
  187. package/dist/static/img/screenshots/components-teaser-card--page-navigation.png +0 -0
  188. package/dist/static/img/screenshots/components-teaser-card--product-tiles.png +0 -0
  189. package/dist/static/img/screenshots/components-teaser-card--showcase-preview.png +0 -0
  190. package/dist/static/img/screenshots/components-testimonials--alternating-layout.png +0 -0
  191. package/dist/static/img/screenshots/components-testimonials--list-layout.png +0 -0
  192. package/dist/static/img/screenshots/components-testimonials--simple.png +0 -0
  193. package/dist/static/img/screenshots/components-testimonials--slider-layout.png +0 -0
  194. package/dist/static/img/screenshots/components-testimonials--with-rating.png +0 -0
  195. package/dist/static/img/screenshots/components-testimonials--with-title.png +0 -0
  196. package/dist/static/img/screenshots/components-text--centered.png +0 -0
  197. package/dist/static/img/screenshots/components-text--highlight.png +0 -0
  198. package/dist/static/img/screenshots/components-text--multi-column.png +0 -0
  199. package/dist/static/img/screenshots/components-text--single-column.png +0 -0
  200. package/dist/static/img/screenshots/components-video-curtain--atmospheric-video-with-overlay.png +0 -0
  201. package/dist/static/img/screenshots/components-video-curtain--color-neutral-text.png +0 -0
  202. package/dist/static/img/screenshots/components-video-curtain--color-neutral-video.png +0 -0
  203. package/dist/static/img/screenshots/corporate-breadcrumb--default.png +0 -0
  204. package/dist/static/img/screenshots/corporate-business-card--centered.png +0 -0
  205. package/dist/static/img/screenshots/corporate-business-card--default.png +0 -0
  206. package/dist/static/img/screenshots/corporate-business-card--without-image.png +0 -0
  207. package/dist/static/img/screenshots/corporate-content-nav--default.png +0 -0
  208. package/dist/static/img/screenshots/corporate-cookie-consent--banner.png +0 -0
  209. package/dist/static/img/screenshots/corporate-cookie-consent--c-15-t.png +0 -0
  210. package/dist/static/img/screenshots/corporate-cookie-consent--card.png +0 -0
  211. package/dist/static/img/screenshots/corporate-downloads--complete.png +0 -0
  212. package/dist/static/img/screenshots/corporate-downloads--description-only.png +0 -0
  213. package/dist/static/img/screenshots/corporate-downloads--mixed.png +0 -0
  214. package/dist/static/img/screenshots/corporate-downloads--technical-details-only.png +0 -0
  215. package/dist/static/img/screenshots/corporate-pagination--default.png +0 -0
  216. package/dist/static/img/screenshots/corporate-search-bar--default.png +0 -0
  217. package/dist/static/img/screenshots/corporate-search-filter--default.png +0 -0
  218. package/dist/static/img/screenshots/corporate-search-form--pagefind.png +0 -0
  219. package/dist/static/img/screenshots/corporate-search-modal--pagefind.png +0 -0
  220. package/dist/static/img/screenshots/corporate-search-result--default.png +0 -0
  221. package/dist/static/img/screenshots/event-event-filter--default.png +0 -0
  222. package/dist/static/img/screenshots/event-event-header--default.png +0 -0
  223. package/dist/static/img/screenshots/event-event-latest--default.png +0 -0
  224. package/dist/static/img/screenshots/event-event-latest-teaser--default.png +0 -0
  225. package/dist/static/img/screenshots/event-event-list-teaser--default.png +0 -0
  226. package/dist/static/img/screenshots/event-event-location--default.png +0 -0
  227. package/dist/static/img/screenshots/event-event-login--default.png +0 -0
  228. package/dist/static/img/screenshots/event-event-registration--default.png +0 -0
  229. package/dist/static/img/screenshots/form-checkbox--default.png +0 -0
  230. package/dist/static/img/screenshots/form-radio--default.png +0 -0
  231. package/dist/static/img/screenshots/form-select-field--default.png +0 -0
  232. package/dist/static/img/screenshots/form-text-area--default.png +0 -0
  233. package/dist/static/img/screenshots/form-text-field--default.png +0 -0
  234. package/dist/static/img/screenshots/layout-divider--accent.png +0 -0
  235. package/dist/static/img/screenshots/layout-divider--default.png +0 -0
  236. package/dist/static/img/screenshots/layout-footer--footer.png +0 -0
  237. package/dist/static/img/screenshots/layout-header--header.png +0 -0
  238. package/dist/static/img/screenshots/layout-section--accent-background.png +0 -0
  239. package/dist/static/img/screenshots/layout-section--background-image.png +0 -0
  240. package/dist/static/img/screenshots/layout-section--bold-background.png +0 -0
  241. package/dist/static/img/screenshots/layout-section--dynamic-layout.png +0 -0
  242. package/dist/static/img/screenshots/layout-section--framed.png +0 -0
  243. package/dist/static/img/screenshots/layout-section--inverted.png +0 -0
  244. package/dist/static/img/screenshots/layout-section--list-layout.png +0 -0
  245. package/dist/static/img/screenshots/layout-section--slider.png +0 -0
  246. package/dist/static/img/screenshots/layout-section--tile-layout.png +0 -0
  247. package/dist/static/img/screenshots/layout-section--with-buttons.png +0 -0
  248. package/dist/static/img/screenshots/layout-slider--with-arrows.png +0 -0
  249. package/dist/static/img/screenshots/layout-slider--with-autoplay.png +0 -0
  250. package/dist/static/img/screenshots/layout-slider--with-nav.png +0 -0
  251. package/dist/static/img/screenshots/layout-slider--with-teased-neighbours.png +0 -0
  252. package/dist/static/img/screenshots/layout-split-even--faq-with-form.png +0 -0
  253. package/dist/static/img/screenshots/layout-split-even--text-with-logos.png +0 -0
  254. package/dist/static/img/screenshots/layout-split-weighted--text-with-contact.png +0 -0
  255. package/dist/static/img/screenshots/layout-split-weighted--text-with-teaser.png +0 -0
  256. package/dist/static/img/screenshots/page-archetypes-about--about.png +0 -0
  257. package/dist/static/img/screenshots/page-archetypes-blog-overview--blog-overview.png +0 -0
  258. package/dist/static/img/screenshots/page-archetypes-blog-post--blog-post.png +0 -0
  259. package/dist/static/img/screenshots/page-archetypes-event-detail--event-detail.png +0 -0
  260. package/dist/static/img/screenshots/page-archetypes-event-list--event-list.png +0 -0
  261. package/dist/static/img/screenshots/page-archetypes-job-detail--job-detail.png +0 -0
  262. package/dist/static/img/screenshots/page-archetypes-jobs--jobs.png +0 -0
  263. package/dist/static/img/screenshots/page-archetypes-landingpage--landingpage.png +0 -0
  264. package/dist/static/img/screenshots/page-archetypes-overview--overview.png +0 -0
  265. package/dist/static/img/screenshots/page-archetypes-search--search.png +0 -0
  266. package/dist/static/img/screenshots/page-archetypes-showcase--showcase.png +0 -0
  267. package/dist/static/logo.svg +13 -57
  268. package/dist/tokens/themes.css +20 -20
  269. package/dist/tokens/tokens.css +359 -360
  270. package/dist/tokens/tokens.js +540 -541
  271. package/package.json +7 -4
  272. package/dist/SearchResultProps-224c2338.d.ts +0 -33
  273. package/dist/components/page-wrapper/tokens.css +0 -2480
  274. package/dist/static/fonts/dsa/permanent-marker-regular.woff2 +0 -0
  275. package/dist/static/fonts/dsa/wix-madefor-display-600.woff2 +0 -0
  276. package/dist/static/fonts/dsa/wix-madefor-display-700.woff2 +0 -0
  277. package/dist/static/fonts/dsa/wix-madefor-display-regular.woff2 +0 -0
  278. package/dist/static/fonts/dsa/wix-madefor-text-500.woff2 +0 -0
  279. package/dist/static/fonts/dsa/wix-madefor-text-600.woff2 +0 -0
  280. package/dist/static/fonts/dsa/wix-madefor-text-700.woff2 +0 -0
  281. package/dist/static/fonts/dsa/wix-madefor-text-regular.woff2 +0 -0
  282. package/dist/static/img/screenshots/components-image--custom-aspect-ratio.png +0 -0
  283. package/dist/static/img/screenshots/components-image--preset-size.png +0 -0
  284. package/dist/static/img/screenshots/components-image--responsive-image.png +0 -0
  285. package/dist/static/img/screenshots/layout-section--cards.png +0 -0
  286. package/dist/static/img/screenshots/layout-section--colorful-gradient.png +0 -0
  287. package/dist/static/img/screenshots/layout-section--flex-layout.png +0 -0
  288. package/dist/static/img/screenshots/layout-section--spotlight.png +0 -0
  289. package/dist/static/img/screenshots/layout-section--stagelights.png +0 -0
  290. package/dist/static/img/screenshots/pages-archetypes--blog-overview.png +0 -0
  291. package/dist/static/img/screenshots/pages-archetypes--blog-post.png +0 -0
  292. package/dist/static/img/screenshots/pages-archetypes--content.png +0 -0
  293. package/dist/static/img/screenshots/pages-archetypes--overview.png +0 -0
  294. package/dist/static/img/screenshots/pages-archetypes--start.png +0 -0
  295. package/dist/static/taktsoft-energy/preview.gif +0 -0
@@ -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,5 @@
1
+ declare class RadioEmit {
2
+ static identifier: string;
3
+ constructor(element: any);
4
+ }
5
+ export { RadioEmit as default };
@@ -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,5 @@
1
+ declare class SearchModal {
2
+ static identifier: string;
3
+ constructor(element: any);
4
+ }
5
+ export { SearchModal 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 };
@@ -0,0 +1,27 @@
1
+ .dsa-search-modal[open] {
2
+ border-radius: var(--ks-border-radius-card);
3
+ border: var(--ks-border-color-interface) solid var(--ks-border-width-default);
4
+ box-shadow: var(--dsa-cookie-consent-dialogue--box-shadow, var(--ks-box-shadow-card));
5
+ background-color: var(--ks-background-color-default);
6
+ padding: 0;
7
+ width: calc(100% - var(--ks-spacing-inset-xs) * 2);
8
+ max-height: calc(100% - var(--ks-spacing-inset-xs) * 2);
9
+ margin-top: var(--ks-spacing-inset-xs);
10
+ }
11
+ .dsa-search-modal::backdrop {
12
+ background-color: var(--dsa-overlay--background-color);
13
+ }
14
+ .dsa-search-modal__close {
15
+ --dsa-button--padding: 1em;
16
+ }
17
+ .dsa-search-modal .l-section__container--headline .dsa-headline {
18
+ flex-direction: row;
19
+ align-items: center;
20
+ justify-content: space-between;
21
+ }
22
+ .dsa-search-modal .dsa-search-bar {
23
+ position: sticky;
24
+ top: 0;
25
+ background: var(--ks-background-color-default);
26
+ padding: 1em 0;
27
+ }
@@ -0,0 +1,70 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "http://schema.mydesignsystem.com/search-modal.schema.json",
4
+ "title": "Search Modal",
5
+ "type": "object",
6
+ "properties": {
7
+ "headline": {
8
+ "type": "string",
9
+ "default": "Search"
10
+ },
11
+ "closeAriaLabel": {
12
+ "type": "string",
13
+ "default": "close"
14
+ },
15
+ "form": {
16
+ "$schema": "http://json-schema.org/draft-07/schema#",
17
+ "$id": "http://schema.mydesignsystem.com/search-form.schema.json",
18
+ "title": "Search Form",
19
+ "type": "object",
20
+ "properties": {
21
+ "component": {
22
+ "type": "string",
23
+ "description": "ks-component attribute",
24
+ "default": "dsa.search-form"
25
+ },
26
+ "result": {
27
+ "type": "object",
28
+ "properties": {
29
+ "maxSubresults": {
30
+ "type": "number",
31
+ "description": "Max number of subresults of a single search result"
32
+ },
33
+ "showLink": {
34
+ "title": "Show Link",
35
+ "type": "boolean",
36
+ "description": "Whether to display the link to the search result.",
37
+ "default": true
38
+ },
39
+ "imageColSize": {
40
+ "title": "Image Row Size",
41
+ "type": "string",
42
+ "description": "The reserved space of the image row.",
43
+ "default": "small",
44
+ "enum": [
45
+ "none",
46
+ "small",
47
+ "large"
48
+ ]
49
+ }
50
+ },
51
+ "additionalProperties": false
52
+ },
53
+ "resultPerPage": {
54
+ "type": "number",
55
+ "default": 10
56
+ },
57
+ "moreButtonLabel": {
58
+ "type": "string",
59
+ "default": "View all results"
60
+ }
61
+ },
62
+ "additionalProperties": false
63
+ }
64
+ },
65
+ "required": [
66
+ "headline",
67
+ "closeAriaLabel"
68
+ ],
69
+ "additionalProperties": false
70
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "http://schema.mydesignsystem.com/search-modal.schema.json",
4
+ "title": "Search Modal",
5
+ "type": "object",
6
+ "properties": {
7
+ "headline": {
8
+ "type": "string",
9
+ "default": "Search"
10
+ },
11
+ "closeAriaLabel": {
12
+ "type": "string",
13
+ "default": "close"
14
+ },
15
+ "form": {
16
+ "$ref": "http://schema.mydesignsystem.com/search-form.schema.json"
17
+ }
18
+ },
19
+ "required": [
20
+ "headline",
21
+ "closeAriaLabel"
22
+ ],
23
+ "additionalProperties": false
24
+ }
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { SearchResultProps } from "../../SearchResultProps-224c2338.js";
3
- declare const SearchResultContextDefault: import("react").ForwardRefExoticComponent<SearchResultProps & import("react").RefAttributes<HTMLAnchorElement>>;
4
- declare const SearchResultContext: import("react").Context<import("react").ForwardRefExoticComponent<SearchResultProps & import("react").RefAttributes<HTMLAnchorElement>>>;
5
- declare const SearchResult: import("react").ForwardRefExoticComponent<SearchResultProps & import("react").RefAttributes<HTMLAnchorElement>>;
2
+ import { SearchResultProps } from "../../SearchResultProps-f6f07017.js";
3
+ declare const SearchResultContextDefault: import("react").ForwardRefExoticComponent<SearchResultProps & import("react").RefAttributes<HTMLDivElement>>;
4
+ declare const SearchResultContext: import("react").Context<import("react").ForwardRefExoticComponent<SearchResultProps & import("react").RefAttributes<HTMLDivElement>>>;
5
+ declare const SearchResult: import("react").ForwardRefExoticComponent<SearchResultProps & import("react").RefAttributes<HTMLDivElement>>;
6
6
  export type { SearchResultProps };
7
7
  export { SearchResultContextDefault, SearchResultContext, SearchResult };
@@ -1,15 +1,24 @@
1
1
  import "./search-result.css";
2
- import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import { forwardRef, createContext, useContext } from 'react';
4
4
  import { Link } from '@kickstartds/base/lib/link';
5
5
  import { RichText } from '@kickstartds/base/lib/rich-text';
6
6
  import { d as deepMergeDefaults } from '../../helpers-12f48df8.js';
7
+ import classnames from 'classnames';
8
+ import { Picture } from '@kickstartds/base/lib/picture';
9
+ import { Container } from '@kickstartds/core/lib/container';
10
+ import { SearchResultMatch } from '../search-result-match/index.js';
7
11
 
8
12
  const defaults = {
13
+ "imageColSize": "small",
14
+ "matches": [],
9
15
  "showLink": true
10
16
  };
11
17
 
12
- const SearchResultContextDefault = forwardRef(({ title, text, url, showLink, ariaLabel }, ref) => (jsxs(Link, { "aria-label": ariaLabel, href: url, className: "dsa-search-result", ref: ref, children: [jsx("span", { className: "dsa-search-result__title", children: title }), jsx(RichText, { text: text, className: "dsa-search-result__text" }), showLink && jsx("span", { className: "dsa-search-result__link", children: url })] })));
18
+ const SearchResultContextDefault = forwardRef(({ title, previewImage, imageColSize = "small", initialMatch, matches, url, showLink, }, ref) => (jsx(Container, { name: "search-result", children: jsxs("div", { ref: ref, className: classnames("dsa-search-result", {
19
+ "dsa-search-result--image-row-large": imageColSize === "large",
20
+ "dsa-search-result--image-row-none": imageColSize === "none",
21
+ }), children: [jsxs("div", { className: "dsa-search-result__content", children: [jsx("div", { className: "dsa-search-result__header", children: jsx(Link, { "data-result-link": true, "data-result-title": true, href: url, className: "dsa-search-result__title", children: title }) }), jsx(RichText, { className: "dsa-search-result__initial-match", text: initialMatch, "data-result-excerpt": true }), jsx("div", { className: "dsa-search-result__matches", "data-result-subresults": true, children: matches.map((match, index) => (jsx(SearchResultMatch, { ...match }, index))) }), showLink && (jsx(Link, { href: url, className: "dsa-search-result__link", "data-result-link": true, "data-result-url": true, children: url }))] }), imageColSize !== "none" && (jsx("div", { className: "dsa-search-result__preview-image-row", children: jsx(Link, { tabIndex: -1, "aria-hidden": true, href: url, className: "dsa-search-result__preview-image-wrapper", "data-result-link": true, children: jsx(Picture, { src: previewImage, alt: "", className: "dsa-search-result__preview-image", "data-result-image": true }) }) }))] }) })));
13
22
  const SearchResultContext = createContext(SearchResultContextDefault);
14
23
  const SearchResult = forwardRef((props, ref) => {
15
24
  const Component = useContext(SearchResultContext);
@@ -1,28 +1,76 @@
1
+ .l-container--search-result {
2
+ /* stylelint-disable-next-line property-no-unknown */
3
+ container-name: search-result;
4
+ }
5
+
1
6
  .dsa-search-result {
2
7
  --g-link--border-radius: var(--ks-border-radius-card);
3
8
  --g-link--text-decoration: none;
4
9
  --g-link--text-decoration-hover: none;
5
10
  display: flex;
6
- flex-direction: column;
7
- gap: var(--ks-spacing-stack-xs);
8
- border: var(--ks-border-width-default) solid var(--ks-border-color-card-interactive);
9
- padding: var(--ks-spacing-inset-m);
10
- transition: var(--ks-transition-hover);
11
+ gap: var(--ks-spacing-stack-m) var(--ks-spacing-inline-m);
12
+ }
13
+ .dsa-search-result .l-container {
14
+ container-type: unset;
11
15
  }
12
16
  .dsa-search-result:hover {
13
17
  border-color: var(--ks-border-color-card-interactive-hover);
14
18
  }
15
- .dsa-search-result__title {
16
- font: var(--dsa-topic--font);
17
- color: var(--dsa-topic--color);
18
- font-weight: var(--dsa-topic--font-weight);
19
+ .dsa-search-result__content {
20
+ display: flex;
21
+ flex-direction: column;
22
+ gap: var(--ks-spacing-stack-xs);
23
+ flex-basis: var(--dsa-tile--width_medium);
24
+ flex-grow: 1;
19
25
  }
20
26
  .dsa-search-result__link {
27
+ --g-link--color: var(--ks-color-fg-alpha-4);
28
+ --g-link--color-hover: var(--ks-color-fg-alpha-2);
21
29
  width: fit-content;
22
30
  font: var(--ks-font-interface-s);
23
- color: var(--dsa-link--color);
24
- transition: inherit;
25
31
  }
26
- .dsa-search-result__link:hover {
27
- color: var(--dsa-link--color_hover);
32
+ .dsa-search-result strong,
33
+ .dsa-search-result mark {
34
+ border-bottom: 1px dashed var(--ks-color-fg);
35
+ font-weight: unset;
36
+ color: var(--ks-color-fg);
37
+ background-color: transparent;
38
+ }
39
+ .dsa-search-result__matches {
40
+ padding: var(--ks-spacing-xxs) 0;
41
+ }
42
+ .dsa-search-result__matches:empty {
43
+ display: none;
44
+ }
45
+ .dsa-search-result__title {
46
+ font-size: var(--ks-font-size-display-l);
47
+ font-family: var(--ks-font-family-display);
48
+ line-height: var(--ks-line-height-display-m);
49
+ }
50
+ .dsa-search-result__preview-image-row {
51
+ height: fit-content;
52
+ flex-basis: var(--dsa-tile--width_smallest);
53
+ }
54
+ .dsa-search-result--image-row-large .dsa-search-result__preview-image-row {
55
+ flex-basis: var(--dsa-tile--width_small);
56
+ }
57
+ @media (max-width: 980px) {
58
+ .dsa-search-result__preview-image-row {
59
+ display: none;
60
+ }
61
+ @container search-result (min-width: 640px) {
62
+ .dsa-search-result__preview-image-row {
63
+ display: block;
64
+ }
65
+ }
66
+ }
67
+ .dsa-search-result__preview-image {
68
+ width: 100%;
69
+ height: fit-content;
70
+ object-fit: cover;
71
+ aspect-ratio: 4/3;
72
+ border-radius: calc(var(--ks-border-radius-card) / 2);
73
+ }
74
+ .dsa-search-result__preview-image:not([src]) {
75
+ display: none;
28
76
  }
@@ -20,27 +20,70 @@
20
20
  "AI Conference 2023"
21
21
  ]
22
22
  },
23
- "text": {
24
- "title": "Text",
23
+ "imageColSize": {
24
+ "title": "Image Row Size",
25
25
  "type": "string",
26
- "description": "The main content or description of the search result.",
27
- "examples": [
28
- "Join us for the AI Conference 2023, where industry leaders discuss the future of AI."
26
+ "description": "The reserved space of the image row.",
27
+ "default": "small",
28
+ "enum": [
29
+ "none",
30
+ "small",
31
+ "large"
29
32
  ]
30
33
  },
34
+ "previewImage": {
35
+ "title": "Preview Image",
36
+ "type": "string",
37
+ "description": "A URL to an image preview for the search result."
38
+ },
39
+ "initialMatch": {
40
+ "title": "Initial Match",
41
+ "type": "string",
42
+ "description": "The initial search match or summary of the search result."
43
+ },
44
+ "matches": {
45
+ "title": "Matches",
46
+ "type": "array",
47
+ "description": "An array of search matches.",
48
+ "items": {
49
+ "$schema": "http://json-schema.org/draft-07/schema#",
50
+ "$id": "http://schema.mydesignsystem.com/search-result-match.schema.json",
51
+ "title": "Search Result Match",
52
+ "type": "object",
53
+ "properties": {
54
+ "title": {
55
+ "title": "Title",
56
+ "type": "string",
57
+ "description": "The title of the match.",
58
+ "examples": [
59
+ "Panel Discussion: Ethics in AI"
60
+ ]
61
+ },
62
+ "snippet": {
63
+ "title": "Text",
64
+ "type": "string",
65
+ "description": "The main content or description of the search result.",
66
+ "examples": [
67
+ "Experts debate the ethical challenges and responsibilities of deploying AI technologies."
68
+ ]
69
+ },
70
+ "url": {
71
+ "title": "URL",
72
+ "type": "string",
73
+ "description": "A URL linking to the specific match or more information.",
74
+ "examples": [
75
+ "https://www.example.com/ai-conference-2023/panel-discussion"
76
+ ]
77
+ }
78
+ },
79
+ "additionalProperties": false
80
+ }
81
+ },
31
82
  "showLink": {
32
83
  "title": "Show Link",
33
84
  "type": "boolean",
34
85
  "description": "Whether to display the link to the search result.",
35
86
  "default": true
36
- },
37
- "ariaLabel": {
38
- "title": "ARIA Label",
39
- "type": "string",
40
- "description": "An ARIA label for accessibility purposes.",
41
- "examples": [
42
- "Search result: Conference 2023"
43
- ]
44
87
  }
45
88
  },
46
89
  "additionalProperties": false
@@ -16,25 +16,36 @@
16
16
  "description": "The title of the search result.",
17
17
  "examples": ["AI Conference 2023"]
18
18
  },
19
- "text": {
20
- "title": "Text",
19
+ "imageColSize": {
20
+ "title": "Image Row Size",
21
21
  "type": "string",
22
- "description": "The main content or description of the search result.",
23
- "examples": [
24
- "Join us for the AI Conference 2023, where industry leaders discuss the future of AI."
25
- ]
22
+ "description": "The reserved space of the image row.",
23
+ "default": "small",
24
+ "enum": ["none", "small", "large"]
25
+ },
26
+ "previewImage": {
27
+ "title": "Preview Image",
28
+ "type": "string",
29
+ "description": "A URL to an image preview for the search result."
30
+ },
31
+ "initialMatch": {
32
+ "title": "Initial Match",
33
+ "type": "string",
34
+ "description": "The initial search match or summary of the search result."
35
+ },
36
+ "matches": {
37
+ "title": "Matches",
38
+ "type": "array",
39
+ "description": "An array of search matches.",
40
+ "items": {
41
+ "$ref": "http://schema.mydesignsystem.com/search-result-match.schema.json"
42
+ }
26
43
  },
27
44
  "showLink": {
28
45
  "title": "Show Link",
29
46
  "type": "boolean",
30
47
  "description": "Whether to display the link to the search result.",
31
48
  "default": true
32
- },
33
- "ariaLabel": {
34
- "title": "ARIA Label",
35
- "type": "string",
36
- "description": "An ARIA label for accessibility purposes.",
37
- "examples": ["Search result: Conference 2023"]
38
49
  }
39
50
  },
40
51
  "additionalProperties": false
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { SearchResultMatchProps } from "../../SearchResultMatchProps-777cd47c.js";
3
+ declare const SearchResultMatchContextDefault: import("react").ForwardRefExoticComponent<SearchResultMatchProps & import("react").RefAttributes<HTMLAnchorElement>>;
4
+ declare const SearchResultMatchContext: import("react").Context<import("react").ForwardRefExoticComponent<SearchResultMatchProps & import("react").RefAttributes<HTMLAnchorElement>>>;
5
+ declare const SearchResultMatch: import("react").ForwardRefExoticComponent<SearchResultMatchProps & import("react").RefAttributes<HTMLAnchorElement>>;
6
+ export type { SearchResultMatchProps };
7
+ export { SearchResultMatchContextDefault, SearchResultMatchContext, SearchResultMatch };
@@ -0,0 +1,18 @@
1
+ import "./search-result-match.css";
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
+ import { forwardRef, createContext, useContext } from 'react';
4
+ import { Link } from '@kickstartds/base/lib/link';
5
+ import { RichText } from '@kickstartds/base/lib/rich-text';
6
+ import { d as deepMergeDefaults } from '../../helpers-12f48df8.js';
7
+
8
+ const defaults = {};
9
+
10
+ const SearchResultMatchContextDefault = forwardRef(({ title, snippet, url, ...props }, ref) => (jsxs(Link, { ref: ref, href: url, className: "dsa-search-result-match", "data-result-link": true, ...props, children: [jsx("div", { "data-result-title": true, className: "dsa-search-result-match__title", children: title }), jsx(RichText, { text: snippet, className: "dsa-search-result-match__snippet", "data-result-excerpt": true })] })));
11
+ const SearchResultMatchContext = createContext(SearchResultMatchContextDefault);
12
+ const SearchResultMatch = forwardRef((props, ref) => {
13
+ const Component = useContext(SearchResultMatchContext);
14
+ return jsx(Component, { ...deepMergeDefaults(defaults, props), ref: ref });
15
+ });
16
+ SearchResultMatch.displayName = "SearchResultMatch";
17
+
18
+ export { SearchResultMatch, SearchResultMatchContext, SearchResultMatchContextDefault };
@@ -0,0 +1,18 @@
1
+ .dsa-search-result-match {
2
+ --g-link--border-radius: 0;
3
+ font: var(--ks-font-interface-m);
4
+ padding: var(--ks-spacing-stack-s) 0;
5
+ border-top: 1px solid var(--ks-border-color-default);
6
+ display: block;
7
+ margin-left: 1.25em;
8
+ }
9
+ .dsa-search-result-match__snippet {
10
+ font: var(--ks-font-copy-m);
11
+ }
12
+ .dsa-search-result-match__chevron {
13
+ width: 1em;
14
+ height: 1em;
15
+ }
16
+ .dsa-search-result-match:last-child {
17
+ border-bottom: 1px solid var(--ks-border-color-default);
18
+ }