@storybook/addon-docs 10.2.0-alpha.0 → 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.
package/dist/blocks.js CHANGED
@@ -10,140 +10,8 @@ import {
10
10
  curriedOpacify$1,
11
11
  curriedTransparentize$1,
12
12
  rgba
13
- } from "./_browser-chunks/chunk-DDRHE7EB.js";
14
- import {
15
- __commonJS,
16
- __require,
17
- __toESM
18
- } from "./_browser-chunks/chunk-A242L54C.js";
19
-
20
- // ../../node_modules/memoizerific/memoizerific.js
21
- var require_memoizerific = __commonJS({
22
- "../../node_modules/memoizerific/memoizerific.js"(exports, module) {
23
- (function(f2) {
24
- if (typeof exports == "object" && typeof module < "u")
25
- module.exports = f2();
26
- else if (typeof define == "function" && define.amd)
27
- define([], f2);
28
- else {
29
- var g2;
30
- typeof window < "u" ? g2 = window : typeof global < "u" ? g2 = global : typeof self < "u" ? g2 = self : g2 = this, g2.memoizerific = f2();
31
- }
32
- })(function() {
33
- var define2, module2, exports2;
34
- return (function e2(t, n2, r2) {
35
- function s2(o3, u2) {
36
- if (!n2[o3]) {
37
- if (!t[o3]) {
38
- var a2 = typeof __require == "function" && __require;
39
- if (!u2 && a2) return a2(o3, !0);
40
- if (i2) return i2(o3, !0);
41
- var f2 = new Error("Cannot find module '" + o3 + "'");
42
- throw f2.code = "MODULE_NOT_FOUND", f2;
43
- }
44
- var l2 = n2[o3] = { exports: {} };
45
- t[o3][0].call(l2.exports, function(e3) {
46
- var n3 = t[o3][1][e3];
47
- return s2(n3 || e3);
48
- }, l2, l2.exports, e2, t, n2, r2);
49
- }
50
- return n2[o3].exports;
51
- }
52
- for (var i2 = typeof __require == "function" && __require, o2 = 0; o2 < r2.length; o2++) s2(r2[o2]);
53
- return s2;
54
- })({ 1: [function(_dereq_, module3, exports3) {
55
- module3.exports = function(forceSimilar) {
56
- if (typeof Map != "function" || forceSimilar) {
57
- var Similar = _dereq_("./similar");
58
- return new Similar();
59
- } else
60
- return /* @__PURE__ */ new Map();
61
- };
62
- }, { "./similar": 2 }], 2: [function(_dereq_, module3, exports3) {
63
- function Similar() {
64
- return this.list = [], this.lastItem = void 0, this.size = 0, this;
65
- }
66
- Similar.prototype.get = function(key) {
67
- var index;
68
- if (this.lastItem && this.isEqual(this.lastItem.key, key))
69
- return this.lastItem.val;
70
- if (index = this.indexOf(key), index >= 0)
71
- return this.lastItem = this.list[index], this.list[index].val;
72
- }, Similar.prototype.set = function(key, val) {
73
- var index;
74
- return this.lastItem && this.isEqual(this.lastItem.key, key) ? (this.lastItem.val = val, this) : (index = this.indexOf(key), index >= 0 ? (this.lastItem = this.list[index], this.list[index].val = val, this) : (this.lastItem = { key, val }, this.list.push(this.lastItem), this.size++, this));
75
- }, Similar.prototype.delete = function(key) {
76
- var index;
77
- if (this.lastItem && this.isEqual(this.lastItem.key, key) && (this.lastItem = void 0), index = this.indexOf(key), index >= 0)
78
- return this.size--, this.list.splice(index, 1)[0];
79
- }, Similar.prototype.has = function(key) {
80
- var index;
81
- return this.lastItem && this.isEqual(this.lastItem.key, key) ? !0 : (index = this.indexOf(key), index >= 0 ? (this.lastItem = this.list[index], !0) : !1);
82
- }, Similar.prototype.forEach = function(callback, thisArg) {
83
- var i2;
84
- for (i2 = 0; i2 < this.size; i2++)
85
- callback.call(thisArg || this, this.list[i2].val, this.list[i2].key, this);
86
- }, Similar.prototype.indexOf = function(key) {
87
- var i2;
88
- for (i2 = 0; i2 < this.size; i2++)
89
- if (this.isEqual(this.list[i2].key, key))
90
- return i2;
91
- return -1;
92
- }, Similar.prototype.isEqual = function(val1, val2) {
93
- return val1 === val2 || val1 !== val1 && val2 !== val2;
94
- }, module3.exports = Similar;
95
- }, {}], 3: [function(_dereq_, module3, exports3) {
96
- var MapOrSimilar = _dereq_("map-or-similar");
97
- module3.exports = function(limit) {
98
- var cache = new MapOrSimilar(!1), lru = [];
99
- return function(fn) {
100
- var memoizerific = function() {
101
- var currentCache = cache, newMap, fnResult, argsLengthMinusOne = arguments.length - 1, lruPath = Array(argsLengthMinusOne + 1), isMemoized = !0, i2;
102
- if ((memoizerific.numArgs || memoizerific.numArgs === 0) && memoizerific.numArgs !== argsLengthMinusOne + 1)
103
- throw new Error("Memoizerific functions should always be called with the same number of arguments");
104
- for (i2 = 0; i2 < argsLengthMinusOne; i2++) {
105
- if (lruPath[i2] = {
106
- cacheItem: currentCache,
107
- arg: arguments[i2]
108
- }, currentCache.has(arguments[i2])) {
109
- currentCache = currentCache.get(arguments[i2]);
110
- continue;
111
- }
112
- isMemoized = !1, newMap = new MapOrSimilar(!1), currentCache.set(arguments[i2], newMap), currentCache = newMap;
113
- }
114
- return isMemoized && (currentCache.has(arguments[argsLengthMinusOne]) ? fnResult = currentCache.get(arguments[argsLengthMinusOne]) : isMemoized = !1), isMemoized || (fnResult = fn.apply(null, arguments), currentCache.set(arguments[argsLengthMinusOne], fnResult)), limit > 0 && (lruPath[argsLengthMinusOne] = {
115
- cacheItem: currentCache,
116
- arg: arguments[argsLengthMinusOne]
117
- }, isMemoized ? moveToMostRecentLru(lru, lruPath) : lru.push(lruPath), lru.length > limit && removeCachedResult(lru.shift())), memoizerific.wasMemoized = isMemoized, memoizerific.numArgs = argsLengthMinusOne + 1, fnResult;
118
- };
119
- return memoizerific.limit = limit, memoizerific.wasMemoized = !1, memoizerific.cache = cache, memoizerific.lru = lru, memoizerific;
120
- };
121
- };
122
- function moveToMostRecentLru(lru, lruPath) {
123
- var lruLen = lru.length, lruPathLen = lruPath.length, isMatch, i2, ii;
124
- for (i2 = 0; i2 < lruLen; i2++) {
125
- for (isMatch = !0, ii = 0; ii < lruPathLen; ii++)
126
- if (!isEqual(lru[i2][ii].arg, lruPath[ii].arg)) {
127
- isMatch = !1;
128
- break;
129
- }
130
- if (isMatch)
131
- break;
132
- }
133
- lru.push(lru.splice(i2, 1)[0]);
134
- }
135
- function removeCachedResult(removedLru) {
136
- var removedLruLen = removedLru.length, currentLru = removedLru[removedLruLen - 1], tmp, i2;
137
- for (currentLru.cacheItem.delete(currentLru.arg), i2 = removedLruLen - 2; i2 >= 0 && (currentLru = removedLru[i2], tmp = currentLru.cacheItem.get(currentLru.arg), !tmp || !tmp.size); i2--)
138
- currentLru.cacheItem.delete(currentLru.arg);
139
- }
140
- function isEqual(val1, val2) {
141
- return val1 === val2 || val1 !== val1 && val2 !== val2;
142
- }
143
- }, { "map-or-similar": 1 }] }, {}, [3])(3);
144
- });
145
- }
146
- });
13
+ } from "./_browser-chunks/chunk-AAVP3AE4.js";
14
+ import "./_browser-chunks/chunk-SL3VIQZ3.js";
147
15
 
148
16
  // src/blocks/components/ArgsTable/ArgsTable.tsx
149
17
  import React23 from "react";
@@ -152,34 +20,34 @@ import { Button as Button5, Link as Link3, ResetWrapper } from "storybook/intern
152
20
  import { includeConditionalArg } from "storybook/internal/csf";
153
21
  import { DocumentIcon as DocumentIcon2, UndoIcon } from "@storybook/icons";
154
22
 
155
- // ../../node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
23
+ // ../../../node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
156
24
  function isPrimitive(value2) {
157
25
  return value2 == null || typeof value2 != "object" && typeof value2 != "function";
158
26
  }
159
27
 
160
- // ../../node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
28
+ // ../../../node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
161
29
  function isTypedArray(x2) {
162
30
  return ArrayBuffer.isView(x2) && !(x2 instanceof DataView);
163
31
  }
164
32
 
165
- // ../../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
33
+ // ../../../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
166
34
  function getSymbols(object2) {
167
35
  return Object.getOwnPropertySymbols(object2).filter((symbol) => Object.prototype.propertyIsEnumerable.call(object2, symbol));
168
36
  }
169
37
 
170
- // ../../node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
38
+ // ../../../node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
171
39
  function getTag(value2) {
172
40
  return value2 == null ? value2 === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(value2);
173
41
  }
174
42
 
175
- // ../../node_modules/es-toolkit/dist/compat/_internal/tags.mjs
43
+ // ../../../node_modules/es-toolkit/dist/compat/_internal/tags.mjs
176
44
  var regexpTag = "[object RegExp]", stringTag = "[object String]", numberTag = "[object Number]", booleanTag = "[object Boolean]", argumentsTag = "[object Arguments]", symbolTag = "[object Symbol]", dateTag = "[object Date]", mapTag = "[object Map]", setTag = "[object Set]", arrayTag = "[object Array]";
177
45
  var arrayBufferTag = "[object ArrayBuffer]", objectTag = "[object Object]";
178
46
  var dataViewTag = "[object DataView]", uint8ArrayTag = "[object Uint8Array]", uint8ClampedArrayTag = "[object Uint8ClampedArray]", uint16ArrayTag = "[object Uint16Array]", uint32ArrayTag = "[object Uint32Array]";
179
47
  var int8ArrayTag = "[object Int8Array]", int16ArrayTag = "[object Int16Array]", int32ArrayTag = "[object Int32Array]";
180
48
  var float32ArrayTag = "[object Float32Array]", float64ArrayTag = "[object Float64Array]";
181
49
 
182
- // ../../node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
50
+ // ../../../node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
183
51
  function cloneDeepWithImpl(valueToClone, keyToClone, objectToClone, stack = /* @__PURE__ */ new Map(), cloneValue = void 0) {
184
52
  let cloned = cloneValue?.(valueToClone, keyToClone, objectToClone, stack);
185
53
  if (cloned !== void 0)
@@ -299,12 +167,12 @@ function isCloneableObject(object2) {
299
167
  }
300
168
  }
301
169
 
302
- // ../../node_modules/es-toolkit/dist/object/cloneDeep.mjs
170
+ // ../../../node_modules/es-toolkit/dist/object/cloneDeep.mjs
303
171
  function cloneDeep(obj) {
304
172
  return cloneDeepWithImpl(obj, void 0, obj, /* @__PURE__ */ new Map(), void 0);
305
173
  }
306
174
 
307
- // ../../node_modules/es-toolkit/dist/object/pickBy.mjs
175
+ // ../../../node_modules/es-toolkit/dist/object/pickBy.mjs
308
176
  function pickBy(obj, shouldPick) {
309
177
  let result = {}, keys = Object.keys(obj);
310
178
  for (let i2 = 0; i2 < keys.length; i2++) {
@@ -314,7 +182,7 @@ function pickBy(obj, shouldPick) {
314
182
  return result;
315
183
  }
316
184
 
317
- // ../../node_modules/es-toolkit/dist/string/words.mjs
185
+ // ../../../node_modules/es-toolkit/dist/string/words.mjs
318
186
  var CASE_SPLIT_PATTERN = new RegExp("\\p{Lu}?\\p{Ll}+|[0-9]+|\\p{Lu}+(?!\\p{Ll})|\\p{Emoji_Presentation}|\\p{Extended_Pictographic}|\\p{L}+", "gu");
319
187
 
320
188
  // src/blocks/components/ArgsTable/ArgsTable.tsx
@@ -324,7 +192,7 @@ import { styled as styled18 } from "storybook/theming";
324
192
  import React19, { useState as useState8 } from "react";
325
193
  import { codeCommon as codeCommon3 } from "storybook/internal/components";
326
194
 
327
- // ../../node_modules/markdown-to-jsx/dist/index.modern.js
195
+ // ../../../node_modules/markdown-to-jsx/dist/index.modern.js
328
196
  import * as e from "react";
329
197
  function n() {
330
198
  return n = Object.assign ? Object.assign.bind() : function(e2) {
@@ -1222,7 +1090,7 @@ var styleResets = {
1222
1090
  let handleChange = (e2) => {
1223
1091
  onChange(options[e2.currentTarget.value]);
1224
1092
  }, selection = selectedKey(value2, options) || NO_SELECTION, controlId = getControlId(name), readonly = !!argType?.table?.readonly;
1225
- return React6.createElement(SelectWrapper, null, React6.createElement(ChevronSmallDownIcon, null), React6.createElement("label", { htmlFor: controlId, className: "sb-sr-only" }, name), React6.createElement(OptionsSelect, { disabled: readonly, id: controlId, value: selection, onChange: handleChange }, React6.createElement("option", { key: "no-selection", disabled: !0 }, NO_SELECTION), Object.keys(options).map((key) => React6.createElement("option", { key, value: key }, key))));
1093
+ return React6.createElement(SelectWrapper, null, React6.createElement(ChevronSmallDownIcon, null), React6.createElement("label", { htmlFor: controlId, className: "sb-sr-only" }, name), React6.createElement(OptionsSelect, { disabled: readonly, id: controlId, value: selection, onChange: handleChange }, React6.createElement("option", { disabled: selection === NO_SELECTION, key: "no-selection" }, NO_SELECTION), Object.keys(options).map((key) => React6.createElement("option", { key, value: key }, key))));
1226
1094
  }, MultiSelect = ({ name, value: value2, options, onChange, argType }) => {
1227
1095
  let handleChange = (e2) => {
1228
1096
  let selection2 = Array.from(e2.currentTarget.options).filter((option) => option.selected).map((option) => option.value);
@@ -2656,9 +2524,11 @@ var { window: globalWindow } = globalThis, Wrapper4 = styled8.div(({ theme }) =>
2656
2524
  ), [forceVisible, setForceVisible] = useState4(!1), onForceVisible = useCallback3(() => {
2657
2525
  onChange({}), setForceVisible(!0);
2658
2526
  }, [setForceVisible]), htmlElRef = useRef3(null);
2659
- if (useEffect4(() => {
2527
+ useEffect4(() => {
2660
2528
  forceVisible && htmlElRef.current && htmlElRef.current.select();
2661
- }, [forceVisible]), !hasData)
2529
+ }, [forceVisible]);
2530
+ let jsonString = useMemo(() => JSON.stringify(data ?? "", null, 2), [data]);
2531
+ if (!hasData)
2662
2532
  return React11.createElement(
2663
2533
  Button3,
2664
2534
  {
@@ -2676,7 +2546,8 @@ var { window: globalWindow } = globalThis, Wrapper4 = styled8.div(({ theme }) =>
2676
2546
  id: getControlId(name),
2677
2547
  minRows: 3,
2678
2548
  name,
2679
- defaultValue: value2 === null ? "" : JSON.stringify(value2, null, 2),
2549
+ key: jsonString,
2550
+ defaultValue: jsonString,
2680
2551
  onBlur: (event) => updateRaw(event.target.value),
2681
2552
  placeholder: "Edit JSON string...",
2682
2553
  autoFocus: forceVisible,
@@ -2970,7 +2841,7 @@ var FilesControl = ({
2970
2841
  };
2971
2842
 
2972
2843
  // src/blocks/controls/index.tsx
2973
- var LazyColorControl = lazy(() => import("./_browser-chunks/Color-ASIRERSW.js")), ColorControl = (props) => React15.createElement(Suspense, { fallback: React15.createElement("div", null) }, React15.createElement(LazyColorControl, { ...props }));
2844
+ var LazyColorControl = lazy(() => import("./_browser-chunks/Color-6BZIO3FS.js")), ColorControl = (props) => React15.createElement(Suspense, { fallback: React15.createElement("div", null) }, React15.createElement(LazyColorControl, { ...props }));
2974
2845
 
2975
2846
  // src/blocks/components/ArgsTable/ArgControl.tsx
2976
2847
  var Controls2 = {
@@ -3073,16 +2944,15 @@ var Table = styled12.table(({ theme }) => ({
3073
2944
 
3074
2945
  // src/blocks/components/ArgsTable/ArgValue.tsx
3075
2946
  import React18, { useState as useState7 } from "react";
3076
- import { SyntaxHighlighter, TooltipProvider, codeCommon as codeCommon2 } from "storybook/internal/components";
2947
+ import { PopoverProvider, SyntaxHighlighter, codeCommon as codeCommon2 } from "storybook/internal/components";
3077
2948
  import { ChevronSmallDownIcon as ChevronSmallDownIcon2, ChevronSmallUpIcon } from "@storybook/icons";
3078
2949
 
3079
- // ../../node_modules/es-toolkit/dist/array/uniq.mjs
2950
+ // ../../../node_modules/es-toolkit/dist/array/uniq.mjs
3080
2951
  function uniq(arr) {
3081
2952
  return [...new Set(arr)];
3082
2953
  }
3083
2954
 
3084
2955
  // src/blocks/components/ArgsTable/ArgValue.tsx
3085
- var import_memoizerific = __toESM(require_memoizerific(), 1);
3086
2956
  import { styled as styled13 } from "storybook/theming";
3087
2957
  var ITEMS_BEFORE_EXPANSION = 8, Summary = styled13.div(({ isExpanded }) => ({
3088
2958
  display: "flex",
@@ -3091,7 +2961,24 @@ var ITEMS_BEFORE_EXPANSION = 8, Summary = styled13.div(({ isExpanded }) => ({
3091
2961
  alignItems: "flex-start",
3092
2962
  marginBottom: "-4px",
3093
2963
  minWidth: 100
3094
- })), Text3 = styled13.span(codeCommon2, ({ theme, simple = !1 }) => ({
2964
+ })), DetailsContainer = styled13.details({
2965
+ display: "flex",
2966
+ flexDirection: "column",
2967
+ summary: {
2968
+ order: 2
2969
+ },
2970
+ "summary::-webkit-details-marker": {
2971
+ display: "none"
2972
+ },
2973
+ "summary::marker": {
2974
+ content: "none"
2975
+ }
2976
+ }), AlignedDetails = styled13.div({
2977
+ display: "flex",
2978
+ flexDirection: "column",
2979
+ flexWrap: "wrap",
2980
+ alignItems: "flex-start"
2981
+ }), Text3 = styled13.span(codeCommon2, ({ theme, simple = !1 }) => ({
3095
2982
  flex: "0 0 auto",
3096
2983
  fontFamily: theme.typography.fonts.mono,
3097
2984
  fontSize: theme.typography.size.s1,
@@ -3109,13 +2996,16 @@ var ITEMS_BEFORE_EXPANSION = 8, Summary = styled13.div(({ isExpanded }) => ({
3109
2996
  border: "0 none",
3110
2997
  paddingLeft: 0
3111
2998
  }
3112
- })), ExpandButton = styled13.button(({ theme }) => ({
2999
+ })), ExpandButton = styled13.summary(({ theme }) => ({
3113
3000
  fontFamily: theme.typography.fonts.mono,
3114
3001
  color: theme.color.secondary,
3115
- marginBottom: "4px",
3002
+ cursor: "pointer",
3003
+ lineHeight: "normal",
3004
+ margin: "0 0 4px",
3005
+ padding: "1px 6px",
3116
3006
  background: "none",
3117
3007
  border: "none"
3118
- })), Expandable = styled13.div(codeCommon2, ({ theme }) => ({
3008
+ })), Expandable = styled13.button(codeCommon2, ({ theme }) => ({
3119
3009
  fontFamily: theme.typography.fonts.mono,
3120
3010
  color: theme.color.secondary,
3121
3011
  fontSize: theme.typography.size.s1,
@@ -3123,12 +3013,19 @@ var ITEMS_BEFORE_EXPANSION = 8, Summary = styled13.div(({ isExpanded }) => ({
3123
3013
  margin: 0,
3124
3014
  whiteSpace: "nowrap",
3125
3015
  display: "flex",
3126
- alignItems: "center"
3127
- })), Detail = styled13.div(({ theme, width }) => ({
3128
- width,
3016
+ alignItems: "center",
3017
+ cursor: "pointer",
3018
+ "&:hover": {
3019
+ border: theme.base === "light" ? "1px solid hsl(0 0 0 / 0.15)" : "1px solid hsl(0 0 100 / 0.15)"
3020
+ },
3021
+ "&:focus-visible": {
3022
+ outline: `2px solid ${theme.color.secondary}`,
3023
+ outlineOffset: "2px"
3024
+ }
3025
+ })), Detail = styled13.div(({ theme }) => ({
3129
3026
  minWidth: 200,
3130
3027
  maxWidth: 800,
3131
- padding: 15,
3028
+ paddingRight: 16,
3132
3029
  // Don't remove the mono fontFamily here even if it seems useless, this is used by the browser to calculate the length of a "ch" unit.
3133
3030
  fontFamily: theme.typography.fonts.mono,
3134
3031
  fontSize: theme.typography.size.s1,
@@ -3141,18 +3038,12 @@ var ITEMS_BEFORE_EXPANSION = 8, Summary = styled13.div(({ isExpanded }) => ({
3141
3038
  marginLeft: 4
3142
3039
  }), ChevronDownIcon = styled13(ChevronSmallDownIcon2)({
3143
3040
  marginLeft: 4
3144
- }), EmptyArg = () => React18.createElement("span", null, "-"), ArgText = ({ text, simple }) => React18.createElement(Text3, { simple }, text), calculateDetailWidth = (0, import_memoizerific.default)(1e3)((detail) => {
3145
- let lines = detail.split(/\r?\n/);
3146
- return `${Math.max(...lines.map((x2) => x2.length))}ch`;
3147
- }), getSummaryItems = (summary) => {
3041
+ }), EmptyArg = () => React18.createElement("span", null, "-"), ArgText = ({ text, simple }) => React18.createElement(Text3, { simple }, text), getSummaryItems = (summary) => {
3148
3042
  if (!summary)
3149
3043
  return [summary];
3150
3044
  let summaryItems = summary.split("|").map((value2) => value2.trim());
3151
3045
  return uniq(summaryItems);
3152
- }, renderSummaryItems = (summaryItems, isExpanded = !0) => {
3153
- let items = summaryItems;
3154
- return isExpanded || (items = summaryItems.slice(0, ITEMS_BEFORE_EXPANSION)), items.map((item) => React18.createElement(ArgText, { key: item, text: item === "" ? '""' : item }));
3155
- }, ArgSummary = ({ value: value2, initialExpandedArgs }) => {
3046
+ }, renderSummaryItems = (summaryItems) => summaryItems.slice(0, ITEMS_BEFORE_EXPANSION).map((item) => React18.createElement(ArgText, { key: item, text: item === "" ? '""' : item })), renderExpandedItems = (summaryItems) => summaryItems.slice(ITEMS_BEFORE_EXPANSION).map((item) => React18.createElement(ArgText, { key: item, text: item === "" ? '""' : item })), ArgSummary = ({ value: value2, initialExpandedArgs }) => {
3156
3047
  let { summary, detail } = value2, [isOpen, setIsOpen] = useState7(!1), [isExpanded, setIsExpanded] = useState7(initialExpandedArgs || !1);
3157
3048
  if (summary == null)
3158
3049
  return null;
@@ -3161,17 +3052,18 @@ var ITEMS_BEFORE_EXPANSION = 8, Summary = styled13.div(({ isExpanded }) => ({
3161
3052
  if (/[(){}[\]<>]/.test(summaryAsString))
3162
3053
  return React18.createElement(ArgText, { text: summaryAsString });
3163
3054
  let summaryItems = getSummaryItems(summaryAsString), itemsCount = summaryItems.length;
3164
- return itemsCount > ITEMS_BEFORE_EXPANSION ? React18.createElement(Summary, { isExpanded }, renderSummaryItems(summaryItems, isExpanded), React18.createElement(ExpandButton, { onClick: () => setIsExpanded(!isExpanded) }, isExpanded ? "Show less..." : `Show ${itemsCount - ITEMS_BEFORE_EXPANSION} more...`)) : React18.createElement(Summary, null, renderSummaryItems(summaryItems));
3055
+ return itemsCount > ITEMS_BEFORE_EXPANSION ? React18.createElement(Summary, { isExpanded }, renderSummaryItems(summaryItems), React18.createElement(DetailsContainer, { open: isExpanded, onToggle: (e2) => setIsExpanded(e2.currentTarget.open) }, React18.createElement(AlignedDetails, null, renderExpandedItems(summaryItems)), React18.createElement(ExpandButton, { role: "button" }, isExpanded ? "Show less..." : `Show ${itemsCount - ITEMS_BEFORE_EXPANSION} more...`))) : React18.createElement(Summary, null, renderSummaryItems(summaryItems));
3165
3056
  }
3166
3057
  return React18.createElement(
3167
- TooltipProvider,
3058
+ PopoverProvider,
3168
3059
  {
3169
3060
  placement: "bottom",
3170
3061
  visible: isOpen,
3171
3062
  onVisibleChange: (isVisible) => {
3172
3063
  setIsOpen(isVisible);
3173
3064
  },
3174
- tooltip: React18.createElement(Detail, { width: calculateDetailWidth(detail) }, React18.createElement(SyntaxHighlighter, { language: "jsx", format: !1 }, detail))
3065
+ hasCloseButton: !0,
3066
+ popover: React18.createElement(Detail, null, React18.createElement(SyntaxHighlighter, { language: "jsx", format: !1 }, detail))
3175
3067
  },
3176
3068
  React18.createElement(Expandable, { className: "sbdocs-expandable" }, React18.createElement("span", null, summaryAsString), isOpen ? React18.createElement(ChevronUpIcon, null) : React18.createElement(ChevronDownIcon, null))
3177
3069
  );
@@ -4504,7 +4396,10 @@ var PositionedToolbar = styled22(Toolbar)({
4504
4396
  // src/blocks/components/ArgsTable/TabbedArgsTable.tsx
4505
4397
  import React30 from "react";
4506
4398
  import { TabsView } from "storybook/internal/components";
4507
- var TabbedArgsTable = ({ tabs, ...props }) => {
4399
+ import { styled as styled23 } from "storybook/theming";
4400
+ var StyledTabsView = styled23(TabsView)({
4401
+ height: "fit-content"
4402
+ }), TabbedArgsTable = ({ tabs, ...props }) => {
4508
4403
  let entries = Object.entries(tabs);
4509
4404
  if (entries.length === 1)
4510
4405
  return React30.createElement(ArgsTable, { ...entries[0][1], ...props });
@@ -4516,27 +4411,27 @@ var TabbedArgsTable = ({ tabs, ...props }) => {
4516
4411
  return React30.createElement(ArgsTable, { inTabPanel: !0, key: `prop_table_${label}`, ...table, ...argsTableProps });
4517
4412
  }
4518
4413
  }));
4519
- return React30.createElement(TabsView, { tabs: tabsFromEntries });
4414
+ return React30.createElement(StyledTabsView, { tabs: tabsFromEntries });
4520
4415
  };
4521
4416
 
4522
4417
  // src/blocks/components/Typeset.tsx
4523
4418
  import React31 from "react";
4524
4419
  import { withReset as withReset2 } from "storybook/internal/components";
4525
- import { styled as styled23 } from "storybook/theming";
4526
- var Label4 = styled23.div(({ theme }) => ({
4420
+ import { styled as styled24 } from "storybook/theming";
4421
+ var Label4 = styled24.div(({ theme }) => ({
4527
4422
  marginRight: 30,
4528
4423
  fontSize: `${theme.typography.size.s1}px`,
4529
4424
  color: theme.base === "light" ? curriedTransparentize$1(0.4, theme.color.defaultText) : curriedTransparentize$1(0.6, theme.color.defaultText)
4530
- })), Sample = styled23.div({
4425
+ })), Sample = styled24.div({
4531
4426
  overflow: "hidden",
4532
4427
  whiteSpace: "nowrap",
4533
4428
  textOverflow: "ellipsis"
4534
- }), TypeSpecimen = styled23.div({
4429
+ }), TypeSpecimen = styled24.div({
4535
4430
  display: "flex",
4536
4431
  flexDirection: "row",
4537
4432
  alignItems: "baseline",
4538
4433
  "&:not(:last-child)": { marginBottom: "1rem" }
4539
- }), Wrapper8 = styled23.div(withReset2, ({ theme }) => ({
4434
+ }), Wrapper8 = styled24.div(withReset2, ({ theme }) => ({
4540
4435
  ...getBlockBackgroundStyle(theme),
4541
4436
  margin: "25px 0 40px",
4542
4437
  padding: "30px 20px"
@@ -4562,17 +4457,17 @@ var Label4 = styled23.div(({ theme }) => ({
4562
4457
  // src/blocks/components/ColorPalette.tsx
4563
4458
  import React32 from "react";
4564
4459
  import { ResetWrapper as ResetWrapper2 } from "storybook/internal/components";
4565
- import { styled as styled24 } from "storybook/theming";
4566
- var ItemTitle = styled24.div(({ theme }) => ({
4460
+ import { styled as styled25 } from "storybook/theming";
4461
+ var ItemTitle = styled25.div(({ theme }) => ({
4567
4462
  fontWeight: theme.typography.weight.bold,
4568
4463
  color: theme.color.defaultText
4569
- })), ItemSubtitle = styled24.div(({ theme }) => ({
4464
+ })), ItemSubtitle = styled25.div(({ theme }) => ({
4570
4465
  color: curriedTransparentize$1(0.3, theme.color.defaultText)
4571
- })), ItemDescription = styled24.div({
4466
+ })), ItemDescription = styled25.div({
4572
4467
  flex: "0 0 30%",
4573
4468
  lineHeight: "20px",
4574
4469
  marginTop: 5
4575
- }), SwatchLabel = styled24.div(({ theme }) => ({
4470
+ }), SwatchLabel = styled25.div(({ theme }) => ({
4576
4471
  flex: 1,
4577
4472
  textAlign: "center",
4578
4473
  fontFamily: theme.typography.fonts.mono,
@@ -4590,10 +4485,10 @@ var ItemTitle = styled24.div(({ theme }) => ({
4590
4485
  display: "block",
4591
4486
  marginTop: 2
4592
4487
  }
4593
- })), SwatchLabels = styled24.div({
4488
+ })), SwatchLabels = styled25.div({
4594
4489
  display: "flex",
4595
4490
  flexDirection: "row"
4596
- }), Swatch = styled24.div(({ background }) => ({
4491
+ }), Swatch = styled25.div(({ background }) => ({
4597
4492
  position: "relative",
4598
4493
  flex: 1,
4599
4494
  "&::before": {
@@ -4605,7 +4500,7 @@ var ItemTitle = styled24.div(({ theme }) => ({
4605
4500
  background,
4606
4501
  content: '""'
4607
4502
  }
4608
- })), SwatchColors = styled24.div(({ theme }) => ({
4503
+ })), SwatchColors = styled25.div(({ theme }) => ({
4609
4504
  ...getBlockBackgroundStyle(theme),
4610
4505
  display: "flex",
4611
4506
  flexDirection: "row",
@@ -4615,31 +4510,31 @@ var ItemTitle = styled24.div(({ theme }) => ({
4615
4510
  backgroundColor: "white",
4616
4511
  backgroundImage: "repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",
4617
4512
  backgroundClip: "padding-box"
4618
- })), SwatchSpecimen = styled24.div({
4513
+ })), SwatchSpecimen = styled25.div({
4619
4514
  display: "flex",
4620
4515
  flexDirection: "column",
4621
4516
  flex: 1,
4622
4517
  position: "relative",
4623
4518
  marginBottom: 30
4624
- }), Swatches = styled24.div({
4519
+ }), Swatches = styled25.div({
4625
4520
  flex: 1,
4626
4521
  display: "flex",
4627
4522
  flexDirection: "row"
4628
- }), Item = styled24.div({
4523
+ }), Item = styled25.div({
4629
4524
  display: "flex",
4630
4525
  alignItems: "flex-start"
4631
- }), ListName = styled24.div({
4526
+ }), ListName = styled25.div({
4632
4527
  flex: "0 0 30%"
4633
- }), ListSwatches = styled24.div({
4528
+ }), ListSwatches = styled25.div({
4634
4529
  flex: 1
4635
- }), ListHeading = styled24.div(({ theme }) => ({
4530
+ }), ListHeading = styled25.div(({ theme }) => ({
4636
4531
  display: "flex",
4637
4532
  flexDirection: "row",
4638
4533
  alignItems: "center",
4639
4534
  paddingBottom: 20,
4640
4535
  fontWeight: theme.typography.weight.bold,
4641
4536
  color: curriedTransparentize$1(0.3, theme.color.defaultText)
4642
- })), List = styled24.div(({ theme }) => ({
4537
+ })), List = styled25.div(({ theme }) => ({
4643
4538
  fontSize: theme.typography.size.s2,
4644
4539
  lineHeight: "20px",
4645
4540
  display: "flex",
@@ -4666,8 +4561,8 @@ var ColorItem = ({ title, subtitle, colors }) => React32.createElement(Item, nul
4666
4561
  // src/blocks/components/IconGallery.tsx
4667
4562
  import React33 from "react";
4668
4563
  import { ResetWrapper as ResetWrapper3 } from "storybook/internal/components";
4669
- import { styled as styled25 } from "storybook/theming";
4670
- var ItemLabel = styled25.div(({ theme }) => ({
4564
+ import { styled as styled26 } from "storybook/theming";
4565
+ var ItemLabel = styled26.div(({ theme }) => ({
4671
4566
  fontFamily: theme.typography.fonts.base,
4672
4567
  fontSize: theme.typography.size.s1,
4673
4568
  color: theme.color.defaultText,
@@ -4679,7 +4574,7 @@ var ItemLabel = styled25.div(({ theme }) => ({
4679
4574
  textOverflow: "ellipsis",
4680
4575
  WebkitLineClamp: 2,
4681
4576
  WebkitBoxOrient: "vertical"
4682
- })), ItemSpecimen = styled25.div(({ theme }) => ({
4577
+ })), ItemSpecimen = styled26.div(({ theme }) => ({
4683
4578
  ...getBlockBackgroundStyle(theme),
4684
4579
  overflow: "hidden",
4685
4580
  height: 40,
@@ -4692,12 +4587,12 @@ var ItemLabel = styled25.div(({ theme }) => ({
4692
4587
  width: 20,
4693
4588
  height: 20
4694
4589
  }
4695
- })), Item2 = styled25.div({
4590
+ })), Item2 = styled26.div({
4696
4591
  display: "inline-flex",
4697
4592
  flexDirection: "row",
4698
4593
  alignItems: "center",
4699
4594
  width: "100%"
4700
- }), List2 = styled25.div({
4595
+ }), List2 = styled26.div({
4701
4596
  display: "grid",
4702
4597
  gridTemplateColumns: "repeat(auto-fill, minmax(140px, 1fr))",
4703
4598
  gridGap: "8px 16px",
@@ -4708,9 +4603,9 @@ var ItemLabel = styled25.div(({ theme }) => ({
4708
4603
  // src/blocks/components/TableOfContents.tsx
4709
4604
  import React34, { useEffect as useEffect10 } from "react";
4710
4605
  import { NAVIGATE_URL } from "storybook/internal/core-events";
4711
- import { styled as styled26 } from "storybook/theming";
4606
+ import { styled as styled27 } from "storybook/theming";
4712
4607
 
4713
- // ../../node_modules/tocbot/src/js/build-html.js
4608
+ // ../../../node_modules/tocbot/src/js/build-html.js
4714
4609
  function build_html_default(options) {
4715
4610
  let forEach = [].forEach, some = [].some, body = typeof window < "u" && document.body, SPACE_CHAR = " ", tocElement, currentlyHighlighting = !0, eventCount = 0;
4716
4611
  function createEl(d2, container) {
@@ -4867,7 +4762,7 @@ function build_html_default(options) {
4867
4762
  };
4868
4763
  }
4869
4764
 
4870
- // ../../node_modules/tocbot/src/js/default-options.js
4765
+ // ../../../node_modules/tocbot/src/js/default-options.js
4871
4766
  var default_options_default = {
4872
4767
  // Where to render the table of contents.
4873
4768
  tocSelector: ".js-toc",
@@ -4997,7 +4892,7 @@ var default_options_default = {
4997
4892
  bottomModeThreshold: 30
4998
4893
  };
4999
4894
 
5000
- // ../../node_modules/tocbot/src/js/parse-content.js
4895
+ // ../../../node_modules/tocbot/src/js/parse-content.js
5001
4896
  function parseContent(options) {
5002
4897
  let reduce = [].reduce;
5003
4898
  function getLastItem(array2) {
@@ -5061,7 +4956,7 @@ function parseContent(options) {
5061
4956
  };
5062
4957
  }
5063
4958
 
5064
- // ../../node_modules/tocbot/src/js/scroll-smooth/index.js
4959
+ // ../../../node_modules/tocbot/src/js/scroll-smooth/index.js
5065
4960
  function initSmoothScrolling(options) {
5066
4961
  var duration = options.duration, offset = options.offset;
5067
4962
  if (typeof window > "u" || typeof location > "u") return;
@@ -5113,7 +5008,7 @@ function jump(target, options) {
5113
5008
  }
5114
5009
  }
5115
5010
 
5116
- // ../../node_modules/tocbot/src/js/update-toc-scroll.js
5011
+ // ../../../node_modules/tocbot/src/js/update-toc-scroll.js
5117
5012
  function updateTocScroll(options) {
5118
5013
  let toc = options.tocScrollingWrapper || options.tocElement || document.querySelector(options.tocSelector);
5119
5014
  if (toc && toc.scrollHeight > toc.clientHeight) {
@@ -5125,7 +5020,7 @@ function updateTocScroll(options) {
5125
5020
  }
5126
5021
  }
5127
5022
 
5128
- // ../../node_modules/tocbot/src/js/index-esm.js
5023
+ // ../../../node_modules/tocbot/src/js/index-esm.js
5129
5024
  var _options = {}, _buildHtml, _parseContent, _headingsArray, _scrollListener, clickListener;
5130
5025
  function init(customOptions) {
5131
5026
  let hasInitialized = !1;
@@ -5219,17 +5114,17 @@ function getTocElement(options) {
5219
5114
  }
5220
5115
  }
5221
5116
 
5222
- // ../../node_modules/tocbot/index.js
5117
+ // ../../../node_modules/tocbot/index.js
5223
5118
  var tocbot = { destroy, init, refresh };
5224
5119
  var tocbot_default = tocbot;
5225
5120
 
5226
5121
  // src/blocks/components/TableOfContents.tsx
5227
- var Aside = styled26.aside(() => ({
5122
+ var Aside = styled27.aside(() => ({
5228
5123
  width: "10rem",
5229
5124
  "@media (max-width: 768px)": {
5230
5125
  display: "none"
5231
5126
  }
5232
- })), Nav = styled26.nav(({ theme }) => ({
5127
+ })), Nav = styled27.nav(({ theme }) => ({
5233
5128
  position: "fixed",
5234
5129
  bottom: 0,
5235
5130
  top: 0,
@@ -5288,7 +5183,7 @@ var Aside = styled26.aside(() => ({
5288
5183
  color: theme.color.secondary,
5289
5184
  textDecoration: "none"
5290
5185
  }
5291
- })), Heading = styled26.p(({ theme }) => ({
5186
+ })), Heading = styled27.p(({ theme }) => ({
5292
5187
  fontWeight: 600,
5293
5188
  fontSize: "0.875em",
5294
5189
  color: theme.color.defaultText,
@@ -5426,15 +5321,15 @@ import { SourceType } from "storybook/internal/docs-tools";
5426
5321
  import React37, { createContext as createContext3, useEffect as useEffect11, useState as useState14 } from "react";
5427
5322
  import { SNIPPET_RENDERED } from "storybook/internal/docs-tools";
5428
5323
 
5429
- // ../../node_modules/telejson/dist/chunk-EAFQLD22.mjs
5430
- var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJS2 = (cb, mod) => function() {
5324
+ // ../../../node_modules/telejson/dist/chunk-EAFQLD22.mjs
5325
+ var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJS = (cb, mod) => function() {
5431
5326
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
5432
5327
  }, __copyProps = (to, from, except, desc) => {
5433
5328
  if (from && typeof from == "object" || typeof from == "function")
5434
5329
  for (let key of __getOwnPropNames(from))
5435
5330
  !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5436
5331
  return to;
5437
- }, __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
5332
+ }, __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
5438
5333
  // If the importer is in node compatibility mode or this is not an ESM
5439
5334
  // file that has been converted to a CommonJS file using a Babel-
5440
5335
  // compatible transform (i.e. "__esModule" has not been set), then set
@@ -5466,85 +5361,85 @@ function extractEventHiddenProperties(event) {
5466
5361
  return rebuildEvent;
5467
5362
  }
5468
5363
 
5469
- // ../../node_modules/telejson/dist/index.mjs
5470
- var require_es_object_atoms = __commonJS2({
5364
+ // ../../../node_modules/telejson/dist/index.mjs
5365
+ var require_es_object_atoms = __commonJS({
5471
5366
  "node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(exports, module) {
5472
5367
  "use strict";
5473
5368
  module.exports = Object;
5474
5369
  }
5475
- }), require_es_errors = __commonJS2({
5370
+ }), require_es_errors = __commonJS({
5476
5371
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(exports, module) {
5477
5372
  "use strict";
5478
5373
  module.exports = Error;
5479
5374
  }
5480
- }), require_eval = __commonJS2({
5375
+ }), require_eval = __commonJS({
5481
5376
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(exports, module) {
5482
5377
  "use strict";
5483
5378
  module.exports = EvalError;
5484
5379
  }
5485
- }), require_range = __commonJS2({
5380
+ }), require_range = __commonJS({
5486
5381
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(exports, module) {
5487
5382
  "use strict";
5488
5383
  module.exports = RangeError;
5489
5384
  }
5490
- }), require_ref = __commonJS2({
5385
+ }), require_ref = __commonJS({
5491
5386
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(exports, module) {
5492
5387
  "use strict";
5493
5388
  module.exports = ReferenceError;
5494
5389
  }
5495
- }), require_syntax = __commonJS2({
5390
+ }), require_syntax = __commonJS({
5496
5391
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(exports, module) {
5497
5392
  "use strict";
5498
5393
  module.exports = SyntaxError;
5499
5394
  }
5500
- }), require_type = __commonJS2({
5395
+ }), require_type = __commonJS({
5501
5396
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(exports, module) {
5502
5397
  "use strict";
5503
5398
  module.exports = TypeError;
5504
5399
  }
5505
- }), require_uri = __commonJS2({
5400
+ }), require_uri = __commonJS({
5506
5401
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(exports, module) {
5507
5402
  "use strict";
5508
5403
  module.exports = URIError;
5509
5404
  }
5510
- }), require_abs = __commonJS2({
5405
+ }), require_abs = __commonJS({
5511
5406
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(exports, module) {
5512
5407
  "use strict";
5513
5408
  module.exports = Math.abs;
5514
5409
  }
5515
- }), require_floor = __commonJS2({
5410
+ }), require_floor = __commonJS({
5516
5411
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(exports, module) {
5517
5412
  "use strict";
5518
5413
  module.exports = Math.floor;
5519
5414
  }
5520
- }), require_max = __commonJS2({
5415
+ }), require_max = __commonJS({
5521
5416
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(exports, module) {
5522
5417
  "use strict";
5523
5418
  module.exports = Math.max;
5524
5419
  }
5525
- }), require_min = __commonJS2({
5420
+ }), require_min = __commonJS({
5526
5421
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(exports, module) {
5527
5422
  "use strict";
5528
5423
  module.exports = Math.min;
5529
5424
  }
5530
- }), require_pow = __commonJS2({
5425
+ }), require_pow = __commonJS({
5531
5426
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(exports, module) {
5532
5427
  "use strict";
5533
5428
  module.exports = Math.pow;
5534
5429
  }
5535
- }), require_round = __commonJS2({
5430
+ }), require_round = __commonJS({
5536
5431
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(exports, module) {
5537
5432
  "use strict";
5538
5433
  module.exports = Math.round;
5539
5434
  }
5540
- }), require_isNaN = __commonJS2({
5435
+ }), require_isNaN = __commonJS({
5541
5436
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(exports, module) {
5542
5437
  "use strict";
5543
5438
  module.exports = Number.isNaN || function(a2) {
5544
5439
  return a2 !== a2;
5545
5440
  };
5546
5441
  }
5547
- }), require_sign = __commonJS2({
5442
+ }), require_sign = __commonJS({
5548
5443
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(exports, module) {
5549
5444
  "use strict";
5550
5445
  var $isNaN = require_isNaN();
@@ -5552,12 +5447,12 @@ var require_es_object_atoms = __commonJS2({
5552
5447
  return $isNaN(number) || number === 0 ? number : number < 0 ? -1 : 1;
5553
5448
  };
5554
5449
  }
5555
- }), require_gOPD = __commonJS2({
5450
+ }), require_gOPD = __commonJS({
5556
5451
  "node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(exports, module) {
5557
5452
  "use strict";
5558
5453
  module.exports = Object.getOwnPropertyDescriptor;
5559
5454
  }
5560
- }), require_gopd = __commonJS2({
5455
+ }), require_gopd = __commonJS({
5561
5456
  "node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(exports, module) {
5562
5457
  "use strict";
5563
5458
  var $gOPD = require_gOPD();
@@ -5569,7 +5464,7 @@ var require_es_object_atoms = __commonJS2({
5569
5464
  }
5570
5465
  module.exports = $gOPD;
5571
5466
  }
5572
- }), require_es_define_property = __commonJS2({
5467
+ }), require_es_define_property = __commonJS({
5573
5468
  "node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(exports, module) {
5574
5469
  "use strict";
5575
5470
  var $defineProperty = Object.defineProperty || !1;
@@ -5581,7 +5476,7 @@ var require_es_object_atoms = __commonJS2({
5581
5476
  }
5582
5477
  module.exports = $defineProperty;
5583
5478
  }
5584
- }), require_shams = __commonJS2({
5479
+ }), require_shams = __commonJS({
5585
5480
  "node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(exports, module) {
5586
5481
  "use strict";
5587
5482
  module.exports = function() {
@@ -5612,7 +5507,7 @@ var require_es_object_atoms = __commonJS2({
5612
5507
  return !0;
5613
5508
  };
5614
5509
  }
5615
- }), require_has_symbols = __commonJS2({
5510
+ }), require_has_symbols = __commonJS({
5616
5511
  "node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(exports, module) {
5617
5512
  "use strict";
5618
5513
  var origSymbol = typeof Symbol < "u" && Symbol, hasSymbolSham = require_shams();
@@ -5620,18 +5515,18 @@ var require_es_object_atoms = __commonJS2({
5620
5515
  return typeof origSymbol != "function" || typeof Symbol != "function" || typeof origSymbol("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : hasSymbolSham();
5621
5516
  };
5622
5517
  }
5623
- }), require_Reflect_getPrototypeOf = __commonJS2({
5518
+ }), require_Reflect_getPrototypeOf = __commonJS({
5624
5519
  "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(exports, module) {
5625
5520
  "use strict";
5626
5521
  module.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null;
5627
5522
  }
5628
- }), require_Object_getPrototypeOf = __commonJS2({
5523
+ }), require_Object_getPrototypeOf = __commonJS({
5629
5524
  "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(exports, module) {
5630
5525
  "use strict";
5631
5526
  var $Object = require_es_object_atoms();
5632
5527
  module.exports = $Object.getPrototypeOf || null;
5633
5528
  }
5634
- }), require_implementation = __commonJS2({
5529
+ }), require_implementation = __commonJS({
5635
5530
  "node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(exports, module) {
5636
5531
  "use strict";
5637
5532
  var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ", toStr = Object.prototype.toString, max = Math.max, funcType = "[object Function]", concatty = function(a2, b2) {
@@ -5675,34 +5570,34 @@ var require_es_object_atoms = __commonJS2({
5675
5570
  return bound;
5676
5571
  };
5677
5572
  }
5678
- }), require_function_bind = __commonJS2({
5573
+ }), require_function_bind = __commonJS({
5679
5574
  "node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(exports, module) {
5680
5575
  "use strict";
5681
5576
  var implementation = require_implementation();
5682
5577
  module.exports = Function.prototype.bind || implementation;
5683
5578
  }
5684
- }), require_functionCall = __commonJS2({
5579
+ }), require_functionCall = __commonJS({
5685
5580
  "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(exports, module) {
5686
5581
  "use strict";
5687
5582
  module.exports = Function.prototype.call;
5688
5583
  }
5689
- }), require_functionApply = __commonJS2({
5584
+ }), require_functionApply = __commonJS({
5690
5585
  "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(exports, module) {
5691
5586
  "use strict";
5692
5587
  module.exports = Function.prototype.apply;
5693
5588
  }
5694
- }), require_reflectApply = __commonJS2({
5589
+ }), require_reflectApply = __commonJS({
5695
5590
  "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(exports, module) {
5696
5591
  "use strict";
5697
5592
  module.exports = typeof Reflect < "u" && Reflect && Reflect.apply;
5698
5593
  }
5699
- }), require_actualApply = __commonJS2({
5594
+ }), require_actualApply = __commonJS({
5700
5595
  "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(exports, module) {
5701
5596
  "use strict";
5702
5597
  var bind = require_function_bind(), $apply = require_functionApply(), $call = require_functionCall(), $reflectApply = require_reflectApply();
5703
5598
  module.exports = $reflectApply || bind.call($call, $apply);
5704
5599
  }
5705
- }), require_call_bind_apply_helpers = __commonJS2({
5600
+ }), require_call_bind_apply_helpers = __commonJS({
5706
5601
  "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(exports, module) {
5707
5602
  "use strict";
5708
5603
  var bind = require_function_bind(), $TypeError = require_type(), $call = require_functionCall(), $actualApply = require_actualApply();
@@ -5712,7 +5607,7 @@ var require_es_object_atoms = __commonJS2({
5712
5607
  return $actualApply(bind, $call, args);
5713
5608
  };
5714
5609
  }
5715
- }), require_get = __commonJS2({
5610
+ }), require_get = __commonJS({
5716
5611
  "node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(exports, module) {
5717
5612
  "use strict";
5718
5613
  var callBind = require_call_bind_apply_helpers(), gOPD = require_gopd(), hasProtoAccessor;
@@ -5735,7 +5630,7 @@ var require_es_object_atoms = __commonJS2({
5735
5630
  })
5736
5631
  ) : !1;
5737
5632
  }
5738
- }), require_get_proto = __commonJS2({
5633
+ }), require_get_proto = __commonJS({
5739
5634
  "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(exports, module) {
5740
5635
  "use strict";
5741
5636
  var reflectGetProto = require_Reflect_getPrototypeOf(), originalGetProto = require_Object_getPrototypeOf(), getDunderProto = require_get();
@@ -5749,13 +5644,13 @@ var require_es_object_atoms = __commonJS2({
5749
5644
  return getDunderProto(O2);
5750
5645
  } : null;
5751
5646
  }
5752
- }), require_hasown = __commonJS2({
5647
+ }), require_hasown = __commonJS({
5753
5648
  "node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports, module) {
5754
5649
  "use strict";
5755
5650
  var call = Function.prototype.call, $hasOwn = Object.prototype.hasOwnProperty, bind = require_function_bind();
5756
5651
  module.exports = bind.call(call, $hasOwn);
5757
5652
  }
5758
- }), require_get_intrinsic = __commonJS2({
5653
+ }), require_get_intrinsic = __commonJS({
5759
5654
  "node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(exports, module) {
5760
5655
  "use strict";
5761
5656
  var undefined2, $Object = require_es_object_atoms(), $Error = require_es_errors(), $EvalError = require_eval(), $RangeError = require_range(), $ReferenceError = require_ref(), $SyntaxError = require_syntax(), $TypeError = require_type(), $URIError = require_uri(), abs = require_abs(), floor = require_floor(), max = require_max(), min = require_min(), pow = require_pow(), round = require_round(), sign = require_sign(), $Function = Function, getEvalledConstructor = function(expressionSyntax) {
@@ -5990,7 +5885,7 @@ var require_es_object_atoms = __commonJS2({
5990
5885
  return value2;
5991
5886
  };
5992
5887
  }
5993
- }), require_call_bound = __commonJS2({
5888
+ }), require_call_bound = __commonJS({
5994
5889
  "node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(exports, module) {
5995
5890
  "use strict";
5996
5891
  var GetIntrinsic = require_get_intrinsic(), callBindBasic = require_call_bind_apply_helpers(), $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);
@@ -6005,7 +5900,7 @@ var require_es_object_atoms = __commonJS2({
6005
5900
  ) : intrinsic;
6006
5901
  };
6007
5902
  }
6008
- }), require_shams2 = __commonJS2({
5903
+ }), require_shams2 = __commonJS({
6009
5904
  "node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(exports, module) {
6010
5905
  "use strict";
6011
5906
  var hasSymbols = require_shams();
@@ -6013,7 +5908,7 @@ var require_es_object_atoms = __commonJS2({
6013
5908
  return hasSymbols() && !!Symbol.toStringTag;
6014
5909
  };
6015
5910
  }
6016
- }), require_is_regex = __commonJS2({
5911
+ }), require_is_regex = __commonJS({
6017
5912
  "node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(exports, module) {
6018
5913
  "use strict";
6019
5914
  var callBound = require_call_bound(), hasToStringTag = require_shams2()(), hasOwn = require_hasown(), gOPD = require_gopd(), fn;
@@ -6051,7 +5946,7 @@ var require_es_object_atoms = __commonJS2({
6051
5946
  var $exec, isRegexMarker, throwRegexMarker, badStringifier, $toString, regexClass;
6052
5947
  module.exports = fn;
6053
5948
  }
6054
- }), require_is_function = __commonJS2({
5949
+ }), require_is_function = __commonJS({
6055
5950
  "node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(exports, module) {
6056
5951
  module.exports = isFunction3;
6057
5952
  var toString2 = Object.prototype.toString;
@@ -6063,7 +5958,7 @@ var require_es_object_atoms = __commonJS2({
6063
5958
  (fn === window.setTimeout || fn === window.alert || fn === window.confirm || fn === window.prompt);
6064
5959
  }
6065
5960
  }
6066
- }), require_safe_regex_test = __commonJS2({
5961
+ }), require_safe_regex_test = __commonJS({
6067
5962
  "node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(exports, module) {
6068
5963
  "use strict";
6069
5964
  var callBound = require_call_bound(), isRegex = require_is_regex(), $exec = callBound("RegExp.prototype.exec"), $TypeError = require_type();
@@ -6075,7 +5970,7 @@ var require_es_object_atoms = __commonJS2({
6075
5970
  };
6076
5971
  };
6077
5972
  }
6078
- }), require_is_symbol = __commonJS2({
5973
+ }), require_is_symbol = __commonJS({
6079
5974
  "node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(exports, module) {
6080
5975
  "use strict";
6081
5976
  var callBound = require_call_bound(), $toString = callBound("Object.prototype.toString"), hasSymbols = require_has_symbols()(), safeRegexTest = require_safe_regex_test();
@@ -6096,7 +5991,7 @@ var require_es_object_atoms = __commonJS2({
6096
5991
  };
6097
5992
  var $symToStr, isSymString, isSymbolObject;
6098
5993
  }
6099
- }), import_is_regex = __toESM2(require_is_regex()), import_is_function = __toESM2(require_is_function()), import_is_symbol = __toESM2(require_is_symbol());
5994
+ }), import_is_regex = __toESM(require_is_regex()), import_is_function = __toESM(require_is_function()), import_is_symbol = __toESM(require_is_symbol());
6100
5995
  function isObject(val) {
6101
5996
  return val != null && typeof val == "object" && Array.isArray(val) === !1;
6102
5997
  }
@@ -6313,7 +6208,7 @@ MapCache.prototype.get = mapCacheGet_default;
6313
6208
  MapCache.prototype.has = mapCacheHas_default;
6314
6209
  MapCache.prototype.set = mapCacheSet_default;
6315
6210
  var MapCache_default = MapCache, FUNC_ERROR_TEXT = "Expected a function";
6316
- function memoize2(func, resolver) {
6211
+ function memoize(func, resolver) {
6317
6212
  if (typeof func != "function" || resolver != null && typeof resolver != "function")
6318
6213
  throw new TypeError(FUNC_ERROR_TEXT);
6319
6214
  var memoized = function() {
@@ -6323,10 +6218,10 @@ function memoize2(func, resolver) {
6323
6218
  var result = func.apply(this, args);
6324
6219
  return memoized.cache = cache.set(key, result) || cache, result;
6325
6220
  };
6326
- return memoized.cache = new (memoize2.Cache || MapCache_default)(), memoized;
6221
+ return memoized.cache = new (memoize.Cache || MapCache_default)(), memoized;
6327
6222
  }
6328
- memoize2.Cache = MapCache_default;
6329
- var memoize_default = memoize2, MAX_MEMOIZE_SIZE = 500;
6223
+ memoize.Cache = MapCache_default;
6224
+ var memoize_default = memoize, MAX_MEMOIZE_SIZE = 500;
6330
6225
  function memoizeCapped(func) {
6331
6226
  var result = memoize_default(func, function(key) {
6332
6227
  return cache.size === MAX_MEMOIZE_SIZE && cache.clear(), key;
@@ -6560,7 +6455,7 @@ var Canvas = (props) => {
6560
6455
  };
6561
6456
 
6562
6457
  // src/blocks/blocks/Controls.tsx
6563
- import React40, { useContext as useContext6 } from "react";
6458
+ import React40, { useContext as useContext7 } from "react";
6564
6459
  import { filterArgTypes as filterArgTypes2 } from "storybook/preview-api";
6565
6460
 
6566
6461
  // src/blocks/blocks/useArgs.ts
@@ -6606,6 +6501,10 @@ var useGlobals = (story, context) => {
6606
6501
  }, [context.channel]), [globals];
6607
6502
  };
6608
6503
 
6504
+ // src/blocks/blocks/usePrimaryStory.ts
6505
+ import { useContext as useContext6 } from "react";
6506
+ var usePrimaryStory = () => useContext6(DocsContext).componentStories().find((story) => story.tags.includes("autodocs"));
6507
+
6609
6508
  // src/blocks/blocks/Controls.tsx
6610
6509
  function extractComponentArgTypes2(component, parameters) {
6611
6510
  let { extractArgTypes } = parameters.docs || {};
@@ -6614,10 +6513,10 @@ function extractComponentArgTypes2(component, parameters) {
6614
6513
  return extractArgTypes(component);
6615
6514
  }
6616
6515
  var Controls3 = (props) => {
6617
- let { of } = props;
6618
- if ("of" in props && of === void 0)
6619
- throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");
6620
- let context = useContext6(DocsContext), { story } = context.resolveOf(of || "story", ["story"]), { parameters, argTypes, component, subcomponents } = story, controlsParameters = parameters.docs?.controls || {}, include = props.include ?? controlsParameters.include, exclude = props.exclude ?? controlsParameters.exclude, sort = props.sort ?? controlsParameters.sort, [args, updateArgs, resetArgs] = useArgs(story, context), [globals] = useGlobals(story, context), filteredArgTypes = filterArgTypes2(argTypes, include, exclude);
6516
+ let { of } = props, context = useContext7(DocsContext), primaryStory = usePrimaryStory(), story = of ? context.resolveOf(of, ["story"]).story : primaryStory;
6517
+ if (!story)
6518
+ return null;
6519
+ let { parameters, argTypes, component, subcomponents } = story, controlsParameters = parameters.docs?.controls || {}, include = props.include ?? controlsParameters.include, exclude = props.exclude ?? controlsParameters.exclude, sort = props.sort ?? controlsParameters.sort, [args, updateArgs, resetArgs] = useArgs(story, context), [globals] = useGlobals(story, context), filteredArgTypes = filterArgTypes2(argTypes, include, exclude);
6621
6520
  if (!(!!subcomponents && Object.keys(subcomponents || {}).length > 0))
6622
6521
  return Object.keys(filteredArgTypes).length > 0 || Object.keys(args).length > 0 ? React40.createElement(
6623
6522
  ArgsTable,
@@ -6663,11 +6562,11 @@ import React42 from "react";
6663
6562
  import { dedent } from "ts-dedent";
6664
6563
 
6665
6564
  // src/blocks/blocks/mdx.tsx
6666
- import React41, { useContext as useContext7 } from "react";
6565
+ import React41, { useContext as useContext8 } from "react";
6667
6566
  import { Code, components, nameSpaceClassNames } from "storybook/internal/components";
6668
6567
  import { NAVIGATE_URL as NAVIGATE_URL2 } from "storybook/internal/core-events";
6669
6568
  import { LinkIcon } from "@storybook/icons";
6670
- import { styled as styled27 } from "storybook/theming";
6569
+ import { styled as styled28 } from "storybook/theming";
6671
6570
  var { document: document2 } = globalThis, assertIsFn = (val) => {
6672
6571
  if (typeof val != "function")
6673
6572
  throw new Error(`Expected story function, got: ${val}`);
@@ -6697,7 +6596,7 @@ function navigate(context, url) {
6697
6596
  context.channel.emit(NAVIGATE_URL2, url);
6698
6597
  }
6699
6598
  var A2 = components.a, AnchorInPage = ({ hash, children }) => {
6700
- let context = useContext7(DocsContext);
6599
+ let context = useContext8(DocsContext);
6701
6600
  return React41.createElement(
6702
6601
  A2,
6703
6602
  {
@@ -6711,7 +6610,7 @@ var A2 = components.a, AnchorInPage = ({ hash, children }) => {
6711
6610
  children
6712
6611
  );
6713
6612
  }, AnchorMdx = (props) => {
6714
- let { href, target, children, ...rest } = props, context = useContext7(DocsContext);
6613
+ let { href, target, children, ...rest } = props, context = useContext8(DocsContext);
6715
6614
  return !href || target === "_blank" || /^https?:\/\//.test(href) ? React41.createElement(A2, { ...props }) : href.startsWith("#") ? React41.createElement(AnchorInPage, { hash: href }, children) : React41.createElement(
6716
6615
  A2,
6717
6616
  {
@@ -6727,7 +6626,7 @@ var A2 = components.a, AnchorInPage = ({ hash, children }) => {
6727
6626
  }, SUPPORTED_MDX_HEADERS = ["h1", "h2", "h3", "h4", "h5", "h6"], OcticonHeaders = SUPPORTED_MDX_HEADERS.reduce(
6728
6627
  (acc, headerType) => ({
6729
6628
  ...acc,
6730
- [headerType]: styled27(headerType)({
6629
+ [headerType]: styled28(headerType)({
6731
6630
  "& svg": {
6732
6631
  position: "relative",
6733
6632
  top: "-0.1em",
@@ -6739,7 +6638,7 @@ var A2 = components.a, AnchorInPage = ({ hash, children }) => {
6739
6638
  })
6740
6639
  }),
6741
6640
  {}
6742
- ), OcticonAnchor = styled27.a(
6641
+ ), OcticonAnchor = styled28.a(
6743
6642
  () => ({
6744
6643
  float: "left",
6745
6644
  lineHeight: "inherit",
@@ -6754,7 +6653,7 @@ var A2 = components.a, AnchorInPage = ({ hash, children }) => {
6754
6653
  children,
6755
6654
  ...rest
6756
6655
  }) => {
6757
- let context = useContext7(DocsContext), OcticonHeader = OcticonHeaders[as], hash = `#${id}`;
6656
+ let context = useContext8(DocsContext), OcticonHeader = OcticonHeaders[as], hash = `#${id}`;
6758
6657
  return React41.createElement(OcticonHeader, { id, ...rest }, React41.createElement(
6759
6658
  OcticonAnchor,
6760
6659
  {
@@ -6908,7 +6807,7 @@ var { document: document3, window: globalWindow3 } = globalThis, DocsContainer =
6908
6807
  import React52 from "react";
6909
6808
 
6910
6809
  // src/blocks/blocks/Primary.tsx
6911
- import React48, { useContext as useContext8 } from "react";
6810
+ import React48 from "react";
6912
6811
 
6913
6812
  // src/blocks/blocks/DocsStory.tsx
6914
6813
  import React47 from "react";
@@ -6921,10 +6820,10 @@ import { H3 } from "storybook/internal/components";
6921
6820
  import React45 from "react";
6922
6821
  import { H2 } from "storybook/internal/components";
6923
6822
 
6924
- // ../../node_modules/github-slugger/regex.js
6823
+ // ../../../node_modules/github-slugger/regex.js
6925
6824
  var regex = /[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA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D87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g;
6926
6825
 
6927
- // ../../node_modules/github-slugger/index.js
6826
+ // ../../../node_modules/github-slugger/index.js
6928
6827
  var own = Object.hasOwnProperty, BananaSlug = class {
6929
6828
  /**
6930
6829
  * Create a new slug class.
@@ -6994,7 +6893,7 @@ var DocsStory = ({
6994
6893
  __primary = !1
6995
6894
  }) => {
6996
6895
  let { story } = useOf(of || "story", ["story"]), withToolbar = story.parameters.docs?.canvas?.withToolbar ?? withToolbarProp;
6997
- return React47.createElement(Anchor, { storyId: story.id }, expanded && React47.createElement(React47.Fragment, null, React47.createElement(Subheading, null, story.name), React47.createElement(DescriptionContainer, { of })), React47.createElement(
6896
+ return React47.createElement(Anchor, { storyId: __primary ? `primary--${story.id}` : story.id }, expanded && React47.createElement(React47.Fragment, null, React47.createElement(Subheading, null, story.name), React47.createElement(DescriptionContainer, { of })), React47.createElement(
6998
6897
  Canvas,
6999
6898
  {
7000
6899
  of,
@@ -7006,18 +6905,15 @@ var DocsStory = ({
7006
6905
  };
7007
6906
 
7008
6907
  // src/blocks/blocks/Primary.tsx
7009
- var Primary = (props) => {
7010
- let { of } = props;
7011
- if ("of" in props && of === void 0)
7012
- throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");
7013
- let { csfFile } = useOf(of || "meta", ["meta"]), primaryStory = useContext8(DocsContext).componentStoriesFromCSFFile(csfFile)[0];
6908
+ var Primary = () => {
6909
+ let primaryStory = usePrimaryStory();
7014
6910
  return primaryStory ? React48.createElement(DocsStory, { of: primaryStory.moduleExport, expanded: !1, __primary: !0, withToolbar: !0 }) : null;
7015
6911
  };
7016
6912
 
7017
6913
  // src/blocks/blocks/Stories.tsx
7018
6914
  import React49, { useContext as useContext9 } from "react";
7019
- import { styled as styled28 } from "storybook/theming";
7020
- var StyledHeading = styled28(Heading2)(({ theme }) => ({
6915
+ import { styled as styled29 } from "storybook/theming";
6916
+ var StyledHeading = styled29(Heading2)(({ theme }) => ({
7021
6917
  fontSize: `${theme.typography.size.s2 - 1}px`,
7022
6918
  fontWeight: theme.typography.weight.bold,
7023
6919
  lineHeight: "16px",