anentrypoint-design 0.0.277 → 0.0.279
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/app-shell.css +39 -3
- package/dist/247420.css +39 -3
- package/dist/247420.js +15 -15
- package/package.json +1 -1
- package/src/components/content.js +15 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anentrypoint-design",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.279",
|
|
4
4
|
"description": "247420 design system SDK — webjsx + modified ripple-ui, single-file ESM bundle for reproducible use of the AnEntrypoint design.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/247420.js",
|
|
@@ -154,9 +154,18 @@ export function Section({ title, eyebrow, children, id }) {
|
|
|
154
154
|
);
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
export function Hero({ eyebrow, title, body, accent, actions }) {
|
|
157
|
+
export function Hero({ eyebrow, title, body, accent, actions, badges }) {
|
|
158
158
|
// Eyebrow + title share the title grid-area so the named-area layout stays
|
|
159
|
-
// intact; body
|
|
159
|
+
// intact; body occupies the wide left column, badges + actions stack in
|
|
160
|
+
// the narrow right column so it carries real visual weight instead of
|
|
161
|
+
// sitting empty beside the body copy.
|
|
162
|
+
const badgeList = Array.isArray(badges) ? badges.filter(Boolean) : [];
|
|
163
|
+
const badgeRow = badgeList.length
|
|
164
|
+
? h('div', { class: 'ds-hero-stats' }, ...badgeList.map((b, i) =>
|
|
165
|
+
h('span', { key: 'hb' + i, class: 'ds-hero-stat' }, String(b && b.label != null ? b.label : b))))
|
|
166
|
+
: null;
|
|
167
|
+
const actionRow = actions ? h('div', { class: 'ds-hero-actions' }, ...(Array.isArray(actions) ? actions : [actions])) : null;
|
|
168
|
+
const aside = (badgeRow || actionRow) ? h('div', { class: 'ds-hero-aside' }, badgeRow, actionRow) : null;
|
|
160
169
|
return h('div', { class: 'ds-hero' },
|
|
161
170
|
h('div', { class: 'ds-hero-head' },
|
|
162
171
|
eyebrow ? h('span', { class: 'eyebrow' }, eyebrow) : null,
|
|
@@ -166,7 +175,7 @@ export function Hero({ eyebrow, title, body, accent, actions }) {
|
|
|
166
175
|
body,
|
|
167
176
|
accent ? h('span', { class: 'ds-hero-accent' }, ' ' + accent) : null
|
|
168
177
|
) : null,
|
|
169
|
-
|
|
178
|
+
aside
|
|
170
179
|
);
|
|
171
180
|
}
|
|
172
181
|
|
|
@@ -224,9 +233,9 @@ export function HeroFromPageData(hero) {
|
|
|
224
233
|
hero.body,
|
|
225
234
|
hero.accent ? h('span', { class: 'ds-hero-accent' }, ' ' + hero.accent) : null,
|
|
226
235
|
) : null,
|
|
227
|
-
installRow
|
|
228
|
-
|
|
229
|
-
|
|
236
|
+
(badgeRow || ctaRow || installRow)
|
|
237
|
+
? h('div', { class: 'ds-hero-aside' }, badgeRow, installRow, ctaRow)
|
|
238
|
+
: null,
|
|
230
239
|
);
|
|
231
240
|
}
|
|
232
241
|
|