poe-svelte-ui-lib 0.1.0 → 0.2.0

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.
@@ -0,0 +1,37 @@
1
+ export interface IUIComponentHandler {
2
+ Action: string;
3
+ Header?: string;
4
+ Argument?: string;
5
+ Variables?: string[];
6
+ }
7
+ export interface IButtonProps {
8
+ id?: {
9
+ value?: string;
10
+ name?: string;
11
+ };
12
+ wrapperClass?: string;
13
+ label?: {
14
+ name?: string;
15
+ class?: string;
16
+ };
17
+ componentClass?: string;
18
+ name?: string;
19
+ icon?: {
20
+ component?: ConstructorOfATypedSvelteComponent | null;
21
+ properties?: Record<string, unknown>;
22
+ };
23
+ keyBind?: {
24
+ key?: string;
25
+ ctrlKey?: boolean;
26
+ shiftKey?: boolean;
27
+ altKey?: boolean;
28
+ metaKey?: boolean;
29
+ };
30
+ disabled?: boolean;
31
+ eventHandler?: IUIComponentHandler;
32
+ onClick?: (id: string, eventHandler: IUIComponentHandler) => void;
33
+ onKeyBind?: (id: string, eventHandler: IUIComponentHandler) => void;
34
+ }
35
+ declare const Button: import("svelte").Component<IButtonProps, {}, "">;
36
+ type Button = ReturnType<typeof Button>;
37
+ export default Button;
@@ -0,0 +1 @@
1
+ export { default as Button } from './Button.svelte';
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ /* $lib/index.ts */
2
+ export { default as Button } from './Button.svelte';
package/package.json CHANGED
@@ -1,34 +1,40 @@
1
- {
2
- "name": "poe-svelte-ui-lib",
3
- "version": "0.1.0",
4
- "type": "module",
5
- "main": "dist/svelte-ui-lib.umd.js",
6
- "module": "dist/svelte-ui-lib.es.js",
7
- "svelte": "src/lib/index.ts",
8
- "scripts": {
9
- "build": "vite build",
10
- "prepublishOnly": "npm run build"
11
- },
12
- "peerDependencies": {
13
- "svelte": "^5"
14
- },
15
- "files": [
16
- "dist",
17
- "src/lib"
18
- ],
19
- "keywords": [
20
- "svelte",
21
- "ui",
22
- "components",
23
- "runes"
24
- ],
25
- "dependencies": {
26
- "@tailwindcss/vite": "^4.1.11",
27
- "tailwindcss": "^4.1.11"
28
- },
29
- "devDependencies": {
30
- "@sveltejs/vite-plugin-svelte": "^6.1.0",
31
- "svelte-preprocess": "^6.0.3",
32
- "vite": "^7.0.4"
33
- }
34
- }
1
+ {
2
+ "name": "poe-svelte-ui-lib",
3
+ "version": "0.2.0",
4
+ "svelte": "./dist/index.js",
5
+ "types": "./dist/index.d.ts",
6
+ "type": "module",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "svelte": "./dist/index.js"
11
+ }
12
+ },
13
+ "scripts": {
14
+ "build": "vite build && npm run prepack",
15
+ "prepack": "svelte-kit sync && svelte-package && publint"
16
+ },
17
+ "peerDependencies": {
18
+ "svelte": "^5.36.5"
19
+ },
20
+ "files": [
21
+ "dist"
22
+ ],
23
+ "keywords": [
24
+ "svelte",
25
+ "ui",
26
+ "components",
27
+ "runes"
28
+ ],
29
+ "dependencies": {
30
+ "@tailwindcss/vite": "^4.1.11",
31
+ "tailwindcss": "^4.1.11"
32
+ },
33
+ "devDependencies": {
34
+ "@sveltejs/vite-plugin-svelte": "^6.1.0",
35
+ "@sveltejs/kit": "^2.25.0",
36
+ "@sveltejs/package": "^2.4.0",
37
+ "svelte-preprocess": "^6.0.3",
38
+ "vite": "^7.0.5"
39
+ }
40
+ }