@sierra-95/svelte-scaffold 1.0.63 → 1.0.65
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.
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { enhance } from '$app/forms';
|
|
3
|
+
|
|
4
|
+
type _method = 'dialog' |'get' | 'post' | 'DIALOG' | 'GET' | 'POST';
|
|
5
|
+
const {
|
|
6
|
+
children,
|
|
7
|
+
formBackground = 'white',
|
|
8
|
+
pageBackground = 'var(--primary-bg)',
|
|
9
|
+
tailwindCss = '',
|
|
10
|
+
method = 'post' as _method,
|
|
11
|
+
enhanceAction = null,
|
|
12
|
+
...rest
|
|
13
|
+
} = $props();
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<main id="karakal-form" style="background-color: {pageBackground};">
|
|
17
|
+
<form use:enhance={enhanceAction} method={method} {...rest} class={tailwindCss} style="background-color: {formBackground};">
|
|
18
|
+
{@render children()}
|
|
19
|
+
</form>
|
|
20
|
+
</main>
|
|
21
|
+
|
|
22
|
+
<style>
|
|
23
|
+
#karakal-form{
|
|
24
|
+
min-height: 100vh;
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
}
|
|
29
|
+
#karakal-form form{
|
|
30
|
+
max-width: 500px;
|
|
31
|
+
width: 100%;
|
|
32
|
+
margin: 20px;
|
|
33
|
+
padding: 40px;
|
|
34
|
+
border-radius: 6px;
|
|
35
|
+
box-shadow: var(--box-shadow);
|
|
36
|
+
}
|
|
37
|
+
@media (max-width: 500px) {
|
|
38
|
+
#karakal-form{
|
|
39
|
+
min-height: 100%;
|
|
40
|
+
}
|
|
41
|
+
#karakal-form form{
|
|
42
|
+
border-radius: 0;
|
|
43
|
+
margin: 0;
|
|
44
|
+
padding: 20px;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
</style>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const Form: import("svelte").Component<{
|
|
2
|
+
children: any;
|
|
3
|
+
formBackground?: string;
|
|
4
|
+
pageBackground?: string;
|
|
5
|
+
tailwindCss?: string;
|
|
6
|
+
method?: "dialog" | "get" | "post" | "DIALOG" | "GET" | "POST";
|
|
7
|
+
enhanceAction?: any;
|
|
8
|
+
} & Record<string, any>, {}, "">;
|
|
9
|
+
type Form = ReturnType<typeof Form>;
|
|
10
|
+
export default Form;
|
package/dist/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export { default as Time } from './Core/components/others/Calender/Time/time.sve
|
|
|
33
33
|
export { default as Date } from './Core/components/others/Calender/Date/date.svelte';
|
|
34
34
|
export { default as Hr } from './Core/components/others/Hr/hr.svelte';
|
|
35
35
|
export { default as Checkbox } from './Core/components/Form/Checkbox/checkbox.svelte';
|
|
36
|
+
export { default as Form } from './Core/components/Form/Form/form.svelte';
|
|
36
37
|
export { default as GlobalSearch } from './Core/features/GlobalSearch/main.svelte';
|
|
37
38
|
export { default as Editor } from './Modules/Editor/main.svelte';
|
|
38
39
|
export { default as Layout } from './Modules/Layout/main.svelte';
|
package/dist/index.js
CHANGED
|
@@ -41,6 +41,7 @@ export { default as Time } from './Core/components/others/Calender/Time/time.sve
|
|
|
41
41
|
export { default as Date } from './Core/components/others/Calender/Date/date.svelte';
|
|
42
42
|
export { default as Hr } from './Core/components/others/Hr/hr.svelte';
|
|
43
43
|
export { default as Checkbox } from './Core/components/Form/Checkbox/checkbox.svelte';
|
|
44
|
+
export { default as Form } from './Core/components/Form/Form/form.svelte';
|
|
44
45
|
//####################Features##################################
|
|
45
46
|
export { default as GlobalSearch } from './Core/features/GlobalSearch/main.svelte';
|
|
46
47
|
//####################MODULES COMPONENTS########################
|