storybook 10.1.0-beta.1 → 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.
- package/dist/_browser-chunks/{chunk-L4RMQ7D7.js → chunk-BRX2HXH7.js} +75 -5
- package/dist/_node-chunks/{builder-manager-FTVC2JL7.js → builder-manager-OAF6SRKJ.js} +14 -579
- package/dist/_node-chunks/{camelcase-3SMT5WKC.js → camelcase-UG5ZJHCD.js} +7 -7
- package/dist/_node-chunks/{chunk-6L7FFBOW.js → chunk-473LXK7O.js} +6 -6
- package/dist/_node-chunks/chunk-5N3H43LE.js +23 -0
- package/dist/_node-chunks/{chunk-6DEMT5VX.js → chunk-6YYH64IJ.js} +13 -13
- package/dist/_node-chunks/{chunk-2OVULPK3.js → chunk-745GFLCZ.js} +6 -6
- package/dist/_node-chunks/{chunk-SQSFX47N.js → chunk-7WOMK33B.js} +7 -7
- package/dist/_node-chunks/{chunk-RURZIE3W.js → chunk-A5VW7257.js} +8 -8
- package/dist/_node-chunks/{chunk-Y4UYN72K.js → chunk-CRJ7M6EO.js} +22 -21
- package/dist/_node-chunks/chunk-DRN5YXX5.js +18 -0
- package/dist/_node-chunks/{chunk-AREL5IXS.js → chunk-H6HVK5J2.js} +7 -7
- package/dist/_node-chunks/{chunk-VRICJPXY.js → chunk-JOOO54RB.js} +6 -6
- package/dist/_node-chunks/chunk-LJRIVT23.js +61 -0
- package/dist/_node-chunks/{chunk-K673CX4Q.js → chunk-LZ2HPFRB.js} +7 -7
- package/dist/_node-chunks/{chunk-TURUTKVH.js → chunk-N5IE6WWR.js} +7 -7
- package/dist/_node-chunks/{chunk-IUYZQKSX.js → chunk-NKT3R6IH.js} +6 -6
- package/dist/_node-chunks/{chunk-N3BJOOY5.js → chunk-NOTIBODG.js} +6 -6
- package/dist/_node-chunks/{chunk-ZMCJS2GU.js → chunk-Q65ED3UK.js} +6 -6
- package/dist/_node-chunks/{chunk-3JJPSDXI.js → chunk-RABBUYPA.js} +9 -9
- package/dist/_node-chunks/{chunk-RVII4SK6.js → chunk-SKFAHEPX.js} +14 -14
- package/dist/_node-chunks/{chunk-O5FMCQHP.js → chunk-STYUJSG3.js} +10 -10
- package/dist/_node-chunks/{chunk-54NMJ4II.js → chunk-SUILKNPA.js} +8 -8
- package/dist/_node-chunks/{chunk-XGNRK7QB.js → chunk-TUQOGYET.js} +7 -7
- package/dist/_node-chunks/{chunk-5V4A6MSI.js → chunk-U24W5IIW.js} +7 -7
- package/dist/_node-chunks/{chunk-WIWWMCEU.js → chunk-UWK6Z4VL.js} +6 -6
- package/dist/_node-chunks/{chunk-S3PBHOVC.js → chunk-WBULWRM7.js} +34 -24
- package/dist/_node-chunks/{chunk-RIKQZHV3.js → chunk-WSIZMTN2.js} +6 -6
- package/dist/_node-chunks/{chunk-6ULDIDXV.js → chunk-WYLXFNIP.js} +9 -9
- package/dist/_node-chunks/{chunk-Y2FOTPAE.js → chunk-XS5QCZP7.js} +7 -7
- package/dist/_node-chunks/{chunk-FNYKBULZ.js → chunk-Y7VDA7NY.js} +7 -7
- package/dist/_node-chunks/{dist-TZLZ3T6L.js → dist-N33YQ3NH.js} +9 -9
- package/dist/_node-chunks/{globby-22GFCZQD.js → globby-5IBS67N3.js} +9 -9
- package/dist/_node-chunks/{lib-37NQ4ZIJ.js → lib-2XH6KQ2B.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-2TRB7OEH.js → mdx-N42X6CFJ-3GGSRLVV.js} +8 -8
- package/dist/_node-chunks/{p-limit-UD7TYFDW.js → p-limit-Z3A7N5MY.js} +7 -7
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +12 -12
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.d.ts +5 -4
- package/dist/cli/index.js +18 -18
- package/dist/common/index.js +19 -19
- package/dist/components/index.js +35 -29
- package/dist/core-server/index.js +33 -33
- package/dist/core-server/presets/common-manager.js +74 -108
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +25 -25
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +148 -74
- package/dist/manager/runtime.js +70 -20
- package/dist/manager-api/index.js +7 -10
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.js +23 -23
- package/dist/theming/create.d.ts +1 -1
- package/dist/theming/create.js +1 -1
- package/dist/theming/index.d.ts +65 -2
- package/dist/theming/index.js +6 -3
- package/package.json +1 -2
- package/dist/_node-chunks/chunk-DWA53E73.js +0 -23
- package/dist/_node-chunks/chunk-KJAFCNZ3.js +0 -61
- package/dist/_node-chunks/chunk-Z4BMBA5L.js +0 -18
|
@@ -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
|
-
|
|
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
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
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
|
-
|
|
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
|
-
|
|
2540
|
-
},
|
|
2541
|
-
|
|
2542
|
-
|
|
2533
|
+
width: "100%"
|
|
2534
|
+
}, trackFocusStyles = {
|
|
2535
|
+
borderColor: rgba(theme3.color.secondary, 0.4)
|
|
2536
|
+
}, thumbBaseStyles = {
|
|
2543
2537
|
width: 16,
|
|
2544
2538
|
height: 16,
|
|
2545
|
-
|
|
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
|
-
|
|
2552
|
-
"
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
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
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
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
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
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
|
-
"
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
}
|
|
2625
|
-
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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 =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
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-
|
|
14
|
+
} from "../../_node-chunks/chunk-XS5QCZP7.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
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";
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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 =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
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
|
-
import "../../_node-chunks/chunk-
|
|
12
|
+
import "../../_node-chunks/chunk-WBULWRM7.js";
|
|
13
13
|
import {
|
|
14
14
|
parseStaticDir,
|
|
15
15
|
sendTelemetryError,
|
|
16
16
|
throttle
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
19
|
-
import "../../_node-chunks/chunk-
|
|
20
|
-
import "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-6YYH64IJ.js";
|
|
18
|
+
import "../../_node-chunks/chunk-H6HVK5J2.js";
|
|
19
|
+
import "../../_node-chunks/chunk-5N3H43LE.js";
|
|
20
|
+
import "../../_node-chunks/chunk-NOTIBODG.js";
|
|
21
21
|
import {
|
|
22
22
|
getLastEvents,
|
|
23
23
|
getSessionId
|
|
24
|
-
} from "../../_node-chunks/chunk-
|
|
24
|
+
} from "../../_node-chunks/chunk-JOOO54RB.js";
|
|
25
25
|
import {
|
|
26
26
|
globalSettings
|
|
27
|
-
} from "../../_node-chunks/chunk-
|
|
27
|
+
} from "../../_node-chunks/chunk-RABBUYPA.js";
|
|
28
28
|
import {
|
|
29
29
|
invariant
|
|
30
|
-
} from "../../_node-chunks/chunk-
|
|
30
|
+
} from "../../_node-chunks/chunk-NKT3R6IH.js";
|
|
31
31
|
import {
|
|
32
32
|
resolvePackageDir
|
|
33
|
-
} from "../../_node-chunks/chunk-
|
|
34
|
-
import "../../_node-chunks/chunk-
|
|
33
|
+
} from "../../_node-chunks/chunk-Y7VDA7NY.js";
|
|
34
|
+
import "../../_node-chunks/chunk-WSIZMTN2.js";
|
|
35
35
|
import {
|
|
36
36
|
isAbsolute,
|
|
37
37
|
join
|
|
38
|
-
} from "../../_node-chunks/chunk-
|
|
38
|
+
} from "../../_node-chunks/chunk-UWK6Z4VL.js";
|
|
39
39
|
import {
|
|
40
40
|
loadConfig
|
|
41
|
-
} from "../../_node-chunks/chunk-
|
|
41
|
+
} from "../../_node-chunks/chunk-SUILKNPA.js";
|
|
42
42
|
import {
|
|
43
43
|
require_dist
|
|
44
|
-
} from "../../_node-chunks/chunk-
|
|
45
|
-
import "../../_node-chunks/chunk-
|
|
46
|
-
import "../../_node-chunks/chunk-
|
|
44
|
+
} from "../../_node-chunks/chunk-7WOMK33B.js";
|
|
45
|
+
import "../../_node-chunks/chunk-WYLXFNIP.js";
|
|
46
|
+
import "../../_node-chunks/chunk-LZ2HPFRB.js";
|
|
47
47
|
import {
|
|
48
48
|
require_picocolors
|
|
49
|
-
} from "../../_node-chunks/chunk-
|
|
49
|
+
} from "../../_node-chunks/chunk-TUQOGYET.js";
|
|
50
50
|
import {
|
|
51
51
|
__commonJS,
|
|
52
52
|
__require,
|
|
53
53
|
__toESM
|
|
54
|
-
} from "../../_node-chunks/chunk-
|
|
54
|
+
} from "../../_node-chunks/chunk-745GFLCZ.js";
|
|
55
55
|
|
|
56
56
|
// ../node_modules/shell-quote/quote.js
|
|
57
57
|
var require_quote = __commonJS({
|
|
@@ -518,7 +518,7 @@ import { isCsfFactoryPreview } from "storybook/internal/csf-tools";
|
|
|
518
518
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
519
519
|
|
|
520
520
|
// src/core-server/utils/get-component-variable-name.ts
|
|
521
|
-
var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-
|
|
521
|
+
var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-UG5ZJHCD.js")).default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: !0 }).replace(/[^a-zA-Z_$]+/, "");
|
|
522
522
|
|
|
523
523
|
// src/core-server/utils/new-story-templates/csf-factory-template.ts
|
|
524
524
|
async function getCsfFactoryTemplateForNewStoryFile(data) {
|
|
@@ -783,7 +783,7 @@ async function searchFiles({
|
|
|
783
783
|
ignoredFiles = IGNORED_FILES,
|
|
784
784
|
fileExtensions = FILE_EXTENSIONS
|
|
785
785
|
}) {
|
|
786
|
-
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-
|
|
786
|
+
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-5IBS67N3.js"), hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd }), searchQueryHasExtension = /(\.[a-z]+)$/i.test(searchQuery), fileExtensionsPattern = `{${fileExtensions.join(",")}}`, globbedSearchQuery = hasSearchSpecialGlobChars ? searchQuery : searchQueryHasExtension ? [`**/*${searchQuery}*`, `**/*${searchQuery}*/**`] : [
|
|
787
787
|
`**/*${searchQuery}*.${fileExtensionsPattern}`,
|
|
788
788
|
`**/*${searchQuery}*/**/*.${fileExtensionsPattern}`
|
|
789
789
|
];
|
package/dist/csf-tools/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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 =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
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
|
|
@@ -38,9 +38,9 @@ import {
|
|
|
38
38
|
vitestTransform,
|
|
39
39
|
writeConfig,
|
|
40
40
|
writeCsf
|
|
41
|
-
} from "../_node-chunks/chunk-
|
|
42
|
-
import "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-
|
|
41
|
+
} from "../_node-chunks/chunk-SUILKNPA.js";
|
|
42
|
+
import "../_node-chunks/chunk-7WOMK33B.js";
|
|
43
|
+
import "../_node-chunks/chunk-745GFLCZ.js";
|
|
44
44
|
export {
|
|
45
45
|
BadMetaError,
|
|
46
46
|
ConfigFile,
|