@roxyapi/ui 0.2.0 → 0.2.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/dist/cdn/components/transits-table.js +36 -31
- package/dist/cdn/components/transits-table.js.map +3 -3
- package/dist/cdn/roxy-ui.js +35 -30
- package/dist/cdn/roxy-ui.js.map +3 -3
- package/dist/components/transits-table.d.ts.map +1 -1
- package/dist/components/transits-table.js +35 -30
- package/dist/components/transits-table.js.map +2 -2
- package/dist/index.cjs +36 -31
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +36 -31
- package/dist/index.js.map +2 -2
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/transits-table.ts +39 -31
- package/src/version.ts +1 -1
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const ROXY_UI_VERSION = "0.2.
|
|
1
|
+
export declare const ROXY_UI_VERSION = "0.2.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roxyapi/ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Web components for the RoxyAPI catalog. Drop-in charts, tables, cards, forms for astrology, tarot, numerology, biorhythm, I Ching, crystals, dreams, angel numbers, and more. One key, beautiful in 30 minutes.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -162,19 +162,23 @@ export class RoxyTransitsTable extends LitElement {
|
|
|
162
162
|
white-space: nowrap;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
.interp {
|
|
165
|
+
.interp-row td {
|
|
166
|
+
padding-top: 0;
|
|
167
|
+
padding-bottom: var(--roxy-space-sm, 0.5rem);
|
|
168
|
+
border-bottom: 1px solid var(--roxy-border, #e4e4e7);
|
|
166
169
|
color: var(--roxy-secondary, #475569);
|
|
167
170
|
font-size: var(--roxy-text-xs, 0.75rem);
|
|
168
|
-
|
|
169
|
-
white-space: nowrap;
|
|
170
|
-
overflow: hidden;
|
|
171
|
-
text-overflow: ellipsis;
|
|
171
|
+
line-height: 1.45;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
174
|
+
.aspect-row td {
|
|
175
|
+
border-bottom: none;
|
|
176
|
+
padding-bottom: 4px;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.aspect-row.no-interp td {
|
|
180
|
+
border-bottom: 1px solid var(--roxy-border, #e4e4e7);
|
|
181
|
+
padding-bottom: var(--roxy-space-sm, 0.5rem);
|
|
178
182
|
}
|
|
179
183
|
|
|
180
184
|
.overflow-scroll {
|
|
@@ -307,7 +311,6 @@ export class RoxyTransitsTable extends LitElement {
|
|
|
307
311
|
<th scope="col">Orb</th>
|
|
308
312
|
<th scope="col">Status</th>
|
|
309
313
|
<th scope="col">Strength</th>
|
|
310
|
-
<th scope="col" class="interp">Interpretation</th>
|
|
311
314
|
</tr>
|
|
312
315
|
</thead>
|
|
313
316
|
<tbody>
|
|
@@ -316,27 +319,32 @@ export class RoxyTransitsTable extends LitElement {
|
|
|
316
319
|
const nGlyph = PLANET_GLYPH[capitalize(a.natalPlanet)] ?? '';
|
|
317
320
|
const natureClass = `nature-${(a.nature ?? '').toLowerCase()}`;
|
|
318
321
|
const summary = a.interpretation?.summary ?? '';
|
|
319
|
-
const
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
</
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
</
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
322
|
+
const rowClass = summary ? 'aspect-row' : 'aspect-row no-interp';
|
|
323
|
+
return html`<tr class=${rowClass}>
|
|
324
|
+
<td>
|
|
325
|
+
<div class="arrow-cell">
|
|
326
|
+
<span class="glyph" aria-hidden="true">${tGlyph}</span>
|
|
327
|
+
${a.transitPlanet}
|
|
328
|
+
</div>
|
|
329
|
+
</td>
|
|
330
|
+
<td>
|
|
331
|
+
<div class="arrow-cell">
|
|
332
|
+
<span class="glyph" aria-hidden="true">${nGlyph}</span>
|
|
333
|
+
${a.natalPlanet}
|
|
334
|
+
</div>
|
|
335
|
+
</td>
|
|
336
|
+
<td class=${natureClass}>${(a.type ?? '').toLowerCase()}</td>
|
|
337
|
+
<td class="num">${formatNumber(a.orb, 2)}</td>
|
|
338
|
+
<td>${a.isApplying ? 'Applying' : 'Separating'}</td>
|
|
339
|
+
<td class="num">${formatNumber(a.strength, 1)}</td>
|
|
340
|
+
</tr>
|
|
341
|
+
${
|
|
342
|
+
summary
|
|
343
|
+
? html`<tr class="interp-row">
|
|
344
|
+
<td colspan="6">${summary}</td>
|
|
345
|
+
</tr>`
|
|
346
|
+
: nothing
|
|
347
|
+
}`;
|
|
340
348
|
})}
|
|
341
349
|
</tbody>
|
|
342
350
|
</table>`;
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by scripts/sync-version.ts. Do not edit.
|
|
2
|
-
export const ROXY_UI_VERSION = '0.2.
|
|
2
|
+
export const ROXY_UI_VERSION = '0.2.1';
|