@tamagui/collection 2.0.0-rc.8 → 2.0.0

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.
@@ -4,120 +4,126 @@ var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf,
8
- __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
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, {
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: true
13
+ });
14
+ };
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
18
  get: () => from[key],
18
19
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
20
  });
20
- return to;
21
- };
21
+ }
22
+ return to;
23
+ };
22
24
  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);
25
+ // If the importer is in node compatibility mode or this is not an ESM
26
+ // file that has been converted to a CommonJS file using a Babel-
27
+ // compatible transform (i.e. "__esModule" has not been set), then set
28
+ // "default" to the CommonJS "module.exports" for node compatibility.
29
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
+ value: mod,
31
+ enumerable: true
32
+ }) : target, mod));
33
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
34
+ value: true
35
+ }), mod);
34
36
  var Collection_exports = {};
35
37
  __export(Collection_exports, {
36
38
  createCollection: () => createCollection
37
39
  });
38
40
  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);
41
+ var import_jsx_runtime = require("react/jsx-runtime");
42
+ var import_compose_refs = require("@tamagui/compose-refs");
43
+ var import_constants = require("@tamagui/constants");
44
+ var import_core = require("@tamagui/core");
45
+ var import_react = __toESM(require("react"), 1);
44
46
  function createCollection(name) {
45
47
  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
- };
48
+ Provider: CollectionProviderImpl,
49
+ useStyledContext: useCollectionContext
50
+ } = (0, import_core.createStyledContext)({
51
+ collectionRef: {
52
+ current: void 0
53
+ },
54
+ itemMap: /* @__PURE__ */new Map()
55
+ }, "Toast");
56
+ var CollectionProvider = function (props) {
57
+ var {
58
+ scope,
59
+ children
60
+ } = props;
61
+ var ref = import_react.default.useRef(void 0);
62
+ var itemMap = import_react.default.useRef(/* @__PURE__ */new Map()).current;
63
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(CollectionProviderImpl, {
64
+ scope,
65
+ itemMap,
66
+ collectionRef: ref,
67
+ children
68
+ });
69
+ };
68
70
  CollectionProvider.displayName = "CollectionProvider";
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
- });
71
+ var COLLECTION_SLOT_NAME = name + "CollectionSlot";
72
+ var CollectionSlot = /* @__PURE__ */import_react.default.forwardRef(function (props, forwardedRef) {
73
+ var {
74
+ scope,
75
+ children
76
+ } = props;
77
+ var context = useCollectionContext(scope);
78
+ var composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.collectionRef);
79
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_core.Slot, {
80
+ ref: composedRefs,
81
+ children
81
82
  });
83
+ });
82
84
  CollectionSlot.displayName = COLLECTION_SLOT_NAME;
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
- context.itemMap.delete(ref);
100
- };
101
- }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_core.Slot, {
102
- [ITEM_DATA_ATTR]: "",
103
- ref: composedRefs,
104
- children
85
+ var ITEM_SLOT_NAME = name + "CollectionItemSlot";
86
+ var ITEM_DATA_ATTR = "data-collection-item";
87
+ var CollectionItemSlot = /* @__PURE__ */import_react.default.forwardRef(function (props, forwardedRef) {
88
+ var {
89
+ scope,
90
+ children,
91
+ ...itemData
92
+ } = props;
93
+ var ref = import_react.default.useRef(void 0);
94
+ var composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref);
95
+ var context = useCollectionContext(scope);
96
+ import_react.default.useEffect(function () {
97
+ context.itemMap.set(ref, {
98
+ ref,
99
+ ...itemData
105
100
  });
101
+ return function () {
102
+ return void context.itemMap.delete(ref);
103
+ };
106
104
  });
105
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_core.Slot, {
106
+ [ITEM_DATA_ATTR]: "",
107
+ ref: composedRefs,
108
+ children
109
+ });
110
+ });
107
111
  CollectionItemSlot.displayName = ITEM_SLOT_NAME;
108
112
  function useCollection(scope) {
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]);
113
+ var context = useCollectionContext(scope);
114
+ var getItems = import_react.default.useCallback(function () {
115
+ if (!import_constants.isWeb) {
116
+ return [];
117
+ }
118
+ var collectionNode = context.collectionRef.current;
119
+ if (!collectionNode) return [];
120
+ var orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
121
+ var items = Array.from(context.itemMap.values());
122
+ var orderedItems = items.sort(function (a, b) {
123
+ return orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current);
124
+ });
125
+ return orderedItems;
126
+ }, [context.collectionRef, context.itemMap]);
121
127
  return getItems;
122
128
  }
123
129
  return [{
@@ -1 +1 @@
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"],"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,G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EACpC;MAAA0B,QAAM,EAAAC,sBAAU;MAAqBC,gBAAK,EAAAC;IAAA,QAAAL,WAAA,CAAAM,mBAAA;MAqB1CC,aAnBuB;QACrBC,OAAK;MACH;MAGFC,OAAA,EAAM,eAAiB,IAAAC,GAAA,CAAQ;IAC/B,UAAK;IAAAC,kBAAgB,GAAQ,SAAAA,CAAAC,KAAA;MAC7B;UAAAC,KAAM;UAAAC;QAAA,CAAe,GAAAF,KAAM;QAAAG,GAAA,GAAAd,YAAA,CAAAe,OAAA,CAAAC,MAAA;QAAAR,OAAA,GAAAR,YAAA,CAAAe,OAAA,CAAAC,MAAA,oBAAAP,GAAA,IAAAF,OAAA;MAAA,OACzB,eAAe,IAAAZ,kBAAqB,CAAAsB,GAAA,EAAAf,sBAAiB;QACvDU,KAAA;QAOAJ,OANc;QACaF,aAEvB,EAAAQ,GAAA;QAEJD;MAEF;IAGF;EAEAH,kBAAO,CAAAQ,WAAA;EAAA,IACHC,oBAAU,GAAA5C,IAAA,GAAoB,gBAAM;IAAA6C,cAA0B,kBAAmBpB,YAAA,CAAAe,OAAA,CAAAM,UAAA,WAAAV,KAAA,EAAAW,YAAA;MACnF;UAAAV,KAAA;UAAAC;QAAA,IAAAF,KAAA;QAAAY,OAAA,GAAAnB,oBAAA,CAAAQ,KAAA;QAAAY,YAAA,OAAA3B,mBAAA,CAAA4B,eAAA,EAAAH,YAAA,EAAAC,OAAA,CAAAjB,aAAA;MACF,0BAAAX,kBAAA,CAAAsB,GAAA,EAAAlB,WAAA,CAAA2B,IAAA;QACFZ,GAAA,EAAAU,YAAA","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"],"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;AAmBA,IAAAC,YAAQ,GAAAV,MAAU,CAAAW,SAAA,CAAAC,cAAwB;AACxC,IACEC,QAAA,GAAAA,CAAAC,MAAA,EAAAC,GAAA;EAAA,KACE,IAAAC,IAAA,IAAAD,GAAe,EAAqBb,SACpC,CAAAY,MAAS,EAAAE,IAAA;IAAAC,GAAA,EAAIF,GAAA,CAAIC,IAAA;IAAAE,UAAA;EAAA;AAAA;AACnB,IACAC,WAAA,GAAAA,CAAAC,EAAA,EAAAC,IAAA,EAAAC,MAAA,EAAAC,IAAA;EACF,IAAAF,IAAA,WAAAA,IAAA,wBAAAA,IAAA;IAEF,KAAM,IAAAG,GAAA,IAAAlB,iBAID,CAAAe,IAAU,GACb,IAAM,CAAAX,YAAS,CAAAe,IAAS,CAAAL,EAAA,EAAII,GAAA,KAAAA,GAAA,KAAAF,MAAA,EAC5BpB,SAAY,CAAAkB,EAAA,EAAMI,GAAA;MAA0BP,GAAA,EAAAA,CAAA,KAASI,IAAA,CAAAG,GAAA;MAAAN,UAAA,IAAAK,IAAA,GAAAnB,gBAAA,CAAAiB,IAAA,EAAAG,GAAA,MAAAD,IAAA,CAAAL;IAAA;EACrD;EACA,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,OAAQ,CAAAC,MAAA,gBAAc,IAAAP,GAAA,IAAAF,OAAA;IAC7C,OAAK,eAAgB,IAAAZ,kBAAQ,CAAAsB,GAAA,EAAAf,sBAAA;MAC7BU,KAAA;MAA2BJ,OACzB;MACFF,aAAA,EAAAQ,GAAA;MACAD;IACA;EAA2B;EAG2BH,kBACtD,CAAAQ,WAAA;EACA,IAAAC,oBAAO,GAAA5C,IAAA;EAAA,IACT6C,cAAY,kBAAuBpB,YAAQ,CAAAe,OAAA,CAAAM,UAAA,WAAAV,KAAA,EAAAW,YAAA;IAE3C;MAAAV,KAAO;MAAAC;IAAA,IAAAF,KAAA;IACT,IAAAY,OAAA,GAAAnB,oBAAA,CAAAQ,KAAA;IAEA,IAAAY,YAAO,OAAA3B,mBAAA,CAAA4B,eAAA,EAAAH,YAAA,EAAAC,OAAA,CAAAjB,aAAA;IACL,OAAE,eAAU,IAAAX,kBAA0B,CAAAsB,GAAA,EAAAlB,WAAgB,CAAA2B,IAAU;MAChEZ,GAAA,EAAAU,YAAA;MACFX;IACF","ignoreList":[]}
package/dist/jsx/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./Collection";
1
+ export * from "./Collection.mjs";
2
2
  //# sourceMappingURL=index.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,cAAc","ignoreList":[]}
@@ -5,15 +5,17 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
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, {
8
+ if (from && typeof from === "object" || typeof from === "function") {
9
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
9
10
  get: () => from[key],
10
11
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
12
  });
12
- return to;
13
- },
14
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
+ }
14
+ return to;
15
+ };
16
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
17
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
- value: !0
18
+ value: true
17
19
  }), mod);
18
20
  var index_exports = {};
19
21
  module.exports = __toCommonJS(index_exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/collection",
3
- "version": "2.0.0-rc.8",
3
+ "version": "2.0.0",
4
4
  "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
5
5
  "source": "src/index.ts",
6
6
  "files": [
@@ -19,15 +19,12 @@
19
19
  "./package.json": "./package.json",
20
20
  ".": {
21
21
  "types": "./types/index.d.ts",
22
- "react-native": {
23
- "module": "./dist/esm/index.native.js",
24
- "import": "./dist/esm/index.native.js",
25
- "require": "./dist/cjs/index.native.js"
26
- },
22
+ "react-native": "./dist/esm/index.native.js",
23
+ "browser": "./dist/esm/index.mjs",
27
24
  "module": "./dist/esm/index.mjs",
28
25
  "import": "./dist/esm/index.mjs",
29
26
  "require": "./dist/cjs/index.cjs",
30
- "default": "./dist/cjs/index.native.js"
27
+ "default": "./dist/esm/index.mjs"
31
28
  }
32
29
  },
33
30
  "publishConfig": {
@@ -40,16 +37,16 @@
40
37
  "clean:build": "tamagui-build clean:build"
41
38
  },
42
39
  "dependencies": {
43
- "@tamagui/compose-refs": "2.0.0-rc.8",
44
- "@tamagui/constants": "2.0.0-rc.8",
45
- "@tamagui/core": "2.0.0-rc.8",
46
- "@tamagui/create-context": "2.0.0-rc.8",
47
- "@tamagui/polyfill-dev": "2.0.0-rc.8",
48
- "@tamagui/stacks": "2.0.0-rc.8",
49
- "@tamagui/use-controllable-state": "2.0.0-rc.8"
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"
50
47
  },
51
48
  "devDependencies": {
52
- "@tamagui/build": "2.0.0-rc.8",
49
+ "@tamagui/build": "2.0.0",
53
50
  "react": ">=19"
54
51
  },
55
52
  "peerDependencies": {
@@ -1,73 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
15
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
- // If the importer is in node compatibility mode or this is not an ESM
17
- // file that has been converted to a CommonJS file using a Babel-
18
- // compatible transform (i.e. "__esModule" has not been set), then set
19
- // "default" to the CommonJS "module.exports" for node compatibility.
20
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
21
- mod
22
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
23
- var Collection_exports = {};
24
- __export(Collection_exports, {
25
- createCollection: () => createCollection
26
- });
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"), 1), import_jsx_runtime = require("react/jsx-runtime");
29
- function createCollection(name) {
30
- const { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = (0, import_core.createStyledContext)(
31
- {
32
- collectionRef: { current: void 0 },
33
- itemMap: /* @__PURE__ */ new Map()
34
- },
35
- "Toast"
36
- ), CollectionProvider = (props) => {
37
- const { 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, { scope, itemMap, collectionRef: ref, children });
39
- };
40
- CollectionProvider.displayName = "CollectionProvider";
41
- const COLLECTION_SLOT_NAME = name + "CollectionSlot", CollectionSlot = import_react.default.forwardRef((props, forwardedRef) => {
42
- const { scope, children } = props, context = useCollectionContext(scope), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.collectionRef);
43
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Slot, { ref: composedRefs, children });
44
- });
45
- CollectionSlot.displayName = COLLECTION_SLOT_NAME;
46
- const ITEM_SLOT_NAME = name + "CollectionItemSlot", ITEM_DATA_ATTR = "data-collection-item", CollectionItemSlot = import_react.default.forwardRef((props, forwardedRef) => {
47
- const { scope, children, ...itemData } = props, ref = import_react.default.useRef(void 0), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref), context = useCollectionContext(scope);
48
- return import_react.default.useEffect(() => (context.itemMap.set(ref, { ref, ...itemData }), () => {
49
- context.itemMap.delete(ref);
50
- })), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Slot, { [ITEM_DATA_ATTR]: "", ref: composedRefs, children });
51
- });
52
- CollectionItemSlot.displayName = ITEM_SLOT_NAME;
53
- function useCollection(scope) {
54
- const context = useCollectionContext(scope);
55
- return import_react.default.useCallback(() => {
56
- if (!import_constants.isWeb)
57
- return [];
58
- const collectionNode = context.collectionRef.current;
59
- if (!collectionNode) return [];
60
- const orderedNodes = Array.from(
61
- collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`)
62
- );
63
- return Array.from(context.itemMap.values()).sort(
64
- (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
65
- );
66
- }, [context.collectionRef, context.itemMap]);
67
- }
68
- return [
69
- { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },
70
- useCollection
71
- ];
72
- }
73
- //# sourceMappingURL=Collection.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Collection.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAgC,kCAChC,mBAAsB,+BAEtB,cAA0C,0BAC1C,eAAkB,8BAkDZ;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,IAAI,OACtB,MAAM,aAAAA,QAAM,OAA0B,MAAS,GAC/C,UAAU,aAAAA,QAAM,OAAgC,oBAAI,IAAI,CAAC,EAAE;AACjE,WACE,4CAAC,0BAAuB,OAAc,SAAkB,eAAe,KACpE,UACH;AAAA,EAEJ;AAEA,qBAAmB,cAAc;AAMjC,QAAM,uBAAuB,OAAO,kBAE9B,iBAAiB,aAAAA,QAAM,WAG3B,CAAC,OAAO,iBAAiB;AACzB,UAAM,EAAE,OAAO,SAAS,IAAI,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gB,UAAU,mBAAmB;AAAA,IACnF;AAAA,EACF;AACF;",
5
- "names": ["React"]
6
- }
package/dist/cjs/index.js DELETED
@@ -1,15 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from == "object" || typeof from == "function")
7
- for (let key of __getOwnPropNames(from))
8
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
9
- return to;
10
- }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
11
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
12
- var index_exports = {};
13
- module.exports = __toCommonJS(index_exports);
14
- __reExport(index_exports, require("./Collection"), module.exports);
15
- //# sourceMappingURL=index.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,yBAAd;",
5
- "names": []
6
- }
@@ -1,53 +0,0 @@
1
- import { useComposedRefs } from "@tamagui/compose-refs";
2
- import { isWeb } from "@tamagui/constants";
3
- import { Slot, createStyledContext } from "@tamagui/core";
4
- import React from "react";
5
- import { jsx } from "react/jsx-runtime";
6
- function createCollection(name) {
7
- const { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = createStyledContext(
8
- {
9
- collectionRef: { current: void 0 },
10
- itemMap: /* @__PURE__ */ new Map()
11
- },
12
- "Toast"
13
- ), CollectionProvider = (props) => {
14
- const { scope, children } = props, ref = React.useRef(void 0), itemMap = React.useRef(/* @__PURE__ */ new Map()).current;
15
- return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
16
- };
17
- CollectionProvider.displayName = "CollectionProvider";
18
- const COLLECTION_SLOT_NAME = name + "CollectionSlot", CollectionSlot = React.forwardRef((props, forwardedRef) => {
19
- const { scope, children } = props, context = useCollectionContext(scope), composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
20
- return /* @__PURE__ */ jsx(Slot, { ref: composedRefs, children });
21
- });
22
- CollectionSlot.displayName = COLLECTION_SLOT_NAME;
23
- const ITEM_SLOT_NAME = name + "CollectionItemSlot", ITEM_DATA_ATTR = "data-collection-item", CollectionItemSlot = React.forwardRef((props, forwardedRef) => {
24
- const { scope, children, ...itemData } = props, ref = React.useRef(void 0), composedRefs = useComposedRefs(forwardedRef, ref), context = useCollectionContext(scope);
25
- return React.useEffect(() => (context.itemMap.set(ref, { ref, ...itemData }), () => {
26
- context.itemMap.delete(ref);
27
- })), /* @__PURE__ */ jsx(Slot, { [ITEM_DATA_ATTR]: "", ref: composedRefs, children });
28
- });
29
- CollectionItemSlot.displayName = ITEM_SLOT_NAME;
30
- function useCollection(scope) {
31
- const context = useCollectionContext(scope);
32
- return React.useCallback(() => {
33
- if (!isWeb)
34
- return [];
35
- const collectionNode = context.collectionRef.current;
36
- if (!collectionNode) return [];
37
- const orderedNodes = Array.from(
38
- collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`)
39
- );
40
- return Array.from(context.itemMap.values()).sort(
41
- (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
42
- );
43
- }, [context.collectionRef, context.itemMap]);
44
- }
45
- return [
46
- { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },
47
- useCollection
48
- ];
49
- }
50
- export {
51
- createCollection
52
- };
53
- //# sourceMappingURL=Collection.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Collection.tsx"],
4
- "mappings": "AAAA,SAAS,uBAAuB;AAChC,SAAS,aAAa;AAEtB,SAAS,MAAM,2BAA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M,UAAU,qBAAqB,KAAK;AAqB1C,WAnBiB,MAAM,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
- "names": []
6
- }
@@ -1,53 +0,0 @@
1
- import { useComposedRefs } from "@tamagui/compose-refs";
2
- import { isWeb } from "@tamagui/constants";
3
- import { Slot, createStyledContext } from "@tamagui/core";
4
- import React from "react";
5
- import { jsx } from "react/jsx-runtime";
6
- function createCollection(name) {
7
- const { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = createStyledContext(
8
- {
9
- collectionRef: { current: void 0 },
10
- itemMap: /* @__PURE__ */ new Map()
11
- },
12
- "Toast"
13
- ), CollectionProvider = (props) => {
14
- const { scope, children } = props, ref = React.useRef(void 0), itemMap = React.useRef(/* @__PURE__ */ new Map()).current;
15
- return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
16
- };
17
- CollectionProvider.displayName = "CollectionProvider";
18
- const COLLECTION_SLOT_NAME = name + "CollectionSlot", CollectionSlot = React.forwardRef((props, forwardedRef) => {
19
- const { scope, children } = props, context = useCollectionContext(scope), composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
20
- return /* @__PURE__ */ jsx(Slot, { ref: composedRefs, children });
21
- });
22
- CollectionSlot.displayName = COLLECTION_SLOT_NAME;
23
- const ITEM_SLOT_NAME = name + "CollectionItemSlot", ITEM_DATA_ATTR = "data-collection-item", CollectionItemSlot = React.forwardRef((props, forwardedRef) => {
24
- const { scope, children, ...itemData } = props, ref = React.useRef(void 0), composedRefs = useComposedRefs(forwardedRef, ref), context = useCollectionContext(scope);
25
- return React.useEffect(() => (context.itemMap.set(ref, { ref, ...itemData }), () => {
26
- context.itemMap.delete(ref);
27
- })), /* @__PURE__ */ jsx(Slot, { [ITEM_DATA_ATTR]: "", ref: composedRefs, children });
28
- });
29
- CollectionItemSlot.displayName = ITEM_SLOT_NAME;
30
- function useCollection(scope) {
31
- const context = useCollectionContext(scope);
32
- return React.useCallback(() => {
33
- if (!isWeb)
34
- return [];
35
- const collectionNode = context.collectionRef.current;
36
- if (!collectionNode) return [];
37
- const orderedNodes = Array.from(
38
- collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`)
39
- );
40
- return Array.from(context.itemMap.values()).sort(
41
- (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
42
- );
43
- }, [context.collectionRef, context.itemMap]);
44
- }
45
- return [
46
- { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },
47
- useCollection
48
- ];
49
- }
50
- export {
51
- createCollection
52
- };
53
- //# sourceMappingURL=Collection.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Collection.tsx"],
4
- "mappings": "AAAA,SAAS,uBAAuB;AAChC,SAAS,aAAa;AAEtB,SAAS,MAAM,2BAA2B;AAC1C,OAAO,WAAW;AAkDZ;AAvCN,SAAS,iBACP,MACA;AAmBA,QAAM,EAAE,UAAU,wBAAwB,kBAAkB,qBAAqB,IAC/E;AAAA,IACE;AAAA,MACE,eAAe,EAAE,SAAS,OAAU;AAAA,MACpC,SAAS,oBAAI,IAAI;AAAA,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