@hotosm/ui 0.8.1 → 0.9.1
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/README.md +91 -66
- package/dist/chunks/{chunk.P6GWPFCT.js → chunk.24HG5LKA.js} +1 -1
- package/dist/chunks/{chunk.R44PTHOJ.js → chunk.34AG3B2Y.js} +2 -2
- package/dist/chunks/{chunk.WELXILIP.js → chunk.3AWIVJTF.js} +1 -1
- package/dist/chunks/{chunk.FN6G7X23.js → chunk.AA57UJ2D.js} +21 -11
- package/dist/chunks/{chunk.JYPMFVPO.js → chunk.CCOEI6XU.js} +1 -1
- package/dist/chunks/{chunk.LXN3PNAP.js → chunk.DCR6GEE6.js} +3 -4
- package/dist/chunks/{chunk.3FIEOVXD.js → chunk.FZ7HQZU4.js} +1 -1
- package/dist/chunks/{chunk.252GL6HT.js → chunk.L7KUSNV7.js} +1 -1
- package/dist/chunks/{chunk.IILWGAOM.js → chunk.MKQTK2RW.js} +1 -1
- package/dist/chunks/{chunk.M3LK72JN.js → chunk.N7SRHM5F.js} +1 -1
- package/dist/chunks/{chunk.LKMWWUYT.js → chunk.NCBKWO6J.js} +1 -1
- package/dist/chunks/{chunk.6JUW2IZJ.js → chunk.PESN3BZK.js} +4 -2
- package/dist/chunks/{chunk.ZGC6XD6L.js → chunk.TUEFHEUN.js} +7 -2
- package/dist/chunks/{chunk.X354U5TL.js → chunk.UVBWHOA2.js} +3 -1
- package/dist/chunks/{chunk.5QY2VLMG.js → chunk.V7C4W6GD.js} +1 -1
- package/dist/chunks/chunk.XFKYNNG3.js +157 -0
- package/dist/chunks/{chunk.N5KXL4J6.js → chunk.ZG2J5SU5.js} +1 -1
- package/dist/chunks/{chunk.LVC64FO7.js → chunk.ZZ7X3H3S.js} +1 -1
- package/dist/components/consent/consent.component.d.ts +1 -1
- package/dist/components/consent/consent.component.js +1 -1
- package/dist/components/consent/consent.d.ts +2 -2
- package/dist/components/consent/consent.js +1 -1
- package/dist/components/consent/consent.styles.js +1 -1
- package/dist/components/file-input-dropzone/file-input-dropzone.component.d.ts +3 -3
- package/dist/components/file-input-dropzone/file-input-dropzone.component.js +1 -1
- package/dist/components/file-input-dropzone/file-input-dropzone.d.ts +3 -3
- package/dist/components/file-input-dropzone/file-input-dropzone.js +1 -1
- package/dist/components/file-input-dropzone/file-input-dropzone.styles.js +1 -1
- package/dist/components/header/header.component.d.ts +2 -17
- package/dist/components/header/header.component.js +1 -1
- package/dist/components/header/header.d.ts +2 -2
- package/dist/components/header/header.js +1 -1
- package/dist/components/list-card/list-card.component.d.ts +1 -1
- package/dist/components/list-card/list-card.component.js +1 -1
- package/dist/components/list-card/list-card.d.ts +2 -2
- package/dist/components/list-card/list-card.js +1 -1
- package/dist/components/list-card/list-card.styles.js +1 -1
- package/dist/components/logo/logo.component.d.ts +1 -1
- package/dist/components/logo/logo.component.js +1 -1
- package/dist/components/logo/logo.d.ts +2 -2
- package/dist/components/logo/logo.js +1 -1
- package/dist/components/tool-menu/tool-menu.component.js +1 -1
- package/dist/components/tool-menu/tool-menu.d.ts +2 -2
- package/dist/components/tool-menu/tool-menu.js +1 -1
- package/dist/components/tool-menu/tool-menu.styles.js +1 -1
- package/dist/components/tracking/tracking.component.d.ts +3 -0
- package/dist/components/tracking/tracking.component.js +1 -1
- package/dist/components/tracking/tracking.d.ts +2 -2
- package/dist/components/tracking/tracking.js +1 -1
- package/dist/hotosm-ui.js +1 -1
- package/dist/style-core.css +1 -1
- package/dist/style.css +1 -1
- package/dist/themes/hot-wa.css +61 -61
- package/dist/themes/hot.css +256 -249
- package/package.json +15 -15
- package/dist/chunks/chunk.3T33Y2BX.js +0 -218
package/dist/themes/hot.css
CHANGED
|
@@ -6,278 +6,285 @@
|
|
|
6
6
|
:host,
|
|
7
7
|
/* .hot-theme-light allows scoping if you apply that class conditionally */
|
|
8
8
|
.hot-theme-light {
|
|
9
|
-
|
|
9
|
+
/*
|
|
10
10
|
* Color primitives
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
--hot-color-red-100: #
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
--hot-color-yellow-100: #
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
13
|
+
/* red - red */
|
|
14
|
+
|
|
15
|
+
--hot-color-red-950: #a52a28;
|
|
16
|
+
--hot-color-red-900: #b9302d;
|
|
17
|
+
--hot-color-red-800: #b83032;
|
|
18
|
+
--hot-color-red-700: #c53639;
|
|
19
|
+
--hot-color-red-600: #d73f3f;
|
|
20
|
+
--hot-color-red-500: #d43f3f;
|
|
21
|
+
--hot-color-red-400: #ed5c5e;
|
|
22
|
+
--hot-color-red-300: #e27a7d;
|
|
23
|
+
--hot-color-red-200: #ec9ea1;
|
|
24
|
+
--hot-color-red-100: #fed1d7;
|
|
25
|
+
--hot-color-red-50: #feecef;
|
|
26
|
+
|
|
27
|
+
/* rose - persian plum */
|
|
28
|
+
|
|
29
|
+
--hot-color-rose-950: #3e030b;
|
|
30
|
+
--hot-color-rose-900: #4b040e;
|
|
31
|
+
--hot-color-rose-800: #5c1517;
|
|
32
|
+
--hot-color-rose-700: #6b231d;
|
|
33
|
+
--hot-color-rose-600: #7c2e26;
|
|
34
|
+
--hot-color-rose-500: #7d463f;
|
|
35
|
+
--hot-color-rose-400: #9e6960;
|
|
36
|
+
--hot-color-rose-300: #b3837b;
|
|
37
|
+
--hot-color-rose-200: #cfa59e;
|
|
38
|
+
--hot-color-rose-100: #eac7c0;
|
|
39
|
+
--hot-color-rose-50: #ffe6de;
|
|
40
|
+
|
|
41
|
+
/* yellow - bright yellow */
|
|
42
|
+
|
|
43
|
+
--hot-color-yellow-950: #cc6508;
|
|
44
|
+
--hot-color-yellow-900: #e8750c;
|
|
45
|
+
--hot-color-yellow-800: #f77d0f;
|
|
46
|
+
--hot-color-yellow-700: #faa71e;
|
|
47
|
+
--hot-color-yellow-600: #fcbf26;
|
|
48
|
+
--hot-color-yellow-500: #fed82e;
|
|
49
|
+
--hot-color-yellow-400: #fae62e;
|
|
50
|
+
--hot-color-yellow-300: #fdeb51;
|
|
51
|
+
--hot-color-yellow-200: #fff072;
|
|
52
|
+
--hot-color-yellow-100: #ffebcf;
|
|
53
|
+
--hot-color-yellow-50: #fff9c3;
|
|
54
|
+
|
|
55
|
+
/* blue - space cadet */
|
|
56
|
+
|
|
57
|
+
--hot-color-blue-950: #111c31;
|
|
58
|
+
--hot-color-blue-900: #182642;
|
|
59
|
+
--hot-color-blue-800: #20365b;
|
|
60
|
+
--hot-color-blue-700: #263f68;
|
|
61
|
+
--hot-color-blue-600: #2e4873;
|
|
62
|
+
--hot-color-blue-500: #344f7b;
|
|
63
|
+
--hot-color-blue-400: #53688b;
|
|
64
|
+
--hot-color-blue-300: #71829e;
|
|
65
|
+
--hot-color-blue-200: #97a5ba;
|
|
66
|
+
--hot-color-blue-100: #bfc8d6;
|
|
67
|
+
--hot-color-blue-50: #e6e9ee;
|
|
68
|
+
|
|
69
|
+
/* cyan - cadet blue */
|
|
70
|
+
|
|
71
|
+
--hot-color-cyan-950: #2b514f;
|
|
72
|
+
--hot-color-cyan-900: #366361;
|
|
73
|
+
--hot-color-cyan-800: #408789;
|
|
74
|
+
--hot-color-cyan-700: #459ba0;
|
|
75
|
+
--hot-color-cyan-600: #4bb1b9;
|
|
76
|
+
--hot-color-cyan-500: #50c1cb;
|
|
77
|
+
--hot-color-cyan-400: #58cbd1;
|
|
78
|
+
--hot-color-cyan-300: #6ad4d9;
|
|
79
|
+
--hot-color-cyan-200: #8fe1e3;
|
|
80
|
+
--hot-color-cyan-100: #b9eded;
|
|
81
|
+
--hot-color-cyan-50: #e3f8f8;
|
|
82
|
+
|
|
83
|
+
/* gray - dark slate gray */
|
|
84
|
+
|
|
85
|
+
--hot-color-gray-950: #2c3038;
|
|
86
|
+
--hot-color-gray-900: #404248;
|
|
87
|
+
--hot-color-gray-800: #515057;
|
|
88
|
+
--hot-color-gray-700: #615f66;
|
|
89
|
+
--hot-color-gray-600: #716f73;
|
|
90
|
+
--hot-color-gray-500: #828085;
|
|
91
|
+
--hot-color-gray-400: #9a969b;
|
|
92
|
+
--hot-color-gray-300: #b3b0b3;
|
|
93
|
+
--hot-color-gray-200: #c4c3c5;
|
|
94
|
+
--hot-color-gray-100: #e1e0e1;
|
|
95
|
+
--hot-color-gray-50: #f3f3f3;
|
|
96
|
+
|
|
97
|
+
/*
|
|
98
98
|
* Semantic Colors
|
|
99
99
|
* These map primitive colors to semantic meanings
|
|
100
100
|
*/
|
|
101
101
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
102
|
+
/* Primary colors (HOT brand color - red) */
|
|
103
|
+
--hot-color-primary-950: var(--hot-color-red-950);
|
|
104
|
+
--hot-color-primary-900: var(--hot-color-red-900);
|
|
105
|
+
--hot-color-primary-800: var(--hot-color-red-800);
|
|
106
|
+
--hot-color-primary-700: var(--hot-color-red-700);
|
|
107
|
+
--hot-color-primary-600: var(--hot-color-red-600);
|
|
108
|
+
--hot-color-primary-500: var(--hot-color-red-500);
|
|
109
|
+
--hot-color-primary-400: var(--hot-color-red-400);
|
|
110
|
+
--hot-color-primary-300: var(--hot-color-red-300);
|
|
111
|
+
--hot-color-primary-200: var(--hot-color-red-200);
|
|
112
|
+
--hot-color-primary-100: var(--hot-color-red-100);
|
|
113
|
+
--hot-color-primary-50: var(--hot-color-red-50);
|
|
114
|
+
|
|
115
|
+
/* Danger colors (red) */
|
|
116
|
+
--hot-color-danger-950: var(--hot-color-red-950);
|
|
117
|
+
--hot-color-danger-900: var(--hot-color-red-900);
|
|
118
|
+
--hot-color-danger-800: var(--hot-color-red-800);
|
|
119
|
+
--hot-color-danger-700: var(--hot-color-red-700);
|
|
120
|
+
--hot-color-danger-600: var(--hot-color-red-600);
|
|
121
|
+
--hot-color-danger-500: var(--hot-color-red-500);
|
|
122
|
+
--hot-color-danger-400: var(--hot-color-red-400);
|
|
123
|
+
--hot-color-danger-300: var(--hot-color-red-300);
|
|
124
|
+
--hot-color-danger-200: var(--hot-color-red-200);
|
|
125
|
+
--hot-color-danger-100: var(--hot-color-red-100);
|
|
126
|
+
--hot-color-danger-50: var(--hot-color-red-50);
|
|
127
|
+
|
|
128
|
+
/* Warning colors (yellow) */
|
|
129
|
+
--hot-color-warning-950: var(--hot-color-yellow-950);
|
|
130
|
+
--hot-color-warning-900: var(--hot-color-yellow-900);
|
|
131
|
+
--hot-color-warning-800: var(--hot-color-yellow-800);
|
|
132
|
+
--hot-color-warning-700: var(--hot-color-yellow-700);
|
|
133
|
+
--hot-color-warning-600: var(--hot-color-yellow-600);
|
|
134
|
+
--hot-color-warning-500: var(--hot-color-yellow-500);
|
|
135
|
+
--hot-color-warning-400: var(--hot-color-yellow-400);
|
|
136
|
+
--hot-color-warning-300: var(--hot-color-yellow-300);
|
|
137
|
+
--hot-color-warning-200: var(--hot-color-yellow-200);
|
|
138
|
+
--hot-color-warning-100: var(--hot-color-yellow-100);
|
|
139
|
+
--hot-color-warning-50: var(--hot-color-yellow-50);
|
|
140
140
|
|
|
141
141
|
/* Success colors (green) */
|
|
142
|
-
--hot-color-success-950: #
|
|
142
|
+
--hot-color-success-950: #2b514f;
|
|
143
143
|
--hot-color-success-900: #366361;
|
|
144
144
|
--hot-color-success-800: #408789;
|
|
145
|
-
--hot-color-success-700: #
|
|
146
|
-
--hot-color-success-600: #
|
|
147
|
-
--hot-color-success-500: #
|
|
148
|
-
--hot-color-success-400: #
|
|
149
|
-
--hot-color-success-300: #
|
|
150
|
-
--hot-color-success-200: #
|
|
151
|
-
--hot-color-success-100: #
|
|
152
|
-
--hot-color-success-50: #
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
/*
|
|
145
|
+
--hot-color-success-700: #459ba0;
|
|
146
|
+
--hot-color-success-600: #4bb1b9;
|
|
147
|
+
--hot-color-success-500: #50c1cb;
|
|
148
|
+
--hot-color-success-400: #58cbd1;
|
|
149
|
+
--hot-color-success-300: #6ad4d9;
|
|
150
|
+
--hot-color-success-200: #8fe1e3;
|
|
151
|
+
--hot-color-success-100: #b9eded;
|
|
152
|
+
--hot-color-success-50: #e3f8f8;
|
|
153
|
+
|
|
154
|
+
/* Neutral colors (gray) */
|
|
155
|
+
--hot-color-neutral-1000: #ffffff;
|
|
156
|
+
--hot-color-neutral-950: var(--hot-color-gray-950);
|
|
157
|
+
--hot-color-neutral-900: var(--hot-color-gray-900);
|
|
158
|
+
--hot-color-neutral-800: var(--hot-color-gray-800);
|
|
159
|
+
--hot-color-neutral-700: var(--hot-color-gray-700);
|
|
160
|
+
--hot-color-neutral-600: var(--hot-color-gray-600);
|
|
161
|
+
--hot-color-neutral-500: var(--hot-color-gray-500);
|
|
162
|
+
--hot-color-neutral-400: var(--hot-color-gray-400);
|
|
163
|
+
--hot-color-neutral-300: var(--hot-color-gray-300);
|
|
164
|
+
--hot-color-neutral-200: var(--hot-color-gray-200);
|
|
165
|
+
--hot-color-neutral-100: var(--hot-color-gray-100);
|
|
166
|
+
--hot-color-neutral-50: var(--hot-color-gray-50);
|
|
167
|
+
--hot-color-neutral-0: #000000;
|
|
168
|
+
|
|
169
|
+
/*
|
|
171
170
|
* Typography
|
|
172
171
|
*/
|
|
173
172
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
173
|
+
/* Fonts */
|
|
174
|
+
--hot-font-sans:
|
|
175
|
+
Archivo, -apple-system, Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
|
|
176
|
+
"Segoe UI Emoji", "Segoe UI Symbol";
|
|
177
|
+
--hot-font-sans-variant: "Barlow";
|
|
178
|
+
--hot-font-sans-variant-condensed: "Barlow Condensed";
|
|
179
|
+
--hot-font-serif: Georgia, "Times New Roman", serif;
|
|
180
|
+
--hot-font-mono:
|
|
181
|
+
Menlo, Monaco, Consolas, "Courier New", monospace, Consolas, "Liberation Mono", Menlo, monospace;
|
|
182
|
+
|
|
183
|
+
/* Font sizes */
|
|
184
|
+
--hot-font-size-2x-small: 0.625rem;
|
|
185
|
+
/* 10px */
|
|
186
|
+
--hot-font-size-x-small: 0.75rem;
|
|
187
|
+
/* 12px */
|
|
188
|
+
--hot-font-size-small: 0.875rem;
|
|
189
|
+
/* 14px */
|
|
190
|
+
--hot-font-size-medium: 1rem;
|
|
191
|
+
/* 16px */
|
|
192
|
+
--hot-font-size-large: 1.25rem;
|
|
193
|
+
/* 20px */
|
|
194
|
+
--hot-font-size-x-large: 1.5rem;
|
|
195
|
+
/* 24px */
|
|
196
|
+
--hot-font-size-2x-large: 2.25rem;
|
|
197
|
+
/* 36px */
|
|
198
|
+
--hot-font-size-3x-large: 3rem;
|
|
199
|
+
/* 48px */
|
|
200
|
+
--hot-font-size-4x-large: 4.5rem;
|
|
201
|
+
/* 72px */
|
|
202
|
+
|
|
203
|
+
/* Font weights */
|
|
204
|
+
--hot-font-weight-light: 300;
|
|
205
|
+
--hot-font-weight-normal: 400;
|
|
206
|
+
--hot-font-weight-semibold: 500;
|
|
207
|
+
--hot-font-weight-bold: 700;
|
|
208
|
+
|
|
209
|
+
/* Letter spacings */
|
|
210
|
+
--hot-letter-spacing-denser: -0.03em;
|
|
211
|
+
--hot-letter-spacing-dense: -0.015em;
|
|
212
|
+
--hot-letter-spacing-normal: normal;
|
|
213
|
+
--hot-letter-spacing-loose: 0.075em;
|
|
214
|
+
--hot-letter-spacing-looser: 0.15em;
|
|
215
|
+
|
|
216
|
+
/* Line heights */
|
|
217
|
+
--hot-line-height-denser: 1;
|
|
218
|
+
--hot-line-height-dense: 1.4;
|
|
219
|
+
--hot-line-height-normal: 1.8;
|
|
220
|
+
--hot-line-height-loose: 2.2;
|
|
221
|
+
--hot-line-height-looser: 2.6;
|
|
222
|
+
|
|
223
|
+
/*
|
|
222
224
|
* Spacings
|
|
223
225
|
*/
|
|
224
226
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
227
|
+
--hot-spacing-3x-small: 0.125rem;
|
|
228
|
+
/* 2px */
|
|
229
|
+
--hot-spacing-2x-small: 0.25rem;
|
|
230
|
+
/* 4px */
|
|
231
|
+
--hot-spacing-x-small: 0.5rem;
|
|
232
|
+
/* 8px */
|
|
233
|
+
--hot-spacing-small: 0.75rem;
|
|
234
|
+
/* 12px */
|
|
235
|
+
--hot-spacing-medium: 1rem;
|
|
236
|
+
/* 16px */
|
|
237
|
+
--hot-spacing-large: 1.25rem;
|
|
238
|
+
/* 20px */
|
|
239
|
+
--hot-spacing-x-large: 1.75rem;
|
|
240
|
+
/* 28px */
|
|
241
|
+
--hot-spacing-2x-large: 2.25rem;
|
|
242
|
+
/* 36px */
|
|
243
|
+
--hot-spacing-3x-large: 3rem;
|
|
244
|
+
/* 48px */
|
|
245
|
+
--hot-spacing-4x-large: 4.5rem;
|
|
246
|
+
/* 72px */
|
|
247
|
+
|
|
248
|
+
/*
|
|
247
249
|
* Border radius
|
|
248
250
|
*/
|
|
249
251
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
252
|
+
--hot-border-radius-small: 0.1875rem;
|
|
253
|
+
/* 3px */
|
|
254
|
+
--hot-border-radius-medium: 0.25rem;
|
|
255
|
+
/* 4px */
|
|
256
|
+
--hot-border-radius-large: 0.5rem;
|
|
257
|
+
/* 8px */
|
|
258
|
+
--hot-border-radius-x-large: 1rem;
|
|
259
|
+
/* 16px */
|
|
260
|
+
--hot-border-radius-circle: 50%;
|
|
261
|
+
--hot-border-radius-pill: 9999px;
|
|
260
262
|
}
|
|
261
263
|
|
|
262
264
|
.gradient-button::part(base) {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
box-shadow: inset var(--wa-shadow-s);
|
|
275
|
-
transform: translateY(0);
|
|
276
|
-
}
|
|
265
|
+
background: linear-gradient(
|
|
266
|
+
217deg,
|
|
267
|
+
var(--wa-color-indigo-50),
|
|
268
|
+
var(--wa-color-purple-50),
|
|
269
|
+
var(--wa-color-red-50)
|
|
270
|
+
);
|
|
271
|
+
border: solid 1px var(--wa-color-purple-50);
|
|
272
|
+
transition:
|
|
273
|
+
transform 100ms,
|
|
274
|
+
box-shadow 100ms;
|
|
275
|
+
}
|
|
277
276
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
277
|
+
.gradient-button::part(base):hover {
|
|
278
|
+
box-shadow: var(--wa-shadow-m);
|
|
279
|
+
transform: translateY(-3px);
|
|
280
|
+
}
|
|
282
281
|
|
|
282
|
+
.gradient-button::part(base):active {
|
|
283
|
+
box-shadow: inset var(--wa-shadow-s);
|
|
284
|
+
transform: translateY(0);
|
|
285
|
+
}
|
|
283
286
|
|
|
287
|
+
.gradient-button::part(label) {
|
|
288
|
+
color: white;
|
|
289
|
+
text-shadow: rgb(0 0 0 / 0.3) 0 -1px;
|
|
290
|
+
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hotosm/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "Shared UI components with HOT theming.",
|
|
5
5
|
"homepage": "https://github.com/hotosm/ui#readme",
|
|
6
|
+
"license": "AGPL-3.0-only",
|
|
6
7
|
"author": {
|
|
7
8
|
"name": "HOTOSM",
|
|
8
9
|
"email": "sysadmin@hotosm.org"
|
|
@@ -29,7 +30,13 @@
|
|
|
29
30
|
"url": "https://github.com/tbssnch"
|
|
30
31
|
}
|
|
31
32
|
],
|
|
32
|
-
"
|
|
33
|
+
"repository": {
|
|
34
|
+
"type": "git",
|
|
35
|
+
"url": "git+https://github.com/hotosm/ui.git"
|
|
36
|
+
},
|
|
37
|
+
"files": [
|
|
38
|
+
"dist"
|
|
39
|
+
],
|
|
33
40
|
"type": "module",
|
|
34
41
|
"types": "dist/hotosm-ui.d.ts",
|
|
35
42
|
"exports": {
|
|
@@ -43,19 +50,6 @@
|
|
|
43
50
|
"./dist/style.css": "./dist/style.css",
|
|
44
51
|
"./dist/style-core.css": "./dist/style-core.css"
|
|
45
52
|
},
|
|
46
|
-
"files": [
|
|
47
|
-
"dist"
|
|
48
|
-
],
|
|
49
|
-
"repository": {
|
|
50
|
-
"type": "git",
|
|
51
|
-
"url": "git+https://github.com/hotosm/ui.git"
|
|
52
|
-
},
|
|
53
|
-
"engines": {
|
|
54
|
-
"node": ">=18.0.0"
|
|
55
|
-
},
|
|
56
|
-
"peerDependencies": {
|
|
57
|
-
"@awesome.me/webawesome": "3.2.1"
|
|
58
|
-
},
|
|
59
53
|
"devDependencies": {
|
|
60
54
|
"@awesome.me/webawesome": "3.2.1",
|
|
61
55
|
"@storybook/addon-docs": "^9.0.18",
|
|
@@ -79,6 +73,12 @@
|
|
|
79
73
|
"user-agent-data-types": "^0.4.2",
|
|
80
74
|
"vitest": "^4.0.10"
|
|
81
75
|
},
|
|
76
|
+
"peerDependencies": {
|
|
77
|
+
"@awesome.me/webawesome": "3.2.1"
|
|
78
|
+
},
|
|
79
|
+
"engines": {
|
|
80
|
+
"node": ">=18.0.0"
|
|
81
|
+
},
|
|
82
82
|
"scripts": {
|
|
83
83
|
"dev": "storybook dev -p 3001 --no-open",
|
|
84
84
|
"build:docs": "storybook build --output-dir docs",
|