hr-design-system-handlebars 1.11.10 → 1.11.12

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 (130) hide show
  1. package/.babelrc.json +14 -0
  2. package/.storybook/main.js +34 -52
  3. package/.storybook/preview-head.html +4 -1
  4. package/.storybook/preview.js +25 -35
  5. package/CHANGELOG.md +29 -0
  6. package/dist/assets/index.css +11 -3
  7. package/dist/views/components/page/page_pagination.hbs +1 -1
  8. package/dist/views/components/pagination/pagination.hbs +15 -14
  9. package/dist/views/components/pagination/pagination_current_page_invalid.hbs +1 -1
  10. package/dist/views/components/pagination/pagination_current_page_valid.hbs +2 -1
  11. package/dist/views/components/pagination/pagination_more_than_three_pages.hbs +3 -3
  12. package/dist/views/components/pagination/pagination_only_three_pages.hbs +7 -7
  13. package/dist/views/components/pagination/pagination_only_two_pages.hbs +2 -2
  14. package/package.json +20 -13
  15. package/src/assets/css/custom-utilities.css +3 -3
  16. package/src/assets/fixtures/page/page_pagination.json +15 -14
  17. package/src/stories/BrandColors.data.js +42 -0
  18. package/src/stories/BrandColors.mdx +25 -0
  19. package/src/stories/{Colors.stories.mdx → Colors.data.js} +2 -18
  20. package/src/stories/Colors.mdx +19 -0
  21. package/src/stories/Example.mdx +56 -0
  22. package/src/stories/Example.stories.js +57 -0
  23. package/src/stories/{Fixtures.stories.mdx → Fixtures.mdx} +3 -5
  24. package/src/stories/{InstallAndUpdate.stories.mdx → InstallAndUpdate.mdx} +0 -2
  25. package/src/stories/Introduction.mdx +3 -0
  26. package/src/stories/{SvgOptimization.stories.mdx → SvgOptimization.mdx} +0 -2
  27. package/src/stories/{Typography.stories.mdx → Typography.mdx} +13 -14
  28. package/src/stories/{conventions-and-datastructure.stories.mdx → conventions-and-datastructure.mdx} +7 -9
  29. package/src/stories/views/components/Button.mdx +30 -0
  30. package/src/stories/views/components/Button_.stories.js +77 -0
  31. package/src/stories/views/components/event/calendar/{event_calendar_components.stories.mdx → event_calendar_components.mdx} +31 -87
  32. package/src/stories/views/components/event/calendar/event_calendar_components.stories.js +129 -0
  33. package/src/stories/views/components/geoTag/geoTag.mdx +32 -0
  34. package/src/stories/views/components/geoTag/geoTag.stories.js +35 -0
  35. package/src/stories/views/components/grid/grid.mdx +210 -0
  36. package/src/stories/views/components/grid/grid.stories.js +148 -0
  37. package/src/stories/views/components/label/label.mdx +54 -0
  38. package/src/stories/views/components/label/label.stories.js +183 -0
  39. package/src/stories/views/components/page/fixtures/page_pagination.json +1 -1
  40. package/src/stories/views/components/page/page.data.js +17 -0
  41. package/src/stories/views/components/page/page.mdx +110 -0
  42. package/src/stories/views/components/page/page.stories.js +50 -0
  43. package/src/stories/views/components/page/page_pagination.data.js +8 -0
  44. package/src/stories/views/components/page/page_pagination.hbs +1 -1
  45. package/src/stories/views/components/page/page_pagination.mdx +8 -0
  46. package/src/stories/views/components/page/page_pagination.stories.js +34 -0
  47. package/src/stories/views/components/page/page_player.mdx +21 -0
  48. package/src/stories/views/components/page/page_player.stories.js +34 -0
  49. package/src/stories/views/components/pagination/pagination.hbs +15 -14
  50. package/src/stories/views/components/pagination/pagination_current_page_invalid.hbs +1 -1
  51. package/src/stories/views/components/pagination/pagination_current_page_valid.hbs +2 -1
  52. package/src/stories/views/components/pagination/pagination_more_than_three_pages.hbs +3 -3
  53. package/src/stories/views/components/pagination/pagination_only_three_pages.hbs +7 -7
  54. package/src/stories/views/components/pagination/pagination_only_two_pages.hbs +2 -2
  55. package/src/stories/views/components/site_header/{header.stories.mdx → header.mdx} +218 -152
  56. package/src/stories/views/components/site_header/header.stories.js +62 -0
  57. package/src/stories/views/components/teaser/cluster/teaser_cluster.mdx +32 -0
  58. package/src/stories/views/components/teaser/cluster/teaser_cluster.stories.js +146 -0
  59. package/src/stories/views/components/teaser/components/teaser_byline.mdx +97 -0
  60. package/src/stories/views/components/teaser/components/teaser_byline.stories.js +30 -0
  61. package/src/stories/views/components/teaser/components/teaser_heading.mdx +96 -0
  62. package/src/stories/views/components/teaser/components/teaser_heading.stories.js +158 -0
  63. package/src/stories/views/components/teaser/components/teaser_text.mdx +36 -0
  64. package/src/stories/views/components/teaser/components/teaser_text.stories.js +74 -0
  65. package/src/stories/views/components/teaser/components/teaser_title.mdx +42 -0
  66. package/src/stories/views/components/teaser/components/teaser_title.stories.js +85 -0
  67. package/src/stories/views/components/teaser/components/teaser_topline.mdx +29 -0
  68. package/src/stories/views/components/teaser/components/teaser_topline.stories.js +27 -0
  69. package/src/stories/views/components/teaser/content_nav/teaser_content_nav.mdx +54 -0
  70. package/src/stories/views/components/teaser/content_nav/{teaser_content_nav.stories.mdx → teaser_content_nav.stories.js} +80 -61
  71. package/src/stories/views/components/teaser/group_teaser/group.mdx +18 -0
  72. package/src/stories/views/components/teaser/group_teaser/group.stories.js +85 -0
  73. package/src/stories/views/components/teaser/podcast/podcast.mdx +11 -0
  74. package/src/stories/views/components/teaser/podcast/{podcast.stories.mdx → podcast.stories.js} +50 -39
  75. package/src/stories/views/components/teaser/podcast/podcast_subscribe_button.mdx +10 -0
  76. package/src/stories/views/components/teaser/podcast/podcast_subscribe_button.stories.js +51 -0
  77. package/src/stories/views/components/teaser/tabbox/teaser_tabbox.mdx +10 -0
  78. package/src/stories/views/components/teaser/tabbox/teaser_tabbox.stories.js +40 -0
  79. package/src/stories/views/components/teaser/teaser_alternativ.mdx +76 -0
  80. package/src/stories/views/components/teaser/teaser_alternativ.stories.js +126 -0
  81. package/src/stories/views/components/teaser/teaser_alternativ_av.mdx +75 -0
  82. package/src/stories/views/components/teaser/teaser_alternativ_av.stories.js +111 -0
  83. package/src/stories/views/components/teaser/teaser_event_calendar.mdx +57 -0
  84. package/src/stories/views/components/teaser/teaser_event_calendar.stories.js +92 -0
  85. package/src/stories/views/components/teaser/teaser_indextext.mdx +35 -0
  86. package/src/stories/views/components/teaser/teaser_indextext.stories.js +85 -0
  87. package/src/stories/views/components/teaser/teaser_logic/teaser_logic.mdx +23 -0
  88. package/src/stories/views/components/teaser/teaser_logic/teaser_logic.stories.js +36 -0
  89. package/src/stories/views/components/teaser/teaser_poster.mdx +95 -0
  90. package/src/stories/views/components/teaser/teaser_poster.stories.js +67 -0
  91. package/src/stories/views/components/teaser/teaser_stage.mdx +15 -0
  92. package/src/stories/views/components/teaser/teaser_stage.stories.js +60 -0
  93. package/src/stories/views/components/teaser/teaser_standard.mdx +129 -0
  94. package/src/stories/views/components/teaser/teaser_standard.stories.js +166 -0
  95. package/src/stories/views/components/teaser/teaser_standard_av.mdx +38 -0
  96. package/src/stories/views/components/teaser/teaser_standard_av.stories.js +117 -0
  97. package/src/stories/views/components/teaser/teaser_standard_event.mdx +103 -0
  98. package/src/stories/views/components/teaser/teaser_standard_event.stories.js +119 -0
  99. package/src/stories/views/components/teaser/ticker/teaser_ticker.mdx +10 -0
  100. package/src/stories/views/components/teaser/ticker/{teaser_ticker.stories.mdx → teaser_ticker.stories.js} +25 -24
  101. package/.storybook/withThemeDecorator.js +0 -12
  102. package/src/stories/BrandColors.stories.mdx +0 -39
  103. package/src/stories/Example.stories.mdx +0 -93
  104. package/src/stories/Introduction.stories.mdx +0 -211
  105. package/src/stories/views/components/Button.stories.mdx +0 -82
  106. package/src/stories/views/components/geoTag/geoTag.stories.mdx +0 -61
  107. package/src/stories/views/components/grid/grid.stories.mdx +0 -275
  108. package/src/stories/views/components/label/label.stories.mdx +0 -200
  109. package/src/stories/views/components/page/page.stories.mdx +0 -144
  110. package/src/stories/views/components/page/page_pagination.stories.mdx +0 -36
  111. package/src/stories/views/components/page/page_player.stories.mdx +0 -43
  112. package/src/stories/views/components/teaser/cluster/teaser_cluster.stories.mdx +0 -97
  113. package/src/stories/views/components/teaser/components/teaser_byline.stories.mdx +0 -78
  114. package/src/stories/views/components/teaser/components/teaser_heading.stories.mdx +0 -219
  115. package/src/stories/views/components/teaser/components/teaser_text.stories.mdx +0 -94
  116. package/src/stories/views/components/teaser/components/teaser_title.stories.mdx +0 -124
  117. package/src/stories/views/components/teaser/components/teaser_topline.stories.mdx +0 -63
  118. package/src/stories/views/components/teaser/group_teaser/group.stories.mdx +0 -85
  119. package/src/stories/views/components/teaser/podcast/podcast_subscribe_button.stories.mdx +0 -52
  120. package/src/stories/views/components/teaser/tabbox/teaser_tabbox.stories.mdx +0 -39
  121. package/src/stories/views/components/teaser/teaser_alternativ.stories.mdx +0 -163
  122. package/src/stories/views/components/teaser/teaser_alternativ_av.stories.mdx +0 -142
  123. package/src/stories/views/components/teaser/teaser_event_calendar.stories.mdx +0 -131
  124. package/src/stories/views/components/teaser/teaser_indextext.stories.mdx +0 -111
  125. package/src/stories/views/components/teaser/teaser_logic/teaser_logic.stories.mdx +0 -39
  126. package/src/stories/views/components/teaser/teaser_poster.stories.mdx +0 -130
  127. package/src/stories/views/components/teaser/teaser_stage.stories.mdx +0 -53
  128. package/src/stories/views/components/teaser/teaser_standard.stories.mdx +0 -170
  129. package/src/stories/views/components/teaser/teaser_standard_av.stories.mdx +0 -95
  130. package/src/stories/views/components/teaser/teaser_standard_event.stories.mdx +0 -150
package/.babelrc.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "sourceType": "unambiguous",
3
+ "presets": [
4
+ [
5
+ "@babel/preset-env",
6
+ {
7
+ "targets": {
8
+ "chrome": 100
9
+ }
10
+ }
11
+ ]
12
+ ],
13
+ "plugins": []
14
+ }
@@ -1,29 +1,42 @@
1
+ import remarkGfm from 'remark-gfm'
1
2
  const path = require('path')
2
3
  const fs = require('fs')
3
4
  const FlatContextPlugin = require('../build/webpack/feature-loader/plugin/FlatContextPlugin')
4
-
5
- module.exports = {
5
+ const config = {
6
6
  staticDirs: ['../src/assets', '../src/assets/js'],
7
7
  stories: [
8
- '../src/stories/Introduction.stories.mdx',
9
- '../src/**/*.stories.mdx',
8
+ '../src/stories/Introduction.mdx',
9
+ '../src/**/*.mdx',
10
10
  '../src/**/*.stories.@(js|jsx|ts|tsx)',
11
11
  ],
12
12
  addons: [
13
13
  '@storybook/addon-links',
14
- '@storybook/addon-essentials',
15
14
  {
16
- name: '@storybook/addon-postcss',
15
+ name: '@storybook/addon-essentials',
16
+ options: {
17
+ docs: false,
18
+ },
19
+ },
20
+ '@storybook/addon-a11y',
21
+ {
22
+ name: '@storybook/addon-styling',
17
23
  options: {
18
- postcssLoaderOptions: {
24
+ postCss: {
19
25
  implementation: require('postcss'),
20
26
  },
21
27
  },
22
28
  },
23
- '@storybook/addon-a11y',
24
- 'storybook-conditional-toolbar-selector',
29
+ {
30
+ name: '@storybook/addon-docs',
31
+ options: {
32
+ mdxPluginOptions: {
33
+ mdxCompileOptions: {
34
+ remarkPlugins: [remarkGfm],
35
+ },
36
+ },
37
+ },
38
+ },
25
39
  ],
26
-
27
40
  webpackFinal: async (config, { configType }) => {
28
41
  // `configType` has a value of 'DEVELOPMENT' or 'PRODUCTION'
29
42
  // You can change the configuration based on that.
@@ -32,9 +45,11 @@ module.exports = {
32
45
  config.resolve.alias = {
33
46
  ...config.resolve.alias,
34
47
  scripts: path.resolve(__dirname, '../scripts'),
48
+ handlebars$: path.resolve(__dirname, '../node_modules/handlebars/dist/handlebars.js'),
35
49
  components: path.resolve(__dirname, '../src/stories/views/components'),
36
50
  base: path.resolve(__dirname, '../src/stories/views/base'),
37
51
  tailwind$: path.resolve(__dirname, '../src/assets/tailwind.css'),
52
+ tailwindConfig$: path.resolve(__dirname, '../tailwind.config.js'),
38
53
  hrQuery$: path.resolve(__dirname, '../src/stories/views/generic/hrQuery.subfeature.js'),
39
54
  initializer$: path.resolve(
40
55
  __dirname,
@@ -45,7 +60,6 @@ module.exports = {
45
60
  '../build/webpack/feature-loader/initializer/loader.js'
46
61
  ),
47
62
  }
48
-
49
63
  config.module.rules.push(
50
64
  {
51
65
  test: /\.hbs$/,
@@ -92,52 +106,12 @@ module.exports = {
92
106
  ],
93
107
  }
94
108
  )
95
-
96
109
  config.plugins.push(
97
110
  new FlatContextPlugin(
98
111
  '/feature',
99
112
  path.resolve(__dirname, '../src/stories/views/'),
100
113
  /\.feature\.js$/
101
- ),
102
- {
103
- apply: (compiler) => {
104
- compiler.hooks.afterCompile.tap('UpdateTailwindPlugin', (compilation) => {
105
- if (
106
- undefined != compilation.compiler.watchFileSystem &&
107
- Object.keys(compilation.compiler.watchFileSystem.watcher.mtimes)
108
- .length > 0
109
- ) {
110
- if (
111
- !Object.keys(
112
- compilation.compiler.watchFileSystem.watcher.mtimes
113
- ).some((value) => value.includes('tailwind.css'))
114
- ) {
115
- fs.readFile(
116
- path.resolve(__dirname, '../src/assets/tailwind.css'),
117
- 'utf8',
118
- (err, data) => {
119
- if (err) {
120
- console.error(err)
121
- return
122
- }
123
- fs.writeFile(
124
- path.resolve(__dirname, '../src/assets/tailwind.css'),
125
- data,
126
- (err) => {
127
- if (err) {
128
- console.error(err)
129
- return
130
- }
131
- //file written successfully
132
- }
133
- )
134
- }
135
- )
136
- }
137
- }
138
- })
139
- },
140
- }
114
+ )
141
115
  )
142
116
 
143
117
  config.stats = 'verbose'
@@ -145,4 +119,12 @@ module.exports = {
145
119
  // Return the altered config
146
120
  return config
147
121
  },
122
+ framework: {
123
+ name: '@storybook/html-webpack5',
124
+ options: {},
125
+ },
126
+ docs: {
127
+ autodocs: true,
128
+ },
148
129
  }
130
+ export default config
@@ -3,6 +3,9 @@
3
3
  <script defer src="https://unpkg.com/@alpine-collective/toolkit@1.0.0/dist/cdn.min.js"></script>
4
4
  <script defer src="https://unpkg.com/alpinejs@3.8.1/dist/cdn.min.js"></script>
5
5
  <script src="vendor/modernizr/modernizr.cust.js"></script>
6
+ <script src="vendor/js/header.alpine.js"></script>
6
7
  <!--to be sure hyphems work correctly lang Attribute needs to be "de"
7
8
  see: https://github.com/storybookjs/storybook/issues/11706 -->
8
- <script>document.documentElement.setAttribute('lang', 'de')</script>
9
+ <script>
10
+ document.documentElement.setAttribute('lang', 'de')
11
+ </script>
@@ -1,9 +1,9 @@
1
1
  import '!style-loader!css-loader!postcss-loader!tailwind'
2
2
  import 'tailwind'
3
+ import { withThemeByDataAttribute } from '@storybook/addon-styling'
3
4
 
4
5
  import hrDesignsystemDark from './HRDesignsystemDark'
5
6
  import hrDesignsystemLight from './HRDesignsystemLight'
6
- import { withThemeDecorator } from './withThemeDecorator'
7
7
  import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport'
8
8
 
9
9
  import Initializer from '../build/webpack/feature-loader/initializer/initializer'
@@ -50,10 +50,10 @@ document.addEventListener('DOMContentLoaded', function (event) {
50
50
  }
51
51
  })
52
52
 
53
- if (process.env.NODE_ENV !== 'production') {
53
+ /*if (process.env.NODE_ENV !== 'production') {
54
54
  console.log(Initializer)
55
55
  console.log('Looks like we are in development mode!')
56
- }
56
+ }*/
57
57
 
58
58
  const customViewports = {
59
59
  hrMin: {
@@ -145,42 +145,12 @@ export const parameters = {
145
145
  // Storybook a11y addon configuration
146
146
  a11y: {
147
147
  // the target DOM element
148
- element: '#root',
148
+ element: '#storybook-root',
149
149
  // sets the execution mode for the addon
150
150
  manual: false,
151
151
  },
152
152
  actions: { argTypesRegex: '^on[A-Z].*' },
153
153
  controls: { expanded: true },
154
- customConditionalToolbar: {
155
- /** Defines the possible sets that can be shown */
156
- sets: [
157
- {
158
- id: 'brands',
159
- options: [
160
- { id: 'hr', title: 'hr.de' },
161
- { id: 'hessenschau', title: 'hessenschau.de' },
162
- { id: 'hr1', title: 'hr1.de' },
163
- { id: 'hr2', title: 'hr2.de' },
164
- { id: 'hr3', title: 'hr3.de' },
165
- { id: 'hr4', title: 'hr4.de' },
166
- { id: 'you-fm', title: 'you-fm.de' },
167
- { id: 'hr-inforadio', title: 'hr-info.de' },
168
- { id: 'hr-fernsehen', title: 'hr-fernsehen.de' },
169
- { id: 'hr-rundfunkrat', title: 'hr-rundfunkrat.de' },
170
- { id: 'hr-werbung', title: 'hr-werbung.de' },
171
- { id: 'hr-bigband', title: 'hr-bigband.de' },
172
- { id: 'hr-sinfonieorchester', title: 'hr-sinfonieorchester.de' },
173
- ],
174
- },
175
- ],
176
- default: 'brands',
177
- /** Icon to use in toolbar, defaults to `switchalt`. All possible icons here: https://storybookjs.netlify.app/official-storybook/?path=/story/basics-icon--labels */
178
- icon: 'globe',
179
- /** title when hovering over the icon */
180
- title: 'Themes',
181
- /** Setting disable to true makes the addon disabled by default */
182
- // disable: true,
183
- },
184
154
  docs: {
185
155
  theme: hrDesignsystemLight,
186
156
  },
@@ -203,4 +173,24 @@ export const parameters = {
203
173
  },
204
174
  }
205
175
 
206
- export const decorators = [withThemeDecorator]
176
+ export const decorators = [
177
+ withThemeByDataAttribute({
178
+ themes: {
179
+ 'hessenschau': 'hessenschau',
180
+ 'hr': 'hr',
181
+ 'hr1': 'hr1',
182
+ 'hr2': 'hr2',
183
+ 'hr3': 'hr3',
184
+ 'hr4': 'hr4',
185
+ 'you-fm': 'you-fm',
186
+ 'hr-inforadio': 'hr-inforadio',
187
+ 'hr-fernsehen': 'hr-fernsehen',
188
+ 'hr-bigband': 'hr-bigband',
189
+ 'hr-sinfonieorchester': 'hr-sinfonieorchester',
190
+ 'hr-werbung': 'hr-werbung',
191
+ 'hr-rundfunkrat': 'hr-rundfunkrat',
192
+ },
193
+ defaultTheme: 'hessenschau',
194
+ attributeName: 'data-theme',
195
+ }),
196
+ ]
package/CHANGELOG.md CHANGED
@@ -1,3 +1,32 @@
1
+ # v1.11.12 (Thu Apr 20 2023)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Fixing data-model, and css [#608](https://github.com/mumprod/hr-design-system-handlebars/pull/608) ([@Paul-Atreidis](https://github.com/Paul-Atreidis))
6
+
7
+ #### Authors: 1
8
+
9
+ - [@Paul-Atreidis](https://github.com/Paul-Atreidis)
10
+
11
+ ---
12
+
13
+ # v1.11.11 (Tue Apr 18 2023)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - DPE-2270 - pfeil fehlt in der navigation bei aktiven menüpunkt [#607](https://github.com/mumprod/hr-design-system-handlebars/pull/607) ([@vascoeduardo](https://github.com/vascoeduardo))
18
+
19
+ #### 🏠 Internal
20
+
21
+ - Chore/dpe 2265 [#606](https://github.com/mumprod/hr-design-system-handlebars/pull/606) ([@szuelch](https://github.com/szuelch))
22
+
23
+ #### Authors: 2
24
+
25
+ - [@szuelch](https://github.com/szuelch)
26
+ - Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
27
+
28
+ ---
29
+
1
30
  # v1.11.10 (Mon Apr 17 2023)
2
31
 
3
32
  #### 🐛 Bug Fix
@@ -2679,7 +2679,7 @@ video {
2679
2679
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
2680
2680
  }
2681
2681
  .counter-reset {
2682
- counter-reset: cnt1681728211612;
2682
+ counter-reset: cnt1681950034913;
2683
2683
  }
2684
2684
  .line-clamp-4 {
2685
2685
  overflow: hidden;
@@ -2771,6 +2771,10 @@ video {
2771
2771
  .col-full {
2772
2772
  grid-column: full;
2773
2773
  }
2774
+ .-currentBrand::before {
2775
+ --tw-content: '';
2776
+ content: var(--tw-content);
2777
+ }
2774
2778
  @media (min-width: 1024px) {
2775
2779
 
2776
2780
  .-currentBrand::before {
@@ -2802,6 +2806,8 @@ video {
2802
2806
  border-bottom-width: 8px;
2803
2807
  --tw-border-opacity: 1;
2804
2808
  border-left-color: rgba(255, 255, 255, var(--tw-border-opacity));
2809
+ --tw-content: '';
2810
+ content: var(--tw-content);
2805
2811
  border-top-color: transparent;
2806
2812
  border-bottom-color: transparent;
2807
2813
  border-left-color: #ffffff;
@@ -2838,6 +2844,8 @@ video {
2838
2844
  border-bottom-width: 7px;
2839
2845
  --tw-border-opacity: 1;
2840
2846
  border-left-color: rgba(255, 255, 255, var(--tw-border-opacity));
2847
+ --tw-content: '';
2848
+ content: var(--tw-content);
2841
2849
  border-top-color: transparent;
2842
2850
  border-bottom-color: transparent;
2843
2851
  border-left-color: #ffffff;
@@ -2909,7 +2917,7 @@ video {
2909
2917
  --tw-ring-color: rgba(255, 255, 255, 0.5);
2910
2918
  }
2911
2919
  .-ordered {
2912
- counter-increment: cnt1681728211612 1;
2920
+ counter-increment: cnt1681950034913 1;
2913
2921
  }
2914
2922
  .-ordered::before {
2915
2923
  position: absolute;
@@ -2925,7 +2933,7 @@ video {
2925
2933
  letter-spacing: .0125em;
2926
2934
  --tw-text-opacity: 1;
2927
2935
  color: rgba(0, 0, 0, var(--tw-text-opacity));
2928
- content: counter(cnt1681728211612);
2936
+ content: counter(cnt1681950034913);
2929
2937
  }
2930
2938
  /*! ****************************/
2931
2939
  /*! text-shadow */
@@ -54,7 +54,7 @@
54
54
  </main>
55
55
 
56
56
  <div class="flex flex-wrap justify-center w-full max-w-full">
57
- {{> components/pagination/pagination }}
57
+ {{> components/pagination/pagination this }}
58
58
  </div>
59
59
  </div>
60
60
  </body>
@@ -1,18 +1,19 @@
1
- {{~#if this.isCurrentPageValid ~}}
1
+ {{~#if currentPageValid ~}}
2
2
  {{> components/pagination/pagination_current_page_valid
3
- _moreThanOnePage=this.isMoreThanOnePage
4
- _firstPage=this.isFirstPage
5
- _secondPage=this.isSecondPage
6
- _notLastPage=this.isNotLastPage
7
- _onlyTwoPages=this.isOnlyTwoPages
8
- _onlyThreePages=this.isOnlyThreePages
9
- _totalPages=this.totalPages
10
- _currentPage=this.currentPage}}
3
+ _moreThanOnePage=moreThanOnePage
4
+ _firstPage=firstPage
5
+ _secondPage=secondPage
6
+ _notLastPage=notLastPage
7
+ _notLastButOnePage=notLastButOnePage
8
+ _onlyTwoPages=onlyTwoPages
9
+ _onlyThreePages=onlyThreePages
10
+ _totalPages=totalPages
11
+ _currentPage=currentPage}}
11
12
  {{else}}
12
13
  {{> components/pagination/pagination_current_page_invalid
13
- _moreThanOnePage=this.isMoreThanOnePage
14
- _onlyTwoPages=this.isOnlyTwoPages
15
- _onlyThreePages=this.isOnlyThreePages
16
- _totalPages=this.totalPages
17
- _currentPage=this.currentPages}}
14
+ _moreThanOnePage=moreThanOnePage
15
+ _onlyTwoPages=onlyTwoPages
16
+ _onlyThreePages=onlyThreePages
17
+ _totalPages=totalPages
18
+ _currentPage=currentPages}}
18
19
  {{~/if~}}
@@ -1,4 +1,4 @@
1
- <nav class="flex content-center py-10" role="navigation" aria-label="Paginierung">
1
+ <nav class="flex content-center justify-center py-10" role="navigation" aria-label="Paginierung">
2
2
  {{> components/pagination/pagination_button_left }}
3
3
  <div class="px-20 py-10">
4
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>
@@ -1,5 +1,5 @@
1
1
  {{~#if _moreThanOnePage~}}
2
- <nav class="flex content-center py-10" role="navigation" aria-label="Paginierung">
2
+ <nav class="flex 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
@@ -17,6 +17,7 @@
17
17
  _firstPage=_firstPage
18
18
  _secondPage=_secondPage
19
19
  _notLastPage=_notLastPage
20
+ _notLastButOnePage=_notLastButOnePage
20
21
  _totalPages=_totalPages
21
22
  _currentPage=_currentPage}}
22
23
  {{~/if~}}
@@ -11,7 +11,7 @@
11
11
  {{> components/pagination/pagination_button_left_linked }}
12
12
  <div class="px-20 py-10">
13
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="font-title">2</span>
14
+ <span class="pl-5 font-title">2</span>
15
15
  <span class="px-5 py-10 font-title">&hellip;</span>
16
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
17
  </div>
@@ -23,8 +23,8 @@
23
23
  <span class="py-10 pl-5 font-title">&hellip;</span>
24
24
  <span class="px-5 py-10 font-bold font-title">{{_currentPage}}</span>
25
25
  {{~#if _notLastPage~}}
26
- {{~#if notLastButOnePage~}}
27
- <span class="font-title">&hellip;</span>
26
+ {{~#if _notLastButOnePage~}}
27
+ <span class="py-10 pr-5 font-title">&hellip;</span>
28
28
  {{~/if~}}
29
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
30
  {{~/if~}}
@@ -1,26 +1,26 @@
1
1
  {{~#if _firstPage~}}
2
2
  {{> components/pagination/pagination_button_left }}
3
3
  <div class="px-20 py-10">
4
- <span class="font-title">1</span>
5
- <a href="{{nextItemUrl}}" class="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="font-bold sb-link js-load hover:underline text-toplineColor font-title"><span class="hidden">Zur Seite </span>3</a>
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
7
  </div>
8
8
  {{> components/pagination/pagination_button_right_linked }}
9
9
  {{else}}
10
10
  {{~#if _secondPage~}}
11
11
  {{> components/pagination/pagination_button_left_linked }}
12
12
  <div class="px-20 py-10">
13
- <a href="{{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="font-title">2</span>
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
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
16
  </div>
17
17
  {{> components/pagination/pagination_button_right_linked }}
18
18
  {{else}}
19
19
  {{> components/pagination/pagination_button_left_linked }}
20
20
  <div class="px-20 py-10">
21
- <a href="{{firstPageItemUrl}}" class="font-bold sb-link js-load hover:underline text-toplineColor font-title"><span class="hidden">Zur Seite </span>1</a>
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
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="font-bold font-title">3</span>
23
+ <span class="py-10 pl-5 font-bold font-title">3</span>
24
24
  </div>
25
25
  {{> components/pagination/pagination_button_right }}
26
26
  {{~/if~}}
@@ -1,7 +1,7 @@
1
1
  {{~#if _firstPage~}}
2
2
  {{> components/pagination/pagination_button_left }}
3
3
  <div class="px-20 py-10">
4
- <span class="font-title">1</span>
4
+ <span class="py-10 pr-5 font-title">1</span>
5
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
6
  </div>
7
7
  {{> components/pagination/pagination_button_right_linked }}
@@ -9,7 +9,7 @@
9
9
  {{> components/pagination/pagination_button_left_linked }}
10
10
  <div class="px-20 py-10">
11
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="font-title">2</span>
12
+ <span class="py-10 pl-5 font-title">2</span>
13
13
  </div>
14
14
  {{> components/pagination/pagination_button_right }}
15
15
  {{~/if~}}
package/package.json CHANGED
@@ -6,13 +6,13 @@
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
8
8
  "repository": "https://github.com/szuelch/hr-design-system-handlebars",
9
- "version": "1.11.10",
9
+ "version": "1.11.12",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
- "storybook": "start-storybook -p 6006 public",
13
- "build-storybook": "build-storybook",
12
+ "storybook": "storybook dev -p 6006 public",
13
+ "build-storybook": "storybook build",
14
14
  "build-storybook-with-tailwind": "npm run build:tailwind && npm run build-storybook",
15
- "build-storybook-docs": "build-storybook --docs",
15
+ "build-storybook-docs": "storybook build --docs",
16
16
  "build-storybook-docs-with-tailwind": "npm run build:tailwind && npm run build-storybook-docs",
17
17
  "build:tailwind": "postcss src/assets/tailwind.css -o dist/assets/index.css",
18
18
  "build": "npm run clean && npm run build:tailwind && node ./build/scripts/build.js",
@@ -38,19 +38,23 @@
38
38
  "devDependencies": {
39
39
  "@babel/cli": "^7.13.16",
40
40
  "@babel/core": "^7.12.10",
41
- "@storybook/addon-a11y": "^6.5.9",
42
- "@storybook/addon-actions": "^6.5.9",
43
- "@storybook/addon-essentials": "^6.5.9",
44
- "@storybook/addon-links": "^6.5.9",
45
- "@storybook/addon-postcss": "^2.0.0",
46
- "@storybook/addons": "^6.5.9",
47
- "@storybook/html": "^6.5.9",
48
- "@storybook/theming": "^6.5.9",
41
+ "@babel/preset-env": "^7.21.4",
42
+ "@storybook/addon-a11y": "^7.0.5",
43
+ "@storybook/addon-actions": "^7.0.5",
44
+ "@storybook/addon-essentials": "^7.0.5",
45
+ "@storybook/addon-links": "^7.0.5",
46
+ "@storybook/addon-styling": "^1.0.1",
47
+ "@storybook/addons": "^7.0.5",
48
+ "@storybook/blocks": "7.0.5",
49
+ "@storybook/html": "^7.0.5",
50
+ "@storybook/html-webpack5": "7.0.5",
51
+ "@storybook/theming": "^7.0.5",
49
52
  "auto": "^10.26.0",
50
53
  "autoprefixer": "^10.4.2",
51
54
  "babel-loader": "^8.2.2",
52
55
  "chromatic": "^5.6.2",
53
56
  "copyfiles": "^2.4.1",
57
+ "core-js-pure": "^3.30.1",
54
58
  "cross-env": "^7.0.3",
55
59
  "fancy-log": "^2.0.0",
56
60
  "file-loader": "^6.2.0",
@@ -82,12 +86,15 @@
82
86
  "prettier": "^2.2.1",
83
87
  "raw-loader": "^4.0.2",
84
88
  "react": "^18.2.0",
89
+ "react-dom": "^18.2.0",
90
+ "remark-gfm": "^3.0.1",
85
91
  "rimraf": "^3.0.2",
86
- "storybook": "^6.5.9",
92
+ "storybook": "^7.0.5",
87
93
  "storybook-conditional-toolbar-selector": "^1.0.3",
88
94
  "tailwindcss": "^3.0.23",
89
95
  "tailwindcss-hyphens": "^0.1.0",
90
96
  "tailwindcss-important": "^1.0.0",
97
+ "typescript": "^5.0.4",
91
98
  "underscore": "^1.13.2",
92
99
  "zepto-modules": "^1.0.1"
93
100
  },
@@ -104,13 +104,13 @@
104
104
  }
105
105
 
106
106
  .-currentBrand {
107
- @apply lg:before:absolute lg:before:w-0 lg:before:h-0 lg:before:border-t-0 lg:before:border-r-8 lg:before:border-r-transparent lg:before:border-l-8 lg:before:border-l-white lg:before:border-b-8 lg:before:border-blue-congress lg:before:mt-6;
107
+ @apply before:content-[''] lg:before:absolute lg:before:w-0 lg:before:h-0 lg:before:border-t-0 lg:before:border-r-8 lg:before:border-r-transparent lg:before:border-l-8 lg:before:border-l-white lg:before:border-b-8 lg:before:border-blue-congress lg:before:mt-6;
108
108
  }
109
109
  .-currentService {
110
- @apply before:hidden lg:before:flex before:relative before:w-0 before:h-0 before:mr-4 before:mt-0 before:border-r-0 before:border-t-8 before:border-t-transparent before:border-l-8 before:border-l-white before:border-b-8 before:border-b-transparent lg:before:absolute lg:before:w-0 lg:before:h-0 lg:before:mr-0 lg:before:border-t-0 lg:before:border-r-8 lg:before:border-r-transparent lg:before:border-l-8 lg:before:border-l-transparent lg:before:border-b-8 lg:before:border-b-white lg:before:mt-12;
110
+ @apply before:content-[''] before:hidden lg:before:flex before:relative before:w-0 before:h-0 before:mr-4 before:mt-0 before:border-r-0 before:border-t-8 before:border-t-transparent before:border-l-8 before:border-l-white before:border-b-8 before:border-b-transparent lg:before:absolute lg:before:w-0 lg:before:h-0 lg:before:mr-0 lg:before:border-t-0 lg:before:border-r-8 lg:before:border-r-transparent lg:before:border-l-8 lg:before:border-l-transparent lg:before:border-b-8 lg:before:border-b-white lg:before:mt-12;
111
111
  }
112
112
  .-currentSection {
113
- @apply before:w-0 before:h-0 before:mr-2 before:-ml-4 before:border-r-0 before:border-t-7 before:border-t-transparent before:border-l-8 before:border-l-white before:border-b-7 before:border-b-transparent before:mb-0.5 lg:before:absolute lg:before:mb-0 lg:before:w-0 lg:before:h-0 lg:before:mr-0 lg:before:ml-0 lg:before:border-t-0 lg:before:border-r-8 lg:before:border-r-transparent lg:before:border-l-8 lg:before:border-l-transparent lg:before:border-b-8 lg:before:border-b-white lg:before:mt-8;
113
+ @apply before:content-[''] before:w-0 before:h-0 before:mr-2 before:-ml-4 before:border-r-0 before:border-t-7 before:border-t-transparent before:border-l-8 before:border-l-white before:border-b-7 before:border-b-transparent before:mb-0.5 lg:before:absolute lg:before:mb-0 lg:before:w-0 lg:before:h-0 lg:before:mr-0 lg:before:ml-0 lg:before:border-t-0 lg:before:border-r-8 lg:before:border-r-transparent lg:before:border-l-8 lg:before:border-l-transparent lg:before:border-b-8 lg:before:border-b-white lg:before:mt-8;
114
114
  }
115
115
  .-warnung {
116
116
  @apply text-red-600 !important;
@@ -1,19 +1,20 @@
1
- {
2
- "isMoreThanOnePage": true,
3
- "isOnlyThreePages": false,
4
- "isOnlyTwoPages": false,
5
- "isFirstPage": true,
6
- "isSecondPage": false,
7
- "isNotLastPage": false,
1
+ {
2
+ "moreThanOnePage": true,
3
+ "onlyThreePages": false,
4
+ "onlyTwoPages": false,
5
+ "firstPage": true,
6
+ "secondPage": false,
7
+ "notLastButOnePage": false,
8
+ "notLastPage": false,
8
9
  "firstPageItemUrl":"page1",
9
10
  "nextItemUrl":"page2",
10
11
  "previousItemUrl":"empty",
11
12
  "lastPageItemUrl":"page4",
12
13
  "lastButOnePageItemUrl":"page1",
13
14
  "totalPages": 4,
14
- "currentPage":"page1",
15
+ "currentPage": 2,
15
16
  "currentPageIndex": 0,
16
- "isCurrentPageValid": true,
17
+ "currentPageValid": true,
17
18
  "pageEntries":[
18
19
  {
19
20
  "teaser_alternativ_100_serif":{
@@ -34,7 +35,7 @@
34
35
  "teaser_alternativ_100_serif_video":{
35
36
  "@->jsoninclude": "teaser/teaser_alternative_100_serif_video.json"
36
37
  }
37
- },
38
+ },
38
39
  {
39
40
  "teaser_alternativ_100_serif_download":{
40
41
  "@->jsoninclude": "teaser/teaser_alternative_100_serif_download.json"
@@ -54,7 +55,7 @@
54
55
  "teaser_alternativ_100_serif_download":{
55
56
  "@->jsoninclude": "teaser/teaser_alternative_100_serif_download.json"
56
57
  }
57
- },
58
+ },
58
59
  {
59
60
  "teaser_alternativ_100_serif_audio":{
60
61
  "@->jsoninclude": "teaser/teaser_alternative_100_serif_audio.json"
@@ -74,7 +75,7 @@
74
75
  "teaser_alternativ_100_serif_audio":{
75
76
  "@->jsoninclude": "teaser/teaser_alternative_100_serif_audio.json"
76
77
  }
77
- },
78
+ },
78
79
  {
79
80
  "teaser_alternativ_100_serif_video":{
80
81
  "@->jsoninclude": "teaser/teaser_alternative_100_serif_video.json"
@@ -94,7 +95,7 @@
94
95
  "teaser_alternativ_100_serif_video":{
95
96
  "@->jsoninclude": "teaser/teaser_alternative_100_serif_video.json"
96
97
  }
97
- }
98
+ }
98
99
 
99
- ]
100
+ ]
100
101
  }