@jegdev/sema-ui 0.0.3 → 0.0.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/package.json +12 -4
- package/src/index.d.ts +31 -0
package/package.json
CHANGED
|
@@ -1,25 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jegdev/sema-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.4",
|
|
5
5
|
"description": "Una colección de componentes Lit minimalistas estilo Swiss Design",
|
|
6
6
|
"keywords": ["Next", "React", "Angular", "Vue", "Astro", "Lit"],
|
|
7
7
|
"type": "module",
|
|
8
|
+
|
|
8
9
|
"files": [
|
|
9
|
-
"dist"
|
|
10
|
+
"dist",
|
|
11
|
+
"src/index.d.ts"
|
|
10
12
|
],
|
|
13
|
+
|
|
11
14
|
"license": "MIT",
|
|
12
15
|
"author": "JEG Dev Studios",
|
|
13
16
|
"contributors": ["JhonnDevJS", "JasubiPL"],
|
|
17
|
+
|
|
14
18
|
"main": "./dist/sema-ui.umd.js",
|
|
15
19
|
"module": "./dist/sema-ui.es.js",
|
|
20
|
+
"types": "./src/index.d.ts",
|
|
21
|
+
|
|
16
22
|
"homepage": "https://github.com/JEGDevStudios/Sema-UI",
|
|
17
23
|
"repository": {
|
|
18
24
|
"type": "git",
|
|
19
25
|
"url": "https://github.com/JEGDevStudios/Sema-UI"
|
|
20
26
|
},
|
|
27
|
+
|
|
21
28
|
"exports": {
|
|
22
29
|
".": {
|
|
30
|
+
"types": "./src/index.d.ts",
|
|
23
31
|
"import": "./dist/sema-ui.es.js",
|
|
24
32
|
"require": "./dist/sema-ui.umd.js"
|
|
25
33
|
}
|
|
@@ -37,6 +45,6 @@
|
|
|
37
45
|
"lit": "^3.0.0"
|
|
38
46
|
},
|
|
39
47
|
"devDependencies": {
|
|
40
|
-
"vite": "^
|
|
48
|
+
"vite": "^5.0.0"
|
|
41
49
|
}
|
|
42
|
-
}
|
|
50
|
+
}
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare module '@jegdev/sema-ui' {
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
|
|
4
|
+
export class SemaButton extends LitElement {
|
|
5
|
+
// Coincide con 'mode' en tu JS.
|
|
6
|
+
// Agregamos '' porque es tu default para el botón primario.
|
|
7
|
+
mode: 'outline' | 'ghost' | '' | string;
|
|
8
|
+
|
|
9
|
+
// Coincide con 'kind' (link o button)
|
|
10
|
+
kind: 'link' | 'button' | string;
|
|
11
|
+
|
|
12
|
+
// Coincide con 'custom' ('on' | 'off')
|
|
13
|
+
custom: 'on' | 'off' | string;
|
|
14
|
+
|
|
15
|
+
// Colores personalizados
|
|
16
|
+
firstColor: string;
|
|
17
|
+
secondaryColor: string;
|
|
18
|
+
|
|
19
|
+
// Tamaños exactos según tu lógica JS
|
|
20
|
+
size: 'sm' | 'md' | 'lg' | 'full' | string;
|
|
21
|
+
|
|
22
|
+
// Tamaños de fuente exactos según tu lógica JS
|
|
23
|
+
fontSize: 'sm' | 'md' | 'lg' | 'xl' | string;
|
|
24
|
+
|
|
25
|
+
// Contenido y enlaces
|
|
26
|
+
textLabel: string;
|
|
27
|
+
url: string;
|
|
28
|
+
target: '_blank' | '_self' | '_parent' | '_top' | string;
|
|
29
|
+
altText: string;
|
|
30
|
+
}
|
|
31
|
+
}
|