@tamagui/collection 2.0.0 → 2.1.0-1780182832733

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 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Collection_exports","__export","createCollection","module","exports","import_jsx_runtime","require","import_compose_refs","import_constants","import_core","import_react","__toESM","name","Provider","CollectionProviderImpl","useStyledContext","useCollectionContext","createStyledContext","collectionRef","current","itemMap","Map","CollectionProvider","props","scope","children","ref","default","useRef","jsx","displayName","COLLECTION_SLOT_NAME","CollectionSlot","forwardRef","forwardedRef","context","composedRefs","useComposedRefs","Slot","ITEM_SLOT_NAME","ITEM_DATA_ATTR","CollectionItemSlot","itemData","useEffect","set","delete","useCollection","getItems","useCallback","isWeb","collectionNode"],"sources":["../../src/Collection.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,kBAAA;AAAAC,QAAA,CAAAD,kBAAA;EAAAE,gBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAgC,CAAAK,kBAAA;AAChC,IAAAK,kBAAA,GAAsBC,OAAA;AAEtB,IAAAC,mBAA0C,GAAAD,OAAA;AAC1C,IAAAE,gBAAkB,GAAAF,OAAA;AAkDZ,IAAAG,WAAA,GAAAH,OAAA;AAvCN,IAAAI,YAAS,GAAAC,OACP,CAAAL,OACA;AAmBA,SAAMJ,gBAAYA,CAAAU,IAAA;EAChB,IACE;IAAAC,QAAA,EAAAC,sBAAA;IAAAC,gBAAA,EAAAC;EAAA,QAAAP,WAAA,CAAAQ,mBAAA;IAAAC,aACE;MACAC,OAAA,EAAS;IACX;IACAC,OAAA,qBAAAC,GAAA;EACF;EAEF,IAAAC,kBAA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,EAAAR,GAAA;IAMjC,IAAAS,OAAS,GAAAnB,oBAA6B,CAAAQ,KAAA;IACpCd,YAAM,CAAAiB,OAAU,CAAAgB,SAAA,aAA0B;MAE1CR,OAAM,CAAAf,OAAW,CAAAwB,GAAA,CAAAlB,GAAA;QACfA,GAAK;QACH,GAAAgB;MACF;MAEA,OAAM;QACN,OAAK,KAAAP,OAAgB,CAAAf,OAAQ,CAAAyB,MAAA,CAAAnB,GAAA;MAC7B;IAA2B;IAC4B,OACvD,mBAAArB,kBAAA,CAAAwB,GAAA,EAAApB,WAAA,CAAA6B,IAAA;MACA,CAAAE,cAAc,KAAM;MACpBd,GAAA,EAAAU,YAAM;MAAqBX;IAG2B,EACtD;EACA;EAAOgB,kBACG,CAAAX,WAAe,GAAAS,cAAgB;EAE3C,SAAOO,cAAAtB,KAAA;IACT,IAAAW,OAAA,GAAAnB,oBAAA,CAAAQ,KAAA;IAEA,IAAAuB,QAAO,GAAArC,YAAA,CAAAiB,OAAA,CAAAqB,WAAA;MACH,KAAAxC,gBAAU,CAAAyC,KAAA;QACZ;MACF;MACF,IAAAC,cAAA,GAAAf,OAAA,CAAAjB,aAAA,CAAAC,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toESM","mod","isNodeMode","__esModule","value","__toCommonJS","Collection_exports","createCollection","module","exports","import_jsx_runtime","require","import_compose_refs","import_constants","import_core","import_react","Provider","CollectionProviderImpl","useStyledContext","useCollectionContext","createStyledContext","collectionRef","current","itemMap","Map","CollectionProvider","props","scope","children","ref","default","useRef","jsx","displayName","COLLECTION_SLOT_NAME","CollectionSlot","forwardRef","forwardedRef","context","composedRefs","useComposedRefs","Slot","ITEM_SLOT_NAME","ITEM_DATA_ATTR","CollectionItemSlot","itemData","useEffect","set","delete","useCollection","getItems","useCallback","isWeb","collectionNode","orderedNodes","Array","querySelectorAll","items","values","orderedItems","sort","a","b","indexOf","ItemSlot"],"sources":["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_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_core = require(\"@tamagui/core\");\nvar import_react = __toESM(require(\"react\"), 1);\nfunction createCollection(name) {\n var { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = (0, import_core.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 = /* @__PURE__ */ import_react.default.forwardRef(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_core.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 = /* @__PURE__ */ import_react.default.forwardRef(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_core.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":"AAAA,YAAY;;AACZ,IAAIA,QAAQ,GAAGC,MAAM,CAACC,MAAM;AAC5B,IAAIC,SAAS,GAAGF,MAAM,CAACG,cAAc;AACrC,IAAIC,gBAAgB,GAAGJ,MAAM,CAACK,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGN,MAAM,CAACO,mBAAmB;AAClD,IAAIC,YAAY,GAAGR,MAAM,CAACS,cAAc;AACxC,IAAIC,YAAY,GAAGV,MAAM,CAACW,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBb,SAAS,CAACY,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;IAAEE,UAAU,EAAE;EAAK,CAAC,CAAC;AACjE,CAAC;AACD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EAC5C,IAAIF,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,UAAU,EAAE;IAClE,KAAK,IAAIG,GAAG,IAAIlB,iBAAiB,CAACe,IAAI,CAAC,EACrC,IAAI,CAACX,YAAY,CAACe,IAAI,CAACL,EAAE,EAAEI,GAAG,CAAC,IAAIA,GAAG,KAAKF,MAAM,EAC/CpB,SAAS,CAACkB,EAAE,EAAEI,GAAG,EAAE;MAAEP,GAAG,EAAEA,CAAA,KAAMI,IAAI,CAACG,GAAG,CAAC;MAAEN,UA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AAGnB,oBAAoB,CAACQ,KAAK,CAAC;IACzC,IAAIuB,QAAQ,GAAGnC,YAAY,CAACe,OAAO,CAACqB,WAAW,CAAC,YAAW;MACzD,IAAI,CAACtC,gBAAgB,CAACuC,KAAK,EAAE;QAC3B,OAAO,EAAE;MACX;MACA,IAAIC,cAAc,GAAGf,OAAO,CAACjB,aAAa,CAACC,OAAO;MAClD,IAAI,CAAC+B,cAAc,EAAE,OAAO,EAAE;MAC9B,IAAIC,YAAY,GAAGC,KAAK,CAAC5D,IAAI,CAAC0D,cAAc,CAACG,gBAAgB,CAAC,IAAIb,cAAc,GAAG,CAAC,CAAC;MACrF,IAAIc,KAAK,GAAGF,KAAK,CAAC5D,IAAI,CAAC2C,OAAO,CAACf,OAAO,CAACmC,MAAM,CAAC,CAAC,CAAC;MAChD,IAAIC,YAAY,GAAGF,KAAK,CAACG,IAAI,CAAC,UAASC,CAAC,EAAEC,CAAC,EAAE;QAC3C,OAAOR,YAAY,CAACS,OAAO,CAACF,CAAC,CAAChC,GAAG,CAACP,OAAO,CAAC,GAAGgC,YAAY,CAACS,OAAO,CAACD,CAAC,CAACjC,GAAG,CAACP,OAAO,CAAC;MAClF,CAAC,CAAC;MACF,OAAOqC,YAAY;IACrB,CAAC,EAAE,CACDrB,OAAO,CAACjB,aAAa,EACrBiB,OAAO,CAACf,OAAO,CAChB,CAAC;IACF,OAAO2B,QAAQ;EACjB;EACA,OAAO,CACL;IACElC,QAAQ,EAAES,kBAAkB;IAC5BgB,IAAI,EAAEN,cAAc;IACpB6B,QAAQ,EAAEpB;EACZ,CAAC,EACDK,aAAa,CACd;AACH","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,aAAA","ignoreList":[]}
1
+ {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__copyProps","to","from","except","desc","key","call","get","enumerable","__reExport","target","mod","secondTarget","__toCommonJS","value","index_exports","module","exports","require"],"sources":["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":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EAC5C,IAAIF,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,UAAU,EAAE;IAClE,KAAK,IAAIG,GAAG,IAAIV,iBAAiB,CAACO,IAAI,CAAC,EACrC,IAAI,CAACL,YAAY,CAACS,IAAI,CAACL,EAAE,EAAEI,GAAG,CAAC,IAAIA,GAAG,KAAKF,MAAM,EAC/Cb,SAAS,CAACW,EAAE,EAAEI,GAAG,EAAE;MAAEE,GAAG,EAAEA,CAAA,KAAML,IAAI,CAACG,GAAG,CAAC;MAAEG,UAAU,EAAE,EAAEJ,IAAI,GAAGX,gBAAgB,CAACS,IAAI,EAAEG,GAAG,CAAC,CAAC,IAAID,IAAI,CAACI;IAAW,CAAC,CAAC;EACxH;EACA,OAAOP,EAAE;AACX,CAAC;AACD,IAAIQ,UAAU,GAAGA,CAACC,MAAM,EAAEC,GAAG,EAAEC,YAAY,MAAMZ,WAAW,CAACU,MAAM,EAAEC,GAAG,EAAE,SAAS,CAAC,EAAEC,YAAY,IAAIZ,WAAW,CAACY,YAAY,EAAED,GAAG,EAAE,SAAS,CAAC,CAAC;AAChJ,IAAIE,YAAY,GAAIF,GAAG,IAAKX,WAAW,CAACV,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE;EAAEwB,KAAK,EAAE;AAAK,CAAC,CAAC,EAAEH,GAAG,CAAC;AAC1F,IAAII,aAAa,GAAG,CAAC,CAAC;AACtBC,MAAM,CAACC,OAAO,GAAGJ,YAAY,CAACE,aAAa,CAAC;AAC5CN,UAAU,CAACM,aAAa,EAAEG,OAAO,CAAC,wBAAc,CAAC,EAAEF,MAAM,CAACC,OAAO,CAAC","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/collection",
3
- "version": "2.0.0",
3
+ "version": "2.1.0-1780182832733",
4
4
  "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
5
5
  "source": "src/index.ts",
6
6
  "files": [
@@ -37,16 +37,16 @@
37
37
  "clean:build": "tamagui-build clean:build"
38
38
  },
39
39
  "dependencies": {
40
- "@tamagui/compose-refs": "2.0.0",
41
- "@tamagui/constants": "2.0.0",
42
- "@tamagui/core": "2.0.0",
43
- "@tamagui/create-context": "2.0.0",
44
- "@tamagui/polyfill-dev": "2.0.0",
45
- "@tamagui/stacks": "2.0.0",
46
- "@tamagui/use-controllable-state": "2.0.0"
40
+ "@tamagui/compose-refs": "2.1.0-1780182832733",
41
+ "@tamagui/constants": "2.1.0-1780182832733",
42
+ "@tamagui/core": "2.1.0-1780182832733",
43
+ "@tamagui/create-context": "2.1.0-1780182832733",
44
+ "@tamagui/polyfill-dev": "2.1.0-1780182832733",
45
+ "@tamagui/stacks": "2.1.0-1780182832733",
46
+ "@tamagui/use-controllable-state": "2.1.0-1780182832733"
47
47
  },
48
48
  "devDependencies": {
49
- "@tamagui/build": "2.0.0",
49
+ "@tamagui/build": "2.1.0-1780182832733",
50
50
  "react": ">=19"
51
51
  },
52
52
  "peerDependencies": {