@hotosm/ui 0.3.2-b3 → 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.
@@ -1,168 +0,0 @@
1
- import{b as v}from"./chunk.U4P7XQR4.js";import{a as c,c as u}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=u(g,["class","className"]);return Object.entries(k).every(V=>{let[f,m]=V;return Array.isArray(m)?m.includes(c(c({},s),h)[f]):c(c({},s),h)[f]===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
-
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
-
97
- .login-modal::part(header) {
98
- padding: 1.5rem 1.5rem 0 1.5rem;
99
- }
100
-
101
- .login-modal::part(body) {
102
- padding: 0 1.5rem 1.5rem 1.5rem;
103
- }
104
-
105
- .login-content {
106
- display: flex;
107
- flex-direction: column;
108
- align-items: flex-start;
109
- width: 100%;
110
- }
111
-
112
- .login-title {
113
- font-size: 1.5rem;
114
- font-weight: 700;
115
- margin-bottom: 1rem;
116
- color: #1f2937;
117
- }
118
-
119
- .login-options {
120
- width: 100%;
121
- display: flex;
122
- flex-direction: column;
123
- gap: 1rem;
124
- }
125
-
126
- .login-option {
127
- background-color: #f5f5f5;
128
- border: 1px solid #d1d5db;
129
- color: #374151;
130
- padding: 0.75rem 1rem;
131
- border-radius: 6px;
132
- cursor: pointer;
133
- font-size: 0.875rem;
134
- display: flex;
135
- align-items: center;
136
- gap: 0.75rem;
137
- transition: all 0.3s ease;
138
- min-height: 3rem;
139
- }
140
-
141
- .login-option:hover {
142
- border-color: #d73f3f;
143
- color: #d73f3f;
144
- }
145
-
146
- .login-option-icon {
147
- width: 2.5rem;
148
- height: 2.5rem;
149
- max-width: 2.5rem;
150
- min-width: 2.5rem;
151
- display: flex;
152
- align-items: center;
153
- justify-content: center;
154
- flex-shrink: 0;
155
- }
156
-
157
- .login-option-icon img {
158
- width: 100%;
159
- height: 100%;
160
- object-fit: contain;
161
- }
162
-
163
- .login-option-text {
164
- font-size: 1.125rem;
165
- font-weight: 400;
166
- line-height: 1.5;
167
- }
168
- `;export{_ as a,B as b};