@roxyapi/ui-react 0.0.1 → 0.1.1
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 +169 -0
- package/dist/components/biorhythm-chart.d.ts +9 -0
- package/dist/components/biorhythm-chart.d.ts.map +1 -0
- package/dist/components/biorhythm-chart.js +65 -0
- package/dist/components/biorhythm-chart.js.map +7 -0
- package/dist/components/compatibility-card.d.ts +9 -0
- package/dist/components/compatibility-card.d.ts.map +1 -0
- package/dist/components/compatibility-card.js +65 -0
- package/dist/components/compatibility-card.js.map +7 -0
- package/dist/components/dasha-timeline.d.ts +9 -0
- package/dist/components/dasha-timeline.d.ts.map +1 -0
- package/dist/components/dasha-timeline.js +65 -0
- package/dist/components/dasha-timeline.js.map +7 -0
- package/dist/components/data.d.ts +9 -0
- package/dist/components/data.d.ts.map +1 -0
- package/dist/components/data.js +65 -0
- package/dist/components/data.js.map +7 -0
- package/dist/components/dosha-card.d.ts +9 -0
- package/dist/components/dosha-card.d.ts.map +1 -0
- package/dist/components/dosha-card.js +65 -0
- package/dist/components/dosha-card.js.map +7 -0
- package/dist/components/endpoint-form.d.ts +9 -0
- package/dist/components/endpoint-form.d.ts.map +1 -0
- package/dist/components/endpoint-form.js +65 -0
- package/dist/components/endpoint-form.js.map +7 -0
- package/dist/components/guna-milan.d.ts +9 -0
- package/dist/components/guna-milan.d.ts.map +1 -0
- package/dist/components/guna-milan.js +65 -0
- package/dist/components/guna-milan.js.map +7 -0
- package/dist/components/hexagram.d.ts +9 -0
- package/dist/components/hexagram.d.ts.map +1 -0
- package/dist/components/hexagram.js +65 -0
- package/dist/components/hexagram.js.map +7 -0
- package/dist/components/horoscope-card.d.ts +9 -0
- package/dist/components/horoscope-card.d.ts.map +1 -0
- package/dist/components/horoscope-card.js +65 -0
- package/dist/components/horoscope-card.js.map +7 -0
- package/dist/components/kp-planets-table.d.ts +9 -0
- package/dist/components/kp-planets-table.d.ts.map +1 -0
- package/dist/components/kp-planets-table.js +65 -0
- package/dist/components/kp-planets-table.js.map +7 -0
- package/dist/components/location-search.d.ts +9 -0
- package/dist/components/location-search.d.ts.map +1 -0
- package/dist/components/location-search.js +65 -0
- package/dist/components/location-search.js.map +7 -0
- package/dist/components/moon-phase.d.ts +9 -0
- package/dist/components/moon-phase.d.ts.map +1 -0
- package/dist/components/moon-phase.js +65 -0
- package/dist/components/moon-phase.js.map +7 -0
- package/dist/components/natal-chart.d.ts +9 -0
- package/dist/components/natal-chart.d.ts.map +1 -0
- package/dist/components/natal-chart.js +65 -0
- package/dist/components/natal-chart.js.map +7 -0
- package/dist/components/numerology-card.d.ts +9 -0
- package/dist/components/numerology-card.d.ts.map +1 -0
- package/dist/components/numerology-card.js +65 -0
- package/dist/components/numerology-card.js.map +7 -0
- package/dist/components/panchang-table.d.ts +9 -0
- package/dist/components/panchang-table.d.ts.map +1 -0
- package/dist/components/panchang-table.js +65 -0
- package/dist/components/panchang-table.js.map +7 -0
- package/dist/components/synastry-chart.d.ts +9 -0
- package/dist/components/synastry-chart.d.ts.map +1 -0
- package/dist/components/synastry-chart.js +65 -0
- package/dist/components/synastry-chart.js.map +7 -0
- package/dist/components/tarot-card.d.ts +9 -0
- package/dist/components/tarot-card.d.ts.map +1 -0
- package/dist/components/tarot-card.js +65 -0
- package/dist/components/tarot-card.js.map +7 -0
- package/dist/components/tarot-spread.d.ts +9 -0
- package/dist/components/tarot-spread.d.ts.map +1 -0
- package/dist/components/tarot-spread.js +65 -0
- package/dist/components/tarot-spread.js.map +7 -0
- package/dist/components/vedic-kundli.d.ts +9 -0
- package/dist/components/vedic-kundli.d.ts.map +1 -0
- package/dist/components/vedic-kundli.js +65 -0
- package/dist/components/vedic-kundli.js.map +7 -0
- package/dist/index.cjs +565 -0
- package/dist/index.cjs.map +7 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +532 -0
- package/dist/index.js.map +7 -0
- package/dist/load-ui.d.ts +2 -0
- package/dist/load-ui.d.ts.map +1 -0
- package/dist/load-ui.js +38 -0
- package/dist/load-ui.js.map +7 -0
- package/package.json +47 -3
- package/src/components/biorhythm-chart.d.ts +12 -0
- package/src/components/biorhythm-chart.d.ts.map +1 -0
- package/src/components/biorhythm-chart.tsx +35 -0
- package/src/components/compatibility-card.d.ts +12 -0
- package/src/components/compatibility-card.d.ts.map +1 -0
- package/src/components/compatibility-card.tsx +35 -0
- package/src/components/dasha-timeline.d.ts +12 -0
- package/src/components/dasha-timeline.d.ts.map +1 -0
- package/src/components/dasha-timeline.tsx +35 -0
- package/src/components/data.d.ts +11 -0
- package/src/components/data.d.ts.map +1 -0
- package/src/components/data.tsx +35 -0
- package/src/components/dosha-card.d.ts +12 -0
- package/src/components/dosha-card.d.ts.map +1 -0
- package/src/components/dosha-card.tsx +35 -0
- package/src/components/endpoint-form.d.ts +12 -0
- package/src/components/endpoint-form.d.ts.map +1 -0
- package/src/components/endpoint-form.tsx +35 -0
- package/src/components/guna-milan.d.ts +12 -0
- package/src/components/guna-milan.d.ts.map +1 -0
- package/src/components/guna-milan.tsx +35 -0
- package/src/components/hexagram.d.ts +12 -0
- package/src/components/hexagram.d.ts.map +1 -0
- package/src/components/hexagram.tsx +35 -0
- package/src/components/horoscope-card.d.ts +12 -0
- package/src/components/horoscope-card.d.ts.map +1 -0
- package/src/components/horoscope-card.tsx +35 -0
- package/src/components/kp-planets-table.d.ts +12 -0
- package/src/components/kp-planets-table.d.ts.map +1 -0
- package/src/components/kp-planets-table.tsx +35 -0
- package/src/components/location-search.d.ts +12 -0
- package/src/components/location-search.d.ts.map +1 -0
- package/src/components/location-search.tsx +35 -0
- package/src/components/moon-phase.d.ts +12 -0
- package/src/components/moon-phase.d.ts.map +1 -0
- package/src/components/moon-phase.tsx +35 -0
- package/src/components/natal-chart.d.ts +12 -0
- package/src/components/natal-chart.d.ts.map +1 -0
- package/src/components/natal-chart.tsx +35 -0
- package/src/components/numerology-card.d.ts +12 -0
- package/src/components/numerology-card.d.ts.map +1 -0
- package/src/components/numerology-card.tsx +35 -0
- package/src/components/panchang-table.d.ts +12 -0
- package/src/components/panchang-table.d.ts.map +1 -0
- package/src/components/panchang-table.tsx +35 -0
- package/src/components/synastry-chart.d.ts +12 -0
- package/src/components/synastry-chart.d.ts.map +1 -0
- package/src/components/synastry-chart.tsx +35 -0
- package/src/components/tarot-card.d.ts +12 -0
- package/src/components/tarot-card.d.ts.map +1 -0
- package/src/components/tarot-card.tsx +35 -0
- package/src/components/tarot-spread.d.ts +12 -0
- package/src/components/tarot-spread.d.ts.map +1 -0
- package/src/components/tarot-spread.tsx +35 -0
- package/src/components/vedic-kundli.d.ts +12 -0
- package/src/components/vedic-kundli.d.ts.map +1 -0
- package/src/components/vedic-kundli.tsx +35 -0
- package/src/index.d.ts +21 -0
- package/src/index.d.ts.map +1 -0
- package/src/index.ts +20 -0
- package/src/load-ui.d.ts +2 -0
- package/src/load-ui.d.ts.map +1 -0
- package/src/load-ui.ts +41 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/load-ui.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Loads the matching component bundle on first mount. Idempotent across\n * many components on the same page. Skips on the server (no document) so\n * React server components and Next.js SSR work without a flash.\n */\nconst SCRIPT_ID = 'roxyapi-ui-loader';\nconst CDN_BASE = \"https://cdn.jsdelivr.net/npm/@roxyapi/ui@0/dist/cdn\";\n\nlet loaded: Promise<void> | null = null;\n\nexport function ensureScriptLoaded(version: string = '0.1.0'): Promise<void> {\n\tif (typeof document === 'undefined') return Promise.resolve();\n\tif (loaded) return loaded;\n\n\tloaded = new Promise<void>((resolve, reject) => {\n\t\tconst major = version.split('.')[0];\n\t\tconst url = `${CDN_BASE.replace('@0', '@' + major)}/roxy-ui.js`;\n\t\tlet existing = document.getElementById(SCRIPT_ID) as HTMLScriptElement | null;\n\t\tif (existing) {\n\t\t\tif (existing.dataset.loaded === 'true') {\n\t\t\t\tresolve();\n\t\t\t} else {\n\t\t\t\texisting.addEventListener('load', () => resolve());\n\t\t\t\texisting.addEventListener('error', () => reject(new Error('roxy-ui load failed')));\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\texisting = document.createElement('script');\n\t\texisting.id = SCRIPT_ID;\n\t\texisting.src = url;\n\t\texisting.async = true;\n\t\texisting.crossOrigin = 'anonymous';\n\t\texisting.addEventListener('load', () => {\n\t\t\texisting!.dataset.loaded = 'true';\n\t\t\tresolve();\n\t\t});\n\t\texisting.addEventListener('error', () => reject(new Error('roxy-ui load failed')));\n\t\tdocument.head.appendChild(existing);\n\t});\n\treturn loaded;\n}\n"],
|
|
5
|
+
"mappings": ";AAKA,IAAM,YAAY;AAClB,IAAM,WAAW;AAEjB,IAAI,SAA+B;AAE5B,SAAS,mBAAmB,UAAkB,SAAwB;AAC5E,MAAI,OAAO,aAAa,YAAa,QAAO,QAAQ,QAAQ;AAC5D,MAAI,OAAQ,QAAO;AAEnB,WAAS,IAAI,QAAc,CAAC,SAAS,WAAW;AAC/C,UAAM,QAAQ,QAAQ,MAAM,GAAG,EAAE,CAAC;AAClC,UAAM,MAAM,GAAG,SAAS,QAAQ,MAAM,MAAM,KAAK,CAAC;AAClD,QAAI,WAAW,SAAS,eAAe,SAAS;AAChD,QAAI,UAAU;AACb,UAAI,SAAS,QAAQ,WAAW,QAAQ;AACvC,gBAAQ;AAAA,MACT,OAAO;AACN,iBAAS,iBAAiB,QAAQ,MAAM,QAAQ,CAAC;AACjD,iBAAS,iBAAiB,SAAS,MAAM,OAAO,IAAI,MAAM,qBAAqB,CAAC,CAAC;AAAA,MAClF;AACA;AAAA,IACD;AACA,eAAW,SAAS,cAAc,QAAQ;AAC1C,aAAS,KAAK;AACd,aAAS,MAAM;AACf,aAAS,QAAQ;AACjB,aAAS,cAAc;AACvB,aAAS,iBAAiB,QAAQ,MAAM;AACvC,eAAU,QAAQ,SAAS;AAC3B,cAAQ;AAAA,IACT,CAAC;AACD,aAAS,iBAAiB,SAAS,MAAM,OAAO,IAAI,MAAM,qBAAqB,CAAC,CAAC;AACjF,aAAS,KAAK,YAAY,QAAQ;AAAA,EACnC,CAAC;AACD,SAAO;AACR;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,52 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roxyapi/ui-react",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "React components for the RoxyAPI catalog. Drop-in charts, tables, cards, forms for astrology, tarot, numerology, biorhythm, I Ching, and more. One key, beautiful in 30 minutes.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.cjs"
|
|
14
|
+
},
|
|
15
|
+
"./components/*": {
|
|
16
|
+
"types": "./dist/components/*.d.ts",
|
|
17
|
+
"import": "./dist/components/*.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"src",
|
|
23
|
+
"AGENTS.md"
|
|
24
|
+
],
|
|
25
|
+
"keywords": [
|
|
26
|
+
"react",
|
|
27
|
+
"react-components",
|
|
28
|
+
"web-components",
|
|
29
|
+
"astrology",
|
|
30
|
+
"vedic",
|
|
31
|
+
"tarot",
|
|
32
|
+
"roxyapi"
|
|
33
|
+
],
|
|
5
34
|
"license": "MIT",
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/RoxyAPI/ui.git",
|
|
38
|
+
"directory": "packages/ui-react"
|
|
39
|
+
},
|
|
6
40
|
"homepage": "https://roxyapi.com/ui",
|
|
7
|
-
"
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/RoxyAPI/ui/issues"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"react": ">=18.0.0",
|
|
46
|
+
"react-dom": ">=18.0.0"
|
|
47
|
+
},
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"access": "public",
|
|
50
|
+
"provenance": true
|
|
51
|
+
}
|
|
8
52
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type DivAttrs = React.HTMLAttributes<HTMLElement>;
|
|
4
|
+
export interface RoxyBiorhythmChartProps
|
|
5
|
+
extends Omit<DivAttrs, 'children' | 'onSelect'> {
|
|
6
|
+
data?: unknown;
|
|
7
|
+
[attr: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export declare const RoxyBiorhythmChart: React.ForwardRefExoticComponent<
|
|
10
|
+
Omit<RoxyBiorhythmChartProps, 'ref'> & React.RefAttributes<HTMLElement>
|
|
11
|
+
>;
|
|
12
|
+
//# sourceMappingURL=biorhythm-chart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"biorhythm-chart.d.ts","sourceRoot":"","sources":["biorhythm-chart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,QAAQ,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;AAElD,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,UAAU,CAAC;IACvF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,kBAAkB,0GAwB9B,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ensureScriptLoaded } from '../load-ui.js';
|
|
3
|
+
|
|
4
|
+
type DivAttrs = React.HTMLAttributes<HTMLElement>;
|
|
5
|
+
|
|
6
|
+
export interface RoxyBiorhythmChartProps extends Omit<DivAttrs, 'children' | 'onSelect'> {
|
|
7
|
+
data?: unknown;
|
|
8
|
+
[attr: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const RoxyBiorhythmChart = React.forwardRef<HTMLElement, RoxyBiorhythmChartProps>(
|
|
12
|
+
function RoxyBiorhythmChart({ data, ...rest }, ref) {
|
|
13
|
+
const internal = React.useRef<HTMLElement | null>(null);
|
|
14
|
+
React.useImperativeHandle(ref, () => internal.current as HTMLElement);
|
|
15
|
+
const [loaded, setLoaded] = React.useState(false);
|
|
16
|
+
|
|
17
|
+
React.useEffect(() => {
|
|
18
|
+
let active = true;
|
|
19
|
+
ensureScriptLoaded().then(() => {
|
|
20
|
+
if (active) setLoaded(true);
|
|
21
|
+
});
|
|
22
|
+
return () => {
|
|
23
|
+
active = false;
|
|
24
|
+
};
|
|
25
|
+
}, []);
|
|
26
|
+
|
|
27
|
+
React.useEffect(() => {
|
|
28
|
+
if (internal.current && data !== undefined) {
|
|
29
|
+
(internal.current as unknown as { data: unknown }).data = data;
|
|
30
|
+
}
|
|
31
|
+
}, [data, loaded]);
|
|
32
|
+
|
|
33
|
+
return React.createElement('roxy-biorhythm-chart', { ref: internal, ...rest });
|
|
34
|
+
},
|
|
35
|
+
);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type DivAttrs = React.HTMLAttributes<HTMLElement>;
|
|
4
|
+
export interface RoxyCompatibilityCardProps
|
|
5
|
+
extends Omit<DivAttrs, 'children' | 'onSelect'> {
|
|
6
|
+
data?: unknown;
|
|
7
|
+
[attr: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export declare const RoxyCompatibilityCard: React.ForwardRefExoticComponent<
|
|
10
|
+
Omit<RoxyCompatibilityCardProps, 'ref'> & React.RefAttributes<HTMLElement>
|
|
11
|
+
>;
|
|
12
|
+
//# sourceMappingURL=compatibility-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compatibility-card.d.ts","sourceRoot":"","sources":["compatibility-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,QAAQ,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;AAElD,MAAM,WAAW,0BAA2B,SAAQ,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,UAAU,CAAC;IAC1F,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,qBAAqB,6GAwBjC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ensureScriptLoaded } from '../load-ui.js';
|
|
3
|
+
|
|
4
|
+
type DivAttrs = React.HTMLAttributes<HTMLElement>;
|
|
5
|
+
|
|
6
|
+
export interface RoxyCompatibilityCardProps extends Omit<DivAttrs, 'children' | 'onSelect'> {
|
|
7
|
+
data?: unknown;
|
|
8
|
+
[attr: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const RoxyCompatibilityCard = React.forwardRef<HTMLElement, RoxyCompatibilityCardProps>(
|
|
12
|
+
function RoxyCompatibilityCard({ data, ...rest }, ref) {
|
|
13
|
+
const internal = React.useRef<HTMLElement | null>(null);
|
|
14
|
+
React.useImperativeHandle(ref, () => internal.current as HTMLElement);
|
|
15
|
+
const [loaded, setLoaded] = React.useState(false);
|
|
16
|
+
|
|
17
|
+
React.useEffect(() => {
|
|
18
|
+
let active = true;
|
|
19
|
+
ensureScriptLoaded().then(() => {
|
|
20
|
+
if (active) setLoaded(true);
|
|
21
|
+
});
|
|
22
|
+
return () => {
|
|
23
|
+
active = false;
|
|
24
|
+
};
|
|
25
|
+
}, []);
|
|
26
|
+
|
|
27
|
+
React.useEffect(() => {
|
|
28
|
+
if (internal.current && data !== undefined) {
|
|
29
|
+
(internal.current as unknown as { data: unknown }).data = data;
|
|
30
|
+
}
|
|
31
|
+
}, [data, loaded]);
|
|
32
|
+
|
|
33
|
+
return React.createElement('roxy-compatibility-card', { ref: internal, ...rest });
|
|
34
|
+
},
|
|
35
|
+
);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type DivAttrs = React.HTMLAttributes<HTMLElement>;
|
|
4
|
+
export interface RoxyDashaTimelineProps
|
|
5
|
+
extends Omit<DivAttrs, 'children' | 'onSelect'> {
|
|
6
|
+
data?: unknown;
|
|
7
|
+
[attr: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export declare const RoxyDashaTimeline: React.ForwardRefExoticComponent<
|
|
10
|
+
Omit<RoxyDashaTimelineProps, 'ref'> & React.RefAttributes<HTMLElement>
|
|
11
|
+
>;
|
|
12
|
+
//# sourceMappingURL=dasha-timeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dasha-timeline.d.ts","sourceRoot":"","sources":["dasha-timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,QAAQ,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;AAElD,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,UAAU,CAAC;IACtF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,iBAAiB,yGAwB7B,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ensureScriptLoaded } from '../load-ui.js';
|
|
3
|
+
|
|
4
|
+
type DivAttrs = React.HTMLAttributes<HTMLElement>;
|
|
5
|
+
|
|
6
|
+
export interface RoxyDashaTimelineProps extends Omit<DivAttrs, 'children' | 'onSelect'> {
|
|
7
|
+
data?: unknown;
|
|
8
|
+
[attr: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const RoxyDashaTimeline = React.forwardRef<HTMLElement, RoxyDashaTimelineProps>(
|
|
12
|
+
function RoxyDashaTimeline({ data, ...rest }, ref) {
|
|
13
|
+
const internal = React.useRef<HTMLElement | null>(null);
|
|
14
|
+
React.useImperativeHandle(ref, () => internal.current as HTMLElement);
|
|
15
|
+
const [loaded, setLoaded] = React.useState(false);
|
|
16
|
+
|
|
17
|
+
React.useEffect(() => {
|
|
18
|
+
let active = true;
|
|
19
|
+
ensureScriptLoaded().then(() => {
|
|
20
|
+
if (active) setLoaded(true);
|
|
21
|
+
});
|
|
22
|
+
return () => {
|
|
23
|
+
active = false;
|
|
24
|
+
};
|
|
25
|
+
}, []);
|
|
26
|
+
|
|
27
|
+
React.useEffect(() => {
|
|
28
|
+
if (internal.current && data !== undefined) {
|
|
29
|
+
(internal.current as unknown as { data: unknown }).data = data;
|
|
30
|
+
}
|
|
31
|
+
}, [data, loaded]);
|
|
32
|
+
|
|
33
|
+
return React.createElement('roxy-dasha-timeline', { ref: internal, ...rest });
|
|
34
|
+
},
|
|
35
|
+
);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type DivAttrs = React.HTMLAttributes<HTMLElement>;
|
|
4
|
+
export interface RoxyDataProps extends Omit<DivAttrs, 'children' | 'onSelect'> {
|
|
5
|
+
data?: unknown;
|
|
6
|
+
[attr: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
export declare const RoxyData: React.ForwardRefExoticComponent<
|
|
9
|
+
Omit<RoxyDataProps, 'ref'> & React.RefAttributes<HTMLElement>
|
|
10
|
+
>;
|
|
11
|
+
//# sourceMappingURL=data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["data.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,QAAQ,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;AAElD,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,UAAU,CAAC;IAC7E,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,QAAQ,gGAwBpB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ensureScriptLoaded } from '../load-ui.js';
|
|
3
|
+
|
|
4
|
+
type DivAttrs = React.HTMLAttributes<HTMLElement>;
|
|
5
|
+
|
|
6
|
+
export interface RoxyDataProps extends Omit<DivAttrs, 'children' | 'onSelect'> {
|
|
7
|
+
data?: unknown;
|
|
8
|
+
[attr: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const RoxyData = React.forwardRef<HTMLElement, RoxyDataProps>(
|
|
12
|
+
function RoxyData({ data, ...rest }, ref) {
|
|
13
|
+
const internal = React.useRef<HTMLElement | null>(null);
|
|
14
|
+
React.useImperativeHandle(ref, () => internal.current as HTMLElement);
|
|
15
|
+
const [loaded, setLoaded] = React.useState(false);
|
|
16
|
+
|
|
17
|
+
React.useEffect(() => {
|
|
18
|
+
let active = true;
|
|
19
|
+
ensureScriptLoaded().then(() => {
|
|
20
|
+
if (active) setLoaded(true);
|
|
21
|
+
});
|
|
22
|
+
return () => {
|
|
23
|
+
active = false;
|
|
24
|
+
};
|
|
25
|
+
}, []);
|
|
26
|
+
|
|
27
|
+
React.useEffect(() => {
|
|
28
|
+
if (internal.current && data !== undefined) {
|
|
29
|
+
(internal.current as unknown as { data: unknown }).data = data;
|
|
30
|
+
}
|
|
31
|
+
}, [data, loaded]);
|
|
32
|
+
|
|
33
|
+
return React.createElement('roxy-data', { ref: internal, ...rest });
|
|
34
|
+
},
|
|
35
|
+
);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type DivAttrs = React.HTMLAttributes<HTMLElement>;
|
|
4
|
+
export interface RoxyDoshaCardProps
|
|
5
|
+
extends Omit<DivAttrs, 'children' | 'onSelect'> {
|
|
6
|
+
data?: unknown;
|
|
7
|
+
[attr: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export declare const RoxyDoshaCard: React.ForwardRefExoticComponent<
|
|
10
|
+
Omit<RoxyDoshaCardProps, 'ref'> & React.RefAttributes<HTMLElement>
|
|
11
|
+
>;
|
|
12
|
+
//# sourceMappingURL=dosha-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dosha-card.d.ts","sourceRoot":"","sources":["dosha-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,QAAQ,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;AAElD,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,UAAU,CAAC;IAClF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,aAAa,qGAwBzB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ensureScriptLoaded } from '../load-ui.js';
|
|
3
|
+
|
|
4
|
+
type DivAttrs = React.HTMLAttributes<HTMLElement>;
|
|
5
|
+
|
|
6
|
+
export interface RoxyDoshaCardProps extends Omit<DivAttrs, 'children' | 'onSelect'> {
|
|
7
|
+
data?: unknown;
|
|
8
|
+
[attr: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const RoxyDoshaCard = React.forwardRef<HTMLElement, RoxyDoshaCardProps>(
|
|
12
|
+
function RoxyDoshaCard({ data, ...rest }, ref) {
|
|
13
|
+
const internal = React.useRef<HTMLElement | null>(null);
|
|
14
|
+
React.useImperativeHandle(ref, () => internal.current as HTMLElement);
|
|
15
|
+
const [loaded, setLoaded] = React.useState(false);
|
|
16
|
+
|
|
17
|
+
React.useEffect(() => {
|
|
18
|
+
let active = true;
|
|
19
|
+
ensureScriptLoaded().then(() => {
|
|
20
|
+
if (active) setLoaded(true);
|
|
21
|
+
});
|
|
22
|
+
return () => {
|
|
23
|
+
active = false;
|
|
24
|
+
};
|
|
25
|
+
}, []);
|
|
26
|
+
|
|
27
|
+
React.useEffect(() => {
|
|
28
|
+
if (internal.current && data !== undefined) {
|
|
29
|
+
(internal.current as unknown as { data: unknown }).data = data;
|
|
30
|
+
}
|
|
31
|
+
}, [data, loaded]);
|
|
32
|
+
|
|
33
|
+
return React.createElement('roxy-dosha-card', { ref: internal, ...rest });
|
|
34
|
+
},
|
|
35
|
+
);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type DivAttrs = React.HTMLAttributes<HTMLElement>;
|
|
4
|
+
export interface RoxyEndpointFormProps
|
|
5
|
+
extends Omit<DivAttrs, 'children' | 'onSelect'> {
|
|
6
|
+
data?: unknown;
|
|
7
|
+
[attr: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export declare const RoxyEndpointForm: React.ForwardRefExoticComponent<
|
|
10
|
+
Omit<RoxyEndpointFormProps, 'ref'> & React.RefAttributes<HTMLElement>
|
|
11
|
+
>;
|
|
12
|
+
//# sourceMappingURL=endpoint-form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoint-form.d.ts","sourceRoot":"","sources":["endpoint-form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,QAAQ,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;AAElD,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,UAAU,CAAC;IACrF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,gBAAgB,wGAwB5B,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ensureScriptLoaded } from '../load-ui.js';
|
|
3
|
+
|
|
4
|
+
type DivAttrs = React.HTMLAttributes<HTMLElement>;
|
|
5
|
+
|
|
6
|
+
export interface RoxyEndpointFormProps extends Omit<DivAttrs, 'children' | 'onSelect'> {
|
|
7
|
+
data?: unknown;
|
|
8
|
+
[attr: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const RoxyEndpointForm = React.forwardRef<HTMLElement, RoxyEndpointFormProps>(
|
|
12
|
+
function RoxyEndpointForm({ data, ...rest }, ref) {
|
|
13
|
+
const internal = React.useRef<HTMLElement | null>(null);
|
|
14
|
+
React.useImperativeHandle(ref, () => internal.current as HTMLElement);
|
|
15
|
+
const [loaded, setLoaded] = React.useState(false);
|
|
16
|
+
|
|
17
|
+
React.useEffect(() => {
|
|
18
|
+
let active = true;
|
|
19
|
+
ensureScriptLoaded().then(() => {
|
|
20
|
+
if (active) setLoaded(true);
|
|
21
|
+
});
|
|
22
|
+
return () => {
|
|
23
|
+
active = false;
|
|
24
|
+
};
|
|
25
|
+
}, []);
|
|
26
|
+
|
|
27
|
+
React.useEffect(() => {
|
|
28
|
+
if (internal.current && data !== undefined) {
|
|
29
|
+
(internal.current as unknown as { data: unknown }).data = data;
|
|
30
|
+
}
|
|
31
|
+
}, [data, loaded]);
|
|
32
|
+
|
|
33
|
+
return React.createElement('roxy-endpoint-form', { ref: internal, ...rest });
|
|
34
|
+
},
|
|
35
|
+
);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type DivAttrs = React.HTMLAttributes<HTMLElement>;
|
|
4
|
+
export interface RoxyGunaMilanProps
|
|
5
|
+
extends Omit<DivAttrs, 'children' | 'onSelect'> {
|
|
6
|
+
data?: unknown;
|
|
7
|
+
[attr: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export declare const RoxyGunaMilan: React.ForwardRefExoticComponent<
|
|
10
|
+
Omit<RoxyGunaMilanProps, 'ref'> & React.RefAttributes<HTMLElement>
|
|
11
|
+
>;
|
|
12
|
+
//# sourceMappingURL=guna-milan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guna-milan.d.ts","sourceRoot":"","sources":["guna-milan.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,QAAQ,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;AAElD,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,UAAU,CAAC;IAClF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,aAAa,qGAwBzB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ensureScriptLoaded } from '../load-ui.js';
|
|
3
|
+
|
|
4
|
+
type DivAttrs = React.HTMLAttributes<HTMLElement>;
|
|
5
|
+
|
|
6
|
+
export interface RoxyGunaMilanProps extends Omit<DivAttrs, 'children' | 'onSelect'> {
|
|
7
|
+
data?: unknown;
|
|
8
|
+
[attr: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const RoxyGunaMilan = React.forwardRef<HTMLElement, RoxyGunaMilanProps>(
|
|
12
|
+
function RoxyGunaMilan({ data, ...rest }, ref) {
|
|
13
|
+
const internal = React.useRef<HTMLElement | null>(null);
|
|
14
|
+
React.useImperativeHandle(ref, () => internal.current as HTMLElement);
|
|
15
|
+
const [loaded, setLoaded] = React.useState(false);
|
|
16
|
+
|
|
17
|
+
React.useEffect(() => {
|
|
18
|
+
let active = true;
|
|
19
|
+
ensureScriptLoaded().then(() => {
|
|
20
|
+
if (active) setLoaded(true);
|
|
21
|
+
});
|
|
22
|
+
return () => {
|
|
23
|
+
active = false;
|
|
24
|
+
};
|
|
25
|
+
}, []);
|
|
26
|
+
|
|
27
|
+
React.useEffect(() => {
|
|
28
|
+
if (internal.current && data !== undefined) {
|
|
29
|
+
(internal.current as unknown as { data: unknown }).data = data;
|
|
30
|
+
}
|
|
31
|
+
}, [data, loaded]);
|
|
32
|
+
|
|
33
|
+
return React.createElement('roxy-guna-milan', { ref: internal, ...rest });
|
|
34
|
+
},
|
|
35
|
+
);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type DivAttrs = React.HTMLAttributes<HTMLElement>;
|
|
4
|
+
export interface RoxyHexagramProps
|
|
5
|
+
extends Omit<DivAttrs, 'children' | 'onSelect'> {
|
|
6
|
+
data?: unknown;
|
|
7
|
+
[attr: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export declare const RoxyHexagram: React.ForwardRefExoticComponent<
|
|
10
|
+
Omit<RoxyHexagramProps, 'ref'> & React.RefAttributes<HTMLElement>
|
|
11
|
+
>;
|
|
12
|
+
//# sourceMappingURL=hexagram.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hexagram.d.ts","sourceRoot":"","sources":["hexagram.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,QAAQ,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;AAElD,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,UAAU,CAAC;IACjF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,YAAY,oGAwBxB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ensureScriptLoaded } from '../load-ui.js';
|
|
3
|
+
|
|
4
|
+
type DivAttrs = React.HTMLAttributes<HTMLElement>;
|
|
5
|
+
|
|
6
|
+
export interface RoxyHexagramProps extends Omit<DivAttrs, 'children' | 'onSelect'> {
|
|
7
|
+
data?: unknown;
|
|
8
|
+
[attr: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const RoxyHexagram = React.forwardRef<HTMLElement, RoxyHexagramProps>(
|
|
12
|
+
function RoxyHexagram({ data, ...rest }, ref) {
|
|
13
|
+
const internal = React.useRef<HTMLElement | null>(null);
|
|
14
|
+
React.useImperativeHandle(ref, () => internal.current as HTMLElement);
|
|
15
|
+
const [loaded, setLoaded] = React.useState(false);
|
|
16
|
+
|
|
17
|
+
React.useEffect(() => {
|
|
18
|
+
let active = true;
|
|
19
|
+
ensureScriptLoaded().then(() => {
|
|
20
|
+
if (active) setLoaded(true);
|
|
21
|
+
});
|
|
22
|
+
return () => {
|
|
23
|
+
active = false;
|
|
24
|
+
};
|
|
25
|
+
}, []);
|
|
26
|
+
|
|
27
|
+
React.useEffect(() => {
|
|
28
|
+
if (internal.current && data !== undefined) {
|
|
29
|
+
(internal.current as unknown as { data: unknown }).data = data;
|
|
30
|
+
}
|
|
31
|
+
}, [data, loaded]);
|
|
32
|
+
|
|
33
|
+
return React.createElement('roxy-hexagram', { ref: internal, ...rest });
|
|
34
|
+
},
|
|
35
|
+
);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type DivAttrs = React.HTMLAttributes<HTMLElement>;
|
|
4
|
+
export interface RoxyHoroscopeCardProps
|
|
5
|
+
extends Omit<DivAttrs, 'children' | 'onSelect'> {
|
|
6
|
+
data?: unknown;
|
|
7
|
+
[attr: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export declare const RoxyHoroscopeCard: React.ForwardRefExoticComponent<
|
|
10
|
+
Omit<RoxyHoroscopeCardProps, 'ref'> & React.RefAttributes<HTMLElement>
|
|
11
|
+
>;
|
|
12
|
+
//# sourceMappingURL=horoscope-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"horoscope-card.d.ts","sourceRoot":"","sources":["horoscope-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,QAAQ,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;AAElD,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,UAAU,CAAC;IACtF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,iBAAiB,yGAwB7B,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ensureScriptLoaded } from '../load-ui.js';
|
|
3
|
+
|
|
4
|
+
type DivAttrs = React.HTMLAttributes<HTMLElement>;
|
|
5
|
+
|
|
6
|
+
export interface RoxyHoroscopeCardProps extends Omit<DivAttrs, 'children' | 'onSelect'> {
|
|
7
|
+
data?: unknown;
|
|
8
|
+
[attr: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const RoxyHoroscopeCard = React.forwardRef<HTMLElement, RoxyHoroscopeCardProps>(
|
|
12
|
+
function RoxyHoroscopeCard({ data, ...rest }, ref) {
|
|
13
|
+
const internal = React.useRef<HTMLElement | null>(null);
|
|
14
|
+
React.useImperativeHandle(ref, () => internal.current as HTMLElement);
|
|
15
|
+
const [loaded, setLoaded] = React.useState(false);
|
|
16
|
+
|
|
17
|
+
React.useEffect(() => {
|
|
18
|
+
let active = true;
|
|
19
|
+
ensureScriptLoaded().then(() => {
|
|
20
|
+
if (active) setLoaded(true);
|
|
21
|
+
});
|
|
22
|
+
return () => {
|
|
23
|
+
active = false;
|
|
24
|
+
};
|
|
25
|
+
}, []);
|
|
26
|
+
|
|
27
|
+
React.useEffect(() => {
|
|
28
|
+
if (internal.current && data !== undefined) {
|
|
29
|
+
(internal.current as unknown as { data: unknown }).data = data;
|
|
30
|
+
}
|
|
31
|
+
}, [data, loaded]);
|
|
32
|
+
|
|
33
|
+
return React.createElement('roxy-horoscope-card', { ref: internal, ...rest });
|
|
34
|
+
},
|
|
35
|
+
);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type DivAttrs = React.HTMLAttributes<HTMLElement>;
|
|
4
|
+
export interface RoxyKpPlanetsTableProps
|
|
5
|
+
extends Omit<DivAttrs, 'children' | 'onSelect'> {
|
|
6
|
+
data?: unknown;
|
|
7
|
+
[attr: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export declare const RoxyKpPlanetsTable: React.ForwardRefExoticComponent<
|
|
10
|
+
Omit<RoxyKpPlanetsTableProps, 'ref'> & React.RefAttributes<HTMLElement>
|
|
11
|
+
>;
|
|
12
|
+
//# sourceMappingURL=kp-planets-table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kp-planets-table.d.ts","sourceRoot":"","sources":["kp-planets-table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,QAAQ,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;AAElD,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,UAAU,CAAC;IACvF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,kBAAkB,0GAwB9B,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ensureScriptLoaded } from '../load-ui.js';
|
|
3
|
+
|
|
4
|
+
type DivAttrs = React.HTMLAttributes<HTMLElement>;
|
|
5
|
+
|
|
6
|
+
export interface RoxyKpPlanetsTableProps extends Omit<DivAttrs, 'children' | 'onSelect'> {
|
|
7
|
+
data?: unknown;
|
|
8
|
+
[attr: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const RoxyKpPlanetsTable = React.forwardRef<HTMLElement, RoxyKpPlanetsTableProps>(
|
|
12
|
+
function RoxyKpPlanetsTable({ data, ...rest }, ref) {
|
|
13
|
+
const internal = React.useRef<HTMLElement | null>(null);
|
|
14
|
+
React.useImperativeHandle(ref, () => internal.current as HTMLElement);
|
|
15
|
+
const [loaded, setLoaded] = React.useState(false);
|
|
16
|
+
|
|
17
|
+
React.useEffect(() => {
|
|
18
|
+
let active = true;
|
|
19
|
+
ensureScriptLoaded().then(() => {
|
|
20
|
+
if (active) setLoaded(true);
|
|
21
|
+
});
|
|
22
|
+
return () => {
|
|
23
|
+
active = false;
|
|
24
|
+
};
|
|
25
|
+
}, []);
|
|
26
|
+
|
|
27
|
+
React.useEffect(() => {
|
|
28
|
+
if (internal.current && data !== undefined) {
|
|
29
|
+
(internal.current as unknown as { data: unknown }).data = data;
|
|
30
|
+
}
|
|
31
|
+
}, [data, loaded]);
|
|
32
|
+
|
|
33
|
+
return React.createElement('roxy-kp-planets-table', { ref: internal, ...rest });
|
|
34
|
+
},
|
|
35
|
+
);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type DivAttrs = React.HTMLAttributes<HTMLElement>;
|
|
4
|
+
export interface RoxyLocationSearchProps
|
|
5
|
+
extends Omit<DivAttrs, 'children' | 'onSelect'> {
|
|
6
|
+
data?: unknown;
|
|
7
|
+
[attr: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export declare const RoxyLocationSearch: React.ForwardRefExoticComponent<
|
|
10
|
+
Omit<RoxyLocationSearchProps, 'ref'> & React.RefAttributes<HTMLElement>
|
|
11
|
+
>;
|
|
12
|
+
//# sourceMappingURL=location-search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"location-search.d.ts","sourceRoot":"","sources":["location-search.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,QAAQ,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;AAElD,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,UAAU,CAAC;IACvF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,kBAAkB,0GAwB9B,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ensureScriptLoaded } from '../load-ui.js';
|
|
3
|
+
|
|
4
|
+
type DivAttrs = React.HTMLAttributes<HTMLElement>;
|
|
5
|
+
|
|
6
|
+
export interface RoxyLocationSearchProps extends Omit<DivAttrs, 'children' | 'onSelect'> {
|
|
7
|
+
data?: unknown;
|
|
8
|
+
[attr: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const RoxyLocationSearch = React.forwardRef<HTMLElement, RoxyLocationSearchProps>(
|
|
12
|
+
function RoxyLocationSearch({ data, ...rest }, ref) {
|
|
13
|
+
const internal = React.useRef<HTMLElement | null>(null);
|
|
14
|
+
React.useImperativeHandle(ref, () => internal.current as HTMLElement);
|
|
15
|
+
const [loaded, setLoaded] = React.useState(false);
|
|
16
|
+
|
|
17
|
+
React.useEffect(() => {
|
|
18
|
+
let active = true;
|
|
19
|
+
ensureScriptLoaded().then(() => {
|
|
20
|
+
if (active) setLoaded(true);
|
|
21
|
+
});
|
|
22
|
+
return () => {
|
|
23
|
+
active = false;
|
|
24
|
+
};
|
|
25
|
+
}, []);
|
|
26
|
+
|
|
27
|
+
React.useEffect(() => {
|
|
28
|
+
if (internal.current && data !== undefined) {
|
|
29
|
+
(internal.current as unknown as { data: unknown }).data = data;
|
|
30
|
+
}
|
|
31
|
+
}, [data, loaded]);
|
|
32
|
+
|
|
33
|
+
return React.createElement('roxy-location-search', { ref: internal, ...rest });
|
|
34
|
+
},
|
|
35
|
+
);
|