@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.
- package/dist/cjs/Collection.cjs +93 -82
- package/dist/cjs/Collection.native.js +101 -95
- package/dist/cjs/Collection.native.js.map +1 -1
- package/dist/cjs/index.cjs +7 -5
- package/dist/cjs/index.native.js +7 -5
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/Collection.mjs +64 -55
- package/dist/esm/Collection.mjs.map +1 -1
- package/dist/esm/Collection.native.js +72 -68
- package/dist/esm/Collection.native.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -6
- package/dist/jsx/Collection.mjs +64 -55
- package/dist/jsx/Collection.mjs.map +1 -1
- package/dist/jsx/Collection.native.js +101 -95
- package/dist/jsx/Collection.native.js.map +1 -1
- package/dist/jsx/index.js +1 -1
- package/dist/jsx/index.js.map +1 -6
- package/dist/jsx/index.native.js +7 -5
- package/package.json +12 -15
- package/dist/cjs/Collection.js +0 -73
- package/dist/cjs/Collection.js.map +0 -6
- package/dist/cjs/index.js +0 -15
- package/dist/cjs/index.js.map +0 -6
- package/dist/esm/Collection.js +0 -53
- package/dist/esm/Collection.js.map +0 -6
- package/dist/jsx/Collection.js +0 -53
- package/dist/jsx/Collection.js.map +0 -6
|
@@ -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
|
-
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
9
|
var __export = (target, all) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
21
|
-
|
|
21
|
+
}
|
|
22
|
+
return to;
|
|
23
|
+
};
|
|
22
24
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
return
|
|
120
|
-
}
|
|
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;
|
|
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,G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,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
|
package/dist/jsx/index.js.map
CHANGED
package/dist/jsx/index.native.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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:
|
|
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
|
|
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
|
-
|
|
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/
|
|
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
|
|
44
|
-
"@tamagui/constants": "2.0.0
|
|
45
|
-
"@tamagui/core": "2.0.0
|
|
46
|
-
"@tamagui/create-context": "2.0.0
|
|
47
|
-
"@tamagui/polyfill-dev": "2.0.0
|
|
48
|
-
"@tamagui/stacks": "2.0.0
|
|
49
|
-
"@tamagui/use-controllable-state": "2.0.0
|
|
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
|
|
49
|
+
"@tamagui/build": "2.0.0",
|
|
53
50
|
"react": ">=19"
|
|
54
51
|
},
|
|
55
52
|
"peerDependencies": {
|
package/dist/cjs/Collection.js
DELETED
|
@@ -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,wBA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iB,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
|
-
"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
|
package/dist/cjs/index.js.map
DELETED
package/dist/esm/Collection.js
DELETED
|
@@ -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,MAC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C7B,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
|
-
}
|
package/dist/jsx/Collection.js
DELETED
|
@@ -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
|
|
@@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