@storybook/addon-docs 10.2.0-alpha.1 → 10.2.0-alpha.10

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.
@@ -4,11 +4,11 @@ import {
4
4
  import {
5
5
  __commonJS,
6
6
  __toESM
7
- } from "./chunk-A242L54C.js";
7
+ } from "./chunk-SL3VIQZ3.js";
8
8
 
9
- // ../../node_modules/color-name/index.js
9
+ // ../../../node_modules/color-name/index.js
10
10
  var require_color_name = __commonJS({
11
- "../../node_modules/color-name/index.js"(exports, module) {
11
+ "../../../node_modules/color-name/index.js"(exports, module) {
12
12
  "use strict";
13
13
  module.exports = {
14
14
  aliceblue: [240, 248, 255],
@@ -163,9 +163,9 @@ var require_color_name = __commonJS({
163
163
  }
164
164
  });
165
165
 
166
- // ../../node_modules/color-convert/conversions.js
166
+ // ../../../node_modules/color-convert/conversions.js
167
167
  var require_conversions = __commonJS({
168
- "../../node_modules/color-convert/conversions.js"(exports, module) {
168
+ "../../../node_modules/color-convert/conversions.js"(exports, module) {
169
169
  var cssKeywords = require_color_name(), reverseKeywords = {};
170
170
  for (let key of Object.keys(cssKeywords))
171
171
  reverseKeywords[cssKeywords[key]] = key;
@@ -482,9 +482,9 @@ var require_conversions = __commonJS({
482
482
  }
483
483
  });
484
484
 
485
- // ../../node_modules/color-convert/route.js
485
+ // ../../../node_modules/color-convert/route.js
486
486
  var require_route = __commonJS({
487
- "../../node_modules/color-convert/route.js"(exports, module) {
487
+ "../../../node_modules/color-convert/route.js"(exports, module) {
488
488
  var conversions = require_conversions();
489
489
  function buildGraph() {
490
490
  let graph = {}, models = Object.keys(conversions);
@@ -530,9 +530,9 @@ var require_route = __commonJS({
530
530
  }
531
531
  });
532
532
 
533
- // ../../node_modules/color-convert/index.js
533
+ // ../../../node_modules/color-convert/index.js
534
534
  var require_color_convert = __commonJS({
535
- "../../node_modules/color-convert/index.js"(exports, module) {
535
+ "../../../node_modules/color-convert/index.js"(exports, module) {
536
536
  var conversions = require_conversions(), route = require_route(), convert2 = {}, models = Object.keys(conversions);
537
537
  function wrapRaw(fn) {
538
538
  let wrappedFn = function(...args) {
@@ -573,7 +573,7 @@ import React, { useCallback, useEffect, useMemo, useState } from "react";
573
573
  import { Button, Form, PopoverProvider } from "storybook/internal/components";
574
574
  import { MarkupIcon } from "@storybook/icons";
575
575
 
576
- // ../../node_modules/es-toolkit/dist/function/debounce.mjs
576
+ // ../../../node_modules/es-toolkit/dist/function/debounce.mjs
577
577
  function debounce(func, debounceMs, { signal, edges } = {}) {
578
578
  let pendingThis, pendingArgs = null, leading = edges != null && edges.includes("leading"), trailing = edges == null || edges.includes("trailing"), invoke = () => {
579
579
  pendingArgs !== null && (func.apply(pendingThis, pendingArgs), pendingThis = void 0, pendingArgs = null);
@@ -599,7 +599,7 @@ function debounce(func, debounceMs, { signal, edges } = {}) {
599
599
  return debounced.schedule = schedule, debounced.cancel = cancel, debounced.flush = flush, signal?.addEventListener("abort", cancel, { once: !0 }), debounced;
600
600
  }
601
601
 
602
- // ../../node_modules/es-toolkit/dist/function/partial.mjs
602
+ // ../../../node_modules/es-toolkit/dist/function/partial.mjs
603
603
  function partial(func, ...partialArgs) {
604
604
  return partialImpl(func, placeholderSymbol, ...partialArgs);
605
605
  }
@@ -613,7 +613,7 @@ function partialImpl(func, placeholder, ...partialArgs) {
613
613
  var placeholderSymbol = Symbol("partial.placeholder");
614
614
  partial.placeholder = placeholderSymbol;
615
615
 
616
- // ../../node_modules/es-toolkit/dist/function/partialRight.mjs
616
+ // ../../../node_modules/es-toolkit/dist/function/partialRight.mjs
617
617
  function partialRight(func, ...partialArgs) {
618
618
  return partialRightImpl(func, placeholderSymbol2, ...partialArgs);
619
619
  }
@@ -627,10 +627,10 @@ function partialRightImpl(func, placeholder, ...partialArgs) {
627
627
  var placeholderSymbol2 = Symbol("partialRight.placeholder");
628
628
  partialRight.placeholder = placeholderSymbol2;
629
629
 
630
- // ../../node_modules/es-toolkit/dist/function/retry.mjs
630
+ // ../../../node_modules/es-toolkit/dist/function/retry.mjs
631
631
  var DEFAULT_RETRIES = Number.POSITIVE_INFINITY;
632
632
 
633
- // ../../node_modules/react-colorful/dist/index.mjs
633
+ // ../../../node_modules/react-colorful/dist/index.mjs
634
634
  import e, { useRef as r, useMemo as t, useEffect as n, useState as o, useCallback as a, useLayoutEffect as l } from "react";
635
635
  function u() {
636
636
  return (u = Object.assign || function(e2) {
@@ -2,7 +2,7 @@ import {
2
2
  DocsRenderer,
3
3
  defaultComponents
4
4
  } from "./chunk-OATZR77O.js";
5
- import "./chunk-A242L54C.js";
5
+ import "./chunk-SL3VIQZ3.js";
6
6
  export {
7
7
  DocsRenderer,
8
8
  defaultComponents
@@ -14,7 +14,7 @@ import {
14
14
  import React from "react";
15
15
  import { withReset } from "storybook/internal/components";
16
16
 
17
- // ../../node_modules/@babel/runtime/helpers/esm/extends.js
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
- // ../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
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
- // ../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
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
- // ../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
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
- // ../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
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
- // ../../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
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
- // ../../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
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
- // ../../node_modules/@babel/runtime/helpers/esm/construct.js
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
- // ../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
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
- // ../../node_modules/polished/dist/polished.esm.js
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
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./chunk-A242L54C.js";
3
+ } from "./chunk-SL3VIQZ3.js";
4
4
 
5
5
  // src/preview.ts
6
6
  var preview_exports = {};
@@ -16,7 +16,7 @@ var excludeTags = Object.entries(globalThis.TAGS_OPTIONS ?? {}).reduce(
16
16
  ), parameters = {
17
17
  docs: {
18
18
  renderer: async () => {
19
- let { DocsRenderer } = await import("./DocsRenderer-GHJI37HO.js");
19
+ let { DocsRenderer } = await import("./DocsRenderer-LL677BLK.js");
20
20
  return new DocsRenderer();
21
21
  },
22
22
  stories: {
@@ -3,12 +3,6 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __require = /* @__PURE__ */ ((x) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(x, {
7
- get: (a, b) => (typeof require < "u" ? require : a)[b]
8
- }) : x)(function(x) {
9
- if (typeof require < "u") return require.apply(this, arguments);
10
- throw Error('Dynamic require of "' + x + '" is not supported');
11
- });
12
6
  var __commonJS = (cb, mod) => function() {
13
7
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
14
8
  };
@@ -31,7 +25,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
31
25
  ));
32
26
 
33
27
  export {
34
- __require,
35
28
  __commonJS,
36
29
  __export,
37
30
  __toESM
@@ -1,16 +1,16 @@
1
- import CJS_COMPAT_NODE_URL_wd9rpacki8 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_wd9rpacki8 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_wd9rpacki8 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_1w2xlnkxb79 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_1w2xlnkxb79 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_1w2xlnkxb79 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_wd9rpacki8.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_wd9rpacki8.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_wd9rpacki8.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_1w2xlnkxb79.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_1w2xlnkxb79.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_1w2xlnkxb79.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
- // ../../node_modules/unist-util-is/lib/index.js
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
- // ../../node_modules/unist-util-visit-parents/lib/color.node.js
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
- // ../../node_modules/unist-util-visit-parents/lib/index.js
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
- // ../../node_modules/unist-util-visit/lib/index.js
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);