hr-design-system-handlebars 1.16.1 → 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 (76) hide show
  1. package/CHANGELOG.md +24 -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/site_header/header.hbs +4 -3
  17. package/dist/views/components/teaser/teaser_poster.hbs +1 -1
  18. package/package.json +1 -1
  19. package/src/assets/brand/hessenschau/conf/locatags.merged.json +0 -1
  20. package/src/assets/brand/hr/conf/locatags.merged.json +0 -1
  21. package/src/assets/brand/hr-bigband/conf/locatags.merged.json +0 -1
  22. package/src/assets/brand/hr-fernsehen/conf/locatags.merged.json +0 -1
  23. package/src/assets/brand/hr-inforadio/conf/locatags.merged.json +0 -1
  24. package/src/assets/brand/hr-rundfunkrat/conf/locatags.merged.json +0 -1
  25. package/src/assets/brand/hr-sinfonieorchester/conf/locatags.merged.json +0 -1
  26. package/src/assets/brand/hr-werbung/conf/locatags.merged.json +0 -1
  27. package/src/assets/brand/hr1/conf/locatags.merged.json +0 -1
  28. package/src/assets/brand/hr2/conf/locatags.merged.json +0 -1
  29. package/src/assets/brand/hr3/conf/locatags.merged.json +0 -1
  30. package/src/assets/brand/hr4/conf/locatags.merged.json +0 -1
  31. package/src/assets/brand/you-fm/conf/locatags.merged.json +0 -1
  32. package/src/assets/fixtures/page/page_pagination.json +15 -5
  33. package/src/assets/fixtures/site_header/site_header_default.json +1 -0
  34. package/src/assets/fixtures/site_header/site_header_default_no_sticky.json +9 -0
  35. package/src/assets/fixtures/site_header/site_header_mit_submenu.json +1 -0
  36. package/src/assets/fixtures/site_header/site_header_mit_submenu_no_sticky.json +9 -0
  37. package/src/assets/fixtures/site_header/site_header_mit_top_topics.json +1 -0
  38. package/src/assets/fixtures/site_header/site_header_mit_top_topics_no_sticky.json +9 -0
  39. package/src/assets/fixtures/site_header/site_header_mit_warnung.json +1 -0
  40. package/src/assets/fixtures/site_header/site_header_mit_warnung_no_sticky.json +9 -0
  41. package/src/assets/tailwind.css +2 -0
  42. package/src/stories/views/components/button/button.hbs +1 -1
  43. package/src/stories/views/components/button/button.mdx +10 -1
  44. package/src/stories/views/components/button/button.stories.js +66 -0
  45. package/src/stories/views/components/button/link_button.hbs +1 -1
  46. package/src/stories/views/components/button/link_button.mdx +8 -0
  47. package/src/stories/views/components/button/link_button.stories.js +66 -0
  48. package/src/stories/views/components/button/utilities/button_variation_classes.hbs +9 -1
  49. package/src/stories/views/components/event/event_ticket_button.hbs +2 -2
  50. package/src/stories/views/components/page/fixtures/page_pagination.json +1 -1
  51. package/src/stories/views/components/page/page.mdx +0 -10
  52. package/src/stories/views/components/page/page.stories.js +17 -1
  53. package/src/stories/views/components/page/page_pagination.mdx +52 -3
  54. package/src/stories/views/components/page/page_pagination.stories.js +134 -4
  55. package/src/stories/views/components/pagination/pagination_button_left.hbs +3 -3
  56. package/src/stories/views/components/pagination/pagination_button_left_linked.hbs +3 -5
  57. package/src/stories/views/components/pagination/pagination_button_right.hbs +4 -3
  58. package/src/stories/views/components/pagination/pagination_button_right_linked.hbs +3 -5
  59. package/src/stories/views/components/pagination/pagination_current_page_invalid.hbs +14 -7
  60. package/src/stories/views/components/pagination/pagination_current_page_valid.hbs +1 -1
  61. package/src/stories/views/components/pagination/pagination_more_than_three_pages.hbs +40 -24
  62. package/src/stories/views/components/pagination/pagination_only_three_pages.hbs +41 -23
  63. package/src/stories/views/components/pagination/pagination_only_two_pages.hbs +19 -11
  64. package/src/stories/views/components/site_header/fixtures/site_header_default copy.json +1 -0
  65. package/src/stories/views/components/site_header/fixtures/site_header_default.json +1 -1
  66. package/src/stories/views/components/site_header/fixtures/site_header_default_no_sticky.json +1 -0
  67. package/src/stories/views/components/site_header/fixtures/site_header_mit_submenu.json +1 -1
  68. package/src/stories/views/components/site_header/fixtures/site_header_mit_submenu_no_sticky.json +1 -0
  69. package/src/stories/views/components/site_header/fixtures/site_header_mit_top_topics.json +1 -1
  70. package/src/stories/views/components/site_header/fixtures/site_header_mit_top_topics_no_sticky.json +1 -0
  71. package/src/stories/views/components/site_header/fixtures/site_header_mit_warnung.json +1 -1
  72. package/src/stories/views/components/site_header/fixtures/site_header_mit_warnung_no_sticky.json +1 -0
  73. package/src/stories/views/components/site_header/header.hbs +4 -3
  74. package/src/stories/views/components/site_header/header.stories.js +5 -5
  75. package/src/stories/views/components/teaser/teaser_poster.hbs +1 -1
  76. package/tailwind.config.js +2 -0
@@ -6,11 +6,21 @@
6
6
  "secondPage": false,
7
7
  "notLastButOnePage": false,
8
8
  "notLastPage": false,
9
- "firstPageItemUrl":"page1",
10
- "nextItemUrl":"page2",
11
- "previousItemUrl":"empty",
12
- "lastPageItemUrl":"page4",
13
- "lastButOnePageItemUrl":"page1",
9
+ "firstPageItemLink" : {
10
+ "url": "firstPage"
11
+ },
12
+ "nextItemLink" : {
13
+ "url": "nextItem"
14
+ },
15
+ "previousItemLink" : {
16
+ "url": "previousItem"
17
+ },
18
+ "lastPageItemLink" : {
19
+ "url": "lastPage"
20
+ },
21
+ "lastButOnePageItemLink" : {
22
+ "url": "LastButOnePage"
23
+ },
14
24
  "totalPages": 4,
15
25
  "currentPage": 2,
16
26
  "currentPageIndex": 0,
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "hasOpenSubNavigation": false,
3
+ "_useSticky": true,
3
4
  "brandNavigationItems": {
4
5
  "@->jsoninclude": "site_header/brandNavigation.inc.json"
5
6
  },
@@ -0,0 +1,9 @@
1
+ {
2
+ "@->jsoninclude": "site_header/site_header_default.json",
3
+ "@->overrides" : [
4
+ {
5
+ "@->contentpath": "_useSticky",
6
+ "@->value": false
7
+ }
8
+ ]
9
+ }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "hasOpenSubNavigation": true,
3
+ "_useSticky": true,
3
4
  "brandNavigationItems": {
4
5
  "@->jsoninclude": "site_header/brandNavigation.inc.json"
5
6
  },
@@ -0,0 +1,9 @@
1
+ {
2
+ "@->jsoninclude": "site_header/site_header_mit_submenu.json",
3
+ "@->overrides" : [
4
+ {
5
+ "@->contentpath": "_useSticky",
6
+ "@->value": false
7
+ }
8
+ ]
9
+ }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "hasOpenSubNavigation": false,
3
+ "_useSticky": true,
3
4
  "brandNavigationItems": {
4
5
  "@->jsoninclude": "site_header/brandNavigation.inc.json"
5
6
  },
@@ -0,0 +1,9 @@
1
+ {
2
+ "@->jsoninclude": "site_header/site_header_mit_top_topics.json",
3
+ "@->overrides" : [
4
+ {
5
+ "@->contentpath": "_useSticky",
6
+ "@->value": false
7
+ }
8
+ ]
9
+ }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "hasOpenSubNavigation": false,
3
+ "_useSticky": true,
3
4
  "brandNavigationItems": {
4
5
  "@->jsoninclude": "site_header/brandNavigation.inc.json"
5
6
  },
@@ -0,0 +1,9 @@
1
+ {
2
+ "@->jsoninclude": "site_header/site_header_mit_warnung.json",
3
+ "@->overrides" : [
4
+ {
5
+ "@->contentpath": "_useSticky",
6
+ "@->value": false
7
+ }
8
+ ]
9
+ }
@@ -129,6 +129,8 @@
129
129
  --color-button--dark: theme('colors.blue.congress');
130
130
  --color-button-inverted: theme('colors.white.DEFAULT');
131
131
  --color-button-inverted--dark: theme('colors.blue.accented');
132
+ --color-button-disabled: theme('colors.gray.lightGray');
133
+ --color-button-disabled--dark: theme('colors.gray.boulder');
132
134
  /* Media-Button */
133
135
  --color-media-button: theme('colors.blue.science');
134
136
  /* States */
@@ -1,6 +1,6 @@
1
1
  <button
2
2
  {{#if _id}} id="{{_id}}"{{/if}}
3
- class="ds-button {{> components/button/utilities/button_base_classes}} {{> components/button/utilities/button_variation_classes _variant=_variant _onBackground=_onBackground _disableButtonPress=_disableButtonPress}} {{> components/button/utilities/button_dimension_classes _size=_size}}{{#if _css}} {{_css}}{{/if}} {{#> css}}{{/css}}{{#if _openModal}} js-modalButton{{/if}}"
3
+ class="ds-button {{> components/button/utilities/button_base_classes}} {{> components/button/utilities/button_variation_classes _variant=_variant _onBackground=_onBackground _disableButtonPress=_disableButtonPress _disabled=_disabled}} {{> components/button/utilities/button_dimension_classes _size=_size}}{{#if _css}} {{_css}}{{/if}} {{#> css}}{{/css}}{{#if _openModal}} js-modalButton{{/if}}"
4
4
  {{#if _openModal}} aria-haspopup="true"{{/if}}
5
5
  {{~#if _ariaLabel}} aria-label="{{_ariaLabel}}"{{/if}}
6
6
  type="{{defaultIfEmpty _type "submit"}}"
@@ -53,13 +53,22 @@ unterscheidbar zu machen, sind unterschiedliche optische Varianten und Größen
53
53
  <Story of={ButtonStories.ButtonTertiary} />
54
54
  </Canvas>
55
55
 
56
- ### Button mit Icon <a id="button-icon" />
56
+ ### Button-Arten (Deaktiviert)
57
+
58
+ <Canvas>
59
+ <Story of={ButtonStories.ButtonPrimaryDisabled} />
60
+ <Story of={ButtonStories.ButtonSecondaryDisabled} />
61
+ <Story of={ButtonStories.ButtonTertiaryDisabled} />
62
+ </Canvas>
63
+
64
+ ### Button mit Icon
57
65
 
58
66
  <Canvas>
59
67
  <Story of={ButtonStories.ButtonIconRechts} />
60
68
  <Story of={ButtonStories.ButtonIconLinks} />
61
69
  </Canvas>
62
70
 
71
+
63
72
  ## Verwendung
64
73
 
65
74
  Ein Button wird mit der Handlebar Komponente `button` eingebunden. Wie einleitend schon beschrieben, stellt diese
@@ -388,6 +388,71 @@ export const ButtonTertiary = {
388
388
  },
389
389
  }
390
390
 
391
+ export const ButtonPrimaryDisabled = {
392
+ render: buttonWithLabelTemplate.bind({}),
393
+ name: 'Button - Primary Deaktiviert',
394
+
395
+ argTypes: {
396
+ _size: {
397
+ control: false,
398
+ },
399
+
400
+ _variant: {
401
+ control: false,
402
+ },
403
+ },
404
+
405
+ args: {
406
+ _size: 'lg',
407
+ _label: 'Primary',
408
+ _disabled : true
409
+ },
410
+ }
411
+
412
+ export const ButtonSecondaryDisabled = {
413
+ render: buttonWithLabelTemplate.bind({}),
414
+ name: 'Button - Secondary Deaktiviert',
415
+
416
+ argTypes: {
417
+ _size: {
418
+ control: false,
419
+ },
420
+
421
+ _variant: {
422
+ control: false,
423
+ },
424
+ },
425
+
426
+ args: {
427
+ _size: 'lg',
428
+ _label: 'Secondary',
429
+ _variant: 'secondary',
430
+ _disabled : true
431
+ },
432
+ }
433
+
434
+ export const ButtonTertiaryDisabled = {
435
+ render: buttonWithLabelTemplate.bind({}),
436
+ name: 'Button - Tertiary Deaktiviert',
437
+
438
+ argTypes: {
439
+ _size: {
440
+ control: false,
441
+ },
442
+
443
+ _variant: {
444
+ control: false,
445
+ },
446
+ },
447
+
448
+ args: {
449
+ _size: 'lg',
450
+ _label: 'Tertiary',
451
+ _variant: 'tertiary',
452
+ _disabled : true
453
+ },
454
+ }
455
+
391
456
  export const ButtonIconRechts = {
392
457
  render: buttonWithLabelAndIconRightTemplate.bind({}),
393
458
  name: 'Button - Icon rechts',
@@ -409,6 +474,7 @@ export const ButtonIconRechts = {
409
474
  },
410
475
  }
411
476
 
477
+
412
478
  export const ButtonIconLinks = {
413
479
  render: buttonWithLabelAndIconLeftTemplate.bind({}),
414
480
  name: 'Button - Icon links',
@@ -2,5 +2,5 @@
2
2
  {{> @partial-block }}
3
3
  {{/components/base/link}}
4
4
  {{#*inline "css"~}}
5
- {{> components/button/utilities/button_base_classes}} {{> components/button/utilities/button_variation_classes _variant=_variant-adjust_context _onBackground=_onBackground-adjust_context}} {{> components/button/utilities/button_dimension_classes _size=_size-adjust_context~}}
5
+ {{> components/button/utilities/button_base_classes}} {{> components/button/utilities/button_variation_classes _variant=_variant-adjust_context _onBackground=_onBackground-adjust_context _disableButtonPress=_disableButtonPress-adjust_context _disabled=_disabled-adjust_context}} {{> components/button/utilities/button_dimension_classes _size=_size-adjust_context~}}
6
6
  {{~/inline}}
@@ -51,6 +51,14 @@ unterscheidbar zu machen, sind unterschiedliche optische Varianten und Größen
51
51
  <Story of={LinkButtonStories.ButtonTertiary} />
52
52
  </Canvas>
53
53
 
54
+ ### Button-Arten (Deaktiviert)
55
+
56
+ <Canvas>
57
+ <Story of={LinkButtonStories.ButtonPrimaryDisabled} />
58
+ <Story of={LinkButtonStories.ButtonSecondaryDisabled} />
59
+ <Story of={LinkButtonStories.ButtonTertiaryDisabled} />
60
+ </Canvas>
61
+
54
62
  ### Button mit Icon <a id="button-icon" />
55
63
 
56
64
  <Canvas>
@@ -310,6 +310,72 @@ export const ButtonTertiary = {
310
310
  },
311
311
  }
312
312
 
313
+ export const ButtonPrimaryDisabled = {
314
+ render: buttonWithLabelTemplate.bind({}),
315
+ name: 'Button - Primary Deaktiviert',
316
+
317
+ argTypes: {
318
+ _size: {
319
+ control: false,
320
+ },
321
+
322
+ _variant: {
323
+ control: false,
324
+ },
325
+ },
326
+
327
+ args: {
328
+ _size: 'lg',
329
+ _label: 'Primary',
330
+ _disabled: true
331
+ },
332
+ }
333
+
334
+ export const ButtonSecondaryDisabled = {
335
+ render: buttonWithLabelTemplate.bind({}),
336
+ name: 'Button - Secondary Deaktiviert',
337
+
338
+ argTypes: {
339
+ _size: {
340
+ control: false,
341
+ },
342
+
343
+ _variant: {
344
+ control: false,
345
+ },
346
+ },
347
+
348
+ args: {
349
+ _size: 'lg',
350
+ _label: 'Secondary',
351
+ _variant: 'secondary',
352
+ _disabled: true
353
+ },
354
+ }
355
+
356
+ export const ButtonTertiaryDisabled = {
357
+ render: buttonWithLabelTemplate.bind({}),
358
+ name: 'Button - Tertiary Deaktiviert',
359
+
360
+ argTypes: {
361
+ _size: {
362
+ control: false,
363
+ },
364
+
365
+ _variant: {
366
+ control: false,
367
+ },
368
+ },
369
+
370
+ args: {
371
+ _size: 'lg',
372
+ _label: 'Tertiary',
373
+ _variant: 'tertiary',
374
+ _disabled: true
375
+ },
376
+ }
377
+
378
+
313
379
  export const ButtonIconRechts = {
314
380
  render: buttonWithLabelAndIconRightTemplate.bind({}),
315
381
  name: 'Button - Icon rechts',
@@ -1,9 +1,17 @@
1
1
  {{#if _onBackground~}}
2
- {{inline-switch
2
+ {{inline-switch
3
3
  _variant
4
4
  '["primary","secondary","tertiary"]'
5
5
  '[" border text-button bg-button-inverted border-button-inverted hover:bg-button-inverted--dark active:bg-button-inverted--dark "," border text-button-inverted border-button-inverted hover:bg-button-inverted--dark hover:text-button active:text-button active:bg-button-inverted--dark "," bg-transparent border-transparent text-button-inverted hover:bg-button-inverted--dark hover:text-button hover:border-button-inverted--dark active:text-button active:bg-button-inverted--dark "," border text-button bg-button-inverted border-button-inverted hover:bg-button-inverted--dark active:bg-button-inverted--dark "]'
6
6
  ~}}
7
+ {{else if _disabled~}}
8
+
9
+ {{inline-switch
10
+ _variant
11
+ '["primary","secondary","tertiary"]'
12
+ '[" border text-button-disabled--dark bg-button-disabled border-button-disabled "," border text-button-disabled--dark border-button-disabled "," bg-transparent border-transparent text-button-disabled--dark "," border text-button-disabled--dark bg-button-disabled border-button-disabled "]'
13
+ ~}}
14
+
7
15
  {{else}}
8
16
  {{~inline-switch
9
17
  _variant
@@ -1,4 +1,4 @@
1
- <div class="static pl-4 pt-1 pb-3 sm:absolute sm:pl-0 sm:pt-0 sm:pb-0 sm:right-4 sm:bottom-4">
1
+ <div class="static pt-1 pb-3 pl-4 sm:absolute sm:pl-0 sm:pt-0 sm:pb-0 sm:right-4 sm:bottom-4">
2
2
  {{#> components/button/button _id=(nextRandom) _size="lg"}}
3
3
  {{> components/button/components/button_icon _icon="ticket" _iconmap="icons" _css="mr-2"}}
4
4
  {{>components/button/components/button_label _label="Tickets"}}
@@ -7,7 +7,7 @@
7
7
  {{#> components/teaser/components/teaser_headline}}
8
8
  {{> components/teaser/components/teaser_title _text=(loca 'ticket_modal_headline') _css="text-2xl"}}
9
9
  {{/components/teaser/components/teaser_headline}}
10
- <p class="text-base font-copy mt-2">{{loca "ticket_modal_text"}}</p>
10
+ <p class="mt-2 text-base font-copy">{{loca "ticket_modal_text"}}</p>
11
11
 
12
12
  <div class="flex flex-wrap mt-4">
13
13
  {{#> components/button/button _size="lg" _variant="tertiary" _value="cancel" _css="mr-4 mt-4"}}