hr-design-system-handlebars 1.11.12 → 1.12.1
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/.storybook/main.js +9 -0
- package/.storybook/manager.js +18 -18
- package/.storybook/preview.js +9 -1
- package/CHANGELOG.md +25 -0
- package/README.md +13 -2
- package/build/handlebars/handlebars.js +1 -1
- package/build/scripts/build.js +1 -1
- package/config.js +1 -0
- package/dist/assets/index.css +225 -189
- package/dist/views/components/base/image/icon.hbs +1 -1
- package/dist/views/components/base/link.hbs +11 -1
- package/dist/views/components/base/link_open.hbs +12 -13
- package/dist/views/components/base/link_v2.hbs +14 -0
- package/dist/views/components/button/button.hbs +9 -24
- package/dist/views/components/button/components/button_icon.hbs +2 -1
- package/dist/views/components/button/components/button_label.hbs +1 -1
- package/dist/views/components/button/link_button.hbs +6 -0
- package/dist/views/components/button/utilities/button_base_classes.hbs +1 -0
- package/dist/views/components/button/utilities/button_dimension_classes.hbs +1 -0
- package/dist/views/components/button/utilities/button_on_image_classes.hbs +39 -0
- package/dist/views/components/button/utilities/button_variation_classes.hbs +14 -0
- package/dist/views/components/content_nav/content_nav_container.hbs +1 -1
- package/dist/views/components/content_nav/content_nav_item.hbs +1 -1
- package/dist/views/components/event/calendar/event_calendar_footer.hbs +1 -1
- package/dist/views/components/event/event_ticket_button.hbs +11 -9
- package/dist/views/components/grid/grid_group_highlight.hbs +1 -1
- package/dist/views/components/label/label_old.hbs +1 -1
- package/dist/views/components/mediaplayer/media_player.hbs +4 -22
- package/dist/views/components/mediaplayer/mediaplayer_button.hbs +9 -0
- package/dist/views/components/modal/modal.hbs +2 -2
- package/dist/views/components/site_header/brand_navigation/brand_navigation.hbs +1 -1
- package/dist/views/components/teaser/cluster/teaser_cluster.hbs +4 -1
- package/dist/views/components/teaser/cluster/teaser_cluster_byline.hbs +1 -1
- package/dist/views/components/teaser/cluster/teaser_cluster_item.hbs +1 -1
- package/dist/views/components/teaser/components/teaser_av_consumption_close_button.hbs +6 -20
- package/dist/views/components/teaser/components/teaser_byline.hbs +1 -1
- package/dist/views/components/teaser/components/teaser_image.hbs +7 -15
- package/dist/views/components/teaser/components/teaser_ticker_body.hbs +40 -0
- package/dist/views/components/teaser/podcast/podcast_subscribe_button.hbs +18 -15
- package/dist/views/components/teaser/podcast/podcast_title.hbs +2 -2
- package/dist/views/components/teaser/tabbox/group_tabbox.hbs +4 -1
- package/dist/views/components/teaser/tabbox/teaser_tabbox.hbs +10 -11
- package/dist/views/components/teaser/teaser_poster.hbs +5 -1
- package/dist/views/components/teaser/ticker/teaser_ticker.hbs +4 -4
- package/gulpfile.js +9 -0
- package/package.json +4 -2
- package/src/assets/css/custom-components.css +37 -38
- package/src/assets/css/custom-utilities.css +2 -2
- package/src/assets/fixtures/event/calendar/event_calendar_months.inc.json +5 -1
- package/src/assets/fixtures/teaser/teaser_ticker.inc.json +3 -3
- package/src/assets/fixtures/teaser/ticker_teaser_standard_100.json +5 -1
- package/src/assets/tailwind.css +54 -22
- package/src/stories/conventions-and-datastructure.mdx +217 -4
- package/src/stories/views/components/base/image/icon.hbs +1 -1
- package/src/stories/views/components/base/link.hbs +11 -1
- package/src/stories/views/components/base/link_open.hbs +12 -13
- package/src/stories/views/components/base/link_v2.hbs +14 -0
- package/src/stories/views/components/button/button.hbs +9 -24
- package/src/stories/views/components/button/button.mdx +186 -0
- package/src/stories/views/components/button/button.stories.js +508 -0
- package/src/stories/views/components/button/components/button_icon.hbs +2 -1
- package/src/stories/views/components/button/components/button_icon.mdx +25 -0
- package/src/stories/views/components/button/components/button_icon.stories.js +44 -0
- package/src/stories/views/components/button/components/button_label.hbs +1 -1
- package/src/stories/views/components/button/components/button_label.mdx +25 -0
- package/src/stories/views/components/button/components/button_label.stories.js +33 -0
- package/src/stories/views/components/button/link_button.hbs +6 -0
- package/src/stories/views/components/button/link_button.mdx +137 -0
- package/src/stories/views/components/button/link_button.stories.js +420 -0
- package/src/stories/views/components/button/utilities/button_base_classes.hbs +1 -0
- package/src/stories/views/components/button/utilities/button_dimension_classes.hbs +1 -0
- package/src/stories/views/components/button/utilities/button_on_image_classes.hbs +39 -0
- package/src/stories/views/components/button/utilities/button_variation_classes.hbs +14 -0
- package/src/stories/views/components/content_nav/content_nav_container.hbs +1 -1
- package/src/stories/views/components/content_nav/content_nav_item.hbs +1 -1
- package/src/stories/views/components/event/calendar/event_calendar_footer.hbs +1 -1
- package/src/stories/views/components/event/event_ticket_button.hbs +11 -9
- package/src/stories/views/components/grid/grid_group_highlight.hbs +1 -1
- package/src/stories/views/components/label/label_old.hbs +1 -1
- package/src/stories/views/components/mediaplayer/media_player.hbs +4 -22
- package/src/stories/views/components/mediaplayer/mediaplayer_button.hbs +9 -0
- package/src/stories/views/components/mediaplayer/mediaplayer_button.mdx +82 -0
- package/src/stories/views/components/mediaplayer/mediaplayer_button.stories.js +178 -0
- package/src/stories/views/components/modal/modal.hbs +2 -2
- package/src/stories/views/components/site_header/brand_navigation/brand_navigation.hbs +1 -1
- package/src/stories/views/components/teaser/cluster/teaser_cluster.hbs +4 -1
- package/src/stories/views/components/teaser/cluster/teaser_cluster_byline.hbs +1 -1
- package/src/stories/views/components/teaser/cluster/teaser_cluster_item.hbs +1 -1
- package/src/stories/views/components/teaser/components/teaser_av_consumption_close_button.hbs +6 -20
- package/src/stories/views/components/teaser/components/teaser_byline.hbs +1 -1
- package/src/stories/views/components/teaser/components/teaser_image.hbs +7 -15
- package/src/stories/views/components/teaser/components/teaser_ticker_body.hbs +40 -0
- package/src/stories/views/components/teaser/fixtures/teaser_event_calendar_100_serif.json +1 -1
- package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_100.json +1 -1
- package/src/stories/views/components/teaser/podcast/podcast_subscribe_button.hbs +18 -15
- package/src/stories/views/components/teaser/podcast/podcast_title.hbs +2 -2
- package/src/stories/views/components/teaser/tabbox/group_tabbox.hbs +4 -1
- package/src/stories/views/components/teaser/tabbox/teaser_tabbox.hbs +10 -11
- package/src/stories/views/components/teaser/teaser_poster.hbs +5 -1
- package/src/stories/views/components/teaser/ticker/teaser_ticker.hbs +4 -4
- package/src/stories/views/components/teaser/ticker/teaser_ticker.stories.js +1 -1
- package/tailwind.config.js +8 -1
- package/dist/views/components/button/button_pseudo.hbs +0 -8
- package/dist/views/components/button/button_pseudo.inc.hbs +0 -18
- package/dist/views/components/button/button_pseudo_v2.hbs +0 -12
- package/dist/views/components/button/button_round.hbs +0 -23
- package/dist/views/components/button/button_round_classes.hbs +0 -46
- package/dist/views/components/button/button_transparent.hbs +0 -17
- package/dist/views/components/button/button_v2.hbs +0 -7
- package/dist/views/components/button/components/button_pseudo_link.hbs +0 -3
- package/src/stories/views/components/button/button_pseudo.hbs +0 -8
- package/src/stories/views/components/button/button_pseudo.inc.hbs +0 -18
- package/src/stories/views/components/button/button_pseudo_v2.hbs +0 -12
- package/src/stories/views/components/button/button_round.hbs +0 -23
- package/src/stories/views/components/button/button_round_classes.hbs +0 -46
- package/src/stories/views/components/button/button_transparent.hbs +0 -17
- package/src/stories/views/components/button/button_v2.hbs +0 -7
- package/src/stories/views/components/button/components/button_pseudo_link.hbs +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"isSsi":true,"logicItem":{"includePath":"components/teaser/ticker/teaser_ticker","includeModel":{"byline":"Byline","title":"Eintracht: +++ Eintracht-Halbfinale terminiert +++ Frankfurter Gala in Barcelona jährt sich +++ Berichte: Aouar in Gesprächen mit AS Rom +++","topline":"","headingFontVariant":"serif","extendedTitle":"","teaserType":"standard","teaserSize":"100","realTeaserSize":"100","isMobile1to1":false,"teaserDate":{"htmlDateTime":"2022-04-17T19:30+0200","htmlDate":"20.02.1983","date":"17.04.22","dateSeparatorTime":"17.04.22, 19:30"},"hasByline":
|
|
1
|
+
{"isSsi":true,"logicItem":{"includePath":"components/teaser/ticker/teaser_ticker","includeModel":{"byline":"Byline","title":"Eintracht: +++ Eintracht-Halbfinale terminiert +++ Frankfurter Gala in Barcelona jährt sich +++ Berichte: Aouar in Gesprächen mit AS Rom +++","topline":"","headingFontVariant":"serif","extendedTitle":"","teaserType":"standard","teaserSize":"100","realTeaserSize":"100","isMobile1to1":false,"teaserDate":{"htmlDateTime":"2022-04-17T19:30+0200","htmlDate":"20.02.1983","date":"17.04.22","dateSeparatorTime":"17.04.22, 19:30"},"hasByline":true,"teaserInfo":{"showTeaserInfo":false,"showTeaserInfoSection":true,"showTeaserInfoChannel":false,"showTeaserInfoAll":false,"showTeaserInfoDate":false,"showTeaserInfoDateTime":true,"showTeaserInfoProgramRef":false},"teaserImage":{"alttext":"Lorem ipsum","copyrightWithLinks":"Vorname Nachname","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"images/sportschau-image-5708_v-16to9__medium.jpg","sources":[{"sizes":"(min-width: 1024px) 960px, (min-width: 640px) calc(100vw - 4rem), 100vw","srcset":"images/sportschau-image-5708_v-16to9__small.jpg 320w, images/sportschau-image-5708_v-16to9__medium.jpg 480w, images/sportschau-image-5708_v-16to9__medium__extended.jpg 640w, images/sportschau-image-5708_v-16to9.jpg 960w, images/sportschau-image-5708_v-16to9__retina.jpg 1920w"}]}},"displayTeaserBodyAsImageOverlay":false,"hasMediaButtons":false,"dontLazyload":true,"isStandardTeaser":true,"isHeroTeaser":true,"isMediaTeaser":false,"isGuide":false,"isProgram":false,"isEvent":false,"isTicker":true,"isAudio":false,"isVideo":false,"isPodcast":false,"isPodcastEpisode":false,"isExtOrBrandLink":false,"isAuthor":false,"copyright":"Copyright Text","audioAuthor":"Audio Author","hasStatus":false,"hasTeaserItem":true,"moreThenOneEvent":false,"moreThenTwoEvents":false,"firstInstant":{"startDate":{"monthNameShort":"APR","weekdayNameShort":"Do","day":"9"}},"lastInstant":{"startDate":{"monthNameShort":"APR","weekdayNameShort":"Fr","day":"10"}},"allowAVConsumption":false,"displayEpgInfos":false,"aspectRatio":"ar--teaserTop","hideGeotag":false,"hideEditableByline":true,"doTracking":true,"trackingForArdMediatheksLink":false,"showMediatheksLink":false,"showAirdate":false,"showProfileInfoAsByline":true,"obsolet_brandOfTeaser":"hessenschau","documentSection":"Gesellschaft","headlineTag":"h1","icon":"ortsmarke","imageVariant":"topteaser","shorttext":"","hideBylineAndShorttext":false,"sophoraId":"rueckkehr-nach-abschiebung-wolfhagen--100","profiles":"Von Karsten Hufer","teaserLead":{"avDocument":"","image":""},"geotag":[{"title":"Frankfurt"}],"link":{"url":"/teaser1","webviewUrl":"/teaser1#webview","isTargetBlank":false,"hasIcon":false,"iconName":"iconName","readMoreText":{"readMoreScreenreader":"Zum Artikel","readMore":"mehr","readMoreLong":"read More Long"}},"label":{"type":"ticker","loca":"label_ticker","byline":{"bylineSsi":"BylineText aus ssi","bylineText":"BylineText"}}}}}
|
|
@@ -20,22 +20,25 @@
|
|
|
20
20
|
>
|
|
21
21
|
|
|
22
22
|
{{!-- Button --}}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
{{#with this}}
|
|
24
|
+
{{#> components/button/button _size="md" _disableButtonPress=true}}
|
|
25
|
+
{{>components/button/components/button_label _label="Abonnieren" _css="flex-1 truncate mr-2" _type="button"}}
|
|
26
|
+
<span x-cloak x-show="open" class="w-3 h-3">
|
|
27
|
+
{{> components/base/image/icon _icon='arrow-up' _addClass="flex self-center w-3 h-3 fill-white" }}
|
|
28
|
+
</span>
|
|
29
|
+
<span x-show="!open" class="w-3 h-3">
|
|
30
|
+
{{> components/base/image/icon _icon='arrow-down' _addClass="flex self-center w-3 h-3 fill-white" }}
|
|
31
|
+
</span>
|
|
32
|
+
{{/components/button/button}}
|
|
33
|
+
{{#*inline "html_properties"}}
|
|
34
|
+
x-ref="button"
|
|
35
|
+
x-on:click="toggle()"
|
|
36
|
+
:aria-expanded="open"
|
|
37
|
+
:aria-controls="$id('dropdown-button')"
|
|
29
38
|
:class="open ? 'drop-shadow' : ''"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
{{> components/base/image/icon _icon='arrow-up' _addClass="flex self-center w-3 h-3 fill-white" }}
|
|
34
|
-
</div>
|
|
35
|
-
<div x-show="!open" class="w-3 h-3">
|
|
36
|
-
{{> components/base/image/icon _icon='arrow-down' _addClass="flex self-center w-3 h-3 fill-white" }}
|
|
37
|
-
</div>
|
|
38
|
-
</button>
|
|
39
|
+
data-hr-click-tracking='{"settings": [{"type": "uxAction", "clickLabel": "podcastAbonnieren:ButtonClick"}]}'
|
|
40
|
+
{{/inline}}
|
|
41
|
+
{{/with}}
|
|
39
42
|
|
|
40
43
|
{{!-- Flyout --}}
|
|
41
44
|
<div
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{{#if this.isSingleChannel}}
|
|
2
2
|
{{#decorator 'components/base/link' _css="group ds-link font-title text-base mt-2.5 text-podcast-text"}}
|
|
3
|
-
<span class="
|
|
3
|
+
<span class="mt-0.5 group-hover:underline {{#if _ordered}} pl-8 {{/if}}line-clamp-4 {{inline-switch _teaserSize '["hero","100","50"]''["text-base md:text-2xl lg:line-clamp-2","text-base md:text-2xl lg:line-clamp-2","text-base md:text-lg"]' ~}}">
|
|
4
4
|
{{~_title~}}
|
|
5
5
|
</span>
|
|
6
6
|
{{/decorator}}
|
|
7
7
|
{{else}}
|
|
8
8
|
<div class="font-title text-base mt-2.5 text-podcast-text">
|
|
9
|
-
<span class="
|
|
9
|
+
<span class="mt-0.5 {{#if _ordered}} pl-8 {{/if}}line-clamp-4 {{inline-switch _teaserSize '["hero","100","50"]''["text-base md:text-2xl lg:line-clamp-2","text-base md:text-2xl lg:line-clamp-2","text-base md:text-lg"]' ~}}">
|
|
10
10
|
{{~_title~}}
|
|
11
11
|
</span>
|
|
12
12
|
</div>
|
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
</div>
|
|
8
8
|
{{~#if this.link~}}
|
|
9
9
|
<div class="flex justify-center min-w-0 pt-8 mx-5">
|
|
10
|
-
{{
|
|
10
|
+
{{~#> components/button/link_button _variant="secondary" _size="lg" _css="overflow-hidden"}}
|
|
11
|
+
{{>components/button/components/button_label _label=(loca "group_tabbed_more" this.title) _css="flex-1 truncate mr-2"}}
|
|
12
|
+
{{> components/button/components/button_icon _icon="arrow-right" _iconmap="icons" _css=""}}
|
|
13
|
+
{{/components/button/link_button}}
|
|
11
14
|
</div>
|
|
12
15
|
{{~/if~}}
|
|
13
16
|
</section>
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
</div>
|
|
2
2
|
<div
|
|
3
|
-
x-data="{ tab: '{{this.tabbedGroup.[0].title}}' }"
|
|
3
|
+
x-data="{ tab: '{{this.tabbedGroup.[0].title}}', test:true }"
|
|
4
4
|
class="grid grid-cols-12 pt-6 mx-0 mb-8 mt-14 col-full md:pt-7 bg-highlight-1 md:rounded-tl-hr md:rounded-br-hr md:col-main gap-x-6 gap-y-6"
|
|
5
5
|
>
|
|
6
6
|
<section class="px-0 col-span-full sm:px-8 md:px-0">
|
|
7
|
-
<div class="flex flex-wrap justify-center mb-7 mx-1.5" role="tablist">
|
|
7
|
+
<div class="flex flex-wrap gap-y-3 justify-center mb-7 mx-1.5" role="tablist">
|
|
8
8
|
{{~#each this.tabbedGroup~}}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
</button>
|
|
9
|
+
{{#> components/button/button _size="sm" _css="mx-1.5" _variant="secondary" _type="button" }}
|
|
10
|
+
{{> components/button/components/button_label _label=this.title}}
|
|
11
|
+
{{/components/button/button }}
|
|
12
|
+
{{#*inline "html_properties"~}}
|
|
13
|
+
:class='{"{{> components/button/utilities/button_variation_classes _variant='primary' _onBackground=false}} bg-button-primary--dark":tab ==="{{this.title}}",
|
|
14
|
+
"{{~> components/button/utilities/button_variation_classes _variant='secondary' _onBackground=false~}}":tab !="{{this.title}}"}'
|
|
15
|
+
x-on:click.prevent="tab = '{{this.title}}'; " role="tab" data-hr-click-tracking='{"settings": [{"type": "uxAction", "clickLabel": "{{this.title}}:TabboxClick"}]}'
|
|
16
|
+
{{~/inline}}
|
|
18
17
|
{{~/each~}}
|
|
19
18
|
</div>
|
|
20
19
|
{{~> components/teaser/teaser_logic/teaser_logic ~}}
|
|
@@ -22,6 +22,10 @@
|
|
|
22
22
|
{{/components/teaser/components/teaser_headline}}
|
|
23
23
|
{{/components/teaser/components/teaser_header}}
|
|
24
24
|
{{/decorator}}
|
|
25
|
-
|
|
25
|
+
<span class="absolute flex w-full h-full items-end justify-center ds-cta">
|
|
26
|
+
{{#> components/button/link_button _size="lg" _css=(inline-switch this.realTeaserSize '["33","50"]' '["z-20 mb-7","z-20 mb-7 md:mb-16"]') _variant="secondary" _isAriaHidden=true _onBackground=true}}
|
|
27
|
+
{{> components/button/components/button_label _css="" _label=this.link.readMoreText.readMoreLong}}
|
|
28
|
+
{{/components/button/link_button}}
|
|
29
|
+
</span>
|
|
26
30
|
</div>
|
|
27
31
|
</article>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<article class="items-start relative col-span-12 flex {{if this.displayTeaserBodyAsImageOverlay '' 'gap-y-3'}} gap-x-4
|
|
1
|
+
<article class="bg-blue-congress rounded-tl-hr rounded-br-hr items-start relative col-span-12 flex {{if this.displayTeaserBodyAsImageOverlay '' 'gap-y-3'}} gap-x-4
|
|
2
2
|
{{~inline-switch this.teaserSize '["25","33","50"]' '[" md:col-span-3"," md:col-span-4"," md:col-span-6",""]'}}
|
|
3
3
|
{{~#if this.isMobile1to1}} js-is1to1 px-5 sm:px-0 md:flex-col{{else}} flex-col{{/if~}}
|
|
4
4
|
"
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
<div class="flex flex-col items-center justify-center p-4 border-r border-gray-400 border-dashed basis-1/12">
|
|
19
19
|
{{> components/event/instant_dates}}
|
|
20
20
|
</div>
|
|
21
|
-
{{> components/teaser/components/
|
|
21
|
+
{{> components/teaser/components/teaser_ticker_body _outerCssClasses=(if this.isMobile1to1 'basis-11/12 py-4 sm:px-4 basis-3/5 w-3/5 md:basis-full md:w-full' 'basis-11/12 py-4 sm:px-4')}}
|
|
22
22
|
{{/decorator}}
|
|
23
23
|
{{else}}
|
|
24
|
-
{{> components/teaser/components/
|
|
24
|
+
{{> components/teaser/components/teaser_ticker_body _outerCssClasses=(if this.isMobile1to1 'basis-3/5 w-3/5 md:basis-full md:w-full')}}
|
|
25
25
|
{{/if}}
|
|
26
26
|
{{else}}
|
|
27
|
-
{{> components/teaser/components/
|
|
27
|
+
{{> components/teaser/components/teaser_ticker_body _outerCssClasses="basis-full"}}
|
|
28
28
|
{{/if}}
|
|
29
29
|
</article>
|
package/tailwind.config.js
CHANGED
|
@@ -272,13 +272,14 @@ module.exports = {
|
|
|
272
272
|
DEFAULT: '#007A7C',
|
|
273
273
|
deeperPool: '#097d8e',
|
|
274
274
|
},
|
|
275
|
-
'
|
|
275
|
+
'gray': {
|
|
276
276
|
alabaster: '#f7f7f7',
|
|
277
277
|
alto: '#e0e0e0',
|
|
278
278
|
boulder: '#797979',
|
|
279
279
|
brightGray: '#E5F2F3',
|
|
280
280
|
concrete: '#f3f3f3',
|
|
281
281
|
dark: '#707070',
|
|
282
|
+
lightGray: '#d4d4d4',
|
|
282
283
|
mercury: '#E6E6E6',
|
|
283
284
|
platinum: '#E5E8E8',
|
|
284
285
|
scorpion: '#606060',
|
|
@@ -337,7 +338,13 @@ module.exports = {
|
|
|
337
338
|
'clusterTeaserLink': 'var(--color-cluster-teaser-link,#000)',
|
|
338
339
|
'clusterTeaserHeadline': 'var(--color-cluster-teaser-headline,#000)',
|
|
339
340
|
'button': 'var(--color-button)',
|
|
341
|
+
'button-primary': 'var(--color-button-primary)',
|
|
342
|
+
'button-primary--dark': 'var(--color-button-primary-dark)',
|
|
343
|
+
'button-primary--inverted': 'var(--color-button-primary-inverted)',
|
|
344
|
+
'button-primary--inverted-dark': 'var(--color-button-primary-inverted-dark)',
|
|
340
345
|
'button-hollow': 'var(--color-button-hollow)',
|
|
346
|
+
'button-secondary': 'var(--color-button-secondary)',
|
|
347
|
+
'button-ghost': 'var(--color-button-ghost)',
|
|
341
348
|
'button-inverted': 'var(--color-button-inverted)',
|
|
342
349
|
'media-button': 'var(--color-media-button)',
|
|
343
350
|
'focus-state': 'var(--color-focus-state)',
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
{{#if _withLink}}
|
|
2
|
-
{{#decorator 'components/base/link' _isAriaHidden=_isLinkAriaHidden _css=_linkCss}}
|
|
3
|
-
{{>components/button/button_pseudo.inc _addClass=_addClass _buttonCss=_buttonCss _buttonText=_buttonText _type=_type _isLinkAriaHidden=_isLinkAriaHidden _showIcon=_showIcon _icon=_icon}}
|
|
4
|
-
{{/decorator}}
|
|
5
|
-
{{else}}
|
|
6
|
-
{{>components/button/button_pseudo.inc _addClass=_addClass _buttonCss=_buttonCss _buttonText=_buttonText _type=_type _isLinkAriaHidden=_isLinkAriaHidden _showIcon=_showIcon _icon=_icon}}
|
|
7
|
-
{{/if}}
|
|
8
|
-
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<span
|
|
2
|
-
class='px-4 py-2.5 border flex items-center
|
|
3
|
-
{{inline-switch
|
|
4
|
-
_type
|
|
5
|
-
'["normal","hollow","hollow-white"]'
|
|
6
|
-
'["text-button-inverted bg-button hover:bg-button-inverted hover:text-button-hollow hover:border-button-hollow","text-button-hollow border-button-hollow hover:bg-button-inverted","text-button-inverted border-button-inverted hover:bg-button-inverted hover:text-button-hollow hover:border-button-hollow","text-button-inverted bg-button hover:bg-button-inverted hover:text-button-hollow hover:border-button-hollow"]'
|
|
7
|
-
}}
|
|
8
|
-
font-heading{{#if _buttonCss}} {{_buttonCss}}{{/if}}'
|
|
9
|
-
>
|
|
10
|
-
<span class="flex-1 truncate">
|
|
11
|
-
{{_buttonText}}
|
|
12
|
-
</span>
|
|
13
|
-
<span>
|
|
14
|
-
{{~#if _showIcon~}}
|
|
15
|
-
{{> components/base/image/icon _icon=_icon _iconmap=_iconmap _addClass=_addClass _webview=_webview}}
|
|
16
|
-
{{/if~}}
|
|
17
|
-
</span>
|
|
18
|
-
</span>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<span
|
|
3
|
-
class='px-4 py-2.5 border flex items-center font-heading
|
|
4
|
-
{{inline-switch
|
|
5
|
-
_type
|
|
6
|
-
'["hollow","hollow-white","inverted"]'
|
|
7
|
-
'["text-button-hollow border-button-hollow hover:bg-button-inverted","text-button-inverted border-button-inverted hover:bg-button-inverted hover:text-button-hollow hover:border-button-hollow","text-button fill-button border-button bg-button-inverted hover:bg-button hover:text-button-inverted hover:fill-button-inverted hover:border-button-hollow","text-button-inverted bg-button hover:bg-button-inverted hover:text-button-hollow hover:border-button-hollow"]'
|
|
8
|
-
}}
|
|
9
|
-
{{#if _css}} {{_css}}{{/if}}'
|
|
10
|
-
>
|
|
11
|
-
{{> @partial-block }}
|
|
12
|
-
</span>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{{> components/button/button
|
|
2
|
-
_aria=_aria
|
|
3
|
-
_isButton=_isButton
|
|
4
|
-
_title=_title
|
|
5
|
-
_name=_name
|
|
6
|
-
_label=_label
|
|
7
|
-
_value=_value
|
|
8
|
-
_showIcon="true"
|
|
9
|
-
_icon=_icon
|
|
10
|
-
_iconmap=_iconmap
|
|
11
|
-
_addIconClass="w-10 h-10 inline"
|
|
12
|
-
_addClass=_addClass
|
|
13
|
-
_webview=_webview
|
|
14
|
-
_x-show=_x-show
|
|
15
|
-
_alpineClick=_alpineClick
|
|
16
|
-
_srOnly=_srOnly
|
|
17
|
-
_buttonColor=_buttonColor
|
|
18
|
-
_buttonSpace=true
|
|
19
|
-
_teaserType=_teaserType
|
|
20
|
-
_teaserSize=_teaserSize
|
|
21
|
-
_isMobile1to1=_isMobile1to1
|
|
22
|
-
_noFocus=_noFocus
|
|
23
|
-
}}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
{{~#switch _teaserType~}}
|
|
2
|
-
{{~#case 'standard'~}}
|
|
3
|
-
{{~#if _isMobile1to1~}}
|
|
4
|
-
{{~inline-switch
|
|
5
|
-
_teaserSize '["25","33"]' '[" my-2 mx-2"," my-2 mx-2 md:my-3 md:mx-3"," my-2 mx-2 md:my-4 md:mx-4 "]'
|
|
6
|
-
~}}
|
|
7
|
-
{{~else~}}
|
|
8
|
-
{{~inline-switch
|
|
9
|
-
_teaserSize '["25","33"]' '[" my-2 mx-2"," my-4 mx-4 md:my-3 md:mx-3"," my-4 mx-4"]'
|
|
10
|
-
~}}
|
|
11
|
-
{{~/if~}}
|
|
12
|
-
{{~/case~}}
|
|
13
|
-
{{~#case 'alternative'~}}
|
|
14
|
-
{{~#if _isMobile1to1~}}
|
|
15
|
-
{{~inline-switch
|
|
16
|
-
_teaserSize '["hero","100","50"]' '[" my-2 mx-2 md:my-4 md:mx-4"," my-2 mx-2 md:my-3 md:mx-3"," my-2 mx-2"]'
|
|
17
|
-
~}}
|
|
18
|
-
{{~else~}}
|
|
19
|
-
{{~inline-switch
|
|
20
|
-
_teaserSize '["hero","100","50"]' '[" my-4 mx-4"," my-2 mx-2 md:my-3 md:mx-3"," my-2 mx-2"]'
|
|
21
|
-
~}}
|
|
22
|
-
{{~/if~}}
|
|
23
|
-
{{~/case~}}
|
|
24
|
-
{{~#case 'tabbox-standard'~}}
|
|
25
|
-
{{~#if _isMobile1to1~}}
|
|
26
|
-
{{~inline-switch
|
|
27
|
-
_teaserSize '["25","33"]' '[" my-2 mx-2"," my-2 mx-2 md:my-3 md:mx-3"," my-2 mx-2 md:my-4 md:mx-4 "]'
|
|
28
|
-
~}}
|
|
29
|
-
{{~else~}}
|
|
30
|
-
{{~inline-switch
|
|
31
|
-
_teaserSize '["25","33"]' '[" my-2 mx-2"," my-4 mx-4 md:my-3 md:mx-3"," my-4 mx-4"]'
|
|
32
|
-
~}}
|
|
33
|
-
{{~/if~}}
|
|
34
|
-
{{~/case~}}
|
|
35
|
-
{{~#case 'tabbox-alternative'~}}
|
|
36
|
-
{{~#if _isMobile1to1~}}
|
|
37
|
-
{{~inline-switch
|
|
38
|
-
_teaserSize '["hero","100","50"]' '[" my-2 mx-2 md:my-4 md:mx-4"," my-2 mx-2 md:my-3 md:mx-3"," my-2 mx-2"]'
|
|
39
|
-
~}}
|
|
40
|
-
{{~else~}}
|
|
41
|
-
{{~inline-switch
|
|
42
|
-
_teaserSize '["hero","100","50"]' '[" my-4 mx-4"," my-2 mx-2 md:my-3 md:mx-3"," my-2 mx-2"]'
|
|
43
|
-
~}}
|
|
44
|
-
{{~/if~}}
|
|
45
|
-
{{~/case~}}
|
|
46
|
-
{{~/switch~}}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{{> components/button/button
|
|
2
|
-
_aria=_aria
|
|
3
|
-
_isButton=_isButton
|
|
4
|
-
_title=_title
|
|
5
|
-
_name=_name
|
|
6
|
-
_label=_label
|
|
7
|
-
_value=_value
|
|
8
|
-
_showIcon="true"
|
|
9
|
-
_icon=_icon
|
|
10
|
-
_iconmap=_iconmap
|
|
11
|
-
_addIconClass=_addIconClass
|
|
12
|
-
_addClass="bg-transparent hover:bg-slate-300 text-blue-700 font-semibold py-3.5 px-3.5 "
|
|
13
|
-
_addClass2=_addClass
|
|
14
|
-
_webview=_webview
|
|
15
|
-
_x-show=_x-show
|
|
16
|
-
_alpineClick=_alpineClick
|
|
17
|
-
}}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<button{{#if _id}} id="{{_id}}"{{/if}} class="border flex items-center px-4 py-2.5 ds-button {{inline-switch
|
|
2
|
-
_type
|
|
3
|
-
'["hollow","hollow-white","inverted"]'
|
|
4
|
-
'["text-button-hollow border-button-hollow fill-button-hollow hover:bg-button-inverted","text-button-inverted border-button-inverted fill-button-inverted hover:bg-button-inverted hover:text-button-hollow hover:fill-button-hollow hover:border-button-hollow","text-button fill-button border-button bg-button-inverted hover:bg-button hover:text-button-inverted hover:fill-button-inverted hover:border-button-hollow","text-button-inverted fill-button-inverted bg-button hover:bg-button-inverted hover:text-button-hollow hover:border-button-hollow"]'
|
|
5
|
-
}}{{#if _css}} {{_css}}{{/if}}{{#if _openModal}} js-modalButton{{/if}}"{{#if _openModal}} aria-haspopup="true"{{/if}}>
|
|
6
|
-
{{> @partial-block }}
|
|
7
|
-
</button>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
{{#if _withLink}}
|
|
2
|
-
{{#decorator 'components/base/link' _isAriaHidden=_isLinkAriaHidden _css=_linkCss}}
|
|
3
|
-
{{>components/button/button_pseudo.inc _addClass=_addClass _buttonCss=_buttonCss _buttonText=_buttonText _type=_type _isLinkAriaHidden=_isLinkAriaHidden _showIcon=_showIcon _icon=_icon}}
|
|
4
|
-
{{/decorator}}
|
|
5
|
-
{{else}}
|
|
6
|
-
{{>components/button/button_pseudo.inc _addClass=_addClass _buttonCss=_buttonCss _buttonText=_buttonText _type=_type _isLinkAriaHidden=_isLinkAriaHidden _showIcon=_showIcon _icon=_icon}}
|
|
7
|
-
{{/if}}
|
|
8
|
-
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<span
|
|
2
|
-
class='px-4 py-2.5 border flex items-center
|
|
3
|
-
{{inline-switch
|
|
4
|
-
_type
|
|
5
|
-
'["normal","hollow","hollow-white"]'
|
|
6
|
-
'["text-button-inverted bg-button hover:bg-button-inverted hover:text-button-hollow hover:border-button-hollow","text-button-hollow border-button-hollow hover:bg-button-inverted","text-button-inverted border-button-inverted hover:bg-button-inverted hover:text-button-hollow hover:border-button-hollow","text-button-inverted bg-button hover:bg-button-inverted hover:text-button-hollow hover:border-button-hollow"]'
|
|
7
|
-
}}
|
|
8
|
-
font-heading{{#if _buttonCss}} {{_buttonCss}}{{/if}}'
|
|
9
|
-
>
|
|
10
|
-
<span class="flex-1 truncate">
|
|
11
|
-
{{_buttonText}}
|
|
12
|
-
</span>
|
|
13
|
-
<span>
|
|
14
|
-
{{~#if _showIcon~}}
|
|
15
|
-
{{> components/base/image/icon _icon=_icon _iconmap=_iconmap _addClass=_addClass _webview=_webview}}
|
|
16
|
-
{{/if~}}
|
|
17
|
-
</span>
|
|
18
|
-
</span>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<span
|
|
3
|
-
class='px-4 py-2.5 border flex items-center font-heading
|
|
4
|
-
{{inline-switch
|
|
5
|
-
_type
|
|
6
|
-
'["hollow","hollow-white","inverted"]'
|
|
7
|
-
'["text-button-hollow border-button-hollow hover:bg-button-inverted","text-button-inverted border-button-inverted hover:bg-button-inverted hover:text-button-hollow hover:border-button-hollow","text-button fill-button border-button bg-button-inverted hover:bg-button hover:text-button-inverted hover:fill-button-inverted hover:border-button-hollow","text-button-inverted bg-button hover:bg-button-inverted hover:text-button-hollow hover:border-button-hollow"]'
|
|
8
|
-
}}
|
|
9
|
-
{{#if _css}} {{_css}}{{/if}}'
|
|
10
|
-
>
|
|
11
|
-
{{> @partial-block }}
|
|
12
|
-
</span>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{{> components/button/button
|
|
2
|
-
_aria=_aria
|
|
3
|
-
_isButton=_isButton
|
|
4
|
-
_title=_title
|
|
5
|
-
_name=_name
|
|
6
|
-
_label=_label
|
|
7
|
-
_value=_value
|
|
8
|
-
_showIcon="true"
|
|
9
|
-
_icon=_icon
|
|
10
|
-
_iconmap=_iconmap
|
|
11
|
-
_addIconClass="w-10 h-10 inline"
|
|
12
|
-
_addClass=_addClass
|
|
13
|
-
_webview=_webview
|
|
14
|
-
_x-show=_x-show
|
|
15
|
-
_alpineClick=_alpineClick
|
|
16
|
-
_srOnly=_srOnly
|
|
17
|
-
_buttonColor=_buttonColor
|
|
18
|
-
_buttonSpace=true
|
|
19
|
-
_teaserType=_teaserType
|
|
20
|
-
_teaserSize=_teaserSize
|
|
21
|
-
_isMobile1to1=_isMobile1to1
|
|
22
|
-
_noFocus=_noFocus
|
|
23
|
-
}}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
{{~#switch _teaserType~}}
|
|
2
|
-
{{~#case 'standard'~}}
|
|
3
|
-
{{~#if _isMobile1to1~}}
|
|
4
|
-
{{~inline-switch
|
|
5
|
-
_teaserSize '["25","33"]' '[" my-2 mx-2"," my-2 mx-2 md:my-3 md:mx-3"," my-2 mx-2 md:my-4 md:mx-4 "]'
|
|
6
|
-
~}}
|
|
7
|
-
{{~else~}}
|
|
8
|
-
{{~inline-switch
|
|
9
|
-
_teaserSize '["25","33"]' '[" my-2 mx-2"," my-4 mx-4 md:my-3 md:mx-3"," my-4 mx-4"]'
|
|
10
|
-
~}}
|
|
11
|
-
{{~/if~}}
|
|
12
|
-
{{~/case~}}
|
|
13
|
-
{{~#case 'alternative'~}}
|
|
14
|
-
{{~#if _isMobile1to1~}}
|
|
15
|
-
{{~inline-switch
|
|
16
|
-
_teaserSize '["hero","100","50"]' '[" my-2 mx-2 md:my-4 md:mx-4"," my-2 mx-2 md:my-3 md:mx-3"," my-2 mx-2"]'
|
|
17
|
-
~}}
|
|
18
|
-
{{~else~}}
|
|
19
|
-
{{~inline-switch
|
|
20
|
-
_teaserSize '["hero","100","50"]' '[" my-4 mx-4"," my-2 mx-2 md:my-3 md:mx-3"," my-2 mx-2"]'
|
|
21
|
-
~}}
|
|
22
|
-
{{~/if~}}
|
|
23
|
-
{{~/case~}}
|
|
24
|
-
{{~#case 'tabbox-standard'~}}
|
|
25
|
-
{{~#if _isMobile1to1~}}
|
|
26
|
-
{{~inline-switch
|
|
27
|
-
_teaserSize '["25","33"]' '[" my-2 mx-2"," my-2 mx-2 md:my-3 md:mx-3"," my-2 mx-2 md:my-4 md:mx-4 "]'
|
|
28
|
-
~}}
|
|
29
|
-
{{~else~}}
|
|
30
|
-
{{~inline-switch
|
|
31
|
-
_teaserSize '["25","33"]' '[" my-2 mx-2"," my-4 mx-4 md:my-3 md:mx-3"," my-4 mx-4"]'
|
|
32
|
-
~}}
|
|
33
|
-
{{~/if~}}
|
|
34
|
-
{{~/case~}}
|
|
35
|
-
{{~#case 'tabbox-alternative'~}}
|
|
36
|
-
{{~#if _isMobile1to1~}}
|
|
37
|
-
{{~inline-switch
|
|
38
|
-
_teaserSize '["hero","100","50"]' '[" my-2 mx-2 md:my-4 md:mx-4"," my-2 mx-2 md:my-3 md:mx-3"," my-2 mx-2"]'
|
|
39
|
-
~}}
|
|
40
|
-
{{~else~}}
|
|
41
|
-
{{~inline-switch
|
|
42
|
-
_teaserSize '["hero","100","50"]' '[" my-4 mx-4"," my-2 mx-2 md:my-3 md:mx-3"," my-2 mx-2"]'
|
|
43
|
-
~}}
|
|
44
|
-
{{~/if~}}
|
|
45
|
-
{{~/case~}}
|
|
46
|
-
{{~/switch~}}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{{> components/button/button
|
|
2
|
-
_aria=_aria
|
|
3
|
-
_isButton=_isButton
|
|
4
|
-
_title=_title
|
|
5
|
-
_name=_name
|
|
6
|
-
_label=_label
|
|
7
|
-
_value=_value
|
|
8
|
-
_showIcon="true"
|
|
9
|
-
_icon=_icon
|
|
10
|
-
_iconmap=_iconmap
|
|
11
|
-
_addIconClass=_addIconClass
|
|
12
|
-
_addClass="bg-transparent hover:bg-slate-300 text-blue-700 font-semibold py-3.5 px-3.5 "
|
|
13
|
-
_addClass2=_addClass
|
|
14
|
-
_webview=_webview
|
|
15
|
-
_x-show=_x-show
|
|
16
|
-
_alpineClick=_alpineClick
|
|
17
|
-
}}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<button{{#if _id}} id="{{_id}}"{{/if}} class="border flex items-center px-4 py-2.5 ds-button {{inline-switch
|
|
2
|
-
_type
|
|
3
|
-
'["hollow","hollow-white","inverted"]'
|
|
4
|
-
'["text-button-hollow border-button-hollow fill-button-hollow hover:bg-button-inverted","text-button-inverted border-button-inverted fill-button-inverted hover:bg-button-inverted hover:text-button-hollow hover:fill-button-hollow hover:border-button-hollow","text-button fill-button border-button bg-button-inverted hover:bg-button hover:text-button-inverted hover:fill-button-inverted hover:border-button-hollow","text-button-inverted fill-button-inverted bg-button hover:bg-button-inverted hover:text-button-hollow hover:border-button-hollow"]'
|
|
5
|
-
}}{{#if _css}} {{_css}}{{/if}}{{#if _openModal}} js-modalButton{{/if}}"{{#if _openModal}} aria-haspopup="true"{{/if}}>
|
|
6
|
-
{{> @partial-block }}
|
|
7
|
-
</button>
|