sk-clib 1.18.8 → 1.18.9
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/package.json +40 -1
- package/.prettierignore +0 -6
- package/.prettierrc +0 -19
- package/.vscode/extensions.json +0 -8
- package/.vscode/settings.json +0 -5
- package/CHANGELOG.md +0 -343
- package/eslint.config.js +0 -34
- package/release.config.cjs +0 -16
- package/src/app.d.ts +0 -13
- package/src/app.html +0 -12
- package/src/base.css +0 -10
- package/src/lib/assets/favicon.svg +0 -1
- package/src/lib/index.ts +0 -1
- package/src/lib/theme/index.ts +0 -9
- package/src/lib/theme/logic.ts +0 -91
- package/src/lib/theme/stores.svelte.js +0 -33
- package/src/lib/theme/theme-init/components/theme-init.svelte +0 -103
- package/src/lib/theme/theme-init/index.ts +0 -5
- package/src/lib/theme/theme-init/types.ts +0 -39
- package/src/lib/theme/types.ts +0 -3
- package/src/lib/ui/button/components/button.svelte +0 -33
- package/src/lib/ui/button/index.ts +0 -5
- package/src/lib/ui/button/types.ts +0 -8
- package/src/lib/ui/flex/components/flex.svelte +0 -28
- package/src/lib/ui/flex/index.ts +0 -5
- package/src/lib/ui/flex/types.ts +0 -5
- package/src/lib/ui/frame/components/frame.svelte +0 -133
- package/src/lib/ui/frame/index.ts +0 -5
- package/src/lib/ui/frame/types.ts +0 -51
- package/src/lib/ui/header/components/header.svelte +0 -147
- package/src/lib/ui/header/index.ts +0 -7
- package/src/lib/ui/header/types.ts +0 -43
- package/src/lib/ui/index.ts +0 -20
- package/src/lib/ui/input/components/input.svelte +0 -74
- package/src/lib/ui/input/index.ts +0 -5
- package/src/lib/ui/input/types.ts +0 -7
- package/src/lib/ui/spacer/components/spacer.svelte +0 -50
- package/src/lib/ui/spacer/index.ts +0 -5
- package/src/lib/ui/spacer/types.ts +0 -13
- package/src/lib/ui/text/components/text.svelte +0 -90
- package/src/lib/ui/text/index.ts +0 -5
- package/src/lib/ui/text/types.ts +0 -71
- package/src/lib/utils.ts +0 -153
- package/src/library.css +0 -3
- package/src/routes/+layout.svelte +0 -9
- package/src/routes/+page.svelte +0 -2
- package/src/routes/layout.css +0 -1
- package/src/theme.css +0 -434
- package/static/favicon.png +0 -0
- package/static/robots.txt +0 -3
- package/svelte.config.js +0 -17
- package/tsconfig.json +0 -20
- package/vite.config.ts +0 -5
package/package.json
CHANGED
|
@@ -1,11 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sk-clib",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.9",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/TreltaSev/sk-clib"
|
|
7
7
|
},
|
|
8
8
|
"type": "module",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"!dist/**/*.test.*",
|
|
12
|
+
"!dist/**/*.spec.*",
|
|
13
|
+
"dist/styles.css"
|
|
14
|
+
],
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"svelte": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./ui": {
|
|
21
|
+
"types": "./dist/ui/index.d.ts",
|
|
22
|
+
"svelte": "./dist/ui/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./style": {
|
|
25
|
+
"default": "./dist/styles.css"
|
|
26
|
+
},
|
|
27
|
+
"./theme": {
|
|
28
|
+
"types": "./dist/theme/index.d.ts",
|
|
29
|
+
"svelte": "./dist/theme/index.js",
|
|
30
|
+
"default": "./dist/theme/index.js"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"svelte": "./dist/index.js",
|
|
34
|
+
"types": "./dist/index.d.ts",
|
|
35
|
+
"sideEffects": [
|
|
36
|
+
"**/*.css"
|
|
37
|
+
],
|
|
38
|
+
"keywords": [
|
|
39
|
+
"svelte",
|
|
40
|
+
"component",
|
|
41
|
+
"library"
|
|
42
|
+
],
|
|
9
43
|
"scripts": {
|
|
10
44
|
"dev": "vite dev",
|
|
11
45
|
"build": "vite build",
|
|
@@ -39,5 +73,10 @@
|
|
|
39
73
|
"typescript-eslint": "^8.58.1",
|
|
40
74
|
"unplugin-icons": "^23.0.1",
|
|
41
75
|
"vite": "^8.0.7"
|
|
76
|
+
},
|
|
77
|
+
"dependencies": {
|
|
78
|
+
"@material/material-color-utilities": "^0.3.0",
|
|
79
|
+
"tailwind-merge": "^3.2.0",
|
|
80
|
+
"js-cookie": "^3.0.5"
|
|
42
81
|
}
|
|
43
82
|
}
|
package/.prettierignore
DELETED
package/.prettierrc
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"useTabs": true,
|
|
3
|
-
"singleQuote": true,
|
|
4
|
-
"trailingComma": "none",
|
|
5
|
-
"printWidth": 100,
|
|
6
|
-
"plugins": [
|
|
7
|
-
"prettier-plugin-svelte",
|
|
8
|
-
"prettier-plugin-tailwindcss"
|
|
9
|
-
],
|
|
10
|
-
"overrides": [
|
|
11
|
-
{
|
|
12
|
-
"files": "*.svelte",
|
|
13
|
-
"options": {
|
|
14
|
-
"parser": "svelte"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
"tailwindStylesheet": "./src/routes/layout.css"
|
|
19
|
-
}
|
package/.vscode/extensions.json
DELETED
package/.vscode/settings.json
DELETED
package/CHANGELOG.md
DELETED
|
@@ -1,343 +0,0 @@
|
|
|
1
|
-
## [1.18.3](https://github.com/TreltaSev/sk-clib/compare/v1.18.2...v1.18.3) (2026-02-03)
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Bug Fixes
|
|
5
|
-
|
|
6
|
-
* **spacer:** class is reactive now ;( ([2bd4c67](https://github.com/TreltaSev/sk-clib/commit/2bd4c6768d32818d198c47a85ad5735be67b97cd))
|
|
7
|
-
|
|
8
|
-
## [1.18.2](https://github.com/TreltaSev/sk-clib/compare/v1.18.1...v1.18.2) (2026-02-01)
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
### Bug Fixes
|
|
12
|
-
|
|
13
|
-
* **reactivity:** Classes are now reactive ([a901ea7](https://github.com/TreltaSev/sk-clib/commit/a901ea70a0f6b79c3f8ed1c6b39eddea6725deb3))
|
|
14
|
-
|
|
15
|
-
## [1.18.1](https://github.com/TreltaSev/sk-clib/compare/v1.18.0...v1.18.1) (2026-01-29)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
### Bug Fixes
|
|
19
|
-
|
|
20
|
-
* **component:** Fixed input component ([48443e1](https://github.com/TreltaSev/sk-clib/commit/48443e1824b29d202364156d4f71f5d39fa8215b))
|
|
21
|
-
|
|
22
|
-
# [1.18.0](https://github.com/TreltaSev/sk-clib/compare/v1.17.0...v1.18.0) (2026-01-29)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
### Features
|
|
26
|
-
|
|
27
|
-
* **input:** Update input component ([5eb40fe](https://github.com/TreltaSev/sk-clib/commit/5eb40fe15811d49a3764aee718023b31277329b7))
|
|
28
|
-
|
|
29
|
-
# [1.17.0](https://github.com/TreltaSev/sk-clib/compare/v1.16.0...v1.17.0) (2026-01-29)
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
### Features
|
|
33
|
-
|
|
34
|
-
* **input:** Update input component ([82ff7bf](https://github.com/TreltaSev/sk-clib/commit/82ff7bf0417b966c45cbd95aabd2c9331978943d))
|
|
35
|
-
|
|
36
|
-
# [1.16.0](https://github.com/TreltaSev/sk-clib/compare/v1.15.0...v1.16.0) (2026-01-29)
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
### Features
|
|
40
|
-
|
|
41
|
-
* **component:** Add input component ([10e62d2](https://github.com/TreltaSev/sk-clib/commit/10e62d295415b0b2036362a37b4207068e26a078))
|
|
42
|
-
|
|
43
|
-
# [1.15.0](https://github.com/TreltaSev/sk-clib/compare/v1.14.0...v1.15.0) (2026-01-16)
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
### Features
|
|
47
|
-
|
|
48
|
-
* **button:** Optional href button attribute ([9d41276](https://github.com/TreltaSev/sk-clib/commit/9d41276ba6b821a32a5dd3f5eba51add74f6ba9c))
|
|
49
|
-
|
|
50
|
-
# [1.14.0](https://github.com/TreltaSev/sk-clib/compare/v1.13.1...v1.14.0) (2026-01-16)
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
### Features
|
|
54
|
-
|
|
55
|
-
* **sk-clib:** Full update ([8321664](https://github.com/TreltaSev/sk-clib/commit/832166463129b693bd9e985115ef4eb0976214fe))
|
|
56
|
-
|
|
57
|
-
## [1.13.1](https://github.com/TreltaSev/sk-clib/compare/v1.13.0...v1.13.1) (2026-01-04)
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
### Bug Fixes
|
|
61
|
-
|
|
62
|
-
* **theme:** Fixed theme management with work arounds ([d152926](https://github.com/TreltaSev/sk-clib/commit/d152926eff33833e28fd38b85a75236e913c0339))
|
|
63
|
-
|
|
64
|
-
# [1.13.0](https://github.com/TreltaSev/sk-clib/compare/v1.12.0...v1.13.0) (2025-12-26)
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
### Features
|
|
68
|
-
|
|
69
|
-
* **colors:** Don't allow black as a primary ([252a123](https://github.com/TreltaSev/sk-clib/commit/252a123ebade09699e4bf6bce8a073d7e0bdb467))
|
|
70
|
-
|
|
71
|
-
# [1.12.0](https://github.com/TreltaSev/sk-clib/compare/v1.11.0...v1.12.0) (2025-12-26)
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
### Features
|
|
75
|
-
|
|
76
|
-
* **color:** Default color fallback ([53b2289](https://github.com/TreltaSev/sk-clib/commit/53b2289807196aceec51f88947e3f2b39c910b6e))
|
|
77
|
-
|
|
78
|
-
# [1.11.0](https://github.com/TreltaSev/sk-clib/compare/v1.10.0...v1.11.0) (2025-12-26)
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
### Features
|
|
82
|
-
|
|
83
|
-
* **theme:** Made update logic better ([c101dd8](https://github.com/TreltaSev/sk-clib/commit/c101dd8f3b686633713a5b670b5e4a1b7bb22493))
|
|
84
|
-
|
|
85
|
-
# [1.10.0](https://github.com/TreltaSev/sk-clib/compare/v1.9.0...v1.10.0) (2025-12-26)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
### Features
|
|
89
|
-
|
|
90
|
-
* **docker:** Added compose and dockerfile ([382bd94](https://github.com/TreltaSev/sk-clib/commit/382bd94603b8dc22a87a98948540ab5caab0f101))
|
|
91
|
-
* **theme-init:** Moved seed color into primary ([954d6ae](https://github.com/TreltaSev/sk-clib/commit/954d6ae86b7db4b11ea8899eb553ead0867892b6))
|
|
92
|
-
|
|
93
|
-
# [1.9.0](https://github.com/TreltaSev/sk-clib/compare/v1.8.1...v1.9.0) (2025-08-22)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
### Features
|
|
97
|
-
|
|
98
|
-
* **frame:** Add comments in properties declaration ([aefa0fd](https://github.com/TreltaSev/sk-clib/commit/aefa0fd289f0d049af6dae324152dac801201cd4))
|
|
99
|
-
* **frame:** Add props to declarations ([80a437d](https://github.com/TreltaSev/sk-clib/commit/80a437def6403ab46cb173eb0980631a791bf6ec))
|
|
100
|
-
* **frame:** Add theme properties ([b7bff21](https://github.com/TreltaSev/sk-clib/commit/b7bff21790c0a322d4006f6e3600483f390969dd))
|
|
101
|
-
* **frame:** Add token instance options for backgroud ([8d38370](https://github.com/TreltaSev/sk-clib/commit/8d38370715889e3b8c60f79bc1b835dc4c284d55))
|
|
102
|
-
|
|
103
|
-
## [1.8.1](https://github.com/TreltaSev/sk-clib/compare/v1.8.0...v1.8.1) (2025-08-22)
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
### Bug Fixes
|
|
107
|
-
|
|
108
|
-
* **building:** Changed theme types ([82b42c4](https://github.com/TreltaSev/sk-clib/commit/82b42c447b7d756c8c1e4d759b3a68ce8269b4d9))
|
|
109
|
-
|
|
110
|
-
# [1.8.0](https://github.com/TreltaSev/sk-clib/compare/v1.7.0...v1.8.0) (2025-08-22)
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
### Features
|
|
114
|
-
|
|
115
|
-
* **docs:** Update theme_init docs ([44b1ecf](https://github.com/TreltaSev/sk-clib/commit/44b1ecf28dee2f9bbf34da3989127d1f905a4f62))
|
|
116
|
-
* **major:** Added theme component and logic ([b136416](https://github.com/TreltaSev/sk-clib/commit/b1364161ee806004a43a8a142afde18824f5548b))
|
|
117
|
-
|
|
118
|
-
# [1.7.0](https://github.com/TreltaSev/sk-clib/compare/v1.6.0...v1.7.0) (2025-07-08)
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
### Bug Fixes
|
|
122
|
-
|
|
123
|
-
* **vite-config:** Fixed fs allow shenanagens. ([cedc265](https://github.com/TreltaSev/sk-clib/commit/cedc26579059f2b2c7a8e92d0315fc3cb1da5fad))
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
### Features
|
|
127
|
-
|
|
128
|
-
* **props-export:** Export Props ([ffe2b44](https://github.com/TreltaSev/sk-clib/commit/ffe2b44523f2d34aa533ad2d64a1c0f3cf987c0a))
|
|
129
|
-
* **toc:** Table of contents scaffold ([cc149ec](https://github.com/TreltaSev/sk-clib/commit/cc149ec13f77bd171dd2ae522bf6a3d80ac60a00))
|
|
130
|
-
|
|
131
|
-
# [1.6.0](https://github.com/TreltaSev/sk-clib/compare/v1.5.0...v1.6.0) (2025-06-07)
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
### Features
|
|
135
|
-
|
|
136
|
-
* **button:** Added a new line, testingout feature ([25a606e](https://github.com/TreltaSev/sk-clib/commit/25a606e2c49875a48b9ccad62e900d06df719476))
|
|
137
|
-
|
|
138
|
-
# [1.5.0](https://github.com/TreltaSev/sk-clib/compare/v1.4.0...v1.5.0) (2025-06-07)
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
### Bug Fixes
|
|
142
|
-
|
|
143
|
-
* **ci/cd:** Added Missing Package: '@sveltejs/adapter-auto' ([592044f](https://github.com/TreltaSev/sk-clib/commit/592044f9983d08dac2d969f4533712df676c471f))
|
|
144
|
-
* **ci/cd:** Cleanup tsconfig.json ([10438b4](https://github.com/TreltaSev/sk-clib/commit/10438b49be63561b135033341fe15ccd62c0f9c0))
|
|
145
|
-
* **ci/cd:** Cleanup workflows ([2f43790](https://github.com/TreltaSev/sk-clib/commit/2f437902e952ebb2a629fc8580b7d1e46aca06b8))
|
|
146
|
-
* **ci/cd:** Fix bun workflow for release ([f2dfa99](https://github.com/TreltaSev/sk-clib/commit/f2dfa999dc39194541ce2d56f689d4710fd7d25f))
|
|
147
|
-
* **ci/cd:** Fixed site deployment if statement ([92b3653](https://github.com/TreltaSev/sk-clib/commit/92b3653ad6e13c1d9457c65b827d534b91590b15))
|
|
148
|
-
* **ci/cd:** Removed unused lock file ([b687faf](https://github.com/TreltaSev/sk-clib/commit/b687fafaf043b059d193a8ecb8b56daa0ac03519))
|
|
149
|
-
* **ci/cd:** Revert to package-lock instead of bun ([250e040](https://github.com/TreltaSev/sk-clib/commit/250e040491e9bedb141625aa43e2e8deeac85478))
|
|
150
|
-
* **ci/cd:** Update Release Configuration ([66be33d](https://github.com/TreltaSev/sk-clib/commit/66be33d436144e04b30a76b7411162bb878cbba5))
|
|
151
|
-
* **conflicts:** Clean package-lock.json ([742df3f](https://github.com/TreltaSev/sk-clib/commit/742df3fed08b3ee6a4d865ba691c6b6d678e744d))
|
|
152
|
-
* **re-add:** re-added the utils that I removed ;( ([3cf3439](https://github.com/TreltaSev/sk-clib/commit/3cf3439f577e2a4babd542acca7c8e6b3da1aba4))
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
### Features
|
|
156
|
-
|
|
157
|
-
* **ci/cd:** [sk-clib] Move to bun instead of npm ([60d58fe](https://github.com/TreltaSev/sk-clib/commit/60d58fe584862b43e1dcba36f7b7d14488abf11c))
|
|
158
|
-
* **component:** Added Spacer Component ([3f3afcd](https://github.com/TreltaSev/sk-clib/commit/3f3afcda9f867c7a9d28e36b4cc91e48059ba613))
|
|
159
|
-
* **docs:** Trigger Documentation Action [release] ([bf03811](https://github.com/TreltaSev/sk-clib/commit/bf038117b74bcfb0010efd39767e0be43eee3179))
|
|
160
|
-
* **playground:** Added incredibly simple playground for development ([5a92e1f](https://github.com/TreltaSev/sk-clib/commit/5a92e1f5a9f2a0ba9b4a629b6e1ee75be69dbade))
|
|
161
|
-
|
|
162
|
-
# [1.5.0](https://github.com/TreltaSev/sk-clib/compare/v1.4.0...v1.5.0) (2025-06-07)
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
### Bug Fixes
|
|
166
|
-
|
|
167
|
-
* **ci/cd:** Added Missing Package: '@sveltejs/adapter-auto' ([592044f](https://github.com/TreltaSev/sk-clib/commit/592044f9983d08dac2d969f4533712df676c471f))
|
|
168
|
-
* **ci/cd:** Cleanup workflows ([2f43790](https://github.com/TreltaSev/sk-clib/commit/2f437902e952ebb2a629fc8580b7d1e46aca06b8))
|
|
169
|
-
* **ci/cd:** Fix bun workflow for release ([f2dfa99](https://github.com/TreltaSev/sk-clib/commit/f2dfa999dc39194541ce2d56f689d4710fd7d25f))
|
|
170
|
-
* **ci/cd:** Fixed site deployment if statement ([92b3653](https://github.com/TreltaSev/sk-clib/commit/92b3653ad6e13c1d9457c65b827d534b91590b15))
|
|
171
|
-
* **ci/cd:** Removed unused lock file ([b687faf](https://github.com/TreltaSev/sk-clib/commit/b687fafaf043b059d193a8ecb8b56daa0ac03519))
|
|
172
|
-
* **ci/cd:** Revert to package-lock instead of bun ([250e040](https://github.com/TreltaSev/sk-clib/commit/250e040491e9bedb141625aa43e2e8deeac85478))
|
|
173
|
-
* **ci/cd:** Update Release Configuration ([66be33d](https://github.com/TreltaSev/sk-clib/commit/66be33d436144e04b30a76b7411162bb878cbba5))
|
|
174
|
-
* **conflicts:** Clean package-lock.json ([742df3f](https://github.com/TreltaSev/sk-clib/commit/742df3fed08b3ee6a4d865ba691c6b6d678e744d))
|
|
175
|
-
* **re-add:** re-added the utils that I removed ;( ([3cf3439](https://github.com/TreltaSev/sk-clib/commit/3cf3439f577e2a4babd542acca7c8e6b3da1aba4))
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
### Features
|
|
179
|
-
|
|
180
|
-
* **ci/cd:** [sk-clib] Move to bun instead of npm ([60d58fe](https://github.com/TreltaSev/sk-clib/commit/60d58fe584862b43e1dcba36f7b7d14488abf11c))
|
|
181
|
-
* **component:** Added Spacer Component ([3f3afcd](https://github.com/TreltaSev/sk-clib/commit/3f3afcda9f867c7a9d28e36b4cc91e48059ba613))
|
|
182
|
-
* **docs:** Trigger Documentation Action [release] ([bf03811](https://github.com/TreltaSev/sk-clib/commit/bf038117b74bcfb0010efd39767e0be43eee3179))
|
|
183
|
-
* **playground:** Added incredibly simple playground for development ([5a92e1f](https://github.com/TreltaSev/sk-clib/commit/5a92e1f5a9f2a0ba9b4a629b6e1ee75be69dbade))
|
|
184
|
-
|
|
185
|
-
# [1.5.0](https://github.com/TreltaSev/sk-clib/compare/v1.4.0...v1.5.0) (2025-06-07)
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
### Bug Fixes
|
|
189
|
-
|
|
190
|
-
* **ci/cd:** Added Missing Package: '@sveltejs/adapter-auto' ([592044f](https://github.com/TreltaSev/sk-clib/commit/592044f9983d08dac2d969f4533712df676c471f))
|
|
191
|
-
* **ci/cd:** Cleanup workflows ([2f43790](https://github.com/TreltaSev/sk-clib/commit/2f437902e952ebb2a629fc8580b7d1e46aca06b8))
|
|
192
|
-
* **ci/cd:** Fix bun workflow for release ([f2dfa99](https://github.com/TreltaSev/sk-clib/commit/f2dfa999dc39194541ce2d56f689d4710fd7d25f))
|
|
193
|
-
* **ci/cd:** Fixed site deployment if statement ([92b3653](https://github.com/TreltaSev/sk-clib/commit/92b3653ad6e13c1d9457c65b827d534b91590b15))
|
|
194
|
-
* **ci/cd:** Removed unused lock file ([b687faf](https://github.com/TreltaSev/sk-clib/commit/b687fafaf043b059d193a8ecb8b56daa0ac03519))
|
|
195
|
-
* **ci/cd:** Revert to package-lock instead of bun ([250e040](https://github.com/TreltaSev/sk-clib/commit/250e040491e9bedb141625aa43e2e8deeac85478))
|
|
196
|
-
* **ci/cd:** Update Release Configuration ([66be33d](https://github.com/TreltaSev/sk-clib/commit/66be33d436144e04b30a76b7411162bb878cbba5))
|
|
197
|
-
* **conflicts:** Clean package-lock.json ([742df3f](https://github.com/TreltaSev/sk-clib/commit/742df3fed08b3ee6a4d865ba691c6b6d678e744d))
|
|
198
|
-
* **re-add:** re-added the utils that I removed ;( ([3cf3439](https://github.com/TreltaSev/sk-clib/commit/3cf3439f577e2a4babd542acca7c8e6b3da1aba4))
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
### Features
|
|
202
|
-
|
|
203
|
-
* **ci/cd:** [sk-clib] Move to bun instead of npm ([60d58fe](https://github.com/TreltaSev/sk-clib/commit/60d58fe584862b43e1dcba36f7b7d14488abf11c))
|
|
204
|
-
* **component:** Added Spacer Component ([3f3afcd](https://github.com/TreltaSev/sk-clib/commit/3f3afcda9f867c7a9d28e36b4cc91e48059ba613))
|
|
205
|
-
* **docs:** Trigger Documentation Action [release] ([bf03811](https://github.com/TreltaSev/sk-clib/commit/bf038117b74bcfb0010efd39767e0be43eee3179))
|
|
206
|
-
* **playground:** Added incredibly simple playground for development ([5a92e1f](https://github.com/TreltaSev/sk-clib/commit/5a92e1f5a9f2a0ba9b4a629b6e1ee75be69dbade))
|
|
207
|
-
|
|
208
|
-
# [1.4.0](https://github.com/TreltaSev/sk-clib/compare/v1.3.0...v1.4.0) (2025-06-05)
|
|
209
|
-
|
|
210
|
-
### Bug Fixes
|
|
211
|
-
|
|
212
|
-
- **conflict:** Cleaned Up a conflict ([123dead](https://github.com/TreltaSev/sk-clib/commit/123deadd216009af02c0aef242790e46c29c304a))
|
|
213
|
-
- **docs:** Margin Bottom on Docs [release] ([d7435d9](https://github.com/TreltaSev/sk-clib/commit/d7435d98f20dfdce8ba1e02e6a55347e468d1392))
|
|
214
|
-
- **style-independence:** Library style no longer tied with documentation style ([c69905e](https://github.com/TreltaSev/sk-clib/commit/c69905e8cb930bc2ef5c6943df11fb3fa49a97af))
|
|
215
|
-
- **sync:** Sync package & package-lock ([fc11a0b](https://github.com/TreltaSev/sk-clib/commit/fc11a0bf8a7519ad8014b7a850d36eef3b2bbacb))
|
|
216
|
-
|
|
217
|
-
### Features
|
|
218
|
-
|
|
219
|
-
- **ci:** Testing [release] ([0dfa0b2](https://github.com/TreltaSev/sk-clib/commit/0dfa0b27184533ca5dd46f358a6de18df626832b))
|
|
220
|
-
- **ci:** Testing [release] main ([0869d7a](https://github.com/TreltaSev/sk-clib/commit/0869d7a078fe6e18a794e16d6b6c79efe8ebcfa2))
|
|
221
|
-
- **docs:** Add github and npm links to nav bar ([9a85fc8](https://github.com/TreltaSev/sk-clib/commit/9a85fc8de356f83ef6f306584858f43256f0b61f))
|
|
222
|
-
- **docs:** Trigger Documentation Action [release] ([af7bcf5](https://github.com/TreltaSev/sk-clib/commit/af7bcf510e680b88bec22726b7b46682b7c0a94e))
|
|
223
|
-
|
|
224
|
-
# [1.3.0](https://github.com/TreltaSev/sk-clib/compare/v1.2.0...v1.3.0) (2025-05-23)
|
|
225
|
-
|
|
226
|
-
### Bug Fixes
|
|
227
|
-
|
|
228
|
-
- **conflicts:** Clean package-lock.json ([a76689b](https://github.com/TreltaSev/sk-clib/commit/a76689b7fd51a99a08f2998adcd09ce093a7e91f))
|
|
229
|
-
- **docs:** Margin Bottom on Docs [release] ([cf5232e](https://github.com/TreltaSev/sk-clib/commit/cf5232e1f20885ad4ef35b3e8f87a43248219139))
|
|
230
|
-
|
|
231
|
-
### Features
|
|
232
|
-
|
|
233
|
-
- **ci:** Testing [release] ([4eebef6](https://github.com/TreltaSev/sk-clib/commit/4eebef6c7acb8a8c6f7b50290822424654f5ef9f))
|
|
234
|
-
- **ci:** Testing [release] main ([41bf9c7](https://github.com/TreltaSev/sk-clib/commit/41bf9c7eeedf2a7b6e7766e41c14ad1593269f91))
|
|
235
|
-
- **component:** Added Spacer Component ([b135d5c](https://github.com/TreltaSev/sk-clib/commit/b135d5ca813d9869f8c10b838961225d58e40abf))
|
|
236
|
-
- **component:** Added Spacer Component ([3ec0200](https://github.com/TreltaSev/sk-clib/commit/3ec0200adccff8eb79d074cdb02cfecfd96ebda4))
|
|
237
|
-
- **conflicts:** Clean Up Conflicts ([226eea1](https://github.com/TreltaSev/sk-clib/commit/226eea1e4a63a48c01e3d4257777949051c3f917))
|
|
238
|
-
- **docs:** Add github and npm links to nav bar ([c812699](https://github.com/TreltaSev/sk-clib/commit/c8126999d0e5e083f9bdad1bffa836abcdf9be12))
|
|
239
|
-
- **docs:** Trigger Documentation Action [release] ([a00370e](https://github.com/TreltaSev/sk-clib/commit/a00370e67f4eb0f91432db2c13408a89d05fef83))
|
|
240
|
-
|
|
241
|
-
# [1.2.0](https://github.com/TreltaSev/sk-clib/compare/v1.1.2...v1.2.0) (2025-05-22)
|
|
242
|
-
|
|
243
|
-
### Features
|
|
244
|
-
|
|
245
|
-
- **docs:** Add h-fit ([25bfa14](https://github.com/TreltaSev/sk-clib/commit/25bfa148aa546e6a5a0f20e6f33d6406f42dceff))
|
|
246
|
-
- **docs:** Update structure ([7460f38](https://github.com/TreltaSev/sk-clib/commit/7460f38bf5979981fdc3779aca13413209cccc7a))
|
|
247
|
-
|
|
248
|
-
## [1.1.2](https://github.com/TreltaSev/sk-clib/compare/v1.1.1...v1.1.2) (2025-05-22)
|
|
249
|
-
|
|
250
|
-
### Bug Fixes
|
|
251
|
-
|
|
252
|
-
- remove sk-clib before running semantic-release in npmjs-release workflow ([9e0d2a7](https://github.com/TreltaSev/sk-clib/commit/9e0d2a7cc8618ddf3913fe35076880ee2b3f70df))
|
|
253
|
-
|
|
254
|
-
# [1.2.0](https://github.com/TreltaSev/sk-clib/compare/v1.1.2...v1.2.0) (2025-05-22)
|
|
255
|
-
|
|
256
|
-
### Features
|
|
257
|
-
|
|
258
|
-
- **docs:** Add h-fit ([25bfa14](https://github.com/TreltaSev/sk-clib/commit/25bfa148aa546e6a5a0f20e6f33d6406f42dceff))
|
|
259
|
-
- **docs:** Update structure ([7460f38](https://github.com/TreltaSev/sk-clib/commit/7460f38bf5979981fdc3779aca13413209cccc7a))
|
|
260
|
-
|
|
261
|
-
## [1.1.2](https://github.com/TreltaSev/sk-clib/compare/v1.1.1...v1.1.2) (2025-05-22)
|
|
262
|
-
|
|
263
|
-
### Bug Fixes
|
|
264
|
-
|
|
265
|
-
- remove sk-clib before running semantic-release in npmjs-release workflow ([9e0d2a7](https://github.com/TreltaSev/sk-clib/commit/9e0d2a7cc8618ddf3913fe35076880ee2b3f70df))
|
|
266
|
-
|
|
267
|
-
## [1.1.1](https://github.com/TreltaSev/sk-clib/compare/v1.1.0...v1.1.1) (2025-05-22)
|
|
268
|
-
|
|
269
|
-
### Bug Fixes
|
|
270
|
-
|
|
271
|
-
- remove local file reference to sk-clib in package.json and package-lock.json ([dea2a42](https://github.com/TreltaSev/sk-clib/commit/dea2a4280a76bb82de825377068b13c2d6a4e91f))
|
|
272
|
-
|
|
273
|
-
# [1.1.0](https://github.com/TreltaSev/sk-clib/compare/v1.0.4...v1.1.0) (2025-05-22)
|
|
274
|
-
|
|
275
|
-
### Features
|
|
276
|
-
|
|
277
|
-
- **ci:** add Bun installation step to npm release workflow ([4710cd9](https://github.com/TreltaSev/sk-clib/commit/4710cd9dad3b5f9529764ac19ada8939a2c04835))
|
|
278
|
-
|
|
279
|
-
## [1.0.4](https://github.com/TreltaSev/sk-clib/compare/v1.0.3...v1.0.4) (2025-05-22)
|
|
280
|
-
|
|
281
|
-
### Bug Fixes
|
|
282
|
-
|
|
283
|
-
- **ci/cd:** add type module... again ([700773a](https://github.com/TreltaSev/sk-clib/commit/700773a2ec2ceefcbcdfd956950d70437c77db8e))
|
|
284
|
-
- **ci/cd:** Cleanup ([88b2077](https://github.com/TreltaSev/sk-clib/commit/88b2077b125fd67561c8a0c3702cc1311725a591))
|
|
285
|
-
|
|
286
|
-
## [1.0.3](https://github.com/TreltaSev/sk-clib/compare/v1.0.2...v1.0.3) (2025-05-22)
|
|
287
|
-
|
|
288
|
-
### Bug Fixes
|
|
289
|
-
|
|
290
|
-
- **ci/cd:** Update publint ([109a9f7](https://github.com/TreltaSev/sk-clib/commit/109a9f76d1a823a9e85e2ff0d0747ecb23bf181d))
|
|
291
|
-
|
|
292
|
-
## [1.0.2](https://github.com/TreltaSev/sk-clib/compare/v1.0.1...v1.0.2) (2025-05-22)
|
|
293
|
-
|
|
294
|
-
### Bug Fixes
|
|
295
|
-
|
|
296
|
-
- **ci/cd:** skip pack ([57df76d](https://github.com/TreltaSev/sk-clib/commit/57df76d59f6f856d30f65dfae814396a4e0dbf03))
|
|
297
|
-
|
|
298
|
-
## [1.0.1](https://github.com/TreltaSev/sk-clib/compare/v1.0.0...v1.0.1) (2025-05-22)
|
|
299
|
-
|
|
300
|
-
### Bug Fixes
|
|
301
|
-
|
|
302
|
-
- **ci/cd:** Cleanup workfile ([e0b351c](https://github.com/TreltaSev/sk-clib/commit/e0b351cb6d68f2caa528a1658e2ea0e899714c5e))
|
|
303
|
-
- **ci/cd:** Cleanup workfile x2 ([f82369a](https://github.com/TreltaSev/sk-clib/commit/f82369a7a050c6f1aca1f37df59fe39f1e34d8f0))
|
|
304
|
-
- **ci/cd:** Use npx instead of bunx for build script ([325f43c](https://github.com/TreltaSev/sk-clib/commit/325f43c17a057750f68a0bceaa33a3a2fa00f54a))
|
|
305
|
-
|
|
306
|
-
# 1.0.0 (2025-05-22)
|
|
307
|
-
|
|
308
|
-
### Bug Fixes
|
|
309
|
-
|
|
310
|
-
- **ci/cd:** Add package-lock.json ([eb7afd9](https://github.com/TreltaSev/sk-clib/commit/eb7afd977eac119dfc2e9e705e501d9d26ca0fcb))
|
|
311
|
-
- **ci/cd:** Pushed package-lock ([8693783](https://github.com/TreltaSev/sk-clib/commit/86937835aae2c06d7f6f579a539e30ae8ddd53ff))
|
|
312
|
-
- **ci/cd:** Remove type ([b108c57](https://github.com/TreltaSev/sk-clib/commit/b108c572176c886d619c6ee4018944a25e3388ca))
|
|
313
|
-
- **ci/cd:** Stop removing files ([503f168](https://github.com/TreltaSev/sk-clib/commit/503f16828024bee3de3199474f98c1a90788b321))
|
|
314
|
-
- **component-entry:** Export from lib ([527209e](https://github.com/TreltaSev/sk-clib/commit/527209e26cfa472ae9a44c2dc1460c79c798f6cb))
|
|
315
|
-
- **components:** Generate CSS on build ([b86c8b8](https://github.com/TreltaSev/sk-clib/commit/b86c8b8edd17423a8fb2cc0c85322c7ac660b66f))
|
|
316
|
-
- **linter:** Fixed VSCode Error with project ([845b355](https://github.com/TreltaSev/sk-clib/commit/845b3553ee98d63649ff8fd9e79c3acf701fa3ad))
|
|
317
|
-
- **linting:** Ignoring Useless Error ([fa11469](https://github.com/TreltaSev/sk-clib/commit/fa11469f135c2a986f1deaafd3c781cf81bbb865))
|
|
318
|
-
|
|
319
|
-
### Features
|
|
320
|
-
|
|
321
|
-
- **ci/cd:** Debug Testing Work Tools ([b4ac7da](https://github.com/TreltaSev/sk-clib/commit/b4ac7da7fb7766e52ede3af5bd028efdd9370b6c))
|
|
322
|
-
- **ci/cd:** Use i instead of ci ([c873743](https://github.com/TreltaSev/sk-clib/commit/c87374395c59e2b0d4872cae75fd85767fe2d2ab))
|
|
323
|
-
- **ci/cd:** Use updated node instead of 18 ([dbd6e32](https://github.com/TreltaSev/sk-clib/commit/dbd6e327e30310c369e95d830453e22934daa921))
|
|
324
|
-
- **componenent:** Add Flex Component ([42a620f](https://github.com/TreltaSev/sk-clib/commit/42a620ffd98f524614e3ffeb31e3ec3ac65d1420))
|
|
325
|
-
- **component:** Add Ui Path ([03475bd](https://github.com/TreltaSev/sk-clib/commit/03475bdcf6fcc5a5a3442e9fe078bb128247b3a0))
|
|
326
|
-
- **component:** Button Accessibility ([ec71c37](https://github.com/TreltaSev/sk-clib/commit/ec71c377e2c2d1d3aa2925a180d031017dde1e1f))
|
|
327
|
-
- **component:** Button, Made class optional ([4056e8b](https://github.com/TreltaSev/sk-clib/commit/4056e8b3a246151959592d87d0553c3f58595fcb))
|
|
328
|
-
- **component:** Header component now passes all other props to main element ([562ee0e](https://github.com/TreltaSev/sk-clib/commit/562ee0e61a4c1119b0a213e2a1733d11a55b7b61))
|
|
329
|
-
- **component:** Setup Button ([ed08a0a](https://github.com/TreltaSev/sk-clib/commit/ed08a0a2fca3938b3eeb1527c1a907f16484c84c))
|
|
330
|
-
- **component:** Setup Header Component ([93f4eab](https://github.com/TreltaSev/sk-clib/commit/93f4eab2ef6becf8adf74ed22abaab68a3349020))
|
|
331
|
-
- **component:** Setup Header Independent Stying ([881c563](https://github.com/TreltaSev/sk-clib/commit/881c563b0e3faa8ba56787aa0617705935a0eed1))
|
|
332
|
-
- **component:** Setup Text Component ([3f491c4](https://github.com/TreltaSev/sk-clib/commit/3f491c4e00499d84811bc519630e37a67d003413))
|
|
333
|
-
- **configuration:** Add ui path ([4c3c07f](https://github.com/TreltaSev/sk-clib/commit/4c3c07f257d623676bd945f7bd919a09c8080c96))
|
|
334
|
-
- **configuration:** Redid Imports for components ([6229b37](https://github.com/TreltaSev/sk-clib/commit/6229b37e06ce7acd3978efb0db60a512e9d27204))
|
|
335
|
-
- **docs:** Add basic doc structure and handler ([e000dbf](https://github.com/TreltaSev/sk-clib/commit/e000dbf11af1fb2b1fe8d510001e74bda066a992))
|
|
336
|
-
- **docs:** Add more to documentation ([a7f7404](https://github.com/TreltaSev/sk-clib/commit/a7f740405cb3dba6a3a686f24c13354cb35f30f3))
|
|
337
|
-
- **docs:** Added component rendering to root components ([8d701ec](https://github.com/TreltaSev/sk-clib/commit/8d701ecaa1e145a142822eae635cebb8d2e5d7a1))
|
|
338
|
-
- **docs:** Implement mdsvex ([8bdf15d](https://github.com/TreltaSev/sk-clib/commit/8bdf15d64113960daec43e0b60ae96a324ed0fa1))
|
|
339
|
-
- **docs:** Make doc site less... ugly ([b0f77eb](https://github.com/TreltaSev/sk-clib/commit/b0f77ebbf13d4291520be881a4aeb93ccdfd8817))
|
|
340
|
-
- **docs:** recursive id's ([d72a33f](https://github.com/TreltaSev/sk-clib/commit/d72a33f5b9563e9a8fb20c3e14ccc9f76fafc8e9))
|
|
341
|
-
- **docs:** Syntax Highlighting ([f13db15](https://github.com/TreltaSev/sk-clib/commit/f13db1546f73c5df1c9a7c64fe219df8c9c5b2f2))
|
|
342
|
-
- **docs:** Truly Recursive Documentation ([96933ac](https://github.com/TreltaSev/sk-clib/commit/96933acb16ad464271b6ead9bb1e29291fcf1716))
|
|
343
|
-
- **token:** Tokenizer for component classes implemented ([0fb0680](https://github.com/TreltaSev/sk-clib/commit/0fb0680d36eb1bdf1d1c5ea0a91becc467284ed5))
|
package/eslint.config.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import prettier from 'eslint-config-prettier';
|
|
2
|
-
import js from '@eslint/js';
|
|
3
|
-
import { includeIgnoreFile } from '@eslint/compat';
|
|
4
|
-
import svelte from 'eslint-plugin-svelte';
|
|
5
|
-
import globals from 'globals';
|
|
6
|
-
import { fileURLToPath } from 'node:url';
|
|
7
|
-
import ts from 'typescript-eslint';
|
|
8
|
-
import svelteConfig from './svelte.config.js';
|
|
9
|
-
|
|
10
|
-
const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url));
|
|
11
|
-
|
|
12
|
-
export default ts.config(
|
|
13
|
-
includeIgnoreFile(gitignorePath),
|
|
14
|
-
js.configs.recommended,
|
|
15
|
-
...ts.configs.recommended,
|
|
16
|
-
...svelte.configs.recommended,
|
|
17
|
-
prettier,
|
|
18
|
-
...svelte.configs.prettier,
|
|
19
|
-
{
|
|
20
|
-
languageOptions: { globals: { ...globals.browser, ...globals.node } },
|
|
21
|
-
rules: { 'no-undef': 'off' }
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'],
|
|
25
|
-
languageOptions: {
|
|
26
|
-
parserOptions: {
|
|
27
|
-
projectService: true,
|
|
28
|
-
extraFileExtensions: ['.svelte'],
|
|
29
|
-
parser: ts.parser,
|
|
30
|
-
svelteConfig
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
);
|
package/release.config.cjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
branches: ['main'],
|
|
3
|
-
plugins: [
|
|
4
|
-
'@semantic-release/commit-analyzer',
|
|
5
|
-
'@semantic-release/release-notes-generator',
|
|
6
|
-
'@semantic-release/changelog',
|
|
7
|
-
'@semantic-release/npm',
|
|
8
|
-
[
|
|
9
|
-
'@semantic-release/git',
|
|
10
|
-
{
|
|
11
|
-
assets: ['CHANGELOG.md', 'package.json', 'bun.lock'],
|
|
12
|
-
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
|
|
13
|
-
},
|
|
14
|
-
],
|
|
15
|
-
],
|
|
16
|
-
};
|
package/src/app.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// See https://svelte.dev/docs/kit/types#app.d.ts
|
|
2
|
-
// for information about these interfaces
|
|
3
|
-
declare global {
|
|
4
|
-
namespace App {
|
|
5
|
-
// interface Error {}
|
|
6
|
-
// interface Locals {}
|
|
7
|
-
// interface PageData {}
|
|
8
|
-
// interface PageState {}
|
|
9
|
-
// interface Platform {}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export {};
|
package/src/app.html
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
-
<meta name="text-scale" content="scale" />
|
|
7
|
-
%sveltekit.head%
|
|
8
|
-
</head>
|
|
9
|
-
<body data-sveltekit-preload-data="hover">
|
|
10
|
-
<div style="display: contents">%sveltekit.body%</div>
|
|
11
|
-
</body>
|
|
12
|
-
</html>
|
package/src/base.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="107" height="128" viewBox="0 0 107 128"><title>svelte-logo</title><path d="M94.157 22.819c-10.4-14.885-30.94-19.297-45.792-9.835L22.282 29.608A29.92 29.92 0 0 0 8.764 49.65a31.5 31.5 0 0 0 3.108 20.231 30 30 0 0 0-4.477 11.183 31.9 31.9 0 0 0 5.448 24.116c10.402 14.887 30.942 19.297 45.791 9.835l26.083-16.624A29.92 29.92 0 0 0 98.235 78.35a31.53 31.53 0 0 0-3.105-20.232 30 30 0 0 0 4.474-11.182 31.88 31.88 0 0 0-5.447-24.116" style="fill:#ff3e00"/><path d="M45.817 106.582a20.72 20.72 0 0 1-22.237-8.243 19.17 19.17 0 0 1-3.277-14.503 18 18 0 0 1 .624-2.435l.49-1.498 1.337.981a33.6 33.6 0 0 0 10.203 5.098l.97.294-.09.968a5.85 5.85 0 0 0 1.052 3.878 6.24 6.24 0 0 0 6.695 2.485 5.8 5.8 0 0 0 1.603-.704L69.27 76.28a5.43 5.43 0 0 0 2.45-3.631 5.8 5.8 0 0 0-.987-4.371 6.24 6.24 0 0 0-6.698-2.487 5.7 5.7 0 0 0-1.6.704l-9.953 6.345a19 19 0 0 1-5.296 2.326 20.72 20.72 0 0 1-22.237-8.243 19.17 19.17 0 0 1-3.277-14.502 17.99 17.99 0 0 1 8.13-12.052l26.081-16.623a19 19 0 0 1 5.3-2.329 20.72 20.72 0 0 1 22.237 8.243 19.17 19.17 0 0 1 3.277 14.503 18 18 0 0 1-.624 2.435l-.49 1.498-1.337-.98a33.6 33.6 0 0 0-10.203-5.1l-.97-.294.09-.968a5.86 5.86 0 0 0-1.052-3.878 6.24 6.24 0 0 0-6.696-2.485 5.8 5.8 0 0 0-1.602.704L37.73 51.72a5.42 5.42 0 0 0-2.449 3.63 5.79 5.79 0 0 0 .986 4.372 6.24 6.24 0 0 0 6.698 2.486 5.8 5.8 0 0 0 1.602-.704l9.952-6.342a19 19 0 0 1 5.295-2.328 20.72 20.72 0 0 1 22.237 8.242 19.17 19.17 0 0 1 3.277 14.503 18 18 0 0 1-8.13 12.053l-26.081 16.622a19 19 0 0 1-5.3 2.328" style="fill:#fff"/></svg>
|
package/src/lib/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
// place files you want to import through the `$lib` alias in this folder.
|
package/src/lib/theme/index.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// Stores
|
|
2
|
-
export { theme_state as theme } from './stores.svelte';
|
|
3
|
-
|
|
4
|
-
// Component
|
|
5
|
-
export { default as ThemeInit } from './theme-init/components/theme-init.svelte';
|
|
6
|
-
export type { tThemeInitProps } from './theme-init/types';
|
|
7
|
-
|
|
8
|
-
// Logic
|
|
9
|
-
export * from "./logic"
|
package/src/lib/theme/logic.ts
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import { argbFromHex, SchemeTonalSpot, Hct, hexFromArgb, SchemeContent, SchemeExpressive, SchemeFidelity, SchemeFruitSalad, SchemeMonochrome, SchemeNeutral, SchemeRainbow, SchemeVibrant } from '@material/material-color-utilities';
|
|
3
|
-
|
|
4
|
-
import { Mode, Variant } from "./types"
|
|
5
|
-
|
|
6
|
-
export function saveTheme(theme: object) {
|
|
7
|
-
const expires = new Date();
|
|
8
|
-
expires.setFullYear(expires.getFullYear() + 10);
|
|
9
|
-
document.cookie = `md-theme=${JSON.stringify(theme)}; expires=${expires.toUTCString()}; path=/`;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export function build(seedHex: string, mode: Mode = "dark", variant: Variant = "vibrant", contrast: number = 0) {
|
|
13
|
-
|
|
14
|
-
const variant_map: Record<string, any> = {
|
|
15
|
-
"content": SchemeContent,
|
|
16
|
-
"expressive": SchemeExpressive,
|
|
17
|
-
"fidelity": SchemeFidelity,
|
|
18
|
-
"fruit-salad": SchemeFruitSalad,
|
|
19
|
-
"monochrome": SchemeMonochrome,
|
|
20
|
-
"neutral": SchemeNeutral,
|
|
21
|
-
"rainbow": SchemeRainbow,
|
|
22
|
-
"tonal-spot": SchemeTonalSpot,
|
|
23
|
-
"vibrant": SchemeVibrant
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
if (!(variant in variant_map)) {
|
|
27
|
-
variant = "content"
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const source = Hct.fromInt(argbFromHex(seedHex))
|
|
31
|
-
const isDark = mode === "dark"
|
|
32
|
-
const scheme = new variant_map[variant](source, isDark, contrast);
|
|
33
|
-
|
|
34
|
-
return scheme
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
export function applyScheme(scheme: any, color?: string, mode?: string, variant?: string) {
|
|
39
|
-
const map: Record<string, number> = {
|
|
40
|
-
"--color-seed": scheme.sourceColorArgb,
|
|
41
|
-
"--color-primary": scheme.primary,
|
|
42
|
-
"--color-on-primary": scheme.onPrimary,
|
|
43
|
-
"--color-primary-container": scheme.primaryContainer,
|
|
44
|
-
"--color-on-primary-container": scheme.onPrimaryContainer,
|
|
45
|
-
"--color-secondary": scheme.secondary,
|
|
46
|
-
"--color-on-secondary": scheme.onSecondary,
|
|
47
|
-
"--color-secondary-container": scheme.secondaryContainer,
|
|
48
|
-
"--color-on-secondary-container": scheme.onSecondaryContainer,
|
|
49
|
-
"--color-tertiary": scheme.tertiary,
|
|
50
|
-
"--color-on-tertiary": scheme.onTertiary,
|
|
51
|
-
"--color-tertiary-container": scheme.tertiaryContainer,
|
|
52
|
-
"--color-on-tertiary-container": scheme.onTertiaryContainer,
|
|
53
|
-
"--color-error": scheme.error,
|
|
54
|
-
"--color-on-error": scheme.onError,
|
|
55
|
-
"--color-error-container": scheme.errorContainer,
|
|
56
|
-
"--color-on-error-container": scheme.onErrorContainer,
|
|
57
|
-
"--color-background": scheme.background,
|
|
58
|
-
"--color-on-background": scheme.onBackground,
|
|
59
|
-
"--color-surface": scheme.surface,
|
|
60
|
-
"--color-on-surface": scheme.onSurface,
|
|
61
|
-
"--color-surface-variant": scheme.surfaceVariant,
|
|
62
|
-
"--color-on-surface-variant": scheme.onSurfaceVariant,
|
|
63
|
-
"--color-outline": scheme.outline,
|
|
64
|
-
"--color-outline-variant": scheme.outlineVariant,
|
|
65
|
-
"--color-shadow": scheme.shadow,
|
|
66
|
-
"--color-scrim": scheme.scrim,
|
|
67
|
-
"--color-inverse-surface": scheme.inverseSurface,
|
|
68
|
-
"--color-inverse-on-surface": scheme.inverseOnSurface,
|
|
69
|
-
"--color-inverse-primary": scheme.inversePrimary
|
|
70
|
-
}
|
|
71
|
-
let out: any = {}
|
|
72
|
-
const root = document.documentElement
|
|
73
|
-
for (const [name, argb] of Object.entries(map)) {
|
|
74
|
-
out[name] = hexFromArgb(argb)
|
|
75
|
-
root.style.setProperty(name, hexFromArgb(argb))
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
const conf_out: any = {
|
|
79
|
-
"--theme-color": color,
|
|
80
|
-
"--theme-mode": mode,
|
|
81
|
-
"--theme-variant": variant
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
for (const [name, value] of Object.entries(conf_out)) {
|
|
85
|
-
root.style.setProperty(name, value)
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
out = {...out, ...conf_out}
|
|
89
|
-
|
|
90
|
-
return out
|
|
91
|
-
}
|