@hotosm/ui 0.3.4-b3 → 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 (58) hide show
  1. package/README.md +1 -1
  2. package/dist/chunks/{chunk.SVLPRECX.js → chunk.3DAASGWT.js} +1 -1
  3. package/dist/chunks/chunk.5AWU5BEU.js +1 -0
  4. package/dist/chunks/{chunk.CY4WTDL2.js → chunk.6TJUNYFL.js} +1 -1
  5. package/dist/chunks/{chunk.TYOVPHVD.js → chunk.BB52VMVE.js} +1 -1
  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.SLQC3DLQ.js → chunk.G3Z3BOX2.js} +2 -2
  11. package/dist/chunks/chunk.JFO3Z4VS.js +1 -0
  12. package/dist/chunks/{chunk.WSMXFTSE.js → chunk.KNTMZWRV.js} +2 -2
  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.NA3GD2QI.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.SHZIJ2ZS.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 +14 -3
  52. package/dist/chunks/chunk.2LYFUHTS.js +0 -633
  53. package/dist/chunks/chunk.5EPWWJMT.js +0 -1
  54. package/dist/chunks/chunk.7M3AMUDU.js +0 -1
  55. package/dist/chunks/chunk.FT6RSQVB.js +0 -25
  56. package/dist/chunks/chunk.JHIEUZ7A.js +0 -1
  57. package/dist/chunks/chunk.XB4PECPF.js +0 -1
  58. package/dist/themes/hot-button-override.css +0 -246
package/README.md CHANGED
@@ -192,7 +192,7 @@ are bound to slightly differently:
192
192
  For **styling**, check `/theme`:
193
193
 
194
194
  - `hot.css` has a HOT theme, used across HOT components.
195
- - `hot-wa-override.css` has a WebAwesome theme, re-defining style variables.
195
+ - `hot-wa.css` has a WebAwesome theme, re-defining style variables.
196
196
 
197
197
  ### License
198
198
 
@@ -1,4 +1,4 @@
1
- import{a as e}from"./chunk.WSMXFTSE.js";var t=e`
1
+ import{a as e}from"./chunk.KNTMZWRV.js";var t=e`
2
2
  .logo {
3
3
  line-height: 0;
4
4
  height: var(--hot-spacing-3x-large)
@@ -0,0 +1 @@
1
+ import{b as o}from"./chunk.YH5QYI7V.js";var t=o;customElements.define("hot-logo",o);export{t as a};
@@ -1,4 +1,4 @@
1
- import{a as f}from"./chunk.WSMXFTSE.js";import{a as h,c as v}from"./chunk.N2W26RCT.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 n=t.length;for(r=0;r<n;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="",n=arguments.length;e<n;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:n,defaultVariants:s}=r,z=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 g=i,{class:d,className:l}=g,k=v(g,["class","className"]);return Object.entries(k).every(V=>{let[u,c]=V;return Array.isArray(c)?c.includes(h(h({},s),m)[u]):h(h({},s),m)[u]===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(`
1
+ import{a as f}from"./chunk.KNTMZWRV.js";import{a as h,c as v}from"./chunk.N2W26RCT.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 n=t.length;for(r=0;r<n;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="",n=arguments.length;e<n;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:n,defaultVariants:s}=r,z=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 g=i,{class:d,className:l}=g,k=v(g,["class","className"]);return Object.entries(k).every(V=>{let[u,c]=V;return Array.isArray(c)?c.includes(h(h({},s),m)[u]):h(h({},s),m)[u]===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
2
  header
3
3
  `,{variants:{size:{small:"header--size-small",medium:"header--size-medium",large:"header--size-large"},borderBottom:{true:"border-bottom"}}}),_=f`
4
4
  .header {
@@ -1,4 +1,4 @@
1
- import{a as o}from"./chunk.WSMXFTSE.js";var t=o`
1
+ import{a as o}from"./chunk.KNTMZWRV.js";var t=o`
2
2
  :host {
3
3
  display: block;
4
4
  }