@affinda/wc 0.0.1 → 0.0.2
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-aspect-ratio.entry.esm.js.map +1 -0
- package/dist/affinda/af-color-swatch.entry.esm.js.map +1 -0
- package/dist/affinda/af-container.entry.esm.js.map +1 -0
- package/dist/affinda/af-heading.af-nav-item.af-text.entry.esm.js.map +1 -0
- 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-96c74b41.entry.js +2 -0
- package/dist/affinda/p-96c74b41.entry.js.map +1 -0
- package/dist/affinda/p-DIoXjiux.js +3 -0
- package/dist/affinda/p-DIoXjiux.js.map +1 -0
- package/dist/affinda/p-a6a8ecde.entry.js +2 -0
- package/dist/affinda/p-a6a8ecde.entry.js.map +1 -0
- package/dist/affinda/p-ccdcebe9.entry.js +2 -0
- package/dist/affinda/p-ccdcebe9.entry.js.map +1 -0
- package/dist/affinda/p-f79068a7.entry.js +2 -0
- package/dist/affinda/p-f79068a7.entry.js.map +1 -0
- package/dist/cjs/af-aspect-ratio.cjs.entry.js +83 -0
- package/dist/cjs/af-aspect-ratio.entry.cjs.js.map +1 -0
- package/dist/cjs/af-color-swatch.cjs.entry.js +23 -0
- package/dist/cjs/af-color-swatch.entry.cjs.js.map +1 -0
- package/dist/cjs/af-container.cjs.entry.js +26 -0
- package/dist/cjs/af-container.entry.cjs.js.map +1 -0
- package/dist/cjs/af-heading.af-nav-item.af-text.entry.cjs.js.map +1 -0
- package/dist/cjs/af-heading_3.cjs.entry.js +102 -0
- package/dist/cjs/affinda.cjs.js +2 -2
- package/dist/cjs/{index-5BGpYleS.js → index-DHjsui2n.js} +60 -57
- package/dist/cjs/index-DHjsui2n.js.map +1 -0
- package/dist/cjs/index.cjs.js +11 -133
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/icons/account-01.svg +3 -0
- package/dist/collection/assets/icons/account-02.svg +3 -0
- package/dist/collection/assets/icons/accounts-payable.svg +3 -0
- package/dist/collection/assets/icons/arrow-down.svg +3 -0
- package/dist/collection/assets/icons/arrow-left.svg +3 -0
- package/dist/collection/assets/icons/arrow-right.svg +3 -0
- package/dist/collection/assets/icons/arrow-up.svg +3 -0
- package/dist/collection/assets/icons/bpo.svg +3 -0
- package/dist/collection/assets/icons/chats.svg +3 -0
- package/dist/collection/assets/icons/check-circle.svg +3 -0
- package/dist/collection/assets/icons/check.svg +3 -0
- package/dist/collection/assets/icons/chevron-down.svg +3 -0
- package/dist/collection/assets/icons/chevron-left.svg +3 -0
- package/dist/collection/assets/icons/chevron-right.svg +3 -0
- package/dist/collection/assets/icons/chevron-up.svg +3 -0
- package/dist/collection/assets/icons/close.svg +3 -0
- package/dist/collection/assets/icons/code.svg +3 -0
- package/dist/collection/assets/icons/data.svg +3 -0
- package/dist/collection/assets/icons/document-upload.svg +3 -0
- package/dist/collection/assets/icons/download.svg +3 -0
- package/dist/collection/assets/icons/edit.svg +3 -0
- package/dist/collection/assets/icons/email.svg +3 -0
- package/dist/collection/assets/icons/eye.svg +3 -0
- package/dist/collection/assets/icons/facebook.svg +3 -0
- package/dist/collection/assets/icons/gear.svg +3 -0
- package/dist/collection/assets/icons/github.svg +3 -0
- package/dist/collection/assets/icons/heart.svg +3 -0
- package/dist/collection/assets/icons/home.svg +3 -0
- package/dist/collection/assets/icons/info.svg +3 -0
- package/dist/collection/assets/icons/insurance.svg +3 -0
- package/dist/collection/assets/icons/lending-01.svg +3 -0
- package/dist/collection/assets/icons/lending-02.svg +3 -0
- package/dist/collection/assets/icons/link-out.svg +3 -0
- package/dist/collection/assets/icons/linkedin.svg +3 -0
- package/dist/collection/assets/icons/map-pin.svg +3 -0
- package/dist/collection/assets/icons/menu.svg +3 -0
- package/dist/collection/assets/icons/minus.svg +3 -0
- package/dist/collection/assets/icons/numbers.svg +16 -0
- package/dist/collection/assets/icons/pause.svg +3 -0
- package/dist/collection/assets/icons/play.svg +3 -0
- package/dist/collection/assets/icons/plus.svg +3 -0
- package/dist/collection/assets/icons/productivity.svg +3 -0
- package/dist/collection/assets/icons/quote.svg +3 -0
- package/dist/collection/assets/icons/recruitment.svg +3 -0
- package/dist/collection/assets/icons/refresh.svg +3 -0
- package/dist/collection/assets/icons/search.svg +3 -0
- package/dist/collection/assets/icons/security-01.svg +3 -0
- package/dist/collection/assets/icons/security-02.svg +3 -0
- package/dist/collection/assets/icons/solutions.svg +3 -0
- package/dist/collection/assets/icons/support.svg +3 -0
- package/dist/collection/assets/icons/system.svg +3 -0
- package/dist/collection/assets/icons/time.svg +3 -0
- package/dist/collection/assets/icons/verification-01.svg +3 -0
- package/dist/collection/assets/icons/wand.svg +3 -0
- package/dist/collection/assets/icons/x.svg +3 -0
- package/dist/collection/assets/icons/youtube.svg +3 -0
- package/dist/collection/assets/illustrations/accuracy-inkwell.svg +101 -0
- package/dist/collection/assets/illustrations/accuracy-mist-green.svg +101 -0
- package/dist/collection/assets/illustrations/accuracy-soft-clay.svg +101 -0
- package/dist/collection/assets/illustrations/accuracy-white-ivory.svg +101 -0
- package/dist/collection/assets/illustrations/automate-inkwell.svg +149 -0
- package/dist/collection/assets/illustrations/automate-mist-green.svg +149 -0
- package/dist/collection/assets/illustrations/automate-soft-clay.svg +149 -0
- package/dist/collection/assets/illustrations/automate-white-ivory.svg +149 -0
- package/dist/collection/assets/illustrations/document-raise-inkwell.svg +131 -0
- package/dist/collection/assets/illustrations/document-raise-mist-green.svg +131 -0
- package/dist/collection/assets/illustrations/document-raise-soft-clay.svg +131 -0
- package/dist/collection/assets/illustrations/document-raise-white-ivory.svg +131 -0
- package/dist/collection/assets/illustrations/document-type-inkwell.svg +150 -0
- package/dist/collection/assets/illustrations/document-type-mist-green.svg +150 -0
- package/dist/collection/assets/illustrations/document-type-soft-clay.svg +150 -0
- package/dist/collection/assets/illustrations/document-type-white-ivory.svg +150 -0
- package/dist/collection/assets/illustrations/grow-business-inkwell.svg +116 -0
- package/dist/collection/assets/illustrations/grow-business-mist-green.svg +129 -0
- package/dist/collection/assets/illustrations/grow-business-soft-clay.svg +129 -0
- package/dist/collection/assets/illustrations/grow-business-white-ivory.svg +129 -0
- package/dist/collection/assets/illustrations/industries-inkwell.svg +30 -0
- package/dist/collection/assets/illustrations/industries-mist-green.svg +30 -0
- package/dist/collection/assets/illustrations/industries-soft-clay.svg +30 -0
- package/dist/collection/assets/illustrations/industries-white-ivory.svg +41 -0
- package/dist/collection/assets/illustrations/intelligence-inkwell.svg +65 -0
- package/dist/collection/assets/illustrations/intelligence-mist-green.svg +65 -0
- package/dist/collection/assets/illustrations/intelligence-soft-clay.svg +65 -0
- package/dist/collection/assets/illustrations/intelligence-white-ivory.svg +65 -0
- package/dist/collection/assets/illustrations/page-turn-inkwell.svg +125 -0
- package/dist/collection/assets/illustrations/page-turn-mist-green.svg +125 -0
- package/dist/collection/assets/illustrations/page-turn-soft-clay.svg +125 -0
- package/dist/collection/assets/illustrations/page-turn-white-ivory.svg +125 -0
- package/dist/collection/assets/illustrations/shapes-inkwell.svg +65 -0
- package/dist/collection/assets/illustrations/shapes-mist-green.svg +65 -0
- package/dist/collection/assets/illustrations/shapes-soft-clay.svg +65 -0
- package/dist/collection/assets/illustrations/shapes-white-ivory.svg +65 -0
- package/dist/collection/assets/illustrations/team-leader-inkwell.svg +106 -0
- package/dist/collection/assets/illustrations/team-leader-mist-green.svg +106 -0
- package/dist/collection/assets/illustrations/team-leader-soft-clay.svg +106 -0
- package/dist/collection/assets/illustrations/team-leader-white-ivory.svg +106 -0
- package/dist/collection/assets/illustrations/thinking-inkwell.svg +89 -0
- package/dist/collection/assets/illustrations/thinking-mist-green.svg +89 -0
- package/dist/collection/assets/illustrations/thinking-soft-clay.svg +89 -0
- package/dist/collection/assets/illustrations/thinking-white-ivory.svg +89 -0
- package/dist/collection/collection-manifest.json +6 -5
- package/dist/collection/components/af-aspect-ratio/af-aspect-ratio.css +17 -0
- package/dist/collection/components/af-aspect-ratio/af-aspect-ratio.js +117 -0
- package/dist/collection/components/af-aspect-ratio/af-aspect-ratio.js.map +1 -0
- package/dist/collection/components/af-color-swatch/af-color-swatch.css +42 -0
- package/dist/collection/components/af-color-swatch/af-color-swatch.js +88 -0
- package/dist/collection/components/af-color-swatch/af-color-swatch.js.map +1 -0
- package/dist/collection/components/af-container/af-container.css +76 -0
- package/dist/collection/components/af-container/af-container.js +57 -0
- package/dist/collection/components/af-container/af-container.js.map +1 -0
- package/dist/collection/components/af-heading/af-heading.css +99 -0
- package/dist/collection/components/af-heading/af-heading.js +86 -0
- package/dist/collection/components/af-heading/af-heading.js.map +1 -0
- package/dist/collection/components/af-nav-item/af-nav-item.css +135 -0
- package/dist/collection/components/af-nav-item/af-nav-item.js +134 -0
- package/dist/collection/components/af-nav-item/af-nav-item.js.map +1 -0
- package/dist/collection/components/af-text/af-text.css +61 -0
- package/dist/collection/components/af-text/af-text.js +96 -0
- package/dist/collection/components/af-text/af-text.js.map +1 -0
- package/dist/collection/components.js +6 -5
- package/dist/collection/components.js.map +1 -1
- package/dist/components/{af-icon-button.d.ts → af-aspect-ratio.d.ts} +4 -4
- package/dist/components/af-aspect-ratio.js +9 -0
- package/dist/components/af-aspect-ratio.js.map +1 -0
- package/dist/components/af-color-swatch.d.ts +11 -0
- package/dist/components/af-color-swatch.js +9 -0
- package/dist/components/af-color-swatch.js.map +1 -0
- package/dist/components/{af-input.d.ts → af-container.d.ts} +4 -4
- package/dist/components/af-container.js +9 -0
- package/dist/components/af-container.js.map +1 -0
- package/dist/components/{af-button.d.ts → af-heading.d.ts} +4 -4
- package/dist/components/af-heading.js +9 -0
- package/dist/components/af-heading.js.map +1 -0
- package/dist/components/{af-badge.d.ts → af-nav-item.d.ts} +4 -4
- package/dist/components/af-nav-item.js +9 -0
- package/dist/components/af-nav-item.js.map +1 -0
- package/dist/components/{af-card.d.ts → af-text.d.ts} +4 -4
- package/dist/components/af-text.js +9 -0
- package/dist/components/af-text.js.map +1 -0
- package/dist/components/index.js +7 -6
- package/dist/components/index.js.map +1 -1
- package/dist/components/p-BZ5_l5Q-.js +50 -0
- package/dist/components/p-BZ5_l5Q-.js.map +1 -0
- package/dist/components/p-CCPh8sLt.js +102 -0
- package/dist/components/p-CCPh8sLt.js.map +1 -0
- package/dist/components/p-CbKdmUDd.js +59 -0
- package/dist/components/p-CbKdmUDd.js.map +1 -0
- package/dist/components/p-Ck_3oNdO.js +44 -0
- package/dist/components/p-Ck_3oNdO.js.map +1 -0
- package/dist/components/p-DbZX-luM.js +45 -0
- package/dist/components/p-DbZX-luM.js.map +1 -0
- package/dist/components/p-Ntwn3krC.js +66 -0
- package/dist/components/p-Ntwn3krC.js.map +1 -0
- package/dist/components/{p-DOtgsZRB.js → p-TaHgCKVa.js} +60 -61
- package/dist/components/p-TaHgCKVa.js.map +1 -0
- package/dist/esm/af-aspect-ratio.entry.js +81 -0
- package/dist/esm/af-aspect-ratio.entry.js.map +1 -0
- package/dist/esm/af-color-swatch.entry.js +21 -0
- package/dist/esm/af-color-swatch.entry.js.map +1 -0
- package/dist/esm/af-container.entry.js +24 -0
- package/dist/esm/af-container.entry.js.map +1 -0
- package/dist/esm/af-heading.af-nav-item.af-text.entry.js.map +1 -0
- package/dist/esm/af-heading_3.entry.js +98 -0
- package/dist/esm/affinda.js +3 -3
- package/dist/esm/{index-o0tfWqnY.js → index-DIoXjiux.js} +60 -57
- package/dist/esm/index-DIoXjiux.js.map +1 -0
- package/dist/esm/index.js +5 -132
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/af-aspect-ratio/af-aspect-ratio.d.ts +18 -0
- package/dist/types/components/af-color-swatch/af-color-swatch.d.ts +9 -0
- package/dist/types/components/af-container/af-container.d.ts +15 -0
- package/dist/types/components/af-heading/af-heading.d.ts +8 -0
- package/dist/types/components/af-nav-item/af-nav-item.d.ts +27 -0
- package/dist/types/components/af-text/af-text.d.ts +9 -0
- package/dist/types/components.d.ts +183 -208
- package/package.json +1 -1
- package/dist/affinda/af-badge.af-button.af-card.af-icon-button.af-input.entry.esm.js.map +0 -1
- package/dist/affinda/p-bca10492.entry.js +0 -2
- package/dist/affinda/p-bca10492.entry.js.map +0 -1
- package/dist/affinda/p-o0tfWqnY.js +0 -3
- package/dist/affinda/p-o0tfWqnY.js.map +0 -1
- package/dist/cjs/af-badge.af-button.af-card.af-icon-button.af-input.entry.cjs.js.map +0 -1
- package/dist/cjs/af-badge_5.cjs.entry.js +0 -13
- package/dist/cjs/index-5BGpYleS.js.map +0 -1
- package/dist/collection/components/af-badge/af-badge.css +0 -29
- package/dist/collection/components/af-badge/af-badge.js +0 -47
- package/dist/collection/components/af-badge/af-badge.js.map +0 -1
- package/dist/collection/components/af-button/af-button.css +0 -74
- package/dist/collection/components/af-button/af-button.js +0 -149
- package/dist/collection/components/af-button/af-button.js.map +0 -1
- package/dist/collection/components/af-card/af-card.css +0 -69
- package/dist/collection/components/af-card/af-card.js +0 -70
- package/dist/collection/components/af-card/af-card.js.map +0 -1
- package/dist/collection/components/af-icon-button/af-icon-button.css +0 -70
- package/dist/collection/components/af-icon-button/af-icon-button.js +0 -145
- package/dist/collection/components/af-icon-button/af-icon-button.js.map +0 -1
- package/dist/collection/components/af-input/af-input.css +0 -57
- package/dist/collection/components/af-input/af-input.js +0 -193
- package/dist/collection/components/af-input/af-input.js.map +0 -1
- package/dist/components/af-badge.js +0 -9
- package/dist/components/af-badge.js.map +0 -1
- package/dist/components/af-button.js +0 -9
- package/dist/components/af-button.js.map +0 -1
- package/dist/components/af-card.js +0 -9
- package/dist/components/af-card.js.map +0 -1
- package/dist/components/af-icon-button.js +0 -9
- package/dist/components/af-icon-button.js.map +0 -1
- package/dist/components/af-input.js +0 -9
- package/dist/components/af-input.js.map +0 -1
- package/dist/components/p-B7I93sz2.js +0 -39
- package/dist/components/p-B7I93sz2.js.map +0 -1
- package/dist/components/p-CZd1ieht.js +0 -62
- package/dist/components/p-CZd1ieht.js.map +0 -1
- package/dist/components/p-D6PwARU0.js +0 -59
- package/dist/components/p-D6PwARU0.js.map +0 -1
- package/dist/components/p-DOtgsZRB.js.map +0 -1
- package/dist/components/p-DZIXhvI0.js +0 -44
- package/dist/components/p-DZIXhvI0.js.map +0 -1
- package/dist/components/p-zIKPa48S.js +0 -62
- package/dist/components/p-zIKPa48S.js.map +0 -1
- package/dist/esm/af-badge.af-button.af-card.af-icon-button.af-input.entry.js.map +0 -1
- package/dist/esm/af-badge_5.entry.js +0 -3
- package/dist/esm/index-o0tfWqnY.js.map +0 -1
- package/dist/types/components/af-badge/af-badge.d.ts +0 -5
- package/dist/types/components/af-button/af-button.d.ts +0 -15
- package/dist/types/components/af-card/af-card.d.ts +0 -7
- package/dist/types/components/af-icon-button/af-icon-button.d.ts +0 -15
- package/dist/types/components/af-input/af-input.d.ts +0 -24
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class AfHeading {
|
|
3
|
+
constructor() {
|
|
4
|
+
/** Heading level */
|
|
5
|
+
this.level = '1';
|
|
6
|
+
/** Visual alignment */
|
|
7
|
+
this.align = 'left';
|
|
8
|
+
}
|
|
9
|
+
getHeadingTag() {
|
|
10
|
+
// Map display levels to semantic HTML tags
|
|
11
|
+
const tagMap = {
|
|
12
|
+
'xl': 'h1',
|
|
13
|
+
'1': 'h1',
|
|
14
|
+
'2': 'h2',
|
|
15
|
+
'3': 'h3',
|
|
16
|
+
'4': 'h4',
|
|
17
|
+
'5': 'h5'
|
|
18
|
+
};
|
|
19
|
+
return tagMap[this.level] || 'h1';
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
const Tag = this.getHeadingTag();
|
|
23
|
+
return (h(Tag, { key: '1d3f37c8d067c3c9d0ec7f10422478ab41c990b2', class: {
|
|
24
|
+
'heading': true,
|
|
25
|
+
[`level-${this.level}`]: true,
|
|
26
|
+
[`align-${this.align}`]: true
|
|
27
|
+
}, part: "base" }, h("slot", { key: 'dcba9d00393f818cfceeb5eba5cc2bd874927dfd' })));
|
|
28
|
+
}
|
|
29
|
+
static get is() { return "af-heading"; }
|
|
30
|
+
static get encapsulation() { return "shadow"; }
|
|
31
|
+
static get originalStyleUrls() {
|
|
32
|
+
return {
|
|
33
|
+
"$": ["af-heading.css"]
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
static get styleUrls() {
|
|
37
|
+
return {
|
|
38
|
+
"$": ["af-heading.css"]
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
static get properties() {
|
|
42
|
+
return {
|
|
43
|
+
"level": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"mutable": false,
|
|
46
|
+
"complexType": {
|
|
47
|
+
"original": "'xl' | '1' | '2' | '3' | '4' | '5'",
|
|
48
|
+
"resolved": "\"1\" | \"2\" | \"3\" | \"4\" | \"5\" | \"xl\"",
|
|
49
|
+
"references": {}
|
|
50
|
+
},
|
|
51
|
+
"required": false,
|
|
52
|
+
"optional": false,
|
|
53
|
+
"docs": {
|
|
54
|
+
"tags": [],
|
|
55
|
+
"text": "Heading level"
|
|
56
|
+
},
|
|
57
|
+
"getter": false,
|
|
58
|
+
"setter": false,
|
|
59
|
+
"reflect": false,
|
|
60
|
+
"attribute": "level",
|
|
61
|
+
"defaultValue": "'1'"
|
|
62
|
+
},
|
|
63
|
+
"align": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"mutable": false,
|
|
66
|
+
"complexType": {
|
|
67
|
+
"original": "'left' | 'center' | 'right'",
|
|
68
|
+
"resolved": "\"center\" | \"left\" | \"right\"",
|
|
69
|
+
"references": {}
|
|
70
|
+
},
|
|
71
|
+
"required": false,
|
|
72
|
+
"optional": false,
|
|
73
|
+
"docs": {
|
|
74
|
+
"tags": [],
|
|
75
|
+
"text": "Visual alignment"
|
|
76
|
+
},
|
|
77
|
+
"getter": false,
|
|
78
|
+
"setter": false,
|
|
79
|
+
"reflect": false,
|
|
80
|
+
"attribute": "align",
|
|
81
|
+
"defaultValue": "'left'"
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=af-heading.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"af-heading.js","sourceRoot":"","sources":["../../../src/components/af-heading/af-heading.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,SAAS;IALtB;QAME,oBAAoB;QACZ,UAAK,GAAuC,GAAG,CAAC;QAExD,uBAAuB;QACf,UAAK,GAAgC,MAAM,CAAC;KA+BrD;IA7BS,aAAa;QACnB,2CAA2C;QAC3C,MAAM,MAAM,GAA2B;YACrC,IAAI,EAAE,IAAI;YACV,GAAG,EAAE,IAAI;YACT,GAAG,EAAE,IAAI;YACT,GAAG,EAAE,IAAI;YACT,GAAG,EAAE,IAAI;YACT,GAAG,EAAE,IAAI;SACV,CAAC;QACF,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC;IACpC,CAAC;IAED,MAAM;QACJ,MAAM,GAAG,GAAG,IAAI,CAAC,aAAa,EAAS,CAAC;QAExC,OAAO,CACL,EAAC,GAAG,qDACF,KAAK,EAAE;gBACL,SAAS,EAAE,IAAI;gBACf,CAAC,SAAS,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,IAAI;gBAC7B,CAAC,SAAS,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,IAAI;aAC9B,EACD,IAAI,EAAC,MAAM;YAEX,8DAAQ,CACJ,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'af-heading',\n styleUrl: 'af-heading.css',\n shadow: true\n})\nexport class AfHeading {\n /** Heading level */\n @Prop() level: 'xl' | '1' | '2' | '3' | '4' | '5' = '1';\n\n /** Visual alignment */\n @Prop() align: 'left' | 'center' | 'right' = 'left';\n\n private getHeadingTag() {\n // Map display levels to semantic HTML tags\n const tagMap: Record<string, string> = {\n 'xl': 'h1',\n '1': 'h1',\n '2': 'h2',\n '3': 'h3',\n '4': 'h4',\n '5': 'h5'\n };\n return tagMap[this.level] || 'h1';\n }\n\n render() {\n const Tag = this.getHeadingTag() as any;\n\n return (\n <Tag\n class={{\n 'heading': true,\n [`level-${this.level}`]: true,\n [`align-${this.align}`]: true\n }}\n part=\"base\"\n >\n <slot />\n </Tag>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.nav-link {
|
|
6
|
+
text-decoration: none;
|
|
7
|
+
color: inherit;
|
|
8
|
+
display: block;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.nav-item {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
gap: 8px;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Primary hierarchy - bold main navigation */
|
|
20
|
+
.hierarchy-primary {
|
|
21
|
+
padding: 12px;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.hierarchy-primary .label-container {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
height: 24px;
|
|
30
|
+
gap: 10px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Primary variant 01 - darker */
|
|
34
|
+
.hierarchy-primary.variant-01 {
|
|
35
|
+
font-family: 'NeuSans', 'Inter', system-ui, sans-serif;
|
|
36
|
+
font-size: 16px;
|
|
37
|
+
font-weight: 500;
|
|
38
|
+
line-height: 20px;
|
|
39
|
+
color: #14343b;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Primary variant 02 - lighter */
|
|
43
|
+
.hierarchy-primary.variant-02 {
|
|
44
|
+
font-family: 'NeuSans', 'Inter', system-ui, sans-serif;
|
|
45
|
+
font-size: 16px;
|
|
46
|
+
font-weight: 400;
|
|
47
|
+
line-height: 20px;
|
|
48
|
+
color: #2b484f;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* Hover state for primary - underline */
|
|
52
|
+
.hierarchy-primary:hover .label-container {
|
|
53
|
+
border-bottom: 1px solid currentColor;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Active state for primary - thicker border */
|
|
57
|
+
.hierarchy-primary.active .label-container {
|
|
58
|
+
border-bottom: 2px solid #8a7049;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Secondary hierarchy - smaller sub-navigation */
|
|
62
|
+
.hierarchy-secondary {
|
|
63
|
+
padding: 4px 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.hierarchy-secondary .label-container {
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
flex: 1;
|
|
70
|
+
min-height: 24px;
|
|
71
|
+
gap: 8px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Secondary variant 01 - medium weight */
|
|
75
|
+
.hierarchy-secondary.variant-01 {
|
|
76
|
+
font-family: 'NeuSans', 'Inter', system-ui, sans-serif;
|
|
77
|
+
font-size: 14px;
|
|
78
|
+
font-weight: 500;
|
|
79
|
+
line-height: 20px;
|
|
80
|
+
color: #14343b;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* Secondary variant 02 - regular weight */
|
|
84
|
+
.hierarchy-secondary.variant-02 {
|
|
85
|
+
font-family: 'NeuSans', 'Inter', system-ui, sans-serif;
|
|
86
|
+
font-size: 14px;
|
|
87
|
+
font-weight: 400;
|
|
88
|
+
line-height: 20px;
|
|
89
|
+
color: #2b484f;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Hover state for secondary - underline text */
|
|
93
|
+
.hierarchy-secondary:hover ::slotted(*) {
|
|
94
|
+
text-decoration: underline;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Mobile styles */
|
|
98
|
+
@media (max-width: 767px) {
|
|
99
|
+
.hierarchy-primary {
|
|
100
|
+
padding: 20px 12px;
|
|
101
|
+
border-bottom: 1px solid #e8eeed;
|
|
102
|
+
width: 100%;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.hierarchy-primary .label-container {
|
|
106
|
+
flex: 1;
|
|
107
|
+
justify-content: flex-start;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.hierarchy-primary.variant-01 {
|
|
111
|
+
font-size: 20px;
|
|
112
|
+
line-height: 1.1;
|
|
113
|
+
letter-spacing: -0.4px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.hierarchy-primary.variant-02 {
|
|
117
|
+
font-size: 20px;
|
|
118
|
+
line-height: 1.1;
|
|
119
|
+
letter-spacing: -0.4px;
|
|
120
|
+
color: #60767b;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* Icon sizing */
|
|
125
|
+
::slotted([slot="icon-left"]),
|
|
126
|
+
::slotted([slot="icon-right"]) {
|
|
127
|
+
width: 24px;
|
|
128
|
+
height: 24px;
|
|
129
|
+
flex-shrink: 0;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.hierarchy-secondary ::slotted([slot="icon-right"]) {
|
|
133
|
+
width: 20px;
|
|
134
|
+
height: 20px;
|
|
135
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* A generic navigation item component that can be used in navigation bars, menus, and sidebars.
|
|
4
|
+
* Supports multiple hierarchy levels, variants, and states (active, hover).
|
|
5
|
+
*/
|
|
6
|
+
export class AfNavItem {
|
|
7
|
+
constructor() {
|
|
8
|
+
/**
|
|
9
|
+
* Visual hierarchy level of the navigation item
|
|
10
|
+
* - 'primary': Bold, main navigation (larger text, prominent styling)
|
|
11
|
+
* - 'secondary': Lighter, sub-navigation (smaller text, subtle styling)
|
|
12
|
+
*/
|
|
13
|
+
this.hierarchy = 'primary';
|
|
14
|
+
/**
|
|
15
|
+
* Visual variant within the hierarchy level
|
|
16
|
+
* - '01': Darker/more prominent styling
|
|
17
|
+
* - '02': Lighter/more subtle styling
|
|
18
|
+
*/
|
|
19
|
+
this.variant = '01';
|
|
20
|
+
/**
|
|
21
|
+
* Whether this nav item is currently active/selected
|
|
22
|
+
*/
|
|
23
|
+
this.active = false;
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
const classes = {
|
|
27
|
+
'nav-item': true,
|
|
28
|
+
[`hierarchy-${this.hierarchy}`]: true,
|
|
29
|
+
[`variant-${this.variant}`]: true,
|
|
30
|
+
'active': this.active
|
|
31
|
+
};
|
|
32
|
+
const content = (h("div", { class: classes }, h("slot", { name: "icon-left" }), h("div", { class: "label-container" }, h("slot", null)), h("slot", { name: "icon-right" })));
|
|
33
|
+
if (this.href) {
|
|
34
|
+
return (h(Host, null, h("a", { href: this.href, class: "nav-link" }, content)));
|
|
35
|
+
}
|
|
36
|
+
return h(Host, null, content);
|
|
37
|
+
}
|
|
38
|
+
static get is() { return "af-nav-item"; }
|
|
39
|
+
static get encapsulation() { return "shadow"; }
|
|
40
|
+
static get originalStyleUrls() {
|
|
41
|
+
return {
|
|
42
|
+
"$": ["af-nav-item.css"]
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
static get styleUrls() {
|
|
46
|
+
return {
|
|
47
|
+
"$": ["af-nav-item.css"]
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
static get properties() {
|
|
51
|
+
return {
|
|
52
|
+
"hierarchy": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"mutable": false,
|
|
55
|
+
"complexType": {
|
|
56
|
+
"original": "'primary' | 'secondary'",
|
|
57
|
+
"resolved": "\"primary\" | \"secondary\"",
|
|
58
|
+
"references": {}
|
|
59
|
+
},
|
|
60
|
+
"required": false,
|
|
61
|
+
"optional": false,
|
|
62
|
+
"docs": {
|
|
63
|
+
"tags": [],
|
|
64
|
+
"text": "Visual hierarchy level of the navigation item\n- 'primary': Bold, main navigation (larger text, prominent styling)\n- 'secondary': Lighter, sub-navigation (smaller text, subtle styling)"
|
|
65
|
+
},
|
|
66
|
+
"getter": false,
|
|
67
|
+
"setter": false,
|
|
68
|
+
"reflect": false,
|
|
69
|
+
"attribute": "hierarchy",
|
|
70
|
+
"defaultValue": "'primary'"
|
|
71
|
+
},
|
|
72
|
+
"variant": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"mutable": false,
|
|
75
|
+
"complexType": {
|
|
76
|
+
"original": "'01' | '02'",
|
|
77
|
+
"resolved": "\"01\" | \"02\"",
|
|
78
|
+
"references": {}
|
|
79
|
+
},
|
|
80
|
+
"required": false,
|
|
81
|
+
"optional": false,
|
|
82
|
+
"docs": {
|
|
83
|
+
"tags": [],
|
|
84
|
+
"text": "Visual variant within the hierarchy level\n- '01': Darker/more prominent styling\n- '02': Lighter/more subtle styling"
|
|
85
|
+
},
|
|
86
|
+
"getter": false,
|
|
87
|
+
"setter": false,
|
|
88
|
+
"reflect": false,
|
|
89
|
+
"attribute": "variant",
|
|
90
|
+
"defaultValue": "'01'"
|
|
91
|
+
},
|
|
92
|
+
"href": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"mutable": false,
|
|
95
|
+
"complexType": {
|
|
96
|
+
"original": "string",
|
|
97
|
+
"resolved": "string | undefined",
|
|
98
|
+
"references": {}
|
|
99
|
+
},
|
|
100
|
+
"required": false,
|
|
101
|
+
"optional": true,
|
|
102
|
+
"docs": {
|
|
103
|
+
"tags": [],
|
|
104
|
+
"text": "URL to navigate to when clicked"
|
|
105
|
+
},
|
|
106
|
+
"getter": false,
|
|
107
|
+
"setter": false,
|
|
108
|
+
"reflect": false,
|
|
109
|
+
"attribute": "href"
|
|
110
|
+
},
|
|
111
|
+
"active": {
|
|
112
|
+
"type": "boolean",
|
|
113
|
+
"mutable": false,
|
|
114
|
+
"complexType": {
|
|
115
|
+
"original": "boolean",
|
|
116
|
+
"resolved": "boolean",
|
|
117
|
+
"references": {}
|
|
118
|
+
},
|
|
119
|
+
"required": false,
|
|
120
|
+
"optional": false,
|
|
121
|
+
"docs": {
|
|
122
|
+
"tags": [],
|
|
123
|
+
"text": "Whether this nav item is currently active/selected"
|
|
124
|
+
},
|
|
125
|
+
"getter": false,
|
|
126
|
+
"setter": false,
|
|
127
|
+
"reflect": false,
|
|
128
|
+
"attribute": "active",
|
|
129
|
+
"defaultValue": "false"
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
//# sourceMappingURL=af-nav-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"af-nav-item.js","sourceRoot":"","sources":["../../../src/components/af-nav-item/af-nav-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEzD;;;GAGG;AAMH,MAAM,OAAO,SAAS;IALtB;QAME;;;;WAIG;QACK,cAAS,GAA4B,SAAS,CAAC;QAEvD;;;;WAIG;QACK,YAAO,GAAgB,IAAI,CAAC;QAOpC;;WAEG;QACK,WAAM,GAAY,KAAK,CAAC;KAgCjC;IA9BC,MAAM;QACJ,MAAM,OAAO,GAAG;YACd,UAAU,EAAE,IAAI;YAChB,CAAC,aAAa,IAAI,CAAC,SAAS,EAAE,CAAC,EAAE,IAAI;YACrC,CAAC,WAAW,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,IAAI;YACjC,QAAQ,EAAE,IAAI,CAAC,MAAM;SACtB,CAAC;QAEF,MAAM,OAAO,GAAG,CACd,WAAK,KAAK,EAAE,OAAO;YACjB,YAAM,IAAI,EAAC,WAAW,GAAQ;YAC9B,WAAK,KAAK,EAAC,iBAAiB;gBAC1B,eAAa,CACT;YACN,YAAM,IAAI,EAAC,YAAY,GAAQ,CAC3B,CACP,CAAC;QAEF,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACd,OAAO,CACL,EAAC,IAAI;gBACH,SAAG,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAC,UAAU,IACjC,OAAO,CACN,CACC,CACR,CAAC;QACJ,CAAC;QAED,OAAO,EAAC,IAAI,QAAE,OAAO,CAAQ,CAAC;IAChC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop, Host } from '@stencil/core';\n\n/**\n * A generic navigation item component that can be used in navigation bars, menus, and sidebars.\n * Supports multiple hierarchy levels, variants, and states (active, hover).\n */\n@Component({\n tag: 'af-nav-item',\n styleUrl: 'af-nav-item.css',\n shadow: true\n})\nexport class AfNavItem {\n /**\n * Visual hierarchy level of the navigation item\n * - 'primary': Bold, main navigation (larger text, prominent styling)\n * - 'secondary': Lighter, sub-navigation (smaller text, subtle styling)\n */\n @Prop() hierarchy: 'primary' | 'secondary' = 'primary';\n\n /**\n * Visual variant within the hierarchy level\n * - '01': Darker/more prominent styling\n * - '02': Lighter/more subtle styling\n */\n @Prop() variant: '01' | '02' = '01';\n\n /**\n * URL to navigate to when clicked\n */\n @Prop() href?: string;\n\n /**\n * Whether this nav item is currently active/selected\n */\n @Prop() active: boolean = false;\n\n render() {\n const classes = {\n 'nav-item': true,\n [`hierarchy-${this.hierarchy}`]: true,\n [`variant-${this.variant}`]: true,\n 'active': this.active\n };\n\n const content = (\n <div class={classes}>\n <slot name=\"icon-left\"></slot>\n <div class=\"label-container\">\n <slot></slot>\n </div>\n <slot name=\"icon-right\"></slot>\n </div>\n );\n\n if (this.href) {\n return (\n <Host>\n <a href={this.href} class=\"nav-link\">\n {content}\n </a>\n </Host>\n );\n }\n\n return <Host>{content}</Host>;\n }\n}\n"]}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.text {
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
font-family: 'Helvetica', 'Inter', 'Segoe UI', system-ui, sans-serif;
|
|
9
|
+
font-weight: 400;
|
|
10
|
+
color: #14343b;
|
|
11
|
+
letter-spacing: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* Alignment */
|
|
15
|
+
.align-left {
|
|
16
|
+
text-align: left;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.align-center {
|
|
20
|
+
text-align: center;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.align-right {
|
|
24
|
+
text-align: right;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Body variants */
|
|
28
|
+
.variant-xlarge {
|
|
29
|
+
font-size: 22px;
|
|
30
|
+
line-height: 28px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.variant-large {
|
|
34
|
+
font-size: 18px;
|
|
35
|
+
line-height: 26px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.variant-medium {
|
|
39
|
+
font-size: 16px;
|
|
40
|
+
line-height: 24px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.variant-small {
|
|
44
|
+
font-size: 14px;
|
|
45
|
+
line-height: 20px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Label variants - use NeuSans Book */
|
|
49
|
+
.variant-label-button {
|
|
50
|
+
font-family: 'NeuSans', 'Inter', 'Segoe UI', system-ui, sans-serif;
|
|
51
|
+
font-weight: 500;
|
|
52
|
+
font-size: 17px;
|
|
53
|
+
line-height: 20px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.variant-label-tag {
|
|
57
|
+
font-family: 'NeuSans', 'Inter', 'Segoe UI', system-ui, sans-serif;
|
|
58
|
+
font-weight: 500;
|
|
59
|
+
font-size: 14px;
|
|
60
|
+
line-height: 1;
|
|
61
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class AfText {
|
|
3
|
+
constructor() {
|
|
4
|
+
/** Text variant */
|
|
5
|
+
this.variant = 'medium';
|
|
6
|
+
/** Visual alignment */
|
|
7
|
+
this.align = 'left';
|
|
8
|
+
/** Semantic element to render */
|
|
9
|
+
this.as = 'p';
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
const Tag = this.as;
|
|
13
|
+
return (h(Tag, { key: '778a86a185f2416dec867ca2457acb2fe1ad4bcb', class: {
|
|
14
|
+
'text': true,
|
|
15
|
+
[`variant-${this.variant}`]: true,
|
|
16
|
+
[`align-${this.align}`]: true
|
|
17
|
+
}, part: "base" }, h("slot", { key: '2b3ee364c989ca8d233583946e24665df0192fb9' })));
|
|
18
|
+
}
|
|
19
|
+
static get is() { return "af-text"; }
|
|
20
|
+
static get encapsulation() { return "shadow"; }
|
|
21
|
+
static get originalStyleUrls() {
|
|
22
|
+
return {
|
|
23
|
+
"$": ["af-text.css"]
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
static get styleUrls() {
|
|
27
|
+
return {
|
|
28
|
+
"$": ["af-text.css"]
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
static get properties() {
|
|
32
|
+
return {
|
|
33
|
+
"variant": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"mutable": false,
|
|
36
|
+
"complexType": {
|
|
37
|
+
"original": "'xlarge' | 'large' | 'medium' | 'small' | 'label-button' | 'label-tag'",
|
|
38
|
+
"resolved": "\"label-button\" | \"label-tag\" | \"large\" | \"medium\" | \"small\" | \"xlarge\"",
|
|
39
|
+
"references": {}
|
|
40
|
+
},
|
|
41
|
+
"required": false,
|
|
42
|
+
"optional": false,
|
|
43
|
+
"docs": {
|
|
44
|
+
"tags": [],
|
|
45
|
+
"text": "Text variant"
|
|
46
|
+
},
|
|
47
|
+
"getter": false,
|
|
48
|
+
"setter": false,
|
|
49
|
+
"reflect": false,
|
|
50
|
+
"attribute": "variant",
|
|
51
|
+
"defaultValue": "'medium'"
|
|
52
|
+
},
|
|
53
|
+
"align": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"mutable": false,
|
|
56
|
+
"complexType": {
|
|
57
|
+
"original": "'left' | 'center' | 'right'",
|
|
58
|
+
"resolved": "\"center\" | \"left\" | \"right\"",
|
|
59
|
+
"references": {}
|
|
60
|
+
},
|
|
61
|
+
"required": false,
|
|
62
|
+
"optional": false,
|
|
63
|
+
"docs": {
|
|
64
|
+
"tags": [],
|
|
65
|
+
"text": "Visual alignment"
|
|
66
|
+
},
|
|
67
|
+
"getter": false,
|
|
68
|
+
"setter": false,
|
|
69
|
+
"reflect": false,
|
|
70
|
+
"attribute": "align",
|
|
71
|
+
"defaultValue": "'left'"
|
|
72
|
+
},
|
|
73
|
+
"as": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"mutable": false,
|
|
76
|
+
"complexType": {
|
|
77
|
+
"original": "'p' | 'span' | 'div' | 'label'",
|
|
78
|
+
"resolved": "\"div\" | \"label\" | \"p\" | \"span\"",
|
|
79
|
+
"references": {}
|
|
80
|
+
},
|
|
81
|
+
"required": false,
|
|
82
|
+
"optional": false,
|
|
83
|
+
"docs": {
|
|
84
|
+
"tags": [],
|
|
85
|
+
"text": "Semantic element to render"
|
|
86
|
+
},
|
|
87
|
+
"getter": false,
|
|
88
|
+
"setter": false,
|
|
89
|
+
"reflect": false,
|
|
90
|
+
"attribute": "as",
|
|
91
|
+
"defaultValue": "'p'"
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=af-text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"af-text.js","sourceRoot":"","sources":["../../../src/components/af-text/af-text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,MAAM;IALnB;QAME,mBAAmB;QACX,YAAO,GAA2E,QAAQ,CAAC;QAEnG,uBAAuB;QACf,UAAK,GAAgC,MAAM,CAAC;QAEpD,iCAAiC;QACzB,OAAE,GAAmC,GAAG,CAAC;KAkBlD;IAhBC,MAAM;QACJ,MAAM,GAAG,GAAG,IAAI,CAAC,EAAS,CAAC;QAE3B,OAAO,CACL,EAAC,GAAG,qDACF,KAAK,EAAE;gBACL,MAAM,EAAE,IAAI;gBACZ,CAAC,WAAW,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,IAAI;gBACjC,CAAC,SAAS,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,IAAI;aAC9B,EACD,IAAI,EAAC,MAAM;YAEX,8DAAQ,CACJ,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'af-text',\n styleUrl: 'af-text.css',\n shadow: true\n})\nexport class AfText {\n /** Text variant */\n @Prop() variant: 'xlarge' | 'large' | 'medium' | 'small' | 'label-button' | 'label-tag' = 'medium';\n\n /** Visual alignment */\n @Prop() align: 'left' | 'center' | 'right' = 'left';\n\n /** Semantic element to render */\n @Prop() as: 'p' | 'span' | 'div' | 'label' = 'p';\n\n render() {\n const Tag = this.as as any;\n\n return (\n <Tag\n class={{\n 'text': true,\n [`variant-${this.variant}`]: true,\n [`align-${this.align}`]: true\n }}\n part=\"base\"\n >\n <slot />\n </Tag>\n );\n }\n}\n"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
1
|
+
export { AfHeading } from './components/af-heading/af-heading';
|
|
2
|
+
export { AfText } from './components/af-text/af-text';
|
|
3
|
+
export { AfColorSwatch } from './components/af-color-swatch/af-color-swatch';
|
|
4
|
+
export { AfContainer } from './components/af-container/af-container';
|
|
5
|
+
export { AfAspectRatio } from './components/af-aspect-ratio/af-aspect-ratio';
|
|
6
|
+
export { AfNavItem } from './components/af-nav-item/af-nav-item';
|
|
6
7
|
//# sourceMappingURL=components.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC","sourcesContent":["export { AfHeading } from './components/af-heading/af-heading';\nexport { AfText } from './components/af-text/af-text';\nexport { AfColorSwatch } from './components/af-color-swatch/af-color-swatch';\nexport { AfContainer } from './components/af-container/af-container';\nexport { AfAspectRatio } from './components/af-aspect-ratio/af-aspect-ratio';\nexport { AfNavItem } from './components/af-nav-item/af-nav-item';\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Components, JSX } from "../types/components";
|
|
2
2
|
|
|
3
|
-
interface
|
|
4
|
-
export const
|
|
5
|
-
prototype:
|
|
6
|
-
new ():
|
|
3
|
+
interface AfAspectRatio extends Components.AfAspectRatio, HTMLElement {}
|
|
4
|
+
export const AfAspectRatio: {
|
|
5
|
+
prototype: AfAspectRatio;
|
|
6
|
+
new (): AfAspectRatio;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Used to define this component and all nested components recursively.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { A as AfAspectRatio$1, d as defineCustomElement$1 } from './p-CCPh8sLt.js';
|
|
2
|
+
|
|
3
|
+
const AfAspectRatio = AfAspectRatio$1;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { AfAspectRatio, defineCustomElement };
|
|
7
|
+
//# sourceMappingURL=af-aspect-ratio.js.map
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=af-aspect-ratio.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"af-aspect-ratio.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface AfColorSwatch extends Components.AfColorSwatch, HTMLElement {}
|
|
4
|
+
export const AfColorSwatch: {
|
|
5
|
+
prototype: AfColorSwatch;
|
|
6
|
+
new (): AfColorSwatch;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { A as AfColorSwatch$1, d as defineCustomElement$1 } from './p-Ck_3oNdO.js';
|
|
2
|
+
|
|
3
|
+
const AfColorSwatch = AfColorSwatch$1;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { AfColorSwatch, defineCustomElement };
|
|
7
|
+
//# sourceMappingURL=af-color-swatch.js.map
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=af-color-swatch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"af-color-swatch.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Components, JSX } from "../types/components";
|
|
2
2
|
|
|
3
|
-
interface
|
|
4
|
-
export const
|
|
5
|
-
prototype:
|
|
6
|
-
new ():
|
|
3
|
+
interface AfContainer extends Components.AfContainer, HTMLElement {}
|
|
4
|
+
export const AfContainer: {
|
|
5
|
+
prototype: AfContainer;
|
|
6
|
+
new (): AfContainer;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Used to define this component and all nested components recursively.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { A as AfContainer$1, d as defineCustomElement$1 } from './p-DbZX-luM.js';
|
|
2
|
+
|
|
3
|
+
const AfContainer = AfContainer$1;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { AfContainer, defineCustomElement };
|
|
7
|
+
//# sourceMappingURL=af-container.js.map
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=af-container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"af-container.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Components, JSX } from "../types/components";
|
|
2
2
|
|
|
3
|
-
interface
|
|
4
|
-
export const
|
|
5
|
-
prototype:
|
|
6
|
-
new ():
|
|
3
|
+
interface AfHeading extends Components.AfHeading, HTMLElement {}
|
|
4
|
+
export const AfHeading: {
|
|
5
|
+
prototype: AfHeading;
|
|
6
|
+
new (): AfHeading;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Used to define this component and all nested components recursively.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { A as AfHeading$1, d as defineCustomElement$1 } from './p-CbKdmUDd.js';
|
|
2
|
+
|
|
3
|
+
const AfHeading = AfHeading$1;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { AfHeading, defineCustomElement };
|
|
7
|
+
//# sourceMappingURL=af-heading.js.map
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=af-heading.js.map
|