@tamagui/collection 1.135.4 → 1.135.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,7 +37,7 @@ module.exports = __toCommonJS(Collection_exports);
37
37
  var import_compose_refs = require("@tamagui/compose-refs"),
38
38
  import_constants = require("@tamagui/constants"),
39
39
  import_core = require("@tamagui/core"),
40
- import_react = __toESM(require("react")),
40
+ import_react = __toESM(require("react"), 1),
41
41
  import_jsx_runtime = require("react/jsx-runtime");
42
42
  function createCollection(name) {
43
43
  const {
@@ -25,7 +25,7 @@ __export(Collection_exports, {
25
25
  createCollection: () => createCollection
26
26
  });
27
27
  module.exports = __toCommonJS(Collection_exports);
28
- var import_compose_refs = require("@tamagui/compose-refs"), import_constants = require("@tamagui/constants"), import_core = require("@tamagui/core"), import_react = __toESM(require("react")), import_jsx_runtime = require("react/jsx-runtime");
28
+ var import_compose_refs = require("@tamagui/compose-refs"), import_constants = require("@tamagui/constants"), import_core = require("@tamagui/core"), import_react = __toESM(require("react"), 1), import_jsx_runtime = require("react/jsx-runtime");
29
29
  function createCollection(name) {
30
30
  const { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = (0, import_core.createStyledContext)(
31
31
  {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Collection.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAgC,kCAChC,mBAAsB,+BAEtB,cAA0C,0BAC1C,eAAkB,2BAkDZ;AAvCN,SAAS,iBACP,MACA;AAmBA,QAAM,EAAE,UAAU,wBAAwB,kBAAkB,qBAAqB,QAC/E;AAAA,IACE;AAAA,MACE,eAAe,EAAE,SAAS,OAAU;AAAA,MACpC,SAAS,oBAAI,IAAI;AAAA,IACnB;AAAA,IACA;AAAA,EACF,GAEI,qBAIF,CAAC,UAAU;AACb,UAAM,EAAE,OAAO,SAAS,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ACxB,iBAAiB,wBAMjB,qBAAqB,aAAAA,QAAM,WAG/B,CAAC,OAAO,iBAAiB;AACzB,UAAM,EAAE,OAAO,UAAU,GAAG,SAAS,IAAI,OACnC,MAAM,aAAAA,QAAM,OAAoB,MAAS,GACzC,mBAAe,qCAAgB,cAAc,GAAG,GAChD,UAAU,qBAAqB,KAAK;AAE1C,wBAAAA,QAAM,UAAU,OACd,QAAQ,QAAQ,IAAI,KAAK,EAAE,KAAK,GAAI,SAAiC,CAAC,GAC/D,MAAM,KAAK,QAAQ,QAAQ,OAAO,GAAG,EAC7C,GAGC,4CAAC,oBAAW,CAAC,cAAc,GAAG,IAAM,KAAK,cACtC,UACH;AAAA,EAEJ,CAAC;AAED,qBAAmB,cAAc;AAMjC,WAAS,cAAc,OAAe;AACpC,UAAM,UAAU,qBAAqB,KAAK;AAqB1C,WAnBiB,aAAAA,QAAM,YAAY,MAAM;AACvC,UAAI,CAAC;AACH,eAAO,CAAC;AAGV,YAAM,iBAAiB,QAAQ,cAAc;AAC7C,UAAI,CAAC,eAAgB,QAAO,CAAC;AAC7B,YAAM,eAAe,MAAM;AAAA,QACzB,eAAe,iBAAiB,IAAI,cAAc,GAAG;AAAA,MACvD;AAOA,aANc,MAAM,KAAK,QAAQ,QAAQ,OAAO,CAAC,EACtB;AAAA,QACzB,CAAC,GAAG,MACF,aAAa,QAAQ,EAAE,IAAI,OAAuB,IAClD,aAAa,QAAQ,EAAE,IAAI,OAAuB;AAAA,MACtD;AAAA,IAEF,GAAG,CAAC,QAAQ,eAAe,QAAQ,OAAO,CAAC;AAAA,EAG7C;AAEA,SAAO;AAAA,IACL,EAAE,UAAU,oBAAoB,MAAM,gBAAgB,UAAU,mBAAmB;AAAA,IACnF;AAAA,EACF;AACF;",
5
5
  "names": ["React"]
6
6
  }
@@ -1,99 +1,129 @@
1
1
  "use strict";
2
+
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf,
8
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
9
  var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: !0 });
10
- }, __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from == "object" || typeof from == "function")
12
- for (let key of __getOwnPropNames(from))
13
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- return to;
15
- };
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: !0
13
+ });
14
+ },
15
+ __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ return to;
21
+ };
16
22
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
23
  // If the importer is in node compatibility mode or this is not an ESM
18
24
  // file that has been converted to a CommonJS file using a Babel-
19
25
  // compatible transform (i.e. "__esModule" has not been set), then set
20
26
  // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
- mod
23
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
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);
24
34
  var Collection_exports = {};
25
35
  __export(Collection_exports, {
26
36
  createCollection: () => createCollection
27
37
  });
28
38
  module.exports = __toCommonJS(Collection_exports);
29
- var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require("@tamagui/compose-refs"), import_constants = require("@tamagui/constants"), import_core = require("@tamagui/core"), import_react = __toESM(require("react"));
39
+ var import_jsx_runtime = require("react/jsx-runtime"),
40
+ import_compose_refs = require("@tamagui/compose-refs"),
41
+ import_constants = require("@tamagui/constants"),
42
+ import_core = require("@tamagui/core"),
43
+ import_react = __toESM(require("react"), 1);
30
44
  function createCollection(name) {
31
- var { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = (0, import_core.createStyledContext)({
32
- collectionRef: {
33
- current: void 0
34
- },
35
- itemMap: /* @__PURE__ */ new Map()
36
- }, "Toast"), CollectionProvider = function(props) {
37
- var { scope, children } = props, ref = import_react.default.useRef(void 0), itemMap = import_react.default.useRef(/* @__PURE__ */ new Map()).current;
38
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CollectionProviderImpl, {
39
- scope,
40
- itemMap,
41
- collectionRef: ref,
42
- children
43
- });
44
- };
45
+ var {
46
+ Provider: CollectionProviderImpl,
47
+ useStyledContext: useCollectionContext
48
+ } = (0, import_core.createStyledContext)({
49
+ collectionRef: {
50
+ current: void 0
51
+ },
52
+ itemMap: /* @__PURE__ */new Map()
53
+ }, "Toast"),
54
+ CollectionProvider = function (props) {
55
+ var {
56
+ scope,
57
+ children
58
+ } = props,
59
+ ref = import_react.default.useRef(void 0),
60
+ itemMap = import_react.default.useRef(/* @__PURE__ */new Map()).current;
61
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(CollectionProviderImpl, {
62
+ scope,
63
+ itemMap,
64
+ collectionRef: ref,
65
+ children
66
+ });
67
+ };
45
68
  CollectionProvider.displayName = "CollectionProvider";
46
- var COLLECTION_SLOT_NAME = name + "CollectionSlot", CollectionSlot = /* @__PURE__ */ import_react.default.forwardRef(function(props, forwardedRef) {
47
- var { scope, children } = props, context = useCollectionContext(scope), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.collectionRef);
48
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Slot, {
49
- ref: composedRefs,
50
- children
69
+ var COLLECTION_SLOT_NAME = name + "CollectionSlot",
70
+ CollectionSlot = /* @__PURE__ */import_react.default.forwardRef(function (props, forwardedRef) {
71
+ var {
72
+ scope,
73
+ children
74
+ } = props,
75
+ context = useCollectionContext(scope),
76
+ composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.collectionRef);
77
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_core.Slot, {
78
+ ref: composedRefs,
79
+ children
80
+ });
51
81
  });
52
- });
53
82
  CollectionSlot.displayName = COLLECTION_SLOT_NAME;
54
- var ITEM_SLOT_NAME = name + "CollectionItemSlot", ITEM_DATA_ATTR = "data-collection-item", CollectionItemSlot = /* @__PURE__ */ import_react.default.forwardRef(function(props, forwardedRef) {
55
- var { scope, children, ...itemData } = props, ref = import_react.default.useRef(void 0), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref), context = useCollectionContext(scope);
56
- return import_react.default.useEffect(function() {
57
- return context.itemMap.set(ref, {
58
- ref,
59
- ...itemData
60
- }), function() {
61
- return void context.itemMap.delete(ref);
62
- };
63
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Slot, {
64
- [ITEM_DATA_ATTR]: "",
65
- ref: composedRefs,
66
- children
83
+ var ITEM_SLOT_NAME = name + "CollectionItemSlot",
84
+ ITEM_DATA_ATTR = "data-collection-item",
85
+ CollectionItemSlot = /* @__PURE__ */import_react.default.forwardRef(function (props, forwardedRef) {
86
+ var {
87
+ scope,
88
+ children,
89
+ ...itemData
90
+ } = props,
91
+ ref = import_react.default.useRef(void 0),
92
+ composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref),
93
+ context = useCollectionContext(scope);
94
+ return import_react.default.useEffect(function () {
95
+ return context.itemMap.set(ref, {
96
+ ref,
97
+ ...itemData
98
+ }), function () {
99
+ return void context.itemMap.delete(ref);
100
+ };
101
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_core.Slot, {
102
+ [ITEM_DATA_ATTR]: "",
103
+ ref: composedRefs,
104
+ children
105
+ });
67
106
  });
68
- });
69
107
  CollectionItemSlot.displayName = ITEM_SLOT_NAME;
70
108
  function useCollection(scope) {
71
- var context = useCollectionContext(scope), getItems = import_react.default.useCallback(function() {
72
- if (!import_constants.isWeb)
73
- return [];
74
- var collectionNode = context.collectionRef.current;
75
- if (!collectionNode) return [];
76
- var orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`)), items = Array.from(context.itemMap.values()), orderedItems = items.sort(function(a, b) {
77
- return orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current);
78
- });
79
- return orderedItems;
80
- }, [
81
- context.collectionRef,
82
- context.itemMap
83
- ]);
109
+ var context = useCollectionContext(scope),
110
+ getItems = import_react.default.useCallback(function () {
111
+ if (!import_constants.isWeb) return [];
112
+ var collectionNode = context.collectionRef.current;
113
+ if (!collectionNode) return [];
114
+ var orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`)),
115
+ items = Array.from(context.itemMap.values()),
116
+ orderedItems = items.sort(function (a, b) {
117
+ return orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current);
118
+ });
119
+ return orderedItems;
120
+ }, [context.collectionRef, context.itemMap]);
84
121
  return getItems;
85
122
  }
86
- return [
87
- {
88
- Provider: CollectionProvider,
89
- Slot: CollectionSlot,
90
- ItemSlot: CollectionItemSlot
91
- },
92
- useCollection
93
- ];
123
+ return [{
124
+ Provider: CollectionProvider,
125
+ Slot: CollectionSlot,
126
+ ItemSlot: CollectionItemSlot
127
+ }, useCollection];
94
128
  }
95
- // Annotate the CommonJS export names for ESM import in node:
96
- 0 && (module.exports = {
97
- createCollection
98
- });
99
- //# sourceMappingURL=Collection.js.map
129
+ //# sourceMappingURL=Collection.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Collection.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAA4B,8BAC5B,sBAAgC,kCAChC,mBAAsB,+BACtB,cAA0C,0BAC1C,eAAkB;AAKlB,SAAS,iBAAiB,MAAM;AAM5B,MAAI,EAAE,UAAU,wBAAwB,kBAAkB,qBAAqB,QAAI,iCAAoB;AAAA,IACnG,eAAe;AAAA,MACX,SAAS;AAAA,IACb;AAAA,IACA,SAAS,oBAAI,IAAI;AAAA,EACrB,GAAG,OAAO,GACN,qBAAqB,SAAS,OAAO;AACrC,QAAI,EAAE,OAAO,SAAS,IAAI,OACtB,MAAM,aAAAA,QAAM,OAAO,MAAS,GAC5B,UAAU,aAAAA,QAAM,OAAO,oBAAI,IAAI,CAAC,EAAE;AACtC,WAAqB,uCAAAC,KAAK,wBAAwB;AAAA,MAC9C;AAAA,MACA;AAAA,MACA,eAAe;AAAA,MACf;AAAA,IACJ,CAAC;AAAA,EACL;AACA,qBAAmB,cAAc;AAGgE,MAAI,uBAAuB,OAAO,kBAC/H,iBAA+B,6BAAAD,QAAM,WAAW,SAAS,OAAO,cAAc;AAC9E,QAAI,EAAE,OAAO,SAAS,IAAI,OACtB,UAAU,qBAAqB,KAAK,GACpC,mBAAe,qCAAgB,cAAc,QAAQ,aAAa;AACtE,WAAqB,uCAAAC,KAAK,kBAAM;AAAA,MAC5B,KAAK;AAAA,MACL;AAAA,IACJ,CAAC;AAAA,EACL,CAAC;AACD,iBAAe,cAAc;AAGoE,MAAI,iBAAiB,OAAO,sBACzH,iBAAiB,wBACjB,qBAAmC,6BAAAD,QAAM,WAAW,SAAS,OAAO,cAAc;AAClF,QAAI,EAAE,OAAO,UAAU,GAAG,SAAS,IAAI,OACnC,MAAM,aAAAA,QAAM,OAAO,MAAS,GAC5B,mBAAe,qCAAgB,cAAc,GAAG,GAChD,UAAU,qBAAqB,KAAK;AACxC,wBAAAA,QAAM,UAAU,WAAW;AACvB,qBAAQ,QAAQ,IAAI,KAAK;AAAA,QACrB;AAAA,QACA,GAAG;AAAA,MACP,CAAC,GACM,WAAW;AACd,eAAO,KAAK,QAAQ,QAAQ,OAAO,GAAG;AAAA,MAC1C;AAAA,IACJ,CAAC,GACoB,uCAAAC,KAAK,kBAAM;AAAA,MAC5B,CAAC,cAAc,GAAG;AAAA,MAClB,KAAK;AAAA,MACL;AAAA,IACJ,CAAC;AAAA,EACL,CAAC;AACD,qBAAmB,cAAc;AAGgE,WAAS,cAAc,OAAO;AAC3H,QAAI,UAAU,qBAAqB,KAAK,GACpC,WAAW,aAAAD,QAAM,YAAY,WAAW;AACxC,UAAI,CAAC;AACD,eAAO,CAAC;AAEZ,UAAI,iBAAiB,QAAQ,cAAc;AAC3C,UAAI,CAAC,eAAgB,QAAO,CAAC;AAC7B,UAAI,eAAe,MAAM,KAAK,eAAe,iBAAiB,IAAI,cAAc,GAAG,CAAC,GAChF,QAAQ,MAAM,KAAK,QAAQ,QAAQ,OAAO,CAAC,GAC3C,eAAe,MAAM,KAAK,SAAS,GAAG,GAAG;AACzC,eAAO,aAAa,QAAQ,EAAE,IAAI,OAAO,IAAI,aAAa,QAAQ,EAAE,IAAI,OAAO;AAAA,MACnF,CAAC;AACD,aAAO;AAAA,IACX,GAAG;AAAA,MACC,QAAQ;AAAA,MACR,QAAQ;AAAA,IACZ,CAAC;AACD,WAAO;AAAA,EACX;AACA,SAAO;AAAA,IACH;AAAA,MACI,UAAU;AAAA,MACV,MAAM;AAAA,MACN,UAAU;AAAA,IACd;AAAA,IACA;AAAA,EACJ;AACJ;",
5
- "names": ["React", "_jsx"]
6
- }
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"],"sources":["../../src/Collection.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,kBAAA;AAAAC,QAAA,CAAAD,kBAAA;EAAAE,gBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAgC,CAAAK,kBAAA;AAehC,IAAAK,kBAAS,GAAAC,OAEP;EAAAC,mBAAA,GAAAD,OAAA;EAAAE,gBAAA,GAAAF,OAAA;EAAAG,WAAA,GAAAH,OAAA;EAAAI,YAAA,GAAAC,OAAA,CAAAL,OAAA;AAmBA,SAAMJ,gBAAYA,CAAAU,IAAA;EAChB,IACE;MAAAC,QAAA,EAAAC,sBAAA;MAAAC,gBAAA,EAAAC;IAAA,QAAAP,WAAA,CAAAQ,mBAAA;MAAAC,aACE;QACAC,OAAA,EAAS;MACX;MACAC,OAAA,qBAAAC,GAAA;IACF,GAEI;IAAAC,kBAID,YAAAA,CAAUC,KAAA;MACb;UAAMC,KAAE;UAAAC;QAAO,IAASF,KAAI;QAAAG,GACtB,GAAAhB,YAAM,CAAAiB,OAAA,CAAAC,MAAM,MAA0B;QAASR,OAC/C,GAAAV,YAAU,CAAAiB,OAAA,CAAAC,MAAM,gBAAgC,IAAAP,GAAI,GAAI,CAACF,OAAE;MACjE,OACE,mBAAAd,kBAAA,CAAAwB,GAAA,EAACf,sBAAA;QAILU,KAAA;QAEAJ,OAAA;QAMAF,aA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AAGE,cAAS;QAGdd,GAAA,EAAAU,YAAA;QAEAX;MACE,EAAE;IAAiF,EACnF;EACFgB,kBAAA,CAAAX,WAAA,GAAAS,cAAA;EACF,SAAAO,cAAAtB,KAAA","ignoreList":[]}
@@ -1,20 +1,21 @@
1
1
  "use strict";
2
+
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from == "object" || typeof from == "function")
8
- for (let key of __getOwnPropNames(from))
9
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- return to;
11
- }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
12
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
8
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
9
+ get: () => from[key],
10
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
+ });
12
+ return to;
13
+ },
14
+ __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
+ value: !0
17
+ }), mod);
13
18
  var index_exports = {};
14
19
  module.exports = __toCommonJS(index_exports);
15
- __reExport(index_exports, require("./Collection"), module.exports);
16
- // Annotate the CommonJS export names for ESM import in node:
17
- 0 && (module.exports = {
18
- ...require("./Collection")
19
- });
20
- //# sourceMappingURL=index.js.map
20
+ __reExport(index_exports, require("./Collection.native.js"), module.exports);
21
+ //# sourceMappingURL=index.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,yBAAd;",
5
- "names": []
6
- }
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,74 +1,129 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useComposedRefs } from "@tamagui/compose-refs";
3
- import { isWeb } from "@tamagui/constants";
4
- import { Slot, createStyledContext } from "@tamagui/core";
5
- import React from "react";
6
- function createCollection(name) {
7
- var { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = createStyledContext({
8
- collectionRef: {
9
- current: void 0
10
- },
11
- itemMap: /* @__PURE__ */ new Map()
12
- }, "Toast"), CollectionProvider = function(props) {
13
- var { scope, children } = props, ref = React.useRef(void 0), itemMap = React.useRef(/* @__PURE__ */ new Map()).current;
14
- return /* @__PURE__ */ _jsx(CollectionProviderImpl, {
15
- scope,
16
- itemMap,
17
- collectionRef: ref,
18
- children
1
+ "use strict";
2
+
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf,
8
+ __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: !0
13
+ });
14
+ },
15
+ __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
19
  });
20
+ return to;
20
21
  };
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 Collection_exports = {};
35
+ __export(Collection_exports, {
36
+ createCollection: () => createCollection
37
+ });
38
+ module.exports = __toCommonJS(Collection_exports);
39
+ var import_jsx_runtime = require("react/jsx-runtime"),
40
+ import_compose_refs = require("@tamagui/compose-refs"),
41
+ import_constants = require("@tamagui/constants"),
42
+ import_core = require("@tamagui/core"),
43
+ import_react = __toESM(require("react"), 1);
44
+ function createCollection(name) {
45
+ var {
46
+ Provider: CollectionProviderImpl,
47
+ useStyledContext: useCollectionContext
48
+ } = (0, import_core.createStyledContext)({
49
+ collectionRef: {
50
+ current: void 0
51
+ },
52
+ itemMap: /* @__PURE__ */new Map()
53
+ }, "Toast"),
54
+ CollectionProvider = function (props) {
55
+ var {
56
+ scope,
57
+ children
58
+ } = props,
59
+ ref = import_react.default.useRef(void 0),
60
+ itemMap = import_react.default.useRef(/* @__PURE__ */new Map()).current;
61
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(CollectionProviderImpl, {
62
+ scope,
63
+ itemMap,
64
+ collectionRef: ref,
65
+ children
66
+ });
67
+ };
21
68
  CollectionProvider.displayName = "CollectionProvider";
22
- var COLLECTION_SLOT_NAME = name + "CollectionSlot", CollectionSlot = /* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
23
- var { scope, children } = props, context = useCollectionContext(scope), composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
24
- return /* @__PURE__ */ _jsx(Slot, {
25
- ref: composedRefs,
26
- children
69
+ var COLLECTION_SLOT_NAME = name + "CollectionSlot",
70
+ CollectionSlot = /* @__PURE__ */import_react.default.forwardRef(function (props, forwardedRef) {
71
+ var {
72
+ scope,
73
+ children
74
+ } = props,
75
+ context = useCollectionContext(scope),
76
+ composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.collectionRef);
77
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_core.Slot, {
78
+ ref: composedRefs,
79
+ children
80
+ });
27
81
  });
28
- });
29
82
  CollectionSlot.displayName = COLLECTION_SLOT_NAME;
30
- var ITEM_SLOT_NAME = name + "CollectionItemSlot", ITEM_DATA_ATTR = "data-collection-item", CollectionItemSlot = /* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
31
- var { scope, children, ...itemData } = props, ref = React.useRef(void 0), composedRefs = useComposedRefs(forwardedRef, ref), context = useCollectionContext(scope);
32
- return React.useEffect(function() {
33
- return context.itemMap.set(ref, {
34
- ref,
35
- ...itemData
36
- }), function() {
37
- return void context.itemMap.delete(ref);
38
- };
39
- }), /* @__PURE__ */ _jsx(Slot, {
40
- [ITEM_DATA_ATTR]: "",
41
- ref: composedRefs,
42
- children
83
+ var ITEM_SLOT_NAME = name + "CollectionItemSlot",
84
+ ITEM_DATA_ATTR = "data-collection-item",
85
+ CollectionItemSlot = /* @__PURE__ */import_react.default.forwardRef(function (props, forwardedRef) {
86
+ var {
87
+ scope,
88
+ children,
89
+ ...itemData
90
+ } = props,
91
+ ref = import_react.default.useRef(void 0),
92
+ composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref),
93
+ context = useCollectionContext(scope);
94
+ return import_react.default.useEffect(function () {
95
+ return context.itemMap.set(ref, {
96
+ ref,
97
+ ...itemData
98
+ }), function () {
99
+ return void context.itemMap.delete(ref);
100
+ };
101
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_core.Slot, {
102
+ [ITEM_DATA_ATTR]: "",
103
+ ref: composedRefs,
104
+ children
105
+ });
43
106
  });
44
- });
45
107
  CollectionItemSlot.displayName = ITEM_SLOT_NAME;
46
108
  function useCollection(scope) {
47
- var context = useCollectionContext(scope), getItems = React.useCallback(function() {
48
- if (!isWeb)
49
- return [];
50
- var collectionNode = context.collectionRef.current;
51
- if (!collectionNode) return [];
52
- var orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`)), items = Array.from(context.itemMap.values()), orderedItems = items.sort(function(a, b) {
53
- return orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current);
54
- });
55
- return orderedItems;
56
- }, [
57
- context.collectionRef,
58
- context.itemMap
59
- ]);
109
+ var context = useCollectionContext(scope),
110
+ getItems = import_react.default.useCallback(function () {
111
+ if (!import_constants.isWeb) return [];
112
+ var collectionNode = context.collectionRef.current;
113
+ if (!collectionNode) return [];
114
+ var orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`)),
115
+ items = Array.from(context.itemMap.values()),
116
+ orderedItems = items.sort(function (a, b) {
117
+ return orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current);
118
+ });
119
+ return orderedItems;
120
+ }, [context.collectionRef, context.itemMap]);
60
121
  return getItems;
61
122
  }
62
- return [
63
- {
64
- Provider: CollectionProvider,
65
- Slot: CollectionSlot,
66
- ItemSlot: CollectionItemSlot
67
- },
68
- useCollection
69
- ];
123
+ return [{
124
+ Provider: CollectionProvider,
125
+ Slot: CollectionSlot,
126
+ ItemSlot: CollectionItemSlot
127
+ }, useCollection];
70
128
  }
71
- export {
72
- createCollection
73
- };
74
- //# sourceMappingURL=Collection.js.map
129
+ //# sourceMappingURL=Collection.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3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AC,GACM,WAAW;AACd,eAAO,KAAK,QAAQ,QAAQ,OAAO,GAAG;AAAA,MAC1C;AAAA,IACJ,CAAC,GACoB,qBAAK,MAAM;AAAA,MAC5B,CAAC,cAAc,GAAG;AAAA,MAClB,KAAK;AAAA,MACL;AAAA,IACJ,CAAC;AAAA,EACL,CAAC;AACD,qBAAmB,cAAc;AAGgE,WAAS,cAAc,OAAO;AAC3H,QAAI,UAAU,qBAAqB,KAAK,GACpC,WAAW,MAAM,YAAY,WAAW;AACxC,UAAI,CAAC;AACD,eAAO,CAAC;AAEZ,UAAI,iBAAiB,QAAQ,cAAc;AAC3C,UAAI,CAAC,eAAgB,QAAO,CAAC;AAC7B,UAAI,eAAe,MAAM,KAAK,eAAe,iBAAiB,IAAI,cAAc,GAAG,CAAC,GAChF,QAAQ,MAAM,KAAK,QAAQ,QAAQ,OAAO,CAAC,GAC3C,eAAe,MAAM,KAAK,SAAS,GAAG,GAAG;AACzC,eAAO,aAAa,QAAQ,EAAE,IAAI,OAAO,IAAI,aAAa,QAAQ,EAAE,IAAI,OAAO;AAAA,MACnF,CAAC;AACD,aAAO;AAAA,IACX,GAAG;AAAA,MACC,QAAQ;AAAA,MACR,QAAQ;AAAA,IACZ,CAAC;AACD,WAAO;AAAA,EACX;AACA,SAAO;AAAA,IACH;AAAA,MACI,UAAU;AAAA,MACV,MAAM;AAAA,MACN,UAAU;AAAA,IACd;AAAA,IACA;AAAA,EACJ;AACJ;",
5
- "names": []
6
- }
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"],"sources":["../../src/Collection.tsx"],"sourcesContent":[null],"mappings":"AAAA,YAAS;;AACT,IAAAA,QAAS,GAAAC,MAAA,CAAaC,MAAA;AAEtB,IAAAC,SAAS,GAAMF,MAAA,CAAAG,cAAA;AACf,IAAAC,gBAAkB,GAAAJ,MAAA,CAAAK,wBAAA;AAkDZ,IAAAC,iBAAA,GAAAN,MAAA,CAAAO,mBAAA;AAvCN,IAAAC,YAAS,GAAAR,MAAA,CACPS,cACA;EAAAC,YAAA,GAAAV,MAAA,CAAAW,SAAA,CAAAC,cAAA;AAmBA,IAAAC,QAAQ,GAAAA,CAAAC,MAAU,EAAAC,GAAA;IAChB,KACE,IAAAC,IAAA,IAAAD,GAAA,EAAAb,SACE,CAAAY,MAAA,EAAeE,IAAE;MAAAC,GAAS,EAAAF,GAAA,CAAUC,IAAA;MAAAE,UAAA;IAAA;EAAA;EAAAC,WACpC,GAASA,CAAAC,EAAA,EAAAC,IAAA,EAAAC,MAAA,EAAIC,IAAI;IAAA,IACnBF,IAAA,WAAAA,IAAA,uBAAAA,IAAA,gBACA,SAAAG,GAAA,IAAAlB,iBAAA,CAAAe,IAAA,GAGE,CAAAX,YAAA,CAAAe,IAAA,CAAAL,EAID,EAAAI,GAAA,KAAUA,GAAA,KAAAF,MAAA,IAAApB,SAAA,CAAAkB,EAAA,EAAAI,GAAA;MAAAP,GAAA,EAAAA,CAAA,KAAAI,IAAA,CAAAG,GAAA;MAAAN,UAAA,IAAAK,IAAA,GAAAnB,gBAAA,CAAAiB,IAAA,EAAAG,GAAA,MAAAD,IAAA,CAAAL;IAAA;IACb,OAAAE,EAAM;EAGN;AAGE,IAEJM,OAAA,GAAAA,CAAAC,GAAA,EAAAC,UAAA,EAAAd,MAAA,MAAAA,MAAA,GAAAa,GAAA,W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Q,WAAA;EACF,IAAAC,oBAAA,GAAA5C,IAAA;IAAA6C,cAAA,kBAAApB,YAAA,CAAAe,OAAA,CAAAM,UAAA,WAAAV,KAAA,EAAAW,YAAA;MACF;UAAAV,KAAA;UAAAC;QAAA,IAAAF,KAAA;QAAAY,OAAA,GAAAnB,oBAAA,CAAAQ,KAAA;QAAAY,YAAA,OAAA3B,mBAAA,CAAA4B,eAAA,EAAAH,YAAA,EAAAC,OAAA,CAAAjB,aAAA","ignoreList":[]}
@@ -1,2 +1,21 @@
1
- export * from "./Collection";
2
- //# sourceMappingURL=index.js.map
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __copyProps = (to, from, except, desc) => {
8
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
9
+ get: () => from[key],
10
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
+ });
12
+ return to;
13
+ },
14
+ __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
+ value: !0
17
+ }), mod);
18
+ var index_exports = {};
19
+ module.exports = __toCommonJS(index_exports);
20
+ __reExport(index_exports, require("./Collection.native.js"), module.exports);
21
+ //# sourceMappingURL=index.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": "AAAA,cAAc;",
5
- "names": []
6
- }
1
+ {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@tamagui/collection",
3
- "version": "1.135.4",
3
+ "version": "1.135.5",
4
+ "type": "module",
4
5
  "sideEffects": [
5
6
  "*.css"
6
7
  ],
@@ -36,16 +37,16 @@
36
37
  }
37
38
  },
38
39
  "dependencies": {
39
- "@tamagui/compose-refs": "1.135.4",
40
- "@tamagui/constants": "1.135.4",
41
- "@tamagui/core": "1.135.4",
42
- "@tamagui/create-context": "1.135.4",
43
- "@tamagui/polyfill-dev": "1.135.4",
44
- "@tamagui/stacks": "1.135.4",
45
- "@tamagui/use-controllable-state": "1.135.4"
40
+ "@tamagui/compose-refs": "1.135.5",
41
+ "@tamagui/constants": "1.135.5",
42
+ "@tamagui/core": "1.135.5",
43
+ "@tamagui/create-context": "1.135.5",
44
+ "@tamagui/polyfill-dev": "1.135.5",
45
+ "@tamagui/stacks": "1.135.5",
46
+ "@tamagui/use-controllable-state": "1.135.5"
46
47
  },
47
48
  "devDependencies": {
48
- "@tamagui/build": "1.135.4",
49
+ "@tamagui/build": "1.135.5",
49
50
  "react": "*"
50
51
  },
51
52
  "publishConfig": {