@typespec/html-program-viewer 0.83.0-dev.1 → 0.83.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/emitter/index.js +936 -911
- package/dist/{manifest-Vqzuc5uB.js → manifest-Bu4Jq7Zd.js} +2 -2
- package/dist/react/common.d.ts +3 -3
- package/dist/react/common.d.ts.map +1 -1
- package/dist/react/current-path/current-path.d.ts +1 -1
- package/dist/react/current-path/current-path.d.ts.map +1 -1
- package/dist/react/index.js +1049 -931
- package/dist/react/js-inspector/object-inspector.d.ts +1 -1
- package/dist/react/js-inspector/object-inspector.d.ts.map +1 -1
- package/dist/react/list-type-view/list-type-view.d.ts +1 -1
- package/dist/react/list-type-view/list-type-view.d.ts.map +1 -1
- package/dist/react/tree-navigation.d.ts +2 -2
- package/dist/react/tree-navigation.d.ts.map +1 -1
- package/dist/react/type-view/type-view.d.ts +1 -1
- package/dist/react/type-view/type-view.d.ts.map +1 -1
- package/dist/react/use-tree-navigation.d.ts +1 -1
- package/dist/react/use-tree-navigation.d.ts.map +1 -1
- package/package.json +8 -8
package/dist/emitter/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
11
11
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
12
12
|
var __getProtoOf = Object.getPrototypeOf;
|
|
13
13
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
14
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
15
15
|
var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
17
17
|
key = keys[i];
|
|
@@ -31,7 +31,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
31
31
|
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
32
32
|
});
|
|
33
33
|
//#endregion
|
|
34
|
-
//#region ../../node_modules/.pnpm/@griffel+core@1.
|
|
34
|
+
//#region ../../node_modules/.pnpm/@griffel+core@1.21.2/node_modules/@griffel/core/src/constants.js
|
|
35
35
|
var __GLOBAL__ = typeof window === "undefined" ? global : window;
|
|
36
36
|
var __NAMESPACE_PREFIX__ = "@griffel/";
|
|
37
37
|
function getGlobalVar(name, defaultValue) {
|
|
@@ -71,7 +71,7 @@ function murmur2(str) {
|
|
|
71
71
|
return ((h ^ h >>> 15) >>> 0).toString(36);
|
|
72
72
|
}
|
|
73
73
|
//#endregion
|
|
74
|
-
//#region ../../node_modules/.pnpm/@griffel+core@1.
|
|
74
|
+
//#region ../../node_modules/.pnpm/@griffel+core@1.21.2/node_modules/@griffel/core/src/runtime/utils/hashSequence.js
|
|
75
75
|
function padEndHash(value) {
|
|
76
76
|
const hashLength = value.length;
|
|
77
77
|
if (hashLength === 7) return value;
|
|
@@ -83,7 +83,7 @@ function hashSequence(classes, dir, sequenceIds = []) {
|
|
|
83
83
|
return "___" + padEndHash(murmur2(classes + dir)) + "_" + padEndHash(murmur2(sequenceIds.join("")));
|
|
84
84
|
}
|
|
85
85
|
//#endregion
|
|
86
|
-
//#region ../../node_modules/.pnpm/@griffel+core@1.
|
|
86
|
+
//#region ../../node_modules/.pnpm/@griffel+core@1.21.2/node_modules/@griffel/core/src/runtime/reduceToClassNameForSlots.js
|
|
87
87
|
/**
|
|
88
88
|
* Reduces a classname map for slot to a classname string. Uses classnames according to text directions.
|
|
89
89
|
*
|
|
@@ -127,7 +127,7 @@ function reduceToClassNameForSlots(classesMapBySlot, dir) {
|
|
|
127
127
|
return classNamesForSlots;
|
|
128
128
|
}
|
|
129
129
|
//#endregion
|
|
130
|
-
//#region ../../node_modules/.pnpm/@griffel+core@1.
|
|
130
|
+
//#region ../../node_modules/.pnpm/@griffel+core@1.21.2/node_modules/@griffel/core/src/mergeClasses.js
|
|
131
131
|
var mergeClassesCachedResults = {};
|
|
132
132
|
function mergeClasses() {
|
|
133
133
|
let dir = null;
|
|
@@ -183,7 +183,7 @@ Source string: ${className}`);
|
|
|
183
183
|
return resultClassName + newClassName;
|
|
184
184
|
}
|
|
185
185
|
//#endregion
|
|
186
|
-
//#region ../../node_modules/.pnpm/@griffel+core@1.
|
|
186
|
+
//#region ../../node_modules/.pnpm/@griffel+core@1.21.2/node_modules/@griffel/core/src/devtools/store.js
|
|
187
187
|
var sequenceDetails = {};
|
|
188
188
|
var cssRules = /* @__PURE__ */ new Set();
|
|
189
189
|
var debugData = {
|
|
@@ -211,7 +211,7 @@ var debugData = {
|
|
|
211
211
|
}
|
|
212
212
|
};
|
|
213
213
|
//#endregion
|
|
214
|
-
//#region ../../node_modules/.pnpm/@griffel+core@1.
|
|
214
|
+
//#region ../../node_modules/.pnpm/@griffel+core@1.21.2/node_modules/@griffel/core/src/devtools/utils.js
|
|
215
215
|
function getDirectionalClassName(classes, direction) {
|
|
216
216
|
return Array.isArray(classes) ? direction === "rtl" ? classes[1] : classes[0] : classes || "";
|
|
217
217
|
}
|
|
@@ -235,7 +235,7 @@ function getDebugClassNames(lookupItem, parentLookupItem, parentDebugClassNames,
|
|
|
235
235
|
});
|
|
236
236
|
}
|
|
237
237
|
//#endregion
|
|
238
|
-
//#region ../../node_modules/.pnpm/@griffel+core@1.
|
|
238
|
+
//#region ../../node_modules/.pnpm/@griffel+core@1.21.2/node_modules/@griffel/core/src/devtools/getAtomicDebugSequenceTree.js
|
|
239
239
|
function getAtomicDebugSequenceTree(debugSequenceHash, parentNode) {
|
|
240
240
|
const lookupItem = DEFINITION_LOOKUP_TABLE[debugSequenceHash];
|
|
241
241
|
if (lookupItem === void 0) return;
|
|
@@ -267,7 +267,7 @@ function getAtomicDebugSequenceTree(debugSequenceHash, parentNode) {
|
|
|
267
267
|
return node;
|
|
268
268
|
}
|
|
269
269
|
//#endregion
|
|
270
|
-
//#region ../../node_modules/.pnpm/@griffel+core@1.
|
|
270
|
+
//#region ../../node_modules/.pnpm/@griffel+core@1.21.2/node_modules/@griffel/core/src/devtools/getResetDebugSequence.js
|
|
271
271
|
function getResetDebugSequence(debugSequenceHash) {
|
|
272
272
|
if (DEBUG_RESET_CLASSES[debugSequenceHash] === void 0) return;
|
|
273
273
|
const node = {
|
|
@@ -286,7 +286,7 @@ function getResetDebugSequence(debugSequenceHash) {
|
|
|
286
286
|
return node;
|
|
287
287
|
}
|
|
288
288
|
//#endregion
|
|
289
|
-
//#region ../../node_modules/.pnpm/@griffel+core@1.
|
|
289
|
+
//#region ../../node_modules/.pnpm/@griffel+core@1.21.2/node_modules/@griffel/core/src/devtools/mergeDebugSequence.js
|
|
290
290
|
function mergeDebugSequence(atomicClases, resetClassName) {
|
|
291
291
|
const debugResultRootAtomic = atomicClases ? getAtomicDebugSequenceTree(atomicClases) : void 0;
|
|
292
292
|
const debugResultRootReset = resetClassName ? getResetDebugSequence(resetClassName) : void 0;
|
|
@@ -301,7 +301,7 @@ function mergeDebugSequence(atomicClases, resetClassName) {
|
|
|
301
301
|
};
|
|
302
302
|
}
|
|
303
303
|
//#endregion
|
|
304
|
-
//#region ../../node_modules/.pnpm/@griffel+core@1.
|
|
304
|
+
//#region ../../node_modules/.pnpm/@griffel+core@1.21.2/node_modules/@griffel/core/src/devtools/injectDevTools.js
|
|
305
305
|
function injectDevTools(document) {
|
|
306
306
|
const window = document.defaultView;
|
|
307
307
|
if (!window || window.__GRIFFEL_DEVTOOLS__) return;
|
|
@@ -323,17 +323,73 @@ function injectDevTools(document) {
|
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
325
|
//#endregion
|
|
326
|
-
//#region ../../node_modules/.pnpm/@griffel+core@1.
|
|
327
|
-
var isDevToolsEnabled =
|
|
326
|
+
//#region ../../node_modules/.pnpm/@griffel+core@1.21.2/node_modules/@griffel/core/src/devtools/isDevToolsEnabled.js
|
|
327
|
+
var isDevToolsEnabled = (() => {
|
|
328
328
|
var _a;
|
|
329
329
|
try {
|
|
330
330
|
return Boolean(typeof window !== "undefined" && ((_a = window.sessionStorage) === null || _a === void 0 ? void 0 : _a.getItem("__GRIFFEL_DEVTOOLS__")));
|
|
331
|
-
} catch
|
|
331
|
+
} catch {
|
|
332
332
|
return false;
|
|
333
333
|
}
|
|
334
334
|
})();
|
|
335
335
|
//#endregion
|
|
336
|
-
//#region ../../node_modules/.pnpm/@griffel+core@1.
|
|
336
|
+
//#region ../../node_modules/.pnpm/@griffel+core@1.21.2/node_modules/@griffel/core/src/devtools/react-render-tracker/stackTrace.js
|
|
337
|
+
var UNKNOWN_FUNCTION = "<unknown>";
|
|
338
|
+
function parseStackTraceLine(line) {
|
|
339
|
+
return parseChrome(line) || parseGecko(line) || parseJSC(line);
|
|
340
|
+
}
|
|
341
|
+
var chromeRe = /^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/|[a-z]:\\|\\\\).*?)?\)?\s*$/i;
|
|
342
|
+
var chromeRe2 = /^\s*at ()((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/|[a-z]:\\|\\\\).*?)\s*$/i;
|
|
343
|
+
var chromeEvalRe = /\((\S*)\)/;
|
|
344
|
+
function parseChrome(line) {
|
|
345
|
+
const parts = chromeRe.exec(line) || chromeRe2.exec(line);
|
|
346
|
+
if (!parts) return null;
|
|
347
|
+
let loc = parts[2];
|
|
348
|
+
const isNative = loc && loc.indexOf("native") === 0;
|
|
349
|
+
const isEval = loc && loc.indexOf("eval") === 0;
|
|
350
|
+
const submatch = chromeEvalRe.exec(loc);
|
|
351
|
+
if (isEval && submatch !== null) loc = submatch[1];
|
|
352
|
+
return {
|
|
353
|
+
loc: !isNative ? parts[2] : null,
|
|
354
|
+
name: parts[1] || UNKNOWN_FUNCTION
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
var geckoRe = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)\s*$/i;
|
|
358
|
+
var geckoEvalRe = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i;
|
|
359
|
+
function parseGecko(line) {
|
|
360
|
+
const parts = geckoRe.exec(line);
|
|
361
|
+
if (!parts) return null;
|
|
362
|
+
let loc = parts[3];
|
|
363
|
+
const isEval = loc && loc.indexOf(" > eval") > -1;
|
|
364
|
+
const submatch = geckoEvalRe.exec(loc);
|
|
365
|
+
if (isEval && submatch !== null) loc = submatch[1];
|
|
366
|
+
return {
|
|
367
|
+
loc: parts[3],
|
|
368
|
+
name: parts[1] || UNKNOWN_FUNCTION
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
var javaScriptCoreRe = /^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?)\s*$/i;
|
|
372
|
+
function parseJSC(line) {
|
|
373
|
+
const parts = javaScriptCoreRe.exec(line);
|
|
374
|
+
if (!parts) return null;
|
|
375
|
+
return {
|
|
376
|
+
loc: parts[3],
|
|
377
|
+
name: parts[1] || UNKNOWN_FUNCTION
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
//#endregion
|
|
381
|
+
//#region ../../node_modules/.pnpm/@griffel+core@1.21.2/node_modules/@griffel/core/src/devtools/getSourceURLfromError.js
|
|
382
|
+
function getSourceURLfromError() {
|
|
383
|
+
const userMakeStyleCallLine = findUserMakeStyleCallInStacks(String((/* @__PURE__ */ new Error()).stack).split("\n"));
|
|
384
|
+
if (userMakeStyleCallLine === void 0) return;
|
|
385
|
+
const result = parseStackTraceLine(userMakeStyleCallLine);
|
|
386
|
+
return result === null || result === void 0 ? void 0 : result.loc;
|
|
387
|
+
}
|
|
388
|
+
function findUserMakeStyleCallInStacks(stacks) {
|
|
389
|
+
for (let i = stacks.length - 1; i >= 0; --i) if (stacks[i].includes("at getSourceURLfromError")) return stacks[i + 3];
|
|
390
|
+
}
|
|
391
|
+
//#endregion
|
|
392
|
+
//#region ../../node_modules/.pnpm/@griffel+core@1.21.2/node_modules/@griffel/core/src/runtime/utils/normalizeCSSBucketEntry.js
|
|
337
393
|
/**
|
|
338
394
|
* @internal
|
|
339
395
|
*
|
|
@@ -346,7 +402,7 @@ function normalizeCSSBucketEntry(entry) {
|
|
|
346
402
|
return entry;
|
|
347
403
|
}
|
|
348
404
|
//#endregion
|
|
349
|
-
//#region ../../node_modules/.pnpm/@griffel+core@1.
|
|
405
|
+
//#region ../../node_modules/.pnpm/@griffel+core@1.21.2/node_modules/@griffel/core/src/renderer/createIsomorphicStyleSheet.js
|
|
350
406
|
function createIsomorphicStyleSheet(styleElement, bucketName, priority, elementAttributes) {
|
|
351
407
|
const __cssRulesForSSR = [];
|
|
352
408
|
elementAttributes[DATA_BUCKET_ATTR] = bucketName;
|
|
@@ -400,7 +456,10 @@ function getStyleSheetForBucket(bucketName, targetDocument, insertionPoint, rend
|
|
|
400
456
|
const stylesheetKey = getStyleSheetKey(bucketName, media, priority);
|
|
401
457
|
if (!renderer.stylesheets[stylesheetKey]) {
|
|
402
458
|
const tag = targetDocument && targetDocument.createElement("style");
|
|
403
|
-
const stylesheet = createIsomorphicStyleSheet(tag, bucketName, priority,
|
|
459
|
+
const stylesheet = createIsomorphicStyleSheet(tag, bucketName, priority, {
|
|
460
|
+
...renderer.styleElementAttributes,
|
|
461
|
+
...isMediaBucket && { media }
|
|
462
|
+
});
|
|
404
463
|
renderer.stylesheets[stylesheetKey] = stylesheet;
|
|
405
464
|
if ((targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.head) && tag) targetDocument.head.insertBefore(tag, findInsertionPoint(targetDocument, insertionPoint, bucketName, renderer, metadata));
|
|
406
465
|
}
|
|
@@ -449,7 +508,7 @@ function findInsertionPoint(targetDocument, insertionPoint, targetBucket, render
|
|
|
449
508
|
return insertionPoint ? insertionPoint.nextSibling : null;
|
|
450
509
|
}
|
|
451
510
|
//#endregion
|
|
452
|
-
//#region ../../node_modules/.pnpm/@griffel+core@1.
|
|
511
|
+
//#region ../../node_modules/.pnpm/@griffel+core@1.21.2/node_modules/@griffel/core/src/renderer/safeInsertRule.js
|
|
453
512
|
var ignoreSuffixesRegex = /* @__PURE__ */ new RegExp(`:(${/* @__PURE__ */ [
|
|
454
513
|
"-moz-placeholder",
|
|
455
514
|
"-moz-focus-inner",
|
|
@@ -471,7 +530,7 @@ function safeInsertRule(sheet, ruleCSS) {
|
|
|
471
530
|
}
|
|
472
531
|
}
|
|
473
532
|
//#endregion
|
|
474
|
-
//#region ../../node_modules/.pnpm/@griffel+core@1.
|
|
533
|
+
//#region ../../node_modules/.pnpm/@griffel+core@1.21.2/node_modules/@griffel/core/src/renderer/createDOMRenderer.js
|
|
475
534
|
var lastIndex = 0;
|
|
476
535
|
/** @internal */
|
|
477
536
|
var defaultCompareMediaQueries = (a, b) => a < b ? -1 : a > b ? 1 : 0;
|
|
@@ -509,63 +568,7 @@ function createDOMRenderer(targetDocument = typeof document === "undefined" ? vo
|
|
|
509
568
|
return renderer;
|
|
510
569
|
}
|
|
511
570
|
//#endregion
|
|
512
|
-
//#region ../../node_modules/.pnpm/@griffel+core@1.
|
|
513
|
-
var UNKNOWN_FUNCTION = "<unknown>";
|
|
514
|
-
function parseStackTraceLine(line) {
|
|
515
|
-
return parseChrome(line) || parseGecko(line) || parseJSC(line);
|
|
516
|
-
}
|
|
517
|
-
var chromeRe = /^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/|[a-z]:\\|\\\\).*?)?\)?\s*$/i;
|
|
518
|
-
var chromeRe2 = /^\s*at ()((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/|[a-z]:\\|\\\\).*?)\s*$/i;
|
|
519
|
-
var chromeEvalRe = /\((\S*)\)/;
|
|
520
|
-
function parseChrome(line) {
|
|
521
|
-
const parts = chromeRe.exec(line) || chromeRe2.exec(line);
|
|
522
|
-
if (!parts) return null;
|
|
523
|
-
let loc = parts[2];
|
|
524
|
-
const isNative = loc && loc.indexOf("native") === 0;
|
|
525
|
-
const isEval = loc && loc.indexOf("eval") === 0;
|
|
526
|
-
const submatch = chromeEvalRe.exec(loc);
|
|
527
|
-
if (isEval && submatch != null) loc = submatch[1];
|
|
528
|
-
return {
|
|
529
|
-
loc: !isNative ? parts[2] : null,
|
|
530
|
-
name: parts[1] || UNKNOWN_FUNCTION
|
|
531
|
-
};
|
|
532
|
-
}
|
|
533
|
-
var geckoRe = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)\s*$/i;
|
|
534
|
-
var geckoEvalRe = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i;
|
|
535
|
-
function parseGecko(line) {
|
|
536
|
-
const parts = geckoRe.exec(line);
|
|
537
|
-
if (!parts) return null;
|
|
538
|
-
let loc = parts[3];
|
|
539
|
-
const isEval = loc && loc.indexOf(" > eval") > -1;
|
|
540
|
-
const submatch = geckoEvalRe.exec(loc);
|
|
541
|
-
if (isEval && submatch != null) loc = submatch[1];
|
|
542
|
-
return {
|
|
543
|
-
loc: parts[3],
|
|
544
|
-
name: parts[1] || UNKNOWN_FUNCTION
|
|
545
|
-
};
|
|
546
|
-
}
|
|
547
|
-
var javaScriptCoreRe = /^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?)\s*$/i;
|
|
548
|
-
function parseJSC(line) {
|
|
549
|
-
const parts = javaScriptCoreRe.exec(line);
|
|
550
|
-
if (!parts) return null;
|
|
551
|
-
return {
|
|
552
|
-
loc: parts[3],
|
|
553
|
-
name: parts[1] || UNKNOWN_FUNCTION
|
|
554
|
-
};
|
|
555
|
-
}
|
|
556
|
-
//#endregion
|
|
557
|
-
//#region ../../node_modules/.pnpm/@griffel+core@1.20.1/node_modules/@griffel/core/devtools/getSourceURLfromError.esm.js
|
|
558
|
-
function getSourceURLfromError() {
|
|
559
|
-
const userMakeStyleCallLine = findUserMakeStyleCallInStacks(String((/* @__PURE__ */ new Error()).stack).split("\n"));
|
|
560
|
-
if (userMakeStyleCallLine === void 0) return;
|
|
561
|
-
const result = parseStackTraceLine(userMakeStyleCallLine);
|
|
562
|
-
return result === null || result === void 0 ? void 0 : result.loc;
|
|
563
|
-
}
|
|
564
|
-
function findUserMakeStyleCallInStacks(stacks) {
|
|
565
|
-
for (let i = stacks.length - 1; i >= 0; --i) if (stacks[i].includes("at getSourceURLfromError")) return stacks[i + 3];
|
|
566
|
-
}
|
|
567
|
-
//#endregion
|
|
568
|
-
//#region ../../node_modules/.pnpm/@griffel+core@1.20.1/node_modules/@griffel/core/insertionFactory.esm.js
|
|
571
|
+
//#region ../../node_modules/.pnpm/@griffel+core@1.21.2/node_modules/@griffel/core/src/insertionFactory.js
|
|
569
572
|
/**
|
|
570
573
|
* Default implementation of insertion factory. Inserts styles only once per renderer and performs
|
|
571
574
|
* insertion immediately after styles computation.
|
|
@@ -582,11 +585,11 @@ var insertionFactory = () => {
|
|
|
582
585
|
};
|
|
583
586
|
};
|
|
584
587
|
//#endregion
|
|
585
|
-
//#region ../../node_modules/.pnpm/@griffel+core@1.
|
|
588
|
+
//#region ../../node_modules/.pnpm/@griffel+core@1.21.2/node_modules/@griffel/core/src/__styles.js
|
|
586
589
|
/**
|
|
587
590
|
* A version of makeStyles() that accepts build output as an input and skips all runtime transforms.
|
|
588
591
|
*
|
|
589
|
-
* @
|
|
592
|
+
* @private
|
|
590
593
|
*/
|
|
591
594
|
function __styles(classesMapBySlot, cssRules, factory = insertionFactory) {
|
|
592
595
|
const insertStyles = factory();
|
|
@@ -608,150 +611,393 @@ function __styles(classesMapBySlot, cssRules, factory = insertionFactory) {
|
|
|
608
611
|
return computeClasses;
|
|
609
612
|
}
|
|
610
613
|
//#endregion
|
|
611
|
-
//#region ../../node_modules/.pnpm
|
|
612
|
-
/**
|
|
613
|
-
* @private
|
|
614
|
-
*/
|
|
615
|
-
var RendererContext = /* @__PURE__ */ React.createContext(/* @__PURE__ */ createDOMRenderer());
|
|
616
|
-
/**
|
|
617
|
-
* Returns an instance of current makeStyles() renderer.
|
|
618
|
-
*
|
|
619
|
-
* @private Exported as "useRenderer_unstable" use it on own risk. Can be changed or removed without a notice.
|
|
620
|
-
*/
|
|
621
|
-
function useRenderer() {
|
|
622
|
-
return React.useContext(RendererContext);
|
|
623
|
-
}
|
|
624
|
-
//#endregion
|
|
625
|
-
//#region ../../node_modules/.pnpm/@griffel+react@1.6.1_react@19.2.5/node_modules/@griffel/react/TextDirectionContext.esm.js
|
|
626
|
-
/**
|
|
627
|
-
* @private
|
|
628
|
-
*/
|
|
629
|
-
var TextDirectionContext = /* @__PURE__ */ React.createContext("ltr");
|
|
630
|
-
/**
|
|
631
|
-
* @public
|
|
632
|
-
*/
|
|
633
|
-
var TextDirectionProvider = ({ children, dir }) => {
|
|
634
|
-
return /* @__PURE__ */ React.createElement(TextDirectionContext.Provider, { value: dir }, children);
|
|
635
|
-
};
|
|
636
|
-
//#endregion
|
|
637
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-provider@9._4942f6154b51c3194d4114596007c551/node_modules/@fluentui/react-provider/lib/components/FluentProvider/createCSSRuleFromTheme.js
|
|
638
|
-
var CSS_ESCAPE_MAP = {
|
|
639
|
-
"<": "\\3C ",
|
|
640
|
-
">": "\\3E "
|
|
641
|
-
};
|
|
642
|
-
/**
|
|
643
|
-
* Escapes characters that could break out of a <style> tag during SSR.
|
|
644
|
-
*
|
|
645
|
-
* IMPORTANT: Do not strip quotes. Theme values legitimately include quoted font families and other CSS.
|
|
646
|
-
* We only need to ensure the generated text cannot terminate the style tag and inject HTML.
|
|
647
|
-
*/ function escapeForStyleTag(value) {
|
|
648
|
-
return value.replace(/[<>]/g, (match) => CSS_ESCAPE_MAP[match]);
|
|
649
|
-
}
|
|
614
|
+
//#region ../../node_modules/.pnpm/react@19.2.7/node_modules/react/cjs/react-jsx-runtime.production.js
|
|
650
615
|
/**
|
|
651
|
-
*
|
|
616
|
+
* @license React
|
|
617
|
+
* react-jsx-runtime.production.js
|
|
652
618
|
*
|
|
653
|
-
*
|
|
654
|
-
*/ function createCSSRuleFromTheme(selector, theme) {
|
|
655
|
-
if (theme) return `${selector} { ${escapeForStyleTag(Object.keys(theme).reduce((cssVarRule, cssVar) => {
|
|
656
|
-
return `${cssVarRule}--${cssVar}: ${theme[cssVar]}; `;
|
|
657
|
-
}, ""))} }`;
|
|
658
|
-
return `${selector} {}`;
|
|
659
|
-
}
|
|
660
|
-
//#endregion
|
|
661
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-utilities@9_a4269a14c6e5e3251a31d6808775b455/node_modules/@fluentui/react-utilities/lib/compose/constants.js
|
|
662
|
-
/**
|
|
663
|
-
* @internal
|
|
664
|
-
* Internal reference for the render function
|
|
665
|
-
*/ var SLOT_RENDER_FUNCTION_SYMBOL = Symbol.for("fui.slotRenderFunction");
|
|
666
|
-
/**
|
|
667
|
-
* @internal
|
|
668
|
-
* Internal reference for the render function
|
|
669
|
-
*/ var SLOT_ELEMENT_TYPE_SYMBOL = Symbol.for("fui.slotElementType");
|
|
670
|
-
/**
|
|
671
|
-
* @internal
|
|
672
|
-
* Internal cache of the original className prop for the slot, before being modified by the useStyles hook.
|
|
673
|
-
*/ var SLOT_CLASS_NAME_PROP_SYMBOL = Symbol.for("fui.slotClassNameProp");
|
|
674
|
-
//#endregion
|
|
675
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-utilities@9_a4269a14c6e5e3251a31d6808775b455/node_modules/@fluentui/react-utilities/lib/compose/slot.js
|
|
676
|
-
/**
|
|
677
|
-
* Creates a slot from a slot shorthand or properties (`props.SLOT_NAME` or `props` itself)
|
|
678
|
-
* @param value - the value of the slot, it can be a slot shorthand, a slot component or a slot properties
|
|
679
|
-
* @param options - values you can pass to alter the signature of a slot, those values are:
|
|
619
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
680
620
|
*
|
|
681
|
-
*
|
|
682
|
-
*
|
|
683
|
-
*/
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
621
|
+
* This source code is licensed under the MIT license found in the
|
|
622
|
+
* LICENSE file in the root directory of this source tree.
|
|
623
|
+
*/
|
|
624
|
+
var require_react_jsx_runtime_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
625
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
626
|
+
function jsxProd(type, config, maybeKey) {
|
|
627
|
+
var key = null;
|
|
628
|
+
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
629
|
+
void 0 !== config.key && (key = "" + config.key);
|
|
630
|
+
if ("key" in config) {
|
|
631
|
+
maybeKey = {};
|
|
632
|
+
for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
|
|
633
|
+
} else maybeKey = config;
|
|
634
|
+
config = maybeKey.ref;
|
|
635
|
+
return {
|
|
636
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
637
|
+
type,
|
|
638
|
+
key,
|
|
639
|
+
ref: void 0 !== config ? config : null,
|
|
640
|
+
props: maybeKey
|
|
641
|
+
};
|
|
700
642
|
}
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
* The main difference between this function and `slot` is that this function does not return the metadata required for a slot to be considered a properly renderable slot, it only converts the value to a slot properties object
|
|
706
|
-
* @param value - the value of the slot, it can be a slot shorthand or a slot properties object
|
|
707
|
-
*/ function resolveShorthand(value) {
|
|
708
|
-
if (typeof value === "string" || typeof value === "number" || isIterable(value) || React.isValidElement(value)) return { children: value };
|
|
709
|
-
if (value && typeof value !== "object" && process.env.NODE_ENV !== "production") console.error(`@fluentui/react-utilities [slot.${resolveShorthand.name}]:
|
|
710
|
-
A slot got an invalid value "${value}" (${typeof value}).
|
|
711
|
-
A valid value for a slot is a slot shorthand or slot properties object.
|
|
712
|
-
Slot shorthands can be strings, numbers, arrays or JSX elements`);
|
|
713
|
-
return value;
|
|
714
|
-
}
|
|
715
|
-
var isIterable = (value) => typeof value === "object" && value !== null && Symbol.iterator in value;
|
|
716
|
-
//#endregion
|
|
717
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-utilities@9_a4269a14c6e5e3251a31d6808775b455/node_modules/@fluentui/react-utilities/lib/compose/isSlot.js
|
|
718
|
-
/**
|
|
719
|
-
* Guard method to ensure a given element is a slot.
|
|
720
|
-
* This is mainly used internally to ensure a slot is being used as a component.
|
|
721
|
-
*/ function isSlot(element) {
|
|
722
|
-
return Boolean(element === null || element === void 0 ? void 0 : element.hasOwnProperty(SLOT_ELEMENT_TYPE_SYMBOL));
|
|
723
|
-
}
|
|
643
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
644
|
+
exports.jsx = jsxProd;
|
|
645
|
+
exports.jsxs = jsxProd;
|
|
646
|
+
}));
|
|
724
647
|
//#endregion
|
|
725
|
-
//#region ../../node_modules/.pnpm
|
|
648
|
+
//#region ../../node_modules/.pnpm/react@19.2.7/node_modules/react/cjs/react-jsx-runtime.development.js
|
|
726
649
|
/**
|
|
727
|
-
* @
|
|
728
|
-
*
|
|
729
|
-
* A properly declared slot must be declared by using the `slot` method.
|
|
650
|
+
* @license React
|
|
651
|
+
* react-jsx-runtime.development.js
|
|
730
652
|
*
|
|
731
|
-
*
|
|
732
|
-
*
|
|
733
|
-
*
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
);
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
653
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
654
|
+
*
|
|
655
|
+
* This source code is licensed under the MIT license found in the
|
|
656
|
+
* LICENSE file in the root directory of this source tree.
|
|
657
|
+
*/
|
|
658
|
+
var require_react_jsx_runtime_development = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
659
|
+
"production" !== process.env.NODE_ENV && (function() {
|
|
660
|
+
function getComponentNameFromType(type) {
|
|
661
|
+
if (null == type) return null;
|
|
662
|
+
if ("function" === typeof type) return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
663
|
+
if ("string" === typeof type) return type;
|
|
664
|
+
switch (type) {
|
|
665
|
+
case REACT_FRAGMENT_TYPE: return "Fragment";
|
|
666
|
+
case REACT_PROFILER_TYPE: return "Profiler";
|
|
667
|
+
case REACT_STRICT_MODE_TYPE: return "StrictMode";
|
|
668
|
+
case REACT_SUSPENSE_TYPE: return "Suspense";
|
|
669
|
+
case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList";
|
|
670
|
+
case REACT_ACTIVITY_TYPE: return "Activity";
|
|
671
|
+
}
|
|
672
|
+
if ("object" === typeof type) switch ("number" === typeof type.tag && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), type.$$typeof) {
|
|
673
|
+
case REACT_PORTAL_TYPE: return "Portal";
|
|
674
|
+
case REACT_CONTEXT_TYPE: return type.displayName || "Context";
|
|
675
|
+
case REACT_CONSUMER_TYPE: return (type._context.displayName || "Context") + ".Consumer";
|
|
676
|
+
case REACT_FORWARD_REF_TYPE:
|
|
677
|
+
var innerType = type.render;
|
|
678
|
+
type = type.displayName;
|
|
679
|
+
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
680
|
+
return type;
|
|
681
|
+
case REACT_MEMO_TYPE: return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
682
|
+
case REACT_LAZY_TYPE:
|
|
683
|
+
innerType = type._payload;
|
|
684
|
+
type = type._init;
|
|
685
|
+
try {
|
|
686
|
+
return getComponentNameFromType(type(innerType));
|
|
687
|
+
} catch (x) {}
|
|
688
|
+
}
|
|
689
|
+
return null;
|
|
690
|
+
}
|
|
691
|
+
function testStringCoercion(value) {
|
|
692
|
+
return "" + value;
|
|
693
|
+
}
|
|
694
|
+
function checkKeyStringCoercion(value) {
|
|
695
|
+
try {
|
|
696
|
+
testStringCoercion(value);
|
|
697
|
+
var JSCompiler_inline_result = !1;
|
|
698
|
+
} catch (e) {
|
|
699
|
+
JSCompiler_inline_result = !0;
|
|
700
|
+
}
|
|
701
|
+
if (JSCompiler_inline_result) {
|
|
702
|
+
JSCompiler_inline_result = console;
|
|
703
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
704
|
+
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
705
|
+
JSCompiler_temp_const.call(JSCompiler_inline_result, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", JSCompiler_inline_result$jscomp$0);
|
|
706
|
+
return testStringCoercion(value);
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
function getTaskName(type) {
|
|
710
|
+
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
711
|
+
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE) return "<...>";
|
|
712
|
+
try {
|
|
713
|
+
var name = getComponentNameFromType(type);
|
|
714
|
+
return name ? "<" + name + ">" : "<...>";
|
|
715
|
+
} catch (x) {
|
|
716
|
+
return "<...>";
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
function getOwner() {
|
|
720
|
+
var dispatcher = ReactSharedInternals.A;
|
|
721
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
722
|
+
}
|
|
723
|
+
function UnknownOwner() {
|
|
724
|
+
return Error("react-stack-top-frame");
|
|
725
|
+
}
|
|
726
|
+
function hasValidKey(config) {
|
|
727
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
728
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
729
|
+
if (getter && getter.isReactWarning) return !1;
|
|
730
|
+
}
|
|
731
|
+
return void 0 !== config.key;
|
|
732
|
+
}
|
|
733
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
734
|
+
function warnAboutAccessingKey() {
|
|
735
|
+
specialPropKeyWarningShown || (specialPropKeyWarningShown = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", displayName));
|
|
736
|
+
}
|
|
737
|
+
warnAboutAccessingKey.isReactWarning = !0;
|
|
738
|
+
Object.defineProperty(props, "key", {
|
|
739
|
+
get: warnAboutAccessingKey,
|
|
740
|
+
configurable: !0
|
|
741
|
+
});
|
|
742
|
+
}
|
|
743
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
744
|
+
var componentName = getComponentNameFromType(this.type);
|
|
745
|
+
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."));
|
|
746
|
+
componentName = this.props.ref;
|
|
747
|
+
return void 0 !== componentName ? componentName : null;
|
|
748
|
+
}
|
|
749
|
+
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
750
|
+
var refProp = props.ref;
|
|
751
|
+
type = {
|
|
752
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
753
|
+
type,
|
|
754
|
+
key,
|
|
755
|
+
props,
|
|
756
|
+
_owner: owner
|
|
757
|
+
};
|
|
758
|
+
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
|
|
759
|
+
enumerable: !1,
|
|
760
|
+
get: elementRefGetterWithDeprecationWarning
|
|
761
|
+
}) : Object.defineProperty(type, "ref", {
|
|
762
|
+
enumerable: !1,
|
|
763
|
+
value: null
|
|
764
|
+
});
|
|
765
|
+
type._store = {};
|
|
766
|
+
Object.defineProperty(type._store, "validated", {
|
|
767
|
+
configurable: !1,
|
|
768
|
+
enumerable: !1,
|
|
769
|
+
writable: !0,
|
|
770
|
+
value: 0
|
|
771
|
+
});
|
|
772
|
+
Object.defineProperty(type, "_debugInfo", {
|
|
773
|
+
configurable: !1,
|
|
774
|
+
enumerable: !1,
|
|
775
|
+
writable: !0,
|
|
776
|
+
value: null
|
|
777
|
+
});
|
|
778
|
+
Object.defineProperty(type, "_debugStack", {
|
|
779
|
+
configurable: !1,
|
|
780
|
+
enumerable: !1,
|
|
781
|
+
writable: !0,
|
|
782
|
+
value: debugStack
|
|
783
|
+
});
|
|
784
|
+
Object.defineProperty(type, "_debugTask", {
|
|
785
|
+
configurable: !1,
|
|
786
|
+
enumerable: !1,
|
|
787
|
+
writable: !0,
|
|
788
|
+
value: debugTask
|
|
789
|
+
});
|
|
790
|
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
791
|
+
return type;
|
|
792
|
+
}
|
|
793
|
+
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
|
|
794
|
+
var children = config.children;
|
|
795
|
+
if (void 0 !== children) if (isStaticChildren) if (isArrayImpl(children)) {
|
|
796
|
+
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++) validateChildKeys(children[isStaticChildren]);
|
|
797
|
+
Object.freeze && Object.freeze(children);
|
|
798
|
+
} else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
799
|
+
else validateChildKeys(children);
|
|
800
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
801
|
+
children = getComponentNameFromType(type);
|
|
802
|
+
var keys = Object.keys(config).filter(function(k) {
|
|
803
|
+
return "key" !== k;
|
|
804
|
+
});
|
|
805
|
+
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
806
|
+
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", isStaticChildren, children, keys, children), didWarnAboutKeySpread[children + isStaticChildren] = !0);
|
|
807
|
+
}
|
|
808
|
+
children = null;
|
|
809
|
+
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
810
|
+
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
811
|
+
if ("key" in config) {
|
|
812
|
+
maybeKey = {};
|
|
813
|
+
for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
|
|
814
|
+
} else maybeKey = config;
|
|
815
|
+
children && defineKeyPropWarningGetter(maybeKey, "function" === typeof type ? type.displayName || type.name || "Unknown" : type);
|
|
816
|
+
return ReactElement(type, children, maybeKey, getOwner(), debugStack, debugTask);
|
|
817
|
+
}
|
|
818
|
+
function validateChildKeys(node) {
|
|
819
|
+
isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
820
|
+
}
|
|
821
|
+
function isValidElement(object) {
|
|
822
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
823
|
+
}
|
|
824
|
+
var React = __require("react"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
825
|
+
return null;
|
|
826
|
+
};
|
|
827
|
+
React = { react_stack_bottom_frame: function(callStackForError) {
|
|
828
|
+
return callStackForError();
|
|
829
|
+
} };
|
|
830
|
+
var specialPropKeyWarningShown;
|
|
831
|
+
var didWarnAboutElementRef = {};
|
|
832
|
+
var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(React, UnknownOwner)();
|
|
833
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
834
|
+
var didWarnAboutKeySpread = {};
|
|
835
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
836
|
+
exports.jsx = function(type, config, maybeKey) {
|
|
837
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
838
|
+
return jsxDEVImpl(type, config, maybeKey, !1, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
|
|
839
|
+
};
|
|
840
|
+
exports.jsxs = function(type, config, maybeKey) {
|
|
841
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
842
|
+
return jsxDEVImpl(type, config, maybeKey, !0, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
|
|
843
|
+
};
|
|
844
|
+
})();
|
|
845
|
+
}));
|
|
846
|
+
//#endregion
|
|
847
|
+
//#region ../../node_modules/.pnpm/@griffel+react@1.7.4_react@19.2.7/node_modules/@griffel/react/src/RendererContext.js
|
|
848
|
+
var import_jsx_runtime = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
849
|
+
if (process.env.NODE_ENV === "production") module.exports = require_react_jsx_runtime_production();
|
|
850
|
+
else module.exports = require_react_jsx_runtime_development();
|
|
851
|
+
})))(), 1);
|
|
852
|
+
/**
|
|
853
|
+
* @private
|
|
854
|
+
*/
|
|
855
|
+
var RendererContext = /* @__PURE__ */ createContext(/* @__PURE__ */ createDOMRenderer());
|
|
856
|
+
/**
|
|
857
|
+
* Returns an instance of current makeStyles() renderer.
|
|
858
|
+
*
|
|
859
|
+
* @private Exported as "useRenderer_unstable" use it on own risk. Can be changed or removed without a notice.
|
|
860
|
+
*/
|
|
861
|
+
function useRenderer() {
|
|
862
|
+
return useContext(RendererContext);
|
|
863
|
+
}
|
|
864
|
+
//#endregion
|
|
865
|
+
//#region ../../node_modules/.pnpm/@griffel+react@1.7.4_react@19.2.7/node_modules/@griffel/react/src/TextDirectionContext.js
|
|
866
|
+
/**
|
|
867
|
+
* @private
|
|
868
|
+
*/
|
|
869
|
+
var TextDirectionContext = /* @__PURE__ */ createContext("ltr");
|
|
870
|
+
/**
|
|
871
|
+
* @public
|
|
872
|
+
*/
|
|
873
|
+
var TextDirectionProvider = ({ children, dir }) => {
|
|
874
|
+
return (0, import_jsx_runtime.jsx)(TextDirectionContext.Provider, {
|
|
875
|
+
value: dir,
|
|
876
|
+
children
|
|
877
|
+
});
|
|
878
|
+
};
|
|
879
|
+
//#endregion
|
|
880
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-provider@9._d288fbb326c7d59fc92ddeaf64bc3ca8/node_modules/@fluentui/react-provider/lib/components/FluentProvider/createCSSRuleFromTheme.js
|
|
881
|
+
var CSS_ESCAPE_MAP = {
|
|
882
|
+
"<": "\\3C ",
|
|
883
|
+
">": "\\3E "
|
|
884
|
+
};
|
|
885
|
+
/**
|
|
886
|
+
* Escapes characters that could break out of a <style> tag during SSR.
|
|
887
|
+
*
|
|
888
|
+
* IMPORTANT: Do not strip quotes. Theme values legitimately include quoted font families and other CSS.
|
|
889
|
+
* We only need to ensure the generated text cannot terminate the style tag and inject HTML.
|
|
890
|
+
*/ function escapeForStyleTag(value) {
|
|
891
|
+
return value.replace(/[<>]/g, (match) => CSS_ESCAPE_MAP[match]);
|
|
892
|
+
}
|
|
893
|
+
/**
|
|
894
|
+
* Creates a CSS rule from a theme object.
|
|
895
|
+
*
|
|
896
|
+
* Useful for scenarios when you want to apply theming statically to a top level elements like `body`.
|
|
897
|
+
*/ function createCSSRuleFromTheme(selector, theme) {
|
|
898
|
+
if (theme) return `${selector} { ${escapeForStyleTag(Object.keys(theme).reduce((cssVarRule, cssVar) => {
|
|
899
|
+
return `${cssVarRule}--${cssVar}: ${theme[cssVar]}; `;
|
|
900
|
+
}, ""))} }`;
|
|
901
|
+
return `${selector} {}`;
|
|
902
|
+
}
|
|
903
|
+
//#endregion
|
|
904
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-utilities@9_9e09e28e8ac3461f040db0c64ea1ae4c/node_modules/@fluentui/react-utilities/lib/compose/constants.js
|
|
905
|
+
/**
|
|
906
|
+
* Internal reference for the render function
|
|
907
|
+
*
|
|
908
|
+
* @internal
|
|
909
|
+
*/ var SLOT_RENDER_FUNCTION_SYMBOL = Symbol.for("fui.slotRenderFunction");
|
|
910
|
+
/**
|
|
911
|
+
* Internal reference for the render function
|
|
912
|
+
*
|
|
913
|
+
* @internal
|
|
914
|
+
*/ var SLOT_ELEMENT_TYPE_SYMBOL = Symbol.for("fui.slotElementType");
|
|
915
|
+
/**
|
|
916
|
+
* Internal cache of the original className prop for the slot, before being modified by the useStyles hook.
|
|
917
|
+
*
|
|
918
|
+
* @internal
|
|
919
|
+
*/ var SLOT_CLASS_NAME_PROP_SYMBOL = Symbol.for("fui.slotClassNameProp");
|
|
920
|
+
//#endregion
|
|
921
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-utilities@9_9e09e28e8ac3461f040db0c64ea1ae4c/node_modules/@fluentui/react-utilities/lib/compose/slot.js
|
|
922
|
+
/**
|
|
923
|
+
* Creates a slot from a slot shorthand or properties (`props.SLOT_NAME` or `props` itself)
|
|
924
|
+
* @param value - the value of the slot, it can be a slot shorthand, a slot component or a slot properties
|
|
925
|
+
* @param options - values you can pass to alter the signature of a slot, those values are:
|
|
926
|
+
*
|
|
927
|
+
* * `elementType` - the base element type of a slot, defaults to `'div'`
|
|
928
|
+
* * `defaultProps` - similar to a React component declaration, you can provide a slot default properties to be merged with the shorthand/properties provided.
|
|
929
|
+
*/ function always(value, options) {
|
|
930
|
+
const { defaultProps, elementType } = options;
|
|
931
|
+
const props = resolveShorthand(value);
|
|
932
|
+
/**
|
|
933
|
+
* Casting is required here as SlotComponentType is a function, not an object.
|
|
934
|
+
* Although SlotComponentType has a function signature, it is still just an object.
|
|
935
|
+
* This is required to make a slot callable (JSX compatible), this is the exact same approach
|
|
936
|
+
* that is used on `@types/react` components
|
|
937
|
+
*/ const propsWithMetadata = {
|
|
938
|
+
...defaultProps,
|
|
939
|
+
...props,
|
|
940
|
+
[SLOT_ELEMENT_TYPE_SYMBOL]: elementType,
|
|
941
|
+
[SLOT_CLASS_NAME_PROP_SYMBOL]: (props === null || props === void 0 ? void 0 : props.className) || (defaultProps === null || defaultProps === void 0 ? void 0 : defaultProps.className)
|
|
942
|
+
};
|
|
943
|
+
if (props && typeof props.children === "function") {
|
|
944
|
+
propsWithMetadata[SLOT_RENDER_FUNCTION_SYMBOL] = props.children;
|
|
945
|
+
propsWithMetadata.children = defaultProps === null || defaultProps === void 0 ? void 0 : defaultProps.children;
|
|
946
|
+
}
|
|
947
|
+
return propsWithMetadata;
|
|
948
|
+
}
|
|
949
|
+
/**
|
|
950
|
+
* Helper function that converts a slot shorthand or properties to a slot properties object
|
|
951
|
+
* The main difference between this function and `slot` is that this function does not return the metadata required for a slot to be considered a properly renderable slot, it only converts the value to a slot properties object
|
|
952
|
+
* @param value - the value of the slot, it can be a slot shorthand or a slot properties object
|
|
953
|
+
*/ function resolveShorthand(value) {
|
|
954
|
+
if (typeof value === "string" || typeof value === "number" || isIterable(value) || React.isValidElement(value)) return { children: value };
|
|
955
|
+
if (value && typeof value !== "object" && process.env.NODE_ENV !== "production") console.error(`@fluentui/react-utilities [slot.${resolveShorthand.name}]:
|
|
956
|
+
A slot got an invalid value "${value}" (${typeof value}).
|
|
957
|
+
A valid value for a slot is a slot shorthand or slot properties object.
|
|
958
|
+
Slot shorthands can be strings, numbers, arrays or JSX elements`);
|
|
959
|
+
return value;
|
|
960
|
+
}
|
|
961
|
+
var isIterable = (value) => typeof value === "object" && value !== null && Symbol.iterator in value;
|
|
962
|
+
//#endregion
|
|
963
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-utilities@9_9e09e28e8ac3461f040db0c64ea1ae4c/node_modules/@fluentui/react-utilities/lib/compose/isSlot.js
|
|
964
|
+
/**
|
|
965
|
+
* Guard method to ensure a given element is a slot.
|
|
966
|
+
* This is mainly used internally to ensure a slot is being used as a component.
|
|
967
|
+
*/ function isSlot(element) {
|
|
968
|
+
return Boolean(element === null || element === void 0 ? void 0 : element.hasOwnProperty(SLOT_ELEMENT_TYPE_SYMBOL));
|
|
969
|
+
}
|
|
970
|
+
//#endregion
|
|
971
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-utilities@9_9e09e28e8ac3461f040db0c64ea1ae4c/node_modules/@fluentui/react-utilities/lib/compose/assertSlots.js
|
|
972
|
+
/**
|
|
973
|
+
* Assertion method to ensure state slots properties are properly declared.
|
|
974
|
+
* A properly declared slot must be declared by using the `slot` method.
|
|
975
|
+
*
|
|
976
|
+
* @internal
|
|
977
|
+
* @example
|
|
978
|
+
* ```tsx
|
|
979
|
+
* export const renderInput_unstable = (state: InputState): JSXElement => {
|
|
980
|
+
* assertSlots<InputSlots>(state);
|
|
981
|
+
* return (
|
|
982
|
+
* <state.root>
|
|
983
|
+
* {state.contentBefore && <state.contentBefore />}
|
|
984
|
+
* <state.input />
|
|
985
|
+
* {state.contentAfter && <state.contentAfter />}
|
|
986
|
+
* </state.root>
|
|
987
|
+
* );
|
|
988
|
+
* };
|
|
989
|
+
* ```
|
|
990
|
+
*/ function assertSlots(state) {
|
|
991
|
+
/**
|
|
992
|
+
* This verification is not necessary in production
|
|
993
|
+
* as we're verifying static properties that will not change between environments
|
|
994
|
+
*/ if (process.env.NODE_ENV !== "production") {
|
|
995
|
+
const typedState = state;
|
|
996
|
+
for (const slotName of Object.keys(typedState.components)) {
|
|
997
|
+
const slotElement = typedState[slotName];
|
|
998
|
+
if (slotElement === void 0) continue;
|
|
999
|
+
if (!isSlot(slotElement)) {
|
|
1000
|
+
typedState[slotName] = always(slotElement, { elementType: typedState.components[slotName] });
|
|
755
1001
|
console.warn(`@fluentui/react-utilities [${assertSlots.name}]:
|
|
756
1002
|
"state.${slotName}" is not a slot!
|
|
757
1003
|
Be sure to create slots properly by using "slot.always" or "slot.optional".`);
|
|
@@ -769,7 +1015,7 @@ Be sure to create slots properly by using "slot.always" or "slot.optional" with
|
|
|
769
1015
|
}
|
|
770
1016
|
}
|
|
771
1017
|
//#endregion
|
|
772
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-utilities@
|
|
1018
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-utilities@9_9e09e28e8ac3461f040db0c64ea1ae4c/node_modules/@fluentui/react-utilities/lib/utils/properties.js
|
|
773
1019
|
var toObjectMap = (...items) => {
|
|
774
1020
|
const result = {};
|
|
775
1021
|
for (const item of items) {
|
|
@@ -883,6 +1129,7 @@ var toObjectMap = (...items) => {
|
|
|
883
1129
|
"lang",
|
|
884
1130
|
"popover",
|
|
885
1131
|
"focusgroup",
|
|
1132
|
+
"focusgroupstart",
|
|
886
1133
|
"ref",
|
|
887
1134
|
"role",
|
|
888
1135
|
"style",
|
|
@@ -1136,7 +1383,7 @@ var colProperties = toObjectMap(htmlElementProperties, ["span"]);
|
|
|
1136
1383
|
return result;
|
|
1137
1384
|
}
|
|
1138
1385
|
//#endregion
|
|
1139
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-utilities@
|
|
1386
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-utilities@9_9e09e28e8ac3461f040db0c64ea1ae4c/node_modules/@fluentui/react-utilities/lib/utils/getNativeElementProps.js
|
|
1140
1387
|
var nativeElementMap = {
|
|
1141
1388
|
label: labelProperties,
|
|
1142
1389
|
audio: audioProperties,
|
|
@@ -1176,463 +1423,226 @@ var nativeElementMap = {
|
|
|
1176
1423
|
return getNativeProps(props, allowedPropNames, excludedPropNames);
|
|
1177
1424
|
}
|
|
1178
1425
|
//#endregion
|
|
1179
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-utilities@
|
|
1180
|
-
/**
|
|
1181
|
-
* Given an element tagname and user props, filters the props to only allowed props for the given
|
|
1182
|
-
* element type.
|
|
1183
|
-
*
|
|
1184
|
-
* Equivalent to {@link getNativeElementProps}, but more type-safe.
|
|
1185
|
-
*
|
|
1186
|
-
* @param tagName - The slot's default element type (e.g. 'div')
|
|
1187
|
-
* @param props - The component's props object
|
|
1188
|
-
* @param excludedPropNames - List of native props to exclude from the returned value
|
|
1189
|
-
*/ var getIntrinsicElementProps = (tagName, props, excludedPropNames) => {
|
|
1190
|
-
var _props_as;
|
|
1191
|
-
return getNativeElementProps((_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : tagName, props, excludedPropNames);
|
|
1192
|
-
};
|
|
1193
|
-
//#endregion
|
|
1194
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-shared-
|
|
1195
|
-
/**
|
|
1196
|
-
* @internal
|
|
1197
|
-
*/ var ThemeContext = React.createContext(void 0);
|
|
1198
|
-
/**
|
|
1199
|
-
* @internal
|
|
1200
|
-
*/ var ThemeProvider = ThemeContext.Provider;
|
|
1201
|
-
var ThemeClassNameProvider = React.createContext(void 0).Provider;
|
|
1202
|
-
/**
|
|
1203
|
-
* @internal
|
|
1204
|
-
*/ var TooltipVisibilityProvider = React.createContext(void 0).Provider;
|
|
1205
|
-
//#endregion
|
|
1206
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-shared-cont_8bda8370fa9c9696999ee0a23faa49e6/node_modules/@fluentui/react-shared-contexts/lib/ProviderContext/ProviderContext.js
|
|
1207
|
-
/**
|
|
1208
|
-
* @internal
|
|
1209
|
-
*/ var ProviderContext = React.createContext(void 0);
|
|
1210
|
-
var providerContextDefaultValue = {
|
|
1211
|
-
targetDocument: typeof document === "object" ? document : void 0,
|
|
1212
|
-
dir: "ltr"
|
|
1213
|
-
};
|
|
1214
|
-
/**
|
|
1215
|
-
* @internal
|
|
1216
|
-
*/ var Provider = ProviderContext.Provider;
|
|
1217
|
-
function useFluent() {
|
|
1218
|
-
var _React_useContext;
|
|
1219
|
-
return (_React_useContext = React.useContext(ProviderContext)) !== null && _React_useContext !== void 0 ? _React_useContext : providerContextDefaultValue;
|
|
1220
|
-
}
|
|
1221
|
-
//#endregion
|
|
1222
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-shared-cont_8bda8370fa9c9696999ee0a23faa49e6/node_modules/@fluentui/react-shared-contexts/lib/OverridesContext/OverridesContext.js
|
|
1223
|
-
/**
|
|
1224
|
-
* @internal
|
|
1225
|
-
*/ var OverridesContext = React.createContext(void 0);
|
|
1226
|
-
/**
|
|
1227
|
-
* @internal
|
|
1228
|
-
*/ var OverridesProvider = OverridesContext.Provider;
|
|
1229
|
-
function useOverrides() {
|
|
1230
|
-
var _React_useContext;
|
|
1231
|
-
return (_React_useContext = React.useContext(OverridesContext)) !== null && _React_useContext !== void 0 ? _React_useContext : {};
|
|
1232
|
-
}
|
|
1233
|
-
//#endregion
|
|
1234
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-shared-cont_8bda8370fa9c9696999ee0a23faa49e6/node_modules/@fluentui/react-shared-contexts/lib/CustomStyleHooksContext/CustomStyleHooksContext.js
|
|
1235
|
-
/**
|
|
1236
|
-
* @internal
|
|
1237
|
-
*/ var CustomStyleHooksContext = React.createContext(void 0);
|
|
1238
|
-
/**
|
|
1239
|
-
* @internal
|
|
1240
|
-
*/ var CustomStyleHooksProvider = CustomStyleHooksContext.Provider;
|
|
1241
|
-
//#endregion
|
|
1242
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-utilities@9_a4269a14c6e5e3251a31d6808775b455/node_modules/@fluentui/react-utilities/lib/ssr/canUseDOM.js
|
|
1243
|
-
/**
|
|
1244
|
-
* Verifies if an application can use DOM.
|
|
1245
|
-
*/ function canUseDOM() {
|
|
1246
|
-
return typeof window !== "undefined" && !!(window.document && window.document.createElement);
|
|
1247
|
-
}
|
|
1248
|
-
//#endregion
|
|
1249
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-utilities@9_a4269a14c6e5e3251a31d6808775b455/node_modules/@fluentui/react-utilities/lib/ssr/SSRContext.js
|
|
1250
|
-
/**
|
|
1251
|
-
* Default context value to use in case there is no SSRProvider. This is fine for client-only apps.
|
|
1252
|
-
*
|
|
1253
|
-
* @internal
|
|
1254
|
-
*/ var defaultSSRContextValue = { current: 0 };
|
|
1255
|
-
var SSRContext = /* @__PURE__ */ React.createContext(void 0);
|
|
1256
|
-
/**
|
|
1257
|
-
* @internal
|
|
1258
|
-
*/ function useSSRContext() {
|
|
1259
|
-
var _React_useContext;
|
|
1260
|
-
return (_React_useContext = React.useContext(SSRContext)) !== null && _React_useContext !== void 0 ? _React_useContext : defaultSSRContextValue;
|
|
1261
|
-
}
|
|
1262
|
-
//#endregion
|
|
1263
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-utilities@9_a4269a14c6e5e3251a31d6808775b455/node_modules/@fluentui/react-utilities/lib/hooks/useIsomorphicLayoutEffect.js
|
|
1264
|
-
/**
|
|
1265
|
-
* React currently throws a warning when using useLayoutEffect on the server. To get around it, we can conditionally
|
|
1266
|
-
* useEffect on the server (no-op) and useLayoutEffect in the browser. We occasionally need useLayoutEffect to
|
|
1267
|
-
* ensure we don't get a render flash for certain operations, but we may also need affected components to render on
|
|
1268
|
-
* the server.
|
|
1269
|
-
*
|
|
1270
|
-
* https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85
|
|
1271
|
-
* https://github.com/reduxjs/react-redux/blob/master/src/utils/useIsomorphicLayoutEffect.js
|
|
1272
|
-
*/ var useIsomorphicLayoutEffect = canUseDOM() ? React.useLayoutEffect : React.useEffect;
|
|
1273
|
-
//#endregion
|
|
1274
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-utilities@9_a4269a14c6e5e3251a31d6808775b455/node_modules/@fluentui/react-utilities/lib/hooks/useId.js
|
|
1275
|
-
var IdPrefixContext = React.createContext(void 0);
|
|
1276
|
-
IdPrefixContext.Provider;
|
|
1277
|
-
function useIdPrefix() {
|
|
1278
|
-
return React.useContext(IdPrefixContext) || "";
|
|
1279
|
-
}
|
|
1280
|
-
/**
|
|
1281
|
-
* Hook to generate a unique ID.
|
|
1282
|
-
*
|
|
1283
|
-
* @param prefix - Optional prefix for the ID. Defaults to 'fui-'.
|
|
1284
|
-
* @param providedId - Optional id provided by a parent component. Defaults to the provided value if present,
|
|
1285
|
-
* without conditioning the hook call
|
|
1286
|
-
* @returns The ID
|
|
1287
|
-
*/ function useId(prefix = "fui-", providedId) {
|
|
1288
|
-
"use no memo";
|
|
1289
|
-
const contextValue = useSSRContext();
|
|
1290
|
-
const idPrefix = useIdPrefix();
|
|
1291
|
-
const _useId = React["useId"];
|
|
1292
|
-
if (_useId) {
|
|
1293
|
-
const generatedId = _useId();
|
|
1294
|
-
const escapedId = React.useMemo(() => generatedId.replace(/:/g, ""), [generatedId]);
|
|
1295
|
-
return providedId || `${idPrefix}${prefix}${escapedId}`;
|
|
1296
|
-
}
|
|
1297
|
-
return React.useMemo(() => {
|
|
1298
|
-
if (providedId) return providedId;
|
|
1299
|
-
return `${idPrefix}${prefix}${++contextValue.current}`;
|
|
1300
|
-
}, [
|
|
1301
|
-
idPrefix,
|
|
1302
|
-
prefix,
|
|
1303
|
-
providedId,
|
|
1304
|
-
contextValue
|
|
1305
|
-
]);
|
|
1306
|
-
}
|
|
1307
|
-
//#endregion
|
|
1308
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-utilities@9_a4269a14c6e5e3251a31d6808775b455/node_modules/@fluentui/react-utilities/lib/hooks/useMergedRefs.js
|
|
1309
|
-
/**
|
|
1310
|
-
* React hook to merge multiple React refs (either MutableRefObjects or ref callbacks) into a single ref callback that
|
|
1311
|
-
* updates all provided refs
|
|
1312
|
-
* @param refs - Refs to collectively update with one ref value.
|
|
1313
|
-
* @returns A function with an attached "current" prop, so that it can be treated like a RefObject.
|
|
1314
|
-
*/ function useMergedRefs(...refs) {
|
|
1315
|
-
"use no memo";
|
|
1316
|
-
const mergedCallback = React.useCallback((value) => {
|
|
1317
|
-
mergedCallback.current = value;
|
|
1318
|
-
for (const ref of refs) {
|
|
1319
|
-
if (typeof ref === "string" && process.env.NODE_ENV !== "production") console.error(`@fluentui/react-utilities [useMergedRefs]:
|
|
1320
|
-
This hook does not support the usage of string refs. Please use React.useRef instead.
|
|
1321
|
-
|
|
1322
|
-
For more info on 'React.useRef', see https://react.dev/reference/react/useRef.
|
|
1323
|
-
For more info on string refs, see https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-string-refs.`);
|
|
1324
|
-
if (typeof ref === "function") ref(value);
|
|
1325
|
-
else if (ref) ref.current = value;
|
|
1326
|
-
}
|
|
1327
|
-
}, [...refs]);
|
|
1328
|
-
return mergedCallback;
|
|
1329
|
-
}
|
|
1330
|
-
//#endregion
|
|
1331
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-utilities@9_a4269a14c6e5e3251a31d6808775b455/node_modules/@fluentui/react-utilities/lib/utils/isHTMLElement.js
|
|
1332
|
-
/**
|
|
1333
|
-
* Verifies if a given node is an HTMLElement,
|
|
1334
|
-
* this method works seamlessly with frames and elements from different documents
|
|
1335
|
-
*
|
|
1336
|
-
* This is preferred over simply using `instanceof`.
|
|
1337
|
-
* Since `instanceof` might be problematic while operating with [multiple realms](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/instanceof#instanceof_and_multiple_realms)
|
|
1338
|
-
*
|
|
1339
|
-
* @example
|
|
1340
|
-
* ```ts
|
|
1341
|
-
* isHTMLElement(event.target) && event.target.focus()
|
|
1342
|
-
* isHTMLElement(event.target, {constructorName: 'HTMLInputElement'}) && event.target.value // some value
|
|
1343
|
-
* ```
|
|
1344
|
-
*
|
|
1345
|
-
*/ function isHTMLElement(element, options) {
|
|
1346
|
-
var _typedElement_ownerDocument;
|
|
1347
|
-
const typedElement = element;
|
|
1348
|
-
var _options_constructorName;
|
|
1349
|
-
return Boolean((typedElement === null || typedElement === void 0 ? void 0 : (_typedElement_ownerDocument = typedElement.ownerDocument) === null || _typedElement_ownerDocument === void 0 ? void 0 : _typedElement_ownerDocument.defaultView) && typedElement instanceof typedElement.ownerDocument.defaultView[(_options_constructorName = options === null || options === void 0 ? void 0 : options.constructorName) !== null && _options_constructorName !== void 0 ? _options_constructorName : "HTMLElement"]);
|
|
1350
|
-
}
|
|
1351
|
-
//#endregion
|
|
1352
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-jsx-runtime_b0b40ca7e87c7cae82b6e54fdc7eecf8/node_modules/@fluentui/react-jsx-runtime/lib/utils/createCompatSlotComponent.js
|
|
1353
|
-
function createCompatSlotComponent(type, props) {
|
|
1354
|
-
return {
|
|
1355
|
-
...props,
|
|
1356
|
-
[SLOT_ELEMENT_TYPE_SYMBOL]: type
|
|
1357
|
-
};
|
|
1358
|
-
}
|
|
1359
|
-
//#endregion
|
|
1360
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-jsx-runtime_b0b40ca7e87c7cae82b6e54fdc7eecf8/node_modules/@fluentui/react-jsx-runtime/lib/utils/warnIfElementTypeIsInvalid.js
|
|
1361
|
-
function warnIfElementTypeIsInvalid(type) {
|
|
1362
|
-
if (process.env.NODE_ENV === "development" && typeof type === "object" && type !== null && type["$$typeof"] === void 0) console.error(`@fluentui/react-jsx-runtime:
|
|
1363
|
-
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: ${type}.
|
|
1364
|
-
|
|
1365
|
-
If this happened in a slot of Fluent UI component, you might be facing package resolution issues.
|
|
1366
|
-
Please make sure you don't have multiple versions of "@fluentui/react-utilities" installed in your dependencies or sub-dependencies.
|
|
1367
|
-
You can check this by searching up for matching entries in a lockfile produced by your package manager (yarn.lock, pnpm-lock.yaml or package-lock.json).`);
|
|
1368
|
-
}
|
|
1369
|
-
//#endregion
|
|
1370
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-jsx-runtime_b0b40ca7e87c7cae82b6e54fdc7eecf8/node_modules/@fluentui/react-jsx-runtime/lib/jsx/createJSX.js
|
|
1371
|
-
function createJSX(runtime, slotRuntime) {
|
|
1372
|
-
return function jsx(type, overrideProps, key, source, self) {
|
|
1373
|
-
if (isSlot(overrideProps)) return slotRuntime(createCompatSlotComponent(type, overrideProps), null, key, source, self);
|
|
1374
|
-
if (isSlot(type)) return slotRuntime(type, overrideProps, key, source, self);
|
|
1375
|
-
warnIfElementTypeIsInvalid(type);
|
|
1376
|
-
return runtime(type, overrideProps, key, source, self);
|
|
1377
|
-
};
|
|
1378
|
-
}
|
|
1379
|
-
//#endregion
|
|
1380
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-jsx-runtime_b0b40ca7e87c7cae82b6e54fdc7eecf8/node_modules/@fluentui/react-jsx-runtime/lib/utils/getMetadataFromSlotComponent.js
|
|
1426
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-utilities@9_9e09e28e8ac3461f040db0c64ea1ae4c/node_modules/@fluentui/react-utilities/lib/compose/getIntrinsicElementProps.js
|
|
1427
|
+
/**
|
|
1428
|
+
* Given an element tagname and user props, filters the props to only allowed props for the given
|
|
1429
|
+
* element type.
|
|
1430
|
+
*
|
|
1431
|
+
* Equivalent to {@link getNativeElementProps}, but more type-safe.
|
|
1432
|
+
*
|
|
1433
|
+
* @param tagName - The slot's default element type (e.g. 'div')
|
|
1434
|
+
* @param props - The component's props object
|
|
1435
|
+
* @param excludedPropNames - List of native props to exclude from the returned value
|
|
1436
|
+
*/ var getIntrinsicElementProps = (tagName, props, excludedPropNames) => {
|
|
1437
|
+
var _props_as;
|
|
1438
|
+
return getNativeElementProps((_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : tagName, props, excludedPropNames);
|
|
1439
|
+
};
|
|
1440
|
+
//#endregion
|
|
1441
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-shared-cont_8ff820540c510175b7d9d8d940d228a4/node_modules/@fluentui/react-shared-contexts/lib/ThemeContext/ThemeContext.js
|
|
1381
1442
|
/**
|
|
1382
1443
|
* @internal
|
|
1383
|
-
*/
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
renderFunction
|
|
1392
|
-
};
|
|
1393
|
-
}
|
|
1444
|
+
*/ var ThemeContext = React.createContext(void 0);
|
|
1445
|
+
/**
|
|
1446
|
+
* @internal
|
|
1447
|
+
*/ var ThemeProvider = ThemeContext.Provider;
|
|
1448
|
+
var ThemeClassNameProvider = React.createContext(void 0).Provider;
|
|
1449
|
+
/**
|
|
1450
|
+
* @internal
|
|
1451
|
+
*/ var TooltipVisibilityProvider = React.createContext(void 0).Provider;
|
|
1394
1452
|
//#endregion
|
|
1395
|
-
//#region ../../node_modules/.pnpm
|
|
1453
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-shared-cont_8ff820540c510175b7d9d8d940d228a4/node_modules/@fluentui/react-shared-contexts/lib/ProviderContext/ProviderContext.js
|
|
1396
1454
|
/**
|
|
1397
|
-
* @
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
var
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
void 0 !== config.key && (key = "" + config.key);
|
|
1411
|
-
if ("key" in config) {
|
|
1412
|
-
maybeKey = {};
|
|
1413
|
-
for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
|
|
1414
|
-
} else maybeKey = config;
|
|
1415
|
-
config = maybeKey.ref;
|
|
1416
|
-
return {
|
|
1417
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
1418
|
-
type,
|
|
1419
|
-
key,
|
|
1420
|
-
ref: void 0 !== config ? config : null,
|
|
1421
|
-
props: maybeKey
|
|
1422
|
-
};
|
|
1423
|
-
}
|
|
1424
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
1425
|
-
exports.jsx = jsxProd;
|
|
1426
|
-
exports.jsxs = jsxProd;
|
|
1427
|
-
}));
|
|
1455
|
+
* @internal
|
|
1456
|
+
*/ var ProviderContext = React.createContext(void 0);
|
|
1457
|
+
var providerContextDefaultValue = {
|
|
1458
|
+
targetDocument: typeof document === "object" ? document : void 0,
|
|
1459
|
+
dir: "ltr"
|
|
1460
|
+
};
|
|
1461
|
+
/**
|
|
1462
|
+
* @internal
|
|
1463
|
+
*/ var Provider = ProviderContext.Provider;
|
|
1464
|
+
function useFluent() {
|
|
1465
|
+
var _React_useContext;
|
|
1466
|
+
return (_React_useContext = React.useContext(ProviderContext)) !== null && _React_useContext !== void 0 ? _React_useContext : providerContextDefaultValue;
|
|
1467
|
+
}
|
|
1428
1468
|
//#endregion
|
|
1429
|
-
//#region ../../node_modules/.pnpm
|
|
1469
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-shared-cont_8ff820540c510175b7d9d8d940d228a4/node_modules/@fluentui/react-shared-contexts/lib/OverridesContext/OverridesContext.js
|
|
1430
1470
|
/**
|
|
1431
|
-
* @
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
*
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
}
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
1534
|
-
type,
|
|
1535
|
-
key,
|
|
1536
|
-
props,
|
|
1537
|
-
_owner: owner
|
|
1538
|
-
};
|
|
1539
|
-
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
|
|
1540
|
-
enumerable: !1,
|
|
1541
|
-
get: elementRefGetterWithDeprecationWarning
|
|
1542
|
-
}) : Object.defineProperty(type, "ref", {
|
|
1543
|
-
enumerable: !1,
|
|
1544
|
-
value: null
|
|
1545
|
-
});
|
|
1546
|
-
type._store = {};
|
|
1547
|
-
Object.defineProperty(type._store, "validated", {
|
|
1548
|
-
configurable: !1,
|
|
1549
|
-
enumerable: !1,
|
|
1550
|
-
writable: !0,
|
|
1551
|
-
value: 0
|
|
1552
|
-
});
|
|
1553
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
1554
|
-
configurable: !1,
|
|
1555
|
-
enumerable: !1,
|
|
1556
|
-
writable: !0,
|
|
1557
|
-
value: null
|
|
1558
|
-
});
|
|
1559
|
-
Object.defineProperty(type, "_debugStack", {
|
|
1560
|
-
configurable: !1,
|
|
1561
|
-
enumerable: !1,
|
|
1562
|
-
writable: !0,
|
|
1563
|
-
value: debugStack
|
|
1564
|
-
});
|
|
1565
|
-
Object.defineProperty(type, "_debugTask", {
|
|
1566
|
-
configurable: !1,
|
|
1567
|
-
enumerable: !1,
|
|
1568
|
-
writable: !0,
|
|
1569
|
-
value: debugTask
|
|
1570
|
-
});
|
|
1571
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
1572
|
-
return type;
|
|
1573
|
-
}
|
|
1574
|
-
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
|
|
1575
|
-
var children = config.children;
|
|
1576
|
-
if (void 0 !== children) if (isStaticChildren) if (isArrayImpl(children)) {
|
|
1577
|
-
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++) validateChildKeys(children[isStaticChildren]);
|
|
1578
|
-
Object.freeze && Object.freeze(children);
|
|
1579
|
-
} else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
1580
|
-
else validateChildKeys(children);
|
|
1581
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
1582
|
-
children = getComponentNameFromType(type);
|
|
1583
|
-
var keys = Object.keys(config).filter(function(k) {
|
|
1584
|
-
return "key" !== k;
|
|
1585
|
-
});
|
|
1586
|
-
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1587
|
-
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", isStaticChildren, children, keys, children), didWarnAboutKeySpread[children + isStaticChildren] = !0);
|
|
1588
|
-
}
|
|
1589
|
-
children = null;
|
|
1590
|
-
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
1591
|
-
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
1592
|
-
if ("key" in config) {
|
|
1593
|
-
maybeKey = {};
|
|
1594
|
-
for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
|
|
1595
|
-
} else maybeKey = config;
|
|
1596
|
-
children && defineKeyPropWarningGetter(maybeKey, "function" === typeof type ? type.displayName || type.name || "Unknown" : type);
|
|
1597
|
-
return ReactElement(type, children, maybeKey, getOwner(), debugStack, debugTask);
|
|
1598
|
-
}
|
|
1599
|
-
function validateChildKeys(node) {
|
|
1600
|
-
isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
1601
|
-
}
|
|
1602
|
-
function isValidElement(object) {
|
|
1603
|
-
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1471
|
+
* @internal
|
|
1472
|
+
*/ var OverridesContext = React.createContext(void 0);
|
|
1473
|
+
/**
|
|
1474
|
+
* @internal
|
|
1475
|
+
*/ var OverridesProvider = OverridesContext.Provider;
|
|
1476
|
+
function useOverrides() {
|
|
1477
|
+
var _React_useContext;
|
|
1478
|
+
return (_React_useContext = React.useContext(OverridesContext)) !== null && _React_useContext !== void 0 ? _React_useContext : {};
|
|
1479
|
+
}
|
|
1480
|
+
//#endregion
|
|
1481
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-shared-cont_8ff820540c510175b7d9d8d940d228a4/node_modules/@fluentui/react-shared-contexts/lib/CustomStyleHooksContext/CustomStyleHooksContext.js
|
|
1482
|
+
/**
|
|
1483
|
+
* @internal
|
|
1484
|
+
*/ var CustomStyleHooksContext = React.createContext(void 0);
|
|
1485
|
+
/**
|
|
1486
|
+
* @internal
|
|
1487
|
+
*/ var CustomStyleHooksProvider = CustomStyleHooksContext.Provider;
|
|
1488
|
+
//#endregion
|
|
1489
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-utilities@9_9e09e28e8ac3461f040db0c64ea1ae4c/node_modules/@fluentui/react-utilities/lib/ssr/canUseDOM.js
|
|
1490
|
+
/**
|
|
1491
|
+
* Verifies if an application can use DOM.
|
|
1492
|
+
*/ function canUseDOM() {
|
|
1493
|
+
return typeof window !== "undefined" && !!(window.document && window.document.createElement);
|
|
1494
|
+
}
|
|
1495
|
+
//#endregion
|
|
1496
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-utilities@9_9e09e28e8ac3461f040db0c64ea1ae4c/node_modules/@fluentui/react-utilities/lib/ssr/SSRContext.js
|
|
1497
|
+
/**
|
|
1498
|
+
* Default context value to use in case there is no SSRProvider. This is fine for client-only apps.
|
|
1499
|
+
*
|
|
1500
|
+
* @internal
|
|
1501
|
+
*/ var defaultSSRContextValue = { current: 0 };
|
|
1502
|
+
var SSRContext = /* @__PURE__ */ React.createContext(void 0);
|
|
1503
|
+
/**
|
|
1504
|
+
* @internal
|
|
1505
|
+
*/ function useSSRContext() {
|
|
1506
|
+
var _React_useContext;
|
|
1507
|
+
return (_React_useContext = React.useContext(SSRContext)) !== null && _React_useContext !== void 0 ? _React_useContext : defaultSSRContextValue;
|
|
1508
|
+
}
|
|
1509
|
+
//#endregion
|
|
1510
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-utilities@9_9e09e28e8ac3461f040db0c64ea1ae4c/node_modules/@fluentui/react-utilities/lib/hooks/useIsomorphicLayoutEffect.js
|
|
1511
|
+
/**
|
|
1512
|
+
* React currently throws a warning when using useLayoutEffect on the server. To get around it, we can conditionally
|
|
1513
|
+
* useEffect on the server (no-op) and useLayoutEffect in the browser. We occasionally need useLayoutEffect to
|
|
1514
|
+
* ensure we don't get a render flash for certain operations, but we may also need affected components to render on
|
|
1515
|
+
* the server.
|
|
1516
|
+
*
|
|
1517
|
+
* https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85
|
|
1518
|
+
* https://github.com/reduxjs/react-redux/blob/master/src/utils/useIsomorphicLayoutEffect.js
|
|
1519
|
+
*/ var useIsomorphicLayoutEffect = canUseDOM() ? React.useLayoutEffect : React.useEffect;
|
|
1520
|
+
//#endregion
|
|
1521
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-utilities@9_9e09e28e8ac3461f040db0c64ea1ae4c/node_modules/@fluentui/react-utilities/lib/hooks/useId.js
|
|
1522
|
+
var IdPrefixContext = React.createContext(void 0);
|
|
1523
|
+
IdPrefixContext.Provider;
|
|
1524
|
+
function useIdPrefix() {
|
|
1525
|
+
return React.useContext(IdPrefixContext) || "";
|
|
1526
|
+
}
|
|
1527
|
+
/**
|
|
1528
|
+
* Hook to generate a unique ID.
|
|
1529
|
+
*
|
|
1530
|
+
* @param prefix - Optional prefix for the ID. Defaults to 'fui-'.
|
|
1531
|
+
* @param providedId - Optional id provided by a parent component. Defaults to the provided value if present,
|
|
1532
|
+
* without conditioning the hook call
|
|
1533
|
+
* @returns The ID
|
|
1534
|
+
*/ function useId(prefix = "fui-", providedId) {
|
|
1535
|
+
"use no memo";
|
|
1536
|
+
const contextValue = useSSRContext();
|
|
1537
|
+
const idPrefix = useIdPrefix();
|
|
1538
|
+
const _useId = React["useId"];
|
|
1539
|
+
if (_useId) {
|
|
1540
|
+
const generatedId = _useId();
|
|
1541
|
+
const escapedId = React.useMemo(() => generatedId.replace(/:/g, ""), [generatedId]);
|
|
1542
|
+
return providedId || `${idPrefix}${prefix}${escapedId}`;
|
|
1543
|
+
}
|
|
1544
|
+
return React.useMemo(() => {
|
|
1545
|
+
if (providedId) return providedId;
|
|
1546
|
+
return `${idPrefix}${prefix}${++contextValue.current}`;
|
|
1547
|
+
}, [
|
|
1548
|
+
idPrefix,
|
|
1549
|
+
prefix,
|
|
1550
|
+
providedId,
|
|
1551
|
+
contextValue
|
|
1552
|
+
]);
|
|
1553
|
+
}
|
|
1554
|
+
//#endregion
|
|
1555
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-utilities@9_9e09e28e8ac3461f040db0c64ea1ae4c/node_modules/@fluentui/react-utilities/lib/hooks/useMergedRefs.js
|
|
1556
|
+
/**
|
|
1557
|
+
* React hook to merge multiple React refs (either MutableRefObjects or ref callbacks) into a single ref callback that
|
|
1558
|
+
* updates all provided refs
|
|
1559
|
+
* @param refs - Refs to collectively update with one ref value.
|
|
1560
|
+
* @returns A function with an attached "current" prop, so that it can be treated like a RefObject.
|
|
1561
|
+
*/ function useMergedRefs(...refs) {
|
|
1562
|
+
"use no memo";
|
|
1563
|
+
const mergedCallback = React.useCallback((value) => {
|
|
1564
|
+
mergedCallback.current = value;
|
|
1565
|
+
for (const ref of refs) {
|
|
1566
|
+
if (typeof ref === "string" && process.env.NODE_ENV !== "production") console.error(`@fluentui/react-utilities [useMergedRefs]:
|
|
1567
|
+
This hook does not support the usage of string refs. Please use React.useRef instead.
|
|
1568
|
+
|
|
1569
|
+
For more info on 'React.useRef', see https://react.dev/reference/react/useRef.
|
|
1570
|
+
For more info on string refs, see https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-string-refs.`);
|
|
1571
|
+
if (typeof ref === "function") ref(value);
|
|
1572
|
+
else if (ref) ref.current = value;
|
|
1604
1573
|
}
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
React = { react_stack_bottom_frame: function(callStackForError) {
|
|
1609
|
-
return callStackForError();
|
|
1610
|
-
} };
|
|
1611
|
-
var specialPropKeyWarningShown;
|
|
1612
|
-
var didWarnAboutElementRef = {};
|
|
1613
|
-
var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(React, UnknownOwner)();
|
|
1614
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1615
|
-
var didWarnAboutKeySpread = {};
|
|
1616
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
1617
|
-
exports.jsx = function(type, config, maybeKey) {
|
|
1618
|
-
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1619
|
-
return jsxDEVImpl(type, config, maybeKey, !1, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
|
|
1620
|
-
};
|
|
1621
|
-
exports.jsxs = function(type, config, maybeKey) {
|
|
1622
|
-
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1623
|
-
return jsxDEVImpl(type, config, maybeKey, !0, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
|
|
1624
|
-
};
|
|
1625
|
-
})();
|
|
1626
|
-
}));
|
|
1574
|
+
}, [...refs]);
|
|
1575
|
+
return mergedCallback;
|
|
1576
|
+
}
|
|
1627
1577
|
//#endregion
|
|
1628
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1578
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-utilities@9_9e09e28e8ac3461f040db0c64ea1ae4c/node_modules/@fluentui/react-utilities/lib/utils/isHTMLElement.js
|
|
1579
|
+
/**
|
|
1580
|
+
* Verifies if a given node is an HTMLElement,
|
|
1581
|
+
* this method works seamlessly with frames and elements from different documents
|
|
1582
|
+
*
|
|
1583
|
+
* This is preferred over simply using `instanceof`.
|
|
1584
|
+
* Since `instanceof` might be problematic while operating with [multiple realms](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/instanceof#instanceof_and_multiple_realms)
|
|
1585
|
+
*
|
|
1586
|
+
* @example
|
|
1587
|
+
* ```ts
|
|
1588
|
+
* isHTMLElement(event.target) && event.target.focus()
|
|
1589
|
+
* isHTMLElement(event.target, {constructorName: 'HTMLInputElement'}) && event.target.value // some value
|
|
1590
|
+
* ```
|
|
1591
|
+
*
|
|
1592
|
+
*/ function isHTMLElement(element, options) {
|
|
1593
|
+
var _typedElement_ownerDocument;
|
|
1594
|
+
const typedElement = element;
|
|
1595
|
+
var _options_constructorName;
|
|
1596
|
+
return Boolean((typedElement === null || typedElement === void 0 ? void 0 : (_typedElement_ownerDocument = typedElement.ownerDocument) === null || _typedElement_ownerDocument === void 0 ? void 0 : _typedElement_ownerDocument.defaultView) && typedElement instanceof typedElement.ownerDocument.defaultView[(_options_constructorName = options === null || options === void 0 ? void 0 : options.constructorName) !== null && _options_constructorName !== void 0 ? _options_constructorName : "HTMLElement"]);
|
|
1597
|
+
}
|
|
1598
|
+
//#endregion
|
|
1599
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-jsx-runtime_e8dcd778f7dfbeb38ac7e38ef88cd61b/node_modules/@fluentui/react-jsx-runtime/lib/utils/createCompatSlotComponent.js
|
|
1600
|
+
function createCompatSlotComponent(type, props) {
|
|
1601
|
+
return {
|
|
1602
|
+
...props,
|
|
1603
|
+
[SLOT_ELEMENT_TYPE_SYMBOL]: type
|
|
1604
|
+
};
|
|
1605
|
+
}
|
|
1606
|
+
//#endregion
|
|
1607
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-jsx-runtime_e8dcd778f7dfbeb38ac7e38ef88cd61b/node_modules/@fluentui/react-jsx-runtime/lib/utils/warnIfElementTypeIsInvalid.js
|
|
1608
|
+
function warnIfElementTypeIsInvalid(type) {
|
|
1609
|
+
if (process.env.NODE_ENV === "development" && typeof type === "object" && type !== null && type["$$typeof"] === void 0) console.error(`@fluentui/react-jsx-runtime:
|
|
1610
|
+
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: ${type}.
|
|
1611
|
+
|
|
1612
|
+
If this happened in a slot of Fluent UI component, you might be facing package resolution issues.
|
|
1613
|
+
Please make sure you don't have multiple versions of "@fluentui/react-utilities" installed in your dependencies or sub-dependencies.
|
|
1614
|
+
You can check this by searching up for matching entries in a lockfile produced by your package manager (yarn.lock, pnpm-lock.yaml or package-lock.json).`);
|
|
1615
|
+
}
|
|
1616
|
+
//#endregion
|
|
1617
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-jsx-runtime_e8dcd778f7dfbeb38ac7e38ef88cd61b/node_modules/@fluentui/react-jsx-runtime/lib/jsx/createJSX.js
|
|
1618
|
+
function createJSX(runtime, slotRuntime) {
|
|
1619
|
+
return function jsx(type, overrideProps, key, source, self) {
|
|
1620
|
+
if (isSlot(overrideProps)) return slotRuntime(createCompatSlotComponent(type, overrideProps), null, key, source, self);
|
|
1621
|
+
if (isSlot(type)) return slotRuntime(type, overrideProps, key, source, self);
|
|
1622
|
+
warnIfElementTypeIsInvalid(type);
|
|
1623
|
+
return runtime(type, overrideProps, key, source, self);
|
|
1624
|
+
};
|
|
1625
|
+
}
|
|
1626
|
+
//#endregion
|
|
1627
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-jsx-runtime_e8dcd778f7dfbeb38ac7e38ef88cd61b/node_modules/@fluentui/react-jsx-runtime/lib/utils/getMetadataFromSlotComponent.js
|
|
1628
|
+
/**
|
|
1629
|
+
* @internal
|
|
1630
|
+
*/ function getMetadataFromSlotComponent(type) {
|
|
1631
|
+
const { as, [SLOT_CLASS_NAME_PROP_SYMBOL]: _classNameProp, [SLOT_ELEMENT_TYPE_SYMBOL]: baseElementType, [SLOT_RENDER_FUNCTION_SYMBOL]: renderFunction, ...propsWithoutMetadata } = type;
|
|
1632
|
+
const props = propsWithoutMetadata;
|
|
1633
|
+
const elementType = typeof baseElementType === "string" ? as !== null && as !== void 0 ? as : baseElementType : baseElementType;
|
|
1634
|
+
if (typeof elementType !== "string" && as) props.as = as;
|
|
1635
|
+
return {
|
|
1636
|
+
elementType,
|
|
1637
|
+
props,
|
|
1638
|
+
renderFunction
|
|
1639
|
+
};
|
|
1640
|
+
}
|
|
1641
|
+
//#endregion
|
|
1642
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-jsx-runtime_e8dcd778f7dfbeb38ac7e38ef88cd61b/node_modules/@fluentui/react-jsx-runtime/lib/utils/Runtime.js
|
|
1633
1643
|
var Runtime = import_jsx_runtime;
|
|
1634
1644
|
//#endregion
|
|
1635
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-jsx-
|
|
1645
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-jsx-runtime_e8dcd778f7dfbeb38ac7e38ef88cd61b/node_modules/@fluentui/react-jsx-runtime/lib/jsx/jsxSlot.js
|
|
1636
1646
|
var jsxSlot = (type, overrideProps, key) => {
|
|
1637
1647
|
const { elementType, renderFunction, props: slotProps } = getMetadataFromSlotComponent(type);
|
|
1638
1648
|
const props = {
|
|
@@ -1643,7 +1653,7 @@ var jsxSlot = (type, overrideProps, key) => {
|
|
|
1643
1653
|
return Runtime.jsx(elementType, props, key);
|
|
1644
1654
|
};
|
|
1645
1655
|
//#endregion
|
|
1646
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-jsx-
|
|
1656
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-jsx-runtime_e8dcd778f7dfbeb38ac7e38ef88cd61b/node_modules/@fluentui/react-jsx-runtime/lib/jsx/jsxsSlot.js
|
|
1647
1657
|
var jsxsSlot = (type, overrideProps, key) => {
|
|
1648
1658
|
const { elementType, renderFunction, props: slotProps } = getMetadataFromSlotComponent(type);
|
|
1649
1659
|
const props = {
|
|
@@ -1662,12 +1672,12 @@ var jsxsSlot = (type, overrideProps, key) => {
|
|
|
1662
1672
|
return Runtime.jsxs(elementType, props, key);
|
|
1663
1673
|
};
|
|
1664
1674
|
//#endregion
|
|
1665
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-jsx-
|
|
1675
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-jsx-runtime_e8dcd778f7dfbeb38ac7e38ef88cd61b/node_modules/@fluentui/react-jsx-runtime/lib/jsx-runtime.js
|
|
1666
1676
|
var jsx = createJSX(Runtime.jsx, jsxSlot);
|
|
1667
1677
|
var jsxs = createJSX(Runtime.jsxs, jsxsSlot);
|
|
1668
1678
|
var IconDirectionContextProvider = React.createContext(void 0).Provider;
|
|
1669
1679
|
//#endregion
|
|
1670
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-provider@9.
|
|
1680
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-provider@9._d288fbb326c7d59fc92ddeaf64bc3ca8/node_modules/@fluentui/react-provider/lib/components/FluentProvider/renderFluentProvider.js
|
|
1671
1681
|
/**
|
|
1672
1682
|
* Render the final JSX of FluentProvider
|
|
1673
1683
|
*/ var renderFluentProvider_unstable = (state, contextValues) => {
|
|
@@ -1702,31 +1712,27 @@ var IconDirectionContextProvider = React.createContext(void 0).Provider;
|
|
|
1702
1712
|
});
|
|
1703
1713
|
};
|
|
1704
1714
|
//#endregion
|
|
1705
|
-
//#region ../../node_modules/.pnpm/keyborg@2.
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
/**
|
|
1713
|
-
* @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakRef/deref}
|
|
1714
|
-
*/
|
|
1715
|
-
deref() {
|
|
1716
|
-
var _a, _b;
|
|
1717
|
-
let instance;
|
|
1718
|
-
if (this._weakRef) {
|
|
1719
|
-
instance = (_a = this._weakRef) == null ? void 0 : _a.deref();
|
|
1720
|
-
if (!instance) delete this._weakRef;
|
|
1721
|
-
} else {
|
|
1722
|
-
instance = this._instance;
|
|
1723
|
-
if ((_b = instance == null ? void 0 : instance.isDisposed) == null ? void 0 : _b.call(instance)) delete this._instance;
|
|
1724
|
-
}
|
|
1725
|
-
return instance;
|
|
1726
|
-
}
|
|
1715
|
+
//#region ../../node_modules/.pnpm/keyborg@2.14.1/node_modules/keyborg/dist/index.js
|
|
1716
|
+
/*!
|
|
1717
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1718
|
+
* Licensed under the MIT License.
|
|
1719
|
+
*/
|
|
1720
|
+
var addEventListener = (target, type, handler) => {
|
|
1721
|
+
target.addEventListener(type, handler, true);
|
|
1727
1722
|
};
|
|
1723
|
+
var removeEventListener = (target, type, handler) => {
|
|
1724
|
+
target.removeEventListener(type, handler, true);
|
|
1725
|
+
};
|
|
1726
|
+
/*!
|
|
1727
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1728
|
+
* Licensed under the MIT License.
|
|
1729
|
+
*/
|
|
1728
1730
|
var KEYBORG_FOCUSIN = "keyborg:focusin";
|
|
1729
1731
|
var KEYBORG_FOCUSOUT = "keyborg:focusout";
|
|
1732
|
+
var FOCUS_IN_HANDLER = 0;
|
|
1733
|
+
var FOCUS_OUT_HANDLER = 1;
|
|
1734
|
+
var SHADOW_TARGETS = 2;
|
|
1735
|
+
var LAST_FOCUSED_PROGRAMMATICALLY = 3;
|
|
1730
1736
|
function canOverrideNativeFocus(win) {
|
|
1731
1737
|
const HTMLElement = win.HTMLElement;
|
|
1732
1738
|
const origFocus = HTMLElement.prototype.focus;
|
|
@@ -1739,12 +1745,17 @@ function canOverrideNativeFocus(win) {
|
|
|
1739
1745
|
return isCustomFocusCalled;
|
|
1740
1746
|
}
|
|
1741
1747
|
var _canOverrideNativeFocus = false;
|
|
1748
|
+
/**
|
|
1749
|
+
* Overrides the native `focus` and setups the keyborg focus event
|
|
1750
|
+
*/
|
|
1742
1751
|
function setupFocusEvent(win) {
|
|
1743
1752
|
const kwin = win;
|
|
1753
|
+
const doc = kwin.document;
|
|
1754
|
+
const proto = kwin.HTMLElement.prototype;
|
|
1744
1755
|
if (!_canOverrideNativeFocus) _canOverrideNativeFocus = canOverrideNativeFocus(kwin);
|
|
1745
|
-
const origFocus =
|
|
1756
|
+
const origFocus = proto.focus;
|
|
1746
1757
|
if (origFocus.__keyborgNativeFocus) return;
|
|
1747
|
-
|
|
1758
|
+
proto.focus = focus;
|
|
1748
1759
|
const shadowTargets = /* @__PURE__ */ new Set();
|
|
1749
1760
|
const focusOutHandler = (e) => {
|
|
1750
1761
|
const target = e.target;
|
|
@@ -1771,21 +1782,67 @@ function setupFocusEvent(win) {
|
|
|
1771
1782
|
if (!shadowRoot || !currentShadows.has(shadowRoot)) {
|
|
1772
1783
|
shadowTargets.delete(shadowRootWeakRef);
|
|
1773
1784
|
if (shadowRoot) {
|
|
1774
|
-
|
|
1775
|
-
|
|
1785
|
+
removeEventListener(shadowRoot, "focusin", focusInHandler);
|
|
1786
|
+
removeEventListener(shadowRoot, "focusout", focusOutHandler);
|
|
1776
1787
|
}
|
|
1777
1788
|
}
|
|
1778
1789
|
}
|
|
1779
1790
|
onFocusIn(target, e.relatedTarget || void 0);
|
|
1780
1791
|
};
|
|
1781
1792
|
const onFocusIn = (target, relatedTarget, originalEvent) => {
|
|
1782
|
-
var _a;
|
|
1783
1793
|
const shadowRoot = target.shadowRoot;
|
|
1784
1794
|
if (shadowRoot) {
|
|
1795
|
+
/**
|
|
1796
|
+
* https://bugs.chromium.org/p/chromium/issues/detail?id=1512028
|
|
1797
|
+
* focusin events don't bubble up through an open shadow root once focus is inside
|
|
1798
|
+
* once focus moves into a shadow root - we drop the same focusin handler there
|
|
1799
|
+
* keyborg's custom event will still bubble up since it is composed
|
|
1800
|
+
* event handlers should be cleaned up once focus leaves the shadow root.
|
|
1801
|
+
*
|
|
1802
|
+
* When a focusin event is dispatched from a shadow root, its target is the shadow root parent.
|
|
1803
|
+
* Each shadow root encounter requires a new capture listener.
|
|
1804
|
+
* Why capture? - we want to follow the focus event in order or descending nested shadow roots
|
|
1805
|
+
* When there are no more shadow root targets - dispatch the keyborg:focusin event
|
|
1806
|
+
*
|
|
1807
|
+
* 1. no focus event
|
|
1808
|
+
* > document - capture listener ✅
|
|
1809
|
+
* > shadow root 1
|
|
1810
|
+
* > shadow root 2
|
|
1811
|
+
* > shadow root 3
|
|
1812
|
+
* > focused element
|
|
1813
|
+
*
|
|
1814
|
+
* 2. focus event received by document listener
|
|
1815
|
+
* > document - capture listener ✅ (focus event here)
|
|
1816
|
+
* > shadow root 1 - capture listener ✅
|
|
1817
|
+
* > shadow root 2
|
|
1818
|
+
* > shadow root 3
|
|
1819
|
+
* > focused element
|
|
1820
|
+
*
|
|
1821
|
+
* 3. focus event received by root l1 listener
|
|
1822
|
+
* > document - capture listener ✅
|
|
1823
|
+
* > shadow root 1 - capture listener ✅ (focus event here)
|
|
1824
|
+
* > shadow root 2 - capture listener ✅
|
|
1825
|
+
* > shadow root 3
|
|
1826
|
+
* > focused element
|
|
1827
|
+
*
|
|
1828
|
+
* 4. focus event received by root l2 listener
|
|
1829
|
+
* > document - capture listener ✅
|
|
1830
|
+
* > shadow root 1 - capture listener ✅
|
|
1831
|
+
* > shadow root 2 - capture listener ✅ (focus event here)
|
|
1832
|
+
* > shadow root 3 - capture listener ✅
|
|
1833
|
+
* > focused element
|
|
1834
|
+
*
|
|
1835
|
+
* 5. focus event received by root l3 listener, no more shadow root targets
|
|
1836
|
+
* > document - capture listener ✅
|
|
1837
|
+
* > shadow root 1 - capture listener ✅
|
|
1838
|
+
* > shadow root 2 - capture listener ✅
|
|
1839
|
+
* > shadow root 3 - capture listener ✅ (focus event here)
|
|
1840
|
+
* > focused element ✅ (no shadow root - dispatch keyborg event)
|
|
1841
|
+
*/
|
|
1785
1842
|
for (const shadowRootWeakRef of shadowTargets) if (shadowRootWeakRef.deref() === shadowRoot) return;
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
shadowTargets.add(new
|
|
1843
|
+
addEventListener(shadowRoot, "focusin", focusInHandler);
|
|
1844
|
+
addEventListener(shadowRoot, "focusout", focusOutHandler);
|
|
1845
|
+
shadowTargets.add(new WeakRef(shadowRoot));
|
|
1789
1846
|
return;
|
|
1790
1847
|
}
|
|
1791
1848
|
const details = {
|
|
@@ -1799,257 +1856,225 @@ function setupFocusEvent(win) {
|
|
|
1799
1856
|
detail: details
|
|
1800
1857
|
});
|
|
1801
1858
|
event.details = details;
|
|
1802
|
-
if (_canOverrideNativeFocus || data
|
|
1803
|
-
details.isFocusedProgrammatically = target ===
|
|
1804
|
-
data
|
|
1859
|
+
if (_canOverrideNativeFocus || data[LAST_FOCUSED_PROGRAMMATICALLY]) {
|
|
1860
|
+
details.isFocusedProgrammatically = target === data[LAST_FOCUSED_PROGRAMMATICALLY]?.deref();
|
|
1861
|
+
data[LAST_FOCUSED_PROGRAMMATICALLY] = void 0;
|
|
1805
1862
|
}
|
|
1806
1863
|
target.dispatchEvent(event);
|
|
1807
1864
|
};
|
|
1808
|
-
const data =
|
|
1865
|
+
const data = [
|
|
1809
1866
|
focusInHandler,
|
|
1810
1867
|
focusOutHandler,
|
|
1811
1868
|
shadowTargets
|
|
1812
|
-
|
|
1813
|
-
kwin.
|
|
1814
|
-
|
|
1869
|
+
];
|
|
1870
|
+
kwin.__keyborgData = data;
|
|
1871
|
+
addEventListener(doc, "focusin", focusInHandler);
|
|
1872
|
+
addEventListener(doc, "focusout", focusOutHandler);
|
|
1815
1873
|
function focus() {
|
|
1816
|
-
const
|
|
1817
|
-
if (
|
|
1874
|
+
const d = kwin.__keyborgData;
|
|
1875
|
+
if (d) d[LAST_FOCUSED_PROGRAMMATICALLY] = new WeakRef(this);
|
|
1818
1876
|
return origFocus.apply(this, arguments);
|
|
1819
1877
|
}
|
|
1820
|
-
let activeElement =
|
|
1878
|
+
let activeElement = doc.activeElement;
|
|
1821
1879
|
while (activeElement && activeElement.shadowRoot) {
|
|
1822
1880
|
onFocusIn(activeElement);
|
|
1823
1881
|
activeElement = activeElement.shadowRoot.activeElement;
|
|
1824
1882
|
}
|
|
1825
1883
|
focus.__keyborgNativeFocus = origFocus;
|
|
1826
1884
|
}
|
|
1885
|
+
/**
|
|
1886
|
+
* Removes keyborg event listeners and custom focus override
|
|
1887
|
+
* @param win The window that stores keyborg focus events
|
|
1888
|
+
*/
|
|
1827
1889
|
function disposeFocusEvent(win) {
|
|
1828
1890
|
const kwin = win;
|
|
1829
1891
|
const proto = kwin.HTMLElement.prototype;
|
|
1830
1892
|
const origFocus = proto.focus.__keyborgNativeFocus;
|
|
1831
|
-
const
|
|
1832
|
-
if (
|
|
1833
|
-
kwin.document
|
|
1834
|
-
|
|
1835
|
-
|
|
1893
|
+
const data = kwin.__keyborgData;
|
|
1894
|
+
if (data) {
|
|
1895
|
+
const doc = kwin.document;
|
|
1896
|
+
removeEventListener(doc, "focusin", data[FOCUS_IN_HANDLER]);
|
|
1897
|
+
removeEventListener(doc, "focusout", data[FOCUS_OUT_HANDLER]);
|
|
1898
|
+
for (const shadowRootWeakRef of data[SHADOW_TARGETS]) {
|
|
1836
1899
|
const shadowRoot = shadowRootWeakRef.deref();
|
|
1837
1900
|
if (shadowRoot) {
|
|
1838
|
-
|
|
1839
|
-
|
|
1901
|
+
removeEventListener(shadowRoot, "focusin", data[FOCUS_IN_HANDLER]);
|
|
1902
|
+
removeEventListener(shadowRoot, "focusout", data[FOCUS_OUT_HANDLER]);
|
|
1840
1903
|
}
|
|
1841
1904
|
}
|
|
1842
|
-
|
|
1905
|
+
data[SHADOW_TARGETS].clear();
|
|
1843
1906
|
delete kwin.__keyborgData;
|
|
1844
1907
|
}
|
|
1845
1908
|
if (origFocus) proto.focus = origFocus;
|
|
1846
1909
|
}
|
|
1910
|
+
/*!
|
|
1911
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1912
|
+
* Licensed under the MIT License.
|
|
1913
|
+
*/
|
|
1847
1914
|
var _dismissTimeout = 500;
|
|
1848
1915
|
var _lastId = 0;
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
};
|
|
1860
|
-
this._onMouseDown = (e) => {
|
|
1861
|
-
if (e.buttons === 0 || e.clientX === 0 && e.clientY === 0 && e.screenX === 0 && e.screenY === 0) return;
|
|
1862
|
-
this._onMouseOrTouch();
|
|
1863
|
-
};
|
|
1864
|
-
this._onMouseOrTouch = () => {
|
|
1865
|
-
const win = this._win;
|
|
1866
|
-
if (win) {
|
|
1867
|
-
if (this._isMouseOrTouchUsedTimer) win.clearTimeout(this._isMouseOrTouchUsedTimer);
|
|
1868
|
-
this._isMouseOrTouchUsedTimer = win.setTimeout(() => {
|
|
1869
|
-
delete this._isMouseOrTouchUsedTimer;
|
|
1870
|
-
}, 1e3);
|
|
1871
|
-
}
|
|
1872
|
-
this.isNavigatingWithKeyboard = false;
|
|
1873
|
-
};
|
|
1874
|
-
this._onKeyDown = (e) => {
|
|
1875
|
-
if (this.isNavigatingWithKeyboard) {
|
|
1876
|
-
if (this._shouldDismissKeyboardNavigation(e)) this._scheduleDismiss();
|
|
1877
|
-
} else if (this._shouldTriggerKeyboardNavigation(e)) this.isNavigatingWithKeyboard = true;
|
|
1878
|
-
};
|
|
1879
|
-
this.id = "c" + ++_lastId;
|
|
1880
|
-
this._win = win;
|
|
1881
|
-
const doc = win.document;
|
|
1882
|
-
if (props) {
|
|
1883
|
-
const triggerKeys = props.triggerKeys;
|
|
1884
|
-
const dismissKeys = props.dismissKeys;
|
|
1885
|
-
if (triggerKeys == null ? void 0 : triggerKeys.length) this._triggerKeys = new Set(triggerKeys);
|
|
1886
|
-
if (dismissKeys == null ? void 0 : dismissKeys.length) this._dismissKeys = new Set(dismissKeys);
|
|
1887
|
-
}
|
|
1888
|
-
doc.addEventListener(KEYBORG_FOCUSIN, this._onFocusIn, true);
|
|
1889
|
-
doc.addEventListener("mousedown", this._onMouseDown, true);
|
|
1890
|
-
win.addEventListener("keydown", this._onKeyDown, true);
|
|
1891
|
-
doc.addEventListener("touchstart", this._onMouseOrTouch, true);
|
|
1892
|
-
doc.addEventListener("touchend", this._onMouseOrTouch, true);
|
|
1893
|
-
doc.addEventListener("touchcancel", this._onMouseOrTouch, true);
|
|
1894
|
-
setupFocusEvent(win);
|
|
1895
|
-
}
|
|
1896
|
-
get isNavigatingWithKeyboard() {
|
|
1897
|
-
return this._isNavigatingWithKeyboard_DO_NOT_USE;
|
|
1898
|
-
}
|
|
1899
|
-
set isNavigatingWithKeyboard(val) {
|
|
1900
|
-
if (this._isNavigatingWithKeyboard_DO_NOT_USE !== val) {
|
|
1901
|
-
this._isNavigatingWithKeyboard_DO_NOT_USE = val;
|
|
1902
|
-
this.update();
|
|
1903
|
-
}
|
|
1916
|
+
function createKeyborgCore(targetWindow, props) {
|
|
1917
|
+
let currentTargetWindow = targetWindow;
|
|
1918
|
+
let isNavigating = false;
|
|
1919
|
+
let isMouseOrTouchUsedTimer;
|
|
1920
|
+
let dismissTimer;
|
|
1921
|
+
let triggerKeys;
|
|
1922
|
+
let dismissKeys;
|
|
1923
|
+
if (props) {
|
|
1924
|
+
if (props.triggerKeys?.length) triggerKeys = new Set(props.triggerKeys);
|
|
1925
|
+
if (props.dismissKeys?.length) dismissKeys = new Set(props.dismissKeys);
|
|
1904
1926
|
}
|
|
1905
|
-
|
|
1906
|
-
const
|
|
1907
|
-
if (
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
win.clearTimeout(this._dismissTimer);
|
|
1914
|
-
this._dismissTimer = void 0;
|
|
1915
|
-
}
|
|
1916
|
-
disposeFocusEvent(win);
|
|
1917
|
-
const doc = win.document;
|
|
1918
|
-
doc.removeEventListener(KEYBORG_FOCUSIN, this._onFocusIn, true);
|
|
1919
|
-
doc.removeEventListener("mousedown", this._onMouseDown, true);
|
|
1920
|
-
win.removeEventListener("keydown", this._onKeyDown, true);
|
|
1921
|
-
doc.removeEventListener("touchstart", this._onMouseOrTouch, true);
|
|
1922
|
-
doc.removeEventListener("touchend", this._onMouseOrTouch, true);
|
|
1923
|
-
doc.removeEventListener("touchcancel", this._onMouseOrTouch, true);
|
|
1924
|
-
delete this._win;
|
|
1927
|
+
const broadcast = () => {
|
|
1928
|
+
const refs = currentTargetWindow?.__keyborg?.refs;
|
|
1929
|
+
if (refs) for (const id of Object.keys(refs)) refs[id]._cb.forEach((cb) => cb(isNavigating));
|
|
1930
|
+
};
|
|
1931
|
+
const setNavigating = (val) => {
|
|
1932
|
+
if (isNavigating !== val) {
|
|
1933
|
+
isNavigating = val;
|
|
1934
|
+
broadcast();
|
|
1925
1935
|
}
|
|
1926
|
-
}
|
|
1927
|
-
|
|
1928
|
-
return !!this._win;
|
|
1929
|
-
}
|
|
1930
|
-
/**
|
|
1931
|
-
* Updates all keyborg instances with the keyboard navigation state
|
|
1932
|
-
*/
|
|
1933
|
-
update() {
|
|
1934
|
-
var _a, _b;
|
|
1935
|
-
const keyborgs = (_b = (_a = this._win) == null ? void 0 : _a.__keyborg) == null ? void 0 : _b.refs;
|
|
1936
|
-
if (keyborgs) for (const id of Object.keys(keyborgs)) Keyborg.update(keyborgs[id], this.isNavigatingWithKeyboard);
|
|
1937
|
-
}
|
|
1938
|
-
/**
|
|
1939
|
-
* @returns whether the keyboard event should trigger keyboard navigation mode
|
|
1940
|
-
*/
|
|
1941
|
-
_shouldTriggerKeyboardNavigation(e) {
|
|
1942
|
-
var _a;
|
|
1936
|
+
};
|
|
1937
|
+
const shouldTrigger = (e) => {
|
|
1943
1938
|
if (e.key === "Tab") return true;
|
|
1944
|
-
const
|
|
1945
|
-
const isTriggerKey = !
|
|
1946
|
-
const isEditable =
|
|
1939
|
+
const active = currentTargetWindow?.document.activeElement;
|
|
1940
|
+
const isTriggerKey = !triggerKeys || triggerKeys.has(e.keyCode);
|
|
1941
|
+
const isEditable = active && (active.tagName === "INPUT" || active.tagName === "TEXTAREA" || active.isContentEditable);
|
|
1947
1942
|
return isTriggerKey && !isEditable;
|
|
1948
|
-
}
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
if (win) {
|
|
1959
|
-
if (this._dismissTimer) {
|
|
1960
|
-
win.clearTimeout(this._dismissTimer);
|
|
1961
|
-
this._dismissTimer = void 0;
|
|
1962
|
-
}
|
|
1963
|
-
const was = win.document.activeElement;
|
|
1964
|
-
this._dismissTimer = win.setTimeout(() => {
|
|
1965
|
-
this._dismissTimer = void 0;
|
|
1966
|
-
const cur = win.document.activeElement;
|
|
1967
|
-
if (was && cur && was === cur) this.isNavigatingWithKeyboard = false;
|
|
1968
|
-
}, _dismissTimeout);
|
|
1943
|
+
};
|
|
1944
|
+
const shouldDismiss = (e) => {
|
|
1945
|
+
return !!dismissKeys?.has(e.keyCode);
|
|
1946
|
+
};
|
|
1947
|
+
const scheduleDismiss = () => {
|
|
1948
|
+
const targetWindow = currentTargetWindow;
|
|
1949
|
+
if (!targetWindow) return;
|
|
1950
|
+
if (dismissTimer) {
|
|
1951
|
+
targetWindow.clearTimeout(dismissTimer);
|
|
1952
|
+
dismissTimer = void 0;
|
|
1969
1953
|
}
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
if (
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1954
|
+
const previousActiveElement = targetWindow.document.activeElement;
|
|
1955
|
+
dismissTimer = targetWindow.setTimeout(() => {
|
|
1956
|
+
dismissTimer = void 0;
|
|
1957
|
+
const currentActiveElement = targetWindow.document.activeElement;
|
|
1958
|
+
if (previousActiveElement && currentActiveElement && previousActiveElement === currentActiveElement) setNavigating(false);
|
|
1959
|
+
}, _dismissTimeout);
|
|
1960
|
+
};
|
|
1961
|
+
const onFocusIn = (e) => {
|
|
1962
|
+
if (isMouseOrTouchUsedTimer) return;
|
|
1963
|
+
if (isNavigating) return;
|
|
1964
|
+
const details = e.detail;
|
|
1965
|
+
if (!details.relatedTarget) return;
|
|
1966
|
+
if (details.isFocusedProgrammatically || details.isFocusedProgrammatically === void 0) return;
|
|
1967
|
+
setNavigating(true);
|
|
1968
|
+
};
|
|
1969
|
+
const onMouseOrTouch = () => {
|
|
1970
|
+
if (currentTargetWindow) {
|
|
1971
|
+
if (isMouseOrTouchUsedTimer) currentTargetWindow.clearTimeout(isMouseOrTouchUsedTimer);
|
|
1972
|
+
isMouseOrTouchUsedTimer = currentTargetWindow.setTimeout(() => {
|
|
1973
|
+
isMouseOrTouchUsedTimer = void 0;
|
|
1974
|
+
}, 1e3);
|
|
1987
1975
|
}
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
*/
|
|
2038
|
-
setVal(isNavigatingWithKeyboard) {
|
|
2039
|
-
if (this._core) this._core.isNavigatingWithKeyboard = isNavigatingWithKeyboard;
|
|
2040
|
-
}
|
|
2041
|
-
};
|
|
1976
|
+
setNavigating(false);
|
|
1977
|
+
};
|
|
1978
|
+
const onMouseDown = (e) => {
|
|
1979
|
+
if (e.buttons === 0 || e.clientX === 0 && e.clientY === 0 && e.screenX === 0 && e.screenY === 0) return;
|
|
1980
|
+
onMouseOrTouch();
|
|
1981
|
+
};
|
|
1982
|
+
const onKeyDown = (e) => {
|
|
1983
|
+
if (isNavigating) {
|
|
1984
|
+
if (shouldDismiss(e)) scheduleDismiss();
|
|
1985
|
+
} else if (shouldTrigger(e)) setNavigating(true);
|
|
1986
|
+
};
|
|
1987
|
+
const targetDocument = targetWindow.document;
|
|
1988
|
+
addEventListener(targetDocument, KEYBORG_FOCUSIN, onFocusIn);
|
|
1989
|
+
addEventListener(targetDocument, "mousedown", onMouseDown);
|
|
1990
|
+
addEventListener(targetWindow, "keydown", onKeyDown);
|
|
1991
|
+
addEventListener(targetDocument, "touchstart", onMouseOrTouch);
|
|
1992
|
+
addEventListener(targetDocument, "touchend", onMouseOrTouch);
|
|
1993
|
+
addEventListener(targetDocument, "touchcancel", onMouseOrTouch);
|
|
1994
|
+
setupFocusEvent(targetWindow);
|
|
1995
|
+
const dispose = () => {
|
|
1996
|
+
if (!currentTargetWindow) return;
|
|
1997
|
+
if (isMouseOrTouchUsedTimer) {
|
|
1998
|
+
currentTargetWindow.clearTimeout(isMouseOrTouchUsedTimer);
|
|
1999
|
+
isMouseOrTouchUsedTimer = void 0;
|
|
2000
|
+
}
|
|
2001
|
+
if (dismissTimer) {
|
|
2002
|
+
currentTargetWindow.clearTimeout(dismissTimer);
|
|
2003
|
+
dismissTimer = void 0;
|
|
2004
|
+
}
|
|
2005
|
+
disposeFocusEvent(currentTargetWindow);
|
|
2006
|
+
const targetDocument = currentTargetWindow.document;
|
|
2007
|
+
removeEventListener(targetDocument, KEYBORG_FOCUSIN, onFocusIn);
|
|
2008
|
+
removeEventListener(targetDocument, "mousedown", onMouseDown);
|
|
2009
|
+
removeEventListener(currentTargetWindow, "keydown", onKeyDown);
|
|
2010
|
+
removeEventListener(targetDocument, "touchstart", onMouseOrTouch);
|
|
2011
|
+
removeEventListener(targetDocument, "touchend", onMouseOrTouch);
|
|
2012
|
+
removeEventListener(targetDocument, "touchcancel", onMouseOrTouch);
|
|
2013
|
+
currentTargetWindow = void 0;
|
|
2014
|
+
};
|
|
2015
|
+
return {
|
|
2016
|
+
dispose,
|
|
2017
|
+
get isNavigatingWithKeyboard() {
|
|
2018
|
+
return isNavigating;
|
|
2019
|
+
},
|
|
2020
|
+
set isNavigatingWithKeyboard(val) {
|
|
2021
|
+
setNavigating(val);
|
|
2022
|
+
}
|
|
2023
|
+
};
|
|
2024
|
+
}
|
|
2042
2025
|
function createKeyborg(win, props) {
|
|
2043
|
-
|
|
2026
|
+
const kwin = win;
|
|
2027
|
+
const id = "k" + ++_lastId;
|
|
2028
|
+
let localWin = kwin;
|
|
2029
|
+
let core;
|
|
2030
|
+
const callbacks = [];
|
|
2031
|
+
const existing = kwin.__keyborg;
|
|
2032
|
+
if (existing) core = existing.core;
|
|
2033
|
+
else core = createKeyborgCore(kwin, props);
|
|
2034
|
+
const instance = {
|
|
2035
|
+
isNavigatingWithKeyboard() {
|
|
2036
|
+
return !!core?.isNavigatingWithKeyboard;
|
|
2037
|
+
},
|
|
2038
|
+
subscribe(callback) {
|
|
2039
|
+
callbacks.push(callback);
|
|
2040
|
+
},
|
|
2041
|
+
unsubscribe(callback) {
|
|
2042
|
+
const index = callbacks.indexOf(callback);
|
|
2043
|
+
if (index >= 0) callbacks.splice(index, 1);
|
|
2044
|
+
},
|
|
2045
|
+
setVal(val) {
|
|
2046
|
+
if (core) core.isNavigatingWithKeyboard = val;
|
|
2047
|
+
},
|
|
2048
|
+
_cb: callbacks,
|
|
2049
|
+
dispose() {
|
|
2050
|
+
const wkb = localWin?.__keyborg;
|
|
2051
|
+
if (wkb?.refs[id]) {
|
|
2052
|
+
delete wkb.refs[id];
|
|
2053
|
+
if (Object.keys(wkb.refs).length === 0) {
|
|
2054
|
+
wkb.core.dispose();
|
|
2055
|
+
delete localWin.__keyborg;
|
|
2056
|
+
}
|
|
2057
|
+
} else if (process.env.NODE_ENV !== "production") console.error(`Keyborg instance ${id} is being disposed incorrectly.`);
|
|
2058
|
+
callbacks.length = 0;
|
|
2059
|
+
core = void 0;
|
|
2060
|
+
localWin = void 0;
|
|
2061
|
+
}
|
|
2062
|
+
};
|
|
2063
|
+
if (existing) existing.refs[id] = instance;
|
|
2064
|
+
else kwin.__keyborg = {
|
|
2065
|
+
core,
|
|
2066
|
+
refs: { [id]: instance }
|
|
2067
|
+
};
|
|
2068
|
+
return instance;
|
|
2044
2069
|
}
|
|
2045
2070
|
function disposeKeyborg(instance) {
|
|
2046
|
-
|
|
2071
|
+
instance.dispose();
|
|
2047
2072
|
}
|
|
2048
2073
|
/**
|
|
2049
2074
|
* @internal
|
|
2050
2075
|
*/ var FOCUS_VISIBLE_ATTR = "data-fui-focus-visible";
|
|
2051
2076
|
//#endregion
|
|
2052
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-tabster@9.
|
|
2077
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-tabster@9.2_5e9222e6da0ee5d843013b99e545ae46/node_modules/@fluentui/react-tabster/lib/focus/focusVisiblePolyfill.js
|
|
2053
2078
|
/**
|
|
2054
2079
|
* @internal
|
|
2055
2080
|
* @param scope - Applies the ponyfill to all DOM children
|
|
@@ -2100,7 +2125,7 @@ function alreadyInScope(el) {
|
|
|
2100
2125
|
return alreadyInScope(el === null || el === void 0 ? void 0 : el.parentElement);
|
|
2101
2126
|
}
|
|
2102
2127
|
//#endregion
|
|
2103
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-tabster@9.
|
|
2128
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-tabster@9.2_5e9222e6da0ee5d843013b99e545ae46/node_modules/@fluentui/react-tabster/lib/hooks/useFocusVisible.js
|
|
2104
2129
|
function useFocusVisible(options = {}) {
|
|
2105
2130
|
const contextValue = useFluent();
|
|
2106
2131
|
const scopeRef = React.useRef(null);
|
|
@@ -3213,7 +3238,7 @@ var webLightTheme = createLightTheme({
|
|
|
3213
3238
|
160: `#ebf3fc`
|
|
3214
3239
|
});
|
|
3215
3240
|
//#endregion
|
|
3216
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-provider@9.
|
|
3241
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-provider@9._d288fbb326c7d59fc92ddeaf64bc3ca8/node_modules/@fluentui/react-provider/lib/components/FluentProvider/useFluentProviderStyles.styles.js
|
|
3217
3242
|
var fluentProviderClassNames = { root: "fui-FluentProvider" };
|
|
3218
3243
|
var useStyles = /* @__PURE__ */ __styles({ root: {
|
|
3219
3244
|
sj55zd: "f19n0e5",
|
|
@@ -3245,7 +3270,7 @@ var useFluentProviderStyles_unstable = (state) => {
|
|
|
3245
3270
|
return state;
|
|
3246
3271
|
};
|
|
3247
3272
|
//#endregion
|
|
3248
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-provider@9.
|
|
3273
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-provider@9._d288fbb326c7d59fc92ddeaf64bc3ca8/node_modules/@fluentui/react-provider/lib/components/FluentProvider/useFluentProviderThemeStyleTag.js
|
|
3249
3274
|
var useInsertionEffect = React["useInsertionEffect"] ? React["useInsertionEffect"] : useIsomorphicLayoutEffect;
|
|
3250
3275
|
var createStyleTag = (target, elementAttributes) => {
|
|
3251
3276
|
if (!(target === null || target === void 0 ? void 0 : target.head)) return;
|
|
@@ -3337,7 +3362,7 @@ function useHandleSSRStyleElements(targetDocument, styleTagId) {
|
|
|
3337
3362
|
});
|
|
3338
3363
|
}
|
|
3339
3364
|
//#endregion
|
|
3340
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-provider@9.
|
|
3365
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-provider@9._d288fbb326c7d59fc92ddeaf64bc3ca8/node_modules/@fluentui/react-provider/lib/components/FluentProvider/useFluentProvider.js
|
|
3341
3366
|
var DEFAULT_STYLE_HOOKS = {};
|
|
3342
3367
|
var DEFAULT_RENDERER_ATTRIBUTES = {};
|
|
3343
3368
|
/**
|
|
@@ -3407,7 +3432,7 @@ function useTheme() {
|
|
|
3407
3432
|
return React.useContext(ThemeContext);
|
|
3408
3433
|
}
|
|
3409
3434
|
//#endregion
|
|
3410
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-provider@9.
|
|
3435
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-provider@9._d288fbb326c7d59fc92ddeaf64bc3ca8/node_modules/@fluentui/react-provider/lib/components/FluentProvider/useFluentProviderContextValues.js
|
|
3411
3436
|
function useFluentProviderContextValues_unstable(state) {
|
|
3412
3437
|
const { applyStylesToPortals, customStyleHooks_unstable, dir, root, targetDocument, theme, themeClassName, overrides_unstable } = state;
|
|
3413
3438
|
const provider = React.useMemo(() => ({
|
|
@@ -3427,7 +3452,7 @@ function useFluentProviderContextValues_unstable(state) {
|
|
|
3427
3452
|
};
|
|
3428
3453
|
}
|
|
3429
3454
|
//#endregion
|
|
3430
|
-
//#region ../../node_modules/.pnpm/@fluentui+react-provider@9.
|
|
3455
|
+
//#region ../../node_modules/.pnpm/@fluentui+react-provider@9._d288fbb326c7d59fc92ddeaf64bc3ca8/node_modules/@fluentui/react-provider/lib/components/FluentProvider/FluentProvider.js
|
|
3431
3456
|
var FluentProvider = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
3432
3457
|
const state = useFluentProvider_unstable(props, ref);
|
|
3433
3458
|
useFluentProviderStyles_unstable(state);
|