@vxrn/test-package 1.1.413
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/package.json +25 -0
- package/src/index.js +1 -0
- package/src/test-web.js +1 -0
- package/src/test-web.web.js +1 -0
- package/types/index.d.ts +21 -0
- package/types/index.d.ts.map +1 -0
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vxrn/test-package",
|
|
3
|
+
"version": "1.1.413",
|
|
4
|
+
"sideEffects": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/cjs",
|
|
7
|
+
"module": "dist/esm",
|
|
8
|
+
"source": "src/index.ts",
|
|
9
|
+
"types": "./types/index.d.ts",
|
|
10
|
+
"files": [
|
|
11
|
+
"src",
|
|
12
|
+
"types",
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"exports": {
|
|
16
|
+
"./package.json": "./package.json",
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./src/index.ts",
|
|
19
|
+
"import": "./src/index.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public"
|
|
24
|
+
}
|
|
25
|
+
}
|
package/src/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { webWorks } from './test-web.js'
|
package/src/test-web.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const webWorks = 'no'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const webWorks = 'yes'
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ColorSchemeName } from '@vxrn/universal-color-scheme';
|
|
2
|
+
export type Scheme = 'light' | 'dark';
|
|
3
|
+
export type SchemeSetting = 'system' | 'light' | 'dark';
|
|
4
|
+
export { getColorScheme, onColorSchemeChange } from '@vxrn/universal-color-scheme';
|
|
5
|
+
export declare const clearColorSchemeSetting: () => void;
|
|
6
|
+
export declare const useColorScheme: () => readonly ["light" | "dark", typeof setSchemeSetting];
|
|
7
|
+
export declare function useSchemeSetting(): readonly [{
|
|
8
|
+
setting: SchemeSetting;
|
|
9
|
+
scheme: "light" | "dark";
|
|
10
|
+
}, typeof setSchemeSetting];
|
|
11
|
+
export declare function setSchemeSetting(next: SchemeSetting): void;
|
|
12
|
+
export declare function SchemeProvider({ children, getClassName, }: {
|
|
13
|
+
children: any;
|
|
14
|
+
getClassName?: (name: ColorSchemeName) => string;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const MetaTheme: ({ color, darkColor, lightColor, }: {
|
|
17
|
+
color: string;
|
|
18
|
+
darkColor: string;
|
|
19
|
+
lightColor: string;
|
|
20
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,eAAe,EAIrB,MAAM,8BAA8B,CAAA;AAIrC,MAAM,MAAM,MAAM,GAAG,OAAO,GAAG,MAAM,CAAA;AACrC,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAA;AAEvD,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AAIlF,eAAO,MAAM,uBAAuB,YAEnC,CAAA;AAcD,eAAO,MAAM,cAAc,4DAG1B,CAAA;AAED,wBAAgB,gBAAgB;aAZrB,aAAa;YACd,OAAO,GAAG,MAAM;4BAczB;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,aAAa,QAKnD;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EAER,YAAoC,GACrC,EAAE;IAAE,QAAQ,EAAE,GAAG,CAAC;IAAC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,MAAM,CAAA;CAAE,2CAkDrE;AAED,eAAO,MAAM,SAAS,sCAInB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,4CA+B1D,CAAA"}
|