storybook 10.2.0-alpha.1 → 10.2.0-alpha.2
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/_browser-chunks/Color-E5XDEOX4.js +484 -0
- package/dist/_browser-chunks/{WithTooltip-IO6J4KBT.js → WithTooltip-65CFNBJE.js} +70 -70
- package/dist/_browser-chunks/{chunk-45UGUKRX.js → chunk-242VQQM5.js} +1 -1
- package/dist/_browser-chunks/chunk-2NDLAB5X.js +363 -0
- package/dist/_browser-chunks/{chunk-JP7NCOJX.js → chunk-3LY4VQVK.js} +1 -1
- package/dist/_browser-chunks/{chunk-XJNX76GA.js → chunk-54PNNATT.js} +3 -20
- package/dist/_browser-chunks/{chunk-VYJQ7RU5.js → chunk-6QKNWBQB.js} +17 -17
- package/dist/_browser-chunks/chunk-CLSHX4VX.js +4140 -0
- package/dist/_browser-chunks/{chunk-2XZMBGTA.js → chunk-DOSERVNW.js} +1 -1
- package/dist/_browser-chunks/chunk-HPYUT3WS.js +199 -0
- package/dist/_browser-chunks/{chunk-BRX2HXH7.js → chunk-IH6QJILI.js} +1 -1
- package/dist/_browser-chunks/{chunk-AS2HQEYC.js → chunk-IWQGIXJS.js} +1 -1
- package/dist/_browser-chunks/{chunk-UD6FQLAF.js → chunk-JK6U3MQW.js} +3 -3
- package/dist/_browser-chunks/{chunk-CHUV5WSW.js → chunk-LE2LTDW3.js} +1 -1
- package/dist/_browser-chunks/{chunk-RP5RXKFU.js → chunk-MOYJJEXA.js} +38 -29
- package/dist/_browser-chunks/chunk-NZMVUW5T.js +7 -0
- package/dist/_browser-chunks/{chunk-AXG2BOBL.js → chunk-S6TK43XQ.js} +10 -10
- package/dist/_browser-chunks/{chunk-H6XK3RSC.js → chunk-UAYGIC3L.js} +6 -6
- package/dist/_browser-chunks/{chunk-YKE5S47A.js → chunk-V2VKKSMQ.js} +18 -18
- package/dist/_browser-chunks/chunk-VIJ7SQRO.js +568 -0
- package/dist/_browser-chunks/chunk-XCZK5QUJ.js +0 -0
- package/dist/_browser-chunks/{chunk-3OXGAGBE.js → chunk-XLJZ7AOP.js} +14 -14
- package/dist/_browser-chunks/{chunk-SS2NHR7W.js → chunk-Y6HZAT53.js} +10 -12
- package/dist/_browser-chunks/{chunk-P4F4UVXX.js → chunk-YKABRMAI.js} +15 -15
- package/dist/_browser-chunks/{chunk-WJYERY3R.js → chunk-ZCFV7BZB.js} +2 -2
- package/dist/_browser-chunks/{formatter-QJ4M4OGQ.js → formatter-EIJCOSYU.js} +2 -2
- package/dist/_browser-chunks/{syntaxhighlighter-IQDEPFLK.js → syntaxhighlighter-ED5Y7EFY.js} +119 -119
- package/dist/_node-chunks/{builder-manager-LXL5N6M5.js → builder-manager-ZK4QXZNX.js} +22 -22
- package/dist/_node-chunks/{camelcase-64II7H4U.js → camelcase-QWQG7I72.js} +8 -8
- package/dist/_node-chunks/{chunk-R3WYNAT5.js → chunk-2AFVBCGF.js} +6 -6
- package/dist/_node-chunks/{chunk-F7377GT2.js → chunk-5VZMCPTH.js} +18 -18
- package/dist/_node-chunks/{chunk-KXDU466E.js → chunk-6OZRMRVO.js} +31 -31
- package/dist/_node-chunks/chunk-CLCLRZYL.js +61 -0
- package/dist/_node-chunks/{chunk-AJUO2ZU3.js → chunk-CW7HJRCY.js} +9 -9
- package/dist/_node-chunks/chunk-DF3QP62W.js +18 -0
- package/dist/_node-chunks/{chunk-4BQMSZKI.js → chunk-DWVHBQGR.js} +165 -191
- package/dist/_node-chunks/chunk-EVBCPGQO.js +20 -0
- package/dist/_node-chunks/{chunk-5GNBLJKS.js → chunk-EXZXVBZO.js} +8 -8
- package/dist/_node-chunks/{chunk-VR5LMO3F.js → chunk-FZFZ5TOM.js} +9 -9
- package/dist/_node-chunks/{chunk-4EZYJUAC.js → chunk-GKEAARBQ.js} +10 -10
- package/dist/_node-chunks/{chunk-KMTK5W6O.js → chunk-HMFROKHU.js} +19 -19
- package/dist/_node-chunks/{chunk-JYMZJCZ7.js → chunk-I5TOD3AY.js} +66 -72
- package/dist/_node-chunks/{chunk-FTR6MHOX.js → chunk-KVNLJSAB.js} +619 -148
- package/dist/_node-chunks/{chunk-ET4VMMZG.js → chunk-NKOHF7TQ.js} +10 -10
- package/dist/_node-chunks/{chunk-PGFQADZC.js → chunk-OV2CP4VV.js} +7 -7
- package/dist/_node-chunks/chunk-PCMFKXWQ.js +23 -0
- package/dist/_node-chunks/{chunk-LEDV47V2.js → chunk-Q5ZQH2OQ.js} +15 -15
- package/dist/_node-chunks/{chunk-77APSTTM.js → chunk-QFSK4B7R.js} +8 -8
- package/dist/_node-chunks/{chunk-TP6ICLTL.js → chunk-R2J3OB3H.js} +6 -6
- package/dist/_node-chunks/{chunk-GOOBGRAV.js → chunk-RGQC4G3L.js} +165 -21
- package/dist/_node-chunks/{chunk-5NWCBUGD.js → chunk-TOXVUAH2.js} +6 -6
- package/dist/_node-chunks/{chunk-SR5ZYD7K.js → chunk-URBB5EGY.js} +8 -8
- package/dist/_node-chunks/{chunk-TX77W2KY.js → chunk-UWJ4BOOL.js} +597 -593
- package/dist/_node-chunks/{chunk-CLNMK7MP.js → chunk-VJPI73BB.js} +230 -236
- package/dist/_node-chunks/{chunk-ZI2RAI3I.js → chunk-WOS3OQVT.js} +6 -6
- package/dist/_node-chunks/{chunk-VFTNRF5X.js → chunk-WUKWNPSQ.js} +17 -17
- package/dist/_node-chunks/{chunk-GYZQMMTN.js → chunk-XFU23B4C.js} +9 -9
- package/dist/_node-chunks/{dist-HGQ5R6JU.js → dist-UBFMIJZC.js} +10 -10
- package/dist/_node-chunks/{globby-5XJTXKUJ.js → globby-VD3CGPVI.js} +154 -154
- package/dist/_node-chunks/{lib-XNLTS2RI.js → lib-MMJB47J3.js} +16 -16
- package/dist/_node-chunks/{mdx-N42X6CFJ-7WF3QWVO.js → mdx-N42X6CFJ-3J2G7NZZ.js} +11 -11
- package/dist/_node-chunks/{p-limit-RBKYTJKF.js → p-limit-SOBWTEVH.js} +8 -8
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +28 -28
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +14 -11
- package/dist/channels/index.js +3 -3
- package/dist/cli/index.d.ts +2 -1
- package/dist/cli/index.js +18 -18
- package/dist/common/index.js +19 -19
- package/dist/components/index.d.ts +9 -2
- package/dist/components/index.js +327 -311
- package/dist/core-server/index.js +125 -125
- package/dist/core-server/presets/common-manager.css +2 -2
- package/dist/core-server/presets/common-manager.js +43 -38
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +4390 -173
- package/dist/csf/index.js +39 -35
- package/dist/csf-tools/index.js +9 -9
- package/dist/docs-tools/index.js +6 -5
- package/dist/instrumenter/index.js +1 -1
- package/dist/manager/globals-runtime.js +18956 -12602
- package/dist/manager/runtime.js +148 -132
- package/dist/manager-api/index.js +31 -22
- package/dist/mocking-utils/index.js +14 -14
- package/dist/node-logger/index.d.ts +2 -2
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +30784 -24388
- package/dist/preview-api/index.js +12 -11
- package/dist/preview-errors.js +2 -2
- package/dist/router/index.js +12 -13
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/telemetry/index.js +23 -23
- package/dist/test/index.js +3104 -1604
- package/dist/theming/create.js +3 -3
- package/dist/theming/index.js +38 -38
- package/package.json +2 -8
- package/dist/_browser-chunks/Color-TNPFN3FC.js +0 -1097
- package/dist/_browser-chunks/chunk-3IAH5M2U.js +0 -171
- package/dist/_browser-chunks/chunk-AIOS4NGK.js +0 -252
- package/dist/_browser-chunks/chunk-EZSQOHRI.js +0 -18
- package/dist/_browser-chunks/chunk-GFLS4VP3.js +0 -64
- package/dist/_browser-chunks/chunk-QKODTO7K.js +0 -7
- package/dist/_node-chunks/chunk-COQ27OZ3.js +0 -61
- package/dist/_node-chunks/chunk-MC2R4DSD.js +0 -20
- package/dist/_node-chunks/chunk-NEENMS4J.js +0 -18
- package/dist/_node-chunks/chunk-XEPVDCRL.js +0 -23
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
_objectWithoutPropertiesLoose
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-242VQQM5.js";
|
|
4
4
|
import {
|
|
5
5
|
_extends
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LE2LTDW3.js";
|
|
7
7
|
import {
|
|
8
8
|
require_memoizerific
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZCFV7BZB.js";
|
|
10
10
|
import {
|
|
11
11
|
__commonJS,
|
|
12
12
|
__toESM
|
|
13
13
|
} from "./chunk-A242L54C.js";
|
|
14
14
|
|
|
15
|
-
//
|
|
15
|
+
// ../../node_modules/react-fast-compare/index.js
|
|
16
16
|
var require_react_fast_compare = __commonJS({
|
|
17
|
-
"
|
|
17
|
+
"../../node_modules/react-fast-compare/index.js"(exports, module) {
|
|
18
18
|
var hasElementType = typeof Element < "u", hasMap = typeof Map == "function", hasSet = typeof Set == "function", hasArrayBuffer = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
19
19
|
function equal(a, b) {
|
|
20
20
|
if (a === b) return !0;
|
|
@@ -74,9 +74,9 @@ var require_react_fast_compare = __commonJS({
|
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
//
|
|
77
|
+
// ../../node_modules/warning/warning.js
|
|
78
78
|
var require_warning = __commonJS({
|
|
79
|
-
"
|
|
79
|
+
"../../node_modules/warning/warning.js"(exports, module) {
|
|
80
80
|
"use strict";
|
|
81
81
|
var __DEV__ = process.env.NODE_ENV !== "production", warning2 = function() {
|
|
82
82
|
};
|
|
@@ -116,17 +116,17 @@ import ReactDOM2 from "react-dom";
|
|
|
116
116
|
import { deprecate } from "storybook/internal/client-logger";
|
|
117
117
|
import { global } from "@storybook/global";
|
|
118
118
|
|
|
119
|
-
//
|
|
119
|
+
// ../../node_modules/react-popper-tooltip/dist/esm/react-popper-tooltip.js
|
|
120
120
|
import * as React6 from "react";
|
|
121
121
|
|
|
122
|
-
//
|
|
122
|
+
// ../../node_modules/react-popper/lib/esm/Popper.js
|
|
123
123
|
import * as React4 from "react";
|
|
124
124
|
|
|
125
|
-
//
|
|
125
|
+
// ../../node_modules/react-popper/lib/esm/Manager.js
|
|
126
126
|
import * as React from "react";
|
|
127
127
|
var ManagerReferenceNodeContext = React.createContext(), ManagerReferenceNodeSetterContext = React.createContext();
|
|
128
128
|
|
|
129
|
-
//
|
|
129
|
+
// ../../node_modules/react-popper/lib/esm/utils.js
|
|
130
130
|
import * as React2 from "react";
|
|
131
131
|
var fromEntries = function(entries) {
|
|
132
132
|
return entries.reduce(function(acc, _ref) {
|
|
@@ -135,23 +135,23 @@ var fromEntries = function(entries) {
|
|
|
135
135
|
}, {});
|
|
136
136
|
}, useIsomorphicLayoutEffect = typeof window < "u" && window.document && window.document.createElement ? React2.useLayoutEffect : React2.useEffect;
|
|
137
137
|
|
|
138
|
-
//
|
|
138
|
+
// ../../node_modules/react-popper/lib/esm/usePopper.js
|
|
139
139
|
import * as React3 from "react";
|
|
140
140
|
import * as ReactDOM from "react-dom";
|
|
141
141
|
|
|
142
|
-
//
|
|
142
|
+
// ../../node_modules/@popperjs/core/lib/enums.js
|
|
143
143
|
var top = "top", bottom = "bottom", right = "right", left = "left", auto = "auto", basePlacements = [top, bottom, right, left], start = "start", end = "end", clippingParents = "clippingParents", viewport = "viewport", popper = "popper", reference = "reference", variationPlacements = basePlacements.reduce(function(acc, placement) {
|
|
144
144
|
return acc.concat([placement + "-" + start, placement + "-" + end]);
|
|
145
145
|
}, []), placements = [].concat(basePlacements, [auto]).reduce(function(acc, placement) {
|
|
146
146
|
return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
|
|
147
147
|
}, []), beforeRead = "beforeRead", read = "read", afterRead = "afterRead", beforeMain = "beforeMain", main = "main", afterMain = "afterMain", beforeWrite = "beforeWrite", write = "write", afterWrite = "afterWrite", modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
|
|
148
148
|
|
|
149
|
-
//
|
|
149
|
+
// ../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js
|
|
150
150
|
function getNodeName(element) {
|
|
151
151
|
return element ? (element.nodeName || "").toLowerCase() : null;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
//
|
|
154
|
+
// ../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js
|
|
155
155
|
function getWindow(node) {
|
|
156
156
|
if (node == null)
|
|
157
157
|
return window;
|
|
@@ -162,7 +162,7 @@ function getWindow(node) {
|
|
|
162
162
|
return node;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
//
|
|
165
|
+
// ../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js
|
|
166
166
|
function isElement(node) {
|
|
167
167
|
var OwnElement = getWindow(node).Element;
|
|
168
168
|
return node instanceof OwnElement || node instanceof Element;
|
|
@@ -178,7 +178,7 @@ function isShadowRoot(node) {
|
|
|
178
178
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
//
|
|
181
|
+
// ../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js
|
|
182
182
|
function applyStyles(_ref) {
|
|
183
183
|
var state = _ref.state;
|
|
184
184
|
Object.keys(state.elements).forEach(function(name) {
|
|
@@ -222,15 +222,15 @@ var applyStyles_default = {
|
|
|
222
222
|
requires: ["computeStyles"]
|
|
223
223
|
};
|
|
224
224
|
|
|
225
|
-
//
|
|
225
|
+
// ../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js
|
|
226
226
|
function getBasePlacement(placement) {
|
|
227
227
|
return placement.split("-")[0];
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
//
|
|
230
|
+
// ../../node_modules/@popperjs/core/lib/utils/math.js
|
|
231
231
|
var max = Math.max, min = Math.min, round = Math.round;
|
|
232
232
|
|
|
233
|
-
//
|
|
233
|
+
// ../../node_modules/@popperjs/core/lib/utils/userAgent.js
|
|
234
234
|
function getUAString() {
|
|
235
235
|
var uaData = navigator.userAgentData;
|
|
236
236
|
return uaData != null && uaData.brands && Array.isArray(uaData.brands) ? uaData.brands.map(function(item) {
|
|
@@ -238,12 +238,12 @@ function getUAString() {
|
|
|
238
238
|
}).join(" ") : navigator.userAgent;
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
//
|
|
241
|
+
// ../../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js
|
|
242
242
|
function isLayoutViewport() {
|
|
243
243
|
return !/^((?!chrome|android).)*safari/i.test(getUAString());
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
//
|
|
246
|
+
// ../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
|
|
247
247
|
function getBoundingClientRect(element, includeScale, isFixedStrategy) {
|
|
248
248
|
includeScale === void 0 && (includeScale = !1), isFixedStrategy === void 0 && (isFixedStrategy = !1);
|
|
249
249
|
var clientRect = element.getBoundingClientRect(), scaleX = 1, scaleY = 1;
|
|
@@ -261,7 +261,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy) {
|
|
|
261
261
|
};
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
//
|
|
264
|
+
// ../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js
|
|
265
265
|
function getLayoutRect(element) {
|
|
266
266
|
var clientRect = getBoundingClientRect(element), width = element.offsetWidth, height = element.offsetHeight;
|
|
267
267
|
return Math.abs(clientRect.width - width) <= 1 && (width = clientRect.width), Math.abs(clientRect.height - height) <= 1 && (height = clientRect.height), {
|
|
@@ -272,7 +272,7 @@ function getLayoutRect(element) {
|
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
//
|
|
275
|
+
// ../../node_modules/@popperjs/core/lib/dom-utils/contains.js
|
|
276
276
|
function contains(parent, child) {
|
|
277
277
|
var rootNode = child.getRootNode && child.getRootNode();
|
|
278
278
|
if (parent.contains(child))
|
|
@@ -288,17 +288,17 @@ function contains(parent, child) {
|
|
|
288
288
|
return !1;
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
//
|
|
291
|
+
// ../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js
|
|
292
292
|
function getComputedStyle(element) {
|
|
293
293
|
return getWindow(element).getComputedStyle(element);
|
|
294
294
|
}
|
|
295
295
|
|
|
296
|
-
//
|
|
296
|
+
// ../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js
|
|
297
297
|
function isTableElement(element) {
|
|
298
298
|
return ["table", "td", "th"].indexOf(getNodeName(element)) >= 0;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
//
|
|
301
|
+
// ../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js
|
|
302
302
|
function getDocumentElement(element) {
|
|
303
303
|
return ((isElement(element) ? element.ownerDocument : (
|
|
304
304
|
// $FlowFixMe[prop-missing]
|
|
@@ -306,7 +306,7 @@ function getDocumentElement(element) {
|
|
|
306
306
|
)) || window.document).documentElement;
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
-
//
|
|
309
|
+
// ../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js
|
|
310
310
|
function getParentNode(element) {
|
|
311
311
|
return getNodeName(element) === "html" ? element : (
|
|
312
312
|
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
@@ -320,7 +320,7 @@ function getParentNode(element) {
|
|
|
320
320
|
);
|
|
321
321
|
}
|
|
322
322
|
|
|
323
|
-
//
|
|
323
|
+
// ../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js
|
|
324
324
|
function getTrueOffsetParent(element) {
|
|
325
325
|
return !isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
326
326
|
getComputedStyle(element).position === "fixed" ? null : element.offsetParent;
|
|
@@ -347,12 +347,12 @@ function getOffsetParent(element) {
|
|
|
347
347
|
return offsetParent && (getNodeName(offsetParent) === "html" || getNodeName(offsetParent) === "body" && getComputedStyle(offsetParent).position === "static") ? window2 : offsetParent || getContainingBlock(element) || window2;
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
-
//
|
|
350
|
+
// ../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js
|
|
351
351
|
function getMainAxisFromPlacement(placement) {
|
|
352
352
|
return ["top", "bottom"].indexOf(placement) >= 0 ? "x" : "y";
|
|
353
353
|
}
|
|
354
354
|
|
|
355
|
-
//
|
|
355
|
+
// ../../node_modules/@popperjs/core/lib/utils/within.js
|
|
356
356
|
function within(min2, value, max2) {
|
|
357
357
|
return max(min2, min(value, max2));
|
|
358
358
|
}
|
|
@@ -361,7 +361,7 @@ function withinMaxClamp(min2, value, max2) {
|
|
|
361
361
|
return v > max2 ? max2 : v;
|
|
362
362
|
}
|
|
363
363
|
|
|
364
|
-
//
|
|
364
|
+
// ../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js
|
|
365
365
|
function getFreshSideObject() {
|
|
366
366
|
return {
|
|
367
367
|
top: 0,
|
|
@@ -371,19 +371,19 @@ function getFreshSideObject() {
|
|
|
371
371
|
};
|
|
372
372
|
}
|
|
373
373
|
|
|
374
|
-
//
|
|
374
|
+
// ../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js
|
|
375
375
|
function mergePaddingObject(paddingObject) {
|
|
376
376
|
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
377
377
|
}
|
|
378
378
|
|
|
379
|
-
//
|
|
379
|
+
// ../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js
|
|
380
380
|
function expandToHashMap(value, keys) {
|
|
381
381
|
return keys.reduce(function(hashMap, key) {
|
|
382
382
|
return hashMap[key] = value, hashMap;
|
|
383
383
|
}, {});
|
|
384
384
|
}
|
|
385
385
|
|
|
386
|
-
//
|
|
386
|
+
// ../../node_modules/@popperjs/core/lib/modifiers/arrow.js
|
|
387
387
|
var toPaddingObject = function(padding, state) {
|
|
388
388
|
return padding = typeof padding == "function" ? padding(Object.assign({}, state.rects, {
|
|
389
389
|
placement: state.placement
|
|
@@ -410,12 +410,12 @@ var arrow_default = {
|
|
|
410
410
|
requiresIfExists: ["preventOverflow"]
|
|
411
411
|
};
|
|
412
412
|
|
|
413
|
-
//
|
|
413
|
+
// ../../node_modules/@popperjs/core/lib/utils/getVariation.js
|
|
414
414
|
function getVariation(placement) {
|
|
415
415
|
return placement.split("-")[1];
|
|
416
416
|
}
|
|
417
417
|
|
|
418
|
-
//
|
|
418
|
+
// ../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js
|
|
419
419
|
var unsetSides = {
|
|
420
420
|
top: "auto",
|
|
421
421
|
right: "auto",
|
|
@@ -504,7 +504,7 @@ var computeStyles_default = {
|
|
|
504
504
|
data: {}
|
|
505
505
|
};
|
|
506
506
|
|
|
507
|
-
//
|
|
507
|
+
// ../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js
|
|
508
508
|
var passive = {
|
|
509
509
|
passive: !0
|
|
510
510
|
};
|
|
@@ -528,7 +528,7 @@ var eventListeners_default = {
|
|
|
528
528
|
data: {}
|
|
529
529
|
};
|
|
530
530
|
|
|
531
|
-
//
|
|
531
|
+
// ../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js
|
|
532
532
|
var hash = {
|
|
533
533
|
left: "right",
|
|
534
534
|
right: "left",
|
|
@@ -541,7 +541,7 @@ function getOppositePlacement(placement) {
|
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
543
|
|
|
544
|
-
//
|
|
544
|
+
// ../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js
|
|
545
545
|
var hash2 = {
|
|
546
546
|
start: "end",
|
|
547
547
|
end: "start"
|
|
@@ -552,7 +552,7 @@ function getOppositeVariationPlacement(placement) {
|
|
|
552
552
|
});
|
|
553
553
|
}
|
|
554
554
|
|
|
555
|
-
//
|
|
555
|
+
// ../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js
|
|
556
556
|
function getWindowScroll(node) {
|
|
557
557
|
var win = getWindow(node), scrollLeft = win.pageXOffset, scrollTop = win.pageYOffset;
|
|
558
558
|
return {
|
|
@@ -561,12 +561,12 @@ function getWindowScroll(node) {
|
|
|
561
561
|
};
|
|
562
562
|
}
|
|
563
563
|
|
|
564
|
-
//
|
|
564
|
+
// ../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js
|
|
565
565
|
function getWindowScrollBarX(element) {
|
|
566
566
|
return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
|
|
567
567
|
}
|
|
568
568
|
|
|
569
|
-
//
|
|
569
|
+
// ../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js
|
|
570
570
|
function getViewportRect(element, strategy) {
|
|
571
571
|
var win = getWindow(element), html = getDocumentElement(element), visualViewport = win.visualViewport, width = html.clientWidth, height = html.clientHeight, x = 0, y = 0;
|
|
572
572
|
if (visualViewport) {
|
|
@@ -582,7 +582,7 @@ function getViewportRect(element, strategy) {
|
|
|
582
582
|
};
|
|
583
583
|
}
|
|
584
584
|
|
|
585
|
-
//
|
|
585
|
+
// ../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js
|
|
586
586
|
function getDocumentRect(element) {
|
|
587
587
|
var _element$ownerDocumen, html = getDocumentElement(element), winScroll = getWindowScroll(element), body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body, width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0), height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0), x = -winScroll.scrollLeft + getWindowScrollBarX(element), y = -winScroll.scrollTop;
|
|
588
588
|
return getComputedStyle(body || html).direction === "rtl" && (x += max(html.clientWidth, body ? body.clientWidth : 0) - width), {
|
|
@@ -593,18 +593,18 @@ function getDocumentRect(element) {
|
|
|
593
593
|
};
|
|
594
594
|
}
|
|
595
595
|
|
|
596
|
-
//
|
|
596
|
+
// ../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js
|
|
597
597
|
function isScrollParent(element) {
|
|
598
598
|
var _getComputedStyle = getComputedStyle(element), overflow = _getComputedStyle.overflow, overflowX = _getComputedStyle.overflowX, overflowY = _getComputedStyle.overflowY;
|
|
599
599
|
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
|
600
600
|
}
|
|
601
601
|
|
|
602
|
-
//
|
|
602
|
+
// ../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js
|
|
603
603
|
function getScrollParent(node) {
|
|
604
604
|
return ["html", "body", "#document"].indexOf(getNodeName(node)) >= 0 ? node.ownerDocument.body : isHTMLElement(node) && isScrollParent(node) ? node : getScrollParent(getParentNode(node));
|
|
605
605
|
}
|
|
606
606
|
|
|
607
|
-
//
|
|
607
|
+
// ../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js
|
|
608
608
|
function listScrollParents(element, list) {
|
|
609
609
|
var _element$ownerDocumen;
|
|
610
610
|
list === void 0 && (list = []);
|
|
@@ -615,7 +615,7 @@ function listScrollParents(element, list) {
|
|
|
615
615
|
);
|
|
616
616
|
}
|
|
617
617
|
|
|
618
|
-
//
|
|
618
|
+
// ../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js
|
|
619
619
|
function rectToClientRect(rect) {
|
|
620
620
|
return Object.assign({}, rect, {
|
|
621
621
|
left: rect.x,
|
|
@@ -625,7 +625,7 @@ function rectToClientRect(rect) {
|
|
|
625
625
|
});
|
|
626
626
|
}
|
|
627
627
|
|
|
628
|
-
//
|
|
628
|
+
// ../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js
|
|
629
629
|
function getInnerBoundingClientRect(element, strategy) {
|
|
630
630
|
var rect = getBoundingClientRect(element, !1, strategy === "fixed");
|
|
631
631
|
return rect.top = rect.top + element.clientTop, rect.left = rect.left + element.clientLeft, rect.bottom = rect.top + element.clientHeight, rect.right = rect.left + element.clientWidth, rect.width = element.clientWidth, rect.height = element.clientHeight, rect.x = rect.left, rect.y = rect.top, rect;
|
|
@@ -647,7 +647,7 @@ function getClippingRect(element, boundary, rootBoundary, strategy) {
|
|
|
647
647
|
return clippingRect.width = clippingRect.right - clippingRect.left, clippingRect.height = clippingRect.bottom - clippingRect.top, clippingRect.x = clippingRect.left, clippingRect.y = clippingRect.top, clippingRect;
|
|
648
648
|
}
|
|
649
649
|
|
|
650
|
-
//
|
|
650
|
+
// ../../node_modules/@popperjs/core/lib/utils/computeOffsets.js
|
|
651
651
|
function computeOffsets(_ref) {
|
|
652
652
|
var reference2 = _ref.reference, element = _ref.element, placement = _ref.placement, basePlacement = placement ? getBasePlacement(placement) : null, variation = placement ? getVariation(placement) : null, commonX = reference2.x + reference2.width / 2 - element.width / 2, commonY = reference2.y + reference2.height / 2 - element.height / 2, offsets;
|
|
653
653
|
switch (basePlacement) {
|
|
@@ -697,7 +697,7 @@ function computeOffsets(_ref) {
|
|
|
697
697
|
return offsets;
|
|
698
698
|
}
|
|
699
699
|
|
|
700
|
-
//
|
|
700
|
+
// ../../node_modules/@popperjs/core/lib/utils/detectOverflow.js
|
|
701
701
|
function detectOverflow(state, options) {
|
|
702
702
|
options === void 0 && (options = {});
|
|
703
703
|
var _options = options, _options$placement = _options.placement, placement = _options$placement === void 0 ? state.placement : _options$placement, _options$strategy = _options.strategy, strategy = _options$strategy === void 0 ? state.strategy : _options$strategy, _options$boundary = _options.boundary, boundary = _options$boundary === void 0 ? clippingParents : _options$boundary, _options$rootBoundary = _options.rootBoundary, rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary, _options$elementConte = _options.elementContext, elementContext = _options$elementConte === void 0 ? popper : _options$elementConte, _options$altBoundary = _options.altBoundary, altBoundary = _options$altBoundary === void 0 ? !1 : _options$altBoundary, _options$padding = _options.padding, padding = _options$padding === void 0 ? 0 : _options$padding, paddingObject = mergePaddingObject(typeof padding != "number" ? padding : expandToHashMap(padding, basePlacements)), altContext = elementContext === popper ? reference : popper, popperRect = state.rects.popper, element = state.elements[altBoundary ? altContext : elementContext], clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy), referenceClientRect = getBoundingClientRect(state.elements.reference), popperOffsets2 = computeOffsets({
|
|
@@ -721,7 +721,7 @@ function detectOverflow(state, options) {
|
|
|
721
721
|
return overflowOffsets;
|
|
722
722
|
}
|
|
723
723
|
|
|
724
|
-
//
|
|
724
|
+
// ../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js
|
|
725
725
|
function computeAutoPlacement(state, options) {
|
|
726
726
|
options === void 0 && (options = {});
|
|
727
727
|
var _options = options, placement = _options.placement, boundary = _options.boundary, rootBoundary = _options.rootBoundary, padding = _options.padding, flipVariations = _options.flipVariations, _options$allowedAutoP = _options.allowedAutoPlacements, allowedAutoPlacements = _options$allowedAutoP === void 0 ? placements : _options$allowedAutoP, variation = getVariation(placement), placements2 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function(placement2) {
|
|
@@ -743,7 +743,7 @@ function computeAutoPlacement(state, options) {
|
|
|
743
743
|
});
|
|
744
744
|
}
|
|
745
745
|
|
|
746
|
-
//
|
|
746
|
+
// ../../node_modules/@popperjs/core/lib/modifiers/flip.js
|
|
747
747
|
function getExpandedFallbackPlacements(placement) {
|
|
748
748
|
if (getBasePlacement(placement) === auto)
|
|
749
749
|
return [];
|
|
@@ -809,7 +809,7 @@ var flip_default = {
|
|
|
809
809
|
}
|
|
810
810
|
};
|
|
811
811
|
|
|
812
|
-
//
|
|
812
|
+
// ../../node_modules/@popperjs/core/lib/modifiers/hide.js
|
|
813
813
|
function getSideOffsets(overflow, rect, preventedOffsets) {
|
|
814
814
|
return preventedOffsets === void 0 && (preventedOffsets = {
|
|
815
815
|
x: 0,
|
|
@@ -850,7 +850,7 @@ var hide_default = {
|
|
|
850
850
|
fn: hide
|
|
851
851
|
};
|
|
852
852
|
|
|
853
|
-
//
|
|
853
|
+
// ../../node_modules/@popperjs/core/lib/modifiers/offset.js
|
|
854
854
|
function distanceAndSkiddingToXY(placement, rects, offset2) {
|
|
855
855
|
var basePlacement = getBasePlacement(placement), invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1, _ref = typeof offset2 == "function" ? offset2(Object.assign({}, rects, {
|
|
856
856
|
placement
|
|
@@ -877,7 +877,7 @@ var offset_default = {
|
|
|
877
877
|
fn: offset
|
|
878
878
|
};
|
|
879
879
|
|
|
880
|
-
//
|
|
880
|
+
// ../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js
|
|
881
881
|
function popperOffsets(_ref) {
|
|
882
882
|
var state = _ref.state, name = _ref.name;
|
|
883
883
|
state.modifiersData[name] = computeOffsets({
|
|
@@ -895,12 +895,12 @@ var popperOffsets_default = {
|
|
|
895
895
|
data: {}
|
|
896
896
|
};
|
|
897
897
|
|
|
898
|
-
//
|
|
898
|
+
// ../../node_modules/@popperjs/core/lib/utils/getAltAxis.js
|
|
899
899
|
function getAltAxis(axis) {
|
|
900
900
|
return axis === "x" ? "y" : "x";
|
|
901
901
|
}
|
|
902
902
|
|
|
903
|
-
//
|
|
903
|
+
// ../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js
|
|
904
904
|
function preventOverflow(_ref) {
|
|
905
905
|
var state = _ref.state, options = _ref.options, name = _ref.name, _options$mainAxis = options.mainAxis, checkMainAxis = _options$mainAxis === void 0 ? !0 : _options$mainAxis, _options$altAxis = options.altAxis, checkAltAxis = _options$altAxis === void 0 ? !1 : _options$altAxis, boundary = options.boundary, rootBoundary = options.rootBoundary, altBoundary = options.altBoundary, padding = options.padding, _options$tether = options.tether, tether = _options$tether === void 0 ? !0 : _options$tether, _options$tetherOffset = options.tetherOffset, tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset, overflow = detectOverflow(state, {
|
|
906
906
|
boundary,
|
|
@@ -942,7 +942,7 @@ var preventOverflow_default = {
|
|
|
942
942
|
requiresIfExists: ["offset"]
|
|
943
943
|
};
|
|
944
944
|
|
|
945
|
-
//
|
|
945
|
+
// ../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js
|
|
946
946
|
function getHTMLElementScroll(element) {
|
|
947
947
|
return {
|
|
948
948
|
scrollLeft: element.scrollLeft,
|
|
@@ -950,12 +950,12 @@ function getHTMLElementScroll(element) {
|
|
|
950
950
|
};
|
|
951
951
|
}
|
|
952
952
|
|
|
953
|
-
//
|
|
953
|
+
// ../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js
|
|
954
954
|
function getNodeScroll(node) {
|
|
955
955
|
return node === getWindow(node) || !isHTMLElement(node) ? getWindowScroll(node) : getHTMLElementScroll(node);
|
|
956
956
|
}
|
|
957
957
|
|
|
958
|
-
//
|
|
958
|
+
// ../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js
|
|
959
959
|
function isElementScaled(element) {
|
|
960
960
|
var rect = element.getBoundingClientRect(), scaleX = round(rect.width) / element.offsetWidth || 1, scaleY = round(rect.height) / element.offsetHeight || 1;
|
|
961
961
|
return scaleX !== 1 || scaleY !== 1;
|
|
@@ -978,7 +978,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
|
978
978
|
};
|
|
979
979
|
}
|
|
980
980
|
|
|
981
|
-
//
|
|
981
|
+
// ../../node_modules/@popperjs/core/lib/utils/orderModifiers.js
|
|
982
982
|
function order(modifiers) {
|
|
983
983
|
var map = /* @__PURE__ */ new Map(), visited = /* @__PURE__ */ new Set(), result = [];
|
|
984
984
|
modifiers.forEach(function(modifier) {
|
|
@@ -1007,7 +1007,7 @@ function orderModifiers(modifiers) {
|
|
|
1007
1007
|
}, []);
|
|
1008
1008
|
}
|
|
1009
1009
|
|
|
1010
|
-
//
|
|
1010
|
+
// ../../node_modules/@popperjs/core/lib/utils/debounce.js
|
|
1011
1011
|
function debounce(fn2) {
|
|
1012
1012
|
var pending;
|
|
1013
1013
|
return function() {
|
|
@@ -1019,7 +1019,7 @@ function debounce(fn2) {
|
|
|
1019
1019
|
};
|
|
1020
1020
|
}
|
|
1021
1021
|
|
|
1022
|
-
//
|
|
1022
|
+
// ../../node_modules/@popperjs/core/lib/utils/mergeByName.js
|
|
1023
1023
|
function mergeByName(modifiers) {
|
|
1024
1024
|
var merged = modifiers.reduce(function(merged2, current) {
|
|
1025
1025
|
var existing = merged2[current.name];
|
|
@@ -1033,7 +1033,7 @@ function mergeByName(modifiers) {
|
|
|
1033
1033
|
});
|
|
1034
1034
|
}
|
|
1035
1035
|
|
|
1036
|
-
//
|
|
1036
|
+
// ../../node_modules/@popperjs/core/lib/createPopper.js
|
|
1037
1037
|
var DEFAULT_OPTIONS = {
|
|
1038
1038
|
placement: "bottom",
|
|
1039
1039
|
modifiers: [],
|
|
@@ -1147,17 +1147,17 @@ function popperGenerator(generatorOptions) {
|
|
|
1147
1147
|
}
|
|
1148
1148
|
var createPopper = popperGenerator();
|
|
1149
1149
|
|
|
1150
|
-
//
|
|
1150
|
+
// ../../node_modules/@popperjs/core/lib/popper-lite.js
|
|
1151
1151
|
var defaultModifiers = [eventListeners_default, popperOffsets_default, computeStyles_default, applyStyles_default], createPopper2 = popperGenerator({
|
|
1152
1152
|
defaultModifiers
|
|
1153
1153
|
});
|
|
1154
1154
|
|
|
1155
|
-
//
|
|
1155
|
+
// ../../node_modules/@popperjs/core/lib/popper.js
|
|
1156
1156
|
var defaultModifiers2 = [eventListeners_default, popperOffsets_default, computeStyles_default, applyStyles_default, offset_default, flip_default, preventOverflow_default, arrow_default, hide_default], createPopper3 = popperGenerator({
|
|
1157
1157
|
defaultModifiers: defaultModifiers2
|
|
1158
1158
|
});
|
|
1159
1159
|
|
|
1160
|
-
//
|
|
1160
|
+
// ../../node_modules/react-popper/lib/esm/usePopper.js
|
|
1161
1161
|
var import_react_fast_compare = __toESM(require_react_fast_compare());
|
|
1162
1162
|
var EMPTY_MODIFIERS = [], usePopper = function(referenceElement, popperElement, options) {
|
|
1163
1163
|
options === void 0 && (options = {});
|
|
@@ -1228,11 +1228,11 @@ var EMPTY_MODIFIERS = [], usePopper = function(referenceElement, popperElement,
|
|
|
1228
1228
|
};
|
|
1229
1229
|
};
|
|
1230
1230
|
|
|
1231
|
-
//
|
|
1231
|
+
// ../../node_modules/react-popper/lib/esm/Reference.js
|
|
1232
1232
|
var import_warning = __toESM(require_warning());
|
|
1233
1233
|
import * as React5 from "react";
|
|
1234
1234
|
|
|
1235
|
-
//
|
|
1235
|
+
// ../../node_modules/react-popper-tooltip/dist/esm/react-popper-tooltip.js
|
|
1236
1236
|
function useGetLatest(val) {
|
|
1237
1237
|
var ref = React6.useRef(val);
|
|
1238
1238
|
return ref.current = val, React6.useCallback(function() {
|