@hotosm/ui 0.3.2-b2 → 0.3.2-b4
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.D2BMH7HD.js → chunk.CS444ZXM.js} +54 -54
- package/dist/chunks/chunk.EMBNMR2N.js +692 -0
- package/dist/chunks/chunk.EROFXAZH.js +1 -0
- package/dist/chunks/chunk.H5ZQREL2.js +1 -0
- package/dist/chunks/chunk.HDZFWGNV.js +19 -0
- package/dist/chunks/chunk.HQE63XEZ.js +96 -0
- package/dist/chunks/chunk.O2GMJYSL.js +0 -0
- package/dist/chunks/{chunk.LPSHZWUY.js → chunk.QT57GV7H.js} +1 -1
- package/dist/chunks/chunk.U4GEH6YR.js +203 -0
- package/dist/components/button/button.component.d.ts +28 -0
- package/dist/components/button/button.component.js +1 -0
- package/dist/components/button/button.d.ts +7 -0
- package/dist/components/button/button.js +1 -0
- package/dist/components/button/button.styles.d.ts +2 -0
- package/dist/components/button/button.styles.js +1 -0
- 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/header/header.component.d.ts +2 -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.d.ts +0 -10
- 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.d.ts +2 -1
- package/dist/hotosm-ui.js +1 -1
- package/package.json +5 -6
- package/dist/assets/logo/osm-logo.png +0 -0
- package/dist/chunks/chunk.5F5JALRB.js +0 -669
- package/dist/chunks/chunk.H4QL3V4P.js +0 -1
- package/dist/chunks/chunk.HTYJKOJL.js +0 -171
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as e}from"./chunk.EMBNMR2N.js";var r=e;customElements.define("hot-header",e);export{r as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as t}from"./chunk.HDZFWGNV.js";var o=t;customElements.define("hot-button",t);export{o as a};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import{a as l}from"./chunk.U4GEH6YR.js";import{b as o}from"./chunk.6ZDEZIWM.js";import{a as n}from"./chunk.KO4EOD3I.js";import{e as t,k as c}from"./chunk.U4P7XQR4.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
|
+
<wa-button
|
|
3
|
+
variant="${this.variant}"
|
|
4
|
+
size="${this.size}"
|
|
5
|
+
appearance="${this.appearance}"
|
|
6
|
+
?disabled="${this.disabled}"
|
|
7
|
+
?loading="${this.loading}"
|
|
8
|
+
type="${this.type}"
|
|
9
|
+
class="${w}"
|
|
10
|
+
>
|
|
11
|
+
${this.icon&&this.iconPosition==="start"?t`
|
|
12
|
+
<wa-icon name="${this.icon}" slot="icon"></wa-icon>
|
|
13
|
+
`:null}
|
|
14
|
+
<slot></slot>
|
|
15
|
+
${this.icon&&this.iconPosition==="end"?t`
|
|
16
|
+
<wa-icon name="${this.icon}" slot="icon"></wa-icon>
|
|
17
|
+
`:null}
|
|
18
|
+
</wa-button>
|
|
19
|
+
`}};p=new WeakMap,d=new WeakMap,h=new WeakMap,y=new WeakMap,g=new WeakMap,m=new WeakMap,$=new WeakMap,S=new WeakMap,f=new WeakMap,e.styles=[l],s([o({type:String})],e.prototype,"variant",1),s([o({type:String})],e.prototype,"size",1),s([o({type:String})],e.prototype,"appearance",1),s([o({type:Boolean})],e.prototype,"disabled",1),s([o({type:Boolean})],e.prototype,"loading",1),s([o({type:String})],e.prototype,"icon",1),s([o({type:String})],e.prototype,"iconPosition",1),s([o({type:String})],e.prototype,"type",1),s([o({type:String,attribute:"hot-color"})],e.prototype,"hotColor",1);var R=e;export{e as a,R as b};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import{b as f}from"./chunk.U4P7XQR4.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};
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as o,d as t,g as l,h as i}from"./chunk.
|
|
1
|
+
import{c as o,d as t,g as l,h as i}from"./chunk.CS444ZXM.js";import{a as e,b as a}from"./chunk.6ZDEZIWM.js";import{e as n}from"./chunk.U4P7XQR4.js";var d=`:host {
|
|
2
2
|
display: flex;
|
|
3
3
|
position: relative;
|
|
4
4
|
align-items: stretch;
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import{b as o}from"./chunk.U4P7XQR4.js";var r=o`
|
|
2
|
+
.hot-button {
|
|
3
|
+
/* Use HOT theme variables for consistent styling */
|
|
4
|
+
font-family: var(--hot-font-sans);
|
|
5
|
+
font-weight: var(--hot-font-weight-semibold);
|
|
6
|
+
border-radius: var(--hot-border-radius-medium);
|
|
7
|
+
transition: all 0.2s ease-in-out;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.hot-button::part(base) {
|
|
11
|
+
/* Ensure the base part uses HOT styling */
|
|
12
|
+
font-family: var(--hot-font-sans);
|
|
13
|
+
font-weight: var(--hot-font-weight-semibold);
|
|
14
|
+
border-radius: var(--hot-border-radius-medium);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.hot-button::part(label) {
|
|
18
|
+
/* Style the label part */
|
|
19
|
+
font-family: var(--hot-font-sans);
|
|
20
|
+
font-weight: var(--hot-font-weight-semibold);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Custom HOT gradient variant */
|
|
24
|
+
.hot-button.hot-gradient::part(base) {
|
|
25
|
+
background: linear-gradient(135deg, var(--hot-color-primary-500), var(--hot-color-primary-600));
|
|
26
|
+
border: none;
|
|
27
|
+
color: white;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.hot-button.hot-gradient::part(base):hover {
|
|
31
|
+
background: linear-gradient(135deg, var(--hot-color-primary-600), var(--hot-color-primary-700));
|
|
32
|
+
transform: translateY(-1px);
|
|
33
|
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.hot-button.hot-gradient::part(base):active {
|
|
37
|
+
transform: translateY(0);
|
|
38
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Custom HOT outline variant */
|
|
42
|
+
.hot-button.hot-outline::part(base) {
|
|
43
|
+
background: transparent;
|
|
44
|
+
border: 2px solid var(--hot-color-primary-500);
|
|
45
|
+
color: var(--hot-color-primary-500);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.hot-button.hot-outline::part(base):hover {
|
|
49
|
+
background: var(--hot-color-primary-50);
|
|
50
|
+
border-color: var(--hot-color-primary-600);
|
|
51
|
+
color: var(--hot-color-primary-600);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* Custom HOT ghost variant */
|
|
55
|
+
.hot-button.hot-ghost::part(base) {
|
|
56
|
+
background: transparent;
|
|
57
|
+
border: none;
|
|
58
|
+
color: var(--hot-color-primary-500);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.hot-button.hot-ghost::part(base):hover {
|
|
62
|
+
background: var(--hot-color-primary-50);
|
|
63
|
+
color: var(--hot-color-primary-600);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* HOT Color Variants */
|
|
67
|
+
.hot-button.hot-red::part(base) {
|
|
68
|
+
background: var(--hot-color-red-500);
|
|
69
|
+
border: none;
|
|
70
|
+
color: white;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.hot-button.hot-red::part(base):hover {
|
|
74
|
+
background: var(--hot-color-red-600);
|
|
75
|
+
transform: translateY(-1px);
|
|
76
|
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.hot-button.hot-red::part(base):active {
|
|
80
|
+
transform: translateY(0);
|
|
81
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.hot-button.hot-yellow::part(base) {
|
|
85
|
+
background: var(--hot-color-yellow-500);
|
|
86
|
+
border: none;
|
|
87
|
+
color: var(--hot-color-gray-900);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.hot-button.hot-yellow::part(base):hover {
|
|
91
|
+
background: var(--hot-color-yellow-600);
|
|
92
|
+
transform: translateY(-1px);
|
|
93
|
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.hot-button.hot-yellow::part(base):active {
|
|
97
|
+
transform: translateY(0);
|
|
98
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.hot-button.hot-blue::part(base) {
|
|
102
|
+
background: var(--hot-color-blue-500);
|
|
103
|
+
border: none;
|
|
104
|
+
color: white;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.hot-button.hot-blue::part(base):hover {
|
|
108
|
+
background: var(--hot-color-blue-600);
|
|
109
|
+
transform: translateY(-1px);
|
|
110
|
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.hot-button.hot-blue::part(base):active {
|
|
114
|
+
transform: translateY(0);
|
|
115
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.hot-button.hot-cyan::part(base) {
|
|
119
|
+
background: var(--hot-color-cyan-500);
|
|
120
|
+
border: none;
|
|
121
|
+
color: white;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.hot-button.hot-cyan::part(base):hover {
|
|
125
|
+
background: var(--hot-color-cyan-600);
|
|
126
|
+
transform: translateY(-1px);
|
|
127
|
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.hot-button.hot-cyan::part(base):active {
|
|
131
|
+
transform: translateY(0);
|
|
132
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.hot-button.hot-rose::part(base) {
|
|
136
|
+
background: var(--hot-color-rose-500);
|
|
137
|
+
border: none;
|
|
138
|
+
color: white;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.hot-button.hot-rose::part(base):hover {
|
|
142
|
+
background: var(--hot-color-rose-600);
|
|
143
|
+
transform: translateY(-1px);
|
|
144
|
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.hot-button.hot-rose::part(base):active {
|
|
148
|
+
transform: translateY(0);
|
|
149
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.hot-button.hot-gray::part(base) {
|
|
153
|
+
background: var(--hot-color-gray-500);
|
|
154
|
+
border: none;
|
|
155
|
+
color: white;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.hot-button.hot-gray::part(base):hover {
|
|
159
|
+
background: var(--hot-color-gray-600);
|
|
160
|
+
transform: translateY(-1px);
|
|
161
|
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.hot-button.hot-gray::part(base):active {
|
|
165
|
+
transform: translateY(0);
|
|
166
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* Size variations using HOT spacing */
|
|
170
|
+
.hot-button[size="small"]::part(base) {
|
|
171
|
+
padding: var(--hot-spacing-x-small) var(--hot-spacing-small);
|
|
172
|
+
font-size: var(--hot-font-size-small);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.hot-button[size="medium"]::part(base) {
|
|
176
|
+
padding: var(--hot-spacing-small) var(--hot-spacing-medium);
|
|
177
|
+
font-size: var(--hot-font-size-medium);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.hot-button[size="large"]::part(base) {
|
|
181
|
+
padding: var(--hot-spacing-medium) var(--hot-spacing-large);
|
|
182
|
+
font-size: var(--hot-font-size-large);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/* Icon button specific styling */
|
|
186
|
+
.hot-button[appearance="icon"]::part(base) {
|
|
187
|
+
border-radius: var(--hot-border-radius-circle);
|
|
188
|
+
min-width: auto;
|
|
189
|
+
width: fit-content;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* Loading state */
|
|
193
|
+
.hot-button[loading]::part(base) {
|
|
194
|
+
opacity: 0.7;
|
|
195
|
+
cursor: not-allowed;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* Disabled state */
|
|
199
|
+
.hot-button[disabled]::part(base) {
|
|
200
|
+
opacity: 0.5;
|
|
201
|
+
cursor: not-allowed;
|
|
202
|
+
}
|
|
203
|
+
`;export{r as a};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import '@awesome.me/webawesome/dist/components/button/button.js';
|
|
2
|
+
import '@awesome.me/webawesome/dist/components/icon/icon.js';
|
|
3
|
+
import { LitElement } from "lit";
|
|
4
|
+
import type { CSSResultGroup } from 'lit';
|
|
5
|
+
export declare class Button extends LitElement {
|
|
6
|
+
static styles: CSSResultGroup;
|
|
7
|
+
name: string;
|
|
8
|
+
/** The button variant to use. */
|
|
9
|
+
accessor variant: 'primary' | 'secondary' | 'outline' | 'success' | 'warning' | 'danger';
|
|
10
|
+
/** The button size. */
|
|
11
|
+
accessor size: 'small' | 'medium' | 'large';
|
|
12
|
+
/** The button appearance. */
|
|
13
|
+
accessor appearance: 'default' | 'icon';
|
|
14
|
+
/** Whether the button is disabled. */
|
|
15
|
+
accessor disabled: boolean;
|
|
16
|
+
/** Whether the button is in loading state. */
|
|
17
|
+
accessor loading: boolean;
|
|
18
|
+
/** The icon name to display. */
|
|
19
|
+
accessor icon: string;
|
|
20
|
+
/** The icon position relative to the text. */
|
|
21
|
+
accessor iconPosition: 'start' | 'end';
|
|
22
|
+
/** The button type. */
|
|
23
|
+
accessor type: 'button' | 'submit' | 'reset';
|
|
24
|
+
/** The HOT color variant to use. */
|
|
25
|
+
accessor hotColor: 'red' | 'yellow' | 'blue' | 'cyan' | 'rose' | 'gray' | '';
|
|
26
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
27
|
+
}
|
|
28
|
+
export default Button;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"../../chunks/chunk.HDZFWGNV.js";import"../../chunks/chunk.U4GEH6YR.js";import"../../chunks/chunk.O2GMJYSL.js";import"../../chunks/chunk.CS444ZXM.js";import"../../chunks/chunk.6ZDEZIWM.js";import"../../chunks/chunk.KO4EOD3I.js";import"../../chunks/chunk.U4P7XQR4.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as Button,b as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../chunks/chunk.H5ZQREL2.js";import"../../chunks/chunk.HDZFWGNV.js";import"../../chunks/chunk.U4GEH6YR.js";import"../../chunks/chunk.O2GMJYSL.js";import"../../chunks/chunk.CS444ZXM.js";import"../../chunks/chunk.6ZDEZIWM.js";import"../../chunks/chunk.KO4EOD3I.js";import"../../chunks/chunk.U4P7XQR4.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../chunks/chunk.U4GEH6YR.js";import"../../chunks/chunk.U4P7XQR4.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunks/chunk.CS56NBTQ.js";import"../../chunks/chunk.
|
|
1
|
+
import{a,b}from"../../chunks/chunk.CS56NBTQ.js";import"../../chunks/chunk.QT57GV7H.js";import"../../chunks/chunk.O2GMJYSL.js";import"../../chunks/chunk.CS444ZXM.js";import"../../chunks/chunk.6ZDEZIWM.js";import"../../chunks/chunk.KO4EOD3I.js";import"../../chunks/chunk.T4GALJJA.js";import"../../chunks/chunk.U4P7XQR4.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.UYOJKKGV.js";import"../../chunks/chunk.CS56NBTQ.js";import"../../chunks/chunk.
|
|
1
|
+
import{a}from"../../chunks/chunk.UYOJKKGV.js";import"../../chunks/chunk.CS56NBTQ.js";import"../../chunks/chunk.QT57GV7H.js";import"../../chunks/chunk.O2GMJYSL.js";import"../../chunks/chunk.CS444ZXM.js";import"../../chunks/chunk.6ZDEZIWM.js";import"../../chunks/chunk.KO4EOD3I.js";import"../../chunks/chunk.T4GALJJA.js";import"../../chunks/chunk.U4P7XQR4.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as default};
|
|
@@ -1,25 +1,13 @@
|
|
|
1
1
|
import '@awesome.me/webawesome/dist/components/tab-group/tab-group.js';
|
|
2
2
|
import '@awesome.me/webawesome/dist/components/dialog/dialog.js';
|
|
3
|
-
import '@awesome.me/webawesome/dist/components/button/button.js';
|
|
4
3
|
import '@awesome.me/webawesome/dist/components/icon/icon.js';
|
|
5
4
|
import { LitElement } from "lit";
|
|
6
|
-
import { type sizes } from './header.styles.js';
|
|
7
5
|
import type { CSSResultGroup } from 'lit';
|
|
6
|
+
import { type sizes } from './header.styles.js';
|
|
8
7
|
interface MenuItem {
|
|
9
8
|
label: string;
|
|
10
9
|
clickEvent: () => void;
|
|
11
10
|
}
|
|
12
|
-
interface LoginProvider {
|
|
13
|
-
icon?: string;
|
|
14
|
-
loginUrl: string;
|
|
15
|
-
redirectUrl: string;
|
|
16
|
-
clientId?: string;
|
|
17
|
-
name?: string;
|
|
18
|
-
scope?: string;
|
|
19
|
-
}
|
|
20
|
-
interface LoginProviders {
|
|
21
|
-
[key: string]: LoginProvider;
|
|
22
|
-
}
|
|
23
11
|
export declare class Header extends LitElement {
|
|
24
12
|
static styles: CSSResultGroup;
|
|
25
13
|
name: string;
|
|
@@ -41,19 +29,10 @@ export declare class Header extends LitElement {
|
|
|
41
29
|
accessor showLogin: boolean;
|
|
42
30
|
/** Control the login modal state. */
|
|
43
31
|
accessor loginModalOpen: boolean;
|
|
44
|
-
/** Configuration object for login providers. */
|
|
45
|
-
accessor loginProviders: LoginProviders;
|
|
46
32
|
/** Default fallback icon for providers without custom icons. */
|
|
47
33
|
accessor defaultLoginIcon: string;
|
|
48
|
-
|
|
49
|
-
accessor OsmOauthClientId: string;
|
|
50
|
-
accessor OsmOauthRedirectUri: string;
|
|
51
|
-
private get loginOptions();
|
|
52
|
-
private formatProviderName;
|
|
34
|
+
connectedCallback(): Promise<void>;
|
|
53
35
|
selectTab(index: number): void;
|
|
54
|
-
private performLogin;
|
|
55
|
-
private legacyOsmLoginRedirect;
|
|
56
|
-
private handleSignIn;
|
|
57
36
|
protected render(): import("lit").TemplateResult<1>;
|
|
58
37
|
private _tabClick;
|
|
59
38
|
private _handleLogin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunks/chunk.
|
|
1
|
+
import{a,b}from"../../chunks/chunk.EMBNMR2N.js";import"../../chunks/chunk.HQE63XEZ.js";import"../../chunks/chunk.CS444ZXM.js";import"../../chunks/chunk.6ZDEZIWM.js";import"../../chunks/chunk.KO4EOD3I.js";import"../../chunks/chunk.U4P7XQR4.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.EROFXAZH.js";import"../../chunks/chunk.EMBNMR2N.js";import"../../chunks/chunk.HQE63XEZ.js";import"../../chunks/chunk.CS444ZXM.js";import"../../chunks/chunk.6ZDEZIWM.js";import"../../chunks/chunk.KO4EOD3I.js";import"../../chunks/chunk.U4P7XQR4.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.HQE63XEZ.js";import"../../chunks/chunk.U4P7XQR4.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as headerVariants,b as styles};
|
|
@@ -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,b}from"../../chunks/chunk.PDLGEB7T.js";import"../../chunks/chunk.
|
|
1
|
+
import{a,b}from"../../chunks/chunk.PDLGEB7T.js";import"../../chunks/chunk.QT57GV7H.js";import"../../chunks/chunk.O2GMJYSL.js";import"../../chunks/chunk.CS444ZXM.js";import"../../chunks/chunk.6ZDEZIWM.js";import"../../chunks/chunk.U4P7XQR4.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.YYEOK7MA.js";import"../../chunks/chunk.PDLGEB7T.js";import"../../chunks/chunk.
|
|
1
|
+
import{a}from"../../chunks/chunk.YYEOK7MA.js";import"../../chunks/chunk.PDLGEB7T.js";import"../../chunks/chunk.QT57GV7H.js";import"../../chunks/chunk.O2GMJYSL.js";import"../../chunks/chunk.CS444ZXM.js";import"../../chunks/chunk.6ZDEZIWM.js";import"../../chunks/chunk.U4P7XQR4.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as default};
|
package/dist/hotosm-ui.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ import HotHeader from './components/header/header.js';
|
|
|
2
2
|
import HotLogo from './components/logo/logo.js';
|
|
3
3
|
import HotTracking from './components/tracking/tracking.js';
|
|
4
4
|
import HotConsent from './components/consent/consent.js';
|
|
5
|
-
|
|
5
|
+
import HotButton from './components/button/button.js';
|
|
6
|
+
export { HotHeader as Header, HotLogo as Logo, HotConsent as Consent, HotTracking as Tracking, HotButton as Button, };
|
package/dist/hotosm-ui.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as o}from"./chunks/chunk.EROFXAZH.js";import"./chunks/chunk.EMBNMR2N.js";import"./chunks/chunk.HQE63XEZ.js";import{a as t}from"./chunks/chunk.SZ46YTWY.js";import"./chunks/chunk.7RJ72M75.js";import"./chunks/chunk.UTSKEKTV.js";import{a as r}from"./chunks/chunk.YYEOK7MA.js";import"./chunks/chunk.PDLGEB7T.js";import{a}from"./chunks/chunk.H5ZQREL2.js";import"./chunks/chunk.HDZFWGNV.js";import"./chunks/chunk.U4GEH6YR.js";import{a as m}from"./chunks/chunk.UYOJKKGV.js";import"./chunks/chunk.CS56NBTQ.js";import"./chunks/chunk.QT57GV7H.js";import"./chunks/chunk.O2GMJYSL.js";import"./chunks/chunk.CS444ZXM.js";import"./chunks/chunk.6ZDEZIWM.js";import"./chunks/chunk.KO4EOD3I.js";import"./chunks/chunk.T4GALJJA.js";import"./chunks/chunk.U4P7XQR4.js";import"./chunks/chunk.NI7UJOOZ.js";export{a as Button,m as Consent,o as Header,t as Logo,r as Tracking};
|
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-b4",
|
|
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
|