storybook 10.2.0-beta.2 → 10.2.0-beta.4
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/assets/server/base-preview-head.html +66 -44
- package/dist/_browser-chunks/{chunk-QOXZ7W26.js → chunk-2N4WE3KZ.js} +4 -6
- package/dist/_node-chunks/{builder-manager-N2LWOX5D.js → builder-manager-QV5RDRX3.js} +12 -12
- package/dist/_node-chunks/{camelcase-5FSYVCZS.js → camelcase-BMCEZEHU.js} +7 -7
- package/dist/_node-chunks/{chunk-HODKH6S2.js → chunk-2MIIBCWO.js} +6 -6
- package/dist/_node-chunks/chunk-3G6JTYYU.js +18 -0
- package/dist/_node-chunks/{chunk-P2XLDRN4.js → chunk-3WAOMPEV.js} +20 -20
- package/dist/_node-chunks/{chunk-ZYMMEEUR.js → chunk-5BZY2EBX.js} +6 -6
- package/dist/_node-chunks/{chunk-J6PIL7K6.js → chunk-7C3OCMOV.js} +7 -7
- package/dist/_node-chunks/chunk-7CC7KOAY.js +61 -0
- package/dist/_node-chunks/{chunk-EABA3I6M.js → chunk-A635UKUK.js} +36 -15
- package/dist/_node-chunks/{chunk-6BGWV535.js → chunk-B6PRKQBU.js} +43 -25
- package/dist/_node-chunks/{chunk-CQFU5LUX.js → chunk-C2PW44X2.js} +20 -11
- package/dist/_node-chunks/{chunk-OJV6TVDO.js → chunk-DX2OTMAX.js} +7 -7
- package/dist/_node-chunks/{chunk-5J2THD7E.js → chunk-HNJNGHJI.js} +7 -7
- package/dist/_node-chunks/{chunk-GHY5BYFV.js → chunk-HSLEWKPT.js} +7 -7
- package/dist/_node-chunks/{chunk-HBFPHSFB.js → chunk-JGB6IJ7A.js} +6 -6
- package/dist/_node-chunks/{chunk-WXDEINTE.js → chunk-JZDQQ34S.js} +10 -10
- package/dist/_node-chunks/{chunk-XEBN3C26.js → chunk-LDPGDFBN.js} +8 -8
- package/dist/_node-chunks/{chunk-4VD35T6X.js → chunk-LQF2YX4Z.js} +6 -6
- package/dist/_node-chunks/{chunk-M4QILBFD.js → chunk-LY42XGJX.js} +7 -7
- package/dist/_node-chunks/{chunk-5PCZPYCJ.js → chunk-M3NUJKHF.js} +9 -9
- package/dist/_node-chunks/{chunk-ZQQYNNTB.js → chunk-NM76NNBF.js} +9 -9
- package/dist/_node-chunks/{chunk-SBB2XM7N.js → chunk-PFCD6HBP.js} +7 -7
- package/dist/_node-chunks/{chunk-FWIMIUHV.js → chunk-QLZIG3XC.js} +7 -7
- package/dist/_node-chunks/chunk-TJGUM3J6.js +23 -0
- package/dist/_node-chunks/{chunk-2LRLWFCA.js → chunk-TOAOZCOV.js} +16 -16
- package/dist/_node-chunks/{chunk-7UVJF2ZL.js → chunk-UJMJ7W5H.js} +7 -7
- package/dist/_node-chunks/{chunk-BTTNDYQ6.js → chunk-V2LVNLAT.js} +6 -6
- package/dist/_node-chunks/{chunk-PGC5F6XL.js → chunk-WC6YF7PX.js} +6 -6
- package/dist/_node-chunks/{chunk-2LLPTUG2.js → chunk-XOGYJBNU.js} +6 -6
- package/dist/_node-chunks/{chunk-M62QO44I.js → chunk-Z4WARWVA.js} +6 -6
- package/dist/_node-chunks/{globby-SSZCWWA6.js → globby-OVGPC72V.js} +9 -9
- package/dist/_node-chunks/{lib-L2HJYQNA.js → lib-GNBN4EH6.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-H4SZRJXB.js → mdx-N42X6CFJ-I3J2JFL4.js} +8 -8
- package/dist/_node-chunks/{p-limit-EA5PER7Y.js → p-limit-2LNUZG3W.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.js +18 -18
- package/dist/common/index.js +19 -19
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +49 -16
- package/dist/core-server/index.js +35 -35
- package/dist/core-server/presets/common-manager.js +15 -21
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +25 -25
- package/dist/csf/index.d.ts +333 -8
- package/dist/csf/index.js +1 -1
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +58 -25
- package/dist/manager/runtime.js +167 -148
- package/dist/manager-api/index.d.ts +13 -13
- package/dist/manager-api/index.js +1 -1
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +4 -6
- package/dist/preview-api/index.d.ts +69 -68
- package/dist/preview-api/index.js +1 -1
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.d.ts +5 -0
- package/dist/telemetry/index.js +23 -23
- package/dist/types/index.d.ts +2 -3
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-2WBHN5ZN.js +0 -23
- package/dist/_node-chunks/chunk-ADG4FYMH.js +0 -61
- package/dist/_node-chunks/chunk-J4YBZOS2.js +0 -18
package/dist/components/index.js
CHANGED
|
@@ -9920,7 +9920,7 @@ var sizes = (({ size }) => {
|
|
|
9920
9920
|
appearance: "none",
|
|
9921
9921
|
border: "0 none",
|
|
9922
9922
|
boxSizing: "inherit",
|
|
9923
|
-
display: "
|
|
9923
|
+
display: "block",
|
|
9924
9924
|
margin: " 0",
|
|
9925
9925
|
background: "transparent",
|
|
9926
9926
|
padding: 0,
|
|
@@ -9961,13 +9961,46 @@ var sizes = (({ size }) => {
|
|
|
9961
9961
|
}));
|
|
9962
9962
|
|
|
9963
9963
|
// src/components/components/Form/Input.tsx
|
|
9964
|
-
var
|
|
9964
|
+
var Wrapper2 = styled40.div({
|
|
9965
|
+
position: "relative",
|
|
9966
|
+
width: "100%"
|
|
9967
|
+
}), Mask = styled40.div(
|
|
9968
|
+
({ theme }) => ({
|
|
9969
|
+
position: "absolute",
|
|
9970
|
+
left: 0,
|
|
9971
|
+
right: 0,
|
|
9972
|
+
top: 0,
|
|
9973
|
+
bottom: 0,
|
|
9974
|
+
display: "flex",
|
|
9975
|
+
alignItems: "center",
|
|
9976
|
+
pointerEvents: "none",
|
|
9977
|
+
overflow: "hidden",
|
|
9978
|
+
color: theme.textMutedColor,
|
|
9979
|
+
"span:first-of-type": {
|
|
9980
|
+
opacity: 0
|
|
9981
|
+
}
|
|
9982
|
+
}),
|
|
9983
|
+
(props) => {
|
|
9984
|
+
let { fontSize, lineHeight, padding } = styles(props);
|
|
9985
|
+
return { fontSize, lineHeight, padding };
|
|
9986
|
+
}
|
|
9987
|
+
), Input2 = Object.assign(
|
|
9965
9988
|
styled40(
|
|
9966
|
-
forwardRef8(function({ size, valid, align, ...props }, ref) {
|
|
9967
|
-
|
|
9989
|
+
forwardRef8(function({ size, valid, align, value, suffix, ...props }, ref) {
|
|
9990
|
+
let suffixId = $bdb11010cef70236$export$f680877a34711e37();
|
|
9991
|
+
return React28.createElement(Wrapper2, null, React28.createElement(
|
|
9992
|
+
"input",
|
|
9993
|
+
{
|
|
9994
|
+
...props,
|
|
9995
|
+
value,
|
|
9996
|
+
ref,
|
|
9997
|
+
"aria-describedby": suffix ? suffixId : void 0
|
|
9998
|
+
}
|
|
9999
|
+
), suffix && React28.createElement(Mask, { "aria-hidden": !0 }, React28.createElement("span", null, value), React28.createElement("span", { id: suffixId }, suffix)));
|
|
9968
10000
|
})
|
|
9969
10001
|
)(styles, sizes, alignment, validation, {
|
|
9970
|
-
minHeight: 32
|
|
10002
|
+
minHeight: 32,
|
|
10003
|
+
width: "100%"
|
|
9971
10004
|
}),
|
|
9972
10005
|
{
|
|
9973
10006
|
displayName: "Input"
|
|
@@ -10057,7 +10090,7 @@ var BaseSelect = styled42.select(sizes, ({ theme }) => ({
|
|
|
10057
10090
|
},
|
|
10058
10091
|
"&::picker(select)": {
|
|
10059
10092
|
appearance: "base-select",
|
|
10060
|
-
border:
|
|
10093
|
+
border: `1px solid ${theme.input.border}`,
|
|
10061
10094
|
padding: 4,
|
|
10062
10095
|
marginTop: 4,
|
|
10063
10096
|
background: theme.base === "light" ? lighten(theme.background.app) : theme.background.app,
|
|
@@ -10322,7 +10355,7 @@ var Form = Object.assign(
|
|
|
10322
10355
|
import React35, { forwardRef as forwardRef11 } from "react";
|
|
10323
10356
|
import { CloseIcon } from "@storybook/icons";
|
|
10324
10357
|
import { lighten as lighten2, styled as styled45 } from "storybook/theming";
|
|
10325
|
-
var
|
|
10358
|
+
var Wrapper3 = styled45.div(
|
|
10326
10359
|
({ hasCloseButton, padding }) => ({
|
|
10327
10360
|
display: "inline-block",
|
|
10328
10361
|
position: "relative",
|
|
@@ -10365,7 +10398,7 @@ var Wrapper2 = styled45.div(
|
|
|
10365
10398
|
padding = 8,
|
|
10366
10399
|
...props
|
|
10367
10400
|
}, ref) => React35.createElement(
|
|
10368
|
-
|
|
10401
|
+
Wrapper3,
|
|
10369
10402
|
{
|
|
10370
10403
|
bgColor: color4,
|
|
10371
10404
|
hasChrome,
|
|
@@ -11143,8 +11176,8 @@ function $f39a9eba43920ace$export$8dc98ba7eadeaa56(props) {
|
|
|
11143
11176
|
}, children);
|
|
11144
11177
|
}
|
|
11145
11178
|
function $f39a9eba43920ace$export$86427a43e3e48ebb(fn) {
|
|
11146
|
-
let
|
|
11147
|
-
return
|
|
11179
|
+
let Wrapper7 = (props, ref) => $8SdCi$useContext($f39a9eba43920ace$export$94b6d0abf7d33e8c) ? null : fn(props, ref);
|
|
11180
|
+
return Wrapper7.displayName = fn.displayName || fn.name, $8SdCi$forwardRef(Wrapper7);
|
|
11148
11181
|
}
|
|
11149
11182
|
function $f39a9eba43920ace$export$b5d7cc18bb8d2b59() {
|
|
11150
11183
|
return $8SdCi$useContext($f39a9eba43920ace$export$94b6d0abf7d33e8c);
|
|
@@ -14657,7 +14690,7 @@ TabButton.displayName = "TabButton";
|
|
|
14657
14690
|
// src/components/components/Tabs/EmptyTabContent.tsx
|
|
14658
14691
|
import React46 from "react";
|
|
14659
14692
|
import { styled as styled53 } from "storybook/theming";
|
|
14660
|
-
var
|
|
14693
|
+
var Wrapper4 = styled53.div(({ theme }) => ({
|
|
14661
14694
|
height: "100%",
|
|
14662
14695
|
display: "flex",
|
|
14663
14696
|
padding: 30,
|
|
@@ -14683,7 +14716,7 @@ var Wrapper3 = styled53.div(({ theme }) => ({
|
|
|
14683
14716
|
fontSize: theme.typography.size.s2 - 1,
|
|
14684
14717
|
textAlign: "center",
|
|
14685
14718
|
color: theme.textMutedColor
|
|
14686
|
-
})), EmptyTabContent = ({ title, description, footer }) => React46.createElement(
|
|
14719
|
+
})), EmptyTabContent = ({ title, description, footer }) => React46.createElement(Wrapper4, null, React46.createElement(Content2, null, React46.createElement(Title5, null, title), description && React46.createElement(Description2, null, description)), footer && React46.createElement(Footer, null, footer));
|
|
14687
14720
|
|
|
14688
14721
|
// src/components/components/Tabs/Tabs.helpers.tsx
|
|
14689
14722
|
import React47, { Children as Children5 } from "react";
|
|
@@ -14832,7 +14865,7 @@ function useList(list) {
|
|
|
14832
14865
|
}
|
|
14833
14866
|
|
|
14834
14867
|
// src/components/components/Tabs/Tabs.tsx
|
|
14835
|
-
var ignoreSsrWarning2 = "/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",
|
|
14868
|
+
var ignoreSsrWarning2 = "/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */", Wrapper5 = styled56.div(
|
|
14836
14869
|
({ theme, bordered }) => bordered ? {
|
|
14837
14870
|
backgroundClip: "padding-box",
|
|
14838
14871
|
border: `1px solid ${theme.appBorderColor}`,
|
|
@@ -14938,7 +14971,7 @@ var TabErrorBoundary = class extends Component2 {
|
|
|
14938
14971
|
), { visibleList, tabBarRef, tabRefs, AddonTab } = useList(list), EmptyContent = emptyState ?? React49.createElement(EmptyTabContent, { title: "Nothing found" });
|
|
14939
14972
|
return !showToolsWhenEmpty && list.length === 0 ? EmptyContent : (
|
|
14940
14973
|
// @ts-expect-error (non strict)
|
|
14941
|
-
React49.createElement(
|
|
14974
|
+
React49.createElement(Wrapper5, { "data-deprecated": "Tabs", absolute, bordered, id: htmlId }, React49.createElement(FlexBar, { scrollable: !1, border: !0, backgroundColor }, React49.createElement(TabBar, { style: { whiteSpace: "normal" }, ref: tabBarRef, role: "tablist" }, visibleList.map(({ title, id, active, color: color4 }, index3) => {
|
|
14942
14975
|
let indexId = `index-${index3}`;
|
|
14943
14976
|
return React49.createElement(
|
|
14944
14977
|
TabButton,
|
|
@@ -16275,7 +16308,7 @@ var XMLNS = "http://www.w3.org/2000/svg", rotate = keyframes5({
|
|
|
16275
16308
|
"100%": {
|
|
16276
16309
|
transform: "rotate(360deg)"
|
|
16277
16310
|
}
|
|
16278
|
-
}),
|
|
16311
|
+
}), Wrapper6 = styled67.div(({ size }) => ({
|
|
16279
16312
|
display: "inline-flex",
|
|
16280
16313
|
alignItems: "center",
|
|
16281
16314
|
justifyContent: "center",
|
|
@@ -16318,7 +16351,7 @@ var XMLNS = "http://www.w3.org/2000/svg", rotate = keyframes5({
|
|
|
16318
16351
|
width = 1.5,
|
|
16319
16352
|
children = null,
|
|
16320
16353
|
...props
|
|
16321
|
-
}) => typeof percentage == "number" ? React63.createElement(
|
|
16354
|
+
}) => typeof percentage == "number" ? React63.createElement(Wrapper6, { 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(Wrapper6, { size, ...props }, children);
|
|
16322
16355
|
|
|
16323
16356
|
// src/components/components/utils/getStoryHref.ts
|
|
16324
16357
|
import { deprecate as deprecate13 } from "storybook/internal/client-logger";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_96u9uvlttj6 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_96u9uvlttj6 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_96u9uvlttj6 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_96u9uvlttj6.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_96u9uvlttj6.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_96u9uvlttj6.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
|
toEstree
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-HSLEWKPT.js";
|
|
15
15
|
import {
|
|
16
16
|
StatusTypeIdMismatchError
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-JZDQQ34S.js";
|
|
18
18
|
import {
|
|
19
19
|
debounce,
|
|
20
20
|
generateStoryFile,
|
|
@@ -25,69 +25,69 @@ import {
|
|
|
25
25
|
sendTelemetryError,
|
|
26
26
|
useStatics,
|
|
27
27
|
withTelemetry
|
|
28
|
-
} from "../_node-chunks/chunk-
|
|
28
|
+
} from "../_node-chunks/chunk-TOAOZCOV.js";
|
|
29
29
|
import {
|
|
30
30
|
detectPnp
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
32
|
-
import "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-TJGUM3J6.js";
|
|
32
|
+
import "../_node-chunks/chunk-7C3OCMOV.js";
|
|
33
33
|
import {
|
|
34
34
|
StorybookError
|
|
35
|
-
} from "../_node-chunks/chunk-
|
|
35
|
+
} from "../_node-chunks/chunk-LQF2YX4Z.js";
|
|
36
36
|
import {
|
|
37
37
|
telemetry
|
|
38
|
-
} from "../_node-chunks/chunk-
|
|
39
|
-
import "../_node-chunks/chunk-
|
|
38
|
+
} from "../_node-chunks/chunk-B6PRKQBU.js";
|
|
39
|
+
import "../_node-chunks/chunk-3G6JTYYU.js";
|
|
40
40
|
import {
|
|
41
41
|
optionalEnvToBoolean,
|
|
42
42
|
require_cross_spawn,
|
|
43
43
|
resolveImport,
|
|
44
44
|
supportedExtensions,
|
|
45
45
|
userOrAutoTitleFromSpecifier
|
|
46
|
-
} from "../_node-chunks/chunk-
|
|
47
|
-
import "../_node-chunks/chunk-
|
|
48
|
-
import "../_node-chunks/chunk-
|
|
46
|
+
} from "../_node-chunks/chunk-3WAOMPEV.js";
|
|
47
|
+
import "../_node-chunks/chunk-7CC7KOAY.js";
|
|
48
|
+
import "../_node-chunks/chunk-HNJNGHJI.js";
|
|
49
49
|
import {
|
|
50
50
|
require_pretty_hrtime
|
|
51
|
-
} from "../_node-chunks/chunk-
|
|
52
|
-
import "../_node-chunks/chunk-
|
|
53
|
-
import "../_node-chunks/chunk-
|
|
51
|
+
} from "../_node-chunks/chunk-LDPGDFBN.js";
|
|
52
|
+
import "../_node-chunks/chunk-XOGYJBNU.js";
|
|
53
|
+
import "../_node-chunks/chunk-NM76NNBF.js";
|
|
54
54
|
import {
|
|
55
55
|
invariant,
|
|
56
56
|
up2 as up
|
|
57
|
-
} from "../_node-chunks/chunk-
|
|
58
|
-
import "../_node-chunks/chunk-
|
|
57
|
+
} from "../_node-chunks/chunk-V2LVNLAT.js";
|
|
58
|
+
import "../_node-chunks/chunk-WC6YF7PX.js";
|
|
59
59
|
import {
|
|
60
60
|
importModule,
|
|
61
61
|
resolvePackageDir
|
|
62
|
-
} from "../_node-chunks/chunk-
|
|
62
|
+
} from "../_node-chunks/chunk-PFCD6HBP.js";
|
|
63
63
|
import {
|
|
64
64
|
dirname,
|
|
65
65
|
join,
|
|
66
66
|
relative,
|
|
67
67
|
resolve
|
|
68
|
-
} from "../_node-chunks/chunk-
|
|
68
|
+
} from "../_node-chunks/chunk-2MIIBCWO.js";
|
|
69
69
|
import {
|
|
70
70
|
slash
|
|
71
|
-
} from "../_node-chunks/chunk-
|
|
72
|
-
import "../_node-chunks/chunk-
|
|
71
|
+
} from "../_node-chunks/chunk-JGB6IJ7A.js";
|
|
72
|
+
import "../_node-chunks/chunk-QLZIG3XC.js";
|
|
73
73
|
import {
|
|
74
74
|
Tag
|
|
75
|
-
} from "../_node-chunks/chunk-
|
|
75
|
+
} from "../_node-chunks/chunk-C2PW44X2.js";
|
|
76
76
|
import {
|
|
77
77
|
require_dist
|
|
78
|
-
} from "../_node-chunks/chunk-
|
|
78
|
+
} from "../_node-chunks/chunk-UJMJ7W5H.js";
|
|
79
79
|
import {
|
|
80
80
|
require_lib,
|
|
81
81
|
require_src
|
|
82
|
-
} from "../_node-chunks/chunk-
|
|
82
|
+
} from "../_node-chunks/chunk-LY42XGJX.js";
|
|
83
83
|
import {
|
|
84
84
|
require_picocolors
|
|
85
|
-
} from "../_node-chunks/chunk-
|
|
85
|
+
} from "../_node-chunks/chunk-DX2OTMAX.js";
|
|
86
86
|
import {
|
|
87
87
|
__commonJS,
|
|
88
88
|
__require,
|
|
89
89
|
__toESM
|
|
90
|
-
} from "../_node-chunks/chunk-
|
|
90
|
+
} from "../_node-chunks/chunk-5BZY2EBX.js";
|
|
91
91
|
|
|
92
92
|
// ../../node_modules/glob-to-regexp/index.js
|
|
93
93
|
var require_glob_to_regexp = __commonJS({
|
|
@@ -4544,7 +4544,7 @@ function print(p) {
|
|
|
4544
4544
|
// src/core-server/utils/get-builders.ts
|
|
4545
4545
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
4546
4546
|
async function getManagerBuilder() {
|
|
4547
|
-
return await import("../_node-chunks/builder-manager-
|
|
4547
|
+
return await import("../_node-chunks/builder-manager-QV5RDRX3.js");
|
|
4548
4548
|
}
|
|
4549
4549
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
4550
4550
|
return await importModule(resolvedPreviewBuilder);
|
|
@@ -4608,7 +4608,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
4608
4608
|
// files can be e.g. '**/foo/*/*.js' so we just want the last bit,
|
|
4609
4609
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
4610
4610
|
basename(specifier.files)
|
|
4611
|
-
), { globby } = await import("../_node-chunks/globby-
|
|
4611
|
+
), { globby } = await import("../_node-chunks/globby-OVGPC72V.js");
|
|
4612
4612
|
(await globby(slash(dirGlob), commonGlobOptions(dirGlob))).forEach((filePath) => {
|
|
4613
4613
|
let fileImportPath = toImportPath(filePath);
|
|
4614
4614
|
specifier.importPathMatcher.exec(fileImportPath) && onInvalidate(fileImportPath, removed);
|
|
@@ -5627,7 +5627,7 @@ var getAttr = (elt, what) => elt.attributes.find((n) => n.type === "JSXAttribute
|
|
|
5627
5627
|
isTemplate: !1,
|
|
5628
5628
|
metaTags: void 0,
|
|
5629
5629
|
imports: void 0
|
|
5630
|
-
}, { compile } = await import("../_node-chunks/mdx-N42X6CFJ-
|
|
5630
|
+
}, { compile } = await import("../_node-chunks/mdx-N42X6CFJ-I3J2JFL4.js");
|
|
5631
5631
|
await compile(code, {
|
|
5632
5632
|
rehypePlugins: [[plugin, store]]
|
|
5633
5633
|
});
|
|
@@ -5772,7 +5772,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5772
5772
|
let cacheKey = this.getFindMatchingFilesCacheKey(specifier, workingDir, ignoreWarnings), cached = this.findMatchingFilesCache.get(cacheKey);
|
|
5773
5773
|
if (cached)
|
|
5774
5774
|
return cached;
|
|
5775
|
-
let pathToSubIndex = {}, globCwd = slash(resolve3(workingDir, specifier.directory)), globPattern = specifier.files.startsWith("!") ? `./${specifier.files}` : specifier.files, { globby } = await import("../_node-chunks/globby-
|
|
5775
|
+
let pathToSubIndex = {}, globCwd = slash(resolve3(workingDir, specifier.directory)), globPattern = specifier.files.startsWith("!") ? `./${specifier.files}` : specifier.files, { globby } = await import("../_node-chunks/globby-OVGPC72V.js"), files = await globby(globPattern, {
|
|
5776
5776
|
absolute: !0,
|
|
5777
5777
|
cwd: globCwd,
|
|
5778
5778
|
...commonGlobOptions2(globPattern)
|
|
@@ -634,35 +634,29 @@ var parseDate = (value2) => {
|
|
|
634
634
|
}, formatTime = (value2) => {
|
|
635
635
|
let date = new Date(value2), hours = `0${date.getHours()}`.slice(-2), minutes = `0${date.getMinutes()}`.slice(-2);
|
|
636
636
|
return `${hours}:${minutes}`;
|
|
637
|
-
}, FormInput = styled3(Form.Input)(
|
|
638
|
-
|
|
637
|
+
}, FormInput = styled3(Form.Input)(({ theme: theme3 }) => ({
|
|
638
|
+
"&[readonly]": {
|
|
639
639
|
background: theme3.base === "light" ? theme3.color.lighter : "transparent"
|
|
640
|
-
}
|
|
641
|
-
|
|
640
|
+
},
|
|
641
|
+
"&::-webkit-calendar-picker-indicator": {
|
|
642
|
+
opacity: 0.5,
|
|
643
|
+
height: 12,
|
|
644
|
+
filter: theme3.base === "light" ? void 0 : "invert(1)"
|
|
645
|
+
}
|
|
646
|
+
})), FlexSpaced = styled3.fieldset({
|
|
642
647
|
flex: 1,
|
|
643
648
|
display: "flex",
|
|
644
649
|
border: 0,
|
|
645
650
|
marginInline: 0,
|
|
646
651
|
padding: 0,
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
flex:
|
|
650
|
-
height: 32,
|
|
651
|
-
// hardcode height bc Chromium bug https://bugs.chromium.org/p/chromium/issues/detail?id=417606
|
|
652
|
-
"&::-webkit-calendar-picker-indicator": {
|
|
653
|
-
opacity: 0.5,
|
|
654
|
-
height: 12,
|
|
655
|
-
filter: theme3.base === "light" ? void 0 : "invert(1)"
|
|
656
|
-
}
|
|
657
|
-
},
|
|
658
|
-
"input:first-of-type": {
|
|
659
|
-
marginLeft: 0,
|
|
660
|
-
flexGrow: 4
|
|
652
|
+
gap: 10,
|
|
653
|
+
"div:first-of-type": {
|
|
654
|
+
flex: 4
|
|
661
655
|
},
|
|
662
|
-
"
|
|
663
|
-
|
|
656
|
+
"div:last-of-type": {
|
|
657
|
+
flex: 3
|
|
664
658
|
}
|
|
665
|
-
})
|
|
659
|
+
}), DateControl = ({ name, value: value2, onChange, onFocus, onBlur, argType }) => {
|
|
666
660
|
let [valid, setValid] = useState(!0), dateRef = useRef(), timeRef = useRef(), readonly = !!argType?.table?.readonly;
|
|
667
661
|
useEffect(() => {
|
|
668
662
|
valid !== !1 && (dateRef && dateRef.current && (dateRef.current.value = value2 ? formatDate(value2) : ""), timeRef && timeRef.current && (timeRef.current.value = value2 ? formatTime(value2) : ""));
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_96u9uvlttj6 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_96u9uvlttj6 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_96u9uvlttj6 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_96u9uvlttj6.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_96u9uvlttj6.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_96u9uvlttj6.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
|
slash
|
|
14
|
-
} from "../../_node-chunks/chunk-
|
|
14
|
+
} from "../../_node-chunks/chunk-JGB6IJ7A.js";
|
|
15
15
|
import {
|
|
16
16
|
glob
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-QLZIG3XC.js";
|
|
18
|
+
import "../../_node-chunks/chunk-5BZY2EBX.js";
|
|
19
19
|
|
|
20
20
|
// src/core-server/utils/remove-mdx-entries.ts
|
|
21
21
|
import { isAbsolute, join, relative } from "node:path";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_96u9uvlttj6 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_96u9uvlttj6 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_96u9uvlttj6 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_96u9uvlttj6.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_96u9uvlttj6.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_96u9uvlttj6.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-A635UKUK.js";
|
|
13
13
|
import {
|
|
14
14
|
doesStoryFileExist,
|
|
15
15
|
generateStoryFile,
|
|
@@ -17,47 +17,47 @@ import {
|
|
|
17
17
|
parseStaticDir,
|
|
18
18
|
sendTelemetryError,
|
|
19
19
|
throttle
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
21
|
-
import "../../_node-chunks/chunk-
|
|
22
|
-
import "../../_node-chunks/chunk-
|
|
23
|
-
import "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-TOAOZCOV.js";
|
|
21
|
+
import "../../_node-chunks/chunk-TJGUM3J6.js";
|
|
22
|
+
import "../../_node-chunks/chunk-7C3OCMOV.js";
|
|
23
|
+
import "../../_node-chunks/chunk-LQF2YX4Z.js";
|
|
24
24
|
import {
|
|
25
25
|
isI18nPackage,
|
|
26
26
|
isRouterPackage,
|
|
27
27
|
isStateManagementPackage,
|
|
28
28
|
isStylingPackage
|
|
29
|
-
} from "../../_node-chunks/chunk-
|
|
29
|
+
} from "../../_node-chunks/chunk-XOGYJBNU.js";
|
|
30
30
|
import {
|
|
31
31
|
globalSettings
|
|
32
|
-
} from "../../_node-chunks/chunk-
|
|
32
|
+
} from "../../_node-chunks/chunk-NM76NNBF.js";
|
|
33
33
|
import {
|
|
34
34
|
invariant
|
|
35
|
-
} from "../../_node-chunks/chunk-
|
|
36
|
-
import "../../_node-chunks/chunk-
|
|
35
|
+
} from "../../_node-chunks/chunk-V2LVNLAT.js";
|
|
36
|
+
import "../../_node-chunks/chunk-WC6YF7PX.js";
|
|
37
37
|
import {
|
|
38
38
|
resolvePackageDir
|
|
39
|
-
} from "../../_node-chunks/chunk-
|
|
39
|
+
} from "../../_node-chunks/chunk-PFCD6HBP.js";
|
|
40
40
|
import {
|
|
41
41
|
isAbsolute,
|
|
42
42
|
join
|
|
43
|
-
} from "../../_node-chunks/chunk-
|
|
43
|
+
} from "../../_node-chunks/chunk-2MIIBCWO.js";
|
|
44
44
|
import {
|
|
45
45
|
glob
|
|
46
|
-
} from "../../_node-chunks/chunk-
|
|
47
|
-
import "../../_node-chunks/chunk-
|
|
46
|
+
} from "../../_node-chunks/chunk-QLZIG3XC.js";
|
|
47
|
+
import "../../_node-chunks/chunk-C2PW44X2.js";
|
|
48
48
|
import {
|
|
49
49
|
require_dist
|
|
50
|
-
} from "../../_node-chunks/chunk-
|
|
51
|
-
import "../../_node-chunks/chunk-
|
|
52
|
-
import "../../_node-chunks/chunk-
|
|
50
|
+
} from "../../_node-chunks/chunk-UJMJ7W5H.js";
|
|
51
|
+
import "../../_node-chunks/chunk-M3NUJKHF.js";
|
|
52
|
+
import "../../_node-chunks/chunk-LY42XGJX.js";
|
|
53
53
|
import {
|
|
54
54
|
require_picocolors
|
|
55
|
-
} from "../../_node-chunks/chunk-
|
|
55
|
+
} from "../../_node-chunks/chunk-DX2OTMAX.js";
|
|
56
56
|
import {
|
|
57
57
|
__commonJS,
|
|
58
58
|
__require,
|
|
59
59
|
__toESM
|
|
60
|
-
} from "../../_node-chunks/chunk-
|
|
60
|
+
} from "../../_node-chunks/chunk-5BZY2EBX.js";
|
|
61
61
|
|
|
62
62
|
// ../../node_modules/shell-quote/quote.js
|
|
63
63
|
var require_quote = __commonJS({
|
|
@@ -650,7 +650,7 @@ async function searchFiles({
|
|
|
650
650
|
ignoredFiles = IGNORED_FILES,
|
|
651
651
|
fileExtensions = FILE_EXTENSIONS
|
|
652
652
|
}) {
|
|
653
|
-
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-
|
|
653
|
+
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-OVGPC72V.js"), hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd }), searchQueryHasExtension = /(\.[a-z]+)$/i.test(searchQuery), fileExtensionsPattern = `{${fileExtensions.join(",")}}`, globbedSearchQuery = hasSearchSpecialGlobChars ? searchQuery : searchQueryHasExtension ? [`**/*${searchQuery}*`, `**/*${searchQuery}*/**`] : [
|
|
654
654
|
`**/*${searchQuery}*.${fileExtensionsPattern}`,
|
|
655
655
|
`**/*${searchQuery}*/**/*.${fileExtensionsPattern}`
|
|
656
656
|
];
|