runeforge 0.0.9 → 0.0.10
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.
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
required = true,
|
|
14
14
|
placeholder = '',
|
|
15
15
|
invalid = false,
|
|
16
|
+
labelClass,
|
|
17
|
+
inputClass,
|
|
18
|
+
buttonClass,
|
|
16
19
|
}: {
|
|
17
20
|
name?: string;
|
|
18
21
|
id?: string;
|
|
@@ -21,6 +24,9 @@
|
|
|
21
24
|
required?: boolean;
|
|
22
25
|
placeholder?: string;
|
|
23
26
|
invalid?: boolean;
|
|
27
|
+
labelClass?: string;
|
|
28
|
+
inputClass?: string;
|
|
29
|
+
buttonClass?: string;
|
|
24
30
|
} = $props();
|
|
25
31
|
|
|
26
32
|
const icons = $derived(getIconSet() ?? defaultIconSet);
|
|
@@ -30,7 +36,8 @@
|
|
|
30
36
|
<Label
|
|
31
37
|
class={[
|
|
32
38
|
'input input-bordered w-full',
|
|
33
|
-
{ 'input-error': invalid }
|
|
39
|
+
{ 'input-error': invalid },
|
|
40
|
+
labelClass
|
|
34
41
|
]}
|
|
35
42
|
>
|
|
36
43
|
<input
|
|
@@ -41,11 +48,11 @@
|
|
|
41
48
|
{value}
|
|
42
49
|
{autocomplete}
|
|
43
50
|
type={visible ? 'text' : 'password'}
|
|
44
|
-
class=
|
|
51
|
+
class={['grow', inputClass]}
|
|
45
52
|
/>
|
|
46
53
|
<Button
|
|
47
54
|
btn={false}
|
|
48
|
-
class=
|
|
55
|
+
class={['cursor-pointer opacity-60 hover:opacity-100', buttonClass].filter(Boolean).join(' ')}
|
|
49
56
|
aria-label={visible ? 'Ocultar contraseña' : 'Mostrar contraseña'}
|
|
50
57
|
aria-pressed={visible}
|
|
51
58
|
onclick={() => (visible = !visible)}
|
|
@@ -7,6 +7,9 @@ type $$ComponentProps = {
|
|
|
7
7
|
required?: boolean;
|
|
8
8
|
placeholder?: string;
|
|
9
9
|
invalid?: boolean;
|
|
10
|
+
labelClass?: string;
|
|
11
|
+
inputClass?: string;
|
|
12
|
+
buttonClass?: string;
|
|
10
13
|
};
|
|
11
14
|
declare const PasswordInput: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
12
15
|
type PasswordInput = ReturnType<typeof PasswordInput>;
|
package/package.json
CHANGED
|
@@ -1,81 +1,79 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
}
|
|
2
|
+
"name": "runeforge",
|
|
3
|
+
"version": "0.0.10",
|
|
4
|
+
"description": "SvelteKit toolkit for building metadata-driven CRUD interfaces with tables, forms, and actions",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Ezequiel Puerta",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"svelte",
|
|
9
|
+
"sveltekit",
|
|
10
|
+
"crud",
|
|
11
|
+
"table",
|
|
12
|
+
"form",
|
|
13
|
+
"daisyui",
|
|
14
|
+
"tailwindcss",
|
|
15
|
+
"ui"
|
|
16
|
+
],
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"!dist/**/*.test.*",
|
|
20
|
+
"!dist/**/*.spec.*"
|
|
21
|
+
],
|
|
22
|
+
"sideEffects": [
|
|
23
|
+
"**/*.css"
|
|
24
|
+
],
|
|
25
|
+
"svelte": "./dist/index.js",
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"type": "module",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"svelte": "./dist/index.js"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"@sveltejs/kit": "^2.0.0",
|
|
36
|
+
"daisyui": "^5.0.0",
|
|
37
|
+
"svelte": "^5.0.0",
|
|
38
|
+
"tailwindcss": "^4.0.0"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@eslint/js": "^10.0.1",
|
|
42
|
+
"@playwright/test": "^1.60.0",
|
|
43
|
+
"@sveltejs/adapter-auto": "^7.0.1",
|
|
44
|
+
"@sveltejs/kit": "^2.63.0",
|
|
45
|
+
"@sveltejs/package": "^2.5.8",
|
|
46
|
+
"@sveltejs/vite-plugin-svelte": "^7.1.2",
|
|
47
|
+
"@tailwindcss/vite": "^4.3.1",
|
|
48
|
+
"@types/node": "^22",
|
|
49
|
+
"daisyui": "^5.5.23",
|
|
50
|
+
"eslint": "^10.4.1",
|
|
51
|
+
"eslint-config-prettier": "^10.1.8",
|
|
52
|
+
"eslint-plugin-svelte": "^3.19.0",
|
|
53
|
+
"globals": "^17.6.0",
|
|
54
|
+
"prettier": "^3.8.3",
|
|
55
|
+
"prettier-plugin-svelte": "^4.1.0",
|
|
56
|
+
"publint": "^0.3.21",
|
|
57
|
+
"svelte": "^5.56.1",
|
|
58
|
+
"svelte-bootstrap-icons": "^3.3.0",
|
|
59
|
+
"svelte-check": "^4.6.0",
|
|
60
|
+
"tailwindcss": "^4.3.1",
|
|
61
|
+
"typescript": "^6.0.3",
|
|
62
|
+
"typescript-eslint": "^8.60.1",
|
|
63
|
+
"vite": "^8.0.16",
|
|
64
|
+
"vitest": "^4.1.8"
|
|
65
|
+
},
|
|
66
|
+
"scripts": {
|
|
67
|
+
"dev": "vite dev",
|
|
68
|
+
"build": "vite build && npm run prepack",
|
|
69
|
+
"preview": "vite preview",
|
|
70
|
+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
71
|
+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
72
|
+
"test": "pnpm run test:unit && pnpm run test:e2e",
|
|
73
|
+
"test:unit": "vitest run",
|
|
74
|
+
"test:unit:watch": "vitest",
|
|
75
|
+
"test:e2e": "playwright test",
|
|
76
|
+
"lint": "prettier --check . && eslint .",
|
|
77
|
+
"format": "prettier --write ."
|
|
78
|
+
}
|
|
79
|
+
}
|