@kickstartds/ds-agency-premium 1.6.71--canary.49.2211.0 → 1.6.71--canary.50.2218.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 (91) hide show
  1. package/dist/BlogOverviewProps-9f207f1c.d.ts +1 -1
  2. package/dist/BlogPostProps-6b3cff22.d.ts +1 -1
  3. package/dist/HeadlineProps-e1305784.d.ts +53 -0
  4. package/dist/PageProps-aa29c554.d.ts +1 -1
  5. package/dist/SearchBarProps-26263244.d.ts +29 -0
  6. package/dist/{SectionProps-2a23ef89.d.ts → SectionProps-d60aba86.d.ts} +1 -1
  7. package/dist/components/blog-overview/blog-overview.schema.dereffed.json +1 -1
  8. package/dist/components/blog-post/blog-post.schema.dereffed.json +1 -1
  9. package/dist/components/button/button.css +1 -1
  10. package/dist/components/cookie-consent/C15t.client.js +32 -3
  11. package/dist/components/cookie-consent/CookieConsent.client.d.ts +0 -1
  12. package/dist/components/cookie-consent/CookieConsent.client.js +8 -13
  13. package/dist/components/cookie-consent/cookie-consent.css +3 -15
  14. package/dist/components/cookie-consent/index.js +1 -1
  15. package/dist/components/features/features.css +1 -2
  16. package/dist/components/footer/footer.css +2 -2
  17. package/dist/components/footer/footer.schema.dereffed.json +9 -154
  18. package/dist/components/header/header.schema.dereffed.json +9 -154
  19. package/dist/components/headline/headline.css +7 -7
  20. package/dist/components/headline/index.d.ts +1 -53
  21. package/dist/components/hero/hero.css +4 -4
  22. package/dist/components/mosaic/index.js +0 -1
  23. package/dist/components/nav-dropdown/nav-dropdown.css +5 -5
  24. package/dist/components/nav-flyout/nav-flyout.schema.dereffed.json +9 -154
  25. package/dist/components/nav-main/nav-main.schema.dereffed.json +9 -154
  26. package/dist/components/nav-main/nav-main.schema.json +9 -154
  27. package/dist/components/nav-topbar/nav-topbar.css +1 -1
  28. package/dist/components/nav-topbar/nav-topbar.schema.dereffed.json +9 -154
  29. package/dist/components/page/page.schema.dereffed.json +1 -1
  30. package/dist/components/page-wrapper/index.js +0 -43
  31. package/dist/components/page-wrapper/tokens.css +353 -353
  32. package/dist/components/presets.json +20 -305
  33. package/dist/components/search/Search.client.d.ts +6 -0
  34. package/dist/components/search/Search.client.js +71 -0
  35. package/dist/components/search/index.d.ts +10 -0
  36. package/dist/components/search/index.js +29 -20
  37. package/dist/components/search/search.schema.dereffed.json +133 -0
  38. package/dist/components/search/search.schema.json +6 -0
  39. package/dist/components/search-bar/index.d.ts +1 -29
  40. package/dist/components/search-bar/index.js +1 -1
  41. package/dist/components/section/index.d.ts +1 -1
  42. package/dist/components/section/section.css +12 -8
  43. package/dist/components/section/section.schema.dereffed.json +1 -1
  44. package/dist/components/section/section.schema.json +1 -1
  45. package/dist/components/settings/settings.schema.dereffed.json +18 -308
  46. package/dist/components/slider/slider.css +2 -2
  47. package/dist/components/teaser-card/index.js +1 -1
  48. package/dist/components/teaser-card/teaser-card.css +9 -10
  49. package/dist/global.css +5 -5
  50. package/dist/static/logo-dark.svg +12 -8
  51. package/dist/static/logo.svg +12 -8
  52. package/dist/tokens/IconSprite.js +0 -43
  53. package/dist/tokens/icon-sprite.html +0 -18
  54. package/dist/tokens/themes.css +4 -4
  55. package/dist/tokens/tokens.css +353 -353
  56. package/dist/tokens/tokens.js +557 -561
  57. package/package.json +4 -2
  58. package/dist/static/logo.png +0 -0
  59. package/dist/static/optoma/2989.jpg +0 -0
  60. package/dist/static/optoma/3081.jpg +0 -0
  61. package/dist/static/optoma/3124.jpg +0 -0
  62. package/dist/static/optoma/3276.jpg +0 -0
  63. package/dist/static/optoma/3333.jpg +0 -0
  64. package/dist/static/optoma/3342.jpg +0 -0
  65. package/dist/static/optoma/bannerimgpro.jpg +0 -0
  66. package/dist/static/optoma/beamer.jpg +0 -0
  67. package/dist/static/optoma/beamer.png +0 -0
  68. package/dist/static/optoma/beamer.svg +0 -10
  69. package/dist/static/optoma/creative-board-girl.jpg +0 -0
  70. package/dist/static/optoma/hero.jpg +0 -0
  71. package/dist/static/optoma/interaktive-displays.svg +0 -9
  72. package/dist/static/optoma/landing-banner.jpg +0 -0
  73. package/dist/static/optoma/led.svg +0 -21
  74. package/dist/static/optoma/location-1.jpg +0 -0
  75. package/dist/static/optoma/location-2.jpg +0 -0
  76. package/dist/static/optoma/logo.svg +0 -9
  77. package/dist/static/optoma/l/303/266sungen.svg +0 -13
  78. package/dist/static/optoma/product-1.jpg +0 -0
  79. package/dist/static/optoma/product-1.png +0 -0
  80. package/dist/static/optoma/product-2.jpg +0 -0
  81. package/dist/static/optoma/product-2.png +0 -0
  82. package/dist/static/optoma/product-3.jpg +0 -0
  83. package/dist/static/optoma/product-3.png +0 -0
  84. package/dist/static/optoma/product-4.jpg +0 -0
  85. package/dist/static/optoma/product-4.png +0 -0
  86. package/dist/static/optoma/product-5.jpg +0 -0
  87. package/dist/static/optoma/product-6.jpg +0 -0
  88. package/dist/static/optoma/professionelle-displays.svg +0 -4
  89. package/dist/static/optoma/square-1.jpg +0 -0
  90. package/dist/static/optoma/square-2.jpg +0 -0
  91. package/dist/static/optoma/zubeh/303/266r.svg +0 -5
@@ -1192,7 +1192,7 @@
1192
1192
  "id": "page-archetypes-search--search",
1193
1193
  "group": "Page Archetypes/Search",
1194
1194
  "name": "Search",
1195
- "code": "<Search\n events={[\n {\n category: 'Buyers',\n ctaText: 'Show event',\n date: 'FRI, JAN 16',\n image: {\n alt: 'This is an image of a flower',\n src: 'https://picsum.photos/seed/flower/800/600'\n },\n location: {\n address: 'Köln',\n name: 'Stadthalle'\n },\n tags: [\n 'AI'\n ],\n text: 'The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence. The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence.',\n time: '10:00',\n title: 'This is a event teaser title',\n url: 'https://example.com'\n },\n {\n category: 'Buyers',\n ctaText: 'Show event',\n date: 'FRI, JAN 16',\n image: {\n alt: 'This is an image of a flower',\n src: 'https://picsum.photos/seed/flower/800/600'\n },\n location: {\n address: 'Köln',\n name: 'Stadthalle'\n },\n tags: [\n 'AI'\n ],\n text: 'The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence. The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence.',\n time: '10:00',\n title: 'This is a event teaser title',\n url: 'https://example.com'\n },\n {\n category: 'Buyers',\n ctaText: 'Show event',\n date: 'FRI, JAN 16',\n image: {\n alt: 'This is an image of a flower',\n src: 'https://picsum.photos/seed/flower/800/600'\n },\n location: {\n address: 'Köln',\n name: 'Stadthalle'\n },\n tags: [\n 'AI'\n ],\n text: 'The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence. The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence.',\n time: '10:00',\n title: 'This is a event teaser title',\n url: 'https://example.com'\n }\n ]}\n filter={{\n applyButton: {\n label: 'Filter Appointments'\n },\n categories: {\n categoryCheckboxes: [\n 'Category Filter',\n 'Category Filter',\n 'Category Filter'\n ],\n title: 'Categories',\n toggle: true\n },\n datePicker: {\n dateFromInput: {\n label: 'From',\n placeholder: 'Select a date'\n },\n dateToInput: {\n label: 'To',\n placeholder: 'Select a date'\n },\n title: 'Find Appointment',\n toggle: true\n },\n resetButton: {\n label: 'Reset Filters'\n }\n }}\n searchFilter={{\n categories: [\n {\n amount: 10,\n title: 'Pages',\n url: '#'\n },\n {\n amount: 5,\n title: 'News',\n url: '#'\n },\n {\n amount: 2,\n title: 'Blog Posts',\n url: '#'\n }\n ],\n title: 'Search Filters'\n }}\n searchResults={[\n {\n ariaLabel: 'Search Result: AI Conference 2023',\n showLink: true,\n text: 'Join us for the annual **AI Conference** bringing together experts from around the world.\\n Register now to secure your spot and learn about the latest advancements in AI.',\n title: 'AI Conference 2023',\n url: 'https://www.example.com/ai-conference-2023'\n },\n {\n ariaLabel: 'Search Result: Web Development Summit 2023',\n showLink: true,\n text: 'Explore the future of web development at the **Web Development Summit**.\\n Discover new technologies and network with industry leaders.',\n title: 'Web Development Summit 2023',\n url: 'https://www.example.com/web-development-summit-2023'\n },\n {\n ariaLabel: 'Search Result: Data Science Bootcamp',\n showLink: true,\n text: 'Enhance your skills with our **Data Science Bootcamp**.\\n Learn from experts and work on real-world projects.',\n title: 'Data Science Bootcamp',\n url: 'https://www.example.com/data-science-bootcamp'\n },\n {\n ariaLabel: 'Search Result: AI Conference 2023',\n showLink: true,\n text: 'Join us for the annual **AI Conference** bringing together experts from around the world.\\n Register now to secure your spot and learn about the latest advancements in AI.',\n title: 'AI Conference 2023',\n url: 'https://www.example.com/ai-conference-2023'\n },\n {\n ariaLabel: 'Search Result: Web Development Summit 2023',\n showLink: true,\n text: 'Explore the future of web development at the **Web Development Summit**.\\n Discover new technologies and network with industry leaders.',\n title: 'Web Development Summit 2023',\n url: 'https://www.example.com/web-development-summit-2023'\n },\n {\n ariaLabel: 'Search Result: Data Science Bootcamp',\n showLink: true,\n text: 'Enhance your skills with our **Data Science Bootcamp**.\\n Learn from experts and work on real-world projects.',\n title: 'Data Science Bootcamp',\n url: 'https://www.example.com/data-science-bootcamp'\n }\n ]}\n/>",
1195
+ "code": "<Search\n events={[\n {\n category: 'Buyers',\n ctaText: 'Show event',\n date: 'FRI, JAN 16',\n image: {\n alt: 'This is an image of a flower',\n src: 'https://picsum.photos/seed/flower/800/600'\n },\n location: {\n address: 'Köln',\n name: 'Stadthalle'\n },\n tags: [\n 'AI'\n ],\n text: 'The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence. The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence.',\n time: '10:00',\n title: 'This is a event teaser title',\n url: 'https://example.com'\n },\n {\n category: 'Buyers',\n ctaText: 'Show event',\n date: 'FRI, JAN 16',\n image: {\n alt: 'This is an image of a flower',\n src: 'https://picsum.photos/seed/flower/800/600'\n },\n location: {\n address: 'Köln',\n name: 'Stadthalle'\n },\n tags: [\n 'AI'\n ],\n text: 'The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence. The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence.',\n time: '10:00',\n title: 'This is a event teaser title',\n url: 'https://example.com'\n },\n {\n category: 'Buyers',\n ctaText: 'Show event',\n date: 'FRI, JAN 16',\n image: {\n alt: 'This is an image of a flower',\n src: 'https://picsum.photos/seed/flower/800/600'\n },\n location: {\n address: 'Köln',\n name: 'Stadthalle'\n },\n tags: [\n 'AI'\n ],\n text: 'The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence. The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence.',\n time: '10:00',\n title: 'This is a event teaser title',\n url: 'https://example.com'\n }\n ]}\n filter={{\n applyButton: {\n label: 'Filter Appointments'\n },\n categories: {\n categoryCheckboxes: [\n 'Category Filter',\n 'Category Filter',\n 'Category Filter'\n ],\n title: 'Categories',\n toggle: true\n },\n datePicker: {\n dateFromInput: {\n label: 'From',\n placeholder: 'Select a date'\n },\n dateToInput: {\n label: 'To',\n placeholder: 'Select a date'\n },\n title: 'Find Appointment',\n toggle: true\n },\n resetButton: {\n label: 'Reset Filters'\n }\n }}\n headline={{\n level: 'h1',\n style: 'h1',\n text: 'Search'\n }}\n searchFilter={{\n categories: [\n {\n amount: 10,\n title: 'Pages',\n url: '#'\n },\n {\n amount: 5,\n title: 'News',\n url: '#'\n },\n {\n amount: 2,\n title: 'Blog Posts',\n url: '#'\n }\n ],\n title: 'Search Filters'\n }}\n searchResults={[\n {\n ariaLabel: 'Search Result: AI Conference 2023',\n showLink: true,\n text: 'Join us for the annual **AI Conference** bringing together experts from around the world.\\n Register now to secure your spot and learn about the latest advancements in AI.',\n title: 'AI Conference 2023',\n url: 'https://www.example.com/ai-conference-2023'\n },\n {\n ariaLabel: 'Search Result: Web Development Summit 2023',\n showLink: true,\n text: 'Explore the future of web development at the **Web Development Summit**.\\n Discover new technologies and network with industry leaders.',\n title: 'Web Development Summit 2023',\n url: 'https://www.example.com/web-development-summit-2023'\n },\n {\n ariaLabel: 'Search Result: Data Science Bootcamp',\n showLink: true,\n text: 'Enhance your skills with our **Data Science Bootcamp**.\\n Learn from experts and work on real-world projects.',\n title: 'Data Science Bootcamp',\n url: 'https://www.example.com/data-science-bootcamp'\n },\n {\n ariaLabel: 'Search Result: AI Conference 2023',\n showLink: true,\n text: 'Join us for the annual **AI Conference** bringing together experts from around the world.\\n Register now to secure your spot and learn about the latest advancements in AI.',\n title: 'AI Conference 2023',\n url: 'https://www.example.com/ai-conference-2023'\n },\n {\n ariaLabel: 'Search Result: Web Development Summit 2023',\n showLink: true,\n text: 'Explore the future of web development at the **Web Development Summit**.\\n Discover new technologies and network with industry leaders.',\n title: 'Web Development Summit 2023',\n url: 'https://www.example.com/web-development-summit-2023'\n },\n {\n ariaLabel: 'Search Result: Data Science Bootcamp',\n showLink: true,\n text: 'Enhance your skills with our **Data Science Bootcamp**.\\n Learn from experts and work on real-world projects.',\n title: 'Data Science Bootcamp',\n url: 'https://www.example.com/data-science-bootcamp'\n }\n ]}\n/>",
1196
1196
  "args": {
1197
1197
  "filter": {
1198
1198
  "datePicker": {
@@ -1285,6 +1285,11 @@
1285
1285
  "ctaText": "Show event"
1286
1286
  }
1287
1287
  ],
1288
+ "headline": {
1289
+ "text": "Search",
1290
+ "level": "h1",
1291
+ "style": "h1"
1292
+ },
1288
1293
  "searchFilter": {
1289
1294
  "title": "Search Filters",
1290
1295
  "categories": [
@@ -2904,7 +2909,7 @@
2904
2909
  "id": "layout-footer--footer",
2905
2910
  "group": "Layout/Footer",
2906
2911
  "name": "Footer",
2907
- "code": "<Footer\n byline=\"© 2024 systemics Inc. All rights reserved.\"\n logo={{\n alt: 'Systemics Logo',\n height: 40,\n homepageHref: '#',\n inverted: false,\n src: '/logo.svg',\n srcInverted: '/logo-inverted.svg',\n width: 176\n }}\n navItems={[\n {\n active: true,\n items: [\n {\n label: 'Level 2 Item',\n url: '#'\n },\n {\n active: true,\n label: 'Active Item',\n url: '#'\n },\n {\n label: 'An Item with a longer Label',\n url: '#'\n },\n {\n label: 'And One last one',\n url: '#'\n }\n ],\n label: 'Beamer',\n url: '#'\n },\n {\n items: [\n {\n label: 'Level 2 Item',\n url: '#'\n },\n {\n active: true,\n label: 'Active Item',\n url: '#'\n },\n {\n label: 'An Item with a longer Label',\n url: '#'\n },\n {\n label: 'And One last one',\n url: '#'\n }\n ],\n label: 'Interaktive Displays',\n url: '#'\n },\n {\n items: [\n {\n label: 'Level 2 Item',\n url: '#'\n },\n {\n active: true,\n label: 'Active Item',\n url: '#'\n },\n {\n label: 'An Item with a longer Label',\n url: '#'\n },\n {\n label: 'And One last one',\n url: '#'\n }\n ],\n label: 'Professional Displays',\n url: '#'\n },\n {\n items: [\n {\n label: 'Level 2 Item',\n url: '#'\n },\n {\n active: true,\n label: 'Active Item',\n url: '#'\n },\n {\n label: 'An Item with a longer Label',\n url: '#'\n },\n {\n label: 'And One last one',\n url: '#'\n }\n ],\n label: 'LED Displays',\n url: '#'\n },\n {\n items: [\n {\n label: 'Level 2 Item',\n url: '#'\n },\n {\n active: true,\n label: 'Active Item',\n url: '#'\n },\n {\n label: 'An Item with a longer Label',\n url: '#'\n },\n {\n label: 'And One last one',\n url: '#'\n }\n ],\n label: 'Lösungen',\n url: '#'\n },\n {\n items: [\n {\n label: 'Level 2 Item',\n url: '#'\n },\n {\n active: true,\n label: 'Active Item',\n url: '#'\n },\n {\n label: 'An Item with a longer Label',\n url: '#'\n },\n {\n label: 'And One last one',\n url: '#'\n }\n ],\n label: 'Zubehör',\n url: '#'\n },\n {\n items: [\n {\n label: 'Level 2 Item',\n url: '#'\n },\n {\n active: true,\n label: 'Active Item',\n url: '#'\n },\n {\n label: 'An Item with a longer Label',\n url: '#'\n },\n {\n label: 'And One last one',\n url: '#'\n }\n ],\n label: 'Über Optoma',\n url: '#'\n },\n {\n items: [\n {\n label: 'Level 2 Item',\n url: '#'\n },\n {\n active: true,\n label: 'Active Item',\n url: '#'\n },\n {\n label: 'An Item with a longer Label',\n url: '#'\n },\n {\n label: 'And One last one',\n url: '#'\n }\n ],\n label: 'Support',\n url: '#'\n }\n ]}\n/>",
2912
+ "code": "<Footer\n byline=\"© 2024 systemics Inc. All rights reserved.\"\n logo={{\n alt: 'Systemics Logo',\n height: 40,\n homepageHref: '#',\n inverted: false,\n src: '/logo.svg',\n srcInverted: '/logo-inverted.svg',\n width: 176\n }}\n navItems={[\n {\n active: true,\n label: 'Active Item',\n url: '#'\n },\n {\n label: 'Navigation Item',\n url: '#'\n },\n {\n items: [\n {\n label: 'Level 2 Item',\n url: '#'\n },\n {\n active: true,\n label: 'Active Item',\n url: '#'\n },\n {\n label: 'An Item with a longer Label',\n url: '#'\n },\n {\n label: 'And One last one',\n url: '#'\n }\n ],\n label: 'Dropdown',\n url: '#'\n },\n {\n label: 'One more Item',\n url: '#'\n },\n {\n label: 'Last Item',\n url: '#'\n }\n ]}\n/>",
2908
2913
  "args": {
2909
2914
  "logo": {
2910
2915
  "src": "/logo.svg",
@@ -2920,123 +2925,16 @@
2920
2925
  "navItems": [
2921
2926
  {
2922
2927
  "url": "#",
2923
- "label": "Beamer",
2924
- "active": true,
2925
- "items": [
2926
- {
2927
- "url": "#",
2928
- "label": "Level 2 Item"
2929
- },
2930
- {
2931
- "url": "#",
2932
- "label": "Active Item",
2933
- "active": true
2934
- },
2935
- {
2936
- "url": "#",
2937
- "label": "An Item with a longer Label"
2938
- },
2939
- {
2940
- "url": "#",
2941
- "label": "And One last one"
2942
- }
2943
- ]
2944
- },
2945
- {
2946
- "url": "#",
2947
- "label": "Interaktive Displays",
2948
- "items": [
2949
- {
2950
- "url": "#",
2951
- "label": "Level 2 Item"
2952
- },
2953
- {
2954
- "url": "#",
2955
- "label": "Active Item",
2956
- "active": true
2957
- },
2958
- {
2959
- "url": "#",
2960
- "label": "An Item with a longer Label"
2961
- },
2962
- {
2963
- "url": "#",
2964
- "label": "And One last one"
2965
- }
2966
- ]
2967
- },
2968
- {
2969
- "url": "#",
2970
- "label": "Professional Displays",
2971
- "items": [
2972
- {
2973
- "url": "#",
2974
- "label": "Level 2 Item"
2975
- },
2976
- {
2977
- "url": "#",
2978
- "label": "Active Item",
2979
- "active": true
2980
- },
2981
- {
2982
- "url": "#",
2983
- "label": "An Item with a longer Label"
2984
- },
2985
- {
2986
- "url": "#",
2987
- "label": "And One last one"
2988
- }
2989
- ]
2990
- },
2991
- {
2992
- "url": "#",
2993
- "label": "LED Displays",
2994
- "items": [
2995
- {
2996
- "url": "#",
2997
- "label": "Level 2 Item"
2998
- },
2999
- {
3000
- "url": "#",
3001
- "label": "Active Item",
3002
- "active": true
3003
- },
3004
- {
3005
- "url": "#",
3006
- "label": "An Item with a longer Label"
3007
- },
3008
- {
3009
- "url": "#",
3010
- "label": "And One last one"
3011
- }
3012
- ]
2928
+ "label": "Active Item",
2929
+ "active": true
3013
2930
  },
3014
2931
  {
3015
2932
  "url": "#",
3016
- "label": "Lösungen",
3017
- "items": [
3018
- {
3019
- "url": "#",
3020
- "label": "Level 2 Item"
3021
- },
3022
- {
3023
- "url": "#",
3024
- "label": "Active Item",
3025
- "active": true
3026
- },
3027
- {
3028
- "url": "#",
3029
- "label": "An Item with a longer Label"
3030
- },
3031
- {
3032
- "url": "#",
3033
- "label": "And One last one"
3034
- }
3035
- ]
2933
+ "label": "Navigation Item"
3036
2934
  },
3037
2935
  {
3038
2936
  "url": "#",
3039
- "label": "Zubehör",
2937
+ "label": "Dropdown",
3040
2938
  "items": [
3041
2939
  {
3042
2940
  "url": "#",
@@ -3059,49 +2957,11 @@
3059
2957
  },
3060
2958
  {
3061
2959
  "url": "#",
3062
- "label": "Über Optoma",
3063
- "items": [
3064
- {
3065
- "url": "#",
3066
- "label": "Level 2 Item"
3067
- },
3068
- {
3069
- "url": "#",
3070
- "label": "Active Item",
3071
- "active": true
3072
- },
3073
- {
3074
- "url": "#",
3075
- "label": "An Item with a longer Label"
3076
- },
3077
- {
3078
- "url": "#",
3079
- "label": "And One last one"
3080
- }
3081
- ]
2960
+ "label": "One more Item"
3082
2961
  },
3083
2962
  {
3084
2963
  "url": "#",
3085
- "label": "Support",
3086
- "items": [
3087
- {
3088
- "url": "#",
3089
- "label": "Level 2 Item"
3090
- },
3091
- {
3092
- "url": "#",
3093
- "label": "Active Item",
3094
- "active": true
3095
- },
3096
- {
3097
- "url": "#",
3098
- "label": "An Item with a longer Label"
3099
- },
3100
- {
3101
- "url": "#",
3102
- "label": "And One last one"
3103
- }
3104
- ]
2964
+ "label": "Last Item"
3105
2965
  }
3106
2966
  ]
3107
2967
  },
@@ -3282,7 +3142,7 @@
3282
3142
  "id": "layout-header--header",
3283
3143
  "group": "Layout/Header",
3284
3144
  "name": "Header",
3285
- "code": "<Header\n logo={{\n alt: 'Systemics Logo',\n height: 40,\n homepageHref: '#',\n src: '/logo.svg',\n srcInverted: '/logo-inverted.svg',\n width: 176\n }}\n navItems={[\n {\n active: true,\n items: [\n {\n label: 'Level 2 Item',\n url: '#'\n },\n {\n active: true,\n label: 'Active Item',\n url: '#'\n },\n {\n label: 'An Item with a longer Label',\n url: '#'\n },\n {\n label: 'And One last one',\n url: '#'\n }\n ],\n label: 'Beamer',\n url: '#'\n },\n {\n items: [\n {\n label: 'Level 2 Item',\n url: '#'\n },\n {\n active: true,\n label: 'Active Item',\n url: '#'\n },\n {\n label: 'An Item with a longer Label',\n url: '#'\n },\n {\n label: 'And One last one',\n url: '#'\n }\n ],\n label: 'Interaktive Displays',\n url: '#'\n },\n {\n items: [\n {\n label: 'Level 2 Item',\n url: '#'\n },\n {\n active: true,\n label: 'Active Item',\n url: '#'\n },\n {\n label: 'An Item with a longer Label',\n url: '#'\n },\n {\n label: 'And One last one',\n url: '#'\n }\n ],\n label: 'Professional Displays',\n url: '#'\n },\n {\n items: [\n {\n label: 'Level 2 Item',\n url: '#'\n },\n {\n active: true,\n label: 'Active Item',\n url: '#'\n },\n {\n label: 'An Item with a longer Label',\n url: '#'\n },\n {\n label: 'And One last one',\n url: '#'\n }\n ],\n label: 'LED Displays',\n url: '#'\n },\n {\n items: [\n {\n label: 'Level 2 Item',\n url: '#'\n },\n {\n active: true,\n label: 'Active Item',\n url: '#'\n },\n {\n label: 'An Item with a longer Label',\n url: '#'\n },\n {\n label: 'And One last one',\n url: '#'\n }\n ],\n label: 'Lösungen',\n url: '#'\n },\n {\n items: [\n {\n label: 'Level 2 Item',\n url: '#'\n },\n {\n active: true,\n label: 'Active Item',\n url: '#'\n },\n {\n label: 'An Item with a longer Label',\n url: '#'\n },\n {\n label: 'And One last one',\n url: '#'\n }\n ],\n label: 'Zubehör',\n url: '#'\n },\n {\n items: [\n {\n label: 'Level 2 Item',\n url: '#'\n },\n {\n active: true,\n label: 'Active Item',\n url: '#'\n },\n {\n label: 'An Item with a longer Label',\n url: '#'\n },\n {\n label: 'And One last one',\n url: '#'\n }\n ],\n label: 'Über Optoma',\n url: '#'\n },\n {\n items: [\n {\n label: 'Level 2 Item',\n url: '#'\n },\n {\n active: true,\n label: 'Active Item',\n url: '#'\n },\n {\n label: 'An Item with a longer Label',\n url: '#'\n },\n {\n label: 'And One last one',\n url: '#'\n }\n ],\n label: 'Support',\n url: '#'\n }\n ]}\n/>",
3145
+ "code": "<Header\n logo={{\n alt: 'Systemics Logo',\n height: 40,\n homepageHref: '#',\n src: '/logo.svg',\n srcInverted: '/logo-inverted.svg',\n width: 176\n }}\n navItems={[\n {\n active: true,\n label: 'Active Item',\n url: '#'\n },\n {\n label: 'Navigation Item',\n url: '#'\n },\n {\n items: [\n {\n label: 'Level 2 Item',\n url: '#'\n },\n {\n active: true,\n label: 'Active Item',\n url: '#'\n },\n {\n label: 'An Item with a longer Label',\n url: '#'\n },\n {\n label: 'And One last one',\n url: '#'\n }\n ],\n label: 'Dropdown',\n url: '#'\n },\n {\n label: 'One more Item',\n url: '#'\n },\n {\n label: 'Last Item',\n url: '#'\n }\n ]}\n/>",
3286
3146
  "args": {
3287
3147
  "logo": {
3288
3148
  "src": "/logo.svg",
@@ -3299,123 +3159,16 @@
3299
3159
  "navItems": [
3300
3160
  {
3301
3161
  "url": "#",
3302
- "label": "Beamer",
3303
- "active": true,
3304
- "items": [
3305
- {
3306
- "url": "#",
3307
- "label": "Level 2 Item"
3308
- },
3309
- {
3310
- "url": "#",
3311
- "label": "Active Item",
3312
- "active": true
3313
- },
3314
- {
3315
- "url": "#",
3316
- "label": "An Item with a longer Label"
3317
- },
3318
- {
3319
- "url": "#",
3320
- "label": "And One last one"
3321
- }
3322
- ]
3323
- },
3324
- {
3325
- "url": "#",
3326
- "label": "Interaktive Displays",
3327
- "items": [
3328
- {
3329
- "url": "#",
3330
- "label": "Level 2 Item"
3331
- },
3332
- {
3333
- "url": "#",
3334
- "label": "Active Item",
3335
- "active": true
3336
- },
3337
- {
3338
- "url": "#",
3339
- "label": "An Item with a longer Label"
3340
- },
3341
- {
3342
- "url": "#",
3343
- "label": "And One last one"
3344
- }
3345
- ]
3346
- },
3347
- {
3348
- "url": "#",
3349
- "label": "Professional Displays",
3350
- "items": [
3351
- {
3352
- "url": "#",
3353
- "label": "Level 2 Item"
3354
- },
3355
- {
3356
- "url": "#",
3357
- "label": "Active Item",
3358
- "active": true
3359
- },
3360
- {
3361
- "url": "#",
3362
- "label": "An Item with a longer Label"
3363
- },
3364
- {
3365
- "url": "#",
3366
- "label": "And One last one"
3367
- }
3368
- ]
3369
- },
3370
- {
3371
- "url": "#",
3372
- "label": "LED Displays",
3373
- "items": [
3374
- {
3375
- "url": "#",
3376
- "label": "Level 2 Item"
3377
- },
3378
- {
3379
- "url": "#",
3380
- "label": "Active Item",
3381
- "active": true
3382
- },
3383
- {
3384
- "url": "#",
3385
- "label": "An Item with a longer Label"
3386
- },
3387
- {
3388
- "url": "#",
3389
- "label": "And One last one"
3390
- }
3391
- ]
3162
+ "label": "Active Item",
3163
+ "active": true
3392
3164
  },
3393
3165
  {
3394
3166
  "url": "#",
3395
- "label": "Lösungen",
3396
- "items": [
3397
- {
3398
- "url": "#",
3399
- "label": "Level 2 Item"
3400
- },
3401
- {
3402
- "url": "#",
3403
- "label": "Active Item",
3404
- "active": true
3405
- },
3406
- {
3407
- "url": "#",
3408
- "label": "An Item with a longer Label"
3409
- },
3410
- {
3411
- "url": "#",
3412
- "label": "And One last one"
3413
- }
3414
- ]
3167
+ "label": "Navigation Item"
3415
3168
  },
3416
3169
  {
3417
3170
  "url": "#",
3418
- "label": "Zubehör",
3171
+ "label": "Dropdown",
3419
3172
  "items": [
3420
3173
  {
3421
3174
  "url": "#",
@@ -3438,49 +3191,11 @@
3438
3191
  },
3439
3192
  {
3440
3193
  "url": "#",
3441
- "label": "Über Optoma",
3442
- "items": [
3443
- {
3444
- "url": "#",
3445
- "label": "Level 2 Item"
3446
- },
3447
- {
3448
- "url": "#",
3449
- "label": "Active Item",
3450
- "active": true
3451
- },
3452
- {
3453
- "url": "#",
3454
- "label": "An Item with a longer Label"
3455
- },
3456
- {
3457
- "url": "#",
3458
- "label": "And One last one"
3459
- }
3460
- ]
3194
+ "label": "One more Item"
3461
3195
  },
3462
3196
  {
3463
3197
  "url": "#",
3464
- "label": "Support",
3465
- "items": [
3466
- {
3467
- "url": "#",
3468
- "label": "Level 2 Item"
3469
- },
3470
- {
3471
- "url": "#",
3472
- "label": "Active Item",
3473
- "active": true
3474
- },
3475
- {
3476
- "url": "#",
3477
- "label": "An Item with a longer Label"
3478
- },
3479
- {
3480
- "url": "#",
3481
- "label": "And One last one"
3482
- }
3483
- ]
3198
+ "label": "Last Item"
3484
3199
  }
3485
3200
  ]
3486
3201
  },
@@ -0,0 +1,6 @@
1
+ declare class Search {
2
+ static identifier: string;
3
+ constructor(element: any);
4
+ on(element: any, type: any, fn: any): () => any;
5
+ }
6
+ export { Search as default };
@@ -0,0 +1,71 @@
1
+ import { define, Component } from '@kickstartds/core/lib/component';
2
+
3
+ const staticPageFindPath = "/pagefind/pagefind.js";
4
+ const parser = new DOMParser();
5
+ class Search extends Component {
6
+ constructor(element) {
7
+ super(element);
8
+ const input = element.querySelector(".dsa-search-bar__input");
9
+ const template = element.querySelector(".dsa\\.search\\.result");
10
+ const target = element.querySelector(".dsa\\.search\\.results");
11
+ // TODO: Arrow Key Navigation
12
+ const clearResults = () => {
13
+ target.textContent = "";
14
+ };
15
+ const showResults = (results) => {
16
+ for (const result of results) {
17
+ const clone = template.cloneNode(true);
18
+ clone.removeAttribute("hidden");
19
+ clone.firstElementChild.setAttribute("href", result.url);
20
+ if (result.title) {
21
+ const title = clone.querySelector(".dsa-search-result__title");
22
+ title.textContent = result.title;
23
+ }
24
+ if (result.excerpt) {
25
+ const doc = parser.parseFromString(result.excerpt, "text/html");
26
+ const excerpt = clone.querySelector(".dsa-search-result__text span");
27
+ excerpt.replaceChildren(...doc.body.childNodes);
28
+ }
29
+ const link = clone.querySelector(".dsa-search-result__link");
30
+ link.textContent = result.url;
31
+ target.appendChild(clone);
32
+ }
33
+ };
34
+ (async () => {
35
+ const pagefind = await import(/* @vite-ignore */ staticPageFindPath);
36
+ await pagefind.init();
37
+ this.on(input, "input", async (event) => {
38
+ if (!pagefind)
39
+ return;
40
+ if (input.value.length) {
41
+ const search = await pagefind.debouncedSearch(input.value);
42
+ if (search) {
43
+ if (search.results.length) {
44
+ // TODO: Pagination / Load More
45
+ const results = await Promise.all(search.results.map((result) => result.data()));
46
+ clearResults();
47
+ showResults(results.map((result) => ({
48
+ title: result.meta.title,
49
+ url: result.url,
50
+ excerpt: result.excerpt,
51
+ })));
52
+ }
53
+ }
54
+ }
55
+ else {
56
+ clearResults();
57
+ }
58
+ });
59
+ })();
60
+ }
61
+ on(element, type, fn) {
62
+ const cleanUp = () => element.removeventListener(type, fn);
63
+ element.addEventListener(type, fn);
64
+ this.onDisconnect(cleanUp);
65
+ return cleanUp;
66
+ }
67
+ }
68
+ Search.identifier = "dsa.search";
69
+ define(Search.identifier, Search);
70
+
71
+ export { Search as default };
@@ -5,9 +5,19 @@ import { FC, PropsWithChildren } from "react";
5
5
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
6
6
  * and run json-schema-to-typescript to regenerate this file.
7
7
  */
8
+ import { HeadlineProps } from "../../HeadlineProps-e1305784.js";
9
+ import { SearchBarProps } from "../../SearchBarProps-26263244.js";
8
10
  import { SearchFilterProps } from "../../SearchFilterProps-2fa6419b.js";
9
11
  import { SearchResultProps } from "../../SearchResultProps-224c2338.js";
10
12
  interface SearchProps {
13
+ /**
14
+ * Referenced component HeadlineProps
15
+ */
16
+ headline?: HeadlineProps;
17
+ /**
18
+ * Referenced component SearchBarProps
19
+ */
20
+ searchBar?: SearchBarProps;
11
21
  /**
12
22
  * Referenced component SearchFilterProps
13
23
  */
@@ -1,10 +1,12 @@
1
- import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
1
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { Section } from '../section/index.js';
3
3
  import { SplitWeighted } from '../split-weighted/index.js';
4
4
  import { SearchFilter } from '../search-filter/index.js';
5
5
  import { SearchResult } from '../search-result/index.js';
6
6
  import { RichText } from '@kickstartds/base/lib/rich-text';
7
7
  import { Pagination } from '../pagination/index.js';
8
+ import { SearchBar } from '../search-bar/index.js';
9
+ import { Headline } from '../headline/index.js';
8
10
  import 'react';
9
11
  import 'classnames';
10
12
  import '@kickstartds/core/lib/react';
@@ -15,26 +17,33 @@ import '../../helpers-12f48df8.js';
15
17
  import 'markdown-to-jsx';
16
18
  import '@kickstartds/base/lib/link';
17
19
  import '@kickstartds/base/lib/icon';
20
+ import '@kickstartds/form/lib/text-field';
21
+ import '@kickstartds/base/lib/headline';
18
22
 
19
- const Search = ({ searchFilter, searchResults, }) => (jsx(Fragment, { children: jsx(Section, { width: "wide", children: jsx(SplitWeighted, { verticalAlign: "sticky", mainLayout: {
20
- minWidth: "narrow",
21
- }, asideLayout: {
22
- gutter: "small",
23
- }, order: {
24
- desktop: "asideFirst",
25
- mobile: "asideFirst",
26
- }, aside: jsxs(Fragment, { children: [jsx(SearchFilter, { ...searchFilter }), jsx(RichText, { text: `Showing 6 out of 18 results` })] }), main: jsxs(Fragment, { children: [searchResults.map((searchResult, index) => (jsx(SearchResult, { ...searchResult }, index))), jsx(Pagination, { pages: [
27
- {
28
- url: "https://example.com/page1",
29
- active: true,
30
- },
31
- {
32
- url: "https://example.com/page2",
33
- },
34
- {
35
- url: "https://example.com/page3",
36
- },
37
- ] })] }) }) }) }));
23
+ const Search = ({ headline, searchBar, searchFilter, searchResults, }) => (jsxs(Fragment, { children: [jsxs(Section, { content: {
24
+ mode: "list",
25
+ gutter: "none",
26
+ }, spaceAfter: "small", children: [jsx(Headline, { ...headline }), jsx(SearchBar, { ...searchBar })] }), jsx(Section, { width: "wide", spaceBefore: "small", content: {
27
+ mode: "list",
28
+ }, children: jsx(SplitWeighted, { verticalAlign: "sticky", mainLayout: {
29
+ minWidth: "narrow",
30
+ }, asideLayout: {
31
+ gutter: "small",
32
+ }, order: {
33
+ desktop: "asideFirst",
34
+ mobile: "asideFirst",
35
+ }, aside: jsxs(Fragment, { children: [jsx(SearchFilter, { ...searchFilter }), jsx(RichText, { text: `Showing 6 out of 18 results` })] }), main: jsxs(Fragment, { children: [searchResults.map((searchResult, index) => (jsx(SearchResult, { ...searchResult }, index))), jsx(Pagination, { pages: [
36
+ {
37
+ url: "https://example.com/page1",
38
+ active: true,
39
+ },
40
+ {
41
+ url: "https://example.com/page2",
42
+ },
43
+ {
44
+ url: "https://example.com/page3",
45
+ },
46
+ ] })] }) }) })] }));
38
47
  Search.displayName = "Search";
39
48
 
40
49
  export { Search };