vueless 0.0.478-beta.20 → 0.0.478-beta.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.478-beta.20",
3
+ "version": "0.0.478-beta.21",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -66,7 +66,7 @@
66
66
  "@vue/eslint-config-typescript": "^14.1.1",
67
67
  "@vue/tsconfig": "^0.5.1",
68
68
  "@vueless/storybook": "^0.0.37",
69
- "@vueless/web-types": "^0.0.20",
69
+ "@vueless/web-types": "^0.0.21",
70
70
  "autoprefixer": "^10.4.19",
71
71
  "cssnano": "^6.1.2",
72
72
  "eslint": "^9.12.0",
package/types.ts CHANGED
@@ -236,3 +236,87 @@ export interface VuelessCssVariables {
236
236
  "--vl-color-brand-950": string;
237
237
  "--vl-color-brand-default": string;
238
238
  }
239
+
240
+ /* Web-types interfaces and types */
241
+
242
+ export interface WebTypes {
243
+ framework: string;
244
+ name: string;
245
+ version: string;
246
+ contributions: Contributions;
247
+ }
248
+
249
+ export interface Contributions {
250
+ html: HtmlContributions;
251
+ }
252
+
253
+ export interface HtmlContributions {
254
+ "description-markup": string;
255
+ "types-syntax": string;
256
+ tags: Tag[];
257
+ }
258
+
259
+ export interface Tag {
260
+ name: string;
261
+ description?: string;
262
+ attributes?: Attribute[];
263
+ events?: Event[];
264
+ slots?: Slot[];
265
+ exposes?: Expose[];
266
+ source?: Source;
267
+ }
268
+
269
+ export interface Source {
270
+ module: string;
271
+ symbol: string;
272
+ }
273
+
274
+ export interface Attribute {
275
+ name: string;
276
+ enum: string[];
277
+ required?: boolean;
278
+ description?: string;
279
+ value: AttributeValue;
280
+ default?: unknown;
281
+ }
282
+
283
+ export interface AttributeValue {
284
+ kind: string;
285
+ type: string;
286
+ }
287
+
288
+ export interface Event {
289
+ name: string;
290
+ description?: string;
291
+ properties?: EventProperty[];
292
+ }
293
+
294
+ export interface EventProperty {
295
+ type: string[];
296
+ name: string;
297
+ description?: string;
298
+ }
299
+
300
+ export interface Slot {
301
+ name: string;
302
+ description?: string;
303
+ scoped?: boolean;
304
+ bindings?: SlotBinding[];
305
+ }
306
+
307
+ export interface SlotBinding {
308
+ type: string;
309
+ name: string;
310
+ description?: string;
311
+ }
312
+
313
+ export interface Expose {
314
+ name: string;
315
+ description?: string;
316
+ properties: ExposeProperty[];
317
+ }
318
+
319
+ export interface ExposeProperty {
320
+ type: string;
321
+ description?: string;
322
+ }
@@ -18,9 +18,6 @@ interface UBadgeArgs extends UBadgeProps {
18
18
  enum: "variant" | "size";
19
19
  }
20
20
 
21
- /**
22
- * The `UBadge` component. | [View on GitHub](https://github.com/vuelessjs/vueless/tree/main/src/ui.text-badge)
23
- */
24
21
  export default {
25
22
  id: "4090",
26
23
  title: "Text & Content / Badge",
@@ -24,7 +24,9 @@ export let vuelessConfig = {};
24
24
  fs.existsSync(configPathJs) && (await buildConfig(configPathJs, configOutPath));
25
25
  fs.existsSync(configPathTs) && (await buildConfig(configPathTs, configOutPath));
26
26
 
27
- vuelessConfig = (await import(configOutPath)).default;
27
+ if (fs.existsSync(configOutPath)) {
28
+ vuelessConfig = (await import(configOutPath)).default;
29
+ }
28
30
  })();
29
31
 
30
32
  async function buildConfig(entryPath, configOutFile) {
@@ -1,86 +1,13 @@
1
1
  import { COMPONENTS } from "../constants.js";
2
2
 
3
- interface WebTypes {
4
- framework: string;
5
- name: string;
6
- version: string;
7
- contributions: Contributions;
8
- }
9
-
10
- interface Contributions {
11
- html: HtmlContributions;
12
- }
13
-
14
- interface HtmlContributions {
15
- "description-markup": string;
16
- "types-syntax": string;
17
- tags: Tag[];
18
- }
19
-
20
- interface Tag {
21
- name: string;
22
- description?: string;
23
- attributes?: Attribute[];
24
- events?: Event[];
25
- slots?: Slot[];
26
- exposes?: Expose[];
27
- source?: Source;
28
- }
29
-
30
- interface Attribute {
31
- name: string;
32
- enum: string[];
33
- required?: boolean;
34
- description?: string;
35
- value: AttributeValue;
36
- default?: unknown;
37
- }
38
-
39
- interface AttributeValue {
40
- kind: string;
41
- type: string;
42
- }
43
-
44
- interface Event {
45
- name: string;
46
- description?: string;
47
- properties?: EventProperty[];
48
- }
49
-
50
- interface EventProperty {
51
- type: string[];
52
- name: string;
53
- description?: string;
54
- }
55
-
56
- interface Slot {
57
- name: string;
58
- description?: string;
59
- scoped?: boolean;
60
- bindings?: SlotBinding[];
61
- }
62
-
63
- interface SlotBinding {
64
- type: string;
65
- name: string;
66
- description?: string;
67
- }
68
-
69
- interface Expose {
70
- name: string;
71
- description?: string;
72
- properties: ExposeProperty[];
73
- }
74
-
75
- interface ExposeProperty {
76
- type: string;
77
- description?: string;
78
- }
79
-
80
- interface Source {
81
- module: string;
82
- symbol: string;
83
- }
3
+ import type {
4
+ WebTypes,
5
+ Tag,
6
+ Attribute,
7
+ EventProperty,
8
+ SlotBinding,
9
+ ExposeProperty,
10
+ } from "../types.ts";
84
11
 
85
12
  interface Types {
86
13
  [key: string]: ArgType | undefined;
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.478-beta.20",
4
+ "version": "0.0.478-beta.21",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",