@roxyapi/ui 0.2.1 → 0.2.3
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 +3 -3
- package/dist/cdn/components/natal-chart.js +5 -5
- package/dist/cdn/components/natal-chart.js.map +3 -3
- package/dist/cdn/components/transits-table.js +92 -78
- package/dist/cdn/components/transits-table.js.map +3 -3
- package/dist/cdn/components/yoga-list.js +13 -13
- package/dist/cdn/components/yoga-list.js.map +4 -4
- package/dist/cdn/roxy-ui.js +486 -472
- package/dist/cdn/roxy-ui.js.map +3 -3
- package/dist/components/natal-chart.js +2 -2
- package/dist/components/natal-chart.js.map +2 -2
- package/dist/components/transits-table.d.ts +1 -1
- package/dist/components/transits-table.d.ts.map +1 -1
- package/dist/components/transits-table.js +87 -72
- package/dist/components/transits-table.js.map +2 -2
- package/dist/components/yoga-list.d.ts.map +1 -1
- package/dist/components/yoga-list.js +2 -21
- package/dist/components/yoga-list.js.map +3 -3
- package/dist/index.cjs +92 -77
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +92 -77
- package/dist/index.js.map +2 -2
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/natal-chart.ts +2 -2
- package/src/components/transits-table.ts +92 -77
- package/src/components/yoga-list.ts +2 -3
- package/src/version.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -3961,11 +3961,11 @@ var RoxyNatalChart = class extends LitElement16 {
|
|
|
3961
3961
|
if (planets.length === 0) return nothing17;
|
|
3962
3962
|
return html16`<section class="interpretations">
|
|
3963
3963
|
<h3>Planet readings</h3>
|
|
3964
|
-
${planets.map((p) => {
|
|
3964
|
+
${planets.map((p, idx) => {
|
|
3965
3965
|
const interp = p.interpretation;
|
|
3966
3966
|
const glyph = PLANET_GLYPH[capitalize(p.name)] ?? "";
|
|
3967
3967
|
const deg = formatNumber(p.degree ?? 0, 1);
|
|
3968
|
-
return html16`<details class="interp-card">
|
|
3968
|
+
return html16`<details class="interp-card" name="natal-planet-readings" ?open=${idx === 0}>
|
|
3969
3969
|
<summary>${glyph} ${p.name} <small>${p.sign ?? ""} ${deg}</small></summary>
|
|
3970
3970
|
<div class="interp-body">
|
|
3971
3971
|
${interp.summary ? html16`<p class="interp-summary">${interp.summary}</p>` : nothing17}
|
|
@@ -5687,7 +5687,7 @@ var RoxyTransitsTable = class extends LitElement23 {
|
|
|
5687
5687
|
${transitAspects?.length ? html23`<div>
|
|
5688
5688
|
<p class="section-label">Transit aspects</p>
|
|
5689
5689
|
<div class="overflow-scroll">
|
|
5690
|
-
${this.
|
|
5690
|
+
${this.renderAspectsList(transitAspects)}
|
|
5691
5691
|
</div>
|
|
5692
5692
|
</div>` : nothing24}
|
|
5693
5693
|
</div>`;
|
|
@@ -5747,49 +5747,38 @@ var RoxyTransitsTable = class extends LitElement23 {
|
|
|
5747
5747
|
</tbody>
|
|
5748
5748
|
</table>`;
|
|
5749
5749
|
}
|
|
5750
|
-
|
|
5751
|
-
return html23`<
|
|
5752
|
-
|
|
5753
|
-
<tr>
|
|
5754
|
-
<th scope="col">Transit Planet</th>
|
|
5755
|
-
<th scope="col">Natal Planet</th>
|
|
5756
|
-
<th scope="col">Type</th>
|
|
5757
|
-
<th scope="col">Orb</th>
|
|
5758
|
-
<th scope="col">Status</th>
|
|
5759
|
-
<th scope="col">Strength</th>
|
|
5760
|
-
</tr>
|
|
5761
|
-
</thead>
|
|
5762
|
-
<tbody>
|
|
5763
|
-
${aspects.map((a) => {
|
|
5750
|
+
renderAspectsList(aspects) {
|
|
5751
|
+
return html23`<div role="list" aria-label="Transit aspects">
|
|
5752
|
+
${aspects.map((a, idx) => {
|
|
5764
5753
|
const tGlyph = PLANET_GLYPH[capitalize(a.transitPlanet)] ?? "";
|
|
5765
5754
|
const nGlyph = PLANET_GLYPH[capitalize(a.natalPlanet)] ?? "";
|
|
5766
|
-
const
|
|
5767
|
-
const
|
|
5768
|
-
const
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5755
|
+
const nature = (a.nature ?? "neutral").toLowerCase();
|
|
5756
|
+
const interp = a.interpretation;
|
|
5757
|
+
const type = (a.type ?? "").toLowerCase();
|
|
5758
|
+
const status = a.isApplying ? "Applying" : "Separating";
|
|
5759
|
+
return html23`<details class="aspect-card" role="listitem" name="transit-aspects" ?open=${idx === 0}>
|
|
5760
|
+
<summary>
|
|
5761
|
+
<span aria-hidden="true">${tGlyph}</span>
|
|
5762
|
+
${a.transitPlanet}
|
|
5763
|
+
<span class="nature-badge ${nature}">${type}</span>
|
|
5764
|
+
<span aria-hidden="true">${nGlyph}</span>
|
|
5765
|
+
${a.natalPlanet}
|
|
5766
|
+
<span class="meta">
|
|
5767
|
+
${status} · orb ${formatNumber(a.orb, 2)}° · strength ${formatNumber(a.strength, 1)}
|
|
5768
|
+
</span>
|
|
5769
|
+
</summary>
|
|
5770
|
+
<div class="interp-body">
|
|
5771
|
+
${interp?.summary ? html23`<p>${interp.summary}</p>` : nothing24}
|
|
5772
|
+
${interp?.impact ? html23`<p><strong>Impact:</strong> ${interp.impact}</p>` : nothing24}
|
|
5773
|
+
${interp?.timing ? html23`<p><strong>Timing:</strong> ${interp.timing}</p>` : nothing24}
|
|
5774
|
+
${interp?.guidance ? html23`<p><strong>Guidance:</strong> ${interp.guidance}</p>` : nothing24}
|
|
5775
|
+
${interp?.keywords?.length ? html23`<div class="interp-keywords">
|
|
5776
|
+
${interp.keywords.map((k) => html23`<span class="kw">${k}</span>`)}
|
|
5777
|
+
</div>` : nothing24}
|
|
5778
|
+
</div>
|
|
5779
|
+
</details>`;
|
|
5790
5780
|
})}
|
|
5791
|
-
|
|
5792
|
-
</table>`;
|
|
5781
|
+
</div>`;
|
|
5793
5782
|
}
|
|
5794
5783
|
};
|
|
5795
5784
|
RoxyTransitsTable.styles = [
|
|
@@ -5922,47 +5911,73 @@ RoxyTransitsTable.styles = [
|
|
|
5922
5911
|
color: var(--roxy-muted, #71717a);
|
|
5923
5912
|
}
|
|
5924
5913
|
|
|
5925
|
-
.
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
.nature-challenging {
|
|
5930
|
-
color: var(--roxy-danger-fg, #991b1b);
|
|
5914
|
+
.overflow-scroll {
|
|
5915
|
+
overflow-x: auto;
|
|
5916
|
+
-webkit-overflow-scrolling: touch;
|
|
5931
5917
|
}
|
|
5932
5918
|
|
|
5933
|
-
.
|
|
5934
|
-
|
|
5919
|
+
.aspect-card {
|
|
5920
|
+
border: 1px solid var(--roxy-border, #e4e4e7);
|
|
5921
|
+
border-radius: var(--roxy-radius-md, 8px);
|
|
5922
|
+
padding: var(--roxy-space-sm, 0.5rem) var(--roxy-space-md, 1rem);
|
|
5923
|
+
margin-bottom: var(--roxy-space-xs, 0.25rem);
|
|
5935
5924
|
}
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5925
|
+
.aspect-card summary {
|
|
5926
|
+
cursor: pointer;
|
|
5927
|
+
font-weight: 500;
|
|
5928
|
+
color: var(--roxy-fg, #0a0a0a);
|
|
5929
|
+
display: flex;
|
|
5930
|
+
flex-wrap: wrap;
|
|
5939
5931
|
align-items: center;
|
|
5940
|
-
gap:
|
|
5941
|
-
white-space: nowrap;
|
|
5932
|
+
gap: 0.5em;
|
|
5942
5933
|
}
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
padding-bottom: var(--roxy-space-sm, 0.5rem);
|
|
5947
|
-
border-bottom: 1px solid var(--roxy-border, #e4e4e7);
|
|
5948
|
-
color: var(--roxy-secondary, #475569);
|
|
5934
|
+
.aspect-card summary .meta {
|
|
5935
|
+
color: var(--roxy-muted, #71717a);
|
|
5936
|
+
font-weight: 400;
|
|
5949
5937
|
font-size: var(--roxy-text-xs, 0.75rem);
|
|
5938
|
+
margin-left: auto;
|
|
5939
|
+
font-variant-numeric: tabular-nums;
|
|
5940
|
+
}
|
|
5941
|
+
.aspect-card .interp-body {
|
|
5942
|
+
margin-top: var(--roxy-space-xs, 0.25rem);
|
|
5943
|
+
color: var(--roxy-fg, #0a0a0a);
|
|
5944
|
+
font-size: var(--roxy-text-sm, 0.875rem);
|
|
5950
5945
|
line-height: 1.45;
|
|
5951
5946
|
}
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
border-bottom: none;
|
|
5955
|
-
padding-bottom: 4px;
|
|
5947
|
+
.aspect-card .interp-body p {
|
|
5948
|
+
margin: 0 0 var(--roxy-space-xs, 0.25rem);
|
|
5956
5949
|
}
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5950
|
+
.interp-keywords {
|
|
5951
|
+
display: flex;
|
|
5952
|
+
flex-wrap: wrap;
|
|
5953
|
+
gap: 0.25rem;
|
|
5954
|
+
margin-top: 0.5rem;
|
|
5961
5955
|
}
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
-
|
|
5956
|
+
.interp-keywords .kw {
|
|
5957
|
+
padding: 1px 8px;
|
|
5958
|
+
border-radius: 9999px;
|
|
5959
|
+
background: color-mix(in srgb, var(--roxy-accent, #f59e0b) 14%, transparent);
|
|
5960
|
+
color: var(--roxy-accent-fg, #b45309);
|
|
5961
|
+
font-size: var(--roxy-text-xs, 0.75rem);
|
|
5962
|
+
}
|
|
5963
|
+
.nature-badge {
|
|
5964
|
+
display: inline-block;
|
|
5965
|
+
padding: 1px 8px;
|
|
5966
|
+
border-radius: 9999px;
|
|
5967
|
+
font-size: var(--roxy-text-xs, 0.75rem);
|
|
5968
|
+
font-weight: 600;
|
|
5969
|
+
}
|
|
5970
|
+
.nature-badge.harmonious {
|
|
5971
|
+
background: color-mix(in srgb, var(--roxy-success, #16a34a) 12%, transparent);
|
|
5972
|
+
color: var(--roxy-success-fg, #166534);
|
|
5973
|
+
}
|
|
5974
|
+
.nature-badge.challenging {
|
|
5975
|
+
background: color-mix(in srgb, var(--roxy-danger, #dc2626) 12%, transparent);
|
|
5976
|
+
color: var(--roxy-danger-fg, #991b1b);
|
|
5977
|
+
}
|
|
5978
|
+
.nature-badge.neutral {
|
|
5979
|
+
background: color-mix(in srgb, var(--roxy-border, #e4e4e7) 60%, transparent);
|
|
5980
|
+
color: var(--roxy-fg, #0a0a0a);
|
|
5966
5981
|
}
|
|
5967
5982
|
`
|
|
5968
5983
|
];
|
|
@@ -6092,9 +6107,9 @@ var RoxyYogaList = class extends LitElement25 {
|
|
|
6092
6107
|
super(...arguments);
|
|
6093
6108
|
this.data = null;
|
|
6094
6109
|
this.filter = "";
|
|
6095
|
-
this.handleInput =
|
|
6110
|
+
this.handleInput = (e) => {
|
|
6096
6111
|
this.filter = e.target.value;
|
|
6097
|
-
}
|
|
6112
|
+
};
|
|
6098
6113
|
}
|
|
6099
6114
|
renderQualityChip(quality) {
|
|
6100
6115
|
const cls = `quality-chip quality-${quality}`;
|
|
@@ -6635,7 +6650,7 @@ var ROXY_COMPONENTS = [
|
|
|
6635
6650
|
];
|
|
6636
6651
|
|
|
6637
6652
|
// packages/ui/src/version.ts
|
|
6638
|
-
var ROXY_UI_VERSION = "0.2.
|
|
6653
|
+
var ROXY_UI_VERSION = "0.2.3";
|
|
6639
6654
|
|
|
6640
6655
|
// packages/ui/src/index.ts
|
|
6641
6656
|
var ROXY_UI_COMPONENTS = ROXY_COMPONENTS.map((c) => c.slug);
|