@kickstartds/ds-agency-premium 1.6.70--canary.45.1746.0 → 1.6.70
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-c760fd2a.d.ts → BlogAsideProps-d9decb7c.d.ts} +5 -5
- package/dist/{BlogAuthorProps-fb0241df.d.ts → BlogAuthorProps-88a11566.d.ts} +2 -7
- package/dist/{BlogOverviewProps-7caa223c.d.ts → BlogOverviewProps-9f207f1c.d.ts} +2 -2
- package/dist/{BlogPostProps-c760fd2a.d.ts → BlogPostProps-d9decb7c.d.ts} +3 -3
- package/dist/{ButtonProps-00ddee3a.d.ts → ButtonProps-03ff6d21.d.ts} +4 -4
- package/dist/{CtaProps-babe4ee6.d.ts → CtaProps-93230a76.d.ts} +11 -21
- package/dist/{FeaturesProps-a9041d97.d.ts → FeaturesProps-e58616a5.d.ts} +4 -9
- package/dist/{FooterProps-a0a104ca.d.ts → FooterProps-171a3067.d.ts} +2 -2
- package/dist/{HeaderProps-72763967.d.ts → HeaderProps-e22382f1.d.ts} +2 -2
- package/dist/{HeroProps-40f6c7f5.d.ts → HeroProps-f704d270.d.ts} +4 -9
- package/dist/{ImageStoryProps-00ddee3a.d.ts → ImageStoryProps-e853e1e7.d.ts} +1 -1
- package/dist/MosaicProps-d52c7151.d.ts +4 -4
- package/dist/{PageProps-7caa223c.d.ts → PageProps-aa29c554.d.ts} +1 -1
- package/dist/{SectionProps-00ddee3a.d.ts → SectionProps-1cfcf6e8.d.ts} +10 -15
- package/dist/{SliderProps-babe4ee6.d.ts → SliderProps-93230a76.d.ts} +4 -4
- package/dist/{StatProps-12a3eae0.d.ts → StatProps-79109ad0.d.ts} +1 -1
- package/dist/StatsProps-bf5ef578.d.ts +1 -1
- package/dist/{TeaserCardProps-994cb119.d.ts → TeaserCardProps-b9c28e78.d.ts} +4 -4
- package/dist/{VideoCurtainProps-a2c0cc7f.d.ts → VideoCurtainProps-6c625a69.d.ts} +5 -5
- package/dist/components/blog-aside/blog-aside.schema.dereffed.json +8 -16
- 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 +1 -1
- package/dist/components/blog-author/blog-author.schema.dereffed.json +4 -12
- package/dist/components/blog-author/index.d.ts +1 -1
- package/dist/components/blog-overview/blog-overview.schema.dereffed.json +89 -182
- package/dist/components/blog-overview/index.d.ts +1 -1
- package/dist/components/blog-post/blog-post.schema.dereffed.json +97 -198
- package/dist/components/blog-post/index.d.ts +1 -1
- package/dist/components/blog-teaser/index.js +7 -5
- package/dist/components/button/button.css +2 -2
- package/dist/components/button/button.schema.dereffed.json +3 -3
- package/dist/components/button/button.schema.json +3 -3
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/button-group/button-group.schema.dereffed.json +3 -3
- package/dist/components/button-group/index.d.ts +1 -1
- package/dist/components/contact/contact.schema.dereffed.json +5 -13
- package/dist/components/contact/contact.schema.json +5 -11
- package/dist/components/contact/index.d.ts +1 -6
- package/dist/components/contact/index.js +1 -1
- package/dist/components/cta/cta.css +56 -44
- package/dist/components/cta/cta.schema.dereffed.json +11 -28
- package/dist/components/cta/cta.schema.json +10 -23
- package/dist/components/cta/index.d.ts +1 -1
- package/dist/components/cta/index.js +26 -25
- package/dist/components/feature/feature.schema.dereffed.json +3 -13
- package/dist/components/feature/feature.schema.json +3 -11
- package/dist/components/feature/index.d.ts +3 -8
- package/dist/components/feature/index.js +3 -2
- package/dist/components/features/features.css +35 -15
- package/dist/components/features/features.schema.dereffed.json +3 -13
- package/dist/components/features/features.schema.json +2 -5
- package/dist/components/features/index.d.ts +1 -1
- package/dist/components/features/index.js +2 -2
- package/dist/components/footer/footer.css +1 -1
- package/dist/components/footer/footer.schema.dereffed.json +12 -12
- package/dist/components/footer/index.d.ts +1 -1
- package/dist/components/footer/index.js +1 -1
- package/dist/components/gallery/gallery.schema.dereffed.json +1 -2
- package/dist/components/gallery/gallery.schema.json +1 -2
- package/dist/components/gallery/index.js +1 -1
- package/dist/components/header/header.css +9 -47
- package/dist/components/header/header.schema.dereffed.json +12 -12
- package/dist/components/header/index.d.ts +1 -1
- package/dist/components/header/index.js +5 -5
- package/dist/components/headline/headline.css +2 -2
- package/dist/components/hero/hero.css +25 -61
- package/dist/components/hero/hero.schema.dereffed.json +3 -9
- package/dist/components/hero/hero.schema.json +2 -8
- package/dist/components/hero/index.d.ts +1 -1
- package/dist/components/hero/index.js +39 -39
- package/dist/components/image-story/image-story.css +2 -5
- package/dist/components/image-story/image-story.schema.dereffed.json +3 -3
- package/dist/components/image-story/index.d.ts +1 -1
- package/dist/components/index/index.d.ts +5 -6
- package/dist/components/logos/index.js +1 -1
- package/dist/components/mosaic/index.js +1 -1
- package/dist/components/mosaic/mosaic.css +1 -1
- package/dist/components/mosaic/mosaic.schema.dereffed.json +3 -3
- 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 +3 -12
- package/dist/components/nav-dropdown/nav-dropdown.schema.dereffed.json +1 -1
- package/dist/components/nav-flyout/index.d.ts +2 -2
- package/dist/components/nav-flyout/index.js +8 -6
- package/dist/components/nav-flyout/nav-flyout.css +15 -29
- package/dist/components/nav-flyout/nav-flyout.schema.dereffed.json +12 -12
- package/dist/components/nav-main/index.d.ts +5 -5
- package/dist/components/nav-main/index.js +2 -0
- package/dist/components/nav-main/nav-main.schema.dereffed.json +15 -15
- 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 +2 -2
- package/dist/components/nav-topbar/nav-topbar.css +2 -15
- package/dist/components/nav-topbar/nav-topbar.schema.dereffed.json +12 -12
- package/dist/components/page/index.d.ts +1 -1
- package/dist/components/page/page.schema.dereffed.json +78 -154
- package/dist/components/page-wrapper/index.js +0 -42
- package/dist/components/page-wrapper/tokens.css +729 -425
- package/dist/components/presets.json +267 -840
- package/dist/components/section/index.d.ts +1 -1
- package/dist/components/section/index.js +3 -11
- package/dist/components/section/section.css +58 -38
- package/dist/components/section/section.schema.dereffed.json +78 -154
- package/dist/components/section/section.schema.json +10 -8
- package/dist/components/settings/settings.schema.dereffed.json +24 -24
- package/dist/components/slider/index.d.ts +1 -1
- package/dist/components/slider/slider.schema.dereffed.json +28 -61
- package/dist/components/split/split.css +2 -2
- package/dist/components/stat/index.d.ts +1 -1
- package/dist/components/stat/index.js +12 -3
- package/dist/components/stat/stat.schema.dereffed.json +6 -5
- package/dist/components/stat/stat.schema.json +2 -2
- package/dist/components/stats/stats.schema.dereffed.json +6 -5
- package/dist/components/teaser-card/index.d.ts +1 -1
- package/dist/components/teaser-card/index.js +9 -9
- package/dist/components/teaser-card/teaser-card.css +47 -67
- package/dist/components/teaser-card/teaser-card.schema.dereffed.json +4 -4
- package/dist/components/teaser-card/teaser-card.schema.json +4 -4
- package/dist/components/testimonials/index.d.ts +1 -1
- package/dist/components/tile/tile.schema.dereffed.json +3 -3
- 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 +4 -12
- package/dist/components/video-curtain/video-curtain.css +29 -52
- package/dist/components/video-curtain/video-curtain.schema.dereffed.json +4 -6
- package/dist/components/video-curtain/video-curtain.schema.json +3 -3
- package/dist/global.css +59 -283
- 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-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-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-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-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-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-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/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-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--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--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--spotlight.png +0 -0
- package/dist/static/img/screenshots/layout-section--stagelights.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/{pages-archetypes--blog-overview.png → 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-landingpage--landingpage.png +0 -0
- package/dist/static/img/screenshots/page-archetypes-overview--overview.png +0 -0
- package/dist/static/img/screenshots/page-archetypes-showcase--showcase.png +0 -0
- package/dist/static/logo-inverted.svg +25 -12
- package/dist/static/logo.svg +25 -12
- package/dist/tokens/IconSprite.js +0 -42
- package/dist/tokens/icon-sprite.html +0 -16
- package/dist/tokens/themes.css +4 -4
- package/dist/tokens/tokens.css +729 -425
- package/dist/tokens/tokens.js +730 -628
- package/package.json +1 -1
- package/dist/EventAppointmentProps-443cd1ce.d.ts +0 -38
- package/dist/EventDetailProps-42a7eebe.d.ts +0 -387
- package/dist/EventLatestTeaserProps-fc9d3281.d.ts +0 -58
- package/dist/EventLocationProps-871bc198.d.ts +0 -41
- package/dist/components/downloads/downloads.css +0 -153
- package/dist/components/downloads/downloads.schema.dereffed.json +0 -55
- package/dist/components/downloads/downloads.schema.json +0 -44
- package/dist/components/downloads/index.d.ts +0 -41
- package/dist/components/downloads/index.js +0 -18
- package/dist/components/event-appointment/event-appointment.css +0 -62
- package/dist/components/event-appointment/event-appointment.schema.dereffed.json +0 -56
- package/dist/components/event-appointment/event-appointment.schema.json +0 -47
- package/dist/components/event-appointment/index.d.ts +0 -7
- package/dist/components/event-appointment/index.js +0 -14
- package/dist/components/event-detail/event-detail.schema.dereffed.json +0 -287
- package/dist/components/event-detail/event-detail.schema.json +0 -74
- package/dist/components/event-detail/index.d.ts +0 -5
- package/dist/components/event-detail/index.js +0 -36
- package/dist/components/event-header/event-header.css +0 -6
- package/dist/components/event-header/event-header.schema.dereffed.json +0 -38
- package/dist/components/event-header/event-header.schema.json +0 -34
- package/dist/components/event-header/index.d.ts +0 -35
- package/dist/components/event-header/index.js +0 -20
- package/dist/components/event-latest/event-latest.css +0 -5
- package/dist/components/event-latest/event-latest.schema.dereffed.json +0 -142
- package/dist/components/event-latest/event-latest.schema.json +0 -46
- package/dist/components/event-latest/index.d.ts +0 -30
- package/dist/components/event-latest/index.js +0 -19
- package/dist/components/event-latest-teaser/event-latest-teaser.css +0 -128
- package/dist/components/event-latest-teaser/event-latest-teaser.schema.dereffed.json +0 -97
- package/dist/components/event-latest-teaser/event-latest-teaser.schema.json +0 -73
- package/dist/components/event-latest-teaser/index.d.ts +0 -8
- package/dist/components/event-latest-teaser/index.js +0 -18
- package/dist/components/event-location/event-location.css +0 -71
- package/dist/components/event-location/event-location.schema.dereffed.json +0 -126
- package/dist/components/event-location/event-location.schema.json +0 -61
- package/dist/components/event-location/index.d.ts +0 -7
- package/dist/components/event-location/index.js +0 -18
- package/dist/components/pagination/index.d.ts +0 -47
- package/dist/components/pagination/index.js +0 -52
- package/dist/components/pagination/pagination.css +0 -66
- package/dist/components/pagination/pagination.schema.dereffed.json +0 -64
- package/dist/components/pagination/pagination.schema.json +0 -57
- 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 +0 -72
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-02.svg +0 -112
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-03.svg +0 -197
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-04.svg +0 -76
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-05.svg +0 -82
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-06.svg +0 -219
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-07.svg +0 -85
- package/dist/static/img/screenshots/components-image--custom-aspect-ratio.png +0 -0
- package/dist/static/img/screenshots/components-image--preset-size.png +0 -0
- package/dist/static/img/screenshots/components-image--responsive-image.png +0 -0
- package/dist/static/img/screenshots/pages-archetypes--blog-post.png +0 -0
- package/dist/static/img/screenshots/pages-archetypes--content.png +0 -0
- package/dist/static/img/screenshots/pages-archetypes--overview.png +0 -0
- package/dist/static/img/screenshots/pages-archetypes--start.png +0 -0
- package/dist/static/logo-dark.svg +0 -13
- package/dist/static/logo-dsa-inverted.svg +0 -26
- package/dist/static/logo-dsa.svg +0 -26
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "http://schema.mydesignsystem.com/event-latest-teaser.schema.json",
|
|
4
|
-
"title": "Event Latest Teaser",
|
|
5
|
-
"description": "Display an event teaser with date, title and location",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"properties": {
|
|
8
|
-
"date": {
|
|
9
|
-
"title": "Date",
|
|
10
|
-
"description": "The date of the event",
|
|
11
|
-
"type": "string",
|
|
12
|
-
"format": "date",
|
|
13
|
-
"examples": [
|
|
14
|
-
"12.30.2022"
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
"calendar": {
|
|
18
|
-
"type": "object",
|
|
19
|
-
"title": "Calendar",
|
|
20
|
-
"description": "Calendar icon to display the date",
|
|
21
|
-
"properties": {
|
|
22
|
-
"month": {
|
|
23
|
-
"title": "Month",
|
|
24
|
-
"description": "The month of the event",
|
|
25
|
-
"type": "string",
|
|
26
|
-
"examples": [
|
|
27
|
-
"Dec"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
"day": {
|
|
31
|
-
"title": "Day",
|
|
32
|
-
"description": "The day of the event",
|
|
33
|
-
"type": "string",
|
|
34
|
-
"examples": [
|
|
35
|
-
"30"
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"additionalProperties": false
|
|
40
|
-
},
|
|
41
|
-
"title": {
|
|
42
|
-
"title": "Headline",
|
|
43
|
-
"description": "Title of the event",
|
|
44
|
-
"type": "string",
|
|
45
|
-
"format": "markdown",
|
|
46
|
-
"examples": [
|
|
47
|
-
"This is a event teaser title"
|
|
48
|
-
]
|
|
49
|
-
},
|
|
50
|
-
"location": {
|
|
51
|
-
"title": "Location",
|
|
52
|
-
"description": "Location of the event",
|
|
53
|
-
"type": "string",
|
|
54
|
-
"format": "markdown",
|
|
55
|
-
"examples": [
|
|
56
|
-
"This is a location"
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
"url": {
|
|
60
|
-
"title": "URL",
|
|
61
|
-
"description": "The event entry URL to link",
|
|
62
|
-
"type": "string",
|
|
63
|
-
"format": "uri",
|
|
64
|
-
"examples": [
|
|
65
|
-
"https://example.com"
|
|
66
|
-
]
|
|
67
|
-
},
|
|
68
|
-
"cta": {
|
|
69
|
-
"title": "Call to Action",
|
|
70
|
-
"description": "Text for the call to action",
|
|
71
|
-
"type": "string",
|
|
72
|
-
"examples": [
|
|
73
|
-
"Show event"
|
|
74
|
-
]
|
|
75
|
-
},
|
|
76
|
-
"ariaLabel": {
|
|
77
|
-
"title": "ARIA Label",
|
|
78
|
-
"description": "ARIA label for accessibility",
|
|
79
|
-
"type": "string",
|
|
80
|
-
"examples": [
|
|
81
|
-
"Event teaser for "
|
|
82
|
-
]
|
|
83
|
-
},
|
|
84
|
-
"className": {
|
|
85
|
-
"type": "string"
|
|
86
|
-
},
|
|
87
|
-
"type": {
|
|
88
|
-
"const": "event-latest-teaser"
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
"additionalProperties": false,
|
|
92
|
-
"required": [
|
|
93
|
-
"title",
|
|
94
|
-
"date",
|
|
95
|
-
"location"
|
|
96
|
-
]
|
|
97
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "http://schema.mydesignsystem.com/event-latest-teaser.schema.json",
|
|
4
|
-
"title": "Event Latest Teaser",
|
|
5
|
-
"description": "Display an event teaser with date, title and location",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"properties": {
|
|
8
|
-
"date": {
|
|
9
|
-
"title": "Date",
|
|
10
|
-
"description": "The date of the event",
|
|
11
|
-
"type": "string",
|
|
12
|
-
"format": "date",
|
|
13
|
-
"examples": ["12.30.2022"]
|
|
14
|
-
},
|
|
15
|
-
"calendar": {
|
|
16
|
-
"type": "object",
|
|
17
|
-
"title": "Calendar",
|
|
18
|
-
"description": "Calendar icon to display the date",
|
|
19
|
-
"properties": {
|
|
20
|
-
"month": {
|
|
21
|
-
"title": "Month",
|
|
22
|
-
"description": "The month of the event",
|
|
23
|
-
"type": "string",
|
|
24
|
-
"examples": ["Dec"]
|
|
25
|
-
},
|
|
26
|
-
"day": {
|
|
27
|
-
"title": "Day",
|
|
28
|
-
"description": "The day of the event",
|
|
29
|
-
"type": "string",
|
|
30
|
-
"examples": ["30"]
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"title": {
|
|
35
|
-
"title": "Headline",
|
|
36
|
-
"description": "Title of the event",
|
|
37
|
-
"type": "string",
|
|
38
|
-
"format": "markdown",
|
|
39
|
-
"examples": ["This is a event teaser title"]
|
|
40
|
-
},
|
|
41
|
-
"location": {
|
|
42
|
-
"title": "Location",
|
|
43
|
-
"description": "Location of the event",
|
|
44
|
-
"type": "string",
|
|
45
|
-
"format": "markdown",
|
|
46
|
-
"examples": ["This is a location"]
|
|
47
|
-
},
|
|
48
|
-
"url": {
|
|
49
|
-
"title": "URL",
|
|
50
|
-
"description": "The event entry URL to link",
|
|
51
|
-
"type": "string",
|
|
52
|
-
"format": "uri",
|
|
53
|
-
"examples": ["https://example.com"]
|
|
54
|
-
},
|
|
55
|
-
"cta": {
|
|
56
|
-
"title": "Call to Action",
|
|
57
|
-
"description": "Text for the call to action",
|
|
58
|
-
"type": "string",
|
|
59
|
-
"examples": ["Show event"]
|
|
60
|
-
},
|
|
61
|
-
"ariaLabel": {
|
|
62
|
-
"title": "ARIA Label",
|
|
63
|
-
"description": "ARIA label for accessibility",
|
|
64
|
-
"type": "string",
|
|
65
|
-
"examples": ["Event teaser for "]
|
|
66
|
-
},
|
|
67
|
-
"className": {
|
|
68
|
-
"type": "string"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"additionalProperties": false,
|
|
72
|
-
"required": ["title", "date", "location"]
|
|
73
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { HTMLAttributes } from "react";
|
|
3
|
-
import { EventLatestTeaserProps } from "../../EventLatestTeaserProps-fc9d3281.js";
|
|
4
|
-
declare const EventLatestTeaserContextDefault: import("react").ForwardRefExoticComponent<EventLatestTeaserProps & HTMLAttributes<HTMLAnchorElement> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
5
|
-
declare const EventLatestTeaserContext: import("react").Context<import("react").ForwardRefExoticComponent<EventLatestTeaserProps & HTMLAttributes<HTMLAnchorElement> & import("react").RefAttributes<HTMLAnchorElement>>>;
|
|
6
|
-
declare const EventLatestTeaser: import("react").ForwardRefExoticComponent<EventLatestTeaserProps & HTMLAttributes<HTMLAnchorElement> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
7
|
-
export type { EventLatestTeaserProps };
|
|
8
|
-
export { EventLatestTeaserContextDefault, EventLatestTeaserContext, EventLatestTeaser };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import "./event-latest-teaser.css";
|
|
2
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
-
import classnames from 'classnames';
|
|
4
|
-
import { forwardRef, createContext, useContext } from 'react';
|
|
5
|
-
import { Icon } from '@kickstartds/base/lib/icon';
|
|
6
|
-
import { Container } from '@kickstartds/core/lib/container';
|
|
7
|
-
|
|
8
|
-
const EventLatestTeaserContextDefault = forwardRef(({ date, title, cta, calendar, url, location, ariaLabel, className, ...rest }, ref) => {
|
|
9
|
-
return (jsx(Container, { name: "event-latest-teaser", children: jsxs("a", { className: classnames(className, "dsa-event-latest-teaser"), ...rest, href: url, ref: ref, "aria-label": ariaLabel, children: [jsxs("span", { className: "dsa-event-latest-teaser__content", children: [jsxs("span", { className: "dsa-event-latest-teaser-calendar", children: [jsx("span", { className: "dsa-event-latest-teaser-calendar__day", children: calendar.day }), jsx("span", { className: "dsa-event-latest-teaser-calendar__month", children: calendar.month })] }), jsxs("span", { className: "dsa-event-latest-teaser__text", children: [jsx("span", { className: "dsa-event-latest-teaser__title", children: title }), jsxs("span", { className: "dsa-event-latest-teaser__infos", children: [jsxs("span", { className: "dsa-event-latest-teaser__info", children: [jsx(Icon, { "aria-hidden": true, icon: "date" }), date] }), jsxs("span", { className: "dsa-event-latest-teaser__info", children: [jsx(Icon, { "aria-hidden": true, icon: "map-pin" }), location] })] })] })] }), jsxs("span", { className: "dsa-event-latest-teaser__cta", children: [jsx("span", { children: cta }), jsx(Icon, { "aria-hidden": true, icon: "chevron-right" })] })] }) }));
|
|
10
|
-
});
|
|
11
|
-
const EventLatestTeaserContext = createContext(EventLatestTeaserContextDefault);
|
|
12
|
-
const EventLatestTeaser = forwardRef((props, ref) => {
|
|
13
|
-
const Component = useContext(EventLatestTeaserContext);
|
|
14
|
-
return jsx(Component, { ...props, ref: ref });
|
|
15
|
-
});
|
|
16
|
-
EventLatestTeaser.displayName = "EventLatestTeaser";
|
|
17
|
-
|
|
18
|
-
export { EventLatestTeaser, EventLatestTeaserContext, EventLatestTeaserContextDefault };
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
.l-container--event-location {
|
|
2
|
-
/* stylelint-disable-next-line property-no-unknown */
|
|
3
|
-
container-name: event-location;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.l-container--event-location + .l-container--event-location {
|
|
7
|
-
margin-top: var(--ks-spacing-stack-m);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.dsa-event-location {
|
|
11
|
-
--dsa-event-location__icon--size: calc(var(--ks-font-size-copy-m) * var(--ks-line-height-copy-m));
|
|
12
|
-
flex-wrap: wrap;
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: row;
|
|
15
|
-
justify-content: space-between;
|
|
16
|
-
gap: var(--ks-spacing-stack-s) var(--ks-spacing-inline-m);
|
|
17
|
-
background-color: var(--ks-background-color-accent);
|
|
18
|
-
padding: var(--ks-spacing-inset-m);
|
|
19
|
-
border-radius: var(--ks-border-radius-surface);
|
|
20
|
-
--dsa-event-location__info--flex-basis: 280px;
|
|
21
|
-
--dsa-event-location__appointments--min-width: 12em;
|
|
22
|
-
}
|
|
23
|
-
.dsa-event-location--spacious {
|
|
24
|
-
--dsa-event-location__info--flex-basis: 50%;
|
|
25
|
-
--dsa-event-location__appointments--min-width: 20em;
|
|
26
|
-
}
|
|
27
|
-
.dsa-event-location__info {
|
|
28
|
-
display: flex;
|
|
29
|
-
gap: var(--ks-spacing-inline-xs);
|
|
30
|
-
flex-shrink: 1;
|
|
31
|
-
flex-grow: 1;
|
|
32
|
-
flex-basis: var(--dsa-event-location__info--flex-basis, 280px);
|
|
33
|
-
}
|
|
34
|
-
.dsa-event-location__icon {
|
|
35
|
-
color: var(--ks-text-color-primary);
|
|
36
|
-
width: var(--dsa-event-location__icon--size);
|
|
37
|
-
height: var(--dsa-event-location__icon--size);
|
|
38
|
-
flex-shrink: 0;
|
|
39
|
-
}
|
|
40
|
-
.dsa-event-location__text {
|
|
41
|
-
display: flex;
|
|
42
|
-
flex-direction: column;
|
|
43
|
-
gap: var(--ks-spacing-stack-s);
|
|
44
|
-
}
|
|
45
|
-
.dsa-event-location__name {
|
|
46
|
-
font: var(--ks-font-interface-m);
|
|
47
|
-
color: var(--dsa-topic--color);
|
|
48
|
-
font-weight: var(--dsa-topic--font-weight);
|
|
49
|
-
}
|
|
50
|
-
.dsa-event-location__links {
|
|
51
|
-
display: flex;
|
|
52
|
-
flex-direction: column;
|
|
53
|
-
justify-content: flex-end;
|
|
54
|
-
gap: var(--ks-spacing-xxs);
|
|
55
|
-
}
|
|
56
|
-
.dsa-event-location__link {
|
|
57
|
-
width: fit-content;
|
|
58
|
-
font: var(--ks-font-interface-s);
|
|
59
|
-
}
|
|
60
|
-
.dsa-event-location__appointments {
|
|
61
|
-
display: grid;
|
|
62
|
-
justify-content: flex-end;
|
|
63
|
-
gap: var(--ks-spacing-stack-s);
|
|
64
|
-
flex-grow: 100;
|
|
65
|
-
flex-shrink: 0;
|
|
66
|
-
grid-template-columns: repeat(auto-fill, minmax(min(var(--dsa-event-location__appointments--min-width, 12em), 100%), 1fr));
|
|
67
|
-
font: var(--ks-font-interface-s);
|
|
68
|
-
}
|
|
69
|
-
.dsa-event-location .l-container--rich-text {
|
|
70
|
-
container-type: normal;
|
|
71
|
-
}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "http://schema.mydesignsystem.com/event-location.schema.json",
|
|
4
|
-
"title": "Event Location",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"dates": {
|
|
8
|
-
"title": "Dates",
|
|
9
|
-
"description": "List of dates of the event",
|
|
10
|
-
"type": "array",
|
|
11
|
-
"items": {
|
|
12
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
13
|
-
"$id": "http://schema.mydesignsystem.com/event-appointment.schema.json",
|
|
14
|
-
"title": "Event Appointment",
|
|
15
|
-
"type": "object",
|
|
16
|
-
"properties": {
|
|
17
|
-
"date": {
|
|
18
|
-
"title": "Date",
|
|
19
|
-
"description": "Date of the appointment",
|
|
20
|
-
"type": "string",
|
|
21
|
-
"format": "date",
|
|
22
|
-
"examples": [
|
|
23
|
-
"2025-09-18"
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
"time": {
|
|
27
|
-
"title": "Time",
|
|
28
|
-
"description": "Time of the appointment",
|
|
29
|
-
"type": "string",
|
|
30
|
-
"examples": [
|
|
31
|
-
"09:00 – 17:00"
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
|
-
"label": {
|
|
35
|
-
"title": "CTA Label",
|
|
36
|
-
"description": "Label for the call to action button",
|
|
37
|
-
"type": "string",
|
|
38
|
-
"examples": [
|
|
39
|
-
"Register"
|
|
40
|
-
]
|
|
41
|
-
},
|
|
42
|
-
"url": {
|
|
43
|
-
"title": "URL",
|
|
44
|
-
"description": "URL for the call to action button",
|
|
45
|
-
"type": "string",
|
|
46
|
-
"format": "uri",
|
|
47
|
-
"default": "#"
|
|
48
|
-
},
|
|
49
|
-
"newTab": {
|
|
50
|
-
"title": "Open in New Tab",
|
|
51
|
-
"description": "Whether the link should open in a new tab",
|
|
52
|
-
"type": "boolean",
|
|
53
|
-
"default": true
|
|
54
|
-
},
|
|
55
|
-
"ariaLabel": {
|
|
56
|
-
"title": "Aria Label",
|
|
57
|
-
"description": "Aria label for the link",
|
|
58
|
-
"type": "string",
|
|
59
|
-
"default": "Event Appointment"
|
|
60
|
-
},
|
|
61
|
-
"type": {
|
|
62
|
-
"const": "event-appointment"
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
"additionalProperties": false
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"locationName": {
|
|
69
|
-
"title": "Location Name",
|
|
70
|
-
"description": "Name of the event location",
|
|
71
|
-
"type": "string",
|
|
72
|
-
"examples": [
|
|
73
|
-
"Berlin Congress Center"
|
|
74
|
-
]
|
|
75
|
-
},
|
|
76
|
-
"displayMode": {
|
|
77
|
-
"title": "Display Mode",
|
|
78
|
-
"description": "Spacious is recommended for 1-2 appointments, Compact for more than 2.",
|
|
79
|
-
"type": "string",
|
|
80
|
-
"enum": [
|
|
81
|
-
"spacious",
|
|
82
|
-
"compact"
|
|
83
|
-
],
|
|
84
|
-
"default": "spacious"
|
|
85
|
-
},
|
|
86
|
-
"address": {
|
|
87
|
-
"title": "Address",
|
|
88
|
-
"description": "Address of the appointment",
|
|
89
|
-
"type": "string",
|
|
90
|
-
"examples": [
|
|
91
|
-
"Berlin Congress Center<br />Alexanderplatz 1<br />10178 Berlin"
|
|
92
|
-
]
|
|
93
|
-
},
|
|
94
|
-
"links": {
|
|
95
|
-
"title": "Links",
|
|
96
|
-
"description": "Links related to the event location",
|
|
97
|
-
"type": "array",
|
|
98
|
-
"items": {
|
|
99
|
-
"type": "object",
|
|
100
|
-
"properties": {
|
|
101
|
-
"url": {
|
|
102
|
-
"type": "string",
|
|
103
|
-
"format": "uri"
|
|
104
|
-
},
|
|
105
|
-
"label": {
|
|
106
|
-
"type": "string"
|
|
107
|
-
},
|
|
108
|
-
"newTab": {
|
|
109
|
-
"type": "boolean",
|
|
110
|
-
"default": true,
|
|
111
|
-
"description": "Open link in a new tab"
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
"required": [
|
|
115
|
-
"url",
|
|
116
|
-
"label"
|
|
117
|
-
],
|
|
118
|
-
"additionalProperties": false
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
"type": {
|
|
122
|
-
"const": "event-location"
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
"additionalProperties": false
|
|
126
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "http://schema.mydesignsystem.com/event-location.schema.json",
|
|
4
|
-
"title": "Event Location",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"dates": {
|
|
8
|
-
"title": "Dates",
|
|
9
|
-
"description": "List of dates of the event",
|
|
10
|
-
"type": "array",
|
|
11
|
-
"items": {
|
|
12
|
-
"$ref": "http://schema.mydesignsystem.com/event-appointment.schema.json"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"locationName": {
|
|
16
|
-
"title": "Location Name",
|
|
17
|
-
"description": "Name of the event location",
|
|
18
|
-
"type": "string",
|
|
19
|
-
"examples": ["Berlin Congress Center"]
|
|
20
|
-
},
|
|
21
|
-
"displayMode": {
|
|
22
|
-
"title": "Display Mode",
|
|
23
|
-
"description": "Spacious is recommended for 1-2 appointments, Compact for more than 2.",
|
|
24
|
-
"type": "string",
|
|
25
|
-
"enum": ["spacious", "compact"],
|
|
26
|
-
"default": "spacious"
|
|
27
|
-
},
|
|
28
|
-
"address": {
|
|
29
|
-
"title": "Address",
|
|
30
|
-
"description": "Address of the appointment",
|
|
31
|
-
"type": "string",
|
|
32
|
-
"examples": [
|
|
33
|
-
"Berlin Congress Center<br />Alexanderplatz 1<br />10178 Berlin"
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
|
-
"links": {
|
|
37
|
-
"title": "Links",
|
|
38
|
-
"description": "Links related to the event location",
|
|
39
|
-
"type": "array",
|
|
40
|
-
"items": {
|
|
41
|
-
"type": "object",
|
|
42
|
-
"properties": {
|
|
43
|
-
"url": {
|
|
44
|
-
"type": "string",
|
|
45
|
-
"format": "uri"
|
|
46
|
-
},
|
|
47
|
-
"label": {
|
|
48
|
-
"type": "string"
|
|
49
|
-
},
|
|
50
|
-
"newTab": {
|
|
51
|
-
"type": "boolean",
|
|
52
|
-
"default": true,
|
|
53
|
-
"description": "Open link in a new tab"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"required": ["url", "label"]
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"additionalProperties": false
|
|
61
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { EventLocationProps } from "../../EventLocationProps-871bc198.js";
|
|
3
|
-
declare const EventLocationContextDefault: import("react").ForwardRefExoticComponent<EventLocationProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
|
-
declare const EventLocationContext: import("react").Context<import("react").ForwardRefExoticComponent<EventLocationProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
5
|
-
declare const EventLocation: import("react").ForwardRefExoticComponent<EventLocationProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
-
export type { EventLocationProps };
|
|
7
|
-
export { EventLocationContextDefault, EventLocationContext, EventLocation };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import "./event-location.css";
|
|
2
|
-
import { forwardRef, createElement, createContext, useContext } from 'react';
|
|
3
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
|
-
import classnames from 'classnames';
|
|
5
|
-
import { RichText } from '@kickstartds/base/lib/rich-text';
|
|
6
|
-
import { Icon } from '@kickstartds/base/lib/icon';
|
|
7
|
-
import { EventAppointment } from '../event-appointment/index.js';
|
|
8
|
-
import { Container } from '@kickstartds/core/lib/container';
|
|
9
|
-
|
|
10
|
-
const EventLocationContextDefault = forwardRef(({ locationName, address, dates, links, displayMode, ...rest }, ref) => (jsx(Container, { name: "event-location", children: jsxs("div", { className: classnames("dsa-event-location", displayMode === "spacious" && `dsa-event-location--spacious`), ...rest, ref: ref, children: [address && (jsxs("div", { className: "dsa-event-location__info ", children: [jsx(Icon, { className: "dsa-event-location__icon", icon: "map-pin", "aria-hidden": true }), jsxs("div", { className: "dsa-event-location__text", children: [jsx("span", { className: "sr-only", children: "Address:" }), jsxs("address", { className: "dsa-event-location__address", children: [locationName && (jsx("span", { className: "dsa-event-location__name", children: locationName })), address && jsx(RichText, { text: address })] }), links && links.length > 0 && (jsx("div", { className: "dsa-event-location__links", children: links.map((link, index) => (jsx("a", { href: link.url, target: link.newTab ? "_blank" : "_self", className: "dsa-event-location__link", children: link.label }, index))) }))] })] })), dates && dates.length > 0 && (jsxs("div", { className: "dsa-event-location__appointments", children: [jsx("span", { className: "sr-only", children: "Appointments:" }), dates.map((item, index) => (createElement(EventAppointment, { ...item, key: index })))] }))] }) })));
|
|
11
|
-
const EventLocationContext = createContext(EventLocationContextDefault);
|
|
12
|
-
const EventLocation = forwardRef((props, ref) => {
|
|
13
|
-
const Component = useContext(EventLocationContext);
|
|
14
|
-
return jsx(Component, { ...props, ref: ref });
|
|
15
|
-
});
|
|
16
|
-
EventLocation.displayName = "EventLocation";
|
|
17
|
-
|
|
18
|
-
export { EventLocation, EventLocationContext, EventLocationContextDefault };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { HTMLAttributes } from "react";
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* This file was automatically generated by json-schema-to-typescript.
|
|
6
|
-
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
7
|
-
* and run json-schema-to-typescript to regenerate this file.
|
|
8
|
-
*/
|
|
9
|
-
interface PaginationProps {
|
|
10
|
-
ariaLabels?: {
|
|
11
|
-
/**
|
|
12
|
-
* Aria label for the previous page link
|
|
13
|
-
*/
|
|
14
|
-
previousPage?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Aria label for the next page link
|
|
17
|
-
*/
|
|
18
|
-
nextPage?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Aria label for the link to skip to the first page
|
|
21
|
-
*/
|
|
22
|
-
skipToFirstPage?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Aria label for the link to skip to the last page
|
|
25
|
-
*/
|
|
26
|
-
skipToLastPage?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Aria label for the link to go to a specific page (will be placed before the page number)
|
|
29
|
-
*/
|
|
30
|
-
goToPage?: string;
|
|
31
|
-
};
|
|
32
|
-
pages?: {
|
|
33
|
-
/**
|
|
34
|
-
* The URL to the page
|
|
35
|
-
*/
|
|
36
|
-
url: string;
|
|
37
|
-
/**
|
|
38
|
-
* Indicates if the page is currently active
|
|
39
|
-
*/
|
|
40
|
-
active?: boolean;
|
|
41
|
-
}[];
|
|
42
|
-
}
|
|
43
|
-
declare const PaginationContextDefault: import("react").ForwardRefExoticComponent<PaginationProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
44
|
-
declare const PaginationContext: import("react").Context<import("react").ForwardRefExoticComponent<PaginationProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
45
|
-
declare const Pagination: import("react").ForwardRefExoticComponent<PaginationProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
46
|
-
export type { PaginationProps };
|
|
47
|
-
export { PaginationContextDefault, PaginationContext, Pagination };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import "./pagination.css";
|
|
2
|
-
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
3
|
-
import classnames from 'classnames';
|
|
4
|
-
import { forwardRef, createContext, useContext } from 'react';
|
|
5
|
-
import { Icon } from '@kickstartds/base/lib/icon';
|
|
6
|
-
import { Link } from '@kickstartds/base/lib/link';
|
|
7
|
-
|
|
8
|
-
const PaginationContextDefault = forwardRef(({ pages, ariaLabels }, ref) => {
|
|
9
|
-
return (jsxs("div", { className: "dsa-pagination", ref: ref, children: [pages.findIndex((page) => page.active) !== 0 && (jsxs(Fragment, { children: [jsx(Link, { "aria-label": ariaLabels.skipToFirstPage || "Skip to first page", className: "dsa-pagination__link dsa-pagination__link--icon dsa-pagination__link--skip-back", href: pages[0]?.url, children: jsx(Icon, { icon: "skip-back" }) }), jsx(Link, { "aria-label": ariaLabels.previousPage || "Go to previous page", className: "dsa-pagination__link dsa-pagination__link--icon dsa-pagination__link--prev", href: (() => {
|
|
10
|
-
const activeIndex = pages.findIndex((page) => page.active);
|
|
11
|
-
// Use the url of the next item after the active one, or "#" if at the end
|
|
12
|
-
return pages[activeIndex - 1]?.url || "#";
|
|
13
|
-
})(), children: jsx(Icon, { icon: "chevron-left" }) })] })), (() => {
|
|
14
|
-
const activeIndex = pages.findIndex((page) => page.active);
|
|
15
|
-
let lastRenderedIndex = -1;
|
|
16
|
-
const result = [];
|
|
17
|
-
pages.forEach((page, index) => {
|
|
18
|
-
const isFirst = index === 0;
|
|
19
|
-
const isLast = index === pages.length - 1;
|
|
20
|
-
const isActive = page.active;
|
|
21
|
-
const isBeforeActive = index === activeIndex - 1;
|
|
22
|
-
const isAfterActive = index === activeIndex + 1;
|
|
23
|
-
const shouldRender = isFirst || isLast || isActive || isBeforeActive || isAfterActive;
|
|
24
|
-
if (!shouldRender) {
|
|
25
|
-
if (index - lastRenderedIndex > 1 &&
|
|
26
|
-
(result.length === 0 ||
|
|
27
|
-
result[result.length - 1]?.type !== "div" ||
|
|
28
|
-
result[result.length - 1]?.props?.className !==
|
|
29
|
-
"dsa-pagination__placeholder")) {
|
|
30
|
-
result.push(jsx("div", { className: "dsa-pagination__placeholder", children: jsx("span", { children: "\u2026" }) }, `dsa-pagination__placeholder-${index}`));
|
|
31
|
-
}
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
result.push(jsx(Link, { className: classnames("dsa-pagination__link", page.active && "dsa-pagination__link--active"), "aria-label": `${ariaLabels.goToPage} ${index + 1}` ||
|
|
35
|
-
`Go to page ${index + 1}`, href: page.url, children: (index + 1).toString() }, index));
|
|
36
|
-
lastRenderedIndex = index;
|
|
37
|
-
});
|
|
38
|
-
return result;
|
|
39
|
-
})(), pages.findIndex((page) => page.active) !== pages.length - 1 && (jsxs(Fragment, { children: [jsx(Link, { className: "dsa-pagination__link dsa-pagination__link--icon dsa-pagination__link--next", "aria-label": ariaLabels.nextPage || "Go to next page", href: (() => {
|
|
40
|
-
const activeIndex = pages.findIndex((page) => page.active);
|
|
41
|
-
// Use the url of the next item after the active one, or "#" if at the end
|
|
42
|
-
return pages[activeIndex + 1]?.url || "#";
|
|
43
|
-
})(), children: jsx(Icon, { icon: "chevron-right" }) }), jsx(Link, { "aria-label": ariaLabels.skipToLastPage || "Skip to last page", className: "dsa-pagination__link dsa-pagination__link--icon dsa-pagination__link--skip-forward", href: pages[pages.length - 1]?.url, children: jsx(Icon, { icon: "skip-forward" }) })] }))] }));
|
|
44
|
-
});
|
|
45
|
-
const PaginationContext = createContext(PaginationContextDefault);
|
|
46
|
-
const Pagination = forwardRef((props, ref) => {
|
|
47
|
-
const Component = useContext(PaginationContext);
|
|
48
|
-
return jsx(Component, { ...props, ref: ref });
|
|
49
|
-
});
|
|
50
|
-
Pagination.displayName = "Pagination";
|
|
51
|
-
|
|
52
|
-
export { Pagination, PaginationContext, PaginationContextDefault };
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
.dsa-pagination {
|
|
2
|
-
--dsa-pagination--gap: var(--ks-spacing-stack-xs);
|
|
3
|
-
--dsa-pagination--background: transparent;
|
|
4
|
-
--dsa-pagination--background_hover: var(--ks-color-fg-alpha-8);
|
|
5
|
-
--dsa-pagination--color: var(--ks-text-color-interface-interactive);
|
|
6
|
-
--dsa-pagination--color_hover: var(--ks-text-color-interface-interactive);
|
|
7
|
-
--dsa-pagination--border-radius: var(--ks-border-radius-control);
|
|
8
|
-
--dsa-pagination--border: var(--ks-border-width-default) solid var(--ks-border-color-interface-interactive);
|
|
9
|
-
--dsa-pagination--width: 3.75em;
|
|
10
|
-
--dsa-pagination--font: var(--ks-font-interface-s);
|
|
11
|
-
--dsa-pagination--padding: 0.5em;
|
|
12
|
-
--dsa-pagination__icon--size: 1.25em;
|
|
13
|
-
--dsa-pagination--background_active: var(--ks-background-color-primary-interactive);
|
|
14
|
-
--dsa-pagination--background_active_hover: var(--ks-background-color-primary-interactive-hover);
|
|
15
|
-
--dsa-pagination--color_active: var(--dsa-text-color-on-primary);
|
|
16
|
-
--dsa-pagination--color_active_hover: var(--dsa-text-color-on-primary);
|
|
17
|
-
}
|
|
18
|
-
@media (min-width: 768px) {
|
|
19
|
-
.dsa-pagination {
|
|
20
|
-
--dsa-pagination--border: none;
|
|
21
|
-
--dsa-pagination--width: 3em;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.dsa-pagination {
|
|
26
|
-
display: flex;
|
|
27
|
-
gap: var(--dsa-pagination--gap, var(--ks-spacing-stack-xs));
|
|
28
|
-
flex-wrap: wrap;
|
|
29
|
-
justify-content: center;
|
|
30
|
-
}
|
|
31
|
-
.dsa-pagination__link, .dsa-pagination__placeholder {
|
|
32
|
-
--g-link--background: var(--dsa-pagination--background, transparent);
|
|
33
|
-
--g-link--background-hover: var(--dsa-pagination--background_hover, var(--ks-color-fg-alpha-8));
|
|
34
|
-
--g-link--color: var(--dsa-pagination--color, var(--ks-text-color-interface-interactive));
|
|
35
|
-
--g-link--color-hover: var(--dsa-pagination--color_hover, var(--ks-text-color-interface-interactive));
|
|
36
|
-
--g-link--border-radius: var(--dsa-pagination--border-radius, var(--ks-border-radius-control));
|
|
37
|
-
border: var(--dsa-pagination--border, var(--ks-border-width-default) solid var(--ks-border-color-interface-interactive));
|
|
38
|
-
border-radius: var(--dsa-pagination--border-radius, var(--ks-border-radius-control));
|
|
39
|
-
width: var(--dsa-pagination--width, 4em);
|
|
40
|
-
font: var(--dsa-pagination--font, var(--ks-font-interface-s));
|
|
41
|
-
line-height: 1;
|
|
42
|
-
display: flex;
|
|
43
|
-
align-items: center;
|
|
44
|
-
justify-content: center;
|
|
45
|
-
padding: var(--dsa-pagination--padding, 0.5em);
|
|
46
|
-
aspect-ratio: 1;
|
|
47
|
-
}
|
|
48
|
-
.dsa-pagination__link--icon .icon, .dsa-pagination__placeholder--icon .icon {
|
|
49
|
-
width: var(--dsa-pagination__icon--size, 1.25em);
|
|
50
|
-
height: var(--dsa-pagination__icon--size, 1.25em);
|
|
51
|
-
}
|
|
52
|
-
.dsa-pagination__link--active, .dsa-pagination__placeholder--active {
|
|
53
|
-
--g-link--background: var(--dsa-pagination--background_active, var(--ks-background-color-primary-interactive));
|
|
54
|
-
--g-link--background-hover: var(
|
|
55
|
-
--dsa-pagination--background_active,
|
|
56
|
-
var(--ks-background-color-primary-interactive-hover)
|
|
57
|
-
);
|
|
58
|
-
--g-link--color: var(--dsa-pagination--color_active, var(--dsa-text-color-on-primary));
|
|
59
|
-
--g-link--color-hover: var(--dsa-pagination--color_active_hover, var(--dsa-text-color-on-primary));
|
|
60
|
-
}
|
|
61
|
-
.dsa-pagination__placeholder {
|
|
62
|
-
line-height: 0.25;
|
|
63
|
-
}
|
|
64
|
-
.dsa-pagination__placeholder span {
|
|
65
|
-
transform: translateY(-0.15em);
|
|
66
|
-
}
|