lupine.components 1.1.37 → 1.1.38

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lupine.components",
3
- "version": "1.1.37",
3
+ "version": "1.1.38",
4
4
  "license": "MIT",
5
5
  "author": "uuware.com",
6
6
  "homepage": "https://github.com/uuware/lupine.js",
@@ -274,6 +274,16 @@ export const ToggleSwitch = (props: ToggleSwitchProps) => {
274
274
  // bindGlobalStyle('toggle-switch-theme', cssTheme, false, true);
275
275
  bindGlobalStyle('toggle-switch-component', css);
276
276
 
277
+ const cssTheme: CssProps = {
278
+ '[data-theme="light" i]': {
279
+ '--toggle-background-color': '#e6e6e6',
280
+ },
281
+ '[data-theme="dark" i]': {
282
+ '--toggle-background-color': '#232323',
283
+ },
284
+ };
285
+ bindGlobalStyle('toggle-switch-theme', cssTheme, false, true);
286
+
277
287
  const cssSize: CssProps = {
278
288
  '& .ts-on-text, & .ts-off-text': {
279
289
  display: 'none',
@@ -1,6 +1,6 @@
1
- import { CssProps } from 'lupine.components';
1
+ import { CssProps, PageProps } from 'lupine.components';
2
2
 
3
- export const DemoAboutPage = () => {
3
+ export const DemoAboutPage = async (props: PageProps) => {
4
4
  const css: CssProps = {};
5
5
 
6
6
  return (
package/tsconfig.json CHANGED
@@ -31,15 +31,15 @@
31
31
 
32
32
  /* Modules */
33
33
  // "module": "commonjs", amd, es2015 /* Specify what module code is generated. */,
34
- "module": "amd" /* Specify what module code is generated. */,
34
+ "module": "esnext" /* Specify what module code is generated. */,
35
35
  // "rootDir": "./" /* Specify the root folder within your source files. */,
36
- "moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */,
36
+ "moduleResolution": "bundler" /* Specify how TypeScript looks up a file from a given module specifier. */,
37
37
  // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
38
38
  // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
39
39
  // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
40
40
  // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
41
41
  // "types": [], /* Specify type package names to be included without being referenced in a source file. */
42
- "types": ["node", "lupine.web"],
42
+ "types": ["node"],
43
43
  // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
44
44
  // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
45
45
  // "resolveJsonModule": true /* Enable importing .json files. */,
@@ -56,7 +56,7 @@
56
56
  // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
57
57
  "sourceMap": true /* Create source map files for emitted JavaScript files. */,
58
58
  // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
59
- "outFile": "./dist/build.js",
59
+ // "outFile": "./dist/build.js",
60
60
  "outDir": "./dist" /* Specify an output folder for all emitted files. */,
61
61
  // "removeComments": true, /* Disable emitting comments. */
62
62
  // "noEmit": true, /* Disable emitting files from a compilation. */