@tamagui/web 1.88.13 → 1.89.0-1706360676826
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/cjs/createComponent.js +1 -1
- package/dist/cjs/createComponent.js.map +1 -1
- package/dist/cjs/createTamagui.js.map +1 -1
- package/dist/cjs/createTamagui.native.js.map +1 -1
- package/dist/cjs/createVariables.js.map +1 -1
- package/dist/cjs/createVariables.native.js.map +1 -1
- package/dist/cjs/helpers/getSplitStyles.js +1 -1
- package/dist/cjs/helpers/getSplitStyles.js.map +1 -1
- package/dist/cjs/helpers/getSplitStyles.native.js +1 -1
- package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/cjs/helpers/getStylesAtomic.js.map +1 -1
- package/dist/cjs/helpers/getThemeCSSRules.js.map +1 -1
- package/dist/cjs/helpers/propMapper.js.map +1 -1
- package/dist/cjs/helpers/propMapper.native.js.map +1 -1
- package/dist/cjs/helpers/registerCSSVariable.js.map +1 -1
- package/dist/cjs/helpers/registerCSSVariable.native.js.map +1 -1
- package/dist/cjs/hooks/useTheme.js.map +1 -1
- package/dist/cjs/hooks/useTheme.native.js.map +1 -1
- package/dist/cjs/insertFont.js.map +1 -1
- package/dist/cjs/insertFont.native.js.map +1 -1
- package/dist/cjs/setupHooks.js.map +1 -1
- package/dist/cjs/setupHooks.native.js.map +1 -1
- package/dist/cjs/views/FontLanguage.native.js.map +1 -1
- package/dist/cjs/views/Slot.js.map +1 -1
- package/dist/cjs/views/Slot.native.js.map +1 -1
- package/dist/cjs/views/Theme.js.map +1 -1
- package/dist/cjs/views/Theme.native.js.map +1 -1
- package/dist/esm/Tamagui.mjs +43 -0
- package/dist/esm/config.mjs +51 -0
- package/dist/esm/constants/accessibilityDirectMap.mjs +50 -0
- package/dist/esm/constants/constants.mjs +16 -0
- package/dist/esm/constants/isDevTools.mjs +7 -0
- package/dist/esm/contexts/ComponentContext.mjs +13 -0
- package/dist/esm/createComponent.js +1 -1
- package/dist/esm/createComponent.js.map +1 -1
- package/dist/esm/createComponent.mjs +771 -0
- package/dist/esm/createFont.mjs +18 -0
- package/dist/esm/createShorthands.mjs +4 -0
- package/dist/esm/createTamagui.js.map +1 -1
- package/dist/esm/createTamagui.mjs +206 -0
- package/dist/esm/createTamagui.native.js.map +1 -1
- package/dist/esm/createTheme.mjs +2 -0
- package/dist/esm/createTokens.mjs +5 -0
- package/dist/esm/createVariable.mjs +48 -0
- package/dist/esm/createVariables.js.map +1 -1
- package/dist/esm/createVariables.mjs +35 -0
- package/dist/esm/createVariables.native.js.map +1 -1
- package/dist/esm/defaultComponentState.mjs +16 -0
- package/dist/esm/helpers/ThemeManager.mjs +156 -0
- package/dist/esm/helpers/ThemeManagerContext.mjs +3 -0
- package/dist/esm/helpers/createMediaStyle.mjs +71 -0
- package/dist/esm/helpers/createShallowSetState.mjs +17 -0
- package/dist/esm/helpers/createStyledContext.mjs +35 -0
- package/dist/esm/helpers/defaultOffset.mjs +5 -0
- package/dist/esm/helpers/expandStyle.mjs +38 -0
- package/dist/esm/helpers/expandStyles.mjs +15 -0
- package/dist/esm/helpers/getExpandedShorthands.mjs +9 -0
- package/dist/esm/helpers/getFontLanguage.mjs +2 -0
- package/dist/esm/helpers/getGroupPropParts.mjs +13 -0
- package/dist/esm/helpers/getSplitStyles.js +1 -1
- package/dist/esm/helpers/getSplitStyles.js.map +1 -1
- package/dist/esm/helpers/getSplitStyles.mjs +643 -0
- package/dist/esm/helpers/getSplitStyles.native.js +1 -1
- package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/esm/helpers/getStylesAtomic.js +1 -4
- package/dist/esm/helpers/getStylesAtomic.js.map +1 -1
- package/dist/esm/helpers/getStylesAtomic.mjs +150 -0
- package/dist/esm/helpers/getThemeCSSRules.js.map +1 -1
- package/dist/esm/helpers/getThemeCSSRules.mjs +87 -0
- package/dist/esm/helpers/getVariantExtras.mjs +43 -0
- package/dist/esm/helpers/insertStyleRule.mjs +177 -0
- package/dist/esm/helpers/isObj.mjs +2 -0
- package/dist/esm/helpers/isTamaguiComponent.mjs +5 -0
- package/dist/esm/helpers/isTamaguiElement.mjs +4 -0
- package/dist/esm/helpers/log.mjs +4 -0
- package/dist/esm/helpers/matchMedia.mjs +11 -0
- package/dist/esm/helpers/mergeProps.mjs +21 -0
- package/dist/esm/helpers/mergeVariants.mjs +16 -0
- package/dist/esm/helpers/normalizeColor.mjs +17 -0
- package/dist/esm/helpers/normalizeShadow.mjs +23 -0
- package/dist/esm/helpers/normalizeStyle.mjs +23 -0
- package/dist/esm/helpers/normalizeStylePropKeys.mjs +2 -0
- package/dist/esm/helpers/normalizeValueWithProperty.mjs +32 -0
- package/dist/esm/helpers/objectIdentityKey.mjs +15 -0
- package/dist/esm/helpers/propMapper.js.map +1 -1
- package/dist/esm/helpers/propMapper.mjs +239 -0
- package/dist/esm/helpers/propMapper.native.js.map +1 -1
- package/dist/esm/helpers/proxyThemeToParents.mjs +36 -0
- package/dist/esm/helpers/proxyThemeVariables.mjs +12 -0
- package/dist/esm/helpers/pseudoDescriptors.mjs +34 -0
- package/dist/esm/helpers/registerCSSVariable.js.map +1 -1
- package/dist/esm/helpers/registerCSSVariable.mjs +7 -0
- package/dist/esm/helpers/registerCSSVariable.native.js.map +1 -1
- package/dist/esm/helpers/themeable.mjs +33 -0
- package/dist/esm/helpers/themes.mjs +14 -0
- package/dist/esm/helpers/timer.mjs +8 -0
- package/dist/esm/hooks/useConfiguration.mjs +20 -0
- package/dist/esm/hooks/useDisableSSR.mjs +5 -0
- package/dist/esm/hooks/useIsTouchDevice.mjs +4 -0
- package/dist/esm/hooks/useMedia.mjs +146 -0
- package/dist/esm/hooks/useProps.mjs +40 -0
- package/dist/esm/hooks/useTheme.js +1 -4
- package/dist/esm/hooks/useTheme.js.map +1 -1
- package/dist/esm/hooks/useTheme.mjs +222 -0
- package/dist/esm/hooks/useTheme.native.js.map +1 -1
- package/dist/esm/hooks/useThemeName.mjs +15 -0
- package/dist/esm/index.mjs +61 -0
- package/dist/esm/inject-styles.mjs +13 -0
- package/dist/esm/insertFont.js.map +1 -1
- package/dist/esm/insertFont.mjs +44 -0
- package/dist/esm/insertFont.native.js.map +1 -1
- package/dist/esm/interfaces/CSSColorNames.mjs +0 -0
- package/dist/esm/interfaces/GetRef.mjs +0 -0
- package/dist/esm/interfaces/KeyTypes.mjs +0 -0
- package/dist/esm/interfaces/RNExclusiveTypes.mjs +0 -0
- package/dist/esm/interfaces/Role.mjs +0 -0
- package/dist/esm/interfaces/TamaguiComponentEvents.mjs +0 -0
- package/dist/esm/interfaces/TamaguiComponentPropsBaseBase.mjs +0 -0
- package/dist/esm/interfaces/TamaguiComponentState.mjs +0 -0
- package/dist/esm/interfaces/WebOnlyPressEvents.mjs +0 -0
- package/dist/esm/internalWithTheme.mjs +14 -0
- package/dist/esm/setupHooks.js.map +1 -1
- package/dist/esm/setupHooks.mjs +5 -0
- package/dist/esm/setupHooks.native.js.map +1 -1
- package/dist/esm/setupReactNative.mjs +24 -0
- package/dist/esm/styled.mjs +56 -0
- package/dist/esm/type-utils.mjs +0 -0
- package/dist/esm/types.mjs +2 -0
- package/dist/esm/views/Configuration.mjs +12 -0
- package/dist/esm/views/FontLanguage.mjs +13 -0
- package/dist/esm/views/FontLanguage.native.js.map +1 -1
- package/dist/esm/views/FontLanguage.types.mjs +0 -0
- package/dist/esm/views/Slot.js.map +1 -1
- package/dist/esm/views/Slot.mjs +53 -0
- package/dist/esm/views/Slot.native.js.map +1 -1
- package/dist/esm/views/Stack.mjs +10 -0
- package/dist/esm/views/TamaguiProvider.mjs +32 -0
- package/dist/esm/views/Text.mjs +64 -0
- package/dist/esm/views/Theme.js.map +1 -1
- package/dist/esm/views/Theme.mjs +104 -0
- package/dist/esm/views/Theme.native.js.map +1 -1
- package/dist/esm/views/ThemeDebug.mjs +57 -0
- package/dist/esm/views/ThemeProvider.mjs +20 -0
- package/dist/esm/views/View.mjs +9 -0
- package/package.json +10 -10
- package/src/config.ts +1 -1
- package/src/contexts/ComponentContext.tsx +1 -1
- package/src/createComponent.tsx +5 -5
- package/src/createFont.ts +1 -1
- package/src/createShorthands.ts +1 -1
- package/src/createTamagui.ts +4 -3
- package/src/createTokens.ts +2 -2
- package/src/createVariables.ts +2 -1
- package/src/defaultComponentState.tsx +1 -1
- package/src/helpers/ThemeManager.tsx +1 -1
- package/src/helpers/createShallowSetState.tsx +2 -2
- package/src/helpers/expandStyle.ts +1 -1
- package/src/helpers/getExpandedShorthands.ts +1 -1
- package/src/helpers/getSplitStyles.tsx +5 -0
- package/src/helpers/getStylesAtomic.ts +4 -6
- package/src/helpers/getThemeCSSRules.ts +2 -1
- package/src/helpers/getVariantExtras.tsx +2 -2
- package/src/helpers/isTamaguiComponent.tsx +1 -1
- package/src/helpers/isTamaguiElement.tsx +1 -1
- package/src/helpers/matchMedia.native.ts +1 -1
- package/src/helpers/matchMedia.ts +1 -1
- package/src/helpers/propMapper.ts +2 -1
- package/src/helpers/proxyThemeToParents.ts +1 -1
- package/src/helpers/registerCSSVariable.ts +3 -2
- package/src/helpers/themeable.tsx +1 -1
- package/src/hooks/useDisableSSR.tsx +1 -1
- package/src/hooks/useProps.tsx +1 -1
- package/src/hooks/useTheme.tsx +4 -6
- package/src/hooks/useThemeName.tsx +1 -1
- package/src/insertFont.ts +4 -3
- package/src/interfaces/GetRef.tsx +2 -2
- package/src/interfaces/TamaguiComponentPropsBaseBase.tsx +2 -2
- package/src/interfaces/TamaguiComponentState.tsx +1 -1
- package/src/interfaces/WebOnlyPressEvents.tsx +1 -1
- package/src/setupHooks.ts +4 -8
- package/src/setupReactNative.ts +1 -1
- package/src/styled.tsx +1 -1
- package/src/types.tsx +8 -8
- package/src/views/FontLanguage.native.tsx +0 -1
- package/src/views/FontLanguage.types.ts +2 -2
- package/src/views/Slot.tsx +2 -1
- package/src/views/TamaguiProvider.tsx +1 -1
- package/src/views/Text.tsx +1 -1
- package/src/views/Theme.tsx +2 -1
- package/src/views/ThemeDebug.native.tsx +2 -2
- package/src/views/ThemeDebug.tsx +2 -2
- package/types/config.d.ts +1 -1
- package/types/config.d.ts.map +1 -1
- package/types/contexts/ComponentContext.d.ts +1 -1
- package/types/contexts/ComponentContext.d.ts.map +1 -1
- package/types/createComponent.d.ts +1 -1
- package/types/createComponent.d.ts.map +1 -1
- package/types/createFont.d.ts +1 -1
- package/types/createFont.d.ts.map +1 -1
- package/types/createShorthands.d.ts +1 -1
- package/types/createShorthands.d.ts.map +1 -1
- package/types/createTamagui.d.ts +1 -1
- package/types/createTamagui.d.ts.map +1 -1
- package/types/createTokens.d.ts +2 -2
- package/types/createTokens.d.ts.map +1 -1
- package/types/createVariables.d.ts +1 -1
- package/types/createVariables.d.ts.map +1 -1
- package/types/defaultComponentState.d.ts +1 -1
- package/types/defaultComponentState.d.ts.map +1 -1
- package/types/helpers/ThemeManager.d.ts +1 -1
- package/types/helpers/ThemeManager.d.ts.map +1 -1
- package/types/helpers/createShallowSetState.d.ts +2 -2
- package/types/helpers/createShallowSetState.d.ts.map +1 -1
- package/types/helpers/expandStyle.d.ts +1 -1
- package/types/helpers/expandStyle.d.ts.map +1 -1
- package/types/helpers/getExpandedShorthands.d.ts +1 -1
- package/types/helpers/getExpandedShorthands.d.ts.map +1 -1
- package/types/helpers/getSplitStyles.d.ts.map +1 -1
- package/types/helpers/getStylesAtomic.d.ts +2 -2
- package/types/helpers/getStylesAtomic.d.ts.map +1 -1
- package/types/helpers/getThemeCSSRules.d.ts.map +1 -1
- package/types/helpers/getVariantExtras.d.ts +2 -2
- package/types/helpers/getVariantExtras.d.ts.map +1 -1
- package/types/helpers/isTamaguiComponent.d.ts +1 -1
- package/types/helpers/isTamaguiComponent.d.ts.map +1 -1
- package/types/helpers/isTamaguiElement.d.ts +1 -1
- package/types/helpers/isTamaguiElement.d.ts.map +1 -1
- package/types/helpers/matchMedia.d.ts +1 -1
- package/types/helpers/matchMedia.d.ts.map +1 -1
- package/types/helpers/matchMedia.native.d.ts +1 -1
- package/types/helpers/matchMedia.native.d.ts.map +1 -1
- package/types/helpers/propMapper.d.ts.map +1 -1
- package/types/helpers/proxyThemeToParents.d.ts +1 -1
- package/types/helpers/proxyThemeToParents.d.ts.map +1 -1
- package/types/helpers/registerCSSVariable.d.ts +2 -2
- package/types/helpers/registerCSSVariable.d.ts.map +1 -1
- package/types/helpers/themeable.d.ts +1 -1
- package/types/helpers/themeable.d.ts.map +1 -1
- package/types/hooks/useDisableSSR.d.ts +1 -1
- package/types/hooks/useDisableSSR.d.ts.map +1 -1
- package/types/hooks/useProps.d.ts +1 -1
- package/types/hooks/useProps.d.ts.map +1 -1
- package/types/hooks/useTheme.d.ts +3 -2
- package/types/hooks/useTheme.d.ts.map +1 -1
- package/types/hooks/useThemeName.d.ts +1 -1
- package/types/hooks/useThemeName.d.ts.map +1 -1
- package/types/insertFont.d.ts +2 -2
- package/types/insertFont.d.ts.map +1 -1
- package/types/interfaces/GetRef.d.ts +2 -2
- package/types/interfaces/GetRef.d.ts.map +1 -1
- package/types/interfaces/TamaguiComponentPropsBaseBase.d.ts +2 -2
- package/types/interfaces/TamaguiComponentPropsBaseBase.d.ts.map +1 -1
- package/types/interfaces/TamaguiComponentState.d.ts +1 -1
- package/types/interfaces/TamaguiComponentState.d.ts.map +1 -1
- package/types/interfaces/WebOnlyPressEvents.d.ts +1 -1
- package/types/interfaces/WebOnlyPressEvents.d.ts.map +1 -1
- package/types/setupHooks.d.ts +3 -3
- package/types/setupHooks.d.ts.map +1 -1
- package/types/setupReactNative.d.ts +1 -1
- package/types/setupReactNative.d.ts.map +1 -1
- package/types/styled.d.ts +1 -1
- package/types/styled.d.ts.map +1 -1
- package/types/types.d.ts +8 -8
- package/types/types.d.ts.map +1 -1
- package/types/views/FontLanguage.native.d.ts.map +1 -1
- package/types/views/FontLanguage.types.d.ts +2 -2
- package/types/views/FontLanguage.types.d.ts.map +1 -1
- package/types/views/Slot.d.ts +1 -1
- package/types/views/Slot.d.ts.map +1 -1
- package/types/views/Text.d.ts +1 -1
- package/types/views/Text.d.ts.map +1 -1
- package/types/views/Theme.d.ts +1 -1
- package/types/views/Theme.d.ts.map +1 -1
- package/types/views/ThemeDebug.d.ts +2 -2
- package/types/views/ThemeDebug.d.ts.map +1 -1
- package/types/views/ThemeDebug.native.d.ts +2 -2
- package/types/views/ThemeDebug.native.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/web",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.89.0-1706360676826",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -27,19 +27,19 @@
|
|
|
27
27
|
"reset.css"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@tamagui/compose-refs": "1.
|
|
31
|
-
"@tamagui/constants": "1.
|
|
32
|
-
"@tamagui/helpers": "1.
|
|
33
|
-
"@tamagui/normalize-css-color": "1.
|
|
34
|
-
"@tamagui/timer": "1.
|
|
35
|
-
"@tamagui/use-did-finish-ssr": "1.
|
|
36
|
-
"@tamagui/use-event": "1.
|
|
37
|
-
"@tamagui/use-force-update": "1.
|
|
30
|
+
"@tamagui/compose-refs": "1.89.0-1706360676826",
|
|
31
|
+
"@tamagui/constants": "1.89.0-1706360676826",
|
|
32
|
+
"@tamagui/helpers": "1.89.0-1706360676826",
|
|
33
|
+
"@tamagui/normalize-css-color": "1.89.0-1706360676826",
|
|
34
|
+
"@tamagui/timer": "1.89.0-1706360676826",
|
|
35
|
+
"@tamagui/use-did-finish-ssr": "1.89.0-1706360676826",
|
|
36
|
+
"@tamagui/use-event": "1.89.0-1706360676826",
|
|
37
|
+
"@tamagui/use-force-update": "1.89.0-1706360676826",
|
|
38
38
|
"react": "^18.2.0",
|
|
39
39
|
"react-dom": "^18.2.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@tamagui/build": "1.
|
|
42
|
+
"@tamagui/build": "1.89.0-1706360676826",
|
|
43
43
|
"@testing-library/react": "^14.0.0",
|
|
44
44
|
"csstype": "^3.0.10",
|
|
45
45
|
"typescript": "^5.3.3",
|
package/src/config.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createStyledContext } from '../helpers/createStyledContext'
|
|
2
|
-
import { ComponentContextI, GroupStateListener } from '../types'
|
|
2
|
+
import type { ComponentContextI, GroupStateListener } from '../types'
|
|
3
3
|
|
|
4
4
|
export const ComponentContext = createStyledContext<ComponentContextI>({
|
|
5
5
|
disableSSR: undefined,
|
package/src/createComponent.tsx
CHANGED
|
@@ -37,7 +37,7 @@ import { themeable } from './helpers/themeable'
|
|
|
37
37
|
import { mediaKeyMatch, setMediaShouldUpdate, useMedia } from './hooks/useMedia'
|
|
38
38
|
import { useThemeWithState } from './hooks/useTheme'
|
|
39
39
|
import { hooks } from './setupHooks'
|
|
40
|
-
import {
|
|
40
|
+
import type {
|
|
41
41
|
ComponentContextI,
|
|
42
42
|
DebugProp,
|
|
43
43
|
DisposeFn,
|
|
@@ -62,9 +62,9 @@ import {
|
|
|
62
62
|
UseAnimationProps,
|
|
63
63
|
UseThemeWithStateProps,
|
|
64
64
|
} from './types'
|
|
65
|
-
import { WebOnlyPressEvents } from './interfaces/WebOnlyPressEvents'
|
|
66
|
-
import { TamaguiComponentState } from './interfaces/TamaguiComponentState'
|
|
67
|
-
import { TamaguiComponentEvents } from './interfaces/TamaguiComponentEvents'
|
|
65
|
+
import type { WebOnlyPressEvents } from './interfaces/WebOnlyPressEvents'
|
|
66
|
+
import type { TamaguiComponentState } from './interfaces/TamaguiComponentState'
|
|
67
|
+
import type { TamaguiComponentEvents } from './interfaces/TamaguiComponentEvents'
|
|
68
68
|
import { Slot } from './views/Slot'
|
|
69
69
|
import { getThemedChildren } from './views/Theme'
|
|
70
70
|
import { ThemeDebug } from './views/ThemeDebug'
|
|
@@ -1192,7 +1192,7 @@ export function createComponent<
|
|
|
1192
1192
|
}
|
|
1193
1193
|
|
|
1194
1194
|
if (process.env.TAMAGUI_TARGET === 'web') {
|
|
1195
|
-
if (isReactNative && !asChild
|
|
1195
|
+
if (isReactNative && !asChild) {
|
|
1196
1196
|
content = (
|
|
1197
1197
|
<span
|
|
1198
1198
|
{...(!isHydrated
|
package/src/createFont.ts
CHANGED
package/src/createShorthands.ts
CHANGED
package/src/createTamagui.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { isWeb } from '@tamagui/constants'
|
|
2
2
|
|
|
3
3
|
import { configListeners, setConfig, setTokens } from './config'
|
|
4
|
-
import { Variable } from './createVariable'
|
|
5
|
-
import { DeepVariableObject
|
|
4
|
+
import type { Variable } from './createVariable'
|
|
5
|
+
import type { DeepVariableObject } from './createVariables'
|
|
6
|
+
import { createVariables } from './createVariables'
|
|
6
7
|
import { getThemeCSSRules } from './helpers/getThemeCSSRules'
|
|
7
8
|
import {
|
|
8
9
|
getAllRules,
|
|
@@ -15,7 +16,7 @@ import { ensureThemeVariable } from './helpers/themes'
|
|
|
15
16
|
import { configureMedia } from './hooks/useMedia'
|
|
16
17
|
import { parseFont, registerFontVariables } from './insertFont'
|
|
17
18
|
import { Tamagui } from './Tamagui'
|
|
18
|
-
import {
|
|
19
|
+
import type {
|
|
19
20
|
CreateTamaguiProps,
|
|
20
21
|
DedupedTheme,
|
|
21
22
|
DedupedThemes,
|
package/src/createTokens.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Variable } from './createVariable'
|
|
1
|
+
import type { Variable } from './createVariable'
|
|
2
2
|
import { createVariables } from './createVariables'
|
|
3
|
-
import { CreateTokens } from './types'
|
|
3
|
+
import type { CreateTokens } from './types'
|
|
4
4
|
|
|
5
5
|
// tokens.color.dark.red ===> { var: `color-dark-red`, val: '' }
|
|
6
6
|
export function createTokens<T extends CreateTokens>(tokens: T): MakeTokens<T> {
|
package/src/createVariables.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { simpleHash } from '@tamagui/helpers'
|
|
2
2
|
|
|
3
|
-
import { Variable
|
|
3
|
+
import type { Variable } from './createVariable'
|
|
4
|
+
import { createVariable, isVariable } from './createVariable'
|
|
4
5
|
|
|
5
6
|
type DeepTokenObject<Val extends string | number = any> = {
|
|
6
7
|
[key: string]: Val | DeepTokenObject<Val>
|
|
@@ -2,7 +2,7 @@ import { isWeb } from '@tamagui/constants'
|
|
|
2
2
|
|
|
3
3
|
import { getThemes } from '../config'
|
|
4
4
|
import { THEME_CLASSNAME_PREFIX, THEME_NAME_SEPARATOR } from '../constants/constants'
|
|
5
|
-
import { ColorScheme, ThemeParsed, ThemeProps } from '../types'
|
|
5
|
+
import type { ColorScheme, ThemeParsed, ThemeProps } from '../types'
|
|
6
6
|
|
|
7
7
|
type ThemeListener = (
|
|
8
8
|
name: string | null,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import { isAndroid, isWeb } from '@tamagui/constants'
|
|
7
7
|
|
|
8
|
-
import { PropMappedValue } from '../types'
|
|
8
|
+
import type { PropMappedValue } from '../types'
|
|
9
9
|
|
|
10
10
|
export function expandStyle(key: string, value: any): PropMappedValue {
|
|
11
11
|
if (process.env.TAMAGUI_TARGET === 'web') {
|
|
@@ -530,6 +530,11 @@ export const getSplitStyles: StyleSplitter = (
|
|
|
530
530
|
const shouldPassThrough = shouldPassProp || isHOCShouldPassThrough
|
|
531
531
|
|
|
532
532
|
if (process.env.NODE_ENV === 'development' && debug === 'verbose') {
|
|
533
|
+
// fix native group nesting issues
|
|
534
|
+
console.groupEnd()
|
|
535
|
+
console.groupEnd()
|
|
536
|
+
// fix native group nesting issues
|
|
537
|
+
|
|
533
538
|
console.groupCollapsed(
|
|
534
539
|
` 🔑 ${keyOg}${keyInit !== keyOg ? ` (shorthand for ${keyInit})` : ''} ${
|
|
535
540
|
shouldPassThrough ? '(pass)' : ''
|
|
@@ -3,17 +3,15 @@
|
|
|
3
3
|
* Copyright (c) Nicolas Gallagher licensed under the MIT license.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { StyleObject
|
|
6
|
+
import type { StyleObject } from '@tamagui/helpers'
|
|
7
|
+
import { simpleHash } from '@tamagui/helpers'
|
|
7
8
|
|
|
8
9
|
import { getConfig } from '../config'
|
|
9
10
|
import type { DebugProp, TamaguiInternalConfig, ViewStyleWithPseudos } from '../types'
|
|
10
11
|
import { defaultOffset } from './defaultOffset'
|
|
11
12
|
import { normalizeValueWithProperty } from './normalizeValueWithProperty'
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
pseudoDescriptors,
|
|
15
|
-
pseudoDescriptorsBase,
|
|
16
|
-
} from './pseudoDescriptors'
|
|
13
|
+
import type { PseudoDescriptor } from './pseudoDescriptors'
|
|
14
|
+
import { pseudoDescriptors, pseudoDescriptorsBase } from './pseudoDescriptors'
|
|
17
15
|
import { normalizeColor } from './normalizeColor'
|
|
18
16
|
|
|
19
17
|
// refactor this file away next...
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { simpleHash } from '@tamagui/helpers'
|
|
2
2
|
|
|
3
3
|
import { THEME_CLASSNAME_PREFIX } from '../constants/constants'
|
|
4
|
-
import { Variable
|
|
4
|
+
import type { Variable } from '../createVariable'
|
|
5
|
+
import { variableToString } from '../createVariable'
|
|
5
6
|
import type { CreateTamaguiProps, ThemeParsed } from '../types'
|
|
6
7
|
import { tokensValueToVariable } from './registerCSSVariable'
|
|
7
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getVariableValue } from '../createVariable'
|
|
2
|
-
import { GenericFonts, GetStyleState } from '../types'
|
|
3
|
-
import { LanguageContextType } from '../views/FontLanguage.types'
|
|
2
|
+
import type { GenericFonts, GetStyleState } from '../types'
|
|
3
|
+
import type { LanguageContextType } from '../views/FontLanguage.types'
|
|
4
4
|
|
|
5
5
|
export function getVariantExtras(styleState: GetStyleState) {
|
|
6
6
|
const { curProps, conf, context, theme } = styleState
|
|
@@ -3,7 +3,8 @@ import { tokenCategories } from '@tamagui/helpers'
|
|
|
3
3
|
|
|
4
4
|
import { getConfig } from '../config'
|
|
5
5
|
import { isDevTools } from '../constants/isDevTools'
|
|
6
|
-
import { Variable
|
|
6
|
+
import type { Variable } from '../createVariable'
|
|
7
|
+
import { getVariableValue, isVariable } from '../createVariable'
|
|
7
8
|
import type {
|
|
8
9
|
GetStyleState,
|
|
9
10
|
PropMapper,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Variable
|
|
2
|
-
import {
|
|
1
|
+
import type { Variable } from '../createVariable'
|
|
2
|
+
import { createCSSVariable, getVariableValue } from '../createVariable'
|
|
3
|
+
import type { VariableVal } from '../types'
|
|
3
4
|
|
|
4
5
|
export const registerCSSVariable = (v: Variable | VariableVal) => {
|
|
5
6
|
tokensValueToVariable.set(getVariableValue(v), v)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { forwardRef } from 'react'
|
|
2
2
|
|
|
3
|
-
import { StaticConfig, ThemeableProps } from '../types'
|
|
3
|
+
import type { StaticConfig, ThemeableProps } from '../types'
|
|
4
4
|
import { Theme } from '../views/Theme'
|
|
5
5
|
|
|
6
6
|
export function themeable<ComponentType extends (props: any) => any>(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getConfig } from '../config'
|
|
2
|
-
import { ComponentContextI } from '../types'
|
|
2
|
+
import type { ComponentContextI } from '../types'
|
|
3
3
|
|
|
4
4
|
export function getDisableSSR(componentContext?: ComponentContextI) {
|
|
5
5
|
return componentContext?.disableSSR ?? getConfig().disableSSR
|
package/src/hooks/useProps.tsx
CHANGED
|
@@ -3,7 +3,7 @@ import { useContext } from 'react'
|
|
|
3
3
|
import { ComponentContext } from '../contexts/ComponentContext'
|
|
4
4
|
import { defaultComponentStateMounted } from '../defaultComponentState'
|
|
5
5
|
import { useSplitStyles } from '../helpers/getSplitStyles'
|
|
6
|
-
import {
|
|
6
|
+
import type {
|
|
7
7
|
SplitStyleProps,
|
|
8
8
|
StackStyle,
|
|
9
9
|
StaticConfig,
|
package/src/hooks/useTheme.tsx
CHANGED
|
@@ -2,13 +2,11 @@ import { isClient, isIos, isServer } from '@tamagui/constants'
|
|
|
2
2
|
import { useContext, useEffect, useMemo, useRef, useState } from 'react'
|
|
3
3
|
|
|
4
4
|
import { getConfig } from '../config'
|
|
5
|
-
import { Variable
|
|
5
|
+
import type { Variable } from '../createVariable'
|
|
6
|
+
import { getVariable } from '../createVariable'
|
|
6
7
|
import { isEqualShallow } from '../helpers/createShallowSetState'
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
ThemeManagerState,
|
|
10
|
-
getHasThemeUpdatingProps,
|
|
11
|
-
} from '../helpers/ThemeManager'
|
|
8
|
+
import type { ThemeManagerState } from '../helpers/ThemeManager'
|
|
9
|
+
import { ThemeManager, getHasThemeUpdatingProps } from '../helpers/ThemeManager'
|
|
12
10
|
import { ThemeManagerIDContext } from '../helpers/ThemeManagerContext'
|
|
13
11
|
import type {
|
|
14
12
|
DebugProp,
|
|
@@ -2,7 +2,7 @@ import { useIsomorphicLayoutEffect } from '@tamagui/constants'
|
|
|
2
2
|
import { useContext, useState } from 'react'
|
|
3
3
|
|
|
4
4
|
import { ThemeManagerIDContext } from '../helpers/ThemeManagerContext'
|
|
5
|
-
import { ThemeName } from '../types'
|
|
5
|
+
import type { ThemeName } from '../types'
|
|
6
6
|
import { getThemeManager } from './useTheme'
|
|
7
7
|
|
|
8
8
|
export function useThemeName(opts?: { parent?: true }): ThemeName {
|
package/src/insertFont.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { setConfigFont } from './config'
|
|
2
2
|
import { createFont } from './createFont'
|
|
3
|
-
import { Variable } from './createVariable'
|
|
4
|
-
import { DeepVariableObject
|
|
3
|
+
import type { Variable } from './createVariable'
|
|
4
|
+
import type { DeepVariableObject } from './createVariables'
|
|
5
|
+
import { createVariables } from './createVariables'
|
|
5
6
|
import { registerCSSVariable, variableToCSS } from './helpers/registerCSSVariable'
|
|
6
|
-
import { GenericFont } from './types'
|
|
7
|
+
import type { GenericFont } from './types'
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Runtime dynamic insert font
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Component, JSXElementConstructor, Ref } from 'react'
|
|
1
|
+
import type { Component, JSXElementConstructor, Ref } from 'react'
|
|
2
2
|
|
|
3
|
-
import { TamaguiComponent } from '../types'
|
|
3
|
+
import type { TamaguiComponent } from '../types'
|
|
4
4
|
|
|
5
5
|
// gets the ref type of any type of react component
|
|
6
6
|
|
package/src/setupHooks.ts
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { RefObject } from 'react'
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
TamaguiElement,
|
|
8
|
-
} from './types'
|
|
9
|
-
import { TamaguiComponentState } from './interfaces/TamaguiComponentState'
|
|
10
|
-
import { TamaguiComponentEvents } from './interfaces/TamaguiComponentEvents'
|
|
3
|
+
import type { GetStyleResult, StaticConfig, TamaguiComponentStateRef } from './types'
|
|
4
|
+
import { TamaguiElement } from './types'
|
|
5
|
+
import type { TamaguiComponentState } from './interfaces/TamaguiComponentState'
|
|
6
|
+
import type { TamaguiComponentEvents } from './interfaces/TamaguiComponentEvents'
|
|
11
7
|
|
|
12
8
|
export const hooks: InternalHooks = {}
|
|
13
9
|
|
package/src/setupReactNative.ts
CHANGED
package/src/styled.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createComponent } from './createComponent'
|
|
2
|
-
import { StyledContext } from './helpers/createStyledContext'
|
|
2
|
+
import type { StyledContext } from './helpers/createStyledContext'
|
|
3
3
|
import { mergeVariants } from './helpers/mergeVariants'
|
|
4
4
|
import type { GetRef } from './interfaces/GetRef'
|
|
5
5
|
import { getReactNativeConfig } from './setupReactNative'
|
package/src/types.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StyleObject } from '@tamagui/helpers'
|
|
2
2
|
import type { Properties } from 'csstype'
|
|
3
|
-
import {
|
|
3
|
+
import type {
|
|
4
4
|
ComponentType,
|
|
5
5
|
ForwardRefExoticComponent,
|
|
6
6
|
FunctionComponent,
|
|
@@ -19,15 +19,15 @@ import type {
|
|
|
19
19
|
} from 'react-native'
|
|
20
20
|
|
|
21
21
|
import type { Variable } from './createVariable'
|
|
22
|
-
import { StyledContext } from './helpers/createStyledContext'
|
|
23
|
-
import { CSSColorNames } from './interfaces/CSSColorNames'
|
|
24
|
-
import { RNOnlyProps } from './interfaces/RNExclusiveTypes'
|
|
22
|
+
import type { StyledContext } from './helpers/createStyledContext'
|
|
23
|
+
import type { CSSColorNames } from './interfaces/CSSColorNames'
|
|
24
|
+
import type { RNOnlyProps } from './interfaces/RNExclusiveTypes'
|
|
25
25
|
import type { LanguageContextType } from './views/FontLanguage.types'
|
|
26
26
|
import type { ThemeProviderProps } from './views/ThemeProvider'
|
|
27
|
-
import { TamaguiComponentState } from './interfaces/TamaguiComponentState'
|
|
28
|
-
import { WebOnlyPressEvents } from './interfaces/WebOnlyPressEvents'
|
|
29
|
-
import { TamaguiComponentPropsBaseBase } from './interfaces/TamaguiComponentPropsBaseBase'
|
|
30
|
-
import { SizeKeys, SpaceKeys, ColorKeys } from './interfaces/KeyTypes'
|
|
27
|
+
import type { TamaguiComponentState } from './interfaces/TamaguiComponentState'
|
|
28
|
+
import type { WebOnlyPressEvents } from './interfaces/WebOnlyPressEvents'
|
|
29
|
+
import type { TamaguiComponentPropsBaseBase } from './interfaces/TamaguiComponentPropsBaseBase'
|
|
30
|
+
import type { SizeKeys, SpaceKeys, ColorKeys } from './interfaces/KeyTypes'
|
|
31
31
|
|
|
32
32
|
export * from './interfaces/KeyTypes'
|
|
33
33
|
export * from './interfaces/TamaguiComponentState'
|
|
@@ -4,7 +4,6 @@ import { ComponentContext } from '../contexts/ComponentContext'
|
|
|
4
4
|
import type { FontLanguageProps } from './FontLanguage.types'
|
|
5
5
|
|
|
6
6
|
export const FontLanguage = ({ children, ...props }: FontLanguageProps) => {
|
|
7
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
8
7
|
const language = useMemo(() => props, [JSON.stringify(props)])
|
|
9
8
|
return (
|
|
10
9
|
<ComponentContext.Provider language={language}>{children}</ComponentContext.Provider>
|
package/src/views/Slot.tsx
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
import { composeRefs } from '@tamagui/compose-refs'
|
|
4
4
|
import { isWeb } from '@tamagui/constants'
|
|
5
5
|
import { composeEventHandlers } from '@tamagui/helpers'
|
|
6
|
-
import {
|
|
6
|
+
import type { ReactNode } from 'react'
|
|
7
|
+
import { Children, cloneElement, forwardRef, isValidElement } from 'react'
|
|
7
8
|
|
|
8
9
|
/* -------------------------------------------------------------------------------------------------
|
|
9
10
|
* Slot
|
|
@@ -16,7 +16,7 @@ export function TamaguiProvider({
|
|
|
16
16
|
|
|
17
17
|
if (isClient) {
|
|
18
18
|
// inject CSS if asked to (not SSR compliant)
|
|
19
|
-
|
|
19
|
+
|
|
20
20
|
React.useLayoutEffect(() => {
|
|
21
21
|
if (!config.disableSSR) {
|
|
22
22
|
// for easier support of hidden-until-js mount animations
|
package/src/views/Text.tsx
CHANGED
package/src/views/Theme.tsx
CHANGED
|
@@ -3,7 +3,8 @@ import React, { Children, cloneElement, forwardRef, isValidElement, useRef } fro
|
|
|
3
3
|
|
|
4
4
|
import { variableToString } from '../createVariable'
|
|
5
5
|
import { ThemeManagerIDContext } from '../helpers/ThemeManagerContext'
|
|
6
|
-
import { ChangedThemeResponse
|
|
6
|
+
import type { ChangedThemeResponse } from '../hooks/useTheme'
|
|
7
|
+
import { useChangeThemeEffect } from '../hooks/useTheme'
|
|
7
8
|
import type { ThemeProps } from '../types'
|
|
8
9
|
import { ThemeDebug } from './ThemeDebug'
|
|
9
10
|
|
package/src/views/ThemeDebug.tsx
CHANGED
|
@@ -3,8 +3,8 @@ import { useForceUpdate } from '@tamagui/use-force-update'
|
|
|
3
3
|
import { useEffect, useId, useState } from 'react'
|
|
4
4
|
import { createPortal } from 'react-dom'
|
|
5
5
|
|
|
6
|
-
import { ChangedThemeResponse } from '../hooks/useTheme'
|
|
7
|
-
import { ThemeProps } from '../types'
|
|
6
|
+
import type { ChangedThemeResponse } from '../hooks/useTheme'
|
|
7
|
+
import type { ThemeProps } from '../types'
|
|
8
8
|
|
|
9
9
|
let node
|
|
10
10
|
|
package/types/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfigListener, TamaguiInternalConfig, Token, Tokens, TokensMerged } from './types';
|
|
1
|
+
import type { ConfigListener, TamaguiInternalConfig, Token, Tokens, TokensMerged } from './types';
|
|
2
2
|
export declare const setConfig: (next: TamaguiInternalConfig) => void;
|
|
3
3
|
export declare const setConfigFont: (name: string, font: any, fontParsed: any) => void;
|
|
4
4
|
export declare const getConfig: () => TamaguiInternalConfig;
|
package/types/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,cAAc,EACd,qBAAqB,EACrB,KAAK,EACL,MAAM,EACN,YAAY,EACb,MAAM,SAAS,CAAA;AAIhB,eAAO,MAAM,SAAS,SAAU,qBAAqB,SAEpD,CAAA;AAED,eAAO,MAAM,aAAa,SAAU,MAAM,QAAQ,GAAG,cAAc,GAAG,SAMrE,CAAA;AAED,eAAO,MAAM,SAAS,6BASrB,CAAA;AAGD,wBAAgB,SAAS,CAAC,CAAC,EAAE,YAAY,QAExC;AAED,eAAO,MAAM,SAAS;IAGpB;;OAEG;;MAEI,YAQR,CAAA;AAED,eAAO,MAAM,cAAc,UAAW,KAAK,UAAU,MAAM,MAAM,6CAShE,CAAA;AAED,eAAO,MAAM,QAAQ,UAAW,KAAK,UAAU,MAAM,MAAM,+BAG1D,CAAA;AAED,eAAO,MAAM,aAAa,UAAW,KAAK,UAAU,MAAM,MAAM,QAE/D,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,SAAS;IArCpB;;OAEG;;MAEI,YAiCyB,CAAA;AAElC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;CAAqB,CAAA;AAE3C,eAAO,MAAM,eAAe,qBAA4B,CAAA;AAExD,eAAO,MAAM,gBAAgB,OAAQ,cAAc,SAMlD,CAAA;AAED,eAAO,MAAM,YAAY,QAAS,MAAM,SAAS,GAAG,SAGnD,CAAA;AAGD,eAAO,MAAM,OAAO,SAAU,MAAM,4DAQnC,CAAA;AAED,KAAK,SAAS,GAAG;IACf,UAAU,CAAC,EACP,OAAO,GACP;QACE,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;KACf,CAAA;CACN,CAAA;AAED,eAAO,IAAI,SAAS,EAAE,SAAS,GAAG,SAAS,CAAA;AAE3C,wBAAgB,QAAQ,CAAC,IAAI,EAAE,SAAS,QAIvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComponentContext.d.ts","sourceRoot":"","sources":["../../src/contexts/ComponentContext.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAsB,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"ComponentContext.d.ts","sourceRoot":"","sources":["../../src/contexts/ComponentContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAsB,MAAM,UAAU,CAAA;AAErE,eAAO,MAAM,gBAAgB,2EAU3B,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DebugProp, SpaceDirection, SpaceValue, SpacerProps, SpacerStyleProps, StackNonStyleProps, StaticConfig, TamaguiComponent, TamaguiElement } from './types';
|
|
2
|
+
import type { DebugProp, SpaceDirection, SpaceValue, SpacerProps, SpacerStyleProps, StackNonStyleProps, StaticConfig, TamaguiComponent, TamaguiElement } from './types';
|
|
3
3
|
export declare const mouseUps: Set<Function>;
|
|
4
4
|
export declare function createComponent<ComponentPropTypes extends Record<string, any> = {}, Ref extends TamaguiElement = TamaguiElement, BaseProps = never, BaseStyles extends Object = never>(staticConfig: StaticConfig): TamaguiComponent<ComponentPropTypes, Ref, BaseProps, BaseStyles, {}>;
|
|
5
5
|
export declare function Unspaced(props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createComponent.d.ts","sourceRoot":"","sources":["../src/createComponent.tsx"],"names":[],"mappings":"AAIA,OAAO,KAYN,MAAM,OAAO,CAAA;AAuBd,OAAO,
|
|
1
|
+
{"version":3,"file":"createComponent.d.ts","sourceRoot":"","sources":["../src/createComponent.tsx"],"names":[],"mappings":"AAIA,OAAO,KAYN,MAAM,OAAO,CAAA;AAuBd,OAAO,KAAK,EAEV,SAAS,EAMT,cAAc,EACd,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAElB,YAAY,EAEZ,gBAAgB,EAEhB,cAAc,EAMf,MAAM,SAAS,CAAA;AAiBhB,eAAO,MAAM,QAAQ,eAAsB,CAAA;AA6D3C,wBAAgB,eAAe,CAC7B,kBAAkB,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,EAAE,EACnD,GAAG,SAAS,cAAc,GAAG,cAAc,EAC3C,SAAS,GAAG,KAAK,EACjB,UAAU,SAAS,MAAM,GAAG,KAAK,EACjC,YAAY,EAAE,YAAY,wEA0rC3B;AAsBD,wBAAgB,QAAQ,CAAC,KAAK,EAAE;IAAE,QAAQ,CAAC,EAAE,GAAG,CAAA;CAAE,OAEjD;yBAFe,QAAQ;;;AAkBxB,eAAO,MAAM,MAAM,yFA0CjB,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAC5B,SAAS,CAAC,EAAE,cAAc,GAAG,OAAO,CAAA;IACpC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB,CAAA;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,mBAiGxD"}
|
package/types/createFont.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createFont.d.ts","sourceRoot":"","sources":["../src/createFont.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,WAAW,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"createFont.d.ts","sourceRoot":"","sources":["../src/createFont.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,WAAW,EAAE,MAAM,SAAS,CAAA;AAkC5D,eAAO,MAAM,UAAU,uCAetB,CAAA"}
|