Comparing version 0.0.797 to 0.0.798
@@ -12,3 +12,3 @@ /* eslint-disable prettier/prettier */ | ||
export { cx, cva, compose, getDefaults } from "./utils/ui.ts"; | ||
export { getArgTypes, getSlotNames, getSlotsFragment, getSource } from "./utils/storybook.ts"; | ||
export { getArgTypes, getSlotNames, getSlotsFragment, getSource, getDocsDescription } from "./utils/storybook.ts"; | ||
export { isSSR, isCSR, getRandomId, setTitle, createDebounce, hasSlotContent } from "./utils/helper.ts"; | ||
@@ -15,0 +15,0 @@ export { isMac, isPWA, isIOS, isAndroid, isMobileApp, isWindows } from "./utils/platform.ts"; |
{ | ||
"name": "vueless", | ||
"version": "0.0.797", | ||
"version": "0.0.798", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.", |
@@ -64,23 +64,2 @@ import { COMPONENTS } from "../constants.js"; | ||
/** | ||
* Create story param config to show component description with a link on GitHub. | ||
*/ | ||
export function getDocsDescription(componentName: string | undefined) { | ||
if (!componentName) { | ||
return {}; | ||
} | ||
let viewOnGitHub = ""; | ||
if (COMPONENTS[componentName as ComponentNames]) { | ||
viewOnGitHub = `| <a href="https://github.com/vuelessjs/vueless/tree/main/src/${COMPONENTS[componentName as ComponentNames]}" target="_blank">View on GitHub</a>`; | ||
} | ||
return { | ||
description: { | ||
component: `The \`${componentName}\` component. ${viewOnGitHub}`, | ||
}, | ||
}; | ||
} | ||
export function getArgTypes(componentName: string | undefined) { | ||
@@ -328,1 +307,22 @@ if (!componentName) return; | ||
} | ||
/** | ||
* Create story param config to show component description with a link on GitHub. | ||
*/ | ||
export function getDocsDescription(componentName: string | undefined) { | ||
if (!componentName) { | ||
return {}; | ||
} | ||
let viewOnGitHub = ""; | ||
if (COMPONENTS[componentName as ComponentNames]) { | ||
viewOnGitHub = `| <a href="https://github.com/vuelessjs/vueless/tree/main/src/${COMPONENTS[componentName as ComponentNames]}" target="_blank">View on GitHub</a>`; | ||
} | ||
return { | ||
description: { | ||
component: `The \`${componentName}\` component. ${viewOnGitHub}`, | ||
}, | ||
}; | ||
} |
1063155