@tamagui/collection 2.7.7 → 3.0.0-beta.643.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.
@@ -1,23 +1,23 @@
1
1
  "use strict";
2
2
 
3
+
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
8
  var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from === "object" || typeof from === "function") {
9
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
- get: () => from[key],
11
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
- });
13
- }
14
- return to;
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
11
+ get: () => from[key],
12
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
13
+ });
14
+ }
15
+ return to;
15
16
  };
16
17
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
17
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
18
- value: true
19
- }), mod);
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
19
  var index_exports = {};
21
20
  module.exports = __toCommonJS(index_exports);
22
21
  __reExport(index_exports, require("./Collection.native.js"), module.exports);
22
+
23
23
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA","ignoreList":[]}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["jsx/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./Collection\"), module.exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,OAAO,UAAU,aAAa,aAAa;AAC3C,WAAW,eAAe,QAAQ,wBAAc,GAAG,OAAO,OAAO"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/collection",
3
- "version": "2.7.7",
3
+ "version": "3.0.0-beta.643.1",
4
4
  "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
5
5
  "source": "src/index.ts",
6
6
  "files": [
@@ -35,16 +35,16 @@
35
35
  "clean:build": "tamagui-build clean:build"
36
36
  },
37
37
  "dependencies": {
38
- "@tamagui/compose-refs": "2.7.7",
39
- "@tamagui/constants": "2.7.7",
40
- "@tamagui/core": "2.7.7",
41
- "@tamagui/create-context": "2.7.7",
42
- "@tamagui/polyfill-dev": "2.7.7",
43
- "@tamagui/stacks": "2.7.7",
44
- "@tamagui/use-controllable-state": "2.7.7"
38
+ "@tamagui/compose-refs": "3.0.0-beta.643.1",
39
+ "@tamagui/constants": "3.0.0-beta.643.1",
40
+ "@tamagui/core": "3.0.0-beta.643.1",
41
+ "@tamagui/create-context": "3.0.0-beta.643.1",
42
+ "@tamagui/polyfill-dev": "3.0.0-beta.643.1",
43
+ "@tamagui/stacks": "3.0.0-beta.643.1",
44
+ "@tamagui/use-controllable-state": "3.0.0-beta.643.1"
45
45
  },
46
46
  "devDependencies": {
47
- "@tamagui/build": "2.7.7",
47
+ "@tamagui/build": "3.0.0-beta.643.1",
48
48
  "react": ">=19"
49
49
  },
50
50
  "peerDependencies": {
@@ -1,3 +1,4 @@
1
+ import { createRefComponent } from '@tamagui/core'
1
2
  import { useComposedRefs } from '@tamagui/compose-refs'
2
3
  import { isWeb } from '@tamagui/constants'
3
4
  import type { TamaguiElement } from '@tamagui/core'
@@ -66,7 +67,7 @@ function createCollection<ItemElement extends TamaguiElement, ItemData = {}>(
66
67
 
67
68
  const COLLECTION_SLOT_NAME = name + 'CollectionSlot'
68
69
 
69
- const CollectionSlot = React.forwardRef<
70
+ const CollectionSlot = createRefComponent<
70
71
  CollectionElement | undefined,
71
72
  ScopedCollectionProps<CollectionProps>
72
73
  >((props, forwardedRef) => {
@@ -89,7 +90,7 @@ function createCollection<ItemElement extends TamaguiElement, ItemData = {}>(
89
90
  children: React.ReactNode
90
91
  }
91
92
 
92
- const CollectionItemSlot = React.forwardRef<
93
+ const CollectionItemSlot = createRefComponent<
93
94
  ItemElement | undefined,
94
95
  ScopedCollectionProps<CollectionItemSlotProps>
95
96
  >((props, forwardedRef) => {
@@ -10,14 +10,14 @@ declare function createCollection<ItemElement extends TamaguiElement, ItemData =
10
10
  } & {
11
11
  scope?: any;
12
12
  }>;
13
- readonly Slot: React.ForwardRefExoticComponent<CollectionProps & {
13
+ readonly Slot: import("@tamagui/compose-refs").RefComponent<TamaguiElement | undefined, CollectionProps & {
14
14
  scope?: any;
15
- } & React.RefAttributes<TamaguiElement | undefined>>;
16
- readonly ItemSlot: React.ForwardRefExoticComponent<React.PropsWithoutRef<ItemData & {
15
+ }>;
16
+ readonly ItemSlot: import("@tamagui/compose-refs").RefComponent<ItemElement | undefined, ItemData & {
17
17
  children: React.ReactNode;
18
18
  } & {
19
19
  scope?: any;
20
- }> & React.RefAttributes<ItemElement | undefined>>;
20
+ }>;
21
21
  }, (scope: string) => () => ({
22
22
  ref: React.RefObject<ItemElement | undefined>;
23
23
  } & ItemData)[]];
@@ -1 +1 @@
1
- {"version":3,"file":"Collection.d.ts","sourceRoot":"","sources":["../src/Collection.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAAE,IAAI,EAAuB,MAAM,eAAe,CAAA;AACzD,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,KAAK,SAAS,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,IAAI,CAAC,CAAA;AAE5D,UAAU,eAAgB,SAAQ,SAAS;CAAG;AAO9C,iBAAS,gBAAgB,CAAC,WAAW,SAAS,cAAc,EAAE,QAAQ,GAAG,EAAE,EACzE,IAAI,EAAE,MAAM;;mBA+BG,KAAK,CAAC,SAAS;;gBAbgB,GAAG;;;gBAAH,GAAG;;;kBAsDrC,KAAK,CAAC,SAAS;;gBAtDmB,GAAG;;WAoFnB,MAAM;SAxFzB,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,SAAS,CAAC;iBAqHpD;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAA;AAC3B,YAAY,EAAE,eAAe,EAAE,CAAA"}
1
+ {"version":3,"file":"Collection.d.ts","sourceRoot":"","sources":["../src/Collection.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAAE,IAAI,EAAuB,MAAM,eAAe,CAAA;AACzD,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,KAAK,SAAS,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,IAAI,CAAC,CAAA;AAE5D,UAAU,eAAgB,SAAQ,SAAS;CAAG;AAO9C,iBAAS,gBAAgB,CAAC,WAAW,SAAS,cAAc,EAAE,QAAQ,GAAG,EAAE,EACzE,IAAI,EAAE,MAAM;aAgIR,QAAQ;mBAjGG,KAAK,CAAC,SAAS;;gBAbgB,GAAG;;aA8Gf,IAAI;;;aAAkB,QAAQ;kBAxDpD,KAAK,CAAC,SAAS;;;;WA8BG,MAAM;SAxFzB,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,SAAS,CAAC;iBAqHpD;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAA;AAC3B,YAAY,EAAE,eAAe,EAAE,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}