@tamagui/next-theme 1.30.12 → 1.30.14

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/dist/cjs/index.js CHANGED
@@ -3,10 +3,6 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
6
  var __copyProps = (to, from, except, desc) => {
11
7
  if (from && typeof from === "object" || typeof from === "function") {
12
8
  for (let key of __getOwnPropNames(from))
@@ -18,15 +14,12 @@ var __copyProps = (to, from, except, desc) => {
18
14
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
15
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
16
  var src_exports = {};
21
- __export(src_exports, {
22
- ColorScheme: () => import_useRootTheme.ColorScheme
23
- });
24
17
  module.exports = __toCommonJS(src_exports);
25
18
  __reExport(src_exports, require("./NextTheme"), module.exports);
26
- var import_useRootTheme = require("./useRootTheme");
19
+ __reExport(src_exports, require("./types"), module.exports);
27
20
  // Annotate the CommonJS export names for ESM import in node:
28
21
  0 && (module.exports = {
29
- ColorScheme,
30
- ...require("./NextTheme")
22
+ ...require("./NextTheme"),
23
+ ...require("./types")
31
24
  });
32
25
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAc,wBAAd;AACA,0BAA4B;",
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,wBAAd;AACA,wBAAc,oBADd;",
5
5
  "names": []
6
6
  }
package/dist/esm/index.js CHANGED
@@ -1,6 +1,3 @@
1
1
  export * from "./NextTheme";
2
- import { ColorScheme } from "./useRootTheme";
3
- export {
4
- ColorScheme
5
- };
2
+ export * from "./types";
6
3
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "mappings": "AAAA,cAAc;AACd,SAAS,mBAAmB;",
4
+ "mappings": "AAAA,cAAc;AACd,cAAc;",
5
5
  "names": []
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/next-theme",
3
- "version": "1.30.12",
3
+ "version": "1.30.14",
4
4
  "sideEffects": false,
5
5
  "source": "src/index.ts",
6
6
  "types": "./types/index.d.ts",
@@ -16,13 +16,13 @@
16
16
  "watch": "tamagui-build --watch"
17
17
  },
18
18
  "dependencies": {
19
- "@tamagui/use-event": "1.30.12"
19
+ "@tamagui/use-event": "1.30.14"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "react": "*"
23
23
  },
24
24
  "devDependencies": {
25
- "@tamagui/build": "1.30.12",
25
+ "@tamagui/build": "1.30.14",
26
26
  "react": "^18.2.0"
27
27
  },
28
28
  "publishConfig": {
package/src/index.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export * from './NextTheme'
2
- export { ColorScheme } from './useRootTheme'
2
+ export * from './types'
package/src/types.tsx CHANGED
@@ -1,4 +1,4 @@
1
- export type types = {}
1
+ export type ColorScheme = 'dark' | 'light'
2
2
 
3
3
  export interface ValueObject {
4
4
  [themeName: string]: string
@@ -1,6 +1,6 @@
1
1
  import { startTransition, useLayoutEffect, useState } from 'react'
2
2
 
3
- export type ColorScheme = 'dark' | 'light'
3
+ import { ColorScheme } from './types'
4
4
 
5
5
  export const useRootTheme = ({ fallback = 'light' }: { fallback?: ColorScheme } = {}) => {
6
6
  const [val, setVal] = useState<ColorScheme>(fallback)
package/types/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from './NextTheme';
2
- export { ColorScheme } from './useRootTheme';
2
+ export * from './types';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA"}
package/types/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type types = {};
1
+ export type ColorScheme = 'dark' | 'light';
2
2
  export interface ValueObject {
3
3
  [themeName: string]: string;
4
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG,EAAE,CAAA;AAEtB,MAAM,WAAW,WAAW;IAC1B,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAA;CAC5B"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,OAAO,CAAA;AAE1C,MAAM,WAAW,WAAW;IAC1B,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAA;CAC5B"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export type ColorScheme = 'dark' | 'light';
2
+ import { ColorScheme } from './types';
3
3
  export declare const useRootTheme: ({ fallback }?: {
4
4
  fallback?: ColorScheme | undefined;
5
5
  }) => readonly [ColorScheme, import("react").Dispatch<import("react").SetStateAction<ColorScheme>>];
@@ -1 +1 @@
1
- {"version":3,"file":"useRootTheme.d.ts","sourceRoot":"","sources":["../src/useRootTheme.tsx"],"names":[],"mappings":";AAEA,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,OAAO,CAAA;AAE1C,eAAO,MAAM,YAAY;;mGAqBxB,CAAA"}
1
+ {"version":3,"file":"useRootTheme.d.ts","sourceRoot":"","sources":["../src/useRootTheme.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAErC,eAAO,MAAM,YAAY;;mGAqBxB,CAAA"}