storybook 10.1.0-beta.2 → 10.1.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist/_browser-chunks/{chunk-L4RMQ7D7.js → chunk-BRX2HXH7.js} +75 -5
  2. package/dist/_node-chunks/{builder-manager-DE5CZGPU.js → builder-manager-OAF6SRKJ.js} +14 -579
  3. package/dist/_node-chunks/{camelcase-3GPWEIYB.js → camelcase-UG5ZJHCD.js} +7 -7
  4. package/dist/_node-chunks/{chunk-77QRXLGA.js → chunk-473LXK7O.js} +6 -6
  5. package/dist/_node-chunks/chunk-5N3H43LE.js +23 -0
  6. package/dist/_node-chunks/{chunk-HFPMBHAF.js → chunk-6YYH64IJ.js} +13 -13
  7. package/dist/_node-chunks/{chunk-3FVKDIQ7.js → chunk-745GFLCZ.js} +6 -6
  8. package/dist/_node-chunks/{chunk-6T6VTXDE.js → chunk-7WOMK33B.js} +7 -7
  9. package/dist/_node-chunks/{chunk-4CHMPSHM.js → chunk-A5VW7257.js} +8 -8
  10. package/dist/_node-chunks/{chunk-NOLZUVQN.js → chunk-CRJ7M6EO.js} +22 -21
  11. package/dist/_node-chunks/chunk-DRN5YXX5.js +18 -0
  12. package/dist/_node-chunks/{chunk-45XWOXXM.js → chunk-H6HVK5J2.js} +7 -7
  13. package/dist/_node-chunks/{chunk-3GUEJ3O3.js → chunk-JOOO54RB.js} +6 -6
  14. package/dist/_node-chunks/chunk-LJRIVT23.js +61 -0
  15. package/dist/_node-chunks/{chunk-ODJGHT54.js → chunk-LZ2HPFRB.js} +7 -7
  16. package/dist/_node-chunks/{chunk-RZEXP6OF.js → chunk-N5IE6WWR.js} +7 -7
  17. package/dist/_node-chunks/{chunk-INMOMYVB.js → chunk-NKT3R6IH.js} +6 -6
  18. package/dist/_node-chunks/{chunk-F4HHDWJV.js → chunk-NOTIBODG.js} +6 -6
  19. package/dist/_node-chunks/{chunk-PJAOEV2K.js → chunk-Q65ED3UK.js} +6 -6
  20. package/dist/_node-chunks/{chunk-YZEOU7D5.js → chunk-RABBUYPA.js} +9 -9
  21. package/dist/_node-chunks/{chunk-UWKUW2OJ.js → chunk-SKFAHEPX.js} +14 -14
  22. package/dist/_node-chunks/{chunk-KIW5GZKQ.js → chunk-STYUJSG3.js} +10 -10
  23. package/dist/_node-chunks/{chunk-RSFKUYLE.js → chunk-SUILKNPA.js} +8 -8
  24. package/dist/_node-chunks/{chunk-43AQPYQJ.js → chunk-TUQOGYET.js} +7 -7
  25. package/dist/_node-chunks/{chunk-EXJNST6P.js → chunk-U24W5IIW.js} +7 -7
  26. package/dist/_node-chunks/{chunk-PQF6TGKN.js → chunk-UWK6Z4VL.js} +6 -6
  27. package/dist/_node-chunks/{chunk-ZH4F5JWQ.js → chunk-WBULWRM7.js} +12 -12
  28. package/dist/_node-chunks/{chunk-QAX2QIAO.js → chunk-WSIZMTN2.js} +6 -6
  29. package/dist/_node-chunks/{chunk-D2CQN4LQ.js → chunk-WYLXFNIP.js} +9 -9
  30. package/dist/_node-chunks/{chunk-HGDN3STX.js → chunk-XS5QCZP7.js} +7 -7
  31. package/dist/_node-chunks/{chunk-Z7F5CZXW.js → chunk-Y7VDA7NY.js} +7 -7
  32. package/dist/_node-chunks/{dist-RFQRGJD5.js → dist-N33YQ3NH.js} +9 -9
  33. package/dist/_node-chunks/{globby-WIMKMN5Q.js → globby-5IBS67N3.js} +9 -9
  34. package/dist/_node-chunks/{lib-OBEY3MUM.js → lib-2XH6KQ2B.js} +7 -7
  35. package/dist/_node-chunks/{mdx-N42X6CFJ-7XA7LOVG.js → mdx-N42X6CFJ-3GGSRLVV.js} +8 -8
  36. package/dist/_node-chunks/{p-limit-VII3MYEU.js → p-limit-Z3A7N5MY.js} +7 -7
  37. package/dist/babel/index.js +10 -10
  38. package/dist/bin/core.js +12 -12
  39. package/dist/bin/dispatcher.js +11 -11
  40. package/dist/bin/loader.js +9 -9
  41. package/dist/cli/index.js +18 -18
  42. package/dist/common/index.js +19 -19
  43. package/dist/components/index.js +35 -29
  44. package/dist/core-server/index.js +33 -33
  45. package/dist/core-server/presets/common-manager.js +74 -108
  46. package/dist/core-server/presets/common-override-preset.js +9 -9
  47. package/dist/core-server/presets/common-preset.js +25 -25
  48. package/dist/csf-tools/index.js +9 -9
  49. package/dist/manager/globals-runtime.js +142 -65
  50. package/dist/manager/runtime.js +70 -20
  51. package/dist/manager-api/index.d.ts +178 -178
  52. package/dist/manager-api/index.js +1 -1
  53. package/dist/mocking-utils/index.js +8 -8
  54. package/dist/node-logger/index.js +9 -9
  55. package/dist/preview-api/index.d.ts +68 -67
  56. package/dist/server-errors.js +11 -11
  57. package/dist/telemetry/index.js +23 -23
  58. package/dist/theming/create.d.ts +1 -1
  59. package/dist/theming/create.js +1 -1
  60. package/dist/theming/index.d.ts +65 -2
  61. package/dist/theming/index.js +6 -3
  62. package/package.json +1 -2
  63. package/dist/_node-chunks/chunk-CEFT3TLW.js +0 -18
  64. package/dist/_node-chunks/chunk-HG5BSY5V.js +0 -23
  65. package/dist/_node-chunks/chunk-Y35QWPHB.js +0 -61
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
1
+ import CJS_COMPAT_NODE_URL_d4nrjz93tmm from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_d4nrjz93tmm from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_d4nrjz93tmm from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_d4nrjz93tmm.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_d4nrjz93tmm.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_d4nrjz93tmm.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -103,29 +103,29 @@ import {
103
103
  validateConfigurationFiles,
104
104
  validateFrameworkName,
105
105
  wrapValueWithGetAbsolutePathWrapper
106
- } from "../_node-chunks/chunk-NOLZUVQN.js";
106
+ } from "../_node-chunks/chunk-CRJ7M6EO.js";
107
107
  import {
108
108
  versions_default
109
- } from "../_node-chunks/chunk-Y35QWPHB.js";
110
- import "../_node-chunks/chunk-EXJNST6P.js";
111
- import "../_node-chunks/chunk-4CHMPSHM.js";
112
- import "../_node-chunks/chunk-INMOMYVB.js";
109
+ } from "../_node-chunks/chunk-LJRIVT23.js";
110
+ import "../_node-chunks/chunk-U24W5IIW.js";
111
+ import "../_node-chunks/chunk-A5VW7257.js";
112
+ import "../_node-chunks/chunk-NKT3R6IH.js";
113
113
  import {
114
114
  importMetaResolve,
115
115
  importModule,
116
116
  resolvePackageDir,
117
117
  safeResolveModule
118
- } from "../_node-chunks/chunk-Z7F5CZXW.js";
118
+ } from "../_node-chunks/chunk-Y7VDA7NY.js";
119
119
  import {
120
120
  groupBy,
121
121
  invariant
122
- } from "../_node-chunks/chunk-QAX2QIAO.js";
123
- import "../_node-chunks/chunk-PQF6TGKN.js";
124
- import "../_node-chunks/chunk-HGDN3STX.js";
125
- import "../_node-chunks/chunk-PJAOEV2K.js";
126
- import "../_node-chunks/chunk-6T6VTXDE.js";
127
- import "../_node-chunks/chunk-43AQPYQJ.js";
128
- import "../_node-chunks/chunk-3FVKDIQ7.js";
122
+ } from "../_node-chunks/chunk-WSIZMTN2.js";
123
+ import "../_node-chunks/chunk-UWK6Z4VL.js";
124
+ import "../_node-chunks/chunk-XS5QCZP7.js";
125
+ import "../_node-chunks/chunk-Q65ED3UK.js";
126
+ import "../_node-chunks/chunk-7WOMK33B.js";
127
+ import "../_node-chunks/chunk-TUQOGYET.js";
128
+ import "../_node-chunks/chunk-745GFLCZ.js";
129
129
  export {
130
130
  DEFAULT_FILES_PATTERN,
131
131
  FileSystemCache,
@@ -569,32 +569,33 @@ var BadgeWrapper = styled23.div(
569
569
  switch (status) {
570
570
  case "critical":
571
571
  return {
572
- color: theme.color.critical,
573
- background: theme.background.critical
572
+ color: theme.fgColor.critical,
573
+ background: theme.bgColor.critical,
574
+ boxShadow: `inset 0 0 0 1px ${theme.borderColor.critical}`
574
575
  };
575
576
  case "negative":
576
577
  return {
577
- color: theme.color.negativeText,
578
- background: theme.background.negative,
579
- boxShadow: theme.base === "light" ? `inset 0 0 0 1px ${curriedTransparentize$1(0.9, theme.color.negativeText)}` : "none"
578
+ color: theme.fgColor.negative,
579
+ background: theme.bgColor.negative,
580
+ boxShadow: `inset 0 0 0 1px ${theme.borderColor.negative}`
580
581
  };
581
582
  case "warning":
582
583
  return {
583
- color: theme.color.warningText,
584
- background: theme.background.warning,
585
- boxShadow: theme.base === "light" ? `inset 0 0 0 1px ${curriedTransparentize$1(0.9, theme.color.warningText)}` : "none"
584
+ color: theme.fgColor.warning,
585
+ background: theme.bgColor.warning,
586
+ boxShadow: `inset 0 0 0 1px ${theme.borderColor.warning}`
586
587
  };
587
588
  case "neutral":
588
589
  return {
589
- color: theme.textMutedColor,
590
- background: theme.base === "light" ? theme.background.app : theme.barBg,
590
+ color: theme.fgColor.muted,
591
+ background: theme.base === "dark" ? theme.barBg : theme.background.app,
591
592
  boxShadow: `inset 0 0 0 1px ${curriedTransparentize$1(0.8, theme.textMutedColor)}`
592
593
  };
593
594
  case "positive":
594
595
  return {
595
- color: theme.color.positiveText,
596
- background: theme.background.positive,
597
- boxShadow: theme.base === "light" ? `inset 0 0 0 1px ${curriedTransparentize$1(0.9, theme.color.positiveText)}` : "none"
596
+ color: theme.fgColor.positive,
597
+ background: theme.bgColor.positive,
598
+ boxShadow: `inset 0 0 0 1px ${theme.borderColor.positive}`
598
599
  };
599
600
  case "active":
600
601
  return {
@@ -9712,26 +9713,28 @@ import React26 from "react";
9712
9713
  import { color, styled as styled38 } from "storybook/theming";
9713
9714
  var Input = styled38.input(({ theme }) => ({
9714
9715
  appearance: "none",
9716
+ backgroundColor: theme.input.background,
9717
+ border: `1px solid ${theme.base === "dark" ? "hsl(0 0 100 / 0.4)" : "hsl(0 0 0 / 0.44)"}`,
9718
+ borderRadius: 2,
9715
9719
  display: "grid",
9716
- placeContent: "center",
9717
- width: 14,
9718
- height: 14,
9719
9720
  flexShrink: 0,
9721
+ height: 14,
9720
9722
  margin: 0,
9721
- border: `1px solid ${theme.input.border}`,
9722
- borderRadius: 2,
9723
- backgroundColor: theme.input.background,
9723
+ placeContent: "center",
9724
9724
  transition: "background-color 0.1s",
9725
+ width: 14,
9725
9726
  "&:enabled": {
9726
9727
  cursor: "pointer"
9727
9728
  },
9728
9729
  "&:disabled": {
9729
- backgroundColor: theme.base === "light" ? color.light : "transparent"
9730
+ backgroundColor: "transparent",
9731
+ borderColor: theme.input.border
9730
9732
  },
9731
9733
  "&:disabled:checked, &:disabled:indeterminate": {
9732
- backgroundColor: theme.base === "light" ? color.mediumdark : theme.color.dark
9734
+ backgroundColor: theme.base === "dark" ? color.dark : theme.color.mediumdark
9733
9735
  },
9734
9736
  "&:checked, &:indeterminate": {
9737
+ border: "none",
9735
9738
  backgroundColor: color.secondary
9736
9739
  },
9737
9740
  "&:checked::before": {
@@ -9882,27 +9885,30 @@ import React29 from "react";
9882
9885
  import { color as color2, styled as styled41 } from "storybook/theming";
9883
9886
  var Input4 = styled41.input(({ theme }) => ({
9884
9887
  appearance: "none",
9888
+ backgroundColor: theme.input.background,
9889
+ border: `1px solid ${theme.base === "dark" ? "hsl(0 0 100 / 0.4)" : "hsl(0 0 0 / 0.44)"}`,
9890
+ borderRadius: 8,
9885
9891
  display: "grid",
9886
- placeContent: "center",
9887
- width: 16,
9888
- height: 16,
9889
9892
  flexShrink: 0,
9893
+ height: 16,
9890
9894
  margin: -1,
9891
- border: `1px solid ${theme.input.border}`,
9892
- borderRadius: 8,
9893
- backgroundColor: theme.input.background,
9895
+ placeContent: "center",
9894
9896
  transition: "background-color 0.1s",
9897
+ width: 16,
9895
9898
  "&:enabled": {
9896
9899
  cursor: "pointer"
9897
9900
  },
9898
9901
  "&:disabled": {
9899
- backgroundColor: theme.base === "light" ? color2.light : "transparent"
9902
+ backgroundColor: "transparent",
9903
+ borderColor: theme.input.border
9900
9904
  },
9901
9905
  "&:disabled:checked": {
9902
- backgroundColor: theme.base === "light" ? color2.light : theme.color.mediumdark
9906
+ backgroundColor: theme.base === "dark" ? color2.dark : theme.color.mediumdark,
9907
+ borderColor: theme.base === "dark" ? color2.dark : theme.color.mediumdark
9903
9908
  },
9904
9909
  "&:checked": {
9905
9910
  backgroundColor: color2.secondary,
9911
+ borderColor: color2.secondary,
9906
9912
  boxShadow: `inset 0 0 0 2px ${theme.input.background}`
9907
9913
  },
9908
9914
  "&:enabled:focus-visible": {
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
1
+ import CJS_COMPAT_NODE_URL_d4nrjz93tmm from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_d4nrjz93tmm from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_d4nrjz93tmm from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_d4nrjz93tmm.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_d4nrjz93tmm.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_d4nrjz93tmm.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  StatusTypeIdMismatchError
14
- } from "../_node-chunks/chunk-KIW5GZKQ.js";
14
+ } from "../_node-chunks/chunk-STYUJSG3.js";
15
15
  import {
16
16
  debounce,
17
17
  getErrorLevel,
@@ -21,66 +21,66 @@ import {
21
21
  sendTelemetryError,
22
22
  useStatics,
23
23
  withTelemetry
24
- } from "../_node-chunks/chunk-HFPMBHAF.js";
25
- import "../_node-chunks/chunk-45XWOXXM.js";
24
+ } from "../_node-chunks/chunk-6YYH64IJ.js";
25
+ import "../_node-chunks/chunk-H6HVK5J2.js";
26
26
  import {
27
27
  detectPnp
28
- } from "../_node-chunks/chunk-HG5BSY5V.js";
28
+ } from "../_node-chunks/chunk-5N3H43LE.js";
29
29
  import {
30
30
  StorybookError
31
- } from "../_node-chunks/chunk-F4HHDWJV.js";
31
+ } from "../_node-chunks/chunk-NOTIBODG.js";
32
32
  import {
33
33
  telemetry
34
- } from "../_node-chunks/chunk-UWKUW2OJ.js";
35
- import "../_node-chunks/chunk-CEFT3TLW.js";
34
+ } from "../_node-chunks/chunk-SKFAHEPX.js";
35
+ import "../_node-chunks/chunk-DRN5YXX5.js";
36
36
  import {
37
37
  optionalEnvToBoolean,
38
38
  require_cross_spawn,
39
39
  resolveImport,
40
40
  supportedExtensions,
41
41
  userOrAutoTitleFromSpecifier
42
- } from "../_node-chunks/chunk-NOLZUVQN.js";
43
- import "../_node-chunks/chunk-Y35QWPHB.js";
44
- import "../_node-chunks/chunk-EXJNST6P.js";
42
+ } from "../_node-chunks/chunk-CRJ7M6EO.js";
43
+ import "../_node-chunks/chunk-LJRIVT23.js";
44
+ import "../_node-chunks/chunk-U24W5IIW.js";
45
45
  import {
46
46
  require_pretty_hrtime
47
- } from "../_node-chunks/chunk-4CHMPSHM.js";
48
- import "../_node-chunks/chunk-3GUEJ3O3.js";
49
- import "../_node-chunks/chunk-YZEOU7D5.js";
47
+ } from "../_node-chunks/chunk-A5VW7257.js";
48
+ import "../_node-chunks/chunk-JOOO54RB.js";
49
+ import "../_node-chunks/chunk-RABBUYPA.js";
50
50
  import {
51
51
  invariant,
52
52
  up2 as up
53
- } from "../_node-chunks/chunk-INMOMYVB.js";
53
+ } from "../_node-chunks/chunk-NKT3R6IH.js";
54
54
  import {
55
55
  importModule,
56
56
  resolvePackageDir
57
- } from "../_node-chunks/chunk-Z7F5CZXW.js";
58
- import "../_node-chunks/chunk-QAX2QIAO.js";
57
+ } from "../_node-chunks/chunk-Y7VDA7NY.js";
58
+ import "../_node-chunks/chunk-WSIZMTN2.js";
59
59
  import {
60
60
  dirname,
61
61
  join,
62
62
  relative,
63
63
  resolve
64
- } from "../_node-chunks/chunk-PQF6TGKN.js";
65
- import "../_node-chunks/chunk-HGDN3STX.js";
64
+ } from "../_node-chunks/chunk-UWK6Z4VL.js";
65
+ import "../_node-chunks/chunk-XS5QCZP7.js";
66
66
  import {
67
67
  slash
68
- } from "../_node-chunks/chunk-PJAOEV2K.js";
68
+ } from "../_node-chunks/chunk-Q65ED3UK.js";
69
69
  import {
70
70
  require_dist
71
- } from "../_node-chunks/chunk-6T6VTXDE.js";
71
+ } from "../_node-chunks/chunk-7WOMK33B.js";
72
72
  import {
73
73
  require_lib,
74
74
  require_src
75
- } from "../_node-chunks/chunk-ODJGHT54.js";
75
+ } from "../_node-chunks/chunk-LZ2HPFRB.js";
76
76
  import {
77
77
  require_picocolors
78
- } from "../_node-chunks/chunk-43AQPYQJ.js";
78
+ } from "../_node-chunks/chunk-TUQOGYET.js";
79
79
  import {
80
80
  __commonJS,
81
81
  __require,
82
82
  __toESM
83
- } from "../_node-chunks/chunk-3FVKDIQ7.js";
83
+ } from "../_node-chunks/chunk-745GFLCZ.js";
84
84
 
85
85
  // ../node_modules/tsconfig-paths/lib/filesystem.js
86
86
  var require_filesystem = __commonJS({
@@ -5147,7 +5147,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
5147
5147
  let cacheKey = this.getFindMatchingFilesCacheKey(specifier, workingDir, ignoreWarnings), cached = this.findMatchingFilesCache.get(cacheKey);
5148
5148
  if (cached)
5149
5149
  return cached;
5150
- let pathToSubIndex = {}, globCwd = slash(resolve2(workingDir, specifier.directory)), globPattern = specifier.files, { globby } = await import("../_node-chunks/globby-WIMKMN5Q.js"), files = await globby(globPattern, {
5150
+ let pathToSubIndex = {}, globCwd = slash(resolve2(workingDir, specifier.directory)), globPattern = specifier.files, { globby } = await import("../_node-chunks/globby-5IBS67N3.js"), files = await globby(globPattern, {
5151
5151
  absolute: !0,
5152
5152
  cwd: globCwd,
5153
5153
  ...commonGlobOptions(globPattern)
@@ -5336,7 +5336,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
5336
5336
  async extractDocs(specifier, absolutePath, projectTags = []) {
5337
5337
  let relativePath = relative2(this.options.workingDir, absolutePath);
5338
5338
  try {
5339
- let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-RFQRGJD5.js"), result = await analyze(content);
5339
+ let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-N33YQ3NH.js"), result = await analyze(content);
5340
5340
  if (result.isTemplate)
5341
5341
  return !1;
5342
5342
  let absoluteImports = result.imports.map(
@@ -5596,7 +5596,7 @@ function print(p) {
5596
5596
  // src/core-server/utils/get-builders.ts
5597
5597
  import { MissingBuilderError } from "storybook/internal/server-errors";
5598
5598
  async function getManagerBuilder() {
5599
- return await import("../_node-chunks/builder-manager-DE5CZGPU.js");
5599
+ return await import("../_node-chunks/builder-manager-OAF6SRKJ.js");
5600
5600
  }
5601
5601
  async function getPreviewBuilder(resolvedPreviewBuilder) {
5602
5602
  return await importModule(resolvedPreviewBuilder);
@@ -5696,7 +5696,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
5696
5696
  // files can be e.g. '**/foo/*/*.js' so we just want the last bit,
5697
5697
  // because the directory could already be within the files part (e.g. './x/foo/bar')
5698
5698
  basename2(specifier.files)
5699
- ), { globby } = await import("../_node-chunks/globby-WIMKMN5Q.js");
5699
+ ), { globby } = await import("../_node-chunks/globby-5IBS67N3.js");
5700
5700
  (await globby(slash(dirGlob), commonGlobOptions2(dirGlob))).forEach((filePath) => {
5701
5701
  let fileImportPath = toImportPath(filePath);
5702
5702
  specifier.importPathMatcher.exec(fileImportPath) && onInvalidate(specifier, fileImportPath, removed);
@@ -2517,125 +2517,91 @@ var { window: globalWindow } = globalThis, Wrapper5 = styled9.div(({ theme: them
2517
2517
  import React13, { useMemo as useMemo2 } from "react";
2518
2518
  import { styled as styled10 } from "storybook/theming";
2519
2519
  var RangeInput = styled10.input(
2520
- ({ theme: theme3, min, max, value: value2, disabled }) => ({
2521
- // Resytled using http://danielstern.ca/range.css/#/
2522
- "&": {
2523
- width: "100%",
2524
- backgroundColor: "transparent",
2525
- appearance: "none"
2526
- },
2527
- "&::-webkit-slider-runnable-track": {
2520
+ ({ theme: theme3, min, max, value: value2, disabled }) => {
2521
+ let trackBaseStyles = {
2528
2522
  background: theme3.base === "light" ? `linear-gradient(to right,
2529
- ${theme3.color.green} 0%, ${theme3.color.green} ${(value2 - min) / (max - min) * 100}%,
2530
- ${curriedDarken$1(0.02, theme3.input.background)} ${(value2 - min) / (max - min) * 100}%,
2531
- ${curriedDarken$1(0.02, theme3.input.background)} 100%)` : `linear-gradient(to right,
2532
- ${theme3.color.green} 0%, ${theme3.color.green} ${(value2 - min) / (max - min) * 100}%,
2533
- ${curriedLighten$1(0.02, theme3.input.background)} ${(value2 - min) / (max - min) * 100}%,
2534
- ${curriedLighten$1(0.02, theme3.input.background)} 100%)`,
2535
- boxShadow: `${theme3.appBorderColor} 0 0 0 1px inset`,
2523
+ ${theme3.color.green} 0%, ${theme3.color.green} ${(value2 - min) / (max - min) * 100}%,
2524
+ ${curriedDarken$1(0.02, theme3.input.background)} ${(value2 - min) / (max - min) * 100}%,
2525
+ ${curriedDarken$1(0.02, theme3.input.background)} 100%)` : `linear-gradient(to right,
2526
+ ${theme3.color.green} 0%, ${theme3.color.green} ${(value2 - min) / (max - min) * 100}%,
2527
+ ${curriedLighten$1(0.02, theme3.input.background)} ${(value2 - min) / (max - min) * 100}%,
2528
+ ${curriedLighten$1(0.02, theme3.input.background)} 100%)`,
2536
2529
  borderRadius: 6,
2537
- width: "100%",
2530
+ boxShadow: `${theme3.base == "dark" ? "hsl(0 0 100 / 0.4)" : "hsl(0 0 0 / 0.44)"} 0 0 0 1px inset`,
2531
+ cursor: disabled ? "not-allowed" : "pointer",
2538
2532
  height: 6,
2539
- cursor: disabled ? "not-allowed" : "pointer"
2540
- },
2541
- "&::-webkit-slider-thumb": {
2542
- marginTop: "-6px",
2533
+ width: "100%"
2534
+ }, trackFocusStyles = {
2535
+ borderColor: rgba(theme3.color.secondary, 0.4)
2536
+ }, thumbBaseStyles = {
2543
2537
  width: 16,
2544
2538
  height: 16,
2545
- border: `1px solid ${theme3.appBorderColor}`,
2546
- borderRadius: "50px",
2547
- boxShadow: theme3.base === "light" ? `0 1px 3px 0px ${rgba(theme3.appBorderColor, 0.2)}` : "unset",
2539
+ borderRadius: 50,
2548
2540
  cursor: disabled ? "not-allowed" : "grab",
2549
- appearance: "none",
2550
2541
  background: theme3.input.background,
2551
- transition: "all 150ms ease-out",
2552
- "&:hover": {
2553
- background: `${curriedDarken$1(0.05, theme3.input.background)}`,
2554
- transform: "scale3d(1.1, 1.1, 1.1) translateY(-1px)",
2555
- transition: "all 50ms ease-out"
2542
+ border: `1px solid ${theme3.base == "dark" ? "hsl(0 0 100 / 0.4)" : "hsl(0 0 0 / 0.44)"}`,
2543
+ boxShadow: theme3.base === "light" ? `0 1px 3px 0px ${rgba(theme3.appBorderColor, 0.2)}` : "unset",
2544
+ transition: "all 150ms ease-out"
2545
+ }, thumbHoverStyles = {
2546
+ background: `${curriedDarken$1(0.05, theme3.input.background)}`,
2547
+ transform: "scale3d(1.1, 1.1, 1.1) translateY(-1px)",
2548
+ transition: "all 50ms ease-out"
2549
+ }, thumbActiveStyles = {
2550
+ background: `${theme3.input.background}`,
2551
+ transform: "scale3d(1, 1, 1) translateY(0px)"
2552
+ }, thumbFocusStyles = {
2553
+ borderColor: theme3.color.secondary,
2554
+ boxShadow: theme3.base === "light" ? `0 0px 5px 0px ${theme3.color.secondary}` : "unset"
2555
+ };
2556
+ return {
2557
+ // Restyled using http://danielstern.ca/range.css/#/
2558
+ appearance: "none",
2559
+ backgroundColor: "transparent",
2560
+ width: "100%",
2561
+ // Track styles
2562
+ "&::-webkit-slider-runnable-track": trackBaseStyles,
2563
+ "&::-moz-range-track": trackBaseStyles,
2564
+ "&::-ms-track": {
2565
+ ...trackBaseStyles,
2566
+ color: "transparent"
2556
2567
  },
2557
- "&:active": {
2558
- background: `${theme3.input.background}`,
2559
- transform: "scale3d(1, 1, 1) translateY(0px)",
2560
- cursor: disabled ? "not-allowed" : "grab"
2561
- }
2562
- },
2563
- "&:focus": {
2564
- outline: "none",
2565
- "&::-webkit-slider-runnable-track": {
2566
- borderColor: rgba(theme3.color.secondary, 0.4)
2568
+ // Thumb styles
2569
+ "&::-moz-range-thumb": {
2570
+ ...thumbBaseStyles,
2571
+ "&:hover": thumbHoverStyles,
2572
+ "&:active": thumbActiveStyles
2567
2573
  },
2568
2574
  "&::-webkit-slider-thumb": {
2569
- borderColor: theme3.color.secondary,
2570
- boxShadow: theme3.base === "light" ? `0 0px 5px 0px ${theme3.color.secondary}` : "unset"
2571
- }
2572
- },
2573
- "&::-moz-range-track": {
2574
- background: theme3.base === "light" ? `linear-gradient(to right,
2575
- ${theme3.color.green} 0%, ${theme3.color.green} ${(value2 - min) / (max - min) * 100}%,
2576
- ${curriedDarken$1(0.02, theme3.input.background)} ${(value2 - min) / (max - min) * 100}%,
2577
- ${curriedDarken$1(0.02, theme3.input.background)} 100%)` : `linear-gradient(to right,
2578
- ${theme3.color.green} 0%, ${theme3.color.green} ${(value2 - min) / (max - min) * 100}%,
2579
- ${curriedLighten$1(0.02, theme3.input.background)} ${(value2 - min) / (max - min) * 100}%,
2580
- ${curriedLighten$1(0.02, theme3.input.background)} 100%)`,
2581
- boxShadow: `${theme3.appBorderColor} 0 0 0 1px inset`,
2582
- borderRadius: 6,
2583
- width: "100%",
2584
- height: 6,
2585
- cursor: disabled ? "not-allowed" : "pointer",
2586
- outline: "none"
2587
- },
2588
- "&::-moz-range-thumb": {
2589
- width: 16,
2590
- height: 16,
2591
- border: `1px solid ${theme3.appBorderColor}`,
2592
- borderRadius: "50px",
2593
- boxShadow: theme3.base === "light" ? `0 1px 3px 0px ${rgba(theme3.appBorderColor, 0.2)}` : "unset",
2594
- cursor: disabled ? "not-allowed" : "grab",
2595
- background: theme3.input.background,
2596
- transition: "all 150ms ease-out",
2597
- "&:hover": {
2598
- background: `${curriedDarken$1(0.05, theme3.input.background)}`,
2599
- transform: "scale3d(1.1, 1.1, 1.1) translateY(-1px)",
2600
- transition: "all 50ms ease-out"
2575
+ ...thumbBaseStyles,
2576
+ marginTop: "-6px",
2577
+ appearance: "none",
2578
+ "&:hover": thumbHoverStyles,
2579
+ "&:active": thumbActiveStyles
2601
2580
  },
2602
- "&:active": {
2603
- background: `${theme3.input.background}`,
2604
- transform: "scale3d(1, 1, 1) translateY(0px)",
2605
- cursor: "grabbing"
2606
- }
2607
- },
2608
- "&::-ms-track": {
2609
- background: theme3.base === "light" ? `linear-gradient(to right,
2610
- ${theme3.color.green} 0%, ${theme3.color.green} ${(value2 - min) / (max - min) * 100}%,
2611
- ${curriedDarken$1(0.02, theme3.input.background)} ${(value2 - min) / (max - min) * 100}%,
2612
- ${curriedDarken$1(0.02, theme3.input.background)} 100%)` : `linear-gradient(to right,
2613
- ${theme3.color.green} 0%, ${theme3.color.green} ${(value2 - min) / (max - min) * 100}%,
2614
- ${curriedLighten$1(0.02, theme3.input.background)} ${(value2 - min) / (max - min) * 100}%,
2615
- ${curriedLighten$1(0.02, theme3.input.background)} 100%)`,
2616
- boxShadow: theme3.base === "light" ? `${theme3.appBorderColor} 0 0 0 1px inset` : "unset",
2617
- color: "transparent",
2618
- width: "100%",
2619
- height: "6px",
2620
- cursor: "pointer"
2621
- },
2622
- "&::-ms-fill-lower": {
2623
- borderRadius: 6
2624
- },
2625
- "&::-ms-fill-upper": {
2626
- borderRadius: 6
2627
- },
2628
- "&::-ms-thumb": {
2629
- width: 16,
2630
- height: 16,
2631
- background: theme3.input.background,
2632
- border: `1px solid ${rgba(theme3.appBorderColor, 0.2)}`,
2633
- borderRadius: 50,
2634
- cursor: disabled ? "not-allowed" : "grab",
2635
- marginTop: 0
2636
- },
2637
- "@supports (-ms-ime-align:auto)": { "input[type=range]": { margin: "0" } }
2638
- })
2581
+ "&::-ms-thumb": {
2582
+ ...thumbBaseStyles,
2583
+ marginTop: 0,
2584
+ "&:hover": thumbHoverStyles,
2585
+ "&:active": thumbActiveStyles
2586
+ },
2587
+ "&:focus": {
2588
+ outline: "none",
2589
+ "&::-webkit-slider-runnable-track": trackFocusStyles,
2590
+ "&::-moz-range-track": trackFocusStyles,
2591
+ "&::-ms-track": trackFocusStyles,
2592
+ "&::-webkit-slider-thumb": thumbFocusStyles,
2593
+ "&::-moz-range-thumb": thumbFocusStyles,
2594
+ "&::-ms-thumb": thumbFocusStyles
2595
+ },
2596
+ "&::-ms-fill-lower": {
2597
+ borderRadius: 6
2598
+ },
2599
+ "&::-ms-fill-upper": {
2600
+ borderRadius: 6
2601
+ },
2602
+ "@supports (-ms-ime-align:auto)": { "input[type=range]": { margin: "0" } }
2603
+ };
2604
+ }
2639
2605
  ), RangeLabel = styled10.span({
2640
2606
  paddingLeft: 5,
2641
2607
  paddingRight: 5,
@@ -1,21 +1,21 @@
1
- import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
1
+ import CJS_COMPAT_NODE_URL_d4nrjz93tmm from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_d4nrjz93tmm from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_d4nrjz93tmm from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_d4nrjz93tmm.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_d4nrjz93tmm.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_d4nrjz93tmm.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  glob
14
- } from "../../_node-chunks/chunk-HGDN3STX.js";
14
+ } from "../../_node-chunks/chunk-XS5QCZP7.js";
15
15
  import {
16
16
  slash
17
- } from "../../_node-chunks/chunk-PJAOEV2K.js";
18
- import "../../_node-chunks/chunk-3FVKDIQ7.js";
17
+ } from "../../_node-chunks/chunk-Q65ED3UK.js";
18
+ import "../../_node-chunks/chunk-745GFLCZ.js";
19
19
 
20
20
  // src/core-server/utils/remove-mdx-entries.ts
21
21
  import { isAbsolute, join, relative } from "node:path";