@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/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const ROXY_UI_VERSION = "0.2.0";
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.0",
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
- max-width: 22rem;
169
- white-space: nowrap;
170
- overflow: hidden;
171
- text-overflow: ellipsis;
171
+ line-height: 1.45;
172
172
  }
173
173
 
174
- @container (max-width: 600px) {
175
- .interp {
176
- display: none;
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 truncated =
320
- summary.length > 120 ? `${summary.slice(0, 120)}...` : summary;
321
- return html`<tr>
322
- <td>
323
- <div class="arrow-cell">
324
- <span class="glyph" aria-hidden="true">${tGlyph}</span>
325
- ${a.transitPlanet}
326
- </div>
327
- </td>
328
- <td>
329
- <div class="arrow-cell">
330
- <span class="glyph" aria-hidden="true">${nGlyph}</span>
331
- ${a.natalPlanet}
332
- </div>
333
- </td>
334
- <td class=${natureClass}>${(a.type ?? '').toLowerCase()}</td>
335
- <td class="num">${formatNumber(a.orb, 2)}</td>
336
- <td>${a.isApplying ? 'Applying' : 'Separating'}</td>
337
- <td class="num">${formatNumber(a.strength, 1)}</td>
338
- <td class="interp" title=${summary}>${truncated}</td>
339
- </tr>`;
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.0';
2
+ export const ROXY_UI_VERSION = '0.2.1';