@hotosm/ui 0.3.2-b7 → 0.3.2-b9
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/hamburger.svg +1 -0
- package/dist/chunks/{chunk.OSUPNFJP.js → chunk.2ULJ7GOD.js} +1 -1
- package/dist/chunks/chunk.D4UQX7IV.js +146 -0
- package/dist/chunks/chunk.JWXDWX4U.js +1 -0
- package/dist/chunks/{chunk.NQSLFHXC.js → chunk.NA5VYRZH.js} +1 -1
- package/dist/chunks/chunk.PDA7Y3OG.js +1253 -0
- package/dist/chunks/chunk.TTXUWWW4.js +1 -0
- package/dist/chunks/chunk.UOUAH7BX.js +1 -0
- package/dist/chunks/chunk.XV3ZU53D.js +1 -0
- package/dist/components/button/button.component.js +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/consent/consent.component.js +1 -1
- package/dist/components/consent/consent.js +1 -1
- package/dist/components/header/header.component.d.ts +8 -16
- package/dist/components/header/header.component.js +1 -1
- package/dist/components/header/header.js +1 -1
- package/dist/components/header/header.styles.js +1 -1
- package/dist/components/icons.d.ts +9 -0
- package/dist/components/icons.js +1 -1
- package/dist/hotosm-ui.d.ts +1 -0
- package/dist/hotosm-ui.js +1 -1
- package/dist/themes/hot.css +0 -7
- package/dist/utils/shadow-dom-css.d.ts +22 -16
- package/package.json +1 -1
- package/dist/chunks/chunk.6YNKD56X.js +0 -934
- package/dist/chunks/chunk.GGX6E7QF.js +0 -179
- package/dist/chunks/chunk.KO4EOD3I.js +0 -1
- package/dist/chunks/chunk.KWRSAL43.js +0 -1
- package/dist/chunks/chunk.NTH75J37.js +0 -1
- package/dist/chunks/chunk.SMFWK2VT.js +0 -1
- package/dist/utils/shadow-dom-config.d.ts +0 -58
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="18" x2="21" y2="18"/></svg>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as o}from"./chunk.6Y3X2E2V.js";import{a as l}from"./chunk.
|
|
1
|
+
import{b as o}from"./chunk.6Y3X2E2V.js";import{a as l}from"./chunk.XV3ZU53D.js";import{a as d}from"./chunk.GTNRNZDH.js";import{e as r,k as c}from"./chunk.TNLBUOUK.js";import{d as s,e as a,f as n,g as i}from"./chunk.NI7UJOOZ.js";l();var u,g,p,b,h,m,v,e=class extends c{constructor(){super(...arguments);this.name="hot-consent";n(this,u,"");n(this,g,!1);n(this,p,!0);n(this,b,"About the information we collect");n(this,h,"We use cookies and similar technologies to recognize and analyze your visits, and measure traffic usage and activity.");n(this,m,"I Agree");n(this,v,"I Do Not Agree")}get consentId(){return a(this,u)}set consentId(t){i(this,u,t)}get force(){return a(this,g)}set force(t){i(this,g,t)}get isOpen(){return a(this,p)}set isOpen(t){i(this,p,t)}get title(){return a(this,b)}set title(t){i(this,b,t)}get message(){return a(this,h)}set message(t){i(this,h,t)}get agreeLabel(){return a(this,m)}set agreeLabel(t){i(this,m,t)}get notAgreeLabel(){return a(this,v)}set notAgreeLabel(t){i(this,v,t)}render(){return this.isOpen?r`
|
|
2
2
|
<div class="consent-overlay">
|
|
3
3
|
<div class="consent-container">
|
|
4
4
|
<wa-callout variant="brand" appearance="outlined filled" size="large" class="consent-callout">
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import{b as f}from"./chunk.TNLBUOUK.js";import{a as h,c as u}from"./chunk.NI7UJOOZ.js";function p(t){var r,e,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(e=p(t[r]))&&(a&&(a+=" "),a+=e)}else for(e in t)t[e]&&(a&&(a+=" "),a+=e);return a}function b(){for(var t,r,e=0,a="",i=arguments.length;e<i;e++)(t=arguments[e])&&(r=p(t))&&(a&&(a+=" "),a+=r);return a}var x=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,y=b,w=(t,r)=>e=>{var a;if((r==null?void 0:r.variants)==null)return y(t,e==null?void 0:e.class,e==null?void 0:e.className);let{variants:i,defaultVariants:s}=r,z=Object.keys(i).map(o=>{let n=e==null?void 0:e[o],d=s==null?void 0:s[o];if(n===null)return null;let l=x(n)||x(d);return i[o][l]}),m=e&&Object.entries(e).reduce((o,n)=>{let[d,l]=n;return l===void 0||(o[d]=l),o},{}),j=r==null||(a=r.compoundVariants)===null||a===void 0?void 0:a.reduce((o,n)=>{let v=n,{class:d,className:l}=v,k=u(v,["class","className"]);return Object.entries(k).every(V=>{let[g,c]=V;return Array.isArray(c)?c.includes(h(h({},s),m)[g]):h(h({},s),m)[g]===c})?[...o,d,l]:o},[]);return y(t,z,j,e==null?void 0:e.class,e==null?void 0:e.className)};var S=w(`
|
|
2
|
+
header
|
|
3
|
+
`,{variants:{size:{small:"header--size-small",medium:"header--size-medium",large:"header--size-large"},borderBottom:{true:"border-bottom"}}}),_=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
|
+
border-bottom: 2px solid transparent;
|
|
47
|
+
transition: border-color 0.2s ease;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.header--tab[active]::part(base) {
|
|
51
|
+
border-bottom-color: var(--hot-color-neutral-1000);
|
|
52
|
+
font-weight: var(--hot-font-weight-semibold);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.header--tab:hover::part(base) {
|
|
56
|
+
color: var(--hot-color-neutral-700);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.header--tab[active]:hover::part(base) {
|
|
60
|
+
color: var(--hot-color-neutral-950);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.header--tab-group::part(base) {
|
|
64
|
+
--track-color: transparent;
|
|
65
|
+
--indicator-color: transparent;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.header--nav {
|
|
69
|
+
justify-content: space-between;
|
|
70
|
+
justify-items: center;
|
|
71
|
+
gap: var(--hot-spacing-medium);
|
|
72
|
+
font-weight: var(--hot-font-weight-semibold);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.header--nav-mobile {
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.header--person-circle {
|
|
79
|
+
font-size: var(--hot-font-size-x-large);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.header--drawer {
|
|
83
|
+
font-size: var(--hot-font-size-x-large)
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.header--right-section {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
gap: var(--hot-spacing-small);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
.header--logo-img {
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
/* Login Modal Styles */
|
|
100
|
+
.login-modal {
|
|
101
|
+
--width: 35rem;
|
|
102
|
+
--border-radius: 8px;
|
|
103
|
+
--background-color: white;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* --- Responsive styles for mobile --- */
|
|
107
|
+
@media (max-width: 768px) {
|
|
108
|
+
.header {
|
|
109
|
+
flex-direction: column;
|
|
110
|
+
align-items: stretch;
|
|
111
|
+
padding: var(--hot-spacing-small);
|
|
112
|
+
height: auto;
|
|
113
|
+
}
|
|
114
|
+
.header--link {
|
|
115
|
+
justify-content: flex-start;
|
|
116
|
+
gap: var(--hot-spacing-x-small);
|
|
117
|
+
}
|
|
118
|
+
.header--title {
|
|
119
|
+
font-size: var(--hot-font-size-large);
|
|
120
|
+
}
|
|
121
|
+
.header--nav {
|
|
122
|
+
display: none;
|
|
123
|
+
}
|
|
124
|
+
.header--nav-mobile {
|
|
125
|
+
display: block;
|
|
126
|
+
width: 100%;
|
|
127
|
+
margin-top: var(--hot-spacing-small);
|
|
128
|
+
}
|
|
129
|
+
.header--right-section {
|
|
130
|
+
justify-content: flex-end;
|
|
131
|
+
width: 100%;
|
|
132
|
+
margin-top: var(--hot-spacing-small);
|
|
133
|
+
gap: var(--hot-spacing-x-small);
|
|
134
|
+
}
|
|
135
|
+
.header--logo-img {
|
|
136
|
+
max-height: 2.5rem;
|
|
137
|
+
width: auto;
|
|
138
|
+
}
|
|
139
|
+
wa-button[appearance="outlined"] {
|
|
140
|
+
/* Make drawer button larger for touch */
|
|
141
|
+
min-width: 2.5rem;
|
|
142
|
+
min-height: 2.5rem;
|
|
143
|
+
padding: 0.5rem;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
`;export{S as a,_ as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e}from"./chunk.PDA7Y3OG.js";var r=e;customElements.define("hot-header",e);export{r as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as l}from"./chunk.O6I2TNK3.js";import{b as o}from"./chunk.6Y3X2E2V.js";import{a as n}from"./chunk.
|
|
1
|
+
import{a as l}from"./chunk.O6I2TNK3.js";import{b as o}from"./chunk.6Y3X2E2V.js";import{a as n}from"./chunk.XV3ZU53D.js";import{e as t,k as c}from"./chunk.TNLBUOUK.js";import{d as s,e as i,f as a,g as r}from"./chunk.NI7UJOOZ.js";n();var p,d,h,y,g,m,$,S,f,e=class extends c{constructor(){super(...arguments);this.name="hot-button";a(this,p,"primary");a(this,d,"medium");a(this,h,"default");a(this,y,!1);a(this,g,!1);a(this,m,"");a(this,$,"start");a(this,S,"button");a(this,f,"")}get variant(){return i(this,p)}set variant(w){r(this,p,w)}get size(){return i(this,d)}set size(w){r(this,d,w)}get appearance(){return i(this,h)}set appearance(w){r(this,h,w)}get disabled(){return i(this,y)}set disabled(w){r(this,y,w)}get loading(){return i(this,g)}set loading(w){r(this,g,w)}get icon(){return i(this,m)}set icon(w){r(this,m,w)}get iconPosition(){return i(this,$)}set iconPosition(w){r(this,$,w)}get type(){return i(this,S)}set type(w){r(this,S,w)}get hotColor(){return i(this,f)}set hotColor(w){r(this,f,w)}render(){let w=`hot-button${this.hotColor?` hot-${this.hotColor}`:""}`;return t`
|
|
2
2
|
<wa-button
|
|
3
3
|
variant="${this.variant}"
|
|
4
4
|
size="${this.size}"
|