@jegdev/sema-ui 0.0.4 → 0.0.6
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 +15 -12
- package/src/index.d.ts +43 -26
package/package.json
CHANGED
|
@@ -1,30 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jegdev/sema-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.6",
|
|
5
5
|
"description": "Una colección de componentes Lit minimalistas estilo Swiss Design",
|
|
6
|
-
"keywords": [
|
|
6
|
+
"keywords": [
|
|
7
|
+
"Next",
|
|
8
|
+
"React",
|
|
9
|
+
"Angular",
|
|
10
|
+
"Vue",
|
|
11
|
+
"Astro",
|
|
12
|
+
"Lit"
|
|
13
|
+
],
|
|
7
14
|
"type": "module",
|
|
8
|
-
|
|
9
15
|
"files": [
|
|
10
16
|
"dist",
|
|
11
17
|
"src/index.d.ts"
|
|
12
18
|
],
|
|
13
|
-
|
|
14
19
|
"license": "MIT",
|
|
15
20
|
"author": "JEG Dev Studios",
|
|
16
|
-
"contributors": [
|
|
17
|
-
|
|
21
|
+
"contributors": [
|
|
22
|
+
"JhonnDevJS",
|
|
23
|
+
"JasubiPL"
|
|
24
|
+
],
|
|
18
25
|
"main": "./dist/sema-ui.umd.js",
|
|
19
26
|
"module": "./dist/sema-ui.es.js",
|
|
20
27
|
"types": "./src/index.d.ts",
|
|
21
|
-
|
|
22
28
|
"homepage": "https://github.com/JEGDevStudios/Sema-UI",
|
|
23
29
|
"repository": {
|
|
24
30
|
"type": "git",
|
|
25
31
|
"url": "https://github.com/JEGDevStudios/Sema-UI"
|
|
26
32
|
},
|
|
27
|
-
|
|
28
33
|
"exports": {
|
|
29
34
|
".": {
|
|
30
35
|
"types": "./src/index.d.ts",
|
|
@@ -32,11 +37,9 @@
|
|
|
32
37
|
"require": "./dist/sema-ui.umd.js"
|
|
33
38
|
}
|
|
34
39
|
},
|
|
35
|
-
|
|
36
40
|
"publishConfig": {
|
|
37
41
|
"access": "public"
|
|
38
42
|
},
|
|
39
|
-
|
|
40
43
|
"scripts": {
|
|
41
44
|
"dev": "vite",
|
|
42
45
|
"build": "vite build"
|
|
@@ -45,6 +48,6 @@
|
|
|
45
48
|
"lit": "^3.0.0"
|
|
46
49
|
},
|
|
47
50
|
"devDependencies": {
|
|
48
|
-
"vite": "^
|
|
51
|
+
"vite": "^7.3.1"
|
|
49
52
|
}
|
|
50
|
-
}
|
|
53
|
+
}
|
package/src/index.d.ts
CHANGED
|
@@ -1,31 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
import { LitElement } from 'lit';
|
|
1
|
+
import { LitElement } from 'lit';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
export class SemaButton extends LitElement {
|
|
4
|
+
mode: 'outline' | 'ghost' | '' | string;
|
|
5
|
+
kind: 'link' | 'button' | string;
|
|
6
|
+
custom: 'on' | 'off' | string;
|
|
7
|
+
firstColor: string;
|
|
8
|
+
secondaryColor: string;
|
|
9
|
+
size: 'sm' | 'md' | 'lg' | 'full' | string;
|
|
10
|
+
fontSize: 'sm' | 'md' | 'lg' | 'xl' | string;
|
|
11
|
+
url: string;
|
|
12
|
+
target: '_blank' | '_self' | '_parent' | '_top' | string;
|
|
13
|
+
altText: string;
|
|
14
|
+
}
|
|
8
15
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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;
|
|
16
|
+
declare global {
|
|
17
|
+
interface HTMLElementTagNameMap {
|
|
18
|
+
"sema-button": SemaButton;
|
|
19
|
+
}
|
|
24
20
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
namespace JSX {
|
|
22
|
+
interface IntrinsicElements {
|
|
23
|
+
"sema-button": {
|
|
24
|
+
mode?: 'outline' | 'ghost' | '' | string;
|
|
25
|
+
kind?: 'link' | 'button' | string;
|
|
26
|
+
custom?: 'on' | 'off' | string;
|
|
27
|
+
firstColor?: string;
|
|
28
|
+
"first-color"?: string;
|
|
29
|
+
|
|
30
|
+
secondaryColor?: string;
|
|
31
|
+
"secondary-color"?: string;
|
|
32
|
+
|
|
33
|
+
size?: 'sm' | 'md' | 'lg' | 'full' | string;
|
|
34
|
+
|
|
35
|
+
fontSize?: 'sm' | 'md' | 'lg' | 'xl' | string;
|
|
36
|
+
"font-size"?: string;
|
|
37
|
+
|
|
38
|
+
url?: string;
|
|
39
|
+
target?: string;
|
|
40
|
+
|
|
41
|
+
altText?: string;
|
|
42
|
+
"alt-text"?: string;
|
|
43
|
+
children?: any;
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
30
47
|
}
|
|
31
48
|
}
|