@roxyapi/ui-react 0.1.3 → 0.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/README.md +9 -3
- package/dist/components/ashtakavarga-grid.d.ts +12 -0
- package/dist/components/ashtakavarga-grid.d.ts.map +1 -0
- package/dist/components/ashtakavarga-grid.js +91 -0
- package/dist/components/ashtakavarga-grid.js.map +7 -0
- package/dist/components/biorhythm-chart.js.map +1 -1
- package/dist/components/choghadiya-grid.d.ts +12 -0
- package/dist/components/choghadiya-grid.d.ts.map +1 -0
- package/dist/components/choghadiya-grid.js +91 -0
- package/dist/components/choghadiya-grid.js.map +7 -0
- package/dist/components/compatibility-card.js.map +1 -1
- package/dist/components/dasha-timeline.js.map +1 -1
- package/dist/components/data.d.ts +1 -3
- package/dist/components/data.d.ts.map +1 -1
- package/dist/components/data.js +1 -7
- package/dist/components/data.js.map +2 -2
- package/dist/components/divisional-chart.d.ts +12 -0
- package/dist/components/divisional-chart.d.ts.map +1 -0
- package/dist/components/divisional-chart.js +91 -0
- package/dist/components/divisional-chart.js.map +7 -0
- package/dist/components/dosha-card.js.map +1 -1
- package/dist/components/endpoint-form.d.ts +1 -3
- package/dist/components/endpoint-form.d.ts.map +1 -1
- package/dist/components/endpoint-form.js +1 -7
- package/dist/components/endpoint-form.js.map +2 -2
- package/dist/components/guna-milan.js.map +1 -1
- package/dist/components/hexagram.js.map +1 -1
- package/dist/components/horoscope-card.js.map +1 -1
- package/dist/components/kp-planets-table.js.map +1 -1
- package/dist/components/location-search.d.ts +1 -3
- package/dist/components/location-search.d.ts.map +1 -1
- package/dist/components/location-search.js +1 -7
- package/dist/components/location-search.js.map +2 -2
- package/dist/components/moon-phase.js.map +1 -1
- package/dist/components/natal-chart.js.map +1 -1
- package/dist/components/numerology-card.js.map +1 -1
- package/dist/components/panchang-table.js.map +1 -1
- package/dist/components/shadbala-table.d.ts +12 -0
- package/dist/components/shadbala-table.d.ts.map +1 -0
- package/dist/components/shadbala-table.js +91 -0
- package/dist/components/shadbala-table.js.map +7 -0
- package/dist/components/synastry-chart.js.map +1 -1
- package/dist/components/tarot-card.js.map +1 -1
- package/dist/components/tarot-spread.js.map +1 -1
- package/dist/components/transits-table.d.ts +12 -0
- package/dist/components/transits-table.d.ts.map +1 -0
- package/dist/components/transits-table.js +91 -0
- package/dist/components/transits-table.js.map +7 -0
- package/dist/components/vedic-kundli.js.map +1 -1
- package/dist/components/yoga-list.d.ts +14 -0
- package/dist/components/yoga-list.d.ts.map +1 -0
- package/dist/components/yoga-list.js +91 -0
- package/dist/components/yoga-list.js.map +7 -0
- package/dist/index.cjs +327 -63
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +327 -63
- package/dist/index.js.map +4 -4
- package/dist/load-ui.d.ts +1 -1
- package/dist/load-ui.js +1 -1
- package/dist/load-ui.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37,7 +37,7 @@ function ensureScriptLoaded(version = "latest") {
|
|
|
37
37
|
});
|
|
38
38
|
return loaded;
|
|
39
39
|
}
|
|
40
|
-
var ROXY_UI_VERSION = "0.
|
|
40
|
+
var ROXY_UI_VERSION = "0.2.0";
|
|
41
41
|
|
|
42
42
|
// packages/ui-react/src/components/natal-chart.tsx
|
|
43
43
|
import * as React from "react";
|
|
@@ -545,10 +545,10 @@ var RoxyKpPlanetsTable = React11.forwardRef(
|
|
|
545
545
|
}
|
|
546
546
|
);
|
|
547
547
|
|
|
548
|
-
// packages/ui-react/src/components/
|
|
548
|
+
// packages/ui-react/src/components/transits-table.tsx
|
|
549
549
|
import * as React12 from "react";
|
|
550
|
-
var
|
|
551
|
-
function
|
|
550
|
+
var RoxyTransitsTable = React12.forwardRef(
|
|
551
|
+
function RoxyTransitsTable2({ data, className, style, ...rest }, ref) {
|
|
552
552
|
const internal = React12.useRef(null);
|
|
553
553
|
React12.useImperativeHandle(
|
|
554
554
|
ref,
|
|
@@ -582,7 +582,7 @@ var RoxyNumerologyCard = React12.forwardRef(
|
|
|
582
582
|
`Roxy UI script load failed: ${error.message}`
|
|
583
583
|
);
|
|
584
584
|
}
|
|
585
|
-
return React12.createElement("roxy-
|
|
585
|
+
return React12.createElement("roxy-transits-table", {
|
|
586
586
|
ref: internal,
|
|
587
587
|
className,
|
|
588
588
|
style,
|
|
@@ -591,10 +591,10 @@ var RoxyNumerologyCard = React12.forwardRef(
|
|
|
591
591
|
}
|
|
592
592
|
);
|
|
593
593
|
|
|
594
|
-
// packages/ui-react/src/components/
|
|
594
|
+
// packages/ui-react/src/components/divisional-chart.tsx
|
|
595
595
|
import * as React13 from "react";
|
|
596
|
-
var
|
|
597
|
-
function
|
|
596
|
+
var RoxyDivisionalChart = React13.forwardRef(
|
|
597
|
+
function RoxyDivisionalChart2({ data, className, style, ...rest }, ref) {
|
|
598
598
|
const internal = React13.useRef(null);
|
|
599
599
|
React13.useImperativeHandle(
|
|
600
600
|
ref,
|
|
@@ -628,7 +628,7 @@ var RoxyTarotCard = React13.forwardRef(
|
|
|
628
628
|
`Roxy UI script load failed: ${error.message}`
|
|
629
629
|
);
|
|
630
630
|
}
|
|
631
|
-
return React13.createElement("roxy-
|
|
631
|
+
return React13.createElement("roxy-divisional-chart", {
|
|
632
632
|
ref: internal,
|
|
633
633
|
className,
|
|
634
634
|
style,
|
|
@@ -637,10 +637,10 @@ var RoxyTarotCard = React13.forwardRef(
|
|
|
637
637
|
}
|
|
638
638
|
);
|
|
639
639
|
|
|
640
|
-
// packages/ui-react/src/components/
|
|
640
|
+
// packages/ui-react/src/components/ashtakavarga-grid.tsx
|
|
641
641
|
import * as React14 from "react";
|
|
642
|
-
var
|
|
643
|
-
function
|
|
642
|
+
var RoxyAshtakavargaGrid = React14.forwardRef(
|
|
643
|
+
function RoxyAshtakavargaGrid2({ data, className, style, ...rest }, ref) {
|
|
644
644
|
const internal = React14.useRef(null);
|
|
645
645
|
React14.useImperativeHandle(
|
|
646
646
|
ref,
|
|
@@ -674,7 +674,7 @@ var RoxyTarotSpread = React14.forwardRef(
|
|
|
674
674
|
`Roxy UI script load failed: ${error.message}`
|
|
675
675
|
);
|
|
676
676
|
}
|
|
677
|
-
return React14.createElement("roxy-
|
|
677
|
+
return React14.createElement("roxy-ashtakavarga-grid", {
|
|
678
678
|
ref: internal,
|
|
679
679
|
className,
|
|
680
680
|
style,
|
|
@@ -683,10 +683,10 @@ var RoxyTarotSpread = React14.forwardRef(
|
|
|
683
683
|
}
|
|
684
684
|
);
|
|
685
685
|
|
|
686
|
-
// packages/ui-react/src/components/
|
|
686
|
+
// packages/ui-react/src/components/shadbala-table.tsx
|
|
687
687
|
import * as React15 from "react";
|
|
688
|
-
var
|
|
689
|
-
function
|
|
688
|
+
var RoxyShadbalaTable = React15.forwardRef(
|
|
689
|
+
function RoxyShadbalaTable2({ data, className, style, ...rest }, ref) {
|
|
690
690
|
const internal = React15.useRef(null);
|
|
691
691
|
React15.useImperativeHandle(
|
|
692
692
|
ref,
|
|
@@ -720,7 +720,7 @@ var RoxyBiorhythmChart = React15.forwardRef(
|
|
|
720
720
|
`Roxy UI script load failed: ${error.message}`
|
|
721
721
|
);
|
|
722
722
|
}
|
|
723
|
-
return React15.createElement("roxy-
|
|
723
|
+
return React15.createElement("roxy-shadbala-table", {
|
|
724
724
|
ref: internal,
|
|
725
725
|
className,
|
|
726
726
|
style,
|
|
@@ -729,10 +729,10 @@ var RoxyBiorhythmChart = React15.forwardRef(
|
|
|
729
729
|
}
|
|
730
730
|
);
|
|
731
731
|
|
|
732
|
-
// packages/ui-react/src/components/
|
|
732
|
+
// packages/ui-react/src/components/yoga-list.tsx
|
|
733
733
|
import * as React16 from "react";
|
|
734
|
-
var
|
|
735
|
-
function
|
|
734
|
+
var RoxyYogaList = React16.forwardRef(
|
|
735
|
+
function RoxyYogaList2({ data, className, style, ...rest }, ref) {
|
|
736
736
|
const internal = React16.useRef(null);
|
|
737
737
|
React16.useImperativeHandle(
|
|
738
738
|
ref,
|
|
@@ -766,7 +766,7 @@ var RoxyHexagram = React16.forwardRef(
|
|
|
766
766
|
`Roxy UI script load failed: ${error.message}`
|
|
767
767
|
);
|
|
768
768
|
}
|
|
769
|
-
return React16.createElement("roxy-
|
|
769
|
+
return React16.createElement("roxy-yoga-list", {
|
|
770
770
|
ref: internal,
|
|
771
771
|
className,
|
|
772
772
|
style,
|
|
@@ -775,10 +775,10 @@ var RoxyHexagram = React16.forwardRef(
|
|
|
775
775
|
}
|
|
776
776
|
);
|
|
777
777
|
|
|
778
|
-
// packages/ui-react/src/components/
|
|
778
|
+
// packages/ui-react/src/components/choghadiya-grid.tsx
|
|
779
779
|
import * as React17 from "react";
|
|
780
|
-
var
|
|
781
|
-
function
|
|
780
|
+
var RoxyChoghadiyaGrid = React17.forwardRef(
|
|
781
|
+
function RoxyChoghadiyaGrid2({ data, className, style, ...rest }, ref) {
|
|
782
782
|
const internal = React17.useRef(null);
|
|
783
783
|
React17.useImperativeHandle(
|
|
784
784
|
ref,
|
|
@@ -805,7 +805,277 @@ var RoxyEndpointForm = React17.forwardRef(
|
|
|
805
805
|
el.data = data;
|
|
806
806
|
}
|
|
807
807
|
}, [data, loaded2]);
|
|
808
|
-
|
|
808
|
+
if (error) {
|
|
809
|
+
return React17.createElement(
|
|
810
|
+
"div",
|
|
811
|
+
{ role: "alert", className, style },
|
|
812
|
+
`Roxy UI script load failed: ${error.message}`
|
|
813
|
+
);
|
|
814
|
+
}
|
|
815
|
+
return React17.createElement("roxy-choghadiya-grid", {
|
|
816
|
+
ref: internal,
|
|
817
|
+
className,
|
|
818
|
+
style,
|
|
819
|
+
...rest
|
|
820
|
+
});
|
|
821
|
+
}
|
|
822
|
+
);
|
|
823
|
+
|
|
824
|
+
// packages/ui-react/src/components/numerology-card.tsx
|
|
825
|
+
import * as React18 from "react";
|
|
826
|
+
var RoxyNumerologyCard = React18.forwardRef(
|
|
827
|
+
function RoxyNumerologyCard2({ data, className, style, ...rest }, ref) {
|
|
828
|
+
const internal = React18.useRef(null);
|
|
829
|
+
React18.useImperativeHandle(
|
|
830
|
+
ref,
|
|
831
|
+
() => internal.current,
|
|
832
|
+
[]
|
|
833
|
+
);
|
|
834
|
+
const [loaded2, setLoaded] = React18.useState(false);
|
|
835
|
+
const [error, setError] = React18.useState(null);
|
|
836
|
+
React18.useEffect(() => {
|
|
837
|
+
let active = true;
|
|
838
|
+
ensureScriptLoaded().then(() => {
|
|
839
|
+
if (active) setLoaded(true);
|
|
840
|
+
}).catch((err) => {
|
|
841
|
+
if (!active) return;
|
|
842
|
+
setError(err instanceof Error ? err : new Error(String(err)));
|
|
843
|
+
});
|
|
844
|
+
return () => {
|
|
845
|
+
active = false;
|
|
846
|
+
};
|
|
847
|
+
}, []);
|
|
848
|
+
React18.useEffect(() => {
|
|
849
|
+
const el = internal.current;
|
|
850
|
+
if (el && data !== void 0) {
|
|
851
|
+
el.data = data;
|
|
852
|
+
}
|
|
853
|
+
}, [data, loaded2]);
|
|
854
|
+
if (error) {
|
|
855
|
+
return React18.createElement(
|
|
856
|
+
"div",
|
|
857
|
+
{ role: "alert", className, style },
|
|
858
|
+
`Roxy UI script load failed: ${error.message}`
|
|
859
|
+
);
|
|
860
|
+
}
|
|
861
|
+
return React18.createElement("roxy-numerology-card", {
|
|
862
|
+
ref: internal,
|
|
863
|
+
className,
|
|
864
|
+
style,
|
|
865
|
+
...rest
|
|
866
|
+
});
|
|
867
|
+
}
|
|
868
|
+
);
|
|
869
|
+
|
|
870
|
+
// packages/ui-react/src/components/tarot-card.tsx
|
|
871
|
+
import * as React19 from "react";
|
|
872
|
+
var RoxyTarotCard = React19.forwardRef(
|
|
873
|
+
function RoxyTarotCard2({ data, className, style, ...rest }, ref) {
|
|
874
|
+
const internal = React19.useRef(null);
|
|
875
|
+
React19.useImperativeHandle(
|
|
876
|
+
ref,
|
|
877
|
+
() => internal.current,
|
|
878
|
+
[]
|
|
879
|
+
);
|
|
880
|
+
const [loaded2, setLoaded] = React19.useState(false);
|
|
881
|
+
const [error, setError] = React19.useState(null);
|
|
882
|
+
React19.useEffect(() => {
|
|
883
|
+
let active = true;
|
|
884
|
+
ensureScriptLoaded().then(() => {
|
|
885
|
+
if (active) setLoaded(true);
|
|
886
|
+
}).catch((err) => {
|
|
887
|
+
if (!active) return;
|
|
888
|
+
setError(err instanceof Error ? err : new Error(String(err)));
|
|
889
|
+
});
|
|
890
|
+
return () => {
|
|
891
|
+
active = false;
|
|
892
|
+
};
|
|
893
|
+
}, []);
|
|
894
|
+
React19.useEffect(() => {
|
|
895
|
+
const el = internal.current;
|
|
896
|
+
if (el && data !== void 0) {
|
|
897
|
+
el.data = data;
|
|
898
|
+
}
|
|
899
|
+
}, [data, loaded2]);
|
|
900
|
+
if (error) {
|
|
901
|
+
return React19.createElement(
|
|
902
|
+
"div",
|
|
903
|
+
{ role: "alert", className, style },
|
|
904
|
+
`Roxy UI script load failed: ${error.message}`
|
|
905
|
+
);
|
|
906
|
+
}
|
|
907
|
+
return React19.createElement("roxy-tarot-card", {
|
|
908
|
+
ref: internal,
|
|
909
|
+
className,
|
|
910
|
+
style,
|
|
911
|
+
...rest
|
|
912
|
+
});
|
|
913
|
+
}
|
|
914
|
+
);
|
|
915
|
+
|
|
916
|
+
// packages/ui-react/src/components/tarot-spread.tsx
|
|
917
|
+
import * as React20 from "react";
|
|
918
|
+
var RoxyTarotSpread = React20.forwardRef(
|
|
919
|
+
function RoxyTarotSpread2({ data, className, style, ...rest }, ref) {
|
|
920
|
+
const internal = React20.useRef(null);
|
|
921
|
+
React20.useImperativeHandle(
|
|
922
|
+
ref,
|
|
923
|
+
() => internal.current,
|
|
924
|
+
[]
|
|
925
|
+
);
|
|
926
|
+
const [loaded2, setLoaded] = React20.useState(false);
|
|
927
|
+
const [error, setError] = React20.useState(null);
|
|
928
|
+
React20.useEffect(() => {
|
|
929
|
+
let active = true;
|
|
930
|
+
ensureScriptLoaded().then(() => {
|
|
931
|
+
if (active) setLoaded(true);
|
|
932
|
+
}).catch((err) => {
|
|
933
|
+
if (!active) return;
|
|
934
|
+
setError(err instanceof Error ? err : new Error(String(err)));
|
|
935
|
+
});
|
|
936
|
+
return () => {
|
|
937
|
+
active = false;
|
|
938
|
+
};
|
|
939
|
+
}, []);
|
|
940
|
+
React20.useEffect(() => {
|
|
941
|
+
const el = internal.current;
|
|
942
|
+
if (el && data !== void 0) {
|
|
943
|
+
el.data = data;
|
|
944
|
+
}
|
|
945
|
+
}, [data, loaded2]);
|
|
946
|
+
if (error) {
|
|
947
|
+
return React20.createElement(
|
|
948
|
+
"div",
|
|
949
|
+
{ role: "alert", className, style },
|
|
950
|
+
`Roxy UI script load failed: ${error.message}`
|
|
951
|
+
);
|
|
952
|
+
}
|
|
953
|
+
return React20.createElement("roxy-tarot-spread", {
|
|
954
|
+
ref: internal,
|
|
955
|
+
className,
|
|
956
|
+
style,
|
|
957
|
+
...rest
|
|
958
|
+
});
|
|
959
|
+
}
|
|
960
|
+
);
|
|
961
|
+
|
|
962
|
+
// packages/ui-react/src/components/biorhythm-chart.tsx
|
|
963
|
+
import * as React21 from "react";
|
|
964
|
+
var RoxyBiorhythmChart = React21.forwardRef(
|
|
965
|
+
function RoxyBiorhythmChart2({ data, className, style, ...rest }, ref) {
|
|
966
|
+
const internal = React21.useRef(null);
|
|
967
|
+
React21.useImperativeHandle(
|
|
968
|
+
ref,
|
|
969
|
+
() => internal.current,
|
|
970
|
+
[]
|
|
971
|
+
);
|
|
972
|
+
const [loaded2, setLoaded] = React21.useState(false);
|
|
973
|
+
const [error, setError] = React21.useState(null);
|
|
974
|
+
React21.useEffect(() => {
|
|
975
|
+
let active = true;
|
|
976
|
+
ensureScriptLoaded().then(() => {
|
|
977
|
+
if (active) setLoaded(true);
|
|
978
|
+
}).catch((err) => {
|
|
979
|
+
if (!active) return;
|
|
980
|
+
setError(err instanceof Error ? err : new Error(String(err)));
|
|
981
|
+
});
|
|
982
|
+
return () => {
|
|
983
|
+
active = false;
|
|
984
|
+
};
|
|
985
|
+
}, []);
|
|
986
|
+
React21.useEffect(() => {
|
|
987
|
+
const el = internal.current;
|
|
988
|
+
if (el && data !== void 0) {
|
|
989
|
+
el.data = data;
|
|
990
|
+
}
|
|
991
|
+
}, [data, loaded2]);
|
|
992
|
+
if (error) {
|
|
993
|
+
return React21.createElement(
|
|
994
|
+
"div",
|
|
995
|
+
{ role: "alert", className, style },
|
|
996
|
+
`Roxy UI script load failed: ${error.message}`
|
|
997
|
+
);
|
|
998
|
+
}
|
|
999
|
+
return React21.createElement("roxy-biorhythm-chart", {
|
|
1000
|
+
ref: internal,
|
|
1001
|
+
className,
|
|
1002
|
+
style,
|
|
1003
|
+
...rest
|
|
1004
|
+
});
|
|
1005
|
+
}
|
|
1006
|
+
);
|
|
1007
|
+
|
|
1008
|
+
// packages/ui-react/src/components/hexagram.tsx
|
|
1009
|
+
import * as React22 from "react";
|
|
1010
|
+
var RoxyHexagram = React22.forwardRef(
|
|
1011
|
+
function RoxyHexagram2({ data, className, style, ...rest }, ref) {
|
|
1012
|
+
const internal = React22.useRef(null);
|
|
1013
|
+
React22.useImperativeHandle(
|
|
1014
|
+
ref,
|
|
1015
|
+
() => internal.current,
|
|
1016
|
+
[]
|
|
1017
|
+
);
|
|
1018
|
+
const [loaded2, setLoaded] = React22.useState(false);
|
|
1019
|
+
const [error, setError] = React22.useState(null);
|
|
1020
|
+
React22.useEffect(() => {
|
|
1021
|
+
let active = true;
|
|
1022
|
+
ensureScriptLoaded().then(() => {
|
|
1023
|
+
if (active) setLoaded(true);
|
|
1024
|
+
}).catch((err) => {
|
|
1025
|
+
if (!active) return;
|
|
1026
|
+
setError(err instanceof Error ? err : new Error(String(err)));
|
|
1027
|
+
});
|
|
1028
|
+
return () => {
|
|
1029
|
+
active = false;
|
|
1030
|
+
};
|
|
1031
|
+
}, []);
|
|
1032
|
+
React22.useEffect(() => {
|
|
1033
|
+
const el = internal.current;
|
|
1034
|
+
if (el && data !== void 0) {
|
|
1035
|
+
el.data = data;
|
|
1036
|
+
}
|
|
1037
|
+
}, [data, loaded2]);
|
|
1038
|
+
if (error) {
|
|
1039
|
+
return React22.createElement(
|
|
1040
|
+
"div",
|
|
1041
|
+
{ role: "alert", className, style },
|
|
1042
|
+
`Roxy UI script load failed: ${error.message}`
|
|
1043
|
+
);
|
|
1044
|
+
}
|
|
1045
|
+
return React22.createElement("roxy-hexagram", {
|
|
1046
|
+
ref: internal,
|
|
1047
|
+
className,
|
|
1048
|
+
style,
|
|
1049
|
+
...rest
|
|
1050
|
+
});
|
|
1051
|
+
}
|
|
1052
|
+
);
|
|
1053
|
+
|
|
1054
|
+
// packages/ui-react/src/components/endpoint-form.tsx
|
|
1055
|
+
import * as React23 from "react";
|
|
1056
|
+
var RoxyEndpointForm = React23.forwardRef(
|
|
1057
|
+
function RoxyEndpointForm2({ className, style, onRoxySubmit, onRoxyValidationError, onRoxySpecError, ...rest }, ref) {
|
|
1058
|
+
const internal = React23.useRef(null);
|
|
1059
|
+
React23.useImperativeHandle(
|
|
1060
|
+
ref,
|
|
1061
|
+
() => internal.current,
|
|
1062
|
+
[]
|
|
1063
|
+
);
|
|
1064
|
+
const [loaded2, setLoaded] = React23.useState(false);
|
|
1065
|
+
const [error, setError] = React23.useState(null);
|
|
1066
|
+
React23.useEffect(() => {
|
|
1067
|
+
let active = true;
|
|
1068
|
+
ensureScriptLoaded().then(() => {
|
|
1069
|
+
if (active) setLoaded(true);
|
|
1070
|
+
}).catch((err) => {
|
|
1071
|
+
if (!active) return;
|
|
1072
|
+
setError(err instanceof Error ? err : new Error(String(err)));
|
|
1073
|
+
});
|
|
1074
|
+
return () => {
|
|
1075
|
+
active = false;
|
|
1076
|
+
};
|
|
1077
|
+
}, []);
|
|
1078
|
+
React23.useEffect(() => {
|
|
809
1079
|
const el = internal.current;
|
|
810
1080
|
const handler = onRoxySubmit;
|
|
811
1081
|
if (!el || !handler) return;
|
|
@@ -813,7 +1083,7 @@ var RoxyEndpointForm = React17.forwardRef(
|
|
|
813
1083
|
el.addEventListener("roxy-submit", listener);
|
|
814
1084
|
return () => el.removeEventListener("roxy-submit", listener);
|
|
815
1085
|
}, [onRoxySubmit, loaded2]);
|
|
816
|
-
|
|
1086
|
+
React23.useEffect(() => {
|
|
817
1087
|
const el = internal.current;
|
|
818
1088
|
const handler = onRoxyValidationError;
|
|
819
1089
|
if (!el || !handler) return;
|
|
@@ -821,7 +1091,7 @@ var RoxyEndpointForm = React17.forwardRef(
|
|
|
821
1091
|
el.addEventListener("roxy-validation-error", listener);
|
|
822
1092
|
return () => el.removeEventListener("roxy-validation-error", listener);
|
|
823
1093
|
}, [onRoxyValidationError, loaded2]);
|
|
824
|
-
|
|
1094
|
+
React23.useEffect(() => {
|
|
825
1095
|
const el = internal.current;
|
|
826
1096
|
const handler = onRoxySpecError;
|
|
827
1097
|
if (!el || !handler) return;
|
|
@@ -830,13 +1100,13 @@ var RoxyEndpointForm = React17.forwardRef(
|
|
|
830
1100
|
return () => el.removeEventListener("roxy-spec-error", listener);
|
|
831
1101
|
}, [onRoxySpecError, loaded2]);
|
|
832
1102
|
if (error) {
|
|
833
|
-
return
|
|
1103
|
+
return React23.createElement(
|
|
834
1104
|
"div",
|
|
835
1105
|
{ role: "alert", className, style },
|
|
836
1106
|
`Roxy UI script load failed: ${error.message}`
|
|
837
1107
|
);
|
|
838
1108
|
}
|
|
839
|
-
return
|
|
1109
|
+
return React23.createElement("roxy-endpoint-form", {
|
|
840
1110
|
ref: internal,
|
|
841
1111
|
className,
|
|
842
1112
|
style,
|
|
@@ -846,18 +1116,18 @@ var RoxyEndpointForm = React17.forwardRef(
|
|
|
846
1116
|
);
|
|
847
1117
|
|
|
848
1118
|
// packages/ui-react/src/components/location-search.tsx
|
|
849
|
-
import * as
|
|
850
|
-
var RoxyLocationSearch =
|
|
851
|
-
function RoxyLocationSearch2({
|
|
852
|
-
const internal =
|
|
853
|
-
|
|
1119
|
+
import * as React24 from "react";
|
|
1120
|
+
var RoxyLocationSearch = React24.forwardRef(
|
|
1121
|
+
function RoxyLocationSearch2({ className, style, onRoxyLocationSelect, onRoxyValidationError, ...rest }, ref) {
|
|
1122
|
+
const internal = React24.useRef(null);
|
|
1123
|
+
React24.useImperativeHandle(
|
|
854
1124
|
ref,
|
|
855
1125
|
() => internal.current,
|
|
856
1126
|
[]
|
|
857
1127
|
);
|
|
858
|
-
const [loaded2, setLoaded] =
|
|
859
|
-
const [error, setError] =
|
|
860
|
-
|
|
1128
|
+
const [loaded2, setLoaded] = React24.useState(false);
|
|
1129
|
+
const [error, setError] = React24.useState(null);
|
|
1130
|
+
React24.useEffect(() => {
|
|
861
1131
|
let active = true;
|
|
862
1132
|
ensureScriptLoaded().then(() => {
|
|
863
1133
|
if (active) setLoaded(true);
|
|
@@ -869,13 +1139,7 @@ var RoxyLocationSearch = React18.forwardRef(
|
|
|
869
1139
|
active = false;
|
|
870
1140
|
};
|
|
871
1141
|
}, []);
|
|
872
|
-
|
|
873
|
-
const el = internal.current;
|
|
874
|
-
if (el && data !== void 0) {
|
|
875
|
-
el.data = data;
|
|
876
|
-
}
|
|
877
|
-
}, [data, loaded2]);
|
|
878
|
-
React18.useEffect(() => {
|
|
1142
|
+
React24.useEffect(() => {
|
|
879
1143
|
const el = internal.current;
|
|
880
1144
|
const handler = onRoxyLocationSelect;
|
|
881
1145
|
if (!el || !handler) return;
|
|
@@ -883,7 +1147,7 @@ var RoxyLocationSearch = React18.forwardRef(
|
|
|
883
1147
|
el.addEventListener("roxy-location-select", listener);
|
|
884
1148
|
return () => el.removeEventListener("roxy-location-select", listener);
|
|
885
1149
|
}, [onRoxyLocationSelect, loaded2]);
|
|
886
|
-
|
|
1150
|
+
React24.useEffect(() => {
|
|
887
1151
|
const el = internal.current;
|
|
888
1152
|
const handler = onRoxyValidationError;
|
|
889
1153
|
if (!el || !handler) return;
|
|
@@ -892,13 +1156,13 @@ var RoxyLocationSearch = React18.forwardRef(
|
|
|
892
1156
|
return () => el.removeEventListener("roxy-validation-error", listener);
|
|
893
1157
|
}, [onRoxyValidationError, loaded2]);
|
|
894
1158
|
if (error) {
|
|
895
|
-
return
|
|
1159
|
+
return React24.createElement(
|
|
896
1160
|
"div",
|
|
897
1161
|
{ role: "alert", className, style },
|
|
898
1162
|
`Roxy UI script load failed: ${error.message}`
|
|
899
1163
|
);
|
|
900
1164
|
}
|
|
901
|
-
return
|
|
1165
|
+
return React24.createElement("roxy-location-search", {
|
|
902
1166
|
ref: internal,
|
|
903
1167
|
className,
|
|
904
1168
|
style,
|
|
@@ -908,18 +1172,18 @@ var RoxyLocationSearch = React18.forwardRef(
|
|
|
908
1172
|
);
|
|
909
1173
|
|
|
910
1174
|
// packages/ui-react/src/components/data.tsx
|
|
911
|
-
import * as
|
|
912
|
-
var RoxyData =
|
|
913
|
-
function RoxyData2({
|
|
914
|
-
const internal =
|
|
915
|
-
|
|
1175
|
+
import * as React25 from "react";
|
|
1176
|
+
var RoxyData = React25.forwardRef(
|
|
1177
|
+
function RoxyData2({ className, style, ...rest }, ref) {
|
|
1178
|
+
const internal = React25.useRef(null);
|
|
1179
|
+
React25.useImperativeHandle(
|
|
916
1180
|
ref,
|
|
917
1181
|
() => internal.current,
|
|
918
1182
|
[]
|
|
919
1183
|
);
|
|
920
|
-
const [loaded2, setLoaded] =
|
|
921
|
-
const [error, setError] =
|
|
922
|
-
|
|
1184
|
+
const [loaded2, setLoaded] = React25.useState(false);
|
|
1185
|
+
const [error, setError] = React25.useState(null);
|
|
1186
|
+
React25.useEffect(() => {
|
|
923
1187
|
let active = true;
|
|
924
1188
|
ensureScriptLoaded().then(() => {
|
|
925
1189
|
if (active) setLoaded(true);
|
|
@@ -931,20 +1195,14 @@ var RoxyData = React19.forwardRef(
|
|
|
931
1195
|
active = false;
|
|
932
1196
|
};
|
|
933
1197
|
}, []);
|
|
934
|
-
React19.useEffect(() => {
|
|
935
|
-
const el = internal.current;
|
|
936
|
-
if (el && data !== void 0) {
|
|
937
|
-
el.data = data;
|
|
938
|
-
}
|
|
939
|
-
}, [data, loaded2]);
|
|
940
1198
|
if (error) {
|
|
941
|
-
return
|
|
1199
|
+
return React25.createElement(
|
|
942
1200
|
"div",
|
|
943
1201
|
{ role: "alert", className, style },
|
|
944
1202
|
`Roxy UI script load failed: ${error.message}`
|
|
945
1203
|
);
|
|
946
1204
|
}
|
|
947
|
-
return
|
|
1205
|
+
return React25.createElement("roxy-data", {
|
|
948
1206
|
ref: internal,
|
|
949
1207
|
className,
|
|
950
1208
|
style,
|
|
@@ -954,10 +1212,13 @@ var RoxyData = React19.forwardRef(
|
|
|
954
1212
|
);
|
|
955
1213
|
export {
|
|
956
1214
|
ROXY_UI_VERSION,
|
|
1215
|
+
RoxyAshtakavargaGrid,
|
|
957
1216
|
RoxyBiorhythmChart,
|
|
1217
|
+
RoxyChoghadiyaGrid,
|
|
958
1218
|
RoxyCompatibilityCard,
|
|
959
1219
|
RoxyDashaTimeline,
|
|
960
1220
|
RoxyData,
|
|
1221
|
+
RoxyDivisionalChart,
|
|
961
1222
|
RoxyDoshaCard,
|
|
962
1223
|
RoxyEndpointForm,
|
|
963
1224
|
RoxyGunaMilan,
|
|
@@ -969,10 +1230,13 @@ export {
|
|
|
969
1230
|
RoxyNatalChart,
|
|
970
1231
|
RoxyNumerologyCard,
|
|
971
1232
|
RoxyPanchangTable,
|
|
1233
|
+
RoxyShadbalaTable,
|
|
972
1234
|
RoxySynastryChart,
|
|
973
1235
|
RoxyTarotCard,
|
|
974
1236
|
RoxyTarotSpread,
|
|
1237
|
+
RoxyTransitsTable,
|
|
975
1238
|
RoxyVedicKundli,
|
|
1239
|
+
RoxyYogaList,
|
|
976
1240
|
ensureScriptLoaded
|
|
977
1241
|
};
|
|
978
1242
|
//# sourceMappingURL=index.js.map
|