svelte-comp 1.3.5 → 1.3.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.
Files changed (46) hide show
  1. package/LICENSE.md +21 -21
  2. package/README.md +101 -101
  3. package/dist/App.svelte +1046 -1046
  4. package/dist/Container.svelte +59 -59
  5. package/dist/app.css +234 -234
  6. package/dist/app.d.ts +10 -10
  7. package/dist/lib/Accordion.svelte +155 -155
  8. package/dist/lib/Badge.svelte +44 -44
  9. package/dist/lib/Button.svelte +185 -185
  10. package/dist/lib/Calendar.svelte +384 -384
  11. package/dist/lib/Card.svelte +103 -103
  12. package/dist/lib/Carousel.svelte +293 -293
  13. package/dist/lib/CheckBox.svelte +210 -210
  14. package/dist/lib/CodeView.svelte +308 -308
  15. package/dist/lib/ColorPicker.svelte +159 -159
  16. package/dist/lib/ContextMenu.svelte +328 -328
  17. package/dist/lib/DatePicker.svelte +246 -246
  18. package/dist/lib/Dialog.svelte +233 -233
  19. package/dist/lib/Field.svelte +299 -299
  20. package/dist/lib/FilePicker.svelte +295 -295
  21. package/dist/lib/Form.svelte +438 -438
  22. package/dist/lib/Hamburger.svelte +217 -217
  23. package/dist/lib/InstallPWA.svelte +94 -94
  24. package/dist/lib/Menu.svelte +623 -623
  25. package/dist/lib/NoticeBase.svelte +140 -140
  26. package/dist/lib/PaginatedCard.svelte +73 -73
  27. package/dist/lib/Pagination.svelte +119 -119
  28. package/dist/lib/PrimaryColorSelect.svelte +111 -111
  29. package/dist/lib/ProgressBar.svelte +141 -141
  30. package/dist/lib/ProgressCircle.svelte +190 -190
  31. package/dist/lib/Radio.svelte +189 -189
  32. package/dist/lib/SearchInput.svelte +104 -104
  33. package/dist/lib/Select.svelte +524 -524
  34. package/dist/lib/Slider.svelte +253 -253
  35. package/dist/lib/Splitter.svelte +159 -159
  36. package/dist/lib/Switch.svelte +168 -168
  37. package/dist/lib/Table.svelte +299 -299
  38. package/dist/lib/Tabs.svelte +213 -213
  39. package/dist/lib/ThemeToggle.svelte +128 -128
  40. package/dist/lib/TimePicker.svelte +312 -312
  41. package/dist/lib/TimePickerNew.svelte +634 -634
  42. package/dist/lib/Toast.svelte +123 -123
  43. package/dist/lib/Tooltip.svelte +110 -110
  44. package/dist/lib/Topbar.svelte +112 -112
  45. package/dist/styles.css +234 -234
  46. package/package.json +52 -52
package/LICENSE.md CHANGED
@@ -1,21 +1,21 @@
1
- # MIT License
2
-
3
- Copyright (c) 2025 MaestroFusion360
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 MaestroFusion360
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,101 +1,101 @@
1
- # svelte-comp
2
-
3
- Lightweight UI component library for **Svelte 5 (Runes API)** styled with **TailwindCSS**.
4
- Zero slots, simple props, themeable with CSS variables.
5
-
6
- ---
7
-
8
- ## 📦 Install
9
-
10
- ```bash
11
- npm i svelte-comp
12
- ```
13
-
14
- ---
15
-
16
- ## 🧰 Setup TailwindCSS
17
-
18
- ```bash
19
- npm i tailwindcss @tailwindcss/vite
20
- ```
21
-
22
- `vite.config.ts`:
23
-
24
- ```ts
25
- import { defineConfig } from "vite";
26
- import { svelte } from "@sveltejs/vite-plugin-svelte";
27
- import tailwindcss from "@tailwindcss/vite";
28
-
29
- export default defineConfig({
30
- plugins: [
31
- tailwindcss(),
32
- svelte(), // Must be after tailwindcss()
33
- ],
34
- });
35
- ```
36
-
37
- Add to `src/app.css`:
38
-
39
- ```css
40
- @import "tailwindcss";
41
- @import "svelte-comp/styles.css";
42
- ```
43
-
44
- ---
45
-
46
- ## 🧰 Setup Prism
47
-
48
- ```bash
49
- npm i prismjs @types/prismjs
50
- ```
51
-
52
- ---
53
-
54
- ## 📁 Components included
55
-
56
- Accordion, Badge, Button, Calendar, Card, Carousel, CheckBox, CodeView,
57
- ColorPicker, ContextMenu, DatePicker, Dialog, Field, FilePicker, Form,
58
- Hamburger, InstallPWA, Menu, NoticeBase, PaginatedCard, Pagination,
59
- PrimaryColorSelect, ProgressBar, ProgressCircle, Radio, SearchInput, Select,
60
- Slider, Splitter, Switch, Table, Tabs, ThemeToggle, TimePicker, TimepickerNew,
61
- Toast, Tooltip, Topbar.
62
-
63
- Full component list in repository.
64
-
65
- ---
66
-
67
- ## 🚀 Quick example
68
-
69
- Accordion usage:
70
-
71
- ```svelte
72
- <script lang="ts">
73
- import { Accordion } from "svelte-comp";
74
-
75
- const items = [
76
- { title: "First", content: "This is the first item" },
77
- { title: "Second", content: "This is the second item" },
78
- { title: "Third", content: "This is the third item" }
79
- ];
80
-
81
- const handleToggle = (index: number, open: boolean) => {
82
- console.log(index, open);
83
- };
84
- </script>
85
-
86
- <Accordion {items} multiple defaultOpen={[0]} sz="md" onToggle={handleToggle} />
87
- ```
88
-
89
- ---
90
-
91
- ## 📜 License
92
-
93
- MIT License
94
-
95
- ---
96
-
97
- ## 🔗 Links
98
-
99
- GitHub: [https://github.com/MaestroFusion360/svelte-comp](https://github.com/MaestroFusion360/svelte-comp)
100
-
101
- Demo: [https://maestrofusion360.github.io/svelte-comp/](https://maestrofusion360.github.io/svelte-comp/)
1
+ # svelte-comp
2
+
3
+ Lightweight UI component library for **Svelte 5 (Runes API)** styled with **TailwindCSS**.
4
+ Zero slots, simple props, themeable with CSS variables.
5
+
6
+ ---
7
+
8
+ ## 📦 Install
9
+
10
+ ```bash
11
+ npm i svelte-comp
12
+ ```
13
+
14
+ ---
15
+
16
+ ## 🧰 Setup TailwindCSS
17
+
18
+ ```bash
19
+ npm i tailwindcss @tailwindcss/vite
20
+ ```
21
+
22
+ `vite.config.ts`:
23
+
24
+ ```ts
25
+ import { defineConfig } from "vite";
26
+ import { svelte } from "@sveltejs/vite-plugin-svelte";
27
+ import tailwindcss from "@tailwindcss/vite";
28
+
29
+ export default defineConfig({
30
+ plugins: [
31
+ tailwindcss(),
32
+ svelte(), // Must be after tailwindcss()
33
+ ],
34
+ });
35
+ ```
36
+
37
+ Add to `src/app.css`:
38
+
39
+ ```css
40
+ @import "tailwindcss";
41
+ @import "svelte-comp/styles.css";
42
+ ```
43
+
44
+ ---
45
+
46
+ ## 🧰 Setup Prism
47
+
48
+ ```bash
49
+ npm i prismjs @types/prismjs
50
+ ```
51
+
52
+ ---
53
+
54
+ ## 📁 Components included
55
+
56
+ Accordion, Badge, Button, Calendar, Card, Carousel, CheckBox, CodeView,
57
+ ColorPicker, ContextMenu, DatePicker, Dialog, Field, FilePicker, Form,
58
+ Hamburger, InstallPWA, Menu, NoticeBase, PaginatedCard, Pagination,
59
+ PrimaryColorSelect, ProgressBar, ProgressCircle, Radio, SearchInput, Select,
60
+ Slider, Splitter, Switch, Table, Tabs, ThemeToggle, TimePicker, TimepickerNew,
61
+ Toast, Tooltip, Topbar.
62
+
63
+ Full component list in repository.
64
+
65
+ ---
66
+
67
+ ## 🚀 Quick example
68
+
69
+ Accordion usage:
70
+
71
+ ```svelte
72
+ <script lang="ts">
73
+ import { Accordion } from "svelte-comp";
74
+
75
+ const items = [
76
+ { title: "First", content: "This is the first item" },
77
+ { title: "Second", content: "This is the second item" },
78
+ { title: "Third", content: "This is the third item" }
79
+ ];
80
+
81
+ const handleToggle = (index: number, open: boolean) => {
82
+ console.log(index, open);
83
+ };
84
+ </script>
85
+
86
+ <Accordion {items} multiple defaultOpen={[0]} sz="md" onToggle={handleToggle} />
87
+ ```
88
+
89
+ ---
90
+
91
+ ## 📜 License
92
+
93
+ MIT License
94
+
95
+ ---
96
+
97
+ ## 🔗 Links
98
+
99
+ GitHub: [https://github.com/MaestroFusion360/svelte-comp](https://github.com/MaestroFusion360/svelte-comp)
100
+
101
+ Demo: [https://maestrofusion360.github.io/svelte-comp/](https://maestrofusion360.github.io/svelte-comp/)