@hotosm/ui 0.3.4-b2 → 0.4.0

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.
Files changed (61) hide show
  1. package/README.md +1 -1
  2. package/dist/chunks/{chunk.LF3EJYUJ.js → chunk.3DAASGWT.js} +1 -1
  3. package/dist/chunks/chunk.5AWU5BEU.js +1 -0
  4. package/dist/chunks/{chunk.3M4SJCXS.js → chunk.6TJUNYFL.js} +49 -35
  5. package/dist/chunks/{chunk.OCJJFWT7.js → chunk.BB52VMVE.js} +55 -50
  6. package/dist/chunks/chunk.EAG35WPB.js +122 -0
  7. package/dist/chunks/chunk.EOTM323U.js +71 -0
  8. package/dist/chunks/chunk.EYNFK5TH.js +187 -0
  9. package/dist/chunks/chunk.FBYBLQYY.js +25 -0
  10. package/dist/chunks/{chunk.LET777HR.js → chunk.G3Z3BOX2.js} +2 -2
  11. package/dist/chunks/chunk.JFO3Z4VS.js +1 -0
  12. package/dist/chunks/chunk.KNTMZWRV.js +28 -0
  13. package/dist/chunks/chunk.L3MJ3UC7.js +1 -0
  14. package/dist/chunks/chunk.LR75BDGN.js +20 -0
  15. package/dist/chunks/chunk.OFDFUT7C.js +1 -0
  16. package/dist/chunks/{chunk.LFXZGORR.js → chunk.VA2JNCZO.js} +1 -1
  17. package/dist/chunks/chunk.VNFZXHID.js +1 -0
  18. package/dist/chunks/chunk.XNPNEHIJ.js +1 -0
  19. package/dist/chunks/{chunk.OKOD2JGL.js → chunk.YH5QYI7V.js} +1 -1
  20. package/dist/chunks/chunk.ZU62FSGZ.js +105 -0
  21. package/dist/components/consent/consent.component.js +1 -1
  22. package/dist/components/consent/consent.js +1 -1
  23. package/dist/components/consent/consent.styles.js +1 -1
  24. package/dist/components/file-input-dropzone/file-input-dropzone.component.d.ts +39 -0
  25. package/dist/components/file-input-dropzone/file-input-dropzone.component.js +1 -0
  26. package/dist/components/file-input-dropzone/file-input-dropzone.d.ts +8 -0
  27. package/dist/components/file-input-dropzone/file-input-dropzone.js +1 -0
  28. package/dist/components/file-input-dropzone/file-input-dropzone.styles.d.ts +2 -0
  29. package/dist/components/file-input-dropzone/file-input-dropzone.styles.js +1 -0
  30. package/dist/components/header/header.component.d.ts +0 -2
  31. package/dist/components/header/header.component.js +1 -1
  32. package/dist/components/header/header.js +1 -1
  33. package/dist/components/header/header.styles.js +1 -1
  34. package/dist/components/list-card/list-card.component.d.ts +16 -0
  35. package/dist/components/list-card/list-card.component.js +1 -0
  36. package/dist/components/list-card/list-card.d.ts +7 -0
  37. package/dist/components/list-card/list-card.js +1 -0
  38. package/dist/components/list-card/list-card.styles.d.ts +2 -0
  39. package/dist/components/list-card/list-card.styles.js +1 -0
  40. package/dist/components/logo/logo.component.js +1 -1
  41. package/dist/components/logo/logo.js +1 -1
  42. package/dist/components/logo/logo.styles.js +1 -1
  43. package/dist/components/tracking/tracking.component.js +1 -1
  44. package/dist/components/tracking/tracking.js +1 -1
  45. package/dist/hotosm-ui.d.ts +4 -2
  46. package/dist/hotosm-ui.js +1 -1
  47. package/dist/style.css +4 -3
  48. package/dist/themes/{hot-wa-override.css → hot-wa.css} +122 -323
  49. package/dist/themes/hot.css +15 -15
  50. package/dist/utils/shadow-dom-css.d.ts +3 -17
  51. package/package.json +16 -3
  52. package/dist/chunks/chunk.2NK5PHJW.js +0 -1531
  53. package/dist/chunks/chunk.6EX2DAUF.js +0 -1
  54. package/dist/chunks/chunk.6HOFUZAE.js +0 -69
  55. package/dist/chunks/chunk.C6I42VVF.js +0 -28
  56. package/dist/chunks/chunk.N7VH3RWY.js +0 -688
  57. package/dist/chunks/chunk.NXHCSWIR.js +0 -1
  58. package/dist/chunks/chunk.OHYOXYF2.js +0 -25
  59. package/dist/chunks/chunk.PSMDEZL4.js +0 -1
  60. package/dist/chunks/chunk.U4WXIJS7.js +0 -1
  61. package/dist/themes/hot-button-override.css +0 -246
@@ -1 +0,0 @@
1
- import{b as e}from"./chunk.LFXZGORR.js";var n=e;customElements.define("hot-consent",e);export{n as a};
@@ -1,25 +0,0 @@
1
- import{c as d,d as m}from"./chunk.C6I42VVF.js";import{a as l,b as p}from"./chunk.N2W26RCT.js";var y={attribute:!0,type:String,converter:d,reflect:!1,hasChanged:m},g=(e=y,o,t)=>{let{kind:a,metadata:c}=t,i=globalThis.litPropertyMetadata.get(c);if(i===void 0&&globalThis.litPropertyMetadata.set(c,i=new Map),a==="setter"&&((e=Object.create(e)).wrapped=!0),i.set(t.name,e),a==="accessor"){let{name:n}=t;return{set(s){let r=o.get.call(this);o.set.call(this,s),this.requestUpdate(n,r,e)},init(s){return s!==void 0&&this.C(n,void 0,e,s),s}}}if(a==="setter"){let{name:n}=t;return function(s){let r=this[n];o.call(this,s),this.requestUpdate(n,r,e)}}throw Error("Unsupported decorator location: "+a)};function f(e){return(o,t)=>typeof t=="object"?g(e,o,t):((a,c,i)=>{let n=c.hasOwnProperty(i);return c.constructor.createProperty(i,a),n?Object.getOwnPropertyDescriptor(c,i):void 0})(e,o,t)}function v(e){return f(p(l({},e),{state:!0,attribute:!1}))}var O=e=>(o,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(e,o)}):customElements.define(e,o)};var u=(e,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(e,o,t),t);function A(e,o){return(t,a,c)=>{let i=n=>{var s,r;return(r=(s=n.renderRoot)==null?void 0:s.querySelector(e))!=null?r:null};if(o){let{get:n,set:s}=typeof a=="object"?t:c!=null?c:(()=>{let r=Symbol();return{get(){return this[r]},set(h){this[r]=h}}})();return u(t,a,{get(){let r=n.call(this);return r===void 0&&(r=i(this),(r!==null||this.hasUpdated)&&s.call(this,r)),r}})}return u(t,a,{get(){return i(this)}})}}export{O as a,f as b,v as c,A as d};
2
- /*! Bundled license information:
3
-
4
- @lit/reactive-element/decorators/property.js:
5
- @lit/reactive-element/decorators/state.js:
6
- @lit/reactive-element/decorators/custom-element.js:
7
- @lit/reactive-element/decorators/event-options.js:
8
- @lit/reactive-element/decorators/base.js:
9
- @lit/reactive-element/decorators/query.js:
10
- @lit/reactive-element/decorators/query-all.js:
11
- @lit/reactive-element/decorators/query-async.js:
12
- @lit/reactive-element/decorators/query-assigned-nodes.js:
13
- (**
14
- * @license
15
- * Copyright 2017 Google LLC
16
- * SPDX-License-Identifier: BSD-3-Clause
17
- *)
18
-
19
- @lit/reactive-element/decorators/query-assigned-elements.js:
20
- (**
21
- * @license
22
- * Copyright 2021 Google LLC
23
- * SPDX-License-Identifier: BSD-3-Clause
24
- *)
25
- */
@@ -1 +0,0 @@
1
- import{b as o}from"./chunk.OKOD2JGL.js";var t=o;customElements.define("hot-logo",o);export{t as a};
@@ -1 +0,0 @@
1
- import{f as e}from"./chunk.2NK5PHJW.js";var r=e;customElements.define("hot-header",e);export{r as a};
@@ -1,246 +0,0 @@
1
- /* HOT Button Component Override using CSS Parts */
2
- /* This file specifically targets wa-button components to ensure hot-red-color is used as primary */
3
-
4
- /* Import the HOT theme variables */
5
- @import 'hot.css';
6
-
7
- /* CSS Parts override for wa-button component */
8
- wa-button {
9
- /* Ensure the component uses HOT theme variables */
10
- --wa-color-brand-95: var(--hot-color-red-50);
11
- --wa-color-brand-90: var(--hot-color-red-100);
12
- --wa-color-brand-80: var(--hot-color-red-200);
13
- --wa-color-brand-70: var(--hot-color-red-300);
14
- --wa-color-brand-60: var(--hot-color-red-400);
15
- --wa-color-brand-50: var(--hot-color-red-500);
16
- --wa-color-brand-40: var(--hot-color-red-600);
17
- --wa-color-brand-30: var(--hot-color-red-700);
18
- --wa-color-brand-20: var(--hot-color-red-800);
19
- --wa-color-brand-10: var(--hot-color-red-900);
20
- --wa-color-brand-05: var(--hot-color-red-950);
21
- --wa-color-brand: var(--hot-color-red-500);
22
- --wa-color-brand-key: 50;
23
- }
24
-
25
- /* Primary button variant using CSS parts */
26
- wa-button[variant="primary"]::part(base) {
27
- background: linear-gradient(135deg, var(--hot-color-red-500), var(--hot-color-red-600));
28
- border: 1px solid var(--hot-color-red-600);
29
- color: white;
30
- box-shadow: 0 2px 4px rgba(211, 63, 63, 0.3);
31
- transition: all 0.2s ease;
32
- }
33
-
34
- wa-button[variant="primary"]::part(base):hover {
35
- background: linear-gradient(135deg, var(--hot-color-red-600), var(--hot-color-red-700));
36
- border-color: var(--hot-color-red-700);
37
- box-shadow: 0 4px 8px rgba(211, 63, 63, 0.4);
38
- transform: translateY(-1px);
39
- }
40
-
41
- wa-button[variant="primary"]::part(base):active {
42
- background: linear-gradient(135deg, var(--hot-color-red-700), var(--hot-color-red-800));
43
- border-color: var(--hot-color-red-800);
44
- box-shadow: 0 1px 3px rgba(211, 63, 63, 0.3);
45
- transform: translateY(0);
46
- }
47
-
48
- wa-button[variant="primary"]::part(base):focus-visible {
49
- outline: 2px solid var(--hot-color-red-400);
50
- outline-offset: 2px;
51
- }
52
-
53
- /* Brand variant (alternative to primary) */
54
- wa-button[variant="brand"]::part(base) {
55
- background: linear-gradient(135deg, var(--hot-color-red-500), var(--hot-color-red-600));
56
- border: 1px solid var(--hot-color-red-600);
57
- color: white;
58
- box-shadow: 0 2px 4px rgba(211, 63, 63, 0.3);
59
- transition: all 0.2s ease;
60
- }
61
-
62
- wa-button[variant="brand"]::part(base):hover {
63
- background: linear-gradient(135deg, var(--hot-color-red-600), var(--hot-color-red-700));
64
- border-color: var(--hot-color-red-700);
65
- box-shadow: 0 4px 8px rgba(211, 63, 63, 0.4);
66
- transform: translateY(-1px);
67
- }
68
-
69
- wa-button[variant="brand"]::part(base):active {
70
- background: linear-gradient(135deg, var(--hot-color-red-700), var(--hot-color-red-800));
71
- border-color: var(--hot-color-red-800);
72
- box-shadow: 0 1px 3px rgba(211, 63, 63, 0.3);
73
- transform: translateY(0);
74
- }
75
-
76
- /* Outline variant with hot-red-color */
77
- wa-button[variant="outline"]::part(base) {
78
- background: transparent;
79
- border: 2px solid var(--hot-color-red-500);
80
- color: var(--hot-color-red-500);
81
- transition: all 0.2s ease;
82
- }
83
-
84
- wa-button[variant="outline"]::part(base):hover {
85
- background: var(--hot-color-red-50);
86
- border-color: var(--hot-color-red-600);
87
- color: var(--hot-color-red-600);
88
- box-shadow: 0 2px 4px rgba(211, 63, 63, 0.2);
89
- }
90
-
91
- wa-button[variant="outline"]::part(base):active {
92
- background: var(--hot-color-red-100);
93
- border-color: var(--hot-color-red-700);
94
- color: var(--hot-color-red-700);
95
- }
96
-
97
- /* Text variant with hot-red-color */
98
- wa-button[variant="text"]::part(base) {
99
- background: transparent;
100
- border: none;
101
- color: var(--hot-color-red-500);
102
- transition: all 0.2s ease;
103
- }
104
-
105
- wa-button[variant="text"]::part(base):hover {
106
- background: var(--hot-color-red-50);
107
- color: var(--hot-color-red-600);
108
- }
109
-
110
- wa-button[variant="text"]::part(base):active {
111
- background: var(--hot-color-red-100);
112
- color: var(--hot-color-red-700);
113
- }
114
-
115
- /* Custom HOT red button class */
116
- wa-button.hot-red::part(base) {
117
- background: linear-gradient(135deg, var(--hot-color-red-500), var(--hot-color-red-600));
118
- border: 1px solid var(--hot-color-red-600);
119
- color: white;
120
- font-weight: 600;
121
- box-shadow: 0 2px 4px rgba(211, 63, 63, 0.3);
122
- transition: all 0.2s ease;
123
- }
124
-
125
- wa-button.hot-red::part(base):hover {
126
- background: linear-gradient(135deg, var(--hot-color-red-600), var(--hot-color-red-700));
127
- border-color: var(--hot-color-red-700);
128
- box-shadow: 0 4px 12px rgba(211, 63, 63, 0.4);
129
- transform: translateY(-2px);
130
- }
131
-
132
- wa-button.hot-red::part(base):active {
133
- background: linear-gradient(135deg, var(--hot-color-red-700), var(--hot-color-red-800));
134
- border-color: var(--hot-color-red-800);
135
- box-shadow: 0 1px 3px rgba(211, 63, 63, 0.3);
136
- transform: translateY(0);
137
- }
138
-
139
- /* Enhanced button label styling */
140
- wa-button::part(label) {
141
- font-family: var(--hot-font-sans);
142
- font-weight: 500;
143
- letter-spacing: 0.025em;
144
- }
145
-
146
- /* Button states */
147
- wa-button:state(disabled)::part(base) {
148
- opacity: 0.5;
149
- cursor: not-allowed;
150
- transform: none;
151
- box-shadow: none;
152
- background: var(--hot-color-gray-200);
153
- border-color: var(--hot-color-gray-300);
154
- color: var(--hot-color-gray-500);
155
- }
156
-
157
- wa-button:state(loading)::part(base) {
158
- cursor: wait;
159
- position: relative;
160
- }
161
-
162
- /* Size variants with hot-red-color */
163
- wa-button[size="small"]::part(base) {
164
- padding: 0.5rem 1rem;
165
- font-size: 0.875rem;
166
- border-radius: 0.25rem;
167
- }
168
-
169
- wa-button[size="large"]::part(base) {
170
- padding: 0.875rem 1.75rem;
171
- font-size: 1.125rem;
172
- border-radius: 0.5rem;
173
- }
174
-
175
- /* Icon button with hot-red-color */
176
- wa-button[appearance="icon"]::part(base) {
177
- border-radius: 50%;
178
- padding: 0.75rem;
179
- min-width: 2.5rem;
180
- min-height: 2.5rem;
181
- display: flex;
182
- align-items: center;
183
- justify-content: center;
184
- }
185
-
186
- wa-button[appearance="icon"][variant="primary"]::part(base) {
187
- background: var(--hot-color-red-500);
188
- border-color: var(--hot-color-red-600);
189
- color: white;
190
- }
191
-
192
- wa-button[appearance="icon"][variant="primary"]::part(base):hover {
193
- background: var(--hot-color-red-600);
194
- border-color: var(--hot-color-red-700);
195
- }
196
-
197
- /* Focus styles for accessibility */
198
- wa-button::part(base):focus-visible {
199
- outline: 2px solid var(--hot-color-red-400);
200
- outline-offset: 2px;
201
- }
202
-
203
- /* Custom animation for hot-red buttons */
204
- @keyframes hot-red-pulse {
205
- 0% {
206
- box-shadow: 0 2px 4px rgba(211, 63, 63, 0.3);
207
- }
208
- 50% {
209
- box-shadow: 0 4px 8px rgba(211, 63, 63, 0.5);
210
- }
211
- 100% {
212
- box-shadow: 0 2px 4px rgba(211, 63, 63, 0.3);
213
- }
214
- }
215
-
216
- wa-button.hot-red-pulse::part(base) {
217
- animation: hot-red-pulse 2s infinite;
218
- }
219
-
220
- /* High contrast mode support */
221
- @media (prefers-contrast: high) {
222
- wa-button[variant="primary"]::part(base) {
223
- border: 2px solid var(--hot-color-red-900);
224
- background: var(--hot-color-red-700);
225
- }
226
-
227
- wa-button[variant="outline"]::part(base) {
228
- border: 2px solid var(--hot-color-red-700);
229
- color: var(--hot-color-red-700);
230
- }
231
- }
232
-
233
- /* Reduced motion support */
234
- @media (prefers-reduced-motion: reduce) {
235
- wa-button::part(base) {
236
- transition: none;
237
- }
238
-
239
- wa-button::part(base):hover {
240
- transform: none;
241
- }
242
-
243
- wa-button.hot-red-pulse::part(base) {
244
- animation: none;
245
- }
246
- }