vueless 0.0.797 → 0.0.798

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/index.ts CHANGED
@@ -9,7 +9,7 @@ import type { CreateVuelessOptions } from "./types.ts"
9
9
 
10
10
  export { setTheme } from "./utils/theme.ts";
11
11
  export { cx, cva, compose, getDefaults } from "./utils/ui.ts";
12
- export { getArgTypes, getSlotNames, getSlotsFragment, getSource } from "./utils/storybook.ts";
12
+ export { getArgTypes, getSlotNames, getSlotsFragment, getSource, getDocsDescription } from "./utils/storybook.ts";
13
13
  export { isSSR, isCSR, getRandomId, setTitle, createDebounce, hasSlotContent } from "./utils/helper.ts";
14
14
  export { isMac, isPWA, isIOS, isAndroid, isMobileApp, isWindows } from "./utils/platform.ts";
15
15
  export { default as createVueI18nAdapter } from "./adatper.locale/vue-i18n.ts";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.797",
3
+ "version": "0.0.798",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -61,27 +61,6 @@ export function getSlotNames(componentName: string | undefined) {
61
61
  return getComponentData(componentName as ComponentNames)?.slots?.map((item) => item.name);
62
62
  }
63
63
 
64
- /**
65
- * Create story param config to show component description with a link on GitHub.
66
- */
67
- export function getDocsDescription(componentName: string | undefined) {
68
- if (!componentName) {
69
- return {};
70
- }
71
-
72
- let viewOnGitHub = "";
73
-
74
- if (COMPONENTS[componentName as ComponentNames]) {
75
- viewOnGitHub = `| <a href="https://github.com/vuelessjs/vueless/tree/main/src/${COMPONENTS[componentName as ComponentNames]}" target="_blank">View on GitHub</a>`;
76
- }
77
-
78
- return {
79
- description: {
80
- component: `The \`${componentName}\` component. ${viewOnGitHub}`,
81
- },
82
- };
83
- }
84
-
85
64
  export function getArgTypes(componentName: string | undefined) {
86
65
  if (!componentName) return;
87
66
 
@@ -324,3 +303,24 @@ export function getSlotsFragment(defaultTemplate: string) {
324
303
  </template>
325
304
  `;
326
305
  }
306
+
307
+ /**
308
+ * Create story param config to show component description with a link on GitHub.
309
+ */
310
+ export function getDocsDescription(componentName: string | undefined) {
311
+ if (!componentName) {
312
+ return {};
313
+ }
314
+
315
+ let viewOnGitHub = "";
316
+
317
+ if (COMPONENTS[componentName as ComponentNames]) {
318
+ viewOnGitHub = `| <a href="https://github.com/vuelessjs/vueless/tree/main/src/${COMPONENTS[componentName as ComponentNames]}" target="_blank">View on GitHub</a>`;
319
+ }
320
+
321
+ return {
322
+ description: {
323
+ component: `The \`${componentName}\` component. ${viewOnGitHub}`,
324
+ },
325
+ };
326
+ }