@hanzogui/image 2.0.0 → 2.0.4
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/package.json +5 -5
- package/src/Image.tsx +1 -1
- package/src/createImage.tsx +2 -2
- package/src/types.ts +1 -1
- package/src/v1/Image.tsx +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzogui/image",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"clean:build": "hanzo-gui-build clean:build"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@hanzogui/constants": "2.0.
|
|
40
|
-
"@hanzogui/core": "2.0.
|
|
41
|
-
"@hanzogui/web": "2.0.
|
|
39
|
+
"@hanzogui/constants": "2.0.1",
|
|
40
|
+
"@hanzogui/core": "2.0.1",
|
|
41
|
+
"@hanzogui/web": "2.0.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@hanzogui/build": "2.0.
|
|
44
|
+
"@hanzogui/build": "2.0.1",
|
|
45
45
|
"react": ">=19",
|
|
46
46
|
"react-native": "0.83.2"
|
|
47
47
|
},
|
package/src/Image.tsx
CHANGED
package/src/createImage.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getTokenValue, styled } from '@
|
|
1
|
+
import { getTokenValue, styled } from '@hanzo/gui-web'
|
|
2
2
|
import type { ComponentType } from 'react'
|
|
3
3
|
import type { ImageResizeMode } from 'react-native'
|
|
4
4
|
import type { ImageProps, ImageType } from './types'
|
|
@@ -77,7 +77,7 @@ const defaultTransformSource = (props: {
|
|
|
77
77
|
* @example
|
|
78
78
|
* Using with expo-image
|
|
79
79
|
* import { Image as ExpoImage } from 'expo-image'
|
|
80
|
-
* import { createImage } from '@
|
|
80
|
+
* import { createImage } from '@hanzo/gui-image'
|
|
81
81
|
*
|
|
82
82
|
* export const Image = createImage({
|
|
83
83
|
* Component: ExpoImage,
|
package/src/types.ts
CHANGED
package/src/v1/Image.tsx
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { isWeb } from '@
|
|
2
|
+
import { isWeb } from '@hanzo/gui-constants'
|
|
3
3
|
import type {
|
|
4
4
|
GetProps,
|
|
5
5
|
RadiusTokens,
|
|
6
6
|
SizeTokens,
|
|
7
7
|
ViewProps,
|
|
8
8
|
ThemeValueFallback,
|
|
9
|
-
} from '@
|
|
10
|
-
import { styled, usePropsAndStyle } from '@
|
|
9
|
+
} from '@hanzo/gui-web'
|
|
10
|
+
import { styled, usePropsAndStyle } from '@hanzo/gui-web'
|
|
11
11
|
import type { FC } from 'react'
|
|
12
12
|
import { Image as RNImage } from 'react-native'
|
|
13
13
|
|