@stem_dev/periodic-table 1.0.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/LICENSE +21 -0
- package/README.md +75 -0
- package/dist/index.cjs.js +279 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.es.js +33653 -0
- package/dist/periodic-table.css +1 -0
- package/package.json +58 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Standalone init function for non-React users.
|
|
5
|
+
* This can be used as window.PeriodicTable.init('#div-id', { darkMode: true })
|
|
6
|
+
*/
|
|
7
|
+
export declare function init(selector: string, props?: PeriodicTableProps): {
|
|
8
|
+
unmount: () => any;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export declare function PeriodicTable({ darkMode: propDarkMode, showSpectrum, showBohrModel }: PeriodicTableProps): JSX.Element;
|
|
12
|
+
|
|
13
|
+
export declare interface PeriodicTableProps {
|
|
14
|
+
darkMode?: boolean;
|
|
15
|
+
showSpectrum?: boolean;
|
|
16
|
+
showBohrModel?: boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export declare const version: string;
|
|
20
|
+
|
|
21
|
+
export { }
|