maverick-wave-astro 1.18.0 → 1.20.0

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/bin/check.mjs CHANGED
@@ -36,7 +36,7 @@ ajv.addVocabulary([
36
36
  // The werkbank fills it with the designs of the section Stories, lowers the
37
37
  // maximum of the list without the larger booking, and keeps its ids.
38
38
  'x-story-design',
39
- 'x-basic-max-items',
39
+ 'x-package',
40
40
  'x-keep-ids',
41
41
  ]);
42
42
  // Same rule as in the werkbank: YYYY-MM-DD compares as text.
@@ -19,6 +19,7 @@ interface Props {
19
19
  badge?: { text: string; pulse?: boolean };
20
20
  cta?: Link;
21
21
  secondaryCta?: Link;
22
+ ctaShine?: boolean;
22
23
  scrollHint?: Link & { ariaLabel: string };
23
24
  classes?: {
24
25
  hero?: string;
@@ -44,6 +45,7 @@ const {
44
45
  badge,
45
46
  cta,
46
47
  secondaryCta,
48
+ ctaShine = false,
47
49
  scrollHint,
48
50
  classes = {},
49
51
  } = Astro.props;
@@ -120,7 +122,11 @@ const button = classes.buttons ?? 'mw-btn-lg';
120
122
  >
121
123
  {cta && (
122
124
  <a
123
- class:list={['mw-btn mw-btn-primary', button]}
125
+ class:list={[
126
+ 'mw-btn mw-btn-primary',
127
+ ctaShine && 'mw-btn-shine',
128
+ button,
129
+ ]}
124
130
  href={cta.href}
125
131
  >
126
132
  <slot name="cta-icon" />
@@ -129,7 +135,11 @@ const button = classes.buttons ?? 'mw-btn-lg';
129
135
  )}
130
136
  {secondaryCta && (
131
137
  <a
132
- class:list={['mw-btn mw-btn-outline', button]}
138
+ class:list={[
139
+ 'mw-btn mw-btn-outline',
140
+ Astro.slots.has('secondary-icon') && 'mw-btn-forward',
141
+ button,
142
+ ]}
133
143
  href={secondaryCta.href}
134
144
  >
135
145
  {secondaryCta.label}
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  // Something is on its way. "inline" takes the size and colour of the text it
3
- // sits in - a button with aria-busy, a line still loading - and leaves the
4
- // words to that text. The others stand centred in their own box and are read
5
- // out by their label.
3
+ // sits in - a button that keeps its label, a line still loading - and leaves
4
+ // the words to that text. The others stand centred in their own box and are
5
+ // read out by their label.
6
6
  import { config } from '../dist/config.js';
7
7
 
8
8
  interface Props {
@@ -21,6 +21,7 @@ interface Props {
21
21
  badge?: { text: string; pulse?: boolean };
22
22
  cta?: Link;
23
23
  secondaryCta?: Link;
24
+ ctaShine?: boolean;
24
25
  // As for Picture, loaded at once - it is the first thing on the page. Or the
25
26
  // `media` slot.
26
27
  image?: {
@@ -44,6 +45,7 @@ const {
44
45
  badge,
45
46
  cta,
46
47
  secondaryCta,
48
+ ctaShine = false,
47
49
  image,
48
50
  reverse = false,
49
51
  level: Heading = 'h1',
@@ -109,14 +111,23 @@ const order = reverse ? ['media', 'text'] : ['text', 'media'];
109
111
  {(cta || secondaryCta) && (
110
112
  <div class="mw-d-flex mw-flex-wrap mw-gap-4 mw-mt-7">
111
113
  {cta && (
112
- <a class="mw-btn mw-btn-primary mw-btn-lg" href={cta.href}>
114
+ <a
115
+ class:list={[
116
+ 'mw-btn mw-btn-primary mw-btn-lg',
117
+ ctaShine && 'mw-btn-shine',
118
+ ]}
119
+ href={cta.href}
120
+ >
113
121
  <slot name="cta-icon" />
114
122
  {cta.label}
115
123
  </a>
116
124
  )}
117
125
  {secondaryCta && (
118
126
  <a
119
- class="mw-btn mw-btn-outline mw-btn-lg"
127
+ class:list={[
128
+ 'mw-btn mw-btn-outline mw-btn-lg',
129
+ Astro.slots.has('secondary-icon') && 'mw-btn-forward',
130
+ ]}
120
131
  href={secondaryCta.href}
121
132
  >
122
133
  {secondaryCta.label}
@@ -0,0 +1,16 @@
1
+ ---
2
+ // Cards that pile up while the page scrolls - a handful of projects or case
3
+ // studies, each a row of its own. From lg every child stops below the header,
4
+ // one step lower than the one before, and the next slides over it; on a phone
5
+ // a plain stack. Each child needs a background of its own, a mw-card has one.
6
+ // The offset counts up to the twelfth child.
7
+ interface Props {
8
+ class?: string;
9
+ }
10
+
11
+ const { class: className } = Astro.props;
12
+ ---
13
+
14
+ <div class:list={['mw-stack', className]}>
15
+ <slot />
16
+ </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maverick-wave-astro",
3
- "version": "1.18.0",
3
+ "version": "1.20.0",
4
4
  "description": "Shared frame for static Astro homepages built with MaverickWave: layout, SEO, design variants, schedule, building blocks.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "peerDependencies": {
55
55
  "astro": "^7.2.0",
56
- "maverick-wave": "^6.12.0"
56
+ "maverick-wave": "^6.14.0"
57
57
  },
58
58
  "dependencies": {
59
59
  "@astrojs/sitemap": "^3.7.3",
@@ -68,7 +68,7 @@
68
68
  "eslint-plugin-astro": "^1.5.0",
69
69
  "eslint-plugin-simple-import-sort": "^12.1.1",
70
70
  "globals": "^16.5.0",
71
- "maverick-wave": "^6.12.0",
71
+ "maverick-wave": "^6.14.0",
72
72
  "playwright-core": "^1.64.0",
73
73
  "prettier": "^3.6.2",
74
74
  "prettier-plugin-astro": "^0.14.1",
@@ -8,10 +8,9 @@
8
8
  "properties": {
9
9
  "designs": {
10
10
  "title": "Designs",
11
- "description": "Das erste gilt für jede Story, die kein eigenes gewählt hat. Im Stories-Paket sind 2 Designs dabei, bis zu 5 gibt es auf Anfrage.",
11
+ "description": "Das erste gilt für jede Story, die kein eigenes gewählt hat. Bis zu 3 Designs.",
12
12
  "type": "array",
13
- "maxItems": 5,
14
- "x-basic-max-items": 2,
13
+ "maxItems": 3,
15
14
  "x-keep-ids": true,
16
15
  "x-item-title": "{name}",
17
16
  "default": [
@@ -255,9 +254,10 @@
255
254
  },
256
255
  "motion": {
257
256
  "title": "Als Video",
258
- "description": "Die Story wird ein kurzes Video statt eines Bildes: Logo, Inhaltsbox und Zeilen kommen nacheinander herein, danach bleibt alles an seinem Platz. Die Vorschau spielt das Video in einer Schleife ab.",
257
+ "description": "Die Story wird ein kurzes Video statt eines Bildes: Logo, Inhaltsbox und Zeilen kommen nacheinander herein, danach bleibt alles an seinem Platz. Die Vorschau spielt das Video in einer Schleife ab. Gehört zum Zusatz „Bewegte Stories“.",
259
258
  "type": "boolean",
260
- "default": false
259
+ "default": false,
260
+ "x-package": "stories-video"
261
261
  },
262
262
  "entrance": {
263
263
  "title": "Wie alles hereinkommt",
@@ -286,7 +286,8 @@
286
286
  "x-show-if": {
287
287
  "motion": "true"
288
288
  },
289
- "description": "Wie Logo, Inhaltsbox und Zeilen in das Video kommen - alle drei passend zueinander. Die Vorschau spielt es nach jeder Änderung ab."
289
+ "description": "Wie Logo, Inhaltsbox und Zeilen in das Video kommen - alle drei passend zueinander. Die Vorschau spielt es nach jeder Änderung ab.",
290
+ "x-package": "stories-video"
290
291
  },
291
292
  "effect": {
292
293
  "title": "Danach bis zum Ende",
@@ -314,7 +315,8 @@
314
315
  },
315
316
  "x-show-if": {
316
317
  "motion": "true"
317
- }
318
+ },
319
+ "x-package": "stories-video"
318
320
  },
319
321
  "backdrop": {
320
322
  "title": "Bewegung im Hintergrund",
@@ -340,7 +342,8 @@
340
342
  },
341
343
  "x-show-if": {
342
344
  "motion": "true"
343
- }
345
+ },
346
+ "x-package": "stories-video"
344
347
  },
345
348
  "seconds": {
346
349
  "x-show-if": {
@@ -352,7 +355,8 @@
352
355
  "maximum": 15,
353
356
  "x-widget": "slider",
354
357
  "default": 8,
355
- "description": "Das Hereinkommen dauert davon zwei bis drei Sekunden, die restliche Zeit läuft nur noch „Danach bis zum Ende“."
358
+ "description": "Das Hereinkommen dauert davon zwei bis drei Sekunden, die restliche Zeit läuft nur noch „Danach bis zum Ende“.",
359
+ "x-package": "stories-video"
356
360
  }
357
361
  }
358
362
  }