@storybook/react 10.5.0-alpha.2 → 10.5.0-alpha.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/dist/_browser-chunks/{chunk-E4YOXNOQ.js → chunk-GOMPYXOS.js} +1 -1
- package/dist/_browser-chunks/{chunk-CMP5DLKH.js → chunk-IMEABK32.js} +1 -1
- package/dist/_browser-chunks/{chunk-77RIPXG7.js → chunk-K2MYE2K3.js} +1 -1
- package/dist/_browser-chunks/{chunk-GUVY6QMW.js → chunk-S7Q5R54F.js} +2 -2
- package/dist/entry-preview-argtypes.js +2 -2
- package/dist/entry-preview-docs.js +2 -2
- package/dist/index.d.ts +770 -163
- package/dist/index.js +4 -4
- package/dist/preset.js +7 -7
- package/dist/preview.d.ts +770 -163
- package/dist/preview.js +4 -4
- package/package.json +5 -5
- package/template/cli/js/Button.stories.js +1 -1
- package/template/cli/ts/Button.stories.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__definePreview
|
|
3
|
-
} from "./_browser-chunks/chunk-
|
|
3
|
+
} from "./_browser-chunks/chunk-S7Q5R54F.js";
|
|
4
4
|
import {
|
|
5
5
|
entry_preview_exports,
|
|
6
6
|
renderToCanvas
|
|
7
7
|
} from "./_browser-chunks/chunk-L3JF7GGZ.js";
|
|
8
8
|
import {
|
|
9
9
|
entry_preview_argtypes_exports
|
|
10
|
-
} from "./_browser-chunks/chunk-
|
|
11
|
-
import "./_browser-chunks/chunk-
|
|
10
|
+
} from "./_browser-chunks/chunk-K2MYE2K3.js";
|
|
11
|
+
import "./_browser-chunks/chunk-IMEABK32.js";
|
|
12
12
|
import "./_browser-chunks/chunk-DDIRQRCA.js";
|
|
13
|
-
import "./_browser-chunks/chunk-
|
|
13
|
+
import "./_browser-chunks/chunk-GOMPYXOS.js";
|
|
14
14
|
import "./_browser-chunks/chunk-SL3VIQZ3.js";
|
|
15
15
|
|
|
16
16
|
// src/globals.ts
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wrq8d81c1df from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wrq8d81c1df from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wrq8d81c1df from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wrq8d81c1df.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wrq8d81c1df.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wrq8d81c1df.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13858,7 +13858,7 @@ var defaultFunctionValue = inlineFunction, formatFunction = (function(fn, option
|
|
|
13858
13858
|
var usedValue = hasValue ? value : defaultValue, useBooleanShorthandSyntax = options.useBooleanShorthandSyntax, tabStop = options.tabStop, formattedPropValue = formatPropValue(usedValue, inline, lvl, options), attributeFormattedInline = " ", attributeFormattedMultiline = `
|
|
13859
13859
|
`.concat(spacer(lvl + 1, tabStop)), isMultilineAttribute = formattedPropValue.includes(`
|
|
13860
13860
|
`);
|
|
13861
|
-
return useBooleanShorthandSyntax && formattedPropValue === "{
|
|
13861
|
+
return useBooleanShorthandSyntax && formattedPropValue === "{true}" ? (attributeFormattedInline += "".concat(name), attributeFormattedMultiline += "".concat(name)) : (attributeFormattedInline += "".concat(name, "=").concat(formattedPropValue), attributeFormattedMultiline += "".concat(name, "=").concat(formattedPropValue)), {
|
|
13862
13862
|
attributeFormattedInline,
|
|
13863
13863
|
attributeFormattedMultiline,
|
|
13864
13864
|
isMultilineAttribute
|