hr-design-system-handlebars 1.17.0 → 1.17.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.
Files changed (55) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/assets/index.css +14 -10
  3. package/dist/views/components/button/button.hbs +1 -1
  4. package/dist/views/components/button/link_button.hbs +1 -1
  5. package/dist/views/components/button/utilities/button_variation_classes.hbs +9 -1
  6. package/dist/views/components/event/event_ticket_button.hbs +2 -2
  7. package/dist/views/components/pagination/pagination_button_left.hbs +3 -3
  8. package/dist/views/components/pagination/pagination_button_left_linked.hbs +3 -5
  9. package/dist/views/components/pagination/pagination_button_right.hbs +4 -3
  10. package/dist/views/components/pagination/pagination_button_right_linked.hbs +3 -5
  11. package/dist/views/components/pagination/pagination_current_page_invalid.hbs +14 -7
  12. package/dist/views/components/pagination/pagination_current_page_valid.hbs +1 -1
  13. package/dist/views/components/pagination/pagination_more_than_three_pages.hbs +40 -24
  14. package/dist/views/components/pagination/pagination_only_three_pages.hbs +41 -23
  15. package/dist/views/components/pagination/pagination_only_two_pages.hbs +19 -11
  16. package/dist/views/components/teaser/teaser_poster.hbs +1 -1
  17. package/package.json +1 -1
  18. package/src/assets/brand/hessenschau/conf/locatags.merged.json +0 -1
  19. package/src/assets/brand/hr/conf/locatags.merged.json +0 -1
  20. package/src/assets/brand/hr-bigband/conf/locatags.merged.json +0 -1
  21. package/src/assets/brand/hr-fernsehen/conf/locatags.merged.json +0 -1
  22. package/src/assets/brand/hr-inforadio/conf/locatags.merged.json +0 -1
  23. package/src/assets/brand/hr-rundfunkrat/conf/locatags.merged.json +0 -1
  24. package/src/assets/brand/hr-sinfonieorchester/conf/locatags.merged.json +0 -1
  25. package/src/assets/brand/hr-werbung/conf/locatags.merged.json +0 -1
  26. package/src/assets/brand/hr1/conf/locatags.merged.json +0 -1
  27. package/src/assets/brand/hr2/conf/locatags.merged.json +0 -1
  28. package/src/assets/brand/hr3/conf/locatags.merged.json +0 -1
  29. package/src/assets/brand/hr4/conf/locatags.merged.json +0 -1
  30. package/src/assets/brand/you-fm/conf/locatags.merged.json +0 -1
  31. package/src/assets/fixtures/page/page_pagination.json +15 -5
  32. package/src/assets/tailwind.css +2 -0
  33. package/src/stories/views/components/button/button.hbs +1 -1
  34. package/src/stories/views/components/button/button.mdx +10 -1
  35. package/src/stories/views/components/button/button.stories.js +66 -0
  36. package/src/stories/views/components/button/link_button.hbs +1 -1
  37. package/src/stories/views/components/button/link_button.mdx +8 -0
  38. package/src/stories/views/components/button/link_button.stories.js +66 -0
  39. package/src/stories/views/components/button/utilities/button_variation_classes.hbs +9 -1
  40. package/src/stories/views/components/event/event_ticket_button.hbs +2 -2
  41. package/src/stories/views/components/page/fixtures/page_pagination.json +1 -1
  42. package/src/stories/views/components/page/page.stories.js +17 -1
  43. package/src/stories/views/components/page/page_pagination.mdx +52 -3
  44. package/src/stories/views/components/page/page_pagination.stories.js +134 -4
  45. package/src/stories/views/components/pagination/pagination_button_left.hbs +3 -3
  46. package/src/stories/views/components/pagination/pagination_button_left_linked.hbs +3 -5
  47. package/src/stories/views/components/pagination/pagination_button_right.hbs +4 -3
  48. package/src/stories/views/components/pagination/pagination_button_right_linked.hbs +3 -5
  49. package/src/stories/views/components/pagination/pagination_current_page_invalid.hbs +14 -7
  50. package/src/stories/views/components/pagination/pagination_current_page_valid.hbs +1 -1
  51. package/src/stories/views/components/pagination/pagination_more_than_three_pages.hbs +40 -24
  52. package/src/stories/views/components/pagination/pagination_only_three_pages.hbs +41 -23
  53. package/src/stories/views/components/pagination/pagination_only_two_pages.hbs +19 -11
  54. package/src/stories/views/components/teaser/teaser_poster.hbs +1 -1
  55. package/tailwind.config.js +2 -0
@@ -3,6 +3,55 @@ import * as PagePaginationStories from './page_pagination.stories'
3
3
 
4
4
  <Meta of={PagePaginationStories} />
5
5
 
6
- <Canvas withToolbar>
7
- <Story of={PagePaginationStories.MitPagination} />
8
- </Canvas>
6
+
7
+ # Pagination (allgemein)
8
+
9
+ Um eine große Anzahl von Seiteninhalten (wie z.B. bei einem Suchergebnis mit vielen Treffern) auf mehrer Seiten aufzuteilen, wird die Anzahl der Inhalte
10
+ pro Seite begrenzt und eine sog. Pagination, also eine Unterseitennavigation am Ende der Seite angezeigt. Die Inhalte werden equivalent auf alle Unterseiten
11
+ aufgeteilt.
12
+
13
+ # Grundaufbau
14
+
15
+ Die Pagination besteht zum einen aus zwei "Pfeil-Buttons" die es ermöglichen in den erzeugten Unterseiten vor und zurück zu navigieren,
16
+ einer Darstellung auf welcher Unterseite ich mich gerade befinde, sowie eine Sprungmöglichkeiten, um Unterseiten direkt über die Seitenzahl zu erreichen.
17
+ Die Darstellung startet initial mit Unterseite 1 sowie der Gesamtzahl aller zur Verfügung stehenden Unterseiten. Als Platzhalter wird "..." eingefügt.
18
+
19
+
20
+ # Darstellung bei mehr als 3 Unterseiten
21
+ Im folgenden Beispiel gibt es 999 Unterseiten. Je nachdem welche Unterseite ausgewählt ist, verändert sich die Darstellung. So sind die Unterseite nach
22
+ Unterseite 1 sowie die vorletzte Seite nicht durch Platzhalter "..." abgetrennt. Liegt die Seite irgendwo zwischen der erste und der letzten Unterseite,
23
+ wird in beiden Richtungen mit Platzhalter "..." abgetrennt.
24
+
25
+
26
+ <Story of={PagePaginationStories.MitPagination} />
27
+
28
+
29
+ ### Zweite Seite gewählt
30
+
31
+ <Story of={PagePaginationStories.MitPagination2} />
32
+
33
+ ### Seite mittendrin gewählt
34
+
35
+ <Story of={PagePaginationStories.MitPagination4} />
36
+
37
+ ### Vorletzte Seite gewählt
38
+
39
+ <Story of={PagePaginationStories.MitPagination3} />
40
+
41
+ ### Letzte Seite gewählt
42
+
43
+ <Story of={PagePaginationStories.MitPagination5} />
44
+
45
+
46
+ # Sonderformen
47
+ Die Logik erzeugt bei nur einer, bei zweien oder drei Unterseiten eine etwas andere Darstellung. Der Platzhalter "..." kann bei einer so geringen Anzahl von
48
+ Unterseiten entfallen.
49
+
50
+ ### Mit nur zwei Unterseiten
51
+
52
+ <Story of={PagePaginationStories.MitPagination6} />
53
+
54
+
55
+ ### Mit nur drei Unterseiten
56
+
57
+ <Story of={PagePaginationStories.MitPagination7} />
@@ -1,14 +1,110 @@
1
1
  import { NavigationDataWithMixedContent } from './page_pagination.data.js'
2
- import page from './page_pagination.hbs'
2
+ import page from '../pagination/pagination.hbs'
3
3
 
4
- const Template = (args, { globals: { customConditionalToolbar } }) => {
4
+ const TemplateMoreThanThreeFirst = (args, { globals: { customConditionalToolbar } }) => {
5
5
  // You can either use a function to create DOM elements or use a plain html string!
6
6
  // return `<div>${label}</div>`;
7
+ args['currentPageValid'] = true
8
+ args['onlyThreePages'] = false
9
+ args['onlyTwoPages'] = false
10
+ args['secondPage'] = false
11
+ args['firstPage'] = true
12
+ args['notLastButOnePage'] = false
13
+ args['notLastPage'] = false
14
+ args['totalPages'] = 999
15
+ let brand =
16
+ undefined !== customConditionalToolbar ? customConditionalToolbar['brands'] : 'hessenschau'
17
+ return page({ brand, ...args })
18
+ }
19
+ const TemplateMoreThanThreeSecond = (args, { globals: { customConditionalToolbar } }) => {
20
+ // You can either use a function to create DOM elements or use a plain html string!
21
+ // return `<div>${label}</div>`;
22
+ args['onlyThreePages'] = false
23
+ args['onlyTwoPages'] = false
24
+ args['secondPage'] = true
25
+ args['firstPage'] = false
26
+ args['notLastButOnePage'] = false
27
+ args['notLastPage'] = false
28
+ args['totalPages'] = 999
29
+ let brand =
30
+ undefined !== customConditionalToolbar ? customConditionalToolbar['brands'] : 'hessenschau'
31
+ return page({ brand, ...args })
32
+ }
33
+ const TemplateMoreThanThreeButNotLast = (args, { globals: { customConditionalToolbar } }) => {
34
+ // You can either use a function to create DOM elements or use a plain html string!
35
+ // return `<div>${label}</div>`;
36
+ args['onlyThreePages'] = false
37
+ args['onlyTwoPages'] = false
38
+ args['secondPage'] = false
39
+ args['firstPage'] = false
40
+ args['notLastButOnePage'] = false
41
+ args['notLastPage'] = true
42
+ args['totalPages'] = 999
43
+ args['currentPage'] = 998
44
+ let brand =
45
+ undefined !== customConditionalToolbar ? customConditionalToolbar['brands'] : 'hessenschau'
46
+ return page({ brand, ...args })
47
+ }
48
+ const TemplateMoreThanThreeOneButNotLast = (args, { globals: { customConditionalToolbar } }) => {
49
+ // You can either use a function to create DOM elements or use a plain html string!
50
+ // return `<div>${label}</div>`;
51
+ args['onlyThreePages'] = false
52
+ args['onlyTwoPages'] = false
53
+ args['secondPage'] = false
54
+ args['firstPage'] = false
55
+ args['notLastButOnePage'] = true
56
+ args['notLastPage'] = true
57
+ args['totalPages'] = 999
58
+ args['currentPage'] = 555
7
59
  let brand =
8
60
  undefined !== customConditionalToolbar ? customConditionalToolbar['brands'] : 'hessenschau'
9
61
  return page({ brand, ...args })
10
62
  }
11
63
 
64
+ const TemplateMoreThanThreeLast = (args, { globals: { customConditionalToolbar } }) => {
65
+ // You can either use a function to create DOM elements or use a plain html string!
66
+ // return `<div>${label}</div>`;
67
+ args['onlyThreePages'] = false
68
+ args['onlyTwoPages'] = false
69
+ args['secondPage'] = false
70
+ args['firstPage'] = false
71
+ args['notLastButOnePage'] = false
72
+ args['notLastPage'] = false
73
+ args['totalPages'] = 999
74
+ args['currentPage'] = 999
75
+ let brand =
76
+ undefined !== customConditionalToolbar ? customConditionalToolbar['brands'] : 'hessenschau'
77
+ return page({ brand, ...args })
78
+ }
79
+ const TemplateOnlyTwo= (args, { globals: { customConditionalToolbar } }) => {
80
+ // You can either use a function to create DOM elements or use a plain html string!
81
+ // return `<div>${label}</div>`;
82
+ args['onlyThreePages'] = false
83
+ args['onlyTwoPages'] = true
84
+ args['secondPage'] = false
85
+ args['firstPage'] = true
86
+ args['notLastButOnePage'] = false
87
+ args['notLastPage'] = false
88
+ let brand =
89
+ undefined !== customConditionalToolbar ? customConditionalToolbar['brands'] : 'hessenschau'
90
+ return page({ brand, ...args })
91
+ }
92
+
93
+ const TemplateOnlyThree = (args, { globals: { customConditionalToolbar } }) => {
94
+ // You can either use a function to create DOM elements or use a plain html string!
95
+ // return `<div>${label}</div>`;
96
+ args['onlyThreePages'] = true
97
+ args['onlyTwoPages'] = false
98
+ args['secondPage'] = false
99
+ args['firstPage'] = false
100
+ args['notLastButOnePage'] = false
101
+ args['notLastPage'] = false
102
+ let brand =
103
+ undefined !== customConditionalToolbar ? customConditionalToolbar['brands'] : 'hessenschau'
104
+ return page({ brand, ...args })
105
+ }
106
+
107
+
12
108
  export default {
13
109
  title: 'Komponenten/Page/Pagination',
14
110
  argTypes: {},
@@ -28,7 +124,41 @@ export default {
28
124
  }
29
125
 
30
126
  export const MitPagination = {
31
- render: Template.bind({}),
32
- name: 'Mit Pagination',
127
+ render: TemplateMoreThanThreeFirst.bind({}),
128
+ name: 'Pagination mehr als 3 Seiten',
129
+ args: NavigationDataWithMixedContent,
130
+ }
131
+ export const MitPagination2 = {
132
+ render: TemplateMoreThanThreeSecond.bind({}),
133
+ name: 'Pagination mehr als 3 Seiten (zweite Seite aktiv)',
134
+ args: NavigationDataWithMixedContent,
135
+ }
136
+ export const MitPagination3 = {
137
+ render: TemplateMoreThanThreeButNotLast.bind({}),
138
+ name: 'Pagination mehr als 3 Seiten (vorletzte Seite aktiv)',
139
+ args: NavigationDataWithMixedContent,
140
+ }
141
+
142
+ export const MitPagination4 = {
143
+ render: TemplateMoreThanThreeOneButNotLast.bind({}),
144
+ name: 'Pagination mehr als 3 Seiten (Seite mitten drin aktiv)',
145
+ args: NavigationDataWithMixedContent,
146
+ }
147
+
148
+ export const MitPagination5 = {
149
+ render: TemplateMoreThanThreeLast.bind({}),
150
+ name: 'Pagination mehr als 3 Seiten (letzte Seite aktiv)',
151
+ args: NavigationDataWithMixedContent,
152
+ }
153
+
154
+ export const MitPagination6 = {
155
+ render: TemplateOnlyTwo.bind({}),
156
+ name: 'Pagination mit nur 2 Seiten',
157
+ args: NavigationDataWithMixedContent,
158
+ }
159
+
160
+ export const MitPagination7 = {
161
+ render: TemplateOnlyThree.bind({}),
162
+ name: 'Pagination mit nur 3 Seiten',
33
163
  args: NavigationDataWithMixedContent,
34
164
  }
@@ -1,3 +1,3 @@
1
- <div class="w-10 py-10">
2
- <span>{{>components/base/image/icon _icon="arrow-left" _addClass="fill-current pb-0.5 h-8 w-8 ml-2 inline" }}</span>
3
- </div>
1
+ {{#> components/button/link_button _size="lg" _variant="tertiary" _disableButtonPress='true' _disabled='true' _css="mr-1"}}
2
+ {{> components/button/components/button_icon _icon="arrow-left" _iconmap="icons"}}
3
+ {{/components/button/link_button}}
@@ -1,5 +1,3 @@
1
- <div class="w-10 py-10">
2
- <a rel="prev" href="{{previousItemUrl}}" class="font-bold sb-link js-load hover:text-toplineColor text-toplineColor font-title" aria-label="Zur vorherigen Seite">
3
- <span>{{>components/base/image/icon _icon="arrow-left" _addClass="fill-current pb-0.5 h-8 w-8 ml-2 inline" }}</span>
4
- </a>
5
- </div>
1
+ {{#> components/button/link_button _size="lg" _variant="secondary" _link=this.previousItemLink _css="mr-1"}}
2
+ {{> components/button/components/button_icon _icon="arrow-left" _iconmap="icons"}}
3
+ {{/components/button/link_button}}
@@ -1,3 +1,4 @@
1
- <div class="w-10 py-10">
2
- <span>{{>components/base/image/icon _icon="arrow-right" _addClass="fill-current pb-0.5 h-8 w-8 ml-2 inline" }}</span>
3
- </div>
1
+ {{#> components/button/link_button _size="lg" _variant="tertiary" _disableButtonPress='true' _disabled='true' _css="ml-1"}}
2
+ {{> components/button/components/button_icon _icon="arrow-right" _iconmap="icons"}}
3
+ {{/components/button/link_button}}
4
+
@@ -1,5 +1,3 @@
1
- <div class="w-10 py-10">
2
- <a rel="next" href="{{nextItemUrl}}" class="font-bold sb-link js-load hover:text-toplineColor text-toplineColor font-title" aria-label="Zur nächsten Seite">
3
- <span>{{>components/base/image/icon _icon="arrow-right" _addClass="fill-current pb-0.5 h-8 w-8 ml-2 inline" }}</span>
4
- </a>
5
- </div>
1
+ {{#> components/button/link_button _size="lg" _variant="secondary" _link=this.nextItemLink _css="ml-1"}}
2
+ {{> components/button/components/button_icon _icon="arrow-right" _iconmap="icons"}}
3
+ {{/components/button/link_button}}
@@ -1,17 +1,24 @@
1
- <nav class="flex content-center justify-center py-10" role="navigation" aria-label="Paginierung">
1
+ <nav class="flex flex-row content-center justify-center py-10" role="navigation" aria-label="Paginierung">
2
+ <div class="flex h-10"></div>
2
3
  {{> components/pagination/pagination_button_left }}
3
- <div class="px-20 py-10">
4
- <a href="{{firstPageItemUrl}}" class="font-bold sb-link js-load hover:underline text-toplineColor font-title"><span class="hidden">Zur Seite </span>1</a>
4
+ {{#> components/button/link_button _size="lg" _variant="secondary" _link=this.firstPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
5
+ {{> components/button/components/button_label _label="1"}}
6
+ {{/components/button/link_button}}
5
7
  {{~#if _moreThanOnePage ~}}
6
8
  {{~#unless _onlyTwoPages ~}}
7
9
  {{~#if _onlyThreePages ~}}
8
- <a href="{{lastButOnePageItemUrl}}" class="font-bold sb-link js-load hover:underline text-toplineColor font-title"><span class="hidden">Zur Seite </span>2</a>
10
+ {{#> components/button/link_button _size="lg" _variant="secondary" _link=this.lastButOnePageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
11
+ {{> components/button/components/button_label _label="2"}}
12
+ {{/components/button/link_button}}
9
13
  {{else}}
10
- <span class="px-5 py-10 font-title">&hellip;</span>
14
+ <span class="pt-1 ml-2 mr-2 font-title">&hellip;</span>
11
15
  {{~/if~}}
12
16
  {{~/unless~}}
13
- <a href="{{lastPageItemUrl}}" class="font-bold sb-link js-load hover:underline text-toplineColor font-title"><span class="hidden">Zur Seite </span>{{_totalPages}}</a>
17
+ {{#> components/button/link_button _size="lg" _variant="secondary" _link=this.lastPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
18
+ {{> components/button/components/button_label _label=_totalPages}}
19
+ {{/components/button/link_button}}
14
20
  {{~/if~}}
15
- </div>
21
+
16
22
  {{> components/pagination/pagination_button_right }}
23
+ </div>
17
24
  </nav>
@@ -1,5 +1,5 @@
1
1
  {{~#if _moreThanOnePage~}}
2
- <nav class="flex content-center justify-center py-10" role="navigation" aria-label="Paginierung">
2
+ <nav class="flex flex-row content-center justify-center py-10" role="navigation" aria-label="Paginierung">
3
3
  {{~#if _onlyTwoPages~}}
4
4
  {{> components/pagination/pagination_only_two_pages
5
5
  _firstPage=_firstPage
@@ -1,38 +1,54 @@
1
1
  {{~#if _firstPage~}}
2
- {{> components/pagination/pagination_button_left }}
3
- <div class="px-20 py-10">
4
- <span class="font-title">1</span>
5
- <span class="px-5 py-10 font-title">&hellip;</span>
6
- <a href="{{this.lastPageItemUrl}}" class="font-bold sb-link js-load hover:underline text-toplineColor font-title"><span class="hidden">Zur Seite </span>{{_totalPages}}</a>
7
- </div>
8
- {{> components/pagination/pagination_button_right_linked }}
2
+ <div class="flex h-10">
3
+ {{> components/pagination/pagination_button_left }}
4
+ {{#> components/button/link_button _size="lg" _variant="primary" _css="mr-1 ml-1 pr-2 pl-2"}}
5
+ {{> components/button/components/button_label _label="1"}}
6
+ {{/components/button/link_button}}
7
+ <span class="pt-1 ml-2 mr-2 font-title">&hellip;</span>
8
+ {{#> components/button/link_button _size="lg" _variant="secondary" _link=this.lastPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
9
+ {{> components/button/components/button_label _label=_totalPages}}
10
+ {{/components/button/link_button}}
11
+ {{> components/pagination/pagination_button_right_linked }}
12
+ </div>
9
13
  {{else}}
10
- {{~#if _secondPage~}}
14
+ {{~#if _secondPage~}}
15
+ <div class="flex h-10">
11
16
  {{> components/pagination/pagination_button_left_linked }}
12
- <div class="px-20 py-10">
13
- <a href="{{this.firstPageItemUrl}}" class="font-bold sb-link js-load hover:underline text-toplineColor font-title"><span class="hidden">Zur Seite </span>1</a>
14
- <span class="pl-5 font-title">2</span>
15
- <span class="px-5 py-10 font-title">&hellip;</span>
16
- <a href="{{this.lastPageItemUrl}}" class="font-bold sb-link js-load hover:underline text-toplineColor font-title"><span class="hidden">Zur Seite </span>{{_totalPages}}</a>
17
- </div>
17
+ {{#> components/button/link_button _size="lg" _variant="secondary" _link=this.firstPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
18
+ {{> components/button/components/button_label _label="1"}}
19
+ {{/components/button/link_button}}
20
+ {{#> components/button/link_button _size="lg" _variant="primary" _css="mr-1 ml-1 pr-2 pl-2"}}
21
+ {{> components/button/components/button_label _label="2"}}
22
+ {{/components/button/link_button}}
23
+ <span class="pt-1 ml-2 mr-2 font-title">&hellip;</span>
24
+ {{#> components/button/link_button _size="lg" _variant="secondary" _link=this.lastPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
25
+ {{> components/button/components/button_label _label=_totalPages}}
26
+ {{/components/button/link_button}}
18
27
  {{> components/pagination/pagination_button_right_linked }}
28
+ </div>
19
29
  {{else}}
20
- {{> components/pagination/pagination_button_left_linked }}
21
- <div class="px-20 py-10">
22
- <a href="{{this.firstPageItemUrl}}" class="font-bold sb-link js-load hover:underline text-toplineColor font-title"><span class="hidden">Zur Seite </span>1</a>
23
- <span class="py-10 pl-5 font-title">&hellip;</span>
24
- <span class="px-5 py-10 font-bold font-title">{{_currentPage}}</span>
30
+ <div class="flex h-10">
31
+ {{> components/pagination/pagination_button_left_linked }}
32
+ {{#> components/button/link_button _size="lg" _variant="secondary" _link=this.firstPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
33
+ {{> components/button/components/button_label _label="1"}}
34
+ {{/components/button/link_button}}
35
+ <span class="pt-1 ml-2 mr-2 font-title">&hellip;</span>
36
+ {{#> components/button/link_button _size="lg" _variant="primary" _css="mr-1 ml-1 pr-2 pl-2"}}
37
+ {{> components/button/components/button_label _label=_currentPage}}
38
+ {{/components/button/link_button}}
25
39
  {{~#if _notLastPage~}}
26
40
  {{~#if _notLastButOnePage~}}
27
- <span class="py-10 pr-5 font-title">&hellip;</span>
41
+ <span class="pt-1 ml-2 mr-2 font-title">&hellip;</span>
28
42
  {{~/if~}}
29
- <a href="{{this.lastPageItemUrl}}" class="font-bold sb-link js-load hover:underline text-toplineColor font-title"><span class="hidden">Zur Seite </span>{{_totalPages}}</a>
30
- {{~/if~}}
31
- </div>
43
+ {{#> components/button/link_button _size="lg" _variant="secondary" _link=this.lastPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
44
+ {{> components/button/components/button_label _label=_totalPages}}
45
+ {{/components/button/link_button}}
46
+ {{~/if~}}
32
47
  {{~#if _notLastPage~}}
33
48
  {{> components/pagination/pagination_button_right_linked }}
34
49
  {{else}}
35
50
  {{> components/pagination/pagination_button_right }}
36
- {{~/if~}}
51
+ {{~/if~}}
52
+ </div>
37
53
  {{~/if~}}
38
54
  {{~/if~}}
@@ -1,27 +1,45 @@
1
- {{~#if _firstPage~}}
1
+ {{~#if _firstPage~}}
2
+ <div class="flex h-10">
2
3
  {{> components/pagination/pagination_button_left }}
3
- <div class="px-20 py-10">
4
- <span class="py-10 pr-5 font-title">1</span>
5
- <a href="{{nextItemUrl}}" class="py-10 pr-5 font-bold sb-link js-load hover:underline text-toplineColor font-title"><span class="hidden">Zur Seite </span>2</a>
6
- <a href="{{lastPageItemUrl}}" class="py-10 font-bold sb-link js-load hover:underline text-toplineColor font-title"><span class="hidden">Zur Seite </span>3</a>
7
- </div>
8
- {{> components/pagination/pagination_button_right_linked }}
4
+ {{#> components/button/link_button _size="lg" _variant="primary" _css="mr-1 ml-1 pr-2 pl-2"}}
5
+ {{> components/button/components/button_label _label="1"}}
6
+ {{/components/button/link_button}}
7
+ {{#> components/button/link_button _size="lg" _variant="secondary" _link=this.nextItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
8
+ {{> components/button/components/button_label _label="2"}}
9
+ {{/components/button/link_button}}
10
+ {{#> components/button/link_button _size="lg" _variant="secondary" _link=this.lastPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
11
+ {{> components/button/components/button_label _label="3"}}
12
+ {{/components/button/link_button}}
13
+ {{> components/pagination/pagination_button_right_linked }}
14
+ </div>
9
15
  {{else}}
10
- {{~#if _secondPage~}}
11
- {{> components/pagination/pagination_button_left_linked }}
12
- <div class="px-20 py-10">
13
- <a href="{{firstPageItemUrl}}" class="py-10 pr-5 font-bold sb-link js-load hover:underline text-toplineColor font-title"><span class="hidden">Zur Seite </span>1</a>
14
- <span class="py-10 pr-5 font-title">2</span>
15
- <a href="{{lastPageItemUrl}}" class="font-bold sb-link js-load hover:underline text-toplineColor font-title"><span class="hidden">Zur Seite </span>3</a>
16
- </div>
17
- {{> components/pagination/pagination_button_right_linked }}
18
- {{else}}
19
- {{> components/pagination/pagination_button_left_linked }}
20
- <div class="px-20 py-10">
21
- <a href="{{firstPageItemUrl}}" class="py-10 pr-5 font-bold sb-link js-load hover:underline text-toplineColor font-title"><span class="hidden">Zur Seite </span>1</a>
22
- <a href="{{lastButOnePageItemUrl}}" class="font-bold sb-link js-load hover:underline text-toplineColor font-title"><span class="hidden">Zur Seite </span>2</a>
23
- <span class="py-10 pl-5 font-bold font-title">3</span>
24
- </div>
25
- {{> components/pagination/pagination_button_right }}
16
+ {{~#if _secondPage~}}
17
+ <div class="flex h-10">
18
+ {{> components/pagination/pagination_button_left_linked }}
19
+ {{#> components/button/link_button _size="lg" _variant="secondary" _link=this.firstPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
20
+ {{> components/button/components/button_label _label="1"}}
21
+ {{/components/button/link_button}}
22
+ {{#> components/button/link_button _size="lg" _variant="primary" _css="mr-1 ml-1 pr-2 pl-2"}}
23
+ {{> components/button/components/button_label _label="2"}}
24
+ {{/components/button/link_button}}
25
+ {{#> components/button/link_button _size="lg" _variant="secondary" _link=this.lastPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
26
+ {{> components/button/components/button_label _label="3"}}
27
+ {{/components/button/link_button}}
28
+ {{> components/pagination/pagination_button_right_linked }}
29
+ </div>
30
+ {{else}}
31
+ <div class="flex h-10">
32
+ {{> components/pagination/pagination_button_left_linked }}
33
+ {{#> components/button/link_button _size="lg" _variant="secondary" _link=this.firstPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
34
+ {{> components/button/components/button_label _label="1"}}
35
+ {{/components/button/link_button}}
36
+ {{#> components/button/link_button _size="lg" _variant="secondary" _link=this.lastButOneItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
37
+ {{> components/button/components/button_label _label="2"}}
38
+ {{/components/button/link_button}}
39
+ {{#> components/button/link_button _size="lg" _variant="primary" _css="mr-1 ml-1 pr-2 pl-2"}}
40
+ {{> components/button/components/button_label _label="3"}}
41
+ {{/components/button/link_button}}
42
+ {{> components/pagination/pagination_button_right }}
43
+ </div>
26
44
  {{~/if~}}
27
45
  {{~/if~}}
@@ -1,15 +1,23 @@
1
1
  {{~#if _firstPage~}}
2
+ <div class="flex h-10">
2
3
  {{> components/pagination/pagination_button_left }}
3
- <div class="px-20 py-10">
4
- <span class="py-10 pr-5 font-title">1</span>
5
- <a href="{{lastPageItemUrl}}" class="font-bold sb-link js-load hover:underline text-toplineColor font-title"><span class="hidden">Zur Seite </span>2</a>
6
- </div>
4
+ {{#> components/button/button _size="lg" _variant="primary" _css="mr-1 ml-1 pr-2 pl-2"}}
5
+ {{> components/button/components/button_label _label="1"}}
6
+ {{/components/button/button}}
7
+ {{#> components/button/button _size="lg" _variant="secondary" _link=this.lastPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
8
+ {{> components/button/components/button_label _label="2"}}
9
+ {{/components/button/button}}
7
10
  {{> components/pagination/pagination_button_right_linked }}
8
- {{else}}
9
- {{> components/pagination/pagination_button_left_linked }}
10
- <div class="px-20 py-10">
11
- <a href="{{firstPageItemUrl}}" class="font-bold sb-link js-load hover:underline text-toplineColor font-title"><span class="hidden">Zur Seite </span>1</a>
12
- <span class="py-10 pl-5 font-title">2</span>
13
- </div>
14
- {{> components/pagination/pagination_button_right }}
11
+ </div>
12
+ {{else}}
13
+ <div class="flex h-10">
14
+ {{> components/pagination/pagination_button_left_linked }}
15
+ {{#> components/button/button _size="lg" _variant="secondary" _link=this.firstPageItemLink _css="mr-1 ml-1 pr-2 pl-2"}}
16
+ {{> components/button/components/button_label _label="1"}}
17
+ {{/components/button/button}}
18
+ {{#> components/button/button _size="lg" _variant="primary" _css="mr-1 ml-1 pr-2 pl-2"}}
19
+ {{> components/button/components/button_label _label="2"}}
20
+ {{/components/button/button}}
21
+ {{> components/pagination/pagination_button_right }}
22
+ </div>
15
23
  {{~/if~}}
@@ -22,7 +22,7 @@
22
22
  {{/components/teaser/components/teaser_headline}}
23
23
  {{/components/teaser/components/teaser_header}}
24
24
  {{/components/base/link}}
25
- <span class="absolute flex w-full h-full items-end justify-center ds-cta">
25
+ <span class="absolute flex items-end justify-center w-full h-full ds-cta">
26
26
  {{#> components/button/link_button _link=this.link _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
27
  {{> components/button/components/button_label _css="" _label=this.link.readMoreText.readMoreLong}}
28
28
  {{/components/button/link_button}}
@@ -341,6 +341,8 @@ module.exports = {
341
341
  'button--dark': 'var(--color-button--dark)',
342
342
  'button-inverted': 'var(--color-button-inverted)',
343
343
  'button-inverted--dark': 'var(--color-button-inverted--dark)',
344
+ 'button-disabled': 'var(--color-button-disabled)',
345
+ 'button-disabled--dark': 'var(--color-button-disabled--dark)',
344
346
  'media-button': 'var(--color-media-button)',
345
347
  'focus-state': 'var(--color-focus-state)',
346
348
  'content-nav': 'var(--color-content-nav)',