Socket
Socket
Sign inDemoInstall

@tamagui/core

Package Overview
Dependencies
Maintainers
1
Versions
1111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tamagui/core - npm Package Compare versions

Comparing version 1.0.0-alpha.40 to 1.0.0-alpha.41

12

dist/cjs/createComponent.js

@@ -116,3 +116,3 @@ var __create = Object.create;

let tamaguiConfig;
let defaultsStyle;
let defaultNativeStyle = null;
let defaultsClassName = "";

@@ -261,2 +261,3 @@ let initialTheme;

const styles = [
defaultNativeStyle ? defaultNativeStyle.base : null,
style,

@@ -433,6 +434,9 @@ isHovering ? pseudos.hoverStyle || null : null,

} else {
if (!hasWarnedOnce) {
hasWarnedOnce = true;
console.log("\u26A0\uFE0F TODO account for default styles for media queries");
const sheetStyles = {};
for (const style of next.style) {
Object.assign(sheetStyles, style);
}
defaultNativeStyle = import_react_native.StyleSheet.create({
base: sheetStyles
});
}

@@ -439,0 +443,0 @@ component.defaultProps = __spreadValues(__spreadValues({}, next.viewProps), component.defaultProps);

@@ -25,2 +25,3 @@ var __defProp = Object.defineProperty;

__export(src_exports, {
ConfigListener: () => import_conf.ConfigListener,
createTokens: () => import_createTokens.createTokens,

@@ -27,0 +28,0 @@ getHasConfigured: () => import_conf.getHasConfigured,

@@ -53,3 +53,3 @@ var __defProp = Object.defineProperty;

defaultProps: {
display: import_platform.isWeb ? "inline" : "inline-flex",
display: import_platform.isWeb ? "inline" : "flex",
boxSizing: "border-box",

@@ -56,0 +56,0 @@ fontFamily: "System",

@@ -64,3 +64,3 @@ var __defProp = Object.defineProperty;

let tamaguiConfig;
let defaultsStyle;
let defaultNativeStyle = null;
let defaultsClassName = "";

@@ -174,2 +174,3 @@ let initialTheme;

const styles = [
defaultNativeStyle ? defaultNativeStyle.base : null,
style,

@@ -348,6 +349,9 @@ isHovering ? pseudos.hoverStyle || null : null,

} else {
if (!hasWarnedOnce) {
hasWarnedOnce = true;
console.log("\u26A0\uFE0F TODO account for default styles for media queries");
const sheetStyles = {};
for (const style of next.style) {
Object.assign(sheetStyles, style);
}
defaultNativeStyle = StyleSheet.create({
base: sheetStyles
});
}

@@ -354,0 +358,0 @@ component.defaultProps = {

@@ -10,3 +10,10 @@ export * from "./createComponent";

export * from "./types";
import { getHasConfigured, getTamagui, getThemes, getTokens, onConfiguredOnce } from "./conf";
import {
getHasConfigured,
getTamagui,
getThemes,
getTokens,
onConfiguredOnce,
ConfigListener
} from "./conf";
export * from "./constants/pseudos";

@@ -33,2 +40,3 @@ export * from "./constants/constants";

export {
ConfigListener,
createTokens,

@@ -35,0 +43,0 @@ getHasConfigured,

@@ -13,3 +13,3 @@ import { stylePropsTextOnly, validStyles } from "@tamagui/helpers";

defaultProps: {
display: isWeb ? "inline" : "inline-flex",
display: isWeb ? "inline" : "flex",
boxSizing: "border-box",

@@ -16,0 +16,0 @@ fontFamily: "System",

@@ -64,3 +64,3 @@ var __defProp = Object.defineProperty;

let tamaguiConfig;
let defaultsStyle;
let defaultNativeStyle = null;
let defaultsClassName = "";

@@ -174,2 +174,3 @@ let initialTheme;

const styles = [
defaultNativeStyle ? defaultNativeStyle.base : null,
style,

@@ -351,6 +352,9 @@ isHovering ? pseudos.hoverStyle || null : null,

} else {
if (!hasWarnedOnce) {
hasWarnedOnce = true;
console.log("\u26A0\uFE0F TODO account for default styles for media queries");
const sheetStyles = {};
for (const style of next.style) {
Object.assign(sheetStyles, style);
}
defaultNativeStyle = StyleSheet.create({
base: sheetStyles
});
}

@@ -357,0 +361,0 @@ component.defaultProps = {

@@ -10,3 +10,10 @@ export * from "./createComponent";

export * from "./types";
import { getHasConfigured, getTamagui, getThemes, getTokens, onConfiguredOnce } from "./conf";
import {
getHasConfigured,
getTamagui,
getThemes,
getTokens,
onConfiguredOnce,
ConfigListener
} from "./conf";
export * from "./constants/pseudos";

@@ -33,2 +40,3 @@ export * from "./constants/constants";

export {
ConfigListener,
createTokens,

@@ -35,0 +43,0 @@ getHasConfigured,

@@ -13,3 +13,3 @@ import { stylePropsTextOnly, validStyles } from "@tamagui/helpers";

defaultProps: {
display: isWeb ? "inline" : "inline-flex",
display: isWeb ? "inline" : "flex",
boxSizing: "border-box",

@@ -16,0 +16,0 @@ fontFamily: "System",

{
"name": "@tamagui/core",
"version": "1.0.0-alpha.40",
"version": "1.0.0-alpha.41",
"source": "src/index.ts",

@@ -17,6 +17,6 @@ "main": "dist/cjs",

"dependencies": {
"@tamagui/helpers": "^1.0.0-alpha.40",
"@tamagui/helpers": "^1.0.0-alpha.41",
"@tamagui/ow": "^0.28.1",
"@tamagui/use-debounce": "^1.0.0-alpha.40",
"@tamagui/use-force-update": "^1.0.0-alpha.40",
"@tamagui/use-debounce": "^1.0.0-alpha.41",
"@tamagui/use-force-update": "^1.0.0-alpha.41",
"react": "*",

@@ -29,3 +29,3 @@ "react-dom": "*"

"devDependencies": {
"@tamagui/build": "^1.0.0-alpha.40",
"@tamagui/build": "^1.0.0-alpha.41",
"@types/react": "^17.0.35",

@@ -39,3 +39,3 @@ "esbuild": "^0.13.12",

},
"gitHead": "425b002aea52f714266c1ae6ddbef6ba62deafeb"
"gitHead": "e74d7f1ea0201992e4b588105624d736c909ec9a"
}
import { TamaguiInternalConfig } from './types';
declare type ConfigListener = (conf: TamaguiInternalConfig) => void;
export declare type ConfigListener = (conf: TamaguiInternalConfig) => void;
export declare let conf: TamaguiInternalConfig | null;

@@ -45,3 +45,2 @@ export declare const setConfig: (next: TamaguiInternalConfig) => void;

export declare const onConfiguredOnce: (cb: ConfigListener) => void;
export {};
//# sourceMappingURL=conf.d.ts.map

@@ -10,3 +10,3 @@ export * from './createComponent';

export * from './types';
export { getHasConfigured, getTamagui, getThemes, getTokens, onConfiguredOnce } from './conf';
export { getHasConfigured, getTamagui, getThemes, getTokens, onConfiguredOnce, ConfigListener, } from './conf';
export * from './constants/pseudos';

@@ -13,0 +13,0 @@ export * from './constants/constants';

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc