@hotosm/ui 0.3.1-b4 → 0.3.1-b6

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 (43) hide show
  1. package/README.md +87 -72
  2. package/dist/chunks/chunk.2MK55PUE.js +700 -0
  3. package/dist/chunks/{callout.USQGOL5A.js → chunk.3NBBS2A2.js} +2 -2
  4. package/dist/chunks/chunk.456NATDG.js +1 -0
  5. package/dist/chunks/{chunk.4YLAIDAG.js → chunk.7RJ72M75.js} +3 -3
  6. package/dist/chunks/chunk.AIZM63SF.js +669 -0
  7. package/dist/chunks/chunk.BM3GXGCS.js +1 -0
  8. package/dist/chunks/{chunk.OVCI43FD.js → chunk.MIYFUINI.js} +2 -2
  9. package/dist/chunks/{chunk.NQHNA5TA.js → chunk.PDLGEB7T.js} +3 -3
  10. package/dist/chunks/chunk.SZ46YTWY.js +1 -0
  11. package/dist/chunks/chunk.YYEOK7MA.js +1 -0
  12. package/dist/components/consent/consent.component.d.ts +3 -0
  13. package/dist/components/consent/consent.component.js +1 -1
  14. package/dist/components/consent/consent.d.ts +0 -1
  15. package/dist/components/consent/consent.js +1 -1
  16. package/dist/components/header/header.component.d.ts +4 -0
  17. package/dist/components/header/header.component.js +1 -1
  18. package/dist/components/header/header.d.ts +0 -1
  19. package/dist/components/header/header.js +1 -1
  20. package/dist/components/logo/logo.component.js +1 -1
  21. package/dist/components/logo/logo.d.ts +0 -1
  22. package/dist/components/logo/logo.js +1 -1
  23. package/dist/components/tracking/tracking.component.d.ts +3 -0
  24. package/dist/components/tracking/tracking.component.js +1 -1
  25. package/dist/components/tracking/tracking.d.ts +0 -1
  26. package/dist/components/tracking/tracking.js +1 -1
  27. package/dist/hotosm-ui.d.ts +4 -12
  28. package/dist/hotosm-ui.js +1 -1
  29. package/dist/style.css +7 -1
  30. package/dist/themes/hot-wa-override.css +222 -0
  31. package/dist/themes/hot.css +165 -213
  32. package/package.json +1 -1
  33. package/dist/chunks/button.QMPBLQB7.js +0 -1
  34. package/dist/chunks/chunk.7VBX4GII.js +0 -1
  35. package/dist/chunks/chunk.FIQQYKEP.js +0 -14
  36. package/dist/chunks/chunk.I26W4NHZ.js +0 -460
  37. package/dist/chunks/chunk.OHRBDQCO.js +0 -45
  38. package/dist/chunks/chunk.TFICHQZE.js +0 -186
  39. package/dist/chunks/chunk.XAMKQWQ3.js +0 -92
  40. package/dist/chunks/dialog.ZJLYCG4P.js +0 -217
  41. package/dist/chunks/icon.ZB6BUFKB.js +0 -1
  42. package/dist/chunks/tab-group.M6XGU33J.js +0 -360
  43. package/dist/themes/hot-wa.css +0 -179
@@ -1,235 +1,187 @@
1
-
2
1
  /* HOT theme */
3
2
 
3
+ /* :root makes them available globally */
4
4
  :root,
5
+ /* :host is for Web Components and shadow DOM scopes */
5
6
  :host,
7
+ /* .hot-theme-light allows scoping if you apply that class conditionally */
6
8
  .hot-theme-light {
7
-
8
9
  /*
9
- * Color primitives
10
- */
11
-
12
- /* red - red */
13
-
14
- --hot-color-red-950: #A52A28;
15
- --hot-color-red-900: #B9302D;
16
- --hot-color-red-800: #B83032;
17
- --hot-color-red-700: #C53639;
18
- --hot-color-red-600: #D73F3F;
19
- --hot-color-red-500: #F34D47;
20
- --hot-color-red-400: #ED5C5E;
21
- --hot-color-red-300: #E27A7D;
22
- --hot-color-red-200: #EC9EA1;
23
- --hot-color-red-100: #FDD0D6;
24
- --hot-color-red-50: #FEECEF;
25
-
26
- /* rose - persian plum */
27
-
28
- --hot-color-rose-950: #3E030B;
29
- --hot-color-rose-900: #4B040E;
30
- --hot-color-rose-800: #5C1517;
31
- --hot-color-rose-700: #6B231D;
32
- --hot-color-rose-600: #7C2E26;
33
- --hot-color-rose-500: #7D463F;
34
- --hot-color-rose-400: #9E6960;
35
- --hot-color-rose-300: #B3837B;
36
- --hot-color-rose-200: #CFA59E;
37
- --hot-color-rose-100: #EAC7C0;
38
- --hot-color-rose-50: #FFE6DE;
39
-
40
- /* yellow - bright yellow */
41
-
42
- --hot-color-yellow-950: #CC6508;
43
- --hot-color-yellow-900: #E8750C;
44
- --hot-color-yellow-800: #F77D0F;
45
- --hot-color-yellow-700: #FAA71E;
46
- --hot-color-yellow-600: #FCBF26;
47
- --hot-color-yellow-500: #FED82E;
48
- --hot-color-yellow-400: #FAE62E;
49
- --hot-color-yellow-300: #FDEB51;
50
- --hot-color-yellow-200: #FFF072;
51
- --hot-color-yellow-100: #FFF59B;
52
- --hot-color-yellow-50: #FFF9C3;
53
-
54
- /* blue - space cadet */
55
-
56
- --hot-color-blue-950: #111C31;
57
- --hot-color-blue-900: #182642;
58
- --hot-color-blue-800: #20365B;
59
- --hot-color-blue-700: #263F68;
60
- --hot-color-blue-600: #2E4873;
61
- --hot-color-blue-500: #344F7B;
62
- --hot-color-blue-400: #53688B;
63
- --hot-color-blue-300: #71829E;
64
- --hot-color-blue-200: #97A5BA;
65
- --hot-color-blue-100: #BFC8D6;
66
- --hot-color-blue-50: #E6E9EE;
67
-
68
- /* cyan - cadet blue */
69
-
70
- --hot-color-cyan-950: #2B514F;
71
- --hot-color-cyan-900: #366361;
72
- --hot-color-cyan-800: #408789;
73
- --hot-color-cyan-700: #459BA0;
74
- --hot-color-cyan-600: #4BB1B9;
75
- --hot-color-cyan-500: #50C1CB;
76
- --hot-color-cyan-400: #58CBD1;
77
- --hot-color-cyan-300: #6AD4D9;
78
- --hot-color-cyan-200: #8FE1E3;
79
- --hot-color-cyan-100: #B9EDED;
80
- --hot-color-cyan-50: #E3F8F8;
81
-
82
- /* gray - dark slate gray */
83
-
84
- --hot-color-gray-950: #2C3038;
85
- --hot-color-gray-900: #404248;
86
- --hot-color-gray-800: #515057;
87
- --hot-color-gray-700: #615F66;
88
- --hot-color-gray-600: #716F73;
89
- --hot-color-gray-500: #828085;
90
- --hot-color-gray-400: #9A969B;
91
- --hot-color-gray-300: #B3B0B3;
92
- --hot-color-gray-200: #C4C3C5;
93
- --hot-color-gray-100: #E1E0E1;
94
- --hot-color-gray-50: #F3F3F3;
95
-
96
- /* neutral - black & white */
97
-
98
- --hot-color-neutral-1000: #000;
99
- --hot-color-neutral-0: #fff;
10
+ * Color primitives
11
+ */
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: #F34D47;
21
+ --hot-color-red-400: #ED5C5E;
22
+ --hot-color-red-300: #E27A7D;
23
+ --hot-color-red-200: #EC9EA1;
24
+ --hot-color-red-100: #FDD0D6;
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: #FFF59B;
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;
100
96
 
101
97
  /*
102
- * Color tokens
103
- */
104
-
105
- --hot-color-primary-950: var(--hot-color-red-950);
106
- --hot-color-primary-900: var(--hot-color-red-900);
107
- --hot-color-primary-800: var(--hot-color-red-800);
108
- --hot-color-primary-700: var(--hot-color-red-700);
109
- --hot-color-primary-600: var(--hot-color-red-600);
110
- --hot-color-primary-500: var(--hot-color-red-500);
111
- --hot-color-primary-400: var(--hot-color-red-400);
112
- --hot-color-primary-300: var(--hot-color-red-300);
113
- --hot-color-primary-200: var(--hot-color-red-200);
114
- --hot-color-primary-100: var(--hot-color-red-100);
115
- --hot-color-primary-50: var(--hot-color-red-50);
116
-
117
- --hot-color-danger-950: var(--hot-color-rose-950);
118
- --hot-color-danger-900: var(--hot-color-rose-900);
119
- --hot-color-danger-800: var(--hot-color-rose-800);
120
- --hot-color-danger-700: var(--hot-color-rose-700);
121
- --hot-color-danger-600: var(--hot-color-rose-600);
122
- --hot-color-danger-500: var(--hot-color-rose-500);
123
- --hot-color-danger-400: var(--hot-color-rose-400);
124
- --hot-color-danger-300: var(--hot-color-rose-300);
125
- --hot-color-danger-200: var(--hot-color-rose-200);
126
- --hot-color-danger-100: var(--hot-color-rose-100);
127
- --hot-color-danger-50: var(--hot-color-rose-50);
128
-
129
- --hot-color-neutral-950: var(--hot-color-gray-950);
130
- --hot-color-neutral-900: var(--hot-color-gray-900);
131
- --hot-color-neutral-800: var(--hot-color-gray-800);
132
- --hot-color-neutral-700: var(--hot-color-gray-700);
133
- --hot-color-neutral-600: var(--hot-color-gray-600);
134
- --hot-color-neutral-500: var(--hot-color-gray-500);
135
- --hot-color-neutral-400: var(--hot-color-gray-400);
136
- --hot-color-neutral-300: var(--hot-color-gray-300);
137
- --hot-color-neutral-200: var(--hot-color-gray-200);
138
- --hot-color-neutral-100: var(--hot-color-gray-100);
139
- --hot-color-neutral-50: var(--hot-color-gray-50);
140
-
141
- --hot-color-success-950: var(--hot-color-cyan-950);
142
- --hot-color-success-900: var(--hot-color-cyan-900);
143
- --hot-color-success-800: var(--hot-color-cyan-800);
144
- --hot-color-success-700: var(--hot-color-cyan-700);
145
- --hot-color-success-600: var(--hot-color-cyan-600);
146
- --hot-color-success-500: var(--hot-color-cyan-500);
147
- --hot-color-success-400: var(--hot-color-cyan-400);
148
- --hot-color-success-300: var(--hot-color-cyan-300);
149
- --hot-color-success-200: var(--hot-color-cyan-200);
150
- --hot-color-success-100: var(--hot-color-cyan-100);
151
- --hot-color-success-50: var(--hot-color-cyan-50);
152
-
153
- --hot-color-warning-950: var(--hot-color-yellow-950);
154
- --hot-color-warning-900: var(--hot-color-yellow-900);
155
- --hot-color-warning-800: var(--hot-color-yellow-800);
156
- --hot-color-warning-700: var(--hot-color-yellow-700);
157
- --hot-color-warning-600: var(--hot-color-yellow-600);
158
- --hot-color-warning-500: var(--hot-color-yellow-500);
159
- --hot-color-warning-400: var(--hot-color-yellow-400);
160
- --hot-color-warning-300: var(--hot-color-yellow-300);
161
- --hot-color-warning-200: var(--hot-color-yellow-200);
162
- --hot-color-warning-100: var(--hot-color-yellow-100);
163
- --hot-color-warning-50: var(--hot-color-yellow-50);
164
-
165
- /*
166
98
  * Typography
167
99
  */
168
100
 
169
- /* Fonts */
170
- --hot-font-sans: Archivo, -apple-system, Roboto, Helvetica, Arial, sans-serif,
171
- 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
172
- --hot-font-sans-variant: 'Barlow Condensed';
173
- --hot-font-sefif: Georgia, 'Times New Roman', serif;
174
- --hot-font-mono: Menlo, Monaco, Consolas, 'Courier New',
175
- monospace, Consolas, 'Liberation Mono', Menlo, monospace;
176
-
177
- /* Font sizes */
178
- --hot-font-size-2x-small: 0.625rem; /* 10px */
179
- --hot-font-size-x-small: 0.75rem; /* 12px */
180
- --hot-font-size-small: 0.875rem; /* 14px */
181
- --hot-font-size-medium: 1rem; /* 16px */
182
- --hot-font-size-large: 1.25rem; /* 20px */
183
- --hot-font-size-x-large: 1.5rem; /* 24px */
184
- --hot-font-size-2x-large: 2.25rem; /* 36px */
185
- --hot-font-size-3x-large: 3rem; /* 48px */
186
- --hot-font-size-4x-large: 4.5rem; /* 72px */
187
-
188
- /* Font weights */
189
- --hot-font-weight-light: 300;
190
- --hot-font-weight-normal: 400;
191
- --hot-font-weight-semibold: 500;
192
- --hot-font-weight-bold: 700;
193
-
194
- /* Letter spacings */
195
- --hot-letter-spacing-denser: -0.03em;
196
- --hot-letter-spacing-dense: -0.015em;
197
- --hot-letter-spacing-normal: normal;
198
- --hot-letter-spacing-loose: 0.075em;
199
- --hot-letter-spacing-looser: 0.15em;
200
-
201
- /* Line heights */
202
- --hot-line-height-denser: 1;
203
- --hot-line-height-dense: 1.4;
204
- --hot-line-height-normal: 1.8;
205
- --hot-line-height-loose: 2.2;
206
- --hot-line-height-looser: 2.6;
101
+ /* Fonts */
102
+ --hot-font-sans: Archivo, -apple-system, Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
103
+ --hot-font-sans-variant: 'Barlow';
104
+ --hot-font-sans-variant-condensed: 'Barlow Condensed';
105
+ --hot-font-sefif: Georgia, 'Times New Roman', serif;
106
+ --hot-font-mono: Menlo, Monaco, Consolas, 'Courier New', monospace, Consolas, 'Liberation Mono', Menlo, monospace;
107
+
108
+ /* Font sizes */
109
+ --hot-font-size-2x-small: 0.625rem;
110
+ /* 10px */
111
+ --hot-font-size-x-small: 0.75rem;
112
+ /* 12px */
113
+ --hot-font-size-small: 0.875rem;
114
+ /* 14px */
115
+ --hot-font-size-medium: 1rem;
116
+ /* 16px */
117
+ --hot-font-size-large: 1.25rem;
118
+ /* 20px */
119
+ --hot-font-size-x-large: 1.5rem;
120
+ /* 24px */
121
+ --hot-font-size-2x-large: 2.25rem;
122
+ /* 36px */
123
+ --hot-font-size-3x-large: 3rem;
124
+ /* 48px */
125
+ --hot-font-size-4x-large: 4.5rem;
126
+ /* 72px */
127
+
128
+ /* Font weights */
129
+ --hot-font-weight-light: 300;
130
+ --hot-font-weight-normal: 400;
131
+ --hot-font-weight-semibold: 500;
132
+ --hot-font-weight-bold: 700;
133
+
134
+ /* Letter spacings */
135
+ --hot-letter-spacing-denser: -0.03em;
136
+ --hot-letter-spacing-dense: -0.015em;
137
+ --hot-letter-spacing-normal: normal;
138
+ --hot-letter-spacing-loose: 0.075em;
139
+ --hot-letter-spacing-looser: 0.15em;
140
+
141
+ /* Line heights */
142
+ --hot-line-height-denser: 1;
143
+ --hot-line-height-dense: 1.4;
144
+ --hot-line-height-normal: 1.8;
145
+ --hot-line-height-loose: 2.2;
146
+ --hot-line-height-looser: 2.6;
207
147
 
208
148
  /*
209
149
  * Spacings
210
150
  */
211
151
 
212
- --hot-spacing-3x-small: 0.125rem; /* 2px */
213
- --hot-spacing-2x-small: 0.25rem; /* 4px */
214
- --hot-spacing-x-small: 0.5rem; /* 8px */
215
- --hot-spacing-small: 0.75rem; /* 12px */
216
- --hot-spacing-medium: 1rem; /* 16px */
217
- --hot-spacing-large: 1.25rem; /* 20px */
218
- --hot-spacing-x-large: 1.75rem; /* 28px */
219
- --hot-spacing-2x-large: 2.25rem; /* 36px */
220
- --hot-spacing-3x-large: 3rem; /* 48px */
221
- --hot-spacing-4x-large: 4.5rem; /* 72px */
222
-
223
- /*
152
+ --hot-spacing-3x-small: 0.125rem;
153
+ /* 2px */
154
+ --hot-spacing-2x-small: 0.25rem;
155
+ /* 4px */
156
+ --hot-spacing-x-small: 0.5rem;
157
+ /* 8px */
158
+ --hot-spacing-small: 0.75rem;
159
+ /* 12px */
160
+ --hot-spacing-medium: 1rem;
161
+ /* 16px */
162
+ --hot-spacing-large: 1.25rem;
163
+ /* 20px */
164
+ --hot-spacing-x-large: 1.75rem;
165
+ /* 28px */
166
+ --hot-spacing-2x-large: 2.25rem;
167
+ /* 36px */
168
+ --hot-spacing-3x-large: 3rem;
169
+ /* 48px */
170
+ --hot-spacing-4x-large: 4.5rem;
171
+ /* 72px */
172
+
173
+ /*
224
174
  * Border radius
225
175
  */
226
176
 
227
- --hot-border-radius-small: 0.1875rem; /* 3px */
228
- --hot-border-radius-medium: 0.25rem; /* 4px */
229
- --hot-border-radius-large: 0.5rem; /* 8px */
230
- --hot-border-radius-x-large: 1rem; /* 16px */
177
+ --hot-border-radius-small: 0.1875rem;
178
+ /* 3px */
179
+ --hot-border-radius-medium: 0.25rem;
180
+ /* 4px */
181
+ --hot-border-radius-large: 0.5rem;
182
+ /* 8px */
183
+ --hot-border-radius-x-large: 1rem;
184
+ /* 16px */
231
185
  --hot-border-radius-circle: 50%;
232
186
  --hot-border-radius-pill: 9999px;
233
-
234
187
  }
235
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hotosm/ui",
3
- "version": "0.3.1-b4",
3
+ "version": "0.3.1-b6",
4
4
  "description": "Shared UI components with HOT theming.",
5
5
  "homepage": "https://github.com/hotosm/ui#readme",
6
6
  "author": {
@@ -1 +0,0 @@
1
- import{d as t}from"./chunk.I26W4NHZ.js";import"./chunk.OHRBDQCO.js";import"./chunk.TFICHQZE.js";import"./chunk.FIQQYKEP.js";import"./chunk.6ZDEZIWM.js";import"./chunk.U4P7XQR4.js";import"./chunk.NI7UJOOZ.js";export{t as default};
@@ -1 +0,0 @@
1
- function m(o,t){return{top:Math.round(o.getBoundingClientRect().top-t.getBoundingClientRect().top),left:Math.round(o.getBoundingClientRect().left-t.getBoundingClientRect().left)}}var n=new Set;function g(){let o=document.documentElement.clientWidth;return Math.abs(window.innerWidth-o)}function p(){let o=Number(getComputedStyle(document.body).paddingRight.replace(/px/,""));return isNaN(o)||!o?0:o}function h(o){if(n.add(o),!document.documentElement.classList.contains("wa-scroll-lock")){let t=g()+p(),l=getComputedStyle(document.documentElement).scrollbarGutter;(!l||l==="auto")&&(l="stable"),t<2&&(l=""),document.documentElement.style.setProperty("--wa-scroll-lock-gutter",l),document.documentElement.classList.add("wa-scroll-lock"),document.documentElement.style.setProperty("--wa-scroll-lock-size",`${t}px`)}}function a(o){n.delete(o),n.size===0&&(document.documentElement.classList.remove("wa-scroll-lock"),document.documentElement.style.removeProperty("--wa-scroll-lock-size"))}function y(o,t,l="vertical",e="smooth"){let d=m(o,t),c=d.top+t.scrollTop,s=d.left+t.scrollLeft,i=t.scrollLeft,f=t.scrollLeft+t.offsetWidth,u=t.scrollTop,r=t.scrollTop+t.offsetHeight;(l==="horizontal"||l==="both")&&(s<i?t.scrollTo({left:s,behavior:e}):s+o.clientWidth>f&&t.scrollTo({left:s-t.offsetWidth+o.clientWidth,behavior:e})),(l==="vertical"||l==="both")&&(c<u?t.scrollTo({top:c,behavior:e}):c+o.clientHeight>r&&t.scrollTo({top:c-t.offsetHeight+o.clientHeight,behavior:e}))}export{h as a,a as b,y as c};
@@ -1,14 +0,0 @@
1
- import{b as a}from"./chunk.6ZDEZIWM.js";import{a as c,k as f}from"./chunk.U4P7XQR4.js";import{a as p}from"./chunk.NI7UJOOZ.js";var m=Object.defineProperty,w=Object.getOwnPropertyDescriptor,u=e=>{throw TypeError(e)},n=(e,t,s,r)=>{for(var i=r>1?void 0:r?w(t,s):t,l=e.length-1,h;l>=0;l--)(h=e[l])&&(i=(r?h(t,s,i):h(i))||i);return r&&i&&m(t,s,i),i},v=(e,t,s)=>t.has(e)||u("Cannot "+s),_=(e,t,s)=>(v(e,t,"read from private field"),s?s.call(e):t.get(e)),y=(e,t,s)=>t.has(e)?u("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),S=(e,t,s,r)=>(v(e,t,"write to private field"),r?r.call(e,s):t.set(e,s),s);var b=`:host {
2
- box-sizing: border-box !important;
3
- }
4
-
5
- :host *,
6
- :host *::before,
7
- :host *::after {
8
- box-sizing: inherit !important;
9
- }
10
-
11
- [hidden] {
12
- display: none !important;
13
- }
14
- `,o,d=class extends f{constructor(){super(),y(this,o,!1),this.initialReflectedProperties=new Map,this.didSSR=!1||!!this.shadowRoot,this.customStates={set:(t,s)=>{var r;(r=this.internals)!=null&&r.states&&(s?this.internals.states.add(t):this.internals.states.delete(t))},has:t=>{var s;return(s=this.internals)!=null&&s.states?this.internals.states.has(t):!1}};try{this.internals=this.attachInternals()}catch(t){console.error("Element internals are not supported in your browser. Consider using a polyfill")}this.customStates.set("wa-defined",!0);let e=this.constructor;for(let[t,s]of e.elementProperties)s.default==="inherit"&&s.initial!==void 0&&typeof t=="string"&&this.customStates.set(`initial-${t}-${s.initial}`,!0)}static get styles(){let e=Array.isArray(this.css)?this.css:this.css?[this.css]:[];return[b,...e].map(t=>typeof t=="string"?c(t):t)}attributeChangedCallback(e,t,s){_(this,o)||(this.constructor.elementProperties.forEach((r,i)=>{r.reflect&&this[i]!=null&&this.initialReflectedProperties.set(i,this[i])}),S(this,o,!0)),super.attributeChangedCallback(e,t,s)}willUpdate(e){super.willUpdate(e),this.initialReflectedProperties.forEach((t,s)=>{e.has(s)&&this[s]==null&&(this[s]=t)})}firstUpdated(e){var t;super.firstUpdated(e),this.didSSR&&((t=this.shadowRoot)==null||t.querySelectorAll("slot").forEach(s=>{s.dispatchEvent(new Event("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}))}update(e){try{super.update(e)}catch(t){if(this.didSSR&&!this.hasUpdated){let s=new Event("lit-hydration-error",{bubbles:!0,composed:!0,cancelable:!1});s.error=t,this.dispatchEvent(s)}throw t}}relayNativeEvent(e,t){e.stopImmediatePropagation(),this.dispatchEvent(new e.constructor(e.type,p(p({},e),t)))}};o=new WeakMap;n([a()],d.prototype,"dir",2);n([a()],d.prototype,"lang",2);n([a({type:Boolean,reflect:!0,attribute:"did-ssr"})],d.prototype,"didSSR",2);export{n as a,d as b};