@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,151 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
export class AfTypographyLockup {
|
|
3
|
+
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* The heading size (1-5, where 1 is largest)
|
|
6
|
+
*/
|
|
7
|
+
this.headingSize = 2;
|
|
8
|
+
/**
|
|
9
|
+
* The breakpoint for responsive typography
|
|
10
|
+
*/
|
|
11
|
+
this.breakpoint = 'desktop';
|
|
12
|
+
/**
|
|
13
|
+
* Text alignment
|
|
14
|
+
*/
|
|
15
|
+
this.textAlignment = 'left';
|
|
16
|
+
/**
|
|
17
|
+
* Button alignment (horizontal or vertical stacking)
|
|
18
|
+
*/
|
|
19
|
+
this.buttonAlignment = 'vertical';
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
const containerClasses = {
|
|
23
|
+
'lockup': true,
|
|
24
|
+
[`text-${this.textAlignment}`]: true,
|
|
25
|
+
[`button-${this.buttonAlignment}`]: true
|
|
26
|
+
};
|
|
27
|
+
const copyClasses = {
|
|
28
|
+
'copy': true,
|
|
29
|
+
[`heading-${this.headingSize}`]: true,
|
|
30
|
+
[`breakpoint-${this.breakpoint}`]: true
|
|
31
|
+
};
|
|
32
|
+
const copyStyle = this.maxWidth ? { maxWidth: `${this.maxWidth}px` } : {};
|
|
33
|
+
return (h(Host, { key: '7a748e23cc9262e4cf73abacf51951545228344c' }, h("div", { key: '443df8d7086ae8daf88f3827551219138dab43bb', class: containerClasses }, h("div", { key: 'efbf2467f36e2888bd4892524fb3d09b21b2ddfd', class: copyClasses, style: copyStyle }, h("div", { key: 'eb206a7d2e5c364a96295b11f83a87784c342ced', class: "heading" }, h("slot", { key: '360e15b14fbeeffd01fc55b2e0552bad530a337f' })), h("div", { key: '3b76ff5527eb52c382554f470991a05cbaf8e1e3', class: "description" }, h("slot", { key: '4e9f291edeac066abf2d1e416b846b9d1cbee2dc', name: "description" }))), h("div", { key: 'ff84e9ce823763b7570109d02b10d3039adefe61', class: "buttons" }, h("slot", { key: '36d0cc47a688c23c55d449a8f8e37b6f4be93d23', name: "buttons" })))));
|
|
34
|
+
}
|
|
35
|
+
static get is() { return "af-typography-lockup"; }
|
|
36
|
+
static get encapsulation() { return "shadow"; }
|
|
37
|
+
static get originalStyleUrls() {
|
|
38
|
+
return {
|
|
39
|
+
"$": ["af-typography-lockup.css"]
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
static get styleUrls() {
|
|
43
|
+
return {
|
|
44
|
+
"$": ["af-typography-lockup.css"]
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
static get properties() {
|
|
48
|
+
return {
|
|
49
|
+
"headingSize": {
|
|
50
|
+
"type": "number",
|
|
51
|
+
"mutable": false,
|
|
52
|
+
"complexType": {
|
|
53
|
+
"original": "1 | 2 | 3 | 4 | 5",
|
|
54
|
+
"resolved": "1 | 2 | 3 | 4 | 5",
|
|
55
|
+
"references": {}
|
|
56
|
+
},
|
|
57
|
+
"required": false,
|
|
58
|
+
"optional": false,
|
|
59
|
+
"docs": {
|
|
60
|
+
"tags": [],
|
|
61
|
+
"text": "The heading size (1-5, where 1 is largest)"
|
|
62
|
+
},
|
|
63
|
+
"getter": false,
|
|
64
|
+
"setter": false,
|
|
65
|
+
"reflect": false,
|
|
66
|
+
"attribute": "heading-size",
|
|
67
|
+
"defaultValue": "2"
|
|
68
|
+
},
|
|
69
|
+
"breakpoint": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"mutable": false,
|
|
72
|
+
"complexType": {
|
|
73
|
+
"original": "'desktop' | 'mobile'",
|
|
74
|
+
"resolved": "\"desktop\" | \"mobile\"",
|
|
75
|
+
"references": {}
|
|
76
|
+
},
|
|
77
|
+
"required": false,
|
|
78
|
+
"optional": false,
|
|
79
|
+
"docs": {
|
|
80
|
+
"tags": [],
|
|
81
|
+
"text": "The breakpoint for responsive typography"
|
|
82
|
+
},
|
|
83
|
+
"getter": false,
|
|
84
|
+
"setter": false,
|
|
85
|
+
"reflect": false,
|
|
86
|
+
"attribute": "breakpoint",
|
|
87
|
+
"defaultValue": "'desktop'"
|
|
88
|
+
},
|
|
89
|
+
"textAlignment": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"mutable": false,
|
|
92
|
+
"complexType": {
|
|
93
|
+
"original": "'left' | 'center'",
|
|
94
|
+
"resolved": "\"center\" | \"left\"",
|
|
95
|
+
"references": {}
|
|
96
|
+
},
|
|
97
|
+
"required": false,
|
|
98
|
+
"optional": false,
|
|
99
|
+
"docs": {
|
|
100
|
+
"tags": [],
|
|
101
|
+
"text": "Text alignment"
|
|
102
|
+
},
|
|
103
|
+
"getter": false,
|
|
104
|
+
"setter": false,
|
|
105
|
+
"reflect": false,
|
|
106
|
+
"attribute": "text-alignment",
|
|
107
|
+
"defaultValue": "'left'"
|
|
108
|
+
},
|
|
109
|
+
"buttonAlignment": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"mutable": false,
|
|
112
|
+
"complexType": {
|
|
113
|
+
"original": "'horizontal' | 'vertical'",
|
|
114
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
115
|
+
"references": {}
|
|
116
|
+
},
|
|
117
|
+
"required": false,
|
|
118
|
+
"optional": false,
|
|
119
|
+
"docs": {
|
|
120
|
+
"tags": [],
|
|
121
|
+
"text": "Button alignment (horizontal or vertical stacking)"
|
|
122
|
+
},
|
|
123
|
+
"getter": false,
|
|
124
|
+
"setter": false,
|
|
125
|
+
"reflect": false,
|
|
126
|
+
"attribute": "button-alignment",
|
|
127
|
+
"defaultValue": "'vertical'"
|
|
128
|
+
},
|
|
129
|
+
"maxWidth": {
|
|
130
|
+
"type": "number",
|
|
131
|
+
"mutable": false,
|
|
132
|
+
"complexType": {
|
|
133
|
+
"original": "number",
|
|
134
|
+
"resolved": "number | undefined",
|
|
135
|
+
"references": {}
|
|
136
|
+
},
|
|
137
|
+
"required": false,
|
|
138
|
+
"optional": true,
|
|
139
|
+
"docs": {
|
|
140
|
+
"tags": [],
|
|
141
|
+
"text": "Maximum width for the copy section (in pixels)"
|
|
142
|
+
},
|
|
143
|
+
"getter": false,
|
|
144
|
+
"setter": false,
|
|
145
|
+
"reflect": false,
|
|
146
|
+
"attribute": "max-width"
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
//# sourceMappingURL=af-typography-lockup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"af-typography-lockup.js","sourceRoot":"","sources":["../../../src/components/af-typography-lockup/af-typography-lockup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,kBAAkB;IAL/B;QAME;;WAEG;QACK,gBAAW,GAAsB,CAAC,CAAC;QAE3C;;WAEG;QACK,eAAU,GAAyB,SAAS,CAAC;QAErD;;WAEG;QACK,kBAAa,GAAsB,MAAM,CAAC;QAElD;;WAEG;QACK,oBAAe,GAA8B,UAAU,CAAC;KAwCjE;IAjCC,MAAM;QACJ,MAAM,gBAAgB,GAAG;YACvB,QAAQ,EAAE,IAAI;YACd,CAAC,QAAQ,IAAI,CAAC,aAAa,EAAE,CAAC,EAAE,IAAI;YACpC,CAAC,UAAU,IAAI,CAAC,eAAe,EAAE,CAAC,EAAE,IAAI;SACzC,CAAC;QAEF,MAAM,WAAW,GAAG;YAClB,MAAM,EAAE,IAAI;YACZ,CAAC,WAAW,IAAI,CAAC,WAAW,EAAE,CAAC,EAAE,IAAI;YACrC,CAAC,cAAc,IAAI,CAAC,UAAU,EAAE,CAAC,EAAE,IAAI;SACxC,CAAC;QAEF,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAE1E,OAAO,CACL,EAAC,IAAI;YACH,4DAAK,KAAK,EAAE,gBAAgB;gBAC1B,4DAAK,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS;oBACvC,4DAAK,KAAK,EAAC,SAAS;wBAClB,8DAAa,CACT;oBACN,4DAAK,KAAK,EAAC,aAAa;wBACtB,6DAAM,IAAI,EAAC,aAAa,GAAQ,CAC5B,CACF;gBACN,4DAAK,KAAK,EAAC,SAAS;oBAClB,6DAAM,IAAI,EAAC,SAAS,GAAQ,CACxB,CACF,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop, Host } from '@stencil/core';\n\n@Component({\n tag: 'af-typography-lockup',\n styleUrl: 'af-typography-lockup.css',\n shadow: true\n})\nexport class AfTypographyLockup {\n /**\n * The heading size (1-5, where 1 is largest)\n */\n @Prop() headingSize: 1 | 2 | 3 | 4 | 5 = 2;\n\n /**\n * The breakpoint for responsive typography\n */\n @Prop() breakpoint: 'desktop' | 'mobile' = 'desktop';\n\n /**\n * Text alignment\n */\n @Prop() textAlignment: 'left' | 'center' = 'left';\n\n /**\n * Button alignment (horizontal or vertical stacking)\n */\n @Prop() buttonAlignment: 'horizontal' | 'vertical' = 'vertical';\n\n /**\n * Maximum width for the copy section (in pixels)\n */\n @Prop() maxWidth?: number;\n\n render() {\n const containerClasses = {\n 'lockup': true,\n [`text-${this.textAlignment}`]: true,\n [`button-${this.buttonAlignment}`]: true\n };\n\n const copyClasses = {\n 'copy': true,\n [`heading-${this.headingSize}`]: true,\n [`breakpoint-${this.breakpoint}`]: true\n };\n\n const copyStyle = this.maxWidth ? { maxWidth: `${this.maxWidth}px` } : {};\n\n return (\n <Host>\n <div class={containerClasses}>\n <div class={copyClasses} style={copyStyle}>\n <div class=\"heading\">\n <slot></slot>\n </div>\n <div class=\"description\">\n <slot name=\"description\"></slot>\n </div>\n </div>\n <div class=\"buttons\">\n <slot name=\"buttons\"></slot>\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -4,4 +4,10 @@ export { AfColorSwatch } from './components/af-color-swatch/af-color-swatch';
|
|
|
4
4
|
export { AfContainer } from './components/af-container/af-container';
|
|
5
5
|
export { AfAspectRatio } from './components/af-aspect-ratio/af-aspect-ratio';
|
|
6
6
|
export { AfNavItem } from './components/af-nav-item/af-nav-item';
|
|
7
|
+
export { AfNavbar } from './components/af-navbar/af-navbar';
|
|
8
|
+
export { AfLogo } from './components/af-logo/af-logo';
|
|
9
|
+
export { AfButton } from './components/af-button/af-button';
|
|
10
|
+
export { AfIconButton } from './components/af-icon-button/af-icon-button';
|
|
11
|
+
export { AfButtonGroup } from './components/af-button-group/af-button-group';
|
|
12
|
+
export { AfTypographyLockup } from './components/af-typography-lockup/af-typography-lockup';
|
|
7
13
|
//# sourceMappingURL=components.js.map
|
|
@@ -1 +1 @@
|
|
|
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
|
+
{"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;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,wDAAwD,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';\nexport { AfNavbar } from './components/af-navbar/af-navbar';\nexport { AfLogo } from './components/af-logo/af-logo';\nexport { AfButton } from './components/af-button/af-button';\nexport { AfIconButton } from './components/af-icon-button/af-icon-button';\nexport { AfButtonGroup } from './components/af-button-group/af-button-group';\nexport { AfTypographyLockup } from './components/af-typography-lockup/af-typography-lockup';\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface AfButtonGroup extends Components.AfButtonGroup, HTMLElement {}
|
|
4
|
+
export const AfButtonGroup: {
|
|
5
|
+
prototype: AfButtonGroup;
|
|
6
|
+
new (): AfButtonGroup;
|
|
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 AfButtonGroup$1, d as defineCustomElement$1 } from './p-5LmA06cB.js';
|
|
2
|
+
|
|
3
|
+
const AfButtonGroup = AfButtonGroup$1;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { AfButtonGroup, defineCustomElement };
|
|
7
|
+
//# sourceMappingURL=af-button-group.js.map
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=af-button-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"af-button-group.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface AfButton extends Components.AfButton, HTMLElement {}
|
|
4
|
+
export const AfButton: {
|
|
5
|
+
prototype: AfButton;
|
|
6
|
+
new (): AfButton;
|
|
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 AfButton$1, d as defineCustomElement$1 } from './p-BvU8ETOD.js';
|
|
2
|
+
|
|
3
|
+
const AfButton = AfButton$1;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { AfButton, defineCustomElement };
|
|
7
|
+
//# sourceMappingURL=af-button.js.map
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=af-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"af-button.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface AfIconButton extends Components.AfIconButton, HTMLElement {}
|
|
4
|
+
export const AfIconButton: {
|
|
5
|
+
prototype: AfIconButton;
|
|
6
|
+
new (): AfIconButton;
|
|
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 AfIconButton$1, d as defineCustomElement$1 } from './p-D1Yr2lLq.js';
|
|
2
|
+
|
|
3
|
+
const AfIconButton = AfIconButton$1;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { AfIconButton, defineCustomElement };
|
|
7
|
+
//# sourceMappingURL=af-icon-button.js.map
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=af-icon-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"af-icon-button.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface AfLogo extends Components.AfLogo, HTMLElement {}
|
|
4
|
+
export const AfLogo: {
|
|
5
|
+
prototype: AfLogo;
|
|
6
|
+
new (): AfLogo;
|
|
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 AfLogo$1, d as defineCustomElement$1 } from './p-KunaKXcK.js';
|
|
2
|
+
|
|
3
|
+
const AfLogo = AfLogo$1;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { AfLogo, defineCustomElement };
|
|
7
|
+
//# sourceMappingURL=af-logo.js.map
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=af-logo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"af-logo.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface AfNavbar extends Components.AfNavbar, HTMLElement {}
|
|
4
|
+
export const AfNavbar: {
|
|
5
|
+
prototype: AfNavbar;
|
|
6
|
+
new (): AfNavbar;
|
|
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 AfNavbar$1, d as defineCustomElement$1 } from './p-CULmtqPG.js';
|
|
2
|
+
|
|
3
|
+
const AfNavbar = AfNavbar$1;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { AfNavbar, defineCustomElement };
|
|
7
|
+
//# sourceMappingURL=af-navbar.js.map
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=af-navbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"af-navbar.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface AfTypographyLockup extends Components.AfTypographyLockup, HTMLElement {}
|
|
4
|
+
export const AfTypographyLockup: {
|
|
5
|
+
prototype: AfTypographyLockup;
|
|
6
|
+
new (): AfTypographyLockup;
|
|
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 AfTypographyLockup$1, d as defineCustomElement$1 } from './p-D7g9FtMr.js';
|
|
2
|
+
|
|
3
|
+
const AfTypographyLockup = AfTypographyLockup$1;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { AfTypographyLockup, defineCustomElement };
|
|
7
|
+
//# sourceMappingURL=af-typography-lockup.js.map
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=af-typography-lockup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"af-typography-lockup.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
package/dist/components/index.js
CHANGED
|
@@ -1,10 +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-
|
|
1
|
+
export { g as getAssetPath, r as render, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-BphH2zpz.js';
|
|
2
|
+
export { A as AfHeading } from './p-S40-XegF.js';
|
|
3
|
+
export { A as AfText } from './p-BwsohoSw.js';
|
|
4
|
+
export { A as AfColorSwatch } from './p-CwHzsQvO.js';
|
|
5
|
+
export { A as AfContainer } from './p-Cpc8P-ou.js';
|
|
6
|
+
export { A as AfAspectRatio } from './p-DSESDq7v.js';
|
|
7
|
+
export { A as AfNavItem } from './p-DgZl7pFQ.js';
|
|
8
|
+
export { A as AfNavbar } from './p-CULmtqPG.js';
|
|
9
|
+
export { A as AfLogo } from './p-KunaKXcK.js';
|
|
10
|
+
export { A as AfButton } from './p-BvU8ETOD.js';
|
|
11
|
+
export { A as AfIconButton } from './p-D1Yr2lLq.js';
|
|
12
|
+
export { A as AfButtonGroup } from './p-5LmA06cB.js';
|
|
13
|
+
export { A as AfTypographyLockup } from './p-D7g9FtMr.js';
|
|
8
14
|
//# sourceMappingURL=index.js.map
|
|
9
15
|
|
|
10
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"index.js","mappings":"
|
|
1
|
+
{"file":"index.js","mappings":";;;;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, h, c as Host } from './p-BphH2zpz.js';
|
|
2
|
+
|
|
3
|
+
const afButtonGroupCss = ":host{display:inline-block}.button-group{display:inline-flex;align-items:center;box-sizing:border-box}.direction-horizontal{flex-direction:row}.direction-vertical{flex-direction:column}::slotted(*){flex-shrink:0}";
|
|
4
|
+
|
|
5
|
+
const AfButtonGroup = /*@__PURE__*/ proxyCustomElement(class AfButtonGroup extends H {
|
|
6
|
+
constructor(registerHost) {
|
|
7
|
+
super();
|
|
8
|
+
if (registerHost !== false) {
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
}
|
|
11
|
+
this.__attachShadow();
|
|
12
|
+
/**
|
|
13
|
+
* Layout direction of the button group
|
|
14
|
+
*/
|
|
15
|
+
this.direction = 'horizontal';
|
|
16
|
+
/**
|
|
17
|
+
* Gap between buttons
|
|
18
|
+
*/
|
|
19
|
+
this.gap = '8px';
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
const classes = {
|
|
23
|
+
'button-group': true,
|
|
24
|
+
[`direction-${this.direction}`]: true
|
|
25
|
+
};
|
|
26
|
+
return (h(Host, { key: '9ef4ea3e4429646edb2d14a780763807d35ca438' }, h("div", { key: '8f61ec426b1f01cfd0ed91b6045e01cc1ecb1637', class: classes, style: { gap: this.gap } }, h("slot", { key: '06acb0d36cc96b311c228ba19039899a99d6a35d' }))));
|
|
27
|
+
}
|
|
28
|
+
static get style() { return afButtonGroupCss; }
|
|
29
|
+
}, [257, "af-button-group", {
|
|
30
|
+
"direction": [1],
|
|
31
|
+
"gap": [1]
|
|
32
|
+
}]);
|
|
33
|
+
function defineCustomElement() {
|
|
34
|
+
if (typeof customElements === "undefined") {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const components = ["af-button-group"];
|
|
38
|
+
components.forEach(tagName => { switch (tagName) {
|
|
39
|
+
case "af-button-group":
|
|
40
|
+
if (!customElements.get(tagName)) {
|
|
41
|
+
customElements.define(tagName, AfButtonGroup);
|
|
42
|
+
}
|
|
43
|
+
break;
|
|
44
|
+
} });
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export { AfButtonGroup as A, defineCustomElement as d };
|
|
48
|
+
//# sourceMappingURL=p-5LmA06cB.js.map
|
|
49
|
+
|
|
50
|
+
//# sourceMappingURL=p-5LmA06cB.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"p-5LmA06cB.js","mappings":";;AAAA,MAAM,gBAAgB,GAAG,sNAAsN;;MCOlO,aAAa,iBAAAA,kBAAA,CAAA,MAAA,aAAA,SAAAC,CAAA,CAAA;AAL1B,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;;AAME;;AAEG;AACK,QAAA,IAAS,CAAA,SAAA,GAA8B,YAAY;AAE3D;;AAEG;AACK,QAAA,IAAG,CAAA,GAAA,GAAW,KAAK;AAgB5B;IAdC,MAAM,GAAA;AACJ,QAAA,MAAM,OAAO,GAAG;AACd,YAAA,cAAc,EAAE,IAAI;AACpB,YAAA,CAAC,aAAa,IAAI,CAAC,SAAS,CAAE,CAAA,GAAG;SAClC;QAED,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACH,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,EAAA,EAC3C,CAAa,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACT,CACD;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/af-button-group/af-button-group.css?tag=af-button-group&encapsulation=shadow","src/components/af-button-group/af-button-group.tsx"],"sourcesContent":[":host {\n display: inline-block;\n}\n\n.button-group {\n display: inline-flex;\n align-items: center;\n box-sizing: border-box;\n}\n\n.direction-horizontal {\n flex-direction: row;\n}\n\n.direction-vertical {\n flex-direction: column;\n}\n\n/* Ensure slotted buttons align properly */\n::slotted(*) {\n flex-shrink: 0;\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n tag: 'af-button-group',\n styleUrl: 'af-button-group.css',\n shadow: true\n})\nexport class AfButtonGroup {\n /**\n * Layout direction of the button group\n */\n @Prop() direction: 'horizontal' | 'vertical' = 'horizontal';\n\n /**\n * Gap between buttons\n */\n @Prop() gap: string = '8px';\n\n render() {\n const classes = {\n 'button-group': true,\n [`direction-${this.direction}`]: true\n };\n\n return (\n <Host>\n <div class={classes} style={{ gap: this.gap }}>\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const globalStyles = ":root{--
|
|
1
|
+
const globalStyles = ":root{--colour-brand-mist-green:#C6D5D1;--colour-brand-inkwell:#14343B;--colour-brand-soft-clay:#B09670;--colour-brand-white:#FFFFFF;--colour-brand-ivory-paper:#FFF9E1;--colour-brand-azure:#7FE2D4;--colour-brand-ice:#A6FFF8;--colour-tints-mist-green-20:#F6FAF9;--colour-tints-mist-green-30:#F2F9F5;--colour-tints-mist-green-40:#ECF6F3;--colour-tints-mist-green-50:#E9F5FA;--colour-tints-mist-green-100:#E1EEE1;--colour-tints-mist-green-200:#D2E8E3;--colour-tints-mist-green-300:#C2E4E3;--colour-tints-mist-green-400:#B2D0D0A;--colour-tints-mist-green-500:#A1BABA;--colour-tints-mist-green-600:#92A7A7;--colour-tints-mist-green-700:#849898;--colour-tints-mist-green-800:#1B6A68;--colour-tints-inkwell-20:#F8FAFA;--colour-tints-inkwell-30:#F5F9F5;--colour-tints-inkwell-40:#EEF5F5;--colour-tints-inkwell-50:#E8E6E8;--colour-tints-inkwell-100:#D4D4D4;--colour-tints-inkwell-200:#AAB6B1;--colour-tints-inkwell-300:#7D969B;--colour-tints-inkwell-400:#4E6E5F;--colour-tints-inkwell-500:#1E4A48;--colour-tints-inkwell-600:#1A3038;--colour-tints-inkwell-700:#142736;--colour-tints-inkwell-800:#0D1A20;--colour-tints-soft-clay-20:#FBF9F5;--colour-tints-soft-clay-30:#FAF8F1;--colour-tints-soft-clay-40:#F7F5E5;--colour-tints-soft-clay-50:#F7F5E1;--colour-tints-soft-clay-100:#F2EAC2;--colour-tints-soft-clay-200:#D5C5C4;--colour-tints-soft-clay-300:#D0C0A9;--colour-tints-soft-clay-400:#CDAB8D;--colour-tints-soft-clay-500:#B59B82;--colour-tints-soft-clay-600:#A08651;--colour-tints-soft-clay-700:#8D7B5A;--colour-tints-soft-clay-800:#5A5920;--colour-tints-ice-20:#FAFFFF;--colour-tints-ice-30:#F8FFFE;--colour-tints-ice-40:#F4FFFD;--colour-tints-ice-50:#E6FFFF;--colour-tints-ice-100:#E4FFF8;--colour-tints-ice-200:#C9FFF0;--colour-tints-ice-300:#C2FFF0;--colour-tints-ice-400:#B8FFFC;--colour-tints-ice-500:#8Ce;--colour-tints-ice-600:#83BB82;--colour-tints-ice-700:#10CCC9;--colour-typography-heading-primary:#14343B;--colour-typography-heading-secondary:#B09670;--colour-typography-body-dark:#14343B;--colour-typography-body-default:#14343B;--colour-typography-body-subtle:#708380;--colour-background-mist-green:#C6D5D1;--colour-background-inkwell:#14343B;--colour-background-soft-clay:#B09670;--colour-background-white:#FFFFFF;--colour-background-ivory-paper:#FFF9E1;--colour-ui-mist-green:#C6D5D1;--colour-ui-inkwell:#14343B;--colour-ui-soft-clay:#B09670;--colour-ui-white:#FFFFFF;--colour-ui-ivory-paper:#FFF9E1;--colour-ui-azure:#7FE2D4;--colour-ui-ice:#A6FFF8;--radius-sm:6px;--radius-md:12px;--radius-pill:999px;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--typography-headingfont:'NeuSans', 'Inter', 'Segoe UI', system-ui, sans-serif;--typography-bodyfont:'Helvetica', 'Inter', 'Segoe UI', system-ui, sans-serif;--typography-sansfont:'Inter', 'Segoe UI', system-ui, sans-serif;--font-weight-regular:400;--font-weight-book:500;--font-weight-semibold:600;--font-size-heading-1-desktop:56px;--font-size-heading-1-mobile:38px;--font-size-heading-2-desktop:44px;--font-size-heading-2-mobile:32px;--font-size-heading-3-desktop:34px;--font-size-heading-3-mobile:25px;--font-size-heading-4-desktop:24px;--font-size-heading-4-mobile:20px;--font-size-heading-5-desktop:20px;--font-size-heading-5-mobile:18px;--font-size-heading-xl-desktop:80px;--font-size-heading-xl-mobile:50px;--font-size-body-xlarge:22px;--font-size-body-large:18px;--font-size-body-medium:16px;--font-size-body-small:14px;--font-size-label-button:17px;--font-size-label-tag:14px;--line-height-heading-tight:1;--line-height-heading-normal:1.1;--line-height-heading-relaxed:1.2;--line-height-body-xlarge:28px;--line-height-body-large:26px;--line-height-body-medium:24px;--line-height-body-small:20px;--line-height-label-button:20px;--line-height-label-tag:1;--letter-spacing-heading:-0.02em;--letter-spacing-body:0;--grid-xlarge-breakpoint:1440px;--grid-xlarge-columns:12;--grid-xlarge-margin:80px;--grid-xlarge-gutter:24px;--grid-xlarge-max-width:1440px;--grid-large-breakpoint:1024px;--grid-large-columns:12;--grid-large-margin:64px;--grid-large-gutter:16px;--grid-large-max-width:1024px;--grid-medium-breakpoint:768px;--grid-medium-columns:6;--grid-medium-margin:32px;--grid-medium-gutter:16px;--grid-medium-max-width:768px;--grid-small-breakpoint:375px;--grid-small-columns:4;--grid-small-margin:20px;--grid-small-gutter:16px;--grid-small-max-width:100%;--grid-xsmall-breakpoint:320px;--grid-xsmall-columns:4;--grid-xsmall-margin:16px;--grid-xsmall-gutter:16px;--grid-xsmall-max-width:100%;--icon-size-small:16px;--icon-size-medium:24px;--icon-size-large:32px;--icon-badge-size:48px;--illustration-size:432px}";
|
|
2
2
|
|
|
3
3
|
const NAMESPACE = 'affinda';
|
|
4
4
|
const BUILD = /* affinda */ { hydratedSelectorName: "hydrated", lazyLoad: false, propChangeCallback: false, updatable: true};
|
|
@@ -12,6 +12,10 @@ var __export = (target, all) => {
|
|
|
12
12
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
+
// src/utils/constants.ts
|
|
16
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
17
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
18
|
+
|
|
15
19
|
// src/client/client-host-ref.ts
|
|
16
20
|
var getHostRef = (ref) => {
|
|
17
21
|
if (ref.__stencil__getHostRef) {
|
|
@@ -424,6 +428,9 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
|
424
428
|
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
425
429
|
}
|
|
426
430
|
}
|
|
431
|
+
if (propType & 2 /* Number */) {
|
|
432
|
+
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
433
|
+
}
|
|
427
434
|
if (propType & 1 /* String */) {
|
|
428
435
|
return String(propValue);
|
|
429
436
|
}
|
|
@@ -473,7 +480,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
473
480
|
}
|
|
474
481
|
} else if (memberName === "key") ; else {
|
|
475
482
|
const isComplex = isComplexType(newValue);
|
|
476
|
-
if ((isProp || isComplex && newValue !== null) &&
|
|
483
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
477
484
|
try {
|
|
478
485
|
if (!elm.tagName.includes("-")) {
|
|
479
486
|
const n = newValue == null ? "" : newValue;
|
|
@@ -564,14 +571,21 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
564
571
|
if (newVNode2.$text$ !== null) {
|
|
565
572
|
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
566
573
|
} else {
|
|
574
|
+
if (!isSvgMode) {
|
|
575
|
+
isSvgMode = newVNode2.$tag$ === "svg";
|
|
576
|
+
}
|
|
567
577
|
if (!win.document) {
|
|
568
578
|
throw new Error(
|
|
569
579
|
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
570
580
|
);
|
|
571
581
|
}
|
|
572
|
-
elm = newVNode2.$elm$ = win.document.
|
|
582
|
+
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
583
|
+
isSvgMode ? SVG_NS : HTML_NS,
|
|
573
584
|
newVNode2.$tag$
|
|
574
|
-
);
|
|
585
|
+
) ;
|
|
586
|
+
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
587
|
+
isSvgMode = false;
|
|
588
|
+
}
|
|
575
589
|
{
|
|
576
590
|
updateElement(null, newVNode2, isSvgMode);
|
|
577
591
|
}
|
|
@@ -583,6 +597,13 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
583
597
|
}
|
|
584
598
|
}
|
|
585
599
|
}
|
|
600
|
+
{
|
|
601
|
+
if (newVNode2.$tag$ === "svg") {
|
|
602
|
+
isSvgMode = false;
|
|
603
|
+
} else if (elm.tagName === "foreignObject") {
|
|
604
|
+
isSvgMode = true;
|
|
605
|
+
}
|
|
606
|
+
}
|
|
586
607
|
}
|
|
587
608
|
elm["s-hn"] = hostTagName;
|
|
588
609
|
return elm;
|
|
@@ -714,8 +735,12 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
714
735
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
715
736
|
const oldChildren = oldVNode.$children$;
|
|
716
737
|
const newChildren = newVNode2.$children$;
|
|
738
|
+
const tag = newVNode2.$tag$;
|
|
717
739
|
const text = newVNode2.$text$;
|
|
718
740
|
if (text === null) {
|
|
741
|
+
{
|
|
742
|
+
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
743
|
+
}
|
|
719
744
|
{
|
|
720
745
|
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
721
746
|
}
|
|
@@ -732,6 +757,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
732
757
|
) {
|
|
733
758
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
734
759
|
} else ;
|
|
760
|
+
if (isSvgMode && tag === "svg") {
|
|
761
|
+
isSvgMode = false;
|
|
762
|
+
}
|
|
735
763
|
} else if (oldVNode.$text$ !== text) {
|
|
736
764
|
elm.data = text;
|
|
737
765
|
}
|
|
@@ -1203,6 +1231,6 @@ function render(vnode, container) {
|
|
|
1203
1231
|
}
|
|
1204
1232
|
|
|
1205
1233
|
export { H, setNonce as a, setPlatformOptions as b, Host as c, getAssetPath as g, h, proxyCustomElement as p, render as r, setAssetPath as s };
|
|
1206
|
-
//# sourceMappingURL=p-
|
|
1234
|
+
//# sourceMappingURL=p-BphH2zpz.js.map
|
|
1207
1235
|
|
|
1208
|
-
//# sourceMappingURL=p-
|
|
1236
|
+
//# sourceMappingURL=p-BphH2zpz.js.map
|