maverick-wave-astro 1.19.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.
@@ -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.19.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",