@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.
Files changed (57) hide show
  1. package/README.md +91 -66
  2. package/dist/chunks/{chunk.P6GWPFCT.js → chunk.24HG5LKA.js} +1 -1
  3. package/dist/chunks/{chunk.R44PTHOJ.js → chunk.34AG3B2Y.js} +2 -2
  4. package/dist/chunks/{chunk.WELXILIP.js → chunk.3AWIVJTF.js} +1 -1
  5. package/dist/chunks/{chunk.FN6G7X23.js → chunk.AA57UJ2D.js} +21 -11
  6. package/dist/chunks/{chunk.JYPMFVPO.js → chunk.CCOEI6XU.js} +1 -1
  7. package/dist/chunks/{chunk.LXN3PNAP.js → chunk.DCR6GEE6.js} +3 -4
  8. package/dist/chunks/{chunk.3FIEOVXD.js → chunk.FZ7HQZU4.js} +1 -1
  9. package/dist/chunks/{chunk.252GL6HT.js → chunk.L7KUSNV7.js} +1 -1
  10. package/dist/chunks/{chunk.IILWGAOM.js → chunk.MKQTK2RW.js} +1 -1
  11. package/dist/chunks/{chunk.M3LK72JN.js → chunk.N7SRHM5F.js} +1 -1
  12. package/dist/chunks/{chunk.LKMWWUYT.js → chunk.NCBKWO6J.js} +1 -1
  13. package/dist/chunks/{chunk.6JUW2IZJ.js → chunk.PESN3BZK.js} +4 -2
  14. package/dist/chunks/{chunk.ZGC6XD6L.js → chunk.TUEFHEUN.js} +7 -2
  15. package/dist/chunks/{chunk.X354U5TL.js → chunk.UVBWHOA2.js} +3 -1
  16. package/dist/chunks/{chunk.5QY2VLMG.js → chunk.V7C4W6GD.js} +1 -1
  17. package/dist/chunks/chunk.XFKYNNG3.js +157 -0
  18. package/dist/chunks/{chunk.N5KXL4J6.js → chunk.ZG2J5SU5.js} +1 -1
  19. package/dist/chunks/{chunk.LVC64FO7.js → chunk.ZZ7X3H3S.js} +1 -1
  20. package/dist/components/consent/consent.component.d.ts +1 -1
  21. package/dist/components/consent/consent.component.js +1 -1
  22. package/dist/components/consent/consent.d.ts +2 -2
  23. package/dist/components/consent/consent.js +1 -1
  24. package/dist/components/consent/consent.styles.js +1 -1
  25. package/dist/components/file-input-dropzone/file-input-dropzone.component.d.ts +3 -3
  26. package/dist/components/file-input-dropzone/file-input-dropzone.component.js +1 -1
  27. package/dist/components/file-input-dropzone/file-input-dropzone.d.ts +3 -3
  28. package/dist/components/file-input-dropzone/file-input-dropzone.js +1 -1
  29. package/dist/components/file-input-dropzone/file-input-dropzone.styles.js +1 -1
  30. package/dist/components/header/header.component.d.ts +2 -17
  31. package/dist/components/header/header.component.js +1 -1
  32. package/dist/components/header/header.d.ts +2 -2
  33. package/dist/components/header/header.js +1 -1
  34. package/dist/components/list-card/list-card.component.d.ts +1 -1
  35. package/dist/components/list-card/list-card.component.js +1 -1
  36. package/dist/components/list-card/list-card.d.ts +2 -2
  37. package/dist/components/list-card/list-card.js +1 -1
  38. package/dist/components/list-card/list-card.styles.js +1 -1
  39. package/dist/components/logo/logo.component.d.ts +1 -1
  40. package/dist/components/logo/logo.component.js +1 -1
  41. package/dist/components/logo/logo.d.ts +2 -2
  42. package/dist/components/logo/logo.js +1 -1
  43. package/dist/components/tool-menu/tool-menu.component.js +1 -1
  44. package/dist/components/tool-menu/tool-menu.d.ts +2 -2
  45. package/dist/components/tool-menu/tool-menu.js +1 -1
  46. package/dist/components/tool-menu/tool-menu.styles.js +1 -1
  47. package/dist/components/tracking/tracking.component.d.ts +3 -0
  48. package/dist/components/tracking/tracking.component.js +1 -1
  49. package/dist/components/tracking/tracking.d.ts +2 -2
  50. package/dist/components/tracking/tracking.js +1 -1
  51. package/dist/hotosm-ui.js +1 -1
  52. package/dist/style-core.css +1 -1
  53. package/dist/style.css +1 -1
  54. package/dist/themes/hot-wa.css +61 -61
  55. package/dist/themes/hot.css +256 -249
  56. package/package.json +15 -15
  57. package/dist/chunks/chunk.3T33Y2BX.js +0 -218
@@ -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
- /* 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
- /*
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
- /* 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);
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: #2B514F;
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: #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
-
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
- /* Fonts */
175
- --hot-font-sans: Archivo, -apple-system, Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
176
- --hot-font-sans-variant: 'Barlow';
177
- --hot-font-sans-variant-condensed: 'Barlow Condensed';
178
- --hot-font-serif: Georgia, 'Times New Roman', serif;
179
- --hot-font-mono: Menlo, Monaco, Consolas, 'Courier New', monospace, Consolas, 'Liberation Mono', Menlo, monospace;
180
-
181
- /* Font sizes */
182
- --hot-font-size-2x-small: 0.625rem;
183
- /* 10px */
184
- --hot-font-size-x-small: 0.75rem;
185
- /* 12px */
186
- --hot-font-size-small: 0.875rem;
187
- /* 14px */
188
- --hot-font-size-medium: 1rem;
189
- /* 16px */
190
- --hot-font-size-large: 1.25rem;
191
- /* 20px */
192
- --hot-font-size-x-large: 1.5rem;
193
- /* 24px */
194
- --hot-font-size-2x-large: 2.25rem;
195
- /* 36px */
196
- --hot-font-size-3x-large: 3rem;
197
- /* 48px */
198
- --hot-font-size-4x-large: 4.5rem;
199
- /* 72px */
200
-
201
- /* Font weights */
202
- --hot-font-weight-light: 300;
203
- --hot-font-weight-normal: 400;
204
- --hot-font-weight-semibold: 500;
205
- --hot-font-weight-bold: 700;
206
-
207
- /* Letter spacings */
208
- --hot-letter-spacing-denser: -0.03em;
209
- --hot-letter-spacing-dense: -0.015em;
210
- --hot-letter-spacing-normal: normal;
211
- --hot-letter-spacing-loose: 0.075em;
212
- --hot-letter-spacing-looser: 0.15em;
213
-
214
- /* Line heights */
215
- --hot-line-height-denser: 1;
216
- --hot-line-height-dense: 1.4;
217
- --hot-line-height-normal: 1.8;
218
- --hot-line-height-loose: 2.2;
219
- --hot-line-height-looser: 2.6;
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
- --hot-spacing-3x-small: 0.125rem;
226
- /* 2px */
227
- --hot-spacing-2x-small: 0.25rem;
228
- /* 4px */
229
- --hot-spacing-x-small: 0.5rem;
230
- /* 8px */
231
- --hot-spacing-small: 0.75rem;
232
- /* 12px */
233
- --hot-spacing-medium: 1rem;
234
- /* 16px */
235
- --hot-spacing-large: 1.25rem;
236
- /* 20px */
237
- --hot-spacing-x-large: 1.75rem;
238
- /* 28px */
239
- --hot-spacing-2x-large: 2.25rem;
240
- /* 36px */
241
- --hot-spacing-3x-large: 3rem;
242
- /* 48px */
243
- --hot-spacing-4x-large: 4.5rem;
244
- /* 72px */
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
- --hot-border-radius-small: 0.1875rem;
251
- /* 3px */
252
- --hot-border-radius-medium: 0.25rem;
253
- /* 4px */
254
- --hot-border-radius-large: 0.5rem;
255
- /* 8px */
256
- --hot-border-radius-x-large: 1rem;
257
- /* 16px */
258
- --hot-border-radius-circle: 50%;
259
- --hot-border-radius-pill: 9999px;
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
- background: linear-gradient(217deg, var(--wa-color-indigo-50), var(--wa-color-purple-50), var(--wa-color-red-50));
264
- border: solid 1px var(--wa-color-purple-50);
265
- transition: transform 100ms, box-shadow 100ms;
266
- }
267
-
268
- .gradient-button::part(base):hover {
269
- box-shadow: var(--wa-shadow-m);
270
- transform: translateY(-3px);
271
- }
272
-
273
- .gradient-button::part(base):active {
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
- .gradient-button::part(label) {
279
- color: white;
280
- text-shadow: rgb(0 0 0 / 0.3) 0 -1px;
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.8.1",
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
- "license": "AGPL-3.0-only",
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",