@roxyapi/ui-react 1.1.3 → 1.3.0
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/AGENTS.md +39 -1
- package/README.md +82 -1
- package/dist/components/almanac-day.d.ts +6 -0
- package/dist/components/almanac-day.js +1 -1
- package/dist/components/angel-number-card.d.ts +6 -0
- package/dist/components/angel-number-card.js +1 -1
- package/dist/components/angel-number-lookup.d.ts +6 -0
- package/dist/components/angel-number-lookup.js +1 -1
- package/dist/components/arudha-padas.d.ts +6 -0
- package/dist/components/arudha-padas.js +1 -1
- package/dist/components/ashtakavarga-grid.d.ts +6 -0
- package/dist/components/ashtakavarga-grid.js +1 -1
- package/dist/components/aspects-table.d.ts +6 -0
- package/dist/components/aspects-table.js +1 -1
- package/dist/components/astrocartography-map.d.ts +6 -0
- package/dist/components/astrocartography-map.js +1 -1
- package/dist/components/bazi-chart.d.ts +6 -0
- package/dist/components/bazi-chart.js +1 -1
- package/dist/components/bhav-chalit-table.d.ts +6 -0
- package/dist/components/bhav-chalit-table.js +1 -1
- package/dist/components/bhava-bala-table.d.ts +6 -0
- package/dist/components/bhava-bala-table.js +1 -1
- package/dist/components/biorhythm-chart.d.ts +6 -0
- package/dist/components/biorhythm-chart.js +1 -1
- package/dist/components/bodygraph.d.ts +6 -0
- package/dist/components/bodygraph.js +1 -1
- package/dist/components/chara-karakas.d.ts +6 -0
- package/dist/components/chara-karakas.js +1 -1
- package/dist/components/choghadiya-grid.d.ts +6 -0
- package/dist/components/choghadiya-grid.js +1 -1
- package/dist/components/compatibility-card.d.ts +6 -0
- package/dist/components/compatibility-card.js +1 -1
- package/dist/components/compound-number.d.ts +6 -0
- package/dist/components/compound-number.js +1 -1
- package/dist/components/crystal-card.d.ts +6 -0
- package/dist/components/crystal-card.js +1 -1
- package/dist/components/crystal-grid.d.ts +6 -0
- package/dist/components/crystal-grid.js +1 -1
- package/dist/components/dasha-timeline.d.ts +6 -0
- package/dist/components/dasha-timeline.js +1 -1
- package/dist/components/data.d.ts +6 -0
- package/dist/components/data.js +1 -1
- package/dist/components/divisional-chart.d.ts +6 -0
- package/dist/components/divisional-chart.js +1 -1
- package/dist/components/dosha-card.d.ts +6 -0
- package/dist/components/dosha-card.js +1 -1
- package/dist/components/dosha-constitution.d.ts +6 -0
- package/dist/components/dosha-constitution.js +1 -1
- package/dist/components/dream-card.d.ts +6 -0
- package/dist/components/dream-card.js +1 -1
- package/dist/components/dream-search.d.ts +6 -0
- package/dist/components/dream-search.js +1 -1
- package/dist/components/endpoint-form.js +1 -1
- package/dist/components/ephemeris-table.d.ts +6 -0
- package/dist/components/ephemeris-table.js +1 -1
- package/dist/components/fixed-stars.d.ts +6 -0
- package/dist/components/fixed-stars.js +1 -1
- package/dist/components/flying-star-chart.d.ts +6 -0
- package/dist/components/flying-star-chart.js +1 -1
- package/dist/components/forecast-digest.d.ts +6 -0
- package/dist/components/forecast-digest.js +1 -1
- package/dist/components/forecast-timeline.d.ts +6 -0
- package/dist/components/forecast-timeline.js +1 -1
- package/dist/components/gematria.d.ts +6 -0
- package/dist/components/gematria.js +1 -1
- package/dist/components/gochara-table.d.ts +6 -0
- package/dist/components/gochara-table.js +1 -1
- package/dist/components/guna-milan.d.ts +6 -0
- package/dist/components/guna-milan.js +1 -1
- package/dist/components/hd-connection.d.ts +6 -0
- package/dist/components/hd-connection.js +1 -1
- package/dist/components/hd-penta.d.ts +6 -0
- package/dist/components/hd-penta.js +1 -1
- package/dist/components/hd-type-card.d.ts +6 -0
- package/dist/components/hd-type-card.js +1 -1
- package/dist/components/hd-variables.d.ts +6 -0
- package/dist/components/hd-variables.js +1 -1
- package/dist/components/heliacal-table.d.ts +6 -0
- package/dist/components/heliacal-table.js +1 -1
- package/dist/components/hexagram.d.ts +6 -0
- package/dist/components/hexagram.js +1 -1
- package/dist/components/hora-table.d.ts +6 -0
- package/dist/components/hora-table.js +1 -1
- package/dist/components/horoscope-card.d.ts +6 -0
- package/dist/components/horoscope-card.js +1 -1
- package/dist/components/kp-chart.d.ts +6 -0
- package/dist/components/kp-chart.js +1 -1
- package/dist/components/kp-finance-card.d.ts +6 -0
- package/dist/components/kp-finance-card.js +1 -1
- package/dist/components/kp-planets-table.d.ts +6 -0
- package/dist/components/kp-planets-table.js +1 -1
- package/dist/components/kp-ruling-planets.d.ts +6 -0
- package/dist/components/kp-ruling-planets.js +1 -1
- package/dist/components/kua-card.d.ts +6 -0
- package/dist/components/kua-card.js +1 -1
- package/dist/components/local-space-compass.d.ts +6 -0
- package/dist/components/local-space-compass.js +1 -1
- package/dist/components/location-search.js +1 -1
- package/dist/components/luck-pillars.d.ts +6 -0
- package/dist/components/luck-pillars.js +1 -1
- package/dist/components/mayan-day-sign.d.ts +6 -0
- package/dist/components/mayan-day-sign.js +1 -1
- package/dist/components/moon-phase.d.ts +6 -0
- package/dist/components/moon-phase.js +1 -1
- package/dist/components/nakshatra-card.d.ts +6 -0
- package/dist/components/nakshatra-card.js +1 -1
- package/dist/components/natal-chart.d.ts +6 -0
- package/dist/components/natal-chart.js +1 -1
- package/dist/components/numerology-card.d.ts +6 -0
- package/dist/components/numerology-card.js +1 -1
- package/dist/components/panchang-table.d.ts +6 -0
- package/dist/components/panchang-table.js +1 -1
- package/dist/components/positions-table.d.ts +6 -0
- package/dist/components/positions-table.js +1 -1
- package/dist/components/profection-card.d.ts +6 -0
- package/dist/components/profection-card.js +1 -1
- package/dist/components/reference-card.d.ts +6 -0
- package/dist/components/reference-card.js +1 -1
- package/dist/components/relocation-wheel.d.ts +6 -0
- package/dist/components/relocation-wheel.js +1 -1
- package/dist/components/report.d.ts +59 -0
- package/dist/components/report.js +1 -0
- package/dist/components/shadbala-table.d.ts +6 -0
- package/dist/components/shadbala-table.js +1 -1
- package/dist/components/synastry-chart.d.ts +6 -0
- package/dist/components/synastry-chart.js +1 -1
- package/dist/components/tarot-card.d.ts +6 -0
- package/dist/components/tarot-card.js +1 -1
- package/dist/components/tarot-catalog.d.ts +6 -0
- package/dist/components/tarot-catalog.js +1 -1
- package/dist/components/tarot-spread.d.ts +6 -0
- package/dist/components/tarot-spread.js +1 -1
- package/dist/components/transit-wheel.d.ts +6 -0
- package/dist/components/transit-wheel.js +1 -1
- package/dist/components/transits-table.d.ts +6 -0
- package/dist/components/transits-table.js +1 -1
- package/dist/components/upagraha-table.d.ts +6 -0
- package/dist/components/upagraha-table.js +1 -1
- package/dist/components/vastu-mandala.d.ts +6 -0
- package/dist/components/vastu-mandala.js +1 -1
- package/dist/components/vedic-aspects.d.ts +6 -0
- package/dist/components/vedic-aspects.js +1 -1
- package/dist/components/vedic-daily.d.ts +6 -0
- package/dist/components/vedic-daily.js +1 -1
- package/dist/components/vedic-kundli.d.ts +6 -0
- package/dist/components/vedic-kundli.js +1 -1
- package/dist/components/vedic-planets-table.d.ts +6 -0
- package/dist/components/vedic-planets-table.js +1 -1
- package/dist/components/western-planets-table.d.ts +6 -0
- package/dist/components/western-planets-table.js +1 -1
- package/dist/components/yoga-list.d.ts +6 -0
- package/dist/components/yoga-list.js +1 -1
- package/dist/components/zodiac-card.d.ts +6 -0
- package/dist/components/zodiac-card.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/jsx.d.ts +21 -0
- package/dist/jsx.js +1 -0
- package/dist/load-ui.d.ts +1 -1
- package/dist/load-ui.js +1 -1
- package/dist/tool-component.cjs +1 -1
- package/dist/tool-component.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types.gen.d.ts +17614 -15166
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -48,6 +48,7 @@ Map the natural-language request to a component first; fall back to the table be
|
|
|
48
48
|
| "angel number {n}", "meaning of 111 / 222 / 1111", "I keep seeing this number" | `<roxy-angel-number-card>` |
|
|
49
49
|
| "what does {any number} mean", "analyze this number", "is 1234 an angel number" | `<roxy-angel-number-lookup>` |
|
|
50
50
|
| "crystals for {chakra}", "healing stones", "birthstone for {month}", "crystals for {sign}" | `<roxy-crystal-grid>` |
|
|
51
|
+
| "branded report", "white-label PDF", "sell a reading", "downloadable report" | `<roxy-report>` with `report` set to the report id (Pattern 8) |
|
|
51
52
|
| "search a city", "geocode", "lat/long for a place" | `<roxy-location-search>` |
|
|
52
53
|
| "build a form for endpoint X" | `<roxy-endpoint-form>` |
|
|
53
54
|
|
|
@@ -132,6 +133,7 @@ Use the table below for the formal endpoint to component mapping.
|
|
|
132
133
|
| `<roxy-dream-search>` | Dreams | GET /dreams/symbols | The dream dictionary as tiles, browsed A to Z or searched; a pick opens the card in place |
|
|
133
134
|
| `<roxy-angel-number-card>` | Angel Numbers | GET /angel-numbers/numbers/{number}, POST /angel-numbers/daily | Number meaning with spiritual, love, career, money, twin flame, biblical, and shadow sections |
|
|
134
135
|
| `<roxy-angel-number-lookup>` | Angel Numbers | GET /angel-numbers/lookup | Pattern analysis plus known meaning and digit-root fallback |
|
|
136
|
+
| `<roxy-report>` | Reports | POST /reports/... | Form to finished branded report, as a PDF download or inline HTML |
|
|
135
137
|
| `<roxy-reference-card>` | Reference | GET /astrology/{signs,planet-meanings}/{id}, /vedic-astrology/{rashis,avasthas}/{id}, /iching/trigrams/{id}, /human-design/gates/{number}, /human-design/centers/{id}, /numerology/meanings/{number} | Symbol, name, description, keyword chips, and an attribute grid for any glossary lookup |
|
|
136
138
|
| `<roxy-endpoint-form>` | Helper | Any endpoint, from the spec | Schema-driven form, emits roxy-submit |
|
|
137
139
|
| `<roxy-location-search>` | Helper | GET /location/search | Debounced city search input, emits roxy-location-select |
|
|
@@ -459,7 +461,7 @@ In React, the same props are typed: `<RoxyNatalChart publishableKey={process.env
|
|
|
459
461
|
|
|
460
462
|
**One tag, no element wiring.** For the simplest embed, load `dist/cdn/widgets.js` and drop a `<div data-roxy-widget="{slug}" data-publishable-key="pk_live_...">`. The script mounts the matching component from a generated slug map: with every path parameter supplied as a `data-*` attribute (`data-sign`, `data-id`) it fetches on mount, otherwise it renders the same input form. A second `data-*` attribute picks a variant (`data-period`, `data-mode`, `data-type`, `data-spread`). To keep every key on your own server instead, drop the publishable key and give the tag `data-submit-url`: the widget renders the form and routes every request there, the city search included, and `data-location-url` sends the city search somewhere else. `data-submit-context` rides along with each proxied request.
|
|
461
463
|
|
|
462
|
-
**Theme every widget in one link.** Add `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/styles/themes/practitioner.css">` for the Rosewater preset, a warm serif look (or `eucalyptus.css`, `kiln.css`, `moonlit.css`, or `celeste.css` for the roxyapi.com look, from the same folder; `components-catalog.json` lists every preset under `themes
|
|
464
|
+
**Theme every widget in one link.** Add `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/styles/themes/practitioner.css">` for the Rosewater preset, a warm serif look (or `eucalyptus.css`, `kiln.css`, `moonlit.css`, or `celeste.css` for the roxyapi.com look, from the same folder; `components-catalog.json` lists every preset under `themes`; each names a default font pair and loads no font itself), or set the `--roxy-font-display` token alone to swap result headings to a display face (it defaults to the body font, so nothing changes until you set it). See [THEMING.md](packages/ui/THEMING.md).
|
|
463
465
|
|
|
464
466
|
### Pattern 5: MCP tool-call response
|
|
465
467
|
|
|
@@ -559,6 +561,36 @@ This is how the WordPress plugin renders: PHP fetches the response server-side,
|
|
|
559
561
|
|
|
560
562
|
- Writing the tag itself in a React or Next.js file? Import `@roxyapi/ui-react/jsx` once anywhere in the project and every `roxy-*` tag is typed, with its attributes and their legal values. It is the raw-tag path, so it carries attributes only; a page that passes a response uses the React or Vue component instead, which sets `data` as a property.
|
|
561
563
|
|
|
564
|
+
### Pattern 8: a branded report the visitor downloads
|
|
565
|
+
|
|
566
|
+
`<roxy-report>` renders the form a report asks for and returns the finished document under the site owner's brand. `report` picks it by id (the `report` values on the `roxy-report` endpoints in `components-catalog.json`: `natal`, `synastry`, `kundli`, `matchmaking`, `yearly-forecast`, `human-design`, `bazi`, `numerology`, `tarot`). `format="pdf"` (default) shows a download named after the report; `format="html"` shows the document in place.
|
|
567
|
+
|
|
568
|
+
```html
|
|
569
|
+
<roxy-report report="natal" publishable-key="pk_live_..." brand-name="Luna Rivera Astrology" brand-logo="https://example.com/logo.png" brand-footer="Book a reading at example.com" brand-color="#1e293b" brand-accent="#b45309" font="jost" theme="moonlit"></roxy-report>
|
|
570
|
+
```
|
|
571
|
+
|
|
572
|
+
Rules for this pattern:
|
|
573
|
+
|
|
574
|
+
- Branding comes from the element only (`brand-name`, `brand-logo`, `brand-footer`, `brand-color`, `brand-accent`, `font`, `theme`); the form never asks the visitor for it. Every value is optional.
|
|
575
|
+
- `theme` takes a `key` from `themes[]` in `components-catalog.json` and prints the document in that preset; link the same preset stylesheet so the form matches. `hide-readings` returns the charts and the data without the written reading.
|
|
576
|
+
- `brand-color` and `brand-accent` take `#rgb` or `#rrggbb`; `font` takes a `key` from `fonts[]` in `components-catalog.json`. The same three paint the form, so the page and the document match.
|
|
577
|
+
- A rejected request reads as one sentence in the page language above the API message, and a field the API names is marked under its input. Events: `roxy-validation-error`, `roxy-render-error`.
|
|
578
|
+
- One-tag widget: `<div data-roxy-widget="report" data-report="kundli" data-brand-name="..." data-publishable-key="pk_live_..."></div>`. React and Vue: `report`, `format`, `brandName`, `brandLogo`, `brandFooter`, `brandColor`, `brandAccent`, `font`, `theme`, `hideReadings`.
|
|
579
|
+
|
|
580
|
+
### Pattern 9: a chart as an SVG string on the server
|
|
581
|
+
|
|
582
|
+
`@roxyapi/ui/charts` returns the exact `<svg>` a component draws, as a string, with no DOM: `natalWheelSvg(natalResponse, { lang })`, `synastryWheelSvg(synastryResponse)`, `kundliSvg(toKundliViewModel(birthChart.meta), { style: 'south' })`, `bodygraphSvg(bodygraphResponse)`. Use it for a PDF, an email or a static page.
|
|
583
|
+
|
|
584
|
+
```ts
|
|
585
|
+
import { natalWheelSvg } from '@roxyapi/ui/charts';
|
|
586
|
+
import '@roxyapi/ui/locales/es';
|
|
587
|
+
|
|
588
|
+
const { data } = await roxy.astrology.generateNatalChart({ body, throwOnError: true });
|
|
589
|
+
const svg: string = natalWheelSvg(data, { lang: 'es' });
|
|
590
|
+
```
|
|
591
|
+
|
|
592
|
+
Paint it with `dist/styles/tokens.css` plus the chart sheet, `dist/styles/charts/{natal-wheel,synastry-wheel,kundli,bodygraph}.css` (subpath `@roxyapi/ui/styles/charts/*.css`). Import a locale only for a language other than English. The same subpath exports the font pairs as data: `ROXY_FONTS` (keys as in `fonts[]`) and `fontFaces(key)`.
|
|
593
|
+
|
|
562
594
|
## Localized responses
|
|
563
595
|
|
|
564
596
|
Most RoxyAPI endpoints return their interpretation text in the language you ask for, selected with the `lang` query parameter (`en`, `tr`, `de`, `es`, `hi`, `pt`, `fr`, `ru`, `zh-Hans`, `zh-Hant`). Human Design, for example, returns the type, strategy, authority, profile, channel, center, gate, and line readings in the requested language. Coverage varies by domain, and a field with no translation in the language you asked for comes back in English.
|
|
@@ -630,6 +662,12 @@ Every visible aspect of the chart is driven by `--roxy-*` CSS custom properties
|
|
|
630
662
|
|
|
631
663
|
**One plain declaration is the whole override, including from inside a layer of your own.** The shipped defaults are declared at zero specificity and inside the `roxy` cascade layer, so `:root { --roxy-accent: #6d28d9 }` beats them in both modes, and so does the same line inside `@layer base`, which is where a framework maps its palette onto ours. Never reach for `html:root` or `!important`. If you link `tokens.css` after your own CSS, name the order once with `@layer roxy, base, components, utilities;`. And if your tokens are scoped to a container element rather than to `:root`, write the mode on that same container element (`data-theme="light"` or `"dark"`), because every token you did not override is still decided at the document root by the visitor OS.
|
|
632
664
|
|
|
665
|
+
**Brand without CSS.** Every component takes `brand-color` and `brand-accent` (`#rgb` or `#rrggbb`) and `font` (a `key` from `fonts[]` in `components-catalog.json`, which lists each pair with its stylesheet and files). Theme and font are separate: a preset sets colours, radius and shadow and names a default font pair in `--roxy-font` (its `font` in `themes[]`); `font` on a component overrides it, and with neither the component keeps the page font. Only the pair in use loads. From the CDN script, the pair's stylesheet loads from the same place as the script. In an npm build, import `@roxyapi/ui/styles/fonts/{key}.css` once, the same way as `tokens.css`, or copy `dist/styles/fonts` to your own origin and link it. A value that does not validate is ignored. React and Vue: `brandColor`, `brandAccent`, `font`.
|
|
666
|
+
|
|
667
|
+
```html
|
|
668
|
+
<roxy-natal-chart brand-color="#3e2a2c" brand-accent="#914955" font="fraunces-jost"></roxy-natal-chart>
|
|
669
|
+
```
|
|
670
|
+
|
|
633
671
|
## Choosing what a component renders
|
|
634
672
|
|
|
635
673
|
Three tools, one vocabulary. Every structural block carries a `part` name; `::part()` targets it from a stylesheet, `hide-sections` drops it on one element, and `hide-readings` removes interpretive prose from the markup entirely.
|
package/README.md
CHANGED
|
@@ -83,7 +83,7 @@ Light, dark, your brand. A handful of base tokens style the whole library and ev
|
|
|
83
83
|
}
|
|
84
84
|
```
|
|
85
85
|
|
|
86
|
-
Pick a tone, set the bases, every chart and card follows. Named presets ship as one stylesheet each (Rosewater, Eucalyptus, Kiln, Moonlit, and Celeste, the roxyapi.com look). Full token reference, the presets and the drawing hooks at [THEMING.md](https://github.com/RoxyAPI/ui/blob/main/packages/ui/THEMING.md). See the [FAQ](#faq) for switching between light and dark at runtime.
|
|
86
|
+
Pick a tone, set the bases, every chart and card follows. Named presets ship as one stylesheet each (Rosewater, Eucalyptus, Kiln, Moonlit, and Celeste, the roxyapi.com look), each naming a default font pair that `font` on a component overrides; only the pair in use loads, from where the components are served. Full token reference, the presets and the drawing hooks at [THEMING.md](https://github.com/RoxyAPI/ui/blob/main/packages/ui/THEMING.md). See the [FAQ](#faq) for switching between light and dark at runtime.
|
|
87
87
|
|
|
88
88
|
## Gallery
|
|
89
89
|
|
|
@@ -400,6 +400,44 @@ A compact tool result is decoded for you, and a name a host prefixed with its se
|
|
|
400
400
|
import { componentForTool } from '@roxyapi/ui-react/tool-component';
|
|
401
401
|
```
|
|
402
402
|
|
|
403
|
+
## Branded reports
|
|
404
|
+
|
|
405
|
+
`<roxy-report>` turns any report the API publishes into a form on your page and a finished document under your brand. The visitor fills the birth details the report asks for, with the same city search and pickers as every widget, and receives the document as a PDF download or in place on the page.
|
|
406
|
+
|
|
407
|
+
```html
|
|
408
|
+
<script src="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn/roxy-ui.js" defer></script>
|
|
409
|
+
<roxy-report
|
|
410
|
+
report="natal"
|
|
411
|
+
publishable-key="pk_live_YOUR_KEY"
|
|
412
|
+
brand-name="Luna Rivera Astrology"
|
|
413
|
+
brand-footer="Book a reading at example.com"
|
|
414
|
+
brand-color="#1e293b"
|
|
415
|
+
brand-accent="#b45309"
|
|
416
|
+
font="jost"
|
|
417
|
+
theme="moonlit"
|
|
418
|
+
></roxy-report>
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
| Attribute | What it does |
|
|
422
|
+
|---|---|
|
|
423
|
+
| `report` | Which report: `natal`, `synastry`, `kundli`, `matchmaking`, `yearly-forecast`, `human-design`, `bazi`, `numerology`, `tarot`. The published ids are the `report` values on the `roxy-report` endpoints in `components-catalog.json`. Unset, the first one is used |
|
|
424
|
+
| `format` | `pdf` (default) offers the document as a download named after the report; `html` shows it in place, sized to its content |
|
|
425
|
+
| `brand-name` | Your business or practitioner name on the cover and every page |
|
|
426
|
+
| `brand-logo` | An HTTPS URL of your logo, printed on the cover |
|
|
427
|
+
| `brand-footer` | A line at the foot of every page, such as a disclaimer or a booking note |
|
|
428
|
+
| `brand-color`, `brand-accent` | Your two colours, as `#rgb` or `#rrggbb`, on the document and on the form |
|
|
429
|
+
| `font` | A `key` from `fonts[]` in `components-catalog.json`, on the document and on the form |
|
|
430
|
+
| `theme` | A `key` from `themes[]` in `components-catalog.json`: the document prints in that preset. Link the same preset stylesheet (see Theme presets in THEMING.md) and the form matches it |
|
|
431
|
+
| `hide-readings` | The document carries the charts and the data without the written reading |
|
|
432
|
+
| `publishable-key` | Your `pk_` key, or `submit-url` to send the request through your own server |
|
|
433
|
+
| `lang` | The language of the form and the document |
|
|
434
|
+
|
|
435
|
+
React and Vue take the same settings as props (`report`, `format`, `brandName`, `brandLogo`, `brandFooter`, `brandColor`, `brandAccent`, `font`, `theme`, `hideReadings`). Every branding value is optional, and the document carries no mark but yours.
|
|
436
|
+
|
|
437
|
+
A request the API turns down reads as one sentence in the page language above the API message: details to check, a site the key does not allow, too many requests, or a busy moment. A field the API names is marked under its own input. The page hears `roxy-validation-error` when a required field is missing and `roxy-render-error` if a result cannot be drawn.
|
|
438
|
+
|
|
439
|
+
The one-tag widget takes the same settings as `data-` attributes: `<div data-roxy-widget="report" data-report="kundli" data-brand-name="Luna Rivera Astrology" data-publishable-key="pk_live_YOUR_KEY"></div>`.
|
|
440
|
+
|
|
403
441
|
## Server-rendered, no JavaScript wiring
|
|
404
442
|
|
|
405
443
|
Server-rendered and cached pages (WordPress, JSX SSR, static HTML) cannot always run JavaScript to set the `data` property per element. Render the response into a child `<script type="application/json" class="roxy-data">` on the server instead. The component reads it on load. No per-element script, no API key in the browser.
|
|
@@ -460,6 +498,40 @@ export default function Page() {
|
|
|
460
498
|
|
|
461
499
|
One import anywhere in the project types the tags everywhere in it. The typings carry attributes only, which is what markup can carry: a page that passes a response uses the React or Vue component, which sets `data` as a property. Your `tsconfig.json` needs `moduleResolution` on `bundler`, `node16` or `nodenext`, because the older `node10` resolution ignores the package export map.
|
|
462
500
|
|
|
501
|
+
## Draw a chart on the server
|
|
502
|
+
|
|
503
|
+
`@roxyapi/ui/charts` turns a response into the same `<svg>` its component draws, as a string, with no browser and no rendering library: a PDF, an email, a static page or an image job gets the chart a visitor sees on the page.
|
|
504
|
+
|
|
505
|
+
```ts
|
|
506
|
+
import { createRoxy } from '@roxyapi/sdk';
|
|
507
|
+
import {
|
|
508
|
+
bodygraphSvg,
|
|
509
|
+
kundliSvg,
|
|
510
|
+
natalWheelSvg,
|
|
511
|
+
synastryWheelSvg,
|
|
512
|
+
toKundliViewModel,
|
|
513
|
+
} from '@roxyapi/ui/charts';
|
|
514
|
+
import '@roxyapi/ui/locales/es';
|
|
515
|
+
|
|
516
|
+
const roxy = createRoxy(process.env.ROXY_API_KEY!);
|
|
517
|
+
const { data: natal } = await roxy.astrology.generateNatalChart({ body, throwOnError: true });
|
|
518
|
+
const wheel: string = natalWheelSvg(natal, { lang: 'es' });
|
|
519
|
+
|
|
520
|
+
const { data: birth } = await roxy.vedicAstrology.generateBirthChart({ body, throwOnError: true });
|
|
521
|
+
const kundli: string = kundliSvg(toKundliViewModel(birth.meta), { style: 'south' });
|
|
522
|
+
```
|
|
523
|
+
|
|
524
|
+
`synastryWheelSvg` takes a synastry response and `bodygraphSvg` a bodygraph response the same way. `lang` writes the words the chart adds in that language once its locale is imported; English needs no import.
|
|
525
|
+
|
|
526
|
+
The paint is a stylesheet per chart, published beside the tokens: `styles/charts/natal-wheel.css`, `synastry-wheel.css`, `kundli.css` and `bodygraph.css`. Link `tokens.css`, a theme if you use one, and the chart sheet next to the string, and it paints exactly as the component does, in light and dark:
|
|
527
|
+
|
|
528
|
+
```html
|
|
529
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/styles/tokens.css">
|
|
530
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/styles/charts/natal-wheel.css">
|
|
531
|
+
```
|
|
532
|
+
|
|
533
|
+
The same path carries the published font pairs as data: `ROXY_FONTS` (keyed by the `fonts[]` keys in `components-catalog.json`, each with its `name` and its `sans` and `display` stacks) and `fontFaces(key)`, the files a pair is drawn with, so a server sets the type a page shows.
|
|
534
|
+
|
|
463
535
|
## Most-used components per domain
|
|
464
536
|
|
|
465
537
|
The highest-demand components by domain, in the order you are most likely to ship them. Each pairing shows the SDK call that returns the response shape the component renders. Spec change in the API translates to typed change at the component boundary; the pairing below is derived from the live OpenAPI spec, not invented. Full catalog in the [Components](#components) table.
|
|
@@ -919,6 +991,7 @@ Every file a page loads ships in the package `dist` folder, and each [GitHub rel
|
|
|
919
991
|
| `<roxy-dream-search>` | Dreams | GET /dreams/symbols | The dream dictionary as tiles, browsed A to Z or searched; a pick opens the card in place |
|
|
920
992
|
| `<roxy-angel-number-card>` | Angel Numbers | GET /angel-numbers/numbers/{number}, POST /angel-numbers/daily | Number meaning with spiritual, love, career, money, twin flame, biblical, and shadow sections |
|
|
921
993
|
| `<roxy-angel-number-lookup>` | Angel Numbers | GET /angel-numbers/lookup | Pattern analysis plus known meaning and digit-root fallback |
|
|
994
|
+
| `<roxy-report>` | Reports | POST /reports/... | Form to finished branded report, as a PDF download or inline HTML |
|
|
922
995
|
| `<roxy-reference-card>` | Reference | GET /astrology/{signs,planet-meanings}/{id}, /vedic-astrology/{rashis,avasthas}/{id}, /iching/trigrams/{id}, /human-design/gates/{number}, /human-design/centers/{id}, /numerology/meanings/{number} | Symbol, name, description, keyword chips, and an attribute grid for any glossary lookup |
|
|
923
996
|
| `<roxy-endpoint-form>` | Helper | Any endpoint, from the spec | Schema-driven form, emits roxy-submit |
|
|
924
997
|
| `<roxy-location-search>` | Helper | GET /location/search | Debounced city search input, emits roxy-location-select |
|
|
@@ -950,6 +1023,14 @@ roxy-natal-chart {
|
|
|
950
1023
|
}
|
|
951
1024
|
```
|
|
952
1025
|
|
|
1026
|
+
### Brand colour and font, one attribute each
|
|
1027
|
+
|
|
1028
|
+
Every component takes `brand-color`, `brand-accent` and `font` (`brandColor`, `brandAccent`, `font` in React and Vue), so a site sets its brand without CSS. The colours are `#rgb` or `#rrggbb`, and the accent re-derives its ink and focus ring in both modes. `font` is a `key` from `fonts[]` in `components-catalog.json`, which lists each pair with its stylesheet and files, and it overrides the theme preset's default pair. From the CDN script, the pair's stylesheet loads from the same place as the script. In an npm build, import `@roxyapi/ui/styles/fonts/{key}.css` once, the same way as `tokens.css`, or copy `dist/styles/fonts` to your own origin and link it. A value that does not validate is ignored.
|
|
1029
|
+
|
|
1030
|
+
```html
|
|
1031
|
+
<roxy-natal-chart brand-color="#3e2a2c" brand-accent="#914955" font="fraunces-jost"></roxy-natal-chart>
|
|
1032
|
+
```
|
|
1033
|
+
|
|
953
1034
|
### Reach inside the component from your own CSS
|
|
954
1035
|
|
|
955
1036
|
Every chart and reading component names its structural blocks with `part`, so a stylesheet outside the component can restyle or hide any of them with no JavaScript and no fork. The names are the same in every component, so one rule covers the whole library.
|
|
@@ -38,6 +38,12 @@ export interface RoxyAlmanacDayProps extends ElementAttrs {
|
|
|
38
38
|
hideReadings?: boolean;
|
|
39
39
|
/** Comma-separated list of `part` names to take off this component, for example "patterns" or "patterns, legend". Per element rather than per site, so the same component can drop a block on one page and keep it on another with no CSS. Sibling of hideReadings and a different tool: this hides a whole block whatever it contains, where hideReadings drops interpretive prose out of the markup. Names come from the `parts` array in components-catalog.json; a name the component does not carry hides nothing and is not an error. */
|
|
40
40
|
hideSections?: string;
|
|
41
|
+
/** Brand colour as `#rgb` or `#rrggbb`, painted as `--roxy-primary` on this component. Any other value is ignored. */
|
|
42
|
+
brandColor?: string;
|
|
43
|
+
/** Brand accent as `#rgb` or `#rrggbb`, painted as `--roxy-accent` with its ink and focus ring re-derived. Any other value is ignored. */
|
|
44
|
+
brandAccent?: string;
|
|
45
|
+
/** A font pair from `fonts[]` in components-catalog.json, for body text and headings; import `@roxyapi/ui/styles/fonts/{key}.css` once to load its files. Any other value is ignored. */
|
|
46
|
+
font?: 'fraunces-jost' | 'jost' | 'geist' | 'system';
|
|
41
47
|
}
|
|
42
48
|
export declare const RoxyAlmanacDay: React.ForwardRefExoticComponent<RoxyAlmanacDayProps & React.RefAttributes<HTMLElement | null>>;
|
|
43
49
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import*as n from"react";var
|
|
1
|
+
"use client";import*as n from"react";var $="1.3.0",D="roxyapi-ui-loader",O="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",U="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",j="/dist/cdn",d=null;function B(a){return!a||a==="latest"?O:`${U}${a}${j}`}function H(a=$,i){return typeof document>"u"?Promise.resolve():d||(d=new Promise((o,c)=>{let u=`${i??B(a)}/roxy-ui.js`,r=document.getElementById(D);if(r){r.dataset.loaded==="true"?o():(r.addEventListener("load",()=>o()),r.addEventListener("error",()=>c(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=D,r.src=u,r.async=true,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",o()}),r.addEventListener("error",()=>c(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),d)}var X=n.forwardRef(function({data:i,className:o,style:c,mode:u,endpoint:r,method:l,publishableKey:f,baseUrl:m,submitUrl:E,submitContext:p,locationUrl:g,specUrl:R,lang:y,submitLabel:w,remember:L,errorMessage:k,attribution:x,hideReadings:h,hideSections:S,brandColor:A,brandAccent:b,font:v,...M},C){let t=n.useRef(null);n.useImperativeHandle(C,()=>t.current,[]);let[s,I]=n.useState(false),[T,_]=n.useState(null);return n.useEffect(()=>{let e=true;return H().then(()=>{e&&I(true)}).catch(P=>{e&&_(P instanceof Error?P:new Error(String(P)))}),()=>{e=false}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,s]),n.useEffect(()=>{let e=t.current;e&&u!==void 0&&(e.mode=u)},[u,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.endpoint=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.method=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.publishableKey=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.baseUrl=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.submitContext=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.locationUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.specUrl=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.lang=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.remember=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.errorMessage=k)},[k,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.hideReadings=h)},[h,s]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.hideSections=S)},[S,s]),n.useEffect(()=>{let e=t.current;e&&A!==void 0&&(e.brandColor=A)},[A,s]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.brandAccent=b)},[b,s]),n.useEffect(()=>{let e=t.current;e&&v!==void 0&&(e.font=v)},[v,s]),T?n.createElement("div",{role:"alert",className:o,style:c},`Roxy UI script load failed: ${T.message}`):n.createElement("roxy-almanac-day",{ref:t,className:o,style:c,suppressHydrationWarning:true,...M})});export{X as RoxyAlmanacDay};
|
|
@@ -36,6 +36,12 @@ export interface RoxyAngelNumberCardProps extends ElementAttrs {
|
|
|
36
36
|
hideReadings?: boolean;
|
|
37
37
|
/** Comma-separated list of `part` names to take off this component, for example "patterns" or "patterns, legend". Per element rather than per site, so the same component can drop a block on one page and keep it on another with no CSS. Sibling of hideReadings and a different tool: this hides a whole block whatever it contains, where hideReadings drops interpretive prose out of the markup. Names come from the `parts` array in components-catalog.json; a name the component does not carry hides nothing and is not an error. */
|
|
38
38
|
hideSections?: string;
|
|
39
|
+
/** Brand colour as `#rgb` or `#rrggbb`, painted as `--roxy-primary` on this component. Any other value is ignored. */
|
|
40
|
+
brandColor?: string;
|
|
41
|
+
/** Brand accent as `#rgb` or `#rrggbb`, painted as `--roxy-accent` with its ink and focus ring re-derived. Any other value is ignored. */
|
|
42
|
+
brandAccent?: string;
|
|
43
|
+
/** A font pair from `fonts[]` in components-catalog.json, for body text and headings; import `@roxyapi/ui/styles/fonts/{key}.css` once to load its files. Any other value is ignored. */
|
|
44
|
+
font?: 'fraunces-jost' | 'jost' | 'geist' | 'system';
|
|
39
45
|
}
|
|
40
46
|
export declare const RoxyAngelNumberCard: React.ForwardRefExoticComponent<RoxyAngelNumberCardProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
47
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import*as n from"react";var
|
|
1
|
+
"use client";import*as n from"react";var M="1.3.0",C="roxyapi-ui-loader",N="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",O="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",U="/dist/cdn",d=null;function j(o){return!o||o==="latest"?N:`${O}${o}${U}`}function T(o=M,a){return typeof document>"u"?Promise.resolve():d||(d=new Promise((i,u)=>{let c=`${a??j(o)}/roxy-ui.js`,s=document.getElementById(C);if(s){s.dataset.loaded==="true"?i():(s.addEventListener("load",()=>i()),s.addEventListener("error",()=>u(new Error("roxy-ui load failed"))));return}s=document.createElement("script"),s.id=C,s.src=c,s.async=true,s.crossOrigin="anonymous",s.addEventListener("load",()=>{s.dataset.loaded="true",i()}),s.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(s)}),d)}var G=n.forwardRef(function({data:a,className:i,style:u,endpoint:c,method:s,publishableKey:l,baseUrl:f,submitUrl:g,submitContext:m,locationUrl:E,specUrl:p,lang:R,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:b,hideSections:k,brandColor:S,brandAccent:h,font:v,...H},I){let t=n.useRef(null);n.useImperativeHandle(I,()=>t.current,[]);let[r,_]=n.useState(false),[A,$]=n.useState(null);return n.useEffect(()=>{let e=true;return T().then(()=>{e&&_(true)}).catch(P=>{e&&$(P instanceof Error?P:new Error(String(P)))}),()=>{e=false}},[]),n.useEffect(()=>{let e=t.current;e&&a!==void 0&&(e.data=a)},[a,r]),n.useEffect(()=>{let e=t.current;e&&c!==void 0&&(e.endpoint=c)},[c,r]),n.useEffect(()=>{let e=t.current;e&&s!==void 0&&(e.method=s)},[s,r]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,r]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,r]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.submitUrl=g)},[g,r]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitContext=m)},[m,r]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.locationUrl=E)},[E,r]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.specUrl=p)},[p,r]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,r]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,r]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,r]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,r]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,r]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.hideReadings=b)},[b,r]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideSections=k)},[k,r]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.brandColor=S)},[S,r]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.brandAccent=h)},[h,r]),n.useEffect(()=>{let e=t.current;e&&v!==void 0&&(e.font=v)},[v,r]),A?n.createElement("div",{role:"alert",className:i,style:u},`Roxy UI script load failed: ${A.message}`):n.createElement("roxy-angel-number-card",{ref:t,className:i,style:u,suppressHydrationWarning:true,...H})});export{G as RoxyAngelNumberCard};
|
|
@@ -36,6 +36,12 @@ export interface RoxyAngelNumberLookupProps extends ElementAttrs {
|
|
|
36
36
|
hideReadings?: boolean;
|
|
37
37
|
/** Comma-separated list of `part` names to take off this component, for example "patterns" or "patterns, legend". Per element rather than per site, so the same component can drop a block on one page and keep it on another with no CSS. Sibling of hideReadings and a different tool: this hides a whole block whatever it contains, where hideReadings drops interpretive prose out of the markup. Names come from the `parts` array in components-catalog.json; a name the component does not carry hides nothing and is not an error. */
|
|
38
38
|
hideSections?: string;
|
|
39
|
+
/** Brand colour as `#rgb` or `#rrggbb`, painted as `--roxy-primary` on this component. Any other value is ignored. */
|
|
40
|
+
brandColor?: string;
|
|
41
|
+
/** Brand accent as `#rgb` or `#rrggbb`, painted as `--roxy-accent` with its ink and focus ring re-derived. Any other value is ignored. */
|
|
42
|
+
brandAccent?: string;
|
|
43
|
+
/** A font pair from `fonts[]` in components-catalog.json, for body text and headings; import `@roxyapi/ui/styles/fonts/{key}.css` once to load its files. Any other value is ignored. */
|
|
44
|
+
font?: 'fraunces-jost' | 'jost' | 'geist' | 'system';
|
|
39
45
|
}
|
|
40
46
|
export declare const RoxyAngelNumberLookup: React.ForwardRefExoticComponent<RoxyAngelNumberLookupProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
47
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import*as n from"react";var
|
|
1
|
+
"use client";import*as n from"react";var M="1.3.0",T="roxyapi-ui-loader",N="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",O="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",U="/dist/cdn",d=null;function j(o){return!o||o==="latest"?N:`${O}${o}${U}`}function H(o=M,a){return typeof document>"u"?Promise.resolve():d||(d=new Promise((i,u)=>{let c=`${a??j(o)}/roxy-ui.js`,s=document.getElementById(T);if(s){s.dataset.loaded==="true"?i():(s.addEventListener("load",()=>i()),s.addEventListener("error",()=>u(new Error("roxy-ui load failed"))));return}s=document.createElement("script"),s.id=T,s.src=c,s.async=true,s.crossOrigin="anonymous",s.addEventListener("load",()=>{s.dataset.loaded="true",i()}),s.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(s)}),d)}var D=n.forwardRef(function({data:a,className:i,style:u,endpoint:c,method:s,publishableKey:l,baseUrl:f,submitUrl:m,submitContext:E,locationUrl:g,specUrl:p,lang:R,submitLabel:w,remember:y,errorMessage:L,attribution:k,hideReadings:x,hideSections:b,brandColor:S,brandAccent:h,font:v,...C},I){let t=n.useRef(null);n.useImperativeHandle(I,()=>t.current,[]);let[r,_]=n.useState(false),[A,$]=n.useState(null);return n.useEffect(()=>{let e=true;return H().then(()=>{e&&_(true)}).catch(P=>{e&&$(P instanceof Error?P:new Error(String(P)))}),()=>{e=false}},[]),n.useEffect(()=>{let e=t.current;e&&a!==void 0&&(e.data=a)},[a,r]),n.useEffect(()=>{let e=t.current;e&&c!==void 0&&(e.endpoint=c)},[c,r]),n.useEffect(()=>{let e=t.current;e&&s!==void 0&&(e.method=s)},[s,r]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,r]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,r]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitUrl=m)},[m,r]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitContext=E)},[E,r]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.locationUrl=g)},[g,r]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.specUrl=p)},[p,r]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,r]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,r]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,r]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,r]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.attribution=k)},[k,r]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.hideReadings=x)},[x,r]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.hideSections=b)},[b,r]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.brandColor=S)},[S,r]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.brandAccent=h)},[h,r]),n.useEffect(()=>{let e=t.current;e&&v!==void 0&&(e.font=v)},[v,r]),A?n.createElement("div",{role:"alert",className:i,style:u},`Roxy UI script load failed: ${A.message}`):n.createElement("roxy-angel-number-lookup",{ref:t,className:i,style:u,suppressHydrationWarning:true,...C})});export{D as RoxyAngelNumberLookup};
|
|
@@ -36,6 +36,12 @@ export interface RoxyArudhaPadasProps extends ElementAttrs {
|
|
|
36
36
|
hideReadings?: boolean;
|
|
37
37
|
/** Comma-separated list of `part` names to take off this component, for example "patterns" or "patterns, legend". Per element rather than per site, so the same component can drop a block on one page and keep it on another with no CSS. Sibling of hideReadings and a different tool: this hides a whole block whatever it contains, where hideReadings drops interpretive prose out of the markup. Names come from the `parts` array in components-catalog.json; a name the component does not carry hides nothing and is not an error. */
|
|
38
38
|
hideSections?: string;
|
|
39
|
+
/** Brand colour as `#rgb` or `#rrggbb`, painted as `--roxy-primary` on this component. Any other value is ignored. */
|
|
40
|
+
brandColor?: string;
|
|
41
|
+
/** Brand accent as `#rgb` or `#rrggbb`, painted as `--roxy-accent` with its ink and focus ring re-derived. Any other value is ignored. */
|
|
42
|
+
brandAccent?: string;
|
|
43
|
+
/** A font pair from `fonts[]` in components-catalog.json, for body text and headings; import `@roxyapi/ui/styles/fonts/{key}.css` once to load its files. Any other value is ignored. */
|
|
44
|
+
font?: 'fraunces-jost' | 'jost' | 'geist' | 'system';
|
|
39
45
|
}
|
|
40
46
|
export declare const RoxyArudhaPadas: React.ForwardRefExoticComponent<RoxyArudhaPadasProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
47
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import*as n from"react";var
|
|
1
|
+
"use client";import*as n from"react";var M="1.3.0",T="roxyapi-ui-loader",O="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",U="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",j="/dist/cdn",c=null;function B(a){return!a||a==="latest"?O:`${U}${a}${j}`}function H(a=M,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((o,u)=>{let d=`${i??B(a)}/roxy-ui.js`,s=document.getElementById(T);if(s){s.dataset.loaded==="true"?o():(s.addEventListener("load",()=>o()),s.addEventListener("error",()=>u(new Error("roxy-ui load failed"))));return}s=document.createElement("script"),s.id=T,s.src=d,s.async=true,s.crossOrigin="anonymous",s.addEventListener("load",()=>{s.dataset.loaded="true",o()}),s.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(s)}),c)}var X=n.forwardRef(function({data:i,className:o,style:u,endpoint:d,method:s,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:g,locationUrl:m,specUrl:p,lang:R,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:h,hideSections:k,brandColor:P,brandAccent:S,font:b,...C},I){let t=n.useRef(null);n.useImperativeHandle(I,()=>t.current,[]);let[r,_]=n.useState(false),[A,$]=n.useState(null);return n.useEffect(()=>{let e=true;return H().then(()=>{e&&_(true)}).catch(v=>{e&&$(v instanceof Error?v:new Error(String(v)))}),()=>{e=false}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,r]),n.useEffect(()=>{let e=t.current;e&&d!==void 0&&(e.endpoint=d)},[d,r]),n.useEffect(()=>{let e=t.current;e&&s!==void 0&&(e.method=s)},[s,r]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,r]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,r]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,r]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.submitContext=g)},[g,r]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.locationUrl=m)},[m,r]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.specUrl=p)},[p,r]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,r]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,r]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,r]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,r]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,r]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.hideReadings=h)},[h,r]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideSections=k)},[k,r]),n.useEffect(()=>{let e=t.current;e&&P!==void 0&&(e.brandColor=P)},[P,r]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.brandAccent=S)},[S,r]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.font=b)},[b,r]),A?n.createElement("div",{role:"alert",className:o,style:u},`Roxy UI script load failed: ${A.message}`):n.createElement("roxy-arudha-padas",{ref:t,className:o,style:u,suppressHydrationWarning:true,...C})});export{X as RoxyArudhaPadas};
|
|
@@ -36,6 +36,12 @@ export interface RoxyAshtakavargaGridProps extends ElementAttrs {
|
|
|
36
36
|
hideReadings?: boolean;
|
|
37
37
|
/** Comma-separated list of `part` names to take off this component, for example "patterns" or "patterns, legend". Per element rather than per site, so the same component can drop a block on one page and keep it on another with no CSS. Sibling of hideReadings and a different tool: this hides a whole block whatever it contains, where hideReadings drops interpretive prose out of the markup. Names come from the `parts` array in components-catalog.json; a name the component does not carry hides nothing and is not an error. */
|
|
38
38
|
hideSections?: string;
|
|
39
|
+
/** Brand colour as `#rgb` or `#rrggbb`, painted as `--roxy-primary` on this component. Any other value is ignored. */
|
|
40
|
+
brandColor?: string;
|
|
41
|
+
/** Brand accent as `#rgb` or `#rrggbb`, painted as `--roxy-accent` with its ink and focus ring re-derived. Any other value is ignored. */
|
|
42
|
+
brandAccent?: string;
|
|
43
|
+
/** A font pair from `fonts[]` in components-catalog.json, for body text and headings; import `@roxyapi/ui/styles/fonts/{key}.css` once to load its files. Any other value is ignored. */
|
|
44
|
+
font?: 'fraunces-jost' | 'jost' | 'geist' | 'system';
|
|
39
45
|
}
|
|
40
46
|
export declare const RoxyAshtakavargaGrid: React.ForwardRefExoticComponent<RoxyAshtakavargaGridProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
47
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import*as n from"react";var
|
|
1
|
+
"use client";import*as n from"react";var M="1.3.0",T="roxyapi-ui-loader",O="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",U="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",j="/dist/cdn",c=null;function B(a){return!a||a==="latest"?O:`${U}${a}${j}`}function H(a=M,o){return typeof document>"u"?Promise.resolve():c||(c=new Promise((i,u)=>{let d=`${o??B(a)}/roxy-ui.js`,s=document.getElementById(T);if(s){s.dataset.loaded==="true"?i():(s.addEventListener("load",()=>i()),s.addEventListener("error",()=>u(new Error("roxy-ui load failed"))));return}s=document.createElement("script"),s.id=T,s.src=d,s.async=true,s.crossOrigin="anonymous",s.addEventListener("load",()=>{s.dataset.loaded="true",i()}),s.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(s)}),c)}var N=n.forwardRef(function({data:o,className:i,style:u,endpoint:d,method:s,publishableKey:l,baseUrl:f,submitUrl:g,submitContext:E,locationUrl:m,specUrl:p,lang:R,submitLabel:w,remember:k,errorMessage:y,attribution:L,hideReadings:x,hideSections:h,brandColor:v,brandAccent:S,font:b,...C},I){let t=n.useRef(null);n.useImperativeHandle(I,()=>t.current,[]);let[r,_]=n.useState(false),[A,$]=n.useState(null);return n.useEffect(()=>{let e=true;return H().then(()=>{e&&_(true)}).catch(P=>{e&&$(P instanceof Error?P:new Error(String(P)))}),()=>{e=false}},[]),n.useEffect(()=>{let e=t.current;e&&o!==void 0&&(e.data=o)},[o,r]),n.useEffect(()=>{let e=t.current;e&&d!==void 0&&(e.endpoint=d)},[d,r]),n.useEffect(()=>{let e=t.current;e&&s!==void 0&&(e.method=s)},[s,r]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,r]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,r]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.submitUrl=g)},[g,r]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitContext=E)},[E,r]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.locationUrl=m)},[m,r]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.specUrl=p)},[p,r]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,r]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,r]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.remember=k)},[k,r]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.errorMessage=y)},[y,r]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.attribution=L)},[L,r]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.hideReadings=x)},[x,r]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.hideSections=h)},[h,r]),n.useEffect(()=>{let e=t.current;e&&v!==void 0&&(e.brandColor=v)},[v,r]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.brandAccent=S)},[S,r]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.font=b)},[b,r]),A?n.createElement("div",{role:"alert",className:i,style:u},`Roxy UI script load failed: ${A.message}`):n.createElement("roxy-ashtakavarga-grid",{ref:t,className:i,style:u,suppressHydrationWarning:true,...C})});export{N as RoxyAshtakavargaGrid};
|
|
@@ -36,6 +36,12 @@ export interface RoxyAspectsTableProps extends ElementAttrs {
|
|
|
36
36
|
hideReadings?: boolean;
|
|
37
37
|
/** Comma-separated list of `part` names to take off this component, for example "patterns" or "patterns, legend". Per element rather than per site, so the same component can drop a block on one page and keep it on another with no CSS. Sibling of hideReadings and a different tool: this hides a whole block whatever it contains, where hideReadings drops interpretive prose out of the markup. Names come from the `parts` array in components-catalog.json; a name the component does not carry hides nothing and is not an error. */
|
|
38
38
|
hideSections?: string;
|
|
39
|
+
/** Brand colour as `#rgb` or `#rrggbb`, painted as `--roxy-primary` on this component. Any other value is ignored. */
|
|
40
|
+
brandColor?: string;
|
|
41
|
+
/** Brand accent as `#rgb` or `#rrggbb`, painted as `--roxy-accent` with its ink and focus ring re-derived. Any other value is ignored. */
|
|
42
|
+
brandAccent?: string;
|
|
43
|
+
/** A font pair from `fonts[]` in components-catalog.json, for body text and headings; import `@roxyapi/ui/styles/fonts/{key}.css` once to load its files. Any other value is ignored. */
|
|
44
|
+
font?: 'fraunces-jost' | 'jost' | 'geist' | 'system';
|
|
39
45
|
}
|
|
40
46
|
export declare const RoxyAspectsTable: React.ForwardRefExoticComponent<RoxyAspectsTableProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
47
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import*as n from"react";var
|
|
1
|
+
"use client";import*as n from"react";var M="1.3.0",v="roxyapi-ui-loader",O="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",U="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",j="/dist/cdn",d=null;function B(a){return!a||a==="latest"?O:`${U}${a}${j}`}function C(a=M,i){return typeof document>"u"?Promise.resolve():d||(d=new Promise((o,c)=>{let u=`${i??B(a)}/roxy-ui.js`,r=document.getElementById(v);if(r){r.dataset.loaded==="true"?o():(r.addEventListener("load",()=>o()),r.addEventListener("error",()=>c(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=v,r.src=u,r.async=true,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",o()}),r.addEventListener("error",()=>c(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),d)}var X=n.forwardRef(function({data:i,className:o,style:c,endpoint:u,method:r,publishableKey:l,baseUrl:f,submitUrl:p,submitContext:E,locationUrl:g,specUrl:m,lang:R,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:b,hideSections:k,brandColor:T,brandAccent:S,font:A,...H},I){let t=n.useRef(null);n.useImperativeHandle(I,()=>t.current,[]);let[s,_]=n.useState(false),[h,$]=n.useState(null);return n.useEffect(()=>{let e=true;return C().then(()=>{e&&_(true)}).catch(P=>{e&&$(P instanceof Error?P:new Error(String(P)))}),()=>{e=false}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,s]),n.useEffect(()=>{let e=t.current;e&&u!==void 0&&(e.endpoint=u)},[u,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.submitUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitContext=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.locationUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.specUrl=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.hideReadings=b)},[b,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideSections=k)},[k,s]),n.useEffect(()=>{let e=t.current;e&&T!==void 0&&(e.brandColor=T)},[T,s]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.brandAccent=S)},[S,s]),n.useEffect(()=>{let e=t.current;e&&A!==void 0&&(e.font=A)},[A,s]),h?n.createElement("div",{role:"alert",className:o,style:c},`Roxy UI script load failed: ${h.message}`):n.createElement("roxy-aspects-table",{ref:t,className:o,style:c,suppressHydrationWarning:true,...H})});export{X as RoxyAspectsTable};
|
|
@@ -36,6 +36,12 @@ export interface RoxyAstrocartographyMapProps extends ElementAttrs {
|
|
|
36
36
|
hideReadings?: boolean;
|
|
37
37
|
/** Comma-separated list of `part` names to take off this component, for example "patterns" or "patterns, legend". Per element rather than per site, so the same component can drop a block on one page and keep it on another with no CSS. Sibling of hideReadings and a different tool: this hides a whole block whatever it contains, where hideReadings drops interpretive prose out of the markup. Names come from the `parts` array in components-catalog.json; a name the component does not carry hides nothing and is not an error. */
|
|
38
38
|
hideSections?: string;
|
|
39
|
+
/** Brand colour as `#rgb` or `#rrggbb`, painted as `--roxy-primary` on this component. Any other value is ignored. */
|
|
40
|
+
brandColor?: string;
|
|
41
|
+
/** Brand accent as `#rgb` or `#rrggbb`, painted as `--roxy-accent` with its ink and focus ring re-derived. Any other value is ignored. */
|
|
42
|
+
brandAccent?: string;
|
|
43
|
+
/** A font pair from `fonts[]` in components-catalog.json, for body text and headings; import `@roxyapi/ui/styles/fonts/{key}.css` once to load its files. Any other value is ignored. */
|
|
44
|
+
font?: 'fraunces-jost' | 'jost' | 'geist' | 'system';
|
|
39
45
|
}
|
|
40
46
|
export declare const RoxyAstrocartographyMap: React.ForwardRefExoticComponent<RoxyAstrocartographyMapProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
47
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import*as n from"react";var
|
|
1
|
+
"use client";import*as n from"react";var $="1.3.0",T="roxyapi-ui-loader",O="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",U="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",j="/dist/cdn",d=null;function B(o){return!o||o==="latest"?O:`${U}${o}${j}`}function M(o=$,i){return typeof document>"u"?Promise.resolve():d||(d=new Promise((a,c)=>{let u=`${i??B(o)}/roxy-ui.js`,s=document.getElementById(T);if(s){s.dataset.loaded==="true"?a():(s.addEventListener("load",()=>a()),s.addEventListener("error",()=>c(new Error("roxy-ui load failed"))));return}s=document.createElement("script"),s.id=T,s.src=u,s.async=true,s.crossOrigin="anonymous",s.addEventListener("load",()=>{s.dataset.loaded="true",a()}),s.addEventListener("error",()=>c(new Error("roxy-ui load failed"))),document.head.appendChild(s)}),d)}var X=n.forwardRef(function({data:i,className:a,style:c,endpoint:u,method:s,publishableKey:l,baseUrl:f,submitUrl:g,submitContext:p,locationUrl:E,specUrl:m,lang:R,submitLabel:y,remember:w,errorMessage:L,attribution:x,hideReadings:h,hideSections:k,brandColor:S,brandAccent:b,font:v,...H},C){let t=n.useRef(null);n.useImperativeHandle(C,()=>t.current,[]);let[r,I]=n.useState(false),[A,_]=n.useState(null);return n.useEffect(()=>{let e=true;return M().then(()=>{e&&I(true)}).catch(P=>{e&&_(P instanceof Error?P:new Error(String(P)))}),()=>{e=false}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,r]),n.useEffect(()=>{let e=t.current;e&&u!==void 0&&(e.endpoint=u)},[u,r]),n.useEffect(()=>{let e=t.current;e&&s!==void 0&&(e.method=s)},[s,r]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,r]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,r]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.submitUrl=g)},[g,r]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.submitContext=p)},[p,r]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.locationUrl=E)},[E,r]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.specUrl=m)},[m,r]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,r]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.submitLabel=y)},[y,r]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.remember=w)},[w,r]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,r]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,r]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.hideReadings=h)},[h,r]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideSections=k)},[k,r]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.brandColor=S)},[S,r]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.brandAccent=b)},[b,r]),n.useEffect(()=>{let e=t.current;e&&v!==void 0&&(e.font=v)},[v,r]),A?n.createElement("div",{role:"alert",className:a,style:c},`Roxy UI script load failed: ${A.message}`):n.createElement("roxy-astrocartography-map",{ref:t,className:a,style:c,suppressHydrationWarning:true,...H})});export{X as RoxyAstrocartographyMap};
|
|
@@ -36,6 +36,12 @@ export interface RoxyBaziChartProps extends ElementAttrs {
|
|
|
36
36
|
hideReadings?: boolean;
|
|
37
37
|
/** Comma-separated list of `part` names to take off this component, for example "patterns" or "patterns, legend". Per element rather than per site, so the same component can drop a block on one page and keep it on another with no CSS. Sibling of hideReadings and a different tool: this hides a whole block whatever it contains, where hideReadings drops interpretive prose out of the markup. Names come from the `parts` array in components-catalog.json; a name the component does not carry hides nothing and is not an error. */
|
|
38
38
|
hideSections?: string;
|
|
39
|
+
/** Brand colour as `#rgb` or `#rrggbb`, painted as `--roxy-primary` on this component. Any other value is ignored. */
|
|
40
|
+
brandColor?: string;
|
|
41
|
+
/** Brand accent as `#rgb` or `#rrggbb`, painted as `--roxy-accent` with its ink and focus ring re-derived. Any other value is ignored. */
|
|
42
|
+
brandAccent?: string;
|
|
43
|
+
/** A font pair from `fonts[]` in components-catalog.json, for body text and headings; import `@roxyapi/ui/styles/fonts/{key}.css` once to load its files. Any other value is ignored. */
|
|
44
|
+
font?: 'fraunces-jost' | 'jost' | 'geist' | 'system';
|
|
39
45
|
}
|
|
40
46
|
export declare const RoxyBaziChart: React.ForwardRefExoticComponent<RoxyBaziChartProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
47
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import*as n from"react";var
|
|
1
|
+
"use client";import*as n from"react";var M="1.3.0",T="roxyapi-ui-loader",z="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",A="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",O="/dist/cdn",d=null;function U(i){return!i||i==="latest"?z:`${A}${i}${O}`}function B(i=M,o){return typeof document>"u"?Promise.resolve():d||(d=new Promise((a,u)=>{let c=`${o??U(i)}/roxy-ui.js`,s=document.getElementById(T);if(s){s.dataset.loaded==="true"?a():(s.addEventListener("load",()=>a()),s.addEventListener("error",()=>u(new Error("roxy-ui load failed"))));return}s=document.createElement("script"),s.id=T,s.src=c,s.async=true,s.crossOrigin="anonymous",s.addEventListener("load",()=>{s.dataset.loaded="true",a()}),s.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(s)}),d)}var G=n.forwardRef(function({data:o,className:a,style:u,endpoint:c,method:s,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:g,locationUrl:m,specUrl:p,lang:R,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:h,hideSections:k,brandColor:S,brandAccent:b,font:C,...H},I){let t=n.useRef(null);n.useImperativeHandle(I,()=>t.current,[]);let[r,_]=n.useState(false),[P,$]=n.useState(null);return n.useEffect(()=>{let e=true;return B().then(()=>{e&&_(true)}).catch(v=>{e&&$(v instanceof Error?v:new Error(String(v)))}),()=>{e=false}},[]),n.useEffect(()=>{let e=t.current;e&&o!==void 0&&(e.data=o)},[o,r]),n.useEffect(()=>{let e=t.current;e&&c!==void 0&&(e.endpoint=c)},[c,r]),n.useEffect(()=>{let e=t.current;e&&s!==void 0&&(e.method=s)},[s,r]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,r]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,r]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,r]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.submitContext=g)},[g,r]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.locationUrl=m)},[m,r]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.specUrl=p)},[p,r]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,r]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,r]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,r]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,r]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,r]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.hideReadings=h)},[h,r]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideSections=k)},[k,r]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.brandColor=S)},[S,r]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.brandAccent=b)},[b,r]),n.useEffect(()=>{let e=t.current;e&&C!==void 0&&(e.font=C)},[C,r]),P?n.createElement("div",{role:"alert",className:a,style:u},`Roxy UI script load failed: ${P.message}`):n.createElement("roxy-bazi-chart",{ref:t,className:a,style:u,suppressHydrationWarning:true,...H})});export{G as RoxyBaziChart};
|
|
@@ -36,6 +36,12 @@ export interface RoxyBhavChalitTableProps extends ElementAttrs {
|
|
|
36
36
|
hideReadings?: boolean;
|
|
37
37
|
/** Comma-separated list of `part` names to take off this component, for example "patterns" or "patterns, legend". Per element rather than per site, so the same component can drop a block on one page and keep it on another with no CSS. Sibling of hideReadings and a different tool: this hides a whole block whatever it contains, where hideReadings drops interpretive prose out of the markup. Names come from the `parts` array in components-catalog.json; a name the component does not carry hides nothing and is not an error. */
|
|
38
38
|
hideSections?: string;
|
|
39
|
+
/** Brand colour as `#rgb` or `#rrggbb`, painted as `--roxy-primary` on this component. Any other value is ignored. */
|
|
40
|
+
brandColor?: string;
|
|
41
|
+
/** Brand accent as `#rgb` or `#rrggbb`, painted as `--roxy-accent` with its ink and focus ring re-derived. Any other value is ignored. */
|
|
42
|
+
brandAccent?: string;
|
|
43
|
+
/** A font pair from `fonts[]` in components-catalog.json, for body text and headings; import `@roxyapi/ui/styles/fonts/{key}.css` once to load its files. Any other value is ignored. */
|
|
44
|
+
font?: 'fraunces-jost' | 'jost' | 'geist' | 'system';
|
|
39
45
|
}
|
|
40
46
|
export declare const RoxyBhavChalitTable: React.ForwardRefExoticComponent<RoxyBhavChalitTableProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
47
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import*as n from"react";var
|
|
1
|
+
"use client";import*as n from"react";var M="1.3.0",P="roxyapi-ui-loader",A="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",O="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",U="/dist/cdn",d=null;function j(a){return!a||a==="latest"?A:`${O}${a}${U}`}function B(a=M,o){return typeof document>"u"?Promise.resolve():d||(d=new Promise((i,u)=>{let c=`${o??j(a)}/roxy-ui.js`,s=document.getElementById(P);if(s){s.dataset.loaded==="true"?i():(s.addEventListener("load",()=>i()),s.addEventListener("error",()=>u(new Error("roxy-ui load failed"))));return}s=document.createElement("script"),s.id=P,s.src=c,s.async=true,s.crossOrigin="anonymous",s.addEventListener("load",()=>{s.dataset.loaded="true",i()}),s.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(s)}),d)}var X=n.forwardRef(function({data:o,className:i,style:u,endpoint:c,method:s,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:g,locationUrl:m,specUrl:p,lang:R,submitLabel:w,remember:h,errorMessage:y,attribution:L,hideReadings:x,hideSections:b,brandColor:k,brandAccent:v,font:S,...H},I){let t=n.useRef(null);n.useImperativeHandle(I,()=>t.current,[]);let[r,_]=n.useState(false),[C,$]=n.useState(null);return n.useEffect(()=>{let e=true;return B().then(()=>{e&&_(true)}).catch(T=>{e&&$(T instanceof Error?T:new Error(String(T)))}),()=>{e=false}},[]),n.useEffect(()=>{let e=t.current;e&&o!==void 0&&(e.data=o)},[o,r]),n.useEffect(()=>{let e=t.current;e&&c!==void 0&&(e.endpoint=c)},[c,r]),n.useEffect(()=>{let e=t.current;e&&s!==void 0&&(e.method=s)},[s,r]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,r]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,r]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,r]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.submitContext=g)},[g,r]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.locationUrl=m)},[m,r]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.specUrl=p)},[p,r]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,r]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,r]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.remember=h)},[h,r]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.errorMessage=y)},[y,r]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.attribution=L)},[L,r]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.hideReadings=x)},[x,r]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.hideSections=b)},[b,r]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.brandColor=k)},[k,r]),n.useEffect(()=>{let e=t.current;e&&v!==void 0&&(e.brandAccent=v)},[v,r]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.font=S)},[S,r]),C?n.createElement("div",{role:"alert",className:i,style:u},`Roxy UI script load failed: ${C.message}`):n.createElement("roxy-bhav-chalit-table",{ref:t,className:i,style:u,suppressHydrationWarning:true,...H})});export{X as RoxyBhavChalitTable};
|
|
@@ -36,6 +36,12 @@ export interface RoxyBhavaBalaTableProps extends ElementAttrs {
|
|
|
36
36
|
hideReadings?: boolean;
|
|
37
37
|
/** Comma-separated list of `part` names to take off this component, for example "patterns" or "patterns, legend". Per element rather than per site, so the same component can drop a block on one page and keep it on another with no CSS. Sibling of hideReadings and a different tool: this hides a whole block whatever it contains, where hideReadings drops interpretive prose out of the markup. Names come from the `parts` array in components-catalog.json; a name the component does not carry hides nothing and is not an error. */
|
|
38
38
|
hideSections?: string;
|
|
39
|
+
/** Brand colour as `#rgb` or `#rrggbb`, painted as `--roxy-primary` on this component. Any other value is ignored. */
|
|
40
|
+
brandColor?: string;
|
|
41
|
+
/** Brand accent as `#rgb` or `#rrggbb`, painted as `--roxy-accent` with its ink and focus ring re-derived. Any other value is ignored. */
|
|
42
|
+
brandAccent?: string;
|
|
43
|
+
/** A font pair from `fonts[]` in components-catalog.json, for body text and headings; import `@roxyapi/ui/styles/fonts/{key}.css` once to load its files. Any other value is ignored. */
|
|
44
|
+
font?: 'fraunces-jost' | 'jost' | 'geist' | 'system';
|
|
39
45
|
}
|
|
40
46
|
export declare const RoxyBhavaBalaTable: React.ForwardRefExoticComponent<RoxyBhavaBalaTableProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
47
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import*as n from"react";var
|
|
1
|
+
"use client";import*as n from"react";var M="1.3.0",P="roxyapi-ui-loader",A="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",O="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",U="/dist/cdn",d=null;function j(a){return!a||a==="latest"?A:`${O}${a}${U}`}function H(a=M,i){return typeof document>"u"?Promise.resolve():d||(d=new Promise((o,u)=>{let c=`${i??j(a)}/roxy-ui.js`,s=document.getElementById(P);if(s){s.dataset.loaded==="true"?o():(s.addEventListener("load",()=>o()),s.addEventListener("error",()=>u(new Error("roxy-ui load failed"))));return}s=document.createElement("script"),s.id=P,s.src=c,s.async=true,s.crossOrigin="anonymous",s.addEventListener("load",()=>{s.dataset.loaded="true",o()}),s.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(s)}),d)}var X=n.forwardRef(function({data:i,className:o,style:u,endpoint:c,method:s,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:g,locationUrl:m,specUrl:p,lang:R,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:b,hideSections:h,brandColor:k,brandAccent:v,font:S,...C},I){let t=n.useRef(null);n.useImperativeHandle(I,()=>t.current,[]);let[r,_]=n.useState(false),[B,$]=n.useState(null);return n.useEffect(()=>{let e=true;return H().then(()=>{e&&_(true)}).catch(T=>{e&&$(T instanceof Error?T:new Error(String(T)))}),()=>{e=false}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,r]),n.useEffect(()=>{let e=t.current;e&&c!==void 0&&(e.endpoint=c)},[c,r]),n.useEffect(()=>{let e=t.current;e&&s!==void 0&&(e.method=s)},[s,r]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,r]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,r]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,r]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.submitContext=g)},[g,r]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.locationUrl=m)},[m,r]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.specUrl=p)},[p,r]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,r]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,r]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,r]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,r]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,r]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.hideReadings=b)},[b,r]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.hideSections=h)},[h,r]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.brandColor=k)},[k,r]),n.useEffect(()=>{let e=t.current;e&&v!==void 0&&(e.brandAccent=v)},[v,r]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.font=S)},[S,r]),B?n.createElement("div",{role:"alert",className:o,style:u},`Roxy UI script load failed: ${B.message}`):n.createElement("roxy-bhava-bala-table",{ref:t,className:o,style:u,suppressHydrationWarning:true,...C})});export{X as RoxyBhavaBalaTable};
|