@affinda/wc 0.0.3 → 0.0.5
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/affinda/af-card.entry.esm.js.map +1 -0
- package/dist/affinda/af-heading.af-logo.af-nav-item.af-navbar.af-text.entry.esm.js.map +1 -1
- package/dist/affinda/affinda.css +1 -1
- package/dist/affinda/affinda.esm.js +1 -1
- package/dist/affinda/index.esm.js +1 -1
- package/dist/affinda/{p-8d3b4917.entry.js → p-47629246.entry.js} +2 -2
- package/dist/affinda/p-92f5a5d5.entry.js +2 -0
- package/dist/affinda/p-92f5a5d5.entry.js.map +1 -0
- package/dist/affinda/{p-9d0e6ed1.entry.js → p-9c22948a.entry.js} +2 -2
- package/dist/affinda/p-Dmaq2rkg.js +3 -0
- package/dist/affinda/p-Dmaq2rkg.js.map +1 -0
- package/dist/affinda/p-a8d223ca.entry.js +2 -0
- package/dist/affinda/p-a8d223ca.entry.js.map +1 -0
- package/dist/affinda/{p-afbe9cb3.entry.js → p-b79f976e.entry.js} +2 -2
- package/dist/affinda/{p-cbb06a14.entry.js → p-bf697823.entry.js} +2 -2
- package/dist/affinda/{p-619bc077.entry.js → p-cb218d26.entry.js} +2 -2
- package/dist/affinda/{p-540af9d9.entry.js → p-d33de48f.entry.js} +2 -2
- package/dist/affinda/{p-6b07f590.entry.js → p-f8d89fb6.entry.js} +2 -2
- package/dist/cjs/af-aspect-ratio.cjs.entry.js +1 -1
- package/dist/cjs/af-button-group.cjs.entry.js +2 -2
- package/dist/cjs/af-button.cjs.entry.js +1 -1
- package/dist/cjs/af-card.cjs.entry.js +24 -0
- package/dist/cjs/af-card.entry.cjs.js.map +1 -0
- package/dist/cjs/af-color-swatch.cjs.entry.js +1 -1
- package/dist/cjs/af-container.cjs.entry.js +1 -1
- package/dist/cjs/af-heading.af-logo.af-nav-item.af-navbar.af-text.entry.cjs.js.map +1 -1
- package/dist/cjs/af-heading_5.cjs.entry.js +8 -8
- package/dist/cjs/af-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/af-typography-lockup.cjs.entry.js +2 -2
- package/dist/cjs/affinda.cjs.js +2 -2
- package/dist/cjs/{index-E2jkaTPt.js → index-1GcSSOS3.js} +388 -35
- package/dist/cjs/index-1GcSSOS3.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/af-button-group/af-button-group.js +1 -1
- package/dist/collection/components/af-card/af-card.css +99 -0
- package/dist/collection/components/af-card/af-card.js +89 -0
- package/dist/collection/components/af-card/af-card.js.map +1 -0
- package/dist/collection/components/af-heading/af-heading.css +1 -1
- package/dist/collection/components/af-logo/af-logo.css +3 -3
- package/dist/collection/components/af-logo/af-logo.js +1 -1
- package/dist/collection/components/af-logo/af-logo.js.map +1 -1
- package/dist/collection/components/af-nav-item/af-nav-item.css +6 -6
- package/dist/collection/components/af-navbar/af-navbar.css +8 -4
- package/dist/collection/components/af-navbar/af-navbar.js +1 -1
- package/dist/collection/components/af-navbar/af-navbar.js.map +1 -1
- package/dist/collection/components/af-text/af-text.css +1 -1
- package/dist/collection/components/af-typography-lockup/af-typography-lockup.js +1 -1
- package/dist/components/af-aspect-ratio.js +1 -1
- package/dist/components/af-button-group.js +1 -1
- package/dist/components/af-button.js +1 -1
- package/dist/components/af-card.d.ts +11 -0
- package/dist/components/af-card.js +47 -0
- package/dist/components/af-card.js.map +1 -0
- package/dist/components/af-color-swatch.js +1 -1
- package/dist/components/af-container.js +1 -1
- package/dist/components/af-heading.js +1 -1
- package/dist/components/af-icon-button.js +1 -1
- package/dist/components/af-logo.js +1 -1
- package/dist/components/af-nav-item.js +1 -1
- package/dist/components/af-navbar.js +1 -1
- package/dist/components/af-text.js +1 -1
- package/dist/components/af-typography-lockup.js +1 -1
- package/dist/components/index.js +13 -13
- package/dist/components/p-BHNNF4PT.js +35 -0
- package/dist/components/p-BHNNF4PT.js.map +1 -0
- package/dist/components/{p-CT_9_xN3.js → p-BpGDzCRf.js} +4 -4
- package/dist/components/p-BpGDzCRf.js.map +1 -0
- package/dist/components/{p-DqIqR4VU.js → p-C6idwlD-.js} +3 -3
- package/dist/components/{p-DqIqR4VU.js.map → p-C6idwlD-.js.map} +1 -1
- package/dist/components/{p-DG7Mtz0G.js → p-CJWIieDU.js} +4 -4
- package/dist/components/p-CJWIieDU.js.map +1 -0
- package/dist/components/{p-DfIqdEs7.js → p-CRgPNvxI.js} +3 -3
- package/dist/components/{p-DfIqdEs7.js.map → p-CRgPNvxI.js.map} +1 -1
- package/dist/components/p-CaqzUz5o.js +35 -0
- package/dist/components/p-CaqzUz5o.js.map +1 -0
- package/dist/components/{p-BfmeW04T.js → p-Cjv046iG.js} +4 -4
- package/dist/components/{p-BfmeW04T.js.map → p-Cjv046iG.js.map} +1 -1
- package/dist/components/{p-BJDmHNDi.js → p-DIyOg-i_.js} +4 -4
- package/dist/components/p-DIyOg-i_.js.map +1 -0
- package/dist/components/{p-LEksuu7O.js → p-DSAo7rhE.js} +3 -3
- package/dist/components/{p-LEksuu7O.js.map → p-DSAo7rhE.js.map} +1 -1
- package/dist/components/{p-DcFGu6up.js → p-DuXQZGjc.js} +4 -4
- package/dist/components/{p-DcFGu6up.js.map → p-DuXQZGjc.js.map} +1 -1
- package/dist/components/{p-BoU5qaPt.js → p-Dw33Xm_t.js} +3 -3
- package/dist/components/{p-BoU5qaPt.js.map → p-Dw33Xm_t.js.map} +1 -1
- package/dist/components/{p-uhOM63Ux.js → p-cKSy1B8M.js} +3 -3
- package/dist/components/{p-uhOM63Ux.js.map → p-cKSy1B8M.js.map} +1 -1
- package/dist/components/{p-CzaQ1fCu.js → p-zwrcq-N2.js} +393 -35
- package/dist/components/p-zwrcq-N2.js.map +1 -0
- package/dist/esm/af-aspect-ratio.entry.js +1 -1
- package/dist/esm/af-button-group.entry.js +2 -2
- package/dist/esm/af-button.entry.js +1 -1
- package/dist/esm/af-card.entry.js +22 -0
- package/dist/esm/af-card.entry.js.map +1 -0
- package/dist/esm/af-color-swatch.entry.js +1 -1
- package/dist/esm/af-container.entry.js +1 -1
- package/dist/esm/af-heading.af-logo.af-nav-item.af-navbar.af-text.entry.js.map +1 -1
- package/dist/esm/af-heading_5.entry.js +8 -8
- package/dist/esm/af-icon-button.entry.js +1 -1
- package/dist/esm/af-typography-lockup.entry.js +2 -2
- package/dist/esm/affinda.js +3 -3
- package/dist/esm/{index-DxVtR6vj.js → index-Dmaq2rkg.js} +388 -35
- package/dist/esm/index-Dmaq2rkg.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/af-card/af-card.d.ts +15 -0
- package/dist/types/components.d.ts +39 -0
- package/package.json +5 -5
- package/dist/affinda/p-DxVtR6vj.js +0 -3
- package/dist/affinda/p-DxVtR6vj.js.map +0 -1
- package/dist/affinda/p-e274e11a.entry.js +0 -2
- package/dist/affinda/p-e274e11a.entry.js.map +0 -1
- package/dist/cjs/index-E2jkaTPt.js.map +0 -1
- package/dist/components/p-B17zxKkI.js +0 -35
- package/dist/components/p-B17zxKkI.js.map +0 -1
- package/dist/components/p-BJDmHNDi.js.map +0 -1
- package/dist/components/p-CT_9_xN3.js.map +0 -1
- package/dist/components/p-CzaQ1fCu.js.map +0 -1
- package/dist/components/p-DG7Mtz0G.js.map +0 -1
- package/dist/components/p-zBrKMKWE.js +0 -35
- package/dist/components/p-zBrKMKWE.js.map +0 -1
- package/dist/esm/index-DxVtR6vj.js.map +0 -1
- /package/dist/affinda/{p-8d3b4917.entry.js.map → p-47629246.entry.js.map} +0 -0
- /package/dist/affinda/{p-9d0e6ed1.entry.js.map → p-9c22948a.entry.js.map} +0 -0
- /package/dist/affinda/{p-afbe9cb3.entry.js.map → p-b79f976e.entry.js.map} +0 -0
- /package/dist/affinda/{p-cbb06a14.entry.js.map → p-bf697823.entry.js.map} +0 -0
- /package/dist/affinda/{p-619bc077.entry.js.map → p-cb218d26.entry.js.map} +0 -0
- /package/dist/affinda/{p-540af9d9.entry.js.map → p-d33de48f.entry.js.map} +0 -0
- /package/dist/affinda/{p-6b07f590.entry.js.map → p-f8d89fb6.entry.js.map} +0 -0
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ var afButton_entry = require('./af-button.cjs.entry.js');
|
|
|
8
8
|
var afIconButton_entry = require('./af-icon-button.cjs.entry.js');
|
|
9
9
|
var afButtonGroup_entry = require('./af-button-group.cjs.entry.js');
|
|
10
10
|
var afTypographyLockup_entry = require('./af-typography-lockup.cjs.entry.js');
|
|
11
|
-
require('./index-
|
|
11
|
+
require('./index-1GcSSOS3.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-1GcSSOS3.js');
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await index.globalScripts();
|
|
8
|
-
return index.bootstrapLazy([["af-heading_5.cjs",[[257,"af-heading",{"level":[1],"align":[1]}],[257,"af-logo"],[257,"af-nav-item",{"hierarchy":[1],"variant":[1],"href":[1],"active":[4]}],[257,"af-navbar"],[257,"af-text",{"variant":[1],"align":[1],"as":[1]}]]],["af-aspect-ratio.cjs",[[257,"af-aspect-ratio",{"ratio":[1]}]]],["af-button.cjs",[[257,"af-button",{"variant":[1],"size":[1],"disabled":[4],"href":[1],"type":[1]}]]],["af-button-group.cjs",[[257,"af-button-group",{"direction":[1],"gap":[1]}]]],["af-color-swatch.cjs",[[257,"af-color-swatch",{"color":[1],"name":[1],"size":[1]}]]],["af-container.cjs",[[257,"af-container",{"maxWidth":[1,"max-width"]}]]],["af-icon-button.cjs",[[257,"af-icon-button",{"variant":[1],"size":[1],"disabled":[4],"href":[1],"type":[1],"ariaLabel":[1,"aria-label"]}]]],["af-typography-lockup.cjs",[[257,"af-typography-lockup",{"headingSize":[2,"heading-size"],"breakpoint":[1],"textAlignment":[1,"text-alignment"],"buttonAlignment":[1,"button-alignment"],"maxWidth":[2,"max-width"]}]]]], options);
|
|
8
|
+
return index.bootstrapLazy([["af-heading_5.cjs",[[257,"af-heading",{"level":[1],"align":[1]}],[257,"af-logo"],[257,"af-nav-item",{"hierarchy":[1],"variant":[1],"href":[1],"active":[4]}],[257,"af-navbar"],[257,"af-text",{"variant":[1],"align":[1],"as":[1]}]]],["af-aspect-ratio.cjs",[[257,"af-aspect-ratio",{"ratio":[1]}]]],["af-button.cjs",[[257,"af-button",{"variant":[1],"size":[1],"disabled":[4],"href":[1],"type":[1]}]]],["af-button-group.cjs",[[257,"af-button-group",{"direction":[1],"gap":[1]}]]],["af-card.cjs",[[262,"af-card",{"backgroundImage":[1,"background-image"],"backgroundColor":[1,"background-color"],"darkOverlay":[4,"dark-overlay"]}]]],["af-color-swatch.cjs",[[257,"af-color-swatch",{"color":[1],"name":[1],"size":[1]}]]],["af-container.cjs",[[257,"af-container",{"maxWidth":[1,"max-width"]}]]],["af-icon-button.cjs",[[257,"af-icon-button",{"variant":[1],"size":[1],"disabled":[4],"href":[1],"type":[1],"ariaLabel":[1,"aria-label"]}]]],["af-typography-lockup.cjs",[[257,"af-typography-lockup",{"headingSize":[2,"heading-size"],"breakpoint":[1],"textAlignment":[1,"text-alignment"],"buttonAlignment":[1,"button-alignment"],"maxWidth":[2,"max-width"]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
exports.setNonce = index.setNonce;
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"components/af-button/af-button.js",
|
|
12
12
|
"components/af-icon-button/af-icon-button.js",
|
|
13
13
|
"components/af-button-group/af-button-group.js",
|
|
14
|
-
"components/af-typography-lockup/af-typography-lockup.js"
|
|
14
|
+
"components/af-typography-lockup/af-typography-lockup.js",
|
|
15
|
+
"components/af-card/af-card.js"
|
|
15
16
|
],
|
|
16
17
|
"compiler": {
|
|
17
18
|
"name": "@stencil/core",
|
|
@@ -15,7 +15,7 @@ export class AfButtonGroup {
|
|
|
15
15
|
'button-group': true,
|
|
16
16
|
[`direction-${this.direction}`]: true
|
|
17
17
|
};
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: 'c6cab092c05c6e6b7b859c662f318067590b51e3' }, h("div", { key: '289501b3693d0eeb68c4b2f85bb3b8398ca7610b', class: classes, style: { gap: this.gap } }, h("slot", { key: 'b852bcf016846022ee0cf8d23ce5a57aa0856adf' }))));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "af-button-group"; }
|
|
21
21
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
width: 100%;
|
|
4
|
+
min-height: 400px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.card {
|
|
8
|
+
background: var(--colour-background-level-1, #e8eeed);
|
|
9
|
+
border-radius: var(--border-radius-card-level-1, 32px);
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
position: relative;
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
min-height: 400px;
|
|
15
|
+
height: 100%;
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.card--with-image {
|
|
20
|
+
background: var(--colour-brand-inkwell, #14343b);
|
|
21
|
+
min-height: 480px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.card__background {
|
|
25
|
+
position: absolute;
|
|
26
|
+
inset: 0;
|
|
27
|
+
pointer-events: none;
|
|
28
|
+
z-index: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.card__background-image {
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 100%;
|
|
34
|
+
object-fit: cover;
|
|
35
|
+
object-position: center;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.card__content {
|
|
39
|
+
position: relative;
|
|
40
|
+
padding: 40px;
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
gap: 24px;
|
|
44
|
+
flex: 1;
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
z-index: 1;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* Image styling within cards */
|
|
50
|
+
.card__content ::slotted(img) {
|
|
51
|
+
width: 100%;
|
|
52
|
+
height: auto;
|
|
53
|
+
min-height: 200px;
|
|
54
|
+
margin-top: auto;
|
|
55
|
+
object-fit: cover;
|
|
56
|
+
object-position: top center;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* Heading spacing within cards */
|
|
60
|
+
.card__content ::slotted(af-heading) {
|
|
61
|
+
margin-bottom: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* Text line-height within cards */
|
|
65
|
+
.card__content ::slotted(af-text) {
|
|
66
|
+
line-height: 1.44;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.card__content--overlay {
|
|
70
|
+
backdrop-filter: blur(2px);
|
|
71
|
+
background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
|
|
72
|
+
padding: 32px;
|
|
73
|
+
padding-top: 200px;
|
|
74
|
+
justify-content: flex-end;
|
|
75
|
+
|
|
76
|
+
/* Set CSS custom properties for text color that child components can use */
|
|
77
|
+
--colour-typography-heading-primary: #ffffff;
|
|
78
|
+
--colour-typography-heading-secondary: #ffffff;
|
|
79
|
+
--colour-typography-body-default: #ffffff;
|
|
80
|
+
--colour-typography-body-dark: #ffffff;
|
|
81
|
+
color: #ffffff;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* Force white text in overlay cards using both direct styling and custom properties */
|
|
85
|
+
.card__content--overlay * {
|
|
86
|
+
color: #ffffff !important;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* Dark text for regular cards */
|
|
90
|
+
.card:not(.card--with-image) .card__content {
|
|
91
|
+
color: var(--colour-typography-heading-primary, #14343b);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* Custom background color cards with white text */
|
|
95
|
+
.card--custom-bg .card__content {
|
|
96
|
+
--colour-typography-heading-primary: #ffffff;
|
|
97
|
+
--colour-typography-body-default: #ffffff;
|
|
98
|
+
}
|
|
99
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
export class AfCard {
|
|
3
|
+
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* Whether to apply a dark gradient overlay (for cards with background images)
|
|
6
|
+
*/
|
|
7
|
+
this.darkOverlay = false;
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
const hasBackgroundImage = !!this.backgroundImage;
|
|
11
|
+
const cardStyle = this.backgroundColor ? { backgroundColor: this.backgroundColor } : undefined;
|
|
12
|
+
return (h(Host, { key: '026a3f9e10d281558913cd6eb69db800da37deb4' }, h("div", { key: 'd6b43e724d5611e75ec096dad88c5373ef5c5adc', class: `card ${hasBackgroundImage ? 'card--with-image' : ''} ${this.darkOverlay ? 'card--dark-overlay' : ''} ${this.backgroundColor ? 'card--custom-bg' : ''}`, style: cardStyle }, hasBackgroundImage && (h("div", { key: 'f71753ba962411320c45f06c7c9a5c98b89883a9', class: "card__background" }, h("img", { key: '2d3b19e350ddf5a1efa1c1a9a343851e423cc275', src: this.backgroundImage, alt: "", class: "card__background-image" }))), h("div", { key: '459e00230ef7a470ee808d0d674412b18822d473', class: `card__content ${hasBackgroundImage ? 'card__content--overlay' : ''}` }, h("slot", { key: 'd2f4f261f0b2a766c912504d17f0caec96ae02c4' })))));
|
|
13
|
+
}
|
|
14
|
+
static get is() { return "af-card"; }
|
|
15
|
+
static get encapsulation() { return "scoped"; }
|
|
16
|
+
static get originalStyleUrls() {
|
|
17
|
+
return {
|
|
18
|
+
"$": ["af-card.css"]
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
static get styleUrls() {
|
|
22
|
+
return {
|
|
23
|
+
"$": ["af-card.css"]
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
static get properties() {
|
|
27
|
+
return {
|
|
28
|
+
"backgroundImage": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"mutable": false,
|
|
31
|
+
"complexType": {
|
|
32
|
+
"original": "string",
|
|
33
|
+
"resolved": "string | undefined",
|
|
34
|
+
"references": {}
|
|
35
|
+
},
|
|
36
|
+
"required": false,
|
|
37
|
+
"optional": true,
|
|
38
|
+
"docs": {
|
|
39
|
+
"tags": [],
|
|
40
|
+
"text": "Background image URL for the card"
|
|
41
|
+
},
|
|
42
|
+
"getter": false,
|
|
43
|
+
"setter": false,
|
|
44
|
+
"reflect": false,
|
|
45
|
+
"attribute": "background-image"
|
|
46
|
+
},
|
|
47
|
+
"backgroundColor": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"mutable": false,
|
|
50
|
+
"complexType": {
|
|
51
|
+
"original": "string",
|
|
52
|
+
"resolved": "string | undefined",
|
|
53
|
+
"references": {}
|
|
54
|
+
},
|
|
55
|
+
"required": false,
|
|
56
|
+
"optional": true,
|
|
57
|
+
"docs": {
|
|
58
|
+
"tags": [],
|
|
59
|
+
"text": "Background color for the card (CSS color value)"
|
|
60
|
+
},
|
|
61
|
+
"getter": false,
|
|
62
|
+
"setter": false,
|
|
63
|
+
"reflect": false,
|
|
64
|
+
"attribute": "background-color"
|
|
65
|
+
},
|
|
66
|
+
"darkOverlay": {
|
|
67
|
+
"type": "boolean",
|
|
68
|
+
"mutable": false,
|
|
69
|
+
"complexType": {
|
|
70
|
+
"original": "boolean",
|
|
71
|
+
"resolved": "boolean",
|
|
72
|
+
"references": {}
|
|
73
|
+
},
|
|
74
|
+
"required": false,
|
|
75
|
+
"optional": false,
|
|
76
|
+
"docs": {
|
|
77
|
+
"tags": [],
|
|
78
|
+
"text": "Whether to apply a dark gradient overlay (for cards with background images)"
|
|
79
|
+
},
|
|
80
|
+
"getter": false,
|
|
81
|
+
"setter": false,
|
|
82
|
+
"reflect": false,
|
|
83
|
+
"attribute": "dark-overlay",
|
|
84
|
+
"defaultValue": "false"
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=af-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"af-card.js","sourceRoot":"","sources":["../../../src/components/af-card/af-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAQzD,MAAM,OAAO,MAAM;IANnB;QAiBE;;WAEG;QACK,gBAAW,GAAY,KAAK,CAAC;KAwBtC;IAtBC,MAAM;QACJ,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC;QAClD,MAAM,SAAS,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,IAAI,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;QAE/F,OAAO,CACL,EAAC,IAAI;YACH,4DACE,KAAK,EAAE,QAAQ,kBAAkB,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,EAAE,EAC9J,KAAK,EAAE,SAAS;gBAEf,kBAAkB,IAAI,CACrB,4DAAK,KAAK,EAAC,kBAAkB;oBAC3B,4DAAK,GAAG,EAAE,IAAI,CAAC,eAAe,EAAE,GAAG,EAAC,EAAE,EAAC,KAAK,EAAC,wBAAwB,GAAG,CACpE,CACP;gBACD,4DAAK,KAAK,EAAE,iBAAiB,kBAAkB,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,EAAE;oBAC/E,8DAAa,CACT,CACF,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h, Host } from '@stencil/core';\n\n@Component({\n tag: 'af-card',\n styleUrl: 'af-card.css',\n shadow: false,\n scoped: true,\n})\nexport class AfCard {\n /**\n * Background image URL for the card\n */\n @Prop() backgroundImage?: string;\n\n /**\n * Background color for the card (CSS color value)\n */\n @Prop() backgroundColor?: string;\n\n /**\n * Whether to apply a dark gradient overlay (for cards with background images)\n */\n @Prop() darkOverlay: boolean = false;\n\n render() {\n const hasBackgroundImage = !!this.backgroundImage;\n const cardStyle = this.backgroundColor ? { backgroundColor: this.backgroundColor } : undefined;\n\n return (\n <Host>\n <div \n class={`card ${hasBackgroundImage ? 'card--with-image' : ''} ${this.darkOverlay ? 'card--dark-overlay' : ''} ${this.backgroundColor ? 'card--custom-bg' : ''}`}\n style={cardStyle}\n >\n {hasBackgroundImage && (\n <div class=\"card__background\">\n <img src={this.backgroundImage} alt=\"\" class=\"card__background-image\" />\n </div>\n )}\n <div class={`card__content ${hasBackgroundImage ? 'card__content--overlay' : ''}`}>\n <slot></slot>\n </div>\n </div>\n </Host>\n );\n }\n}\n\n"]}
|
|
@@ -4,7 +4,7 @@ import { h, Host } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class AfLogo {
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '8a33b73d7a60054dde8a04327d94d78763552549' }, h("
|
|
7
|
+
return (h(Host, { key: '8a33b73d7a60054dde8a04327d94d78763552549' }, h("img", { key: '2dbf83d383508aaeff70f683866925e4fa98847d', src: "https://www.figma.com/api/mcp/asset/2cfec484-7ba9-4258-94f3-ef4d0ba1e8fe", alt: "Affinda", class: "logo-img" })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "af-logo"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"af-logo.js","sourceRoot":"","sources":["../../../src/components/af-logo/af-logo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEnD;;GAEG;AAMH,MAAM,OAAO,MAAM;IACjB,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,4DACE,
|
|
1
|
+
{"version":3,"file":"af-logo.js","sourceRoot":"","sources":["../../../src/components/af-logo/af-logo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEnD;;GAEG;AAMH,MAAM,OAAO,MAAM;IACjB,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,4DACE,GAAG,EAAC,0EAA0E,EAC9E,GAAG,EAAC,SAAS,EACb,KAAK,EAAC,UAAU,GAChB,CACG,CACR,CAAC;IACJ,CAAC;;;;;;;;;CACF","sourcesContent":["import { Component, h, Host } from '@stencil/core';\n\n/**\n * Affinda logo component\n */\n@Component({\n tag: 'af-logo',\n styleUrl: 'af-logo.css',\n shadow: true\n})\nexport class AfLogo {\n render() {\n return (\n <Host>\n <img\n src=\"https://www.figma.com/api/mcp/asset/2cfec484-7ba9-4258-94f3-ef4d0ba1e8fe\"\n alt=\"Affinda\"\n class=\"logo-img\"\n />\n </Host>\n );\n }\n}\n"]}
|
|
@@ -32,20 +32,20 @@
|
|
|
32
32
|
|
|
33
33
|
/* Primary variant 01 - darker */
|
|
34
34
|
.hierarchy-primary.variant-01 {
|
|
35
|
-
font-family: 'NeuSans', 'Inter', system-ui, sans-serif;
|
|
35
|
+
font-family: var(--typography-headingfont, 'NeuSans', 'Inter', system-ui, sans-serif);
|
|
36
36
|
font-size: 16px;
|
|
37
|
-
font-weight: 500;
|
|
37
|
+
font-weight: var(--font-weight-book, 500);
|
|
38
38
|
line-height: 20px;
|
|
39
|
-
color: #14343b;
|
|
39
|
+
color: var(--colour-typography-nav-item-primary, #14343b);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/* Primary variant 02 - lighter for light backgrounds */
|
|
43
43
|
.hierarchy-primary.variant-02 {
|
|
44
|
-
font-family: '
|
|
44
|
+
font-family: var(--typography-bodyfont, 'Helvetica', 'Inter', system-ui, sans-serif);
|
|
45
45
|
font-size: 16px;
|
|
46
|
-
font-weight:
|
|
46
|
+
font-weight: var(--font-weight-regular, 400);
|
|
47
47
|
line-height: 20px;
|
|
48
|
-
color: #
|
|
48
|
+
color: var(--colour-typography-nav-item-secondary, #2b484f);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
/* Hover state for primary variant-01 (dark backgrounds) - underline */
|
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
display: block;
|
|
3
3
|
width: 100%;
|
|
4
|
+
position: absolute;
|
|
5
|
+
top: 32px;
|
|
6
|
+
left: 0;
|
|
7
|
+
right: 0;
|
|
8
|
+
z-index: 10;
|
|
4
9
|
}
|
|
5
10
|
|
|
6
11
|
.navbar-container {
|
|
7
|
-
padding:
|
|
12
|
+
padding: 0 80px;
|
|
8
13
|
box-sizing: border-box;
|
|
14
|
+
position: relative;
|
|
9
15
|
}
|
|
10
16
|
|
|
11
17
|
.navbar {
|
|
12
|
-
background: #
|
|
13
|
-
border: 1px solid rgba(0, 0, 0, 0.12);
|
|
18
|
+
background: var(--colour-background-white, #ffffff);
|
|
14
19
|
border-radius: 9999px;
|
|
15
20
|
display: flex;
|
|
16
21
|
align-items: center;
|
|
17
22
|
justify-content: space-between;
|
|
18
23
|
padding: 8px 8px 8px 40px;
|
|
19
24
|
box-sizing: border-box;
|
|
20
|
-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
21
25
|
}
|
|
22
26
|
|
|
23
27
|
/* Left section */
|
|
@@ -5,7 +5,7 @@ import { h, Host } from "@stencil/core";
|
|
|
5
5
|
*/
|
|
6
6
|
export class AfNavbar {
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: 'a66b7e6939aebec67d26604dea422ec2e64fe6bd' }, h("nav", { key: '54064edc20beeafacafd2b43b25bfa9fc6e0e362', class: "navbar-container" }, h("div", { key: '2020a0761f646c0a13cc604605d3b9d5b1625278', class: "navbar" }, h("div", { key: '6038de1eba48a2bedf7e689bb65521406fc6b8b1', class: "navbar-left" }, h("div", { key: '63f31053e7d3d1402f2a1e88a4ae2171f9e00d4f', class: "logo" }, h("slot", { key: 'bf73abaf20be9cfcaa6328fe8ac224d109944bef', name: "logo" })), h("div", { key: 'c9cc09537d26c55d319f08c4622b17248f6ffba4', class: "nav-links" }, h("slot", { key: '5c2d8df163e2fd9967492d39522df1e11dfcd977', name: "
|
|
8
|
+
return (h(Host, { key: 'a66b7e6939aebec67d26604dea422ec2e64fe6bd' }, h("nav", { key: '54064edc20beeafacafd2b43b25bfa9fc6e0e362', class: "navbar-container" }, h("div", { key: '2020a0761f646c0a13cc604605d3b9d5b1625278', class: "navbar" }, h("div", { key: '6038de1eba48a2bedf7e689bb65521406fc6b8b1', class: "navbar-left" }, h("div", { key: '63f31053e7d3d1402f2a1e88a4ae2171f9e00d4f', class: "logo" }, h("slot", { key: 'bf73abaf20be9cfcaa6328fe8ac224d109944bef', name: "logo" })), h("div", { key: 'c9cc09537d26c55d319f08c4622b17248f6ffba4', class: "nav-links" }, h("slot", { key: '5c2d8df163e2fd9967492d39522df1e11dfcd977', name: "start" }))), h("div", { key: '45265b4d765ad52a33f81efa80e9daa910948e1c', class: "navbar-right" }, h("div", { key: '48c913dd3d8fa17ee7eb2e9a41f9493929cd7af0', class: "nav-actions" }, h("slot", { key: '9d144675950a723d9ff004f5e1d0bad83f372d7e', name: "end" })), h("div", { key: 'bd10fc8edaef5f85382e53abf12b0686ec4c6acd', class: "nav-button" }, h("slot", { key: 'c3c01e44c37a1d51f20a29ce059a02a94094f377', name: "button" })))))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "af-navbar"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"af-navbar.js","sourceRoot":"","sources":["../../../src/components/af-navbar/af-navbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEnD;;;GAGG;AAMH,MAAM,OAAO,QAAQ;IACnB,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,4DAAK,KAAK,EAAC,kBAAkB;gBAC3B,4DAAK,KAAK,EAAC,QAAQ;oBAEjB,4DAAK,KAAK,EAAC,aAAa;wBACtB,4DAAK,KAAK,EAAC,MAAM;4BACf,6DAAM,IAAI,EAAC,MAAM,GAAQ,CACrB;wBACN,4DAAK,KAAK,EAAC,WAAW;4BACpB,6DAAM,IAAI,EAAC,OAAO,GAAQ,CACtB,CACF;oBAGN,4DAAK,KAAK,EAAC,cAAc;wBACvB,4DAAK,KAAK,EAAC,aAAa;4BACtB,6DAAM,IAAI,EAAC,
|
|
1
|
+
{"version":3,"file":"af-navbar.js","sourceRoot":"","sources":["../../../src/components/af-navbar/af-navbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEnD;;;GAGG;AAMH,MAAM,OAAO,QAAQ;IACnB,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,4DAAK,KAAK,EAAC,kBAAkB;gBAC3B,4DAAK,KAAK,EAAC,QAAQ;oBAEjB,4DAAK,KAAK,EAAC,aAAa;wBACtB,4DAAK,KAAK,EAAC,MAAM;4BACf,6DAAM,IAAI,EAAC,MAAM,GAAQ,CACrB;wBACN,4DAAK,KAAK,EAAC,WAAW;4BACpB,6DAAM,IAAI,EAAC,OAAO,GAAQ,CACtB,CACF;oBAGN,4DAAK,KAAK,EAAC,cAAc;wBACvB,4DAAK,KAAK,EAAC,aAAa;4BACtB,6DAAM,IAAI,EAAC,KAAK,GAAQ,CACpB;wBACN,4DAAK,KAAK,EAAC,YAAY;4BACrB,6DAAM,IAAI,EAAC,QAAQ,GAAQ,CACvB,CACF,CACF,CACF,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;CACF","sourcesContent":["import { Component, h, Host } from '@stencil/core';\n\n/**\n * A full-width navigation bar component that provides the main site navigation.\n * Features a pill-shaped container with logo, navigation links, and action buttons.\n */\n@Component({\n tag: 'af-navbar',\n styleUrl: 'af-navbar.css',\n shadow: true\n})\nexport class AfNavbar {\n render() {\n return (\n <Host>\n <nav class=\"navbar-container\">\n <div class=\"navbar\">\n {/* Left section: Logo + Nav Links */}\n <div class=\"navbar-left\">\n <div class=\"logo\">\n <slot name=\"logo\"></slot>\n </div>\n <div class=\"nav-links\">\n <slot name=\"start\"></slot>\n </div>\n </div>\n\n {/* Right section: Actions + Button */}\n <div class=\"navbar-right\">\n <div class=\"nav-actions\">\n <slot name=\"end\"></slot>\n </div>\n <div class=\"nav-button\">\n <slot name=\"button\"></slot>\n </div>\n </div>\n </div>\n </nav>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -30,7 +30,7 @@ export class AfTypographyLockup {
|
|
|
30
30
|
[`breakpoint-${this.breakpoint}`]: true
|
|
31
31
|
};
|
|
32
32
|
const copyStyle = this.maxWidth ? { maxWidth: `${this.maxWidth}px` } : {};
|
|
33
|
-
return (h(Host, { key: '
|
|
33
|
+
return (h(Host, { key: 'c8bc936e14d143125926e4cc03a3344911d46360' }, h("div", { key: '4c51fcb278daba5e4b8287130a1e61021750af18', class: containerClasses }, h("div", { key: '6d563b91c8b548a72f898978569bceda44a26b14', class: copyClasses, style: copyStyle }, h("div", { key: '4351708a5d68297499f7d12109941b7dec8939ad', class: "heading" }, h("slot", { key: '92c799fb2cbf596ab8778cf8d5c9cf88663ed219' })), h("div", { key: '0911e146d7aa3c34d6c825eb849e883b2f69893b', class: "description" }, h("slot", { key: 'b3184843c5646db87a3bd7660214fd4cf2bafc0f', name: "description" }))), h("div", { key: '4b2b814e55a574c7330c517eca3f1765d11cdcdc', class: "buttons" }, h("slot", { key: 'f35ea7c3bc5592f8e6776464b6878d819792894b', name: "buttons" })))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "af-typography-lockup"; }
|
|
36
36
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface AfCard extends Components.AfCard, HTMLElement {}
|
|
4
|
+
export const AfCard: {
|
|
5
|
+
prototype: AfCard;
|
|
6
|
+
new (): AfCard;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, h, c as Host } from './p-zwrcq-N2.js';
|
|
2
|
+
|
|
3
|
+
const afCardCss = ".sc-af-card-h{display:block;width:100%;min-height:400px}.card.sc-af-card{background:var(--colour-background-level-1, #e8eeed);border-radius:var(--border-radius-card-level-1, 32px);overflow:hidden;position:relative;display:flex;flex-direction:column;min-height:400px;height:100%;box-sizing:border-box}.card--with-image.sc-af-card{background:var(--colour-brand-inkwell, #14343b);min-height:480px}.card__background.sc-af-card{position:absolute;inset:0;pointer-events:none;z-index:0}.card__background-image.sc-af-card{width:100%;height:100%;object-fit:cover;object-position:center}.card__content.sc-af-card{position:relative;padding:40px;display:flex;flex-direction:column;gap:24px;flex:1;box-sizing:border-box;z-index:1}.card__content.sc-af-card-s>img,.card__content .sc-af-card-s>img{width:100%;height:auto;min-height:200px;margin-top:auto;object-fit:cover;object-position:top center}.card__content.sc-af-card-s>af-heading,.card__content .sc-af-card-s>af-heading{margin-bottom:0}.card__content.sc-af-card-s>af-text,.card__content .sc-af-card-s>af-text{line-height:1.44}.card__content--overlay.sc-af-card{backdrop-filter:blur(2px);background:linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);padding:32px;padding-top:200px;justify-content:flex-end;--colour-typography-heading-primary:#ffffff;--colour-typography-heading-secondary:#ffffff;--colour-typography-body-default:#ffffff;--colour-typography-body-dark:#ffffff;color:#ffffff}.card__content--overlay.sc-af-card *.sc-af-card{color:#ffffff !important}.card.sc-af-card:not(.card--with-image) .card__content.sc-af-card{color:var(--colour-typography-heading-primary, #14343b)}.card--custom-bg.sc-af-card .card__content.sc-af-card{--colour-typography-heading-primary:#ffffff;--colour-typography-body-default:#ffffff}";
|
|
4
|
+
|
|
5
|
+
const AfCard$1 = /*@__PURE__*/ proxyCustomElement(class AfCard extends H {
|
|
6
|
+
constructor(registerHost) {
|
|
7
|
+
super();
|
|
8
|
+
if (registerHost !== false) {
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Whether to apply a dark gradient overlay (for cards with background images)
|
|
13
|
+
*/
|
|
14
|
+
this.darkOverlay = false;
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
const hasBackgroundImage = !!this.backgroundImage;
|
|
18
|
+
const cardStyle = this.backgroundColor ? { backgroundColor: this.backgroundColor } : undefined;
|
|
19
|
+
return (h(Host, { key: '026a3f9e10d281558913cd6eb69db800da37deb4' }, h("div", { key: 'd6b43e724d5611e75ec096dad88c5373ef5c5adc', class: `card ${hasBackgroundImage ? 'card--with-image' : ''} ${this.darkOverlay ? 'card--dark-overlay' : ''} ${this.backgroundColor ? 'card--custom-bg' : ''}`, style: cardStyle }, hasBackgroundImage && (h("div", { key: 'f71753ba962411320c45f06c7c9a5c98b89883a9', class: "card__background" }, h("img", { key: '2d3b19e350ddf5a1efa1c1a9a343851e423cc275', src: this.backgroundImage, alt: "", class: "card__background-image" }))), h("div", { key: '459e00230ef7a470ee808d0d674412b18822d473', class: `card__content ${hasBackgroundImage ? 'card__content--overlay' : ''}` }, h("slot", { key: 'd2f4f261f0b2a766c912504d17f0caec96ae02c4' })))));
|
|
20
|
+
}
|
|
21
|
+
static get style() { return afCardCss; }
|
|
22
|
+
}, [262, "af-card", {
|
|
23
|
+
"backgroundImage": [1, "background-image"],
|
|
24
|
+
"backgroundColor": [1, "background-color"],
|
|
25
|
+
"darkOverlay": [4, "dark-overlay"]
|
|
26
|
+
}]);
|
|
27
|
+
function defineCustomElement$1() {
|
|
28
|
+
if (typeof customElements === "undefined") {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
const components = ["af-card"];
|
|
32
|
+
components.forEach(tagName => { switch (tagName) {
|
|
33
|
+
case "af-card":
|
|
34
|
+
if (!customElements.get(tagName)) {
|
|
35
|
+
customElements.define(tagName, AfCard$1);
|
|
36
|
+
}
|
|
37
|
+
break;
|
|
38
|
+
} });
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const AfCard = AfCard$1;
|
|
42
|
+
const defineCustomElement = defineCustomElement$1;
|
|
43
|
+
|
|
44
|
+
export { AfCard, defineCustomElement };
|
|
45
|
+
//# sourceMappingURL=af-card.js.map
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=af-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"af-card.js","mappings":";;AAAA,MAAM,SAAS,GAAG,wvDAAwvD;;MCQ7vDA,QAAM,iBAAAC,kBAAA,CAAA,MAAA,MAAA,SAAAC,CAAA,CAAA;AANnB,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;AAiBE;;AAEG;AACK,QAAA,IAAW,CAAA,WAAA,GAAY,KAAK;AAwBrC;IAtBC,MAAM,GAAA;AACJ,QAAA,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC,eAAe;AACjD,QAAA,MAAM,SAAS,GAAG,IAAI,CAAC,eAAe,GAAG,EAAE,eAAe,EAAE,IAAI,CAAC,eAAe,EAAE,GAAG,SAAS;AAE9F,QAAA,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACH,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,KAAK,EAAE,QAAQ,kBAAkB,GAAG,kBAAkB,GAAG,EAAE,IAAI,IAAI,CAAC,WAAW,GAAG,oBAAoB,GAAG,EAAE,CAAI,CAAA,EAAA,IAAI,CAAC,eAAe,GAAG,iBAAiB,GAAG,EAAE,CAAA,CAAE,EAC9J,KAAK,EAAE,SAAS,EAAA,EAEf,kBAAkB,KACjB,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,kBAAkB,EAAA,EAC3B,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,GAAG,EAAE,IAAI,CAAC,eAAe,EAAE,GAAG,EAAC,EAAE,EAAC,KAAK,EAAC,wBAAwB,EAAA,CAAG,CACpE,CACP,EACD,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAE,CAAiB,cAAA,EAAA,kBAAkB,GAAG,wBAAwB,GAAG,EAAE,CAAE,CAAA,EAAA,EAC/E,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAa,CACT,CACF,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["AfCard","__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/af-card/af-card.css?tag=af-card&encapsulation=scoped","src/components/af-card/af-card.tsx"],"sourcesContent":[":host {\n display: block;\n width: 100%;\n min-height: 400px;\n}\n\n.card {\n background: var(--colour-background-level-1, #e8eeed);\n border-radius: var(--border-radius-card-level-1, 32px);\n overflow: hidden;\n position: relative;\n display: flex;\n flex-direction: column;\n min-height: 400px;\n height: 100%;\n box-sizing: border-box;\n}\n\n.card--with-image {\n background: var(--colour-brand-inkwell, #14343b);\n min-height: 480px;\n}\n\n.card__background {\n position: absolute;\n inset: 0;\n pointer-events: none;\n z-index: 0;\n}\n\n.card__background-image {\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: center;\n}\n\n.card__content {\n position: relative;\n padding: 40px;\n display: flex;\n flex-direction: column;\n gap: 24px;\n flex: 1;\n box-sizing: border-box;\n z-index: 1;\n}\n\n/* Image styling within cards */\n.card__content ::slotted(img) {\n width: 100%;\n height: auto;\n min-height: 200px;\n margin-top: auto;\n object-fit: cover;\n object-position: top center;\n}\n\n/* Heading spacing within cards */\n.card__content ::slotted(af-heading) {\n margin-bottom: 0;\n}\n\n/* Text line-height within cards */\n.card__content ::slotted(af-text) {\n line-height: 1.44;\n}\n\n.card__content--overlay {\n backdrop-filter: blur(2px);\n background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);\n padding: 32px;\n padding-top: 200px;\n justify-content: flex-end;\n \n /* Set CSS custom properties for text color that child components can use */\n --colour-typography-heading-primary: #ffffff;\n --colour-typography-heading-secondary: #ffffff;\n --colour-typography-body-default: #ffffff;\n --colour-typography-body-dark: #ffffff;\n color: #ffffff;\n}\n\n/* Force white text in overlay cards using both direct styling and custom properties */\n.card__content--overlay * {\n color: #ffffff !important;\n}\n\n/* Dark text for regular cards */\n.card:not(.card--with-image) .card__content {\n color: var(--colour-typography-heading-primary, #14343b);\n}\n\n/* Custom background color cards with white text */\n.card--custom-bg .card__content {\n --colour-typography-heading-primary: #ffffff;\n --colour-typography-body-default: #ffffff;\n}\n\n","import { Component, Prop, h, Host } from '@stencil/core';\n\n@Component({\n tag: 'af-card',\n styleUrl: 'af-card.css',\n shadow: false,\n scoped: true,\n})\nexport class AfCard {\n /**\n * Background image URL for the card\n */\n @Prop() backgroundImage?: string;\n\n /**\n * Background color for the card (CSS color value)\n */\n @Prop() backgroundColor?: string;\n\n /**\n * Whether to apply a dark gradient overlay (for cards with background images)\n */\n @Prop() darkOverlay: boolean = false;\n\n render() {\n const hasBackgroundImage = !!this.backgroundImage;\n const cardStyle = this.backgroundColor ? { backgroundColor: this.backgroundColor } : undefined;\n\n return (\n <Host>\n <div \n class={`card ${hasBackgroundImage ? 'card--with-image' : ''} ${this.darkOverlay ? 'card--dark-overlay' : ''} ${this.backgroundColor ? 'card--custom-bg' : ''}`}\n style={cardStyle}\n >\n {hasBackgroundImage && (\n <div class=\"card__background\">\n <img src={this.backgroundImage} alt=\"\" class=\"card__background-image\" />\n </div>\n )}\n <div class={`card__content ${hasBackgroundImage ? 'card__content--overlay' : ''}`}>\n <slot></slot>\n </div>\n </div>\n </Host>\n );\n }\n}\n\n"],"version":3}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AfTypographyLockup$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { A as AfTypographyLockup$1, d as defineCustomElement$1 } from './p-DuXQZGjc.js';
|
|
2
2
|
|
|
3
3
|
const AfTypographyLockup = AfTypographyLockup$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
package/dist/components/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export { g as getAssetPath, r as render, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-
|
|
2
|
-
export { A as AfHeading } from './p-
|
|
3
|
-
export { A as AfText } from './p-
|
|
4
|
-
export { A as AfColorSwatch } from './p-
|
|
5
|
-
export { A as AfContainer } from './p-
|
|
6
|
-
export { A as AfAspectRatio } from './p-
|
|
7
|
-
export { A as AfNavItem } from './p-
|
|
8
|
-
export { A as AfNavbar } from './p-
|
|
9
|
-
export { A as AfLogo } from './p-
|
|
10
|
-
export { A as AfButton } from './p-
|
|
11
|
-
export { A as AfIconButton } from './p-
|
|
12
|
-
export { A as AfButtonGroup } from './p-
|
|
13
|
-
export { A as AfTypographyLockup } from './p-
|
|
1
|
+
export { g as getAssetPath, r as render, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-zwrcq-N2.js';
|
|
2
|
+
export { A as AfHeading } from './p-DIyOg-i_.js';
|
|
3
|
+
export { A as AfText } from './p-BpGDzCRf.js';
|
|
4
|
+
export { A as AfColorSwatch } from './p-DSAo7rhE.js';
|
|
5
|
+
export { A as AfContainer } from './p-CRgPNvxI.js';
|
|
6
|
+
export { A as AfAspectRatio } from './p-C6idwlD-.js';
|
|
7
|
+
export { A as AfNavItem } from './p-CJWIieDU.js';
|
|
8
|
+
export { A as AfNavbar } from './p-BHNNF4PT.js';
|
|
9
|
+
export { A as AfLogo } from './p-CaqzUz5o.js';
|
|
10
|
+
export { A as AfButton } from './p-cKSy1B8M.js';
|
|
11
|
+
export { A as AfIconButton } from './p-Dw33Xm_t.js';
|
|
12
|
+
export { A as AfButtonGroup } from './p-Cjv046iG.js';
|
|
13
|
+
export { A as AfTypographyLockup } from './p-DuXQZGjc.js';
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
15
15
|
|
|
16
16
|
//# sourceMappingURL=index.js.map
|