@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,68 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, h, c as Host } from './p-CzaQ1fCu.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 = /*@__PURE__*/ proxyCustomElement(class AfIconButton extends H {
|
|
6
|
+
constructor(registerHost) {
|
|
7
|
+
super();
|
|
8
|
+
if (registerHost !== false) {
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
}
|
|
11
|
+
this.__attachShadow();
|
|
12
|
+
/**
|
|
13
|
+
* The visual variant of the button
|
|
14
|
+
*/
|
|
15
|
+
this.variant = 'primary';
|
|
16
|
+
/**
|
|
17
|
+
* The size of the button
|
|
18
|
+
*/
|
|
19
|
+
this.size = 'medium';
|
|
20
|
+
/**
|
|
21
|
+
* Whether the button is disabled
|
|
22
|
+
*/
|
|
23
|
+
this.disabled = false;
|
|
24
|
+
/**
|
|
25
|
+
* Button type (when not using href)
|
|
26
|
+
*/
|
|
27
|
+
this.type = 'button';
|
|
28
|
+
}
|
|
29
|
+
render() {
|
|
30
|
+
const classes = {
|
|
31
|
+
'icon-button': true,
|
|
32
|
+
[`variant-${this.variant}`]: true,
|
|
33
|
+
[`size-${this.size}`]: true,
|
|
34
|
+
'disabled': this.disabled
|
|
35
|
+
};
|
|
36
|
+
const content = (h("span", { class: "icon" }, h("slot", null)));
|
|
37
|
+
if (this.href && !this.disabled) {
|
|
38
|
+
return (h(Host, null, h("a", { href: this.href, class: classes, "aria-label": this.ariaLabel }, content)));
|
|
39
|
+
}
|
|
40
|
+
return (h(Host, null, h("button", { type: this.type, disabled: this.disabled, class: classes, "aria-label": this.ariaLabel }, content)));
|
|
41
|
+
}
|
|
42
|
+
static get style() { return afIconButtonCss; }
|
|
43
|
+
}, [257, "af-icon-button", {
|
|
44
|
+
"variant": [1],
|
|
45
|
+
"size": [1],
|
|
46
|
+
"disabled": [4],
|
|
47
|
+
"href": [1],
|
|
48
|
+
"type": [1],
|
|
49
|
+
"ariaLabel": [1, "aria-label"]
|
|
50
|
+
}]);
|
|
51
|
+
function defineCustomElement() {
|
|
52
|
+
if (typeof customElements === "undefined") {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
const components = ["af-icon-button"];
|
|
56
|
+
components.forEach(tagName => { switch (tagName) {
|
|
57
|
+
case "af-icon-button":
|
|
58
|
+
if (!customElements.get(tagName)) {
|
|
59
|
+
customElements.define(tagName, AfIconButton);
|
|
60
|
+
}
|
|
61
|
+
break;
|
|
62
|
+
} });
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export { AfIconButton as A, defineCustomElement as d };
|
|
66
|
+
//# sourceMappingURL=p-BoU5qaPt.js.map
|
|
67
|
+
|
|
68
|
+
//# sourceMappingURL=p-BoU5qaPt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"p-BoU5qaPt.js","mappings":";;AAAA,MAAM,eAAe,GAAG,whFAAwhF;;MCOniF,YAAY,iBAAAA,kBAAA,CAAA,MAAA,YAAA,SAAAC,CAAA,CAAA;AALzB,IAAA,WAAA,CAAA,YAAA,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;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"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"],"version":3}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, h } from './p-CzaQ1fCu.js';
|
|
2
2
|
|
|
3
3
|
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}";
|
|
4
4
|
|
|
@@ -45,6 +45,6 @@ function defineCustomElement() {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
export { AfText as A, defineCustomElement as d };
|
|
48
|
-
//# sourceMappingURL=p-
|
|
48
|
+
//# sourceMappingURL=p-CT_9_xN3.js.map
|
|
49
49
|
|
|
50
|
-
//# sourceMappingURL=p-
|
|
50
|
+
//# sourceMappingURL=p-CT_9_xN3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-
|
|
1
|
+
{"file":"p-CT_9_xN3.js","mappings":";;AAAA,MAAM,SAAS,GAAG,osBAAosB;;MCOzsB,MAAM,iBAAAA,kBAAA,CAAA,MAAA,MAAA,SAAAC,CAAA,CAAA;AALnB,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;;;AAOU,QAAA,IAAO,CAAA,OAAA,GAA2E,QAAQ;;AAG1F,QAAA,IAAK,CAAA,KAAA,GAAgC,MAAM;;AAG3C,QAAA,IAAE,CAAA,EAAA,GAAmC,GAAG;AAkBjD;IAhBC,MAAM,GAAA;AACJ,QAAA,MAAM,GAAG,GAAG,IAAI,CAAC,EAAS;QAE1B,QACE,CAAA,CAAC,GAAG,EAAA,EAAA,GAAA,EAAA,0CAAA,EACF,KAAK,EAAE;AACL,gBAAA,MAAM,EAAE,IAAI;AACZ,gBAAA,CAAC,WAAW,IAAI,CAAC,OAAO,CAAE,CAAA,GAAG,IAAI;AACjC,gBAAA,CAAC,SAAS,IAAI,CAAC,KAAK,CAAE,CAAA,GAAG;AAC1B,aAAA,EACD,IAAI,EAAC,MAAM,EAAA,EAEX,CAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACJ;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/af-text/af-text.css?tag=af-text&encapsulation=shadow","src/components/af-text/af-text.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.text {\n margin: 0;\n padding: 0;\n font-family: 'Helvetica', 'Inter', 'Segoe UI', system-ui, sans-serif;\n font-weight: 400;\n color: #14343b;\n letter-spacing: 0;\n}\n\n/* Alignment */\n.align-left {\n text-align: left;\n}\n\n.align-center {\n text-align: center;\n}\n\n.align-right {\n text-align: right;\n}\n\n/* Body variants */\n.variant-xlarge {\n font-size: 22px;\n line-height: 28px;\n}\n\n.variant-large {\n font-size: 18px;\n line-height: 26px;\n}\n\n.variant-medium {\n font-size: 16px;\n line-height: 24px;\n}\n\n.variant-small {\n font-size: 14px;\n line-height: 20px;\n}\n\n/* Label variants - use NeuSans Book */\n.variant-label-button {\n font-family: 'NeuSans', 'Inter', 'Segoe UI', system-ui, sans-serif;\n font-weight: 500;\n font-size: 17px;\n line-height: 20px;\n}\n\n.variant-label-tag {\n font-family: 'NeuSans', 'Inter', 'Segoe UI', system-ui, sans-serif;\n font-weight: 500;\n font-size: 14px;\n line-height: 1;\n}\n","import { Component, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'af-text',\n styleUrl: 'af-text.css',\n shadow: true\n})\nexport class AfText {\n /** Text variant */\n @Prop() variant: 'xlarge' | 'large' | 'medium' | 'small' | 'label-button' | 'label-tag' = 'medium';\n\n /** Visual alignment */\n @Prop() align: 'left' | 'center' | 'right' = 'left';\n\n /** Semantic element to render */\n @Prop() as: 'p' | 'span' | 'div' | 'label' = 'p';\n\n render() {\n const Tag = this.as as any;\n\n return (\n <Tag\n class={{\n 'text': true,\n [`variant-${this.variant}`]: true,\n [`align-${this.align}`]: true\n }}\n part=\"base\"\n >\n <slot />\n </Tag>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
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}
|
|
1
|
+
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}";
|
|
2
2
|
|
|
3
3
|
const NAMESPACE = 'affinda';
|
|
4
4
|
const BUILD = /* affinda */ { hydratedSelectorName: "hydrated", lazyLoad: false, propChangeCallback: false, updatable: true};
|
|
@@ -12,6 +12,10 @@ var __export = (target, all) => {
|
|
|
12
12
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
+
// src/utils/constants.ts
|
|
16
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
17
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
18
|
+
|
|
15
19
|
// src/client/client-host-ref.ts
|
|
16
20
|
var getHostRef = (ref) => {
|
|
17
21
|
if (ref.__stencil__getHostRef) {
|
|
@@ -424,6 +428,9 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
|
424
428
|
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
425
429
|
}
|
|
426
430
|
}
|
|
431
|
+
if (propType & 2 /* Number */) {
|
|
432
|
+
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
433
|
+
}
|
|
427
434
|
if (propType & 1 /* String */) {
|
|
428
435
|
return String(propValue);
|
|
429
436
|
}
|
|
@@ -473,7 +480,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
473
480
|
}
|
|
474
481
|
} else if (memberName === "key") ; else {
|
|
475
482
|
const isComplex = isComplexType(newValue);
|
|
476
|
-
if ((isProp || isComplex && newValue !== null) &&
|
|
483
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
477
484
|
try {
|
|
478
485
|
if (!elm.tagName.includes("-")) {
|
|
479
486
|
const n = newValue == null ? "" : newValue;
|
|
@@ -564,14 +571,21 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
564
571
|
if (newVNode2.$text$ !== null) {
|
|
565
572
|
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
566
573
|
} else {
|
|
574
|
+
if (!isSvgMode) {
|
|
575
|
+
isSvgMode = newVNode2.$tag$ === "svg";
|
|
576
|
+
}
|
|
567
577
|
if (!win.document) {
|
|
568
578
|
throw new Error(
|
|
569
579
|
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
570
580
|
);
|
|
571
581
|
}
|
|
572
|
-
elm = newVNode2.$elm$ = win.document.
|
|
582
|
+
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
583
|
+
isSvgMode ? SVG_NS : HTML_NS,
|
|
573
584
|
newVNode2.$tag$
|
|
574
|
-
);
|
|
585
|
+
) ;
|
|
586
|
+
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
587
|
+
isSvgMode = false;
|
|
588
|
+
}
|
|
575
589
|
{
|
|
576
590
|
updateElement(null, newVNode2, isSvgMode);
|
|
577
591
|
}
|
|
@@ -583,6 +597,13 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
583
597
|
}
|
|
584
598
|
}
|
|
585
599
|
}
|
|
600
|
+
{
|
|
601
|
+
if (newVNode2.$tag$ === "svg") {
|
|
602
|
+
isSvgMode = false;
|
|
603
|
+
} else if (elm.tagName === "foreignObject") {
|
|
604
|
+
isSvgMode = true;
|
|
605
|
+
}
|
|
606
|
+
}
|
|
586
607
|
}
|
|
587
608
|
elm["s-hn"] = hostTagName;
|
|
588
609
|
return elm;
|
|
@@ -714,8 +735,12 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
714
735
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
715
736
|
const oldChildren = oldVNode.$children$;
|
|
716
737
|
const newChildren = newVNode2.$children$;
|
|
738
|
+
const tag = newVNode2.$tag$;
|
|
717
739
|
const text = newVNode2.$text$;
|
|
718
740
|
if (text === null) {
|
|
741
|
+
{
|
|
742
|
+
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
743
|
+
}
|
|
719
744
|
{
|
|
720
745
|
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
721
746
|
}
|
|
@@ -732,6 +757,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
732
757
|
) {
|
|
733
758
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
734
759
|
} else ;
|
|
760
|
+
if (isSvgMode && tag === "svg") {
|
|
761
|
+
isSvgMode = false;
|
|
762
|
+
}
|
|
735
763
|
} else if (oldVNode.$text$ !== text) {
|
|
736
764
|
elm.data = text;
|
|
737
765
|
}
|
|
@@ -1203,6 +1231,6 @@ function render(vnode, container) {
|
|
|
1203
1231
|
}
|
|
1204
1232
|
|
|
1205
1233
|
export { H, setNonce as a, setPlatformOptions as b, Host as c, getAssetPath as g, h, proxyCustomElement as p, render as r, setAssetPath as s };
|
|
1206
|
-
//# sourceMappingURL=p-
|
|
1234
|
+
//# sourceMappingURL=p-CzaQ1fCu.js.map
|
|
1207
1235
|
|
|
1208
|
-
//# sourceMappingURL=p-
|
|
1236
|
+
//# sourceMappingURL=p-CzaQ1fCu.js.map
|