storybook 10.2.0-alpha.9 → 10.2.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/dist/_browser-chunks/{Color-E5XDEOX4.js → Color-XESOIGZP.js} +57 -3
  2. package/dist/_browser-chunks/chunk-AFVOZMXQ.js +23 -0
  3. package/dist/_browser-chunks/{chunk-3PJE6VLG.js → chunk-ASKQZAOS.js} +1 -12
  4. package/dist/_browser-chunks/chunk-IYCKG66Y.js +171 -0
  5. package/dist/_browser-chunks/chunk-LCHBOIHN.js +64 -0
  6. package/dist/_browser-chunks/{chunk-IPA5A322.js → chunk-MEXTPDJG.js} +1 -1
  7. package/dist/_browser-chunks/{chunk-54PNNATT.js → chunk-NQJGOFZV.js} +18 -1
  8. package/dist/_browser-chunks/{chunk-VUZYLZ4B.js → chunk-QOXZ7W26.js} +31 -15
  9. package/dist/_browser-chunks/{chunk-LOTN4ZCW.js → chunk-SI6AKD4S.js} +2 -2
  10. package/dist/_browser-chunks/chunk-YK43Z22A.js +263 -0
  11. package/dist/_node-chunks/{builder-manager-FTCODGJP.js → builder-manager-JEJE63VV.js} +15 -12
  12. package/dist/_node-chunks/camelcase-HALRJETF.js +62 -0
  13. package/dist/_node-chunks/{chunk-3Y5VHKPI.js → chunk-3SKE4CCB.js} +9 -9
  14. package/dist/_node-chunks/chunk-4UYAC7Y2.js +18 -0
  15. package/dist/_node-chunks/{chunk-NYUFS6LX.js → chunk-6UAQEBJX.js} +10 -10
  16. package/dist/_node-chunks/{chunk-SPOUBCPJ.js → chunk-72K4WVI5.js} +18 -14
  17. package/dist/_node-chunks/{chunk-FGI35IGB.js → chunk-7ZX5CX6B.js} +15 -69
  18. package/dist/_node-chunks/{chunk-6SH5SI6S.js → chunk-ADTWC7QJ.js} +7 -7
  19. package/dist/_node-chunks/{chunk-OUDQWDHY.js → chunk-APUXGW3Y.js} +7 -7
  20. package/dist/_node-chunks/{chunk-PZCWRKQE.js → chunk-AXDM43NU.js} +6 -6
  21. package/dist/_node-chunks/{chunk-73GYSTNZ.js → chunk-B422K4XV.js} +6 -6
  22. package/dist/_node-chunks/{chunk-WTQGSYRO.js → chunk-BJOXVTWM.js} +12 -571
  23. package/dist/_node-chunks/{chunk-LRBEW57O.js → chunk-BLGRU6F5.js} +7 -7
  24. package/dist/_node-chunks/{chunk-6ABJZZWS.js → chunk-CG47ALAV.js} +7 -7
  25. package/dist/_node-chunks/chunk-FH4FRUMP.js +23 -0
  26. package/dist/_node-chunks/{chunk-RF3L36MK.js → chunk-GBZ23FIZ.js} +125 -73
  27. package/dist/_node-chunks/{chunk-MWWAQ5S4.js → chunk-IZ3ATSWZ.js} +5262 -1480
  28. package/dist/_node-chunks/{chunk-SBPB3VWI.js → chunk-IZFEBWVB.js} +6 -6
  29. package/dist/_node-chunks/{chunk-33XC4R6P.js → chunk-KL5CKFPT.js} +9 -9
  30. package/dist/_node-chunks/{chunk-D4TCQXIF.js → chunk-MLXCYULR.js} +7 -7
  31. package/dist/_node-chunks/{chunk-LB74XOLW.js → chunk-MV2QM7P3.js} +6 -6
  32. package/dist/_node-chunks/chunk-PHX5XNP7.js +144 -0
  33. package/dist/_node-chunks/{chunk-XZ6V3G6J.js → chunk-QL6L57W7.js} +533 -143
  34. package/dist/_node-chunks/{chunk-IIBBQZLT.js → chunk-RPBXVPRB.js} +6 -6
  35. package/dist/_node-chunks/{chunk-BQX766MA.js → chunk-UH2GWMFP.js} +260 -162
  36. package/dist/_node-chunks/chunk-WNGL2VRJ.js +126 -0
  37. package/dist/_node-chunks/{chunk-CO7N5AG7.js → chunk-XAL452XB.js} +36 -14
  38. package/dist/_node-chunks/{chunk-YN6FEZAF.js → chunk-YVXXMWQO.js} +7 -7
  39. package/dist/_node-chunks/chunk-YYDL7JOC.js +61 -0
  40. package/dist/_node-chunks/{chunk-3DPKKQ6P.js → chunk-Z7FLE2TR.js} +6 -6
  41. package/dist/_node-chunks/{globby-AXGFF6I5.js → globby-4D4NBVG7.js} +11 -20
  42. package/dist/_node-chunks/{lib-ESB7KQ6D.js → lib-RM2DWHZQ.js} +7 -7
  43. package/dist/_node-chunks/{mdx-N42X6CFJ-XXQ6YIDF.js → mdx-N42X6CFJ-RAL72UTP.js} +8 -8
  44. package/dist/_node-chunks/{p-limit-P6ND7SUA.js → p-limit-6PUJQL5X.js} +18 -14
  45. package/dist/babel/index.js +10 -10
  46. package/dist/bin/core.js +12 -12
  47. package/dist/bin/dispatcher.js +11 -11
  48. package/dist/bin/loader.js +9 -9
  49. package/dist/cli/index.d.ts +1504 -424
  50. package/dist/cli/index.js +18 -18
  51. package/dist/common/index.d.ts +1319 -271
  52. package/dist/common/index.js +19 -19
  53. package/dist/components/index.d.ts +4 -1
  54. package/dist/components/index.js +228 -227
  55. package/dist/core-events/index.d.ts +23 -7
  56. package/dist/core-events/index.js +5 -1
  57. package/dist/core-server/index.d.ts +105 -3
  58. package/dist/core-server/index.js +992 -613
  59. package/dist/core-server/presets/common-manager.js +208 -160
  60. package/dist/core-server/presets/common-override-preset.js +11 -11
  61. package/dist/core-server/presets/common-preset.js +558 -4534
  62. package/dist/csf/index.d.ts +147 -15
  63. package/dist/csf/index.js +52 -23
  64. package/dist/csf-tools/index.d.ts +19 -1
  65. package/dist/csf-tools/index.js +11 -9
  66. package/dist/docs-tools/index.d.ts +2 -2
  67. package/dist/docs-tools/index.js +4 -5
  68. package/dist/manager/globals-runtime.js +2749 -6907
  69. package/dist/manager/runtime.js +2939 -2295
  70. package/dist/manager-api/index.d.ts +89 -21
  71. package/dist/manager-api/index.js +82 -23
  72. package/dist/mocking-utils/index.js +8 -8
  73. package/dist/node-logger/index.d.ts +1453 -108
  74. package/dist/node-logger/index.js +9 -9
  75. package/dist/preview/runtime.js +784 -5059
  76. package/dist/preview-api/index.d.ts +26 -1
  77. package/dist/preview-api/index.js +11 -8
  78. package/dist/router/index.js +5 -4
  79. package/dist/server-errors.js +11 -11
  80. package/dist/telemetry/index.d.ts +14 -2
  81. package/dist/telemetry/index.js +23 -22
  82. package/dist/theming/index.d.ts +5 -5
  83. package/dist/theming/index.js +21 -2
  84. package/dist/types/index.d.ts +21 -9
  85. package/dist/viewport/index.d.ts +5 -3
  86. package/dist/viewport/index.js +12 -3
  87. package/package.json +27 -26
  88. package/dist/_browser-chunks/chunk-2NDLAB5X.js +0 -363
  89. package/dist/_browser-chunks/chunk-CLSHX4VX.js +0 -4140
  90. package/dist/_browser-chunks/chunk-HPYUT3WS.js +0 -199
  91. package/dist/_browser-chunks/chunk-XCZK5QUJ.js +0 -0
  92. package/dist/_node-chunks/camelcase-5XDKQT3J.js +0 -37
  93. package/dist/_node-chunks/chunk-GXQRT5M6.js +0 -61
  94. package/dist/_node-chunks/chunk-MOQRBTWA.js +0 -70
  95. package/dist/_node-chunks/chunk-PRNP2HO6.js +0 -23
  96. package/dist/_node-chunks/chunk-VKMYOVNS.js +0 -18
  97. package/dist/_node-chunks/dist-YRSVYE5A.js +0 -121
@@ -17,7 +17,7 @@ import {
17
17
  } from "../_browser-chunks/chunk-LE2LTDW3.js";
18
18
  import {
19
19
  isTestEnvironment
20
- } from "../_browser-chunks/chunk-IPA5A322.js";
20
+ } from "../_browser-chunks/chunk-MEXTPDJG.js";
21
21
  import {
22
22
  require_memoizerific
23
23
  } from "../_browser-chunks/chunk-ZCFV7BZB.js";
@@ -1160,39 +1160,26 @@ import $HgANd$react from "react";
1160
1160
  var $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c = typeof document < "u" ? $HgANd$react.useLayoutEffect : () => {
1161
1161
  };
1162
1162
 
1163
- // ../../node_modules/@react-aria/utils/dist/useEffectEvent.mjs
1164
- import $lmaYr$react, { useRef as $lmaYr$useRef, useCallback as $lmaYr$useCallback } from "react";
1165
- var $8ae05eaa5c114e9c$var$_React_useInsertionEffect, $8ae05eaa5c114e9c$var$useEarlyEffect = ($8ae05eaa5c114e9c$var$_React_useInsertionEffect = $lmaYr$react.useInsertionEffect) !== null && $8ae05eaa5c114e9c$var$_React_useInsertionEffect !== void 0 ? $8ae05eaa5c114e9c$var$_React_useInsertionEffect : $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c;
1166
- function $8ae05eaa5c114e9c$export$7f54fc3180508a52(fn) {
1167
- let ref = $lmaYr$useRef(null);
1168
- return $8ae05eaa5c114e9c$var$useEarlyEffect(() => {
1169
- ref.current = fn;
1170
- }, [
1171
- fn
1172
- ]), $lmaYr$useCallback((...args) => {
1173
- let f = ref.current;
1174
- return f?.(...args);
1175
- }, []);
1176
- }
1177
-
1178
1163
  // ../../node_modules/@react-aria/utils/dist/useValueEffect.mjs
1179
- import { useState as $fCAlL$useState, useRef as $fCAlL$useRef } from "react";
1164
+ import { useState as $fCAlL$useState, useRef as $fCAlL$useRef, useCallback as $fCAlL$useCallback } from "react";
1180
1165
  function $1dbecbe27a04f9af$export$14d238f342723f25(defaultValue) {
1181
- let [value, setValue] = $fCAlL$useState(defaultValue), effect = $fCAlL$useRef(null), nextRef = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
1166
+ let [value, setValue] = $fCAlL$useState(defaultValue), currValue = $fCAlL$useRef(value), effect = $fCAlL$useRef(null), nextRef = $fCAlL$useRef(() => {
1182
1167
  if (!effect.current) return;
1183
1168
  let newValue = effect.current.next();
1184
1169
  if (newValue.done) {
1185
1170
  effect.current = null;
1186
1171
  return;
1187
1172
  }
1188
- value === newValue.value ? nextRef() : setValue(newValue.value);
1173
+ currValue.current === newValue.value ? nextRef.current() : setValue(newValue.value);
1189
1174
  });
1190
1175
  $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
1191
- effect.current && nextRef();
1192
- });
1193
- let queue = $8ae05eaa5c114e9c$export$7f54fc3180508a52((fn) => {
1194
- effect.current = fn(value), nextRef();
1176
+ currValue.current = value, effect.current && nextRef.current();
1195
1177
  });
1178
+ let queue = $fCAlL$useCallback((fn) => {
1179
+ effect.current = fn(currValue.current), nextRef.current();
1180
+ }, [
1181
+ nextRef
1182
+ ]);
1196
1183
  return [
1197
1184
  value,
1198
1185
  queue
@@ -1586,7 +1573,7 @@ var $65484d02dcb7eb3e$var$DOMPropNames = /* @__PURE__ */ new Set([
1586
1573
  ]), $65484d02dcb7eb3e$var$propRe = /^(data-.*)$/;
1587
1574
  function $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, opts = {}) {
1588
1575
  let { labelable, isLink: isLink2, global: global2, events = global2, propNames } = opts, filteredProps = {};
1589
- for (let prop in props) Object.prototype.hasOwnProperty.call(props, prop) && ($65484d02dcb7eb3e$var$DOMPropNames.has(prop) || labelable && $65484d02dcb7eb3e$var$labelablePropNames.has(prop) || isLink2 && $65484d02dcb7eb3e$var$linkPropNames.has(prop) || global2 && $65484d02dcb7eb3e$var$globalAttrs.has(prop) || events && $65484d02dcb7eb3e$var$globalEvents.has(prop) || prop.endsWith("Capture") && $65484d02dcb7eb3e$var$globalEvents.has(prop.slice(0, -7)) || propNames?.has(prop) || $65484d02dcb7eb3e$var$propRe.test(prop)) && (filteredProps[prop] = props[prop]);
1576
+ for (let prop in props) Object.prototype.hasOwnProperty.call(props, prop) && ($65484d02dcb7eb3e$var$DOMPropNames.has(prop) || labelable && $65484d02dcb7eb3e$var$labelablePropNames.has(prop) || isLink2 && $65484d02dcb7eb3e$var$linkPropNames.has(prop) || global2 && $65484d02dcb7eb3e$var$globalAttrs.has(prop) || events && ($65484d02dcb7eb3e$var$globalEvents.has(prop) || prop.endsWith("Capture") && $65484d02dcb7eb3e$var$globalEvents.has(prop.slice(0, -7))) || propNames?.has(prop) || $65484d02dcb7eb3e$var$propRe.test(prop)) && (filteredProps[prop] = props[prop]);
1590
1577
  return filteredProps;
1591
1578
  }
1592
1579
 
@@ -1703,6 +1690,7 @@ function $ea8dcbcb9ea1b556$export$95185d699e05d4d7(target, modifiers, setOpening
1703
1690
  ctrlKey,
1704
1691
  altKey,
1705
1692
  shiftKey,
1693
+ detail: 1,
1706
1694
  bubbles: !0,
1707
1695
  cancelable: !0
1708
1696
  });
@@ -1850,6 +1838,21 @@ function $df56164dff5785e2$export$4338b53315abf666(ref) {
1850
1838
  ]);
1851
1839
  }
1852
1840
 
1841
+ // ../../node_modules/@react-aria/utils/dist/useEffectEvent.mjs
1842
+ import $lmaYr$react, { useRef as $lmaYr$useRef, useCallback as $lmaYr$useCallback } from "react";
1843
+ var $8ae05eaa5c114e9c$var$_React_useInsertionEffect, $8ae05eaa5c114e9c$var$useEarlyEffect = ($8ae05eaa5c114e9c$var$_React_useInsertionEffect = $lmaYr$react.useInsertionEffect) !== null && $8ae05eaa5c114e9c$var$_React_useInsertionEffect !== void 0 ? $8ae05eaa5c114e9c$var$_React_useInsertionEffect : $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c;
1844
+ function $8ae05eaa5c114e9c$export$7f54fc3180508a52(fn) {
1845
+ let ref = $lmaYr$useRef(null);
1846
+ return $8ae05eaa5c114e9c$var$useEarlyEffect(() => {
1847
+ ref.current = fn;
1848
+ }, [
1849
+ fn
1850
+ ]), $lmaYr$useCallback((...args) => {
1851
+ let f = ref.current;
1852
+ return f?.(...args);
1853
+ }, []);
1854
+ }
1855
+
1853
1856
  // ../../node_modules/@react-aria/utils/dist/useUpdateEffect.mjs
1854
1857
  import { useRef as $9vW05$useRef, useEffect as $9vW05$useEffect } from "react";
1855
1858
 
@@ -1870,13 +1873,13 @@ function $9daab02d461809db$var$hasResizeObserver() {
1870
1873
  return typeof window.ResizeObserver < "u";
1871
1874
  }
1872
1875
  function $9daab02d461809db$export$683480f191c0e3ea(options) {
1873
- let { ref, box, onResize } = options;
1876
+ let { ref, box, onResize } = options, onResizeEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(onResize);
1874
1877
  $Vsl8o$useEffect(() => {
1875
1878
  let element = ref?.current;
1876
1879
  if (element)
1877
1880
  if ($9daab02d461809db$var$hasResizeObserver()) {
1878
1881
  let resizeObserverInstance = new window.ResizeObserver((entries) => {
1879
- entries.length && onResize();
1882
+ entries.length && onResizeEvent();
1880
1883
  });
1881
1884
  return resizeObserverInstance.observe(element, {
1882
1885
  box
@@ -1884,11 +1887,10 @@ function $9daab02d461809db$export$683480f191c0e3ea(options) {
1884
1887
  element && resizeObserverInstance.unobserve(element);
1885
1888
  };
1886
1889
  } else
1887
- return window.addEventListener("resize", onResize, !1), () => {
1888
- window.removeEventListener("resize", onResize, !1);
1890
+ return window.addEventListener("resize", onResizeEvent, !1), () => {
1891
+ window.removeEventListener("resize", onResizeEvent, !1);
1889
1892
  };
1890
1893
  }, [
1891
- onResize,
1892
1894
  ref,
1893
1895
  box
1894
1896
  ]);
@@ -1992,22 +1994,14 @@ function $e9faafb641e167db$export$90fc3a17d93f704c(ref, event, handler, options)
1992
1994
  ref,
1993
1995
  event,
1994
1996
  options,
1995
- isDisabled,
1996
- handleEvent
1997
+ isDisabled
1997
1998
  ]);
1998
1999
  }
1999
2000
 
2000
2001
  // ../../node_modules/@react-aria/utils/dist/scrollIntoView.mjs
2001
2002
  function $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollView, element) {
2002
- let offsetX = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, "left"), offsetY = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, "top"), width = element.offsetWidth, height = element.offsetHeight, x = scrollView.scrollLeft, y = scrollView.scrollTop, { borderTopWidth, borderLeftWidth, scrollPaddingTop, scrollPaddingRight, scrollPaddingBottom, scrollPaddingLeft } = getComputedStyle(scrollView), { scrollMarginTop, scrollMarginRight, scrollMarginBottom, scrollMarginLeft } = getComputedStyle(element), borderAdjustedX = x + parseInt(borderLeftWidth, 10), borderAdjustedY = y + parseInt(borderTopWidth, 10), maxX = borderAdjustedX + scrollView.clientWidth, maxY = borderAdjustedY + scrollView.clientHeight, scrollPaddingTopNumber = parseInt(scrollPaddingTop, 10) || 0, scrollPaddingBottomNumber = parseInt(scrollPaddingBottom, 10) || 0, scrollPaddingRightNumber = parseInt(scrollPaddingRight, 10) || 0, scrollPaddingLeftNumber = parseInt(scrollPaddingLeft, 10) || 0, scrollMarginTopNumber = parseInt(scrollMarginTop, 10) || 0, scrollMarginBottomNumber = parseInt(scrollMarginBottom, 10) || 0, scrollMarginRightNumber = parseInt(scrollMarginRight, 10) || 0, scrollMarginLeftNumber = parseInt(scrollMarginLeft, 10) || 0, targetLeft = offsetX - scrollMarginLeftNumber, targetRight = offsetX + width + scrollMarginRightNumber, targetTop = offsetY - scrollMarginTopNumber, targetBottom = offsetY + height + scrollMarginBottomNumber, scrollPortLeft = x + parseInt(borderLeftWidth, 10) + scrollPaddingLeftNumber, scrollPortRight = maxX - scrollPaddingRightNumber, scrollPortTop = y + parseInt(borderTopWidth, 10) + scrollPaddingTopNumber, scrollPortBottom = maxY - scrollPaddingBottomNumber;
2003
- if ((targetLeft > scrollPortLeft || targetRight < scrollPortRight) && (targetLeft <= x + scrollPaddingLeftNumber ? x = targetLeft - parseInt(borderLeftWidth, 10) - scrollPaddingLeftNumber : targetRight > maxX - scrollPaddingRightNumber && (x += targetRight - maxX + scrollPaddingRightNumber)), (targetTop > scrollPortTop || targetBottom < scrollPortBottom) && (targetTop <= borderAdjustedY + scrollPaddingTopNumber ? y = targetTop - parseInt(borderTopWidth, 10) - scrollPaddingTopNumber : targetBottom > maxY - scrollPaddingBottomNumber && (y += targetBottom - maxY + scrollPaddingBottomNumber)), process.env.NODE_ENV === "test") {
2004
- scrollView.scrollLeft = x, scrollView.scrollTop = y;
2005
- return;
2006
- }
2007
- scrollView.scrollTo({
2008
- left: x,
2009
- top: y
2010
- });
2003
+ let offsetX = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, "left"), offsetY = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, "top"), width = element.offsetWidth, height = element.offsetHeight, x = scrollView.scrollLeft, y = scrollView.scrollTop, { borderTopWidth, borderLeftWidth, scrollPaddingTop, scrollPaddingRight, scrollPaddingBottom, scrollPaddingLeft } = getComputedStyle(scrollView), borderAdjustedX = x + parseInt(borderLeftWidth, 10), borderAdjustedY = y + parseInt(borderTopWidth, 10), maxX = borderAdjustedX + scrollView.clientWidth, maxY = borderAdjustedY + scrollView.clientHeight, scrollPaddingTopNumber = parseInt(scrollPaddingTop, 10) || 0, scrollPaddingBottomNumber = parseInt(scrollPaddingBottom, 10) || 0, scrollPaddingRightNumber = parseInt(scrollPaddingRight, 10) || 0, scrollPaddingLeftNumber = parseInt(scrollPaddingLeft, 10) || 0;
2004
+ offsetX <= x + scrollPaddingLeftNumber ? x = offsetX - parseInt(borderLeftWidth, 10) - scrollPaddingLeftNumber : offsetX + width > maxX - scrollPaddingRightNumber && (x += offsetX + width - maxX + scrollPaddingRightNumber), offsetY <= borderAdjustedY + scrollPaddingTopNumber ? y = offsetY - parseInt(borderTopWidth, 10) - scrollPaddingTopNumber : offsetY + height > maxY - scrollPaddingBottomNumber && (y += offsetY + height - maxY + scrollPaddingBottomNumber), scrollView.scrollLeft = x, scrollView.scrollTop = y;
2011
2005
  }
2012
2006
  function $2f04cbc44ee30ce0$var$relativeOffset(ancestor, child, axis) {
2013
2007
  let prop = axis === "left" ? "offsetLeft" : "offsetTop", sum = 0;
@@ -2022,8 +2016,12 @@ function $2f04cbc44ee30ce0$var$relativeOffset(ancestor, child, axis) {
2022
2016
  }
2023
2017
  function $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts) {
2024
2018
  if (targetElement && document.contains(targetElement)) {
2025
- let root = document.scrollingElement || document.documentElement;
2026
- if (!(window.getComputedStyle(root).overflow === "hidden") && !$c87311424ea30a05$export$6446a186d09e379e()) {
2019
+ let root = document.scrollingElement || document.documentElement, isScrollPrevented = window.getComputedStyle(root).overflow === "hidden";
2020
+ if (isScrollPrevented) {
2021
+ let scrollParents = $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(targetElement);
2022
+ isScrollPrevented || scrollParents.push(root);
2023
+ for (let scrollParent of scrollParents) $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollParent, targetElement);
2024
+ } else {
2027
2025
  var _targetElement_scrollIntoView;
2028
2026
  let { left: originalLeft, top: originalTop } = targetElement.getBoundingClientRect();
2029
2027
  targetElement == null || (_targetElement_scrollIntoView = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView === void 0 || _targetElement_scrollIntoView.call(targetElement, {
@@ -2039,9 +2037,6 @@ function $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts) {
2039
2037
  block: "nearest"
2040
2038
  });
2041
2039
  }
2042
- } else {
2043
- let scrollParents = $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(targetElement);
2044
- for (let scrollParent of scrollParents) $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollParent, targetElement);
2045
2040
  }
2046
2041
  }
2047
2042
  }
@@ -2191,26 +2186,25 @@ function $b4b717babfbb907b$var$isInert(element) {
2191
2186
  }
2192
2187
 
2193
2188
  // ../../node_modules/@react-stately/utils/dist/useControlledState.mjs
2194
- import { useState as $3whtM$useState, useRef as $3whtM$useRef, useEffect as $3whtM$useEffect, useCallback as $3whtM$useCallback } from "react";
2189
+ import $3whtM$react, { useState as $3whtM$useState, useRef as $3whtM$useRef, useEffect as $3whtM$useEffect, useReducer as $3whtM$useReducer, useCallback as $3whtM$useCallback } from "react";
2190
+ var $458b0a5536c1a7cf$var$_React_useInsertionEffect, $458b0a5536c1a7cf$var$useEarlyEffect = typeof document < "u" ? ($458b0a5536c1a7cf$var$_React_useInsertionEffect = $3whtM$react.useInsertionEffect) !== null && $458b0a5536c1a7cf$var$_React_useInsertionEffect !== void 0 ? $458b0a5536c1a7cf$var$_React_useInsertionEffect : $3whtM$react.useLayoutEffect : () => {
2191
+ };
2195
2192
  function $458b0a5536c1a7cf$export$40bfa8c7b0832715(value, defaultValue, onChange) {
2196
- let [stateValue, setStateValue] = $3whtM$useState(value || defaultValue), isControlledRef = $3whtM$useRef(value !== void 0), isControlled = value !== void 0;
2193
+ let [stateValue, setStateValue] = $3whtM$useState(value || defaultValue), valueRef = $3whtM$useRef(stateValue), isControlledRef = $3whtM$useRef(value !== void 0), isControlled = value !== void 0;
2197
2194
  $3whtM$useEffect(() => {
2198
2195
  let wasControlled = isControlledRef.current;
2199
2196
  wasControlled !== isControlled && process.env.NODE_ENV !== "production" && console.warn(`WARN: A component changed from ${wasControlled ? "controlled" : "uncontrolled"} to ${isControlled ? "controlled" : "uncontrolled"}.`), isControlledRef.current = isControlled;
2200
2197
  }, [
2201
2198
  isControlled
2202
2199
  ]);
2203
- let currentValue = isControlled ? value : stateValue, setValue = $3whtM$useCallback((value2, ...args) => {
2204
- let onChangeCaller = (value3, ...onChangeArgs) => {
2205
- onChange && (Object.is(currentValue, value3) || onChange(value3, ...onChangeArgs)), isControlled || (currentValue = value3);
2206
- };
2207
- typeof value2 == "function" ? (process.env.NODE_ENV !== "production" && console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), setStateValue((oldValue, ...functionArgs) => {
2208
- let interceptedValue = value2(isControlled ? currentValue : oldValue, ...functionArgs);
2209
- return onChangeCaller(interceptedValue, ...args), isControlled ? oldValue : interceptedValue;
2210
- })) : (isControlled || setStateValue(value2), onChangeCaller(value2, ...args));
2200
+ let currentValue = isControlled ? value : stateValue;
2201
+ $458b0a5536c1a7cf$var$useEarlyEffect(() => {
2202
+ valueRef.current = currentValue;
2203
+ });
2204
+ let [, forceUpdate] = $3whtM$useReducer(() => ({}), {}), setValue = $3whtM$useCallback((value2, ...args) => {
2205
+ let newValue = typeof value2 == "function" ? value2(valueRef.current) : value2;
2206
+ Object.is(valueRef.current, newValue) || (valueRef.current = newValue, setStateValue(newValue), forceUpdate(), onChange?.(newValue, ...args));
2211
2207
  }, [
2212
- isControlled,
2213
- currentValue,
2214
2208
  onChange
2215
2209
  ]);
2216
2210
  return [
@@ -8774,19 +8768,44 @@ var ActionListItem = styled30.li(
8774
8768
  justifyContent: "space-between",
8775
8769
  flex: "0 0 auto",
8776
8770
  overflow: "hidden",
8771
+ minHeight: 32,
8777
8772
  gap: 4,
8778
8773
  fontSize: theme.typography.size.s1,
8779
8774
  fontWeight: active ? theme.typography.weight.bold : theme.typography.weight.regular,
8780
- color: active ? theme.color.secondary : theme.color.defaultText,
8781
- "--listbox-item-muted-color": active ? theme.color.secondary : theme.color.mediumdark,
8775
+ color: active ? "var(--listbox-item-active-color)" : theme.color.defaultText,
8776
+ "--listbox-item-active-color": theme.base === "light" ? curriedDarken$1(0.1, theme.color.secondary) : theme.color.secondary,
8777
+ "--listbox-item-muted-color": active ? "var(--listbox-item-active-color)" : theme.color.mediumdark,
8778
+ '&[aria-disabled="true"]': {
8779
+ opacity: 0.5,
8780
+ cursor: "not-allowed"
8781
+ },
8782
+ '&[aria-selected="true"]': {
8783
+ color: "var(--listbox-item-active-color)",
8784
+ fontWeight: theme.typography.weight.bold,
8785
+ "--listbox-item-muted-color": "var(--listbox-item-active-color)"
8786
+ },
8782
8787
  "&:not(:hover, :has(:focus-visible)) svg + input": {
8783
8788
  position: "absolute",
8784
8789
  opacity: 0
8785
8790
  },
8791
+ '&[role="option"]': {
8792
+ cursor: "pointer",
8793
+ borderRadius: theme.input.borderRadius,
8794
+ outlineOffset: -2,
8795
+ padding: "0 9px",
8796
+ gap: 8,
8797
+ "&:hover": {
8798
+ background: curriedTransparentize$1(0.86, theme.color.secondary)
8799
+ },
8800
+ "&:focus-visible": {
8801
+ outline: `2px solid ${theme.color.secondary}`
8802
+ }
8803
+ },
8786
8804
  "@supports (interpolate-size: allow-keywords)": {
8787
8805
  interpolateSize: "allow-keywords",
8788
- transition: "all var(--transition-duration, 0.2s)",
8789
- transitionBehavior: "allow-discrete"
8806
+ transitionBehavior: "allow-discrete",
8807
+ transitionDuration: "var(--transition-duration, 0.2s)",
8808
+ transitionProperty: "opacity, block-size, content-visibility"
8790
8809
  },
8791
8810
  "@media (prefers-reduced-motion: reduce)": {
8792
8811
  transition: "none"
@@ -8828,12 +8847,13 @@ var ActionListItem = styled30.li(
8828
8847
  opacity: 0,
8829
8848
  paddingInline: 0
8830
8849
  }
8831
- })), StyledButton2 = styled30(Button)({
8850
+ })), StyledButton2 = styled30(Button)(({ size }) => ({
8851
+ gap: size === "small" ? 6 : 8,
8832
8852
  "&:focus-visible": {
8833
8853
  // Prevent focus outline from being cut off by overflow: hidden
8834
8854
  outlineOffset: -2
8835
8855
  }
8836
- }), StyledToggleButton = styled30(ToggleButton)({
8856
+ })), StyledToggleButton = styled30(ToggleButton)({
8837
8857
  "&:focus-visible": {
8838
8858
  // Prevent focus outline from being cut off by overflow: hidden
8839
8859
  outlineOffset: -2
@@ -8847,6 +8867,8 @@ var ActionListItem = styled30.li(
8847
8867
  return React16.createElement(StyledToggleButton, { ...props, variant, padding, size, ref });
8848
8868
  }
8849
8869
  ), ActionListAction = styled30(ActionListButton)(({ theme }) => ({
8870
+ height: "auto",
8871
+ minHeight: 32,
8850
8872
  flex: "0 1 100%",
8851
8873
  textAlign: "start",
8852
8874
  justifyContent: "space-between",
@@ -8862,32 +8884,40 @@ var ActionListItem = styled30.li(
8862
8884
  outline: `2px solid ${theme.color.secondary}`,
8863
8885
  outlineOffset: -2
8864
8886
  }
8865
- })), ActionListLink = (props) => React16.createElement(ActionListAction, { as: "a", ...props }), ActionListText = styled30.div({
8887
+ })), ActionListLink = (props) => React16.createElement(ActionListAction, { as: "a", ...props }), ActionListText = styled30.div(({ theme }) => ({
8866
8888
  display: "flex",
8867
- alignItems: "center",
8868
- gap: 8,
8889
+ flexDirection: "column",
8890
+ justifyContent: "center",
8869
8891
  flexGrow: 1,
8870
8892
  minWidth: 0,
8871
8893
  padding: "8px 0",
8872
8894
  lineHeight: "16px",
8873
- "& span": {
8895
+ "& > *": {
8896
+ margin: 0,
8897
+ whiteSpace: "normal"
8898
+ },
8899
+ "& > span": {
8874
8900
  overflow: "hidden",
8875
8901
  textOverflow: "ellipsis",
8876
8902
  whiteSpace: "nowrap"
8877
8903
  },
8904
+ "& small": {
8905
+ fontSize: "inherit",
8906
+ color: theme.textMutedColor
8907
+ },
8878
8908
  "&:first-child": {
8879
8909
  paddingLeft: 8
8880
8910
  },
8881
8911
  "&:last-child": {
8882
8912
  paddingRight: 8
8883
8913
  },
8884
- "button > &:first-child": {
8914
+ 'button > &:first-child, [role="option"] > &:first-child': {
8885
8915
  paddingLeft: 0
8886
8916
  },
8887
- "button > &:last-child": {
8917
+ 'button > &:last-child, [role="option"] > &:last-child': {
8888
8918
  paddingRight: 0
8889
8919
  }
8890
- }), ActionListIcon = styled30.div({
8920
+ })), ActionListIcon = styled30.div({
8891
8921
  display: "flex",
8892
8922
  alignItems: "center",
8893
8923
  justifyContent: "center",
@@ -9083,8 +9113,8 @@ var fadeInOut = keyframes({
9083
9113
  }
9084
9114
  }
9085
9115
  })), Card = Object.assign(
9086
- forwardRef7(function({ outlineAnimation = "none", outlineColor, ...props }, ref) {
9087
- return React18.createElement(CardOutline, { animation: outlineAnimation, color: outlineColor, ref }, React18.createElement(CardContent, { ...props }));
9116
+ forwardRef7(function({ outlineAnimation = "none", outlineColor, outlineAttrs = {}, ...props }, ref) {
9117
+ return React18.createElement(CardOutline, { animation: outlineAnimation, color: outlineColor, ref, ...outlineAttrs }, React18.createElement(CardContent, { ...props }));
9088
9118
  }),
9089
9119
  {
9090
9120
  Content: CardContent,
@@ -9299,7 +9329,7 @@ var fadeIn = keyframes2({
9299
9329
  outline: "none"
9300
9330
  }
9301
9331
  }),
9302
- ({ width, height, $variant, $status, $transitionDuration }) => $variant === "dialog" ? {
9332
+ ({ theme, width, height, $variant, $status, $transitionDuration }) => $variant === "dialog" ? {
9303
9333
  top: "50%",
9304
9334
  left: "50%",
9305
9335
  width: width ?? 740,
@@ -9319,9 +9349,12 @@ var fadeIn = keyframes2({
9319
9349
  bottom: "0",
9320
9350
  left: "0",
9321
9351
  right: "0",
9352
+ borderRadius: "10px 10px 0 0",
9353
+ overflow: "hidden",
9322
9354
  width: width ?? "100%",
9323
9355
  height: height ?? "80%",
9324
9356
  maxWidth: "100%",
9357
+ background: theme.background.content,
9325
9358
  "@supports (interpolate-size: allow-keywords)": {
9326
9359
  interpolateSize: "allow-keywords"
9327
9360
  },
@@ -9345,6 +9378,7 @@ var fadeIn = keyframes2({
9345
9378
  return React19.createElement(
9346
9379
  Button,
9347
9380
  {
9381
+ type: "button",
9348
9382
  padding: "small",
9349
9383
  ariaLabel: "Close modal",
9350
9384
  variant: "ghost",
@@ -9695,9 +9729,9 @@ var ZoomIFrame = class extends Component {
9695
9729
  setIframeInnerZoom(scale) {
9696
9730
  try {
9697
9731
  Object.assign(this.iframe.contentDocument.body.style, {
9698
- width: `${scale * 100}%`,
9699
- height: `${scale * 100}%`,
9700
- transform: `scale(${1 / scale})`,
9732
+ width: `${1 / scale * 100}%`,
9733
+ height: `${1 / scale * 100}%`,
9734
+ transform: `scale(${scale})`,
9701
9735
  transformOrigin: "top left"
9702
9736
  });
9703
9737
  } catch {
@@ -9706,9 +9740,9 @@ var ZoomIFrame = class extends Component {
9706
9740
  }
9707
9741
  setIframeZoom(scale) {
9708
9742
  Object.assign(this.iframe.style, {
9709
- width: `${scale * 100}%`,
9710
- height: `${scale * 100}%`,
9711
- transform: `scale(${1 / scale})`,
9743
+ width: `${1 / scale * 100}%`,
9744
+ height: `${1 / scale * 100}%`,
9745
+ transform: `scale(${scale})`,
9712
9746
  transformOrigin: "top left"
9713
9747
  });
9714
9748
  }
@@ -9762,7 +9796,7 @@ ${input}`);
9762
9796
  // src/components/components/Select/Select.tsx
9763
9797
  import React37, { forwardRef as forwardRef12, useCallback as useCallback8, useEffect as useEffect7, useMemo as useMemo4, useRef as useRef7, useState as useState11 } from "react";
9764
9798
  import { RefreshIcon } from "@storybook/icons";
9765
- import { styled as styled48, useTheme } from "storybook/theming";
9799
+ import { styled as styled47, useTheme } from "storybook/theming";
9766
9800
 
9767
9801
  // src/components/components/Form/Form.tsx
9768
9802
  import { styled as styled44 } from "storybook/theming";
@@ -9915,8 +9949,9 @@ var sizes = (({ size }) => {
9915
9949
  outline: "1px solid highlight"
9916
9950
  }
9917
9951
  },
9918
- "&[disabled]": {
9919
- background: theme.base === "light" ? theme.color.lighter : "transparent"
9952
+ '&[disabled], &[aria-disabled="true"]': {
9953
+ background: theme.base === "light" ? theme.color.lighter : "transparent",
9954
+ cursor: "not-allowed"
9920
9955
  },
9921
9956
  "&:-webkit-autofill": { WebkitBoxShadow: `0 0 0 3em ${theme.color.lightest} inset` },
9922
9957
  "&::placeholder": {
@@ -10357,56 +10392,12 @@ Popover.displayName = "Popover";
10357
10392
 
10358
10393
  // src/components/components/Select/SelectOption.tsx
10359
10394
  import React36 from "react";
10360
- import { styled as styled46 } from "storybook/theming";
10361
- var Item = styled46("li")(({ theme }) => ({
10362
- padding: "6px 12px",
10363
- fontSize: 12,
10364
- lineHeight: 1.5,
10365
- background: "transparent",
10366
- color: theme.color.defaultText,
10367
- cursor: "pointer",
10368
- borderRadius: 4,
10369
- '&[aria-disabled="true"]': {
10370
- opacity: 0.5,
10371
- cursor: "not-allowed"
10372
- },
10373
- '&[aria-selected="true"]': {
10374
- color: theme.base === "light" ? curriedDarken$1(0.1, theme.color.secondary) : theme.color.secondary,
10375
- fontWeight: theme.typography.weight.bold
10376
- },
10377
- ":hover": {
10378
- background: curriedTransparentize$1(0.93, theme.color.secondary)
10379
- },
10380
- ":focus-visible": {
10381
- background: theme.background.hoverable,
10382
- outline: `2px solid ${theme.barSelectedColor}`,
10383
- outlineOffset: 1,
10384
- borderRadius: 2
10385
- },
10386
- display: "flex",
10387
- alignItems: "flex-start",
10388
- gap: 8
10389
- })), Row2 = styled46("div")({
10390
- display: "flex",
10391
- flexDirection: "row",
10392
- gap: 4,
10393
- alignItems: "center"
10394
- }), Col2 = styled46("div")({
10395
- display: "flex",
10396
- flexDirection: "column",
10397
- flexGrow: 1
10398
- }), Icon = styled46("span")(() => ({
10399
- display: "block",
10400
- height: "1rem",
10401
- width: "1rem"
10402
- })), Title3 = styled46("span")(({}) => ({})), Description2 = styled46("span")(({ theme }) => ({
10403
- fontSize: 11,
10404
- color: theme.textMutedColor
10405
- })), SelectOption = ({
10395
+ var SelectOption = ({
10406
10396
  id,
10407
10397
  title,
10408
10398
  description,
10409
10399
  icon,
10400
+ aside,
10410
10401
  children,
10411
10402
  isSelected,
10412
10403
  isActive,
@@ -10416,7 +10407,7 @@ var Item = styled46("li")(({ theme }) => ({
10416
10407
  shouldLookDisabled = !1,
10417
10408
  ...props
10418
10409
  }) => React36.createElement(
10419
- Item,
10410
+ ActionList.Item,
10420
10411
  {
10421
10412
  ...props,
10422
10413
  id,
@@ -10428,12 +10419,12 @@ var Item = styled46("li")(({ theme }) => ({
10428
10419
  onFocus,
10429
10420
  onKeyDown
10430
10421
  },
10431
- children ?? React36.createElement(Row2, null, icon && React36.createElement(Icon, null, icon), React36.createElement(Col2, null, React36.createElement(Title3, null, title), description && React36.createElement(Description2, null, description)))
10422
+ children ?? React36.createElement(React36.Fragment, null, icon && React36.createElement(ActionList.Icon, null, icon), React36.createElement(ActionList.Text, null, React36.createElement("p", null, title), description && React36.createElement("small", null, description)), aside)
10432
10423
  );
10433
10424
  SelectOption.displayName = "SelectOption";
10434
10425
 
10435
10426
  // src/components/components/Select/helpers.tsx
10436
- import { styled as styled47 } from "storybook/theming";
10427
+ import { styled as styled46 } from "storybook/theming";
10437
10428
  var PAGE_STEP_SIZE = 5, UNDEFINED_VALUE = Symbol.for("undefined");
10438
10429
  function isLiteralValue(value) {
10439
10430
  return value == null || typeof value == "string" || typeof value == "number" || typeof value == "boolean" || typeof value == "symbol";
@@ -10455,7 +10446,7 @@ function valueToExternal(value) {
10455
10446
  function externalToValue(value) {
10456
10447
  return value === void 0 ? UNDEFINED_VALUE : value;
10457
10448
  }
10458
- var Listbox = styled47("ul")({
10449
+ var Listbox = styled46("ul")({
10459
10450
  minWidth: 180,
10460
10451
  height: "100%",
10461
10452
  borderRadius: 6,
@@ -10469,7 +10460,7 @@ var Listbox = styled47("ul")({
10469
10460
  function valueToId(parentId, { value }) {
10470
10461
  return `${parentId}-opt-${String(value) ?? "sb-reset"}`;
10471
10462
  }
10472
- var SelectedOptionCount = styled48.span(({ theme }) => ({
10463
+ var SelectedOptionCount = styled47.span(({ theme }) => ({
10473
10464
  appearance: "none",
10474
10465
  color: theme.textMutedColor,
10475
10466
  fontSize: 12
@@ -10477,13 +10468,13 @@ var SelectedOptionCount = styled48.span(({ theme }) => ({
10477
10468
  function setSelectedFromDefault(options, defaultOptions) {
10478
10469
  return defaultOptions === void 0 ? [] : isLiteralValue(defaultOptions) ? options.filter((opt) => opt.value === defaultOptions).map(optionToInternal) : options.filter((opt) => defaultOptions.some((def) => opt.value === def)).map(optionToInternal);
10479
10470
  }
10480
- var StyledButton3 = styled48(Button)(
10471
+ var StyledButton3 = styled47(Button)(
10481
10472
  ({ $isOpen: isOpen, $hasSelection: hasSelection, theme }) => isOpen || hasSelection ? {
10482
10473
  boxShadow: "none",
10483
10474
  background: curriedTransparentize$1(0.93, theme.barSelectedColor),
10484
10475
  color: theme.base === "light" ? curriedDarken$1(0.1, theme.color.secondary) : theme.color.secondary
10485
10476
  } : {}
10486
- ), Underlay = styled48.div({
10477
+ ), Underlay = styled47.div({
10487
10478
  position: "fixed",
10488
10479
  inset: 0,
10489
10480
  // This will do for now, our popovers use the max z-index of 2147483647. We'll want to
@@ -10542,12 +10533,16 @@ var StyledButton3 = styled48(Button)(
10542
10533
  ariaLabel,
10543
10534
  ...props
10544
10535
  }, ref) => {
10545
- let [isOpen, setIsOpen] = useState11(props.defaultOpen || !1), triggerRef = $df56164dff5785e2$export$4338b53315abf666(ref), id = useMemo4(() => "select-" + Math.random().toString(36).substring(2, 15), []), listboxId = `${id}-listbox`, listboxRef = useRef7(null), otState = $fc909762b330b746$export$61c6a8c84e605fb6({
10536
+ let [isOpen, setIsOpen] = useState11(props.defaultOpen || !1), [shouldRefocusTrigger, setShouldRefocusTrigger] = useState11(!1), triggerRef = $df56164dff5785e2$export$4338b53315abf666(ref), id = useMemo4(() => "select-" + Math.random().toString(36).substring(2, 15), []), listboxId = `${id}-listbox`, listboxRef = useRef7(null), otState = $fc909762b330b746$export$61c6a8c84e605fb6({
10546
10537
  isOpen: isOpen && !disabled,
10547
10538
  onOpenChange: setIsOpen
10548
10539
  }), handleClose = useCallback8(() => {
10549
- setIsOpen(!1), triggerRef.current?.focus();
10550
- }, [triggerRef]), [selectedOptions, setSelectedOptions] = useState11(
10540
+ setIsOpen(!1), setShouldRefocusTrigger(!0);
10541
+ }, []);
10542
+ useEffect7(() => {
10543
+ !otState.isOpen && shouldRefocusTrigger && (triggerRef.current?.focus(), setShouldRefocusTrigger(!1));
10544
+ }, [otState.isOpen, shouldRefocusTrigger, triggerRef]);
10545
+ let [selectedOptions, setSelectedOptions] = useState11(
10551
10546
  setSelectedFromDefault(calleeOptions, defaultOptions)
10552
10547
  ), handleSelectOption = useCallback8(
10553
10548
  (option) => {
@@ -10577,8 +10572,8 @@ var StyledButton3 = styled48(Button)(
10577
10572
  let [activeOption, setActiveOptionState] = useState11(
10578
10573
  void 0
10579
10574
  ), setActiveOption = useCallback8(
10580
- (option) => {
10581
- setActiveOptionState(optionOrResetToInternal(option)), multiSelect || handleSelectOption(optionOrResetToInternal(option));
10575
+ (option, changeSelection = !0) => {
10576
+ setActiveOptionState(optionOrResetToInternal(option)), !multiSelect && changeSelection && handleSelectOption(optionOrResetToInternal(option));
10582
10577
  },
10583
10578
  [multiSelect, handleSelectOption]
10584
10579
  ), moveActiveOptionDown = useCallback8(
@@ -10685,6 +10680,7 @@ var StyledButton3 = styled48(Button)(
10685
10680
  key: option.value === void 0 ? "sb-reset" : String(option.value),
10686
10681
  title: option.title,
10687
10682
  description: option.description,
10683
+ aside: option.aside,
10688
10684
  icon: !isReset && multiSelect ? (
10689
10685
  // Purely decorative.
10690
10686
  React37.createElement(Form.Checkbox, { checked: isSelected, hidden: !0, role: "presentation" })
@@ -10695,7 +10691,7 @@ var StyledButton3 = styled48(Button)(
10695
10691
  onClick: () => {
10696
10692
  handleSelectOption(option), multiSelect || handleClose();
10697
10693
  },
10698
- onFocus: () => setActiveOption(externalOption),
10694
+ onFocus: () => setActiveOption(externalOption, !1),
10699
10695
  shouldLookDisabled: isReset && selectedOptions.length === 0 && multiSelect,
10700
10696
  onKeyDown: (e) => {
10701
10697
  e.key === "Enter" || e.key === " " ? (e.preventDefault(), handleSelectOption(option), multiSelect || handleClose()) : e.key === "Tab" && (multiSelect || handleSelectOption(option), handleClose());
@@ -14293,38 +14289,38 @@ var LazyWithTooltip = lazy2(
14293
14289
  // src/components/components/tooltip/TooltipMessage.tsx
14294
14290
  import React41 from "react";
14295
14291
  import { deprecate as deprecate5 } from "storybook/internal/client-logger";
14296
- import { styled as styled49 } from "storybook/theming";
14297
- var Title4 = styled49.div(({ theme }) => ({
14292
+ import { styled as styled48 } from "storybook/theming";
14293
+ var Title3 = styled48.div(({ theme }) => ({
14298
14294
  fontWeight: theme.typography.weight.bold
14299
- })), Desc2 = styled49.span(), Links = styled49.div(({ theme }) => ({
14295
+ })), Desc2 = styled48.span(), Links = styled48.div(({ theme }) => ({
14300
14296
  marginTop: 8,
14301
14297
  textAlign: "center",
14302
14298
  "> *": {
14303
14299
  margin: "0 8px",
14304
14300
  fontWeight: theme.typography.weight.bold
14305
14301
  }
14306
- })), Message2 = styled49.div(({ theme }) => ({
14302
+ })), Message2 = styled48.div(({ theme }) => ({
14307
14303
  color: theme.color.defaultText,
14308
14304
  lineHeight: "18px"
14309
- })), MessageWrapper = styled49.div({
14305
+ })), MessageWrapper = styled48.div({
14310
14306
  padding: 15,
14311
14307
  width: 280,
14312
14308
  boxSizing: "border-box"
14313
14309
  }), TooltipMessage = ({ title, desc, links }) => (deprecate5(
14314
14310
  "`TooltipMessage` is deprecated and will be removed in Storybook 11, use `Popover` and `PopoverProvider` instead."
14315
- ), React41.createElement(MessageWrapper, { "data-deprecated": "TooltipMessage" }, React41.createElement(Message2, null, title && React41.createElement(Title4, null, title), desc && React41.createElement(Desc2, null, desc)), links && React41.createElement(Links, null, links.map(({ title: linkTitle, ...other }) => React41.createElement(Link2, { ...other, key: linkTitle }, linkTitle)))));
14311
+ ), React41.createElement(MessageWrapper, { "data-deprecated": "TooltipMessage" }, React41.createElement(Message2, null, title && React41.createElement(Title3, null, title), desc && React41.createElement(Desc2, null, desc)), links && React41.createElement(Links, null, links.map(({ title: linkTitle, ...other }) => React41.createElement(Link2, { ...other, key: linkTitle }, linkTitle)))));
14316
14312
 
14317
14313
  // src/components/components/tooltip/TooltipLinkList.tsx
14318
14314
  import React43, { Fragment as Fragment4, useCallback as useCallback10 } from "react";
14319
14315
  import { deprecate as deprecate7 } from "storybook/internal/client-logger";
14320
- import { styled as styled51 } from "storybook/theming";
14316
+ import { styled as styled50 } from "storybook/theming";
14321
14317
 
14322
14318
  // src/components/components/tooltip/ListItem.tsx
14323
14319
  var import_memoizerific2 = __toESM(require_memoizerific(), 1);
14324
14320
  import React42, { forwardRef as forwardRef14 } from "react";
14325
14321
  import { deprecate as deprecate6 } from "storybook/internal/client-logger";
14326
- import { styled as styled50 } from "storybook/theming";
14327
- var Title5 = styled50(({ active, loading, disabled, ...rest }) => React42.createElement("span", { ...rest }))(
14322
+ import { styled as styled49 } from "storybook/theming";
14323
+ var Title4 = styled49(({ active, loading, disabled, ...rest }) => React42.createElement("span", { ...rest }))(
14328
14324
  ({ theme }) => ({
14329
14325
  color: theme.color.defaultText,
14330
14326
  // Previously was theme.typography.weight.normal but this weight does not exists in Theme
@@ -14342,7 +14338,7 @@ var Title5 = styled50(({ active, loading, disabled, ...rest }) => React42.create
14342
14338
  ({ disabled, theme }) => disabled ? {
14343
14339
  color: theme.textMutedColor
14344
14340
  } : {}
14345
- ), Right = styled50.span({
14341
+ ), Right = styled49.span({
14346
14342
  display: "flex",
14347
14343
  "& svg": {
14348
14344
  height: 12,
@@ -14350,7 +14346,7 @@ var Title5 = styled50(({ active, loading, disabled, ...rest }) => React42.create
14350
14346
  margin: "3px 0",
14351
14347
  verticalAlign: "top"
14352
14348
  }
14353
- }), Center = styled50.span(
14349
+ }), Center = styled49.span(
14354
14350
  {
14355
14351
  flex: 1,
14356
14352
  textAlign: "left",
@@ -14360,7 +14356,7 @@ var Title5 = styled50(({ active, loading, disabled, ...rest }) => React42.create
14360
14356
  // required for overflow
14361
14357
  },
14362
14358
  ({ isIndented }) => isIndented ? { marginLeft: 24 } : {}
14363
- ), CenterText = styled50.span(
14359
+ ), CenterText = styled49.span(
14364
14360
  ({ theme }) => ({
14365
14361
  fontSize: "11px",
14366
14362
  lineHeight: "14px"
@@ -14371,7 +14367,7 @@ var Title5 = styled50(({ active, loading, disabled, ...rest }) => React42.create
14371
14367
  ({ theme, disabled }) => disabled ? {
14372
14368
  color: theme.textMutedColor
14373
14369
  } : {}
14374
- ), Left = styled50.span(
14370
+ ), Left = styled49.span(
14375
14371
  ({ active, theme }) => active ? {
14376
14372
  color: theme.color.secondary
14377
14373
  } : {},
@@ -14379,7 +14375,7 @@ var Title5 = styled50(({ active, loading, disabled, ...rest }) => React42.create
14379
14375
  display: "flex",
14380
14376
  maxWidth: 14
14381
14377
  })
14382
- ), Item2 = styled50.button(
14378
+ ), Item = styled49.button(
14383
14379
  ({ theme }) => ({
14384
14380
  width: "100%",
14385
14381
  minWidth: 0,
@@ -14458,13 +14454,13 @@ var Title5 = styled50(({ active, loading, disabled, ...rest }) => React42.create
14458
14454
  } = props, commonProps = { active, disabled }, itemProps = getItemProps(props), left = icon || input;
14459
14455
  return deprecate6(
14460
14456
  "`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."
14461
- ), React42.createElement(Item2, { "data-deprecated": "ListItem", ref, ...rest, ...commonProps, ...itemProps }, React42.createElement(React42.Fragment, null, left && React42.createElement(Left, { ...commonProps }, left), title || center ? React42.createElement(Center, { isIndented: isIndented && !left }, title && React42.createElement(Title5, { ...commonProps, loading }, title), center && React42.createElement(CenterText, { ...commonProps }, center)) : null, right && React42.createElement(Right, { ...commonProps }, right)));
14457
+ ), React42.createElement(Item, { "data-deprecated": "ListItem", ref, ...rest, ...commonProps, ...itemProps }, React42.createElement(React42.Fragment, null, left && React42.createElement(Left, { ...commonProps }, left), title || center ? React42.createElement(Center, { isIndented: isIndented && !left }, title && React42.createElement(Title4, { ...commonProps, loading }, title), center && React42.createElement(CenterText, { ...commonProps }, center)) : null, right && React42.createElement(Right, { ...commonProps }, right)));
14462
14458
  });
14463
14459
  ListItem.displayName = "ListItem";
14464
14460
  var ListItem_default = ListItem;
14465
14461
 
14466
14462
  // src/components/components/tooltip/TooltipLinkList.tsx
14467
- var List = styled51.div(
14463
+ var List = styled50.div(
14468
14464
  {
14469
14465
  minWidth: 180,
14470
14466
  overflow: "hidden",
@@ -14476,12 +14472,12 @@ var List = styled51.div(
14476
14472
  borderRadius: theme.appBorderRadius + 2
14477
14473
  }),
14478
14474
  ({ theme }) => theme.base === "dark" ? { background: theme.background.content } : {}
14479
- ), Group = styled51.div(({ theme }) => ({
14475
+ ), Group = styled50.div(({ theme }) => ({
14480
14476
  padding: 4,
14481
14477
  "& + &": {
14482
14478
  borderTop: `1px solid ${theme.appBorderColor}`
14483
14479
  }
14484
- })), Item3 = ({ id, onClick, ...rest }) => {
14480
+ })), Item2 = ({ id, onClick, ...rest }) => {
14485
14481
  let { active, disabled, title, href } = rest, handleClick = useCallback10(
14486
14482
  (event) => onClick?.(event, { id, active, disabled, title, href }),
14487
14483
  [onClick, id, active, disabled, title, href]
@@ -14494,20 +14490,20 @@ var List = styled51.div(
14494
14490
  let groups = Array.isArray(links[0]) ? links : [links], isIndented = groups.some(
14495
14491
  (group) => group.some((link) => "icon" in link && link.icon || "input" in link && link.input)
14496
14492
  );
14497
- return React43.createElement(List, { "data-deprecated": "TooltipLinkList", ...props, className: "sb-list" }, groups.filter((group) => group.length).map((group, index3) => React43.createElement(Group, { key: group.map((link) => link.id).join(`~${index3}~`) }, group.map((link) => "content" in link ? React43.createElement(Fragment4, { key: link.id }, link.content) : React43.createElement(Item3, { key: link.id, isIndented, LinkWrapper, ...link })))));
14493
+ return React43.createElement(List, { "data-deprecated": "TooltipLinkList", ...props, className: "sb-list" }, groups.filter((group) => group.length).map((group, index3) => React43.createElement(Group, { key: group.map((link) => link.id).join(`~${index3}~`) }, group.map((link) => "content" in link ? React43.createElement(Fragment4, { key: link.id }, link.content) : React43.createElement(Item2, { key: link.id, isIndented, LinkWrapper, ...link })))));
14498
14494
  };
14499
14495
 
14500
14496
  // src/components/components/Tabs/Tabs.tsx
14501
14497
  import React49, { Component as Component2, forwardRef as forwardRef17, memo, useMemo as useMemo5 } from "react";
14502
14498
  import { deprecate as deprecate12 } from "storybook/internal/client-logger";
14503
14499
  import { sanitize as sanitize2 } from "storybook/internal/csf";
14504
- import { styled as styled57 } from "storybook/theming";
14500
+ import { styled as styled56 } from "storybook/theming";
14505
14501
 
14506
14502
  // src/components/components/Bar/Bar.tsx
14507
14503
  import React44, { Children as Children4, forwardRef as forwardRef15 } from "react";
14508
14504
  import { deprecate as deprecate8 } from "storybook/internal/client-logger";
14509
- import { styled as styled52 } from "storybook/theming";
14510
- var StyledBar = styled52.div(
14505
+ import { styled as styled51 } from "storybook/theming";
14506
+ var StyledBar = styled51.div(
14511
14507
  ({ backgroundColor, border = !1, innerStyle = {}, scrollable, theme }) => ({
14512
14508
  color: theme.barTextColor,
14513
14509
  width: "100%",
@@ -14529,7 +14525,7 @@ var StyledBar = styled52.div(
14529
14525
  } : {},
14530
14526
  ...innerStyle
14531
14527
  })
14532
- ), HeightPreserver = styled52.div(({ innerStyle }) => ({
14528
+ ), HeightPreserver = styled51.div(({ innerStyle }) => ({
14533
14529
  minHeight: 40,
14534
14530
  display: "flex",
14535
14531
  alignItems: "center",
@@ -14550,7 +14546,7 @@ var StyledBar = styled52.div(
14550
14546
  )
14551
14547
  );
14552
14548
  Bar.displayName = "Bar";
14553
- var Side = styled52.div(
14549
+ var Side = styled51.div(
14554
14550
  {
14555
14551
  display: "flex",
14556
14552
  whiteSpace: "nowrap",
@@ -14569,7 +14565,7 @@ var Side = styled52.div(
14569
14565
  } : {}
14570
14566
  );
14571
14567
  Side.displayName = "Side";
14572
- var BarInner = styled52.div(({ bgColor }) => ({
14568
+ var BarInner = styled51.div(({ bgColor }) => ({
14573
14569
  display: "flex",
14574
14570
  justifyContent: "space-between",
14575
14571
  position: "relative",
@@ -14578,7 +14574,7 @@ var BarInner = styled52.div(({ bgColor }) => ({
14578
14574
  height: 40,
14579
14575
  width: "100%",
14580
14576
  backgroundColor: bgColor || ""
14581
- })), BarWithoutPadding = styled52(Bar)({
14577
+ })), BarWithoutPadding = styled51(Bar)({
14582
14578
  paddingInline: 0
14583
14579
  }), FlexBar = ({ children, backgroundColor, className = "", ...rest }) => {
14584
14580
  deprecate8('FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.');
@@ -14599,7 +14595,7 @@ FlexBar.displayName = "FlexBar";
14599
14595
  // src/components/components/Tabs/Button.tsx
14600
14596
  import React45, { forwardRef as forwardRef16 } from "react";
14601
14597
  import { deprecate as deprecate9 } from "storybook/internal/client-logger";
14602
- import { isPropValid as isPropValid2, styled as styled53 } from "storybook/theming";
14598
+ import { isPropValid as isPropValid2, styled as styled52 } from "storybook/theming";
14603
14599
  var isLink = (obj) => typeof obj.props.href == "string", isButton = (obj) => typeof obj.props.href != "string";
14604
14600
  function ForwardRefFunction({ children, ...rest }, ref) {
14605
14601
  let o = { props: rest, ref };
@@ -14611,7 +14607,7 @@ function ForwardRefFunction({ children, ...rest }, ref) {
14611
14607
  }
14612
14608
  var ButtonOrLink = forwardRef16(ForwardRefFunction);
14613
14609
  ButtonOrLink.displayName = "ButtonOrLink";
14614
- var StyledTabButton = styled53(ButtonOrLink, { shouldForwardProp: isPropValid2 })(
14610
+ var StyledTabButton = styled52(ButtonOrLink, { shouldForwardProp: isPropValid2 })(
14615
14611
  {
14616
14612
  whiteSpace: "normal",
14617
14613
  display: "inline-flex",
@@ -14660,8 +14656,8 @@ TabButton.displayName = "TabButton";
14660
14656
 
14661
14657
  // src/components/components/Tabs/EmptyTabContent.tsx
14662
14658
  import React46 from "react";
14663
- import { styled as styled54 } from "storybook/theming";
14664
- var Wrapper3 = styled54.div(({ theme }) => ({
14659
+ import { styled as styled53 } from "storybook/theming";
14660
+ var Wrapper3 = styled53.div(({ theme }) => ({
14665
14661
  height: "100%",
14666
14662
  display: "flex",
14667
14663
  padding: 30,
@@ -14670,30 +14666,30 @@ var Wrapper3 = styled54.div(({ theme }) => ({
14670
14666
  flexDirection: "column",
14671
14667
  gap: 15,
14672
14668
  background: theme.background.content
14673
- })), Content2 = styled54.div({
14669
+ })), Content2 = styled53.div({
14674
14670
  display: "flex",
14675
14671
  flexDirection: "column",
14676
14672
  gap: 4,
14677
14673
  maxWidth: 415
14678
- }), Title6 = styled54.div(({ theme }) => ({
14674
+ }), Title5 = styled53.div(({ theme }) => ({
14679
14675
  fontWeight: theme.typography.weight.bold,
14680
14676
  fontSize: theme.typography.size.s2 - 1,
14681
14677
  textAlign: "center",
14682
14678
  color: theme.color.defaultText
14683
- })), Footer = styled54.div(({ theme }) => ({
14679
+ })), Footer = styled53.div(({ theme }) => ({
14684
14680
  fontSize: theme.typography.size.s2 - 1
14685
- })), Description3 = styled54.div(({ theme }) => ({
14681
+ })), Description2 = styled53.div(({ theme }) => ({
14686
14682
  fontWeight: theme.typography.weight.regular,
14687
14683
  fontSize: theme.typography.size.s2 - 1,
14688
14684
  textAlign: "center",
14689
14685
  color: theme.textMutedColor
14690
- })), EmptyTabContent = ({ title, description, footer }) => React46.createElement(Wrapper3, null, React46.createElement(Content2, null, React46.createElement(Title6, null, title), description && React46.createElement(Description3, null, description)), footer && React46.createElement(Footer, null, footer));
14686
+ })), EmptyTabContent = ({ title, description, footer }) => React46.createElement(Wrapper3, null, React46.createElement(Content2, null, React46.createElement(Title5, null, title), description && React46.createElement(Description2, null, description)), footer && React46.createElement(Footer, null, footer));
14691
14687
 
14692
14688
  // src/components/components/Tabs/Tabs.helpers.tsx
14693
14689
  import React47, { Children as Children5 } from "react";
14694
14690
  import { deprecate as deprecate10 } from "storybook/internal/client-logger";
14695
- import { styled as styled55 } from "storybook/theming";
14696
- var VisuallyHidden = styled55.div(
14691
+ import { styled as styled54 } from "storybook/theming";
14692
+ var VisuallyHidden = styled54.div(
14697
14693
  ({ active }) => active ? { display: "block" } : { display: "none" }
14698
14694
  ), childrenToList = (children) => (deprecate10("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."), Children5.toArray(children).map(
14699
14695
  // @ts-expect-error (non strict)
@@ -14716,8 +14712,8 @@ var VisuallyHidden = styled55.div(
14716
14712
  import React48, { useCallback as useCallback11, useLayoutEffect as useLayoutEffect3, useRef as useRef8, useState as useState13 } from "react";
14717
14713
  import { deprecate as deprecate11 } from "storybook/internal/client-logger";
14718
14714
  import { sanitize } from "storybook/internal/csf";
14719
- import { styled as styled56 } from "storybook/theming";
14720
- var CollapseIcon = styled56.span(({ theme, isActive }) => ({
14715
+ import { styled as styled55 } from "storybook/theming";
14716
+ var CollapseIcon = styled55.span(({ theme, isActive }) => ({
14721
14717
  display: "inline-block",
14722
14718
  width: 0,
14723
14719
  height: 0,
@@ -14727,7 +14723,7 @@ var CollapseIcon = styled56.span(({ theme, isActive }) => ({
14727
14723
  borderLeft: "3px solid transparent",
14728
14724
  borderTop: "3px solid",
14729
14725
  transition: "transform .1s ease-out"
14730
- })), AddonButton = styled56(TabButton)(({ active, theme, preActive }) => `
14726
+ })), AddonButton = styled55(TabButton)(({ active, theme, preActive }) => `
14731
14727
  color: ${preActive || active ? theme.barSelectedColor : theme.barTextColor};
14732
14728
  .addon-collapsible-icon {
14733
14729
  color: ${preActive || active ? theme.barSelectedColor : theme.barTextColor};
@@ -14836,7 +14832,7 @@ function useList(list) {
14836
14832
  }
14837
14833
 
14838
14834
  // src/components/components/Tabs/Tabs.tsx
14839
- var ignoreSsrWarning2 = "/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */", Wrapper4 = styled57.div(
14835
+ var ignoreSsrWarning2 = "/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */", Wrapper4 = styled56.div(
14840
14836
  ({ theme, bordered }) => bordered ? {
14841
14837
  backgroundClip: "padding-box",
14842
14838
  border: `1px solid ${theme.appBorderColor}`,
@@ -14853,7 +14849,7 @@ var ignoreSsrWarning2 = "/* emotion-disable-server-rendering-unsafe-selector-war
14853
14849
  } : {
14854
14850
  display: "block"
14855
14851
  }
14856
- ), StyledTabBar = styled57.div({
14852
+ ), StyledTabBar = styled56.div({
14857
14853
  overflow: "hidden",
14858
14854
  "&:first-of-type": {
14859
14855
  marginLeft: -3
@@ -14864,7 +14860,7 @@ var ignoreSsrWarning2 = "/* emotion-disable-server-rendering-unsafe-selector-war
14864
14860
  (props, ref) => (deprecate12("The `TabBar` component is deprecated. Use `TabsView` instead."), React49.createElement(StyledTabBar, { "data-deprecated": "TabBar", ...props, ref }))
14865
14861
  );
14866
14862
  TabBar.displayName = "TabBar";
14867
- var Content3 = styled57.div(
14863
+ var Content3 = styled56.div(
14868
14864
  {
14869
14865
  display: "block",
14870
14866
  position: "relative",
@@ -15008,9 +15004,10 @@ TabsState.defaultProps = {
15008
15004
 
15009
15005
  // src/components/components/Bar/Separator.tsx
15010
15006
  import React50, { Fragment as Fragment5 } from "react";
15011
- import { styled as styled58 } from "storybook/theming";
15012
- var Separator2 = styled58.span(
15007
+ import { styled as styled57 } from "storybook/theming";
15008
+ var Separator2 = styled57.span(
15013
15009
  ({ theme }) => ({
15010
+ display: "inline-block",
15014
15011
  width: 1,
15015
15012
  height: 20,
15016
15013
  background: theme.appBorderColor,
@@ -15031,7 +15028,7 @@ var interleaveSeparators = (list) => list.reduce(
15031
15028
 
15032
15029
  // src/components/components/addon-panel/addon-panel.tsx
15033
15030
  import React51, { useEffect as useEffect8, useRef as useRef9 } from "react";
15034
- import { styled as styled59 } from "storybook/theming";
15031
+ import { styled as styled58 } from "storybook/theming";
15035
15032
  var usePrevious = (value) => {
15036
15033
  let ref = useRef9();
15037
15034
  return useEffect8(() => {
@@ -15040,7 +15037,7 @@ var usePrevious = (value) => {
15040
15037
  }, useUpdate = (update, value) => {
15041
15038
  let previousValue = usePrevious(value);
15042
15039
  return update ? value : previousValue;
15043
- }, Div2 = styled59.div(({ theme }) => ({
15040
+ }, Div2 = styled58.div(({ theme }) => ({
15044
15041
  fontSize: theme.typography.size.s2 - 1,
15045
15042
  height: "100%"
15046
15043
  })), AddonPanel = ({ active, children, hasScrollbar = !0 }) => (
@@ -15270,8 +15267,8 @@ function $58d314389b21fa3f$export$773e389e644c5874(props, state, ref) {
15270
15267
  }
15271
15268
 
15272
15269
  // src/components/components/Tabs/TabList.tsx
15273
- import { styled as styled60 } from "storybook/theming";
15274
- var StyledTabButton2 = styled60.button(
15270
+ import { styled as styled59 } from "storybook/theming";
15271
+ var StyledTabButton2 = styled59.button(
15275
15272
  {
15276
15273
  whiteSpace: "normal",
15277
15274
  display: "inline-flex",
@@ -15316,13 +15313,13 @@ var StyledTabButton2 = styled60.button(
15316
15313
  color: theme.barHoverColor
15317
15314
  }
15318
15315
  }
15319
- ), TabListContainer = styled60.div({
15316
+ ), TabListContainer = styled59.div({
15320
15317
  display: "flex",
15321
15318
  alignItems: "center",
15322
15319
  flexShrink: 0,
15323
15320
  position: "relative",
15324
15321
  overflow: "hidden"
15325
- }), ScrollContainer = styled60.div({
15322
+ }), ScrollContainer = styled59.div({
15326
15323
  display: "flex",
15327
15324
  overflowX: "auto",
15328
15325
  scrollbarWidth: "none",
@@ -15333,17 +15330,17 @@ var StyledTabButton2 = styled60.button(
15333
15330
  "&::-webkit-scrollbar": {
15334
15331
  display: "none"
15335
15332
  }
15336
- }), StyledTabList = styled60.div({
15333
+ }), StyledTabList = styled59.div({
15337
15334
  display: "flex",
15338
15335
  flexShrink: 0
15339
- }), SCROLL_BUTTON_WIDTH = 28, ScrollButtonContainer = styled60.div(({ $showStartBorder, $showEndBorder, theme }) => ({
15336
+ }), SCROLL_BUTTON_WIDTH = 28, ScrollButtonContainer = styled59.div(({ $showStartBorder, $showEndBorder, theme }) => ({
15340
15337
  flexShrink: 0,
15341
15338
  display: "flex",
15342
15339
  alignItems: "center",
15343
15340
  justifyContent: "center",
15344
15341
  padding: 6,
15345
15342
  boxShadow: $showStartBorder ? `inset 1px 0 0 ${theme.appBorderColor}` : $showEndBorder ? `inset -1px 0 0 ${theme.appBorderColor}` : "none"
15346
- })), ScrollButton = styled60(Button)({
15343
+ })), ScrollButton = styled59(Button)({
15347
15344
  flexShrink: 0,
15348
15345
  paddingInline: 0,
15349
15346
  width: 16
@@ -15423,8 +15420,8 @@ var StyledTabButton2 = styled60.button(
15423
15420
 
15424
15421
  // src/components/components/Tabs/TabPanel.tsx
15425
15422
  import React54, { useRef as useRef12 } from "react";
15426
- import { styled as styled61 } from "storybook/theming";
15427
- var Panel = styled61.div({
15423
+ import { styled as styled60 } from "storybook/theming";
15424
+ var Panel = styled60.div({
15428
15425
  overflowY: "hidden",
15429
15426
  height: "100%"
15430
15427
  }), TabPanel = ({
@@ -15637,25 +15634,25 @@ function $76f919a04c5a7d14$var$findDefaultSelectedKey(collection, disabledKeys)
15637
15634
  }
15638
15635
 
15639
15636
  // src/components/components/Tabs/TabsView.tsx
15640
- import { styled as styled62 } from "storybook/theming";
15637
+ import { styled as styled61 } from "storybook/theming";
15641
15638
  var useTabsState = ({
15642
15639
  defaultSelected,
15643
15640
  onSelectionChange,
15644
15641
  selected,
15645
15642
  tabs
15646
15643
  }) => $76f919a04c5a7d14$export$4ba071daf4e486({
15647
- children: tabs.map(({ children: Children6, id, "aria-label": ariaLabel, title: Title7 }) => React55.createElement($c1d7fb2ec91bae71$export$6d08773d2e66f8f2, { key: id, "aria-label": ariaLabel, title: typeof Title7 == "function" ? React55.createElement(Title7, null) : Title7 }, typeof Children6 == "function" ? React55.createElement(Children6, null) : Children6)),
15644
+ children: tabs.map(({ children: Children6, id, "aria-label": ariaLabel, title: Title6 }) => React55.createElement($c1d7fb2ec91bae71$export$6d08773d2e66f8f2, { key: id, "aria-label": ariaLabel, title: typeof Title6 == "function" ? React55.createElement(Title6, null) : Title6 }, typeof Children6 == "function" ? React55.createElement(Children6, null) : Children6)),
15648
15645
  disabledKeys: tabs.filter(({ isDisabled }) => isDisabled).map(({ id }) => id),
15649
15646
  defaultSelectedKey: defaultSelected,
15650
15647
  onSelectionChange: (key) => onSelectionChange?.(`${key}`),
15651
15648
  selectedKey: selected
15652
- }), Container4 = styled62.div({
15649
+ }), Container4 = styled61.div({
15653
15650
  display: "flex",
15654
15651
  flexDirection: "column",
15655
15652
  height: "100%"
15656
- }), FlexTabPanel = styled62(TabPanel)(() => ({
15653
+ }), FlexTabPanel = styled61(TabPanel)(() => ({
15657
15654
  flex: 1
15658
- })), FlexTabList = styled62(TabList)(({ $simulatedGap }) => ({
15655
+ })), FlexTabList = styled61(TabList)(({ $simulatedGap }) => ({
15659
15656
  flex: "1 1 0%",
15660
15657
  '&[data-show-scroll-buttons="true"]': { marginInlineEnd: $simulatedGap }
15661
15658
  })), TabsView = ({
@@ -15884,14 +15881,14 @@ var $5e8ad37a45e1c704$export$3e41faf802a29e71 = $e1995378a142960e$export$18af5c7
15884
15881
  });
15885
15882
 
15886
15883
  // src/components/components/Tabs/StatelessTabList.tsx
15887
- import { styled as styled63 } from "storybook/theming";
15888
- var Root = styled63.div({
15884
+ import { styled as styled62 } from "storybook/theming";
15885
+ var Root = styled62.div({
15889
15886
  display: "flex",
15890
15887
  alignItems: "center",
15891
15888
  flexShrink: 0,
15892
15889
  position: "relative",
15893
15890
  overflow: "hidden"
15894
- }), ScrollContainer2 = styled63.div({
15891
+ }), ScrollContainer2 = styled62.div({
15895
15892
  display: "flex",
15896
15893
  overflowX: "auto",
15897
15894
  scrollbarWidth: "none",
@@ -15902,17 +15899,17 @@ var Root = styled63.div({
15902
15899
  "&::-webkit-scrollbar": {
15903
15900
  display: "none"
15904
15901
  }
15905
- }), StyledTabList2 = styled63($5e8ad37a45e1c704$export$e51a686c67fdaa2d)({
15902
+ }), StyledTabList2 = styled62($5e8ad37a45e1c704$export$e51a686c67fdaa2d)({
15906
15903
  display: "flex",
15907
15904
  flexShrink: 0
15908
- }), SCROLL_BUTTON_WIDTH2 = 28, ScrollButtonContainer2 = styled63.div(({ $showStartBorder, $showEndBorder, theme }) => ({
15905
+ }), SCROLL_BUTTON_WIDTH2 = 28, ScrollButtonContainer2 = styled62.div(({ $showStartBorder, $showEndBorder, theme }) => ({
15909
15906
  flexShrink: 0,
15910
15907
  display: "flex",
15911
15908
  alignItems: "center",
15912
15909
  justifyContent: "center",
15913
15910
  padding: 6,
15914
15911
  boxShadow: $showStartBorder ? `inset 1px 0 0 ${theme.appBorderColor}` : $showEndBorder ? `inset -1px 0 0 ${theme.appBorderColor}` : "none"
15915
- })), ScrollButton2 = styled63(Button)({
15912
+ })), ScrollButton2 = styled62(Button)({
15916
15913
  flexShrink: 0,
15917
15914
  paddingInline: 0,
15918
15915
  width: 16
@@ -15974,8 +15971,8 @@ var Root = styled63.div({
15974
15971
 
15975
15972
  // src/components/components/Tabs/StatelessTabPanel.tsx
15976
15973
  import React57 from "react";
15977
- import { styled as styled64 } from "storybook/theming";
15978
- var Root2 = styled64($5e8ad37a45e1c704$export$3d96ec278d3efce4)({
15974
+ import { styled as styled63 } from "storybook/theming";
15975
+ var Root2 = styled63($5e8ad37a45e1c704$export$3d96ec278d3efce4)({
15979
15976
  overflowY: "hidden",
15980
15977
  height: "100%",
15981
15978
  display: "block",
@@ -15989,8 +15986,8 @@ var Root2 = styled64($5e8ad37a45e1c704$export$3d96ec278d3efce4)({
15989
15986
 
15990
15987
  // src/components/components/Tabs/StatelessTabsView.tsx
15991
15988
  import React58 from "react";
15992
- import { styled as styled65 } from "storybook/theming";
15993
- var Container5 = styled65($5e8ad37a45e1c704$export$b2539bed5023c21c)(({ $simulatedGap }) => ({
15989
+ import { styled as styled64 } from "storybook/theming";
15990
+ var Container5 = styled64($5e8ad37a45e1c704$export$b2539bed5023c21c)(({ $simulatedGap }) => ({
15994
15991
  display: "flex",
15995
15992
  flexDirection: "column",
15996
15993
  height: "100%",
@@ -16056,8 +16053,8 @@ var Container5 = styled65($5e8ad37a45e1c704$export$b2539bed5023c21c)(({ $simulat
16056
16053
 
16057
16054
  // src/components/components/Tabs/StatelessTab.tsx
16058
16055
  import React59 from "react";
16059
- import { styled as styled66 } from "storybook/theming";
16060
- var StyledTab = styled66($5e8ad37a45e1c704$export$3e41faf802a29e71)(({ theme }) => ({
16056
+ import { styled as styled65 } from "storybook/theming";
16057
+ var StyledTab = styled65($5e8ad37a45e1c704$export$3e41faf802a29e71)(({ theme }) => ({
16061
16058
  whiteSpace: "normal",
16062
16059
  display: "inline-flex",
16063
16060
  overflow: "hidden",
@@ -16153,7 +16150,7 @@ var StorybookIcon = (props) => React61.createElement("svg", { viewBox: "0 0 64 6
16153
16150
  // src/components/components/Loader/Loader.tsx
16154
16151
  import React62 from "react";
16155
16152
  import { LightningOffIcon } from "@storybook/icons";
16156
- import { keyframes as keyframes4, styled as styled67 } from "storybook/theming";
16153
+ import { keyframes as keyframes4, styled as styled66 } from "storybook/theming";
16157
16154
 
16158
16155
  // src/components/components/shared/animation.ts
16159
16156
  import { keyframes as keyframes3 } from "storybook/theming";
@@ -16167,7 +16164,7 @@ var rotate360 = keyframes3`
16167
16164
  `;
16168
16165
 
16169
16166
  // src/components/components/Loader/Loader.tsx
16170
- var LoaderWrapper = styled67.div(({ size = 32 }) => ({
16167
+ var LoaderWrapper = styled66.div(({ size = 32 }) => ({
16171
16168
  borderRadius: "50%",
16172
16169
  cursor: "progress",
16173
16170
  display: "inline-block",
@@ -16188,7 +16185,7 @@ var LoaderWrapper = styled67.div(({ size = 32 }) => ({
16188
16185
  borderTopColor: "rgb(100,100,100)",
16189
16186
  animation: `${rotate360} 0.7s linear infinite`,
16190
16187
  mixBlendMode: "difference"
16191
- })), ProgressWrapper = styled67.div({
16188
+ })), ProgressWrapper = styled66.div({
16192
16189
  position: "absolute",
16193
16190
  display: "flex",
16194
16191
  flexDirection: "column",
@@ -16196,7 +16193,7 @@ var LoaderWrapper = styled67.div(({ size = 32 }) => ({
16196
16193
  alignItems: "center",
16197
16194
  width: "100%",
16198
16195
  height: "100%"
16199
- }), ProgressTrack = styled67.div(({ theme }) => ({
16196
+ }), ProgressTrack = styled66.div(({ theme }) => ({
16200
16197
  position: "relative",
16201
16198
  width: "80%",
16202
16199
  marginBottom: "0.75rem",
@@ -16206,17 +16203,17 @@ var LoaderWrapper = styled67.div(({ size = 32 }) => ({
16206
16203
  background: curriedTransparentize$1(0.8, theme.color.secondary),
16207
16204
  overflow: "hidden",
16208
16205
  cursor: "progress"
16209
- })), ProgressBar2 = styled67.div(({ theme }) => ({
16206
+ })), ProgressBar2 = styled66.div(({ theme }) => ({
16210
16207
  position: "absolute",
16211
16208
  top: 0,
16212
16209
  left: 0,
16213
16210
  height: "100%",
16214
16211
  background: theme.color.secondary
16215
- })), ProgressMessage = styled67.div(({ theme }) => ({
16212
+ })), ProgressMessage = styled66.div(({ theme }) => ({
16216
16213
  minHeight: "2em",
16217
16214
  fontSize: `${theme.typography.size.s1}px`,
16218
16215
  color: theme.textMutedColor
16219
- })), ErrorIcon = styled67(LightningOffIcon)(({ theme }) => ({
16216
+ })), ErrorIcon = styled66(LightningOffIcon)(({ theme }) => ({
16220
16217
  width: 20,
16221
16218
  height: 20,
16222
16219
  marginBottom: "0.5rem",
@@ -16226,7 +16223,7 @@ var LoaderWrapper = styled67.div(({ size = 32 }) => ({
16226
16223
  33% { content: "." }
16227
16224
  66% { content: ".." }
16228
16225
  to { content: "..." }
16229
- `, Ellipsis = styled67.span({
16226
+ `, Ellipsis = styled66.span({
16230
16227
  "&::after": {
16231
16228
  content: "'...'",
16232
16229
  animation: `${ellipsis} 1s linear infinite`,
@@ -16270,7 +16267,7 @@ var LoaderWrapper = styled67.div(({ size = 32 }) => ({
16270
16267
 
16271
16268
  // src/components/components/ProgressSpinner/ProgressSpinner.tsx
16272
16269
  import React63 from "react";
16273
- import { keyframes as keyframes5, styled as styled68 } from "storybook/theming";
16270
+ import { keyframes as keyframes5, styled as styled67 } from "storybook/theming";
16274
16271
  var XMLNS = "http://www.w3.org/2000/svg", rotate = keyframes5({
16275
16272
  "0%": {
16276
16273
  transform: "rotate(0deg)"
@@ -16278,14 +16275,14 @@ var XMLNS = "http://www.w3.org/2000/svg", rotate = keyframes5({
16278
16275
  "100%": {
16279
16276
  transform: "rotate(360deg)"
16280
16277
  }
16281
- }), Wrapper5 = styled68.div(({ size }) => ({
16278
+ }), Wrapper5 = styled67.div(({ size }) => ({
16282
16279
  display: "inline-flex",
16283
16280
  alignItems: "center",
16284
16281
  justifyContent: "center",
16285
16282
  position: "relative",
16286
16283
  minWidth: size,
16287
16284
  minHeight: size
16288
- })), Circle = styled68.svg(
16285
+ })), Circle = styled67.svg(
16289
16286
  ({ size, width }) => ({
16290
16287
  position: "absolute",
16291
16288
  width: `${size}px!important`,
@@ -16324,6 +16321,7 @@ var XMLNS = "http://www.w3.org/2000/svg", rotate = keyframes5({
16324
16321
  }) => typeof percentage == "number" ? React63.createElement(Wrapper5, { size, ...props }, children, React63.createElement(Circle, { size, width, xmlns: XMLNS }, React63.createElement("circle", null)), running && React63.createElement(Circle, { size, width, xmlns: XMLNS, spinner: !0 }, React63.createElement("circle", { strokeDashoffset: Math.PI * (size - Math.ceil(width)) * (1 - percentage / 100) })), React63.createElement(Circle, { size, width, xmlns: XMLNS, progress: !0 }, React63.createElement("circle", { strokeDashoffset: Math.PI * (size - Math.ceil(width)) * (1 - percentage / 100) }))) : React63.createElement(Wrapper5, { size, ...props }, children);
16325
16322
 
16326
16323
  // src/components/components/utils/getStoryHref.ts
16324
+ import { deprecate as deprecate13 } from "storybook/internal/client-logger";
16327
16325
  function parseQuery(queryString) {
16328
16326
  let query = {}, pairs = queryString.split("&");
16329
16327
  for (let i = 0; i < pairs.length; i++) {
@@ -16333,6 +16331,9 @@ function parseQuery(queryString) {
16333
16331
  return query;
16334
16332
  }
16335
16333
  var getStoryHref = (baseUrl, storyId, additionalParams = {}) => {
16334
+ deprecate13(
16335
+ "getStoryHref is deprecated and will be removed in Storybook 11, use the api.getStoryHrefs method instead"
16336
+ );
16336
16337
  let [url, paramsStr] = baseUrl.split("?"), params = paramsStr ? {
16337
16338
  ...parseQuery(paramsStr),
16338
16339
  ...additionalParams,
@@ -16346,8 +16347,8 @@ var getStoryHref = (baseUrl, storyId, additionalParams = {}) => {
16346
16347
 
16347
16348
  // src/components/components/clipboard/ClipboardCode.tsx
16348
16349
  import React64 from "react";
16349
- import { color as color3, styled as styled69, typography } from "storybook/theming";
16350
- var Code2 = styled69.pre`
16350
+ import { color as color3, styled as styled68, typography } from "storybook/theming";
16351
+ var Code2 = styled68.pre`
16351
16352
  line-height: 18px;
16352
16353
  padding: 11px 1rem;
16353
16354
  white-space: pre-wrap;