@tamagui/collection 3.0.0-beta.669.1 → 3.0.0-beta.728.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,4 +1,3 @@
1
-
2
1
  var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __create = Object.create;
5
4
  var __defProp = Object.defineProperty;
6
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __create = Object.create;
5
4
  var __defProp = Object.defineProperty;
6
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1 +1 @@
1
- {"version":3,"file":"Collection.native.js","names":[],"sources":["cjs/Collection.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Collection_exports = {};\n__export(Collection_exports, {\n createCollection: () => createCollection\n});\nmodule.exports = __toCommonJS(Collection_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_core = require(\"@tamagui/core\");\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_core2 = require(\"@tamagui/core\");\nvar import_react = __toESM(require(\"react\"), 1);\nfunction createCollection(name) {\n var { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = (0, import_core2.createStyledContext)({\n collectionRef: {\n current: void 0\n },\n itemMap: /* @__PURE__ */ new Map()\n }, \"Toast\");\n var CollectionProvider = function(props) {\n var { scope, children } = props;\n var ref = import_react.default.useRef(void 0);\n var itemMap = import_react.default.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CollectionProviderImpl, {\n scope,\n itemMap,\n collectionRef: ref,\n children\n });\n };\n CollectionProvider.displayName = \"CollectionProvider\";\n var COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n var CollectionSlot = (0, import_core.createRefComponent)(function(props, forwardedRef) {\n var { scope, children } = props;\n var context = useCollectionContext(scope);\n var composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core2.Slot, {\n ref: composedRefs,\n children\n });\n });\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n var ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n var ITEM_DATA_ATTR = \"data-collection-item\";\n var CollectionItemSlot = (0, import_core.createRefComponent)(function(props, forwardedRef) {\n var { scope, children, ...itemData } = props;\n var ref = import_react.default.useRef(void 0);\n var composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref);\n var context = useCollectionContext(scope);\n import_react.default.useEffect(function() {\n context.itemMap.set(ref, {\n ref,\n ...itemData\n });\n return function() {\n return void context.itemMap.delete(ref);\n };\n });\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core2.Slot, {\n [ITEM_DATA_ATTR]: \"\",\n ref: composedRefs,\n children\n });\n });\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n var context = useCollectionContext(scope);\n var getItems = import_react.default.useCallback(function() {\n if (!import_constants.isWeb) {\n return [];\n }\n var collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n var orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n var items = Array.from(context.itemMap.values());\n var orderedItems = items.sort(function(a, b) {\n return orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current);\n });\n return orderedItems;\n }, [\n context.collectionRef,\n context.itemMap\n ]);\n return getItems;\n }\n return [\n {\n Provider: CollectionProvider,\n Slot: CollectionSlot,\n ItemSlot: CollectionItemSlot\n },\n useCollection\n ];\n}\n//# sourceMappingURL=Collection.js.map\n"],"mappings":";;;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,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,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,KAAK,SAAS,GAAG,GAAG;IAC3C,OAAO,aAAa,QAAQ,EAAE,IAAI,OAAO,IAAI,aAAa,QAAQ,EAAE,IAAI,OAAO;GACjF,CAAC;GACD,OAAO;EACT,GAAG,CACD,QAAQ,eACR,QAAQ,OACV,CAAC;EACD,OAAO;CACT;CACA,OAAO,CACL;EACE,UAAU;EACV,MAAM;EACN,UAAU;CACZ,GACA,aACF;AACF"}
1
+ {"version":3,"file":"Collection.native.js","names":[],"sources":["cjs/Collection.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Collection_exports = {};\n__export(Collection_exports, {\n createCollection: () => createCollection\n});\nmodule.exports = __toCommonJS(Collection_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_core = require(\"@tamagui/core\");\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_core2 = require(\"@tamagui/core\");\nvar import_react = __toESM(require(\"react\"), 1);\nfunction createCollection(name) {\n var { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = (0, import_core2.createStyledContext)({\n collectionRef: {\n current: void 0\n },\n itemMap: /* @__PURE__ */ new Map()\n }, \"Toast\");\n var CollectionProvider = function(props) {\n var { scope, children } = props;\n var ref = import_react.default.useRef(void 0);\n var itemMap = import_react.default.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CollectionProviderImpl, {\n scope,\n itemMap,\n collectionRef: ref,\n children\n });\n };\n CollectionProvider.displayName = \"CollectionProvider\";\n var COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n var CollectionSlot = (0, import_core.createRefComponent)(function(props, forwardedRef) {\n var { scope, children } = props;\n var context = useCollectionContext(scope);\n var composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core2.Slot, {\n ref: composedRefs,\n children\n });\n });\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n var ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n var ITEM_DATA_ATTR = \"data-collection-item\";\n var CollectionItemSlot = (0, import_core.createRefComponent)(function(props, forwardedRef) {\n var { scope, children, ...itemData } = props;\n var ref = import_react.default.useRef(void 0);\n var composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref);\n var context = useCollectionContext(scope);\n import_react.default.useEffect(function() {\n context.itemMap.set(ref, {\n ref,\n ...itemData\n });\n return function() {\n return void context.itemMap.delete(ref);\n };\n });\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core2.Slot, {\n [ITEM_DATA_ATTR]: \"\",\n ref: composedRefs,\n children\n });\n });\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n var context = useCollectionContext(scope);\n var getItems = import_react.default.useCallback(function() {\n if (!import_constants.isWeb) {\n return [];\n }\n var collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n var orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n var items = Array.from(context.itemMap.values());\n var orderedItems = items.sort(function(a, b) {\n return orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current);\n });\n return orderedItems;\n }, [\n context.collectionRef,\n context.itemMap\n ]);\n return getItems;\n }\n return [\n {\n Provider: CollectionProvider,\n Slot: CollectionSlot,\n ItemSlot: CollectionItemSlot\n },\n useCollection\n ];\n}\n//# sourceMappingURL=Collection.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,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,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKnG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CAAE,OAAO;C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AAO,CACL;EACE,UAAU;EACV,MAAM;EACN,UAAU;CACZ,GACA,aACF;AACF"}
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.js","names":[],"sources":["cjs/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"}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["cjs/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"}
@@ -1 +1 @@
1
- {"version":3,"file":"Collection.js","names":[],"sources":["esm/Collection.js"],"sourcesContent":["import { createRefComponent } from \"@tamagui/core\";\nimport { useComposedRefs } from \"@tamagui/compose-refs\";\nimport { isWeb } from \"@tamagui/constants\";\nimport { Slot, createStyledContext } from \"@tamagui/core\";\nimport React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createCollection(name) {\n const { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = createStyledContext(\n {\n collectionRef: { current: void 0 },\n itemMap: /* @__PURE__ */ new Map()\n },\n \"Toast\"\n );\n const CollectionProvider = (props) => {\n const { scope, children } = props;\n const ref = React.useRef(void 0);\n const itemMap = React.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });\n };\n CollectionProvider.displayName = \"CollectionProvider\";\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlot = createRefComponent((props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(scope);\n const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx(Slot, { ref: composedRefs, children });\n });\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-collection-item\";\n const CollectionItemSlot = createRefComponent((props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React.useRef(void 0);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const context = useCollectionContext(scope);\n React.useEffect(() => {\n context.itemMap.set(ref, { ref, ...itemData });\n return () => void context.itemMap.delete(ref);\n });\n return /* @__PURE__ */ jsx(Slot, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n });\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n const context = useCollectionContext(scope);\n const getItems = React.useCallback(() => {\n if (!isWeb) {\n return [];\n }\n const collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n const orderedNodes = Array.from(\n collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`)\n );\n const items = Array.from(context.itemMap.values());\n const orderedItems = items.sort(\n (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)\n );\n return orderedItems;\n }, [context.collectionRef, context.itemMap]);\n return getItems;\n }\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n useCollection\n ];\n}\nexport {\n createCollection\n};\n//# sourceMappingURL=Collection.js.map\n"],"mappings":";;;;;;;AAMA,SAAS,iBAAiB,MAAM;CAC9B,MAAM,E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M,kBAAkB;GACvC,IAAI,CAAC,OAAO;IACV,OAAO,CAAC;GACV;GACA,MAAM,iBAAiB,QAAQ,cAAc;GAC7C,IAAI,CAAC,gBAAgB,OAAO,CAAC;GAC7B,MAAM,eAAe,MAAM,KACzB,eAAe,iBAAiB,IAAI,eAAe,EAAE,CACvD;GACA,MAAM,QAAQ,MAAM,KAAK,QAAQ,QAAQ,OAAO,CAAC;GACjD,MAAM,eAAe,MAAM,MACxB,GAAG,MAAM,aAAa,QAAQ,EAAE,IAAI,OAAO,IAAI,aAAa,QAAQ,EAAE,IAAI,OAAO,CACpF;GACA,OAAO;EACT,GAAG,CAAC,QAAQ,eAAe,QAAQ,OAAO,CAAC;EAC3C,OAAO;CACT;CACA,OAAO,CACL;EAAE,UAAU;EAAoB,MAAM;EAAgB,UAAU;CAAmB,GACnF,aACF;AACF"}
1
+ {"version":3,"file":"Collection.js","names":[],"sources":["esm/Collection.js"],"sourcesContent":["import { createRefComponent } from \"@tamagui/core\";\nimport { useComposedRefs } from \"@tamagui/compose-refs\";\nimport { isWeb } from \"@tamagui/constants\";\nimport { Slot, createStyledContext } from \"@tamagui/core\";\nimport React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createCollection(name) {\n const { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = createStyledContext(\n {\n collectionRef: { current: void 0 },\n itemMap: /* @__PURE__ */ new Map()\n },\n \"Toast\"\n );\n const CollectionProvider = (props) => {\n const { scope, children } = props;\n const ref = React.useRef(void 0);\n const itemMap = React.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });\n };\n CollectionProvider.displayName = \"CollectionProvider\";\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlot = createRefComponent((props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(scope);\n const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx(Slot, { ref: composedRefs, children });\n });\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-collection-item\";\n const CollectionItemSlot = createRefComponent((props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React.useRef(void 0);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const context = useCollectionContext(scope);\n React.useEffect(() => {\n context.itemMap.set(ref, { ref, ...itemData });\n return () => void context.itemMap.delete(ref);\n });\n return /* @__PURE__ */ jsx(Slot, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n });\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n const context = useCollectionContext(scope);\n const getItems = React.useCallback(() => {\n if (!isWeb) {\n return [];\n }\n const collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n const orderedNodes = Array.from(\n collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`)\n );\n const items = Array.from(context.itemMap.values());\n const orderedItems = items.sort(\n (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)\n );\n return orderedItems;\n }, [context.collectionRef, context.itemMap]);\n return getItems;\n }\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n useCollection\n ];\n}\nexport {\n createCollection\n};\n//# sourceMappingURL=Collection.js.map\n"],"mappings":";;;;;;;AAMA,SAAS,iBAAiB,MAAM;CAC9B,MAAM,EAAE,UAAU,wBAAwB,kBAAkB,yBAAyB,oBACnF;EACE,eAAe,EAAE,SAAS,KAAK,EAAE;EACjC,yBAAyB,IAAI,IAAI;CACnC,GACA,OACF;CACA,MAAM,sBAAsB,UAAU;EACpC,MAAM,EAAE,OAAO,aAAa;EAC5B,MAAM,MAAM,MAAM,OAAO,KAAK,CAAC;EAC/B,MAAM,UAAU,MAAM,uBAAuB,IAAI,IAAI,CAAC,CAAC,CAAC;E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,MACxB,GAAG,MAAM,aAAa,QAAQ,EAAE,IAAI,OAAO,IAAI,aAAa,QAAQ,EAAE,IAAI,OAAO,CACpF;GACA,OAAO;EACT,GAAG,CAAC,QAAQ,eAAe,QAAQ,OAAO,CAAC;EAC3C,OAAO;CACT;CACA,OAAO,CACL;EAAE,UAAU;EAAoB,MAAM;EAAgB,UAAU;CAAmB,GACnF,aACF;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"Collection.native.js","names":[],"sources":["esm/Collection.native.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { createRefComponent } from \"@tamagui/core\";\nimport { useComposedRefs } from \"@tamagui/compose-refs\";\nimport { isWeb } from \"@tamagui/constants\";\nimport { Slot, createStyledContext } from \"@tamagui/core\";\nimport React from \"react\";\nfunction createCollection(name) {\n var { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = createStyledContext({\n collectionRef: {\n current: void 0\n },\n itemMap: /* @__PURE__ */ new Map()\n }, \"Toast\");\n var CollectionProvider = function(props) {\n var { scope, children } = props;\n var ref = React.useRef(void 0);\n var itemMap = React.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ _jsx(CollectionProviderImpl, {\n scope,\n itemMap,\n collectionRef: ref,\n children\n });\n };\n CollectionProvider.displayName = \"CollectionProvider\";\n var COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n var CollectionSlot = createRefComponent(function(props, forwardedRef) {\n var { scope, children } = props;\n var context = useCollectionContext(scope);\n var composedRefs = useComposedRefs(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ _jsx(Slot, {\n ref: composedRefs,\n children\n });\n });\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n var ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n var ITEM_DATA_ATTR = \"data-collection-item\";\n var CollectionItemSlot = createRefComponent(function(props, forwardedRef) {\n var { scope, children, ...itemData } = props;\n var ref = React.useRef(void 0);\n var composedRefs = useComposedRefs(forwardedRef, ref);\n var context = useCollectionContext(scope);\n React.useEffect(function() {\n context.itemMap.set(ref, {\n ref,\n ...itemData\n });\n return function() {\n return void context.itemMap.delete(ref);\n };\n });\n return /* @__PURE__ */ _jsx(Slot, {\n [ITEM_DATA_ATTR]: \"\",\n ref: composedRefs,\n children\n });\n });\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n var context = useCollectionContext(scope);\n var getItems = React.useCallback(function() {\n if (!isWeb) {\n return [];\n }\n var collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n var orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n var items = Array.from(context.itemMap.values());\n var orderedItems = items.sort(function(a, b) {\n return orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current);\n });\n return orderedItems;\n }, [\n context.collectionRef,\n context.itemMap\n ]);\n return getItems;\n }\n return [\n {\n Provider: CollectionProvider,\n Slot: CollectionSlot,\n ItemSlot: CollectionItemSlot\n },\n useCollection\n ];\n}\nexport {\n createCollection\n};\n//# sourceMappingURL=Collection.js.map\n"],"mappings":";;;;;;;AAMA,SAAS,iBAAiB,MAAM;CAC9B,IAAI,EAAE,UAAU,wBAAwB,kBAAkB,yBAAyB,oBAAoB;EACrG,eAAe,EACb,SAAS,KAAK,EAChB;EACA,yBAAyB,IAAI,IAAI;CACnC,GAAG,OAAO;CACV,IAAI,qBAAqB,SAAS,OAAO;EACvC,IAAI,EAAE,OAAO,aAAa;EAC1B,IAAI,MAAM,MAAM,OAAO,KAAK,CAAC;EAC7B,IAAI,UAAU,MAAM,uBAAuB,IAAI,IAAI,CAAC,EAAE;EACtD,OAAuB,oBAAK,wBAAwB;GAClD;GACA;GACA,eAAe;GACf;EACF,CAAC;CACH;CACA,mBAAmB,cAAc;CACjC,IAAI,uBAAuB,OAAO;CAClC,IAAI,iBAAiB,mBAAmB,SAAS,OAAO,cAAc;EACpE,IAAI,EAAE,OAAO,aAAa;EAC1B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AO,CACL;EACE,UAAU;EACV,MAAM;EACN,UAAU;CACZ,GACA,aACF;AACF"}
1
+ {"version":3,"file":"Collection.native.js","names":[],"sources":["esm/Collection.native.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { createRefComponent } from \"@tamagui/core\";\nimport { useComposedRefs } from \"@tamagui/compose-refs\";\nimport { isWeb } from \"@tamagui/constants\";\nimport { Slot, createStyledContext } from \"@tamagui/core\";\nimport React from \"react\";\nfunction createCollection(name) {\n var { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = createStyledContext({\n collectionRef: {\n current: void 0\n },\n itemMap: /* @__PURE__ */ new Map()\n }, \"Toast\");\n var CollectionProvider = function(props) {\n var { scope, children } = props;\n var ref = React.useRef(void 0);\n var itemMap = React.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ _jsx(CollectionProviderImpl, {\n scope,\n itemMap,\n collectionRef: ref,\n children\n });\n };\n CollectionProvider.displayName = \"CollectionProvider\";\n var COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n var CollectionSlot = createRefComponent(function(props, forwardedRef) {\n var { scope, children } = props;\n var context = useCollectionContext(scope);\n var composedRefs = useComposedRefs(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ _jsx(Slot, {\n ref: composedRefs,\n children\n });\n });\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n var ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n var ITEM_DATA_ATTR = \"data-collection-item\";\n var CollectionItemSlot = createRefComponent(function(props, forwardedRef) {\n var { scope, children, ...itemData } = props;\n var ref = React.useRef(void 0);\n var composedRefs = useComposedRefs(forwardedRef, ref);\n var context = useCollectionContext(scope);\n React.useEffect(function() {\n context.itemMap.set(ref, {\n ref,\n ...itemData\n });\n return function() {\n return void context.itemMap.delete(ref);\n };\n });\n return /* @__PURE__ */ _jsx(Slot, {\n [ITEM_DATA_ATTR]: \"\",\n ref: composedRefs,\n children\n });\n });\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n var context = useCollectionContext(scope);\n var getItems = React.useCallback(function() {\n if (!isWeb) {\n return [];\n }\n var collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n var orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n var items = Array.from(context.itemMap.values());\n var orderedItems = items.sort(function(a, b) {\n return orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current);\n });\n return orderedItems;\n }, [\n context.collectionRef,\n context.itemMap\n ]);\n return getItems;\n }\n return [\n {\n Provider: CollectionProvider,\n Slot: CollectionSlot,\n ItemSlot: CollectionItemSlot\n },\n useCollection\n ];\n}\nexport {\n createCollection\n};\n//# sourceMappingURL=Collection.js.map\n"],"mappings":";;;;;;;AAMA,SAAS,iBAAiB,MAAM;CAC9B,IAAI,EAAE,UAAU,wBAAwB,kBAAkB,yBAAyB,oBAAoB;EACrG,eAAe,EACb,SAAS,KAAK,EAChB;EACA,yBAAyB,IAAI,IAAI;CACnC,GAAG,OAAO;CACV,IAAI,qBAAqB,SAAS,OAAO;EACvC,IAAI,EAAE,OAAO,aAAa;EAC1B,IAAI,MAAM,MAAM,OAAO,KAAK,CAAC;EAC7B,IAAI,UAAU,MAAM,uBAAuB,IAAI,IAAI,CAAC,CAAC,CAAC;EACtD,OAAuB,oBAAK,wBAAwB;GAClD;GACA;GACA,eAAe;GACf;EACF,CAAC;CACH;CACA,mBAAmB,cAAc;CACjC,IAAI,uBAAuB,OAAO;CAClC,IAAI,iBAAiB,mBAAmB,SAAS,OAAO,cAAc;EACpE,IAAI,EAAE,OAAO,aAAa;EAC1B,IAAI,UAAU,qBAAqB,KAAK;EACxC,IAAI,eAAe,gBAAgB,cAAc,QAAQ,aAAa;EACtE,OAAuB,oBAAK,MAAM;GAChC,KAAK;GACL;EACF,CAAC;CACH,CAAC;CACD,eAAe,cAAc;CAC7B,IAAI,iBAAiB,OAAO;CAC5B,IAAI,iBAAiB;CACrB,IAAI,qBAAqB,mBAAmB,SAAS,OAAO,cAAc;EACxE,IAAI,EAAE,OAAO,UAAU,GAAG,aAAa;EACvC,IAAI,MAAM,MAAM,OAAO,KAAK,CAAC;EAC7B,IAAI,eAAe,gBAAgB,cAAc,GAAG;EACpD,IAAI,UAAU,qBAAqB,KAAK;EACxC,MAAM,UAAU,WAAW;GACzB,QAAQ,QAAQ,IAAI,KAAK;IACvB;IACA,GAAG;GACL,CAAC;GACD,OAAO,WAAW;IAChB,OAAO,KAAK,QAAQ,QAAQ,OAAO,GAAG;GACxC;EACF,CAAC;EACD,OAAuB,oBAAK,MAAM;IAC/B,iBAAiB;GAClB,KAAK;GACL;EACF,CAAC;CACH,CAAC;CACD,mBAAmB,cAAc;CACjC,SAAS,cAAc,OAAO;EAC5B,IAAI,UAAU,qBAAqB,KAAK;EACxC,IAAI,WAAW,MAAM,YAAY,WAAW;GAC1C,IAAI,CAAC,OAAO;IACV,OAAO,CAAC;GACV;GACA,IAAI,iBAAiB,QAAQ,cAAc;GAC3C,IAAI,CAAC,gBAAgB,OAAO,CAAC;GAC7B,IAAI,eAAe,MAAM,KAAK,eAAe,iBAAiB,IAAI,eAAe,EAAE,CAAC;GACpF,IAAI,QAAQ,MAAM,KAAK,QAAQ,QAAQ,OAAO,CAAC;GAC/C,IAAI,eAAe,MAAM,KAAK,SAAS,GAAG,GAAG;IAC3C,OAAO,aAAa,QAAQ,EAAE,IAAI,OAAO,IAAI,aAAa,QAAQ,EAAE,IAAI,OAAO;GACjF,CAAC;GACD,OAAO;EACT,GAAG,CACD,QAAQ,eACR,QAAQ,OACV,CAAC;EACD,OAAO;CACT;CACA,OAAO,CACL;EACE,UAAU;EACV,MAAM;EACN,UAAU;CACZ,GACA,aACF;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"Collection.js","names":[],"sources":["jsx/Collection.js"],"sourcesContent":["import { createRefComponent } from \"@tamagui/core\";\nimport { useComposedRefs } from \"@tamagui/compose-refs\";\nimport { isWeb } from \"@tamagui/constants\";\nimport { Slot, createStyledContext } from \"@tamagui/core\";\nimport React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createCollection(name) {\n const { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = createStyledContext(\n {\n collectionRef: { current: void 0 },\n itemMap: /* @__PURE__ */ new Map()\n },\n \"Toast\"\n );\n const CollectionProvider = (props) => {\n const { scope, children } = props;\n const ref = React.useRef(void 0);\n const itemMap = React.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });\n };\n CollectionProvider.displayName = \"CollectionProvider\";\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlot = createRefComponent((props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(scope);\n const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx(Slot, { ref: composedRefs, children });\n });\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-collection-item\";\n const CollectionItemSlot = createRefComponent((props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React.useRef(void 0);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const context = useCollectionContext(scope);\n React.useEffect(() => {\n context.itemMap.set(ref, { ref, ...itemData });\n return () => void context.itemMap.delete(ref);\n });\n return /* @__PURE__ */ jsx(Slot, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n });\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n const context = useCollectionContext(scope);\n const getItems = React.useCallback(() => {\n if (!isWeb) {\n return [];\n }\n const collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n const orderedNodes = Array.from(\n collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`)\n );\n const items = Array.from(context.itemMap.values());\n const orderedItems = items.sort(\n (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)\n );\n return orderedItems;\n }, [context.collectionRef, context.itemMap]);\n return getItems;\n }\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n useCollection\n ];\n}\nexport {\n createCollection\n};\n//# sourceMappingURL=Collection.js.map\n"],"mappings":";;;;;;;AAMA,SAAS,iBAAiB,MAAM;CAC9B,MAAM,EAAE,UAAU,wBAAwB,kBAAkB,yBAAyB,oBACnF;EACE,eAAe,EAAE,SAAS,KAAK,EAAE;EACjC,yBAAyB,IAAI,IAAI;CACnC,GACA,OACF;CACA,MAAM,sBAAsB,UAAU;EACpC,MAAM,EAAE,OAAO,aAAa;EAC5B,MAAM,MAAM,MAAM,OAAO,KAAK,CAAC;EAC/B,MAAM,UAAU,MAAM,uBAAuB,IAAI,IAAI,CAAC,EAAE;EACxD,OAAuB,oBAAI,wBAAwB;GAAE;GAAO;GAAS,eAAe;GAAK;EAAS,CAAC;CACrG;CACA,mBAAmB,cAAc;CACjC,MAAM,uBAAuB,OAAO;CACpC,MAAM,iBAAiB,oBAAoB,OAAO,iBAAiB;EACjE,MAAM,EAAE,OAAO,aAAa;EAC5B,MAAM,UAAU,qBAAqB,KAAK;EAC1C,MAAM,eAAe,gBAAgB,cAAc,QAAQ,aAAa;EACxE,OAAuB,oBAAI,MAAM;GAAE,KAAK;GAAc;EAAS,CAAC;CAClE,CAAC;CACD,eAAe,cAAc;CAC7B,MAAM,iBAAiB,OAAO;CAC9B,MAAM,iBAAiB;CACvB,MAAM,qBAAqB,oBAAoB,OAAO,iBAAiB;EACrE,MAAM,EAAE,OAAO,UAAU,GAAG,aAAa;EACzC,MAAM,MAAM,MAAM,OAAO,KAAK,CAAC;EAC/B,MAAM,eAAe,gBAAgB,cAAc,GAAG;EACtD,MAAM,UAAU,qBAAqB,KAAK;EAC1C,MAAM,gBAAgB;GACpB,QAAQ,QAAQ,IAAI,KAAK;IAAE;IAAK,GAAG;GAAS,CAAC;GAC7C,aAAa,KAAK,QAAQ,QAAQ,OAAO,GAAG;EAC9C,CAAC;EACD,OAAuB,oBAAI,MAAM;GAAE,GAAG,GAAG,iBAAiB,GAAG;GAAG,KAAK;GAAc;EAAS,CAAC;CAC/F,CAAC;CACD,mBAAmB,cAAc;CACjC,SAAS,cAAc,OAAO;EAC5B,MAAM,UAAU,qBAAqB,KAAK;EAC1C,MAAM,WAAW,MAAM,kBAAkB;GACvC,IAAI,CAAC,OAAO;IACV,OAAO,CAAC;GACV;GACA,MAAM,iBAAiB,QAAQ,cAAc;GAC7C,IAAI,CAAC,gBAAgB,OAAO,CAAC;GAC7B,MAAM,eAAe,MAAM,KACzB,eAAe,iBAAiB,IAAI,eAAe,EAAE,CACvD;GACA,MAAM,QAAQ,MAAM,KAAK,QAAQ,QAAQ,OAAO,CAAC;GACjD,MAAM,eAAe,MAAM,MACxB,GAAG,MAAM,aAAa,QAAQ,EAAE,IAAI,OAAO,IAAI,aAAa,QAAQ,EAAE,IAAI,OAAO,CACpF;GACA,OAAO;EACT,GAAG,CAAC,QAAQ,eAAe,QAAQ,OAAO,CAAC;EAC3C,OAAO;CACT;CACA,OAAO,CACL;EAAE,UAAU;EAAoB,MAAM;EAAgB,UAAU;CAAmB,GACnF,aACF;AACF"}
1
+ {"version":3,"file":"Collection.js","names":[],"sources":["jsx/Collection.js"],"sourcesContent":["import { createRefComponent } from \"@tamagui/core\";\nimport { useComposedRefs } from \"@tamagui/compose-refs\";\nimport { isWeb } from \"@tamagui/constants\";\nimport { Slot, createStyledContext } from \"@tamagui/core\";\nimport React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createCollection(name) {\n const { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = createStyledContext(\n {\n collectionRef: { current: void 0 },\n itemMap: /* @__PURE__ */ new Map()\n },\n \"Toast\"\n );\n const CollectionProvider = (props) => {\n const { scope, children } = props;\n const ref = React.useRef(void 0);\n const itemMap = React.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });\n };\n CollectionProvider.displayName = \"CollectionProvider\";\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlot = createRefComponent((props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(scope);\n const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx(Slot, { ref: composedRefs, children });\n });\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-collection-item\";\n const CollectionItemSlot = createRefComponent((props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React.useRef(void 0);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const context = useCollectionContext(scope);\n React.useEffect(() => {\n context.itemMap.set(ref, { ref, ...itemData });\n return () => void context.itemMap.delete(ref);\n });\n return /* @__PURE__ */ jsx(Slot, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n });\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n const context = useCollectionContext(scope);\n const getItems = React.useCallback(() => {\n if (!isWeb) {\n return [];\n }\n const collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n const orderedNodes = Array.from(\n collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`)\n );\n const items = Array.from(context.itemMap.values());\n const orderedItems = items.sort(\n (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)\n );\n return orderedItems;\n }, [context.collectionRef, context.itemMap]);\n return getItems;\n }\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n useCollection\n ];\n}\nexport {\n createCollection\n};\n//# sourceMappingURL=Collection.js.map\n"],"mappings":";;;;;;;AAMA,SAAS,iBAAiB,M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K;EAC1C,MAAM,WAAW,MAAM,kBAAkB;GACvC,IAAI,CAAC,OAAO;IACV,OAAO,CAAC;GACV;GACA,MAAM,iBAAiB,QAAQ,cAAc;GAC7C,IAAI,CAAC,gBAAgB,OAAO,CAAC;GAC7B,MAAM,eAAe,MAAM,KACzB,eAAe,iBAAiB,IAAI,eAAe,EAAE,CACvD;GACA,MAAM,QAAQ,MAAM,KAAK,QAAQ,QAAQ,OAAO,CAAC;GACjD,MAAM,eAAe,MAAM,MACxB,GAAG,MAAM,aAAa,QAAQ,EAAE,IAAI,OAAO,IAAI,aAAa,QAAQ,EAAE,IAAI,OAAO,CACpF;GACA,OAAO;EACT,GAAG,CAAC,QAAQ,eAAe,QAAQ,OAAO,CAAC;EAC3C,OAAO;CACT;CACA,OAAO,CACL;EAAE,UAAU;EAAoB,MAAM;EAAgB,UAAU;CAAmB,GACnF,aACF;AACF"}
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __create = Object.create;
5
4
  var __defProp = Object.defineProperty;
6
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __create = Object.create;
5
4
  var __defProp = Object.defineProperty;
6
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1 +1 @@
1
- {"version":3,"file":"Collection.native.js","names":[],"sources":["jsx/Collection.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Collection_exports = {};\n__export(Collection_exports, {\n createCollection: () => createCollection\n});\nmodule.exports = __toCommonJS(Collection_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_core = require(\"@tamagui/core\");\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_core2 = require(\"@tamagui/core\");\nvar import_react = __toESM(require(\"react\"), 1);\nfunction createCollection(name) {\n var { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = (0, import_core2.createStyledContext)({\n collectionRef: {\n current: void 0\n },\n itemMap: /* @__PURE__ */ new Map()\n }, \"Toast\");\n var CollectionProvider = function(props) {\n var { scope, children } = props;\n var ref = import_react.default.useRef(void 0);\n var itemMap = import_react.default.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CollectionProviderImpl, {\n scope,\n itemMap,\n collectionRef: ref,\n children\n });\n };\n CollectionProvider.displayName = \"CollectionProvider\";\n var COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n var CollectionSlot = (0, import_core.createRefComponent)(function(props, forwardedRef) {\n var { scope, children } = props;\n var context = useCollectionContext(scope);\n var composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core2.Slot, {\n ref: composedRefs,\n children\n });\n });\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n var ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n var ITEM_DATA_ATTR = \"data-collection-item\";\n var CollectionItemSlot = (0, import_core.createRefComponent)(function(props, forwardedRef) {\n var { scope, children, ...itemData } = props;\n var ref = import_react.default.useRef(void 0);\n var composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref);\n var context = useCollectionContext(scope);\n import_react.default.useEffect(function() {\n context.itemMap.set(ref, {\n ref,\n ...itemData\n });\n return function() {\n return void context.itemMap.delete(ref);\n };\n });\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core2.Slot, {\n [ITEM_DATA_ATTR]: \"\",\n ref: composedRefs,\n children\n });\n });\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n var context = useCollectionContext(scope);\n var getItems = import_react.default.useCallback(function() {\n if (!import_constants.isWeb) {\n return [];\n }\n var collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n var orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n var items = Array.from(context.itemMap.values());\n var orderedItems = items.sort(function(a, b) {\n return orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current);\n });\n return orderedItems;\n }, [\n context.collectionRef,\n context.itemMap\n ]);\n return getItems;\n }\n return [\n {\n Provider: CollectionProvider,\n Slot: CollectionSlot,\n ItemSlot: CollectionItemSlot\n },\n useCollection\n ];\n}\n//# sourceMappingURL=Collection.js.map\n"],"mappings":";;;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,K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IAAI,WAAW,aAAa,QAAQ,YAAY,WAAW;GACzD,IAAI,CAAC,iBAAiB,OAAO;IAC3B,OAAO,CAAC;GACV;GACA,IAAI,iBAAiB,QAAQ,cAAc;GAC3C,IAAI,CAAC,gBAAgB,OAAO,CAAC;GAC7B,IAAI,eAAe,MAAM,KAAK,eAAe,iBAAiB,IAAI,eAAe,EAAE,CAAC;GACpF,IAAI,QAAQ,MAAM,KAAK,QAAQ,QAAQ,OAAO,CAAC;GAC/C,IAAI,eAAe,MAAM,KAAK,SAAS,GAAG,GAAG;IAC3C,OAAO,aAAa,QAAQ,EAAE,IAAI,OAAO,IAAI,aAAa,QAAQ,EAAE,IAAI,OAAO;GACjF,CAAC;GACD,OAAO;EACT,GAAG,CACD,QAAQ,eACR,QAAQ,OACV,CAAC;EACD,OAAO;CACT;CACA,OAAO,CACL;EACE,UAAU;EACV,MAAM;EACN,UAAU;CACZ,GACA,aACF;AACF"}
1
+ {"version":3,"file":"Collection.native.js","names":[],"sources":["jsx/Collection.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Collection_exports = {};\n__export(Collection_exports, {\n createCollection: () => createCollection\n});\nmodule.exports = __toCommonJS(Collection_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_core = require(\"@tamagui/core\");\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_core2 = require(\"@tamagui/core\");\nvar import_react = __toESM(require(\"react\"), 1);\nfunction createCollection(name) {\n var { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = (0, import_core2.createStyledContext)({\n collectionRef: {\n current: void 0\n },\n itemMap: /* @__PURE__ */ new Map()\n }, \"Toast\");\n var CollectionProvider = function(props) {\n var { scope, children } = props;\n var ref = import_react.default.useRef(void 0);\n var itemMap = import_react.default.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CollectionProviderImpl, {\n scope,\n itemMap,\n collectionRef: ref,\n children\n });\n };\n CollectionProvider.displayName = \"CollectionProvider\";\n var COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n var CollectionSlot = (0, import_core.createRefComponent)(function(props, forwardedRef) {\n var { scope, children } = props;\n var context = useCollectionContext(scope);\n var composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core2.Slot, {\n ref: composedRefs,\n children\n });\n });\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n var ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n var ITEM_DATA_ATTR = \"data-collection-item\";\n var CollectionItemSlot = (0, import_core.createRefComponent)(function(props, forwardedRef) {\n var { scope, children, ...itemData } = props;\n var ref = import_react.default.useRef(void 0);\n var composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref);\n var context = useCollectionContext(scope);\n import_react.default.useEffect(function() {\n context.itemMap.set(ref, {\n ref,\n ...itemData\n });\n return function() {\n return void context.itemMap.delete(ref);\n };\n });\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core2.Slot, {\n [ITEM_DATA_ATTR]: \"\",\n ref: composedRefs,\n children\n });\n });\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n var context = useCollectionContext(scope);\n var getItems = import_react.default.useCallback(function() {\n if (!import_constants.isWeb) {\n return [];\n }\n var collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n var orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n var items = Array.from(context.itemMap.values());\n var orderedItems = items.sort(function(a, b) {\n return orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current);\n });\n return orderedItems;\n }, [\n context.collectionRef,\n context.itemMap\n ]);\n return getItems;\n }\n return [\n {\n Provider: CollectionProvider,\n Slot: CollectionSlot,\n ItemSlot: CollectionItemSlot\n },\n useCollection\n ];\n}\n//# sourceMappingURL=Collection.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,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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eAAe,iBAAiB,IAAI,eAAe,EAAE,CAAC;GACpF,IAAI,QAAQ,MAAM,KAAK,QAAQ,QAAQ,OAAO,CAAC;GAC/C,IAAI,eAAe,MAAM,KAAK,SAAS,GAAG,GAAG;IAC3C,OAAO,aAAa,QAAQ,EAAE,IAAI,OAAO,IAAI,aAAa,QAAQ,EAAE,IAAI,OAAO;GACjF,CAAC;GACD,OAAO;EACT,GAAG,CACD,QAAQ,eACR,QAAQ,OACV,CAAC;EACD,OAAO;CACT;CACA,OAAO,CACL;EACE,UAAU;EACV,MAAM;EACN,UAAU;CACZ,GACA,aACF;AACF"}
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1 +1 @@
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"}
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": "3.0.0-beta.669.1",
3
+ "version": "3.0.0-beta.728.1",
4
4
  "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
5
5
  "source": "src/index.ts",
6
6
  "files": [
@@ -35,17 +35,17 @@
35
35
  "clean:build": "tamagui-build clean:build"
36
36
  },
37
37
  "dependencies": {
38
- "@tamagui/compose-refs": "3.0.0-beta.669.1",
39
- "@tamagui/constants": "3.0.0-beta.669.1",
40
- "@tamagui/core": "3.0.0-beta.669.1",
41
- "@tamagui/create-context": "3.0.0-beta.669.1",
42
- "@tamagui/polyfill-dev": "3.0.0-beta.669.1",
43
- "@tamagui/stacks": "3.0.0-beta.669.1",
44
- "@tamagui/use-controllable-state": "3.0.0-beta.669.1"
38
+ "@tamagui/compose-refs": "3.0.0-beta.728.1",
39
+ "@tamagui/constants": "3.0.0-beta.728.1",
40
+ "@tamagui/core": "3.0.0-beta.728.1",
41
+ "@tamagui/create-context": "3.0.0-beta.728.1",
42
+ "@tamagui/polyfill-dev": "3.0.0-beta.728.1",
43
+ "@tamagui/stacks": "3.0.0-beta.728.1",
44
+ "@tamagui/use-controllable-state": "3.0.0-beta.728.1"
45
45
  },
46
46
  "devDependencies": {
47
- "@tamagui/build": "3.0.0-beta.669.1",
48
- "react": ">=19"
47
+ "@tamagui/build": "3.0.0-beta.728.1",
48
+ "react": "19.2.3"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "react": ">=19"