@hashrytech/quick-components-kit 0.1.0 → 0.2.1
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/CHANGELOG.md +9 -3
- package/LICENSE +21 -21
- package/README.md +1 -1
- package/dist/button/Button.svelte +22 -22
- package/package.json +39 -96
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
# quick-components-kit
|
|
1
|
+
# @hashrytech/quick-components-kit
|
|
2
2
|
|
|
3
|
-
## 0.1
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Removing private from package.json
|
|
8
|
+
|
|
9
|
+
## 0.2.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
6
12
|
|
|
7
|
-
-
|
|
13
|
+
- Repo formatting and inclusion of actions
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Hashry Tech
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Hashry Tech
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
export let type: 'button' | 'submit' | 'reset' = 'button';
|
|
3
|
-
export let variant: 'primary' | 'secondary' | 'danger' = 'primary';
|
|
4
|
-
export let size: 'sm' | 'md' | 'lg' = 'md';
|
|
5
|
-
export let disabled: boolean = false;
|
|
6
|
-
export let className: string = ''; // Allow extra classes
|
|
7
|
-
</script>
|
|
8
|
-
|
|
9
|
-
<button
|
|
10
|
-
type={type}
|
|
11
|
-
class={`inline-flex items-center justify-center font-medium rounded-md
|
|
12
|
-
${variant === 'primary' ? 'bg-blue-600 text-white hover:bg-blue-700' : ''}
|
|
13
|
-
${variant === 'secondary' ? 'bg-gray-200 text-gray-800 hover:bg-gray-300' : ''}
|
|
14
|
-
${variant === 'danger' ? 'bg-red-600 text-white hover:bg-red-700' : ''}
|
|
15
|
-
${size === 'sm' ? 'px-2 py-1 text-sm' : ''}
|
|
16
|
-
${size === 'md' ? 'px-4 py-2 text-base' : ''}
|
|
17
|
-
${size === 'lg' ? 'px-6 py-3 text-lg' : ''}
|
|
18
|
-
${disabled ? 'opacity-50 cursor-not-allowed' : ''}
|
|
19
|
-
${className}`}
|
|
20
|
-
disabled={disabled}>
|
|
21
|
-
<slot />
|
|
22
|
-
</button>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
export let type: 'button' | 'submit' | 'reset' = 'button';
|
|
3
|
+
export let variant: 'primary' | 'secondary' | 'danger' = 'primary';
|
|
4
|
+
export let size: 'sm' | 'md' | 'lg' = 'md';
|
|
5
|
+
export let disabled: boolean = false;
|
|
6
|
+
export let className: string = ''; // Allow extra classes
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<button
|
|
10
|
+
type={type}
|
|
11
|
+
class={`inline-flex items-center justify-center font-medium rounded-md
|
|
12
|
+
${variant === 'primary' ? 'bg-blue-600 text-white hover:bg-blue-700' : ''}
|
|
13
|
+
${variant === 'secondary' ? 'bg-gray-200 text-gray-800 hover:bg-gray-300' : ''}
|
|
14
|
+
${variant === 'danger' ? 'bg-red-600 text-white hover:bg-red-700' : ''}
|
|
15
|
+
${size === 'sm' ? 'px-2 py-1 text-sm' : ''}
|
|
16
|
+
${size === 'md' ? 'px-4 py-2 text-base' : ''}
|
|
17
|
+
${size === 'lg' ? 'px-6 py-3 text-lg' : ''}
|
|
18
|
+
${disabled ? 'opacity-50 cursor-not-allowed' : ''}
|
|
19
|
+
${className}`}
|
|
20
|
+
disabled={disabled}>
|
|
21
|
+
<slot />
|
|
22
|
+
</button>
|
package/package.json
CHANGED
|
@@ -1,97 +1,40 @@
|
|
|
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
|
-
"exports": {
|
|
42
|
-
".": {
|
|
43
|
-
"types": "./dist/index.d.ts",
|
|
44
|
-
"svelte": "./dist/index.js"
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
"peerDependencies": {
|
|
48
|
-
"svelte": "^5.0.0"
|
|
49
|
-
},
|
|
50
|
-
"devDependencies": {
|
|
51
|
-
"@chromatic-com/storybook": "^4.0.0",
|
|
52
|
-
"@eslint/compat": "^1.2.9",
|
|
53
|
-
"@eslint/js": "^9.27.0",
|
|
54
|
-
"@playwright/test": "^1.52.0",
|
|
55
|
-
"@storybook/addon-a11y": "^9.0.0",
|
|
56
|
-
"@storybook/addon-docs": "^9.0.0",
|
|
57
|
-
"@storybook/addon-svelte-csf": "^5.0.3",
|
|
58
|
-
"@storybook/addon-vitest": "^9.0.0",
|
|
59
|
-
"@storybook/sveltekit": "^9.0.0",
|
|
60
|
-
"@sveltejs/adapter-auto": "^6.0.1",
|
|
61
|
-
"@sveltejs/kit": "^2.21.1",
|
|
62
|
-
"@sveltejs/package": "^2.3.11",
|
|
63
|
-
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
|
64
|
-
"@tailwindcss/forms": "^0.5.10",
|
|
65
|
-
"@tailwindcss/vite": "^4.1.8",
|
|
66
|
-
"@testing-library/jest-dom": "^6.6.3",
|
|
67
|
-
"@testing-library/svelte": "^5.2.8",
|
|
68
|
-
"@types/node": "^22",
|
|
69
|
-
"@vitest/browser": "^3.1.4",
|
|
70
|
-
"@vitest/coverage-v8": "^3.1.4",
|
|
71
|
-
"eslint": "^9.27.0",
|
|
72
|
-
"eslint-config-prettier": "^10.1.5",
|
|
73
|
-
"eslint-plugin-storybook": "^9.0.0",
|
|
74
|
-
"eslint-plugin-svelte": "^3.9.0",
|
|
75
|
-
"globals": "^16.2.0",
|
|
76
|
-
"jsdom": "^26.1.0",
|
|
77
|
-
"playwright": "^1.52.0",
|
|
78
|
-
"prettier": "^3.5.3",
|
|
79
|
-
"prettier-plugin-svelte": "^3.4.0",
|
|
80
|
-
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
81
|
-
"publint": "^0.3.12",
|
|
82
|
-
"storybook": "^9.0.0",
|
|
83
|
-
"svelte": "^5.33.5",
|
|
84
|
-
"svelte-check": "^4.2.1",
|
|
85
|
-
"tailwindcss": "^4.1.8",
|
|
86
|
-
"typescript": "^5.8.3",
|
|
87
|
-
"typescript-eslint": "^8.33.0",
|
|
88
|
-
"vite": "^6.3.5",
|
|
89
|
-
"vitest": "^3.1.4"
|
|
90
|
-
},
|
|
91
|
-
"keywords": [
|
|
92
|
-
"svelte"
|
|
93
|
-
],
|
|
94
|
-
"dependencies": {
|
|
95
|
-
"@changesets/cli": "^2.29.4"
|
|
96
|
-
}
|
|
97
|
-
}
|
|
2
|
+
"name": "@hashrytech/quick-components-kit",
|
|
3
|
+
"description": "A Svelte component library and toolset",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "git+https://github.com/hashrytech/quick-components-kit.git"
|
|
7
|
+
},
|
|
8
|
+
"version": "0.2.1",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"author": "Hashry Tech",
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"!dist/**/*.test.*",
|
|
14
|
+
"!dist/**/*.spec.*",
|
|
15
|
+
"LICENSE",
|
|
16
|
+
"README.md",
|
|
17
|
+
"CHANGELOG.md"
|
|
18
|
+
],
|
|
19
|
+
"sideEffects": [
|
|
20
|
+
"**/*.css"
|
|
21
|
+
],
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public"
|
|
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
|
+
"svelte": "^5.0.0"
|
|
36
|
+
},
|
|
37
|
+
"keywords": [
|
|
38
|
+
"svelte"
|
|
39
|
+
]
|
|
40
|
+
}
|