@affinda/wc 0.0.2 → 0.0.3
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-540af9d9.entry.js +2 -0
- package/dist/affinda/p-540af9d9.entry.js.map +1 -0
- package/dist/affinda/p-619bc077.entry.js +2 -0
- package/dist/affinda/p-619bc077.entry.js.map +1 -0
- package/dist/affinda/p-6b07f590.entry.js +2 -0
- package/dist/affinda/p-6b07f590.entry.js.map +1 -0
- package/dist/affinda/{p-f79068a7.entry.js → p-8d3b4917.entry.js} +2 -2
- package/dist/affinda/{p-ccdcebe9.entry.js → p-9d0e6ed1.entry.js} +2 -2
- package/dist/affinda/p-DxVtR6vj.js +3 -0
- package/dist/affinda/p-DxVtR6vj.js.map +1 -0
- package/dist/affinda/p-afbe9cb3.entry.js +2 -0
- package/dist/affinda/p-afbe9cb3.entry.js.map +1 -0
- package/dist/affinda/{p-a6a8ecde.entry.js → p-cbb06a14.entry.js} +2 -2
- package/dist/affinda/p-e274e11a.entry.js +2 -0
- package/dist/affinda/p-e274e11a.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-E2jkaTPt.js} +34 -6
- package/dist/cjs/index-E2jkaTPt.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-B17zxKkI.js +35 -0
- package/dist/components/p-B17zxKkI.js.map +1 -0
- package/dist/components/{p-CbKdmUDd.js → p-BJDmHNDi.js} +3 -3
- package/dist/components/{p-CbKdmUDd.js.map → p-BJDmHNDi.js.map} +1 -1
- package/dist/components/p-BfmeW04T.js +50 -0
- package/dist/components/p-BfmeW04T.js.map +1 -0
- package/dist/components/p-BoU5qaPt.js +68 -0
- package/dist/components/p-BoU5qaPt.js.map +1 -0
- package/dist/components/{p-BZ5_l5Q-.js → p-CT_9_xN3.js} +3 -3
- package/dist/components/{p-BZ5_l5Q-.js.map → p-CT_9_xN3.js.map} +1 -1
- package/dist/components/{p-TaHgCKVa.js → p-CzaQ1fCu.js} +34 -6
- package/dist/components/p-CzaQ1fCu.js.map +1 -0
- package/dist/components/{p-Ntwn3krC.js → p-DG7Mtz0G.js} +4 -4
- package/dist/components/p-DG7Mtz0G.js.map +1 -0
- package/dist/components/p-DcFGu6up.js +68 -0
- package/dist/components/p-DcFGu6up.js.map +1 -0
- package/dist/components/{p-DbZX-luM.js → p-DfIqdEs7.js} +3 -3
- package/dist/components/{p-DbZX-luM.js.map → p-DfIqdEs7.js.map} +1 -1
- package/dist/components/{p-CCPh8sLt.js → p-DqIqR4VU.js} +3 -3
- package/dist/components/{p-CCPh8sLt.js.map → p-DqIqR4VU.js.map} +1 -1
- package/dist/components/{p-Ck_3oNdO.js → p-LEksuu7O.js} +3 -3
- package/dist/components/{p-Ck_3oNdO.js.map → p-LEksuu7O.js.map} +1 -1
- package/dist/components/p-uhOM63Ux.js +71 -0
- package/dist/components/p-uhOM63Ux.js.map +1 -0
- package/dist/components/p-zBrKMKWE.js +35 -0
- package/dist/components/p-zBrKMKWE.js.map +1 -0
- 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-DxVtR6vj.js} +34 -6
- package/dist/esm/index-DxVtR6vj.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-f79068a7.entry.js.map → p-8d3b4917.entry.js.map} +0 -0
- /package/dist/affinda/{p-ccdcebe9.entry.js.map → p-9d0e6ed1.entry.js.map} +0 -0
- /package/dist/affinda/{p-a6a8ecde.entry.js.map → p-cbb06a14.entry.js.map} +0 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-DxVtR6vj.js';
|
|
2
|
+
|
|
3
|
+
const afHeadingCss = ":host{display:block}.heading{margin:0;padding:0;font-family:'NeuSans', 'Inter', 'Segoe UI', system-ui, sans-serif;font-weight:500;color:#14343b;letter-spacing:-0.02em}.align-left{text-align:left}.align-center{text-align:center}.align-right{text-align:right}.level-xl{font-size:50px;line-height:1}@media (min-width: 768px){.level-xl{font-size:80px}}.level-1{font-size:38px;line-height:1}@media (min-width: 768px){.level-1{font-size:56px}}.level-2{font-size:32px;line-height:1}@media (min-width: 768px){.level-2{font-size:44px}}.level-3{font-size:25px;line-height:1}@media (min-width: 768px){.level-3{font-size:34px}}.level-4{font-size:20px;line-height:1.1}@media (min-width: 768px){.level-4{font-size:24px;line-height:1.2}}.level-5{font-size:18px;line-height:1.1}@media (min-width: 768px){.level-5{font-size:20px;line-height:1.2}}";
|
|
4
|
+
|
|
5
|
+
const AfHeading = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
/** Heading level */
|
|
9
|
+
this.level = '1';
|
|
10
|
+
/** Visual alignment */
|
|
11
|
+
this.align = 'left';
|
|
12
|
+
}
|
|
13
|
+
getHeadingTag() {
|
|
14
|
+
// Map display levels to semantic HTML tags
|
|
15
|
+
const tagMap = {
|
|
16
|
+
'xl': 'h1',
|
|
17
|
+
'1': 'h1',
|
|
18
|
+
'2': 'h2',
|
|
19
|
+
'3': 'h3',
|
|
20
|
+
'4': 'h4',
|
|
21
|
+
'5': 'h5'
|
|
22
|
+
};
|
|
23
|
+
return tagMap[this.level] || 'h1';
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
const Tag = this.getHeadingTag();
|
|
27
|
+
return (h(Tag, { key: '1d3f37c8d067c3c9d0ec7f10422478ab41c990b2', class: {
|
|
28
|
+
'heading': true,
|
|
29
|
+
[`level-${this.level}`]: true,
|
|
30
|
+
[`align-${this.align}`]: true
|
|
31
|
+
}, part: "base" }, h("slot", { key: 'dcba9d00393f818cfceeb5eba5cc2bd874927dfd' })));
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
AfHeading.style = afHeadingCss;
|
|
35
|
+
|
|
36
|
+
const afTextCss = ":host{display:block}.text{margin:0;padding:0;font-family:'Helvetica', 'Inter', 'Segoe UI', system-ui, sans-serif;font-weight:400;color:#14343b;letter-spacing:0}.align-left{text-align:left}.align-center{text-align:center}.align-right{text-align:right}.variant-xlarge{font-size:22px;line-height:28px}.variant-large{font-size:18px;line-height:26px}.variant-medium{font-size:16px;line-height:24px}.variant-small{font-size:14px;line-height:20px}.variant-label-button{font-family:'NeuSans', 'Inter', 'Segoe UI', system-ui, sans-serif;font-weight:500;font-size:17px;line-height:20px}.variant-label-tag{font-family:'NeuSans', 'Inter', 'Segoe UI', system-ui, sans-serif;font-weight:500;font-size:14px;line-height:1}";
|
|
37
|
+
|
|
38
|
+
const AfText = class {
|
|
39
|
+
constructor(hostRef) {
|
|
40
|
+
registerInstance(this, hostRef);
|
|
41
|
+
/** Text variant */
|
|
42
|
+
this.variant = 'medium';
|
|
43
|
+
/** Visual alignment */
|
|
44
|
+
this.align = 'left';
|
|
45
|
+
/** Semantic element to render */
|
|
46
|
+
this.as = 'p';
|
|
47
|
+
}
|
|
48
|
+
render() {
|
|
49
|
+
const Tag = this.as;
|
|
50
|
+
return (h(Tag, { key: '778a86a185f2416dec867ca2457acb2fe1ad4bcb', class: {
|
|
51
|
+
'text': true,
|
|
52
|
+
[`variant-${this.variant}`]: true,
|
|
53
|
+
[`align-${this.align}`]: true
|
|
54
|
+
}, part: "base" }, h("slot", { key: '2b3ee364c989ca8d233583946e24665df0192fb9' })));
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
AfText.style = afTextCss;
|
|
58
|
+
|
|
59
|
+
const afNavItemCss = ":host{display:inline-block}.nav-link{text-decoration:none;color:inherit;display:block}.nav-item{display:flex;align-items:center;gap:8px;box-sizing:border-box;cursor:pointer}.hierarchy-primary{padding:12px;justify-content:center}.hierarchy-primary .label-container{display:flex;align-items:center;justify-content:center;height:24px;gap:10px}.hierarchy-primary.variant-01{font-family:'NeuSans', 'Inter', system-ui, sans-serif;font-size:16px;font-weight:500;line-height:20px;color:#14343b}.hierarchy-primary.variant-02{font-family:'NeuSans', 'Inter', system-ui, sans-serif;font-size:16px;font-weight:500;line-height:20px;color:#14343b}.hierarchy-primary.variant-01:hover .label-container{border-bottom:1px solid currentColor}.hierarchy-primary.variant-01.active .label-container{border-bottom:2px solid #8a7049}.hierarchy-primary.variant-02:hover{background-color:rgba(20, 52, 59, 0.04);border-radius:8px}.hierarchy-primary.variant-02.active{background-color:rgba(20, 52, 59, 0.08);border-radius:8px}.hierarchy-secondary{padding:4px 0}.hierarchy-secondary .label-container{display:flex;align-items:center;flex:1;min-height:24px;gap:8px}.hierarchy-secondary.variant-01{font-family:'NeuSans', 'Inter', system-ui, sans-serif;font-size:14px;font-weight:500;line-height:20px;color:#14343b}.hierarchy-secondary.variant-02{font-family:'NeuSans', 'Inter', system-ui, sans-serif;font-size:14px;font-weight:400;line-height:20px;color:#2b484f}.hierarchy-secondary:hover ::slotted(*){text-decoration:underline}@media (max-width: 767px){.hierarchy-primary{padding:20px 12px;border-bottom:1px solid #e8eeed;width:100%}.hierarchy-primary .label-container{flex:1;justify-content:flex-start}.hierarchy-primary.variant-01{font-size:20px;line-height:1.1;letter-spacing:-0.4px}.hierarchy-primary.variant-02{font-size:20px;line-height:1.1;letter-spacing:-0.4px;color:#60767b}}::slotted([slot=\"icon-left\"]),::slotted([slot=\"icon-right\"]){width:24px;height:24px;flex-shrink:0}.hierarchy-secondary ::slotted([slot=\"icon-right\"]){width:20px;height:20px}";
|
|
60
|
+
|
|
61
|
+
const AfNavItem = class {
|
|
62
|
+
constructor(hostRef) {
|
|
63
|
+
registerInstance(this, hostRef);
|
|
64
|
+
/**
|
|
65
|
+
* Visual hierarchy level of the navigation item
|
|
66
|
+
* - 'primary': Bold, main navigation (larger text, prominent styling)
|
|
67
|
+
* - 'secondary': Lighter, sub-navigation (smaller text, subtle styling)
|
|
68
|
+
*/
|
|
69
|
+
this.hierarchy = 'primary';
|
|
70
|
+
/**
|
|
71
|
+
* Visual variant within the hierarchy level
|
|
72
|
+
* - '01': Darker/more prominent styling
|
|
73
|
+
* - '02': Lighter/more subtle styling
|
|
74
|
+
*/
|
|
75
|
+
this.variant = '01';
|
|
76
|
+
/**
|
|
77
|
+
* Whether this nav item is currently active/selected
|
|
78
|
+
*/
|
|
79
|
+
this.active = false;
|
|
80
|
+
}
|
|
81
|
+
render() {
|
|
82
|
+
const classes = {
|
|
83
|
+
'nav-item': true,
|
|
84
|
+
[`hierarchy-${this.hierarchy}`]: true,
|
|
85
|
+
[`variant-${this.variant}`]: true,
|
|
86
|
+
'active': this.active
|
|
87
|
+
};
|
|
88
|
+
const content = (h("div", { class: classes }, h("slot", { name: "icon-left" }), h("div", { class: "label-container" }, h("slot", null)), h("slot", { name: "icon-right" })));
|
|
89
|
+
if (this.href) {
|
|
90
|
+
return (h(Host, null, h("a", { href: this.href, class: "nav-link" }, content)));
|
|
91
|
+
}
|
|
92
|
+
return h(Host, null, content);
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
AfNavItem.style = afNavItemCss;
|
|
96
|
+
|
|
97
|
+
const afNavbarCss = ":host{display:block;width:100%}.navbar-container{padding:32px 80px 0;box-sizing:border-box}.navbar{background:#E8F1EF;border:1px solid rgba(0, 0, 0, 0.12);border-radius:9999px;display:flex;align-items:center;justify-content:space-between;padding:8px 8px 8px 40px;box-sizing:border-box;box-shadow:0 2px 8px rgba(0, 0, 0, 0.08)}.navbar-left{display:flex;align-items:center;gap:32px}.logo{display:flex;align-items:center;flex-shrink:0}.nav-links{display:flex;align-items:center;gap:8px}.navbar-right{display:flex;align-items:center;gap:20px}.nav-actions{display:flex;align-items:center;gap:12px}.nav-button{display:flex;align-items:center}@media (max-width: 1024px){.navbar-container{padding:24px 40px 0}.navbar-left{gap:24px}.nav-links{gap:4px}}@media (max-width: 767px){.navbar-container{padding:16px 16px 0}.navbar{padding:8px 16px;flex-direction:column;border-radius:16px;gap:16px}.navbar-left{width:100%;flex-direction:column;gap:16px;align-items:flex-start}.nav-links{width:100%;flex-direction:column;align-items:stretch;gap:0}.navbar-right{width:100%;flex-direction:column;gap:12px;align-items:stretch}.nav-actions{width:100%;flex-direction:column;align-items:stretch;gap:0}.nav-button{width:100%}}";
|
|
98
|
+
|
|
99
|
+
const AfNavbar = class {
|
|
100
|
+
constructor(hostRef) {
|
|
101
|
+
registerInstance(this, hostRef);
|
|
102
|
+
}
|
|
103
|
+
render() {
|
|
104
|
+
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" })))))));
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
AfNavbar.style = afNavbarCss;
|
|
108
|
+
|
|
109
|
+
const afLogoCss = ":host{display:inline-block;color:#14343b}.logo-svg{display:block;height:22px;width:auto}";
|
|
110
|
+
|
|
111
|
+
const AfLogo = class {
|
|
112
|
+
constructor(hostRef) {
|
|
113
|
+
registerInstance(this, hostRef);
|
|
114
|
+
}
|
|
115
|
+
render() {
|
|
116
|
+
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" }))))));
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
AfLogo.style = afLogoCss;
|
|
120
|
+
|
|
121
|
+
export { AfHeading as af_heading, AfLogo as af_logo, AfNavItem as af_nav_item, AfNavbar as af_navbar, AfText as af_text };
|
|
122
|
+
//# sourceMappingURL=af-heading.af-logo.af-nav-item.af-navbar.af-text.entry.js.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-DxVtR6vj.js';
|
|
2
|
+
|
|
3
|
+
const afIconButtonCss = ":host{display:inline-block}.icon-button{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;cursor:pointer;transition:all 0.2s ease;border:1px solid transparent;box-sizing:border-box;flex-shrink:0;text-decoration:none;padding:0}.size-large{width:72px;height:72px;padding:24px}.size-large .icon{width:24px;height:24px}.size-medium{width:48px;height:48px;padding:12px}.size-medium .icon{width:24px;height:24px}.size-small{width:36px;height:36px;padding:8px}.size-small .icon{width:20px;height:20px}.icon{display:flex;align-items:center;justify-content:center;flex-shrink:0}.icon ::slotted(svg){width:100%;height:100%}.variant-primary{background:var(--colour-brand-ice, #A6FFFB);border-color:var(--colour-brand-inkwell, #14343B);color:var(--colour-brand-inkwell, #14343B)}.variant-primary:hover:not(.disabled){background:#8FEBE3;transform:translateY(-1px);box-shadow:0 2px 8px rgba(20, 52, 59, 0.15)}.variant-primary:active:not(.disabled){background:#7FE2D4;transform:translateY(0)}.variant-secondary{background:var(--colour-brand-white, #FFFFFF);border-color:var(--colour-brand-inkwell, #14343B);color:var(--colour-brand-inkwell, #14343B)}.variant-secondary:hover:not(.disabled){background:#F6FAF9;transform:translateY(-1px);box-shadow:0 2px 8px rgba(20, 52, 59, 0.15)}.variant-secondary:active:not(.disabled){background:#E8F1EF;transform:translateY(0)}.variant-outline{background:transparent;border-color:var(--colour-brand-inkwell, #14343B);color:var(--colour-brand-inkwell, #14343B)}.variant-outline:hover:not(.disabled){background:rgba(20, 52, 59, 0.04);transform:translateY(-1px)}.variant-outline:active:not(.disabled){background:rgba(20, 52, 59, 0.08);transform:translateY(0)}.variant-ghost{background:transparent;border-color:transparent;color:var(--colour-brand-inkwell, #14343B)}.variant-ghost:hover:not(.disabled){background:rgba(20, 52, 59, 0.04)}.variant-ghost:active:not(.disabled){background:rgba(20, 52, 59, 0.08)}.disabled{opacity:0.4;cursor:not-allowed;pointer-events:none}button.icon-button{background:none;border:none;padding:0;font:inherit;color:inherit;cursor:pointer}button.icon-button.variant-primary{background:var(--colour-brand-ice, #A6FFFB);border:1px solid var(--colour-brand-inkwell, #14343B)}button.icon-button.variant-secondary{background:var(--colour-brand-white, #FFFFFF);border:1px solid var(--colour-brand-inkwell, #14343B)}button.icon-button.variant-outline{background:transparent;border:1px solid var(--colour-brand-inkwell, #14343B)}button.icon-button.variant-ghost{background:transparent;border:1px solid transparent}";
|
|
4
|
+
|
|
5
|
+
const AfIconButton = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
/**
|
|
9
|
+
* The visual variant of the button
|
|
10
|
+
*/
|
|
11
|
+
this.variant = 'primary';
|
|
12
|
+
/**
|
|
13
|
+
* The size of the button
|
|
14
|
+
*/
|
|
15
|
+
this.size = 'medium';
|
|
16
|
+
/**
|
|
17
|
+
* Whether the button is disabled
|
|
18
|
+
*/
|
|
19
|
+
this.disabled = false;
|
|
20
|
+
/**
|
|
21
|
+
* Button type (when not using href)
|
|
22
|
+
*/
|
|
23
|
+
this.type = 'button';
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
const classes = {
|
|
27
|
+
'icon-button': true,
|
|
28
|
+
[`variant-${this.variant}`]: true,
|
|
29
|
+
[`size-${this.size}`]: true,
|
|
30
|
+
'disabled': this.disabled
|
|
31
|
+
};
|
|
32
|
+
const content = (h("span", { class: "icon" }, h("slot", null)));
|
|
33
|
+
if (this.href && !this.disabled) {
|
|
34
|
+
return (h(Host, null, h("a", { href: this.href, class: classes, "aria-label": this.ariaLabel }, content)));
|
|
35
|
+
}
|
|
36
|
+
return (h(Host, null, h("button", { type: this.type, disabled: this.disabled, class: classes, "aria-label": this.ariaLabel }, content)));
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
AfIconButton.style = afIconButtonCss;
|
|
40
|
+
|
|
41
|
+
export { AfIconButton as af_icon_button };
|
|
42
|
+
//# sourceMappingURL=af-icon-button.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"af-icon-button.entry.js","sources":["src/components/af-icon-button/af-icon-button.css?tag=af-icon-button&encapsulation=shadow","src/components/af-icon-button/af-icon-button.tsx"],"sourcesContent":[":host {\n display: inline-block;\n}\n\n.icon-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n cursor: pointer;\n transition: all 0.2s ease;\n border: 1px solid transparent;\n box-sizing: border-box;\n flex-shrink: 0;\n text-decoration: none;\n padding: 0;\n}\n\n/* Size variants */\n.size-large {\n width: 72px;\n height: 72px;\n padding: 24px;\n}\n\n.size-large .icon {\n width: 24px;\n height: 24px;\n}\n\n.size-medium {\n width: 48px;\n height: 48px;\n padding: 12px;\n}\n\n.size-medium .icon {\n width: 24px;\n height: 24px;\n}\n\n.size-small {\n width: 36px;\n height: 36px;\n padding: 8px;\n}\n\n.size-small .icon {\n width: 20px;\n height: 20px;\n}\n\n/* Icon slot */\n.icon {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n}\n\n.icon ::slotted(svg) {\n width: 100%;\n height: 100%;\n}\n\n/* Primary variant (ice) */\n.variant-primary {\n background: var(--colour-brand-ice, #A6FFFB);\n border-color: var(--colour-brand-inkwell, #14343B);\n color: var(--colour-brand-inkwell, #14343B);\n}\n\n.variant-primary:hover:not(.disabled) {\n background: #8FEBE3;\n transform: translateY(-1px);\n box-shadow: 0 2px 8px rgba(20, 52, 59, 0.15);\n}\n\n.variant-primary:active:not(.disabled) {\n background: #7FE2D4;\n transform: translateY(0);\n}\n\n/* Secondary variant (white) */\n.variant-secondary {\n background: var(--colour-brand-white, #FFFFFF);\n border-color: var(--colour-brand-inkwell, #14343B);\n color: var(--colour-brand-inkwell, #14343B);\n}\n\n.variant-secondary:hover:not(.disabled) {\n background: #F6FAF9;\n transform: translateY(-1px);\n box-shadow: 0 2px 8px rgba(20, 52, 59, 0.15);\n}\n\n.variant-secondary:active:not(.disabled) {\n background: #E8F1EF;\n transform: translateY(0);\n}\n\n/* Outline variant */\n.variant-outline {\n background: transparent;\n border-color: var(--colour-brand-inkwell, #14343B);\n color: var(--colour-brand-inkwell, #14343B);\n}\n\n.variant-outline:hover:not(.disabled) {\n background: rgba(20, 52, 59, 0.04);\n transform: translateY(-1px);\n}\n\n.variant-outline:active:not(.disabled) {\n background: rgba(20, 52, 59, 0.08);\n transform: translateY(0);\n}\n\n/* Ghost variant */\n.variant-ghost {\n background: transparent;\n border-color: transparent;\n color: var(--colour-brand-inkwell, #14343B);\n}\n\n.variant-ghost:hover:not(.disabled) {\n background: rgba(20, 52, 59, 0.04);\n}\n\n.variant-ghost:active:not(.disabled) {\n background: rgba(20, 52, 59, 0.08);\n}\n\n/* Disabled state */\n.disabled {\n opacity: 0.4;\n cursor: not-allowed;\n pointer-events: none;\n}\n\n/* Remove default button styles */\nbutton.icon-button {\n background: none;\n border: none;\n padding: 0;\n font: inherit;\n color: inherit;\n cursor: pointer;\n}\n\nbutton.icon-button.variant-primary {\n background: var(--colour-brand-ice, #A6FFFB);\n border: 1px solid var(--colour-brand-inkwell, #14343B);\n}\n\nbutton.icon-button.variant-secondary {\n background: var(--colour-brand-white, #FFFFFF);\n border: 1px solid var(--colour-brand-inkwell, #14343B);\n}\n\nbutton.icon-button.variant-outline {\n background: transparent;\n border: 1px solid var(--colour-brand-inkwell, #14343B);\n}\n\nbutton.icon-button.variant-ghost {\n background: transparent;\n border: 1px solid transparent;\n}\n","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"],"names":[],"mappings":";;AAAA,MAAM,eAAe,GAAG,whFAAwhF;;MCOniF,YAAY,GAAA,MAAA;AALzB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAME;;AAEG;AACK,QAAA,IAAO,CAAA,OAAA,GAAkD,SAAS;AAE1E;;AAEG;AACK,QAAA,IAAI,CAAA,IAAA,GAAiC,QAAQ;AAErD;;AAEG;AACK,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;AAOjC;;AAEG;AACK,QAAA,IAAI,CAAA,IAAA,GAAkC,QAAQ;AAuCvD;IAhCC,MAAM,GAAA;AACJ,QAAA,MAAM,OAAO,GAAG;AACd,YAAA,aAAa,EAAE,IAAI;AACnB,YAAA,CAAC,WAAW,IAAI,CAAC,OAAO,CAAE,CAAA,GAAG,IAAI;AACjC,YAAA,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAE,CAAA,GAAG,IAAI;YAC3B,UAAU,EAAE,IAAI,CAAC;SAClB;QAED,MAAM,OAAO,IACX,CAAM,CAAA,MAAA,EAAA,EAAA,KAAK,EAAC,MAAM,EAAA,EAChB,CAAa,CAAA,MAAA,EAAA,IAAA,CAAA,CACR,CACR;QAED,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;AAC/B,YAAA,QACE,EAAC,IAAI,EAAA,IAAA,EACH,CAAA,CAAA,GAAA,EAAA,EAAG,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAc,YAAA,EAAA,IAAI,CAAC,SAAS,EAAA,EAC3D,OAAO,CACN,CACC;;AAIX,QAAA,QACE,EAAC,IAAI,EAAA,IAAA,EACH,CAAQ,CAAA,QAAA,EAAA,EAAA,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAc,YAAA,EAAA,IAAI,CAAC,SAAS,IACzF,OAAO,CACD,CACJ;;;;;;;"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-DxVtR6vj.js';
|
|
2
|
+
|
|
3
|
+
const afTypographyLockupCss = ":host{display:block}.lockup{display:flex;flex-direction:column;gap:40px}.text-left{align-items:flex-start}.text-center{align-items:center}.text-left .copy,.text-left .heading,.text-left .description{text-align:left}.text-center .copy,.text-center .heading,.text-center .description{text-align:center}.copy{display:flex;flex-direction:column;gap:16px;width:100%}.heading{font-family:var(--typography-primaryfont, 'NeuSans', sans-serif);font-weight:500;color:var(--typography-heading-primary, #14343B);line-height:1;white-space:pre-wrap}.breakpoint-desktop.heading-1 .heading{font-size:56px;letter-spacing:-1.12px}.breakpoint-desktop.heading-2 .heading{font-size:44px;letter-spacing:-0.88px}.breakpoint-desktop.heading-3 .heading{font-size:34px;letter-spacing:-0.68px}.breakpoint-desktop.heading-4 .heading{font-size:24px;letter-spacing:-0.48px;line-height:1.2}.breakpoint-desktop.heading-5 .heading{font-size:20px;letter-spacing:-0.4px;line-height:1.2}.breakpoint-mobile.heading-1 .heading{font-size:38px;letter-spacing:-0.76px}.breakpoint-mobile.heading-2 .heading{font-size:32px;letter-spacing:-0.64px}.breakpoint-mobile.heading-3 .heading{font-size:25px;letter-spacing:-0.5px}.breakpoint-mobile.heading-4 .heading{font-size:20px;letter-spacing:-0.4px;line-height:1.1}.breakpoint-mobile.heading-5 .heading{font-size:18px;letter-spacing:-0.36px;line-height:1.1}.description{font-family:'Helvetica', var(--typography-primaryfont, 'NeuSans', sans-serif), sans-serif;font-size:18px;font-weight:400;line-height:26px;color:var(--typography-body-default, #2B484F);white-space:pre-wrap}.description:empty{display:none}.buttons{display:flex;gap:12px}.buttons:empty{display:none}.button-horizontal .buttons{flex-direction:row;align-items:center}.text-left.button-horizontal{flex-direction:row;align-items:center;gap:16px}.text-left.button-horizontal .copy{flex:1 0 0;max-width:950px}.text-left.button-horizontal .buttons{flex-shrink:0}.button-vertical .buttons{flex-direction:row;align-items:flex-start}.text-center.button-vertical .buttons{align-items:center}.text-center .copy{max-width:840px}::slotted(*){margin:0}";
|
|
4
|
+
|
|
5
|
+
const AfTypographyLockup = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
/**
|
|
9
|
+
* The heading size (1-5, where 1 is largest)
|
|
10
|
+
*/
|
|
11
|
+
this.headingSize = 2;
|
|
12
|
+
/**
|
|
13
|
+
* The breakpoint for responsive typography
|
|
14
|
+
*/
|
|
15
|
+
this.breakpoint = 'desktop';
|
|
16
|
+
/**
|
|
17
|
+
* Text alignment
|
|
18
|
+
*/
|
|
19
|
+
this.textAlignment = 'left';
|
|
20
|
+
/**
|
|
21
|
+
* Button alignment (horizontal or vertical stacking)
|
|
22
|
+
*/
|
|
23
|
+
this.buttonAlignment = 'vertical';
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
const containerClasses = {
|
|
27
|
+
'lockup': true,
|
|
28
|
+
[`text-${this.textAlignment}`]: true,
|
|
29
|
+
[`button-${this.buttonAlignment}`]: true
|
|
30
|
+
};
|
|
31
|
+
const copyClasses = {
|
|
32
|
+
'copy': true,
|
|
33
|
+
[`heading-${this.headingSize}`]: true,
|
|
34
|
+
[`breakpoint-${this.breakpoint}`]: true
|
|
35
|
+
};
|
|
36
|
+
const copyStyle = this.maxWidth ? { maxWidth: `${this.maxWidth}px` } : {};
|
|
37
|
+
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" })))));
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
AfTypographyLockup.style = afTypographyLockupCss;
|
|
41
|
+
|
|
42
|
+
export { AfTypographyLockup as af_typography_lockup };
|
|
43
|
+
//# sourceMappingURL=af-typography-lockup.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"af-typography-lockup.entry.js","sources":["src/components/af-typography-lockup/af-typography-lockup.css?tag=af-typography-lockup&encapsulation=shadow","src/components/af-typography-lockup/af-typography-lockup.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.lockup {\n display: flex;\n flex-direction: column;\n gap: 40px;\n}\n\n/* Text alignment */\n.text-left {\n align-items: flex-start;\n}\n\n.text-center {\n align-items: center;\n}\n\n.text-left .copy,\n.text-left .heading,\n.text-left .description {\n text-align: left;\n}\n\n.text-center .copy,\n.text-center .heading,\n.text-center .description {\n text-align: center;\n}\n\n/* Copy section */\n.copy {\n display: flex;\n flex-direction: column;\n gap: 16px;\n width: 100%;\n}\n\n/* Heading styles */\n.heading {\n font-family: var(--typography-primaryfont, 'NeuSans', sans-serif);\n font-weight: 500;\n color: var(--typography-heading-primary, #14343B);\n line-height: 1;\n white-space: pre-wrap;\n}\n\n/* Desktop heading sizes */\n.breakpoint-desktop.heading-1 .heading {\n font-size: 56px;\n letter-spacing: -1.12px;\n}\n\n.breakpoint-desktop.heading-2 .heading {\n font-size: 44px;\n letter-spacing: -0.88px;\n}\n\n.breakpoint-desktop.heading-3 .heading {\n font-size: 34px;\n letter-spacing: -0.68px;\n}\n\n.breakpoint-desktop.heading-4 .heading {\n font-size: 24px;\n letter-spacing: -0.48px;\n line-height: 1.2;\n}\n\n.breakpoint-desktop.heading-5 .heading {\n font-size: 20px;\n letter-spacing: -0.4px;\n line-height: 1.2;\n}\n\n/* Mobile heading sizes */\n.breakpoint-mobile.heading-1 .heading {\n font-size: 38px;\n letter-spacing: -0.76px;\n}\n\n.breakpoint-mobile.heading-2 .heading {\n font-size: 32px;\n letter-spacing: -0.64px;\n}\n\n.breakpoint-mobile.heading-3 .heading {\n font-size: 25px;\n letter-spacing: -0.5px;\n}\n\n.breakpoint-mobile.heading-4 .heading {\n font-size: 20px;\n letter-spacing: -0.4px;\n line-height: 1.1;\n}\n\n.breakpoint-mobile.heading-5 .heading {\n font-size: 18px;\n letter-spacing: -0.36px;\n line-height: 1.1;\n}\n\n/* Description/body text */\n.description {\n font-family: 'Helvetica', var(--typography-primaryfont, 'NeuSans', sans-serif), sans-serif;\n font-size: 18px;\n font-weight: 400;\n line-height: 26px;\n color: var(--typography-body-default, #2B484F);\n white-space: pre-wrap;\n}\n\n.description:empty {\n display: none;\n}\n\n/* Buttons section */\n.buttons {\n display: flex;\n gap: 12px;\n}\n\n.buttons:empty {\n display: none;\n}\n\n/* Button alignment - horizontal */\n.button-horizontal .buttons {\n flex-direction: row;\n align-items: center;\n}\n\n.text-left.button-horizontal {\n flex-direction: row;\n align-items: center;\n gap: 16px;\n}\n\n.text-left.button-horizontal .copy {\n flex: 1 0 0;\n max-width: 950px;\n}\n\n.text-left.button-horizontal .buttons {\n flex-shrink: 0;\n}\n\n/* Button alignment - vertical */\n.button-vertical .buttons {\n flex-direction: row;\n align-items: flex-start;\n}\n\n.text-center.button-vertical .buttons {\n align-items: center;\n}\n\n/* Max width constraints for centered layouts */\n.text-center .copy {\n max-width: 840px;\n}\n\n/* Slot content styling */\n::slotted(*) {\n margin: 0;\n}\n","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"],"names":[],"mappings":";;AAAA,MAAM,qBAAqB,GAAG,8jEAA8jE;;MCO/kE,kBAAkB,GAAA,MAAA;AAL/B,IAAA,WAAA,CAAA,OAAA,EAAA;;AAME;;AAEG;AACK,QAAA,IAAW,CAAA,WAAA,GAAsB,CAAC;AAE1C;;AAEG;AACK,QAAA,IAAU,CAAA,UAAA,GAAyB,SAAS;AAEpD;;AAEG;AACK,QAAA,IAAa,CAAA,aAAA,GAAsB,MAAM;AAEjD;;AAEG;AACK,QAAA,IAAe,CAAA,eAAA,GAA8B,UAAU;AAwChE;IAjCC,MAAM,GAAA;AACJ,QAAA,MAAM,gBAAgB,GAAG;AACvB,YAAA,QAAQ,EAAE,IAAI;AACd,YAAA,CAAC,QAAQ,IAAI,CAAC,aAAa,CAAE,CAAA,GAAG,IAAI;AACpC,YAAA,CAAC,UAAU,IAAI,CAAC,eAAe,CAAE,CAAA,GAAG;SACrC;AAED,QAAA,MAAM,WAAW,GAAG;AAClB,YAAA,MAAM,EAAE,IAAI;AACZ,YAAA,CAAC,WAAW,IAAI,CAAC,WAAW,CAAE,CAAA,GAAG,IAAI;AACrC,YAAA,CAAC,cAAc,IAAI,CAAC,UAAU,CAAE,CAAA,GAAG;SACpC;QAED,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,GAAG,EAAE,QAAQ,EAAE,CAAG,EAAA,IAAI,CAAC,QAAQ,CAAA,EAAA,CAAI,EAAE,GAAG,EAAE;AAEzE,QAAA,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACH,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAE,gBAAgB,EAAA,EAC1B,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAA,EACvC,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,SAAS,EAAA,EAClB,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAa,CACT,EACN,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,aAAa,EAAA,EACtB,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,aAAa,EAAA,CAAQ,CAC5B,CACF,EACN,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,SAAS,EAAA,EAClB,CAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,SAAS,EAAA,CAAQ,CACxB,CACF,CACD;;;;;;;"}
|
package/dist/esm/affinda.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-DxVtR6vj.js';
|
|
2
|
+
export { s as setNonce } from './index-DxVtR6vj.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Patch Browser v4.38.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -16,6 +16,6 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["af-
|
|
19
|
+
return bootstrapLazy([["af-heading_5",[[257,"af-heading",{"level":[1],"align":[1]}],[257,"af-logo"],[257,"af-nav-item",{"hierarchy":[1],"variant":[1],"href":[1],"active":[4]}],[257,"af-navbar"],[257,"af-text",{"variant":[1],"align":[1],"as":[1]}]]],["af-aspect-ratio",[[257,"af-aspect-ratio",{"ratio":[1]}]]],["af-button",[[257,"af-button",{"variant":[1],"size":[1],"disabled":[4],"href":[1],"type":[1]}]]],["af-button-group",[[257,"af-button-group",{"direction":[1],"gap":[1]}]]],["af-color-swatch",[[257,"af-color-swatch",{"color":[1],"name":[1],"size":[1]}]]],["af-container",[[257,"af-container",{"maxWidth":[1,"max-width"]}]]],["af-icon-button",[[257,"af-icon-button",{"variant":[1],"size":[1],"disabled":[4],"href":[1],"type":[1],"ariaLabel":[1,"aria-label"]}]]],["af-typography-lockup",[[257,"af-typography-lockup",{"headingSize":[2,"heading-size"],"breakpoint":[1],"textAlignment":[1,"text-alignment"],"buttonAlignment":[1,"button-alignment"],"maxWidth":[2,"max-width"]}]]]], options);
|
|
20
20
|
});
|
|
21
21
|
//# sourceMappingURL=affinda.js.map
|
|
@@ -2,7 +2,7 @@ const NAMESPACE = 'affinda';
|
|
|
2
2
|
const BUILD = /* affinda */ { hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: false, updatable: true};
|
|
3
3
|
|
|
4
4
|
const globalScripts = () => {};
|
|
5
|
-
const globalStyles = ":root{--af-color-brand-primary-500:#7c3aed;--af-color-brand-primary-600:#6d28d9;--af-color-fg-default:#120f1f;--af-color-fg-muted:#5b4b8a;--af-color-fg-inverse:#f7f5ff;--af-color-bg-surface:#ffffff;--af-color-bg-subtle:#f5f3ff;--af-color-bg-inverse:#2f165e;--af-radius-sm:6px;--af-radius-md:12px;--af-radius-pill:999px;--af-space-1:4px;--af-space-2:8px;--af-space-3:12px;--af-space-4:16px;--af-font-family-sans:'Inter', 'Segoe UI', system-ui, sans-serif;--af-font-weight-regular:400;--af-font-weight-semibold:600;--af-size-font-sm:0.875rem;--af-size-font-md:1rem;--af-size-font-lg:1.125rem}[data-theme=\"dark\"]{--af-color-fg-default:#f7f5ff;--af-color-fg-muted:#dcd1ff;--af-color-fg-inverse:#120f1f;--af-color-bg-surface:#1b1530;--af-color-bg-subtle:#241943;--af-color-bg-inverse:#f7f5ff}
|
|
5
|
+
const globalStyles = ":root{--af-color-brand-primary-500:#7c3aed;--af-color-brand-primary-600:#6d28d9;--af-color-fg-default:#120f1f;--af-color-fg-muted:#5b4b8a;--af-color-fg-inverse:#f7f5ff;--af-color-bg-surface:#ffffff;--af-color-bg-subtle:#f5f3ff;--af-color-bg-inverse:#2f165e;--af-radius-sm:6px;--af-radius-md:12px;--af-radius-pill:999px;--af-space-1:4px;--af-space-2:8px;--af-space-3:12px;--af-space-4:16px;--af-font-family-sans:'Inter', 'Segoe UI', system-ui, sans-serif;--af-font-weight-regular:400;--af-font-weight-semibold:600;--af-size-font-sm:0.875rem;--af-size-font-md:1rem;--af-size-font-lg:1.125rem}[data-theme=\"dark\"]{--af-color-fg-default:#f7f5ff;--af-color-fg-muted:#dcd1ff;--af-color-fg-inverse:#120f1f;--af-color-bg-surface:#1b1530;--af-color-bg-subtle:#241943;--af-color-bg-inverse:#f7f5ff}";
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
8
|
Stencil Client Platform v4.38.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -13,6 +13,10 @@ var __export = (target, all) => {
|
|
|
13
13
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
+
// src/utils/constants.ts
|
|
17
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
18
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
19
|
+
|
|
16
20
|
// src/client/client-host-ref.ts
|
|
17
21
|
var getHostRef = (ref) => {
|
|
18
22
|
if (ref.__stencil__getHostRef) {
|
|
@@ -464,6 +468,9 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
|
464
468
|
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
465
469
|
}
|
|
466
470
|
}
|
|
471
|
+
if (propType & 2 /* Number */) {
|
|
472
|
+
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
473
|
+
}
|
|
467
474
|
if (propType & 1 /* String */) {
|
|
468
475
|
return String(propValue);
|
|
469
476
|
}
|
|
@@ -513,7 +520,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
513
520
|
}
|
|
514
521
|
} else if (memberName === "key") ; else {
|
|
515
522
|
const isComplex = isComplexType(newValue);
|
|
516
|
-
if ((isProp || isComplex && newValue !== null) &&
|
|
523
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
517
524
|
try {
|
|
518
525
|
if (!elm.tagName.includes("-")) {
|
|
519
526
|
const n = newValue == null ? "" : newValue;
|
|
@@ -604,14 +611,21 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
604
611
|
if (newVNode2.$text$ !== null) {
|
|
605
612
|
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
606
613
|
} else {
|
|
614
|
+
if (!isSvgMode) {
|
|
615
|
+
isSvgMode = newVNode2.$tag$ === "svg";
|
|
616
|
+
}
|
|
607
617
|
if (!win.document) {
|
|
608
618
|
throw new Error(
|
|
609
619
|
"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."
|
|
610
620
|
);
|
|
611
621
|
}
|
|
612
|
-
elm = newVNode2.$elm$ = win.document.
|
|
622
|
+
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
623
|
+
isSvgMode ? SVG_NS : HTML_NS,
|
|
613
624
|
newVNode2.$tag$
|
|
614
|
-
);
|
|
625
|
+
) ;
|
|
626
|
+
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
627
|
+
isSvgMode = false;
|
|
628
|
+
}
|
|
615
629
|
{
|
|
616
630
|
updateElement(null, newVNode2, isSvgMode);
|
|
617
631
|
}
|
|
@@ -623,6 +637,13 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
623
637
|
}
|
|
624
638
|
}
|
|
625
639
|
}
|
|
640
|
+
{
|
|
641
|
+
if (newVNode2.$tag$ === "svg") {
|
|
642
|
+
isSvgMode = false;
|
|
643
|
+
} else if (elm.tagName === "foreignObject") {
|
|
644
|
+
isSvgMode = true;
|
|
645
|
+
}
|
|
646
|
+
}
|
|
626
647
|
}
|
|
627
648
|
elm["s-hn"] = hostTagName;
|
|
628
649
|
return elm;
|
|
@@ -754,8 +775,12 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
754
775
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
755
776
|
const oldChildren = oldVNode.$children$;
|
|
756
777
|
const newChildren = newVNode2.$children$;
|
|
778
|
+
const tag = newVNode2.$tag$;
|
|
757
779
|
const text = newVNode2.$text$;
|
|
758
780
|
if (text === null) {
|
|
781
|
+
{
|
|
782
|
+
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
783
|
+
}
|
|
759
784
|
{
|
|
760
785
|
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
761
786
|
}
|
|
@@ -772,6 +797,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
772
797
|
) {
|
|
773
798
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
774
799
|
} else ;
|
|
800
|
+
if (isSvgMode && tag === "svg") {
|
|
801
|
+
isSvgMode = false;
|
|
802
|
+
}
|
|
775
803
|
} else if (oldVNode.$text$ !== text) {
|
|
776
804
|
elm.data = text;
|
|
777
805
|
}
|
|
@@ -1403,6 +1431,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1403
1431
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
1404
1432
|
|
|
1405
1433
|
export { Host as H, bootstrapLazy as b, globalScripts as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
|
1406
|
-
//# sourceMappingURL=index-
|
|
1434
|
+
//# sourceMappingURL=index-DxVtR6vj.js.map
|
|
1407
1435
|
|
|
1408
|
-
//# sourceMappingURL=index-
|
|
1436
|
+
//# sourceMappingURL=index-DxVtR6vj.js.map
|