@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.
Files changed (35) hide show
  1. package/dist/assets/logo/osm-logo.svg +277 -0
  2. package/dist/chunks/{chunk.D2BMH7HD.js → chunk.CS444ZXM.js} +54 -54
  3. package/dist/chunks/chunk.EMBNMR2N.js +692 -0
  4. package/dist/chunks/chunk.EROFXAZH.js +1 -0
  5. package/dist/chunks/chunk.H5ZQREL2.js +1 -0
  6. package/dist/chunks/chunk.HDZFWGNV.js +19 -0
  7. package/dist/chunks/chunk.HQE63XEZ.js +96 -0
  8. package/dist/chunks/chunk.O2GMJYSL.js +0 -0
  9. package/dist/chunks/{chunk.LPSHZWUY.js → chunk.QT57GV7H.js} +1 -1
  10. package/dist/chunks/chunk.U4GEH6YR.js +203 -0
  11. package/dist/components/button/button.component.d.ts +28 -0
  12. package/dist/components/button/button.component.js +1 -0
  13. package/dist/components/button/button.d.ts +7 -0
  14. package/dist/components/button/button.js +1 -0
  15. package/dist/components/button/button.styles.d.ts +2 -0
  16. package/dist/components/button/button.styles.js +1 -0
  17. package/dist/components/consent/consent.component.js +1 -1
  18. package/dist/components/consent/consent.d.ts +0 -10
  19. package/dist/components/consent/consent.js +1 -1
  20. package/dist/components/header/header.component.d.ts +2 -23
  21. package/dist/components/header/header.component.js +1 -1
  22. package/dist/components/header/header.d.ts +0 -10
  23. package/dist/components/header/header.js +1 -1
  24. package/dist/components/header/header.styles.js +1 -1
  25. package/dist/components/logo/logo.d.ts +0 -10
  26. package/dist/components/tracking/tracking.component.js +1 -1
  27. package/dist/components/tracking/tracking.d.ts +0 -10
  28. package/dist/components/tracking/tracking.js +1 -1
  29. package/dist/hotosm-ui.d.ts +2 -1
  30. package/dist/hotosm-ui.js +1 -1
  31. package/package.json +5 -6
  32. package/dist/assets/logo/osm-logo.png +0 -0
  33. package/dist/chunks/chunk.5F5JALRB.js +0 -669
  34. package/dist/chunks/chunk.H4QL3V4P.js +0 -1
  35. package/dist/chunks/chunk.HTYJKOJL.js +0 -171
@@ -1 +0,0 @@
1
- import{b as e}from"./chunk.5F5JALRB.js";var r=e;customElements.define("hot-header",e);export{r as a};
@@ -1,171 +0,0 @@
1
- import{b as v}from"./chunk.U4P7XQR4.js";import{a as c,c as f}from"./chunk.NI7UJOOZ.js";function p(t){var o,e,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(o=0;o<i;o++)t[o]&&(e=p(t[o]))&&(r&&(r+=" "),r+=e)}else for(e in t)t[e]&&(r&&(r+=" "),r+=e);return r}function b(){for(var t,o,e=0,r="",i=arguments.length;e<i;e++)(t=arguments[e])&&(o=p(t))&&(r&&(r+=" "),r+=o);return r}var x=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,y=b,z=(t,o)=>e=>{var r;if((o==null?void 0:o.variants)==null)return y(t,e==null?void 0:e.class,e==null?void 0:e.className);let{variants:i,defaultVariants:s}=o,w=Object.keys(i).map(a=>{let n=e==null?void 0:e[a],d=s==null?void 0:s[a];if(n===null)return null;let l=x(n)||x(d);return i[a][l]}),h=e&&Object.entries(e).reduce((a,n)=>{let[d,l]=n;return l===void 0||(a[d]=l),a},{}),j=o==null||(r=o.compoundVariants)===null||r===void 0?void 0:r.reduce((a,n)=>{let g=n,{class:d,className:l}=g,k=f(g,["class","className"]);return Object.entries(k).every(V=>{let[u,m]=V;return Array.isArray(m)?m.includes(c(c({},s),h)[u]):c(c({},s),h)[u]===m})?[...a,d,l]:a},[]);return y(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=v`
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
- .header--login-button {
78
- color: var(--hot-color-red-500);
79
- background-color: var(--hot-color-red-600);
80
- }
81
-
82
- .header--logo-img {
83
- }
84
-
85
- .header--tab {
86
- border-bottom: 2px solid;
87
- border-color: transparent;
88
- }
89
- .header--tab-active {
90
- border-color: var(--hot-color-neutral-1000);
91
- }
92
-
93
- /* Login Modal Styles */
94
- .login-modal {
95
- --width: 35rem;
96
- --border-radius: 8px;
97
- --background-color: white;
98
- }
99
-
100
- .login-modal::part(header) {
101
- padding: 1.5rem 1.5rem 0 1.5rem;
102
- }
103
-
104
- .login-modal::part(body) {
105
- padding: 0 1.5rem 1.5rem 1.5rem;
106
- }
107
-
108
- .login-content {
109
- display: flex;
110
- flex-direction: column;
111
- align-items: flex-start;
112
- width: 100%;
113
- }
114
-
115
- .login-title {
116
- font-size: 1.5rem;
117
- font-weight: 700;
118
- margin-bottom: 1rem;
119
- color: #1f2937;
120
- }
121
-
122
- .login-options {
123
- width: 100%;
124
- display: flex;
125
- flex-direction: column;
126
- gap: 1rem;
127
- }
128
-
129
- .login-option {
130
- background-color: #f5f5f5;
131
- border: 1px solid #d1d5db;
132
- color: #374151;
133
- padding: 0.75rem 1rem;
134
- border-radius: 6px;
135
- cursor: pointer;
136
- font-size: 0.875rem;
137
- display: flex;
138
- align-items: center;
139
- gap: 0.75rem;
140
- transition: all 0.3s ease;
141
- min-height: 3rem;
142
- }
143
-
144
- .login-option:hover {
145
- border-color: #d73f3f;
146
- color: #d73f3f;
147
- }
148
-
149
- .login-option-icon {
150
- width: 2.5rem;
151
- height: 2.5rem;
152
- max-width: 2.5rem;
153
- min-width: 2.5rem;
154
- display: flex;
155
- align-items: center;
156
- justify-content: center;
157
- flex-shrink: 0;
158
- }
159
-
160
- .login-option-icon img {
161
- width: 100%;
162
- height: 100%;
163
- object-fit: contain;
164
- }
165
-
166
- .login-option-text {
167
- font-size: 1.125rem;
168
- font-weight: 400;
169
- line-height: 1.5;
170
- }
171
- `;export{_ as a,B as b};