@roxyapi/ui 0.2.0 → 0.2.2
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/natal-chart.js +5 -5
- package/dist/cdn/components/natal-chart.js.map +3 -3
- package/dist/cdn/components/transits-table.js +93 -74
- 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 +487 -468
- 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 +88 -68
- 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 +93 -73
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +93 -73
- 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 +95 -72
- 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,48 +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
|
-
<th scope="col" class="interp">Interpretation</th>
|
|
5761
|
-
</tr>
|
|
5762
|
-
</thead>
|
|
5763
|
-
<tbody>
|
|
5764
|
-
${aspects.map((a) => {
|
|
5750
|
+
renderAspectsList(aspects) {
|
|
5751
|
+
return html23`<div role="list" aria-label="Transit aspects">
|
|
5752
|
+
${aspects.map((a, idx) => {
|
|
5765
5753
|
const tGlyph = PLANET_GLYPH[capitalize(a.transitPlanet)] ?? "";
|
|
5766
5754
|
const nGlyph = PLANET_GLYPH[capitalize(a.natalPlanet)] ?? "";
|
|
5767
|
-
const
|
|
5768
|
-
const
|
|
5769
|
-
const
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
</
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
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>`;
|
|
5789
5780
|
})}
|
|
5790
|
-
|
|
5791
|
-
</table>`;
|
|
5781
|
+
</div>`;
|
|
5792
5782
|
}
|
|
5793
5783
|
};
|
|
5794
5784
|
RoxyTransitsTable.styles = [
|
|
@@ -5921,43 +5911,73 @@ RoxyTransitsTable.styles = [
|
|
|
5921
5911
|
color: var(--roxy-muted, #71717a);
|
|
5922
5912
|
}
|
|
5923
5913
|
|
|
5924
|
-
.
|
|
5925
|
-
|
|
5914
|
+
.overflow-scroll {
|
|
5915
|
+
overflow-x: auto;
|
|
5916
|
+
-webkit-overflow-scrolling: touch;
|
|
5926
5917
|
}
|
|
5927
5918
|
|
|
5928
|
-
.
|
|
5929
|
-
|
|
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);
|
|
5930
5924
|
}
|
|
5931
|
-
|
|
5932
|
-
|
|
5925
|
+
.aspect-card summary {
|
|
5926
|
+
cursor: pointer;
|
|
5927
|
+
font-weight: 500;
|
|
5928
|
+
color: var(--roxy-fg, #0a0a0a);
|
|
5929
|
+
display: flex;
|
|
5930
|
+
flex-wrap: wrap;
|
|
5931
|
+
align-items: center;
|
|
5932
|
+
gap: 0.5em;
|
|
5933
|
+
}
|
|
5934
|
+
.aspect-card summary .meta {
|
|
5933
5935
|
color: var(--roxy-muted, #71717a);
|
|
5936
|
+
font-weight: 400;
|
|
5937
|
+
font-size: var(--roxy-text-xs, 0.75rem);
|
|
5938
|
+
margin-left: auto;
|
|
5939
|
+
font-variant-numeric: tabular-nums;
|
|
5934
5940
|
}
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
white-space: nowrap;
|
|
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);
|
|
5945
|
+
line-height: 1.45;
|
|
5941
5946
|
}
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5947
|
+
.aspect-card .interp-body p {
|
|
5948
|
+
margin: 0 0 var(--roxy-space-xs, 0.25rem);
|
|
5949
|
+
}
|
|
5950
|
+
.interp-keywords {
|
|
5951
|
+
display: flex;
|
|
5952
|
+
flex-wrap: wrap;
|
|
5953
|
+
gap: 0.25rem;
|
|
5954
|
+
margin-top: 0.5rem;
|
|
5955
|
+
}
|
|
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);
|
|
5945
5961
|
font-size: var(--roxy-text-xs, 0.75rem);
|
|
5946
|
-
max-width: 22rem;
|
|
5947
|
-
white-space: nowrap;
|
|
5948
|
-
overflow: hidden;
|
|
5949
|
-
text-overflow: ellipsis;
|
|
5950
5962
|
}
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
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;
|
|
5956
5969
|
}
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
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);
|
|
5961
5981
|
}
|
|
5962
5982
|
`
|
|
5963
5983
|
];
|
|
@@ -6087,9 +6107,9 @@ var RoxyYogaList = class extends LitElement25 {
|
|
|
6087
6107
|
super(...arguments);
|
|
6088
6108
|
this.data = null;
|
|
6089
6109
|
this.filter = "";
|
|
6090
|
-
this.handleInput =
|
|
6110
|
+
this.handleInput = (e) => {
|
|
6091
6111
|
this.filter = e.target.value;
|
|
6092
|
-
}
|
|
6112
|
+
};
|
|
6093
6113
|
}
|
|
6094
6114
|
renderQualityChip(quality) {
|
|
6095
6115
|
const cls = `quality-chip quality-${quality}`;
|
|
@@ -6630,7 +6650,7 @@ var ROXY_COMPONENTS = [
|
|
|
6630
6650
|
];
|
|
6631
6651
|
|
|
6632
6652
|
// packages/ui/src/version.ts
|
|
6633
|
-
var ROXY_UI_VERSION = "0.2.
|
|
6653
|
+
var ROXY_UI_VERSION = "0.2.2";
|
|
6634
6654
|
|
|
6635
6655
|
// packages/ui/src/index.ts
|
|
6636
6656
|
var ROXY_UI_COMPONENTS = ROXY_COMPONENTS.map((c) => c.slug);
|