@roxyapi/ui-react 1.1.2 → 1.2.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 +21 -1
- package/README.md +43 -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/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.js +1 -1
- package/dist/jsx.d.ts +6 -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/package.json +1 -1
|
@@ -36,6 +36,12 @@ export interface RoxyCharaKarakasProps 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 RoxyCharaKarakas: React.ForwardRefExoticComponent<RoxyCharaKarakasProps & 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.2.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 K(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??K(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 N=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:k,errorMessage:y,attribution:L,hideReadings:x,hideSections:h,brandColor:S,brandAccent:b,font:C,...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&&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&&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&&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:o,style:u},`Roxy UI script load failed: ${P.message}`):n.createElement("roxy-chara-karakas",{ref:t,className:o,style:u,suppressHydrationWarning:true,...I})});export{N as RoxyCharaKarakas};
|
|
@@ -36,6 +36,12 @@ export interface RoxyChoghadiyaGridProps 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 RoxyChoghadiyaGrid: React.ForwardRefExoticComponent<RoxyChoghadiyaGridProps & 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.2.0",T="roxyapi-ui-loader",O="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",G="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",U="/dist/cdn",c=null;function j(i){return!i||i==="latest"?O:`${G}${i}${U}`}function H(i=A,a){return typeof document>"u"?Promise.resolve():c||(c=new Promise((o,d)=>{let u=`${a??j(i)}/roxy-ui.js`,s=document.getElementById(T);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=T,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 N=n.forwardRef(function({data:a,className:o,style:d,endpoint:u,method:s,publishableKey:l,baseUrl:f,submitUrl:g,submitContext:E,locationUrl:m,specUrl:p,lang:R,submitLabel:y,remember:w,errorMessage:h,attribution:L,hideReadings:x,hideSections:k,brandColor:S,brandAccent:b,font:C,...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&&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&&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&&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&&h!==void 0&&(e.errorMessage=h)},[h,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&&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:o,style:d},`Roxy UI script load failed: ${P.message}`):n.createElement("roxy-choghadiya-grid",{ref:t,className:o,style:d,suppressHydrationWarning:true,...I})});export{N as RoxyChoghadiyaGrid};
|
|
@@ -38,6 +38,12 @@ export interface RoxyCompatibilityCardProps 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 RoxyCompatibilityCard: React.ForwardRefExoticComponent<RoxyCompatibilityCardProps & React.RefAttributes<HTMLElement | null>>;
|
|
43
49
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import*as
|
|
1
|
+
"use client";import*as n from"react";var O="1.2.0",H="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 N(i){return!i||i==="latest"?B:`${U}${i}${j}`}function I(i=O,a){return typeof document>"u"?Promise.resolve():d||(d=new Promise((o,u)=>{let c=`${a??N(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 F=n.forwardRef(function({data:a,className:o,style:u,mode:c,endpoint:s,method:l,publishableKey:f,baseUrl:m,submitUrl:p,submitContext:E,locationUrl:g,specUrl:R,lang:y,submitLabel:w,remember:b,errorMessage:C,attribution:L,hideReadings:x,hideSections:k,brandColor:h,brandAccent:S,font:v,..._},$){let t=n.useRef(null);n.useImperativeHandle($,()=>t.current,[]);let[r,M]=n.useState(false),[T,A]=n.useState(null);return n.useEffect(()=>{let e=true;return I().then(()=>{e&&M(true)}).catch(P=>{e&&A(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.mode=c)},[c,r]),n.useEffect(()=>{let e=t.current;e&&s!==void 0&&(e.endpoint=s)},[s,r]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.method=l)},[l,r]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.publishableKey=f)},[f,r]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.baseUrl=m)},[m,r]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.submitUrl=p)},[p,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&&R!==void 0&&(e.specUrl=R)},[R,r]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.lang=y)},[y,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&&C!==void 0&&(e.errorMessage=C)},[C,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&&k!==void 0&&(e.hideSections=k)},[k,r]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.brandColor=h)},[h,r]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.brandAccent=S)},[S,r]),n.useEffect(()=>{let e=t.current;e&&v!==void 0&&(e.font=v)},[v,r]),T?n.createElement("div",{role:"alert",className:o,style:u},`Roxy UI script load failed: ${T.message}`):n.createElement("roxy-compatibility-card",{ref:t,className:o,style:u,suppressHydrationWarning:true,..._})});export{F as RoxyCompatibilityCard};
|
|
@@ -36,6 +36,12 @@ export interface RoxyCompoundNumberProps 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 RoxyCompoundNumber: React.ForwardRefExoticComponent<RoxyCompoundNumberProps & 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 N="1.2.0",T="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",c=null;function j(o){return!o||o==="latest"?A:`${O}${o}${U}`}function H(o=N,a){return typeof document>"u"?Promise.resolve():c||(c=new Promise((i,u)=>{let d=`${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=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 G=n.forwardRef(function({data:a,className:i,style:u,endpoint:d,method:s,publishableKey:l,baseUrl:f,submitUrl:m,submitContext:E,locationUrl:p,specUrl:g,lang:R,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:b,hideSections:k,brandColor:S,brandAccent:C,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 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&&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&&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&&p!==void 0&&(e.locationUrl=p)},[p,r]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.specUrl=g)},[g,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&&C!==void 0&&(e.brandAccent=C)},[C,r]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.font=h)},[h,r]),P?n.createElement("div",{role:"alert",className:i,style:u},`Roxy UI script load failed: ${P.message}`):n.createElement("roxy-compound-number",{ref:t,className:i,style:u,suppressHydrationWarning:true,...I})});export{G as RoxyCompoundNumber};
|
|
@@ -36,6 +36,12 @@ export interface RoxyCrystalCardProps 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 RoxyCrystalCard: React.ForwardRefExoticComponent<RoxyCrystalCardProps & 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.2.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,i){return typeof document>"u"?Promise.resolve():d||(d=new Promise((a,u)=>{let c=`${i??B(o)}/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 N=n.forwardRef(function({data:i,className:a,style:u,endpoint:c,method:s,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:g,locationUrl:m,specUrl:p,lang:R,submitLabel:y,remember:w,errorMessage:L,attribution:x,hideReadings:k,hideSections:C,brandColor:S,brandAccent:b,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 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&&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&&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&&k!==void 0&&(e.hideReadings=k)},[k,r]),n.useEffect(()=>{let e=t.current;e&&C!==void 0&&(e.hideSections=C)},[C,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]),P?n.createElement("div",{role:"alert",className:a,style:u},`Roxy UI script load failed: ${P.message}`):n.createElement("roxy-crystal-card",{ref:t,className:a,style:u,suppressHydrationWarning:true,...I})});export{N as RoxyCrystalCard};
|
|
@@ -38,6 +38,12 @@ export interface RoxyCrystalGridProps 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-crystal-grid> 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 U="1.2.0",H="roxyapi-ui-loader",j="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",D="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",N="/dist/cdn",l=null;function X(o){return!o||o==="latest"?j:`${D}${o}${N}`}function I(o=U,c){return typeof document>"u"?Promise.resolve():l||(l=new Promise((i,u)=>{let d=`${c??X(o)}/roxy-ui.js`,r=document.getElementById(H);if(r){r.dataset.loaded==="true"?i():(r.addEventListener("load",()=>i()),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=H,r.src=d,r.async=true,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",i()}),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),l)}var Y=n.forwardRef(function({data:c,className:i,style:u,heading:d,endpoint:r,method:f,publishableKey:E,baseUrl:g,submitUrl:m,submitContext:R,locationUrl:p,specUrl:y,lang:w,submitLabel:L,remember:C,errorMessage:x,attribution:k,hideReadings:h,hideSections:v,brandColor:S,brandAccent:b,font:P,onRoxySymbolSelect:T,..._},$){let t=n.useRef(null);n.useImperativeHandle($,()=>t.current,[]);let[s,M]=n.useState(false),[B,A]=n.useState(null);return n.useEffect(()=>{let e=true;return I().then(()=>{e&&M(true)}).catch(a=>{e&&A(a instanceof Error?a:new Error(String(a)))}),()=>{e=false}},[]),n.useEffect(()=>{let e=t.current;e&&c!==void 0&&(e.data=c)},[c,s]),n.useEffect(()=>{let e=t.current;e&&d!==void 0&&(e.heading=d)},[d,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.endpoint=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.method=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.publishableKey=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.baseUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitUrl=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.submitContext=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.locationUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.specUrl=y)},[y,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&&C!==void 0&&(e.remember=C)},[C,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.errorMessage=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.attribution=k)},[k,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.hideReadings=h)},[h,s]),n.useEffect(()=>{let e=t.current;e&&v!==void 0&&(e.hideSections=v)},[v,s]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.brandColor=S)},[S,s]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.brandAccent=b)},[b,s]),n.useEffect(()=>{let e=t.current;e&&P!==void 0&&(e.font=P)},[P,s]),n.useEffect(()=>{let e=t.current,a=T;if(!e||!a)return;let G=O=>a(O);return e.addEventListener("roxy-symbol-select",G),()=>e.removeEventListener("roxy-symbol-select",G)},[T,s]),B?n.createElement("div",{role:"alert",className:i,style:u},`Roxy UI script load failed: ${B.message}`):n.createElement("roxy-crystal-grid",{ref:t,className:i,style:u,suppressHydrationWarning:true,..._})});export{Y as RoxyCrystalGrid};
|
|
@@ -38,6 +38,12 @@ export interface RoxyDashaTimelineProps 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 RoxyDashaTimeline: React.ForwardRefExoticComponent<RoxyDashaTimelineProps & 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.2.0",G="roxyapi-ui-loader",$="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(a){return!a||a==="latest"?$:`${A}${a}${O}`}function C(a=_,i){return typeof document>"u"?Promise.resolve():d||(d=new Promise((o,u)=>{let c=`${i??U(a)}/roxy-ui.js`,r=document.getElementById(G);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=G,r.src=c,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)}),d)}var X=n.forwardRef(function({data:i,className:o,style:u,period:c,endpoint:r,method:l,publishableKey:f,baseUrl:m,submitUrl:p,submitContext:E,locationUrl:R,specUrl:g,lang:h,submitLabel:w,remember:y,errorMessage:k,attribution:L,hideReadings:x,hideSections:S,brandColor:b,brandAccent:P,font:T,...H},M){let t=n.useRef(null);n.useImperativeHandle(M,()=>t.current,[]);let[s,j]=n.useState(false),[v,I]=n.useState(null);return n.useEffect(()=>{let e=true;return C().then(()=>{e&&j(true)}).catch(D=>{e&&I(D instanceof Error?D:new Error(String(D)))}),()=>{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.period=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&&m!==void 0&&(e.baseUrl=m)},[m,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&&R!==void 0&&(e.locationUrl=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.specUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.lang=h)},[h,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&&k!==void 0&&(e.errorMessage=k)},[k,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&&S!==void 0&&(e.hideSections=S)},[S,s]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.brandColor=b)},[b,s]),n.useEffect(()=>{let e=t.current;e&&P!==void 0&&(e.brandAccent=P)},[P,s]),n.useEffect(()=>{let e=t.current;e&&T!==void 0&&(e.font=T)},[T,s]),v?n.createElement("div",{role:"alert",className:o,style:u},`Roxy UI script load failed: ${v.message}`):n.createElement("roxy-dasha-timeline",{ref:t,className:o,style:u,suppressHydrationWarning:true,...H})});export{X as RoxyDashaTimeline};
|
|
@@ -35,6 +35,12 @@ export interface RoxyDataProps extends ElementAttrs {
|
|
|
35
35
|
hideReadings?: boolean;
|
|
36
36
|
/** 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. */
|
|
37
37
|
hideSections?: string;
|
|
38
|
+
/** Brand colour as `#rgb` or `#rrggbb`, painted as `--roxy-primary` on this component. Any other value is ignored. */
|
|
39
|
+
brandColor?: string;
|
|
40
|
+
/** Brand accent as `#rgb` or `#rrggbb`, painted as `--roxy-accent` with its ink and focus ring re-derived. Any other value is ignored. */
|
|
41
|
+
brandAccent?: string;
|
|
42
|
+
/** 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. */
|
|
43
|
+
font?: 'fraunces-jost' | 'jost' | 'geist' | 'system';
|
|
38
44
|
}
|
|
39
45
|
export declare const RoxyData: React.ForwardRefExoticComponent<RoxyDataProps & React.RefAttributes<HTMLElement | null>>;
|
|
40
46
|
export {};
|
package/dist/components/data.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import*as n from"react";var
|
|
1
|
+
"use client";import*as n from"react";var A="1.2.0",H="roxyapi-ui-loader",O="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",D="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",U="/dist/cdn",d=null;function j(a){return!a||a==="latest"?O:`${D}${a}${U}`}function C(a=A,i){return typeof document>"u"?Promise.resolve():d||(d=new Promise((o,u)=>{let c=`${i??j(a)}/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:i,className:o,style:u,endpoint:c,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:k,hideSections:S,brandColor:b,brandAccent:h,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 C().then(()=>{e&&$(true)}).catch(P=>{e&&M(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&&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&&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&&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&&b!==void 0&&(e.brandColor=b)},[b,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]),T?n.createElement("div",{role:"alert",className:o,style:u},`Roxy UI script load failed: ${T.message}`):n.createElement("roxy-data",{ref:t,className:o,style:u,suppressHydrationWarning:true,...I})});export{X as RoxyData};
|
|
@@ -38,6 +38,12 @@ export interface RoxyDivisionalChartProps 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 RoxyDivisionalChart: React.ForwardRefExoticComponent<RoxyDivisionalChartProps & 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 A="1.2.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 I(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 F=n.forwardRef(function({data:a,className:o,style:u,chartStyle:c,endpoint:s,method:l,publishableKey:f,baseUrl:E,submitUrl:g,submitContext:m,locationUrl:p,specUrl:R,lang:w,submitLabel:y,remember:h,errorMessage:L,attribution:x,hideReadings:k,hideSections:v,brandColor:S,brandAccent:b,font:C,..._},$){let t=n.useRef(null);n.useImperativeHandle($,()=>t.current,[]);let[r,D]=n.useState(false),[T,M]=n.useState(null);return n.useEffect(()=>{let e=true;return I().then(()=>{e&&D(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&&c!==void 0&&(e.chartStyle=c)},[c,r]),n.useEffect(()=>{let e=t.current;e&&s!==void 0&&(e.endpoint=s)},[s,r]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.method=l)},[l,r]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.publishableKey=f)},[f,r]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.baseUrl=E)},[E,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&&p!==void 0&&(e.locationUrl=p)},[p,r]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.specUrl=R)},[R,r]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.lang=w)},[w,r]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.submitLabel=y)},[y,r]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.remember=h)},[h,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&&v!==void 0&&(e.hideSections=v)},[v,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]),T?n.createElement("div",{role:"alert",className:o,style:u},`Roxy UI script load failed: ${T.message}`):n.createElement("roxy-divisional-chart",{ref:t,className:o,style:u,suppressHydrationWarning:true,..._})});export{F as RoxyDivisionalChart};
|
|
@@ -38,6 +38,12 @@ export interface RoxyDoshaCardProps 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 RoxyDoshaCard: React.ForwardRefExoticComponent<RoxyDoshaCardProps & 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.2.0",H="roxyapi-ui-loader",D="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"?D:`${U}${a}${j}`}function M(a=O,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((o,d)=>{let u=`${i??B(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=u,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)}),c)}var F=n.forwardRef(function({data:i,className:o,style:d,type:u,endpoint:r,method:l,publishableKey:f,baseUrl:E,submitUrl:g,submitContext:p,locationUrl:m,specUrl:R,lang:w,submitLabel:y,remember:k,errorMessage:L,attribution:x,hideReadings:h,hideSections:S,brandColor:b,brandAccent:v,font:P,...I},_){let t=n.useRef(null);n.useImperativeHandle(_,()=>t.current,[]);let[s,$]=n.useState(false),[T,A]=n.useState(null);return n.useEffect(()=>{let e=true;return M().then(()=>{e&&$(true)}).catch(C=>{e&&A(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&&u!==void 0&&(e.type=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&&m!==void 0&&(e.locationUrl=m)},[m,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&&k!==void 0&&(e.remember=k)},[k,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&&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&&b!==void 0&&(e.brandColor=b)},[b,s]),n.useEffect(()=>{let e=t.current;e&&v!==void 0&&(e.brandAccent=v)},[v,s]),n.useEffect(()=>{let e=t.current;e&&P!==void 0&&(e.font=P)},[P,s]),T?n.createElement("div",{role:"alert",className:o,style:d},`Roxy UI script load failed: ${T.message}`):n.createElement("roxy-dosha-card",{ref:t,className:o,style:d,suppressHydrationWarning:true,...I})});export{F as RoxyDoshaCard};
|
|
@@ -36,6 +36,12 @@ export interface RoxyDoshaConstitutionProps 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 RoxyDoshaConstitution: React.ForwardRefExoticComponent<RoxyDoshaConstitutionProps & 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.2.0",T="roxyapi-ui-loader",O="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",D="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",U="/dist/cdn",d=null;function j(o){return!o||o==="latest"?O:`${D}${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`,r=document.getElementById(T);if(r){r.dataset.loaded==="true"?i():(r.addEventListener("load",()=>i()),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=T,r.src=c,r.async=true,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",i()}),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),d)}var X=n.forwardRef(function({data:a,className:i,style:u,endpoint:c,method:r,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:h,brandColor:S,brandAccent:C,font:b,...A},I){let t=n.useRef(null);n.useImperativeHandle(I,()=>t.current,[]);let[s,_]=n.useState(false),[P,$]=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&&a!==void 0&&(e.data=a)},[a,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&&E!==void 0&&(e.submitUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.submitContext=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.locationUrl=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.specUrl=p)},[p,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&&k!==void 0&&(e.hideReadings=k)},[k,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.hideSections=h)},[h,s]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.brandColor=S)},[S,s]),n.useEffect(()=>{let e=t.current;e&&C!==void 0&&(e.brandAccent=C)},[C,s]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.font=b)},[b,s]),P?n.createElement("div",{role:"alert",className:i,style:u},`Roxy UI script load failed: ${P.message}`):n.createElement("roxy-dosha-constitution",{ref:t,className:i,style:u,suppressHydrationWarning:true,...A})});export{X as RoxyDoshaConstitution};
|
|
@@ -36,6 +36,12 @@ export interface RoxyDreamCardProps 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 RoxyDreamCard: React.ForwardRefExoticComponent<RoxyDreamCardProps & 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.2.0",T="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",c=null;function j(o){return!o||o==="latest"?A:`${O}${o}${U}`}function H(o=M,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((a,u)=>{let d=`${i??j(o)}/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=d,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)}),c)}var N=n.forwardRef(function({data:i,className:a,style:u,endpoint:d,method:s,publishableKey:l,baseUrl:f,submitUrl:m,submitContext:E,locationUrl:g,specUrl:p,lang:R,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:k,hideSections:S,brandColor:b,brandAccent:h,font:v,...I},_){let t=n.useRef(null);n.useImperativeHandle(_,()=>t.current,[]);let[r,$]=n.useState(false),[C,D]=n.useState(null);return n.useEffect(()=>{let e=true;return H().then(()=>{e&&$(true)}).catch(P=>{e&&D(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&&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&&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&&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&&b!==void 0&&(e.brandColor=b)},[b,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]),C?n.createElement("div",{role:"alert",className:a,style:u},`Roxy UI script load failed: ${C.message}`):n.createElement("roxy-dream-card",{ref:t,className:a,style:u,suppressHydrationWarning:true,...I})});export{N as RoxyDreamCard};
|
|
@@ -36,6 +36,12 @@ export interface RoxyDreamSearchProps 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
|
/** Fires when the underlying <roxy-dream-search> dispatches `roxy-symbol-select`. */
|
|
40
46
|
onRoxySymbolSelect?: (event: CustomEvent<{
|
|
41
47
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import*as n from"react";var
|
|
1
|
+
"use client";import*as n from"react";var U="1.2.0",I="roxyapi-ui-loader",j="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",B="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",N="/dist/cdn",l=null;function X(o){return!o||o==="latest"?j:`${B}${o}${N}`}function _(o=U,c){return typeof document>"u"?Promise.resolve():l||(l=new Promise((i,u)=>{let d=`${c??X(o)}/roxy-ui.js`,s=document.getElementById(I);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=I,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 G=n.forwardRef(function({data:c,className:i,style:u,endpoint:d,method:s,publishableKey:f,baseUrl:m,submitUrl:E,submitContext:g,locationUrl:p,specUrl:R,lang:y,submitLabel:w,remember:L,errorMessage:x,attribution:S,hideReadings:h,hideSections:v,brandColor:k,brandAccent:b,font:P,onRoxySymbolSelect:T,...$},D){let t=n.useRef(null);n.useImperativeHandle(D,()=>t.current,[]);let[r,M]=n.useState(false),[C,A]=n.useState(null);return n.useEffect(()=>{let e=true;return _().then(()=>{e&&M(true)}).catch(a=>{e&&A(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.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&&f!==void 0&&(e.publishableKey=f)},[f,r]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.baseUrl=m)},[m,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&&p!==void 0&&(e.locationUrl=p)},[p,r]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.specUrl=R)},[R,r]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.lang=y)},[y,r]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,r]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.remember=L)},[L,r]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.errorMessage=x)},[x,r]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.attribution=S)},[S,r]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.hideReadings=h)},[h,r]),n.useEffect(()=>{let e=t.current;e&&v!==void 0&&(e.hideSections=v)},[v,r]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.brandColor=k)},[k,r]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.brandAccent=b)},[b,r]),n.useEffect(()=>{let e=t.current;e&&P!==void 0&&(e.font=P)},[P,r]),n.useEffect(()=>{let e=t.current,a=T;if(!e||!a)return;let H=O=>a(O);return e.addEventListener("roxy-symbol-select",H),()=>e.removeEventListener("roxy-symbol-select",H)},[T,r]),C?n.createElement("div",{role:"alert",className:i,style:u},`Roxy UI script load failed: ${C.message}`):n.createElement("roxy-dream-search",{ref:t,className:i,style:u,suppressHydrationWarning:true,...$})});export{G as RoxyDreamSearch};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import*as t from"react";var k="1.
|
|
1
|
+
"use client";import*as t from"react";var k="1.2.0",w="roxyapi-ui-loader",H="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",b="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",I="/dist/cdn",E=null;function _(a){return!a||a==="latest"?H:`${b}${a}${I}`}function S(a=k,f){return typeof document>"u"?Promise.resolve():E||(E=new Promise((d,u)=>{let c=`${f??_(a)}/roxy-ui.js`,n=document.getElementById(w);if(n){n.dataset.loaded==="true"?d():(n.addEventListener("load",()=>d()),n.addEventListener("error",()=>u(new Error("roxy-ui load failed"))));return}n=document.createElement("script"),n.id=w,n.src=c,n.async=true,n.crossOrigin="anonymous",n.addEventListener("load",()=>{n.dataset.loaded="true",d()}),n.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(n)}),E)}var O=t.forwardRef(function({className:f,style:d,endpoint:u,method:c,specUrl:n,submitLabel:m,publishableKey:p,locationUrl:g,initialValues:v,onRoxySubmit:y,onRoxyValidationError:R,onRoxySpecError:L,...h},P){let r=t.useRef(null);t.useImperativeHandle(P,()=>r.current,[]);let[o,C]=t.useState(false),[x,T]=t.useState(null);return t.useEffect(()=>{let e=true;return S().then(()=>{e&&C(true)}).catch(s=>{e&&T(s instanceof Error?s:new Error(String(s)))}),()=>{e=false}},[]),t.useEffect(()=>{let e=r.current;e&&u!==void 0&&(e.endpoint=u)},[u,o]),t.useEffect(()=>{let e=r.current;e&&c!==void 0&&(e.method=c)},[c,o]),t.useEffect(()=>{let e=r.current;e&&n!==void 0&&(e.specUrl=n)},[n,o]),t.useEffect(()=>{let e=r.current;e&&m!==void 0&&(e.submitLabel=m)},[m,o]),t.useEffect(()=>{let e=r.current;e&&p!==void 0&&(e.publishableKey=p)},[p,o]),t.useEffect(()=>{let e=r.current;e&&g!==void 0&&(e.locationUrl=g)},[g,o]),t.useEffect(()=>{let e=r.current;e&&v!==void 0&&(e.initialValues=v)},[v,o]),t.useEffect(()=>{let e=r.current,s=y;if(!e||!s)return;let i=l=>s(l);return e.addEventListener("roxy-submit",i),()=>e.removeEventListener("roxy-submit",i)},[y,o]),t.useEffect(()=>{let e=r.current,s=R;if(!e||!s)return;let i=l=>s(l);return e.addEventListener("roxy-validation-error",i),()=>e.removeEventListener("roxy-validation-error",i)},[R,o]),t.useEffect(()=>{let e=r.current,s=L;if(!e||!s)return;let i=l=>s(l);return e.addEventListener("roxy-spec-error",i),()=>e.removeEventListener("roxy-spec-error",i)},[L,o]),x?t.createElement("div",{role:"alert",className:f,style:d},`Roxy UI script load failed: ${x.message}`):t.createElement("roxy-endpoint-form",{ref:r,className:f,style:d,suppressHydrationWarning:true,...h})});export{O as RoxyEndpointForm};
|
|
@@ -38,6 +38,12 @@ export interface RoxyEphemerisTableProps 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 RoxyEphemerisTable: React.ForwardRefExoticComponent<RoxyEphemerisTableProps & 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.2.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 G(i){return!i||i==="latest"?U:`${j}${i}${B}`}function C(i=O,a){return typeof document>"u"?Promise.resolve():d||(d=new Promise((o,u)=>{let c=`${a??G(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,heading:c,endpoint:s,method:l,publishableKey:f,baseUrl:E,submitUrl:m,submitContext:p,locationUrl:g,specUrl:R,lang:w,submitLabel:y,remember:h,errorMessage:L,attribution:x,hideReadings:k,hideSections:b,brandColor:T,brandAccent:S,font:v,...I},_){let t=n.useRef(null);n.useImperativeHandle(_,()=>t.current,[]);let[r,$]=n.useState(false),[M,A]=n.useState(null);return n.useEffect(()=>{let e=true;return C().then(()=>{e&&$(true)}).catch(P=>{e&&A(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.heading=c)},[c,r]),n.useEffect(()=>{let e=t.current;e&&s!==void 0&&(e.endpoint=s)},[s,r]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.method=l)},[l,r]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.publishableKey=f)},[f,r]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.baseUrl=E)},[E,r]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitUrl=m)},[m,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&&R!==void 0&&(e.specUrl=R)},[R,r]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.lang=w)},[w,r]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.submitLabel=y)},[y,r]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.remember=h)},[h,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&&b!==void 0&&(e.hideSections=b)},[b,r]),n.useEffect(()=>{let e=t.current;e&&T!==void 0&&(e.brandColor=T)},[T,r]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.brandAccent=S)},[S,r]),n.useEffect(()=>{let e=t.current;e&&v!==void 0&&(e.font=v)},[v,r]),M?n.createElement("div",{role:"alert",className:o,style:u},`Roxy UI script load failed: ${M.message}`):n.createElement("roxy-ephemeris-table",{ref:t,className:o,style:u,suppressHydrationWarning:true,...I})});export{X as RoxyEphemerisTable};
|