@hotosm/ui 0.3.2-b3 → 0.3.2-b5
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/assets/logo/osm-logo.svg +277 -0
- package/dist/chunks/{chunk.PDLGEB7T.js → chunk.2E5B6OR3.js} +1 -1
- package/dist/chunks/{chunk.UNSJMT66.js → chunk.2FEIL35F.js} +5 -5
- package/dist/chunks/{chunk.6YSBNYKD.js → chunk.34D2LPI2.js} +1 -1
- package/dist/chunks/chunk.3P72BRDN.js +1 -0
- package/dist/chunks/{chunk.6ZDEZIWM.js → chunk.6Y3X2E2V.js} +1 -1
- package/dist/chunks/{chunk.7RJ72M75.js → chunk.CFJBM2JT.js} +1 -1
- package/dist/chunks/{chunk.T4GALJJA.js → chunk.GTNRNZDH.js} +1 -1
- package/dist/chunks/chunk.KWRSAL43.js +1 -0
- package/dist/chunks/chunk.MCLA4YSC.js +1 -0
- package/dist/chunks/{chunk.HDZFWGNV.js → chunk.NQSLFHXC.js} +1 -1
- package/dist/chunks/{chunk.U4GEH6YR.js → chunk.O6I2TNK3.js} +1 -1
- package/dist/chunks/{chunk.CS56NBTQ.js → chunk.OSUPNFJP.js} +1 -1
- package/dist/chunks/chunk.RQCFXHIG.js +1 -0
- package/dist/chunks/chunk.SMFWK2VT.js +1 -0
- package/dist/chunks/chunk.TNLBUOUK.js +40 -0
- package/dist/chunks/chunk.UMBUH2EC.js +690 -0
- package/dist/chunks/{chunk.UTSKEKTV.js → chunk.W65BP3JY.js} +1 -1
- package/dist/chunks/chunk.WX25LIXR.js +96 -0
- package/dist/components/button/button.component.d.ts +1 -1
- package/dist/components/button/button.component.js +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/button.styles.js +1 -1
- package/dist/components/consent/consent.component.d.ts +1 -1
- package/dist/components/consent/consent.component.js +1 -1
- package/dist/components/consent/consent.d.ts +0 -10
- package/dist/components/consent/consent.js +1 -1
- package/dist/components/consent/consent.styles.js +1 -1
- package/dist/components/header/header.component.d.ts +3 -23
- package/dist/components/header/header.component.js +1 -1
- package/dist/components/header/header.d.ts +0 -10
- package/dist/components/header/header.js +1 -1
- package/dist/components/header/header.styles.js +1 -1
- package/dist/components/logo/logo.component.d.ts +1 -1
- package/dist/components/logo/logo.component.js +1 -1
- package/dist/components/logo/logo.d.ts +0 -10
- package/dist/components/logo/logo.js +1 -1
- package/dist/components/logo/logo.styles.js +1 -1
- package/dist/components/tracking/tracking.component.d.ts +1 -1
- package/dist/components/tracking/tracking.component.js +1 -1
- package/dist/components/tracking/tracking.d.ts +0 -10
- package/dist/components/tracking/tracking.js +1 -1
- package/dist/hotosm-ui.js +1 -1
- package/dist/style.css +1 -1
- package/dist/themes/hot.css +31 -2
- package/package.json +5 -6
- package/dist/assets/logo/osm-logo.png +0 -0
- package/dist/chunks/chunk.H5ZQREL2.js +0 -1
- package/dist/chunks/chunk.IU7P7RMD.js +0 -1
- package/dist/chunks/chunk.O6Q54UVK.js +0 -671
- package/dist/chunks/chunk.SZ46YTWY.js +0 -1
- package/dist/chunks/chunk.U4P7XQR4.js +0 -40
- package/dist/chunks/chunk.UYOJKKGV.js +0 -1
- package/dist/chunks/chunk.VOBHDN5R.js +0 -168
- package/dist/chunks/chunk.YYEOK7MA.js +0 -1
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import{b as f}from"./chunk.TNLBUOUK.js";import{a as c,c as g}from"./chunk.NI7UJOOZ.js";function b(t){var r,e,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(r=0;r<n;r++)t[r]&&(e=b(t[r]))&&(a&&(a+=" "),a+=e)}else for(e in t)t[e]&&(a&&(a+=" "),a+=e);return a}function y(){for(var t,r,e=0,a="",n=arguments.length;e<n;e++)(t=arguments[e])&&(r=b(t))&&(a&&(a+=" "),a+=r);return a}var x=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,p=y,z=(t,r)=>e=>{var a;if((r==null?void 0:r.variants)==null)return p(t,e==null?void 0:e.class,e==null?void 0:e.className);let{variants:n,defaultVariants:s}=r,w=Object.keys(n).map(o=>{let i=e==null?void 0:e[o],d=s==null?void 0:s[o];if(i===null)return null;let l=x(i)||x(d);return n[o][l]}),m=e&&Object.entries(e).reduce((o,i)=>{let[d,l]=i;return l===void 0||(o[d]=l),o},{}),j=r==null||(a=r.compoundVariants)===null||a===void 0?void 0:a.reduce((o,i)=>{let u=i,{class:d,className:l}=u,V=g(u,["class","className"]);return Object.entries(V).every(k=>{let[v,h]=k;return Array.isArray(h)?h.includes(c(c({},s),m)[v]):c(c({},s),m)[v]===h})?[...o,d,l]:o},[]);return p(t,w,j,e==null?void 0:e.class,e==null?void 0:e.className)};var _=z(`
|
|
2
|
+
header
|
|
3
|
+
`,{variants:{size:{small:"header--size-small",medium:"header--size-medium",large:"header--size-large"},borderBottom:{true:"border-bottom"}}}),B=f`
|
|
4
|
+
.header {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
padding: 0 var(--hot-spacing-small);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.header.border-bottom {
|
|
12
|
+
border-bottom: var(--hot-spacing-3x-small) solid var(--hot-color-neutral-50);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.header--size-small {
|
|
16
|
+
height: var(--hot-spacing-4x-large);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.header--size-medium {
|
|
20
|
+
height: calc(var(--hot-spacing-4x-large) * 2);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.header--size-large {
|
|
24
|
+
height: calc(var(--hot-spacing-4x-large) * 4);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.header--link {
|
|
28
|
+
text-decoration: none;
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
gap: var(--hot-spacing-small);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.header--title {
|
|
36
|
+
color: var(--hot-color-neutral-950);
|
|
37
|
+
font-family: var(--hot-font-sans);
|
|
38
|
+
font-size: var(--hot-font-size-x-large);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.header--tab::part(base) {
|
|
42
|
+
font-size: var(--hot-font-size-medium);
|
|
43
|
+
font-weight: var(--hot-font-weight-normal);
|
|
44
|
+
color: var(--hot-color-neutral-950);
|
|
45
|
+
padding: var(--hot-spacing-small) var(--hot-spacing-small);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.header--tab-group::part(base) {
|
|
49
|
+
--track-color: transparent;
|
|
50
|
+
--indicator-color: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.header--nav {
|
|
54
|
+
justify-content: space-between;
|
|
55
|
+
justify-items: center;
|
|
56
|
+
gap: var(--hot-spacing-medium);
|
|
57
|
+
font-weight: var(--hot-font-weight-semibold);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.header--nav-mobile {
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.header--person-circle {
|
|
64
|
+
font-size: var(--hot-font-size-x-large);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.header--drawer {
|
|
68
|
+
font-size: var(--hot-font-size-x-large)
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.header--right-section {
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
gap: var(--hot-spacing-small);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
.header--logo-img {
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.header--tab {
|
|
83
|
+
border-bottom: 2px solid;
|
|
84
|
+
border-color: transparent;
|
|
85
|
+
}
|
|
86
|
+
.header--tab-active {
|
|
87
|
+
border-color: var(--hot-color-neutral-1000);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* Login Modal Styles */
|
|
91
|
+
.login-modal {
|
|
92
|
+
--width: 35rem;
|
|
93
|
+
--border-radius: 8px;
|
|
94
|
+
--background-color: white;
|
|
95
|
+
}
|
|
96
|
+
`;export{_ as a,B as b};
|
|
@@ -23,6 +23,6 @@ export declare class Button extends LitElement {
|
|
|
23
23
|
accessor type: 'button' | 'submit' | 'reset';
|
|
24
24
|
/** The HOT color variant to use. */
|
|
25
25
|
accessor hotColor: 'red' | 'yellow' | 'blue' | 'cyan' | 'rose' | 'gray' | '';
|
|
26
|
-
protected render(): import("lit").TemplateResult<1>;
|
|
26
|
+
protected render(): import("lit-html").TemplateResult<1>;
|
|
27
27
|
}
|
|
28
28
|
export default Button;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunks/chunk.
|
|
1
|
+
import{a,b}from"../../chunks/chunk.NQSLFHXC.js";import"../../chunks/chunk.O6I2TNK3.js";import"../../chunks/chunk.O2GMJYSL.js";import"../../chunks/chunk.2FEIL35F.js";import"../../chunks/chunk.6Y3X2E2V.js";import"../../chunks/chunk.KO4EOD3I.js";import"../../chunks/chunk.TNLBUOUK.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as Button,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk.
|
|
1
|
+
import{a}from"../../chunks/chunk.KWRSAL43.js";import"../../chunks/chunk.NQSLFHXC.js";import"../../chunks/chunk.O6I2TNK3.js";import"../../chunks/chunk.O2GMJYSL.js";import"../../chunks/chunk.2FEIL35F.js";import"../../chunks/chunk.6Y3X2E2V.js";import"../../chunks/chunk.KO4EOD3I.js";import"../../chunks/chunk.TNLBUOUK.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk.
|
|
1
|
+
import{a}from"../../chunks/chunk.O6I2TNK3.js";import"../../chunks/chunk.TNLBUOUK.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as default};
|
|
@@ -15,7 +15,7 @@ export declare class Consent extends LitElement {
|
|
|
15
15
|
accessor message: string;
|
|
16
16
|
accessor agreeLabel: string;
|
|
17
17
|
accessor notAgreeLabel: string;
|
|
18
|
-
protected render(): import("lit").TemplateResult<1> | null;
|
|
18
|
+
protected render(): import("lit-html").TemplateResult<1> | null;
|
|
19
19
|
private _setAgree;
|
|
20
20
|
private _setDisagree;
|
|
21
21
|
connectedCallback(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunks/chunk.
|
|
1
|
+
import{a,b}from"../../chunks/chunk.OSUPNFJP.js";import"../../chunks/chunk.34D2LPI2.js";import"../../chunks/chunk.O2GMJYSL.js";import"../../chunks/chunk.2FEIL35F.js";import"../../chunks/chunk.6Y3X2E2V.js";import"../../chunks/chunk.KO4EOD3I.js";import"../../chunks/chunk.GTNRNZDH.js";import"../../chunks/chunk.TNLBUOUK.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as Consent,b as default};
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import Consent from './consent.component.js';
|
|
2
2
|
export default Consent;
|
|
3
|
-
|
|
4
3
|
declare global {
|
|
5
4
|
interface HTMLElementTagNameMap {
|
|
6
5
|
'hot-consent': Consent;
|
|
7
6
|
}
|
|
8
7
|
}
|
|
9
|
-
|
|
10
|
-
// React 19
|
|
11
|
-
declare module "react" {
|
|
12
|
-
namespace JSX {
|
|
13
|
-
interface IntrinsicElements {
|
|
14
|
-
'hot-consent': Consent;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk.
|
|
1
|
+
import{a}from"../../chunks/chunk.SMFWK2VT.js";import"../../chunks/chunk.OSUPNFJP.js";import"../../chunks/chunk.34D2LPI2.js";import"../../chunks/chunk.O2GMJYSL.js";import"../../chunks/chunk.2FEIL35F.js";import"../../chunks/chunk.6Y3X2E2V.js";import"../../chunks/chunk.KO4EOD3I.js";import"../../chunks/chunk.GTNRNZDH.js";import"../../chunks/chunk.TNLBUOUK.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk.
|
|
1
|
+
import{a}from"../../chunks/chunk.GTNRNZDH.js";import"../../chunks/chunk.TNLBUOUK.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as default};
|
|
@@ -2,23 +2,12 @@ import '@awesome.me/webawesome/dist/components/tab-group/tab-group.js';
|
|
|
2
2
|
import '@awesome.me/webawesome/dist/components/dialog/dialog.js';
|
|
3
3
|
import '@awesome.me/webawesome/dist/components/icon/icon.js';
|
|
4
4
|
import { LitElement } from "lit";
|
|
5
|
-
import { type sizes } from './header.styles.js';
|
|
6
5
|
import type { CSSResultGroup } from 'lit';
|
|
6
|
+
import { type sizes } from './header.styles.js';
|
|
7
7
|
interface MenuItem {
|
|
8
8
|
label: string;
|
|
9
9
|
clickEvent: () => void;
|
|
10
10
|
}
|
|
11
|
-
interface LoginProvider {
|
|
12
|
-
icon?: string;
|
|
13
|
-
loginUrl: string;
|
|
14
|
-
redirectUrl: string;
|
|
15
|
-
clientId?: string;
|
|
16
|
-
name?: string;
|
|
17
|
-
scope?: string;
|
|
18
|
-
}
|
|
19
|
-
interface LoginProviders {
|
|
20
|
-
[key: string]: LoginProvider;
|
|
21
|
-
}
|
|
22
11
|
export declare class Header extends LitElement {
|
|
23
12
|
static styles: CSSResultGroup;
|
|
24
13
|
name: string;
|
|
@@ -40,20 +29,11 @@ export declare class Header extends LitElement {
|
|
|
40
29
|
accessor showLogin: boolean;
|
|
41
30
|
/** Control the login modal state. */
|
|
42
31
|
accessor loginModalOpen: boolean;
|
|
43
|
-
/** Configuration object for login providers. */
|
|
44
|
-
accessor loginProviders: LoginProviders;
|
|
45
32
|
/** Default fallback icon for providers without custom icons. */
|
|
46
33
|
accessor defaultLoginIcon: string;
|
|
47
|
-
|
|
48
|
-
accessor OsmOauthClientId: string;
|
|
49
|
-
accessor OsmOauthRedirectUri: string;
|
|
50
|
-
private get loginOptions();
|
|
51
|
-
private formatProviderName;
|
|
34
|
+
connectedCallback(): Promise<void>;
|
|
52
35
|
selectTab(index: number): void;
|
|
53
|
-
|
|
54
|
-
private legacyOsmLoginRedirect;
|
|
55
|
-
private handleSignIn;
|
|
56
|
-
protected render(): import("lit").TemplateResult<1>;
|
|
36
|
+
protected render(): import("lit-html").TemplateResult<1>;
|
|
57
37
|
private _tabClick;
|
|
58
38
|
private _handleLogin;
|
|
59
39
|
private _handleModalClose;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunks/chunk.
|
|
1
|
+
import{a,b}from"../../chunks/chunk.UMBUH2EC.js";import"../../chunks/chunk.WX25LIXR.js";import"../../chunks/chunk.2FEIL35F.js";import"../../chunks/chunk.6Y3X2E2V.js";import"../../chunks/chunk.KO4EOD3I.js";import"../../chunks/chunk.TNLBUOUK.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as Header,b as default};
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import Header from './header.component.js';
|
|
2
2
|
export default Header;
|
|
3
|
-
|
|
4
3
|
declare global {
|
|
5
4
|
interface HTMLElementTagNameMap {
|
|
6
5
|
'hot-header': Header;
|
|
7
6
|
}
|
|
8
7
|
}
|
|
9
|
-
|
|
10
|
-
// React 19
|
|
11
|
-
declare module "react" {
|
|
12
|
-
namespace JSX {
|
|
13
|
-
interface IntrinsicElements {
|
|
14
|
-
'hot-header': Header;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk.
|
|
1
|
+
import{a}from"../../chunks/chunk.RQCFXHIG.js";import"../../chunks/chunk.UMBUH2EC.js";import"../../chunks/chunk.WX25LIXR.js";import"../../chunks/chunk.2FEIL35F.js";import"../../chunks/chunk.6Y3X2E2V.js";import"../../chunks/chunk.KO4EOD3I.js";import"../../chunks/chunk.TNLBUOUK.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunks/chunk.
|
|
1
|
+
import{a,b}from"../../chunks/chunk.WX25LIXR.js";import"../../chunks/chunk.TNLBUOUK.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as headerVariants,b as styles};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunks/chunk.
|
|
1
|
+
import{a,b}from"../../chunks/chunk.CFJBM2JT.js";import"../../chunks/chunk.W65BP3JY.js";import"../../chunks/chunk.6Y3X2E2V.js";import"../../chunks/chunk.TNLBUOUK.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as Logo,b as default};
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import Logo from './logo.component.js';
|
|
2
2
|
export default Logo;
|
|
3
|
-
|
|
4
3
|
declare global {
|
|
5
4
|
interface HTMLElementTagNameMap {
|
|
6
5
|
'hot-logo': Logo;
|
|
7
6
|
}
|
|
8
7
|
}
|
|
9
|
-
|
|
10
|
-
// React 19
|
|
11
|
-
declare module "react" {
|
|
12
|
-
namespace JSX {
|
|
13
|
-
interface IntrinsicElements {
|
|
14
|
-
'hot-logo': Logo;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk.
|
|
1
|
+
import{a}from"../../chunks/chunk.MCLA4YSC.js";import"../../chunks/chunk.CFJBM2JT.js";import"../../chunks/chunk.W65BP3JY.js";import"../../chunks/chunk.6Y3X2E2V.js";import"../../chunks/chunk.TNLBUOUK.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk.
|
|
1
|
+
import{a}from"../../chunks/chunk.W65BP3JY.js";import"../../chunks/chunk.TNLBUOUK.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as default};
|
|
@@ -34,7 +34,7 @@ export declare class MatomoTracking extends LitElement {
|
|
|
34
34
|
private showErrorCallout;
|
|
35
35
|
private showSuccessCallout;
|
|
36
36
|
private showInfoCallout;
|
|
37
|
-
protected render(): import("lit").TemplateResult<1>;
|
|
37
|
+
protected render(): import("lit-html").TemplateResult<1>;
|
|
38
38
|
connectedCallback(): void;
|
|
39
39
|
}
|
|
40
40
|
export default MatomoTracking;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunks/chunk.
|
|
1
|
+
import{a,b}from"../../chunks/chunk.2E5B6OR3.js";import"../../chunks/chunk.34D2LPI2.js";import"../../chunks/chunk.O2GMJYSL.js";import"../../chunks/chunk.2FEIL35F.js";import"../../chunks/chunk.6Y3X2E2V.js";import"../../chunks/chunk.TNLBUOUK.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as MatomoTracking,b as default};
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import MatomoTracking from './tracking.component.js';
|
|
2
2
|
export default MatomoTracking;
|
|
3
|
-
|
|
4
3
|
declare global {
|
|
5
4
|
interface HTMLElementTagNameMap {
|
|
6
5
|
'hot-tracking': MatomoTracking;
|
|
7
6
|
}
|
|
8
7
|
}
|
|
9
|
-
|
|
10
|
-
// React 19
|
|
11
|
-
declare module "react" {
|
|
12
|
-
namespace JSX {
|
|
13
|
-
interface IntrinsicElements {
|
|
14
|
-
'hot-tracking': MatomoTracking;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk.
|
|
1
|
+
import{a}from"../../chunks/chunk.3P72BRDN.js";import"../../chunks/chunk.2E5B6OR3.js";import"../../chunks/chunk.34D2LPI2.js";import"../../chunks/chunk.O2GMJYSL.js";import"../../chunks/chunk.2FEIL35F.js";import"../../chunks/chunk.6Y3X2E2V.js";import"../../chunks/chunk.TNLBUOUK.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as default};
|
package/dist/hotosm-ui.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"./chunks/chunk.
|
|
1
|
+
import{a as o}from"./chunks/chunk.RQCFXHIG.js";import"./chunks/chunk.UMBUH2EC.js";import"./chunks/chunk.WX25LIXR.js";import{a as t}from"./chunks/chunk.MCLA4YSC.js";import"./chunks/chunk.CFJBM2JT.js";import"./chunks/chunk.W65BP3JY.js";import{a as r}from"./chunks/chunk.3P72BRDN.js";import"./chunks/chunk.2E5B6OR3.js";import{a}from"./chunks/chunk.KWRSAL43.js";import"./chunks/chunk.NQSLFHXC.js";import"./chunks/chunk.O6I2TNK3.js";import{a as m}from"./chunks/chunk.SMFWK2VT.js";import"./chunks/chunk.OSUPNFJP.js";import"./chunks/chunk.34D2LPI2.js";import"./chunks/chunk.O2GMJYSL.js";import"./chunks/chunk.2FEIL35F.js";import"./chunks/chunk.6Y3X2E2V.js";import"./chunks/chunk.KO4EOD3I.js";import"./chunks/chunk.GTNRNZDH.js";import"./chunks/chunk.TNLBUOUK.js";import"./chunks/chunk.NI7UJOOZ.js";export{a as Button,m as Consent,o as Header,t as Logo,r as Tracking};
|
package/dist/style.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* The default WebAwesome CSS */
|
|
2
|
-
@import url('https://early.webawesome.com/webawesome@3.0.0-beta.1/dist/styles/webawesome.css');
|
|
3
2
|
/* The WebAwesome theme we use (options: awesome, brutalist, glossy, etc) */
|
|
4
3
|
@import url('https://early.webawesome.com/webawesome@3.0.0-beta.1/dist/styles/themes/default.css');
|
|
5
4
|
/* Import our custom HOTOSM CSS variables - should be imported first */
|
|
6
5
|
@import 'themes/hot.css';
|
|
7
6
|
/* Import our WebAwesome palette / colour & font override */
|
|
8
7
|
@import 'themes/hot-wa-override.css';
|
|
8
|
+
@import url('https://early.webawesome.com/webawesome@3.0.0-beta.1/dist/styles/webawesome.css');
|
package/dist/themes/hot.css
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/* HOT theme */
|
|
2
|
-
|
|
3
2
|
/* :root makes them available globally */
|
|
4
3
|
:root,
|
|
5
4
|
/* :host is for Web Components and shadow DOM scopes */
|
|
@@ -17,7 +16,7 @@
|
|
|
17
16
|
--hot-color-red-800: #B83032;
|
|
18
17
|
--hot-color-red-700: #C53639;
|
|
19
18
|
--hot-color-red-600: #D73F3F;
|
|
20
|
-
--hot-color-red-500:
|
|
19
|
+
--hot-color-red-500: green;
|
|
21
20
|
--hot-color-red-400: #ED5C5E;
|
|
22
21
|
--hot-color-red-300: #E27A7D;
|
|
23
22
|
--hot-color-red-200: #EC9EA1;
|
|
@@ -258,3 +257,33 @@
|
|
|
258
257
|
--hot-border-radius-circle: 50%;
|
|
259
258
|
--hot-border-radius-pill: 9999px;
|
|
260
259
|
}
|
|
260
|
+
|
|
261
|
+
.gradient-button::part(base) {
|
|
262
|
+
background: linear-gradient(217deg, var(--wa-color-indigo-50), var(--wa-color-purple-50), var(--wa-color-red-50));
|
|
263
|
+
border: solid 1px var(--wa-color-purple-50);
|
|
264
|
+
transition: transform 100ms, box-shadow 100ms;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.gradient-button::part(base):hover {
|
|
268
|
+
box-shadow: var(--wa-shadow-m);
|
|
269
|
+
transform: translateY(-3px);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.gradient-button::part(base):active {
|
|
273
|
+
box-shadow: inset var(--wa-shadow-s);
|
|
274
|
+
transform: translateY(0);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.gradient-button::part(label) {
|
|
278
|
+
color: white;
|
|
279
|
+
text-shadow: rgb(0 0 0 / 0.3) 0 -1px;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
wa-button.login-button {
|
|
284
|
+
background-color: #1a73e8;
|
|
285
|
+
color: white;
|
|
286
|
+
font-weight: 600;
|
|
287
|
+
padding: 0.6rem 1.2rem;
|
|
288
|
+
border-radius: 8px;
|
|
289
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hotosm/ui",
|
|
3
|
-
"version": "0.3.2-
|
|
3
|
+
"version": "0.3.2-b5",
|
|
4
4
|
"description": "Shared UI components with HOT theming.",
|
|
5
5
|
"homepage": "https://github.com/hotosm/ui#readme",
|
|
6
6
|
"author": {
|
|
@@ -48,20 +48,19 @@
|
|
|
48
48
|
"engines": {
|
|
49
49
|
"node": ">=14.17.0"
|
|
50
50
|
},
|
|
51
|
-
"dependencies": {
|
|
52
|
-
"@awesome.me/webawesome": "3.0.0-beta.1",
|
|
53
|
-
"class-variance-authority": "^0.7.0",
|
|
54
|
-
"lit": "^3.0.0"
|
|
55
|
-
},
|
|
56
51
|
"devDependencies": {
|
|
52
|
+
"@awesome.me/webawesome": "3.0.0-beta.1",
|
|
57
53
|
"@storybook/addon-essentials": "^8.3.5",
|
|
58
54
|
"@storybook/addon-links": "^8.3.5",
|
|
59
55
|
"@storybook/blocks": "^8.3.5",
|
|
60
56
|
"@storybook/web-components": "^8.2.9",
|
|
61
57
|
"@storybook/web-components-vite": "^8.2.9",
|
|
58
|
+
"@teamhanko/hanko-elements": "^2.1.0",
|
|
59
|
+
"class-variance-authority": "^0.7.0",
|
|
62
60
|
"del": "^7.1.0",
|
|
63
61
|
"esbuild": "^0.19.4",
|
|
64
62
|
"globby": "^14.0.2",
|
|
63
|
+
"lit": "^3.0.0",
|
|
65
64
|
"storybook": "^8.2.9",
|
|
66
65
|
"typescript": "^5.2.2",
|
|
67
66
|
"user-agent-data-types": "^0.3.1"
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as t}from"./chunk.HDZFWGNV.js";var o=t;customElements.define("hot-button",t);export{o as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as e}from"./chunk.O6Q54UVK.js";var r=e;customElements.define("hot-header",e);export{r as a};
|