@storybook/addon-docs 10.2.0-alpha.1 → 10.2.0-alpha.3
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-ASIRERSW.js → Color-O2RRNL2I.js} +11 -67
- package/dist/_browser-chunks/{chunk-DDRHE7EB.js → chunk-AAVP3AE4.js} +10 -10
- package/dist/_browser-chunks/chunk-FYME3FCW.js +209 -0
- package/dist/_node-chunks/{chunk-3I43UR4Y.js → chunk-2FRRGDVV.js} +10 -10
- package/dist/_node-chunks/{chunk-CBKT5XUX.js → chunk-DSN6PVTO.js} +10 -10
- package/dist/_node-chunks/{chunk-PBPABQD4.js → chunk-VRYIL6LU.js} +6 -6
- package/dist/_node-chunks/{chunk-OBFRARTH.js → chunk-WZTEI6VZ.js} +762 -762
- package/dist/_node-chunks/{mdx-plugin-IWKZADK4.js → mdx-plugin-RIKNY2FZ.js} +24 -24
- package/dist/_node-chunks/{rehype-external-links-VMNWOUNT.js → rehype-external-links-NY6P5R3T.js} +12 -12
- package/dist/_node-chunks/{rehype-slug-JH43HCVQ.js → rehype-slug-6PUKBBBM.js} +13 -13
- package/dist/blocks.d.ts +3 -7
- package/dist/blocks.js +4525 -343
- package/dist/manager.js +1 -1
- package/dist/mdx-loader.js +10 -10
- package/dist/preset.js +11 -11
- package/package.json +4 -8
- package/dist/_browser-chunks/chunk-CYSK6WYR.js +0 -7
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
+
debounce,
|
|
2
3
|
getControlId
|
|
3
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FYME3FCW.js";
|
|
4
5
|
import {
|
|
5
6
|
__commonJS,
|
|
6
7
|
__toESM
|
|
7
8
|
} from "./chunk-A242L54C.js";
|
|
8
9
|
|
|
9
|
-
//
|
|
10
|
+
// ../../../node_modules/color-name/index.js
|
|
10
11
|
var require_color_name = __commonJS({
|
|
11
|
-
"
|
|
12
|
+
"../../../node_modules/color-name/index.js"(exports, module) {
|
|
12
13
|
"use strict";
|
|
13
14
|
module.exports = {
|
|
14
15
|
aliceblue: [240, 248, 255],
|
|
@@ -163,9 +164,9 @@ var require_color_name = __commonJS({
|
|
|
163
164
|
}
|
|
164
165
|
});
|
|
165
166
|
|
|
166
|
-
//
|
|
167
|
+
// ../../../node_modules/color-convert/conversions.js
|
|
167
168
|
var require_conversions = __commonJS({
|
|
168
|
-
"
|
|
169
|
+
"../../../node_modules/color-convert/conversions.js"(exports, module) {
|
|
169
170
|
var cssKeywords = require_color_name(), reverseKeywords = {};
|
|
170
171
|
for (let key of Object.keys(cssKeywords))
|
|
171
172
|
reverseKeywords[cssKeywords[key]] = key;
|
|
@@ -482,9 +483,9 @@ var require_conversions = __commonJS({
|
|
|
482
483
|
}
|
|
483
484
|
});
|
|
484
485
|
|
|
485
|
-
//
|
|
486
|
+
// ../../../node_modules/color-convert/route.js
|
|
486
487
|
var require_route = __commonJS({
|
|
487
|
-
"
|
|
488
|
+
"../../../node_modules/color-convert/route.js"(exports, module) {
|
|
488
489
|
var conversions = require_conversions();
|
|
489
490
|
function buildGraph() {
|
|
490
491
|
let graph = {}, models = Object.keys(conversions);
|
|
@@ -530,9 +531,9 @@ var require_route = __commonJS({
|
|
|
530
531
|
}
|
|
531
532
|
});
|
|
532
533
|
|
|
533
|
-
//
|
|
534
|
+
// ../../../node_modules/color-convert/index.js
|
|
534
535
|
var require_color_convert = __commonJS({
|
|
535
|
-
"
|
|
536
|
+
"../../../node_modules/color-convert/index.js"(exports, module) {
|
|
536
537
|
var conversions = require_conversions(), route = require_route(), convert2 = {}, models = Object.keys(conversions);
|
|
537
538
|
function wrapRaw(fn) {
|
|
538
539
|
let wrappedFn = function(...args) {
|
|
@@ -573,64 +574,7 @@ import React, { useCallback, useEffect, useMemo, useState } from "react";
|
|
|
573
574
|
import { Button, Form, PopoverProvider } from "storybook/internal/components";
|
|
574
575
|
import { MarkupIcon } from "@storybook/icons";
|
|
575
576
|
|
|
576
|
-
//
|
|
577
|
-
function debounce(func, debounceMs, { signal, edges } = {}) {
|
|
578
|
-
let pendingThis, pendingArgs = null, leading = edges != null && edges.includes("leading"), trailing = edges == null || edges.includes("trailing"), invoke = () => {
|
|
579
|
-
pendingArgs !== null && (func.apply(pendingThis, pendingArgs), pendingThis = void 0, pendingArgs = null);
|
|
580
|
-
}, onTimerEnd = () => {
|
|
581
|
-
trailing && invoke(), cancel();
|
|
582
|
-
}, timeoutId = null, schedule = () => {
|
|
583
|
-
timeoutId != null && clearTimeout(timeoutId), timeoutId = setTimeout(() => {
|
|
584
|
-
timeoutId = null, onTimerEnd();
|
|
585
|
-
}, debounceMs);
|
|
586
|
-
}, cancelTimer = () => {
|
|
587
|
-
timeoutId !== null && (clearTimeout(timeoutId), timeoutId = null);
|
|
588
|
-
}, cancel = () => {
|
|
589
|
-
cancelTimer(), pendingThis = void 0, pendingArgs = null;
|
|
590
|
-
}, flush = () => {
|
|
591
|
-
invoke();
|
|
592
|
-
}, debounced = function(...args) {
|
|
593
|
-
if (signal?.aborted)
|
|
594
|
-
return;
|
|
595
|
-
pendingThis = this, pendingArgs = args;
|
|
596
|
-
let isFirstCall = timeoutId == null;
|
|
597
|
-
schedule(), leading && isFirstCall && invoke();
|
|
598
|
-
};
|
|
599
|
-
return debounced.schedule = schedule, debounced.cancel = cancel, debounced.flush = flush, signal?.addEventListener("abort", cancel, { once: !0 }), debounced;
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
// ../../node_modules/es-toolkit/dist/function/partial.mjs
|
|
603
|
-
function partial(func, ...partialArgs) {
|
|
604
|
-
return partialImpl(func, placeholderSymbol, ...partialArgs);
|
|
605
|
-
}
|
|
606
|
-
function partialImpl(func, placeholder, ...partialArgs) {
|
|
607
|
-
let partialed = function(...providedArgs) {
|
|
608
|
-
let providedArgsIndex = 0, substitutedArgs = partialArgs.slice().map((arg) => arg === placeholder ? providedArgs[providedArgsIndex++] : arg), remainingArgs = providedArgs.slice(providedArgsIndex);
|
|
609
|
-
return func.apply(this, substitutedArgs.concat(remainingArgs));
|
|
610
|
-
};
|
|
611
|
-
return func.prototype && (partialed.prototype = Object.create(func.prototype)), partialed;
|
|
612
|
-
}
|
|
613
|
-
var placeholderSymbol = Symbol("partial.placeholder");
|
|
614
|
-
partial.placeholder = placeholderSymbol;
|
|
615
|
-
|
|
616
|
-
// ../../node_modules/es-toolkit/dist/function/partialRight.mjs
|
|
617
|
-
function partialRight(func, ...partialArgs) {
|
|
618
|
-
return partialRightImpl(func, placeholderSymbol2, ...partialArgs);
|
|
619
|
-
}
|
|
620
|
-
function partialRightImpl(func, placeholder, ...partialArgs) {
|
|
621
|
-
let partialedRight = function(...providedArgs) {
|
|
622
|
-
let placeholderLength = partialArgs.filter((arg) => arg === placeholder).length, rangeLength = Math.max(providedArgs.length - placeholderLength, 0), remainingArgs = providedArgs.slice(0, rangeLength), providedArgsIndex = rangeLength, substitutedArgs = partialArgs.slice().map((arg) => arg === placeholder ? providedArgs[providedArgsIndex++] : arg);
|
|
623
|
-
return func.apply(this, remainingArgs.concat(substitutedArgs));
|
|
624
|
-
};
|
|
625
|
-
return func.prototype && (partialedRight.prototype = Object.create(func.prototype)), partialedRight;
|
|
626
|
-
}
|
|
627
|
-
var placeholderSymbol2 = Symbol("partialRight.placeholder");
|
|
628
|
-
partialRight.placeholder = placeholderSymbol2;
|
|
629
|
-
|
|
630
|
-
// ../../node_modules/es-toolkit/dist/function/retry.mjs
|
|
631
|
-
var DEFAULT_RETRIES = Number.POSITIVE_INFINITY;
|
|
632
|
-
|
|
633
|
-
// ../../node_modules/react-colorful/dist/index.mjs
|
|
577
|
+
// ../../../node_modules/react-colorful/dist/index.mjs
|
|
634
578
|
import e, { useRef as r, useMemo as t, useEffect as n, useState as o, useCallback as a, useLayoutEffect as l } from "react";
|
|
635
579
|
function u() {
|
|
636
580
|
return (u = Object.assign || function(e2) {
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import React from "react";
|
|
15
15
|
import { withReset } from "storybook/internal/components";
|
|
16
16
|
|
|
17
|
-
//
|
|
17
|
+
// ../../../node_modules/@babel/runtime/helpers/esm/extends.js
|
|
18
18
|
function _extends() {
|
|
19
19
|
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
20
20
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -25,32 +25,32 @@ function _extends() {
|
|
|
25
25
|
}, _extends.apply(null, arguments);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
//
|
|
28
|
+
// ../../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
29
29
|
function _assertThisInitialized(e) {
|
|
30
30
|
if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
31
31
|
return e;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
//
|
|
34
|
+
// ../../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
35
35
|
function _setPrototypeOf(t, e) {
|
|
36
36
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
|
|
37
37
|
return t2.__proto__ = e2, t2;
|
|
38
38
|
}, _setPrototypeOf(t, e);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
//
|
|
41
|
+
// ../../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
42
42
|
function _inheritsLoose(t, o) {
|
|
43
43
|
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
//
|
|
46
|
+
// ../../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
47
47
|
function _getPrototypeOf(t) {
|
|
48
48
|
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
|
|
49
49
|
return t2.__proto__ || Object.getPrototypeOf(t2);
|
|
50
50
|
}, _getPrototypeOf(t);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
//
|
|
53
|
+
// ../../../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
|
|
54
54
|
function _isNativeFunction(t) {
|
|
55
55
|
try {
|
|
56
56
|
return Function.toString.call(t).indexOf("[native code]") !== -1;
|
|
@@ -59,7 +59,7 @@ function _isNativeFunction(t) {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
//
|
|
62
|
+
// ../../../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
63
63
|
function _isNativeReflectConstruct() {
|
|
64
64
|
try {
|
|
65
65
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
@@ -71,7 +71,7 @@ function _isNativeReflectConstruct() {
|
|
|
71
71
|
})();
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
//
|
|
74
|
+
// ../../../node_modules/@babel/runtime/helpers/esm/construct.js
|
|
75
75
|
function _construct(t, e, r) {
|
|
76
76
|
if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
|
|
77
77
|
var o = [null];
|
|
@@ -80,7 +80,7 @@ function _construct(t, e, r) {
|
|
|
80
80
|
return r && _setPrototypeOf(p, r.prototype), p;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
//
|
|
83
|
+
// ../../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
|
|
84
84
|
function _wrapNativeSuper(t) {
|
|
85
85
|
var r = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
86
86
|
return _wrapNativeSuper = function(t2) {
|
|
@@ -104,7 +104,7 @@ function _wrapNativeSuper(t) {
|
|
|
104
104
|
}, _wrapNativeSuper(t);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
//
|
|
107
|
+
// ../../../node_modules/polished/dist/polished.esm.js
|
|
108
108
|
var ERRORS = {
|
|
109
109
|
1: `Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).
|
|
110
110
|
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
// ../../../node_modules/es-toolkit/dist/function/debounce.mjs
|
|
2
|
+
function debounce(func, debounceMs, { signal, edges } = {}) {
|
|
3
|
+
let pendingThis, pendingArgs = null, leading = edges != null && edges.includes("leading"), trailing = edges == null || edges.includes("trailing"), invoke = () => {
|
|
4
|
+
pendingArgs !== null && (func.apply(pendingThis, pendingArgs), pendingThis = void 0, pendingArgs = null);
|
|
5
|
+
}, onTimerEnd = () => {
|
|
6
|
+
trailing && invoke(), cancel();
|
|
7
|
+
}, timeoutId = null, schedule = () => {
|
|
8
|
+
timeoutId != null && clearTimeout(timeoutId), timeoutId = setTimeout(() => {
|
|
9
|
+
timeoutId = null, onTimerEnd();
|
|
10
|
+
}, debounceMs);
|
|
11
|
+
}, cancelTimer = () => {
|
|
12
|
+
timeoutId !== null && (clearTimeout(timeoutId), timeoutId = null);
|
|
13
|
+
}, cancel = () => {
|
|
14
|
+
cancelTimer(), pendingThis = void 0, pendingArgs = null;
|
|
15
|
+
}, flush = () => {
|
|
16
|
+
cancelTimer(), invoke();
|
|
17
|
+
}, debounced = function(...args) {
|
|
18
|
+
if (signal?.aborted)
|
|
19
|
+
return;
|
|
20
|
+
pendingThis = this, pendingArgs = args;
|
|
21
|
+
let isFirstCall = timeoutId == null;
|
|
22
|
+
schedule(), leading && isFirstCall && invoke();
|
|
23
|
+
};
|
|
24
|
+
return debounced.schedule = schedule, debounced.cancel = cancel, debounced.flush = flush, signal?.addEventListener("abort", cancel, { once: !0 }), debounced;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// src/blocks/controls/helpers.ts
|
|
28
|
+
var getControlId = (value) => `control-${value.replace(/\s+/g, "-")}`, getControlSetterButtonId = (value) => `set-${value.replace(/\s+/g, "-")}`;
|
|
29
|
+
|
|
30
|
+
// ../../../node_modules/es-toolkit/dist/function/partial.mjs
|
|
31
|
+
function partial(func, ...partialArgs) {
|
|
32
|
+
return partialImpl(func, placeholderSymbol, ...partialArgs);
|
|
33
|
+
}
|
|
34
|
+
function partialImpl(func, placeholder, ...partialArgs) {
|
|
35
|
+
let partialed = function(...providedArgs) {
|
|
36
|
+
let providedArgsIndex = 0, substitutedArgs = partialArgs.slice().map((arg) => arg === placeholder ? providedArgs[providedArgsIndex++] : arg), remainingArgs = providedArgs.slice(providedArgsIndex);
|
|
37
|
+
return func.apply(this, substitutedArgs.concat(remainingArgs));
|
|
38
|
+
};
|
|
39
|
+
return func.prototype && (partialed.prototype = Object.create(func.prototype)), partialed;
|
|
40
|
+
}
|
|
41
|
+
var placeholderSymbol = Symbol("partial.placeholder");
|
|
42
|
+
partial.placeholder = placeholderSymbol;
|
|
43
|
+
|
|
44
|
+
// ../../../node_modules/es-toolkit/dist/function/partialRight.mjs
|
|
45
|
+
function partialRight(func, ...partialArgs) {
|
|
46
|
+
return partialRightImpl(func, placeholderSymbol2, ...partialArgs);
|
|
47
|
+
}
|
|
48
|
+
function partialRightImpl(func, placeholder, ...partialArgs) {
|
|
49
|
+
let partialedRight = function(...providedArgs) {
|
|
50
|
+
let placeholderLength = partialArgs.filter((arg) => arg === placeholder).length, rangeLength = Math.max(providedArgs.length - placeholderLength, 0), remainingArgs = providedArgs.slice(0, rangeLength), providedArgsIndex = rangeLength, substitutedArgs = partialArgs.slice().map((arg) => arg === placeholder ? providedArgs[providedArgsIndex++] : arg);
|
|
51
|
+
return func.apply(this, remainingArgs.concat(substitutedArgs));
|
|
52
|
+
};
|
|
53
|
+
return func.prototype && (partialedRight.prototype = Object.create(func.prototype)), partialedRight;
|
|
54
|
+
}
|
|
55
|
+
var placeholderSymbol2 = Symbol("partialRight.placeholder");
|
|
56
|
+
partialRight.placeholder = placeholderSymbol2;
|
|
57
|
+
|
|
58
|
+
// ../../../node_modules/es-toolkit/dist/function/asyncNoop.mjs
|
|
59
|
+
async function asyncNoop() {
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// ../../../node_modules/es-toolkit/dist/function/identity.mjs
|
|
63
|
+
function identity(x) {
|
|
64
|
+
return x;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// ../../../node_modules/es-toolkit/dist/function/memoize.mjs
|
|
68
|
+
function memoize(fn, options = {}) {
|
|
69
|
+
let { cache = /* @__PURE__ */ new Map(), getCacheKey } = options, memoizedFn = function(arg) {
|
|
70
|
+
let key = getCacheKey ? getCacheKey(arg) : arg;
|
|
71
|
+
if (cache.has(key))
|
|
72
|
+
return cache.get(key);
|
|
73
|
+
let result = fn.call(this, arg);
|
|
74
|
+
return cache.set(key, result), result;
|
|
75
|
+
};
|
|
76
|
+
return memoizedFn.cache = cache, memoizedFn;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// ../../../node_modules/es-toolkit/dist/function/noop.mjs
|
|
80
|
+
function noop() {
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// ../../../node_modules/es-toolkit/dist/function/once.mjs
|
|
84
|
+
function once(func) {
|
|
85
|
+
let called = !1, cache;
|
|
86
|
+
return function(...args) {
|
|
87
|
+
return called || (called = !0, cache = func(...args)), cache;
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// ../../../node_modules/es-toolkit/dist/error/AbortError.mjs
|
|
92
|
+
var AbortError = class extends Error {
|
|
93
|
+
constructor(message = "The operation was aborted") {
|
|
94
|
+
super(message), this.name = "AbortError";
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
// ../../../node_modules/es-toolkit/dist/promise/delay.mjs
|
|
99
|
+
function delay(ms, { signal } = {}) {
|
|
100
|
+
return new Promise((resolve, reject) => {
|
|
101
|
+
let abortError = () => {
|
|
102
|
+
reject(new AbortError());
|
|
103
|
+
}, abortHandler = () => {
|
|
104
|
+
clearTimeout(timeoutId), abortError();
|
|
105
|
+
};
|
|
106
|
+
if (signal?.aborted)
|
|
107
|
+
return abortError();
|
|
108
|
+
let timeoutId = setTimeout(() => {
|
|
109
|
+
signal?.removeEventListener("abort", abortHandler), resolve();
|
|
110
|
+
}, ms);
|
|
111
|
+
signal?.addEventListener("abort", abortHandler, { once: !0 });
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// ../../../node_modules/es-toolkit/dist/function/retry.mjs
|
|
116
|
+
var DEFAULT_DELAY = 0, DEFAULT_RETRIES = Number.POSITIVE_INFINITY;
|
|
117
|
+
async function retry(func, _options) {
|
|
118
|
+
let delay$1, retries, signal;
|
|
119
|
+
typeof _options == "number" ? (delay$1 = DEFAULT_DELAY, retries = _options, signal = void 0) : (delay$1 = _options?.delay ?? DEFAULT_DELAY, retries = _options?.retries ?? DEFAULT_RETRIES, signal = _options?.signal);
|
|
120
|
+
let error;
|
|
121
|
+
for (let attempts = 0; attempts < retries; attempts++) {
|
|
122
|
+
if (signal?.aborted)
|
|
123
|
+
throw error ?? new Error("The retry operation was aborted due to an abort signal.");
|
|
124
|
+
try {
|
|
125
|
+
return await func();
|
|
126
|
+
} catch (err) {
|
|
127
|
+
error = err;
|
|
128
|
+
let currentDelay = typeof delay$1 == "function" ? delay$1(attempts) : delay$1;
|
|
129
|
+
await delay(currentDelay);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
throw error;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// ../../../node_modules/es-toolkit/dist/function/ary.mjs
|
|
136
|
+
function ary(func, n) {
|
|
137
|
+
return function(...args) {
|
|
138
|
+
return func.apply(this, args.slice(0, n));
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// ../../../node_modules/es-toolkit/dist/function/unary.mjs
|
|
143
|
+
function unary(func) {
|
|
144
|
+
return ary(func, 1);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// ../../../node_modules/es-toolkit/dist/function/negate.mjs
|
|
148
|
+
function negate(func) {
|
|
149
|
+
return ((...args) => !func(...args));
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// ../../../node_modules/es-toolkit/dist/function/flow.mjs
|
|
153
|
+
function flow(...funcs) {
|
|
154
|
+
return function(...args) {
|
|
155
|
+
let result = funcs.length ? funcs[0].apply(this, args) : args[0];
|
|
156
|
+
for (let i = 1; i < funcs.length; i++)
|
|
157
|
+
result = funcs[i].call(this, result);
|
|
158
|
+
return result;
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// ../../../node_modules/es-toolkit/dist/function/flowRight.mjs
|
|
163
|
+
function flowRight(...funcs) {
|
|
164
|
+
return flow(...funcs.reverse());
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// ../../../node_modules/es-toolkit/dist/function/rest.mjs
|
|
168
|
+
function rest(func, startIndex = func.length - 1) {
|
|
169
|
+
return function(...args) {
|
|
170
|
+
let rest2 = args.slice(startIndex), params = args.slice(0, startIndex);
|
|
171
|
+
for (; params.length < startIndex; )
|
|
172
|
+
params.push(void 0);
|
|
173
|
+
return func.apply(this, [...params, rest2]);
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// ../../../node_modules/es-toolkit/dist/function/after.mjs
|
|
178
|
+
function after(n, func) {
|
|
179
|
+
if (!Number.isInteger(n) || n < 0)
|
|
180
|
+
throw new Error("n must be a non-negative integer.");
|
|
181
|
+
let counter = 0;
|
|
182
|
+
return (...args) => {
|
|
183
|
+
if (++counter >= n)
|
|
184
|
+
return func(...args);
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export {
|
|
189
|
+
partialImpl,
|
|
190
|
+
partialRightImpl,
|
|
191
|
+
AbortError,
|
|
192
|
+
asyncNoop,
|
|
193
|
+
identity,
|
|
194
|
+
memoize,
|
|
195
|
+
noop,
|
|
196
|
+
once,
|
|
197
|
+
delay,
|
|
198
|
+
retry,
|
|
199
|
+
ary,
|
|
200
|
+
unary,
|
|
201
|
+
negate,
|
|
202
|
+
debounce,
|
|
203
|
+
flow,
|
|
204
|
+
flowRight,
|
|
205
|
+
rest,
|
|
206
|
+
after,
|
|
207
|
+
getControlId,
|
|
208
|
+
getControlSetterButtonId
|
|
209
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_l1xfiodo17e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_l1xfiodo17e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_l1xfiodo17e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_l1xfiodo17e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_l1xfiodo17e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_l1xfiodo17e.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
|
|
13
|
-
//
|
|
13
|
+
// ../../../node_modules/@ungap/structured-clone/esm/deserialize.js
|
|
14
14
|
var env = typeof self == "object" ? self : globalThis, deserializer = ($, _) => {
|
|
15
15
|
let as = (out, index) => ($.set(index, out), out), unpair = (index) => {
|
|
16
16
|
if ($.has(index))
|
|
@@ -70,7 +70,7 @@ var env = typeof self == "object" ? self : globalThis, deserializer = ($, _) =>
|
|
|
70
70
|
return unpair;
|
|
71
71
|
}, deserialize = (serialized) => deserializer(/* @__PURE__ */ new Map(), serialized)(0);
|
|
72
72
|
|
|
73
|
-
//
|
|
73
|
+
// ../../../node_modules/@ungap/structured-clone/esm/serialize.js
|
|
74
74
|
var EMPTY = "", { toString } = {}, { keys } = Object, typeOf = (value) => {
|
|
75
75
|
let type = typeof value;
|
|
76
76
|
if (type !== "object" || !value)
|
|
@@ -174,13 +174,13 @@ var EMPTY = "", { toString } = {}, { keys } = Object, typeOf = (value) => {
|
|
|
174
174
|
return serializer(!(json || lossy), !!json, /* @__PURE__ */ new Map(), _)(value), _;
|
|
175
175
|
};
|
|
176
176
|
|
|
177
|
-
//
|
|
177
|
+
// ../../../node_modules/@ungap/structured-clone/esm/index.js
|
|
178
178
|
var esm_default = typeof structuredClone == "function" ? (
|
|
179
179
|
/* c8 ignore start */
|
|
180
180
|
(any, options) => options && ("json" in options || "lossy" in options) ? deserialize(serialize(any, options)) : structuredClone(any)
|
|
181
181
|
) : (any, options) => deserialize(serialize(any, options));
|
|
182
182
|
|
|
183
|
-
//
|
|
183
|
+
// ../../../node_modules/space-separated-tokens/index.js
|
|
184
184
|
function parse(value) {
|
|
185
185
|
let input = String(value || "").trim();
|
|
186
186
|
return input ? input.split(/[ \t\n\r\f]+/g) : [];
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_l1xfiodo17e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_l1xfiodo17e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_l1xfiodo17e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_l1xfiodo17e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_l1xfiodo17e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_l1xfiodo17e.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
|
|
13
|
-
//
|
|
13
|
+
// ../../../node_modules/unist-util-is/lib/index.js
|
|
14
14
|
var convert = (
|
|
15
15
|
// Note: overloads in JSDoc can’t yet use different `@template`s.
|
|
16
16
|
/**
|
|
@@ -98,12 +98,12 @@ function looksLikeANode(value) {
|
|
|
98
98
|
return value !== null && typeof value == "object" && "type" in value;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
//
|
|
101
|
+
// ../../../node_modules/unist-util-visit-parents/lib/color.node.js
|
|
102
102
|
function color(d) {
|
|
103
103
|
return "\x1B[33m" + d + "\x1B[39m";
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
//
|
|
106
|
+
// ../../../node_modules/unist-util-visit-parents/lib/index.js
|
|
107
107
|
var empty = [], CONTINUE = !0, EXIT = !1, SKIP = "skip";
|
|
108
108
|
function visitParents(tree, test, visitor, reverse) {
|
|
109
109
|
let check;
|
|
@@ -153,7 +153,7 @@ function toResult(value) {
|
|
|
153
153
|
return Array.isArray(value) ? value : typeof value == "number" ? [CONTINUE, value] : value == null ? empty : [value];
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
//
|
|
156
|
+
// ../../../node_modules/unist-util-visit/lib/index.js
|
|
157
157
|
function visit(tree, testOrVisitor, visitorOrReverse, maybeReverse) {
|
|
158
158
|
let reverse, test, visitor;
|
|
159
159
|
typeof testOrVisitor == "function" && typeof visitorOrReverse != "function" ? (test = void 0, visitor = testOrVisitor, reverse = visitorOrReverse) : (test = testOrVisitor, visitor = visitorOrReverse, reverse = maybeReverse), visitParents(tree, test, overload, reverse);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_l1xfiodo17e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_l1xfiodo17e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_l1xfiodo17e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_l1xfiodo17e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_l1xfiodo17e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_l1xfiodo17e.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|