@openwarelabs/blocks 0.8.0 → 0.9.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/dist/calls-to-action/Cta01/Cta01.d.cts +3 -0
- package/dist/calls-to-action/Cta01/Cta01.d.ts +3 -0
- package/dist/calls-to-action/Cta01/Cta01.types.d.cts +14 -0
- package/dist/calls-to-action/Cta01/Cta01.types.d.ts +14 -0
- package/dist/calls-to-action/Cta02/Cta02.d.cts +3 -0
- package/dist/calls-to-action/Cta02/Cta02.d.ts +3 -0
- package/dist/calls-to-action/Cta02/Cta02.types.d.cts +16 -0
- package/dist/calls-to-action/Cta02/Cta02.types.d.ts +16 -0
- package/dist/calls-to-action/Cta03/Cta03.d.cts +3 -0
- package/dist/calls-to-action/Cta03/Cta03.d.ts +3 -0
- package/dist/calls-to-action/Cta03/Cta03.types.d.cts +18 -0
- package/dist/calls-to-action/Cta03/Cta03.types.d.ts +18 -0
- package/dist/index.cjs +64 -0
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +64 -0
- package/dist/index.js.map +4 -4
- package/dist/styles.css +344 -0
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -1,4 +1,348 @@
|
|
|
1
1
|
/* @openwarelabs/blocks: import after @openwarelabs/ui/styles.css. */
|
|
2
|
+
/* calls-to-action/Cta01/Cta01.css */
|
|
3
|
+
.ow-cta01,
|
|
4
|
+
.ow-cta01 *,
|
|
5
|
+
.ow-cta01 *::before,
|
|
6
|
+
.ow-cta01 *::after {
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.ow-cta01 {
|
|
11
|
+
background: var(--ow-paper);
|
|
12
|
+
padding: var(--ow-section-y) 32px;
|
|
13
|
+
color: var(--ow-text);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* The panel is the library's dot grid, on a surface rather than the paper, fading out toward its edges. */
|
|
17
|
+
|
|
18
|
+
.ow-cta01 .ow-cta01__panel {
|
|
19
|
+
max-width: var(--ow-page-max);
|
|
20
|
+
margin: 0 auto;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
border: 1px solid var(--ow-border);
|
|
23
|
+
border-radius: var(--ow-radius-section);
|
|
24
|
+
background: var(--ow-surface);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.ow-cta01__content {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: space-between;
|
|
31
|
+
gap: 40px 56px;
|
|
32
|
+
padding: 64px 64px 60px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ow-cta01__text {
|
|
36
|
+
max-width: 620px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.ow-cta01__lead {
|
|
40
|
+
margin-top: 16px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ow-cta01__side {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-shrink: 0;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
align-items: flex-end;
|
|
48
|
+
gap: 14px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.ow-cta01__actions {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-wrap: wrap;
|
|
54
|
+
gap: var(--ow-space-lg);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.ow-cta01__note {
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
gap: 8px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ow-cta01__note svg {
|
|
64
|
+
color: var(--ow-icon);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@media (max-width: 1024px) {
|
|
68
|
+
.ow-cta01__content {
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
align-items: flex-start;
|
|
71
|
+
padding: 56px 48px;
|
|
72
|
+
|
|
73
|
+
}
|
|
74
|
+
.ow-cta01__side {
|
|
75
|
+
align-items: flex-start;
|
|
76
|
+
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@media (max-width: 760px) {
|
|
81
|
+
.ow-cta01 {
|
|
82
|
+
padding: 72px var(--ow-page-gutter);
|
|
83
|
+
|
|
84
|
+
}
|
|
85
|
+
.ow-cta01 .ow-cta01__panel {
|
|
86
|
+
border-radius: var(--ow-radius-card);
|
|
87
|
+
|
|
88
|
+
}
|
|
89
|
+
.ow-cta01__content {
|
|
90
|
+
gap: 32px;
|
|
91
|
+
padding: 40px 22px;
|
|
92
|
+
|
|
93
|
+
}
|
|
94
|
+
.ow-cta01__side,
|
|
95
|
+
.ow-cta01__actions {
|
|
96
|
+
width: 100%;
|
|
97
|
+
|
|
98
|
+
}
|
|
99
|
+
.ow-cta01__actions {
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* calls-to-action/Cta02/Cta02.css */
|
|
106
|
+
.ow-cta02,
|
|
107
|
+
.ow-cta02 *,
|
|
108
|
+
.ow-cta02 *::before,
|
|
109
|
+
.ow-cta02 *::after {
|
|
110
|
+
box-sizing: border-box;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.ow-cta02 {
|
|
114
|
+
background: var(--ow-paper);
|
|
115
|
+
padding: var(--ow-section-y) 32px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* The plate: the brand's deep steps, in both themes, with its own faint dots. The brand scale is built so
|
|
119
|
+
white text holds its contrast on 600 and darker, whatever colour the brand is. Text has no tone for that
|
|
120
|
+
white, so the text on the plate takes its colour here. */
|
|
121
|
+
|
|
122
|
+
.ow-cta02 .ow-cta02__plate {
|
|
123
|
+
--ow-dot: color-mix(in srgb, var(--ow-on-primary) 13%, transparent);
|
|
124
|
+
max-width: var(--ow-page-max);
|
|
125
|
+
margin: 0 auto;
|
|
126
|
+
overflow: hidden;
|
|
127
|
+
border: 1px solid color-mix(in srgb, var(--ow-brand-400) 35%, transparent);
|
|
128
|
+
border-radius: var(--ow-radius-section);
|
|
129
|
+
background: linear-gradient(180deg, var(--ow-brand-600), var(--ow-brand-800));
|
|
130
|
+
color: var(--ow-on-primary);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.ow-cta02__content {
|
|
134
|
+
display: flex;
|
|
135
|
+
flex-direction: column;
|
|
136
|
+
align-items: center;
|
|
137
|
+
padding: 88px 40px 84px;
|
|
138
|
+
text-align: center;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.ow-cta02 .ow-cta02__eyebrow {
|
|
142
|
+
display: inline-flex;
|
|
143
|
+
align-items: center;
|
|
144
|
+
gap: 8px;
|
|
145
|
+
border: 1px solid color-mix(in srgb, var(--ow-on-primary) 22%, transparent);
|
|
146
|
+
border-radius: var(--ow-radius-pill);
|
|
147
|
+
background: color-mix(in srgb, var(--ow-on-primary) 8%, transparent);
|
|
148
|
+
padding: 3px 12px;
|
|
149
|
+
color: color-mix(in srgb, var(--ow-on-primary) 88%, transparent);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.ow-cta02__eyebrow::before {
|
|
153
|
+
content: "";
|
|
154
|
+
width: 6px;
|
|
155
|
+
height: 6px;
|
|
156
|
+
border-radius: 50%;
|
|
157
|
+
background: var(--ow-brass);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.ow-cta02 .ow-cta02__title {
|
|
161
|
+
max-width: 760px;
|
|
162
|
+
margin-top: 24px;
|
|
163
|
+
color: var(--ow-on-primary);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.ow-cta02 .ow-cta02__lead {
|
|
167
|
+
margin-top: 20px;
|
|
168
|
+
color: color-mix(in srgb, var(--ow-on-primary) 78%, transparent);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.ow-cta02__actions {
|
|
172
|
+
display: flex;
|
|
173
|
+
flex-wrap: wrap;
|
|
174
|
+
align-items: center;
|
|
175
|
+
justify-content: center;
|
|
176
|
+
gap: 16px 28px;
|
|
177
|
+
margin-top: 36px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/* The one main action, as a light pill on the plate: a primary button would vanish into the brand colour. */
|
|
181
|
+
|
|
182
|
+
.ow-cta02 .ow-cta02__action {
|
|
183
|
+
border-color: transparent;
|
|
184
|
+
background-color: var(--ow-on-primary);
|
|
185
|
+
background-image: linear-gradient(to bottom, var(--ow-on-primary), color-mix(in srgb, var(--ow-brand-50) 70%, var(--ow-on-primary)));
|
|
186
|
+
color: var(--ow-brand-700);
|
|
187
|
+
box-shadow:
|
|
188
|
+
0 1px 2px color-mix(in srgb, var(--ow-brand-950) 40%, transparent),
|
|
189
|
+
0 6px 16px -6px color-mix(in srgb, var(--ow-brand-950) 60%, transparent);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.ow-cta02 .ow-cta02__action:hover:not(:disabled) {
|
|
193
|
+
border-color: transparent;
|
|
194
|
+
background-image: linear-gradient(to bottom, var(--ow-on-primary), var(--ow-brand-100));
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.ow-cta02 .ow-cta02__action:focus-visible,
|
|
198
|
+
.ow-cta02 .ow-cta02__link:focus-visible {
|
|
199
|
+
outline: 2px solid var(--ow-on-primary);
|
|
200
|
+
outline-offset: 3px;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/* A Link in the plate's white, with no underline: the arrow moves instead. */
|
|
204
|
+
|
|
205
|
+
.ow-cta02 .ow-cta02__link,
|
|
206
|
+
.ow-cta02 .ow-cta02__link:hover {
|
|
207
|
+
display: inline-flex;
|
|
208
|
+
align-items: center;
|
|
209
|
+
gap: 6px;
|
|
210
|
+
border-radius: var(--ow-radius-sm);
|
|
211
|
+
color: var(--ow-on-primary);
|
|
212
|
+
text-decoration: none;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.ow-cta02__link svg {
|
|
216
|
+
transition: transform var(--ow-duration-base) var(--ow-ease-standard);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.ow-cta02__link:hover svg {
|
|
220
|
+
transform: translateX(2px);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.ow-cta02__facts {
|
|
224
|
+
display: flex;
|
|
225
|
+
flex-wrap: wrap;
|
|
226
|
+
justify-content: center;
|
|
227
|
+
gap: 10px 28px;
|
|
228
|
+
margin: 48px 0 0;
|
|
229
|
+
padding: 0;
|
|
230
|
+
color: color-mix(in srgb, var(--ow-on-primary) 70%, transparent);
|
|
231
|
+
list-style: none;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.ow-cta02__facts li {
|
|
235
|
+
display: flex;
|
|
236
|
+
align-items: center;
|
|
237
|
+
gap: 8px;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
@media (prefers-reduced-motion: reduce) {
|
|
241
|
+
.ow-cta02__link svg {
|
|
242
|
+
transition: none;
|
|
243
|
+
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
@media (max-width: 760px) {
|
|
248
|
+
.ow-cta02 {
|
|
249
|
+
padding: 72px var(--ow-page-gutter);
|
|
250
|
+
|
|
251
|
+
}
|
|
252
|
+
.ow-cta02 .ow-cta02__plate {
|
|
253
|
+
border-radius: var(--ow-radius-card);
|
|
254
|
+
|
|
255
|
+
}
|
|
256
|
+
.ow-cta02__content {
|
|
257
|
+
padding: 56px 22px 52px;
|
|
258
|
+
|
|
259
|
+
}
|
|
260
|
+
.ow-cta02__actions {
|
|
261
|
+
width: 100%;
|
|
262
|
+
flex-direction: column;
|
|
263
|
+
|
|
264
|
+
}
|
|
265
|
+
.ow-cta02 .ow-cta02__action {
|
|
266
|
+
width: 100%;
|
|
267
|
+
|
|
268
|
+
}
|
|
269
|
+
.ow-cta02__facts {
|
|
270
|
+
flex-direction: column;
|
|
271
|
+
align-items: center;
|
|
272
|
+
margin-top: 36px;
|
|
273
|
+
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/* calls-to-action/Cta03/Cta03.css */
|
|
278
|
+
.ow-cta03,
|
|
279
|
+
.ow-cta03 *,
|
|
280
|
+
.ow-cta03 *::before,
|
|
281
|
+
.ow-cta03 *::after {
|
|
282
|
+
box-sizing: border-box;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.ow-cta03 {
|
|
286
|
+
overflow: hidden;
|
|
287
|
+
background: var(--ow-paper);
|
|
288
|
+
padding: var(--ow-section-y) 32px;
|
|
289
|
+
color: var(--ow-text);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.ow-cta03__inner {
|
|
293
|
+
display: grid;
|
|
294
|
+
max-width: var(--ow-page-max);
|
|
295
|
+
grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
|
|
296
|
+
align-items: center;
|
|
297
|
+
gap: 72px;
|
|
298
|
+
margin: 0 auto;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.ow-cta03__actions {
|
|
302
|
+
display: flex;
|
|
303
|
+
flex-wrap: wrap;
|
|
304
|
+
gap: var(--ow-space-lg);
|
|
305
|
+
margin-top: 32px;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.ow-cta03__points {
|
|
309
|
+
display: grid;
|
|
310
|
+
gap: 10px;
|
|
311
|
+
margin: 32px 0 0;
|
|
312
|
+
padding: 0;
|
|
313
|
+
list-style: none;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.ow-cta03__points li {
|
|
317
|
+
display: flex;
|
|
318
|
+
align-items: center;
|
|
319
|
+
gap: 10px;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.ow-cta03__points svg {
|
|
323
|
+
flex-shrink: 0;
|
|
324
|
+
color: var(--ow-primary-text);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
@media (max-width: 1024px) {
|
|
328
|
+
.ow-cta03__inner {
|
|
329
|
+
grid-template-columns: minmax(0, 1fr);
|
|
330
|
+
gap: 56px;
|
|
331
|
+
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
@media (max-width: 760px) {
|
|
336
|
+
.ow-cta03 {
|
|
337
|
+
padding: 72px var(--ow-page-gutter);
|
|
338
|
+
|
|
339
|
+
}
|
|
340
|
+
.ow-cta03__actions {
|
|
341
|
+
flex-direction: column;
|
|
342
|
+
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
2
346
|
/* features/Features01/Features01.css */
|
|
3
347
|
.ow-features01,
|
|
4
348
|
.ow-features01 *,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openwarelabs/blocks",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Openware UI blocks: whole page sections (heroes and more) as React components that take their content as props.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Alexander Silver",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"README.md"
|
|
35
35
|
],
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@openwarelabs/ui": "^0.
|
|
37
|
+
"@openwarelabs/ui": "^0.9.0",
|
|
38
38
|
"react": ">=18",
|
|
39
39
|
"react-dom": ">=18"
|
|
40
40
|
},
|