zabi-components 1.0.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.
- package/README.md +146 -0
- package/dist/KeyValueForm-CC2AhAxK.js +634 -0
- package/dist/NotificationManager-BGzRVJn7.js +74 -0
- package/dist/Skeleton-CaVpFsgI.js +620 -0
- package/dist/Toggle-q1tBzXDR.js +2508 -0
- package/dist/atoms/index.d.ts +15 -0
- package/dist/atoms/index.js +18 -0
- package/dist/index/index.js +27 -0
- package/dist/index-DInFKA3g.js +2645 -0
- package/dist/index.d.ts +14 -0
- package/dist/molecules/KeyValueForm.types.d.ts +11 -0
- package/dist/molecules/index.d.ts +10 -0
- package/dist/molecules/index.js +10 -0
- package/dist/organisms/index.d.ts +2 -0
- package/dist/organisms/index.js +4 -0
- package/dist/vite.svg +1 -0
- package/package.json +91 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Main library entry point
|
|
2
|
+
// Re-export all components from their respective categories
|
|
3
|
+
|
|
4
|
+
// Atomic Components
|
|
5
|
+
export * from './atoms/index.js';
|
|
6
|
+
|
|
7
|
+
// Molecular Components
|
|
8
|
+
export * from './molecules/index.js';
|
|
9
|
+
|
|
10
|
+
// Organism Components
|
|
11
|
+
export * from './organisms/index.js';
|
|
12
|
+
|
|
13
|
+
// Re-export types
|
|
14
|
+
export type { FieldConfig } from './molecules/KeyValueForm.types.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Field configuration for DynamicForm component
|
|
2
|
+
export interface FieldConfig {
|
|
3
|
+
key: string;
|
|
4
|
+
type: "text" | "email" | "password" | "number" | "textarea" | "select" | "checkbox" | "toggle" | "colorpicker" | "textalignment";
|
|
5
|
+
label: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
options?: Array<{ value: string | number; label: string; disabled?: boolean }>;
|
|
9
|
+
rows?: number;
|
|
10
|
+
flex?: "1" | "full";
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Molecular Components - Simple combinations of atoms
|
|
2
|
+
export { default as Alert } from './Alert.svelte';
|
|
3
|
+
export { default as Modal } from './Modal.svelte';
|
|
4
|
+
export { default as FileUpload } from './ImageUpload.svelte';
|
|
5
|
+
export { default as DynamicForm } from './KeyValueForm.svelte';
|
|
6
|
+
export { default as Dropdown } from './Dropdown.svelte';
|
|
7
|
+
export { default as SlideUp } from './SlideUp.svelte';
|
|
8
|
+
|
|
9
|
+
// Types
|
|
10
|
+
export type { FieldConfig } from './KeyValueForm.types';
|
package/dist/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "zabi-components",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A modern SvelteKit component library with TypeScript and Tailwind CSS",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"module": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./atoms": {
|
|
15
|
+
"types": "./dist/atoms/index.d.ts",
|
|
16
|
+
"import": "./dist/atoms/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./molecules": {
|
|
19
|
+
"types": "./dist/molecules/index.d.ts",
|
|
20
|
+
"import": "./dist/molecules/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./organisms": {
|
|
23
|
+
"types": "./dist/organisms/index.d.ts",
|
|
24
|
+
"import": "./dist/organisms/index.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"dist",
|
|
29
|
+
"README.md"
|
|
30
|
+
],
|
|
31
|
+
"keywords": [
|
|
32
|
+
"svelte",
|
|
33
|
+
"sveltekit",
|
|
34
|
+
"components",
|
|
35
|
+
"ui",
|
|
36
|
+
"typescript",
|
|
37
|
+
"tailwind"
|
|
38
|
+
],
|
|
39
|
+
"author": "Your Name",
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"repository": {
|
|
42
|
+
"type": "git",
|
|
43
|
+
"url": "https://github.com/yourusername/zabi-components.git"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"dev": "vite dev",
|
|
47
|
+
"build": "vite build && npm run build:types",
|
|
48
|
+
"build:lib": "vite build --config vite.lib.config.ts && node scripts/generate-types.js",
|
|
49
|
+
"build:types": "tsc --project tsconfig.lib.json",
|
|
50
|
+
"preview": "vite preview",
|
|
51
|
+
"check": "svelte-check --tsconfig ./tsconfig.json",
|
|
52
|
+
"storybook": "storybook dev -p 6006",
|
|
53
|
+
"build-storybook": "storybook build",
|
|
54
|
+
"prepublishOnly": "npm run build:lib"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@storybook/addon-svelte-csf": "^5.0.8",
|
|
58
|
+
"@storybook/sveltekit": "^9.1.7",
|
|
59
|
+
"@sveltejs/adapter-auto": "^3.0.0",
|
|
60
|
+
"@sveltejs/kit": "^2.43.1",
|
|
61
|
+
"@sveltejs/vite-plugin-svelte": "^5.0.0",
|
|
62
|
+
"@tsconfig/svelte": "^5.0.2",
|
|
63
|
+
"@types/node": "^24.5.2",
|
|
64
|
+
"autoprefixer": "^10.4.17",
|
|
65
|
+
"postcss": "^8.4.35",
|
|
66
|
+
"storybook": "^9.1.7",
|
|
67
|
+
"svelte": "^5.0.0",
|
|
68
|
+
"svelte-check": "^4.0.0",
|
|
69
|
+
"tailwindcss": "^3.4.1",
|
|
70
|
+
"typescript": "^5.3.3",
|
|
71
|
+
"vite": "^6.0.0"
|
|
72
|
+
},
|
|
73
|
+
"dependencies": {
|
|
74
|
+
"@lucide/svelte": "^0.544.0"
|
|
75
|
+
},
|
|
76
|
+
"peerDependencies": {
|
|
77
|
+
"svelte": "^4.0.0 || ^5.0.0",
|
|
78
|
+
"@sveltejs/kit": "^2.0.0"
|
|
79
|
+
},
|
|
80
|
+
"peerDependenciesMeta": {
|
|
81
|
+
"svelte": {
|
|
82
|
+
"optional": false
|
|
83
|
+
},
|
|
84
|
+
"@sveltejs/kit": {
|
|
85
|
+
"optional": true
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"overrides": {
|
|
89
|
+
"cookie": ">=0.7.0"
|
|
90
|
+
}
|
|
91
|
+
}
|