@tamagui/web
Advanced tools
Comparing version 1.5.14 to 1.5.15
@@ -26,3 +26,3 @@ "use strict"; | ||
var import_config = require("./config.js"); | ||
var import_getThemeCSSRules = require("./helpers/getThemeCSSRules.js"); | ||
var import_getThemeCSSRules = require("./helpers/getThemeCSSRules"); | ||
var import_themes = require("./helpers/themes.js"); | ||
@@ -29,0 +29,0 @@ function addTheme(props) { |
@@ -21,3 +21,2 @@ "use strict"; | ||
__export(expandStyles_exports, { | ||
defaultOffset: () => defaultOffset, | ||
expandStyles: () => expandStyles, | ||
@@ -29,7 +28,6 @@ fixStyles: () => fixStyles | ||
var import_expandStyle = require("./expandStyle.js"); | ||
var import_normalizeShadow = require("./normalizeShadow.js"); | ||
var import_normalizeShadow = require("./normalizeShadow"); | ||
var import_normalizeValueWithProperty = require("./normalizeValueWithProperty.js"); | ||
var import_pseudoDescriptors = require("./pseudoDescriptors.js"); | ||
let shorthands = null; | ||
const defaultOffset = { height: 0, width: 0 }; | ||
function expandStyles(style, config = (0, import_config.getConfig)()) { | ||
@@ -76,3 +74,2 @@ const res = {}; | ||
0 && (module.exports = { | ||
defaultOffset, | ||
expandStyles, | ||
@@ -79,0 +76,0 @@ fixStyles |
@@ -37,3 +37,3 @@ "use strict"; | ||
var import_expandStyles = require("./expandStyles.js"); | ||
var import_getStylesAtomic = require("./getStylesAtomic.js"); | ||
var import_getStylesAtomic = require("./getStylesAtomic"); | ||
var import_insertStyleRule = require("./insertStyleRule.js"); | ||
@@ -40,0 +40,0 @@ var import_normalizeValueWithProperty = require("./normalizeValueWithProperty.js"); |
@@ -28,3 +28,3 @@ "use strict"; | ||
var import_config = require("../config.js"); | ||
var import_expandStyles = require("./expandStyles.js"); | ||
var import_defaultOffset = require("./defaultOffset.js"); | ||
var import_normalizeValueWithProperty = require("./normalizeValueWithProperty.js"); | ||
@@ -118,3 +118,3 @@ var import_pseudoDescriptors = require("./pseudoDescriptors.js"); | ||
if (style.shadowRadius !== void 0) { | ||
const offset = shadowOffset || import_expandStyles.defaultOffset; | ||
const offset = shadowOffset || import_defaultOffset.defaultOffset; | ||
const shadow = `${(0, import_normalizeValueWithProperty.normalizeValueWithProperty)( | ||
@@ -132,3 +132,3 @@ offset.width | ||
if (textShadowColor || textShadowOffset || textShadowRadius) { | ||
const { height, width } = textShadowOffset || import_expandStyles.defaultOffset; | ||
const { height, width } = textShadowOffset || import_defaultOffset.defaultOffset; | ||
const radius = textShadowRadius || 0; | ||
@@ -135,0 +135,0 @@ const color = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(textShadowColor, "textShadowColor"); |
@@ -24,3 +24,3 @@ "use strict"; | ||
module.exports = __toCommonJS(normalizeShadow_exports); | ||
var import_expandStyles = require("./expandStyles.js"); | ||
var import_defaultOffset = require("./defaultOffset.js"); | ||
var import_normalizeValueWithProperty = require("./normalizeValueWithProperty.js"); | ||
@@ -33,3 +33,3 @@ function normalizeShadow({ | ||
}) { | ||
const { height, width } = shadowOffset || import_expandStyles.defaultOffset; | ||
const { height, width } = shadowOffset || import_defaultOffset.defaultOffset; | ||
return { | ||
@@ -36,0 +36,0 @@ shadowOffset: { |
@@ -25,3 +25,3 @@ "use strict"; | ||
var import_normalize_css_color = require("@tamagui/normalize-css-color"); | ||
var import_expandStyles = require("./expandStyles.js"); | ||
var import_defaultOffset = require("./defaultOffset.js"); | ||
var import_normalizeColor = require("./normalizeColor.js"); | ||
@@ -35,3 +35,3 @@ var import_normalizeValueWithProperty = require("./normalizeValueWithProperty.js"); | ||
}) { | ||
const { height, width } = shadowOffset || import_expandStyles.defaultOffset; | ||
const { height, width } = shadowOffset || import_defaultOffset.defaultOffset; | ||
const colorStr = String(shadowColor || "black"); | ||
@@ -38,0 +38,0 @@ const val = (0, import_normalize_css_color.normalizeCSSColor)(colorStr); |
@@ -28,3 +28,3 @@ "use strict"; | ||
var import_normalizeColor = require("./normalizeColor.js"); | ||
var import_normalizeStylePropKeys = require("./normalizeStylePropKeys.js"); | ||
var import_normalizeStylePropKeys = require("./normalizeStylePropKeys"); | ||
const colorCache = {}; | ||
@@ -31,0 +31,0 @@ function normalizeValueWithProperty(value, property) { |
@@ -32,2 +32,3 @@ "use strict"; | ||
setMediaShouldUpdate: () => setMediaShouldUpdate, | ||
setupMediaListeners: () => setupMediaListeners, | ||
useMedia: () => useMedia, | ||
@@ -41,3 +42,3 @@ useMediaListeners: () => useMediaListeners, | ||
var import_createProxy = require("../helpers/createProxy.js"); | ||
var import_matchMedia = require("../helpers/matchMedia.js"); | ||
var import_matchMedia = require("../helpers/matchMedia"); | ||
var import_useSafeRef = require("./useSafeRef.js"); | ||
@@ -107,2 +108,3 @@ let mediaState = ( | ||
return; | ||
console.log(`go`, key, next); | ||
mediaState = { ...mediaState, [key]: next }; | ||
@@ -262,2 +264,3 @@ updateCurrentState(); | ||
setMediaShouldUpdate, | ||
setupMediaListeners, | ||
useMedia, | ||
@@ -264,0 +267,0 @@ useMediaListeners, |
@@ -57,3 +57,3 @@ "use strict"; | ||
__reExport(src_exports, require("./helpers/getSplitStyles.js"), module.exports); | ||
__reExport(src_exports, require("./helpers/getStylesAtomic.js"), module.exports); | ||
__reExport(src_exports, require("./helpers/getStylesAtomic"), module.exports); | ||
__reExport(src_exports, require("./helpers/pseudoDescriptors.js"), module.exports); | ||
@@ -64,3 +64,3 @@ __reExport(src_exports, require("./helpers/mergeProps.js"), module.exports); | ||
__reExport(src_exports, require("./helpers/isTamaguiComponent.js"), module.exports); | ||
__reExport(src_exports, require("./helpers/matchMedia.js"), module.exports); | ||
__reExport(src_exports, require("./helpers/matchMedia"), module.exports); | ||
__reExport(src_exports, require("./helpers/proxyThemeVariables.js"), module.exports); | ||
@@ -84,3 +84,3 @@ __reExport(src_exports, require("./helpers/themeable.js"), module.exports); | ||
__reExport(src_exports, require("./views/ThemeProvider.js"), module.exports); | ||
__reExport(src_exports, require("./views/FontLanguage.js"), module.exports); | ||
__reExport(src_exports, require("./views/FontLanguage"), module.exports); | ||
__reExport(src_exports, require("./views/TamaguiProvider.js"), module.exports); | ||
@@ -87,0 +87,0 @@ __reExport(src_exports, require("@tamagui/use-force-update"), module.exports); |
import { isWeb } from "@tamagui/constants"; | ||
import { getConfig, updateConfig } from "./config.js"; | ||
import { getThemeCSSRules } from "./helpers/getThemeCSSRules.js"; | ||
import { getThemeCSSRules } from "./helpers/getThemeCSSRules"; | ||
import { ensureThemeVariable, proxyThemeToParents } from "./helpers/themes.js"; | ||
@@ -5,0 +5,0 @@ function addTheme(props) { |
import { getConfig } from "../config.js"; | ||
import { expandStyle } from "./expandStyle.js"; | ||
import { normalizeShadow } from "./normalizeShadow.js"; | ||
import { normalizeShadow } from "./normalizeShadow"; | ||
import { normalizeValueWithProperty } from "./normalizeValueWithProperty.js"; | ||
import { pseudoDescriptors } from "./pseudoDescriptors.js"; | ||
let shorthands = null; | ||
const defaultOffset = { height: 0, width: 0 }; | ||
function expandStyles(style, config = getConfig()) { | ||
@@ -48,3 +47,2 @@ const res = {}; | ||
export { | ||
defaultOffset, | ||
expandStyles, | ||
@@ -51,0 +49,0 @@ fixStyles |
@@ -28,3 +28,3 @@ import { | ||
import { fixStyles } from "./expandStyles.js"; | ||
import { getAtomicStyle, getStylesAtomic, styleToCSS } from "./getStylesAtomic.js"; | ||
import { getAtomicStyle, getStylesAtomic, styleToCSS } from "./getStylesAtomic"; | ||
import { | ||
@@ -31,0 +31,0 @@ insertStyleRules, |
import { simpleHash } from "@tamagui/helpers"; | ||
import { getConfig } from "../config.js"; | ||
import { defaultOffset } from "./expandStyles.js"; | ||
import { defaultOffset } from "./defaultOffset.js"; | ||
import { normalizeValueWithProperty } from "./normalizeValueWithProperty.js"; | ||
@@ -5,0 +5,0 @@ import { pseudoDescriptors } from "./pseudoDescriptors.js"; |
@@ -1,2 +0,2 @@ | ||
import { defaultOffset } from "./expandStyles.js"; | ||
import { defaultOffset } from "./defaultOffset.js"; | ||
import { normalizeValueWithProperty } from "./normalizeValueWithProperty.js"; | ||
@@ -3,0 +3,0 @@ function normalizeShadow({ |
import { normalizeCSSColor } from "@tamagui/normalize-css-color"; | ||
import { defaultOffset } from "./expandStyles.js"; | ||
import { defaultOffset } from "./defaultOffset.js"; | ||
import { rgba } from "./normalizeColor.js"; | ||
@@ -4,0 +4,0 @@ import { normalizeValueWithProperty } from "./normalizeValueWithProperty.js"; |
import { isWeb } from "@tamagui/constants"; | ||
import { getAllSelectors } from "./insertStyleRule.js"; | ||
import { names, normalizeColor } from "./normalizeColor.js"; | ||
import { normalizeStylePropKeys } from "./normalizeStylePropKeys.js"; | ||
import { normalizeStylePropKeys } from "./normalizeStylePropKeys"; | ||
const colorCache = {}; | ||
@@ -6,0 +6,0 @@ function normalizeValueWithProperty(value, property) { |
import { startTransition, useEffect, useMemo, useSyncExternalStore } from "react"; | ||
import { getConfig } from "../config.js"; | ||
import { createProxy } from "../helpers/createProxy.js"; | ||
import { matchMedia } from "../helpers/matchMedia.js"; | ||
import { matchMedia } from "../helpers/matchMedia"; | ||
import { useSafeRef } from "./useSafeRef.js"; | ||
@@ -69,2 +69,3 @@ let mediaState = ( | ||
return; | ||
console.log(`go`, key, next); | ||
mediaState = { ...mediaState, [key]: next }; | ||
@@ -222,2 +223,3 @@ updateCurrentState(); | ||
setMediaShouldUpdate, | ||
setupMediaListeners, | ||
useMedia, | ||
@@ -224,0 +226,0 @@ useMediaListeners, |
@@ -23,3 +23,3 @@ export * from "./Tamagui.js"; | ||
export * from "./helpers/getSplitStyles.js"; | ||
export * from "./helpers/getStylesAtomic.js"; | ||
export * from "./helpers/getStylesAtomic"; | ||
export * from "./helpers/pseudoDescriptors.js"; | ||
@@ -30,3 +30,3 @@ export * from "./helpers/mergeProps.js"; | ||
export * from "./helpers/isTamaguiComponent.js"; | ||
export * from "./helpers/matchMedia.js"; | ||
export * from "./helpers/matchMedia"; | ||
export * from "./helpers/proxyThemeVariables.js"; | ||
@@ -58,3 +58,3 @@ export * from "./helpers/themeable.js"; | ||
export * from "./views/ThemeProvider.js"; | ||
export * from "./views/FontLanguage.js"; | ||
export * from "./views/FontLanguage"; | ||
export * from "./views/TamaguiProvider.js"; | ||
@@ -61,0 +61,0 @@ export * from "@tamagui/use-force-update"; |
{ | ||
"name": "@tamagui/web", | ||
"version": "1.5.14", | ||
"version": "1.5.15", | ||
"source": "src/index.ts", | ||
@@ -30,9 +30,9 @@ "main": "dist/cjs", | ||
"dependencies": { | ||
"@tamagui/compose-refs": "^1.5.14", | ||
"@tamagui/constants": "^1.5.14", | ||
"@tamagui/helpers": "^1.5.14", | ||
"@tamagui/normalize-css-color": "^1.5.14", | ||
"@tamagui/use-did-finish-ssr": "^1.5.14", | ||
"@tamagui/use-event": "^1.5.14", | ||
"@tamagui/use-force-update": "^1.5.14" | ||
"@tamagui/compose-refs": "^1.5.15", | ||
"@tamagui/constants": "^1.5.15", | ||
"@tamagui/helpers": "^1.5.15", | ||
"@tamagui/normalize-css-color": "^1.5.15", | ||
"@tamagui/use-did-finish-ssr": "^1.5.15", | ||
"@tamagui/use-event": "^1.5.15", | ||
"@tamagui/use-force-update": "^1.5.15" | ||
}, | ||
@@ -44,3 +44,3 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@tamagui/build": "^1.5.14", | ||
"@tamagui/build": "^1.5.15", | ||
"@testing-library/react": "^13.4.0", | ||
@@ -47,0 +47,0 @@ "csstype": "^3.0.10", |
import { isWeb } from '@tamagui/constants' | ||
import { getConfig, updateConfig } from './config.js' | ||
import { getThemeCSSRules } from './helpers/getThemeCSSRules.js' | ||
import { getThemeCSSRules } from './helpers/getThemeCSSRules' | ||
import { ensureThemeVariable, proxyThemeToParents } from './helpers/themes.js' | ||
@@ -6,0 +6,0 @@ import { ThemeDefinition, ThemeParsed } from './types.js' |
import { getConfig } from '../config.js' | ||
import { expandStyle } from './expandStyle.js' | ||
import { normalizeShadow } from './normalizeShadow.js' | ||
import { normalizeShadow } from './normalizeShadow' | ||
import { normalizeValueWithProperty } from './normalizeValueWithProperty.js' | ||
@@ -8,3 +8,2 @@ import { pseudoDescriptors } from './pseudoDescriptors.js' | ||
let shorthands: Record<string, string> | null = null | ||
export const defaultOffset = { height: 0, width: 0 } | ||
@@ -11,0 +10,0 @@ /** |
@@ -11,3 +11,3 @@ /** | ||
import type { TamaguiInternalConfig } from '../types.js' | ||
import { defaultOffset } from './expandStyles.js' | ||
import { defaultOffset } from './defaultOffset.js' | ||
import { normalizeValueWithProperty } from './normalizeValueWithProperty.js' | ||
@@ -14,0 +14,0 @@ import { PseudoDescriptor, pseudoDescriptors } from './pseudoDescriptors.js' |
import { normalizeCSSColor } from '@tamagui/normalize-css-color' | ||
import { defaultOffset } from './expandStyles.js' | ||
import { defaultOffset } from './defaultOffset.js' | ||
import { rgba } from './normalizeColor.js' | ||
@@ -5,0 +5,0 @@ import { normalizeValueWithProperty } from './normalizeValueWithProperty.js' |
@@ -1,2 +0,2 @@ | ||
import { defaultOffset } from './expandStyles.js' | ||
import { defaultOffset } from './defaultOffset.js' | ||
import { normalizeValueWithProperty } from './normalizeValueWithProperty.js' | ||
@@ -3,0 +3,0 @@ |
@@ -10,3 +10,3 @@ /** | ||
import { names, normalizeColor } from './normalizeColor.js' | ||
import { normalizeStylePropKeys } from './normalizeStylePropKeys.js' | ||
import { normalizeStylePropKeys } from './normalizeStylePropKeys' | ||
@@ -13,0 +13,0 @@ const colorCache = {} |
@@ -26,3 +26,3 @@ export * from './Tamagui.js' | ||
export * from './helpers/getSplitStyles.js' | ||
export * from './helpers/getStylesAtomic.js' | ||
export * from './helpers/getStylesAtomic' | ||
export * from './helpers/pseudoDescriptors.js' | ||
@@ -33,3 +33,3 @@ export * from './helpers/mergeProps.js' | ||
export * from './helpers/isTamaguiComponent.js' | ||
export * from './helpers/matchMedia.js' | ||
export * from './helpers/matchMedia' | ||
export * from './helpers/proxyThemeVariables.js' | ||
@@ -65,3 +65,3 @@ export * from './helpers/themeable.js' | ||
export * from './views/ThemeProvider.js' | ||
export * from './views/FontLanguage.js' | ||
export * from './views/FontLanguage' | ||
export * from './views/TamaguiProvider.js' | ||
@@ -68,0 +68,0 @@ |
@@ -1,5 +0,1 @@ | ||
export declare const defaultOffset: { | ||
height: number; | ||
width: number; | ||
}; | ||
/** | ||
@@ -6,0 +2,0 @@ * This is what you want to run before Object.assign() a style onto another. |
@@ -1,2 +0,2 @@ | ||
import { MediaQueries, MediaQueryKey, MediaQueryObject, MediaQueryState, TamaguiInternalConfig } from '../types.js'; | ||
import type { MediaQueries, MediaQueryKey, MediaQueryObject, MediaQueryState, TamaguiInternalConfig } from '../types.js'; | ||
export declare let mediaState: MediaQueryState; | ||
@@ -9,2 +9,3 @@ export declare const mediaQueryConfig: MediaQueries; | ||
export declare const configureMedia: (config: TamaguiInternalConfig) => void; | ||
export declare function setupMediaListeners(): void; | ||
export declare function useMediaListeners(config: TamaguiInternalConfig): void; | ||
@@ -11,0 +12,0 @@ type UseMediaState = { |
@@ -23,3 +23,3 @@ export * from './Tamagui.js'; | ||
export * from './helpers/getSplitStyles.js'; | ||
export * from './helpers/getStylesAtomic.js'; | ||
export * from './helpers/getStylesAtomic'; | ||
export * from './helpers/pseudoDescriptors.js'; | ||
@@ -30,3 +30,3 @@ export * from './helpers/mergeProps.js'; | ||
export * from './helpers/isTamaguiComponent.js'; | ||
export * from './helpers/matchMedia.js'; | ||
export * from './helpers/matchMedia'; | ||
export * from './helpers/proxyThemeVariables.js'; | ||
@@ -50,3 +50,3 @@ export * from './helpers/themeable.js'; | ||
export * from './views/ThemeProvider.js'; | ||
export * from './views/FontLanguage.js'; | ||
export * from './views/FontLanguage'; | ||
export * from './views/TamaguiProvider.js'; | ||
@@ -53,0 +53,0 @@ export * from '@tamagui/use-force-update'; |
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
2011293
757
27881