@hanzogui/image 2.0.4 → 2.0.5
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/dist/cjs/Image.cjs +1 -1
- package/dist/cjs/createImage.cjs +1 -1
- package/dist/cjs/createImage.native.js +1 -1
- package/dist/cjs/v1/Image.cjs +2 -2
- package/dist/cjs/v1/Image.native.js +2 -2
- package/dist/esm/Image.mjs +1 -1
- package/dist/esm/createImage.mjs +1 -1
- package/dist/esm/createImage.native.js +1 -1
- package/dist/esm/v1/Image.mjs +2 -2
- package/dist/esm/v1/Image.native.js +2 -2
- package/dist/jsx/Image.mjs +1 -1
- package/dist/jsx/createImage.mjs +1 -1
- package/dist/jsx/createImage.native.js +1 -1
- package/dist/jsx/v1/Image.mjs +2 -2
- package/dist/jsx/v1/Image.native.js +2 -2
- package/package.json +1 -1
- 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/dist/cjs/Image.cjs
CHANGED
|
@@ -23,7 +23,7 @@ __export(Image_exports, {
|
|
|
23
23
|
Image: () => Image
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(Image_exports);
|
|
26
|
-
var import_gui_web = require("@
|
|
26
|
+
var import_gui_web = require("@hanzogui/web"),
|
|
27
27
|
import_jsx_runtime = require("react/jsx-runtime");
|
|
28
28
|
const StyledImage = (0, import_gui_web.styled)(import_gui_web.View, {
|
|
29
29
|
name: "Image",
|
package/dist/cjs/createImage.cjs
CHANGED
|
@@ -23,7 +23,7 @@ __export(createImage_exports, {
|
|
|
23
23
|
createImage: () => createImage
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(createImage_exports);
|
|
26
|
-
var import_gui_web = require("@
|
|
26
|
+
var import_gui_web = require("@hanzogui/web"),
|
|
27
27
|
import_jsx_runtime = require("react/jsx-runtime");
|
|
28
28
|
const defaultObjectFitMap = objectFit => {
|
|
29
29
|
switch (objectFit) {
|
|
@@ -26,7 +26,7 @@ __export(createImage_exports, {
|
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(createImage_exports);
|
|
28
28
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
29
|
-
import_gui_web = require("@
|
|
29
|
+
import_gui_web = require("@hanzogui/web"),
|
|
30
30
|
defaultObjectFitMap = function (objectFit) {
|
|
31
31
|
switch (objectFit) {
|
|
32
32
|
case "fill":
|
package/dist/cjs/v1/Image.cjs
CHANGED
|
@@ -35,8 +35,8 @@ __export(Image_exports, {
|
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(Image_exports);
|
|
37
37
|
var import_react = __toESM(require("react"), 1),
|
|
38
|
-
import_gui_constants = require("@
|
|
39
|
-
import_gui_web = require("@
|
|
38
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
39
|
+
import_gui_web = require("@hanzogui/web"),
|
|
40
40
|
import_react_native = require("react-native-web"),
|
|
41
41
|
import_jsx_runtime = require("react/jsx-runtime");
|
|
42
42
|
const StyledImage = (0, import_gui_web.styled)(import_react_native.Image, {
|
|
@@ -38,8 +38,8 @@ __export(Image_exports, {
|
|
|
38
38
|
module.exports = __toCommonJS(Image_exports);
|
|
39
39
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
40
40
|
import_react = __toESM(require("react"), 1),
|
|
41
|
-
import_gui_constants = require("@
|
|
42
|
-
import_gui_web = require("@
|
|
41
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
42
|
+
import_gui_web = require("@hanzogui/web"),
|
|
43
43
|
import_react_native = require("react-native");
|
|
44
44
|
function _type_of(obj) {
|
|
45
45
|
"@swc/helpers - typeof";
|
package/dist/esm/Image.mjs
CHANGED
package/dist/esm/createImage.mjs
CHANGED
package/dist/esm/v1/Image.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { isWeb } from "@
|
|
3
|
-
import { styled, usePropsAndStyle } from "@
|
|
2
|
+
import { isWeb } from "@hanzogui/constants";
|
|
3
|
+
import { styled, usePropsAndStyle } from "@hanzogui/web";
|
|
4
4
|
import { Image as RNImage } from "react-native-web";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
const StyledImage = styled(RNImage, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { isWeb } from "@
|
|
4
|
-
import { styled, usePropsAndStyle } from "@
|
|
3
|
+
import { isWeb } from "@hanzogui/constants";
|
|
4
|
+
import { styled, usePropsAndStyle } from "@hanzogui/web";
|
|
5
5
|
import { Image as RNImage } from "react-native";
|
|
6
6
|
function _type_of(obj) {
|
|
7
7
|
"@swc/helpers - typeof";
|
package/dist/jsx/Image.mjs
CHANGED
package/dist/jsx/createImage.mjs
CHANGED
|
@@ -26,7 +26,7 @@ __export(createImage_exports, {
|
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(createImage_exports);
|
|
28
28
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
29
|
-
import_gui_web = require("@
|
|
29
|
+
import_gui_web = require("@hanzogui/web"),
|
|
30
30
|
defaultObjectFitMap = function (objectFit) {
|
|
31
31
|
switch (objectFit) {
|
|
32
32
|
case "fill":
|
package/dist/jsx/v1/Image.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { isWeb } from "@
|
|
3
|
-
import { styled, usePropsAndStyle } from "@
|
|
2
|
+
import { isWeb } from "@hanzogui/constants";
|
|
3
|
+
import { styled, usePropsAndStyle } from "@hanzogui/web";
|
|
4
4
|
import { Image as RNImage } from "react-native-web";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
const StyledImage = styled(RNImage, {
|
|
@@ -38,8 +38,8 @@ __export(Image_exports, {
|
|
|
38
38
|
module.exports = __toCommonJS(Image_exports);
|
|
39
39
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
40
40
|
import_react = __toESM(require("react"), 1),
|
|
41
|
-
import_gui_constants = require("@
|
|
42
|
-
import_gui_web = require("@
|
|
41
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
42
|
+
import_gui_web = require("@hanzogui/web"),
|
|
43
43
|
import_react_native = require("react-native");
|
|
44
44
|
function _type_of(obj) {
|
|
45
45
|
"@swc/helpers - typeof";
|
package/package.json
CHANGED
package/src/Image.tsx
CHANGED
package/src/createImage.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getTokenValue, styled } from '@
|
|
1
|
+
import { getTokenValue, styled } from '@hanzogui/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 '@hanzogui/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 '@hanzogui/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 '@hanzogui/web'
|
|
10
|
+
import { styled, usePropsAndStyle } from '@hanzogui/web'
|
|
11
11
|
import type { FC } from 'react'
|
|
12
12
|
import { Image as RNImage } from 'react-native'
|
|
13
13
|
|