This commit is contained in:
44
node_modules/@react-aria/utils/dist/DOMFunctions.main.js
generated
vendored
Normal file
44
node_modules/@react-aria/utils/dist/DOMFunctions.main.js
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
var $aaa611146751592e$exports = require("./domHelpers.main.js");
|
||||
var $loak6$reactstatelyflags = require("@react-stately/flags");
|
||||
|
||||
|
||||
function $parcel$export(e, n, v, s) {
|
||||
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
||||
}
|
||||
|
||||
$parcel$export(module.exports, "nodeContains", () => $d723bea02f3e2567$export$4282f70798064fe0);
|
||||
$parcel$export(module.exports, "getActiveElement", () => $d723bea02f3e2567$export$cd4e5573fbe2b576);
|
||||
$parcel$export(module.exports, "getEventTarget", () => $d723bea02f3e2567$export$e58f029f0fbfdb29);
|
||||
// Source: https://github.com/microsoft/tabster/blob/a89fc5d7e332d48f68d03b1ca6e344489d1c3898/src/Shadowdomize/DOMFunctions.ts#L16
|
||||
|
||||
|
||||
function $d723bea02f3e2567$export$4282f70798064fe0(node, otherNode) {
|
||||
if (!(0, $loak6$reactstatelyflags.shadowDOM)()) return otherNode && node ? node.contains(otherNode) : false;
|
||||
if (!node || !otherNode) return false;
|
||||
let currentNode = otherNode;
|
||||
while(currentNode !== null){
|
||||
if (currentNode === node) return true;
|
||||
if (currentNode.tagName === 'SLOT' && currentNode.assignedSlot) // Element is slotted
|
||||
currentNode = currentNode.assignedSlot.parentNode;
|
||||
else if ((0, $aaa611146751592e$exports.isShadowRoot)(currentNode)) // Element is in shadow root
|
||||
currentNode = currentNode.host;
|
||||
else currentNode = currentNode.parentNode;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
const $d723bea02f3e2567$export$cd4e5573fbe2b576 = (doc = document)=>{
|
||||
var _activeElement_shadowRoot;
|
||||
if (!(0, $loak6$reactstatelyflags.shadowDOM)()) return doc.activeElement;
|
||||
let activeElement = doc.activeElement;
|
||||
while(activeElement && 'shadowRoot' in activeElement && ((_activeElement_shadowRoot = activeElement.shadowRoot) === null || _activeElement_shadowRoot === void 0 ? void 0 : _activeElement_shadowRoot.activeElement))activeElement = activeElement.shadowRoot.activeElement;
|
||||
return activeElement;
|
||||
};
|
||||
function $d723bea02f3e2567$export$e58f029f0fbfdb29(event) {
|
||||
if ((0, $loak6$reactstatelyflags.shadowDOM)() && event.target.shadowRoot) {
|
||||
if (event.composedPath) return event.composedPath()[0];
|
||||
}
|
||||
return event.target;
|
||||
}
|
||||
|
||||
|
||||
//# sourceMappingURL=DOMFunctions.main.js.map
|
||||
1
node_modules/@react-aria/utils/dist/DOMFunctions.main.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/DOMFunctions.main.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":";;;;;;;;;;;AAAA,kIAAkI;;;AAQ3H,SAAS,0CACd,IAA6B,EAC7B,SAAkC;IAElC,IAAI,CAAC,CAAA,GAAA,kCAAQ,KACX,OAAO,aAAa,OAAO,KAAK,QAAQ,CAAC,aAAa;IAGxD,IAAI,CAAC,QAAQ,CAAC,WACZ,OAAO;IAGT,IAAI,cAAqD;IAEzD,MAAO,gBAAgB,KAAM;QAC3B,IAAI,gBAAgB,MAClB,OAAO;QAGT,IAAI,AAAC,YAAgC,OAAO,KAAK,UAC/C,AAAC,YAAgC,YAAY,EAC7C,qBAAqB;QACrB,cAAc,AAAC,YAAgC,YAAY,CAAE,UAAU;aAClE,IAAI,CAAA,GAAA,sCAAW,EAAE,cACtB,4BAA4B;QAC5B,cAAc,YAAY,IAAI;aAE9B,cAAc,YAAY,UAAU;IAExC;IAEA,OAAO;AACT;AAKO,MAAM,4CAAmB,CAAC,MAAgB,QAAQ;QAOvD;IANA,IAAI,CAAC,CAAA,GAAA,kCAAQ,KACX,OAAO,IAAI,aAAa;IAE1B,IAAI,gBAAgC,IAAI,aAAa;IAErD,MAAO,iBAAiB,gBAAgB,mBACxC,4BAAA,cAAc,UAAU,cAAxB,gDAAA,0BAA0B,aAAa,EACrC,gBAAgB,cAAc,UAAU,CAAC,aAAa;IAGxD,OAAO;AACT;AAKO,SAAS,0CAAgC,KAAQ;IACtD,IAAI,CAAA,GAAA,kCAAQ,OAAO,AAAC,MAAM,MAAM,CAAiB,UAAU,EAAE;QAC3D,IAAI,MAAM,YAAY,EACpB,OAAO,MAAM,YAAY,EAAE,CAAC,EAAE;IAElC;IACA,OAAO,MAAM,MAAM;AACrB","sources":["packages/@react-aria/utils/src/shadowdom/DOMFunctions.ts"],"sourcesContent":["// Source: https://github.com/microsoft/tabster/blob/a89fc5d7e332d48f68d03b1ca6e344489d1c3898/src/Shadowdomize/DOMFunctions.ts#L16\n\nimport {isShadowRoot} from '../domHelpers';\nimport {shadowDOM} from '@react-stately/flags';\n\n/**\n * ShadowDOM safe version of Node.contains.\n */\nexport function nodeContains(\n node: Node | null | undefined,\n otherNode: Node | null | undefined\n): boolean {\n if (!shadowDOM()) {\n return otherNode && node ? node.contains(otherNode) : false;\n }\n\n if (!node || !otherNode) {\n return false;\n }\n\n let currentNode: HTMLElement | Node | null | undefined = otherNode;\n\n while (currentNode !== null) {\n if (currentNode === node) {\n return true;\n }\n\n if ((currentNode as HTMLSlotElement).tagName === 'SLOT' &&\n (currentNode as HTMLSlotElement).assignedSlot) {\n // Element is slotted\n currentNode = (currentNode as HTMLSlotElement).assignedSlot!.parentNode;\n } else if (isShadowRoot(currentNode)) {\n // Element is in shadow root\n currentNode = currentNode.host;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return false;\n}\n\n/**\n * ShadowDOM safe version of document.activeElement.\n */\nexport const getActiveElement = (doc: Document = document): Element | null => {\n if (!shadowDOM()) {\n return doc.activeElement;\n }\n let activeElement: Element | null = doc.activeElement;\n\n while (activeElement && 'shadowRoot' in activeElement &&\n activeElement.shadowRoot?.activeElement) {\n activeElement = activeElement.shadowRoot.activeElement;\n }\n\n return activeElement;\n};\n\n/**\n * ShadowDOM safe version of event.target.\n */\nexport function getEventTarget<T extends Event>(event: T): Element {\n if (shadowDOM() && (event.target as HTMLElement).shadowRoot) {\n if (event.composedPath) {\n return event.composedPath()[0] as Element;\n }\n }\n return event.target as Element;\n}\n"],"names":[],"version":3,"file":"DOMFunctions.main.js.map"}
|
||||
37
node_modules/@react-aria/utils/dist/DOMFunctions.mjs
generated
vendored
Normal file
37
node_modules/@react-aria/utils/dist/DOMFunctions.mjs
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
import {isShadowRoot as $431fbd86ca7dc216$export$af51f0f06c0f328a} from "./domHelpers.mjs";
|
||||
import {shadowDOM as $lcSu5$shadowDOM} from "@react-stately/flags";
|
||||
|
||||
// Source: https://github.com/microsoft/tabster/blob/a89fc5d7e332d48f68d03b1ca6e344489d1c3898/src/Shadowdomize/DOMFunctions.ts#L16
|
||||
|
||||
|
||||
function $d4ee10de306f2510$export$4282f70798064fe0(node, otherNode) {
|
||||
if (!(0, $lcSu5$shadowDOM)()) return otherNode && node ? node.contains(otherNode) : false;
|
||||
if (!node || !otherNode) return false;
|
||||
let currentNode = otherNode;
|
||||
while(currentNode !== null){
|
||||
if (currentNode === node) return true;
|
||||
if (currentNode.tagName === 'SLOT' && currentNode.assignedSlot) // Element is slotted
|
||||
currentNode = currentNode.assignedSlot.parentNode;
|
||||
else if ((0, $431fbd86ca7dc216$export$af51f0f06c0f328a)(currentNode)) // Element is in shadow root
|
||||
currentNode = currentNode.host;
|
||||
else currentNode = currentNode.parentNode;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
const $d4ee10de306f2510$export$cd4e5573fbe2b576 = (doc = document)=>{
|
||||
var _activeElement_shadowRoot;
|
||||
if (!(0, $lcSu5$shadowDOM)()) return doc.activeElement;
|
||||
let activeElement = doc.activeElement;
|
||||
while(activeElement && 'shadowRoot' in activeElement && ((_activeElement_shadowRoot = activeElement.shadowRoot) === null || _activeElement_shadowRoot === void 0 ? void 0 : _activeElement_shadowRoot.activeElement))activeElement = activeElement.shadowRoot.activeElement;
|
||||
return activeElement;
|
||||
};
|
||||
function $d4ee10de306f2510$export$e58f029f0fbfdb29(event) {
|
||||
if ((0, $lcSu5$shadowDOM)() && event.target.shadowRoot) {
|
||||
if (event.composedPath) return event.composedPath()[0];
|
||||
}
|
||||
return event.target;
|
||||
}
|
||||
|
||||
|
||||
export {$d4ee10de306f2510$export$4282f70798064fe0 as nodeContains, $d4ee10de306f2510$export$cd4e5573fbe2b576 as getActiveElement, $d4ee10de306f2510$export$e58f029f0fbfdb29 as getEventTarget};
|
||||
//# sourceMappingURL=DOMFunctions.module.js.map
|
||||
37
node_modules/@react-aria/utils/dist/DOMFunctions.module.js
generated
vendored
Normal file
37
node_modules/@react-aria/utils/dist/DOMFunctions.module.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
import {isShadowRoot as $431fbd86ca7dc216$export$af51f0f06c0f328a} from "./domHelpers.module.js";
|
||||
import {shadowDOM as $lcSu5$shadowDOM} from "@react-stately/flags";
|
||||
|
||||
// Source: https://github.com/microsoft/tabster/blob/a89fc5d7e332d48f68d03b1ca6e344489d1c3898/src/Shadowdomize/DOMFunctions.ts#L16
|
||||
|
||||
|
||||
function $d4ee10de306f2510$export$4282f70798064fe0(node, otherNode) {
|
||||
if (!(0, $lcSu5$shadowDOM)()) return otherNode && node ? node.contains(otherNode) : false;
|
||||
if (!node || !otherNode) return false;
|
||||
let currentNode = otherNode;
|
||||
while(currentNode !== null){
|
||||
if (currentNode === node) return true;
|
||||
if (currentNode.tagName === 'SLOT' && currentNode.assignedSlot) // Element is slotted
|
||||
currentNode = currentNode.assignedSlot.parentNode;
|
||||
else if ((0, $431fbd86ca7dc216$export$af51f0f06c0f328a)(currentNode)) // Element is in shadow root
|
||||
currentNode = currentNode.host;
|
||||
else currentNode = currentNode.parentNode;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
const $d4ee10de306f2510$export$cd4e5573fbe2b576 = (doc = document)=>{
|
||||
var _activeElement_shadowRoot;
|
||||
if (!(0, $lcSu5$shadowDOM)()) return doc.activeElement;
|
||||
let activeElement = doc.activeElement;
|
||||
while(activeElement && 'shadowRoot' in activeElement && ((_activeElement_shadowRoot = activeElement.shadowRoot) === null || _activeElement_shadowRoot === void 0 ? void 0 : _activeElement_shadowRoot.activeElement))activeElement = activeElement.shadowRoot.activeElement;
|
||||
return activeElement;
|
||||
};
|
||||
function $d4ee10de306f2510$export$e58f029f0fbfdb29(event) {
|
||||
if ((0, $lcSu5$shadowDOM)() && event.target.shadowRoot) {
|
||||
if (event.composedPath) return event.composedPath()[0];
|
||||
}
|
||||
return event.target;
|
||||
}
|
||||
|
||||
|
||||
export {$d4ee10de306f2510$export$4282f70798064fe0 as nodeContains, $d4ee10de306f2510$export$cd4e5573fbe2b576 as getActiveElement, $d4ee10de306f2510$export$e58f029f0fbfdb29 as getEventTarget};
|
||||
//# sourceMappingURL=DOMFunctions.module.js.map
|
||||
1
node_modules/@react-aria/utils/dist/DOMFunctions.module.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/DOMFunctions.module.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":";;;AAAA,kIAAkI;;;AAQ3H,SAAS,0CACd,IAA6B,EAC7B,SAAkC;IAElC,IAAI,CAAC,CAAA,GAAA,gBAAQ,KACX,OAAO,aAAa,OAAO,KAAK,QAAQ,CAAC,aAAa;IAGxD,IAAI,CAAC,QAAQ,CAAC,WACZ,OAAO;IAGT,IAAI,cAAqD;IAEzD,MAAO,gBAAgB,KAAM;QAC3B,IAAI,gBAAgB,MAClB,OAAO;QAGT,IAAI,AAAC,YAAgC,OAAO,KAAK,UAC/C,AAAC,YAAgC,YAAY,EAC7C,qBAAqB;QACrB,cAAc,AAAC,YAAgC,YAAY,CAAE,UAAU;aAClE,IAAI,CAAA,GAAA,yCAAW,EAAE,cACtB,4BAA4B;QAC5B,cAAc,YAAY,IAAI;aAE9B,cAAc,YAAY,UAAU;IAExC;IAEA,OAAO;AACT;AAKO,MAAM,4CAAmB,CAAC,MAAgB,QAAQ;QAOvD;IANA,IAAI,CAAC,CAAA,GAAA,gBAAQ,KACX,OAAO,IAAI,aAAa;IAE1B,IAAI,gBAAgC,IAAI,aAAa;IAErD,MAAO,iBAAiB,gBAAgB,mBACxC,4BAAA,cAAc,UAAU,cAAxB,gDAAA,0BAA0B,aAAa,EACrC,gBAAgB,cAAc,UAAU,CAAC,aAAa;IAGxD,OAAO;AACT;AAKO,SAAS,0CAAgC,KAAQ;IACtD,IAAI,CAAA,GAAA,gBAAQ,OAAO,AAAC,MAAM,MAAM,CAAiB,UAAU,EAAE;QAC3D,IAAI,MAAM,YAAY,EACpB,OAAO,MAAM,YAAY,EAAE,CAAC,EAAE;IAElC;IACA,OAAO,MAAM,MAAM;AACrB","sources":["packages/@react-aria/utils/src/shadowdom/DOMFunctions.ts"],"sourcesContent":["// Source: https://github.com/microsoft/tabster/blob/a89fc5d7e332d48f68d03b1ca6e344489d1c3898/src/Shadowdomize/DOMFunctions.ts#L16\n\nimport {isShadowRoot} from '../domHelpers';\nimport {shadowDOM} from '@react-stately/flags';\n\n/**\n * ShadowDOM safe version of Node.contains.\n */\nexport function nodeContains(\n node: Node | null | undefined,\n otherNode: Node | null | undefined\n): boolean {\n if (!shadowDOM()) {\n return otherNode && node ? node.contains(otherNode) : false;\n }\n\n if (!node || !otherNode) {\n return false;\n }\n\n let currentNode: HTMLElement | Node | null | undefined = otherNode;\n\n while (currentNode !== null) {\n if (currentNode === node) {\n return true;\n }\n\n if ((currentNode as HTMLSlotElement).tagName === 'SLOT' &&\n (currentNode as HTMLSlotElement).assignedSlot) {\n // Element is slotted\n currentNode = (currentNode as HTMLSlotElement).assignedSlot!.parentNode;\n } else if (isShadowRoot(currentNode)) {\n // Element is in shadow root\n currentNode = currentNode.host;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return false;\n}\n\n/**\n * ShadowDOM safe version of document.activeElement.\n */\nexport const getActiveElement = (doc: Document = document): Element | null => {\n if (!shadowDOM()) {\n return doc.activeElement;\n }\n let activeElement: Element | null = doc.activeElement;\n\n while (activeElement && 'shadowRoot' in activeElement &&\n activeElement.shadowRoot?.activeElement) {\n activeElement = activeElement.shadowRoot.activeElement;\n }\n\n return activeElement;\n};\n\n/**\n * ShadowDOM safe version of event.target.\n */\nexport function getEventTarget<T extends Event>(event: T): Element {\n if (shadowDOM() && (event.target as HTMLElement).shadowRoot) {\n if (event.composedPath) {\n return event.composedPath()[0] as Element;\n }\n }\n return event.target as Element;\n}\n"],"names":[],"version":3,"file":"DOMFunctions.module.js.map"}
|
||||
200
node_modules/@react-aria/utils/dist/ShadowTreeWalker.main.js
generated
vendored
Normal file
200
node_modules/@react-aria/utils/dist/ShadowTreeWalker.main.js
generated
vendored
Normal file
@@ -0,0 +1,200 @@
|
||||
var $d723bea02f3e2567$exports = require("./DOMFunctions.main.js");
|
||||
var $hdE3O$reactstatelyflags = require("@react-stately/flags");
|
||||
|
||||
|
||||
function $parcel$export(e, n, v, s) {
|
||||
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
||||
}
|
||||
|
||||
$parcel$export(module.exports, "ShadowTreeWalker", () => $8e13b2545651735a$export$63eb3ababa9c55c4);
|
||||
$parcel$export(module.exports, "createShadowTreeWalker", () => $8e13b2545651735a$export$4d0f8be8b12a7ef6);
|
||||
// https://github.com/microsoft/tabster/blob/a89fc5d7e332d48f68d03b1ca6e344489d1c3898/src/Shadowdomize/ShadowTreeWalker.ts
|
||||
|
||||
|
||||
class $8e13b2545651735a$export$63eb3ababa9c55c4 {
|
||||
get currentNode() {
|
||||
return this._currentNode;
|
||||
}
|
||||
set currentNode(node) {
|
||||
if (!(0, $d723bea02f3e2567$exports.nodeContains)(this.root, node)) throw new Error('Cannot set currentNode to a node that is not contained by the root node.');
|
||||
const walkers = [];
|
||||
let curNode = node;
|
||||
let currentWalkerCurrentNode = node;
|
||||
this._currentNode = node;
|
||||
while(curNode && curNode !== this.root)if (curNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
|
||||
const shadowRoot = curNode;
|
||||
const walker = this._doc.createTreeWalker(shadowRoot, this.whatToShow, {
|
||||
acceptNode: this._acceptNode
|
||||
});
|
||||
walkers.push(walker);
|
||||
walker.currentNode = currentWalkerCurrentNode;
|
||||
this._currentSetFor.add(walker);
|
||||
curNode = currentWalkerCurrentNode = shadowRoot.host;
|
||||
} else curNode = curNode.parentNode;
|
||||
const walker = this._doc.createTreeWalker(this.root, this.whatToShow, {
|
||||
acceptNode: this._acceptNode
|
||||
});
|
||||
walkers.push(walker);
|
||||
walker.currentNode = currentWalkerCurrentNode;
|
||||
this._currentSetFor.add(walker);
|
||||
this._walkerStack = walkers;
|
||||
}
|
||||
get doc() {
|
||||
return this._doc;
|
||||
}
|
||||
firstChild() {
|
||||
let currentNode = this.currentNode;
|
||||
let newNode = this.nextNode();
|
||||
if (!(0, $d723bea02f3e2567$exports.nodeContains)(currentNode, newNode)) {
|
||||
this.currentNode = currentNode;
|
||||
return null;
|
||||
}
|
||||
if (newNode) this.currentNode = newNode;
|
||||
return newNode;
|
||||
}
|
||||
lastChild() {
|
||||
let walker = this._walkerStack[0];
|
||||
let newNode = walker.lastChild();
|
||||
if (newNode) this.currentNode = newNode;
|
||||
return newNode;
|
||||
}
|
||||
nextNode() {
|
||||
const nextNode = this._walkerStack[0].nextNode();
|
||||
if (nextNode) {
|
||||
const shadowRoot = nextNode.shadowRoot;
|
||||
if (shadowRoot) {
|
||||
var _this_filter;
|
||||
let nodeResult;
|
||||
if (typeof this.filter === 'function') nodeResult = this.filter(nextNode);
|
||||
else if ((_this_filter = this.filter) === null || _this_filter === void 0 ? void 0 : _this_filter.acceptNode) nodeResult = this.filter.acceptNode(nextNode);
|
||||
if (nodeResult === NodeFilter.FILTER_ACCEPT) {
|
||||
this.currentNode = nextNode;
|
||||
return nextNode;
|
||||
}
|
||||
// _acceptNode should have added new walker for this shadow,
|
||||
// go in recursively.
|
||||
let newNode = this.nextNode();
|
||||
if (newNode) this.currentNode = newNode;
|
||||
return newNode;
|
||||
}
|
||||
if (nextNode) this.currentNode = nextNode;
|
||||
return nextNode;
|
||||
} else {
|
||||
if (this._walkerStack.length > 1) {
|
||||
this._walkerStack.shift();
|
||||
let newNode = this.nextNode();
|
||||
if (newNode) this.currentNode = newNode;
|
||||
return newNode;
|
||||
} else return null;
|
||||
}
|
||||
}
|
||||
previousNode() {
|
||||
const currentWalker = this._walkerStack[0];
|
||||
if (currentWalker.currentNode === currentWalker.root) {
|
||||
if (this._currentSetFor.has(currentWalker)) {
|
||||
this._currentSetFor.delete(currentWalker);
|
||||
if (this._walkerStack.length > 1) {
|
||||
this._walkerStack.shift();
|
||||
let newNode = this.previousNode();
|
||||
if (newNode) this.currentNode = newNode;
|
||||
return newNode;
|
||||
} else return null;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
const previousNode = currentWalker.previousNode();
|
||||
if (previousNode) {
|
||||
const shadowRoot = previousNode.shadowRoot;
|
||||
if (shadowRoot) {
|
||||
var _this_filter;
|
||||
let nodeResult;
|
||||
if (typeof this.filter === 'function') nodeResult = this.filter(previousNode);
|
||||
else if ((_this_filter = this.filter) === null || _this_filter === void 0 ? void 0 : _this_filter.acceptNode) nodeResult = this.filter.acceptNode(previousNode);
|
||||
if (nodeResult === NodeFilter.FILTER_ACCEPT) {
|
||||
if (previousNode) this.currentNode = previousNode;
|
||||
return previousNode;
|
||||
}
|
||||
// _acceptNode should have added new walker for this shadow,
|
||||
// go in recursively.
|
||||
let newNode = this.lastChild();
|
||||
if (newNode) this.currentNode = newNode;
|
||||
return newNode;
|
||||
}
|
||||
if (previousNode) this.currentNode = previousNode;
|
||||
return previousNode;
|
||||
} else {
|
||||
if (this._walkerStack.length > 1) {
|
||||
this._walkerStack.shift();
|
||||
let newNode = this.previousNode();
|
||||
if (newNode) this.currentNode = newNode;
|
||||
return newNode;
|
||||
} else return null;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
*/ nextSibling() {
|
||||
// if (__DEV__) {
|
||||
// throw new Error("Method not implemented.");
|
||||
// }
|
||||
return null;
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
*/ previousSibling() {
|
||||
// if (__DEV__) {
|
||||
// throw new Error("Method not implemented.");
|
||||
// }
|
||||
return null;
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
*/ parentNode() {
|
||||
// if (__DEV__) {
|
||||
// throw new Error("Method not implemented.");
|
||||
// }
|
||||
return null;
|
||||
}
|
||||
constructor(doc, root, whatToShow, filter){
|
||||
this._walkerStack = [];
|
||||
this._currentSetFor = new Set();
|
||||
this._acceptNode = (node)=>{
|
||||
if (node.nodeType === Node.ELEMENT_NODE) {
|
||||
const shadowRoot = node.shadowRoot;
|
||||
if (shadowRoot) {
|
||||
const walker = this._doc.createTreeWalker(shadowRoot, this.whatToShow, {
|
||||
acceptNode: this._acceptNode
|
||||
});
|
||||
this._walkerStack.unshift(walker);
|
||||
return NodeFilter.FILTER_ACCEPT;
|
||||
} else {
|
||||
var _this_filter;
|
||||
if (typeof this.filter === 'function') return this.filter(node);
|
||||
else if ((_this_filter = this.filter) === null || _this_filter === void 0 ? void 0 : _this_filter.acceptNode) return this.filter.acceptNode(node);
|
||||
else if (this.filter === null) return NodeFilter.FILTER_ACCEPT;
|
||||
}
|
||||
}
|
||||
return NodeFilter.FILTER_SKIP;
|
||||
};
|
||||
this._doc = doc;
|
||||
this.root = root;
|
||||
this.filter = filter !== null && filter !== void 0 ? filter : null;
|
||||
this.whatToShow = whatToShow !== null && whatToShow !== void 0 ? whatToShow : NodeFilter.SHOW_ALL;
|
||||
this._currentNode = root;
|
||||
this._walkerStack.unshift(doc.createTreeWalker(root, whatToShow, this._acceptNode));
|
||||
const shadowRoot = root.shadowRoot;
|
||||
if (shadowRoot) {
|
||||
const walker = this._doc.createTreeWalker(shadowRoot, this.whatToShow, {
|
||||
acceptNode: this._acceptNode
|
||||
});
|
||||
this._walkerStack.unshift(walker);
|
||||
}
|
||||
}
|
||||
}
|
||||
function $8e13b2545651735a$export$4d0f8be8b12a7ef6(doc, root, whatToShow, filter) {
|
||||
if ((0, $hdE3O$reactstatelyflags.shadowDOM)()) return new $8e13b2545651735a$export$63eb3ababa9c55c4(doc, root, whatToShow, filter);
|
||||
return doc.createTreeWalker(root, whatToShow, filter);
|
||||
}
|
||||
|
||||
|
||||
//# sourceMappingURL=ShadowTreeWalker.main.js.map
|
||||
1
node_modules/@react-aria/utils/dist/ShadowTreeWalker.main.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/ShadowTreeWalker.main.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
194
node_modules/@react-aria/utils/dist/ShadowTreeWalker.mjs
generated
vendored
Normal file
194
node_modules/@react-aria/utils/dist/ShadowTreeWalker.mjs
generated
vendored
Normal file
@@ -0,0 +1,194 @@
|
||||
import {nodeContains as $d4ee10de306f2510$export$4282f70798064fe0} from "./DOMFunctions.mjs";
|
||||
import {shadowDOM as $bJKXg$shadowDOM} from "@react-stately/flags";
|
||||
|
||||
// https://github.com/microsoft/tabster/blob/a89fc5d7e332d48f68d03b1ca6e344489d1c3898/src/Shadowdomize/ShadowTreeWalker.ts
|
||||
|
||||
|
||||
class $dfc540311bf7f109$export$63eb3ababa9c55c4 {
|
||||
get currentNode() {
|
||||
return this._currentNode;
|
||||
}
|
||||
set currentNode(node) {
|
||||
if (!(0, $d4ee10de306f2510$export$4282f70798064fe0)(this.root, node)) throw new Error('Cannot set currentNode to a node that is not contained by the root node.');
|
||||
const walkers = [];
|
||||
let curNode = node;
|
||||
let currentWalkerCurrentNode = node;
|
||||
this._currentNode = node;
|
||||
while(curNode && curNode !== this.root)if (curNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
|
||||
const shadowRoot = curNode;
|
||||
const walker = this._doc.createTreeWalker(shadowRoot, this.whatToShow, {
|
||||
acceptNode: this._acceptNode
|
||||
});
|
||||
walkers.push(walker);
|
||||
walker.currentNode = currentWalkerCurrentNode;
|
||||
this._currentSetFor.add(walker);
|
||||
curNode = currentWalkerCurrentNode = shadowRoot.host;
|
||||
} else curNode = curNode.parentNode;
|
||||
const walker = this._doc.createTreeWalker(this.root, this.whatToShow, {
|
||||
acceptNode: this._acceptNode
|
||||
});
|
||||
walkers.push(walker);
|
||||
walker.currentNode = currentWalkerCurrentNode;
|
||||
this._currentSetFor.add(walker);
|
||||
this._walkerStack = walkers;
|
||||
}
|
||||
get doc() {
|
||||
return this._doc;
|
||||
}
|
||||
firstChild() {
|
||||
let currentNode = this.currentNode;
|
||||
let newNode = this.nextNode();
|
||||
if (!(0, $d4ee10de306f2510$export$4282f70798064fe0)(currentNode, newNode)) {
|
||||
this.currentNode = currentNode;
|
||||
return null;
|
||||
}
|
||||
if (newNode) this.currentNode = newNode;
|
||||
return newNode;
|
||||
}
|
||||
lastChild() {
|
||||
let walker = this._walkerStack[0];
|
||||
let newNode = walker.lastChild();
|
||||
if (newNode) this.currentNode = newNode;
|
||||
return newNode;
|
||||
}
|
||||
nextNode() {
|
||||
const nextNode = this._walkerStack[0].nextNode();
|
||||
if (nextNode) {
|
||||
const shadowRoot = nextNode.shadowRoot;
|
||||
if (shadowRoot) {
|
||||
var _this_filter;
|
||||
let nodeResult;
|
||||
if (typeof this.filter === 'function') nodeResult = this.filter(nextNode);
|
||||
else if ((_this_filter = this.filter) === null || _this_filter === void 0 ? void 0 : _this_filter.acceptNode) nodeResult = this.filter.acceptNode(nextNode);
|
||||
if (nodeResult === NodeFilter.FILTER_ACCEPT) {
|
||||
this.currentNode = nextNode;
|
||||
return nextNode;
|
||||
}
|
||||
// _acceptNode should have added new walker for this shadow,
|
||||
// go in recursively.
|
||||
let newNode = this.nextNode();
|
||||
if (newNode) this.currentNode = newNode;
|
||||
return newNode;
|
||||
}
|
||||
if (nextNode) this.currentNode = nextNode;
|
||||
return nextNode;
|
||||
} else {
|
||||
if (this._walkerStack.length > 1) {
|
||||
this._walkerStack.shift();
|
||||
let newNode = this.nextNode();
|
||||
if (newNode) this.currentNode = newNode;
|
||||
return newNode;
|
||||
} else return null;
|
||||
}
|
||||
}
|
||||
previousNode() {
|
||||
const currentWalker = this._walkerStack[0];
|
||||
if (currentWalker.currentNode === currentWalker.root) {
|
||||
if (this._currentSetFor.has(currentWalker)) {
|
||||
this._currentSetFor.delete(currentWalker);
|
||||
if (this._walkerStack.length > 1) {
|
||||
this._walkerStack.shift();
|
||||
let newNode = this.previousNode();
|
||||
if (newNode) this.currentNode = newNode;
|
||||
return newNode;
|
||||
} else return null;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
const previousNode = currentWalker.previousNode();
|
||||
if (previousNode) {
|
||||
const shadowRoot = previousNode.shadowRoot;
|
||||
if (shadowRoot) {
|
||||
var _this_filter;
|
||||
let nodeResult;
|
||||
if (typeof this.filter === 'function') nodeResult = this.filter(previousNode);
|
||||
else if ((_this_filter = this.filter) === null || _this_filter === void 0 ? void 0 : _this_filter.acceptNode) nodeResult = this.filter.acceptNode(previousNode);
|
||||
if (nodeResult === NodeFilter.FILTER_ACCEPT) {
|
||||
if (previousNode) this.currentNode = previousNode;
|
||||
return previousNode;
|
||||
}
|
||||
// _acceptNode should have added new walker for this shadow,
|
||||
// go in recursively.
|
||||
let newNode = this.lastChild();
|
||||
if (newNode) this.currentNode = newNode;
|
||||
return newNode;
|
||||
}
|
||||
if (previousNode) this.currentNode = previousNode;
|
||||
return previousNode;
|
||||
} else {
|
||||
if (this._walkerStack.length > 1) {
|
||||
this._walkerStack.shift();
|
||||
let newNode = this.previousNode();
|
||||
if (newNode) this.currentNode = newNode;
|
||||
return newNode;
|
||||
} else return null;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
*/ nextSibling() {
|
||||
// if (__DEV__) {
|
||||
// throw new Error("Method not implemented.");
|
||||
// }
|
||||
return null;
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
*/ previousSibling() {
|
||||
// if (__DEV__) {
|
||||
// throw new Error("Method not implemented.");
|
||||
// }
|
||||
return null;
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
*/ parentNode() {
|
||||
// if (__DEV__) {
|
||||
// throw new Error("Method not implemented.");
|
||||
// }
|
||||
return null;
|
||||
}
|
||||
constructor(doc, root, whatToShow, filter){
|
||||
this._walkerStack = [];
|
||||
this._currentSetFor = new Set();
|
||||
this._acceptNode = (node)=>{
|
||||
if (node.nodeType === Node.ELEMENT_NODE) {
|
||||
const shadowRoot = node.shadowRoot;
|
||||
if (shadowRoot) {
|
||||
const walker = this._doc.createTreeWalker(shadowRoot, this.whatToShow, {
|
||||
acceptNode: this._acceptNode
|
||||
});
|
||||
this._walkerStack.unshift(walker);
|
||||
return NodeFilter.FILTER_ACCEPT;
|
||||
} else {
|
||||
var _this_filter;
|
||||
if (typeof this.filter === 'function') return this.filter(node);
|
||||
else if ((_this_filter = this.filter) === null || _this_filter === void 0 ? void 0 : _this_filter.acceptNode) return this.filter.acceptNode(node);
|
||||
else if (this.filter === null) return NodeFilter.FILTER_ACCEPT;
|
||||
}
|
||||
}
|
||||
return NodeFilter.FILTER_SKIP;
|
||||
};
|
||||
this._doc = doc;
|
||||
this.root = root;
|
||||
this.filter = filter !== null && filter !== void 0 ? filter : null;
|
||||
this.whatToShow = whatToShow !== null && whatToShow !== void 0 ? whatToShow : NodeFilter.SHOW_ALL;
|
||||
this._currentNode = root;
|
||||
this._walkerStack.unshift(doc.createTreeWalker(root, whatToShow, this._acceptNode));
|
||||
const shadowRoot = root.shadowRoot;
|
||||
if (shadowRoot) {
|
||||
const walker = this._doc.createTreeWalker(shadowRoot, this.whatToShow, {
|
||||
acceptNode: this._acceptNode
|
||||
});
|
||||
this._walkerStack.unshift(walker);
|
||||
}
|
||||
}
|
||||
}
|
||||
function $dfc540311bf7f109$export$4d0f8be8b12a7ef6(doc, root, whatToShow, filter) {
|
||||
if ((0, $bJKXg$shadowDOM)()) return new $dfc540311bf7f109$export$63eb3ababa9c55c4(doc, root, whatToShow, filter);
|
||||
return doc.createTreeWalker(root, whatToShow, filter);
|
||||
}
|
||||
|
||||
|
||||
export {$dfc540311bf7f109$export$63eb3ababa9c55c4 as ShadowTreeWalker, $dfc540311bf7f109$export$4d0f8be8b12a7ef6 as createShadowTreeWalker};
|
||||
//# sourceMappingURL=ShadowTreeWalker.module.js.map
|
||||
194
node_modules/@react-aria/utils/dist/ShadowTreeWalker.module.js
generated
vendored
Normal file
194
node_modules/@react-aria/utils/dist/ShadowTreeWalker.module.js
generated
vendored
Normal file
@@ -0,0 +1,194 @@
|
||||
import {nodeContains as $d4ee10de306f2510$export$4282f70798064fe0} from "./DOMFunctions.module.js";
|
||||
import {shadowDOM as $bJKXg$shadowDOM} from "@react-stately/flags";
|
||||
|
||||
// https://github.com/microsoft/tabster/blob/a89fc5d7e332d48f68d03b1ca6e344489d1c3898/src/Shadowdomize/ShadowTreeWalker.ts
|
||||
|
||||
|
||||
class $dfc540311bf7f109$export$63eb3ababa9c55c4 {
|
||||
get currentNode() {
|
||||
return this._currentNode;
|
||||
}
|
||||
set currentNode(node) {
|
||||
if (!(0, $d4ee10de306f2510$export$4282f70798064fe0)(this.root, node)) throw new Error('Cannot set currentNode to a node that is not contained by the root node.');
|
||||
const walkers = [];
|
||||
let curNode = node;
|
||||
let currentWalkerCurrentNode = node;
|
||||
this._currentNode = node;
|
||||
while(curNode && curNode !== this.root)if (curNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
|
||||
const shadowRoot = curNode;
|
||||
const walker = this._doc.createTreeWalker(shadowRoot, this.whatToShow, {
|
||||
acceptNode: this._acceptNode
|
||||
});
|
||||
walkers.push(walker);
|
||||
walker.currentNode = currentWalkerCurrentNode;
|
||||
this._currentSetFor.add(walker);
|
||||
curNode = currentWalkerCurrentNode = shadowRoot.host;
|
||||
} else curNode = curNode.parentNode;
|
||||
const walker = this._doc.createTreeWalker(this.root, this.whatToShow, {
|
||||
acceptNode: this._acceptNode
|
||||
});
|
||||
walkers.push(walker);
|
||||
walker.currentNode = currentWalkerCurrentNode;
|
||||
this._currentSetFor.add(walker);
|
||||
this._walkerStack = walkers;
|
||||
}
|
||||
get doc() {
|
||||
return this._doc;
|
||||
}
|
||||
firstChild() {
|
||||
let currentNode = this.currentNode;
|
||||
let newNode = this.nextNode();
|
||||
if (!(0, $d4ee10de306f2510$export$4282f70798064fe0)(currentNode, newNode)) {
|
||||
this.currentNode = currentNode;
|
||||
return null;
|
||||
}
|
||||
if (newNode) this.currentNode = newNode;
|
||||
return newNode;
|
||||
}
|
||||
lastChild() {
|
||||
let walker = this._walkerStack[0];
|
||||
let newNode = walker.lastChild();
|
||||
if (newNode) this.currentNode = newNode;
|
||||
return newNode;
|
||||
}
|
||||
nextNode() {
|
||||
const nextNode = this._walkerStack[0].nextNode();
|
||||
if (nextNode) {
|
||||
const shadowRoot = nextNode.shadowRoot;
|
||||
if (shadowRoot) {
|
||||
var _this_filter;
|
||||
let nodeResult;
|
||||
if (typeof this.filter === 'function') nodeResult = this.filter(nextNode);
|
||||
else if ((_this_filter = this.filter) === null || _this_filter === void 0 ? void 0 : _this_filter.acceptNode) nodeResult = this.filter.acceptNode(nextNode);
|
||||
if (nodeResult === NodeFilter.FILTER_ACCEPT) {
|
||||
this.currentNode = nextNode;
|
||||
return nextNode;
|
||||
}
|
||||
// _acceptNode should have added new walker for this shadow,
|
||||
// go in recursively.
|
||||
let newNode = this.nextNode();
|
||||
if (newNode) this.currentNode = newNode;
|
||||
return newNode;
|
||||
}
|
||||
if (nextNode) this.currentNode = nextNode;
|
||||
return nextNode;
|
||||
} else {
|
||||
if (this._walkerStack.length > 1) {
|
||||
this._walkerStack.shift();
|
||||
let newNode = this.nextNode();
|
||||
if (newNode) this.currentNode = newNode;
|
||||
return newNode;
|
||||
} else return null;
|
||||
}
|
||||
}
|
||||
previousNode() {
|
||||
const currentWalker = this._walkerStack[0];
|
||||
if (currentWalker.currentNode === currentWalker.root) {
|
||||
if (this._currentSetFor.has(currentWalker)) {
|
||||
this._currentSetFor.delete(currentWalker);
|
||||
if (this._walkerStack.length > 1) {
|
||||
this._walkerStack.shift();
|
||||
let newNode = this.previousNode();
|
||||
if (newNode) this.currentNode = newNode;
|
||||
return newNode;
|
||||
} else return null;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
const previousNode = currentWalker.previousNode();
|
||||
if (previousNode) {
|
||||
const shadowRoot = previousNode.shadowRoot;
|
||||
if (shadowRoot) {
|
||||
var _this_filter;
|
||||
let nodeResult;
|
||||
if (typeof this.filter === 'function') nodeResult = this.filter(previousNode);
|
||||
else if ((_this_filter = this.filter) === null || _this_filter === void 0 ? void 0 : _this_filter.acceptNode) nodeResult = this.filter.acceptNode(previousNode);
|
||||
if (nodeResult === NodeFilter.FILTER_ACCEPT) {
|
||||
if (previousNode) this.currentNode = previousNode;
|
||||
return previousNode;
|
||||
}
|
||||
// _acceptNode should have added new walker for this shadow,
|
||||
// go in recursively.
|
||||
let newNode = this.lastChild();
|
||||
if (newNode) this.currentNode = newNode;
|
||||
return newNode;
|
||||
}
|
||||
if (previousNode) this.currentNode = previousNode;
|
||||
return previousNode;
|
||||
} else {
|
||||
if (this._walkerStack.length > 1) {
|
||||
this._walkerStack.shift();
|
||||
let newNode = this.previousNode();
|
||||
if (newNode) this.currentNode = newNode;
|
||||
return newNode;
|
||||
} else return null;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
*/ nextSibling() {
|
||||
// if (__DEV__) {
|
||||
// throw new Error("Method not implemented.");
|
||||
// }
|
||||
return null;
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
*/ previousSibling() {
|
||||
// if (__DEV__) {
|
||||
// throw new Error("Method not implemented.");
|
||||
// }
|
||||
return null;
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
*/ parentNode() {
|
||||
// if (__DEV__) {
|
||||
// throw new Error("Method not implemented.");
|
||||
// }
|
||||
return null;
|
||||
}
|
||||
constructor(doc, root, whatToShow, filter){
|
||||
this._walkerStack = [];
|
||||
this._currentSetFor = new Set();
|
||||
this._acceptNode = (node)=>{
|
||||
if (node.nodeType === Node.ELEMENT_NODE) {
|
||||
const shadowRoot = node.shadowRoot;
|
||||
if (shadowRoot) {
|
||||
const walker = this._doc.createTreeWalker(shadowRoot, this.whatToShow, {
|
||||
acceptNode: this._acceptNode
|
||||
});
|
||||
this._walkerStack.unshift(walker);
|
||||
return NodeFilter.FILTER_ACCEPT;
|
||||
} else {
|
||||
var _this_filter;
|
||||
if (typeof this.filter === 'function') return this.filter(node);
|
||||
else if ((_this_filter = this.filter) === null || _this_filter === void 0 ? void 0 : _this_filter.acceptNode) return this.filter.acceptNode(node);
|
||||
else if (this.filter === null) return NodeFilter.FILTER_ACCEPT;
|
||||
}
|
||||
}
|
||||
return NodeFilter.FILTER_SKIP;
|
||||
};
|
||||
this._doc = doc;
|
||||
this.root = root;
|
||||
this.filter = filter !== null && filter !== void 0 ? filter : null;
|
||||
this.whatToShow = whatToShow !== null && whatToShow !== void 0 ? whatToShow : NodeFilter.SHOW_ALL;
|
||||
this._currentNode = root;
|
||||
this._walkerStack.unshift(doc.createTreeWalker(root, whatToShow, this._acceptNode));
|
||||
const shadowRoot = root.shadowRoot;
|
||||
if (shadowRoot) {
|
||||
const walker = this._doc.createTreeWalker(shadowRoot, this.whatToShow, {
|
||||
acceptNode: this._acceptNode
|
||||
});
|
||||
this._walkerStack.unshift(walker);
|
||||
}
|
||||
}
|
||||
}
|
||||
function $dfc540311bf7f109$export$4d0f8be8b12a7ef6(doc, root, whatToShow, filter) {
|
||||
if ((0, $bJKXg$shadowDOM)()) return new $dfc540311bf7f109$export$63eb3ababa9c55c4(doc, root, whatToShow, filter);
|
||||
return doc.createTreeWalker(root, whatToShow, filter);
|
||||
}
|
||||
|
||||
|
||||
export {$dfc540311bf7f109$export$63eb3ababa9c55c4 as ShadowTreeWalker, $dfc540311bf7f109$export$4d0f8be8b12a7ef6 as createShadowTreeWalker};
|
||||
//# sourceMappingURL=ShadowTreeWalker.module.js.map
|
||||
1
node_modules/@react-aria/utils/dist/ShadowTreeWalker.module.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/ShadowTreeWalker.module.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
97
node_modules/@react-aria/utils/dist/animation.main.js
generated
vendored
Normal file
97
node_modules/@react-aria/utils/dist/animation.main.js
generated
vendored
Normal file
@@ -0,0 +1,97 @@
|
||||
var $78605a5d7424e31b$exports = require("./useLayoutEffect.main.js");
|
||||
var $bsryd$reactdom = require("react-dom");
|
||||
var $bsryd$react = require("react");
|
||||
|
||||
|
||||
function $parcel$export(e, n, v, s) {
|
||||
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
||||
}
|
||||
|
||||
$parcel$export(module.exports, "useEnterAnimation", () => $5bd06107f98811f5$export$6d3443f2c48bfc20);
|
||||
$parcel$export(module.exports, "useExitAnimation", () => $5bd06107f98811f5$export$45fda7c47f93fd48);
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
function $5bd06107f98811f5$export$6d3443f2c48bfc20(ref, isReady = true) {
|
||||
let [isEntering, setEntering] = (0, $bsryd$react.useState)(true);
|
||||
let isAnimationReady = isEntering && isReady;
|
||||
// There are two cases for entry animations:
|
||||
// 1. CSS @keyframes. The `animation` property is set during the isEntering state, and it is removed after the animation finishes.
|
||||
// 2. CSS transitions. The initial styles are applied during the isEntering state, and removed immediately, causing the transition to occur.
|
||||
//
|
||||
// In the second case, cancel any transitions that were triggered prior to the isEntering = false state (when the transition is supposed to start).
|
||||
// This can happen when isReady starts as false (e.g. popovers prior to placement calculation).
|
||||
(0, $78605a5d7424e31b$exports.useLayoutEffect)(()=>{
|
||||
if (isAnimationReady && ref.current && 'getAnimations' in ref.current) {
|
||||
for (let animation of ref.current.getAnimations())if (animation instanceof CSSTransition) animation.cancel();
|
||||
}
|
||||
}, [
|
||||
ref,
|
||||
isAnimationReady
|
||||
]);
|
||||
$5bd06107f98811f5$var$useAnimation(ref, isAnimationReady, (0, $bsryd$react.useCallback)(()=>setEntering(false), []));
|
||||
return isAnimationReady;
|
||||
}
|
||||
function $5bd06107f98811f5$export$45fda7c47f93fd48(ref, isOpen) {
|
||||
let [exitState, setExitState] = (0, $bsryd$react.useState)(isOpen ? 'open' : 'closed');
|
||||
switch(exitState){
|
||||
case 'open':
|
||||
// If isOpen becomes false, set the state to exiting.
|
||||
if (!isOpen) setExitState('exiting');
|
||||
break;
|
||||
case 'closed':
|
||||
case 'exiting':
|
||||
// If we are exiting and isOpen becomes true, the animation was interrupted.
|
||||
// Reset the state to open.
|
||||
if (isOpen) setExitState('open');
|
||||
break;
|
||||
}
|
||||
let isExiting = exitState === 'exiting';
|
||||
$5bd06107f98811f5$var$useAnimation(ref, isExiting, (0, $bsryd$react.useCallback)(()=>{
|
||||
// Set the state to closed, which will cause the element to be unmounted.
|
||||
setExitState((state)=>state === 'exiting' ? 'closed' : state);
|
||||
}, []));
|
||||
return isExiting;
|
||||
}
|
||||
function $5bd06107f98811f5$var$useAnimation(ref, isActive, onEnd) {
|
||||
(0, $78605a5d7424e31b$exports.useLayoutEffect)(()=>{
|
||||
if (isActive && ref.current) {
|
||||
if (!('getAnimations' in ref.current)) {
|
||||
// JSDOM
|
||||
onEnd();
|
||||
return;
|
||||
}
|
||||
let animations = ref.current.getAnimations();
|
||||
if (animations.length === 0) {
|
||||
onEnd();
|
||||
return;
|
||||
}
|
||||
let canceled = false;
|
||||
Promise.all(animations.map((a)=>a.finished)).then(()=>{
|
||||
if (!canceled) (0, $bsryd$reactdom.flushSync)(()=>{
|
||||
onEnd();
|
||||
});
|
||||
}).catch(()=>{});
|
||||
return ()=>{
|
||||
canceled = true;
|
||||
};
|
||||
}
|
||||
}, [
|
||||
ref,
|
||||
isActive,
|
||||
onEnd
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
//# sourceMappingURL=animation.main.js.map
|
||||
1
node_modules/@react-aria/utils/dist/animation.main.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/animation.main.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
91
node_modules/@react-aria/utils/dist/animation.mjs
generated
vendored
Normal file
91
node_modules/@react-aria/utils/dist/animation.mjs
generated
vendored
Normal file
@@ -0,0 +1,91 @@
|
||||
import {useLayoutEffect as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c} from "./useLayoutEffect.mjs";
|
||||
import {flushSync as $jJMAe$flushSync} from "react-dom";
|
||||
import {useState as $jJMAe$useState, useCallback as $jJMAe$useCallback} from "react";
|
||||
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
function $d3f049242431219c$export$6d3443f2c48bfc20(ref, isReady = true) {
|
||||
let [isEntering, setEntering] = (0, $jJMAe$useState)(true);
|
||||
let isAnimationReady = isEntering && isReady;
|
||||
// There are two cases for entry animations:
|
||||
// 1. CSS @keyframes. The `animation` property is set during the isEntering state, and it is removed after the animation finishes.
|
||||
// 2. CSS transitions. The initial styles are applied during the isEntering state, and removed immediately, causing the transition to occur.
|
||||
//
|
||||
// In the second case, cancel any transitions that were triggered prior to the isEntering = false state (when the transition is supposed to start).
|
||||
// This can happen when isReady starts as false (e.g. popovers prior to placement calculation).
|
||||
(0, $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
|
||||
if (isAnimationReady && ref.current && 'getAnimations' in ref.current) {
|
||||
for (let animation of ref.current.getAnimations())if (animation instanceof CSSTransition) animation.cancel();
|
||||
}
|
||||
}, [
|
||||
ref,
|
||||
isAnimationReady
|
||||
]);
|
||||
$d3f049242431219c$var$useAnimation(ref, isAnimationReady, (0, $jJMAe$useCallback)(()=>setEntering(false), []));
|
||||
return isAnimationReady;
|
||||
}
|
||||
function $d3f049242431219c$export$45fda7c47f93fd48(ref, isOpen) {
|
||||
let [exitState, setExitState] = (0, $jJMAe$useState)(isOpen ? 'open' : 'closed');
|
||||
switch(exitState){
|
||||
case 'open':
|
||||
// If isOpen becomes false, set the state to exiting.
|
||||
if (!isOpen) setExitState('exiting');
|
||||
break;
|
||||
case 'closed':
|
||||
case 'exiting':
|
||||
// If we are exiting and isOpen becomes true, the animation was interrupted.
|
||||
// Reset the state to open.
|
||||
if (isOpen) setExitState('open');
|
||||
break;
|
||||
}
|
||||
let isExiting = exitState === 'exiting';
|
||||
$d3f049242431219c$var$useAnimation(ref, isExiting, (0, $jJMAe$useCallback)(()=>{
|
||||
// Set the state to closed, which will cause the element to be unmounted.
|
||||
setExitState((state)=>state === 'exiting' ? 'closed' : state);
|
||||
}, []));
|
||||
return isExiting;
|
||||
}
|
||||
function $d3f049242431219c$var$useAnimation(ref, isActive, onEnd) {
|
||||
(0, $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
|
||||
if (isActive && ref.current) {
|
||||
if (!('getAnimations' in ref.current)) {
|
||||
// JSDOM
|
||||
onEnd();
|
||||
return;
|
||||
}
|
||||
let animations = ref.current.getAnimations();
|
||||
if (animations.length === 0) {
|
||||
onEnd();
|
||||
return;
|
||||
}
|
||||
let canceled = false;
|
||||
Promise.all(animations.map((a)=>a.finished)).then(()=>{
|
||||
if (!canceled) (0, $jJMAe$flushSync)(()=>{
|
||||
onEnd();
|
||||
});
|
||||
}).catch(()=>{});
|
||||
return ()=>{
|
||||
canceled = true;
|
||||
};
|
||||
}
|
||||
}, [
|
||||
ref,
|
||||
isActive,
|
||||
onEnd
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
export {$d3f049242431219c$export$6d3443f2c48bfc20 as useEnterAnimation, $d3f049242431219c$export$45fda7c47f93fd48 as useExitAnimation};
|
||||
//# sourceMappingURL=animation.module.js.map
|
||||
91
node_modules/@react-aria/utils/dist/animation.module.js
generated
vendored
Normal file
91
node_modules/@react-aria/utils/dist/animation.module.js
generated
vendored
Normal file
@@ -0,0 +1,91 @@
|
||||
import {useLayoutEffect as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c} from "./useLayoutEffect.module.js";
|
||||
import {flushSync as $jJMAe$flushSync} from "react-dom";
|
||||
import {useState as $jJMAe$useState, useCallback as $jJMAe$useCallback} from "react";
|
||||
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
function $d3f049242431219c$export$6d3443f2c48bfc20(ref, isReady = true) {
|
||||
let [isEntering, setEntering] = (0, $jJMAe$useState)(true);
|
||||
let isAnimationReady = isEntering && isReady;
|
||||
// There are two cases for entry animations:
|
||||
// 1. CSS @keyframes. The `animation` property is set during the isEntering state, and it is removed after the animation finishes.
|
||||
// 2. CSS transitions. The initial styles are applied during the isEntering state, and removed immediately, causing the transition to occur.
|
||||
//
|
||||
// In the second case, cancel any transitions that were triggered prior to the isEntering = false state (when the transition is supposed to start).
|
||||
// This can happen when isReady starts as false (e.g. popovers prior to placement calculation).
|
||||
(0, $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
|
||||
if (isAnimationReady && ref.current && 'getAnimations' in ref.current) {
|
||||
for (let animation of ref.current.getAnimations())if (animation instanceof CSSTransition) animation.cancel();
|
||||
}
|
||||
}, [
|
||||
ref,
|
||||
isAnimationReady
|
||||
]);
|
||||
$d3f049242431219c$var$useAnimation(ref, isAnimationReady, (0, $jJMAe$useCallback)(()=>setEntering(false), []));
|
||||
return isAnimationReady;
|
||||
}
|
||||
function $d3f049242431219c$export$45fda7c47f93fd48(ref, isOpen) {
|
||||
let [exitState, setExitState] = (0, $jJMAe$useState)(isOpen ? 'open' : 'closed');
|
||||
switch(exitState){
|
||||
case 'open':
|
||||
// If isOpen becomes false, set the state to exiting.
|
||||
if (!isOpen) setExitState('exiting');
|
||||
break;
|
||||
case 'closed':
|
||||
case 'exiting':
|
||||
// If we are exiting and isOpen becomes true, the animation was interrupted.
|
||||
// Reset the state to open.
|
||||
if (isOpen) setExitState('open');
|
||||
break;
|
||||
}
|
||||
let isExiting = exitState === 'exiting';
|
||||
$d3f049242431219c$var$useAnimation(ref, isExiting, (0, $jJMAe$useCallback)(()=>{
|
||||
// Set the state to closed, which will cause the element to be unmounted.
|
||||
setExitState((state)=>state === 'exiting' ? 'closed' : state);
|
||||
}, []));
|
||||
return isExiting;
|
||||
}
|
||||
function $d3f049242431219c$var$useAnimation(ref, isActive, onEnd) {
|
||||
(0, $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
|
||||
if (isActive && ref.current) {
|
||||
if (!('getAnimations' in ref.current)) {
|
||||
// JSDOM
|
||||
onEnd();
|
||||
return;
|
||||
}
|
||||
let animations = ref.current.getAnimations();
|
||||
if (animations.length === 0) {
|
||||
onEnd();
|
||||
return;
|
||||
}
|
||||
let canceled = false;
|
||||
Promise.all(animations.map((a)=>a.finished)).then(()=>{
|
||||
if (!canceled) (0, $jJMAe$flushSync)(()=>{
|
||||
onEnd();
|
||||
});
|
||||
}).catch(()=>{});
|
||||
return ()=>{
|
||||
canceled = true;
|
||||
};
|
||||
}
|
||||
}, [
|
||||
ref,
|
||||
isActive,
|
||||
onEnd
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
export {$d3f049242431219c$export$6d3443f2c48bfc20 as useEnterAnimation, $d3f049242431219c$export$45fda7c47f93fd48 as useExitAnimation};
|
||||
//# sourceMappingURL=animation.module.js.map
|
||||
1
node_modules/@react-aria/utils/dist/animation.module.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/animation.module.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
26
node_modules/@react-aria/utils/dist/chain.main.js
generated
vendored
Normal file
26
node_modules/@react-aria/utils/dist/chain.main.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
function $parcel$export(e, n, v, s) {
|
||||
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
||||
}
|
||||
|
||||
$parcel$export(module.exports, "chain", () => $1e2191638e54f613$export$e08e3b67e392101e);
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/ /**
|
||||
* Calls all functions in the order they were chained with the same arguments.
|
||||
*/ function $1e2191638e54f613$export$e08e3b67e392101e(...callbacks) {
|
||||
return (...args)=>{
|
||||
for (let callback of callbacks)if (typeof callback === 'function') callback(...args);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
//# sourceMappingURL=chain.main.js.map
|
||||
1
node_modules/@react-aria/utils/dist/chain.main.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/chain.main.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":";;;;;;AAAA;;;;;;;;;;CAUC,GAED;;CAEC,GACM,SAAS,0CAAM,GAAG,SAAgB;IACvC,OAAO,CAAC,GAAG;QACT,KAAK,IAAI,YAAY,UACnB,IAAI,OAAO,aAAa,YACtB,YAAY;IAGlB;AACF","sources":["packages/@react-aria/utils/src/chain.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/**\n * Calls all functions in the order they were chained with the same arguments.\n */\nexport function chain(...callbacks: any[]): (...args: any[]) => void {\n return (...args: any[]) => {\n for (let callback of callbacks) {\n if (typeof callback === 'function') {\n callback(...args);\n }\n }\n };\n}\n"],"names":[],"version":3,"file":"chain.main.js.map"}
|
||||
21
node_modules/@react-aria/utils/dist/chain.mjs
generated
vendored
Normal file
21
node_modules/@react-aria/utils/dist/chain.mjs
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/ /**
|
||||
* Calls all functions in the order they were chained with the same arguments.
|
||||
*/ function $ff5963eb1fccf552$export$e08e3b67e392101e(...callbacks) {
|
||||
return (...args)=>{
|
||||
for (let callback of callbacks)if (typeof callback === 'function') callback(...args);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
export {$ff5963eb1fccf552$export$e08e3b67e392101e as chain};
|
||||
//# sourceMappingURL=chain.module.js.map
|
||||
21
node_modules/@react-aria/utils/dist/chain.module.js
generated
vendored
Normal file
21
node_modules/@react-aria/utils/dist/chain.module.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/ /**
|
||||
* Calls all functions in the order they were chained with the same arguments.
|
||||
*/ function $ff5963eb1fccf552$export$e08e3b67e392101e(...callbacks) {
|
||||
return (...args)=>{
|
||||
for (let callback of callbacks)if (typeof callback === 'function') callback(...args);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
export {$ff5963eb1fccf552$export$e08e3b67e392101e as chain};
|
||||
//# sourceMappingURL=chain.module.js.map
|
||||
1
node_modules/@react-aria/utils/dist/chain.module.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/chain.module.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":"AAAA;;;;;;;;;;CAUC,GAED;;CAEC,GACM,SAAS,0CAAM,GAAG,SAAgB;IACvC,OAAO,CAAC,GAAG;QACT,KAAK,IAAI,YAAY,UACnB,IAAI,OAAO,aAAa,YACtB,YAAY;IAGlB;AACF","sources":["packages/@react-aria/utils/src/chain.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/**\n * Calls all functions in the order they were chained with the same arguments.\n */\nexport function chain(...callbacks: any[]): (...args: any[]) => void {\n return (...args: any[]) => {\n for (let callback of callbacks) {\n if (typeof callback === 'function') {\n callback(...args);\n }\n }\n };\n}\n"],"names":[],"version":3,"file":"chain.module.js.map"}
|
||||
23
node_modules/@react-aria/utils/dist/constants.main.js
generated
vendored
Normal file
23
node_modules/@react-aria/utils/dist/constants.main.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
function $parcel$export(e, n, v, s) {
|
||||
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
||||
}
|
||||
|
||||
$parcel$export(module.exports, "CLEAR_FOCUS_EVENT", () => $a0850d0add29d276$export$447a38995de2c711);
|
||||
$parcel$export(module.exports, "FOCUS_EVENT", () => $a0850d0add29d276$export$831c820ad60f9d12);
|
||||
/*
|
||||
* Copyright 2024 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/ // Custom event names for updating the autocomplete's aria-activedecendant.
|
||||
const $a0850d0add29d276$export$447a38995de2c711 = 'react-aria-clear-focus';
|
||||
const $a0850d0add29d276$export$831c820ad60f9d12 = 'react-aria-focus';
|
||||
|
||||
|
||||
//# sourceMappingURL=constants.main.js.map
|
||||
1
node_modules/@react-aria/utils/dist/constants.main.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/constants.main.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":";;;;;;;AAAA;;;;;;;;;;CAUC,GAED,2EAA2E;AACpE,MAAM,4CAAoB;AAC1B,MAAM,4CAAc","sources":["packages/@react-aria/utils/src/constants.ts"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n// Custom event names for updating the autocomplete's aria-activedecendant.\nexport const CLEAR_FOCUS_EVENT = 'react-aria-clear-focus';\nexport const FOCUS_EVENT = 'react-aria-focus';\n"],"names":[],"version":3,"file":"constants.main.js.map"}
|
||||
17
node_modules/@react-aria/utils/dist/constants.mjs
generated
vendored
Normal file
17
node_modules/@react-aria/utils/dist/constants.mjs
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright 2024 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/ // Custom event names for updating the autocomplete's aria-activedecendant.
|
||||
const $5671b20cf9b562b2$export$447a38995de2c711 = 'react-aria-clear-focus';
|
||||
const $5671b20cf9b562b2$export$831c820ad60f9d12 = 'react-aria-focus';
|
||||
|
||||
|
||||
export {$5671b20cf9b562b2$export$447a38995de2c711 as CLEAR_FOCUS_EVENT, $5671b20cf9b562b2$export$831c820ad60f9d12 as FOCUS_EVENT};
|
||||
//# sourceMappingURL=constants.module.js.map
|
||||
17
node_modules/@react-aria/utils/dist/constants.module.js
generated
vendored
Normal file
17
node_modules/@react-aria/utils/dist/constants.module.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright 2024 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/ // Custom event names for updating the autocomplete's aria-activedecendant.
|
||||
const $5671b20cf9b562b2$export$447a38995de2c711 = 'react-aria-clear-focus';
|
||||
const $5671b20cf9b562b2$export$831c820ad60f9d12 = 'react-aria-focus';
|
||||
|
||||
|
||||
export {$5671b20cf9b562b2$export$447a38995de2c711 as CLEAR_FOCUS_EVENT, $5671b20cf9b562b2$export$831c820ad60f9d12 as FOCUS_EVENT};
|
||||
//# sourceMappingURL=constants.module.js.map
|
||||
1
node_modules/@react-aria/utils/dist/constants.module.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/constants.module.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":"AAAA;;;;;;;;;;CAUC,GAED,2EAA2E;AACpE,MAAM,4CAAoB;AAC1B,MAAM,4CAAc","sources":["packages/@react-aria/utils/src/constants.ts"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n// Custom event names for updating the autocomplete's aria-activedecendant.\nexport const CLEAR_FOCUS_EVENT = 'react-aria-clear-focus';\nexport const FOCUS_EVENT = 'react-aria-focus';\n"],"names":[],"version":3,"file":"constants.module.js.map"}
|
||||
28
node_modules/@react-aria/utils/dist/domHelpers.main.js
generated
vendored
Normal file
28
node_modules/@react-aria/utils/dist/domHelpers.main.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
function $parcel$export(e, n, v, s) {
|
||||
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
||||
}
|
||||
|
||||
$parcel$export(module.exports, "getOwnerDocument", () => $aaa611146751592e$export$b204af158042fbac);
|
||||
$parcel$export(module.exports, "getOwnerWindow", () => $aaa611146751592e$export$f21a1ffae260145a);
|
||||
$parcel$export(module.exports, "isShadowRoot", () => $aaa611146751592e$export$af51f0f06c0f328a);
|
||||
const $aaa611146751592e$export$b204af158042fbac = (el)=>{
|
||||
var _el_ownerDocument;
|
||||
return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;
|
||||
};
|
||||
const $aaa611146751592e$export$f21a1ffae260145a = (el)=>{
|
||||
if (el && 'window' in el && el.window === el) return el;
|
||||
const doc = $aaa611146751592e$export$b204af158042fbac(el);
|
||||
return doc.defaultView || window;
|
||||
};
|
||||
/**
|
||||
* Type guard that checks if a value is a Node. Verifies the presence and type of the nodeType property.
|
||||
*/ function $aaa611146751592e$var$isNode(value) {
|
||||
return value !== null && typeof value === 'object' && 'nodeType' in value && typeof value.nodeType === 'number';
|
||||
}
|
||||
function $aaa611146751592e$export$af51f0f06c0f328a(node) {
|
||||
return $aaa611146751592e$var$isNode(node) && node.nodeType === Node.DOCUMENT_FRAGMENT_NODE && 'host' in node;
|
||||
}
|
||||
|
||||
|
||||
//# sourceMappingURL=domHelpers.main.js.map
|
||||
1
node_modules/@react-aria/utils/dist/domHelpers.main.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/domHelpers.main.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":";;;;;;;;AAAO,MAAM,4CAAmB,CAAC;QACxB;IAAP,OAAO,CAAA,oBAAA,eAAA,yBAAA,GAAI,aAAa,cAAjB,+BAAA,oBAAqB;AAC9B;AAEO,MAAM,4CAAiB,CAC5B;IAEA,IAAI,MAAM,YAAY,MAAM,GAAG,MAAM,KAAK,IACxC,OAAO;IAGT,MAAM,MAAM,0CAAiB;IAC7B,OAAO,IAAI,WAAW,IAAI;AAC5B;AAEA;;CAEC,GACD,SAAS,6BAAO,KAAc;IAC5B,OAAO,UAAU,QACf,OAAO,UAAU,YACjB,cAAc,SACd,OAAO,AAAC,MAAe,QAAQ,KAAK;AACxC;AAKO,SAAS,0CAAa,IAAiB;IAC5C,OAAO,6BAAO,SACZ,KAAK,QAAQ,KAAK,KAAK,sBAAsB,IAC7C,UAAU;AACd","sources":["packages/@react-aria/utils/src/domHelpers.ts"],"sourcesContent":["export const getOwnerDocument = (el: Element | null | undefined): Document => {\n return el?.ownerDocument ?? document;\n};\n\nexport const getOwnerWindow = (\n el: (Window & typeof global) | Element | null | undefined\n): Window & typeof global => {\n if (el && 'window' in el && el.window === el) {\n return el;\n }\n\n const doc = getOwnerDocument(el as Element | null | undefined);\n return doc.defaultView || window;\n};\n\n/**\n * Type guard that checks if a value is a Node. Verifies the presence and type of the nodeType property.\n */\nfunction isNode(value: unknown): value is Node {\n return value !== null &&\n typeof value === 'object' &&\n 'nodeType' in value &&\n typeof (value as Node).nodeType === 'number';\n}\n/**\n * Type guard that checks if a node is a ShadowRoot. Uses nodeType and host property checks to\n * distinguish ShadowRoot from other DocumentFragments.\n */\nexport function isShadowRoot(node: Node | null): node is ShadowRoot {\n return isNode(node) &&\n node.nodeType === Node.DOCUMENT_FRAGMENT_NODE &&\n 'host' in node;\n}\n"],"names":[],"version":3,"file":"domHelpers.main.js.map"}
|
||||
21
node_modules/@react-aria/utils/dist/domHelpers.mjs
generated
vendored
Normal file
21
node_modules/@react-aria/utils/dist/domHelpers.mjs
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
const $431fbd86ca7dc216$export$b204af158042fbac = (el)=>{
|
||||
var _el_ownerDocument;
|
||||
return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;
|
||||
};
|
||||
const $431fbd86ca7dc216$export$f21a1ffae260145a = (el)=>{
|
||||
if (el && 'window' in el && el.window === el) return el;
|
||||
const doc = $431fbd86ca7dc216$export$b204af158042fbac(el);
|
||||
return doc.defaultView || window;
|
||||
};
|
||||
/**
|
||||
* Type guard that checks if a value is a Node. Verifies the presence and type of the nodeType property.
|
||||
*/ function $431fbd86ca7dc216$var$isNode(value) {
|
||||
return value !== null && typeof value === 'object' && 'nodeType' in value && typeof value.nodeType === 'number';
|
||||
}
|
||||
function $431fbd86ca7dc216$export$af51f0f06c0f328a(node) {
|
||||
return $431fbd86ca7dc216$var$isNode(node) && node.nodeType === Node.DOCUMENT_FRAGMENT_NODE && 'host' in node;
|
||||
}
|
||||
|
||||
|
||||
export {$431fbd86ca7dc216$export$b204af158042fbac as getOwnerDocument, $431fbd86ca7dc216$export$f21a1ffae260145a as getOwnerWindow, $431fbd86ca7dc216$export$af51f0f06c0f328a as isShadowRoot};
|
||||
//# sourceMappingURL=domHelpers.module.js.map
|
||||
21
node_modules/@react-aria/utils/dist/domHelpers.module.js
generated
vendored
Normal file
21
node_modules/@react-aria/utils/dist/domHelpers.module.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
const $431fbd86ca7dc216$export$b204af158042fbac = (el)=>{
|
||||
var _el_ownerDocument;
|
||||
return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;
|
||||
};
|
||||
const $431fbd86ca7dc216$export$f21a1ffae260145a = (el)=>{
|
||||
if (el && 'window' in el && el.window === el) return el;
|
||||
const doc = $431fbd86ca7dc216$export$b204af158042fbac(el);
|
||||
return doc.defaultView || window;
|
||||
};
|
||||
/**
|
||||
* Type guard that checks if a value is a Node. Verifies the presence and type of the nodeType property.
|
||||
*/ function $431fbd86ca7dc216$var$isNode(value) {
|
||||
return value !== null && typeof value === 'object' && 'nodeType' in value && typeof value.nodeType === 'number';
|
||||
}
|
||||
function $431fbd86ca7dc216$export$af51f0f06c0f328a(node) {
|
||||
return $431fbd86ca7dc216$var$isNode(node) && node.nodeType === Node.DOCUMENT_FRAGMENT_NODE && 'host' in node;
|
||||
}
|
||||
|
||||
|
||||
export {$431fbd86ca7dc216$export$b204af158042fbac as getOwnerDocument, $431fbd86ca7dc216$export$f21a1ffae260145a as getOwnerWindow, $431fbd86ca7dc216$export$af51f0f06c0f328a as isShadowRoot};
|
||||
//# sourceMappingURL=domHelpers.module.js.map
|
||||
1
node_modules/@react-aria/utils/dist/domHelpers.module.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/domHelpers.module.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":"AAAO,MAAM,4CAAmB,CAAC;QACxB;IAAP,OAAO,CAAA,oBAAA,eAAA,yBAAA,GAAI,aAAa,cAAjB,+BAAA,oBAAqB;AAC9B;AAEO,MAAM,4CAAiB,CAC5B;IAEA,IAAI,MAAM,YAAY,MAAM,GAAG,MAAM,KAAK,IACxC,OAAO;IAGT,MAAM,MAAM,0CAAiB;IAC7B,OAAO,IAAI,WAAW,IAAI;AAC5B;AAEA;;CAEC,GACD,SAAS,6BAAO,KAAc;IAC5B,OAAO,UAAU,QACf,OAAO,UAAU,YACjB,cAAc,SACd,OAAO,AAAC,MAAe,QAAQ,KAAK;AACxC;AAKO,SAAS,0CAAa,IAAiB;IAC5C,OAAO,6BAAO,SACZ,KAAK,QAAQ,KAAK,KAAK,sBAAsB,IAC7C,UAAU;AACd","sources":["packages/@react-aria/utils/src/domHelpers.ts"],"sourcesContent":["export const getOwnerDocument = (el: Element | null | undefined): Document => {\n return el?.ownerDocument ?? document;\n};\n\nexport const getOwnerWindow = (\n el: (Window & typeof global) | Element | null | undefined\n): Window & typeof global => {\n if (el && 'window' in el && el.window === el) {\n return el;\n }\n\n const doc = getOwnerDocument(el as Element | null | undefined);\n return doc.defaultView || window;\n};\n\n/**\n * Type guard that checks if a value is a Node. Verifies the presence and type of the nodeType property.\n */\nfunction isNode(value: unknown): value is Node {\n return value !== null &&\n typeof value === 'object' &&\n 'nodeType' in value &&\n typeof (value as Node).nodeType === 'number';\n}\n/**\n * Type guard that checks if a node is a ShadowRoot. Uses nodeType and host property checks to\n * distinguish ShadowRoot from other DocumentFragments.\n */\nexport function isShadowRoot(node: Node | null): node is ShadowRoot {\n return isNode(node) &&\n node.nodeType === Node.DOCUMENT_FRAGMENT_NODE &&\n 'host' in node;\n}\n"],"names":[],"version":3,"file":"domHelpers.module.js.map"}
|
||||
45
node_modules/@react-aria/utils/dist/filterDOMProps.main.js
generated
vendored
Normal file
45
node_modules/@react-aria/utils/dist/filterDOMProps.main.js
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
|
||||
function $parcel$export(e, n, v, s) {
|
||||
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
||||
}
|
||||
|
||||
$parcel$export(module.exports, "filterDOMProps", () => $8d15d0e1797d4238$export$457c3d6518dd4c6f);
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/ const $8d15d0e1797d4238$var$DOMPropNames = new Set([
|
||||
'id'
|
||||
]);
|
||||
const $8d15d0e1797d4238$var$labelablePropNames = new Set([
|
||||
'aria-label',
|
||||
'aria-labelledby',
|
||||
'aria-describedby',
|
||||
'aria-details'
|
||||
]);
|
||||
// See LinkDOMProps in dom.d.ts.
|
||||
const $8d15d0e1797d4238$var$linkPropNames = new Set([
|
||||
'href',
|
||||
'hrefLang',
|
||||
'target',
|
||||
'rel',
|
||||
'download',
|
||||
'ping',
|
||||
'referrerPolicy'
|
||||
]);
|
||||
const $8d15d0e1797d4238$var$propRe = /^(data-.*)$/;
|
||||
function $8d15d0e1797d4238$export$457c3d6518dd4c6f(props, opts = {}) {
|
||||
let { labelable: labelable, isLink: isLink, propNames: propNames } = opts;
|
||||
let filteredProps = {};
|
||||
for(const prop in props)if (Object.prototype.hasOwnProperty.call(props, prop) && ($8d15d0e1797d4238$var$DOMPropNames.has(prop) || labelable && $8d15d0e1797d4238$var$labelablePropNames.has(prop) || isLink && $8d15d0e1797d4238$var$linkPropNames.has(prop) || (propNames === null || propNames === void 0 ? void 0 : propNames.has(prop)) || $8d15d0e1797d4238$var$propRe.test(prop))) filteredProps[prop] = props[prop];
|
||||
return filteredProps;
|
||||
}
|
||||
|
||||
|
||||
//# sourceMappingURL=filterDOMProps.main.js.map
|
||||
1
node_modules/@react-aria/utils/dist/filterDOMProps.main.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/filterDOMProps.main.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":";;;;;;AAAA;;;;;;;;;;CAUC,GAID,MAAM,qCAAe,IAAI,IAAI;IAC3B;CACD;AAED,MAAM,2CAAqB,IAAI,IAAI;IACjC;IACA;IACA;IACA;CACD;AAED,gCAAgC;AAChC,MAAM,sCAAgB,IAAI,IAAI;IAC5B;IACA;IACA;IACA;IACA;IACA;IACA;CACD;AAeD,MAAM,+BAAS;AAOR,SAAS,0CAAe,KAAkD,EAAE,OAAgB,CAAC,CAAC;IACnG,IAAI,aAAC,SAAS,UAAE,MAAM,aAAE,SAAS,EAAC,GAAG;IACrC,IAAI,gBAAgB,CAAC;IAErB,IAAK,MAAM,QAAQ,MACjB,IACE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,SAC1C,CAAA,mCAAa,GAAG,CAAC,SAChB,aAAa,yCAAmB,GAAG,CAAC,SACpC,UAAU,oCAAc,GAAG,CAAC,UAC7B,sBAAA,gCAAA,UAAW,GAAG,CAAC,UACf,6BAAO,IAAI,CAAC,KAAI,GAGlB,aAAa,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK;IAIrC,OAAO;AACT","sources":["packages/@react-aria/utils/src/filterDOMProps.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, LinkDOMProps} from '@react-types/shared';\n\nconst DOMPropNames = new Set([\n 'id'\n]);\n\nconst labelablePropNames = new Set([\n 'aria-label',\n 'aria-labelledby',\n 'aria-describedby',\n 'aria-details'\n]);\n\n// See LinkDOMProps in dom.d.ts.\nconst linkPropNames = new Set([\n 'href',\n 'hrefLang',\n 'target',\n 'rel',\n 'download',\n 'ping',\n 'referrerPolicy'\n]);\n\ninterface Options {\n /**\n * If labelling associated aria properties should be included in the filter.\n */\n labelable?: boolean,\n /** Whether the element is a link and should include DOM props for <a> elements. */\n isLink?: boolean,\n /**\n * A Set of other property names that should be included in the filter.\n */\n propNames?: Set<string>\n}\n\nconst propRe = /^(data-.*)$/;\n\n/**\n * Filters out all props that aren't valid DOM props or defined via override prop obj.\n * @param props - The component props to be filtered.\n * @param opts - Props to override.\n */\nexport function filterDOMProps(props: DOMProps & AriaLabelingProps & LinkDOMProps, opts: Options = {}): DOMProps & AriaLabelingProps {\n let {labelable, isLink, propNames} = opts;\n let filteredProps = {};\n\n for (const prop in props) {\n if (\n Object.prototype.hasOwnProperty.call(props, prop) && (\n DOMPropNames.has(prop) ||\n (labelable && labelablePropNames.has(prop)) ||\n (isLink && linkPropNames.has(prop)) ||\n propNames?.has(prop) ||\n propRe.test(prop)\n )\n ) {\n filteredProps[prop] = props[prop];\n }\n }\n\n return filteredProps;\n}\n"],"names":[],"version":3,"file":"filterDOMProps.main.js.map"}
|
||||
40
node_modules/@react-aria/utils/dist/filterDOMProps.mjs
generated
vendored
Normal file
40
node_modules/@react-aria/utils/dist/filterDOMProps.mjs
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/ const $65484d02dcb7eb3e$var$DOMPropNames = new Set([
|
||||
'id'
|
||||
]);
|
||||
const $65484d02dcb7eb3e$var$labelablePropNames = new Set([
|
||||
'aria-label',
|
||||
'aria-labelledby',
|
||||
'aria-describedby',
|
||||
'aria-details'
|
||||
]);
|
||||
// See LinkDOMProps in dom.d.ts.
|
||||
const $65484d02dcb7eb3e$var$linkPropNames = new Set([
|
||||
'href',
|
||||
'hrefLang',
|
||||
'target',
|
||||
'rel',
|
||||
'download',
|
||||
'ping',
|
||||
'referrerPolicy'
|
||||
]);
|
||||
const $65484d02dcb7eb3e$var$propRe = /^(data-.*)$/;
|
||||
function $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, opts = {}) {
|
||||
let { labelable: labelable, isLink: isLink, propNames: propNames } = opts;
|
||||
let filteredProps = {};
|
||||
for(const prop in props)if (Object.prototype.hasOwnProperty.call(props, prop) && ($65484d02dcb7eb3e$var$DOMPropNames.has(prop) || labelable && $65484d02dcb7eb3e$var$labelablePropNames.has(prop) || isLink && $65484d02dcb7eb3e$var$linkPropNames.has(prop) || (propNames === null || propNames === void 0 ? void 0 : propNames.has(prop)) || $65484d02dcb7eb3e$var$propRe.test(prop))) filteredProps[prop] = props[prop];
|
||||
return filteredProps;
|
||||
}
|
||||
|
||||
|
||||
export {$65484d02dcb7eb3e$export$457c3d6518dd4c6f as filterDOMProps};
|
||||
//# sourceMappingURL=filterDOMProps.module.js.map
|
||||
40
node_modules/@react-aria/utils/dist/filterDOMProps.module.js
generated
vendored
Normal file
40
node_modules/@react-aria/utils/dist/filterDOMProps.module.js
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/ const $65484d02dcb7eb3e$var$DOMPropNames = new Set([
|
||||
'id'
|
||||
]);
|
||||
const $65484d02dcb7eb3e$var$labelablePropNames = new Set([
|
||||
'aria-label',
|
||||
'aria-labelledby',
|
||||
'aria-describedby',
|
||||
'aria-details'
|
||||
]);
|
||||
// See LinkDOMProps in dom.d.ts.
|
||||
const $65484d02dcb7eb3e$var$linkPropNames = new Set([
|
||||
'href',
|
||||
'hrefLang',
|
||||
'target',
|
||||
'rel',
|
||||
'download',
|
||||
'ping',
|
||||
'referrerPolicy'
|
||||
]);
|
||||
const $65484d02dcb7eb3e$var$propRe = /^(data-.*)$/;
|
||||
function $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, opts = {}) {
|
||||
let { labelable: labelable, isLink: isLink, propNames: propNames } = opts;
|
||||
let filteredProps = {};
|
||||
for(const prop in props)if (Object.prototype.hasOwnProperty.call(props, prop) && ($65484d02dcb7eb3e$var$DOMPropNames.has(prop) || labelable && $65484d02dcb7eb3e$var$labelablePropNames.has(prop) || isLink && $65484d02dcb7eb3e$var$linkPropNames.has(prop) || (propNames === null || propNames === void 0 ? void 0 : propNames.has(prop)) || $65484d02dcb7eb3e$var$propRe.test(prop))) filteredProps[prop] = props[prop];
|
||||
return filteredProps;
|
||||
}
|
||||
|
||||
|
||||
export {$65484d02dcb7eb3e$export$457c3d6518dd4c6f as filterDOMProps};
|
||||
//# sourceMappingURL=filterDOMProps.module.js.map
|
||||
1
node_modules/@react-aria/utils/dist/filterDOMProps.module.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/filterDOMProps.module.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":"AAAA;;;;;;;;;;CAUC,GAID,MAAM,qCAAe,IAAI,IAAI;IAC3B;CACD;AAED,MAAM,2CAAqB,IAAI,IAAI;IACjC;IACA;IACA;IACA;CACD;AAED,gCAAgC;AAChC,MAAM,sCAAgB,IAAI,IAAI;IAC5B;IACA;IACA;IACA;IACA;IACA;IACA;CACD;AAeD,MAAM,+BAAS;AAOR,SAAS,0CAAe,KAAkD,EAAE,OAAgB,CAAC,CAAC;IACnG,IAAI,aAAC,SAAS,UAAE,MAAM,aAAE,SAAS,EAAC,GAAG;IACrC,IAAI,gBAAgB,CAAC;IAErB,IAAK,MAAM,QAAQ,MACjB,IACE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,SAC1C,CAAA,mCAAa,GAAG,CAAC,SAChB,aAAa,yCAAmB,GAAG,CAAC,SACpC,UAAU,oCAAc,GAAG,CAAC,UAC7B,sBAAA,gCAAA,UAAW,GAAG,CAAC,UACf,6BAAO,IAAI,CAAC,KAAI,GAGlB,aAAa,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK;IAIrC,OAAO;AACT","sources":["packages/@react-aria/utils/src/filterDOMProps.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, LinkDOMProps} from '@react-types/shared';\n\nconst DOMPropNames = new Set([\n 'id'\n]);\n\nconst labelablePropNames = new Set([\n 'aria-label',\n 'aria-labelledby',\n 'aria-describedby',\n 'aria-details'\n]);\n\n// See LinkDOMProps in dom.d.ts.\nconst linkPropNames = new Set([\n 'href',\n 'hrefLang',\n 'target',\n 'rel',\n 'download',\n 'ping',\n 'referrerPolicy'\n]);\n\ninterface Options {\n /**\n * If labelling associated aria properties should be included in the filter.\n */\n labelable?: boolean,\n /** Whether the element is a link and should include DOM props for <a> elements. */\n isLink?: boolean,\n /**\n * A Set of other property names that should be included in the filter.\n */\n propNames?: Set<string>\n}\n\nconst propRe = /^(data-.*)$/;\n\n/**\n * Filters out all props that aren't valid DOM props or defined via override prop obj.\n * @param props - The component props to be filtered.\n * @param opts - Props to override.\n */\nexport function filterDOMProps(props: DOMProps & AriaLabelingProps & LinkDOMProps, opts: Options = {}): DOMProps & AriaLabelingProps {\n let {labelable, isLink, propNames} = opts;\n let filteredProps = {};\n\n for (const prop in props) {\n if (\n Object.prototype.hasOwnProperty.call(props, prop) && (\n DOMPropNames.has(prop) ||\n (labelable && labelablePropNames.has(prop)) ||\n (isLink && linkPropNames.has(prop)) ||\n propNames?.has(prop) ||\n propRe.test(prop)\n )\n ) {\n filteredProps[prop] = props[prop];\n }\n }\n\n return filteredProps;\n}\n"],"names":[],"version":3,"file":"filterDOMProps.module.js.map"}
|
||||
72
node_modules/@react-aria/utils/dist/focusWithoutScrolling.main.js
generated
vendored
Normal file
72
node_modules/@react-aria/utils/dist/focusWithoutScrolling.main.js
generated
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
|
||||
function $parcel$export(e, n, v, s) {
|
||||
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
||||
}
|
||||
|
||||
$parcel$export(module.exports, "focusWithoutScrolling", () => $1117b6c0d4c4c164$export$de79e2c695e052f3);
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/ function $1117b6c0d4c4c164$export$de79e2c695e052f3(element) {
|
||||
if ($1117b6c0d4c4c164$var$supportsPreventScroll()) element.focus({
|
||||
preventScroll: true
|
||||
});
|
||||
else {
|
||||
let scrollableElements = $1117b6c0d4c4c164$var$getScrollableElements(element);
|
||||
element.focus();
|
||||
$1117b6c0d4c4c164$var$restoreScrollPosition(scrollableElements);
|
||||
}
|
||||
}
|
||||
let $1117b6c0d4c4c164$var$supportsPreventScrollCached = null;
|
||||
function $1117b6c0d4c4c164$var$supportsPreventScroll() {
|
||||
if ($1117b6c0d4c4c164$var$supportsPreventScrollCached == null) {
|
||||
$1117b6c0d4c4c164$var$supportsPreventScrollCached = false;
|
||||
try {
|
||||
let focusElem = document.createElement('div');
|
||||
focusElem.focus({
|
||||
get preventScroll () {
|
||||
$1117b6c0d4c4c164$var$supportsPreventScrollCached = true;
|
||||
return true;
|
||||
}
|
||||
});
|
||||
} catch {
|
||||
// Ignore
|
||||
}
|
||||
}
|
||||
return $1117b6c0d4c4c164$var$supportsPreventScrollCached;
|
||||
}
|
||||
function $1117b6c0d4c4c164$var$getScrollableElements(element) {
|
||||
let parent = element.parentNode;
|
||||
let scrollableElements = [];
|
||||
let rootScrollingElement = document.scrollingElement || document.documentElement;
|
||||
while(parent instanceof HTMLElement && parent !== rootScrollingElement){
|
||||
if (parent.offsetHeight < parent.scrollHeight || parent.offsetWidth < parent.scrollWidth) scrollableElements.push({
|
||||
element: parent,
|
||||
scrollTop: parent.scrollTop,
|
||||
scrollLeft: parent.scrollLeft
|
||||
});
|
||||
parent = parent.parentNode;
|
||||
}
|
||||
if (rootScrollingElement instanceof HTMLElement) scrollableElements.push({
|
||||
element: rootScrollingElement,
|
||||
scrollTop: rootScrollingElement.scrollTop,
|
||||
scrollLeft: rootScrollingElement.scrollLeft
|
||||
});
|
||||
return scrollableElements;
|
||||
}
|
||||
function $1117b6c0d4c4c164$var$restoreScrollPosition(scrollableElements) {
|
||||
for (let { element: element, scrollTop: scrollTop, scrollLeft: scrollLeft } of scrollableElements){
|
||||
element.scrollTop = scrollTop;
|
||||
element.scrollLeft = scrollLeft;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//# sourceMappingURL=focusWithoutScrolling.main.js.map
|
||||
1
node_modules/@react-aria/utils/dist/focusWithoutScrolling.main.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/focusWithoutScrolling.main.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":";;;;;;AAAA;;;;;;;;;;CAUC,GAoBM,SAAS,0CAAsB,OAAyB;IAC7D,IAAI,+CACF,QAAQ,KAAK,CAAC;QAAC,eAAe;IAAI;SAC7B;QACL,IAAI,qBAAqB,4CAAsB;QAC/C,QAAQ,KAAK;QACb,4CAAsB;IACxB;AACF;AAEA,IAAI,oDAA8C;AAClD,SAAS;IACP,IAAI,qDAA+B,MAAM;QACvC,oDAA8B;QAC9B,IAAI;YACF,IAAI,YAAY,SAAS,aAAa,CAAC;YACvC,UAAU,KAAK,CAAC;gBACd,IAAI,iBAAgB;oBAClB,oDAA8B;oBAC9B,OAAO;gBACT;YACF;QACF,EAAE,OAAM;QACN,SAAS;QACX;IACF;IAEA,OAAO;AACT;AAEA,SAAS,4CAAsB,OAAyB;IACtD,IAAI,SAAS,QAAQ,UAAU;IAC/B,IAAI,qBAA0C,EAAE;IAChD,IAAI,uBAAuB,SAAS,gBAAgB,IAAI,SAAS,eAAe;IAEhF,MAAO,kBAAkB,eAAe,WAAW,qBAAsB;QACvE,IACE,OAAO,YAAY,GAAG,OAAO,YAAY,IACzC,OAAO,WAAW,GAAG,OAAO,WAAW,EAEvC,mBAAmB,IAAI,CAAC;YACtB,SAAS;YACT,WAAW,OAAO,SAAS;YAC3B,YAAY,OAAO,UAAU;QAC/B;QAEF,SAAS,OAAO,UAAU;IAC5B;IAEA,IAAI,gCAAgC,aAClC,mBAAmB,IAAI,CAAC;QACtB,SAAS;QACT,WAAW,qBAAqB,SAAS;QACzC,YAAY,qBAAqB,UAAU;IAC7C;IAGF,OAAO;AACT;AAEA,SAAS,4CAAsB,kBAAuC;IACpE,KAAK,IAAI,WAAC,OAAO,aAAE,SAAS,cAAE,UAAU,EAAC,IAAI,mBAAoB;QAC/D,QAAQ,SAAS,GAAG;QACpB,QAAQ,UAAU,GAAG;IACvB;AACF","sources":["packages/@react-aria/utils/src/focusWithoutScrolling.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {FocusableElement} from '@react-types/shared';\n\n// This is a polyfill for element.focus({preventScroll: true});\n// Currently necessary for Safari and old Edge:\n// https://caniuse.com/#feat=mdn-api_htmlelement_focus_preventscroll_option\n// See https://bugs.webkit.org/show_bug.cgi?id=178583\n//\n\n// Original licensing for the following methods can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/calvellido/focus-options-polyfill\n\ninterface ScrollableElement {\n element: HTMLElement,\n scrollTop: number,\n scrollLeft: number\n}\n\nexport function focusWithoutScrolling(element: FocusableElement): void {\n if (supportsPreventScroll()) {\n element.focus({preventScroll: true});\n } else {\n let scrollableElements = getScrollableElements(element);\n element.focus();\n restoreScrollPosition(scrollableElements);\n }\n}\n\nlet supportsPreventScrollCached: boolean | null = null;\nfunction supportsPreventScroll() {\n if (supportsPreventScrollCached == null) {\n supportsPreventScrollCached = false;\n try {\n let focusElem = document.createElement('div');\n focusElem.focus({\n get preventScroll() {\n supportsPreventScrollCached = true;\n return true;\n }\n });\n } catch {\n // Ignore\n }\n }\n\n return supportsPreventScrollCached;\n}\n\nfunction getScrollableElements(element: FocusableElement): ScrollableElement[] {\n let parent = element.parentNode;\n let scrollableElements: ScrollableElement[] = [];\n let rootScrollingElement = document.scrollingElement || document.documentElement;\n\n while (parent instanceof HTMLElement && parent !== rootScrollingElement) {\n if (\n parent.offsetHeight < parent.scrollHeight ||\n parent.offsetWidth < parent.scrollWidth\n ) {\n scrollableElements.push({\n element: parent,\n scrollTop: parent.scrollTop,\n scrollLeft: parent.scrollLeft\n });\n }\n parent = parent.parentNode;\n }\n\n if (rootScrollingElement instanceof HTMLElement) {\n scrollableElements.push({\n element: rootScrollingElement,\n scrollTop: rootScrollingElement.scrollTop,\n scrollLeft: rootScrollingElement.scrollLeft\n });\n }\n\n return scrollableElements;\n}\n\nfunction restoreScrollPosition(scrollableElements: ScrollableElement[]) {\n for (let {element, scrollTop, scrollLeft} of scrollableElements) {\n element.scrollTop = scrollTop;\n element.scrollLeft = scrollLeft;\n }\n}\n"],"names":[],"version":3,"file":"focusWithoutScrolling.main.js.map"}
|
||||
67
node_modules/@react-aria/utils/dist/focusWithoutScrolling.mjs
generated
vendored
Normal file
67
node_modules/@react-aria/utils/dist/focusWithoutScrolling.mjs
generated
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/ function $7215afc6de606d6b$export$de79e2c695e052f3(element) {
|
||||
if ($7215afc6de606d6b$var$supportsPreventScroll()) element.focus({
|
||||
preventScroll: true
|
||||
});
|
||||
else {
|
||||
let scrollableElements = $7215afc6de606d6b$var$getScrollableElements(element);
|
||||
element.focus();
|
||||
$7215afc6de606d6b$var$restoreScrollPosition(scrollableElements);
|
||||
}
|
||||
}
|
||||
let $7215afc6de606d6b$var$supportsPreventScrollCached = null;
|
||||
function $7215afc6de606d6b$var$supportsPreventScroll() {
|
||||
if ($7215afc6de606d6b$var$supportsPreventScrollCached == null) {
|
||||
$7215afc6de606d6b$var$supportsPreventScrollCached = false;
|
||||
try {
|
||||
let focusElem = document.createElement('div');
|
||||
focusElem.focus({
|
||||
get preventScroll () {
|
||||
$7215afc6de606d6b$var$supportsPreventScrollCached = true;
|
||||
return true;
|
||||
}
|
||||
});
|
||||
} catch {
|
||||
// Ignore
|
||||
}
|
||||
}
|
||||
return $7215afc6de606d6b$var$supportsPreventScrollCached;
|
||||
}
|
||||
function $7215afc6de606d6b$var$getScrollableElements(element) {
|
||||
let parent = element.parentNode;
|
||||
let scrollableElements = [];
|
||||
let rootScrollingElement = document.scrollingElement || document.documentElement;
|
||||
while(parent instanceof HTMLElement && parent !== rootScrollingElement){
|
||||
if (parent.offsetHeight < parent.scrollHeight || parent.offsetWidth < parent.scrollWidth) scrollableElements.push({
|
||||
element: parent,
|
||||
scrollTop: parent.scrollTop,
|
||||
scrollLeft: parent.scrollLeft
|
||||
});
|
||||
parent = parent.parentNode;
|
||||
}
|
||||
if (rootScrollingElement instanceof HTMLElement) scrollableElements.push({
|
||||
element: rootScrollingElement,
|
||||
scrollTop: rootScrollingElement.scrollTop,
|
||||
scrollLeft: rootScrollingElement.scrollLeft
|
||||
});
|
||||
return scrollableElements;
|
||||
}
|
||||
function $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements) {
|
||||
for (let { element: element, scrollTop: scrollTop, scrollLeft: scrollLeft } of scrollableElements){
|
||||
element.scrollTop = scrollTop;
|
||||
element.scrollLeft = scrollLeft;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export {$7215afc6de606d6b$export$de79e2c695e052f3 as focusWithoutScrolling};
|
||||
//# sourceMappingURL=focusWithoutScrolling.module.js.map
|
||||
67
node_modules/@react-aria/utils/dist/focusWithoutScrolling.module.js
generated
vendored
Normal file
67
node_modules/@react-aria/utils/dist/focusWithoutScrolling.module.js
generated
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/ function $7215afc6de606d6b$export$de79e2c695e052f3(element) {
|
||||
if ($7215afc6de606d6b$var$supportsPreventScroll()) element.focus({
|
||||
preventScroll: true
|
||||
});
|
||||
else {
|
||||
let scrollableElements = $7215afc6de606d6b$var$getScrollableElements(element);
|
||||
element.focus();
|
||||
$7215afc6de606d6b$var$restoreScrollPosition(scrollableElements);
|
||||
}
|
||||
}
|
||||
let $7215afc6de606d6b$var$supportsPreventScrollCached = null;
|
||||
function $7215afc6de606d6b$var$supportsPreventScroll() {
|
||||
if ($7215afc6de606d6b$var$supportsPreventScrollCached == null) {
|
||||
$7215afc6de606d6b$var$supportsPreventScrollCached = false;
|
||||
try {
|
||||
let focusElem = document.createElement('div');
|
||||
focusElem.focus({
|
||||
get preventScroll () {
|
||||
$7215afc6de606d6b$var$supportsPreventScrollCached = true;
|
||||
return true;
|
||||
}
|
||||
});
|
||||
} catch {
|
||||
// Ignore
|
||||
}
|
||||
}
|
||||
return $7215afc6de606d6b$var$supportsPreventScrollCached;
|
||||
}
|
||||
function $7215afc6de606d6b$var$getScrollableElements(element) {
|
||||
let parent = element.parentNode;
|
||||
let scrollableElements = [];
|
||||
let rootScrollingElement = document.scrollingElement || document.documentElement;
|
||||
while(parent instanceof HTMLElement && parent !== rootScrollingElement){
|
||||
if (parent.offsetHeight < parent.scrollHeight || parent.offsetWidth < parent.scrollWidth) scrollableElements.push({
|
||||
element: parent,
|
||||
scrollTop: parent.scrollTop,
|
||||
scrollLeft: parent.scrollLeft
|
||||
});
|
||||
parent = parent.parentNode;
|
||||
}
|
||||
if (rootScrollingElement instanceof HTMLElement) scrollableElements.push({
|
||||
element: rootScrollingElement,
|
||||
scrollTop: rootScrollingElement.scrollTop,
|
||||
scrollLeft: rootScrollingElement.scrollLeft
|
||||
});
|
||||
return scrollableElements;
|
||||
}
|
||||
function $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements) {
|
||||
for (let { element: element, scrollTop: scrollTop, scrollLeft: scrollLeft } of scrollableElements){
|
||||
element.scrollTop = scrollTop;
|
||||
element.scrollLeft = scrollLeft;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export {$7215afc6de606d6b$export$de79e2c695e052f3 as focusWithoutScrolling};
|
||||
//# sourceMappingURL=focusWithoutScrolling.module.js.map
|
||||
1
node_modules/@react-aria/utils/dist/focusWithoutScrolling.module.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/focusWithoutScrolling.module.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":"AAAA;;;;;;;;;;CAUC,GAoBM,SAAS,0CAAsB,OAAyB;IAC7D,IAAI,+CACF,QAAQ,KAAK,CAAC;QAAC,eAAe;IAAI;SAC7B;QACL,IAAI,qBAAqB,4CAAsB;QAC/C,QAAQ,KAAK;QACb,4CAAsB;IACxB;AACF;AAEA,IAAI,oDAA8C;AAClD,SAAS;IACP,IAAI,qDAA+B,MAAM;QACvC,oDAA8B;QAC9B,IAAI;YACF,IAAI,YAAY,SAAS,aAAa,CAAC;YACvC,UAAU,KAAK,CAAC;gBACd,IAAI,iBAAgB;oBAClB,oDAA8B;oBAC9B,OAAO;gBACT;YACF;QACF,EAAE,OAAM;QACN,SAAS;QACX;IACF;IAEA,OAAO;AACT;AAEA,SAAS,4CAAsB,OAAyB;IACtD,IAAI,SAAS,QAAQ,UAAU;IAC/B,IAAI,qBAA0C,EAAE;IAChD,IAAI,uBAAuB,SAAS,gBAAgB,IAAI,SAAS,eAAe;IAEhF,MAAO,kBAAkB,eAAe,WAAW,qBAAsB;QACvE,IACE,OAAO,YAAY,GAAG,OAAO,YAAY,IACzC,OAAO,WAAW,GAAG,OAAO,WAAW,EAEvC,mBAAmB,IAAI,CAAC;YACtB,SAAS;YACT,WAAW,OAAO,SAAS;YAC3B,YAAY,OAAO,UAAU;QAC/B;QAEF,SAAS,OAAO,UAAU;IAC5B;IAEA,IAAI,gCAAgC,aAClC,mBAAmB,IAAI,CAAC;QACtB,SAAS;QACT,WAAW,qBAAqB,SAAS;QACzC,YAAY,qBAAqB,UAAU;IAC7C;IAGF,OAAO;AACT;AAEA,SAAS,4CAAsB,kBAAuC;IACpE,KAAK,IAAI,WAAC,OAAO,aAAE,SAAS,cAAE,UAAU,EAAC,IAAI,mBAAoB;QAC/D,QAAQ,SAAS,GAAG;QACpB,QAAQ,UAAU,GAAG;IACvB;AACF","sources":["packages/@react-aria/utils/src/focusWithoutScrolling.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {FocusableElement} from '@react-types/shared';\n\n// This is a polyfill for element.focus({preventScroll: true});\n// Currently necessary for Safari and old Edge:\n// https://caniuse.com/#feat=mdn-api_htmlelement_focus_preventscroll_option\n// See https://bugs.webkit.org/show_bug.cgi?id=178583\n//\n\n// Original licensing for the following methods can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/calvellido/focus-options-polyfill\n\ninterface ScrollableElement {\n element: HTMLElement,\n scrollTop: number,\n scrollLeft: number\n}\n\nexport function focusWithoutScrolling(element: FocusableElement): void {\n if (supportsPreventScroll()) {\n element.focus({preventScroll: true});\n } else {\n let scrollableElements = getScrollableElements(element);\n element.focus();\n restoreScrollPosition(scrollableElements);\n }\n}\n\nlet supportsPreventScrollCached: boolean | null = null;\nfunction supportsPreventScroll() {\n if (supportsPreventScrollCached == null) {\n supportsPreventScrollCached = false;\n try {\n let focusElem = document.createElement('div');\n focusElem.focus({\n get preventScroll() {\n supportsPreventScrollCached = true;\n return true;\n }\n });\n } catch {\n // Ignore\n }\n }\n\n return supportsPreventScrollCached;\n}\n\nfunction getScrollableElements(element: FocusableElement): ScrollableElement[] {\n let parent = element.parentNode;\n let scrollableElements: ScrollableElement[] = [];\n let rootScrollingElement = document.scrollingElement || document.documentElement;\n\n while (parent instanceof HTMLElement && parent !== rootScrollingElement) {\n if (\n parent.offsetHeight < parent.scrollHeight ||\n parent.offsetWidth < parent.scrollWidth\n ) {\n scrollableElements.push({\n element: parent,\n scrollTop: parent.scrollTop,\n scrollLeft: parent.scrollLeft\n });\n }\n parent = parent.parentNode;\n }\n\n if (rootScrollingElement instanceof HTMLElement) {\n scrollableElements.push({\n element: rootScrollingElement,\n scrollTop: rootScrollingElement.scrollTop,\n scrollLeft: rootScrollingElement.scrollLeft\n });\n }\n\n return scrollableElements;\n}\n\nfunction restoreScrollPosition(scrollableElements: ScrollableElement[]) {\n for (let {element, scrollTop, scrollLeft} of scrollableElements) {\n element.scrollTop = scrollTop;\n element.scrollLeft = scrollLeft;\n }\n}\n"],"names":[],"version":3,"file":"focusWithoutScrolling.module.js.map"}
|
||||
24
node_modules/@react-aria/utils/dist/getOffset.main.js
generated
vendored
Normal file
24
node_modules/@react-aria/utils/dist/getOffset.main.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
function $parcel$export(e, n, v, s) {
|
||||
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
||||
}
|
||||
|
||||
$parcel$export(module.exports, "getOffset", () => $16ec41ef3e36c19c$export$622cea445a1c5b7d);
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/ function $16ec41ef3e36c19c$export$622cea445a1c5b7d(element, reverse, orientation = 'horizontal') {
|
||||
let rect = element.getBoundingClientRect();
|
||||
if (reverse) return orientation === 'horizontal' ? rect.right : rect.bottom;
|
||||
return orientation === 'horizontal' ? rect.left : rect.top;
|
||||
}
|
||||
|
||||
|
||||
//# sourceMappingURL=getOffset.main.js.map
|
||||
1
node_modules/@react-aria/utils/dist/getOffset.main.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/getOffset.main.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":";;;;;;AAAA;;;;;;;;;;CAUC,GAIM,SAAS,0CAAU,OAAoB,EAAE,OAAiB,EAAE,cAA2B,YAAY;IACxG,IAAI,OAAO,QAAQ,qBAAqB;IACxC,IAAI,SACF,OAAO,gBAAgB,eAAe,KAAK,KAAK,GAAG,KAAK,MAAM;IAEhE,OAAO,gBAAgB,eAAe,KAAK,IAAI,GAAG,KAAK,GAAG;AAC5D","sources":["packages/@react-aria/utils/src/getOffset.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {Orientation} from '@react-types/shared';\n\nexport function getOffset(element: HTMLElement, reverse?: boolean, orientation: Orientation = 'horizontal'): number {\n let rect = element.getBoundingClientRect();\n if (reverse) {\n return orientation === 'horizontal' ? rect.right : rect.bottom;\n }\n return orientation === 'horizontal' ? rect.left : rect.top;\n}\n"],"names":[],"version":3,"file":"getOffset.main.js.map"}
|
||||
19
node_modules/@react-aria/utils/dist/getOffset.mjs
generated
vendored
Normal file
19
node_modules/@react-aria/utils/dist/getOffset.mjs
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/ function $ab71dadb03a6fb2e$export$622cea445a1c5b7d(element, reverse, orientation = 'horizontal') {
|
||||
let rect = element.getBoundingClientRect();
|
||||
if (reverse) return orientation === 'horizontal' ? rect.right : rect.bottom;
|
||||
return orientation === 'horizontal' ? rect.left : rect.top;
|
||||
}
|
||||
|
||||
|
||||
export {$ab71dadb03a6fb2e$export$622cea445a1c5b7d as getOffset};
|
||||
//# sourceMappingURL=getOffset.module.js.map
|
||||
19
node_modules/@react-aria/utils/dist/getOffset.module.js
generated
vendored
Normal file
19
node_modules/@react-aria/utils/dist/getOffset.module.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/ function $ab71dadb03a6fb2e$export$622cea445a1c5b7d(element, reverse, orientation = 'horizontal') {
|
||||
let rect = element.getBoundingClientRect();
|
||||
if (reverse) return orientation === 'horizontal' ? rect.right : rect.bottom;
|
||||
return orientation === 'horizontal' ? rect.left : rect.top;
|
||||
}
|
||||
|
||||
|
||||
export {$ab71dadb03a6fb2e$export$622cea445a1c5b7d as getOffset};
|
||||
//# sourceMappingURL=getOffset.module.js.map
|
||||
1
node_modules/@react-aria/utils/dist/getOffset.module.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/getOffset.module.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":"AAAA;;;;;;;;;;CAUC,GAIM,SAAS,0CAAU,OAAoB,EAAE,OAAiB,EAAE,cAA2B,YAAY;IACxG,IAAI,OAAO,QAAQ,qBAAqB;IACxC,IAAI,SACF,OAAO,gBAAgB,eAAe,KAAK,KAAK,GAAG,KAAK,MAAM;IAEhE,OAAO,gBAAgB,eAAe,KAAK,IAAI,GAAG,KAAK,GAAG;AAC5D","sources":["packages/@react-aria/utils/src/getOffset.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {Orientation} from '@react-types/shared';\n\nexport function getOffset(element: HTMLElement, reverse?: boolean, orientation: Orientation = 'horizontal'): number {\n let rect = element.getBoundingClientRect();\n if (reverse) {\n return orientation === 'horizontal' ? rect.right : rect.bottom;\n }\n return orientation === 'horizontal' ? rect.left : rect.top;\n}\n"],"names":[],"version":3,"file":"getOffset.module.js.map"}
|
||||
28
node_modules/@react-aria/utils/dist/getScrollParent.main.js
generated
vendored
Normal file
28
node_modules/@react-aria/utils/dist/getScrollParent.main.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
var $9a54e9cd5db23b5d$exports = require("./isScrollable.main.js");
|
||||
|
||||
|
||||
function $parcel$export(e, n, v, s) {
|
||||
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
||||
}
|
||||
|
||||
$parcel$export(module.exports, "getScrollParent", () => $d796e7157ac96470$export$cfa2225e87938781);
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
function $d796e7157ac96470$export$cfa2225e87938781(node, checkForOverflow) {
|
||||
let scrollableNode = node;
|
||||
if ((0, $9a54e9cd5db23b5d$exports.isScrollable)(scrollableNode, checkForOverflow)) scrollableNode = scrollableNode.parentElement;
|
||||
while(scrollableNode && !(0, $9a54e9cd5db23b5d$exports.isScrollable)(scrollableNode, checkForOverflow))scrollableNode = scrollableNode.parentElement;
|
||||
return scrollableNode || document.scrollingElement || document.documentElement;
|
||||
}
|
||||
|
||||
|
||||
//# sourceMappingURL=getScrollParent.main.js.map
|
||||
1
node_modules/@react-aria/utils/dist/getScrollParent.main.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/getScrollParent.main.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC;AAIM,SAAS,0CAAgB,IAAa,EAAE,gBAA0B;IACvE,IAAI,iBAAiC;IACrC,IAAI,CAAA,GAAA,sCAAW,EAAE,gBAAgB,mBAC/B,iBAAiB,eAAe,aAAa;IAG/C,MAAO,kBAAkB,CAAC,CAAA,GAAA,sCAAW,EAAE,gBAAgB,kBACrD,iBAAiB,eAAe,aAAa;IAG/C,OAAO,kBAAkB,SAAS,gBAAgB,IAAI,SAAS,eAAe;AAChF","sources":["packages/@react-aria/utils/src/getScrollParent.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {isScrollable} from './isScrollable';\n\nexport function getScrollParent(node: Element, checkForOverflow?: boolean): Element {\n let scrollableNode: Element | null = node;\n if (isScrollable(scrollableNode, checkForOverflow)) {\n scrollableNode = scrollableNode.parentElement;\n }\n\n while (scrollableNode && !isScrollable(scrollableNode, checkForOverflow)) {\n scrollableNode = scrollableNode.parentElement;\n }\n\n return scrollableNode || document.scrollingElement || document.documentElement;\n}\n\n"],"names":[],"version":3,"file":"getScrollParent.main.js.map"}
|
||||
23
node_modules/@react-aria/utils/dist/getScrollParent.mjs
generated
vendored
Normal file
23
node_modules/@react-aria/utils/dist/getScrollParent.mjs
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import {isScrollable as $cc38e7bd3fc7b213$export$2bb74740c4e19def} from "./isScrollable.mjs";
|
||||
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
function $62d8ded9296f3872$export$cfa2225e87938781(node, checkForOverflow) {
|
||||
let scrollableNode = node;
|
||||
if ((0, $cc38e7bd3fc7b213$export$2bb74740c4e19def)(scrollableNode, checkForOverflow)) scrollableNode = scrollableNode.parentElement;
|
||||
while(scrollableNode && !(0, $cc38e7bd3fc7b213$export$2bb74740c4e19def)(scrollableNode, checkForOverflow))scrollableNode = scrollableNode.parentElement;
|
||||
return scrollableNode || document.scrollingElement || document.documentElement;
|
||||
}
|
||||
|
||||
|
||||
export {$62d8ded9296f3872$export$cfa2225e87938781 as getScrollParent};
|
||||
//# sourceMappingURL=getScrollParent.module.js.map
|
||||
23
node_modules/@react-aria/utils/dist/getScrollParent.module.js
generated
vendored
Normal file
23
node_modules/@react-aria/utils/dist/getScrollParent.module.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import {isScrollable as $cc38e7bd3fc7b213$export$2bb74740c4e19def} from "./isScrollable.module.js";
|
||||
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
function $62d8ded9296f3872$export$cfa2225e87938781(node, checkForOverflow) {
|
||||
let scrollableNode = node;
|
||||
if ((0, $cc38e7bd3fc7b213$export$2bb74740c4e19def)(scrollableNode, checkForOverflow)) scrollableNode = scrollableNode.parentElement;
|
||||
while(scrollableNode && !(0, $cc38e7bd3fc7b213$export$2bb74740c4e19def)(scrollableNode, checkForOverflow))scrollableNode = scrollableNode.parentElement;
|
||||
return scrollableNode || document.scrollingElement || document.documentElement;
|
||||
}
|
||||
|
||||
|
||||
export {$62d8ded9296f3872$export$cfa2225e87938781 as getScrollParent};
|
||||
//# sourceMappingURL=getScrollParent.module.js.map
|
||||
1
node_modules/@react-aria/utils/dist/getScrollParent.module.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/getScrollParent.module.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":";;AAAA;;;;;;;;;;CAUC;AAIM,SAAS,0CAAgB,IAAa,EAAE,gBAA0B;IACvE,IAAI,iBAAiC;IACrC,IAAI,CAAA,GAAA,yCAAW,EAAE,gBAAgB,mBAC/B,iBAAiB,eAAe,aAAa;IAG/C,MAAO,kBAAkB,CAAC,CAAA,GAAA,yCAAW,EAAE,gBAAgB,kBACrD,iBAAiB,eAAe,aAAa;IAG/C,OAAO,kBAAkB,SAAS,gBAAgB,IAAI,SAAS,eAAe;AAChF","sources":["packages/@react-aria/utils/src/getScrollParent.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {isScrollable} from './isScrollable';\n\nexport function getScrollParent(node: Element, checkForOverflow?: boolean): Element {\n let scrollableNode: Element | null = node;\n if (isScrollable(scrollableNode, checkForOverflow)) {\n scrollableNode = scrollableNode.parentElement;\n }\n\n while (scrollableNode && !isScrollable(scrollableNode, checkForOverflow)) {\n scrollableNode = scrollableNode.parentElement;\n }\n\n return scrollableNode || document.scrollingElement || document.documentElement;\n}\n\n"],"names":[],"version":3,"file":"getScrollParent.module.js.map"}
|
||||
30
node_modules/@react-aria/utils/dist/getScrollParents.main.js
generated
vendored
Normal file
30
node_modules/@react-aria/utils/dist/getScrollParents.main.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
var $9a54e9cd5db23b5d$exports = require("./isScrollable.main.js");
|
||||
|
||||
|
||||
function $parcel$export(e, n, v, s) {
|
||||
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
||||
}
|
||||
|
||||
$parcel$export(module.exports, "getScrollParents", () => $49f0d9486c2408aa$export$94ed1c92c7beeb22);
|
||||
/*
|
||||
* Copyright 2024 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
function $49f0d9486c2408aa$export$94ed1c92c7beeb22(node, checkForOverflow) {
|
||||
const scrollParents = [];
|
||||
while(node && node !== document.documentElement){
|
||||
if ((0, $9a54e9cd5db23b5d$exports.isScrollable)(node, checkForOverflow)) scrollParents.push(node);
|
||||
node = node.parentElement;
|
||||
}
|
||||
return scrollParents;
|
||||
}
|
||||
|
||||
|
||||
//# sourceMappingURL=getScrollParents.main.js.map
|
||||
1
node_modules/@react-aria/utils/dist/getScrollParents.main.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/getScrollParents.main.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC;AAIM,SAAS,0CAAiB,IAAa,EAAE,gBAA0B;IACxE,MAAM,gBAA2B,EAAE;IAEnC,MAAO,QAAQ,SAAS,SAAS,eAAe,CAAE;QAChD,IAAI,CAAA,GAAA,sCAAW,EAAE,MAAM,mBACrB,cAAc,IAAI,CAAC;QAErB,OAAO,KAAK,aAAa;IAC3B;IAEA,OAAO;AACT","sources":["packages/@react-aria/utils/src/getScrollParents.ts"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {isScrollable} from './isScrollable';\n\nexport function getScrollParents(node: Element, checkForOverflow?: boolean): Element[] {\n const scrollParents: Element[] = [];\n\n while (node && node !== document.documentElement) {\n if (isScrollable(node, checkForOverflow)) {\n scrollParents.push(node);\n }\n node = node.parentElement as Element;\n }\n\n return scrollParents;\n}\n"],"names":[],"version":3,"file":"getScrollParents.main.js.map"}
|
||||
25
node_modules/@react-aria/utils/dist/getScrollParents.mjs
generated
vendored
Normal file
25
node_modules/@react-aria/utils/dist/getScrollParents.mjs
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
import {isScrollable as $cc38e7bd3fc7b213$export$2bb74740c4e19def} from "./isScrollable.mjs";
|
||||
|
||||
/*
|
||||
* Copyright 2024 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
function $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(node, checkForOverflow) {
|
||||
const scrollParents = [];
|
||||
while(node && node !== document.documentElement){
|
||||
if ((0, $cc38e7bd3fc7b213$export$2bb74740c4e19def)(node, checkForOverflow)) scrollParents.push(node);
|
||||
node = node.parentElement;
|
||||
}
|
||||
return scrollParents;
|
||||
}
|
||||
|
||||
|
||||
export {$a40c673dc9f6d9c7$export$94ed1c92c7beeb22 as getScrollParents};
|
||||
//# sourceMappingURL=getScrollParents.module.js.map
|
||||
25
node_modules/@react-aria/utils/dist/getScrollParents.module.js
generated
vendored
Normal file
25
node_modules/@react-aria/utils/dist/getScrollParents.module.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
import {isScrollable as $cc38e7bd3fc7b213$export$2bb74740c4e19def} from "./isScrollable.module.js";
|
||||
|
||||
/*
|
||||
* Copyright 2024 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
function $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(node, checkForOverflow) {
|
||||
const scrollParents = [];
|
||||
while(node && node !== document.documentElement){
|
||||
if ((0, $cc38e7bd3fc7b213$export$2bb74740c4e19def)(node, checkForOverflow)) scrollParents.push(node);
|
||||
node = node.parentElement;
|
||||
}
|
||||
return scrollParents;
|
||||
}
|
||||
|
||||
|
||||
export {$a40c673dc9f6d9c7$export$94ed1c92c7beeb22 as getScrollParents};
|
||||
//# sourceMappingURL=getScrollParents.module.js.map
|
||||
1
node_modules/@react-aria/utils/dist/getScrollParents.module.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/getScrollParents.module.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":";;AAAA;;;;;;;;;;CAUC;AAIM,SAAS,0CAAiB,IAAa,EAAE,gBAA0B;IACxE,MAAM,gBAA2B,EAAE;IAEnC,MAAO,QAAQ,SAAS,SAAS,eAAe,CAAE;QAChD,IAAI,CAAA,GAAA,yCAAW,EAAE,MAAM,mBACrB,cAAc,IAAI,CAAC;QAErB,OAAO,KAAK,aAAa;IAC3B;IAEA,OAAO;AACT","sources":["packages/@react-aria/utils/src/getScrollParents.ts"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {isScrollable} from './isScrollable';\n\nexport function getScrollParents(node: Element, checkForOverflow?: boolean): Element[] {\n const scrollParents: Element[] = [];\n\n while (node && node !== document.documentElement) {\n if (isScrollable(node, checkForOverflow)) {\n scrollParents.push(node);\n }\n node = node.parentElement as Element;\n }\n\n return scrollParents;\n}\n"],"names":[],"version":3,"file":"getScrollParents.module.js.map"}
|
||||
99
node_modules/@react-aria/utils/dist/import.mjs
generated
vendored
Normal file
99
node_modules/@react-aria/utils/dist/import.mjs
generated
vendored
Normal file
@@ -0,0 +1,99 @@
|
||||
import {mergeIds as $bdb11010cef70236$export$cd8c9cb68f842629, useId as $bdb11010cef70236$export$f680877a34711e37, useSlotId as $bdb11010cef70236$export$b4cc09c592e8fdb8} from "./useId.mjs";
|
||||
import {chain as $ff5963eb1fccf552$export$e08e3b67e392101e} from "./chain.mjs";
|
||||
import {createShadowTreeWalker as $dfc540311bf7f109$export$4d0f8be8b12a7ef6, ShadowTreeWalker as $dfc540311bf7f109$export$63eb3ababa9c55c4} from "./ShadowTreeWalker.mjs";
|
||||
import {getActiveElement as $d4ee10de306f2510$export$cd4e5573fbe2b576, getEventTarget as $d4ee10de306f2510$export$e58f029f0fbfdb29, nodeContains as $d4ee10de306f2510$export$4282f70798064fe0} from "./DOMFunctions.mjs";
|
||||
import {getOwnerDocument as $431fbd86ca7dc216$export$b204af158042fbac, getOwnerWindow as $431fbd86ca7dc216$export$f21a1ffae260145a, isShadowRoot as $431fbd86ca7dc216$export$af51f0f06c0f328a} from "./domHelpers.mjs";
|
||||
import {mergeProps as $3ef42575df84b30b$export$9d1611c77c2fe928} from "./mergeProps.mjs";
|
||||
import {mergeRefs as $5dc95899b306f630$export$c9058316764c140e} from "./mergeRefs.mjs";
|
||||
import {filterDOMProps as $65484d02dcb7eb3e$export$457c3d6518dd4c6f} from "./filterDOMProps.mjs";
|
||||
import {focusWithoutScrolling as $7215afc6de606d6b$export$de79e2c695e052f3} from "./focusWithoutScrolling.mjs";
|
||||
import {getOffset as $ab71dadb03a6fb2e$export$622cea445a1c5b7d} from "./getOffset.mjs";
|
||||
import {getSyntheticLinkProps as $ea8dcbcb9ea1b556$export$51437d503373d223, openLink as $ea8dcbcb9ea1b556$export$95185d699e05d4d7, RouterProvider as $ea8dcbcb9ea1b556$export$323e4fc2fa4753fb, shouldClientNavigate as $ea8dcbcb9ea1b556$export$efa8c9099e530235, useLinkProps as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18, useRouter as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, useSyntheticLinkProps as $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6} from "./openLink.mjs";
|
||||
import {runAfterTransition as $bbed8b41f857bcc0$export$24490316f764c430} from "./runAfterTransition.mjs";
|
||||
import {useDrag1D as $9cc09df9fd7676be$export$7bbed75feba39706} from "./useDrag1D.mjs";
|
||||
import {useGlobalListeners as $03deb23ff14920c4$export$4eaf04e54aa8eed6} from "./useGlobalListeners.mjs";
|
||||
import {useLabels as $313b98861ee5dd6c$export$d6875122194c7b44} from "./useLabels.mjs";
|
||||
import {useObjectRef as $df56164dff5785e2$export$4338b53315abf666} from "./useObjectRef.mjs";
|
||||
import {useUpdateEffect as $4f58c5f72bcf79f7$export$496315a1608d9602} from "./useUpdateEffect.mjs";
|
||||
import {useUpdateLayoutEffect as $ca9b37712f007381$export$72ef708ab07251f1} from "./useUpdateLayoutEffect.mjs";
|
||||
import {useLayoutEffect as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c} from "./useLayoutEffect.mjs";
|
||||
import {useResizeObserver as $9daab02d461809db$export$683480f191c0e3ea} from "./useResizeObserver.mjs";
|
||||
import {useSyncRef as $e7801be82b4b2a53$export$4debdb1a3f0fa79e} from "./useSyncRef.mjs";
|
||||
import {getScrollParent as $62d8ded9296f3872$export$cfa2225e87938781} from "./getScrollParent.mjs";
|
||||
import {getScrollParents as $a40c673dc9f6d9c7$export$94ed1c92c7beeb22} from "./getScrollParents.mjs";
|
||||
import {isScrollable as $cc38e7bd3fc7b213$export$2bb74740c4e19def} from "./isScrollable.mjs";
|
||||
import {useViewportSize as $5df64b3807dc15ee$export$d699905dd57c73ca} from "./useViewportSize.mjs";
|
||||
import {useDescription as $ef06256079686ba0$export$f8aeda7b10753fa1} from "./useDescription.mjs";
|
||||
import {isAndroid as $c87311424ea30a05$export$a11b0059900ceec8, isAppleDevice as $c87311424ea30a05$export$e1865c3bedcd822b, isChrome as $c87311424ea30a05$export$6446a186d09e379e, isFirefox as $c87311424ea30a05$export$b7d78993b74f766d, isIOS as $c87311424ea30a05$export$fedb369cb70207f1, isIPad as $c87311424ea30a05$export$7bef049ce92e4224, isIPhone as $c87311424ea30a05$export$186c6964ca17d99, isMac as $c87311424ea30a05$export$9ac100e40613ea10, isWebKit as $c87311424ea30a05$export$78551043582a6a98} from "./platform.mjs";
|
||||
import {useEvent as $e9faafb641e167db$export$90fc3a17d93f704c} from "./useEvent.mjs";
|
||||
import {useValueEffect as $1dbecbe27a04f9af$export$14d238f342723f25} from "./useValueEffect.mjs";
|
||||
import {scrollIntoView as $2f04cbc44ee30ce0$export$53a0910f038337bd, scrollIntoViewport as $2f04cbc44ee30ce0$export$c826860796309d1b} from "./scrollIntoView.mjs";
|
||||
import {isVirtualClick as $6a7db85432448f7f$export$60278871457622de, isVirtualPointerEvent as $6a7db85432448f7f$export$29bf1b5f2c56cf63} from "./isVirtualEvent.mjs";
|
||||
import {useEffectEvent as $8ae05eaa5c114e9c$export$7f54fc3180508a52} from "./useEffectEvent.mjs";
|
||||
import {useDeepMemo as $5a387cc49350e6db$export$722debc0e56fea39} from "./useDeepMemo.mjs";
|
||||
import {useFormReset as $99facab73266f662$export$5add1d006293d136} from "./useFormReset.mjs";
|
||||
import {useLoadMore as $26f7f3da73fcd9d6$export$7717c92ee915373e} from "./useLoadMore.mjs";
|
||||
import {UNSTABLE_useLoadMoreSentinel as $a5fa973c1850dd36$export$90a12e6abf95cbe0} from "./useLoadMoreSentinel.mjs";
|
||||
import {inertValue as $cdc5a6778b766db2$export$a9d04c5684123369} from "./inertValue.mjs";
|
||||
import {CLEAR_FOCUS_EVENT as $5671b20cf9b562b2$export$447a38995de2c711, FOCUS_EVENT as $5671b20cf9b562b2$export$831c820ad60f9d12} from "./constants.mjs";
|
||||
import {isCtrlKeyPressed as $21f1aa98acb08317$export$16792effe837dba3} from "./keyboard.mjs";
|
||||
import {useEnterAnimation as $d3f049242431219c$export$6d3443f2c48bfc20, useExitAnimation as $d3f049242431219c$export$45fda7c47f93fd48} from "./animation.mjs";
|
||||
import {isFocusable as $b4b717babfbb907b$export$4c063cf1350e6fed, isTabbable as $b4b717babfbb907b$export$bebd5a1431fec25d} from "./isFocusable.mjs";
|
||||
import {clamp as $4507461a1b870123$re_export$clamp, snapValueToStep as $4507461a1b870123$re_export$snapValueToStep} from "@react-stately/utils";
|
||||
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export {$bdb11010cef70236$export$f680877a34711e37 as useId, $bdb11010cef70236$export$cd8c9cb68f842629 as mergeIds, $bdb11010cef70236$export$b4cc09c592e8fdb8 as useSlotId, $ff5963eb1fccf552$export$e08e3b67e392101e as chain, $dfc540311bf7f109$export$4d0f8be8b12a7ef6 as createShadowTreeWalker, $dfc540311bf7f109$export$63eb3ababa9c55c4 as ShadowTreeWalker, $d4ee10de306f2510$export$cd4e5573fbe2b576 as getActiveElement, $d4ee10de306f2510$export$e58f029f0fbfdb29 as getEventTarget, $d4ee10de306f2510$export$4282f70798064fe0 as nodeContains, $431fbd86ca7dc216$export$b204af158042fbac as getOwnerDocument, $431fbd86ca7dc216$export$f21a1ffae260145a as getOwnerWindow, $431fbd86ca7dc216$export$af51f0f06c0f328a as isShadowRoot, $3ef42575df84b30b$export$9d1611c77c2fe928 as mergeProps, $5dc95899b306f630$export$c9058316764c140e as mergeRefs, $65484d02dcb7eb3e$export$457c3d6518dd4c6f as filterDOMProps, $7215afc6de606d6b$export$de79e2c695e052f3 as focusWithoutScrolling, $ab71dadb03a6fb2e$export$622cea445a1c5b7d as getOffset, $ea8dcbcb9ea1b556$export$95185d699e05d4d7 as openLink, $ea8dcbcb9ea1b556$export$51437d503373d223 as getSyntheticLinkProps, $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6 as useSyntheticLinkProps, $ea8dcbcb9ea1b556$export$323e4fc2fa4753fb as RouterProvider, $ea8dcbcb9ea1b556$export$efa8c9099e530235 as shouldClientNavigate, $ea8dcbcb9ea1b556$export$9a302a45f65d0572 as useRouter, $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 as useLinkProps, $bbed8b41f857bcc0$export$24490316f764c430 as runAfterTransition, $9cc09df9fd7676be$export$7bbed75feba39706 as useDrag1D, $03deb23ff14920c4$export$4eaf04e54aa8eed6 as useGlobalListeners, $313b98861ee5dd6c$export$d6875122194c7b44 as useLabels, $df56164dff5785e2$export$4338b53315abf666 as useObjectRef, $4f58c5f72bcf79f7$export$496315a1608d9602 as useUpdateEffect, $ca9b37712f007381$export$72ef708ab07251f1 as useUpdateLayoutEffect, $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c as useLayoutEffect, $9daab02d461809db$export$683480f191c0e3ea as useResizeObserver, $e7801be82b4b2a53$export$4debdb1a3f0fa79e as useSyncRef, $62d8ded9296f3872$export$cfa2225e87938781 as getScrollParent, $a40c673dc9f6d9c7$export$94ed1c92c7beeb22 as getScrollParents, $cc38e7bd3fc7b213$export$2bb74740c4e19def as isScrollable, $5df64b3807dc15ee$export$d699905dd57c73ca as useViewportSize, $ef06256079686ba0$export$f8aeda7b10753fa1 as useDescription, $c87311424ea30a05$export$9ac100e40613ea10 as isMac, $c87311424ea30a05$export$186c6964ca17d99 as isIPhone, $c87311424ea30a05$export$7bef049ce92e4224 as isIPad, $c87311424ea30a05$export$fedb369cb70207f1 as isIOS, $c87311424ea30a05$export$e1865c3bedcd822b as isAppleDevice, $c87311424ea30a05$export$78551043582a6a98 as isWebKit, $c87311424ea30a05$export$6446a186d09e379e as isChrome, $c87311424ea30a05$export$a11b0059900ceec8 as isAndroid, $c87311424ea30a05$export$b7d78993b74f766d as isFirefox, $e9faafb641e167db$export$90fc3a17d93f704c as useEvent, $1dbecbe27a04f9af$export$14d238f342723f25 as useValueEffect, $2f04cbc44ee30ce0$export$53a0910f038337bd as scrollIntoView, $2f04cbc44ee30ce0$export$c826860796309d1b as scrollIntoViewport, $4507461a1b870123$re_export$clamp as clamp, $4507461a1b870123$re_export$snapValueToStep as snapValueToStep, $6a7db85432448f7f$export$60278871457622de as isVirtualClick, $6a7db85432448f7f$export$29bf1b5f2c56cf63 as isVirtualPointerEvent, $8ae05eaa5c114e9c$export$7f54fc3180508a52 as useEffectEvent, $5a387cc49350e6db$export$722debc0e56fea39 as useDeepMemo, $99facab73266f662$export$5add1d006293d136 as useFormReset, $26f7f3da73fcd9d6$export$7717c92ee915373e as useLoadMore, $a5fa973c1850dd36$export$90a12e6abf95cbe0 as UNSTABLE_useLoadMoreSentinel, $cdc5a6778b766db2$export$a9d04c5684123369 as inertValue, $5671b20cf9b562b2$export$447a38995de2c711 as CLEAR_FOCUS_EVENT, $5671b20cf9b562b2$export$831c820ad60f9d12 as FOCUS_EVENT, $21f1aa98acb08317$export$16792effe837dba3 as isCtrlKeyPressed, $d3f049242431219c$export$6d3443f2c48bfc20 as useEnterAnimation, $d3f049242431219c$export$45fda7c47f93fd48 as useExitAnimation, $b4b717babfbb907b$export$4c063cf1350e6fed as isFocusable, $b4b717babfbb907b$export$bebd5a1431fec25d as isTabbable};
|
||||
//# sourceMappingURL=module.js.map
|
||||
19
node_modules/@react-aria/utils/dist/inertValue.main.js
generated
vendored
Normal file
19
node_modules/@react-aria/utils/dist/inertValue.main.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
var $2Y3Ap$react = require("react");
|
||||
|
||||
|
||||
function $parcel$export(e, n, v, s) {
|
||||
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
||||
}
|
||||
|
||||
$parcel$export(module.exports, "inertValue", () => $13915169b1e4142c$export$a9d04c5684123369);
|
||||
|
||||
function $13915169b1e4142c$export$a9d04c5684123369(value) {
|
||||
const pieces = (0, $2Y3Ap$react.version).split('.');
|
||||
const major = parseInt(pieces[0], 10);
|
||||
if (major >= 19) return value;
|
||||
// compatibility with React < 19
|
||||
return value ? 'true' : undefined;
|
||||
}
|
||||
|
||||
|
||||
//# sourceMappingURL=inertValue.main.js.map
|
||||
1
node_modules/@react-aria/utils/dist/inertValue.main.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/inertValue.main.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":";;;;;;;;;AAEO,SAAS,0CAAW,KAAe;IACxC,MAAM,SAAS,CAAA,GAAA,oBAAM,EAAE,KAAK,CAAC;IAC7B,MAAM,QAAQ,SAAS,MAAM,CAAC,EAAE,EAAE;IAClC,IAAI,SAAS,IACX,OAAO;IAET,gCAAgC;IAChC,OAAO,QAAQ,SAAS;AAC1B","sources":["packages/@react-aria/utils/src/inertValue.ts"],"sourcesContent":["import {version} from 'react';\n\nexport function inertValue(value?: boolean): string | boolean | undefined {\n const pieces = version.split('.');\n const major = parseInt(pieces[0], 10);\n if (major >= 19) {\n return value;\n }\n // compatibility with React < 19\n return value ? 'true' : undefined;\n}\n"],"names":[],"version":3,"file":"inertValue.main.js.map"}
|
||||
14
node_modules/@react-aria/utils/dist/inertValue.mjs
generated
vendored
Normal file
14
node_modules/@react-aria/utils/dist/inertValue.mjs
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import {version as $iulvE$version} from "react";
|
||||
|
||||
|
||||
function $cdc5a6778b766db2$export$a9d04c5684123369(value) {
|
||||
const pieces = (0, $iulvE$version).split('.');
|
||||
const major = parseInt(pieces[0], 10);
|
||||
if (major >= 19) return value;
|
||||
// compatibility with React < 19
|
||||
return value ? 'true' : undefined;
|
||||
}
|
||||
|
||||
|
||||
export {$cdc5a6778b766db2$export$a9d04c5684123369 as inertValue};
|
||||
//# sourceMappingURL=inertValue.module.js.map
|
||||
14
node_modules/@react-aria/utils/dist/inertValue.module.js
generated
vendored
Normal file
14
node_modules/@react-aria/utils/dist/inertValue.module.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import {version as $iulvE$version} from "react";
|
||||
|
||||
|
||||
function $cdc5a6778b766db2$export$a9d04c5684123369(value) {
|
||||
const pieces = (0, $iulvE$version).split('.');
|
||||
const major = parseInt(pieces[0], 10);
|
||||
if (major >= 19) return value;
|
||||
// compatibility with React < 19
|
||||
return value ? 'true' : undefined;
|
||||
}
|
||||
|
||||
|
||||
export {$cdc5a6778b766db2$export$a9d04c5684123369 as inertValue};
|
||||
//# sourceMappingURL=inertValue.module.js.map
|
||||
1
node_modules/@react-aria/utils/dist/inertValue.module.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/inertValue.module.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":";;;AAEO,SAAS,0CAAW,KAAe;IACxC,MAAM,SAAS,CAAA,GAAA,cAAM,EAAE,KAAK,CAAC;IAC7B,MAAM,QAAQ,SAAS,MAAM,CAAC,EAAE,EAAE;IAClC,IAAI,SAAS,IACX,OAAO;IAET,gCAAgC;IAChC,OAAO,QAAQ,SAAS;AAC1B","sources":["packages/@react-aria/utils/src/inertValue.ts"],"sourcesContent":["import {version} from 'react';\n\nexport function inertValue(value?: boolean): string | boolean | undefined {\n const pieces = version.split('.');\n const major = parseInt(pieces[0], 10);\n if (major >= 19) {\n return value;\n }\n // compatibility with React < 19\n return value ? 'true' : undefined;\n}\n"],"names":[],"version":3,"file":"inertValue.module.js.map"}
|
||||
34
node_modules/@react-aria/utils/dist/isFocusable.main.js
generated
vendored
Normal file
34
node_modules/@react-aria/utils/dist/isFocusable.main.js
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
function $parcel$export(e, n, v, s) {
|
||||
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
||||
}
|
||||
|
||||
$parcel$export(module.exports, "isFocusable", () => $506b33fd893eab7d$export$4c063cf1350e6fed);
|
||||
$parcel$export(module.exports, "isTabbable", () => $506b33fd893eab7d$export$bebd5a1431fec25d);
|
||||
const $506b33fd893eab7d$var$focusableElements = [
|
||||
'input:not([disabled]):not([type=hidden])',
|
||||
'select:not([disabled])',
|
||||
'textarea:not([disabled])',
|
||||
'button:not([disabled])',
|
||||
'a[href]',
|
||||
'area[href]',
|
||||
'summary',
|
||||
'iframe',
|
||||
'object',
|
||||
'embed',
|
||||
'audio[controls]',
|
||||
'video[controls]',
|
||||
'[contenteditable]:not([contenteditable^="false"])'
|
||||
];
|
||||
const $506b33fd893eab7d$var$FOCUSABLE_ELEMENT_SELECTOR = $506b33fd893eab7d$var$focusableElements.join(':not([hidden]),') + ',[tabindex]:not([disabled]):not([hidden])';
|
||||
$506b33fd893eab7d$var$focusableElements.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
|
||||
const $506b33fd893eab7d$var$TABBABLE_ELEMENT_SELECTOR = $506b33fd893eab7d$var$focusableElements.join(':not([hidden]):not([tabindex="-1"]),');
|
||||
function $506b33fd893eab7d$export$4c063cf1350e6fed(element) {
|
||||
return element.matches($506b33fd893eab7d$var$FOCUSABLE_ELEMENT_SELECTOR);
|
||||
}
|
||||
function $506b33fd893eab7d$export$bebd5a1431fec25d(element) {
|
||||
return element.matches($506b33fd893eab7d$var$TABBABLE_ELEMENT_SELECTOR);
|
||||
}
|
||||
|
||||
|
||||
//# sourceMappingURL=isFocusable.main.js.map
|
||||
1
node_modules/@react-aria/utils/dist/isFocusable.main.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/isFocusable.main.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":";;;;;;;AAAA,MAAM,0CAAoB;IACxB;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CACD;AAED,MAAM,mDAA6B,wCAAkB,IAAI,CAAC,qBAAqB;AAE/E,wCAAkB,IAAI,CAAC;AACvB,MAAM,kDAA4B,wCAAkB,IAAI,CAAC;AAElD,SAAS,0CAAY,OAAgB;IAC1C,OAAO,QAAQ,OAAO,CAAC;AACzB;AAEO,SAAS,0CAAW,OAAgB;IACzC,OAAO,QAAQ,OAAO,CAAC;AACzB","sources":["packages/@react-aria/utils/src/isFocusable.ts"],"sourcesContent":["const focusableElements = [\n 'input:not([disabled]):not([type=hidden])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n 'button:not([disabled])',\n 'a[href]',\n 'area[href]',\n 'summary',\n 'iframe',\n 'object',\n 'embed',\n 'audio[controls]',\n 'video[controls]',\n '[contenteditable]:not([contenteditable^=\"false\"])'\n];\n\nconst FOCUSABLE_ELEMENT_SELECTOR = focusableElements.join(':not([hidden]),') + ',[tabindex]:not([disabled]):not([hidden])';\n\nfocusableElements.push('[tabindex]:not([tabindex=\"-1\"]):not([disabled])');\nconst TABBABLE_ELEMENT_SELECTOR = focusableElements.join(':not([hidden]):not([tabindex=\"-1\"]),');\n\nexport function isFocusable(element: Element): boolean {\n return element.matches(FOCUSABLE_ELEMENT_SELECTOR);\n}\n\nexport function isTabbable(element: Element): boolean {\n return element.matches(TABBABLE_ELEMENT_SELECTOR);\n}\n"],"names":[],"version":3,"file":"isFocusable.main.js.map"}
|
||||
28
node_modules/@react-aria/utils/dist/isFocusable.mjs
generated
vendored
Normal file
28
node_modules/@react-aria/utils/dist/isFocusable.mjs
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
const $b4b717babfbb907b$var$focusableElements = [
|
||||
'input:not([disabled]):not([type=hidden])',
|
||||
'select:not([disabled])',
|
||||
'textarea:not([disabled])',
|
||||
'button:not([disabled])',
|
||||
'a[href]',
|
||||
'area[href]',
|
||||
'summary',
|
||||
'iframe',
|
||||
'object',
|
||||
'embed',
|
||||
'audio[controls]',
|
||||
'video[controls]',
|
||||
'[contenteditable]:not([contenteditable^="false"])'
|
||||
];
|
||||
const $b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR = $b4b717babfbb907b$var$focusableElements.join(':not([hidden]),') + ',[tabindex]:not([disabled]):not([hidden])';
|
||||
$b4b717babfbb907b$var$focusableElements.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
|
||||
const $b4b717babfbb907b$var$TABBABLE_ELEMENT_SELECTOR = $b4b717babfbb907b$var$focusableElements.join(':not([hidden]):not([tabindex="-1"]),');
|
||||
function $b4b717babfbb907b$export$4c063cf1350e6fed(element) {
|
||||
return element.matches($b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR);
|
||||
}
|
||||
function $b4b717babfbb907b$export$bebd5a1431fec25d(element) {
|
||||
return element.matches($b4b717babfbb907b$var$TABBABLE_ELEMENT_SELECTOR);
|
||||
}
|
||||
|
||||
|
||||
export {$b4b717babfbb907b$export$4c063cf1350e6fed as isFocusable, $b4b717babfbb907b$export$bebd5a1431fec25d as isTabbable};
|
||||
//# sourceMappingURL=isFocusable.module.js.map
|
||||
28
node_modules/@react-aria/utils/dist/isFocusable.module.js
generated
vendored
Normal file
28
node_modules/@react-aria/utils/dist/isFocusable.module.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
const $b4b717babfbb907b$var$focusableElements = [
|
||||
'input:not([disabled]):not([type=hidden])',
|
||||
'select:not([disabled])',
|
||||
'textarea:not([disabled])',
|
||||
'button:not([disabled])',
|
||||
'a[href]',
|
||||
'area[href]',
|
||||
'summary',
|
||||
'iframe',
|
||||
'object',
|
||||
'embed',
|
||||
'audio[controls]',
|
||||
'video[controls]',
|
||||
'[contenteditable]:not([contenteditable^="false"])'
|
||||
];
|
||||
const $b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR = $b4b717babfbb907b$var$focusableElements.join(':not([hidden]),') + ',[tabindex]:not([disabled]):not([hidden])';
|
||||
$b4b717babfbb907b$var$focusableElements.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
|
||||
const $b4b717babfbb907b$var$TABBABLE_ELEMENT_SELECTOR = $b4b717babfbb907b$var$focusableElements.join(':not([hidden]):not([tabindex="-1"]),');
|
||||
function $b4b717babfbb907b$export$4c063cf1350e6fed(element) {
|
||||
return element.matches($b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR);
|
||||
}
|
||||
function $b4b717babfbb907b$export$bebd5a1431fec25d(element) {
|
||||
return element.matches($b4b717babfbb907b$var$TABBABLE_ELEMENT_SELECTOR);
|
||||
}
|
||||
|
||||
|
||||
export {$b4b717babfbb907b$export$4c063cf1350e6fed as isFocusable, $b4b717babfbb907b$export$bebd5a1431fec25d as isTabbable};
|
||||
//# sourceMappingURL=isFocusable.module.js.map
|
||||
1
node_modules/@react-aria/utils/dist/isFocusable.module.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/isFocusable.module.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":"AAAA,MAAM,0CAAoB;IACxB;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CACD;AAED,MAAM,mDAA6B,wCAAkB,IAAI,CAAC,qBAAqB;AAE/E,wCAAkB,IAAI,CAAC;AACvB,MAAM,kDAA4B,wCAAkB,IAAI,CAAC;AAElD,SAAS,0CAAY,OAAgB;IAC1C,OAAO,QAAQ,OAAO,CAAC;AACzB;AAEO,SAAS,0CAAW,OAAgB;IACzC,OAAO,QAAQ,OAAO,CAAC;AACzB","sources":["packages/@react-aria/utils/src/isFocusable.ts"],"sourcesContent":["const focusableElements = [\n 'input:not([disabled]):not([type=hidden])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n 'button:not([disabled])',\n 'a[href]',\n 'area[href]',\n 'summary',\n 'iframe',\n 'object',\n 'embed',\n 'audio[controls]',\n 'video[controls]',\n '[contenteditable]:not([contenteditable^=\"false\"])'\n];\n\nconst FOCUSABLE_ELEMENT_SELECTOR = focusableElements.join(':not([hidden]),') + ',[tabindex]:not([disabled]):not([hidden])';\n\nfocusableElements.push('[tabindex]:not([tabindex=\"-1\"]):not([disabled])');\nconst TABBABLE_ELEMENT_SELECTOR = focusableElements.join(':not([hidden]):not([tabindex=\"-1\"]),');\n\nexport function isFocusable(element: Element): boolean {\n return element.matches(FOCUSABLE_ELEMENT_SELECTOR);\n}\n\nexport function isTabbable(element: Element): boolean {\n return element.matches(TABBABLE_ELEMENT_SELECTOR);\n}\n"],"names":[],"version":3,"file":"isFocusable.module.js.map"}
|
||||
26
node_modules/@react-aria/utils/dist/isScrollable.main.js
generated
vendored
Normal file
26
node_modules/@react-aria/utils/dist/isScrollable.main.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
function $parcel$export(e, n, v, s) {
|
||||
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
||||
}
|
||||
|
||||
$parcel$export(module.exports, "isScrollable", () => $9a54e9cd5db23b5d$export$2bb74740c4e19def);
|
||||
/*
|
||||
* Copyright 2024 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/ function $9a54e9cd5db23b5d$export$2bb74740c4e19def(node, checkForOverflow) {
|
||||
if (!node) return false;
|
||||
let style = window.getComputedStyle(node);
|
||||
let isScrollable = /(auto|scroll)/.test(style.overflow + style.overflowX + style.overflowY);
|
||||
if (isScrollable && checkForOverflow) isScrollable = node.scrollHeight !== node.clientHeight || node.scrollWidth !== node.clientWidth;
|
||||
return isScrollable;
|
||||
}
|
||||
|
||||
|
||||
//# sourceMappingURL=isScrollable.main.js.map
|
||||
1
node_modules/@react-aria/utils/dist/isScrollable.main.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/isScrollable.main.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":";;;;;;AAAA;;;;;;;;;;CAUC,GAEM,SAAS,0CAAa,IAAoB,EAAE,gBAA0B;IAC3E,IAAI,CAAC,MACH,OAAO;IAET,IAAI,QAAQ,OAAO,gBAAgB,CAAC;IACpC,IAAI,eAAe,gBAAgB,IAAI,CAAC,MAAM,QAAQ,GAAG,MAAM,SAAS,GAAG,MAAM,SAAS;IAE1F,IAAI,gBAAgB,kBAClB,eAAe,KAAK,YAAY,KAAK,KAAK,YAAY,IAAI,KAAK,WAAW,KAAK,KAAK,WAAW;IAGjG,OAAO;AACT","sources":["packages/@react-aria/utils/src/isScrollable.ts"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport function isScrollable(node: Element | null, checkForOverflow?: boolean): boolean {\n if (!node) {\n return false;\n }\n let style = window.getComputedStyle(node);\n let isScrollable = /(auto|scroll)/.test(style.overflow + style.overflowX + style.overflowY);\n\n if (isScrollable && checkForOverflow) {\n isScrollable = node.scrollHeight !== node.clientHeight || node.scrollWidth !== node.clientWidth;\n }\n\n return isScrollable;\n}\n"],"names":[],"version":3,"file":"isScrollable.main.js.map"}
|
||||
21
node_modules/@react-aria/utils/dist/isScrollable.mjs
generated
vendored
Normal file
21
node_modules/@react-aria/utils/dist/isScrollable.mjs
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright 2024 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/ function $cc38e7bd3fc7b213$export$2bb74740c4e19def(node, checkForOverflow) {
|
||||
if (!node) return false;
|
||||
let style = window.getComputedStyle(node);
|
||||
let isScrollable = /(auto|scroll)/.test(style.overflow + style.overflowX + style.overflowY);
|
||||
if (isScrollable && checkForOverflow) isScrollable = node.scrollHeight !== node.clientHeight || node.scrollWidth !== node.clientWidth;
|
||||
return isScrollable;
|
||||
}
|
||||
|
||||
|
||||
export {$cc38e7bd3fc7b213$export$2bb74740c4e19def as isScrollable};
|
||||
//# sourceMappingURL=isScrollable.module.js.map
|
||||
21
node_modules/@react-aria/utils/dist/isScrollable.module.js
generated
vendored
Normal file
21
node_modules/@react-aria/utils/dist/isScrollable.module.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright 2024 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/ function $cc38e7bd3fc7b213$export$2bb74740c4e19def(node, checkForOverflow) {
|
||||
if (!node) return false;
|
||||
let style = window.getComputedStyle(node);
|
||||
let isScrollable = /(auto|scroll)/.test(style.overflow + style.overflowX + style.overflowY);
|
||||
if (isScrollable && checkForOverflow) isScrollable = node.scrollHeight !== node.clientHeight || node.scrollWidth !== node.clientWidth;
|
||||
return isScrollable;
|
||||
}
|
||||
|
||||
|
||||
export {$cc38e7bd3fc7b213$export$2bb74740c4e19def as isScrollable};
|
||||
//# sourceMappingURL=isScrollable.module.js.map
|
||||
1
node_modules/@react-aria/utils/dist/isScrollable.module.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/isScrollable.module.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":"AAAA;;;;;;;;;;CAUC,GAEM,SAAS,0CAAa,IAAoB,EAAE,gBAA0B;IAC3E,IAAI,CAAC,MACH,OAAO;IAET,IAAI,QAAQ,OAAO,gBAAgB,CAAC;IACpC,IAAI,eAAe,gBAAgB,IAAI,CAAC,MAAM,QAAQ,GAAG,MAAM,SAAS,GAAG,MAAM,SAAS;IAE1F,IAAI,gBAAgB,kBAClB,eAAe,KAAK,YAAY,KAAK,KAAK,YAAY,IAAI,KAAK,WAAW,KAAK,KAAK,WAAW;IAGjG,OAAO;AACT","sources":["packages/@react-aria/utils/src/isScrollable.ts"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport function isScrollable(node: Element | null, checkForOverflow?: boolean): boolean {\n if (!node) {\n return false;\n }\n let style = window.getComputedStyle(node);\n let isScrollable = /(auto|scroll)/.test(style.overflow + style.overflowX + style.overflowY);\n\n if (isScrollable && checkForOverflow) {\n isScrollable = node.scrollHeight !== node.clientHeight || node.scrollWidth !== node.clientWidth;\n }\n\n return isScrollable;\n}\n"],"names":[],"version":3,"file":"isScrollable.module.js.map"}
|
||||
41
node_modules/@react-aria/utils/dist/isVirtualEvent.main.js
generated
vendored
Normal file
41
node_modules/@react-aria/utils/dist/isVirtualEvent.main.js
generated
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
var $9e20cff0af27e8cc$exports = require("./platform.main.js");
|
||||
|
||||
|
||||
function $parcel$export(e, n, v, s) {
|
||||
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
||||
}
|
||||
|
||||
$parcel$export(module.exports, "isVirtualClick", () => $577e795361f19be9$export$60278871457622de);
|
||||
$parcel$export(module.exports, "isVirtualPointerEvent", () => $577e795361f19be9$export$29bf1b5f2c56cf63);
|
||||
/*
|
||||
* Copyright 2022 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
function $577e795361f19be9$export$60278871457622de(event) {
|
||||
// JAWS/NVDA with Firefox.
|
||||
if (event.mozInputSource === 0 && event.isTrusted) return true;
|
||||
// Android TalkBack's detail value varies depending on the event listener providing the event so we have specific logic here instead
|
||||
// If pointerType is defined, event is from a click listener. For events from mousedown listener, detail === 0 is a sufficient check
|
||||
// to detect TalkBack virtual clicks.
|
||||
if ((0, $9e20cff0af27e8cc$exports.isAndroid)() && event.pointerType) return event.type === 'click' && event.buttons === 1;
|
||||
return event.detail === 0 && !event.pointerType;
|
||||
}
|
||||
function $577e795361f19be9$export$29bf1b5f2c56cf63(event) {
|
||||
// If the pointer size is zero, then we assume it's from a screen reader.
|
||||
// Android TalkBack double tap will sometimes return a event with width and height of 1
|
||||
// and pointerType === 'mouse' so we need to check for a specific combination of event attributes.
|
||||
// Cannot use "event.pressure === 0" as the sole check due to Safari pointer events always returning pressure === 0
|
||||
// instead of .5, see https://bugs.webkit.org/show_bug.cgi?id=206216. event.pointerType === 'mouse' is to distingush
|
||||
// Talkback double tap from Windows Firefox touch screen press
|
||||
return !(0, $9e20cff0af27e8cc$exports.isAndroid)() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'mouse';
|
||||
}
|
||||
|
||||
|
||||
//# sourceMappingURL=isVirtualEvent.main.js.map
|
||||
1
node_modules/@react-aria/utils/dist/isVirtualEvent.main.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/isVirtualEvent.main.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":";;;;;;;;;AAAA;;;;;;;;;;CAUC;AAeM,SAAS,0CAAe,KAAgC;IAC7D,0BAA0B;IAC1B,IAAI,AAAC,MAAc,cAAc,KAAK,KAAK,MAAM,SAAS,EACxD,OAAO;IAGT,oIAAoI;IACpI,oIAAoI;IACpI,qCAAqC;IACrC,IAAI,CAAA,GAAA,mCAAQ,OAAO,AAAC,MAAuB,WAAW,EACpD,OAAO,MAAM,IAAI,KAAK,WAAW,MAAM,OAAO,KAAK;IAGrD,OAAO,MAAM,MAAM,KAAK,KAAK,CAAC,AAAC,MAAuB,WAAW;AACnE;AAEO,SAAS,0CAAsB,KAAmB;IACvD,yEAAyE;IACzE,uFAAuF;IACvF,kGAAkG;IAClG,mHAAmH;IACnH,oHAAoH;IACpH,8DAA8D;IAC9D,OACE,AAAC,CAAC,CAAA,GAAA,mCAAQ,OAAO,MAAM,KAAK,KAAK,KAAK,MAAM,MAAM,KAAK,KACtD,MAAM,KAAK,KAAK,KACf,MAAM,MAAM,KAAK,KACjB,MAAM,QAAQ,KAAK,KACnB,MAAM,MAAM,KAAK,KACjB,MAAM,WAAW,KAAK;AAG5B","sources":["packages/@react-aria/utils/src/isVirtualEvent.ts"],"sourcesContent":["/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {isAndroid} from './platform';\n\n// Original licensing for the following method can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/blob/3c713d513195a53788b3f8bb4b70279d68b15bcc/packages/react-interactions/events/src/dom/shared/index.js#L74-L87\n\n// Keyboards, Assistive Technologies, and element.click() all produce a \"virtual\"\n// click event. This is a method of inferring such clicks. Every browser except\n// IE 11 only sets a zero value of \"detail\" for click events that are \"virtual\".\n// However, IE 11 uses a zero value for all click events. For IE 11 we rely on\n// the quirk that it produces click events that are of type PointerEvent, and\n// where only the \"virtual\" click lacks a pointerType field.\n\nexport function isVirtualClick(event: MouseEvent | PointerEvent): boolean {\n // JAWS/NVDA with Firefox.\n if ((event as any).mozInputSource === 0 && event.isTrusted) {\n return true;\n }\n\n // Android TalkBack's detail value varies depending on the event listener providing the event so we have specific logic here instead\n // If pointerType is defined, event is from a click listener. For events from mousedown listener, detail === 0 is a sufficient check\n // to detect TalkBack virtual clicks.\n if (isAndroid() && (event as PointerEvent).pointerType) {\n return event.type === 'click' && event.buttons === 1;\n }\n\n return event.detail === 0 && !(event as PointerEvent).pointerType;\n}\n\nexport function isVirtualPointerEvent(event: PointerEvent): boolean {\n // If the pointer size is zero, then we assume it's from a screen reader.\n // Android TalkBack double tap will sometimes return a event with width and height of 1\n // and pointerType === 'mouse' so we need to check for a specific combination of event attributes.\n // Cannot use \"event.pressure === 0\" as the sole check due to Safari pointer events always returning pressure === 0\n // instead of .5, see https://bugs.webkit.org/show_bug.cgi?id=206216. event.pointerType === 'mouse' is to distingush\n // Talkback double tap from Windows Firefox touch screen press\n return (\n (!isAndroid() && event.width === 0 && event.height === 0) ||\n (event.width === 1 &&\n event.height === 1 &&\n event.pressure === 0 &&\n event.detail === 0 &&\n event.pointerType === 'mouse'\n )\n );\n}\n"],"names":[],"version":3,"file":"isVirtualEvent.main.js.map"}
|
||||
35
node_modules/@react-aria/utils/dist/isVirtualEvent.mjs
generated
vendored
Normal file
35
node_modules/@react-aria/utils/dist/isVirtualEvent.mjs
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
import {isAndroid as $c87311424ea30a05$export$a11b0059900ceec8} from "./platform.mjs";
|
||||
|
||||
/*
|
||||
* Copyright 2022 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
function $6a7db85432448f7f$export$60278871457622de(event) {
|
||||
// JAWS/NVDA with Firefox.
|
||||
if (event.mozInputSource === 0 && event.isTrusted) return true;
|
||||
// Android TalkBack's detail value varies depending on the event listener providing the event so we have specific logic here instead
|
||||
// If pointerType is defined, event is from a click listener. For events from mousedown listener, detail === 0 is a sufficient check
|
||||
// to detect TalkBack virtual clicks.
|
||||
if ((0, $c87311424ea30a05$export$a11b0059900ceec8)() && event.pointerType) return event.type === 'click' && event.buttons === 1;
|
||||
return event.detail === 0 && !event.pointerType;
|
||||
}
|
||||
function $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) {
|
||||
// If the pointer size is zero, then we assume it's from a screen reader.
|
||||
// Android TalkBack double tap will sometimes return a event with width and height of 1
|
||||
// and pointerType === 'mouse' so we need to check for a specific combination of event attributes.
|
||||
// Cannot use "event.pressure === 0" as the sole check due to Safari pointer events always returning pressure === 0
|
||||
// instead of .5, see https://bugs.webkit.org/show_bug.cgi?id=206216. event.pointerType === 'mouse' is to distingush
|
||||
// Talkback double tap from Windows Firefox touch screen press
|
||||
return !(0, $c87311424ea30a05$export$a11b0059900ceec8)() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'mouse';
|
||||
}
|
||||
|
||||
|
||||
export {$6a7db85432448f7f$export$60278871457622de as isVirtualClick, $6a7db85432448f7f$export$29bf1b5f2c56cf63 as isVirtualPointerEvent};
|
||||
//# sourceMappingURL=isVirtualEvent.module.js.map
|
||||
35
node_modules/@react-aria/utils/dist/isVirtualEvent.module.js
generated
vendored
Normal file
35
node_modules/@react-aria/utils/dist/isVirtualEvent.module.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
import {isAndroid as $c87311424ea30a05$export$a11b0059900ceec8} from "./platform.module.js";
|
||||
|
||||
/*
|
||||
* Copyright 2022 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
function $6a7db85432448f7f$export$60278871457622de(event) {
|
||||
// JAWS/NVDA with Firefox.
|
||||
if (event.mozInputSource === 0 && event.isTrusted) return true;
|
||||
// Android TalkBack's detail value varies depending on the event listener providing the event so we have specific logic here instead
|
||||
// If pointerType is defined, event is from a click listener. For events from mousedown listener, detail === 0 is a sufficient check
|
||||
// to detect TalkBack virtual clicks.
|
||||
if ((0, $c87311424ea30a05$export$a11b0059900ceec8)() && event.pointerType) return event.type === 'click' && event.buttons === 1;
|
||||
return event.detail === 0 && !event.pointerType;
|
||||
}
|
||||
function $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) {
|
||||
// If the pointer size is zero, then we assume it's from a screen reader.
|
||||
// Android TalkBack double tap will sometimes return a event with width and height of 1
|
||||
// and pointerType === 'mouse' so we need to check for a specific combination of event attributes.
|
||||
// Cannot use "event.pressure === 0" as the sole check due to Safari pointer events always returning pressure === 0
|
||||
// instead of .5, see https://bugs.webkit.org/show_bug.cgi?id=206216. event.pointerType === 'mouse' is to distingush
|
||||
// Talkback double tap from Windows Firefox touch screen press
|
||||
return !(0, $c87311424ea30a05$export$a11b0059900ceec8)() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'mouse';
|
||||
}
|
||||
|
||||
|
||||
export {$6a7db85432448f7f$export$60278871457622de as isVirtualClick, $6a7db85432448f7f$export$29bf1b5f2c56cf63 as isVirtualPointerEvent};
|
||||
//# sourceMappingURL=isVirtualEvent.module.js.map
|
||||
1
node_modules/@react-aria/utils/dist/isVirtualEvent.module.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/isVirtualEvent.module.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":";;AAAA;;;;;;;;;;CAUC;AAeM,SAAS,0CAAe,KAAgC;IAC7D,0BAA0B;IAC1B,IAAI,AAAC,MAAc,cAAc,KAAK,KAAK,MAAM,SAAS,EACxD,OAAO;IAGT,oIAAoI;IACpI,oIAAoI;IACpI,qCAAqC;IACrC,IAAI,CAAA,GAAA,yCAAQ,OAAO,AAAC,MAAuB,WAAW,EACpD,OAAO,MAAM,IAAI,KAAK,WAAW,MAAM,OAAO,KAAK;IAGrD,OAAO,MAAM,MAAM,KAAK,KAAK,CAAC,AAAC,MAAuB,WAAW;AACnE;AAEO,SAAS,0CAAsB,KAAmB;IACvD,yEAAyE;IACzE,uFAAuF;IACvF,kGAAkG;IAClG,mHAAmH;IACnH,oHAAoH;IACpH,8DAA8D;IAC9D,OACE,AAAC,CAAC,CAAA,GAAA,yCAAQ,OAAO,MAAM,KAAK,KAAK,KAAK,MAAM,MAAM,KAAK,KACtD,MAAM,KAAK,KAAK,KACf,MAAM,MAAM,KAAK,KACjB,MAAM,QAAQ,KAAK,KACnB,MAAM,MAAM,KAAK,KACjB,MAAM,WAAW,KAAK;AAG5B","sources":["packages/@react-aria/utils/src/isVirtualEvent.ts"],"sourcesContent":["/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {isAndroid} from './platform';\n\n// Original licensing for the following method can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/blob/3c713d513195a53788b3f8bb4b70279d68b15bcc/packages/react-interactions/events/src/dom/shared/index.js#L74-L87\n\n// Keyboards, Assistive Technologies, and element.click() all produce a \"virtual\"\n// click event. This is a method of inferring such clicks. Every browser except\n// IE 11 only sets a zero value of \"detail\" for click events that are \"virtual\".\n// However, IE 11 uses a zero value for all click events. For IE 11 we rely on\n// the quirk that it produces click events that are of type PointerEvent, and\n// where only the \"virtual\" click lacks a pointerType field.\n\nexport function isVirtualClick(event: MouseEvent | PointerEvent): boolean {\n // JAWS/NVDA with Firefox.\n if ((event as any).mozInputSource === 0 && event.isTrusted) {\n return true;\n }\n\n // Android TalkBack's detail value varies depending on the event listener providing the event so we have specific logic here instead\n // If pointerType is defined, event is from a click listener. For events from mousedown listener, detail === 0 is a sufficient check\n // to detect TalkBack virtual clicks.\n if (isAndroid() && (event as PointerEvent).pointerType) {\n return event.type === 'click' && event.buttons === 1;\n }\n\n return event.detail === 0 && !(event as PointerEvent).pointerType;\n}\n\nexport function isVirtualPointerEvent(event: PointerEvent): boolean {\n // If the pointer size is zero, then we assume it's from a screen reader.\n // Android TalkBack double tap will sometimes return a event with width and height of 1\n // and pointerType === 'mouse' so we need to check for a specific combination of event attributes.\n // Cannot use \"event.pressure === 0\" as the sole check due to Safari pointer events always returning pressure === 0\n // instead of .5, see https://bugs.webkit.org/show_bug.cgi?id=206216. event.pointerType === 'mouse' is to distingush\n // Talkback double tap from Windows Firefox touch screen press\n return (\n (!isAndroid() && event.width === 0 && event.height === 0) ||\n (event.width === 1 &&\n event.height === 1 &&\n event.pressure === 0 &&\n event.detail === 0 &&\n event.pointerType === 'mouse'\n )\n );\n}\n"],"names":[],"version":3,"file":"isVirtualEvent.module.js.map"}
|
||||
26
node_modules/@react-aria/utils/dist/keyboard.main.js
generated
vendored
Normal file
26
node_modules/@react-aria/utils/dist/keyboard.main.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
var $9e20cff0af27e8cc$exports = require("./platform.main.js");
|
||||
|
||||
|
||||
function $parcel$export(e, n, v, s) {
|
||||
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
||||
}
|
||||
|
||||
$parcel$export(module.exports, "isCtrlKeyPressed", () => $2308dc377e184bb0$export$16792effe837dba3);
|
||||
/*
|
||||
* Copyright 2024 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
function $2308dc377e184bb0$export$16792effe837dba3(e) {
|
||||
if ((0, $9e20cff0af27e8cc$exports.isMac)()) return e.metaKey;
|
||||
return e.ctrlKey;
|
||||
}
|
||||
|
||||
|
||||
//# sourceMappingURL=keyboard.main.js.map
|
||||
1
node_modules/@react-aria/utils/dist/keyboard.main.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/keyboard.main.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC;AAUM,SAAS,0CAAiB,CAAQ;IACvC,IAAI,CAAA,GAAA,+BAAI,KACN,OAAO,EAAE,OAAO;IAGlB,OAAO,EAAE,OAAO;AAClB","sources":["packages/@react-aria/utils/src/keyboard.tsx"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {isMac} from './platform';\n\ninterface Event {\n altKey: boolean,\n ctrlKey: boolean,\n metaKey: boolean\n}\n\nexport function isCtrlKeyPressed(e: Event): boolean {\n if (isMac()) {\n return e.metaKey;\n }\n\n return e.ctrlKey;\n}\n"],"names":[],"version":3,"file":"keyboard.main.js.map"}
|
||||
21
node_modules/@react-aria/utils/dist/keyboard.mjs
generated
vendored
Normal file
21
node_modules/@react-aria/utils/dist/keyboard.mjs
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import {isMac as $c87311424ea30a05$export$9ac100e40613ea10} from "./platform.mjs";
|
||||
|
||||
/*
|
||||
* Copyright 2024 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
function $21f1aa98acb08317$export$16792effe837dba3(e) {
|
||||
if ((0, $c87311424ea30a05$export$9ac100e40613ea10)()) return e.metaKey;
|
||||
return e.ctrlKey;
|
||||
}
|
||||
|
||||
|
||||
export {$21f1aa98acb08317$export$16792effe837dba3 as isCtrlKeyPressed};
|
||||
//# sourceMappingURL=keyboard.module.js.map
|
||||
21
node_modules/@react-aria/utils/dist/keyboard.module.js
generated
vendored
Normal file
21
node_modules/@react-aria/utils/dist/keyboard.module.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import {isMac as $c87311424ea30a05$export$9ac100e40613ea10} from "./platform.module.js";
|
||||
|
||||
/*
|
||||
* Copyright 2024 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
function $21f1aa98acb08317$export$16792effe837dba3(e) {
|
||||
if ((0, $c87311424ea30a05$export$9ac100e40613ea10)()) return e.metaKey;
|
||||
return e.ctrlKey;
|
||||
}
|
||||
|
||||
|
||||
export {$21f1aa98acb08317$export$16792effe837dba3 as isCtrlKeyPressed};
|
||||
//# sourceMappingURL=keyboard.module.js.map
|
||||
1
node_modules/@react-aria/utils/dist/keyboard.module.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/keyboard.module.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":";;AAAA;;;;;;;;;;CAUC;AAUM,SAAS,0CAAiB,CAAQ;IACvC,IAAI,CAAA,GAAA,yCAAI,KACN,OAAO,EAAE,OAAO;IAGlB,OAAO,EAAE,OAAO;AAClB","sources":["packages/@react-aria/utils/src/keyboard.tsx"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {isMac} from './platform';\n\ninterface Event {\n altKey: boolean,\n ctrlKey: boolean,\n metaKey: boolean\n}\n\nexport function isCtrlKeyPressed(e: Event): boolean {\n if (isMac()) {\n return e.metaKey;\n }\n\n return e.ctrlKey;\n}\n"],"names":[],"version":3,"file":"keyboard.module.js.map"}
|
||||
172
node_modules/@react-aria/utils/dist/main.js
generated
vendored
Normal file
172
node_modules/@react-aria/utils/dist/main.js
generated
vendored
Normal file
@@ -0,0 +1,172 @@
|
||||
var $8c61827343eed941$exports = require("./useId.main.js");
|
||||
var $1e2191638e54f613$exports = require("./chain.main.js");
|
||||
var $8e13b2545651735a$exports = require("./ShadowTreeWalker.main.js");
|
||||
var $d723bea02f3e2567$exports = require("./DOMFunctions.main.js");
|
||||
var $aaa611146751592e$exports = require("./domHelpers.main.js");
|
||||
var $f847cd1382ea7cd4$exports = require("./mergeProps.main.js");
|
||||
var $f05dc24eafaeb7e2$exports = require("./mergeRefs.main.js");
|
||||
var $8d15d0e1797d4238$exports = require("./filterDOMProps.main.js");
|
||||
var $1117b6c0d4c4c164$exports = require("./focusWithoutScrolling.main.js");
|
||||
var $16ec41ef3e36c19c$exports = require("./getOffset.main.js");
|
||||
var $4068a0fae83b6d84$exports = require("./openLink.main.js");
|
||||
var $e8117ebcab55be6a$exports = require("./runAfterTransition.main.js");
|
||||
var $28ed3fb20343b78b$exports = require("./useDrag1D.main.js");
|
||||
var $4571ff54ac709100$exports = require("./useGlobalListeners.main.js");
|
||||
var $6ec78bde395c477d$exports = require("./useLabels.main.js");
|
||||
var $475b35fe72ba49b3$exports = require("./useObjectRef.main.js");
|
||||
var $29293a6f5c75b37e$exports = require("./useUpdateEffect.main.js");
|
||||
var $0fa310503218f75f$exports = require("./useUpdateLayoutEffect.main.js");
|
||||
var $78605a5d7424e31b$exports = require("./useLayoutEffect.main.js");
|
||||
var $37733e1652f47193$exports = require("./useResizeObserver.main.js");
|
||||
var $6fc733991a9f977c$exports = require("./useSyncRef.main.js");
|
||||
var $d796e7157ac96470$exports = require("./getScrollParent.main.js");
|
||||
var $49f0d9486c2408aa$exports = require("./getScrollParents.main.js");
|
||||
var $9a54e9cd5db23b5d$exports = require("./isScrollable.main.js");
|
||||
var $8b24bab62f5c65ad$exports = require("./useViewportSize.main.js");
|
||||
var $34da4502ea8120db$exports = require("./useDescription.main.js");
|
||||
var $9e20cff0af27e8cc$exports = require("./platform.main.js");
|
||||
var $2a8c0bb1629926c8$exports = require("./useEvent.main.js");
|
||||
var $19a2307bfabafaf1$exports = require("./useValueEffect.main.js");
|
||||
var $449412113267a1fe$exports = require("./scrollIntoView.main.js");
|
||||
var $577e795361f19be9$exports = require("./isVirtualEvent.main.js");
|
||||
var $1254e5bb94ac8761$exports = require("./useEffectEvent.main.js");
|
||||
var $20e6e72fbf5dc81e$exports = require("./useDeepMemo.main.js");
|
||||
var $1f205e845604a423$exports = require("./useFormReset.main.js");
|
||||
var $faa6ccd6fb62f877$exports = require("./useLoadMore.main.js");
|
||||
var $f6a4874a7c582761$exports = require("./useLoadMoreSentinel.main.js");
|
||||
var $13915169b1e4142c$exports = require("./inertValue.main.js");
|
||||
var $a0850d0add29d276$exports = require("./constants.main.js");
|
||||
var $2308dc377e184bb0$exports = require("./keyboard.main.js");
|
||||
var $5bd06107f98811f5$exports = require("./animation.main.js");
|
||||
var $506b33fd893eab7d$exports = require("./isFocusable.main.js");
|
||||
var $1Yh1N$reactstatelyutils = require("@react-stately/utils");
|
||||
|
||||
|
||||
function $parcel$export(e, n, v, s) {
|
||||
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
||||
}
|
||||
|
||||
$parcel$export(module.exports, "useId", () => $8c61827343eed941$exports.useId);
|
||||
$parcel$export(module.exports, "mergeIds", () => $8c61827343eed941$exports.mergeIds);
|
||||
$parcel$export(module.exports, "useSlotId", () => $8c61827343eed941$exports.useSlotId);
|
||||
$parcel$export(module.exports, "chain", () => $1e2191638e54f613$exports.chain);
|
||||
$parcel$export(module.exports, "createShadowTreeWalker", () => $8e13b2545651735a$exports.createShadowTreeWalker);
|
||||
$parcel$export(module.exports, "ShadowTreeWalker", () => $8e13b2545651735a$exports.ShadowTreeWalker);
|
||||
$parcel$export(module.exports, "getActiveElement", () => $d723bea02f3e2567$exports.getActiveElement);
|
||||
$parcel$export(module.exports, "getEventTarget", () => $d723bea02f3e2567$exports.getEventTarget);
|
||||
$parcel$export(module.exports, "nodeContains", () => $d723bea02f3e2567$exports.nodeContains);
|
||||
$parcel$export(module.exports, "getOwnerDocument", () => $aaa611146751592e$exports.getOwnerDocument);
|
||||
$parcel$export(module.exports, "getOwnerWindow", () => $aaa611146751592e$exports.getOwnerWindow);
|
||||
$parcel$export(module.exports, "isShadowRoot", () => $aaa611146751592e$exports.isShadowRoot);
|
||||
$parcel$export(module.exports, "mergeProps", () => $f847cd1382ea7cd4$exports.mergeProps);
|
||||
$parcel$export(module.exports, "mergeRefs", () => $f05dc24eafaeb7e2$exports.mergeRefs);
|
||||
$parcel$export(module.exports, "filterDOMProps", () => $8d15d0e1797d4238$exports.filterDOMProps);
|
||||
$parcel$export(module.exports, "focusWithoutScrolling", () => $1117b6c0d4c4c164$exports.focusWithoutScrolling);
|
||||
$parcel$export(module.exports, "getOffset", () => $16ec41ef3e36c19c$exports.getOffset);
|
||||
$parcel$export(module.exports, "openLink", () => $4068a0fae83b6d84$exports.openLink);
|
||||
$parcel$export(module.exports, "getSyntheticLinkProps", () => $4068a0fae83b6d84$exports.getSyntheticLinkProps);
|
||||
$parcel$export(module.exports, "useSyntheticLinkProps", () => $4068a0fae83b6d84$exports.useSyntheticLinkProps);
|
||||
$parcel$export(module.exports, "RouterProvider", () => $4068a0fae83b6d84$exports.RouterProvider);
|
||||
$parcel$export(module.exports, "shouldClientNavigate", () => $4068a0fae83b6d84$exports.shouldClientNavigate);
|
||||
$parcel$export(module.exports, "useRouter", () => $4068a0fae83b6d84$exports.useRouter);
|
||||
$parcel$export(module.exports, "useLinkProps", () => $4068a0fae83b6d84$exports.useLinkProps);
|
||||
$parcel$export(module.exports, "runAfterTransition", () => $e8117ebcab55be6a$exports.runAfterTransition);
|
||||
$parcel$export(module.exports, "useDrag1D", () => $28ed3fb20343b78b$exports.useDrag1D);
|
||||
$parcel$export(module.exports, "useGlobalListeners", () => $4571ff54ac709100$exports.useGlobalListeners);
|
||||
$parcel$export(module.exports, "useLabels", () => $6ec78bde395c477d$exports.useLabels);
|
||||
$parcel$export(module.exports, "useObjectRef", () => $475b35fe72ba49b3$exports.useObjectRef);
|
||||
$parcel$export(module.exports, "useUpdateEffect", () => $29293a6f5c75b37e$exports.useUpdateEffect);
|
||||
$parcel$export(module.exports, "useUpdateLayoutEffect", () => $0fa310503218f75f$exports.useUpdateLayoutEffect);
|
||||
$parcel$export(module.exports, "useLayoutEffect", () => $78605a5d7424e31b$exports.useLayoutEffect);
|
||||
$parcel$export(module.exports, "useResizeObserver", () => $37733e1652f47193$exports.useResizeObserver);
|
||||
$parcel$export(module.exports, "useSyncRef", () => $6fc733991a9f977c$exports.useSyncRef);
|
||||
$parcel$export(module.exports, "getScrollParent", () => $d796e7157ac96470$exports.getScrollParent);
|
||||
$parcel$export(module.exports, "getScrollParents", () => $49f0d9486c2408aa$exports.getScrollParents);
|
||||
$parcel$export(module.exports, "isScrollable", () => $9a54e9cd5db23b5d$exports.isScrollable);
|
||||
$parcel$export(module.exports, "useViewportSize", () => $8b24bab62f5c65ad$exports.useViewportSize);
|
||||
$parcel$export(module.exports, "useDescription", () => $34da4502ea8120db$exports.useDescription);
|
||||
$parcel$export(module.exports, "isMac", () => $9e20cff0af27e8cc$exports.isMac);
|
||||
$parcel$export(module.exports, "isIPhone", () => $9e20cff0af27e8cc$exports.isIPhone);
|
||||
$parcel$export(module.exports, "isIPad", () => $9e20cff0af27e8cc$exports.isIPad);
|
||||
$parcel$export(module.exports, "isIOS", () => $9e20cff0af27e8cc$exports.isIOS);
|
||||
$parcel$export(module.exports, "isAppleDevice", () => $9e20cff0af27e8cc$exports.isAppleDevice);
|
||||
$parcel$export(module.exports, "isWebKit", () => $9e20cff0af27e8cc$exports.isWebKit);
|
||||
$parcel$export(module.exports, "isChrome", () => $9e20cff0af27e8cc$exports.isChrome);
|
||||
$parcel$export(module.exports, "isAndroid", () => $9e20cff0af27e8cc$exports.isAndroid);
|
||||
$parcel$export(module.exports, "isFirefox", () => $9e20cff0af27e8cc$exports.isFirefox);
|
||||
$parcel$export(module.exports, "useEvent", () => $2a8c0bb1629926c8$exports.useEvent);
|
||||
$parcel$export(module.exports, "useValueEffect", () => $19a2307bfabafaf1$exports.useValueEffect);
|
||||
$parcel$export(module.exports, "scrollIntoView", () => $449412113267a1fe$exports.scrollIntoView);
|
||||
$parcel$export(module.exports, "scrollIntoViewport", () => $449412113267a1fe$exports.scrollIntoViewport);
|
||||
$parcel$export(module.exports, "clamp", () => $1Yh1N$reactstatelyutils.clamp);
|
||||
$parcel$export(module.exports, "snapValueToStep", () => $1Yh1N$reactstatelyutils.snapValueToStep);
|
||||
$parcel$export(module.exports, "isVirtualClick", () => $577e795361f19be9$exports.isVirtualClick);
|
||||
$parcel$export(module.exports, "isVirtualPointerEvent", () => $577e795361f19be9$exports.isVirtualPointerEvent);
|
||||
$parcel$export(module.exports, "useEffectEvent", () => $1254e5bb94ac8761$exports.useEffectEvent);
|
||||
$parcel$export(module.exports, "useDeepMemo", () => $20e6e72fbf5dc81e$exports.useDeepMemo);
|
||||
$parcel$export(module.exports, "useFormReset", () => $1f205e845604a423$exports.useFormReset);
|
||||
$parcel$export(module.exports, "useLoadMore", () => $faa6ccd6fb62f877$exports.useLoadMore);
|
||||
$parcel$export(module.exports, "UNSTABLE_useLoadMoreSentinel", () => $f6a4874a7c582761$exports.UNSTABLE_useLoadMoreSentinel);
|
||||
$parcel$export(module.exports, "inertValue", () => $13915169b1e4142c$exports.inertValue);
|
||||
$parcel$export(module.exports, "CLEAR_FOCUS_EVENT", () => $a0850d0add29d276$exports.CLEAR_FOCUS_EVENT);
|
||||
$parcel$export(module.exports, "FOCUS_EVENT", () => $a0850d0add29d276$exports.FOCUS_EVENT);
|
||||
$parcel$export(module.exports, "isCtrlKeyPressed", () => $2308dc377e184bb0$exports.isCtrlKeyPressed);
|
||||
$parcel$export(module.exports, "useEnterAnimation", () => $5bd06107f98811f5$exports.useEnterAnimation);
|
||||
$parcel$export(module.exports, "useExitAnimation", () => $5bd06107f98811f5$exports.useExitAnimation);
|
||||
$parcel$export(module.exports, "isFocusable", () => $506b33fd893eab7d$exports.isFocusable);
|
||||
$parcel$export(module.exports, "isTabbable", () => $506b33fd893eab7d$exports.isTabbable);
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//# sourceMappingURL=main.js.map
|
||||
1
node_modules/@react-aria/utils/dist/main.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/main.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-aria/utils/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nexport {useId, mergeIds, useSlotId} from './useId';\nexport {chain} from './chain';\nexport {createShadowTreeWalker, ShadowTreeWalker} from './shadowdom/ShadowTreeWalker';\nexport {getActiveElement, getEventTarget, nodeContains} from './shadowdom/DOMFunctions';\nexport {getOwnerDocument, getOwnerWindow, isShadowRoot} from './domHelpers';\nexport {mergeProps} from './mergeProps';\nexport {mergeRefs} from './mergeRefs';\nexport {filterDOMProps} from './filterDOMProps';\nexport {focusWithoutScrolling} from './focusWithoutScrolling';\nexport {getOffset} from './getOffset';\nexport {openLink, getSyntheticLinkProps, useSyntheticLinkProps, RouterProvider, shouldClientNavigate, useRouter, useLinkProps} from './openLink';\nexport {runAfterTransition} from './runAfterTransition';\nexport {useDrag1D} from './useDrag1D';\nexport {useGlobalListeners} from './useGlobalListeners';\nexport {useLabels} from './useLabels';\nexport {useObjectRef} from './useObjectRef';\nexport {useUpdateEffect} from './useUpdateEffect';\nexport {useUpdateLayoutEffect} from './useUpdateLayoutEffect';\nexport {useLayoutEffect} from './useLayoutEffect';\nexport {useResizeObserver} from './useResizeObserver';\nexport {useSyncRef} from './useSyncRef';\nexport {getScrollParent} from './getScrollParent';\nexport {getScrollParents} from './getScrollParents';\nexport {isScrollable} from './isScrollable';\nexport {useViewportSize} from './useViewportSize';\nexport {useDescription} from './useDescription';\nexport {isMac, isIPhone, isIPad, isIOS, isAppleDevice, isWebKit, isChrome, isAndroid, isFirefox} from './platform';\nexport {useEvent} from './useEvent';\nexport {useValueEffect} from './useValueEffect';\nexport {scrollIntoView, scrollIntoViewport} from './scrollIntoView';\nexport {clamp, snapValueToStep} from '@react-stately/utils';\nexport {isVirtualClick, isVirtualPointerEvent} from './isVirtualEvent';\nexport {useEffectEvent} from './useEffectEvent';\nexport {useDeepMemo} from './useDeepMemo';\nexport {useFormReset} from './useFormReset';\nexport {useLoadMore} from './useLoadMore';\nexport {UNSTABLE_useLoadMoreSentinel} from './useLoadMoreSentinel';\nexport {inertValue} from './inertValue';\nexport {CLEAR_FOCUS_EVENT, FOCUS_EVENT} from './constants';\nexport {isCtrlKeyPressed} from './keyboard';\nexport {useEnterAnimation, useExitAnimation} from './animation';\nexport {isFocusable, isTabbable} from './isFocusable';\n\nexport type {LoadMoreSentinelProps} from './useLoadMoreSentinel';\n"],"names":[],"version":3,"file":"main.js.map"}
|
||||
51
node_modules/@react-aria/utils/dist/mergeProps.main.js
generated
vendored
Normal file
51
node_modules/@react-aria/utils/dist/mergeProps.main.js
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
var $1e2191638e54f613$exports = require("./chain.main.js");
|
||||
var $8c61827343eed941$exports = require("./useId.main.js");
|
||||
var $eVrjB$clsx = require("clsx");
|
||||
|
||||
|
||||
function $parcel$interopDefault(a) {
|
||||
return a && a.__esModule ? a.default : a;
|
||||
}
|
||||
|
||||
function $parcel$export(e, n, v, s) {
|
||||
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
||||
}
|
||||
|
||||
$parcel$export(module.exports, "mergeProps", () => $f847cd1382ea7cd4$export$9d1611c77c2fe928);
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
function $f847cd1382ea7cd4$export$9d1611c77c2fe928(...args) {
|
||||
// Start with a base clone of the first argument. This is a lot faster than starting
|
||||
// with an empty object and adding properties as we go.
|
||||
let result = {
|
||||
...args[0]
|
||||
};
|
||||
for(let i = 1; i < args.length; i++){
|
||||
let props = args[i];
|
||||
for(let key in props){
|
||||
let a = result[key];
|
||||
let b = props[key];
|
||||
// Chain events
|
||||
if (typeof a === 'function' && typeof b === 'function' && // This is a lot faster than a regex.
|
||||
key[0] === 'o' && key[1] === 'n' && key.charCodeAt(2) >= /* 'A' */ 65 && key.charCodeAt(2) <= /* 'Z' */ 90) result[key] = (0, $1e2191638e54f613$exports.chain)(a, b);
|
||||
else if ((key === 'className' || key === 'UNSAFE_className') && typeof a === 'string' && typeof b === 'string') result[key] = (0, ($parcel$interopDefault($eVrjB$clsx)))(a, b);
|
||||
else if (key === 'id' && a && b) result.id = (0, $8c61827343eed941$exports.mergeIds)(a, b);
|
||||
else result[key] = b !== undefined ? b : a;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
//# sourceMappingURL=mergeProps.main.js.map
|
||||
1
node_modules/@react-aria/utils/dist/mergeProps.main.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/mergeProps.main.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;AAyBM,SAAS,0CAAiC,GAAG,IAAO;IACzD,oFAAoF;IACpF,uDAAuD;IACvD,IAAI,SAAgB;QAAC,GAAG,IAAI,CAAC,EAAE;IAAA;IAC/B,IAAK,IAAI,IAAI,GAAG,IAAI,KAAK,MAAM,EAAE,IAAK;QACpC,IAAI,QAAQ,IAAI,CAAC,EAAE;QACnB,IAAK,IAAI,OAAO,MAAO;YACrB,IAAI,IAAI,MAAM,CAAC,IAAI;YACnB,IAAI,IAAI,KAAK,CAAC,IAAI;YAElB,eAAe;YACf,IACE,OAAO,MAAM,cACb,OAAO,MAAM,cACb,qCAAqC;YACrC,GAAG,CAAC,EAAE,KAAK,OACX,GAAG,CAAC,EAAE,KAAK,OACX,IAAI,UAAU,CAAC,MAAM,OAAO,GAAG,MAC/B,IAAI,UAAU,CAAC,MAAM,OAAO,GAAG,IAE/B,MAAM,CAAC,IAAI,GAAG,CAAA,GAAA,+BAAI,EAAE,GAAG;iBAGlB,IACL,AAAC,CAAA,QAAQ,eAAe,QAAQ,kBAAiB,KACjD,OAAO,MAAM,YACb,OAAO,MAAM,UAEb,MAAM,CAAC,IAAI,GAAG,CAAA,GAAA,qCAAG,EAAE,GAAG;iBACjB,IAAI,QAAQ,QAAQ,KAAK,GAC9B,OAAO,EAAE,GAAG,CAAA,GAAA,kCAAO,EAAE,GAAG;iBAGxB,MAAM,CAAC,IAAI,GAAG,MAAM,YAAY,IAAI;QAExC;IACF;IAEA,OAAO;AACT","sources":["packages/@react-aria/utils/src/mergeProps.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {chain} from './chain';\nimport clsx from 'clsx';\nimport {mergeIds} from './useId';\n\ninterface Props {\n [key: string]: any\n}\n\ntype PropsArg = Props | null | undefined;\n\n// taken from: https://stackoverflow.com/questions/51603250/typescript-3-parameter-list-intersection-type/51604379#51604379\ntype TupleTypes<T> = { [P in keyof T]: T[P] } extends { [key: number]: infer V } ? NullToObject<V> : never;\ntype NullToObject<T> = T extends (null | undefined) ? {} : T;\n\ntype UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never;\n\n/**\n * Merges multiple props objects together. Event handlers are chained,\n * classNames are combined, and ids are deduplicated - different ids\n * will trigger a side-effect and re-render components hooked up with `useId`.\n * For all other props, the last prop object overrides all previous ones.\n * @param args - Multiple sets of props to merge together.\n */\nexport function mergeProps<T extends PropsArg[]>(...args: T): UnionToIntersection<TupleTypes<T>> {\n // Start with a base clone of the first argument. This is a lot faster than starting\n // with an empty object and adding properties as we go.\n let result: Props = {...args[0]};\n for (let i = 1; i < args.length; i++) {\n let props = args[i];\n for (let key in props) {\n let a = result[key];\n let b = props[key];\n\n // Chain events\n if (\n typeof a === 'function' &&\n typeof b === 'function' &&\n // This is a lot faster than a regex.\n key[0] === 'o' &&\n key[1] === 'n' &&\n key.charCodeAt(2) >= /* 'A' */ 65 &&\n key.charCodeAt(2) <= /* 'Z' */ 90\n ) {\n result[key] = chain(a, b);\n\n // Merge classnames, sometimes classNames are empty string which eval to false, so we just need to do a type check\n } else if (\n (key === 'className' || key === 'UNSAFE_className') &&\n typeof a === 'string' &&\n typeof b === 'string'\n ) {\n result[key] = clsx(a, b);\n } else if (key === 'id' && a && b) {\n result.id = mergeIds(a, b);\n // Override others\n } else {\n result[key] = b !== undefined ? b : a;\n }\n }\n }\n\n return result as UnionToIntersection<TupleTypes<T>>;\n}\n"],"names":[],"version":3,"file":"mergeProps.main.js.map"}
|
||||
42
node_modules/@react-aria/utils/dist/mergeProps.mjs
generated
vendored
Normal file
42
node_modules/@react-aria/utils/dist/mergeProps.mjs
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
import {chain as $ff5963eb1fccf552$export$e08e3b67e392101e} from "./chain.mjs";
|
||||
import {mergeIds as $bdb11010cef70236$export$cd8c9cb68f842629} from "./useId.mjs";
|
||||
import $7jXr9$clsx from "clsx";
|
||||
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
function $3ef42575df84b30b$export$9d1611c77c2fe928(...args) {
|
||||
// Start with a base clone of the first argument. This is a lot faster than starting
|
||||
// with an empty object and adding properties as we go.
|
||||
let result = {
|
||||
...args[0]
|
||||
};
|
||||
for(let i = 1; i < args.length; i++){
|
||||
let props = args[i];
|
||||
for(let key in props){
|
||||
let a = result[key];
|
||||
let b = props[key];
|
||||
// Chain events
|
||||
if (typeof a === 'function' && typeof b === 'function' && // This is a lot faster than a regex.
|
||||
key[0] === 'o' && key[1] === 'n' && key.charCodeAt(2) >= /* 'A' */ 65 && key.charCodeAt(2) <= /* 'Z' */ 90) result[key] = (0, $ff5963eb1fccf552$export$e08e3b67e392101e)(a, b);
|
||||
else if ((key === 'className' || key === 'UNSAFE_className') && typeof a === 'string' && typeof b === 'string') result[key] = (0, $7jXr9$clsx)(a, b);
|
||||
else if (key === 'id' && a && b) result.id = (0, $bdb11010cef70236$export$cd8c9cb68f842629)(a, b);
|
||||
else result[key] = b !== undefined ? b : a;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
export {$3ef42575df84b30b$export$9d1611c77c2fe928 as mergeProps};
|
||||
//# sourceMappingURL=mergeProps.module.js.map
|
||||
42
node_modules/@react-aria/utils/dist/mergeProps.module.js
generated
vendored
Normal file
42
node_modules/@react-aria/utils/dist/mergeProps.module.js
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
import {chain as $ff5963eb1fccf552$export$e08e3b67e392101e} from "./chain.module.js";
|
||||
import {mergeIds as $bdb11010cef70236$export$cd8c9cb68f842629} from "./useId.module.js";
|
||||
import $7jXr9$clsx from "clsx";
|
||||
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
function $3ef42575df84b30b$export$9d1611c77c2fe928(...args) {
|
||||
// Start with a base clone of the first argument. This is a lot faster than starting
|
||||
// with an empty object and adding properties as we go.
|
||||
let result = {
|
||||
...args[0]
|
||||
};
|
||||
for(let i = 1; i < args.length; i++){
|
||||
let props = args[i];
|
||||
for(let key in props){
|
||||
let a = result[key];
|
||||
let b = props[key];
|
||||
// Chain events
|
||||
if (typeof a === 'function' && typeof b === 'function' && // This is a lot faster than a regex.
|
||||
key[0] === 'o' && key[1] === 'n' && key.charCodeAt(2) >= /* 'A' */ 65 && key.charCodeAt(2) <= /* 'Z' */ 90) result[key] = (0, $ff5963eb1fccf552$export$e08e3b67e392101e)(a, b);
|
||||
else if ((key === 'className' || key === 'UNSAFE_className') && typeof a === 'string' && typeof b === 'string') result[key] = (0, $7jXr9$clsx)(a, b);
|
||||
else if (key === 'id' && a && b) result.id = (0, $bdb11010cef70236$export$cd8c9cb68f842629)(a, b);
|
||||
else result[key] = b !== undefined ? b : a;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
export {$3ef42575df84b30b$export$9d1611c77c2fe928 as mergeProps};
|
||||
//# sourceMappingURL=mergeProps.module.js.map
|
||||
1
node_modules/@react-aria/utils/dist/mergeProps.module.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/mergeProps.module.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":";;;;AAAA;;;;;;;;;;CAUC;;;AAyBM,SAAS,0CAAiC,GAAG,IAAO;IACzD,oFAAoF;IACpF,uDAAuD;IACvD,IAAI,SAAgB;QAAC,GAAG,IAAI,CAAC,EAAE;IAAA;IAC/B,IAAK,IAAI,IAAI,GAAG,IAAI,KAAK,MAAM,EAAE,IAAK;QACpC,IAAI,QAAQ,IAAI,CAAC,EAAE;QACnB,IAAK,IAAI,OAAO,MAAO;YACrB,IAAI,IAAI,MAAM,CAAC,IAAI;YACnB,IAAI,IAAI,KAAK,CAAC,IAAI;YAElB,eAAe;YACf,IACE,OAAO,MAAM,cACb,OAAO,MAAM,cACb,qCAAqC;YACrC,GAAG,CAAC,EAAE,KAAK,OACX,GAAG,CAAC,EAAE,KAAK,OACX,IAAI,UAAU,CAAC,MAAM,OAAO,GAAG,MAC/B,IAAI,UAAU,CAAC,MAAM,OAAO,GAAG,IAE/B,MAAM,CAAC,IAAI,GAAG,CAAA,GAAA,yCAAI,EAAE,GAAG;iBAGlB,IACL,AAAC,CAAA,QAAQ,eAAe,QAAQ,kBAAiB,KACjD,OAAO,MAAM,YACb,OAAO,MAAM,UAEb,MAAM,CAAC,IAAI,GAAG,CAAA,GAAA,WAAG,EAAE,GAAG;iBACjB,IAAI,QAAQ,QAAQ,KAAK,GAC9B,OAAO,EAAE,GAAG,CAAA,GAAA,yCAAO,EAAE,GAAG;iBAGxB,MAAM,CAAC,IAAI,GAAG,MAAM,YAAY,IAAI;QAExC;IACF;IAEA,OAAO;AACT","sources":["packages/@react-aria/utils/src/mergeProps.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {chain} from './chain';\nimport clsx from 'clsx';\nimport {mergeIds} from './useId';\n\ninterface Props {\n [key: string]: any\n}\n\ntype PropsArg = Props | null | undefined;\n\n// taken from: https://stackoverflow.com/questions/51603250/typescript-3-parameter-list-intersection-type/51604379#51604379\ntype TupleTypes<T> = { [P in keyof T]: T[P] } extends { [key: number]: infer V } ? NullToObject<V> : never;\ntype NullToObject<T> = T extends (null | undefined) ? {} : T;\n\ntype UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never;\n\n/**\n * Merges multiple props objects together. Event handlers are chained,\n * classNames are combined, and ids are deduplicated - different ids\n * will trigger a side-effect and re-render components hooked up with `useId`.\n * For all other props, the last prop object overrides all previous ones.\n * @param args - Multiple sets of props to merge together.\n */\nexport function mergeProps<T extends PropsArg[]>(...args: T): UnionToIntersection<TupleTypes<T>> {\n // Start with a base clone of the first argument. This is a lot faster than starting\n // with an empty object and adding properties as we go.\n let result: Props = {...args[0]};\n for (let i = 1; i < args.length; i++) {\n let props = args[i];\n for (let key in props) {\n let a = result[key];\n let b = props[key];\n\n // Chain events\n if (\n typeof a === 'function' &&\n typeof b === 'function' &&\n // This is a lot faster than a regex.\n key[0] === 'o' &&\n key[1] === 'n' &&\n key.charCodeAt(2) >= /* 'A' */ 65 &&\n key.charCodeAt(2) <= /* 'Z' */ 90\n ) {\n result[key] = chain(a, b);\n\n // Merge classnames, sometimes classNames are empty string which eval to false, so we just need to do a type check\n } else if (\n (key === 'className' || key === 'UNSAFE_className') &&\n typeof a === 'string' &&\n typeof b === 'string'\n ) {\n result[key] = clsx(a, b);\n } else if (key === 'id' && a && b) {\n result.id = mergeIds(a, b);\n // Override others\n } else {\n result[key] = b !== undefined ? b : a;\n }\n }\n }\n\n return result as UnionToIntersection<TupleTypes<T>>;\n}\n"],"names":[],"version":3,"file":"mergeProps.module.js.map"}
|
||||
40
node_modules/@react-aria/utils/dist/mergeRefs.main.js
generated
vendored
Normal file
40
node_modules/@react-aria/utils/dist/mergeRefs.main.js
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
|
||||
function $parcel$export(e, n, v, s) {
|
||||
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
||||
}
|
||||
|
||||
$parcel$export(module.exports, "mergeRefs", () => $f05dc24eafaeb7e2$export$c9058316764c140e);
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/ function $f05dc24eafaeb7e2$export$c9058316764c140e(...refs) {
|
||||
if (refs.length === 1 && refs[0]) return refs[0];
|
||||
return (value)=>{
|
||||
let hasCleanup = false;
|
||||
const cleanups = refs.map((ref)=>{
|
||||
const cleanup = $f05dc24eafaeb7e2$var$setRef(ref, value);
|
||||
hasCleanup || (hasCleanup = typeof cleanup == 'function');
|
||||
return cleanup;
|
||||
});
|
||||
if (hasCleanup) return ()=>{
|
||||
cleanups.forEach((cleanup, i)=>{
|
||||
if (typeof cleanup === 'function') cleanup();
|
||||
else $f05dc24eafaeb7e2$var$setRef(refs[i], null);
|
||||
});
|
||||
};
|
||||
};
|
||||
}
|
||||
function $f05dc24eafaeb7e2$var$setRef(ref, value) {
|
||||
if (typeof ref === 'function') return ref(value);
|
||||
else if (ref != null) ref.current = value;
|
||||
}
|
||||
|
||||
|
||||
//# sourceMappingURL=mergeRefs.main.js.map
|
||||
1
node_modules/@react-aria/utils/dist/mergeRefs.main.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/mergeRefs.main.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":";;;;;;AAAA;;;;;;;;;;CAUC,GAOM,SAAS,0CAAa,GAAG,IAA4D;IAC1F,IAAI,KAAK,MAAM,KAAK,KAAK,IAAI,CAAC,EAAE,EAC9B,OAAO,IAAI,CAAC,EAAE;IAGhB,OAAO,CAAC;QACN,IAAI,aAAa;QAEjB,MAAM,WAAW,KAAK,GAAG,CAAC,CAAA;YACxB,MAAM,UAAU,6BAAO,KAAK;YAC5B,eAAA,aAAe,OAAO,WAAW;YACjC,OAAO;QACT;QAEA,IAAI,YACF,OAAO;YACL,SAAS,OAAO,CAAC,CAAC,SAAS;gBACzB,IAAI,OAAO,YAAY,YACrB;qBAEA,6BAAO,IAAI,CAAC,EAAE,EAAE;YAEpB;QACF;IAEJ;AACF;AAEA,SAAS,6BAAU,GAAoD,EAAE,KAAQ;IAC/E,IAAI,OAAO,QAAQ,YACjB,OAAO,IAAI;SACN,IAAI,OAAO,MAChB,IAAI,OAAO,GAAG;AAElB","sources":["packages/@react-aria/utils/src/mergeRefs.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {MutableRefObject, Ref} from 'react';\n\n/**\n * Merges multiple refs into one. Works with either callback or object refs.\n */\nexport function mergeRefs<T>(...refs: Array<Ref<T> | MutableRefObject<T> | null | undefined>): Ref<T> {\n if (refs.length === 1 && refs[0]) {\n return refs[0];\n }\n\n return (value: T | null) => {\n let hasCleanup = false;\n\n const cleanups = refs.map(ref => {\n const cleanup = setRef(ref, value);\n hasCleanup ||= typeof cleanup == 'function';\n return cleanup;\n });\n\n if (hasCleanup) {\n return () => {\n cleanups.forEach((cleanup, i) => {\n if (typeof cleanup === 'function') {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n });\n };\n }\n };\n}\n\nfunction setRef<T>(ref: Ref<T> | MutableRefObject<T> | null | undefined, value: T) {\n if (typeof ref === 'function') {\n return ref(value);\n } else if (ref != null) {\n ref.current = value;\n }\n}\n"],"names":[],"version":3,"file":"mergeRefs.main.js.map"}
|
||||
35
node_modules/@react-aria/utils/dist/mergeRefs.mjs
generated
vendored
Normal file
35
node_modules/@react-aria/utils/dist/mergeRefs.mjs
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/ function $5dc95899b306f630$export$c9058316764c140e(...refs) {
|
||||
if (refs.length === 1 && refs[0]) return refs[0];
|
||||
return (value)=>{
|
||||
let hasCleanup = false;
|
||||
const cleanups = refs.map((ref)=>{
|
||||
const cleanup = $5dc95899b306f630$var$setRef(ref, value);
|
||||
hasCleanup || (hasCleanup = typeof cleanup == 'function');
|
||||
return cleanup;
|
||||
});
|
||||
if (hasCleanup) return ()=>{
|
||||
cleanups.forEach((cleanup, i)=>{
|
||||
if (typeof cleanup === 'function') cleanup();
|
||||
else $5dc95899b306f630$var$setRef(refs[i], null);
|
||||
});
|
||||
};
|
||||
};
|
||||
}
|
||||
function $5dc95899b306f630$var$setRef(ref, value) {
|
||||
if (typeof ref === 'function') return ref(value);
|
||||
else if (ref != null) ref.current = value;
|
||||
}
|
||||
|
||||
|
||||
export {$5dc95899b306f630$export$c9058316764c140e as mergeRefs};
|
||||
//# sourceMappingURL=mergeRefs.module.js.map
|
||||
35
node_modules/@react-aria/utils/dist/mergeRefs.module.js
generated
vendored
Normal file
35
node_modules/@react-aria/utils/dist/mergeRefs.module.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/ function $5dc95899b306f630$export$c9058316764c140e(...refs) {
|
||||
if (refs.length === 1 && refs[0]) return refs[0];
|
||||
return (value)=>{
|
||||
let hasCleanup = false;
|
||||
const cleanups = refs.map((ref)=>{
|
||||
const cleanup = $5dc95899b306f630$var$setRef(ref, value);
|
||||
hasCleanup || (hasCleanup = typeof cleanup == 'function');
|
||||
return cleanup;
|
||||
});
|
||||
if (hasCleanup) return ()=>{
|
||||
cleanups.forEach((cleanup, i)=>{
|
||||
if (typeof cleanup === 'function') cleanup();
|
||||
else $5dc95899b306f630$var$setRef(refs[i], null);
|
||||
});
|
||||
};
|
||||
};
|
||||
}
|
||||
function $5dc95899b306f630$var$setRef(ref, value) {
|
||||
if (typeof ref === 'function') return ref(value);
|
||||
else if (ref != null) ref.current = value;
|
||||
}
|
||||
|
||||
|
||||
export {$5dc95899b306f630$export$c9058316764c140e as mergeRefs};
|
||||
//# sourceMappingURL=mergeRefs.module.js.map
|
||||
1
node_modules/@react-aria/utils/dist/mergeRefs.module.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/mergeRefs.module.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":"AAAA;;;;;;;;;;CAUC,GAOM,SAAS,0CAAa,GAAG,IAA4D;IAC1F,IAAI,KAAK,MAAM,KAAK,KAAK,IAAI,CAAC,EAAE,EAC9B,OAAO,IAAI,CAAC,EAAE;IAGhB,OAAO,CAAC;QACN,IAAI,aAAa;QAEjB,MAAM,WAAW,KAAK,GAAG,CAAC,CAAA;YACxB,MAAM,UAAU,6BAAO,KAAK;YAC5B,eAAA,aAAe,OAAO,WAAW;YACjC,OAAO;QACT;QAEA,IAAI,YACF,OAAO;YACL,SAAS,OAAO,CAAC,CAAC,SAAS;gBACzB,IAAI,OAAO,YAAY,YACrB;qBAEA,6BAAO,IAAI,CAAC,EAAE,EAAE;YAEpB;QACF;IAEJ;AACF;AAEA,SAAS,6BAAU,GAAoD,EAAE,KAAQ;IAC/E,IAAI,OAAO,QAAQ,YACjB,OAAO,IAAI;SACN,IAAI,OAAO,MAChB,IAAI,OAAO,GAAG;AAElB","sources":["packages/@react-aria/utils/src/mergeRefs.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {MutableRefObject, Ref} from 'react';\n\n/**\n * Merges multiple refs into one. Works with either callback or object refs.\n */\nexport function mergeRefs<T>(...refs: Array<Ref<T> | MutableRefObject<T> | null | undefined>): Ref<T> {\n if (refs.length === 1 && refs[0]) {\n return refs[0];\n }\n\n return (value: T | null) => {\n let hasCleanup = false;\n\n const cleanups = refs.map(ref => {\n const cleanup = setRef(ref, value);\n hasCleanup ||= typeof cleanup == 'function';\n return cleanup;\n });\n\n if (hasCleanup) {\n return () => {\n cleanups.forEach((cleanup, i) => {\n if (typeof cleanup === 'function') {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n });\n };\n }\n };\n}\n\nfunction setRef<T>(ref: Ref<T> | MutableRefObject<T> | null | undefined, value: T) {\n if (typeof ref === 'function') {\n return ref(value);\n } else if (ref != null) {\n ref.current = value;\n }\n}\n"],"names":[],"version":3,"file":"mergeRefs.module.js.map"}
|
||||
99
node_modules/@react-aria/utils/dist/module.js
generated
vendored
Normal file
99
node_modules/@react-aria/utils/dist/module.js
generated
vendored
Normal file
@@ -0,0 +1,99 @@
|
||||
import {mergeIds as $bdb11010cef70236$export$cd8c9cb68f842629, useId as $bdb11010cef70236$export$f680877a34711e37, useSlotId as $bdb11010cef70236$export$b4cc09c592e8fdb8} from "./useId.module.js";
|
||||
import {chain as $ff5963eb1fccf552$export$e08e3b67e392101e} from "./chain.module.js";
|
||||
import {createShadowTreeWalker as $dfc540311bf7f109$export$4d0f8be8b12a7ef6, ShadowTreeWalker as $dfc540311bf7f109$export$63eb3ababa9c55c4} from "./ShadowTreeWalker.module.js";
|
||||
import {getActiveElement as $d4ee10de306f2510$export$cd4e5573fbe2b576, getEventTarget as $d4ee10de306f2510$export$e58f029f0fbfdb29, nodeContains as $d4ee10de306f2510$export$4282f70798064fe0} from "./DOMFunctions.module.js";
|
||||
import {getOwnerDocument as $431fbd86ca7dc216$export$b204af158042fbac, getOwnerWindow as $431fbd86ca7dc216$export$f21a1ffae260145a, isShadowRoot as $431fbd86ca7dc216$export$af51f0f06c0f328a} from "./domHelpers.module.js";
|
||||
import {mergeProps as $3ef42575df84b30b$export$9d1611c77c2fe928} from "./mergeProps.module.js";
|
||||
import {mergeRefs as $5dc95899b306f630$export$c9058316764c140e} from "./mergeRefs.module.js";
|
||||
import {filterDOMProps as $65484d02dcb7eb3e$export$457c3d6518dd4c6f} from "./filterDOMProps.module.js";
|
||||
import {focusWithoutScrolling as $7215afc6de606d6b$export$de79e2c695e052f3} from "./focusWithoutScrolling.module.js";
|
||||
import {getOffset as $ab71dadb03a6fb2e$export$622cea445a1c5b7d} from "./getOffset.module.js";
|
||||
import {getSyntheticLinkProps as $ea8dcbcb9ea1b556$export$51437d503373d223, openLink as $ea8dcbcb9ea1b556$export$95185d699e05d4d7, RouterProvider as $ea8dcbcb9ea1b556$export$323e4fc2fa4753fb, shouldClientNavigate as $ea8dcbcb9ea1b556$export$efa8c9099e530235, useLinkProps as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18, useRouter as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, useSyntheticLinkProps as $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6} from "./openLink.module.js";
|
||||
import {runAfterTransition as $bbed8b41f857bcc0$export$24490316f764c430} from "./runAfterTransition.module.js";
|
||||
import {useDrag1D as $9cc09df9fd7676be$export$7bbed75feba39706} from "./useDrag1D.module.js";
|
||||
import {useGlobalListeners as $03deb23ff14920c4$export$4eaf04e54aa8eed6} from "./useGlobalListeners.module.js";
|
||||
import {useLabels as $313b98861ee5dd6c$export$d6875122194c7b44} from "./useLabels.module.js";
|
||||
import {useObjectRef as $df56164dff5785e2$export$4338b53315abf666} from "./useObjectRef.module.js";
|
||||
import {useUpdateEffect as $4f58c5f72bcf79f7$export$496315a1608d9602} from "./useUpdateEffect.module.js";
|
||||
import {useUpdateLayoutEffect as $ca9b37712f007381$export$72ef708ab07251f1} from "./useUpdateLayoutEffect.module.js";
|
||||
import {useLayoutEffect as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c} from "./useLayoutEffect.module.js";
|
||||
import {useResizeObserver as $9daab02d461809db$export$683480f191c0e3ea} from "./useResizeObserver.module.js";
|
||||
import {useSyncRef as $e7801be82b4b2a53$export$4debdb1a3f0fa79e} from "./useSyncRef.module.js";
|
||||
import {getScrollParent as $62d8ded9296f3872$export$cfa2225e87938781} from "./getScrollParent.module.js";
|
||||
import {getScrollParents as $a40c673dc9f6d9c7$export$94ed1c92c7beeb22} from "./getScrollParents.module.js";
|
||||
import {isScrollable as $cc38e7bd3fc7b213$export$2bb74740c4e19def} from "./isScrollable.module.js";
|
||||
import {useViewportSize as $5df64b3807dc15ee$export$d699905dd57c73ca} from "./useViewportSize.module.js";
|
||||
import {useDescription as $ef06256079686ba0$export$f8aeda7b10753fa1} from "./useDescription.module.js";
|
||||
import {isAndroid as $c87311424ea30a05$export$a11b0059900ceec8, isAppleDevice as $c87311424ea30a05$export$e1865c3bedcd822b, isChrome as $c87311424ea30a05$export$6446a186d09e379e, isFirefox as $c87311424ea30a05$export$b7d78993b74f766d, isIOS as $c87311424ea30a05$export$fedb369cb70207f1, isIPad as $c87311424ea30a05$export$7bef049ce92e4224, isIPhone as $c87311424ea30a05$export$186c6964ca17d99, isMac as $c87311424ea30a05$export$9ac100e40613ea10, isWebKit as $c87311424ea30a05$export$78551043582a6a98} from "./platform.module.js";
|
||||
import {useEvent as $e9faafb641e167db$export$90fc3a17d93f704c} from "./useEvent.module.js";
|
||||
import {useValueEffect as $1dbecbe27a04f9af$export$14d238f342723f25} from "./useValueEffect.module.js";
|
||||
import {scrollIntoView as $2f04cbc44ee30ce0$export$53a0910f038337bd, scrollIntoViewport as $2f04cbc44ee30ce0$export$c826860796309d1b} from "./scrollIntoView.module.js";
|
||||
import {isVirtualClick as $6a7db85432448f7f$export$60278871457622de, isVirtualPointerEvent as $6a7db85432448f7f$export$29bf1b5f2c56cf63} from "./isVirtualEvent.module.js";
|
||||
import {useEffectEvent as $8ae05eaa5c114e9c$export$7f54fc3180508a52} from "./useEffectEvent.module.js";
|
||||
import {useDeepMemo as $5a387cc49350e6db$export$722debc0e56fea39} from "./useDeepMemo.module.js";
|
||||
import {useFormReset as $99facab73266f662$export$5add1d006293d136} from "./useFormReset.module.js";
|
||||
import {useLoadMore as $26f7f3da73fcd9d6$export$7717c92ee915373e} from "./useLoadMore.module.js";
|
||||
import {UNSTABLE_useLoadMoreSentinel as $a5fa973c1850dd36$export$90a12e6abf95cbe0} from "./useLoadMoreSentinel.module.js";
|
||||
import {inertValue as $cdc5a6778b766db2$export$a9d04c5684123369} from "./inertValue.module.js";
|
||||
import {CLEAR_FOCUS_EVENT as $5671b20cf9b562b2$export$447a38995de2c711, FOCUS_EVENT as $5671b20cf9b562b2$export$831c820ad60f9d12} from "./constants.module.js";
|
||||
import {isCtrlKeyPressed as $21f1aa98acb08317$export$16792effe837dba3} from "./keyboard.module.js";
|
||||
import {useEnterAnimation as $d3f049242431219c$export$6d3443f2c48bfc20, useExitAnimation as $d3f049242431219c$export$45fda7c47f93fd48} from "./animation.module.js";
|
||||
import {isFocusable as $b4b717babfbb907b$export$4c063cf1350e6fed, isTabbable as $b4b717babfbb907b$export$bebd5a1431fec25d} from "./isFocusable.module.js";
|
||||
import {clamp as $4507461a1b870123$re_export$clamp, snapValueToStep as $4507461a1b870123$re_export$snapValueToStep} from "@react-stately/utils";
|
||||
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export {$bdb11010cef70236$export$f680877a34711e37 as useId, $bdb11010cef70236$export$cd8c9cb68f842629 as mergeIds, $bdb11010cef70236$export$b4cc09c592e8fdb8 as useSlotId, $ff5963eb1fccf552$export$e08e3b67e392101e as chain, $dfc540311bf7f109$export$4d0f8be8b12a7ef6 as createShadowTreeWalker, $dfc540311bf7f109$export$63eb3ababa9c55c4 as ShadowTreeWalker, $d4ee10de306f2510$export$cd4e5573fbe2b576 as getActiveElement, $d4ee10de306f2510$export$e58f029f0fbfdb29 as getEventTarget, $d4ee10de306f2510$export$4282f70798064fe0 as nodeContains, $431fbd86ca7dc216$export$b204af158042fbac as getOwnerDocument, $431fbd86ca7dc216$export$f21a1ffae260145a as getOwnerWindow, $431fbd86ca7dc216$export$af51f0f06c0f328a as isShadowRoot, $3ef42575df84b30b$export$9d1611c77c2fe928 as mergeProps, $5dc95899b306f630$export$c9058316764c140e as mergeRefs, $65484d02dcb7eb3e$export$457c3d6518dd4c6f as filterDOMProps, $7215afc6de606d6b$export$de79e2c695e052f3 as focusWithoutScrolling, $ab71dadb03a6fb2e$export$622cea445a1c5b7d as getOffset, $ea8dcbcb9ea1b556$export$95185d699e05d4d7 as openLink, $ea8dcbcb9ea1b556$export$51437d503373d223 as getSyntheticLinkProps, $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6 as useSyntheticLinkProps, $ea8dcbcb9ea1b556$export$323e4fc2fa4753fb as RouterProvider, $ea8dcbcb9ea1b556$export$efa8c9099e530235 as shouldClientNavigate, $ea8dcbcb9ea1b556$export$9a302a45f65d0572 as useRouter, $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 as useLinkProps, $bbed8b41f857bcc0$export$24490316f764c430 as runAfterTransition, $9cc09df9fd7676be$export$7bbed75feba39706 as useDrag1D, $03deb23ff14920c4$export$4eaf04e54aa8eed6 as useGlobalListeners, $313b98861ee5dd6c$export$d6875122194c7b44 as useLabels, $df56164dff5785e2$export$4338b53315abf666 as useObjectRef, $4f58c5f72bcf79f7$export$496315a1608d9602 as useUpdateEffect, $ca9b37712f007381$export$72ef708ab07251f1 as useUpdateLayoutEffect, $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c as useLayoutEffect, $9daab02d461809db$export$683480f191c0e3ea as useResizeObserver, $e7801be82b4b2a53$export$4debdb1a3f0fa79e as useSyncRef, $62d8ded9296f3872$export$cfa2225e87938781 as getScrollParent, $a40c673dc9f6d9c7$export$94ed1c92c7beeb22 as getScrollParents, $cc38e7bd3fc7b213$export$2bb74740c4e19def as isScrollable, $5df64b3807dc15ee$export$d699905dd57c73ca as useViewportSize, $ef06256079686ba0$export$f8aeda7b10753fa1 as useDescription, $c87311424ea30a05$export$9ac100e40613ea10 as isMac, $c87311424ea30a05$export$186c6964ca17d99 as isIPhone, $c87311424ea30a05$export$7bef049ce92e4224 as isIPad, $c87311424ea30a05$export$fedb369cb70207f1 as isIOS, $c87311424ea30a05$export$e1865c3bedcd822b as isAppleDevice, $c87311424ea30a05$export$78551043582a6a98 as isWebKit, $c87311424ea30a05$export$6446a186d09e379e as isChrome, $c87311424ea30a05$export$a11b0059900ceec8 as isAndroid, $c87311424ea30a05$export$b7d78993b74f766d as isFirefox, $e9faafb641e167db$export$90fc3a17d93f704c as useEvent, $1dbecbe27a04f9af$export$14d238f342723f25 as useValueEffect, $2f04cbc44ee30ce0$export$53a0910f038337bd as scrollIntoView, $2f04cbc44ee30ce0$export$c826860796309d1b as scrollIntoViewport, $4507461a1b870123$re_export$clamp as clamp, $4507461a1b870123$re_export$snapValueToStep as snapValueToStep, $6a7db85432448f7f$export$60278871457622de as isVirtualClick, $6a7db85432448f7f$export$29bf1b5f2c56cf63 as isVirtualPointerEvent, $8ae05eaa5c114e9c$export$7f54fc3180508a52 as useEffectEvent, $5a387cc49350e6db$export$722debc0e56fea39 as useDeepMemo, $99facab73266f662$export$5add1d006293d136 as useFormReset, $26f7f3da73fcd9d6$export$7717c92ee915373e as useLoadMore, $a5fa973c1850dd36$export$90a12e6abf95cbe0 as UNSTABLE_useLoadMoreSentinel, $cdc5a6778b766db2$export$a9d04c5684123369 as inertValue, $5671b20cf9b562b2$export$447a38995de2c711 as CLEAR_FOCUS_EVENT, $5671b20cf9b562b2$export$831c820ad60f9d12 as FOCUS_EVENT, $21f1aa98acb08317$export$16792effe837dba3 as isCtrlKeyPressed, $d3f049242431219c$export$6d3443f2c48bfc20 as useEnterAnimation, $d3f049242431219c$export$45fda7c47f93fd48 as useExitAnimation, $b4b717babfbb907b$export$4c063cf1350e6fed as isFocusable, $b4b717babfbb907b$export$bebd5a1431fec25d as isTabbable};
|
||||
//# sourceMappingURL=module.js.map
|
||||
1
node_modules/@react-aria/utils/dist/module.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/module.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-aria/utils/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nexport {useId, mergeIds, useSlotId} from './useId';\nexport {chain} from './chain';\nexport {createShadowTreeWalker, ShadowTreeWalker} from './shadowdom/ShadowTreeWalker';\nexport {getActiveElement, getEventTarget, nodeContains} from './shadowdom/DOMFunctions';\nexport {getOwnerDocument, getOwnerWindow, isShadowRoot} from './domHelpers';\nexport {mergeProps} from './mergeProps';\nexport {mergeRefs} from './mergeRefs';\nexport {filterDOMProps} from './filterDOMProps';\nexport {focusWithoutScrolling} from './focusWithoutScrolling';\nexport {getOffset} from './getOffset';\nexport {openLink, getSyntheticLinkProps, useSyntheticLinkProps, RouterProvider, shouldClientNavigate, useRouter, useLinkProps} from './openLink';\nexport {runAfterTransition} from './runAfterTransition';\nexport {useDrag1D} from './useDrag1D';\nexport {useGlobalListeners} from './useGlobalListeners';\nexport {useLabels} from './useLabels';\nexport {useObjectRef} from './useObjectRef';\nexport {useUpdateEffect} from './useUpdateEffect';\nexport {useUpdateLayoutEffect} from './useUpdateLayoutEffect';\nexport {useLayoutEffect} from './useLayoutEffect';\nexport {useResizeObserver} from './useResizeObserver';\nexport {useSyncRef} from './useSyncRef';\nexport {getScrollParent} from './getScrollParent';\nexport {getScrollParents} from './getScrollParents';\nexport {isScrollable} from './isScrollable';\nexport {useViewportSize} from './useViewportSize';\nexport {useDescription} from './useDescription';\nexport {isMac, isIPhone, isIPad, isIOS, isAppleDevice, isWebKit, isChrome, isAndroid, isFirefox} from './platform';\nexport {useEvent} from './useEvent';\nexport {useValueEffect} from './useValueEffect';\nexport {scrollIntoView, scrollIntoViewport} from './scrollIntoView';\nexport {clamp, snapValueToStep} from '@react-stately/utils';\nexport {isVirtualClick, isVirtualPointerEvent} from './isVirtualEvent';\nexport {useEffectEvent} from './useEffectEvent';\nexport {useDeepMemo} from './useDeepMemo';\nexport {useFormReset} from './useFormReset';\nexport {useLoadMore} from './useLoadMore';\nexport {UNSTABLE_useLoadMoreSentinel} from './useLoadMoreSentinel';\nexport {inertValue} from './inertValue';\nexport {CLEAR_FOCUS_EVENT, FOCUS_EVENT} from './constants';\nexport {isCtrlKeyPressed} from './keyboard';\nexport {useEnterAnimation, useExitAnimation} from './animation';\nexport {isFocusable, isTabbable} from './isFocusable';\n\nexport type {LoadMoreSentinelProps} from './useLoadMoreSentinel';\n"],"names":[],"version":3,"file":"module.js.map"}
|
||||
159
node_modules/@react-aria/utils/dist/openLink.main.js
generated
vendored
Normal file
159
node_modules/@react-aria/utils/dist/openLink.main.js
generated
vendored
Normal file
@@ -0,0 +1,159 @@
|
||||
var $1117b6c0d4c4c164$exports = require("./focusWithoutScrolling.main.js");
|
||||
var $9e20cff0af27e8cc$exports = require("./platform.main.js");
|
||||
var $6kLG7$react = require("react");
|
||||
|
||||
|
||||
function $parcel$interopDefault(a) {
|
||||
return a && a.__esModule ? a.default : a;
|
||||
}
|
||||
|
||||
function $parcel$export(e, n, v, s) {
|
||||
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
||||
}
|
||||
|
||||
$parcel$export(module.exports, "RouterProvider", () => $4068a0fae83b6d84$export$323e4fc2fa4753fb);
|
||||
$parcel$export(module.exports, "shouldClientNavigate", () => $4068a0fae83b6d84$export$efa8c9099e530235);
|
||||
$parcel$export(module.exports, "openLink", () => $4068a0fae83b6d84$export$95185d699e05d4d7);
|
||||
$parcel$export(module.exports, "useRouter", () => $4068a0fae83b6d84$export$9a302a45f65d0572);
|
||||
$parcel$export(module.exports, "useSyntheticLinkProps", () => $4068a0fae83b6d84$export$bdc77b0c0a3a85d6);
|
||||
$parcel$export(module.exports, "getSyntheticLinkProps", () => $4068a0fae83b6d84$export$51437d503373d223);
|
||||
$parcel$export(module.exports, "useLinkProps", () => $4068a0fae83b6d84$export$7e924b3091a3bd18);
|
||||
/*
|
||||
* Copyright 2023 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
const $4068a0fae83b6d84$var$RouterContext = /*#__PURE__*/ (0, $6kLG7$react.createContext)({
|
||||
isNative: true,
|
||||
open: $4068a0fae83b6d84$var$openSyntheticLink,
|
||||
useHref: (href)=>href
|
||||
});
|
||||
function $4068a0fae83b6d84$export$323e4fc2fa4753fb(props) {
|
||||
let { children: children, navigate: navigate, useHref: useHref } = props;
|
||||
let ctx = (0, $6kLG7$react.useMemo)(()=>({
|
||||
isNative: false,
|
||||
open: (target, modifiers, href, routerOptions)=>{
|
||||
$4068a0fae83b6d84$var$getSyntheticLink(target, (link)=>{
|
||||
if ($4068a0fae83b6d84$export$efa8c9099e530235(link, modifiers)) navigate(href, routerOptions);
|
||||
else $4068a0fae83b6d84$export$95185d699e05d4d7(link, modifiers);
|
||||
});
|
||||
},
|
||||
useHref: useHref || ((href)=>href)
|
||||
}), [
|
||||
navigate,
|
||||
useHref
|
||||
]);
|
||||
return /*#__PURE__*/ (0, ($parcel$interopDefault($6kLG7$react))).createElement($4068a0fae83b6d84$var$RouterContext.Provider, {
|
||||
value: ctx
|
||||
}, children);
|
||||
}
|
||||
function $4068a0fae83b6d84$export$9a302a45f65d0572() {
|
||||
return (0, $6kLG7$react.useContext)($4068a0fae83b6d84$var$RouterContext);
|
||||
}
|
||||
function $4068a0fae83b6d84$export$efa8c9099e530235(link, modifiers) {
|
||||
// Use getAttribute here instead of link.target. Firefox will default link.target to "_parent" when inside an iframe.
|
||||
let target = link.getAttribute('target');
|
||||
return (!target || target === '_self') && link.origin === location.origin && !link.hasAttribute('download') && !modifiers.metaKey && // open in new tab (mac)
|
||||
!modifiers.ctrlKey && // open in new tab (windows)
|
||||
!modifiers.altKey && // download
|
||||
!modifiers.shiftKey;
|
||||
}
|
||||
function $4068a0fae83b6d84$export$95185d699e05d4d7(target, modifiers, setOpening = true) {
|
||||
var _window_event_type, _window_event;
|
||||
let { metaKey: metaKey, ctrlKey: ctrlKey, altKey: altKey, shiftKey: shiftKey } = modifiers;
|
||||
// Firefox does not recognize keyboard events as a user action by default, and the popup blocker
|
||||
// will prevent links with target="_blank" from opening. However, it does allow the event if the
|
||||
// Command/Control key is held, which opens the link in a background tab. This seems like the best we can do.
|
||||
// See https://bugzilla.mozilla.org/show_bug.cgi?id=257870 and https://bugzilla.mozilla.org/show_bug.cgi?id=746640.
|
||||
if ((0, $9e20cff0af27e8cc$exports.isFirefox)() && ((_window_event = window.event) === null || _window_event === void 0 ? void 0 : (_window_event_type = _window_event.type) === null || _window_event_type === void 0 ? void 0 : _window_event_type.startsWith('key')) && target.target === '_blank') {
|
||||
if ((0, $9e20cff0af27e8cc$exports.isMac)()) metaKey = true;
|
||||
else ctrlKey = true;
|
||||
}
|
||||
// WebKit does not support firing click events with modifier keys, but does support keyboard events.
|
||||
// https://github.com/WebKit/WebKit/blob/c03d0ac6e6db178f90923a0a63080b5ca210d25f/Source/WebCore/html/HTMLAnchorElement.cpp#L184
|
||||
let event = (0, $9e20cff0af27e8cc$exports.isWebKit)() && (0, $9e20cff0af27e8cc$exports.isMac)() && !(0, $9e20cff0af27e8cc$exports.isIPad)() && process.env.NODE_ENV !== 'test' ? new KeyboardEvent('keydown', {
|
||||
keyIdentifier: 'Enter',
|
||||
metaKey: metaKey,
|
||||
ctrlKey: ctrlKey,
|
||||
altKey: altKey,
|
||||
shiftKey: shiftKey
|
||||
}) : new MouseEvent('click', {
|
||||
metaKey: metaKey,
|
||||
ctrlKey: ctrlKey,
|
||||
altKey: altKey,
|
||||
shiftKey: shiftKey,
|
||||
bubbles: true,
|
||||
cancelable: true
|
||||
});
|
||||
$4068a0fae83b6d84$export$95185d699e05d4d7.isOpening = setOpening;
|
||||
(0, $1117b6c0d4c4c164$exports.focusWithoutScrolling)(target);
|
||||
target.dispatchEvent(event);
|
||||
$4068a0fae83b6d84$export$95185d699e05d4d7.isOpening = false;
|
||||
}
|
||||
// https://github.com/parcel-bundler/parcel/issues/8724
|
||||
$4068a0fae83b6d84$export$95185d699e05d4d7.isOpening = false;
|
||||
function $4068a0fae83b6d84$var$getSyntheticLink(target, open) {
|
||||
if (target instanceof HTMLAnchorElement) open(target);
|
||||
else if (target.hasAttribute('data-href')) {
|
||||
let link = document.createElement('a');
|
||||
link.href = target.getAttribute('data-href');
|
||||
if (target.hasAttribute('data-target')) link.target = target.getAttribute('data-target');
|
||||
if (target.hasAttribute('data-rel')) link.rel = target.getAttribute('data-rel');
|
||||
if (target.hasAttribute('data-download')) link.download = target.getAttribute('data-download');
|
||||
if (target.hasAttribute('data-ping')) link.ping = target.getAttribute('data-ping');
|
||||
if (target.hasAttribute('data-referrer-policy')) link.referrerPolicy = target.getAttribute('data-referrer-policy');
|
||||
target.appendChild(link);
|
||||
open(link);
|
||||
target.removeChild(link);
|
||||
}
|
||||
}
|
||||
function $4068a0fae83b6d84$var$openSyntheticLink(target, modifiers) {
|
||||
$4068a0fae83b6d84$var$getSyntheticLink(target, (link)=>$4068a0fae83b6d84$export$95185d699e05d4d7(link, modifiers));
|
||||
}
|
||||
function $4068a0fae83b6d84$export$bdc77b0c0a3a85d6(props) {
|
||||
let router = $4068a0fae83b6d84$export$9a302a45f65d0572();
|
||||
var _props_href;
|
||||
const href = router.useHref((_props_href = props.href) !== null && _props_href !== void 0 ? _props_href : '');
|
||||
return {
|
||||
'data-href': props.href ? href : undefined,
|
||||
'data-target': props.target,
|
||||
'data-rel': props.rel,
|
||||
'data-download': props.download,
|
||||
'data-ping': props.ping,
|
||||
'data-referrer-policy': props.referrerPolicy
|
||||
};
|
||||
}
|
||||
function $4068a0fae83b6d84$export$51437d503373d223(props) {
|
||||
return {
|
||||
'data-href': props.href,
|
||||
'data-target': props.target,
|
||||
'data-rel': props.rel,
|
||||
'data-download': props.download,
|
||||
'data-ping': props.ping,
|
||||
'data-referrer-policy': props.referrerPolicy
|
||||
};
|
||||
}
|
||||
function $4068a0fae83b6d84$export$7e924b3091a3bd18(props) {
|
||||
let router = $4068a0fae83b6d84$export$9a302a45f65d0572();
|
||||
var _props_href;
|
||||
const href = router.useHref((_props_href = props === null || props === void 0 ? void 0 : props.href) !== null && _props_href !== void 0 ? _props_href : '');
|
||||
return {
|
||||
href: (props === null || props === void 0 ? void 0 : props.href) ? href : undefined,
|
||||
target: props === null || props === void 0 ? void 0 : props.target,
|
||||
rel: props === null || props === void 0 ? void 0 : props.rel,
|
||||
download: props === null || props === void 0 ? void 0 : props.download,
|
||||
ping: props === null || props === void 0 ? void 0 : props.ping,
|
||||
referrerPolicy: props === null || props === void 0 ? void 0 : props.referrerPolicy
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
//# sourceMappingURL=openLink.main.js.map
|
||||
1
node_modules/@react-aria/utils/dist/openLink.main.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/openLink.main.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
144
node_modules/@react-aria/utils/dist/openLink.mjs
generated
vendored
Normal file
144
node_modules/@react-aria/utils/dist/openLink.mjs
generated
vendored
Normal file
@@ -0,0 +1,144 @@
|
||||
import {focusWithoutScrolling as $7215afc6de606d6b$export$de79e2c695e052f3} from "./focusWithoutScrolling.mjs";
|
||||
import {isMac as $c87311424ea30a05$export$9ac100e40613ea10, isWebKit as $c87311424ea30a05$export$78551043582a6a98, isFirefox as $c87311424ea30a05$export$b7d78993b74f766d, isIPad as $c87311424ea30a05$export$7bef049ce92e4224} from "./platform.mjs";
|
||||
import $g3jFn$react, {createContext as $g3jFn$createContext, useMemo as $g3jFn$useMemo, useContext as $g3jFn$useContext} from "react";
|
||||
|
||||
/*
|
||||
* Copyright 2023 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
const $ea8dcbcb9ea1b556$var$RouterContext = /*#__PURE__*/ (0, $g3jFn$createContext)({
|
||||
isNative: true,
|
||||
open: $ea8dcbcb9ea1b556$var$openSyntheticLink,
|
||||
useHref: (href)=>href
|
||||
});
|
||||
function $ea8dcbcb9ea1b556$export$323e4fc2fa4753fb(props) {
|
||||
let { children: children, navigate: navigate, useHref: useHref } = props;
|
||||
let ctx = (0, $g3jFn$useMemo)(()=>({
|
||||
isNative: false,
|
||||
open: (target, modifiers, href, routerOptions)=>{
|
||||
$ea8dcbcb9ea1b556$var$getSyntheticLink(target, (link)=>{
|
||||
if ($ea8dcbcb9ea1b556$export$efa8c9099e530235(link, modifiers)) navigate(href, routerOptions);
|
||||
else $ea8dcbcb9ea1b556$export$95185d699e05d4d7(link, modifiers);
|
||||
});
|
||||
},
|
||||
useHref: useHref || ((href)=>href)
|
||||
}), [
|
||||
navigate,
|
||||
useHref
|
||||
]);
|
||||
return /*#__PURE__*/ (0, $g3jFn$react).createElement($ea8dcbcb9ea1b556$var$RouterContext.Provider, {
|
||||
value: ctx
|
||||
}, children);
|
||||
}
|
||||
function $ea8dcbcb9ea1b556$export$9a302a45f65d0572() {
|
||||
return (0, $g3jFn$useContext)($ea8dcbcb9ea1b556$var$RouterContext);
|
||||
}
|
||||
function $ea8dcbcb9ea1b556$export$efa8c9099e530235(link, modifiers) {
|
||||
// Use getAttribute here instead of link.target. Firefox will default link.target to "_parent" when inside an iframe.
|
||||
let target = link.getAttribute('target');
|
||||
return (!target || target === '_self') && link.origin === location.origin && !link.hasAttribute('download') && !modifiers.metaKey && // open in new tab (mac)
|
||||
!modifiers.ctrlKey && // open in new tab (windows)
|
||||
!modifiers.altKey && // download
|
||||
!modifiers.shiftKey;
|
||||
}
|
||||
function $ea8dcbcb9ea1b556$export$95185d699e05d4d7(target, modifiers, setOpening = true) {
|
||||
var _window_event_type, _window_event;
|
||||
let { metaKey: metaKey, ctrlKey: ctrlKey, altKey: altKey, shiftKey: shiftKey } = modifiers;
|
||||
// Firefox does not recognize keyboard events as a user action by default, and the popup blocker
|
||||
// will prevent links with target="_blank" from opening. However, it does allow the event if the
|
||||
// Command/Control key is held, which opens the link in a background tab. This seems like the best we can do.
|
||||
// See https://bugzilla.mozilla.org/show_bug.cgi?id=257870 and https://bugzilla.mozilla.org/show_bug.cgi?id=746640.
|
||||
if ((0, $c87311424ea30a05$export$b7d78993b74f766d)() && ((_window_event = window.event) === null || _window_event === void 0 ? void 0 : (_window_event_type = _window_event.type) === null || _window_event_type === void 0 ? void 0 : _window_event_type.startsWith('key')) && target.target === '_blank') {
|
||||
if ((0, $c87311424ea30a05$export$9ac100e40613ea10)()) metaKey = true;
|
||||
else ctrlKey = true;
|
||||
}
|
||||
// WebKit does not support firing click events with modifier keys, but does support keyboard events.
|
||||
// https://github.com/WebKit/WebKit/blob/c03d0ac6e6db178f90923a0a63080b5ca210d25f/Source/WebCore/html/HTMLAnchorElement.cpp#L184
|
||||
let event = (0, $c87311424ea30a05$export$78551043582a6a98)() && (0, $c87311424ea30a05$export$9ac100e40613ea10)() && !(0, $c87311424ea30a05$export$7bef049ce92e4224)() && process.env.NODE_ENV !== 'test' ? new KeyboardEvent('keydown', {
|
||||
keyIdentifier: 'Enter',
|
||||
metaKey: metaKey,
|
||||
ctrlKey: ctrlKey,
|
||||
altKey: altKey,
|
||||
shiftKey: shiftKey
|
||||
}) : new MouseEvent('click', {
|
||||
metaKey: metaKey,
|
||||
ctrlKey: ctrlKey,
|
||||
altKey: altKey,
|
||||
shiftKey: shiftKey,
|
||||
bubbles: true,
|
||||
cancelable: true
|
||||
});
|
||||
$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = setOpening;
|
||||
(0, $7215afc6de606d6b$export$de79e2c695e052f3)(target);
|
||||
target.dispatchEvent(event);
|
||||
$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = false;
|
||||
}
|
||||
// https://github.com/parcel-bundler/parcel/issues/8724
|
||||
$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = false;
|
||||
function $ea8dcbcb9ea1b556$var$getSyntheticLink(target, open) {
|
||||
if (target instanceof HTMLAnchorElement) open(target);
|
||||
else if (target.hasAttribute('data-href')) {
|
||||
let link = document.createElement('a');
|
||||
link.href = target.getAttribute('data-href');
|
||||
if (target.hasAttribute('data-target')) link.target = target.getAttribute('data-target');
|
||||
if (target.hasAttribute('data-rel')) link.rel = target.getAttribute('data-rel');
|
||||
if (target.hasAttribute('data-download')) link.download = target.getAttribute('data-download');
|
||||
if (target.hasAttribute('data-ping')) link.ping = target.getAttribute('data-ping');
|
||||
if (target.hasAttribute('data-referrer-policy')) link.referrerPolicy = target.getAttribute('data-referrer-policy');
|
||||
target.appendChild(link);
|
||||
open(link);
|
||||
target.removeChild(link);
|
||||
}
|
||||
}
|
||||
function $ea8dcbcb9ea1b556$var$openSyntheticLink(target, modifiers) {
|
||||
$ea8dcbcb9ea1b556$var$getSyntheticLink(target, (link)=>$ea8dcbcb9ea1b556$export$95185d699e05d4d7(link, modifiers));
|
||||
}
|
||||
function $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6(props) {
|
||||
let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
|
||||
var _props_href;
|
||||
const href = router.useHref((_props_href = props.href) !== null && _props_href !== void 0 ? _props_href : '');
|
||||
return {
|
||||
'data-href': props.href ? href : undefined,
|
||||
'data-target': props.target,
|
||||
'data-rel': props.rel,
|
||||
'data-download': props.download,
|
||||
'data-ping': props.ping,
|
||||
'data-referrer-policy': props.referrerPolicy
|
||||
};
|
||||
}
|
||||
function $ea8dcbcb9ea1b556$export$51437d503373d223(props) {
|
||||
return {
|
||||
'data-href': props.href,
|
||||
'data-target': props.target,
|
||||
'data-rel': props.rel,
|
||||
'data-download': props.download,
|
||||
'data-ping': props.ping,
|
||||
'data-referrer-policy': props.referrerPolicy
|
||||
};
|
||||
}
|
||||
function $ea8dcbcb9ea1b556$export$7e924b3091a3bd18(props) {
|
||||
let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
|
||||
var _props_href;
|
||||
const href = router.useHref((_props_href = props === null || props === void 0 ? void 0 : props.href) !== null && _props_href !== void 0 ? _props_href : '');
|
||||
return {
|
||||
href: (props === null || props === void 0 ? void 0 : props.href) ? href : undefined,
|
||||
target: props === null || props === void 0 ? void 0 : props.target,
|
||||
rel: props === null || props === void 0 ? void 0 : props.rel,
|
||||
download: props === null || props === void 0 ? void 0 : props.download,
|
||||
ping: props === null || props === void 0 ? void 0 : props.ping,
|
||||
referrerPolicy: props === null || props === void 0 ? void 0 : props.referrerPolicy
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
export {$ea8dcbcb9ea1b556$export$323e4fc2fa4753fb as RouterProvider, $ea8dcbcb9ea1b556$export$efa8c9099e530235 as shouldClientNavigate, $ea8dcbcb9ea1b556$export$95185d699e05d4d7 as openLink, $ea8dcbcb9ea1b556$export$9a302a45f65d0572 as useRouter, $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6 as useSyntheticLinkProps, $ea8dcbcb9ea1b556$export$51437d503373d223 as getSyntheticLinkProps, $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 as useLinkProps};
|
||||
//# sourceMappingURL=openLink.module.js.map
|
||||
144
node_modules/@react-aria/utils/dist/openLink.module.js
generated
vendored
Normal file
144
node_modules/@react-aria/utils/dist/openLink.module.js
generated
vendored
Normal file
@@ -0,0 +1,144 @@
|
||||
import {focusWithoutScrolling as $7215afc6de606d6b$export$de79e2c695e052f3} from "./focusWithoutScrolling.module.js";
|
||||
import {isMac as $c87311424ea30a05$export$9ac100e40613ea10, isWebKit as $c87311424ea30a05$export$78551043582a6a98, isFirefox as $c87311424ea30a05$export$b7d78993b74f766d, isIPad as $c87311424ea30a05$export$7bef049ce92e4224} from "./platform.module.js";
|
||||
import $g3jFn$react, {createContext as $g3jFn$createContext, useMemo as $g3jFn$useMemo, useContext as $g3jFn$useContext} from "react";
|
||||
|
||||
/*
|
||||
* Copyright 2023 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
const $ea8dcbcb9ea1b556$var$RouterContext = /*#__PURE__*/ (0, $g3jFn$createContext)({
|
||||
isNative: true,
|
||||
open: $ea8dcbcb9ea1b556$var$openSyntheticLink,
|
||||
useHref: (href)=>href
|
||||
});
|
||||
function $ea8dcbcb9ea1b556$export$323e4fc2fa4753fb(props) {
|
||||
let { children: children, navigate: navigate, useHref: useHref } = props;
|
||||
let ctx = (0, $g3jFn$useMemo)(()=>({
|
||||
isNative: false,
|
||||
open: (target, modifiers, href, routerOptions)=>{
|
||||
$ea8dcbcb9ea1b556$var$getSyntheticLink(target, (link)=>{
|
||||
if ($ea8dcbcb9ea1b556$export$efa8c9099e530235(link, modifiers)) navigate(href, routerOptions);
|
||||
else $ea8dcbcb9ea1b556$export$95185d699e05d4d7(link, modifiers);
|
||||
});
|
||||
},
|
||||
useHref: useHref || ((href)=>href)
|
||||
}), [
|
||||
navigate,
|
||||
useHref
|
||||
]);
|
||||
return /*#__PURE__*/ (0, $g3jFn$react).createElement($ea8dcbcb9ea1b556$var$RouterContext.Provider, {
|
||||
value: ctx
|
||||
}, children);
|
||||
}
|
||||
function $ea8dcbcb9ea1b556$export$9a302a45f65d0572() {
|
||||
return (0, $g3jFn$useContext)($ea8dcbcb9ea1b556$var$RouterContext);
|
||||
}
|
||||
function $ea8dcbcb9ea1b556$export$efa8c9099e530235(link, modifiers) {
|
||||
// Use getAttribute here instead of link.target. Firefox will default link.target to "_parent" when inside an iframe.
|
||||
let target = link.getAttribute('target');
|
||||
return (!target || target === '_self') && link.origin === location.origin && !link.hasAttribute('download') && !modifiers.metaKey && // open in new tab (mac)
|
||||
!modifiers.ctrlKey && // open in new tab (windows)
|
||||
!modifiers.altKey && // download
|
||||
!modifiers.shiftKey;
|
||||
}
|
||||
function $ea8dcbcb9ea1b556$export$95185d699e05d4d7(target, modifiers, setOpening = true) {
|
||||
var _window_event_type, _window_event;
|
||||
let { metaKey: metaKey, ctrlKey: ctrlKey, altKey: altKey, shiftKey: shiftKey } = modifiers;
|
||||
// Firefox does not recognize keyboard events as a user action by default, and the popup blocker
|
||||
// will prevent links with target="_blank" from opening. However, it does allow the event if the
|
||||
// Command/Control key is held, which opens the link in a background tab. This seems like the best we can do.
|
||||
// See https://bugzilla.mozilla.org/show_bug.cgi?id=257870 and https://bugzilla.mozilla.org/show_bug.cgi?id=746640.
|
||||
if ((0, $c87311424ea30a05$export$b7d78993b74f766d)() && ((_window_event = window.event) === null || _window_event === void 0 ? void 0 : (_window_event_type = _window_event.type) === null || _window_event_type === void 0 ? void 0 : _window_event_type.startsWith('key')) && target.target === '_blank') {
|
||||
if ((0, $c87311424ea30a05$export$9ac100e40613ea10)()) metaKey = true;
|
||||
else ctrlKey = true;
|
||||
}
|
||||
// WebKit does not support firing click events with modifier keys, but does support keyboard events.
|
||||
// https://github.com/WebKit/WebKit/blob/c03d0ac6e6db178f90923a0a63080b5ca210d25f/Source/WebCore/html/HTMLAnchorElement.cpp#L184
|
||||
let event = (0, $c87311424ea30a05$export$78551043582a6a98)() && (0, $c87311424ea30a05$export$9ac100e40613ea10)() && !(0, $c87311424ea30a05$export$7bef049ce92e4224)() && process.env.NODE_ENV !== 'test' ? new KeyboardEvent('keydown', {
|
||||
keyIdentifier: 'Enter',
|
||||
metaKey: metaKey,
|
||||
ctrlKey: ctrlKey,
|
||||
altKey: altKey,
|
||||
shiftKey: shiftKey
|
||||
}) : new MouseEvent('click', {
|
||||
metaKey: metaKey,
|
||||
ctrlKey: ctrlKey,
|
||||
altKey: altKey,
|
||||
shiftKey: shiftKey,
|
||||
bubbles: true,
|
||||
cancelable: true
|
||||
});
|
||||
$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = setOpening;
|
||||
(0, $7215afc6de606d6b$export$de79e2c695e052f3)(target);
|
||||
target.dispatchEvent(event);
|
||||
$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = false;
|
||||
}
|
||||
// https://github.com/parcel-bundler/parcel/issues/8724
|
||||
$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = false;
|
||||
function $ea8dcbcb9ea1b556$var$getSyntheticLink(target, open) {
|
||||
if (target instanceof HTMLAnchorElement) open(target);
|
||||
else if (target.hasAttribute('data-href')) {
|
||||
let link = document.createElement('a');
|
||||
link.href = target.getAttribute('data-href');
|
||||
if (target.hasAttribute('data-target')) link.target = target.getAttribute('data-target');
|
||||
if (target.hasAttribute('data-rel')) link.rel = target.getAttribute('data-rel');
|
||||
if (target.hasAttribute('data-download')) link.download = target.getAttribute('data-download');
|
||||
if (target.hasAttribute('data-ping')) link.ping = target.getAttribute('data-ping');
|
||||
if (target.hasAttribute('data-referrer-policy')) link.referrerPolicy = target.getAttribute('data-referrer-policy');
|
||||
target.appendChild(link);
|
||||
open(link);
|
||||
target.removeChild(link);
|
||||
}
|
||||
}
|
||||
function $ea8dcbcb9ea1b556$var$openSyntheticLink(target, modifiers) {
|
||||
$ea8dcbcb9ea1b556$var$getSyntheticLink(target, (link)=>$ea8dcbcb9ea1b556$export$95185d699e05d4d7(link, modifiers));
|
||||
}
|
||||
function $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6(props) {
|
||||
let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
|
||||
var _props_href;
|
||||
const href = router.useHref((_props_href = props.href) !== null && _props_href !== void 0 ? _props_href : '');
|
||||
return {
|
||||
'data-href': props.href ? href : undefined,
|
||||
'data-target': props.target,
|
||||
'data-rel': props.rel,
|
||||
'data-download': props.download,
|
||||
'data-ping': props.ping,
|
||||
'data-referrer-policy': props.referrerPolicy
|
||||
};
|
||||
}
|
||||
function $ea8dcbcb9ea1b556$export$51437d503373d223(props) {
|
||||
return {
|
||||
'data-href': props.href,
|
||||
'data-target': props.target,
|
||||
'data-rel': props.rel,
|
||||
'data-download': props.download,
|
||||
'data-ping': props.ping,
|
||||
'data-referrer-policy': props.referrerPolicy
|
||||
};
|
||||
}
|
||||
function $ea8dcbcb9ea1b556$export$7e924b3091a3bd18(props) {
|
||||
let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
|
||||
var _props_href;
|
||||
const href = router.useHref((_props_href = props === null || props === void 0 ? void 0 : props.href) !== null && _props_href !== void 0 ? _props_href : '');
|
||||
return {
|
||||
href: (props === null || props === void 0 ? void 0 : props.href) ? href : undefined,
|
||||
target: props === null || props === void 0 ? void 0 : props.target,
|
||||
rel: props === null || props === void 0 ? void 0 : props.rel,
|
||||
download: props === null || props === void 0 ? void 0 : props.download,
|
||||
ping: props === null || props === void 0 ? void 0 : props.ping,
|
||||
referrerPolicy: props === null || props === void 0 ? void 0 : props.referrerPolicy
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
export {$ea8dcbcb9ea1b556$export$323e4fc2fa4753fb as RouterProvider, $ea8dcbcb9ea1b556$export$efa8c9099e530235 as shouldClientNavigate, $ea8dcbcb9ea1b556$export$95185d699e05d4d7 as openLink, $ea8dcbcb9ea1b556$export$9a302a45f65d0572 as useRouter, $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6 as useSyntheticLinkProps, $ea8dcbcb9ea1b556$export$51437d503373d223 as getSyntheticLinkProps, $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 as useLinkProps};
|
||||
//# sourceMappingURL=openLink.module.js.map
|
||||
1
node_modules/@react-aria/utils/dist/openLink.module.js.map
generated
vendored
Normal file
1
node_modules/@react-aria/utils/dist/openLink.module.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user