@affinda/wc 0.0.1 → 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-aspect-ratio.entry.esm.js.map +1 -0
- 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-color-swatch.entry.esm.js.map +1 -0
- package/dist/affinda/af-container.entry.esm.js.map +1 -0
- package/dist/affinda/af-heading.af-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-8d3b4917.entry.js +2 -0
- package/dist/affinda/p-8d3b4917.entry.js.map +1 -0
- package/dist/affinda/p-9d0e6ed1.entry.js +2 -0
- package/dist/affinda/p-9d0e6ed1.entry.js.map +1 -0
- 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-cbb06a14.entry.js +2 -0
- package/dist/affinda/p-cbb06a14.entry.js.map +1 -0
- 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 +83 -0
- package/dist/cjs/af-aspect-ratio.entry.cjs.js.map +1 -0
- 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 +23 -0
- package/dist/cjs/af-color-swatch.entry.cjs.js.map +1 -0
- package/dist/cjs/af-container.cjs.entry.js +26 -0
- package/dist/cjs/af-container.entry.cjs.js.map +1 -0
- package/dist/cjs/af-heading.af-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-5BGpYleS.js → index-E2jkaTPt.js} +92 -61
- package/dist/cjs/index-E2jkaTPt.js.map +1 -0
- package/dist/cjs/index.cjs.js +24 -136
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +10 -3
- package/dist/collection/components/af-aspect-ratio/af-aspect-ratio.css +17 -0
- package/dist/collection/components/af-aspect-ratio/af-aspect-ratio.js +117 -0
- package/dist/collection/components/af-aspect-ratio/af-aspect-ratio.js.map +1 -0
- package/dist/collection/components/af-button/af-button.css +151 -42
- package/dist/collection/components/af-button/af-button.js +62 -57
- package/dist/collection/components/af-button/af-button.js.map +1 -1
- 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-color-swatch/af-color-swatch.css +42 -0
- package/dist/collection/components/af-color-swatch/af-color-swatch.js +88 -0
- package/dist/collection/components/af-color-swatch/af-color-swatch.js.map +1 -0
- package/dist/collection/components/af-container/af-container.css +76 -0
- package/dist/collection/components/af-container/af-container.js +57 -0
- package/dist/collection/components/af-container/af-container.js.map +1 -0
- package/dist/collection/components/af-heading/af-heading.css +99 -0
- package/dist/collection/components/af-heading/af-heading.js +86 -0
- package/dist/collection/components/af-heading/af-heading.js.map +1 -0
- package/dist/collection/components/af-icon-button/af-icon-button.css +140 -41
- package/dist/collection/components/af-icon-button/af-icon-button.js +81 -57
- package/dist/collection/components/af-icon-button/af-icon-button.js.map +1 -1
- 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 +146 -0
- package/dist/collection/components/af-nav-item/af-nav-item.js +134 -0
- package/dist/collection/components/af-nav-item/af-nav-item.js.map +1 -0
- package/dist/collection/components/af-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-text/af-text.css +61 -0
- package/dist/collection/components/af-text/af-text.js +96 -0
- package/dist/collection/components/af-text/af-text.js.map +1 -0
- package/dist/collection/components/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 +10 -3
- package/dist/collection/components.js.map +1 -1
- package/dist/components/af-aspect-ratio.d.ts +11 -0
- package/dist/components/af-aspect-ratio.js +9 -0
- package/dist/components/af-aspect-ratio.js.map +1 -0
- 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.js +1 -1
- package/dist/components/af-color-swatch.d.ts +11 -0
- package/dist/components/af-color-swatch.js +9 -0
- package/dist/components/af-color-swatch.js.map +1 -0
- package/dist/components/af-container.d.ts +11 -0
- package/dist/components/af-container.js +9 -0
- package/dist/components/af-container.js.map +1 -0
- package/dist/components/af-heading.d.ts +11 -0
- package/dist/components/af-heading.js +9 -0
- package/dist/components/af-heading.js.map +1 -0
- package/dist/components/af-icon-button.js +1 -1
- package/dist/components/{af-card.d.ts → af-logo.d.ts} +4 -4
- package/dist/components/af-logo.js +9 -0
- package/dist/components/af-logo.js.map +1 -0
- package/dist/components/af-nav-item.d.ts +11 -0
- package/dist/components/af-nav-item.js +9 -0
- package/dist/components/af-nav-item.js.map +1 -0
- package/dist/components/{af-badge.d.ts → af-navbar.d.ts} +4 -4
- package/dist/components/af-navbar.js +9 -0
- package/dist/components/af-navbar.js.map +1 -0
- package/dist/components/{af-input.d.ts → af-text.d.ts} +4 -4
- package/dist/components/af-text.js +9 -0
- package/dist/components/af-text.js.map +1 -0
- package/dist/components/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 -6
- 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-BJDmHNDi.js +59 -0
- package/dist/components/p-BJDmHNDi.js.map +1 -0
- 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-CT_9_xN3.js +50 -0
- package/dist/components/p-CT_9_xN3.js.map +1 -0
- package/dist/components/{p-DOtgsZRB.js → p-CzaQ1fCu.js} +92 -65
- package/dist/components/p-CzaQ1fCu.js.map +1 -0
- package/dist/components/p-DG7Mtz0G.js +66 -0
- 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-DfIqdEs7.js +45 -0
- package/dist/components/p-DfIqdEs7.js.map +1 -0
- package/dist/components/p-DqIqR4VU.js +102 -0
- package/dist/components/p-DqIqR4VU.js.map +1 -0
- package/dist/components/p-LEksuu7O.js +44 -0
- package/dist/components/p-LEksuu7O.js.map +1 -0
- 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 +81 -0
- package/dist/esm/af-aspect-ratio.entry.js.map +1 -0
- 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 +21 -0
- package/dist/esm/af-color-swatch.entry.js.map +1 -0
- package/dist/esm/af-container.entry.js +24 -0
- package/dist/esm/af-container.entry.js.map +1 -0
- package/dist/esm/af-heading.af-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-o0tfWqnY.js → index-DxVtR6vj.js} +92 -61
- package/dist/esm/index-DxVtR6vj.js.map +1 -0
- package/dist/esm/index.js +9 -132
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/af-aspect-ratio/af-aspect-ratio.d.ts +18 -0
- package/dist/types/components/af-button/af-button.d.ts +19 -11
- package/dist/types/components/af-button-group/af-button-group.d.ts +11 -0
- package/dist/types/components/af-color-swatch/af-color-swatch.d.ts +9 -0
- package/dist/types/components/af-container/af-container.d.ts +15 -0
- package/dist/types/components/af-heading/af-heading.d.ts +8 -0
- package/dist/types/components/af-icon-button/af-icon-button.d.ts +23 -11
- package/dist/types/components/af-logo/af-logo.d.ts +6 -0
- package/dist/types/components/af-nav-item/af-nav-item.d.ts +27 -0
- package/dist/types/components/af-navbar/af-navbar.d.ts +7 -0
- package/dist/types/components/af-text/af-text.d.ts +9 -0
- package/dist/types/components/af-typography-lockup/af-typography-lockup.d.ts +23 -0
- package/dist/types/components.d.ts +416 -163
- package/package.json +13 -13
- package/dist/affinda/af-badge.af-button.af-card.af-icon-button.af-input.entry.esm.js.map +0 -1
- package/dist/affinda/p-bca10492.entry.js +0 -2
- package/dist/affinda/p-bca10492.entry.js.map +0 -1
- package/dist/affinda/p-o0tfWqnY.js +0 -3
- package/dist/affinda/p-o0tfWqnY.js.map +0 -1
- package/dist/cjs/af-badge.af-button.af-card.af-icon-button.af-input.entry.cjs.js.map +0 -1
- package/dist/cjs/af-badge_5.cjs.entry.js +0 -13
- package/dist/cjs/index-5BGpYleS.js.map +0 -1
- package/dist/collection/components/af-badge/af-badge.css +0 -29
- package/dist/collection/components/af-badge/af-badge.js +0 -47
- package/dist/collection/components/af-badge/af-badge.js.map +0 -1
- package/dist/collection/components/af-card/af-card.css +0 -69
- package/dist/collection/components/af-card/af-card.js +0 -70
- package/dist/collection/components/af-card/af-card.js.map +0 -1
- package/dist/collection/components/af-input/af-input.css +0 -57
- package/dist/collection/components/af-input/af-input.js +0 -193
- package/dist/collection/components/af-input/af-input.js.map +0 -1
- package/dist/components/af-badge.js +0 -9
- package/dist/components/af-badge.js.map +0 -1
- package/dist/components/af-card.js +0 -9
- package/dist/components/af-card.js.map +0 -1
- package/dist/components/af-input.js +0 -9
- package/dist/components/af-input.js.map +0 -1
- package/dist/components/p-B7I93sz2.js +0 -39
- package/dist/components/p-B7I93sz2.js.map +0 -1
- package/dist/components/p-CZd1ieht.js +0 -62
- package/dist/components/p-CZd1ieht.js.map +0 -1
- package/dist/components/p-D6PwARU0.js +0 -59
- package/dist/components/p-D6PwARU0.js.map +0 -1
- package/dist/components/p-DOtgsZRB.js.map +0 -1
- package/dist/components/p-DZIXhvI0.js +0 -44
- package/dist/components/p-DZIXhvI0.js.map +0 -1
- package/dist/components/p-zIKPa48S.js +0 -62
- package/dist/components/p-zIKPa48S.js.map +0 -1
- package/dist/esm/af-badge.af-button.af-card.af-icon-button.af-input.entry.js.map +0 -1
- package/dist/esm/af-badge_5.entry.js +0 -3
- package/dist/esm/index-o0tfWqnY.js.map +0 -1
- package/dist/types/components/af-badge/af-badge.d.ts +0 -5
- package/dist/types/components/af-card/af-card.d.ts +0 -7
- package/dist/types/components/af-input/af-input.d.ts +0 -24
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-E2jkaTPt.js');
|
|
4
|
+
|
|
5
|
+
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}";
|
|
6
|
+
|
|
7
|
+
const AfTypographyLockup = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
/**
|
|
11
|
+
* The heading size (1-5, where 1 is largest)
|
|
12
|
+
*/
|
|
13
|
+
this.headingSize = 2;
|
|
14
|
+
/**
|
|
15
|
+
* The breakpoint for responsive typography
|
|
16
|
+
*/
|
|
17
|
+
this.breakpoint = 'desktop';
|
|
18
|
+
/**
|
|
19
|
+
* Text alignment
|
|
20
|
+
*/
|
|
21
|
+
this.textAlignment = 'left';
|
|
22
|
+
/**
|
|
23
|
+
* Button alignment (horizontal or vertical stacking)
|
|
24
|
+
*/
|
|
25
|
+
this.buttonAlignment = 'vertical';
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
const containerClasses = {
|
|
29
|
+
'lockup': true,
|
|
30
|
+
[`text-${this.textAlignment}`]: true,
|
|
31
|
+
[`button-${this.buttonAlignment}`]: true
|
|
32
|
+
};
|
|
33
|
+
const copyClasses = {
|
|
34
|
+
'copy': true,
|
|
35
|
+
[`heading-${this.headingSize}`]: true,
|
|
36
|
+
[`breakpoint-${this.breakpoint}`]: true
|
|
37
|
+
};
|
|
38
|
+
const copyStyle = this.maxWidth ? { maxWidth: `${this.maxWidth}px` } : {};
|
|
39
|
+
return (index.h(index.Host, { key: '7a748e23cc9262e4cf73abacf51951545228344c' }, index.h("div", { key: '443df8d7086ae8daf88f3827551219138dab43bb', class: containerClasses }, index.h("div", { key: 'efbf2467f36e2888bd4892524fb3d09b21b2ddfd', class: copyClasses, style: copyStyle }, index.h("div", { key: 'eb206a7d2e5c364a96295b11f83a87784c342ced', class: "heading" }, index.h("slot", { key: '360e15b14fbeeffd01fc55b2e0552bad530a337f' })), index.h("div", { key: '3b76ff5527eb52c382554f470991a05cbaf8e1e3', class: "description" }, index.h("slot", { key: '4e9f291edeac066abf2d1e416b846b9d1cbee2dc', name: "description" }))), index.h("div", { key: 'ff84e9ce823763b7570109d02b10d3039adefe61', class: "buttons" }, index.h("slot", { key: '36d0cc47a688c23c55d449a8f8e37b6f4be93d23', name: "buttons" })))));
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
AfTypographyLockup.style = afTypographyLockupCss;
|
|
43
|
+
|
|
44
|
+
exports.af_typography_lockup = AfTypographyLockup;
|
|
45
|
+
//# sourceMappingURL=af-typography-lockup.entry.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"af-typography-lockup.entry.cjs.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":["h","Host"],"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,QACEA,QAACC,UAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACHD,OAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAE,gBAAgB,EAAA,EAC1BA,OAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAA,EACvCA,OAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,SAAS,EAAA,EAClBA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAa,CACT,EACNA,OAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,aAAa,EAAA,EACtBA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,aAAa,EAAA,CAAQ,CAC5B,CACF,EACNA,OAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,SAAS,EAAA,EAClBA,OAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,SAAS,EAAA,CAAQ,CACxB,CACF,CACD;;;;;;;"}
|
package/dist/cjs/affinda.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-E2jkaTPt.js');
|
|
4
4
|
|
|
5
5
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
6
6
|
/*
|
|
@@ -18,7 +18,7 @@ var patchBrowser = () => {
|
|
|
18
18
|
|
|
19
19
|
patchBrowser().then(async (options) => {
|
|
20
20
|
await index.globalScripts();
|
|
21
|
-
return index.bootstrapLazy([["af-
|
|
21
|
+
return index.bootstrapLazy([["af-heading_5.cjs",[[257,"af-heading",{"level":[1],"align":[1]}],[257,"af-logo"],[257,"af-nav-item",{"hierarchy":[1],"variant":[1],"href":[1],"active":[4]}],[257,"af-navbar"],[257,"af-text",{"variant":[1],"align":[1],"as":[1]}]]],["af-aspect-ratio.cjs",[[257,"af-aspect-ratio",{"ratio":[1]}]]],["af-button.cjs",[[257,"af-button",{"variant":[1],"size":[1],"disabled":[4],"href":[1],"type":[1]}]]],["af-button-group.cjs",[[257,"af-button-group",{"direction":[1],"gap":[1]}]]],["af-color-swatch.cjs",[[257,"af-color-swatch",{"color":[1],"name":[1],"size":[1]}]]],["af-container.cjs",[[257,"af-container",{"maxWidth":[1,"max-width"]}]]],["af-icon-button.cjs",[[257,"af-icon-button",{"variant":[1],"size":[1],"disabled":[4],"href":[1],"type":[1],"ariaLabel":[1,"aria-label"]}]]],["af-typography-lockup.cjs",[[257,"af-typography-lockup",{"headingSize":[2,"heading-size"],"breakpoint":[1],"textAlignment":[1,"text-alignment"],"buttonAlignment":[1,"button-alignment"],"maxWidth":[2,"max-width"]}]]]], options);
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
exports.setNonce = index.setNonce;
|
|
@@ -4,7 +4,7 @@ const NAMESPACE = 'affinda';
|
|
|
4
4
|
const BUILD = /* affinda */ { hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: false, updatable: true};
|
|
5
5
|
|
|
6
6
|
const globalScripts = () => {};
|
|
7
|
-
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}
|
|
7
|
+
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}";
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
10
|
Stencil Client Platform v4.38.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -15,6 +15,10 @@ var __export = (target, all) => {
|
|
|
15
15
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
+
// src/utils/constants.ts
|
|
19
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
20
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
21
|
+
|
|
18
22
|
// src/client/client-host-ref.ts
|
|
19
23
|
var getHostRef = (ref) => {
|
|
20
24
|
if (ref.__stencil__getHostRef) {
|
|
@@ -382,6 +386,13 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
382
386
|
}
|
|
383
387
|
}
|
|
384
388
|
}
|
|
389
|
+
if (typeof nodeName === "function") {
|
|
390
|
+
return nodeName(
|
|
391
|
+
vnodeData === null ? {} : vnodeData,
|
|
392
|
+
vNodeChildren,
|
|
393
|
+
vdomFnUtils
|
|
394
|
+
);
|
|
395
|
+
}
|
|
385
396
|
const vnode = newVNode(nodeName, null);
|
|
386
397
|
vnode.$attrs$ = vnodeData;
|
|
387
398
|
if (vNodeChildren.length > 0) {
|
|
@@ -410,6 +421,36 @@ var newVNode = (tag, text) => {
|
|
|
410
421
|
};
|
|
411
422
|
var Host = {};
|
|
412
423
|
var isHost = (node) => node && node.$tag$ === Host;
|
|
424
|
+
var vdomFnUtils = {
|
|
425
|
+
forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
|
|
426
|
+
map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
|
|
427
|
+
};
|
|
428
|
+
var convertToPublic = (node) => ({
|
|
429
|
+
vattrs: node.$attrs$,
|
|
430
|
+
vchildren: node.$children$,
|
|
431
|
+
vkey: node.$key$,
|
|
432
|
+
vname: node.$name$,
|
|
433
|
+
vtag: node.$tag$,
|
|
434
|
+
vtext: node.$text$
|
|
435
|
+
});
|
|
436
|
+
var convertToPrivate = (node) => {
|
|
437
|
+
if (typeof node.vtag === "function") {
|
|
438
|
+
const vnodeData = { ...node.vattrs };
|
|
439
|
+
if (node.vkey) {
|
|
440
|
+
vnodeData.key = node.vkey;
|
|
441
|
+
}
|
|
442
|
+
if (node.vname) {
|
|
443
|
+
vnodeData.name = node.vname;
|
|
444
|
+
}
|
|
445
|
+
return h(node.vtag, vnodeData, ...node.vchildren || []);
|
|
446
|
+
}
|
|
447
|
+
const vnode = newVNode(node.vtag, node.vtext);
|
|
448
|
+
vnode.$attrs$ = node.vattrs;
|
|
449
|
+
vnode.$children$ = node.vchildren;
|
|
450
|
+
vnode.$key$ = node.vkey;
|
|
451
|
+
vnode.$name$ = node.vname;
|
|
452
|
+
return vnode;
|
|
453
|
+
};
|
|
413
454
|
var createSupportsRuleRe = (selector) => {
|
|
414
455
|
const safeSelector2 = escapeRegExpSpecialCharacters(selector);
|
|
415
456
|
return new RegExp(
|
|
@@ -429,6 +470,9 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
|
429
470
|
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
430
471
|
}
|
|
431
472
|
}
|
|
473
|
+
if (propType & 2 /* Number */) {
|
|
474
|
+
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
475
|
+
}
|
|
432
476
|
if (propType & 1 /* String */) {
|
|
433
477
|
return String(propValue);
|
|
434
478
|
}
|
|
@@ -436,25 +480,6 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
|
436
480
|
}
|
|
437
481
|
return propValue;
|
|
438
482
|
};
|
|
439
|
-
var getElement = (ref) => {
|
|
440
|
-
var _a;
|
|
441
|
-
return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
|
|
442
|
-
};
|
|
443
|
-
|
|
444
|
-
// src/runtime/event-emitter.ts
|
|
445
|
-
var createEvent = (ref, name, flags) => {
|
|
446
|
-
const elm = getElement(ref);
|
|
447
|
-
return {
|
|
448
|
-
emit: (detail) => {
|
|
449
|
-
return emitEvent(elm, name, {
|
|
450
|
-
bubbles: true,
|
|
451
|
-
composed: true,
|
|
452
|
-
cancelable: true,
|
|
453
|
-
detail
|
|
454
|
-
});
|
|
455
|
-
}
|
|
456
|
-
};
|
|
457
|
-
};
|
|
458
483
|
var emitEvent = (elm, name, opts) => {
|
|
459
484
|
const ev = plt.ce(name, opts);
|
|
460
485
|
elm.dispatchEvent(ev);
|
|
@@ -465,7 +490,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
465
490
|
return;
|
|
466
491
|
}
|
|
467
492
|
let isProp = isMemberInElement(elm, memberName);
|
|
468
|
-
|
|
493
|
+
memberName.toLowerCase();
|
|
469
494
|
if (memberName === "class") {
|
|
470
495
|
const classList = elm.classList;
|
|
471
496
|
const oldClasses = parseClassList(oldValue);
|
|
@@ -474,27 +499,30 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
474
499
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
475
500
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
476
501
|
}
|
|
477
|
-
} else if (memberName === "
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
488
|
-
if (oldValue) {
|
|
489
|
-
plt.rel(elm, memberName, oldValue, capture);
|
|
502
|
+
} else if (memberName === "style") {
|
|
503
|
+
{
|
|
504
|
+
for (const prop in oldValue) {
|
|
505
|
+
if (!newValue || newValue[prop] == null) {
|
|
506
|
+
if (prop.includes("-")) {
|
|
507
|
+
elm.style.removeProperty(prop);
|
|
508
|
+
} else {
|
|
509
|
+
elm.style[prop] = "";
|
|
510
|
+
}
|
|
511
|
+
}
|
|
490
512
|
}
|
|
491
|
-
|
|
492
|
-
|
|
513
|
+
}
|
|
514
|
+
for (const prop in newValue) {
|
|
515
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
516
|
+
if (prop.includes("-")) {
|
|
517
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
518
|
+
} else {
|
|
519
|
+
elm.style[prop] = newValue[prop];
|
|
520
|
+
}
|
|
493
521
|
}
|
|
494
522
|
}
|
|
495
|
-
} else {
|
|
523
|
+
} else if (memberName === "key") ; else {
|
|
496
524
|
const isComplex = isComplexType(newValue);
|
|
497
|
-
if ((isProp || isComplex && newValue !== null) &&
|
|
525
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
498
526
|
try {
|
|
499
527
|
if (!elm.tagName.includes("-")) {
|
|
500
528
|
const n = newValue == null ? "" : newValue;
|
|
@@ -537,8 +565,6 @@ var parseClassList = (value) => {
|
|
|
537
565
|
}
|
|
538
566
|
return value.split(parseClassListRegex);
|
|
539
567
|
};
|
|
540
|
-
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
541
|
-
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
542
568
|
|
|
543
569
|
// src/runtime/vdom/update-element.ts
|
|
544
570
|
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
@@ -587,14 +613,21 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
587
613
|
if (newVNode2.$text$ !== null) {
|
|
588
614
|
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
589
615
|
} else {
|
|
616
|
+
if (!isSvgMode) {
|
|
617
|
+
isSvgMode = newVNode2.$tag$ === "svg";
|
|
618
|
+
}
|
|
590
619
|
if (!win.document) {
|
|
591
620
|
throw new Error(
|
|
592
621
|
"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."
|
|
593
622
|
);
|
|
594
623
|
}
|
|
595
|
-
elm = newVNode2.$elm$ = win.document.
|
|
624
|
+
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
625
|
+
isSvgMode ? SVG_NS : HTML_NS,
|
|
596
626
|
newVNode2.$tag$
|
|
597
|
-
);
|
|
627
|
+
) ;
|
|
628
|
+
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
629
|
+
isSvgMode = false;
|
|
630
|
+
}
|
|
598
631
|
{
|
|
599
632
|
updateElement(null, newVNode2, isSvgMode);
|
|
600
633
|
}
|
|
@@ -606,6 +639,13 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
606
639
|
}
|
|
607
640
|
}
|
|
608
641
|
}
|
|
642
|
+
{
|
|
643
|
+
if (newVNode2.$tag$ === "svg") {
|
|
644
|
+
isSvgMode = false;
|
|
645
|
+
} else if (elm.tagName === "foreignObject") {
|
|
646
|
+
isSvgMode = true;
|
|
647
|
+
}
|
|
648
|
+
}
|
|
609
649
|
}
|
|
610
650
|
elm["s-hn"] = hostTagName;
|
|
611
651
|
return elm;
|
|
@@ -737,8 +777,12 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
737
777
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
738
778
|
const oldChildren = oldVNode.$children$;
|
|
739
779
|
const newChildren = newVNode2.$children$;
|
|
780
|
+
const tag = newVNode2.$tag$;
|
|
740
781
|
const text = newVNode2.$text$;
|
|
741
782
|
if (text === null) {
|
|
783
|
+
{
|
|
784
|
+
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
785
|
+
}
|
|
742
786
|
{
|
|
743
787
|
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
744
788
|
}
|
|
@@ -755,6 +799,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
755
799
|
) {
|
|
756
800
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
757
801
|
} else ;
|
|
802
|
+
if (isSvgMode && tag === "svg") {
|
|
803
|
+
isSvgMode = false;
|
|
804
|
+
}
|
|
758
805
|
} else if (oldVNode.$text$ !== text) {
|
|
759
806
|
elm.data = text;
|
|
760
807
|
}
|
|
@@ -766,19 +813,10 @@ var insertBefore = (parent, newNode, reference) => {
|
|
|
766
813
|
};
|
|
767
814
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
768
815
|
const hostElm = hostRef.$hostElement$;
|
|
769
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
770
816
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
771
817
|
const isHostElement = isHost(renderFnResults);
|
|
772
818
|
const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
|
|
773
819
|
hostTagName = hostElm.tagName;
|
|
774
|
-
if (cmpMeta.$attrsToReflect$) {
|
|
775
|
-
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
776
|
-
cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
|
|
777
|
-
{
|
|
778
|
-
rootVnode.$attrs$[attribute] = hostElm[propName];
|
|
779
|
-
}
|
|
780
|
-
});
|
|
781
|
-
}
|
|
782
820
|
if (isInitialLoad && rootVnode.$attrs$) {
|
|
783
821
|
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
784
822
|
if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
|
|
@@ -1115,12 +1153,8 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1115
1153
|
/* @__PURE__ */ new Set([
|
|
1116
1154
|
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
1117
1155
|
...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
|
|
1118
|
-
var _a2;
|
|
1119
1156
|
const attrName = m[1] || propName;
|
|
1120
1157
|
attrNameToPropName.set(attrName, propName);
|
|
1121
|
-
if (m[0] & 512 /* ReflectAttr */) {
|
|
1122
|
-
(_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
|
|
1123
|
-
}
|
|
1124
1158
|
return attrName;
|
|
1125
1159
|
})
|
|
1126
1160
|
])
|
|
@@ -1296,9 +1330,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1296
1330
|
{
|
|
1297
1331
|
cmpMeta.$members$ = compactMeta[2];
|
|
1298
1332
|
}
|
|
1299
|
-
{
|
|
1300
|
-
cmpMeta.$attrsToReflect$ = [];
|
|
1301
|
-
}
|
|
1302
1333
|
const tagName = cmpMeta.$tagName$;
|
|
1303
1334
|
const HostElement = class extends HTMLElement {
|
|
1304
1335
|
// StencilLazyHost
|
|
@@ -1401,13 +1432,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1401
1432
|
// src/runtime/nonce.ts
|
|
1402
1433
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
1403
1434
|
|
|
1435
|
+
exports.Host = Host;
|
|
1404
1436
|
exports.bootstrapLazy = bootstrapLazy;
|
|
1405
|
-
exports.createEvent = createEvent;
|
|
1406
1437
|
exports.globalScripts = globalScripts;
|
|
1407
1438
|
exports.h = h;
|
|
1408
1439
|
exports.promiseResolve = promiseResolve;
|
|
1409
1440
|
exports.registerInstance = registerInstance;
|
|
1410
1441
|
exports.setNonce = setNonce;
|
|
1411
|
-
//# sourceMappingURL=index-
|
|
1442
|
+
//# sourceMappingURL=index-E2jkaTPt.js.map
|
|
1412
1443
|
|
|
1413
|
-
//# sourceMappingURL=index-
|
|
1444
|
+
//# sourceMappingURL=index-E2jkaTPt.js.map
|