@tamagui/core
Advanced tools
Comparing version 1.0.0-alpha.39 to 1.0.0-alpha.40
@@ -1,2 +0,1 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
@@ -6,3 +5,2 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -24,10 +22,9 @@ var __propIsEnum = Object.prototype.propertyIsEnumerable; | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -37,9 +34,16 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var constants_exports = {}; | ||
__export(constants_exports, { | ||
GET_DEFAULT_THEME: () => GET_DEFAULT_THEME, | ||
PREFIX: () => PREFIX, | ||
stackDefaultStyles: () => stackDefaultStyles | ||
}); | ||
var import_platform = __toModule(require("./platform")); | ||
var import_platform = require("./platform"); | ||
const GET_DEFAULT_THEME = "___TGUI"; | ||
const PREFIX = `theme--`; | ||
const stackDefaultStyles = __spreadValues({ | ||
@@ -53,2 +57,3 @@ alignItems: "stretch", | ||
}); | ||
module.exports = __toCommonJS(constants_exports); | ||
//# sourceMappingURL=constants.js.map |
@@ -1,17 +0,14 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -21,6 +18,9 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var platform_exports = {}; | ||
__export(platform_exports, { | ||
isChrome: () => isChrome, | ||
@@ -34,4 +34,4 @@ isSSR: () => isSSR, | ||
}); | ||
var import_react = __toModule(require("react")); | ||
var import_react_native = __toModule(require("react-native")); | ||
var import_react = require("react"); | ||
var import_react_native = require("react-native"); | ||
var _a; | ||
@@ -45,2 +45,3 @@ const isWeb = process.env.TAMAGUI_TARGET === "web" ? true : ((_a = import_react_native.Platform) == null ? void 0 : _a.OS) === "web"; | ||
const isWebIOS = isWeb && typeof navigator !== "undefined" && (/iPad|iPhone|iPod/.test(navigator.platform) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1) && !window["MSStream"]; | ||
module.exports = __toCommonJS(platform_exports); | ||
//# sourceMappingURL=platform.js.map |
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
__export(exports, { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
} | ||
return target; | ||
}; | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var pseudos_exports = {}; | ||
__export(pseudos_exports, { | ||
pseudos: () => pseudos | ||
@@ -25,2 +41,3 @@ }); | ||
}; | ||
module.exports = __toCommonJS(pseudos_exports); | ||
//# sourceMappingURL=pseudos.js.map |
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
__export(exports, { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
} | ||
return target; | ||
}; | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var rnw_exports = {}; | ||
__export(rnw_exports, { | ||
rnw: () => rnw | ||
@@ -28,2 +44,3 @@ }); | ||
} | ||
module.exports = __toCommonJS(rnw_exports); | ||
//# sourceMappingURL=rnw.js.map |
@@ -39,10 +39,9 @@ var __create = Object.create; | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -52,6 +51,12 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
var __toESM = (module2, isNodeMode) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var createComponent_exports = {}; | ||
__export(createComponent_exports, { | ||
Spacer: () => Spacer, | ||
@@ -62,18 +67,18 @@ createComponent: () => createComponent, | ||
}); | ||
var import_helpers = __toModule(require("@tamagui/helpers")); | ||
var import_use_force_update = __toModule(require("@tamagui/use-force-update")); | ||
var import_react = __toModule(require("react")); | ||
var import_react_native = __toModule(require("react-native")); | ||
var import_constants = __toModule(require("./constants/constants")); | ||
var import_platform = __toModule(require("./constants/platform")); | ||
var import_rnw = __toModule(require("./constants/rnw")); | ||
var import_createTamagui = __toModule(require("./createTamagui")); | ||
var import_addStylesUsingClassname = __toModule(require("./helpers/addStylesUsingClassname")); | ||
var import_extendStaticConfig = __toModule(require("./helpers/extendStaticConfig")); | ||
var import_getSplitStyles = __toModule(require("./helpers/getSplitStyles")); | ||
var import_useFeatures = __toModule(require("./hooks/useFeatures")); | ||
var import_usePressable = __toModule(require("./hooks/usePressable")); | ||
var import_useTheme = __toModule(require("./hooks/useTheme")); | ||
var import_TextAncestorContext = __toModule(require("./views/TextAncestorContext")); | ||
const mouseUps = new Set(); | ||
var import_helpers = require("@tamagui/helpers"); | ||
var import_use_force_update = require("@tamagui/use-force-update"); | ||
var import_react = __toESM(require("react")); | ||
var import_react_native = require("react-native"); | ||
var import_conf = require("./conf"); | ||
var import_constants = require("./constants/constants"); | ||
var import_platform = require("./constants/platform"); | ||
var import_rnw = require("./constants/rnw"); | ||
var import_addStylesUsingClassname = require("./helpers/addStylesUsingClassname"); | ||
var import_extendStaticConfig = require("./helpers/extendStaticConfig"); | ||
var import_getSplitStyles = require("./helpers/getSplitStyles"); | ||
var import_useFeatures = require("./hooks/useFeatures"); | ||
var import_usePressable = require("./hooks/usePressable"); | ||
var import_useTheme = require("./hooks/useTheme"); | ||
var import_TextAncestorContext = require("./views/TextAncestorContext"); | ||
const mouseUps = /* @__PURE__ */ new Set(); | ||
if (typeof document !== "undefined") { | ||
@@ -418,3 +423,3 @@ document.addEventListener("mouseup", () => { | ||
}); | ||
(0, import_createTamagui.onConfiguredOnce)((conf) => { | ||
(0, import_conf.onConfiguredOnce)((conf) => { | ||
var _a; | ||
@@ -533,2 +538,3 @@ tamaguiConfig = conf; | ||
}); | ||
module.exports = __toCommonJS(createComponent_exports); | ||
//# sourceMappingURL=createComponent.js.map |
@@ -1,6 +0,4 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -10,10 +8,9 @@ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -23,9 +20,12 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var createFont_exports = {}; | ||
__export(createFont_exports, { | ||
createFont: () => createFont | ||
}); | ||
var import_validate = __toModule(require("./helpers/validate")); | ||
var import_validate = require("./helpers/validate"); | ||
const createFont = /* @__PURE__ */ __name((font) => { | ||
@@ -52,2 +52,3 @@ if (process.env.NODE_ENV === "development") { | ||
}, "createFont"); | ||
module.exports = __toCommonJS(createFont_exports); | ||
//# sourceMappingURL=createFont.js.map |
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
__export(exports, { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
} | ||
return target; | ||
}; | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var createShorthands_exports = {}; | ||
__export(createShorthands_exports, { | ||
createShorthands: () => createShorthands | ||
@@ -16,2 +32,3 @@ }); | ||
__name(createShorthands, "createShorthands"); | ||
module.exports = __toCommonJS(createShorthands_exports); | ||
//# sourceMappingURL=createShorthands.js.map |
@@ -1,2 +0,1 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
@@ -8,3 +7,2 @@ var __defProps = Object.defineProperties; | ||
var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -28,10 +26,9 @@ var __propIsEnum = Object.prototype.propertyIsEnumerable; | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -41,38 +38,24 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
createTamagui: () => createTamagui, | ||
getHasConfigured: () => getHasConfigured, | ||
getTamagui: () => getTamagui, | ||
getThemeParentClassName: () => getThemeParentClassName, | ||
getThemes: () => getThemes, | ||
getTokens: () => getTokens, | ||
onConfiguredOnce: () => onConfiguredOnce | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var createTamagui_exports = {}; | ||
__export(createTamagui_exports, { | ||
createTamagui: () => createTamagui | ||
}); | ||
var import_helpers = __toModule(require("@tamagui/helpers")); | ||
var import_platform = __toModule(require("./constants/platform")); | ||
var import_createVariable = __toModule(require("./createVariable")); | ||
var import_createTamaguiProvider = __toModule(require("./helpers/createTamaguiProvider")); | ||
var import_useMedia = __toModule(require("./hooks/useMedia")); | ||
let conf; | ||
const getHasConfigured = /* @__PURE__ */ __name(() => !!conf, "getHasConfigured"); | ||
const getTamagui = /* @__PURE__ */ __name(() => conf, "getTamagui"); | ||
const getTokens = /* @__PURE__ */ __name(() => conf.tokensParsed, "getTokens"); | ||
const getThemes = /* @__PURE__ */ __name(() => conf.themes, "getThemes"); | ||
const configListeners = new Set(); | ||
const onConfiguredOnce = /* @__PURE__ */ __name((cb) => { | ||
if (conf) { | ||
cb(conf); | ||
} else { | ||
configListeners.add(cb); | ||
} | ||
}, "onConfiguredOnce"); | ||
const PREFIX = `theme--`; | ||
var import_helpers = require("@tamagui/helpers"); | ||
var import_conf = require("./conf"); | ||
var import_constants = require("./constants/constants"); | ||
var import_platform = require("./constants/platform"); | ||
var import_createVariable = require("./createVariable"); | ||
var import_createTamaguiProvider = require("./helpers/createTamaguiProvider"); | ||
var import_useMedia = require("./hooks/useMedia"); | ||
const createdConfigs = /* @__PURE__ */ new WeakMap(); | ||
function createTamagui(config) { | ||
if (config["parsed"]) { | ||
if (createdConfigs.has(config)) { | ||
return config; | ||
} | ||
if (conf) { | ||
if ((0, import_conf.getHasConfigured)()) { | ||
console.warn("Called createTamagui twice! Should never do so"); | ||
@@ -87,3 +70,3 @@ } | ||
let cssRules = []; | ||
const varsByValue = new Map(); | ||
const varsByValue = /* @__PURE__ */ new Map(); | ||
if (import_platform.isWeb) { | ||
@@ -132,6 +115,6 @@ let tokenRule = `:root {`; | ||
const oppositeName = parentName === "dark" ? "light" : "dark"; | ||
const cssParentSel = parentName ? `.${PREFIX}${parentName}` : ""; | ||
const cssChildSel = `.${PREFIX}${themeClassName}`; | ||
const cssParentSel = parentName ? `.${import_constants.PREFIX}${parentName}` : ""; | ||
const cssChildSel = `.${import_constants.PREFIX}${themeClassName}`; | ||
const cssSel = `${cssParentSel} ${cssChildSel}`; | ||
const cssRule = `${cssSel}, .${PREFIX}${oppositeName} ${cssSel} { | ||
const cssRule = `${cssSel}, .${import_constants.PREFIX}${oppositeName} ${cssSel} { | ||
${vars} | ||
@@ -157,3 +140,4 @@ }`; | ||
const next = __spreadProps(__spreadValues({ | ||
shorthands: {} | ||
shorthands: {}, | ||
media: {} | ||
}, config), { | ||
@@ -172,14 +156,11 @@ Provider: (0, import_createTamaguiProvider.createTamaguiProvider)(__spreadValues({ | ||
}); | ||
conf = next; | ||
if (configListeners.size) { | ||
configListeners.forEach((cb) => cb(next)); | ||
configListeners.clear(); | ||
(0, import_conf.setConfig)(next); | ||
if (import_conf.configListeners.size) { | ||
import_conf.configListeners.forEach((cb) => cb(next)); | ||
import_conf.configListeners.clear(); | ||
} | ||
createdConfigs.set(next, true); | ||
return next; | ||
} | ||
__name(createTamagui, "createTamagui"); | ||
function getThemeParentClassName(themeName) { | ||
return `theme-parent ${themeName ? `${PREFIX}${themeName}` : ""}`; | ||
} | ||
__name(getThemeParentClassName, "getThemeParentClassName"); | ||
const parseTokens = /* @__PURE__ */ __name((tokens) => { | ||
@@ -230,2 +211,3 @@ const res = {}; | ||
__name(ensureThemeVariable, "ensureThemeVariable"); | ||
module.exports = __toCommonJS(createTamagui_exports); | ||
//# sourceMappingURL=createTamagui.js.map |
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
__export(exports, { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
} | ||
return target; | ||
}; | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var createTheme_exports = {}; | ||
__export(createTheme_exports, { | ||
createTheme: () => createTheme | ||
}); | ||
const createTheme = /* @__PURE__ */ __name((theme) => theme, "createTheme"); | ||
module.exports = __toCommonJS(createTheme_exports); | ||
//# sourceMappingURL=createTheme.js.map |
@@ -1,6 +0,4 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -10,10 +8,9 @@ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -23,11 +20,14 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var createTokens_exports = {}; | ||
__export(createTokens_exports, { | ||
createTokens: () => createTokens, | ||
mapTokensToVariables: () => mapTokensToVariables | ||
}); | ||
var import_createVariable = __toModule(require("./createVariable")); | ||
var import_validate = __toModule(require("./helpers/validate")); | ||
var import_createVariable = require("./createVariable"); | ||
var import_validate = require("./helpers/validate"); | ||
function createTokens(tokens) { | ||
@@ -57,2 +57,3 @@ if (process.env.NODE_ENV === "development") { | ||
}, "mapTokensToVariables"); | ||
module.exports = __toCommonJS(createTokens_exports); | ||
//# sourceMappingURL=createTokens.js.map |
@@ -1,6 +0,4 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -10,10 +8,9 @@ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -23,6 +20,9 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var createVariable_exports = {}; | ||
__export(createVariable_exports, { | ||
Variable: () => Variable, | ||
@@ -32,3 +32,3 @@ createVariable: () => createVariable, | ||
}); | ||
var import_platform = __toModule(require("./constants/platform")); | ||
var import_platform = require("./constants/platform"); | ||
class Variable { | ||
@@ -50,2 +50,3 @@ constructor({ val, name }) { | ||
__name(isVariable, "isVariable"); | ||
module.exports = __toCommonJS(createVariable_exports); | ||
//# sourceMappingURL=createVariable.js.map |
@@ -1,6 +0,4 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -10,10 +8,9 @@ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -23,13 +20,16 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var addStylesUsingClassname_exports = {}; | ||
__export(addStylesUsingClassname_exports, { | ||
addStylesUsingClassname: () => addStylesUsingClassname, | ||
useStylesAsClassname: () => useStylesAsClassname | ||
}); | ||
var import_react = __toModule(require("react")); | ||
var import_getStylesAtomic = __toModule(require("./getStylesAtomic")); | ||
var import_insertStyleRule = __toModule(require("./insertStyleRule")); | ||
let added = new Set(); | ||
var import_react = require("react"); | ||
var import_getStylesAtomic = require("./getStylesAtomic"); | ||
var import_insertStyleRule = require("./insertStyleRule"); | ||
let added = /* @__PURE__ */ new Set(); | ||
function useStylesAsClassname(styles) { | ||
@@ -81,2 +81,3 @@ if (!import_react.useInsertionEffect) { | ||
__name(addStylesUsingClassname, "addStylesUsingClassname"); | ||
module.exports = __toCommonJS(addStylesUsingClassname_exports); | ||
//# sourceMappingURL=addStylesUsingClassname.js.map |
@@ -1,6 +0,4 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -10,10 +8,9 @@ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -23,10 +20,13 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var createMediaStyle_exports = {}; | ||
__export(createMediaStyle_exports, { | ||
MEDIA_SEP: () => MEDIA_SEP, | ||
createMediaStyle: () => createMediaStyle | ||
}); | ||
var import_useMedia = __toModule(require("../hooks/useMedia")); | ||
var import_useMedia = require("../hooks/useMedia"); | ||
const MEDIA_SEP = "_"; | ||
@@ -58,2 +58,3 @@ const createMediaStyle = /* @__PURE__ */ __name(({ identifier, rules }, mediaKey, mediaQueries, negate, importance = 0) => { | ||
}, "createMediaStyle"); | ||
module.exports = __toCommonJS(createMediaStyle_exports); | ||
//# sourceMappingURL=createMediaStyle.js.map |
@@ -1,2 +0,1 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
@@ -6,3 +5,2 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -25,10 +23,9 @@ var __propIsEnum = Object.prototype.propertyIsEnumerable; | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -38,12 +35,15 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var createPropMapper_exports = {}; | ||
__export(createPropMapper_exports, { | ||
createPropMapper: () => createPropMapper | ||
}); | ||
var import_platform = __toModule(require("../constants/platform")); | ||
var import_createTamagui = __toModule(require("../createTamagui")); | ||
var import_createVariable = __toModule(require("../createVariable")); | ||
var import_isObj = __toModule(require("./isObj")); | ||
var import_conf = require("../conf"); | ||
var import_platform = require("../constants/platform"); | ||
var import_createVariable = require("../createVariable"); | ||
var import_isObj = require("./isObj"); | ||
const createPropMapper = /* @__PURE__ */ __name((c) => { | ||
@@ -54,3 +54,3 @@ const variants = c.variants; | ||
return (key, value, theme, props) => { | ||
const conf = (0, import_createTamagui.getTamagui)(); | ||
const conf = (0, import_conf.getTamagui)(); | ||
if (!conf) { | ||
@@ -201,2 +201,3 @@ console.trace("no conf! err"); | ||
__name(parseVariants, "parseVariants"); | ||
module.exports = __toCommonJS(createPropMapper_exports); | ||
//# sourceMappingURL=createPropMapper.js.map |
@@ -36,10 +36,9 @@ var __create = Object.create; | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -49,11 +48,17 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
var __toESM = (module2, isNodeMode) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var createTamaguiProvider_exports = {}; | ||
__export(createTamaguiProvider_exports, { | ||
createTamaguiProvider: () => createTamaguiProvider | ||
}); | ||
var React = __toModule(require("react")); | ||
var import_TextAncestorContext = __toModule(require("../views/TextAncestorContext")); | ||
var import_ThemeProvider = __toModule(require("../views/ThemeProvider")); | ||
var React = __toESM(require("react")); | ||
var import_TextAncestorContext = require("../views/TextAncestorContext"); | ||
var import_ThemeProvider = require("../views/ThemeProvider"); | ||
function createTamaguiProvider(themeProps) { | ||
@@ -76,2 +81,3 @@ return /* @__PURE__ */ __name(function TamaguiProvider(_a) { | ||
__name(createTamaguiProvider, "createTamaguiProvider"); | ||
module.exports = __toCommonJS(createTamaguiProvider_exports); | ||
//# sourceMappingURL=createTamaguiProvider.js.map |
@@ -1,2 +0,1 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
@@ -8,3 +7,2 @@ var __defProps = Object.defineProperties; | ||
var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -28,10 +26,9 @@ var __propIsEnum = Object.prototype.propertyIsEnumerable; | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -41,10 +38,13 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var extendStaticConfig_exports = {}; | ||
__export(extendStaticConfig_exports, { | ||
extendStaticConfig: () => extendStaticConfig, | ||
parseStaticConfig: () => parseStaticConfig | ||
}); | ||
var import_createPropMapper = __toModule(require("./createPropMapper")); | ||
var import_createPropMapper = require("./createPropMapper"); | ||
function extendStaticConfig(Component, config = {}) { | ||
@@ -85,2 +85,3 @@ const parent = Component || {}; | ||
}, "parseStaticConfig"); | ||
module.exports = __toCommonJS(extendStaticConfig_exports); | ||
//# sourceMappingURL=extendStaticConfig.js.map |
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
__export(exports, { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
} | ||
return target; | ||
}; | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var fixNativeShadow_exports = {}; | ||
__export(fixNativeShadow_exports, { | ||
fixNativeShadow: () => fixNativeShadow | ||
@@ -14,2 +30,3 @@ }); | ||
}, "fixNativeShadow"); | ||
module.exports = __toCommonJS(fixNativeShadow_exports); | ||
//# sourceMappingURL=fixNativeShadow.js.map |
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
__export(exports, { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
} | ||
return target; | ||
}; | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var fixNativeShadow_native_exports = {}; | ||
__export(fixNativeShadow_native_exports, { | ||
fixNativeShadow: () => fixNativeShadow | ||
@@ -40,2 +56,3 @@ }); | ||
__name(fixNativeShadow, "fixNativeShadow"); | ||
module.exports = __toCommonJS(fixNativeShadow_native_exports); | ||
//# sourceMappingURL=fixNativeShadow.native.js.map |
@@ -1,2 +0,1 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
@@ -6,3 +5,2 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -25,10 +23,9 @@ var __propIsEnum = Object.prototype.propertyIsEnumerable; | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -38,15 +35,18 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var getSplitStyles_exports = {}; | ||
__export(getSplitStyles_exports, { | ||
getSplitStyles: () => getSplitStyles | ||
}); | ||
var import_helpers = __toModule(require("@tamagui/helpers")); | ||
var import_platform = __toModule(require("../constants/platform")); | ||
var import_useMedia = __toModule(require("../hooks/useMedia")); | ||
var import_createMediaStyle = __toModule(require("./createMediaStyle")); | ||
var import_fixNativeShadow = __toModule(require("./fixNativeShadow")); | ||
var import_getStylesAtomic = __toModule(require("./getStylesAtomic")); | ||
var import_insertStyleRule = __toModule(require("./insertStyleRule")); | ||
var import_helpers = require("@tamagui/helpers"); | ||
var import_platform = require("../constants/platform"); | ||
var import_useMedia = require("../hooks/useMedia"); | ||
var import_createMediaStyle = require("./createMediaStyle"); | ||
var import_fixNativeShadow = require("./fixNativeShadow"); | ||
var import_getStylesAtomic = require("./getStylesAtomic"); | ||
var import_insertStyleRule = require("./insertStyleRule"); | ||
const getSplitStyles = /* @__PURE__ */ __name((props, staticConfig, theme, isSplittingDefaultProps) => { | ||
@@ -183,2 +183,3 @@ const validStyleProps = staticConfig.isText ? import_helpers.stylePropsText : import_helpers.validStyles; | ||
}, "mergeTransform"); | ||
module.exports = __toCommonJS(getSplitStyles_exports); | ||
//# sourceMappingURL=getSplitStyles.js.map |
@@ -1,2 +0,1 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
@@ -6,3 +5,2 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -25,10 +23,9 @@ var __propIsEnum = Object.prototype.propertyIsEnumerable; | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -38,11 +35,14 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var getStylesAtomic_exports = {}; | ||
__export(getStylesAtomic_exports, { | ||
getStylesAtomic: () => getStylesAtomic | ||
}); | ||
var import_helpers = __toModule(require("@tamagui/helpers")); | ||
var import_pseudos = __toModule(require("../constants/pseudos")); | ||
var import_rnw = __toModule(require("../constants/rnw")); | ||
var import_helpers = require("@tamagui/helpers"); | ||
var import_pseudos = require("../constants/pseudos"); | ||
var import_rnw = require("../constants/rnw"); | ||
const generateStyle = /* @__PURE__ */ __name((style) => { | ||
@@ -120,2 +120,3 @@ const { atomic, createCompileableStyle, createReactDOMStyle, i18Style } = import_rnw.rnw; | ||
__name(getAtomicStyle, "getAtomicStyle"); | ||
module.exports = __toCommonJS(getStylesAtomic_exports); | ||
//# sourceMappingURL=getStylesAtomic.js.map |
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
__export(exports, { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
} | ||
return target; | ||
}; | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var getStylesAtomic_native_exports = {}; | ||
__export(getStylesAtomic_native_exports, { | ||
getStylesAtomic: () => getStylesAtomic | ||
@@ -16,2 +32,3 @@ }); | ||
__name(getStylesAtomic, "getStylesAtomic"); | ||
module.exports = __toCommonJS(getStylesAtomic_native_exports); | ||
//# sourceMappingURL=getStylesAtomic.native.js.map |
@@ -1,6 +0,4 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -10,10 +8,9 @@ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -23,9 +20,12 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var insertStyleRule_exports = {}; | ||
__export(insertStyleRule_exports, { | ||
insertStyleRule: () => insertStyleRule | ||
}); | ||
var import_platform = __toModule(require("../constants/platform")); | ||
var import_platform = require("../constants/platform"); | ||
function insertStyleRule(rule) { | ||
@@ -48,2 +48,3 @@ if (typeof window === "undefined") { | ||
__name(insertStyleRule, "insertStyleRule"); | ||
module.exports = __toCommonJS(insertStyleRule_exports); | ||
//# sourceMappingURL=insertStyleRule.js.map |
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
__export(exports, { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
} | ||
return target; | ||
}; | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var isObj_exports = {}; | ||
__export(isObj_exports, { | ||
isObj: () => isObj | ||
}); | ||
const isObj = /* @__PURE__ */ __name((x) => x && !Array.isArray(x) && typeof x === "object", "isObj"); | ||
module.exports = __toCommonJS(isObj_exports); | ||
//# sourceMappingURL=isObj.js.map |
@@ -1,6 +0,4 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -10,10 +8,9 @@ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -23,9 +20,12 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var isTamaguiElement_exports = {}; | ||
__export(isTamaguiElement_exports, { | ||
isTamaguiElement: () => isTamaguiElement | ||
}); | ||
var import_react = __toModule(require("react")); | ||
var import_react = require("react"); | ||
const isTamaguiElement = /* @__PURE__ */ __name((child) => { | ||
@@ -35,2 +35,3 @@ var _a; | ||
}, "isTamaguiElement"); | ||
module.exports = __toCommonJS(isTamaguiElement_exports); | ||
//# sourceMappingURL=isTamaguiElement.js.map |
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
__export(exports, { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
} | ||
return target; | ||
}; | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var matchMedia_exports = {}; | ||
__export(matchMedia_exports, { | ||
matchMedia: () => matchMedia | ||
@@ -24,2 +40,3 @@ }); | ||
}, "matchMediaFallback"); | ||
module.exports = __toCommonJS(matchMedia_exports); | ||
//# sourceMappingURL=matchMedia.js.map |
@@ -10,10 +10,9 @@ var __create = Object.create; | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -23,11 +22,18 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
var __toESM = (module2, isNodeMode) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var matchMedia_native_exports = {}; | ||
__export(matchMedia_native_exports, { | ||
matchMedia: () => matchMedia | ||
}); | ||
var import_MediaQueryList = __toModule(require("@expo/match-media/build/MediaQueryList.js")); | ||
var import_MediaQueryList = __toESM(require("@expo/match-media/build/MediaQueryList.js")); | ||
const matchMedia = /* @__PURE__ */ __name((media) => new import_MediaQueryList.default(media), "matchMedia"); | ||
globalThis["matchMedia"] = matchMedia; | ||
module.exports = __toCommonJS(matchMedia_native_exports); | ||
//# sourceMappingURL=matchMedia.native.js.map |
@@ -39,10 +39,9 @@ var __create = Object.create; | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -52,11 +51,17 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
var __toESM = (module2, isNodeMode) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var themeable_exports = {}; | ||
__export(themeable_exports, { | ||
themeable: () => themeable | ||
}); | ||
var import_react = __toModule(require("react")); | ||
var import_Theme = __toModule(require("../views/Theme")); | ||
var import_ThemeInverse = __toModule(require("../views/ThemeInverse")); | ||
var import_react = __toESM(require("react")); | ||
var import_Theme = require("../views/Theme"); | ||
var import_ThemeInverse = require("../views/ThemeInverse"); | ||
const themeable = /* @__PURE__ */ __name(function graphql(component) { | ||
@@ -80,2 +85,3 @@ const withThemeComponent = (0, import_react.forwardRef)(/* @__PURE__ */ __name(function WithTheme(_a, ref) { | ||
}, "graphql"); | ||
module.exports = __toCommonJS(themeable_exports); | ||
//# sourceMappingURL=themeable.js.map |
@@ -10,10 +10,9 @@ var __create = Object.create; | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -23,6 +22,12 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
var __toESM = (module2, isNodeMode) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var validate_exports = {}; | ||
__export(validate_exports, { | ||
validateConfig: () => validateConfig, | ||
@@ -32,3 +37,3 @@ validateFont: () => validateFont, | ||
}); | ||
var import_ow = __toModule(require("@tamagui/ow")); | ||
var import_ow = __toESM(require("@tamagui/ow")); | ||
const validateConfig = /* @__PURE__ */ __name((conf) => { | ||
@@ -85,2 +90,3 @@ if (!conf) { | ||
}, "validateFont"); | ||
module.exports = __toCommonJS(validate_exports); | ||
//# sourceMappingURL=validate.js.map |
@@ -1,6 +0,4 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -10,10 +8,9 @@ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -23,9 +20,12 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var useConstant_exports = {}; | ||
__export(useConstant_exports, { | ||
useConstant: () => useConstant | ||
}); | ||
var import_react = __toModule(require("react")); | ||
var import_react = require("react"); | ||
function useConstant(fn) { | ||
@@ -39,2 +39,3 @@ const ref = (0, import_react.useRef)(); | ||
__name(useConstant, "useConstant"); | ||
module.exports = __toCommonJS(useConstant_exports); | ||
//# sourceMappingURL=useConstant.js.map |
@@ -27,10 +27,9 @@ var __create = Object.create; | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -40,11 +39,17 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
var __toESM = (module2, isNodeMode) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var useFeatures_exports = {}; | ||
__export(useFeatures_exports, { | ||
useFeatures: () => useFeatures | ||
}); | ||
var import_react = __toModule(require("react")); | ||
var import_platform = __toModule(require("../constants/platform")); | ||
var import_useMedia = __toModule(require("./useMedia")); | ||
var import_react = __toESM(require("react")); | ||
var import_platform = require("../constants/platform"); | ||
var import_useMedia = require("./useMedia"); | ||
const createDefinition = /* @__PURE__ */ __name(({ | ||
@@ -102,2 +107,3 @@ Component, | ||
__name(loadMediaQueryFeature, "loadMediaQueryFeature"); | ||
module.exports = __toCommonJS(useFeatures_exports); | ||
//# sourceMappingURL=useFeatures.js.map |
@@ -1,2 +0,1 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
@@ -6,3 +5,2 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -25,10 +23,9 @@ var __propIsEnum = Object.prototype.propertyIsEnumerable; | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -38,6 +35,9 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var useMedia_exports = {}; | ||
__export(useMedia_exports, { | ||
addMediaQueryListener: () => addMediaQueryListener, | ||
@@ -52,11 +52,11 @@ configureMedia: () => configureMedia, | ||
}); | ||
var import_use_force_update = __toModule(require("@tamagui/use-force-update")); | ||
var import_react = __toModule(require("react")); | ||
var import_platform = __toModule(require("../constants/platform")); | ||
var import_matchMedia = __toModule(require("../helpers/matchMedia")); | ||
var import_useConstant = __toModule(require("./useConstant")); | ||
var import_use_force_update = require("@tamagui/use-force-update"); | ||
var import_react = require("react"); | ||
var import_platform = require("../constants/platform"); | ||
var import_matchMedia = require("../helpers/matchMedia"); | ||
var import_useConstant = require("./useConstant"); | ||
const mediaState = {}; | ||
const mediaQueryListeners = {}; | ||
const addMediaQueryListener = /* @__PURE__ */ __name((key, cb) => { | ||
mediaQueryListeners[key] = mediaQueryListeners[key] || new Set(); | ||
mediaQueryListeners[key] = mediaQueryListeners[key] || /* @__PURE__ */ new Set(); | ||
mediaQueryListeners[key].add(cb); | ||
@@ -72,3 +72,3 @@ }, "addMediaQueryListener"); | ||
if (!conf) { | ||
console.warn("Warning: accessing media query before init"); | ||
console.warn("Tamagui warning: accessing media query before init"); | ||
return null; | ||
@@ -80,3 +80,3 @@ } | ||
if (!conf) { | ||
console.warn("Warning: accessing media query before init"); | ||
console.warn("Tamagui warning: accessing media query before init"); | ||
return []; | ||
@@ -213,2 +213,3 @@ } | ||
__name(mediaObjectToString, "mediaObjectToString"); | ||
module.exports = __toCommonJS(useMedia_exports); | ||
//# sourceMappingURL=useMedia.js.map |
@@ -1,2 +0,1 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
@@ -6,3 +5,2 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -25,10 +23,9 @@ var __propIsEnum = Object.prototype.propertyIsEnumerable; | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -38,9 +35,12 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var usePressable_exports = {}; | ||
__export(usePressable_exports, { | ||
usePressable: () => usePressable | ||
}); | ||
var import_react_native = __toModule(require("react-native")); | ||
var import_react_native = require("react-native"); | ||
var _a, _b; | ||
@@ -53,2 +53,3 @@ const getPressable = (_b = (_a = import_react_native.Pressable) == null ? void 0 : _a["type"]) == null ? void 0 : _b["render"]; | ||
}, "usePressable"); | ||
module.exports = __toCommonJS(usePressable_exports); | ||
//# sourceMappingURL=usePressable.js.map |
@@ -1,6 +0,4 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -10,10 +8,9 @@ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -23,6 +20,9 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var useTheme_exports = {}; | ||
__export(useTheme_exports, { | ||
useDefaultThemeName: () => useDefaultThemeName, | ||
@@ -32,9 +32,9 @@ useTheme: () => useTheme, | ||
}); | ||
var import_use_force_update = __toModule(require("@tamagui/use-force-update")); | ||
var import_react = __toModule(require("react")); | ||
var import_platform = __toModule(require("../constants/platform")); | ||
var import_createVariable = __toModule(require("../createVariable")); | ||
var import_ThemeContext = __toModule(require("../views/ThemeContext")); | ||
var import_ThemeManagerContext = __toModule(require("../views/ThemeManagerContext")); | ||
var import_ThemeProvider = __toModule(require("../views/ThemeProvider")); | ||
var import_use_force_update = require("@tamagui/use-force-update"); | ||
var import_react = require("react"); | ||
var import_constants = require("../constants/constants"); | ||
var import_platform = require("../constants/platform"); | ||
var import_createVariable = require("../createVariable"); | ||
var import_ThemeContext = require("../views/ThemeContext"); | ||
var import_ThemeManagerContext = require("../views/ThemeManagerContext"); | ||
const areEqualSets = /* @__PURE__ */ __name((a, b) => { | ||
@@ -61,3 +61,3 @@ if (a.size !== b.size) | ||
const useDefaultThemeName = /* @__PURE__ */ __name(() => { | ||
return (0, import_react.useContext)(import_ThemeContext.ThemeContext)[import_ThemeProvider.GET_DEFAULT_THEME]; | ||
return (0, import_react.useContext)(import_ThemeContext.ThemeContext)[import_constants.GET_DEFAULT_THEME]; | ||
}, "useDefaultThemeName"); | ||
@@ -72,3 +72,3 @@ const useTheme = /* @__PURE__ */ __name(() => { | ||
uuid: {}, | ||
keys: new Set(), | ||
keys: /* @__PURE__ */ new Set(), | ||
isRendering: true | ||
@@ -123,2 +123,3 @@ }; | ||
}, "useTheme"); | ||
module.exports = __toCommonJS(useTheme_exports); | ||
//# sourceMappingURL=useTheme.js.map |
@@ -1,17 +0,14 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -21,36 +18,47 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
createTokens: () => import_createTokens.createTokens | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var src_exports = {}; | ||
__export(src_exports, { | ||
createTokens: () => import_createTokens.createTokens, | ||
getHasConfigured: () => import_conf.getHasConfigured, | ||
getTamagui: () => import_conf.getTamagui, | ||
getThemes: () => import_conf.getThemes, | ||
getTokens: () => import_conf.getTokens, | ||
onConfiguredOnce: () => import_conf.onConfiguredOnce | ||
}); | ||
__reExport(exports, __toModule(require("./createComponent"))); | ||
__reExport(exports, __toModule(require("./createShorthands"))); | ||
__reExport(exports, __toModule(require("./createTheme"))); | ||
__reExport(exports, __toModule(require("./createTamagui"))); | ||
__reExport(exports, __toModule(require("./createFont"))); | ||
var import_createTokens = __toModule(require("./createTokens")); | ||
__reExport(exports, __toModule(require("./createVariable"))); | ||
__reExport(exports, __toModule(require("./styled"))); | ||
__reExport(exports, __toModule(require("./types"))); | ||
__reExport(exports, __toModule(require("./constants/pseudos"))); | ||
__reExport(exports, __toModule(require("./constants/constants"))); | ||
__reExport(exports, __toModule(require("./constants/platform"))); | ||
__reExport(exports, __toModule(require("./constants/rnw"))); | ||
__reExport(exports, __toModule(require("./helpers/isObj"))); | ||
__reExport(exports, __toModule(require("./helpers/getStylesAtomic"))); | ||
__reExport(exports, __toModule(require("./helpers/matchMedia"))); | ||
__reExport(exports, __toModule(require("./helpers/themeable"))); | ||
__reExport(exports, __toModule(require("./helpers/isTamaguiElement"))); | ||
__reExport(exports, __toModule(require("./hooks/useConstant"))); | ||
__reExport(exports, __toModule(require("./hooks/useMedia"))); | ||
__reExport(exports, __toModule(require("./hooks/useTheme"))); | ||
__reExport(exports, __toModule(require("./views/Animated"))); | ||
__reExport(exports, __toModule(require("./views/Stack"))); | ||
__reExport(exports, __toModule(require("./views/Text"))); | ||
__reExport(exports, __toModule(require("./views/Theme"))); | ||
__reExport(exports, __toModule(require("./views/ThemeInverse"))); | ||
__reExport(exports, __toModule(require("./views/ThemeProvider"))); | ||
__reExport(exports, __toModule(require("./views/TextAncestorContext"))); | ||
__reExport(src_exports, require("./createComponent")); | ||
__reExport(src_exports, require("./createShorthands")); | ||
__reExport(src_exports, require("./createTheme")); | ||
__reExport(src_exports, require("./createTamagui")); | ||
__reExport(src_exports, require("./createFont")); | ||
var import_createTokens = require("./createTokens"); | ||
__reExport(src_exports, require("./createVariable")); | ||
__reExport(src_exports, require("./styled")); | ||
__reExport(src_exports, require("./types")); | ||
var import_conf = require("./conf"); | ||
__reExport(src_exports, require("./constants/pseudos")); | ||
__reExport(src_exports, require("./constants/constants")); | ||
__reExport(src_exports, require("./constants/platform")); | ||
__reExport(src_exports, require("./constants/rnw")); | ||
__reExport(src_exports, require("./helpers/getThemeParentClassName")); | ||
__reExport(src_exports, require("./helpers/isObj")); | ||
__reExport(src_exports, require("./helpers/getStylesAtomic")); | ||
__reExport(src_exports, require("./helpers/matchMedia")); | ||
__reExport(src_exports, require("./helpers/themeable")); | ||
__reExport(src_exports, require("./helpers/isTamaguiElement")); | ||
__reExport(src_exports, require("./hooks/useConstant")); | ||
__reExport(src_exports, require("./hooks/useMedia")); | ||
__reExport(src_exports, require("./hooks/useTheme")); | ||
__reExport(src_exports, require("./views/Animated")); | ||
__reExport(src_exports, require("./views/Stack")); | ||
__reExport(src_exports, require("./views/Text")); | ||
__reExport(src_exports, require("./views/Theme")); | ||
__reExport(src_exports, require("./views/ThemeInverse")); | ||
__reExport(src_exports, require("./views/ThemeProvider")); | ||
__reExport(src_exports, require("./views/TextAncestorContext")); | ||
module.exports = __toCommonJS(src_exports); | ||
//# sourceMappingURL=index.js.map |
@@ -1,12 +0,10 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -16,20 +14,23 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__markAsModule(exports); | ||
__reExport(exports, __toModule(require("./styled"))); | ||
__reExport(exports, __toModule(require("./createComponent"))); | ||
__reExport(exports, __toModule(require("./createFont"))); | ||
__reExport(exports, __toModule(require("./createTokens"))); | ||
__reExport(exports, __toModule(require("./createTamagui"))); | ||
__reExport(exports, __toModule(require("./constants/constants"))); | ||
__reExport(exports, __toModule(require("./hooks/useMedia"))); | ||
__reExport(exports, __toModule(require("./hooks/useTheme"))); | ||
__reExport(exports, __toModule(require("./helpers/isObj"))); | ||
__reExport(exports, __toModule(require("./helpers/getStylesAtomic"))); | ||
__reExport(exports, __toModule(require("./helpers/getSplitStyles"))); | ||
__reExport(exports, __toModule(require("@tamagui/helpers"))); | ||
__reExport(exports, __toModule(require("./constants/pseudos"))); | ||
__reExport(exports, __toModule(require("./static/postProcessStyles"))); | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var static_exports = {}; | ||
__reExport(static_exports, require("./styled")); | ||
__reExport(static_exports, require("./createComponent")); | ||
__reExport(static_exports, require("./createFont")); | ||
__reExport(static_exports, require("./createTokens")); | ||
__reExport(static_exports, require("./createTamagui")); | ||
__reExport(static_exports, require("./constants/constants")); | ||
__reExport(static_exports, require("./hooks/useMedia")); | ||
__reExport(static_exports, require("./hooks/useTheme")); | ||
__reExport(static_exports, require("./helpers/isObj")); | ||
__reExport(static_exports, require("./helpers/getStylesAtomic")); | ||
__reExport(static_exports, require("./helpers/getSplitStyles")); | ||
__reExport(static_exports, require("@tamagui/helpers")); | ||
__reExport(static_exports, require("./constants/pseudos")); | ||
__reExport(static_exports, require("./static/postProcessStyles")); | ||
module.exports = __toCommonJS(static_exports); | ||
//# sourceMappingURL=static.js.map |
@@ -1,6 +0,4 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -10,10 +8,9 @@ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -23,9 +20,12 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var postProcessStyles_exports = {}; | ||
__export(postProcessStyles_exports, { | ||
postProcessStyles: () => postProcessStyles | ||
}); | ||
var import_getSplitStyles = __toModule(require("../helpers/getSplitStyles")); | ||
var import_getSplitStyles = require("../helpers/getSplitStyles"); | ||
const postProcessStyles = /* @__PURE__ */ __name((inStyles, staticConfig, theme) => { | ||
@@ -42,2 +42,3 @@ const { style, viewProps, pseudos, classNames } = (0, import_getSplitStyles.getSplitStyles)(inStyles, staticConfig, theme); | ||
}, "postProcessStyles"); | ||
module.exports = __toCommonJS(postProcessStyles_exports); | ||
//# sourceMappingURL=postProcessStyles.js.map |
@@ -1,2 +0,1 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
@@ -8,3 +7,2 @@ var __defProps = Object.defineProperties; | ||
var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -40,10 +38,9 @@ var __propIsEnum = Object.prototype.propertyIsEnumerable; | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -53,10 +50,13 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var styled_exports = {}; | ||
__export(styled_exports, { | ||
styled: () => styled | ||
}); | ||
var import_createComponent = __toModule(require("./createComponent")); | ||
var import_extendStaticConfig = __toModule(require("./helpers/extendStaticConfig")); | ||
var import_createComponent = require("./createComponent"); | ||
var import_extendStaticConfig = require("./helpers/extendStaticConfig"); | ||
function styled(Component, options, staticExtractionOptions) { | ||
@@ -75,2 +75,3 @@ const staticConfigProps = (() => { | ||
__name(styled, "styled"); | ||
module.exports = __toCommonJS(styled_exports); | ||
//# sourceMappingURL=styled.js.map |
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
__markAsModule(exports); | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
} | ||
return target; | ||
}; | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var types_exports = {}; | ||
module.exports = __toCommonJS(types_exports); | ||
//# sourceMappingURL=types.js.map |
@@ -36,10 +36,9 @@ var __create = Object.create; | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -49,13 +48,19 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
var __toESM = (module2, isNodeMode) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var Animated_exports = {}; | ||
__export(Animated_exports, { | ||
AnimatedStack: () => AnimatedStack | ||
}); | ||
var import_react = __toModule(require("react")); | ||
var import_react_native = __toModule(require("react-native")); | ||
var import_platform = __toModule(require("../constants/platform")); | ||
var import_useConstant = __toModule(require("../hooks/useConstant")); | ||
var import_Stack = __toModule(require("./Stack")); | ||
var import_react = __toESM(require("react")); | ||
var import_react_native = require("react-native"); | ||
var import_platform = require("../constants/platform"); | ||
var import_useConstant = require("../hooks/useConstant"); | ||
var import_Stack = require("./Stack"); | ||
const defaultAnimation = { | ||
@@ -131,2 +136,3 @@ from: { | ||
}, "AnimatedStack"); | ||
module.exports = __toCommonJS(Animated_exports); | ||
//# sourceMappingURL=Animated.js.map |
@@ -1,2 +0,1 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
@@ -8,3 +7,2 @@ var __defProps = Object.defineProperties; | ||
var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -27,10 +25,9 @@ var __propIsEnum = Object.prototype.propertyIsEnumerable; | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -40,10 +37,13 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var Stack_exports = {}; | ||
__export(Stack_exports, { | ||
Stack: () => Stack | ||
}); | ||
var import_constants = __toModule(require("../constants/constants")); | ||
var import_createComponent = __toModule(require("../createComponent")); | ||
var import_constants = require("../constants/constants"); | ||
var import_createComponent = require("../createComponent"); | ||
const Stack = (0, import_createComponent.createComponent)({ | ||
@@ -54,2 +54,3 @@ defaultProps: __spreadProps(__spreadValues({}, import_constants.stackDefaultStyles), { | ||
}); | ||
module.exports = __toCommonJS(Stack_exports); | ||
//# sourceMappingURL=Stack.js.map |
@@ -1,2 +0,1 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
@@ -6,3 +5,2 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -24,10 +22,9 @@ var __propIsEnum = Object.prototype.propertyIsEnumerable; | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -37,11 +34,14 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var Text_exports = {}; | ||
__export(Text_exports, { | ||
Text: () => Text | ||
}); | ||
var import_helpers = __toModule(require("@tamagui/helpers")); | ||
var import_platform = __toModule(require("../constants/platform")); | ||
var import_createComponent = __toModule(require("../createComponent")); | ||
var import_helpers = require("@tamagui/helpers"); | ||
var import_platform = require("../constants/platform"); | ||
var import_createComponent = require("../createComponent"); | ||
const ellipseStyle = { | ||
@@ -96,2 +96,3 @@ maxWidth: "100%", | ||
}); | ||
module.exports = __toCommonJS(Text_exports); | ||
//# sourceMappingURL=Text.js.map |
@@ -10,10 +10,9 @@ var __create = Object.create; | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -23,6 +22,12 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
var __toESM = (module2, isNodeMode) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var TextAncestorContext_exports = {}; | ||
__export(TextAncestorContext_exports, { | ||
FallbackNativeContext: () => FallbackNativeContext, | ||
@@ -32,4 +37,4 @@ TextAncestorContext: () => TextAncestorContext, | ||
}); | ||
var import_react = __toModule(require("react")); | ||
var import_rnw = __toModule(require("../constants/rnw")); | ||
var import_react = __toESM(require("react")); | ||
var import_rnw = require("../constants/rnw"); | ||
var _a; | ||
@@ -43,2 +48,3 @@ const FallbackNativeContext = (0, import_react.createContext)(false); | ||
}, "TextAncestorProvider"); | ||
module.exports = __toCommonJS(TextAncestorContext_exports); | ||
//# sourceMappingURL=TextAncestorContext.js.map |
@@ -10,10 +10,9 @@ var __create = Object.create; | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -23,14 +22,20 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
var __toESM = (module2, isNodeMode) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var Theme_exports = {}; | ||
__export(Theme_exports, { | ||
Theme: () => Theme | ||
}); | ||
var import_react = __toModule(require("react")); | ||
var import_platform = __toModule(require("../constants/platform")); | ||
var import_createTamagui = __toModule(require("../createTamagui")); | ||
var import_useConstant = __toModule(require("../hooks/useConstant")); | ||
var import_ThemeContext = __toModule(require("./ThemeContext")); | ||
var import_ThemeManagerContext = __toModule(require("./ThemeManagerContext")); | ||
var import_react = __toESM(require("react")); | ||
var import_platform = require("../constants/platform"); | ||
var import_getThemeParentClassName = require("../helpers/getThemeParentClassName"); | ||
var import_useConstant = require("../hooks/useConstant"); | ||
var import_ThemeContext = require("./ThemeContext"); | ||
var import_ThemeManagerContext = require("./ThemeManagerContext"); | ||
const Theme = /* @__PURE__ */ __name((props) => { | ||
@@ -86,3 +91,3 @@ var _a, _b; | ||
return /* @__PURE__ */ import_react.default.createElement("div", { | ||
className: (0, import_createTamagui.getThemeParentClassName)(props.name), | ||
className: (0, import_getThemeParentClassName.getThemeParentClassName)(props.name), | ||
style: { display: "contents", color } | ||
@@ -94,2 +99,3 @@ }, contents); | ||
}, "Theme"); | ||
module.exports = __toCommonJS(Theme_exports); | ||
//# sourceMappingURL=Theme.js.map |
@@ -1,17 +0,14 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -21,10 +18,14 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var ThemeContext_exports = {}; | ||
__export(ThemeContext_exports, { | ||
ThemeContext: () => ThemeContext | ||
}); | ||
var import_react = __toModule(require("react")); | ||
var import_react = require("react"); | ||
const ThemeContext = (0, import_react.createContext)(null); | ||
module.exports = __toCommonJS(ThemeContext_exports); | ||
//# sourceMappingURL=ThemeContext.js.map |
@@ -10,10 +10,9 @@ var __create = Object.create; | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -23,12 +22,18 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
var __toESM = (module2, isNodeMode) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var ThemeInverse_exports = {}; | ||
__export(ThemeInverse_exports, { | ||
ThemeInverse: () => ThemeInverse, | ||
setThemeInversions: () => setThemeInversions | ||
}); | ||
var import_react = __toModule(require("react")); | ||
var import_useTheme = __toModule(require("../hooks/useTheme")); | ||
var import_Theme = __toModule(require("./Theme")); | ||
var import_react = __toESM(require("react")); | ||
var import_useTheme = require("../hooks/useTheme"); | ||
var import_Theme = require("./Theme"); | ||
let inversions = { | ||
@@ -50,2 +55,3 @@ light: "dark", | ||
}, "ThemeInverse"); | ||
module.exports = __toCommonJS(ThemeInverse_exports); | ||
//# sourceMappingURL=ThemeInverse.js.map |
@@ -1,6 +0,4 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -10,10 +8,9 @@ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -23,10 +20,13 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var ThemeManagerContext_exports = {}; | ||
__export(ThemeManagerContext_exports, { | ||
ThemeManager: () => ThemeManager, | ||
ThemeManagerContext: () => ThemeManagerContext | ||
}); | ||
var import_react = __toModule(require("react")); | ||
var import_react = require("react"); | ||
class ThemeManager { | ||
@@ -36,5 +36,5 @@ constructor() { | ||
this.parentName = null; | ||
this.keys = new Map(); | ||
this.listeners = new Map(); | ||
this.themeListeners = new Set(); | ||
this.keys = /* @__PURE__ */ new Map(); | ||
this.listeners = /* @__PURE__ */ new Map(); | ||
this.themeListeners = /* @__PURE__ */ new Set(); | ||
this.theme = null; | ||
@@ -87,2 +87,3 @@ } | ||
const ThemeManagerContext = (0, import_react.createContext)(new ThemeManager()); | ||
module.exports = __toCommonJS(ThemeManagerContext_exports); | ||
//# sourceMappingURL=ThemeManagerContext.js.map |
@@ -10,10 +10,9 @@ var __create = Object.create; | ||
var __export = (target, all) => { | ||
__markAsModule(target); | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __reExport = (target, module2, desc) => { | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
@@ -23,17 +22,23 @@ } | ||
}; | ||
var __toModule = (module2) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
var __toESM = (module2, isNodeMode) => { | ||
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); | ||
}; | ||
__export(exports, { | ||
GET_DEFAULT_THEME: () => GET_DEFAULT_THEME, | ||
var __toCommonJS = /* @__PURE__ */ ((cache) => { | ||
return (module2, temp) => { | ||
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var ThemeProvider_exports = {}; | ||
__export(ThemeProvider_exports, { | ||
ThemeProvider: () => ThemeProvider | ||
}); | ||
var import_react = __toModule(require("react")); | ||
var import_platform = __toModule(require("../constants/platform")); | ||
var import_createTamagui = __toModule(require("../createTamagui")); | ||
var import_Theme = __toModule(require("./Theme")); | ||
var import_ThemeContext = __toModule(require("./ThemeContext")); | ||
const GET_DEFAULT_THEME = "___TGUI"; | ||
var import_react = __toESM(require("react")); | ||
var import_conf = require("../conf"); | ||
var import_constants = require("../constants/constants"); | ||
var import_platform = require("../constants/platform"); | ||
var import_getThemeParentClassName = require("../helpers/getThemeParentClassName"); | ||
var import_Theme = require("./Theme"); | ||
var import_ThemeContext = require("./ThemeContext"); | ||
const ThemeProvider = /* @__PURE__ */ __name((props) => { | ||
if (!(0, import_createTamagui.getHasConfigured)()) { | ||
if (!(0, import_conf.getHasConfigured)()) { | ||
throw new Error(`Missing configureThemes() call, add to your root file`); | ||
@@ -46,3 +51,3 @@ } | ||
if (typeof document !== "undefined") { | ||
const cns = (0, import_createTamagui.getThemeParentClassName)(`${props.defaultTheme}`).split(" "); | ||
const cns = (0, import_getThemeParentClassName.getThemeParentClassName)(`${props.defaultTheme}`).split(" "); | ||
cns.forEach((cn) => document.body.classList.add(cn)); | ||
@@ -57,3 +62,3 @@ return () => { | ||
get(target, key) { | ||
if (key === GET_DEFAULT_THEME) | ||
if (key === import_constants.GET_DEFAULT_THEME) | ||
return props.defaultTheme; | ||
@@ -71,2 +76,3 @@ return Reflect.get(target, key); | ||
}, "ThemeProvider"); | ||
module.exports = __toCommonJS(ThemeProvider_exports); | ||
//# sourceMappingURL=ThemeProvider.js.map |
import { isWeb } from "./platform"; | ||
const GET_DEFAULT_THEME = "___TGUI"; | ||
const PREFIX = `theme--`; | ||
const stackDefaultStyles = { | ||
@@ -12,4 +14,6 @@ alignItems: "stretch", | ||
export { | ||
GET_DEFAULT_THEME, | ||
PREFIX, | ||
stackDefaultStyles | ||
}; | ||
//# sourceMappingURL=constants.js.map |
@@ -17,6 +17,6 @@ var __defProp = Object.defineProperty; | ||
import { StyleSheet, Text, View } from "react-native"; | ||
import { onConfiguredOnce } from "./conf"; | ||
import { stackDefaultStyles } from "./constants/constants"; | ||
import { isTouchDevice, isWeb } from "./constants/platform"; | ||
import { rnw } from "./constants/rnw"; | ||
import { onConfiguredOnce } from "./createTamagui"; | ||
import { addStylesUsingClassname, useStylesAsClassname } from "./helpers/addStylesUsingClassname"; | ||
@@ -29,3 +29,3 @@ import { extendStaticConfig, parseStaticConfig } from "./helpers/extendStaticConfig"; | ||
import { TextAncestorContext } from "./views/TextAncestorContext"; | ||
const mouseUps = new Set(); | ||
const mouseUps = /* @__PURE__ */ new Set(); | ||
if (typeof document !== "undefined") { | ||
@@ -32,0 +32,0 @@ document.addEventListener("mouseup", () => { |
var __defProp = Object.defineProperty; | ||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | ||
import { getStyleRules } from "@tamagui/helpers"; | ||
import { configListeners, getHasConfigured, setConfig } from "./conf"; | ||
import { PREFIX } from "./constants/constants"; | ||
import { isWeb } from "./constants/platform"; | ||
@@ -8,21 +10,8 @@ import { Variable, createVariable } from "./createVariable"; | ||
import { configureMedia } from "./hooks/useMedia"; | ||
let conf; | ||
const getHasConfigured = /* @__PURE__ */ __name(() => !!conf, "getHasConfigured"); | ||
const getTamagui = /* @__PURE__ */ __name(() => conf, "getTamagui"); | ||
const getTokens = /* @__PURE__ */ __name(() => conf.tokensParsed, "getTokens"); | ||
const getThemes = /* @__PURE__ */ __name(() => conf.themes, "getThemes"); | ||
const configListeners = new Set(); | ||
const onConfiguredOnce = /* @__PURE__ */ __name((cb) => { | ||
if (conf) { | ||
cb(conf); | ||
} else { | ||
configListeners.add(cb); | ||
} | ||
}, "onConfiguredOnce"); | ||
const PREFIX = `theme--`; | ||
const createdConfigs = /* @__PURE__ */ new WeakMap(); | ||
function createTamagui(config) { | ||
if (config["parsed"]) { | ||
if (createdConfigs.has(config)) { | ||
return config; | ||
} | ||
if (conf) { | ||
if (getHasConfigured()) { | ||
console.warn("Called createTamagui twice! Should never do so"); | ||
@@ -37,3 +26,3 @@ } | ||
let cssRules = []; | ||
const varsByValue = new Map(); | ||
const varsByValue = /* @__PURE__ */ new Map(); | ||
if (isWeb) { | ||
@@ -107,2 +96,3 @@ let tokenRule = `:root {`; | ||
shorthands: {}, | ||
media: {}, | ||
...config, | ||
@@ -122,3 +112,3 @@ Provider: createTamaguiProvider({ | ||
}; | ||
conf = next; | ||
setConfig(next); | ||
if (configListeners.size) { | ||
@@ -128,9 +118,6 @@ configListeners.forEach((cb) => cb(next)); | ||
} | ||
createdConfigs.set(next, true); | ||
return next; | ||
} | ||
__name(createTamagui, "createTamagui"); | ||
function getThemeParentClassName(themeName) { | ||
return `theme-parent ${themeName ? `${PREFIX}${themeName}` : ""}`; | ||
} | ||
__name(getThemeParentClassName, "getThemeParentClassName"); | ||
const parseTokens = /* @__PURE__ */ __name((tokens) => { | ||
@@ -182,10 +169,4 @@ const res = {}; | ||
export { | ||
createTamagui, | ||
getHasConfigured, | ||
getTamagui, | ||
getThemeParentClassName, | ||
getThemes, | ||
getTokens, | ||
onConfiguredOnce | ||
createTamagui | ||
}; | ||
//# sourceMappingURL=createTamagui.js.map |
@@ -6,3 +6,3 @@ var __defProp = Object.defineProperty; | ||
import { insertStyleRule } from "./insertStyleRule"; | ||
let added = new Set(); | ||
let added = /* @__PURE__ */ new Set(); | ||
function useStylesAsClassname(styles) { | ||
@@ -9,0 +9,0 @@ if (!useInsertionEffect) { |
var __defProp = Object.defineProperty; | ||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | ||
import { getTamagui } from "../conf"; | ||
import { isWeb } from "../constants/platform"; | ||
import { getTamagui } from "../createTamagui"; | ||
import { Variable } from "../createVariable"; | ||
@@ -6,0 +6,0 @@ import { isObj } from "./isObj"; |
@@ -11,3 +11,3 @@ var __defProp = Object.defineProperty; | ||
const addMediaQueryListener = /* @__PURE__ */ __name((key, cb) => { | ||
mediaQueryListeners[key] = mediaQueryListeners[key] || new Set(); | ||
mediaQueryListeners[key] = mediaQueryListeners[key] || /* @__PURE__ */ new Set(); | ||
mediaQueryListeners[key].add(cb); | ||
@@ -23,3 +23,3 @@ }, "addMediaQueryListener"); | ||
if (!conf) { | ||
console.warn("Warning: accessing media query before init"); | ||
console.warn("Tamagui warning: accessing media query before init"); | ||
return null; | ||
@@ -31,3 +31,3 @@ } | ||
if (!conf) { | ||
console.warn("Warning: accessing media query before init"); | ||
console.warn("Tamagui warning: accessing media query before init"); | ||
return []; | ||
@@ -34,0 +34,0 @@ } |
@@ -5,2 +5,3 @@ var __defProp = Object.defineProperty; | ||
import { useContext, useEffect, useMemo, useRef, useState } from "react"; | ||
import { GET_DEFAULT_THEME } from "../constants/constants"; | ||
import { useIsomorphicLayoutEffect } from "../constants/platform"; | ||
@@ -10,3 +11,2 @@ import { Variable } from "../createVariable"; | ||
import { ThemeManagerContext } from "../views/ThemeManagerContext"; | ||
import { GET_DEFAULT_THEME } from "../views/ThemeProvider"; | ||
const areEqualSets = /* @__PURE__ */ __name((a, b) => { | ||
@@ -44,3 +44,3 @@ if (a.size !== b.size) | ||
uuid: {}, | ||
keys: new Set(), | ||
keys: /* @__PURE__ */ new Set(), | ||
isRendering: true | ||
@@ -47,0 +47,0 @@ }; |
@@ -10,2 +10,3 @@ export * from "./createComponent"; | ||
export * from "./types"; | ||
import { getHasConfigured, getTamagui, getThemes, getTokens, onConfiguredOnce } from "./conf"; | ||
export * from "./constants/pseudos"; | ||
@@ -15,2 +16,3 @@ export * from "./constants/constants"; | ||
export * from "./constants/rnw"; | ||
export * from "./helpers/getThemeParentClassName"; | ||
export * from "./helpers/isObj"; | ||
@@ -32,4 +34,9 @@ export * from "./helpers/getStylesAtomic"; | ||
export { | ||
createTokens | ||
createTokens, | ||
getHasConfigured, | ||
getTamagui, | ||
getThemes, | ||
getTokens, | ||
onConfiguredOnce | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -5,3 +5,3 @@ var __defProp = Object.defineProperty; | ||
import { isWeb, useIsomorphicLayoutEffect } from "../constants/platform"; | ||
import { getThemeParentClassName } from "../createTamagui"; | ||
import { getThemeParentClassName } from "../helpers/getThemeParentClassName"; | ||
import { useConstant } from "../hooks/useConstant"; | ||
@@ -8,0 +8,0 @@ import { ThemeContext } from "./ThemeContext"; |
@@ -8,5 +8,5 @@ var __defProp = Object.defineProperty; | ||
this.parentName = null; | ||
this.keys = new Map(); | ||
this.listeners = new Map(); | ||
this.themeListeners = new Set(); | ||
this.keys = /* @__PURE__ */ new Map(); | ||
this.listeners = /* @__PURE__ */ new Map(); | ||
this.themeListeners = /* @__PURE__ */ new Set(); | ||
this.theme = null; | ||
@@ -13,0 +13,0 @@ } |
var __defProp = Object.defineProperty; | ||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | ||
import React, { useMemo } from "react"; | ||
import { getHasConfigured } from "../conf"; | ||
import { GET_DEFAULT_THEME } from "../constants/constants"; | ||
import { useIsomorphicLayoutEffect } from "../constants/platform"; | ||
import { getHasConfigured, getThemeParentClassName } from "../createTamagui"; | ||
import { getThemeParentClassName } from "../helpers/getThemeParentClassName"; | ||
import { Theme } from "./Theme"; | ||
import { ThemeContext } from "./ThemeContext"; | ||
const GET_DEFAULT_THEME = "___TGUI"; | ||
const ThemeProvider = /* @__PURE__ */ __name((props) => { | ||
@@ -42,5 +43,4 @@ if (!getHasConfigured()) { | ||
export { | ||
GET_DEFAULT_THEME, | ||
ThemeProvider | ||
}; | ||
//# sourceMappingURL=ThemeProvider.js.map |
import { isWeb } from "./platform"; | ||
const GET_DEFAULT_THEME = "___TGUI"; | ||
const PREFIX = `theme--`; | ||
const stackDefaultStyles = { | ||
@@ -12,3 +14,5 @@ alignItems: "stretch", | ||
export { | ||
GET_DEFAULT_THEME, | ||
PREFIX, | ||
stackDefaultStyles | ||
}; |
@@ -17,6 +17,6 @@ var __defProp = Object.defineProperty; | ||
import { StyleSheet, Text, View } from "react-native"; | ||
import { onConfiguredOnce } from "./conf"; | ||
import { stackDefaultStyles } from "./constants/constants"; | ||
import { isTouchDevice, isWeb } from "./constants/platform"; | ||
import { rnw } from "./constants/rnw"; | ||
import { onConfiguredOnce } from "./createTamagui"; | ||
import { addStylesUsingClassname, useStylesAsClassname } from "./helpers/addStylesUsingClassname"; | ||
@@ -29,3 +29,3 @@ import { extendStaticConfig, parseStaticConfig } from "./helpers/extendStaticConfig"; | ||
import { TextAncestorContext } from "./views/TextAncestorContext"; | ||
const mouseUps = new Set(); | ||
const mouseUps = /* @__PURE__ */ new Set(); | ||
if (typeof document !== "undefined") { | ||
@@ -32,0 +32,0 @@ document.addEventListener("mouseup", () => { |
var __defProp = Object.defineProperty; | ||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | ||
import { getStyleRules } from "@tamagui/helpers"; | ||
import { configListeners, getHasConfigured, setConfig } from "./conf"; | ||
import { PREFIX } from "./constants/constants"; | ||
import { isWeb } from "./constants/platform"; | ||
@@ -8,21 +10,8 @@ import { Variable, createVariable } from "./createVariable"; | ||
import { configureMedia } from "./hooks/useMedia"; | ||
let conf; | ||
const getHasConfigured = /* @__PURE__ */ __name(() => !!conf, "getHasConfigured"); | ||
const getTamagui = /* @__PURE__ */ __name(() => conf, "getTamagui"); | ||
const getTokens = /* @__PURE__ */ __name(() => conf.tokensParsed, "getTokens"); | ||
const getThemes = /* @__PURE__ */ __name(() => conf.themes, "getThemes"); | ||
const configListeners = new Set(); | ||
const onConfiguredOnce = /* @__PURE__ */ __name((cb) => { | ||
if (conf) { | ||
cb(conf); | ||
} else { | ||
configListeners.add(cb); | ||
} | ||
}, "onConfiguredOnce"); | ||
const PREFIX = `theme--`; | ||
const createdConfigs = /* @__PURE__ */ new WeakMap(); | ||
function createTamagui(config) { | ||
if (config["parsed"]) { | ||
if (createdConfigs.has(config)) { | ||
return config; | ||
} | ||
if (conf) { | ||
if (getHasConfigured()) { | ||
console.warn("Called createTamagui twice! Should never do so"); | ||
@@ -37,3 +26,3 @@ } | ||
let cssRules = []; | ||
const varsByValue = new Map(); | ||
const varsByValue = /* @__PURE__ */ new Map(); | ||
if (isWeb) { | ||
@@ -107,2 +96,3 @@ let tokenRule = `:root {`; | ||
shorthands: {}, | ||
media: {}, | ||
...config, | ||
@@ -122,3 +112,3 @@ Provider: createTamaguiProvider({ | ||
}; | ||
conf = next; | ||
setConfig(next); | ||
if (configListeners.size) { | ||
@@ -128,9 +118,6 @@ configListeners.forEach((cb) => cb(next)); | ||
} | ||
createdConfigs.set(next, true); | ||
return next; | ||
} | ||
__name(createTamagui, "createTamagui"); | ||
function getThemeParentClassName(themeName) { | ||
return `theme-parent ${themeName ? `${PREFIX}${themeName}` : ""}`; | ||
} | ||
__name(getThemeParentClassName, "getThemeParentClassName"); | ||
const parseTokens = /* @__PURE__ */ __name((tokens) => { | ||
@@ -182,9 +169,3 @@ const res = {}; | ||
export { | ||
createTamagui, | ||
getHasConfigured, | ||
getTamagui, | ||
getThemeParentClassName, | ||
getThemes, | ||
getTokens, | ||
onConfiguredOnce | ||
createTamagui | ||
}; |
@@ -6,3 +6,3 @@ var __defProp = Object.defineProperty; | ||
import { insertStyleRule } from "./insertStyleRule"; | ||
let added = new Set(); | ||
let added = /* @__PURE__ */ new Set(); | ||
function useStylesAsClassname(styles) { | ||
@@ -9,0 +9,0 @@ if (!useInsertionEffect) { |
var __defProp = Object.defineProperty; | ||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | ||
import { getTamagui } from "../conf"; | ||
import { isWeb } from "../constants/platform"; | ||
import { getTamagui } from "../createTamagui"; | ||
import { Variable } from "../createVariable"; | ||
@@ -6,0 +6,0 @@ import { isObj } from "./isObj"; |
@@ -11,3 +11,3 @@ var __defProp = Object.defineProperty; | ||
const addMediaQueryListener = /* @__PURE__ */ __name((key, cb) => { | ||
mediaQueryListeners[key] = mediaQueryListeners[key] || new Set(); | ||
mediaQueryListeners[key] = mediaQueryListeners[key] || /* @__PURE__ */ new Set(); | ||
mediaQueryListeners[key].add(cb); | ||
@@ -23,3 +23,3 @@ }, "addMediaQueryListener"); | ||
if (!conf) { | ||
console.warn("Warning: accessing media query before init"); | ||
console.warn("Tamagui warning: accessing media query before init"); | ||
return null; | ||
@@ -31,3 +31,3 @@ } | ||
if (!conf) { | ||
console.warn("Warning: accessing media query before init"); | ||
console.warn("Tamagui warning: accessing media query before init"); | ||
return []; | ||
@@ -34,0 +34,0 @@ } |
@@ -5,2 +5,3 @@ var __defProp = Object.defineProperty; | ||
import { useContext, useEffect, useMemo, useRef, useState } from "react"; | ||
import { GET_DEFAULT_THEME } from "../constants/constants"; | ||
import { useIsomorphicLayoutEffect } from "../constants/platform"; | ||
@@ -10,3 +11,2 @@ import { Variable } from "../createVariable"; | ||
import { ThemeManagerContext } from "../views/ThemeManagerContext"; | ||
import { GET_DEFAULT_THEME } from "../views/ThemeProvider"; | ||
const areEqualSets = /* @__PURE__ */ __name((a, b) => { | ||
@@ -44,3 +44,3 @@ if (a.size !== b.size) | ||
uuid: {}, | ||
keys: new Set(), | ||
keys: /* @__PURE__ */ new Set(), | ||
isRendering: true | ||
@@ -47,0 +47,0 @@ }; |
@@ -10,2 +10,3 @@ export * from "./createComponent"; | ||
export * from "./types"; | ||
import { getHasConfigured, getTamagui, getThemes, getTokens, onConfiguredOnce } from "./conf"; | ||
export * from "./constants/pseudos"; | ||
@@ -15,2 +16,3 @@ export * from "./constants/constants"; | ||
export * from "./constants/rnw"; | ||
export * from "./helpers/getThemeParentClassName"; | ||
export * from "./helpers/isObj"; | ||
@@ -32,3 +34,8 @@ export * from "./helpers/getStylesAtomic"; | ||
export { | ||
createTokens | ||
createTokens, | ||
getHasConfigured, | ||
getTamagui, | ||
getThemes, | ||
getTokens, | ||
onConfiguredOnce | ||
}; |
@@ -5,3 +5,3 @@ var __defProp = Object.defineProperty; | ||
import { isWeb, useIsomorphicLayoutEffect } from "../constants/platform"; | ||
import { getThemeParentClassName } from "../createTamagui"; | ||
import { getThemeParentClassName } from "../helpers/getThemeParentClassName"; | ||
import { useConstant } from "../hooks/useConstant"; | ||
@@ -8,0 +8,0 @@ import { ThemeContext } from "./ThemeContext"; |
@@ -8,5 +8,5 @@ var __defProp = Object.defineProperty; | ||
this.parentName = null; | ||
this.keys = new Map(); | ||
this.listeners = new Map(); | ||
this.themeListeners = new Set(); | ||
this.keys = /* @__PURE__ */ new Map(); | ||
this.listeners = /* @__PURE__ */ new Map(); | ||
this.themeListeners = /* @__PURE__ */ new Set(); | ||
this.theme = null; | ||
@@ -13,0 +13,0 @@ } |
var __defProp = Object.defineProperty; | ||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | ||
import { useMemo } from "react"; | ||
import { getHasConfigured } from "../conf"; | ||
import { GET_DEFAULT_THEME } from "../constants/constants"; | ||
import { useIsomorphicLayoutEffect } from "../constants/platform"; | ||
import { getHasConfigured, getThemeParentClassName } from "../createTamagui"; | ||
import { getThemeParentClassName } from "../helpers/getThemeParentClassName"; | ||
import { Theme } from "./Theme"; | ||
import { ThemeContext } from "./ThemeContext"; | ||
const GET_DEFAULT_THEME = "___TGUI"; | ||
const ThemeProvider = /* @__PURE__ */ __name((props) => { | ||
@@ -37,4 +38,3 @@ if (!getHasConfigured()) { | ||
export { | ||
GET_DEFAULT_THEME, | ||
ThemeProvider | ||
}; |
{ | ||
"name": "@tamagui/core", | ||
"version": "1.0.0-alpha.39", | ||
"version": "1.0.0-alpha.40", | ||
"source": "src/index.ts", | ||
@@ -17,6 +17,6 @@ "main": "dist/cjs", | ||
"dependencies": { | ||
"@tamagui/helpers": "^1.0.0-alpha.39", | ||
"@tamagui/helpers": "^1.0.0-alpha.40", | ||
"@tamagui/ow": "^0.28.1", | ||
"@tamagui/use-debounce": "^1.0.0-alpha.39", | ||
"@tamagui/use-force-update": "^1.0.0-alpha.39", | ||
"@tamagui/use-debounce": "^1.0.0-alpha.40", | ||
"@tamagui/use-force-update": "^1.0.0-alpha.40", | ||
"react": "*", | ||
@@ -29,3 +29,3 @@ "react-dom": "*" | ||
"devDependencies": { | ||
"@tamagui/build": "^1.0.0-alpha.39", | ||
"@tamagui/build": "^1.0.0-alpha.40", | ||
"@types/react": "^17.0.35", | ||
@@ -39,3 +39,3 @@ "esbuild": "^0.13.12", | ||
}, | ||
"gitHead": "20b8c3487cae35a29bf878191fdc0381020b5304" | ||
"gitHead": "425b002aea52f714266c1ae6ddbef6ba62deafeb" | ||
} |
@@ -0,1 +1,3 @@ | ||
export declare const GET_DEFAULT_THEME = "___TGUI"; | ||
export declare const PREFIX = "theme--"; | ||
export declare const stackDefaultStyles: { | ||
@@ -2,0 +4,0 @@ display?: string | undefined; |
import { Variable } from './createVariable'; | ||
import { CreateTamaguiConfig, GenericTamaguiConfig, MediaQueryKey, TamaguiInternalConfig, TamaguiProviderProps } from './types'; | ||
export declare type CreateTamaguiProps = TamaguiProviderProps & Omit<GenericTamaguiConfig, 'themes'> & { | ||
export declare type CreateTamaguiProps = TamaguiProviderProps & Partial<Omit<GenericTamaguiConfig, 'themes' | 'tokens'>> & { | ||
tokens: GenericTamaguiConfig['tokens']; | ||
themes: { | ||
@@ -11,45 +12,3 @@ [key: string]: { | ||
}; | ||
export declare const getHasConfigured: () => boolean; | ||
export declare const getTamagui: () => TamaguiInternalConfig<import("./types").CreateTokens<string | number | Variable>, { | ||
[key: string]: { | ||
bg: string | Variable; | ||
bg2: string | Variable; | ||
bg3: string | Variable; | ||
bg4: string | Variable; | ||
color: string | Variable; | ||
color2: string | Variable; | ||
color3: string | Variable; | ||
color4: string | Variable; | ||
borderColor: string | Variable; | ||
borderColor2: string | Variable; | ||
shadowColor: string | Variable; | ||
shadowColor2: string | Variable; | ||
}; | ||
}, {}, { | ||
[x: string]: { | ||
[key: string]: string | number; | ||
}; | ||
}>; | ||
export declare const getTokens: () => import("./types").CreateTokens<Variable>; | ||
export declare const getThemes: () => { | ||
[key: string]: { | ||
bg: string | Variable; | ||
bg2: string | Variable; | ||
bg3: string | Variable; | ||
bg4: string | Variable; | ||
color: string | Variable; | ||
color2: string | Variable; | ||
color3: string | Variable; | ||
color4: string | Variable; | ||
borderColor: string | Variable; | ||
borderColor2: string | Variable; | ||
shadowColor: string | Variable; | ||
shadowColor2: string | Variable; | ||
}; | ||
}; | ||
declare type ConfigListener = (conf: TamaguiInternalConfig) => void; | ||
export declare const onConfiguredOnce: (cb: ConfigListener) => void; | ||
export declare function createTamagui<Conf extends CreateTamaguiProps>(config: Conf): Conf extends CreateTamaguiConfig<infer A, infer B, infer C, infer D> ? TamaguiInternalConfig<A, B, C, D> : unknown; | ||
export declare function getThemeParentClassName(themeName?: string | null): string; | ||
export {}; | ||
//# sourceMappingURL=createTamagui.d.ts.map |
@@ -10,2 +10,3 @@ export * from './createComponent'; | ||
export * from './types'; | ||
export { getHasConfigured, getTamagui, getThemes, getTokens, onConfiguredOnce } from './conf'; | ||
export * from './constants/pseudos'; | ||
@@ -15,2 +16,3 @@ export * from './constants/constants'; | ||
export * from './constants/rnw'; | ||
export * from './helpers/getThemeParentClassName'; | ||
export * from './helpers/isObj'; | ||
@@ -17,0 +19,0 @@ export * from './helpers/getStylesAtomic'; |
@@ -1,2 +0,2 @@ | ||
import React from 'react'; | ||
import * as React from 'react'; | ||
import { MediaProps, StaticComponent, StaticConfig, TamaguiConfig, Themes, Tokens } from './types'; | ||
@@ -3,0 +3,0 @@ export declare function styled<ParentComponent extends StaticComponent | React.Component<any>, Variants extends GetVariants<ParentComponent>>(Component: ParentComponent, options?: GetProps<ParentComponent> & { |
@@ -174,3 +174,3 @@ import React, { RefObject } from 'react'; | ||
export declare type StackStyleProps = WithThemeShorthandsPseudosAndMedia<StackStylePropsBase>; | ||
export declare type StackProps = Omit<RNWInternalProps, 'children'> & StackStyleProps & ComponentPropsBase & { | ||
export declare type StackProps = Omit<RNWInternalProps, 'children'> & Omit<ViewProps, 'display' | 'children'> & StackStyleProps & ComponentPropsBase & { | ||
ref?: RefObject<View | HTMLElement> | ((node: View | HTMLElement) => any); | ||
@@ -180,3 +180,3 @@ children?: any | any[]; | ||
declare type TextStyleProps = WithThemeShorthandsPseudosAndMedia<Omit<TextStyle, 'display' | 'backfaceVisibility'> & TransformStyleProps & WebOnlyStyleProps>; | ||
export declare type TextProps = Omit<ReactTextProps, 'style'> & TextStyleProps & ComponentPropsBase & { | ||
export declare type TextProps = ReactTextProps & TextStyleProps & ComponentPropsBase & { | ||
ellipse?: boolean; | ||
@@ -183,0 +183,0 @@ selectable?: boolean; |
@@ -8,4 +8,3 @@ /// <reference types="react" /> | ||
}; | ||
export declare const GET_DEFAULT_THEME = "___TGUI"; | ||
export declare const ThemeProvider: (props: ThemeProviderProps) => JSX.Element; | ||
//# sourceMappingURL=ThemeProvider.d.ts.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
667173
350
9578
0