mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-21 17:32:41 +00:00
42 lines
1.5 KiB
JavaScript
42 lines
1.5 KiB
JavaScript
import {
|
|
require_mapValues
|
|
} from "./chunk-FPWI56YW.js";
|
|
import {
|
|
require_doctrine
|
|
} from "./chunk-GN66SBWY.js";
|
|
import {
|
|
require_preview_api
|
|
} from "./chunk-CQBMCNM3.js";
|
|
import {
|
|
__toESM
|
|
} from "./chunk-USJHI7ER.js";
|
|
|
|
// node_modules/@storybook/docs-tools/dist/index.mjs
|
|
var import_mapValues = __toESM(require_mapValues(), 1);
|
|
var import_doctrine = __toESM(require_doctrine(), 1);
|
|
var import_preview_api = __toESM(require_preview_api(), 1);
|
|
var TypeSystem = ((TypeSystem2) => (TypeSystem2.JAVASCRIPT = "JavaScript", TypeSystem2.FLOW = "Flow", TypeSystem2.TYPESCRIPT = "TypeScript", TypeSystem2.UNKNOWN = "Unknown", TypeSystem2))(TypeSystem || {});
|
|
var str = (obj) => {
|
|
if (!obj)
|
|
return "";
|
|
if (typeof obj == "string")
|
|
return obj;
|
|
throw new Error(`Description: expected string, got: ${JSON.stringify(obj)}`);
|
|
};
|
|
var enhanceArgTypes = (context) => {
|
|
let { component, argTypes: userArgTypes, parameters: { docs = {} } } = context, { extractArgTypes } = docs, extractedArgTypes = extractArgTypes && component ? extractArgTypes(component) : {};
|
|
return extractedArgTypes ? (0, import_preview_api.combineParameters)(extractedArgTypes, userArgTypes) : userArgTypes;
|
|
};
|
|
var ADDON_ID = "storybook/docs";
|
|
var PANEL_ID = `${ADDON_ID}/panel`;
|
|
var SNIPPET_RENDERED = `${ADDON_ID}/snippet-rendered`;
|
|
var SourceType = ((SourceType2) => (SourceType2.AUTO = "auto", SourceType2.CODE = "code", SourceType2.DYNAMIC = "dynamic", SourceType2))(SourceType || {});
|
|
|
|
export {
|
|
str,
|
|
enhanceArgTypes,
|
|
SNIPPET_RENDERED,
|
|
SourceType
|
|
};
|
|
//# sourceMappingURL=chunk-Z4TEKGYV.js.map
|