@affinda/wc 0.0.2 → 0.0.4
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-button-group.entry.esm.js.map +1 -0
- package/dist/affinda/af-button.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 -0
- package/dist/affinda/af-icon-button.entry.esm.js.map +1 -0
- package/dist/affinda/af-typography-lockup.entry.esm.js.map +1 -0
- 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/index.esm.js.map +1 -1
- package/dist/affinda/p-3bfcd11c.entry.js +2 -0
- package/dist/affinda/p-3bfcd11c.entry.js.map +1 -0
- package/dist/affinda/{p-ccdcebe9.entry.js → p-56c51fc1.entry.js} +2 -2
- package/dist/affinda/p-68da436b.entry.js +2 -0
- package/dist/affinda/p-68da436b.entry.js.map +1 -0
- package/dist/affinda/{p-f79068a7.entry.js → p-69f5573e.entry.js} +2 -2
- package/dist/affinda/p-9d8b122c.entry.js +2 -0
- package/dist/affinda/p-9d8b122c.entry.js.map +1 -0
- package/dist/affinda/p-BaBXdMMc.js +3 -0
- package/dist/affinda/p-BaBXdMMc.js.map +1 -0
- package/dist/affinda/{p-a6a8ecde.entry.js → p-aad67518.entry.js} +2 -2
- package/dist/affinda/p-b67961a7.entry.js +2 -0
- package/dist/affinda/p-b67961a7.entry.js.map +1 -0
- package/dist/affinda/p-f7d87013.entry.js +2 -0
- package/dist/affinda/p-f7d87013.entry.js.map +1 -0
- package/dist/cjs/af-aspect-ratio.cjs.entry.js +1 -1
- package/dist/cjs/af-button-group.cjs.entry.js +30 -0
- package/dist/cjs/af-button-group.entry.cjs.js.map +1 -0
- package/dist/cjs/af-button.cjs.entry.js +48 -0
- package/dist/cjs/af-button.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 -0
- package/dist/cjs/af-heading_5.cjs.entry.js +128 -0
- package/dist/cjs/af-icon-button.cjs.entry.js +44 -0
- package/dist/cjs/af-icon-button.entry.cjs.js.map +1 -0
- package/dist/cjs/af-typography-lockup.cjs.entry.js +45 -0
- package/dist/cjs/af-typography-lockup.entry.cjs.js.map +1 -0
- package/dist/cjs/affinda.cjs.js +2 -2
- package/dist/cjs/{index-DHjsui2n.js → index-D97w1U4L.js} +34 -6
- package/dist/cjs/index-D97w1U4L.js.map +1 -0
- package/dist/cjs/index.cjs.js +15 -5
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +7 -1
- package/dist/collection/components/af-button/af-button.css +183 -0
- package/dist/collection/components/af-button/af-button.js +154 -0
- package/dist/collection/components/af-button/af-button.js.map +1 -0
- package/dist/collection/components/af-button-group/af-button-group.css +22 -0
- package/dist/collection/components/af-button-group/af-button-group.js +77 -0
- package/dist/collection/components/af-button-group/af-button-group.js.map +1 -0
- package/dist/collection/components/af-icon-button/af-icon-button.css +169 -0
- package/dist/collection/components/af-icon-button/af-icon-button.js +169 -0
- package/dist/collection/components/af-icon-button/af-icon-button.js.map +1 -0
- package/dist/collection/components/af-logo/af-logo.css +10 -0
- package/dist/collection/components/af-logo/af-logo.js +22 -0
- package/dist/collection/components/af-logo/af-logo.js.map +1 -0
- package/dist/collection/components/af-nav-item/af-nav-item.css +18 -7
- package/dist/collection/components/af-navbar/af-navbar.css +119 -0
- package/dist/collection/components/af-navbar/af-navbar.js +23 -0
- package/dist/collection/components/af-navbar/af-navbar.js.map +1 -0
- package/dist/collection/components/af-typography-lockup/af-typography-lockup.css +168 -0
- package/dist/collection/components/af-typography-lockup/af-typography-lockup.js +151 -0
- package/dist/collection/components/af-typography-lockup/af-typography-lockup.js.map +1 -0
- package/dist/collection/components.js +6 -0
- package/dist/collection/components.js.map +1 -1
- package/dist/components/af-aspect-ratio.js +1 -1
- package/dist/components/af-button-group.d.ts +11 -0
- package/dist/components/af-button-group.js +9 -0
- package/dist/components/af-button-group.js.map +1 -0
- package/dist/components/af-button.d.ts +11 -0
- package/dist/components/af-button.js +9 -0
- package/dist/components/af-button.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.d.ts +11 -0
- package/dist/components/af-icon-button.js +9 -0
- package/dist/components/af-icon-button.js.map +1 -0
- package/dist/components/af-logo.d.ts +11 -0
- package/dist/components/af-logo.js +9 -0
- package/dist/components/af-logo.js.map +1 -0
- package/dist/components/af-nav-item.js +1 -1
- package/dist/components/af-navbar.d.ts +11 -0
- package/dist/components/af-navbar.js +9 -0
- package/dist/components/af-navbar.js.map +1 -0
- package/dist/components/af-text.js +1 -1
- package/dist/components/af-typography-lockup.d.ts +11 -0
- package/dist/components/af-typography-lockup.js +9 -0
- package/dist/components/af-typography-lockup.js.map +1 -0
- package/dist/components/index.js +13 -7
- package/dist/components/index.js.map +1 -1
- package/dist/components/p-5LmA06cB.js +50 -0
- package/dist/components/p-5LmA06cB.js.map +1 -0
- package/dist/components/{p-TaHgCKVa.js → p-BphH2zpz.js} +34 -6
- package/dist/components/p-BphH2zpz.js.map +1 -0
- package/dist/components/p-BvU8ETOD.js +71 -0
- package/dist/components/p-BvU8ETOD.js.map +1 -0
- package/dist/components/{p-BZ5_l5Q-.js → p-BwsohoSw.js} +3 -3
- package/dist/components/{p-BZ5_l5Q-.js.map → p-BwsohoSw.js.map} +1 -1
- package/dist/components/p-CULmtqPG.js +35 -0
- package/dist/components/p-CULmtqPG.js.map +1 -0
- package/dist/components/{p-DbZX-luM.js → p-Cpc8P-ou.js} +3 -3
- package/dist/components/{p-DbZX-luM.js.map → p-Cpc8P-ou.js.map} +1 -1
- package/dist/components/{p-Ck_3oNdO.js → p-CwHzsQvO.js} +3 -3
- package/dist/components/{p-Ck_3oNdO.js.map → p-CwHzsQvO.js.map} +1 -1
- package/dist/components/p-D1Yr2lLq.js +68 -0
- package/dist/components/p-D1Yr2lLq.js.map +1 -0
- package/dist/components/p-D7g9FtMr.js +68 -0
- package/dist/components/p-D7g9FtMr.js.map +1 -0
- package/dist/components/{p-CCPh8sLt.js → p-DSESDq7v.js} +3 -3
- package/dist/components/{p-CCPh8sLt.js.map → p-DSESDq7v.js.map} +1 -1
- package/dist/components/{p-Ntwn3krC.js → p-DgZl7pFQ.js} +4 -4
- package/dist/components/p-DgZl7pFQ.js.map +1 -0
- package/dist/components/p-KunaKXcK.js +35 -0
- package/dist/components/p-KunaKXcK.js.map +1 -0
- package/dist/components/{p-CbKdmUDd.js → p-S40-XegF.js} +3 -3
- package/dist/components/{p-CbKdmUDd.js.map → p-S40-XegF.js.map} +1 -1
- package/dist/esm/af-aspect-ratio.entry.js +1 -1
- package/dist/esm/af-button-group.entry.js +28 -0
- package/dist/esm/af-button-group.entry.js.map +1 -0
- package/dist/esm/af-button.entry.js +46 -0
- package/dist/esm/af-button.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 -0
- package/dist/esm/af-heading_5.entry.js +122 -0
- package/dist/esm/af-icon-button.entry.js +42 -0
- package/dist/esm/af-icon-button.entry.js.map +1 -0
- package/dist/esm/af-typography-lockup.entry.js +43 -0
- package/dist/esm/af-typography-lockup.entry.js.map +1 -0
- package/dist/esm/affinda.js +3 -3
- package/dist/esm/{index-DIoXjiux.js → index-BaBXdMMc.js} +34 -6
- package/dist/esm/index-BaBXdMMc.js.map +1 -0
- package/dist/esm/index.js +6 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/af-button/af-button.d.ts +23 -0
- package/dist/types/components/af-button-group/af-button-group.d.ts +11 -0
- package/dist/types/components/af-icon-button/af-icon-button.d.ts +27 -0
- package/dist/types/components/af-logo/af-logo.d.ts +6 -0
- package/dist/types/components/af-navbar/af-navbar.d.ts +7 -0
- package/dist/types/components/af-typography-lockup/af-typography-lockup.d.ts +23 -0
- package/dist/types/components.d.ts +278 -0
- package/package.json +13 -13
- package/dist/affinda/af-heading.af-nav-item.af-text.entry.esm.js.map +0 -1
- package/dist/affinda/p-96c74b41.entry.js +0 -2
- package/dist/affinda/p-96c74b41.entry.js.map +0 -1
- package/dist/affinda/p-DIoXjiux.js +0 -3
- package/dist/affinda/p-DIoXjiux.js.map +0 -1
- package/dist/cjs/af-heading.af-nav-item.af-text.entry.cjs.js.map +0 -1
- package/dist/cjs/af-heading_3.cjs.entry.js +0 -102
- package/dist/cjs/index-DHjsui2n.js.map +0 -1
- package/dist/collection/assets/icons/account-01.svg +0 -3
- package/dist/collection/assets/icons/account-02.svg +0 -3
- package/dist/collection/assets/icons/accounts-payable.svg +0 -3
- package/dist/collection/assets/icons/arrow-down.svg +0 -3
- package/dist/collection/assets/icons/arrow-left.svg +0 -3
- package/dist/collection/assets/icons/arrow-right.svg +0 -3
- package/dist/collection/assets/icons/arrow-up.svg +0 -3
- package/dist/collection/assets/icons/bpo.svg +0 -3
- package/dist/collection/assets/icons/chats.svg +0 -3
- package/dist/collection/assets/icons/check-circle.svg +0 -3
- package/dist/collection/assets/icons/check.svg +0 -3
- package/dist/collection/assets/icons/chevron-down.svg +0 -3
- package/dist/collection/assets/icons/chevron-left.svg +0 -3
- package/dist/collection/assets/icons/chevron-right.svg +0 -3
- package/dist/collection/assets/icons/chevron-up.svg +0 -3
- package/dist/collection/assets/icons/close.svg +0 -3
- package/dist/collection/assets/icons/code.svg +0 -3
- package/dist/collection/assets/icons/data.svg +0 -3
- package/dist/collection/assets/icons/document-upload.svg +0 -3
- package/dist/collection/assets/icons/download.svg +0 -3
- package/dist/collection/assets/icons/edit.svg +0 -3
- package/dist/collection/assets/icons/email.svg +0 -3
- package/dist/collection/assets/icons/eye.svg +0 -3
- package/dist/collection/assets/icons/facebook.svg +0 -3
- package/dist/collection/assets/icons/gear.svg +0 -3
- package/dist/collection/assets/icons/github.svg +0 -3
- package/dist/collection/assets/icons/heart.svg +0 -3
- package/dist/collection/assets/icons/home.svg +0 -3
- package/dist/collection/assets/icons/info.svg +0 -3
- package/dist/collection/assets/icons/insurance.svg +0 -3
- package/dist/collection/assets/icons/lending-01.svg +0 -3
- package/dist/collection/assets/icons/lending-02.svg +0 -3
- package/dist/collection/assets/icons/link-out.svg +0 -3
- package/dist/collection/assets/icons/linkedin.svg +0 -3
- package/dist/collection/assets/icons/map-pin.svg +0 -3
- package/dist/collection/assets/icons/menu.svg +0 -3
- package/dist/collection/assets/icons/minus.svg +0 -3
- package/dist/collection/assets/icons/numbers.svg +0 -16
- package/dist/collection/assets/icons/pause.svg +0 -3
- package/dist/collection/assets/icons/play.svg +0 -3
- package/dist/collection/assets/icons/plus.svg +0 -3
- package/dist/collection/assets/icons/productivity.svg +0 -3
- package/dist/collection/assets/icons/quote.svg +0 -3
- package/dist/collection/assets/icons/recruitment.svg +0 -3
- package/dist/collection/assets/icons/refresh.svg +0 -3
- package/dist/collection/assets/icons/search.svg +0 -3
- package/dist/collection/assets/icons/security-01.svg +0 -3
- package/dist/collection/assets/icons/security-02.svg +0 -3
- package/dist/collection/assets/icons/solutions.svg +0 -3
- package/dist/collection/assets/icons/support.svg +0 -3
- package/dist/collection/assets/icons/system.svg +0 -3
- package/dist/collection/assets/icons/time.svg +0 -3
- package/dist/collection/assets/icons/verification-01.svg +0 -3
- package/dist/collection/assets/icons/wand.svg +0 -3
- package/dist/collection/assets/icons/x.svg +0 -3
- package/dist/collection/assets/icons/youtube.svg +0 -3
- package/dist/collection/assets/illustrations/accuracy-inkwell.svg +0 -101
- package/dist/collection/assets/illustrations/accuracy-mist-green.svg +0 -101
- package/dist/collection/assets/illustrations/accuracy-soft-clay.svg +0 -101
- package/dist/collection/assets/illustrations/accuracy-white-ivory.svg +0 -101
- package/dist/collection/assets/illustrations/automate-inkwell.svg +0 -149
- package/dist/collection/assets/illustrations/automate-mist-green.svg +0 -149
- package/dist/collection/assets/illustrations/automate-soft-clay.svg +0 -149
- package/dist/collection/assets/illustrations/automate-white-ivory.svg +0 -149
- package/dist/collection/assets/illustrations/document-raise-inkwell.svg +0 -131
- package/dist/collection/assets/illustrations/document-raise-mist-green.svg +0 -131
- package/dist/collection/assets/illustrations/document-raise-soft-clay.svg +0 -131
- package/dist/collection/assets/illustrations/document-raise-white-ivory.svg +0 -131
- package/dist/collection/assets/illustrations/document-type-inkwell.svg +0 -150
- package/dist/collection/assets/illustrations/document-type-mist-green.svg +0 -150
- package/dist/collection/assets/illustrations/document-type-soft-clay.svg +0 -150
- package/dist/collection/assets/illustrations/document-type-white-ivory.svg +0 -150
- package/dist/collection/assets/illustrations/grow-business-inkwell.svg +0 -116
- package/dist/collection/assets/illustrations/grow-business-mist-green.svg +0 -129
- package/dist/collection/assets/illustrations/grow-business-soft-clay.svg +0 -129
- package/dist/collection/assets/illustrations/grow-business-white-ivory.svg +0 -129
- package/dist/collection/assets/illustrations/industries-inkwell.svg +0 -30
- package/dist/collection/assets/illustrations/industries-mist-green.svg +0 -30
- package/dist/collection/assets/illustrations/industries-soft-clay.svg +0 -30
- package/dist/collection/assets/illustrations/industries-white-ivory.svg +0 -41
- package/dist/collection/assets/illustrations/intelligence-inkwell.svg +0 -65
- package/dist/collection/assets/illustrations/intelligence-mist-green.svg +0 -65
- package/dist/collection/assets/illustrations/intelligence-soft-clay.svg +0 -65
- package/dist/collection/assets/illustrations/intelligence-white-ivory.svg +0 -65
- package/dist/collection/assets/illustrations/page-turn-inkwell.svg +0 -125
- package/dist/collection/assets/illustrations/page-turn-mist-green.svg +0 -125
- package/dist/collection/assets/illustrations/page-turn-soft-clay.svg +0 -125
- package/dist/collection/assets/illustrations/page-turn-white-ivory.svg +0 -125
- package/dist/collection/assets/illustrations/shapes-inkwell.svg +0 -65
- package/dist/collection/assets/illustrations/shapes-mist-green.svg +0 -65
- package/dist/collection/assets/illustrations/shapes-soft-clay.svg +0 -65
- package/dist/collection/assets/illustrations/shapes-white-ivory.svg +0 -65
- package/dist/collection/assets/illustrations/team-leader-inkwell.svg +0 -106
- package/dist/collection/assets/illustrations/team-leader-mist-green.svg +0 -106
- package/dist/collection/assets/illustrations/team-leader-soft-clay.svg +0 -106
- package/dist/collection/assets/illustrations/team-leader-white-ivory.svg +0 -106
- package/dist/collection/assets/illustrations/thinking-inkwell.svg +0 -89
- package/dist/collection/assets/illustrations/thinking-mist-green.svg +0 -89
- package/dist/collection/assets/illustrations/thinking-soft-clay.svg +0 -89
- package/dist/collection/assets/illustrations/thinking-white-ivory.svg +0 -89
- package/dist/components/p-Ntwn3krC.js.map +0 -1
- package/dist/components/p-TaHgCKVa.js.map +0 -1
- package/dist/esm/af-heading.af-nav-item.af-text.entry.js.map +0 -1
- package/dist/esm/af-heading_3.entry.js +0 -98
- package/dist/esm/index-DIoXjiux.js.map +0 -1
- /package/dist/affinda/{p-ccdcebe9.entry.js.map → p-56c51fc1.entry.js.map} +0 -0
- /package/dist/affinda/{p-f79068a7.entry.js.map → p-69f5573e.entry.js.map} +0 -0
- /package/dist/affinda/{p-a6a8ecde.entry.js.map → p-aad67518.entry.js.map} +0 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
export class AfIconButton {
|
|
3
|
+
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* The visual variant of the button
|
|
6
|
+
*/
|
|
7
|
+
this.variant = 'primary';
|
|
8
|
+
/**
|
|
9
|
+
* The size of the button
|
|
10
|
+
*/
|
|
11
|
+
this.size = 'medium';
|
|
12
|
+
/**
|
|
13
|
+
* Whether the button is disabled
|
|
14
|
+
*/
|
|
15
|
+
this.disabled = false;
|
|
16
|
+
/**
|
|
17
|
+
* Button type (when not using href)
|
|
18
|
+
*/
|
|
19
|
+
this.type = 'button';
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
const classes = {
|
|
23
|
+
'icon-button': true,
|
|
24
|
+
[`variant-${this.variant}`]: true,
|
|
25
|
+
[`size-${this.size}`]: true,
|
|
26
|
+
'disabled': this.disabled
|
|
27
|
+
};
|
|
28
|
+
const content = (h("span", { class: "icon" }, h("slot", null)));
|
|
29
|
+
if (this.href && !this.disabled) {
|
|
30
|
+
return (h(Host, null, h("a", { href: this.href, class: classes, "aria-label": this.ariaLabel }, content)));
|
|
31
|
+
}
|
|
32
|
+
return (h(Host, null, h("button", { type: this.type, disabled: this.disabled, class: classes, "aria-label": this.ariaLabel }, content)));
|
|
33
|
+
}
|
|
34
|
+
static get is() { return "af-icon-button"; }
|
|
35
|
+
static get encapsulation() { return "shadow"; }
|
|
36
|
+
static get originalStyleUrls() {
|
|
37
|
+
return {
|
|
38
|
+
"$": ["af-icon-button.css"]
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
static get styleUrls() {
|
|
42
|
+
return {
|
|
43
|
+
"$": ["af-icon-button.css"]
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
static get properties() {
|
|
47
|
+
return {
|
|
48
|
+
"variant": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"mutable": false,
|
|
51
|
+
"complexType": {
|
|
52
|
+
"original": "'primary' | 'secondary' | 'outline' | 'ghost'",
|
|
53
|
+
"resolved": "\"ghost\" | \"outline\" | \"primary\" | \"secondary\"",
|
|
54
|
+
"references": {}
|
|
55
|
+
},
|
|
56
|
+
"required": false,
|
|
57
|
+
"optional": false,
|
|
58
|
+
"docs": {
|
|
59
|
+
"tags": [],
|
|
60
|
+
"text": "The visual variant of the button"
|
|
61
|
+
},
|
|
62
|
+
"getter": false,
|
|
63
|
+
"setter": false,
|
|
64
|
+
"reflect": false,
|
|
65
|
+
"attribute": "variant",
|
|
66
|
+
"defaultValue": "'primary'"
|
|
67
|
+
},
|
|
68
|
+
"size": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"mutable": false,
|
|
71
|
+
"complexType": {
|
|
72
|
+
"original": "'large' | 'medium' | 'small'",
|
|
73
|
+
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
74
|
+
"references": {}
|
|
75
|
+
},
|
|
76
|
+
"required": false,
|
|
77
|
+
"optional": false,
|
|
78
|
+
"docs": {
|
|
79
|
+
"tags": [],
|
|
80
|
+
"text": "The size of the button"
|
|
81
|
+
},
|
|
82
|
+
"getter": false,
|
|
83
|
+
"setter": false,
|
|
84
|
+
"reflect": false,
|
|
85
|
+
"attribute": "size",
|
|
86
|
+
"defaultValue": "'medium'"
|
|
87
|
+
},
|
|
88
|
+
"disabled": {
|
|
89
|
+
"type": "boolean",
|
|
90
|
+
"mutable": false,
|
|
91
|
+
"complexType": {
|
|
92
|
+
"original": "boolean",
|
|
93
|
+
"resolved": "boolean",
|
|
94
|
+
"references": {}
|
|
95
|
+
},
|
|
96
|
+
"required": false,
|
|
97
|
+
"optional": false,
|
|
98
|
+
"docs": {
|
|
99
|
+
"tags": [],
|
|
100
|
+
"text": "Whether the button is disabled"
|
|
101
|
+
},
|
|
102
|
+
"getter": false,
|
|
103
|
+
"setter": false,
|
|
104
|
+
"reflect": false,
|
|
105
|
+
"attribute": "disabled",
|
|
106
|
+
"defaultValue": "false"
|
|
107
|
+
},
|
|
108
|
+
"href": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"mutable": false,
|
|
111
|
+
"complexType": {
|
|
112
|
+
"original": "string",
|
|
113
|
+
"resolved": "string | undefined",
|
|
114
|
+
"references": {}
|
|
115
|
+
},
|
|
116
|
+
"required": false,
|
|
117
|
+
"optional": true,
|
|
118
|
+
"docs": {
|
|
119
|
+
"tags": [],
|
|
120
|
+
"text": "Optional href to render as a link"
|
|
121
|
+
},
|
|
122
|
+
"getter": false,
|
|
123
|
+
"setter": false,
|
|
124
|
+
"reflect": false,
|
|
125
|
+
"attribute": "href"
|
|
126
|
+
},
|
|
127
|
+
"type": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"mutable": false,
|
|
130
|
+
"complexType": {
|
|
131
|
+
"original": "'button' | 'submit' | 'reset'",
|
|
132
|
+
"resolved": "\"button\" | \"reset\" | \"submit\"",
|
|
133
|
+
"references": {}
|
|
134
|
+
},
|
|
135
|
+
"required": false,
|
|
136
|
+
"optional": false,
|
|
137
|
+
"docs": {
|
|
138
|
+
"tags": [],
|
|
139
|
+
"text": "Button type (when not using href)"
|
|
140
|
+
},
|
|
141
|
+
"getter": false,
|
|
142
|
+
"setter": false,
|
|
143
|
+
"reflect": false,
|
|
144
|
+
"attribute": "type",
|
|
145
|
+
"defaultValue": "'button'"
|
|
146
|
+
},
|
|
147
|
+
"ariaLabel": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"mutable": false,
|
|
150
|
+
"complexType": {
|
|
151
|
+
"original": "string",
|
|
152
|
+
"resolved": "string",
|
|
153
|
+
"references": {}
|
|
154
|
+
},
|
|
155
|
+
"required": true,
|
|
156
|
+
"optional": false,
|
|
157
|
+
"docs": {
|
|
158
|
+
"tags": [],
|
|
159
|
+
"text": "Accessible label for screen readers"
|
|
160
|
+
},
|
|
161
|
+
"getter": false,
|
|
162
|
+
"setter": false,
|
|
163
|
+
"reflect": false,
|
|
164
|
+
"attribute": "aria-label"
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
//# sourceMappingURL=af-icon-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"af-icon-button.js","sourceRoot":"","sources":["../../../src/components/af-icon-button/af-icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,YAAY;IALzB;QAME;;WAEG;QACK,YAAO,GAAkD,SAAS,CAAC;QAE3E;;WAEG;QACK,SAAI,GAAiC,QAAQ,CAAC;QAEtD;;WAEG;QACK,aAAQ,GAAY,KAAK,CAAC;QAOlC;;WAEG;QACK,SAAI,GAAkC,QAAQ,CAAC;KAuCxD;IAhCC,MAAM;QACJ,MAAM,OAAO,GAAG;YACd,aAAa,EAAE,IAAI;YACnB,CAAC,WAAW,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,IAAI;YACjC,CAAC,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI;YAC3B,UAAU,EAAE,IAAI,CAAC,QAAQ;SAC1B,CAAC;QAEF,MAAM,OAAO,GAAG,CACd,YAAM,KAAK,EAAC,MAAM;YAChB,eAAa,CACR,CACR,CAAC;QAEF,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YAChC,OAAO,CACL,EAAC,IAAI;gBACH,SAAG,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,gBAAc,IAAI,CAAC,SAAS,IAC3D,OAAO,CACN,CACC,CACR,CAAC;QACJ,CAAC;QAED,OAAO,CACL,EAAC,IAAI;YACH,cAAQ,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,gBAAc,IAAI,CAAC,SAAS,IACzF,OAAO,CACD,CACJ,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop, Host } from '@stencil/core';\n\n@Component({\n tag: 'af-icon-button',\n styleUrl: 'af-icon-button.css',\n shadow: true\n})\nexport class AfIconButton {\n /**\n * The visual variant of the button\n */\n @Prop() variant: 'primary' | 'secondary' | 'outline' | 'ghost' = 'primary';\n\n /**\n * The size of the button\n */\n @Prop() size: 'large' | 'medium' | 'small' = 'medium';\n\n /**\n * Whether the button is disabled\n */\n @Prop() disabled: boolean = false;\n\n /**\n * Optional href to render as a link\n */\n @Prop() href?: string;\n\n /**\n * Button type (when not using href)\n */\n @Prop() type: 'button' | 'submit' | 'reset' = 'button';\n\n /**\n * Accessible label for screen readers\n */\n @Prop() ariaLabel!: string;\n\n render() {\n const classes = {\n 'icon-button': true,\n [`variant-${this.variant}`]: true,\n [`size-${this.size}`]: true,\n 'disabled': this.disabled\n };\n\n const content = (\n <span class=\"icon\">\n <slot></slot>\n </span>\n );\n\n if (this.href && !this.disabled) {\n return (\n <Host>\n <a href={this.href} class={classes} aria-label={this.ariaLabel}>\n {content}\n </a>\n </Host>\n );\n }\n\n return (\n <Host>\n <button type={this.type} disabled={this.disabled} class={classes} aria-label={this.ariaLabel}>\n {content}\n </button>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* Affinda logo component
|
|
4
|
+
*/
|
|
5
|
+
export class AfLogo {
|
|
6
|
+
render() {
|
|
7
|
+
return (h(Host, { key: '8a33b73d7a60054dde8a04327d94d78763552549' }, h("svg", { key: '7195b06d8ab5a335e70a1e7310fd753cb3887599', width: "141", height: "22", viewBox: "0 0 141 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "logo-svg" }, h("path", { key: '5bb4bb2f7f6063928c3cfc7938b85291e70bec27', d: "M20.8 9.6c0-1.5-.4-2.7-1.1-3.7-.8-1-1.8-1.5-3.2-1.5-1.3 0-2.4.5-3.2 1.5-.7 1-1.1 2.2-1.1 3.7 0 1.5.4 2.7 1.1 3.7.8 1 1.9 1.5 3.2 1.5 1.4 0 2.5-.5 3.2-1.5.7-1 1.1-2.2 1.1-3.7zm4.2 0c0 2.4-.7 4.4-2 5.9-1.4 1.5-3.2 2.3-5.5 2.3-2.2 0-4-.8-5.4-2.3-1.4-1.5-2.1-3.5-2.1-5.9 0-2.4.7-4.4 2.1-5.9C13.5 2.2 15.3 1.4 17.5 1.4c2.3 0 4.1.8 5.5 2.3 1.3 1.5 2 3.5 2 5.9zM29.1 17.5h-4.2V4.7h4.2v12.8zm0-14.9h-4.2V.2h4.2v2.4zM43.3 17.5h-4.2v-1.5c-.7 1.2-1.9 1.8-3.7 1.8-1.3 0-2.4-.4-3.2-1.2-.8-.8-1.2-2-1.2-3.5V4.7h4.2v8.1c0 1.7.7 2.5 2 2.5.7 0 1.3-.2 1.7-.7.4-.4.6-1.1.6-1.9V4.7h4.2v12.8h-.4z", fill: "currentColor" }), h("path", { key: '7a5a7e54b69475ad6f9d1ddf240e668708a06ff2', d: "M56.9 17.5h-4.2v-1.5c-.7 1.2-1.9 1.8-3.7 1.8-1.3 0-2.4-.4-3.2-1.2-.8-.8-1.2-2-1.2-3.5V4.7h4.2v8.1c0 1.7.7 2.5 2 2.5.7 0 1.3-.2 1.7-.7.4-.4.6-1.1.6-1.9V4.7h4.2v12.8h-.4zM68.3 5.9c-.7-.4-1.5-.6-2.4-.6-1.2 0-2.2.4-2.9 1.2-.8.8-1.1 1.9-1.1 3.3 0 1.4.4 2.5 1.1 3.3.8.8 1.7 1.2 2.9 1.2.9 0 1.7-.2 2.4-.6v3.5c-.9.3-1.9.5-2.9.5-2.3 0-4.2-.7-5.6-2.2-1.4-1.5-2.1-3.4-2.1-5.8 0-1.5.3-2.9.9-4.1.6-1.2 1.5-2.2 2.6-2.8 1.1-.7 2.4-1 3.8-1 1.1 0 2.1.2 3.1.6l.2 3.5z", fill: "currentColor" }), h("path", { key: '29ba5bc9bc4fc8068d77dd092f6fbf2dccc2caa2', d: "M80 4.7h4.2v1.6c.7-1.2 1.9-1.9 3.6-1.9 1.3 0 2.3.4 3.1 1.2.8.8 1.2 2 1.2 3.5v8.4h-4.2V9.4c0-1.7-.7-2.5-2-2.5-.7 0-1.2.2-1.6.7-.4.4-.6 1.1-.6 1.9v8h-4.2V4.7h.5zM105.3 17.5h-4.2v-1.1c-.8 1-2 1.5-3.6 1.5-1.4 0-2.6-.5-3.5-1.4-.9-.9-1.4-2.1-1.4-3.6V9.6c0-1.5.5-2.7 1.4-3.6.9-.9 2.1-1.4 3.5-1.4 1.6 0 2.8.5 3.6 1.5V.2h4.2v17.3zm-4.2-7.9c0-.8-.3-1.5-.8-2-.5-.5-1.2-.8-2-.8-.8 0-1.5.3-2 .8-.5.5-.8 1.2-.8 2 0 .8.3 1.5.8 2 .5.5 1.2.8 2 .8.8 0 1.5-.3 2-.8.5-.5.8-1.2.8-2z", fill: "currentColor" }), h("path", { key: 'd528008c06633218db38e63f0605874f703d3165', d: "M115.8 17.5h-4.2V4.7h4.2v1.1c.8-1 2-1.5 3.6-1.5 1.4 0 2.6.5 3.5 1.4.9.9 1.4 2.1 1.4 3.6v3.3c0 1.5-.5 2.7-1.4 3.6-.9.9-2.1 1.4-3.5 1.4-1.6 0-2.8-.5-3.6-1.5v1.4zm4.2-7.9c0-.8-.3-1.5-.8-2-.5-.5-1.2-.8-2-.8-.8 0-1.5.3-2 .8-.5.5-.8 1.2-.8 2 0 .8.3 1.5.8 2 .5.5 1.2.8 2 .8.8 0 1.5-.3 2-.8.5-.5.8-1.2.8-2z", fill: "currentColor" }), h("g", { key: 'e3c341f6286afc34b918924fe1ce7d147adcb09a', "clip-path": "url(#clip0)" }, h("path", { key: '1d8c3fbc8995e2017357ceaab53ffd66970fe017', d: "M4.9 9.6c0-1.5-.4-2.7-1.1-3.7C3 4.9 2 4.4.6 4.4c-.3 0-.6 0-.9.1v10.2c.3.1.6.1.9.1 1.4 0 2.5-.5 3.2-1.5.7-1 1.1-2.2 1.1-3.7zM9.1 9.6c0 2.4-.7 4.4-2 5.9-1.4 1.5-3.2 2.3-5.5 2.3-.7 0-1.4-.1-2.1-.2V.2C.2.1.9 0 1.6 0c2.3 0 4.1.8 5.5 2.3 1.3 1.5 2 3.5 2 5.3z", fill: "currentColor" })), h("defs", { key: 'b10859520274b6db85b3192b314f2a2bc6b41da7' }, h("clipPath", { key: '8834e78ed619077f26809a22f7130f6941f2ef5f', id: "clip0" }, h("path", { key: '5a01632b2fb3c6a6d630afaefc6489cb879f5116', fill: "#fff", d: "M0 0h9.1v17.8H0z" }))))));
|
|
8
|
+
}
|
|
9
|
+
static get is() { return "af-logo"; }
|
|
10
|
+
static get encapsulation() { return "shadow"; }
|
|
11
|
+
static get originalStyleUrls() {
|
|
12
|
+
return {
|
|
13
|
+
"$": ["af-logo.css"]
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
static get styleUrls() {
|
|
17
|
+
return {
|
|
18
|
+
"$": ["af-logo.css"]
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=af-logo.js.map
|
|
@@ -0,0 +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,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,YAAY,EACpB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,UAAU;gBAEhB,6DACE,CAAC,EAAC,ikBAAikB,EACnkB,IAAI,EAAC,cAAc,GACnB;gBACF,6DACE,CAAC,EAAC,mcAAmc,EACrc,IAAI,EAAC,cAAc,GACnB;gBACF,6DACE,CAAC,EAAC,+cAA+c,EACjd,IAAI,EAAC,cAAc,GACnB;gBACF,6DACE,CAAC,EAAC,4SAA4S,EAC9S,IAAI,EAAC,cAAc,GACnB;gBACF,uEAAa,aAAa;oBACxB,6DACE,CAAC,EAAC,8PAA8P,EAChQ,IAAI,EAAC,cAAc,GACnB,CACA;gBACJ;oBACE,iEAAU,EAAE,EAAC,OAAO;wBAClB,6DAAM,IAAI,EAAC,MAAM,EAAC,CAAC,EAAC,kBAAkB,GAAG,CAChC,CACN,CACH,CACD,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 <svg\n width=\"141\"\n height=\"22\"\n viewBox=\"0 0 141 22\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"logo-svg\"\n >\n <path\n d=\"M20.8 9.6c0-1.5-.4-2.7-1.1-3.7-.8-1-1.8-1.5-3.2-1.5-1.3 0-2.4.5-3.2 1.5-.7 1-1.1 2.2-1.1 3.7 0 1.5.4 2.7 1.1 3.7.8 1 1.9 1.5 3.2 1.5 1.4 0 2.5-.5 3.2-1.5.7-1 1.1-2.2 1.1-3.7zm4.2 0c0 2.4-.7 4.4-2 5.9-1.4 1.5-3.2 2.3-5.5 2.3-2.2 0-4-.8-5.4-2.3-1.4-1.5-2.1-3.5-2.1-5.9 0-2.4.7-4.4 2.1-5.9C13.5 2.2 15.3 1.4 17.5 1.4c2.3 0 4.1.8 5.5 2.3 1.3 1.5 2 3.5 2 5.9zM29.1 17.5h-4.2V4.7h4.2v12.8zm0-14.9h-4.2V.2h4.2v2.4zM43.3 17.5h-4.2v-1.5c-.7 1.2-1.9 1.8-3.7 1.8-1.3 0-2.4-.4-3.2-1.2-.8-.8-1.2-2-1.2-3.5V4.7h4.2v8.1c0 1.7.7 2.5 2 2.5.7 0 1.3-.2 1.7-.7.4-.4.6-1.1.6-1.9V4.7h4.2v12.8h-.4z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M56.9 17.5h-4.2v-1.5c-.7 1.2-1.9 1.8-3.7 1.8-1.3 0-2.4-.4-3.2-1.2-.8-.8-1.2-2-1.2-3.5V4.7h4.2v8.1c0 1.7.7 2.5 2 2.5.7 0 1.3-.2 1.7-.7.4-.4.6-1.1.6-1.9V4.7h4.2v12.8h-.4zM68.3 5.9c-.7-.4-1.5-.6-2.4-.6-1.2 0-2.2.4-2.9 1.2-.8.8-1.1 1.9-1.1 3.3 0 1.4.4 2.5 1.1 3.3.8.8 1.7 1.2 2.9 1.2.9 0 1.7-.2 2.4-.6v3.5c-.9.3-1.9.5-2.9.5-2.3 0-4.2-.7-5.6-2.2-1.4-1.5-2.1-3.4-2.1-5.8 0-1.5.3-2.9.9-4.1.6-1.2 1.5-2.2 2.6-2.8 1.1-.7 2.4-1 3.8-1 1.1 0 2.1.2 3.1.6l.2 3.5z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M80 4.7h4.2v1.6c.7-1.2 1.9-1.9 3.6-1.9 1.3 0 2.3.4 3.1 1.2.8.8 1.2 2 1.2 3.5v8.4h-4.2V9.4c0-1.7-.7-2.5-2-2.5-.7 0-1.2.2-1.6.7-.4.4-.6 1.1-.6 1.9v8h-4.2V4.7h.5zM105.3 17.5h-4.2v-1.1c-.8 1-2 1.5-3.6 1.5-1.4 0-2.6-.5-3.5-1.4-.9-.9-1.4-2.1-1.4-3.6V9.6c0-1.5.5-2.7 1.4-3.6.9-.9 2.1-1.4 3.5-1.4 1.6 0 2.8.5 3.6 1.5V.2h4.2v17.3zm-4.2-7.9c0-.8-.3-1.5-.8-2-.5-.5-1.2-.8-2-.8-.8 0-1.5.3-2 .8-.5.5-.8 1.2-.8 2 0 .8.3 1.5.8 2 .5.5 1.2.8 2 .8.8 0 1.5-.3 2-.8.5-.5.8-1.2.8-2z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M115.8 17.5h-4.2V4.7h4.2v1.1c.8-1 2-1.5 3.6-1.5 1.4 0 2.6.5 3.5 1.4.9.9 1.4 2.1 1.4 3.6v3.3c0 1.5-.5 2.7-1.4 3.6-.9.9-2.1 1.4-3.5 1.4-1.6 0-2.8-.5-3.6-1.5v1.4zm4.2-7.9c0-.8-.3-1.5-.8-2-.5-.5-1.2-.8-2-.8-.8 0-1.5.3-2 .8-.5.5-.8 1.2-.8 2 0 .8.3 1.5.8 2 .5.5 1.2.8 2 .8.8 0 1.5-.3 2-.8.5-.5.8-1.2.8-2z\"\n fill=\"currentColor\"\n />\n <g clip-path=\"url(#clip0)\">\n <path\n d=\"M4.9 9.6c0-1.5-.4-2.7-1.1-3.7C3 4.9 2 4.4.6 4.4c-.3 0-.6 0-.9.1v10.2c.3.1.6.1.9.1 1.4 0 2.5-.5 3.2-1.5.7-1 1.1-2.2 1.1-3.7zM9.1 9.6c0 2.4-.7 4.4-2 5.9-1.4 1.5-3.2 2.3-5.5 2.3-.7 0-1.4-.1-2.1-.2V.2C.2.1.9 0 1.6 0c2.3 0 4.1.8 5.5 2.3 1.3 1.5 2 3.5 2 5.3z\"\n fill=\"currentColor\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0\">\n <path fill=\"#fff\" d=\"M0 0h9.1v17.8H0z\" />\n </clipPath>\n </defs>\n </svg>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -39,25 +39,36 @@
|
|
|
39
39
|
color: #14343b;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
/* Primary variant 02 - lighter */
|
|
42
|
+
/* Primary variant 02 - lighter for light backgrounds */
|
|
43
43
|
.hierarchy-primary.variant-02 {
|
|
44
44
|
font-family: 'NeuSans', 'Inter', system-ui, sans-serif;
|
|
45
45
|
font-size: 16px;
|
|
46
|
-
font-weight:
|
|
46
|
+
font-weight: 500;
|
|
47
47
|
line-height: 20px;
|
|
48
|
-
color: #
|
|
48
|
+
color: #14343b;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
/* Hover state for primary - underline */
|
|
52
|
-
.hierarchy-primary:hover .label-container {
|
|
51
|
+
/* Hover state for primary variant-01 (dark backgrounds) - underline */
|
|
52
|
+
.hierarchy-primary.variant-01:hover .label-container {
|
|
53
53
|
border-bottom: 1px solid currentColor;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
/* Active state for primary - thicker border */
|
|
57
|
-
.hierarchy-primary.active .label-container {
|
|
56
|
+
/* Active state for primary variant-01 - thicker border */
|
|
57
|
+
.hierarchy-primary.variant-01.active .label-container {
|
|
58
58
|
border-bottom: 2px solid #8a7049;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
/* Hover and active states for variant-02 (light backgrounds) - no border */
|
|
62
|
+
.hierarchy-primary.variant-02:hover {
|
|
63
|
+
background-color: rgba(20, 52, 59, 0.04);
|
|
64
|
+
border-radius: 8px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.hierarchy-primary.variant-02.active {
|
|
68
|
+
background-color: rgba(20, 52, 59, 0.08);
|
|
69
|
+
border-radius: 8px;
|
|
70
|
+
}
|
|
71
|
+
|
|
61
72
|
/* Secondary hierarchy - smaller sub-navigation */
|
|
62
73
|
.hierarchy-secondary {
|
|
63
74
|
padding: 4px 0;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
width: 100%;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.navbar-container {
|
|
7
|
+
padding: 32px 80px 0;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.navbar {
|
|
12
|
+
background: #E8F1EF;
|
|
13
|
+
border: 1px solid rgba(0, 0, 0, 0.12);
|
|
14
|
+
border-radius: 9999px;
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: space-between;
|
|
18
|
+
padding: 8px 8px 8px 40px;
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Left section */
|
|
24
|
+
.navbar-left {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
gap: 32px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.logo {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
flex-shrink: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.nav-links {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: 8px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Right section */
|
|
43
|
+
.navbar-right {
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
gap: 20px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.nav-actions {
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
gap: 12px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.nav-button {
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* Tablet adjustments */
|
|
61
|
+
@media (max-width: 1024px) {
|
|
62
|
+
.navbar-container {
|
|
63
|
+
padding: 24px 40px 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.navbar-left {
|
|
67
|
+
gap: 24px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.nav-links {
|
|
71
|
+
gap: 4px;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* Mobile adjustments */
|
|
76
|
+
@media (max-width: 767px) {
|
|
77
|
+
.navbar-container {
|
|
78
|
+
padding: 16px 16px 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.navbar {
|
|
82
|
+
padding: 8px 16px;
|
|
83
|
+
flex-direction: column;
|
|
84
|
+
border-radius: 16px;
|
|
85
|
+
gap: 16px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.navbar-left {
|
|
89
|
+
width: 100%;
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
gap: 16px;
|
|
92
|
+
align-items: flex-start;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.nav-links {
|
|
96
|
+
width: 100%;
|
|
97
|
+
flex-direction: column;
|
|
98
|
+
align-items: stretch;
|
|
99
|
+
gap: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.navbar-right {
|
|
103
|
+
width: 100%;
|
|
104
|
+
flex-direction: column;
|
|
105
|
+
gap: 12px;
|
|
106
|
+
align-items: stretch;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.nav-actions {
|
|
110
|
+
width: 100%;
|
|
111
|
+
flex-direction: column;
|
|
112
|
+
align-items: stretch;
|
|
113
|
+
gap: 0;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.nav-button {
|
|
117
|
+
width: 100%;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* A full-width navigation bar component that provides the main site navigation.
|
|
4
|
+
* Features a pill-shaped container with logo, navigation links, and action buttons.
|
|
5
|
+
*/
|
|
6
|
+
export class AfNavbar {
|
|
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: "links" }))), h("div", { key: '45265b4d765ad52a33f81efa80e9daa910948e1c', class: "navbar-right" }, h("div", { key: '48c913dd3d8fa17ee7eb2e9a41f9493929cd7af0', class: "nav-actions" }, h("slot", { key: 'cbfecec0a3b95935f707a4bbded5ce8aae0e9270', name: "actions" })), h("div", { key: 'e8cd7adf6f5a537b9a2552b467f6671f312ab0c1', class: "nav-button" }, h("slot", { key: '9dd578f3d67b32642cc6fbd49a5f3736e55c04f1', name: "button" })))))));
|
|
9
|
+
}
|
|
10
|
+
static get is() { return "af-navbar"; }
|
|
11
|
+
static get encapsulation() { return "shadow"; }
|
|
12
|
+
static get originalStyleUrls() {
|
|
13
|
+
return {
|
|
14
|
+
"$": ["af-navbar.css"]
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
static get styleUrls() {
|
|
18
|
+
return {
|
|
19
|
+
"$": ["af-navbar.css"]
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=af-navbar.js.map
|
|
@@ -0,0 +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,SAAS,GAAQ,CACxB;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=\"links\"></slot>\n </div>\n </div>\n\n {/* Right section: Actions + Button */}\n <div class=\"navbar-right\">\n <div class=\"nav-actions\">\n <slot name=\"actions\"></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"]}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.lockup {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: 40px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* Text alignment */
|
|
12
|
+
.text-left {
|
|
13
|
+
align-items: flex-start;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.text-center {
|
|
17
|
+
align-items: center;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.text-left .copy,
|
|
21
|
+
.text-left .heading,
|
|
22
|
+
.text-left .description {
|
|
23
|
+
text-align: left;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.text-center .copy,
|
|
27
|
+
.text-center .heading,
|
|
28
|
+
.text-center .description {
|
|
29
|
+
text-align: center;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* Copy section */
|
|
33
|
+
.copy {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
gap: 16px;
|
|
37
|
+
width: 100%;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Heading styles */
|
|
41
|
+
.heading {
|
|
42
|
+
font-family: var(--typography-primaryfont, 'NeuSans', sans-serif);
|
|
43
|
+
font-weight: 500;
|
|
44
|
+
color: var(--typography-heading-primary, #14343B);
|
|
45
|
+
line-height: 1;
|
|
46
|
+
white-space: pre-wrap;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* Desktop heading sizes */
|
|
50
|
+
.breakpoint-desktop.heading-1 .heading {
|
|
51
|
+
font-size: 56px;
|
|
52
|
+
letter-spacing: -1.12px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.breakpoint-desktop.heading-2 .heading {
|
|
56
|
+
font-size: 44px;
|
|
57
|
+
letter-spacing: -0.88px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.breakpoint-desktop.heading-3 .heading {
|
|
61
|
+
font-size: 34px;
|
|
62
|
+
letter-spacing: -0.68px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.breakpoint-desktop.heading-4 .heading {
|
|
66
|
+
font-size: 24px;
|
|
67
|
+
letter-spacing: -0.48px;
|
|
68
|
+
line-height: 1.2;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.breakpoint-desktop.heading-5 .heading {
|
|
72
|
+
font-size: 20px;
|
|
73
|
+
letter-spacing: -0.4px;
|
|
74
|
+
line-height: 1.2;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* Mobile heading sizes */
|
|
78
|
+
.breakpoint-mobile.heading-1 .heading {
|
|
79
|
+
font-size: 38px;
|
|
80
|
+
letter-spacing: -0.76px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.breakpoint-mobile.heading-2 .heading {
|
|
84
|
+
font-size: 32px;
|
|
85
|
+
letter-spacing: -0.64px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.breakpoint-mobile.heading-3 .heading {
|
|
89
|
+
font-size: 25px;
|
|
90
|
+
letter-spacing: -0.5px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.breakpoint-mobile.heading-4 .heading {
|
|
94
|
+
font-size: 20px;
|
|
95
|
+
letter-spacing: -0.4px;
|
|
96
|
+
line-height: 1.1;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.breakpoint-mobile.heading-5 .heading {
|
|
100
|
+
font-size: 18px;
|
|
101
|
+
letter-spacing: -0.36px;
|
|
102
|
+
line-height: 1.1;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* Description/body text */
|
|
106
|
+
.description {
|
|
107
|
+
font-family: 'Helvetica', var(--typography-primaryfont, 'NeuSans', sans-serif), sans-serif;
|
|
108
|
+
font-size: 18px;
|
|
109
|
+
font-weight: 400;
|
|
110
|
+
line-height: 26px;
|
|
111
|
+
color: var(--typography-body-default, #2B484F);
|
|
112
|
+
white-space: pre-wrap;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.description:empty {
|
|
116
|
+
display: none;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* Buttons section */
|
|
120
|
+
.buttons {
|
|
121
|
+
display: flex;
|
|
122
|
+
gap: 12px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.buttons:empty {
|
|
126
|
+
display: none;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* Button alignment - horizontal */
|
|
130
|
+
.button-horizontal .buttons {
|
|
131
|
+
flex-direction: row;
|
|
132
|
+
align-items: center;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.text-left.button-horizontal {
|
|
136
|
+
flex-direction: row;
|
|
137
|
+
align-items: center;
|
|
138
|
+
gap: 16px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.text-left.button-horizontal .copy {
|
|
142
|
+
flex: 1 0 0;
|
|
143
|
+
max-width: 950px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.text-left.button-horizontal .buttons {
|
|
147
|
+
flex-shrink: 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* Button alignment - vertical */
|
|
151
|
+
.button-vertical .buttons {
|
|
152
|
+
flex-direction: row;
|
|
153
|
+
align-items: flex-start;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.text-center.button-vertical .buttons {
|
|
157
|
+
align-items: center;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* Max width constraints for centered layouts */
|
|
161
|
+
.text-center .copy {
|
|
162
|
+
max-width: 840px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* Slot content styling */
|
|
166
|
+
::slotted(*) {
|
|
167
|
+
margin: 0;
|
|
168
|
+
}
|