@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
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import*as n from"react";var
|
|
1
|
+
"use client";import*as n from"react";var D="1.3.0",M="roxyapi-ui-loader",U="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",A="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",O="/dist/cdn",c=null;function B(a){return!a||a==="latest"?U:`${A}${a}${O}`}function H(a=D,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((o,u)=>{let l=`${i??B(a)}/roxy-ui.js`,r=document.getElementById(M);if(r){r.dataset.loaded==="true"?o():(r.addEventListener("load",()=>o()),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=M,r.src=l,r.async=true,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",o()}),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),c)}var X=n.forwardRef(function({data:i,className:o,style:u,type:l,endpoint:r,method:d,publishableKey:f,baseUrl:p,submitUrl:R,submitContext:m,locationUrl:g,specUrl:E,lang:y,submitLabel:C,remember:w,errorMessage:h,attribution:x,hideReadings:L,hideSections:P,brandColor:k,brandAccent:b,font:S,...N},I){let t=n.useRef(null);n.useImperativeHandle(I,()=>t.current,[]);let[s,_]=n.useState(false),[T,$]=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,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.type=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.endpoint=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&d!==void 0&&(e.method=d)},[d,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.publishableKey=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.baseUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.submitUrl=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitContext=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.locationUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.specUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.lang=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&C!==void 0&&(e.submitLabel=C)},[C,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.remember=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.errorMessage=h)},[h,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.hideReadings=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&P!==void 0&&(e.hideSections=P)},[P,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.brandColor=k)},[k,s]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.brandAccent=b)},[b,s]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.font=S)},[S,s]),T?n.createElement("div",{role:"alert",className:o,style:u},`Roxy UI script load failed: ${T.message}`):n.createElement("roxy-numerology-card",{ref:t,className:o,style:u,suppressHydrationWarning:true,...N})});export{X as RoxyNumerologyCard};
|
|
@@ -38,6 +38,12 @@ export interface RoxyPanchangTableProps 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 RoxyPanchangTable: React.ForwardRefExoticComponent<RoxyPanchangTableProps & 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 O="1.3.0",C="roxyapi-ui-loader",B="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",U="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",j="/dist/cdn",d=null;function D(a){return!a||a==="latest"?B:`${U}${a}${j}`}function I(a=O,o){return typeof document>"u"?Promise.resolve():d||(d=new Promise((i,c)=>{let u=`${o??D(a)}/roxy-ui.js`,r=document.getElementById(C);if(r){r.dataset.loaded==="true"?i():(r.addEventListener("load",()=>i()),r.addEventListener("error",()=>c(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=C,r.src=u,r.async=true,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",i()}),r.addEventListener("error",()=>c(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),d)}var X=n.forwardRef(function({data:o,className:i,style:c,detail:u,endpoint:r,method:l,publishableKey:f,baseUrl:g,submitUrl:E,submitContext:m,locationUrl:p,specUrl:R,lang:w,submitLabel:y,remember:L,errorMessage:x,attribution:b,hideReadings:h,hideSections:k,brandColor:P,brandAccent:S,font:T,..._},$){let t=n.useRef(null);n.useImperativeHandle($,()=>t.current,[]);let[s,M]=n.useState(false),[H,A]=n.useState(null);return n.useEffect(()=>{let e=true;return I().then(()=>{e&&M(true)}).catch(v=>{e&&A(v instanceof Error?v:new Error(String(v)))}),()=>{e=false}},[]),n.useEffect(()=>{let e=t.current;e&&o!==void 0&&(e.data=o)},[o,s]),n.useEffect(()=>{let e=t.current;e&&u!==void 0&&(e.detail=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&&g!==void 0&&(e.baseUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitContext=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.locationUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.specUrl=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.lang=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.submitLabel=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.remember=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.errorMessage=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.attribution=b)},[b,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.hideReadings=h)},[h,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideSections=k)},[k,s]),n.useEffect(()=>{let e=t.current;e&&P!==void 0&&(e.brandColor=P)},[P,s]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.brandAccent=S)},[S,s]),n.useEffect(()=>{let e=t.current;e&&T!==void 0&&(e.font=T)},[T,s]),H?n.createElement("div",{role:"alert",className:i,style:c},`Roxy UI script load failed: ${H.message}`):n.createElement("roxy-panchang-table",{ref:t,className:i,style:c,suppressHydrationWarning:true,..._})});export{X as RoxyPanchangTable};
|
|
@@ -38,6 +38,12 @@ export interface RoxyPositionsTableProps 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 RoxyPositionsTable: React.ForwardRefExoticComponent<RoxyPositionsTableProps & 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 O="1.3.0",H="roxyapi-ui-loader",U="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",j="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",B="/dist/cdn",d=null;function D(o){return!o||o==="latest"?U:`${j}${o}${B}`}function C(o=O,a){return typeof document>"u"?Promise.resolve():d||(d=new Promise((i,c)=>{let u=`${a??D(o)}/roxy-ui.js`,r=document.getElementById(H);if(r){r.dataset.loaded==="true"?i():(r.addEventListener("load",()=>i()),r.addEventListener("error",()=>c(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=H,r.src=u,r.async=true,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",i()}),r.addEventListener("error",()=>c(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),d)}var F=n.forwardRef(function({data:a,className:i,style:c,heading:u,endpoint:r,method:l,publishableKey:f,baseUrl:E,submitUrl:g,submitContext:p,locationUrl:R,specUrl:m,lang:w,submitLabel:L,remember:y,errorMessage:x,attribution:b,hideReadings:k,hideSections:P,brandColor:S,brandAccent:h,font:T,...I},_){let t=n.useRef(null);n.useImperativeHandle(_,()=>t.current,[]);let[s,$]=n.useState(false),[A,M]=n.useState(null);return n.useEffect(()=>{let e=true;return C().then(()=>{e&&$(true)}).catch(v=>{e&&M(v instanceof Error?v:new Error(String(v)))}),()=>{e=false}},[]),n.useEffect(()=>{let e=t.current;e&&a!==void 0&&(e.data=a)},[a,s]),n.useEffect(()=>{let e=t.current;e&&u!==void 0&&(e.heading=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&&E!==void 0&&(e.baseUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.submitUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.submitContext=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.locationUrl=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.specUrl=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.lang=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.submitLabel=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.errorMessage=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.attribution=b)},[b,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideReadings=k)},[k,s]),n.useEffect(()=>{let e=t.current;e&&P!==void 0&&(e.hideSections=P)},[P,s]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.brandColor=S)},[S,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.brandAccent=h)},[h,s]),n.useEffect(()=>{let e=t.current;e&&T!==void 0&&(e.font=T)},[T,s]),A?n.createElement("div",{role:"alert",className:i,style:c},`Roxy UI script load failed: ${A.message}`):n.createElement("roxy-positions-table",{ref:t,className:i,style:c,suppressHydrationWarning:true,...I})});export{F as RoxyPositionsTable};
|
|
@@ -36,6 +36,12 @@ export interface RoxyProfectionCardProps 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 RoxyProfectionCard: React.ForwardRefExoticComponent<RoxyProfectionCardProps & 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 A="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 H(o=A,a){return typeof document>"u"?Promise.resolve():d||(d=new Promise((i,c)=>{let u=`${a??B(o)}/roxy-ui.js`,s=document.getElementById(T);if(s){s.dataset.loaded==="true"?i():(s.addEventListener("load",()=>i()),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",i()}),s.addEventListener("error",()=>c(new Error("roxy-ui load failed"))),document.head.appendChild(s)}),d)}var X=n.forwardRef(function({data:a,className:i,style:c,endpoint:u,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:k,hideSections:P,brandColor:S,brandAccent:b,font:h,...I},_){let t=n.useRef(null);n.useImperativeHandle(_,()=>t.current,[]);let[r,$]=n.useState(false),[C,M]=n.useState(null);return n.useEffect(()=>{let e=true;return H().then(()=>{e&&$(true)}).catch(v=>{e&&M(v instanceof Error?v:new Error(String(v)))}),()=>{e=false}},[]),n.useEffect(()=>{let e=t.current;e&&a!==void 0&&(e.data=a)},[a,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&&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&&k!==void 0&&(e.hideReadings=k)},[k,r]),n.useEffect(()=>{let e=t.current;e&&P!==void 0&&(e.hideSections=P)},[P,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&&h!==void 0&&(e.font=h)},[h,r]),C?n.createElement("div",{role:"alert",className:i,style:c},`Roxy UI script load failed: ${C.message}`):n.createElement("roxy-profection-card",{ref:t,className:i,style:c,suppressHydrationWarning:true,...I})});export{X as RoxyProfectionCard};
|
|
@@ -36,6 +36,12 @@ export interface RoxyReferenceCardProps 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 RoxyReferenceCard: React.ForwardRefExoticComponent<RoxyReferenceCardProps & 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",P="roxyapi-ui-loader",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",O="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",N="/dist/cdn",d=null;function U(o){return!o||o==="latest"?$:`${O}${o}${N}`}function T(o=_,i){return typeof document>"u"?Promise.resolve():d||(d=new Promise((a,u)=>{let c=`${i??U(o)}/roxy-ui.js`,r=document.getElementById(P);if(r){r.dataset.loaded==="true"?a():(r.addEventListener("load",()=>a()),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=P,r.src=c,r.async=true,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",a()}),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),d)}var D=n.forwardRef(function({data:i,className:a,style:u,endpoint:c,method:r,publishableKey:l,baseUrl:f,submitUrl:R,submitContext:p,locationUrl:g,specUrl:m,lang:E,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:k,hideSections:b,brandColor:G,brandAccent:S,font:h,...M},H){let t=n.useRef(null);n.useImperativeHandle(H,()=>t.current,[]);let[s,A]=n.useState(false),[v,I]=n.useState(null);return n.useEffect(()=>{let e=true;return T().then(()=>{e&&A(true)}).catch(C=>{e&&I(C instanceof Error?C:new Error(String(C)))}),()=>{e=false}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,s]),n.useEffect(()=>{let e=t.current;e&&c!==void 0&&(e.endpoint=c)},[c,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&&R!==void 0&&(e.submitUrl=R)},[R,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&&m!==void 0&&(e.specUrl=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.lang=E)},[E,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&&k!==void 0&&(e.hideReadings=k)},[k,s]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.hideSections=b)},[b,s]),n.useEffect(()=>{let e=t.current;e&&G!==void 0&&(e.brandColor=G)},[G,s]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.brandAccent=S)},[S,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.font=h)},[h,s]),v?n.createElement("div",{role:"alert",className:a,style:u},`Roxy UI script load failed: ${v.message}`):n.createElement("roxy-reference-card",{ref:t,className:a,style:u,suppressHydrationWarning:true,...M})});export{D as RoxyReferenceCard};
|
|
@@ -36,6 +36,12 @@ export interface RoxyRelocationWheelProps 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 RoxyRelocationWheel: React.ForwardRefExoticComponent<RoxyRelocationWheelProps & 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 A="1.3.0",C="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 H(o=A,a){return typeof document>"u"?Promise.resolve():d||(d=new Promise((i,c)=>{let u=`${a??B(o)}/roxy-ui.js`,s=document.getElementById(C);if(s){s.dataset.loaded==="true"?i():(s.addEventListener("load",()=>i()),s.addEventListener("error",()=>c(new Error("roxy-ui load failed"))));return}s=document.createElement("script"),s.id=C,s.src=u,s.async=true,s.crossOrigin="anonymous",s.addEventListener("load",()=>{s.dataset.loaded="true",i()}),s.addEventListener("error",()=>c(new Error("roxy-ui load failed"))),document.head.appendChild(s)}),d)}var N=n.forwardRef(function({data:a,className:i,style:c,endpoint:u,method:s,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:g,locationUrl:m,specUrl:R,lang:p,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:h,hideSections:k,brandColor:S,brandAccent:b,font:v,...I},_){let t=n.useRef(null);n.useImperativeHandle(_,()=>t.current,[]);let[r,$]=n.useState(false),[T,M]=n.useState(null);return n.useEffect(()=>{let e=true;return H().then(()=>{e&&$(true)}).catch(P=>{e&&M(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&&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&&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&&R!==void 0&&(e.specUrl=R)},[R,r]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.lang=p)},[p,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&&v!==void 0&&(e.font=v)},[v,r]),T?n.createElement("div",{role:"alert",className:i,style:c},`Roxy UI script load failed: ${T.message}`):n.createElement("roxy-relocation-wheel",{ref:t,className:i,style:c,suppressHydrationWarning:true,...I})});export{N as RoxyRelocationWheel};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { GenerateBaziReportResponse, GenerateHumanDesignReportResponse, GenerateKundliReportResponse, GenerateMatchmakingReportResponse, GenerateNatalReportResponse, GenerateNumerologyReportResponse, GenerateSynastryReportResponse, GenerateTarotReportResponse, GenerateYearlyForecastReportResponse } from '../types/index.js';
|
|
3
|
+
type ElementAttrs = Omit<React.HTMLAttributes<HTMLElement>, 'children' | 'data'>;
|
|
4
|
+
export interface RoxyReportProps extends ElementAttrs {
|
|
5
|
+
/** Spec-derived response payload. Pass the raw RoxyAPI response. */
|
|
6
|
+
data?: GenerateNatalReportResponse | GenerateSynastryReportResponse | GenerateKundliReportResponse | GenerateMatchmakingReportResponse | GenerateYearlyForecastReportResponse | GenerateHumanDesignReportResponse | GenerateBaziReportResponse | GenerateNumerologyReportResponse | GenerateTarotReportResponse;
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
/** Which report the form asks for and the visitor receives, by its id. Unset, the first report is used. */
|
|
10
|
+
report?: 'natal' | 'synastry' | 'kundli' | 'matchmaking' | 'yearly-forecast' | 'human-design' | 'bazi' | 'numerology' | 'tarot';
|
|
11
|
+
/** pdf offers the finished document as a download; html shows it in place on the page. Defaults to pdf. */
|
|
12
|
+
format?: 'pdf' | 'html';
|
|
13
|
+
/** Your business or practitioner name, printed on the cover and every page. */
|
|
14
|
+
brandName?: string;
|
|
15
|
+
/** An HTTPS URL of your logo, printed on the cover. */
|
|
16
|
+
brandLogo?: string;
|
|
17
|
+
/** A line printed at the foot of every page, such as a disclaimer or a booking note. */
|
|
18
|
+
brandFooter?: string;
|
|
19
|
+
/** The theme preset the document is printed in, a key from `themes[]` in components-catalog.json. Any other value is ignored. */
|
|
20
|
+
theme?: 'practitioner' | 'eucalyptus' | 'kiln' | 'moonlit' | 'celeste';
|
|
21
|
+
/** Endpoint path for built-in self-fetch, e.g. "astrology/natal-chart". Optional: with a publishableKey or submitUrl and no endpoint, the component fetches its default endpoint, or the one its config prop (mode, period, type, spread, detail) selects. Set it to render any other endpoint the component draws. Pass `data` and no key for controlled mode. */
|
|
22
|
+
endpoint?: string;
|
|
23
|
+
/** HTTP method for the self-fetch request. Defaults to the method of the endpoint in use, and to POST beside an explicit endpoint. */
|
|
24
|
+
method?: 'GET' | 'POST';
|
|
25
|
+
/** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */
|
|
26
|
+
publishableKey?: string;
|
|
27
|
+
/** Override the API origin for self-hosted or proxied deployments. Absolute, or relative to the page for a same-origin route. */
|
|
28
|
+
baseUrl?: string;
|
|
29
|
+
/** Your own backend route, which holds the secret key. Every request the component makes, the city search included, is POSTed there as `{ path, method, body, query }` instead of calling RoxyAPI directly, and the component renders the JSON your route returns, so no key of any kind reaches the browser. */
|
|
30
|
+
submitUrl?: string;
|
|
31
|
+
/** An object of your own, sent to your submitUrl route as `context` beside the request, so a page can attach its own verification data to a proxied submission. Passed through untouched and never read by the component: what it holds is for your page and your route to agree on. Unset, nothing is added and the route receives the request exactly as before. Rides the submitUrl path only; a direct call sends what the endpoint declares. */
|
|
32
|
+
submitContext?: Record<string, unknown>;
|
|
33
|
+
/** Where the self-fetch form city search sends its GET, absolute or relative to the page. Optional beside submitUrl, which carries the city search too; set it only to send the city search somewhere else. Unset with no submitUrl, the search calls the public location endpoint. */
|
|
34
|
+
locationUrl?: string;
|
|
35
|
+
/** Override the OpenAPI spec URL the self-fetch form introspects. */
|
|
36
|
+
specUrl?: string;
|
|
37
|
+
/** Response language for self-fetch, forwarded to the API `lang` query parameter (en, tr, de, es, hi, pt, fr, ru). The form never shows a language field; the site owner sets it here. Defaults to English. */
|
|
38
|
+
lang?: string;
|
|
39
|
+
/** Override the self-fetch form submit-button label. Empty derives an outcome-first label from the endpoint (Get reading, Generate, Compare, Cast). */
|
|
40
|
+
submitLabel?: string;
|
|
41
|
+
/** Persist the last self-fetch form values in sessionStorage, keyed by endpoint, and prefill the form when the visitor returns. Off by default. */
|
|
42
|
+
remember?: boolean;
|
|
43
|
+
/** Your own words for a failed self-fetch the API did not explain (a dropped connection, a response with no message). A failure the API explains, such as a spent quota, reads as the API worded it. */
|
|
44
|
+
errorMessage?: string;
|
|
45
|
+
/** Render a small "Spiritual data by RoxyAPI" credit under a self-fetch result, linking back to RoxyAPI. Off by default; set any value to enable, or "off" to force it off. Never shown in controlled mode. */
|
|
46
|
+
attribution?: string;
|
|
47
|
+
/** Render the chart and the data and omit the written interpretation. Off by default. Use it when the page supplies its own words: the wheels, tables, grids, legends and numbers stay, and the interpretive prose is left out of the markup entirely. */
|
|
48
|
+
hideReadings?: boolean;
|
|
49
|
+
/** 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. */
|
|
50
|
+
hideSections?: string;
|
|
51
|
+
/** Brand colour as `#rgb` or `#rrggbb`, painted as `--roxy-primary` on this component. Any other value is ignored. */
|
|
52
|
+
brandColor?: string;
|
|
53
|
+
/** Brand accent as `#rgb` or `#rrggbb`, painted as `--roxy-accent` with its ink and focus ring re-derived. Any other value is ignored. */
|
|
54
|
+
brandAccent?: string;
|
|
55
|
+
/** 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. */
|
|
56
|
+
font?: 'fraunces-jost' | 'jost' | 'geist' | 'system';
|
|
57
|
+
}
|
|
58
|
+
export declare const RoxyReport: React.ForwardRefExoticComponent<RoxyReportProps & React.RefAttributes<HTMLElement | null>>;
|
|
59
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import*as n from"react";var j="1.3.0",$="roxyapi-ui-loader",z="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",D="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",F="/dist/cdn",d=null;function X(o){return!o||o==="latest"?z:`${D}${o}${F}`}function A(o=j,i){return typeof document>"u"?Promise.resolve():d||(d=new Promise((a,u)=>{let c=`${i??X(o)}/roxy-ui.js`,s=document.getElementById($);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=$,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 V=n.forwardRef(function({data:i,className:a,style:u,report:c,format:s,brandName:l,brandLogo:f,brandFooter:p,theme:R,endpoint:m,method:g,publishableKey:E,baseUrl:y,submitUrl:w,submitContext:k,locationUrl:L,specUrl:x,lang:h,submitLabel:b,remember:S,errorMessage:G,attribution:T,hideReadings:v,hideSections:P,brandColor:H,brandAccent:M,font:C,...N},O){let t=n.useRef(null);n.useImperativeHandle(O,()=>t.current,[]);let[r,B]=n.useState(false),[_,U]=n.useState(null);return n.useEffect(()=>{let e=true;return A().then(()=>{e&&B(true)}).catch(I=>{e&&U(I instanceof Error?I:new Error(String(I)))}),()=>{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.report=c)},[c,r]),n.useEffect(()=>{let e=t.current;e&&s!==void 0&&(e.format=s)},[s,r]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.brandName=l)},[l,r]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.brandLogo=f)},[f,r]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.brandFooter=p)},[p,r]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.theme=R)},[R,r]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.endpoint=m)},[m,r]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.method=g)},[g,r]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.publishableKey=E)},[E,r]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.baseUrl=y)},[y,r]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitUrl=w)},[w,r]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.submitContext=k)},[k,r]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.locationUrl=L)},[L,r]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.specUrl=x)},[x,r]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.lang=h)},[h,r]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.submitLabel=b)},[b,r]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.remember=S)},[S,r]),n.useEffect(()=>{let e=t.current;e&&G!==void 0&&(e.errorMessage=G)},[G,r]),n.useEffect(()=>{let e=t.current;e&&T!==void 0&&(e.attribution=T)},[T,r]),n.useEffect(()=>{let e=t.current;e&&v!==void 0&&(e.hideReadings=v)},[v,r]),n.useEffect(()=>{let e=t.current;e&&P!==void 0&&(e.hideSections=P)},[P,r]),n.useEffect(()=>{let e=t.current;e&&H!==void 0&&(e.brandColor=H)},[H,r]),n.useEffect(()=>{let e=t.current;e&&M!==void 0&&(e.brandAccent=M)},[M,r]),n.useEffect(()=>{let e=t.current;e&&C!==void 0&&(e.font=C)},[C,r]),_?n.createElement("div",{role:"alert",className:a,style:u},`Roxy UI script load failed: ${_.message}`):n.createElement("roxy-report",{ref:t,className:a,style:u,suppressHydrationWarning:true,...N})});export{V as RoxyReport};
|
|
@@ -36,6 +36,12 @@ export interface RoxyShadbalaTableProps 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 RoxyShadbalaTable: React.ForwardRefExoticComponent<RoxyShadbalaTableProps & 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 A="1.3.0",H="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 C(a=A,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((o,d)=>{let u=`${i??B(a)}/roxy-ui.js`,s=document.getElementById(H);if(s){s.dataset.loaded==="true"?o():(s.addEventListener("load",()=>o()),s.addEventListener("error",()=>d(new Error("roxy-ui load failed"))));return}s=document.createElement("script"),s.id=H,s.src=u,s.async=true,s.crossOrigin="anonymous",s.addEventListener("load",()=>{s.dataset.loaded="true",o()}),s.addEventListener("error",()=>d(new Error("roxy-ui load failed"))),document.head.appendChild(s)}),c)}var X=n.forwardRef(function({data:i,className:o,style:d,endpoint:u,method:s,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:g,locationUrl:m,specUrl:p,lang:R,submitLabel:w,remember:b,errorMessage:y,attribution:L,hideReadings:x,hideSections:S,brandColor:h,brandAccent:k,font:T,...I},_){let t=n.useRef(null);n.useImperativeHandle(_,()=>t.current,[]);let[r,$]=n.useState(false),[P,M]=n.useState(null);return n.useEffect(()=>{let e=true;return C().then(()=>{e&&$(true)}).catch(v=>{e&&M(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&&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&&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&&b!==void 0&&(e.remember=b)},[b,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&&S!==void 0&&(e.hideSections=S)},[S,r]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.brandColor=h)},[h,r]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.brandAccent=k)},[k,r]),n.useEffect(()=>{let e=t.current;e&&T!==void 0&&(e.font=T)},[T,r]),P?n.createElement("div",{role:"alert",className:o,style:d},`Roxy UI script load failed: ${P.message}`):n.createElement("roxy-shadbala-table",{ref:t,className:o,style:d,suppressHydrationWarning:true,...I})});export{X as RoxyShadbalaTable};
|
|
@@ -43,6 +43,12 @@ export interface RoxySynastryChartProps extends ElementAttrs {
|
|
|
43
43
|
hideReadings?: boolean;
|
|
44
44
|
/** 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. */
|
|
45
45
|
hideSections?: string;
|
|
46
|
+
/** Brand colour as `#rgb` or `#rrggbb`, painted as `--roxy-primary` on this component. Any other value is ignored. */
|
|
47
|
+
brandColor?: string;
|
|
48
|
+
/** Brand accent as `#rgb` or `#rrggbb`, painted as `--roxy-accent` with its ink and focus ring re-derived. Any other value is ignored. */
|
|
49
|
+
brandAccent?: string;
|
|
50
|
+
/** 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. */
|
|
51
|
+
font?: 'fraunces-jost' | 'jost' | 'geist' | 'system';
|
|
46
52
|
}
|
|
47
53
|
export declare const RoxySynastryChart: React.ForwardRefExoticComponent<RoxySynastryChartProps & React.RefAttributes<HTMLElement | null>>;
|
|
48
54
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import*as n from"react";var
|
|
1
|
+
"use client";import*as n from"react";var A="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 N(a){return!a||a==="latest"?O:`${U}${a}${j}`}function H(a=A,i){return typeof document>"u"?Promise.resolve():d||(d=new Promise((o,u)=>{let c=`${i??N(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=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:p,locationUrl:g,specUrl:m,lang:R,submitLabel:y,remember:w,errorMessage:L,attribution:x,hideReadings:S,hideSections:h,brandColor:k,brandAccent:C,font:b,...I},_){let t=n.useRef(null);n.useImperativeHandle(_,()=>t.current,[]);let[r,$]=n.useState(false),[P,M]=n.useState(null);return n.useEffect(()=>{let e=true;return H().then(()=>{e&&$(true)}).catch(v=>{e&&M(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&&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&&p!==void 0&&(e.submitContext=p)},[p,r]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.locationUrl=g)},[g,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&&S!==void 0&&(e.hideReadings=S)},[S,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&&C!==void 0&&(e.brandAccent=C)},[C,r]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.font=b)},[b,r]),P?n.createElement("div",{role:"alert",className:o,style:u},`Roxy UI script load failed: ${P.message}`):n.createElement("roxy-synastry-chart",{ref:t,className:o,style:u,suppressHydrationWarning:true,...I})});export{X as RoxySynastryChart};
|
|
@@ -36,6 +36,12 @@ export interface RoxyTarotCardProps 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 RoxyTarotCard: React.ForwardRefExoticComponent<RoxyTarotCardProps & 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 A="1.3.0",P="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(o){return!o||o==="latest"?O:`${U}${o}${j}`}function H(o=A,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((a,d)=>{let u=`${i??B(o)}/roxy-ui.js`,s=document.getElementById(P);if(s){s.dataset.loaded==="true"?a():(s.addEventListener("load",()=>a()),s.addEventListener("error",()=>d(new Error("roxy-ui load failed"))));return}s=document.createElement("script"),s.id=P,s.src=u,s.async=true,s.crossOrigin="anonymous",s.addEventListener("load",()=>{s.dataset.loaded="true",a()}),s.addEventListener("error",()=>d(new Error("roxy-ui load failed"))),document.head.appendChild(s)}),c)}var N=n.forwardRef(function({data:i,className:a,style:d,endpoint:u,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:k,hideSections:S,brandColor:C,brandAccent:T,font:b,...I},_){let t=n.useRef(null);n.useImperativeHandle(_,()=>t.current,[]);let[r,$]=n.useState(false),[v,M]=n.useState(null);return n.useEffect(()=>{let e=true;return H().then(()=>{e&&$(true)}).catch(h=>{e&&M(h instanceof Error?h:new Error(String(h)))}),()=>{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&&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&&k!==void 0&&(e.hideReadings=k)},[k,r]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.hideSections=S)},[S,r]),n.useEffect(()=>{let e=t.current;e&&C!==void 0&&(e.brandColor=C)},[C,r]),n.useEffect(()=>{let e=t.current;e&&T!==void 0&&(e.brandAccent=T)},[T,r]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.font=b)},[b,r]),v?n.createElement("div",{role:"alert",className:a,style:d},`Roxy UI script load failed: ${v.message}`):n.createElement("roxy-tarot-card",{ref:t,className:a,style:d,suppressHydrationWarning:true,...I})});export{N as RoxyTarotCard};
|
|
@@ -38,6 +38,12 @@ export interface RoxyTarotCatalogProps 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
|
/** Fires when the underlying <roxy-tarot-catalog> dispatches `roxy-symbol-select`. */
|
|
42
48
|
onRoxySymbolSelect?: (event: CustomEvent<{
|
|
43
49
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import*as n from"react";var
|
|
1
|
+
"use client";import*as n from"react";var B="1.3.0",_="roxyapi-ui-loader",D="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",N="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",X="/dist/cdn",l=null;function F(o){return!o||o==="latest"?D:`${N}${o}${X}`}function $(o=B,c){return typeof document>"u"?Promise.resolve():l||(l=new Promise((i,u)=>{let d=`${c??F(o)}/roxy-ui.js`,s=document.getElementById(_);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=_,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)}),l)}var Y=n.forwardRef(function({data:c,className:i,style:u,heading:d,endpoint:s,method:f,publishableKey:E,baseUrl:g,submitUrl:m,submitContext:R,locationUrl:p,specUrl:w,lang:y,submitLabel:L,remember:x,errorMessage:k,attribution:v,hideReadings:b,hideSections:S,brandColor:C,brandAccent:T,font:h,onRoxySymbolSelect:P,...M},A){let t=n.useRef(null);n.useImperativeHandle(A,()=>t.current,[]);let[r,O]=n.useState(false),[H,U]=n.useState(null);return n.useEffect(()=>{let e=true;return $().then(()=>{e&&O(true)}).catch(a=>{e&&U(a instanceof Error?a:new Error(String(a)))}),()=>{e=false}},[]),n.useEffect(()=>{let e=t.current;e&&c!==void 0&&(e.data=c)},[c,r]),n.useEffect(()=>{let e=t.current;e&&d!==void 0&&(e.heading=d)},[d,r]),n.useEffect(()=>{let e=t.current;e&&s!==void 0&&(e.endpoint=s)},[s,r]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.method=f)},[f,r]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.publishableKey=E)},[E,r]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.baseUrl=g)},[g,r]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitUrl=m)},[m,r]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.submitContext=R)},[R,r]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.locationUrl=p)},[p,r]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.specUrl=w)},[w,r]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.lang=y)},[y,r]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.submitLabel=L)},[L,r]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.remember=x)},[x,r]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.errorMessage=k)},[k,r]),n.useEffect(()=>{let e=t.current;e&&v!==void 0&&(e.attribution=v)},[v,r]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.hideReadings=b)},[b,r]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.hideSections=S)},[S,r]),n.useEffect(()=>{let e=t.current;e&&C!==void 0&&(e.brandColor=C)},[C,r]),n.useEffect(()=>{let e=t.current;e&&T!==void 0&&(e.brandAccent=T)},[T,r]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.font=h)},[h,r]),n.useEffect(()=>{let e=t.current,a=P;if(!e||!a)return;let I=j=>a(j);return e.addEventListener("roxy-symbol-select",I),()=>e.removeEventListener("roxy-symbol-select",I)},[P,r]),H?n.createElement("div",{role:"alert",className:i,style:u},`Roxy UI script load failed: ${H.message}`):n.createElement("roxy-tarot-catalog",{ref:t,className:i,style:u,suppressHydrationWarning:true,...M})});export{Y as RoxyTarotCatalog};
|
|
@@ -38,6 +38,12 @@ export interface RoxyTarotSpreadProps 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 RoxyTarotSpread: React.ForwardRefExoticComponent<RoxyTarotSpreadProps & 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 O="1.3.0",H="roxyapi-ui-loader",U="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",j="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",B="/dist/cdn",u=null;function D(a){return!a||a==="latest"?U:`${j}${a}${B}`}function I(a=O,i){return typeof document>"u"?Promise.resolve():u||(u=new Promise((o,d)=>{let c=`${i??D(a)}/roxy-ui.js`,r=document.getElementById(H);if(r){r.dataset.loaded==="true"?o():(r.addEventListener("load",()=>o()),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=H,r.src=c,r.async=true,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",o()}),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),u)}var Y=n.forwardRef(function({data:i,className:o,style:d,spread:c,endpoint:r,method:l,publishableKey:f,baseUrl:p,submitUrl:R,submitContext:E,locationUrl:m,specUrl:g,lang:w,submitLabel:C,remember:y,errorMessage:S,attribution:L,hideReadings:x,hideSections:k,brandColor:T,brandAccent:h,font:v,..._},$){let t=n.useRef(null);n.useImperativeHandle($,()=>t.current,[]);let[s,M]=n.useState(false),[P,A]=n.useState(null);return n.useEffect(()=>{let e=true;return I().then(()=>{e&&M(true)}).catch(b=>{e&&A(b instanceof Error?b:new Error(String(b)))}),()=>{e=false}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,s]),n.useEffect(()=>{let e=t.current;e&&c!==void 0&&(e.spread=c)},[c,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&&p!==void 0&&(e.baseUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.submitUrl=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitContext=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.locationUrl=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.specUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.lang=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&C!==void 0&&(e.submitLabel=C)},[C,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.errorMessage=S)},[S,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.attribution=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.hideReadings=x)},[x,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&&h!==void 0&&(e.brandAccent=h)},[h,s]),n.useEffect(()=>{let e=t.current;e&&v!==void 0&&(e.font=v)},[v,s]),P?n.createElement("div",{role:"alert",className:o,style:d},`Roxy UI script load failed: ${P.message}`):n.createElement("roxy-tarot-spread",{ref:t,className:o,style:d,suppressHydrationWarning:true,..._})});export{Y as RoxyTarotSpread};
|
|
@@ -45,6 +45,12 @@ export interface RoxyTransitWheelProps extends ElementAttrs {
|
|
|
45
45
|
hideReadings?: boolean;
|
|
46
46
|
/** 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. */
|
|
47
47
|
hideSections?: string;
|
|
48
|
+
/** Brand colour as `#rgb` or `#rrggbb`, painted as `--roxy-primary` on this component. Any other value is ignored. */
|
|
49
|
+
brandColor?: string;
|
|
50
|
+
/** Brand accent as `#rgb` or `#rrggbb`, painted as `--roxy-accent` with its ink and focus ring re-derived. Any other value is ignored. */
|
|
51
|
+
brandAccent?: string;
|
|
52
|
+
/** 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. */
|
|
53
|
+
font?: 'fraunces-jost' | 'jost' | 'geist' | 'system';
|
|
48
54
|
}
|
|
49
55
|
export declare const RoxyTransitWheel: React.ForwardRefExoticComponent<RoxyTransitWheelProps & React.RefAttributes<HTMLElement | null>>;
|
|
50
56
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import*as n from"react";var
|
|
1
|
+
"use client";import*as n from"react";var j="1.3.0",I="roxyapi-ui-loader",B="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",W="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",D="/dist/cdn",d=null;function N(i){return!i||i==="latest"?B:`${W}${i}${D}`}function _(i=j,o){return typeof document>"u"?Promise.resolve():d||(d=new Promise((a,u)=>{let c=`${o??N(i)}/roxy-ui.js`,s=document.getElementById(I);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=I,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 z=n.forwardRef(function({data:o,className:a,style:u,heading:c,ascendant:s,houses:l,endpoint:f,method:m,publishableKey:E,baseUrl:g,submitUrl:p,submitContext:R,locationUrl:w,specUrl:y,lang:b,submitLabel:L,remember:k,errorMessage:x,attribution:h,hideReadings:T,hideSections:S,brandColor:v,brandAccent:P,font:A,...$},M){let t=n.useRef(null);n.useImperativeHandle(M,()=>t.current,[]);let[r,O]=n.useState(false),[H,U]=n.useState(null);return n.useEffect(()=>{let e=true;return _().then(()=>{e&&O(true)}).catch(C=>{e&&U(C instanceof Error?C:new Error(String(C)))}),()=>{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.heading=c)},[c,r]),n.useEffect(()=>{let e=t.current;e&&s!==void 0&&(e.ascendant=s)},[s,r]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.houses=l)},[l,r]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.endpoint=f)},[f,r]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.method=m)},[m,r]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.publishableKey=E)},[E,r]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.baseUrl=g)},[g,r]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.submitUrl=p)},[p,r]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.submitContext=R)},[R,r]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.locationUrl=w)},[w,r]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.specUrl=y)},[y,r]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.lang=b)},[b,r]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.submitLabel=L)},[L,r]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.remember=k)},[k,r]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.errorMessage=x)},[x,r]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.attribution=h)},[h,r]),n.useEffect(()=>{let e=t.current;e&&T!==void 0&&(e.hideReadings=T)},[T,r]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.hideSections=S)},[S,r]),n.useEffect(()=>{let e=t.current;e&&v!==void 0&&(e.brandColor=v)},[v,r]),n.useEffect(()=>{let e=t.current;e&&P!==void 0&&(e.brandAccent=P)},[P,r]),n.useEffect(()=>{let e=t.current;e&&A!==void 0&&(e.font=A)},[A,r]),H?n.createElement("div",{role:"alert",className:a,style:u},`Roxy UI script load failed: ${H.message}`):n.createElement("roxy-transit-wheel",{ref:t,className:a,style:u,suppressHydrationWarning:true,...$})});export{z as RoxyTransitWheel};
|
|
@@ -36,6 +36,12 @@ export interface RoxyTransitsTableProps 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 RoxyTransitsTable: React.ForwardRefExoticComponent<RoxyTransitsTableProps & 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 A="1.3.0",H="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(i){return!i||i==="latest"?O:`${U}${i}${j}`}function C(i=A,a){return typeof document>"u"?Promise.resolve():d||(d=new Promise((o,u)=>{let c=`${a??B(i)}/roxy-ui.js`,s=document.getElementById(H);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=H,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:a,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:T,hideSections:b,brandColor:k,brandAccent:S,font:h,...I},_){let t=n.useRef(null);n.useImperativeHandle(_,()=>t.current,[]);let[r,$]=n.useState(false),[P,M]=n.useState(null);return n.useEffect(()=>{let e=true;return C().then(()=>{e&&$(true)}).catch(v=>{e&&M(v instanceof Error?v:new Error(String(v)))}),()=>{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&&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&&T!==void 0&&(e.hideReadings=T)},[T,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&&S!==void 0&&(e.brandAccent=S)},[S,r]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.font=h)},[h,r]),P?n.createElement("div",{role:"alert",className:o,style:u},`Roxy UI script load failed: ${P.message}`):n.createElement("roxy-transits-table",{ref:t,className:o,style:u,suppressHydrationWarning:true,...I})});export{X as RoxyTransitsTable};
|
|
@@ -36,6 +36,12 @@ export interface RoxyUpagrahaTableProps 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 RoxyUpagrahaTable: React.ForwardRefExoticComponent<RoxyUpagrahaTableProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
47
|
export {};
|