sveltekit-ui 1.0.1 → 1.0.3
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.
|
@@ -7553,7 +7553,7 @@ export const docs_overview_code_sample = `<script>
|
|
|
7553
7553
|
create_text_input_manager,
|
|
7554
7554
|
TextInput,
|
|
7555
7555
|
copy_to_clipboard,
|
|
7556
|
-
} from "
|
|
7556
|
+
} from "sveltekit-ui"
|
|
7557
7557
|
|
|
7558
7558
|
let manager = $state(null)
|
|
7559
7559
|
|
|
@@ -7596,12 +7596,12 @@ export const docs_overview_code_sample = `<script>
|
|
|
7596
7596
|
export function docs_definition_to_sample_code(definition) {
|
|
7597
7597
|
return definition?.is_not_builder
|
|
7598
7598
|
? `<script>
|
|
7599
|
-
import { ${definition?.component_name} } from "
|
|
7599
|
+
import { ${definition?.component_name} } from "sveltekit-ui"
|
|
7600
7600
|
<\/script>
|
|
7601
7601
|
|
|
7602
7602
|
<${definition?.component_name} some_property="example" />`
|
|
7603
7603
|
: `<script>
|
|
7604
|
-
import { ${definition?.builder_function_name}, ${definition?.component_name} } from "
|
|
7604
|
+
import { ${definition?.builder_function_name}, ${definition?.component_name} } from "sveltekit-ui"
|
|
7605
7605
|
|
|
7606
7606
|
let example_${definition?.builder_function_name?.slice(7)} = ${definition?.builder_function_name}({
|
|
7607
7607
|
some_config_property: "example"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sveltekit-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "A SvelteKit UI component library for building modern web applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"context-filter-polyfill": "^0.3.23",
|
|
21
21
|
"qr-code-styling": "^1.9.2",
|
|
22
|
-
"svelte": "^5.
|
|
22
|
+
"svelte": "^5.35.2"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@sveltejs/kit": "^2.22.2"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@sveltejs/vite-plugin-svelte": "^5.1.0",
|
|
32
32
|
"@vercel/analytics": "^1.5.0",
|
|
33
33
|
"typescript": "^5.8.3",
|
|
34
|
-
"vite": "^
|
|
34
|
+
"vite": "^7.0.1"
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://www.sveltekit-ui.com",
|
|
37
37
|
"keywords": [
|
|
@@ -7553,7 +7553,7 @@ export const docs_overview_code_sample = `<script>
|
|
|
7553
7553
|
create_text_input_manager,
|
|
7554
7554
|
TextInput,
|
|
7555
7555
|
copy_to_clipboard,
|
|
7556
|
-
} from "
|
|
7556
|
+
} from "sveltekit-ui"
|
|
7557
7557
|
|
|
7558
7558
|
let manager = $state(null)
|
|
7559
7559
|
|
|
@@ -7596,12 +7596,12 @@ export const docs_overview_code_sample = `<script>
|
|
|
7596
7596
|
export function docs_definition_to_sample_code(definition) {
|
|
7597
7597
|
return definition?.is_not_builder
|
|
7598
7598
|
? `<script>
|
|
7599
|
-
import { ${definition?.component_name} } from "
|
|
7599
|
+
import { ${definition?.component_name} } from "sveltekit-ui"
|
|
7600
7600
|
<\/script>
|
|
7601
7601
|
|
|
7602
7602
|
<${definition?.component_name} some_property="example" />`
|
|
7603
7603
|
: `<script>
|
|
7604
|
-
import { ${definition?.builder_function_name}, ${definition?.component_name} } from "
|
|
7604
|
+
import { ${definition?.builder_function_name}, ${definition?.component_name} } from "sveltekit-ui"
|
|
7605
7605
|
|
|
7606
7606
|
let example_${definition?.builder_function_name?.slice(7)} = ${definition?.builder_function_name}({
|
|
7607
7607
|
some_config_property: "example"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
{ name: "Cron Input", key: "cron_input" },
|
|
47
47
|
{ name: "Dropdown", key: "dropdown" },
|
|
48
48
|
{ name: "File Input", key: "file_input" },
|
|
49
|
-
{ name: "Function Input", key: "function_input" },
|
|
49
|
+
// { name: "Function Input", key: "function_input" },
|
|
50
50
|
{ name: "Icon", key: "icon" },
|
|
51
51
|
{ name: "Icon Input", key: "icon_input" },
|
|
52
52
|
{ name: "Image", key: "image" },
|
package/src/routes/+page.svelte
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import Button from "$lib/Components/Button/index.svelte"
|
|
3
3
|
import { create_button_manager } from "$lib/Components/Button/index.svelte.js"
|
|
4
|
-
import { goto } from "$app/navigation"
|
|
5
4
|
import Code from "$lib/Components/Code/index.svelte"
|
|
6
5
|
import { create_code_manager } from "$lib/Components/Code/index.svelte.js"
|
|
6
|
+
import { goto } from "$app/navigation"
|
|
7
7
|
import { definitions, docs_definition_to_sample_code, docs_overview_code_sample } from "$lib/client/docs/index.js"
|
|
8
8
|
import { copy_to_clipboard } from "$lib/client/index.js"
|
|
9
9
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
content: docs_overview_code_sample,
|
|
20
20
|
})
|
|
21
21
|
|
|
22
|
-
const overview_intro = `Each component can be combined into a more complex component. This is intended for sveltekit projects. The whole "tree" of
|
|
22
|
+
const overview_intro = `Each component can be combined into a more complex component. This is intended for sveltekit projects. The whole "tree" of components should be initialized at the parent-most level which is likely in the <script> tags of a +page.svelte file.`
|
|
23
23
|
|
|
24
24
|
let copy_all_docs_button_manager = create_button_manager({
|
|
25
25
|
type: "outlined",
|
|
@@ -51,16 +51,17 @@ below are the docs for each component individually
|
|
|
51
51
|
</script>
|
|
52
52
|
|
|
53
53
|
<div class="container">
|
|
54
|
-
<h1>
|
|
54
|
+
<h1>Welcome to Sveltekit-UI</h1>
|
|
55
55
|
<p>
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
Our components use svelte 5 runes. We have taken an approach where components are mostly built in javascript to
|
|
57
|
+
allow for control of your entire tree of components in one parent object that can then be passed down through all
|
|
58
|
+
HTML and CSS components
|
|
58
59
|
</p>
|
|
59
60
|
<p>
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
After a lot of work these components are in a state that we are happy to release to the public and encourage people
|
|
62
|
+
to use. You can also go to <a href="https://www.contibase.com/code_generate">www.contibase.com/code_generate</a> to help
|
|
63
|
+
you build with sveltekit-ui. Contibase is also a very compatable project to use along side Sveltekit-UI.
|
|
62
64
|
</p>
|
|
63
|
-
<p>{overview_intro}</p>
|
|
64
65
|
<br />
|
|
65
66
|
<Code manager={overview_sample_code_manager} />
|
|
66
67
|
<p>Explore the docs for details on each individual component</p>
|
|
@@ -74,7 +75,7 @@ below are the docs for each component individually
|
|
|
74
75
|
<style>
|
|
75
76
|
.container {
|
|
76
77
|
margin: auto;
|
|
77
|
-
padding: 2rem;
|
|
78
|
+
padding: 0 2rem 10rem 2rem;
|
|
78
79
|
max-width: 60rem;
|
|
79
80
|
}
|
|
80
81
|
p {
|