@tamagui/image 1.142.0 → 2.0.0-1

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.
Files changed (124) hide show
  1. package/dist/cjs/Image.cjs +38 -62
  2. package/dist/cjs/Image.js +34 -51
  3. package/dist/cjs/Image.js.map +2 -2
  4. package/dist/cjs/Image.native.js +11 -83
  5. package/dist/cjs/Image.native.js.map +1 -1
  6. package/dist/cjs/createImage.cjs +122 -0
  7. package/dist/cjs/createImage.js +127 -0
  8. package/dist/cjs/createImage.js.map +6 -0
  9. package/dist/cjs/createImage.native.js +128 -0
  10. package/dist/cjs/createImage.native.js.map +1 -0
  11. package/dist/cjs/index.cjs +2 -1
  12. package/dist/cjs/index.js +1 -0
  13. package/dist/cjs/index.js.map +1 -1
  14. package/dist/cjs/index.native.js +1 -0
  15. package/dist/cjs/index.native.js.map +1 -1
  16. package/dist/cjs/types.cjs +16 -0
  17. package/dist/cjs/types.js +14 -0
  18. package/dist/cjs/types.js.map +6 -0
  19. package/dist/cjs/types.native.js +19 -0
  20. package/dist/cjs/types.native.js.map +1 -0
  21. package/dist/cjs/v1/Image.cjs +86 -0
  22. package/dist/cjs/v1/Image.js +72 -0
  23. package/dist/cjs/v1/Image.js.map +6 -0
  24. package/dist/cjs/v1/Image.native.js +105 -0
  25. package/dist/cjs/v1/Image.native.js.map +1 -0
  26. package/dist/cjs/v1/index.cjs +18 -0
  27. package/dist/cjs/v1/index.js +15 -0
  28. package/dist/cjs/v1/index.js.map +6 -0
  29. package/dist/cjs/v1/index.native.js +21 -0
  30. package/dist/cjs/v1/index.native.js.map +1 -0
  31. package/dist/esm/Image.js +32 -44
  32. package/dist/esm/Image.js.map +1 -1
  33. package/dist/esm/Image.mjs +34 -47
  34. package/dist/esm/Image.mjs.map +1 -1
  35. package/dist/esm/Image.native.js +4 -65
  36. package/dist/esm/Image.native.js.map +1 -1
  37. package/dist/esm/createImage.js +112 -0
  38. package/dist/esm/createImage.js.map +6 -0
  39. package/dist/esm/createImage.mjs +99 -0
  40. package/dist/esm/createImage.mjs.map +1 -0
  41. package/dist/esm/createImage.native.js +102 -0
  42. package/dist/esm/createImage.native.js.map +1 -0
  43. package/dist/esm/index.js +1 -0
  44. package/dist/esm/index.js.map +1 -1
  45. package/dist/esm/index.mjs +1 -0
  46. package/dist/esm/index.mjs.map +1 -1
  47. package/dist/esm/index.native.js +1 -0
  48. package/dist/esm/index.native.js.map +1 -1
  49. package/dist/esm/types.js +1 -0
  50. package/dist/esm/types.js.map +6 -0
  51. package/dist/esm/types.mjs +2 -0
  52. package/dist/esm/types.mjs.map +1 -0
  53. package/dist/esm/types.native.js +2 -0
  54. package/dist/esm/types.native.js.map +1 -0
  55. package/dist/esm/v1/Image.js +52 -0
  56. package/dist/esm/v1/Image.js.map +6 -0
  57. package/dist/esm/v1/Image.mjs +52 -0
  58. package/dist/esm/v1/Image.mjs.map +1 -0
  59. package/dist/esm/v1/Image.native.js +68 -0
  60. package/dist/esm/v1/Image.native.js.map +1 -0
  61. package/dist/esm/v1/index.js +2 -0
  62. package/dist/esm/v1/index.js.map +6 -0
  63. package/dist/esm/v1/index.mjs +2 -0
  64. package/dist/esm/v1/index.mjs.map +1 -0
  65. package/dist/esm/v1/index.native.js +2 -0
  66. package/dist/esm/v1/index.native.js.map +1 -0
  67. package/dist/jsx/Image.js +32 -44
  68. package/dist/jsx/Image.js.map +1 -1
  69. package/dist/jsx/Image.mjs +34 -47
  70. package/dist/jsx/Image.mjs.map +1 -1
  71. package/dist/jsx/Image.native.js +11 -83
  72. package/dist/jsx/Image.native.js.map +1 -1
  73. package/dist/jsx/createImage.js +112 -0
  74. package/dist/jsx/createImage.js.map +6 -0
  75. package/dist/jsx/createImage.mjs +99 -0
  76. package/dist/jsx/createImage.mjs.map +1 -0
  77. package/dist/jsx/createImage.native.js +128 -0
  78. package/dist/jsx/createImage.native.js.map +1 -0
  79. package/dist/jsx/index.js +1 -0
  80. package/dist/jsx/index.js.map +1 -1
  81. package/dist/jsx/index.mjs +1 -0
  82. package/dist/jsx/index.mjs.map +1 -1
  83. package/dist/jsx/index.native.js +1 -0
  84. package/dist/jsx/index.native.js.map +1 -1
  85. package/dist/jsx/types.js +1 -0
  86. package/dist/jsx/types.js.map +6 -0
  87. package/dist/jsx/types.mjs +2 -0
  88. package/dist/jsx/types.mjs.map +1 -0
  89. package/dist/jsx/types.native.js +19 -0
  90. package/dist/jsx/types.native.js.map +1 -0
  91. package/dist/jsx/v1/Image.js +52 -0
  92. package/dist/jsx/v1/Image.js.map +6 -0
  93. package/dist/jsx/v1/Image.mjs +52 -0
  94. package/dist/jsx/v1/Image.mjs.map +1 -0
  95. package/dist/jsx/v1/Image.native.js +105 -0
  96. package/dist/jsx/v1/Image.native.js.map +1 -0
  97. package/dist/jsx/v1/index.js +2 -0
  98. package/dist/jsx/v1/index.js.map +6 -0
  99. package/dist/jsx/v1/index.mjs +2 -0
  100. package/dist/jsx/v1/index.mjs.map +1 -0
  101. package/dist/jsx/v1/index.native.js +21 -0
  102. package/dist/jsx/v1/index.native.js.map +1 -0
  103. package/package.json +5 -4
  104. package/src/Image.native.tsx +6 -0
  105. package/src/Image.tsx +34 -137
  106. package/src/createImage.tsx +231 -0
  107. package/src/index.ts +2 -0
  108. package/src/types.ts +54 -0
  109. package/src/v1/Image.tsx +144 -0
  110. package/src/v1/index.ts +1 -0
  111. package/types/Image.d.ts +1 -34
  112. package/types/Image.d.ts.map +1 -1
  113. package/types/Image.native.d.ts +16 -0
  114. package/types/Image.native.d.ts.map +1 -0
  115. package/types/createImage.d.ts +77 -0
  116. package/types/createImage.d.ts.map +1 -0
  117. package/types/index.d.ts +2 -0
  118. package/types/index.d.ts.map +1 -1
  119. package/types/types.d.ts +42 -0
  120. package/types/types.d.ts.map +1 -0
  121. package/types/v1/Image.d.ts +36 -0
  122. package/types/v1/Image.d.ts.map +1 -0
  123. package/types/v1/index.d.ts +2 -0
  124. package/types/v1/index.d.ts.map +1 -0
@@ -1,9 +1,7 @@
1
- var __create = Object.create;
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf,
6
- __hasOwnProp = Object.prototype.hasOwnProperty;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
5
  var __export = (target, all) => {
8
6
  for (var name in all) __defProp(target, name, {
9
7
  get: all[name],
@@ -17,70 +15,48 @@ var __export = (target, all) => {
17
15
  });
18
16
  return to;
19
17
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
- value: mod,
27
- enumerable: !0
28
- }) : target, mod)),
29
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
- value: !0
31
- }), mod);
18
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
+ value: !0
20
+ }), mod);
32
21
  var Image_exports = {};
33
22
  __export(Image_exports, {
34
23
  Image: () => Image
35
24
  });
36
25
  module.exports = __toCommonJS(Image_exports);
37
- var import_react = __toESM(require("react"), 1),
38
- import_constants = require("@tamagui/constants"),
39
- import_core = require("@tamagui/core"),
40
- import_react_native = require("react-native-web"),
26
+ var import_web = require("@tamagui/web"),
41
27
  import_jsx_runtime = require("react/jsx-runtime");
42
- const StyledImage = (0, import_core.styled)(import_react_native.Image, {
43
- name: "Image"
44
- });
45
- let hasWarned = !1;
46
- const Image = StyledImage.styleable((inProps, ref) => {
47
- const [props, style] = (0, import_core.usePropsAndStyle)(inProps),
48
- {
49
- src,
50
- source,
51
- objectFit,
28
+ const StyledImage = (0, import_web.styled)(import_web.View, {
29
+ name: "Image",
30
+ tag: "img"
31
+ }),
32
+ Image = StyledImage.styleable((inProps, ref) => {
33
+ const {
34
+ // exclude native only props
35
+ blurRadius,
36
+ capInsets,
37
+ defaultSource,
38
+ fadeDuration,
39
+ loadingIndicatorSource,
40
+ onLoadEnd,
41
+ onPartialLoad,
42
+ progressiveRenderingEnabled,
43
+ resizeMethod,
44
+ tintColor,
45
+ ...rest
46
+ } = inProps;
47
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(StyledImage, {
48
+ ref,
52
49
  ...rest
53
- } = props;
54
- process.env.NODE_ENV === "development" && typeof src == "string" && (typeof props.width == "string" && props.width[0] !== "$" || typeof props.height == "string" && props.height[0] !== "$") && (hasWarned || (hasWarned = !0, console.warn('React Native expects a numerical width/height. If you want to use a percent you must define the "source" prop with width, height, and uri.')));
55
- let finalSource = typeof src == "string" ? {
56
- uri: src,
57
- ...(import_constants.isWeb && {
58
- width: props.width || style?.width,
59
- height: props.height || style?.height
60
- })
61
- } : source ?? src;
62
- return finalSource && typeof finalSource == "object" && (process.env.NODE_ENV === "development" && process.env.TAMAGUI_IMAGE_CHECK_ERROR && import_react.default.useEffect(() => {
63
- async function run() {
64
- if (typeof src == "string") try {
65
- await fetch(src).then(res => res.text());
66
- } catch {
67
- console.error(`Error loading image: ${src}`, {
68
- props
69
- });
70
- }
50
+ });
51
+ }, {
52
+ staticConfig: {
53
+ memo: !0
71
54
  }
72
- run();
73
- }, [src]), finalSource.default && (finalSource = finalSource.default)), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.Image, {
74
- resizeMode: objectFit,
75
- ref,
76
- source: finalSource,
77
- style,
78
- ...rest
79
- });
80
- });
81
- Image.getSize = import_react_native.Image.getSize;
82
- Image.getSizeWithHeaders = import_react_native.Image.getSizeWithHeaders;
83
- Image.prefetch = import_react_native.Image.prefetch;
84
- Image.prefetchWithMetadata = import_react_native.Image.prefetchWithMetadata;
85
- Image.abortPrefetch = import_react_native.Image.abortPrefetch;
86
- Image.queryCache = import_react_native.Image.queryCache;
55
+ }),
56
+ func = () => {};
57
+ Image.getSize = func;
58
+ Image.getSizeWithHeaders = func;
59
+ Image.prefetch = func;
60
+ Image.prefetchWithMetadata = func;
61
+ Image.abortPrefetch = func;
62
+ Image.queryCache = func;
package/dist/cjs/Image.js CHANGED
@@ -1,8 +1,7 @@
1
- var __create = Object.create;
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
5
  var __export = (target, all) => {
7
6
  for (var name in all)
8
7
  __defProp(target, name, { get: all[name], enumerable: !0 });
@@ -12,61 +11,45 @@ var __export = (target, all) => {
12
11
  !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
12
  return to;
14
13
  };
15
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
- // If the importer is in node compatibility mode or this is not an ESM
17
- // file that has been converted to a CommonJS file using a Babel-
18
- // compatible transform (i.e. "__esModule" has not been set), then set
19
- // "default" to the CommonJS "module.exports" for node compatibility.
20
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
21
- mod
22
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
23
15
  var Image_exports = {};
24
16
  __export(Image_exports, {
25
17
  Image: () => Image
26
18
  });
27
19
  module.exports = __toCommonJS(Image_exports);
28
- var import_react = __toESM(require("react"), 1), import_constants = require("@tamagui/constants"), import_core = require("@tamagui/core"), import_react_native = require("react-native-web"), import_jsx_runtime = require("react/jsx-runtime");
29
- const StyledImage = (0, import_core.styled)(import_react_native.Image, {
30
- name: "Image"
31
- });
32
- let hasWarned = !1;
33
- const Image = StyledImage.styleable((inProps, ref) => {
34
- const [props, style] = (0, import_core.usePropsAndStyle)(inProps), { src, source, objectFit, ...rest } = props;
35
- process.env.NODE_ENV === "development" && typeof src == "string" && (typeof props.width == "string" && props.width[0] !== "$" || typeof props.height == "string" && props.height[0] !== "$") && (hasWarned || (hasWarned = !0, console.warn(
36
- 'React Native expects a numerical width/height. If you want to use a percent you must define the "source" prop with width, height, and uri.'
37
- )));
38
- let finalSource = typeof src == "string" ? {
39
- uri: src,
40
- ...import_constants.isWeb && {
41
- width: props.width || style?.width,
42
- height: props.height || style?.height
43
- }
44
- } : source ?? src;
45
- return finalSource && typeof finalSource == "object" && (process.env.NODE_ENV === "development" && process.env.TAMAGUI_IMAGE_CHECK_ERROR && import_react.default.useEffect(() => {
46
- async function run() {
47
- if (typeof src == "string")
48
- try {
49
- await fetch(src).then((res) => res.text());
50
- } catch {
51
- console.error(`Error loading image: ${src}`, { props });
52
- }
53
- }
54
- run();
55
- }, [src]), finalSource.default && (finalSource = finalSource.default)), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
56
- import_react_native.Image,
57
- {
58
- resizeMode: objectFit,
59
- ref,
60
- source: finalSource,
61
- style,
20
+ var import_web = require("@tamagui/web"), import_jsx_runtime = require("react/jsx-runtime");
21
+ const StyledImage = (0, import_web.styled)(import_web.View, {
22
+ name: "Image",
23
+ tag: "img"
24
+ }), Image = StyledImage.styleable(
25
+ (inProps, ref) => {
26
+ const {
27
+ // exclude native only props
28
+ blurRadius,
29
+ capInsets,
30
+ defaultSource,
31
+ fadeDuration,
32
+ loadingIndicatorSource,
33
+ onLoadEnd,
34
+ onPartialLoad,
35
+ progressiveRenderingEnabled,
36
+ resizeMethod,
37
+ tintColor,
62
38
  ...rest
39
+ } = inProps;
40
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledImage, { ref, ...rest });
41
+ },
42
+ {
43
+ staticConfig: {
44
+ memo: !0
63
45
  }
64
- );
46
+ }
47
+ ), func = (() => {
65
48
  });
66
- Image.getSize = import_react_native.Image.getSize;
67
- Image.getSizeWithHeaders = import_react_native.Image.getSizeWithHeaders;
68
- Image.prefetch = import_react_native.Image.prefetch;
69
- Image.prefetchWithMetadata = import_react_native.Image.prefetchWithMetadata;
70
- Image.abortPrefetch = import_react_native.Image.abortPrefetch;
71
- Image.queryCache = import_react_native.Image.queryCache;
49
+ Image.getSize = func;
50
+ Image.getSizeWithHeaders = func;
51
+ Image.prefetch = func;
52
+ Image.prefetchWithMetadata = func;
53
+ Image.abortPrefetch = func;
54
+ Image.queryCache = func;
72
55
  //# sourceMappingURL=Image.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Image.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB,8BAClB,mBAAsB,+BAQtB,cAAyC,0BAEzC,sBAAiC,yBAqH7B;AAnHJ,MAAM,kBAAc,oBAAO,oBAAAA,OAAS;AAAA,EAClC,MAAM;AACR,CAAC;AAmCD,IAAI,YAAY;AAMT,MAAM,QAAQ,YAAY,UAAsB,CAAC,SAAS,QAAQ;AACvE,QAAM,CAAC,OAAO,KAAK,QAAI,8BAAiB,OAAO,GACzC,EAAE,KAAK,QAAQ,WAAW,GAAG,KAAK,IAAI;AAE5C,EAAI,QAAQ,IAAI,aAAa,iBACvB,OAAO,OAAQ,aAEd,OAAO,MAAM,SAAU,YAAY,MAAM,MAAM,CAAC,MAAM,OACtD,OAAO,MAAM,UAAW,YAAY,MAAM,OAAO,CAAC,MAAM,SAEpD,cACH,YAAY,IACZ,QAAQ;AAAA,IACN;AAAA,EACF;AAMR,MAAI,cACF,OAAO,OAAQ,WACX;AAAA,IACE,KAAK;AAAA,IACL,GAAI,0BAAS;AAAA,MACX,OA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;AAAA,MACA,GAAG;AAAA,IACL,IAAI;AACJ,WAAO,4CAAC,eAAY,KAAW,GAAG,MAAM;AAAA,EAC1C;AAAA,EACA;AAAA,IACE,cAAc;AAAA,MACZ,MAAM;AAAA,IACR;AAAA,EACF;AACF,GAEM,QAAQ,MAAM;AAAC;AAErB,MAAM,UAAU;AAChB,MAAM,qBAAqB;AAC3B,MAAM,WAAW;AACjB,MAAM,uBAAuB;AAC7B,MAAM,gBAAgB;AACtB,MAAM,aAAa;",
5
+ "names": []
6
6
  }
@@ -1,11 +1,9 @@
1
1
  "use strict";
2
2
 
3
- var __create = Object.create;
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf,
8
- __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
7
  var __export = (target, all) => {
10
8
  for (var name in all) __defProp(target, name, {
11
9
  get: all[name],
@@ -19,87 +17,17 @@ var __export = (target, all) => {
19
17
  });
20
18
  return to;
21
19
  };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
- value: mod,
29
- enumerable: !0
30
- }) : target, mod)),
31
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: !0
33
- }), mod);
34
- var Image_exports = {};
35
- __export(Image_exports, {
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: !0
22
+ }), mod);
23
+ var Image_native_exports = {};
24
+ __export(Image_native_exports, {
36
25
  Image: () => Image
37
26
  });
38
- module.exports = __toCommonJS(Image_exports);
39
- var import_jsx_runtime = require("react/jsx-runtime"),
40
- import_react = __toESM(require("react"), 1),
41
- import_constants = require("@tamagui/constants"),
42
- import_core = require("@tamagui/core"),
43
- import_react_native = require("react-native");
44
- function _type_of(obj) {
45
- "@swc/helpers - typeof";
46
-
47
- return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
48
- }
49
- var StyledImage = (0, import_core.styled)(import_react_native.Image, {
50
- name: "Image"
51
- }),
52
- hasWarned = !1,
53
- Image = StyledImage.styleable(function (inProps, ref) {
54
- var [props, style] = (0, import_core.usePropsAndStyle)(inProps),
55
- {
56
- src,
57
- source,
58
- objectFit,
59
- ...rest
60
- } = props;
61
- process.env.NODE_ENV === "development" && typeof src == "string" && (typeof props.width == "string" && props.width[0] !== "$" || typeof props.height == "string" && props.height[0] !== "$") && (hasWarned || (hasWarned = !0, console.warn('React Native expects a numerical width/height. If you want to use a percent you must define the "source" prop with width, height, and uri.')));
62
- var finalSource = typeof src == "string" ? {
63
- uri: src,
64
- ...(import_constants.isWeb && {
65
- width: props.width || style?.width,
66
- height: props.height || style?.height
67
- })
68
- } : source ?? src;
69
- if (finalSource && (typeof finalSource > "u" ? "undefined" : _type_of(finalSource)) === "object") {
70
- if (!Array.isArray(finalSource) && typeof finalSource.uri == "number" && (finalSource = finalSource.uri, source && (typeof source > "u" ? "undefined" : _type_of(source)) === "object" && !Array.isArray(source))) {
71
- var _style, _style1, _width;
72
- (_width = (_style = style).width) !== null && _width !== void 0 || (_style.width = source.width);
73
- var _height;
74
- (_height = (_style1 = style).height) !== null && _height !== void 0 || (_style1.height = source.height);
75
- }
76
- process.env.NODE_ENV === "development" && process.env.TAMAGUI_IMAGE_CHECK_ERROR && import_react.default.useEffect(function () {
77
- async function run() {
78
- if (typeof src == "string") try {
79
- await fetch(src).then(function (res) {
80
- return res.text();
81
- });
82
- } catch {
83
- console.error(`Error loading image: ${src}`, {
84
- props
85
- });
86
- }
87
- }
88
- run();
89
- }, [src]), finalSource.default && (finalSource = finalSource.default);
90
- }
91
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.Image, {
92
- resizeMode: objectFit,
93
- ref,
94
- source: finalSource,
95
- style,
96
- ...rest
97
- });
27
+ module.exports = __toCommonJS(Image_native_exports);
28
+ var import_react_native = require("react-native"),
29
+ import_createImage = require("./createImage.native.js"),
30
+ Image = (0, import_createImage.createImage)({
31
+ Component: import_react_native.Image
98
32
  });
99
- Image.getSize = import_react_native.Image.getSize;
100
- Image.getSizeWithHeaders = import_react_native.Image.getSizeWithHeaders;
101
- Image.prefetch = import_react_native.Image.prefetch;
102
- Image.prefetchWithMetadata = import_react_native.Image.prefetchWithMetadata;
103
- Image.abortPrefetch = import_react_native.Image.abortPrefetch;
104
- Image.queryCache = import_react_native.Image.queryCache;
105
33
  //# sourceMappingURL=Image.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Image_exports","__export","Image","module","exports","import_jsx_runtime","require","import_react","__toESM","import_constants","import_core","import_react_native","_type_of","obj","Symbol","constructor","StyledImage","styled","name","hasWarned","styleable","inProps","ref","props","style","usePropsAndStyle","src","source","objectFit","rest","process","env","NODE_ENV","width","height","console","warn","finalSource","uri","isWeb","Array","isArray","_style","_style1","_width","_height","TAMAGUI_IMAGE_CHECK_ERROR","default","useEffect","run","fetch","then","res","text","error","jsx"],"sources":["../../src/Image.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,KAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAkB,CAAAK,aAAA;AAalB,IAAAK,kBAAM,GAAcC,OAAA,oBAAO;EAAAC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,GAAAA,WAAA,CAAAC,GAAA,EAAAX,MAAA,YAAAA,MAAA,uBAAAf,QAAA,CAAAe,MAAA,oBAAAa,KAAA,CAAAC,OAAA,CAAAd,MAAA;QACjB,IAAAe,MAAI,EAAAC,OAAA,EAAAC,MAAA;QACF,CAAAA,MAAA,GAAM,CAAAF,MAAM,GAAGlB,KAAE,EAAMS,KAAA,MAAQ,IAAI,IAAMW,MAAA,gBAAAF,MAAA,CAAAT,KAAA,GAAAN,MAAA,CAAAM,KAAA;QAAA,IAC3CY,OAAc;QACZ,CAAAA,OAAA,IAAQF,OAAM,GAAAnB,KAAA,EAAAU,MAAA,UAA2B,IAAIW,OAAE,KAAO,WAAAF,OAAA,CAAAT,MAAA,GAAAP,MAAA,CAAAO,MAAA;MAAA;MAG5DJ,OAAA,CAAAC,GAAA,CAAAC,QAAA,sBAAAF,OAAA,CAAAC,GAAA,CAAAe,yBAAA,IAAAvC,YAAA,CAAAwC,OAAA,CAAAC,SAAA;QAEA,eAAIC,IAAA;UACF,IAAI,OAINvB,GAAA,IAAY,UAOf;YAAA,MAAAwB,KAAA,CAAAxB,GAAA,EAAAyB,IAAA,WAAAC,GAAA;cACC,OAAYA,GAAA,CAAAC,IAAA;YACZ;UACA,QAAQ;YACRlB,OAAA,CAAAmB,KAAA,yBAAA5B,GAAA;cACKH;YAAA;UACP;QAEH;QAEK0B,GAAA;MACN,GAAM,CACAvB,GAAA,CACN,CAAM,EAAAW,WAAA,CAAAU,OAAA,KAAuBV,WAAA,GAAAA,WAAQ,CAAAU,OAAA;IACrC;IACA,OAAM,eAAa,IAAA1C,kBAAQ,CAAAkD,GAAA,EAAA5C,mBAAA,CAAAT,KAAA","ignoreList":[]}
1
+ {"version":3,"names":["Image_native_exports","__export","Image","module","exports","__toCommonJS","import_react_native","require","import_createImage","createImage","Component"],"sources":["../../src/Image.native.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,oBAAA;AAAAC,QAAA,CAAAD,oBAAA;EAAAE,KAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,oBAAA;AAAA,IAAAM,mBAAA,GAAiCC,OAAA;EACjCC,kBAAA,GAA4BD,OAAA;EACjBL,KAAA,OAAQM,kBAAA,CAAAC,WAAA,EAAY;IAC3BC,SAAA,EAAWJ,mBAAA,CAAAJ;EACf,CAAC","ignoreList":[]}
@@ -0,0 +1,122 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: !0
9
+ });
10
+ },
11
+ __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ return to;
17
+ };
18
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
+ value: !0
20
+ }), mod);
21
+ var createImage_exports = {};
22
+ __export(createImage_exports, {
23
+ createImage: () => createImage
24
+ });
25
+ module.exports = __toCommonJS(createImage_exports);
26
+ var import_web = require("@tamagui/web"),
27
+ import_jsx_runtime = require("react/jsx-runtime");
28
+ const defaultObjectFitMap = objectFit => {
29
+ switch (objectFit) {
30
+ case "fill":
31
+ return "stretch";
32
+ case "none":
33
+ return "center";
34
+ case "scale-down":
35
+ return "contain";
36
+ case "contain":
37
+ return "contain";
38
+ default:
39
+ return "cover";
40
+ }
41
+ },
42
+ defaultTransformSource = props => {
43
+ const {
44
+ src,
45
+ source,
46
+ width,
47
+ height
48
+ } = props;
49
+ return source || (src && typeof src != "string" ? src : {
50
+ uri: src,
51
+ width,
52
+ height
53
+ });
54
+ };
55
+ function createImage(options) {
56
+ const {
57
+ Component,
58
+ mapObjectFitToResizeMode = defaultObjectFitMap,
59
+ resizeModePropName = "resizeMode",
60
+ objectPositionPropName,
61
+ transformSource = defaultTransformSource
62
+ } = options,
63
+ ImageComponent = (0, import_web.styled)(Component, {
64
+ name: "Image"
65
+ }, {
66
+ inlineProps: /* @__PURE__ */new Set(["source", "placeholder", "transition", "contentFit", "contentPosition", "cachePolicy", "recyclingKey", "allowDownscaling", "autoplay", "blurRadius", "priority", "placeholderContentFit", "responsivePolicy", "onLoadStart", "onProgress", "onLoadEnd"])
67
+ }).styleable((incomingProps, ref) => {
68
+ const props = incomingProps,
69
+ {
70
+ src,
71
+ width,
72
+ height,
73
+ objectFit,
74
+ objectPosition,
75
+ // web only props - filter out on native
76
+ decoding,
77
+ elementTiming,
78
+ fetchpriority,
79
+ isMap,
80
+ loading,
81
+ sizes,
82
+ useMap,
83
+ onLoad,
84
+ onError,
85
+ ...rest
86
+ } = props,
87
+ resolvedWidth = typeof width == "string" && width[0] === "$" ? (0, import_web.getTokenValue)(width) : width,
88
+ resolvedHeight = typeof height == "string" && height[0] === "$" ? (0, import_web.getTokenValue)(height) : height,
89
+ finalSource = transformSource({
90
+ src,
91
+ width: resolvedWidth,
92
+ height: resolvedHeight
93
+ }),
94
+ finalProps = {
95
+ ...rest,
96
+ source: finalSource,
97
+ style: {
98
+ width: resolvedWidth,
99
+ height: resolvedHeight
100
+ }
101
+ };
102
+ return objectFit && (finalProps[resizeModePropName] = mapObjectFitToResizeMode(objectFit)), objectPositionPropName && objectPosition && (finalProps[objectPositionPropName] = objectPosition), onLoad && (finalProps.onLoad = e => {
103
+ const source = e?.nativeEvent?.source || e?.source || {};
104
+ onLoad({
105
+ target: {
106
+ naturalHeight: source?.height,
107
+ naturalWidth: source?.width
108
+ },
109
+ type: "load"
110
+ });
111
+ }), onError && (finalProps.onError = () => {
112
+ onError({
113
+ type: "error"
114
+ });
115
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(Component, {
116
+ ref,
117
+ ...finalProps
118
+ });
119
+ }),
120
+ comp = Component;
121
+ return ImageComponent.getSize = comp.getSize || (() => {}), ImageComponent.getSizeWithHeaders = comp.getSizeWithHeaders || (() => {}), ImageComponent.prefetch = comp.prefetch || (() => {}), ImageComponent.prefetchWithMetadata = comp.prefetchWithMetadata || (() => {}), ImageComponent.abortPrefetch = comp.abortPrefetch || (() => {}), ImageComponent.queryCache = comp.queryCache || (() => {}), ImageComponent;
122
+ }
@@ -0,0 +1,127 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
10
+ for (let key of __getOwnPropNames(from))
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var createImage_exports = {};
16
+ __export(createImage_exports, {
17
+ createImage: () => createImage
18
+ });
19
+ module.exports = __toCommonJS(createImage_exports);
20
+ var import_web = require("@tamagui/web"), import_jsx_runtime = require("react/jsx-runtime");
21
+ const defaultObjectFitMap = (objectFit) => {
22
+ switch (objectFit) {
23
+ case "fill":
24
+ return "stretch";
25
+ case "none":
26
+ return "center";
27
+ case "scale-down":
28
+ return "contain";
29
+ case "contain":
30
+ return "contain";
31
+ default:
32
+ return "cover";
33
+ }
34
+ }, defaultTransformSource = (props) => {
35
+ const { src, source, width, height } = props;
36
+ return source || (src && typeof src != "string" ? src : {
37
+ uri: src,
38
+ width,
39
+ height
40
+ });
41
+ };
42
+ function createImage(options) {
43
+ const {
44
+ Component,
45
+ mapObjectFitToResizeMode = defaultObjectFitMap,
46
+ resizeModePropName = "resizeMode",
47
+ objectPositionPropName,
48
+ transformSource = defaultTransformSource
49
+ } = options, ImageComponent = (0, import_web.styled)(
50
+ Component,
51
+ {
52
+ name: "Image"
53
+ },
54
+ {
55
+ inlineProps: /* @__PURE__ */ new Set([
56
+ "source",
57
+ "placeholder",
58
+ "transition",
59
+ "contentFit",
60
+ "contentPosition",
61
+ "cachePolicy",
62
+ "recyclingKey",
63
+ "allowDownscaling",
64
+ "autoplay",
65
+ "blurRadius",
66
+ "priority",
67
+ "placeholderContentFit",
68
+ "responsivePolicy",
69
+ "onLoadStart",
70
+ "onProgress",
71
+ "onLoadEnd"
72
+ ])
73
+ }
74
+ ).styleable((incomingProps, ref) => {
75
+ const props = incomingProps, {
76
+ src,
77
+ width,
78
+ height,
79
+ objectFit,
80
+ objectPosition,
81
+ // web only props - filter out on native
82
+ decoding,
83
+ elementTiming,
84
+ fetchpriority,
85
+ isMap,
86
+ loading,
87
+ sizes,
88
+ useMap,
89
+ onLoad,
90
+ onError,
91
+ ...rest
92
+ } = props, resolvedWidth = typeof width == "string" && width[0] === "$" ? (0, import_web.getTokenValue)(width) : width, resolvedHeight = typeof height == "string" && height[0] === "$" ? (0, import_web.getTokenValue)(height) : height, finalSource = transformSource({
93
+ src,
94
+ width: resolvedWidth,
95
+ height: resolvedHeight
96
+ }), finalProps = {
97
+ ...rest,
98
+ source: finalSource,
99
+ style: {
100
+ width: resolvedWidth,
101
+ height: resolvedHeight
102
+ }
103
+ };
104
+ return objectFit && (finalProps[resizeModePropName] = mapObjectFitToResizeMode(objectFit)), objectPositionPropName && objectPosition && (finalProps[objectPositionPropName] = objectPosition), onLoad && (finalProps.onLoad = (e) => {
105
+ const source = e?.nativeEvent?.source || e?.source || {};
106
+ onLoad({
107
+ target: {
108
+ naturalHeight: source?.height,
109
+ naturalWidth: source?.width
110
+ },
111
+ type: "load"
112
+ });
113
+ }), onError && (finalProps.onError = () => {
114
+ onError({
115
+ type: "error"
116
+ });
117
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { ref, ...finalProps });
118
+ }), comp = Component;
119
+ return ImageComponent.getSize = comp.getSize || (() => {
120
+ }), ImageComponent.getSizeWithHeaders = comp.getSizeWithHeaders || (() => {
121
+ }), ImageComponent.prefetch = comp.prefetch || (() => {
122
+ }), ImageComponent.prefetchWithMetadata = comp.prefetchWithMetadata || (() => {
123
+ }), ImageComponent.abortPrefetch = comp.abortPrefetch || (() => {
124
+ }), ImageComponent.queryCache = comp.queryCache || (() => {
125
+ }), ImageComponent;
126
+ }
127
+ //# sourceMappingURL=createImage.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/createImage.tsx"],
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAsC,yBAyN3B;AA/KX,MAAM,sBAAsB,CAAC,cAAuC;AAClE,UAAQ,WAAW;AAAA,IACjB,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT;AACE,aAAO;AAAA,EACX;AACF,GAEM,yBAAyB,CAAC,UAK1B;AACJ,QAAM,EAAE,KAAK,QAAQ,OAAO,OAAO,IAAI;AACvC,SAAI,WACA,OAAO,OAAO,OAAQ,WAAiB,MACpC;AAAA,IACL,KAAK;AAAA,IACL;AAAA,IACA;AAAA,EACF;AACF;AAyBO,SAAS,YACd,SACA;AACA,QAAM;AAAA,IACJ;AAAA,IACA,2BAA2B;AAAA,IAC3B,qBAAqB;AAAA,IACrB;AAAA,IACA,kBAAkB;AAAA,EACpB,IAAI,SAmCE,qBAbc;AAAA,IAClB;AAAA,IACA;AAAA,MACE,MAAM;AAAA,IACR;AAAA,IACA;AAAA,M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